@cloudflare/realtimekit 1.5.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.
@@ -1,7 +1,7 @@
1
1
  import { EventEmitter } from 'events';
2
- import { InhouseCallStats } from '@cloudflare/realtimekit-callstats';
3
2
  import * as _cloudflare_realtimekit_utils from '@cloudflare/realtimekit-utils';
4
3
  import { PresetTypeV2, MediaVideoQualityType, ViewType, LivestreamViewerMediaQualityType, MediaScreenShareQualityType, PluginAccessControls, WaitingRoomTypes, MediaProductionPermissionType, RecorderType as RecorderType$1, BorderRadius, BorderWidth, Theme } from '@cloudflare/realtimekit-utils';
4
+ import { InhouseCallStats } from '@cloudflare/realtimekit-callstats';
5
5
  import { MessageType as MessageType$1 } from '@protobuf-ts/runtime';
6
6
  import { ProducerScoreStats, ConsumerScoreStats } from '@cloudflare/realtimekit-callstats/dist/measurements/types';
7
7
  import * as WorkerTimers from 'worker-timers';
@@ -1525,70 +1525,6 @@ interface DeleteChatMessageResponse {
1525
1525
  * @generated MessageType for protobuf message socket.chat.DeleteChatMessageResponse
1526
1526
  */
1527
1527
  declare const DeleteChatMessageResponse: DeleteChatMessageResponse$Type;
1528
- declare class EnablePluginResponse$Type extends MessageType$1<EnablePluginResponse> {
1529
- constructor();
1530
- }
1531
- /**
1532
- * Response sent whenever a plugin is enabled.
1533
- * Applicable for all requests that enable a plugin.
1534
- *
1535
- * @generated from protobuf message socket.plugin.EnablePluginResponse
1536
- */
1537
- interface EnablePluginResponse {
1538
- /**
1539
- * @generated from protobuf field: string plugin_id = 1;
1540
- */
1541
- pluginId: string;
1542
- /**
1543
- * @generated from protobuf field: string enabled_by = 2;
1544
- */
1545
- enabledBy: string;
1546
- }
1547
- /**
1548
- * @generated MessageType for protobuf message socket.plugin.EnablePluginResponse
1549
- */
1550
- declare const EnablePluginResponse: EnablePluginResponse$Type;
1551
- declare class EnablePluginsResponse$Type extends MessageType$1<EnablePluginsResponse> {
1552
- constructor();
1553
- }
1554
- /**
1555
- * Response sent when all enabled plugins are requested.
1556
- *
1557
- * @generated from protobuf message socket.plugin.EnablePluginsResponse
1558
- */
1559
- interface EnablePluginsResponse {
1560
- /**
1561
- * @generated from protobuf field: repeated socket.plugin.EnablePluginResponse plugins = 1;
1562
- */
1563
- plugins: EnablePluginResponse[];
1564
- }
1565
- /**
1566
- * @generated MessageType for protobuf message socket.plugin.EnablePluginsResponse
1567
- */
1568
- declare const EnablePluginsResponse: EnablePluginsResponse$Type;
1569
- declare class DisablePluginResponse$Type extends MessageType$1<DisablePluginResponse> {
1570
- constructor();
1571
- }
1572
- /**
1573
- * Response sent whenever a plugin is disabled.
1574
- * Applicable for all requests that disable a plugin.
1575
- *
1576
- * @generated from protobuf message socket.plugin.DisablePluginResponse
1577
- */
1578
- interface DisablePluginResponse {
1579
- /**
1580
- * @generated from protobuf field: string plugin_id = 1;
1581
- */
1582
- pluginId: string;
1583
- /**
1584
- * @generated from protobuf field: string disabled_by = 2;
1585
- */
1586
- disabledBy: string;
1587
- }
1588
- /**
1589
- * @generated MessageType for protobuf message socket.plugin.DisablePluginResponse
1590
- */
1591
- declare const DisablePluginResponse: DisablePluginResponse$Type;
1592
1528
  declare class PluginStoreItem$Type extends MessageType$1<PluginStoreItem> {
1593
1529
  constructor();
1594
1530
  }
@@ -1644,28 +1580,6 @@ interface PluginStoreResponse {
1644
1580
  * @generated MessageType for protobuf message socket.plugin.PluginStoreResponse
1645
1581
  */
1646
1582
  declare const PluginStoreResponse: PluginStoreResponse$Type;
1647
- declare class PluginEventResponse$Type extends MessageType$1<PluginEventResponse> {
1648
- constructor();
1649
- }
1650
- /**
1651
- * Response sent for custom plugin event.
1652
- *
1653
- * @generated from protobuf message socket.plugin.PluginEventResponse
1654
- */
1655
- interface PluginEventResponse {
1656
- /**
1657
- * @generated from protobuf field: string plugin_id = 1;
1658
- */
1659
- pluginId: string;
1660
- /**
1661
- * @generated from protobuf field: bytes plugin_data = 2;
1662
- */
1663
- pluginData: Uint8Array;
1664
- }
1665
- /**
1666
- * @generated MessageType for protobuf message socket.plugin.PluginEventResponse
1667
- */
1668
- declare const PluginEventResponse: PluginEventResponse$Type;
1669
1583
  declare class GetStagePeersResponse$Type extends MessageType$1<GetStagePeersResponse> {
1670
1584
  constructor();
1671
1585
  }
@@ -2096,30 +2010,6 @@ declare class RoomSocketHandler {
2096
2010
  on(event: number, handler: (message: EventHandlerTypes) => void): void;
2097
2011
  getUserPermissions(userId: string): Promise<Pick<PresetTypeV2['permissions'], 'chat' | 'polls' | 'plugins'>>;
2098
2012
  }
2099
- type TranscriptionData = {
2100
- id: string;
2101
- name: string;
2102
- peerId: string;
2103
- userId: string;
2104
- customParticipantId: string;
2105
- transcript: string;
2106
- isPartialTranscript: boolean;
2107
- date: Date;
2108
- };
2109
- type AiEvents = {
2110
- ['transcript']: (t: TranscriptionData) => void;
2111
- ['*']: (event: string, ...args: any[]) => void;
2112
- };
2113
- declare class Ai extends TypedEventEmitter<AiEvents> {
2114
- transcripts: TranscriptionData[];
2115
- readonly telemetry: Telemetry;
2116
- constructor(context: Context<ContextState>);
2117
- static init(context: Context<ContextState>, transcriptionEnabled: boolean): Promise<Ai>;
2118
- static parseTranscript(transcriptData: string, isPartialTranscript?: boolean): TranscriptionData | undefined;
2119
- static parseTranscripts(transcriptData: string): TranscriptionData[];
2120
- getActiveTranscript(): Promise<void>;
2121
- onTranscript(transcript: TranscriptionData): Promise<void>;
2122
- }
2123
2013
  type ActiveTabType = 'screenshare' | 'plugin';
2124
2014
  interface ActiveTab {
2125
2015
  type: ActiveTabType;
@@ -2143,7 +2033,6 @@ type MetaEvents = {
2143
2033
  ['meetingStartTimeUpdate']: (payload: {
2144
2034
  meetingStartedTimestamp: Date;
2145
2035
  }) => void;
2146
- ['transcript']: (t: TranscriptionData) => void;
2147
2036
  ['activeTabUpdate']: (tab: ActiveTab) => void;
2148
2037
  ['selfTabUpdate']: (tab: ActiveTab) => void;
2149
2038
  ['broadcastTabChangesUpdate']: (broadcastTabChanges: boolean) => void;
@@ -2237,152 +2126,6 @@ declare class ClientMap<T extends (EventMap & WildCardEvent<T>), U extends {
2237
2126
  clear(emitEvent?: boolean, removeListeners?: boolean): void;
2238
2127
  toArray(): U[];
2239
2128
  }
2240
- type PluginSocketMessage = DisablePluginResponse | EnablePluginResponse | PluginEventResponse | PluginStoreResponse | SendChatMessageToPeersResponse | SendChatMessageToRoomResponse;
2241
- declare class PluginSocketHandler {
2242
- constructor(context: Context<ContextState>, socketService: SocketService);
2243
- readonly logger: Logger;
2244
- addPlugin(pluginId: string, staggered: boolean): void;
2245
- removePlugin(pluginId: string): void;
2246
- getActivePlugins(): Promise<EnablePluginsResponse>;
2247
- customPluginEventToRoom(pluginId: string, data: any, messageId?: string): void;
2248
- customPluginEventToPeers(pluginId: string, peerIds: string[], data: any, messageId?: string): void;
2249
- enablePluginForRoom(pluginId: string, messageId?: string): void;
2250
- enablePluginForPeers(pluginId: string, peerIds: string[], messageId?: string): void;
2251
- disablePluginForRoom(pluginId: string, messageId?: string): void;
2252
- disablePluginForPeers(pluginId: string, peerIds: string[], messageId?: string): void;
2253
- storeInsertKeys(pluginId: string, store: string, insertKeys: {
2254
- key: string;
2255
- payload?: any;
2256
- }[], messageId?: string): void;
2257
- storeGetKeys(pluginId: string, store: string, getKeys: {
2258
- key: string;
2259
- }[], messageId?: string): void;
2260
- storeDeleteKeys(pluginId: string, store: string, deleteKeys: {
2261
- key: string;
2262
- }[], messageId?: string): void;
2263
- storeDelete(pluginId: string, store: string, messageId?: string): void;
2264
- getPluginDataOld(pluginId: string, store: string): void;
2265
- storePluginDataOld(pluginId: string, store: string, data: any): void;
2266
- on(event: number, handler: (socketMessage: PluginSocketMessage, messageId?: string) => void): void;
2267
- }
2268
- interface PluginResponse {
2269
- baseURL: string;
2270
- createdAt: string;
2271
- description: string;
2272
- id: string;
2273
- name: string;
2274
- organizationId: string;
2275
- picture: string;
2276
- private: boolean;
2277
- published: boolean;
2278
- staggered: boolean;
2279
- tags: string[];
2280
- type: string;
2281
- updatedAt: string;
2282
- }
2283
- interface PluginViews {
2284
- [viewId: string]: {
2285
- url: string;
2286
- suggestedPosition: string;
2287
- };
2288
- }
2289
- interface PluginConfig {
2290
- name: string;
2291
- pluginId: string;
2292
- version: string;
2293
- description: string;
2294
- author?: string;
2295
- repository?: string;
2296
- tags?: string[];
2297
- picture?: string;
2298
- url?: string;
2299
- files: {
2300
- include: string[];
2301
- exclude?: string[];
2302
- };
2303
- views?: PluginViews;
2304
- contentScript?: string;
2305
- permissions?: {
2306
- [key: string]: {
2307
- default: boolean;
2308
- description: string;
2309
- };
2310
- };
2311
- config?: {
2312
- [key: string]: string;
2313
- };
2314
- }
2315
- interface PluginIframeMessage {
2316
- type: number;
2317
- uuid: string;
2318
- payload?: any;
2319
- }
2320
- interface SendDataOptions {
2321
- eventName: string;
2322
- data: any;
2323
- }
2324
- interface ReactNativeWebViewEvent {
2325
- nativeEvent: {
2326
- data: string;
2327
- };
2328
- }
2329
- interface ReactNativeWebView {
2330
- src: string;
2331
- allow: string;
2332
- title: string;
2333
- props: {
2334
- onMessage: (event: ReactNativeWebViewEvent) => void;
2335
- };
2336
- postMessage: (message: string) => void;
2337
- }
2338
- declare const PluginEventKeys: {
2339
- stateUpdate: string;
2340
- ready: string;
2341
- closed: string;
2342
- toggleViewMode: string;
2343
- enabled: string;
2344
- '* ': string;
2345
- };
2346
- type _string = string & {
2347
- _?: any;
2348
- };
2349
- type PluginEvents$1 = keyof typeof PluginEventKeys | _string;
2350
- declare class Plugin extends CustomEventEmitter<PluginEvents$1> {
2351
- readonly baseURL: string;
2352
- readonly createdAt: Date;
2353
- readonly description: string;
2354
- readonly id: string;
2355
- readonly name: string;
2356
- readonly organizationId: string;
2357
- readonly picture: string;
2358
- readonly private: boolean;
2359
- readonly published: boolean;
2360
- readonly staggered: boolean;
2361
- readonly tags: string[];
2362
- readonly type: string;
2363
- readonly updatedAt: Date;
2364
- config?: PluginConfig;
2365
- active: boolean;
2366
- iframes: Map<string, {
2367
- iframe: HTMLIFrameElement | ReactNativeWebView;
2368
- listener?: (message: MessageEvent) => void;
2369
- }>;
2370
- enabledBy: string;
2371
- readonly telemetry: Telemetry;
2372
- 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);
2373
- sendIframeEvent(message: PluginIframeMessage): void;
2374
- private handleIframeMessage;
2375
- sendData(payload: SendDataOptions): void;
2376
- removePluginView(viewId?: string): void;
2377
- addPluginView(iframe: HTMLIFrameElement | ReactNativeWebView, viewId?: string): void;
2378
- private setActive;
2379
- activateForSelf(): Promise<void>;
2380
- deactivateForSelf(): void;
2381
- enable(): Promise<void>;
2382
- disable(): void;
2383
- activate(): Promise<void>;
2384
- deactivate(): Promise<void>;
2385
- }
2386
2129
  interface ResponseStatus {
2387
2130
  success: boolean;
2388
2131
  message: string;
@@ -2720,8 +2463,6 @@ type PermissionEvents = {
2720
2463
  declare class PermissionPreset extends TypedEventEmitter<PermissionEvents> {
2721
2464
  private constructor();
2722
2465
  private setupEvents;
2723
- static fromResponse(response: PresetPermissions, viewType: ViewType, context: Context<ContextState>): PermissionPreset;
2724
- static default(context: Context<ContextState>, viewType: ViewType): PermissionPreset;
2725
2466
  static init(context: Context<ContextState>, viewType: ViewType, response?: PresetPermissions): PermissionPreset;
2726
2467
  readonly mediaRoomType: string;
2727
2468
  readonly stageEnabled: Readonly<boolean>;
@@ -2739,29 +2480,19 @@ declare class PermissionPreset extends TypedEventEmitter<PermissionEvents> {
2739
2480
  readonly kickParticipant: Readonly<boolean>;
2740
2481
  readonly pinParticipant: Readonly<boolean>;
2741
2482
  readonly canRecord: Readonly<boolean>;
2742
- readonly waitingRoomType: Readonly<WaitingRoomTypes>;
2743
2483
  readonly waitingRoomBehaviour: Readonly<WaitingRoomTypes>;
2744
2484
  readonly plugins: Readonly<PresetPermissions['plugins']>;
2745
2485
  readonly polls: Readonly<PresetPermissions['polls']>;
2746
- readonly produceVideo: Readonly<MediaProductionPermissionType>;
2747
- readonly requestProduce: Readonly<boolean>;
2748
2486
  readonly canProduceVideo: Readonly<MediaProductionPermissionType>;
2749
- readonly produceScreenshare: Readonly<MediaProductionPermissionType>;
2750
2487
  readonly canProduceScreenshare: Readonly<MediaProductionPermissionType>;
2751
- readonly produceAudio: Readonly<MediaProductionPermissionType>;
2752
2488
  readonly canProduceAudio: Readonly<MediaProductionPermissionType>;
2753
2489
  readonly chatPublic: Readonly<PresetPermissions['chat']['public']>;
2754
2490
  readonly chatPrivate: Readonly<PresetPermissions['chat']['private']>;
2755
2491
  readonly connectedMeetings: Readonly<PresetPermissions['connectedMeetings']>;
2756
2492
  readonly hiddenParticipant: Readonly<boolean>;
2757
2493
  readonly showParticipantList: Readonly<boolean>;
2758
- readonly canChangeParticipantRole: Readonly<boolean>;
2759
2494
  readonly canChangeParticipantPermissions: Readonly<boolean>;
2760
- readonly canChangeTheme: Readonly<boolean>;
2761
- readonly canPresent: Readonly<boolean>;
2762
- readonly acceptPresentRequests: Readonly<boolean>;
2763
2495
  readonly canEditDisplayName: Readonly<boolean>;
2764
- readonly maxScreenShareCount: Readonly<number>;
2765
2496
  readonly isRecorder: Readonly<boolean>;
2766
2497
  readonly canSpotlight: Readonly<boolean>;
2767
2498
  readonly canLivestream: Readonly<boolean>;
@@ -2851,7 +2582,6 @@ interface IceServerInformation {
2851
2582
  }
2852
2583
  interface CachedUserDetails {
2853
2584
  peerId?: string;
2854
- pluginInformation: PluginResponse[];
2855
2585
  userDetails: UserDetailsResponseV2;
2856
2586
  roomDetails: RoomDetails;
2857
2587
  iceServers: IceServerInformation[];
@@ -2872,7 +2602,6 @@ declare class API {
2872
2602
  protected authToken: string;
2873
2603
  protected organizationId: string;
2874
2604
  protected iceServers: IceServerInformation[];
2875
- protected pluginInformation: PluginResponse[];
2876
2605
  protected userDetails: UserDetailsResponseV2;
2877
2606
  protected roomDetails: RoomDetails;
2878
2607
  readonly peerId: string;
@@ -2887,6 +2616,30 @@ declare class API {
2887
2616
  setRoomUUID(id: string): void;
2888
2617
  setOrganizationId(id: string): void;
2889
2618
  }
2619
+ type TranscriptionData = {
2620
+ id: string;
2621
+ name: string;
2622
+ peerId: string;
2623
+ userId: string;
2624
+ customParticipantId: string;
2625
+ transcript: string;
2626
+ isPartialTranscript: boolean;
2627
+ date: Date;
2628
+ };
2629
+ type AiEvents = {
2630
+ ['transcript']: (t: TranscriptionData) => void;
2631
+ ['*']: (event: string, ...args: any[]) => void;
2632
+ };
2633
+ declare class Ai extends TypedEventEmitter<AiEvents> {
2634
+ transcripts: TranscriptionData[];
2635
+ readonly telemetry: Telemetry;
2636
+ constructor(context: Context<ContextState>);
2637
+ static init(context: Context<ContextState>, transcriptionEnabled: boolean): Promise<Ai>;
2638
+ static parseTranscript(transcriptData: string, isPartialTranscript?: boolean): TranscriptionData | undefined;
2639
+ static parseTranscripts(transcriptData: string): TranscriptionData[];
2640
+ getActiveTranscript(): Promise<void>;
2641
+ onTranscript(transcript: TranscriptionData): Promise<void>;
2642
+ }
2890
2643
  type StageSocketMessage = GetStageRequestsResponse | GetStagePeersResponse | DenyStageAccessRequest | PeerStatusUpdate;
2891
2644
  declare class StageSocketHandler {
2892
2645
  constructor(socketService: SocketService);
@@ -2990,6 +2743,106 @@ declare class Polls extends TypedEventEmitter<PollsEvents> {
2990
2743
  create(question: string, options: string[], anonymous?: boolean, hideVotes?: boolean): Promise<void>;
2991
2744
  vote(id: string, index: number): Promise<void>;
2992
2745
  }
2746
+ declare class StoresSocketHandler {
2747
+ constructor(context: Context<ContextState>, socketService: SocketService);
2748
+ readonly logger: Logger;
2749
+ readonly peerId: string;
2750
+ storeInsertKeys(pluginId: string, store: string, insertKeys: {
2751
+ key: string;
2752
+ payload?: unknown;
2753
+ }[], messageId?: string): void;
2754
+ storeGetKeys(pluginId: string, store: string, getKeys: {
2755
+ key: string;
2756
+ }[], messageId?: string): void;
2757
+ storeDeleteKeys(pluginId: string, store: string, deleteKeys: {
2758
+ key: string;
2759
+ }[], messageId?: string): void;
2760
+ on(event: number, handler: (socketMessage: PluginStoreResponse, messageId?: string) => void): void;
2761
+ }
2762
+ type StoreData = {
2763
+ [type: string]: any;
2764
+ };
2765
+ declare class Store {
2766
+ name: string;
2767
+ rateLimitConfig: {
2768
+ maxInvocations: number;
2769
+ period: number;
2770
+ };
2771
+ bulkRateLimitConfig: {
2772
+ maxInvocations: number;
2773
+ period: number;
2774
+ };
2775
+ private listeners;
2776
+ constructor({ name, socketHandler, meetingId }: {
2777
+ name: string;
2778
+ socketHandler: StoresSocketHandler;
2779
+ meetingId: string;
2780
+ });
2781
+ set(key: string, value: any, sync?: boolean, emit?: boolean): Promise<void>;
2782
+ private remoteSet;
2783
+ bulkSet(data: Array<{
2784
+ key: string;
2785
+ payload: any;
2786
+ }>): Promise<void>;
2787
+ update(key: string, value: any, sync?: boolean): Promise<void>;
2788
+ delete(key: string, sync?: boolean, emit?: boolean): Promise<void>;
2789
+ bulkDelete(data: Array<{
2790
+ key: string;
2791
+ }>): Promise<void>;
2792
+ get(key: string): any;
2793
+ getAll(): StoreData;
2794
+ clear(): void;
2795
+ readonly rateLimits: {
2796
+ maxInvocations: number;
2797
+ period: number;
2798
+ };
2799
+ updateRateLimits(num: number, period: number): void;
2800
+ readonly bulkRateLimits: {
2801
+ maxInvocations: number;
2802
+ period: number;
2803
+ };
2804
+ updateBulkRateLimits(num: number, period: number): void;
2805
+ subscribe(key: string | '*', cb: (value: any) => any): void;
2806
+ unsubscribe(key: string | '*', cb?: (value: any) => any): void;
2807
+ populate(data: StoreData): void;
2808
+ }
2809
+ interface ClientPluginPermissions {
2810
+ canActivate: boolean;
2811
+ canDeactivate: boolean;
2812
+ }
2813
+ interface ClientPluginConfig {
2814
+ name: string;
2815
+ icon: string;
2816
+ id: string;
2817
+ permissions: ClientPluginPermissions;
2818
+ component: unknown;
2819
+ }
2820
+ declare const PluginEventKeys: {
2821
+ stateUpdate: string;
2822
+ ready: string;
2823
+ closed: string;
2824
+ enabled: string;
2825
+ '* ': string;
2826
+ };
2827
+ type _string = string & {
2828
+ _?: any;
2829
+ };
2830
+ type PluginEvents$1 = keyof typeof PluginEventKeys | _string;
2831
+ declare class Plugin extends CustomEventEmitter<PluginEvents$1> {
2832
+ readonly name: string;
2833
+ readonly icon: string;
2834
+ readonly id: string;
2835
+ readonly permissions: ClientPluginPermissions;
2836
+ active: boolean;
2837
+ enabledBy: string;
2838
+ readonly component: unknown;
2839
+ readonly telemetry: Telemetry;
2840
+ constructor(context: Context<ContextState>, config: ClientPluginConfig, activePluginsStore: Store, self: Self);
2841
+ activateForSelf(): void;
2842
+ deactivateForSelf(): void;
2843
+ activate(): Promise<void>;
2844
+ deactivate(): Promise<void>;
2845
+ }
2993
2846
  type PluginMapEvents = {
2994
2847
  ['pluginAdded']: (plugin: Plugin) => void;
2995
2848
  ['pluginDeleted']: (plugin: Plugin) => void;
@@ -3244,56 +3097,11 @@ declare class ClientError extends Error {
3244
3097
  code: keyof typeof ERROR_CODES;
3245
3098
  constructor(message: string, code?: keyof typeof ERROR_CODES, logger?: Logger | undefined, log?: boolean);
3246
3099
  }
3247
- type StoreData = {
3248
- [type: string]: any;
3249
- };
3250
- declare class Store {
3251
- name: string;
3252
- rateLimitConfig: {
3253
- maxInvocations: number;
3254
- period: number;
3255
- };
3256
- bulkRateLimitConfig: {
3257
- maxInvocations: number;
3258
- period: number;
3259
- };
3260
- private listeners;
3261
- constructor({ name, socketHandler, meetingId }: {
3262
- name: string;
3263
- socketHandler: PluginSocketHandler;
3264
- meetingId: string;
3265
- });
3266
- set(key: string, value: any, sync?: boolean, emit?: boolean): Promise<void>;
3267
- private remoteSet;
3268
- bulkSet(data: Array<{
3269
- key: string;
3270
- payload: any;
3271
- }>): Promise<void>;
3272
- update(key: string, value: any, sync?: boolean): Promise<void>;
3273
- delete(key: string, sync?: boolean, emit?: boolean): Promise<void>;
3274
- bulkDelete(data: Array<{
3275
- key: string;
3276
- }>): Promise<void>;
3277
- get(key: string): any;
3278
- getAll(): StoreData;
3279
- readonly rateLimits: {
3280
- maxInvocations: number;
3281
- period: number;
3282
- };
3283
- updateRateLimits(num: number, period: number): void;
3284
- readonly bulkRateLimits: {
3285
- maxInvocations: number;
3286
- period: number;
3287
- };
3288
- updateBulkRateLimits(num: number, period: number): void;
3289
- subscribe(key: string | '*', cb: (value: any) => any): void;
3290
- unsubscribe(key: string | '*', cb?: (value: any) => any): void;
3291
- populate(data: StoreData): void;
3292
- }
3293
3100
  declare class StoreManager {
3294
3101
  stores: Map<String, Store>;
3295
- constructor(context: Context<ContextState>, handler: PluginSocketHandler);
3296
- create(name: string): Promise<Store>;
3102
+ constructor(context: Context<ContextState>, handler: StoresSocketHandler);
3103
+ create(name: string, _internal?: boolean): Promise<Store>;
3104
+ refresh(name: string): Promise<Store>;
3297
3105
  }
3298
3106
  interface SocketServicePayload {
3299
3107
  payload: any;
@@ -3365,9 +3173,9 @@ declare class ConnectedMeetings extends TypedEventEmitter<ConnectedMeetingsEvent
3365
3173
  constructor(context: Context<ContextState>);
3366
3174
  meetings: ConnectedMeeting[];
3367
3175
  parentMeeting: ConnectedMeeting;
3368
- readonly supportsConnectedMeetings: boolean;
3369
3176
  readonly isActive: boolean;
3370
- private validateConnectedMeetingsAction;
3177
+ private validateAlterAction;
3178
+ private validateMoveAction;
3371
3179
  getConnectedMeetings(): Promise<{
3372
3180
  parentMeeting: ConnectedMeeting;
3373
3181
  meetings: ConnectedMeeting[];
@@ -3535,8 +3343,6 @@ declare class Client {
3535
3343
  readonly stores: Readonly<StoreManager>;
3536
3344
  readonly audio: AudioPlaybackManager;
3537
3345
  readonly __internals__: Readonly<Internals>;
3538
- joinRoom(): Promise<void>;
3539
- leaveRoom(state?: LeaveRoomState): Promise<void>;
3540
3346
  }
3541
3347
  type ClientType = {
3542
3348
  callStats?: unknown;
@@ -3888,9 +3694,6 @@ declare class Participants extends TypedEventEmitter<ParticipantsEvents> {
3888
3694
  setPage(page: number): Promise<void>;
3889
3695
  disableAllAudio(allowUnmute: boolean): Promise<void>;
3890
3696
  disableAllVideo(): Promise<void>;
3891
- disableAudio(participantId: string): Promise<void>;
3892
- disableVideo(participantId: string): Promise<void>;
3893
- kick(participantId: string): Promise<void>;
3894
3697
  kickAll(): Promise<void>;
3895
3698
  broadcastMessage(type: Exclude<string, 'spotlight'>, payload: BroadcastMessagePayload, target?: BroadcastMessageTarget): Promise<void>;
3896
3699
  getAllJoinedPeers(searchQuery: string, limit: number, offset: number): Promise<{
@@ -3934,10 +3737,6 @@ declare class APIClient extends API {
3934
3737
  telemetry: Telemetry;
3935
3738
  constructor(context: Context<ContextState>, options?: APIOptions);
3936
3739
  getICEServers(): Promise<any>;
3937
- getPlugins(): Promise<any[]>;
3938
- getPluginDetails(pluginId: string): Promise<PluginResponse>;
3939
- getPluginConfig(pluginBaseUrl: string): Promise<PluginConfig>;
3940
- authorizePlugin(pluginId: string): Promise<string>;
3941
3740
  getPresignedUrls(filename: string): Promise<{
3942
3741
  getLocation: any;
3943
3742
  putLocation: any;
@@ -4078,19 +3877,11 @@ declare class Chat extends TypedEventEmitter<ChatEvents> {
4078
3877
  editFileMessage(messageId: string, file: File | ReactNativeFile): Promise<void>;
4079
3878
  editMessage(messageId: string, message: MessagePayload): Promise<void>;
4080
3879
  deleteMessage(messageId: string): Promise<void>;
4081
- getMessagesByUser(userId: string): Message[];
4082
- getMessagesByType(type: keyof typeof MessageType): Message[];
4083
3880
  pin(id: string): Promise<void>;
4084
3881
  unpin(id: string): Promise<void>;
4085
3882
  fetchPublicMessages({ timestamp, limit, direction, }: FetchMessageOptions): Promise<Message[]>;
4086
3883
  fetchPrivateMessages({ timestamp, limit, direction, userId, }: FetchPrivateMessagesOptions): Promise<Message[]>;
4087
3884
  fetchPinnedMessages({ timestamp, limit, direction, }: FetchMessageOptions): Promise<Message[]>;
4088
- getMessages(timeStamp: number, size: number, reversed: boolean, offset?: number): Promise<{
4089
- messages: Message[];
4090
- next: boolean;
4091
- }>;
4092
- searchMessages(query: string, filters: unknown): Promise<unknown[]>;
4093
- readonly pinned: Message[];
4094
3885
  }
4095
3886
  declare const enum PRODUCERS_TYPE {
4096
3887
  WEBCAM = "webcam",
@@ -4117,8 +3908,10 @@ declare class MediaNodeClient {
4117
3908
  readonly logger: Logger;
4118
3909
  constructor(context: Context<ContextState>, options: MediaNodeClientOptions);
4119
3910
  mediaJoined: boolean;
4120
- reset(): void;
4121
- joinRoom(displayName: string, roomUuid: string, forceFullReset?: boolean, rejoining?: boolean, permissions?: MediaPermissions): Promise<{
3911
+ reset({ resetTransportQueue }: {
3912
+ resetTransportQueue: boolean;
3913
+ }): void;
3914
+ joinRoom(displayName: string, roomUuid: string, rejoining?: boolean, permissions?: MediaPermissions): Promise<{
4122
3915
  roomJoined: boolean;
4123
3916
  error?: Error;
4124
3917
  }>;
@@ -4188,14 +3981,6 @@ interface Modules {
4188
3981
  devTools?: {
4189
3982
  logs: boolean;
4190
3983
  logLevel?: LogLevel[number];
4191
- plugins?: {
4192
- id: string;
4193
- name: string;
4194
- port: number;
4195
- picture?: string;
4196
- description?: string;
4197
- staggered?: boolean;
4198
- }[];
4199
3984
  };
4200
3985
  experimentalAudioPlayback?: boolean;
4201
3986
  }
@@ -4211,6 +3996,7 @@ interface DefaultOptions {
4211
3996
  screenshare?: ScreenshareQualityConstraints;
4212
3997
  };
4213
3998
  isNonPreferredDevice?: (device: MediaDeviceInfo) => boolean;
3999
+ plugins?: ClientPluginConfig[];
4214
4000
  }
4215
4001
  interface RoomDetails {
4216
4002
  meetingTitle: string;
@@ -4435,7 +4221,6 @@ interface UserDetailsResponse {
4435
4221
  picture?: string;
4436
4222
  loggedIn?: boolean;
4437
4223
  scope?: string[];
4438
- clientSpecificId?: string;
4439
4224
  customParticipantId?: string;
4440
4225
  organizationId?: string;
4441
4226
  }
@@ -4521,7 +4306,6 @@ interface IParticipant {
4521
4306
  flags: {
4522
4307
  [key: string]: string | boolean;
4523
4308
  };
4524
- clientSpecificId?: string;
4525
4309
  customParticipantId?: string;
4526
4310
  stageStatus?: StageStatus;
4527
4311
  audioMuted: boolean;
@@ -4541,7 +4325,6 @@ declare class Participant extends TypedEventEmitter<ParticipantEvents> {
4541
4325
  picture: string;
4542
4326
  isHost: boolean;
4543
4327
  customParticipantId?: string;
4544
- readonly clientSpecificId: string;
4545
4328
  flags: {
4546
4329
  [key: string]: string | boolean;
4547
4330
  };