@closerplatform/spinner-openapi 0.12.593 → 0.12.595
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 +63 -12
- package/dist/api.js +100 -25
- package/package.json +1 -1
package/dist/api.d.ts
CHANGED
|
@@ -3373,6 +3373,12 @@ export interface KnowledgeBase {
|
|
|
3373
3373
|
* @memberof KnowledgeBase
|
|
3374
3374
|
*/
|
|
3375
3375
|
name: string;
|
|
3376
|
+
/**
|
|
3377
|
+
*
|
|
3378
|
+
* @type {string}
|
|
3379
|
+
* @memberof KnowledgeBase
|
|
3380
|
+
*/
|
|
3381
|
+
description?: string;
|
|
3376
3382
|
/**
|
|
3377
3383
|
*
|
|
3378
3384
|
* @type {string}
|
|
@@ -3391,6 +3397,12 @@ export interface KnowledgeBase {
|
|
|
3391
3397
|
* @memberof KnowledgeBase
|
|
3392
3398
|
*/
|
|
3393
3399
|
updatedAt: number;
|
|
3400
|
+
/**
|
|
3401
|
+
*
|
|
3402
|
+
* @type {number}
|
|
3403
|
+
* @memberof KnowledgeBase
|
|
3404
|
+
*/
|
|
3405
|
+
filesCount: number;
|
|
3394
3406
|
}
|
|
3395
3407
|
/**
|
|
3396
3408
|
*
|
|
@@ -3404,6 +3416,12 @@ export interface KnowledgeBaseCreateForm {
|
|
|
3404
3416
|
* @memberof KnowledgeBaseCreateForm
|
|
3405
3417
|
*/
|
|
3406
3418
|
name: string;
|
|
3419
|
+
/**
|
|
3420
|
+
*
|
|
3421
|
+
* @type {string}
|
|
3422
|
+
* @memberof KnowledgeBaseCreateForm
|
|
3423
|
+
*/
|
|
3424
|
+
description?: string;
|
|
3407
3425
|
}
|
|
3408
3426
|
/**
|
|
3409
3427
|
*
|
|
@@ -9360,19 +9378,19 @@ export declare const KnowledgeBasesApiFetchParamCreator: (configuration?: Config
|
|
|
9360
9378
|
/**
|
|
9361
9379
|
*
|
|
9362
9380
|
* @summary Create knowledge base
|
|
9381
|
+
* @param {KnowledgeBaseCreateForm} body
|
|
9363
9382
|
* @param {*} [options] Override http request option.
|
|
9364
9383
|
* @throws {RequiredError}
|
|
9365
9384
|
*/
|
|
9366
|
-
create(options?: any): FetchArgs;
|
|
9385
|
+
create(body: KnowledgeBaseCreateForm, options?: any): FetchArgs;
|
|
9367
9386
|
/**
|
|
9368
9387
|
*
|
|
9369
9388
|
* @summary Create knowledge base's file
|
|
9370
|
-
* @param {KnowledgeBaseCreateForm} body
|
|
9371
9389
|
* @param {string} id
|
|
9372
9390
|
* @param {*} [options] Override http request option.
|
|
9373
9391
|
* @throws {RequiredError}
|
|
9374
9392
|
*/
|
|
9375
|
-
createFile(
|
|
9393
|
+
createFile(id: string, options?: any): FetchArgs;
|
|
9376
9394
|
/**
|
|
9377
9395
|
*
|
|
9378
9396
|
* @summary Delete knowledge base's file
|
|
@@ -9397,6 +9415,14 @@ export declare const KnowledgeBasesApiFetchParamCreator: (configuration?: Config
|
|
|
9397
9415
|
* @throws {RequiredError}
|
|
9398
9416
|
*/
|
|
9399
9417
|
getUploadedFiles(id: string, options?: any): FetchArgs;
|
|
9418
|
+
/**
|
|
9419
|
+
*
|
|
9420
|
+
* @summary Update knowledge base
|
|
9421
|
+
* @param {string} id
|
|
9422
|
+
* @param {*} [options] Override http request option.
|
|
9423
|
+
* @throws {RequiredError}
|
|
9424
|
+
*/
|
|
9425
|
+
update(id: string, options?: any): FetchArgs;
|
|
9400
9426
|
};
|
|
9401
9427
|
/**
|
|
9402
9428
|
* KnowledgeBasesApi - functional programming interface
|
|
@@ -9406,19 +9432,19 @@ export declare const KnowledgeBasesApiFp: (configuration?: Configuration) => {
|
|
|
9406
9432
|
/**
|
|
9407
9433
|
*
|
|
9408
9434
|
* @summary Create knowledge base
|
|
9435
|
+
* @param {KnowledgeBaseCreateForm} body
|
|
9409
9436
|
* @param {*} [options] Override http request option.
|
|
9410
9437
|
* @throws {RequiredError}
|
|
9411
9438
|
*/
|
|
9412
|
-
create(options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<KnowledgeBase>;
|
|
9439
|
+
create(body: KnowledgeBaseCreateForm, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<KnowledgeBase>;
|
|
9413
9440
|
/**
|
|
9414
9441
|
*
|
|
9415
9442
|
* @summary Create knowledge base's file
|
|
9416
|
-
* @param {KnowledgeBaseCreateForm} body
|
|
9417
9443
|
* @param {string} id
|
|
9418
9444
|
* @param {*} [options] Override http request option.
|
|
9419
9445
|
* @throws {RequiredError}
|
|
9420
9446
|
*/
|
|
9421
|
-
createFile(
|
|
9447
|
+
createFile(id: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<FileHandle>;
|
|
9422
9448
|
/**
|
|
9423
9449
|
*
|
|
9424
9450
|
* @summary Delete knowledge base's file
|
|
@@ -9443,6 +9469,14 @@ export declare const KnowledgeBasesApiFp: (configuration?: Configuration) => {
|
|
|
9443
9469
|
* @throws {RequiredError}
|
|
9444
9470
|
*/
|
|
9445
9471
|
getUploadedFiles(id: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<Array<FileDto>>;
|
|
9472
|
+
/**
|
|
9473
|
+
*
|
|
9474
|
+
* @summary Update knowledge base
|
|
9475
|
+
* @param {string} id
|
|
9476
|
+
* @param {*} [options] Override http request option.
|
|
9477
|
+
* @throws {RequiredError}
|
|
9478
|
+
*/
|
|
9479
|
+
update(id: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<Response>;
|
|
9446
9480
|
};
|
|
9447
9481
|
/**
|
|
9448
9482
|
* KnowledgeBasesApi - factory interface
|
|
@@ -9452,19 +9486,19 @@ export declare const KnowledgeBasesApiFactory: (configuration?: Configuration, f
|
|
|
9452
9486
|
/**
|
|
9453
9487
|
*
|
|
9454
9488
|
* @summary Create knowledge base
|
|
9489
|
+
* @param {KnowledgeBaseCreateForm} body
|
|
9455
9490
|
* @param {*} [options] Override http request option.
|
|
9456
9491
|
* @throws {RequiredError}
|
|
9457
9492
|
*/
|
|
9458
|
-
create(options?: any): Promise<KnowledgeBase>;
|
|
9493
|
+
create(body: KnowledgeBaseCreateForm, options?: any): Promise<KnowledgeBase>;
|
|
9459
9494
|
/**
|
|
9460
9495
|
*
|
|
9461
9496
|
* @summary Create knowledge base's file
|
|
9462
|
-
* @param {KnowledgeBaseCreateForm} body
|
|
9463
9497
|
* @param {string} id
|
|
9464
9498
|
* @param {*} [options] Override http request option.
|
|
9465
9499
|
* @throws {RequiredError}
|
|
9466
9500
|
*/
|
|
9467
|
-
createFile(
|
|
9501
|
+
createFile(id: string, options?: any): Promise<FileHandle>;
|
|
9468
9502
|
/**
|
|
9469
9503
|
*
|
|
9470
9504
|
* @summary Delete knowledge base's file
|
|
@@ -9489,6 +9523,14 @@ export declare const KnowledgeBasesApiFactory: (configuration?: Configuration, f
|
|
|
9489
9523
|
* @throws {RequiredError}
|
|
9490
9524
|
*/
|
|
9491
9525
|
getUploadedFiles(id: string, options?: any): Promise<FileDto[]>;
|
|
9526
|
+
/**
|
|
9527
|
+
*
|
|
9528
|
+
* @summary Update knowledge base
|
|
9529
|
+
* @param {string} id
|
|
9530
|
+
* @param {*} [options] Override http request option.
|
|
9531
|
+
* @throws {RequiredError}
|
|
9532
|
+
*/
|
|
9533
|
+
update(id: string, options?: any): Promise<Response>;
|
|
9492
9534
|
};
|
|
9493
9535
|
/**
|
|
9494
9536
|
* KnowledgeBasesApi - object-oriented interface
|
|
@@ -9500,21 +9542,21 @@ export declare class KnowledgeBasesApi extends BaseAPI {
|
|
|
9500
9542
|
/**
|
|
9501
9543
|
*
|
|
9502
9544
|
* @summary Create knowledge base
|
|
9545
|
+
* @param {KnowledgeBaseCreateForm} body
|
|
9503
9546
|
* @param {*} [options] Override http request option.
|
|
9504
9547
|
* @throws {RequiredError}
|
|
9505
9548
|
* @memberof KnowledgeBasesApi
|
|
9506
9549
|
*/
|
|
9507
|
-
create(options?: any): Promise<KnowledgeBase>;
|
|
9550
|
+
create(body: KnowledgeBaseCreateForm, options?: any): Promise<KnowledgeBase>;
|
|
9508
9551
|
/**
|
|
9509
9552
|
*
|
|
9510
9553
|
* @summary Create knowledge base's file
|
|
9511
|
-
* @param {KnowledgeBaseCreateForm} body
|
|
9512
9554
|
* @param {string} id
|
|
9513
9555
|
* @param {*} [options] Override http request option.
|
|
9514
9556
|
* @throws {RequiredError}
|
|
9515
9557
|
* @memberof KnowledgeBasesApi
|
|
9516
9558
|
*/
|
|
9517
|
-
createFile(
|
|
9559
|
+
createFile(id: string, options?: any): Promise<FileHandle>;
|
|
9518
9560
|
/**
|
|
9519
9561
|
*
|
|
9520
9562
|
* @summary Delete knowledge base's file
|
|
@@ -9542,6 +9584,15 @@ export declare class KnowledgeBasesApi extends BaseAPI {
|
|
|
9542
9584
|
* @memberof KnowledgeBasesApi
|
|
9543
9585
|
*/
|
|
9544
9586
|
getUploadedFiles(id: string, options?: any): Promise<FileDto[]>;
|
|
9587
|
+
/**
|
|
9588
|
+
*
|
|
9589
|
+
* @summary Update knowledge base
|
|
9590
|
+
* @param {string} id
|
|
9591
|
+
* @param {*} [options] Override http request option.
|
|
9592
|
+
* @throws {RequiredError}
|
|
9593
|
+
* @memberof KnowledgeBasesApi
|
|
9594
|
+
*/
|
|
9595
|
+
update(id: string, options?: any): Promise<Response>;
|
|
9545
9596
|
}
|
|
9546
9597
|
/**
|
|
9547
9598
|
* MainNotificationsApi - fetch parameter creator
|
package/dist/api.js
CHANGED
|
@@ -4959,10 +4959,15 @@ const KnowledgeBasesApiFetchParamCreator = function (configuration) {
|
|
|
4959
4959
|
/**
|
|
4960
4960
|
*
|
|
4961
4961
|
* @summary Create knowledge base
|
|
4962
|
+
* @param {KnowledgeBaseCreateForm} body
|
|
4962
4963
|
* @param {*} [options] Override http request option.
|
|
4963
4964
|
* @throws {RequiredError}
|
|
4964
4965
|
*/
|
|
4965
|
-
create(options = {}) {
|
|
4966
|
+
create(body, options = {}) {
|
|
4967
|
+
// verify required parameter 'body' is not null or undefined
|
|
4968
|
+
if (body === null || body === undefined) {
|
|
4969
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling create.');
|
|
4970
|
+
}
|
|
4966
4971
|
const localVarPath = `/knowledge-bases`;
|
|
4967
4972
|
const localVarUrlObj = url.parse(localVarPath, true);
|
|
4968
4973
|
const localVarRequestOptions = Object.assign({ method: 'POST' }, options);
|
|
@@ -4975,10 +4980,13 @@ const KnowledgeBasesApiFetchParamCreator = function (configuration) {
|
|
|
4975
4980
|
: configuration.apiKey;
|
|
4976
4981
|
localVarHeaderParameter["X-Api-Key"] = localVarApiKeyValue;
|
|
4977
4982
|
}
|
|
4983
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4978
4984
|
localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
|
|
4979
4985
|
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
4980
4986
|
delete localVarUrlObj.search;
|
|
4981
4987
|
localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
|
|
4988
|
+
const needsSerialization = ("KnowledgeBaseCreateForm" !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
|
|
4989
|
+
localVarRequestOptions.body = needsSerialization ? JSON.stringify(body || {}) : (body || "");
|
|
4982
4990
|
return {
|
|
4983
4991
|
url: url.format(localVarUrlObj),
|
|
4984
4992
|
options: localVarRequestOptions,
|
|
@@ -4987,16 +4995,11 @@ const KnowledgeBasesApiFetchParamCreator = function (configuration) {
|
|
|
4987
4995
|
/**
|
|
4988
4996
|
*
|
|
4989
4997
|
* @summary Create knowledge base's file
|
|
4990
|
-
* @param {KnowledgeBaseCreateForm} body
|
|
4991
4998
|
* @param {string} id
|
|
4992
4999
|
* @param {*} [options] Override http request option.
|
|
4993
5000
|
* @throws {RequiredError}
|
|
4994
5001
|
*/
|
|
4995
|
-
createFile(
|
|
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
|
-
}
|
|
5002
|
+
createFile(id, options = {}) {
|
|
5000
5003
|
// verify required parameter 'id' is not null or undefined
|
|
5001
5004
|
if (id === null || id === undefined) {
|
|
5002
5005
|
throw new RequiredError('id', 'Required parameter id was null or undefined when calling createFile.');
|
|
@@ -5014,13 +5017,10 @@ const KnowledgeBasesApiFetchParamCreator = function (configuration) {
|
|
|
5014
5017
|
: configuration.apiKey;
|
|
5015
5018
|
localVarHeaderParameter["X-Api-Key"] = localVarApiKeyValue;
|
|
5016
5019
|
}
|
|
5017
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
5018
5020
|
localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
|
|
5019
5021
|
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
5020
5022
|
delete localVarUrlObj.search;
|
|
5021
5023
|
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 || "");
|
|
5024
5024
|
return {
|
|
5025
5025
|
url: url.format(localVarUrlObj),
|
|
5026
5026
|
options: localVarRequestOptions,
|
|
@@ -5128,6 +5128,40 @@ const KnowledgeBasesApiFetchParamCreator = function (configuration) {
|
|
|
5128
5128
|
options: localVarRequestOptions,
|
|
5129
5129
|
};
|
|
5130
5130
|
},
|
|
5131
|
+
/**
|
|
5132
|
+
*
|
|
5133
|
+
* @summary Update knowledge base
|
|
5134
|
+
* @param {string} id
|
|
5135
|
+
* @param {*} [options] Override http request option.
|
|
5136
|
+
* @throws {RequiredError}
|
|
5137
|
+
*/
|
|
5138
|
+
update(id, options = {}) {
|
|
5139
|
+
// verify required parameter 'id' is not null or undefined
|
|
5140
|
+
if (id === null || id === undefined) {
|
|
5141
|
+
throw new RequiredError('id', 'Required parameter id was null or undefined when calling update.');
|
|
5142
|
+
}
|
|
5143
|
+
const localVarPath = `/knowledge-bases/{id}`
|
|
5144
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
5145
|
+
const localVarUrlObj = url.parse(localVarPath, true);
|
|
5146
|
+
const localVarRequestOptions = Object.assign({ method: 'PUT' }, options);
|
|
5147
|
+
const localVarHeaderParameter = {};
|
|
5148
|
+
const localVarQueryParameter = {};
|
|
5149
|
+
// authentication apiKey required
|
|
5150
|
+
if (configuration && configuration.apiKey) {
|
|
5151
|
+
const localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
5152
|
+
? configuration.apiKey("X-Api-Key")
|
|
5153
|
+
: configuration.apiKey;
|
|
5154
|
+
localVarHeaderParameter["X-Api-Key"] = localVarApiKeyValue;
|
|
5155
|
+
}
|
|
5156
|
+
localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
|
|
5157
|
+
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
5158
|
+
delete localVarUrlObj.search;
|
|
5159
|
+
localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
|
|
5160
|
+
return {
|
|
5161
|
+
url: url.format(localVarUrlObj),
|
|
5162
|
+
options: localVarRequestOptions,
|
|
5163
|
+
};
|
|
5164
|
+
},
|
|
5131
5165
|
};
|
|
5132
5166
|
};
|
|
5133
5167
|
exports.KnowledgeBasesApiFetchParamCreator = KnowledgeBasesApiFetchParamCreator;
|
|
@@ -5140,11 +5174,12 @@ const KnowledgeBasesApiFp = function (configuration) {
|
|
|
5140
5174
|
/**
|
|
5141
5175
|
*
|
|
5142
5176
|
* @summary Create knowledge base
|
|
5177
|
+
* @param {KnowledgeBaseCreateForm} body
|
|
5143
5178
|
* @param {*} [options] Override http request option.
|
|
5144
5179
|
* @throws {RequiredError}
|
|
5145
5180
|
*/
|
|
5146
|
-
create(options) {
|
|
5147
|
-
const localVarFetchArgs = (0, exports.KnowledgeBasesApiFetchParamCreator)(configuration).create(options);
|
|
5181
|
+
create(body, options) {
|
|
5182
|
+
const localVarFetchArgs = (0, exports.KnowledgeBasesApiFetchParamCreator)(configuration).create(body, options);
|
|
5148
5183
|
return (fetch = isomorphicFetch, basePath = BASE_PATH) => {
|
|
5149
5184
|
return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
|
|
5150
5185
|
if (response.status >= 200 && response.status < 300) {
|
|
@@ -5159,13 +5194,12 @@ const KnowledgeBasesApiFp = function (configuration) {
|
|
|
5159
5194
|
/**
|
|
5160
5195
|
*
|
|
5161
5196
|
* @summary Create knowledge base's file
|
|
5162
|
-
* @param {KnowledgeBaseCreateForm} body
|
|
5163
5197
|
* @param {string} id
|
|
5164
5198
|
* @param {*} [options] Override http request option.
|
|
5165
5199
|
* @throws {RequiredError}
|
|
5166
5200
|
*/
|
|
5167
|
-
createFile(
|
|
5168
|
-
const localVarFetchArgs = (0, exports.KnowledgeBasesApiFetchParamCreator)(configuration).createFile(
|
|
5201
|
+
createFile(id, options) {
|
|
5202
|
+
const localVarFetchArgs = (0, exports.KnowledgeBasesApiFetchParamCreator)(configuration).createFile(id, options);
|
|
5169
5203
|
return (fetch = isomorphicFetch, basePath = BASE_PATH) => {
|
|
5170
5204
|
return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
|
|
5171
5205
|
if (response.status >= 200 && response.status < 300) {
|
|
@@ -5237,6 +5271,26 @@ const KnowledgeBasesApiFp = function (configuration) {
|
|
|
5237
5271
|
});
|
|
5238
5272
|
};
|
|
5239
5273
|
},
|
|
5274
|
+
/**
|
|
5275
|
+
*
|
|
5276
|
+
* @summary Update knowledge base
|
|
5277
|
+
* @param {string} id
|
|
5278
|
+
* @param {*} [options] Override http request option.
|
|
5279
|
+
* @throws {RequiredError}
|
|
5280
|
+
*/
|
|
5281
|
+
update(id, options) {
|
|
5282
|
+
const localVarFetchArgs = (0, exports.KnowledgeBasesApiFetchParamCreator)(configuration).update(id, options);
|
|
5283
|
+
return (fetch = isomorphicFetch, basePath = BASE_PATH) => {
|
|
5284
|
+
return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
|
|
5285
|
+
if (response.status >= 200 && response.status < 300) {
|
|
5286
|
+
return response;
|
|
5287
|
+
}
|
|
5288
|
+
else {
|
|
5289
|
+
throw response;
|
|
5290
|
+
}
|
|
5291
|
+
});
|
|
5292
|
+
};
|
|
5293
|
+
},
|
|
5240
5294
|
};
|
|
5241
5295
|
};
|
|
5242
5296
|
exports.KnowledgeBasesApiFp = KnowledgeBasesApiFp;
|
|
@@ -5249,22 +5303,22 @@ const KnowledgeBasesApiFactory = function (configuration, fetch, basePath) {
|
|
|
5249
5303
|
/**
|
|
5250
5304
|
*
|
|
5251
5305
|
* @summary Create knowledge base
|
|
5306
|
+
* @param {KnowledgeBaseCreateForm} body
|
|
5252
5307
|
* @param {*} [options] Override http request option.
|
|
5253
5308
|
* @throws {RequiredError}
|
|
5254
5309
|
*/
|
|
5255
|
-
create(options) {
|
|
5256
|
-
return (0, exports.KnowledgeBasesApiFp)(configuration).create(options)(fetch, basePath);
|
|
5310
|
+
create(body, options) {
|
|
5311
|
+
return (0, exports.KnowledgeBasesApiFp)(configuration).create(body, options)(fetch, basePath);
|
|
5257
5312
|
},
|
|
5258
5313
|
/**
|
|
5259
5314
|
*
|
|
5260
5315
|
* @summary Create knowledge base's file
|
|
5261
|
-
* @param {KnowledgeBaseCreateForm} body
|
|
5262
5316
|
* @param {string} id
|
|
5263
5317
|
* @param {*} [options] Override http request option.
|
|
5264
5318
|
* @throws {RequiredError}
|
|
5265
5319
|
*/
|
|
5266
|
-
createFile(
|
|
5267
|
-
return (0, exports.KnowledgeBasesApiFp)(configuration).createFile(
|
|
5320
|
+
createFile(id, options) {
|
|
5321
|
+
return (0, exports.KnowledgeBasesApiFp)(configuration).createFile(id, options)(fetch, basePath);
|
|
5268
5322
|
},
|
|
5269
5323
|
/**
|
|
5270
5324
|
*
|
|
@@ -5296,6 +5350,16 @@ const KnowledgeBasesApiFactory = function (configuration, fetch, basePath) {
|
|
|
5296
5350
|
getUploadedFiles(id, options) {
|
|
5297
5351
|
return (0, exports.KnowledgeBasesApiFp)(configuration).getUploadedFiles(id, options)(fetch, basePath);
|
|
5298
5352
|
},
|
|
5353
|
+
/**
|
|
5354
|
+
*
|
|
5355
|
+
* @summary Update knowledge base
|
|
5356
|
+
* @param {string} id
|
|
5357
|
+
* @param {*} [options] Override http request option.
|
|
5358
|
+
* @throws {RequiredError}
|
|
5359
|
+
*/
|
|
5360
|
+
update(id, options) {
|
|
5361
|
+
return (0, exports.KnowledgeBasesApiFp)(configuration).update(id, options)(fetch, basePath);
|
|
5362
|
+
},
|
|
5299
5363
|
};
|
|
5300
5364
|
};
|
|
5301
5365
|
exports.KnowledgeBasesApiFactory = KnowledgeBasesApiFactory;
|
|
@@ -5309,24 +5373,24 @@ class KnowledgeBasesApi extends BaseAPI {
|
|
|
5309
5373
|
/**
|
|
5310
5374
|
*
|
|
5311
5375
|
* @summary Create knowledge base
|
|
5376
|
+
* @param {KnowledgeBaseCreateForm} body
|
|
5312
5377
|
* @param {*} [options] Override http request option.
|
|
5313
5378
|
* @throws {RequiredError}
|
|
5314
5379
|
* @memberof KnowledgeBasesApi
|
|
5315
5380
|
*/
|
|
5316
|
-
create(options) {
|
|
5317
|
-
return (0, exports.KnowledgeBasesApiFp)(this.configuration).create(options)(this.fetch, this.basePath);
|
|
5381
|
+
create(body, options) {
|
|
5382
|
+
return (0, exports.KnowledgeBasesApiFp)(this.configuration).create(body, options)(this.fetch, this.basePath);
|
|
5318
5383
|
}
|
|
5319
5384
|
/**
|
|
5320
5385
|
*
|
|
5321
5386
|
* @summary Create knowledge base's file
|
|
5322
|
-
* @param {KnowledgeBaseCreateForm} body
|
|
5323
5387
|
* @param {string} id
|
|
5324
5388
|
* @param {*} [options] Override http request option.
|
|
5325
5389
|
* @throws {RequiredError}
|
|
5326
5390
|
* @memberof KnowledgeBasesApi
|
|
5327
5391
|
*/
|
|
5328
|
-
createFile(
|
|
5329
|
-
return (0, exports.KnowledgeBasesApiFp)(this.configuration).createFile(
|
|
5392
|
+
createFile(id, options) {
|
|
5393
|
+
return (0, exports.KnowledgeBasesApiFp)(this.configuration).createFile(id, options)(this.fetch, this.basePath);
|
|
5330
5394
|
}
|
|
5331
5395
|
/**
|
|
5332
5396
|
*
|
|
@@ -5361,6 +5425,17 @@ class KnowledgeBasesApi extends BaseAPI {
|
|
|
5361
5425
|
getUploadedFiles(id, options) {
|
|
5362
5426
|
return (0, exports.KnowledgeBasesApiFp)(this.configuration).getUploadedFiles(id, options)(this.fetch, this.basePath);
|
|
5363
5427
|
}
|
|
5428
|
+
/**
|
|
5429
|
+
*
|
|
5430
|
+
* @summary Update knowledge base
|
|
5431
|
+
* @param {string} id
|
|
5432
|
+
* @param {*} [options] Override http request option.
|
|
5433
|
+
* @throws {RequiredError}
|
|
5434
|
+
* @memberof KnowledgeBasesApi
|
|
5435
|
+
*/
|
|
5436
|
+
update(id, options) {
|
|
5437
|
+
return (0, exports.KnowledgeBasesApiFp)(this.configuration).update(id, options)(this.fetch, this.basePath);
|
|
5438
|
+
}
|
|
5364
5439
|
}
|
|
5365
5440
|
exports.KnowledgeBasesApi = KnowledgeBasesApi;
|
|
5366
5441
|
/**
|