@stream-io/node-sdk 0.2.5 → 0.3.0

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.
Files changed (66) hide show
  1. package/dist/index.cjs.js +2550 -2124
  2. package/dist/index.cjs.js.map +1 -1
  3. package/dist/index.es.js +2535 -2109
  4. package/dist/index.es.js.map +1 -1
  5. package/dist/src/StreamCall.d.ts +5 -3
  6. package/dist/src/StreamChannel.d.ts +7 -9
  7. package/dist/src/StreamChatClient.d.ts +2 -5
  8. package/dist/src/StreamClient.d.ts +15 -26
  9. package/dist/src/gen/chat/apis/ProductchatApi.d.ts +1750 -0
  10. package/dist/src/gen/chat/apis/index.d.ts +1 -27
  11. package/dist/src/gen/chat/models/index.d.ts +5101 -5891
  12. package/dist/src/gen/chat/runtime.d.ts +2 -2
  13. package/dist/src/gen/video/apis/ProductvideoApi.d.ts +17 -2
  14. package/dist/src/gen/video/models/index.d.ts +323 -39
  15. package/dist/src/gen/video/runtime.d.ts +1 -1
  16. package/package.json +1 -1
  17. package/src/StreamCall.ts +14 -2
  18. package/src/StreamChannel.ts +44 -49
  19. package/src/StreamChatClient.ts +23 -35
  20. package/src/StreamClient.ts +71 -232
  21. package/src/gen/chat/.openapi-generator/FILES +1 -19
  22. package/src/gen/chat/apis/ProductchatApi.ts +7007 -0
  23. package/src/gen/chat/apis/index.ts +1 -27
  24. package/src/gen/chat/models/index.ts +5758 -6564
  25. package/src/gen/chat/runtime.ts +3 -3
  26. package/src/gen/video/apis/ProductvideoApi.ts +64 -1
  27. package/src/gen/video/models/index.ts +328 -40
  28. package/src/gen/video/runtime.ts +1 -1
  29. package/dist/src/gen/chat/apis/ChannelTypesApi.d.ts +0 -81
  30. package/dist/src/gen/chat/apis/ChannelsApi.d.ts +0 -280
  31. package/dist/src/gen/chat/apis/CustomCommandsApi.d.ts +0 -81
  32. package/dist/src/gen/chat/apis/DefaultApi.d.ts +0 -60
  33. package/dist/src/gen/chat/apis/DevicesApi.d.ts +0 -58
  34. package/dist/src/gen/chat/apis/EventsApi.d.ts +0 -47
  35. package/dist/src/gen/chat/apis/FilesApi.d.ts +0 -85
  36. package/dist/src/gen/chat/apis/GDPRApi.d.ts +0 -114
  37. package/dist/src/gen/chat/apis/ImportsApi.d.ts +0 -67
  38. package/dist/src/gen/chat/apis/MessagesApi.d.ts +0 -374
  39. package/dist/src/gen/chat/apis/ModerationApi.d.ts +0 -271
  40. package/dist/src/gen/chat/apis/PermissionsV2Api.d.ts +0 -77
  41. package/dist/src/gen/chat/apis/PushApi.d.ts +0 -65
  42. package/dist/src/gen/chat/apis/ReactionsApi.d.ts +0 -62
  43. package/dist/src/gen/chat/apis/ServerSideApi.d.ts +0 -31
  44. package/dist/src/gen/chat/apis/SettingsApi.d.ts +0 -257
  45. package/dist/src/gen/chat/apis/TasksApi.d.ts +0 -31
  46. package/dist/src/gen/chat/apis/TestingApi.d.ts +0 -57
  47. package/dist/src/gen/chat/apis/UsersApi.d.ts +0 -313
  48. package/src/gen/chat/apis/ChannelTypesApi.ts +0 -275
  49. package/src/gen/chat/apis/ChannelsApi.ts +0 -1096
  50. package/src/gen/chat/apis/CustomCommandsApi.ts +0 -276
  51. package/src/gen/chat/apis/DefaultApi.ts +0 -196
  52. package/src/gen/chat/apis/DevicesApi.ts +0 -180
  53. package/src/gen/chat/apis/EventsApi.ts +0 -147
  54. package/src/gen/chat/apis/FilesApi.ts +0 -312
  55. package/src/gen/chat/apis/GDPRApi.ts +0 -418
  56. package/src/gen/chat/apis/ImportsApi.ts +0 -222
  57. package/src/gen/chat/apis/MessagesApi.ts +0 -1475
  58. package/src/gen/chat/apis/ModerationApi.ts +0 -1038
  59. package/src/gen/chat/apis/PermissionsV2Api.ts +0 -259
  60. package/src/gen/chat/apis/PushApi.ts +0 -183
  61. package/src/gen/chat/apis/ReactionsApi.ts +0 -202
  62. package/src/gen/chat/apis/ServerSideApi.ts +0 -79
  63. package/src/gen/chat/apis/SettingsApi.ts +0 -948
  64. package/src/gen/chat/apis/TasksApi.ts +0 -75
  65. package/src/gen/chat/apis/TestingApi.ts +0 -185
  66. package/src/gen/chat/apis/UsersApi.ts +0 -1203
