@cloudflare/realtimekit 1.5.0-staging.2 → 1.5.0-staging.3
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/EncryptionManager.cjs.js +1 -1
- package/dist/EncryptionManager.d.ts +17 -14
- package/dist/EncryptionManager.es.js +191 -191
- package/dist/browser.js +13 -15
- package/dist/dependencies.txt +1 -1
- package/dist/index.cjs.js +10 -12
- package/dist/index.d.ts +17 -14
- package/dist/index.es.js +6826 -7140
- package/dist/index.es5.js +7636 -8014
- package/dist/index.rn.js +10 -12
- package/dist/ts3.4/dist/EncryptionManager.d.ts +24 -17
- package/dist/ts3.4/dist/index.d.ts +24 -17
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { EventEmitter } from 'events';
|
|
2
|
+
import { InhouseCallStats } from '@cloudflare/realtimekit-callstats';
|
|
2
3
|
import * as _cloudflare_realtimekit_utils from '@cloudflare/realtimekit-utils';
|
|
3
|
-
import { PresetTypeV2, MediaVideoQualityType, ViewType, LivestreamViewerMediaQualityType, MediaScreenShareQualityType, PluginAccessControls, WaitingRoomTypes, MediaProductionPermissionType, RecorderType as RecorderType$1, BorderRadius, BorderWidth, Theme
|
|
4
|
+
import { PresetTypeV2, MediaVideoQualityType, ViewType, LivestreamViewerMediaQualityType, MediaScreenShareQualityType, PluginAccessControls, WaitingRoomTypes, MediaProductionPermissionType, RecorderType as RecorderType$1, BorderRadius, BorderWidth, Theme } from '@cloudflare/realtimekit-utils';
|
|
4
5
|
import { MessageType as MessageType$1 } from '@protobuf-ts/runtime';
|
|
5
|
-
import { InhouseCallStats } from '@cloudflare/realtimekit-callstats';
|
|
6
6
|
import { ProducerScoreStats, ConsumerScoreStats } from '@cloudflare/realtimekit-callstats/dist/measurements/types';
|
|
7
7
|
import * as WorkerTimers from 'worker-timers';
|
|
8
8
|
|
|
@@ -3128,13 +3128,17 @@ declare class BrowserCapabilities extends BrowserDetection {
|
|
|
3128
3128
|
isIOSMobile(): boolean;
|
|
3129
3129
|
}
|
|
3130
3130
|
|
|
3131
|
+
type FlagValues = boolean | string | number | null | undefined;
|
|
3132
|
+
type FlagsEntry = Record<'enabled' | 'value', boolean | FlagValues> & {
|
|
3133
|
+
enabled: boolean;
|
|
3134
|
+
value: FlagValues;
|
|
3135
|
+
};
|
|
3136
|
+
type FlagsMap = Record<string, FlagsEntry>;
|
|
3131
3137
|
declare class Features {
|
|
3132
3138
|
constructor(context: Context<ContextState>);
|
|
3133
3139
|
hasFeature(featureName: string): boolean;
|
|
3134
|
-
getFeatureValue(featureName: string):
|
|
3135
|
-
getAllFeatures():
|
|
3136
|
-
[x: string]: _cloudflare_realtimekit_utils.FlagsEntry;
|
|
3137
|
-
};
|
|
3140
|
+
getFeatureValue(featureName: string): FlagValues;
|
|
3141
|
+
getAllFeatures(): FlagsMap;
|
|
3138
3142
|
}
|
|
3139
3143
|
|
|
3140
3144
|
declare class Internals {
|
|
@@ -4130,8 +4134,6 @@ interface MediaPermissions {
|
|
|
4130
4134
|
canProduceVideo?: MediaProductionPermissionType;
|
|
4131
4135
|
canProduceScreenshare?: MediaProductionPermissionType;
|
|
4132
4136
|
}
|
|
4133
|
-
declare const videoCodecPriority: readonly ["video/VP9", "video/VP8"];
|
|
4134
|
-
type VideoCodec = (typeof videoCodecPriority)[number];
|
|
4135
4137
|
interface MediaNodeClientOptions {
|
|
4136
4138
|
peerId: string;
|
|
4137
4139
|
socket: SocketService;
|
|
@@ -4162,7 +4164,7 @@ declare class MediaNodeClient {
|
|
|
4162
4164
|
originalSettings?: {
|
|
4163
4165
|
width: number;
|
|
4164
4166
|
};
|
|
4165
|
-
}
|
|
4167
|
+
}): Promise<MediaStreamTrack>;
|
|
4166
4168
|
shareWebcam(videoTrack: MediaStreamTrack): Promise<MediaStreamTrack | null>;
|
|
4167
4169
|
shareScreen(tracks: {
|
|
4168
4170
|
video?: MediaStreamTrack;
|
|
@@ -4173,7 +4175,7 @@ declare class MediaNodeClient {
|
|
|
4173
4175
|
pauseWebcam(): Promise<void>;
|
|
4174
4176
|
resumeMic(): Promise<void>;
|
|
4175
4177
|
resumeWebcam(producerType?: PRODUCERS_TYPE): Promise<void>;
|
|
4176
|
-
disableWebcam(
|
|
4178
|
+
disableWebcam(): Promise<void>;
|
|
4177
4179
|
disableMic(): Promise<void>;
|
|
4178
4180
|
disableScreenShare(): Promise<void>;
|
|
4179
4181
|
muteSelf(): Promise<void>;
|
|
@@ -4196,8 +4198,6 @@ declare class MediaNodeClient {
|
|
|
4196
4198
|
switchConsumersToLayer(consumerIds: string[], layer: number): Promise<void>;
|
|
4197
4199
|
handleSocketEvents(): Promise<void>;
|
|
4198
4200
|
handleCallstatsEvents(): void;
|
|
4199
|
-
handlePeerCapabilities(peerId: string, capabilities: PeerRtpCapabilitites): void;
|
|
4200
|
-
handlePeerLeaving(peerId: string): void;
|
|
4201
4201
|
}
|
|
4202
4202
|
|
|
4203
4203
|
interface Modules {
|
|
@@ -4219,6 +4219,7 @@ interface Modules {
|
|
|
4219
4219
|
};
|
|
4220
4220
|
devTools?: {
|
|
4221
4221
|
logs: boolean;
|
|
4222
|
+
logLevel?: LogLevel[number];
|
|
4222
4223
|
plugins?: {
|
|
4223
4224
|
id: string;
|
|
4224
4225
|
name: string;
|
|
@@ -4402,7 +4403,6 @@ type ContextState = {
|
|
|
4402
4403
|
connectionHandler?: ConnectionHandler;
|
|
4403
4404
|
cachedUserDetails?: CachedUserDetails;
|
|
4404
4405
|
peerSessionStore?: TypedEventEmitter$1<SessionEventsType>;
|
|
4405
|
-
flagsmith?: ReturnType<typeof createNewFlagsmithInstance>;
|
|
4406
4406
|
roomSocketHandler?: RoomSocketHandler;
|
|
4407
4407
|
connectedMeetingsSocketHandler?: ConnectedMeetingsSocketHandler;
|
|
4408
4408
|
audioPlayback?: AudioPlaybackManager;
|
|
@@ -4886,6 +4886,8 @@ type LogData$2 = {
|
|
|
4886
4886
|
};
|
|
4887
4887
|
};
|
|
4888
4888
|
|
|
4889
|
+
type LogLevel = readonly ['off', 'all', 'debug', 'log', 'info', 'warn', 'error'];
|
|
4890
|
+
|
|
4889
4891
|
type EventSeverities = SupportedEventSeverities;
|
|
4890
4892
|
type LogData$1 = LogData$2;
|
|
4891
4893
|
interface MeetingMetadata {
|
|
@@ -4907,12 +4909,13 @@ declare class Telemetry {
|
|
|
4907
4909
|
get logsEndpoint(): string;
|
|
4908
4910
|
tracingEnabled: boolean;
|
|
4909
4911
|
initialized: boolean;
|
|
4912
|
+
logLevel: LogLevel[number];
|
|
4910
4913
|
readonly logsProcessingInterval = 7000;
|
|
4911
4914
|
private get logsBatchSize();
|
|
4912
4915
|
logExclusionList: string[];
|
|
4913
4916
|
meetingMetadata: MeetingMetadata;
|
|
4914
4917
|
resetPeerId(peerId: string): void;
|
|
4915
|
-
init(context: Context<ContextState>, options: MeetingMetadata, enableTracing: boolean): void;
|
|
4918
|
+
init(context: Context<ContextState>, options: MeetingMetadata, enableTracing: boolean, logLevel: LogLevel[number]): void;
|
|
4916
4919
|
static trace(spanName: string, metadata?: LogData$1 | undefined): (_target: Object, _propertyKey: string, descriptor: PropertyDescriptor) => PropertyDescriptor;
|
|
4917
4920
|
injectContext(injectionReceiver: any): void;
|
|
4918
4921
|
addLogInCurrentSpan(eventSeverity: EventSeverities, eventName: string, metadata?: LogData$1, noCache?: boolean): void;
|