@cloudflare/realtimekit 2.0.5-staging.2 → 2.1.0-staging.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.d.ts CHANGED
@@ -1,8 +1,8 @@
1
+ import { MessageType as MessageType$1 } from '@protobuf-ts/runtime';
2
+ import { InhouseCallStats } from '@cloudflare/realtimekit-callstats';
1
3
  import * as _cloudflare_realtimekit_utils from '@cloudflare/realtimekit-utils';
2
4
  import { PresetTypeV2, MediaVideoQualityType, ViewType, MediaScreenShareQualityType, LivestreamViewerMediaQualityType, PluginAccessControls, WaitingRoomTypes, MediaProductionPermissionType, RecorderType as RecorderType$1, BorderRadius, BorderWidth, Theme } from '@cloudflare/realtimekit-utils';
3
5
  import { EventEmitter } from 'events';
4
- import { InhouseCallStats } from '@cloudflare/realtimekit-callstats';
5
- import { MessageType as MessageType$1 } from '@protobuf-ts/runtime';
6
6
  import { ConsumerScoreStats, ProducerScoreStats } from '@cloudflare/realtimekit-callstats/dist/measurements/types';
7
7
  export { AudioConsumerScoreStats, AudioProducerScoreStats, ConsumerScoreStats, ProducerScoreStats, VideoConsumerScoreStats, VideoProducerScoreStats } from '@cloudflare/realtimekit-callstats/dist/measurements/types';
8
8
  import * as WorkerTimers from 'worker-timers';
@@ -4008,6 +4008,7 @@ interface DefaultOptions {
4008
4008
  };
4009
4009
  isNonPreferredDevice?: (device: MediaDeviceInfo) => boolean;
4010
4010
  plugins?: ClientPluginConfig[];
4011
+ viewMode?: ViewMode;
4011
4012
  }
4012
4013
  interface RoomDetails {
4013
4014
  meetingTitle: string;
@@ -4121,7 +4122,8 @@ declare const ERROR_CODES: {
4121
4122
  };
4122
4123
  declare class ClientError extends Error {
4123
4124
  code: keyof typeof ERROR_CODES;
4124
- constructor(message: string, code?: keyof typeof ERROR_CODES, logger?: Logger | undefined, log?: boolean);
4125
+ reason?: string;
4126
+ constructor(message: string, code?: keyof typeof ERROR_CODES, logger?: Logger | undefined, log?: boolean, reason?: string | undefined);
4125
4127
  }
4126
4128
 
4127
4129
  type EventMap = {