From 81db83129b51047a3b12fe482d1094399868761e Mon Sep 17 00:00:00 2001 From: juancarmore Date: Sat, 12 Apr 2025 13:42:24 +0200 Subject: [PATCH] typings: Add MeetRoomRoleAndPermissions interface --- typings/src/room.ts | 33 ++++++++++++++++++++------------- 1 file changed, 20 insertions(+), 13 deletions(-) diff --git a/typings/src/room.ts b/typings/src/room.ts index f243999..b3a7a18 100644 --- a/typings/src/room.ts +++ b/typings/src/room.ts @@ -1,11 +1,13 @@ +import { ParticipantPermissions, ParticipantRole } from './participant.js'; import { MeetRoomPreferences } from './room-preferences.js'; interface BaseRoomOptions { - autoDeletionDate?: number; - roomIdPrefix?: string; - preferences?: MeetRoomPreferences; - // maxParticipants?: number | null; + autoDeletionDate?: number; + roomIdPrefix?: string; + preferences?: MeetRoomPreferences; + // maxParticipants?: number | null; } + /** * Options for creating or configuring a room. */ @@ -15,15 +17,20 @@ export type MeetRoomOptions = BaseRoomOptions; * Interface representing the response received when a room is created. */ export interface MeetRoom extends BaseRoomOptions { - roomId: string; - creationDate: number; - moderatorRoomUrl: string; - publisherRoomUrl: string; - markedForDeletion?: boolean; + roomId: string; + creationDate: number; + moderatorRoomUrl: string; + publisherRoomUrl: string; + markedForDeletion?: boolean; +} + +export interface MeetRoomRoleAndPermissions { + role: ParticipantRole; + permissions: ParticipantPermissions; } export type MeetRoomFilters = { - maxItems?: number; - nextPageToken?: string; - fields?: string; -}; \ No newline at end of file + maxItems?: number; + nextPageToken?: string; + fields?: string; +};