@stream-io/node-sdk 0.2.4 → 0.2.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,14 +1,16 @@
1
1
  import { StreamClient } from './StreamClient';
2
- import { DeleteRecordingRequest, DeleteTranscriptionRequest, GetCallRequest, GetCallStatsRequest, VideoBlockUserRequest, VideoGetOrCreateCallRequest, VideoGoLiveRequest, VideoMuteUsersRequest, VideoPinRequest, VideoQueryCallMembersRequest, VideoSendCallEventRequest, VideoStartRecordingRequest, VideoStartTranscriptionRequest, VideoUnblockUserRequest, VideoUnpinRequest, VideoUpdateCallMembersRequest, VideoUpdateCallRequest, VideoUpdateUserPermissionsRequest } from './gen/video';
2
+ import { DeleteRecordingRequest, DeleteTranscriptionRequest, GetCallRequest, GetCallStatsRequest, VideoBlockUserRequest, VideoDeleteCallRequest, VideoGetOrCreateCallRequest, VideoGoLiveRequest, VideoMuteUsersRequest, VideoPinRequest, VideoQueryCallMembersRequest, VideoSendCallEventRequest, VideoStartRecordingRequest, VideoStartTranscriptionRequest, VideoUnblockUserRequest, VideoUnpinRequest, VideoUpdateCallMembersRequest, VideoUpdateCallRequest, VideoUpdateUserPermissionsRequest } from './gen/video';
3
3
  import { OmitTypeId } from './types';
