@closerplatform/spinner-openapi 0.12.614 → 0.12.615
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 +61 -99
- package/dist/api.js +14 -7
- package/package.json +1 -1
package/dist/api.d.ts
CHANGED
|
@@ -2294,61 +2294,6 @@ export interface ExternalMessageForm {
|
|
|
2294
2294
|
*/
|
|
2295
2295
|
context?: any;
|
|
2296
2296
|
}
|
|
2297
|
-
/**
|
|
2298
|
-
*
|
|
2299
|
-
* @export
|
|
2300
|
-
* @interface FileDto
|
|
2301
|
-
*/
|
|
2302
|
-
export interface FileDto {
|
|
2303
|
-
/**
|
|
2304
|
-
*
|
|
2305
|
-
* @type {string}
|
|
2306
|
-
* @memberof FileDto
|
|
2307
|
-
*/
|
|
2308
|
-
id: string;
|
|
2309
|
-
/**
|
|
2310
|
-
*
|
|
2311
|
-
* @type {string}
|
|
2312
|
-
* @memberof FileDto
|
|
2313
|
-
*/
|
|
2314
|
-
creator: string;
|
|
2315
|
-
/**
|
|
2316
|
-
*
|
|
2317
|
-
* @type {string}
|
|
2318
|
-
* @memberof FileDto
|
|
2319
|
-
*/
|
|
2320
|
-
token: string;
|
|
2321
|
-
/**
|
|
2322
|
-
*
|
|
2323
|
-
* @type {string}
|
|
2324
|
-
* @memberof FileDto
|
|
2325
|
-
*/
|
|
2326
|
-
type: string;
|
|
2327
|
-
/**
|
|
2328
|
-
*
|
|
2329
|
-
* @type {string}
|
|
2330
|
-
* @memberof FileDto
|
|
2331
|
-
*/
|
|
2332
|
-
url: string;
|
|
2333
|
-
/**
|
|
2334
|
-
*
|
|
2335
|
-
* @type {string}
|
|
2336
|
-
* @memberof FileDto
|
|
2337
|
-
*/
|
|
2338
|
-
orgId?: string;
|
|
2339
|
-
/**
|
|
2340
|
-
*
|
|
2341
|
-
* @type {string}
|
|
2342
|
-
* @memberof FileDto
|
|
2343
|
-
*/
|
|
2344
|
-
roomId?: string;
|
|
2345
|
-
/**
|
|
2346
|
-
*
|
|
2347
|
-
* @type {FileInfo}
|
|
2348
|
-
* @memberof FileDto
|
|
2349
|
-
*/
|
|
2350
|
-
info?: FileInfo;
|
|
2351
|
-
}
|
|
2352
2297
|
/**
|
|
2353
2298
|
*
|
|
2354
2299
|
* @export
|
|
@@ -2368,43 +2313,6 @@ export interface FileHandle {
|
|
|
2368
2313
|
*/
|
|
2369
2314
|
fileId?: string;
|
|
2370
2315
|
}
|
|
2371
|
-
/**
|
|
2372
|
-
*
|
|
2373
|
-
* @export
|
|
2374
|
-
* @interface FileInfo
|
|
2375
|
-
*/
|
|
2376
|
-
export interface FileInfo {
|
|
2377
|
-
/**
|
|
2378
|
-
*
|
|
2379
|
-
* @type {string}
|
|
2380
|
-
* @memberof FileInfo
|
|
2381
|
-
*/
|
|
2382
|
-
name: string;
|
|
2383
|
-
/**
|
|
2384
|
-
*
|
|
2385
|
-
* @type {string}
|
|
2386
|
-
* @memberof FileInfo
|
|
2387
|
-
*/
|
|
2388
|
-
mimeType: string;
|
|
2389
|
-
/**
|
|
2390
|
-
*
|
|
2391
|
-
* @type {number}
|
|
2392
|
-
* @memberof FileInfo
|
|
2393
|
-
*/
|
|
2394
|
-
size: number;
|
|
2395
|
-
/**
|
|
2396
|
-
*
|
|
2397
|
-
* @type {number}
|
|
2398
|
-
* @memberof FileInfo
|
|
2399
|
-
*/
|
|
2400
|
-
createdAt: number;
|
|
2401
|
-
/**
|
|
2402
|
-
*
|
|
2403
|
-
* @type {number}
|
|
2404
|
-
* @memberof FileInfo
|
|
2405
|
-
*/
|
|
2406
|
-
uploadedAt: number;
|
|
2407
|
-
}
|
|
2408
2316
|
/**
|
|
2409
2317
|
*
|
|
2410
2318
|
* @export
|
|
@@ -3423,6 +3331,56 @@ export interface KnowledgeBaseCreateForm {
|
|
|
3423
3331
|
*/
|
|
3424
3332
|
name: string;
|
|
3425
3333
|
}
|
|
3334
|
+
/**
|
|
3335
|
+
*
|
|
3336
|
+
* @export
|
|
3337
|
+
* @interface KnowledgeBaseFile
|
|
3338
|
+
*/
|
|
3339
|
+
export interface KnowledgeBaseFile {
|
|
3340
|
+
/**
|
|
3341
|
+
*
|
|
3342
|
+
* @type {string}
|
|
3343
|
+
* @memberof KnowledgeBaseFile
|
|
3344
|
+
*/
|
|
3345
|
+
id: string;
|
|
3346
|
+
/**
|
|
3347
|
+
*
|
|
3348
|
+
* @type {string}
|
|
3349
|
+
* @memberof KnowledgeBaseFile
|
|
3350
|
+
*/
|
|
3351
|
+
name: string;
|
|
3352
|
+
/**
|
|
3353
|
+
*
|
|
3354
|
+
* @type {string}
|
|
3355
|
+
* @memberof KnowledgeBaseFile
|
|
3356
|
+
*/
|
|
3357
|
+
locale: string;
|
|
3358
|
+
/**
|
|
3359
|
+
*
|
|
3360
|
+
* @type {number}
|
|
3361
|
+
* @memberof KnowledgeBaseFile
|
|
3362
|
+
*/
|
|
3363
|
+
size: number;
|
|
3364
|
+
/**
|
|
3365
|
+
*
|
|
3366
|
+
* @type {number}
|
|
3367
|
+
* @memberof KnowledgeBaseFile
|
|
3368
|
+
*/
|
|
3369
|
+
uploadedAt: number;
|
|
3370
|
+
}
|
|
3371
|
+
/**
|
|
3372
|
+
*
|
|
3373
|
+
* @export
|
|
3374
|
+
* @interface KnowledgeBaseFileCreateForm
|
|
3375
|
+
*/
|
|
3376
|
+
export interface KnowledgeBaseFileCreateForm {
|
|
3377
|
+
/**
|
|
3378
|
+
*
|
|
3379
|
+
* @type {string}
|
|
3380
|
+
* @memberof KnowledgeBaseFileCreateForm
|
|
3381
|
+
*/
|
|
3382
|
+
locale: string;
|
|
3383
|
+
}
|
|
3426
3384
|
/**
|
|
3427
3385
|
*
|
|
3428
3386
|
* @export
|
|
@@ -9408,10 +9366,11 @@ export declare const KnowledgeBasesApiFetchParamCreator: (configuration?: Config
|
|
|
9408
9366
|
*
|
|
9409
9367
|
* @summary Create knowledge base's file
|
|
9410
9368
|
* @param {string} id
|
|
9369
|
+
* @param {KnowledgeBaseFileCreateForm} [body]
|
|
9411
9370
|
* @param {*} [options] Override http request option.
|
|
9412
9371
|
* @throws {RequiredError}
|
|
9413
9372
|
*/
|
|
9414
|
-
createFile(id: string, options?: any): FetchArgs;
|
|
9373
|
+
createFile(id: string, body?: KnowledgeBaseFileCreateForm, options?: any): FetchArgs;
|
|
9415
9374
|
/**
|
|
9416
9375
|
*
|
|
9417
9376
|
* @summary Delete knowledge base's file
|
|
@@ -9471,10 +9430,11 @@ export declare const KnowledgeBasesApiFp: (configuration?: Configuration) => {
|
|
|
9471
9430
|
*
|
|
9472
9431
|
* @summary Create knowledge base's file
|
|
9473
9432
|
* @param {string} id
|
|
9433
|
+
* @param {KnowledgeBaseFileCreateForm} [body]
|
|
9474
9434
|
* @param {*} [options] Override http request option.
|
|
9475
9435
|
* @throws {RequiredError}
|
|
9476
9436
|
*/
|
|
9477
|
-
createFile(id: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<FileHandle>;
|
|
9437
|
+
createFile(id: string, body?: KnowledgeBaseFileCreateForm, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<FileHandle>;
|
|
9478
9438
|
/**
|
|
9479
9439
|
*
|
|
9480
9440
|
* @summary Delete knowledge base's file
|
|
@@ -9498,7 +9458,7 @@ export declare const KnowledgeBasesApiFp: (configuration?: Configuration) => {
|
|
|
9498
9458
|
* @param {*} [options] Override http request option.
|
|
9499
9459
|
* @throws {RequiredError}
|
|
9500
9460
|
*/
|
|
9501
|
-
getUploadedFiles(id: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<Array<
|
|
9461
|
+
getUploadedFiles(id: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<Array<KnowledgeBaseFile>>;
|
|
9502
9462
|
/**
|
|
9503
9463
|
*
|
|
9504
9464
|
* @summary Update knowledge base
|
|
@@ -9534,10 +9494,11 @@ export declare const KnowledgeBasesApiFactory: (configuration?: Configuration, f
|
|
|
9534
9494
|
*
|
|
9535
9495
|
* @summary Create knowledge base's file
|
|
9536
9496
|
* @param {string} id
|
|
9497
|
+
* @param {KnowledgeBaseFileCreateForm} [body]
|
|
9537
9498
|
* @param {*} [options] Override http request option.
|
|
9538
9499
|
* @throws {RequiredError}
|
|
9539
9500
|
*/
|
|
9540
|
-
createFile(id: string, options?: any): Promise<FileHandle>;
|
|
9501
|
+
createFile(id: string, body?: KnowledgeBaseFileCreateForm, options?: any): Promise<FileHandle>;
|
|
9541
9502
|
/**
|
|
9542
9503
|
*
|
|
9543
9504
|
* @summary Delete knowledge base's file
|
|
@@ -9561,7 +9522,7 @@ export declare const KnowledgeBasesApiFactory: (configuration?: Configuration, f
|
|
|
9561
9522
|
* @param {*} [options] Override http request option.
|
|
9562
9523
|
* @throws {RequiredError}
|
|
9563
9524
|
*/
|
|
9564
|
-
getUploadedFiles(id: string, options?: any): Promise<
|
|
9525
|
+
getUploadedFiles(id: string, options?: any): Promise<KnowledgeBaseFile[]>;
|
|
9565
9526
|
/**
|
|
9566
9527
|
*
|
|
9567
9528
|
* @summary Update knowledge base
|
|
@@ -9601,11 +9562,12 @@ export declare class KnowledgeBasesApi extends BaseAPI {
|
|
|
9601
9562
|
*
|
|
9602
9563
|
* @summary Create knowledge base's file
|
|
9603
9564
|
* @param {string} id
|
|
9565
|
+
* @param {KnowledgeBaseFileCreateForm} [body]
|
|
9604
9566
|
* @param {*} [options] Override http request option.
|
|
9605
9567
|
* @throws {RequiredError}
|
|
9606
9568
|
* @memberof KnowledgeBasesApi
|
|
9607
9569
|
*/
|
|
9608
|
-
createFile(id: string, options?: any): Promise<FileHandle>;
|
|
9570
|
+
createFile(id: string, body?: KnowledgeBaseFileCreateForm, options?: any): Promise<FileHandle>;
|
|
9609
9571
|
/**
|
|
9610
9572
|
*
|
|
9611
9573
|
* @summary Delete knowledge base's file
|
|
@@ -9632,7 +9594,7 @@ export declare class KnowledgeBasesApi extends BaseAPI {
|
|
|
9632
9594
|
* @throws {RequiredError}
|
|
9633
9595
|
* @memberof KnowledgeBasesApi
|
|
9634
9596
|
*/
|
|
9635
|
-
getUploadedFiles(id: string, options?: any): Promise<
|
|
9597
|
+
getUploadedFiles(id: string, options?: any): Promise<KnowledgeBaseFile[]>;
|
|
9636
9598
|
/**
|
|
9637
9599
|
*
|
|
9638
9600
|
* @summary Update knowledge base
|
package/dist/api.js
CHANGED
|
@@ -5030,10 +5030,11 @@ const KnowledgeBasesApiFetchParamCreator = function (configuration) {
|
|
|
5030
5030
|
*
|
|
5031
5031
|
* @summary Create knowledge base's file
|
|
5032
5032
|
* @param {string} id
|
|
5033
|
+
* @param {KnowledgeBaseFileCreateForm} [body]
|
|
5033
5034
|
* @param {*} [options] Override http request option.
|
|
5034
5035
|
* @throws {RequiredError}
|
|
5035
5036
|
*/
|
|
5036
|
-
createFile(id, options = {}) {
|
|
5037
|
+
createFile(id, body, options = {}) {
|
|
5037
5038
|
// verify required parameter 'id' is not null or undefined
|
|
5038
5039
|
if (id === null || id === undefined) {
|
|
5039
5040
|
throw new RequiredError('id', 'Required parameter id was null or undefined when calling createFile.');
|
|
@@ -5051,10 +5052,13 @@ const KnowledgeBasesApiFetchParamCreator = function (configuration) {
|
|
|
5051
5052
|
: configuration.apiKey;
|
|
5052
5053
|
localVarHeaderParameter["X-Api-Key"] = localVarApiKeyValue;
|
|
5053
5054
|
}
|
|
5055
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
5054
5056
|
localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
|
|
5055
5057
|
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
5056
5058
|
delete localVarUrlObj.search;
|
|
5057
5059
|
localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
|
|
5060
|
+
const needsSerialization = ("KnowledgeBaseFileCreateForm" !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
|
|
5061
|
+
localVarRequestOptions.body = needsSerialization ? JSON.stringify(body || {}) : (body || "");
|
|
5058
5062
|
return {
|
|
5059
5063
|
url: url.format(localVarUrlObj),
|
|
5060
5064
|
options: localVarRequestOptions,
|
|
@@ -5253,11 +5257,12 @@ const KnowledgeBasesApiFp = function (configuration) {
|
|
|
5253
5257
|
*
|
|
5254
5258
|
* @summary Create knowledge base's file
|
|
5255
5259
|
* @param {string} id
|
|
5260
|
+
* @param {KnowledgeBaseFileCreateForm} [body]
|
|
5256
5261
|
* @param {*} [options] Override http request option.
|
|
5257
5262
|
* @throws {RequiredError}
|
|
5258
5263
|
*/
|
|
5259
|
-
createFile(id, options) {
|
|
5260
|
-
const localVarFetchArgs = (0, exports.KnowledgeBasesApiFetchParamCreator)(configuration).createFile(id, options);
|
|
5264
|
+
createFile(id, body, options) {
|
|
5265
|
+
const localVarFetchArgs = (0, exports.KnowledgeBasesApiFetchParamCreator)(configuration).createFile(id, body, options);
|
|
5261
5266
|
return (fetch = isomorphicFetch, basePath = BASE_PATH) => {
|
|
5262
5267
|
return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
|
|
5263
5268
|
if (response.status >= 200 && response.status < 300) {
|
|
@@ -5383,11 +5388,12 @@ const KnowledgeBasesApiFactory = function (configuration, fetch, basePath) {
|
|
|
5383
5388
|
*
|
|
5384
5389
|
* @summary Create knowledge base's file
|
|
5385
5390
|
* @param {string} id
|
|
5391
|
+
* @param {KnowledgeBaseFileCreateForm} [body]
|
|
5386
5392
|
* @param {*} [options] Override http request option.
|
|
5387
5393
|
* @throws {RequiredError}
|
|
5388
5394
|
*/
|
|
5389
|
-
createFile(id, options) {
|
|
5390
|
-
return (0, exports.KnowledgeBasesApiFp)(configuration).createFile(id, options)(fetch, basePath);
|
|
5395
|
+
createFile(id, body, options) {
|
|
5396
|
+
return (0, exports.KnowledgeBasesApiFp)(configuration).createFile(id, body, options)(fetch, basePath);
|
|
5391
5397
|
},
|
|
5392
5398
|
/**
|
|
5393
5399
|
*
|
|
@@ -5466,12 +5472,13 @@ class KnowledgeBasesApi extends BaseAPI {
|
|
|
5466
5472
|
*
|
|
5467
5473
|
* @summary Create knowledge base's file
|
|
5468
5474
|
* @param {string} id
|
|
5475
|
+
* @param {KnowledgeBaseFileCreateForm} [body]
|
|
5469
5476
|
* @param {*} [options] Override http request option.
|
|
5470
5477
|
* @throws {RequiredError}
|
|
5471
5478
|
* @memberof KnowledgeBasesApi
|
|
5472
5479
|
*/
|
|
5473
|
-
createFile(id, options) {
|
|
5474
|
-
return (0, exports.KnowledgeBasesApiFp)(this.configuration).createFile(id, options)(this.fetch, this.basePath);
|
|
5480
|
+
createFile(id, body, options) {
|
|
5481
|
+
return (0, exports.KnowledgeBasesApiFp)(this.configuration).createFile(id, body, options)(this.fetch, this.basePath);
|
|
5475
5482
|
}
|
|
5476
5483
|
/**
|
|
5477
5484
|
*
|