@stream-io/video-client 0.6.7 → 0.6.9

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.
@@ -1,7 +1,7 @@
1
1
  import { Publisher, Subscriber } from './rtc';
2
2
  import { TrackType } from './gen/video/sfu/models/models';
3
3
  import { CallState } from './store';
4
- import { AcceptCallResponse, BlockUserResponse, EndCallResponse, GetCallResponse, GetCallStatsResponse, GetOrCreateCallRequest, GetOrCreateCallResponse, GoLiveRequest, GoLiveResponse, ListRecordingsResponse, MuteUsersResponse, PinRequest, PinResponse, QueryMembersRequest, QueryMembersResponse, RejectCallResponse, RequestPermissionRequest, RequestPermissionResponse, SendEventResponse, SendReactionRequest, SendReactionResponse, StartHLSBroadcastingResponse, StartRecordingRequest, StartRecordingResponse, StopHLSBroadcastingResponse, StopLiveResponse, StopRecordingResponse, UnblockUserResponse, UnpinRequest, UnpinResponse, UpdateCallMembersRequest, UpdateCallMembersResponse, UpdateCallRequest, UpdateCallResponse, UpdateUserPermissionsRequest, UpdateUserPermissionsResponse } from './gen/coordinator';
4
+ import { AcceptCallResponse, BlockUserResponse, CollectUserFeedbackRequest, CollectUserFeedbackResponse, EndCallResponse, GetCallResponse, GetCallStatsResponse, GetOrCreateCallRequest, GetOrCreateCallResponse, GoLiveRequest, GoLiveResponse, ListRecordingsResponse, ListTranscriptionsResponse, MuteUsersResponse, PinRequest, PinResponse, QueryMembersRequest, QueryMembersResponse, RejectCallResponse, RequestPermissionRequest, RequestPermissionResponse, SendEventResponse, SendReactionRequest, SendReactionResponse, StartHLSBroadcastingResponse, StartRecordingRequest, StartRecordingResponse, StartTranscriptionRequest, StartTranscriptionResponse, StopHLSBroadcastingResponse, StopLiveResponse, StopRecordingResponse, StopTranscriptionResponse, UnblockUserResponse, UnpinRequest, UnpinResponse, UpdateCallMembersRequest, UpdateCallMembersResponse, UpdateCallRequest, UpdateCallResponse, UpdateUserPermissionsRequest, UpdateUserPermissionsResponse } from './gen/coordinator';
5
5
  import { AudioTrackType, CallConstructor, CallLeaveOptions, DebounceType, JoinCallData, PublishOptions, SubscriptionChanges, TrackMuteType, VideoTrackType } from './types';
6
6
  import { VideoLayerSetting } from './gen/video/sfu/event/events';
7
7
  import { DynascaleManager } from './helpers/DynascaleManager';
