@whereby.com/media 9.2.4 → 9.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +11 -0
- package/dist/index.d.cts +50 -5
- package/dist/index.d.mts +50 -5
- package/dist/index.d.ts +50 -5
- package/dist/index.mjs +10 -1
- package/dist/legacy-esm.js +10 -1
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -2386,6 +2386,15 @@ const turnServerOverride = (iceServers, overrideHost) => {
|
|
|
2386
2386
|
}
|
|
2387
2387
|
};
|
|
2388
2388
|
|
|
2389
|
+
const FILE_SHARE_ERROR_CODES = [
|
|
2390
|
+
"file_sharing_not_available",
|
|
2391
|
+
"file_sharing_not_enabled",
|
|
2392
|
+
"not_in_a_room_session",
|
|
2393
|
+
];
|
|
2394
|
+
function isFileShareError(payload) {
|
|
2395
|
+
return "error" in payload && FILE_SHARE_ERROR_CODES.includes(payload.error);
|
|
2396
|
+
}
|
|
2397
|
+
|
|
2389
2398
|
const defaultSubdomainPattern = /^(?:([^.]+)[.])?((:?[^.]+[.]){1,}[^.]+)$/;
|
|
2390
2399
|
const localstackPattern = /^(?:([^.]+)-)?(ip-[^.]*[.](?:hereby[.]dev|rfc1918[.]disappear[.]at)(?::\d+|))$/;
|
|
2391
2400
|
const localhostPattern = /^(?:([^.]+)[.])?(localhost:?\d*)/;
|
|
@@ -7428,6 +7437,7 @@ exports.AUDIO_SETTINGS = AUDIO_SETTINGS;
|
|
|
7428
7437
|
exports.BandwidthTester = BandwidthTester;
|
|
7429
7438
|
exports.CAMERA_STREAM_ID = CAMERA_STREAM_ID;
|
|
7430
7439
|
exports.EVENTS = EVENTS;
|
|
7440
|
+
exports.FILE_SHARE_ERROR_CODES = FILE_SHARE_ERROR_CODES;
|
|
7431
7441
|
exports.KNOCK_MESSAGES = KNOCK_MESSAGES;
|
|
7432
7442
|
exports.KalmanFilter = KalmanFilter;
|
|
7433
7443
|
exports.Logger = Logger;
|
|
@@ -7497,6 +7507,7 @@ exports.getUpdatedStats = getUpdatedStats;
|
|
|
7497
7507
|
exports.getUserMedia = getUserMedia;
|
|
7498
7508
|
exports.hasGetDisplayMedia = hasGetDisplayMedia;
|
|
7499
7509
|
exports.ipRegex = ipRegex;
|
|
7510
|
+
exports.isFileShareError = isFileShareError;
|
|
7500
7511
|
exports.isMobile = isMobile;
|
|
7501
7512
|
exports.issueDetectorOrMetricEnabled = issueDetectorOrMetricEnabled;
|
|
7502
7513
|
exports.maybeTurnOnly = maybeTurnOnly;
|
package/dist/index.d.cts
CHANGED
|
@@ -840,6 +840,14 @@ interface BreakoutGroupJoinedEvent {
|
|
|
840
840
|
clientId: string;
|
|
841
841
|
group: string;
|
|
842
842
|
}
|
|
843
|
+
interface ChatFileShare {
|
|
844
|
+
downloadUrl: string;
|
|
845
|
+
name: string;
|
|
846
|
+
size: number;
|
|
847
|
+
type: string;
|
|
848
|
+
key: string;
|
|
849
|
+
id?: string;
|
|
850
|
+
}
|
|
843
851
|
interface ChatMessage {
|
|
844
852
|
id: string;
|
|
845
853
|
messageType: "text";
|
|
@@ -852,11 +860,25 @@ interface ChatMessage {
|
|
|
852
860
|
breakoutGroup?: string;
|
|
853
861
|
broadcast?: boolean;
|
|
854
862
|
parentId?: string;
|
|
863
|
+
file?: ChatFileShare;
|
|
855
864
|
}
|
|
856
865
|
interface ChatMessageRemoved {
|
|
857
866
|
id: string;
|
|
858
867
|
requestedByClientId: string;
|
|
859
868
|
}
|
|
869
|
+
declare const FILE_SHARE_ERROR_CODES: readonly ["file_sharing_not_available", "file_sharing_not_enabled", "not_in_a_room_session"];
|
|
870
|
+
type FileShareErrorCode = (typeof FILE_SHARE_ERROR_CODES)[number];
|
|
871
|
+
interface ChatMessageError {
|
|
872
|
+
error: FileShareErrorCode;
|
|
873
|
+
}
|
|
874
|
+
declare function isFileShareError(payload: ChatMessage | ChatMessageError): payload is ChatMessageError;
|
|
875
|
+
interface FileUploadUrl {
|
|
876
|
+
downloadUrl: string;
|
|
877
|
+
uploadUrl: {
|
|
878
|
+
url: string;
|
|
879
|
+
fields: Record<string, string>;
|
|
880
|
+
};
|
|
881
|
+
}
|
|
860
882
|
interface CloudRecordingStartedEvent {
|
|
861
883
|
error?: string;
|
|
862
884
|
startedAt?: string;
|
|
@@ -989,6 +1011,7 @@ type SignalRoom = {
|
|
|
989
1011
|
mode: RoomMode;
|
|
990
1012
|
name: string;
|
|
991
1013
|
organizationId: string;
|
|
1014
|
+
liveTranscriptionId?: string;
|
|
992
1015
|
spotlights: Spotlight[];
|
|
993
1016
|
session: {
|
|
994
1017
|
createdAt: string;
|
|
@@ -1071,6 +1094,17 @@ interface SpotlightRemovedEvent {
|
|
|
1071
1094
|
streamId: string;
|
|
1072
1095
|
requestedByClientId: string;
|
|
1073
1096
|
}
|
|
1097
|
+
interface LiveCaptionsStartedEvent {
|
|
1098
|
+
error?: string;
|
|
1099
|
+
}
|
|
1100
|
+
interface LiveCaptionsStoppedEvent {
|
|
1101
|
+
error?: string;
|
|
1102
|
+
}
|
|
1103
|
+
interface LiveCaptionEvent {
|
|
1104
|
+
senderId: string;
|
|
1105
|
+
resultId: string;
|
|
1106
|
+
text: string;
|
|
1107
|
+
}
|
|
1074
1108
|
interface LiveTranscriptionStartedEvent {
|
|
1075
1109
|
transcriptionId?: string;
|
|
1076
1110
|
error?: string;
|
|
@@ -1091,7 +1125,7 @@ interface SignalEvents {
|
|
|
1091
1125
|
client_unable_to_join: ClientUnableToJoinEvent;
|
|
1092
1126
|
cloud_recording_started: CloudRecordingStartedEvent;
|
|
1093
1127
|
cloud_recording_stopped: void;
|
|
1094
|
-
chat_message: ChatMessage;
|
|
1128
|
+
chat_message: ChatMessage | ChatMessageError;
|
|
1095
1129
|
chat_message_removed: ChatMessageRemoved;
|
|
1096
1130
|
connect: void;
|
|
1097
1131
|
connect_error: void;
|
|
@@ -1114,14 +1148,16 @@ interface SignalEvents {
|
|
|
1114
1148
|
video_enable_requested: VideoEnableRequestedEvent;
|
|
1115
1149
|
live_transcription_started: LiveTranscriptionStartedEvent;
|
|
1116
1150
|
live_transcription_stopped: LiveTranscriptionStoppedEvent;
|
|
1117
|
-
live_captions_started:
|
|
1118
|
-
live_captions_stopped:
|
|
1151
|
+
live_captions_started: LiveCaptionsStartedEvent;
|
|
1152
|
+
live_captions_stopped: LiveCaptionsStoppedEvent;
|
|
1153
|
+
live_caption: LiveCaptionEvent;
|
|
1119
1154
|
}
|
|
1120
1155
|
interface ChatMessageRequest {
|
|
1121
1156
|
text: string;
|
|
1122
1157
|
parentId?: string;
|
|
1123
1158
|
breakoutGroup?: string;
|
|
1124
1159
|
broadcast?: boolean;
|
|
1160
|
+
file?: ChatFileShare;
|
|
1125
1161
|
}
|
|
1126
1162
|
interface IdentifyDeviceRequest {
|
|
1127
1163
|
deviceCredentials: Credentials;
|
|
@@ -1186,7 +1222,16 @@ interface SignalRequests {
|
|
|
1186
1222
|
join_room: JoinRoomRequest;
|
|
1187
1223
|
knock_room: KnockRoomRequest;
|
|
1188
1224
|
leave_room: void;
|
|
1225
|
+
live_captions_enabled: void;
|
|
1226
|
+
live_captions_disabled: void;
|
|
1189
1227
|
remove_spotlight: RemoveSpotlightRequest;
|
|
1228
|
+
request_file_upload_url: {
|
|
1229
|
+
files: {
|
|
1230
|
+
name: string;
|
|
1231
|
+
size: number;
|
|
1232
|
+
type: string;
|
|
1233
|
+
}[];
|
|
1234
|
+
};
|
|
1190
1235
|
request_audio_enable: AudioEnableRequest;
|
|
1191
1236
|
request_video_enable: VideoEnableRequest;
|
|
1192
1237
|
send_client_metadata: {
|
|
@@ -2046,5 +2091,5 @@ declare class VegaRtcManager implements RtcManager {
|
|
|
2046
2091
|
hasClient(clientId: string): boolean;
|
|
2047
2092
|
}
|
|
2048
2093
|
|
|
2049
|
-
export { ADDITIONAL_SCREEN_SHARE_SETTINGS, AUDIO_SETTINGS, BandwidthTester, CAMERA_STREAM_ID, EVENTS, KNOCK_MESSAGES, KalmanFilter, Logger, MEDIA_JITTER_BUFFER_TARGET, NoDevicesError, P2pRtcManager, PROTOCOL_ERRORS, PROTOCOL_EVENTS, PROTOCOL_REQUESTS, PROTOCOL_RESPONSES, RELAY_MESSAGES, ReconnectManager, RtcEventNames, RtcManagerDispatcher, SCREEN_SHARE_SETTINGS, SCREEN_SHARE_SIMULCAST_SETTINGS, STREAM_TYPES, ServerSocket, Session, SfuV2Parser, TYPES, VIDEO_SETTINGS_HD, VIDEO_SETTINGS_SD, VIDEO_SETTINGS_VP9, VIDEO_SETTINGS_VP9_LOW_BANDWIDTH, VegaConnection, VegaMediaQualityMonitor, VegaRtcManager, addAbsCaptureTimeExtMap, addExtMap, assert, buildDeviceList, calculateStd, captureAudioSsrcMetrics, captureCandidatePairInfoMetrics, captureCommonSsrcMetrics, captureSsrcInfo, captureVideoSsrcMetrics, cleanSdp, compareLocalDevices, createACFCalculator, createMicAnalyser, createWorker, deprioritizeH264, detectMicrophoneNotWorking, enumerate, external_stun_servers, filterMidExtension, filterMsidSemantic, fromLocation, generateByteString, getConstraints, getCurrentPeerConnections, getDeviceData, getDisplayMedia, getIssuesAndMetrics, getMediaConstraints, getMediaSettings, getMediasoupDeviceAsync, getNumFailedStatsReports, getNumFailedTrackSsrcLookups, getNumMissingTrackSsrcLookups, getPeerConnectionIndex, getStats, getStream, getUpdatedDevices, getUpdatedStats, getUserMedia, hasGetDisplayMedia, ipRegex, isMobile, issueDetectorOrMetricEnabled, maybeTurnOnly, modifyMediaCapabilities, removePeerConnection, replaceTracksInStream, _default as rtcManagerEvents, rtcStats, setClientProvider, setCodecPreferenceSDP, setPeerConnectionsForTests, setVideoBandwidthUsingSetParameters, sortCodecs, standardDeviation, startPerformanceMonitor, stopStreamTracks, subscribeIssues, subscribeStats, trackAnnotations, turnServerOverride, variance };
|
|
2050
|
-
export type { AddCameraStreamOptions, AddSpotlightRequest, AudioEnableRequest, AudioEnableRequestedEvent, AudioEnabledEvent, BreakoutConfig, BreakoutGroupJoinedEvent, BreakoutSessionUpdatedEvent, BuildDeviceListOptions, CannotJoinUnclaimedRoomError, ChatMessage, ChatMessageRemoved, ChatMessageRequest, ClearableTimeout, ClientKickedEvent, ClientLeftEvent, ClientMetadataPayload, ClientMetadataReceivedEvent, ClientRole, ClientUnableToJoinEvent, CloudRecordingStartedEvent, Codec, ConnectionStatus, Credentials, ForbiddenError, ForbiddenErrorNames, GetConstraintsOptions, GetDeviceDataResult, GetMediaConstraintsOptions, GetStreamOptions, GetStreamResult, GetUpdatedDevicesResult, GetUserMediaAttempt, GetUserMediaAttemptOutcome, HostPresenceControlsError, IdentifyDeviceRequest, InternalServerError, InvalidAssistantKeyError, IssuesAndMetricsByView, JoinRoomRequest, KnockAcceptedEvent, KnockRejectedEvent, KnockRoomRequest, KnockerLeftEvent, LiveTranscriptionStartedEvent, LiveTranscriptionStoppedEvent, MaxViewerLimitReachedError, MediaPrefs, Metric, NewClientEvent, OrganizationAssistantNotEnabledError, OrganizationAssistantNotFoundError, OrganizationPlanExhaustedError, RemoveScreenshareStreamOptions, RemoveSpotlightRequest, RoleName, RoomConcurrencyControlsError, RoomEmptyError, RoomFullError, RoomJoinPermissionDeniedError, RoomJoinedErrors, RoomJoinedEvent, RoomJoinedSuccess, RoomKnockedEvent, RoomLockedError, RoomLockedEvent, RoomMeetingTimeExhaustedError, RoomMode, RoomSessionEndedEvent, RtcClientConnectionStatusChangedPayload, RtcEventEmitter, RtcEvents, RtcLocalStreamTrackAddedPayload, RtcLocalStreamTrackRemovedPayload, RtcManager, RtcManagerCreatedPayload, RtcManagerOptions, RtcStreamAddedPayload, ScreenshareStartedEvent, ScreenshareStoppedEvent, SendClientMetadataRequest, SignalClient, SignalEvents, SignalIceCandidateMessage, SignalIceEndOfCandidatesMessage, SignalIceServer, SignalKnocker, SignalMediaServerConfig, SignalRTCSessionDescription, SignalReadyToReceiveOfferMessage, SignalRequests, SignalRoom, SignalSDPMessage, SignalSFUServer, SignalTurnServer, SocketConf, SocketManager, Spotlight, SpotlightAddedEvent, SpotlightRemovedEvent, StatsMonitorOptions, StatsMonitorState, StatsSubscription, TurnTransportProtocol, UniqueRoleAlreadyInRoomError, UpdatedDeviceInfo, UpdatedDevicesInfo, VegaConnectionOptions, VegaRtcManagerOptions, VideoEnableRequest, VideoEnableRequestedEvent, VideoEnabledEvent, WebRTCProvider };
|
|
2094
|
+
export { ADDITIONAL_SCREEN_SHARE_SETTINGS, AUDIO_SETTINGS, BandwidthTester, CAMERA_STREAM_ID, EVENTS, FILE_SHARE_ERROR_CODES, KNOCK_MESSAGES, KalmanFilter, Logger, MEDIA_JITTER_BUFFER_TARGET, NoDevicesError, P2pRtcManager, PROTOCOL_ERRORS, PROTOCOL_EVENTS, PROTOCOL_REQUESTS, PROTOCOL_RESPONSES, RELAY_MESSAGES, ReconnectManager, RtcEventNames, RtcManagerDispatcher, SCREEN_SHARE_SETTINGS, SCREEN_SHARE_SIMULCAST_SETTINGS, STREAM_TYPES, ServerSocket, Session, SfuV2Parser, TYPES, VIDEO_SETTINGS_HD, VIDEO_SETTINGS_SD, VIDEO_SETTINGS_VP9, VIDEO_SETTINGS_VP9_LOW_BANDWIDTH, VegaConnection, VegaMediaQualityMonitor, VegaRtcManager, addAbsCaptureTimeExtMap, addExtMap, assert, buildDeviceList, calculateStd, captureAudioSsrcMetrics, captureCandidatePairInfoMetrics, captureCommonSsrcMetrics, captureSsrcInfo, captureVideoSsrcMetrics, cleanSdp, compareLocalDevices, createACFCalculator, createMicAnalyser, createWorker, deprioritizeH264, detectMicrophoneNotWorking, enumerate, external_stun_servers, filterMidExtension, filterMsidSemantic, fromLocation, generateByteString, getConstraints, getCurrentPeerConnections, getDeviceData, getDisplayMedia, getIssuesAndMetrics, getMediaConstraints, getMediaSettings, getMediasoupDeviceAsync, getNumFailedStatsReports, getNumFailedTrackSsrcLookups, getNumMissingTrackSsrcLookups, getPeerConnectionIndex, getStats, getStream, getUpdatedDevices, getUpdatedStats, getUserMedia, hasGetDisplayMedia, ipRegex, isFileShareError, isMobile, issueDetectorOrMetricEnabled, maybeTurnOnly, modifyMediaCapabilities, removePeerConnection, replaceTracksInStream, _default as rtcManagerEvents, rtcStats, setClientProvider, setCodecPreferenceSDP, setPeerConnectionsForTests, setVideoBandwidthUsingSetParameters, sortCodecs, standardDeviation, startPerformanceMonitor, stopStreamTracks, subscribeIssues, subscribeStats, trackAnnotations, turnServerOverride, variance };
|
|
2095
|
+
export type { AddCameraStreamOptions, AddSpotlightRequest, AudioEnableRequest, AudioEnableRequestedEvent, AudioEnabledEvent, BreakoutConfig, BreakoutGroupJoinedEvent, BreakoutSessionUpdatedEvent, BuildDeviceListOptions, CannotJoinUnclaimedRoomError, ChatFileShare, ChatMessage, ChatMessageError, ChatMessageRemoved, ChatMessageRequest, ClearableTimeout, ClientKickedEvent, ClientLeftEvent, ClientMetadataPayload, ClientMetadataReceivedEvent, ClientRole, ClientUnableToJoinEvent, CloudRecordingStartedEvent, Codec, ConnectionStatus, Credentials, FileShareErrorCode, FileUploadUrl, ForbiddenError, ForbiddenErrorNames, GetConstraintsOptions, GetDeviceDataResult, GetMediaConstraintsOptions, GetStreamOptions, GetStreamResult, GetUpdatedDevicesResult, GetUserMediaAttempt, GetUserMediaAttemptOutcome, HostPresenceControlsError, IdentifyDeviceRequest, InternalServerError, InvalidAssistantKeyError, IssuesAndMetricsByView, JoinRoomRequest, KnockAcceptedEvent, KnockRejectedEvent, KnockRoomRequest, KnockerLeftEvent, LiveCaptionEvent, LiveCaptionsStartedEvent, LiveCaptionsStoppedEvent, LiveTranscriptionStartedEvent, LiveTranscriptionStoppedEvent, MaxViewerLimitReachedError, MediaPrefs, Metric, NewClientEvent, OrganizationAssistantNotEnabledError, OrganizationAssistantNotFoundError, OrganizationPlanExhaustedError, RemoveScreenshareStreamOptions, RemoveSpotlightRequest, RoleName, RoomConcurrencyControlsError, RoomEmptyError, RoomFullError, RoomJoinPermissionDeniedError, RoomJoinedErrors, RoomJoinedEvent, RoomJoinedSuccess, RoomKnockedEvent, RoomLockedError, RoomLockedEvent, RoomMeetingTimeExhaustedError, RoomMode, RoomSessionEndedEvent, RtcClientConnectionStatusChangedPayload, RtcEventEmitter, RtcEvents, RtcLocalStreamTrackAddedPayload, RtcLocalStreamTrackRemovedPayload, RtcManager, RtcManagerCreatedPayload, RtcManagerOptions, RtcStreamAddedPayload, ScreenshareStartedEvent, ScreenshareStoppedEvent, SendClientMetadataRequest, SignalClient, SignalEvents, SignalIceCandidateMessage, SignalIceEndOfCandidatesMessage, SignalIceServer, SignalKnocker, SignalMediaServerConfig, SignalRTCSessionDescription, SignalReadyToReceiveOfferMessage, SignalRequests, SignalRoom, SignalSDPMessage, SignalSFUServer, SignalTurnServer, SocketConf, SocketManager, Spotlight, SpotlightAddedEvent, SpotlightRemovedEvent, StatsMonitorOptions, StatsMonitorState, StatsSubscription, TurnTransportProtocol, UniqueRoleAlreadyInRoomError, UpdatedDeviceInfo, UpdatedDevicesInfo, VegaConnectionOptions, VegaRtcManagerOptions, VideoEnableRequest, VideoEnableRequestedEvent, VideoEnabledEvent, WebRTCProvider };
|
package/dist/index.d.mts
CHANGED
|
@@ -840,6 +840,14 @@ interface BreakoutGroupJoinedEvent {
|
|
|
840
840
|
clientId: string;
|
|
841
841
|
group: string;
|
|
842
842
|
}
|
|
843
|
+
interface ChatFileShare {
|
|
844
|
+
downloadUrl: string;
|
|
845
|
+
name: string;
|
|
846
|
+
size: number;
|
|
847
|
+
type: string;
|
|
848
|
+
key: string;
|
|
849
|
+
id?: string;
|
|
850
|
+
}
|
|
843
851
|
interface ChatMessage {
|
|
844
852
|
id: string;
|
|
845
853
|
messageType: "text";
|
|
@@ -852,11 +860,25 @@ interface ChatMessage {
|
|
|
852
860
|
breakoutGroup?: string;
|
|
853
861
|
broadcast?: boolean;
|
|
854
862
|
parentId?: string;
|
|
863
|
+
file?: ChatFileShare;
|
|
855
864
|
}
|
|
856
865
|
interface ChatMessageRemoved {
|
|
857
866
|
id: string;
|
|
858
867
|
requestedByClientId: string;
|
|
859
868
|
}
|
|
869
|
+
declare const FILE_SHARE_ERROR_CODES: readonly ["file_sharing_not_available", "file_sharing_not_enabled", "not_in_a_room_session"];
|
|
870
|
+
type FileShareErrorCode = (typeof FILE_SHARE_ERROR_CODES)[number];
|
|
871
|
+
interface ChatMessageError {
|
|
872
|
+
error: FileShareErrorCode;
|
|
873
|
+
}
|
|
874
|
+
declare function isFileShareError(payload: ChatMessage | ChatMessageError): payload is ChatMessageError;
|
|
875
|
+
interface FileUploadUrl {
|
|
876
|
+
downloadUrl: string;
|
|
877
|
+
uploadUrl: {
|
|
878
|
+
url: string;
|
|
879
|
+
fields: Record<string, string>;
|
|
880
|
+
};
|
|
881
|
+
}
|
|
860
882
|
interface CloudRecordingStartedEvent {
|
|
861
883
|
error?: string;
|
|
862
884
|
startedAt?: string;
|
|
@@ -989,6 +1011,7 @@ type SignalRoom = {
|
|
|
989
1011
|
mode: RoomMode;
|
|
990
1012
|
name: string;
|
|
991
1013
|
organizationId: string;
|
|
1014
|
+
liveTranscriptionId?: string;
|
|
992
1015
|
spotlights: Spotlight[];
|
|
993
1016
|
session: {
|
|
994
1017
|
createdAt: string;
|
|
@@ -1071,6 +1094,17 @@ interface SpotlightRemovedEvent {
|
|
|
1071
1094
|
streamId: string;
|
|
1072
1095
|
requestedByClientId: string;
|
|
1073
1096
|
}
|
|
1097
|
+
interface LiveCaptionsStartedEvent {
|
|
1098
|
+
error?: string;
|
|
1099
|
+
}
|
|
1100
|
+
interface LiveCaptionsStoppedEvent {
|
|
1101
|
+
error?: string;
|
|
1102
|
+
}
|
|
1103
|
+
interface LiveCaptionEvent {
|
|
1104
|
+
senderId: string;
|
|
1105
|
+
resultId: string;
|
|
1106
|
+
text: string;
|
|
1107
|
+
}
|
|
1074
1108
|
interface LiveTranscriptionStartedEvent {
|
|
1075
1109
|
transcriptionId?: string;
|
|
1076
1110
|
error?: string;
|
|
@@ -1091,7 +1125,7 @@ interface SignalEvents {
|
|
|
1091
1125
|
client_unable_to_join: ClientUnableToJoinEvent;
|
|
1092
1126
|
cloud_recording_started: CloudRecordingStartedEvent;
|
|
1093
1127
|
cloud_recording_stopped: void;
|
|
1094
|
-
chat_message: ChatMessage;
|
|
1128
|
+
chat_message: ChatMessage | ChatMessageError;
|
|
1095
1129
|
chat_message_removed: ChatMessageRemoved;
|
|
1096
1130
|
connect: void;
|
|
1097
1131
|
connect_error: void;
|
|
@@ -1114,14 +1148,16 @@ interface SignalEvents {
|
|
|
1114
1148
|
video_enable_requested: VideoEnableRequestedEvent;
|
|
1115
1149
|
live_transcription_started: LiveTranscriptionStartedEvent;
|
|
1116
1150
|
live_transcription_stopped: LiveTranscriptionStoppedEvent;
|
|
1117
|
-
live_captions_started:
|
|
1118
|
-
live_captions_stopped:
|
|
1151
|
+
live_captions_started: LiveCaptionsStartedEvent;
|
|
1152
|
+
live_captions_stopped: LiveCaptionsStoppedEvent;
|
|
1153
|
+
live_caption: LiveCaptionEvent;
|
|
1119
1154
|
}
|
|
1120
1155
|
interface ChatMessageRequest {
|
|
1121
1156
|
text: string;
|
|
1122
1157
|
parentId?: string;
|
|
1123
1158
|
breakoutGroup?: string;
|
|
1124
1159
|
broadcast?: boolean;
|
|
1160
|
+
file?: ChatFileShare;
|
|
1125
1161
|
}
|
|
1126
1162
|
interface IdentifyDeviceRequest {
|
|
1127
1163
|
deviceCredentials: Credentials;
|
|
@@ -1186,7 +1222,16 @@ interface SignalRequests {
|
|
|
1186
1222
|
join_room: JoinRoomRequest;
|
|
1187
1223
|
knock_room: KnockRoomRequest;
|
|
1188
1224
|
leave_room: void;
|
|
1225
|
+
live_captions_enabled: void;
|
|
1226
|
+
live_captions_disabled: void;
|
|
1189
1227
|
remove_spotlight: RemoveSpotlightRequest;
|
|
1228
|
+
request_file_upload_url: {
|
|
1229
|
+
files: {
|
|
1230
|
+
name: string;
|
|
1231
|
+
size: number;
|
|
1232
|
+
type: string;
|
|
1233
|
+
}[];
|
|
1234
|
+
};
|
|
1190
1235
|
request_audio_enable: AudioEnableRequest;
|
|
1191
1236
|
request_video_enable: VideoEnableRequest;
|
|
1192
1237
|
send_client_metadata: {
|
|
@@ -2046,5 +2091,5 @@ declare class VegaRtcManager implements RtcManager {
|
|
|
2046
2091
|
hasClient(clientId: string): boolean;
|
|
2047
2092
|
}
|
|
2048
2093
|
|
|
2049
|
-
export { ADDITIONAL_SCREEN_SHARE_SETTINGS, AUDIO_SETTINGS, BandwidthTester, CAMERA_STREAM_ID, EVENTS, KNOCK_MESSAGES, KalmanFilter, Logger, MEDIA_JITTER_BUFFER_TARGET, NoDevicesError, P2pRtcManager, PROTOCOL_ERRORS, PROTOCOL_EVENTS, PROTOCOL_REQUESTS, PROTOCOL_RESPONSES, RELAY_MESSAGES, ReconnectManager, RtcEventNames, RtcManagerDispatcher, SCREEN_SHARE_SETTINGS, SCREEN_SHARE_SIMULCAST_SETTINGS, STREAM_TYPES, ServerSocket, Session, SfuV2Parser, TYPES, VIDEO_SETTINGS_HD, VIDEO_SETTINGS_SD, VIDEO_SETTINGS_VP9, VIDEO_SETTINGS_VP9_LOW_BANDWIDTH, VegaConnection, VegaMediaQualityMonitor, VegaRtcManager, addAbsCaptureTimeExtMap, addExtMap, assert, buildDeviceList, calculateStd, captureAudioSsrcMetrics, captureCandidatePairInfoMetrics, captureCommonSsrcMetrics, captureSsrcInfo, captureVideoSsrcMetrics, cleanSdp, compareLocalDevices, createACFCalculator, createMicAnalyser, createWorker, deprioritizeH264, detectMicrophoneNotWorking, enumerate, external_stun_servers, filterMidExtension, filterMsidSemantic, fromLocation, generateByteString, getConstraints, getCurrentPeerConnections, getDeviceData, getDisplayMedia, getIssuesAndMetrics, getMediaConstraints, getMediaSettings, getMediasoupDeviceAsync, getNumFailedStatsReports, getNumFailedTrackSsrcLookups, getNumMissingTrackSsrcLookups, getPeerConnectionIndex, getStats, getStream, getUpdatedDevices, getUpdatedStats, getUserMedia, hasGetDisplayMedia, ipRegex, isMobile, issueDetectorOrMetricEnabled, maybeTurnOnly, modifyMediaCapabilities, removePeerConnection, replaceTracksInStream, _default as rtcManagerEvents, rtcStats, setClientProvider, setCodecPreferenceSDP, setPeerConnectionsForTests, setVideoBandwidthUsingSetParameters, sortCodecs, standardDeviation, startPerformanceMonitor, stopStreamTracks, subscribeIssues, subscribeStats, trackAnnotations, turnServerOverride, variance };
|
|
2050
|
-
export type { AddCameraStreamOptions, AddSpotlightRequest, AudioEnableRequest, AudioEnableRequestedEvent, AudioEnabledEvent, BreakoutConfig, BreakoutGroupJoinedEvent, BreakoutSessionUpdatedEvent, BuildDeviceListOptions, CannotJoinUnclaimedRoomError, ChatMessage, ChatMessageRemoved, ChatMessageRequest, ClearableTimeout, ClientKickedEvent, ClientLeftEvent, ClientMetadataPayload, ClientMetadataReceivedEvent, ClientRole, ClientUnableToJoinEvent, CloudRecordingStartedEvent, Codec, ConnectionStatus, Credentials, ForbiddenError, ForbiddenErrorNames, GetConstraintsOptions, GetDeviceDataResult, GetMediaConstraintsOptions, GetStreamOptions, GetStreamResult, GetUpdatedDevicesResult, GetUserMediaAttempt, GetUserMediaAttemptOutcome, HostPresenceControlsError, IdentifyDeviceRequest, InternalServerError, InvalidAssistantKeyError, IssuesAndMetricsByView, JoinRoomRequest, KnockAcceptedEvent, KnockRejectedEvent, KnockRoomRequest, KnockerLeftEvent, LiveTranscriptionStartedEvent, LiveTranscriptionStoppedEvent, MaxViewerLimitReachedError, MediaPrefs, Metric, NewClientEvent, OrganizationAssistantNotEnabledError, OrganizationAssistantNotFoundError, OrganizationPlanExhaustedError, RemoveScreenshareStreamOptions, RemoveSpotlightRequest, RoleName, RoomConcurrencyControlsError, RoomEmptyError, RoomFullError, RoomJoinPermissionDeniedError, RoomJoinedErrors, RoomJoinedEvent, RoomJoinedSuccess, RoomKnockedEvent, RoomLockedError, RoomLockedEvent, RoomMeetingTimeExhaustedError, RoomMode, RoomSessionEndedEvent, RtcClientConnectionStatusChangedPayload, RtcEventEmitter, RtcEvents, RtcLocalStreamTrackAddedPayload, RtcLocalStreamTrackRemovedPayload, RtcManager, RtcManagerCreatedPayload, RtcManagerOptions, RtcStreamAddedPayload, ScreenshareStartedEvent, ScreenshareStoppedEvent, SendClientMetadataRequest, SignalClient, SignalEvents, SignalIceCandidateMessage, SignalIceEndOfCandidatesMessage, SignalIceServer, SignalKnocker, SignalMediaServerConfig, SignalRTCSessionDescription, SignalReadyToReceiveOfferMessage, SignalRequests, SignalRoom, SignalSDPMessage, SignalSFUServer, SignalTurnServer, SocketConf, SocketManager, Spotlight, SpotlightAddedEvent, SpotlightRemovedEvent, StatsMonitorOptions, StatsMonitorState, StatsSubscription, TurnTransportProtocol, UniqueRoleAlreadyInRoomError, UpdatedDeviceInfo, UpdatedDevicesInfo, VegaConnectionOptions, VegaRtcManagerOptions, VideoEnableRequest, VideoEnableRequestedEvent, VideoEnabledEvent, WebRTCProvider };
|
|
2094
|
+
export { ADDITIONAL_SCREEN_SHARE_SETTINGS, AUDIO_SETTINGS, BandwidthTester, CAMERA_STREAM_ID, EVENTS, FILE_SHARE_ERROR_CODES, KNOCK_MESSAGES, KalmanFilter, Logger, MEDIA_JITTER_BUFFER_TARGET, NoDevicesError, P2pRtcManager, PROTOCOL_ERRORS, PROTOCOL_EVENTS, PROTOCOL_REQUESTS, PROTOCOL_RESPONSES, RELAY_MESSAGES, ReconnectManager, RtcEventNames, RtcManagerDispatcher, SCREEN_SHARE_SETTINGS, SCREEN_SHARE_SIMULCAST_SETTINGS, STREAM_TYPES, ServerSocket, Session, SfuV2Parser, TYPES, VIDEO_SETTINGS_HD, VIDEO_SETTINGS_SD, VIDEO_SETTINGS_VP9, VIDEO_SETTINGS_VP9_LOW_BANDWIDTH, VegaConnection, VegaMediaQualityMonitor, VegaRtcManager, addAbsCaptureTimeExtMap, addExtMap, assert, buildDeviceList, calculateStd, captureAudioSsrcMetrics, captureCandidatePairInfoMetrics, captureCommonSsrcMetrics, captureSsrcInfo, captureVideoSsrcMetrics, cleanSdp, compareLocalDevices, createACFCalculator, createMicAnalyser, createWorker, deprioritizeH264, detectMicrophoneNotWorking, enumerate, external_stun_servers, filterMidExtension, filterMsidSemantic, fromLocation, generateByteString, getConstraints, getCurrentPeerConnections, getDeviceData, getDisplayMedia, getIssuesAndMetrics, getMediaConstraints, getMediaSettings, getMediasoupDeviceAsync, getNumFailedStatsReports, getNumFailedTrackSsrcLookups, getNumMissingTrackSsrcLookups, getPeerConnectionIndex, getStats, getStream, getUpdatedDevices, getUpdatedStats, getUserMedia, hasGetDisplayMedia, ipRegex, isFileShareError, isMobile, issueDetectorOrMetricEnabled, maybeTurnOnly, modifyMediaCapabilities, removePeerConnection, replaceTracksInStream, _default as rtcManagerEvents, rtcStats, setClientProvider, setCodecPreferenceSDP, setPeerConnectionsForTests, setVideoBandwidthUsingSetParameters, sortCodecs, standardDeviation, startPerformanceMonitor, stopStreamTracks, subscribeIssues, subscribeStats, trackAnnotations, turnServerOverride, variance };
|
|
2095
|
+
export type { AddCameraStreamOptions, AddSpotlightRequest, AudioEnableRequest, AudioEnableRequestedEvent, AudioEnabledEvent, BreakoutConfig, BreakoutGroupJoinedEvent, BreakoutSessionUpdatedEvent, BuildDeviceListOptions, CannotJoinUnclaimedRoomError, ChatFileShare, ChatMessage, ChatMessageError, ChatMessageRemoved, ChatMessageRequest, ClearableTimeout, ClientKickedEvent, ClientLeftEvent, ClientMetadataPayload, ClientMetadataReceivedEvent, ClientRole, ClientUnableToJoinEvent, CloudRecordingStartedEvent, Codec, ConnectionStatus, Credentials, FileShareErrorCode, FileUploadUrl, ForbiddenError, ForbiddenErrorNames, GetConstraintsOptions, GetDeviceDataResult, GetMediaConstraintsOptions, GetStreamOptions, GetStreamResult, GetUpdatedDevicesResult, GetUserMediaAttempt, GetUserMediaAttemptOutcome, HostPresenceControlsError, IdentifyDeviceRequest, InternalServerError, InvalidAssistantKeyError, IssuesAndMetricsByView, JoinRoomRequest, KnockAcceptedEvent, KnockRejectedEvent, KnockRoomRequest, KnockerLeftEvent, LiveCaptionEvent, LiveCaptionsStartedEvent, LiveCaptionsStoppedEvent, LiveTranscriptionStartedEvent, LiveTranscriptionStoppedEvent, MaxViewerLimitReachedError, MediaPrefs, Metric, NewClientEvent, OrganizationAssistantNotEnabledError, OrganizationAssistantNotFoundError, OrganizationPlanExhaustedError, RemoveScreenshareStreamOptions, RemoveSpotlightRequest, RoleName, RoomConcurrencyControlsError, RoomEmptyError, RoomFullError, RoomJoinPermissionDeniedError, RoomJoinedErrors, RoomJoinedEvent, RoomJoinedSuccess, RoomKnockedEvent, RoomLockedError, RoomLockedEvent, RoomMeetingTimeExhaustedError, RoomMode, RoomSessionEndedEvent, RtcClientConnectionStatusChangedPayload, RtcEventEmitter, RtcEvents, RtcLocalStreamTrackAddedPayload, RtcLocalStreamTrackRemovedPayload, RtcManager, RtcManagerCreatedPayload, RtcManagerOptions, RtcStreamAddedPayload, ScreenshareStartedEvent, ScreenshareStoppedEvent, SendClientMetadataRequest, SignalClient, SignalEvents, SignalIceCandidateMessage, SignalIceEndOfCandidatesMessage, SignalIceServer, SignalKnocker, SignalMediaServerConfig, SignalRTCSessionDescription, SignalReadyToReceiveOfferMessage, SignalRequests, SignalRoom, SignalSDPMessage, SignalSFUServer, SignalTurnServer, SocketConf, SocketManager, Spotlight, SpotlightAddedEvent, SpotlightRemovedEvent, StatsMonitorOptions, StatsMonitorState, StatsSubscription, TurnTransportProtocol, UniqueRoleAlreadyInRoomError, UpdatedDeviceInfo, UpdatedDevicesInfo, VegaConnectionOptions, VegaRtcManagerOptions, VideoEnableRequest, VideoEnableRequestedEvent, VideoEnabledEvent, WebRTCProvider };
|
package/dist/index.d.ts
CHANGED
|
@@ -840,6 +840,14 @@ interface BreakoutGroupJoinedEvent {
|
|
|
840
840
|
clientId: string;
|
|
841
841
|
group: string;
|
|
842
842
|
}
|
|
843
|
+
interface ChatFileShare {
|
|
844
|
+
downloadUrl: string;
|
|
845
|
+
name: string;
|
|
846
|
+
size: number;
|
|
847
|
+
type: string;
|
|
848
|
+
key: string;
|
|
849
|
+
id?: string;
|
|
850
|
+
}
|
|
843
851
|
interface ChatMessage {
|
|
844
852
|
id: string;
|
|
845
853
|
messageType: "text";
|
|
@@ -852,11 +860,25 @@ interface ChatMessage {
|
|
|
852
860
|
breakoutGroup?: string;
|
|
853
861
|
broadcast?: boolean;
|
|
854
862
|
parentId?: string;
|
|
863
|
+
file?: ChatFileShare;
|
|
855
864
|
}
|
|
856
865
|
interface ChatMessageRemoved {
|
|
857
866
|
id: string;
|
|
858
867
|
requestedByClientId: string;
|
|
859
868
|
}
|
|
869
|
+
declare const FILE_SHARE_ERROR_CODES: readonly ["file_sharing_not_available", "file_sharing_not_enabled", "not_in_a_room_session"];
|
|
870
|
+
type FileShareErrorCode = (typeof FILE_SHARE_ERROR_CODES)[number];
|
|
871
|
+
interface ChatMessageError {
|
|
872
|
+
error: FileShareErrorCode;
|
|
873
|
+
}
|
|
874
|
+
declare function isFileShareError(payload: ChatMessage | ChatMessageError): payload is ChatMessageError;
|
|
875
|
+
interface FileUploadUrl {
|
|
876
|
+
downloadUrl: string;
|
|
877
|
+
uploadUrl: {
|
|
878
|
+
url: string;
|
|
879
|
+
fields: Record<string, string>;
|
|
880
|
+
};
|
|
881
|
+
}
|
|
860
882
|
interface CloudRecordingStartedEvent {
|
|
861
883
|
error?: string;
|
|
862
884
|
startedAt?: string;
|
|
@@ -989,6 +1011,7 @@ type SignalRoom = {
|
|
|
989
1011
|
mode: RoomMode;
|
|
990
1012
|
name: string;
|
|
991
1013
|
organizationId: string;
|
|
1014
|
+
liveTranscriptionId?: string;
|
|
992
1015
|
spotlights: Spotlight[];
|
|
993
1016
|
session: {
|
|
994
1017
|
createdAt: string;
|
|
@@ -1071,6 +1094,17 @@ interface SpotlightRemovedEvent {
|
|
|
1071
1094
|
streamId: string;
|
|
1072
1095
|
requestedByClientId: string;
|
|
1073
1096
|
}
|
|
1097
|
+
interface LiveCaptionsStartedEvent {
|
|
1098
|
+
error?: string;
|
|
1099
|
+
}
|
|
1100
|
+
interface LiveCaptionsStoppedEvent {
|
|
1101
|
+
error?: string;
|
|
1102
|
+
}
|
|
1103
|
+
interface LiveCaptionEvent {
|
|
1104
|
+
senderId: string;
|
|
1105
|
+
resultId: string;
|
|
1106
|
+
text: string;
|
|
1107
|
+
}
|
|
1074
1108
|
interface LiveTranscriptionStartedEvent {
|
|
1075
1109
|
transcriptionId?: string;
|
|
1076
1110
|
error?: string;
|
|
@@ -1091,7 +1125,7 @@ interface SignalEvents {
|
|
|
1091
1125
|
client_unable_to_join: ClientUnableToJoinEvent;
|
|
1092
1126
|
cloud_recording_started: CloudRecordingStartedEvent;
|
|
1093
1127
|
cloud_recording_stopped: void;
|
|
1094
|
-
chat_message: ChatMessage;
|
|
1128
|
+
chat_message: ChatMessage | ChatMessageError;
|
|
1095
1129
|
chat_message_removed: ChatMessageRemoved;
|
|
1096
1130
|
connect: void;
|
|
1097
1131
|
connect_error: void;
|
|
@@ -1114,14 +1148,16 @@ interface SignalEvents {
|
|
|
1114
1148
|
video_enable_requested: VideoEnableRequestedEvent;
|
|
1115
1149
|
live_transcription_started: LiveTranscriptionStartedEvent;
|
|
1116
1150
|
live_transcription_stopped: LiveTranscriptionStoppedEvent;
|
|
1117
|
-
live_captions_started:
|
|
1118
|
-
live_captions_stopped:
|
|
1151
|
+
live_captions_started: LiveCaptionsStartedEvent;
|
|
1152
|
+
live_captions_stopped: LiveCaptionsStoppedEvent;
|
|
1153
|
+
live_caption: LiveCaptionEvent;
|
|
1119
1154
|
}
|
|
1120
1155
|
interface ChatMessageRequest {
|
|
1121
1156
|
text: string;
|
|
1122
1157
|
parentId?: string;
|
|
1123
1158
|
breakoutGroup?: string;
|
|
1124
1159
|
broadcast?: boolean;
|
|
1160
|
+
file?: ChatFileShare;
|
|
1125
1161
|
}
|
|
1126
1162
|
interface IdentifyDeviceRequest {
|
|
1127
1163
|
deviceCredentials: Credentials;
|
|
@@ -1186,7 +1222,16 @@ interface SignalRequests {
|
|
|
1186
1222
|
join_room: JoinRoomRequest;
|
|
1187
1223
|
knock_room: KnockRoomRequest;
|
|
1188
1224
|
leave_room: void;
|
|
1225
|
+
live_captions_enabled: void;
|
|
1226
|
+
live_captions_disabled: void;
|
|
1189
1227
|
remove_spotlight: RemoveSpotlightRequest;
|
|
1228
|
+
request_file_upload_url: {
|
|
1229
|
+
files: {
|
|
1230
|
+
name: string;
|
|
1231
|
+
size: number;
|
|
1232
|
+
type: string;
|
|
1233
|
+
}[];
|
|
1234
|
+
};
|
|
1190
1235
|
request_audio_enable: AudioEnableRequest;
|
|
1191
1236
|
request_video_enable: VideoEnableRequest;
|
|
1192
1237
|
send_client_metadata: {
|
|
@@ -2046,5 +2091,5 @@ declare class VegaRtcManager implements RtcManager {
|
|
|
2046
2091
|
hasClient(clientId: string): boolean;
|
|
2047
2092
|
}
|
|
2048
2093
|
|
|
2049
|
-
export { ADDITIONAL_SCREEN_SHARE_SETTINGS, AUDIO_SETTINGS, BandwidthTester, CAMERA_STREAM_ID, EVENTS, KNOCK_MESSAGES, KalmanFilter, Logger, MEDIA_JITTER_BUFFER_TARGET, NoDevicesError, P2pRtcManager, PROTOCOL_ERRORS, PROTOCOL_EVENTS, PROTOCOL_REQUESTS, PROTOCOL_RESPONSES, RELAY_MESSAGES, ReconnectManager, RtcEventNames, RtcManagerDispatcher, SCREEN_SHARE_SETTINGS, SCREEN_SHARE_SIMULCAST_SETTINGS, STREAM_TYPES, ServerSocket, Session, SfuV2Parser, TYPES, VIDEO_SETTINGS_HD, VIDEO_SETTINGS_SD, VIDEO_SETTINGS_VP9, VIDEO_SETTINGS_VP9_LOW_BANDWIDTH, VegaConnection, VegaMediaQualityMonitor, VegaRtcManager, addAbsCaptureTimeExtMap, addExtMap, assert, buildDeviceList, calculateStd, captureAudioSsrcMetrics, captureCandidatePairInfoMetrics, captureCommonSsrcMetrics, captureSsrcInfo, captureVideoSsrcMetrics, cleanSdp, compareLocalDevices, createACFCalculator, createMicAnalyser, createWorker, deprioritizeH264, detectMicrophoneNotWorking, enumerate, external_stun_servers, filterMidExtension, filterMsidSemantic, fromLocation, generateByteString, getConstraints, getCurrentPeerConnections, getDeviceData, getDisplayMedia, getIssuesAndMetrics, getMediaConstraints, getMediaSettings, getMediasoupDeviceAsync, getNumFailedStatsReports, getNumFailedTrackSsrcLookups, getNumMissingTrackSsrcLookups, getPeerConnectionIndex, getStats, getStream, getUpdatedDevices, getUpdatedStats, getUserMedia, hasGetDisplayMedia, ipRegex, isMobile, issueDetectorOrMetricEnabled, maybeTurnOnly, modifyMediaCapabilities, removePeerConnection, replaceTracksInStream, _default as rtcManagerEvents, rtcStats, setClientProvider, setCodecPreferenceSDP, setPeerConnectionsForTests, setVideoBandwidthUsingSetParameters, sortCodecs, standardDeviation, startPerformanceMonitor, stopStreamTracks, subscribeIssues, subscribeStats, trackAnnotations, turnServerOverride, variance };
|
|
2050
|
-
export type { AddCameraStreamOptions, AddSpotlightRequest, AudioEnableRequest, AudioEnableRequestedEvent, AudioEnabledEvent, BreakoutConfig, BreakoutGroupJoinedEvent, BreakoutSessionUpdatedEvent, BuildDeviceListOptions, CannotJoinUnclaimedRoomError, ChatMessage, ChatMessageRemoved, ChatMessageRequest, ClearableTimeout, ClientKickedEvent, ClientLeftEvent, ClientMetadataPayload, ClientMetadataReceivedEvent, ClientRole, ClientUnableToJoinEvent, CloudRecordingStartedEvent, Codec, ConnectionStatus, Credentials, ForbiddenError, ForbiddenErrorNames, GetConstraintsOptions, GetDeviceDataResult, GetMediaConstraintsOptions, GetStreamOptions, GetStreamResult, GetUpdatedDevicesResult, GetUserMediaAttempt, GetUserMediaAttemptOutcome, HostPresenceControlsError, IdentifyDeviceRequest, InternalServerError, InvalidAssistantKeyError, IssuesAndMetricsByView, JoinRoomRequest, KnockAcceptedEvent, KnockRejectedEvent, KnockRoomRequest, KnockerLeftEvent, LiveTranscriptionStartedEvent, LiveTranscriptionStoppedEvent, MaxViewerLimitReachedError, MediaPrefs, Metric, NewClientEvent, OrganizationAssistantNotEnabledError, OrganizationAssistantNotFoundError, OrganizationPlanExhaustedError, RemoveScreenshareStreamOptions, RemoveSpotlightRequest, RoleName, RoomConcurrencyControlsError, RoomEmptyError, RoomFullError, RoomJoinPermissionDeniedError, RoomJoinedErrors, RoomJoinedEvent, RoomJoinedSuccess, RoomKnockedEvent, RoomLockedError, RoomLockedEvent, RoomMeetingTimeExhaustedError, RoomMode, RoomSessionEndedEvent, RtcClientConnectionStatusChangedPayload, RtcEventEmitter, RtcEvents, RtcLocalStreamTrackAddedPayload, RtcLocalStreamTrackRemovedPayload, RtcManager, RtcManagerCreatedPayload, RtcManagerOptions, RtcStreamAddedPayload, ScreenshareStartedEvent, ScreenshareStoppedEvent, SendClientMetadataRequest, SignalClient, SignalEvents, SignalIceCandidateMessage, SignalIceEndOfCandidatesMessage, SignalIceServer, SignalKnocker, SignalMediaServerConfig, SignalRTCSessionDescription, SignalReadyToReceiveOfferMessage, SignalRequests, SignalRoom, SignalSDPMessage, SignalSFUServer, SignalTurnServer, SocketConf, SocketManager, Spotlight, SpotlightAddedEvent, SpotlightRemovedEvent, StatsMonitorOptions, StatsMonitorState, StatsSubscription, TurnTransportProtocol, UniqueRoleAlreadyInRoomError, UpdatedDeviceInfo, UpdatedDevicesInfo, VegaConnectionOptions, VegaRtcManagerOptions, VideoEnableRequest, VideoEnableRequestedEvent, VideoEnabledEvent, WebRTCProvider };
|
|
2094
|
+
export { ADDITIONAL_SCREEN_SHARE_SETTINGS, AUDIO_SETTINGS, BandwidthTester, CAMERA_STREAM_ID, EVENTS, FILE_SHARE_ERROR_CODES, KNOCK_MESSAGES, KalmanFilter, Logger, MEDIA_JITTER_BUFFER_TARGET, NoDevicesError, P2pRtcManager, PROTOCOL_ERRORS, PROTOCOL_EVENTS, PROTOCOL_REQUESTS, PROTOCOL_RESPONSES, RELAY_MESSAGES, ReconnectManager, RtcEventNames, RtcManagerDispatcher, SCREEN_SHARE_SETTINGS, SCREEN_SHARE_SIMULCAST_SETTINGS, STREAM_TYPES, ServerSocket, Session, SfuV2Parser, TYPES, VIDEO_SETTINGS_HD, VIDEO_SETTINGS_SD, VIDEO_SETTINGS_VP9, VIDEO_SETTINGS_VP9_LOW_BANDWIDTH, VegaConnection, VegaMediaQualityMonitor, VegaRtcManager, addAbsCaptureTimeExtMap, addExtMap, assert, buildDeviceList, calculateStd, captureAudioSsrcMetrics, captureCandidatePairInfoMetrics, captureCommonSsrcMetrics, captureSsrcInfo, captureVideoSsrcMetrics, cleanSdp, compareLocalDevices, createACFCalculator, createMicAnalyser, createWorker, deprioritizeH264, detectMicrophoneNotWorking, enumerate, external_stun_servers, filterMidExtension, filterMsidSemantic, fromLocation, generateByteString, getConstraints, getCurrentPeerConnections, getDeviceData, getDisplayMedia, getIssuesAndMetrics, getMediaConstraints, getMediaSettings, getMediasoupDeviceAsync, getNumFailedStatsReports, getNumFailedTrackSsrcLookups, getNumMissingTrackSsrcLookups, getPeerConnectionIndex, getStats, getStream, getUpdatedDevices, getUpdatedStats, getUserMedia, hasGetDisplayMedia, ipRegex, isFileShareError, isMobile, issueDetectorOrMetricEnabled, maybeTurnOnly, modifyMediaCapabilities, removePeerConnection, replaceTracksInStream, _default as rtcManagerEvents, rtcStats, setClientProvider, setCodecPreferenceSDP, setPeerConnectionsForTests, setVideoBandwidthUsingSetParameters, sortCodecs, standardDeviation, startPerformanceMonitor, stopStreamTracks, subscribeIssues, subscribeStats, trackAnnotations, turnServerOverride, variance };
|
|
2095
|
+
export type { AddCameraStreamOptions, AddSpotlightRequest, AudioEnableRequest, AudioEnableRequestedEvent, AudioEnabledEvent, BreakoutConfig, BreakoutGroupJoinedEvent, BreakoutSessionUpdatedEvent, BuildDeviceListOptions, CannotJoinUnclaimedRoomError, ChatFileShare, ChatMessage, ChatMessageError, ChatMessageRemoved, ChatMessageRequest, ClearableTimeout, ClientKickedEvent, ClientLeftEvent, ClientMetadataPayload, ClientMetadataReceivedEvent, ClientRole, ClientUnableToJoinEvent, CloudRecordingStartedEvent, Codec, ConnectionStatus, Credentials, FileShareErrorCode, FileUploadUrl, ForbiddenError, ForbiddenErrorNames, GetConstraintsOptions, GetDeviceDataResult, GetMediaConstraintsOptions, GetStreamOptions, GetStreamResult, GetUpdatedDevicesResult, GetUserMediaAttempt, GetUserMediaAttemptOutcome, HostPresenceControlsError, IdentifyDeviceRequest, InternalServerError, InvalidAssistantKeyError, IssuesAndMetricsByView, JoinRoomRequest, KnockAcceptedEvent, KnockRejectedEvent, KnockRoomRequest, KnockerLeftEvent, LiveCaptionEvent, LiveCaptionsStartedEvent, LiveCaptionsStoppedEvent, LiveTranscriptionStartedEvent, LiveTranscriptionStoppedEvent, MaxViewerLimitReachedError, MediaPrefs, Metric, NewClientEvent, OrganizationAssistantNotEnabledError, OrganizationAssistantNotFoundError, OrganizationPlanExhaustedError, RemoveScreenshareStreamOptions, RemoveSpotlightRequest, RoleName, RoomConcurrencyControlsError, RoomEmptyError, RoomFullError, RoomJoinPermissionDeniedError, RoomJoinedErrors, RoomJoinedEvent, RoomJoinedSuccess, RoomKnockedEvent, RoomLockedError, RoomLockedEvent, RoomMeetingTimeExhaustedError, RoomMode, RoomSessionEndedEvent, RtcClientConnectionStatusChangedPayload, RtcEventEmitter, RtcEvents, RtcLocalStreamTrackAddedPayload, RtcLocalStreamTrackRemovedPayload, RtcManager, RtcManagerCreatedPayload, RtcManagerOptions, RtcStreamAddedPayload, ScreenshareStartedEvent, ScreenshareStoppedEvent, SendClientMetadataRequest, SignalClient, SignalEvents, SignalIceCandidateMessage, SignalIceEndOfCandidatesMessage, SignalIceServer, SignalKnocker, SignalMediaServerConfig, SignalRTCSessionDescription, SignalReadyToReceiveOfferMessage, SignalRequests, SignalRoom, SignalSDPMessage, SignalSFUServer, SignalTurnServer, SocketConf, SocketManager, Spotlight, SpotlightAddedEvent, SpotlightRemovedEvent, StatsMonitorOptions, StatsMonitorState, StatsSubscription, TurnTransportProtocol, UniqueRoleAlreadyInRoomError, UpdatedDeviceInfo, UpdatedDevicesInfo, VegaConnectionOptions, VegaRtcManagerOptions, VideoEnableRequest, VideoEnableRequestedEvent, VideoEnabledEvent, WebRTCProvider };
|
package/dist/index.mjs
CHANGED
|
@@ -2366,6 +2366,15 @@ const turnServerOverride = (iceServers, overrideHost) => {
|
|
|
2366
2366
|
}
|
|
2367
2367
|
};
|
|
2368
2368
|
|
|
2369
|
+
const FILE_SHARE_ERROR_CODES = [
|
|
2370
|
+
"file_sharing_not_available",
|
|
2371
|
+
"file_sharing_not_enabled",
|
|
2372
|
+
"not_in_a_room_session",
|
|
2373
|
+
];
|
|
2374
|
+
function isFileShareError(payload) {
|
|
2375
|
+
return "error" in payload && FILE_SHARE_ERROR_CODES.includes(payload.error);
|
|
2376
|
+
}
|
|
2377
|
+
|
|
2369
2378
|
const defaultSubdomainPattern = /^(?:([^.]+)[.])?((:?[^.]+[.]){1,}[^.]+)$/;
|
|
2370
2379
|
const localstackPattern = /^(?:([^.]+)-)?(ip-[^.]*[.](?:hereby[.]dev|rfc1918[.]disappear[.]at)(?::\d+|))$/;
|
|
2371
2380
|
const localhostPattern = /^(?:([^.]+)[.])?(localhost:?\d*)/;
|
|
@@ -7399,4 +7408,4 @@ var RtcEventNames;
|
|
|
7399
7408
|
RtcEventNames["stream_added"] = "stream_added";
|
|
7400
7409
|
})(RtcEventNames || (RtcEventNames = {}));
|
|
7401
7410
|
|
|
7402
|
-
export { ADDITIONAL_SCREEN_SHARE_SETTINGS, AUDIO_SETTINGS, BandwidthTester, CAMERA_STREAM_ID, EVENTS, KNOCK_MESSAGES, KalmanFilter, Logger, MEDIA_JITTER_BUFFER_TARGET, NoDevicesError, P2pRtcManager, PROTOCOL_ERRORS, PROTOCOL_EVENTS, PROTOCOL_REQUESTS, PROTOCOL_RESPONSES, RELAY_MESSAGES, ReconnectManager, RtcEventNames, RtcManagerDispatcher, SCREEN_SHARE_SETTINGS, SCREEN_SHARE_SIMULCAST_SETTINGS, STREAM_TYPES, ServerSocket, Session, SfuV2Parser, TYPES, VIDEO_SETTINGS_HD, VIDEO_SETTINGS_SD, VIDEO_SETTINGS_VP9, VIDEO_SETTINGS_VP9_LOW_BANDWIDTH, VegaConnection, VegaMediaQualityMonitor, VegaRtcManager, addAbsCaptureTimeExtMap, addExtMap, assert, buildDeviceList, calculateStd, captureAudioSsrcMetrics, captureCandidatePairInfoMetrics, captureCommonSsrcMetrics, captureSsrcInfo, captureVideoSsrcMetrics, cleanSdp, compareLocalDevices, createACFCalculator, createMicAnalyser, createWorker, deprioritizeH264, detectMicrophoneNotWorking, enumerate, external_stun_servers, filterMidExtension, filterMsidSemantic, fromLocation, generateByteString, getConstraints, getCurrentPeerConnections, getDeviceData, getDisplayMedia, getIssuesAndMetrics, getMediaConstraints, getMediaSettings, getMediasoupDeviceAsync, getNumFailedStatsReports, getNumFailedTrackSsrcLookups, getNumMissingTrackSsrcLookups, getPeerConnectionIndex, getStats, getStream, getUpdatedDevices, getUpdatedStats, getUserMedia, hasGetDisplayMedia, ipRegex, isMobile, issueDetectorOrMetricEnabled, maybeTurnOnly, modifyMediaCapabilities, removePeerConnection, replaceTracksInStream, rtcManagerEvents, rtcStats, setClientProvider, setCodecPreferenceSDP, setPeerConnectionsForTests, setVideoBandwidthUsingSetParameters, sortCodecs, standardDeviation, startPerformanceMonitor, stopStreamTracks, subscribeIssues, subscribeStats, trackAnnotations, turnServerOverride, variance };
|
|
7411
|
+
export { ADDITIONAL_SCREEN_SHARE_SETTINGS, AUDIO_SETTINGS, BandwidthTester, CAMERA_STREAM_ID, EVENTS, FILE_SHARE_ERROR_CODES, KNOCK_MESSAGES, KalmanFilter, Logger, MEDIA_JITTER_BUFFER_TARGET, NoDevicesError, P2pRtcManager, PROTOCOL_ERRORS, PROTOCOL_EVENTS, PROTOCOL_REQUESTS, PROTOCOL_RESPONSES, RELAY_MESSAGES, ReconnectManager, RtcEventNames, RtcManagerDispatcher, SCREEN_SHARE_SETTINGS, SCREEN_SHARE_SIMULCAST_SETTINGS, STREAM_TYPES, ServerSocket, Session, SfuV2Parser, TYPES, VIDEO_SETTINGS_HD, VIDEO_SETTINGS_SD, VIDEO_SETTINGS_VP9, VIDEO_SETTINGS_VP9_LOW_BANDWIDTH, VegaConnection, VegaMediaQualityMonitor, VegaRtcManager, addAbsCaptureTimeExtMap, addExtMap, assert, buildDeviceList, calculateStd, captureAudioSsrcMetrics, captureCandidatePairInfoMetrics, captureCommonSsrcMetrics, captureSsrcInfo, captureVideoSsrcMetrics, cleanSdp, compareLocalDevices, createACFCalculator, createMicAnalyser, createWorker, deprioritizeH264, detectMicrophoneNotWorking, enumerate, external_stun_servers, filterMidExtension, filterMsidSemantic, fromLocation, generateByteString, getConstraints, getCurrentPeerConnections, getDeviceData, getDisplayMedia, getIssuesAndMetrics, getMediaConstraints, getMediaSettings, getMediasoupDeviceAsync, getNumFailedStatsReports, getNumFailedTrackSsrcLookups, getNumMissingTrackSsrcLookups, getPeerConnectionIndex, getStats, getStream, getUpdatedDevices, getUpdatedStats, getUserMedia, hasGetDisplayMedia, ipRegex, isFileShareError, isMobile, issueDetectorOrMetricEnabled, maybeTurnOnly, modifyMediaCapabilities, removePeerConnection, replaceTracksInStream, rtcManagerEvents, rtcStats, setClientProvider, setCodecPreferenceSDP, setPeerConnectionsForTests, setVideoBandwidthUsingSetParameters, sortCodecs, standardDeviation, startPerformanceMonitor, stopStreamTracks, subscribeIssues, subscribeStats, trackAnnotations, turnServerOverride, variance };
|
package/dist/legacy-esm.js
CHANGED
|
@@ -2366,6 +2366,15 @@ const turnServerOverride = (iceServers, overrideHost) => {
|
|
|
2366
2366
|
}
|
|
2367
2367
|
};
|
|
2368
2368
|
|
|
2369
|
+
const FILE_SHARE_ERROR_CODES = [
|
|
2370
|
+
"file_sharing_not_available",
|
|
2371
|
+
"file_sharing_not_enabled",
|
|
2372
|
+
"not_in_a_room_session",
|
|
2373
|
+
];
|
|
2374
|
+
function isFileShareError(payload) {
|
|
2375
|
+
return "error" in payload && FILE_SHARE_ERROR_CODES.includes(payload.error);
|
|
2376
|
+
}
|
|
2377
|
+
|
|
2369
2378
|
const defaultSubdomainPattern = /^(?:([^.]+)[.])?((:?[^.]+[.]){1,}[^.]+)$/;
|
|
2370
2379
|
const localstackPattern = /^(?:([^.]+)-)?(ip-[^.]*[.](?:hereby[.]dev|rfc1918[.]disappear[.]at)(?::\d+|))$/;
|
|
2371
2380
|
const localhostPattern = /^(?:([^.]+)[.])?(localhost:?\d*)/;
|
|
@@ -7399,5 +7408,5 @@ var RtcEventNames;
|
|
|
7399
7408
|
RtcEventNames["stream_added"] = "stream_added";
|
|
7400
7409
|
})(RtcEventNames || (RtcEventNames = {}));
|
|
7401
7410
|
|
|
7402
|
-
export { ADDITIONAL_SCREEN_SHARE_SETTINGS, AUDIO_SETTINGS, BandwidthTester, CAMERA_STREAM_ID, EVENTS, KNOCK_MESSAGES, KalmanFilter, Logger, MEDIA_JITTER_BUFFER_TARGET, NoDevicesError, P2pRtcManager, PROTOCOL_ERRORS, PROTOCOL_EVENTS, PROTOCOL_REQUESTS, PROTOCOL_RESPONSES, RELAY_MESSAGES, ReconnectManager, RtcEventNames, RtcManagerDispatcher, SCREEN_SHARE_SETTINGS, SCREEN_SHARE_SIMULCAST_SETTINGS, STREAM_TYPES, ServerSocket, Session, SfuV2Parser, TYPES, VIDEO_SETTINGS_HD, VIDEO_SETTINGS_SD, VIDEO_SETTINGS_VP9, VIDEO_SETTINGS_VP9_LOW_BANDWIDTH, VegaConnection, VegaMediaQualityMonitor, VegaRtcManager, addAbsCaptureTimeExtMap, addExtMap, assert, buildDeviceList, calculateStd, captureAudioSsrcMetrics, captureCandidatePairInfoMetrics, captureCommonSsrcMetrics, captureSsrcInfo, captureVideoSsrcMetrics, cleanSdp, compareLocalDevices, createACFCalculator, createMicAnalyser, createWorker, deprioritizeH264, detectMicrophoneNotWorking, enumerate, external_stun_servers, filterMidExtension, filterMsidSemantic, fromLocation, generateByteString, getConstraints, getCurrentPeerConnections, getDeviceData, getDisplayMedia, getIssuesAndMetrics, getMediaConstraints, getMediaSettings, getMediasoupDeviceAsync, getNumFailedStatsReports, getNumFailedTrackSsrcLookups, getNumMissingTrackSsrcLookups, getPeerConnectionIndex, getStats, getStream, getUpdatedDevices, getUpdatedStats, getUserMedia, hasGetDisplayMedia, ipRegex, isMobile, issueDetectorOrMetricEnabled, maybeTurnOnly, modifyMediaCapabilities, removePeerConnection, replaceTracksInStream, rtcManagerEvents, rtcStats, setClientProvider, setCodecPreferenceSDP, setPeerConnectionsForTests, setVideoBandwidthUsingSetParameters, sortCodecs, standardDeviation, startPerformanceMonitor, stopStreamTracks, subscribeIssues, subscribeStats, trackAnnotations, turnServerOverride, variance };
|
|
7411
|
+
export { ADDITIONAL_SCREEN_SHARE_SETTINGS, AUDIO_SETTINGS, BandwidthTester, CAMERA_STREAM_ID, EVENTS, FILE_SHARE_ERROR_CODES, KNOCK_MESSAGES, KalmanFilter, Logger, MEDIA_JITTER_BUFFER_TARGET, NoDevicesError, P2pRtcManager, PROTOCOL_ERRORS, PROTOCOL_EVENTS, PROTOCOL_REQUESTS, PROTOCOL_RESPONSES, RELAY_MESSAGES, ReconnectManager, RtcEventNames, RtcManagerDispatcher, SCREEN_SHARE_SETTINGS, SCREEN_SHARE_SIMULCAST_SETTINGS, STREAM_TYPES, ServerSocket, Session, SfuV2Parser, TYPES, VIDEO_SETTINGS_HD, VIDEO_SETTINGS_SD, VIDEO_SETTINGS_VP9, VIDEO_SETTINGS_VP9_LOW_BANDWIDTH, VegaConnection, VegaMediaQualityMonitor, VegaRtcManager, addAbsCaptureTimeExtMap, addExtMap, assert, buildDeviceList, calculateStd, captureAudioSsrcMetrics, captureCandidatePairInfoMetrics, captureCommonSsrcMetrics, captureSsrcInfo, captureVideoSsrcMetrics, cleanSdp, compareLocalDevices, createACFCalculator, createMicAnalyser, createWorker, deprioritizeH264, detectMicrophoneNotWorking, enumerate, external_stun_servers, filterMidExtension, filterMsidSemantic, fromLocation, generateByteString, getConstraints, getCurrentPeerConnections, getDeviceData, getDisplayMedia, getIssuesAndMetrics, getMediaConstraints, getMediaSettings, getMediasoupDeviceAsync, getNumFailedStatsReports, getNumFailedTrackSsrcLookups, getNumMissingTrackSsrcLookups, getPeerConnectionIndex, getStats, getStream, getUpdatedDevices, getUpdatedStats, getUserMedia, hasGetDisplayMedia, ipRegex, isFileShareError, isMobile, issueDetectorOrMetricEnabled, maybeTurnOnly, modifyMediaCapabilities, removePeerConnection, replaceTracksInStream, rtcManagerEvents, rtcStats, setClientProvider, setCodecPreferenceSDP, setPeerConnectionsForTests, setVideoBandwidthUsingSetParameters, sortCodecs, standardDeviation, startPerformanceMonitor, stopStreamTracks, subscribeIssues, subscribeStats, trackAnnotations, turnServerOverride, variance };
|
|
7403
7412
|
//# sourceMappingURL=legacy-esm.js.map
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@whereby.com/media",
|
|
3
3
|
"description": "Media library for Whereby",
|
|
4
|
-
"version": "9.2.
|
|
4
|
+
"version": "9.2.6",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://github.com/whereby/sdk",
|
|
7
7
|
"repository": {
|
|
@@ -62,11 +62,11 @@
|
|
|
62
62
|
"prettier": "^3.5.3",
|
|
63
63
|
"process": "^0.11.10",
|
|
64
64
|
"typescript": "^5.8.3",
|
|
65
|
-
"@whereby.com/jest-config": "0.1.0",
|
|
66
65
|
"@whereby.com/eslint-config": "0.1.0",
|
|
66
|
+
"@whereby.com/jest-config": "0.1.0",
|
|
67
67
|
"@whereby.com/prettier-config": "0.1.0",
|
|
68
|
-
"@whereby.com/
|
|
69
|
-
"@whereby.com/
|
|
68
|
+
"@whereby.com/rollup-config": "0.1.1",
|
|
69
|
+
"@whereby.com/tsconfig": "0.1.0"
|
|
70
70
|
},
|
|
71
71
|
"engines": {
|
|
72
72
|
"node": ">=24.0.0"
|