@cloudflare/realtimekit 1.5.0-staging.1 → 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 +23 -16
- package/dist/EncryptionManager.es.js +189 -189
- package/dist/browser.js +13 -15
- package/dist/dependencies.txt +1 -1
- package/dist/index.cjs.js +10 -12
- package/dist/index.d.ts +23 -16
- package/dist/index.es.js +7325 -7632
- package/dist/index.es5.js +7597 -7975
- package/dist/index.rn.js +10 -12
- package/dist/ts3.4/dist/EncryptionManager.d.ts +29 -19
- package/dist/ts3.4/dist/index.d.ts +29 -19
- package/package.json +1 -1
|
@@ -1,9 +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
|
-
import { ClientEnvTypeAll } from '@cloudflare/realtimekit-callstats/dist/types';
|
|
7
6
|
import { ProducerScoreStats, ConsumerScoreStats } from '@cloudflare/realtimekit-callstats/dist/measurements/types';
|
|
8
7
|
import * as WorkerTimers from 'worker-timers';
|
|
9
8
|
|
|
@@ -3129,13 +3128,17 @@ declare class BrowserCapabilities extends BrowserDetection {
|
|
|
3129
3128
|
isIOSMobile(): boolean;
|
|
3130
3129
|
}
|
|
3131
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>;
|
|
3132
3137
|
declare class Features {
|
|
3133
3138
|
constructor(context: Context<ContextState>);
|
|
3134
3139
|
hasFeature(featureName: string): boolean;
|
|
3135
|
-
getFeatureValue(featureName: string):
|
|
3136
|
-
getAllFeatures():
|
|
3137
|
-
[x: string]: _cloudflare_realtimekit_utils.FlagsEntry;
|
|
3138
|
-
};
|
|
3140
|
+
getFeatureValue(featureName: string): FlagValues;
|
|
3141
|
+
getAllFeatures(): FlagsMap;
|
|
3139
3142
|
}
|
|
3140
3143
|
|
|
3141
3144
|
declare class Internals {
|
|
@@ -4131,8 +4134,6 @@ interface MediaPermissions {
|
|
|
4131
4134
|
canProduceVideo?: MediaProductionPermissionType;
|
|
4132
4135
|
canProduceScreenshare?: MediaProductionPermissionType;
|
|
4133
4136
|
}
|
|
4134
|
-
declare const videoCodecPriority: readonly ["video/VP9", "video/VP8"];
|
|
4135
|
-
type VideoCodec = (typeof videoCodecPriority)[number];
|
|
4136
4137
|
interface MediaNodeClientOptions {
|
|
4137
4138
|
peerId: string;
|
|
4138
4139
|
socket: SocketService;
|
|
@@ -4163,7 +4164,7 @@ declare class MediaNodeClient {
|
|
|
4163
4164
|
originalSettings?: {
|
|
4164
4165
|
width: number;
|
|
4165
4166
|
};
|
|
4166
|
-
}
|
|
4167
|
+
}): Promise<MediaStreamTrack>;
|
|
4167
4168
|
shareWebcam(videoTrack: MediaStreamTrack): Promise<MediaStreamTrack | null>;
|
|
4168
4169
|
shareScreen(tracks: {
|
|
4169
4170
|
video?: MediaStreamTrack;
|
|
@@ -4174,7 +4175,7 @@ declare class MediaNodeClient {
|
|
|
4174
4175
|
pauseWebcam(): Promise<void>;
|
|
4175
4176
|
resumeMic(): Promise<void>;
|
|
4176
4177
|
resumeWebcam(producerType?: PRODUCERS_TYPE): Promise<void>;
|
|
4177
|
-
disableWebcam(
|
|
4178
|
+
disableWebcam(): Promise<void>;
|
|
4178
4179
|
disableMic(): Promise<void>;
|
|
4179
4180
|
disableScreenShare(): Promise<void>;
|
|
4180
4181
|
muteSelf(): Promise<void>;
|
|
@@ -4197,8 +4198,6 @@ declare class MediaNodeClient {
|
|
|
4197
4198
|
switchConsumersToLayer(consumerIds: string[], layer: number): Promise<void>;
|
|
4198
4199
|
handleSocketEvents(): Promise<void>;
|
|
4199
4200
|
handleCallstatsEvents(): void;
|
|
4200
|
-
handlePeerCapabilities(peerId: string, capabilities: PeerRtpCapabilitites): void;
|
|
4201
|
-
handlePeerLeaving(peerId: string): void;
|
|
4202
4201
|
}
|
|
4203
4202
|
|
|
4204
4203
|
interface Modules {
|
|
@@ -4220,6 +4219,7 @@ interface Modules {
|
|
|
4220
4219
|
};
|
|
4221
4220
|
devTools?: {
|
|
4222
4221
|
logs: boolean;
|
|
4222
|
+
logLevel?: LogLevel[number];
|
|
4223
4223
|
plugins?: {
|
|
4224
4224
|
id: string;
|
|
4225
4225
|
name: string;
|
|
@@ -4369,6 +4369,11 @@ type TypedEvents = {
|
|
|
4369
4369
|
type UntypedEvents = Omit<AllEvents, keyof TypedEvents>;
|
|
4370
4370
|
type SessionEventsType = TypedEvents & UntypedEvents;
|
|
4371
4371
|
|
|
4372
|
+
declare const ENVIRONMENTS: {
|
|
4373
|
+
readonly STAGING: "staging";
|
|
4374
|
+
readonly PROD: "prod";
|
|
4375
|
+
};
|
|
4376
|
+
|
|
4372
4377
|
type ContextState = {
|
|
4373
4378
|
authToken?: string;
|
|
4374
4379
|
peerId?: string;
|
|
@@ -4391,14 +4396,13 @@ type ContextState = {
|
|
|
4391
4396
|
pip?: Pip;
|
|
4392
4397
|
roomNodeClient?: MediaNodeClient;
|
|
4393
4398
|
viewType?: ViewType;
|
|
4394
|
-
env?:
|
|
4399
|
+
env?: typeof ENVIRONMENTS[keyof typeof ENVIRONMENTS];
|
|
4395
4400
|
sdkVersion?: string;
|
|
4396
4401
|
sdkName?: 'web-core';
|
|
4397
4402
|
callstats?: InhouseCallStats;
|
|
4398
4403
|
connectionHandler?: ConnectionHandler;
|
|
4399
4404
|
cachedUserDetails?: CachedUserDetails;
|
|
4400
4405
|
peerSessionStore?: TypedEventEmitter$1<SessionEventsType>;
|
|
4401
|
-
flagsmith?: ReturnType<typeof createNewFlagsmithInstance>;
|
|
4402
4406
|
roomSocketHandler?: RoomSocketHandler;
|
|
4403
4407
|
connectedMeetingsSocketHandler?: ConnectedMeetingsSocketHandler;
|
|
4404
4408
|
audioPlayback?: AudioPlaybackManager;
|
|
@@ -4882,6 +4886,8 @@ type LogData$2 = {
|
|
|
4882
4886
|
};
|
|
4883
4887
|
};
|
|
4884
4888
|
|
|
4889
|
+
type LogLevel = readonly ['off', 'all', 'debug', 'log', 'info', 'warn', 'error'];
|
|
4890
|
+
|
|
4885
4891
|
type EventSeverities = SupportedEventSeverities;
|
|
4886
4892
|
type LogData$1 = LogData$2;
|
|
4887
4893
|
interface MeetingMetadata {
|
|
@@ -4903,12 +4909,13 @@ declare class Telemetry {
|
|
|
4903
4909
|
get logsEndpoint(): string;
|
|
4904
4910
|
tracingEnabled: boolean;
|
|
4905
4911
|
initialized: boolean;
|
|
4912
|
+
logLevel: LogLevel[number];
|
|
4906
4913
|
readonly logsProcessingInterval = 7000;
|
|
4907
4914
|
private get logsBatchSize();
|
|
4908
4915
|
logExclusionList: string[];
|
|
4909
4916
|
meetingMetadata: MeetingMetadata;
|
|
4910
4917
|
resetPeerId(peerId: string): void;
|
|
4911
|
-
init(context: Context<ContextState>, options: MeetingMetadata, enableTracing: boolean): void;
|
|
4918
|
+
init(context: Context<ContextState>, options: MeetingMetadata, enableTracing: boolean, logLevel: LogLevel[number]): void;
|
|
4912
4919
|
static trace(spanName: string, metadata?: LogData$1 | undefined): (_target: Object, _propertyKey: string, descriptor: PropertyDescriptor) => PropertyDescriptor;
|
|
4913
4920
|
injectContext(injectionReceiver: any): void;
|
|
4914
4921
|
addLogInCurrentSpan(eventSeverity: EventSeverities, eventName: string, metadata?: LogData$1, noCache?: boolean): void;
|