@@ -320,6 +320,16 @@ export declare class Call {
320
320
  * Stops recording the call
321
321
  */
322
322
  stopRecording: () => Promise<StopRecordingResponse>;
323
+ /**
324
+ * Starts the transcription of the call.
325
+ *
326
+ * @param request the request data.
327
+ */
328
+ startTranscription: (request?: StartTranscriptionRequest) => Promise<StartTranscriptionResponse>;
329
+ /**
330
+ * Stops the transcription of the call.
331
+ */
332
+ stopTranscription: () => Promise<StopTranscriptionResponse>;
323
333
  /**
324
334
  * Sends a `call.permission_request` event to all users connected to the call. The call settings object contains infomration about which permissions can be requested during a call (for example a user might be allowed to request permission to publish audio, but not video).
325
335
  */
@@ -446,6 +456,12 @@ export declare class Call {
446
456
  * @param callSessionId the call session id to retrieve recordings for.
447
457
  */
448
458
  queryRecordings: (callSessionId?: string) => Promise<ListRecordingsResponse>;
459
+ /**
460
+ * Retrieves the list of transcriptions for the current call.
461
+ *
462
+ * @returns the list of transcriptions.
463
+ */
464
+ queryTranscriptions: () => Promise<ListTranscriptionsResponse>;
449
465
  /**
450
466
  * Retrieve call statistics for a particular call session (historical).
451
467
  * Here `callSessionID` is mandatory.
@@ -454,6 +470,12 @@ export declare class Call {
454
470
  * @returns The call stats.
455
471
  */
456
472
  getCallStats: (callSessionID: string) => Promise<GetCallStatsResponse>;
473
+ /**
474
+ * Submit feedback on call experience
475
+ *
476
+ * @returns
477
+ */
478
+ submitFeedback: (feedback: CollectUserFeedbackRequest) => Promise<CollectUserFeedbackResponse | undefined>;
457
479
  /**
458
480
  * Sends a custom event to all call participants.
459
481
  *
@@ -123,9 +123,9 @@ export declare class StreamClient {
123
123
  maxBodyLength?: number | undefined;
124
124
  }) | undefined;
125
125
  }) => void;
126
- _logApiResponse: <T>(type: string, url: string, response: AxiosResponse<T, any>) => void;
126
+ _logApiResponse: <T>(type: string, url: string, response: AxiosResponse<T>) => void;
127
127
  _logApiError: (type: string, url: string, error: unknown) => void;
128
- doAxiosRequest: <T, D = unknown>(type: string, url: string, data?: D | undefined, options?: AxiosRequestConfig & {
128
+ doAxiosRequest: <T, D = unknown>(type: string, url: string, data?: D, options?: AxiosRequestConfig & {
129
129
  config?: AxiosRequestConfig & {
130
130
  maxBodyLength?: number;
131
131
  };
@@ -133,12 +133,12 @@ export declare class StreamClient {
133
133
  publicEndpoint?: boolean;
134
134
  }) => Promise<T>;
135
135
  get: <T>(url: string, params?: AxiosRequestConfig['params']) => Promise<T>;
136
- put: <T, D = unknown>(url: string, data?: D | undefined, params?: AxiosRequestConfig['params']) => Promise<T>;
137
- post: <T, D = unknown>(url: string, data?: D | undefined, params?: AxiosRequestConfig['params']) => Promise<T>;
138
- patch: <T, D = unknown>(url: string, data?: D | undefined, params?: AxiosRequestConfig['params']) => Promise<T>;
136
+ put: <T, D = unknown>(url: string, data?: D, params?: AxiosRequestConfig['params']) => Promise<T>;
137
+ post: <T, D = unknown>(url: string, data?: D, params?: AxiosRequestConfig['params']) => Promise<T>;
138
+ patch: <T, D = unknown>(url: string, data?: D, params?: AxiosRequestConfig['params']) => Promise<T>;
139
139
  delete: <T>(url: string, params?: AxiosRequestConfig['params']) => Promise<T>;
140
140
  errorFromResponse: (response: AxiosResponse<APIErrorResponse>) => ErrorFromResponse<APIErrorResponse>;
141
- handleResponse: <T>(response: AxiosResponse<T, any>) => T;
141
+ handleResponse: <T>(response: AxiosResponse<T>) => T;
142
142
  dispatchEvent: (event: StreamVideoEvent) => void;
143
143
  /**
144
144
  * @private
@@ -3,6 +3,7 @@ import { Call } from '../Call';
3
3
  import { InputMediaDeviceManagerState } from './InputMediaDeviceManagerState';
4
4
  import { Logger } from '../coordinator/connection/types';
5
5
  import { TrackType } from '../gen/video/sfu/models/models';
6
+ export type MediaStreamFilter = (stream: MediaStream) => Promise<MediaStream>;
6
7
  export declare abstract class InputMediaDeviceManager<T extends InputMediaDeviceManagerState<C>, C = MediaTrackConstraints> {
7
8
  protected readonly call: Call;
8
9
  readonly state: T;
@@ -22,6 +23,7 @@ export declare abstract class InputMediaDeviceManager<T extends InputMediaDevice
22
23
  logger: Logger;
23
24
  private subscriptions;
24
25
  private isTrackStoppedDueToTrackEnd;
26
+ private filters;
25
27
  protected constructor(call: Call, state: T, trackType: TrackType);
26
28
  /**
27
29
  * Lists the available audio/video devices
@@ -49,6 +51,16 @@ export declare abstract class InputMediaDeviceManager<T extends InputMediaDevice
49
51
  * else it will disable it.
50
52
  */
51
53
  toggle(): Promise<void>;
54
+ /**
55
+ * Registers a filter that will be applied to the stream.
56
+ *
57
+ * The registered filter will get the existing stream, and it should return
58
+ * a new stream with the applied filter.
59
+ *
60
+ * @param filter the filter to register.
61
+ * @returns a function that will unregister the filter.
62
+ */
63
+ registerFilter(filter: MediaStreamFilter): Promise<() => Promise<void>>;
52
64
  /**
53
65
  * Will set the default constraints for the device.
54
66
  *
@@ -62,7 +74,12 @@ export declare abstract class InputMediaDeviceManager<T extends InputMediaDevice
62
74
  * @param deviceId the device id to select.
63
75
  */
64
76
  select(deviceId: string | undefined): Promise<void>;
65
- removeSubscriptions: () => void;
77
+ /**
78
+ * Disposes the manager.
79
+ *
80
+ * @internal
81
+ */
82
+ dispose: () => void;
66
83
  protected applySettingsToStream(): Promise<void>;
67
84
  protected abstract getDevices(): Observable<MediaDeviceInfo[] | undefined>;
68
85
  protected abstract getStream(constraints: C): Promise<MediaStream>;
@@ -22,7 +22,12 @@ export declare class SpeakerManager {
22
22
  * @param deviceId empty string means the system default
23
23
  */
24
24
  select(deviceId: string): void;
25
- removeSubscriptions: () => void;
25
+ /**
26
+ * Disposes the manager.
27
+ *
28
+ * @internal
29
+ */
30
+ dispose: () => void;
26
31
  /**
27
32
  * Set the volume of the audio elements
28
33
  * @param volume a number between 0 and 1.
@@ -100,6 +100,43 @@ export interface AcceptCallResponse {
100
100
  */
101
101
  duration: string;
102
102
  }
103
+ /**
104
+ *
105
+ * @export
106
+ * @interface AudioFeedbackRequest
107
+ */
108
+ export interface AudioFeedbackRequest {
109
+ /**
110
+ *
111
+ * @type {boolean}
112
+ * @memberof AudioFeedbackRequest
113
+ */
114
+ cannot_hear_others?: boolean;
115
+ /**
116
+ *
117
+ * @type {boolean}
118
+ * @memberof AudioFeedbackRequest
119
+ */
120
+ choppy?: boolean;
121
+ /**
122
+ *
123
+ * @type {boolean}
124
+ * @memberof AudioFeedbackRequest
125
+ */
126
+ echo?: boolean;
127
+ /**
128
+ *
129
+ * @type {boolean}
130
+ * @memberof AudioFeedbackRequest
131
+ */
132
+ others_could_not_hear_me?: boolean;
133
+ /**
134
+ *
135
+ * @type {boolean}
136
+ * @memberof AudioFeedbackRequest
137
+ */
138
+ too_noisy?: boolean;
139
+ }
103
140
  /**
104
141
  *
105
142
  * @export
@@ -367,6 +404,37 @@ export interface CallAcceptedEvent {
367
404
  */
368
405
  user: UserResponse;
369
406
  }
407
+ /**
408
+ * CallClosedCaption represents a closed caption of a call.
409
+ * @export
410
+ * @interface CallClosedCaption
411
+ */
412
+ export interface CallClosedCaption {
413
+ /**
414
+ *
415
+ * @type {string}
416
+ * @memberof CallClosedCaption
417
+ */
418
+ end_time: string;
419
+ /**
420
+ *
421
+ * @type {string}
422
+ * @memberof CallClosedCaption
423
+ */
424
+ speaker_id: string;
425
+ /**
426
+ *
427
+ * @type {string}
428
+ * @memberof CallClosedCaption
429
+ */
430
+ start_time: string;
431
+ /**
432
+ *
433
+ * @type {string}
434
+ * @memberof CallClosedCaption
435
+ */
436
+ text: string;
437
+ }
370
438
  /**
371
439
  * This event is sent when a call is created. Clients receiving this event should check if the ringing
372
440
  * field is set to true and if so, show the call screen
@@ -1697,6 +1765,143 @@ export interface CallTimeline {
1697
1765
  */
1698
1766
  events: Array<CallEvent>;
1699
1767
  }