@@ -1,8 +1,8 @@
1
1
  /**
2
- * Stream Chat API
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: v92.7.0
5
+ * The version of the OpenAPI document: v122.3.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Stream API
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: v116.0.0
5
+ * The version of the OpenAPI document: v122.3.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
@@ -68,6 +68,33 @@ export interface VideoAPNS {
68
68
  */
69
69
  title?: string;
70
70
  }
71
+ /**
72
+ *
73
+ * @export
74
+ * @interface VideoAggregatedStats
75
+ */
76
+ export interface VideoAggregatedStats {
77
+ /**
78
+ *
79
+ * @type {{ [key: string]: VideoCountrywiseAggregateStats; }}
80
+ * @memberof VideoAggregatedStats
81
+ */
82
+ countrywise_aggregate_stats?: {
83
+ [key: string]: VideoCountrywiseAggregateStats;
84
+ };
85
+ /**
86
+ *
87
+ * @type {VideoPublisherAggregateStats}
88
+ * @memberof VideoAggregatedStats
89
+ */
90
+ publisher_aggregate_stats?: VideoPublisherAggregateStats;
91
+ /**
92
+ *
93
+ * @type {VideoTURNAggregatedStats}
94
+ * @memberof VideoAggregatedStats
95
+ */
96
+ turn?: VideoTURNAggregatedStats;
97
+ }
71
98
  /**
72
99
  *
73
100
  * @export
@@ -225,6 +252,12 @@ export interface VideoBackstageSettingsRequest {
225
252
  * @memberof VideoBackstageSettingsRequest
226
253
  */
227
254
  enabled?: boolean;
255
+ /**
256
+ *
257
+ * @type {number}
258
+ * @memberof VideoBackstageSettingsRequest
259
+ */
260
+ join_ahead_time_seconds?: number;
228
261
  }
229
262
  /**
230
263
  *
@@ -238,6 +271,12 @@ export interface VideoBackstageSettingsResponse {
238
271
  * @memberof VideoBackstageSettingsResponse
239
272
  */
240
273
  enabled: boolean;
274
+ /**
275
+ *
276
+ * @type {number}
277
+ * @memberof VideoBackstageSettingsResponse
278
+ */
279
+ join_ahead_time_seconds?: number;
241
280
  }
242
281
  /**
243
282
  *
@@ -309,6 +348,20 @@ export interface VideoBroadcastSettingsResponse {
309
348
  * @interface VideoCallEvent
310
349
  */