4
4
  export declare class StreamCall {
5
5
  private readonly streamClient;
6
- private readonly type;
7
- private readonly id;
6
+ readonly type: string;
7
+ readonly id: string;
8
8
  private readonly baseRequest;
9
9
  private readonly apiClient;
10
10
  constructor(streamClient: StreamClient, type: string, id: string);
11
+ get cid(): string;
11
12
  blockUser: (videoBlockUserRequest: VideoBlockUserRequest) => Promise<import("./gen/video").VideoBlockUserResponse>;
13
+ delete: (videoDeleteCallRequest?: VideoDeleteCallRequest) => Promise<import("./gen/video").VideoDeleteCallResponse>;
12
14
  endCall: () => Promise<import("./gen/video").VideoEndCallResponse>;
13
15
  get: (request?: OmitTypeId<GetCallRequest>) => Promise<import("./gen/video").VideoGetCallResponse>;
14
16
  getOrCreate: (videoGetOrCreateCallRequest?: VideoGetOrCreateCallRequest) => Promise<import("./gen/video").VideoGetOrCreateCallResponse>;
@@ -2,7 +2,7 @@
2
2
  * Stream API
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: v113.1.0
5
+ * The version of the OpenAPI document: v120.0.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { VideoBlockUserRequest, VideoBlockUserResponse, VideoCheckExternalStorageResponse, VideoCollectUserFeedbackRequest, VideoCollectUserFeedbackResponse, VideoCreateCallTypeRequest, VideoCreateCallTypeResponse, VideoCreateDeviceRequest, VideoCreateExternalStorageRequest, VideoCreateExternalStorageResponse, VideoCreateGuestRequest, VideoCreateGuestResponse, VideoDeleteExternalStorageResponse, VideoDeleteRecordingResponse, VideoDeleteTranscriptionResponse, VideoEndCallResponse, VideoGetCallResponse, VideoGetCallStatsResponse, VideoGetCallTypeResponse, VideoGetEdgesResponse, VideoGetOrCreateCallRequest, VideoGetOrCreateCallResponse, VideoGoLiveRequest, VideoGoLiveResponse, VideoListCallTypeResponse, VideoListDevicesResponse, VideoListExternalStorageResponse, VideoListRecordingsResponse, VideoListTranscriptionsResponse, VideoMuteUsersRequest, VideoMuteUsersResponse, VideoPinRequest, VideoPinResponse, VideoQueryCallMembersRequest, VideoQueryCallMembersResponse, VideoQueryCallStatsRequest, VideoQueryCallStatsResponse, VideoQueryCallsRequest, VideoQueryCallsResponse, VideoResponse, VideoSendCallEventRequest, VideoSendCallEventResponse, VideoStartHLSBroadcastingResponse, VideoStartRecordingRequest, VideoStartRecordingResponse, VideoStartTranscriptionRequest, VideoStartTranscriptionResponse, VideoStopHLSBroadcastingResponse, VideoStopLiveResponse, VideoStopRecordingResponse, VideoStopTranscriptionResponse, VideoUnblockUserRequest, VideoUnblockUserResponse, VideoUnpinRequest, VideoUnpinResponse, VideoUpdateCallMembersRequest, VideoUpdateCallMembersResponse, VideoUpdateCallRequest, VideoUpdateCallResponse, VideoUpdateCallTypeRequest, VideoUpdateCallTypeResponse, VideoUpdateExternalStorageRequest, VideoUpdateExternalStorageResponse, VideoUpdateUserPermissionsRequest, VideoUpdateUserPermissionsResponse } from '../models';
13
+ import type { VideoBlockUserRequest, VideoBlockUserResponse, VideoCheckExternalStorageResponse, VideoCollectUserFeedbackRequest, VideoCollectUserFeedbackResponse, VideoCreateCallTypeRequest, VideoCreateCallTypeResponse, VideoCreateDeviceRequest, VideoCreateExternalStorageRequest, VideoCreateExternalStorageResponse, VideoCreateGuestRequest, VideoCreateGuestResponse, VideoDeleteCallRequest, VideoDeleteCallResponse, VideoDeleteExternalStorageResponse, VideoDeleteRecordingResponse, VideoDeleteTranscriptionResponse, VideoEndCallResponse, VideoGetCallResponse, VideoGetCallStatsResponse, VideoGetCallTypeResponse, VideoGetEdgesResponse, VideoGetOrCreateCallRequest, VideoGetOrCreateCallResponse, VideoGoLiveRequest, VideoGoLiveResponse, VideoListCallTypeResponse, VideoListDevicesResponse, VideoListExternalStorageResponse, VideoListRecordingsResponse, VideoListTranscriptionsResponse, VideoMuteUsersRequest, VideoMuteUsersResponse, VideoPinRequest, VideoPinResponse, VideoQueryCallMembersRequest, VideoQueryCallMembersResponse, VideoQueryCallStatsRequest, VideoQueryCallStatsResponse, VideoQueryCallsRequest, VideoQueryCallsResponse, VideoResponse, VideoSendCallEventRequest, VideoSendCallEventResponse, VideoStartHLSBroadcastingResponse, VideoStartRecordingRequest, VideoStartRecordingResponse, VideoStartTranscriptionRequest, VideoStartTranscriptionResponse, VideoStopHLSBroadcastingResponse, VideoStopLiveResponse, VideoStopRecordingResponse, VideoStopTranscriptionResponse, VideoUnblockUserRequest, VideoUnblockUserResponse, VideoUnpinRequest, VideoUnpinResponse, VideoUpdateCallMembersRequest, VideoUpdateCallMembersResponse, VideoUpdateCallRequest, VideoUpdateCallResponse, VideoUpdateCallTypeRequest, VideoUpdateCallTypeResponse, VideoUpdateExternalStorageRequest, VideoUpdateExternalStorageResponse, VideoUpdateUserPermissionsRequest, VideoUpdateUserPermissionsResponse } from '../models';
14
14
  export interface BlockUserRequest {
15
15
  type: string;
16
16
  id: string;
@@ -37,6 +37,11 @@ export interface CreateExternalStorageRequest {
37
37
  export interface CreateGuestRequest {
38
38
  videoCreateGuestRequest: VideoCreateGuestRequest | null;
39
39
  }
40
+ export interface DeleteCallRequest {
41
+ type: string;
42
+ id: string;
43
+ videoDeleteCallRequest: VideoDeleteCallRequest | null;
44
+ }
40
45
  export interface DeleteCallTypeRequest {
41
46
  name: string;
42
47
  }
@@ -260,6 +265,16 @@ export declare class ProductvideoApi extends runtime.BaseAPI {
260
265
  * Create Guest
261
266
  */
262
267
  createGuest(requestParameters: CreateGuestRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VideoCreateGuestResponse>;
268
+ /**
269
+ * Sends events: - call.deleted Required permissions: - DeleteCall
270
+ * Delete Call
271
+ */
272
+ deleteCallRaw(requestParameters: DeleteCallRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VideoDeleteCallResponse>>;
273
+ /**
274
+ * Sends events: - call.deleted Required permissions: - DeleteCall
275
+ * Delete Call
276
+ */
277
+ deleteCall(requestParameters: DeleteCallRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VideoDeleteCallResponse>;
263
278
  /**
264
279
  *
265
280
  * Delete Call Type
@@ -225,6 +225,12 @@ export interface VideoBackstageSettingsRequest {
225
225
  * @memberof VideoBackstageSettingsRequest
226
226
  */
227
227
  enabled?: boolean;
228
+ /**
229
+ *
230
+ * @type {number}
231
+ * @memberof VideoBackstageSettingsRequest
232
+ */
233
+ join_ahead_time_seconds?: number;
228
234
  }
229
235
  /**
230
236
  *
@@ -238,6 +244,12 @@ export interface VideoBackstageSettingsResponse {
238
244
  * @memberof VideoBackstageSettingsResponse
239
245
  */
240
246
  enabled: boolean;
247
+ /**
248
+ *
249
+ * @type {number}
250
+ * @memberof VideoBackstageSettingsResponse
251
+ */
252
+ join_ahead_time_seconds?: number;
241
253
  }
242
254
  /**
243
255
  *
@@ -540,6 +552,12 @@ export interface VideoCallResponse {
540
552
  * @memberof VideoCallResponse
541
553
  */
542
554
  ingress: VideoCallIngressResponse;
555
+ /**
556
+ *
557
+ * @type {number}
558
+ * @memberof VideoCallResponse
559
+ */
560
+ join_ahead_time_seconds?: number;
543
561
  /**
544
562
  *
545
563
  * @type {boolean}
@@ -633,6 +651,14 @@ export interface VideoCallSessionResponse {
633
651
  * @memberof VideoCallSessionResponse
634
652
  */
635
653
  live_started_at?: string;
654
+ /**
655
+ *
656
+ * @type {{ [key: string]: string; }}
657
+ * @memberof VideoCallSessionResponse
658
+ */
659
+ missed_by: {
660
+ [key: string]: string;
661
+ };
636
662
  /**
637
663
  *
638
664
  * @type {Array<VideoCallParticipantResponse>}
@@ -661,6 +687,12 @@ export interface VideoCallSessionResponse {
661
687
  * @memberof VideoCallSessionResponse
662
688
  */
663
689
  started_at?: string;
690
+ /**
691
+ *
692
+ * @type {string}
693
+ * @memberof VideoCallSessionResponse
694
+ */
695
+ timer_ends_at?: string;
664
696
  }
665
697
  /**
666
698
  *
@@ -692,6 +724,12 @@ export interface VideoCallSettingsRequest {
692
724
  * @memberof VideoCallSettingsRequest
693
725
  */
694
726
  geofencing?: VideoGeofenceSettingsRequest;
727
+ /**
728
+ *
729
+ * @type {VideoLimitsSettingsRequest}
730
+ * @memberof VideoCallSettingsRequest
731
+ */
732
+ limits?: VideoLimitsSettingsRequest;
695
733
  /**
696
734
  *
697
735
  * @type {VideoRecordSettingsRequest}
@@ -759,6 +797,12 @@ export interface VideoCallSettingsResponse {
759
797
  * @memberof VideoCallSettingsResponse
760
798
  */
761
799
  geofencing: VideoGeofenceSettingsResponse;
800
+ /**
801
+ *
802
+ * @type {VideoLimitsSettingsResponse}
803
+ * @memberof VideoCallSettingsResponse
804
+ */
805
+ limits: VideoLimitsSettingsResponse;
762
806
  /**
763
807
  *
764
808
  * @type {VideoRecordSettingsResponse}
@@ -977,6 +1021,12 @@ export interface VideoCheckExternalStorageResponse {
977
1021
  * @memberof VideoCheckExternalStorageResponse
978
1022
  */
979
1023
  duration: string;
1024
+ /**
1025
+ *
1026
+ * @type {string}
1027
+ * @memberof VideoCheckExternalStorageResponse
1028
+ */
1029
+ file_url: string;
980
1030
  }
981
1031
  /**
982
1032
  *
@@ -1251,8 +1301,17 @@ export interface VideoCreateExternalStorageRequest {
1251
1301
  * @type {string}
1252
1302
  * @memberof VideoCreateExternalStorageRequest
1253
1303
  */
1254
- storage_type: string;
1304
+ storage_type: VideoCreateExternalStorageRequestStorageTypeEnum;
1255
1305
  }
1306
+ /**
1307
+ * @export
1308
+ */
1309
+ export declare const VideoCreateExternalStorageRequestStorageTypeEnum: {
1310
+ readonly S3: "s3";
1311
+ readonly GCS: "gcs";
1312
+ readonly ABS: "abs";
1313
+ };
1314
+ export type VideoCreateExternalStorageRequestStorageTypeEnum = typeof VideoCreateExternalStorageRequestStorageTypeEnum[keyof typeof VideoCreateExternalStorageRequestStorageTypeEnum];
1256
1315
  /**
1257
1316
  *
1258
1317
  * @export
@@ -1304,6 +1363,44 @@ export interface VideoCreateGuestResponse {
1304
1363
  */
1305
1364
  user: VideoUserResponse;
1306
1365
  }
1366
+ /**
1367
+ *
1368
+ * @export
1369
+ * @interface VideoDeleteCallRequest
1370
+ */
1371
+ export interface VideoDeleteCallRequest {
1372
+ /**
1373
+ * if true the call will be hard deleted along with all related data
1374
+ * @type {boolean}
1375
+ * @memberof VideoDeleteCallRequest
1376
+ */
1377
+ hard?: boolean;
1378
+ }
1379
+ /**
1380
+ *
1381
+ * @export
1382
+ * @interface VideoDeleteCallResponse
1383
+ */
1384
+ export interface VideoDeleteCallResponse {
1385
+ /**
1386
+ *
1387
+ * @type {VideoCallResponse}
1388
+ * @memberof VideoDeleteCallResponse
1389
+ */
1390
+ call: VideoCallResponse;
1391
+ /**
1392
+ * Duration of the request in human-readable format
1393
+ * @type {string}
1394
+ * @memberof VideoDeleteCallResponse
1395
+ */
1396
+ duration: string;
1397
+ /**
1398
+ *
1399
+ * @type {string}
1400
+ * @memberof VideoDeleteCallResponse
1401
+ */
1402
+ task_id?: string;
1403
+ }
1307
1404
  /**
1308
1405
  *
1309
1406
  * @export
@@ -1599,8 +1696,17 @@ export interface VideoExternalStorageResponse {
1599
1696
  * @type {string}
1600
1697
  * @memberof VideoExternalStorageResponse
1601
1698
  */
1602
- type: string;
1699
+ type: VideoExternalStorageResponseTypeEnum;
1603
1700
  }
