typings: Rename TokenOptions interface to ParticipantOptions

This commit is contained in:
juancarmore 2025-04-24 12:24:01 +02:00
parent 2a02d1befd
commit 7ad0328dcf
3 changed files with 24 additions and 24 deletions

View File

@ -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';

View File

@ -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'
}

View File

@ -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;
}