311
350
  export interface VideoCallEvent {
351
+ /**
352
+ *
353
+ * @type {{ [key: string]: any; }}
354
+ * @memberof VideoCallEvent
355
+ */
356
+ additional?: {
357
+ [key: string]: any;
358
+ };
359
+ /**
360
+ *
361
+ * @type {string}
362
+ * @memberof VideoCallEvent
363
+ */
364
+ component?: string;
312
365
  /**
313
366
  *
314
367
  * @type {string}
@@ -540,6 +593,12 @@ export interface VideoCallResponse {
540
593
  * @memberof VideoCallResponse
541
594
  */
542
595
  ingress: VideoCallIngressResponse;
596
+ /**
597
+ *
598
+ * @type {number}
599
+ * @memberof VideoCallResponse
600
+ */
601
+ join_ahead_time_seconds?: number;
543
602
  /**
544
603
  *
545
604
  * @type {boolean}
@@ -633,6 +692,14 @@ export interface VideoCallSessionResponse {
633
692
  * @memberof VideoCallSessionResponse
634
693
  */
635
694
  live_started_at?: string;
695
+ /**
696
+ *
697
+ * @type {{ [key: string]: string; }}
698
+ * @memberof VideoCallSessionResponse
699
+ */
700
+ missed_by: {
701
+ [key: string]: string;
702
+ };
636
703
  /**
637
704
  *
638
705
  * @type {Array<VideoCallParticipantResponse>}
@@ -995,6 +1062,12 @@ export interface VideoCheckExternalStorageResponse {
995
1062
  * @memberof VideoCheckExternalStorageResponse
996
1063
  */
997
1064
  duration: string;
1065
+ /**
1066
+ *
1067
+ * @type {string}
1068
+ * @memberof VideoCheckExternalStorageResponse
1069
+ */
1070
+ file_url: string;
998
1071
  }
999
1072
  /**
1000
1073
  *
@@ -1073,6 +1146,62 @@ export interface VideoCoordinates {
1073
1146
  */
1074
1147
  longitude: number;
1075
1148
  }
1149
+ /**
1150
+ *
1151
+ * @export
1152
+ * @interface VideoCount
1153
+ */
1154
+ export interface VideoCount {
1155
+ /**
1156
+ *
1157
+ * @type {boolean}
1158
+ * @memberof VideoCount
1159
+ */
1160
+ approximate: boolean;
1161
+ /**
1162
+ *
1163
+ * @type {number}
1164
+ * @memberof VideoCount
1165
+ */
1166
+ value: number;
1167
+ }
1168
+ /**
1169
+ *
1170
+ * @export
1171
+ * @interface VideoCountrywiseAggregateStats
1172
+ */
1173
+ export interface VideoCountrywiseAggregateStats {
1174
+ /**
1175
+ *
1176
+ * @type {VideoCount}
1177
+ * @memberof VideoCountrywiseAggregateStats
1178
+ */
1179
+ participant_count?: VideoCount;
1180
+ /**
1181
+ *
1182
+ * @type {VideoTimeStats}
1183
+ * @memberof VideoCountrywiseAggregateStats
1184
+ */
1185
+ publisher_jitter?: VideoTimeStats;
1186
+ /**
1187
+ *
1188
+ * @type {VideoTimeStats}
1189
+ * @memberof VideoCountrywiseAggregateStats
1190
+ */
1191
+ publisher_latency?: VideoTimeStats;
1192
+ /**
1193
+ *
1194
+ * @type {VideoTimeStats}
1195
+ * @memberof VideoCountrywiseAggregateStats
1196
+ */
1197
+ subscriber_jitter?: VideoTimeStats;
1198
+ /**
1199
+ *
1200
+ * @type {VideoTimeStats}
1201
+ * @memberof VideoCountrywiseAggregateStats
1202
+ */
1203
+ subscriber_latency?: VideoTimeStats;
1204
+ }
1076
1205
  /**
1077
1206
  *
1078
1207
  * @export
@@ -1269,8 +1398,17 @@ export interface VideoCreateExternalStorageRequest {
1269
1398
  * @type {string}
1270
1399
  * @memberof VideoCreateExternalStorageRequest
1271
1400
  */
1272
- storage_type: string;
1401
+ storage_type: VideoCreateExternalStorageRequestStorageTypeEnum;
1273
1402
  }
