shared/backend/auth: adds SchemaOptions.ProjectScoping and Store methods
(SetUserProjects/UserProjects/UserProjectsByUser/IsProjectAllowed,
SetKnownProjects/KnownProjects) backing AuthGuard's new per-user
project-access restriction.
shared/backend/authclient: Client can now identify its calling project to
AuthServer via WithProjectKey (sent as X-Project-Key on every request), so
AuthServer can enforce the restriction above per project.
shared/backend/mediaauth: generalized from a media-family-only package
into the one shared auth-proxy engine every AuthGuard-integrated project
should use. New accepts a projectKey; the login-required/setup-claim
storage it needs is now expressed as a small Store interface
(NewWithStore lets any project's own storage satisfy it, not just the
media family's shared `settings` table, which pgSettingsStore still backs
for existing callers). ManagedUpdateUser/ManagedDeleteUser now resolve
their {id} path param via chi.URLParam OR the stdlib 1.22+ ServeMux's
PathValue, so non-chi consumers work unchanged.
packages/web-ui: UserManagement gains an optional `projects` prop (a
per-account project-access picker), used only by AuthGuard's own admin UI.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
51 lines
2.0 KiB
TypeScript
51 lines
2.0 KiB
TypeScript
export { default as AboutDialog } from './components/AboutDialog.svelte';
|
|
export { default as AppShell } from './components/AppShell.svelte';
|
|
export { default as AuthPage } from './components/AuthPage.svelte';
|
|
export { default as Badge } from './components/Badge.svelte';
|
|
export { default as Button } from './components/Button.svelte';
|
|
export { default as Card } from './components/Card.svelte';
|
|
export { default as Dialog } from './components/Dialog.svelte';
|
|
export { default as EmptyState } from './components/EmptyState.svelte';
|
|
export { default as Header } from './components/Header.svelte';
|
|
export { default as Metric } from './components/Metric.svelte';
|
|
export { default as NotificationStack } from './components/NotificationStack.svelte';
|
|
export { default as PageHeader } from './components/PageHeader.svelte';
|
|
export { default as Pagination } from './components/Pagination.svelte';
|
|
export { default as ProfileDialog } from './components/ProfileDialog.svelte';
|
|
export { default as SectionTitle } from './components/SectionTitle.svelte';
|
|
export { default as SettingsDialog } from './components/SettingsDialog.svelte';
|
|
export { default as StatusDialog } from './components/StatusDialog.svelte';
|
|
export { default as StatusWidget } from './components/StatusWidget.svelte';
|
|
export { default as TotpSettings } from './components/TotpSettings.svelte';
|
|
export { default as UserManagement } from './components/UserManagement.svelte';
|
|
export { notifications, notify } from './notifications.svelte';
|
|
export type { NotificationEntry, NotificationVariant } from './notifications.svelte';
|
|
export type {
|
|
AboutLink,
|
|
AsyncAction,
|
|
AuthLoginInput,
|
|
AuthResetConfirm,
|
|
AuthResetRequest,
|
|
AuthSetupInput,
|
|
ContentSnippet,
|
|
KnownProject,
|
|
NavItem,
|
|
ProfileUpdateInput,
|
|
ManagedUser,
|
|
StatusLevel,
|
|
StatusProbe,
|
|
StatusSnapshot,
|
|
UserCreateInput,
|
|
UserCreateRequest,
|
|
UserDeleteRequest,
|
|
UserId,
|
|
UserListRequest,
|
|
UserRole,
|
|
UserUpdateInput,
|
|
UserUpdateRequest,
|
|
TotpSetupRequest,
|
|
TotpSetupResponse,
|
|
TotpStatusRequest,
|
|
TotpTokenAction
|
|
} from './types';
|