Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
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
12 changes: 6 additions & 6 deletions .github/workflows/version-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ env:
STREAM_SECRET: ${{ secrets.CLIENT_TEST_SECRET }}

on:
# Disable the automatic release trigger
# push:
# branches:
# - main
# paths:
# - 'packages/**'
# Disable the automatic release trigger
# push:
# branches:
# - main
# paths:
# - 'packages/**'

workflow_dispatch:

Expand Down
11 changes: 8 additions & 3 deletions SECURITY.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,21 @@
# Reporting a Vulnerability

At Stream we are committed to the security of our Software. We appreciate your efforts in disclosing vulnerabilities responsibly and we will make every effort to acknowledge your contributions.

Report security vulnerabilities at the following email address:

```
[[email protected]](mailto:[email protected])
```

Alternatively it is also possible to open a new issue in the affected repository, tagging it with the `security` tag.

A team member will acknowledge the vulnerability and will follow-up with more detailed information. A representative of the security team will be in touch if more information is needed.

# Information to include in a report

While we appreciate any information that you are willing to provide, please make sure to include the following:
* Which repository is affected
* Which branch, if relevant
* Be as descriptive as possible, the team will replicate the vulnerability before working on a fix.

- Which repository is affected
- Which branch, if relevant
- Be as descriptive as possible, the team will replicate the vulnerability before working on a fix.
7,125 changes: 4,411 additions & 2,714 deletions packages/audio-filters-web/src/krispai/dist/krispsdk.es5.js

Large diffs are not rendered by default.

4,140 changes: 2,340 additions & 1,800 deletions packages/audio-filters-web/src/krispai/dist/krispsdk.js

Large diffs are not rendered by default.

3,735 changes: 2,094 additions & 1,641 deletions packages/audio-filters-web/src/krispai/dist/krispsdk.mjs

Large diffs are not rendered by default.

4,427 changes: 2,500 additions & 1,927 deletions packages/audio-filters-web/src/krispai/dist/usermedia.js

Large diffs are not rendered by default.

4,089 changes: 2,287 additions & 1,802 deletions packages/audio-filters-web/src/krispai/dist/usermedia.mjs

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions packages/audio-filters-web/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"declaration": true,
"emitDeclarationOnly": true,
"moduleResolution": "node",
"verbatimModuleSyntax": true,
"allowSyntheticDefaultImports": true,
"esModuleInterop": true,
"resolveJsonModule": true,
Expand Down
22 changes: 11 additions & 11 deletions packages/client/src/Call.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { StreamSfuClient } from './StreamSfuClient';
import {
BasePeerConnectionOpts,
type BasePeerConnectionOpts,
Dispatcher,
getGenericSdp,
isAudioTrackType,
Expand All @@ -9,7 +9,7 @@ import {
Publisher,
Subscriber,
toRtcConfiguration,
TrackPublishOptions,
type TrackPublishOptions,
trackTypeToParticipantStreamKey,
} from './rtc';
import {
Expand All @@ -26,7 +26,7 @@ import {
createSubscription,
getCurrentValue,
} from './store/rxUtils';
import { ScopedLogger, videoLoggerSystem } from './logger';
import { type ScopedLogger, videoLoggerSystem } from './logger';
import type {
AcceptCallResponse,
BlockUserRequest,
Expand Down Expand Up @@ -104,7 +104,7 @@ import type {
UpdateUserPermissionsResponse,
} from './gen/coordinator';
import { OwnCapability } from './gen/coordinator';
import {
import type {
AudioTrackType,
CallConstructor,
CallLeaveOptions,
Expand Down Expand Up @@ -132,7 +132,7 @@ import {
createStatsReporter,
getSdkSignature,
SfuStatsReporter,
StatsReporter,
type StatsReporter,
Tracer,
} from './stats';
import { DynascaleManager } from './helpers/DynascaleManager';
Expand All @@ -141,11 +141,11 @@ 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,
RejectReason,
StreamCallEvent,
type RejectReason,
type StreamCallEvent,
} from './coordinator/connection/types';
import { getClientDetails } from './helpers/client-details';
import {
Expand All @@ -159,10 +159,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,16 +28,16 @@ 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 { ScopedLogger, videoLoggerSystem } from './logger';
import type { Credentials } from './gen/coordinator';
import { type ScopedLogger, videoLoggerSystem } 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
16 changes: 8 additions & 8 deletions packages/client/src/StreamVideoClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ import type {
QueryCallStatsResponse,
} from './gen/coordinator';
import {
AllClientEvents,
ClientEventListener,
type AllClientEvents,
type ClientEventListener,
ErrorFromResponse,
StreamClientOptions,
TokenOrProvider,
TokenProvider,
User,
UserWithId,
type StreamClientOptions,
type TokenOrProvider,
type TokenProvider,
type User,
type UserWithId,
} from './coordinator/connection/types';
import { retryInterval, sleep } from './coordinator/connection/utils';
import {
Expand All @@ -38,7 +38,7 @@ import {
getCallInitConcurrencyTag,
getInstanceKey,
} from './helpers/clientUtils';
import { logToConsole, ScopedLogger, videoLoggerSystem } from './logger';
import { logToConsole, type ScopedLogger, videoLoggerSystem } from './logger';
import { withoutConcurrency } from './helpers/concurrency';
import { enableTimerWorker } from './timers';

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
30 changes: 15 additions & 15 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,26 +17,26 @@ import {
sleep,
} from './utils';
import {
AllClientEvents,
AllClientEventTypes,
APIErrorResponse,
ClientEventListener,
ConnectAPIResponse,
type AllClientEvents,
type AllClientEventTypes,
type APIErrorResponse,
type ClientEventListener,
type ConnectAPIResponse,
ErrorFromResponse,
StreamClientOptions,
StreamVideoEvent,
TokenOrProvider,
User,
UserWithId,
type StreamClientOptions,
type StreamVideoEvent,
type TokenOrProvider,
type User,
type UserWithId,
} from './types';
import { getLocationHint } from './location';
import {
import type {
ConnectedEvent,
CreateGuestRequest,
CreateGuestResponse,
} from '../../gen/coordinator';
import { makeSafePromise, type SafePromise } from '../../helpers/promise';
import { ScopedLogger, videoLoggerSystem } from '../../logger';
import { type ScopedLogger, videoLoggerSystem } from '../../logger';

export class StreamClient {
_user?: UserWithId;
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';
import type { ConfigureLoggersOptions, LogLevel } from '@stream-io/logger';

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,20 +1,20 @@
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 { ScopedLogger, videoLoggerSystem } from '../logger';
import { type ScopedLogger, videoLoggerSystem } from '../logger';
import { TrackType } from '../gen/video/sfu/models/models';
import { deviceIds$ } from './devices';
import {
settled,
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
Loading