diff --git a/typings/src/auth-preferences.ts b/typings/src/auth-preferences.ts index ddab136..7d7bc4d 100644 --- a/typings/src/auth-preferences.ts +++ b/typings/src/auth-preferences.ts @@ -82,3 +82,13 @@ export interface SingleUserCredentials { // GOOGLE = 'google', // GITHUB = 'github' // } + +// DTOs +export interface AuthenticationPreferencesDTO { + authMode: AuthMode; + method: ValidAuthMethodDTO; +} + +export type ValidAuthMethodDTO = SingleUserAuthDTO; + +export type SingleUserAuthDTO = Omit; diff --git a/typings/src/global-preferences.ts b/typings/src/global-preferences.ts index d0c15ba..cb45e73 100644 --- a/typings/src/global-preferences.ts +++ b/typings/src/global-preferences.ts @@ -1,4 +1,4 @@ -import { AuthenticationPreferences } from './auth-preferences.js'; +import { AuthenticationPreferences, AuthenticationPreferencesDTO } from './auth-preferences.js'; /** * Represents global preferences for OpenVidu Meet. @@ -26,3 +26,11 @@ export interface RoomCreationPolicy { allowRoomCreation: boolean; requireAuthentication: boolean; } + +// DTOs +export interface SecurityPreferencesDTO { + authentication: AuthenticationPreferencesDTO; + roomCreationPolicy: RoomCreationPolicy; +} + +export type UpdateSecurityPreferencesDTO = Partial;