From bb5a86da2c43f7c8a3d0119767584ba014bbf29b Mon Sep 17 00:00:00 2001 From: juancarmore Date: Fri, 19 Sep 2025 11:32:33 +0200 Subject: [PATCH] typings: add roomsConfig with appearance property to GlobalConfig and define MeetAppearanceConfig --- typings/src/global-config.ts | 5 ++++- typings/src/room-config.ts | 19 +++++++++++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/typings/src/global-config.ts b/typings/src/global-config.ts index fa523ad..1cd177e 100644 --- a/typings/src/global-config.ts +++ b/typings/src/global-config.ts @@ -1,4 +1,5 @@ import { AuthenticationConfig } from './auth-config.js'; +import { MeetAppearanceConfig } from './room-config.js'; /** * Represents global config for OpenVidu Meet. @@ -7,7 +8,9 @@ export interface GlobalConfig { projectId: string; securityConfig: SecurityConfig; webhooksConfig: WebhookConfig; - // roomsConfig: MeetRoomConfig; + roomsConfig?: { + appearance: MeetAppearanceConfig; + }; } export interface WebhookConfig { diff --git a/typings/src/room-config.ts b/typings/src/room-config.ts index 7dc010a..3bd3689 100644 --- a/typings/src/room-config.ts +++ b/typings/src/room-config.ts @@ -5,6 +5,7 @@ export interface MeetRoomConfig { chat: MeetChatConfig; recording: MeetRecordingConfig; virtualBackground: MeetVirtualBackgroundConfig; + // appearance?: MeetAppearanceConfig; } /** @@ -28,3 +29,21 @@ export interface MeetChatConfig { export interface MeetVirtualBackgroundConfig { enabled: boolean; } + +export interface MeetAppearanceConfig { + themes: MeetRoomTheme[]; +} + +export interface MeetRoomTheme { + name: string; + baseTheme: MeetRoomThemeMode; + backgroundColor?: string; + primaryColor?: string; + secondaryColor?: string; + surfaceColor?: string; +} + +export const enum MeetRoomThemeMode { + LIGHT = 'light', + DARK = 'dark' +}