1403
+ /**
1404
+ * @export
1405
+ */
1406
+ export declare const VideoCreateExternalStorageRequestStorageTypeEnum: {
1407
+ readonly S3: "s3";
1408
+ readonly GCS: "gcs";
1409
+ readonly ABS: "abs";
1410
+ };
1411
+ export type VideoCreateExternalStorageRequestStorageTypeEnum = typeof VideoCreateExternalStorageRequestStorageTypeEnum[keyof typeof VideoCreateExternalStorageRequestStorageTypeEnum];
1274
1412
  /**
1275
1413
  *
1276
1414
  * @export
@@ -1322,6 +1460,44 @@ export interface VideoCreateGuestResponse {
1322
1460
  */
1323
1461
  user: VideoUserResponse;
1324
1462
  }
1463
+ /**
1464
+ *
1465
+ * @export
1466
+ * @interface VideoDeleteCallRequest
1467
+ */
1468
+ export interface VideoDeleteCallRequest {
1469
+ /**
1470
+ * if true the call will be hard deleted along with all related data
1471
+ * @type {boolean}
1472
+ * @memberof VideoDeleteCallRequest
1473
+ */
1474
+ hard?: boolean;
1475
+ }
1476
+ /**
1477
+ *
1478
+ * @export
1479
+ * @interface VideoDeleteCallResponse
1480
+ */
1481
+ export interface VideoDeleteCallResponse {
1482
+ /**
1483
+ *
1484
+ * @type {VideoCallResponse}
1485
+ * @memberof VideoDeleteCallResponse
1486
+ */
1487
+ call: VideoCallResponse;
1488
+ /**
1489
+ * Duration of the request in human-readable format
1490
+ * @type {string}
1491
+ * @memberof VideoDeleteCallResponse
1492
+ */
1493
+ duration: string;
1494
+ /**
1495
+ *
1496
+ * @type {string}
1497
+ * @memberof VideoDeleteCallResponse
1498
+ */
1499
+ task_id?: string;
1500
+ }
1325
1501
  /**
1326
1502
  *
1327
1503
  * @export
@@ -1617,8 +1793,17 @@ export interface VideoExternalStorageResponse {
1617
1793
  * @type {string}
1618
1794
  * @memberof VideoExternalStorageResponse
1619
1795
  */
1620
- type: string;
1796
+ type: VideoExternalStorageResponseTypeEnum;
1621
1797
  }
1798
+ /**
1799
+ * @export
1800
+ */
1801
+ export declare const VideoExternalStorageResponseTypeEnum: {
1802
+ readonly S3: "s3";
1803
+ readonly GCS: "gcs";
1804
+ readonly ABS: "abs";
1805
+ };
1806
+ export type VideoExternalStorageResponseTypeEnum = typeof VideoExternalStorageResponseTypeEnum[keyof typeof VideoExternalStorageResponseTypeEnum];
1622
1807
  /**
1623
1808
  *
1624
1809
  * @export
@@ -1749,6 +1934,12 @@ export interface VideoGetCallResponse {
1749
1934
  * @interface VideoGetCallStatsResponse
1750
1935
  */
1751
1936
  export interface VideoGetCallStatsResponse {
1937
+ /**
1938
+ *
1939
+ * @type {VideoAggregatedStats}
1940
+ * @memberof VideoGetCallStatsResponse
1941
+ */
1942
+ aggregated?: VideoAggregatedStats;
1752
1943
  /**
1753
1944
  *
1754
1945
  * @type {number}
@@ -1775,16 +1966,16 @@ export interface VideoGetCallStatsResponse {
1775
1966
  duration: string;
1776
1967
  /**
1777
1968
  *
1778
- * @type {VideoStats}
1969
+ * @type {VideoTimeStats}
1779
1970
  * @memberof VideoGetCallStatsResponse
1780
1971
  */
1781
- jitter?: VideoStats;
1972
+ jitter?: VideoTimeStats;
1782
1973
  /**
1783
1974
  *
1784
- * @type {VideoStats}
1975
+ * @type {VideoTimeStats}
1785
1976
  * @memberof VideoGetCallStatsResponse
1786
1977
  */
1787
- latency?: VideoStats;
1978
+ latency?: VideoTimeStats;
1788
1979
  /**
1789
1980
  *
1790
1981
  * @type {number}
@@ -2588,6 +2779,12 @@ export interface VideoNotificationSettings {
2588
2779
  * @memberof VideoNotificationSettings
2589
2780
  */
2590
2781
  call_live_started?: VideoEventNotificationSettings;
2782
+ /**
2783
+ *
2784
+ * @type {VideoEventNotificationSettings}
2785
+ * @memberof VideoNotificationSettings
2786
+ */
2787
+ call_missed?: VideoEventNotificationSettings;
2591
2788
  /**
2592
2789
  *
2593
2790
  * @type {VideoEventNotificationSettings}
@@ -2760,6 +2957,27 @@ export interface VideoPublishedTrackInfo {
2760
2957
  */
2761
2958
  track_type?: string;
2762
2959
  }
