@cloudflare/realtimekit 1.5.0-staging.1 → 1.5.0-staging.10
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 +24 -16
- package/dist/EncryptionManager.es.js +199 -199
- package/dist/browser.js +13 -15
- package/dist/dependencies.txt +1 -1
- package/dist/index.cjs.js +10 -12
- package/dist/index.d.ts +24 -16
- package/dist/index.es.js +6950 -7222
- package/dist/index.es5.js +7797 -8097
- package/dist/index.rn.js +10 -12
- package/dist/ts3.4/dist/EncryptionManager.d.ts +30 -19
- package/dist/ts3.4/dist/index.d.ts +30 -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 {
|
|
@@ -3190,6 +3193,7 @@ declare const ERROR_CODES: {
|
|
|
3190
3193
|
'0011': string;
|
|
3191
3194
|
'0012': string;
|
|
3192
3195
|
'0013': string;
|
|
3196
|
+
'0014': string;
|
|
3193
3197
|
'0100': string;
|
|
3194
3198
|
'0101': string;
|
|
3195
3199
|
'0102': string;
|
|
@@ -4131,8 +4135,6 @@ interface MediaPermissions {
|
|
|
4131
4135
|
canProduceVideo?: MediaProductionPermissionType;
|
|
4132
4136
|
canProduceScreenshare?: MediaProductionPermissionType;
|
|
4133
4137
|
}
|
|
4134
|
-
declare const videoCodecPriority: readonly ["video/VP9", "video/VP8"];
|
|
4135
|
-
type VideoCodec = (typeof videoCodecPriority)[number];
|
|
4136
4138
|
interface MediaNodeClientOptions {
|
|
4137
4139
|
peerId: string;
|
|
4138
4140
|
socket: SocketService;
|
|
@@ -4163,7 +4165,7 @@ declare class MediaNodeClient {
|
|
|
4163
4165
|
originalSettings?: {
|
|
4164
4166
|
width: number;
|
|
4165
4167
|
};
|
|
4166
|
-
}
|
|
4168
|
+
}): Promise<MediaStreamTrack>;
|
|
4167
4169
|
shareWebcam(videoTrack: MediaStreamTrack): Promise<MediaStreamTrack | null>;
|
|
4168
4170
|
shareScreen(tracks: {
|
|
4169
4171
|
video?: MediaStreamTrack;
|
|
@@ -4174,7 +4176,7 @@ declare class MediaNodeClient {
|
|
|
4174
4176
|
pauseWebcam(): Promise<void>;
|
|
4175
4177
|
resumeMic(): Promise<void>;
|
|
4176
4178
|
resumeWebcam(producerType?: PRODUCERS_TYPE): Promise<void>;
|
|
4177
|
-
disableWebcam(
|
|
4179
|
+
disableWebcam(): Promise<void>;
|
|
4178
4180
|
disableMic(): Promise<void>;
|
|
4179
4181
|
disableScreenShare(): Promise<void>;
|
|
4180
4182
|
muteSelf(): Promise<void>;
|
|
@@ -4197,8 +4199,6 @@ declare class MediaNodeClient {
|
|
|
4197
4199
|
switchConsumersToLayer(consumerIds: string[], layer: number): Promise<void>;
|
|
4198
4200
|
handleSocketEvents(): Promise<void>;
|
|
4199
4201
|
handleCallstatsEvents(): void;
|
|
4200
|
-
handlePeerCapabilities(peerId: string, capabilities: PeerRtpCapabilitites): void;
|
|
4201
|
-
handlePeerLeaving(peerId: string): void;
|
|
4202
4202
|
}
|
|
4203
4203
|
|
|
4204
4204
|
interface Modules {
|
|
@@ -4220,6 +4220,7 @@ interface Modules {
|
|
|
4220
4220
|
};
|
|
4221
4221
|
devTools?: {
|
|
4222
4222
|
logs: boolean;
|
|
4223
|
+
logLevel?: LogLevel[number];
|
|
4223
4224
|
plugins?: {
|
|
4224
4225
|
id: string;
|
|
4225
4226
|
name: string;
|
|
@@ -4369,6 +4370,11 @@ type TypedEvents = {
|
|
|
4369
4370
|
type UntypedEvents = Omit<AllEvents, keyof TypedEvents>;
|
|
4370
4371
|
type SessionEventsType = TypedEvents & UntypedEvents;
|
|
4371
4372
|
|
|
4373
|
+
declare const ENVIRONMENTS: {
|
|
4374
|
+
readonly STAGING: "staging";
|
|
4375
|
+
readonly PROD: "prod";
|
|
4376
|
+
};
|
|
4377
|
+
|
|
4372
4378
|
type ContextState = {
|
|
4373
4379
|
authToken?: string;
|
|
4374
4380
|
peerId?: string;
|
|
@@ -4391,14 +4397,13 @@ type ContextState = {
|
|
|
4391
4397
|
pip?: Pip;
|
|
4392
4398
|
roomNodeClient?: MediaNodeClient;
|
|
4393
4399
|
viewType?: ViewType;
|
|
4394
|
-
env?:
|
|
4400
|
+
env?: typeof ENVIRONMENTS[keyof typeof ENVIRONMENTS];
|
|
4395
4401
|
sdkVersion?: string;
|
|
4396
4402
|
sdkName?: 'web-core';
|
|
4397
4403
|
callstats?: InhouseCallStats;
|
|
4398
4404
|
connectionHandler?: ConnectionHandler;
|
|
4399
4405
|
cachedUserDetails?: CachedUserDetails;
|
|
4400
4406
|
peerSessionStore?: TypedEventEmitter$1<SessionEventsType>;
|
|
4401
|
-
flagsmith?: ReturnType<typeof createNewFlagsmithInstance>;
|
|
4402
4407
|
roomSocketHandler?: RoomSocketHandler;
|
|
4403
4408
|
connectedMeetingsSocketHandler?: ConnectedMeetingsSocketHandler;
|
|
4404
4409
|
audioPlayback?: AudioPlaybackManager;
|
|
@@ -4882,6 +4887,8 @@ type LogData$2 = {
|
|
|
4882
4887
|
};
|
|
4883
4888
|
};
|
|
4884
4889
|
|
|
4890
|
+
type LogLevel = readonly ['off', 'all', 'debug', 'log', 'info', 'warn', 'error'];
|
|
4891
|
+
|
|
4885
4892
|
type EventSeverities = SupportedEventSeverities;
|
|
4886
4893
|
type LogData$1 = LogData$2;
|
|
4887
4894
|
interface MeetingMetadata {
|
|
@@ -4903,12 +4910,13 @@ declare class Telemetry {
|
|
|
4903
4910
|
get logsEndpoint(): string;
|
|
4904
4911
|
tracingEnabled: boolean;
|
|
4905
4912
|
initialized: boolean;
|
|
4913
|
+
logLevel: LogLevel[number];
|
|
4906
4914
|
readonly logsProcessingInterval = 7000;
|
|
4907
4915
|
private get logsBatchSize();
|
|
4908
4916
|
logExclusionList: string[];
|
|
4909
4917
|
meetingMetadata: MeetingMetadata;
|
|
4910
4918
|
resetPeerId(peerId: string): void;
|
|
4911
|
-
init(context: Context<ContextState>, options: MeetingMetadata, enableTracing: boolean): void;
|
|
4919
|
+
init(context: Context<ContextState>, options: MeetingMetadata, enableTracing: boolean, logLevel: LogLevel[number]): void;
|
|
4912
4920
|
static trace(spanName: string, metadata?: LogData$1 | undefined): (_target: Object, _propertyKey: string, descriptor: PropertyDescriptor) => PropertyDescriptor;
|
|
4913
4921
|
injectContext(injectionReceiver: any): void;
|
|
4914
4922
|
addLogInCurrentSpan(eventSeverity: EventSeverities, eventName: string, metadata?: LogData$1, noCache?: boolean): void;
|