@platzio/sdk 0.6.0-beta.2 → 0.6.0-beta.3
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.d.mts +338 -1
- package/dist/index.d.ts +338 -1
- package/dist/index.js +283 -0
- package/dist/index.mjs +279 -0
- package/openapi.yaml +180 -0
- package/package.json +1 -1
- package/src/api.ts +532 -0
package/src/api.ts
CHANGED
|
@@ -23,6 +23,68 @@ import type { RequestArgs } from './base';
|
|
|
23
23
|
// @ts-ignore
|
|
24
24
|
import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError, operationServerMap } from './base';
|
|
25
25
|
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @export
|
|
29
|
+
* @interface AllBotTokens200Response
|
|
30
|
+
*/
|
|
31
|
+
export interface AllBotTokens200Response {
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {number}
|
|
35
|
+
* @memberof AllBotTokens200Response
|
|
36
|
+
*/
|
|
37
|
+
'page': number;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {number}
|
|
41
|
+
* @memberof AllBotTokens200Response
|
|
42
|
+
*/
|
|
43
|
+
'per_page': number;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {Array<AllBotTokens200ResponseItemsInner>}
|
|
47
|
+
* @memberof AllBotTokens200Response
|
|
48
|
+
*/
|
|
49
|
+
'items': Array<AllBotTokens200ResponseItemsInner>;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {number}
|
|
53
|
+
* @memberof AllBotTokens200Response
|
|
54
|
+
*/
|
|
55
|
+
'num_total': number;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
*
|
|
59
|
+
* @export
|
|
60
|
+
* @interface AllBotTokens200ResponseItemsInner
|
|
61
|
+
*/
|
|
62
|
+
export interface AllBotTokens200ResponseItemsInner {
|
|
63
|
+
/**
|
|
64
|
+
*
|
|
65
|
+
* @type {string}
|
|
66
|
+
* @memberof AllBotTokens200ResponseItemsInner
|
|
67
|
+
*/
|
|
68
|
+
'id': string;
|
|
69
|
+
/**
|
|
70
|
+
*
|
|
71
|
+
* @type {string}
|
|
72
|
+
* @memberof AllBotTokens200ResponseItemsInner
|
|
73
|
+
*/
|
|
74
|
+
'bot_id': string;
|
|
75
|
+
/**
|
|
76
|
+
*
|
|
77
|
+
* @type {string}
|
|
78
|
+
* @memberof AllBotTokens200ResponseItemsInner
|
|
79
|
+
*/
|
|
80
|
+
'created_at': string;
|
|
81
|
+
/**
|
|
82
|
+
*
|
|
83
|
+
* @type {string}
|
|
84
|
+
* @memberof AllBotTokens200ResponseItemsInner
|
|
85
|
+
*/
|
|
86
|
+
'created_by_user_id': string;
|
|
87
|
+
}
|
|
26
88
|
/**
|
|
27
89
|
*
|
|
28
90
|
* @export
|
|
@@ -1496,6 +1558,37 @@ export interface Bot {
|
|
|
1496
1558
|
*/
|
|
1497
1559
|
'display_name': string;
|
|
1498
1560
|
}
|
|
1561
|
+
/**
|
|
1562
|
+
*
|
|
1563
|
+
* @export
|
|
1564
|
+
* @interface BotToken
|
|
1565
|
+
*/
|
|
1566
|
+
export interface BotToken {
|
|
1567
|
+
/**
|
|
1568
|
+
*
|
|
1569
|
+
* @type {string}
|
|
1570
|
+
* @memberof BotToken
|
|
1571
|
+
*/
|
|
1572
|
+
'id': string;
|
|
1573
|
+
/**
|
|
1574
|
+
*
|
|
1575
|
+
* @type {string}
|
|
1576
|
+
* @memberof BotToken
|
|
1577
|
+
*/
|
|
1578
|
+
'bot_id': string;
|
|
1579
|
+
/**
|
|
1580
|
+
*
|
|
1581
|
+
* @type {string}
|
|
1582
|
+
* @memberof BotToken
|
|
1583
|
+
*/
|
|
1584
|
+
'created_at': string;
|
|
1585
|
+
/**
|
|
1586
|
+
*
|
|
1587
|
+
* @type {string}
|
|
1588
|
+
* @memberof BotToken
|
|
1589
|
+
*/
|
|
1590
|
+
'created_by_user_id': string;
|
|
1591
|
+
}
|
|
1499
1592
|
/**
|
|
1500
1593
|
*
|
|
1501
1594
|
* @export
|
|
@@ -2289,6 +2382,19 @@ export interface ChartMetadata {
|
|
|
2289
2382
|
*/
|
|
2290
2383
|
'git_provider'?: string | null;
|
|
2291
2384
|
}
|
|
2385
|
+
/**
|
|
2386
|
+
*
|
|
2387
|
+
* @export
|
|
2388
|
+
* @interface CreateBotToken
|
|
2389
|
+
*/
|
|
2390
|
+
export interface CreateBotToken {
|
|
2391
|
+
/**
|
|
2392
|
+
*
|
|
2393
|
+
* @type {string}
|
|
2394
|
+
* @memberof CreateBotToken
|
|
2395
|
+
*/
|
|
2396
|
+
'bot_id': string;
|
|
2397
|
+
}
|
|
2292
2398
|
/**
|
|
2293
2399
|
*
|
|
2294
2400
|
* @export
|
|
@@ -2327,6 +2433,19 @@ export interface CreateUserToken {
|
|
|
2327
2433
|
*/
|
|
2328
2434
|
'user_id': string | null;
|
|
2329
2435
|
}
|
|
2436
|
+
/**
|
|
2437
|
+
*
|
|
2438
|
+
* @export
|
|
2439
|
+
* @interface CreatedBotToken
|
|
2440
|
+
*/
|
|
2441
|
+
export interface CreatedBotToken {
|
|
2442
|
+
/**
|
|
2443
|
+
*
|
|
2444
|
+
* @type {string}
|
|
2445
|
+
* @memberof CreatedBotToken
|
|
2446
|
+
*/
|
|
2447
|
+
'created_token': string;
|
|
2448
|
+
}
|
|
2330
2449
|
/**
|
|
2331
2450
|
*
|
|
2332
2451
|
* @export
|
|
@@ -5061,6 +5180,419 @@ export class AuthenticationApi extends BaseAPI {
|
|
|
5061
5180
|
|
|
5062
5181
|
|
|
5063
5182
|
|
|
5183
|
+
/**
|
|
5184
|
+
* BotTokensApi - axios parameter creator
|
|
5185
|
+
* @export
|
|
5186
|
+
*/
|
|
5187
|
+
export const BotTokensApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
5188
|
+
return {
|
|
5189
|
+
/**
|
|
5190
|
+
*
|
|
5191
|
+
* @param {string | null} [botId]
|
|
5192
|
+
* @param {string | null} [createdByUserId]
|
|
5193
|
+
* @param {number | null} [page]
|
|
5194
|
+
* @param {number | null} [perPage]
|
|
5195
|
+
* @param {*} [options] Override http request option.
|
|
5196
|
+
* @throws {RequiredError}
|
|
5197
|
+
*/
|
|
5198
|
+
allBotTokens: async (botId?: string | null, createdByUserId?: string | null, page?: number | null, perPage?: number | null, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5199
|
+
const localVarPath = `/api/v2/bot-tokens`;
|
|
5200
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5201
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5202
|
+
let baseOptions;
|
|
5203
|
+
if (configuration) {
|
|
5204
|
+
baseOptions = configuration.baseOptions;
|
|
5205
|
+
}
|
|
5206
|
+
|
|
5207
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
5208
|
+
const localVarHeaderParameter = {} as any;
|
|
5209
|
+
const localVarQueryParameter = {} as any;
|
|
5210
|
+
|
|
5211
|
+
// authentication access_token required
|
|
5212
|
+
// http bearer authentication required
|
|
5213
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
5214
|
+
|
|
5215
|
+
if (botId !== undefined) {
|
|
5216
|
+
localVarQueryParameter['bot_id'] = botId;
|
|
5217
|
+
}
|
|
5218
|
+
|
|
5219
|
+
if (createdByUserId !== undefined) {
|
|
5220
|
+
localVarQueryParameter['created_by_user_id'] = createdByUserId;
|
|
5221
|
+
}
|
|
5222
|
+
|
|
5223
|
+
if (page !== undefined) {
|
|
5224
|
+
localVarQueryParameter['page'] = page;
|
|
5225
|
+
}
|
|
5226
|
+
|
|
5227
|
+
if (perPage !== undefined) {
|
|
5228
|
+
localVarQueryParameter['per_page'] = perPage;
|
|
5229
|
+
}
|
|
5230
|
+
|
|
5231
|
+
|
|
5232
|
+
|
|
5233
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5234
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5235
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
5236
|
+
|
|
5237
|
+
return {
|
|
5238
|
+
url: toPathString(localVarUrlObj),
|
|
5239
|
+
options: localVarRequestOptions,
|
|
5240
|
+
};
|
|
5241
|
+
},
|
|
5242
|
+
/**
|
|
5243
|
+
*
|
|
5244
|
+
* @param {CreateBotToken} createBotToken
|
|
5245
|
+
* @param {*} [options] Override http request option.
|
|
5246
|
+
* @throws {RequiredError}
|
|
5247
|
+
*/
|
|
5248
|
+
createBotToken: async (createBotToken: CreateBotToken, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5249
|
+
// verify required parameter 'createBotToken' is not null or undefined
|
|
5250
|
+
assertParamExists('createBotToken', 'createBotToken', createBotToken)
|
|
5251
|
+
const localVarPath = `/api/v2/bot-tokens`;
|
|
5252
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5253
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5254
|
+
let baseOptions;
|
|
5255
|
+
if (configuration) {
|
|
5256
|
+
baseOptions = configuration.baseOptions;
|
|
5257
|
+
}
|
|
5258
|
+
|
|
5259
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
5260
|
+
const localVarHeaderParameter = {} as any;
|
|
5261
|
+
const localVarQueryParameter = {} as any;
|
|
5262
|
+
|
|
5263
|
+
// authentication access_token required
|
|
5264
|
+
// http bearer authentication required
|
|
5265
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
5266
|
+
|
|
5267
|
+
|
|
5268
|
+
|
|
5269
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
5270
|
+
|
|
5271
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5272
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5273
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
5274
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createBotToken, localVarRequestOptions, configuration)
|
|
5275
|
+
|
|
5276
|
+
return {
|
|
5277
|
+
url: toPathString(localVarUrlObj),
|
|
5278
|
+
options: localVarRequestOptions,
|
|
5279
|
+
};
|
|
5280
|
+
},
|
|
5281
|
+
/**
|
|
5282
|
+
*
|
|
5283
|
+
* @param {string} id
|
|
5284
|
+
* @param {*} [options] Override http request option.
|
|
5285
|
+
* @throws {RequiredError}
|
|
5286
|
+
*/
|
|
5287
|
+
deleteBotToken: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5288
|
+
// verify required parameter 'id' is not null or undefined
|
|
5289
|
+
assertParamExists('deleteBotToken', 'id', id)
|
|
5290
|
+
const localVarPath = `/api/v2/bot-tokens/{id}`
|
|
5291
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
5292
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5293
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5294
|
+
let baseOptions;
|
|
5295
|
+
if (configuration) {
|
|
5296
|
+
baseOptions = configuration.baseOptions;
|
|
5297
|
+
}
|
|
5298
|
+
|
|
5299
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
5300
|
+
const localVarHeaderParameter = {} as any;
|
|
5301
|
+
const localVarQueryParameter = {} as any;
|
|
5302
|
+
|
|
5303
|
+
// authentication access_token required
|
|
5304
|
+
// http bearer authentication required
|
|
5305
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
5306
|
+
|
|
5307
|
+
|
|
5308
|
+
|
|
5309
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5310
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5311
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
5312
|
+
|
|
5313
|
+
return {
|
|
5314
|
+
url: toPathString(localVarUrlObj),
|
|
5315
|
+
options: localVarRequestOptions,
|
|
5316
|
+
};
|
|
5317
|
+
},
|
|
5318
|
+
/**
|
|
5319
|
+
*
|
|
5320
|
+
* @param {string} id
|
|
5321
|
+
* @param {*} [options] Override http request option.
|
|
5322
|
+
* @throws {RequiredError}
|
|
5323
|
+
*/
|
|
5324
|
+
getBotToken: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5325
|
+
// verify required parameter 'id' is not null or undefined
|
|
5326
|
+
assertParamExists('getBotToken', 'id', id)
|
|
5327
|
+
const localVarPath = `/api/v2/bot-tokens/{id}`
|
|
5328
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
5329
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5330
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5331
|
+
let baseOptions;
|
|
5332
|
+
if (configuration) {
|
|
5333
|
+
baseOptions = configuration.baseOptions;
|
|
5334
|
+
}
|
|
5335
|
+
|
|
5336
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
5337
|
+
const localVarHeaderParameter = {} as any;
|
|
5338
|
+
const localVarQueryParameter = {} as any;
|
|
5339
|
+
|
|
5340
|
+
// authentication access_token required
|
|
5341
|
+
// http bearer authentication required
|
|
5342
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
5343
|
+
|
|
5344
|
+
|
|
5345
|
+
|
|
5346
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5347
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5348
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
5349
|
+
|
|
5350
|
+
return {
|
|
5351
|
+
url: toPathString(localVarUrlObj),
|
|
5352
|
+
options: localVarRequestOptions,
|
|
5353
|
+
};
|
|
5354
|
+
},
|
|
5355
|
+
}
|
|
5356
|
+
};
|
|
5357
|
+
|
|
5358
|
+
/**
|
|
5359
|
+
* BotTokensApi - functional programming interface
|
|
5360
|
+
* @export
|
|
5361
|
+
*/
|
|
5362
|
+
export const BotTokensApiFp = function(configuration?: Configuration) {
|
|
5363
|
+
const localVarAxiosParamCreator = BotTokensApiAxiosParamCreator(configuration)
|
|
5364
|
+
return {
|
|
5365
|
+
/**
|
|
5366
|
+
*
|
|
5367
|
+
* @param {string | null} [botId]
|
|
5368
|
+
* @param {string | null} [createdByUserId]
|
|
5369
|
+
* @param {number | null} [page]
|
|
5370
|
+
* @param {number | null} [perPage]
|
|
5371
|
+
* @param {*} [options] Override http request option.
|
|
5372
|
+
* @throws {RequiredError}
|
|
5373
|
+
*/
|
|
5374
|
+
async allBotTokens(botId?: string | null, createdByUserId?: string | null, page?: number | null, perPage?: number | null, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AllBotTokens200Response>> {
|
|
5375
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.allBotTokens(botId, createdByUserId, page, perPage, options);
|
|
5376
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5377
|
+
const localVarOperationServerBasePath = operationServerMap['BotTokensApi.allBotTokens']?.[localVarOperationServerIndex]?.url;
|
|
5378
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5379
|
+
},
|
|
5380
|
+
/**
|
|
5381
|
+
*
|
|
5382
|
+
* @param {CreateBotToken} createBotToken
|
|
5383
|
+
* @param {*} [options] Override http request option.
|
|
5384
|
+
* @throws {RequiredError}
|
|
5385
|
+
*/
|
|
5386
|
+
async createBotToken(createBotToken: CreateBotToken, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatedBotToken>> {
|
|
5387
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createBotToken(createBotToken, options);
|
|
5388
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5389
|
+
const localVarOperationServerBasePath = operationServerMap['BotTokensApi.createBotToken']?.[localVarOperationServerIndex]?.url;
|
|
5390
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5391
|
+
},
|
|
5392
|
+
/**
|
|
5393
|
+
*
|
|
5394
|
+
* @param {string} id
|
|
5395
|
+
* @param {*} [options] Override http request option.
|
|
5396
|
+
* @throws {RequiredError}
|
|
5397
|
+
*/
|
|
5398
|
+
async deleteBotToken(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
5399
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteBotToken(id, options);
|
|
5400
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5401
|
+
const localVarOperationServerBasePath = operationServerMap['BotTokensApi.deleteBotToken']?.[localVarOperationServerIndex]?.url;
|
|
5402
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5403
|
+
},
|
|
5404
|
+
/**
|
|
5405
|
+
*
|
|
5406
|
+
* @param {string} id
|
|
5407
|
+
* @param {*} [options] Override http request option.
|
|
5408
|
+
* @throws {RequiredError}
|
|
5409
|
+
*/
|
|
5410
|
+
async getBotToken(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BotToken>> {
|
|
5411
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getBotToken(id, options);
|
|
5412
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5413
|
+
const localVarOperationServerBasePath = operationServerMap['BotTokensApi.getBotToken']?.[localVarOperationServerIndex]?.url;
|
|
5414
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5415
|
+
},
|
|
5416
|
+
}
|
|
5417
|
+
};
|
|
5418
|
+
|
|
5419
|
+
/**
|
|
5420
|
+
* BotTokensApi - factory interface
|
|
5421
|
+
* @export
|
|
5422
|
+
*/
|
|
5423
|
+
export const BotTokensApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
5424
|
+
const localVarFp = BotTokensApiFp(configuration)
|
|
5425
|
+
return {
|
|
5426
|
+
/**
|
|
5427
|
+
*
|
|
5428
|
+
* @param {BotTokensApiAllBotTokensRequest} requestParameters Request parameters.
|
|
5429
|
+
* @param {*} [options] Override http request option.
|
|
5430
|
+
* @throws {RequiredError}
|
|
5431
|
+
*/
|
|
5432
|
+
allBotTokens(requestParameters: BotTokensApiAllBotTokensRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<AllBotTokens200Response> {
|
|
5433
|
+
return localVarFp.allBotTokens(requestParameters.botId, requestParameters.createdByUserId, requestParameters.page, requestParameters.perPage, options).then((request) => request(axios, basePath));
|
|
5434
|
+
},
|
|
5435
|
+
/**
|
|
5436
|
+
*
|
|
5437
|
+
* @param {BotTokensApiCreateBotTokenRequest} requestParameters Request parameters.
|
|
5438
|
+
* @param {*} [options] Override http request option.
|
|
5439
|
+
* @throws {RequiredError}
|
|
5440
|
+
*/
|
|
5441
|
+
createBotToken(requestParameters: BotTokensApiCreateBotTokenRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreatedBotToken> {
|
|
5442
|
+
return localVarFp.createBotToken(requestParameters.createBotToken, options).then((request) => request(axios, basePath));
|
|
5443
|
+
},
|
|
5444
|
+
/**
|
|
5445
|
+
*
|
|
5446
|
+
* @param {BotTokensApiDeleteBotTokenRequest} requestParameters Request parameters.
|
|
5447
|
+
* @param {*} [options] Override http request option.
|
|
5448
|
+
* @throws {RequiredError}
|
|
5449
|
+
*/
|
|
5450
|
+
deleteBotToken(requestParameters: BotTokensApiDeleteBotTokenRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
5451
|
+
return localVarFp.deleteBotToken(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
5452
|
+
},
|
|
5453
|
+
/**
|
|
5454
|
+
*
|
|
5455
|
+
* @param {BotTokensApiGetBotTokenRequest} requestParameters Request parameters.
|
|
5456
|
+
* @param {*} [options] Override http request option.
|
|
5457
|
+
* @throws {RequiredError}
|
|
5458
|
+
*/
|
|
5459
|
+
getBotToken(requestParameters: BotTokensApiGetBotTokenRequest, options?: RawAxiosRequestConfig): AxiosPromise<BotToken> {
|
|
5460
|
+
return localVarFp.getBotToken(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
5461
|
+
},
|
|
5462
|
+
};
|
|
5463
|
+
};
|
|
5464
|
+
|
|
5465
|
+
/**
|
|
5466
|
+
* Request parameters for allBotTokens operation in BotTokensApi.
|
|
5467
|
+
* @export
|
|
5468
|
+
* @interface BotTokensApiAllBotTokensRequest
|
|
5469
|
+
*/
|
|
5470
|
+
export interface BotTokensApiAllBotTokensRequest {
|
|
5471
|
+
/**
|
|
5472
|
+
*
|
|
5473
|
+
* @type {string}
|
|
5474
|
+
* @memberof BotTokensApiAllBotTokens
|
|
5475
|
+
*/
|
|
5476
|
+
readonly botId?: string | null
|
|
5477
|
+
|
|
5478
|
+
/**
|
|
5479
|
+
*
|
|
5480
|
+
* @type {string}
|
|
5481
|
+
* @memberof BotTokensApiAllBotTokens
|
|
5482
|
+
*/
|
|
5483
|
+
readonly createdByUserId?: string | null
|
|
5484
|
+
|
|
5485
|
+
/**
|
|
5486
|
+
*
|
|
5487
|
+
* @type {number}
|
|
5488
|
+
* @memberof BotTokensApiAllBotTokens
|
|
5489
|
+
*/
|
|
5490
|
+
readonly page?: number | null
|
|
5491
|
+
|
|
5492
|
+
/**
|
|
5493
|
+
*
|
|
5494
|
+
* @type {number}
|
|
5495
|
+
* @memberof BotTokensApiAllBotTokens
|
|
5496
|
+
*/
|
|
5497
|
+
readonly perPage?: number | null
|
|
5498
|
+
}
|
|
5499
|
+
|
|
5500
|
+
/**
|
|
5501
|
+
* Request parameters for createBotToken operation in BotTokensApi.
|
|
5502
|
+
* @export
|
|
5503
|
+
* @interface BotTokensApiCreateBotTokenRequest
|
|
5504
|
+
*/
|
|
5505
|
+
export interface BotTokensApiCreateBotTokenRequest {
|
|
5506
|
+
/**
|
|
5507
|
+
*
|
|
5508
|
+
* @type {CreateBotToken}
|
|
5509
|
+
* @memberof BotTokensApiCreateBotToken
|
|
5510
|
+
*/
|
|
5511
|
+
readonly createBotToken: CreateBotToken
|
|
5512
|
+
}
|
|
5513
|
+
|
|
5514
|
+
/**
|
|
5515
|
+
* Request parameters for deleteBotToken operation in BotTokensApi.
|
|
5516
|
+
* @export
|
|
5517
|
+
* @interface BotTokensApiDeleteBotTokenRequest
|
|
5518
|
+
*/
|
|
5519
|
+
export interface BotTokensApiDeleteBotTokenRequest {
|
|
5520
|
+
/**
|
|
5521
|
+
*
|
|
5522
|
+
* @type {string}
|
|
5523
|
+
* @memberof BotTokensApiDeleteBotToken
|
|
5524
|
+
*/
|
|
5525
|
+
readonly id: string
|
|
5526
|
+
}
|
|
5527
|
+
|
|
5528
|
+
/**
|
|
5529
|
+
* Request parameters for getBotToken operation in BotTokensApi.
|
|
5530
|
+
* @export
|
|
5531
|
+
* @interface BotTokensApiGetBotTokenRequest
|
|
5532
|
+
*/
|
|
5533
|
+
export interface BotTokensApiGetBotTokenRequest {
|
|
5534
|
+
/**
|
|
5535
|
+
*
|
|
5536
|
+
* @type {string}
|
|
5537
|
+
* @memberof BotTokensApiGetBotToken
|
|
5538
|
+
*/
|
|
5539
|
+
readonly id: string
|
|
5540
|
+
}
|
|
5541
|
+
|
|
5542
|
+
/**
|
|
5543
|
+
* BotTokensApi - object-oriented interface
|
|
5544
|
+
* @export
|
|
5545
|
+
* @class BotTokensApi
|
|
5546
|
+
* @extends {BaseAPI}
|
|
5547
|
+
*/
|
|
5548
|
+
export class BotTokensApi extends BaseAPI {
|
|
5549
|
+
/**
|
|
5550
|
+
*
|
|
5551
|
+
* @param {BotTokensApiAllBotTokensRequest} requestParameters Request parameters.
|
|
5552
|
+
* @param {*} [options] Override http request option.
|
|
5553
|
+
* @throws {RequiredError}
|
|
5554
|
+
* @memberof BotTokensApi
|
|
5555
|
+
*/
|
|
5556
|
+
public allBotTokens(requestParameters: BotTokensApiAllBotTokensRequest = {}, options?: RawAxiosRequestConfig) {
|
|
5557
|
+
return BotTokensApiFp(this.configuration).allBotTokens(requestParameters.botId, requestParameters.createdByUserId, requestParameters.page, requestParameters.perPage, options).then((request) => request(this.axios, this.basePath));
|
|
5558
|
+
}
|
|
5559
|
+
|
|
5560
|
+
/**
|
|
5561
|
+
*
|
|
5562
|
+
* @param {BotTokensApiCreateBotTokenRequest} requestParameters Request parameters.
|
|
5563
|
+
* @param {*} [options] Override http request option.
|
|
5564
|
+
* @throws {RequiredError}
|
|
5565
|
+
* @memberof BotTokensApi
|
|
5566
|
+
*/
|
|
5567
|
+
public createBotToken(requestParameters: BotTokensApiCreateBotTokenRequest, options?: RawAxiosRequestConfig) {
|
|
5568
|
+
return BotTokensApiFp(this.configuration).createBotToken(requestParameters.createBotToken, options).then((request) => request(this.axios, this.basePath));
|
|
5569
|
+
}
|
|
5570
|
+
|
|
5571
|
+
/**
|
|
5572
|
+
*
|
|
5573
|
+
* @param {BotTokensApiDeleteBotTokenRequest} requestParameters Request parameters.
|
|
5574
|
+
* @param {*} [options] Override http request option.
|
|
5575
|
+
* @throws {RequiredError}
|
|
5576
|
+
* @memberof BotTokensApi
|
|
5577
|
+
*/
|
|
5578
|
+
public deleteBotToken(requestParameters: BotTokensApiDeleteBotTokenRequest, options?: RawAxiosRequestConfig) {
|
|
5579
|
+
return BotTokensApiFp(this.configuration).deleteBotToken(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
5580
|
+
}
|
|
5581
|
+
|
|
5582
|
+
/**
|
|
5583
|
+
*
|
|
5584
|
+
* @param {BotTokensApiGetBotTokenRequest} requestParameters Request parameters.
|
|
5585
|
+
* @param {*} [options] Override http request option.
|
|
5586
|
+
* @throws {RequiredError}
|
|
5587
|
+
* @memberof BotTokensApi
|
|
5588
|
+
*/
|
|
5589
|
+
public getBotToken(requestParameters: BotTokensApiGetBotTokenRequest, options?: RawAxiosRequestConfig) {
|
|
5590
|
+
return BotTokensApiFp(this.configuration).getBotToken(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
5591
|
+
}
|
|
5592
|
+
}
|
|
5593
|
+
|
|
5594
|
+
|
|
5595
|
+
|
|
5064
5596
|
/**
|
|
5065
5597
|
* BotsApi - axios parameter creator
|
|
5066
5598
|
* @export
|