Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 3 additions & 8 deletions packages/audio-filters-web/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,11 @@
"outDir": "./dist",
"module": "ES2020",
"target": "ES2020",
"lib": [
"esnext",
"dom"
],
"lib": ["esnext", "dom"],
"allowJs": true,
"declaration": true,
"moduleResolution": "node",
"verbatimModuleSyntax": true,
"allowSyntheticDefaultImports": true,
"esModuleInterop": true,
"resolveJsonModule": true,
Expand All @@ -21,8 +19,5 @@
"inlineSources": true
},
"exclude": ["**/__tests__/**"],
"include": [
"./src",
"index.ts"
]
"include": ["./src", "index.ts"]
}
20 changes: 10 additions & 10 deletions packages/client/src/Call.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
Publisher,
Subscriber,
toRtcConfiguration,
TrackPublishOptions,
type TrackPublishOptions,
trackTypeToParticipantStreamKey,
} from './rtc';
import {
Expand Down Expand Up @@ -97,7 +97,7 @@ import type {
UpdateUserPermissionsResponse,
} from './gen/coordinator';
import { OwnCapability } from './gen/coordinator';
import {
import type {
AudioTrackType,
CallConstructor,
CallLeaveOptions,
Expand All @@ -124,7 +124,7 @@ import {
createStatsReporter,
getSdkSignature,
SfuStatsReporter,
StatsReporter,
type StatsReporter,
Tracer,
} from './stats';
import { DynascaleManager } from './helpers/DynascaleManager';
Expand All @@ -133,12 +133,12 @@ import { CallTypes } from './CallType';
import { StreamClient } from './coordinator/connection/client';
import { retryInterval, sleep } from './coordinator/connection/utils';
import {
AllCallEvents,
CallEventListener,
type AllCallEvents,
type CallEventListener,
ErrorFromResponse,
Logger,
RejectReason,
StreamCallEvent,
type Logger,
type RejectReason,
type StreamCallEvent,
} from './coordinator/connection/types';
import { getClientDetails } from './helpers/client-details';
import { getLogger } from './logger';
Expand All @@ -153,10 +153,10 @@ import { ensureExhausted } from './helpers/ensureExhausted';
import { pushToIfMissing } from './helpers/array';
import {
makeSafePromise,
PromiseWithResolvers,
type PromiseWithResolvers,
promiseWithResolvers,
} from './helpers/promise';
import { GetCallStatsResponse } from './gen/shims';
import type { GetCallStatsResponse } from './gen/shims';

/**
* An object representation of a `Call`.
Expand Down
4 changes: 2 additions & 2 deletions packages/client/src/CallType.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { StreamVideoParticipant } from './types';
import type { StreamVideoParticipant } from './types';
import {
Comparator,
type Comparator,
defaultSortPreset,
livestreamOrAudioRoomSortPreset,
} from './sorting';
Expand Down
12 changes: 6 additions & 6 deletions packages/client/src/StreamSfuClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
createWebSocketSignalChannel,
Dispatcher,
IceTrickleBuffer,
SfuEventKinds,
type SfuEventKinds,
} from './rtc';
import {
JoinRequest,
Expand All @@ -28,17 +28,17 @@ import {
import { ICETrickle } from './gen/video/sfu/models/models';
import { StreamClient } from './coordinator/connection/client';
import { generateUUIDv4 } from './coordinator/connection/utils';
import { Credentials } from './gen/coordinator';
import { Logger } from './coordinator/connection/types';
import type { Credentials } from './gen/coordinator';
import type { Logger } from './coordinator/connection/types';
import { getLogger, getLogLevel } from './logger';
import {
makeSafePromise,
PromiseWithResolvers,
type PromiseWithResolvers,
promiseWithResolvers,
SafePromise,
type SafePromise,
} from './helpers/promise';
import { getTimers } from './timers';
import { Tracer, TraceSlice } from './stats';
import { Tracer, type TraceSlice } from './stats';

export type StreamSfuClientConstructor = {
/**
Expand Down
2 changes: 1 addition & 1 deletion packages/client/src/StreamVideoClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import type {
QueryCallStatsRequest,
QueryCallStatsResponse,
} from './gen/coordinator';
import {
import type {
AllClientEvents,
ClientEventListener,
Logger,
Expand Down
2 changes: 1 addition & 1 deletion packages/client/src/__tests__/clientTestUtils.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { AllClientEvents } from '../coordinator/connection/types';
import type { AllClientEvents } from '../coordinator/connection/types';
import { StreamVideoClient } from '../StreamVideoClient';
import { Call } from '../Call';
import { RxUtils } from '../store';
Expand Down
32 changes: 16 additions & 16 deletions packages/client/src/coordinator/connection/client.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import axios, {
AxiosError,
AxiosInstance,
AxiosRequestConfig,
AxiosResponse,
type AxiosInstance,
type AxiosRequestConfig,
type AxiosResponse,
} from 'axios';
import https from 'https';
import { StableWSConnection } from './connection';
Expand All @@ -17,22 +17,22 @@ import {
retryInterval,
sleep,
} from './utils';
import {
AllClientEvents,
AllClientEventTypes,
APIErrorResponse,
ClientEventListener,
ConnectAPIResponse,
import {
type AllClientEvents,
type AllClientEventTypes,
type APIErrorResponse,
type ClientEventListener,
type ConnectAPIResponse,
ErrorFromResponse,
Logger,
StreamClientOptions,
StreamVideoEvent,
TokenOrProvider,
User,
UserWithId,
type Logger,
type StreamClientOptions,
type StreamVideoEvent,
type TokenOrProvider,
type User,
type UserWithId,
} from './types';
import { getLocationHint } from './location';
import {
import type {
ConnectedEvent,
CreateGuestRequest,
CreateGuestResponse,
Expand Down
10 changes: 7 additions & 3 deletions packages/client/src/coordinator/connection/types.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
import { AxiosRequestConfig, AxiosResponse } from 'axios';
import { ConnectedEvent, UserRequest, VideoEvent } from '../../gen/coordinator';
import { AllSfuEvents } from '../../rtc';
import type { AxiosRequestConfig, AxiosResponse } from 'axios';
import type {
ConnectedEvent,
UserRequest,
VideoEvent,
} from '../../gen/coordinator';
import type { AllSfuEvents } from '../../rtc';

export type UR = Record<string, unknown>;

Expand Down
2 changes: 1 addition & 1 deletion packages/client/src/devices/AudioDeviceManager.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { DeviceManager } from './DeviceManager';
import { AudioDeviceManagerState } from './AudioDeviceManagerState';
import { AudioBitrateProfile } from '../gen/video/sfu/models/models';
import { TrackPublishOptions } from '../rtc';
import type { TrackPublishOptions } from '../rtc';

/**
* Base class for High Fidelity enabled Device Managers.
Expand Down
5 changes: 4 additions & 1 deletion packages/client/src/devices/AudioDeviceManagerState.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import { BehaviorSubject, distinctUntilChanged, Observable } from 'rxjs';
import { AudioBitrateProfile } from '../gen/video/sfu/models/models';
import { DeviceManagerState, TrackDisableMode } from './DeviceManagerState';
import {
DeviceManagerState,
type TrackDisableMode,
} from './DeviceManagerState';
import { RxUtils } from './../store';
import { BrowserPermission } from './BrowserPermission';

Expand Down
4 changes: 2 additions & 2 deletions packages/client/src/devices/CameraManager.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { Observable } from 'rxjs';
import { Call } from '../Call';
import { CameraDirection, CameraManagerState } from './CameraManagerState';
import { type CameraDirection, CameraManagerState } from './CameraManagerState';
import { DeviceManager } from './DeviceManager';
import { getVideoDevices, getVideoStream } from './devices';
import { OwnCapability, VideoSettingsResponse } from '../gen/coordinator';
import { OwnCapability, type VideoSettingsResponse } from '../gen/coordinator';
import { TrackType } from '../gen/video/sfu/models/models';
import { isMobile } from '../helpers/compatibility';
import { isReactNative } from '../helpers/platforms';
Expand Down
6 changes: 3 additions & 3 deletions packages/client/src/devices/DeviceManager.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { combineLatest, Observable, pairwise } from 'rxjs';
import { Call } from '../Call';
import { TrackPublishOptions } from '../rtc';
import type { TrackPublishOptions } from '../rtc';
import { CallingState } from '../store';
import { createSubscription } from '../store/rxUtils';
import { DeviceManagerState } from './DeviceManagerState';
import { isMobile } from '../helpers/compatibility';
import { isReactNative } from '../helpers/platforms';
import { Logger } from '../coordinator/connection/types';
import type { Logger } from '../coordinator/connection/types';
import { getLogger } from '../logger';
import { TrackType } from '../gen/video/sfu/models/models';
import { deviceIds$ } from './devices';
Expand All @@ -15,7 +15,7 @@ import {
withCancellation,
withoutConcurrency,
} from '../helpers/concurrency';
import {
import type {
MediaStreamFilter,
MediaStreamFilterEntry,
MediaStreamFilterRegistrationResult,
Expand Down
5 changes: 4 additions & 1 deletion packages/client/src/devices/DeviceManagerState.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ import {
shareReplay,
} from 'rxjs';
import { RxUtils } from '../store';
import { BrowserPermission, BrowserPermissionState } from './BrowserPermission';
import {
BrowserPermission,
type BrowserPermissionState,
} from './BrowserPermission';

export type InputDeviceStatus = 'enabled' | 'disabled' | undefined;
export type TrackDisableMode = 'stop-tracks' | 'disable-tracks';
Expand Down
4 changes: 2 additions & 2 deletions packages/client/src/devices/MicrophoneManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ import {
createAudioConstraints,
} from './AudioDeviceManager';
import { MicrophoneManagerState } from './MicrophoneManagerState';
import { TrackDisableMode } from './DeviceManagerState';
import type { TrackDisableMode } from './DeviceManagerState';
import { getAudioDevices, getAudioStream } from './devices';
import { AudioBitrateProfile, TrackType } from '../gen/video/sfu/models/models';
import { createSoundDetector } from '../helpers/sound-detector';
import { isReactNative } from '../helpers/platforms';
import {
AudioSettingsResponse,
type AudioSettingsResponse,
NoiseCancellationSettingsModeEnum,
OwnCapability,
} from '../gen/coordinator';
Expand Down
2 changes: 1 addition & 1 deletion packages/client/src/devices/MicrophoneManagerState.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { BehaviorSubject, distinctUntilChanged } from 'rxjs';
import { RxUtils } from '../store';
import { TrackDisableMode } from './DeviceManagerState';
import type { TrackDisableMode } from './DeviceManagerState';
import { AudioDeviceManagerState } from './AudioDeviceManagerState';
import { getAudioBrowserPermission, resolveDeviceId } from './devices';
import { AudioBitrateProfile } from '../gen/video/sfu/models/models';
Expand Down
2 changes: 1 addition & 1 deletion packages/client/src/devices/ScreenShareManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { ScreenShareState } from './ScreenShareState';
import { Call } from '../Call';
import { AudioBitrateProfile, TrackType } from '../gen/video/sfu/models/models';
import { getScreenShareStream } from './devices';
import { ScreenShareSettings } from '../types';
import type { ScreenShareSettings } from '../types';
import { createSubscription } from '../store/rxUtils';

export class ScreenShareManager extends AudioDeviceManager<
Expand Down
2 changes: 1 addition & 1 deletion packages/client/src/devices/ScreenShareState.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { BehaviorSubject, distinctUntilChanged } from 'rxjs';
import { AudioDeviceManagerState } from './AudioDeviceManagerState';
import { AudioBitrateProfile } from '../gen/video/sfu/models/models';
import { ScreenShareSettings } from '../types';
import type { ScreenShareSettings } from '../types';
import { RxUtils } from '../store';

export class ScreenShareState extends AudioDeviceManagerState<DisplayMediaStreamOptions> {
Expand Down
4 changes: 2 additions & 2 deletions packages/client/src/events/call.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { CallingState } from '../store';
import { Call } from '../Call';
import {
CallAcceptedEvent,
CallRejectedEvent,
type CallAcceptedEvent,
type CallRejectedEvent,
OwnCapability,
} from '../gen/coordinator';
import { CallEnded } from '../gen/video/sfu/event/events';
Expand Down
2 changes: 1 addition & 1 deletion packages/client/src/events/callEventHandlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import {
watchTrackPublished,
watchTrackUnpublished,
} from '../events';
import {
import type {
AllCallEvents,
AllClientCallEvents,
CallEventListener,
Expand Down
2 changes: 1 addition & 1 deletion packages/client/src/events/internal.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Dispatcher } from '../rtc';
import { Call } from '../Call';
import { CallState } from '../store';
import { StreamVideoParticipantPatches } from '../types';
import type { StreamVideoParticipantPatches } from '../types';
import { getLogger } from '../logger';
import { pushToIfMissing, removeFromIfPresent } from '../helpers/array';
import type {
Expand Down
4 changes: 2 additions & 2 deletions packages/client/src/events/participant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import type {
} from '../gen/video/sfu/event/events';
import type { Participant } from '../gen/video/sfu/models/models';
import {
StreamVideoParticipant,
StreamVideoParticipantPatch,
type StreamVideoParticipant,
type StreamVideoParticipantPatch,
VisibilityState,
} from '../types';
import { CallState } from '../store';
Expand Down
2 changes: 1 addition & 1 deletion packages/client/src/events/speaker.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Dispatcher } from '../rtc';
import { CallState } from '../store';
import { StreamVideoParticipantPatches } from '../types';
import type { StreamVideoParticipantPatches } from '../types';

/**
* Watches for `dominantSpeakerChanged` events.
Expand Down
4 changes: 2 additions & 2 deletions packages/client/src/helpers/DynascaleManager.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {
AudioTrackType,
type AudioTrackType,
DebounceType,
VideoTrackType,
type VideoTrackType,
VisibilityState,
} from '../types';
import { TrackType, VideoDimension } from '../gen/video/sfu/models/models';
Expand Down
4 changes: 2 additions & 2 deletions packages/client/src/helpers/RNSpeechDetector.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { BaseStats } from '../stats';
import { SoundStateChangeHandler } from './sound-detector';
import type { BaseStats } from '../stats';
import type { SoundStateChangeHandler } from './sound-detector';
import { flatten } from '../stats/utils';
import { getLogger } from '../logger';

Expand Down
2 changes: 1 addition & 1 deletion packages/client/src/helpers/__tests__/clientUtils.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
getCallInitConcurrencyTag,
getInstanceKey,
} from '../clientUtils';
import { TokenProvider } from '../../coordinator/connection/types';
import type { TokenProvider } from '../../coordinator/cownnection/types';
import { getSdkInfo, setSdkInfo } from '../client-details';

describe('clientUtils', () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/client/src/helpers/participantUtils.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { StreamVideoParticipant, VideoTrackType } from '../types';
import type { StreamVideoParticipant, VideoTrackType } from '../types';
import { TrackType } from '../gen/video/sfu/models/models';

/**
Expand Down
2 changes: 1 addition & 1 deletion packages/client/src/logger.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Logger, LogLevel } from './coordinator/connection/types';
import type { Logger, LogLevel } from './coordinator/connection/types';
import { isReactNative } from './helpers/platforms';

// log levels, sorted by verbosity
Expand Down
Loading