2960
+ /**
2961
+ *
2962
+ * @export
2963
+ * @interface VideoPublisherAggregateStats
2964
+ */
2965
+ export interface VideoPublisherAggregateStats {
2966
+ /**
2967
+ *
2968
+ * @type {{ [key: string]: VideoCount; }}
2969
+ * @memberof VideoPublisherAggregateStats
2970
+ */
2971
+ by_track_type?: {
2972
+ [key: string]: VideoCount;
2973
+ };
2974
+ /**
2975
+ *
2976
+ * @type {VideoCount}
2977
+ * @memberof VideoPublisherAggregateStats
2978
+ */
2979
+ total?: VideoCount;
2980
+ }
2763
2981
  /**
2764
2982
  *
2765
2983
  * @export
@@ -3095,6 +3313,11 @@ export declare const VideoRecordSettingsRequestQualityEnum: {
3095
3313
  readonly _720P: "720p";
3096
3314
  readonly _1080P: "1080p";
3097
3315
  readonly _1440P: "1440p";
3316
+ readonly PORTRAIT_360X640: "portrait-360x640";
3317
+ readonly PORTRAIT_480X854: "portrait-480x854";
3318
+ readonly PORTRAIT_720X1280: "portrait-720x1280";
3319
+ readonly PORTRAIT_1080X1920: "portrait-1080x1920";
3320
+ readonly PORTRAIT_1440X2560: "portrait-1440x2560";
3098
3321
  };
3099
3322
  export type VideoRecordSettingsRequestQualityEnum = typeof VideoRecordSettingsRequestQualityEnum[keyof typeof VideoRecordSettingsRequestQualityEnum];
3100
3323
  /**
@@ -3159,6 +3382,12 @@ export interface VideoRingSettingsRequest {
3159
3382
  * @memberof VideoRingSettingsRequest
3160
3383
  */
3161
3384
  incoming_call_timeout_ms: number;
3385
+ /**
3386
+ *
3387
+ * @type {number}
3388
+ * @memberof VideoRingSettingsRequest
3389
+ */
3390
+ missed_call_timeout_ms?: number;
3162
3391
  }
3163
3392
  /**
3164
3393
  *
@@ -3178,6 +3407,12 @@ export interface VideoRingSettingsResponse {
3178
3407
  * @memberof VideoRingSettingsResponse
3179
3408
  */
3180
3409
  incoming_call_timeout_ms: number;
3410
+ /**
3411
+ *
3412
+ * @type {number}
3413
+ * @memberof VideoRingSettingsResponse
3414
+ */
3415
+ missed_call_timeout_ms: number;
3181
3416
  }
3182
3417
  /**
3183
3418
  *
@@ -3415,25 +3650,6 @@ export interface VideoStartTranscriptionResponse {
3415
3650
  */
3416
3651
  duration: string;
3417
3652
  }
3418
- /**
3419
- *
3420
- * @export
3421
- * @interface VideoStats
3422
- */
3423
- export interface VideoStats {
3424
- /**
3425
- *
3426
- * @type {number}
3427
- * @memberof VideoStats
3428
- */
3429
- average_seconds: number;
3430
- /**
3431
- *
3432
- * @type {number}
3433
- * @memberof VideoStats
3434
- */
3435
- max_seconds: number;
3436
- }
3437
3653
  /**
3438
3654
  *
3439
3655
  * @export
@@ -3523,6 +3739,25 @@ export interface VideoSubsession {
3523
3739
  */