1701
+ /**
1702
+ * @export
1703
+ */
1704
+ export declare const VideoExternalStorageResponseTypeEnum: {
1705
+ readonly S3: "s3";
1706
+ readonly GCS: "gcs";
1707
+ readonly ABS: "abs";
1708
+ };
1709
+ export type VideoExternalStorageResponseTypeEnum = typeof VideoExternalStorageResponseTypeEnum[keyof typeof VideoExternalStorageResponseTypeEnum];
1604
1710
  /**
1605
1711
  *
1606
1712
  * @export
@@ -2166,6 +2272,44 @@ export declare const VideoLayoutSettingsResponseNameEnum: {
2166
2272
  readonly CUSTOM: "custom";
2167
2273
  };
2168
2274
  export type VideoLayoutSettingsResponseNameEnum = typeof VideoLayoutSettingsResponseNameEnum[keyof typeof VideoLayoutSettingsResponseNameEnum];
2275
+ /**
2276
+ *
2277
+ * @export
2278
+ * @interface VideoLimitsSettingsRequest
2279
+ */
2280
+ export interface VideoLimitsSettingsRequest {
2281
+ /**
2282
+ *
2283
+ * @type {number}
2284
+ * @memberof VideoLimitsSettingsRequest
2285
+ */
2286
+ max_duration_seconds?: number;
2287
+ /**
2288
+ *
2289
+ * @type {number}
2290
+ * @memberof VideoLimitsSettingsRequest
2291
+ */
2292
+ max_participants?: number;
2293
+ }
2294
+ /**
2295
+ *
2296
+ * @export
2297
+ * @interface VideoLimitsSettingsResponse
2298
+ */
2299
+ export interface VideoLimitsSettingsResponse {
2300
+ /**
2301
+ *
2302
+ * @type {number}
2303
+ * @memberof VideoLimitsSettingsResponse
2304
+ */
2305
+ max_duration_seconds?: number;
2306
+ /**
2307
+ *
2308
+ * @type {number}
2309
+ * @memberof VideoLimitsSettingsResponse
2310
+ */
2311
+ max_participants?: number;
2312
+ }
2169
2313
  /**
2170
2314
  *
2171
2315
  * @export
@@ -2532,6 +2676,12 @@ export interface VideoNotificationSettings {
2532
2676
  * @memberof VideoNotificationSettings
2533
2677
  */
