@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';
@@ -1534,70 +1534,6 @@ interface DeleteChatMessageResponse {
1534
1534
  */
1535
1535
  declare const DeleteChatMessageResponse: DeleteChatMessageResponse$Type;
1536
1536
 
1537
- declare class EnablePluginResponse$Type extends MessageType$1<EnablePluginResponse> {
1538
- constructor();
1539
- }
1540
- /**
1541
- * Response sent whenever a plugin is enabled.
1542
- * Applicable for all requests that enable a plugin.
1543
- *
1544
- * @generated from protobuf message socket.plugin.EnablePluginResponse
1545
- */
1546
- interface EnablePluginResponse {
1547
- /**
1548
- * @generated from protobuf field: string plugin_id = 1;
1549
- */
1550
- pluginId: string;
1551
- /**
1552
- * @generated from protobuf field: string enabled_by = 2;
1553
- */
1554
- enabledBy: string;
1555
- }
1556
- /**
1557
- * @generated MessageType for protobuf message socket.plugin.EnablePluginResponse
1558
- */
1559
- declare const EnablePluginResponse: EnablePluginResponse$Type;
1560
- declare class EnablePluginsResponse$Type extends MessageType$1<EnablePluginsResponse> {
1561
- constructor();
1562
- }
1563
- /**
1564
- * Response sent when all enabled plugins are requested.
1565
- *
1566
- * @generated from protobuf message socket.plugin.EnablePluginsResponse
1567
- */
1568
- interface EnablePluginsResponse {
1569
- /**
1570
- * @generated from protobuf field: repeated socket.plugin.EnablePluginResponse plugins = 1;
1571
- */
1572
- plugins: EnablePluginResponse[];
1573
- }
1574
- /**
1575
- * @generated MessageType for protobuf message socket.plugin.EnablePluginsResponse
1576
- */
1577
- declare const EnablePluginsResponse: EnablePluginsResponse$Type;
1578
- declare class DisablePluginResponse$Type extends MessageType$1<DisablePluginResponse> {
1579
- constructor();
1580
- }
1581
- /**
1582
- * Response sent whenever a plugin is disabled.
1583
- * Applicable for all requests that disable a plugin.
1584
- *
1585
- * @generated from protobuf message socket.plugin.DisablePluginResponse
1586
- */
1587
- interface DisablePluginResponse {
1588
- /**
1589
- * @generated from protobuf field: string plugin_id = 1;
1590
- */
1591
- pluginId: string;
1592
- /**
1593
- * @generated from protobuf field: string disabled_by = 2;
1594
- */
1595
- disabledBy: string;
1596
- }
1597
- /**
1598
- * @generated MessageType for protobuf message socket.plugin.DisablePluginResponse
1599
- */
1600
- declare const DisablePluginResponse: DisablePluginResponse$Type;
1601
1537
  declare class PluginStoreItem$Type extends MessageType$1<PluginStoreItem> {
1602
1538
  constructor();
1603
1539
  }
@@ -1653,28 +1589,6 @@ interface PluginStoreResponse {
1653
1589
  * @generated MessageType for protobuf message socket.plugin.PluginStoreResponse
1654
1590
  */
1655
1591
  declare const PluginStoreResponse: PluginStoreResponse$Type;
1656
- declare class PluginEventResponse$Type extends MessageType$1<PluginEventResponse> {
1657
- constructor();
1658
- }
1659
- /**
1660
- * Response sent for custom plugin event.
1661
- *
1662
- * @generated from protobuf message socket.plugin.PluginEventResponse
1663
- */
1664
- interface PluginEventResponse {
1665
- /**
1666
- * @generated from protobuf field: string plugin_id = 1;
1667
- */
1668
- pluginId: string;
1669
- /**
1670
- * @generated from protobuf field: bytes plugin_data = 2;
1671
- */
1672
- pluginData: Uint8Array;
1673
- }
1674
- /**
1675
- * @generated MessageType for protobuf message socket.plugin.PluginEventResponse
1676
- */
1677
- declare const PluginEventResponse: PluginEventResponse$Type;
1678
1592
 
1679
1593
  declare class GetStagePeersResponse$Type extends MessageType$1<GetStagePeersResponse> {
1680
1594
  constructor();
@@ -2117,31 +2031,6 @@ declare class RoomSocketHandler {
2117
2031
  getUserPermissions(userId: string): Promise<Pick<PresetTypeV2['permissions'], 'chat' | 'polls' | 'plugins'>>;
2118
2032
  }
2119
2033
 
2120
- type TranscriptionData = {
2121
- id: string;
2122
- name: string;
2123
- peerId: string;
2124
- userId: string;
2125
- customParticipantId: string;
2126
- transcript: string;
2127
- isPartialTranscript: boolean;
2128
- date: Date;
2129
- };
2130
- type AiEvents = {
2131
- ['transcript']: (t: TranscriptionData) => void;
2132
- ['*']: (event: string, ...args: any[]) => void;
2133
- };
2134
- declare class Ai extends TypedEventEmitter<AiEvents> {
2135
- transcripts: TranscriptionData[];
2136
- get telemetry(): Telemetry;
2137
- constructor(context: Context<ContextState>);
2138
- static init(context: Context<ContextState>, transcriptionEnabled: boolean): Promise<Ai>;
2139
- static parseTranscript(transcriptData: string, isPartialTranscript?: boolean): TranscriptionData | undefined;
2140
- static parseTranscripts(transcriptData: string): TranscriptionData[];
2141
- getActiveTranscript(): Promise<void>;
2142
- onTranscript(transcript: TranscriptionData): Promise<void>;
2143
- }
2144
-
2145
2034
  type ActiveTabType = 'screenshare' | 'plugin';
2146
2035
  interface ActiveTab {
2147
2036
  type: ActiveTabType;
@@ -2165,7 +2054,6 @@ type MetaEvents = {
2165
2054
  ['meetingStartTimeUpdate']: (payload: {
2166
2055
  meetingStartedTimestamp: Date;
2167
2056
  }) => void;
2168
- ['transcript']: (t: TranscriptionData) => void;
2169
2057
  ['activeTabUpdate']: (tab: ActiveTab) => void;
2170
2058
  ['selfTabUpdate']: (tab: ActiveTab) => void;
2171
2059
  ['broadcastTabChangesUpdate']: (broadcastTabChanges: boolean) => void;
@@ -2243,154 +2131,6 @@ declare class ClientMap<T extends (EventMap & WildCardEvent<T>), U extends {
2243
2131
  toArray(): U[];
2244
2132
  }
2245
2133
 
2246
- type PluginSocketMessage = DisablePluginResponse | EnablePluginResponse | PluginEventResponse | PluginStoreResponse | SendChatMessageToPeersResponse | SendChatMessageToRoomResponse;
2247
- declare class PluginSocketHandler {
2248
- constructor(context: Context<ContextState>, socketService: SocketService);
2249
- get logger(): Logger;
2250
- addPlugin(pluginId: string, staggered: boolean): void;
2251
- removePlugin(pluginId: string): void;
2252
- getActivePlugins(): Promise<EnablePluginsResponse>;
2253
- customPluginEventToRoom(pluginId: string, data: any, messageId?: string): void;
2254
- customPluginEventToPeers(pluginId: string, peerIds: string[], data: any, messageId?: string): void;
2255
- enablePluginForRoom(pluginId: string, messageId?: string): void;
2256
- enablePluginForPeers(pluginId: string, peerIds: string[], messageId?: string): void;
2257
- disablePluginForRoom(pluginId: string, messageId?: string): void;
2258
- disablePluginForPeers(pluginId: string, peerIds: string[], messageId?: string): void;
2259
- storeInsertKeys(pluginId: string, store: string, insertKeys: {
2260
- key: string;
2261
- payload?: any;
2262
- }[], messageId?: string): void;
2263
- storeGetKeys(pluginId: string, store: string, getKeys: {
2264
- key: string;
2265
- }[], messageId?: string): void;
2266
- storeDeleteKeys(pluginId: string, store: string, deleteKeys: {
2267
- key: string;
2268
- }[], messageId?: string): void;
2269
- storeDelete(pluginId: string, store: string, messageId?: string): void;
2270
- getPluginDataOld(pluginId: string, store: string): void;
2271
- storePluginDataOld(pluginId: string, store: string, data: any): void;
2272
- on(event: number, handler: (socketMessage: PluginSocketMessage, messageId?: string) => void): void;
2273
- }
2274
-
2275
- interface PluginResponse {
2276
- baseURL: string;
2277
- createdAt: string;
2278
- description: string;
2279
- id: string;
2280
- name: string;
2281
- organizationId: string;
2282
- picture: string;
2283
- private: boolean;
2284
- published: boolean;
2285
- staggered: boolean;
2286
- tags: string[];
2287
- type: string;
2288
- updatedAt: string;
2289
- }
2290
- interface PluginViews {
2291
- [viewId: string]: {
2292
- url: string;
2293
- suggestedPosition: string;
2294
- };
2295
- }
2296
- interface PluginConfig {
2297
- name: string;
2298
- pluginId: string;
2299
- version: string;
2300
- description: string;
2301
- author?: string;
2302
- repository?: string;
2303
- tags?: string[];
2304
- picture?: string;
2305
- url?: string;
2306
- files: {
2307
- include: string[];
2308
- exclude?: string[];
2309
- };
2310
- views?: PluginViews;
2311
- contentScript?: string;
2312
- permissions?: {
2313
- [key: string]: {
2314
- default: boolean;
2315
- description: string;
2316
- };
2317
- };
2318
- config?: {
2319
- [key: string]: string;
2320
- };
2321
- }
2322
- interface PluginIframeMessage {
2323
- type: number;
2324
- uuid: string;
2325
- payload?: any;
2326
- }
2327
- interface SendDataOptions {
2328
- eventName: string;
2329
- data: any;
2330
- }
2331
- interface ReactNativeWebViewEvent {
2332
- nativeEvent: {
2333
- data: string;
2334
- };
2335
- }
2336
- interface ReactNativeWebView {
2337
- src: string;
2338
- allow: string;
2339
- title: string;
2340
- props: {
2341
- onMessage: (event: ReactNativeWebViewEvent) => void;
2342
- };
2343
- postMessage: (message: string) => void;
2344
- }
2345
- declare const PluginEventKeys: {
2346
- stateUpdate: string;
2347
- ready: string;
2348
- closed: string;
2349
- toggleViewMode: string;
2350
- enabled: string;
2351
- '* ': string;
2352
- };
2353
- type _string = string & {
2354
- _?: any;
2355
- };
2356
- type PluginEvents$1 = keyof typeof PluginEventKeys | _string;
2357
- declare class Plugin extends CustomEventEmitter<PluginEvents$1> {
2358
- readonly baseURL: string;
2359
- readonly createdAt: Date;
2360
- readonly description: string;
2361
- readonly id: string;
2362
- readonly name: string;
2363
- readonly organizationId: string;
2364
- readonly picture: string;
2365
- readonly private: boolean;
2366
- readonly published: boolean;
2367
- readonly staggered: boolean;
2368
- readonly tags: string[];
2369
- readonly type: string;
2370
- readonly updatedAt: Date;
2371
- config?: PluginConfig;
2372
- active: boolean;
2373
- iframes: Map<string, {
2374
- iframe: HTMLIFrameElement | ReactNativeWebView;
2375
- listener?: (message: MessageEvent) => void;
2376
- }>;
2377
- enabledBy: string;
2378
- get telemetry(): Telemetry;
2379
- 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);
2380
- sendIframeEvent(message: PluginIframeMessage): void;
2381
- private handleIframeMessage;
2382
- sendData(payload: SendDataOptions): void;
2383
- removePluginView(viewId?: string): void;
2384
- addPluginView(iframe: HTMLIFrameElement | ReactNativeWebView, viewId?: string): void;
2385
- private setActive;
2386
- activateForSelf(): Promise<void>;
2387
- deactivateForSelf(): void;
2388
- enable(): Promise<void>;
2389
- disable(): void;
2390
- activate(): Promise<void>;
2391
- deactivate(): Promise<void>;
2392
- }
2393
-
2394
2134
  interface ResponseStatus {
2395
2135
  success: boolean;
2396
2136
  message: string;
@@ -2736,8 +2476,6 @@ type PermissionEvents = {
2736
2476
  declare class PermissionPreset extends TypedEventEmitter<PermissionEvents> {
2737
2477
  private constructor();
2738
2478
  private setupEvents;
2739
- static fromResponse(response: PresetPermissions, viewType: ViewType, context: Context<ContextState>): PermissionPreset;
2740
- static default(context: Context<ContextState>, viewType: ViewType): PermissionPreset;
2741
2479
  static init(context: Context<ContextState>, viewType: ViewType, response?: PresetPermissions): PermissionPreset;
2742
2480
  get mediaRoomType(): string;
2743
2481
  get stageEnabled(): Readonly<boolean>;
@@ -2755,29 +2493,19 @@ declare class PermissionPreset extends TypedEventEmitter<PermissionEvents> {
2755
2493
  get kickParticipant(): Readonly<boolean>;
2756
2494
  get pinParticipant(): Readonly<boolean>;
2757
2495
  get canRecord(): Readonly<boolean>;
2758
- get waitingRoomType(): Readonly<WaitingRoomTypes>;
2759
2496
  get waitingRoomBehaviour(): Readonly<WaitingRoomTypes>;
2760
2497
  get plugins(): Readonly<PresetPermissions['plugins']>;
2761
2498
  get polls(): Readonly<PresetPermissions['polls']>;
2762
- get produceVideo(): Readonly<MediaProductionPermissionType>;
2763
- get requestProduce(): Readonly<boolean>;
2764
2499
  get canProduceVideo(): Readonly<MediaProductionPermissionType>;
2765
- get produceScreenshare(): Readonly<MediaProductionPermissionType>;
2766
2500
  get canProduceScreenshare(): Readonly<MediaProductionPermissionType>;
2767
- get produceAudio(): Readonly<MediaProductionPermissionType>;
2768
2501
  get canProduceAudio(): Readonly<MediaProductionPermissionType>;
2769
2502
  get chatPublic(): Readonly<PresetPermissions['chat']['public']>;
2770
2503
  get chatPrivate(): Readonly<PresetPermissions['chat']['private']>;
2771
2504
  get connectedMeetings(): Readonly<PresetPermissions['connectedMeetings']>;
2772
2505
  get hiddenParticipant(): Readonly<boolean>;
2773
2506
  get showParticipantList(): Readonly<boolean>;
2774
- get canChangeParticipantRole(): Readonly<boolean>;
2775
2507
  get canChangeParticipantPermissions(): Readonly<boolean>;
2776
- get canChangeTheme(): Readonly<boolean>;
2777
- get canPresent(): Readonly<boolean>;
2778
- get acceptPresentRequests(): Readonly<boolean>;
2779
2508
  get canEditDisplayName(): Readonly<boolean>;
2780
- get maxScreenShareCount(): Readonly<number>;
2781
2509
  get isRecorder(): Readonly<boolean>;
2782
2510
  get canSpotlight(): Readonly<boolean>;
2783
2511
  get canLivestream(): Readonly<boolean>;
@@ -2870,7 +2598,6 @@ interface IceServerInformation {
2870
2598
  }
2871
2599
  interface CachedUserDetails {
2872
2600
  peerId?: string;
2873
- pluginInformation: PluginResponse[];
2874
2601
  userDetails: UserDetailsResponseV2;
2875
2602
  roomDetails: RoomDetails;
2876
2603
  iceServers: IceServerInformation[];
@@ -2891,7 +2618,6 @@ declare class API {
2891
2618
  protected authToken: string;
2892
2619
  protected organizationId: string;
2893
2620
  protected iceServers: IceServerInformation[];
2894
- protected pluginInformation: PluginResponse[];
2895
2621
  protected userDetails: UserDetailsResponseV2;
2896
2622
  protected roomDetails: RoomDetails;
2897
2623
  get peerId(): string;
@@ -2907,6 +2633,31 @@ declare class API {
2907
2633
  setOrganizationId(id: string): void;
2908
2634
  }
2909
2635
 
2636
+ type TranscriptionData = {
2637
+ id: string;
2638
+ name: string;
2639
+ peerId: string;
2640
+ userId: string;
2641
+ customParticipantId: string;
2642
+ transcript: string;
2643
+ isPartialTranscript: boolean;
2644
+ date: Date;
2645
+ };
2646
+ type AiEvents = {
2647
+ ['transcript']: (t: TranscriptionData) => void;
2648
+ ['*']: (event: string, ...args: any[]) => void;
2649
+ };
2650
+ declare class Ai extends TypedEventEmitter<AiEvents> {
2651
+ transcripts: TranscriptionData[];
2652
+ get telemetry(): Telemetry;
2653
+ constructor(context: Context<ContextState>);
2654
+ static init(context: Context<ContextState>, transcriptionEnabled: boolean): Promise<Ai>;
2655
+ static parseTranscript(transcriptData: string, isPartialTranscript?: boolean): TranscriptionData | undefined;
2656
+ static parseTranscripts(transcriptData: string): TranscriptionData[];
2657
+ getActiveTranscript(): Promise<void>;
2658
+ onTranscript(transcript: TranscriptionData): Promise<void>;
2659
+ }
2660
+
2910
2661
  type StageSocketMessage = GetStageRequestsResponse | GetStagePeersResponse | DenyStageAccessRequest | PeerStatusUpdate;
2911
2662
  declare class StageSocketHandler {
2912
2663
  constructor(socketService: SocketService);
@@ -3014,6 +2765,109 @@ declare class Polls extends TypedEventEmitter<PollsEvents> {
3014
2765
  vote(id: string, index: number): Promise<void>;
3015
2766
  }
3016
2767
 
2768
+ declare class StoresSocketHandler {
2769
+ constructor(context: Context<ContextState>, socketService: SocketService);
2770
+ get logger(): Logger;
2771
+ get peerId(): string;
2772
+ storeInsertKeys(pluginId: string, store: string, insertKeys: {
2773
+ key: string;
2774
+ payload?: unknown;
2775
+ }[], messageId?: string): void;
2776
+ storeGetKeys(pluginId: string, store: string, getKeys: {
2777
+ key: string;
2778
+ }[], messageId?: string): void;
2779
+ storeDeleteKeys(pluginId: string, store: string, deleteKeys: {
2780
+ key: string;
2781
+ }[], messageId?: string): void;
2782
+ on(event: number, handler: (socketMessage: PluginStoreResponse, messageId?: string) => void): void;
2783
+ }
2784
+
2785
+ type StoreData = {
2786
+ [type: string]: any;
2787
+ };
2788
+ declare class Store {
2789
+ name: string;
2790
+ rateLimitConfig: {
2791
+ maxInvocations: number;
2792
+ period: number;
2793
+ };
2794
+ bulkRateLimitConfig: {
2795
+ maxInvocations: number;
2796
+ period: number;
2797
+ };
2798
+ private listeners;
2799
+ constructor({ name, socketHandler, meetingId }: {
2800
+ name: string;
2801
+ socketHandler: StoresSocketHandler;
2802
+ meetingId: string;
2803
+ });
2804
+ set(key: string, value: any, sync?: boolean, emit?: boolean): Promise<void>;
2805
+ private remoteSet;
2806
+ bulkSet(data: Array<{
2807
+ key: string;
2808
+ payload: any;
2809
+ }>): Promise<void>;
2810
+ update(key: string, value: any, sync?: boolean): Promise<void>;
2811
+ delete(key: string, sync?: boolean, emit?: boolean): Promise<void>;
2812
+ bulkDelete(data: Array<{
2813
+ key: string;
2814
+ }>): Promise<void>;
2815
+ get(key: string): any;
2816
+ getAll(): StoreData;
2817
+ clear(): void;
2818
+ get rateLimits(): {
2819
+ maxInvocations: number;
2820
+ period: number;
2821
+ };
2822
+ updateRateLimits(num: number, period: number): void;
2823
+ get bulkRateLimits(): {
2824
+ maxInvocations: number;
2825
+ period: number;
2826
+ };
2827
+ updateBulkRateLimits(num: number, period: number): void;
2828
+ subscribe(key: string | '*', cb: (value: any) => any): void;
2829
+ unsubscribe(key: string | '*', cb?: (value: any) => any): void;
2830
+ populate(data: StoreData): void;
2831
+ }
2832
+
2833
+ interface ClientPluginPermissions {
2834
+ canActivate: boolean;
2835
+ canDeactivate: boolean;
2836
+ }
2837
+ interface ClientPluginConfig {
2838
+ name: string;
2839
+ icon: string;
2840
+ id: string;
2841
+ permissions: ClientPluginPermissions;
2842
+ component: unknown;
2843
+ }
2844
+ declare const PluginEventKeys: {
2845
+ stateUpdate: string;
2846
+ ready: string;
2847
+ closed: string;
2848
+ enabled: string;
2849
+ '* ': string;
2850
+ };
2851
+ type _string = string & {
2852
+ _?: any;
2853
+ };
2854
+ type PluginEvents$1 = keyof typeof PluginEventKeys | _string;
2855
+ declare class Plugin extends CustomEventEmitter<PluginEvents$1> {
2856
+ readonly name: string;
2857
+ readonly icon: string;
2858
+ readonly id: string;
2859
+ readonly permissions: ClientPluginPermissions;
2860
+ active: boolean;
2861
+ enabledBy: string;
2862
+ get component(): unknown;
2863
+ get telemetry(): Telemetry;
2864
+ constructor(context: Context<ContextState>, config: ClientPluginConfig, activePluginsStore: Store, self: Self);
2865
+ activateForSelf(): void;
2866
+ deactivateForSelf(): void;
2867
+ activate(): Promise<void>;
2868
+ deactivate(): Promise<void>;
2869
+ }
2870
+
3017
2871
  type PluginMapEvents = {
3018
2872
  ['pluginAdded']: (plugin: Plugin) => void;
3019
2873
  ['pluginDeleted']: (plugin: Plugin) => void;
@@ -3277,57 +3131,11 @@ declare class ClientError extends Error {
3277
3131
  constructor(message: string, code?: keyof typeof ERROR_CODES, logger?: Logger | undefined, log?: boolean);
3278
3132
  }
3279
3133
 
3280
- type StoreData = {
3281
- [type: string]: any;
3282
- };
3283
- declare class Store {
3284
- name: string;
3285
- rateLimitConfig: {
3286
- maxInvocations: number;
3287
- period: number;
3288
- };
3289
- bulkRateLimitConfig: {
3290
- maxInvocations: number;
3291
- period: number;
3292
- };
3293
- private listeners;
3294
- constructor({ name, socketHandler, meetingId }: {
3295
- name: string;
3296
- socketHandler: PluginSocketHandler;
3297
- meetingId: string;
3298
- });
3299
- set(key: string, value: any, sync?: boolean, emit?: boolean): Promise<void>;
3300
- private remoteSet;
3301
- bulkSet(data: Array<{
3302
- key: string;
3303
- payload: any;
3304
- }>): Promise<void>;
3305
- update(key: string, value: any, sync?: boolean): Promise<void>;
3306
- delete(key: string, sync?: boolean, emit?: boolean): Promise<void>;
3307
- bulkDelete(data: Array<{
3308
- key: string;
3309
- }>): Promise<void>;
3310
- get(key: string): any;
3311
- getAll(): StoreData;
3312
- get rateLimits(): {
3313
- maxInvocations: number;
3314
- period: number;
3315
- };
3316
- updateRateLimits(num: number, period: number): void;
3317
- get bulkRateLimits(): {
3318
- maxInvocations: number;
3319
- period: number;
3320
- };
3321
- updateBulkRateLimits(num: number, period: number): void;
3322
- subscribe(key: string | '*', cb: (value: any) => any): void;
3323
- unsubscribe(key: string | '*', cb?: (value: any) => any): void;
3324
- populate(data: StoreData): void;
3325
- }
3326
-
3327
3134
  declare class StoreManager {
3328
3135
  stores: Map<String, Store>;
3329
- constructor(context: Context<ContextState>, handler: PluginSocketHandler);
3330
- create(name: string): Promise<Store>;
3136
+ constructor(context: Context<ContextState>, handler: StoresSocketHandler);
3137
+ create(name: string, _internal?: boolean): Promise<Store>;
3138
+ refresh(name: string): Promise<Store>;
3331
3139
  }
3332
3140
 
3333
3141
  interface SocketServicePayload {
@@ -3401,9 +3209,9 @@ declare class ConnectedMeetings extends TypedEventEmitter<ConnectedMeetingsEvent
3401
3209
  constructor(context: Context<ContextState>);
3402
3210
  meetings: ConnectedMeeting[];
3403
3211
  parentMeeting: ConnectedMeeting;
3404
- get supportsConnectedMeetings(): boolean;
3405
3212
  get isActive(): boolean;
3406
- private validateConnectedMeetingsAction;
3213
+ private validateAlterAction;
3214
+ private validateMoveAction;
3407
3215
  getConnectedMeetings(): Promise<{
3408
3216
  parentMeeting: ConnectedMeeting;
3409
3217
  meetings: ConnectedMeeting[];
@@ -3575,8 +3383,6 @@ declare class Client {
3575
3383
  get stores(): Readonly<StoreManager>;
3576
3384
  get audio(): AudioPlaybackManager;
3577
3385
  get __internals__(): Readonly<Internals>;
3578
- joinRoom(): Promise<void>;
3579
- leaveRoom(state?: LeaveRoomState): Promise<void>;
3580
3386
  }
3581
3387
 
3582
3388
  type ClientType = {
@@ -3915,9 +3721,6 @@ declare class Participants extends TypedEventEmitter<ParticipantsEvents> {
3915
3721
  setPage(page: number): Promise<void>;
3916
3722
  disableAllAudio(allowUnmute: boolean): Promise<void>;
3917
3723
  disableAllVideo(): Promise<void>;
3918
- disableAudio(participantId: string): Promise<void>;
3919
- disableVideo(participantId: string): Promise<void>;
3920
- kick(participantId: string): Promise<void>;
3921
3724
  kickAll(): Promise<void>;
3922
3725
  broadcastMessage(type: Exclude<string, 'spotlight'>, payload: BroadcastMessagePayload, target?: BroadcastMessageTarget): Promise<void>;
3923
3726
  getAllJoinedPeers(searchQuery: string, limit: number, offset: number): Promise<{
@@ -3962,10 +3765,6 @@ declare class APIClient extends API {
3962
3765
  telemetry: Telemetry;
3963
3766
  constructor(context: Context<ContextState>, options?: APIOptions);
3964
3767
  getICEServers(): Promise<any>;
3965
- getPlugins(): Promise<any[]>;
3966
- getPluginDetails(pluginId: string): Promise<PluginResponse>;
3967
- getPluginConfig(pluginBaseUrl: string): Promise<PluginConfig>;
3968
- authorizePlugin(pluginId: string): Promise<string>;
3969
3768
  getPresignedUrls(filename: string): Promise<{
3970
3769
  getLocation: any;
3971
3770
  putLocation: any;
@@ -4107,19 +3906,11 @@ declare class Chat extends TypedEventEmitter<ChatEvents> {
4107
3906
  editFileMessage(messageId: string, file: File | ReactNativeFile): Promise<void>;
4108
3907
  editMessage(messageId: string, message: MessagePayload): Promise<void>;
4109
3908
  deleteMessage(messageId: string): Promise<void>;
4110
- getMessagesByUser(userId: string): Message[];
4111
- getMessagesByType(type: keyof typeof MessageType): Message[];
4112
3909
  pin(id: string): Promise<void>;
4113
3910
  unpin(id: string): Promise<void>;
4114
3911
  fetchPublicMessages({ timestamp, limit, direction, }: FetchMessageOptions): Promise<Message[]>;
4115
3912
  fetchPrivateMessages({ timestamp, limit, direction, userId, }: FetchPrivateMessagesOptions): Promise<Message[]>;
4116
3913
  fetchPinnedMessages({ timestamp, limit, direction, }: FetchMessageOptions): Promise<Message[]>;
4117
- getMessages(timeStamp: number, size: number, reversed: boolean, offset?: number): Promise<{
4118
- messages: Message[];
4119
- next: boolean;
4120
- }>;
4121
- searchMessages(query: string, filters: unknown): Promise<unknown[]>;
4122
- get pinned(): Message[];
4123
3914
  }
4124
3915
 
4125
3916
  declare const enum PRODUCERS_TYPE {
@@ -4149,8 +3940,10 @@ declare class MediaNodeClient {
4149
3940
  constructor(context: Context<ContextState>, options: MediaNodeClientOptions);
4150
3941
  get mediaJoined(): boolean;
4151
3942
  set mediaJoined(joined: boolean);
4152
- reset(): void;
4153
- joinRoom(displayName: string, roomUuid: string, forceFullReset?: boolean, rejoining?: boolean, permissions?: MediaPermissions): Promise<{
3943
+ reset({ resetTransportQueue }: {
3944
+ resetTransportQueue: boolean;
3945
+ }): void;
3946
+ joinRoom(displayName: string, roomUuid: string, rejoining?: boolean, permissions?: MediaPermissions): Promise<{
4154
3947
  roomJoined: boolean;
4155
3948
  error?: Error;
4156
3949
  }>;
@@ -4221,14 +4014,6 @@ interface Modules {
4221
4014
  devTools?: {
4222
4015
  logs: boolean;
4223
4016
  logLevel?: LogLevel[number];
4224
- plugins?: {
4225
- id: string;
4226
- name: string;
4227
- port: number;
4228
- picture?: string;
4229
- description?: string;
4230
- staggered?: boolean;
4231
- }[];
4232
4017
  };
4233
4018
  experimentalAudioPlayback?: boolean;
4234
4019
  }
@@ -4244,6 +4029,7 @@ interface DefaultOptions {
4244
4029
  screenshare?: ScreenshareQualityConstraints;
4245
4030
  };
4246
4031
  isNonPreferredDevice?: (device: MediaDeviceInfo) => boolean;
4032
+ plugins?: ClientPluginConfig[];
4247
4033
  }
4248
4034
  interface RoomDetails {
4249
4035
  meetingTitle: string;
@@ -4476,7 +4262,6 @@ interface UserDetailsResponse {
4476
4262
  picture?: string;
4477
4263
  loggedIn?: boolean;
4478
4264
  scope?: string[];
4479
- clientSpecificId?: string;
4480
4265
  customParticipantId?: string;
4481
4266
  organizationId?: string;
4482
4267
  }
@@ -4563,7 +4348,6 @@ interface IParticipant {
4563
4348
  flags: {
4564
4349
  [key: string]: string | boolean;
4565
4350
  };
4566
- clientSpecificId?: string;
4567
4351
  customParticipantId?: string;
4568
4352
  stageStatus?: StageStatus;
4569
4353
  audioMuted: boolean;
@@ -4583,7 +4367,6 @@ declare class Participant extends TypedEventEmitter<ParticipantEvents> {
4583
4367
  picture: string;
4584
4368
  isHost: boolean;
4585
4369
  customParticipantId?: string;
4586
- get clientSpecificId(): string;
4587
4370
  flags: {
4588
4371
  [key: string]: string | boolean;
4589
4372
  };