@tulip-systems/core 0.8.2 → 0.9.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.mts +10 -10
- package/dist/auth/client.mjs +10 -10
- package/dist/auth/server.d.mts +7 -7
- package/dist/auth/server.mjs +7 -7
- package/dist/auth.d.mts +5 -5
- package/dist/auth.mjs +5 -5
- package/dist/commands/client.d.mts +17 -16
- package/dist/commands/client.mjs +17 -16
- package/dist/commands.d.mts +3 -3
- package/dist/commands.mjs +3 -2
- package/dist/components/client.d.mts +48 -48
- package/dist/components/client.mjs +48 -48
- package/dist/components/common/icons.d.mts +1 -2
- package/dist/components/common/icons.mjs +1 -2
- package/dist/components/common/status.d.mts +1 -2
- package/dist/components/common/status.mjs +1 -2
- package/dist/components/editor/components/content.client.d.mts +1 -2
- package/dist/components/editor/components/content.client.mjs +1 -2
- package/dist/components/editor/components/editor.client.d.mts +1 -2
- package/dist/components/editor/components/editor.client.mjs +1 -2
- package/dist/components/editor/components/menu-nodes.client.mjs +1 -2
- package/dist/components/editor/components/menu.client.d.mts +1 -2
- package/dist/components/editor/components/menu.client.mjs +1 -2
- package/dist/components/editor/extensions/file-handler/extension.d.mts +1 -2
- package/dist/components/editor/extensions/file-handler/extension.mjs +1 -2
- package/dist/components/editor/extensions/file-handler/strategy.d.mts +1 -2
- package/dist/components/editor/extensions/file-handler/strategy.mjs +1 -2
- package/dist/components/editor/extensions/file-handler/utils.mjs +1 -2
- package/dist/components/editor/extensions/image/extension.d.mts +1 -2
- package/dist/components/editor/extensions/image/extension.mjs +1 -2
- package/dist/components/editor/extensions/skeleton/extension.mjs +1 -2
- package/dist/components/editor/extensions/skeleton/renderer.mjs +1 -2
- package/dist/components/editor/lib/constants.d.mts +1 -2
- package/dist/components/editor/lib/constants.mjs +1 -2
- package/dist/components/editor/lib/extensions.d.mts +1 -2
- package/dist/components/editor/lib/extensions.mjs +1 -2
- package/dist/components/editor/lib/helpers.d.mts +1 -2
- package/dist/components/editor/lib/helpers.mjs +1 -2
- package/dist/components/editor/lib/types.d.mts +1 -2
- package/dist/components/editor/lib/variants.mjs +1 -2
- package/dist/components/emails/forget-password-email.mjs +2 -3
- package/dist/components/header/back-button.client.d.mts +1 -2
- package/dist/components/header/back-button.client.mjs +1 -2
- package/dist/components/header/bottom-bar.client.d.mts +1 -2
- package/dist/components/header/bottom-bar.client.mjs +1 -2
- package/dist/components/header/breadcrumbs.client.d.mts +1 -2
- package/dist/components/header/breadcrumbs.client.mjs +1 -2
- package/dist/components/header/header.client.d.mts +1 -2
- package/dist/components/header/header.client.mjs +1 -2
- package/dist/components/header/indicator.client.mjs +1 -2
- package/dist/components/header/mobile-nav-switcher.client.d.mts +1 -2
- package/dist/components/header/mobile-nav-switcher.client.mjs +1 -2
- package/dist/components/header/top-bar.client.d.mts +1 -2
- package/dist/components/header/top-bar.client.mjs +1 -2
- package/dist/components/layouts/admin-content.client.d.mts +1 -2
- package/dist/components/layouts/admin-content.client.mjs +1 -2
- package/dist/components/layouts/admin-error-pages.d.mts +1 -2
- package/dist/components/layouts/admin-error-pages.mjs +1 -2
- package/dist/components/layouts/admin-layout.d.mts +1 -2
- package/dist/components/layouts/admin-layout.mjs +1 -2
- package/dist/components/layouts/admin-loading.d.mts +1 -2
- package/dist/components/layouts/admin-loading.mjs +1 -2
- package/dist/components/layouts/empty-page.d.mts +1 -2
- package/dist/components/layouts/empty-page.mjs +1 -2
- package/dist/components/layouts/error-page.d.mts +1 -2
- package/dist/components/layouts/error-page.mjs +1 -2
- package/dist/components/layouts/error-sections.d.mts +1 -2
- package/dist/components/layouts/error-sections.mjs +1 -2
- package/dist/components/layouts/list-layout.d.mts +1 -2
- package/dist/components/layouts/list-layout.mjs +1 -2
- package/dist/components/layouts/providers.client.d.mts +1 -2
- package/dist/components/layouts/providers.client.mjs +1 -2
- package/dist/components/layouts/root-error-pages.d.mts +1 -2
- package/dist/components/layouts/root-error-pages.mjs +1 -2
- package/dist/components/layouts/root-layout.server.d.mts +1 -2
- package/dist/components/layouts/root-layout.server.mjs +1 -2
- package/dist/components/layouts/root-loading.d.mts +1 -2
- package/dist/components/layouts/root-loading.mjs +1 -2
- package/dist/components/layouts/tab-layout.d.mts +1 -2
- package/dist/components/layouts/tab-layout.mjs +1 -2
- package/dist/components/lists/data-list.d.mts +1 -2
- package/dist/components/lists/data-list.mjs +1 -2
- package/dist/components/lists/data-stack.d.mts +1 -2
- package/dist/components/lists/data-stack.mjs +1 -2
- package/dist/components/navigation/admin-sidebar-header.client.mjs +1 -2
- package/dist/components/navigation/admin-sidebar-paths.client.d.mts +1 -2
- package/dist/components/navigation/admin-sidebar-paths.client.mjs +1 -2
- package/dist/components/navigation/admin-sidebar-skeleton.mjs +1 -2
- package/dist/components/server.d.mts +2 -2
- package/dist/components/server.mjs +2 -2
- package/dist/components/ui/accordion.client.d.mts +1 -2
- package/dist/components/ui/accordion.client.mjs +1 -2
- package/dist/components/ui/alert-dialog.client.d.mts +1 -2
- package/dist/components/ui/alert-dialog.client.mjs +1 -2
- package/dist/components/ui/alert.d.mts +1 -2
- package/dist/components/ui/alert.mjs +1 -2
- package/dist/components/ui/aspect-ratio.client.d.mts +1 -2
- package/dist/components/ui/aspect-ratio.client.mjs +1 -2
- package/dist/components/ui/avatar.client.d.mts +1 -2
- package/dist/components/ui/avatar.client.mjs +1 -2
- package/dist/components/ui/badge.d.mts +2 -3
- package/dist/components/ui/badge.mjs +1 -2
- package/dist/components/ui/breadcrumb.d.mts +1 -2
- package/dist/components/ui/breadcrumb.mjs +1 -2
- package/dist/components/ui/button-group.d.mts +1 -2
- package/dist/components/ui/button-group.mjs +1 -2
- package/dist/components/ui/button.d.mts +2 -3
- package/dist/components/ui/button.mjs +1 -2
- package/dist/components/ui/calendar.client.d.mts +1 -2
- package/dist/components/ui/calendar.client.mjs +1 -2
- package/dist/components/ui/card.d.mts +1 -2
- package/dist/components/ui/card.mjs +1 -2
- package/dist/components/ui/carousel.client.d.mts +1 -2
- package/dist/components/ui/carousel.client.mjs +1 -2
- package/dist/components/ui/chart.client.d.mts +1 -2
- package/dist/components/ui/chart.client.mjs +1 -2
- package/dist/components/ui/checkbox.client.d.mts +1 -2
- package/dist/components/ui/checkbox.client.mjs +2 -3
- package/dist/components/ui/collapsible.client.d.mts +1 -2
- package/dist/components/ui/collapsible.client.mjs +1 -2
- package/dist/components/ui/color-picker.client.d.mts +1 -2
- package/dist/components/ui/color-picker.client.mjs +1 -2
- package/dist/components/ui/combobox-dropdown.client.d.mts +1 -2
- package/dist/components/ui/combobox-dropdown.client.mjs +1 -2
- package/dist/components/ui/combobox.client.d.mts +1 -2
- package/dist/components/ui/combobox.client.mjs +1 -2
- package/dist/components/ui/command.client.d.mts +5 -2
- package/dist/components/ui/command.client.mjs +10 -4
- package/dist/components/ui/context-menu.client.d.mts +1 -2
- package/dist/components/ui/context-menu.client.mjs +1 -2
- package/dist/components/ui/date-picker.client.d.mts +1 -2
- package/dist/components/ui/date-picker.client.mjs +1 -2
- package/dist/components/ui/dialog.client.d.mts +1 -2
- package/dist/components/ui/dialog.client.mjs +1 -2
- package/dist/components/ui/drawer.client.d.mts +1 -2
- package/dist/components/ui/drawer.client.mjs +1 -2
- package/dist/components/ui/dropdown-menu.client.d.mts +1 -2
- package/dist/components/ui/dropdown-menu.client.mjs +1 -2
- package/dist/components/ui/empty.d.mts +1 -2
- package/dist/components/ui/empty.mjs +1 -2
- package/dist/components/ui/field.client.d.mts +1 -2
- package/dist/components/ui/field.client.mjs +2 -3
- package/dist/components/ui/form.client.d.mts +1 -2
- package/dist/components/ui/form.client.mjs +1 -2
- package/dist/components/ui/hover-card.client.d.mts +1 -2
- package/dist/components/ui/hover-card.client.mjs +1 -2
- package/dist/components/ui/input-date-time.client.d.mts +1 -2
- package/dist/components/ui/input-date-time.client.mjs +1 -2
- package/dist/components/ui/input-date.d.mts +1 -2
- package/dist/components/ui/input-date.mjs +1 -2
- package/dist/components/ui/input-group.client.d.mts +1 -2
- package/dist/components/ui/input-group.client.mjs +1 -2
- package/dist/components/ui/input-recipient.d.mts +1 -2
- package/dist/components/ui/input-recipient.mjs +2 -3
- package/dist/components/ui/input-time.d.mts +1 -2
- package/dist/components/ui/input-time.mjs +1 -2
- package/dist/components/ui/input.d.mts +1 -2
- package/dist/components/ui/input.mjs +1 -2
- package/dist/components/ui/item.d.mts +2 -3
- package/dist/components/ui/item.mjs +1 -2
- package/dist/components/ui/kbd.d.mts +1 -2
- package/dist/components/ui/kbd.mjs +1 -2
- package/dist/components/ui/label.d.mts +1 -2
- package/dist/components/ui/label.mjs +1 -2
- package/dist/components/ui/loader.d.mts +1 -2
- package/dist/components/ui/loader.mjs +1 -2
- package/dist/components/ui/navigation-menu.d.mts +1 -2
- package/dist/components/ui/navigation-menu.mjs +1 -2
- package/dist/components/ui/pagination.d.mts +1 -2
- package/dist/components/ui/pagination.mjs +1 -2
- package/dist/components/ui/popover.client.d.mts +1 -2
- package/dist/components/ui/popover.client.mjs +1 -2
- package/dist/components/ui/progress.client.d.mts +1 -2
- package/dist/components/ui/progress.client.mjs +1 -2
- package/dist/components/ui/radio-group.d.mts +1 -2
- package/dist/components/ui/radio-group.mjs +2 -3
- package/dist/components/ui/resizable.client.d.mts +1 -2
- package/dist/components/ui/resizable.client.mjs +1 -2
- package/dist/components/ui/scroll-area.d.mts +1 -2
- package/dist/components/ui/scroll-area.mjs +1 -2
- package/dist/components/ui/select.client.d.mts +1 -2
- package/dist/components/ui/select.client.mjs +1 -2
- package/dist/components/ui/separator.d.mts +1 -2
- package/dist/components/ui/separator.mjs +1 -2
- package/dist/components/ui/sheet.client.d.mts +1 -2
- package/dist/components/ui/sheet.client.mjs +1 -2
- package/dist/components/ui/sidebar.client.d.mts +1 -2
- package/dist/components/ui/sidebar.client.mjs +1 -2
- package/dist/components/ui/skeleton.d.mts +1 -2
- package/dist/components/ui/skeleton.mjs +1 -2
- package/dist/components/ui/slider.d.mts +1 -2
- package/dist/components/ui/slider.mjs +1 -2
- package/dist/components/ui/sonner.client.d.mts +1 -2
- package/dist/components/ui/sonner.client.mjs +1 -2
- package/dist/components/ui/spinner.d.mts +1 -2
- package/dist/components/ui/spinner.mjs +1 -2
- package/dist/components/ui/switch.client.d.mts +1 -2
- package/dist/components/ui/switch.client.mjs +1 -2
- package/dist/components/ui/tabs.client.d.mts +1 -2
- package/dist/components/ui/tabs.client.mjs +2 -3
- package/dist/components/ui/textarea.d.mts +1 -2
- package/dist/components/ui/textarea.mjs +1 -2
- package/dist/components/ui/toggle-group.client.d.mts +1 -2
- package/dist/components/ui/toggle-group.client.mjs +1 -2
- package/dist/components/ui/toggle.client.d.mts +1 -2
- package/dist/components/ui/toggle.client.mjs +1 -2
- package/dist/components/ui/tooltip.client.d.mts +1 -2
- package/dist/components/ui/tooltip.client.mjs +1 -2
- package/dist/components.d.mts +39 -39
- package/dist/components.mjs +38 -38
- package/dist/config.d.mts +6 -6
- package/dist/config.mjs +4 -4
- package/dist/data-tables/client.d.mts +21 -18
- package/dist/data-tables/client.mjs +21 -18
- package/dist/data-tables/server.d.mts +7 -7
- package/dist/data-tables/server.mjs +7 -7
- package/dist/data-tables.d.mts +14 -14
- package/dist/data-tables.mjs +13 -13
- package/dist/database/server.d.mts +1 -1
- package/dist/database/server.mjs +1 -1
- package/dist/database.d.mts +2 -2
- package/dist/database.mjs +1 -1
- package/dist/dist/config.d.mts +5 -0
- package/dist/dist/modules/auth/handler/service.server.d.mts +8 -0
- package/dist/dist/modules/auth/lib/permissions.d.mts +2 -0
- package/dist/dist/modules/config/lib/context.d.mts +4 -0
- package/dist/dist/modules/config/paths/helpers.d.mts +1 -0
- package/dist/dist/modules/config/paths/types.d.mts +3 -0
- package/dist/dist/modules/database/lib/helpers.d.mts +2 -0
- package/dist/dist/modules/database/lib/service.server.d.mts +2 -0
- package/dist/dist/modules/database/lib/types.d.mts +5 -0
- package/dist/dist/modules/emails/lib/service.server.d.mts +2 -0
- package/dist/dist/modules/storage/lib/schema.d.mts +1 -0
- package/dist/dist/modules/storage/lib/service.server.d.mts +5 -0
- package/dist/dist/modules/storage/lib/validators.d.mts +4 -0
- package/dist/dist/modules/storage/providers/lib/types.d.mts +1 -0
- package/dist/dist/modules/storage/providers/lib/validators.d.mts +2 -0
- package/dist/emails/server.d.mts +1 -1
- package/dist/emails/server.mjs +1 -1
- package/dist/inline/client.d.mts +16 -0
- package/dist/inline/client.mjs +17 -0
- package/dist/inline.d.mts +2 -0
- package/dist/inline.mjs +3 -0
- package/dist/lib/client.d.mts +4 -4
- package/dist/lib/client.mjs +4 -4
- package/dist/lib/hooks/use-action.d.mts +1 -2
- package/dist/lib/hooks/use-action.mjs +1 -2
- package/dist/lib/hooks/use-indicator.d.mts +1 -2
- package/dist/lib/hooks/use-indicator.mjs +1 -2
- package/dist/lib/hooks/use-mobile.client.d.mts +1 -2
- package/dist/lib/hooks/use-mobile.client.mjs +1 -2
- package/dist/lib/types/config.d.mts +1 -2
- package/dist/lib/utils/array-move.d.mts +1 -2
- package/dist/lib/utils/array-move.mjs +1 -2
- package/dist/lib/utils/cn.d.mts +1 -2
- package/dist/lib/utils/cn.mjs +1 -2
- package/dist/lib/utils/fonts.d.mts +1 -2
- package/dist/lib/utils/fonts.mjs +1 -2
- package/dist/lib/utils/format.d.mts +1 -2
- package/dist/lib/utils/format.mjs +1 -2
- package/dist/lib/utils/manifest.d.mts +1 -2
- package/dist/lib/utils/manifest.mjs +1 -2
- package/dist/lib/utils/markdown.d.mts +1 -2
- package/dist/lib/utils/markdown.mjs +1 -2
- package/dist/lib/utils/url.d.mts +1 -2
- package/dist/lib/utils/url.mjs +1 -2
- package/dist/lib/utils/user-agent.mjs +1 -2
- package/dist/lib.d.mts +7 -7
- package/dist/lib.mjs +6 -6
- package/dist/modules/auth/components/allowed.client.d.mts +2 -4
- package/dist/modules/auth/components/allowed.client.mjs +1 -2
- package/dist/modules/auth/components/auth-layout.server.d.mts +1 -2
- package/dist/modules/auth/components/auth-layout.server.mjs +1 -2
- package/dist/modules/auth/components/auth-loading.d.mts +1 -2
- package/dist/modules/auth/components/auth-loading.mjs +1 -2
- package/dist/modules/auth/components/create-first-user-guard.server.d.mts +1 -2
- package/dist/modules/auth/components/create-first-user-guard.server.mjs +1 -2
- package/dist/modules/auth/components/create-first-user-page.client.d.mts +1 -2
- package/dist/modules/auth/components/create-first-user-page.client.mjs +1 -2
- package/dist/modules/auth/components/forget-password-page.client.d.mts +1 -2
- package/dist/modules/auth/components/forget-password-page.client.mjs +1 -2
- package/dist/modules/auth/components/guard.server.d.mts +1 -2
- package/dist/modules/auth/components/guard.server.mjs +1 -2
- package/dist/modules/auth/components/login-page.client.d.mts +1 -2
- package/dist/modules/auth/components/login-page.client.mjs +1 -2
- package/dist/modules/auth/components/reset-password-page.client.d.mts +1 -2
- package/dist/modules/auth/components/reset-password-page.client.mjs +1 -2
- package/dist/modules/auth/components/update-password-command.d.mts +2 -3
- package/dist/modules/auth/components/update-password-command.mjs +2 -3
- package/dist/modules/auth/db/schema.d.mts +1 -2
- package/dist/modules/auth/db/schema.mjs +1 -2
- package/dist/modules/auth/handler/create-client.client.d.mts +903 -665
- package/dist/modules/auth/handler/create-client.client.mjs +1 -2
- package/dist/modules/auth/handler/proxy.server.d.mts +1 -2
- package/dist/modules/auth/handler/proxy.server.mjs +1 -2
- package/dist/modules/auth/handler/route.server.d.mts +1 -2
- package/dist/modules/auth/handler/route.server.mjs +1 -2
- package/dist/modules/auth/handler/service.server.d.mts +121 -94
- package/dist/modules/auth/handler/service.server.mjs +1 -2
- package/dist/modules/auth/hooks/use-auth-client.d.mts +1 -2
- package/dist/modules/auth/hooks/use-auth-client.mjs +1 -2
- package/dist/modules/auth/hooks/use-permission.d.mts +1 -2
- package/dist/modules/auth/hooks/use-permission.mjs +1 -2
- package/dist/modules/auth/hooks/use-session.d.mts +3 -4
- package/dist/modules/auth/hooks/use-session.mjs +1 -2
- package/dist/modules/auth/lib/helpers.server.d.mts +2 -3
- package/dist/modules/auth/lib/helpers.server.mjs +1 -2
- package/dist/modules/auth/lib/permissions.d.mts +1 -2
- package/dist/modules/auth/lib/permissions.mjs +1 -2
- package/dist/modules/auth/lib/validators.d.mts +238 -2
- package/dist/modules/auth/lib/validators.mjs +5 -2
- package/dist/modules/commands/components/menus/context-menu.client.d.mts +40 -0
- package/dist/modules/commands/components/menus/context-menu.client.mjs +47 -0
- package/dist/modules/commands/components/menus/dropdown-menu.client.d.mts +30 -0
- package/dist/modules/commands/components/menus/dropdown-menu.client.mjs +58 -0
- package/dist/modules/commands/components/menus/floating-menu.client.d.mts +30 -0
- package/dist/modules/commands/components/menus/floating-menu.client.mjs +33 -0
- package/dist/modules/commands/components/menus/inline-menu.client.d.mts +30 -0
- package/dist/modules/commands/components/menus/inline-menu.client.mjs +41 -0
- package/dist/modules/commands/components/menus/responsive-menu.client.d.mts +17 -0
- package/dist/modules/commands/components/menus/responsive-menu.client.mjs +22 -0
- package/dist/modules/commands/components/primitives/alert-dialog-command.client.d.mts +65 -0
- package/dist/modules/commands/components/primitives/alert-dialog-command.client.mjs +138 -0
- package/dist/modules/commands/components/primitives/click-command.client.d.mts +26 -0
- package/dist/modules/commands/components/primitives/click-command.client.mjs +52 -0
- package/dist/modules/commands/components/primitives/command-trigger.client.d.mts +17 -0
- package/dist/modules/commands/components/primitives/command-trigger.client.mjs +42 -0
- package/dist/modules/commands/components/primitives/dialog-command.client.d.mts +53 -0
- package/dist/modules/commands/components/primitives/dialog-command.client.mjs +116 -0
- package/dist/modules/commands/components/primitives/dropdown-command.client.d.mts +47 -0
- package/dist/modules/commands/components/primitives/dropdown-command.client.mjs +131 -0
- package/dist/modules/commands/components/primitives/empty-command.client.d.mts +20 -0
- package/dist/modules/commands/components/primitives/empty-command.client.mjs +44 -0
- package/dist/modules/commands/components/primitives/form-dialog-command.client.d.mts +71 -0
- package/dist/modules/commands/components/primitives/form-dialog-command.client.mjs +163 -0
- package/dist/modules/commands/components/render-command.mjs +41 -7
- package/dist/modules/commands/components/utils/archive-command.client.d.mts +24 -0
- package/dist/modules/commands/components/utils/archive-command.client.mjs +29 -0
- package/dist/modules/commands/components/utils/delete-command.client.d.mts +20 -0
- package/dist/modules/commands/components/utils/delete-command.client.mjs +28 -0
- package/dist/modules/commands/hooks/use-command-mutation.client.d.mts +1 -7
- package/dist/modules/commands/hooks/use-command-mutation.client.mjs +3 -6
- package/dist/modules/commands/hooks/use-command.client.d.mts +31 -0
- package/dist/modules/commands/hooks/use-command.client.mjs +45 -0
- package/dist/modules/commands/lib/builder.d.mts +39 -0
- package/dist/modules/commands/lib/builder.mjs +47 -0
- package/dist/modules/commands/lib/registery.d.mts +35 -0
- package/dist/modules/commands/lib/registery.mjs +43 -0
- package/dist/modules/config/lib/config.d.mts +1 -2
- package/dist/modules/config/lib/config.mjs +1 -2
- package/dist/modules/config/lib/context.d.mts +1 -2
- package/dist/modules/config/lib/context.mjs +1 -2
- package/dist/modules/config/paths/helpers.d.mts +1 -2
- package/dist/modules/config/paths/helpers.mjs +1 -2
- package/dist/modules/config/paths/types.d.mts +1 -2
- package/dist/modules/data-tables/components/cell/common.client.d.mts +1 -2
- package/dist/modules/data-tables/components/cell/common.client.mjs +1 -2
- package/dist/modules/data-tables/components/cell/index.client.d.mts +1 -2
- package/dist/modules/data-tables/components/cell/index.client.mjs +1 -2
- package/dist/modules/data-tables/components/cell/select.client.d.mts +1 -2
- package/dist/modules/data-tables/components/cell/select.client.mjs +1 -2
- package/dist/modules/data-tables/components/column-header.d.mts +1 -2
- package/dist/modules/data-tables/components/column-header.mjs +1 -2
- package/dist/modules/data-tables/components/filters/combobox.client.d.mts +3 -4
- package/dist/modules/data-tables/components/filters/combobox.client.mjs +8 -11
- package/dist/modules/data-tables/components/filters/date-range.client.d.mts +24 -0
- package/dist/modules/data-tables/components/filters/date-range.client.mjs +99 -0
- package/dist/modules/data-tables/components/filters/search.client.d.mts +17 -0
- package/dist/modules/data-tables/components/filters/search.client.mjs +32 -0
- package/dist/modules/data-tables/components/filters/slider.client.d.mts +3 -4
- package/dist/modules/data-tables/components/filters/slider.client.mjs +3 -4
- package/dist/modules/data-tables/components/filters/toggle.client.d.mts +17 -0
- package/dist/modules/data-tables/components/filters/toggle.client.mjs +25 -0
- package/dist/modules/data-tables/components/footer.mjs +1 -2
- package/dist/modules/data-tables/components/header.d.mts +1 -2
- package/dist/modules/data-tables/components/header.mjs +1 -2
- package/dist/modules/data-tables/components/layout.d.mts +1 -2
- package/dist/modules/data-tables/components/layout.mjs +1 -2
- package/dist/modules/data-tables/components/search-input.client.d.mts +1 -2
- package/dist/modules/data-tables/components/search-input.client.mjs +1 -2
- package/dist/modules/data-tables/components/skeleton.d.mts +1 -2
- package/dist/modules/data-tables/components/skeleton.mjs +1 -2
- package/dist/modules/data-tables/components/table.d.mts +1 -2
- package/dist/modules/data-tables/components/table.mjs +1 -2
- package/dist/modules/data-tables/components/toolbar.d.mts +1 -2
- package/dist/modules/data-tables/components/toolbar.mjs +1 -2
- package/dist/modules/data-tables/hooks/use-context.client.d.mts +10 -22
- package/dist/modules/data-tables/hooks/use-context.client.mjs +1 -2
- package/dist/modules/data-tables/hooks/use-search.client.mjs +1 -2
- package/dist/modules/data-tables/hooks/use-selection.client.mjs +9 -4
- package/dist/modules/data-tables/hooks/use-table.client.d.mts +2 -5
- package/dist/modules/data-tables/hooks/use-table.client.mjs +5 -5
- package/dist/modules/data-tables/lib/converters/dto.d.mts +1 -2
- package/dist/modules/data-tables/lib/converters/dto.mjs +1 -2
- package/dist/modules/data-tables/lib/converters/filters.d.mts +40 -0
- package/dist/modules/data-tables/lib/converters/filters.mjs +38 -0
- package/dist/modules/data-tables/lib/converters/pagination.d.mts +17 -0
- package/dist/modules/data-tables/lib/converters/pagination.mjs +15 -0
- package/dist/modules/data-tables/lib/converters/search.d.mts +1 -2
- package/dist/modules/data-tables/lib/converters/search.mjs +1 -2
- package/dist/modules/data-tables/lib/converters/sorting.d.mts +42 -9
- package/dist/modules/data-tables/lib/converters/sorting.mjs +47 -12
- package/dist/modules/data-tables/lib/filters/config.d.mts +1 -2
- package/dist/modules/data-tables/lib/filters/config.mjs +1 -2
- package/dist/modules/data-tables/lib/filters/helpers.d.mts +1 -2
- package/dist/modules/data-tables/lib/filters/helpers.mjs +1 -2
- package/dist/modules/data-tables/lib/filters/parsers.d.mts +6 -2
- package/dist/modules/data-tables/lib/filters/parsers.mjs +10 -2
- package/dist/modules/data-tables/lib/filters/resolvers.d.mts +1 -2
- package/dist/modules/data-tables/lib/filters/resolvers.mjs +1 -2
- package/dist/modules/data-tables/lib/helpers/create-column.mjs +1 -2
- package/dist/modules/data-tables/lib/search-params.d.mts +1 -2
- package/dist/modules/data-tables/lib/search-params.mjs +1 -2
- package/dist/modules/data-tables/lib/types.d.mts +5 -10
- package/dist/modules/data-tables/lib/validators.d.mts +1 -2
- package/dist/modules/data-tables/lib/validators.mjs +1 -2
- package/dist/modules/data-tables/server/get-data.server.d.mts +4 -6
- package/dist/modules/data-tables/server/get-data.server.mjs +6 -7
- package/dist/modules/data-tables/strategies/helpers/sorting.mjs +1 -2
- package/dist/modules/data-tables/strategies/infinite/components.mjs +1 -2
- package/dist/modules/data-tables/strategies/infinite/strategy.d.mts +1 -2
- package/dist/modules/data-tables/strategies/infinite/strategy.mjs +1 -2
- package/dist/modules/data-tables/strategies/pagination/components.mjs +1 -2
- package/dist/modules/data-tables/strategies/pagination/strategy.d.mts +1 -2
- package/dist/modules/data-tables/strategies/pagination/strategy.mjs +1 -2
- package/dist/modules/data-tables/tables/data-table/components/body.mjs +1 -2
- package/dist/modules/data-tables/tables/data-table/components/header.mjs +1 -2
- package/dist/modules/data-tables/tables/data-table/components/row.mjs +1 -2
- package/dist/modules/data-tables/tables/data-table/components/table.d.mts +2 -5
- package/dist/modules/data-tables/tables/data-table/components/table.mjs +2 -3
- package/dist/modules/data-tables/tables/inline-table/components/body.mjs +1 -2
- package/dist/modules/data-tables/tables/inline-table/components/cells/common.d.mts +1 -2
- package/dist/modules/data-tables/tables/inline-table/components/cells/common.mjs +1 -2
- package/dist/modules/data-tables/tables/inline-table/components/cells/drag-handle.client.d.mts +1 -2
- package/dist/modules/data-tables/tables/inline-table/components/cells/drag-handle.client.mjs +1 -2
- package/dist/modules/data-tables/tables/inline-table/components/cells/read-only.d.mts +1 -2
- package/dist/modules/data-tables/tables/inline-table/components/cells/read-only.mjs +1 -2
- package/dist/modules/data-tables/tables/inline-table/components/header.mjs +1 -2
- package/dist/modules/data-tables/tables/inline-table/components/row.client.mjs +3 -9
- package/dist/modules/data-tables/tables/inline-table/components/table.d.mts +2 -5
- package/dist/modules/data-tables/tables/inline-table/components/table.mjs +2 -3
- package/dist/modules/data-tables/tables/inline-table/hooks/context.client.d.mts +2 -5
- package/dist/modules/data-tables/tables/inline-table/hooks/context.client.mjs +1 -2
- package/dist/modules/data-tables/tables/inline-table/hooks/use-hotkeys.client.d.mts +2 -3
- package/dist/modules/data-tables/tables/inline-table/hooks/use-hotkeys.client.mjs +1 -2
- package/dist/modules/database/lib/helpers.d.mts +1 -2
- package/dist/modules/database/lib/helpers.mjs +1 -2
- package/dist/modules/database/lib/service.server.d.mts +1 -2
- package/dist/modules/database/lib/service.server.mjs +1 -2
- package/dist/modules/database/lib/types.d.mts +1 -2
- package/dist/modules/emails/lib/service.server.d.mts +1 -2
- package/dist/modules/emails/lib/service.server.mjs +1 -2
- package/dist/modules/inline/components/cell.client.d.mts +20 -0
- package/dist/modules/inline/components/cell.client.mjs +46 -0
- package/dist/modules/inline/components/field.client.d.mts +36 -0
- package/dist/modules/inline/components/field.client.mjs +61 -0
- package/dist/modules/inline/components/inputs/combobox-dropdown.client.d.mts +27 -0
- package/dist/modules/inline/components/inputs/combobox-dropdown.client.mjs +49 -0
- package/dist/modules/inline/components/inputs/combobox.client.d.mts +22 -0
- package/dist/modules/inline/components/inputs/combobox.client.mjs +45 -0
- package/dist/modules/inline/components/inputs/date-time.client.d.mts +24 -0
- package/dist/modules/inline/components/inputs/date-time.client.mjs +48 -0
- package/dist/modules/inline/components/inputs/date.client.d.mts +66 -0
- package/dist/modules/inline/components/inputs/date.client.mjs +175 -0
- package/dist/modules/inline/components/inputs/editor.client.d.mts +25 -0
- package/dist/modules/inline/components/inputs/editor.client.mjs +51 -0
- package/dist/modules/inline/components/inputs/input-recipient.client.d.mts +27 -0
- package/dist/modules/inline/components/inputs/input-recipient.client.mjs +48 -0
- package/dist/modules/inline/components/inputs/input.client.d.mts +52 -0
- package/dist/modules/inline/components/inputs/input.client.mjs +129 -0
- package/dist/modules/inline/components/inputs/select.client.d.mts +31 -0
- package/dist/modules/inline/components/inputs/select.client.mjs +64 -0
- package/dist/modules/inline/components/inputs/switch.client.d.mts +21 -0
- package/dist/modules/inline/components/inputs/switch.client.mjs +42 -0
- package/dist/modules/inline/components/inputs/toggle.client.d.mts +24 -0
- package/dist/modules/inline/components/inputs/toggle.client.mjs +47 -0
- package/dist/modules/inline/hooks/inline-provider.d.mts +28 -0
- package/dist/modules/inline/hooks/inline-provider.mjs +25 -0
- package/dist/modules/inline/hooks/inline-state.client.d.mts +30 -0
- package/dist/modules/inline/hooks/inline-state.client.mjs +25 -0
- package/dist/modules/inline/hooks/use-inline.client.d.mts +144 -0
- package/dist/modules/inline/hooks/use-inline.client.mjs +125 -0
- package/dist/modules/inline/lib/validators.d.mts +56 -0
- package/dist/modules/inline/lib/validators.mjs +34 -0
- package/dist/modules/inline/lib/variants.d.mts +11 -0
- package/dist/modules/inline/lib/variants.mjs +21 -0
- package/dist/modules/router/handler/caller.client.d.mts +1 -2
- package/dist/modules/router/handler/caller.client.mjs +1 -2
- package/dist/modules/router/handler/caller.server.d.mts +1 -2
- package/dist/modules/router/handler/caller.server.mjs +1 -2
- package/dist/modules/router/handler/context.server.d.mts +2 -3
- package/dist/modules/router/handler/context.server.mjs +1 -2
- package/dist/modules/router/handler/init.server.d.mts +3 -31
- package/dist/modules/router/handler/init.server.mjs +8 -6
- package/dist/modules/router/handler/register.server.d.mts +1 -2
- package/dist/modules/router/handler/register.server.mjs +1 -2
- package/dist/modules/router/handler/route.server.d.mts +2 -3
- package/dist/modules/router/handler/route.server.mjs +1 -2
- package/dist/modules/router/lib/helpers.mjs +1 -2
- package/dist/modules/router/lib/query-client.d.mts +1 -2
- package/dist/modules/router/lib/query-client.mjs +1 -2
- package/dist/modules/router/lib/query-client.server.d.mts +1 -2
- package/dist/modules/router/lib/query-client.server.mjs +1 -2
- package/dist/modules/router/lib/validators.d.mts +1 -2
- package/dist/modules/router/lib/validators.mjs +1 -2
- package/dist/modules/storage/components/dropzone-context.client.d.mts +1 -2
- package/dist/modules/storage/components/dropzone-context.client.mjs +1 -2
- package/dist/modules/storage/components/dropzone.client.d.mts +3 -4
- package/dist/modules/storage/components/dropzone.client.mjs +1 -2
- package/dist/modules/storage/components/image-grid.client.d.mts +1 -2
- package/dist/modules/storage/components/image-grid.client.mjs +1 -2
- package/dist/modules/storage/components/image.client.d.mts +1 -2
- package/dist/modules/storage/components/image.client.mjs +1 -2
- package/dist/modules/storage/components/upload-button.client.d.mts +1 -2
- package/dist/modules/storage/components/upload-button.client.mjs +1 -2
- package/dist/modules/storage/components/upload-zone-context.client.d.mts +1 -2
- package/dist/modules/storage/components/upload-zone-context.client.mjs +1 -2
- package/dist/modules/storage/components/upload-zone.client.d.mts +1 -2
- package/dist/modules/storage/components/upload-zone.client.mjs +1 -2
- package/dist/modules/storage/lib/constants.d.mts +1 -2
- package/dist/modules/storage/lib/constants.mjs +1 -2
- package/dist/modules/storage/lib/helpers.d.mts +1 -2
- package/dist/modules/storage/lib/helpers.mjs +1 -2
- package/dist/modules/storage/lib/procedures.server.d.mts +10 -11
- package/dist/modules/storage/lib/procedures.server.mjs +1 -2
- package/dist/modules/storage/lib/router-handlers.server.d.mts +2 -3
- package/dist/modules/storage/lib/router-handlers.server.mjs +1 -2
- package/dist/modules/storage/lib/schema.d.mts +2 -3
- package/dist/modules/storage/lib/schema.mjs +1 -2
- package/dist/modules/storage/lib/service.server.d.mts +34 -35
- package/dist/modules/storage/lib/service.server.mjs +1 -2
- package/dist/modules/storage/lib/upload.client.d.mts +1 -2
- package/dist/modules/storage/lib/upload.client.mjs +1 -2
- package/dist/modules/storage/lib/validators.d.mts +5 -6
- package/dist/modules/storage/lib/validators.mjs +1 -2
- package/dist/modules/storage/providers/adapters/s3.server.d.mts +1 -2
- package/dist/modules/storage/providers/adapters/s3.server.mjs +1 -2
- package/dist/modules/storage/providers/lib/constants.d.mts +1 -2
- package/dist/modules/storage/providers/lib/constants.mjs +1 -2
- package/dist/modules/storage/providers/lib/errors.d.mts +1 -2
- package/dist/modules/storage/providers/lib/errors.mjs +1 -2
- package/dist/modules/storage/providers/lib/types.d.mts +1 -2
- package/dist/modules/storage/providers/lib/validators.d.mts +1 -2
- package/dist/modules/storage/providers/lib/validators.mjs +1 -2
- package/dist/router/client.d.mts +1 -1
- package/dist/router/client.mjs +1 -1
- package/dist/router/server.d.mts +7 -7
- package/dist/router/server.mjs +7 -7
- package/dist/router.d.mts +1 -1
- package/dist/router.mjs +1 -1
- package/dist/src/components/common/icons.d.mts +60 -0
- package/dist/src/components/common/icons.mjs +121 -0
- package/dist/src/components/common/status.d.mts +52 -0
- package/dist/src/components/common/status.mjs +55 -0
- package/dist/src/components/editor/components/content.client.d.mts +6 -0
- package/dist/src/components/editor/components/content.client.mjs +16 -0
- package/dist/src/components/editor/components/editor.client.d.mts +48 -0
- package/dist/src/components/editor/components/editor.client.mjs +55 -0
- package/dist/src/components/editor/components/menu-nodes.client.mjs +92 -0
- package/dist/src/components/editor/components/menu.client.d.mts +9 -0
- package/dist/src/components/editor/components/menu.client.mjs +168 -0
- package/dist/src/components/editor/extensions/file-handler/extension.d.mts +20 -0
- package/dist/src/components/editor/extensions/file-handler/extension.mjs +39 -0
- package/dist/src/components/editor/extensions/file-handler/strategy.d.mts +26 -0
- package/dist/src/components/editor/extensions/file-handler/strategy.mjs +110 -0
- package/dist/src/components/editor/extensions/file-handler/utils.mjs +49 -0
- package/dist/src/components/editor/extensions/image/extension.d.mts +7 -0
- package/dist/src/components/editor/extensions/image/extension.mjs +50 -0
- package/dist/src/components/editor/extensions/skeleton/extension.mjs +40 -0
- package/dist/src/components/editor/extensions/skeleton/renderer.mjs +24 -0
- package/dist/src/components/editor/lib/constants.d.mts +62 -0
- package/dist/src/components/editor/lib/constants.mjs +101 -0
- package/dist/src/components/editor/lib/extensions.d.mts +67 -0
- package/dist/src/components/editor/lib/extensions.mjs +49 -0
- package/dist/src/components/editor/lib/helpers.d.mts +21 -0
- package/dist/src/components/editor/lib/helpers.mjs +68 -0
- package/dist/src/components/editor/lib/types.d.mts +9 -0
- package/dist/src/components/editor/lib/variants.mjs +15 -0
- package/dist/src/components/emails/forget-password-email.mjs +50 -0
- package/dist/src/components/header/back-button.client.d.mts +9 -0
- package/dist/src/components/header/back-button.client.mjs +42 -0
- package/dist/src/components/header/bottom-bar.client.d.mts +28 -0
- package/dist/src/components/header/bottom-bar.client.mjs +37 -0
- package/dist/src/components/header/breadcrumbs.client.d.mts +34 -0
- package/dist/src/components/header/breadcrumbs.client.mjs +63 -0
- package/dist/src/components/header/header.client.d.mts +11 -0
- package/dist/src/components/header/header.client.mjs +14 -0
- package/dist/src/components/header/indicator.client.mjs +24 -0
- package/dist/src/components/header/mobile-nav-switcher.client.d.mts +9 -0
- package/dist/src/components/header/mobile-nav-switcher.client.mjs +18 -0
- package/dist/src/components/header/top-bar.client.d.mts +42 -0
- package/dist/src/components/header/top-bar.client.mjs +47 -0
- package/dist/src/components/layouts/admin-content.client.d.mts +12 -0
- package/dist/src/components/layouts/admin-content.client.mjs +22 -0
- package/dist/src/components/layouts/admin-error-pages.d.mts +22 -0
- package/dist/src/components/layouts/admin-error-pages.mjs +59 -0
- package/dist/src/components/layouts/admin-layout.d.mts +7 -0
- package/dist/src/components/layouts/admin-layout.mjs +13 -0
- package/dist/src/components/layouts/admin-loading.d.mts +7 -0
- package/dist/src/components/layouts/admin-loading.mjs +13 -0
- package/dist/src/components/layouts/empty-page.d.mts +30 -0
- package/dist/src/components/layouts/empty-page.mjs +28 -0
- package/dist/src/components/layouts/error-page.d.mts +47 -0
- package/dist/src/components/layouts/error-page.mjs +53 -0
- package/dist/src/components/layouts/error-sections.d.mts +28 -0
- package/dist/src/components/layouts/error-sections.mjs +46 -0
- package/dist/src/components/layouts/list-layout.d.mts +11 -0
- package/dist/src/components/layouts/list-layout.mjs +14 -0
- package/dist/src/components/layouts/providers.client.d.mts +9 -0
- package/dist/src/components/layouts/providers.client.mjs +31 -0
- package/dist/src/components/layouts/root-error-pages.d.mts +9 -0
- package/dist/src/components/layouts/root-error-pages.mjs +16 -0
- package/dist/src/components/layouts/root-layout.server.d.mts +36 -0
- package/dist/src/components/layouts/root-layout.server.mjs +46 -0
- package/dist/src/components/layouts/root-loading.d.mts +6 -0
- package/dist/src/components/layouts/root-loading.mjs +13 -0
- package/dist/src/components/layouts/tab-layout.d.mts +22 -0
- package/dist/src/components/layouts/tab-layout.mjs +50 -0
- package/dist/src/components/lists/data-list.d.mts +30 -0
- package/dist/src/components/lists/data-list.mjs +35 -0
- package/dist/src/components/lists/data-stack.d.mts +48 -0
- package/dist/src/components/lists/data-stack.mjs +56 -0
- package/dist/src/components/navigation/admin-sidebar-header.client.mjs +92 -0
- package/dist/src/components/navigation/admin-sidebar-paths.client.d.mts +91 -0
- package/dist/src/components/navigation/admin-sidebar-paths.client.mjs +143 -0
- package/dist/src/components/navigation/admin-sidebar-skeleton.mjs +30 -0
- package/dist/src/components/ui/accordion.client.d.mts +25 -0
- package/dist/src/components/ui/accordion.client.mjs +57 -0
- package/dist/src/components/ui/alert-dialog.client.d.mts +60 -0
- package/dist/src/components/ui/alert-dialog.client.mjs +103 -0
- package/dist/src/components/ui/alert.d.mts +28 -0
- package/dist/src/components/ui/alert.mjs +44 -0
- package/dist/src/components/ui/aspect-ratio.client.d.mts +9 -0
- package/dist/src/components/ui/aspect-ratio.client.mjs +15 -0
- package/dist/src/components/ui/avatar.client.d.mts +34 -0
- package/dist/src/components/ui/avatar.client.mjs +53 -0
- package/dist/src/components/ui/badge.d.mts +19 -0
- package/dist/src/components/ui/badge.mjs +28 -0
- package/dist/src/components/ui/breadcrumb.d.mts +37 -0
- package/dist/src/components/ui/breadcrumb.mjs +70 -0
- package/dist/src/components/ui/button-group.d.mts +28 -0
- package/dist/src/components/ui/button-group.mjs +40 -0
- package/dist/src/components/ui/button.d.mts +21 -0
- package/dist/src/components/ui/button.mjs +48 -0
- package/dist/src/components/ui/calendar.client.d.mts +30 -0
- package/dist/src/components/ui/calendar.client.mjs +113 -0
- package/dist/src/components/ui/card.d.mts +37 -0
- package/dist/src/components/ui/card.mjs +57 -0
- package/dist/src/components/ui/carousel.client.d.mts +56 -0
- package/dist/src/components/ui/carousel.client.mjs +135 -0
- package/dist/src/components/ui/chart.client.d.mts +71 -0
- package/dist/src/components/ui/chart.client.mjs +142 -0
- package/dist/src/components/ui/checkbox.client.d.mts +11 -0
- package/dist/src/components/ui/checkbox.client.mjs +23 -0
- package/dist/src/components/ui/collapsible.client.d.mts +15 -0
- package/dist/src/components/ui/collapsible.client.mjs +27 -0
- package/dist/src/components/ui/color-picker.client.d.mts +15 -0
- package/dist/src/components/ui/color-picker.client.mjs +38 -0
- package/dist/src/components/ui/combobox-dropdown.client.d.mts +45 -0
- package/dist/src/components/ui/combobox-dropdown.client.mjs +94 -0
- package/dist/src/components/ui/combobox.client.d.mts +30 -0
- package/dist/src/components/ui/combobox.client.mjs +66 -0
- package/dist/src/components/ui/command.client.d.mts +58 -0
- package/dist/src/components/ui/command.client.mjs +97 -0
- package/dist/src/components/ui/context-menu.client.d.mts +85 -0
- package/dist/src/components/ui/context-menu.client.mjs +127 -0
- package/dist/src/components/ui/date-picker.client.d.mts +20 -0
- package/dist/src/components/ui/date-picker.client.mjs +43 -0
- package/dist/src/components/ui/dialog.client.d.mts +51 -0
- package/dist/src/components/ui/dialog.client.mjs +98 -0
- package/dist/src/components/ui/drawer.client.d.mts +44 -0
- package/dist/src/components/ui/drawer.client.mjs +80 -0
- package/dist/src/components/ui/dropdown-menu.client.d.mts +84 -0
- package/dist/src/components/ui/dropdown-menu.client.mjs +130 -0
- package/dist/src/components/ui/empty.d.mts +35 -0
- package/dist/src/components/ui/empty.mjs +61 -0
- package/dist/src/components/ui/field.client.d.mts +64 -0
- package/dist/src/components/ui/field.client.mjs +113 -0
- package/dist/src/components/ui/form.client.d.mts +47 -0
- package/dist/src/components/ui/form.client.mjs +92 -0
- package/dist/src/components/ui/hover-card.client.d.mts +19 -0
- package/dist/src/components/ui/hover-card.client.mjs +34 -0
- package/dist/src/components/ui/input-date-time.client.d.mts +22 -0
- package/dist/src/components/ui/input-date-time.client.mjs +33 -0
- package/dist/src/components/ui/input-date.d.mts +13 -0
- package/dist/src/components/ui/input-date.mjs +15 -0
- package/dist/src/components/ui/input-group.client.d.mts +58 -0
- package/dist/src/components/ui/input-group.client.mjs +105 -0
- package/dist/src/components/ui/input-recipient.d.mts +26 -0
- package/dist/src/components/ui/input-recipient.mjs +218 -0
- package/dist/src/components/ui/input-time.d.mts +13 -0
- package/dist/src/components/ui/input-time.mjs +15 -0
- package/dist/src/components/ui/input.d.mts +11 -0
- package/dist/src/components/ui/input.mjs +15 -0
- package/dist/src/components/ui/item.d.mts +62 -0
- package/dist/src/components/ui/item.mjs +118 -0
- package/dist/src/components/ui/kbd.d.mts +13 -0
- package/dist/src/components/ui/kbd.mjs +21 -0
- package/dist/src/components/ui/label.d.mts +11 -0
- package/dist/src/components/ui/label.mjs +17 -0
- package/dist/src/components/ui/loader.d.mts +6 -0
- package/dist/src/components/ui/loader.mjs +62 -0
- package/dist/src/components/ui/navigation-menu.d.mts +46 -0
- package/dist/src/components/ui/navigation-menu.mjs +81 -0
- package/dist/src/components/ui/pagination.d.mts +45 -0
- package/dist/src/components/ui/pagination.mjs +87 -0
- package/dist/src/components/ui/popover.client.d.mts +34 -0
- package/dist/src/components/ui/popover.client.mjs +58 -0
- package/dist/src/components/ui/progress.client.d.mts +12 -0
- package/dist/src/components/ui/progress.client.mjs +22 -0
- package/dist/src/components/ui/radio-group.d.mts +15 -0
- package/dist/src/components/ui/radio-group.mjs +29 -0
- package/dist/src/components/ui/resizable.client.d.mts +20 -0
- package/dist/src/components/ui/resizable.client.mjs +31 -0
- package/dist/src/components/ui/scroll-area.d.mts +17 -0
- package/dist/src/components/ui/scroll-area.mjs +39 -0
- package/dist/src/components/ui/select.client.d.mts +53 -0
- package/dist/src/components/ui/select.client.mjs +102 -0
- package/dist/src/components/ui/separator.d.mts +13 -0
- package/dist/src/components/ui/separator.mjs +19 -0
- package/dist/src/components/ui/sheet.client.d.mts +42 -0
- package/dist/src/components/ui/sheet.client.mjs +92 -0
- package/dist/src/components/ui/sidebar.client.d.mts +167 -0
- package/dist/src/components/ui/sidebar.client.mjs +373 -0
- package/dist/src/components/ui/skeleton.d.mts +9 -0
- package/dist/src/components/ui/skeleton.mjs +14 -0
- package/dist/src/components/ui/slider.d.mts +15 -0
- package/dist/src/components/ui/slider.mjs +39 -0
- package/dist/src/components/ui/sonner.client.d.mts +9 -0
- package/dist/src/components/ui/sonner.client.mjs +24 -0
- package/dist/src/components/ui/spinner.d.mts +9 -0
- package/dist/src/components/ui/spinner.mjs +16 -0
- package/dist/src/components/ui/switch.client.d.mts +14 -0
- package/dist/src/components/ui/switch.client.mjs +22 -0
- package/dist/src/components/ui/tabs.client.d.mts +30 -0
- package/dist/src/components/ui/tabs.client.mjs +48 -0
- package/dist/src/components/ui/textarea.d.mts +10 -0
- package/dist/src/components/ui/textarea.mjs +14 -0
- package/dist/src/components/ui/toggle-group.client.d.mts +28 -0
- package/dist/src/components/ui/toggle-group.client.mjs +54 -0
- package/dist/src/components/ui/toggle.client.d.mts +19 -0
- package/dist/src/components/ui/toggle.client.mjs +39 -0
- package/dist/src/components/ui/tooltip.client.d.mts +23 -0
- package/dist/src/components/ui/tooltip.client.mjs +38 -0
- package/dist/src/lib/hooks/use-action.d.mts +16 -0
- package/dist/src/lib/hooks/use-action.mjs +41 -0
- package/dist/src/lib/hooks/use-indicator.d.mts +39 -0
- package/dist/src/lib/hooks/use-indicator.mjs +63 -0
- package/dist/src/lib/hooks/use-mobile.client.d.mts +6 -0
- package/dist/src/lib/hooks/use-mobile.client.mjs +21 -0
- package/dist/src/lib/types/config.d.mts +11 -0
- package/dist/src/lib/utils/array-move.d.mts +10 -0
- package/dist/src/lib/utils/array-move.mjs +12 -0
- package/dist/src/lib/utils/cn.d.mts +6 -0
- package/dist/src/lib/utils/cn.mjs +10 -0
- package/dist/src/lib/utils/fonts.d.mts +7 -0
- package/dist/src/lib/utils/fonts.mjs +11 -0
- package/dist/src/lib/utils/format.d.mts +51 -0
- package/dist/src/lib/utils/format.mjs +113 -0
- package/dist/src/lib/utils/manifest.d.mts +7 -0
- package/dist/src/lib/utils/manifest.mjs +35 -0
- package/dist/src/lib/utils/markdown.d.mts +9 -0
- package/dist/src/lib/utils/markdown.mjs +14 -0
- package/dist/src/lib/utils/url.d.mts +9 -0
- package/dist/src/lib/utils/url.mjs +15 -0
- package/dist/src/lib/utils/user-agent.mjs +74 -0
- package/dist/src/modules/auth/components/allowed.client.d.mts +33 -0
- package/dist/src/modules/auth/components/allowed.client.mjs +19 -0
- package/dist/src/modules/auth/components/auth-layout.server.d.mts +9 -0
- package/dist/src/modules/auth/components/auth-layout.server.mjs +36 -0
- package/dist/src/modules/auth/components/auth-loading.d.mts +6 -0
- package/dist/src/modules/auth/components/auth-loading.mjs +17 -0
- package/dist/src/modules/auth/components/create-first-user-guard.server.d.mts +15 -0
- package/dist/src/modules/auth/components/create-first-user-guard.server.mjs +15 -0
- package/dist/src/modules/auth/components/create-first-user-page.client.d.mts +6 -0
- package/dist/src/modules/auth/components/create-first-user-page.client.mjs +153 -0
- package/dist/src/modules/auth/components/forget-password-page.client.d.mts +6 -0
- package/dist/src/modules/auth/components/forget-password-page.client.mjs +72 -0
- package/dist/src/modules/auth/components/guard.server.d.mts +14 -0
- package/dist/src/modules/auth/components/guard.server.mjs +20 -0
- package/dist/src/modules/auth/components/login-page.client.d.mts +11 -0
- package/dist/src/modules/auth/components/login-page.client.mjs +155 -0
- package/dist/src/modules/auth/components/reset-password-page.client.d.mts +11 -0
- package/dist/src/modules/auth/components/reset-password-page.client.mjs +121 -0
- package/dist/src/modules/auth/components/update-password-command.d.mts +22 -0
- package/dist/src/modules/auth/components/update-password-command.mjs +47 -0
- package/dist/src/modules/auth/db/schema.d.mts +983 -0
- package/dist/src/modules/auth/db/schema.mjs +101 -0
- package/dist/src/modules/auth/handler/create-client.client.d.mts +6393 -0
- package/dist/src/modules/auth/handler/create-client.client.mjs +25 -0
- package/dist/src/modules/auth/handler/proxy.server.d.mts +11 -0
- package/dist/src/modules/auth/handler/proxy.server.mjs +20 -0
- package/dist/src/modules/auth/handler/route.server.d.mts +16 -0
- package/dist/src/modules/auth/handler/route.server.mjs +28 -0
- package/dist/src/modules/auth/handler/service.server.d.mts +2101 -0
- package/dist/src/modules/auth/handler/service.server.mjs +87 -0
- package/dist/src/modules/auth/hooks/use-auth-client.d.mts +23 -0
- package/dist/src/modules/auth/hooks/use-auth-client.mjs +30 -0
- package/dist/src/modules/auth/hooks/use-permission.d.mts +42 -0
- package/dist/src/modules/auth/hooks/use-permission.mjs +57 -0
- package/dist/src/modules/auth/hooks/use-session.d.mts +40 -0
- package/dist/src/modules/auth/hooks/use-session.mjs +22 -0
- package/dist/src/modules/auth/lib/helpers.server.d.mts +84 -0
- package/dist/src/modules/auth/lib/helpers.server.mjs +41 -0
- package/dist/src/modules/auth/lib/permissions.d.mts +17 -0
- package/dist/src/modules/auth/lib/permissions.mjs +14 -0
- package/dist/src/modules/auth/lib/validators.d.mts +299 -0
- package/dist/src/modules/auth/lib/validators.mjs +59 -0
- package/dist/src/modules/commands/components/menus/context-menu.client.d.mts +40 -0
- package/dist/src/modules/commands/components/menus/context-menu.client.mjs +47 -0
- package/dist/src/modules/commands/components/menus/dropdown-menu.client.d.mts +30 -0
- package/dist/src/modules/commands/components/menus/dropdown-menu.client.mjs +58 -0
- package/dist/src/modules/commands/components/menus/floating-menu.client.d.mts +30 -0
- package/dist/src/modules/commands/components/menus/floating-menu.client.mjs +33 -0
- package/dist/src/modules/commands/components/menus/inline-menu.client.d.mts +30 -0
- package/dist/src/modules/commands/components/menus/inline-menu.client.mjs +41 -0
- package/dist/src/modules/commands/components/menus/responsive-menu.client.d.mts +17 -0
- package/dist/src/modules/commands/components/menus/responsive-menu.client.mjs +22 -0
- package/dist/src/modules/commands/components/primitives/alert-dialog-command.client.d.mts +65 -0
- package/dist/src/modules/commands/components/primitives/alert-dialog-command.client.mjs +138 -0
- package/dist/src/modules/commands/components/primitives/click-command.client.d.mts +26 -0
- package/dist/src/modules/commands/components/primitives/click-command.client.mjs +52 -0
- package/dist/src/modules/commands/components/primitives/command-trigger.client.d.mts +17 -0
- package/dist/src/modules/commands/components/primitives/command-trigger.client.mjs +42 -0
- package/dist/src/modules/commands/components/primitives/dialog-command.client.d.mts +53 -0
- package/dist/src/modules/commands/components/primitives/dialog-command.client.mjs +116 -0
- package/dist/src/modules/commands/components/primitives/dropdown-command.client.d.mts +47 -0
- package/dist/src/modules/commands/components/primitives/dropdown-command.client.mjs +131 -0
- package/dist/src/modules/commands/components/primitives/empty-command.client.d.mts +20 -0
- package/dist/src/modules/commands/components/primitives/empty-command.client.mjs +44 -0
- package/dist/src/modules/commands/components/primitives/form-dialog-command.client.d.mts +71 -0
- package/dist/src/modules/commands/components/primitives/form-dialog-command.client.mjs +163 -0
- package/dist/src/modules/commands/components/render-command.mjs +50 -0
- package/dist/src/modules/commands/components/utils/archive-command.client.d.mts +24 -0
- package/dist/src/modules/commands/components/utils/archive-command.client.mjs +29 -0
- package/dist/src/modules/commands/components/utils/delete-command.client.d.mts +20 -0
- package/dist/src/modules/commands/components/utils/delete-command.client.mjs +28 -0
- package/dist/src/modules/commands/hooks/use-command-mutation.client.d.mts +11 -0
- package/dist/src/modules/commands/hooks/use-command-mutation.client.mjs +39 -0
- package/dist/src/modules/commands/hooks/use-command.client.d.mts +31 -0
- package/dist/src/modules/commands/hooks/use-command.client.mjs +45 -0
- package/dist/src/modules/commands/lib/builder.d.mts +39 -0
- package/dist/src/modules/commands/lib/builder.mjs +47 -0
- package/dist/src/modules/commands/lib/registery.d.mts +35 -0
- package/dist/src/modules/commands/lib/registery.mjs +43 -0
- package/dist/src/modules/config/lib/config.d.mts +16 -0
- package/dist/src/modules/config/lib/config.mjs +8 -0
- package/dist/src/modules/config/lib/context.d.mts +17 -0
- package/dist/src/modules/config/lib/context.mjs +7 -0
- package/dist/src/modules/config/paths/helpers.d.mts +9 -0
- package/dist/src/modules/config/paths/helpers.mjs +8 -0
- package/dist/src/modules/config/paths/types.d.mts +31 -0
- package/dist/src/modules/data-tables/components/cell/common.client.d.mts +26 -0
- package/dist/src/modules/data-tables/components/cell/common.client.mjs +35 -0
- package/dist/src/modules/data-tables/components/cell/index.client.d.mts +10 -0
- package/dist/src/modules/data-tables/components/cell/index.client.mjs +24 -0
- package/dist/src/modules/data-tables/components/cell/select.client.d.mts +10 -0
- package/dist/src/modules/data-tables/components/cell/select.client.mjs +36 -0
- package/dist/src/modules/data-tables/components/column-header.d.mts +15 -0
- package/dist/src/modules/data-tables/components/column-header.mjs +46 -0
- package/dist/src/modules/data-tables/components/filters/combobox.client.d.mts +27 -0
- package/dist/src/modules/data-tables/components/filters/combobox.client.mjs +97 -0
- package/dist/src/modules/data-tables/components/filters/date-range.client.d.mts +24 -0
- package/dist/src/modules/data-tables/components/filters/date-range.client.mjs +99 -0
- package/dist/src/modules/data-tables/components/filters/search.client.d.mts +17 -0
- package/dist/src/modules/data-tables/components/filters/search.client.mjs +32 -0
- package/dist/src/modules/data-tables/components/filters/slider.client.d.mts +22 -0
- package/dist/src/modules/data-tables/components/filters/slider.client.mjs +128 -0
- package/dist/src/modules/data-tables/components/filters/toggle.client.d.mts +17 -0
- package/dist/src/modules/data-tables/components/filters/toggle.client.mjs +25 -0
- package/dist/src/modules/data-tables/components/footer.mjs +28 -0
- package/dist/src/modules/data-tables/components/header.d.mts +40 -0
- package/dist/src/modules/data-tables/components/header.mjs +43 -0
- package/dist/src/modules/data-tables/components/layout.d.mts +11 -0
- package/dist/src/modules/data-tables/components/layout.mjs +14 -0
- package/dist/src/modules/data-tables/components/search-input.client.d.mts +6 -0
- package/dist/src/modules/data-tables/components/search-input.client.mjs +19 -0
- package/dist/src/modules/data-tables/components/skeleton.d.mts +6 -0
- package/dist/src/modules/data-tables/components/skeleton.mjs +21 -0
- package/dist/src/modules/data-tables/components/table.d.mts +33 -0
- package/dist/src/modules/data-tables/components/table.mjs +55 -0
- package/dist/src/modules/data-tables/components/toolbar.d.mts +22 -0
- package/dist/src/modules/data-tables/components/toolbar.mjs +21 -0
- package/dist/src/modules/data-tables/hooks/use-context.client.d.mts +47 -0
- package/dist/src/modules/data-tables/hooks/use-context.client.mjs +34 -0
- package/dist/src/modules/data-tables/hooks/use-search.client.mjs +39 -0
- package/dist/src/modules/data-tables/hooks/use-selection.client.mjs +44 -0
- package/dist/src/modules/data-tables/hooks/use-table.client.d.mts +10 -0
- package/dist/src/modules/data-tables/hooks/use-table.client.mjs +55 -0
- package/dist/src/modules/data-tables/lib/converters/dto.d.mts +50 -0
- package/dist/src/modules/data-tables/lib/converters/dto.mjs +24 -0
- package/dist/src/modules/data-tables/lib/converters/filters.d.mts +41 -0
- package/dist/src/modules/data-tables/lib/converters/filters.mjs +38 -0
- package/dist/src/modules/data-tables/lib/converters/pagination.d.mts +17 -0
- package/dist/src/modules/data-tables/lib/converters/pagination.mjs +15 -0
- package/dist/src/modules/data-tables/lib/converters/search.d.mts +16 -0
- package/dist/src/modules/data-tables/lib/converters/search.mjs +15 -0
- package/dist/src/modules/data-tables/lib/converters/sorting.d.mts +48 -0
- package/dist/src/modules/data-tables/lib/converters/sorting.mjs +55 -0
- package/dist/src/modules/data-tables/lib/filters/config.d.mts +13 -0
- package/dist/src/modules/data-tables/lib/filters/config.mjs +5 -0
- package/dist/src/modules/data-tables/lib/filters/helpers.d.mts +10 -0
- package/dist/src/modules/data-tables/lib/filters/helpers.mjs +16 -0
- package/dist/src/modules/data-tables/lib/filters/parsers.d.mts +46 -0
- package/dist/src/modules/data-tables/lib/filters/parsers.mjs +47 -0
- package/dist/src/modules/data-tables/lib/filters/resolvers.d.mts +28 -0
- package/dist/src/modules/data-tables/lib/filters/resolvers.mjs +55 -0
- package/dist/src/modules/data-tables/lib/helpers/create-column.mjs +10 -0
- package/dist/src/modules/data-tables/lib/search-params.d.mts +21 -0
- package/dist/src/modules/data-tables/lib/search-params.mjs +16 -0
- package/dist/src/modules/data-tables/lib/types.d.mts +54 -0
- package/dist/src/modules/data-tables/lib/validators.d.mts +19 -0
- package/dist/src/modules/data-tables/lib/validators.mjs +16 -0
- package/dist/src/modules/data-tables/server/get-data.server.d.mts +29 -0
- package/dist/src/modules/data-tables/server/get-data.server.mjs +47 -0
- package/dist/src/modules/data-tables/strategies/helpers/sorting.mjs +37 -0
- package/dist/src/modules/data-tables/strategies/infinite/components.mjs +50 -0
- package/dist/src/modules/data-tables/strategies/infinite/strategy.d.mts +20 -0
- package/dist/src/modules/data-tables/strategies/infinite/strategy.mjs +50 -0
- package/dist/src/modules/data-tables/strategies/pagination/components.mjs +131 -0
- package/dist/src/modules/data-tables/strategies/pagination/strategy.d.mts +12 -0
- package/dist/src/modules/data-tables/strategies/pagination/strategy.mjs +45 -0
- package/dist/src/modules/data-tables/tables/data-table/components/body.mjs +32 -0
- package/dist/src/modules/data-tables/tables/data-table/components/header.mjs +12 -0
- package/dist/src/modules/data-tables/tables/data-table/components/row.mjs +13 -0
- package/dist/src/modules/data-tables/tables/data-table/components/table.d.mts +8 -0
- package/dist/src/modules/data-tables/tables/data-table/components/table.mjs +42 -0
- package/dist/src/modules/data-tables/tables/inline-table/components/body.mjs +69 -0
- package/dist/src/modules/data-tables/tables/inline-table/components/cells/common.d.mts +11 -0
- package/dist/src/modules/data-tables/tables/inline-table/components/cells/common.mjs +14 -0
- package/dist/src/modules/data-tables/tables/inline-table/components/cells/drag-handle.client.d.mts +24 -0
- package/dist/src/modules/data-tables/tables/inline-table/components/cells/drag-handle.client.mjs +38 -0
- package/dist/src/modules/data-tables/tables/inline-table/components/cells/read-only.d.mts +11 -0
- package/dist/src/modules/data-tables/tables/inline-table/components/cells/read-only.mjs +14 -0
- package/dist/src/modules/data-tables/tables/inline-table/components/header.mjs +10 -0
- package/dist/src/modules/data-tables/tables/inline-table/components/row.client.mjs +24 -0
- package/dist/src/modules/data-tables/tables/inline-table/components/table.d.mts +14 -0
- package/dist/src/modules/data-tables/tables/inline-table/components/table.mjs +52 -0
- package/dist/src/modules/data-tables/tables/inline-table/hooks/context.client.d.mts +48 -0
- package/dist/src/modules/data-tables/tables/inline-table/hooks/context.client.mjs +58 -0
- package/dist/src/modules/data-tables/tables/inline-table/hooks/use-hotkeys.client.d.mts +29 -0
- package/dist/src/modules/data-tables/tables/inline-table/hooks/use-hotkeys.client.mjs +94 -0
- package/dist/src/modules/database/lib/helpers.d.mts +15 -0
- package/dist/src/modules/database/lib/helpers.mjs +16 -0
- package/dist/src/modules/database/lib/service.server.d.mts +33 -0
- package/dist/src/modules/database/lib/service.server.mjs +23 -0
- package/dist/src/modules/database/lib/types.d.mts +4 -0
- package/dist/src/modules/emails/lib/service.server.d.mts +28 -0
- package/dist/src/modules/emails/lib/service.server.mjs +20 -0
- package/dist/src/modules/inline/components/cell.client.d.mts +20 -0
- package/dist/src/modules/inline/components/cell.client.mjs +46 -0
- package/dist/src/modules/inline/components/field.client.d.mts +36 -0
- package/dist/src/modules/inline/components/field.client.mjs +61 -0
- package/dist/src/modules/inline/components/inputs/combobox-dropdown.client.d.mts +27 -0
- package/dist/src/modules/inline/components/inputs/combobox-dropdown.client.mjs +49 -0
- package/dist/src/modules/inline/components/inputs/combobox.client.d.mts +22 -0
- package/dist/src/modules/inline/components/inputs/combobox.client.mjs +45 -0
- package/dist/src/modules/inline/components/inputs/date-time.client.d.mts +24 -0
- package/dist/src/modules/inline/components/inputs/date-time.client.mjs +48 -0
- package/dist/src/modules/inline/components/inputs/date.client.d.mts +66 -0
- package/dist/src/modules/inline/components/inputs/date.client.mjs +175 -0
- package/dist/src/modules/inline/components/inputs/editor.client.d.mts +25 -0
- package/dist/src/modules/inline/components/inputs/editor.client.mjs +51 -0
- package/dist/src/modules/inline/components/inputs/input-recipient.client.d.mts +27 -0
- package/dist/src/modules/inline/components/inputs/input-recipient.client.mjs +48 -0
- package/dist/src/modules/inline/components/inputs/input.client.d.mts +52 -0
- package/dist/src/modules/inline/components/inputs/input.client.mjs +129 -0
- package/dist/src/modules/inline/components/inputs/select.client.d.mts +31 -0
- package/dist/src/modules/inline/components/inputs/select.client.mjs +64 -0
- package/dist/src/modules/inline/components/inputs/switch.client.d.mts +21 -0
- package/dist/src/modules/inline/components/inputs/switch.client.mjs +42 -0
- package/dist/src/modules/inline/components/inputs/toggle.client.d.mts +24 -0
- package/dist/src/modules/inline/components/inputs/toggle.client.mjs +47 -0
- package/dist/src/modules/inline/hooks/inline-provider.d.mts +28 -0
- package/dist/src/modules/inline/hooks/inline-provider.mjs +25 -0
- package/dist/src/modules/inline/hooks/inline-state.client.d.mts +30 -0
- package/dist/src/modules/inline/hooks/inline-state.client.mjs +25 -0
- package/dist/src/modules/inline/hooks/use-inline.client.d.mts +144 -0
- package/dist/src/modules/inline/hooks/use-inline.client.mjs +125 -0
- package/dist/src/modules/inline/lib/validators.d.mts +56 -0
- package/dist/src/modules/inline/lib/validators.mjs +34 -0
- package/dist/src/modules/inline/lib/variants.d.mts +11 -0
- package/dist/src/modules/inline/lib/variants.mjs +21 -0
- package/dist/src/modules/router/handler/caller.client.d.mts +10 -0
- package/dist/src/modules/router/handler/caller.client.mjs +23 -0
- package/dist/src/modules/router/handler/caller.server.d.mts +6 -0
- package/dist/src/modules/router/handler/caller.server.mjs +7 -0
- package/dist/src/modules/router/handler/context.server.d.mts +62 -0
- package/dist/src/modules/router/handler/context.server.mjs +20 -0
- package/dist/src/modules/router/handler/init.server.d.mts +65 -0
- package/dist/src/modules/router/handler/init.server.mjs +55 -0
- package/dist/src/modules/router/handler/register.server.d.mts +8 -0
- package/dist/src/modules/router/handler/register.server.mjs +10 -0
- package/dist/src/modules/router/handler/route.server.d.mts +21 -0
- package/dist/src/modules/router/handler/route.server.mjs +32 -0
- package/dist/src/modules/router/lib/error.server.d.mts +2 -0
- package/dist/src/modules/router/lib/error.server.mjs +3 -0
- package/dist/src/modules/router/lib/helpers.mjs +7 -0
- package/dist/src/modules/router/lib/query-client.d.mts +9 -0
- package/dist/src/modules/router/lib/query-client.mjs +50 -0
- package/dist/src/modules/router/lib/query-client.server.d.mts +17 -0
- package/dist/src/modules/router/lib/query-client.server.mjs +23 -0
- package/dist/src/modules/router/lib/validators.d.mts +12 -0
- package/dist/src/modules/router/lib/validators.mjs +10 -0
- package/dist/src/modules/storage/components/dropzone-context.client.d.mts +18 -0
- package/dist/src/modules/storage/components/dropzone-context.client.mjs +17 -0
- package/dist/src/modules/storage/components/dropzone.client.d.mts +52 -0
- package/dist/src/modules/storage/components/dropzone.client.mjs +110 -0
- package/dist/src/modules/storage/components/image-grid.client.d.mts +32 -0
- package/dist/src/modules/storage/components/image-grid.client.mjs +167 -0
- package/dist/src/modules/storage/components/image.client.d.mts +7 -0
- package/dist/src/modules/storage/components/image.client.mjs +16 -0
- package/dist/src/modules/storage/components/upload-button.client.d.mts +11 -0
- package/dist/src/modules/storage/components/upload-button.client.mjs +33 -0
- package/dist/src/modules/storage/components/upload-zone-context.client.d.mts +30 -0
- package/dist/src/modules/storage/components/upload-zone-context.client.mjs +20 -0
- package/dist/src/modules/storage/components/upload-zone.client.d.mts +27 -0
- package/dist/src/modules/storage/components/upload-zone.client.mjs +111 -0
- package/dist/src/modules/storage/lib/constants.d.mts +5 -0
- package/dist/src/modules/storage/lib/constants.mjs +5 -0
- package/dist/src/modules/storage/lib/helpers.d.mts +29 -0
- package/dist/src/modules/storage/lib/helpers.mjs +49 -0
- package/dist/src/modules/storage/lib/procedures.server.d.mts +1990 -0
- package/dist/src/modules/storage/lib/procedures.server.mjs +21 -0
- package/dist/src/modules/storage/lib/router-handlers.server.d.mts +40 -0
- package/dist/src/modules/storage/lib/router-handlers.server.mjs +123 -0
- package/dist/src/modules/storage/lib/schema.d.mts +291 -0
- package/dist/src/modules/storage/lib/schema.mjs +37 -0
- package/dist/src/modules/storage/lib/service.server.d.mts +2217 -0
- package/dist/src/modules/storage/lib/service.server.mjs +514 -0
- package/dist/src/modules/storage/lib/upload.client.d.mts +57 -0
- package/dist/src/modules/storage/lib/upload.client.mjs +86 -0
- package/dist/src/modules/storage/lib/validators.d.mts +935 -0
- package/dist/src/modules/storage/lib/validators.mjs +52 -0
- package/dist/src/modules/storage/providers/adapters/s3.server.d.mts +18 -0
- package/dist/src/modules/storage/providers/adapters/s3.server.mjs +172 -0
- package/dist/src/modules/storage/providers/lib/constants.d.mts +5 -0
- package/dist/src/modules/storage/providers/lib/constants.mjs +5 -0
- package/dist/src/modules/storage/providers/lib/errors.d.mts +11 -0
- package/dist/src/modules/storage/providers/lib/errors.mjs +12 -0
- package/dist/src/modules/storage/providers/lib/types.d.mts +20 -0
- package/dist/src/modules/storage/providers/lib/validators.d.mts +111 -0
- package/dist/src/modules/storage/providers/lib/validators.mjs +74 -0
- package/dist/storage/client.d.mts +8 -8
- package/dist/storage/client.mjs +8 -8
- package/dist/storage/server.d.mts +4 -4
- package/dist/storage/server.mjs +4 -4
- package/dist/storage.d.mts +8 -8
- package/dist/storage.mjs +7 -7
- package/package.json +69 -66
- package/src/components/emails/forget-password-email.tsx +1 -1
- package/src/components/ui/accordion.client.tsx +1 -1
- package/src/components/ui/alert.tsx +1 -1
- package/src/components/ui/avatar.client.tsx +1 -1
- package/src/components/ui/breadcrumb.tsx +2 -2
- package/src/components/ui/card.tsx +1 -1
- package/src/components/ui/carousel.client.tsx +2 -2
- package/src/components/ui/chart.client.tsx +2 -2
- package/src/components/ui/checkbox.client.tsx +1 -1
- package/src/components/ui/collapsible.client.tsx +1 -1
- package/src/components/ui/command.client.tsx +19 -4
- package/src/components/ui/context-menu.client.tsx +6 -6
- package/src/components/ui/drawer.client.tsx +5 -5
- package/src/components/ui/dropdown-menu.client.tsx +5 -5
- package/src/components/ui/empty.tsx +1 -1
- package/src/components/ui/field.client.tsx +3 -3
- package/src/components/ui/hover-card.client.tsx +1 -1
- package/src/components/ui/input-group.client.tsx +3 -3
- package/src/components/ui/input-recipient.tsx +1 -1
- package/src/components/ui/item.tsx +5 -5
- package/src/components/ui/navigation-menu.tsx +4 -4
- package/src/components/ui/pagination.tsx +0 -1
- package/src/components/ui/radio-group.tsx +1 -1
- package/src/components/ui/sheet.client.tsx +3 -3
- package/src/components/ui/tabs.client.tsx +3 -3
- package/src/entry.ts +3 -3
- package/src/modules/auth/components/allowed.client.tsx +1 -2
- package/src/modules/auth/components/update-password-command.tsx +1 -1
- package/src/modules/auth/lib/helpers.server.ts +1 -1
- package/src/modules/auth/lib/validators.ts +7 -0
- package/src/modules/commands/components/menus/context-menu.client.tsx +79 -0
- package/src/modules/commands/components/menus/dropdown-menu.client.tsx +85 -0
- package/src/modules/commands/components/menus/floating-menu.client.tsx +64 -0
- package/src/modules/commands/components/menus/inline-menu.client.tsx +66 -0
- package/src/modules/commands/components/menus/responsive-menu.client.tsx +38 -0
- package/src/modules/commands/components/primitives/alert-dialog-command.client.tsx +208 -0
- package/src/modules/commands/components/primitives/click-command.client.tsx +81 -0
- package/src/modules/commands/components/primitives/command-trigger.client.tsx +60 -0
- package/src/modules/commands/components/primitives/dialog-command.client.tsx +151 -0
- package/src/modules/commands/components/primitives/dropdown-command.client.tsx +211 -0
- package/src/modules/commands/components/primitives/empty-command.client.tsx +55 -0
- package/src/modules/commands/components/primitives/form-dialog-command.client.tsx +245 -0
- package/src/modules/commands/components/render-command.tsx +51 -10
- package/src/modules/commands/components/utils/archive-command.client.tsx +54 -0
- package/src/modules/commands/components/utils/delete-command.client.tsx +70 -0
- package/src/modules/commands/entry.client.ts +15 -23
- package/src/modules/commands/entry.ts +5 -2
- package/src/modules/commands/hooks/use-command-mutation.client.ts +48 -0
- package/src/modules/commands/hooks/use-command.client.tsx +78 -0
- package/src/modules/commands/lib/builder.ts +91 -0
- package/src/modules/commands/lib/registery.ts +116 -0
- package/src/modules/data-tables/components/filters/combobox.client.tsx +9 -13
- package/src/modules/data-tables/components/filters/date-range.client.tsx +127 -0
- package/src/modules/data-tables/components/filters/search.client.tsx +37 -0
- package/src/modules/data-tables/components/filters/slider.client.tsx +4 -4
- package/src/modules/data-tables/components/filters/toggle.client.tsx +32 -0
- package/src/modules/data-tables/components/footer.tsx +2 -2
- package/src/modules/data-tables/entry.client.ts +3 -0
- package/src/modules/data-tables/entry.server.ts +2 -2
- package/src/modules/data-tables/hooks/use-context.client.tsx +9 -11
- package/src/modules/data-tables/hooks/use-selection.client.ts +12 -5
- package/src/modules/data-tables/hooks/use-table.client.ts +4 -6
- package/src/modules/data-tables/lib/converters/filters.ts +85 -0
- package/src/modules/data-tables/lib/converters/pagination.ts +13 -0
- package/src/modules/data-tables/lib/converters/sorting.ts +61 -18
- package/src/modules/data-tables/lib/filters/parsers.ts +18 -0
- package/src/modules/data-tables/lib/types.ts +4 -4
- package/src/modules/data-tables/server/get-data.server.ts +19 -10
- package/src/modules/data-tables/strategies/infinite/components.tsx +2 -10
- package/src/modules/data-tables/strategies/pagination/components.tsx +1 -5
- package/src/modules/data-tables/tables/data-table/components/body.tsx +2 -2
- package/src/modules/data-tables/tables/data-table/components/header.tsx +1 -1
- package/src/modules/data-tables/tables/data-table/components/row.tsx +2 -21
- package/src/modules/data-tables/tables/data-table/components/table.tsx +2 -2
- package/src/modules/data-tables/tables/inline-table/components/body.tsx +1 -1
- package/src/modules/data-tables/tables/inline-table/components/header.tsx +1 -5
- package/src/modules/data-tables/tables/inline-table/components/row.client.tsx +7 -11
- package/src/modules/data-tables/tables/inline-table/components/table.tsx +2 -2
- package/src/modules/data-tables/tables/inline-table/hooks/context.client.tsx +1 -1
- package/src/modules/data-tables/tables/inline-table/hooks/use-hotkeys.client.ts +1 -2
- package/src/modules/inline/components/cell.client.tsx +53 -0
- package/src/modules/inline/components/field.client.tsx +64 -0
- package/src/modules/inline/components/inputs/combobox-dropdown.client.tsx +106 -0
- package/src/modules/inline/components/inputs/combobox.client.tsx +94 -0
- package/src/modules/inline/components/inputs/date-time.client.tsx +96 -0
- package/src/modules/inline/components/inputs/date.client.tsx +295 -0
- package/src/modules/inline/components/inputs/editor.client.tsx +99 -0
- package/src/modules/inline/components/inputs/input-recipient.client.tsx +97 -0
- package/src/modules/inline/components/inputs/input.client.tsx +244 -0
- package/src/modules/inline/components/inputs/select.client.tsx +126 -0
- package/src/modules/inline/components/inputs/switch.client.tsx +88 -0
- package/src/modules/inline/components/inputs/toggle.client.tsx +94 -0
- package/src/modules/inline/entry.client.ts +23 -0
- package/src/modules/inline/hooks/inline-provider.tsx +32 -0
- package/src/modules/inline/hooks/inline-state.client.tsx +33 -0
- package/src/modules/inline/hooks/use-inline.client.tsx +298 -0
- package/src/modules/router/handler/context.server.ts +1 -1
- package/src/modules/router/handler/init.server.ts +2 -1
- package/src/modules/router/handler/route.server.ts +1 -1
- package/src/modules/storage/lib/procedures.server.ts +1 -1
- package/src/modules/storage/lib/router-handlers.server.ts +1 -1
- package/dist/components/common/icons.d.mts.map +0 -1
- package/dist/components/common/icons.mjs.map +0 -1
- package/dist/components/common/status.d.mts.map +0 -1
- package/dist/components/common/status.mjs.map +0 -1
- package/dist/components/editor/components/content.client.d.mts.map +0 -1
- package/dist/components/editor/components/content.client.mjs.map +0 -1
- package/dist/components/editor/components/editor.client.d.mts.map +0 -1
- package/dist/components/editor/components/editor.client.mjs.map +0 -1
- package/dist/components/editor/components/menu-nodes.client.mjs.map +0 -1
- package/dist/components/editor/components/menu.client.d.mts.map +0 -1
- package/dist/components/editor/components/menu.client.mjs.map +0 -1
- package/dist/components/editor/extensions/file-handler/extension.d.mts.map +0 -1
- package/dist/components/editor/extensions/file-handler/extension.mjs.map +0 -1
- package/dist/components/editor/extensions/file-handler/strategy.d.mts.map +0 -1
- package/dist/components/editor/extensions/file-handler/strategy.mjs.map +0 -1
- package/dist/components/editor/extensions/file-handler/utils.mjs.map +0 -1
- package/dist/components/editor/extensions/image/extension.d.mts.map +0 -1
- package/dist/components/editor/extensions/image/extension.mjs.map +0 -1
- package/dist/components/editor/extensions/skeleton/extension.mjs.map +0 -1
- package/dist/components/editor/extensions/skeleton/renderer.mjs.map +0 -1
- package/dist/components/editor/lib/constants.d.mts.map +0 -1
- package/dist/components/editor/lib/constants.mjs.map +0 -1
- package/dist/components/editor/lib/extensions.d.mts.map +0 -1
- package/dist/components/editor/lib/extensions.mjs.map +0 -1
- package/dist/components/editor/lib/helpers.d.mts.map +0 -1
- package/dist/components/editor/lib/helpers.mjs.map +0 -1
- package/dist/components/editor/lib/types.d.mts.map +0 -1
- package/dist/components/editor/lib/variants.mjs.map +0 -1
- package/dist/components/emails/forget-password-email.mjs.map +0 -1
- package/dist/components/header/back-button.client.d.mts.map +0 -1
- package/dist/components/header/back-button.client.mjs.map +0 -1
- package/dist/components/header/bottom-bar.client.d.mts.map +0 -1
- package/dist/components/header/bottom-bar.client.mjs.map +0 -1
- package/dist/components/header/breadcrumbs.client.d.mts.map +0 -1
- package/dist/components/header/breadcrumbs.client.mjs.map +0 -1
- package/dist/components/header/header.client.d.mts.map +0 -1
- package/dist/components/header/header.client.mjs.map +0 -1
- package/dist/components/header/indicator.client.mjs.map +0 -1
- package/dist/components/header/mobile-nav-switcher.client.d.mts.map +0 -1
- package/dist/components/header/mobile-nav-switcher.client.mjs.map +0 -1
- package/dist/components/header/top-bar.client.d.mts.map +0 -1
- package/dist/components/header/top-bar.client.mjs.map +0 -1
- package/dist/components/layouts/admin-content.client.d.mts.map +0 -1
- package/dist/components/layouts/admin-content.client.mjs.map +0 -1
- package/dist/components/layouts/admin-error-pages.d.mts.map +0 -1
- package/dist/components/layouts/admin-error-pages.mjs.map +0 -1
- package/dist/components/layouts/admin-layout.d.mts.map +0 -1
- package/dist/components/layouts/admin-layout.mjs.map +0 -1
- package/dist/components/layouts/admin-loading.d.mts.map +0 -1
- package/dist/components/layouts/admin-loading.mjs.map +0 -1
- package/dist/components/layouts/empty-page.d.mts.map +0 -1
- package/dist/components/layouts/empty-page.mjs.map +0 -1
- package/dist/components/layouts/error-page.d.mts.map +0 -1
- package/dist/components/layouts/error-page.mjs.map +0 -1
- package/dist/components/layouts/error-sections.d.mts.map +0 -1
- package/dist/components/layouts/error-sections.mjs.map +0 -1
- package/dist/components/layouts/list-layout.d.mts.map +0 -1
- package/dist/components/layouts/list-layout.mjs.map +0 -1
- package/dist/components/layouts/providers.client.d.mts.map +0 -1
- package/dist/components/layouts/providers.client.mjs.map +0 -1
- package/dist/components/layouts/root-error-pages.d.mts.map +0 -1
- package/dist/components/layouts/root-error-pages.mjs.map +0 -1
- package/dist/components/layouts/root-layout.server.d.mts.map +0 -1
- package/dist/components/layouts/root-layout.server.mjs.map +0 -1
- package/dist/components/layouts/root-loading.d.mts.map +0 -1
- package/dist/components/layouts/root-loading.mjs.map +0 -1
- package/dist/components/layouts/tab-layout.d.mts.map +0 -1
- package/dist/components/layouts/tab-layout.mjs.map +0 -1
- package/dist/components/lists/data-list.d.mts.map +0 -1
- package/dist/components/lists/data-list.mjs.map +0 -1
- package/dist/components/lists/data-stack.d.mts.map +0 -1
- package/dist/components/lists/data-stack.mjs.map +0 -1
- package/dist/components/navigation/admin-sidebar-header.client.mjs.map +0 -1
- package/dist/components/navigation/admin-sidebar-paths.client.d.mts.map +0 -1
- package/dist/components/navigation/admin-sidebar-paths.client.mjs.map +0 -1
- package/dist/components/navigation/admin-sidebar-skeleton.mjs.map +0 -1
- package/dist/components/ui/accordion.client.d.mts.map +0 -1
- package/dist/components/ui/accordion.client.mjs.map +0 -1
- package/dist/components/ui/alert-dialog.client.d.mts.map +0 -1
- package/dist/components/ui/alert-dialog.client.mjs.map +0 -1
- package/dist/components/ui/alert.d.mts.map +0 -1
- package/dist/components/ui/alert.mjs.map +0 -1
- package/dist/components/ui/aspect-ratio.client.d.mts.map +0 -1
- package/dist/components/ui/aspect-ratio.client.mjs.map +0 -1
- package/dist/components/ui/avatar.client.d.mts.map +0 -1
- package/dist/components/ui/avatar.client.mjs.map +0 -1
- package/dist/components/ui/badge.d.mts.map +0 -1
- package/dist/components/ui/badge.mjs.map +0 -1
- package/dist/components/ui/breadcrumb.d.mts.map +0 -1
- package/dist/components/ui/breadcrumb.mjs.map +0 -1
- package/dist/components/ui/button-group.d.mts.map +0 -1
- package/dist/components/ui/button-group.mjs.map +0 -1
- package/dist/components/ui/button.d.mts.map +0 -1
- package/dist/components/ui/button.mjs.map +0 -1
- package/dist/components/ui/calendar.client.d.mts.map +0 -1
- package/dist/components/ui/calendar.client.mjs.map +0 -1
- package/dist/components/ui/card.d.mts.map +0 -1
- package/dist/components/ui/card.mjs.map +0 -1
- package/dist/components/ui/carousel.client.d.mts.map +0 -1
- package/dist/components/ui/carousel.client.mjs.map +0 -1
- package/dist/components/ui/chart.client.d.mts.map +0 -1
- package/dist/components/ui/chart.client.mjs.map +0 -1
- package/dist/components/ui/checkbox.client.d.mts.map +0 -1
- package/dist/components/ui/checkbox.client.mjs.map +0 -1
- package/dist/components/ui/collapsible.client.d.mts.map +0 -1
- package/dist/components/ui/collapsible.client.mjs.map +0 -1
- package/dist/components/ui/color-picker.client.d.mts.map +0 -1
- package/dist/components/ui/color-picker.client.mjs.map +0 -1
- package/dist/components/ui/combobox-dropdown.client.d.mts.map +0 -1
- package/dist/components/ui/combobox-dropdown.client.mjs.map +0 -1
- package/dist/components/ui/combobox.client.d.mts.map +0 -1
- package/dist/components/ui/combobox.client.mjs.map +0 -1
- package/dist/components/ui/command.client.d.mts.map +0 -1
- package/dist/components/ui/command.client.mjs.map +0 -1
- package/dist/components/ui/context-menu.client.d.mts.map +0 -1
- package/dist/components/ui/context-menu.client.mjs.map +0 -1
- package/dist/components/ui/date-picker.client.d.mts.map +0 -1
- package/dist/components/ui/date-picker.client.mjs.map +0 -1
- package/dist/components/ui/dialog.client.d.mts.map +0 -1
- package/dist/components/ui/dialog.client.mjs.map +0 -1
- package/dist/components/ui/drawer.client.d.mts.map +0 -1
- package/dist/components/ui/drawer.client.mjs.map +0 -1
- package/dist/components/ui/dropdown-menu.client.d.mts.map +0 -1
- package/dist/components/ui/dropdown-menu.client.mjs.map +0 -1
- package/dist/components/ui/empty.d.mts.map +0 -1
- package/dist/components/ui/empty.mjs.map +0 -1
- package/dist/components/ui/field.client.d.mts.map +0 -1
- package/dist/components/ui/field.client.mjs.map +0 -1
- package/dist/components/ui/form.client.d.mts.map +0 -1
- package/dist/components/ui/form.client.mjs.map +0 -1
- package/dist/components/ui/hover-card.client.d.mts.map +0 -1
- package/dist/components/ui/hover-card.client.mjs.map +0 -1
- package/dist/components/ui/input-date-time.client.d.mts.map +0 -1
- package/dist/components/ui/input-date-time.client.mjs.map +0 -1
- package/dist/components/ui/input-date.d.mts.map +0 -1
- package/dist/components/ui/input-date.mjs.map +0 -1
- package/dist/components/ui/input-group.client.d.mts.map +0 -1
- package/dist/components/ui/input-group.client.mjs.map +0 -1
- package/dist/components/ui/input-recipient.d.mts.map +0 -1
- package/dist/components/ui/input-recipient.mjs.map +0 -1
- package/dist/components/ui/input-time.d.mts.map +0 -1
- package/dist/components/ui/input-time.mjs.map +0 -1
- package/dist/components/ui/input.d.mts.map +0 -1
- package/dist/components/ui/input.mjs.map +0 -1
- package/dist/components/ui/item.d.mts.map +0 -1
- package/dist/components/ui/item.mjs.map +0 -1
- package/dist/components/ui/kbd.d.mts.map +0 -1
- package/dist/components/ui/kbd.mjs.map +0 -1
- package/dist/components/ui/label.d.mts.map +0 -1
- package/dist/components/ui/label.mjs.map +0 -1
- package/dist/components/ui/loader.d.mts.map +0 -1
- package/dist/components/ui/loader.mjs.map +0 -1
- package/dist/components/ui/navigation-menu.d.mts.map +0 -1
- package/dist/components/ui/navigation-menu.mjs.map +0 -1
- package/dist/components/ui/pagination.d.mts.map +0 -1
- package/dist/components/ui/pagination.mjs.map +0 -1
- package/dist/components/ui/popover.client.d.mts.map +0 -1
- package/dist/components/ui/popover.client.mjs.map +0 -1
- package/dist/components/ui/progress.client.d.mts.map +0 -1
- package/dist/components/ui/progress.client.mjs.map +0 -1
- package/dist/components/ui/radio-group.d.mts.map +0 -1
- package/dist/components/ui/radio-group.mjs.map +0 -1
- package/dist/components/ui/resizable.client.d.mts.map +0 -1
- package/dist/components/ui/resizable.client.mjs.map +0 -1
- package/dist/components/ui/scroll-area.d.mts.map +0 -1
- package/dist/components/ui/scroll-area.mjs.map +0 -1
- package/dist/components/ui/select.client.d.mts.map +0 -1
- package/dist/components/ui/select.client.mjs.map +0 -1
- package/dist/components/ui/separator.d.mts.map +0 -1
- package/dist/components/ui/separator.mjs.map +0 -1
- package/dist/components/ui/sheet.client.d.mts.map +0 -1
- package/dist/components/ui/sheet.client.mjs.map +0 -1
- package/dist/components/ui/sidebar.client.d.mts.map +0 -1
- package/dist/components/ui/sidebar.client.mjs.map +0 -1
- package/dist/components/ui/skeleton.d.mts.map +0 -1
- package/dist/components/ui/skeleton.mjs.map +0 -1
- package/dist/components/ui/slider.d.mts.map +0 -1
- package/dist/components/ui/slider.mjs.map +0 -1
- package/dist/components/ui/sonner.client.d.mts.map +0 -1
- package/dist/components/ui/sonner.client.mjs.map +0 -1
- package/dist/components/ui/spinner.d.mts.map +0 -1
- package/dist/components/ui/spinner.mjs.map +0 -1
- package/dist/components/ui/switch.client.d.mts.map +0 -1
- package/dist/components/ui/switch.client.mjs.map +0 -1
- package/dist/components/ui/tabs.client.d.mts.map +0 -1
- package/dist/components/ui/tabs.client.mjs.map +0 -1
- package/dist/components/ui/textarea.d.mts.map +0 -1
- package/dist/components/ui/textarea.mjs.map +0 -1
- package/dist/components/ui/toggle-group.client.d.mts.map +0 -1
- package/dist/components/ui/toggle-group.client.mjs.map +0 -1
- package/dist/components/ui/toggle.client.d.mts.map +0 -1
- package/dist/components/ui/toggle.client.mjs.map +0 -1
- package/dist/components/ui/tooltip.client.d.mts.map +0 -1
- package/dist/components/ui/tooltip.client.mjs.map +0 -1
- package/dist/inline-edit/client.d.mts +0 -15
- package/dist/inline-edit/client.mjs +0 -16
- package/dist/inline-edit.d.mts +0 -2
- package/dist/inline-edit.mjs +0 -3
- package/dist/lib/hooks/use-action.d.mts.map +0 -1
- package/dist/lib/hooks/use-action.mjs.map +0 -1
- package/dist/lib/hooks/use-indicator.d.mts.map +0 -1
- package/dist/lib/hooks/use-indicator.mjs.map +0 -1
- package/dist/lib/hooks/use-mobile.client.d.mts.map +0 -1
- package/dist/lib/hooks/use-mobile.client.mjs.map +0 -1
- package/dist/lib/types/config.d.mts.map +0 -1
- package/dist/lib/utils/array-move.d.mts.map +0 -1
- package/dist/lib/utils/array-move.mjs.map +0 -1
- package/dist/lib/utils/cn.d.mts.map +0 -1
- package/dist/lib/utils/cn.mjs.map +0 -1
- package/dist/lib/utils/fonts.d.mts.map +0 -1
- package/dist/lib/utils/fonts.mjs.map +0 -1
- package/dist/lib/utils/format.d.mts.map +0 -1
- package/dist/lib/utils/format.mjs.map +0 -1
- package/dist/lib/utils/manifest.d.mts.map +0 -1
- package/dist/lib/utils/manifest.mjs.map +0 -1
- package/dist/lib/utils/markdown.d.mts.map +0 -1
- package/dist/lib/utils/markdown.mjs.map +0 -1
- package/dist/lib/utils/url.d.mts.map +0 -1
- package/dist/lib/utils/url.mjs.map +0 -1
- package/dist/lib/utils/user-agent.mjs.map +0 -1
- package/dist/modules/auth/components/allowed.client.d.mts.map +0 -1
- package/dist/modules/auth/components/allowed.client.mjs.map +0 -1
- package/dist/modules/auth/components/auth-layout.server.d.mts.map +0 -1
- package/dist/modules/auth/components/auth-layout.server.mjs.map +0 -1
- package/dist/modules/auth/components/auth-loading.d.mts.map +0 -1
- package/dist/modules/auth/components/auth-loading.mjs.map +0 -1
- package/dist/modules/auth/components/create-first-user-guard.server.d.mts.map +0 -1
- package/dist/modules/auth/components/create-first-user-guard.server.mjs.map +0 -1
- package/dist/modules/auth/components/create-first-user-page.client.d.mts.map +0 -1
- package/dist/modules/auth/components/create-first-user-page.client.mjs.map +0 -1
- package/dist/modules/auth/components/forget-password-page.client.d.mts.map +0 -1
- package/dist/modules/auth/components/forget-password-page.client.mjs.map +0 -1
- package/dist/modules/auth/components/guard.server.d.mts.map +0 -1
- package/dist/modules/auth/components/guard.server.mjs.map +0 -1
- package/dist/modules/auth/components/login-page.client.d.mts.map +0 -1
- package/dist/modules/auth/components/login-page.client.mjs.map +0 -1
- package/dist/modules/auth/components/reset-password-page.client.d.mts.map +0 -1
- package/dist/modules/auth/components/reset-password-page.client.mjs.map +0 -1
- package/dist/modules/auth/components/update-password-command.d.mts.map +0 -1
- package/dist/modules/auth/components/update-password-command.mjs.map +0 -1
- package/dist/modules/auth/db/schema.d.mts.map +0 -1
- package/dist/modules/auth/db/schema.mjs.map +0 -1
- package/dist/modules/auth/handler/create-client.client.d.mts.map +0 -1
- package/dist/modules/auth/handler/create-client.client.mjs.map +0 -1
- package/dist/modules/auth/handler/proxy.server.d.mts.map +0 -1
- package/dist/modules/auth/handler/proxy.server.mjs.map +0 -1
- package/dist/modules/auth/handler/route.server.d.mts.map +0 -1
- package/dist/modules/auth/handler/route.server.mjs.map +0 -1
- package/dist/modules/auth/handler/service.server.d.mts.map +0 -1
- package/dist/modules/auth/handler/service.server.mjs.map +0 -1
- package/dist/modules/auth/hooks/use-auth-client.d.mts.map +0 -1
- package/dist/modules/auth/hooks/use-auth-client.mjs.map +0 -1
- package/dist/modules/auth/hooks/use-permission.d.mts.map +0 -1
- package/dist/modules/auth/hooks/use-permission.mjs.map +0 -1
- package/dist/modules/auth/hooks/use-session.d.mts.map +0 -1
- package/dist/modules/auth/hooks/use-session.mjs.map +0 -1
- package/dist/modules/auth/lib/helpers.server.d.mts.map +0 -1
- package/dist/modules/auth/lib/helpers.server.mjs.map +0 -1
- package/dist/modules/auth/lib/permissions.d.mts.map +0 -1
- package/dist/modules/auth/lib/permissions.mjs.map +0 -1
- package/dist/modules/auth/lib/validators.d.mts.map +0 -1
- package/dist/modules/auth/lib/validators.mjs.map +0 -1
- package/dist/modules/commands/components/alert-dialog-command.client.d.mts +0 -93
- package/dist/modules/commands/components/alert-dialog-command.client.d.mts.map +0 -1
- package/dist/modules/commands/components/alert-dialog-command.client.mjs +0 -159
- package/dist/modules/commands/components/alert-dialog-command.client.mjs.map +0 -1
- package/dist/modules/commands/components/click-command.client.d.mts +0 -27
- package/dist/modules/commands/components/click-command.client.d.mts.map +0 -1
- package/dist/modules/commands/components/click-command.client.mjs +0 -64
- package/dist/modules/commands/components/click-command.client.mjs.map +0 -1
- package/dist/modules/commands/components/command-trigger.client.d.mts +0 -34
- package/dist/modules/commands/components/command-trigger.client.d.mts.map +0 -1
- package/dist/modules/commands/components/command-trigger.client.mjs +0 -50
- package/dist/modules/commands/components/command-trigger.client.mjs.map +0 -1
- package/dist/modules/commands/components/dialog-command.client.d.mts +0 -78
- package/dist/modules/commands/components/dialog-command.client.d.mts.map +0 -1
- package/dist/modules/commands/components/dialog-command.client.mjs +0 -134
- package/dist/modules/commands/components/dialog-command.client.mjs.map +0 -1
- package/dist/modules/commands/components/dropdown-command.client.d.mts +0 -60
- package/dist/modules/commands/components/dropdown-command.client.d.mts.map +0 -1
- package/dist/modules/commands/components/dropdown-command.client.mjs +0 -132
- package/dist/modules/commands/components/dropdown-command.client.mjs.map +0 -1
- package/dist/modules/commands/components/empty-command.client.d.mts +0 -19
- package/dist/modules/commands/components/empty-command.client.d.mts.map +0 -1
- package/dist/modules/commands/components/empty-command.client.mjs +0 -55
- package/dist/modules/commands/components/empty-command.client.mjs.map +0 -1
- package/dist/modules/commands/components/form-dialog-command.client.d.mts +0 -102
- package/dist/modules/commands/components/form-dialog-command.client.d.mts.map +0 -1
- package/dist/modules/commands/components/form-dialog-command.client.mjs +0 -188
- package/dist/modules/commands/components/form-dialog-command.client.mjs.map +0 -1
- package/dist/modules/commands/components/render-command.mjs.map +0 -1
- package/dist/modules/commands/hooks/context.client.mjs +0 -32
- package/dist/modules/commands/hooks/context.client.mjs.map +0 -1
- package/dist/modules/commands/hooks/use-command-menu.client.d.mts +0 -24
- package/dist/modules/commands/hooks/use-command-menu.client.d.mts.map +0 -1
- package/dist/modules/commands/hooks/use-command-menu.client.mjs +0 -84
- package/dist/modules/commands/hooks/use-command-menu.client.mjs.map +0 -1
- package/dist/modules/commands/hooks/use-command-mutation.client.d.mts.map +0 -1
- package/dist/modules/commands/hooks/use-command-mutation.client.mjs.map +0 -1
- package/dist/modules/commands/lib/definitions.d.mts +0 -53
- package/dist/modules/commands/lib/definitions.d.mts.map +0 -1
- package/dist/modules/commands/lib/factory.d.mts +0 -25
- package/dist/modules/commands/lib/factory.d.mts.map +0 -1
- package/dist/modules/commands/lib/factory.mjs +0 -8
- package/dist/modules/commands/lib/factory.mjs.map +0 -1
- package/dist/modules/commands/menus/context-menu.client.d.mts +0 -27
- package/dist/modules/commands/menus/context-menu.client.d.mts.map +0 -1
- package/dist/modules/commands/menus/context-menu.client.mjs +0 -60
- package/dist/modules/commands/menus/context-menu.client.mjs.map +0 -1
- package/dist/modules/commands/menus/dropdown-menu.client.d.mts +0 -19
- package/dist/modules/commands/menus/dropdown-menu.client.d.mts.map +0 -1
- package/dist/modules/commands/menus/dropdown-menu.client.mjs +0 -63
- package/dist/modules/commands/menus/dropdown-menu.client.mjs.map +0 -1
- package/dist/modules/commands/menus/floating-menu.client.d.mts +0 -19
- package/dist/modules/commands/menus/floating-menu.client.d.mts.map +0 -1
- package/dist/modules/commands/menus/floating-menu.client.mjs +0 -46
- package/dist/modules/commands/menus/floating-menu.client.mjs.map +0 -1
- package/dist/modules/commands/menus/inline-menu.client.d.mts +0 -20
- package/dist/modules/commands/menus/inline-menu.client.d.mts.map +0 -1
- package/dist/modules/commands/menus/inline-menu.client.mjs +0 -46
- package/dist/modules/commands/menus/inline-menu.client.mjs.map +0 -1
- package/dist/modules/commands/menus/responsive-menu.client.d.mts +0 -10
- package/dist/modules/commands/menus/responsive-menu.client.d.mts.map +0 -1
- package/dist/modules/commands/menus/responsive-menu.client.mjs +0 -23
- package/dist/modules/commands/menus/responsive-menu.client.mjs.map +0 -1
- package/dist/modules/commands/utils/archive-command.client.d.mts +0 -33
- package/dist/modules/commands/utils/archive-command.client.d.mts.map +0 -1
- package/dist/modules/commands/utils/archive-command.client.mjs +0 -38
- package/dist/modules/commands/utils/archive-command.client.mjs.map +0 -1
- package/dist/modules/commands/utils/delete-command.client.d.mts +0 -28
- package/dist/modules/commands/utils/delete-command.client.d.mts.map +0 -1
- package/dist/modules/commands/utils/delete-command.client.mjs +0 -36
- package/dist/modules/commands/utils/delete-command.client.mjs.map +0 -1
- package/dist/modules/config/lib/config.d.mts.map +0 -1
- package/dist/modules/config/lib/config.mjs.map +0 -1
- package/dist/modules/config/lib/context.d.mts.map +0 -1
- package/dist/modules/config/lib/context.mjs.map +0 -1
- package/dist/modules/config/paths/helpers.d.mts.map +0 -1
- package/dist/modules/config/paths/helpers.mjs.map +0 -1
- package/dist/modules/config/paths/types.d.mts.map +0 -1
- package/dist/modules/data-tables/components/cell/common.client.d.mts.map +0 -1
- package/dist/modules/data-tables/components/cell/common.client.mjs.map +0 -1
- package/dist/modules/data-tables/components/cell/index.client.d.mts.map +0 -1
- package/dist/modules/data-tables/components/cell/index.client.mjs.map +0 -1
- package/dist/modules/data-tables/components/cell/select.client.d.mts.map +0 -1
- package/dist/modules/data-tables/components/cell/select.client.mjs.map +0 -1
- package/dist/modules/data-tables/components/column-header.d.mts.map +0 -1
- package/dist/modules/data-tables/components/column-header.mjs.map +0 -1
- package/dist/modules/data-tables/components/filters/combobox.client.d.mts.map +0 -1
- package/dist/modules/data-tables/components/filters/combobox.client.mjs.map +0 -1
- package/dist/modules/data-tables/components/filters/slider.client.d.mts.map +0 -1
- package/dist/modules/data-tables/components/filters/slider.client.mjs.map +0 -1
- package/dist/modules/data-tables/components/footer.mjs.map +0 -1
- package/dist/modules/data-tables/components/header.d.mts.map +0 -1
- package/dist/modules/data-tables/components/header.mjs.map +0 -1
- package/dist/modules/data-tables/components/layout.d.mts.map +0 -1
- package/dist/modules/data-tables/components/layout.mjs.map +0 -1
- package/dist/modules/data-tables/components/search-input.client.d.mts.map +0 -1
- package/dist/modules/data-tables/components/search-input.client.mjs.map +0 -1
- package/dist/modules/data-tables/components/skeleton.d.mts.map +0 -1
- package/dist/modules/data-tables/components/skeleton.mjs.map +0 -1
- package/dist/modules/data-tables/components/table.d.mts.map +0 -1
- package/dist/modules/data-tables/components/table.mjs.map +0 -1
- package/dist/modules/data-tables/components/toolbar.d.mts.map +0 -1
- package/dist/modules/data-tables/components/toolbar.mjs.map +0 -1
- package/dist/modules/data-tables/hooks/use-context.client.d.mts.map +0 -1
- package/dist/modules/data-tables/hooks/use-context.client.mjs.map +0 -1
- package/dist/modules/data-tables/hooks/use-search.client.mjs.map +0 -1
- package/dist/modules/data-tables/hooks/use-selection.client.mjs.map +0 -1
- package/dist/modules/data-tables/hooks/use-table.client.d.mts.map +0 -1
- package/dist/modules/data-tables/hooks/use-table.client.mjs.map +0 -1
- package/dist/modules/data-tables/lib/converters/cursor.d.mts +0 -18
- package/dist/modules/data-tables/lib/converters/cursor.d.mts.map +0 -1
- package/dist/modules/data-tables/lib/converters/cursor.mjs +0 -16
- package/dist/modules/data-tables/lib/converters/cursor.mjs.map +0 -1
- package/dist/modules/data-tables/lib/converters/dto.d.mts.map +0 -1
- package/dist/modules/data-tables/lib/converters/dto.mjs.map +0 -1
- package/dist/modules/data-tables/lib/converters/filter.d.mts +0 -10
- package/dist/modules/data-tables/lib/converters/filter.d.mts.map +0 -1
- package/dist/modules/data-tables/lib/converters/filter.mjs +0 -14
- package/dist/modules/data-tables/lib/converters/filter.mjs.map +0 -1
- package/dist/modules/data-tables/lib/converters/search.d.mts.map +0 -1
- package/dist/modules/data-tables/lib/converters/search.mjs.map +0 -1
- package/dist/modules/data-tables/lib/converters/sorting.d.mts.map +0 -1
- package/dist/modules/data-tables/lib/converters/sorting.mjs.map +0 -1
- package/dist/modules/data-tables/lib/filters/config.d.mts.map +0 -1
- package/dist/modules/data-tables/lib/filters/config.mjs.map +0 -1
- package/dist/modules/data-tables/lib/filters/helpers.d.mts.map +0 -1
- package/dist/modules/data-tables/lib/filters/helpers.mjs.map +0 -1
- package/dist/modules/data-tables/lib/filters/parsers.d.mts.map +0 -1
- package/dist/modules/data-tables/lib/filters/parsers.mjs.map +0 -1
- package/dist/modules/data-tables/lib/filters/resolvers.d.mts.map +0 -1
- package/dist/modules/data-tables/lib/filters/resolvers.mjs.map +0 -1
- package/dist/modules/data-tables/lib/helpers/create-column.mjs.map +0 -1
- package/dist/modules/data-tables/lib/search-params.d.mts.map +0 -1
- package/dist/modules/data-tables/lib/search-params.mjs.map +0 -1
- package/dist/modules/data-tables/lib/types.d.mts.map +0 -1
- package/dist/modules/data-tables/lib/validators.d.mts.map +0 -1
- package/dist/modules/data-tables/lib/validators.mjs.map +0 -1
- package/dist/modules/data-tables/server/get-data.server.d.mts.map +0 -1
- package/dist/modules/data-tables/server/get-data.server.mjs.map +0 -1
- package/dist/modules/data-tables/strategies/helpers/sorting.mjs.map +0 -1
- package/dist/modules/data-tables/strategies/infinite/components.mjs.map +0 -1
- package/dist/modules/data-tables/strategies/infinite/strategy.d.mts.map +0 -1
- package/dist/modules/data-tables/strategies/infinite/strategy.mjs.map +0 -1
- package/dist/modules/data-tables/strategies/pagination/components.mjs.map +0 -1
- package/dist/modules/data-tables/strategies/pagination/strategy.d.mts.map +0 -1
- package/dist/modules/data-tables/strategies/pagination/strategy.mjs.map +0 -1
- package/dist/modules/data-tables/tables/data-table/components/body.mjs.map +0 -1
- package/dist/modules/data-tables/tables/data-table/components/header.mjs.map +0 -1
- package/dist/modules/data-tables/tables/data-table/components/row.mjs.map +0 -1
- package/dist/modules/data-tables/tables/data-table/components/table.d.mts.map +0 -1
- package/dist/modules/data-tables/tables/data-table/components/table.mjs.map +0 -1
- package/dist/modules/data-tables/tables/inline-table/components/body.mjs.map +0 -1
- package/dist/modules/data-tables/tables/inline-table/components/cells/common.d.mts.map +0 -1
- package/dist/modules/data-tables/tables/inline-table/components/cells/common.mjs.map +0 -1
- package/dist/modules/data-tables/tables/inline-table/components/cells/drag-handle.client.d.mts.map +0 -1
- package/dist/modules/data-tables/tables/inline-table/components/cells/drag-handle.client.mjs.map +0 -1
- package/dist/modules/data-tables/tables/inline-table/components/cells/read-only.d.mts.map +0 -1
- package/dist/modules/data-tables/tables/inline-table/components/cells/read-only.mjs.map +0 -1
- package/dist/modules/data-tables/tables/inline-table/components/header.mjs.map +0 -1
- package/dist/modules/data-tables/tables/inline-table/components/row.client.mjs.map +0 -1
- package/dist/modules/data-tables/tables/inline-table/components/table.d.mts.map +0 -1
- package/dist/modules/data-tables/tables/inline-table/components/table.mjs.map +0 -1
- package/dist/modules/data-tables/tables/inline-table/hooks/context.client.d.mts.map +0 -1
- package/dist/modules/data-tables/tables/inline-table/hooks/context.client.mjs.map +0 -1
- package/dist/modules/data-tables/tables/inline-table/hooks/use-hotkeys.client.d.mts.map +0 -1
- package/dist/modules/data-tables/tables/inline-table/hooks/use-hotkeys.client.mjs.map +0 -1
- package/dist/modules/database/lib/helpers.d.mts.map +0 -1
- package/dist/modules/database/lib/helpers.mjs.map +0 -1
- package/dist/modules/database/lib/service.server.d.mts.map +0 -1
- package/dist/modules/database/lib/service.server.mjs.map +0 -1
- package/dist/modules/database/lib/types.d.mts.map +0 -1
- package/dist/modules/emails/lib/service.server.d.mts.map +0 -1
- package/dist/modules/emails/lib/service.server.mjs.map +0 -1
- package/dist/modules/inline-edit/components/combobox-dropdown.client.d.mts +0 -25
- package/dist/modules/inline-edit/components/combobox-dropdown.client.d.mts.map +0 -1
- package/dist/modules/inline-edit/components/combobox-dropdown.client.mjs +0 -41
- package/dist/modules/inline-edit/components/combobox-dropdown.client.mjs.map +0 -1
- package/dist/modules/inline-edit/components/combobox.client.d.mts +0 -20
- package/dist/modules/inline-edit/components/combobox.client.d.mts.map +0 -1
- package/dist/modules/inline-edit/components/combobox.client.mjs +0 -37
- package/dist/modules/inline-edit/components/combobox.client.mjs.map +0 -1
- package/dist/modules/inline-edit/components/date-input.client.d.mts +0 -19
- package/dist/modules/inline-edit/components/date-input.client.d.mts.map +0 -1
- package/dist/modules/inline-edit/components/date-input.client.mjs +0 -97
- package/dist/modules/inline-edit/components/date-input.client.mjs.map +0 -1
- package/dist/modules/inline-edit/components/date-picker.client.d.mts +0 -22
- package/dist/modules/inline-edit/components/date-picker.client.d.mts.map +0 -1
- package/dist/modules/inline-edit/components/date-picker.client.mjs +0 -62
- package/dist/modules/inline-edit/components/date-picker.client.mjs.map +0 -1
- package/dist/modules/inline-edit/components/date-time.client.d.mts +0 -21
- package/dist/modules/inline-edit/components/date-time.client.d.mts.map +0 -1
- package/dist/modules/inline-edit/components/date-time.client.mjs +0 -39
- package/dist/modules/inline-edit/components/date-time.client.mjs.map +0 -1
- package/dist/modules/inline-edit/components/editor.client.d.mts +0 -23
- package/dist/modules/inline-edit/components/editor.client.d.mts.map +0 -1
- package/dist/modules/inline-edit/components/editor.client.mjs +0 -40
- package/dist/modules/inline-edit/components/editor.client.mjs.map +0 -1
- package/dist/modules/inline-edit/components/input-recipient.client.d.mts +0 -28
- package/dist/modules/inline-edit/components/input-recipient.client.d.mts.map +0 -1
- package/dist/modules/inline-edit/components/input-recipient.client.mjs +0 -44
- package/dist/modules/inline-edit/components/input-recipient.client.mjs.map +0 -1
- package/dist/modules/inline-edit/components/input-toggle.client.d.mts +0 -20
- package/dist/modules/inline-edit/components/input-toggle.client.d.mts.map +0 -1
- package/dist/modules/inline-edit/components/input-toggle.client.mjs +0 -54
- package/dist/modules/inline-edit/components/input-toggle.client.mjs.map +0 -1
- package/dist/modules/inline-edit/components/input.client.d.mts +0 -50
- package/dist/modules/inline-edit/components/input.client.d.mts.map +0 -1
- package/dist/modules/inline-edit/components/input.client.mjs +0 -101
- package/dist/modules/inline-edit/components/input.client.mjs.map +0 -1
- package/dist/modules/inline-edit/components/select.client.d.mts +0 -27
- package/dist/modules/inline-edit/components/select.client.d.mts.map +0 -1
- package/dist/modules/inline-edit/components/select.client.mjs +0 -56
- package/dist/modules/inline-edit/components/select.client.mjs.map +0 -1
- package/dist/modules/inline-edit/components/switch.client.d.mts +0 -18
- package/dist/modules/inline-edit/components/switch.client.d.mts.map +0 -1
- package/dist/modules/inline-edit/components/switch.client.mjs +0 -34
- package/dist/modules/inline-edit/components/switch.client.mjs.map +0 -1
- package/dist/modules/inline-edit/components/toggle.client.d.mts +0 -19
- package/dist/modules/inline-edit/components/toggle.client.d.mts.map +0 -1
- package/dist/modules/inline-edit/components/toggle.client.mjs +0 -41
- package/dist/modules/inline-edit/components/toggle.client.mjs.map +0 -1
- package/dist/modules/inline-edit/hooks/context.client.d.mts +0 -28
- package/dist/modules/inline-edit/hooks/context.client.d.mts.map +0 -1
- package/dist/modules/inline-edit/hooks/context.client.mjs +0 -28
- package/dist/modules/inline-edit/hooks/context.client.mjs.map +0 -1
- package/dist/modules/inline-edit/hooks/use-inline.client.d.mts +0 -76
- package/dist/modules/inline-edit/hooks/use-inline.client.d.mts.map +0 -1
- package/dist/modules/inline-edit/hooks/use-inline.client.mjs +0 -117
- package/dist/modules/inline-edit/hooks/use-inline.client.mjs.map +0 -1
- package/dist/modules/inline-edit/lib/validators.d.mts +0 -57
- package/dist/modules/inline-edit/lib/validators.d.mts.map +0 -1
- package/dist/modules/inline-edit/lib/validators.mjs +0 -35
- package/dist/modules/inline-edit/lib/validators.mjs.map +0 -1
- package/dist/modules/inline-edit/lib/variants.d.mts +0 -12
- package/dist/modules/inline-edit/lib/variants.d.mts.map +0 -1
- package/dist/modules/inline-edit/lib/variants.mjs +0 -22
- package/dist/modules/inline-edit/lib/variants.mjs.map +0 -1
- package/dist/modules/router/handler/caller.client.d.mts.map +0 -1
- package/dist/modules/router/handler/caller.client.mjs.map +0 -1
- package/dist/modules/router/handler/caller.server.d.mts.map +0 -1
- package/dist/modules/router/handler/caller.server.mjs.map +0 -1
- package/dist/modules/router/handler/context.server.d.mts.map +0 -1
- package/dist/modules/router/handler/context.server.mjs.map +0 -1
- package/dist/modules/router/handler/init.server.d.mts.map +0 -1
- package/dist/modules/router/handler/init.server.mjs.map +0 -1
- package/dist/modules/router/handler/register.server.d.mts.map +0 -1
- package/dist/modules/router/handler/register.server.mjs.map +0 -1
- package/dist/modules/router/handler/route.server.d.mts.map +0 -1
- package/dist/modules/router/handler/route.server.mjs.map +0 -1
- package/dist/modules/router/lib/helpers.mjs.map +0 -1
- package/dist/modules/router/lib/query-client.d.mts.map +0 -1
- package/dist/modules/router/lib/query-client.mjs.map +0 -1
- package/dist/modules/router/lib/query-client.server.d.mts.map +0 -1
- package/dist/modules/router/lib/query-client.server.mjs.map +0 -1
- package/dist/modules/router/lib/validators.d.mts.map +0 -1
- package/dist/modules/router/lib/validators.mjs.map +0 -1
- package/dist/modules/storage/components/dropzone-context.client.d.mts.map +0 -1
- package/dist/modules/storage/components/dropzone-context.client.mjs.map +0 -1
- package/dist/modules/storage/components/dropzone.client.d.mts.map +0 -1
- package/dist/modules/storage/components/dropzone.client.mjs.map +0 -1
- package/dist/modules/storage/components/image-grid.client.d.mts.map +0 -1
- package/dist/modules/storage/components/image-grid.client.mjs.map +0 -1
- package/dist/modules/storage/components/image.client.d.mts.map +0 -1
- package/dist/modules/storage/components/image.client.mjs.map +0 -1
- package/dist/modules/storage/components/upload-button.client.d.mts.map +0 -1
- package/dist/modules/storage/components/upload-button.client.mjs.map +0 -1
- package/dist/modules/storage/components/upload-zone-context.client.d.mts.map +0 -1
- package/dist/modules/storage/components/upload-zone-context.client.mjs.map +0 -1
- package/dist/modules/storage/components/upload-zone.client.d.mts.map +0 -1
- package/dist/modules/storage/components/upload-zone.client.mjs.map +0 -1
- package/dist/modules/storage/lib/constants.d.mts.map +0 -1
- package/dist/modules/storage/lib/constants.mjs.map +0 -1
- package/dist/modules/storage/lib/helpers.d.mts.map +0 -1
- package/dist/modules/storage/lib/helpers.mjs.map +0 -1
- package/dist/modules/storage/lib/procedures.server.d.mts.map +0 -1
- package/dist/modules/storage/lib/procedures.server.mjs.map +0 -1
- package/dist/modules/storage/lib/router-handlers.server.d.mts.map +0 -1
- package/dist/modules/storage/lib/router-handlers.server.mjs.map +0 -1
- package/dist/modules/storage/lib/schema.d.mts.map +0 -1
- package/dist/modules/storage/lib/schema.mjs.map +0 -1
- package/dist/modules/storage/lib/service.server.d.mts.map +0 -1
- package/dist/modules/storage/lib/service.server.mjs.map +0 -1
- package/dist/modules/storage/lib/upload.client.d.mts.map +0 -1
- package/dist/modules/storage/lib/upload.client.mjs.map +0 -1
- package/dist/modules/storage/lib/validators.d.mts.map +0 -1
- package/dist/modules/storage/lib/validators.mjs.map +0 -1
- package/dist/modules/storage/providers/adapters/s3.server.d.mts.map +0 -1
- package/dist/modules/storage/providers/adapters/s3.server.mjs.map +0 -1
- package/dist/modules/storage/providers/lib/constants.d.mts.map +0 -1
- package/dist/modules/storage/providers/lib/constants.mjs.map +0 -1
- package/dist/modules/storage/providers/lib/errors.d.mts.map +0 -1
- package/dist/modules/storage/providers/lib/errors.mjs.map +0 -1
- package/dist/modules/storage/providers/lib/types.d.mts.map +0 -1
- package/dist/modules/storage/providers/lib/validators.d.mts.map +0 -1
- package/dist/modules/storage/providers/lib/validators.mjs.map +0 -1
- package/src/modules/commands/components/alert-dialog-command.client.tsx +0 -237
- package/src/modules/commands/components/click-command.client.tsx +0 -92
- package/src/modules/commands/components/command-trigger.client.tsx +0 -69
- package/src/modules/commands/components/dialog-command.client.tsx +0 -174
- package/src/modules/commands/components/dropdown-command.client.tsx +0 -227
- package/src/modules/commands/components/empty-command.client.tsx +0 -63
- package/src/modules/commands/components/form-dialog-command.client.tsx +0 -287
- package/src/modules/commands/hooks/context.client.tsx +0 -38
- package/src/modules/commands/hooks/use-command-menu.client.tsx +0 -252
- package/src/modules/commands/hooks/use-command-mutation.client.tsx +0 -65
- package/src/modules/commands/lib/definitions.ts +0 -42
- package/src/modules/commands/lib/factory.ts +0 -5
- package/src/modules/commands/lib/schema.ts +0 -23
- package/src/modules/commands/menus/context-menu.client.tsx +0 -69
- package/src/modules/commands/menus/dropdown-menu.client.tsx +0 -62
- package/src/modules/commands/menus/floating-menu.client.tsx +0 -54
- package/src/modules/commands/menus/inline-menu.client.tsx +0 -51
- package/src/modules/commands/menus/responsive-menu.client.tsx +0 -27
- package/src/modules/commands/utils/archive-command.client.tsx +0 -62
- package/src/modules/commands/utils/delete-command.client.tsx +0 -76
- package/src/modules/commands/utils/send-mail-command.client.tsx +0 -150
- package/src/modules/data-tables/lib/converters/cursor.ts +0 -13
- package/src/modules/data-tables/lib/converters/filter.ts +0 -11
- package/src/modules/inline-edit/components/combobox-dropdown.client.tsx +0 -64
- package/src/modules/inline-edit/components/combobox.client.tsx +0 -50
- package/src/modules/inline-edit/components/date-input.client.tsx +0 -116
- package/src/modules/inline-edit/components/date-picker.client.tsx +0 -74
- package/src/modules/inline-edit/components/date-time.client.tsx +0 -55
- package/src/modules/inline-edit/components/editor.client.tsx +0 -56
- package/src/modules/inline-edit/components/input-recipient.client.tsx +0 -59
- package/src/modules/inline-edit/components/input-toggle.client.tsx +0 -75
- package/src/modules/inline-edit/components/input.client.tsx +0 -149
- package/src/modules/inline-edit/components/select.client.tsx +0 -76
- package/src/modules/inline-edit/components/switch.client.tsx +0 -40
- package/src/modules/inline-edit/components/toggle.client.tsx +0 -50
- package/src/modules/inline-edit/entry.client.ts +0 -22
- package/src/modules/inline-edit/hooks/context.client.tsx +0 -30
- package/src/modules/inline-edit/hooks/use-inline.client.tsx +0 -205
- /package/dist/{inline-edit → inline}/server.d.mts +0 -0
- /package/dist/{inline-edit → inline}/server.mjs +0 -0
- /package/src/modules/{inline-edit → inline}/entry.server.ts +0 -0
- /package/src/modules/{inline-edit → inline}/entry.ts +0 -0
- /package/src/modules/{inline-edit → inline}/lib/factory.server.ts +0 -0
- /package/src/modules/{inline-edit → inline}/lib/parsers.ts +0 -0
- /package/src/modules/{inline-edit → inline}/lib/validators.ts +0 -0
- /package/src/modules/{inline-edit → inline}/lib/variants.ts +0 -0
|
@@ -5,6 +5,8 @@ import * as _better_auth_passkey0 from "@better-auth/passkey";
|
|
|
5
5
|
import * as better_auth_plugins0 from "better-auth/plugins";
|
|
6
6
|
import { AccessControl, Role } from "better-auth/plugins";
|
|
7
7
|
import * as better_auth0 from "better-auth";
|
|
8
|
+
import * as better_call0 from "better-call";
|
|
9
|
+
import * as zod_v4_core0 from "zod/v4/core";
|
|
8
10
|
import * as better_auth_client0 from "better-auth/client";
|
|
9
11
|
|
|
10
12
|
//#region src/modules/auth/handler/create-client.client.d.ts
|
|
@@ -37,10 +39,12 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
37
39
|
generateRegisterOptions: <FetchOptions extends better_auth0.ClientFetchOption<never, Partial<{
|
|
38
40
|
authenticatorAttachment?: "platform" | "cross-platform" | undefined;
|
|
39
41
|
name?: string | undefined;
|
|
42
|
+
context?: string | undefined;
|
|
40
43
|
}> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth0.Prettify<{
|
|
41
44
|
query?: {
|
|
42
45
|
authenticatorAttachment?: "platform" | "cross-platform" | undefined;
|
|
43
46
|
name?: string | undefined;
|
|
47
|
+
context?: string | undefined;
|
|
44
48
|
} | undefined;
|
|
45
49
|
fetchOptions?: FetchOptions | undefined;
|
|
46
50
|
}> | undefined, data_1?: FetchOptions | undefined) => Promise<better_auth_client0.BetterFetchResponse<_better_auth_passkey_client0.PublicKeyCredentialCreationOptionsJSON, {
|
|
@@ -92,6 +96,15 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
92
96
|
ipAddress?: string | null | undefined;
|
|
93
97
|
userAgent?: string | null | undefined;
|
|
94
98
|
};
|
|
99
|
+
user: {
|
|
100
|
+
id: string;
|
|
101
|
+
createdAt: Date;
|
|
102
|
+
updatedAt: Date;
|
|
103
|
+
email: string;
|
|
104
|
+
emailVerified: boolean;
|
|
105
|
+
name: string;
|
|
106
|
+
image?: string | null | undefined;
|
|
107
|
+
};
|
|
95
108
|
}, {
|
|
96
109
|
code?: string | undefined;
|
|
97
110
|
message?: string | undefined;
|
|
@@ -172,7 +185,7 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
172
185
|
admin: {
|
|
173
186
|
listUsers: <FetchOptions extends better_auth0.ClientFetchOption<never, Partial<{
|
|
174
187
|
searchValue?: string | undefined;
|
|
175
|
-
searchField?: "
|
|
188
|
+
searchField?: "email" | "name" | undefined;
|
|
176
189
|
searchOperator?: "contains" | "starts_with" | "ends_with" | undefined;
|
|
177
190
|
limit?: string | number | undefined;
|
|
178
191
|
offset?: string | number | undefined;
|
|
@@ -184,7 +197,7 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
184
197
|
}> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth0.Prettify<{
|
|
185
198
|
query: {
|
|
186
199
|
searchValue?: string | undefined;
|
|
187
|
-
searchField?: "
|
|
200
|
+
searchField?: "email" | "name" | undefined;
|
|
188
201
|
searchOperator?: "contains" | "starts_with" | "ends_with" | undefined;
|
|
189
202
|
limit?: string | number | undefined;
|
|
190
203
|
offset?: string | number | undefined;
|
|
@@ -615,63 +628,133 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
615
628
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
616
629
|
};
|
|
617
630
|
} & {
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
}
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
631
|
+
admin: {
|
|
632
|
+
setRole: <FetchOptions extends better_auth0.ClientFetchOption<Partial<{
|
|
633
|
+
userId: string;
|
|
634
|
+
role: keyof (TRoles extends Record<string, Role> ? TRoles : {
|
|
635
|
+
admin: Role;
|
|
636
|
+
user: Role;
|
|
637
|
+
}) | (keyof (TRoles extends Record<string, Role> ? TRoles : {
|
|
638
|
+
admin: Role;
|
|
639
|
+
user: Role;
|
|
640
|
+
}))[];
|
|
641
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth0.Prettify<{
|
|
642
|
+
userId: string;
|
|
643
|
+
role: keyof (TRoles extends Record<string, Role> ? TRoles : {
|
|
644
|
+
admin: Role;
|
|
645
|
+
user: Role;
|
|
646
|
+
}) | (keyof (TRoles extends Record<string, Role> ? TRoles : {
|
|
647
|
+
admin: Role;
|
|
648
|
+
user: Role;
|
|
649
|
+
}))[];
|
|
650
|
+
} & {
|
|
651
|
+
fetchOptions?: FetchOptions | undefined;
|
|
652
|
+
}>, data_1?: FetchOptions | undefined) => Promise<better_auth_client0.BetterFetchResponse<{
|
|
653
|
+
user: better_auth_plugins0.UserWithRole;
|
|
654
|
+
}, {
|
|
655
|
+
code?: string | undefined;
|
|
656
|
+
message?: string | undefined;
|
|
657
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
658
|
+
};
|
|
644
659
|
} & {
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
+
admin: {
|
|
661
|
+
createUser: <FetchOptions extends better_auth0.ClientFetchOption<Partial<{
|
|
662
|
+
email: string;
|
|
663
|
+
password?: string | undefined;
|
|
664
|
+
name: string;
|
|
665
|
+
role?: keyof (TRoles extends Record<string, Role> ? TRoles : {
|
|
666
|
+
admin: Role;
|
|
667
|
+
user: Role;
|
|
668
|
+
}) | (keyof (TRoles extends Record<string, Role> ? TRoles : {
|
|
669
|
+
admin: Role;
|
|
670
|
+
user: Role;
|
|
671
|
+
}))[] | undefined;
|
|
672
|
+
data?: Record<string, any> | undefined;
|
|
673
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth0.Prettify<{
|
|
674
|
+
email: string;
|
|
675
|
+
password?: string | undefined;
|
|
676
|
+
name: string;
|
|
677
|
+
role?: keyof (TRoles extends Record<string, Role> ? TRoles : {
|
|
678
|
+
admin: Role;
|
|
679
|
+
user: Role;
|
|
680
|
+
}) | (keyof (TRoles extends Record<string, Role> ? TRoles : {
|
|
681
|
+
admin: Role;
|
|
682
|
+
user: Role;
|
|
683
|
+
}))[] | undefined;
|
|
684
|
+
data?: Record<string, any> | undefined;
|
|
685
|
+
} & {
|
|
686
|
+
fetchOptions?: FetchOptions | undefined;
|
|
687
|
+
}>, data_1?: FetchOptions | undefined) => Promise<better_auth_client0.BetterFetchResponse<{
|
|
688
|
+
user: better_auth_plugins0.UserWithRole;
|
|
689
|
+
}, {
|
|
690
|
+
code?: string | undefined;
|
|
691
|
+
message?: string | undefined;
|
|
692
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
693
|
+
};
|
|
660
694
|
} & {
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
695
|
+
admin: {
|
|
696
|
+
hasPermission: <FetchOptions extends better_auth0.ClientFetchOption<Partial<{
|
|
697
|
+
permissions: { [key in keyof ((TAccessControl extends AccessControl ? TAccessControl : AccessControl<{
|
|
698
|
+
readonly user: readonly ["create", "list", "set-role", "ban", "impersonate", "impersonate-admins", "delete", "set-password", "get", "update"];
|
|
699
|
+
readonly session: readonly ["list", "revoke", "delete"];
|
|
700
|
+
}>) extends AccessControl<infer S extends better_auth_plugins0.Statements> ? S : {
|
|
701
|
+
readonly user: readonly ["create", "list", "set-role", "ban", "impersonate", "impersonate-admins", "delete", "set-password", "get", "update"];
|
|
702
|
+
readonly session: readonly ["list", "revoke", "delete"];
|
|
703
|
+
})]?: (((TAccessControl extends AccessControl ? TAccessControl : AccessControl<{
|
|
704
|
+
readonly user: readonly ["create", "list", "set-role", "ban", "impersonate", "impersonate-admins", "delete", "set-password", "get", "update"];
|
|
705
|
+
readonly session: readonly ["list", "revoke", "delete"];
|
|
706
|
+
}>) extends AccessControl<infer S_1 extends better_auth_plugins0.Statements> ? S_1 : {
|
|
707
|
+
readonly user: readonly ["create", "list", "set-role", "ban", "impersonate", "impersonate-admins", "delete", "set-password", "get", "update"];
|
|
708
|
+
readonly session: readonly ["list", "revoke", "delete"];
|
|
709
|
+
})[key] extends readonly unknown[] ? better_auth_plugins0.ArrayElement<((TAccessControl extends AccessControl ? TAccessControl : AccessControl<{
|
|
710
|
+
readonly user: readonly ["create", "list", "set-role", "ban", "impersonate", "impersonate-admins", "delete", "set-password", "get", "update"];
|
|
711
|
+
readonly session: readonly ["list", "revoke", "delete"];
|
|
712
|
+
}>) extends AccessControl<infer S_2 extends better_auth_plugins0.Statements> ? S_2 : {
|
|
713
|
+
readonly user: readonly ["create", "list", "set-role", "ban", "impersonate", "impersonate-admins", "delete", "set-password", "get", "update"];
|
|
714
|
+
readonly session: readonly ["list", "revoke", "delete"];
|
|
715
|
+
})[key]> : never)[] | undefined };
|
|
716
|
+
} & {
|
|
717
|
+
userId?: string | undefined;
|
|
718
|
+
role?: keyof (TRoles extends Record<string, Role> ? TRoles : {
|
|
719
|
+
admin: Role;
|
|
720
|
+
user: Role;
|
|
721
|
+
}) | undefined;
|
|
722
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth0.Prettify<{
|
|
723
|
+
permissions: { [key in keyof ((TAccessControl extends AccessControl ? TAccessControl : AccessControl<{
|
|
724
|
+
readonly user: readonly ["create", "list", "set-role", "ban", "impersonate", "impersonate-admins", "delete", "set-password", "get", "update"];
|
|
725
|
+
readonly session: readonly ["list", "revoke", "delete"];
|
|
726
|
+
}>) extends AccessControl<infer S extends better_auth_plugins0.Statements> ? S : {
|
|
727
|
+
readonly user: readonly ["create", "list", "set-role", "ban", "impersonate", "impersonate-admins", "delete", "set-password", "get", "update"];
|
|
728
|
+
readonly session: readonly ["list", "revoke", "delete"];
|
|
729
|
+
})]?: (((TAccessControl extends AccessControl ? TAccessControl : AccessControl<{
|
|
730
|
+
readonly user: readonly ["create", "list", "set-role", "ban", "impersonate", "impersonate-admins", "delete", "set-password", "get", "update"];
|
|
731
|
+
readonly session: readonly ["list", "revoke", "delete"];
|
|
732
|
+
}>) extends AccessControl<infer S_1 extends better_auth_plugins0.Statements> ? S_1 : {
|
|
733
|
+
readonly user: readonly ["create", "list", "set-role", "ban", "impersonate", "impersonate-admins", "delete", "set-password", "get", "update"];
|
|
734
|
+
readonly session: readonly ["list", "revoke", "delete"];
|
|
735
|
+
})[key] extends readonly unknown[] ? better_auth_plugins0.ArrayElement<((TAccessControl extends AccessControl ? TAccessControl : AccessControl<{
|
|
736
|
+
readonly user: readonly ["create", "list", "set-role", "ban", "impersonate", "impersonate-admins", "delete", "set-password", "get", "update"];
|
|
737
|
+
readonly session: readonly ["list", "revoke", "delete"];
|
|
738
|
+
}>) extends AccessControl<infer S_2 extends better_auth_plugins0.Statements> ? S_2 : {
|
|
739
|
+
readonly user: readonly ["create", "list", "set-role", "ban", "impersonate", "impersonate-admins", "delete", "set-password", "get", "update"];
|
|
740
|
+
readonly session: readonly ["list", "revoke", "delete"];
|
|
741
|
+
})[key]> : never)[] | undefined };
|
|
742
|
+
} & {
|
|
743
|
+
userId?: string | undefined;
|
|
744
|
+
role?: keyof (TRoles extends Record<string, Role> ? TRoles : {
|
|
745
|
+
admin: Role;
|
|
746
|
+
user: Role;
|
|
747
|
+
}) | undefined;
|
|
748
|
+
} & {
|
|
749
|
+
fetchOptions?: FetchOptions | undefined;
|
|
750
|
+
}>, data_1?: FetchOptions | undefined) => Promise<better_auth_client0.BetterFetchResponse<{
|
|
751
|
+
error: null;
|
|
752
|
+
success: boolean;
|
|
753
|
+
}, {
|
|
754
|
+
code?: string | undefined;
|
|
755
|
+
message?: string | undefined;
|
|
756
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
757
|
+
};
|
|
675
758
|
} & {
|
|
676
759
|
changeEmail: <FetchOptions extends better_auth0.ClientFetchOption<Partial<{
|
|
677
760
|
newEmail: string;
|
|
@@ -687,423 +770,10 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
687
770
|
code?: string | undefined;
|
|
688
771
|
message?: string | undefined;
|
|
689
772
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
690
|
-
} & {
|
|
691
|
-
changePassword: <FetchOptions extends better_auth0.ClientFetchOption<Partial<{
|
|
692
|
-
newPassword: string;
|
|
693
|
-
currentPassword: string;
|
|
694
|
-
revokeOtherSessions?: boolean | undefined;
|
|
695
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth0.Prettify<{
|
|
696
|
-
newPassword: string;
|
|
697
|
-
currentPassword: string;
|
|
698
|
-
revokeOtherSessions?: boolean | undefined;
|
|
699
|
-
} & {
|
|
700
|
-
fetchOptions?: FetchOptions | undefined;
|
|
701
|
-
}>, data_1?: FetchOptions | undefined) => Promise<better_auth_client0.BetterFetchResponse<Omit<{
|
|
702
|
-
token: string | null;
|
|
703
|
-
user: {
|
|
704
|
-
id: string;
|
|
705
|
-
createdAt: Date;
|
|
706
|
-
updatedAt: Date;
|
|
707
|
-
email: string;
|
|
708
|
-
emailVerified: boolean;
|
|
709
|
-
name: string;
|
|
710
|
-
image?: string | null | undefined;
|
|
711
|
-
} & Record<string, any> & {
|
|
712
|
-
id: string;
|
|
713
|
-
createdAt: Date;
|
|
714
|
-
updatedAt: Date;
|
|
715
|
-
email: string;
|
|
716
|
-
emailVerified: boolean;
|
|
717
|
-
name: string;
|
|
718
|
-
image?: string | null | undefined;
|
|
719
|
-
};
|
|
720
|
-
}, "user"> & {
|
|
721
|
-
user: better_auth0.StripEmptyObjects<{
|
|
722
|
-
id: string;
|
|
723
|
-
createdAt: Date;
|
|
724
|
-
updatedAt: Date;
|
|
725
|
-
email: string;
|
|
726
|
-
emailVerified: boolean;
|
|
727
|
-
name: string;
|
|
728
|
-
image?: string | null | undefined;
|
|
729
|
-
} & {
|
|
730
|
-
firstName: string;
|
|
731
|
-
lastName: string;
|
|
732
|
-
} & {} & {
|
|
733
|
-
banned: boolean | null | undefined;
|
|
734
|
-
} & {
|
|
735
|
-
role?: string | null | undefined;
|
|
736
|
-
banReason?: string | null | undefined;
|
|
737
|
-
banExpires?: Date | null | undefined;
|
|
738
|
-
}>;
|
|
739
|
-
}, {
|
|
740
|
-
code?: string | undefined;
|
|
741
|
-
message?: string | undefined;
|
|
742
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
743
|
-
} & {
|
|
744
|
-
deleteUser: <FetchOptions extends better_auth0.ClientFetchOption<Partial<{
|
|
745
|
-
callbackURL?: string | undefined;
|
|
746
|
-
password?: string | undefined;
|
|
747
|
-
token?: string | undefined;
|
|
748
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth0.Prettify<{
|
|
749
|
-
callbackURL?: string | undefined;
|
|
750
|
-
password?: string | undefined;
|
|
751
|
-
token?: string | undefined;
|
|
752
|
-
} & {
|
|
753
|
-
fetchOptions?: FetchOptions | undefined;
|
|
754
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<better_auth_client0.BetterFetchResponse<{
|
|
755
|
-
success: boolean;
|
|
756
|
-
message: string;
|
|
757
|
-
}, {
|
|
758
|
-
code?: string | undefined;
|
|
759
|
-
message?: string | undefined;
|
|
760
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
761
|
-
} & {
|
|
762
|
-
requestPasswordReset: <FetchOptions extends better_auth0.ClientFetchOption<Partial<{
|
|
763
|
-
email: string;
|
|
764
|
-
redirectTo?: string | undefined;
|
|
765
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth0.Prettify<{
|
|
766
|
-
email: string;
|
|
767
|
-
redirectTo?: string | undefined;
|
|
768
|
-
} & {
|
|
769
|
-
fetchOptions?: FetchOptions | undefined;
|
|
770
|
-
}>, data_1?: FetchOptions | undefined) => Promise<better_auth_client0.BetterFetchResponse<{
|
|
771
|
-
status: boolean;
|
|
772
|
-
message: string;
|
|
773
|
-
}, {
|
|
774
|
-
code?: string | undefined;
|
|
775
|
-
message?: string | undefined;
|
|
776
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
777
|
-
} & {
|
|
778
|
-
resetPassword: {
|
|
779
|
-
":token": <FetchOptions extends better_auth0.ClientFetchOption<never, Partial<{
|
|
780
|
-
callbackURL: string;
|
|
781
|
-
}> & Record<string, any>, {
|
|
782
|
-
token: string;
|
|
783
|
-
}>>(data_0: better_auth0.Prettify<{
|
|
784
|
-
query: {
|
|
785
|
-
callbackURL: string;
|
|
786
|
-
};
|
|
787
|
-
fetchOptions?: FetchOptions | undefined;
|
|
788
|
-
}>, data_1?: FetchOptions | undefined) => Promise<better_auth_client0.BetterFetchResponse<never, {
|
|
789
|
-
code?: string | undefined;
|
|
790
|
-
message?: string | undefined;
|
|
791
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
792
|
-
};
|
|
793
|
-
} & {
|
|
794
|
-
revokeSession: <FetchOptions extends better_auth0.ClientFetchOption<Partial<{
|
|
795
|
-
token: string;
|
|
796
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth0.Prettify<{
|
|
797
|
-
token: string;
|
|
798
|
-
} & {
|
|
799
|
-
fetchOptions?: FetchOptions | undefined;
|
|
800
|
-
}>, data_1?: FetchOptions | undefined) => Promise<better_auth_client0.BetterFetchResponse<{
|
|
801
|
-
status: boolean;
|
|
802
|
-
}, {
|
|
803
|
-
code?: string | undefined;
|
|
804
|
-
message?: string | undefined;
|
|
805
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
806
|
-
} & {
|
|
807
|
-
revokeSessions: <FetchOptions extends better_auth0.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth0.Prettify<{
|
|
808
|
-
query?: Record<string, any> | undefined;
|
|
809
|
-
fetchOptions?: FetchOptions | undefined;
|
|
810
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<better_auth_client0.BetterFetchResponse<{
|
|
811
|
-
status: boolean;
|
|
812
|
-
}, {
|
|
813
|
-
code?: string | undefined;
|
|
814
|
-
message?: string | undefined;
|
|
815
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
816
|
-
} & {
|
|
817
|
-
revokeOtherSessions: <FetchOptions extends better_auth0.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth0.Prettify<{
|
|
818
|
-
query?: Record<string, any> | undefined;
|
|
819
|
-
fetchOptions?: FetchOptions | undefined;
|
|
820
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<better_auth_client0.BetterFetchResponse<{
|
|
821
|
-
status: boolean;
|
|
822
|
-
}, {
|
|
823
|
-
code?: string | undefined;
|
|
824
|
-
message?: string | undefined;
|
|
825
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
826
|
-
} & {
|
|
827
|
-
linkSocial: <FetchOptions extends better_auth0.ClientFetchOption<Partial<{
|
|
828
|
-
provider: unknown;
|
|
829
|
-
callbackURL?: string | undefined;
|
|
830
|
-
idToken?: {
|
|
831
|
-
token: string;
|
|
832
|
-
nonce?: string | undefined;
|
|
833
|
-
accessToken?: string | undefined;
|
|
834
|
-
refreshToken?: string | undefined;
|
|
835
|
-
scopes?: string[] | undefined;
|
|
836
|
-
} | undefined;
|
|
837
|
-
requestSignUp?: boolean | undefined;
|
|
838
|
-
scopes?: string[] | undefined;
|
|
839
|
-
errorCallbackURL?: string | undefined;
|
|
840
|
-
disableRedirect?: boolean | undefined;
|
|
841
|
-
additionalData?: Record<string, any> | undefined;
|
|
842
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth0.Prettify<{
|
|
843
|
-
provider: unknown;
|
|
844
|
-
callbackURL?: string | undefined;
|
|
845
|
-
idToken?: {
|
|
846
|
-
token: string;
|
|
847
|
-
nonce?: string | undefined;
|
|
848
|
-
accessToken?: string | undefined;
|
|
849
|
-
refreshToken?: string | undefined;
|
|
850
|
-
scopes?: string[] | undefined;
|
|
851
|
-
} | undefined;
|
|
852
|
-
requestSignUp?: boolean | undefined;
|
|
853
|
-
scopes?: string[] | undefined;
|
|
854
|
-
errorCallbackURL?: string | undefined;
|
|
855
|
-
disableRedirect?: boolean | undefined;
|
|
856
|
-
additionalData?: Record<string, any> | undefined;
|
|
857
|
-
} & {
|
|
858
|
-
fetchOptions?: FetchOptions | undefined;
|
|
859
|
-
}>, data_1?: FetchOptions | undefined) => Promise<better_auth_client0.BetterFetchResponse<{
|
|
860
|
-
url: string;
|
|
861
|
-
redirect: boolean;
|
|
862
|
-
}, {
|
|
863
|
-
code?: string | undefined;
|
|
864
|
-
message?: string | undefined;
|
|
865
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
866
|
-
} & {
|
|
867
|
-
listAccounts: <FetchOptions extends better_auth0.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth0.Prettify<{
|
|
868
|
-
query?: Record<string, any> | undefined;
|
|
869
|
-
fetchOptions?: FetchOptions | undefined;
|
|
870
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<better_auth_client0.BetterFetchResponse<{
|
|
871
|
-
scopes: string[];
|
|
872
|
-
id: string;
|
|
873
|
-
createdAt: Date;
|
|
874
|
-
updatedAt: Date;
|
|
875
|
-
userId: string;
|
|
876
|
-
providerId: string;
|
|
877
|
-
accountId: string;
|
|
878
|
-
}[], {
|
|
879
|
-
code?: string | undefined;
|
|
880
|
-
message?: string | undefined;
|
|
881
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
882
|
-
} & {
|
|
883
|
-
deleteUser: {
|
|
884
|
-
callback: <FetchOptions extends better_auth0.ClientFetchOption<never, Partial<{
|
|
885
|
-
token: string;
|
|
886
|
-
callbackURL?: string | undefined;
|
|
887
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth0.Prettify<{
|
|
888
|
-
query: {
|
|
889
|
-
token: string;
|
|
890
|
-
callbackURL?: string | undefined;
|
|
891
|
-
};
|
|
892
|
-
fetchOptions?: FetchOptions | undefined;
|
|
893
|
-
}>, data_1?: FetchOptions | undefined) => Promise<better_auth_client0.BetterFetchResponse<{
|
|
894
|
-
success: boolean;
|
|
895
|
-
message: string;
|
|
896
|
-
}, {
|
|
897
|
-
code?: string | undefined;
|
|
898
|
-
message?: string | undefined;
|
|
899
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
900
|
-
};
|
|
901
|
-
} & {
|
|
902
|
-
unlinkAccount: <FetchOptions extends better_auth0.ClientFetchOption<Partial<{
|
|
903
|
-
providerId: string;
|
|
904
|
-
accountId?: string | undefined;
|
|
905
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth0.Prettify<{
|
|
906
|
-
providerId: string;
|
|
907
|
-
accountId?: string | undefined;
|
|
908
|
-
} & {
|
|
909
|
-
fetchOptions?: FetchOptions | undefined;
|
|
910
|
-
}>, data_1?: FetchOptions | undefined) => Promise<better_auth_client0.BetterFetchResponse<{
|
|
911
|
-
status: boolean;
|
|
912
|
-
}, {
|
|
913
|
-
code?: string | undefined;
|
|
914
|
-
message?: string | undefined;
|
|
915
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
916
|
-
} & {
|
|
917
|
-
refreshToken: <FetchOptions extends better_auth0.ClientFetchOption<Partial<{
|
|
918
|
-
providerId: string;
|
|
919
|
-
accountId?: string | undefined;
|
|
920
|
-
userId?: string | undefined;
|
|
921
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth0.Prettify<{
|
|
922
|
-
providerId: string;
|
|
923
|
-
accountId?: string | undefined;
|
|
924
|
-
userId?: string | undefined;
|
|
925
|
-
} & {
|
|
926
|
-
fetchOptions?: FetchOptions | undefined;
|
|
927
|
-
}>, data_1?: FetchOptions | undefined) => Promise<better_auth_client0.BetterFetchResponse<{
|
|
928
|
-
accessToken: string | undefined;
|
|
929
|
-
refreshToken: string;
|
|
930
|
-
accessTokenExpiresAt: Date | undefined;
|
|
931
|
-
refreshTokenExpiresAt: Date | null | undefined;
|
|
932
|
-
scope: string | null | undefined;
|
|
933
|
-
idToken: string | null | undefined;
|
|
934
|
-
providerId: string;
|
|
935
|
-
accountId: string;
|
|
936
|
-
}, {
|
|
937
|
-
code?: string | undefined;
|
|
938
|
-
message?: string | undefined;
|
|
939
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
940
|
-
} & {
|
|
941
|
-
getAccessToken: <FetchOptions extends better_auth0.ClientFetchOption<Partial<{
|
|
942
|
-
providerId: string;
|
|
943
|
-
accountId?: string | undefined;
|
|
944
|
-
userId?: string | undefined;
|
|
945
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth0.Prettify<{
|
|
946
|
-
providerId: string;
|
|
947
|
-
accountId?: string | undefined;
|
|
948
|
-
userId?: string | undefined;
|
|
949
|
-
} & {
|
|
950
|
-
fetchOptions?: FetchOptions | undefined;
|
|
951
|
-
}>, data_1?: FetchOptions | undefined) => Promise<better_auth_client0.BetterFetchResponse<{
|
|
952
|
-
accessToken: string;
|
|
953
|
-
accessTokenExpiresAt: Date | undefined;
|
|
954
|
-
scopes: string[];
|
|
955
|
-
idToken: string | undefined;
|
|
956
|
-
}, {
|
|
957
|
-
code?: string | undefined;
|
|
958
|
-
message?: string | undefined;
|
|
959
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
960
|
-
} & {
|
|
961
|
-
accountInfo: <FetchOptions extends better_auth0.ClientFetchOption<never, Partial<{
|
|
962
|
-
accountId?: string | undefined;
|
|
963
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth0.Prettify<{
|
|
964
|
-
query?: {
|
|
965
|
-
accountId?: string | undefined;
|
|
966
|
-
} | undefined;
|
|
967
|
-
fetchOptions?: FetchOptions | undefined;
|
|
968
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<better_auth_client0.BetterFetchResponse<{
|
|
969
|
-
user: better_auth0.OAuth2UserInfo;
|
|
970
|
-
data: Record<string, any>;
|
|
971
|
-
}, {
|
|
972
|
-
code?: string | undefined;
|
|
973
|
-
message?: string | undefined;
|
|
974
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
975
|
-
} & {
|
|
976
|
-
admin: {
|
|
977
|
-
setRole: <FetchOptions extends better_auth0.ClientFetchOption<Partial<{
|
|
978
|
-
userId: string;
|
|
979
|
-
role: keyof (TRoles extends Record<string, Role> ? TRoles : {
|
|
980
|
-
admin: Role;
|
|
981
|
-
user: Role;
|
|
982
|
-
}) | (keyof (TRoles extends Record<string, Role> ? TRoles : {
|
|
983
|
-
admin: Role;
|
|
984
|
-
user: Role;
|
|
985
|
-
}))[];
|
|
986
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth0.Prettify<{
|
|
987
|
-
userId: string;
|
|
988
|
-
role: keyof (TRoles extends Record<string, Role> ? TRoles : {
|
|
989
|
-
admin: Role;
|
|
990
|
-
user: Role;
|
|
991
|
-
}) | (keyof (TRoles extends Record<string, Role> ? TRoles : {
|
|
992
|
-
admin: Role;
|
|
993
|
-
user: Role;
|
|
994
|
-
}))[];
|
|
995
|
-
} & {
|
|
996
|
-
fetchOptions?: FetchOptions | undefined;
|
|
997
|
-
}>, data_1?: FetchOptions | undefined) => Promise<better_auth_client0.BetterFetchResponse<{
|
|
998
|
-
user: better_auth_plugins0.UserWithRole;
|
|
999
|
-
}, {
|
|
1000
|
-
code?: string | undefined;
|
|
1001
|
-
message?: string | undefined;
|
|
1002
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1003
|
-
};
|
|
1004
|
-
} & {
|
|
1005
|
-
admin: {
|
|
1006
|
-
createUser: <FetchOptions extends better_auth0.ClientFetchOption<Partial<{
|
|
1007
|
-
email: string;
|
|
1008
|
-
password?: string | undefined;
|
|
1009
|
-
name: string;
|
|
1010
|
-
role?: keyof (TRoles extends Record<string, Role> ? TRoles : {
|
|
1011
|
-
admin: Role;
|
|
1012
|
-
user: Role;
|
|
1013
|
-
}) | (keyof (TRoles extends Record<string, Role> ? TRoles : {
|
|
1014
|
-
admin: Role;
|
|
1015
|
-
user: Role;
|
|
1016
|
-
}))[] | undefined;
|
|
1017
|
-
data?: Record<string, any> | undefined;
|
|
1018
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth0.Prettify<{
|
|
1019
|
-
email: string;
|
|
1020
|
-
password?: string | undefined;
|
|
1021
|
-
name: string;
|
|
1022
|
-
role?: keyof (TRoles extends Record<string, Role> ? TRoles : {
|
|
1023
|
-
admin: Role;
|
|
1024
|
-
user: Role;
|
|
1025
|
-
}) | (keyof (TRoles extends Record<string, Role> ? TRoles : {
|
|
1026
|
-
admin: Role;
|
|
1027
|
-
user: Role;
|
|
1028
|
-
}))[] | undefined;
|
|
1029
|
-
data?: Record<string, any> | undefined;
|
|
1030
|
-
} & {
|
|
1031
|
-
fetchOptions?: FetchOptions | undefined;
|
|
1032
|
-
}>, data_1?: FetchOptions | undefined) => Promise<better_auth_client0.BetterFetchResponse<{
|
|
1033
|
-
user: better_auth_plugins0.UserWithRole;
|
|
1034
|
-
}, {
|
|
1035
|
-
code?: string | undefined;
|
|
1036
|
-
message?: string | undefined;
|
|
1037
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1038
|
-
};
|
|
1039
|
-
} & {
|
|
1040
|
-
admin: {
|
|
1041
|
-
hasPermission: <FetchOptions extends better_auth0.ClientFetchOption<Partial<{
|
|
1042
|
-
permissions: { [key in keyof ((TAccessControl extends AccessControl ? TAccessControl : AccessControl<{
|
|
1043
|
-
readonly user: readonly ["create", "list", "set-role", "ban", "impersonate", "impersonate-admins", "delete", "set-password", "get", "update"];
|
|
1044
|
-
readonly session: readonly ["list", "revoke", "delete"];
|
|
1045
|
-
}>) extends AccessControl<infer S extends better_auth_plugins0.Statements> ? S : {
|
|
1046
|
-
readonly user: readonly ["create", "list", "set-role", "ban", "impersonate", "impersonate-admins", "delete", "set-password", "get", "update"];
|
|
1047
|
-
readonly session: readonly ["list", "revoke", "delete"];
|
|
1048
|
-
})]?: (((TAccessControl extends AccessControl ? TAccessControl : AccessControl<{
|
|
1049
|
-
readonly user: readonly ["create", "list", "set-role", "ban", "impersonate", "impersonate-admins", "delete", "set-password", "get", "update"];
|
|
1050
|
-
readonly session: readonly ["list", "revoke", "delete"];
|
|
1051
|
-
}>) extends AccessControl<infer S_1 extends better_auth_plugins0.Statements> ? S_1 : {
|
|
1052
|
-
readonly user: readonly ["create", "list", "set-role", "ban", "impersonate", "impersonate-admins", "delete", "set-password", "get", "update"];
|
|
1053
|
-
readonly session: readonly ["list", "revoke", "delete"];
|
|
1054
|
-
})[key] extends readonly unknown[] ? better_auth_plugins0.ArrayElement<((TAccessControl extends AccessControl ? TAccessControl : AccessControl<{
|
|
1055
|
-
readonly user: readonly ["create", "list", "set-role", "ban", "impersonate", "impersonate-admins", "delete", "set-password", "get", "update"];
|
|
1056
|
-
readonly session: readonly ["list", "revoke", "delete"];
|
|
1057
|
-
}>) extends AccessControl<infer S_2 extends better_auth_plugins0.Statements> ? S_2 : {
|
|
1058
|
-
readonly user: readonly ["create", "list", "set-role", "ban", "impersonate", "impersonate-admins", "delete", "set-password", "get", "update"];
|
|
1059
|
-
readonly session: readonly ["list", "revoke", "delete"];
|
|
1060
|
-
})[key]> : never)[] | undefined };
|
|
1061
|
-
} & {
|
|
1062
|
-
userId?: string | undefined;
|
|
1063
|
-
role?: keyof (TRoles extends Record<string, Role> ? TRoles : {
|
|
1064
|
-
admin: Role;
|
|
1065
|
-
user: Role;
|
|
1066
|
-
}) | undefined;
|
|
1067
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth0.Prettify<{
|
|
1068
|
-
permissions: { [key in keyof ((TAccessControl extends AccessControl ? TAccessControl : AccessControl<{
|
|
1069
|
-
readonly user: readonly ["create", "list", "set-role", "ban", "impersonate", "impersonate-admins", "delete", "set-password", "get", "update"];
|
|
1070
|
-
readonly session: readonly ["list", "revoke", "delete"];
|
|
1071
|
-
}>) extends AccessControl<infer S extends better_auth_plugins0.Statements> ? S : {
|
|
1072
|
-
readonly user: readonly ["create", "list", "set-role", "ban", "impersonate", "impersonate-admins", "delete", "set-password", "get", "update"];
|
|
1073
|
-
readonly session: readonly ["list", "revoke", "delete"];
|
|
1074
|
-
})]?: (((TAccessControl extends AccessControl ? TAccessControl : AccessControl<{
|
|
1075
|
-
readonly user: readonly ["create", "list", "set-role", "ban", "impersonate", "impersonate-admins", "delete", "set-password", "get", "update"];
|
|
1076
|
-
readonly session: readonly ["list", "revoke", "delete"];
|
|
1077
|
-
}>) extends AccessControl<infer S_1 extends better_auth_plugins0.Statements> ? S_1 : {
|
|
1078
|
-
readonly user: readonly ["create", "list", "set-role", "ban", "impersonate", "impersonate-admins", "delete", "set-password", "get", "update"];
|
|
1079
|
-
readonly session: readonly ["list", "revoke", "delete"];
|
|
1080
|
-
})[key] extends readonly unknown[] ? better_auth_plugins0.ArrayElement<((TAccessControl extends AccessControl ? TAccessControl : AccessControl<{
|
|
1081
|
-
readonly user: readonly ["create", "list", "set-role", "ban", "impersonate", "impersonate-admins", "delete", "set-password", "get", "update"];
|
|
1082
|
-
readonly session: readonly ["list", "revoke", "delete"];
|
|
1083
|
-
}>) extends AccessControl<infer S_2 extends better_auth_plugins0.Statements> ? S_2 : {
|
|
1084
|
-
readonly user: readonly ["create", "list", "set-role", "ban", "impersonate", "impersonate-admins", "delete", "set-password", "get", "update"];
|
|
1085
|
-
readonly session: readonly ["list", "revoke", "delete"];
|
|
1086
|
-
})[key]> : never)[] | undefined };
|
|
1087
|
-
} & {
|
|
1088
|
-
userId?: string | undefined;
|
|
1089
|
-
role?: keyof (TRoles extends Record<string, Role> ? TRoles : {
|
|
1090
|
-
admin: Role;
|
|
1091
|
-
user: Role;
|
|
1092
|
-
}) | undefined;
|
|
1093
|
-
} & {
|
|
1094
|
-
fetchOptions?: FetchOptions | undefined;
|
|
1095
|
-
}>, data_1?: FetchOptions | undefined) => Promise<better_auth_client0.BetterFetchResponse<{
|
|
1096
|
-
error: null;
|
|
1097
|
-
success: boolean;
|
|
1098
|
-
}, {
|
|
1099
|
-
code?: string | undefined;
|
|
1100
|
-
message?: string | undefined;
|
|
1101
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1102
|
-
};
|
|
1103
773
|
} & {
|
|
1104
774
|
signIn: {
|
|
1105
775
|
social: <FetchOptions extends better_auth0.ClientFetchOption<Partial<{
|
|
1106
|
-
provider: (string & {}) | "linear" | "huggingface" | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "railway" | "vercel";
|
|
776
|
+
provider: (string & {}) | "linear" | "huggingface" | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "railway" | "vercel" | "wechat";
|
|
1107
777
|
callbackURL?: string | undefined;
|
|
1108
778
|
newUserCallbackURL?: string | undefined;
|
|
1109
779
|
errorCallbackURL?: string | undefined;
|
|
@@ -1127,7 +797,7 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
1127
797
|
loginHint?: string | undefined;
|
|
1128
798
|
additionalData?: Record<string, any> | undefined;
|
|
1129
799
|
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth0.Prettify<{
|
|
1130
|
-
provider: (string & {}) | "linear" | "huggingface" | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "railway" | "vercel";
|
|
800
|
+
provider: (string & {}) | "linear" | "huggingface" | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "railway" | "vercel" | "wechat";
|
|
1131
801
|
callbackURL?: string | undefined;
|
|
1132
802
|
newUserCallbackURL?: string | undefined;
|
|
1133
803
|
errorCallbackURL?: string | undefined;
|
|
@@ -1192,6 +862,16 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
1192
862
|
message?: string | undefined;
|
|
1193
863
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1194
864
|
};
|
|
865
|
+
} & {
|
|
866
|
+
signOut: <FetchOptions extends better_auth0.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth0.Prettify<{
|
|
867
|
+
query?: Record<string, any> | undefined;
|
|
868
|
+
fetchOptions?: FetchOptions | undefined;
|
|
869
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<better_auth_client0.BetterFetchResponse<{
|
|
870
|
+
success: boolean;
|
|
871
|
+
}, {
|
|
872
|
+
code?: string | undefined;
|
|
873
|
+
message?: string | undefined;
|
|
874
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1195
875
|
} & {
|
|
1196
876
|
signUp: {
|
|
1197
877
|
email: <FetchOptions extends better_auth0.ClientFetchOption<Partial<{
|
|
@@ -1205,8 +885,10 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
1205
885
|
baseURL: string;
|
|
1206
886
|
plugins: ({
|
|
1207
887
|
id: "email-otp";
|
|
888
|
+
version: string;
|
|
1208
889
|
$InferServerPlugin: ReturnType<(options: better_auth_plugins0.EmailOTPOptions) => {
|
|
1209
890
|
id: "email-otp";
|
|
891
|
+
version: string;
|
|
1210
892
|
init(ctx: better_auth0.AuthContext): {
|
|
1211
893
|
options: {
|
|
1212
894
|
emailVerification: {
|
|
@@ -1227,7 +909,7 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
1227
909
|
};
|
|
1228
910
|
} | undefined;
|
|
1229
911
|
endpoints: {
|
|
1230
|
-
sendVerificationOTP:
|
|
912
|
+
sendVerificationOTP: better_call0.StrictEndpoint<"/email-otp/send-verification-otp", {
|
|
1231
913
|
method: "POST";
|
|
1232
914
|
body: zod.ZodObject<{
|
|
1233
915
|
email: zod.ZodString;
|
|
@@ -1237,7 +919,7 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
1237
919
|
"email-verification": "email-verification";
|
|
1238
920
|
"forget-password": "forget-password";
|
|
1239
921
|
}>;
|
|
1240
|
-
},
|
|
922
|
+
}, zod_v4_core0.$strip>;
|
|
1241
923
|
metadata: {
|
|
1242
924
|
openapi: {
|
|
1243
925
|
operationId: string;
|
|
@@ -1264,7 +946,7 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
1264
946
|
}, {
|
|
1265
947
|
success: boolean;
|
|
1266
948
|
}>;
|
|
1267
|
-
createVerificationOTP:
|
|
949
|
+
createVerificationOTP: better_call0.StrictEndpoint<string, {
|
|
1268
950
|
method: "POST";
|
|
1269
951
|
body: zod.ZodObject<{
|
|
1270
952
|
email: zod.ZodString;
|
|
@@ -1274,7 +956,7 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
1274
956
|
"email-verification": "email-verification";
|
|
1275
957
|
"forget-password": "forget-password";
|
|
1276
958
|
}>;
|
|
1277
|
-
},
|
|
959
|
+
}, zod_v4_core0.$strip>;
|
|
1278
960
|
metadata: {
|
|
1279
961
|
openapi: {
|
|
1280
962
|
operationId: string;
|
|
@@ -1294,7 +976,7 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
1294
976
|
};
|
|
1295
977
|
};
|
|
1296
978
|
}, string>;
|
|
1297
|
-
getVerificationOTP:
|
|
979
|
+
getVerificationOTP: better_call0.StrictEndpoint<string, {
|
|
1298
980
|
method: "GET";
|
|
1299
981
|
query: zod.ZodObject<{
|
|
1300
982
|
email: zod.ZodString;
|
|
@@ -1304,7 +986,7 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
1304
986
|
"email-verification": "email-verification";
|
|
1305
987
|
"forget-password": "forget-password";
|
|
1306
988
|
}>;
|
|
1307
|
-
},
|
|
989
|
+
}, zod_v4_core0.$strip>;
|
|
1308
990
|
metadata: {
|
|
1309
991
|
openapi: {
|
|
1310
992
|
operationId: string;
|
|
@@ -1336,7 +1018,7 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
1336
1018
|
} | {
|
|
1337
1019
|
otp: string;
|
|
1338
1020
|
}>;
|
|
1339
|
-
checkVerificationOTP:
|
|
1021
|
+
checkVerificationOTP: better_call0.StrictEndpoint<"/email-otp/check-verification-otp", {
|
|
1340
1022
|
method: "POST";
|
|
1341
1023
|
body: zod.ZodObject<{
|
|
1342
1024
|
email: zod.ZodString;
|
|
@@ -1347,7 +1029,7 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
1347
1029
|
"forget-password": "forget-password";
|
|
1348
1030
|
}>;
|
|
1349
1031
|
otp: zod.ZodString;
|
|
1350
|
-
},
|
|
1032
|
+
}, zod_v4_core0.$strip>;
|
|
1351
1033
|
metadata: {
|
|
1352
1034
|
openapi: {
|
|
1353
1035
|
operationId: string;
|
|
@@ -1374,12 +1056,12 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
1374
1056
|
}, {
|
|
1375
1057
|
success: boolean;
|
|
1376
1058
|
}>;
|
|
1377
|
-
verifyEmailOTP:
|
|
1059
|
+
verifyEmailOTP: better_call0.StrictEndpoint<"/email-otp/verify-email", {
|
|
1378
1060
|
method: "POST";
|
|
1379
1061
|
body: zod.ZodObject<{
|
|
1380
1062
|
email: zod.ZodString;
|
|
1381
1063
|
otp: zod.ZodString;
|
|
1382
|
-
},
|
|
1064
|
+
}, zod_v4_core0.$strip>;
|
|
1383
1065
|
metadata: {
|
|
1384
1066
|
openapi: {
|
|
1385
1067
|
description: string;
|
|
@@ -1438,14 +1120,14 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
1438
1120
|
image?: string | null | undefined;
|
|
1439
1121
|
} & Record<string, any>;
|
|
1440
1122
|
}>;
|
|
1441
|
-
signInEmailOTP:
|
|
1123
|
+
signInEmailOTP: better_call0.StrictEndpoint<"/sign-in/email-otp", {
|
|
1442
1124
|
method: "POST";
|
|
1443
1125
|
body: zod.ZodIntersection<zod.ZodObject<{
|
|
1444
1126
|
email: zod.ZodString;
|
|
1445
1127
|
otp: zod.ZodString;
|
|
1446
1128
|
name: zod.ZodOptional<zod.ZodString>;
|
|
1447
1129
|
image: zod.ZodOptional<zod.ZodString>;
|
|
1448
|
-
},
|
|
1130
|
+
}, zod_v4_core0.$strip>, zod.ZodRecord<zod.ZodString, zod.ZodAny>>;
|
|
1449
1131
|
metadata: {
|
|
1450
1132
|
openapi: {
|
|
1451
1133
|
operationId: string;
|
|
@@ -1486,11 +1168,11 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
1486
1168
|
image?: string | null | undefined;
|
|
1487
1169
|
};
|
|
1488
1170
|
}>;
|
|
1489
|
-
requestPasswordResetEmailOTP:
|
|
1171
|
+
requestPasswordResetEmailOTP: better_call0.StrictEndpoint<"/email-otp/request-password-reset", {
|
|
1490
1172
|
method: "POST";
|
|
1491
1173
|
body: zod.ZodObject<{
|
|
1492
1174
|
email: zod.ZodString;
|
|
1493
|
-
},
|
|
1175
|
+
}, zod_v4_core0.$strip>;
|
|
1494
1176
|
metadata: {
|
|
1495
1177
|
openapi: {
|
|
1496
1178
|
operationId: string;
|
|
@@ -1518,11 +1200,11 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
1518
1200
|
}, {
|
|
1519
1201
|
success: boolean;
|
|
1520
1202
|
}>;
|
|
1521
|
-
forgetPasswordEmailOTP:
|
|
1203
|
+
forgetPasswordEmailOTP: better_call0.StrictEndpoint<"/forget-password/email-otp", {
|
|
1522
1204
|
method: "POST";
|
|
1523
1205
|
body: zod.ZodObject<{
|
|
1524
1206
|
email: zod.ZodString;
|
|
1525
|
-
},
|
|
1207
|
+
}, zod_v4_core0.$strip>;
|
|
1526
1208
|
metadata: {
|
|
1527
1209
|
openapi: {
|
|
1528
1210
|
operationId: string;
|
|
@@ -1550,13 +1232,13 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
1550
1232
|
}, {
|
|
1551
1233
|
success: boolean;
|
|
1552
1234
|
}>;
|
|
1553
|
-
resetPasswordEmailOTP:
|
|
1235
|
+
resetPasswordEmailOTP: better_call0.StrictEndpoint<"/email-otp/reset-password", {
|
|
1554
1236
|
method: "POST";
|
|
1555
1237
|
body: zod.ZodObject<{
|
|
1556
1238
|
email: zod.ZodString;
|
|
1557
1239
|
otp: zod.ZodString;
|
|
1558
1240
|
password: zod.ZodString;
|
|
1559
|
-
},
|
|
1241
|
+
}, zod_v4_core0.$strip>;
|
|
1560
1242
|
metadata: {
|
|
1561
1243
|
openapi: {
|
|
1562
1244
|
operationId: string;
|
|
@@ -1583,13 +1265,13 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
1583
1265
|
}, {
|
|
1584
1266
|
success: boolean;
|
|
1585
1267
|
}>;
|
|
1586
|
-
requestEmailChangeEmailOTP:
|
|
1268
|
+
requestEmailChangeEmailOTP: better_call0.StrictEndpoint<"/email-otp/request-email-change", {
|
|
1587
1269
|
method: "POST";
|
|
1588
1270
|
body: zod.ZodObject<{
|
|
1589
1271
|
newEmail: zod.ZodString;
|
|
1590
1272
|
otp: zod.ZodOptional<zod.ZodString>;
|
|
1591
|
-
},
|
|
1592
|
-
use: ((inputContext:
|
|
1273
|
+
}, zod_v4_core0.$strip>;
|
|
1274
|
+
use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
|
|
1593
1275
|
session: {
|
|
1594
1276
|
session: Record<string, any> & {
|
|
1595
1277
|
id: string;
|
|
@@ -1638,13 +1320,13 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
1638
1320
|
}, {
|
|
1639
1321
|
success: boolean;
|
|
1640
1322
|
}>;
|
|
1641
|
-
changeEmailEmailOTP:
|
|
1323
|
+
changeEmailEmailOTP: better_call0.StrictEndpoint<"/email-otp/change-email", {
|
|
1642
1324
|
method: "POST";
|
|
1643
1325
|
body: zod.ZodObject<{
|
|
1644
1326
|
newEmail: zod.ZodString;
|
|
1645
1327
|
otp: zod.ZodString;
|
|
1646
|
-
},
|
|
1647
|
-
use: ((inputContext:
|
|
1328
|
+
}, zod_v4_core0.$strip>;
|
|
1329
|
+
use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
|
|
1648
1330
|
session: {
|
|
1649
1331
|
session: Record<string, any> & {
|
|
1650
1332
|
id: string;
|
|
@@ -1697,7 +1379,7 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
1697
1379
|
hooks: {
|
|
1698
1380
|
after: {
|
|
1699
1381
|
matcher(context: better_auth0.HookEndpointContext): boolean;
|
|
1700
|
-
handler: (inputContext:
|
|
1382
|
+
handler: (inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<void>;
|
|
1701
1383
|
}[];
|
|
1702
1384
|
};
|
|
1703
1385
|
rateLimit: ({
|
|
@@ -1745,7 +1427,7 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
1745
1427
|
};
|
|
1746
1428
|
}>;
|
|
1747
1429
|
atomListeners: {
|
|
1748
|
-
matcher: (path: string) => path is "/email-otp/verify-email" | "/sign-in/email-otp";
|
|
1430
|
+
matcher: (path: string) => path is "/email-otp/verify-email" | "/sign-in/email-otp" | "/email-otp/request-email-change";
|
|
1749
1431
|
signal: "$sessionSignal";
|
|
1750
1432
|
}[];
|
|
1751
1433
|
$ERROR_CODES: {
|
|
@@ -1755,12 +1437,14 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
1755
1437
|
};
|
|
1756
1438
|
} | {
|
|
1757
1439
|
id: "passkey";
|
|
1440
|
+
version: string;
|
|
1758
1441
|
$InferServerPlugin: ReturnType<(options?: _better_auth_passkey0.PasskeyOptions | undefined) => {
|
|
1759
1442
|
id: "passkey";
|
|
1443
|
+
version: string;
|
|
1760
1444
|
endpoints: {
|
|
1761
|
-
generatePasskeyRegistrationOptions:
|
|
1445
|
+
generatePasskeyRegistrationOptions: better_call0.StrictEndpoint<"/passkey/generate-register-options", {
|
|
1762
1446
|
method: "GET";
|
|
1763
|
-
use: ((inputContext:
|
|
1447
|
+
use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
|
|
1764
1448
|
session: {
|
|
1765
1449
|
session: Record<string, any> & {
|
|
1766
1450
|
id: string;
|
|
@@ -1789,7 +1473,8 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
1789
1473
|
"cross-platform": "cross-platform";
|
|
1790
1474
|
}>>;
|
|
1791
1475
|
name: zod.ZodOptional<zod.ZodString>;
|
|
1792
|
-
|
|
1476
|
+
context: zod.ZodOptional<zod.ZodString>;
|
|
1477
|
+
}, zod_v4_core0.$strip>>;
|
|
1793
1478
|
metadata: {
|
|
1794
1479
|
openapi: {
|
|
1795
1480
|
operationId: string;
|
|
@@ -1807,6 +1492,10 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
1807
1492
|
description: string;
|
|
1808
1493
|
required: boolean;
|
|
1809
1494
|
};
|
|
1495
|
+
context: {
|
|
1496
|
+
description: string;
|
|
1497
|
+
required: boolean;
|
|
1498
|
+
};
|
|
1810
1499
|
};
|
|
1811
1500
|
};
|
|
1812
1501
|
content: {
|
|
@@ -1908,7 +1597,7 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
1908
1597
|
};
|
|
1909
1598
|
};
|
|
1910
1599
|
}, _better_auth_passkey_client0.PublicKeyCredentialCreationOptionsJSON>;
|
|
1911
|
-
generatePasskeyAuthenticationOptions:
|
|
1600
|
+
generatePasskeyAuthenticationOptions: better_call0.StrictEndpoint<"/passkey/generate-authenticate-options", {
|
|
1912
1601
|
method: "GET";
|
|
1913
1602
|
metadata: {
|
|
1914
1603
|
openapi: {
|
|
@@ -2002,13 +1691,13 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
2002
1691
|
};
|
|
2003
1692
|
};
|
|
2004
1693
|
}, _better_auth_passkey_client0.PublicKeyCredentialRequestOptionsJSON>;
|
|
2005
|
-
verifyPasskeyRegistration:
|
|
1694
|
+
verifyPasskeyRegistration: better_call0.StrictEndpoint<"/passkey/verify-registration", {
|
|
2006
1695
|
method: "POST";
|
|
2007
1696
|
body: zod.ZodObject<{
|
|
2008
1697
|
response: zod.ZodAny;
|
|
2009
1698
|
name: zod.ZodOptional<zod.ZodString>;
|
|
2010
|
-
},
|
|
2011
|
-
use: ((inputContext:
|
|
1699
|
+
}, zod_v4_core0.$strip>;
|
|
1700
|
+
use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
|
|
2012
1701
|
session: {
|
|
2013
1702
|
session: Record<string, any> & {
|
|
2014
1703
|
id: string;
|
|
@@ -2053,11 +1742,11 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
2053
1742
|
};
|
|
2054
1743
|
};
|
|
2055
1744
|
}, _better_auth_passkey0.Passkey>;
|
|
2056
|
-
verifyPasskeyAuthentication:
|
|
1745
|
+
verifyPasskeyAuthentication: better_call0.StrictEndpoint<"/passkey/verify-authentication", {
|
|
2057
1746
|
method: "POST";
|
|
2058
1747
|
body: zod.ZodObject<{
|
|
2059
1748
|
response: zod.ZodRecord<zod.ZodAny, zod.ZodAny>;
|
|
2060
|
-
},
|
|
1749
|
+
}, zod_v4_core0.$strip>;
|
|
2061
1750
|
metadata: {
|
|
2062
1751
|
openapi: {
|
|
2063
1752
|
operationId: string;
|
|
@@ -2100,10 +1789,19 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
2100
1789
|
ipAddress?: string | null | undefined;
|
|
2101
1790
|
userAgent?: string | null | undefined;
|
|
2102
1791
|
};
|
|
1792
|
+
user: {
|
|
1793
|
+
id: string;
|
|
1794
|
+
createdAt: Date;
|
|
1795
|
+
updatedAt: Date;
|
|
1796
|
+
email: string;
|
|
1797
|
+
emailVerified: boolean;
|
|
1798
|
+
name: string;
|
|
1799
|
+
image?: string | null | undefined;
|
|
1800
|
+
};
|
|
2103
1801
|
}>;
|
|
2104
|
-
listPasskeys:
|
|
1802
|
+
listPasskeys: better_call0.StrictEndpoint<"/passkey/list-user-passkeys", {
|
|
2105
1803
|
method: "GET";
|
|
2106
|
-
use: ((inputContext:
|
|
1804
|
+
use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
|
|
2107
1805
|
session: {
|
|
2108
1806
|
session: Record<string, any> & {
|
|
2109
1807
|
id: string;
|
|
@@ -2149,12 +1847,12 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
2149
1847
|
};
|
|
2150
1848
|
};
|
|
2151
1849
|
}, _better_auth_passkey0.Passkey[]>;
|
|
2152
|
-
deletePasskey:
|
|
1850
|
+
deletePasskey: better_call0.StrictEndpoint<"/passkey/delete-passkey", {
|
|
2153
1851
|
method: "POST";
|
|
2154
1852
|
body: zod.ZodObject<{
|
|
2155
1853
|
id: zod.ZodString;
|
|
2156
|
-
},
|
|
2157
|
-
use: ((inputContext:
|
|
1854
|
+
}, zod_v4_core0.$strip>;
|
|
1855
|
+
use: (((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
|
|
2158
1856
|
session: {
|
|
2159
1857
|
session: Record<string, any> & {
|
|
2160
1858
|
id: string;
|
|
@@ -2176,7 +1874,9 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
2176
1874
|
image?: string | null | undefined;
|
|
2177
1875
|
};
|
|
2178
1876
|
};
|
|
2179
|
-
}>)
|
|
1877
|
+
}>) | ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
|
|
1878
|
+
verifiedResource: {};
|
|
1879
|
+
}>))[];
|
|
2180
1880
|
metadata: {
|
|
2181
1881
|
openapi: {
|
|
2182
1882
|
description: string;
|
|
@@ -2204,13 +1904,13 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
2204
1904
|
}, {
|
|
2205
1905
|
status: boolean;
|
|
2206
1906
|
}>;
|
|
2207
|
-
updatePasskey:
|
|
1907
|
+
updatePasskey: better_call0.StrictEndpoint<"/passkey/update-passkey", {
|
|
2208
1908
|
method: "POST";
|
|
2209
1909
|
body: zod.ZodObject<{
|
|
2210
1910
|
id: zod.ZodString;
|
|
2211
1911
|
name: zod.ZodString;
|
|
2212
|
-
},
|
|
2213
|
-
use: ((inputContext:
|
|
1912
|
+
}, zod_v4_core0.$strip>;
|
|
1913
|
+
use: (((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
|
|
2214
1914
|
session: {
|
|
2215
1915
|
session: Record<string, any> & {
|
|
2216
1916
|
id: string;
|
|
@@ -2232,7 +1932,9 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
2232
1932
|
image?: string | null | undefined;
|
|
2233
1933
|
};
|
|
2234
1934
|
};
|
|
2235
|
-
}>)
|
|
1935
|
+
}>) | ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
|
|
1936
|
+
verifiedResource: {};
|
|
1937
|
+
}>))[];
|
|
2236
1938
|
metadata: {
|
|
2237
1939
|
openapi: {
|
|
2238
1940
|
description: string;
|
|
@@ -2320,6 +2022,13 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
2320
2022
|
AUTHENTICATION_FAILED: better_auth0.RawError<"AUTHENTICATION_FAILED">;
|
|
2321
2023
|
UNABLE_TO_CREATE_SESSION: better_auth0.RawError<"UNABLE_TO_CREATE_SESSION">;
|
|
2322
2024
|
FAILED_TO_UPDATE_PASSKEY: better_auth0.RawError<"FAILED_TO_UPDATE_PASSKEY">;
|
|
2025
|
+
PREVIOUSLY_REGISTERED: better_auth0.RawError<"PREVIOUSLY_REGISTERED">;
|
|
2026
|
+
REGISTRATION_CANCELLED: better_auth0.RawError<"REGISTRATION_CANCELLED">;
|
|
2027
|
+
AUTH_CANCELLED: better_auth0.RawError<"AUTH_CANCELLED">;
|
|
2028
|
+
UNKNOWN_ERROR: better_auth0.RawError<"UNKNOWN_ERROR">;
|
|
2029
|
+
SESSION_REQUIRED: better_auth0.RawError<"SESSION_REQUIRED">;
|
|
2030
|
+
RESOLVE_USER_REQUIRED: better_auth0.RawError<"RESOLVE_USER_REQUIRED">;
|
|
2031
|
+
RESOLVED_USER_INVALID: better_auth0.RawError<"RESOLVED_USER_INVALID">;
|
|
2323
2032
|
};
|
|
2324
2033
|
options: _better_auth_passkey0.PasskeyOptions | undefined;
|
|
2325
2034
|
}>;
|
|
@@ -2327,6 +2036,8 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
2327
2036
|
signIn: {
|
|
2328
2037
|
passkey: (opts?: {
|
|
2329
2038
|
autoFill?: boolean;
|
|
2039
|
+
extensions?: _better_auth_passkey_client0.AuthenticationExtensionsClientInputs;
|
|
2040
|
+
returnWebAuthnResponse?: boolean;
|
|
2330
2041
|
fetchOptions?: better_auth0.ClientFetchOption;
|
|
2331
2042
|
} | undefined, options?: better_auth0.ClientFetchOption | undefined) => Promise<{
|
|
2332
2043
|
data: null;
|
|
@@ -2366,6 +2077,44 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
2366
2077
|
status: number;
|
|
2367
2078
|
statusText: string;
|
|
2368
2079
|
};
|
|
2080
|
+
} | {
|
|
2081
|
+
webauthn: {
|
|
2082
|
+
response: _better_auth_passkey_client0.AuthenticationResponseJSON;
|
|
2083
|
+
clientExtensionResults: _better_auth_passkey_client0.AuthenticationExtensionsClientOutputs;
|
|
2084
|
+
};
|
|
2085
|
+
data: null;
|
|
2086
|
+
error: {
|
|
2087
|
+
message?: string | undefined;
|
|
2088
|
+
status: number;
|
|
2089
|
+
statusText: string;
|
|
2090
|
+
};
|
|
2091
|
+
} | {
|
|
2092
|
+
webauthn: {
|
|
2093
|
+
response: _better_auth_passkey_client0.AuthenticationResponseJSON;
|
|
2094
|
+
clientExtensionResults: _better_auth_passkey_client0.AuthenticationExtensionsClientOutputs;
|
|
2095
|
+
};
|
|
2096
|
+
data: {
|
|
2097
|
+
session: {
|
|
2098
|
+
id: string;
|
|
2099
|
+
createdAt: Date;
|
|
2100
|
+
updatedAt: Date;
|
|
2101
|
+
userId: string;
|
|
2102
|
+
expiresAt: Date;
|
|
2103
|
+
token: string;
|
|
2104
|
+
ipAddress?: string | null | undefined;
|
|
2105
|
+
userAgent?: string | null | undefined;
|
|
2106
|
+
};
|
|
2107
|
+
user: {
|
|
2108
|
+
id: string;
|
|
2109
|
+
createdAt: Date;
|
|
2110
|
+
updatedAt: Date;
|
|
2111
|
+
email: string;
|
|
2112
|
+
emailVerified: boolean;
|
|
2113
|
+
name: string;
|
|
2114
|
+
image?: string | null | undefined;
|
|
2115
|
+
};
|
|
2116
|
+
};
|
|
2117
|
+
error: null;
|
|
2369
2118
|
}>;
|
|
2370
2119
|
};
|
|
2371
2120
|
passkey: {
|
|
@@ -2373,7 +2122,10 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
2373
2122
|
fetchOptions?: better_auth0.ClientFetchOption;
|
|
2374
2123
|
name?: string;
|
|
2375
2124
|
authenticatorAttachment?: "platform" | "cross-platform";
|
|
2125
|
+
context?: string | null;
|
|
2126
|
+
extensions?: _better_auth_passkey_client0.AuthenticationExtensionsClientInputs;
|
|
2376
2127
|
useAutoRegister?: boolean;
|
|
2128
|
+
returnWebAuthnResponse?: boolean;
|
|
2377
2129
|
} | undefined, fetchOpts?: better_auth0.ClientFetchOption | undefined) => Promise<{
|
|
2378
2130
|
data: null;
|
|
2379
2131
|
error: {
|
|
@@ -2384,6 +2136,13 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
2384
2136
|
} | {
|
|
2385
2137
|
data: _better_auth_passkey0.Passkey;
|
|
2386
2138
|
error: null;
|
|
2139
|
+
} | {
|
|
2140
|
+
webauthn: {
|
|
2141
|
+
response: _better_auth_passkey_client0.RegistrationResponseJSON;
|
|
2142
|
+
clientExtensionResults: _better_auth_passkey_client0.AuthenticationExtensionsClientOutputs;
|
|
2143
|
+
};
|
|
2144
|
+
data: _better_auth_passkey0.Passkey;
|
|
2145
|
+
error: null;
|
|
2387
2146
|
} | {
|
|
2388
2147
|
data: null;
|
|
2389
2148
|
error: {
|
|
@@ -2421,11 +2180,20 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
2421
2180
|
AUTHENTICATION_FAILED: better_auth0.RawError<"AUTHENTICATION_FAILED">;
|
|
2422
2181
|
UNABLE_TO_CREATE_SESSION: better_auth0.RawError<"UNABLE_TO_CREATE_SESSION">;
|
|
2423
2182
|
FAILED_TO_UPDATE_PASSKEY: better_auth0.RawError<"FAILED_TO_UPDATE_PASSKEY">;
|
|
2183
|
+
PREVIOUSLY_REGISTERED: better_auth0.RawError<"PREVIOUSLY_REGISTERED">;
|
|
2184
|
+
REGISTRATION_CANCELLED: better_auth0.RawError<"REGISTRATION_CANCELLED">;
|
|
2185
|
+
AUTH_CANCELLED: better_auth0.RawError<"AUTH_CANCELLED">;
|
|
2186
|
+
UNKNOWN_ERROR: better_auth0.RawError<"UNKNOWN_ERROR">;
|
|
2187
|
+
SESSION_REQUIRED: better_auth0.RawError<"SESSION_REQUIRED">;
|
|
2188
|
+
RESOLVE_USER_REQUIRED: better_auth0.RawError<"RESOLVE_USER_REQUIRED">;
|
|
2189
|
+
RESOLVED_USER_INVALID: better_auth0.RawError<"RESOLVED_USER_INVALID">;
|
|
2424
2190
|
};
|
|
2425
2191
|
} | {
|
|
2426
2192
|
id: "admin-client";
|
|
2193
|
+
version: string;
|
|
2427
2194
|
$InferServerPlugin: {
|
|
2428
2195
|
id: "admin";
|
|
2196
|
+
version: string;
|
|
2429
2197
|
init(): {
|
|
2430
2198
|
options: {
|
|
2431
2199
|
databaseHooks: {
|
|
@@ -2473,18 +2241,18 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
2473
2241
|
hooks: {
|
|
2474
2242
|
after: {
|
|
2475
2243
|
matcher(context: better_auth0.HookEndpointContext): boolean;
|
|
2476
|
-
handler: (inputContext:
|
|
2244
|
+
handler: (inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<better_auth_plugins0.SessionWithImpersonatedBy[] | undefined>;
|
|
2477
2245
|
}[];
|
|
2478
2246
|
};
|
|
2479
2247
|
endpoints: {
|
|
2480
|
-
setRole:
|
|
2248
|
+
setRole: better_call0.StrictEndpoint<"/admin/set-role", {
|
|
2481
2249
|
method: "POST";
|
|
2482
2250
|
body: zod.ZodObject<{
|
|
2483
2251
|
userId: zod.ZodCoercedString<unknown>;
|
|
2484
2252
|
role: zod.ZodUnion<readonly [zod.ZodString, zod.ZodArray<zod.ZodString>]>;
|
|
2485
|
-
},
|
|
2253
|
+
}, zod_v4_core0.$strip>;
|
|
2486
2254
|
requireHeaders: true;
|
|
2487
|
-
use: ((inputContext:
|
|
2255
|
+
use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
|
|
2488
2256
|
session: {
|
|
2489
2257
|
user: better_auth_plugins0.UserWithRole;
|
|
2490
2258
|
session: {
|
|
@@ -2538,12 +2306,12 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
2538
2306
|
}, {
|
|
2539
2307
|
user: better_auth_plugins0.UserWithRole;
|
|
2540
2308
|
}>;
|
|
2541
|
-
getUser:
|
|
2309
|
+
getUser: better_call0.StrictEndpoint<"/admin/get-user", {
|
|
2542
2310
|
method: "GET";
|
|
2543
2311
|
query: zod.ZodObject<{
|
|
2544
2312
|
id: zod.ZodString;
|
|
2545
|
-
},
|
|
2546
|
-
use: ((inputContext:
|
|
2313
|
+
}, zod_v4_core0.$strip>;
|
|
2314
|
+
use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
|
|
2547
2315
|
session: {
|
|
2548
2316
|
user: better_auth_plugins0.UserWithRole;
|
|
2549
2317
|
session: {
|
|
@@ -2583,7 +2351,7 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
2583
2351
|
};
|
|
2584
2352
|
};
|
|
2585
2353
|
}, better_auth_plugins0.UserWithRole>;
|
|
2586
|
-
createUser:
|
|
2354
|
+
createUser: better_call0.StrictEndpoint<"/admin/create-user", {
|
|
2587
2355
|
method: "POST";
|
|
2588
2356
|
body: zod.ZodObject<{
|
|
2589
2357
|
email: zod.ZodString;
|
|
@@ -2591,7 +2359,7 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
2591
2359
|
name: zod.ZodString;
|
|
2592
2360
|
role: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodString, zod.ZodArray<zod.ZodString>]>>;
|
|
2593
2361
|
data: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodAny>>;
|
|
2594
|
-
},
|
|
2362
|
+
}, zod_v4_core0.$strip>;
|
|
2595
2363
|
metadata: {
|
|
2596
2364
|
openapi: {
|
|
2597
2365
|
operationId: string;
|
|
@@ -2634,13 +2402,13 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
2634
2402
|
}, {
|
|
2635
2403
|
user: better_auth_plugins0.UserWithRole;
|
|
2636
2404
|
}>;
|
|
2637
|
-
adminUpdateUser:
|
|
2405
|
+
adminUpdateUser: better_call0.StrictEndpoint<"/admin/update-user", {
|
|
2638
2406
|
method: "POST";
|
|
2639
2407
|
body: zod.ZodObject<{
|
|
2640
2408
|
userId: zod.ZodCoercedString<unknown>;
|
|
2641
2409
|
data: zod.ZodRecord<zod.ZodAny, zod.ZodAny>;
|
|
2642
|
-
},
|
|
2643
|
-
use: ((inputContext:
|
|
2410
|
+
}, zod_v4_core0.$strip>;
|
|
2411
|
+
use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
|
|
2644
2412
|
session: {
|
|
2645
2413
|
user: better_auth_plugins0.UserWithRole;
|
|
2646
2414
|
session: {
|
|
@@ -2680,9 +2448,9 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
2680
2448
|
};
|
|
2681
2449
|
};
|
|
2682
2450
|
}, better_auth_plugins0.UserWithRole>;
|
|
2683
|
-
listUsers:
|
|
2451
|
+
listUsers: better_call0.StrictEndpoint<"/admin/list-users", {
|
|
2684
2452
|
method: "GET";
|
|
2685
|
-
use: ((inputContext:
|
|
2453
|
+
use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
|
|
2686
2454
|
session: {
|
|
2687
2455
|
user: better_auth_plugins0.UserWithRole;
|
|
2688
2456
|
session: {
|
|
@@ -2700,8 +2468,8 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
2700
2468
|
query: zod.ZodObject<{
|
|
2701
2469
|
searchValue: zod.ZodOptional<zod.ZodString>;
|
|
2702
2470
|
searchField: zod.ZodOptional<zod.ZodEnum<{
|
|
2703
|
-
name: "name";
|
|
2704
2471
|
email: "email";
|
|
2472
|
+
name: "name";
|
|
2705
2473
|
}>>;
|
|
2706
2474
|
searchOperator: zod.ZodOptional<zod.ZodEnum<{
|
|
2707
2475
|
contains: "contains";
|
|
@@ -2730,7 +2498,7 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
2730
2498
|
starts_with: "starts_with";
|
|
2731
2499
|
ends_with: "ends_with";
|
|
2732
2500
|
}>>;
|
|
2733
|
-
},
|
|
2501
|
+
}, zod_v4_core0.$strip>;
|
|
2734
2502
|
metadata: {
|
|
2735
2503
|
openapi: {
|
|
2736
2504
|
operationId: string;
|
|
@@ -2772,9 +2540,9 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
2772
2540
|
users: better_auth_plugins0.UserWithRole[];
|
|
2773
2541
|
total: number;
|
|
2774
2542
|
}>;
|
|
2775
|
-
listUserSessions:
|
|
2543
|
+
listUserSessions: better_call0.StrictEndpoint<"/admin/list-user-sessions", {
|
|
2776
2544
|
method: "POST";
|
|
2777
|
-
use: ((inputContext:
|
|
2545
|
+
use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
|
|
2778
2546
|
session: {
|
|
2779
2547
|
user: better_auth_plugins0.UserWithRole;
|
|
2780
2548
|
session: {
|
|
@@ -2791,7 +2559,7 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
2791
2559
|
}>)[];
|
|
2792
2560
|
body: zod.ZodObject<{
|
|
2793
2561
|
userId: zod.ZodCoercedString<unknown>;
|
|
2794
|
-
},
|
|
2562
|
+
}, zod_v4_core0.$strip>;
|
|
2795
2563
|
metadata: {
|
|
2796
2564
|
openapi: {
|
|
2797
2565
|
operationId: string;
|
|
@@ -2822,12 +2590,12 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
2822
2590
|
}, {
|
|
2823
2591
|
sessions: better_auth_plugins0.SessionWithImpersonatedBy[];
|
|
2824
2592
|
}>;
|
|
2825
|
-
unbanUser:
|
|
2593
|
+
unbanUser: better_call0.StrictEndpoint<"/admin/unban-user", {
|
|
2826
2594
|
method: "POST";
|
|
2827
2595
|
body: zod.ZodObject<{
|
|
2828
2596
|
userId: zod.ZodCoercedString<unknown>;
|
|
2829
|
-
},
|
|
2830
|
-
use: ((inputContext:
|
|
2597
|
+
}, zod_v4_core0.$strip>;
|
|
2598
|
+
use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
|
|
2831
2599
|
session: {
|
|
2832
2600
|
user: better_auth_plugins0.UserWithRole;
|
|
2833
2601
|
session: {
|
|
@@ -2869,14 +2637,14 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
2869
2637
|
}, {
|
|
2870
2638
|
user: better_auth_plugins0.UserWithRole;
|
|
2871
2639
|
}>;
|
|
2872
|
-
banUser:
|
|
2640
|
+
banUser: better_call0.StrictEndpoint<"/admin/ban-user", {
|
|
2873
2641
|
method: "POST";
|
|
2874
2642
|
body: zod.ZodObject<{
|
|
2875
2643
|
userId: zod.ZodCoercedString<unknown>;
|
|
2876
2644
|
banReason: zod.ZodOptional<zod.ZodString>;
|
|
2877
2645
|
banExpiresIn: zod.ZodOptional<zod.ZodNumber>;
|
|
2878
|
-
},
|
|
2879
|
-
use: ((inputContext:
|
|
2646
|
+
}, zod_v4_core0.$strip>;
|
|
2647
|
+
use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
|
|
2880
2648
|
session: {
|
|
2881
2649
|
user: better_auth_plugins0.UserWithRole;
|
|
2882
2650
|
session: {
|
|
@@ -2918,12 +2686,12 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
2918
2686
|
}, {
|
|
2919
2687
|
user: better_auth_plugins0.UserWithRole;
|
|
2920
2688
|
}>;
|
|
2921
|
-
impersonateUser:
|
|
2689
|
+
impersonateUser: better_call0.StrictEndpoint<"/admin/impersonate-user", {
|
|
2922
2690
|
method: "POST";
|
|
2923
2691
|
body: zod.ZodObject<{
|
|
2924
2692
|
userId: zod.ZodCoercedString<unknown>;
|
|
2925
|
-
},
|
|
2926
|
-
use: ((inputContext:
|
|
2693
|
+
}, zod_v4_core0.$strip>;
|
|
2694
|
+
use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
|
|
2927
2695
|
session: {
|
|
2928
2696
|
user: better_auth_plugins0.UserWithRole;
|
|
2929
2697
|
session: {
|
|
@@ -2978,7 +2746,7 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
2978
2746
|
};
|
|
2979
2747
|
user: better_auth_plugins0.UserWithRole;
|
|
2980
2748
|
}>;
|
|
2981
|
-
stopImpersonating:
|
|
2749
|
+
stopImpersonating: better_call0.StrictEndpoint<"/admin/stop-impersonating", {
|
|
2982
2750
|
method: "POST";
|
|
2983
2751
|
requireHeaders: true;
|
|
2984
2752
|
}, {
|
|
@@ -3002,12 +2770,12 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
3002
2770
|
image?: string | null | undefined;
|
|
3003
2771
|
} & Record<string, any>;
|
|
3004
2772
|
}>;
|
|
3005
|
-
revokeUserSession:
|
|
2773
|
+
revokeUserSession: better_call0.StrictEndpoint<"/admin/revoke-user-session", {
|
|
3006
2774
|
method: "POST";
|
|
3007
2775
|
body: zod.ZodObject<{
|
|
3008
2776
|
sessionToken: zod.ZodString;
|
|
3009
|
-
},
|
|
3010
|
-
use: ((inputContext:
|
|
2777
|
+
}, zod_v4_core0.$strip>;
|
|
2778
|
+
use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
|
|
3011
2779
|
session: {
|
|
3012
2780
|
user: better_auth_plugins0.UserWithRole;
|
|
3013
2781
|
session: {
|
|
@@ -3049,12 +2817,12 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
3049
2817
|
}, {
|
|
3050
2818
|
success: boolean;
|
|
3051
2819
|
}>;
|
|
3052
|
-
revokeUserSessions:
|
|
2820
|
+
revokeUserSessions: better_call0.StrictEndpoint<"/admin/revoke-user-sessions", {
|
|
3053
2821
|
method: "POST";
|
|
3054
2822
|
body: zod.ZodObject<{
|
|
3055
2823
|
userId: zod.ZodCoercedString<unknown>;
|
|
3056
|
-
},
|
|
3057
|
-
use: ((inputContext:
|
|
2824
|
+
}, zod_v4_core0.$strip>;
|
|
2825
|
+
use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
|
|
3058
2826
|
session: {
|
|
3059
2827
|
user: better_auth_plugins0.UserWithRole;
|
|
3060
2828
|
session: {
|
|
@@ -3096,12 +2864,12 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
3096
2864
|
}, {
|
|
3097
2865
|
success: boolean;
|
|
3098
2866
|
}>;
|
|
3099
|
-
removeUser:
|
|
2867
|
+
removeUser: better_call0.StrictEndpoint<"/admin/remove-user", {
|
|
3100
2868
|
method: "POST";
|
|
3101
2869
|
body: zod.ZodObject<{
|
|
3102
2870
|
userId: zod.ZodCoercedString<unknown>;
|
|
3103
|
-
},
|
|
3104
|
-
use: ((inputContext:
|
|
2871
|
+
}, zod_v4_core0.$strip>;
|
|
2872
|
+
use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
|
|
3105
2873
|
session: {
|
|
3106
2874
|
user: better_auth_plugins0.UserWithRole;
|
|
3107
2875
|
session: {
|
|
@@ -3143,13 +2911,13 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
3143
2911
|
}, {
|
|
3144
2912
|
success: boolean;
|
|
3145
2913
|
}>;
|
|
3146
|
-
setUserPassword:
|
|
2914
|
+
setUserPassword: better_call0.StrictEndpoint<"/admin/set-user-password", {
|
|
3147
2915
|
method: "POST";
|
|
3148
2916
|
body: zod.ZodObject<{
|
|
3149
2917
|
newPassword: zod.ZodString;
|
|
3150
2918
|
userId: zod.ZodCoercedString<unknown>;
|
|
3151
|
-
},
|
|
3152
|
-
use: ((inputContext:
|
|
2919
|
+
}, zod_v4_core0.$strip>;
|
|
2920
|
+
use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
|
|
3153
2921
|
session: {
|
|
3154
2922
|
user: better_auth_plugins0.UserWithRole;
|
|
3155
2923
|
session: {
|
|
@@ -3191,18 +2959,16 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
3191
2959
|
}, {
|
|
3192
2960
|
status: boolean;
|
|
3193
2961
|
}>;
|
|
3194
|
-
userHasPermission:
|
|
2962
|
+
userHasPermission: better_call0.StrictEndpoint<"/admin/has-permission", {
|
|
3195
2963
|
method: "POST";
|
|
3196
2964
|
body: zod.ZodIntersection<zod.ZodObject<{
|
|
3197
2965
|
userId: zod.ZodOptional<zod.ZodCoercedString<unknown>>;
|
|
3198
2966
|
role: zod.ZodOptional<zod.ZodString>;
|
|
3199
|
-
},
|
|
2967
|
+
}, zod_v4_core0.$strip>, zod.ZodXor<readonly [zod.ZodObject<{
|
|
3200
2968
|
permission: zod.ZodRecord<zod.ZodString, zod.ZodArray<zod.ZodString>>;
|
|
3201
|
-
|
|
3202
|
-
}, better_auth0.$strip>, zod.ZodObject<{
|
|
3203
|
-
permission: zod.ZodUndefined;
|
|
2969
|
+
}, zod_v4_core0.$strip>, zod.ZodObject<{
|
|
3204
2970
|
permissions: zod.ZodRecord<zod.ZodString, zod.ZodArray<zod.ZodString>>;
|
|
3205
|
-
},
|
|
2971
|
+
}, zod_v4_core0.$strip>]>>;
|
|
3206
2972
|
metadata: {
|
|
3207
2973
|
openapi: {
|
|
3208
2974
|
description: string;
|
|
@@ -3368,8 +3134,13 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
3368
3134
|
};
|
|
3369
3135
|
pathMethods: {
|
|
3370
3136
|
"/admin/list-users": "GET";
|
|
3137
|
+
"/admin/impersonate-user": "POST";
|
|
3371
3138
|
"/admin/stop-impersonating": "POST";
|
|
3372
3139
|
};
|
|
3140
|
+
atomListeners: {
|
|
3141
|
+
matcher: (path: string) => path is "/admin/impersonate-user" | "/admin/stop-impersonating";
|
|
3142
|
+
signal: "$sessionSignal";
|
|
3143
|
+
}[];
|
|
3373
3144
|
$ERROR_CODES: {
|
|
3374
3145
|
USER_ALREADY_EXISTS_USE_ANOTHER_EMAIL: better_auth0.RawError<"USER_ALREADY_EXISTS_USE_ANOTHER_EMAIL">;
|
|
3375
3146
|
FAILED_TO_CREATE_USER: better_auth0.RawError<"FAILED_TO_CREATE_USER">;
|
|
@@ -3395,8 +3166,10 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
3395
3166
|
};
|
|
3396
3167
|
} | {
|
|
3397
3168
|
id: "additional-fields-client";
|
|
3169
|
+
version: string;
|
|
3398
3170
|
$InferServerPlugin: {
|
|
3399
3171
|
id: "additional-fields";
|
|
3172
|
+
version: string;
|
|
3400
3173
|
schema: {
|
|
3401
3174
|
user: {
|
|
3402
3175
|
fields: {
|
|
@@ -3534,6 +3307,107 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
3534
3307
|
message?: string | undefined;
|
|
3535
3308
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
3536
3309
|
};
|
|
3310
|
+
} & {
|
|
3311
|
+
resetPassword: <FetchOptions extends better_auth0.ClientFetchOption<Partial<{
|
|
3312
|
+
newPassword: string;
|
|
3313
|
+
token?: string | undefined;
|
|
3314
|
+
}> & Record<string, any>, Partial<{
|
|
3315
|
+
token?: string | undefined;
|
|
3316
|
+
}> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth0.Prettify<{
|
|
3317
|
+
newPassword: string;
|
|
3318
|
+
token?: string | undefined;
|
|
3319
|
+
} & {
|
|
3320
|
+
fetchOptions?: FetchOptions | undefined;
|
|
3321
|
+
}>, data_1?: FetchOptions | undefined) => Promise<better_auth_client0.BetterFetchResponse<{
|
|
3322
|
+
status: boolean;
|
|
3323
|
+
}, {
|
|
3324
|
+
code?: string | undefined;
|
|
3325
|
+
message?: string | undefined;
|
|
3326
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
3327
|
+
} & {
|
|
3328
|
+
verifyEmail: <FetchOptions extends better_auth0.ClientFetchOption<never, Partial<{
|
|
3329
|
+
token: string;
|
|
3330
|
+
callbackURL?: string | undefined;
|
|
3331
|
+
}> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth0.Prettify<{
|
|
3332
|
+
query: {
|
|
3333
|
+
token: string;
|
|
3334
|
+
callbackURL?: string | undefined;
|
|
3335
|
+
};
|
|
3336
|
+
fetchOptions?: FetchOptions | undefined;
|
|
3337
|
+
}>, data_1?: FetchOptions | undefined) => Promise<better_auth_client0.BetterFetchResponse<NonNullable<void | {
|
|
3338
|
+
status: boolean;
|
|
3339
|
+
}>, {
|
|
3340
|
+
code?: string | undefined;
|
|
3341
|
+
message?: string | undefined;
|
|
3342
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
3343
|
+
} & {
|
|
3344
|
+
sendVerificationEmail: <FetchOptions extends better_auth0.ClientFetchOption<Partial<{
|
|
3345
|
+
email: string;
|
|
3346
|
+
callbackURL?: string | undefined;
|
|
3347
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth0.Prettify<{
|
|
3348
|
+
email: string;
|
|
3349
|
+
callbackURL?: string | undefined;
|
|
3350
|
+
} & {
|
|
3351
|
+
fetchOptions?: FetchOptions | undefined;
|
|
3352
|
+
}>, data_1?: FetchOptions | undefined) => Promise<better_auth_client0.BetterFetchResponse<{
|
|
3353
|
+
status: boolean;
|
|
3354
|
+
}, {
|
|
3355
|
+
code?: string | undefined;
|
|
3356
|
+
message?: string | undefined;
|
|
3357
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
3358
|
+
} & {
|
|
3359
|
+
changePassword: <FetchOptions extends better_auth0.ClientFetchOption<Partial<{
|
|
3360
|
+
newPassword: string;
|
|
3361
|
+
currentPassword: string;
|
|
3362
|
+
revokeOtherSessions?: boolean | undefined;
|
|
3363
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth0.Prettify<{
|
|
3364
|
+
newPassword: string;
|
|
3365
|
+
currentPassword: string;
|
|
3366
|
+
revokeOtherSessions?: boolean | undefined;
|
|
3367
|
+
} & {
|
|
3368
|
+
fetchOptions?: FetchOptions | undefined;
|
|
3369
|
+
}>, data_1?: FetchOptions | undefined) => Promise<better_auth_client0.BetterFetchResponse<Omit<{
|
|
3370
|
+
token: string | null;
|
|
3371
|
+
user: {
|
|
3372
|
+
id: string;
|
|
3373
|
+
createdAt: Date;
|
|
3374
|
+
updatedAt: Date;
|
|
3375
|
+
email: string;
|
|
3376
|
+
emailVerified: boolean;
|
|
3377
|
+
name: string;
|
|
3378
|
+
image?: string | null | undefined;
|
|
3379
|
+
} & Record<string, any> & {
|
|
3380
|
+
id: string;
|
|
3381
|
+
createdAt: Date;
|
|
3382
|
+
updatedAt: Date;
|
|
3383
|
+
email: string;
|
|
3384
|
+
emailVerified: boolean;
|
|
3385
|
+
name: string;
|
|
3386
|
+
image?: string | null | undefined;
|
|
3387
|
+
};
|
|
3388
|
+
}, "user"> & {
|
|
3389
|
+
user: better_auth0.StripEmptyObjects<{
|
|
3390
|
+
id: string;
|
|
3391
|
+
createdAt: Date;
|
|
3392
|
+
updatedAt: Date;
|
|
3393
|
+
email: string;
|
|
3394
|
+
emailVerified: boolean;
|
|
3395
|
+
name: string;
|
|
3396
|
+
image?: string | null | undefined;
|
|
3397
|
+
} & {
|
|
3398
|
+
firstName: string;
|
|
3399
|
+
lastName: string;
|
|
3400
|
+
} & {} & {
|
|
3401
|
+
banned: boolean | null | undefined;
|
|
3402
|
+
} & {
|
|
3403
|
+
role?: string | null | undefined;
|
|
3404
|
+
banReason?: string | null | undefined;
|
|
3405
|
+
banExpires?: Date | null | undefined;
|
|
3406
|
+
}>;
|
|
3407
|
+
}, {
|
|
3408
|
+
code?: string | undefined;
|
|
3409
|
+
message?: string | undefined;
|
|
3410
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
3537
3411
|
} & {
|
|
3538
3412
|
updateSession: <FetchOptions extends better_auth0.ClientFetchOption<Partial<Partial<{}>> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth0.Prettify<Partial<{}> & {
|
|
3539
3413
|
fetchOptions?: FetchOptions | undefined;
|
|
@@ -3560,8 +3434,10 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
3560
3434
|
baseURL: string;
|
|
3561
3435
|
plugins: ({
|
|
3562
3436
|
id: "email-otp";
|
|
3437
|
+
version: string;
|
|
3563
3438
|
$InferServerPlugin: ReturnType<(options: better_auth_plugins0.EmailOTPOptions) => {
|
|
3564
3439
|
id: "email-otp";
|
|
3440
|
+
version: string;
|
|
3565
3441
|
init(ctx: better_auth0.AuthContext): {
|
|
3566
3442
|
options: {
|
|
3567
3443
|
emailVerification: {
|
|
@@ -3582,7 +3458,7 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
3582
3458
|
};
|
|
3583
3459
|
} | undefined;
|
|
3584
3460
|
endpoints: {
|
|
3585
|
-
sendVerificationOTP:
|
|
3461
|
+
sendVerificationOTP: better_call0.StrictEndpoint<"/email-otp/send-verification-otp", {
|
|
3586
3462
|
method: "POST";
|
|
3587
3463
|
body: zod.ZodObject<{
|
|
3588
3464
|
email: zod.ZodString;
|
|
@@ -3592,7 +3468,7 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
3592
3468
|
"email-verification": "email-verification";
|
|
3593
3469
|
"forget-password": "forget-password";
|
|
3594
3470
|
}>;
|
|
3595
|
-
},
|
|
3471
|
+
}, zod_v4_core0.$strip>;
|
|
3596
3472
|
metadata: {
|
|
3597
3473
|
openapi: {
|
|
3598
3474
|
operationId: string;
|
|
@@ -3619,7 +3495,7 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
3619
3495
|
}, {
|
|
3620
3496
|
success: boolean;
|
|
3621
3497
|
}>;
|
|
3622
|
-
createVerificationOTP:
|
|
3498
|
+
createVerificationOTP: better_call0.StrictEndpoint<string, {
|
|
3623
3499
|
method: "POST";
|
|
3624
3500
|
body: zod.ZodObject<{
|
|
3625
3501
|
email: zod.ZodString;
|
|
@@ -3629,7 +3505,7 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
3629
3505
|
"email-verification": "email-verification";
|
|
3630
3506
|
"forget-password": "forget-password";
|
|
3631
3507
|
}>;
|
|
3632
|
-
},
|
|
3508
|
+
}, zod_v4_core0.$strip>;
|
|
3633
3509
|
metadata: {
|
|
3634
3510
|
openapi: {
|
|
3635
3511
|
operationId: string;
|
|
@@ -3649,7 +3525,7 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
3649
3525
|
};
|
|
3650
3526
|
};
|
|
3651
3527
|
}, string>;
|
|
3652
|
-
getVerificationOTP:
|
|
3528
|
+
getVerificationOTP: better_call0.StrictEndpoint<string, {
|
|
3653
3529
|
method: "GET";
|
|
3654
3530
|
query: zod.ZodObject<{
|
|
3655
3531
|
email: zod.ZodString;
|
|
@@ -3659,7 +3535,7 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
3659
3535
|
"email-verification": "email-verification";
|
|
3660
3536
|
"forget-password": "forget-password";
|
|
3661
3537
|
}>;
|
|
3662
|
-
},
|
|
3538
|
+
}, zod_v4_core0.$strip>;
|
|
3663
3539
|
metadata: {
|
|
3664
3540
|
openapi: {
|
|
3665
3541
|
operationId: string;
|
|
@@ -3691,7 +3567,7 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
3691
3567
|
} | {
|
|
3692
3568
|
otp: string;
|
|
3693
3569
|
}>;
|
|
3694
|
-
checkVerificationOTP:
|
|
3570
|
+
checkVerificationOTP: better_call0.StrictEndpoint<"/email-otp/check-verification-otp", {
|
|
3695
3571
|
method: "POST";
|
|
3696
3572
|
body: zod.ZodObject<{
|
|
3697
3573
|
email: zod.ZodString;
|
|
@@ -3702,7 +3578,7 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
3702
3578
|
"forget-password": "forget-password";
|
|
3703
3579
|
}>;
|
|
3704
3580
|
otp: zod.ZodString;
|
|
3705
|
-
},
|
|
3581
|
+
}, zod_v4_core0.$strip>;
|
|
3706
3582
|
metadata: {
|
|
3707
3583
|
openapi: {
|
|
3708
3584
|
operationId: string;
|
|
@@ -3729,12 +3605,12 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
3729
3605
|
}, {
|
|
3730
3606
|
success: boolean;
|
|
3731
3607
|
}>;
|
|
3732
|
-
verifyEmailOTP:
|
|
3608
|
+
verifyEmailOTP: better_call0.StrictEndpoint<"/email-otp/verify-email", {
|
|
3733
3609
|
method: "POST";
|
|
3734
3610
|
body: zod.ZodObject<{
|
|
3735
3611
|
email: zod.ZodString;
|
|
3736
3612
|
otp: zod.ZodString;
|
|
3737
|
-
},
|
|
3613
|
+
}, zod_v4_core0.$strip>;
|
|
3738
3614
|
metadata: {
|
|
3739
3615
|
openapi: {
|
|
3740
3616
|
description: string;
|
|
@@ -3793,14 +3669,14 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
3793
3669
|
image?: string | null | undefined;
|
|
3794
3670
|
} & Record<string, any>;
|
|
3795
3671
|
}>;
|
|
3796
|
-
signInEmailOTP:
|
|
3672
|
+
signInEmailOTP: better_call0.StrictEndpoint<"/sign-in/email-otp", {
|
|
3797
3673
|
method: "POST";
|
|
3798
3674
|
body: zod.ZodIntersection<zod.ZodObject<{
|
|
3799
3675
|
email: zod.ZodString;
|
|
3800
3676
|
otp: zod.ZodString;
|
|
3801
3677
|
name: zod.ZodOptional<zod.ZodString>;
|
|
3802
3678
|
image: zod.ZodOptional<zod.ZodString>;
|
|
3803
|
-
},
|
|
3679
|
+
}, zod_v4_core0.$strip>, zod.ZodRecord<zod.ZodString, zod.ZodAny>>;
|
|
3804
3680
|
metadata: {
|
|
3805
3681
|
openapi: {
|
|
3806
3682
|
operationId: string;
|
|
@@ -3841,11 +3717,11 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
3841
3717
|
image?: string | null | undefined;
|
|
3842
3718
|
};
|
|
3843
3719
|
}>;
|
|
3844
|
-
requestPasswordResetEmailOTP:
|
|
3720
|
+
requestPasswordResetEmailOTP: better_call0.StrictEndpoint<"/email-otp/request-password-reset", {
|
|
3845
3721
|
method: "POST";
|
|
3846
3722
|
body: zod.ZodObject<{
|
|
3847
3723
|
email: zod.ZodString;
|
|
3848
|
-
},
|
|
3724
|
+
}, zod_v4_core0.$strip>;
|
|
3849
3725
|
metadata: {
|
|
3850
3726
|
openapi: {
|
|
3851
3727
|
operationId: string;
|
|
@@ -3873,11 +3749,11 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
3873
3749
|
}, {
|
|
3874
3750
|
success: boolean;
|
|
3875
3751
|
}>;
|
|
3876
|
-
forgetPasswordEmailOTP:
|
|
3752
|
+
forgetPasswordEmailOTP: better_call0.StrictEndpoint<"/forget-password/email-otp", {
|
|
3877
3753
|
method: "POST";
|
|
3878
3754
|
body: zod.ZodObject<{
|
|
3879
3755
|
email: zod.ZodString;
|
|
3880
|
-
},
|
|
3756
|
+
}, zod_v4_core0.$strip>;
|
|
3881
3757
|
metadata: {
|
|
3882
3758
|
openapi: {
|
|
3883
3759
|
operationId: string;
|
|
@@ -3905,13 +3781,13 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
3905
3781
|
}, {
|
|
3906
3782
|
success: boolean;
|
|
3907
3783
|
}>;
|
|
3908
|
-
resetPasswordEmailOTP:
|
|
3784
|
+
resetPasswordEmailOTP: better_call0.StrictEndpoint<"/email-otp/reset-password", {
|
|
3909
3785
|
method: "POST";
|
|
3910
3786
|
body: zod.ZodObject<{
|
|
3911
3787
|
email: zod.ZodString;
|
|
3912
3788
|
otp: zod.ZodString;
|
|
3913
3789
|
password: zod.ZodString;
|
|
3914
|
-
},
|
|
3790
|
+
}, zod_v4_core0.$strip>;
|
|
3915
3791
|
metadata: {
|
|
3916
3792
|
openapi: {
|
|
3917
3793
|
operationId: string;
|
|
@@ -3938,13 +3814,13 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
3938
3814
|
}, {
|
|
3939
3815
|
success: boolean;
|
|
3940
3816
|
}>;
|
|
3941
|
-
requestEmailChangeEmailOTP:
|
|
3817
|
+
requestEmailChangeEmailOTP: better_call0.StrictEndpoint<"/email-otp/request-email-change", {
|
|
3942
3818
|
method: "POST";
|
|
3943
3819
|
body: zod.ZodObject<{
|
|
3944
3820
|
newEmail: zod.ZodString;
|
|
3945
3821
|
otp: zod.ZodOptional<zod.ZodString>;
|
|
3946
|
-
},
|
|
3947
|
-
use: ((inputContext:
|
|
3822
|
+
}, zod_v4_core0.$strip>;
|
|
3823
|
+
use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
|
|
3948
3824
|
session: {
|
|
3949
3825
|
session: Record<string, any> & {
|
|
3950
3826
|
id: string;
|
|
@@ -3993,13 +3869,13 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
3993
3869
|
}, {
|
|
3994
3870
|
success: boolean;
|
|
3995
3871
|
}>;
|
|
3996
|
-
changeEmailEmailOTP:
|
|
3872
|
+
changeEmailEmailOTP: better_call0.StrictEndpoint<"/email-otp/change-email", {
|
|
3997
3873
|
method: "POST";
|
|
3998
3874
|
body: zod.ZodObject<{
|
|
3999
3875
|
newEmail: zod.ZodString;
|
|
4000
3876
|
otp: zod.ZodString;
|
|
4001
|
-
},
|
|
4002
|
-
use: ((inputContext:
|
|
3877
|
+
}, zod_v4_core0.$strip>;
|
|
3878
|
+
use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
|
|
4003
3879
|
session: {
|
|
4004
3880
|
session: Record<string, any> & {
|
|
4005
3881
|
id: string;
|
|
@@ -4052,7 +3928,7 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
4052
3928
|
hooks: {
|
|
4053
3929
|
after: {
|
|
4054
3930
|
matcher(context: better_auth0.HookEndpointContext): boolean;
|
|
4055
|
-
handler: (inputContext:
|
|
3931
|
+
handler: (inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<void>;
|
|
4056
3932
|
}[];
|
|
4057
3933
|
};
|
|
4058
3934
|
rateLimit: ({
|
|
@@ -4100,7 +3976,7 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
4100
3976
|
};
|
|
4101
3977
|
}>;
|
|
4102
3978
|
atomListeners: {
|
|
4103
|
-
matcher: (path: string) => path is "/email-otp/verify-email" | "/sign-in/email-otp";
|
|
3979
|
+
matcher: (path: string) => path is "/email-otp/verify-email" | "/sign-in/email-otp" | "/email-otp/request-email-change";
|
|
4104
3980
|
signal: "$sessionSignal";
|
|
4105
3981
|
}[];
|
|
4106
3982
|
$ERROR_CODES: {
|
|
@@ -4110,12 +3986,14 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
4110
3986
|
};
|
|
4111
3987
|
} | {
|
|
4112
3988
|
id: "passkey";
|
|
3989
|
+
version: string;
|
|
4113
3990
|
$InferServerPlugin: ReturnType<(options?: _better_auth_passkey0.PasskeyOptions | undefined) => {
|
|
4114
3991
|
id: "passkey";
|
|
3992
|
+
version: string;
|
|
4115
3993
|
endpoints: {
|
|
4116
|
-
generatePasskeyRegistrationOptions:
|
|
3994
|
+
generatePasskeyRegistrationOptions: better_call0.StrictEndpoint<"/passkey/generate-register-options", {
|
|
4117
3995
|
method: "GET";
|
|
4118
|
-
use: ((inputContext:
|
|
3996
|
+
use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
|
|
4119
3997
|
session: {
|
|
4120
3998
|
session: Record<string, any> & {
|
|
4121
3999
|
id: string;
|
|
@@ -4144,7 +4022,8 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
4144
4022
|
"cross-platform": "cross-platform";
|
|
4145
4023
|
}>>;
|
|
4146
4024
|
name: zod.ZodOptional<zod.ZodString>;
|
|
4147
|
-
|
|
4025
|
+
context: zod.ZodOptional<zod.ZodString>;
|
|
4026
|
+
}, zod_v4_core0.$strip>>;
|
|
4148
4027
|
metadata: {
|
|
4149
4028
|
openapi: {
|
|
4150
4029
|
operationId: string;
|
|
@@ -4162,6 +4041,10 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
4162
4041
|
description: string;
|
|
4163
4042
|
required: boolean;
|
|
4164
4043
|
};
|
|
4044
|
+
context: {
|
|
4045
|
+
description: string;
|
|
4046
|
+
required: boolean;
|
|
4047
|
+
};
|
|
4165
4048
|
};
|
|
4166
4049
|
};
|
|
4167
4050
|
content: {
|
|
@@ -4263,7 +4146,7 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
4263
4146
|
};
|
|
4264
4147
|
};
|
|
4265
4148
|
}, _better_auth_passkey_client0.PublicKeyCredentialCreationOptionsJSON>;
|
|
4266
|
-
generatePasskeyAuthenticationOptions:
|
|
4149
|
+
generatePasskeyAuthenticationOptions: better_call0.StrictEndpoint<"/passkey/generate-authenticate-options", {
|
|
4267
4150
|
method: "GET";
|
|
4268
4151
|
metadata: {
|
|
4269
4152
|
openapi: {
|
|
@@ -4357,13 +4240,13 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
4357
4240
|
};
|
|
4358
4241
|
};
|
|
4359
4242
|
}, _better_auth_passkey_client0.PublicKeyCredentialRequestOptionsJSON>;
|
|
4360
|
-
verifyPasskeyRegistration:
|
|
4243
|
+
verifyPasskeyRegistration: better_call0.StrictEndpoint<"/passkey/verify-registration", {
|
|
4361
4244
|
method: "POST";
|
|
4362
4245
|
body: zod.ZodObject<{
|
|
4363
4246
|
response: zod.ZodAny;
|
|
4364
4247
|
name: zod.ZodOptional<zod.ZodString>;
|
|
4365
|
-
},
|
|
4366
|
-
use: ((inputContext:
|
|
4248
|
+
}, zod_v4_core0.$strip>;
|
|
4249
|
+
use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
|
|
4367
4250
|
session: {
|
|
4368
4251
|
session: Record<string, any> & {
|
|
4369
4252
|
id: string;
|
|
@@ -4408,11 +4291,11 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
4408
4291
|
};
|
|
4409
4292
|
};
|
|
4410
4293
|
}, _better_auth_passkey0.Passkey>;
|
|
4411
|
-
verifyPasskeyAuthentication:
|
|
4294
|
+
verifyPasskeyAuthentication: better_call0.StrictEndpoint<"/passkey/verify-authentication", {
|
|
4412
4295
|
method: "POST";
|
|
4413
4296
|
body: zod.ZodObject<{
|
|
4414
4297
|
response: zod.ZodRecord<zod.ZodAny, zod.ZodAny>;
|
|
4415
|
-
},
|
|
4298
|
+
}, zod_v4_core0.$strip>;
|
|
4416
4299
|
metadata: {
|
|
4417
4300
|
openapi: {
|
|
4418
4301
|
operationId: string;
|
|
@@ -4455,10 +4338,19 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
4455
4338
|
ipAddress?: string | null | undefined;
|
|
4456
4339
|
userAgent?: string | null | undefined;
|
|
4457
4340
|
};
|
|
4341
|
+
user: {
|
|
4342
|
+
id: string;
|
|
4343
|
+
createdAt: Date;
|
|
4344
|
+
updatedAt: Date;
|
|
4345
|
+
email: string;
|
|
4346
|
+
emailVerified: boolean;
|
|
4347
|
+
name: string;
|
|
4348
|
+
image?: string | null | undefined;
|
|
4349
|
+
};
|
|
4458
4350
|
}>;
|
|
4459
|
-
listPasskeys:
|
|
4351
|
+
listPasskeys: better_call0.StrictEndpoint<"/passkey/list-user-passkeys", {
|
|
4460
4352
|
method: "GET";
|
|
4461
|
-
use: ((inputContext:
|
|
4353
|
+
use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
|
|
4462
4354
|
session: {
|
|
4463
4355
|
session: Record<string, any> & {
|
|
4464
4356
|
id: string;
|
|
@@ -4504,12 +4396,12 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
4504
4396
|
};
|
|
4505
4397
|
};
|
|
4506
4398
|
}, _better_auth_passkey0.Passkey[]>;
|
|
4507
|
-
deletePasskey:
|
|
4399
|
+
deletePasskey: better_call0.StrictEndpoint<"/passkey/delete-passkey", {
|
|
4508
4400
|
method: "POST";
|
|
4509
4401
|
body: zod.ZodObject<{
|
|
4510
4402
|
id: zod.ZodString;
|
|
4511
|
-
},
|
|
4512
|
-
use: ((inputContext:
|
|
4403
|
+
}, zod_v4_core0.$strip>;
|
|
4404
|
+
use: (((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
|
|
4513
4405
|
session: {
|
|
4514
4406
|
session: Record<string, any> & {
|
|
4515
4407
|
id: string;
|
|
@@ -4531,7 +4423,9 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
4531
4423
|
image?: string | null | undefined;
|
|
4532
4424
|
};
|
|
4533
4425
|
};
|
|
4534
|
-
}>)
|
|
4426
|
+
}>) | ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
|
|
4427
|
+
verifiedResource: {};
|
|
4428
|
+
}>))[];
|
|
4535
4429
|
metadata: {
|
|
4536
4430
|
openapi: {
|
|
4537
4431
|
description: string;
|
|
@@ -4559,13 +4453,13 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
4559
4453
|
}, {
|
|
4560
4454
|
status: boolean;
|
|
4561
4455
|
}>;
|
|
4562
|
-
updatePasskey:
|
|
4456
|
+
updatePasskey: better_call0.StrictEndpoint<"/passkey/update-passkey", {
|
|
4563
4457
|
method: "POST";
|
|
4564
4458
|
body: zod.ZodObject<{
|
|
4565
4459
|
id: zod.ZodString;
|
|
4566
4460
|
name: zod.ZodString;
|
|
4567
|
-
},
|
|
4568
|
-
use: ((inputContext:
|
|
4461
|
+
}, zod_v4_core0.$strip>;
|
|
4462
|
+
use: (((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
|
|
4569
4463
|
session: {
|
|
4570
4464
|
session: Record<string, any> & {
|
|
4571
4465
|
id: string;
|
|
@@ -4587,7 +4481,9 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
4587
4481
|
image?: string | null | undefined;
|
|
4588
4482
|
};
|
|
4589
4483
|
};
|
|
4590
|
-
}>)
|
|
4484
|
+
}>) | ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
|
|
4485
|
+
verifiedResource: {};
|
|
4486
|
+
}>))[];
|
|
4591
4487
|
metadata: {
|
|
4592
4488
|
openapi: {
|
|
4593
4489
|
description: string;
|
|
@@ -4675,6 +4571,13 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
4675
4571
|
AUTHENTICATION_FAILED: better_auth0.RawError<"AUTHENTICATION_FAILED">;
|
|
4676
4572
|
UNABLE_TO_CREATE_SESSION: better_auth0.RawError<"UNABLE_TO_CREATE_SESSION">;
|
|
4677
4573
|
FAILED_TO_UPDATE_PASSKEY: better_auth0.RawError<"FAILED_TO_UPDATE_PASSKEY">;
|
|
4574
|
+
PREVIOUSLY_REGISTERED: better_auth0.RawError<"PREVIOUSLY_REGISTERED">;
|
|
4575
|
+
REGISTRATION_CANCELLED: better_auth0.RawError<"REGISTRATION_CANCELLED">;
|
|
4576
|
+
AUTH_CANCELLED: better_auth0.RawError<"AUTH_CANCELLED">;
|
|
4577
|
+
UNKNOWN_ERROR: better_auth0.RawError<"UNKNOWN_ERROR">;
|
|
4578
|
+
SESSION_REQUIRED: better_auth0.RawError<"SESSION_REQUIRED">;
|
|
4579
|
+
RESOLVE_USER_REQUIRED: better_auth0.RawError<"RESOLVE_USER_REQUIRED">;
|
|
4580
|
+
RESOLVED_USER_INVALID: better_auth0.RawError<"RESOLVED_USER_INVALID">;
|
|
4678
4581
|
};
|
|
4679
4582
|
options: _better_auth_passkey0.PasskeyOptions | undefined;
|
|
4680
4583
|
}>;
|
|
@@ -4682,6 +4585,8 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
4682
4585
|
signIn: {
|
|
4683
4586
|
passkey: (opts?: {
|
|
4684
4587
|
autoFill?: boolean;
|
|
4588
|
+
extensions?: _better_auth_passkey_client0.AuthenticationExtensionsClientInputs;
|
|
4589
|
+
returnWebAuthnResponse?: boolean;
|
|
4685
4590
|
fetchOptions?: better_auth0.ClientFetchOption;
|
|
4686
4591
|
} | undefined, options?: better_auth0.ClientFetchOption | undefined) => Promise<{
|
|
4687
4592
|
data: null;
|
|
@@ -4721,6 +4626,44 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
4721
4626
|
status: number;
|
|
4722
4627
|
statusText: string;
|
|
4723
4628
|
};
|
|
4629
|
+
} | {
|
|
4630
|
+
webauthn: {
|
|
4631
|
+
response: _better_auth_passkey_client0.AuthenticationResponseJSON;
|
|
4632
|
+
clientExtensionResults: _better_auth_passkey_client0.AuthenticationExtensionsClientOutputs;
|
|
4633
|
+
};
|
|
4634
|
+
data: null;
|
|
4635
|
+
error: {
|
|
4636
|
+
message?: string | undefined;
|
|
4637
|
+
status: number;
|
|
4638
|
+
statusText: string;
|
|
4639
|
+
};
|
|
4640
|
+
} | {
|
|
4641
|
+
webauthn: {
|
|
4642
|
+
response: _better_auth_passkey_client0.AuthenticationResponseJSON;
|
|
4643
|
+
clientExtensionResults: _better_auth_passkey_client0.AuthenticationExtensionsClientOutputs;
|
|
4644
|
+
};
|
|
4645
|
+
data: {
|
|
4646
|
+
session: {
|
|
4647
|
+
id: string;
|
|
4648
|
+
createdAt: Date;
|
|
4649
|
+
updatedAt: Date;
|
|
4650
|
+
userId: string;
|
|
4651
|
+
expiresAt: Date;
|
|
4652
|
+
token: string;
|
|
4653
|
+
ipAddress?: string | null | undefined;
|
|
4654
|
+
userAgent?: string | null | undefined;
|
|
4655
|
+
};
|
|
4656
|
+
user: {
|
|
4657
|
+
id: string;
|
|
4658
|
+
createdAt: Date;
|
|
4659
|
+
updatedAt: Date;
|
|
4660
|
+
email: string;
|
|
4661
|
+
emailVerified: boolean;
|
|
4662
|
+
name: string;
|
|
4663
|
+
image?: string | null | undefined;
|
|
4664
|
+
};
|
|
4665
|
+
};
|
|
4666
|
+
error: null;
|
|
4724
4667
|
}>;
|
|
4725
4668
|
};
|
|
4726
4669
|
passkey: {
|
|
@@ -4728,7 +4671,10 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
4728
4671
|
fetchOptions?: better_auth0.ClientFetchOption;
|
|
4729
4672
|
name?: string;
|
|
4730
4673
|
authenticatorAttachment?: "platform" | "cross-platform";
|
|
4674
|
+
context?: string | null;
|
|
4675
|
+
extensions?: _better_auth_passkey_client0.AuthenticationExtensionsClientInputs;
|
|
4731
4676
|
useAutoRegister?: boolean;
|
|
4677
|
+
returnWebAuthnResponse?: boolean;
|
|
4732
4678
|
} | undefined, fetchOpts?: better_auth0.ClientFetchOption | undefined) => Promise<{
|
|
4733
4679
|
data: null;
|
|
4734
4680
|
error: {
|
|
@@ -4739,6 +4685,13 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
4739
4685
|
} | {
|
|
4740
4686
|
data: _better_auth_passkey0.Passkey;
|
|
4741
4687
|
error: null;
|
|
4688
|
+
} | {
|
|
4689
|
+
webauthn: {
|
|
4690
|
+
response: _better_auth_passkey_client0.RegistrationResponseJSON;
|
|
4691
|
+
clientExtensionResults: _better_auth_passkey_client0.AuthenticationExtensionsClientOutputs;
|
|
4692
|
+
};
|
|
4693
|
+
data: _better_auth_passkey0.Passkey;
|
|
4694
|
+
error: null;
|
|
4742
4695
|
} | {
|
|
4743
4696
|
data: null;
|
|
4744
4697
|
error: {
|
|
@@ -4776,11 +4729,20 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
4776
4729
|
AUTHENTICATION_FAILED: better_auth0.RawError<"AUTHENTICATION_FAILED">;
|
|
4777
4730
|
UNABLE_TO_CREATE_SESSION: better_auth0.RawError<"UNABLE_TO_CREATE_SESSION">;
|
|
4778
4731
|
FAILED_TO_UPDATE_PASSKEY: better_auth0.RawError<"FAILED_TO_UPDATE_PASSKEY">;
|
|
4732
|
+
PREVIOUSLY_REGISTERED: better_auth0.RawError<"PREVIOUSLY_REGISTERED">;
|
|
4733
|
+
REGISTRATION_CANCELLED: better_auth0.RawError<"REGISTRATION_CANCELLED">;
|
|
4734
|
+
AUTH_CANCELLED: better_auth0.RawError<"AUTH_CANCELLED">;
|
|
4735
|
+
UNKNOWN_ERROR: better_auth0.RawError<"UNKNOWN_ERROR">;
|
|
4736
|
+
SESSION_REQUIRED: better_auth0.RawError<"SESSION_REQUIRED">;
|
|
4737
|
+
RESOLVE_USER_REQUIRED: better_auth0.RawError<"RESOLVE_USER_REQUIRED">;
|
|
4738
|
+
RESOLVED_USER_INVALID: better_auth0.RawError<"RESOLVED_USER_INVALID">;
|
|
4779
4739
|
};
|
|
4780
4740
|
} | {
|
|
4781
4741
|
id: "admin-client";
|
|
4742
|
+
version: string;
|
|
4782
4743
|
$InferServerPlugin: {
|
|
4783
4744
|
id: "admin";
|
|
4745
|
+
version: string;
|
|
4784
4746
|
init(): {
|
|
4785
4747
|
options: {
|
|
4786
4748
|
databaseHooks: {
|
|
@@ -4828,18 +4790,18 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
4828
4790
|
hooks: {
|
|
4829
4791
|
after: {
|
|
4830
4792
|
matcher(context: better_auth0.HookEndpointContext): boolean;
|
|
4831
|
-
handler: (inputContext:
|
|
4793
|
+
handler: (inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<better_auth_plugins0.SessionWithImpersonatedBy[] | undefined>;
|
|
4832
4794
|
}[];
|
|
4833
4795
|
};
|
|
4834
4796
|
endpoints: {
|
|
4835
|
-
setRole:
|
|
4797
|
+
setRole: better_call0.StrictEndpoint<"/admin/set-role", {
|
|
4836
4798
|
method: "POST";
|
|
4837
4799
|
body: zod.ZodObject<{
|
|
4838
4800
|
userId: zod.ZodCoercedString<unknown>;
|
|
4839
4801
|
role: zod.ZodUnion<readonly [zod.ZodString, zod.ZodArray<zod.ZodString>]>;
|
|
4840
|
-
},
|
|
4802
|
+
}, zod_v4_core0.$strip>;
|
|
4841
4803
|
requireHeaders: true;
|
|
4842
|
-
use: ((inputContext:
|
|
4804
|
+
use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
|
|
4843
4805
|
session: {
|
|
4844
4806
|
user: better_auth_plugins0.UserWithRole;
|
|
4845
4807
|
session: {
|
|
@@ -4893,12 +4855,12 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
4893
4855
|
}, {
|
|
4894
4856
|
user: better_auth_plugins0.UserWithRole;
|
|
4895
4857
|
}>;
|
|
4896
|
-
getUser:
|
|
4858
|
+
getUser: better_call0.StrictEndpoint<"/admin/get-user", {
|
|
4897
4859
|
method: "GET";
|
|
4898
4860
|
query: zod.ZodObject<{
|
|
4899
4861
|
id: zod.ZodString;
|
|
4900
|
-
},
|
|
4901
|
-
use: ((inputContext:
|
|
4862
|
+
}, zod_v4_core0.$strip>;
|
|
4863
|
+
use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
|
|
4902
4864
|
session: {
|
|
4903
4865
|
user: better_auth_plugins0.UserWithRole;
|
|
4904
4866
|
session: {
|
|
@@ -4938,7 +4900,7 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
4938
4900
|
};
|
|
4939
4901
|
};
|
|
4940
4902
|
}, better_auth_plugins0.UserWithRole>;
|
|
4941
|
-
createUser:
|
|
4903
|
+
createUser: better_call0.StrictEndpoint<"/admin/create-user", {
|
|
4942
4904
|
method: "POST";
|
|
4943
4905
|
body: zod.ZodObject<{
|
|
4944
4906
|
email: zod.ZodString;
|
|
@@ -4946,7 +4908,7 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
4946
4908
|
name: zod.ZodString;
|
|
4947
4909
|
role: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodString, zod.ZodArray<zod.ZodString>]>>;
|
|
4948
4910
|
data: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodAny>>;
|
|
4949
|
-
},
|
|
4911
|
+
}, zod_v4_core0.$strip>;
|
|
4950
4912
|
metadata: {
|
|
4951
4913
|
openapi: {
|
|
4952
4914
|
operationId: string;
|
|
@@ -4989,13 +4951,13 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
4989
4951
|
}, {
|
|
4990
4952
|
user: better_auth_plugins0.UserWithRole;
|
|
4991
4953
|
}>;
|
|
4992
|
-
adminUpdateUser:
|
|
4954
|
+
adminUpdateUser: better_call0.StrictEndpoint<"/admin/update-user", {
|
|
4993
4955
|
method: "POST";
|
|
4994
4956
|
body: zod.ZodObject<{
|
|
4995
4957
|
userId: zod.ZodCoercedString<unknown>;
|
|
4996
4958
|
data: zod.ZodRecord<zod.ZodAny, zod.ZodAny>;
|
|
4997
|
-
},
|
|
4998
|
-
use: ((inputContext:
|
|
4959
|
+
}, zod_v4_core0.$strip>;
|
|
4960
|
+
use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
|
|
4999
4961
|
session: {
|
|
5000
4962
|
user: better_auth_plugins0.UserWithRole;
|
|
5001
4963
|
session: {
|
|
@@ -5035,9 +4997,9 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
5035
4997
|
};
|
|
5036
4998
|
};
|
|
5037
4999
|
}, better_auth_plugins0.UserWithRole>;
|
|
5038
|
-
listUsers:
|
|
5000
|
+
listUsers: better_call0.StrictEndpoint<"/admin/list-users", {
|
|
5039
5001
|
method: "GET";
|
|
5040
|
-
use: ((inputContext:
|
|
5002
|
+
use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
|
|
5041
5003
|
session: {
|
|
5042
5004
|
user: better_auth_plugins0.UserWithRole;
|
|
5043
5005
|
session: {
|
|
@@ -5055,8 +5017,8 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
5055
5017
|
query: zod.ZodObject<{
|
|
5056
5018
|
searchValue: zod.ZodOptional<zod.ZodString>;
|
|
5057
5019
|
searchField: zod.ZodOptional<zod.ZodEnum<{
|
|
5058
|
-
name: "name";
|
|
5059
5020
|
email: "email";
|
|
5021
|
+
name: "name";
|
|
5060
5022
|
}>>;
|
|
5061
5023
|
searchOperator: zod.ZodOptional<zod.ZodEnum<{
|
|
5062
5024
|
contains: "contains";
|
|
@@ -5085,7 +5047,7 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
5085
5047
|
starts_with: "starts_with";
|
|
5086
5048
|
ends_with: "ends_with";
|
|
5087
5049
|
}>>;
|
|
5088
|
-
},
|
|
5050
|
+
}, zod_v4_core0.$strip>;
|
|
5089
5051
|
metadata: {
|
|
5090
5052
|
openapi: {
|
|
5091
5053
|
operationId: string;
|
|
@@ -5127,9 +5089,9 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
5127
5089
|
users: better_auth_plugins0.UserWithRole[];
|
|
5128
5090
|
total: number;
|
|
5129
5091
|
}>;
|
|
5130
|
-
listUserSessions:
|
|
5092
|
+
listUserSessions: better_call0.StrictEndpoint<"/admin/list-user-sessions", {
|
|
5131
5093
|
method: "POST";
|
|
5132
|
-
use: ((inputContext:
|
|
5094
|
+
use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
|
|
5133
5095
|
session: {
|
|
5134
5096
|
user: better_auth_plugins0.UserWithRole;
|
|
5135
5097
|
session: {
|
|
@@ -5146,7 +5108,7 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
5146
5108
|
}>)[];
|
|
5147
5109
|
body: zod.ZodObject<{
|
|
5148
5110
|
userId: zod.ZodCoercedString<unknown>;
|
|
5149
|
-
},
|
|
5111
|
+
}, zod_v4_core0.$strip>;
|
|
5150
5112
|
metadata: {
|
|
5151
5113
|
openapi: {
|
|
5152
5114
|
operationId: string;
|
|
@@ -5177,12 +5139,12 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
5177
5139
|
}, {
|
|
5178
5140
|
sessions: better_auth_plugins0.SessionWithImpersonatedBy[];
|
|
5179
5141
|
}>;
|
|
5180
|
-
unbanUser:
|
|
5142
|
+
unbanUser: better_call0.StrictEndpoint<"/admin/unban-user", {
|
|
5181
5143
|
method: "POST";
|
|
5182
5144
|
body: zod.ZodObject<{
|
|
5183
5145
|
userId: zod.ZodCoercedString<unknown>;
|
|
5184
|
-
},
|
|
5185
|
-
use: ((inputContext:
|
|
5146
|
+
}, zod_v4_core0.$strip>;
|
|
5147
|
+
use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
|
|
5186
5148
|
session: {
|
|
5187
5149
|
user: better_auth_plugins0.UserWithRole;
|
|
5188
5150
|
session: {
|
|
@@ -5224,14 +5186,14 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
5224
5186
|
}, {
|
|
5225
5187
|
user: better_auth_plugins0.UserWithRole;
|
|
5226
5188
|
}>;
|
|
5227
|
-
banUser:
|
|
5189
|
+
banUser: better_call0.StrictEndpoint<"/admin/ban-user", {
|
|
5228
5190
|
method: "POST";
|
|
5229
5191
|
body: zod.ZodObject<{
|
|
5230
5192
|
userId: zod.ZodCoercedString<unknown>;
|
|
5231
5193
|
banReason: zod.ZodOptional<zod.ZodString>;
|
|
5232
5194
|
banExpiresIn: zod.ZodOptional<zod.ZodNumber>;
|
|
5233
|
-
},
|
|
5234
|
-
use: ((inputContext:
|
|
5195
|
+
}, zod_v4_core0.$strip>;
|
|
5196
|
+
use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
|
|
5235
5197
|
session: {
|
|
5236
5198
|
user: better_auth_plugins0.UserWithRole;
|
|
5237
5199
|
session: {
|
|
@@ -5273,12 +5235,12 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
5273
5235
|
}, {
|
|
5274
5236
|
user: better_auth_plugins0.UserWithRole;
|
|
5275
5237
|
}>;
|
|
5276
|
-
impersonateUser:
|
|
5238
|
+
impersonateUser: better_call0.StrictEndpoint<"/admin/impersonate-user", {
|
|
5277
5239
|
method: "POST";
|
|
5278
5240
|
body: zod.ZodObject<{
|
|
5279
5241
|
userId: zod.ZodCoercedString<unknown>;
|
|
5280
|
-
},
|
|
5281
|
-
use: ((inputContext:
|
|
5242
|
+
}, zod_v4_core0.$strip>;
|
|
5243
|
+
use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
|
|
5282
5244
|
session: {
|
|
5283
5245
|
user: better_auth_plugins0.UserWithRole;
|
|
5284
5246
|
session: {
|
|
@@ -5333,7 +5295,7 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
5333
5295
|
};
|
|
5334
5296
|
user: better_auth_plugins0.UserWithRole;
|
|
5335
5297
|
}>;
|
|
5336
|
-
stopImpersonating:
|
|
5298
|
+
stopImpersonating: better_call0.StrictEndpoint<"/admin/stop-impersonating", {
|
|
5337
5299
|
method: "POST";
|
|
5338
5300
|
requireHeaders: true;
|
|
5339
5301
|
}, {
|
|
@@ -5357,12 +5319,12 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
5357
5319
|
image?: string | null | undefined;
|
|
5358
5320
|
} & Record<string, any>;
|
|
5359
5321
|
}>;
|
|
5360
|
-
revokeUserSession:
|
|
5322
|
+
revokeUserSession: better_call0.StrictEndpoint<"/admin/revoke-user-session", {
|
|
5361
5323
|
method: "POST";
|
|
5362
5324
|
body: zod.ZodObject<{
|
|
5363
5325
|
sessionToken: zod.ZodString;
|
|
5364
|
-
},
|
|
5365
|
-
use: ((inputContext:
|
|
5326
|
+
}, zod_v4_core0.$strip>;
|
|
5327
|
+
use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
|
|
5366
5328
|
session: {
|
|
5367
5329
|
user: better_auth_plugins0.UserWithRole;
|
|
5368
5330
|
session: {
|
|
@@ -5404,12 +5366,12 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
5404
5366
|
}, {
|
|
5405
5367
|
success: boolean;
|
|
5406
5368
|
}>;
|
|
5407
|
-
revokeUserSessions:
|
|
5369
|
+
revokeUserSessions: better_call0.StrictEndpoint<"/admin/revoke-user-sessions", {
|
|
5408
5370
|
method: "POST";
|
|
5409
5371
|
body: zod.ZodObject<{
|
|
5410
5372
|
userId: zod.ZodCoercedString<unknown>;
|
|
5411
|
-
},
|
|
5412
|
-
use: ((inputContext:
|
|
5373
|
+
}, zod_v4_core0.$strip>;
|
|
5374
|
+
use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
|
|
5413
5375
|
session: {
|
|
5414
5376
|
user: better_auth_plugins0.UserWithRole;
|
|
5415
5377
|
session: {
|
|
@@ -5451,12 +5413,12 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
5451
5413
|
}, {
|
|
5452
5414
|
success: boolean;
|
|
5453
5415
|
}>;
|
|
5454
|
-
removeUser:
|
|
5416
|
+
removeUser: better_call0.StrictEndpoint<"/admin/remove-user", {
|
|
5455
5417
|
method: "POST";
|
|
5456
5418
|
body: zod.ZodObject<{
|
|
5457
5419
|
userId: zod.ZodCoercedString<unknown>;
|
|
5458
|
-
},
|
|
5459
|
-
use: ((inputContext:
|
|
5420
|
+
}, zod_v4_core0.$strip>;
|
|
5421
|
+
use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
|
|
5460
5422
|
session: {
|
|
5461
5423
|
user: better_auth_plugins0.UserWithRole;
|
|
5462
5424
|
session: {
|
|
@@ -5498,13 +5460,13 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
5498
5460
|
}, {
|
|
5499
5461
|
success: boolean;
|
|
5500
5462
|
}>;
|
|
5501
|
-
setUserPassword:
|
|
5463
|
+
setUserPassword: better_call0.StrictEndpoint<"/admin/set-user-password", {
|
|
5502
5464
|
method: "POST";
|
|
5503
5465
|
body: zod.ZodObject<{
|
|
5504
5466
|
newPassword: zod.ZodString;
|
|
5505
5467
|
userId: zod.ZodCoercedString<unknown>;
|
|
5506
|
-
},
|
|
5507
|
-
use: ((inputContext:
|
|
5468
|
+
}, zod_v4_core0.$strip>;
|
|
5469
|
+
use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
|
|
5508
5470
|
session: {
|
|
5509
5471
|
user: better_auth_plugins0.UserWithRole;
|
|
5510
5472
|
session: {
|
|
@@ -5546,18 +5508,16 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
5546
5508
|
}, {
|
|
5547
5509
|
status: boolean;
|
|
5548
5510
|
}>;
|
|
5549
|
-
userHasPermission:
|
|
5511
|
+
userHasPermission: better_call0.StrictEndpoint<"/admin/has-permission", {
|
|
5550
5512
|
method: "POST";
|
|
5551
5513
|
body: zod.ZodIntersection<zod.ZodObject<{
|
|
5552
5514
|
userId: zod.ZodOptional<zod.ZodCoercedString<unknown>>;
|
|
5553
5515
|
role: zod.ZodOptional<zod.ZodString>;
|
|
5554
|
-
},
|
|
5516
|
+
}, zod_v4_core0.$strip>, zod.ZodXor<readonly [zod.ZodObject<{
|
|
5555
5517
|
permission: zod.ZodRecord<zod.ZodString, zod.ZodArray<zod.ZodString>>;
|
|
5556
|
-
|
|
5557
|
-
}, better_auth0.$strip>, zod.ZodObject<{
|
|
5558
|
-
permission: zod.ZodUndefined;
|
|
5518
|
+
}, zod_v4_core0.$strip>, zod.ZodObject<{
|
|
5559
5519
|
permissions: zod.ZodRecord<zod.ZodString, zod.ZodArray<zod.ZodString>>;
|
|
5560
|
-
},
|
|
5520
|
+
}, zod_v4_core0.$strip>]>>;
|
|
5561
5521
|
metadata: {
|
|
5562
5522
|
openapi: {
|
|
5563
5523
|
description: string;
|
|
@@ -5723,8 +5683,13 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
5723
5683
|
};
|
|
5724
5684
|
pathMethods: {
|
|
5725
5685
|
"/admin/list-users": "GET";
|
|
5686
|
+
"/admin/impersonate-user": "POST";
|
|
5726
5687
|
"/admin/stop-impersonating": "POST";
|
|
5727
5688
|
};
|
|
5689
|
+
atomListeners: {
|
|
5690
|
+
matcher: (path: string) => path is "/admin/impersonate-user" | "/admin/stop-impersonating";
|
|
5691
|
+
signal: "$sessionSignal";
|
|
5692
|
+
}[];
|
|
5728
5693
|
$ERROR_CODES: {
|
|
5729
5694
|
USER_ALREADY_EXISTS_USE_ANOTHER_EMAIL: better_auth0.RawError<"USER_ALREADY_EXISTS_USE_ANOTHER_EMAIL">;
|
|
5730
5695
|
FAILED_TO_CREATE_USER: better_auth0.RawError<"FAILED_TO_CREATE_USER">;
|
|
@@ -5750,8 +5715,10 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
5750
5715
|
};
|
|
5751
5716
|
} | {
|
|
5752
5717
|
id: "additional-fields-client";
|
|
5718
|
+
version: string;
|
|
5753
5719
|
$InferServerPlugin: {
|
|
5754
5720
|
id: "additional-fields";
|
|
5721
|
+
version: string;
|
|
5755
5722
|
schema: {
|
|
5756
5723
|
user: {
|
|
5757
5724
|
fields: {
|
|
@@ -5779,6 +5746,56 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
5779
5746
|
code?: string | undefined;
|
|
5780
5747
|
message?: string | undefined;
|
|
5781
5748
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
5749
|
+
} & {
|
|
5750
|
+
deleteUser: <FetchOptions extends better_auth0.ClientFetchOption<Partial<{
|
|
5751
|
+
callbackURL?: string | undefined;
|
|
5752
|
+
password?: string | undefined;
|
|
5753
|
+
token?: string | undefined;
|
|
5754
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth0.Prettify<{
|
|
5755
|
+
callbackURL?: string | undefined;
|
|
5756
|
+
password?: string | undefined;
|
|
5757
|
+
token?: string | undefined;
|
|
5758
|
+
} & {
|
|
5759
|
+
fetchOptions?: FetchOptions | undefined;
|
|
5760
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<better_auth_client0.BetterFetchResponse<{
|
|
5761
|
+
success: boolean;
|
|
5762
|
+
message: string;
|
|
5763
|
+
}, {
|
|
5764
|
+
code?: string | undefined;
|
|
5765
|
+
message?: string | undefined;
|
|
5766
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
5767
|
+
} & {
|
|
5768
|
+
requestPasswordReset: <FetchOptions extends better_auth0.ClientFetchOption<Partial<{
|
|
5769
|
+
email: string;
|
|
5770
|
+
redirectTo?: string | undefined;
|
|
5771
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth0.Prettify<{
|
|
5772
|
+
email: string;
|
|
5773
|
+
redirectTo?: string | undefined;
|
|
5774
|
+
} & {
|
|
5775
|
+
fetchOptions?: FetchOptions | undefined;
|
|
5776
|
+
}>, data_1?: FetchOptions | undefined) => Promise<better_auth_client0.BetterFetchResponse<{
|
|
5777
|
+
status: boolean;
|
|
5778
|
+
message: string;
|
|
5779
|
+
}, {
|
|
5780
|
+
code?: string | undefined;
|
|
5781
|
+
message?: string | undefined;
|
|
5782
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
5783
|
+
} & {
|
|
5784
|
+
resetPassword: {
|
|
5785
|
+
":token": <FetchOptions extends better_auth0.ClientFetchOption<never, Partial<{
|
|
5786
|
+
callbackURL: string;
|
|
5787
|
+
}> & Record<string, any>, {
|
|
5788
|
+
token: string;
|
|
5789
|
+
}>>(data_0: better_auth0.Prettify<{
|
|
5790
|
+
query: {
|
|
5791
|
+
callbackURL: string;
|
|
5792
|
+
};
|
|
5793
|
+
fetchOptions?: FetchOptions | undefined;
|
|
5794
|
+
}>, data_1?: FetchOptions | undefined) => Promise<better_auth_client0.BetterFetchResponse<never, {
|
|
5795
|
+
code?: string | undefined;
|
|
5796
|
+
message?: string | undefined;
|
|
5797
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
5798
|
+
};
|
|
5782
5799
|
} & {
|
|
5783
5800
|
listSessions: <FetchOptions extends better_auth0.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth0.Prettify<{
|
|
5784
5801
|
query?: Record<string, any> | undefined;
|
|
@@ -5796,6 +5813,188 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
5796
5813
|
code?: string | undefined;
|
|
5797
5814
|
message?: string | undefined;
|
|
5798
5815
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
5816
|
+
} & {
|
|
5817
|
+
revokeSession: <FetchOptions extends better_auth0.ClientFetchOption<Partial<{
|
|
5818
|
+
token: string;
|
|
5819
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth0.Prettify<{
|
|
5820
|
+
token: string;
|
|
5821
|
+
} & {
|
|
5822
|
+
fetchOptions?: FetchOptions | undefined;
|
|
5823
|
+
}>, data_1?: FetchOptions | undefined) => Promise<better_auth_client0.BetterFetchResponse<{
|
|
5824
|
+
status: boolean;
|
|
5825
|
+
}, {
|
|
5826
|
+
code?: string | undefined;
|
|
5827
|
+
message?: string | undefined;
|
|
5828
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
5829
|
+
} & {
|
|
5830
|
+
revokeSessions: <FetchOptions extends better_auth0.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth0.Prettify<{
|
|
5831
|
+
query?: Record<string, any> | undefined;
|
|
5832
|
+
fetchOptions?: FetchOptions | undefined;
|
|
5833
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<better_auth_client0.BetterFetchResponse<{
|
|
5834
|
+
status: boolean;
|
|
5835
|
+
}, {
|
|
5836
|
+
code?: string | undefined;
|
|
5837
|
+
message?: string | undefined;
|
|
5838
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
5839
|
+
} & {
|
|
5840
|
+
revokeOtherSessions: <FetchOptions extends better_auth0.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth0.Prettify<{
|
|
5841
|
+
query?: Record<string, any> | undefined;
|
|
5842
|
+
fetchOptions?: FetchOptions | undefined;
|
|
5843
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<better_auth_client0.BetterFetchResponse<{
|
|
5844
|
+
status: boolean;
|
|
5845
|
+
}, {
|
|
5846
|
+
code?: string | undefined;
|
|
5847
|
+
message?: string | undefined;
|
|
5848
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
5849
|
+
} & {
|
|
5850
|
+
linkSocial: <FetchOptions extends better_auth0.ClientFetchOption<Partial<{
|
|
5851
|
+
provider: unknown;
|
|
5852
|
+
callbackURL?: string | undefined;
|
|
5853
|
+
idToken?: {
|
|
5854
|
+
token: string;
|
|
5855
|
+
nonce?: string | undefined;
|
|
5856
|
+
accessToken?: string | undefined;
|
|
5857
|
+
refreshToken?: string | undefined;
|
|
5858
|
+
scopes?: string[] | undefined;
|
|
5859
|
+
} | undefined;
|
|
5860
|
+
requestSignUp?: boolean | undefined;
|
|
5861
|
+
scopes?: string[] | undefined;
|
|
5862
|
+
errorCallbackURL?: string | undefined;
|
|
5863
|
+
disableRedirect?: boolean | undefined;
|
|
5864
|
+
additionalData?: Record<string, any> | undefined;
|
|
5865
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth0.Prettify<{
|
|
5866
|
+
provider: unknown;
|
|
5867
|
+
callbackURL?: string | undefined;
|
|
5868
|
+
idToken?: {
|
|
5869
|
+
token: string;
|
|
5870
|
+
nonce?: string | undefined;
|
|
5871
|
+
accessToken?: string | undefined;
|
|
5872
|
+
refreshToken?: string | undefined;
|
|
5873
|
+
scopes?: string[] | undefined;
|
|
5874
|
+
} | undefined;
|
|
5875
|
+
requestSignUp?: boolean | undefined;
|
|
5876
|
+
scopes?: string[] | undefined;
|
|
5877
|
+
errorCallbackURL?: string | undefined;
|
|
5878
|
+
disableRedirect?: boolean | undefined;
|
|
5879
|
+
additionalData?: Record<string, any> | undefined;
|
|
5880
|
+
} & {
|
|
5881
|
+
fetchOptions?: FetchOptions | undefined;
|
|
5882
|
+
}>, data_1?: FetchOptions | undefined) => Promise<better_auth_client0.BetterFetchResponse<{
|
|
5883
|
+
url: string;
|
|
5884
|
+
redirect: boolean;
|
|
5885
|
+
}, {
|
|
5886
|
+
code?: string | undefined;
|
|
5887
|
+
message?: string | undefined;
|
|
5888
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
5889
|
+
} & {
|
|
5890
|
+
listAccounts: <FetchOptions extends better_auth0.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth0.Prettify<{
|
|
5891
|
+
query?: Record<string, any> | undefined;
|
|
5892
|
+
fetchOptions?: FetchOptions | undefined;
|
|
5893
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<better_auth_client0.BetterFetchResponse<{
|
|
5894
|
+
scopes: string[];
|
|
5895
|
+
id: string;
|
|
5896
|
+
createdAt: Date;
|
|
5897
|
+
updatedAt: Date;
|
|
5898
|
+
userId: string;
|
|
5899
|
+
providerId: string;
|
|
5900
|
+
accountId: string;
|
|
5901
|
+
}[], {
|
|
5902
|
+
code?: string | undefined;
|
|
5903
|
+
message?: string | undefined;
|
|
5904
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
5905
|
+
} & {
|
|
5906
|
+
deleteUser: {
|
|
5907
|
+
callback: <FetchOptions extends better_auth0.ClientFetchOption<never, Partial<{
|
|
5908
|
+
token: string;
|
|
5909
|
+
callbackURL?: string | undefined;
|
|
5910
|
+
}> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth0.Prettify<{
|
|
5911
|
+
query: {
|
|
5912
|
+
token: string;
|
|
5913
|
+
callbackURL?: string | undefined;
|
|
5914
|
+
};
|
|
5915
|
+
fetchOptions?: FetchOptions | undefined;
|
|
5916
|
+
}>, data_1?: FetchOptions | undefined) => Promise<better_auth_client0.BetterFetchResponse<{
|
|
5917
|
+
success: boolean;
|
|
5918
|
+
message: string;
|
|
5919
|
+
}, {
|
|
5920
|
+
code?: string | undefined;
|
|
5921
|
+
message?: string | undefined;
|
|
5922
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
5923
|
+
};
|
|
5924
|
+
} & {
|
|
5925
|
+
unlinkAccount: <FetchOptions extends better_auth0.ClientFetchOption<Partial<{
|
|
5926
|
+
providerId: string;
|
|
5927
|
+
accountId?: string | undefined;
|
|
5928
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth0.Prettify<{
|
|
5929
|
+
providerId: string;
|
|
5930
|
+
accountId?: string | undefined;
|
|
5931
|
+
} & {
|
|
5932
|
+
fetchOptions?: FetchOptions | undefined;
|
|
5933
|
+
}>, data_1?: FetchOptions | undefined) => Promise<better_auth_client0.BetterFetchResponse<{
|
|
5934
|
+
status: boolean;
|
|
5935
|
+
}, {
|
|
5936
|
+
code?: string | undefined;
|
|
5937
|
+
message?: string | undefined;
|
|
5938
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
5939
|
+
} & {
|
|
5940
|
+
refreshToken: <FetchOptions extends better_auth0.ClientFetchOption<Partial<{
|
|
5941
|
+
providerId: string;
|
|
5942
|
+
accountId?: string | undefined;
|
|
5943
|
+
userId?: string | undefined;
|
|
5944
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth0.Prettify<{
|
|
5945
|
+
providerId: string;
|
|
5946
|
+
accountId?: string | undefined;
|
|
5947
|
+
userId?: string | undefined;
|
|
5948
|
+
} & {
|
|
5949
|
+
fetchOptions?: FetchOptions | undefined;
|
|
5950
|
+
}>, data_1?: FetchOptions | undefined) => Promise<better_auth_client0.BetterFetchResponse<{
|
|
5951
|
+
accessToken: string | undefined;
|
|
5952
|
+
refreshToken: string;
|
|
5953
|
+
accessTokenExpiresAt: Date | undefined;
|
|
5954
|
+
refreshTokenExpiresAt: Date | null | undefined;
|
|
5955
|
+
scope: string | null | undefined;
|
|
5956
|
+
idToken: string | null | undefined;
|
|
5957
|
+
providerId: string;
|
|
5958
|
+
accountId: string;
|
|
5959
|
+
}, {
|
|
5960
|
+
code?: string | undefined;
|
|
5961
|
+
message?: string | undefined;
|
|
5962
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
5963
|
+
} & {
|
|
5964
|
+
getAccessToken: <FetchOptions extends better_auth0.ClientFetchOption<Partial<{
|
|
5965
|
+
providerId: string;
|
|
5966
|
+
accountId?: string | undefined;
|
|
5967
|
+
userId?: string | undefined;
|
|
5968
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth0.Prettify<{
|
|
5969
|
+
providerId: string;
|
|
5970
|
+
accountId?: string | undefined;
|
|
5971
|
+
userId?: string | undefined;
|
|
5972
|
+
} & {
|
|
5973
|
+
fetchOptions?: FetchOptions | undefined;
|
|
5974
|
+
}>, data_1?: FetchOptions | undefined) => Promise<better_auth_client0.BetterFetchResponse<{
|
|
5975
|
+
accessToken: string;
|
|
5976
|
+
accessTokenExpiresAt: Date | undefined;
|
|
5977
|
+
scopes: string[];
|
|
5978
|
+
idToken: string | undefined;
|
|
5979
|
+
}, {
|
|
5980
|
+
code?: string | undefined;
|
|
5981
|
+
message?: string | undefined;
|
|
5982
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
5983
|
+
} & {
|
|
5984
|
+
accountInfo: <FetchOptions extends better_auth0.ClientFetchOption<never, Partial<{
|
|
5985
|
+
accountId?: string | undefined;
|
|
5986
|
+
}> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth0.Prettify<{
|
|
5987
|
+
query?: {
|
|
5988
|
+
accountId?: string | undefined;
|
|
5989
|
+
} | undefined;
|
|
5990
|
+
fetchOptions?: FetchOptions | undefined;
|
|
5991
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<better_auth_client0.BetterFetchResponse<{
|
|
5992
|
+
user: better_auth0.OAuth2UserInfo;
|
|
5993
|
+
data: Record<string, any>;
|
|
5994
|
+
}, {
|
|
5995
|
+
code?: string | undefined;
|
|
5996
|
+
message?: string | undefined;
|
|
5997
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
5799
5998
|
} & {
|
|
5800
5999
|
getSession: <FetchOptions extends better_auth0.ClientFetchOption<never, Partial<{
|
|
5801
6000
|
disableCookieCache?: unknown;
|
|
@@ -5834,9 +6033,9 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
5834
6033
|
token: string;
|
|
5835
6034
|
ipAddress?: string | null | undefined;
|
|
5836
6035
|
userAgent?: string | null | undefined;
|
|
5837
|
-
} & {} & {
|
|
6036
|
+
} & {} & {
|
|
5838
6037
|
impersonatedBy?: string | null | undefined;
|
|
5839
|
-
}>;
|
|
6038
|
+
} & {} & {}>;
|
|
5840
6039
|
} | null, {
|
|
5841
6040
|
code?: string | undefined;
|
|
5842
6041
|
message?: string | undefined;
|
|
@@ -5845,6 +6044,8 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
5845
6044
|
signIn: {
|
|
5846
6045
|
passkey: (opts?: {
|
|
5847
6046
|
autoFill?: boolean;
|
|
6047
|
+
extensions?: _better_auth_passkey_client0.AuthenticationExtensionsClientInputs;
|
|
6048
|
+
returnWebAuthnResponse?: boolean;
|
|
5848
6049
|
fetchOptions?: better_auth0.ClientFetchOption;
|
|
5849
6050
|
} | undefined, options?: better_auth0.ClientFetchOption | undefined) => Promise<{
|
|
5850
6051
|
data: null;
|
|
@@ -5867,6 +6068,27 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
5867
6068
|
status: number;
|
|
5868
6069
|
statusText: string;
|
|
5869
6070
|
};
|
|
6071
|
+
} | {
|
|
6072
|
+
webauthn: {
|
|
6073
|
+
response: _better_auth_passkey_client0.AuthenticationResponseJSON;
|
|
6074
|
+
clientExtensionResults: _better_auth_passkey_client0.AuthenticationExtensionsClientOutputs;
|
|
6075
|
+
};
|
|
6076
|
+
data: null;
|
|
6077
|
+
error: {
|
|
6078
|
+
message?: string | undefined;
|
|
6079
|
+
status: number;
|
|
6080
|
+
statusText: string;
|
|
6081
|
+
};
|
|
6082
|
+
} | {
|
|
6083
|
+
webauthn: {
|
|
6084
|
+
response: _better_auth_passkey_client0.AuthenticationResponseJSON;
|
|
6085
|
+
clientExtensionResults: _better_auth_passkey_client0.AuthenticationExtensionsClientOutputs;
|
|
6086
|
+
};
|
|
6087
|
+
data: {
|
|
6088
|
+
session: better_auth0.Session;
|
|
6089
|
+
user: better_auth0.User;
|
|
6090
|
+
};
|
|
6091
|
+
error: null;
|
|
5870
6092
|
}>;
|
|
5871
6093
|
};
|
|
5872
6094
|
passkey: {
|
|
@@ -5874,7 +6096,10 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
5874
6096
|
fetchOptions?: better_auth0.ClientFetchOption;
|
|
5875
6097
|
name?: string;
|
|
5876
6098
|
authenticatorAttachment?: "platform" | "cross-platform";
|
|
6099
|
+
context?: string | null;
|
|
6100
|
+
extensions?: _better_auth_passkey_client0.AuthenticationExtensionsClientInputs;
|
|
5877
6101
|
useAutoRegister?: boolean;
|
|
6102
|
+
returnWebAuthnResponse?: boolean;
|
|
5878
6103
|
} | undefined, fetchOpts?: better_auth0.ClientFetchOption | undefined) => Promise<{
|
|
5879
6104
|
data: null;
|
|
5880
6105
|
error: {
|
|
@@ -5885,6 +6110,13 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
5885
6110
|
} | {
|
|
5886
6111
|
data: _better_auth_passkey0.Passkey;
|
|
5887
6112
|
error: null;
|
|
6113
|
+
} | {
|
|
6114
|
+
webauthn: {
|
|
6115
|
+
response: _better_auth_passkey_client0.RegistrationResponseJSON;
|
|
6116
|
+
clientExtensionResults: _better_auth_passkey_client0.AuthenticationExtensionsClientOutputs;
|
|
6117
|
+
};
|
|
6118
|
+
data: _better_auth_passkey0.Passkey;
|
|
6119
|
+
error: null;
|
|
5888
6120
|
} | {
|
|
5889
6121
|
data: null;
|
|
5890
6122
|
error: {
|
|
@@ -5945,9 +6177,9 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
5945
6177
|
token: string;
|
|
5946
6178
|
ipAddress?: string | null | undefined;
|
|
5947
6179
|
userAgent?: string | null | undefined;
|
|
5948
|
-
} & {} & {
|
|
6180
|
+
} & {} & {
|
|
5949
6181
|
impersonatedBy?: string | null | undefined;
|
|
5950
|
-
}>;
|
|
6182
|
+
} & {} & {}>;
|
|
5951
6183
|
} | null;
|
|
5952
6184
|
isPending: boolean;
|
|
5953
6185
|
isRefetching: boolean;
|
|
@@ -5985,9 +6217,9 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
5985
6217
|
token: string;
|
|
5986
6218
|
ipAddress?: string | null | undefined;
|
|
5987
6219
|
userAgent?: string | null | undefined;
|
|
5988
|
-
} & {} & {
|
|
6220
|
+
} & {} & {
|
|
5989
6221
|
impersonatedBy?: string | null | undefined;
|
|
5990
|
-
}>;
|
|
6222
|
+
} & {} & {}>;
|
|
5991
6223
|
};
|
|
5992
6224
|
};
|
|
5993
6225
|
$fetch: better_auth_client0.BetterFetch<{
|
|
@@ -6007,8 +6239,8 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
6007
6239
|
onResponse: ((context: better_auth_client0.ResponseContext) => Promise<Response | void | better_auth_client0.ResponseContext> | Response | better_auth_client0.ResponseContext | void) | undefined;
|
|
6008
6240
|
};
|
|
6009
6241
|
})[];
|
|
6010
|
-
cache?: RequestCache | undefined;
|
|
6011
6242
|
priority?: RequestPriority | undefined;
|
|
6243
|
+
cache?: RequestCache | undefined;
|
|
6012
6244
|
credentials?: RequestCredentials;
|
|
6013
6245
|
headers?: (HeadersInit & (HeadersInit | {
|
|
6014
6246
|
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
@@ -6073,6 +6305,13 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
6073
6305
|
AUTHENTICATION_FAILED: better_auth0.RawError<"AUTHENTICATION_FAILED">;
|
|
6074
6306
|
UNABLE_TO_CREATE_SESSION: better_auth0.RawError<"UNABLE_TO_CREATE_SESSION">;
|
|
6075
6307
|
FAILED_TO_UPDATE_PASSKEY: better_auth0.RawError<"FAILED_TO_UPDATE_PASSKEY">;
|
|
6308
|
+
PREVIOUSLY_REGISTERED: better_auth0.RawError<"PREVIOUSLY_REGISTERED">;
|
|
6309
|
+
REGISTRATION_CANCELLED: better_auth0.RawError<"REGISTRATION_CANCELLED">;
|
|
6310
|
+
AUTH_CANCELLED: better_auth0.RawError<"AUTH_CANCELLED">;
|
|
6311
|
+
UNKNOWN_ERROR: better_auth0.RawError<"UNKNOWN_ERROR">;
|
|
6312
|
+
SESSION_REQUIRED: better_auth0.RawError<"SESSION_REQUIRED">;
|
|
6313
|
+
RESOLVE_USER_REQUIRED: better_auth0.RawError<"RESOLVE_USER_REQUIRED">;
|
|
6314
|
+
RESOLVED_USER_INVALID: better_auth0.RawError<"RESOLVED_USER_INVALID">;
|
|
6076
6315
|
} & {
|
|
6077
6316
|
USER_ALREADY_EXISTS_USE_ANOTHER_EMAIL: better_auth0.RawError<"USER_ALREADY_EXISTS_USE_ANOTHER_EMAIL">;
|
|
6078
6317
|
FAILED_TO_CREATE_USER: better_auth0.RawError<"FAILED_TO_CREATE_USER">;
|
|
@@ -6151,5 +6390,4 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
6151
6390
|
*/
|
|
6152
6391
|
type ClientAuth<TAccessControl extends AccessControl, TRoles extends { [key in string]: Role }> = ReturnType<typeof createAuthClient<TAccessControl, TRoles>>;
|
|
6153
6392
|
//#endregion
|
|
6154
|
-
export { ClientAuth, CreateAuthClientProps, createAuthClient };
|
|
6155
|
-
//# sourceMappingURL=create-client.client.d.mts.map
|
|
6393
|
+
export { ClientAuth, CreateAuthClientProps, createAuthClient };
|