@stream-io/node-sdk 0.2.6 → 0.3.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.
Files changed (67) hide show
  1. package/README.md +1 -1
  2. package/dist/index.cjs.js +2461 -2124
  3. package/dist/index.cjs.js.map +1 -1
  4. package/dist/index.es.js +2450 -2109
  5. package/dist/index.es.js.map +1 -1
  6. package/dist/src/StreamCall.d.ts +1 -1
  7. package/dist/src/StreamChannel.d.ts +7 -9
  8. package/dist/src/StreamChatClient.d.ts +2 -5
  9. package/dist/src/StreamClient.d.ts +15 -26
  10. package/dist/src/gen/chat/apis/ProductchatApi.d.ts +1750 -0
  11. package/dist/src/gen/chat/apis/index.d.ts +1 -27
  12. package/dist/src/gen/chat/models/index.d.ts +5101 -5891
  13. package/dist/src/gen/chat/runtime.d.ts +2 -2
  14. package/dist/src/gen/video/apis/ProductvideoApi.d.ts +1 -1
  15. package/dist/src/gen/video/models/index.d.ts +189 -35
  16. package/dist/src/gen/video/runtime.d.ts +1 -1
  17. package/package.json +8 -1
  18. package/src/StreamCall.ts +7 -7
  19. package/src/StreamChannel.ts +44 -49
  20. package/src/StreamChatClient.ts +23 -35
  21. package/src/StreamClient.ts +71 -232
  22. package/src/gen/chat/.openapi-generator/FILES +1 -19
  23. package/src/gen/chat/apis/ProductchatApi.ts +7007 -0
  24. package/src/gen/chat/apis/index.ts +1 -27
  25. package/src/gen/chat/models/index.ts +5758 -6564
  26. package/src/gen/chat/runtime.ts +3 -3
  27. package/src/gen/video/apis/ProductvideoApi.ts +1 -1
  28. package/src/gen/video/models/index.ts +184 -36
  29. package/src/gen/video/runtime.ts +1 -1
  30. package/dist/src/gen/chat/apis/ChannelTypesApi.d.ts +0 -81
  31. package/dist/src/gen/chat/apis/ChannelsApi.d.ts +0 -280
  32. package/dist/src/gen/chat/apis/CustomCommandsApi.d.ts +0 -81
  33. package/dist/src/gen/chat/apis/DefaultApi.d.ts +0 -60
  34. package/dist/src/gen/chat/apis/DevicesApi.d.ts +0 -58
  35. package/dist/src/gen/chat/apis/EventsApi.d.ts +0 -47
  36. package/dist/src/gen/chat/apis/FilesApi.d.ts +0 -85
  37. package/dist/src/gen/chat/apis/GDPRApi.d.ts +0 -114
  38. package/dist/src/gen/chat/apis/ImportsApi.d.ts +0 -67
  39. package/dist/src/gen/chat/apis/MessagesApi.d.ts +0 -374
  40. package/dist/src/gen/chat/apis/ModerationApi.d.ts +0 -271
  41. package/dist/src/gen/chat/apis/PermissionsV2Api.d.ts +0 -77
  42. package/dist/src/gen/chat/apis/PushApi.d.ts +0 -65
  43. package/dist/src/gen/chat/apis/ReactionsApi.d.ts +0 -62
  44. package/dist/src/gen/chat/apis/ServerSideApi.d.ts +0 -31
  45. package/dist/src/gen/chat/apis/SettingsApi.d.ts +0 -257
  46. package/dist/src/gen/chat/apis/TasksApi.d.ts +0 -31
  47. package/dist/src/gen/chat/apis/TestingApi.d.ts +0 -57
  48. package/dist/src/gen/chat/apis/UsersApi.d.ts +0 -313
  49. package/src/gen/chat/apis/ChannelTypesApi.ts +0 -275
  50. package/src/gen/chat/apis/ChannelsApi.ts +0 -1096
  51. package/src/gen/chat/apis/CustomCommandsApi.ts +0 -276
  52. package/src/gen/chat/apis/DefaultApi.ts +0 -196
  53. package/src/gen/chat/apis/DevicesApi.ts +0 -180
  54. package/src/gen/chat/apis/EventsApi.ts +0 -147
  55. package/src/gen/chat/apis/FilesApi.ts +0 -312
  56. package/src/gen/chat/apis/GDPRApi.ts +0 -418
  57. package/src/gen/chat/apis/ImportsApi.ts +0 -222
  58. package/src/gen/chat/apis/MessagesApi.ts +0 -1475
  59. package/src/gen/chat/apis/ModerationApi.ts +0 -1038
  60. package/src/gen/chat/apis/PermissionsV2Api.ts +0 -259
  61. package/src/gen/chat/apis/PushApi.ts +0 -183
  62. package/src/gen/chat/apis/ReactionsApi.ts +0 -202
  63. package/src/gen/chat/apis/ServerSideApi.ts +0 -79
  64. package/src/gen/chat/apis/SettingsApi.ts +0 -948
  65. package/src/gen/chat/apis/TasksApi.ts +0 -75
  66. package/src/gen/chat/apis/TestingApi.ts +0 -185
  67. package/src/gen/chat/apis/UsersApi.ts +0 -1203
