@stream-io/node-sdk 0.2.6 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/index.cjs.js +2461 -2124
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +2450 -2109
- package/dist/index.es.js.map +1 -1
- package/dist/src/StreamCall.d.ts +1 -1
- package/dist/src/StreamChannel.d.ts +7 -9
- package/dist/src/StreamChatClient.d.ts +2 -5
- package/dist/src/StreamClient.d.ts +15 -26
- package/dist/src/gen/chat/apis/ProductchatApi.d.ts +1750 -0
- package/dist/src/gen/chat/apis/index.d.ts +1 -27
- package/dist/src/gen/chat/models/index.d.ts +5101 -5891
- package/dist/src/gen/chat/runtime.d.ts +2 -2
- package/dist/src/gen/video/apis/ProductvideoApi.d.ts +1 -1
- package/dist/src/gen/video/models/index.d.ts +189 -35
- package/dist/src/gen/video/runtime.d.ts +1 -1
- package/package.json +8 -1
- package/src/StreamCall.ts +7 -7
- package/src/StreamChannel.ts +44 -49
- package/src/StreamChatClient.ts +23 -35
- package/src/StreamClient.ts +71 -232
- package/src/gen/chat/.openapi-generator/FILES +1 -19
- package/src/gen/chat/apis/ProductchatApi.ts +7007 -0
- package/src/gen/chat/apis/index.ts +1 -27
- package/src/gen/chat/models/index.ts +5758 -6564
- package/src/gen/chat/runtime.ts +3 -3
- package/src/gen/video/apis/ProductvideoApi.ts +1 -1
- package/src/gen/video/models/index.ts +184 -36
- package/src/gen/video/runtime.ts +1 -1
- package/dist/src/gen/chat/apis/ChannelTypesApi.d.ts +0 -81
- package/dist/src/gen/chat/apis/ChannelsApi.d.ts +0 -280
- package/dist/src/gen/chat/apis/CustomCommandsApi.d.ts +0 -81
- package/dist/src/gen/chat/apis/DefaultApi.d.ts +0 -60
- package/dist/src/gen/chat/apis/DevicesApi.d.ts +0 -58
- package/dist/src/gen/chat/apis/EventsApi.d.ts +0 -47
- package/dist/src/gen/chat/apis/FilesApi.d.ts +0 -85
- package/dist/src/gen/chat/apis/GDPRApi.d.ts +0 -114
- package/dist/src/gen/chat/apis/ImportsApi.d.ts +0 -67
- package/dist/src/gen/chat/apis/MessagesApi.d.ts +0 -374
- package/dist/src/gen/chat/apis/ModerationApi.d.ts +0 -271
- package/dist/src/gen/chat/apis/PermissionsV2Api.d.ts +0 -77
- package/dist/src/gen/chat/apis/PushApi.d.ts +0 -65
- package/dist/src/gen/chat/apis/ReactionsApi.d.ts +0 -62
- package/dist/src/gen/chat/apis/ServerSideApi.d.ts +0 -31
- package/dist/src/gen/chat/apis/SettingsApi.d.ts +0 -257
- package/dist/src/gen/chat/apis/TasksApi.d.ts +0 -31
- package/dist/src/gen/chat/apis/TestingApi.d.ts +0 -57
- package/dist/src/gen/chat/apis/UsersApi.d.ts +0 -313
- package/src/gen/chat/apis/ChannelTypesApi.ts +0 -275
- package/src/gen/chat/apis/ChannelsApi.ts +0 -1096
- package/src/gen/chat/apis/CustomCommandsApi.ts +0 -276
- package/src/gen/chat/apis/DefaultApi.ts +0 -196
- package/src/gen/chat/apis/DevicesApi.ts +0 -180
- package/src/gen/chat/apis/EventsApi.ts +0 -147
- package/src/gen/chat/apis/FilesApi.ts +0 -312
- package/src/gen/chat/apis/GDPRApi.ts +0 -418
- package/src/gen/chat/apis/ImportsApi.ts +0 -222
- package/src/gen/chat/apis/MessagesApi.ts +0 -1475
- package/src/gen/chat/apis/ModerationApi.ts +0 -1038
- package/src/gen/chat/apis/PermissionsV2Api.ts +0 -259
- package/src/gen/chat/apis/PushApi.ts +0 -183
- package/src/gen/chat/apis/ReactionsApi.ts +0 -202
- package/src/gen/chat/apis/ServerSideApi.ts +0 -79
- package/src/gen/chat/apis/SettingsApi.ts +0 -948
- package/src/gen/chat/apis/TasksApi.ts +0 -75
- package/src/gen/chat/apis/TestingApi.ts +0 -185
- package/src/gen/chat/apis/UsersApi.ts +0 -1203
|
@@ -1,948 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Stream Chat API
|
|
5
|
-
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: v92.7.0
|
|
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
|
-
APIError,
|
|
19
|
-
CheckPushRequest,
|
|
20
|
-
CheckPushResponse,
|
|
21
|
-
CheckSNSRequest,
|
|
22
|
-
CheckSNSResponse,
|
|
23
|
-
CheckSQSRequest,
|
|
24
|
-
CheckSQSResponse,
|
|
25
|
-
CreateBlockListRequest,
|
|
26
|
-
CreateChannelTypeRequest,
|
|
27
|
-
CreateChannelTypeResponse,
|
|
28
|
-
GetApplicationResponse,
|
|
29
|
-
GetBlockListResponse,
|
|
30
|
-
GetRateLimitsResponse,
|
|
31
|
-
ListBlockListResponse,
|
|
32
|
-
ListChannelTypesResponse,
|
|
33
|
-
ListPushProvidersResponse,
|
|
34
|
-
Response,
|
|
35
|
-
UpdateAppRequest,
|
|
36
|
-
UpdateBlockListRequest,
|
|
37
|
-
UpdateChannelTypeRequest,
|
|
38
|
-
UpdateChannelTypeResponse,
|
|
39
|
-
} from '../models';
|
|
40
|
-
|
|
41
|
-
export interface CheckPushOperationRequest {
|
|
42
|
-
checkPushRequest: CheckPushRequest | null;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export interface CheckSNSOperationRequest {
|
|
46
|
-
checkSNSRequest: CheckSNSRequest | null;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export interface CheckSQSOperationRequest {
|
|
50
|
-
checkSQSRequest: CheckSQSRequest | null;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
export interface CreateBlockListOperationRequest {
|
|
54
|
-
createBlockListRequest: CreateBlockListRequest | null;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
export interface CreateChannelTypeOperationRequest {
|
|
58
|
-
createChannelTypeRequest: CreateChannelTypeRequest | null;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
export interface DeleteBlockListRequest {
|
|
62
|
-
name: string;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
export interface DeleteChannelTypeRequest {
|
|
66
|
-
name: string;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
export interface DeletePushProviderRequest {
|
|
70
|
-
type: DeletePushProviderTypeEnum;
|
|
71
|
-
name: string;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
export interface GetBlockListRequest {
|
|
75
|
-
name: string;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
export interface GetChannelTypeRequest {
|
|
79
|
-
name: string;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
export interface GetRateLimitsRequest {
|
|
83
|
-
serverSide?: boolean;
|
|
84
|
-
android?: boolean;
|
|
85
|
-
ios?: boolean;
|
|
86
|
-
web?: boolean;
|
|
87
|
-
endpoints?: string;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
export interface UpdateAppOperationRequest {
|
|
91
|
-
updateAppRequest: UpdateAppRequest | null;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
export interface UpdateBlockListOperationRequest {
|
|
95
|
-
name: string;
|
|
96
|
-
updateBlockListRequest: UpdateBlockListRequest | null;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
export interface UpdateChannelTypeOperationRequest {
|
|
100
|
-
name: string;
|
|
101
|
-
updateChannelTypeRequest: UpdateChannelTypeRequest | null;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
/**
|
|
105
|
-
*
|
|
106
|
-
*/
|
|
107
|
-
export class SettingsApi extends runtime.BaseAPI {
|
|
108
|
-
|
|
109
|
-
/**
|
|
110
|
-
* Sends a test message via push, this is a test endpoint to verify your push settings
|
|
111
|
-
* Check push
|
|
112
|
-
*/
|
|
113
|
-
async checkPushRaw(requestParameters: CheckPushOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CheckPushResponse>> {
|
|
114
|
-
if (requestParameters.checkPushRequest === null || requestParameters.checkPushRequest === undefined) {
|
|
115
|
-
throw new runtime.RequiredError('checkPushRequest','Required parameter requestParameters.checkPushRequest was null or undefined when calling checkPush.');
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
const queryParameters: any = {};
|
|
119
|
-
|
|
120
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
121
|
-
|
|
122
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
123
|
-
|
|
124
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
125
|
-
headerParameters["Stream-Auth-Type"] = this.configuration.apiKey("Stream-Auth-Type"); // stream-auth-type authentication
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
129
|
-
queryParameters["api_key"] = this.configuration.apiKey("api_key"); // api_key authentication
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
133
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // JWT authentication
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
const response = await this.request({
|
|
137
|
-
path: `/check_push`,
|
|
138
|
-
method: 'POST',
|
|
139
|
-
headers: headerParameters,
|
|
140
|
-
query: queryParameters,
|
|
141
|
-
body: requestParameters.checkPushRequest,
|
|
142
|
-
}, initOverrides);
|
|
143
|
-
|
|
144
|
-
return new runtime.JSONApiResponse(response);
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
/**
|
|
148
|
-
* Sends a test message via push, this is a test endpoint to verify your push settings
|
|
149
|
-
* Check push
|
|
150
|
-
*/
|
|
151
|
-
async checkPush(requestParameters: CheckPushOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CheckPushResponse> {
|
|
152
|
-
const response = await this.checkPushRaw(requestParameters, initOverrides);
|
|
153
|
-
return await response.value();
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
/**
|
|
157
|
-
* Validates Amazon SNS configuration
|
|
158
|
-
* Check SNS
|
|
159
|
-
*/
|
|
160
|
-
async checkSNSRaw(requestParameters: CheckSNSOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CheckSNSResponse>> {
|
|
161
|
-
if (requestParameters.checkSNSRequest === null || requestParameters.checkSNSRequest === undefined) {
|
|
162
|
-
throw new runtime.RequiredError('checkSNSRequest','Required parameter requestParameters.checkSNSRequest was null or undefined when calling checkSNS.');
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
const queryParameters: any = {};
|
|
166
|
-
|
|
167
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
168
|
-
|
|
169
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
170
|
-
|
|
171
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
172
|
-
headerParameters["Stream-Auth-Type"] = this.configuration.apiKey("Stream-Auth-Type"); // stream-auth-type authentication
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
176
|
-
queryParameters["api_key"] = this.configuration.apiKey("api_key"); // api_key authentication
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
180
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // JWT authentication
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
const response = await this.request({
|
|
184
|
-
path: `/check_sns`,
|
|
185
|
-
method: 'POST',
|
|
186
|
-
headers: headerParameters,
|
|
187
|
-
query: queryParameters,
|
|
188
|
-
body: requestParameters.checkSNSRequest,
|
|
189
|
-
}, initOverrides);
|
|
190
|
-
|
|
191
|
-
return new runtime.JSONApiResponse(response);
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
/**
|
|
195
|
-
* Validates Amazon SNS configuration
|
|
196
|
-
* Check SNS
|
|
197
|
-
*/
|
|
198
|
-
async checkSNS(requestParameters: CheckSNSOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CheckSNSResponse> {
|
|
199
|
-
const response = await this.checkSNSRaw(requestParameters, initOverrides);
|
|
200
|
-
return await response.value();
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
/**
|
|
204
|
-
* Validates Amazon SQS credentials
|
|
205
|
-
* Check SQS
|
|
206
|
-
*/
|
|
207
|
-
async checkSQSRaw(requestParameters: CheckSQSOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CheckSQSResponse>> {
|
|
208
|
-
if (requestParameters.checkSQSRequest === null || requestParameters.checkSQSRequest === undefined) {
|
|
209
|
-
throw new runtime.RequiredError('checkSQSRequest','Required parameter requestParameters.checkSQSRequest was null or undefined when calling checkSQS.');
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
const queryParameters: any = {};
|
|
213
|
-
|
|
214
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
215
|
-
|
|
216
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
217
|
-
|
|
218
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
219
|
-
headerParameters["Stream-Auth-Type"] = this.configuration.apiKey("Stream-Auth-Type"); // stream-auth-type authentication
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
223
|
-
queryParameters["api_key"] = this.configuration.apiKey("api_key"); // api_key authentication
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
227
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // JWT authentication
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
const response = await this.request({
|
|
231
|
-
path: `/check_sqs`,
|
|
232
|
-
method: 'POST',
|
|
233
|
-
headers: headerParameters,
|
|
234
|
-
query: queryParameters,
|
|
235
|
-
body: requestParameters.checkSQSRequest,
|
|
236
|
-
}, initOverrides);
|
|
237
|
-
|
|
238
|
-
return new runtime.JSONApiResponse(response);
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
/**
|
|
242
|
-
* Validates Amazon SQS credentials
|
|
243
|
-
* Check SQS
|
|
244
|
-
*/
|
|
245
|
-
async checkSQS(requestParameters: CheckSQSOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CheckSQSResponse> {
|
|
246
|
-
const response = await this.checkSQSRaw(requestParameters, initOverrides);
|
|
247
|
-
return await response.value();
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
/**
|
|
251
|
-
* Creates a new application blocklist, once created the blocklist can be used by any channel type
|
|
252
|
-
* Create block list
|
|
253
|
-
*/
|
|
254
|
-
async createBlockListRaw(requestParameters: CreateBlockListOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Response>> {
|
|
255
|
-
if (requestParameters.createBlockListRequest === null || requestParameters.createBlockListRequest === undefined) {
|
|
256
|
-
throw new runtime.RequiredError('createBlockListRequest','Required parameter requestParameters.createBlockListRequest was null or undefined when calling createBlockList.');
|
|
257
|
-
}
|
|
258
|
-
|
|
259
|
-
const queryParameters: any = {};
|
|
260
|
-
|
|
261
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
262
|
-
|
|
263
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
264
|
-
|
|
265
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
266
|
-
headerParameters["Stream-Auth-Type"] = this.configuration.apiKey("Stream-Auth-Type"); // stream-auth-type authentication
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
270
|
-
queryParameters["api_key"] = this.configuration.apiKey("api_key"); // api_key authentication
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
274
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // JWT authentication
|
|
275
|
-
}
|
|
276
|
-
|
|
277
|
-
const response = await this.request({
|
|
278
|
-
path: `/blocklists`,
|
|
279
|
-
method: 'POST',
|
|
280
|
-
headers: headerParameters,
|
|
281
|
-
query: queryParameters,
|
|
282
|
-
body: requestParameters.createBlockListRequest,
|
|
283
|
-
}, initOverrides);
|
|
284
|
-
|
|
285
|
-
return new runtime.JSONApiResponse(response);
|
|
286
|
-
}
|
|
287
|
-
|
|
288
|
-
/**
|
|
289
|
-
* Creates a new application blocklist, once created the blocklist can be used by any channel type
|
|
290
|
-
* Create block list
|
|
291
|
-
*/
|
|
292
|
-
async createBlockList(requestParameters: CreateBlockListOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Response> {
|
|
293
|
-
const response = await this.createBlockListRaw(requestParameters, initOverrides);
|
|
294
|
-
return await response.value();
|
|
295
|
-
}
|
|
296
|
-
|
|
297
|
-
/**
|
|
298
|
-
* Creates new channel type
|
|
299
|
-
* Create channel type
|
|
300
|
-
*/
|
|
301
|
-
async createChannelTypeRaw(requestParameters: CreateChannelTypeOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateChannelTypeResponse>> {
|
|
302
|
-
if (requestParameters.createChannelTypeRequest === null || requestParameters.createChannelTypeRequest === undefined) {
|
|
303
|
-
throw new runtime.RequiredError('createChannelTypeRequest','Required parameter requestParameters.createChannelTypeRequest was null or undefined when calling createChannelType.');
|
|
304
|
-
}
|
|
305
|
-
|
|
306
|
-
const queryParameters: any = {};
|
|
307
|
-
|
|
308
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
309
|
-
|
|
310
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
311
|
-
|
|
312
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
313
|
-
headerParameters["Stream-Auth-Type"] = this.configuration.apiKey("Stream-Auth-Type"); // stream-auth-type authentication
|
|
314
|
-
}
|
|
315
|
-
|
|
316
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
317
|
-
queryParameters["api_key"] = this.configuration.apiKey("api_key"); // api_key authentication
|
|
318
|
-
}
|
|
319
|
-
|
|
320
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
321
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // JWT authentication
|
|
322
|
-
}
|
|
323
|
-
|
|
324
|
-
const response = await this.request({
|
|
325
|
-
path: `/channeltypes`,
|
|
326
|
-
method: 'POST',
|
|
327
|
-
headers: headerParameters,
|
|
328
|
-
query: queryParameters,
|
|
329
|
-
body: requestParameters.createChannelTypeRequest,
|
|
330
|
-
}, initOverrides);
|
|
331
|
-
|
|
332
|
-
return new runtime.JSONApiResponse(response);
|
|
333
|
-
}
|
|
334
|
-
|
|
335
|
-
/**
|
|
336
|
-
* Creates new channel type
|
|
337
|
-
* Create channel type
|
|
338
|
-
*/
|
|
339
|
-
async createChannelType(requestParameters: CreateChannelTypeOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateChannelTypeResponse> {
|
|
340
|
-
const response = await this.createChannelTypeRaw(requestParameters, initOverrides);
|
|
341
|
-
return await response.value();
|
|
342
|
-
}
|
|
343
|
-
|
|
344
|
-
/**
|
|
345
|
-
* Deletes previously created application blocklist
|
|
346
|
-
* Delete block list
|
|
347
|
-
*/
|
|
348
|
-
async deleteBlockListRaw(requestParameters: DeleteBlockListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Response>> {
|
|
349
|
-
if (requestParameters.name === null || requestParameters.name === undefined) {
|
|
350
|
-
throw new runtime.RequiredError('name','Required parameter requestParameters.name was null or undefined when calling deleteBlockList.');
|
|
351
|
-
}
|
|
352
|
-
|
|
353
|
-
const queryParameters: any = {};
|
|
354
|
-
|
|
355
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
356
|
-
|
|
357
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
358
|
-
headerParameters["Stream-Auth-Type"] = this.configuration.apiKey("Stream-Auth-Type"); // stream-auth-type authentication
|
|
359
|
-
}
|
|
360
|
-
|
|
361
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
362
|
-
queryParameters["api_key"] = this.configuration.apiKey("api_key"); // api_key authentication
|
|
363
|
-
}
|
|
364
|
-
|
|
365
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
366
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // JWT authentication
|
|
367
|
-
}
|
|
368
|
-
|
|
369
|
-
const response = await this.request({
|
|
370
|
-
path: `/blocklists/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(requestParameters.name))),
|
|
371
|
-
method: 'DELETE',
|
|
372
|
-
headers: headerParameters,
|
|
373
|
-
query: queryParameters,
|
|
374
|
-
}, initOverrides);
|
|
375
|
-
|
|
376
|
-
return new runtime.JSONApiResponse(response);
|
|
377
|
-
}
|
|
378
|
-
|
|
379
|
-
/**
|
|
380
|
-
* Deletes previously created application blocklist
|
|
381
|
-
* Delete block list
|
|
382
|
-
*/
|
|
383
|
-
async deleteBlockList(requestParameters: DeleteBlockListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Response> {
|
|
384
|
-
const response = await this.deleteBlockListRaw(requestParameters, initOverrides);
|
|
385
|
-
return await response.value();
|
|
386
|
-
}
|
|
387
|
-
|
|
388
|
-
/**
|
|
389
|
-
* Deletes channel type
|
|
390
|
-
* Delete channel type
|
|
391
|
-
*/
|
|
392
|
-
async deleteChannelTypeRaw(requestParameters: DeleteChannelTypeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Response>> {
|
|
393
|
-
if (requestParameters.name === null || requestParameters.name === undefined) {
|
|
394
|
-
throw new runtime.RequiredError('name','Required parameter requestParameters.name was null or undefined when calling deleteChannelType.');
|
|
395
|
-
}
|
|
396
|
-
|
|
397
|
-
const queryParameters: any = {};
|
|
398
|
-
|
|
399
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
400
|
-
|
|
401
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
402
|
-
headerParameters["Stream-Auth-Type"] = this.configuration.apiKey("Stream-Auth-Type"); // stream-auth-type authentication
|
|
403
|
-
}
|
|
404
|
-
|
|
405
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
406
|
-
queryParameters["api_key"] = this.configuration.apiKey("api_key"); // api_key authentication
|
|
407
|
-
}
|
|
408
|
-
|
|
409
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
410
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // JWT authentication
|
|
411
|
-
}
|
|
412
|
-
|
|
413
|
-
const response = await this.request({
|
|
414
|
-
path: `/channeltypes/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(requestParameters.name))),
|
|
415
|
-
method: 'DELETE',
|
|
416
|
-
headers: headerParameters,
|
|
417
|
-
query: queryParameters,
|
|
418
|
-
}, initOverrides);
|
|
419
|
-
|
|
420
|
-
return new runtime.JSONApiResponse(response);
|
|
421
|
-
}
|
|
422
|
-
|
|
423
|
-
/**
|
|
424
|
-
* Deletes channel type
|
|
425
|
-
* Delete channel type
|
|
426
|
-
*/
|
|
427
|
-
async deleteChannelType(requestParameters: DeleteChannelTypeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Response> {
|
|
428
|
-
const response = await this.deleteChannelTypeRaw(requestParameters, initOverrides);
|
|
429
|
-
return await response.value();
|
|
430
|
-
}
|
|
431
|
-
|
|
432
|
-
/**
|
|
433
|
-
* Delete a push provider from v2 with multi bundle/package support. v1 isn\'t supported in this endpoint
|
|
434
|
-
* Delete a push provider
|
|
435
|
-
*/
|
|
436
|
-
async deletePushProviderRaw(requestParameters: DeletePushProviderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Response>> {
|
|
437
|
-
if (requestParameters.type === null || requestParameters.type === undefined) {
|
|
438
|
-
throw new runtime.RequiredError('type','Required parameter requestParameters.type was null or undefined when calling deletePushProvider.');
|
|
439
|
-
}
|
|
440
|
-
|
|
441
|
-
if (requestParameters.name === null || requestParameters.name === undefined) {
|
|
442
|
-
throw new runtime.RequiredError('name','Required parameter requestParameters.name was null or undefined when calling deletePushProvider.');
|
|
443
|
-
}
|
|
444
|
-
|
|
445
|
-
const queryParameters: any = {};
|
|
446
|
-
|
|
447
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
448
|
-
|
|
449
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
450
|
-
headerParameters["Stream-Auth-Type"] = this.configuration.apiKey("Stream-Auth-Type"); // stream-auth-type authentication
|
|
451
|
-
}
|
|
452
|
-
|
|
453
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
454
|
-
queryParameters["api_key"] = this.configuration.apiKey("api_key"); // api_key authentication
|
|
455
|
-
}
|
|
456
|
-
|
|
457
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
458
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // JWT authentication
|
|
459
|
-
}
|
|
460
|
-
|
|
461
|
-
const response = await this.request({
|
|
462
|
-
path: `/push_providers/{type}/{name}`.replace(`{${"type"}}`, encodeURIComponent(String(requestParameters.type))).replace(`{${"name"}}`, encodeURIComponent(String(requestParameters.name))),
|
|
463
|
-
method: 'DELETE',
|
|
464
|
-
headers: headerParameters,
|
|
465
|
-
query: queryParameters,
|
|
466
|
-
}, initOverrides);
|
|
467
|
-
|
|
468
|
-
return new runtime.JSONApiResponse(response);
|
|
469
|
-
}
|
|
470
|
-
|
|
471
|
-
/**
|
|
472
|
-
* Delete a push provider from v2 with multi bundle/package support. v1 isn\'t supported in this endpoint
|
|
473
|
-
* Delete a push provider
|
|
474
|
-
*/
|
|
475
|
-
async deletePushProvider(requestParameters: DeletePushProviderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Response> {
|
|
476
|
-
const response = await this.deletePushProviderRaw(requestParameters, initOverrides);
|
|
477
|
-
return await response.value();
|
|
478
|
-
}
|
|
479
|
-
|
|
480
|
-
/**
|
|
481
|
-
* This method returns the application settings
|
|
482
|
-
* Get App Settings
|
|
483
|
-
*/
|
|
484
|
-
async getAppRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetApplicationResponse>> {
|
|
485
|
-
const queryParameters: any = {};
|
|
486
|
-
|
|
487
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
488
|
-
|
|
489
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
490
|
-
headerParameters["Stream-Auth-Type"] = this.configuration.apiKey("Stream-Auth-Type"); // stream-auth-type authentication
|
|
491
|
-
}
|
|
492
|
-
|
|
493
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
494
|
-
queryParameters["api_key"] = this.configuration.apiKey("api_key"); // api_key authentication
|
|
495
|
-
}
|
|
496
|
-
|
|
497
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
498
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // JWT authentication
|
|
499
|
-
}
|
|
500
|
-
|
|
501
|
-
const response = await this.request({
|
|
502
|
-
path: `/app`,
|
|
503
|
-
method: 'GET',
|
|
504
|
-
headers: headerParameters,
|
|
505
|
-
query: queryParameters,
|
|
506
|
-
}, initOverrides);
|
|
507
|
-
|
|
508
|
-
return new runtime.JSONApiResponse(response);
|
|
509
|
-
}
|
|
510
|
-
|
|
511
|
-
/**
|
|
512
|
-
* This method returns the application settings
|
|
513
|
-
* Get App Settings
|
|
514
|
-
*/
|
|
515
|
-
async getApp(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetApplicationResponse> {
|
|
516
|
-
const response = await this.getAppRaw(initOverrides);
|
|
517
|
-
return await response.value();
|
|
518
|
-
}
|
|
519
|
-
|
|
520
|
-
/**
|
|
521
|
-
* Returns block list by given name
|
|
522
|
-
* Get block list
|
|
523
|
-
*/
|
|
524
|
-
async getBlockListRaw(requestParameters: GetBlockListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetBlockListResponse>> {
|
|
525
|
-
if (requestParameters.name === null || requestParameters.name === undefined) {
|
|
526
|
-
throw new runtime.RequiredError('name','Required parameter requestParameters.name was null or undefined when calling getBlockList.');
|
|
527
|
-
}
|
|
528
|
-
|
|
529
|
-
const queryParameters: any = {};
|
|
530
|
-
|
|
531
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
532
|
-
|
|
533
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
534
|
-
headerParameters["Stream-Auth-Type"] = this.configuration.apiKey("Stream-Auth-Type"); // stream-auth-type authentication
|
|
535
|
-
}
|
|
536
|
-
|
|
537
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
538
|
-
queryParameters["api_key"] = this.configuration.apiKey("api_key"); // api_key authentication
|
|
539
|
-
}
|
|
540
|
-
|
|
541
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
542
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // JWT authentication
|
|
543
|
-
}
|
|
544
|
-
|
|
545
|
-
const response = await this.request({
|
|
546
|
-
path: `/blocklists/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(requestParameters.name))),
|
|
547
|
-
method: 'GET',
|
|
548
|
-
headers: headerParameters,
|
|
549
|
-
query: queryParameters,
|
|
550
|
-
}, initOverrides);
|
|
551
|
-
|
|
552
|
-
return new runtime.JSONApiResponse(response);
|
|
553
|
-
}
|
|
554
|
-
|
|
555
|
-
/**
|
|
556
|
-
* Returns block list by given name
|
|
557
|
-
* Get block list
|
|
558
|
-
*/
|
|
559
|
-
async getBlockList(requestParameters: GetBlockListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetBlockListResponse> {
|
|
560
|
-
const response = await this.getBlockListRaw(requestParameters, initOverrides);
|
|
561
|
-
return await response.value();
|
|
562
|
-
}
|
|
563
|
-
|
|
564
|
-
/**
|
|
565
|
-
* Gets channel type
|
|
566
|
-
* Get channel type
|
|
567
|
-
*/
|
|
568
|
-
async getChannelTypeRaw(requestParameters: GetChannelTypeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Response>> {
|
|
569
|
-
if (requestParameters.name === null || requestParameters.name === undefined) {
|
|
570
|
-
throw new runtime.RequiredError('name','Required parameter requestParameters.name was null or undefined when calling getChannelType.');
|
|
571
|
-
}
|
|
572
|
-
|
|
573
|
-
const queryParameters: any = {};
|
|
574
|
-
|
|
575
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
576
|
-
|
|
577
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
578
|
-
headerParameters["Stream-Auth-Type"] = this.configuration.apiKey("Stream-Auth-Type"); // stream-auth-type authentication
|
|
579
|
-
}
|
|
580
|
-
|
|
581
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
582
|
-
queryParameters["api_key"] = this.configuration.apiKey("api_key"); // api_key authentication
|
|
583
|
-
}
|
|
584
|
-
|
|
585
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
586
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // JWT authentication
|
|
587
|
-
}
|
|
588
|
-
|
|
589
|
-
const response = await this.request({
|
|
590
|
-
path: `/channeltypes/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(requestParameters.name))),
|
|
591
|
-
method: 'GET',
|
|
592
|
-
headers: headerParameters,
|
|
593
|
-
query: queryParameters,
|
|
594
|
-
}, initOverrides);
|
|
595
|
-
|
|
596
|
-
return new runtime.JSONApiResponse(response);
|
|
597
|
-
}
|
|
598
|
-
|
|
599
|
-
/**
|
|
600
|
-
* Gets channel type
|
|
601
|
-
* Get channel type
|
|
602
|
-
*/
|
|
603
|
-
async getChannelType(requestParameters: GetChannelTypeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Response> {
|
|
604
|
-
const response = await this.getChannelTypeRaw(requestParameters, initOverrides);
|
|
605
|
-
return await response.value();
|
|
606
|
-
}
|
|
607
|
-
|
|
608
|
-
/**
|
|
609
|
-
* Get rate limits usage and quotas
|
|
610
|
-
* Get rate limits
|
|
611
|
-
*/
|
|
612
|
-
async getRateLimitsRaw(requestParameters: GetRateLimitsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetRateLimitsResponse>> {
|
|
613
|
-
const queryParameters: any = {};
|
|
614
|
-
|
|
615
|
-
if (requestParameters.serverSide !== undefined) {
|
|
616
|
-
queryParameters['server_side'] = requestParameters.serverSide;
|
|
617
|
-
}
|
|
618
|
-
|
|
619
|
-
if (requestParameters.android !== undefined) {
|
|
620
|
-
queryParameters['android'] = requestParameters.android;
|
|
621
|
-
}
|
|
622
|
-
|
|
623
|
-
if (requestParameters.ios !== undefined) {
|
|
624
|
-
queryParameters['ios'] = requestParameters.ios;
|
|
625
|
-
}
|
|
626
|
-
|
|
627
|
-
if (requestParameters.web !== undefined) {
|
|
628
|
-
queryParameters['web'] = requestParameters.web;
|
|
629
|
-
}
|
|
630
|
-
|
|
631
|
-
if (requestParameters.endpoints !== undefined) {
|
|
632
|
-
queryParameters['endpoints'] = requestParameters.endpoints;
|
|
633
|
-
}
|
|
634
|
-
|
|
635
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
636
|
-
|
|
637
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
638
|
-
headerParameters["Stream-Auth-Type"] = this.configuration.apiKey("Stream-Auth-Type"); // stream-auth-type authentication
|
|
639
|
-
}
|
|
640
|
-
|
|
641
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
642
|
-
queryParameters["api_key"] = this.configuration.apiKey("api_key"); // api_key authentication
|
|
643
|
-
}
|
|
644
|
-
|
|
645
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
646
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // JWT authentication
|
|
647
|
-
}
|
|
648
|
-
|
|
649
|
-
const response = await this.request({
|
|
650
|
-
path: `/rate_limits`,
|
|
651
|
-
method: 'GET',
|
|
652
|
-
headers: headerParameters,
|
|
653
|
-
query: queryParameters,
|
|
654
|
-
}, initOverrides);
|
|
655
|
-
|
|
656
|
-
return new runtime.JSONApiResponse(response);
|
|
657
|
-
}
|
|
658
|
-
|
|
659
|
-
/**
|
|
660
|
-
* Get rate limits usage and quotas
|
|
661
|
-
* Get rate limits
|
|
662
|
-
*/
|
|
663
|
-
async getRateLimits(requestParameters: GetRateLimitsRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetRateLimitsResponse> {
|
|
664
|
-
const response = await this.getRateLimitsRaw(requestParameters, initOverrides);
|
|
665
|
-
return await response.value();
|
|
666
|
-
}
|
|
667
|
-
|
|
668
|
-
/**
|
|
669
|
-
* Returns all available block lists
|
|
670
|
-
* List block lists
|
|
671
|
-
*/
|
|
672
|
-
async listBlockListsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListBlockListResponse>> {
|
|
673
|
-
const queryParameters: any = {};
|
|
674
|
-
|
|
675
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
676
|
-
|
|
677
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
678
|
-
headerParameters["Stream-Auth-Type"] = this.configuration.apiKey("Stream-Auth-Type"); // stream-auth-type authentication
|
|
679
|
-
}
|
|
680
|
-
|
|
681
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
682
|
-
queryParameters["api_key"] = this.configuration.apiKey("api_key"); // api_key authentication
|
|
683
|
-
}
|
|
684
|
-
|
|
685
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
686
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // JWT authentication
|
|
687
|
-
}
|
|
688
|
-
|
|
689
|
-
const response = await this.request({
|
|
690
|
-
path: `/blocklists`,
|
|
691
|
-
method: 'GET',
|
|
692
|
-
headers: headerParameters,
|
|
693
|
-
query: queryParameters,
|
|
694
|
-
}, initOverrides);
|
|
695
|
-
|
|
696
|
-
return new runtime.JSONApiResponse(response);
|
|
697
|
-
}
|
|
698
|
-
|
|
699
|
-
/**
|
|
700
|
-
* Returns all available block lists
|
|
701
|
-
* List block lists
|
|
702
|
-
*/
|
|
703
|
-
async listBlockLists(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListBlockListResponse> {
|
|
704
|
-
const response = await this.listBlockListsRaw(initOverrides);
|
|
705
|
-
return await response.value();
|
|
706
|
-
}
|
|
707
|
-
|
|
708
|
-
/**
|
|
709
|
-
* Lists all available channel types
|
|
710
|
-
* List channel types
|
|
711
|
-
*/
|
|
712
|
-
async listChannelTypesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListChannelTypesResponse>> {
|
|
713
|
-
const queryParameters: any = {};
|
|
714
|
-
|
|
715
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
716
|
-
|
|
717
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
718
|
-
headerParameters["Stream-Auth-Type"] = this.configuration.apiKey("Stream-Auth-Type"); // stream-auth-type authentication
|
|
719
|
-
}
|
|
720
|
-
|
|
721
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
722
|
-
queryParameters["api_key"] = this.configuration.apiKey("api_key"); // api_key authentication
|
|
723
|
-
}
|
|
724
|
-
|
|
725
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
726
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // JWT authentication
|
|
727
|
-
}
|
|
728
|
-
|
|
729
|
-
const response = await this.request({
|
|
730
|
-
path: `/channeltypes`,
|
|
731
|
-
method: 'GET',
|
|
732
|
-
headers: headerParameters,
|
|
733
|
-
query: queryParameters,
|
|
734
|
-
}, initOverrides);
|
|
735
|
-
|
|
736
|
-
return new runtime.JSONApiResponse(response);
|
|
737
|
-
}
|
|
738
|
-
|
|
739
|
-
/**
|
|
740
|
-
* Lists all available channel types
|
|
741
|
-
* List channel types
|
|
742
|
-
*/
|
|
743
|
-
async listChannelTypes(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListChannelTypesResponse> {
|
|
744
|
-
const response = await this.listChannelTypesRaw(initOverrides);
|
|
745
|
-
return await response.value();
|
|
746
|
-
}
|
|
747
|
-
|
|
748
|
-
/**
|
|
749
|
-
* List details of all push providers.
|
|
750
|
-
* List push providers
|
|
751
|
-
*/
|
|
752
|
-
async listPushProvidersRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListPushProvidersResponse>> {
|
|
753
|
-
const queryParameters: any = {};
|
|
754
|
-
|
|
755
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
756
|
-
|
|
757
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
758
|
-
headerParameters["Stream-Auth-Type"] = this.configuration.apiKey("Stream-Auth-Type"); // stream-auth-type authentication
|
|
759
|
-
}
|
|
760
|
-
|
|
761
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
762
|
-
queryParameters["api_key"] = this.configuration.apiKey("api_key"); // api_key authentication
|
|
763
|
-
}
|
|
764
|
-
|
|
765
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
766
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // JWT authentication
|
|
767
|
-
}
|
|
768
|
-
|
|
769
|
-
const response = await this.request({
|
|
770
|
-
path: `/push_providers`,
|
|
771
|
-
method: 'GET',
|
|
772
|
-
headers: headerParameters,
|
|
773
|
-
query: queryParameters,
|
|
774
|
-
}, initOverrides);
|
|
775
|
-
|
|
776
|
-
return new runtime.JSONApiResponse(response);
|
|
777
|
-
}
|
|
778
|
-
|
|
779
|
-
/**
|
|
780
|
-
* List details of all push providers.
|
|
781
|
-
* List push providers
|
|
782
|
-
*/
|
|
783
|
-
async listPushProviders(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListPushProvidersResponse> {
|
|
784
|
-
const response = await this.listPushProvidersRaw(initOverrides);
|
|
785
|
-
return await response.value();
|
|
786
|
-
}
|
|
787
|
-
|
|
788
|
-
/**
|
|
789
|
-
* This method updates one or more application settings
|
|
790
|
-
* Update App Settings
|
|
791
|
-
*/
|
|
792
|
-
async updateAppRaw(requestParameters: UpdateAppOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Response>> {
|
|
793
|
-
if (requestParameters.updateAppRequest === null || requestParameters.updateAppRequest === undefined) {
|
|
794
|
-
throw new runtime.RequiredError('updateAppRequest','Required parameter requestParameters.updateAppRequest was null or undefined when calling updateApp.');
|
|
795
|
-
}
|
|
796
|
-
|
|
797
|
-
const queryParameters: any = {};
|
|
798
|
-
|
|
799
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
800
|
-
|
|
801
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
802
|
-
|
|
803
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
804
|
-
headerParameters["Stream-Auth-Type"] = this.configuration.apiKey("Stream-Auth-Type"); // stream-auth-type authentication
|
|
805
|
-
}
|
|
806
|
-
|
|
807
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
808
|
-
queryParameters["api_key"] = this.configuration.apiKey("api_key"); // api_key authentication
|
|
809
|
-
}
|
|
810
|
-
|
|
811
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
812
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // JWT authentication
|
|
813
|
-
}
|
|
814
|
-
|
|
815
|
-
const response = await this.request({
|
|
816
|
-
path: `/app`,
|
|
817
|
-
method: 'PATCH',
|
|
818
|
-
headers: headerParameters,
|
|
819
|
-
query: queryParameters,
|
|
820
|
-
body: requestParameters.updateAppRequest,
|
|
821
|
-
}, initOverrides);
|
|
822
|
-
|
|
823
|
-
return new runtime.JSONApiResponse(response);
|
|
824
|
-
}
|
|
825
|
-
|
|
826
|
-
/**
|
|
827
|
-
* This method updates one or more application settings
|
|
828
|
-
* Update App Settings
|
|
829
|
-
*/
|
|
830
|
-
async updateApp(requestParameters: UpdateAppOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Response> {
|
|
831
|
-
const response = await this.updateAppRaw(requestParameters, initOverrides);
|
|
832
|
-
return await response.value();
|
|
833
|
-
}
|
|
834
|
-
|
|
835
|
-
/**
|
|
836
|
-
* Updates contents of the block list
|
|
837
|
-
* Update block list
|
|
838
|
-
*/
|
|
839
|
-
async updateBlockListRaw(requestParameters: UpdateBlockListOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Response>> {
|
|
840
|
-
if (requestParameters.name === null || requestParameters.name === undefined) {
|
|
841
|
-
throw new runtime.RequiredError('name','Required parameter requestParameters.name was null or undefined when calling updateBlockList.');
|
|
842
|
-
}
|
|
843
|
-
|
|
844
|
-
if (requestParameters.updateBlockListRequest === null || requestParameters.updateBlockListRequest === undefined) {
|
|
845
|
-
throw new runtime.RequiredError('updateBlockListRequest','Required parameter requestParameters.updateBlockListRequest was null or undefined when calling updateBlockList.');
|
|
846
|
-
}
|
|
847
|
-
|
|
848
|
-
const queryParameters: any = {};
|
|
849
|
-
|
|
850
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
851
|
-
|
|
852
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
853
|
-
|
|
854
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
855
|
-
headerParameters["Stream-Auth-Type"] = this.configuration.apiKey("Stream-Auth-Type"); // stream-auth-type authentication
|
|
856
|
-
}
|
|
857
|
-
|
|
858
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
859
|
-
queryParameters["api_key"] = this.configuration.apiKey("api_key"); // api_key authentication
|
|
860
|
-
}
|
|
861
|
-
|
|
862
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
863
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // JWT authentication
|
|
864
|
-
}
|
|
865
|
-
|
|
866
|
-
const response = await this.request({
|
|
867
|
-
path: `/blocklists/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(requestParameters.name))),
|
|
868
|
-
method: 'PUT',
|
|
869
|
-
headers: headerParameters,
|
|
870
|
-
query: queryParameters,
|
|
871
|
-
body: requestParameters.updateBlockListRequest,
|
|
872
|
-
}, initOverrides);
|
|
873
|
-
|
|
874
|
-
return new runtime.JSONApiResponse(response);
|
|
875
|
-
}
|
|
876
|
-
|
|
877
|
-
/**
|
|
878
|
-
* Updates contents of the block list
|
|
879
|
-
* Update block list
|
|
880
|
-
*/
|
|
881
|
-
async updateBlockList(requestParameters: UpdateBlockListOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Response> {
|
|
882
|
-
const response = await this.updateBlockListRaw(requestParameters, initOverrides);
|
|
883
|
-
return await response.value();
|
|
884
|
-
}
|
|
885
|
-
|
|
886
|
-
/**
|
|
887
|
-
* Updates channel type
|
|
888
|
-
* Update channel type
|
|
889
|
-
*/
|
|
890
|
-
async updateChannelTypeRaw(requestParameters: UpdateChannelTypeOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UpdateChannelTypeResponse>> {
|
|
891
|
-
if (requestParameters.name === null || requestParameters.name === undefined) {
|
|
892
|
-
throw new runtime.RequiredError('name','Required parameter requestParameters.name was null or undefined when calling updateChannelType.');
|
|
893
|
-
}
|
|
894
|
-
|
|
895
|
-
if (requestParameters.updateChannelTypeRequest === null || requestParameters.updateChannelTypeRequest === undefined) {
|
|
896
|
-
throw new runtime.RequiredError('updateChannelTypeRequest','Required parameter requestParameters.updateChannelTypeRequest was null or undefined when calling updateChannelType.');
|
|
897
|
-
}
|
|
898
|
-
|
|
899
|
-
const queryParameters: any = {};
|
|
900
|
-
|
|
901
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
902
|
-
|
|
903
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
904
|
-
|
|
905
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
906
|
-
headerParameters["Stream-Auth-Type"] = this.configuration.apiKey("Stream-Auth-Type"); // stream-auth-type authentication
|
|
907
|
-
}
|
|
908
|
-
|
|
909
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
910
|
-
queryParameters["api_key"] = this.configuration.apiKey("api_key"); // api_key authentication
|
|
911
|
-
}
|
|
912
|
-
|
|
913
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
914
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // JWT authentication
|
|
915
|
-
}
|
|
916
|
-
|
|
917
|
-
const response = await this.request({
|
|
918
|
-
path: `/channeltypes/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(requestParameters.name))),
|
|
919
|
-
method: 'PUT',
|
|
920
|
-
headers: headerParameters,
|
|
921
|
-
query: queryParameters,
|
|
922
|
-
body: requestParameters.updateChannelTypeRequest,
|
|
923
|
-
}, initOverrides);
|
|
924
|
-
|
|
925
|
-
return new runtime.JSONApiResponse(response);
|
|
926
|
-
}
|
|
927
|
-
|
|
928
|
-
/**
|
|
929
|
-
* Updates channel type
|
|
930
|
-
* Update channel type
|
|
931
|
-
*/
|
|
932
|
-
async updateChannelType(requestParameters: UpdateChannelTypeOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UpdateChannelTypeResponse> {
|
|
933
|
-
const response = await this.updateChannelTypeRaw(requestParameters, initOverrides);
|
|
934
|
-
return await response.value();
|
|
935
|
-
}
|
|
936
|
-
|
|
937
|
-
}
|
|
938
|
-
|
|
939
|
-
/**
|
|
940
|
-
* @export
|
|
941
|
-
*/
|
|
942
|
-
export const DeletePushProviderTypeEnum = {
|
|
943
|
-
APN: 'apn',
|
|
944
|
-
FIREBASE: 'firebase',
|
|
945
|
-
HUAWEI: 'huawei',
|
|
946
|
-
XIAOMI: 'xiaomi'
|
|
947
|
-
} as const;
|
|
948
|
-
export type DeletePushProviderTypeEnum = typeof DeletePushProviderTypeEnum[keyof typeof DeletePushProviderTypeEnum];
|