Add control room automations and uploader overrides

This commit is contained in:
Codex Agent
2026-01-20 15:49:04 +01:00
parent d186dbad4d
commit a4abe51c2a
11 changed files with 738 additions and 33 deletions

View File

@@ -73,6 +73,19 @@ export type LiveShowSettings = {
background_mode?: 'blur_last' | 'gradient' | 'solid' | 'brand';
};
export type ControlRoomUploaderRule = {
device_id: string;
label?: string | null;
};
export type ControlRoomSettings = {
auto_approve_highlights?: boolean;
auto_add_approved_to_live?: boolean;
auto_remove_live_on_hide?: boolean;
trusted_uploaders?: ControlRoomUploaderRule[];
force_review_uploaders?: ControlRoomUploaderRule[];
};
export type LiveShowLink = {
token: string;
url: string;
@@ -101,6 +114,7 @@ export type TenantEvent = {
engagement_mode?: 'tasks' | 'photo_only';
guest_upload_visibility?: 'review' | 'immediate';
live_show?: LiveShowSettings;
control_room?: ControlRoomSettings;
watermark?: WatermarkSettings;
watermark_allowed?: boolean | null;
watermark_removal_allowed?: boolean | null;
@@ -164,6 +178,7 @@ export type TenantPhoto = {
likes_count: number;
uploaded_at: string;
uploader_name: string | null;
created_by_device_id?: string | null;
ingest_source?: string | null;
caption?: string | null;
};
@@ -809,6 +824,7 @@ type EventSavePayload = {
accepted_waiver?: boolean;
settings?: Record<string, unknown> & {
live_show?: LiveShowSettings;
control_room?: ControlRoomSettings;
watermark?: WatermarkSettings;
watermark_serve_originals?: boolean | null;
};
@@ -1022,6 +1038,7 @@ function normalizePhoto(photo: TenantPhoto): TenantPhoto {
likes_count: Number(photo.likes_count ?? 0),
uploaded_at: photo.uploaded_at,
uploader_name: photo.uploader_name ?? null,
created_by_device_id: photo.created_by_device_id ?? null,
caption: photo.caption ?? null,
};
}