@closerplatform/spinner-openapi 0.12.934 → 0.12.936
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 +80 -80
- package/dist/api.js +21 -21
- package/package.json +1 -1
package/dist/api.d.ts
CHANGED
|
@@ -3187,125 +3187,125 @@ export interface InviteeForm {
|
|
|
3187
3187
|
/**
|
|
3188
3188
|
*
|
|
3189
3189
|
* @export
|
|
3190
|
-
* @interface
|
|
3190
|
+
* @interface KnowledgeBaseCreateRequest
|
|
3191
3191
|
*/
|
|
3192
|
-
export interface
|
|
3192
|
+
export interface KnowledgeBaseCreateRequest {
|
|
3193
3193
|
/**
|
|
3194
3194
|
*
|
|
3195
3195
|
* @type {string}
|
|
3196
|
-
* @memberof
|
|
3196
|
+
* @memberof KnowledgeBaseCreateRequest
|
|
3197
3197
|
*/
|
|
3198
|
-
|
|
3198
|
+
name: string;
|
|
3199
|
+
}
|
|
3200
|
+
/**
|
|
3201
|
+
*
|
|
3202
|
+
* @export
|
|
3203
|
+
* @interface KnowledgeBaseDto
|
|
3204
|
+
*/
|
|
3205
|
+
export interface KnowledgeBaseDto {
|
|
3199
3206
|
/**
|
|
3200
3207
|
*
|
|
3201
3208
|
* @type {string}
|
|
3202
|
-
* @memberof
|
|
3209
|
+
* @memberof KnowledgeBaseDto
|
|
3203
3210
|
*/
|
|
3204
|
-
|
|
3211
|
+
id: string;
|
|
3205
3212
|
/**
|
|
3206
3213
|
*
|
|
3207
3214
|
* @type {string}
|
|
3208
|
-
* @memberof
|
|
3215
|
+
* @memberof KnowledgeBaseDto
|
|
3209
3216
|
*/
|
|
3210
|
-
|
|
3217
|
+
name: string;
|
|
3211
3218
|
/**
|
|
3212
3219
|
*
|
|
3213
3220
|
* @type {string}
|
|
3214
|
-
* @memberof
|
|
3221
|
+
* @memberof KnowledgeBaseDto
|
|
3215
3222
|
*/
|
|
3216
3223
|
orgId: string;
|
|
3217
3224
|
/**
|
|
3218
3225
|
*
|
|
3219
3226
|
* @type {number}
|
|
3220
|
-
* @memberof
|
|
3227
|
+
* @memberof KnowledgeBaseDto
|
|
3221
3228
|
*/
|
|
3222
3229
|
createdAt: number;
|
|
3223
3230
|
/**
|
|
3224
3231
|
*
|
|
3225
3232
|
* @type {number}
|
|
3226
|
-
* @memberof
|
|
3233
|
+
* @memberof KnowledgeBaseDto
|
|
3227
3234
|
*/
|
|
3228
3235
|
updatedAt: number;
|
|
3236
|
+
/**
|
|
3237
|
+
*
|
|
3238
|
+
* @type {string}
|
|
3239
|
+
* @memberof KnowledgeBaseDto
|
|
3240
|
+
*/
|
|
3241
|
+
botId?: string;
|
|
3229
3242
|
/**
|
|
3230
3243
|
*
|
|
3231
3244
|
* @type {number}
|
|
3232
|
-
* @memberof
|
|
3245
|
+
* @memberof KnowledgeBaseDto
|
|
3233
3246
|
*/
|
|
3234
3247
|
filesCount: number;
|
|
3235
3248
|
}
|
|
3236
3249
|
/**
|
|
3237
3250
|
*
|
|
3238
3251
|
* @export
|
|
3239
|
-
* @interface
|
|
3252
|
+
* @interface KnowledgeBaseFileCreateRequest
|
|
3240
3253
|
*/
|
|
3241
|
-
export interface
|
|
3254
|
+
export interface KnowledgeBaseFileCreateRequest {
|
|
3242
3255
|
/**
|
|
3243
3256
|
*
|
|
3244
3257
|
* @type {string}
|
|
3245
|
-
* @memberof
|
|
3258
|
+
* @memberof KnowledgeBaseFileCreateRequest
|
|
3246
3259
|
*/
|
|
3247
|
-
|
|
3260
|
+
locale: string;
|
|
3248
3261
|
}
|
|
3249
3262
|
/**
|
|
3250
3263
|
*
|
|
3251
3264
|
* @export
|
|
3252
|
-
* @interface
|
|
3265
|
+
* @interface KnowledgeBaseFileDto
|
|
3253
3266
|
*/
|
|
3254
|
-
export interface
|
|
3267
|
+
export interface KnowledgeBaseFileDto {
|
|
3255
3268
|
/**
|
|
3256
3269
|
*
|
|
3257
3270
|
* @type {string}
|
|
3258
|
-
* @memberof
|
|
3271
|
+
* @memberof KnowledgeBaseFileDto
|
|
3259
3272
|
*/
|
|
3260
3273
|
id: string;
|
|
3261
3274
|
/**
|
|
3262
3275
|
*
|
|
3263
3276
|
* @type {string}
|
|
3264
|
-
* @memberof
|
|
3277
|
+
* @memberof KnowledgeBaseFileDto
|
|
3265
3278
|
*/
|
|
3266
3279
|
name: string;
|
|
3267
3280
|
/**
|
|
3268
3281
|
*
|
|
3269
3282
|
* @type {string}
|
|
3270
|
-
* @memberof
|
|
3283
|
+
* @memberof KnowledgeBaseFileDto
|
|
3271
3284
|
*/
|
|
3272
3285
|
locale: string;
|
|
3273
3286
|
/**
|
|
3274
3287
|
*
|
|
3275
3288
|
* @type {number}
|
|
3276
|
-
* @memberof
|
|
3289
|
+
* @memberof KnowledgeBaseFileDto
|
|
3277
3290
|
*/
|
|
3278
3291
|
size: number;
|
|
3279
3292
|
/**
|
|
3280
3293
|
*
|
|
3281
3294
|
* @type {number}
|
|
3282
|
-
* @memberof
|
|
3295
|
+
* @memberof KnowledgeBaseFileDto
|
|
3283
3296
|
*/
|
|
3284
3297
|
uploadedAt: number;
|
|
3285
3298
|
}
|
|
3286
3299
|
/**
|
|
3287
3300
|
*
|
|
3288
3301
|
* @export
|
|
3289
|
-
* @interface
|
|
3290
|
-
*/
|
|
3291
|
-
export interface KnowledgeBaseFileCreateForm {
|
|
3292
|
-
/**
|
|
3293
|
-
*
|
|
3294
|
-
* @type {string}
|
|
3295
|
-
* @memberof KnowledgeBaseFileCreateForm
|
|
3296
|
-
*/
|
|
3297
|
-
locale: string;
|
|
3298
|
-
}
|
|
3299
|
-
/**
|
|
3300
|
-
*
|
|
3301
|
-
* @export
|
|
3302
|
-
* @interface KnowledgeBaseUpdateForm
|
|
3302
|
+
* @interface KnowledgeBaseUpdateRequest
|
|
3303
3303
|
*/
|
|
3304
|
-
export interface
|
|
3304
|
+
export interface KnowledgeBaseUpdateRequest {
|
|
3305
3305
|
/**
|
|
3306
3306
|
*
|
|
3307
3307
|
* @type {string}
|
|
3308
|
-
* @memberof
|
|
3308
|
+
* @memberof KnowledgeBaseUpdateRequest
|
|
3309
3309
|
*/
|
|
3310
3310
|
name: string;
|
|
3311
3311
|
}
|
|
@@ -6568,13 +6568,13 @@ export interface UpdateAgentGroupConfigurationForm {
|
|
|
6568
6568
|
/**
|
|
6569
6569
|
*
|
|
6570
6570
|
* @export
|
|
6571
|
-
* @interface
|
|
6571
|
+
* @interface UpdateBotKnowledgeBaseRequest
|
|
6572
6572
|
*/
|
|
6573
|
-
export interface
|
|
6573
|
+
export interface UpdateBotKnowledgeBaseRequest {
|
|
6574
6574
|
/**
|
|
6575
6575
|
*
|
|
6576
6576
|
* @type {string}
|
|
6577
|
-
* @memberof
|
|
6577
|
+
* @memberof UpdateBotKnowledgeBaseRequest
|
|
6578
6578
|
*/
|
|
6579
6579
|
knowledgeBaseId?: string;
|
|
6580
6580
|
}
|
|
@@ -7957,11 +7957,11 @@ export declare const BotsApiFetchParamCreator: (configuration?: Configuration) =
|
|
|
7957
7957
|
/**
|
|
7958
7958
|
*
|
|
7959
7959
|
* @summary Update bot's knowledge base
|
|
7960
|
-
* @param {
|
|
7960
|
+
* @param {UpdateBotKnowledgeBaseRequest} body
|
|
7961
7961
|
* @param {*} [options] Override http request option.
|
|
7962
7962
|
* @throws {RequiredError}
|
|
7963
7963
|
*/
|
|
7964
|
-
updateKnowledgeBase(body:
|
|
7964
|
+
updateKnowledgeBase(body: UpdateBotKnowledgeBaseRequest, options?: any): FetchArgs;
|
|
7965
7965
|
/**
|
|
7966
7966
|
*
|
|
7967
7967
|
* @summary update lekta config
|
|
@@ -8040,11 +8040,11 @@ export declare const BotsApiFp: (configuration?: Configuration) => {
|
|
|
8040
8040
|
/**
|
|
8041
8041
|
*
|
|
8042
8042
|
* @summary Update bot's knowledge base
|
|
8043
|
-
* @param {
|
|
8043
|
+
* @param {UpdateBotKnowledgeBaseRequest} body
|
|
8044
8044
|
* @param {*} [options] Override http request option.
|
|
8045
8045
|
* @throws {RequiredError}
|
|
8046
8046
|
*/
|
|
8047
|
-
updateKnowledgeBase(body:
|
|
8047
|
+
updateKnowledgeBase(body: UpdateBotKnowledgeBaseRequest, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<BotInfo>;
|
|
8048
8048
|
/**
|
|
8049
8049
|
*
|
|
8050
8050
|
* @summary update lekta config
|
|
@@ -8123,11 +8123,11 @@ export declare const BotsApiFactory: (configuration?: Configuration, fetch?: Fet
|
|
|
8123
8123
|
/**
|
|
8124
8124
|
*
|
|
8125
8125
|
* @summary Update bot's knowledge base
|
|
8126
|
-
* @param {
|
|
8126
|
+
* @param {UpdateBotKnowledgeBaseRequest} body
|
|
8127
8127
|
* @param {*} [options] Override http request option.
|
|
8128
8128
|
* @throws {RequiredError}
|
|
8129
8129
|
*/
|
|
8130
|
-
updateKnowledgeBase(body:
|
|
8130
|
+
updateKnowledgeBase(body: UpdateBotKnowledgeBaseRequest, options?: any): Promise<BotInfo>;
|
|
8131
8131
|
/**
|
|
8132
8132
|
*
|
|
8133
8133
|
* @summary update lekta config
|
|
@@ -8216,12 +8216,12 @@ export declare class BotsApi extends BaseAPI {
|
|
|
8216
8216
|
/**
|
|
8217
8217
|
*
|
|
8218
8218
|
* @summary Update bot's knowledge base
|
|
8219
|
-
* @param {
|
|
8219
|
+
* @param {UpdateBotKnowledgeBaseRequest} body
|
|
8220
8220
|
* @param {*} [options] Override http request option.
|
|
8221
8221
|
* @throws {RequiredError}
|
|
8222
8222
|
* @memberof BotsApi
|
|
8223
8223
|
*/
|
|
8224
|
-
updateKnowledgeBase(body:
|
|
8224
|
+
updateKnowledgeBase(body: UpdateBotKnowledgeBaseRequest, options?: any): Promise<BotInfo>;
|
|
8225
8225
|
/**
|
|
8226
8226
|
*
|
|
8227
8227
|
* @summary update lekta config
|
|
@@ -9280,20 +9280,20 @@ export declare const KnowledgeBasesApiFetchParamCreator: (configuration?: Config
|
|
|
9280
9280
|
/**
|
|
9281
9281
|
*
|
|
9282
9282
|
* @summary Create knowledge base
|
|
9283
|
-
* @param {
|
|
9283
|
+
* @param {KnowledgeBaseCreateRequest} body
|
|
9284
9284
|
* @param {*} [options] Override http request option.
|
|
9285
9285
|
* @throws {RequiredError}
|
|
9286
9286
|
*/
|
|
9287
|
-
create(body:
|
|
9287
|
+
create(body: KnowledgeBaseCreateRequest, options?: any): FetchArgs;
|
|
9288
9288
|
/**
|
|
9289
9289
|
*
|
|
9290
9290
|
* @summary Create knowledge base's handle
|
|
9291
9291
|
* @param {string} id
|
|
9292
|
-
* @param {
|
|
9292
|
+
* @param {KnowledgeBaseFileCreateRequest} [body]
|
|
9293
9293
|
* @param {*} [options] Override http request option.
|
|
9294
9294
|
* @throws {RequiredError}
|
|
9295
9295
|
*/
|
|
9296
|
-
createKnowledgeBaseHandle(id: string, body?:
|
|
9296
|
+
createKnowledgeBaseHandle(id: string, body?: KnowledgeBaseFileCreateRequest, options?: any): FetchArgs;
|
|
9297
9297
|
/**
|
|
9298
9298
|
*
|
|
9299
9299
|
* @summary Delete knowledge base's file
|
|
@@ -9322,11 +9322,11 @@ export declare const KnowledgeBasesApiFetchParamCreator: (configuration?: Config
|
|
|
9322
9322
|
*
|
|
9323
9323
|
* @summary Update knowledge base
|
|
9324
9324
|
* @param {string} id
|
|
9325
|
-
* @param {
|
|
9325
|
+
* @param {KnowledgeBaseUpdateRequest} [body]
|
|
9326
9326
|
* @param {*} [options] Override http request option.
|
|
9327
9327
|
* @throws {RequiredError}
|
|
9328
9328
|
*/
|
|
9329
|
-
update(id: string, body?:
|
|
9329
|
+
update(id: string, body?: KnowledgeBaseUpdateRequest, options?: any): FetchArgs;
|
|
9330
9330
|
};
|
|
9331
9331
|
/**
|
|
9332
9332
|
* KnowledgeBasesApi - functional programming interface
|
|
@@ -9344,20 +9344,20 @@ export declare const KnowledgeBasesApiFp: (configuration?: Configuration) => {
|
|
|
9344
9344
|
/**
|
|
9345
9345
|
*
|
|
9346
9346
|
* @summary Create knowledge base
|
|
9347
|
-
* @param {
|
|
9347
|
+
* @param {KnowledgeBaseCreateRequest} body
|
|
9348
9348
|
* @param {*} [options] Override http request option.
|
|
9349
9349
|
* @throws {RequiredError}
|
|
9350
9350
|
*/
|
|
9351
|
-
create(body:
|
|
9351
|
+
create(body: KnowledgeBaseCreateRequest, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<KnowledgeBaseDto>;
|
|
9352
9352
|
/**
|
|
9353
9353
|
*
|
|
9354
9354
|
* @summary Create knowledge base's handle
|
|
9355
9355
|
* @param {string} id
|
|
9356
|
-
* @param {
|
|
9356
|
+
* @param {KnowledgeBaseFileCreateRequest} [body]
|
|
9357
9357
|
* @param {*} [options] Override http request option.
|
|
9358
9358
|
* @throws {RequiredError}
|
|
9359
9359
|
*/
|
|
9360
|
-
createKnowledgeBaseHandle(id: string, body?:
|
|
9360
|
+
createKnowledgeBaseHandle(id: string, body?: KnowledgeBaseFileCreateRequest, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<FileHandle>;
|
|
9361
9361
|
/**
|
|
9362
9362
|
*
|
|
9363
9363
|
* @summary Delete knowledge base's file
|
|
@@ -9373,7 +9373,7 @@ export declare const KnowledgeBasesApiFp: (configuration?: Configuration) => {
|
|
|
9373
9373
|
* @param {*} [options] Override http request option.
|
|
9374
9374
|
* @throws {RequiredError}
|
|
9375
9375
|
*/
|
|
9376
|
-
getByOrgId(options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<Array<
|
|
9376
|
+
getByOrgId(options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<Array<KnowledgeBaseDto>>;
|
|
9377
9377
|
/**
|
|
9378
9378
|
*
|
|
9379
9379
|
* @summary Get uploaded knowledge base's files
|
|
@@ -9381,16 +9381,16 @@ export declare const KnowledgeBasesApiFp: (configuration?: Configuration) => {
|
|
|
9381
9381
|
* @param {*} [options] Override http request option.
|
|
9382
9382
|
* @throws {RequiredError}
|
|
9383
9383
|
*/
|
|
9384
|
-
getUploadedFiles(id: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<Array<
|
|
9384
|
+
getUploadedFiles(id: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<Array<KnowledgeBaseFileDto>>;
|
|
9385
9385
|
/**
|
|
9386
9386
|
*
|
|
9387
9387
|
* @summary Update knowledge base
|
|
9388
9388
|
* @param {string} id
|
|
9389
|
-
* @param {
|
|
9389
|
+
* @param {KnowledgeBaseUpdateRequest} [body]
|
|
9390
9390
|
* @param {*} [options] Override http request option.
|
|
9391
9391
|
* @throws {RequiredError}
|
|
9392
9392
|
*/
|
|
9393
|
-
update(id: string, body?:
|
|
9393
|
+
update(id: string, body?: KnowledgeBaseUpdateRequest, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<KnowledgeBaseDto>;
|
|
9394
9394
|
};
|
|
9395
9395
|
/**
|
|
9396
9396
|
* KnowledgeBasesApi - factory interface
|
|
@@ -9408,20 +9408,20 @@ export declare const KnowledgeBasesApiFactory: (configuration?: Configuration, f
|
|
|
9408
9408
|
/**
|
|
9409
9409
|
*
|
|
9410
9410
|
* @summary Create knowledge base
|
|
9411
|
-
* @param {
|
|
9411
|
+
* @param {KnowledgeBaseCreateRequest} body
|
|
9412
9412
|
* @param {*} [options] Override http request option.
|
|
9413
9413
|
* @throws {RequiredError}
|
|
9414
9414
|
*/
|
|
9415
|
-
create(body:
|
|
9415
|
+
create(body: KnowledgeBaseCreateRequest, options?: any): Promise<KnowledgeBaseDto>;
|
|
9416
9416
|
/**
|
|
9417
9417
|
*
|
|
9418
9418
|
* @summary Create knowledge base's handle
|
|
9419
9419
|
* @param {string} id
|
|
9420
|
-
* @param {
|
|
9420
|
+
* @param {KnowledgeBaseFileCreateRequest} [body]
|
|
9421
9421
|
* @param {*} [options] Override http request option.
|
|
9422
9422
|
* @throws {RequiredError}
|
|
9423
9423
|
*/
|
|
9424
|
-
createKnowledgeBaseHandle(id: string, body?:
|
|
9424
|
+
createKnowledgeBaseHandle(id: string, body?: KnowledgeBaseFileCreateRequest, options?: any): Promise<FileHandle>;
|
|
9425
9425
|
/**
|
|
9426
9426
|
*
|
|
9427
9427
|
* @summary Delete knowledge base's file
|
|
@@ -9437,7 +9437,7 @@ export declare const KnowledgeBasesApiFactory: (configuration?: Configuration, f
|
|
|
9437
9437
|
* @param {*} [options] Override http request option.
|
|
9438
9438
|
* @throws {RequiredError}
|
|
9439
9439
|
*/
|
|
9440
|
-
getByOrgId(options?: any): Promise<
|
|
9440
|
+
getByOrgId(options?: any): Promise<KnowledgeBaseDto[]>;
|
|
9441
9441
|
/**
|
|
9442
9442
|
*
|
|
9443
9443
|
* @summary Get uploaded knowledge base's files
|
|
@@ -9445,16 +9445,16 @@ export declare const KnowledgeBasesApiFactory: (configuration?: Configuration, f
|
|
|
9445
9445
|
* @param {*} [options] Override http request option.
|
|
9446
9446
|
* @throws {RequiredError}
|
|
9447
9447
|
*/
|
|
9448
|
-
getUploadedFiles(id: string, options?: any): Promise<
|
|
9448
|
+
getUploadedFiles(id: string, options?: any): Promise<KnowledgeBaseFileDto[]>;
|
|
9449
9449
|
/**
|
|
9450
9450
|
*
|
|
9451
9451
|
* @summary Update knowledge base
|
|
9452
9452
|
* @param {string} id
|
|
9453
|
-
* @param {
|
|
9453
|
+
* @param {KnowledgeBaseUpdateRequest} [body]
|
|
9454
9454
|
* @param {*} [options] Override http request option.
|
|
9455
9455
|
* @throws {RequiredError}
|
|
9456
9456
|
*/
|
|
9457
|
-
update(id: string, body?:
|
|
9457
|
+
update(id: string, body?: KnowledgeBaseUpdateRequest, options?: any): Promise<KnowledgeBaseDto>;
|
|
9458
9458
|
};
|
|
9459
9459
|
/**
|
|
9460
9460
|
* KnowledgeBasesApi - object-oriented interface
|
|
@@ -9475,22 +9475,22 @@ export declare class KnowledgeBasesApi extends BaseAPI {
|
|
|
9475
9475
|
/**
|
|
9476
9476
|
*
|
|
9477
9477
|
* @summary Create knowledge base
|
|
9478
|
-
* @param {
|
|
9478
|
+
* @param {KnowledgeBaseCreateRequest} body
|
|
9479
9479
|
* @param {*} [options] Override http request option.
|
|
9480
9480
|
* @throws {RequiredError}
|
|
9481
9481
|
* @memberof KnowledgeBasesApi
|
|
9482
9482
|
*/
|
|
9483
|
-
create(body:
|
|
9483
|
+
create(body: KnowledgeBaseCreateRequest, options?: any): Promise<KnowledgeBaseDto>;
|
|
9484
9484
|
/**
|
|
9485
9485
|
*
|
|
9486
9486
|
* @summary Create knowledge base's handle
|
|
9487
9487
|
* @param {string} id
|
|
9488
|
-
* @param {
|
|
9488
|
+
* @param {KnowledgeBaseFileCreateRequest} [body]
|
|
9489
9489
|
* @param {*} [options] Override http request option.
|
|
9490
9490
|
* @throws {RequiredError}
|
|
9491
9491
|
* @memberof KnowledgeBasesApi
|
|
9492
9492
|
*/
|
|
9493
|
-
createKnowledgeBaseHandle(id: string, body?:
|
|
9493
|
+
createKnowledgeBaseHandle(id: string, body?: KnowledgeBaseFileCreateRequest, options?: any): Promise<FileHandle>;
|
|
9494
9494
|
/**
|
|
9495
9495
|
*
|
|
9496
9496
|
* @summary Delete knowledge base's file
|
|
@@ -9508,7 +9508,7 @@ export declare class KnowledgeBasesApi extends BaseAPI {
|
|
|
9508
9508
|
* @throws {RequiredError}
|
|
9509
9509
|
* @memberof KnowledgeBasesApi
|
|
9510
9510
|
*/
|
|
9511
|
-
getByOrgId(options?: any): Promise<
|
|
9511
|
+
getByOrgId(options?: any): Promise<KnowledgeBaseDto[]>;
|
|
9512
9512
|
/**
|
|
9513
9513
|
*
|
|
9514
9514
|
* @summary Get uploaded knowledge base's files
|
|
@@ -9517,17 +9517,17 @@ export declare class KnowledgeBasesApi extends BaseAPI {
|
|
|
9517
9517
|
* @throws {RequiredError}
|
|
9518
9518
|
* @memberof KnowledgeBasesApi
|
|
9519
9519
|
*/
|
|
9520
|
-
getUploadedFiles(id: string, options?: any): Promise<
|
|
9520
|
+
getUploadedFiles(id: string, options?: any): Promise<KnowledgeBaseFileDto[]>;
|
|
9521
9521
|
/**
|
|
9522
9522
|
*
|
|
9523
9523
|
* @summary Update knowledge base
|
|
9524
9524
|
* @param {string} id
|
|
9525
|
-
* @param {
|
|
9525
|
+
* @param {KnowledgeBaseUpdateRequest} [body]
|
|
9526
9526
|
* @param {*} [options] Override http request option.
|
|
9527
9527
|
* @throws {RequiredError}
|
|
9528
9528
|
* @memberof KnowledgeBasesApi
|
|
9529
9529
|
*/
|
|
9530
|
-
update(id: string, body?:
|
|
9530
|
+
update(id: string, body?: KnowledgeBaseUpdateRequest, options?: any): Promise<KnowledgeBaseDto>;
|
|
9531
9531
|
}
|
|
9532
9532
|
/**
|
|
9533
9533
|
* MainNotificationsApi - fetch parameter creator
|
package/dist/api.js
CHANGED
|
@@ -2277,7 +2277,7 @@ const BotsApiFetchParamCreator = function (configuration) {
|
|
|
2277
2277
|
/**
|
|
2278
2278
|
*
|
|
2279
2279
|
* @summary Update bot's knowledge base
|
|
2280
|
-
* @param {
|
|
2280
|
+
* @param {UpdateBotKnowledgeBaseRequest} body
|
|
2281
2281
|
* @param {*} [options] Override http request option.
|
|
2282
2282
|
* @throws {RequiredError}
|
|
2283
2283
|
*/
|
|
@@ -2303,7 +2303,7 @@ const BotsApiFetchParamCreator = function (configuration) {
|
|
|
2303
2303
|
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
2304
2304
|
delete localVarUrlObj.search;
|
|
2305
2305
|
localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
|
|
2306
|
-
const needsSerialization = ("
|
|
2306
|
+
const needsSerialization = ("UpdateBotKnowledgeBaseRequest" !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
|
|
2307
2307
|
localVarRequestOptions.body = needsSerialization ? JSON.stringify(body || {}) : (body || "");
|
|
2308
2308
|
return {
|
|
2309
2309
|
url: url.format(localVarUrlObj),
|
|
@@ -2515,7 +2515,7 @@ const BotsApiFp = function (configuration) {
|
|
|
2515
2515
|
/**
|
|
2516
2516
|
*
|
|
2517
2517
|
* @summary Update bot's knowledge base
|
|
2518
|
-
* @param {
|
|
2518
|
+
* @param {UpdateBotKnowledgeBaseRequest} body
|
|
2519
2519
|
* @param {*} [options] Override http request option.
|
|
2520
2520
|
* @throws {RequiredError}
|
|
2521
2521
|
*/
|
|
@@ -2641,7 +2641,7 @@ const BotsApiFactory = function (configuration, fetch, basePath) {
|
|
|
2641
2641
|
/**
|
|
2642
2642
|
*
|
|
2643
2643
|
* @summary Update bot's knowledge base
|
|
2644
|
-
* @param {
|
|
2644
|
+
* @param {UpdateBotKnowledgeBaseRequest} body
|
|
2645
2645
|
* @param {*} [options] Override http request option.
|
|
2646
2646
|
* @throws {RequiredError}
|
|
2647
2647
|
*/
|
|
@@ -2756,7 +2756,7 @@ class BotsApi extends BaseAPI {
|
|
|
2756
2756
|
/**
|
|
2757
2757
|
*
|
|
2758
2758
|
* @summary Update bot's knowledge base
|
|
2759
|
-
* @param {
|
|
2759
|
+
* @param {UpdateBotKnowledgeBaseRequest} body
|
|
2760
2760
|
* @param {*} [options] Override http request option.
|
|
2761
2761
|
* @throws {RequiredError}
|
|
2762
2762
|
* @memberof BotsApi
|
|
@@ -4992,7 +4992,7 @@ const KnowledgeBasesApiFetchParamCreator = function (configuration) {
|
|
|
4992
4992
|
/**
|
|
4993
4993
|
*
|
|
4994
4994
|
* @summary Create knowledge base
|
|
4995
|
-
* @param {
|
|
4995
|
+
* @param {KnowledgeBaseCreateRequest} body
|
|
4996
4996
|
* @param {*} [options] Override http request option.
|
|
4997
4997
|
* @throws {RequiredError}
|
|
4998
4998
|
*/
|
|
@@ -5018,7 +5018,7 @@ const KnowledgeBasesApiFetchParamCreator = function (configuration) {
|
|
|
5018
5018
|
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
5019
5019
|
delete localVarUrlObj.search;
|
|
5020
5020
|
localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
|
|
5021
|
-
const needsSerialization = ("
|
|
5021
|
+
const needsSerialization = ("KnowledgeBaseCreateRequest" !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
|
|
5022
5022
|
localVarRequestOptions.body = needsSerialization ? JSON.stringify(body || {}) : (body || "");
|
|
5023
5023
|
return {
|
|
5024
5024
|
url: url.format(localVarUrlObj),
|
|
@@ -5029,7 +5029,7 @@ const KnowledgeBasesApiFetchParamCreator = function (configuration) {
|
|
|
5029
5029
|
*
|
|
5030
5030
|
* @summary Create knowledge base's handle
|
|
5031
5031
|
* @param {string} id
|
|
5032
|
-
* @param {
|
|
5032
|
+
* @param {KnowledgeBaseFileCreateRequest} [body]
|
|
5033
5033
|
* @param {*} [options] Override http request option.
|
|
5034
5034
|
* @throws {RequiredError}
|
|
5035
5035
|
*/
|
|
@@ -5056,7 +5056,7 @@ const KnowledgeBasesApiFetchParamCreator = function (configuration) {
|
|
|
5056
5056
|
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
5057
5057
|
delete localVarUrlObj.search;
|
|
5058
5058
|
localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
|
|
5059
|
-
const needsSerialization = ("
|
|
5059
|
+
const needsSerialization = ("KnowledgeBaseFileCreateRequest" !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
|
|
5060
5060
|
localVarRequestOptions.body = needsSerialization ? JSON.stringify(body || {}) : (body || "");
|
|
5061
5061
|
return {
|
|
5062
5062
|
url: url.format(localVarUrlObj),
|
|
@@ -5169,7 +5169,7 @@ const KnowledgeBasesApiFetchParamCreator = function (configuration) {
|
|
|
5169
5169
|
*
|
|
5170
5170
|
* @summary Update knowledge base
|
|
5171
5171
|
* @param {string} id
|
|
5172
|
-
* @param {
|
|
5172
|
+
* @param {KnowledgeBaseUpdateRequest} [body]
|
|
5173
5173
|
* @param {*} [options] Override http request option.
|
|
5174
5174
|
* @throws {RequiredError}
|
|
5175
5175
|
*/
|
|
@@ -5196,7 +5196,7 @@ const KnowledgeBasesApiFetchParamCreator = function (configuration) {
|
|
|
5196
5196
|
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
5197
5197
|
delete localVarUrlObj.search;
|
|
5198
5198
|
localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
|
|
5199
|
-
const needsSerialization = ("
|
|
5199
|
+
const needsSerialization = ("KnowledgeBaseUpdateRequest" !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
|
|
5200
5200
|
localVarRequestOptions.body = needsSerialization ? JSON.stringify(body || {}) : (body || "");
|
|
5201
5201
|
return {
|
|
5202
5202
|
url: url.format(localVarUrlObj),
|
|
@@ -5235,7 +5235,7 @@ const KnowledgeBasesApiFp = function (configuration) {
|
|
|
5235
5235
|
/**
|
|
5236
5236
|
*
|
|
5237
5237
|
* @summary Create knowledge base
|
|
5238
|
-
* @param {
|
|
5238
|
+
* @param {KnowledgeBaseCreateRequest} body
|
|
5239
5239
|
* @param {*} [options] Override http request option.
|
|
5240
5240
|
* @throws {RequiredError}
|
|
5241
5241
|
*/
|
|
@@ -5256,7 +5256,7 @@ const KnowledgeBasesApiFp = function (configuration) {
|
|
|
5256
5256
|
*
|
|
5257
5257
|
* @summary Create knowledge base's handle
|
|
5258
5258
|
* @param {string} id
|
|
5259
|
-
* @param {
|
|
5259
|
+
* @param {KnowledgeBaseFileCreateRequest} [body]
|
|
5260
5260
|
* @param {*} [options] Override http request option.
|
|
5261
5261
|
* @throws {RequiredError}
|
|
5262
5262
|
*/
|
|
@@ -5337,7 +5337,7 @@ const KnowledgeBasesApiFp = function (configuration) {
|
|
|
5337
5337
|
*
|
|
5338
5338
|
* @summary Update knowledge base
|
|
5339
5339
|
* @param {string} id
|
|
5340
|
-
* @param {
|
|
5340
|
+
* @param {KnowledgeBaseUpdateRequest} [body]
|
|
5341
5341
|
* @param {*} [options] Override http request option.
|
|
5342
5342
|
* @throws {RequiredError}
|
|
5343
5343
|
*/
|
|
@@ -5346,7 +5346,7 @@ const KnowledgeBasesApiFp = function (configuration) {
|
|
|
5346
5346
|
return (fetch = isomorphicFetch, basePath = BASE_PATH) => {
|
|
5347
5347
|
return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
|
|
5348
5348
|
if (response.status >= 200 && response.status < 300) {
|
|
5349
|
-
return response;
|
|
5349
|
+
return response.json();
|
|
5350
5350
|
}
|
|
5351
5351
|
else {
|
|
5352
5352
|
throw response;
|
|
@@ -5376,7 +5376,7 @@ const KnowledgeBasesApiFactory = function (configuration, fetch, basePath) {
|
|
|
5376
5376
|
/**
|
|
5377
5377
|
*
|
|
5378
5378
|
* @summary Create knowledge base
|
|
5379
|
-
* @param {
|
|
5379
|
+
* @param {KnowledgeBaseCreateRequest} body
|
|
5380
5380
|
* @param {*} [options] Override http request option.
|
|
5381
5381
|
* @throws {RequiredError}
|
|
5382
5382
|
*/
|
|
@@ -5387,7 +5387,7 @@ const KnowledgeBasesApiFactory = function (configuration, fetch, basePath) {
|
|
|
5387
5387
|
*
|
|
5388
5388
|
* @summary Create knowledge base's handle
|
|
5389
5389
|
* @param {string} id
|
|
5390
|
-
* @param {
|
|
5390
|
+
* @param {KnowledgeBaseFileCreateRequest} [body]
|
|
5391
5391
|
* @param {*} [options] Override http request option.
|
|
5392
5392
|
* @throws {RequiredError}
|
|
5393
5393
|
*/
|
|
@@ -5428,7 +5428,7 @@ const KnowledgeBasesApiFactory = function (configuration, fetch, basePath) {
|
|
|
5428
5428
|
*
|
|
5429
5429
|
* @summary Update knowledge base
|
|
5430
5430
|
* @param {string} id
|
|
5431
|
-
* @param {
|
|
5431
|
+
* @param {KnowledgeBaseUpdateRequest} [body]
|
|
5432
5432
|
* @param {*} [options] Override http request option.
|
|
5433
5433
|
* @throws {RequiredError}
|
|
5434
5434
|
*/
|
|
@@ -5459,7 +5459,7 @@ class KnowledgeBasesApi extends BaseAPI {
|
|
|
5459
5459
|
/**
|
|
5460
5460
|
*
|
|
5461
5461
|
* @summary Create knowledge base
|
|
5462
|
-
* @param {
|
|
5462
|
+
* @param {KnowledgeBaseCreateRequest} body
|
|
5463
5463
|
* @param {*} [options] Override http request option.
|
|
5464
5464
|
* @throws {RequiredError}
|
|
5465
5465
|
* @memberof KnowledgeBasesApi
|
|
@@ -5471,7 +5471,7 @@ class KnowledgeBasesApi extends BaseAPI {
|
|
|
5471
5471
|
*
|
|
5472
5472
|
* @summary Create knowledge base's handle
|
|
5473
5473
|
* @param {string} id
|
|
5474
|
-
* @param {
|
|
5474
|
+
* @param {KnowledgeBaseFileCreateRequest} [body]
|
|
5475
5475
|
* @param {*} [options] Override http request option.
|
|
5476
5476
|
* @throws {RequiredError}
|
|
5477
5477
|
* @memberof KnowledgeBasesApi
|
|
@@ -5516,7 +5516,7 @@ class KnowledgeBasesApi extends BaseAPI {
|
|
|
5516
5516
|
*
|
|
5517
5517
|
* @summary Update knowledge base
|
|
5518
5518
|
* @param {string} id
|
|
5519
|
-
* @param {
|
|
5519
|
+
* @param {KnowledgeBaseUpdateRequest} [body]
|
|
5520
5520
|
* @param {*} [options] Override http request option.
|
|
5521
5521
|
* @throws {RequiredError}
|
|
5522
5522
|
* @memberof KnowledgeBasesApi
|