import { type OrganizationModelDefaults } from "@opengeni/contracts"; import { type Database } from "./database.js"; /** * The organization's model defaults as every workspace in it follows them. * Any caller scoped to the organization may read them (workers resolving a * turn, workspace settings pages); absent reads as no defaults. */ export declare function getOrganizationModelDefaults(db: Database, accountId: string): Promise; export declare function getOrganizationModelDefaultsForAdministrator(db: Database, input: { organizationId: string; actorSubjectId: string; }): Promise; export type OrganizationModelDefaultsPatch = { /** Undefined keeps it; null makes the default model automatic again. */ sessionDefaults?: OrganizationModelDefaults["sessionDefaults"] | undefined; /** Undefined keeps both allowlists; otherwise replaces them (null = everything). */ modelPolicy?: { allowedProviders: string[] | null; allowedModels: string[] | null; } | null | undefined; /** Merged by exact model id; null resets just that model. */ modelCompactionThresholds?: unknown; /** Voice settings merged by realtime model id; null or `{}` resets just that model. */ realtimeVoice?: unknown; /** Undefined keeps it; null makes the voice model automatic again. */ realtimeDefaultModel?: unknown; }; /** * Update organization model defaults, field by field. Concurrent edits to * different fields or different models both survive: the row is locked and * each field is merged into what is stored now, not into what a page read. */ export declare function updateOrganizationModelDefaults(db: Database, input: { organizationId: string; actorSubjectId: string; patch: OrganizationModelDefaultsPatch; }): Promise;