1768
+ /**
1769
+ * CallTranscription represents a transcription of a call.
1770
+ * @export
1771
+ * @interface CallTranscription
1772
+ */
1773
+ export interface CallTranscription {
1774
+ /**
1775
+ *
1776
+ * @type {string}
1777
+ * @memberof CallTranscription
1778
+ */
1779
+ end_time: string;
1780
+ /**
1781
+ *
1782
+ * @type {string}
1783
+ * @memberof CallTranscription
1784
+ */
1785
+ filename: string;
1786
+ /**
1787
+ *
1788
+ * @type {string}
1789
+ * @memberof CallTranscription
1790
+ */
1791
+ start_time: string;
1792
+ /**
1793
+ *
1794
+ * @type {string}
1795
+ * @memberof CallTranscription
1796
+ */
1797
+ url: string;
1798
+ }
1799
+ /**
1800
+ * This event is sent when call transcription has failed
1801
+ * @export
1802
+ * @interface CallTranscriptionFailedEvent
1803
+ */
1804
+ export interface CallTranscriptionFailedEvent {
1805
+ /**
1806
+ *
1807
+ * @type {string}
1808
+ * @memberof CallTranscriptionFailedEvent
1809
+ */
1810
+ call_cid: string;
1811
+ /**
1812
+ *
1813
+ * @type {string}
1814
+ * @memberof CallTranscriptionFailedEvent
1815
+ */
1816
+ created_at: string;
1817
+ /**
1818
+ * The type of event: "call.transcription_failed" in this case
1819
+ * @type {string}
1820
+ * @memberof CallTranscriptionFailedEvent
1821
+ */
1822
+ type: string;
1823
+ }
1824
+ /**
1825
+ * This event is sent when call transcription is ready
1826
+ * @export
1827
+ * @interface CallTranscriptionReadyEvent
1828
+ */
1829
+ export interface CallTranscriptionReadyEvent {
1830
+ /**
1831
+ *
1832
+ * @type {string}
1833
+ * @memberof CallTranscriptionReadyEvent
1834
+ */
1835
+ call_cid: string;
1836
+ /**
1837
+ *
1838
+ * @type {CallTranscription}
1839
+ * @memberof CallTranscriptionReadyEvent
1840
+ */
1841
+ call_transcription: CallTranscription;
1842
+ /**
1843
+ *
1844
+ * @type {string}
1845
+ * @memberof CallTranscriptionReadyEvent
1846
+ */
1847
+ created_at: string;
1848
+ /**
1849
+ * The type of event: "call.transcription_ready" in this case
1850
+ * @type {string}
1851
+ * @memberof CallTranscriptionReadyEvent
1852
+ */
1853
+ type: string;
1854
+ }
1855
+ /**
1856
+ * This event is sent when call transcription has started
1857
+ * @export
1858
+ * @interface CallTranscriptionStartedEvent
1859
+ */
1860
+ export interface CallTranscriptionStartedEvent {
1861
+ /**
1862
+ *
1863
+ * @type {string}
1864
+ * @memberof CallTranscriptionStartedEvent
1865
+ */
1866
+ call_cid: string;
1867
+ /**
1868
+ *
1869
+ * @type {string}
1870
+ * @memberof CallTranscriptionStartedEvent
1871
+ */
1872
+ created_at: string;
1873
+ /**
1874
+ * The type of event: "call.transcription_started" in this case
1875
+ * @type {string}
1876
+ * @memberof CallTranscriptionStartedEvent
1877
+ */
1878
+ type: string;
1879
+ }
1880
+ /**
1881
+ * This event is sent when call transcription has stopped
1882
+ * @export
1883
+ * @interface CallTranscriptionStoppedEvent
1884
+ */
1885
+ export interface CallTranscriptionStoppedEvent {
1886
+ /**
1887
+ *
1888
+ * @type {string}
1889
+ * @memberof CallTranscriptionStoppedEvent
1890
+ */
1891
+ call_cid: string;
1892
+ /**
1893
+ *
1894
+ * @type {string}
1895
+ * @memberof CallTranscriptionStoppedEvent
1896
+ */
1897
+ created_at: string;
1898
+ /**
1899
+ * The type of event: "call.transcription_stopped" in this case
1900
+ * @type {string}
1901
+ * @memberof CallTranscriptionStoppedEvent
1902
+ */
1903
+ type: string;
1904
+ }
1700
1905
  /**
1701
1906
  *
1702
1907
  * @export
@@ -1819,6 +2024,99 @@ export interface CallUserMuted {
1819
2024
  */
