@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
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as _cloudflare_realtimekit_utils from '@cloudflare/realtimekit-utils';
|
|
2
|
-
import { PresetTypeV2, MediaVideoQualityType, ViewType, MediaScreenShareQualityType, LivestreamViewerMediaQualityType, PluginAccessControls, WaitingRoomTypes, MediaProductionPermissionType, RecorderType as RecorderType$1, BorderRadius, BorderWidth, Theme
|
|
3
|
-
import { MessageType as MessageType$1 } from '@protobuf-ts/runtime';
|
|
2
|
+
import { PresetTypeV2, MediaVideoQualityType, ViewType, MediaScreenShareQualityType, LivestreamViewerMediaQualityType, PluginAccessControls, WaitingRoomTypes, MediaProductionPermissionType, RecorderType as RecorderType$1, BorderRadius, BorderWidth, Theme } from '@cloudflare/realtimekit-utils';
|
|
4
3
|
import { EventEmitter } from 'events';
|
|
5
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';
|
|
@@ -3764,13 +3764,17 @@ declare class BrowserCapabilities extends BrowserDetection {
|
|
|
3764
3764
|
isIOSMobile(): boolean;
|
|
3765
3765
|
}
|
|
3766
3766
|
|
|
3767
|
+
type FlagValues = boolean | string | number | null | undefined;
|
|
3768
|
+
type FlagsEntry = Record<'enabled' | 'value', boolean | FlagValues> & {
|
|
3769
|
+
enabled: boolean;
|
|
3770
|
+
value: FlagValues;
|
|
3771
|
+
};
|
|
3772
|
+
type FlagsMap = Record<string, FlagsEntry>;
|
|
3767
3773
|
declare class Features {
|
|
3768
3774
|
constructor(context: Context<ContextState>);
|
|
3769
3775
|
hasFeature(featureName: string): boolean;
|
|
3770
|
-
getFeatureValue(featureName: string):
|
|
3771
|
-
getAllFeatures():
|
|
3772
|
-
[x: string]: _cloudflare_realtimekit_utils.FlagsEntry;
|
|
3773
|
-
};
|
|
3776
|
+
getFeatureValue(featureName: string): FlagValues;
|
|
3777
|
+
getAllFeatures(): FlagsMap;
|
|
3774
3778
|
}
|
|
3775
3779
|
|
|
3776
3780
|
declare class Internals {
|
|
@@ -3853,8 +3857,6 @@ interface MediaPermissions {
|
|
|
3853
3857
|
canProduceVideo?: MediaProductionPermissionType;
|
|
3854
3858
|
canProduceScreenshare?: MediaProductionPermissionType;
|
|
3855
3859
|
}
|
|
3856
|
-
declare const videoCodecPriority: readonly ["video/VP9", "video/VP8"];
|
|
3857
|
-
type VideoCodec = (typeof videoCodecPriority)[number];
|
|
3858
3860
|
interface MediaNodeClientOptions {
|
|
3859
3861
|
peerId: string;
|
|
3860
3862
|
socket: SocketService;
|
|
@@ -3885,7 +3887,7 @@ declare class MediaNodeClient {
|
|
|
3885
3887
|
originalSettings?: {
|
|
3886
3888
|
width: number;
|
|
3887
3889
|
};
|
|
3888
|
-
}
|
|
3890
|
+
}): Promise<MediaStreamTrack>;
|
|
3889
3891
|
shareWebcam(videoTrack: MediaStreamTrack): Promise<MediaStreamTrack | null>;
|
|
3890
3892
|
shareScreen(tracks: {
|
|
3891
3893
|
video?: MediaStreamTrack;
|
|
@@ -3896,7 +3898,7 @@ declare class MediaNodeClient {
|
|
|
3896
3898
|
pauseWebcam(): Promise<void>;
|
|
3897
3899
|
resumeMic(): Promise<void>;
|
|
3898
3900
|
resumeWebcam(producerType?: PRODUCERS_TYPE): Promise<void>;
|
|
3899
|
-
disableWebcam(
|
|
3901
|
+
disableWebcam(): Promise<void>;
|
|
3900
3902
|
disableMic(): Promise<void>;
|
|
3901
3903
|
disableScreenShare(): Promise<void>;
|
|
3902
3904
|
muteSelf(): Promise<void>;
|
|
@@ -3919,8 +3921,6 @@ declare class MediaNodeClient {
|
|
|
3919
3921
|
switchConsumersToLayer(consumerIds: string[], layer: number): Promise<void>;
|
|
3920
3922
|
handleSocketEvents(): Promise<void>;
|
|
3921
3923
|
handleCallstatsEvents(): void;
|
|
3922
|
-
handlePeerCapabilities(peerId: string, capabilities: PeerRtpCapabilitites): void;
|
|
3923
|
-
handlePeerLeaving(peerId: string): void;
|
|
3924
3924
|
}
|
|
3925
3925
|
|
|
3926
3926
|
interface SocketServicePayload {
|
|
@@ -4053,6 +4053,7 @@ interface Modules {
|
|
|
4053
4053
|
};
|
|
4054
4054
|
devTools?: {
|
|
4055
4055
|
logs: boolean;
|
|
4056
|
+
logLevel?: LogLevel[number];
|
|
4056
4057
|
plugins?: {
|
|
4057
4058
|
id: string;
|
|
4058
4059
|
name: string;
|
|
@@ -4348,7 +4349,6 @@ type ContextState = {
|
|
|
4348
4349
|
connectionHandler?: ConnectionHandler;
|
|
4349
4350
|
cachedUserDetails?: CachedUserDetails;
|
|
4350
4351
|
peerSessionStore?: TypedEventEmitter<SessionEventsType>;
|
|
4351
|
-
flagsmith?: ReturnType<typeof createNewFlagsmithInstance>;
|
|
4352
4352
|
roomSocketHandler?: RoomSocketHandler;
|
|
4353
4353
|
connectedMeetingsSocketHandler?: ConnectedMeetingsSocketHandler;
|
|
4354
4354
|
audioPlayback?: AudioPlaybackManager;
|
|
@@ -4832,6 +4832,8 @@ type LogData$2 = {
|
|
|
4832
4832
|
};
|
|
4833
4833
|
};
|
|
4834
4834
|
|
|
4835
|
+
type LogLevel = readonly ['off', 'all', 'debug', 'log', 'info', 'warn', 'error'];
|
|
4836
|
+
|
|
4835
4837
|
type EventSeverities = SupportedEventSeverities;
|
|
4836
4838
|
type LogData$1 = LogData$2;
|
|
4837
4839
|
interface MeetingMetadata {
|
|
@@ -4853,12 +4855,13 @@ declare class Telemetry {
|
|
|
4853
4855
|
get logsEndpoint(): string;
|
|
4854
4856
|
tracingEnabled: boolean;
|
|
4855
4857
|
initialized: boolean;
|
|
4858
|
+
logLevel: LogLevel[number];
|
|
4856
4859
|
readonly logsProcessingInterval = 7000;
|
|
4857
4860
|
private get logsBatchSize();
|
|
4858
4861
|
logExclusionList: string[];
|
|
4859
4862
|
meetingMetadata: MeetingMetadata;
|
|
4860
4863
|
resetPeerId(peerId: string): void;
|
|
4861
|
-
init(context: Context<ContextState>, options: MeetingMetadata, enableTracing: boolean): void;
|
|
4864
|
+
init(context: Context<ContextState>, options: MeetingMetadata, enableTracing: boolean, logLevel: LogLevel[number]): void;
|
|
4862
4865
|
static trace(spanName: string, metadata?: LogData$1 | undefined): (_target: Object, _propertyKey: string, descriptor: PropertyDescriptor) => PropertyDescriptor;
|
|
4863
4866
|
injectContext(injectionReceiver: any): void;
|
|
4864
4867
|
addLogInCurrentSpan(eventSeverity: EventSeverities, eventName: string, metadata?: LogData$1, noCache?: boolean): void;
|