@stream-io/node-sdk 0.1.9 → 0.1.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,10 +1,10 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  /**
4
- * Stream Video 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: v98.0.2-ingress-test.3
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -16,6 +16,7 @@
16
16
  import * as runtime from '../runtime';
17
17
  import type {
18
18
  VideoAPIError,
19
+ VideoCheckExternalStorageResponse,
19
20
  VideoCreateCallTypeRequest,
20
21
  VideoCreateCallTypeResponse,
21
22
  VideoGetCallTypeResponse,
@@ -23,8 +24,14 @@ import type {
23
24
  VideoResponse,
24
25
  VideoUpdateCallTypeRequest,
25
26
  VideoUpdateCallTypeResponse,
27
+ VideoUpdateExternalStorageRequest,
28
+ VideoUpdateExternalStorageResponse,
26
29
  } from '../models';
27
30
 
31
+ export interface CheckExternalStorageRequest {
32
+ name: string;
33
+ }
34
+
28
35
  export interface CreateCallTypeRequest {
29
36
  videoCreateCallTypeRequest: VideoCreateCallTypeRequest | null;
30
37
  }
@@ -42,11 +49,60 @@ export interface UpdateCallTypeRequest {
42
49
  videoUpdateCallTypeRequest: VideoUpdateCallTypeRequest | null;
43
50
  }
44
51
 
52
+ export interface UpdateExternalStorageRequest {
53
+ name: string;
54
+ videoUpdateExternalStorageRequest: VideoUpdateExternalStorageRequest | null;
55
+ }
56
+
45
57
  /**
46
58
  *
47
59
  */
