@whereby.com/media 5.0.1 → 5.0.2

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 CHANGED
@@ -1268,26 +1268,33 @@ const PROTOCOL_RESPONSES = {
1268
1268
  };
1269
1269
  const PROTOCOL_ERRORS = {
1270
1270
  CANNOT_INVITE_YOURSELF: "cannot_invite_yourself",
1271
+ CLIENT_BLOCKED: "client_blocked",
1271
1272
  CLIENT_MISSING_DEVICE_ID: "client_missing_device_id",
1272
1273
  FORBIDDEN: "forbidden",
1274
+ FREE_TIER_EXHAUSTED: "free_tier_exhausted",
1273
1275
  INTERNAL_SERVER_ERROR: "internal_server_error",
1274
1276
  INVALID_AVATAR: "invalid_avatar",
1275
1277
  INVALID_PARAMETERS: "invalid_parameters",
1276
1278
  INVALID_ROOM_NAME: "invalid_room_name",
1279
+ MAX_VIEWER_LIMIT_REACHED: "max_viewer_limit_reached",
1277
1280
  MISSING_PARAMETERS: "missing_parameters",
1278
1281
  MISSING_ROOM_NAME: "missing_room_name",
1279
1282
  NOT_AN_OWNER: "not_an_owner",
1280
1283
  NOT_IN_A_ROOM: "not_in_a_room",
1281
1284
  ROOM_ALREADY_CLAIMED: "room_already_claimed",
1285
+ ROOM_CONCURRENCY_CONTROL_ERROR: "room_concurrency_control_error",
1282
1286
  ROOM_EMAIL_MISSING: "room_email_missing",
1287
+ ROOM_EMPTY: "room_empty",
1283
1288
  ROOM_FULL: "room_full",
1284
- ROOM_UNCLAIMED: "room_unclaimed",
1285
- CLIENT_BLOCKED: "client_blocked",
1289
+ ROOM_JOIN_PERMISSION_DENIED: "room_join_permission_denied",
1286
1290
  ROOM_LOCKED: "room_locked",
1291
+ ROOM_MEETING_TIME_EXHAUSTED: "room_meeting_time_exhausted",
1292
+ ROOM_UNCLAIMED: "room_unclaimed",
1287
1293
  TOO_LONG_TEXT: "too_long_text",
1294
+ UNIQUE_ROLE_ALREADY_IN_ROOM: "unique_role_already_in_room",
1295
+ UNSUPPORTED_VIDEO_ENCODING: "unsupported_video_encoding",
1288
1296
  VIDEO_STICKER_DOES_NOT_EXIST: "video_sticker_does_not_exist",
1289
1297
  VIDEO_STICKER_FORMAT_ERROR: "video_sticker_format_error",
1290
- UNSUPPORTED_VIDEO_ENCODING: "unsupported_video_encoding",
1291
1298
  };
