typings: add roomsConfig with appearance property to GlobalConfig and define MeetAppearanceConfig

This commit is contained in:
juancarmore 2025-09-19 11:32:33 +02:00
parent 0abbaddaf9
commit bb5a86da2c
2 changed files with 23 additions and 1 deletions

View File

@ -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 {

View File

@ -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'
}