3524
3740
  sfu_id: string;
3525
3741
  }
3742
+ /**
3743
+ *
3744
+ * @export
3745
+ * @interface VideoTURNAggregatedStats
3746
+ */
3747
+ export interface VideoTURNAggregatedStats {
3748
+ /**
3749
+ *
3750
+ * @type {VideoCount}
3751
+ * @memberof VideoTURNAggregatedStats
3752
+ */
3753
+ tcp?: VideoCount;
3754
+ /**
3755
+ *
3756
+ * @type {VideoCount}
3757
+ * @memberof VideoTURNAggregatedStats
3758
+ */
3759
+ total?: VideoCount;
3760
+ }
3526
3761
  /**
3527
3762
  *
3528
3763
  * @export
@@ -3587,6 +3822,25 @@ export interface VideoThumbnailsSettingsResponse {
3587
3822
  */
3588
3823
  enabled: boolean;
3589
3824
  }
3825
+ /**
3826
+ *
3827
+ * @export
3828
+ * @interface VideoTimeStats
3829
+ */
3830
+ export interface VideoTimeStats {
3831
+ /**
3832
+ *
3833
+ * @type {number}
3834
+ * @memberof VideoTimeStats
3835
+ */
3836
+ average_seconds: number;
3837
+ /**
3838
+ *
3839
+ * @type {number}
3840
+ * @memberof VideoTimeStats
3841
+ */
3842
+ max_seconds: number;
3843
+ }
3590
3844
  /**
3591
3845
  *
3592
3846
  * @export
@@ -3953,8 +4207,17 @@ export interface VideoUpdateExternalStorageRequest {
3953
4207
  * @type {string}
3954
4208
  * @memberof VideoUpdateExternalStorageRequest
3955
4209
  */
3956
- storage_type: string;
4210
+ storage_type: VideoUpdateExternalStorageRequestStorageTypeEnum;
3957
4211
  }
4212
+ /**
4213
+ * @export
4214
+ */
4215
+ export declare const VideoUpdateExternalStorageRequestStorageTypeEnum: {
4216
+ readonly S3: "s3";
4217
+ readonly GCS: "gcs";
4218
+ readonly ABS: "abs";
4219
+ };
4220
+ export type VideoUpdateExternalStorageRequestStorageTypeEnum = typeof VideoUpdateExternalStorageRequestStorageTypeEnum[keyof typeof VideoUpdateExternalStorageRequestStorageTypeEnum];
3958
4221
  /**
3959
4222
  *
3960
4223
  * @export
@@ -3990,8 +4253,17 @@ export interface VideoUpdateExternalStorageResponse {
3990
4253
  * @type {string}
3991
4254
  * @memberof VideoUpdateExternalStorageResponse
3992
4255
  */
3993
- type: string;
4256
+ type: VideoUpdateExternalStorageResponseTypeEnum;
3994
4257
  }
4258
+ /**
4259
+ * @export
4260
+ */
4261
+ export declare const VideoUpdateExternalStorageResponseTypeEnum: {
4262
+ readonly S3: "s3";
4263
+ readonly GCS: "gcs";
4264
+ readonly ABS: "abs";
4265
+ };
4266
+ export type VideoUpdateExternalStorageResponseTypeEnum = typeof VideoUpdateExternalStorageResponseTypeEnum[keyof typeof VideoUpdateExternalStorageResponseTypeEnum];
3995
4267
  /**
3996
4268
  *
3997
4269
  * @export
@@ -4144,6 +4416,12 @@ export interface VideoUserResponse {
4144
4416
  * @memberof VideoUserResponse
4145
4417
  */
4146
4418
  banned: boolean;
