44 * Stream API
55 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
66 *
7- * The version of the OpenAPI document: v98.0.2-ingress-test .3
7+ * The version of the OpenAPI document: v100.4 .3
88 *
99 *
1010 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -30,6 +30,7 @@ import type {
3030 VideoGoLiveResponse ,
3131 VideoListDevicesResponse ,
3232 VideoListRecordingsResponse ,
33+ VideoListTranscriptionsResponse ,
3334 VideoMuteUsersRequest ,
3435 VideoMuteUsersResponse ,
3536 VideoPinRequest ,
@@ -44,6 +45,7 @@ import type {
4445 VideoStartHLSBroadcastingResponse ,
4546 VideoStartRecordingRequest ,
4647 VideoStartRecordingResponse ,
48+ VideoStartTranscriptionRequest ,
4749 VideoStartTranscriptionResponse ,
4850 VideoStopHLSBroadcastingResponse ,
4951 VideoStopLiveResponse ,
@@ -117,6 +119,11 @@ export interface ListRecordingsRequest {
117119 id : string ;
118120}
119121
122+ export interface ListTranscriptionsRequest {
123+ type : string ;
124+ id : string ;
125+ }
126+
120127export interface MuteUsersRequest {
121128 type : string ;
122129 id : string ;
@@ -152,6 +159,7 @@ export interface StartRecordingRequest {
152159export interface StartTranscriptionRequest {
153160 type : string ;
154161 id : string ;
162+ videoStartTranscriptionRequest : VideoStartTranscriptionRequest | null ;
155163}
156164
157165export interface StopHLSBroadcastingRequest {
@@ -774,6 +782,54 @@ export class DefaultApi extends runtime.BaseAPI {
774782 return await response . value ( ) ;
775783 }
776784
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+
777833 /**
778834 * Mutes users in a call Required permissions: - MuteUsers
779835 * Mute users
@@ -1031,7 +1087,7 @@ export class DefaultApi extends runtime.BaseAPI {
10311087 }
10321088
10331089 /**
1034- * Starts recording Sends events: - call.recording_started Required permissions: - StopRecording
1090+ * Starts recording Sends events: - call.recording_started Required permissions: - StartRecording
10351091 * Start recording
10361092 */
10371093 async startRecordingRaw ( requestParameters : StartRecordingRequest , initOverrides ?: RequestInit | runtime . InitOverrideFunction ) : Promise < runtime . ApiResponse < VideoStartRecordingResponse > > {
@@ -1077,7 +1133,7 @@ export class DefaultApi extends runtime.BaseAPI {
10771133 }
10781134
10791135 /**
1080- * Starts recording Sends events: - call.recording_started Required permissions: - StopRecording
1136+ * Starts recording Sends events: - call.recording_started Required permissions: - StartRecording
10811137 * Start recording
10821138 */
10831139 async startRecording ( requestParameters : StartRecordingRequest , initOverrides ?: RequestInit | runtime . InitOverrideFunction ) : Promise < VideoStartRecordingResponse > {
@@ -1098,10 +1154,16 @@ export class DefaultApi extends runtime.BaseAPI {
10981154 throw new runtime . RequiredError ( 'id' , 'Required parameter requestParameters.id was null or undefined when calling startTranscription.' ) ;
10991155 }
11001156
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+
11011161 const queryParameters : any = { } ;
11021162
11031163 const headerParameters : runtime . HTTPHeaders = { } ;
11041164
1165+ headerParameters [ 'Content-Type' ] = 'application/json' ;
1166+
11051167 if ( this . configuration && this . configuration . apiKey ) {
11061168 headerParameters [ "Stream-Auth-Type" ] = this . configuration . apiKey ( "Stream-Auth-Type" ) ; // stream-auth-type authentication
11071169 }
@@ -1119,6 +1181,7 @@ export class DefaultApi extends runtime.BaseAPI {
11191181 method : 'POST' ,
11201182 headers : headerParameters ,
11211183 query : queryParameters ,
1184+ body : requestParameters . videoStartTranscriptionRequest ,
11221185 } , initOverrides ) ;
11231186
11241187 return new runtime . JSONApiResponse ( response ) ;
@@ -1278,7 +1341,7 @@ export class DefaultApi extends runtime.BaseAPI {
12781341 }
12791342
12801343 /**
1281- * Stops transcription Required permissions: - StopTranscription
1344+ * Stops transcription Sends events: - call.transcription_stopped Required permissions: - StopTranscription
12821345 * Stop transcription
12831346 */
12841347 async stopTranscriptionRaw ( requestParameters : StopTranscriptionRequest , initOverrides ?: RequestInit | runtime . InitOverrideFunction ) : Promise < runtime . ApiResponse < VideoStopTranscriptionResponse > > {
@@ -1317,7 +1380,7 @@ export class DefaultApi extends runtime.BaseAPI {
13171380 }
13181381
13191382 /**
1320- * Stops transcription Required permissions: - StopTranscription
1383+ * Stops transcription Sends events: - call.transcription_stopped Required permissions: - StopTranscription
13211384 * Stop transcription
13221385 */
13231386 async stopTranscription ( requestParameters : StopTranscriptionRequest , initOverrides ?: RequestInit | runtime . InitOverrideFunction ) : Promise < VideoStopTranscriptionResponse > {
0 commit comments