typings: add roomsConfig with appearance property to GlobalConfig and define MeetAppearanceConfig
This commit is contained in:
parent
0abbaddaf9
commit
bb5a86da2c
@ -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 {
|
||||
|
||||
@ -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'
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user