@stream-io/node-sdk 0.1.8 → 0.1.10
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 +326 -72
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +326 -72
- package/dist/index.es.js.map +1 -1
- package/dist/src/StreamCall.d.ts +2 -2
- package/dist/src/StreamClient.d.ts +3 -3
- package/dist/src/StreamVideoClient.d.ts +7 -1
- package/dist/src/gen/chat/apis/ChannelTypesApi.d.ts +1 -1
- package/dist/src/gen/chat/apis/ChannelsApi.d.ts +1 -1
- package/dist/src/gen/chat/apis/CustomCommandsApi.d.ts +1 -1
- package/dist/src/gen/chat/apis/DefaultApi.d.ts +1 -1
- package/dist/src/gen/chat/apis/DevicesApi.d.ts +1 -1
- package/dist/src/gen/chat/apis/EventsApi.d.ts +1 -1
- package/dist/src/gen/chat/apis/FilesApi.d.ts +1 -1
- package/dist/src/gen/chat/apis/GDPRApi.d.ts +1 -1
- package/dist/src/gen/chat/apis/ImportsApi.d.ts +1 -1
- package/dist/src/gen/chat/apis/MessagesApi.d.ts +1 -1
- package/dist/src/gen/chat/apis/ModerationApi.d.ts +1 -1
- package/dist/src/gen/chat/apis/PermissionsV2Api.d.ts +1 -1
- package/dist/src/gen/chat/apis/PushApi.d.ts +1 -1
- package/dist/src/gen/chat/apis/ReactionsApi.d.ts +1 -1
- package/dist/src/gen/chat/apis/ServerSideApi.d.ts +1 -1
- package/dist/src/gen/chat/apis/SettingsApi.d.ts +1 -1
- package/dist/src/gen/chat/apis/TasksApi.d.ts +1 -1
- package/dist/src/gen/chat/apis/TestingApi.d.ts +1 -1
- package/dist/src/gen/chat/apis/UsersApi.d.ts +1 -1
- package/dist/src/gen/chat/models/index.d.ts +50 -0
- package/dist/src/gen/chat/runtime.d.ts +1 -1
- package/dist/src/gen/video/apis/DefaultApi.d.ts +4 -3
- package/dist/src/gen/video/apis/ServerSideApi.d.ts +30 -3
- package/dist/src/gen/video/apis/SettingsApi.d.ts +54 -0
- package/dist/src/gen/video/apis/index.d.ts +1 -0
- package/dist/src/gen/video/models/index.d.ts +425 -1450
- package/dist/src/gen/video/runtime.d.ts +2 -2
- package/package.json +1 -1
- package/src/StreamCall.ts +7 -7
- package/src/StreamClient.ts +21 -2
- package/src/StreamVideoClient.ts +38 -5
- package/src/gen/chat/apis/ChannelTypesApi.ts +1 -1
- package/src/gen/chat/apis/ChannelsApi.ts +1 -1
- package/src/gen/chat/apis/CustomCommandsApi.ts +1 -1
- package/src/gen/chat/apis/DefaultApi.ts +1 -1
- package/src/gen/chat/apis/DevicesApi.ts +1 -1
- package/src/gen/chat/apis/EventsApi.ts +1 -1
- package/src/gen/chat/apis/FilesApi.ts +3 -3
- package/src/gen/chat/apis/GDPRApi.ts +1 -1
- package/src/gen/chat/apis/ImportsApi.ts +1 -1
- package/src/gen/chat/apis/MessagesApi.ts +1 -1
- package/src/gen/chat/apis/ModerationApi.ts +1 -1
- package/src/gen/chat/apis/PermissionsV2Api.ts +1 -1
- package/src/gen/chat/apis/PushApi.ts +1 -1
- package/src/gen/chat/apis/ReactionsApi.ts +1 -1
- package/src/gen/chat/apis/ServerSideApi.ts +1 -1
- package/src/gen/chat/apis/SettingsApi.ts +1 -1
- package/src/gen/chat/apis/TasksApi.ts +1 -1
- package/src/gen/chat/apis/TestingApi.ts +1 -1
- package/src/gen/chat/apis/UsersApi.ts +1 -1
- package/src/gen/chat/apis/index.ts +8 -8
- package/src/gen/chat/models/index.ts +50 -0
- package/src/gen/chat/runtime.ts +1 -1
- package/src/gen/video/.openapi-generator/FILES +1 -0
- package/src/gen/video/apis/DefaultApi.ts +39 -30
- package/src/gen/video/apis/ServerSideApi.ts +114 -7
- package/src/gen/video/apis/SettingsApi.ts +169 -0
- package/src/gen/video/apis/index.ts +1 -0
- package/src/gen/video/models/index.ts +428 -1353
- package/src/gen/video/runtime.ts +3 -3
package/dist/index.cjs.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var uuid = require('uuid');
|
|
4
4
|
var jwt = require('jsonwebtoken');
|
|
5
|
+
var crypto = require('crypto');
|
|
5
6
|
|
|
6
7
|
/**
|
|
7
8
|
* @export
|
|
@@ -708,7 +709,7 @@ function __awaiter(thisArg, _arguments, P, generator) {
|
|
|
708
709
|
* Stream Chat API
|
|
709
710
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
710
711
|
*
|
|
711
|
-
* The version of the OpenAPI document: v92.
|
|
712
|
+
* The version of the OpenAPI document: v92.7.0
|
|
712
713
|
*
|
|
713
714
|
*
|
|
714
715
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -992,7 +993,7 @@ let VoidApiResponse$1 = class VoidApiResponse {
|
|
|
992
993
|
* Stream Chat API
|
|
993
994
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
994
995
|
*
|
|
995
|
-
* The version of the OpenAPI document: v92.
|
|
996
|
+
* The version of the OpenAPI document: v92.7.0
|
|
996
997
|
*
|
|
997
998
|
*
|
|
998
999
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -1210,7 +1211,7 @@ class ChannelTypesApi extends BaseAPI$1 {
|
|
|
1210
1211
|
* Stream Chat API
|
|
1211
1212
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
1212
1213
|
*
|
|
1213
|
-
* The version of the OpenAPI document: v92.
|
|
1214
|
+
* The version of the OpenAPI document: v92.7.0
|
|
1214
1215
|
*
|
|
1215
1216
|
*
|
|
1216
1217
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2049,7 +2050,7 @@ class ChannelsApi extends BaseAPI$1 {
|
|
|
2049
2050
|
* Stream Chat API
|
|
2050
2051
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
2051
2052
|
*
|
|
2052
|
-
* The version of the OpenAPI document: v92.
|
|
2053
|
+
* The version of the OpenAPI document: v92.7.0
|
|
2053
2054
|
*
|
|
2054
2055
|
*
|
|
2055
2056
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2267,7 +2268,7 @@ class CustomCommandsApi extends BaseAPI$1 {
|
|
|
2267
2268
|
* Stream Chat API
|
|
2268
2269
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
2269
2270
|
*
|
|
2270
|
-
* The version of the OpenAPI document: v92.
|
|
2271
|
+
* The version of the OpenAPI document: v92.7.0
|
|
2271
2272
|
*
|
|
2272
2273
|
*
|
|
2273
2274
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2407,7 +2408,7 @@ class DevicesApi extends BaseAPI$1 {
|
|
|
2407
2408
|
* Stream Chat API
|
|
2408
2409
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
2409
2410
|
*
|
|
2410
|
-
* The version of the OpenAPI document: v92.
|
|
2411
|
+
* The version of the OpenAPI document: v92.7.0
|
|
2411
2412
|
*
|
|
2412
2413
|
*
|
|
2413
2414
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2517,7 +2518,7 @@ class EventsApi extends BaseAPI$1 {
|
|
|
2517
2518
|
* Stream Chat API
|
|
2518
2519
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
2519
2520
|
*
|
|
2520
|
-
* The version of the OpenAPI document: v92.
|
|
2521
|
+
* The version of the OpenAPI document: v92.7.0
|
|
2521
2522
|
*
|
|
2522
2523
|
*
|
|
2523
2524
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2763,7 +2764,7 @@ class MessagesApi extends BaseAPI$1 {
|
|
|
2763
2764
|
}
|
|
2764
2765
|
const queryParameters = {};
|
|
2765
2766
|
if (requestParameters.ids) {
|
|
2766
|
-
queryParameters['ids'] = requestParameters.ids;
|
|
2767
|
+
queryParameters['ids'] = requestParameters.ids.join(',');
|
|
2767
2768
|
}
|
|
2768
2769
|
const headerParameters = {};
|
|
2769
2770
|
if (this.configuration && this.configuration.apiKey) {
|
|
@@ -3634,7 +3635,7 @@ class MessagesApi extends BaseAPI$1 {
|
|
|
3634
3635
|
* Stream Chat API
|
|
3635
3636
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
3636
3637
|
*
|
|
3637
|
-
* The version of the OpenAPI document: v92.
|
|
3638
|
+
* The version of the OpenAPI document: v92.7.0
|
|
3638
3639
|
*
|
|
3639
3640
|
*
|
|
3640
3641
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -3844,7 +3845,7 @@ class PermissionsV2Api extends BaseAPI$1 {
|
|
|
3844
3845
|
* Stream Chat API
|
|
3845
3846
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
3846
3847
|
*
|
|
3847
|
-
* The version of the OpenAPI document: v92.
|
|
3848
|
+
* The version of the OpenAPI document: v92.7.0
|
|
3848
3849
|
*
|
|
3849
3850
|
*
|
|
3850
3851
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -3981,7 +3982,7 @@ class PushApi extends BaseAPI$1 {
|
|
|
3981
3982
|
* Stream Chat API
|
|
3982
3983
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
3983
3984
|
*
|
|
3984
|
-
* The version of the OpenAPI document: v92.
|
|
3985
|
+
* The version of the OpenAPI document: v92.7.0
|
|
3985
3986
|
*
|
|
3986
3987
|
*
|
|
3987
3988
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4041,7 +4042,7 @@ let ServerSideApi$1 = class ServerSideApi extends BaseAPI$1 {
|
|
|
4041
4042
|
* Stream Chat API
|
|
4042
4043
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4043
4044
|
*
|
|
4044
|
-
* The version of the OpenAPI document: v92.
|
|
4045
|
+
* The version of the OpenAPI document: v92.7.0
|
|
4045
4046
|
*
|
|
4046
4047
|
*
|
|
4047
4048
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4051,7 +4052,7 @@ let ServerSideApi$1 = class ServerSideApi extends BaseAPI$1 {
|
|
|
4051
4052
|
/**
|
|
4052
4053
|
*
|
|
4053
4054
|
*/
|
|
4054
|
-
class SettingsApi extends BaseAPI$1 {
|
|
4055
|
+
let SettingsApi$1 = class SettingsApi extends BaseAPI$1 {
|
|
4055
4056
|
/**
|
|
4056
4057
|
* Sends a test message via push, this is a test endpoint to verify your push settings
|
|
4057
4058
|
* Check push
|
|
@@ -4779,7 +4780,7 @@ class SettingsApi extends BaseAPI$1 {
|
|
|
4779
4780
|
return yield response.value();
|
|
4780
4781
|
});
|
|
4781
4782
|
}
|
|
4782
|
-
}
|
|
4783
|
+
};
|
|
4783
4784
|
|
|
4784
4785
|
/* tslint:disable */
|
|
4785
4786
|
/* eslint-disable */
|
|
@@ -4787,7 +4788,7 @@ class SettingsApi extends BaseAPI$1 {
|
|
|
4787
4788
|
* Stream Chat API
|
|
4788
4789
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4789
4790
|
*
|
|
4790
|
-
* The version of the OpenAPI document: v92.
|
|
4791
|
+
* The version of the OpenAPI document: v92.7.0
|
|
4791
4792
|
*
|
|
4792
4793
|
*
|
|
4793
4794
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4845,7 +4846,7 @@ class TasksApi extends BaseAPI$1 {
|
|
|
4845
4846
|
* Stream Chat API
|
|
4846
4847
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4847
4848
|
*
|
|
4848
|
-
* The version of the OpenAPI document: v92.
|
|
4849
|
+
* The version of the OpenAPI document: v92.7.0
|
|
4849
4850
|
*
|
|
4850
4851
|
*
|
|
4851
4852
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4987,7 +4988,7 @@ class TestingApi extends BaseAPI$1 {
|
|
|
4987
4988
|
* Stream Chat API
|
|
4988
4989
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4989
4990
|
*
|
|
4990
|
-
* The version of the OpenAPI document: v92.
|
|
4991
|
+
* The version of the OpenAPI document: v92.7.0
|
|
4991
4992
|
*
|
|
4992
4993
|
*
|
|
4993
4994
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -6123,7 +6124,7 @@ class StreamChatClient {
|
|
|
6123
6124
|
};
|
|
6124
6125
|
const configuration = this.streamClient.getConfiguration();
|
|
6125
6126
|
// @ts-expect-error typing problem
|
|
6126
|
-
this.settingsApi = new SettingsApi(configuration);
|
|
6127
|
+
this.settingsApi = new SettingsApi$1(configuration);
|
|
6127
6128
|
// @ts-expect-error typing problem
|
|
6128
6129
|
this.channelTypesApi = new ChannelTypesApi(configuration);
|
|
6129
6130
|
// @ts-expect-error typing problem
|
|
@@ -6136,17 +6137,17 @@ class StreamChatClient {
|
|
|
6136
6137
|
/* tslint:disable */
|
|
6137
6138
|
/* eslint-disable */
|
|
6138
6139
|
/**
|
|
6139
|
-
* Stream
|
|
6140
|
+
* Stream API
|
|
6140
6141
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6141
6142
|
*
|
|
6142
|
-
* The version of the OpenAPI document:
|
|
6143
|
+
* The version of the OpenAPI document: v98.0.2-ingress-test.3
|
|
6143
6144
|
*
|
|
6144
6145
|
*
|
|
6145
6146
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
6146
6147
|
* https://openapi-generator.tech
|
|
6147
6148
|
* Do not edit the class manually.
|
|
6148
6149
|
*/
|
|
6149
|
-
const BASE_PATH = "https://
|
|
6150
|
+
const BASE_PATH = "https://stream-io-api.com".replace(/\/+$/, "");
|
|
6150
6151
|
class Configuration {
|
|
6151
6152
|
constructor(configuration = {}) {
|
|
6152
6153
|
this.configuration = configuration;
|
|
@@ -6406,10 +6407,10 @@ class VoidApiResponse {
|
|
|
6406
6407
|
/* tslint:disable */
|
|
6407
6408
|
/* eslint-disable */
|
|
6408
6409
|
/**
|
|
6409
|
-
* Stream
|
|
6410
|
+
* Stream API
|
|
6410
6411
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6411
6412
|
*
|
|
6412
|
-
* The version of the OpenAPI document:
|
|
6413
|
+
* The version of the OpenAPI document: v98.0.2-ingress-test.3
|
|
6413
6414
|
*
|
|
6414
6415
|
*
|
|
6415
6416
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -6448,7 +6449,7 @@ class DefaultApi extends BaseAPI {
|
|
|
6448
6449
|
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // JWT authentication
|
|
6449
6450
|
}
|
|
6450
6451
|
const response = yield this.request({
|
|
6451
|
-
path: `/call/{type}/{id}/block`.replace(`{${"type"}}`, encodeURIComponent(String(requestParameters.type))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
6452
|
+
path: `/video/call/{type}/{id}/block`.replace(`{${"type"}}`, encodeURIComponent(String(requestParameters.type))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
6452
6453
|
method: 'POST',
|
|
6453
6454
|
headers: headerParameters,
|
|
6454
6455
|
query: queryParameters,
|
|
@@ -6489,7 +6490,7 @@ class DefaultApi extends BaseAPI {
|
|
|
6489
6490
|
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // JWT authentication
|
|
6490
6491
|
}
|
|
6491
6492
|
const response = yield this.request({
|
|
6492
|
-
path: `/devices`,
|
|
6493
|
+
path: `/video/devices`,
|
|
6493
6494
|
method: 'POST',
|
|
6494
6495
|
headers: headerParameters,
|
|
6495
6496
|
query: queryParameters,
|
|
@@ -6530,7 +6531,7 @@ class DefaultApi extends BaseAPI {
|
|
|
6530
6531
|
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // JWT authentication
|
|
6531
6532
|
}
|
|
6532
6533
|
const response = yield this.request({
|
|
6533
|
-
path: `/guest`,
|
|
6534
|
+
path: `/video/guest`,
|
|
6534
6535
|
method: 'POST',
|
|
6535
6536
|
headers: headerParameters,
|
|
6536
6537
|
query: queryParameters,
|
|
@@ -6573,7 +6574,7 @@ class DefaultApi extends BaseAPI {
|
|
|
6573
6574
|
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // JWT authentication
|
|
6574
6575
|
}
|
|
6575
6576
|
const response = yield this.request({
|
|
6576
|
-
path: `/devices`,
|
|
6577
|
+
path: `/video/devices`,
|
|
6577
6578
|
method: 'DELETE',
|
|
6578
6579
|
headers: headerParameters,
|
|
6579
6580
|
query: queryParameters,
|
|
@@ -6615,7 +6616,7 @@ class DefaultApi extends BaseAPI {
|
|
|
6615
6616
|
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // JWT authentication
|
|
6616
6617
|
}
|
|
6617
6618
|
const response = yield this.request({
|
|
6618
|
-
path: `/call/{type}/{id}/mark_ended`.replace(`{${"type"}}`, encodeURIComponent(String(requestParameters.type))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
6619
|
+
path: `/video/call/{type}/{id}/mark_ended`.replace(`{${"type"}}`, encodeURIComponent(String(requestParameters.type))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
6619
6620
|
method: 'POST',
|
|
6620
6621
|
headers: headerParameters,
|
|
6621
6622
|
query: queryParameters,
|
|
@@ -6669,7 +6670,7 @@ class DefaultApi extends BaseAPI {
|
|
|
6669
6670
|
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // JWT authentication
|
|
6670
6671
|
}
|
|
6671
6672
|
const response = yield this.request({
|
|
6672
|
-
path: `/call/{type}/{id}`.replace(`{${"type"}}`, encodeURIComponent(String(requestParameters.type))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
6673
|
+
path: `/video/call/{type}/{id}`.replace(`{${"type"}}`, encodeURIComponent(String(requestParameters.type))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
6673
6674
|
method: 'GET',
|
|
6674
6675
|
headers: headerParameters,
|
|
6675
6676
|
query: queryParameters,
|
|
@@ -6705,7 +6706,7 @@ class DefaultApi extends BaseAPI {
|
|
|
6705
6706
|
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // JWT authentication
|
|
6706
6707
|
}
|
|
6707
6708
|
const response = yield this.request({
|
|
6708
|
-
path: `/edges`,
|
|
6709
|
+
path: `/video/edges`,
|
|
6709
6710
|
method: 'GET',
|
|
6710
6711
|
headers: headerParameters,
|
|
6711
6712
|
query: queryParameters,
|
|
@@ -6754,7 +6755,7 @@ class DefaultApi extends BaseAPI {
|
|
|
6754
6755
|
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // JWT authentication
|
|
6755
6756
|
}
|
|
6756
6757
|
const response = yield this.request({
|
|
6757
|
-
path: `/call/{type}/{id}`.replace(`{${"type"}}`, encodeURIComponent(String(requestParameters.type))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
6758
|
+
path: `/video/call/{type}/{id}`.replace(`{${"type"}}`, encodeURIComponent(String(requestParameters.type))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
6758
6759
|
method: 'POST',
|
|
6759
6760
|
headers: headerParameters,
|
|
6760
6761
|
query: queryParameters,
|
|
@@ -6801,7 +6802,7 @@ class DefaultApi extends BaseAPI {
|
|
|
6801
6802
|
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // JWT authentication
|
|
6802
6803
|
}
|
|
6803
6804
|
const response = yield this.request({
|
|
6804
|
-
path: `/call/{type}/{id}/go_live`.replace(`{${"type"}}`, encodeURIComponent(String(requestParameters.type))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
6805
|
+
path: `/video/call/{type}/{id}/go_live`.replace(`{${"type"}}`, encodeURIComponent(String(requestParameters.type))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
6805
6806
|
method: 'POST',
|
|
6806
6807
|
headers: headerParameters,
|
|
6807
6808
|
query: queryParameters,
|
|
@@ -6841,7 +6842,7 @@ class DefaultApi extends BaseAPI {
|
|
|
6841
6842
|
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // JWT authentication
|
|
6842
6843
|
}
|
|
6843
6844
|
const response = yield this.request({
|
|
6844
|
-
path: `/devices`,
|
|
6845
|
+
path: `/video/devices`,
|
|
6845
6846
|
method: 'GET',
|
|
6846
6847
|
headers: headerParameters,
|
|
6847
6848
|
query: queryParameters,
|
|
@@ -6883,7 +6884,7 @@ class DefaultApi extends BaseAPI {
|
|
|
6883
6884
|
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // JWT authentication
|
|
6884
6885
|
}
|
|
6885
6886
|
const response = yield this.request({
|
|
6886
|
-
path: `/call/{type}/{id}/recordings`.replace(`{${"type"}}`, encodeURIComponent(String(requestParameters.type))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
6887
|
+
path: `/video/call/{type}/{id}/recordings`.replace(`{${"type"}}`, encodeURIComponent(String(requestParameters.type))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
6887
6888
|
method: 'GET',
|
|
6888
6889
|
headers: headerParameters,
|
|
6889
6890
|
query: queryParameters,
|
|
@@ -6929,7 +6930,7 @@ class DefaultApi extends BaseAPI {
|
|
|
6929
6930
|
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // JWT authentication
|
|
6930
6931
|
}
|
|
6931
6932
|
const response = yield this.request({
|
|
6932
|
-
path: `/call/{type}/{id}/mute_users`.replace(`{${"type"}}`, encodeURIComponent(String(requestParameters.type))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
6933
|
+
path: `/video/call/{type}/{id}/mute_users`.replace(`{${"type"}}`, encodeURIComponent(String(requestParameters.type))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
6933
6934
|
method: 'POST',
|
|
6934
6935
|
headers: headerParameters,
|
|
6935
6936
|
query: queryParameters,
|
|
@@ -6973,7 +6974,7 @@ class DefaultApi extends BaseAPI {
|
|
|
6973
6974
|
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // JWT authentication
|
|
6974
6975
|
}
|
|
6975
6976
|
const response = yield this.request({
|
|
6976
|
-
path: `/calls`,
|
|
6977
|
+
path: `/video/calls`,
|
|
6977
6978
|
method: 'POST',
|
|
6978
6979
|
headers: headerParameters,
|
|
6979
6980
|
query: queryParameters,
|
|
@@ -7014,7 +7015,7 @@ class DefaultApi extends BaseAPI {
|
|
|
7014
7015
|
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // JWT authentication
|
|
7015
7016
|
}
|
|
7016
7017
|
const response = yield this.request({
|
|
7017
|
-
path: `/call/members`,
|
|
7018
|
+
path: `/video/call/members`,
|
|
7018
7019
|
method: 'POST',
|
|
7019
7020
|
headers: headerParameters,
|
|
7020
7021
|
query: queryParameters,
|
|
@@ -7061,7 +7062,7 @@ class DefaultApi extends BaseAPI {
|
|
|
7061
7062
|
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // JWT authentication
|
|
7062
7063
|
}
|
|
7063
7064
|
const response = yield this.request({
|
|
7064
|
-
path: `/call/{type}/{id}/event`.replace(`{${"type"}}`, encodeURIComponent(String(requestParameters.type))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
7065
|
+
path: `/video/call/{type}/{id}/event`.replace(`{${"type"}}`, encodeURIComponent(String(requestParameters.type))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
7065
7066
|
method: 'POST',
|
|
7066
7067
|
headers: headerParameters,
|
|
7067
7068
|
query: queryParameters,
|
|
@@ -7104,7 +7105,7 @@ class DefaultApi extends BaseAPI {
|
|
|
7104
7105
|
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // JWT authentication
|
|
7105
7106
|
}
|
|
7106
7107
|
const response = yield this.request({
|
|
7107
|
-
path: `/call/{type}/{id}/start_broadcasting`.replace(`{${"type"}}`, encodeURIComponent(String(requestParameters.type))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
7108
|
+
path: `/video/call/{type}/{id}/start_broadcasting`.replace(`{${"type"}}`, encodeURIComponent(String(requestParameters.type))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
7108
7109
|
method: 'POST',
|
|
7109
7110
|
headers: headerParameters,
|
|
7110
7111
|
query: queryParameters,
|
|
@@ -7134,8 +7135,12 @@ class DefaultApi extends BaseAPI {
|
|
|
7134
7135
|
if (requestParameters.id === null || requestParameters.id === undefined) {
|
|
7135
7136
|
throw new RequiredError('id', 'Required parameter requestParameters.id was null or undefined when calling startRecording.');
|
|
7136
7137
|
}
|
|
7138
|
+
if (requestParameters.videoStartRecordingRequest === null || requestParameters.videoStartRecordingRequest === undefined) {
|
|
7139
|
+
throw new RequiredError('videoStartRecordingRequest', 'Required parameter requestParameters.videoStartRecordingRequest was null or undefined when calling startRecording.');
|
|
7140
|
+
}
|
|
7137
7141
|
const queryParameters = {};
|
|
7138
7142
|
const headerParameters = {};
|
|
7143
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
7139
7144
|
if (this.configuration && this.configuration.apiKey) {
|
|
7140
7145
|
headerParameters["Stream-Auth-Type"] = this.configuration.apiKey("Stream-Auth-Type"); // stream-auth-type authentication
|
|
7141
7146
|
}
|
|
@@ -7146,10 +7151,11 @@ class DefaultApi extends BaseAPI {
|
|
|
7146
7151
|
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // JWT authentication
|
|
7147
7152
|
}
|
|
7148
7153
|
const response = yield this.request({
|
|
7149
|
-
path: `/call/{type}/{id}/start_recording`.replace(`{${"type"}}`, encodeURIComponent(String(requestParameters.type))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
7154
|
+
path: `/video/call/{type}/{id}/start_recording`.replace(`{${"type"}}`, encodeURIComponent(String(requestParameters.type))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
7150
7155
|
method: 'POST',
|
|
7151
7156
|
headers: headerParameters,
|
|
7152
7157
|
query: queryParameters,
|
|
7158
|
+
body: requestParameters.videoStartRecordingRequest,
|
|
7153
7159
|
}, initOverrides);
|
|
7154
7160
|
return new JSONApiResponse(response);
|
|
7155
7161
|
});
|
|
@@ -7188,7 +7194,7 @@ class DefaultApi extends BaseAPI {
|
|
|
7188
7194
|
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // JWT authentication
|
|
7189
7195
|
}
|
|
7190
7196
|
const response = yield this.request({
|
|
7191
|
-
path: `/call/{type}/{id}/start_transcription`.replace(`{${"type"}}`, encodeURIComponent(String(requestParameters.type))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
7197
|
+
path: `/video/call/{type}/{id}/start_transcription`.replace(`{${"type"}}`, encodeURIComponent(String(requestParameters.type))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
7192
7198
|
method: 'POST',
|
|
7193
7199
|
headers: headerParameters,
|
|
7194
7200
|
query: queryParameters,
|
|
@@ -7230,7 +7236,7 @@ class DefaultApi extends BaseAPI {
|
|
|
7230
7236
|
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // JWT authentication
|
|
7231
7237
|
}
|
|
7232
7238
|
const response = yield this.request({
|
|
7233
|
-
path: `/call/{type}/{id}/stop_broadcasting`.replace(`{${"type"}}`, encodeURIComponent(String(requestParameters.type))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
7239
|
+
path: `/video/call/{type}/{id}/stop_broadcasting`.replace(`{${"type"}}`, encodeURIComponent(String(requestParameters.type))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
7234
7240
|
method: 'POST',
|
|
7235
7241
|
headers: headerParameters,
|
|
7236
7242
|
query: queryParameters,
|
|
@@ -7272,7 +7278,7 @@ class DefaultApi extends BaseAPI {
|
|
|
7272
7278
|
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // JWT authentication
|
|
7273
7279
|
}
|
|
7274
7280
|
const response = yield this.request({
|
|
7275
|
-
path: `/call/{type}/{id}/stop_live`.replace(`{${"type"}}`, encodeURIComponent(String(requestParameters.type))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
7281
|
+
path: `/video/call/{type}/{id}/stop_live`.replace(`{${"type"}}`, encodeURIComponent(String(requestParameters.type))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
7276
7282
|
method: 'POST',
|
|
7277
7283
|
headers: headerParameters,
|
|
7278
7284
|
query: queryParameters,
|
|
@@ -7314,7 +7320,7 @@ class DefaultApi extends BaseAPI {
|
|
|
7314
7320
|
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // JWT authentication
|
|
7315
7321
|
}
|
|
7316
7322
|
const response = yield this.request({
|
|
7317
|
-
path: `/call/{type}/{id}/stop_recording`.replace(`{${"type"}}`, encodeURIComponent(String(requestParameters.type))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
7323
|
+
path: `/video/call/{type}/{id}/stop_recording`.replace(`{${"type"}}`, encodeURIComponent(String(requestParameters.type))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
7318
7324
|
method: 'POST',
|
|
7319
7325
|
headers: headerParameters,
|
|
7320
7326
|
query: queryParameters,
|
|
@@ -7356,7 +7362,7 @@ class DefaultApi extends BaseAPI {
|
|
|
7356
7362
|
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // JWT authentication
|
|
7357
7363
|
}
|
|
7358
7364
|
const response = yield this.request({
|
|
7359
|
-
path: `/call/{type}/{id}/stop_transcription`.replace(`{${"type"}}`, encodeURIComponent(String(requestParameters.type))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
7365
|
+
path: `/video/call/{type}/{id}/stop_transcription`.replace(`{${"type"}}`, encodeURIComponent(String(requestParameters.type))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
7360
7366
|
method: 'POST',
|
|
7361
7367
|
headers: headerParameters,
|
|
7362
7368
|
query: queryParameters,
|
|
@@ -7402,7 +7408,7 @@ class DefaultApi extends BaseAPI {
|
|
|
7402
7408
|
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // JWT authentication
|
|
7403
7409
|
}
|
|
7404
7410
|
const response = yield this.request({
|
|
7405
|
-
path: `/call/{type}/{id}/unblock`.replace(`{${"type"}}`, encodeURIComponent(String(requestParameters.type))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
7411
|
+
path: `/video/call/{type}/{id}/unblock`.replace(`{${"type"}}`, encodeURIComponent(String(requestParameters.type))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
7406
7412
|
method: 'POST',
|
|
7407
7413
|
headers: headerParameters,
|
|
7408
7414
|
query: queryParameters,
|
|
@@ -7449,7 +7455,7 @@ class DefaultApi extends BaseAPI {
|
|
|
7449
7455
|
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // JWT authentication
|
|
7450
7456
|
}
|
|
7451
7457
|
const response = yield this.request({
|
|
7452
|
-
path: `/call/{type}/{id}`.replace(`{${"type"}}`, encodeURIComponent(String(requestParameters.type))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
7458
|
+
path: `/video/call/{type}/{id}`.replace(`{${"type"}}`, encodeURIComponent(String(requestParameters.type))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
7453
7459
|
method: 'PATCH',
|
|
7454
7460
|
headers: headerParameters,
|
|
7455
7461
|
query: queryParameters,
|
|
@@ -7496,7 +7502,7 @@ class DefaultApi extends BaseAPI {
|
|
|
7496
7502
|
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // JWT authentication
|
|
7497
7503
|
}
|
|
7498
7504
|
const response = yield this.request({
|
|
7499
|
-
path: `/call/{type}/{id}/members`.replace(`{${"type"}}`, encodeURIComponent(String(requestParameters.type))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
7505
|
+
path: `/video/call/{type}/{id}/members`.replace(`{${"type"}}`, encodeURIComponent(String(requestParameters.type))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
7500
7506
|
method: 'POST',
|
|
7501
7507
|
headers: headerParameters,
|
|
7502
7508
|
query: queryParameters,
|
|
@@ -7543,7 +7549,7 @@ class DefaultApi extends BaseAPI {
|
|
|
7543
7549
|
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // JWT authentication
|
|
7544
7550
|
}
|
|
7545
7551
|
const response = yield this.request({
|
|
7546
|
-
path: `/call/{type}/{id}/user_permissions`.replace(`{${"type"}}`, encodeURIComponent(String(requestParameters.type))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
7552
|
+
path: `/video/call/{type}/{id}/user_permissions`.replace(`{${"type"}}`, encodeURIComponent(String(requestParameters.type))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
7547
7553
|
method: 'POST',
|
|
7548
7554
|
headers: headerParameters,
|
|
7549
7555
|
query: queryParameters,
|
|
@@ -7630,7 +7636,7 @@ class DefaultApi extends BaseAPI {
|
|
|
7630
7636
|
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // JWT authentication
|
|
7631
7637
|
}
|
|
7632
7638
|
const response = yield this.request({
|
|
7633
|
-
path: `/call/{type}/{id}/pin`.replace(`{${"type"}}`, encodeURIComponent(String(requestParameters.type))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
7639
|
+
path: `/video/call/{type}/{id}/pin`.replace(`{${"type"}}`, encodeURIComponent(String(requestParameters.type))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
7634
7640
|
method: 'POST',
|
|
7635
7641
|
headers: headerParameters,
|
|
7636
7642
|
query: queryParameters,
|
|
@@ -7677,7 +7683,7 @@ class DefaultApi extends BaseAPI {
|
|
|
7677
7683
|
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // JWT authentication
|
|
7678
7684
|
}
|
|
7679
7685
|
const response = yield this.request({
|
|
7680
|
-
path: `/call/{type}/{id}/unpin`.replace(`{${"type"}}`, encodeURIComponent(String(requestParameters.type))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
7686
|
+
path: `/video/call/{type}/{id}/unpin`.replace(`{${"type"}}`, encodeURIComponent(String(requestParameters.type))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
7681
7687
|
method: 'POST',
|
|
7682
7688
|
headers: headerParameters,
|
|
7683
7689
|
query: queryParameters,
|
|
@@ -7701,10 +7707,10 @@ class DefaultApi extends BaseAPI {
|
|
|
7701
7707
|
/* tslint:disable */
|
|
7702
7708
|
/* eslint-disable */
|
|
7703
7709
|
/**
|
|
7704
|
-
* Stream
|
|
7710
|
+
* Stream API
|
|
7705
7711
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7706
7712
|
*
|
|
7707
|
-
* The version of the OpenAPI document:
|
|
7713
|
+
* The version of the OpenAPI document: v98.0.2-ingress-test.3
|
|
7708
7714
|
*
|
|
7709
7715
|
*
|
|
7710
7716
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -7715,6 +7721,45 @@ class DefaultApi extends BaseAPI {
|
|
|
7715
7721
|
*
|
|
7716
7722
|
*/
|
|
7717
7723
|
class ServerSideApi extends BaseAPI {
|
|
7724
|
+
/**
|
|
7725
|
+
*
|
|
7726
|
+
* Check External Storage
|
|
7727
|
+
*/
|
|
7728
|
+
checkExternalStorageRaw(requestParameters, initOverrides) {
|
|
7729
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7730
|
+
if (requestParameters.name === null || requestParameters.name === undefined) {
|
|
7731
|
+
throw new RequiredError('name', 'Required parameter requestParameters.name was null or undefined when calling checkExternalStorage.');
|
|
7732
|
+
}
|
|
7733
|
+
const queryParameters = {};
|
|
7734
|
+
const headerParameters = {};
|
|
7735
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
7736
|
+
headerParameters["Stream-Auth-Type"] = this.configuration.apiKey("Stream-Auth-Type"); // stream-auth-type authentication
|
|
7737
|
+
}
|
|
7738
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
7739
|
+
queryParameters["api_key"] = this.configuration.apiKey("api_key"); // api_key authentication
|
|
7740
|
+
}
|
|
7741
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
7742
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // JWT authentication
|
|
7743
|
+
}
|
|
7744
|
+
const response = yield this.request({
|
|
7745
|
+
path: `/video/external_storage/{name}/check`.replace(`{${"name"}}`, encodeURIComponent(String(requestParameters.name))),
|
|
7746
|
+
method: 'GET',
|
|
7747
|
+
headers: headerParameters,
|
|
7748
|
+
query: queryParameters,
|
|
7749
|
+
}, initOverrides);
|
|
7750
|
+
return new JSONApiResponse(response);
|
|
7751
|
+
});
|
|
7752
|
+
}
|
|
7753
|
+
/**
|
|
7754
|
+
*
|
|
7755
|
+
* Check External Storage
|
|
7756
|
+
*/
|
|
7757
|
+
checkExternalStorage(requestParameters, initOverrides) {
|
|
7758
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7759
|
+
const response = yield this.checkExternalStorageRaw(requestParameters, initOverrides);
|
|
7760
|
+
return yield response.value();
|
|
7761
|
+
});
|
|
7762
|
+
}
|
|
7718
7763
|
/**
|
|
7719
7764
|
*
|
|
7720
7765
|
* Create Call Type
|
|
@@ -7737,7 +7782,7 @@ class ServerSideApi extends BaseAPI {
|
|
|
7737
7782
|
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // JWT authentication
|
|
7738
7783
|
}
|
|
7739
7784
|
const response = yield this.request({
|
|
7740
|
-
path: `/calltypes`,
|
|
7785
|
+
path: `/video/calltypes`,
|
|
7741
7786
|
method: 'POST',
|
|
7742
7787
|
headers: headerParameters,
|
|
7743
7788
|
query: queryParameters,
|
|
@@ -7777,7 +7822,7 @@ class ServerSideApi extends BaseAPI {
|
|
|
7777
7822
|
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // JWT authentication
|
|
7778
7823
|
}
|
|
7779
7824
|
const response = yield this.request({
|
|
7780
|
-
path: `/calltypes/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(requestParameters.name))),
|
|
7825
|
+
path: `/video/calltypes/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(requestParameters.name))),
|
|
7781
7826
|
method: 'DELETE',
|
|
7782
7827
|
headers: headerParameters,
|
|
7783
7828
|
query: queryParameters,
|
|
@@ -7816,7 +7861,7 @@ class ServerSideApi extends BaseAPI {
|
|
|
7816
7861
|
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // JWT authentication
|
|
7817
7862
|
}
|
|
7818
7863
|
const response = yield this.request({
|
|
7819
|
-
path: `/calltypes/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(requestParameters.name))),
|
|
7864
|
+
path: `/video/calltypes/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(requestParameters.name))),
|
|
7820
7865
|
method: 'GET',
|
|
7821
7866
|
headers: headerParameters,
|
|
7822
7867
|
query: queryParameters,
|
|
@@ -7852,7 +7897,7 @@ class ServerSideApi extends BaseAPI {
|
|
|
7852
7897
|
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // JWT authentication
|
|
7853
7898
|
}
|
|
7854
7899
|
const response = yield this.request({
|
|
7855
|
-
path: `/calltypes`,
|
|
7900
|
+
path: `/video/calltypes`,
|
|
7856
7901
|
method: 'GET',
|
|
7857
7902
|
headers: headerParameters,
|
|
7858
7903
|
query: queryParameters,
|
|
@@ -7895,7 +7940,7 @@ class ServerSideApi extends BaseAPI {
|
|
|
7895
7940
|
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // JWT authentication
|
|
7896
7941
|
}
|
|
7897
7942
|
const response = yield this.request({
|
|
7898
|
-
path: `/calltypes/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(requestParameters.name))),
|
|
7943
|
+
path: `/video/calltypes/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(requestParameters.name))),
|
|
7899
7944
|
method: 'PUT',
|
|
7900
7945
|
headers: headerParameters,
|
|
7901
7946
|
query: queryParameters,
|
|
@@ -7914,11 +7959,189 @@ class ServerSideApi extends BaseAPI {
|
|
|
7914
7959
|
return yield response.value();
|
|
7915
7960
|
});
|
|
7916
7961
|
}
|
|
7962
|
+
/**
|
|
7963
|
+
*
|
|
7964
|
+
* Update External Storage
|
|
7965
|
+
*/
|
|
7966
|
+
updateExternalStorageRaw(requestParameters, initOverrides) {
|
|
7967
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7968
|
+
if (requestParameters.name === null || requestParameters.name === undefined) {
|
|
7969
|
+
throw new RequiredError('name', 'Required parameter requestParameters.name was null or undefined when calling updateExternalStorage.');
|
|
7970
|
+
}
|
|
7971
|
+
if (requestParameters.videoUpdateExternalStorageRequest === null || requestParameters.videoUpdateExternalStorageRequest === undefined) {
|
|
7972
|
+
throw new RequiredError('videoUpdateExternalStorageRequest', 'Required parameter requestParameters.videoUpdateExternalStorageRequest was null or undefined when calling updateExternalStorage.');
|
|
7973
|
+
}
|
|
7974
|
+
const queryParameters = {};
|
|
7975
|
+
const headerParameters = {};
|
|
7976
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
7977
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
7978
|
+
headerParameters["Stream-Auth-Type"] = this.configuration.apiKey("Stream-Auth-Type"); // stream-auth-type authentication
|
|
7979
|
+
}
|
|
7980
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
7981
|
+
queryParameters["api_key"] = this.configuration.apiKey("api_key"); // api_key authentication
|
|
7982
|
+
}
|
|
7983
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
7984
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // JWT authentication
|
|
7985
|
+
}
|
|
7986
|
+
const response = yield this.request({
|
|
7987
|
+
path: `/video/external_storage/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(requestParameters.name))),
|
|
7988
|
+
method: 'PUT',
|
|
7989
|
+
headers: headerParameters,
|
|
7990
|
+
query: queryParameters,
|
|
7991
|
+
body: requestParameters.videoUpdateExternalStorageRequest,
|
|
7992
|
+
}, initOverrides);
|
|
7993
|
+
return new JSONApiResponse(response);
|
|
7994
|
+
});
|
|
7995
|
+
}
|
|
7996
|
+
/**
|
|
7997
|
+
*
|
|
7998
|
+
* Update External Storage
|
|
7999
|
+
*/
|
|
8000
|
+
updateExternalStorage(requestParameters, initOverrides) {
|
|
8001
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8002
|
+
const response = yield this.updateExternalStorageRaw(requestParameters, initOverrides);
|
|
8003
|
+
return yield response.value();
|
|
8004
|
+
});
|
|
8005
|
+
}
|
|
8006
|
+
}
|
|
8007
|
+
|
|
8008
|
+
/* tslint:disable */
|
|
8009
|
+
/* eslint-disable */
|
|
8010
|
+
/**
|
|
8011
|
+
* Stream API
|
|
8012
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
8013
|
+
*
|
|
8014
|
+
* The version of the OpenAPI document: v98.0.2-ingress-test.3
|
|
8015
|
+
*
|
|
8016
|
+
*
|
|
8017
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
8018
|
+
* https://openapi-generator.tech
|
|
8019
|
+
* Do not edit the class manually.
|
|
8020
|
+
*/
|
|
8021
|
+
/**
|
|
8022
|
+
*
|
|
8023
|
+
*/
|
|
8024
|
+
class SettingsApi extends BaseAPI {
|
|
8025
|
+
/**
|
|
8026
|
+
* Creates new external storage
|
|
8027
|
+
* Create external storage
|
|
8028
|
+
*/
|
|
8029
|
+
createExternalStorageRaw(requestParameters, initOverrides) {
|
|
8030
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8031
|
+
if (requestParameters.videoCreateExternalStorageRequest === null || requestParameters.videoCreateExternalStorageRequest === undefined) {
|
|
8032
|
+
throw new RequiredError('videoCreateExternalStorageRequest', 'Required parameter requestParameters.videoCreateExternalStorageRequest was null or undefined when calling createExternalStorage.');
|
|
8033
|
+
}
|
|
8034
|
+
const queryParameters = {};
|
|
8035
|
+
const headerParameters = {};
|
|
8036
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
8037
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
8038
|
+
headerParameters["Stream-Auth-Type"] = this.configuration.apiKey("Stream-Auth-Type"); // stream-auth-type authentication
|
|
8039
|
+
}
|
|
8040
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
8041
|
+
queryParameters["api_key"] = this.configuration.apiKey("api_key"); // api_key authentication
|
|
8042
|
+
}
|
|
8043
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
8044
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // JWT authentication
|
|
8045
|
+
}
|
|
8046
|
+
const response = yield this.request({
|
|
8047
|
+
path: `/video/external_storage`,
|
|
8048
|
+
method: 'POST',
|
|
8049
|
+
headers: headerParameters,
|
|
8050
|
+
query: queryParameters,
|
|
8051
|
+
body: requestParameters.videoCreateExternalStorageRequest,
|
|
8052
|
+
}, initOverrides);
|
|
8053
|
+
return new JSONApiResponse(response);
|
|
8054
|
+
});
|
|
8055
|
+
}
|
|
8056
|
+
/**
|
|
8057
|
+
* Creates new external storage
|
|
8058
|
+
* Create external storage
|
|
8059
|
+
*/
|
|
8060
|
+
createExternalStorage(requestParameters, initOverrides) {
|
|
8061
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8062
|
+
const response = yield this.createExternalStorageRaw(requestParameters, initOverrides);
|
|
8063
|
+
return yield response.value();
|
|
8064
|
+
});
|
|
8065
|
+
}
|
|
8066
|
+
/**
|
|
8067
|
+
* Deletes external storage
|
|
8068
|
+
* Delete external storage
|
|
8069
|
+
*/
|
|
8070
|
+
deleteExternalStorageRaw(requestParameters, initOverrides) {
|
|
8071
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8072
|
+
if (requestParameters.name === null || requestParameters.name === undefined) {
|
|
8073
|
+
throw new RequiredError('name', 'Required parameter requestParameters.name was null or undefined when calling deleteExternalStorage.');
|
|
8074
|
+
}
|
|
8075
|
+
const queryParameters = {};
|
|
8076
|
+
const headerParameters = {};
|
|
8077
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
8078
|
+
headerParameters["Stream-Auth-Type"] = this.configuration.apiKey("Stream-Auth-Type"); // stream-auth-type authentication
|
|
8079
|
+
}
|
|
8080
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
8081
|
+
queryParameters["api_key"] = this.configuration.apiKey("api_key"); // api_key authentication
|
|
8082
|
+
}
|
|
8083
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
8084
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // JWT authentication
|
|
8085
|
+
}
|
|
8086
|
+
const response = yield this.request({
|
|
8087
|
+
path: `/video/external_storage/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(requestParameters.name))),
|
|
8088
|
+
method: 'DELETE',
|
|
8089
|
+
headers: headerParameters,
|
|
8090
|
+
query: queryParameters,
|
|
8091
|
+
}, initOverrides);
|
|
8092
|
+
return new JSONApiResponse(response);
|
|
8093
|
+
});
|
|
8094
|
+
}
|
|
8095
|
+
/**
|
|
8096
|
+
* Deletes external storage
|
|
8097
|
+
* Delete external storage
|
|
8098
|
+
*/
|
|
8099
|
+
deleteExternalStorage(requestParameters, initOverrides) {
|
|
8100
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8101
|
+
const response = yield this.deleteExternalStorageRaw(requestParameters, initOverrides);
|
|
8102
|
+
return yield response.value();
|
|
8103
|
+
});
|
|
8104
|
+
}
|
|
8105
|
+
/**
|
|
8106
|
+
* Lists external storage
|
|
8107
|
+
* List external storage
|
|
8108
|
+
*/
|
|
8109
|
+
listExternalStorageRaw(initOverrides) {
|
|
8110
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8111
|
+
const queryParameters = {};
|
|
8112
|
+
const headerParameters = {};
|
|
8113
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
8114
|
+
headerParameters["Stream-Auth-Type"] = this.configuration.apiKey("Stream-Auth-Type"); // stream-auth-type authentication
|
|
8115
|
+
}
|
|
8116
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
8117
|
+
queryParameters["api_key"] = this.configuration.apiKey("api_key"); // api_key authentication
|
|
8118
|
+
}
|
|
8119
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
8120
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // JWT authentication
|
|
8121
|
+
}
|
|
8122
|
+
const response = yield this.request({
|
|
8123
|
+
path: `/video/external_storage`,
|
|
8124
|
+
method: 'GET',
|
|
8125
|
+
headers: headerParameters,
|
|
8126
|
+
query: queryParameters,
|
|
8127
|
+
}, initOverrides);
|
|
8128
|
+
return new JSONApiResponse(response);
|
|
8129
|
+
});
|
|
8130
|
+
}
|
|
8131
|
+
/**
|
|
8132
|
+
* Lists external storage
|
|
8133
|
+
* List external storage
|
|
8134
|
+
*/
|
|
8135
|
+
listExternalStorage(initOverrides) {
|
|
8136
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8137
|
+
const response = yield this.listExternalStorageRaw(initOverrides);
|
|
8138
|
+
return yield response.value();
|
|
8139
|
+
});
|
|
8140
|
+
}
|
|
7917
8141
|
}
|
|
7918
8142
|
|
|
7919
8143
|
class StreamCall {
|
|
7920
8144
|
constructor(streamClient, type, id) {
|
|
7921
|
-
var _a;
|
|
7922
8145
|
this.streamClient = streamClient;
|
|
7923
8146
|
this.type = type;
|
|
7924
8147
|
this.id = id;
|
|
@@ -7957,8 +8180,8 @@ class StreamCall {
|
|
|
7957
8180
|
this.startHLSBroadcasting = () => {
|
|
7958
8181
|
return this.apiClient.startHLSBroadcasting(Object.assign({}, this.baseRequest));
|
|
7959
8182
|
};
|
|
7960
|
-
this.startRecording = () => {
|
|
7961
|
-
return this.apiClient.startRecording(Object.assign({}, this.baseRequest));
|
|
8183
|
+
this.startRecording = (request) => {
|
|
8184
|
+
return this.apiClient.startRecording(Object.assign(Object.assign({}, this.baseRequest), { videoStartRecordingRequest: request !== null && request !== void 0 ? request : {} }));
|
|
7962
8185
|
};
|
|
7963
8186
|
this.startTranscription = () => {
|
|
7964
8187
|
return this.apiClient.startTranscription(Object.assign({}, this.baseRequest));
|
|
@@ -7994,16 +8217,13 @@ class StreamCall {
|
|
|
7994
8217
|
return this.apiClient.videoUnpin(Object.assign({ videoUnpinRequest }, this.baseRequest));
|
|
7995
8218
|
};
|
|
7996
8219
|
this.baseRequest = { id: this.id, type: this.type };
|
|
7997
|
-
const configuration = this.streamClient.getConfiguration(
|
|
7998
|
-
basePath: (_a = this.streamClient.options.basePath) !== null && _a !== void 0 ? _a : 'https://video.stream-io-api.com/video',
|
|
7999
|
-
});
|
|
8220
|
+
const configuration = this.streamClient.getConfiguration('video');
|
|
8000
8221
|
this.apiClient = new DefaultApi(configuration);
|
|
8001
8222
|
}
|
|
8002
8223
|
}
|
|
8003
8224
|
|
|
8004
8225
|
class StreamVideoClient {
|
|
8005
8226
|
constructor(streamClient) {
|
|
8006
|
-
var _a;
|
|
8007
8227
|
this.streamClient = streamClient;
|
|
8008
8228
|
this.call = (type, id) => {
|
|
8009
8229
|
return new StreamCall(this.streamClient, type, id);
|
|
@@ -8033,10 +8253,29 @@ class StreamVideoClient {
|
|
|
8033
8253
|
videoUpdateCallTypeRequest,
|
|
8034
8254
|
});
|
|
8035
8255
|
};
|
|
8036
|
-
|
|
8037
|
-
|
|
8038
|
-
}
|
|
8256
|
+
this.listExternalStorages = () => {
|
|
8257
|
+
return this.settingsApi.listExternalStorage();
|
|
8258
|
+
};
|
|
8259
|
+
this.createExternalStorage = (videoCreateExternalStorageRequest) => {
|
|
8260
|
+
return this.settingsApi.createExternalStorage({
|
|
8261
|
+
videoCreateExternalStorageRequest,
|
|
8262
|
+
});
|
|
8263
|
+
};
|
|
8264
|
+
this.deleteExternalStorage = (request) => {
|
|
8265
|
+
return this.settingsApi.deleteExternalStorage(request);
|
|
8266
|
+
};
|
|
8267
|
+
this.updateExternalStorage = (name, videoUpdateExternalStorageRequest) => {
|
|
8268
|
+
return this.videoServerSideApiClient.updateExternalStorage({
|
|
8269
|
+
name,
|
|
8270
|
+
videoUpdateExternalStorageRequest,
|
|
8271
|
+
});
|
|
8272
|
+
};
|
|
8273
|
+
this.checkExternalStorage = (request) => {
|
|
8274
|
+
return this.videoServerSideApiClient.checkExternalStorage(request);
|
|
8275
|
+
};
|
|
8276
|
+
const configuration = this.streamClient.getConfiguration('video');
|
|
8039
8277
|
this.apiClient = new DefaultApi(configuration);
|
|
8278
|
+
this.settingsApi = new SettingsApi(configuration);
|
|
8040
8279
|
this.videoServerSideApiClient = new ServerSideApi(configuration);
|
|
8041
8280
|
}
|
|
8042
8281
|
}
|
|
@@ -8261,7 +8500,20 @@ class StreamClient {
|
|
|
8261
8500
|
this.getTaskStatus = (request) => {
|
|
8262
8501
|
return this.tasksApi.getTask(request);
|
|
8263
8502
|
};
|
|
8264
|
-
this.
|
|
8503
|
+
this.verifyWebhook = (requestBody, xSignature) => {
|
|
8504
|
+
const key = Buffer.from(this.secret, 'utf8');
|
|
8505
|
+
const hash = crypto
|
|
8506
|
+
.createHmac('sha256', key)
|
|
8507
|
+
.update(requestBody)
|
|
8508
|
+
.digest('hex');
|
|
8509
|
+
try {
|
|
8510
|
+
return crypto.timingSafeEqual(Buffer.from(hash), Buffer.from(xSignature));
|
|
8511
|
+
}
|
|
8512
|
+
catch (err) {
|
|
8513
|
+
return false;
|
|
8514
|
+
}
|
|
8515
|
+
};
|
|
8516
|
+
this.getConfiguration = (product = 'chat') => {
|
|
8265
8517
|
var _a;
|
|
8266
8518
|
return new Configuration({
|
|
8267
8519
|
apiKey: (name) => {
|
|
@@ -8272,9 +8524,11 @@ class StreamClient {
|
|
|
8272
8524
|
};
|
|
8273
8525
|
return mapping[name];
|
|
8274
8526
|
},
|
|
8275
|
-
basePath: (_a = options
|
|
8527
|
+
basePath: (_a = this.options.basePath) !== null && _a !== void 0 ? _a : (product === 'chat'
|
|
8528
|
+
? 'https://chat.stream-io-api.com'
|
|
8529
|
+
: 'https://video.stream-io-api.com'),
|
|
8276
8530
|
headers: {
|
|
8277
|
-
'X-Stream-Client': 'stream-node-' + "0.1.
|
|
8531
|
+
'X-Stream-Client': 'stream-node-' + "0.1.10",
|
|
8278
8532
|
},
|
|
8279
8533
|
middleware: [
|
|
8280
8534
|
{
|
|
@@ -8381,7 +8635,7 @@ class StreamClient {
|
|
|
8381
8635
|
// @ts-expect-error typing problem
|
|
8382
8636
|
this.permissionsApi = new PermissionsV2Api(chatConfiguration);
|
|
8383
8637
|
// @ts-expect-error typing problem
|
|
8384
|
-
this.settingsApi = new SettingsApi(chatConfiguration);
|
|
8638
|
+
this.settingsApi = new SettingsApi$1(chatConfiguration);
|
|
8385
8639
|
// @ts-expect-error typing problem
|
|
8386
8640
|
this.eventsApi = new EventsApi(chatConfiguration);
|
|
8387
8641
|
// @ts-expect-error typing problem
|