@platzio/sdk 0.6.0-beta.1-1 → 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 +642 -8
- package/dist/index.d.ts +642 -8
- package/dist/index.js +508 -0
- package/dist/index.mjs +500 -0
- package/openapi.yaml +337 -0
- package/package.json +1 -1
- package/src/api.ts +998 -7
- package/version-override.txt +0 -1
package/src/api.ts
CHANGED
|
@@ -23,6 +23,124 @@ 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
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
*
|
|
90
|
+
* @export
|
|
91
|
+
* @interface AllBots200Response
|
|
92
|
+
*/
|
|
93
|
+
export interface AllBots200Response {
|
|
94
|
+
/**
|
|
95
|
+
*
|
|
96
|
+
* @type {number}
|
|
97
|
+
* @memberof AllBots200Response
|
|
98
|
+
*/
|
|
99
|
+
'page': number;
|
|
100
|
+
/**
|
|
101
|
+
*
|
|
102
|
+
* @type {number}
|
|
103
|
+
* @memberof AllBots200Response
|
|
104
|
+
*/
|
|
105
|
+
'per_page': number;
|
|
106
|
+
/**
|
|
107
|
+
*
|
|
108
|
+
* @type {Array<AllBots200ResponseItemsInner>}
|
|
109
|
+
* @memberof AllBots200Response
|
|
110
|
+
*/
|
|
111
|
+
'items': Array<AllBots200ResponseItemsInner>;
|
|
112
|
+
/**
|
|
113
|
+
*
|
|
114
|
+
* @type {number}
|
|
115
|
+
* @memberof AllBots200Response
|
|
116
|
+
*/
|
|
117
|
+
'num_total': number;
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
*
|
|
121
|
+
* @export
|
|
122
|
+
* @interface AllBots200ResponseItemsInner
|
|
123
|
+
*/
|
|
124
|
+
export interface AllBots200ResponseItemsInner {
|
|
125
|
+
/**
|
|
126
|
+
*
|
|
127
|
+
* @type {string}
|
|
128
|
+
* @memberof AllBots200ResponseItemsInner
|
|
129
|
+
*/
|
|
130
|
+
'id': string;
|
|
131
|
+
/**
|
|
132
|
+
*
|
|
133
|
+
* @type {string}
|
|
134
|
+
* @memberof AllBots200ResponseItemsInner
|
|
135
|
+
*/
|
|
136
|
+
'created_at': string;
|
|
137
|
+
/**
|
|
138
|
+
*
|
|
139
|
+
* @type {string}
|
|
140
|
+
* @memberof AllBots200ResponseItemsInner
|
|
141
|
+
*/
|
|
142
|
+
'display_name': string;
|
|
143
|
+
}
|
|
26
144
|
/**
|
|
27
145
|
*
|
|
28
146
|
* @export
|
|
@@ -1415,6 +1533,62 @@ export interface AllUsers200ResponseItemsInner {
|
|
|
1415
1533
|
*/
|
|
1416
1534
|
'is_active': boolean;
|
|
1417
1535
|
}
|
|
1536
|
+
/**
|
|
1537
|
+
*
|
|
1538
|
+
* @export
|
|
1539
|
+
* @interface Bot
|
|
1540
|
+
*/
|
|
1541
|
+
export interface Bot {
|
|
1542
|
+
/**
|
|
1543
|
+
*
|
|
1544
|
+
* @type {string}
|
|
1545
|
+
* @memberof Bot
|
|
1546
|
+
*/
|
|
1547
|
+
'id': string;
|
|
1548
|
+
/**
|
|
1549
|
+
*
|
|
1550
|
+
* @type {string}
|
|
1551
|
+
* @memberof Bot
|
|
1552
|
+
*/
|
|
1553
|
+
'created_at': string;
|
|
1554
|
+
/**
|
|
1555
|
+
*
|
|
1556
|
+
* @type {string}
|
|
1557
|
+
* @memberof Bot
|
|
1558
|
+
*/
|
|
1559
|
+
'display_name': string;
|
|
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
|
+
}
|
|
1418
1592
|
/**
|
|
1419
1593
|
*
|
|
1420
1594
|
* @export
|
|
@@ -2208,6 +2382,19 @@ export interface ChartMetadata {
|
|
|
2208
2382
|
*/
|
|
2209
2383
|
'git_provider'?: string | null;
|
|
2210
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
|
+
}
|
|
2211
2398
|
/**
|
|
2212
2399
|
*
|
|
2213
2400
|
* @export
|
|
@@ -2246,6 +2433,19 @@ export interface CreateUserToken {
|
|
|
2246
2433
|
*/
|
|
2247
2434
|
'user_id': string | null;
|
|
2248
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
|
+
}
|
|
2249
2449
|
/**
|
|
2250
2450
|
*
|
|
2251
2451
|
* @export
|
|
@@ -2321,6 +2521,7 @@ export type DbEventOperation = typeof DbEventOperation[keyof typeof DbEventOpera
|
|
|
2321
2521
|
*/
|
|
2322
2522
|
|
|
2323
2523
|
export const DbTable = {
|
|
2524
|
+
Bots: 'bots',
|
|
2324
2525
|
DeploymentKinds: 'deployment_kinds',
|
|
2325
2526
|
DeploymentResources: 'deployment_resources',
|
|
2326
2527
|
DeploymentResourceTypes: 'deployment_resource_types',
|
|
@@ -3654,7 +3855,7 @@ export interface K8sResource {
|
|
|
3654
3855
|
* @type MeResponse
|
|
3655
3856
|
* @export
|
|
3656
3857
|
*/
|
|
3657
|
-
export type MeResponse = MeResponseOneOf | MeResponseOneOf1;
|
|
3858
|
+
export type MeResponse = MeResponseOneOf | MeResponseOneOf1 | MeResponseOneOf2;
|
|
3658
3859
|
|
|
3659
3860
|
/**
|
|
3660
3861
|
*
|
|
@@ -3677,30 +3878,56 @@ export interface MeResponseOneOf {
|
|
|
3677
3878
|
export interface MeResponseOneOf1 {
|
|
3678
3879
|
/**
|
|
3679
3880
|
*
|
|
3680
|
-
* @type {
|
|
3881
|
+
* @type {Bot}
|
|
3681
3882
|
* @memberof MeResponseOneOf1
|
|
3682
3883
|
*/
|
|
3683
|
-
'
|
|
3884
|
+
'Bot': Bot;
|
|
3885
|
+
}
|
|
3886
|
+
/**
|
|
3887
|
+
*
|
|
3888
|
+
* @export
|
|
3889
|
+
* @interface MeResponseOneOf2
|
|
3890
|
+
*/
|
|
3891
|
+
export interface MeResponseOneOf2 {
|
|
3892
|
+
/**
|
|
3893
|
+
*
|
|
3894
|
+
* @type {MeResponseOneOf2Deployment}
|
|
3895
|
+
* @memberof MeResponseOneOf2
|
|
3896
|
+
*/
|
|
3897
|
+
'Deployment': MeResponseOneOf2Deployment;
|
|
3684
3898
|
}
|
|
3685
3899
|
/**
|
|
3686
3900
|
*
|
|
3687
3901
|
* @export
|
|
3688
|
-
* @interface
|
|
3902
|
+
* @interface MeResponseOneOf2Deployment
|
|
3689
3903
|
*/
|
|
3690
|
-
export interface
|
|
3904
|
+
export interface MeResponseOneOf2Deployment {
|
|
3691
3905
|
/**
|
|
3692
3906
|
*
|
|
3693
3907
|
* @type {string}
|
|
3694
|
-
* @memberof
|
|
3908
|
+
* @memberof MeResponseOneOf2Deployment
|
|
3695
3909
|
*/
|
|
3696
3910
|
'id': string;
|
|
3697
3911
|
/**
|
|
3698
3912
|
*
|
|
3699
3913
|
* @type {string}
|
|
3700
|
-
* @memberof
|
|
3914
|
+
* @memberof MeResponseOneOf2Deployment
|
|
3701
3915
|
*/
|
|
3702
3916
|
'name': string;
|
|
3703
3917
|
}
|
|
3918
|
+
/**
|
|
3919
|
+
*
|
|
3920
|
+
* @export
|
|
3921
|
+
* @interface NewBot
|
|
3922
|
+
*/
|
|
3923
|
+
export interface NewBot {
|
|
3924
|
+
/**
|
|
3925
|
+
*
|
|
3926
|
+
* @type {string}
|
|
3927
|
+
* @memberof NewBot
|
|
3928
|
+
*/
|
|
3929
|
+
'display_name': string;
|
|
3930
|
+
}
|
|
3704
3931
|
/**
|
|
3705
3932
|
*
|
|
3706
3933
|
* @export
|
|
@@ -4402,6 +4629,19 @@ export interface UiSchemaV1Beta1 {
|
|
|
4402
4629
|
}
|
|
4403
4630
|
|
|
4404
4631
|
|
|
4632
|
+
/**
|
|
4633
|
+
*
|
|
4634
|
+
* @export
|
|
4635
|
+
* @interface UpdateBot
|
|
4636
|
+
*/
|
|
4637
|
+
export interface UpdateBot {
|
|
4638
|
+
/**
|
|
4639
|
+
*
|
|
4640
|
+
* @type {string}
|
|
4641
|
+
* @memberof UpdateBot
|
|
4642
|
+
*/
|
|
4643
|
+
'display_name'?: string | null;
|
|
4644
|
+
}
|
|
4405
4645
|
/**
|
|
4406
4646
|
*
|
|
4407
4647
|
* @export
|
|
@@ -4940,6 +5180,757 @@ export class AuthenticationApi extends BaseAPI {
|
|
|
4940
5180
|
|
|
4941
5181
|
|
|
4942
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
|
+
|
|
5596
|
+
/**
|
|
5597
|
+
* BotsApi - axios parameter creator
|
|
5598
|
+
* @export
|
|
5599
|
+
*/
|
|
5600
|
+
export const BotsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
5601
|
+
return {
|
|
5602
|
+
/**
|
|
5603
|
+
*
|
|
5604
|
+
* @param {string | null} [displayName]
|
|
5605
|
+
* @param {number | null} [page]
|
|
5606
|
+
* @param {number | null} [perPage]
|
|
5607
|
+
* @param {*} [options] Override http request option.
|
|
5608
|
+
* @throws {RequiredError}
|
|
5609
|
+
*/
|
|
5610
|
+
allBots: async (displayName?: string | null, page?: number | null, perPage?: number | null, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5611
|
+
const localVarPath = `/api/v2/bots`;
|
|
5612
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5613
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5614
|
+
let baseOptions;
|
|
5615
|
+
if (configuration) {
|
|
5616
|
+
baseOptions = configuration.baseOptions;
|
|
5617
|
+
}
|
|
5618
|
+
|
|
5619
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
5620
|
+
const localVarHeaderParameter = {} as any;
|
|
5621
|
+
const localVarQueryParameter = {} as any;
|
|
5622
|
+
|
|
5623
|
+
// authentication access_token required
|
|
5624
|
+
// http bearer authentication required
|
|
5625
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
5626
|
+
|
|
5627
|
+
// authentication user_token required
|
|
5628
|
+
await setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration)
|
|
5629
|
+
|
|
5630
|
+
if (displayName !== undefined) {
|
|
5631
|
+
localVarQueryParameter['display_name'] = displayName;
|
|
5632
|
+
}
|
|
5633
|
+
|
|
5634
|
+
if (page !== undefined) {
|
|
5635
|
+
localVarQueryParameter['page'] = page;
|
|
5636
|
+
}
|
|
5637
|
+
|
|
5638
|
+
if (perPage !== undefined) {
|
|
5639
|
+
localVarQueryParameter['per_page'] = perPage;
|
|
5640
|
+
}
|
|
5641
|
+
|
|
5642
|
+
|
|
5643
|
+
|
|
5644
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5645
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5646
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
5647
|
+
|
|
5648
|
+
return {
|
|
5649
|
+
url: toPathString(localVarUrlObj),
|
|
5650
|
+
options: localVarRequestOptions,
|
|
5651
|
+
};
|
|
5652
|
+
},
|
|
5653
|
+
/**
|
|
5654
|
+
*
|
|
5655
|
+
* @param {string} id
|
|
5656
|
+
* @param {*} [options] Override http request option.
|
|
5657
|
+
* @throws {RequiredError}
|
|
5658
|
+
*/
|
|
5659
|
+
getBot: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5660
|
+
// verify required parameter 'id' is not null or undefined
|
|
5661
|
+
assertParamExists('getBot', 'id', id)
|
|
5662
|
+
const localVarPath = `/api/v2/bots/{id}`
|
|
5663
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
5664
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5665
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5666
|
+
let baseOptions;
|
|
5667
|
+
if (configuration) {
|
|
5668
|
+
baseOptions = configuration.baseOptions;
|
|
5669
|
+
}
|
|
5670
|
+
|
|
5671
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
5672
|
+
const localVarHeaderParameter = {} as any;
|
|
5673
|
+
const localVarQueryParameter = {} as any;
|
|
5674
|
+
|
|
5675
|
+
// authentication access_token required
|
|
5676
|
+
// http bearer authentication required
|
|
5677
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
5678
|
+
|
|
5679
|
+
// authentication user_token required
|
|
5680
|
+
await setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration)
|
|
5681
|
+
|
|
5682
|
+
|
|
5683
|
+
|
|
5684
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5685
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5686
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
5687
|
+
|
|
5688
|
+
return {
|
|
5689
|
+
url: toPathString(localVarUrlObj),
|
|
5690
|
+
options: localVarRequestOptions,
|
|
5691
|
+
};
|
|
5692
|
+
},
|
|
5693
|
+
/**
|
|
5694
|
+
*
|
|
5695
|
+
* @param {string} id
|
|
5696
|
+
* @param {UpdateBot} updateBot
|
|
5697
|
+
* @param {*} [options] Override http request option.
|
|
5698
|
+
* @throws {RequiredError}
|
|
5699
|
+
*/
|
|
5700
|
+
updateBot: async (id: string, updateBot: UpdateBot, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5701
|
+
// verify required parameter 'id' is not null or undefined
|
|
5702
|
+
assertParamExists('updateBot', 'id', id)
|
|
5703
|
+
// verify required parameter 'updateBot' is not null or undefined
|
|
5704
|
+
assertParamExists('updateBot', 'updateBot', updateBot)
|
|
5705
|
+
const localVarPath = `/api/v2/bots/{id}`
|
|
5706
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
5707
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5708
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5709
|
+
let baseOptions;
|
|
5710
|
+
if (configuration) {
|
|
5711
|
+
baseOptions = configuration.baseOptions;
|
|
5712
|
+
}
|
|
5713
|
+
|
|
5714
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
5715
|
+
const localVarHeaderParameter = {} as any;
|
|
5716
|
+
const localVarQueryParameter = {} as any;
|
|
5717
|
+
|
|
5718
|
+
// authentication access_token required
|
|
5719
|
+
// http bearer authentication required
|
|
5720
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
5721
|
+
|
|
5722
|
+
// authentication user_token required
|
|
5723
|
+
await setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration)
|
|
5724
|
+
|
|
5725
|
+
|
|
5726
|
+
|
|
5727
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
5728
|
+
|
|
5729
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5730
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5731
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
5732
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateBot, localVarRequestOptions, configuration)
|
|
5733
|
+
|
|
5734
|
+
return {
|
|
5735
|
+
url: toPathString(localVarUrlObj),
|
|
5736
|
+
options: localVarRequestOptions,
|
|
5737
|
+
};
|
|
5738
|
+
},
|
|
5739
|
+
}
|
|
5740
|
+
};
|
|
5741
|
+
|
|
5742
|
+
/**
|
|
5743
|
+
* BotsApi - functional programming interface
|
|
5744
|
+
* @export
|
|
5745
|
+
*/
|
|
5746
|
+
export const BotsApiFp = function(configuration?: Configuration) {
|
|
5747
|
+
const localVarAxiosParamCreator = BotsApiAxiosParamCreator(configuration)
|
|
5748
|
+
return {
|
|
5749
|
+
/**
|
|
5750
|
+
*
|
|
5751
|
+
* @param {string | null} [displayName]
|
|
5752
|
+
* @param {number | null} [page]
|
|
5753
|
+
* @param {number | null} [perPage]
|
|
5754
|
+
* @param {*} [options] Override http request option.
|
|
5755
|
+
* @throws {RequiredError}
|
|
5756
|
+
*/
|
|
5757
|
+
async allBots(displayName?: string | null, page?: number | null, perPage?: number | null, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AllBots200Response>> {
|
|
5758
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.allBots(displayName, page, perPage, options);
|
|
5759
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5760
|
+
const localVarOperationServerBasePath = operationServerMap['BotsApi.allBots']?.[localVarOperationServerIndex]?.url;
|
|
5761
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5762
|
+
},
|
|
5763
|
+
/**
|
|
5764
|
+
*
|
|
5765
|
+
* @param {string} id
|
|
5766
|
+
* @param {*} [options] Override http request option.
|
|
5767
|
+
* @throws {RequiredError}
|
|
5768
|
+
*/
|
|
5769
|
+
async getBot(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Bot>> {
|
|
5770
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getBot(id, options);
|
|
5771
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5772
|
+
const localVarOperationServerBasePath = operationServerMap['BotsApi.getBot']?.[localVarOperationServerIndex]?.url;
|
|
5773
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5774
|
+
},
|
|
5775
|
+
/**
|
|
5776
|
+
*
|
|
5777
|
+
* @param {string} id
|
|
5778
|
+
* @param {UpdateBot} updateBot
|
|
5779
|
+
* @param {*} [options] Override http request option.
|
|
5780
|
+
* @throws {RequiredError}
|
|
5781
|
+
*/
|
|
5782
|
+
async updateBot(id: string, updateBot: UpdateBot, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Bot>> {
|
|
5783
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateBot(id, updateBot, options);
|
|
5784
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5785
|
+
const localVarOperationServerBasePath = operationServerMap['BotsApi.updateBot']?.[localVarOperationServerIndex]?.url;
|
|
5786
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5787
|
+
},
|
|
5788
|
+
}
|
|
5789
|
+
};
|
|
5790
|
+
|
|
5791
|
+
/**
|
|
5792
|
+
* BotsApi - factory interface
|
|
5793
|
+
* @export
|
|
5794
|
+
*/
|
|
5795
|
+
export const BotsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
5796
|
+
const localVarFp = BotsApiFp(configuration)
|
|
5797
|
+
return {
|
|
5798
|
+
/**
|
|
5799
|
+
*
|
|
5800
|
+
* @param {BotsApiAllBotsRequest} requestParameters Request parameters.
|
|
5801
|
+
* @param {*} [options] Override http request option.
|
|
5802
|
+
* @throws {RequiredError}
|
|
5803
|
+
*/
|
|
5804
|
+
allBots(requestParameters: BotsApiAllBotsRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<AllBots200Response> {
|
|
5805
|
+
return localVarFp.allBots(requestParameters.displayName, requestParameters.page, requestParameters.perPage, options).then((request) => request(axios, basePath));
|
|
5806
|
+
},
|
|
5807
|
+
/**
|
|
5808
|
+
*
|
|
5809
|
+
* @param {BotsApiGetBotRequest} requestParameters Request parameters.
|
|
5810
|
+
* @param {*} [options] Override http request option.
|
|
5811
|
+
* @throws {RequiredError}
|
|
5812
|
+
*/
|
|
5813
|
+
getBot(requestParameters: BotsApiGetBotRequest, options?: RawAxiosRequestConfig): AxiosPromise<Bot> {
|
|
5814
|
+
return localVarFp.getBot(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
5815
|
+
},
|
|
5816
|
+
/**
|
|
5817
|
+
*
|
|
5818
|
+
* @param {BotsApiUpdateBotRequest} requestParameters Request parameters.
|
|
5819
|
+
* @param {*} [options] Override http request option.
|
|
5820
|
+
* @throws {RequiredError}
|
|
5821
|
+
*/
|
|
5822
|
+
updateBot(requestParameters: BotsApiUpdateBotRequest, options?: RawAxiosRequestConfig): AxiosPromise<Bot> {
|
|
5823
|
+
return localVarFp.updateBot(requestParameters.id, requestParameters.updateBot, options).then((request) => request(axios, basePath));
|
|
5824
|
+
},
|
|
5825
|
+
};
|
|
5826
|
+
};
|
|
5827
|
+
|
|
5828
|
+
/**
|
|
5829
|
+
* Request parameters for allBots operation in BotsApi.
|
|
5830
|
+
* @export
|
|
5831
|
+
* @interface BotsApiAllBotsRequest
|
|
5832
|
+
*/
|
|
5833
|
+
export interface BotsApiAllBotsRequest {
|
|
5834
|
+
/**
|
|
5835
|
+
*
|
|
5836
|
+
* @type {string}
|
|
5837
|
+
* @memberof BotsApiAllBots
|
|
5838
|
+
*/
|
|
5839
|
+
readonly displayName?: string | null
|
|
5840
|
+
|
|
5841
|
+
/**
|
|
5842
|
+
*
|
|
5843
|
+
* @type {number}
|
|
5844
|
+
* @memberof BotsApiAllBots
|
|
5845
|
+
*/
|
|
5846
|
+
readonly page?: number | null
|
|
5847
|
+
|
|
5848
|
+
/**
|
|
5849
|
+
*
|
|
5850
|
+
* @type {number}
|
|
5851
|
+
* @memberof BotsApiAllBots
|
|
5852
|
+
*/
|
|
5853
|
+
readonly perPage?: number | null
|
|
5854
|
+
}
|
|
5855
|
+
|
|
5856
|
+
/**
|
|
5857
|
+
* Request parameters for getBot operation in BotsApi.
|
|
5858
|
+
* @export
|
|
5859
|
+
* @interface BotsApiGetBotRequest
|
|
5860
|
+
*/
|
|
5861
|
+
export interface BotsApiGetBotRequest {
|
|
5862
|
+
/**
|
|
5863
|
+
*
|
|
5864
|
+
* @type {string}
|
|
5865
|
+
* @memberof BotsApiGetBot
|
|
5866
|
+
*/
|
|
5867
|
+
readonly id: string
|
|
5868
|
+
}
|
|
5869
|
+
|
|
5870
|
+
/**
|
|
5871
|
+
* Request parameters for updateBot operation in BotsApi.
|
|
5872
|
+
* @export
|
|
5873
|
+
* @interface BotsApiUpdateBotRequest
|
|
5874
|
+
*/
|
|
5875
|
+
export interface BotsApiUpdateBotRequest {
|
|
5876
|
+
/**
|
|
5877
|
+
*
|
|
5878
|
+
* @type {string}
|
|
5879
|
+
* @memberof BotsApiUpdateBot
|
|
5880
|
+
*/
|
|
5881
|
+
readonly id: string
|
|
5882
|
+
|
|
5883
|
+
/**
|
|
5884
|
+
*
|
|
5885
|
+
* @type {UpdateBot}
|
|
5886
|
+
* @memberof BotsApiUpdateBot
|
|
5887
|
+
*/
|
|
5888
|
+
readonly updateBot: UpdateBot
|
|
5889
|
+
}
|
|
5890
|
+
|
|
5891
|
+
/**
|
|
5892
|
+
* BotsApi - object-oriented interface
|
|
5893
|
+
* @export
|
|
5894
|
+
* @class BotsApi
|
|
5895
|
+
* @extends {BaseAPI}
|
|
5896
|
+
*/
|
|
5897
|
+
export class BotsApi extends BaseAPI {
|
|
5898
|
+
/**
|
|
5899
|
+
*
|
|
5900
|
+
* @param {BotsApiAllBotsRequest} requestParameters Request parameters.
|
|
5901
|
+
* @param {*} [options] Override http request option.
|
|
5902
|
+
* @throws {RequiredError}
|
|
5903
|
+
* @memberof BotsApi
|
|
5904
|
+
*/
|
|
5905
|
+
public allBots(requestParameters: BotsApiAllBotsRequest = {}, options?: RawAxiosRequestConfig) {
|
|
5906
|
+
return BotsApiFp(this.configuration).allBots(requestParameters.displayName, requestParameters.page, requestParameters.perPage, options).then((request) => request(this.axios, this.basePath));
|
|
5907
|
+
}
|
|
5908
|
+
|
|
5909
|
+
/**
|
|
5910
|
+
*
|
|
5911
|
+
* @param {BotsApiGetBotRequest} requestParameters Request parameters.
|
|
5912
|
+
* @param {*} [options] Override http request option.
|
|
5913
|
+
* @throws {RequiredError}
|
|
5914
|
+
* @memberof BotsApi
|
|
5915
|
+
*/
|
|
5916
|
+
public getBot(requestParameters: BotsApiGetBotRequest, options?: RawAxiosRequestConfig) {
|
|
5917
|
+
return BotsApiFp(this.configuration).getBot(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
5918
|
+
}
|
|
5919
|
+
|
|
5920
|
+
/**
|
|
5921
|
+
*
|
|
5922
|
+
* @param {BotsApiUpdateBotRequest} requestParameters Request parameters.
|
|
5923
|
+
* @param {*} [options] Override http request option.
|
|
5924
|
+
* @throws {RequiredError}
|
|
5925
|
+
* @memberof BotsApi
|
|
5926
|
+
*/
|
|
5927
|
+
public updateBot(requestParameters: BotsApiUpdateBotRequest, options?: RawAxiosRequestConfig) {
|
|
5928
|
+
return BotsApiFp(this.configuration).updateBot(requestParameters.id, requestParameters.updateBot, options).then((request) => request(this.axios, this.basePath));
|
|
5929
|
+
}
|
|
5930
|
+
}
|
|
5931
|
+
|
|
5932
|
+
|
|
5933
|
+
|
|
4943
5934
|
/**
|
|
4944
5935
|
* DeploymentKindsApi - axios parameter creator
|
|
4945
5936
|
* @export
|