@stream-io/node-sdk 0.1.10 → 0.1.12

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.
@@ -4,7 +4,7 @@
4
4
  * Stream API
5
5
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
6
  *
7
- * The version of the OpenAPI document: v98.0.2-ingress-test.3
7
+ * The version of the OpenAPI document: v100.4.3
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -30,6 +30,7 @@ import type {
30
30
  VideoGoLiveResponse,
31
31
  VideoListDevicesResponse,
32
32
  VideoListRecordingsResponse,
33
+ VideoListTranscriptionsResponse,
33
34
  VideoMuteUsersRequest,
34
35
  VideoMuteUsersResponse,
35
36
  VideoPinRequest,
@@ -44,6 +45,7 @@ import type {
44
45
  VideoStartHLSBroadcastingResponse,
45
46
  VideoStartRecordingRequest,
46
47
  VideoStartRecordingResponse,
48
+ VideoStartTranscriptionRequest,
47
49
  VideoStartTranscriptionResponse,
48
50
  VideoStopHLSBroadcastingResponse,
49
51
  VideoStopLiveResponse,
@@ -117,6 +119,11 @@ export interface ListRecordingsRequest {
117
119
  id: string;
118
120
  }
119
121
 
122
+ export interface ListTranscriptionsRequest {
123
+ type: string;
124
+ id: string;
125
+ }
126
+
120
127
  export interface MuteUsersRequest {
121
128
  type: string;
122
129
  id: string;
@@ -152,6 +159,7 @@ export interface StartRecordingRequest {
152
159
  export interface StartTranscriptionRequest {
153
160
  type: string;
154
161
  id: string;
162
+ videoStartTranscriptionRequest: VideoStartTranscriptionRequest | null;
155
163
  }
156
164
 
157
165
  export interface StopHLSBroadcastingRequest {
@@ -774,6 +782,54 @@ export class DefaultApi extends runtime.BaseAPI {
774
782
  return await response.value();
775
783
  }
776
784
 
785
+ /**
786
+ * Lists transcriptions Required permissions: - ListTranscriptions
787
+ * List transcriptions
788
+ */
789
+ async listTranscriptionsRaw(requestParameters: ListTranscriptionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VideoListTranscriptionsResponse>> {
790
+ if (requestParameters.type === null || requestParameters.type === undefined) {
791
+ throw new runtime.RequiredError('type','Required parameter requestParameters.type was null or undefined when calling listTranscriptions.');
792
+ }
793
+
794
+ if (requestParameters.id === null || requestParameters.id === undefined) {
795
+ throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling listTranscriptions.');
796
+ }
797
+
798
+ const queryParameters: any = {};
799
+
800
+ const headerParameters: runtime.HTTPHeaders = {};
801
+
802
+ if (this.configuration && this.configuration.apiKey) {
803
+ headerParameters["Stream-Auth-Type"] = this.configuration.apiKey("Stream-Auth-Type"); // stream-auth-type authentication
804
+ }
805
+
806
+ if (this.configuration && this.configuration.apiKey) {
807
+ queryParameters["api_key"] = this.configuration.apiKey("api_key"); // api_key authentication
808
+ }
809
+
810
+ if (this.configuration && this.configuration.apiKey) {
811
+ headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // JWT authentication
812
+ }
813
+
814
+ const response = await this.request({
815
+ path: `/video/call/{type}/{id}/transcriptions`.replace(`{${"type"}}`, encodeURIComponent(String(requestParameters.type))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
816
+ method: 'GET',
817
+ headers: headerParameters,
818
+ query: queryParameters,
819
+ }, initOverrides);
820
+
821
+ return new runtime.JSONApiResponse(response);
822
+ }
823
+
824
+ /**
825
+ * Lists transcriptions Required permissions: - ListTranscriptions
826
+ * List transcriptions
827
+ */
828
+ async listTranscriptions(requestParameters: ListTranscriptionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VideoListTranscriptionsResponse> {
829
+ const response = await this.listTranscriptionsRaw(requestParameters, initOverrides);
830
+ return await response.value();
831
+ }
832
+
777
833
  /**
778
834
  * Mutes users in a call Required permissions: - MuteUsers
779
835
  * Mute users
@@ -1031,7 +1087,7 @@ export class DefaultApi extends runtime.BaseAPI {
1031
1087
  }
1032
1088
 
1033
1089
  /**
1034
- * Starts recording Sends events: - call.recording_started Required permissions: - StopRecording
1090
+ * Starts recording Sends events: - call.recording_started Required permissions: - StartRecording
1035
1091
  * Start recording
1036
1092
  */
1037
1093
  async startRecordingRaw(requestParameters: StartRecordingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VideoStartRecordingResponse>> {
@@ -1077,7 +1133,7 @@ export class DefaultApi extends runtime.BaseAPI {
1077
1133
  }
1078
1134
 
1079
1135
  /**
1080
- * Starts recording Sends events: - call.recording_started Required permissions: - StopRecording
1136
+ * Starts recording Sends events: - call.recording_started Required permissions: - StartRecording
1081
1137
  * Start recording
1082
1138
  */
1083
1139
  async startRecording(requestParameters: StartRecordingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VideoStartRecordingResponse> {
@@ -1098,10 +1154,16 @@ export class DefaultApi extends runtime.BaseAPI {
1098
1154
  throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling startTranscription.');
1099
1155
  }
1100
1156
 
1157
+ if (requestParameters.videoStartTranscriptionRequest === null || requestParameters.videoStartTranscriptionRequest === undefined) {
1158
+ throw new runtime.RequiredError('videoStartTranscriptionRequest','Required parameter requestParameters.videoStartTranscriptionRequest was null or undefined when calling startTranscription.');
1159
+ }
1160
+
1101
1161
  const queryParameters: any = {};
1102
1162
 
1103
1163
  const headerParameters: runtime.HTTPHeaders = {};
1104
1164
 
1165
+ headerParameters['Content-Type'] = 'application/json';
1166
+
1105
1167
  if (this.configuration && this.configuration.apiKey) {
1106
1168
  headerParameters["Stream-Auth-Type"] = this.configuration.apiKey("Stream-Auth-Type"); // stream-auth-type authentication
1107
1169
  }
@@ -1119,6 +1181,7 @@ export class DefaultApi extends runtime.BaseAPI {
1119
1181
  method: 'POST',
1120
1182
  headers: headerParameters,
1121
1183
  query: queryParameters,
1184
+ body: requestParameters.videoStartTranscriptionRequest,
1122
1185
  }, initOverrides);
1123
1186
 
1124
1187
  return new runtime.JSONApiResponse(response);
@@ -1278,7 +1341,7 @@ export class DefaultApi extends runtime.BaseAPI {
1278
1341
  }
1279
1342
 
1280
1343
  /**
1281
- * Stops transcription Required permissions: - StopTranscription
1344
+ * Stops transcription Sends events: - call.transcription_stopped Required permissions: - StopTranscription
1282
1345
  * Stop transcription
1283
1346
  */
1284
1347
  async stopTranscriptionRaw(requestParameters: StopTranscriptionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VideoStopTranscriptionResponse>> {
@@ -1317,7 +1380,7 @@ export class DefaultApi extends runtime.BaseAPI {
1317
1380
  }
1318
1381
 
1319
1382
  /**
1320
- * Stops transcription Required permissions: - StopTranscription
1383
+ * Stops transcription Sends events: - call.transcription_stopped Required permissions: - StopTranscription
1321
1384
  * Stop transcription
1322
1385
  */
1323
1386
  async stopTranscription(requestParameters: StopTranscriptionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VideoStopTranscriptionResponse> {
@@ -4,7 +4,7 @@
4
4
  * Stream API
5
5
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
6
  *
7
- * The version of the OpenAPI document: v98.0.2-ingress-test.3
7
+ * The version of the OpenAPI document: v100.4.3
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Stream API
5
5
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
6
  *
7
- * The version of the OpenAPI document: v98.0.2-ingress-test.3
7
+ * The version of the OpenAPI document: v100.4.3
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -793,6 +793,37 @@ export interface VideoCallStateResponseFields {
793
793
  */
794
794
  own_capabilities: Array<VideoOwnCapability>;
795
795
  }
796
+ /**
797
+ * CallTranscription represents a transcription of a call.
798
+ * @export
799
+ * @interface VideoCallTranscription
800
+ */
801
+ export interface VideoCallTranscription {
802
+ /**
803
+ *
804
+ * @type {string}
805
+ * @memberof VideoCallTranscription
806
+ */
807
+ end_time: string;
808
+ /**
809
+ *
810
+ * @type {string}
811
+ * @memberof VideoCallTranscription
812
+ */
813
+ filename: string;
814
+ /**
815
+ *
816
+ * @type {string}
817
+ * @memberof VideoCallTranscription
818
+ */
819
+ start_time: string;
820
+ /**
821
+ *
822
+ * @type {string}
823
+ * @memberof VideoCallTranscription
824
+ */
825
+ url: string;
826
+ }
796
827
  /**
797
828
  *
798
829
  * @export
@@ -1655,6 +1686,12 @@ export interface VideoGoLiveRequest {
1655
1686
  * @memberof VideoGoLiveRequest
1656
1687
  */
1657
1688
  start_transcription?: boolean;
1689
+ /**
1690
+ *
1691
+ * @type {string}
1692
+ * @memberof VideoGoLiveRequest
1693
+ */
1694
+ transcription_storage_name?: string;
1658
1695
  }
1659
1696
  /**
1660
1697
  *
@@ -1903,6 +1940,25 @@ export interface VideoListRecordingsResponse {
1903
1940
  */
1904
1941
  recordings: Array<VideoCallRecording>;
1905
1942
  }
1943
+ /**
1944
+ *
1945
+ * @export
1946
+ * @interface VideoListTranscriptionsResponse
1947
+ */
1948
+ export interface VideoListTranscriptionsResponse {
1949
+ /**
1950
+ *
1951
+ * @type {string}
1952
+ * @memberof VideoListTranscriptionsResponse
1953
+ */
1954
+ duration: string;
1955
+ /**
1956
+ *
1957
+ * @type {Array<VideoCallTranscription>}
1958
+ * @memberof VideoListTranscriptionsResponse
1959
+ */
1960
+ transcriptions: Array<VideoCallTranscription>;
1961
+ }
1906
1962
  /**
1907
1963
  *
1908
1964
  * @export
@@ -2629,6 +2685,19 @@ export interface VideoStartRecordingResponse {
2629
2685
  */
2630
2686
  duration: string;
2631
2687
  }
2688
+ /**
2689
+ *
2690
+ * @export
2691
+ * @interface VideoStartTranscriptionRequest
2692
+ */
2693
+ export interface VideoStartTranscriptionRequest {
2694
+ /**
2695
+ *
2696
+ * @type {string}
2697
+ * @memberof VideoStartTranscriptionRequest
2698
+ */
2699
+ transcription_external_storage?: string;
2700
+ }
2632
2701
  /**
2633
2702
  *
2634
2703
  * @export
@@ -4,7 +4,7 @@
4
4
  * Stream API
5
5
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
6
  *
7
- * The version of the OpenAPI document: v98.0.2-ingress-test.3
7
+ * The version of the OpenAPI document: v100.4.3
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).