@stream-io/node-sdk 0.1.11 → 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.
- package/dist/index.cjs.js +63 -13
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +63 -13
- package/dist/index.es.js.map +1 -1
- package/dist/src/StreamCall.d.ts +2 -2
- package/dist/src/gen/video/apis/DefaultApi.d.ts +21 -6
- package/dist/src/gen/video/apis/ServerSideApi.d.ts +1 -1
- package/dist/src/gen/video/apis/SettingsApi.d.ts +1 -1
- package/dist/src/gen/video/models/index.d.ts +69 -0
- package/dist/src/gen/video/runtime.d.ts +1 -1
- package/package.json +3 -3
- package/src/StreamCall.ts +8 -2
- package/src/StreamClient.ts +6 -2
- package/src/gen/video/apis/DefaultApi.ts +68 -5
- package/src/gen/video/apis/ServerSideApi.ts +1 -1
- package/src/gen/video/apis/SettingsApi.ts +1 -1
- package/src/gen/video/models/index.ts +69 -0
- package/src/gen/video/runtime.ts +1 -1
package/dist/src/StreamCall.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { StreamClient } from './StreamClient';
|
|
2
|
-
import { GetCallRequest, VideoPinRequest, VideoUnpinRequest, VideoBlockUserRequest, VideoGetOrCreateCallRequest, VideoGoLiveRequest, VideoMuteUsersRequest, VideoUnblockUserRequest, VideoUpdateCallRequest, VideoUpdateCallMembersRequest, VideoUpdateUserPermissionsRequest, VideoQueryMembersRequest, VideoStartRecordingRequest } from './gen/video';
|
|
2
|
+
import { GetCallRequest, VideoPinRequest, VideoUnpinRequest, VideoBlockUserRequest, VideoGetOrCreateCallRequest, VideoGoLiveRequest, VideoMuteUsersRequest, VideoUnblockUserRequest, VideoUpdateCallRequest, VideoUpdateCallMembersRequest, VideoUpdateUserPermissionsRequest, VideoQueryMembersRequest, VideoStartRecordingRequest, VideoStartTranscriptionRequest } from './gen/video';
|
|
3
3
|
import { OmitTypeId } from './types';
|
|
4
4
|
export declare class StreamCall {
|
|
5
5
|
private readonly streamClient;
|
|
@@ -20,7 +20,7 @@ export declare class StreamCall {
|
|
|
20
20
|
sendCustomEvent: (event: Record<string, any>) => Promise<import("./gen/video").VideoSendEventResponse>;
|
|
21
21
|
startHLSBroadcasting: () => Promise<import("./gen/video").VideoStartHLSBroadcastingResponse>;
|
|
22
22
|
startRecording: (request?: VideoStartRecordingRequest) => Promise<import("./gen/video").VideoStartRecordingResponse>;
|
|
23
|
-
startTranscription: () => Promise<import("./gen/video").VideoStartTranscriptionResponse>;
|
|
23
|
+
startTranscription: (videoStartTranscriptionRequest?: VideoStartTranscriptionRequest) => Promise<import("./gen/video").VideoStartTranscriptionResponse>;
|
|
24
24
|
stopHLSBroadcasting: () => Promise<import("./gen/video").VideoStopHLSBroadcastingResponse>;
|
|
25
25
|
stopLive: () => Promise<import("./gen/video").VideoStopLiveResponse>;
|
|
26
26
|
stopRecording: () => Promise<import("./gen/video").VideoStopRecordingResponse>;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Stream API
|
|
3
3
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document:
|
|
5
|
+
* The version of the OpenAPI document: v100.4.3
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { VideoBlockUserRequest, VideoBlockUserResponse, VideoCreateDeviceRequest, VideoCreateGuestRequest, VideoCreateGuestResponse, VideoEndCallResponse, VideoGetCallResponse, VideoGetEdgesResponse, VideoGetOrCreateCallRequest, VideoGetOrCreateCallResponse, VideoGoLiveRequest, VideoGoLiveResponse, VideoListDevicesResponse, VideoListRecordingsResponse, VideoMuteUsersRequest, VideoMuteUsersResponse, VideoPinRequest, VideoPinResponse, VideoQueryCallsRequest, VideoQueryCallsResponse, VideoQueryMembersRequest, VideoQueryMembersResponse, VideoResponse, VideoSendEventRequest, VideoSendEventResponse, VideoStartHLSBroadcastingResponse, VideoStartRecordingRequest, VideoStartRecordingResponse, VideoStartTranscriptionResponse, VideoStopHLSBroadcastingResponse, VideoStopLiveResponse, VideoStopRecordingResponse, VideoStopTranscriptionResponse, VideoUnblockUserRequest, VideoUnblockUserResponse, VideoUnpinRequest, VideoUnpinResponse, VideoUpdateCallMembersRequest, VideoUpdateCallMembersResponse, VideoUpdateCallRequest, VideoUpdateCallResponse, VideoUpdateUserPermissionsRequest, VideoUpdateUserPermissionsResponse, VideoWSAuthMessageRequest } from '../models';
|
|
13
|
+
import type { VideoBlockUserRequest, VideoBlockUserResponse, VideoCreateDeviceRequest, VideoCreateGuestRequest, VideoCreateGuestResponse, VideoEndCallResponse, VideoGetCallResponse, VideoGetEdgesResponse, VideoGetOrCreateCallRequest, VideoGetOrCreateCallResponse, VideoGoLiveRequest, VideoGoLiveResponse, VideoListDevicesResponse, VideoListRecordingsResponse, VideoListTranscriptionsResponse, VideoMuteUsersRequest, VideoMuteUsersResponse, VideoPinRequest, VideoPinResponse, VideoQueryCallsRequest, VideoQueryCallsResponse, VideoQueryMembersRequest, VideoQueryMembersResponse, VideoResponse, VideoSendEventRequest, VideoSendEventResponse, VideoStartHLSBroadcastingResponse, VideoStartRecordingRequest, VideoStartRecordingResponse, VideoStartTranscriptionRequest, VideoStartTranscriptionResponse, VideoStopHLSBroadcastingResponse, VideoStopLiveResponse, VideoStopRecordingResponse, VideoStopTranscriptionResponse, VideoUnblockUserRequest, VideoUnblockUserResponse, VideoUnpinRequest, VideoUnpinResponse, VideoUpdateCallMembersRequest, VideoUpdateCallMembersResponse, VideoUpdateCallRequest, VideoUpdateCallResponse, VideoUpdateUserPermissionsRequest, VideoUpdateUserPermissionsResponse, VideoWSAuthMessageRequest } from '../models';
|
|
14
14
|
export interface BlockUserRequest {
|
|
15
15
|
type: string;
|
|
16
16
|
id: string;
|
|
@@ -56,6 +56,10 @@ export interface ListRecordingsRequest {
|
|
|
56
56
|
type: string;
|
|
57
57
|
id: string;
|
|
58
58
|
}
|
|
59
|
+
export interface ListTranscriptionsRequest {
|
|
60
|
+
type: string;
|
|
61
|
+
id: string;
|
|
62
|
+
}
|
|
59
63
|
export interface MuteUsersRequest {
|
|
60
64
|
type: string;
|
|
61
65
|
id: string;
|
|
@@ -85,6 +89,7 @@ export interface StartRecordingRequest {
|
|
|
85
89
|
export interface StartTranscriptionRequest {
|
|
86
90
|
type: string;
|
|
87
91
|
id: string;
|
|
92
|
+
videoStartTranscriptionRequest: VideoStartTranscriptionRequest | null;
|
|
88
93
|
}
|
|
89
94
|
export interface StopHLSBroadcastingRequest {
|
|
90
95
|
type: string;
|
|
@@ -249,6 +254,16 @@ export declare class DefaultApi extends runtime.BaseAPI {
|
|
|
249
254
|
* List recordings
|
|
250
255
|
*/
|
|
251
256
|
listRecordings(requestParameters: ListRecordingsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VideoListRecordingsResponse>;
|
|
257
|
+
/**
|
|
258
|
+
* Lists transcriptions Required permissions: - ListTranscriptions
|
|
259
|
+
* List transcriptions
|
|
260
|
+
*/
|
|
261
|
+
listTranscriptionsRaw(requestParameters: ListTranscriptionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VideoListTranscriptionsResponse>>;
|
|
262
|
+
/**
|
|
263
|
+
* Lists transcriptions Required permissions: - ListTranscriptions
|
|
264
|
+
* List transcriptions
|
|
265
|
+
*/
|
|
266
|
+
listTranscriptions(requestParameters: ListTranscriptionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VideoListTranscriptionsResponse>;
|
|
252
267
|
/**
|
|
253
268
|
* Mutes users in a call Required permissions: - MuteUsers
|
|
254
269
|
* Mute users
|
|
@@ -300,12 +315,12 @@ export declare class DefaultApi extends runtime.BaseAPI {
|
|
|
300
315
|
*/
|
|
301
316
|
startHLSBroadcasting(requestParameters: StartHLSBroadcastingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VideoStartHLSBroadcastingResponse>;
|
|
302
317
|
/**
|
|
303
|
-
* Starts recording Sends events: - call.recording_started Required permissions: -
|
|
318
|
+
* Starts recording Sends events: - call.recording_started Required permissions: - StartRecording
|
|
304
319
|
* Start recording
|
|
305
320
|
*/
|
|
306
321
|
startRecordingRaw(requestParameters: StartRecordingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VideoStartRecordingResponse>>;
|
|
307
322
|
/**
|
|
308
|
-
* Starts recording Sends events: - call.recording_started Required permissions: -
|
|
323
|
+
* Starts recording Sends events: - call.recording_started Required permissions: - StartRecording
|
|
309
324
|
* Start recording
|
|
310
325
|
*/
|
|
311
326
|
startRecording(requestParameters: StartRecordingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VideoStartRecordingResponse>;
|
|
@@ -350,12 +365,12 @@ export declare class DefaultApi extends runtime.BaseAPI {
|
|
|
350
365
|
*/
|
|
351
366
|
stopRecording(requestParameters: StopRecordingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VideoStopRecordingResponse>;
|
|
352
367
|
/**
|
|
353
|
-
* Stops transcription Required permissions: - StopTranscription
|
|
368
|
+
* Stops transcription Sends events: - call.transcription_stopped Required permissions: - StopTranscription
|
|
354
369
|
* Stop transcription
|
|
355
370
|
*/
|
|
356
371
|
stopTranscriptionRaw(requestParameters: StopTranscriptionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VideoStopTranscriptionResponse>>;
|
|
357
372
|
/**
|
|
358
|
-
* Stops transcription Required permissions: - StopTranscription
|
|
373
|
+
* Stops transcription Sends events: - call.transcription_stopped Required permissions: - StopTranscription
|
|
359
374
|
* Stop transcription
|
|
360
375
|
*/
|
|
361
376
|
stopTranscription(requestParameters: StopTranscriptionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VideoStopTranscriptionResponse>;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Stream API
|
|
3
3
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document:
|
|
5
|
+
* The version of the OpenAPI document: v100.4.3
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Stream API
|
|
3
3
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document:
|
|
5
|
+
* The version of the OpenAPI document: v100.4.3
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* 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
|
|
@@ -1660,6 +1691,12 @@ export interface VideoGoLiveRequest {
|
|
|
1660
1691
|
* @memberof VideoGoLiveRequest
|
|
1661
1692
|
*/
|
|
1662
1693
|
start_transcription?: boolean;
|
|
1694
|
+
/**
|
|
1695
|
+
*
|
|
1696
|
+
* @type {string}
|
|
1697
|
+
* @memberof VideoGoLiveRequest
|
|
1698
|
+
*/
|
|
1699
|
+
transcription_storage_name?: string;
|
|
1663
1700
|
}
|
|
1664
1701
|
/**
|
|
1665
1702
|
*
|
|
@@ -1906,6 +1943,25 @@ export interface VideoListRecordingsResponse {
|
|
|
1906
1943
|
*/
|
|
1907
1944
|
recordings: Array<VideoCallRecording>;
|
|
1908
1945
|
}
|
|
1946
|
+
/**
|
|
1947
|
+
*
|
|
1948
|
+
* @export
|
|
1949
|
+
* @interface VideoListTranscriptionsResponse
|
|
1950
|
+
*/
|
|
1951
|
+
export interface VideoListTranscriptionsResponse {
|
|
1952
|
+
/**
|
|
1953
|
+
*
|
|
1954
|
+
* @type {string}
|
|
1955
|
+
* @memberof VideoListTranscriptionsResponse
|
|
1956
|
+
*/
|
|
1957
|
+
duration: string;
|
|
1958
|
+
/**
|
|
1959
|
+
*
|
|
1960
|
+
* @type {Array<VideoCallTranscription>}
|
|
1961
|
+
* @memberof VideoListTranscriptionsResponse
|
|
1962
|
+
*/
|
|
1963
|
+
transcriptions: Array<VideoCallTranscription>;
|
|
1964
|
+
}
|
|
1909
1965
|
/**
|
|
1910
1966
|
*
|
|
1911
1967
|
* @export
|
|
@@ -2626,6 +2682,19 @@ export interface VideoStartRecordingResponse {
|
|
|
2626
2682
|
*/
|
|
2627
2683
|
duration: string;
|
|
2628
2684
|
}
|
|
2685
|
+
/**
|
|
2686
|
+
*
|
|
2687
|
+
* @export
|
|
2688
|
+
* @interface VideoStartTranscriptionRequest
|
|
2689
|
+
*/
|
|
2690
|
+
export interface VideoStartTranscriptionRequest {
|
|
2691
|
+
/**
|
|
2692
|
+
*
|
|
2693
|
+
* @type {string}
|
|
2694
|
+
* @memberof VideoStartTranscriptionRequest
|
|
2695
|
+
*/
|
|
2696
|
+
transcription_external_storage?: string;
|
|
2697
|
+
}
|
|
2629
2698
|
/**
|
|
2630
2699
|
*
|
|
2631
2700
|
* @export
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Stream API
|
|
3
3
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document:
|
|
5
|
+
* The version of the OpenAPI document: v100.4.3
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stream-io/node-sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.12",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.es.js",
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
"test:bun": "bun run vitest",
|
|
19
19
|
"start": "rollup -w -c",
|
|
20
20
|
"build": "rm -rf dist && rollup -c",
|
|
21
|
-
"generate:open-api": "./generate-openapi.sh protocol",
|
|
22
|
-
"generate:open-api:dev": "./generate-openapi.sh chat",
|
|
21
|
+
"generate:open-api": "./generate-openapi.sh protocol $PRODUCT",
|
|
22
|
+
"generate:open-api:dev": "./generate-openapi.sh chat $PRODUCT",
|
|
23
23
|
"lint": "eslint **/*.ts",
|
|
24
24
|
"lint:fix": "eslint --fix **/*.ts",
|
|
25
25
|
"prettier:fix": "prettier . --write"
|
package/src/StreamCall.ts
CHANGED
|
@@ -14,6 +14,7 @@ import {
|
|
|
14
14
|
VideoUpdateUserPermissionsRequest,
|
|
15
15
|
VideoQueryMembersRequest,
|
|
16
16
|
VideoStartRecordingRequest,
|
|
17
|
+
VideoStartTranscriptionRequest,
|
|
17
18
|
} from './gen/video';
|
|
18
19
|
import { OmitTypeId } from './types';
|
|
19
20
|
|
|
@@ -101,8 +102,13 @@ export class StreamCall {
|
|
|
101
102
|
});
|
|
102
103
|
};
|
|
103
104
|
|
|
104
|
-
startTranscription = (
|
|
105
|
-
|
|
105
|
+
startTranscription = (
|
|
106
|
+
videoStartTranscriptionRequest: VideoStartTranscriptionRequest = {},
|
|
107
|
+
) => {
|
|
108
|
+
return this.apiClient.startTranscription({
|
|
109
|
+
...this.baseRequest,
|
|
110
|
+
videoStartTranscriptionRequest,
|
|
111
|
+
});
|
|
106
112
|
};
|
|
107
113
|
|
|
108
114
|
stopHLSBroadcasting = () => {
|
package/src/StreamClient.ts
CHANGED
|
@@ -92,16 +92,20 @@ export class StreamClient {
|
|
|
92
92
|
readonly config?: string | StreamClientOptions,
|
|
93
93
|
) {
|
|
94
94
|
this.token = JWTServerToken(this.secret);
|
|
95
|
-
this.video = new StreamVideoClient(this);
|
|
96
|
-
this.chat = new StreamChatClient(this);
|
|
97
95
|
|
|
98
96
|
if (typeof config === 'string') {
|
|
99
97
|
this.options.basePath = config;
|
|
100
98
|
this.options.timeout = StreamClient.DEFAULT_TIMEOUT;
|
|
101
99
|
} else {
|
|
100
|
+
if (config) {
|
|
101
|
+
this.options = config;
|
|
102
|
+
}
|
|
102
103
|
this.options.timeout = config?.timeout ?? StreamClient.DEFAULT_TIMEOUT;
|
|
103
104
|
}
|
|
104
105
|
|
|
106
|
+
this.video = new StreamVideoClient(this);
|
|
107
|
+
this.chat = new StreamChatClient(this);
|
|
108
|
+
|
|
105
109
|
const chatConfiguration = this.getConfiguration();
|
|
106
110
|
/** @ts-expect-error */
|
|
107
111
|
this.usersApi = new UsersApi(chatConfiguration);
|
|
@@ -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:
|
|
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: -
|
|
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: -
|
|
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:
|
|
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:
|
|
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
|
package/src/gen/video/runtime.ts
CHANGED
|
@@ -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:
|
|
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).
|