1820
2025
  type: string;
1821
2026
  }
2027
+ /**
2028
+ *
2029
+ * @export
2030
+ * @interface CollectUserFeedbackRequest
2031
+ */
2032
+ export interface CollectUserFeedbackRequest {
2033
+ /**
2034
+ *
2035
+ * @type {AudioFeedbackRequest}
2036
+ * @memberof CollectUserFeedbackRequest
2037
+ */
2038
+ audio?: AudioFeedbackRequest;
2039
+ /**
2040
+ *
2041
+ * @type {boolean}
2042
+ * @memberof CollectUserFeedbackRequest
2043
+ */
2044
+ cannot_join_call?: boolean;
2045
+ /**
2046
+ *
2047
+ * @type {string}
2048
+ * @memberof CollectUserFeedbackRequest
2049
+ */
2050
+ other?: string;
2051
+ /**
2052
+ *
2053
+ * @type {number}
2054
+ * @memberof CollectUserFeedbackRequest
2055
+ */
2056
+ rating?: number;
2057
+ /**
2058
+ *
2059
+ * @type {ScreenshareFeedbackRequest}
2060
+ * @memberof CollectUserFeedbackRequest
2061
+ */
2062
+ screenshare?: ScreenshareFeedbackRequest;
2063
+ /**
2064
+ *
2065
+ * @type {string}
2066
+ * @memberof CollectUserFeedbackRequest
2067
+ */
2068
+ user_session_id?: string;
2069
+ /**
2070
+ *
2071
+ * @type {VideoFeedbackRequest}
2072
+ * @memberof CollectUserFeedbackRequest
2073
+ */
2074
+ video?: VideoFeedbackRequest;
2075
+ }
2076
+ /**
2077
+ *
2078
+ * @export
2079
+ * @interface CollectUserFeedbackResponse
2080
+ */
2081
+ export interface CollectUserFeedbackResponse {
2082
+ /**
2083
+ * Duration of the request in human-readable format
2084
+ * @type {string}
2085
+ * @memberof CollectUserFeedbackResponse
2086
+ */
2087
+ duration: string;
2088
+ }
2089
+ /**
2090
+ * This event is sent when closed captions are being sent in a call, clients should use this to show the closed captions in the call screen
2091
+ * @export
2092
+ * @interface ClosedCaptionEvent
2093
+ */
2094
+ export interface ClosedCaptionEvent {
2095
+ /**
2096
+ *
2097
+ * @type {string}
2098
+ * @memberof ClosedCaptionEvent
2099
+ */
2100
+ call_cid: string;
2101
+ /**
2102
+ *
2103
+ * @type {CallClosedCaption}
2104
+ * @memberof ClosedCaptionEvent
2105
+ */
2106
+ closed_caption: CallClosedCaption;
2107
+ /**
2108
+ *
2109
+ * @type {string}
2110
+ * @memberof ClosedCaptionEvent
2111
+ */
2112
+ created_at: string;
2113
+ /**
2114
+ * The type of event: "call.closed_caption" in this case
2115
+ * @type {string}
2116
+ * @memberof ClosedCaptionEvent
2117
+ */
2118
+ type: string;
2119
+ }
1822
2120
  /**
1823
2121
  *
1824
2122
  * @export
@@ -1845,6 +2143,12 @@ export interface ConnectUserDetailsRequest {
1845
2143
  * @memberof ConnectUserDetailsRequest
1846
2144
  */
