@stream-io/node-sdk 0.3.1 → 0.4.1
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 +4136 -9282
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +2 -3
- package/dist/index.es.js +4136 -9206
- package/dist/index.es.js.map +1 -1
- package/dist/src/BaseApi.d.ts +10 -0
- package/dist/src/StreamCall.d.ts +5 -37
- package/dist/src/StreamChannel.d.ts +7 -34
- package/dist/src/StreamChatClient.d.ts +2 -25
- package/dist/src/StreamClient.d.ts +51 -59
- package/dist/src/StreamModerationClient.d.ts +3 -0
- package/dist/src/StreamVideoClient.d.ts +2 -18
- package/dist/src/gen/chat/ChannelApi.d.ts +33 -0
- package/dist/src/gen/chat/ChatApi.d.ts +241 -0
- package/dist/src/gen/common/CommonApi.d.ts +99 -0
- package/dist/src/gen/model-decoders/index.d.ts +3 -0
- package/dist/src/gen/models/index.d.ts +3881 -0
- package/dist/src/gen/moderation/ModerationApi.d.ts +38 -0
- package/dist/src/gen/video/CallApi.d.ts +56 -0
- package/dist/src/gen/video/VideoApi.d.ts +151 -0
- package/dist/src/types.d.ts +25 -0
- package/dist/src/utils/create-token.d.ts +2 -0
- package/dist/src/utils/rate-limit.d.ts +2 -0
- package/index.ts +2 -3
- package/package.json +5 -4
- package/src/BaseApi.ts +115 -0
- package/src/StreamCall.ts +9 -199
- package/src/StreamChannel.ts +23 -246
- package/src/StreamChatClient.ts +3 -122
- package/src/StreamClient.ts +101 -345
- package/src/StreamModerationClient.ts +3 -0
- package/src/StreamVideoClient.ts +3 -95
- package/src/gen/chat/ChannelApi.ts +270 -0
- package/src/gen/chat/ChatApi.ts +1857 -0
- package/src/gen/common/CommonApi.ts +1004 -0
- package/src/gen/model-decoders/index.ts +1897 -0
- package/src/gen/models/index.ts +6794 -0
- package/src/gen/moderation/ModerationApi.ts +476 -0
- package/src/gen/video/CallApi.ts +309 -0
- package/src/gen/video/VideoApi.ts +1007 -0
- package/src/types.ts +35 -0
- package/src/utils/create-token.ts +6 -1
- package/src/utils/rate-limit.ts +21 -0
- package/dist/src/gen/chat/apis/ProductchatApi.d.ts +0 -1750
- package/dist/src/gen/chat/apis/index.d.ts +0 -1
- package/dist/src/gen/chat/index.d.ts +0 -3
- package/dist/src/gen/chat/models/index.d.ts +0 -14865
- package/dist/src/gen/chat/runtime.d.ts +0 -180
- package/dist/src/gen/video/apis/ProductvideoApi.d.ts +0 -648
- package/dist/src/gen/video/apis/index.d.ts +0 -1
- package/dist/src/gen/video/index.d.ts +0 -3
- package/dist/src/gen/video/models/index.d.ts +0 -5011
- package/dist/src/gen/video/runtime.d.ts +0 -180
- package/src/gen/chat/.openapi-generator/FILES +0 -6
- package/src/gen/chat/.openapi-generator/VERSION +0 -1
- package/src/gen/chat/.openapi-generator-ignore +0 -23
- package/src/gen/chat/apis/ProductchatApi.ts +0 -7007
- package/src/gen/chat/apis/index.ts +0 -3
- package/src/gen/chat/index.ts +0 -5
- package/src/gen/chat/models/index.ts +0 -14766
- package/src/gen/chat/runtime.ts +0 -415
- package/src/gen/video/.openapi-generator/FILES +0 -6
- package/src/gen/video/.openapi-generator/VERSION +0 -1
- package/src/gen/video/.openapi-generator-ignore +0 -23
- package/src/gen/video/apis/ProductvideoApi.ts +0 -2575
- package/src/gen/video/apis/index.ts +0 -3
- package/src/gen/video/index.ts +0 -5
- package/src/gen/video/models/index.ts +0 -5000
- package/src/gen/video/runtime.ts +0 -415
|
@@ -1,2575 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Stream API
|
|
5
|
-
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: v122.3.0
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
import * as runtime from '../runtime';
|
|
17
|
-
import type {
|
|
18
|
-
VideoAPIError,
|
|
19
|
-
VideoBlockUserRequest,
|
|
20
|
-
VideoBlockUserResponse,
|
|
21
|
-
VideoCheckExternalStorageResponse,
|
|
22
|
-
VideoCollectUserFeedbackRequest,
|
|
23
|
-
VideoCollectUserFeedbackResponse,
|
|
24
|
-
VideoCreateCallTypeRequest,
|
|
25
|
-
VideoCreateCallTypeResponse,
|
|
26
|
-
VideoCreateDeviceRequest,
|
|
27
|
-
VideoCreateExternalStorageRequest,
|
|
28
|
-
VideoCreateExternalStorageResponse,
|
|
29
|
-
VideoCreateGuestRequest,
|
|
30
|
-
VideoCreateGuestResponse,
|
|
31
|
-
VideoDeleteCallRequest,
|
|
32
|
-
VideoDeleteCallResponse,
|
|
33
|
-
VideoDeleteExternalStorageResponse,
|
|
34
|
-
VideoDeleteRecordingResponse,
|
|
35
|
-
VideoDeleteTranscriptionResponse,
|
|
36
|
-
VideoEndCallResponse,
|
|
37
|
-
VideoGetCallResponse,
|
|
38
|
-
VideoGetCallStatsResponse,
|
|
39
|
-
VideoGetCallTypeResponse,
|
|
40
|
-
VideoGetEdgesResponse,
|
|
41
|
-
VideoGetOrCreateCallRequest,
|
|
42
|
-
VideoGetOrCreateCallResponse,
|
|
43
|
-
VideoGoLiveRequest,
|
|
44
|
-
VideoGoLiveResponse,
|
|
45
|
-
VideoListCallTypeResponse,
|
|
46
|
-
VideoListDevicesResponse,
|
|
47
|
-
VideoListExternalStorageResponse,
|
|
48
|
-
VideoListRecordingsResponse,
|
|
49
|
-
VideoListTranscriptionsResponse,
|
|
50
|
-
VideoMuteUsersRequest,
|
|
51
|
-
VideoMuteUsersResponse,
|
|
52
|
-
VideoPinRequest,
|
|
53
|
-
VideoPinResponse,
|
|
54
|
-
VideoQueryCallMembersRequest,
|
|
55
|
-
VideoQueryCallMembersResponse,
|
|
56
|
-
VideoQueryCallStatsRequest,
|
|
57
|
-
VideoQueryCallStatsResponse,
|
|
58
|
-
VideoQueryCallsRequest,
|
|
59
|
-
VideoQueryCallsResponse,
|
|
60
|
-
VideoResponse,
|
|
61
|
-
VideoSendCallEventRequest,
|
|
62
|
-
VideoSendCallEventResponse,
|
|
63
|
-
VideoStartHLSBroadcastingResponse,
|
|
64
|
-
VideoStartRecordingRequest,
|
|
65
|
-
VideoStartRecordingResponse,
|
|
66
|
-
VideoStartTranscriptionRequest,
|
|
67
|
-
VideoStartTranscriptionResponse,
|
|
68
|
-
VideoStopHLSBroadcastingResponse,
|
|
69
|
-
VideoStopLiveResponse,
|
|
70
|
-
VideoStopRecordingResponse,
|
|
71
|
-
VideoStopTranscriptionResponse,
|
|
72
|
-
VideoUnblockUserRequest,
|
|
73
|
-
VideoUnblockUserResponse,
|
|
74
|
-
VideoUnpinRequest,
|
|
75
|
-
VideoUnpinResponse,
|
|
76
|
-
VideoUpdateCallMembersRequest,
|
|
77
|
-
VideoUpdateCallMembersResponse,
|
|
78
|
-
VideoUpdateCallRequest,
|
|
79
|
-
VideoUpdateCallResponse,
|
|
80
|
-
VideoUpdateCallTypeRequest,
|
|
81
|
-
VideoUpdateCallTypeResponse,
|
|
82
|
-
VideoUpdateExternalStorageRequest,
|
|
83
|
-
VideoUpdateExternalStorageResponse,
|
|
84
|
-
VideoUpdateUserPermissionsRequest,
|
|
85
|
-
VideoUpdateUserPermissionsResponse,
|
|
86
|
-
} from '../models';
|
|
87
|
-
|
|
88
|
-
export interface BlockUserRequest {
|
|
89
|
-
type: string;
|
|
90
|
-
id: string;
|
|
91
|
-
videoBlockUserRequest: VideoBlockUserRequest | null;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
export interface CheckExternalStorageRequest {
|
|
95
|
-
name: string;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
export interface CollectUserFeedbackRequest {
|
|
99
|
-
type: string;
|
|
100
|
-
id: string;
|
|
101
|
-
session: string;
|
|
102
|
-
videoCollectUserFeedbackRequest: VideoCollectUserFeedbackRequest | null;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
export interface CreateCallTypeRequest {
|
|
106
|
-
videoCreateCallTypeRequest: VideoCreateCallTypeRequest | null;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
export interface CreateDeviceRequest {
|
|
110
|
-
videoCreateDeviceRequest: VideoCreateDeviceRequest | null;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
export interface CreateExternalStorageRequest {
|
|
114
|
-
videoCreateExternalStorageRequest: VideoCreateExternalStorageRequest | null;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
export interface CreateGuestRequest {
|
|
118
|
-
videoCreateGuestRequest: VideoCreateGuestRequest | null;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
export interface DeleteCallRequest {
|
|
122
|
-
type: string;
|
|
123
|
-
id: string;
|
|
124
|
-
videoDeleteCallRequest: VideoDeleteCallRequest | null;
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
export interface DeleteCallTypeRequest {
|
|
128
|
-
name: string;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
export interface DeleteDeviceRequest {
|
|
132
|
-
id: string;
|
|
133
|
-
userId?: string;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
export interface DeleteExternalStorageRequest {
|
|
137
|
-
name: string;
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
export interface DeleteRecordingRequest {
|
|
141
|
-
type: string;
|
|
142
|
-
id: string;
|
|
143
|
-
session: string;
|
|
144
|
-
filename: string;
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
export interface DeleteTranscriptionRequest {
|
|
148
|
-
type: string;
|
|
149
|
-
id: string;
|
|
150
|
-
session: string;
|
|
151
|
-
filename: string;
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
export interface EndCallRequest {
|
|
155
|
-
type: string;
|
|
156
|
-
id: string;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
export interface GetCallRequest {
|
|
160
|
-
type: string;
|
|
161
|
-
id: string;
|
|
162
|
-
membersLimit?: number;
|
|
163
|
-
ring?: boolean;
|
|
164
|
-
notify?: boolean;
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
export interface GetCallStatsRequest {
|
|
168
|
-
type: string;
|
|
169
|
-
id: string;
|
|
170
|
-
session: string;
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
export interface GetCallTypeRequest {
|
|
174
|
-
name: string;
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
export interface GetOrCreateCallRequest {
|
|
178
|
-
type: string;
|
|
179
|
-
id: string;
|
|
180
|
-
videoGetOrCreateCallRequest: VideoGetOrCreateCallRequest | null;
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
export interface GoLiveRequest {
|
|
184
|
-
type: string;
|
|
185
|
-
id: string;
|
|
186
|
-
videoGoLiveRequest: VideoGoLiveRequest | null;
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
export interface ListDevicesRequest {
|
|
190
|
-
userId?: string;
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
export interface ListRecordingsRequest {
|
|
194
|
-
type: string;
|
|
195
|
-
id: string;
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
export interface ListTranscriptionsRequest {
|
|
199
|
-
type: string;
|
|
200
|
-
id: string;
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
export interface MuteUsersRequest {
|
|
204
|
-
type: string;
|
|
205
|
-
id: string;
|
|
206
|
-
videoMuteUsersRequest: VideoMuteUsersRequest | null;
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
export interface QueryCallMembersRequest {
|
|
210
|
-
videoQueryCallMembersRequest: VideoQueryCallMembersRequest | null;
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
export interface QueryCallStatsRequest {
|
|
214
|
-
videoQueryCallStatsRequest: VideoQueryCallStatsRequest | null;
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
export interface QueryCallsRequest {
|
|
218
|
-
videoQueryCallsRequest: VideoQueryCallsRequest | null;
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
export interface SendCallEventRequest {
|
|
222
|
-
type: string;
|
|
223
|
-
id: string;
|
|
224
|
-
videoSendCallEventRequest: VideoSendCallEventRequest | null;
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
export interface StartHLSBroadcastingRequest {
|
|
228
|
-
type: string;
|
|
229
|
-
id: string;
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
export interface StartRecordingRequest {
|
|
233
|
-
type: string;
|
|
234
|
-
id: string;
|
|
235
|
-
videoStartRecordingRequest: VideoStartRecordingRequest | null;
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
export interface StartTranscriptionRequest {
|
|
239
|
-
type: string;
|
|
240
|
-
id: string;
|
|
241
|
-
videoStartTranscriptionRequest: VideoStartTranscriptionRequest | null;
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
export interface StopHLSBroadcastingRequest {
|
|
245
|
-
type: string;
|
|
246
|
-
id: string;
|
|
247
|
-
}
|
|
248
|
-
|
|
249
|
-
export interface StopLiveRequest {
|
|
250
|
-
type: string;
|
|
251
|
-
id: string;
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
export interface StopRecordingRequest {
|
|
255
|
-
type: string;
|
|
256
|
-
id: string;
|
|
257
|
-
}
|
|
258
|
-
|
|
259
|
-
export interface StopTranscriptionRequest {
|
|
260
|
-
type: string;
|
|
261
|
-
id: string;
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
export interface UnblockUserRequest {
|
|
265
|
-
type: string;
|
|
266
|
-
id: string;
|
|
267
|
-
videoUnblockUserRequest: VideoUnblockUserRequest | null;
|
|
268
|
-
}
|
|
269
|
-
|
|
270
|
-
export interface UpdateCallRequest {
|
|
271
|
-
type: string;
|
|
272
|
-
id: string;
|
|
273
|
-
videoUpdateCallRequest: VideoUpdateCallRequest | null;
|
|
274
|
-
}
|
|
275
|
-
|
|
276
|
-
export interface UpdateCallMembersRequest {
|
|
277
|
-
type: string;
|
|
278
|
-
id: string;
|
|
279
|
-
videoUpdateCallMembersRequest: VideoUpdateCallMembersRequest | null;
|
|
280
|
-
}
|
|
281
|
-
|
|
282
|
-
export interface UpdateCallTypeRequest {
|
|
283
|
-
name: string;
|
|
284
|
-
videoUpdateCallTypeRequest: VideoUpdateCallTypeRequest | null;
|
|
285
|
-
}
|
|
286
|
-
|
|
287
|
-
export interface UpdateExternalStorageRequest {
|
|
288
|
-
name: string;
|
|
289
|
-
videoUpdateExternalStorageRequest: VideoUpdateExternalStorageRequest | null;
|
|
290
|
-
}
|
|
291
|
-
|
|
292
|
-
export interface UpdateUserPermissionsRequest {
|
|
293
|
-
type: string;
|
|
294
|
-
id: string;
|
|
295
|
-
videoUpdateUserPermissionsRequest: VideoUpdateUserPermissionsRequest | null;
|
|
296
|
-
}
|
|
297
|
-
|
|
298
|
-
export interface VideoPinOperationRequest {
|
|
299
|
-
type: string;
|
|
300
|
-
id: string;
|
|
301
|
-
videoPinRequest: VideoPinRequest | null;
|
|
302
|
-
}
|
|
303
|
-
|
|
304
|
-
export interface VideoUnpinOperationRequest {
|
|
305
|
-
type: string;
|
|
306
|
-
id: string;
|
|
307
|
-
videoUnpinRequest: VideoUnpinRequest | null;
|
|
308
|
-
}
|
|
309
|
-
|
|
310
|
-
/**
|
|
311
|
-
*
|
|
312
|
-
*/
|
|
313
|
-
export class ProductvideoApi extends runtime.BaseAPI {
|
|
314
|
-
|
|
315
|
-
/**
|
|
316
|
-
* Block a user, preventing them from joining the call until they are unblocked. Sends events: - call.blocked_user Required permissions: - BlockUser
|
|
317
|
-
* Block user on a call
|
|
318
|
-
*/
|
|
319
|
-
async blockUserRaw(requestParameters: BlockUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VideoBlockUserResponse>> {
|
|
320
|
-
if (requestParameters.type === null || requestParameters.type === undefined) {
|
|
321
|
-
throw new runtime.RequiredError('type','Required parameter requestParameters.type was null or undefined when calling blockUser.');
|
|
322
|
-
}
|
|
323
|
-
|
|
324
|
-
if (requestParameters.id === null || requestParameters.id === undefined) {
|
|
325
|
-
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling blockUser.');
|
|
326
|
-
}
|
|
327
|
-
|
|
328
|
-
if (requestParameters.videoBlockUserRequest === null || requestParameters.videoBlockUserRequest === undefined) {
|
|
329
|
-
throw new runtime.RequiredError('videoBlockUserRequest','Required parameter requestParameters.videoBlockUserRequest was null or undefined when calling blockUser.');
|
|
330
|
-
}
|
|
331
|
-
|
|
332
|
-
const queryParameters: any = {};
|
|
333
|
-
|
|
334
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
335
|
-
|
|
336
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
337
|
-
|
|
338
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
339
|
-
headerParameters["Stream-Auth-Type"] = this.configuration.apiKey("Stream-Auth-Type"); // stream-auth-type authentication
|
|
340
|
-
}
|
|
341
|
-
|
|
342
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
343
|
-
queryParameters["api_key"] = this.configuration.apiKey("api_key"); // api_key authentication
|
|
344
|
-
}
|
|
345
|
-
|
|
346
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
347
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // JWT authentication
|
|
348
|
-
}
|
|
349
|
-
|
|
350
|
-
const response = await this.request({
|
|
351
|
-
path: `/video/call/{type}/{id}/block`.replace(`{${"type"}}`, encodeURIComponent(String(requestParameters.type))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
352
|
-
method: 'POST',
|
|
353
|
-
headers: headerParameters,
|
|
354
|
-
query: queryParameters,
|
|
355
|
-
body: requestParameters.videoBlockUserRequest,
|
|
356
|
-
}, initOverrides);
|
|
357
|
-
|
|
358
|
-
return new runtime.JSONApiResponse(response);
|
|
359
|
-
}
|
|
360
|
-
|
|
361
|
-
/**
|
|
362
|
-
* Block a user, preventing them from joining the call until they are unblocked. Sends events: - call.blocked_user Required permissions: - BlockUser
|
|
363
|
-
* Block user on a call
|
|
364
|
-
*/
|
|
365
|
-
async blockUser(requestParameters: BlockUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VideoBlockUserResponse> {
|
|
366
|
-
const response = await this.blockUserRaw(requestParameters, initOverrides);
|
|
367
|
-
return await response.value();
|
|
368
|
-
}
|
|
369
|
-
|
|
370
|
-
/**
|
|
371
|
-
*
|
|
372
|
-
* Check External Storage
|
|
373
|
-
*/
|
|
374
|
-
async checkExternalStorageRaw(requestParameters: CheckExternalStorageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VideoCheckExternalStorageResponse>> {
|
|
375
|
-
if (requestParameters.name === null || requestParameters.name === undefined) {
|
|
376
|
-
throw new runtime.RequiredError('name','Required parameter requestParameters.name was null or undefined when calling checkExternalStorage.');
|
|
377
|
-
}
|
|
378
|
-
|
|
379
|
-
const queryParameters: any = {};
|
|
380
|
-
|
|
381
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
382
|
-
|
|
383
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
384
|
-
headerParameters["Stream-Auth-Type"] = this.configuration.apiKey("Stream-Auth-Type"); // stream-auth-type authentication
|
|
385
|
-
}
|
|
386
|
-
|
|
387
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
388
|
-
queryParameters["api_key"] = this.configuration.apiKey("api_key"); // api_key authentication
|
|
389
|
-
}
|
|
390
|
-
|
|
391
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
392
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // JWT authentication
|
|
393
|
-
}
|
|
394
|
-
|
|
395
|
-
const response = await this.request({
|
|
396
|
-
path: `/video/external_storage/{name}/check`.replace(`{${"name"}}`, encodeURIComponent(String(requestParameters.name))),
|
|
397
|
-
method: 'GET',
|
|
398
|
-
headers: headerParameters,
|
|
399
|
-
query: queryParameters,
|
|
400
|
-
}, initOverrides);
|
|
401
|
-
|
|
402
|
-
return new runtime.JSONApiResponse(response);
|
|
403
|
-
}
|
|
404
|
-
|
|
405
|
-
/**
|
|
406
|
-
*
|
|
407
|
-
* Check External Storage
|
|
408
|
-
*/
|
|
409
|
-
async checkExternalStorage(requestParameters: CheckExternalStorageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VideoCheckExternalStorageResponse> {
|
|
410
|
-
const response = await this.checkExternalStorageRaw(requestParameters, initOverrides);
|
|
411
|
-
return await response.value();
|
|
412
|
-
}
|
|
413
|
-
|
|
414
|
-
/**
|
|
415
|
-
* Required permissions: - JoinCall
|
|
416
|
-
* Collect user feedback
|
|
417
|
-
*/
|
|
418
|
-
async collectUserFeedbackRaw(requestParameters: CollectUserFeedbackRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VideoCollectUserFeedbackResponse>> {
|
|
419
|
-
if (requestParameters.type === null || requestParameters.type === undefined) {
|
|
420
|
-
throw new runtime.RequiredError('type','Required parameter requestParameters.type was null or undefined when calling collectUserFeedback.');
|
|
421
|
-
}
|
|
422
|
-
|
|
423
|
-
if (requestParameters.id === null || requestParameters.id === undefined) {
|
|
424
|
-
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling collectUserFeedback.');
|
|
425
|
-
}
|
|
426
|
-
|
|
427
|
-
if (requestParameters.session === null || requestParameters.session === undefined) {
|
|
428
|
-
throw new runtime.RequiredError('session','Required parameter requestParameters.session was null or undefined when calling collectUserFeedback.');
|
|
429
|
-
}
|
|
430
|
-
|
|
431
|
-
if (requestParameters.videoCollectUserFeedbackRequest === null || requestParameters.videoCollectUserFeedbackRequest === undefined) {
|
|
432
|
-
throw new runtime.RequiredError('videoCollectUserFeedbackRequest','Required parameter requestParameters.videoCollectUserFeedbackRequest was null or undefined when calling collectUserFeedback.');
|
|
433
|
-
}
|
|
434
|
-
|
|
435
|
-
const queryParameters: any = {};
|
|
436
|
-
|
|
437
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
438
|
-
|
|
439
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
440
|
-
|
|
441
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
442
|
-
headerParameters["Stream-Auth-Type"] = this.configuration.apiKey("Stream-Auth-Type"); // stream-auth-type authentication
|
|
443
|
-
}
|
|
444
|
-
|
|
445
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
446
|
-
queryParameters["api_key"] = this.configuration.apiKey("api_key"); // api_key authentication
|
|
447
|
-
}
|
|
448
|
-
|
|
449
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
450
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // JWT authentication
|
|
451
|
-
}
|
|
452
|
-
|
|
453
|
-
const response = await this.request({
|
|
454
|
-
path: `/video/call/{type}/{id}/feedback/{session}`.replace(`{${"type"}}`, encodeURIComponent(String(requestParameters.type))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))).replace(`{${"session"}}`, encodeURIComponent(String(requestParameters.session))),
|
|
455
|
-
method: 'POST',
|
|
456
|
-
headers: headerParameters,
|
|
457
|
-
query: queryParameters,
|
|
458
|
-
body: requestParameters.videoCollectUserFeedbackRequest,
|
|
459
|
-
}, initOverrides);
|
|
460
|
-
|
|
461
|
-
return new runtime.JSONApiResponse(response);
|
|
462
|
-
}
|
|
463
|
-
|
|
464
|
-
/**
|
|
465
|
-
* Required permissions: - JoinCall
|
|
466
|
-
* Collect user feedback
|
|
467
|
-
*/
|
|
468
|
-
async collectUserFeedback(requestParameters: CollectUserFeedbackRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VideoCollectUserFeedbackResponse> {
|
|
469
|
-
const response = await this.collectUserFeedbackRaw(requestParameters, initOverrides);
|
|
470
|
-
return await response.value();
|
|
471
|
-
}
|
|
472
|
-
|
|
473
|
-
/**
|
|
474
|
-
*
|
|
475
|
-
* Create Call Type
|
|
476
|
-
*/
|
|
477
|
-
async createCallTypeRaw(requestParameters: CreateCallTypeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VideoCreateCallTypeResponse>> {
|
|
478
|
-
if (requestParameters.videoCreateCallTypeRequest === null || requestParameters.videoCreateCallTypeRequest === undefined) {
|
|
479
|
-
throw new runtime.RequiredError('videoCreateCallTypeRequest','Required parameter requestParameters.videoCreateCallTypeRequest was null or undefined when calling createCallType.');
|
|
480
|
-
}
|
|
481
|
-
|
|
482
|
-
const queryParameters: any = {};
|
|
483
|
-
|
|
484
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
485
|
-
|
|
486
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
487
|
-
|
|
488
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
489
|
-
headerParameters["Stream-Auth-Type"] = this.configuration.apiKey("Stream-Auth-Type"); // stream-auth-type authentication
|
|
490
|
-
}
|
|
491
|
-
|
|
492
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
493
|
-
queryParameters["api_key"] = this.configuration.apiKey("api_key"); // api_key authentication
|
|
494
|
-
}
|
|
495
|
-
|
|
496
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
497
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // JWT authentication
|
|
498
|
-
}
|
|
499
|
-
|
|
500
|
-
const response = await this.request({
|
|
501
|
-
path: `/video/calltypes`,
|
|
502
|
-
method: 'POST',
|
|
503
|
-
headers: headerParameters,
|
|
504
|
-
query: queryParameters,
|
|
505
|
-
body: requestParameters.videoCreateCallTypeRequest,
|
|
506
|
-
}, initOverrides);
|
|
507
|
-
|
|
508
|
-
return new runtime.JSONApiResponse(response);
|
|
509
|
-
}
|
|
510
|
-
|
|
511
|
-
/**
|
|
512
|
-
*
|
|
513
|
-
* Create Call Type
|
|
514
|
-
*/
|
|
515
|
-
async createCallType(requestParameters: CreateCallTypeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VideoCreateCallTypeResponse> {
|
|
516
|
-
const response = await this.createCallTypeRaw(requestParameters, initOverrides);
|
|
517
|
-
return await response.value();
|
|
518
|
-
}
|
|
519
|
-
|
|
520
|
-
/**
|
|
521
|
-
* Adds a new device to a user, if the same device already exists the call will have no effect
|
|
522
|
-
* Create device
|
|
523
|
-
*/
|
|
524
|
-
async createDeviceRaw(requestParameters: CreateDeviceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VideoResponse>> {
|
|
525
|
-
if (requestParameters.videoCreateDeviceRequest === null || requestParameters.videoCreateDeviceRequest === undefined) {
|
|
526
|
-
throw new runtime.RequiredError('videoCreateDeviceRequest','Required parameter requestParameters.videoCreateDeviceRequest was null or undefined when calling createDevice.');
|
|
527
|
-
}
|
|
528
|
-
|
|
529
|
-
const queryParameters: any = {};
|
|
530
|
-
|
|
531
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
532
|
-
|
|
533
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
534
|
-
|
|
535
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
536
|
-
headerParameters["Stream-Auth-Type"] = this.configuration.apiKey("Stream-Auth-Type"); // stream-auth-type authentication
|
|
537
|
-
}
|
|
538
|
-
|
|
539
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
540
|
-
queryParameters["api_key"] = this.configuration.apiKey("api_key"); // api_key authentication
|
|
541
|
-
}
|
|
542
|
-
|
|
543
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
544
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // JWT authentication
|
|
545
|
-
}
|
|
546
|
-
|
|
547
|
-
const response = await this.request({
|
|
548
|
-
path: `/video/devices`,
|
|
549
|
-
method: 'POST',
|
|
550
|
-
headers: headerParameters,
|
|
551
|
-
query: queryParameters,
|
|
552
|
-
body: requestParameters.videoCreateDeviceRequest,
|
|
553
|
-
}, initOverrides);
|
|
554
|
-
|
|
555
|
-
return new runtime.JSONApiResponse(response);
|
|
556
|
-
}
|
|
557
|
-
|
|
558
|
-
/**
|
|
559
|
-
* Adds a new device to a user, if the same device already exists the call will have no effect
|
|
560
|
-
* Create device
|
|
561
|
-
*/
|
|
562
|
-
async createDevice(requestParameters: CreateDeviceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VideoResponse> {
|
|
563
|
-
const response = await this.createDeviceRaw(requestParameters, initOverrides);
|
|
564
|
-
return await response.value();
|
|
565
|
-
}
|
|
566
|
-
|
|
567
|
-
/**
|
|
568
|
-
* Creates new external storage
|
|
569
|
-
* Create external storage
|
|
570
|
-
*/
|
|
571
|
-
async createExternalStorageRaw(requestParameters: CreateExternalStorageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VideoCreateExternalStorageResponse>> {
|
|
572
|
-
if (requestParameters.videoCreateExternalStorageRequest === null || requestParameters.videoCreateExternalStorageRequest === undefined) {
|
|
573
|
-
throw new runtime.RequiredError('videoCreateExternalStorageRequest','Required parameter requestParameters.videoCreateExternalStorageRequest was null or undefined when calling createExternalStorage.');
|
|
574
|
-
}
|
|
575
|
-
|
|
576
|
-
const queryParameters: any = {};
|
|
577
|
-
|
|
578
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
579
|
-
|
|
580
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
581
|
-
|
|
582
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
583
|
-
headerParameters["Stream-Auth-Type"] = this.configuration.apiKey("Stream-Auth-Type"); // stream-auth-type authentication
|
|
584
|
-
}
|
|
585
|
-
|
|
586
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
587
|
-
queryParameters["api_key"] = this.configuration.apiKey("api_key"); // api_key authentication
|
|
588
|
-
}
|
|
589
|
-
|
|
590
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
591
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // JWT authentication
|
|
592
|
-
}
|
|
593
|
-
|
|
594
|
-
const response = await this.request({
|
|
595
|
-
path: `/video/external_storage`,
|
|
596
|
-
method: 'POST',
|
|
597
|
-
headers: headerParameters,
|
|
598
|
-
query: queryParameters,
|
|
599
|
-
body: requestParameters.videoCreateExternalStorageRequest,
|
|
600
|
-
}, initOverrides);
|
|
601
|
-
|
|
602
|
-
return new runtime.JSONApiResponse(response);
|
|
603
|
-
}
|
|
604
|
-
|
|
605
|
-
/**
|
|
606
|
-
* Creates new external storage
|
|
607
|
-
* Create external storage
|
|
608
|
-
*/
|
|
609
|
-
async createExternalStorage(requestParameters: CreateExternalStorageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VideoCreateExternalStorageResponse> {
|
|
610
|
-
const response = await this.createExternalStorageRaw(requestParameters, initOverrides);
|
|
611
|
-
return await response.value();
|
|
612
|
-
}
|
|
613
|
-
|
|
614
|
-
/**
|
|
615
|
-
*
|
|
616
|
-
* Create Guest
|
|
617
|
-
*/
|
|
618
|
-
async createGuestRaw(requestParameters: CreateGuestRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VideoCreateGuestResponse>> {
|
|
619
|
-
if (requestParameters.videoCreateGuestRequest === null || requestParameters.videoCreateGuestRequest === undefined) {
|
|
620
|
-
throw new runtime.RequiredError('videoCreateGuestRequest','Required parameter requestParameters.videoCreateGuestRequest was null or undefined when calling createGuest.');
|
|
621
|
-
}
|
|
622
|
-
|
|
623
|
-
const queryParameters: any = {};
|
|
624
|
-
|
|
625
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
626
|
-
|
|
627
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
628
|
-
|
|
629
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
630
|
-
headerParameters["Stream-Auth-Type"] = this.configuration.apiKey("Stream-Auth-Type"); // stream-auth-type authentication
|
|
631
|
-
}
|
|
632
|
-
|
|
633
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
634
|
-
queryParameters["api_key"] = this.configuration.apiKey("api_key"); // api_key authentication
|
|
635
|
-
}
|
|
636
|
-
|
|
637
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
638
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // JWT authentication
|
|
639
|
-
}
|
|
640
|
-
|
|
641
|
-
const response = await this.request({
|
|
642
|
-
path: `/video/guest`,
|
|
643
|
-
method: 'POST',
|
|
644
|
-
headers: headerParameters,
|
|
645
|
-
query: queryParameters,
|
|
646
|
-
body: requestParameters.videoCreateGuestRequest,
|
|
647
|
-
}, initOverrides);
|
|
648
|
-
|
|
649
|
-
return new runtime.JSONApiResponse(response);
|
|
650
|
-
}
|
|
651
|
-
|
|
652
|
-
/**
|
|
653
|
-
*
|
|
654
|
-
* Create Guest
|
|
655
|
-
*/
|
|
656
|
-
async createGuest(requestParameters: CreateGuestRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VideoCreateGuestResponse> {
|
|
657
|
-
const response = await this.createGuestRaw(requestParameters, initOverrides);
|
|
658
|
-
return await response.value();
|
|
659
|
-
}
|
|
660
|
-
|
|
661
|
-
/**
|
|
662
|
-
* Sends events: - call.deleted Required permissions: - DeleteCall
|
|
663
|
-
* Delete Call
|
|
664
|
-
*/
|
|
665
|
-
async deleteCallRaw(requestParameters: DeleteCallRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VideoDeleteCallResponse>> {
|
|
666
|
-
if (requestParameters.type === null || requestParameters.type === undefined) {
|
|
667
|
-
throw new runtime.RequiredError('type','Required parameter requestParameters.type was null or undefined when calling deleteCall.');
|
|
668
|
-
}
|
|
669
|
-
|
|
670
|
-
if (requestParameters.id === null || requestParameters.id === undefined) {
|
|
671
|
-
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling deleteCall.');
|
|
672
|
-
}
|
|
673
|
-
|
|
674
|
-
if (requestParameters.videoDeleteCallRequest === null || requestParameters.videoDeleteCallRequest === undefined) {
|
|
675
|
-
throw new runtime.RequiredError('videoDeleteCallRequest','Required parameter requestParameters.videoDeleteCallRequest was null or undefined when calling deleteCall.');
|
|
676
|
-
}
|
|
677
|
-
|
|
678
|
-
const queryParameters: any = {};
|
|
679
|
-
|
|
680
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
681
|
-
|
|
682
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
683
|
-
|
|
684
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
685
|
-
headerParameters["Stream-Auth-Type"] = this.configuration.apiKey("Stream-Auth-Type"); // stream-auth-type authentication
|
|
686
|
-
}
|
|
687
|
-
|
|
688
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
689
|
-
queryParameters["api_key"] = this.configuration.apiKey("api_key"); // api_key authentication
|
|
690
|
-
}
|
|
691
|
-
|
|
692
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
693
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // JWT authentication
|
|
694
|
-
}
|
|
695
|
-
|
|
696
|
-
const response = await this.request({
|
|
697
|
-
path: `/video/call/{type}/{id}/delete`.replace(`{${"type"}}`, encodeURIComponent(String(requestParameters.type))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
698
|
-
method: 'POST',
|
|
699
|
-
headers: headerParameters,
|
|
700
|
-
query: queryParameters,
|
|
701
|
-
body: requestParameters.videoDeleteCallRequest,
|
|
702
|
-
}, initOverrides);
|
|
703
|
-
|
|
704
|
-
return new runtime.JSONApiResponse(response);
|
|
705
|
-
}
|
|
706
|
-
|
|
707
|
-
/**
|
|
708
|
-
* Sends events: - call.deleted Required permissions: - DeleteCall
|
|
709
|
-
* Delete Call
|
|
710
|
-
*/
|
|
711
|
-
async deleteCall(requestParameters: DeleteCallRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VideoDeleteCallResponse> {
|
|
712
|
-
const response = await this.deleteCallRaw(requestParameters, initOverrides);
|
|
713
|
-
return await response.value();
|
|
714
|
-
}
|
|
715
|
-
|
|
716
|
-
/**
|
|
717
|
-
*
|
|
718
|
-
* Delete Call Type
|
|
719
|
-
*/
|
|
720
|
-
async deleteCallTypeRaw(requestParameters: DeleteCallTypeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VideoResponse>> {
|
|
721
|
-
if (requestParameters.name === null || requestParameters.name === undefined) {
|
|
722
|
-
throw new runtime.RequiredError('name','Required parameter requestParameters.name was null or undefined when calling deleteCallType.');
|
|
723
|
-
}
|
|
724
|
-
|
|
725
|
-
const queryParameters: any = {};
|
|
726
|
-
|
|
727
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
728
|
-
|
|
729
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
730
|
-
headerParameters["Stream-Auth-Type"] = this.configuration.apiKey("Stream-Auth-Type"); // stream-auth-type authentication
|
|
731
|
-
}
|
|
732
|
-
|
|
733
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
734
|
-
queryParameters["api_key"] = this.configuration.apiKey("api_key"); // api_key authentication
|
|
735
|
-
}
|
|
736
|
-
|
|
737
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
738
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // JWT authentication
|
|
739
|
-
}
|
|
740
|
-
|
|
741
|
-
const response = await this.request({
|
|
742
|
-
path: `/video/calltypes/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(requestParameters.name))),
|
|
743
|
-
method: 'DELETE',
|
|
744
|
-
headers: headerParameters,
|
|
745
|
-
query: queryParameters,
|
|
746
|
-
}, initOverrides);
|
|
747
|
-
|
|
748
|
-
return new runtime.JSONApiResponse(response);
|
|
749
|
-
}
|
|
750
|
-
|
|
751
|
-
/**
|
|
752
|
-
*
|
|
753
|
-
* Delete Call Type
|
|
754
|
-
*/
|
|
755
|
-
async deleteCallType(requestParameters: DeleteCallTypeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VideoResponse> {
|
|
756
|
-
const response = await this.deleteCallTypeRaw(requestParameters, initOverrides);
|
|
757
|
-
return await response.value();
|
|
758
|
-
}
|
|
759
|
-
|
|
760
|
-
/**
|
|
761
|
-
* Deletes one device
|
|
762
|
-
* Delete device
|
|
763
|
-
*/
|
|
764
|
-
async deleteDeviceRaw(requestParameters: DeleteDeviceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VideoResponse>> {
|
|
765
|
-
if (requestParameters.id === null || requestParameters.id === undefined) {
|
|
766
|
-
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling deleteDevice.');
|
|
767
|
-
}
|
|
768
|
-
|
|
769
|
-
const queryParameters: any = {};
|
|
770
|
-
|
|
771
|
-
if (requestParameters.id !== undefined) {
|
|
772
|
-
queryParameters['id'] = requestParameters.id;
|
|
773
|
-
}
|
|
774
|
-
|
|
775
|
-
if (requestParameters.userId !== undefined) {
|
|
776
|
-
queryParameters['user_id'] = requestParameters.userId;
|
|
777
|
-
}
|
|
778
|
-
|
|
779
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
780
|
-
|
|
781
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
782
|
-
headerParameters["Stream-Auth-Type"] = this.configuration.apiKey("Stream-Auth-Type"); // stream-auth-type authentication
|
|
783
|
-
}
|
|
784
|
-
|
|
785
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
786
|
-
queryParameters["api_key"] = this.configuration.apiKey("api_key"); // api_key authentication
|
|
787
|
-
}
|
|
788
|
-
|
|
789
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
790
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // JWT authentication
|
|
791
|
-
}
|
|
792
|
-
|
|
793
|
-
const response = await this.request({
|
|
794
|
-
path: `/video/devices`,
|
|
795
|
-
method: 'DELETE',
|
|
796
|
-
headers: headerParameters,
|
|
797
|
-
query: queryParameters,
|
|
798
|
-
}, initOverrides);
|
|
799
|
-
|
|
800
|
-
return new runtime.JSONApiResponse(response);
|
|
801
|
-
}
|
|
802
|
-
|
|
803
|
-
/**
|
|
804
|
-
* Deletes one device
|
|
805
|
-
* Delete device
|
|
806
|
-
*/
|
|
807
|
-
async deleteDevice(requestParameters: DeleteDeviceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VideoResponse> {
|
|
808
|
-
const response = await this.deleteDeviceRaw(requestParameters, initOverrides);
|
|
809
|
-
return await response.value();
|
|
810
|
-
}
|
|
811
|
-
|
|
812
|
-
/**
|
|
813
|
-
* Deletes external storage
|
|
814
|
-
* Delete external storage
|
|
815
|
-
*/
|
|
816
|
-
async deleteExternalStorageRaw(requestParameters: DeleteExternalStorageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VideoDeleteExternalStorageResponse>> {
|
|
817
|
-
if (requestParameters.name === null || requestParameters.name === undefined) {
|
|
818
|
-
throw new runtime.RequiredError('name','Required parameter requestParameters.name was null or undefined when calling deleteExternalStorage.');
|
|
819
|
-
}
|
|
820
|
-
|
|
821
|
-
const queryParameters: any = {};
|
|
822
|
-
|
|
823
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
824
|
-
|
|
825
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
826
|
-
headerParameters["Stream-Auth-Type"] = this.configuration.apiKey("Stream-Auth-Type"); // stream-auth-type authentication
|
|
827
|
-
}
|
|
828
|
-
|
|
829
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
830
|
-
queryParameters["api_key"] = this.configuration.apiKey("api_key"); // api_key authentication
|
|
831
|
-
}
|
|
832
|
-
|
|
833
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
834
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // JWT authentication
|
|
835
|
-
}
|
|
836
|
-
|
|
837
|
-
const response = await this.request({
|
|
838
|
-
path: `/video/external_storage/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(requestParameters.name))),
|
|
839
|
-
method: 'DELETE',
|
|
840
|
-
headers: headerParameters,
|
|
841
|
-
query: queryParameters,
|
|
842
|
-
}, initOverrides);
|
|
843
|
-
|
|
844
|
-
return new runtime.JSONApiResponse(response);
|
|
845
|
-
}
|
|
846
|
-
|
|
847
|
-
/**
|
|
848
|
-
* Deletes external storage
|
|
849
|
-
* Delete external storage
|
|
850
|
-
*/
|
|
851
|
-
async deleteExternalStorage(requestParameters: DeleteExternalStorageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VideoDeleteExternalStorageResponse> {
|
|
852
|
-
const response = await this.deleteExternalStorageRaw(requestParameters, initOverrides);
|
|
853
|
-
return await response.value();
|
|
854
|
-
}
|
|
855
|
-
|
|
856
|
-
/**
|
|
857
|
-
* Deletes recording Required permissions: - DeleteRecording
|
|
858
|
-
* Delete recording
|
|
859
|
-
*/
|
|
860
|
-
async deleteRecordingRaw(requestParameters: DeleteRecordingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VideoDeleteRecordingResponse>> {
|
|
861
|
-
if (requestParameters.type === null || requestParameters.type === undefined) {
|
|
862
|
-
throw new runtime.RequiredError('type','Required parameter requestParameters.type was null or undefined when calling deleteRecording.');
|
|
863
|
-
}
|
|
864
|
-
|
|
865
|
-
if (requestParameters.id === null || requestParameters.id === undefined) {
|
|
866
|
-
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling deleteRecording.');
|
|
867
|
-
}
|
|
868
|
-
|
|
869
|
-
if (requestParameters.session === null || requestParameters.session === undefined) {
|
|
870
|
-
throw new runtime.RequiredError('session','Required parameter requestParameters.session was null or undefined when calling deleteRecording.');
|
|
871
|
-
}
|
|
872
|
-
|
|
873
|
-
if (requestParameters.filename === null || requestParameters.filename === undefined) {
|
|
874
|
-
throw new runtime.RequiredError('filename','Required parameter requestParameters.filename was null or undefined when calling deleteRecording.');
|
|
875
|
-
}
|
|
876
|
-
|
|
877
|
-
const queryParameters: any = {};
|
|
878
|
-
|
|
879
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
880
|
-
|
|
881
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
882
|
-
headerParameters["Stream-Auth-Type"] = this.configuration.apiKey("Stream-Auth-Type"); // stream-auth-type authentication
|
|
883
|
-
}
|
|
884
|
-
|
|
885
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
886
|
-
queryParameters["api_key"] = this.configuration.apiKey("api_key"); // api_key authentication
|
|
887
|
-
}
|
|
888
|
-
|
|
889
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
890
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // JWT authentication
|
|
891
|
-
}
|
|
892
|
-
|
|
893
|
-
const response = await this.request({
|
|
894
|
-
path: `/video/call/{type}/{id}/{session}/recordings/{filename}`.replace(`{${"type"}}`, encodeURIComponent(String(requestParameters.type))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))).replace(`{${"session"}}`, encodeURIComponent(String(requestParameters.session))).replace(`{${"filename"}}`, encodeURIComponent(String(requestParameters.filename))),
|
|
895
|
-
method: 'DELETE',
|
|
896
|
-
headers: headerParameters,
|
|
897
|
-
query: queryParameters,
|
|
898
|
-
}, initOverrides);
|
|
899
|
-
|
|
900
|
-
return new runtime.JSONApiResponse(response);
|
|
901
|
-
}
|
|
902
|
-
|
|
903
|
-
/**
|
|
904
|
-
* Deletes recording Required permissions: - DeleteRecording
|
|
905
|
-
* Delete recording
|
|
906
|
-
*/
|
|
907
|
-
async deleteRecording(requestParameters: DeleteRecordingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VideoDeleteRecordingResponse> {
|
|
908
|
-
const response = await this.deleteRecordingRaw(requestParameters, initOverrides);
|
|
909
|
-
return await response.value();
|
|
910
|
-
}
|
|
911
|
-
|
|
912
|
-
/**
|
|
913
|
-
* Deletes transcription Required permissions: - DeleteTranscription
|
|
914
|
-
* Delete transcription
|
|
915
|
-
*/
|
|
916
|
-
async deleteTranscriptionRaw(requestParameters: DeleteTranscriptionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VideoDeleteTranscriptionResponse>> {
|
|
917
|
-
if (requestParameters.type === null || requestParameters.type === undefined) {
|
|
918
|
-
throw new runtime.RequiredError('type','Required parameter requestParameters.type was null or undefined when calling deleteTranscription.');
|
|
919
|
-
}
|
|
920
|
-
|
|
921
|
-
if (requestParameters.id === null || requestParameters.id === undefined) {
|
|
922
|
-
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling deleteTranscription.');
|
|
923
|
-
}
|
|
924
|
-
|
|
925
|
-
if (requestParameters.session === null || requestParameters.session === undefined) {
|
|
926
|
-
throw new runtime.RequiredError('session','Required parameter requestParameters.session was null or undefined when calling deleteTranscription.');
|
|
927
|
-
}
|
|
928
|
-
|
|
929
|
-
if (requestParameters.filename === null || requestParameters.filename === undefined) {
|
|
930
|
-
throw new runtime.RequiredError('filename','Required parameter requestParameters.filename was null or undefined when calling deleteTranscription.');
|
|
931
|
-
}
|
|
932
|
-
|
|
933
|
-
const queryParameters: any = {};
|
|
934
|
-
|
|
935
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
936
|
-
|
|
937
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
938
|
-
headerParameters["Stream-Auth-Type"] = this.configuration.apiKey("Stream-Auth-Type"); // stream-auth-type authentication
|
|
939
|
-
}
|
|
940
|
-
|
|
941
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
942
|
-
queryParameters["api_key"] = this.configuration.apiKey("api_key"); // api_key authentication
|
|
943
|
-
}
|
|
944
|
-
|
|
945
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
946
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // JWT authentication
|
|
947
|
-
}
|
|
948
|
-
|
|
949
|
-
const response = await this.request({
|
|
950
|
-
path: `/video/call/{type}/{id}/{session}/transcriptions/{filename}`.replace(`{${"type"}}`, encodeURIComponent(String(requestParameters.type))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))).replace(`{${"session"}}`, encodeURIComponent(String(requestParameters.session))).replace(`{${"filename"}}`, encodeURIComponent(String(requestParameters.filename))),
|
|
951
|
-
method: 'DELETE',
|
|
952
|
-
headers: headerParameters,
|
|
953
|
-
query: queryParameters,
|
|
954
|
-
}, initOverrides);
|
|
955
|
-
|
|
956
|
-
return new runtime.JSONApiResponse(response);
|
|
957
|
-
}
|
|
958
|
-
|
|
959
|
-
/**
|
|
960
|
-
* Deletes transcription Required permissions: - DeleteTranscription
|
|
961
|
-
* Delete transcription
|
|
962
|
-
*/
|
|
963
|
-
async deleteTranscription(requestParameters: DeleteTranscriptionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VideoDeleteTranscriptionResponse> {
|
|
964
|
-
const response = await this.deleteTranscriptionRaw(requestParameters, initOverrides);
|
|
965
|
-
return await response.value();
|
|
966
|
-
}
|
|
967
|
-
|
|
968
|
-
/**
|
|
969
|
-
* Sends events: - call.ended Required permissions: - EndCall
|
|
970
|
-
* End call
|
|
971
|
-
*/
|
|
972
|
-
async endCallRaw(requestParameters: EndCallRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VideoEndCallResponse>> {
|
|
973
|
-
if (requestParameters.type === null || requestParameters.type === undefined) {
|
|
974
|
-
throw new runtime.RequiredError('type','Required parameter requestParameters.type was null or undefined when calling endCall.');
|
|
975
|
-
}
|
|
976
|
-
|
|
977
|
-
if (requestParameters.id === null || requestParameters.id === undefined) {
|
|
978
|
-
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling endCall.');
|
|
979
|
-
}
|
|
980
|
-
|
|
981
|
-
const queryParameters: any = {};
|
|
982
|
-
|
|
983
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
984
|
-
|
|
985
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
986
|
-
headerParameters["Stream-Auth-Type"] = this.configuration.apiKey("Stream-Auth-Type"); // stream-auth-type authentication
|
|
987
|
-
}
|
|
988
|
-
|
|
989
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
990
|
-
queryParameters["api_key"] = this.configuration.apiKey("api_key"); // api_key authentication
|
|
991
|
-
}
|
|
992
|
-
|
|
993
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
994
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // JWT authentication
|
|
995
|
-
}
|
|
996
|
-
|
|
997
|
-
const response = await this.request({
|
|
998
|
-
path: `/video/call/{type}/{id}/mark_ended`.replace(`{${"type"}}`, encodeURIComponent(String(requestParameters.type))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
999
|
-
method: 'POST',
|
|
1000
|
-
headers: headerParameters,
|
|
1001
|
-
query: queryParameters,
|
|
1002
|
-
}, initOverrides);
|
|
1003
|
-
|
|
1004
|
-
return new runtime.JSONApiResponse(response);
|
|
1005
|
-
}
|
|
1006
|
-
|
|
1007
|
-
/**
|
|
1008
|
-
* Sends events: - call.ended Required permissions: - EndCall
|
|
1009
|
-
* End call
|
|
1010
|
-
*/
|
|
1011
|
-
async endCall(requestParameters: EndCallRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VideoEndCallResponse> {
|
|
1012
|
-
const response = await this.endCallRaw(requestParameters, initOverrides);
|
|
1013
|
-
return await response.value();
|
|
1014
|
-
}
|
|
1015
|
-
|
|
1016
|
-
/**
|
|
1017
|
-
* Required permissions: - ReadCall
|
|
1018
|
-
* Get Call
|
|
1019
|
-
*/
|
|
1020
|
-
async getCallRaw(requestParameters: GetCallRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VideoGetCallResponse>> {
|
|
1021
|
-
if (requestParameters.type === null || requestParameters.type === undefined) {
|
|
1022
|
-
throw new runtime.RequiredError('type','Required parameter requestParameters.type was null or undefined when calling getCall.');
|
|
1023
|
-
}
|
|
1024
|
-
|
|
1025
|
-
if (requestParameters.id === null || requestParameters.id === undefined) {
|
|
1026
|
-
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling getCall.');
|
|
1027
|
-
}
|
|
1028
|
-
|
|
1029
|
-
const queryParameters: any = {};
|
|
1030
|
-
|
|
1031
|
-
if (requestParameters.membersLimit !== undefined) {
|
|
1032
|
-
queryParameters['members_limit'] = requestParameters.membersLimit;
|
|
1033
|
-
}
|
|
1034
|
-
|
|
1035
|
-
if (requestParameters.ring !== undefined) {
|
|
1036
|
-
queryParameters['ring'] = requestParameters.ring;
|
|
1037
|
-
}
|
|
1038
|
-
|
|
1039
|
-
if (requestParameters.notify !== undefined) {
|
|
1040
|
-
queryParameters['notify'] = requestParameters.notify;
|
|
1041
|
-
}
|
|
1042
|
-
|
|
1043
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
1044
|
-
|
|
1045
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
1046
|
-
headerParameters["Stream-Auth-Type"] = this.configuration.apiKey("Stream-Auth-Type"); // stream-auth-type authentication
|
|
1047
|
-
}
|
|
1048
|
-
|
|
1049
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
1050
|
-
queryParameters["api_key"] = this.configuration.apiKey("api_key"); // api_key authentication
|
|
1051
|
-
}
|
|
1052
|
-
|
|
1053
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
1054
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // JWT authentication
|
|
1055
|
-
}
|
|
1056
|
-
|
|
1057
|
-
const response = await this.request({
|
|
1058
|
-
path: `/video/call/{type}/{id}`.replace(`{${"type"}}`, encodeURIComponent(String(requestParameters.type))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
1059
|
-
method: 'GET',
|
|
1060
|
-
headers: headerParameters,
|
|
1061
|
-
query: queryParameters,
|
|
1062
|
-
}, initOverrides);
|
|
1063
|
-
|
|
1064
|
-
return new runtime.JSONApiResponse(response);
|
|
1065
|
-
}
|
|
1066
|
-
|
|
1067
|
-
/**
|
|
1068
|
-
* Required permissions: - ReadCall
|
|
1069
|
-
* Get Call
|
|
1070
|
-
*/
|
|
1071
|
-
async getCall(requestParameters: GetCallRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VideoGetCallResponse> {
|
|
1072
|
-
const response = await this.getCallRaw(requestParameters, initOverrides);
|
|
1073
|
-
return await response.value();
|
|
1074
|
-
}
|
|
1075
|
-
|
|
1076
|
-
/**
|
|
1077
|
-
* Required permissions: - ReadCallStats
|
|
1078
|
-
* Get Call Stats
|
|
1079
|
-
*/
|
|
1080
|
-
async getCallStatsRaw(requestParameters: GetCallStatsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VideoGetCallStatsResponse>> {
|
|
1081
|
-
if (requestParameters.type === null || requestParameters.type === undefined) {
|
|
1082
|
-
throw new runtime.RequiredError('type','Required parameter requestParameters.type was null or undefined when calling getCallStats.');
|
|
1083
|
-
}
|
|
1084
|
-
|
|
1085
|
-
if (requestParameters.id === null || requestParameters.id === undefined) {
|
|
1086
|
-
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling getCallStats.');
|
|
1087
|
-
}
|
|
1088
|
-
|
|
1089
|
-
if (requestParameters.session === null || requestParameters.session === undefined) {
|
|
1090
|
-
throw new runtime.RequiredError('session','Required parameter requestParameters.session was null or undefined when calling getCallStats.');
|
|
1091
|
-
}
|
|
1092
|
-
|
|
1093
|
-
const queryParameters: any = {};
|
|
1094
|
-
|
|
1095
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
1096
|
-
|
|
1097
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
1098
|
-
headerParameters["Stream-Auth-Type"] = this.configuration.apiKey("Stream-Auth-Type"); // stream-auth-type authentication
|
|
1099
|
-
}
|
|
1100
|
-
|
|
1101
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
1102
|
-
queryParameters["api_key"] = this.configuration.apiKey("api_key"); // api_key authentication
|
|
1103
|
-
}
|
|
1104
|
-
|
|
1105
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
1106
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // JWT authentication
|
|
1107
|
-
}
|
|
1108
|
-
|
|
1109
|
-
const response = await this.request({
|
|
1110
|
-
path: `/video/call/{type}/{id}/stats/{session}`.replace(`{${"type"}}`, encodeURIComponent(String(requestParameters.type))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))).replace(`{${"session"}}`, encodeURIComponent(String(requestParameters.session))),
|
|
1111
|
-
method: 'GET',
|
|
1112
|
-
headers: headerParameters,
|
|
1113
|
-
query: queryParameters,
|
|
1114
|
-
}, initOverrides);
|
|
1115
|
-
|
|
1116
|
-
return new runtime.JSONApiResponse(response);
|
|
1117
|
-
}
|
|
1118
|
-
|
|
1119
|
-
/**
|
|
1120
|
-
* Required permissions: - ReadCallStats
|
|
1121
|
-
* Get Call Stats
|
|
1122
|
-
*/
|
|
1123
|
-
async getCallStats(requestParameters: GetCallStatsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VideoGetCallStatsResponse> {
|
|
1124
|
-
const response = await this.getCallStatsRaw(requestParameters, initOverrides);
|
|
1125
|
-
return await response.value();
|
|
1126
|
-
}
|
|
1127
|
-
|
|
1128
|
-
/**
|
|
1129
|
-
*
|
|
1130
|
-
* Get Call Type
|
|
1131
|
-
*/
|
|
1132
|
-
async getCallTypeRaw(requestParameters: GetCallTypeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VideoGetCallTypeResponse>> {
|
|
1133
|
-
if (requestParameters.name === null || requestParameters.name === undefined) {
|
|
1134
|
-
throw new runtime.RequiredError('name','Required parameter requestParameters.name was null or undefined when calling getCallType.');
|
|
1135
|
-
}
|
|
1136
|
-
|
|
1137
|
-
const queryParameters: any = {};
|
|
1138
|
-
|
|
1139
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
1140
|
-
|
|
1141
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
1142
|
-
headerParameters["Stream-Auth-Type"] = this.configuration.apiKey("Stream-Auth-Type"); // stream-auth-type authentication
|
|
1143
|
-
}
|
|
1144
|
-
|
|
1145
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
1146
|
-
queryParameters["api_key"] = this.configuration.apiKey("api_key"); // api_key authentication
|
|
1147
|
-
}
|
|
1148
|
-
|
|
1149
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
1150
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // JWT authentication
|
|
1151
|
-
}
|
|
1152
|
-
|
|
1153
|
-
const response = await this.request({
|
|
1154
|
-
path: `/video/calltypes/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(requestParameters.name))),
|
|
1155
|
-
method: 'GET',
|
|
1156
|
-
headers: headerParameters,
|
|
1157
|
-
query: queryParameters,
|
|
1158
|
-
}, initOverrides);
|
|
1159
|
-
|
|
1160
|
-
return new runtime.JSONApiResponse(response);
|
|
1161
|
-
}
|
|
1162
|
-
|
|
1163
|
-
/**
|
|
1164
|
-
*
|
|
1165
|
-
* Get Call Type
|
|
1166
|
-
*/
|
|
1167
|
-
async getCallType(requestParameters: GetCallTypeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VideoGetCallTypeResponse> {
|
|
1168
|
-
const response = await this.getCallTypeRaw(requestParameters, initOverrides);
|
|
1169
|
-
return await response.value();
|
|
1170
|
-
}
|
|
1171
|
-
|
|
1172
|
-
/**
|
|
1173
|
-
* Returns the list of all edges available for video calls.
|
|
1174
|
-
* Get Edges
|
|
1175
|
-
*/
|
|
1176
|
-
async getEdgesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VideoGetEdgesResponse>> {
|
|
1177
|
-
const queryParameters: any = {};
|
|
1178
|
-
|
|
1179
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
1180
|
-
|
|
1181
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
1182
|
-
headerParameters["Stream-Auth-Type"] = this.configuration.apiKey("Stream-Auth-Type"); // stream-auth-type authentication
|
|
1183
|
-
}
|
|
1184
|
-
|
|
1185
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
1186
|
-
queryParameters["api_key"] = this.configuration.apiKey("api_key"); // api_key authentication
|
|
1187
|
-
}
|
|
1188
|
-
|
|
1189
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
1190
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // JWT authentication
|
|
1191
|
-
}
|
|
1192
|
-
|
|
1193
|
-
const response = await this.request({
|
|
1194
|
-
path: `/video/edges`,
|
|
1195
|
-
method: 'GET',
|
|
1196
|
-
headers: headerParameters,
|
|
1197
|
-
query: queryParameters,
|
|
1198
|
-
}, initOverrides);
|
|
1199
|
-
|
|
1200
|
-
return new runtime.JSONApiResponse(response);
|
|
1201
|
-
}
|
|
1202
|
-
|
|
1203
|
-
/**
|
|
1204
|
-
* Returns the list of all edges available for video calls.
|
|
1205
|
-
* Get Edges
|
|
1206
|
-
*/
|
|
1207
|
-
async getEdges(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VideoGetEdgesResponse> {
|
|
1208
|
-
const response = await this.getEdgesRaw(initOverrides);
|
|
1209
|
-
return await response.value();
|
|
1210
|
-
}
|
|
1211
|
-
|
|
1212
|
-
/**
|
|
1213
|
-
* Gets or creates a new call Sends events: - call.created - call.notification - call.ring Required permissions: - CreateCall - ReadCall - UpdateCallSettings
|
|
1214
|
-
* Get or create a call
|
|
1215
|
-
*/
|
|
1216
|
-
async getOrCreateCallRaw(requestParameters: GetOrCreateCallRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VideoGetOrCreateCallResponse>> {
|
|
1217
|
-
if (requestParameters.type === null || requestParameters.type === undefined) {
|
|
1218
|
-
throw new runtime.RequiredError('type','Required parameter requestParameters.type was null or undefined when calling getOrCreateCall.');
|
|
1219
|
-
}
|
|
1220
|
-
|
|
1221
|
-
if (requestParameters.id === null || requestParameters.id === undefined) {
|
|
1222
|
-
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling getOrCreateCall.');
|
|
1223
|
-
}
|
|
1224
|
-
|
|
1225
|
-
if (requestParameters.videoGetOrCreateCallRequest === null || requestParameters.videoGetOrCreateCallRequest === undefined) {
|
|
1226
|
-
throw new runtime.RequiredError('videoGetOrCreateCallRequest','Required parameter requestParameters.videoGetOrCreateCallRequest was null or undefined when calling getOrCreateCall.');
|
|
1227
|
-
}
|
|
1228
|
-
|
|
1229
|
-
const queryParameters: any = {};
|
|
1230
|
-
|
|
1231
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
1232
|
-
|
|
1233
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
1234
|
-
|
|
1235
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
1236
|
-
headerParameters["Stream-Auth-Type"] = this.configuration.apiKey("Stream-Auth-Type"); // stream-auth-type authentication
|
|
1237
|
-
}
|
|
1238
|
-
|
|
1239
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
1240
|
-
queryParameters["api_key"] = this.configuration.apiKey("api_key"); // api_key authentication
|
|
1241
|
-
}
|
|
1242
|
-
|
|
1243
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
1244
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // JWT authentication
|
|
1245
|
-
}
|
|
1246
|
-
|
|
1247
|
-
const response = await this.request({
|
|
1248
|
-
path: `/video/call/{type}/{id}`.replace(`{${"type"}}`, encodeURIComponent(String(requestParameters.type))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
1249
|
-
method: 'POST',
|
|
1250
|
-
headers: headerParameters,
|
|
1251
|
-
query: queryParameters,
|
|
1252
|
-
body: requestParameters.videoGetOrCreateCallRequest,
|
|
1253
|
-
}, initOverrides);
|
|
1254
|
-
|
|
1255
|
-
return new runtime.JSONApiResponse(response);
|
|
1256
|
-
}
|
|
1257
|
-
|
|
1258
|
-
/**
|
|
1259
|
-
* Gets or creates a new call Sends events: - call.created - call.notification - call.ring Required permissions: - CreateCall - ReadCall - UpdateCallSettings
|
|
1260
|
-
* Get or create a call
|
|
1261
|
-
*/
|
|
1262
|
-
async getOrCreateCall(requestParameters: GetOrCreateCallRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VideoGetOrCreateCallResponse> {
|
|
1263
|
-
const response = await this.getOrCreateCallRaw(requestParameters, initOverrides);
|
|
1264
|
-
return await response.value();
|
|
1265
|
-
}
|
|
1266
|
-
|
|
1267
|
-
/**
|
|
1268
|
-
* Sends events: - call.live_started Required permissions: - UpdateCall
|
|
1269
|
-
* Set call as live
|
|
1270
|
-
*/
|
|
1271
|
-
async goLiveRaw(requestParameters: GoLiveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VideoGoLiveResponse>> {
|
|
1272
|
-
if (requestParameters.type === null || requestParameters.type === undefined) {
|
|
1273
|
-
throw new runtime.RequiredError('type','Required parameter requestParameters.type was null or undefined when calling goLive.');
|
|
1274
|
-
}
|
|
1275
|
-
|
|
1276
|
-
if (requestParameters.id === null || requestParameters.id === undefined) {
|
|
1277
|
-
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling goLive.');
|
|
1278
|
-
}
|
|
1279
|
-
|
|
1280
|
-
if (requestParameters.videoGoLiveRequest === null || requestParameters.videoGoLiveRequest === undefined) {
|
|
1281
|
-
throw new runtime.RequiredError('videoGoLiveRequest','Required parameter requestParameters.videoGoLiveRequest was null or undefined when calling goLive.');
|
|
1282
|
-
}
|
|
1283
|
-
|
|
1284
|
-
const queryParameters: any = {};
|
|
1285
|
-
|
|
1286
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
1287
|
-
|
|
1288
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
1289
|
-
|
|
1290
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
1291
|
-
headerParameters["Stream-Auth-Type"] = this.configuration.apiKey("Stream-Auth-Type"); // stream-auth-type authentication
|
|
1292
|
-
}
|
|
1293
|
-
|
|
1294
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
1295
|
-
queryParameters["api_key"] = this.configuration.apiKey("api_key"); // api_key authentication
|
|
1296
|
-
}
|
|
1297
|
-
|
|
1298
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
1299
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // JWT authentication
|
|
1300
|
-
}
|
|
1301
|
-
|
|
1302
|
-
const response = await this.request({
|
|
1303
|
-
path: `/video/call/{type}/{id}/go_live`.replace(`{${"type"}}`, encodeURIComponent(String(requestParameters.type))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
1304
|
-
method: 'POST',
|
|
1305
|
-
headers: headerParameters,
|
|
1306
|
-
query: queryParameters,
|
|
1307
|
-
body: requestParameters.videoGoLiveRequest,
|
|
1308
|
-
}, initOverrides);
|
|
1309
|
-
|
|
1310
|
-
return new runtime.JSONApiResponse(response);
|
|
1311
|
-
}
|
|
1312
|
-
|
|
1313
|
-
/**
|
|
1314
|
-
* Sends events: - call.live_started Required permissions: - UpdateCall
|
|
1315
|
-
* Set call as live
|
|
1316
|
-
*/
|
|
1317
|
-
async goLive(requestParameters: GoLiveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VideoGoLiveResponse> {
|
|
1318
|
-
const response = await this.goLiveRaw(requestParameters, initOverrides);
|
|
1319
|
-
return await response.value();
|
|
1320
|
-
}
|
|
1321
|
-
|
|
1322
|
-
/**
|
|
1323
|
-
*
|
|
1324
|
-
* List Call Type
|
|
1325
|
-
*/
|
|
1326
|
-
async listCallTypesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VideoListCallTypeResponse>> {
|
|
1327
|
-
const queryParameters: any = {};
|
|
1328
|
-
|
|
1329
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
1330
|
-
|
|
1331
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
1332
|
-
headerParameters["Stream-Auth-Type"] = this.configuration.apiKey("Stream-Auth-Type"); // stream-auth-type authentication
|
|
1333
|
-
}
|
|
1334
|
-
|
|
1335
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
1336
|
-
queryParameters["api_key"] = this.configuration.apiKey("api_key"); // api_key authentication
|
|
1337
|
-
}
|
|
1338
|
-
|
|
1339
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
1340
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // JWT authentication
|
|
1341
|
-
}
|
|
1342
|
-
|
|
1343
|
-
const response = await this.request({
|
|
1344
|
-
path: `/video/calltypes`,
|
|
1345
|
-
method: 'GET',
|
|
1346
|
-
headers: headerParameters,
|
|
1347
|
-
query: queryParameters,
|
|
1348
|
-
}, initOverrides);
|
|
1349
|
-
|
|
1350
|
-
return new runtime.JSONApiResponse(response);
|
|
1351
|
-
}
|
|
1352
|
-
|
|
1353
|
-
/**
|
|
1354
|
-
*
|
|
1355
|
-
* List Call Type
|
|
1356
|
-
*/
|
|
1357
|
-
async listCallTypes(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VideoListCallTypeResponse> {
|
|
1358
|
-
const response = await this.listCallTypesRaw(initOverrides);
|
|
1359
|
-
return await response.value();
|
|
1360
|
-
}
|
|
1361
|
-
|
|
1362
|
-
/**
|
|
1363
|
-
* Returns all available devices
|
|
1364
|
-
* List devices
|
|
1365
|
-
*/
|
|
1366
|
-
async listDevicesRaw(requestParameters: ListDevicesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VideoListDevicesResponse>> {
|
|
1367
|
-
const queryParameters: any = {};
|
|
1368
|
-
|
|
1369
|
-
if (requestParameters.userId !== undefined) {
|
|
1370
|
-
queryParameters['user_id'] = requestParameters.userId;
|
|
1371
|
-
}
|
|
1372
|
-
|
|
1373
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
1374
|
-
|
|
1375
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
1376
|
-
headerParameters["Stream-Auth-Type"] = this.configuration.apiKey("Stream-Auth-Type"); // stream-auth-type authentication
|
|
1377
|
-
}
|
|
1378
|
-
|
|
1379
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
1380
|
-
queryParameters["api_key"] = this.configuration.apiKey("api_key"); // api_key authentication
|
|
1381
|
-
}
|
|
1382
|
-
|
|
1383
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
1384
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // JWT authentication
|
|
1385
|
-
}
|
|
1386
|
-
|
|
1387
|
-
const response = await this.request({
|
|
1388
|
-
path: `/video/devices`,
|
|
1389
|
-
method: 'GET',
|
|
1390
|
-
headers: headerParameters,
|
|
1391
|
-
query: queryParameters,
|
|
1392
|
-
}, initOverrides);
|
|
1393
|
-
|
|
1394
|
-
return new runtime.JSONApiResponse(response);
|
|
1395
|
-
}
|
|
1396
|
-
|
|
1397
|
-
/**
|
|
1398
|
-
* Returns all available devices
|
|
1399
|
-
* List devices
|
|
1400
|
-
*/
|
|
1401
|
-
async listDevices(requestParameters: ListDevicesRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VideoListDevicesResponse> {
|
|
1402
|
-
const response = await this.listDevicesRaw(requestParameters, initOverrides);
|
|
1403
|
-
return await response.value();
|
|
1404
|
-
}
|
|
1405
|
-
|
|
1406
|
-
/**
|
|
1407
|
-
* Lists external storage
|
|
1408
|
-
* List external storage
|
|
1409
|
-
*/
|
|
1410
|
-
async listExternalStorageRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VideoListExternalStorageResponse>> {
|
|
1411
|
-
const queryParameters: any = {};
|
|
1412
|
-
|
|
1413
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
1414
|
-
|
|
1415
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
1416
|
-
headerParameters["Stream-Auth-Type"] = this.configuration.apiKey("Stream-Auth-Type"); // stream-auth-type authentication
|
|
1417
|
-
}
|
|
1418
|
-
|
|
1419
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
1420
|
-
queryParameters["api_key"] = this.configuration.apiKey("api_key"); // api_key authentication
|
|
1421
|
-
}
|
|
1422
|
-
|
|
1423
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
1424
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // JWT authentication
|
|
1425
|
-
}
|
|
1426
|
-
|
|
1427
|
-
const response = await this.request({
|
|
1428
|
-
path: `/video/external_storage`,
|
|
1429
|
-
method: 'GET',
|
|
1430
|
-
headers: headerParameters,
|
|
1431
|
-
query: queryParameters,
|
|
1432
|
-
}, initOverrides);
|
|
1433
|
-
|
|
1434
|
-
return new runtime.JSONApiResponse(response);
|
|
1435
|
-
}
|
|
1436
|
-
|
|
1437
|
-
/**
|
|
1438
|
-
* Lists external storage
|
|
1439
|
-
* List external storage
|
|
1440
|
-
*/
|
|
1441
|
-
async listExternalStorage(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VideoListExternalStorageResponse> {
|
|
1442
|
-
const response = await this.listExternalStorageRaw(initOverrides);
|
|
1443
|
-
return await response.value();
|
|
1444
|
-
}
|
|
1445
|
-
|
|
1446
|
-
/**
|
|
1447
|
-
* Lists recordings Required permissions: - ListRecordings
|
|
1448
|
-
* List recordings
|
|
1449
|
-
*/
|
|
1450
|
-
async listRecordingsRaw(requestParameters: ListRecordingsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VideoListRecordingsResponse>> {
|
|
1451
|
-
if (requestParameters.type === null || requestParameters.type === undefined) {
|
|
1452
|
-
throw new runtime.RequiredError('type','Required parameter requestParameters.type was null or undefined when calling listRecordings.');
|
|
1453
|
-
}
|
|
1454
|
-
|
|
1455
|
-
if (requestParameters.id === null || requestParameters.id === undefined) {
|
|
1456
|
-
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling listRecordings.');
|
|
1457
|
-
}
|
|
1458
|
-
|
|
1459
|
-
const queryParameters: any = {};
|
|
1460
|
-
|
|
1461
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
1462
|
-
|
|
1463
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
1464
|
-
headerParameters["Stream-Auth-Type"] = this.configuration.apiKey("Stream-Auth-Type"); // stream-auth-type authentication
|
|
1465
|
-
}
|
|
1466
|
-
|
|
1467
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
1468
|
-
queryParameters["api_key"] = this.configuration.apiKey("api_key"); // api_key authentication
|
|
1469
|
-
}
|
|
1470
|
-
|
|
1471
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
1472
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // JWT authentication
|
|
1473
|
-
}
|
|
1474
|
-
|
|
1475
|
-
const response = await this.request({
|
|
1476
|
-
path: `/video/call/{type}/{id}/recordings`.replace(`{${"type"}}`, encodeURIComponent(String(requestParameters.type))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
1477
|
-
method: 'GET',
|
|
1478
|
-
headers: headerParameters,
|
|
1479
|
-
query: queryParameters,
|
|
1480
|
-
}, initOverrides);
|
|
1481
|
-
|
|
1482
|
-
return new runtime.JSONApiResponse(response);
|
|
1483
|
-
}
|
|
1484
|
-
|
|
1485
|
-
/**
|
|
1486
|
-
* Lists recordings Required permissions: - ListRecordings
|
|
1487
|
-
* List recordings
|
|
1488
|
-
*/
|
|
1489
|
-
async listRecordings(requestParameters: ListRecordingsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VideoListRecordingsResponse> {
|
|
1490
|
-
const response = await this.listRecordingsRaw(requestParameters, initOverrides);
|
|
1491
|
-
return await response.value();
|
|
1492
|
-
}
|
|
1493
|
-
|
|
1494
|
-
/**
|
|
1495
|
-
* Lists transcriptions Required permissions: - ListTranscriptions
|
|
1496
|
-
* List transcriptions
|
|
1497
|
-
*/
|
|
1498
|
-
async listTranscriptionsRaw(requestParameters: ListTranscriptionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VideoListTranscriptionsResponse>> {
|
|
1499
|
-
if (requestParameters.type === null || requestParameters.type === undefined) {
|
|
1500
|
-
throw new runtime.RequiredError('type','Required parameter requestParameters.type was null or undefined when calling listTranscriptions.');
|
|
1501
|
-
}
|
|
1502
|
-
|
|
1503
|
-
if (requestParameters.id === null || requestParameters.id === undefined) {
|
|
1504
|
-
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling listTranscriptions.');
|
|
1505
|
-
}
|
|
1506
|
-
|
|
1507
|
-
const queryParameters: any = {};
|
|
1508
|
-
|
|
1509
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
1510
|
-
|
|
1511
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
1512
|
-
headerParameters["Stream-Auth-Type"] = this.configuration.apiKey("Stream-Auth-Type"); // stream-auth-type authentication
|
|
1513
|
-
}
|
|
1514
|
-
|
|
1515
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
1516
|
-
queryParameters["api_key"] = this.configuration.apiKey("api_key"); // api_key authentication
|
|
1517
|
-
}
|
|
1518
|
-
|
|
1519
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
1520
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // JWT authentication
|
|
1521
|
-
}
|
|
1522
|
-
|
|
1523
|
-
const response = await this.request({
|
|
1524
|
-
path: `/video/call/{type}/{id}/transcriptions`.replace(`{${"type"}}`, encodeURIComponent(String(requestParameters.type))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
1525
|
-
method: 'GET',
|
|
1526
|
-
headers: headerParameters,
|
|
1527
|
-
query: queryParameters,
|
|
1528
|
-
}, initOverrides);
|
|
1529
|
-
|
|
1530
|
-
return new runtime.JSONApiResponse(response);
|
|
1531
|
-
}
|
|
1532
|
-
|
|
1533
|
-
/**
|
|
1534
|
-
* Lists transcriptions Required permissions: - ListTranscriptions
|
|
1535
|
-
* List transcriptions
|
|
1536
|
-
*/
|
|
1537
|
-
async listTranscriptions(requestParameters: ListTranscriptionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VideoListTranscriptionsResponse> {
|
|
1538
|
-
const response = await this.listTranscriptionsRaw(requestParameters, initOverrides);
|
|
1539
|
-
return await response.value();
|
|
1540
|
-
}
|
|
1541
|
-
|
|
1542
|
-
/**
|
|
1543
|
-
* Mutes users in a call Required permissions: - MuteUsers
|
|
1544
|
-
* Mute users
|
|
1545
|
-
*/
|
|
1546
|
-
async muteUsersRaw(requestParameters: MuteUsersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VideoMuteUsersResponse>> {
|
|
1547
|
-
if (requestParameters.type === null || requestParameters.type === undefined) {
|
|
1548
|
-
throw new runtime.RequiredError('type','Required parameter requestParameters.type was null or undefined when calling muteUsers.');
|
|
1549
|
-
}
|
|
1550
|
-
|
|
1551
|
-
if (requestParameters.id === null || requestParameters.id === undefined) {
|
|
1552
|
-
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling muteUsers.');
|
|
1553
|
-
}
|
|
1554
|
-
|
|
1555
|
-
if (requestParameters.videoMuteUsersRequest === null || requestParameters.videoMuteUsersRequest === undefined) {
|
|
1556
|
-
throw new runtime.RequiredError('videoMuteUsersRequest','Required parameter requestParameters.videoMuteUsersRequest was null or undefined when calling muteUsers.');
|
|
1557
|
-
}
|
|
1558
|
-
|
|
1559
|
-
const queryParameters: any = {};
|
|
1560
|
-
|
|
1561
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
1562
|
-
|
|
1563
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
1564
|
-
|
|
1565
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
1566
|
-
headerParameters["Stream-Auth-Type"] = this.configuration.apiKey("Stream-Auth-Type"); // stream-auth-type authentication
|
|
1567
|
-
}
|
|
1568
|
-
|
|
1569
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
1570
|
-
queryParameters["api_key"] = this.configuration.apiKey("api_key"); // api_key authentication
|
|
1571
|
-
}
|
|
1572
|
-
|
|
1573
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
1574
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // JWT authentication
|
|
1575
|
-
}
|
|
1576
|
-
|
|
1577
|
-
const response = await this.request({
|
|
1578
|
-
path: `/video/call/{type}/{id}/mute_users`.replace(`{${"type"}}`, encodeURIComponent(String(requestParameters.type))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
1579
|
-
method: 'POST',
|
|
1580
|
-
headers: headerParameters,
|
|
1581
|
-
query: queryParameters,
|
|
1582
|
-
body: requestParameters.videoMuteUsersRequest,
|
|
1583
|
-
}, initOverrides);
|
|
1584
|
-
|
|
1585
|
-
return new runtime.JSONApiResponse(response);
|
|
1586
|
-
}
|
|
1587
|
-
|
|
1588
|
-
/**
|
|
1589
|
-
* Mutes users in a call Required permissions: - MuteUsers
|
|
1590
|
-
* Mute users
|
|
1591
|
-
*/
|
|
1592
|
-
async muteUsers(requestParameters: MuteUsersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VideoMuteUsersResponse> {
|
|
1593
|
-
const response = await this.muteUsersRaw(requestParameters, initOverrides);
|
|
1594
|
-
return await response.value();
|
|
1595
|
-
}
|
|
1596
|
-
|
|
1597
|
-
/**
|
|
1598
|
-
* Query call members with filter query Required permissions: - ReadCall
|
|
1599
|
-
* Query call members
|
|
1600
|
-
*/
|
|
1601
|
-
async queryCallMembersRaw(requestParameters: QueryCallMembersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VideoQueryCallMembersResponse>> {
|
|
1602
|
-
if (requestParameters.videoQueryCallMembersRequest === null || requestParameters.videoQueryCallMembersRequest === undefined) {
|
|
1603
|
-
throw new runtime.RequiredError('videoQueryCallMembersRequest','Required parameter requestParameters.videoQueryCallMembersRequest was null or undefined when calling queryCallMembers.');
|
|
1604
|
-
}
|
|
1605
|
-
|
|
1606
|
-
const queryParameters: any = {};
|
|
1607
|
-
|
|
1608
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
1609
|
-
|
|
1610
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
1611
|
-
|
|
1612
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
1613
|
-
headerParameters["Stream-Auth-Type"] = this.configuration.apiKey("Stream-Auth-Type"); // stream-auth-type authentication
|
|
1614
|
-
}
|
|
1615
|
-
|
|
1616
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
1617
|
-
queryParameters["api_key"] = this.configuration.apiKey("api_key"); // api_key authentication
|
|
1618
|
-
}
|
|
1619
|
-
|
|
1620
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
1621
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // JWT authentication
|
|
1622
|
-
}
|
|
1623
|
-
|
|
1624
|
-
const response = await this.request({
|
|
1625
|
-
path: `/video/call/members`,
|
|
1626
|
-
method: 'POST',
|
|
1627
|
-
headers: headerParameters,
|
|
1628
|
-
query: queryParameters,
|
|
1629
|
-
body: requestParameters.videoQueryCallMembersRequest,
|
|
1630
|
-
}, initOverrides);
|
|
1631
|
-
|
|
1632
|
-
return new runtime.JSONApiResponse(response);
|
|
1633
|
-
}
|
|
1634
|
-
|
|
1635
|
-
/**
|
|
1636
|
-
* Query call members with filter query Required permissions: - ReadCall
|
|
1637
|
-
* Query call members
|
|
1638
|
-
*/
|
|
1639
|
-
async queryCallMembers(requestParameters: QueryCallMembersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VideoQueryCallMembersResponse> {
|
|
1640
|
-
const response = await this.queryCallMembersRaw(requestParameters, initOverrides);
|
|
1641
|
-
return await response.value();
|
|
1642
|
-
}
|
|
1643
|
-
|
|
1644
|
-
/**
|
|
1645
|
-
* Required permissions: - ReadCallStats
|
|
1646
|
-
* Query Call Stats
|
|
1647
|
-
*/
|
|
1648
|
-
async queryCallStatsRaw(requestParameters: QueryCallStatsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VideoQueryCallStatsResponse>> {
|
|
1649
|
-
if (requestParameters.videoQueryCallStatsRequest === null || requestParameters.videoQueryCallStatsRequest === undefined) {
|
|
1650
|
-
throw new runtime.RequiredError('videoQueryCallStatsRequest','Required parameter requestParameters.videoQueryCallStatsRequest was null or undefined when calling queryCallStats.');
|
|
1651
|
-
}
|
|
1652
|
-
|
|
1653
|
-
const queryParameters: any = {};
|
|
1654
|
-
|
|
1655
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
1656
|
-
|
|
1657
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
1658
|
-
|
|
1659
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
1660
|
-
headerParameters["Stream-Auth-Type"] = this.configuration.apiKey("Stream-Auth-Type"); // stream-auth-type authentication
|
|
1661
|
-
}
|
|
1662
|
-
|
|
1663
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
1664
|
-
queryParameters["api_key"] = this.configuration.apiKey("api_key"); // api_key authentication
|
|
1665
|
-
}
|
|
1666
|
-
|
|
1667
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
1668
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // JWT authentication
|
|
1669
|
-
}
|
|
1670
|
-
|
|
1671
|
-
const response = await this.request({
|
|
1672
|
-
path: `/video/call/stats`,
|
|
1673
|
-
method: 'POST',
|
|
1674
|
-
headers: headerParameters,
|
|
1675
|
-
query: queryParameters,
|
|
1676
|
-
body: requestParameters.videoQueryCallStatsRequest,
|
|
1677
|
-
}, initOverrides);
|
|
1678
|
-
|
|
1679
|
-
return new runtime.JSONApiResponse(response);
|
|
1680
|
-
}
|
|
1681
|
-
|
|
1682
|
-
/**
|
|
1683
|
-
* Required permissions: - ReadCallStats
|
|
1684
|
-
* Query Call Stats
|
|
1685
|
-
*/
|
|
1686
|
-
async queryCallStats(requestParameters: QueryCallStatsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VideoQueryCallStatsResponse> {
|
|
1687
|
-
const response = await this.queryCallStatsRaw(requestParameters, initOverrides);
|
|
1688
|
-
return await response.value();
|
|
1689
|
-
}
|
|
1690
|
-
|
|
1691
|
-
/**
|
|
1692
|
-
* Query calls with filter query Required permissions: - ReadCall
|
|
1693
|
-
* Query call
|
|
1694
|
-
*/
|
|
1695
|
-
async queryCallsRaw(requestParameters: QueryCallsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VideoQueryCallsResponse>> {
|
|
1696
|
-
if (requestParameters.videoQueryCallsRequest === null || requestParameters.videoQueryCallsRequest === undefined) {
|
|
1697
|
-
throw new runtime.RequiredError('videoQueryCallsRequest','Required parameter requestParameters.videoQueryCallsRequest was null or undefined when calling queryCalls.');
|
|
1698
|
-
}
|
|
1699
|
-
|
|
1700
|
-
const queryParameters: any = {};
|
|
1701
|
-
|
|
1702
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
1703
|
-
|
|
1704
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
1705
|
-
|
|
1706
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
1707
|
-
headerParameters["Stream-Auth-Type"] = this.configuration.apiKey("Stream-Auth-Type"); // stream-auth-type authentication
|
|
1708
|
-
}
|
|
1709
|
-
|
|
1710
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
1711
|
-
queryParameters["api_key"] = this.configuration.apiKey("api_key"); // api_key authentication
|
|
1712
|
-
}
|
|
1713
|
-
|
|
1714
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
1715
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // JWT authentication
|
|
1716
|
-
}
|
|
1717
|
-
|
|
1718
|
-
const response = await this.request({
|
|
1719
|
-
path: `/video/calls`,
|
|
1720
|
-
method: 'POST',
|
|
1721
|
-
headers: headerParameters,
|
|
1722
|
-
query: queryParameters,
|
|
1723
|
-
body: requestParameters.videoQueryCallsRequest,
|
|
1724
|
-
}, initOverrides);
|
|
1725
|
-
|
|
1726
|
-
return new runtime.JSONApiResponse(response);
|
|
1727
|
-
}
|
|
1728
|
-
|
|
1729
|
-
/**
|
|
1730
|
-
* Query calls with filter query Required permissions: - ReadCall
|
|
1731
|
-
* Query call
|
|
1732
|
-
*/
|
|
1733
|
-
async queryCalls(requestParameters: QueryCallsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VideoQueryCallsResponse> {
|
|
1734
|
-
const response = await this.queryCallsRaw(requestParameters, initOverrides);
|
|
1735
|
-
return await response.value();
|
|
1736
|
-
}
|
|
1737
|
-
|
|
1738
|
-
/**
|
|
1739
|
-
* Sends custom event to the call Sends events: - custom Required permissions: - SendEvent
|
|
1740
|
-
* Send custom event
|
|
1741
|
-
*/
|
|
1742
|
-
async sendCallEventRaw(requestParameters: SendCallEventRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VideoSendCallEventResponse>> {
|
|
1743
|
-
if (requestParameters.type === null || requestParameters.type === undefined) {
|
|
1744
|
-
throw new runtime.RequiredError('type','Required parameter requestParameters.type was null or undefined when calling sendCallEvent.');
|
|
1745
|
-
}
|
|
1746
|
-
|
|
1747
|
-
if (requestParameters.id === null || requestParameters.id === undefined) {
|
|
1748
|
-
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling sendCallEvent.');
|
|
1749
|
-
}
|
|
1750
|
-
|
|
1751
|
-
if (requestParameters.videoSendCallEventRequest === null || requestParameters.videoSendCallEventRequest === undefined) {
|
|
1752
|
-
throw new runtime.RequiredError('videoSendCallEventRequest','Required parameter requestParameters.videoSendCallEventRequest was null or undefined when calling sendCallEvent.');
|
|
1753
|
-
}
|
|
1754
|
-
|
|
1755
|
-
const queryParameters: any = {};
|
|
1756
|
-
|
|
1757
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
1758
|
-
|
|
1759
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
1760
|
-
|
|
1761
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
1762
|
-
headerParameters["Stream-Auth-Type"] = this.configuration.apiKey("Stream-Auth-Type"); // stream-auth-type authentication
|
|
1763
|
-
}
|
|
1764
|
-
|
|
1765
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
1766
|
-
queryParameters["api_key"] = this.configuration.apiKey("api_key"); // api_key authentication
|
|
1767
|
-
}
|
|
1768
|
-
|
|
1769
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
1770
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // JWT authentication
|
|
1771
|
-
}
|
|
1772
|
-
|
|
1773
|
-
const response = await this.request({
|
|
1774
|
-
path: `/video/call/{type}/{id}/event`.replace(`{${"type"}}`, encodeURIComponent(String(requestParameters.type))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
1775
|
-
method: 'POST',
|
|
1776
|
-
headers: headerParameters,
|
|
1777
|
-
query: queryParameters,
|
|
1778
|
-
body: requestParameters.videoSendCallEventRequest,
|
|
1779
|
-
}, initOverrides);
|
|
1780
|
-
|
|
1781
|
-
return new runtime.JSONApiResponse(response);
|
|
1782
|
-
}
|
|
1783
|
-
|
|
1784
|
-
/**
|
|
1785
|
-
* Sends custom event to the call Sends events: - custom Required permissions: - SendEvent
|
|
1786
|
-
* Send custom event
|
|
1787
|
-
*/
|
|
1788
|
-
async sendCallEvent(requestParameters: SendCallEventRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VideoSendCallEventResponse> {
|
|
1789
|
-
const response = await this.sendCallEventRaw(requestParameters, initOverrides);
|
|
1790
|
-
return await response.value();
|
|
1791
|
-
}
|
|
1792
|
-
|
|
1793
|
-
/**
|
|
1794
|
-
* Starts HLS broadcasting Required permissions: - StartBroadcasting
|
|
1795
|
-
* Start HLS broadcasting
|
|
1796
|
-
*/
|
|
1797
|
-
async startHLSBroadcastingRaw(requestParameters: StartHLSBroadcastingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VideoStartHLSBroadcastingResponse>> {
|
|
1798
|
-
if (requestParameters.type === null || requestParameters.type === undefined) {
|
|
1799
|
-
throw new runtime.RequiredError('type','Required parameter requestParameters.type was null or undefined when calling startHLSBroadcasting.');
|
|
1800
|
-
}
|
|
1801
|
-
|
|
1802
|
-
if (requestParameters.id === null || requestParameters.id === undefined) {
|
|
1803
|
-
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling startHLSBroadcasting.');
|
|
1804
|
-
}
|
|
1805
|
-
|
|
1806
|
-
const queryParameters: any = {};
|
|
1807
|
-
|
|
1808
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
1809
|
-
|
|
1810
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
1811
|
-
headerParameters["Stream-Auth-Type"] = this.configuration.apiKey("Stream-Auth-Type"); // stream-auth-type authentication
|
|
1812
|
-
}
|
|
1813
|
-
|
|
1814
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
1815
|
-
queryParameters["api_key"] = this.configuration.apiKey("api_key"); // api_key authentication
|
|
1816
|
-
}
|
|
1817
|
-
|
|
1818
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
1819
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // JWT authentication
|
|
1820
|
-
}
|
|
1821
|
-
|
|
1822
|
-
const response = await this.request({
|
|
1823
|
-
path: `/video/call/{type}/{id}/start_broadcasting`.replace(`{${"type"}}`, encodeURIComponent(String(requestParameters.type))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
1824
|
-
method: 'POST',
|
|
1825
|
-
headers: headerParameters,
|
|
1826
|
-
query: queryParameters,
|
|
1827
|
-
}, initOverrides);
|
|
1828
|
-
|
|
1829
|
-
return new runtime.JSONApiResponse(response);
|
|
1830
|
-
}
|
|
1831
|
-
|
|
1832
|
-
/**
|
|
1833
|
-
* Starts HLS broadcasting Required permissions: - StartBroadcasting
|
|
1834
|
-
* Start HLS broadcasting
|
|
1835
|
-
*/
|
|
1836
|
-
async startHLSBroadcasting(requestParameters: StartHLSBroadcastingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VideoStartHLSBroadcastingResponse> {
|
|
1837
|
-
const response = await this.startHLSBroadcastingRaw(requestParameters, initOverrides);
|
|
1838
|
-
return await response.value();
|
|
1839
|
-
}
|
|
1840
|
-
|
|
1841
|
-
/**
|
|
1842
|
-
* Starts recording Sends events: - call.recording_started Required permissions: - StartRecording
|
|
1843
|
-
* Start recording
|
|
1844
|
-
*/
|
|
1845
|
-
async startRecordingRaw(requestParameters: StartRecordingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VideoStartRecordingResponse>> {
|
|
1846
|
-
if (requestParameters.type === null || requestParameters.type === undefined) {
|
|
1847
|
-
throw new runtime.RequiredError('type','Required parameter requestParameters.type was null or undefined when calling startRecording.');
|
|
1848
|
-
}
|
|
1849
|
-
|
|
1850
|
-
if (requestParameters.id === null || requestParameters.id === undefined) {
|
|
1851
|
-
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling startRecording.');
|
|
1852
|
-
}
|
|
1853
|
-
|
|
1854
|
-
if (requestParameters.videoStartRecordingRequest === null || requestParameters.videoStartRecordingRequest === undefined) {
|
|
1855
|
-
throw new runtime.RequiredError('videoStartRecordingRequest','Required parameter requestParameters.videoStartRecordingRequest was null or undefined when calling startRecording.');
|
|
1856
|
-
}
|
|
1857
|
-
|
|
1858
|
-
const queryParameters: any = {};
|
|
1859
|
-
|
|
1860
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
1861
|
-
|
|
1862
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
1863
|
-
|
|
1864
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
1865
|
-
headerParameters["Stream-Auth-Type"] = this.configuration.apiKey("Stream-Auth-Type"); // stream-auth-type authentication
|
|
1866
|
-
}
|
|
1867
|
-
|
|
1868
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
1869
|
-
queryParameters["api_key"] = this.configuration.apiKey("api_key"); // api_key authentication
|
|
1870
|
-
}
|
|
1871
|
-
|
|
1872
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
1873
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // JWT authentication
|
|
1874
|
-
}
|
|
1875
|
-
|
|
1876
|
-
const response = await this.request({
|
|
1877
|
-
path: `/video/call/{type}/{id}/start_recording`.replace(`{${"type"}}`, encodeURIComponent(String(requestParameters.type))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
1878
|
-
method: 'POST',
|
|
1879
|
-
headers: headerParameters,
|
|
1880
|
-
query: queryParameters,
|
|
1881
|
-
body: requestParameters.videoStartRecordingRequest,
|
|
1882
|
-
}, initOverrides);
|
|
1883
|
-
|
|
1884
|
-
return new runtime.JSONApiResponse(response);
|
|
1885
|
-
}
|
|
1886
|
-
|
|
1887
|
-
/**
|
|
1888
|
-
* Starts recording Sends events: - call.recording_started Required permissions: - StartRecording
|
|
1889
|
-
* Start recording
|
|
1890
|
-
*/
|
|
1891
|
-
async startRecording(requestParameters: StartRecordingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VideoStartRecordingResponse> {
|
|
1892
|
-
const response = await this.startRecordingRaw(requestParameters, initOverrides);
|
|
1893
|
-
return await response.value();
|
|
1894
|
-
}
|
|
1895
|
-
|
|
1896
|
-
/**
|
|
1897
|
-
* Starts transcription Required permissions: - StartTranscription
|
|
1898
|
-
* Start transcription
|
|
1899
|
-
*/
|
|
1900
|
-
async startTranscriptionRaw(requestParameters: StartTranscriptionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VideoStartTranscriptionResponse>> {
|
|
1901
|
-
if (requestParameters.type === null || requestParameters.type === undefined) {
|
|
1902
|
-
throw new runtime.RequiredError('type','Required parameter requestParameters.type was null or undefined when calling startTranscription.');
|
|
1903
|
-
}
|
|
1904
|
-
|
|
1905
|
-
if (requestParameters.id === null || requestParameters.id === undefined) {
|
|
1906
|
-
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling startTranscription.');
|
|
1907
|
-
}
|
|
1908
|
-
|
|
1909
|
-
if (requestParameters.videoStartTranscriptionRequest === null || requestParameters.videoStartTranscriptionRequest === undefined) {
|
|
1910
|
-
throw new runtime.RequiredError('videoStartTranscriptionRequest','Required parameter requestParameters.videoStartTranscriptionRequest was null or undefined when calling startTranscription.');
|
|
1911
|
-
}
|
|
1912
|
-
|
|
1913
|
-
const queryParameters: any = {};
|
|
1914
|
-
|
|
1915
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
1916
|
-
|
|
1917
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
1918
|
-
|
|
1919
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
1920
|
-
headerParameters["Stream-Auth-Type"] = this.configuration.apiKey("Stream-Auth-Type"); // stream-auth-type authentication
|
|
1921
|
-
}
|
|
1922
|
-
|
|
1923
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
1924
|
-
queryParameters["api_key"] = this.configuration.apiKey("api_key"); // api_key authentication
|
|
1925
|
-
}
|
|
1926
|
-
|
|
1927
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
1928
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // JWT authentication
|
|
1929
|
-
}
|
|
1930
|
-
|
|
1931
|
-
const response = await this.request({
|
|
1932
|
-
path: `/video/call/{type}/{id}/start_transcription`.replace(`{${"type"}}`, encodeURIComponent(String(requestParameters.type))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
1933
|
-
method: 'POST',
|
|
1934
|
-
headers: headerParameters,
|
|
1935
|
-
query: queryParameters,
|
|
1936
|
-
body: requestParameters.videoStartTranscriptionRequest,
|
|
1937
|
-
}, initOverrides);
|
|
1938
|
-
|
|
1939
|
-
return new runtime.JSONApiResponse(response);
|
|
1940
|
-
}
|
|
1941
|
-
|
|
1942
|
-
/**
|
|
1943
|
-
* Starts transcription Required permissions: - StartTranscription
|
|
1944
|
-
* Start transcription
|
|
1945
|
-
*/
|
|
1946
|
-
async startTranscription(requestParameters: StartTranscriptionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VideoStartTranscriptionResponse> {
|
|
1947
|
-
const response = await this.startTranscriptionRaw(requestParameters, initOverrides);
|
|
1948
|
-
return await response.value();
|
|
1949
|
-
}
|
|
1950
|
-
|
|
1951
|
-
/**
|
|
1952
|
-
* Stops HLS broadcasting Required permissions: - StopBroadcasting
|
|
1953
|
-
* Stop HLS broadcasting
|
|
1954
|
-
*/
|
|
1955
|
-
async stopHLSBroadcastingRaw(requestParameters: StopHLSBroadcastingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VideoStopHLSBroadcastingResponse>> {
|
|
1956
|
-
if (requestParameters.type === null || requestParameters.type === undefined) {
|
|
1957
|
-
throw new runtime.RequiredError('type','Required parameter requestParameters.type was null or undefined when calling stopHLSBroadcasting.');
|
|
1958
|
-
}
|
|
1959
|
-
|
|
1960
|
-
if (requestParameters.id === null || requestParameters.id === undefined) {
|
|
1961
|
-
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling stopHLSBroadcasting.');
|
|
1962
|
-
}
|
|
1963
|
-
|
|
1964
|
-
const queryParameters: any = {};
|
|
1965
|
-
|
|
1966
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
1967
|
-
|
|
1968
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
1969
|
-
headerParameters["Stream-Auth-Type"] = this.configuration.apiKey("Stream-Auth-Type"); // stream-auth-type authentication
|
|
1970
|
-
}
|
|
1971
|
-
|
|
1972
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
1973
|
-
queryParameters["api_key"] = this.configuration.apiKey("api_key"); // api_key authentication
|
|
1974
|
-
}
|
|
1975
|
-
|
|
1976
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
1977
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // JWT authentication
|
|
1978
|
-
}
|
|
1979
|
-
|
|
1980
|
-
const response = await this.request({
|
|
1981
|
-
path: `/video/call/{type}/{id}/stop_broadcasting`.replace(`{${"type"}}`, encodeURIComponent(String(requestParameters.type))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
1982
|
-
method: 'POST',
|
|
1983
|
-
headers: headerParameters,
|
|
1984
|
-
query: queryParameters,
|
|
1985
|
-
}, initOverrides);
|
|
1986
|
-
|
|
1987
|
-
return new runtime.JSONApiResponse(response);
|
|
1988
|
-
}
|
|
1989
|
-
|
|
1990
|
-
/**
|
|
1991
|
-
* Stops HLS broadcasting Required permissions: - StopBroadcasting
|
|
1992
|
-
* Stop HLS broadcasting
|
|
1993
|
-
*/
|
|
1994
|
-
async stopHLSBroadcasting(requestParameters: StopHLSBroadcastingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VideoStopHLSBroadcastingResponse> {
|
|
1995
|
-
const response = await this.stopHLSBroadcastingRaw(requestParameters, initOverrides);
|
|
1996
|
-
return await response.value();
|
|
1997
|
-
}
|
|
1998
|
-
|
|
1999
|
-
/**
|
|
2000
|
-
* Sends events: - call.updated Required permissions: - UpdateCall
|
|
2001
|
-
* Set call as not live
|
|
2002
|
-
*/
|
|
2003
|
-
async stopLiveRaw(requestParameters: StopLiveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VideoStopLiveResponse>> {
|
|
2004
|
-
if (requestParameters.type === null || requestParameters.type === undefined) {
|
|
2005
|
-
throw new runtime.RequiredError('type','Required parameter requestParameters.type was null or undefined when calling stopLive.');
|
|
2006
|
-
}
|
|
2007
|
-
|
|
2008
|
-
if (requestParameters.id === null || requestParameters.id === undefined) {
|
|
2009
|
-
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling stopLive.');
|
|
2010
|
-
}
|
|
2011
|
-
|
|
2012
|
-
const queryParameters: any = {};
|
|
2013
|
-
|
|
2014
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
2015
|
-
|
|
2016
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
2017
|
-
headerParameters["Stream-Auth-Type"] = this.configuration.apiKey("Stream-Auth-Type"); // stream-auth-type authentication
|
|
2018
|
-
}
|
|
2019
|
-
|
|
2020
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
2021
|
-
queryParameters["api_key"] = this.configuration.apiKey("api_key"); // api_key authentication
|
|
2022
|
-
}
|
|
2023
|
-
|
|
2024
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
2025
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // JWT authentication
|
|
2026
|
-
}
|
|
2027
|
-
|
|
2028
|
-
const response = await this.request({
|
|
2029
|
-
path: `/video/call/{type}/{id}/stop_live`.replace(`{${"type"}}`, encodeURIComponent(String(requestParameters.type))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
2030
|
-
method: 'POST',
|
|
2031
|
-
headers: headerParameters,
|
|
2032
|
-
query: queryParameters,
|
|
2033
|
-
}, initOverrides);
|
|
2034
|
-
|
|
2035
|
-
return new runtime.JSONApiResponse(response);
|
|
2036
|
-
}
|
|
2037
|
-
|
|
2038
|
-
/**
|
|
2039
|
-
* Sends events: - call.updated Required permissions: - UpdateCall
|
|
2040
|
-
* Set call as not live
|
|
2041
|
-
*/
|
|
2042
|
-
async stopLive(requestParameters: StopLiveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VideoStopLiveResponse> {
|
|
2043
|
-
const response = await this.stopLiveRaw(requestParameters, initOverrides);
|
|
2044
|
-
return await response.value();
|
|
2045
|
-
}
|
|
2046
|
-
|
|
2047
|
-
/**
|
|
2048
|
-
* Stops recording Sends events: - call.recording_stopped Required permissions: - StopRecording
|
|
2049
|
-
* Stop recording
|
|
2050
|
-
*/
|
|
2051
|
-
async stopRecordingRaw(requestParameters: StopRecordingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VideoStopRecordingResponse>> {
|
|
2052
|
-
if (requestParameters.type === null || requestParameters.type === undefined) {
|
|
2053
|
-
throw new runtime.RequiredError('type','Required parameter requestParameters.type was null or undefined when calling stopRecording.');
|
|
2054
|
-
}
|
|
2055
|
-
|
|
2056
|
-
if (requestParameters.id === null || requestParameters.id === undefined) {
|
|
2057
|
-
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling stopRecording.');
|
|
2058
|
-
}
|
|
2059
|
-
|
|
2060
|
-
const queryParameters: any = {};
|
|
2061
|
-
|
|
2062
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
2063
|
-
|
|
2064
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
2065
|
-
headerParameters["Stream-Auth-Type"] = this.configuration.apiKey("Stream-Auth-Type"); // stream-auth-type authentication
|
|
2066
|
-
}
|
|
2067
|
-
|
|
2068
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
2069
|
-
queryParameters["api_key"] = this.configuration.apiKey("api_key"); // api_key authentication
|
|
2070
|
-
}
|
|
2071
|
-
|
|
2072
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
2073
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // JWT authentication
|
|
2074
|
-
}
|
|
2075
|
-
|
|
2076
|
-
const response = await this.request({
|
|
2077
|
-
path: `/video/call/{type}/{id}/stop_recording`.replace(`{${"type"}}`, encodeURIComponent(String(requestParameters.type))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
2078
|
-
method: 'POST',
|
|
2079
|
-
headers: headerParameters,
|
|
2080
|
-
query: queryParameters,
|
|
2081
|
-
}, initOverrides);
|
|
2082
|
-
|
|
2083
|
-
return new runtime.JSONApiResponse(response);
|
|
2084
|
-
}
|
|
2085
|
-
|
|
2086
|
-
/**
|
|
2087
|
-
* Stops recording Sends events: - call.recording_stopped Required permissions: - StopRecording
|
|
2088
|
-
* Stop recording
|
|
2089
|
-
*/
|
|
2090
|
-
async stopRecording(requestParameters: StopRecordingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VideoStopRecordingResponse> {
|
|
2091
|
-
const response = await this.stopRecordingRaw(requestParameters, initOverrides);
|
|
2092
|
-
return await response.value();
|
|
2093
|
-
}
|
|
2094
|
-
|
|
2095
|
-
/**
|
|
2096
|
-
* Stops transcription Sends events: - call.transcription_stopped Required permissions: - StopTranscription
|
|
2097
|
-
* Stop transcription
|
|
2098
|
-
*/
|
|
2099
|
-
async stopTranscriptionRaw(requestParameters: StopTranscriptionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VideoStopTranscriptionResponse>> {
|
|
2100
|
-
if (requestParameters.type === null || requestParameters.type === undefined) {
|
|
2101
|
-
throw new runtime.RequiredError('type','Required parameter requestParameters.type was null or undefined when calling stopTranscription.');
|
|
2102
|
-
}
|
|
2103
|
-
|
|
2104
|
-
if (requestParameters.id === null || requestParameters.id === undefined) {
|
|
2105
|
-
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling stopTranscription.');
|
|
2106
|
-
}
|
|
2107
|
-
|
|
2108
|
-
const queryParameters: any = {};
|
|
2109
|
-
|
|
2110
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
2111
|
-
|
|
2112
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
2113
|
-
headerParameters["Stream-Auth-Type"] = this.configuration.apiKey("Stream-Auth-Type"); // stream-auth-type authentication
|
|
2114
|
-
}
|
|
2115
|
-
|
|
2116
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
2117
|
-
queryParameters["api_key"] = this.configuration.apiKey("api_key"); // api_key authentication
|
|
2118
|
-
}
|
|
2119
|
-
|
|
2120
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
2121
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // JWT authentication
|
|
2122
|
-
}
|
|
2123
|
-
|
|
2124
|
-
const response = await this.request({
|
|
2125
|
-
path: `/video/call/{type}/{id}/stop_transcription`.replace(`{${"type"}}`, encodeURIComponent(String(requestParameters.type))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
2126
|
-
method: 'POST',
|
|
2127
|
-
headers: headerParameters,
|
|
2128
|
-
query: queryParameters,
|
|
2129
|
-
}, initOverrides);
|
|
2130
|
-
|
|
2131
|
-
return new runtime.JSONApiResponse(response);
|
|
2132
|
-
}
|
|
2133
|
-
|
|
2134
|
-
/**
|
|
2135
|
-
* Stops transcription Sends events: - call.transcription_stopped Required permissions: - StopTranscription
|
|
2136
|
-
* Stop transcription
|
|
2137
|
-
*/
|
|
2138
|
-
async stopTranscription(requestParameters: StopTranscriptionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VideoStopTranscriptionResponse> {
|
|
2139
|
-
const response = await this.stopTranscriptionRaw(requestParameters, initOverrides);
|
|
2140
|
-
return await response.value();
|
|
2141
|
-
}
|
|
2142
|
-
|
|
2143
|
-
/**
|
|
2144
|
-
* Removes the block for a user on a call. The user will be able to join the call again. Sends events: - call.unblocked_user Required permissions: - BlockUser
|
|
2145
|
-
* Unblocks user on a call
|
|
2146
|
-
*/
|
|
2147
|
-
async unblockUserRaw(requestParameters: UnblockUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VideoUnblockUserResponse>> {
|
|
2148
|
-
if (requestParameters.type === null || requestParameters.type === undefined) {
|
|
2149
|
-
throw new runtime.RequiredError('type','Required parameter requestParameters.type was null or undefined when calling unblockUser.');
|
|
2150
|
-
}
|
|
2151
|
-
|
|
2152
|
-
if (requestParameters.id === null || requestParameters.id === undefined) {
|
|
2153
|
-
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling unblockUser.');
|
|
2154
|
-
}
|
|
2155
|
-
|
|
2156
|
-
if (requestParameters.videoUnblockUserRequest === null || requestParameters.videoUnblockUserRequest === undefined) {
|
|
2157
|
-
throw new runtime.RequiredError('videoUnblockUserRequest','Required parameter requestParameters.videoUnblockUserRequest was null or undefined when calling unblockUser.');
|
|
2158
|
-
}
|
|
2159
|
-
|
|
2160
|
-
const queryParameters: any = {};
|
|
2161
|
-
|
|
2162
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
2163
|
-
|
|
2164
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
2165
|
-
|
|
2166
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
2167
|
-
headerParameters["Stream-Auth-Type"] = this.configuration.apiKey("Stream-Auth-Type"); // stream-auth-type authentication
|
|
2168
|
-
}
|
|
2169
|
-
|
|
2170
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
2171
|
-
queryParameters["api_key"] = this.configuration.apiKey("api_key"); // api_key authentication
|
|
2172
|
-
}
|
|
2173
|
-
|
|
2174
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
2175
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // JWT authentication
|
|
2176
|
-
}
|
|
2177
|
-
|
|
2178
|
-
const response = await this.request({
|
|
2179
|
-
path: `/video/call/{type}/{id}/unblock`.replace(`{${"type"}}`, encodeURIComponent(String(requestParameters.type))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
2180
|
-
method: 'POST',
|
|
2181
|
-
headers: headerParameters,
|
|
2182
|
-
query: queryParameters,
|
|
2183
|
-
body: requestParameters.videoUnblockUserRequest,
|
|
2184
|
-
}, initOverrides);
|
|
2185
|
-
|
|
2186
|
-
return new runtime.JSONApiResponse(response);
|
|
2187
|
-
}
|
|
2188
|
-
|
|
2189
|
-
/**
|
|
2190
|
-
* Removes the block for a user on a call. The user will be able to join the call again. Sends events: - call.unblocked_user Required permissions: - BlockUser
|
|
2191
|
-
* Unblocks user on a call
|
|
2192
|
-
*/
|
|
2193
|
-
async unblockUser(requestParameters: UnblockUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VideoUnblockUserResponse> {
|
|
2194
|
-
const response = await this.unblockUserRaw(requestParameters, initOverrides);
|
|
2195
|
-
return await response.value();
|
|
2196
|
-
}
|
|
2197
|
-
|
|
2198
|
-
/**
|
|
2199
|
-
* Sends events: - call.updated Required permissions: - UpdateCall
|
|
2200
|
-
* Update Call
|
|
2201
|
-
*/
|
|
2202
|
-
async updateCallRaw(requestParameters: UpdateCallRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VideoUpdateCallResponse>> {
|
|
2203
|
-
if (requestParameters.type === null || requestParameters.type === undefined) {
|
|
2204
|
-
throw new runtime.RequiredError('type','Required parameter requestParameters.type was null or undefined when calling updateCall.');
|
|
2205
|
-
}
|
|
2206
|
-
|
|
2207
|
-
if (requestParameters.id === null || requestParameters.id === undefined) {
|
|
2208
|
-
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling updateCall.');
|
|
2209
|
-
}
|
|
2210
|
-
|
|
2211
|
-
if (requestParameters.videoUpdateCallRequest === null || requestParameters.videoUpdateCallRequest === undefined) {
|
|
2212
|
-
throw new runtime.RequiredError('videoUpdateCallRequest','Required parameter requestParameters.videoUpdateCallRequest was null or undefined when calling updateCall.');
|
|
2213
|
-
}
|
|
2214
|
-
|
|
2215
|
-
const queryParameters: any = {};
|
|
2216
|
-
|
|
2217
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
2218
|
-
|
|
2219
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
2220
|
-
|
|
2221
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
2222
|
-
headerParameters["Stream-Auth-Type"] = this.configuration.apiKey("Stream-Auth-Type"); // stream-auth-type authentication
|
|
2223
|
-
}
|
|
2224
|
-
|
|
2225
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
2226
|
-
queryParameters["api_key"] = this.configuration.apiKey("api_key"); // api_key authentication
|
|
2227
|
-
}
|
|
2228
|
-
|
|
2229
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
2230
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // JWT authentication
|
|
2231
|
-
}
|
|
2232
|
-
|
|
2233
|
-
const response = await this.request({
|
|
2234
|
-
path: `/video/call/{type}/{id}`.replace(`{${"type"}}`, encodeURIComponent(String(requestParameters.type))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
2235
|
-
method: 'PATCH',
|
|
2236
|
-
headers: headerParameters,
|
|
2237
|
-
query: queryParameters,
|
|
2238
|
-
body: requestParameters.videoUpdateCallRequest,
|
|
2239
|
-
}, initOverrides);
|
|
2240
|
-
|
|
2241
|
-
return new runtime.JSONApiResponse(response);
|
|
2242
|
-
}
|
|
2243
|
-
|
|
2244
|
-
/**
|
|
2245
|
-
* Sends events: - call.updated Required permissions: - UpdateCall
|
|
2246
|
-
* Update Call
|
|
2247
|
-
*/
|
|
2248
|
-
async updateCall(requestParameters: UpdateCallRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VideoUpdateCallResponse> {
|
|
2249
|
-
const response = await this.updateCallRaw(requestParameters, initOverrides);
|
|
2250
|
-
return await response.value();
|
|
2251
|
-
}
|
|
2252
|
-
|
|
2253
|
-
/**
|
|
2254
|
-
* Sends events: - call.member_added - call.member_removed - call.member_updated Required permissions: - RemoveCallMember - UpdateCallMember - UpdateCallMemberRole
|
|
2255
|
-
* Update Call Member
|
|
2256
|
-
*/
|
|
2257
|
-
async updateCallMembersRaw(requestParameters: UpdateCallMembersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VideoUpdateCallMembersResponse>> {
|
|
2258
|
-
if (requestParameters.type === null || requestParameters.type === undefined) {
|
|
2259
|
-
throw new runtime.RequiredError('type','Required parameter requestParameters.type was null or undefined when calling updateCallMembers.');
|
|
2260
|
-
}
|
|
2261
|
-
|
|
2262
|
-
if (requestParameters.id === null || requestParameters.id === undefined) {
|
|
2263
|
-
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling updateCallMembers.');
|
|
2264
|
-
}
|
|
2265
|
-
|
|
2266
|
-
if (requestParameters.videoUpdateCallMembersRequest === null || requestParameters.videoUpdateCallMembersRequest === undefined) {
|
|
2267
|
-
throw new runtime.RequiredError('videoUpdateCallMembersRequest','Required parameter requestParameters.videoUpdateCallMembersRequest was null or undefined when calling updateCallMembers.');
|
|
2268
|
-
}
|
|
2269
|
-
|
|
2270
|
-
const queryParameters: any = {};
|
|
2271
|
-
|
|
2272
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
2273
|
-
|
|
2274
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
2275
|
-
|
|
2276
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
2277
|
-
headerParameters["Stream-Auth-Type"] = this.configuration.apiKey("Stream-Auth-Type"); // stream-auth-type authentication
|
|
2278
|
-
}
|
|
2279
|
-
|
|
2280
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
2281
|
-
queryParameters["api_key"] = this.configuration.apiKey("api_key"); // api_key authentication
|
|
2282
|
-
}
|
|
2283
|
-
|
|
2284
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
2285
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // JWT authentication
|
|
2286
|
-
}
|
|
2287
|
-
|
|
2288
|
-
const response = await this.request({
|
|
2289
|
-
path: `/video/call/{type}/{id}/members`.replace(`{${"type"}}`, encodeURIComponent(String(requestParameters.type))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
2290
|
-
method: 'POST',
|
|
2291
|
-
headers: headerParameters,
|
|
2292
|
-
query: queryParameters,
|
|
2293
|
-
body: requestParameters.videoUpdateCallMembersRequest,
|
|
2294
|
-
}, initOverrides);
|
|
2295
|
-
|
|
2296
|
-
return new runtime.JSONApiResponse(response);
|
|
2297
|
-
}
|
|
2298
|
-
|
|
2299
|
-
/**
|
|
2300
|
-
* Sends events: - call.member_added - call.member_removed - call.member_updated Required permissions: - RemoveCallMember - UpdateCallMember - UpdateCallMemberRole
|
|
2301
|
-
* Update Call Member
|
|
2302
|
-
*/
|
|
2303
|
-
async updateCallMembers(requestParameters: UpdateCallMembersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VideoUpdateCallMembersResponse> {
|
|
2304
|
-
const response = await this.updateCallMembersRaw(requestParameters, initOverrides);
|
|
2305
|
-
return await response.value();
|
|
2306
|
-
}
|
|
2307
|
-
|
|
2308
|
-
/**
|
|
2309
|
-
*
|
|
2310
|
-
* Update Call Type
|
|
2311
|
-
*/
|
|
2312
|
-
async updateCallTypeRaw(requestParameters: UpdateCallTypeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VideoUpdateCallTypeResponse>> {
|
|
2313
|
-
if (requestParameters.name === null || requestParameters.name === undefined) {
|
|
2314
|
-
throw new runtime.RequiredError('name','Required parameter requestParameters.name was null or undefined when calling updateCallType.');
|
|
2315
|
-
}
|
|
2316
|
-
|
|
2317
|
-
if (requestParameters.videoUpdateCallTypeRequest === null || requestParameters.videoUpdateCallTypeRequest === undefined) {
|
|
2318
|
-
throw new runtime.RequiredError('videoUpdateCallTypeRequest','Required parameter requestParameters.videoUpdateCallTypeRequest was null or undefined when calling updateCallType.');
|
|
2319
|
-
}
|
|
2320
|
-
|
|
2321
|
-
const queryParameters: any = {};
|
|
2322
|
-
|
|
2323
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
2324
|
-
|
|
2325
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
2326
|
-
|
|
2327
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
2328
|
-
headerParameters["Stream-Auth-Type"] = this.configuration.apiKey("Stream-Auth-Type"); // stream-auth-type authentication
|
|
2329
|
-
}
|
|
2330
|
-
|
|
2331
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
2332
|
-
queryParameters["api_key"] = this.configuration.apiKey("api_key"); // api_key authentication
|
|
2333
|
-
}
|
|
2334
|
-
|
|
2335
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
2336
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // JWT authentication
|
|
2337
|
-
}
|
|
2338
|
-
|
|
2339
|
-
const response = await this.request({
|
|
2340
|
-
path: `/video/calltypes/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(requestParameters.name))),
|
|
2341
|
-
method: 'PUT',
|
|
2342
|
-
headers: headerParameters,
|
|
2343
|
-
query: queryParameters,
|
|
2344
|
-
body: requestParameters.videoUpdateCallTypeRequest,
|
|
2345
|
-
}, initOverrides);
|
|
2346
|
-
|
|
2347
|
-
return new runtime.JSONApiResponse(response);
|
|
2348
|
-
}
|
|
2349
|
-
|
|
2350
|
-
/**
|
|
2351
|
-
*
|
|
2352
|
-
* Update Call Type
|
|
2353
|
-
*/
|
|
2354
|
-
async updateCallType(requestParameters: UpdateCallTypeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VideoUpdateCallTypeResponse> {
|
|
2355
|
-
const response = await this.updateCallTypeRaw(requestParameters, initOverrides);
|
|
2356
|
-
return await response.value();
|
|
2357
|
-
}
|
|
2358
|
-
|
|
2359
|
-
/**
|
|
2360
|
-
*
|
|
2361
|
-
* Update External Storage
|
|
2362
|
-
*/
|
|
2363
|
-
async updateExternalStorageRaw(requestParameters: UpdateExternalStorageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VideoUpdateExternalStorageResponse>> {
|
|
2364
|
-
if (requestParameters.name === null || requestParameters.name === undefined) {
|
|
2365
|
-
throw new runtime.RequiredError('name','Required parameter requestParameters.name was null or undefined when calling updateExternalStorage.');
|
|
2366
|
-
}
|
|
2367
|
-
|
|
2368
|
-
if (requestParameters.videoUpdateExternalStorageRequest === null || requestParameters.videoUpdateExternalStorageRequest === undefined) {
|
|
2369
|
-
throw new runtime.RequiredError('videoUpdateExternalStorageRequest','Required parameter requestParameters.videoUpdateExternalStorageRequest was null or undefined when calling updateExternalStorage.');
|
|
2370
|
-
}
|
|
2371
|
-
|
|
2372
|
-
const queryParameters: any = {};
|
|
2373
|
-
|
|
2374
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
2375
|
-
|
|
2376
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
2377
|
-
|
|
2378
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
2379
|
-
headerParameters["Stream-Auth-Type"] = this.configuration.apiKey("Stream-Auth-Type"); // stream-auth-type authentication
|
|
2380
|
-
}
|
|
2381
|
-
|
|
2382
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
2383
|
-
queryParameters["api_key"] = this.configuration.apiKey("api_key"); // api_key authentication
|
|
2384
|
-
}
|
|
2385
|
-
|
|
2386
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
2387
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // JWT authentication
|
|
2388
|
-
}
|
|
2389
|
-
|
|
2390
|
-
const response = await this.request({
|
|
2391
|
-
path: `/video/external_storage/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(requestParameters.name))),
|
|
2392
|
-
method: 'PUT',
|
|
2393
|
-
headers: headerParameters,
|
|
2394
|
-
query: queryParameters,
|
|
2395
|
-
body: requestParameters.videoUpdateExternalStorageRequest,
|
|
2396
|
-
}, initOverrides);
|
|
2397
|
-
|
|
2398
|
-
return new runtime.JSONApiResponse(response);
|
|
2399
|
-
}
|
|
2400
|
-
|
|
2401
|
-
/**
|
|
2402
|
-
*
|
|
2403
|
-
* Update External Storage
|
|
2404
|
-
*/
|
|
2405
|
-
async updateExternalStorage(requestParameters: UpdateExternalStorageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VideoUpdateExternalStorageResponse> {
|
|
2406
|
-
const response = await this.updateExternalStorageRaw(requestParameters, initOverrides);
|
|
2407
|
-
return await response.value();
|
|
2408
|
-
}
|
|
2409
|
-
|
|
2410
|
-
/**
|
|
2411
|
-
* Updates user permissions Sends events: - call.permissions_updated Required permissions: - UpdateCallPermissions
|
|
2412
|
-
* Update user permissions
|
|
2413
|
-
*/
|
|
2414
|
-
async updateUserPermissionsRaw(requestParameters: UpdateUserPermissionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VideoUpdateUserPermissionsResponse>> {
|
|
2415
|
-
if (requestParameters.type === null || requestParameters.type === undefined) {
|
|
2416
|
-
throw new runtime.RequiredError('type','Required parameter requestParameters.type was null or undefined when calling updateUserPermissions.');
|
|
2417
|
-
}
|
|
2418
|
-
|
|
2419
|
-
if (requestParameters.id === null || requestParameters.id === undefined) {
|
|
2420
|
-
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling updateUserPermissions.');
|
|
2421
|
-
}
|
|
2422
|
-
|
|
2423
|
-
if (requestParameters.videoUpdateUserPermissionsRequest === null || requestParameters.videoUpdateUserPermissionsRequest === undefined) {
|
|
2424
|
-
throw new runtime.RequiredError('videoUpdateUserPermissionsRequest','Required parameter requestParameters.videoUpdateUserPermissionsRequest was null or undefined when calling updateUserPermissions.');
|
|
2425
|
-
}
|
|
2426
|
-
|
|
2427
|
-
const queryParameters: any = {};
|
|
2428
|
-
|
|
2429
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
2430
|
-
|
|
2431
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
2432
|
-
|
|
2433
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
2434
|
-
headerParameters["Stream-Auth-Type"] = this.configuration.apiKey("Stream-Auth-Type"); // stream-auth-type authentication
|
|
2435
|
-
}
|
|
2436
|
-
|
|
2437
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
2438
|
-
queryParameters["api_key"] = this.configuration.apiKey("api_key"); // api_key authentication
|
|
2439
|
-
}
|
|
2440
|
-
|
|
2441
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
2442
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // JWT authentication
|
|
2443
|
-
}
|
|
2444
|
-
|
|
2445
|
-
const response = await this.request({
|
|
2446
|
-
path: `/video/call/{type}/{id}/user_permissions`.replace(`{${"type"}}`, encodeURIComponent(String(requestParameters.type))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
2447
|
-
method: 'POST',
|
|
2448
|
-
headers: headerParameters,
|
|
2449
|
-
query: queryParameters,
|
|
2450
|
-
body: requestParameters.videoUpdateUserPermissionsRequest,
|
|
2451
|
-
}, initOverrides);
|
|
2452
|
-
|
|
2453
|
-
return new runtime.JSONApiResponse(response);
|
|
2454
|
-
}
|
|
2455
|
-
|
|
2456
|
-
/**
|
|
2457
|
-
* Updates user permissions Sends events: - call.permissions_updated Required permissions: - UpdateCallPermissions
|
|
2458
|
-
* Update user permissions
|
|
2459
|
-
*/
|
|
2460
|
-
async updateUserPermissions(requestParameters: UpdateUserPermissionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VideoUpdateUserPermissionsResponse> {
|
|
2461
|
-
const response = await this.updateUserPermissionsRaw(requestParameters, initOverrides);
|
|
2462
|
-
return await response.value();
|
|
2463
|
-
}
|
|
2464
|
-
|
|
2465
|
-
/**
|
|
2466
|
-
* Pins a track for all users in the call. Required permissions: - PinCallTrack
|
|
2467
|
-
* Pin
|
|
2468
|
-
*/
|
|
2469
|
-
async videoPinRaw(requestParameters: VideoPinOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VideoPinResponse>> {
|
|
2470
|
-
if (requestParameters.type === null || requestParameters.type === undefined) {
|
|
2471
|
-
throw new runtime.RequiredError('type','Required parameter requestParameters.type was null or undefined when calling videoPin.');
|
|
2472
|
-
}
|
|
2473
|
-
|
|
2474
|
-
if (requestParameters.id === null || requestParameters.id === undefined) {
|
|
2475
|
-
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling videoPin.');
|
|
2476
|
-
}
|
|
2477
|
-
|
|
2478
|
-
if (requestParameters.videoPinRequest === null || requestParameters.videoPinRequest === undefined) {
|
|
2479
|
-
throw new runtime.RequiredError('videoPinRequest','Required parameter requestParameters.videoPinRequest was null or undefined when calling videoPin.');
|
|
2480
|
-
}
|
|
2481
|
-
|
|
2482
|
-
const queryParameters: any = {};
|
|
2483
|
-
|
|
2484
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
2485
|
-
|
|
2486
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
2487
|
-
|
|
2488
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
2489
|
-
headerParameters["Stream-Auth-Type"] = this.configuration.apiKey("Stream-Auth-Type"); // stream-auth-type authentication
|
|
2490
|
-
}
|
|
2491
|
-
|
|
2492
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
2493
|
-
queryParameters["api_key"] = this.configuration.apiKey("api_key"); // api_key authentication
|
|
2494
|
-
}
|
|
2495
|
-
|
|
2496
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
2497
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // JWT authentication
|
|
2498
|
-
}
|
|
2499
|
-
|
|
2500
|
-
const response = await this.request({
|
|
2501
|
-
path: `/video/call/{type}/{id}/pin`.replace(`{${"type"}}`, encodeURIComponent(String(requestParameters.type))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
2502
|
-
method: 'POST',
|
|
2503
|
-
headers: headerParameters,
|
|
2504
|
-
query: queryParameters,
|
|
2505
|
-
body: requestParameters.videoPinRequest,
|
|
2506
|
-
}, initOverrides);
|
|
2507
|
-
|
|
2508
|
-
return new runtime.JSONApiResponse(response);
|
|
2509
|
-
}
|
|
2510
|
-
|
|
2511
|
-
/**
|
|
2512
|
-
* Pins a track for all users in the call. Required permissions: - PinCallTrack
|
|
2513
|
-
* Pin
|
|
2514
|
-
*/
|
|
2515
|
-
async videoPin(requestParameters: VideoPinOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VideoPinResponse> {
|
|
2516
|
-
const response = await this.videoPinRaw(requestParameters, initOverrides);
|
|
2517
|
-
return await response.value();
|
|
2518
|
-
}
|
|
2519
|
-
|
|
2520
|
-
/**
|
|
2521
|
-
* Unpins a track for all users in the call. Required permissions: - PinCallTrack
|
|
2522
|
-
* Unpin
|
|
2523
|
-
*/
|
|
2524
|
-
async videoUnpinRaw(requestParameters: VideoUnpinOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VideoUnpinResponse>> {
|
|
2525
|
-
if (requestParameters.type === null || requestParameters.type === undefined) {
|
|
2526
|
-
throw new runtime.RequiredError('type','Required parameter requestParameters.type was null or undefined when calling videoUnpin.');
|
|
2527
|
-
}
|
|
2528
|
-
|
|
2529
|
-
if (requestParameters.id === null || requestParameters.id === undefined) {
|
|
2530
|
-
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling videoUnpin.');
|
|
2531
|
-
}
|
|
2532
|
-
|
|
2533
|
-
if (requestParameters.videoUnpinRequest === null || requestParameters.videoUnpinRequest === undefined) {
|
|
2534
|
-
throw new runtime.RequiredError('videoUnpinRequest','Required parameter requestParameters.videoUnpinRequest was null or undefined when calling videoUnpin.');
|
|
2535
|
-
}
|
|
2536
|
-
|
|
2537
|
-
const queryParameters: any = {};
|
|
2538
|
-
|
|
2539
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
2540
|
-
|
|
2541
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
2542
|
-
|
|
2543
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
2544
|
-
headerParameters["Stream-Auth-Type"] = this.configuration.apiKey("Stream-Auth-Type"); // stream-auth-type authentication
|
|
2545
|
-
}
|
|
2546
|
-
|
|
2547
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
2548
|
-
queryParameters["api_key"] = this.configuration.apiKey("api_key"); // api_key authentication
|
|
2549
|
-
}
|
|
2550
|
-
|
|
2551
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
2552
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // JWT authentication
|
|
2553
|
-
}
|
|
2554
|
-
|
|
2555
|
-
const response = await this.request({
|
|
2556
|
-
path: `/video/call/{type}/{id}/unpin`.replace(`{${"type"}}`, encodeURIComponent(String(requestParameters.type))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
2557
|
-
method: 'POST',
|
|
2558
|
-
headers: headerParameters,
|
|
2559
|
-
query: queryParameters,
|
|
2560
|
-
body: requestParameters.videoUnpinRequest,
|
|
2561
|
-
}, initOverrides);
|
|
2562
|
-
|
|
2563
|
-
return new runtime.JSONApiResponse(response);
|
|
2564
|
-
}
|
|
2565
|
-
|
|
2566
|
-
/**
|
|
2567
|
-
* Unpins a track for all users in the call. Required permissions: - PinCallTrack
|
|
2568
|
-
* Unpin
|
|
2569
|
-
*/
|
|
2570
|
-
async videoUnpin(requestParameters: VideoUnpinOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VideoUnpinResponse> {
|
|
2571
|
-
const response = await this.videoUnpinRaw(requestParameters, initOverrides);
|
|
2572
|
-
return await response.value();
|
|
2573
|
-
}
|
|
2574
|
-
|
|
2575
|
-
}
|