@closerplatform/spinner-openapi 0.12.591 → 0.12.593
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/api.d.ts +74 -5
- package/dist/api.js +95 -7
- package/package.json +1 -1
package/dist/api.d.ts
CHANGED
|
@@ -3367,6 +3367,12 @@ export interface KnowledgeBase {
|
|
|
3367
3367
|
* @memberof KnowledgeBase
|
|
3368
3368
|
*/
|
|
3369
3369
|
id: string;
|
|
3370
|
+
/**
|
|
3371
|
+
*
|
|
3372
|
+
* @type {string}
|
|
3373
|
+
* @memberof KnowledgeBase
|
|
3374
|
+
*/
|
|
3375
|
+
name: string;
|
|
3370
3376
|
/**
|
|
3371
3377
|
*
|
|
3372
3378
|
* @type {string}
|
|
@@ -3384,7 +3390,20 @@ export interface KnowledgeBase {
|
|
|
3384
3390
|
* @type {number}
|
|
3385
3391
|
* @memberof KnowledgeBase
|
|
3386
3392
|
*/
|
|
3387
|
-
updatedAt
|
|
3393
|
+
updatedAt: number;
|
|
3394
|
+
}
|
|
3395
|
+
/**
|
|
3396
|
+
*
|
|
3397
|
+
* @export
|
|
3398
|
+
* @interface KnowledgeBaseCreateForm
|
|
3399
|
+
*/
|
|
3400
|
+
export interface KnowledgeBaseCreateForm {
|
|
3401
|
+
/**
|
|
3402
|
+
*
|
|
3403
|
+
* @type {string}
|
|
3404
|
+
* @memberof KnowledgeBaseCreateForm
|
|
3405
|
+
*/
|
|
3406
|
+
name: string;
|
|
3388
3407
|
}
|
|
3389
3408
|
/**
|
|
3390
3409
|
*
|
|
@@ -6646,6 +6665,19 @@ export interface UpdateAgentGroupConfigurationForm {
|
|
|
6646
6665
|
*/
|
|
6647
6666
|
advisers: Array<string>;
|
|
6648
6667
|
}
|
|
6668
|
+
/**
|
|
6669
|
+
*
|
|
6670
|
+
* @export
|
|
6671
|
+
* @interface UpdateBotKnowledgeBaseForm
|
|
6672
|
+
*/
|
|
6673
|
+
export interface UpdateBotKnowledgeBaseForm {
|
|
6674
|
+
/**
|
|
6675
|
+
*
|
|
6676
|
+
* @type {string}
|
|
6677
|
+
* @memberof UpdateBotKnowledgeBaseForm
|
|
6678
|
+
*/
|
|
6679
|
+
knowledgeBaseId?: string;
|
|
6680
|
+
}
|
|
6649
6681
|
/**
|
|
6650
6682
|
*
|
|
6651
6683
|
* @export
|
|
@@ -8010,6 +8042,14 @@ export declare const BotsApiFetchParamCreator: (configuration?: Configuration) =
|
|
|
8010
8042
|
* @throws {RequiredError}
|
|
8011
8043
|
*/
|
|
8012
8044
|
updateBotPersonalData(body: BotPersonalDataForm, options?: any): FetchArgs;
|
|
8045
|
+
/**
|
|
8046
|
+
*
|
|
8047
|
+
* @summary Update bot's knowledge base
|
|
8048
|
+
* @param {UpdateBotKnowledgeBaseForm} body
|
|
8049
|
+
* @param {*} [options] Override http request option.
|
|
8050
|
+
* @throws {RequiredError}
|
|
8051
|
+
*/
|
|
8052
|
+
updateKnowledgeBase(body: UpdateBotKnowledgeBaseForm, options?: any): FetchArgs;
|
|
8013
8053
|
/**
|
|
8014
8054
|
*
|
|
8015
8055
|
* @summary update lekta config
|
|
@@ -8085,6 +8125,14 @@ export declare const BotsApiFp: (configuration?: Configuration) => {
|
|
|
8085
8125
|
* @throws {RequiredError}
|
|
8086
8126
|
*/
|
|
8087
8127
|
updateBotPersonalData(body: BotPersonalDataForm, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<Response>;
|
|
8128
|
+
/**
|
|
8129
|
+
*
|
|
8130
|
+
* @summary Update bot's knowledge base
|
|
8131
|
+
* @param {UpdateBotKnowledgeBaseForm} body
|
|
8132
|
+
* @param {*} [options] Override http request option.
|
|
8133
|
+
* @throws {RequiredError}
|
|
8134
|
+
*/
|
|
8135
|
+
updateKnowledgeBase(body: UpdateBotKnowledgeBaseForm, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<Response>;
|
|
8088
8136
|
/**
|
|
8089
8137
|
*
|
|
8090
8138
|
* @summary update lekta config
|
|
@@ -8160,6 +8208,14 @@ export declare const BotsApiFactory: (configuration?: Configuration, fetch?: Fet
|
|
|
8160
8208
|
* @throws {RequiredError}
|
|
8161
8209
|
*/
|
|
8162
8210
|
updateBotPersonalData(body: BotPersonalDataForm, options?: any): Promise<Response>;
|
|
8211
|
+
/**
|
|
8212
|
+
*
|
|
8213
|
+
* @summary Update bot's knowledge base
|
|
8214
|
+
* @param {UpdateBotKnowledgeBaseForm} body
|
|
8215
|
+
* @param {*} [options] Override http request option.
|
|
8216
|
+
* @throws {RequiredError}
|
|
8217
|
+
*/
|
|
8218
|
+
updateKnowledgeBase(body: UpdateBotKnowledgeBaseForm, options?: any): Promise<Response>;
|
|
8163
8219
|
/**
|
|
8164
8220
|
*
|
|
8165
8221
|
* @summary update lekta config
|
|
@@ -8245,6 +8301,15 @@ export declare class BotsApi extends BaseAPI {
|
|
|
8245
8301
|
* @memberof BotsApi
|
|
8246
8302
|
*/
|
|
8247
8303
|
updateBotPersonalData(body: BotPersonalDataForm, options?: any): Promise<Response>;
|
|
8304
|
+
/**
|
|
8305
|
+
*
|
|
8306
|
+
* @summary Update bot's knowledge base
|
|
8307
|
+
* @param {UpdateBotKnowledgeBaseForm} body
|
|
8308
|
+
* @param {*} [options] Override http request option.
|
|
8309
|
+
* @throws {RequiredError}
|
|
8310
|
+
* @memberof BotsApi
|
|
8311
|
+
*/
|
|
8312
|
+
updateKnowledgeBase(body: UpdateBotKnowledgeBaseForm, options?: any): Promise<Response>;
|
|
8248
8313
|
/**
|
|
8249
8314
|
*
|
|
8250
8315
|
* @summary update lekta config
|
|
@@ -9302,11 +9367,12 @@ export declare const KnowledgeBasesApiFetchParamCreator: (configuration?: Config
|
|
|
9302
9367
|
/**
|
|
9303
9368
|
*
|
|
9304
9369
|
* @summary Create knowledge base's file
|
|
9370
|
+
* @param {KnowledgeBaseCreateForm} body
|
|
9305
9371
|
* @param {string} id
|
|
9306
9372
|
* @param {*} [options] Override http request option.
|
|
9307
9373
|
* @throws {RequiredError}
|
|
9308
9374
|
*/
|
|
9309
|
-
createFile(id: string, options?: any): FetchArgs;
|
|
9375
|
+
createFile(body: KnowledgeBaseCreateForm, id: string, options?: any): FetchArgs;
|
|
9310
9376
|
/**
|
|
9311
9377
|
*
|
|
9312
9378
|
* @summary Delete knowledge base's file
|
|
@@ -9347,11 +9413,12 @@ export declare const KnowledgeBasesApiFp: (configuration?: Configuration) => {
|
|
|
9347
9413
|
/**
|
|
9348
9414
|
*
|
|
9349
9415
|
* @summary Create knowledge base's file
|
|
9416
|
+
* @param {KnowledgeBaseCreateForm} body
|
|
9350
9417
|
* @param {string} id
|
|
9351
9418
|
* @param {*} [options] Override http request option.
|
|
9352
9419
|
* @throws {RequiredError}
|
|
9353
9420
|
*/
|
|
9354
|
-
createFile(id: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<FileHandle>;
|
|
9421
|
+
createFile(body: KnowledgeBaseCreateForm, id: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<FileHandle>;
|
|
9355
9422
|
/**
|
|
9356
9423
|
*
|
|
9357
9424
|
* @summary Delete knowledge base's file
|
|
@@ -9392,11 +9459,12 @@ export declare const KnowledgeBasesApiFactory: (configuration?: Configuration, f
|
|
|
9392
9459
|
/**
|
|
9393
9460
|
*
|
|
9394
9461
|
* @summary Create knowledge base's file
|
|
9462
|
+
* @param {KnowledgeBaseCreateForm} body
|
|
9395
9463
|
* @param {string} id
|
|
9396
9464
|
* @param {*} [options] Override http request option.
|
|
9397
9465
|
* @throws {RequiredError}
|
|
9398
9466
|
*/
|
|
9399
|
-
createFile(id: string, options?: any): Promise<FileHandle>;
|
|
9467
|
+
createFile(body: KnowledgeBaseCreateForm, id: string, options?: any): Promise<FileHandle>;
|
|
9400
9468
|
/**
|
|
9401
9469
|
*
|
|
9402
9470
|
* @summary Delete knowledge base's file
|
|
@@ -9440,12 +9508,13 @@ export declare class KnowledgeBasesApi extends BaseAPI {
|
|
|
9440
9508
|
/**
|
|
9441
9509
|
*
|
|
9442
9510
|
* @summary Create knowledge base's file
|
|
9511
|
+
* @param {KnowledgeBaseCreateForm} body
|
|
9443
9512
|
* @param {string} id
|
|
9444
9513
|
* @param {*} [options] Override http request option.
|
|
9445
9514
|
* @throws {RequiredError}
|
|
9446
9515
|
* @memberof KnowledgeBasesApi
|
|
9447
9516
|
*/
|
|
9448
|
-
createFile(id: string, options?: any): Promise<FileHandle>;
|
|
9517
|
+
createFile(body: KnowledgeBaseCreateForm, id: string, options?: any): Promise<FileHandle>;
|
|
9449
9518
|
/**
|
|
9450
9519
|
*
|
|
9451
9520
|
* @summary Delete knowledge base's file
|
package/dist/api.js
CHANGED
|
@@ -2275,6 +2275,42 @@ const BotsApiFetchParamCreator = function (configuration) {
|
|
|
2275
2275
|
options: localVarRequestOptions,
|
|
2276
2276
|
};
|
|
2277
2277
|
},
|
|
2278
|
+
/**
|
|
2279
|
+
*
|
|
2280
|
+
* @summary Update bot's knowledge base
|
|
2281
|
+
* @param {UpdateBotKnowledgeBaseForm} body
|
|
2282
|
+
* @param {*} [options] Override http request option.
|
|
2283
|
+
* @throws {RequiredError}
|
|
2284
|
+
*/
|
|
2285
|
+
updateKnowledgeBase(body, options = {}) {
|
|
2286
|
+
// verify required parameter 'body' is not null or undefined
|
|
2287
|
+
if (body === null || body === undefined) {
|
|
2288
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling updateKnowledgeBase.');
|
|
2289
|
+
}
|
|
2290
|
+
const localVarPath = `/bots/knowledge-base`;
|
|
2291
|
+
const localVarUrlObj = url.parse(localVarPath, true);
|
|
2292
|
+
const localVarRequestOptions = Object.assign({ method: 'PUT' }, options);
|
|
2293
|
+
const localVarHeaderParameter = {};
|
|
2294
|
+
const localVarQueryParameter = {};
|
|
2295
|
+
// authentication apiKey required
|
|
2296
|
+
if (configuration && configuration.apiKey) {
|
|
2297
|
+
const localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
2298
|
+
? configuration.apiKey("X-Api-Key")
|
|
2299
|
+
: configuration.apiKey;
|
|
2300
|
+
localVarHeaderParameter["X-Api-Key"] = localVarApiKeyValue;
|
|
2301
|
+
}
|
|
2302
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2303
|
+
localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
|
|
2304
|
+
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
2305
|
+
delete localVarUrlObj.search;
|
|
2306
|
+
localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
|
|
2307
|
+
const needsSerialization = ("UpdateBotKnowledgeBaseForm" !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
|
|
2308
|
+
localVarRequestOptions.body = needsSerialization ? JSON.stringify(body || {}) : (body || "");
|
|
2309
|
+
return {
|
|
2310
|
+
url: url.format(localVarUrlObj),
|
|
2311
|
+
options: localVarRequestOptions,
|
|
2312
|
+
};
|
|
2313
|
+
},
|
|
2278
2314
|
/**
|
|
2279
2315
|
*
|
|
2280
2316
|
* @summary update lekta config
|
|
@@ -2477,6 +2513,26 @@ const BotsApiFp = function (configuration) {
|
|
|
2477
2513
|
});
|
|
2478
2514
|
};
|
|
2479
2515
|
},
|
|
2516
|
+
/**
|
|
2517
|
+
*
|
|
2518
|
+
* @summary Update bot's knowledge base
|
|
2519
|
+
* @param {UpdateBotKnowledgeBaseForm} body
|
|
2520
|
+
* @param {*} [options] Override http request option.
|
|
2521
|
+
* @throws {RequiredError}
|
|
2522
|
+
*/
|
|
2523
|
+
updateKnowledgeBase(body, options) {
|
|
2524
|
+
const localVarFetchArgs = (0, exports.BotsApiFetchParamCreator)(configuration).updateKnowledgeBase(body, options);
|
|
2525
|
+
return (fetch = isomorphicFetch, basePath = BASE_PATH) => {
|
|
2526
|
+
return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
|
|
2527
|
+
if (response.status >= 200 && response.status < 300) {
|
|
2528
|
+
return response;
|
|
2529
|
+
}
|
|
2530
|
+
else {
|
|
2531
|
+
throw response;
|
|
2532
|
+
}
|
|
2533
|
+
});
|
|
2534
|
+
};
|
|
2535
|
+
},
|
|
2480
2536
|
/**
|
|
2481
2537
|
*
|
|
2482
2538
|
* @summary update lekta config
|
|
@@ -2583,6 +2639,16 @@ const BotsApiFactory = function (configuration, fetch, basePath) {
|
|
|
2583
2639
|
updateBotPersonalData(body, options) {
|
|
2584
2640
|
return (0, exports.BotsApiFp)(configuration).updateBotPersonalData(body, options)(fetch, basePath);
|
|
2585
2641
|
},
|
|
2642
|
+
/**
|
|
2643
|
+
*
|
|
2644
|
+
* @summary Update bot's knowledge base
|
|
2645
|
+
* @param {UpdateBotKnowledgeBaseForm} body
|
|
2646
|
+
* @param {*} [options] Override http request option.
|
|
2647
|
+
* @throws {RequiredError}
|
|
2648
|
+
*/
|
|
2649
|
+
updateKnowledgeBase(body, options) {
|
|
2650
|
+
return (0, exports.BotsApiFp)(configuration).updateKnowledgeBase(body, options)(fetch, basePath);
|
|
2651
|
+
},
|
|
2586
2652
|
/**
|
|
2587
2653
|
*
|
|
2588
2654
|
* @summary update lekta config
|
|
@@ -2688,6 +2754,17 @@ class BotsApi extends BaseAPI {
|
|
|
2688
2754
|
updateBotPersonalData(body, options) {
|
|
2689
2755
|
return (0, exports.BotsApiFp)(this.configuration).updateBotPersonalData(body, options)(this.fetch, this.basePath);
|
|
2690
2756
|
}
|
|
2757
|
+
/**
|
|
2758
|
+
*
|
|
2759
|
+
* @summary Update bot's knowledge base
|
|
2760
|
+
* @param {UpdateBotKnowledgeBaseForm} body
|
|
2761
|
+
* @param {*} [options] Override http request option.
|
|
2762
|
+
* @throws {RequiredError}
|
|
2763
|
+
* @memberof BotsApi
|
|
2764
|
+
*/
|
|
2765
|
+
updateKnowledgeBase(body, options) {
|
|
2766
|
+
return (0, exports.BotsApiFp)(this.configuration).updateKnowledgeBase(body, options)(this.fetch, this.basePath);
|
|
2767
|
+
}
|
|
2691
2768
|
/**
|
|
2692
2769
|
*
|
|
2693
2770
|
* @summary update lekta config
|
|
@@ -4910,11 +4987,16 @@ const KnowledgeBasesApiFetchParamCreator = function (configuration) {
|
|
|
4910
4987
|
/**
|
|
4911
4988
|
*
|
|
4912
4989
|
* @summary Create knowledge base's file
|
|
4990
|
+
* @param {KnowledgeBaseCreateForm} body
|
|
4913
4991
|
* @param {string} id
|
|
4914
4992
|
* @param {*} [options] Override http request option.
|
|
4915
4993
|
* @throws {RequiredError}
|
|
4916
4994
|
*/
|
|
4917
|
-
createFile(id, options = {}) {
|
|
4995
|
+
createFile(body, id, options = {}) {
|
|
4996
|
+
// verify required parameter 'body' is not null or undefined
|
|
4997
|
+
if (body === null || body === undefined) {
|
|
4998
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling createFile.');
|
|
4999
|
+
}
|
|
4918
5000
|
// verify required parameter 'id' is not null or undefined
|
|
4919
5001
|
if (id === null || id === undefined) {
|
|
4920
5002
|
throw new RequiredError('id', 'Required parameter id was null or undefined when calling createFile.');
|
|
@@ -4932,10 +5014,13 @@ const KnowledgeBasesApiFetchParamCreator = function (configuration) {
|
|
|
4932
5014
|
: configuration.apiKey;
|
|
4933
5015
|
localVarHeaderParameter["X-Api-Key"] = localVarApiKeyValue;
|
|
4934
5016
|
}
|
|
5017
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4935
5018
|
localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
|
|
4936
5019
|
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
4937
5020
|
delete localVarUrlObj.search;
|
|
4938
5021
|
localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
|
|
5022
|
+
const needsSerialization = ("KnowledgeBaseCreateForm" !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
|
|
5023
|
+
localVarRequestOptions.body = needsSerialization ? JSON.stringify(body || {}) : (body || "");
|
|
4939
5024
|
return {
|
|
4940
5025
|
url: url.format(localVarUrlObj),
|
|
4941
5026
|
options: localVarRequestOptions,
|
|
@@ -5074,12 +5159,13 @@ const KnowledgeBasesApiFp = function (configuration) {
|
|
|
5074
5159
|
/**
|
|
5075
5160
|
*
|
|
5076
5161
|
* @summary Create knowledge base's file
|
|
5162
|
+
* @param {KnowledgeBaseCreateForm} body
|
|
5077
5163
|
* @param {string} id
|
|
5078
5164
|
* @param {*} [options] Override http request option.
|
|
5079
5165
|
* @throws {RequiredError}
|
|
5080
5166
|
*/
|
|
5081
|
-
createFile(id, options) {
|
|
5082
|
-
const localVarFetchArgs = (0, exports.KnowledgeBasesApiFetchParamCreator)(configuration).createFile(id, options);
|
|
5167
|
+
createFile(body, id, options) {
|
|
5168
|
+
const localVarFetchArgs = (0, exports.KnowledgeBasesApiFetchParamCreator)(configuration).createFile(body, id, options);
|
|
5083
5169
|
return (fetch = isomorphicFetch, basePath = BASE_PATH) => {
|
|
5084
5170
|
return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
|
|
5085
5171
|
if (response.status >= 200 && response.status < 300) {
|
|
@@ -5172,12 +5258,13 @@ const KnowledgeBasesApiFactory = function (configuration, fetch, basePath) {
|
|
|
5172
5258
|
/**
|
|
5173
5259
|
*
|
|
5174
5260
|
* @summary Create knowledge base's file
|
|
5261
|
+
* @param {KnowledgeBaseCreateForm} body
|
|
5175
5262
|
* @param {string} id
|
|
5176
5263
|
* @param {*} [options] Override http request option.
|
|
5177
5264
|
* @throws {RequiredError}
|
|
5178
5265
|
*/
|
|
5179
|
-
createFile(id, options) {
|
|
5180
|
-
return (0, exports.KnowledgeBasesApiFp)(configuration).createFile(id, options)(fetch, basePath);
|
|
5266
|
+
createFile(body, id, options) {
|
|
5267
|
+
return (0, exports.KnowledgeBasesApiFp)(configuration).createFile(body, id, options)(fetch, basePath);
|
|
5181
5268
|
},
|
|
5182
5269
|
/**
|
|
5183
5270
|
*
|
|
@@ -5232,13 +5319,14 @@ class KnowledgeBasesApi extends BaseAPI {
|
|
|
5232
5319
|
/**
|
|
5233
5320
|
*
|
|
5234
5321
|
* @summary Create knowledge base's file
|
|
5322
|
+
* @param {KnowledgeBaseCreateForm} body
|
|
5235
5323
|
* @param {string} id
|
|
5236
5324
|
* @param {*} [options] Override http request option.
|
|
5237
5325
|
* @throws {RequiredError}
|
|
5238
5326
|
* @memberof KnowledgeBasesApi
|
|
5239
5327
|
*/
|
|
5240
|
-
createFile(id, options) {
|
|
5241
|
-
return (0, exports.KnowledgeBasesApiFp)(this.configuration).createFile(id, options)(this.fetch, this.basePath);
|
|
5328
|
+
createFile(body, id, options) {
|
|
5329
|
+
return (0, exports.KnowledgeBasesApiFp)(this.configuration).createFile(body, id, options)(this.fetch, this.basePath);
|
|
5242
5330
|
}
|
|
5243
5331
|
/**
|
|
5244
5332
|
*
|