@closerplatform/spinner-openapi 0.12.587 → 0.12.589
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 +228 -4
- package/dist/api.js +224 -8
- package/package.json +1 -1
package/dist/api.d.ts
CHANGED
|
@@ -2282,6 +2282,67 @@ export interface ExternalMessageForm {
|
|
|
2282
2282
|
*/
|
|
2283
2283
|
context?: any;
|
|
2284
2284
|
}
|
|
2285
|
+
/**
|
|
2286
|
+
*
|
|
2287
|
+
* @export
|
|
2288
|
+
* @interface FileDto
|
|
2289
|
+
*/
|
|
2290
|
+
export interface FileDto {
|
|
2291
|
+
/**
|
|
2292
|
+
*
|
|
2293
|
+
* @type {string}
|
|
2294
|
+
* @memberof FileDto
|
|
2295
|
+
*/
|
|
2296
|
+
id: string;
|
|
2297
|
+
/**
|
|
2298
|
+
*
|
|
2299
|
+
* @type {string}
|
|
2300
|
+
* @memberof FileDto
|
|
2301
|
+
*/
|
|
2302
|
+
creator: string;
|
|
2303
|
+
/**
|
|
2304
|
+
*
|
|
2305
|
+
* @type {string}
|
|
2306
|
+
* @memberof FileDto
|
|
2307
|
+
*/
|
|
2308
|
+
token: string;
|
|
2309
|
+
/**
|
|
2310
|
+
*
|
|
2311
|
+
* @type {string}
|
|
2312
|
+
* @memberof FileDto
|
|
2313
|
+
*/
|
|
2314
|
+
type: string;
|
|
2315
|
+
/**
|
|
2316
|
+
*
|
|
2317
|
+
* @type {string}
|
|
2318
|
+
* @memberof FileDto
|
|
2319
|
+
*/
|
|
2320
|
+
url: string;
|
|
2321
|
+
/**
|
|
2322
|
+
*
|
|
2323
|
+
* @type {string}
|
|
2324
|
+
* @memberof FileDto
|
|
2325
|
+
*/
|
|
2326
|
+
orgId?: string;
|
|
2327
|
+
/**
|
|
2328
|
+
*
|
|
2329
|
+
* @type {string}
|
|
2330
|
+
* @memberof FileDto
|
|
2331
|
+
*/
|
|
2332
|
+
roomId?: string;
|
|
2333
|
+
/**
|
|
2334
|
+
*
|
|
2335
|
+
* @type {string}
|
|
2336
|
+
* @memberof FileDto
|
|
2337
|
+
*/
|
|
2338
|
+
callback?: string;
|
|
2339
|
+
/**
|
|
2340
|
+
*
|
|
2341
|
+
* @type {FileInfo}
|
|
2342
|
+
* @memberof FileDto
|
|
2343
|
+
*/
|
|
2344
|
+
info?: FileInfo;
|
|
2345
|
+
}
|
|
2285
2346
|
/**
|
|
2286
2347
|
*
|
|
2287
2348
|
* @export
|
|
@@ -2301,6 +2362,43 @@ export interface FileHandle {
|
|
|
2301
2362
|
*/
|
|
2302
2363
|
fileId?: string;
|
|
2303
2364
|
}
|
|
2365
|
+
/**
|
|
2366
|
+
*
|
|
2367
|
+
* @export
|
|
2368
|
+
* @interface FileInfo
|
|
2369
|
+
*/
|
|
2370
|
+
export interface FileInfo {
|
|
2371
|
+
/**
|
|
2372
|
+
*
|
|
2373
|
+
* @type {string}
|
|
2374
|
+
* @memberof FileInfo
|
|
2375
|
+
*/
|
|
2376
|
+
name: string;
|
|
2377
|
+
/**
|
|
2378
|
+
*
|
|
2379
|
+
* @type {string}
|
|
2380
|
+
* @memberof FileInfo
|
|
2381
|
+
*/
|
|
2382
|
+
mimeType: string;
|
|
2383
|
+
/**
|
|
2384
|
+
*
|
|
2385
|
+
* @type {number}
|
|
2386
|
+
* @memberof FileInfo
|
|
2387
|
+
*/
|
|
2388
|
+
size: number;
|
|
2389
|
+
/**
|
|
2390
|
+
*
|
|
2391
|
+
* @type {number}
|
|
2392
|
+
* @memberof FileInfo
|
|
2393
|
+
*/
|
|
2394
|
+
createdAt: number;
|
|
2395
|
+
/**
|
|
2396
|
+
*
|
|
2397
|
+
* @type {number}
|
|
2398
|
+
* @memberof FileInfo
|
|
2399
|
+
*/
|
|
2400
|
+
uploadedAt: number;
|
|
2401
|
+
}
|
|
2304
2402
|
/**
|
|
2305
2403
|
*
|
|
2306
2404
|
* @export
|
|
@@ -3257,6 +3355,37 @@ export interface InviteeForm {
|
|
|
3257
3355
|
*/
|
|
3258
3356
|
validTo?: number;
|
|
3259
3357
|
}
|
|
3358
|
+
/**
|
|
3359
|
+
*
|
|
3360
|
+
* @export
|
|
3361
|
+
* @interface KnowledgeBase
|
|
3362
|
+
*/
|
|
3363
|
+
export interface KnowledgeBase {
|
|
3364
|
+
/**
|
|
3365
|
+
*
|
|
3366
|
+
* @type {string}
|
|
3367
|
+
* @memberof KnowledgeBase
|
|
3368
|
+
*/
|
|
3369
|
+
id: string;
|
|
3370
|
+
/**
|
|
3371
|
+
*
|
|
3372
|
+
* @type {string}
|
|
3373
|
+
* @memberof KnowledgeBase
|
|
3374
|
+
*/
|
|
3375
|
+
orgId: string;
|
|
3376
|
+
/**
|
|
3377
|
+
*
|
|
3378
|
+
* @type {number}
|
|
3379
|
+
* @memberof KnowledgeBase
|
|
3380
|
+
*/
|
|
3381
|
+
createdAt: number;
|
|
3382
|
+
/**
|
|
3383
|
+
*
|
|
3384
|
+
* @type {number}
|
|
3385
|
+
* @memberof KnowledgeBase
|
|
3386
|
+
*/
|
|
3387
|
+
updatedAt?: number;
|
|
3388
|
+
}
|
|
3260
3389
|
/**
|
|
3261
3390
|
*
|
|
3262
3391
|
* @export
|
|
@@ -9163,39 +9292,108 @@ export declare class InviteesApi extends BaseAPI {
|
|
|
9163
9292
|
* @export
|
|
9164
9293
|
*/
|
|
9165
9294
|
export declare const KnowledgeBasesApiFetchParamCreator: (configuration?: Configuration) => {
|
|
9295
|
+
/**
|
|
9296
|
+
*
|
|
9297
|
+
* @summary Create knowledge base
|
|
9298
|
+
* @param {*} [options] Override http request option.
|
|
9299
|
+
* @throws {RequiredError}
|
|
9300
|
+
*/
|
|
9301
|
+
create(options?: any): FetchArgs;
|
|
9166
9302
|
/**
|
|
9167
9303
|
*
|
|
9168
9304
|
* @summary Create knowledge base's file
|
|
9305
|
+
* @param {string} id
|
|
9306
|
+
* @param {*} [options] Override http request option.
|
|
9307
|
+
* @throws {RequiredError}
|
|
9308
|
+
*/
|
|
9309
|
+
createFile(id: string, options?: any): FetchArgs;
|
|
9310
|
+
/**
|
|
9311
|
+
*
|
|
9312
|
+
* @summary Get knowledge bases by orgId
|
|
9169
9313
|
* @param {*} [options] Override http request option.
|
|
9170
9314
|
* @throws {RequiredError}
|
|
9171
9315
|
*/
|
|
9172
|
-
|
|
9316
|
+
getByOrgId(options?: any): FetchArgs;
|
|
9317
|
+
/**
|
|
9318
|
+
*
|
|
9319
|
+
* @summary Get uploaded knowledge base's files
|
|
9320
|
+
* @param {string} id
|
|
9321
|
+
* @param {*} [options] Override http request option.
|
|
9322
|
+
* @throws {RequiredError}
|
|
9323
|
+
*/
|
|
9324
|
+
getUploadedFiles(id: string, options?: any): FetchArgs;
|
|
9173
9325
|
};
|
|
9174
9326
|
/**
|
|
9175
9327
|
* KnowledgeBasesApi - functional programming interface
|
|
9176
9328
|
* @export
|
|
9177
9329
|
*/
|
|
9178
9330
|
export declare const KnowledgeBasesApiFp: (configuration?: Configuration) => {
|
|
9331
|
+
/**
|
|
9332
|
+
*
|
|
9333
|
+
* @summary Create knowledge base
|
|
9334
|
+
* @param {*} [options] Override http request option.
|
|
9335
|
+
* @throws {RequiredError}
|
|
9336
|
+
*/
|
|
9337
|
+
create(options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<KnowledgeBase>;
|
|
9179
9338
|
/**
|
|
9180
9339
|
*
|
|
9181
9340
|
* @summary Create knowledge base's file
|
|
9341
|
+
* @param {string} id
|
|
9342
|
+
* @param {*} [options] Override http request option.
|
|
9343
|
+
* @throws {RequiredError}
|
|
9344
|
+
*/
|
|
9345
|
+
createFile(id: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<FileHandle>;
|
|
9346
|
+
/**
|
|
9347
|
+
*
|
|
9348
|
+
* @summary Get knowledge bases by orgId
|
|
9182
9349
|
* @param {*} [options] Override http request option.
|
|
9183
9350
|
* @throws {RequiredError}
|
|
9184
9351
|
*/
|
|
9185
|
-
|
|
9352
|
+
getByOrgId(options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<Array<KnowledgeBase>>;
|
|
9353
|
+
/**
|
|
9354
|
+
*
|
|
9355
|
+
* @summary Get uploaded knowledge base's files
|
|
9356
|
+
* @param {string} id
|
|
9357
|
+
* @param {*} [options] Override http request option.
|
|
9358
|
+
* @throws {RequiredError}
|
|
9359
|
+
*/
|
|
9360
|
+
getUploadedFiles(id: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<Array<FileDto>>;
|
|
9186
9361
|
};
|
|
9187
9362
|
/**
|
|
9188
9363
|
* KnowledgeBasesApi - factory interface
|
|
9189
9364
|
* @export
|
|
9190
9365
|
*/
|
|
9191
9366
|
export declare const KnowledgeBasesApiFactory: (configuration?: Configuration, fetch?: FetchAPI, basePath?: string) => {
|
|
9367
|
+
/**
|
|
9368
|
+
*
|
|
9369
|
+
* @summary Create knowledge base
|
|
9370
|
+
* @param {*} [options] Override http request option.
|
|
9371
|
+
* @throws {RequiredError}
|
|
9372
|
+
*/
|
|
9373
|
+
create(options?: any): Promise<KnowledgeBase>;
|
|
9192
9374
|
/**
|
|
9193
9375
|
*
|
|
9194
9376
|
* @summary Create knowledge base's file
|
|
9377
|
+
* @param {string} id
|
|
9378
|
+
* @param {*} [options] Override http request option.
|
|
9379
|
+
* @throws {RequiredError}
|
|
9380
|
+
*/
|
|
9381
|
+
createFile(id: string, options?: any): Promise<FileHandle>;
|
|
9382
|
+
/**
|
|
9383
|
+
*
|
|
9384
|
+
* @summary Get knowledge bases by orgId
|
|
9385
|
+
* @param {*} [options] Override http request option.
|
|
9386
|
+
* @throws {RequiredError}
|
|
9387
|
+
*/
|
|
9388
|
+
getByOrgId(options?: any): Promise<KnowledgeBase[]>;
|
|
9389
|
+
/**
|
|
9390
|
+
*
|
|
9391
|
+
* @summary Get uploaded knowledge base's files
|
|
9392
|
+
* @param {string} id
|
|
9195
9393
|
* @param {*} [options] Override http request option.
|
|
9196
9394
|
* @throws {RequiredError}
|
|
9197
9395
|
*/
|
|
9198
|
-
|
|
9396
|
+
getUploadedFiles(id: string, options?: any): Promise<FileDto[]>;
|
|
9199
9397
|
};
|
|
9200
9398
|
/**
|
|
9201
9399
|
* KnowledgeBasesApi - object-oriented interface
|
|
@@ -9204,14 +9402,40 @@ export declare const KnowledgeBasesApiFactory: (configuration?: Configuration, f
|
|
|
9204
9402
|
* @extends {BaseAPI}
|
|
9205
9403
|
*/
|
|
9206
9404
|
export declare class KnowledgeBasesApi extends BaseAPI {
|
|
9405
|
+
/**
|
|
9406
|
+
*
|
|
9407
|
+
* @summary Create knowledge base
|
|
9408
|
+
* @param {*} [options] Override http request option.
|
|
9409
|
+
* @throws {RequiredError}
|
|
9410
|
+
* @memberof KnowledgeBasesApi
|
|
9411
|
+
*/
|
|
9412
|
+
create(options?: any): Promise<KnowledgeBase>;
|
|
9207
9413
|
/**
|
|
9208
9414
|
*
|
|
9209
9415
|
* @summary Create knowledge base's file
|
|
9416
|
+
* @param {string} id
|
|
9417
|
+
* @param {*} [options] Override http request option.
|
|
9418
|
+
* @throws {RequiredError}
|
|
9419
|
+
* @memberof KnowledgeBasesApi
|
|
9420
|
+
*/
|
|
9421
|
+
createFile(id: string, options?: any): Promise<FileHandle>;
|
|
9422
|
+
/**
|
|
9423
|
+
*
|
|
9424
|
+
* @summary Get knowledge bases by orgId
|
|
9425
|
+
* @param {*} [options] Override http request option.
|
|
9426
|
+
* @throws {RequiredError}
|
|
9427
|
+
* @memberof KnowledgeBasesApi
|
|
9428
|
+
*/
|
|
9429
|
+
getByOrgId(options?: any): Promise<KnowledgeBase[]>;
|
|
9430
|
+
/**
|
|
9431
|
+
*
|
|
9432
|
+
* @summary Get uploaded knowledge base's files
|
|
9433
|
+
* @param {string} id
|
|
9210
9434
|
* @param {*} [options] Override http request option.
|
|
9211
9435
|
* @throws {RequiredError}
|
|
9212
9436
|
* @memberof KnowledgeBasesApi
|
|
9213
9437
|
*/
|
|
9214
|
-
|
|
9438
|
+
getUploadedFiles(id: string, options?: any): Promise<FileDto[]>;
|
|
9215
9439
|
}
|
|
9216
9440
|
/**
|
|
9217
9441
|
* MainNotificationsApi - fetch parameter creator
|
package/dist/api.js
CHANGED
|
@@ -4879,14 +4879,48 @@ exports.InviteesApi = InviteesApi;
|
|
|
4879
4879
|
*/
|
|
4880
4880
|
const KnowledgeBasesApiFetchParamCreator = function (configuration) {
|
|
4881
4881
|
return {
|
|
4882
|
+
/**
|
|
4883
|
+
*
|
|
4884
|
+
* @summary Create knowledge base
|
|
4885
|
+
* @param {*} [options] Override http request option.
|
|
4886
|
+
* @throws {RequiredError}
|
|
4887
|
+
*/
|
|
4888
|
+
create(options = {}) {
|
|
4889
|
+
const localVarPath = `/knowledge-bases`;
|
|
4890
|
+
const localVarUrlObj = url.parse(localVarPath, true);
|
|
4891
|
+
const localVarRequestOptions = Object.assign({ method: 'POST' }, options);
|
|
4892
|
+
const localVarHeaderParameter = {};
|
|
4893
|
+
const localVarQueryParameter = {};
|
|
4894
|
+
// authentication apiKey required
|
|
4895
|
+
if (configuration && configuration.apiKey) {
|
|
4896
|
+
const localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
4897
|
+
? configuration.apiKey("X-Api-Key")
|
|
4898
|
+
: configuration.apiKey;
|
|
4899
|
+
localVarHeaderParameter["X-Api-Key"] = localVarApiKeyValue;
|
|
4900
|
+
}
|
|
4901
|
+
localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
|
|
4902
|
+
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
4903
|
+
delete localVarUrlObj.search;
|
|
4904
|
+
localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
|
|
4905
|
+
return {
|
|
4906
|
+
url: url.format(localVarUrlObj),
|
|
4907
|
+
options: localVarRequestOptions,
|
|
4908
|
+
};
|
|
4909
|
+
},
|
|
4882
4910
|
/**
|
|
4883
4911
|
*
|
|
4884
4912
|
* @summary Create knowledge base's file
|
|
4913
|
+
* @param {string} id
|
|
4885
4914
|
* @param {*} [options] Override http request option.
|
|
4886
4915
|
* @throws {RequiredError}
|
|
4887
4916
|
*/
|
|
4888
|
-
createFile(options = {}) {
|
|
4889
|
-
|
|
4917
|
+
createFile(id, options = {}) {
|
|
4918
|
+
// verify required parameter 'id' is not null or undefined
|
|
4919
|
+
if (id === null || id === undefined) {
|
|
4920
|
+
throw new RequiredError('id', 'Required parameter id was null or undefined when calling createFile.');
|
|
4921
|
+
}
|
|
4922
|
+
const localVarPath = `/knowledge-bases/{id}/files`
|
|
4923
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
4890
4924
|
const localVarUrlObj = url.parse(localVarPath, true);
|
|
4891
4925
|
const localVarRequestOptions = Object.assign({ method: 'POST' }, options);
|
|
4892
4926
|
const localVarHeaderParameter = {};
|
|
@@ -4907,6 +4941,68 @@ const KnowledgeBasesApiFetchParamCreator = function (configuration) {
|
|
|
4907
4941
|
options: localVarRequestOptions,
|
|
4908
4942
|
};
|
|
4909
4943
|
},
|
|
4944
|
+
/**
|
|
4945
|
+
*
|
|
4946
|
+
* @summary Get knowledge bases by orgId
|
|
4947
|
+
* @param {*} [options] Override http request option.
|
|
4948
|
+
* @throws {RequiredError}
|
|
4949
|
+
*/
|
|
4950
|
+
getByOrgId(options = {}) {
|
|
4951
|
+
const localVarPath = `/knowledge-bases`;
|
|
4952
|
+
const localVarUrlObj = url.parse(localVarPath, true);
|
|
4953
|
+
const localVarRequestOptions = Object.assign({ method: 'GET' }, options);
|
|
4954
|
+
const localVarHeaderParameter = {};
|
|
4955
|
+
const localVarQueryParameter = {};
|
|
4956
|
+
// authentication apiKey required
|
|
4957
|
+
if (configuration && configuration.apiKey) {
|
|
4958
|
+
const localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
4959
|
+
? configuration.apiKey("X-Api-Key")
|
|
4960
|
+
: configuration.apiKey;
|
|
4961
|
+
localVarHeaderParameter["X-Api-Key"] = localVarApiKeyValue;
|
|
4962
|
+
}
|
|
4963
|
+
localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
|
|
4964
|
+
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
4965
|
+
delete localVarUrlObj.search;
|
|
4966
|
+
localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
|
|
4967
|
+
return {
|
|
4968
|
+
url: url.format(localVarUrlObj),
|
|
4969
|
+
options: localVarRequestOptions,
|
|
4970
|
+
};
|
|
4971
|
+
},
|
|
4972
|
+
/**
|
|
4973
|
+
*
|
|
4974
|
+
* @summary Get uploaded knowledge base's files
|
|
4975
|
+
* @param {string} id
|
|
4976
|
+
* @param {*} [options] Override http request option.
|
|
4977
|
+
* @throws {RequiredError}
|
|
4978
|
+
*/
|
|
4979
|
+
getUploadedFiles(id, options = {}) {
|
|
4980
|
+
// verify required parameter 'id' is not null or undefined
|
|
4981
|
+
if (id === null || id === undefined) {
|
|
4982
|
+
throw new RequiredError('id', 'Required parameter id was null or undefined when calling getUploadedFiles.');
|
|
4983
|
+
}
|
|
4984
|
+
const localVarPath = `/knowledge-bases/{id}`
|
|
4985
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
4986
|
+
const localVarUrlObj = url.parse(localVarPath, true);
|
|
4987
|
+
const localVarRequestOptions = Object.assign({ method: 'GET' }, options);
|
|
4988
|
+
const localVarHeaderParameter = {};
|
|
4989
|
+
const localVarQueryParameter = {};
|
|
4990
|
+
// authentication apiKey required
|
|
4991
|
+
if (configuration && configuration.apiKey) {
|
|
4992
|
+
const localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
4993
|
+
? configuration.apiKey("X-Api-Key")
|
|
4994
|
+
: configuration.apiKey;
|
|
4995
|
+
localVarHeaderParameter["X-Api-Key"] = localVarApiKeyValue;
|
|
4996
|
+
}
|
|
4997
|
+
localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
|
|
4998
|
+
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
4999
|
+
delete localVarUrlObj.search;
|
|
5000
|
+
localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
|
|
5001
|
+
return {
|
|
5002
|
+
url: url.format(localVarUrlObj),
|
|
5003
|
+
options: localVarRequestOptions,
|
|
5004
|
+
};
|
|
5005
|
+
},
|
|
4910
5006
|
};
|
|
4911
5007
|
};
|
|
4912
5008
|
exports.KnowledgeBasesApiFetchParamCreator = KnowledgeBasesApiFetchParamCreator;
|
|
@@ -4916,14 +5012,73 @@ exports.KnowledgeBasesApiFetchParamCreator = KnowledgeBasesApiFetchParamCreator;
|
|
|
4916
5012
|
*/
|
|
4917
5013
|
const KnowledgeBasesApiFp = function (configuration) {
|
|
4918
5014
|
return {
|
|
5015
|
+
/**
|
|
5016
|
+
*
|
|
5017
|
+
* @summary Create knowledge base
|
|
5018
|
+
* @param {*} [options] Override http request option.
|
|
5019
|
+
* @throws {RequiredError}
|
|
5020
|
+
*/
|
|
5021
|
+
create(options) {
|
|
5022
|
+
const localVarFetchArgs = (0, exports.KnowledgeBasesApiFetchParamCreator)(configuration).create(options);
|
|
5023
|
+
return (fetch = isomorphicFetch, basePath = BASE_PATH) => {
|
|
5024
|
+
return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
|
|
5025
|
+
if (response.status >= 200 && response.status < 300) {
|
|
5026
|
+
return response.json();
|
|
5027
|
+
}
|
|
5028
|
+
else {
|
|
5029
|
+
throw response;
|
|
5030
|
+
}
|
|
5031
|
+
});
|
|
5032
|
+
};
|
|
5033
|
+
},
|
|
4919
5034
|
/**
|
|
4920
5035
|
*
|
|
4921
5036
|
* @summary Create knowledge base's file
|
|
5037
|
+
* @param {string} id
|
|
4922
5038
|
* @param {*} [options] Override http request option.
|
|
4923
5039
|
* @throws {RequiredError}
|
|
4924
5040
|
*/
|
|
4925
|
-
createFile(options) {
|
|
4926
|
-
const localVarFetchArgs = (0, exports.KnowledgeBasesApiFetchParamCreator)(configuration).createFile(options);
|
|
5041
|
+
createFile(id, options) {
|
|
5042
|
+
const localVarFetchArgs = (0, exports.KnowledgeBasesApiFetchParamCreator)(configuration).createFile(id, options);
|
|
5043
|
+
return (fetch = isomorphicFetch, basePath = BASE_PATH) => {
|
|
5044
|
+
return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
|
|
5045
|
+
if (response.status >= 200 && response.status < 300) {
|
|
5046
|
+
return response.json();
|
|
5047
|
+
}
|
|
5048
|
+
else {
|
|
5049
|
+
throw response;
|
|
5050
|
+
}
|
|
5051
|
+
});
|
|
5052
|
+
};
|
|
5053
|
+
},
|
|
5054
|
+
/**
|
|
5055
|
+
*
|
|
5056
|
+
* @summary Get knowledge bases by orgId
|
|
5057
|
+
* @param {*} [options] Override http request option.
|
|
5058
|
+
* @throws {RequiredError}
|
|
5059
|
+
*/
|
|
5060
|
+
getByOrgId(options) {
|
|
5061
|
+
const localVarFetchArgs = (0, exports.KnowledgeBasesApiFetchParamCreator)(configuration).getByOrgId(options);
|
|
5062
|
+
return (fetch = isomorphicFetch, basePath = BASE_PATH) => {
|
|
5063
|
+
return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
|
|
5064
|
+
if (response.status >= 200 && response.status < 300) {
|
|
5065
|
+
return response.json();
|
|
5066
|
+
}
|
|
5067
|
+
else {
|
|
5068
|
+
throw response;
|
|
5069
|
+
}
|
|
5070
|
+
});
|
|
5071
|
+
};
|
|
5072
|
+
},
|
|
5073
|
+
/**
|
|
5074
|
+
*
|
|
5075
|
+
* @summary Get uploaded knowledge base's files
|
|
5076
|
+
* @param {string} id
|
|
5077
|
+
* @param {*} [options] Override http request option.
|
|
5078
|
+
* @throws {RequiredError}
|
|
5079
|
+
*/
|
|
5080
|
+
getUploadedFiles(id, options) {
|
|
5081
|
+
const localVarFetchArgs = (0, exports.KnowledgeBasesApiFetchParamCreator)(configuration).getUploadedFiles(id, options);
|
|
4927
5082
|
return (fetch = isomorphicFetch, basePath = BASE_PATH) => {
|
|
4928
5083
|
return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
|
|
4929
5084
|
if (response.status >= 200 && response.status < 300) {
|
|
@@ -4944,14 +5099,43 @@ exports.KnowledgeBasesApiFp = KnowledgeBasesApiFp;
|
|
|
4944
5099
|
*/
|
|
4945
5100
|
const KnowledgeBasesApiFactory = function (configuration, fetch, basePath) {
|
|
4946
5101
|
return {
|
|
5102
|
+
/**
|
|
5103
|
+
*
|
|
5104
|
+
* @summary Create knowledge base
|
|
5105
|
+
* @param {*} [options] Override http request option.
|
|
5106
|
+
* @throws {RequiredError}
|
|
5107
|
+
*/
|
|
5108
|
+
create(options) {
|
|
5109
|
+
return (0, exports.KnowledgeBasesApiFp)(configuration).create(options)(fetch, basePath);
|
|
5110
|
+
},
|
|
4947
5111
|
/**
|
|
4948
5112
|
*
|
|
4949
5113
|
* @summary Create knowledge base's file
|
|
5114
|
+
* @param {string} id
|
|
5115
|
+
* @param {*} [options] Override http request option.
|
|
5116
|
+
* @throws {RequiredError}
|
|
5117
|
+
*/
|
|
5118
|
+
createFile(id, options) {
|
|
5119
|
+
return (0, exports.KnowledgeBasesApiFp)(configuration).createFile(id, options)(fetch, basePath);
|
|
5120
|
+
},
|
|
5121
|
+
/**
|
|
5122
|
+
*
|
|
5123
|
+
* @summary Get knowledge bases by orgId
|
|
4950
5124
|
* @param {*} [options] Override http request option.
|
|
4951
5125
|
* @throws {RequiredError}
|
|
4952
5126
|
*/
|
|
4953
|
-
|
|
4954
|
-
return (0, exports.KnowledgeBasesApiFp)(configuration).
|
|
5127
|
+
getByOrgId(options) {
|
|
5128
|
+
return (0, exports.KnowledgeBasesApiFp)(configuration).getByOrgId(options)(fetch, basePath);
|
|
5129
|
+
},
|
|
5130
|
+
/**
|
|
5131
|
+
*
|
|
5132
|
+
* @summary Get uploaded knowledge base's files
|
|
5133
|
+
* @param {string} id
|
|
5134
|
+
* @param {*} [options] Override http request option.
|
|
5135
|
+
* @throws {RequiredError}
|
|
5136
|
+
*/
|
|
5137
|
+
getUploadedFiles(id, options) {
|
|
5138
|
+
return (0, exports.KnowledgeBasesApiFp)(configuration).getUploadedFiles(id, options)(fetch, basePath);
|
|
4955
5139
|
},
|
|
4956
5140
|
};
|
|
4957
5141
|
};
|
|
@@ -4963,15 +5147,47 @@ exports.KnowledgeBasesApiFactory = KnowledgeBasesApiFactory;
|
|
|
4963
5147
|
* @extends {BaseAPI}
|
|
4964
5148
|
*/
|
|
4965
5149
|
class KnowledgeBasesApi extends BaseAPI {
|
|
5150
|
+
/**
|
|
5151
|
+
*
|
|
5152
|
+
* @summary Create knowledge base
|
|
5153
|
+
* @param {*} [options] Override http request option.
|
|
5154
|
+
* @throws {RequiredError}
|
|
5155
|
+
* @memberof KnowledgeBasesApi
|
|
5156
|
+
*/
|
|
5157
|
+
create(options) {
|
|
5158
|
+
return (0, exports.KnowledgeBasesApiFp)(this.configuration).create(options)(this.fetch, this.basePath);
|
|
5159
|
+
}
|
|
4966
5160
|
/**
|
|
4967
5161
|
*
|
|
4968
5162
|
* @summary Create knowledge base's file
|
|
5163
|
+
* @param {string} id
|
|
5164
|
+
* @param {*} [options] Override http request option.
|
|
5165
|
+
* @throws {RequiredError}
|
|
5166
|
+
* @memberof KnowledgeBasesApi
|
|
5167
|
+
*/
|
|
5168
|
+
createFile(id, options) {
|
|
5169
|
+
return (0, exports.KnowledgeBasesApiFp)(this.configuration).createFile(id, options)(this.fetch, this.basePath);
|
|
5170
|
+
}
|
|
5171
|
+
/**
|
|
5172
|
+
*
|
|
5173
|
+
* @summary Get knowledge bases by orgId
|
|
5174
|
+
* @param {*} [options] Override http request option.
|
|
5175
|
+
* @throws {RequiredError}
|
|
5176
|
+
* @memberof KnowledgeBasesApi
|
|
5177
|
+
*/
|
|
5178
|
+
getByOrgId(options) {
|
|
5179
|
+
return (0, exports.KnowledgeBasesApiFp)(this.configuration).getByOrgId(options)(this.fetch, this.basePath);
|
|
5180
|
+
}
|
|
5181
|
+
/**
|
|
5182
|
+
*
|
|
5183
|
+
* @summary Get uploaded knowledge base's files
|
|
5184
|
+
* @param {string} id
|
|
4969
5185
|
* @param {*} [options] Override http request option.
|
|
4970
5186
|
* @throws {RequiredError}
|
|
4971
5187
|
* @memberof KnowledgeBasesApi
|
|
4972
5188
|
*/
|
|
4973
|
-
|
|
4974
|
-
return (0, exports.KnowledgeBasesApiFp)(this.configuration).
|
|
5189
|
+
getUploadedFiles(id, options) {
|
|
5190
|
+
return (0, exports.KnowledgeBasesApiFp)(this.configuration).getUploadedFiles(id, options)(this.fetch, this.basePath);
|
|
4975
5191
|
}
|
|
4976
5192
|
}
|
|
4977
5193
|
exports.KnowledgeBasesApi = KnowledgeBasesApi;
|