@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
|
@@ -3,7 +3,6 @@ import * as _cloudflare_realtimekit_utils from '@cloudflare/realtimekit-utils';
|
|
|
3
3
|
import { PresetTypeV2, MediaVideoQualityType, ViewType, LivestreamViewerMediaQualityType, MediaScreenShareQualityType, PluginAccessControls, WaitingRoomTypes, MediaProductionPermissionType, RecorderType as RecorderType$1, BorderRadius, BorderWidth, Theme, createNewFlagsmithInstance } from '@cloudflare/realtimekit-utils';
|
|
4
4
|
import { MessageType as MessageType$1 } from '@protobuf-ts/runtime';
|
|
5
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
|
|
|
@@ -4369,6 +4368,11 @@ type TypedEvents = {
|
|
|
4369
4368
|
type UntypedEvents = Omit<AllEvents, keyof TypedEvents>;
|
|
4370
4369
|
type SessionEventsType = TypedEvents & UntypedEvents;
|
|
4371
4370
|
|
|
4371
|
+
declare const ENVIRONMENTS: {
|
|
4372
|
+
readonly STAGING: "staging";
|
|
4373
|
+
readonly PROD: "prod";
|
|
4374
|
+
};
|
|
4375
|
+
|
|
4372
4376
|
type ContextState = {
|
|
4373
4377
|
authToken?: string;
|
|
4374
4378
|
peerId?: string;
|
|
@@ -4391,7 +4395,7 @@ type ContextState = {
|
|
|
4391
4395
|
pip?: Pip;
|
|
4392
4396
|
roomNodeClient?: MediaNodeClient;
|
|
4393
4397
|
viewType?: ViewType;
|
|
4394
|
-
env?:
|
|
4398
|
+
env?: typeof ENVIRONMENTS[keyof typeof ENVIRONMENTS];
|
|
4395
4399
|
sdkVersion?: string;
|
|
4396
4400
|
sdkName?: 'web-core';
|
|
4397
4401
|
callstats?: InhouseCallStats;
|
|
@@ -4625,7 +4629,8 @@ declare function createSafeToLogError(ex: any): {
|
|
|
4625
4629
|
code?: number | string;
|
|
4626
4630
|
};
|
|
4627
4631
|
|
|
4628
|
-
|
|
4632
|
+
declare const supportedEventSeverities: readonly ["info", "error", "debug", "log", "warn"];
|
|
4633
|
+
type SupportedEventSeverities = typeof supportedEventSeverities[number];
|
|
4629
4634
|
type LogData$2 = {
|
|
4630
4635
|
error?: ReturnType<typeof createSafeToLogError>;
|
|
4631
4636
|
peers?: string;
|
|
@@ -4897,10 +4902,13 @@ declare class Telemetry {
|
|
|
4897
4902
|
[key: string]: any;
|
|
4898
4903
|
}[];
|
|
4899
4904
|
logsProcessorTimer: NodeJS.Timer;
|
|
4905
|
+
private compressionSupported;
|
|
4906
|
+
private isCompressionSupported;
|
|
4900
4907
|
get logsEndpoint(): string;
|
|
4901
4908
|
tracingEnabled: boolean;
|
|
4902
4909
|
initialized: boolean;
|
|
4903
4910
|
readonly logsProcessingInterval = 7000;
|
|
4911
|
+
private get logsBatchSize();
|
|
4904
4912
|
logExclusionList: string[];
|
|
4905
4913
|
meetingMetadata: MeetingMetadata;
|
|
4906
4914
|
resetPeerId(peerId: string): void;
|
|
@@ -4908,9 +4916,13 @@ declare class Telemetry {
|
|
|
4908
4916
|
static trace(spanName: string, metadata?: LogData$1 | undefined): (_target: Object, _propertyKey: string, descriptor: PropertyDescriptor) => PropertyDescriptor;
|
|
4909
4917
|
injectContext(injectionReceiver: any): void;
|
|
4910
4918
|
addLogInCurrentSpan(eventSeverity: EventSeverities, eventName: string, metadata?: LogData$1, noCache?: boolean): void;
|
|
4911
|
-
sendOtelLogsToNewRelic(logs: object[]
|
|
4912
|
-
|
|
4913
|
-
|
|
4919
|
+
sendOtelLogsToNewRelic(logs: object[], { isInDestructionMode }?: {
|
|
4920
|
+
isInDestructionMode?: boolean;
|
|
4921
|
+
}): Promise<void>;
|
|
4922
|
+
processCachedLogs({ isInDestructionMode }?: {
|
|
4923
|
+
isInDestructionMode?: boolean;
|
|
4924
|
+
}): Promise<void>;
|
|
4925
|
+
destruct(): Promise<void>;
|
|
4914
4926
|
}
|
|
4915
4927
|
|
|
4916
4928
|
type LogData = LogData$1;
|