@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
|
declare global {
|
|
@@ -4335,6 +4334,10 @@ type TypedEvents = {
|
|
|
4335
4334
|
};
|
|
4336
4335
|
type UntypedEvents = Pick<AllEvents, Exclude<keyof AllEvents, keyof TypedEvents>>;
|
|
4337
4336
|
type SessionEventsType = TypedEvents & UntypedEvents;
|
|
4337
|
+
declare const ENVIRONMENTS: {
|
|
4338
|
+
readonly STAGING: "staging";
|
|
4339
|
+
readonly PROD: "prod";
|
|
4340
|
+
};
|
|
4338
4341
|
type ContextState = {
|
|
4339
4342
|
authToken?: string;
|
|
4340
4343
|
peerId?: string;
|
|
@@ -4357,7 +4360,7 @@ type ContextState = {
|
|
|
4357
4360
|
pip?: Pip;
|
|
4358
4361
|
roomNodeClient?: MediaNodeClient;
|
|
4359
4362
|
viewType?: ViewType;
|
|
4360
|
-
env?:
|
|
4363
|
+
env?: typeof ENVIRONMENTS[keyof typeof ENVIRONMENTS];
|
|
4361
4364
|
sdkVersion?: string;
|
|
4362
4365
|
sdkName?: 'web-core';
|
|
4363
4366
|
callstats?: InhouseCallStats;
|
|
@@ -4585,7 +4588,14 @@ declare function createSafeToLogError(ex: any): {
|
|
|
4585
4588
|
reason?: string;
|
|
4586
4589
|
code?: number | string;
|
|
4587
4590
|
};
|
|
4588
|
-
|
|
4591
|
+
declare const supportedEventSeverities: readonly [
|
|
4592
|
+
"info",
|
|
4593
|
+
"error",
|
|
4594
|
+
"debug",
|
|
4595
|
+
"log",
|
|
4596
|
+
"warn"
|
|
4597
|
+
];
|
|
4598
|
+
type SupportedEventSeverities = typeof supportedEventSeverities[number];
|
|
4589
4599
|
type LogData$2 = {
|
|
4590
4600
|
error?: ReturnType<typeof createSafeToLogError>;
|
|
4591
4601
|
peers?: string;
|
|
@@ -4856,10 +4866,13 @@ declare class Telemetry {
|
|
|
4856
4866
|
[key: string]: any;
|
|
4857
4867
|
}[];
|
|
4858
4868
|
logsProcessorTimer: NodeJS.Timer;
|
|
4869
|
+
private compressionSupported;
|
|
4870
|
+
private isCompressionSupported;
|
|
4859
4871
|
readonly logsEndpoint: string;
|
|
4860
4872
|
tracingEnabled: boolean;
|
|
4861
4873
|
initialized: boolean;
|
|
4862
4874
|
readonly logsProcessingInterval = 7000;
|
|
4875
|
+
private readonly logsBatchSize: any;
|
|
4863
4876
|
logExclusionList: string[];
|
|
4864
4877
|
meetingMetadata: MeetingMetadata;
|
|
4865
4878
|
resetPeerId(peerId: string): void;
|
|
@@ -4867,9 +4880,13 @@ declare class Telemetry {
|
|
|
4867
4880
|
static trace(spanName: string, metadata?: LogData$1 | undefined): (_target: Object, _propertyKey: string, descriptor: PropertyDescriptor) => PropertyDescriptor;
|
|
4868
4881
|
injectContext(injectionReceiver: any): void;
|
|
4869
4882
|
addLogInCurrentSpan(eventSeverity: EventSeverities, eventName: string, metadata?: LogData$1, noCache?: boolean): void;
|
|
4870
|
-
sendOtelLogsToNewRelic(logs: object[]
|
|
4871
|
-
|
|
4872
|
-
|
|
4883
|
+
sendOtelLogsToNewRelic(logs: object[], { isInDestructionMode }?: {
|
|
4884
|
+
isInDestructionMode?: boolean;
|
|
4885
|
+
}): Promise<void>;
|
|
4886
|
+
processCachedLogs({ isInDestructionMode }?: {
|
|
4887
|
+
isInDestructionMode?: boolean;
|
|
4888
|
+
}): Promise<void>;
|
|
4889
|
+
destruct(): Promise<void>;
|
|
4873
4890
|
}
|
|
4874
4891
|
type LogData = LogData$1;
|
|
4875
4892
|
declare class Logger {
|
|
@@ -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';
|
|
@@ -4276,6 +4275,10 @@ declare class AudioPlaybackManager extends AudioPlayback {
|
|
|
4276
4275
|
addParticipantTrack(participantId: string, track: MediaStreamTrack): void;
|
|
4277
4276
|
removeParticipantTrack(participantId: string): void;
|
|
4278
4277
|
}
|
|
4278
|
+
declare const ENVIRONMENTS: {
|
|
4279
|
+
readonly STAGING: "staging";
|
|
4280
|
+
readonly PROD: "prod";
|
|
4281
|
+
};
|
|
4279
4282
|
type ContextState = {
|
|
4280
4283
|
authToken?: string;
|
|
4281
4284
|
peerId?: string;
|
|
@@ -4298,7 +4301,7 @@ type ContextState = {
|
|
|
4298
4301
|
pip?: Pip;
|
|
4299
4302
|
roomNodeClient?: MediaNodeClient;
|
|
4300
4303
|
viewType?: ViewType;
|
|
4301
|
-
env?:
|
|
4304
|
+
env?: typeof ENVIRONMENTS[keyof typeof ENVIRONMENTS];
|
|
4302
4305
|
sdkVersion?: string;
|
|
4303
4306
|
sdkName?: 'web-core';
|
|
4304
4307
|
callstats?: InhouseCallStats;
|
|
@@ -4526,7 +4529,14 @@ declare function createSafeToLogError(ex: any): {
|
|
|
4526
4529
|
reason?: string;
|
|
4527
4530
|
code?: number | string;
|
|
4528
4531
|
};
|
|
4529
|
-
|
|
4532
|
+
declare const supportedEventSeverities: readonly [
|
|
4533
|
+
"info",
|
|
4534
|
+
"error",
|
|
4535
|
+
"debug",
|
|
4536
|
+
"log",
|
|
4537
|
+
"warn"
|
|
4538
|
+
];
|
|
4539
|
+
type SupportedEventSeverities = typeof supportedEventSeverities[number];
|
|
4530
4540
|
type LogData$2 = {
|
|
4531
4541
|
error?: ReturnType<typeof createSafeToLogError>;
|
|
4532
4542
|
peers?: string;
|
|
@@ -4797,10 +4807,13 @@ declare class Telemetry {
|
|
|
4797
4807
|
[key: string]: any;
|
|
4798
4808
|
}[];
|
|
4799
4809
|
logsProcessorTimer: NodeJS.Timer;
|
|
4810
|
+
private compressionSupported;
|
|
4811
|
+
private isCompressionSupported;
|
|
4800
4812
|
readonly logsEndpoint: string;
|
|
4801
4813
|
tracingEnabled: boolean;
|
|
4802
4814
|
initialized: boolean;
|
|
4803
4815
|
readonly logsProcessingInterval = 7000;
|
|
4816
|
+
private readonly logsBatchSize: any;
|
|
4804
4817
|
logExclusionList: string[];
|
|
4805
4818
|
meetingMetadata: MeetingMetadata;
|
|
4806
4819
|
resetPeerId(peerId: string): void;
|
|
@@ -4808,9 +4821,13 @@ declare class Telemetry {
|
|
|
4808
4821
|
static trace(spanName: string, metadata?: LogData$1 | undefined): (_target: Object, _propertyKey: string, descriptor: PropertyDescriptor) => PropertyDescriptor;
|
|
4809
4822
|
injectContext(injectionReceiver: any): void;
|
|
4810
4823
|
addLogInCurrentSpan(eventSeverity: EventSeverities, eventName: string, metadata?: LogData$1, noCache?: boolean): void;
|
|
4811
|
-
sendOtelLogsToNewRelic(logs: object[]
|
|
4812
|
-
|
|
4813
|
-
|
|
4824
|
+
sendOtelLogsToNewRelic(logs: object[], { isInDestructionMode }?: {
|
|
4825
|
+
isInDestructionMode?: boolean;
|
|
4826
|
+
}): Promise<void>;
|
|
4827
|
+
processCachedLogs({ isInDestructionMode }?: {
|
|
4828
|
+
isInDestructionMode?: boolean;
|
|
4829
|
+
}): Promise<void>;
|
|
4830
|
+
destruct(): Promise<void>;
|
|
4814
4831
|
}
|
|
4815
4832
|
type LogData = LogData$1;
|
|
4816
4833
|
declare class Logger {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudflare/realtimekit",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.0-staging.2",
|
|
4
4
|
"description": "A real-time video and audio SDK for building custom, collaborative communication experiences.",
|
|
5
5
|
"main": "./dist/index.cjs.js",
|
|
6
6
|
"module": "./dist/index.es.js",
|
|
@@ -86,8 +86,7 @@
|
|
|
86
86
|
"worker-timers": "7.0.60"
|
|
87
87
|
},
|
|
88
88
|
"publishConfig": {
|
|
89
|
-
"
|
|
90
|
-
"tag": "latest"
|
|
89
|
+
"tag": "staging"
|
|
91
90
|
},
|
|
92
91
|
"devDependencies": {
|
|
93
92
|
"@types/events": "^3.0.0",
|