typings: Rename TokenOptions interface to ParticipantOptions
This commit is contained in:
parent
2a02d1befd
commit
7ad0328dcf
@ -2,7 +2,6 @@ export * from './global-preferences.js';
|
||||
export * from './auth-preferences.js';
|
||||
export * from './room-preferences.js';
|
||||
export * from './participant.js';
|
||||
export * from './token.js';
|
||||
export * from './room.js';
|
||||
export * from './recording.model.js';
|
||||
export * from './webhook.model.js';
|
||||
|
||||
@ -1,18 +1,38 @@
|
||||
import { LiveKitPermissions } from './permissions/livekit-permissions.js';
|
||||
import { OpenViduMeetPermissions } from './permissions/openvidu-permissions.js';
|
||||
|
||||
/**
|
||||
* Options for a participant to join a room.
|
||||
*/
|
||||
export interface ParticipantOptions {
|
||||
/**
|
||||
* The unique identifier for the room.
|
||||
*/
|
||||
roomId: string;
|
||||
|
||||
/**
|
||||
* The name of the participant.
|
||||
*/
|
||||
participantName: string;
|
||||
|
||||
/**
|
||||
* A secret key for room access.
|
||||
*/
|
||||
secret: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Represents the permissions for an individual participant.
|
||||
*/
|
||||
export interface ParticipantPermissions {
|
||||
livekit: LiveKitPermissions;
|
||||
openvidu: OpenViduMeetPermissions;
|
||||
livekit: LiveKitPermissions;
|
||||
openvidu: OpenViduMeetPermissions;
|
||||
}
|
||||
|
||||
/**
|
||||
* Represents the role of a participant in a room.
|
||||
*/
|
||||
export const enum ParticipantRole {
|
||||
MODERATOR = 'moderator',
|
||||
PUBLISHER = 'publisher'
|
||||
MODERATOR = 'moderator',
|
||||
PUBLISHER = 'publisher'
|
||||
}
|
||||
|
||||
@ -1,19 +0,0 @@
|
||||
/**
|
||||
* Options for creating a participant token.
|
||||
*/
|
||||
export interface TokenOptions {
|
||||
/**
|
||||
* The unique identifier for the room.
|
||||
*/
|
||||
roomId: string;
|
||||
|
||||
/**
|
||||
* The name of the participant.
|
||||
*/
|
||||
participantName: string;
|
||||
|
||||
/**
|
||||
* A secret key for room access.
|
||||
*/
|
||||
secret: string;
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user