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 { AuthenticationConfig } from './auth-config.js';
|
||||||
|
import { MeetAppearanceConfig } from './room-config.js';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Represents global config for OpenVidu Meet.
|
* Represents global config for OpenVidu Meet.
|
||||||
@ -7,7 +8,9 @@ export interface GlobalConfig {
|
|||||||
projectId: string;
|
projectId: string;
|
||||||
securityConfig: SecurityConfig;
|
securityConfig: SecurityConfig;
|
||||||
webhooksConfig: WebhookConfig;
|
webhooksConfig: WebhookConfig;
|
||||||
// roomsConfig: MeetRoomConfig;
|
roomsConfig?: {
|
||||||
|
appearance: MeetAppearanceConfig;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface WebhookConfig {
|
export interface WebhookConfig {
|
||||||
|
|||||||
@ -5,6 +5,7 @@ export interface MeetRoomConfig {
|
|||||||
chat: MeetChatConfig;
|
chat: MeetChatConfig;
|
||||||
recording: MeetRecordingConfig;
|
recording: MeetRecordingConfig;
|
||||||
virtualBackground: MeetVirtualBackgroundConfig;
|
virtualBackground: MeetVirtualBackgroundConfig;
|
||||||
|
// appearance?: MeetAppearanceConfig;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -28,3 +29,21 @@ export interface MeetChatConfig {
|
|||||||
export interface MeetVirtualBackgroundConfig {
|
export interface MeetVirtualBackgroundConfig {
|
||||||
enabled: boolean;
|
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