From 7ad0328dcf4d15c82378458d26af8fb45a30c5b1 Mon Sep 17 00:00:00 2001 From: juancarmore Date: Thu, 24 Apr 2025 12:24:01 +0200 Subject: [PATCH] typings: Rename TokenOptions interface to ParticipantOptions --- typings/src/index.ts | 1 - typings/src/participant.ts | 28 ++++++++++++++++++++++++---- typings/src/token.ts | 19 ------------------- 3 files changed, 24 insertions(+), 24 deletions(-) delete mode 100644 typings/src/token.ts diff --git a/typings/src/index.ts b/typings/src/index.ts index 1b0c978..3bf88c5 100644 --- a/typings/src/index.ts +++ b/typings/src/index.ts @@ -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'; diff --git a/typings/src/participant.ts b/typings/src/participant.ts index 1b81b2e..0eda55c 100644 --- a/typings/src/participant.ts +++ b/typings/src/participant.ts @@ -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' } diff --git a/typings/src/token.ts b/typings/src/token.ts deleted file mode 100644 index 45032b4..0000000 --- a/typings/src/token.ts +++ /dev/null @@ -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; -}