@@ -1,10 +1,10 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  /**
4
- * Stream Chat API
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: v92.7.0
7
+ * The version of the OpenAPI document: v122.3.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -13,7 +13,7 @@
13
13
  */
14
14
 
15
15
 
16
- export const BASE_PATH = "https://chat.stream-io-api.com".replace(/\/+$/, "");
16
+ export const BASE_PATH = "https://stream-io-api.com".replace(/\/+$/, "");
17
17
 
18
18
  export interface ConfigurationParameters {
19
19
  basePath?: string; // override base path
@@ -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: v120.0.0
7
+ * The version of the OpenAPI document: v122.3.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -68,6 +68,31 @@ 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?: { [key: string]: VideoCountrywiseAggregateStats; };
83
+ /**
84
+ *
85
+ * @type {VideoPublisherAggregateStats}
86
+ * @memberof VideoAggregatedStats
87
+ */
88
+ publisher_aggregate_stats?: VideoPublisherAggregateStats;
89
+ /**
90
+ *
91
+ * @type {VideoTURNAggregatedStats}
92
+ * @memberof VideoAggregatedStats
93
+ */
94
+ turn?: VideoTURNAggregatedStats;
95
+ }
71
96
  /**
72
97
  *
73
98
  * @export
@@ -327,6 +352,18 @@ export interface VideoBroadcastSettingsResponse {
327
352
  * @interface VideoCallEvent
328
353
  */
329
354
  export interface VideoCallEvent {
355
+ /**
356
+ *
357
+ * @type {{ [key: string]: any; }}
358
+ * @memberof VideoCallEvent
359
+ */
360
+ additional?: { [key: string]: any; };
361
+ /**
362
+ *
363
+ * @type {string}
364
+ * @memberof VideoCallEvent
365
+ */
366
+ component?: string;
330
367
  /**
331
368
  *
332
369
  * @type {string}
@@ -1095,6 +1132,62 @@ export interface VideoCoordinates {
1095
1132
  */
1096
1133
  longitude: number;
1097
1134
  }