48
60
  export class ServerSideApi extends runtime.BaseAPI {
49
61
 
62
+ /**
63
+ *
64
+ * Check External Storage
65
+ */
66
+ async checkExternalStorageRaw(requestParameters: CheckExternalStorageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VideoCheckExternalStorageResponse>> {
67
+ if (requestParameters.name === null || requestParameters.name === undefined) {
68
+ throw new runtime.RequiredError('name','Required parameter requestParameters.name was null or undefined when calling checkExternalStorage.');
69
+ }
70
+
71
+ const queryParameters: any = {};
72
+
73
+ const headerParameters: runtime.HTTPHeaders = {};
74
+
75
+ if (this.configuration && this.configuration.apiKey) {
76
+ headerParameters["Stream-Auth-Type"] = this.configuration.apiKey("Stream-Auth-Type"); // stream-auth-type authentication
77
+ }
78
+
79
+ if (this.configuration && this.configuration.apiKey) {
80
+ queryParameters["api_key"] = this.configuration.apiKey("api_key"); // api_key authentication
81
+ }
82
+
83
+ if (this.configuration && this.configuration.apiKey) {
84
+ headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // JWT authentication
85
+ }
86
+
87
+ const response = await this.request({
88
+ path: `/video/external_storage/{name}/check`.replace(`{${"name"}}`, encodeURIComponent(String(requestParameters.name))),
89
+ method: 'GET',
90
+ headers: headerParameters,
91
+ query: queryParameters,
92
+ }, initOverrides);
93
+
94
+ return new runtime.JSONApiResponse(response);
95
+ }
96
+
97
+ /**
98
+ *
99
+ * Check External Storage
100
+ */
101
+ async checkExternalStorage(requestParameters: CheckExternalStorageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VideoCheckExternalStorageResponse> {
102
+ const response = await this.checkExternalStorageRaw(requestParameters, initOverrides);
103
+ return await response.value();
104
+ }
105
+
50
106
  /**
51
107
  *
52
108
  * Create Call Type
@@ -75,7 +131,7 @@ export class ServerSideApi extends runtime.BaseAPI {
75
131
  }
76
132
 
77
133
  const response = await this.request({
78
- path: `/calltypes`,
134
+ path: `/video/calltypes`,
79
135
  method: 'POST',
80
136
  headers: headerParameters,
81
137
  query: queryParameters,
@@ -120,7 +176,7 @@ export class ServerSideApi extends runtime.BaseAPI {
120
176
  }
121
177
 
122
178
  const response = await this.request({
123
- path: `/calltypes/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(requestParameters.name))),
179
+ path: `/video/calltypes/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(requestParameters.name))),
124
180
  method: 'DELETE',
125
181
  headers: headerParameters,
126
182
  query: queryParameters,
@@ -164,7 +220,7 @@ export class ServerSideApi extends runtime.BaseAPI {
164
220
  }
165
221
 
166
222
  const response = await this.request({
167
- path: `/calltypes/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(requestParameters.name))),
223
+ path: `/video/calltypes/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(requestParameters.name))),
168
224
  method: 'GET',
169
225
  headers: headerParameters,
170
226
  query: queryParameters,
@@ -204,7 +260,7 @@ export class ServerSideApi extends runtime.BaseAPI {
204
260
  }
205
261
 
206
262
  const response = await this.request({
207
- path: `/calltypes`,
263
+ path: `/video/calltypes`,
208
264
  method: 'GET',
209
265
  headers: headerParameters,
210
266
  query: queryParameters,
@@ -254,7 +310,7 @@ export class ServerSideApi extends runtime.BaseAPI {
254
310
  }
255
311
 
256
312
  const response = await this.request({
257
- path: `/calltypes/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(requestParameters.name))),
313
+ path: `/video/calltypes/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(requestParameters.name))),
258
314
  method: 'PUT',
259
315
  headers: headerParameters,
260
316
  query: queryParameters,
@@ -273,4 +329,55 @@ export class ServerSideApi extends runtime.BaseAPI {
273
329
  return await response.value();
274
330
  }
275
331
 
332
+ /**
333
+ *
334
+ * Update External Storage
335
+ */
336
+ async updateExternalStorageRaw(requestParameters: UpdateExternalStorageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VideoUpdateExternalStorageResponse>> {
337
+ if (requestParameters.name === null || requestParameters.name === undefined) {
338
+ throw new runtime.RequiredError('name','Required parameter requestParameters.name was null or undefined when calling updateExternalStorage.');
339
+ }
340
+
341
+ if (requestParameters.videoUpdateExternalStorageRequest === null || requestParameters.videoUpdateExternalStorageRequest === undefined) {
342
+ throw new runtime.RequiredError('videoUpdateExternalStorageRequest','Required parameter requestParameters.videoUpdateExternalStorageRequest was null or undefined when calling updateExternalStorage.');
343
+ }
344
+
345
+ const queryParameters: any = {};
346
+
347
+ const headerParameters: runtime.HTTPHeaders = {};
348
+
349
+ headerParameters['Content-Type'] = 'application/json';
350
+
351
+ if (this.configuration && this.configuration.apiKey) {
352
+ headerParameters["Stream-Auth-Type"] = this.configuration.apiKey("Stream-Auth-Type"); // stream-auth-type authentication
353
+ }
354
+
355
+ if (this.configuration && this.configuration.apiKey) {
356
+ queryParameters["api_key"] = this.configuration.apiKey("api_key"); // api_key authentication
357
+ }
358
+
359
+ if (this.configuration && this.configuration.apiKey) {
360
+ headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // JWT authentication
361
+ }
362
+
363
+ const response = await this.request({
364
+ path: `/video/external_storage/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(requestParameters.name))),
365
+ method: 'PUT',
366
+ headers: headerParameters,
367
+ query: queryParameters,
368
+ body: requestParameters.videoUpdateExternalStorageRequest,
369
+ }, initOverrides);
370
+
371
+ return new runtime.JSONApiResponse(response);
372
+ }
373
+
374
+ /**
375
+ *
376
+ * Update External Storage
377
+ */
378
+ async updateExternalStorage(requestParameters: UpdateExternalStorageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VideoUpdateExternalStorageResponse> {
379
+ const response = await this.updateExternalStorageRaw(requestParameters, initOverrides);
380
+ return await response.value();
381
+ }
382
+
276
383
  }
@@ -0,0 +1,169 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Stream API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: v98.0.2-ingress-test.3
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ import * as runtime from '../runtime';
17
+ import type {
18
+ VideoAPIError,
19
+ VideoCreateExternalStorageRequest,
20
+ VideoCreateExternalStorageResponse,
21
+ VideoDeleteExternalStorageResponse,
22
+ VideoListExternalStorageResponse,
23
+ } from '../models';
24
+
25
+ export interface CreateExternalStorageRequest {
26
+ videoCreateExternalStorageRequest: VideoCreateExternalStorageRequest | null;
27
+ }
28
+
29
+ export interface DeleteExternalStorageRequest {
30
+ name: string;
31
+ }
32
+
33
+ /**
34
+ *
35
+ */
36
+ export class SettingsApi extends runtime.BaseAPI {
37
+
38
+ /**
39
+ * Creates new external storage
40
+ * Create external storage
41
+ */
42
+ async createExternalStorageRaw(requestParameters: CreateExternalStorageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VideoCreateExternalStorageResponse>> {
43
+ if (requestParameters.videoCreateExternalStorageRequest === null || requestParameters.videoCreateExternalStorageRequest === undefined) {
44
+ throw new runtime.RequiredError('videoCreateExternalStorageRequest','Required parameter requestParameters.videoCreateExternalStorageRequest was null or undefined when calling createExternalStorage.');
45
+ }
46
+
47
+ const queryParameters: any = {};
48
+
49
+ const headerParameters: runtime.HTTPHeaders = {};
50
+
51
+ headerParameters['Content-Type'] = 'application/json';
52
+
53
+ if (this.configuration && this.configuration.apiKey) {
54
+ headerParameters["Stream-Auth-Type"] = this.configuration.apiKey("Stream-Auth-Type"); // stream-auth-type authentication
55
+ }
56
+
57
+ if (this.configuration && this.configuration.apiKey) {
58
+ queryParameters["api_key"] = this.configuration.apiKey("api_key"); // api_key authentication
59
+ }
60
+
61
+ if (this.configuration && this.configuration.apiKey) {
62
+ headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // JWT authentication
63
+ }
64
+
65
+ const response = await this.request({
66
+ path: `/video/external_storage`,
67
+ method: 'POST',
68
+ headers: headerParameters,
69
+ query: queryParameters,
70
+ body: requestParameters.videoCreateExternalStorageRequest,
71
+ }, initOverrides);
72
+
73
+ return new runtime.JSONApiResponse(response);
74
+ }
75
+
76
+ /**
77
+ * Creates new external storage
78
+ * Create external storage
79
+ */
80
+ async createExternalStorage(requestParameters: CreateExternalStorageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VideoCreateExternalStorageResponse> {
81
+ const response = await this.createExternalStorageRaw(requestParameters, initOverrides);
82
+ return await response.value();
83
+ }
84
+
85
+ /**
86
+ * Deletes external storage
87
+ * Delete external storage
88
+ */
89
+ async deleteExternalStorageRaw(requestParameters: DeleteExternalStorageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VideoDeleteExternalStorageResponse>> {
90
+ if (requestParameters.name === null || requestParameters.name === undefined) {
91
+ throw new runtime.RequiredError('name','Required parameter requestParameters.name was null or undefined when calling deleteExternalStorage.');
92
+ }
93
+
94
+ const queryParameters: any = {};
95
+
96
+ const headerParameters: runtime.HTTPHeaders = {};
97
+
98
+ if (this.configuration && this.configuration.apiKey) {
99
+ headerParameters["Stream-Auth-Type"] = this.configuration.apiKey("Stream-Auth-Type"); // stream-auth-type authentication
100
+ }
101
+
102
+ if (this.configuration && this.configuration.apiKey) {
103
+ queryParameters["api_key"] = this.configuration.apiKey("api_key"); // api_key authentication
104
+ }
105
+
106
+ if (this.configuration && this.configuration.apiKey) {
107
+ headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // JWT authentication
108
+ }
109
+
110
+ const response = await this.request({
111
+ path: `/video/external_storage/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(requestParameters.name))),
112
+ method: 'DELETE',
113
+ headers: headerParameters,
114
+ query: queryParameters,
115
+ }, initOverrides);
116
+
117
+ return new runtime.JSONApiResponse(response);
118
+ }
119
+
120
+ /**
121
+ * Deletes external storage
122
+ * Delete external storage
123
+ */
124
+ async deleteExternalStorage(requestParameters: DeleteExternalStorageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VideoDeleteExternalStorageResponse> {
125
+ const response = await this.deleteExternalStorageRaw(requestParameters, initOverrides);
126
+ return await response.value();
127
+ }
128
+
129
+ /**
130
+ * Lists external storage
131
+ * List external storage
132
+ */
133
+ async listExternalStorageRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VideoListExternalStorageResponse>> {
134
+ const queryParameters: any = {};
135
+
136
+ const headerParameters: runtime.HTTPHeaders = {};
137
+
138
+ if (this.configuration && this.configuration.apiKey) {
139
+ headerParameters["Stream-Auth-Type"] = this.configuration.apiKey("Stream-Auth-Type"); // stream-auth-type authentication
140
+ }
141
+
142
+ if (this.configuration && this.configuration.apiKey) {
143
+ queryParameters["api_key"] = this.configuration.apiKey("api_key"); // api_key authentication
144
+ }
145
+
146
+ if (this.configuration && this.configuration.apiKey) {
147
+ headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // JWT authentication
148
+ }
149
+
150
+ const response = await this.request({
151
+ path: `/video/external_storage`,
152
+ method: 'GET',
153
+ headers: headerParameters,
154
+ query: queryParameters,
155
+ }, initOverrides);
156
+
157
+ return new runtime.JSONApiResponse(response);
158
+ }
159
+
160
+ /**
161
+ * Lists external storage
162
+ * List external storage
163
+ */
164
+ async listExternalStorage(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VideoListExternalStorageResponse> {
165
+ const response = await this.listExternalStorageRaw(initOverrides);
166
+ return await response.value();
167
+ }
168
+
169
+ }
@@ -2,3 +2,4 @@
2
2
  /* eslint-disable */
3
3
  export * from './DefaultApi';
4
4
  export * from './ServerSideApi';
5
+ export * from './SettingsApi';