1292
1299
  const RELAY_MESSAGES = {
1293
1300
  CHAT_MESSAGE: "chat_message",
package/dist/index.d.cts CHANGED
@@ -661,10 +661,22 @@ interface RoomLockedError {
661
661
  logoUrl?: string;
662
662
  knockPageBackgroundImageUrl?: string;
663
663
  }
664
+ interface RoomEmptyError {
665
+ error: "room_empty";
666
+ isClaimed: boolean;
667
+ }
664
668
  interface RoomFullError {
665
669
  error: "room_full";
666
670
  isClaimed: boolean;
667
671
  }
672
+ interface RoomJoinPermissionDeniedError {
673
+ error: "room_join_permission_denied";
674
+ isClaimed: boolean;
675
+ }
676
+ interface UniqueRoleAlreadyInRoomError {
677
+ error: "unique_role_already_in_room";
678
+ isClaimed: boolean;
679
+ }
668
680
  interface RoomConcurrencyControlsError {
669
681
  error: "room_concurrency_control_error";
670
682
  }
@@ -700,7 +712,7 @@ type ForbiddenErrorNames = "missing_parameters" | "invalid_parameters" | "invali
700
712
  interface ForbiddenError {
701
713
  error: ForbiddenErrorNames;
702
714
  }
703
- type RoomJoinedErrors = RoomLockedError | RoomFullError | RoomConcurrencyControlsError | CannotJoinUnclaimedRoomError | OrganizationPlanExhaustedError | RoomMeetingTimeExhaustedError | MaxViewerLimitReachedError | HostPresenceControlsError | ForbiddenError | InternalServerError | InvalidAssistantKeyError | OrganizationAssistantNotFoundError | OrganizationAssistantNotEnabledError;
715
+ type RoomJoinedErrors = RoomLockedError | RoomEmptyError | RoomFullError | RoomJoinPermissionDeniedError | RoomConcurrencyControlsError | CannotJoinUnclaimedRoomError | OrganizationPlanExhaustedError | RoomMeetingTimeExhaustedError | MaxViewerLimitReachedError | HostPresenceControlsError | ForbiddenError | InternalServerError | InvalidAssistantKeyError | OrganizationAssistantNotFoundError | OrganizationAssistantNotEnabledError | UniqueRoleAlreadyInRoomError;
704
716
  type SignalRoom = {
705
717
  clients: SignalClient[];
706
718
  iceServers: {
@@ -1867,26 +1879,33 @@ declare const PROTOCOL_RESPONSES: {
1867
1879
  };
1868
1880
  declare const PROTOCOL_ERRORS: {
1869
1881
  CANNOT_INVITE_YOURSELF: string;
1882
+ CLIENT_BLOCKED: string;
1870
1883
  CLIENT_MISSING_DEVICE_ID: string;
1871
1884
  FORBIDDEN: string;
1885
+ FREE_TIER_EXHAUSTED: string;
1872
1886
  INTERNAL_SERVER_ERROR: string;
1873
1887
  INVALID_AVATAR: string;
1874
1888
  INVALID_PARAMETERS: string;
1875
1889
  INVALID_ROOM_NAME: string;
1890
+ MAX_VIEWER_LIMIT_REACHED: string;
1876
1891
  MISSING_PARAMETERS: string;
1877
1892
  MISSING_ROOM_NAME: string;
1878
1893
  NOT_AN_OWNER: string;
1879
1894
  NOT_IN_A_ROOM: string;
1880
1895
  ROOM_ALREADY_CLAIMED: string;
1896
+ ROOM_CONCURRENCY_CONTROL_ERROR: string;
1881
1897
  ROOM_EMAIL_MISSING: string;
1898
+ ROOM_EMPTY: string;
1882
1899
  ROOM_FULL: string;
1883
- ROOM_UNCLAIMED: string;
1884
- CLIENT_BLOCKED: string;
1900
+ ROOM_JOIN_PERMISSION_DENIED: string;
1885
1901
  ROOM_LOCKED: string;
1902
+ ROOM_MEETING_TIME_EXHAUSTED: string;
1903
+ ROOM_UNCLAIMED: string;
1886
1904
  TOO_LONG_TEXT: string;
1905
+ UNIQUE_ROLE_ALREADY_IN_ROOM: string;
1906
+ UNSUPPORTED_VIDEO_ENCODING: string;
1887
1907
  VIDEO_STICKER_DOES_NOT_EXIST: string;
1888
1908
  VIDEO_STICKER_FORMAT_ERROR: string;
1889
- UNSUPPORTED_VIDEO_ENCODING: string;
1890
1909
  };
1891
1910
  declare const RELAY_MESSAGES: {
1892
1911
  CHAT_MESSAGE: string;
@@ -1924,4 +1943,4 @@ declare const STREAM_TYPES: {
1924
1943
  };
1925
1944
 
1926
1945
  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 };
1927
- export type { AddCameraStreamOptions, AddSpotlightRequest, AudioEnableRequest, AudioEnableRequestedEvent, AudioEnabledEvent, BreakoutConfig, BreakoutGroupJoinedEvent, BreakoutSessionUpdatedEvent, CannotJoinUnclaimedRoomError, ChatMessage, ClientKickedEvent, ClientLeftEvent, ClientMetadataPayload, ClientMetadataReceivedEvent, ClientRole, ClientUnableToJoinEvent, CloudRecordingStartedEvent, Codec, Credentials, ForbiddenError, ForbiddenErrorNames, GetConstraintsOptions, GetDeviceDataResult, GetMediaConstraintsOptions, GetStreamOptions, GetStreamResult, GetUpdatedDevicesResult, HostPresenceControlsError, IdentifyDeviceRequest, InternalServerError, InvalidAssistantKeyError, IssuesAndMetricsByView, JoinRoomRequest, KnockAcceptedEvent, KnockRejectedEvent, KnockRoomRequest, KnockerLeftEvent, LiveTranscriptionStartedEvent, LiveTranscriptionStoppedEvent, MaxViewerLimitReachedError, Metric, NewClientEvent, OrganizationAssistantNotEnabledError, OrganizationAssistantNotFoundError, OrganizationPlanExhaustedError, RemoveScreenshareStreamOptions, RemoveSpotlightRequest, RoleName, RoomConcurrencyControlsError, RoomFullError, 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, UpdatedDeviceInfo, UpdatedDevicesInfo, VegaRtcManagerOptions, VideoEnableRequest, VideoEnableRequestedEvent, VideoEnabledEvent, WebRTCProvider };
1946
+ export type { AddCameraStreamOptions, AddSpotlightRequest, AudioEnableRequest, AudioEnableRequestedEvent, AudioEnabledEvent, BreakoutConfig, BreakoutGroupJoinedEvent, BreakoutSessionUpdatedEvent, CannotJoinUnclaimedRoomError, ChatMessage, ClientKickedEvent, ClientLeftEvent, ClientMetadataPayload, ClientMetadataReceivedEvent, ClientRole, ClientUnableToJoinEvent, CloudRecordingStartedEvent, Codec, Credentials, ForbiddenError, ForbiddenErrorNames, GetConstraintsOptions, GetDeviceDataResult, GetMediaConstraintsOptions, GetStreamOptions, GetStreamResult, GetUpdatedDevicesResult, HostPresenceControlsError, IdentifyDeviceRequest, InternalServerError, InvalidAssistantKeyError, IssuesAndMetricsByView, JoinRoomRequest, KnockAcceptedEvent, KnockRejectedEvent, KnockRoomRequest, KnockerLeftEvent, LiveTranscriptionStartedEvent, LiveTranscriptionStoppedEvent, MaxViewerLimitReachedError, 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, VegaRtcManagerOptions, VideoEnableRequest, VideoEnableRequestedEvent, VideoEnabledEvent, WebRTCProvider };
package/dist/index.d.mts CHANGED
@@ -661,10 +661,22 @@ interface RoomLockedError {
661
661
  logoUrl?: string;
662
662
  knockPageBackgroundImageUrl?: string;
663
663
  }
664
+ interface RoomEmptyError {
665
+ error: "room_empty";
666
+ isClaimed: boolean;
667
+ }
664
668
  interface RoomFullError {
665
669
  error: "room_full";
666
670
  isClaimed: boolean;
667
671
  }
672
+ interface RoomJoinPermissionDeniedError {
673
+ error: "room_join_permission_denied";
674
+ isClaimed: boolean;
675
+ }
676
+ interface UniqueRoleAlreadyInRoomError {
677
+ error: "unique_role_already_in_room";
678
+ isClaimed: boolean;
679
+ }
668
680
  interface RoomConcurrencyControlsError {
669
681
  error: "room_concurrency_control_error";
670
682
  }
@@ -700,7 +712,7 @@ type ForbiddenErrorNames = "missing_parameters" | "invalid_parameters" | "invali
700
712
  interface ForbiddenError {
701
713
  error: ForbiddenErrorNames;
702
714
  }
703
- type RoomJoinedErrors = RoomLockedError | RoomFullError | RoomConcurrencyControlsError | CannotJoinUnclaimedRoomError | OrganizationPlanExhaustedError | RoomMeetingTimeExhaustedError | MaxViewerLimitReachedError | HostPresenceControlsError | ForbiddenError | InternalServerError | InvalidAssistantKeyError | OrganizationAssistantNotFoundError | OrganizationAssistantNotEnabledError;
715
+ type RoomJoinedErrors = RoomLockedError | RoomEmptyError | RoomFullError | RoomJoinPermissionDeniedError | RoomConcurrencyControlsError | CannotJoinUnclaimedRoomError | OrganizationPlanExhaustedError | RoomMeetingTimeExhaustedError | MaxViewerLimitReachedError | HostPresenceControlsError | ForbiddenError | InternalServerError | InvalidAssistantKeyError | OrganizationAssistantNotFoundError | OrganizationAssistantNotEnabledError | UniqueRoleAlreadyInRoomError;
704
716
  type SignalRoom = {
705
717
  clients: SignalClient[];
706
718
  iceServers: {
@@ -1867,26 +1879,33 @@ declare const PROTOCOL_RESPONSES: {
1867
1879
  };
1868
1880
  declare const PROTOCOL_ERRORS: {
1869
1881
  CANNOT_INVITE_YOURSELF: string;
1882
+ CLIENT_BLOCKED: string;
1870
1883
  CLIENT_MISSING_DEVICE_ID: string;
1871
1884
  FORBIDDEN: string;
1885
+ FREE_TIER_EXHAUSTED: string;
1872
1886
  INTERNAL_SERVER_ERROR: string;
1873
1887
  INVALID_AVATAR: string;
1874
1888
  INVALID_PARAMETERS: string;
1875
1889
  INVALID_ROOM_NAME: string;
1890
+ MAX_VIEWER_LIMIT_REACHED: string;
1876
1891
  MISSING_PARAMETERS: string;
1877
1892
  MISSING_ROOM_NAME: string;
1878
1893
  NOT_AN_OWNER: string;
1879
1894
  NOT_IN_A_ROOM: string;
1880
1895
  ROOM_ALREADY_CLAIMED: string;
1896
+ ROOM_CONCURRENCY_CONTROL_ERROR: string;
1881
1897
  ROOM_EMAIL_MISSING: string;
1898
+ ROOM_EMPTY: string;
1882
1899
  ROOM_FULL: string;
1883
- ROOM_UNCLAIMED: string;
1884
- CLIENT_BLOCKED: string;
1900
+ ROOM_JOIN_PERMISSION_DENIED: string;
1885
1901
  ROOM_LOCKED: string;
1902
+ ROOM_MEETING_TIME_EXHAUSTED: string;
1903
+ ROOM_UNCLAIMED: string;
1886
1904
  TOO_LONG_TEXT: string;
1905
+ UNIQUE_ROLE_ALREADY_IN_ROOM: string;
1906
+ UNSUPPORTED_VIDEO_ENCODING: string;
1887
1907
  VIDEO_STICKER_DOES_NOT_EXIST: string;
1888
1908
  VIDEO_STICKER_FORMAT_ERROR: string;
1889
- UNSUPPORTED_VIDEO_ENCODING: string;
1890
1909
  };
1891
1910
  declare const RELAY_MESSAGES: {
1892
1911
  CHAT_MESSAGE: string;
@@ -1924,4 +1943,4 @@ declare const STREAM_TYPES: {
1924
1943
  };
1925
1944
 
1926
1945
  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 };
1927
- export type { AddCameraStreamOptions, AddSpotlightRequest, AudioEnableRequest, AudioEnableRequestedEvent, AudioEnabledEvent, BreakoutConfig, BreakoutGroupJoinedEvent, BreakoutSessionUpdatedEvent, CannotJoinUnclaimedRoomError, ChatMessage, ClientKickedEvent, ClientLeftEvent, ClientMetadataPayload, ClientMetadataReceivedEvent, ClientRole, ClientUnableToJoinEvent, CloudRecordingStartedEvent, Codec, Credentials, ForbiddenError, ForbiddenErrorNames, GetConstraintsOptions, GetDeviceDataResult, GetMediaConstraintsOptions, GetStreamOptions, GetStreamResult, GetUpdatedDevicesResult, HostPresenceControlsError, IdentifyDeviceRequest, InternalServerError, InvalidAssistantKeyError, IssuesAndMetricsByView, JoinRoomRequest, KnockAcceptedEvent, KnockRejectedEvent, KnockRoomRequest, KnockerLeftEvent, LiveTranscriptionStartedEvent, LiveTranscriptionStoppedEvent, MaxViewerLimitReachedError, Metric, NewClientEvent, OrganizationAssistantNotEnabledError, OrganizationAssistantNotFoundError, OrganizationPlanExhaustedError, RemoveScreenshareStreamOptions, RemoveSpotlightRequest, RoleName, RoomConcurrencyControlsError, RoomFullError, 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, UpdatedDeviceInfo, UpdatedDevicesInfo, VegaRtcManagerOptions, VideoEnableRequest, VideoEnableRequestedEvent, VideoEnabledEvent, WebRTCProvider };
1946
+ export type { AddCameraStreamOptions, AddSpotlightRequest, AudioEnableRequest, AudioEnableRequestedEvent, AudioEnabledEvent, BreakoutConfig, BreakoutGroupJoinedEvent, BreakoutSessionUpdatedEvent, CannotJoinUnclaimedRoomError, ChatMessage, ClientKickedEvent, ClientLeftEvent, ClientMetadataPayload, ClientMetadataReceivedEvent, ClientRole, ClientUnableToJoinEvent, CloudRecordingStartedEvent, Codec, Credentials, ForbiddenError, ForbiddenErrorNames, GetConstraintsOptions, GetDeviceDataResult, GetMediaConstraintsOptions, GetStreamOptions, GetStreamResult, GetUpdatedDevicesResult, HostPresenceControlsError, IdentifyDeviceRequest, InternalServerError, InvalidAssistantKeyError, IssuesAndMetricsByView, JoinRoomRequest, KnockAcceptedEvent, KnockRejectedEvent, KnockRoomRequest, KnockerLeftEvent, LiveTranscriptionStartedEvent, LiveTranscriptionStoppedEvent, MaxViewerLimitReachedError, 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, VegaRtcManagerOptions, VideoEnableRequest, VideoEnableRequestedEvent, VideoEnabledEvent, WebRTCProvider };
package/dist/index.d.ts CHANGED
@@ -661,10 +661,22 @@ interface RoomLockedError {
661
661
  logoUrl?: string;
662
662
  knockPageBackgroundImageUrl?: string;
663
663
  }
664
+ interface RoomEmptyError {
665
+ error: "room_empty";
666
+ isClaimed: boolean;
667
+ }
664
668
  interface RoomFullError {
665
669
  error: "room_full";
666
670
  isClaimed: boolean;
667
671
  }
672
+ interface RoomJoinPermissionDeniedError {
673
+ error: "room_join_permission_denied";
674
+ isClaimed: boolean;
675
+ }
676
+ interface UniqueRoleAlreadyInRoomError {
677
+ error: "unique_role_already_in_room";
678
+ isClaimed: boolean;
679
+ }
668
680
  interface RoomConcurrencyControlsError {
669
681
  error: "room_concurrency_control_error";
670
682
  }
@@ -700,7 +712,7 @@ type ForbiddenErrorNames = "missing_parameters" | "invalid_parameters" | "invali
700
712
  interface ForbiddenError {
701
713
  error: ForbiddenErrorNames;
702
714
  }
703
- type RoomJoinedErrors = RoomLockedError | RoomFullError | RoomConcurrencyControlsError | CannotJoinUnclaimedRoomError | OrganizationPlanExhaustedError | RoomMeetingTimeExhaustedError | MaxViewerLimitReachedError | HostPresenceControlsError | ForbiddenError | InternalServerError | InvalidAssistantKeyError | OrganizationAssistantNotFoundError | OrganizationAssistantNotEnabledError;
715
+ type RoomJoinedErrors = RoomLockedError | RoomEmptyError | RoomFullError | RoomJoinPermissionDeniedError | RoomConcurrencyControlsError | CannotJoinUnclaimedRoomError | OrganizationPlanExhaustedError | RoomMeetingTimeExhaustedError | MaxViewerLimitReachedError | HostPresenceControlsError | ForbiddenError | InternalServerError | InvalidAssistantKeyError | OrganizationAssistantNotFoundError | OrganizationAssistantNotEnabledError | UniqueRoleAlreadyInRoomError;
704
716
  type SignalRoom = {
705
717
  clients: SignalClient[];
706
718
  iceServers: {
@@ -1867,26 +1879,33 @@ declare const PROTOCOL_RESPONSES: {
1867
1879
  };
1868
1880
  declare const PROTOCOL_ERRORS: {
1869
1881
  CANNOT_INVITE_YOURSELF: string;
1882
+ CLIENT_BLOCKED: string;
1870
1883
  CLIENT_MISSING_DEVICE_ID: string;
1871
1884
  FORBIDDEN: string;
1885
+ FREE_TIER_EXHAUSTED: string;
1872
1886
  INTERNAL_SERVER_ERROR: string;
1873
1887
  INVALID_AVATAR: string;
1874
1888
  INVALID_PARAMETERS: string;
1875
1889
  INVALID_ROOM_NAME: string;
1890
+ MAX_VIEWER_LIMIT_REACHED: string;
1876
1891
  MISSING_PARAMETERS: string;
1877
1892
  MISSING_ROOM_NAME: string;
1878
1893
  NOT_AN_OWNER: string;
1879
1894
  NOT_IN_A_ROOM: string;
1880
1895
  ROOM_ALREADY_CLAIMED: string;
1896
+ ROOM_CONCURRENCY_CONTROL_ERROR: string;
1881
1897
  ROOM_EMAIL_MISSING: string;
1898
+ ROOM_EMPTY: string;
1882
1899
  ROOM_FULL: string;
1883
- ROOM_UNCLAIMED: string;
1884
- CLIENT_BLOCKED: string;
1900
+ ROOM_JOIN_PERMISSION_DENIED: string;
1885
1901
  ROOM_LOCKED: string;
1902
+ ROOM_MEETING_TIME_EXHAUSTED: string;
1903
+ ROOM_UNCLAIMED: string;
1886
1904
  TOO_LONG_TEXT: string;
1905
+ UNIQUE_ROLE_ALREADY_IN_ROOM: string;
1906
+ UNSUPPORTED_VIDEO_ENCODING: string;
1887
1907
  VIDEO_STICKER_DOES_NOT_EXIST: string;
1888
1908
  VIDEO_STICKER_FORMAT_ERROR: string;
1889
- UNSUPPORTED_VIDEO_ENCODING: string;
1890
1909
  };
1891
1910
  declare const RELAY_MESSAGES: {
1892
1911
  CHAT_MESSAGE: string;
@@ -1924,4 +1943,4 @@ declare const STREAM_TYPES: {
1924
1943
  };
1925
1944
 
1926
1945
  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 };
1927
- export type { AddCameraStreamOptions, AddSpotlightRequest, AudioEnableRequest, AudioEnableRequestedEvent, AudioEnabledEvent, BreakoutConfig, BreakoutGroupJoinedEvent, BreakoutSessionUpdatedEvent, CannotJoinUnclaimedRoomError, ChatMessage, ClientKickedEvent, ClientLeftEvent, ClientMetadataPayload, ClientMetadataReceivedEvent, ClientRole, ClientUnableToJoinEvent, CloudRecordingStartedEvent, Codec, Credentials, ForbiddenError, ForbiddenErrorNames, GetConstraintsOptions, GetDeviceDataResult, GetMediaConstraintsOptions, GetStreamOptions, GetStreamResult, GetUpdatedDevicesResult, HostPresenceControlsError, IdentifyDeviceRequest, InternalServerError, InvalidAssistantKeyError, IssuesAndMetricsByView, JoinRoomRequest, KnockAcceptedEvent, KnockRejectedEvent, KnockRoomRequest, KnockerLeftEvent, LiveTranscriptionStartedEvent, LiveTranscriptionStoppedEvent, MaxViewerLimitReachedError, Metric, NewClientEvent, OrganizationAssistantNotEnabledError, OrganizationAssistantNotFoundError, OrganizationPlanExhaustedError, RemoveScreenshareStreamOptions, RemoveSpotlightRequest, RoleName, RoomConcurrencyControlsError, RoomFullError, 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, UpdatedDeviceInfo, UpdatedDevicesInfo, VegaRtcManagerOptions, VideoEnableRequest, VideoEnableRequestedEvent, VideoEnabledEvent, WebRTCProvider };
1946
+ export type { AddCameraStreamOptions, AddSpotlightRequest, AudioEnableRequest, AudioEnableRequestedEvent, AudioEnabledEvent, BreakoutConfig, BreakoutGroupJoinedEvent, BreakoutSessionUpdatedEvent, CannotJoinUnclaimedRoomError, ChatMessage, ClientKickedEvent, ClientLeftEvent, ClientMetadataPayload, ClientMetadataReceivedEvent, ClientRole, ClientUnableToJoinEvent, CloudRecordingStartedEvent, Codec, Credentials, ForbiddenError, ForbiddenErrorNames, GetConstraintsOptions, GetDeviceDataResult, GetMediaConstraintsOptions, GetStreamOptions, GetStreamResult, GetUpdatedDevicesResult, HostPresenceControlsError, IdentifyDeviceRequest, InternalServerError, InvalidAssistantKeyError, IssuesAndMetricsByView, JoinRoomRequest, KnockAcceptedEvent, KnockRejectedEvent, KnockRoomRequest, KnockerLeftEvent, LiveTranscriptionStartedEvent, LiveTranscriptionStoppedEvent, MaxViewerLimitReachedError, 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, VegaRtcManagerOptions, VideoEnableRequest, VideoEnableRequestedEvent, VideoEnabledEvent, WebRTCProvider };
package/dist/index.mjs CHANGED
@@ -1247,26 +1247,33 @@ const PROTOCOL_RESPONSES = {
1247
1247
  };
1248
1248
  const PROTOCOL_ERRORS = {
1249
1249
  CANNOT_INVITE_YOURSELF: "cannot_invite_yourself",
1250
+ CLIENT_BLOCKED: "client_blocked",
1250
1251
  CLIENT_MISSING_DEVICE_ID: "client_missing_device_id",
1251
1252
  FORBIDDEN: "forbidden",
1253
+ FREE_TIER_EXHAUSTED: "free_tier_exhausted",
1252
1254
  INTERNAL_SERVER_ERROR: "internal_server_error",
1253
1255
  INVALID_AVATAR: "invalid_avatar",
1254
1256
  INVALID_PARAMETERS: "invalid_parameters",
1255
1257
  INVALID_ROOM_NAME: "invalid_room_name",
1258
+ MAX_VIEWER_LIMIT_REACHED: "max_viewer_limit_reached",
1256
1259
  MISSING_PARAMETERS: "missing_parameters",
1257
1260
  MISSING_ROOM_NAME: "missing_room_name",
1258
1261
  NOT_AN_OWNER: "not_an_owner",
1259
1262
  NOT_IN_A_ROOM: "not_in_a_room",
1260
1263
  ROOM_ALREADY_CLAIMED: "room_already_claimed",
1264
+ ROOM_CONCURRENCY_CONTROL_ERROR: "room_concurrency_control_error",
1261
1265
  ROOM_EMAIL_MISSING: "room_email_missing",
1266
+ ROOM_EMPTY: "room_empty",
1262
1267
  ROOM_FULL: "room_full",
1263
- ROOM_UNCLAIMED: "room_unclaimed",
1264
- CLIENT_BLOCKED: "client_blocked",
1268
+ ROOM_JOIN_PERMISSION_DENIED: "room_join_permission_denied",
1265
1269
  ROOM_LOCKED: "room_locked",
1270
+ ROOM_MEETING_TIME_EXHAUSTED: "room_meeting_time_exhausted",
1271
+ ROOM_UNCLAIMED: "room_unclaimed",
1266
1272
  TOO_LONG_TEXT: "too_long_text",
1273
+ UNIQUE_ROLE_ALREADY_IN_ROOM: "unique_role_already_in_room",
1274
+ UNSUPPORTED_VIDEO_ENCODING: "unsupported_video_encoding",
1267
1275
  VIDEO_STICKER_DOES_NOT_EXIST: "video_sticker_does_not_exist",
1268
1276
  VIDEO_STICKER_FORMAT_ERROR: "video_sticker_format_error",
1269
- UNSUPPORTED_VIDEO_ENCODING: "unsupported_video_encoding",
1270
1277
  };
1271
1278
  const RELAY_MESSAGES = {
1272
1279
  CHAT_MESSAGE: "chat_message",
@@ -1247,26 +1247,33 @@ const PROTOCOL_RESPONSES = {
1247
1247
  };
1248
1248
  const PROTOCOL_ERRORS = {
1249
1249
  CANNOT_INVITE_YOURSELF: "cannot_invite_yourself",
1250
+ CLIENT_BLOCKED: "client_blocked",
1250
1251
  CLIENT_MISSING_DEVICE_ID: "client_missing_device_id",
1251
1252
  FORBIDDEN: "forbidden",
1253
+ FREE_TIER_EXHAUSTED: "free_tier_exhausted",
1252
1254
  INTERNAL_SERVER_ERROR: "internal_server_error",
1253
1255
  INVALID_AVATAR: "invalid_avatar",
1254
1256
  INVALID_PARAMETERS: "invalid_parameters",
1255
1257
  INVALID_ROOM_NAME: "invalid_room_name",
1258
+ MAX_VIEWER_LIMIT_REACHED: "max_viewer_limit_reached",
1256
1259
  MISSING_PARAMETERS: "missing_parameters",
1257
1260
  MISSING_ROOM_NAME: "missing_room_name",
1258
1261
  NOT_AN_OWNER: "not_an_owner",
1259
1262
  NOT_IN_A_ROOM: "not_in_a_room",
1260
1263
  ROOM_ALREADY_CLAIMED: "room_already_claimed",
1264
+ ROOM_CONCURRENCY_CONTROL_ERROR: "room_concurrency_control_error",
1261
1265
  ROOM_EMAIL_MISSING: "room_email_missing",
1266
+ ROOM_EMPTY: "room_empty",
1262
1267
  ROOM_FULL: "room_full",
1263
- ROOM_UNCLAIMED: "room_unclaimed",
1264
- CLIENT_BLOCKED: "client_blocked",
1268
+ ROOM_JOIN_PERMISSION_DENIED: "room_join_permission_denied",
1265
1269
  ROOM_LOCKED: "room_locked",
1270
+ ROOM_MEETING_TIME_EXHAUSTED: "room_meeting_time_exhausted",
1271
+ ROOM_UNCLAIMED: "room_unclaimed",
1266
1272
  TOO_LONG_TEXT: "too_long_text",
1273
+ UNIQUE_ROLE_ALREADY_IN_ROOM: "unique_role_already_in_room",
1274
+ UNSUPPORTED_VIDEO_ENCODING: "unsupported_video_encoding",
1267
1275
  VIDEO_STICKER_DOES_NOT_EXIST: "video_sticker_does_not_exist",
1268
1276
  VIDEO_STICKER_FORMAT_ERROR: "video_sticker_format_error",
1269
- UNSUPPORTED_VIDEO_ENCODING: "unsupported_video_encoding",
1270
1277
  };
1271
1278
  const RELAY_MESSAGES = {
1272
1279
  CHAT_MESSAGE: "chat_message",
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": "5.0.1",
4
+ "version": "5.0.2",
5
5
  "license": "MIT",
6
6
  "homepage": "https://github.com/whereby/sdk",
7
7
  "repository": {