typings: Add DTOs for authentication and security preferences
This commit is contained in:
parent
9fe3ac579b
commit
166389b606
@ -82,3 +82,13 @@ export interface SingleUserCredentials {
|
|||||||
// GOOGLE = 'google',
|
// GOOGLE = 'google',
|
||||||
// GITHUB = 'github'
|
// GITHUB = 'github'
|
||||||
// }
|
// }
|
||||||
|
|
||||||
|
// DTOs
|
||||||
|
export interface AuthenticationPreferencesDTO {
|
||||||
|
authMode: AuthMode;
|
||||||
|
method: ValidAuthMethodDTO;
|
||||||
|
}
|
||||||
|
|
||||||
|
export type ValidAuthMethodDTO = SingleUserAuthDTO;
|
||||||
|
|
||||||
|
export type SingleUserAuthDTO = Omit<SingleUserAuth, 'credentials'>;
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
import { AuthenticationPreferences } from './auth-preferences.js';
|
import { AuthenticationPreferences, AuthenticationPreferencesDTO } from './auth-preferences.js';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Represents global preferences for OpenVidu Meet.
|
* Represents global preferences for OpenVidu Meet.
|
||||||
@ -26,3 +26,11 @@ export interface RoomCreationPolicy {
|
|||||||
allowRoomCreation: boolean;
|
allowRoomCreation: boolean;
|
||||||
requireAuthentication: boolean;
|
requireAuthentication: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// DTOs
|
||||||
|
export interface SecurityPreferencesDTO {
|
||||||
|
authentication: AuthenticationPreferencesDTO;
|
||||||
|
roomCreationPolicy: RoomCreationPolicy;
|
||||||
|
}
|
||||||
|
|
||||||
|
export type UpdateSecurityPreferencesDTO = Partial<SecurityPreferencesDTO>;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user