@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.
- package/dist/ClientMock.cjs.js +2 -2
- package/dist/EncryptionManager.cjs.js +1 -1
- package/dist/EncryptionManager.d.ts +139 -356
- package/dist/EncryptionManager.es.js +58 -58
- package/dist/browser.js +12 -14
- package/dist/dependencies.txt +10 -10
- package/dist/index.cjs.js +8 -10
- package/dist/index.d.ts +148 -364
- package/dist/index.es.js +6638 -7392
- package/dist/index.es5.js +14638 -16257
- package/dist/index.rn.js +8 -10
- package/dist/ts3.4/dist/EncryptionManager.d.ts +135 -352
- package/dist/ts3.4/dist/index.d.ts +142 -359
- package/package.json +3 -4
|
@@ -1496,70 +1496,6 @@ interface DeleteChatMessageResponse {
|
|
|
1496
1496
|
* @generated MessageType for protobuf message socket.chat.DeleteChatMessageResponse
|
|
1497
1497
|
*/
|
|
1498
1498
|
declare const DeleteChatMessageResponse: DeleteChatMessageResponse$Type;
|
|
1499
|
-
declare class EnablePluginResponse$Type extends MessageType$1<EnablePluginResponse> {
|
|
1500
|
-
constructor();
|
|
1501
|
-
}
|
|
1502
|
-
/**
|
|
1503
|
-
* Response sent whenever a plugin is enabled.
|
|
1504
|
-
* Applicable for all requests that enable a plugin.
|
|
1505
|
-
*
|
|
1506
|
-
* @generated from protobuf message socket.plugin.EnablePluginResponse
|
|
1507
|
-
*/
|
|
1508
|
-
interface EnablePluginResponse {
|
|
1509
|
-
/**
|
|
1510
|
-
* @generated from protobuf field: string plugin_id = 1;
|
|
1511
|
-
*/
|
|
1512
|
-
pluginId: string;
|
|
1513
|
-
/**
|
|
1514
|
-
* @generated from protobuf field: string enabled_by = 2;
|
|
1515
|
-
*/
|
|
1516
|
-
enabledBy: string;
|
|
1517
|
-
}
|
|
1518
|
-
/**
|
|
1519
|
-
* @generated MessageType for protobuf message socket.plugin.EnablePluginResponse
|
|
1520
|
-
*/
|
|
1521
|
-
declare const EnablePluginResponse: EnablePluginResponse$Type;
|
|
1522
|
-
declare class EnablePluginsResponse$Type extends MessageType$1<EnablePluginsResponse> {
|
|
1523
|
-
constructor();
|
|
1524
|
-
}
|
|
1525
|
-
/**
|
|
1526
|
-
* Response sent when all enabled plugins are requested.
|
|
1527
|
-
*
|
|
1528
|
-
* @generated from protobuf message socket.plugin.EnablePluginsResponse
|
|
1529
|
-
*/
|
|
1530
|
-
interface EnablePluginsResponse {
|
|
1531
|
-
/**
|
|
1532
|
-
* @generated from protobuf field: repeated socket.plugin.EnablePluginResponse plugins = 1;
|
|
1533
|
-
*/
|
|
1534
|
-
plugins: EnablePluginResponse[];
|
|
1535
|
-
}
|
|
1536
|
-
/**
|
|
1537
|
-
* @generated MessageType for protobuf message socket.plugin.EnablePluginsResponse
|
|
1538
|
-
*/
|
|
1539
|
-
declare const EnablePluginsResponse: EnablePluginsResponse$Type;
|
|
1540
|
-
declare class DisablePluginResponse$Type extends MessageType$1<DisablePluginResponse> {
|
|
1541
|
-
constructor();
|
|
1542
|
-
}
|
|
1543
|
-
/**
|
|
1544
|
-
* Response sent whenever a plugin is disabled.
|
|
1545
|
-
* Applicable for all requests that disable a plugin.
|
|
1546
|
-
*
|
|
1547
|
-
* @generated from protobuf message socket.plugin.DisablePluginResponse
|
|
1548
|
-
*/
|
|
1549
|
-
interface DisablePluginResponse {
|
|
1550
|
-
/**
|
|
1551
|
-
* @generated from protobuf field: string plugin_id = 1;
|
|
1552
|
-
*/
|
|
1553
|
-
pluginId: string;
|
|
1554
|
-
/**
|
|
1555
|
-
* @generated from protobuf field: string disabled_by = 2;
|
|
1556
|
-
*/
|
|
1557
|
-
disabledBy: string;
|
|
1558
|
-
}
|
|
1559
|
-
/**
|
|
1560
|
-
* @generated MessageType for protobuf message socket.plugin.DisablePluginResponse
|
|
1561
|
-
*/
|
|
1562
|
-
declare const DisablePluginResponse: DisablePluginResponse$Type;
|
|
1563
1499
|
declare class PluginStoreItem$Type extends MessageType$1<PluginStoreItem> {
|
|
1564
1500
|
constructor();
|
|
1565
1501
|
}
|
|
@@ -1615,28 +1551,6 @@ interface PluginStoreResponse {
|
|
|
1615
1551
|
* @generated MessageType for protobuf message socket.plugin.PluginStoreResponse
|
|
1616
1552
|
*/
|
|
1617
1553
|
declare const PluginStoreResponse: PluginStoreResponse$Type;
|
|
1618
|
-
declare class PluginEventResponse$Type extends MessageType$1<PluginEventResponse> {
|
|
1619
|
-
constructor();
|
|
1620
|
-
}
|
|
1621
|
-
/**
|
|
1622
|
-
* Response sent for custom plugin event.
|
|
1623
|
-
*
|
|
1624
|
-
* @generated from protobuf message socket.plugin.PluginEventResponse
|
|
1625
|
-
*/
|
|
1626
|
-
interface PluginEventResponse {
|
|
1627
|
-
/**
|
|
1628
|
-
* @generated from protobuf field: string plugin_id = 1;
|
|
1629
|
-
*/
|
|
1630
|
-
pluginId: string;
|
|
1631
|
-
/**
|
|
1632
|
-
* @generated from protobuf field: bytes plugin_data = 2;
|
|
1633
|
-
*/
|
|
1634
|
-
pluginData: Uint8Array;
|
|
1635
|
-
}
|
|
1636
|
-
/**
|
|
1637
|
-
* @generated MessageType for protobuf message socket.plugin.PluginEventResponse
|
|
1638
|
-
*/
|
|
1639
|
-
declare const PluginEventResponse: PluginEventResponse$Type;
|
|
1640
1554
|
declare class GetStagePeersResponse$Type extends MessageType$1<GetStagePeersResponse> {
|
|
1641
1555
|
constructor();
|
|
1642
1556
|
}
|
|
@@ -2133,30 +2047,6 @@ declare class RoomSocketHandler {
|
|
|
2133
2047
|
on(event: number, handler: (message: EventHandlerTypes) => void): void;
|
|
2134
2048
|
getUserPermissions(userId: string): Promise<Pick<PresetTypeV2['permissions'], 'chat' | 'polls' | 'plugins'>>;
|
|
2135
2049
|
}
|
|
2136
|
-
type TranscriptionData = {
|
|
2137
|
-
id: string;
|
|
2138
|
-
name: string;
|
|
2139
|
-
peerId: string;
|
|
2140
|
-
userId: string;
|
|
2141
|
-
customParticipantId: string;
|
|
2142
|
-
transcript: string;
|
|
2143
|
-
isPartialTranscript: boolean;
|
|
2144
|
-
date: Date;
|
|
2145
|
-
};
|
|
2146
|
-
type AiEvents = {
|
|
2147
|
-
['transcript']: (t: TranscriptionData) => void;
|
|
2148
|
-
['*']: (event: string, ...args: any[]) => void;
|
|
2149
|
-
};
|
|
2150
|
-
declare class Ai extends TypedEventEmitter$1<AiEvents> {
|
|
2151
|
-
transcripts: TranscriptionData[];
|
|
2152
|
-
readonly telemetry: Telemetry;
|
|
2153
|
-
constructor(context: Context<ContextState>);
|
|
2154
|
-
static init(context: Context<ContextState>, transcriptionEnabled: boolean): Promise<Ai>;
|
|
2155
|
-
static parseTranscript(transcriptData: string, isPartialTranscript?: boolean): TranscriptionData | undefined;
|
|
2156
|
-
static parseTranscripts(transcriptData: string): TranscriptionData[];
|
|
2157
|
-
getActiveTranscript(): Promise<void>;
|
|
2158
|
-
onTranscript(transcript: TranscriptionData): Promise<void>;
|
|
2159
|
-
}
|
|
2160
2050
|
type ActiveTabType = 'screenshare' | 'plugin';
|
|
2161
2051
|
interface ActiveTab {
|
|
2162
2052
|
type: ActiveTabType;
|
|
@@ -2180,7 +2070,6 @@ type MetaEvents = {
|
|
|
2180
2070
|
['meetingStartTimeUpdate']: (payload: {
|
|
2181
2071
|
meetingStartedTimestamp: Date;
|
|
2182
2072
|
}) => void;
|
|
2183
|
-
['transcript']: (t: TranscriptionData) => void;
|
|
2184
2073
|
['activeTabUpdate']: (tab: ActiveTab) => void;
|
|
2185
2074
|
['selfTabUpdate']: (tab: ActiveTab) => void;
|
|
2186
2075
|
['broadcastTabChangesUpdate']: (broadcastTabChanges: boolean) => void;
|
|
@@ -2671,9 +2560,6 @@ declare class Participants extends TypedEventEmitter$1<ParticipantsEvents> {
|
|
|
2671
2560
|
setPage(page: number): Promise<void>;
|
|
2672
2561
|
disableAllAudio(allowUnmute: boolean): Promise<void>;
|
|
2673
2562
|
disableAllVideo(): Promise<void>;
|
|
2674
|
-
disableAudio(participantId: string): Promise<void>;
|
|
2675
|
-
disableVideo(participantId: string): Promise<void>;
|
|
2676
|
-
kick(participantId: string): Promise<void>;
|
|
2677
2563
|
kickAll(): Promise<void>;
|
|
2678
2564
|
broadcastMessage(type: Exclude<string, 'spotlight'>, payload: BroadcastMessagePayload, target?: BroadcastMessageTarget): Promise<void>;
|
|
2679
2565
|
getAllJoinedPeers(searchQuery: string, limit: number, offset: number): Promise<{
|
|
@@ -3079,8 +2965,6 @@ type PermissionEvents = {
|
|
|
3079
2965
|
declare class PermissionPreset extends TypedEventEmitter$1<PermissionEvents> {
|
|
3080
2966
|
private constructor();
|
|
3081
2967
|
private setupEvents;
|
|
3082
|
-
static fromResponse(response: PresetPermissions, viewType: ViewType, context: Context<ContextState>): PermissionPreset;
|
|
3083
|
-
static default(context: Context<ContextState>, viewType: ViewType): PermissionPreset;
|
|
3084
2968
|
static init(context: Context<ContextState>, viewType: ViewType, response?: PresetPermissions): PermissionPreset;
|
|
3085
2969
|
readonly mediaRoomType: string;
|
|
3086
2970
|
readonly stageEnabled: Readonly<boolean>;
|
|
@@ -3098,29 +2982,19 @@ declare class PermissionPreset extends TypedEventEmitter$1<PermissionEvents> {
|
|
|
3098
2982
|
readonly kickParticipant: Readonly<boolean>;
|
|
3099
2983
|
readonly pinParticipant: Readonly<boolean>;
|
|
3100
2984
|
readonly canRecord: Readonly<boolean>;
|
|
3101
|
-
readonly waitingRoomType: Readonly<WaitingRoomTypes>;
|
|
3102
2985
|
readonly waitingRoomBehaviour: Readonly<WaitingRoomTypes>;
|
|
3103
2986
|
readonly plugins: Readonly<PresetPermissions['plugins']>;
|
|
3104
2987
|
readonly polls: Readonly<PresetPermissions['polls']>;
|
|
3105
|
-
readonly produceVideo: Readonly<MediaProductionPermissionType>;
|
|
3106
|
-
readonly requestProduce: Readonly<boolean>;
|
|
3107
2988
|
readonly canProduceVideo: Readonly<MediaProductionPermissionType>;
|
|
3108
|
-
readonly produceScreenshare: Readonly<MediaProductionPermissionType>;
|
|
3109
2989
|
readonly canProduceScreenshare: Readonly<MediaProductionPermissionType>;
|
|
3110
|
-
readonly produceAudio: Readonly<MediaProductionPermissionType>;
|
|
3111
2990
|
readonly canProduceAudio: Readonly<MediaProductionPermissionType>;
|
|
3112
2991
|
readonly chatPublic: Readonly<PresetPermissions['chat']['public']>;
|
|
3113
2992
|
readonly chatPrivate: Readonly<PresetPermissions['chat']['private']>;
|
|
3114
2993
|
readonly connectedMeetings: Readonly<PresetPermissions['connectedMeetings']>;
|
|
3115
2994
|
readonly hiddenParticipant: Readonly<boolean>;
|
|
3116
2995
|
readonly showParticipantList: Readonly<boolean>;
|
|
3117
|
-
readonly canChangeParticipantRole: Readonly<boolean>;
|
|
3118
2996
|
readonly canChangeParticipantPermissions: Readonly<boolean>;
|
|
3119
|
-
readonly canChangeTheme: Readonly<boolean>;
|
|
3120
|
-
readonly canPresent: Readonly<boolean>;
|
|
3121
|
-
readonly acceptPresentRequests: Readonly<boolean>;
|
|
3122
2997
|
readonly canEditDisplayName: Readonly<boolean>;
|
|
3123
|
-
readonly maxScreenShareCount: Readonly<number>;
|
|
3124
2998
|
readonly isRecorder: Readonly<boolean>;
|
|
3125
2999
|
readonly canSpotlight: Readonly<boolean>;
|
|
3126
3000
|
readonly canLivestream: Readonly<boolean>;
|
|
@@ -3191,152 +3065,6 @@ declare class Livestream extends TypedEventEmitter$1<LivestreamEvents> {
|
|
|
3191
3065
|
start(livestreamConfig?: StartLivestreamConfig): Promise<void>;
|
|
3192
3066
|
stop(): Promise<void>;
|
|
3193
3067
|
}
|
|
3194
|
-
type PluginSocketMessage = DisablePluginResponse | EnablePluginResponse | PluginEventResponse | PluginStoreResponse | SendChatMessageToPeersResponse | SendChatMessageToRoomResponse;
|
|
3195
|
-
declare class PluginSocketHandler {
|
|
3196
|
-
constructor(context: Context<ContextState>, socketService: SocketService);
|
|
3197
|
-
readonly logger: Logger;
|
|
3198
|
-
addPlugin(pluginId: string, staggered: boolean): void;
|
|
3199
|
-
removePlugin(pluginId: string): void;
|
|
3200
|
-
getActivePlugins(): Promise<EnablePluginsResponse>;
|
|
3201
|
-
customPluginEventToRoom(pluginId: string, data: any, messageId?: string): void;
|
|
3202
|
-
customPluginEventToPeers(pluginId: string, peerIds: string[], data: any, messageId?: string): void;
|
|
3203
|
-
enablePluginForRoom(pluginId: string, messageId?: string): void;
|
|
3204
|
-
enablePluginForPeers(pluginId: string, peerIds: string[], messageId?: string): void;
|
|
3205
|
-
disablePluginForRoom(pluginId: string, messageId?: string): void;
|
|
3206
|
-
disablePluginForPeers(pluginId: string, peerIds: string[], messageId?: string): void;
|
|
3207
|
-
storeInsertKeys(pluginId: string, store: string, insertKeys: {
|
|
3208
|
-
key: string;
|
|
3209
|
-
payload?: any;
|
|
3210
|
-
}[], messageId?: string): void;
|
|
3211
|
-
storeGetKeys(pluginId: string, store: string, getKeys: {
|
|
3212
|
-
key: string;
|
|
3213
|
-
}[], messageId?: string): void;
|
|
3214
|
-
storeDeleteKeys(pluginId: string, store: string, deleteKeys: {
|
|
3215
|
-
key: string;
|
|
3216
|
-
}[], messageId?: string): void;
|
|
3217
|
-
storeDelete(pluginId: string, store: string, messageId?: string): void;
|
|
3218
|
-
getPluginDataOld(pluginId: string, store: string): void;
|
|
3219
|
-
storePluginDataOld(pluginId: string, store: string, data: any): void;
|
|
3220
|
-
on(event: number, handler: (socketMessage: PluginSocketMessage, messageId?: string) => void): void;
|
|
3221
|
-
}
|
|
3222
|
-
interface PluginResponse {
|
|
3223
|
-
baseURL: string;
|
|
3224
|
-
createdAt: string;
|
|
3225
|
-
description: string;
|
|
3226
|
-
id: string;
|
|
3227
|
-
name: string;
|
|
3228
|
-
organizationId: string;
|
|
3229
|
-
picture: string;
|
|
3230
|
-
private: boolean;
|
|
3231
|
-
published: boolean;
|
|
3232
|
-
staggered: boolean;
|
|
3233
|
-
tags: string[];
|
|
3234
|
-
type: string;
|
|
3235
|
-
updatedAt: string;
|
|
3236
|
-
}
|
|
3237
|
-
interface PluginViews {
|
|
3238
|
-
[viewId: string]: {
|
|
3239
|
-
url: string;
|
|
3240
|
-
suggestedPosition: string;
|
|
3241
|
-
};
|
|
3242
|
-
}
|
|
3243
|
-
interface PluginConfig {
|
|
3244
|
-
name: string;
|
|
3245
|
-
pluginId: string;
|
|
3246
|
-
version: string;
|
|
3247
|
-
description: string;
|
|
3248
|
-
author?: string;
|
|
3249
|
-
repository?: string;
|
|
3250
|
-
tags?: string[];
|
|
3251
|
-
picture?: string;
|
|
3252
|
-
url?: string;
|
|
3253
|
-
files: {
|
|
3254
|
-
include: string[];
|
|
3255
|
-
exclude?: string[];
|
|
3256
|
-
};
|
|
3257
|
-
views?: PluginViews;
|
|
3258
|
-
contentScript?: string;
|
|
3259
|
-
permissions?: {
|
|
3260
|
-
[key: string]: {
|
|
3261
|
-
default: boolean;
|
|
3262
|
-
description: string;
|
|
3263
|
-
};
|
|
3264
|
-
};
|
|
3265
|
-
config?: {
|
|
3266
|
-
[key: string]: string;
|
|
3267
|
-
};
|
|
3268
|
-
}
|
|
3269
|
-
interface PluginIframeMessage {
|
|
3270
|
-
type: number;
|
|
3271
|
-
uuid: string;
|
|
3272
|
-
payload?: any;
|
|
3273
|
-
}
|
|
3274
|
-
interface SendDataOptions {
|
|
3275
|
-
eventName: string;
|
|
3276
|
-
data: any;
|
|
3277
|
-
}
|
|
3278
|
-
interface ReactNativeWebViewEvent {
|
|
3279
|
-
nativeEvent: {
|
|
3280
|
-
data: string;
|
|
3281
|
-
};
|
|
3282
|
-
}
|
|
3283
|
-
interface ReactNativeWebView {
|
|
3284
|
-
src: string;
|
|
3285
|
-
allow: string;
|
|
3286
|
-
title: string;
|
|
3287
|
-
props: {
|
|
3288
|
-
onMessage: (event: ReactNativeWebViewEvent) => void;
|
|
3289
|
-
};
|
|
3290
|
-
postMessage: (message: string) => void;
|
|
3291
|
-
}
|
|
3292
|
-
declare const PluginEventKeys: {
|
|
3293
|
-
stateUpdate: string;
|
|
3294
|
-
ready: string;
|
|
3295
|
-
closed: string;
|
|
3296
|
-
toggleViewMode: string;
|
|
3297
|
-
enabled: string;
|
|
3298
|
-
'* ': string;
|
|
3299
|
-
};
|
|
3300
|
-
type _string = string & {
|
|
3301
|
-
_?: any;
|
|
3302
|
-
};
|
|
3303
|
-
type PluginEvents$1 = keyof typeof PluginEventKeys | _string;
|
|
3304
|
-
declare class Plugin extends CustomEventEmitter<PluginEvents$1> {
|
|
3305
|
-
readonly baseURL: string;
|
|
3306
|
-
readonly createdAt: Date;
|
|
3307
|
-
readonly description: string;
|
|
3308
|
-
readonly id: string;
|
|
3309
|
-
readonly name: string;
|
|
3310
|
-
readonly organizationId: string;
|
|
3311
|
-
readonly picture: string;
|
|
3312
|
-
readonly private: boolean;
|
|
3313
|
-
readonly published: boolean;
|
|
3314
|
-
readonly staggered: boolean;
|
|
3315
|
-
readonly tags: string[];
|
|
3316
|
-
readonly type: string;
|
|
3317
|
-
readonly updatedAt: Date;
|
|
3318
|
-
config?: PluginConfig;
|
|
3319
|
-
active: boolean;
|
|
3320
|
-
iframes: Map<string, {
|
|
3321
|
-
iframe: HTMLIFrameElement | ReactNativeWebView;
|
|
3322
|
-
listener?: (message: MessageEvent) => void;
|
|
3323
|
-
}>;
|
|
3324
|
-
enabledBy: string;
|
|
3325
|
-
readonly telemetry: Telemetry;
|
|
3326
|
-
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);
|
|
3327
|
-
sendIframeEvent(message: PluginIframeMessage): void;
|
|
3328
|
-
private handleIframeMessage;
|
|
3329
|
-
sendData(payload: SendDataOptions): void;
|
|
3330
|
-
removePluginView(viewId?: string): void;
|
|
3331
|
-
addPluginView(iframe: HTMLIFrameElement | ReactNativeWebView, viewId?: string): void;
|
|
3332
|
-
private setActive;
|
|
3333
|
-
activateForSelf(): Promise<void>;
|
|
3334
|
-
deactivateForSelf(): void;
|
|
3335
|
-
enable(): Promise<void>;
|
|
3336
|
-
disable(): void;
|
|
3337
|
-
activate(): Promise<void>;
|
|
3338
|
-
deactivate(): Promise<void>;
|
|
3339
|
-
}
|
|
3340
3068
|
interface RecordingConfig {
|
|
3341
3069
|
fileNamePrefix?: string;
|
|
3342
3070
|
videoConfig?: {
|
|
@@ -3354,10 +3082,6 @@ declare class APIClient extends API {
|
|
|
3354
3082
|
telemetry: Telemetry;
|
|
3355
3083
|
constructor(context: Context<ContextState>, options?: APIOptions);
|
|
3356
3084
|
getICEServers(): Promise<any>;
|
|
3357
|
-
getPlugins(): Promise<any[]>;
|
|
3358
|
-
getPluginDetails(pluginId: string): Promise<PluginResponse>;
|
|
3359
|
-
getPluginConfig(pluginBaseUrl: string): Promise<PluginConfig>;
|
|
3360
|
-
authorizePlugin(pluginId: string): Promise<string>;
|
|
3361
3085
|
getPresignedUrls(filename: string): Promise<{
|
|
3362
3086
|
getLocation: any;
|
|
3363
3087
|
putLocation: any;
|
|
@@ -3498,19 +3222,11 @@ declare class Chat extends TypedEventEmitter$1<ChatEvents> {
|
|
|
3498
3222
|
editFileMessage(messageId: string, file: File | ReactNativeFile): Promise<void>;
|
|
3499
3223
|
editMessage(messageId: string, message: MessagePayload): Promise<void>;
|
|
3500
3224
|
deleteMessage(messageId: string): Promise<void>;
|
|
3501
|
-
getMessagesByUser(userId: string): Message[];
|
|
3502
|
-
getMessagesByType(type: keyof typeof MessageType): Message[];
|
|
3503
3225
|
pin(id: string): Promise<void>;
|
|
3504
3226
|
unpin(id: string): Promise<void>;
|
|
3505
3227
|
fetchPublicMessages({ timestamp, limit, direction, }: FetchMessageOptions): Promise<Message[]>;
|
|
3506
3228
|
fetchPrivateMessages({ timestamp, limit, direction, userId, }: FetchPrivateMessagesOptions): Promise<Message[]>;
|
|
3507
3229
|
fetchPinnedMessages({ timestamp, limit, direction, }: FetchMessageOptions): Promise<Message[]>;
|
|
3508
|
-
getMessages(timeStamp: number, size: number, reversed: boolean, offset?: number): Promise<{
|
|
3509
|
-
messages: Message[];
|
|
3510
|
-
next: boolean;
|
|
3511
|
-
}>;
|
|
3512
|
-
searchMessages(query: string, filters: unknown): Promise<unknown[]>;
|
|
3513
|
-
readonly pinned: Message[];
|
|
3514
3230
|
}
|
|
3515
3231
|
declare class PollSocketHandler {
|
|
3516
3232
|
readonly logger: Logger;
|
|
@@ -3556,6 +3272,134 @@ declare class Polls extends TypedEventEmitter$1<PollsEvents> {
|
|
|
3556
3272
|
create(question: string, options: string[], anonymous?: boolean, hideVotes?: boolean): Promise<void>;
|
|
3557
3273
|
vote(id: string, index: number): Promise<void>;
|
|
3558
3274
|
}
|
|
3275
|
+
type TranscriptionData = {
|
|
3276
|
+
id: string;
|
|
3277
|
+
name: string;
|
|
3278
|
+
peerId: string;
|
|
3279
|
+
userId: string;
|
|
3280
|
+
customParticipantId: string;
|
|
3281
|
+
transcript: string;
|
|
3282
|
+
isPartialTranscript: boolean;
|
|
3283
|
+
date: Date;
|
|
3284
|
+
};
|
|
3285
|
+
type AiEvents = {
|
|
3286
|
+
['transcript']: (t: TranscriptionData) => void;
|
|
3287
|
+
['*']: (event: string, ...args: any[]) => void;
|
|
3288
|
+
};
|
|
3289
|
+
declare class Ai extends TypedEventEmitter$1<AiEvents> {
|
|
3290
|
+
transcripts: TranscriptionData[];
|
|
3291
|
+
readonly telemetry: Telemetry;
|
|
3292
|
+
constructor(context: Context<ContextState>);
|
|
3293
|
+
static init(context: Context<ContextState>, transcriptionEnabled: boolean): Promise<Ai>;
|
|
3294
|
+
static parseTranscript(transcriptData: string, isPartialTranscript?: boolean): TranscriptionData | undefined;
|
|
3295
|
+
static parseTranscripts(transcriptData: string): TranscriptionData[];
|
|
3296
|
+
getActiveTranscript(): Promise<void>;
|
|
3297
|
+
onTranscript(transcript: TranscriptionData): Promise<void>;
|
|
3298
|
+
}
|
|
3299
|
+
declare class StoresSocketHandler {
|
|
3300
|
+
constructor(context: Context<ContextState>, socketService: SocketService);
|
|
3301
|
+
readonly logger: Logger;
|
|
3302
|
+
readonly peerId: string;
|
|
3303
|
+
storeInsertKeys(pluginId: string, store: string, insertKeys: {
|
|
3304
|
+
key: string;
|
|
3305
|
+
payload?: unknown;
|
|
3306
|
+
}[], messageId?: string): void;
|
|
3307
|
+
storeGetKeys(pluginId: string, store: string, getKeys: {
|
|
3308
|
+
key: string;
|
|
3309
|
+
}[], messageId?: string): void;
|
|
3310
|
+
storeDeleteKeys(pluginId: string, store: string, deleteKeys: {
|
|
3311
|
+
key: string;
|
|
3312
|
+
}[], messageId?: string): void;
|
|
3313
|
+
on(event: number, handler: (socketMessage: PluginStoreResponse, messageId?: string) => void): void;
|
|
3314
|
+
}
|
|
3315
|
+
type StoreData = {
|
|
3316
|
+
[type: string]: any;
|
|
3317
|
+
};
|
|
3318
|
+
type RateLimitConfig = {
|
|
3319
|
+
maxInvocations: number;
|
|
3320
|
+
period: number;
|
|
3321
|
+
};
|
|
3322
|
+
declare class Store {
|
|
3323
|
+
name: string;
|
|
3324
|
+
rateLimitConfig: {
|
|
3325
|
+
maxInvocations: number;
|
|
3326
|
+
period: number;
|
|
3327
|
+
};
|
|
3328
|
+
bulkRateLimitConfig: {
|
|
3329
|
+
maxInvocations: number;
|
|
3330
|
+
period: number;
|
|
3331
|
+
};
|
|
3332
|
+
private listeners;
|
|
3333
|
+
constructor({ name, socketHandler, meetingId }: {
|
|
3334
|
+
name: string;
|
|
3335
|
+
socketHandler: StoresSocketHandler;
|
|
3336
|
+
meetingId: string;
|
|
3337
|
+
});
|
|
3338
|
+
set(key: string, value: any, sync?: boolean, emit?: boolean): Promise<void>;
|
|
3339
|
+
private remoteSet;
|
|
3340
|
+
bulkSet(data: Array<{
|
|
3341
|
+
key: string;
|
|
3342
|
+
payload: any;
|
|
3343
|
+
}>): Promise<void>;
|
|
3344
|
+
update(key: string, value: any, sync?: boolean): Promise<void>;
|
|
3345
|
+
delete(key: string, sync?: boolean, emit?: boolean): Promise<void>;
|
|
3346
|
+
bulkDelete(data: Array<{
|
|
3347
|
+
key: string;
|
|
3348
|
+
}>): Promise<void>;
|
|
3349
|
+
get(key: string): any;
|
|
3350
|
+
getAll(): StoreData;
|
|
3351
|
+
clear(): void;
|
|
3352
|
+
readonly rateLimits: {
|
|
3353
|
+
maxInvocations: number;
|
|
3354
|
+
period: number;
|
|
3355
|
+
};
|
|
3356
|
+
updateRateLimits(num: number, period: number): void;
|
|
3357
|
+
readonly bulkRateLimits: {
|
|
3358
|
+
maxInvocations: number;
|
|
3359
|
+
period: number;
|
|
3360
|
+
};
|
|
3361
|
+
updateBulkRateLimits(num: number, period: number): void;
|
|
3362
|
+
subscribe(key: string | '*', cb: (value: any) => any): void;
|
|
3363
|
+
unsubscribe(key: string | '*', cb?: (value: any) => any): void;
|
|
3364
|
+
populate(data: StoreData): void;
|
|
3365
|
+
}
|
|
3366
|
+
interface ClientPluginPermissions {
|
|
3367
|
+
canActivate: boolean;
|
|
3368
|
+
canDeactivate: boolean;
|
|
3369
|
+
}
|
|
3370
|
+
interface ClientPluginConfig {
|
|
3371
|
+
name: string;
|
|
3372
|
+
icon: string;
|
|
3373
|
+
id: string;
|
|
3374
|
+
permissions: ClientPluginPermissions;
|
|
3375
|
+
component: unknown;
|
|
3376
|
+
}
|
|
3377
|
+
declare const PluginEventKeys: {
|
|
3378
|
+
stateUpdate: string;
|
|
3379
|
+
ready: string;
|
|
3380
|
+
closed: string;
|
|
3381
|
+
enabled: string;
|
|
3382
|
+
'* ': string;
|
|
3383
|
+
};
|
|
3384
|
+
type _string = string & {
|
|
3385
|
+
_?: any;
|
|
3386
|
+
};
|
|
3387
|
+
type PluginEvents$1 = keyof typeof PluginEventKeys | _string;
|
|
3388
|
+
declare class Plugin extends CustomEventEmitter<PluginEvents$1> {
|
|
3389
|
+
readonly name: string;
|
|
3390
|
+
readonly icon: string;
|
|
3391
|
+
readonly id: string;
|
|
3392
|
+
readonly permissions: ClientPluginPermissions;
|
|
3393
|
+
active: boolean;
|
|
3394
|
+
enabledBy: string;
|
|
3395
|
+
readonly component: unknown;
|
|
3396
|
+
readonly telemetry: Telemetry;
|
|
3397
|
+
constructor(context: Context<ContextState>, config: ClientPluginConfig, activePluginsStore: Store, self: Self);
|
|
3398
|
+
activateForSelf(): void;
|
|
3399
|
+
deactivateForSelf(): void;
|
|
3400
|
+
activate(): Promise<void>;
|
|
3401
|
+
deactivate(): Promise<void>;
|
|
3402
|
+
}
|
|
3559
3403
|
type PluginMapEvents = {
|
|
3560
3404
|
['pluginAdded']: (plugin: Plugin) => void;
|
|
3561
3405
|
['pluginDeleted']: (plugin: Plugin) => void;
|
|
@@ -3583,6 +3427,12 @@ declare class Plugins {
|
|
|
3583
3427
|
readonly active: PluginMap;
|
|
3584
3428
|
constructor(logger: Logger);
|
|
3585
3429
|
}
|
|
3430
|
+
declare class StoreManager {
|
|
3431
|
+
stores: Map<String, Store>;
|
|
3432
|
+
constructor(context: Context<ContextState>, handler: StoresSocketHandler);
|
|
3433
|
+
create(name: string, _internal?: boolean): Promise<Store>;
|
|
3434
|
+
refresh(name: string): Promise<Store>;
|
|
3435
|
+
}
|
|
3586
3436
|
declare class SelfMedia extends TypedEventEmitter$1<SelfEvents> {
|
|
3587
3437
|
protected localMediaHandler: LocalMediaHandler;
|
|
3588
3438
|
constructor(context: Context<ContextState>, logger: Logger);
|
|
@@ -3759,61 +3609,6 @@ declare class Internals {
|
|
|
3759
3609
|
constructor(authToken: string, logger: Logger, features: Features, callStats: InhouseCallStats);
|
|
3760
3610
|
static init(context: Context<ContextState>): Internals;
|
|
3761
3611
|
}
|
|
3762
|
-
type StoreData = {
|
|
3763
|
-
[type: string]: any;
|
|
3764
|
-
};
|
|
3765
|
-
type RateLimitConfig = {
|
|
3766
|
-
maxInvocations: number;
|
|
3767
|
-
period: number;
|
|
3768
|
-
};
|
|
3769
|
-
declare class Store {
|
|
3770
|
-
name: string;
|
|
3771
|
-
rateLimitConfig: {
|
|
3772
|
-
maxInvocations: number;
|
|
3773
|
-
period: number;
|
|
3774
|
-
};
|
|
3775
|
-
bulkRateLimitConfig: {
|
|
3776
|
-
maxInvocations: number;
|
|
3777
|
-
period: number;
|
|
3778
|
-
};
|
|
3779
|
-
private listeners;
|
|
3780
|
-
constructor({ name, socketHandler, meetingId }: {
|
|
3781
|
-
name: string;
|
|
3782
|
-
socketHandler: PluginSocketHandler;
|
|
3783
|
-
meetingId: string;
|
|
3784
|
-
});
|
|
3785
|
-
set(key: string, value: any, sync?: boolean, emit?: boolean): Promise<void>;
|
|
3786
|
-
private remoteSet;
|
|
3787
|
-
bulkSet(data: Array<{
|
|
3788
|
-
key: string;
|
|
3789
|
-
payload: any;
|
|
3790
|
-
}>): Promise<void>;
|
|
3791
|
-
update(key: string, value: any, sync?: boolean): Promise<void>;
|
|
3792
|
-
delete(key: string, sync?: boolean, emit?: boolean): Promise<void>;
|
|
3793
|
-
bulkDelete(data: Array<{
|
|
3794
|
-
key: string;
|
|
3795
|
-
}>): Promise<void>;
|
|
3796
|
-
get(key: string): any;
|
|
3797
|
-
getAll(): StoreData;
|
|
3798
|
-
readonly rateLimits: {
|
|
3799
|
-
maxInvocations: number;
|
|
3800
|
-
period: number;
|
|
3801
|
-
};
|
|
3802
|
-
updateRateLimits(num: number, period: number): void;
|
|
3803
|
-
readonly bulkRateLimits: {
|
|
3804
|
-
maxInvocations: number;
|
|
3805
|
-
period: number;
|
|
3806
|
-
};
|
|
3807
|
-
updateBulkRateLimits(num: number, period: number): void;
|
|
3808
|
-
subscribe(key: string | '*', cb: (value: any) => any): void;
|
|
3809
|
-
unsubscribe(key: string | '*', cb?: (value: any) => any): void;
|
|
3810
|
-
populate(data: StoreData): void;
|
|
3811
|
-
}
|
|
3812
|
-
declare class StoreManager {
|
|
3813
|
-
stores: Map<String, Store>;
|
|
3814
|
-
constructor(context: Context<ContextState>, handler: PluginSocketHandler);
|
|
3815
|
-
create(name: string): Promise<Store>;
|
|
3816
|
-
}
|
|
3817
3612
|
declare const enum PRODUCERS_TYPE {
|
|
3818
3613
|
WEBCAM = "webcam",
|
|
3819
3614
|
WEBCAM_BACKUP = "webcam_backup",
|
|
@@ -3839,8 +3634,10 @@ declare class MediaNodeClient {
|
|
|
3839
3634
|
readonly logger: Logger;
|
|
3840
3635
|
constructor(context: Context<ContextState>, options: MediaNodeClientOptions);
|
|
3841
3636
|
mediaJoined: boolean;
|
|
3842
|
-
reset(
|
|
3843
|
-
|
|
3637
|
+
reset({ resetTransportQueue }: {
|
|
3638
|
+
resetTransportQueue: boolean;
|
|
3639
|
+
}): void;
|
|
3640
|
+
joinRoom(displayName: string, roomUuid: string, rejoining?: boolean, permissions?: MediaPermissions): Promise<{
|
|
3844
3641
|
roomJoined: boolean;
|
|
3845
3642
|
error?: Error;
|
|
3846
3643
|
}>;
|
|
@@ -3960,9 +3757,9 @@ declare class ConnectedMeetings extends TypedEventEmitter$1<ConnectedMeetingsEve
|
|
|
3960
3757
|
constructor(context: Context<ContextState>);
|
|
3961
3758
|
meetings: ConnectedMeeting[];
|
|
3962
3759
|
parentMeeting: ConnectedMeeting;
|
|
3963
|
-
readonly supportsConnectedMeetings: boolean;
|
|
3964
3760
|
readonly isActive: boolean;
|
|
3965
|
-
private
|
|
3761
|
+
private validateAlterAction;
|
|
3762
|
+
private validateMoveAction;
|
|
3966
3763
|
getConnectedMeetings(): Promise<{
|
|
3967
3764
|
parentMeeting: ConnectedMeeting;
|
|
3968
3765
|
meetings: ConnectedMeeting[];
|
|
@@ -4019,14 +3816,6 @@ interface Modules {
|
|
|
4019
3816
|
devTools?: {
|
|
4020
3817
|
logs: boolean;
|
|
4021
3818
|
logLevel?: LogLevel[number];
|
|
4022
|
-
plugins?: {
|
|
4023
|
-
id: string;
|
|
4024
|
-
name: string;
|
|
4025
|
-
port: number;
|
|
4026
|
-
picture?: string;
|
|
4027
|
-
description?: string;
|
|
4028
|
-
staggered?: boolean;
|
|
4029
|
-
}[];
|
|
4030
3819
|
};
|
|
4031
3820
|
experimentalAudioPlayback?: boolean;
|
|
4032
3821
|
}
|
|
@@ -4042,6 +3831,7 @@ interface DefaultOptions {
|
|
|
4042
3831
|
screenshare?: ScreenshareQualityConstraints;
|
|
4043
3832
|
};
|
|
4044
3833
|
isNonPreferredDevice?: (device: MediaDeviceInfo) => boolean;
|
|
3834
|
+
plugins?: ClientPluginConfig[];
|
|
4045
3835
|
}
|
|
4046
3836
|
interface RoomDetails {
|
|
4047
3837
|
meetingTitle: string;
|
|
@@ -4376,7 +4166,6 @@ interface UserDetailsResponse {
|
|
|
4376
4166
|
picture?: string;
|
|
4377
4167
|
loggedIn?: boolean;
|
|
4378
4168
|
scope?: string[];
|
|
4379
|
-
clientSpecificId?: string;
|
|
4380
4169
|
customParticipantId?: string;
|
|
4381
4170
|
organizationId?: string;
|
|
4382
4171
|
}
|
|
@@ -4462,7 +4251,6 @@ interface IParticipant {
|
|
|
4462
4251
|
flags: {
|
|
4463
4252
|
[key: string]: string | boolean;
|
|
4464
4253
|
};
|
|
4465
|
-
clientSpecificId?: string;
|
|
4466
4254
|
customParticipantId?: string;
|
|
4467
4255
|
stageStatus?: StageStatus;
|
|
4468
4256
|
audioMuted: boolean;
|
|
@@ -4482,7 +4270,6 @@ declare class Participant extends TypedEventEmitter$1<ParticipantEvents> {
|
|
|
4482
4270
|
picture: string;
|
|
4483
4271
|
isHost: boolean;
|
|
4484
4272
|
customParticipantId?: string;
|
|
4485
|
-
readonly clientSpecificId: string;
|
|
4486
4273
|
flags: {
|
|
4487
4274
|
[key: string]: string | boolean;
|
|
4488
4275
|
};
|
|
@@ -4855,7 +4642,6 @@ interface IceServerInformation {
|
|
|
4855
4642
|
}
|
|
4856
4643
|
interface CachedUserDetails {
|
|
4857
4644
|
peerId?: string;
|
|
4858
|
-
pluginInformation: PluginResponse[];
|
|
4859
4645
|
userDetails: UserDetailsResponseV2;
|
|
4860
4646
|
roomDetails: RoomDetails;
|
|
4861
4647
|
iceServers: IceServerInformation[];
|
|
@@ -4876,7 +4662,6 @@ declare class API {
|
|
|
4876
4662
|
protected authToken: string;
|
|
4877
4663
|
protected organizationId: string;
|
|
4878
4664
|
protected iceServers: IceServerInformation[];
|
|
4879
|
-
protected pluginInformation: PluginResponse[];
|
|
4880
4665
|
protected userDetails: UserDetailsResponseV2;
|
|
4881
4666
|
protected roomDetails: RoomDetails;
|
|
4882
4667
|
readonly peerId: string;
|
|
@@ -4935,8 +4720,6 @@ declare class Client {
|
|
|
4935
4720
|
readonly stores: Readonly<StoreManager>;
|
|
4936
4721
|
readonly audio: AudioPlaybackManager;
|
|
4937
4722
|
readonly __internals__: Readonly<Internals>;
|
|
4938
|
-
joinRoom(): Promise<void>;
|
|
4939
|
-
leaveRoom(state?: LeaveRoomState): Promise<void>;
|
|
4940
4723
|
}
|
|
4941
4724
|
declare enum RequestToJoinType {
|
|
4942
4725
|
PRESENT = "REQUEST_TO_PRESENT"
|
|
@@ -4980,4 +4763,4 @@ declare global {
|
|
|
4980
4763
|
TransformStream?: any;
|
|
4981
4764
|
}
|
|
4982
4765
|
}
|
|
4983
|
-
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 };
|
|
4766
|
+
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 };
|