1135
+ /**
1136
+ *
1137
+ * @export
1138
+ * @interface VideoCount
1139
+ */
1140
+ export interface VideoCount {
1141
+ /**
1142
+ *
1143
+ * @type {boolean}
1144
+ * @memberof VideoCount
1145
+ */
1146
+ approximate: boolean;
1147
+ /**
1148
+ *
1149
+ * @type {number}
1150
+ * @memberof VideoCount
1151
+ */
1152
+ value: number;
1153
+ }
1154
+ /**
1155
+ *
1156
+ * @export
1157
+ * @interface VideoCountrywiseAggregateStats
1158
+ */
1159
+ export interface VideoCountrywiseAggregateStats {
1160
+ /**
1161
+ *
1162
+ * @type {VideoCount}
1163
+ * @memberof VideoCountrywiseAggregateStats
1164
+ */
1165
+ participant_count?: VideoCount;
1166
+ /**
1167
+ *
1168
+ * @type {VideoTimeStats}
1169
+ * @memberof VideoCountrywiseAggregateStats
1170
+ */
1171
+ publisher_jitter?: VideoTimeStats;
1172
+ /**
1173
+ *
1174
+ * @type {VideoTimeStats}
1175
+ * @memberof VideoCountrywiseAggregateStats
1176
+ */
1177
+ publisher_latency?: VideoTimeStats;
1178
+ /**
1179
+ *
1180
+ * @type {VideoTimeStats}
1181
+ * @memberof VideoCountrywiseAggregateStats
1182
+ */
1183
+ subscriber_jitter?: VideoTimeStats;
1184
+ /**
1185
+ *
1186
+ * @type {VideoTimeStats}
1187
+ * @memberof VideoCountrywiseAggregateStats
1188
+ */
1189
+ subscriber_latency?: VideoTimeStats;
1190
+ }
1098
1191
  /**
1099
1192
  *
1100
1193
  * @export
@@ -1835,6 +1928,12 @@ export interface VideoGetCallResponse {
1835
1928
  * @interface VideoGetCallStatsResponse
1836
1929
  */
1837
1930
  export interface VideoGetCallStatsResponse {
1931
+ /**
1932
+ *
1933
+ * @type {VideoAggregatedStats}
1934
+ * @memberof VideoGetCallStatsResponse
1935
+ */
1936
+ aggregated?: VideoAggregatedStats;
1838
1937
  /**
1839
1938
  *
1840
1939
  * @type {number}
@@ -1861,16 +1960,16 @@ export interface VideoGetCallStatsResponse {
1861
1960
  duration: string;
1862
1961
  /**
1863
1962
  *
1864
- * @type {VideoStats}
1963
+ * @type {VideoTimeStats}
1865
1964
  * @memberof VideoGetCallStatsResponse
1866
1965
  */
1867
- jitter?: VideoStats;
1966
+ jitter?: VideoTimeStats;
1868
1967
  /**
1869
1968
  *
1870
- * @type {VideoStats}
1969
+ * @type {VideoTimeStats}
1871
1970
  * @memberof VideoGetCallStatsResponse
1872
1971
  */
1873
- latency?: VideoStats;
1972
+ latency?: VideoTimeStats;
1874
1973
  /**
1875
1974
  *
1876
1975
  * @type {number}
@@ -2849,6 +2948,25 @@ export interface VideoPublishedTrackInfo {
2849
2948
  */
2850
2949
  track_type?: string;
2851
2950
  }
2951
+ /**
2952
+ *
2953
+ * @export
2954
+ * @interface VideoPublisherAggregateStats
2955
+ */
2956
+ export interface VideoPublisherAggregateStats {
2957
+ /**
2958
+ *
2959
+ * @type {{ [key: string]: VideoCount; }}
2960
+ * @memberof VideoPublisherAggregateStats
2961
+ */
2962
+ by_track_type?: { [key: string]: VideoCount; };
2963
+ /**
2964
+ *
2965
+ * @type {VideoCount}
2966
+ * @memberof VideoPublisherAggregateStats
2967
+ */
2968
+ total?: VideoCount;
2969
+ }
2852
2970
  /**
2853
2971
  *
2854
2972
  * @export
@@ -3180,7 +3298,12 @@ export const VideoRecordSettingsRequestQualityEnum = {
3180
3298
  _480P: '480p',
3181
3299
  _720P: '720p',
3182
3300
  _1080P: '1080p',
3183
- _1440P: '1440p'
3301
+ _1440P: '1440p',
3302
+ PORTRAIT_360X640: 'portrait-360x640',
3303
+ PORTRAIT_480X854: 'portrait-480x854',
3304
+ PORTRAIT_720X1280: 'portrait-720x1280',
3305
+ PORTRAIT_1080X1920: 'portrait-1080x1920',
3306
+ PORTRAIT_1440X2560: 'portrait-1440x2560'
3184
3307
  } as const;
3185
3308
  export type VideoRecordSettingsRequestQualityEnum = typeof VideoRecordSettingsRequestQualityEnum[keyof typeof VideoRecordSettingsRequestQualityEnum];
3186
3309
 
@@ -3512,25 +3635,6 @@ export interface VideoStartTranscriptionResponse {
3512
3635
  */
