@cloudflare/realtimekit 1.5.2-staging.1 → 1.5.2-staging.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -1503,70 +1503,6 @@ interface DeleteChatMessageResponse {
1503
1503
  */
1504
1504
  declare const DeleteChatMessageResponse: DeleteChatMessageResponse$Type;
1505
1505
 
1506
- declare class EnablePluginResponse$Type extends MessageType$1<EnablePluginResponse> {
1507
- constructor();
1508
- }
1509
- /**
1510
- * Response sent whenever a plugin is enabled.
1511
- * Applicable for all requests that enable a plugin.
1512
- *
1513
- * @generated from protobuf message socket.plugin.EnablePluginResponse
1514
- */
1515
- interface EnablePluginResponse {
1516
- /**
1517
- * @generated from protobuf field: string plugin_id = 1;
1518
- */
1519
- pluginId: string;
1520
- /**
1521
- * @generated from protobuf field: string enabled_by = 2;
1522
- */
1523
- enabledBy: string;
1524
- }
1525
- /**
1526
- * @generated MessageType for protobuf message socket.plugin.EnablePluginResponse
1527
- */
1528
- declare const EnablePluginResponse: EnablePluginResponse$Type;
1529
- declare class EnablePluginsResponse$Type extends MessageType$1<EnablePluginsResponse> {
1530
- constructor();
1531
- }
1532
- /**
1533
- * Response sent when all enabled plugins are requested.
1534
- *
1535
- * @generated from protobuf message socket.plugin.EnablePluginsResponse
1536
- */
1537
- interface EnablePluginsResponse {
1538
- /**
1539
- * @generated from protobuf field: repeated socket.plugin.EnablePluginResponse plugins = 1;
1540
- */
1541
- plugins: EnablePluginResponse[];
1542
- }
1543
- /**
1544
- * @generated MessageType for protobuf message socket.plugin.EnablePluginsResponse
1545
- */
1546
- declare const EnablePluginsResponse: EnablePluginsResponse$Type;
1547
- declare class DisablePluginResponse$Type extends MessageType$1<DisablePluginResponse> {
1548
- constructor();
1549
- }
1550
- /**
1551
- * Response sent whenever a plugin is disabled.
1552
- * Applicable for all requests that disable a plugin.
1553
- *
1554
- * @generated from protobuf message socket.plugin.DisablePluginResponse
1555
- */
1556
- interface DisablePluginResponse {
1557
- /**
1558
- * @generated from protobuf field: string plugin_id = 1;
1559
- */
1560
- pluginId: string;
1561
- /**
1562
- * @generated from protobuf field: string disabled_by = 2;
1563
- */
1564
- disabledBy: string;
1565
- }
1566
- /**
1567
- * @generated MessageType for protobuf message socket.plugin.DisablePluginResponse
1568
- */
1569
- declare const DisablePluginResponse: DisablePluginResponse$Type;
1570
1506
  declare class PluginStoreItem$Type extends MessageType$1<PluginStoreItem> {
1571
1507
  constructor();
1572
1508
  }
@@ -1622,28 +1558,6 @@ interface PluginStoreResponse {
1622
1558
  * @generated MessageType for protobuf message socket.plugin.PluginStoreResponse
1623
1559
  */
1624
1560
  declare const PluginStoreResponse: PluginStoreResponse$Type;
1625
- declare class PluginEventResponse$Type extends MessageType$1<PluginEventResponse> {
1626
- constructor();
1627
- }
1628
- /**
1629
- * Response sent for custom plugin event.
1630
- *
1631
- * @generated from protobuf message socket.plugin.PluginEventResponse
1632
- */
1633
- interface PluginEventResponse {
1634
- /**
1635
- * @generated from protobuf field: string plugin_id = 1;
1636
- */
1637
- pluginId: string;
1638
- /**
1639
- * @generated from protobuf field: bytes plugin_data = 2;
1640
- */
1641
- pluginData: Uint8Array;
1642
- }
1643
- /**
1644
- * @generated MessageType for protobuf message socket.plugin.PluginEventResponse
1645
- */
1646
- declare const PluginEventResponse: PluginEventResponse$Type;
1647
1561
 
1648
1562
  declare class GetStagePeersResponse$Type extends MessageType$1<GetStagePeersResponse> {
1649
1563
  constructor();
@@ -2155,31 +2069,6 @@ declare class RoomSocketHandler {
2155
2069
  getUserPermissions(userId: string): Promise<Pick<PresetTypeV2['permissions'], 'chat' | 'polls' | 'plugins'>>;
2156
2070
  }
2157
2071
 
2158
- type TranscriptionData = {
2159
- id: string;
2160
- name: string;
2161
- peerId: string;
2162
- userId: string;
2163
- customParticipantId: string;
2164
- transcript: string;
2165
- isPartialTranscript: boolean;
2166
- date: Date;
2167
- };
2168
- type AiEvents = {
2169
- ['transcript']: (t: TranscriptionData) => void;
2170
- ['*']: (event: string, ...args: any[]) => void;
2171
- };
2172
- declare class Ai extends TypedEventEmitter$1<AiEvents> {
2173
- transcripts: TranscriptionData[];
2174
- get telemetry(): Telemetry;
2175
- constructor(context: Context<ContextState>);
2176
- static init(context: Context<ContextState>, transcriptionEnabled: boolean): Promise<Ai>;
2177
- static parseTranscript(transcriptData: string, isPartialTranscript?: boolean): TranscriptionData | undefined;
2178
- static parseTranscripts(transcriptData: string): TranscriptionData[];
2179
- getActiveTranscript(): Promise<void>;
2180
- onTranscript(transcript: TranscriptionData): Promise<void>;
2181
- }
2182
-
2183
2072
  type ActiveTabType = 'screenshare' | 'plugin';
2184
2073
  interface ActiveTab {
2185
2074
  type: ActiveTabType;
@@ -2203,7 +2092,6 @@ type MetaEvents = {
2203
2092
  ['meetingStartTimeUpdate']: (payload: {
2204
2093
  meetingStartedTimestamp: Date;
2205
2094
  }) => void;
2206
- ['transcript']: (t: TranscriptionData) => void;
2207
2095
  ['activeTabUpdate']: (tab: ActiveTab) => void;
2208
2096
  ['selfTabUpdate']: (tab: ActiveTab) => void;
2209
2097
  ['broadcastTabChangesUpdate']: (broadcastTabChanges: boolean) => void;
@@ -2672,9 +2560,6 @@ declare class Participants extends TypedEventEmitter$1<ParticipantsEvents> {
2672
2560
  setPage(page: number): Promise<void>;
2673
2561
  disableAllAudio(allowUnmute: boolean): Promise<void>;
2674
2562
  disableAllVideo(): Promise<void>;
2675
- disableAudio(participantId: string): Promise<void>;
2676
- disableVideo(participantId: string): Promise<void>;
2677
- kick(participantId: string): Promise<void>;
2678
2563
  kickAll(): Promise<void>;
2679
2564
  broadcastMessage(type: Exclude<string, 'spotlight'>, payload: BroadcastMessagePayload, target?: BroadcastMessageTarget): Promise<void>;
2680
2565
  getAllJoinedPeers(searchQuery: string, limit: number, offset: number): Promise<{
@@ -3090,8 +2975,6 @@ type PermissionEvents = {
3090
2975
  declare class PermissionPreset extends TypedEventEmitter$1<PermissionEvents> {
3091
2976
  private constructor();
3092
2977
  private setupEvents;
3093
- static fromResponse(response: PresetPermissions, viewType: ViewType, context: Context<ContextState>): PermissionPreset;
3094
- static default(context: Context<ContextState>, viewType: ViewType): PermissionPreset;
3095
2978
  static init(context: Context<ContextState>, viewType: ViewType, response?: PresetPermissions): PermissionPreset;
3096
2979
  get mediaRoomType(): string;
3097
2980
  get stageEnabled(): Readonly<boolean>;
@@ -3109,29 +2992,19 @@ declare class PermissionPreset extends TypedEventEmitter$1<PermissionEvents> {
3109
2992
  get kickParticipant(): Readonly<boolean>;
3110
2993
  get pinParticipant(): Readonly<boolean>;
3111
2994
  get canRecord(): Readonly<boolean>;
3112
- get waitingRoomType(): Readonly<WaitingRoomTypes>;
3113
2995
  get waitingRoomBehaviour(): Readonly<WaitingRoomTypes>;
3114
2996
  get plugins(): Readonly<PresetPermissions['plugins']>;
3115
2997
  get polls(): Readonly<PresetPermissions['polls']>;
3116
- get produceVideo(): Readonly<MediaProductionPermissionType>;
3117
- get requestProduce(): Readonly<boolean>;
3118
2998
  get canProduceVideo(): Readonly<MediaProductionPermissionType>;
3119
- get produceScreenshare(): Readonly<MediaProductionPermissionType>;
3120
2999
  get canProduceScreenshare(): Readonly<MediaProductionPermissionType>;
3121
- get produceAudio(): Readonly<MediaProductionPermissionType>;
3122
3000
  get canProduceAudio(): Readonly<MediaProductionPermissionType>;
3123
3001
  get chatPublic(): Readonly<PresetPermissions['chat']['public']>;
3124
3002
  get chatPrivate(): Readonly<PresetPermissions['chat']['private']>;
3125
3003
  get connectedMeetings(): Readonly<PresetPermissions['connectedMeetings']>;
3126
3004
  get hiddenParticipant(): Readonly<boolean>;
3127
3005
  get showParticipantList(): Readonly<boolean>;
3128
- get canChangeParticipantRole(): Readonly<boolean>;
3129
3006
  get canChangeParticipantPermissions(): Readonly<boolean>;
3130
- get canChangeTheme(): Readonly<boolean>;
3131
- get canPresent(): Readonly<boolean>;
3132
- get acceptPresentRequests(): Readonly<boolean>;
3133
3007
  get canEditDisplayName(): Readonly<boolean>;
3134
- get maxScreenShareCount(): Readonly<number>;
3135
3008
  get isRecorder(): Readonly<boolean>;
3136
3009
  get canSpotlight(): Readonly<boolean>;
3137
3010
  get canLivestream(): Readonly<boolean>;
@@ -3205,154 +3078,6 @@ declare class Livestream extends TypedEventEmitter$1<LivestreamEvents> {
3205
3078
  stop(): Promise<void>;
3206
3079
  }
3207
3080
 
3208
- type PluginSocketMessage = DisablePluginResponse | EnablePluginResponse | PluginEventResponse | PluginStoreResponse | SendChatMessageToPeersResponse | SendChatMessageToRoomResponse;
3209
- declare class PluginSocketHandler {
3210
- constructor(context: Context<ContextState>, socketService: SocketService);
3211
- get logger(): Logger;
3212
- addPlugin(pluginId: string, staggered: boolean): void;
3213
- removePlugin(pluginId: string): void;
3214
- getActivePlugins(): Promise<EnablePluginsResponse>;
3215
- customPluginEventToRoom(pluginId: string, data: any, messageId?: string): void;
3216
- customPluginEventToPeers(pluginId: string, peerIds: string[], data: any, messageId?: string): void;
3217
- enablePluginForRoom(pluginId: string, messageId?: string): void;
3218
- enablePluginForPeers(pluginId: string, peerIds: string[], messageId?: string): void;
3219
- disablePluginForRoom(pluginId: string, messageId?: string): void;
3220
- disablePluginForPeers(pluginId: string, peerIds: string[], messageId?: string): void;
3221
- storeInsertKeys(pluginId: string, store: string, insertKeys: {
3222
- key: string;
3223
- payload?: any;
3224
- }[], messageId?: string): void;
3225
- storeGetKeys(pluginId: string, store: string, getKeys: {
3226
- key: string;
3227
- }[], messageId?: string): void;
3228
- storeDeleteKeys(pluginId: string, store: string, deleteKeys: {
3229
- key: string;
3230
- }[], messageId?: string): void;
3231
- storeDelete(pluginId: string, store: string, messageId?: string): void;
3232
- getPluginDataOld(pluginId: string, store: string): void;
3233
- storePluginDataOld(pluginId: string, store: string, data: any): void;
3234
- on(event: number, handler: (socketMessage: PluginSocketMessage, messageId?: string) => void): void;
3235
- }
3236
-
3237
- interface PluginResponse {
3238
- baseURL: string;
3239
- createdAt: string;
3240
- description: string;
3241
- id: string;
3242
- name: string;
3243
- organizationId: string;
3244
- picture: string;
3245
- private: boolean;
3246
- published: boolean;
3247
- staggered: boolean;
3248
- tags: string[];
3249
- type: string;
3250
- updatedAt: string;
3251
- }
3252
- interface PluginViews {
3253
- [viewId: string]: {
3254
- url: string;
3255
- suggestedPosition: string;
3256
- };
3257
- }
3258
- interface PluginConfig {
3259
- name: string;
3260
- pluginId: string;
3261
- version: string;
3262
- description: string;
3263
- author?: string;
3264
- repository?: string;
3265
- tags?: string[];
3266
- picture?: string;
3267
- url?: string;
3268
- files: {
3269
- include: string[];
3270
- exclude?: string[];
3271
- };
3272
- views?: PluginViews;
3273
- contentScript?: string;
3274
- permissions?: {
3275
- [key: string]: {
3276
- default: boolean;
3277
- description: string;
3278
- };
3279
- };
3280
- config?: {
3281
- [key: string]: string;
3282
- };
3283
- }
3284
- interface PluginIframeMessage {
3285
- type: number;
3286
- uuid: string;
3287
- payload?: any;
3288
- }
3289
- interface SendDataOptions {
3290
- eventName: string;
3291
- data: any;
3292
- }
3293
- interface ReactNativeWebViewEvent {
3294
- nativeEvent: {
3295
- data: string;
3296
- };
3297
- }
3298
- interface ReactNativeWebView {
3299
- src: string;
3300
- allow: string;
3301
- title: string;
3302
- props: {
3303
- onMessage: (event: ReactNativeWebViewEvent) => void;
3304
- };
3305
- postMessage: (message: string) => void;
3306
- }
3307
- declare const PluginEventKeys: {
3308
- stateUpdate: string;
3309
- ready: string;
3310
- closed: string;
3311
- toggleViewMode: string;
3312
- enabled: string;
3313
- '* ': string;
3314
- };
3315
- type _string = string & {
3316
- _?: any;
3317
- };
3318
- type PluginEvents$1 = keyof typeof PluginEventKeys | _string;
3319
- declare class Plugin extends CustomEventEmitter<PluginEvents$1> {
3320
- readonly baseURL: string;
3321
- readonly createdAt: Date;
3322
- readonly description: string;
3323
- readonly id: string;
3324
- readonly name: string;
3325
- readonly organizationId: string;
3326
- readonly picture: string;
3327
- readonly private: boolean;
3328
- readonly published: boolean;
3329
- readonly staggered: boolean;
3330
- readonly tags: string[];
3331
- readonly type: string;
3332
- readonly updatedAt: Date;
3333
- config?: PluginConfig;
3334
- active: boolean;
3335
- iframes: Map<string, {
3336
- iframe: HTMLIFrameElement | ReactNativeWebView;
3337
- listener?: (message: MessageEvent) => void;
3338
- }>;
3339
- enabledBy: string;
3340
- get telemetry(): Telemetry;
3341
- constructor(context: Context<ContextState>, { baseURL, createdAt, description, id, name, organizationId, picture, private: isPrivate, published, staggered, tags, type, updatedAt, }: PluginResponse, pluginSocketHandler: PluginSocketHandler, self: Self, participants: Participants, chat: Readonly<Chat>, meetingTitle: string);
3342
- sendIframeEvent(message: PluginIframeMessage): void;
3343
- private handleIframeMessage;
3344
- sendData(payload: SendDataOptions): void;
3345
- removePluginView(viewId?: string): void;
3346
- addPluginView(iframe: HTMLIFrameElement | ReactNativeWebView, viewId?: string): void;
3347
- private setActive;
3348
- activateForSelf(): Promise<void>;
3349
- deactivateForSelf(): void;
3350
- enable(): Promise<void>;
3351
- disable(): void;
3352
- activate(): Promise<void>;
3353
- deactivate(): Promise<void>;
3354
- }
3355
-
3356
3081
  interface RecordingConfig {
3357
3082
  fileNamePrefix?: string;
3358
3083
  videoConfig?: {
@@ -3370,10 +3095,6 @@ declare class APIClient extends API {
3370
3095
  telemetry: Telemetry;
3371
3096
  constructor(context: Context<ContextState>, options?: APIOptions);
3372
3097
  getICEServers(): Promise<any>;
3373
- getPlugins(): Promise<any[]>;
3374
- getPluginDetails(pluginId: string): Promise<PluginResponse>;
3375
- getPluginConfig(pluginBaseUrl: string): Promise<PluginConfig>;
3376
- authorizePlugin(pluginId: string): Promise<string>;
3377
3098
  getPresignedUrls(filename: string): Promise<{
3378
3099
  getLocation: any;
3379
3100
  putLocation: any;
@@ -3515,19 +3236,11 @@ declare class Chat extends TypedEventEmitter$1<ChatEvents> {
3515
3236
  editFileMessage(messageId: string, file: File | ReactNativeFile): Promise<void>;
3516
3237
  editMessage(messageId: string, message: MessagePayload): Promise<void>;
3517
3238
  deleteMessage(messageId: string): Promise<void>;
3518
- getMessagesByUser(userId: string): Message[];
3519
- getMessagesByType(type: keyof typeof MessageType): Message[];
3520
3239
  pin(id: string): Promise<void>;
3521
3240
  unpin(id: string): Promise<void>;
3522
3241
  fetchPublicMessages({ timestamp, limit, direction, }: FetchMessageOptions): Promise<Message[]>;
3523
3242
  fetchPrivateMessages({ timestamp, limit, direction, userId, }: FetchPrivateMessagesOptions): Promise<Message[]>;
3524
3243
  fetchPinnedMessages({ timestamp, limit, direction, }: FetchMessageOptions): Promise<Message[]>;
3525
- getMessages(timeStamp: number, size: number, reversed: boolean, offset?: number): Promise<{
3526
- messages: Message[];
3527
- next: boolean;
3528
- }>;
3529
- searchMessages(query: string, filters: unknown): Promise<unknown[]>;
3530
- get pinned(): Message[];
3531
3244
  }
3532
3245
 
3533
3246
  declare class PollSocketHandler {
@@ -3576,6 +3289,138 @@ declare class Polls extends TypedEventEmitter$1<PollsEvents> {
3576
3289
  vote(id: string, index: number): Promise<void>;
3577
3290
  }
3578
3291
 
3292
+ type TranscriptionData = {
3293
+ id: string;
3294
+ name: string;
3295
+ peerId: string;
3296
+ userId: string;
3297
+ customParticipantId: string;
3298
+ transcript: string;
3299
+ isPartialTranscript: boolean;
3300
+ date: Date;
3301
+ };
3302
+ type AiEvents = {
3303
+ ['transcript']: (t: TranscriptionData) => void;
3304
+ ['*']: (event: string, ...args: any[]) => void;
3305
+ };
3306
+ declare class Ai extends TypedEventEmitter$1<AiEvents> {
3307
+ transcripts: TranscriptionData[];
3308
+ get telemetry(): Telemetry;
3309
+ constructor(context: Context<ContextState>);
3310
+ static init(context: Context<ContextState>, transcriptionEnabled: boolean): Promise<Ai>;
3311
+ static parseTranscript(transcriptData: string, isPartialTranscript?: boolean): TranscriptionData | undefined;
3312
+ static parseTranscripts(transcriptData: string): TranscriptionData[];
3313
+ getActiveTranscript(): Promise<void>;
3314
+ onTranscript(transcript: TranscriptionData): Promise<void>;
3315
+ }
3316
+
3317
+ declare class StoresSocketHandler {
3318
+ constructor(context: Context<ContextState>, socketService: SocketService);
3319
+ get logger(): Logger;
3320
+ get peerId(): string;
3321
+ storeInsertKeys(pluginId: string, store: string, insertKeys: {
3322
+ key: string;
3323
+ payload?: unknown;
3324
+ }[], messageId?: string): void;
3325
+ storeGetKeys(pluginId: string, store: string, getKeys: {
3326
+ key: string;
3327
+ }[], messageId?: string): void;
3328
+ storeDeleteKeys(pluginId: string, store: string, deleteKeys: {
3329
+ key: string;
3330
+ }[], messageId?: string): void;
3331
+ on(event: number, handler: (socketMessage: PluginStoreResponse, messageId?: string) => void): void;
3332
+ }
3333
+
3334
+ type StoreData = {
3335
+ [type: string]: any;
3336
+ };
3337
+ type RateLimitConfig = {
3338
+ maxInvocations: number;
3339
+ period: number;
3340
+ };
3341
+ declare class Store {
3342
+ name: string;
3343
+ rateLimitConfig: {
3344
+ maxInvocations: number;
3345
+ period: number;
3346
+ };
3347
+ bulkRateLimitConfig: {
3348
+ maxInvocations: number;
3349
+ period: number;
3350
+ };
3351
+ private listeners;
3352
+ constructor({ name, socketHandler, meetingId }: {
3353
+ name: string;
3354
+ socketHandler: StoresSocketHandler;
3355
+ meetingId: string;
3356
+ });
3357
+ set(key: string, value: any, sync?: boolean, emit?: boolean): Promise<void>;
3358
+ private remoteSet;
3359
+ bulkSet(data: Array<{
3360
+ key: string;
3361
+ payload: any;
3362
+ }>): Promise<void>;
3363
+ update(key: string, value: any, sync?: boolean): Promise<void>;
3364
+ delete(key: string, sync?: boolean, emit?: boolean): Promise<void>;
3365
+ bulkDelete(data: Array<{
3366
+ key: string;
3367
+ }>): Promise<void>;
3368
+ get(key: string): any;
3369
+ getAll(): StoreData;
3370
+ clear(): void;
3371
+ get rateLimits(): {
3372
+ maxInvocations: number;
3373
+ period: number;
3374
+ };
3375
+ updateRateLimits(num: number, period: number): void;
3376
+ get bulkRateLimits(): {
3377
+ maxInvocations: number;
3378
+ period: number;
3379
+ };
3380
+ updateBulkRateLimits(num: number, period: number): void;
3381
+ subscribe(key: string | '*', cb: (value: any) => any): void;
3382
+ unsubscribe(key: string | '*', cb?: (value: any) => any): void;
3383
+ populate(data: StoreData): void;
3384
+ }
3385
+
3386
+ interface ClientPluginPermissions {
3387
+ canActivate: boolean;
3388
+ canDeactivate: boolean;
3389
+ }
3390
+ interface ClientPluginConfig {
3391
+ name: string;
3392
+ icon: string;
3393
+ id: string;
3394
+ permissions: ClientPluginPermissions;
3395
+ component: unknown;
3396
+ }
3397
+ declare const PluginEventKeys: {
3398
+ stateUpdate: string;
3399
+ ready: string;
3400
+ closed: string;
3401
+ enabled: string;
3402
+ '* ': string;
3403
+ };
3404
+ type _string = string & {
3405
+ _?: any;
3406
+ };
3407
+ type PluginEvents$1 = keyof typeof PluginEventKeys | _string;
3408
+ declare class Plugin extends CustomEventEmitter<PluginEvents$1> {
3409
+ readonly name: string;
3410
+ readonly icon: string;
3411
+ readonly id: string;
3412
+ readonly permissions: ClientPluginPermissions;
3413
+ active: boolean;
3414
+ enabledBy: string;
3415
+ get component(): unknown;
3416
+ get telemetry(): Telemetry;
3417
+ constructor(context: Context<ContextState>, config: ClientPluginConfig, activePluginsStore: Store, self: Self);
3418
+ activateForSelf(): void;
3419
+ deactivateForSelf(): void;
3420
+ activate(): Promise<void>;
3421
+ deactivate(): Promise<void>;
3422
+ }
3423
+
3579
3424
  type PluginMapEvents = {
3580
3425
  ['pluginAdded']: (plugin: Plugin) => void;
3581
3426
  ['pluginDeleted']: (plugin: Plugin) => void;
@@ -3605,6 +3450,13 @@ declare class Plugins {
3605
3450
  constructor(logger: Logger);
3606
3451
  }
3607
3452
 
3453
+ declare class StoreManager {
3454
+ stores: Map<String, Store>;
3455
+ constructor(context: Context<ContextState>, handler: StoresSocketHandler);
3456
+ create(name: string, _internal?: boolean): Promise<Store>;
3457
+ refresh(name: string): Promise<Store>;
3458
+ }
3459
+
3608
3460
  declare class SelfMedia extends TypedEventEmitter$1<SelfEvents> {
3609
3461
  protected localMediaHandler: LocalMediaHandler;
3610
3462
  constructor(context: Context<ContextState>, logger: Logger);
@@ -3787,63 +3639,6 @@ declare class Internals {
3787
3639
  static init(context: Context<ContextState>): Internals;
3788
3640
  }
3789
3641
 
3790
- type StoreData = {
3791
- [type: string]: any;
3792
- };
3793
- type RateLimitConfig = {
3794
- maxInvocations: number;
3795
- period: number;
3796
- };
3797
- declare class Store {
3798
- name: string;
3799
- rateLimitConfig: {
3800
- maxInvocations: number;
3801
- period: number;
3802
- };
3803
- bulkRateLimitConfig: {
3804
- maxInvocations: number;
3805
- period: number;
3806
- };
3807
- private listeners;
3808
- constructor({ name, socketHandler, meetingId }: {
3809
- name: string;
3810
- socketHandler: PluginSocketHandler;
3811
- meetingId: string;
3812
- });
3813
- set(key: string, value: any, sync?: boolean, emit?: boolean): Promise<void>;
3814
- private remoteSet;
3815
- bulkSet(data: Array<{
3816
- key: string;
3817
- payload: any;
3818
- }>): Promise<void>;
3819
- update(key: string, value: any, sync?: boolean): Promise<void>;
3820
- delete(key: string, sync?: boolean, emit?: boolean): Promise<void>;
3821
- bulkDelete(data: Array<{
3822
- key: string;
3823
- }>): Promise<void>;
3824
- get(key: string): any;
3825
- getAll(): StoreData;
3826
- get rateLimits(): {
3827
- maxInvocations: number;
3828
- period: number;
3829
- };
3830
- updateRateLimits(num: number, period: number): void;
3831
- get bulkRateLimits(): {
3832
- maxInvocations: number;
3833
- period: number;
3834
- };
3835
- updateBulkRateLimits(num: number, period: number): void;
3836
- subscribe(key: string | '*', cb: (value: any) => any): void;
3837
- unsubscribe(key: string | '*', cb?: (value: any) => any): void;
3838
- populate(data: StoreData): void;
3839
- }
3840
-
3841
- declare class StoreManager {
3842
- stores: Map<String, Store>;
3843
- constructor(context: Context<ContextState>, handler: PluginSocketHandler);
3844
- create(name: string): Promise<Store>;
3845
- }
3846
-
3847
3642
  declare const enum PRODUCERS_TYPE {
3848
3643
  WEBCAM = "webcam",
3849
3644
  WEBCAM_BACKUP = "webcam_backup",
@@ -3871,8 +3666,10 @@ declare class MediaNodeClient {
3871
3666
  constructor(context: Context<ContextState>, options: MediaNodeClientOptions);
3872
3667
  get mediaJoined(): boolean;
3873
3668
  set mediaJoined(joined: boolean);
3874
- reset(): void;
3875
- joinRoom(displayName: string, roomUuid: string, forceFullReset?: boolean, rejoining?: boolean, permissions?: MediaPermissions): Promise<{
3669
+ reset({ resetTransportQueue }: {
3670
+ resetTransportQueue: boolean;
3671
+ }): void;
3672
+ joinRoom(displayName: string, roomUuid: string, rejoining?: boolean, permissions?: MediaPermissions): Promise<{
3876
3673
  roomJoined: boolean;
3877
3674
  error?: Error;
3878
3675
  }>;
@@ -3994,9 +3791,9 @@ declare class ConnectedMeetings extends TypedEventEmitter$1<ConnectedMeetingsEve
3994
3791
  constructor(context: Context<ContextState>);
3995
3792
  meetings: ConnectedMeeting[];
3996
3793
  parentMeeting: ConnectedMeeting;
3997
- get supportsConnectedMeetings(): boolean;
3998
3794
  get isActive(): boolean;
3999
- private validateConnectedMeetingsAction;
3795
+ private validateAlterAction;
3796
+ private validateMoveAction;
4000
3797
  getConnectedMeetings(): Promise<{
4001
3798
  parentMeeting: ConnectedMeeting;
4002
3799
  meetings: ConnectedMeeting[];
@@ -4054,14 +3851,6 @@ interface Modules {
4054
3851
  devTools?: {
4055
3852
  logs: boolean;
4056
3853
  logLevel?: LogLevel[number];
4057
- plugins?: {
4058
- id: string;
4059
- name: string;
4060
- port: number;
4061
- picture?: string;
4062
- description?: string;
4063
- staggered?: boolean;
4064
- }[];
4065
3854
  };
4066
3855
  experimentalAudioPlayback?: boolean;
4067
3856
  }
@@ -4077,6 +3866,7 @@ interface DefaultOptions {
4077
3866
  screenshare?: ScreenshareQualityConstraints;
4078
3867
  };
4079
3868
  isNonPreferredDevice?: (device: MediaDeviceInfo) => boolean;
3869
+ plugins?: ClientPluginConfig[];
4080
3870
  }
4081
3871
  interface RoomDetails {
4082
3872
  meetingTitle: string;
@@ -4422,7 +4212,6 @@ interface UserDetailsResponse {
4422
4212
  picture?: string;
4423
4213
  loggedIn?: boolean;
4424
4214
  scope?: string[];
4425
- clientSpecificId?: string;
4426
4215
  customParticipantId?: string;
4427
4216
  organizationId?: string;
4428
4217
  }
@@ -4509,7 +4298,6 @@ interface IParticipant {
4509
4298
  flags: {
4510
4299
  [key: string]: string | boolean;
4511
4300
  };
4512
- clientSpecificId?: string;
4513
4301
  customParticipantId?: string;
4514
4302
  stageStatus?: StageStatus;
4515
4303
  audioMuted: boolean;
@@ -4529,7 +4317,6 @@ declare class Participant extends TypedEventEmitter$1<ParticipantEvents> {
4529
4317
  picture: string;
4530
4318
  isHost: boolean;
4531
4319
  customParticipantId?: string;
4532
- get clientSpecificId(): string;
4533
4320
  flags: {
4534
4321
  [key: string]: string | boolean;
4535
4322
  };
@@ -4894,7 +4681,6 @@ interface IceServerInformation {
4894
4681
  }
4895
4682
  interface CachedUserDetails {
4896
4683
  peerId?: string;
4897
- pluginInformation: PluginResponse[];
4898
4684
  userDetails: UserDetailsResponseV2;
4899
4685
  roomDetails: RoomDetails;
4900
4686
  iceServers: IceServerInformation[];
@@ -4915,7 +4701,6 @@ declare class API {
4915
4701
  protected authToken: string;
4916
4702
  protected organizationId: string;
4917
4703
  protected iceServers: IceServerInformation[];
4918
- protected pluginInformation: PluginResponse[];
4919
4704
  protected userDetails: UserDetailsResponseV2;
4920
4705
  protected roomDetails: RoomDetails;
4921
4706
  get peerId(): string;
@@ -4975,8 +4760,6 @@ declare class Client {
4975
4760
  get stores(): Readonly<StoreManager>;
4976
4761
  get audio(): AudioPlaybackManager;
4977
4762
  get __internals__(): Readonly<Internals>;
4978
- joinRoom(): Promise<void>;
4979
- leaveRoom(state?: LeaveRoomState): Promise<void>;
4980
4763
  }
4981
4764
 
4982
4765
  declare enum RequestToJoinType {
@@ -4993,6 +4776,7 @@ type RTKParticipantMap = Readonly<ParticipantMap>;
4993
4776
  type RTKPlugin = Readonly<Plugin>;
4994
4777
  type RTKPlugins = Readonly<Plugins>;
4995
4778
  type RTKPluginMap = Readonly<PluginMap>;
4779
+
4996
4780
  type RTKMeta = Readonly<Meta>;
4997
4781
  type RTKSelf = Readonly<Self>;
4998
4782
  type RTKSelfMedia = Readonly<SelfMedia>;
@@ -5032,4 +4816,4 @@ declare global {
5032
4816
  }
5033
4817
  }
5034
4818
 
5035
- export { ActiveTab, ActiveTabType, AudioMiddleware, BroadcastMessagePayload, CachedUserDetails, ChatUpdateParams, ClientError, CustomMessage, DeviceConfig, FileMessage, ImageMessage, JoinedPeer, LeaveRoomState, LivestreamIngestionCredentials, LivestreamState, LogData, MediaConnectionState, MediaConnectionUpdate, MediaConstraints, MediaKind, MediaPermission, Message, BasicParticipant as RTKBasicParticipant, BasicParticipantsMap as RTKBasicParticipantsMap, RTKChat, ClientOptions as RTKClientOptions, RTKConfigOptions, RTKConnectedMeetings, RTKLivestream, RTKLogger, RTKMeta, RTKParticipant, RTKParticipantMap, RTKParticipants, RTKPermissionsPreset, RTKPlugin, RTKPluginMap, RTKPlugins, RTKPolls, RTKRecording, RTKSelf, RTKSelfMedia, RTKStore, StoreData as RTKStoreData, RateLimitConfig as RTKStoreRateLimitConfig, RTKThemePreset, RecordingState, RequestToJoinType, SocketConnectionState, StageStatus, StartLivestreamConfig, TextMessage, UserDetailsResponseV2, VideoMiddleware, VideoQualityConstraints, Client as default, LeaveRoomState as leaveRoomState };
4819
+ export { ActiveTab, ActiveTabType, AudioMiddleware, BroadcastMessagePayload, CachedUserDetails, ChatUpdateParams, ClientError, ClientPluginConfig, ClientPluginPermissions, CustomMessage, DeviceConfig, FileMessage, ImageMessage, JoinedPeer, LeaveRoomState, LivestreamIngestionCredentials, LivestreamState, LogData, MediaConnectionState, MediaConnectionUpdate, MediaConstraints, MediaKind, MediaPermission, Message, BasicParticipant as RTKBasicParticipant, BasicParticipantsMap as RTKBasicParticipantsMap, RTKChat, ClientOptions as RTKClientOptions, RTKConfigOptions, RTKConnectedMeetings, RTKLivestream, RTKLogger, RTKMeta, RTKParticipant, RTKParticipantMap, RTKParticipants, RTKPermissionsPreset, RTKPlugin, RTKPluginMap, RTKPlugins, RTKPolls, RTKRecording, RTKSelf, RTKSelfMedia, RTKStore, StoreData as RTKStoreData, RateLimitConfig as RTKStoreRateLimitConfig, RTKThemePreset, RecordingState, RequestToJoinType, SocketConnectionState, StageStatus, StartLivestreamConfig, TextMessage, UserDetailsResponseV2, VideoMiddleware, VideoQualityConstraints, Client as default, LeaveRoomState as leaveRoomState };