2534
2678
  call_live_started?: VideoEventNotificationSettings;
2679
+ /**
2680
+ *
2681
+ * @type {VideoEventNotificationSettings}
2682
+ * @memberof VideoNotificationSettings
2683
+ */
2684
+ call_missed?: VideoEventNotificationSettings;
2535
2685
  /**
2536
2686
  *
2537
2687
  * @type {VideoEventNotificationSettings}
@@ -2601,6 +2751,7 @@ export interface VideoNullTime {
2601
2751
  */
2602
2752
  export declare const VideoOwnCapability: {
2603
2753
  readonly BLOCK_USERS: "block-users";
2754
+ readonly CHANGE_MAX_DURATION: "change-max-duration";
2604
2755
  readonly CREATE_CALL: "create-call";
2605
2756
  readonly CREATE_REACTION: "create-reaction";
2606
2757
  readonly ENABLE_NOISE_CANCELLATION: "enable-noise-cancellation";
@@ -3102,6 +3253,12 @@ export interface VideoRingSettingsRequest {
3102
3253
  * @memberof VideoRingSettingsRequest
3103
3254
  */
3104
3255
  incoming_call_timeout_ms: number;
3256
+ /**
3257
+ *
3258
+ * @type {number}
3259
+ * @memberof VideoRingSettingsRequest
3260
+ */
3261
+ missed_call_timeout_ms?: number;
3105
3262
  }
3106
3263
  /**
3107
3264
  *
@@ -3121,6 +3278,12 @@ export interface VideoRingSettingsResponse {
3121
3278
  * @memberof VideoRingSettingsResponse
3122
3279
  */
3123
3280
  incoming_call_timeout_ms: number;
3281
+ /**
3282
+ *
3283
+ * @type {number}
3284
+ * @memberof VideoRingSettingsResponse
3285
+ */
3286
+ missed_call_timeout_ms: number;
3124
3287
  }