3513
3636
  duration: string;
3514
3637
  }
3515
- /**
3516
- *
3517
- * @export
3518
- * @interface VideoStats
3519
- */
3520
- export interface VideoStats {
3521
- /**
3522
- *
3523
- * @type {number}
3524
- * @memberof VideoStats
3525
- */
3526
- average_seconds: number;
3527
- /**
3528
- *
3529
- * @type {number}
3530
- * @memberof VideoStats
3531
- */
3532
- max_seconds: number;
3533
- }
3534
3638
  /**
3535
3639
  *
3536
3640
  * @export
@@ -3620,6 +3724,25 @@ export interface VideoSubsession {
3620
3724
  */
3621
3725
  sfu_id: string;
3622
3726
  }
3727
+ /**
3728
+ *
3729
+ * @export
3730
+ * @interface VideoTURNAggregatedStats
3731
+ */
3732
+ export interface VideoTURNAggregatedStats {
3733
+ /**
3734
+ *
3735
+ * @type {VideoCount}
3736
+ * @memberof VideoTURNAggregatedStats
3737
+ */
3738
+ tcp?: VideoCount;
3739
+ /**
3740
+ *
3741
+ * @type {VideoCount}
3742
+ * @memberof VideoTURNAggregatedStats
3743
+ */
3744
+ total?: VideoCount;
3745
+ }
3623
3746
  /**
3624
3747
  *
3625
3748
  * @export
@@ -3684,6 +3807,25 @@ export interface VideoThumbnailsSettingsResponse {
3684
3807
  */
3685
3808
  enabled: boolean;
3686
3809
  }
3810
+ /**
3811
+ *
3812
+ * @export
3813
+ * @interface VideoTimeStats
3814
+ */
3815
+ export interface VideoTimeStats {
3816
+ /**
3817
+ *
3818
+ * @type {number}
3819
+ * @memberof VideoTimeStats
3820
+ */
3821
+ average_seconds: number;
3822
+ /**
3823
+ *
3824
+ * @type {number}
3825
+ * @memberof VideoTimeStats
3826
+ */
3827
+ max_seconds: number;
3828
+ }
3687
3829
  /**
3688
3830
  *
3689
3831
  * @export
@@ -4438,16 +4580,16 @@ export interface VideoUserSessionStats {
4438
4580
  geolocation?: VideoGeolocationResult;
4439
4581
  /**
4440
4582
  *
4441
- * @type {VideoStats}
4583
+ * @type {VideoTimeStats}
4442
4584
  * @memberof VideoUserSessionStats
4443
4585
  */
4444
- jitter?: VideoStats;
4586
+ jitter?: VideoTimeStats;
4445
4587
  /**
4446
4588
  *
4447
- * @type {VideoStats}
4589
+ * @type {VideoTimeStats}
4448
4590
  * @memberof VideoUserSessionStats
4449
4591
  */
4450
- latency?: VideoStats;
4592
+ latency?: VideoTimeStats;
4451
4593
  /**
4452
4594
  *
4453
4595
  * @type {number}
@@ -4534,16 +4676,16 @@ export interface VideoUserSessionStats {
4534
4676
  publisher_audio_mos?: VideoMOSStats;
4535
4677
  /**
4536
4678
  *
4537
- * @type {VideoStats}
4679
+ * @type {VideoTimeStats}
4538
4680
  * @memberof VideoUserSessionStats
4539
4681
  */
4540
- publisher_jitter?: VideoStats;
4682
+ publisher_jitter?: VideoTimeStats;
4541
4683
  /**
4542
4684
  *
4543
- * @type {VideoStats}
4685
+ * @type {VideoTimeStats}
4544
4686
  * @memberof VideoUserSessionStats
4545
4687
  */