1847
2145
  image?: string;
2146
+ /**
2147
+ *
2148
+ * @type {string}
2149
+ * @memberof ConnectUserDetailsRequest
2150
+ */
2151
+ language?: string;
1848
2152
  /**
1849
2153
  *
1850
2154
  * @type {string}
@@ -2726,6 +3030,12 @@ export interface GoLiveRequest {
2726
3030
  * @memberof GoLiveRequest
2727
3031
  */
2728
3032
  start_transcription?: boolean;
3033
+ /**
3034
+ *
3035
+ * @type {string}
3036
+ * @memberof GoLiveRequest
3037
+ */
3038
+ transcription_storage_name?: string;
2729
3039
  }
2730
3040
  /**
2731
3041
  *
@@ -3109,6 +3419,25 @@ export interface ListRecordingsResponse {
3109
3419
  */
3110
3420
  recordings: Array<CallRecording>;
3111
3421
  }
3422
+ /**
3423
+ *
3424
+ * @export
3425
+ * @interface ListTranscriptionsResponse
3426
+ */
3427
+ export interface ListTranscriptionsResponse {
3428
+ /**
3429
+ *
3430
+ * @type {string}
3431
+ * @memberof ListTranscriptionsResponse
3432
+ */
3433
+ duration: string;
3434
+ /**
3435
+ *
3436
+ * @type {Array<CallTranscription>}
3437
+ * @memberof ListTranscriptionsResponse
3438
+ */
3439
+ transcriptions: Array<CallTranscription>;
3440
+ }
3112
3441
  /**
3113
3442
  *
3114
3443
  * @export
@@ -4014,6 +4343,37 @@ export interface SFUResponse {
4014
4343
  */
