@stream-io/node-sdk 0.1.12 → 0.2.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.
@@ -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: v100.4.3
7
+ * The version of the OpenAPI document: v113.0.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1,108 +0,0 @@
1
- /**
2
- * Stream API
3
- * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
- *
5
- * The version of the OpenAPI document: v100.4.3
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 { VideoCheckExternalStorageResponse, VideoCreateCallTypeRequest, VideoCreateCallTypeResponse, VideoGetCallTypeResponse, VideoListCallTypeResponse, VideoResponse, VideoUpdateCallTypeRequest, VideoUpdateCallTypeResponse, VideoUpdateExternalStorageRequest, VideoUpdateExternalStorageResponse } from '../models';
14
- export interface CheckExternalStorageRequest {
15
- name: string;
16
- }
17
- export interface CreateCallTypeRequest {
18
- videoCreateCallTypeRequest: VideoCreateCallTypeRequest | null;
19
- }
20
- export interface DeleteCallTypeRequest {
21
- name: string;
22
- }
23
- export interface GetCallTypeRequest {
24
- name: string;
25
- }
26
- export interface UpdateCallTypeRequest {
27
- name: string;
28
- videoUpdateCallTypeRequest: VideoUpdateCallTypeRequest | null;
29
- }
30
- export interface UpdateExternalStorageRequest {
31
- name: string;
32
- videoUpdateExternalStorageRequest: VideoUpdateExternalStorageRequest | null;
33
- }
34
- /**
35
- *
36
- */
37
- export declare class ServerSideApi extends runtime.BaseAPI {
38
- /**
39
- *
40
- * Check External Storage
41
- */
42
- checkExternalStorageRaw(requestParameters: CheckExternalStorageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VideoCheckExternalStorageResponse>>;
43
- /**
44
- *
45
- * Check External Storage
46
- */
47
- checkExternalStorage(requestParameters: CheckExternalStorageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VideoCheckExternalStorageResponse>;
48
- /**
49
- *
50
- * Create Call Type
51
- */
52
- createCallTypeRaw(requestParameters: CreateCallTypeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VideoCreateCallTypeResponse>>;
53
- /**
54
- *
55
- * Create Call Type
56
- */
57
- createCallType(requestParameters: CreateCallTypeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VideoCreateCallTypeResponse>;
58
- /**
59
- *
60
- * Delete Call Type
61
- */
62
- deleteCallTypeRaw(requestParameters: DeleteCallTypeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VideoResponse>>;
63
- /**
64
- *
65
- * Delete Call Type
66
- */
67
- deleteCallType(requestParameters: DeleteCallTypeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VideoResponse>;
68
- /**
69
- *
70
- * Get Call Type
71
- */
72
- getCallTypeRaw(requestParameters: GetCallTypeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VideoGetCallTypeResponse>>;
73
- /**
74
- *
75
- * Get Call Type
76
- */
77
- getCallType(requestParameters: GetCallTypeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VideoGetCallTypeResponse>;
78
- /**
79
- *
80
- * List Call Type
81
- */
82
- listCallTypesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VideoListCallTypeResponse>>;
83
- /**
84
- *
85
- * List Call Type
86
- */
87
- listCallTypes(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VideoListCallTypeResponse>;
88
- /**
89
- *
90
- * Update Call Type
91
- */
92
- updateCallTypeRaw(requestParameters: UpdateCallTypeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VideoUpdateCallTypeResponse>>;
93
- /**
94
- *
95
- * Update Call Type
96
- */
97
- updateCallType(requestParameters: UpdateCallTypeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VideoUpdateCallTypeResponse>;
98
- /**
99
- *
100
- * Update External Storage
101
- */
102
- updateExternalStorageRaw(requestParameters: UpdateExternalStorageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VideoUpdateExternalStorageResponse>>;
103
- /**
104
- *
105
- * Update External Storage
106
- */
107
- updateExternalStorage(requestParameters: UpdateExternalStorageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VideoUpdateExternalStorageResponse>;
108
- }
@@ -1,54 +0,0 @@
1
- /**
2
- * Stream API
3
- * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
- *
5
- * The version of the OpenAPI document: v100.4.3
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 { VideoCreateExternalStorageRequest, VideoCreateExternalStorageResponse, VideoDeleteExternalStorageResponse, VideoListExternalStorageResponse } from '../models';
14
- export interface CreateExternalStorageRequest {
15
- videoCreateExternalStorageRequest: VideoCreateExternalStorageRequest | null;
16
- }
17
- export interface DeleteExternalStorageRequest {
18
- name: string;
19
- }
20
- /**
21
- *
22
- */
23
- export declare class SettingsApi extends runtime.BaseAPI {
24
- /**
25
- * Creates new external storage
26
- * Create external storage
27
- */
28
- createExternalStorageRaw(requestParameters: CreateExternalStorageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VideoCreateExternalStorageResponse>>;
29
- /**
30
- * Creates new external storage
31
- * Create external storage
32
- */
33
- createExternalStorage(requestParameters: CreateExternalStorageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VideoCreateExternalStorageResponse>;
34
- /**
35
- * Deletes external storage
36
- * Delete external storage
37
- */
38
- deleteExternalStorageRaw(requestParameters: DeleteExternalStorageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VideoDeleteExternalStorageResponse>>;
39
- /**
40
- * Deletes external storage
41
- * Delete external storage
42
- */
43
- deleteExternalStorage(requestParameters: DeleteExternalStorageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VideoDeleteExternalStorageResponse>;
44
- /**
45
- * Lists external storage
46
- * List external storage
47
- */
48
- listExternalStorageRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VideoListExternalStorageResponse>>;
49
- /**
50
- * Lists external storage
51
- * List external storage
52
- */
53
- listExternalStorage(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VideoListExternalStorageResponse>;
54
- }
@@ -1,383 +0,0 @@
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: v100.4.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
- VideoCheckExternalStorageResponse,
20
- VideoCreateCallTypeRequest,
21
- VideoCreateCallTypeResponse,
22
- VideoGetCallTypeResponse,
23
- VideoListCallTypeResponse,
24
- VideoResponse,
25
- VideoUpdateCallTypeRequest,
26
- VideoUpdateCallTypeResponse,
27
- VideoUpdateExternalStorageRequest,
28
- VideoUpdateExternalStorageResponse,
29
- } from '../models';
30
-
31
- export interface CheckExternalStorageRequest {
32
- name: string;
33
- }
34
-
35
- export interface CreateCallTypeRequest {
36
- videoCreateCallTypeRequest: VideoCreateCallTypeRequest | null;
37
- }
38
-
39
- export interface DeleteCallTypeRequest {
40
- name: string;
41
- }
42
-
43
- export interface GetCallTypeRequest {
44
- name: string;
45
- }
46
-
47
- export interface UpdateCallTypeRequest {
48
- name: string;
49
- videoUpdateCallTypeRequest: VideoUpdateCallTypeRequest | null;
50
- }
51
-
52
- export interface UpdateExternalStorageRequest {
53
- name: string;
54
- videoUpdateExternalStorageRequest: VideoUpdateExternalStorageRequest | null;
55
- }
56
-
57
- /**
58
- *
59
- */
60
- export class ServerSideApi extends runtime.BaseAPI {
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
-
106
- /**
107
- *
108
- * Create Call Type
109
- */
110
- async createCallTypeRaw(requestParameters: CreateCallTypeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VideoCreateCallTypeResponse>> {
111
- if (requestParameters.videoCreateCallTypeRequest === null || requestParameters.videoCreateCallTypeRequest === undefined) {
112
- throw new runtime.RequiredError('videoCreateCallTypeRequest','Required parameter requestParameters.videoCreateCallTypeRequest was null or undefined when calling createCallType.');
113
- }
114
-
115
- const queryParameters: any = {};
116
-
117
- const headerParameters: runtime.HTTPHeaders = {};
118
-
119
- headerParameters['Content-Type'] = 'application/json';
120
-
121
- if (this.configuration && this.configuration.apiKey) {
122
- headerParameters["Stream-Auth-Type"] = this.configuration.apiKey("Stream-Auth-Type"); // stream-auth-type authentication
123
- }
124
-
125
- if (this.configuration && this.configuration.apiKey) {
126
- queryParameters["api_key"] = this.configuration.apiKey("api_key"); // api_key authentication
127
- }
128
-
129
- if (this.configuration && this.configuration.apiKey) {
130
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // JWT authentication
131
- }
132
-
133
- const response = await this.request({
134
- path: `/video/calltypes`,
135
- method: 'POST',
136
- headers: headerParameters,
137
- query: queryParameters,
138
- body: requestParameters.videoCreateCallTypeRequest,
139
- }, initOverrides);
140
-
141
- return new runtime.JSONApiResponse(response);
142
- }
143
-
144
- /**
145
- *
146
- * Create Call Type
147
- */
148
- async createCallType(requestParameters: CreateCallTypeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VideoCreateCallTypeResponse> {
149
- const response = await this.createCallTypeRaw(requestParameters, initOverrides);
150
- return await response.value();
151
- }
152
-
153
- /**
154
- *
155
- * Delete Call Type
156
- */
157
- async deleteCallTypeRaw(requestParameters: DeleteCallTypeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VideoResponse>> {
158
- if (requestParameters.name === null || requestParameters.name === undefined) {
159
- throw new runtime.RequiredError('name','Required parameter requestParameters.name was null or undefined when calling deleteCallType.');
160
- }
161
-
162
- const queryParameters: any = {};
163
-
164
- const headerParameters: runtime.HTTPHeaders = {};
165
-
166
- if (this.configuration && this.configuration.apiKey) {
167
- headerParameters["Stream-Auth-Type"] = this.configuration.apiKey("Stream-Auth-Type"); // stream-auth-type authentication
168
- }
169
-
170
- if (this.configuration && this.configuration.apiKey) {
171
- queryParameters["api_key"] = this.configuration.apiKey("api_key"); // api_key authentication
172
- }
173
-
174
- if (this.configuration && this.configuration.apiKey) {
175
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // JWT authentication
176
- }
177
-
178
- const response = await this.request({
179
- path: `/video/calltypes/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(requestParameters.name))),
180
- method: 'DELETE',
181
- headers: headerParameters,
182
- query: queryParameters,
183
- }, initOverrides);
184
-
185
- return new runtime.JSONApiResponse(response);
186
- }
187
-
188
- /**
189
- *
190
- * Delete Call Type
191
- */
192
- async deleteCallType(requestParameters: DeleteCallTypeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VideoResponse> {
193
- const response = await this.deleteCallTypeRaw(requestParameters, initOverrides);
194
- return await response.value();
195
- }
196
-
197
- /**
198
- *
199
- * Get Call Type
200
- */
201
- async getCallTypeRaw(requestParameters: GetCallTypeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VideoGetCallTypeResponse>> {
202
- if (requestParameters.name === null || requestParameters.name === undefined) {
203
- throw new runtime.RequiredError('name','Required parameter requestParameters.name was null or undefined when calling getCallType.');
204
- }
205
-
206
- const queryParameters: any = {};
207
-
208
- const headerParameters: runtime.HTTPHeaders = {};
209
-
210
- if (this.configuration && this.configuration.apiKey) {
211
- headerParameters["Stream-Auth-Type"] = this.configuration.apiKey("Stream-Auth-Type"); // stream-auth-type authentication
212
- }
213
-
214
- if (this.configuration && this.configuration.apiKey) {
215
- queryParameters["api_key"] = this.configuration.apiKey("api_key"); // api_key authentication
216
- }
217
-
218
- if (this.configuration && this.configuration.apiKey) {
219
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // JWT authentication
220
- }
221
-
222
- const response = await this.request({
223
- path: `/video/calltypes/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(requestParameters.name))),
224
- method: 'GET',
225
- headers: headerParameters,
226
- query: queryParameters,
227
- }, initOverrides);
228
-
229
- return new runtime.JSONApiResponse(response);
230
- }
231
-
232
- /**
233
- *
234
- * Get Call Type
235
- */
236
- async getCallType(requestParameters: GetCallTypeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VideoGetCallTypeResponse> {
237
- const response = await this.getCallTypeRaw(requestParameters, initOverrides);
238
- return await response.value();
239
- }
240
-
241
- /**
242
- *
243
- * List Call Type
244
- */
245
- async listCallTypesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VideoListCallTypeResponse>> {
246
- const queryParameters: any = {};
247
-
248
- const headerParameters: runtime.HTTPHeaders = {};
249
-
250
- if (this.configuration && this.configuration.apiKey) {
251
- headerParameters["Stream-Auth-Type"] = this.configuration.apiKey("Stream-Auth-Type"); // stream-auth-type authentication
252
- }
253
-
254
- if (this.configuration && this.configuration.apiKey) {
255
- queryParameters["api_key"] = this.configuration.apiKey("api_key"); // api_key authentication
256
- }
257
-
258
- if (this.configuration && this.configuration.apiKey) {
259
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // JWT authentication
260
- }
261
-
262
- const response = await this.request({
263
- path: `/video/calltypes`,
264
- method: 'GET',
265
- headers: headerParameters,
266
- query: queryParameters,
267
- }, initOverrides);
268
-
269
- return new runtime.JSONApiResponse(response);
270
- }
271
-
272
- /**
273
- *
274
- * List Call Type
275
- */
276
- async listCallTypes(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VideoListCallTypeResponse> {
277
- const response = await this.listCallTypesRaw(initOverrides);
278
- return await response.value();
279
- }
280
-
281
- /**
282
- *
283
- * Update Call Type
284
- */
285
- async updateCallTypeRaw(requestParameters: UpdateCallTypeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VideoUpdateCallTypeResponse>> {
286
- if (requestParameters.name === null || requestParameters.name === undefined) {
287
- throw new runtime.RequiredError('name','Required parameter requestParameters.name was null or undefined when calling updateCallType.');
288
- }
289
-
290
- if (requestParameters.videoUpdateCallTypeRequest === null || requestParameters.videoUpdateCallTypeRequest === undefined) {
291
- throw new runtime.RequiredError('videoUpdateCallTypeRequest','Required parameter requestParameters.videoUpdateCallTypeRequest was null or undefined when calling updateCallType.');
292
- }
293
-
294
- const queryParameters: any = {};
295
-
296
- const headerParameters: runtime.HTTPHeaders = {};
297
-
298
- headerParameters['Content-Type'] = 'application/json';
299
-
300
- if (this.configuration && this.configuration.apiKey) {
301
- headerParameters["Stream-Auth-Type"] = this.configuration.apiKey("Stream-Auth-Type"); // stream-auth-type authentication
302
- }
303
-
304
- if (this.configuration && this.configuration.apiKey) {
305
- queryParameters["api_key"] = this.configuration.apiKey("api_key"); // api_key authentication
306
- }
307
-
308
- if (this.configuration && this.configuration.apiKey) {
309
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // JWT authentication
310
- }
311
-
312
- const response = await this.request({
313
- path: `/video/calltypes/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(requestParameters.name))),
314
- method: 'PUT',
315
- headers: headerParameters,
316
- query: queryParameters,
317
- body: requestParameters.videoUpdateCallTypeRequest,
318
- }, initOverrides);
319
-
320
- return new runtime.JSONApiResponse(response);
321
- }
322
-
323
- /**
324
- *
325
- * Update Call Type
326
- */
327
- async updateCallType(requestParameters: UpdateCallTypeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VideoUpdateCallTypeResponse> {
328
- const response = await this.updateCallTypeRaw(requestParameters, initOverrides);
329
- return await response.value();
330
- }
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
-
383
- }