4546
- publisher_latency?: VideoStats;
4688
+ publisher_latency?: VideoTimeStats;
4547
4689
  /**
4548
4690
  *
4549
4691
  * @type {number}
@@ -4636,16 +4778,16 @@ export interface VideoUserSessionStats {
4636
4778
  subscriber_audio_mos?: VideoMOSStats;
4637
4779
  /**
4638
4780
  *
4639
- * @type {VideoStats}
4781
+ * @type {VideoTimeStats}
4640
4782
  * @memberof VideoUserSessionStats
4641
4783
  */
4642
- subscriber_jitter?: VideoStats;
4784
+ subscriber_jitter?: VideoTimeStats;
4643
4785
  /**
4644
4786
  *
4645
- * @type {VideoStats}
4787
+ * @type {VideoTimeStats}
4646
4788
  * @memberof VideoUserSessionStats
4647
4789
  */
4648
- subscriber_latency?: VideoStats;
4790
+ subscriber_latency?: VideoTimeStats;
4649
4791
  /**
4650
4792
  *
4651
4793
  * @type {number}
@@ -4676,6 +4818,12 @@ export interface VideoUserSessionStats {
4676
4818
  * @memberof VideoUserSessionStats
4677
4819
  */
4678
4820
  total_pixels_out: number;
4821
+ /**
4822
+ *
4823
+ * @type {boolean}
4824
+ * @memberof VideoUserSessionStats
4825
+ */
4826
+ truncated?: boolean;
4679
4827
  /**
4680
4828
  *
4681
4829
  * @type {string}
@@ -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: v120.0.0
7
+ * The version of the OpenAPI document: v122.3.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1,81 +0,0 @@
1
- /**
2
- * Stream Chat API
3
- * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
- *
5
- * The version of the OpenAPI document: v92.7.0
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- import * as runtime from '../runtime';
13
- import type { CreateChannelTypeRequest, CreateChannelTypeResponse, ListChannelTypesResponse, Response, UpdateChannelTypeRequest, UpdateChannelTypeResponse } from '../models';
14
- export interface CreateChannelTypeOperationRequest {
15
- createChannelTypeRequest: CreateChannelTypeRequest | null;
16
- }
17
- export interface DeleteChannelTypeRequest {
18
- name: string;
19
- }
20
- export interface GetChannelTypeRequest {
21
- name: string;
22
- }
23
- export interface UpdateChannelTypeOperationRequest {
24
- name: string;
25
- updateChannelTypeRequest: UpdateChannelTypeRequest | null;
26
- }
27
- /**
28
- *
29
- */
30
- export declare class ChannelTypesApi extends runtime.BaseAPI {
31
- /**
32
- * Creates new channel type
33
- * Create channel type
34
- */
35
- createChannelTypeRaw(requestParameters: CreateChannelTypeOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateChannelTypeResponse>>;
36
- /**
37
- * Creates new channel type
38
- * Create channel type
39
- */
40
- createChannelType(requestParameters: CreateChannelTypeOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateChannelTypeResponse>;
41
- /**
42
- * Deletes channel type
43
- * Delete channel type
44
- */
45
- deleteChannelTypeRaw(requestParameters: DeleteChannelTypeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Response>>;
46
- /**
47
- * Deletes channel type
48
- * Delete channel type
49
- */
50
- deleteChannelType(requestParameters: DeleteChannelTypeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Response>;
51
- /**
52
- * Gets channel type
53
- * Get channel type
54
- */
55
- getChannelTypeRaw(requestParameters: GetChannelTypeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Response>>;
56
- /**
57
- * Gets channel type
58
- * Get channel type
59
- */
60
- getChannelType(requestParameters: GetChannelTypeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Response>;
61
- /**
62
- * Lists all available channel types
63
- * List channel types
64
- */
65
- listChannelTypesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListChannelTypesResponse>>;
66
- /**
67
- * Lists all available channel types
68
- * List channel types
69
- */
70
- listChannelTypes(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListChannelTypesResponse>;
71
- /**
72
- * Updates channel type
73
- * Update channel type
74
- */
75
- updateChannelTypeRaw(requestParameters: UpdateChannelTypeOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UpdateChannelTypeResponse>>;
76
- /**
77
- * Updates channel type
78
- * Update channel type
79
- */
80
- updateChannelType(requestParameters: UpdateChannelTypeOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UpdateChannelTypeResponse>;
81
- }