4015
4344
  ws_endpoint: string;
4016
4345
  }
4346
+ /**
4347
+ *
4348
+ * @export
4349
+ * @interface ScreenshareFeedbackRequest
4350
+ */
4351
+ export interface ScreenshareFeedbackRequest {
4352
+ /**
4353
+ *
4354
+ * @type {boolean}
4355
+ * @memberof ScreenshareFeedbackRequest
4356
+ */
4357
+ blurry?: boolean;
4358
+ /**
4359
+ *
4360
+ * @type {boolean}
4361
+ * @memberof ScreenshareFeedbackRequest
4362
+ */
4363
+ could_not_present?: boolean;
4364
+ /**
4365
+ *
4366
+ * @type {boolean}
4367
+ * @memberof ScreenshareFeedbackRequest
4368
+ */
4369
+ could_not_see?: boolean;
4370
+ /**
4371
+ *
4372
+ * @type {boolean}
4373
+ * @memberof ScreenshareFeedbackRequest
4374
+ */
4375
+ slow_to_update?: boolean;
4376
+ }
4017
4377
  /**
4018
4378
  *
4019
4379
  * @export
@@ -4190,6 +4550,19 @@ export interface StartRecordingResponse {
4190
4550
  */
4191
4551
  duration: string;
4192
4552
  }
4553
+ /**
4554
+ *
4555
+ * @export
4556
+ * @interface StartTranscriptionRequest
4557
+ */
4558
+ export interface StartTranscriptionRequest {
4559
+ /**
4560
+ *
4561
+ * @type {string}
4562
+ * @memberof StartTranscriptionRequest
4563
+ */
4564
+ transcription_external_storage?: string;
4565
+ }
4193
4566
  /**
4194
4567
  *
4195
4568
  * @export
@@ -4395,7 +4768,13 @@ export interface TranscriptionSettings {
4395
4768
  */
4396
4769
  closed_caption_mode: string;
4397
4770
  /**
4398
- *
4771
+ * omitempty,max=2,dive,oneof= en, fr, es, de, it, nl, pt, pl, ca, cs, da, el, fi, id, ja, ru, sv, ta, th, tr, hu, ro, zh, ar, tl, he, hi, hr, ko, ms, no, uk
4772
+ * @type {Array<string>}
4773
+ * @memberof TranscriptionSettings
4774
+ */
4775
+ languages: Array<string>;
4776
+ /**
4777
+ * oneof=available disabled auto-on
4399
4778
  * @type {string}
4400
4779
  * @memberof TranscriptionSettings
4401
4780
  */