4419
+ /**
4420
+ *
4421
+ * @type {Array<string>}
4422
+ * @memberof VideoUserResponse
4423
+ */
4424
+ blocked_user_ids: Array<string>;
4147
4425
  /**
4148
4426
  * Date/time of creation
4149
4427
  * @type {string}
@@ -4317,16 +4595,16 @@ export interface VideoUserSessionStats {
4317
4595
  geolocation?: VideoGeolocationResult;
4318
4596
  /**
4319
4597
  *
4320
- * @type {VideoStats}
4598
+ * @type {VideoTimeStats}
4321
4599
  * @memberof VideoUserSessionStats
4322
4600
  */
4323
- jitter?: VideoStats;
4601
+ jitter?: VideoTimeStats;
4324
4602
  /**
4325
4603
  *
4326
- * @type {VideoStats}
4604
+ * @type {VideoTimeStats}
4327
4605
  * @memberof VideoUserSessionStats
4328
4606
  */
4329
- latency?: VideoStats;
4607
+ latency?: VideoTimeStats;
4330
4608
  /**
4331
4609
  *
4332
4610
  * @type {number}
@@ -4413,16 +4691,16 @@ export interface VideoUserSessionStats {
4413
4691
  publisher_audio_mos?: VideoMOSStats;
4414
4692
  /**
4415
4693
  *
4416
- * @type {VideoStats}
4694
+ * @type {VideoTimeStats}
4417
4695
  * @memberof VideoUserSessionStats
4418
4696
  */
4419
- publisher_jitter?: VideoStats;
4697
+ publisher_jitter?: VideoTimeStats;
4420
4698
  /**
4421
4699
  *
4422
- * @type {VideoStats}
4700
+ * @type {VideoTimeStats}
4423
4701
  * @memberof VideoUserSessionStats
4424
4702
  */
4425
- publisher_latency?: VideoStats;
4703
+ publisher_latency?: VideoTimeStats;
4426
4704
  /**
4427
4705
  *
4428
4706
  * @type {number}
@@ -4517,16 +4795,16 @@ export interface VideoUserSessionStats {
4517
4795
  subscriber_audio_mos?: VideoMOSStats;
4518
4796
  /**
4519
4797
  *
4520
- * @type {VideoStats}
4798
+ * @type {VideoTimeStats}
4521
4799
  * @memberof VideoUserSessionStats
4522
4800
  */
4523
- subscriber_jitter?: VideoStats;
4801
+ subscriber_jitter?: VideoTimeStats;
4524
4802
  /**
4525
4803
  *
4526
- * @type {VideoStats}
4804
+ * @type {VideoTimeStats}
4527
4805
  * @memberof VideoUserSessionStats
4528
4806
  */
4529
- subscriber_latency?: VideoStats;
4807
+ subscriber_latency?: VideoTimeStats;
4530
4808
  /**
4531
4809
  *
4532
4810
  * @type {number}
@@ -4557,6 +4835,12 @@ export interface VideoUserSessionStats {
4557
4835
  * @memberof VideoUserSessionStats
4558
4836
  */
4559
4837
  total_pixels_out: number;
4838
+ /**
4839
+ *
4840
+ * @type {boolean}
4841
+ * @memberof VideoUserSessionStats
4842
+ */
4843
+ truncated?: boolean;
4560
4844
  /**
4561
4845
  *
4562
4846
  * @type {string}
@@ -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: v116.0.0
5
+ * The version of the OpenAPI document: v122.3.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.5",
3
+ "version": "0.3.0",
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,
@@ -51,6 +56,13 @@ export class StreamCall {
51
56
  return this.apiClient.getCall({ ...(request ?? {}), ...this.baseRequest });
52
57
  };
53
58
 
59
+ delete = (videoDeleteCallRequest?: VideoDeleteCallRequest) => {
60
+ return this.apiClient.deleteCall({
61
+ ...this.baseRequest,
62
+ videoDeleteCallRequest: videoDeleteCallRequest ?? null,
63
+ });
64
+ };
65
+
54
66
  getOrCreate = (videoGetOrCreateCallRequest?: VideoGetOrCreateCallRequest) => {
55
67
  return this.apiClient.getOrCreateCall({
56
68
  ...this.baseRequest,