3125
3288
  /**
3126
3289
  *
@@ -3896,8 +4059,17 @@ export interface VideoUpdateExternalStorageRequest {
3896
4059
  * @type {string}
3897
4060
  * @memberof VideoUpdateExternalStorageRequest
3898
4061
  */
3899
- storage_type: string;
4062
+ storage_type: VideoUpdateExternalStorageRequestStorageTypeEnum;
3900
4063
  }
4064
+ /**
4065
+ * @export
4066
+ */
4067
+ export declare const VideoUpdateExternalStorageRequestStorageTypeEnum: {
4068
+ readonly S3: "s3";
4069
+ readonly GCS: "gcs";
4070
+ readonly ABS: "abs";
4071
+ };
4072
+ export type VideoUpdateExternalStorageRequestStorageTypeEnum = typeof VideoUpdateExternalStorageRequestStorageTypeEnum[keyof typeof VideoUpdateExternalStorageRequestStorageTypeEnum];
3901
4073
  /**
3902
4074
  *
3903
4075
  * @export
@@ -3933,8 +4105,17 @@ export interface VideoUpdateExternalStorageResponse {
3933
4105
  * @type {string}
3934
4106
  * @memberof VideoUpdateExternalStorageResponse
3935
4107
  */
3936
- type: string;
4108
+ type: VideoUpdateExternalStorageResponseTypeEnum;
3937
4109
  }
4110
+ /**
4111
+ * @export
4112
+ */
4113
+ export declare const VideoUpdateExternalStorageResponseTypeEnum: {
4114
+ readonly S3: "s3";
4115
+ readonly GCS: "gcs";
4116
+ readonly ABS: "abs";
4117
+ };
4118
+ export type VideoUpdateExternalStorageResponseTypeEnum = typeof VideoUpdateExternalStorageResponseTypeEnum[keyof typeof VideoUpdateExternalStorageResponseTypeEnum];
3938
4119
  /**
3939
4120
  *
3940
4121
  * @export
@@ -4087,6 +4268,12 @@ export interface VideoUserResponse {
4087
4268
  * @memberof VideoUserResponse
4088
4269
  */