@@ -4423,7 +4802,13 @@ export interface TranscriptionSettingsRequest {
4423
4802
  */
4424
4803
  closed_caption_mode?: string;
4425
4804
  /**
4426
- *
4805
+ * omitempty,max=2,dive,oneof= en, fr, es, de, it, nl, pt, pl, ca, cs, da, el, fi, id, ja, ru, sv, ta, th, tr, hu, ro, zh, ar, tl, he, hi, hr, ko, ms, no, uk
4806
+ * @type {Array<string>}
4807
+ * @memberof TranscriptionSettingsRequest
4808
+ */
4809
+ languages?: Array<string>;
4810
+ /**
4811
+ * oneof=available disabled auto-on
4427
4812
  * @type {string}
4428
4813
  * @memberof TranscriptionSettingsRequest
4429
4814
  */
@@ -5020,6 +5405,8 @@ export type VideoEvent = ({
5020
5405
  } & CallAcceptedEvent) | ({
5021
5406
  type: 'call.blocked_user';
5022
5407
  } & BlockedUserEvent) | ({
5408
+ type: 'call.closed_caption';
5409
+ } & ClosedCaptionEvent) | ({
5023
5410
  type: 'call.created';
5024
5411
  } & CallCreatedEvent) | ({
5025
5412
  type: 'call.ended';
@@ -5068,6 +5455,14 @@ export type VideoEvent = ({
5068
5455
  } & CallSessionParticipantLeftEvent) | ({
5069
5456
  type: 'call.session_started';
5070
5457
  } & CallSessionStartedEvent) | ({
5458
+ type: 'call.transcription_failed';
5459
+ } & CallTranscriptionFailedEvent) | ({
5460
+ type: 'call.transcription_ready';
5461
+ } & CallTranscriptionReadyEvent) | ({
5462
+ type: 'call.transcription_started';
5463
+ } & CallTranscriptionStartedEvent) | ({
5464
+ type: 'call.transcription_stopped';
5465
+ } & CallTranscriptionStoppedEvent) | ({
5071
5466
  type: 'call.unblocked_user';
5072
5467
  } & UnblockedUserEvent) | ({
5073
5468
  type: 'call.updated';
@@ -5082,6 +5477,43 @@ export type VideoEvent = ({
5082
5477
  } & CustomVideoEvent) | ({
5083
5478
  type: 'health.check';
5084
5479
  } & HealthCheckEvent);
5480
+ /**
5481
+ *
5482
+ * @export
5483
+ * @interface VideoFeedbackRequest
5484
+ */
5485
+ export interface VideoFeedbackRequest {
5486
+ /**
5487
+ *
5488
+ * @type {boolean}
5489
+ * @memberof VideoFeedbackRequest
5490
+ */
5491
+ blurry?: boolean;
5492
+ /**
5493
+ *
5494
+ * @type {boolean}
5495
+ * @memberof VideoFeedbackRequest
5496
+ */
5497
+ camera_not_working?: boolean;
5498
+ /**
5499
+ *
5500
+ * @type {boolean}
5501
+ * @memberof VideoFeedbackRequest
5502
+ */
5503
+ could_not_see_others?: boolean;
5504
+ /**
5505
+ *
5506
+ * @type {boolean}
5507
+ * @memberof VideoFeedbackRequest
5508
+ */
5509
+ freezing?: boolean;
5510
+ /**
5511
+ *
5512
+ * @type {boolean}
5513
+ * @memberof VideoFeedbackRequest
5514
+ */
5515
+ video_audio_out_of_sync?: boolean;
5516
+ }
5085
5517
  /**
5086
5518
  *
5087
5519
  * @export
@@ -1,3 +1,4 @@
1
+ /// <reference types="ws" />
1
2
  import WebSocket from 'isomorphic-ws';
2
3
  import { DispatchableMessage, SfuEventKinds } from './Dispatcher';
3
4
  export declare const createWebSocketSignalChannel: (opts: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stream-io/video-client",
3
- "version": "0.6.7",
3
+ "version": "0.6.9",
4
4
  "packageManager": "yarn@3.2.4",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.es.js",
@@ -44,8 +44,8 @@
44
44
  },
45
45
  "devDependencies": {
46
46
  "@openapitools/openapi-generator-cli": "^2.7.0",
47
- "@rollup/plugin-replace": "^5.0.4",
48
- "@rollup/plugin-typescript": "^11.1.5",
47
+ "@rollup/plugin-replace": "^5.0.5",
48
+ "@rollup/plugin-typescript": "^11.1.6",
49
49
  "@types/jsonwebtoken": "^9.0.3",
50
50
  "@types/sdp-transform": "^2.4.7",
51
51
  "@types/ua-parser-js": "^0.7.37",
@@ -55,7 +55,7 @@
55
55
  "prettier": "^2.8.8",
56
56
  "rimraf": "^5.0.5",
57
57
  "rollup": "^3.29.4",
58
- "typescript": "^5.2.2",
58
+ "typescript": "^5.4.3",
59
59
  "vite": "^4.4.11",
60
60
  "vitest": "^0.34.4",
61
61
  "vitest-mock-extended": "^1.2.1"