@cloudflare/realtimekit 1.4.0 → 1.5.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/EncryptionManager.cjs.js +1 -1
- package/dist/EncryptionManager.d.ts +18 -6
- package/dist/EncryptionManager.es.js +6 -6
- package/dist/browser.js +14 -13
- package/dist/dependencies.txt +1 -1
- package/dist/index.cjs.js +11 -10
- package/dist/index.d.ts +18 -6
- package/dist/index.es.js +2931 -2856
- package/dist/index.es5.js +2213 -2106
- package/dist/index.rn.js +11 -10
- package/dist/ts3.4/dist/EncryptionManager.d.ts +23 -6
- package/dist/ts3.4/dist/index.d.ts +23 -6
- package/package.json +2 -3
package/dist/index.d.ts
CHANGED
|
@@ -3,7 +3,6 @@ import { PresetTypeV2, MediaVideoQualityType, ViewType, MediaScreenShareQualityT
|
|
|
3
3
|
import { MessageType as MessageType$1 } from '@protobuf-ts/runtime';
|
|
4
4
|
import { EventEmitter } from 'events';
|
|
5
5
|
import { InhouseCallStats } from '@cloudflare/realtimekit-callstats';
|
|
6
|
-
import { ClientEnvTypeAll } from '@cloudflare/realtimekit-callstats/dist/types';
|
|
7
6
|
import { ConsumerScoreStats, ProducerScoreStats } from '@cloudflare/realtimekit-callstats/dist/measurements/types';
|
|
8
7
|
export { AudioConsumerScoreStats, AudioProducerScoreStats, ConsumerScoreStats, ProducerScoreStats, VideoConsumerScoreStats, VideoProducerScoreStats } from '@cloudflare/realtimekit-callstats/dist/measurements/types';
|
|
9
8
|
import * as WorkerTimers from 'worker-timers';
|
|
@@ -4315,6 +4314,11 @@ declare class AudioPlaybackManager extends AudioPlayback {
|
|
|
4315
4314
|
removeParticipantTrack(participantId: string): void;
|
|
4316
4315
|
}
|
|
4317
4316
|
|
|
4317
|
+
declare const ENVIRONMENTS: {
|
|
4318
|
+
readonly STAGING: "staging";
|
|
4319
|
+
readonly PROD: "prod";
|
|
4320
|
+
};
|
|
4321
|
+
|
|
4318
4322
|
type ContextState = {
|
|
4319
4323
|
authToken?: string;
|
|
4320
4324
|
peerId?: string;
|
|
@@ -4337,7 +4341,7 @@ type ContextState = {
|
|
|
4337
4341
|
pip?: Pip;
|
|
4338
4342
|
roomNodeClient?: MediaNodeClient;
|
|
4339
4343
|
viewType?: ViewType;
|
|
4340
|
-
env?:
|
|
4344
|
+
env?: typeof ENVIRONMENTS[keyof typeof ENVIRONMENTS];
|
|
4341
4345
|
sdkVersion?: string;
|
|
4342
4346
|
sdkName?: 'web-core';
|
|
4343
4347
|
callstats?: InhouseCallStats;
|
|
@@ -4571,7 +4575,8 @@ declare function createSafeToLogError(ex: any): {
|
|
|
4571
4575
|
code?: number | string;
|
|
4572
4576
|
};
|
|
4573
4577
|
|
|
4574
|
-
|
|
4578
|
+
declare const supportedEventSeverities: readonly ["info", "error", "debug", "log", "warn"];
|
|
4579
|
+
type SupportedEventSeverities = typeof supportedEventSeverities[number];
|
|
4575
4580
|
type LogData$2 = {
|
|
4576
4581
|
error?: ReturnType<typeof createSafeToLogError>;
|
|
4577
4582
|
peers?: string;
|
|
@@ -4843,10 +4848,13 @@ declare class Telemetry {
|
|
|
4843
4848
|
[key: string]: any;
|
|
4844
4849
|
}[];
|
|
4845
4850
|
logsProcessorTimer: NodeJS.Timer;
|
|
4851
|
+
private compressionSupported;
|
|
4852
|
+
private isCompressionSupported;
|
|
4846
4853
|
get logsEndpoint(): string;
|
|
4847
4854
|
tracingEnabled: boolean;
|
|
4848
4855
|
initialized: boolean;
|
|
4849
4856
|
readonly logsProcessingInterval = 7000;
|
|
4857
|
+
private get logsBatchSize();
|
|
4850
4858
|
logExclusionList: string[];
|
|
4851
4859
|
meetingMetadata: MeetingMetadata;
|
|
4852
4860
|
resetPeerId(peerId: string): void;
|
|
@@ -4854,9 +4862,13 @@ declare class Telemetry {
|
|
|
4854
4862
|
static trace(spanName: string, metadata?: LogData$1 | undefined): (_target: Object, _propertyKey: string, descriptor: PropertyDescriptor) => PropertyDescriptor;
|
|
4855
4863
|
injectContext(injectionReceiver: any): void;
|
|
4856
4864
|
addLogInCurrentSpan(eventSeverity: EventSeverities, eventName: string, metadata?: LogData$1, noCache?: boolean): void;
|
|
4857
|
-
sendOtelLogsToNewRelic(logs: object[]
|
|
4858
|
-
|
|
4859
|
-
|
|
4865
|
+
sendOtelLogsToNewRelic(logs: object[], { isInDestructionMode }?: {
|
|
4866
|
+
isInDestructionMode?: boolean;
|
|
4867
|
+
}): Promise<void>;
|
|
4868
|
+
processCachedLogs({ isInDestructionMode }?: {
|
|
4869
|
+
isInDestructionMode?: boolean;
|
|
4870
|
+
}): Promise<void>;
|
|
4871
|
+
destruct(): Promise<void>;
|
|
4860
4872
|
}
|
|
4861
4873
|
|
|
4862
4874
|
type LogData = LogData$1;
|