@whereby.com/media 11.1.3 → 11.2.0
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 +15 -0
- package/dist/index.d.cts +75 -2
- package/dist/index.d.mts +75 -2
- package/dist/index.d.ts +75 -2
- package/dist/index.mjs +14 -1
- package/dist/legacy-esm.js +14 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -835,6 +835,9 @@ const PROTOCOL_RESPONSES = {
|
|
|
835
835
|
PLAY_CLIENT_STICKER: "play_client_sticker",
|
|
836
836
|
ROOM_INTEGRATION_ENABLED: "room_integration_enabled",
|
|
837
837
|
ROOM_INTEGRATION_DISABLED: "room_integration_disabled",
|
|
838
|
+
ROOM_INTEGRATION_STARTED: "room_integration_started",
|
|
839
|
+
ROOM_INTEGRATION_STOPPED: "room_integration_stopped",
|
|
840
|
+
ROOM_INTEGRATION_PROPS_UPDATED: "room_integration_props_updated",
|
|
838
841
|
ROOM_JOINED: "room_joined",
|
|
839
842
|
ROOM_KNOCKED: "room_knocked",
|
|
840
843
|
ROOM_LEFT: "room_left",
|
|
@@ -2408,6 +2411,16 @@ const FILE_SHARE_ERROR_CODES = [
|
|
|
2408
2411
|
function isFileShareError(payload) {
|
|
2409
2412
|
return "error" in payload && FILE_SHARE_ERROR_CODES.includes(payload.error);
|
|
2410
2413
|
}
|
|
2414
|
+
const ROOM_INTEGRATION_ERROR_CODES = [
|
|
2415
|
+
"not_in_a_room",
|
|
2416
|
+
"forbidden",
|
|
2417
|
+
"missing_parameters",
|
|
2418
|
+
"invalid_parameters",
|
|
2419
|
+
"internal_server_error",
|
|
2420
|
+
];
|
|
2421
|
+
function isRoomIntegrationErrorCode(error) {
|
|
2422
|
+
return ROOM_INTEGRATION_ERROR_CODES.includes(error);
|
|
2423
|
+
}
|
|
2411
2424
|
|
|
2412
2425
|
const defaultSubdomainPattern = /^(?:([^.]+)[.])?((:?[^.]+[.]){1,}[^.]+)$/;
|
|
2413
2426
|
const localstackPattern = /^(?:([^.]+)-)?(ip-[^.]*[.](?:hereby[.]dev|rfc1918[.]disappear[.]at)(?::\d+|))$/;
|
|
@@ -7954,6 +7967,7 @@ exports.PROTOCOL_EVENTS = PROTOCOL_EVENTS;
|
|
|
7954
7967
|
exports.PROTOCOL_REQUESTS = PROTOCOL_REQUESTS;
|
|
7955
7968
|
exports.PROTOCOL_RESPONSES = PROTOCOL_RESPONSES;
|
|
7956
7969
|
exports.RELAY_MESSAGES = RELAY_MESSAGES;
|
|
7970
|
+
exports.ROOM_INTEGRATION_ERROR_CODES = ROOM_INTEGRATION_ERROR_CODES;
|
|
7957
7971
|
exports.ReconnectManager = ReconnectManager;
|
|
7958
7972
|
exports.RtcManagerDispatcher = RtcManagerDispatcher;
|
|
7959
7973
|
exports.SCREEN_SHARE_SETTINGS = SCREEN_SHARE_SETTINGS;
|
|
@@ -8015,6 +8029,7 @@ exports.hasGetDisplayMedia = hasGetDisplayMedia;
|
|
|
8015
8029
|
exports.ipRegex = ipRegex;
|
|
8016
8030
|
exports.isFileShareError = isFileShareError;
|
|
8017
8031
|
exports.isMobile = isMobile;
|
|
8032
|
+
exports.isRoomIntegrationErrorCode = isRoomIntegrationErrorCode;
|
|
8018
8033
|
exports.issueDetectorOrMetricEnabled = issueDetectorOrMetricEnabled;
|
|
8019
8034
|
exports.maybeTurnOnly = maybeTurnOnly;
|
|
8020
8035
|
exports.modifyMediaCapabilities = modifyMediaCapabilities;
|
package/dist/index.d.cts
CHANGED
|
@@ -1072,10 +1072,72 @@ interface RoomJoinedSuccess {
|
|
|
1072
1072
|
clientClaim: string;
|
|
1073
1073
|
breakout?: BreakoutConfig;
|
|
1074
1074
|
eventClaim: string;
|
|
1075
|
+
roomIntegrationSession?: RoomIntegrationSessionEvent[];
|
|
1075
1076
|
}
|
|
1076
1077
|
type RoomJoinedEvent = RoomJoinedErrors | RoomJoinedSuccess;
|
|
1077
1078
|
interface BreakoutSessionUpdatedEvent extends BreakoutConfig {
|
|
1078
1079
|
}
|
|
1080
|
+
type RoomIntegrationProps = {
|
|
1081
|
+
[key: string]: string | number | boolean | null;
|
|
1082
|
+
};
|
|
1083
|
+
interface RoomIntegrationSessionState {
|
|
1084
|
+
tagName: string;
|
|
1085
|
+
shareUrl: string;
|
|
1086
|
+
props: RoomIntegrationProps;
|
|
1087
|
+
userId?: string;
|
|
1088
|
+
clientId: string;
|
|
1089
|
+
}
|
|
1090
|
+
interface RoomIntegrationSessionTiming {
|
|
1091
|
+
roomIntegrationSessionStartedAt?: number;
|
|
1092
|
+
}
|
|
1093
|
+
interface RoomIntegrationSessionEvent extends RoomIntegrationSessionState, RoomIntegrationSessionTiming {
|
|
1094
|
+
roomIntegrationId: number | string;
|
|
1095
|
+
roomIntegrationSessionId: string;
|
|
1096
|
+
breakoutGroupId?: string | null;
|
|
1097
|
+
}
|
|
1098
|
+
declare const ROOM_INTEGRATION_ERROR_CODES: readonly ["not_in_a_room", "forbidden", "missing_parameters", "invalid_parameters", "internal_server_error"];
|
|
1099
|
+
type RoomIntegrationErrorCode = (typeof ROOM_INTEGRATION_ERROR_CODES)[number];
|
|
1100
|
+
interface RoomIntegrationError {
|
|
1101
|
+
error: string;
|
|
1102
|
+
}
|
|
1103
|
+
declare function isRoomIntegrationErrorCode(error: string): error is RoomIntegrationErrorCode;
|
|
1104
|
+
interface RoomIntegrationStartedSuccess extends RoomIntegrationSessionTiming {
|
|
1105
|
+
roomIntegrationId: number | string;
|
|
1106
|
+
roomIntegrationSessionId: string;
|
|
1107
|
+
breakoutGroupId?: string | null;
|
|
1108
|
+
state: RoomIntegrationSessionState;
|
|
1109
|
+
}
|
|
1110
|
+
type RoomIntegrationStartedEvent = RoomIntegrationStartedSuccess | RoomIntegrationError;
|
|
1111
|
+
interface RoomIntegrationStoppedSuccess {
|
|
1112
|
+
roomIntegrationSessionId: string;
|
|
1113
|
+
intent?: "stop" | "end";
|
|
1114
|
+
clientId?: string;
|
|
1115
|
+
}
|
|
1116
|
+
type RoomIntegrationStoppedEvent = RoomIntegrationStoppedSuccess | RoomIntegrationError;
|
|
1117
|
+
interface RoomIntegrationPropsUpdatedSuccess {
|
|
1118
|
+
roomIntegrationSessionId: string;
|
|
1119
|
+
props: RoomIntegrationProps;
|
|
1120
|
+
}
|
|
1121
|
+
type RoomIntegrationPropsUpdatedEvent = RoomIntegrationPropsUpdatedSuccess | RoomIntegrationError;
|
|
1122
|
+
interface RoomIntegrationEnabledEvent {
|
|
1123
|
+
roomIntegrationId: number | string;
|
|
1124
|
+
}
|
|
1125
|
+
interface RoomIntegrationDisabledEvent {
|
|
1126
|
+
roomIntegrationId: number | string;
|
|
1127
|
+
}
|
|
1128
|
+
interface StartRoomIntegrationRequest {
|
|
1129
|
+
roomIntegrationId: number;
|
|
1130
|
+
breakoutGroupId: string | null;
|
|
1131
|
+
state: RoomIntegrationSessionState;
|
|
1132
|
+
}
|
|
1133
|
+
interface StopRoomIntegrationRequest {
|
|
1134
|
+
roomIntegrationSessionId: string;
|
|
1135
|
+
intent: "stop" | "end";
|
|
1136
|
+
}
|
|
1137
|
+
interface UpdateRoomIntegrationPropsRequest {
|
|
1138
|
+
roomIntegrationSessionId: string;
|
|
1139
|
+
props: RoomIntegrationProps;
|
|
1140
|
+
}
|
|
1079
1141
|
interface RoomKnockedEvent {
|
|
1080
1142
|
clientId: string;
|
|
1081
1143
|
displayName: string | null;
|
|
@@ -1183,6 +1245,11 @@ interface SignalEvents {
|
|
|
1183
1245
|
knock_handled: KnockAcceptedEvent | KnockOnHoldEvent | KnockRejectedEvent;
|
|
1184
1246
|
knocker_left: KnockerLeftEvent;
|
|
1185
1247
|
new_client: NewClientEvent;
|
|
1248
|
+
room_integration_started: RoomIntegrationStartedEvent;
|
|
1249
|
+
room_integration_stopped: RoomIntegrationStoppedEvent;
|
|
1250
|
+
room_integration_props_updated: RoomIntegrationPropsUpdatedEvent;
|
|
1251
|
+
room_integration_enabled: RoomIntegrationEnabledEvent;
|
|
1252
|
+
room_integration_disabled: RoomIntegrationDisabledEvent;
|
|
1186
1253
|
room_joined: RoomJoinedEvent;
|
|
1187
1254
|
room_knocked: RoomKnockedEvent;
|
|
1188
1255
|
room_left: void;
|
|
@@ -1317,6 +1384,9 @@ interface SignalRequests {
|
|
|
1317
1384
|
set_lock: {
|
|
1318
1385
|
locked: boolean;
|
|
1319
1386
|
};
|
|
1387
|
+
start_room_integration: StartRoomIntegrationRequest;
|
|
1388
|
+
stop_room_integration: StopRoomIntegrationRequest;
|
|
1389
|
+
update_room_integration_props: UpdateRoomIntegrationPropsRequest;
|
|
1320
1390
|
start_live_transcription: void;
|
|
1321
1391
|
start_recording: {
|
|
1322
1392
|
recording: string;
|
|
@@ -1508,6 +1578,9 @@ declare const PROTOCOL_RESPONSES: {
|
|
|
1508
1578
|
PLAY_CLIENT_STICKER: string;
|
|
1509
1579
|
ROOM_INTEGRATION_ENABLED: string;
|
|
1510
1580
|
ROOM_INTEGRATION_DISABLED: string;
|
|
1581
|
+
ROOM_INTEGRATION_STARTED: string;
|
|
1582
|
+
ROOM_INTEGRATION_STOPPED: string;
|
|
1583
|
+
ROOM_INTEGRATION_PROPS_UPDATED: string;
|
|
1511
1584
|
ROOM_JOINED: string;
|
|
1512
1585
|
ROOM_KNOCKED: string;
|
|
1513
1586
|
ROOM_LEFT: string;
|
|
@@ -2247,5 +2320,5 @@ declare class VegaRtcManager implements RtcManager {
|
|
|
2247
2320
|
hasClient(clientId: string): boolean;
|
|
2248
2321
|
}
|
|
2249
2322
|
|
|
2250
|
-
export { ADDITIONAL_SCREEN_SHARE_SETTINGS, AUDIO_SETTINGS, BandwidthTester, CAMERA_STREAM_ID, CAM_SAMPLES_SKIPPED_AFTER_CANDIDATE_PAIR_CHANGE, CONGESTED_FRACTION_LOST, CONGESTED_RTT_INFLATION_MS, EVENTS, FILE_SHARE_ERROR_CODES, INITIAL_CONSUMER_SPATIAL_LAYER, INITIAL_HIGHEST_PREFERRED_LAYER, KNOCK_MESSAGES, KalmanFilter, LOWEST_SVC_LAYER_MAX_BITRATE, Logger, MAX_CONCURRENT_PREFERRED_LAYER_SWITCH_WATCHES, MEDIA_JITTER_BUFFER_TARGET, MIDDLE_SVC_LAYER_MAX_BITRATE, NoDevicesError, P2pRtcManager, PREFERRED_LAYER_SWITCH_POLL_INTERVAL_MS, PREFERRED_LAYER_SWITCH_WATCH_TIMEOUT_MS, 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, enumerate, external_stun_servers, filterMidExtension, filterMsidSemantic, fromLocation, generateByteString, getConstraints, getCurrentPeerConnections, getDeviceData, getDisplayMedia, getInitialStream, getIssuesAndMetrics, getMediaConstraints, getMediaSettings, getMediasoupDeviceAsync, getNumFailedStatsReports, getNumFailedTrackSsrcLookups, getNumMissingTrackSsrcLookups, getPeerConnectionIndex, getSelectedCandidatePairId, 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, updateRenderedDimensions, variance };
|
|
2251
|
-
export type { AddCameraStreamOptions, AddSpotlightRequest, AudioEnableRequest, AudioEnableRequestedEvent, AudioEnabledEvent, BreakoutConfig, BreakoutGroupJoinedEvent, BreakoutSessionUpdateRequest, 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, GetInitialStreamOptions, GetMediaConstraintsOptions, GetStreamOptions, GetStreamResult, GetUpdatedDevicesResult, GetUserMediaAttempt, GetUserMediaAttemptOutcome, HostPresenceControlsError, IdentifyDeviceRequest, InternalServerError, InvalidAssistantKeyError, IssuesAndMetricsByView, JoinRoomRequest, KnockAcceptedEvent, KnockOnHoldEvent, KnockRejectedEvent, KnockResponse, KnockResponseSender, 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, ScreenshareEnableRequest, ScreenshareEnableRequestedEvent, 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 };
|
|
2323
|
+
export { ADDITIONAL_SCREEN_SHARE_SETTINGS, AUDIO_SETTINGS, BandwidthTester, CAMERA_STREAM_ID, CAM_SAMPLES_SKIPPED_AFTER_CANDIDATE_PAIR_CHANGE, CONGESTED_FRACTION_LOST, CONGESTED_RTT_INFLATION_MS, EVENTS, FILE_SHARE_ERROR_CODES, INITIAL_CONSUMER_SPATIAL_LAYER, INITIAL_HIGHEST_PREFERRED_LAYER, KNOCK_MESSAGES, KalmanFilter, LOWEST_SVC_LAYER_MAX_BITRATE, Logger, MAX_CONCURRENT_PREFERRED_LAYER_SWITCH_WATCHES, MEDIA_JITTER_BUFFER_TARGET, MIDDLE_SVC_LAYER_MAX_BITRATE, NoDevicesError, P2pRtcManager, PREFERRED_LAYER_SWITCH_POLL_INTERVAL_MS, PREFERRED_LAYER_SWITCH_WATCH_TIMEOUT_MS, PROTOCOL_ERRORS, PROTOCOL_EVENTS, PROTOCOL_REQUESTS, PROTOCOL_RESPONSES, RELAY_MESSAGES, ROOM_INTEGRATION_ERROR_CODES, 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, enumerate, external_stun_servers, filterMidExtension, filterMsidSemantic, fromLocation, generateByteString, getConstraints, getCurrentPeerConnections, getDeviceData, getDisplayMedia, getInitialStream, getIssuesAndMetrics, getMediaConstraints, getMediaSettings, getMediasoupDeviceAsync, getNumFailedStatsReports, getNumFailedTrackSsrcLookups, getNumMissingTrackSsrcLookups, getPeerConnectionIndex, getSelectedCandidatePairId, getStats, getStream, getUpdatedDevices, getUpdatedStats, getUserMedia, hasGetDisplayMedia, ipRegex, isFileShareError, isMobile, isRoomIntegrationErrorCode, issueDetectorOrMetricEnabled, maybeTurnOnly, modifyMediaCapabilities, removePeerConnection, replaceTracksInStream, _default as rtcManagerEvents, rtcStats, setClientProvider, setCodecPreferenceSDP, setPeerConnectionsForTests, setVideoBandwidthUsingSetParameters, sortCodecs, standardDeviation, startPerformanceMonitor, stopStreamTracks, subscribeIssues, subscribeStats, trackAnnotations, turnServerOverride, updateRenderedDimensions, variance };
|
|
2324
|
+
export type { AddCameraStreamOptions, AddSpotlightRequest, AudioEnableRequest, AudioEnableRequestedEvent, AudioEnabledEvent, BreakoutConfig, BreakoutGroupJoinedEvent, BreakoutSessionUpdateRequest, 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, GetInitialStreamOptions, GetMediaConstraintsOptions, GetStreamOptions, GetStreamResult, GetUpdatedDevicesResult, GetUserMediaAttempt, GetUserMediaAttemptOutcome, HostPresenceControlsError, IdentifyDeviceRequest, InternalServerError, InvalidAssistantKeyError, IssuesAndMetricsByView, JoinRoomRequest, KnockAcceptedEvent, KnockOnHoldEvent, KnockRejectedEvent, KnockResponse, KnockResponseSender, KnockRoomRequest, KnockerLeftEvent, LiveCaptionEvent, LiveCaptionsStartedEvent, LiveCaptionsStoppedEvent, LiveTranscriptionStartedEvent, LiveTranscriptionStoppedEvent, MaxViewerLimitReachedError, MediaPrefs, Metric, NewClientEvent, OrganizationAssistantNotEnabledError, OrganizationAssistantNotFoundError, OrganizationPlanExhaustedError, RemoveScreenshareStreamOptions, RemoveSpotlightRequest, RoleName, RoomConcurrencyControlsError, RoomEmptyError, RoomFullError, RoomIntegrationDisabledEvent, RoomIntegrationEnabledEvent, RoomIntegrationError, RoomIntegrationErrorCode, RoomIntegrationProps, RoomIntegrationPropsUpdatedEvent, RoomIntegrationPropsUpdatedSuccess, RoomIntegrationSessionEvent, RoomIntegrationSessionState, RoomIntegrationStartedEvent, RoomIntegrationStartedSuccess, RoomIntegrationStoppedEvent, RoomIntegrationStoppedSuccess, RoomJoinPermissionDeniedError, RoomJoinedErrors, RoomJoinedEvent, RoomJoinedSuccess, RoomKnockedEvent, RoomLockedError, RoomLockedEvent, RoomMeetingTimeExhaustedError, RoomMode, RoomSessionEndedEvent, RtcClientConnectionStatusChangedPayload, RtcEventEmitter, RtcEvents, RtcLocalStreamTrackAddedPayload, RtcLocalStreamTrackRemovedPayload, RtcManager, RtcManagerCreatedPayload, RtcManagerOptions, RtcStreamAddedPayload, ScreenshareEnableRequest, ScreenshareEnableRequestedEvent, ScreenshareStartedEvent, ScreenshareStoppedEvent, SendClientMetadataRequest, SignalClient, SignalEvents, SignalIceCandidateMessage, SignalIceEndOfCandidatesMessage, SignalIceServer, SignalKnocker, SignalMediaServerConfig, SignalRTCSessionDescription, SignalReadyToReceiveOfferMessage, SignalRequests, SignalRoom, SignalSDPMessage, SignalSFUServer, SignalTurnServer, SocketConf, SocketManager, Spotlight, SpotlightAddedEvent, SpotlightRemovedEvent, StartRoomIntegrationRequest, StatsMonitorOptions, StatsMonitorState, StatsSubscription, StopRoomIntegrationRequest, TurnTransportProtocol, UniqueRoleAlreadyInRoomError, UpdateRoomIntegrationPropsRequest, UpdatedDeviceInfo, UpdatedDevicesInfo, VegaConnectionOptions, VegaRtcManagerOptions, VideoEnableRequest, VideoEnableRequestedEvent, VideoEnabledEvent, WebRTCProvider };
|
package/dist/index.d.mts
CHANGED
|
@@ -1072,10 +1072,72 @@ interface RoomJoinedSuccess {
|
|
|
1072
1072
|
clientClaim: string;
|
|
1073
1073
|
breakout?: BreakoutConfig;
|
|
1074
1074
|
eventClaim: string;
|
|
1075
|
+
roomIntegrationSession?: RoomIntegrationSessionEvent[];
|
|
1075
1076
|
}
|
|
1076
1077
|
type RoomJoinedEvent = RoomJoinedErrors | RoomJoinedSuccess;
|
|
1077
1078
|
interface BreakoutSessionUpdatedEvent extends BreakoutConfig {
|
|
1078
1079
|
}
|
|
1080
|
+
type RoomIntegrationProps = {
|
|
1081
|
+
[key: string]: string | number | boolean | null;
|
|
1082
|
+
};
|
|
1083
|
+
interface RoomIntegrationSessionState {
|
|
1084
|
+
tagName: string;
|
|
1085
|
+
shareUrl: string;
|
|
1086
|
+
props: RoomIntegrationProps;
|
|
1087
|
+
userId?: string;
|
|
1088
|
+
clientId: string;
|
|
1089
|
+
}
|
|
1090
|
+
interface RoomIntegrationSessionTiming {
|
|
1091
|
+
roomIntegrationSessionStartedAt?: number;
|
|
1092
|
+
}
|
|
1093
|
+
interface RoomIntegrationSessionEvent extends RoomIntegrationSessionState, RoomIntegrationSessionTiming {
|
|
1094
|
+
roomIntegrationId: number | string;
|
|
1095
|
+
roomIntegrationSessionId: string;
|
|
1096
|
+
breakoutGroupId?: string | null;
|
|
1097
|
+
}
|
|
1098
|
+
declare const ROOM_INTEGRATION_ERROR_CODES: readonly ["not_in_a_room", "forbidden", "missing_parameters", "invalid_parameters", "internal_server_error"];
|
|
1099
|
+
type RoomIntegrationErrorCode = (typeof ROOM_INTEGRATION_ERROR_CODES)[number];
|
|
1100
|
+
interface RoomIntegrationError {
|
|
1101
|
+
error: string;
|
|
1102
|
+
}
|
|
1103
|
+
declare function isRoomIntegrationErrorCode(error: string): error is RoomIntegrationErrorCode;
|
|
1104
|
+
interface RoomIntegrationStartedSuccess extends RoomIntegrationSessionTiming {
|
|
1105
|
+
roomIntegrationId: number | string;
|
|
1106
|
+
roomIntegrationSessionId: string;
|
|
1107
|
+
breakoutGroupId?: string | null;
|
|
1108
|
+
state: RoomIntegrationSessionState;
|
|
1109
|
+
}
|
|
1110
|
+
type RoomIntegrationStartedEvent = RoomIntegrationStartedSuccess | RoomIntegrationError;
|
|
1111
|
+
interface RoomIntegrationStoppedSuccess {
|
|
1112
|
+
roomIntegrationSessionId: string;
|
|
1113
|
+
intent?: "stop" | "end";
|
|
1114
|
+
clientId?: string;
|
|
1115
|
+
}
|
|
1116
|
+
type RoomIntegrationStoppedEvent = RoomIntegrationStoppedSuccess | RoomIntegrationError;
|
|
1117
|
+
interface RoomIntegrationPropsUpdatedSuccess {
|
|
1118
|
+
roomIntegrationSessionId: string;
|
|
1119
|
+
props: RoomIntegrationProps;
|
|
1120
|
+
}
|
|
1121
|
+
type RoomIntegrationPropsUpdatedEvent = RoomIntegrationPropsUpdatedSuccess | RoomIntegrationError;
|
|
1122
|
+
interface RoomIntegrationEnabledEvent {
|
|
1123
|
+
roomIntegrationId: number | string;
|
|
1124
|
+
}
|
|
1125
|
+
interface RoomIntegrationDisabledEvent {
|
|
1126
|
+
roomIntegrationId: number | string;
|
|
1127
|
+
}
|
|
1128
|
+
interface StartRoomIntegrationRequest {
|
|
1129
|
+
roomIntegrationId: number;
|
|
1130
|
+
breakoutGroupId: string | null;
|
|
1131
|
+
state: RoomIntegrationSessionState;
|
|
1132
|
+
}
|
|
1133
|
+
interface StopRoomIntegrationRequest {
|
|
1134
|
+
roomIntegrationSessionId: string;
|
|
1135
|
+
intent: "stop" | "end";
|
|
1136
|
+
}
|
|
1137
|
+
interface UpdateRoomIntegrationPropsRequest {
|
|
1138
|
+
roomIntegrationSessionId: string;
|
|
1139
|
+
props: RoomIntegrationProps;
|
|
1140
|
+
}
|
|
1079
1141
|
interface RoomKnockedEvent {
|
|
1080
1142
|
clientId: string;
|
|
1081
1143
|
displayName: string | null;
|
|
@@ -1183,6 +1245,11 @@ interface SignalEvents {
|
|
|
1183
1245
|
knock_handled: KnockAcceptedEvent | KnockOnHoldEvent | KnockRejectedEvent;
|
|
1184
1246
|
knocker_left: KnockerLeftEvent;
|
|
1185
1247
|
new_client: NewClientEvent;
|
|
1248
|
+
room_integration_started: RoomIntegrationStartedEvent;
|
|
1249
|
+
room_integration_stopped: RoomIntegrationStoppedEvent;
|
|
1250
|
+
room_integration_props_updated: RoomIntegrationPropsUpdatedEvent;
|
|
1251
|
+
room_integration_enabled: RoomIntegrationEnabledEvent;
|
|
1252
|
+
room_integration_disabled: RoomIntegrationDisabledEvent;
|
|
1186
1253
|
room_joined: RoomJoinedEvent;
|
|
1187
1254
|
room_knocked: RoomKnockedEvent;
|
|
1188
1255
|
room_left: void;
|
|
@@ -1317,6 +1384,9 @@ interface SignalRequests {
|
|
|
1317
1384
|
set_lock: {
|
|
1318
1385
|
locked: boolean;
|
|
1319
1386
|
};
|
|
1387
|
+
start_room_integration: StartRoomIntegrationRequest;
|
|
1388
|
+
stop_room_integration: StopRoomIntegrationRequest;
|
|
1389
|
+
update_room_integration_props: UpdateRoomIntegrationPropsRequest;
|
|
1320
1390
|
start_live_transcription: void;
|
|
1321
1391
|
start_recording: {
|
|
1322
1392
|
recording: string;
|
|
@@ -1508,6 +1578,9 @@ declare const PROTOCOL_RESPONSES: {
|
|
|
1508
1578
|
PLAY_CLIENT_STICKER: string;
|
|
1509
1579
|
ROOM_INTEGRATION_ENABLED: string;
|
|
1510
1580
|
ROOM_INTEGRATION_DISABLED: string;
|
|
1581
|
+
ROOM_INTEGRATION_STARTED: string;
|
|
1582
|
+
ROOM_INTEGRATION_STOPPED: string;
|
|
1583
|
+
ROOM_INTEGRATION_PROPS_UPDATED: string;
|
|
1511
1584
|
ROOM_JOINED: string;
|
|
1512
1585
|
ROOM_KNOCKED: string;
|
|
1513
1586
|
ROOM_LEFT: string;
|
|
@@ -2247,5 +2320,5 @@ declare class VegaRtcManager implements RtcManager {
|
|
|
2247
2320
|
hasClient(clientId: string): boolean;
|
|
2248
2321
|
}
|
|
2249
2322
|
|
|
2250
|
-
export { ADDITIONAL_SCREEN_SHARE_SETTINGS, AUDIO_SETTINGS, BandwidthTester, CAMERA_STREAM_ID, CAM_SAMPLES_SKIPPED_AFTER_CANDIDATE_PAIR_CHANGE, CONGESTED_FRACTION_LOST, CONGESTED_RTT_INFLATION_MS, EVENTS, FILE_SHARE_ERROR_CODES, INITIAL_CONSUMER_SPATIAL_LAYER, INITIAL_HIGHEST_PREFERRED_LAYER, KNOCK_MESSAGES, KalmanFilter, LOWEST_SVC_LAYER_MAX_BITRATE, Logger, MAX_CONCURRENT_PREFERRED_LAYER_SWITCH_WATCHES, MEDIA_JITTER_BUFFER_TARGET, MIDDLE_SVC_LAYER_MAX_BITRATE, NoDevicesError, P2pRtcManager, PREFERRED_LAYER_SWITCH_POLL_INTERVAL_MS, PREFERRED_LAYER_SWITCH_WATCH_TIMEOUT_MS, 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, enumerate, external_stun_servers, filterMidExtension, filterMsidSemantic, fromLocation, generateByteString, getConstraints, getCurrentPeerConnections, getDeviceData, getDisplayMedia, getInitialStream, getIssuesAndMetrics, getMediaConstraints, getMediaSettings, getMediasoupDeviceAsync, getNumFailedStatsReports, getNumFailedTrackSsrcLookups, getNumMissingTrackSsrcLookups, getPeerConnectionIndex, getSelectedCandidatePairId, 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, updateRenderedDimensions, variance };
|
|
2251
|
-
export type { AddCameraStreamOptions, AddSpotlightRequest, AudioEnableRequest, AudioEnableRequestedEvent, AudioEnabledEvent, BreakoutConfig, BreakoutGroupJoinedEvent, BreakoutSessionUpdateRequest, 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, GetInitialStreamOptions, GetMediaConstraintsOptions, GetStreamOptions, GetStreamResult, GetUpdatedDevicesResult, GetUserMediaAttempt, GetUserMediaAttemptOutcome, HostPresenceControlsError, IdentifyDeviceRequest, InternalServerError, InvalidAssistantKeyError, IssuesAndMetricsByView, JoinRoomRequest, KnockAcceptedEvent, KnockOnHoldEvent, KnockRejectedEvent, KnockResponse, KnockResponseSender, 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, ScreenshareEnableRequest, ScreenshareEnableRequestedEvent, 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 };
|
|
2323
|
+
export { ADDITIONAL_SCREEN_SHARE_SETTINGS, AUDIO_SETTINGS, BandwidthTester, CAMERA_STREAM_ID, CAM_SAMPLES_SKIPPED_AFTER_CANDIDATE_PAIR_CHANGE, CONGESTED_FRACTION_LOST, CONGESTED_RTT_INFLATION_MS, EVENTS, FILE_SHARE_ERROR_CODES, INITIAL_CONSUMER_SPATIAL_LAYER, INITIAL_HIGHEST_PREFERRED_LAYER, KNOCK_MESSAGES, KalmanFilter, LOWEST_SVC_LAYER_MAX_BITRATE, Logger, MAX_CONCURRENT_PREFERRED_LAYER_SWITCH_WATCHES, MEDIA_JITTER_BUFFER_TARGET, MIDDLE_SVC_LAYER_MAX_BITRATE, NoDevicesError, P2pRtcManager, PREFERRED_LAYER_SWITCH_POLL_INTERVAL_MS, PREFERRED_LAYER_SWITCH_WATCH_TIMEOUT_MS, PROTOCOL_ERRORS, PROTOCOL_EVENTS, PROTOCOL_REQUESTS, PROTOCOL_RESPONSES, RELAY_MESSAGES, ROOM_INTEGRATION_ERROR_CODES, 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, enumerate, external_stun_servers, filterMidExtension, filterMsidSemantic, fromLocation, generateByteString, getConstraints, getCurrentPeerConnections, getDeviceData, getDisplayMedia, getInitialStream, getIssuesAndMetrics, getMediaConstraints, getMediaSettings, getMediasoupDeviceAsync, getNumFailedStatsReports, getNumFailedTrackSsrcLookups, getNumMissingTrackSsrcLookups, getPeerConnectionIndex, getSelectedCandidatePairId, getStats, getStream, getUpdatedDevices, getUpdatedStats, getUserMedia, hasGetDisplayMedia, ipRegex, isFileShareError, isMobile, isRoomIntegrationErrorCode, issueDetectorOrMetricEnabled, maybeTurnOnly, modifyMediaCapabilities, removePeerConnection, replaceTracksInStream, _default as rtcManagerEvents, rtcStats, setClientProvider, setCodecPreferenceSDP, setPeerConnectionsForTests, setVideoBandwidthUsingSetParameters, sortCodecs, standardDeviation, startPerformanceMonitor, stopStreamTracks, subscribeIssues, subscribeStats, trackAnnotations, turnServerOverride, updateRenderedDimensions, variance };
|
|
2324
|
+
export type { AddCameraStreamOptions, AddSpotlightRequest, AudioEnableRequest, AudioEnableRequestedEvent, AudioEnabledEvent, BreakoutConfig, BreakoutGroupJoinedEvent, BreakoutSessionUpdateRequest, 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, GetInitialStreamOptions, GetMediaConstraintsOptions, GetStreamOptions, GetStreamResult, GetUpdatedDevicesResult, GetUserMediaAttempt, GetUserMediaAttemptOutcome, HostPresenceControlsError, IdentifyDeviceRequest, InternalServerError, InvalidAssistantKeyError, IssuesAndMetricsByView, JoinRoomRequest, KnockAcceptedEvent, KnockOnHoldEvent, KnockRejectedEvent, KnockResponse, KnockResponseSender, KnockRoomRequest, KnockerLeftEvent, LiveCaptionEvent, LiveCaptionsStartedEvent, LiveCaptionsStoppedEvent, LiveTranscriptionStartedEvent, LiveTranscriptionStoppedEvent, MaxViewerLimitReachedError, MediaPrefs, Metric, NewClientEvent, OrganizationAssistantNotEnabledError, OrganizationAssistantNotFoundError, OrganizationPlanExhaustedError, RemoveScreenshareStreamOptions, RemoveSpotlightRequest, RoleName, RoomConcurrencyControlsError, RoomEmptyError, RoomFullError, RoomIntegrationDisabledEvent, RoomIntegrationEnabledEvent, RoomIntegrationError, RoomIntegrationErrorCode, RoomIntegrationProps, RoomIntegrationPropsUpdatedEvent, RoomIntegrationPropsUpdatedSuccess, RoomIntegrationSessionEvent, RoomIntegrationSessionState, RoomIntegrationStartedEvent, RoomIntegrationStartedSuccess, RoomIntegrationStoppedEvent, RoomIntegrationStoppedSuccess, RoomJoinPermissionDeniedError, RoomJoinedErrors, RoomJoinedEvent, RoomJoinedSuccess, RoomKnockedEvent, RoomLockedError, RoomLockedEvent, RoomMeetingTimeExhaustedError, RoomMode, RoomSessionEndedEvent, RtcClientConnectionStatusChangedPayload, RtcEventEmitter, RtcEvents, RtcLocalStreamTrackAddedPayload, RtcLocalStreamTrackRemovedPayload, RtcManager, RtcManagerCreatedPayload, RtcManagerOptions, RtcStreamAddedPayload, ScreenshareEnableRequest, ScreenshareEnableRequestedEvent, ScreenshareStartedEvent, ScreenshareStoppedEvent, SendClientMetadataRequest, SignalClient, SignalEvents, SignalIceCandidateMessage, SignalIceEndOfCandidatesMessage, SignalIceServer, SignalKnocker, SignalMediaServerConfig, SignalRTCSessionDescription, SignalReadyToReceiveOfferMessage, SignalRequests, SignalRoom, SignalSDPMessage, SignalSFUServer, SignalTurnServer, SocketConf, SocketManager, Spotlight, SpotlightAddedEvent, SpotlightRemovedEvent, StartRoomIntegrationRequest, StatsMonitorOptions, StatsMonitorState, StatsSubscription, StopRoomIntegrationRequest, TurnTransportProtocol, UniqueRoleAlreadyInRoomError, UpdateRoomIntegrationPropsRequest, UpdatedDeviceInfo, UpdatedDevicesInfo, VegaConnectionOptions, VegaRtcManagerOptions, VideoEnableRequest, VideoEnableRequestedEvent, VideoEnabledEvent, WebRTCProvider };
|
package/dist/index.d.ts
CHANGED
|
@@ -1072,10 +1072,72 @@ interface RoomJoinedSuccess {
|
|
|
1072
1072
|
clientClaim: string;
|
|
1073
1073
|
breakout?: BreakoutConfig;
|
|
1074
1074
|
eventClaim: string;
|
|
1075
|
+
roomIntegrationSession?: RoomIntegrationSessionEvent[];
|
|
1075
1076
|
}
|
|
1076
1077
|
type RoomJoinedEvent = RoomJoinedErrors | RoomJoinedSuccess;
|
|
1077
1078
|
interface BreakoutSessionUpdatedEvent extends BreakoutConfig {
|
|
1078
1079
|
}
|
|
1080
|
+
type RoomIntegrationProps = {
|
|
1081
|
+
[key: string]: string | number | boolean | null;
|
|
1082
|
+
};
|
|
1083
|
+
interface RoomIntegrationSessionState {
|
|
1084
|
+
tagName: string;
|
|
1085
|
+
shareUrl: string;
|
|
1086
|
+
props: RoomIntegrationProps;
|
|
1087
|
+
userId?: string;
|
|
1088
|
+
clientId: string;
|
|
1089
|
+
}
|
|
1090
|
+
interface RoomIntegrationSessionTiming {
|
|
1091
|
+
roomIntegrationSessionStartedAt?: number;
|
|
1092
|
+
}
|
|
1093
|
+
interface RoomIntegrationSessionEvent extends RoomIntegrationSessionState, RoomIntegrationSessionTiming {
|
|
1094
|
+
roomIntegrationId: number | string;
|
|
1095
|
+
roomIntegrationSessionId: string;
|
|
1096
|
+
breakoutGroupId?: string | null;
|
|
1097
|
+
}
|
|
1098
|
+
declare const ROOM_INTEGRATION_ERROR_CODES: readonly ["not_in_a_room", "forbidden", "missing_parameters", "invalid_parameters", "internal_server_error"];
|
|
1099
|
+
type RoomIntegrationErrorCode = (typeof ROOM_INTEGRATION_ERROR_CODES)[number];
|
|
1100
|
+
interface RoomIntegrationError {
|
|
1101
|
+
error: string;
|
|
1102
|
+
}
|
|
1103
|
+
declare function isRoomIntegrationErrorCode(error: string): error is RoomIntegrationErrorCode;
|
|
1104
|
+
interface RoomIntegrationStartedSuccess extends RoomIntegrationSessionTiming {
|
|
1105
|
+
roomIntegrationId: number | string;
|
|
1106
|
+
roomIntegrationSessionId: string;
|
|
1107
|
+
breakoutGroupId?: string | null;
|
|
1108
|
+
state: RoomIntegrationSessionState;
|
|
1109
|
+
}
|
|
1110
|
+
type RoomIntegrationStartedEvent = RoomIntegrationStartedSuccess | RoomIntegrationError;
|
|
1111
|
+
interface RoomIntegrationStoppedSuccess {
|
|
1112
|
+
roomIntegrationSessionId: string;
|
|
1113
|
+
intent?: "stop" | "end";
|
|
1114
|
+
clientId?: string;
|
|
1115
|
+
}
|
|
1116
|
+
type RoomIntegrationStoppedEvent = RoomIntegrationStoppedSuccess | RoomIntegrationError;
|
|
1117
|
+
interface RoomIntegrationPropsUpdatedSuccess {
|
|
1118
|
+
roomIntegrationSessionId: string;
|
|
1119
|
+
props: RoomIntegrationProps;
|
|
1120
|
+
}
|
|
1121
|
+
type RoomIntegrationPropsUpdatedEvent = RoomIntegrationPropsUpdatedSuccess | RoomIntegrationError;
|
|
1122
|
+
interface RoomIntegrationEnabledEvent {
|
|
1123
|
+
roomIntegrationId: number | string;
|
|
1124
|
+
}
|
|
1125
|
+
interface RoomIntegrationDisabledEvent {
|
|
1126
|
+
roomIntegrationId: number | string;
|
|
1127
|
+
}
|
|
1128
|
+
interface StartRoomIntegrationRequest {
|
|
1129
|
+
roomIntegrationId: number;
|
|
1130
|
+
breakoutGroupId: string | null;
|
|
1131
|
+
state: RoomIntegrationSessionState;
|
|
1132
|
+
}
|
|
1133
|
+
interface StopRoomIntegrationRequest {
|
|
1134
|
+
roomIntegrationSessionId: string;
|
|
1135
|
+
intent: "stop" | "end";
|
|
1136
|
+
}
|
|
1137
|
+
interface UpdateRoomIntegrationPropsRequest {
|
|
1138
|
+
roomIntegrationSessionId: string;
|
|
1139
|
+
props: RoomIntegrationProps;
|
|
1140
|
+
}
|
|
1079
1141
|
interface RoomKnockedEvent {
|
|
1080
1142
|
clientId: string;
|
|
1081
1143
|
displayName: string | null;
|
|
@@ -1183,6 +1245,11 @@ interface SignalEvents {
|
|
|
1183
1245
|
knock_handled: KnockAcceptedEvent | KnockOnHoldEvent | KnockRejectedEvent;
|
|
1184
1246
|
knocker_left: KnockerLeftEvent;
|
|
1185
1247
|
new_client: NewClientEvent;
|
|
1248
|
+
room_integration_started: RoomIntegrationStartedEvent;
|
|
1249
|
+
room_integration_stopped: RoomIntegrationStoppedEvent;
|
|
1250
|
+
room_integration_props_updated: RoomIntegrationPropsUpdatedEvent;
|
|
1251
|
+
room_integration_enabled: RoomIntegrationEnabledEvent;
|
|
1252
|
+
room_integration_disabled: RoomIntegrationDisabledEvent;
|
|
1186
1253
|
room_joined: RoomJoinedEvent;
|
|
1187
1254
|
room_knocked: RoomKnockedEvent;
|
|
1188
1255
|
room_left: void;
|
|
@@ -1317,6 +1384,9 @@ interface SignalRequests {
|
|
|
1317
1384
|
set_lock: {
|
|
1318
1385
|
locked: boolean;
|
|
1319
1386
|
};
|
|
1387
|
+
start_room_integration: StartRoomIntegrationRequest;
|
|
1388
|
+
stop_room_integration: StopRoomIntegrationRequest;
|
|
1389
|
+
update_room_integration_props: UpdateRoomIntegrationPropsRequest;
|
|
1320
1390
|
start_live_transcription: void;
|
|
1321
1391
|
start_recording: {
|
|
1322
1392
|
recording: string;
|
|
@@ -1508,6 +1578,9 @@ declare const PROTOCOL_RESPONSES: {
|
|
|
1508
1578
|
PLAY_CLIENT_STICKER: string;
|
|
1509
1579
|
ROOM_INTEGRATION_ENABLED: string;
|
|
1510
1580
|
ROOM_INTEGRATION_DISABLED: string;
|
|
1581
|
+
ROOM_INTEGRATION_STARTED: string;
|
|
1582
|
+
ROOM_INTEGRATION_STOPPED: string;
|
|
1583
|
+
ROOM_INTEGRATION_PROPS_UPDATED: string;
|
|
1511
1584
|
ROOM_JOINED: string;
|
|
1512
1585
|
ROOM_KNOCKED: string;
|
|
1513
1586
|
ROOM_LEFT: string;
|
|
@@ -2247,5 +2320,5 @@ declare class VegaRtcManager implements RtcManager {
|
|
|
2247
2320
|
hasClient(clientId: string): boolean;
|
|
2248
2321
|
}
|
|
2249
2322
|
|
|
2250
|
-
export { ADDITIONAL_SCREEN_SHARE_SETTINGS, AUDIO_SETTINGS, BandwidthTester, CAMERA_STREAM_ID, CAM_SAMPLES_SKIPPED_AFTER_CANDIDATE_PAIR_CHANGE, CONGESTED_FRACTION_LOST, CONGESTED_RTT_INFLATION_MS, EVENTS, FILE_SHARE_ERROR_CODES, INITIAL_CONSUMER_SPATIAL_LAYER, INITIAL_HIGHEST_PREFERRED_LAYER, KNOCK_MESSAGES, KalmanFilter, LOWEST_SVC_LAYER_MAX_BITRATE, Logger, MAX_CONCURRENT_PREFERRED_LAYER_SWITCH_WATCHES, MEDIA_JITTER_BUFFER_TARGET, MIDDLE_SVC_LAYER_MAX_BITRATE, NoDevicesError, P2pRtcManager, PREFERRED_LAYER_SWITCH_POLL_INTERVAL_MS, PREFERRED_LAYER_SWITCH_WATCH_TIMEOUT_MS, 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, enumerate, external_stun_servers, filterMidExtension, filterMsidSemantic, fromLocation, generateByteString, getConstraints, getCurrentPeerConnections, getDeviceData, getDisplayMedia, getInitialStream, getIssuesAndMetrics, getMediaConstraints, getMediaSettings, getMediasoupDeviceAsync, getNumFailedStatsReports, getNumFailedTrackSsrcLookups, getNumMissingTrackSsrcLookups, getPeerConnectionIndex, getSelectedCandidatePairId, 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, updateRenderedDimensions, variance };
|
|
2251
|
-
export type { AddCameraStreamOptions, AddSpotlightRequest, AudioEnableRequest, AudioEnableRequestedEvent, AudioEnabledEvent, BreakoutConfig, BreakoutGroupJoinedEvent, BreakoutSessionUpdateRequest, 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, GetInitialStreamOptions, GetMediaConstraintsOptions, GetStreamOptions, GetStreamResult, GetUpdatedDevicesResult, GetUserMediaAttempt, GetUserMediaAttemptOutcome, HostPresenceControlsError, IdentifyDeviceRequest, InternalServerError, InvalidAssistantKeyError, IssuesAndMetricsByView, JoinRoomRequest, KnockAcceptedEvent, KnockOnHoldEvent, KnockRejectedEvent, KnockResponse, KnockResponseSender, 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, ScreenshareEnableRequest, ScreenshareEnableRequestedEvent, 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 };
|
|
2323
|
+
export { ADDITIONAL_SCREEN_SHARE_SETTINGS, AUDIO_SETTINGS, BandwidthTester, CAMERA_STREAM_ID, CAM_SAMPLES_SKIPPED_AFTER_CANDIDATE_PAIR_CHANGE, CONGESTED_FRACTION_LOST, CONGESTED_RTT_INFLATION_MS, EVENTS, FILE_SHARE_ERROR_CODES, INITIAL_CONSUMER_SPATIAL_LAYER, INITIAL_HIGHEST_PREFERRED_LAYER, KNOCK_MESSAGES, KalmanFilter, LOWEST_SVC_LAYER_MAX_BITRATE, Logger, MAX_CONCURRENT_PREFERRED_LAYER_SWITCH_WATCHES, MEDIA_JITTER_BUFFER_TARGET, MIDDLE_SVC_LAYER_MAX_BITRATE, NoDevicesError, P2pRtcManager, PREFERRED_LAYER_SWITCH_POLL_INTERVAL_MS, PREFERRED_LAYER_SWITCH_WATCH_TIMEOUT_MS, PROTOCOL_ERRORS, PROTOCOL_EVENTS, PROTOCOL_REQUESTS, PROTOCOL_RESPONSES, RELAY_MESSAGES, ROOM_INTEGRATION_ERROR_CODES, 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, enumerate, external_stun_servers, filterMidExtension, filterMsidSemantic, fromLocation, generateByteString, getConstraints, getCurrentPeerConnections, getDeviceData, getDisplayMedia, getInitialStream, getIssuesAndMetrics, getMediaConstraints, getMediaSettings, getMediasoupDeviceAsync, getNumFailedStatsReports, getNumFailedTrackSsrcLookups, getNumMissingTrackSsrcLookups, getPeerConnectionIndex, getSelectedCandidatePairId, getStats, getStream, getUpdatedDevices, getUpdatedStats, getUserMedia, hasGetDisplayMedia, ipRegex, isFileShareError, isMobile, isRoomIntegrationErrorCode, issueDetectorOrMetricEnabled, maybeTurnOnly, modifyMediaCapabilities, removePeerConnection, replaceTracksInStream, _default as rtcManagerEvents, rtcStats, setClientProvider, setCodecPreferenceSDP, setPeerConnectionsForTests, setVideoBandwidthUsingSetParameters, sortCodecs, standardDeviation, startPerformanceMonitor, stopStreamTracks, subscribeIssues, subscribeStats, trackAnnotations, turnServerOverride, updateRenderedDimensions, variance };
|
|
2324
|
+
export type { AddCameraStreamOptions, AddSpotlightRequest, AudioEnableRequest, AudioEnableRequestedEvent, AudioEnabledEvent, BreakoutConfig, BreakoutGroupJoinedEvent, BreakoutSessionUpdateRequest, 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, GetInitialStreamOptions, GetMediaConstraintsOptions, GetStreamOptions, GetStreamResult, GetUpdatedDevicesResult, GetUserMediaAttempt, GetUserMediaAttemptOutcome, HostPresenceControlsError, IdentifyDeviceRequest, InternalServerError, InvalidAssistantKeyError, IssuesAndMetricsByView, JoinRoomRequest, KnockAcceptedEvent, KnockOnHoldEvent, KnockRejectedEvent, KnockResponse, KnockResponseSender, KnockRoomRequest, KnockerLeftEvent, LiveCaptionEvent, LiveCaptionsStartedEvent, LiveCaptionsStoppedEvent, LiveTranscriptionStartedEvent, LiveTranscriptionStoppedEvent, MaxViewerLimitReachedError, MediaPrefs, Metric, NewClientEvent, OrganizationAssistantNotEnabledError, OrganizationAssistantNotFoundError, OrganizationPlanExhaustedError, RemoveScreenshareStreamOptions, RemoveSpotlightRequest, RoleName, RoomConcurrencyControlsError, RoomEmptyError, RoomFullError, RoomIntegrationDisabledEvent, RoomIntegrationEnabledEvent, RoomIntegrationError, RoomIntegrationErrorCode, RoomIntegrationProps, RoomIntegrationPropsUpdatedEvent, RoomIntegrationPropsUpdatedSuccess, RoomIntegrationSessionEvent, RoomIntegrationSessionState, RoomIntegrationStartedEvent, RoomIntegrationStartedSuccess, RoomIntegrationStoppedEvent, RoomIntegrationStoppedSuccess, RoomJoinPermissionDeniedError, RoomJoinedErrors, RoomJoinedEvent, RoomJoinedSuccess, RoomKnockedEvent, RoomLockedError, RoomLockedEvent, RoomMeetingTimeExhaustedError, RoomMode, RoomSessionEndedEvent, RtcClientConnectionStatusChangedPayload, RtcEventEmitter, RtcEvents, RtcLocalStreamTrackAddedPayload, RtcLocalStreamTrackRemovedPayload, RtcManager, RtcManagerCreatedPayload, RtcManagerOptions, RtcStreamAddedPayload, ScreenshareEnableRequest, ScreenshareEnableRequestedEvent, ScreenshareStartedEvent, ScreenshareStoppedEvent, SendClientMetadataRequest, SignalClient, SignalEvents, SignalIceCandidateMessage, SignalIceEndOfCandidatesMessage, SignalIceServer, SignalKnocker, SignalMediaServerConfig, SignalRTCSessionDescription, SignalReadyToReceiveOfferMessage, SignalRequests, SignalRoom, SignalSDPMessage, SignalSFUServer, SignalTurnServer, SocketConf, SocketManager, Spotlight, SpotlightAddedEvent, SpotlightRemovedEvent, StartRoomIntegrationRequest, StatsMonitorOptions, StatsMonitorState, StatsSubscription, StopRoomIntegrationRequest, TurnTransportProtocol, UniqueRoleAlreadyInRoomError, UpdateRoomIntegrationPropsRequest, UpdatedDeviceInfo, UpdatedDevicesInfo, VegaConnectionOptions, VegaRtcManagerOptions, VideoEnableRequest, VideoEnableRequestedEvent, VideoEnabledEvent, WebRTCProvider };
|
package/dist/index.mjs
CHANGED
|
@@ -815,6 +815,9 @@ const PROTOCOL_RESPONSES = {
|
|
|
815
815
|
PLAY_CLIENT_STICKER: "play_client_sticker",
|
|
816
816
|
ROOM_INTEGRATION_ENABLED: "room_integration_enabled",
|
|
817
817
|
ROOM_INTEGRATION_DISABLED: "room_integration_disabled",
|
|
818
|
+
ROOM_INTEGRATION_STARTED: "room_integration_started",
|
|
819
|
+
ROOM_INTEGRATION_STOPPED: "room_integration_stopped",
|
|
820
|
+
ROOM_INTEGRATION_PROPS_UPDATED: "room_integration_props_updated",
|
|
818
821
|
ROOM_JOINED: "room_joined",
|
|
819
822
|
ROOM_KNOCKED: "room_knocked",
|
|
820
823
|
ROOM_LEFT: "room_left",
|
|
@@ -2388,6 +2391,16 @@ const FILE_SHARE_ERROR_CODES = [
|
|
|
2388
2391
|
function isFileShareError(payload) {
|
|
2389
2392
|
return "error" in payload && FILE_SHARE_ERROR_CODES.includes(payload.error);
|
|
2390
2393
|
}
|
|
2394
|
+
const ROOM_INTEGRATION_ERROR_CODES = [
|
|
2395
|
+
"not_in_a_room",
|
|
2396
|
+
"forbidden",
|
|
2397
|
+
"missing_parameters",
|
|
2398
|
+
"invalid_parameters",
|
|
2399
|
+
"internal_server_error",
|
|
2400
|
+
];
|
|
2401
|
+
function isRoomIntegrationErrorCode(error) {
|
|
2402
|
+
return ROOM_INTEGRATION_ERROR_CODES.includes(error);
|
|
2403
|
+
}
|
|
2391
2404
|
|
|
2392
2405
|
const defaultSubdomainPattern = /^(?:([^.]+)[.])?((:?[^.]+[.]){1,}[^.]+)$/;
|
|
2393
2406
|
const localstackPattern = /^(?:([^.]+)-)?(ip-[^.]*[.](?:hereby[.]dev|rfc1918[.]disappear[.]at)(?::\d+|))$/;
|
|
@@ -7903,4 +7916,4 @@ var RtcEventNames;
|
|
|
7903
7916
|
RtcEventNames["stream_added"] = "stream_added";
|
|
7904
7917
|
})(RtcEventNames || (RtcEventNames = {}));
|
|
7905
7918
|
|
|
7906
|
-
export { ADDITIONAL_SCREEN_SHARE_SETTINGS, AUDIO_SETTINGS, BandwidthTester, CAMERA_STREAM_ID, CAM_SAMPLES_SKIPPED_AFTER_CANDIDATE_PAIR_CHANGE, CONGESTED_FRACTION_LOST, CONGESTED_RTT_INFLATION_MS, EVENTS, FILE_SHARE_ERROR_CODES, INITIAL_CONSUMER_SPATIAL_LAYER, INITIAL_HIGHEST_PREFERRED_LAYER, KNOCK_MESSAGES, KalmanFilter, LOWEST_SVC_LAYER_MAX_BITRATE, Logger, MAX_CONCURRENT_PREFERRED_LAYER_SWITCH_WATCHES, MEDIA_JITTER_BUFFER_TARGET, MIDDLE_SVC_LAYER_MAX_BITRATE, NoDevicesError, P2pRtcManager, PREFERRED_LAYER_SWITCH_POLL_INTERVAL_MS, PREFERRED_LAYER_SWITCH_WATCH_TIMEOUT_MS, 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, enumerate, external_stun_servers, filterMidExtension, filterMsidSemantic, fromLocation, generateByteString, getConstraints, getCurrentPeerConnections, getDeviceData, getDisplayMedia, getInitialStream, getIssuesAndMetrics, getMediaConstraints, getMediaSettings, getMediasoupDeviceAsync, getNumFailedStatsReports, getNumFailedTrackSsrcLookups, getNumMissingTrackSsrcLookups, getPeerConnectionIndex, getSelectedCandidatePairId, 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, updateRenderedDimensions, variance };
|
|
7919
|
+
export { ADDITIONAL_SCREEN_SHARE_SETTINGS, AUDIO_SETTINGS, BandwidthTester, CAMERA_STREAM_ID, CAM_SAMPLES_SKIPPED_AFTER_CANDIDATE_PAIR_CHANGE, CONGESTED_FRACTION_LOST, CONGESTED_RTT_INFLATION_MS, EVENTS, FILE_SHARE_ERROR_CODES, INITIAL_CONSUMER_SPATIAL_LAYER, INITIAL_HIGHEST_PREFERRED_LAYER, KNOCK_MESSAGES, KalmanFilter, LOWEST_SVC_LAYER_MAX_BITRATE, Logger, MAX_CONCURRENT_PREFERRED_LAYER_SWITCH_WATCHES, MEDIA_JITTER_BUFFER_TARGET, MIDDLE_SVC_LAYER_MAX_BITRATE, NoDevicesError, P2pRtcManager, PREFERRED_LAYER_SWITCH_POLL_INTERVAL_MS, PREFERRED_LAYER_SWITCH_WATCH_TIMEOUT_MS, PROTOCOL_ERRORS, PROTOCOL_EVENTS, PROTOCOL_REQUESTS, PROTOCOL_RESPONSES, RELAY_MESSAGES, ROOM_INTEGRATION_ERROR_CODES, 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, enumerate, external_stun_servers, filterMidExtension, filterMsidSemantic, fromLocation, generateByteString, getConstraints, getCurrentPeerConnections, getDeviceData, getDisplayMedia, getInitialStream, getIssuesAndMetrics, getMediaConstraints, getMediaSettings, getMediasoupDeviceAsync, getNumFailedStatsReports, getNumFailedTrackSsrcLookups, getNumMissingTrackSsrcLookups, getPeerConnectionIndex, getSelectedCandidatePairId, getStats, getStream, getUpdatedDevices, getUpdatedStats, getUserMedia, hasGetDisplayMedia, ipRegex, isFileShareError, isMobile, isRoomIntegrationErrorCode, issueDetectorOrMetricEnabled, maybeTurnOnly, modifyMediaCapabilities, removePeerConnection, replaceTracksInStream, rtcManagerEvents, rtcStats, setClientProvider, setCodecPreferenceSDP, setPeerConnectionsForTests, setVideoBandwidthUsingSetParameters, sortCodecs, standardDeviation, startPerformanceMonitor, stopStreamTracks, subscribeIssues, subscribeStats, trackAnnotations, turnServerOverride, updateRenderedDimensions, variance };
|
package/dist/legacy-esm.js
CHANGED
|
@@ -815,6 +815,9 @@ const PROTOCOL_RESPONSES = {
|
|
|
815
815
|
PLAY_CLIENT_STICKER: "play_client_sticker",
|
|
816
816
|
ROOM_INTEGRATION_ENABLED: "room_integration_enabled",
|
|
817
817
|
ROOM_INTEGRATION_DISABLED: "room_integration_disabled",
|
|
818
|
+
ROOM_INTEGRATION_STARTED: "room_integration_started",
|
|
819
|
+
ROOM_INTEGRATION_STOPPED: "room_integration_stopped",
|
|
820
|
+
ROOM_INTEGRATION_PROPS_UPDATED: "room_integration_props_updated",
|
|
818
821
|
ROOM_JOINED: "room_joined",
|
|
819
822
|
ROOM_KNOCKED: "room_knocked",
|
|
820
823
|
ROOM_LEFT: "room_left",
|
|
@@ -2388,6 +2391,16 @@ const FILE_SHARE_ERROR_CODES = [
|
|
|
2388
2391
|
function isFileShareError(payload) {
|
|
2389
2392
|
return "error" in payload && FILE_SHARE_ERROR_CODES.includes(payload.error);
|
|
2390
2393
|
}
|
|
2394
|
+
const ROOM_INTEGRATION_ERROR_CODES = [
|
|
2395
|
+
"not_in_a_room",
|
|
2396
|
+
"forbidden",
|
|
2397
|
+
"missing_parameters",
|
|
2398
|
+
"invalid_parameters",
|
|
2399
|
+
"internal_server_error",
|
|
2400
|
+
];
|
|
2401
|
+
function isRoomIntegrationErrorCode(error) {
|
|
2402
|
+
return ROOM_INTEGRATION_ERROR_CODES.includes(error);
|
|
2403
|
+
}
|
|
2391
2404
|
|
|
2392
2405
|
const defaultSubdomainPattern = /^(?:([^.]+)[.])?((:?[^.]+[.]){1,}[^.]+)$/;
|
|
2393
2406
|
const localstackPattern = /^(?:([^.]+)-)?(ip-[^.]*[.](?:hereby[.]dev|rfc1918[.]disappear[.]at)(?::\d+|))$/;
|
|
@@ -7903,5 +7916,5 @@ var RtcEventNames;
|
|
|
7903
7916
|
RtcEventNames["stream_added"] = "stream_added";
|
|
7904
7917
|
})(RtcEventNames || (RtcEventNames = {}));
|
|
7905
7918
|
|
|
7906
|
-
export { ADDITIONAL_SCREEN_SHARE_SETTINGS, AUDIO_SETTINGS, BandwidthTester, CAMERA_STREAM_ID, CAM_SAMPLES_SKIPPED_AFTER_CANDIDATE_PAIR_CHANGE, CONGESTED_FRACTION_LOST, CONGESTED_RTT_INFLATION_MS, EVENTS, FILE_SHARE_ERROR_CODES, INITIAL_CONSUMER_SPATIAL_LAYER, INITIAL_HIGHEST_PREFERRED_LAYER, KNOCK_MESSAGES, KalmanFilter, LOWEST_SVC_LAYER_MAX_BITRATE, Logger, MAX_CONCURRENT_PREFERRED_LAYER_SWITCH_WATCHES, MEDIA_JITTER_BUFFER_TARGET, MIDDLE_SVC_LAYER_MAX_BITRATE, NoDevicesError, P2pRtcManager, PREFERRED_LAYER_SWITCH_POLL_INTERVAL_MS, PREFERRED_LAYER_SWITCH_WATCH_TIMEOUT_MS, 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, enumerate, external_stun_servers, filterMidExtension, filterMsidSemantic, fromLocation, generateByteString, getConstraints, getCurrentPeerConnections, getDeviceData, getDisplayMedia, getInitialStream, getIssuesAndMetrics, getMediaConstraints, getMediaSettings, getMediasoupDeviceAsync, getNumFailedStatsReports, getNumFailedTrackSsrcLookups, getNumMissingTrackSsrcLookups, getPeerConnectionIndex, getSelectedCandidatePairId, 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, updateRenderedDimensions, variance };
|
|
7919
|
+
export { ADDITIONAL_SCREEN_SHARE_SETTINGS, AUDIO_SETTINGS, BandwidthTester, CAMERA_STREAM_ID, CAM_SAMPLES_SKIPPED_AFTER_CANDIDATE_PAIR_CHANGE, CONGESTED_FRACTION_LOST, CONGESTED_RTT_INFLATION_MS, EVENTS, FILE_SHARE_ERROR_CODES, INITIAL_CONSUMER_SPATIAL_LAYER, INITIAL_HIGHEST_PREFERRED_LAYER, KNOCK_MESSAGES, KalmanFilter, LOWEST_SVC_LAYER_MAX_BITRATE, Logger, MAX_CONCURRENT_PREFERRED_LAYER_SWITCH_WATCHES, MEDIA_JITTER_BUFFER_TARGET, MIDDLE_SVC_LAYER_MAX_BITRATE, NoDevicesError, P2pRtcManager, PREFERRED_LAYER_SWITCH_POLL_INTERVAL_MS, PREFERRED_LAYER_SWITCH_WATCH_TIMEOUT_MS, PROTOCOL_ERRORS, PROTOCOL_EVENTS, PROTOCOL_REQUESTS, PROTOCOL_RESPONSES, RELAY_MESSAGES, ROOM_INTEGRATION_ERROR_CODES, 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, enumerate, external_stun_servers, filterMidExtension, filterMsidSemantic, fromLocation, generateByteString, getConstraints, getCurrentPeerConnections, getDeviceData, getDisplayMedia, getInitialStream, getIssuesAndMetrics, getMediaConstraints, getMediaSettings, getMediasoupDeviceAsync, getNumFailedStatsReports, getNumFailedTrackSsrcLookups, getNumMissingTrackSsrcLookups, getPeerConnectionIndex, getSelectedCandidatePairId, getStats, getStream, getUpdatedDevices, getUpdatedStats, getUserMedia, hasGetDisplayMedia, ipRegex, isFileShareError, isMobile, isRoomIntegrationErrorCode, issueDetectorOrMetricEnabled, maybeTurnOnly, modifyMediaCapabilities, removePeerConnection, replaceTracksInStream, rtcManagerEvents, rtcStats, setClientProvider, setCodecPreferenceSDP, setPeerConnectionsForTests, setVideoBandwidthUsingSetParameters, sortCodecs, standardDeviation, startPerformanceMonitor, stopStreamTracks, subscribeIssues, subscribeStats, trackAnnotations, turnServerOverride, updateRenderedDimensions, variance };
|
|
7907
7920
|
//# 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": "11.
|
|
4
|
+
"version": "11.2.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://github.com/whereby/sdk",
|
|
7
7
|
"repository": {
|
|
@@ -64,8 +64,8 @@
|
|
|
64
64
|
"typescript": "^5.8.3",
|
|
65
65
|
"@whereby.com/eslint-config": "0.1.0",
|
|
66
66
|
"@whereby.com/jest-config": "0.1.0",
|
|
67
|
-
"@whereby.com/prettier-config": "0.1.0",
|
|
68
67
|
"@whereby.com/rollup-config": "0.1.1",
|
|
68
|
+
"@whereby.com/prettier-config": "0.1.0",
|
|
69
69
|
"@whereby.com/tsconfig": "0.1.0"
|
|
70
70
|
},
|
|
71
71
|
"engines": {
|