4089
4270
  banned: boolean;
4271
+ /**
4272
+ *
4273
+ * @type {Array<string>}
4274
+ * @memberof VideoUserResponse
4275
+ */
4276
+ blocked_user_ids: Array<string>;
4090
4277
  /**
4091
4278
  * Date/time of creation
4092
4279
  * @type {string}
@@ -4519,6 +4706,12 @@ export interface VideoUserStats {
4519
4706
  * @memberof VideoUserStats
4520
4707
  */
4521
4708
  info: VideoUserInfoResponse;
4709
+ /**
4710
+ *
4711
+ * @type {number}
4712
+ * @memberof VideoUserStats
4713
+ */
4714
+ min_event_ts: number;
4522
4715
  /**
4523
4716
  *
4524
4717
  * @type {number}
@@ -2,7 +2,7 @@
2
2
  * Stream API
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: v113.1.0
5
+ * The version of the OpenAPI document: v120.0.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stream-io/node-sdk",
3
- "version": "0.2.4",
3
+ "version": "0.2.6",
4
4
  "description": "",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.es.js",
package/src/StreamCall.ts CHANGED
@@ -6,6 +6,7 @@ import {
6
6
  GetCallStatsRequest,
7
7
  ProductvideoApi,
8
8
  VideoBlockUserRequest,
9
+ VideoDeleteCallRequest,
9
10
  VideoGetOrCreateCallRequest,
10
11
  VideoGoLiveRequest,
11
12
  VideoMuteUsersRequest,
@@ -28,14 +29,18 @@ export class StreamCall {
28
29
 
29
30
  constructor(
30
31
  private readonly streamClient: StreamClient,
31
- private readonly type: string,
32
- private readonly id: string,
32
+ public readonly type: string,
33
+ public readonly id: string,
33
34
  ) {
34
35
  this.baseRequest = { id: this.id, type: this.type };
35
36
  const configuration = this.streamClient.getConfiguration('video');
36
37
  this.apiClient = new ProductvideoApi(configuration);
37
38
  }
38
39
 
40
+ get cid() {
41
+ return `${this.type}:${this.id}`;
42
+ }
43
+
39
44
  blockUser = (videoBlockUserRequest: VideoBlockUserRequest) => {
40
45
  return this.apiClient.blockUser({
41
46
  ...this.baseRequest,
@@ -43,6 +48,13 @@ export class StreamCall {
43
48
  });
44
49
  };
45
50
 
51
+ delete = (videoDeleteCallRequest?: VideoDeleteCallRequest) => {
52
+ return this.apiClient.deleteCall({
53
+ ...this.baseRequest,
54
+ videoDeleteCallRequest: videoDeleteCallRequest ?? null,
55
+ });
56
+ };
57
+
46
58
  endCall = () => {
47
59
  return this.apiClient.endCall({ ...this.baseRequest });
48
60
  };
@@ -4,7 +4,7 @@
4
4
  * Stream API
5
5
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
6
  *
7
- * The version of the OpenAPI document: v113.1.0
7
+ * The version of the OpenAPI document: v120.0.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -28,6 +28,8 @@ import type {
28
28
  VideoCreateExternalStorageResponse,
29
29
  VideoCreateGuestRequest,
30
30
  VideoCreateGuestResponse,
31
+ VideoDeleteCallRequest,
32
+ VideoDeleteCallResponse,
31
33
  VideoDeleteExternalStorageResponse,
32
34
  VideoDeleteRecordingResponse,
33
35
  VideoDeleteTranscriptionResponse,
@@ -116,6 +118,12 @@ export interface CreateGuestRequest {
116
118
  videoCreateGuestRequest: VideoCreateGuestRequest | null;
117
119
  }
118
120
 
121
+ export interface DeleteCallRequest {
122
+ type: string;
123
+ id: string;
124
+ videoDeleteCallRequest: VideoDeleteCallRequest | null;
125
+ }
126
+
119
127
  export interface DeleteCallTypeRequest {
120
128
  name: string;
121
129
  }
@@ -650,6 +658,61 @@ export class ProductvideoApi extends runtime.BaseAPI {
650
658
  return await response.value();
651
659
  }
652
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
+
653
716
  /**
654
717
  *
655
718
  * Delete Call Type