@closerplatform/spinner-openapi 0.12.934 → 0.12.935

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.
Files changed (3) hide show
  1. package/dist/api.d.ts +74 -80
  2. package/dist/api.js +21 -21
  3. package/package.json +1 -1
package/dist/api.d.ts CHANGED
@@ -3187,125 +3187,119 @@ export interface InviteeForm {
3187
3187
  /**
3188
3188
  *
3189
3189
  * @export
3190
- * @interface KnowledgeBase
3190
+ * @interface KnowledgeBaseCreateRequest
3191
3191
  */
3192
- export interface KnowledgeBase {
3192
+ export interface KnowledgeBaseCreateRequest {
3193
3193
  /**
3194
3194
  *
3195
3195
  * @type {string}
3196
- * @memberof KnowledgeBase
3196
+ * @memberof KnowledgeBaseCreateRequest
3197
3197
  */
3198
- id: string;
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 KnowledgeBase
3209
+ * @memberof KnowledgeBaseDto
3203
3210
  */
3204
- name: string;
3211
+ id: string;
3205
3212
  /**
3206
3213
  *
3207
3214
  * @type {string}
3208
- * @memberof KnowledgeBase
3215
+ * @memberof KnowledgeBaseDto
3209
3216
  */
3210
- description?: string;
3217
+ name: string;
3211
3218
  /**
3212
3219
  *
3213
3220
  * @type {string}
3214
- * @memberof KnowledgeBase
3221
+ * @memberof KnowledgeBaseDto
3215
3222
  */
3216
3223
  orgId: string;
3217
3224
  /**
3218
3225
  *
3219
3226
  * @type {number}
3220
- * @memberof KnowledgeBase
3227
+ * @memberof KnowledgeBaseDto
3221
3228
  */
3222
3229
  createdAt: number;
3223
3230
  /**
3224
3231
  *
3225
3232
  * @type {number}
3226
- * @memberof KnowledgeBase
3233
+ * @memberof KnowledgeBaseDto
3227
3234
  */
3228
3235
  updatedAt: number;
3229
3236
  /**
3230
3237
  *
3231
3238
  * @type {number}
3232
- * @memberof KnowledgeBase
3239
+ * @memberof KnowledgeBaseDto
3233
3240
  */
3234
3241
  filesCount: number;
3235
3242
  }
3236
3243
  /**
3237
3244
  *
3238
3245
  * @export
3239
- * @interface KnowledgeBaseCreateForm
3246
+ * @interface KnowledgeBaseFileCreateRequest
3240
3247
  */
3241
- export interface KnowledgeBaseCreateForm {
3248
+ export interface KnowledgeBaseFileCreateRequest {
3242
3249
  /**
3243
3250
  *
3244
3251
  * @type {string}
3245
- * @memberof KnowledgeBaseCreateForm
3252
+ * @memberof KnowledgeBaseFileCreateRequest
3246
3253
  */
3247
- name: string;
3254
+ locale: string;
3248
3255
  }
3249
3256
  /**
3250
3257
  *
3251
3258
  * @export
3252
- * @interface KnowledgeBaseFile
3259
+ * @interface KnowledgeBaseFileDto
3253
3260
  */
3254
- export interface KnowledgeBaseFile {
3261
+ export interface KnowledgeBaseFileDto {
3255
3262
  /**
3256
3263
  *
3257
3264
  * @type {string}
3258
- * @memberof KnowledgeBaseFile
3265
+ * @memberof KnowledgeBaseFileDto
3259
3266
  */
3260
3267
  id: string;
3261
3268
  /**
3262
3269
  *
3263
3270
  * @type {string}
3264
- * @memberof KnowledgeBaseFile
3271
+ * @memberof KnowledgeBaseFileDto
3265
3272
  */
3266
3273
  name: string;
3267
3274
  /**
3268
3275
  *
3269
3276
  * @type {string}
3270
- * @memberof KnowledgeBaseFile
3277
+ * @memberof KnowledgeBaseFileDto
3271
3278
  */
3272
3279
  locale: string;
3273
3280
  /**
3274
3281
  *
3275
3282
  * @type {number}
3276
- * @memberof KnowledgeBaseFile
3283
+ * @memberof KnowledgeBaseFileDto
3277
3284
  */
3278
3285
  size: number;
3279
3286
  /**
3280
3287
  *
3281
3288
  * @type {number}
3282
- * @memberof KnowledgeBaseFile
3289
+ * @memberof KnowledgeBaseFileDto
3283
3290
  */
3284
3291
  uploadedAt: number;
3285
3292
  }
3286
3293
  /**
3287
3294
  *
3288
3295
  * @export
3289
- * @interface KnowledgeBaseFileCreateForm
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
3296
+ * @interface KnowledgeBaseUpdateRequest
3303
3297
  */
3304
- export interface KnowledgeBaseUpdateForm {
3298
+ export interface KnowledgeBaseUpdateRequest {
3305
3299
  /**
3306
3300
  *
3307
3301
  * @type {string}
3308
- * @memberof KnowledgeBaseUpdateForm
3302
+ * @memberof KnowledgeBaseUpdateRequest
3309
3303
  */
3310
3304
  name: string;
3311
3305
  }
@@ -6568,13 +6562,13 @@ export interface UpdateAgentGroupConfigurationForm {
6568
6562
  /**
6569
6563
  *
6570
6564
  * @export
6571
- * @interface UpdateBotKnowledgeBaseForm
6565
+ * @interface UpdateBotKnowledgeBaseRequest
6572
6566
  */
6573
- export interface UpdateBotKnowledgeBaseForm {
6567
+ export interface UpdateBotKnowledgeBaseRequest {
6574
6568
  /**
6575
6569
  *
6576
6570
  * @type {string}
6577
- * @memberof UpdateBotKnowledgeBaseForm
6571
+ * @memberof UpdateBotKnowledgeBaseRequest
6578
6572
  */
6579
6573
  knowledgeBaseId?: string;
6580
6574
  }
@@ -7957,11 +7951,11 @@ export declare const BotsApiFetchParamCreator: (configuration?: Configuration) =
7957
7951
  /**
7958
7952
  *
7959
7953
  * @summary Update bot's knowledge base
7960
- * @param {UpdateBotKnowledgeBaseForm} body
7954
+ * @param {UpdateBotKnowledgeBaseRequest} body
7961
7955
  * @param {*} [options] Override http request option.
7962
7956
  * @throws {RequiredError}
7963
7957
  */
7964
- updateKnowledgeBase(body: UpdateBotKnowledgeBaseForm, options?: any): FetchArgs;
7958
+ updateKnowledgeBase(body: UpdateBotKnowledgeBaseRequest, options?: any): FetchArgs;
7965
7959
  /**
7966
7960
  *
7967
7961
  * @summary update lekta config
@@ -8040,11 +8034,11 @@ export declare const BotsApiFp: (configuration?: Configuration) => {
8040
8034
  /**
8041
8035
  *
8042
8036
  * @summary Update bot's knowledge base
8043
- * @param {UpdateBotKnowledgeBaseForm} body
8037
+ * @param {UpdateBotKnowledgeBaseRequest} body
8044
8038
  * @param {*} [options] Override http request option.
8045
8039
  * @throws {RequiredError}
8046
8040
  */
8047
- updateKnowledgeBase(body: UpdateBotKnowledgeBaseForm, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<BotInfo>;
8041
+ updateKnowledgeBase(body: UpdateBotKnowledgeBaseRequest, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<BotInfo>;
8048
8042
  /**
8049
8043
  *
8050
8044
  * @summary update lekta config
@@ -8123,11 +8117,11 @@ export declare const BotsApiFactory: (configuration?: Configuration, fetch?: Fet
8123
8117
  /**
8124
8118
  *
8125
8119
  * @summary Update bot's knowledge base
8126
- * @param {UpdateBotKnowledgeBaseForm} body
8120
+ * @param {UpdateBotKnowledgeBaseRequest} body
8127
8121
  * @param {*} [options] Override http request option.
8128
8122
  * @throws {RequiredError}
8129
8123
  */
8130
- updateKnowledgeBase(body: UpdateBotKnowledgeBaseForm, options?: any): Promise<BotInfo>;
8124
+ updateKnowledgeBase(body: UpdateBotKnowledgeBaseRequest, options?: any): Promise<BotInfo>;
8131
8125
  /**
8132
8126
  *
8133
8127
  * @summary update lekta config
@@ -8216,12 +8210,12 @@ export declare class BotsApi extends BaseAPI {
8216
8210
  /**
8217
8211
  *
8218
8212
  * @summary Update bot's knowledge base
8219
- * @param {UpdateBotKnowledgeBaseForm} body
8213
+ * @param {UpdateBotKnowledgeBaseRequest} body
8220
8214
  * @param {*} [options] Override http request option.
8221
8215
  * @throws {RequiredError}
8222
8216
  * @memberof BotsApi
8223
8217
  */
8224
- updateKnowledgeBase(body: UpdateBotKnowledgeBaseForm, options?: any): Promise<BotInfo>;
8218
+ updateKnowledgeBase(body: UpdateBotKnowledgeBaseRequest, options?: any): Promise<BotInfo>;
8225
8219
  /**
8226
8220
  *
8227
8221
  * @summary update lekta config
@@ -9280,20 +9274,20 @@ export declare const KnowledgeBasesApiFetchParamCreator: (configuration?: Config
9280
9274
  /**
9281
9275
  *
9282
9276
  * @summary Create knowledge base
9283
- * @param {KnowledgeBaseCreateForm} body
9277
+ * @param {KnowledgeBaseCreateRequest} body
9284
9278
  * @param {*} [options] Override http request option.
9285
9279
  * @throws {RequiredError}
9286
9280
  */
9287
- create(body: KnowledgeBaseCreateForm, options?: any): FetchArgs;
9281
+ create(body: KnowledgeBaseCreateRequest, options?: any): FetchArgs;
9288
9282
  /**
9289
9283
  *
9290
9284
  * @summary Create knowledge base's handle
9291
9285
  * @param {string} id
9292
- * @param {KnowledgeBaseFileCreateForm} [body]
9286
+ * @param {KnowledgeBaseFileCreateRequest} [body]
9293
9287
  * @param {*} [options] Override http request option.
9294
9288
  * @throws {RequiredError}
9295
9289
  */
9296
- createKnowledgeBaseHandle(id: string, body?: KnowledgeBaseFileCreateForm, options?: any): FetchArgs;
9290
+ createKnowledgeBaseHandle(id: string, body?: KnowledgeBaseFileCreateRequest, options?: any): FetchArgs;
9297
9291
  /**
9298
9292
  *
9299
9293
  * @summary Delete knowledge base's file
@@ -9322,11 +9316,11 @@ export declare const KnowledgeBasesApiFetchParamCreator: (configuration?: Config
9322
9316
  *
9323
9317
  * @summary Update knowledge base
9324
9318
  * @param {string} id
9325
- * @param {KnowledgeBaseUpdateForm} [body]
9319
+ * @param {KnowledgeBaseUpdateRequest} [body]
9326
9320
  * @param {*} [options] Override http request option.
9327
9321
  * @throws {RequiredError}
9328
9322
  */
9329
- update(id: string, body?: KnowledgeBaseUpdateForm, options?: any): FetchArgs;
9323
+ update(id: string, body?: KnowledgeBaseUpdateRequest, options?: any): FetchArgs;
9330
9324
  };
9331
9325
  /**
9332
9326
  * KnowledgeBasesApi - functional programming interface
@@ -9344,20 +9338,20 @@ export declare const KnowledgeBasesApiFp: (configuration?: Configuration) => {
9344
9338
  /**
9345
9339
  *
9346
9340
  * @summary Create knowledge base
9347
- * @param {KnowledgeBaseCreateForm} body
9341
+ * @param {KnowledgeBaseCreateRequest} body
9348
9342
  * @param {*} [options] Override http request option.
9349
9343
  * @throws {RequiredError}
9350
9344
  */
9351
- create(body: KnowledgeBaseCreateForm, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<KnowledgeBase>;
9345
+ create(body: KnowledgeBaseCreateRequest, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<KnowledgeBaseDto>;
9352
9346
  /**
9353
9347
  *
9354
9348
  * @summary Create knowledge base's handle
9355
9349
  * @param {string} id
9356
- * @param {KnowledgeBaseFileCreateForm} [body]
9350
+ * @param {KnowledgeBaseFileCreateRequest} [body]
9357
9351
  * @param {*} [options] Override http request option.
9358
9352
  * @throws {RequiredError}
9359
9353
  */
9360
- createKnowledgeBaseHandle(id: string, body?: KnowledgeBaseFileCreateForm, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<FileHandle>;
9354
+ createKnowledgeBaseHandle(id: string, body?: KnowledgeBaseFileCreateRequest, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<FileHandle>;
9361
9355
  /**
9362
9356
  *
9363
9357
  * @summary Delete knowledge base's file
@@ -9373,7 +9367,7 @@ export declare const KnowledgeBasesApiFp: (configuration?: Configuration) => {
9373
9367
  * @param {*} [options] Override http request option.
9374
9368
  * @throws {RequiredError}
9375
9369
  */
9376
- getByOrgId(options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<Array<KnowledgeBase>>;
9370
+ getByOrgId(options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<Array<KnowledgeBaseDto>>;
9377
9371
  /**
9378
9372
  *
9379
9373
  * @summary Get uploaded knowledge base's files
@@ -9381,16 +9375,16 @@ export declare const KnowledgeBasesApiFp: (configuration?: Configuration) => {
9381
9375
  * @param {*} [options] Override http request option.
9382
9376
  * @throws {RequiredError}
9383
9377
  */
9384
- getUploadedFiles(id: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<Array<KnowledgeBaseFile>>;
9378
+ getUploadedFiles(id: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<Array<KnowledgeBaseFileDto>>;
9385
9379
  /**
9386
9380
  *
9387
9381
  * @summary Update knowledge base
9388
9382
  * @param {string} id
9389
- * @param {KnowledgeBaseUpdateForm} [body]
9383
+ * @param {KnowledgeBaseUpdateRequest} [body]
9390
9384
  * @param {*} [options] Override http request option.
9391
9385
  * @throws {RequiredError}
9392
9386
  */
9393
- update(id: string, body?: KnowledgeBaseUpdateForm, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<Response>;
9387
+ update(id: string, body?: KnowledgeBaseUpdateRequest, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<KnowledgeBaseDto>;
9394
9388
  };
9395
9389
  /**
9396
9390
  * KnowledgeBasesApi - factory interface
@@ -9408,20 +9402,20 @@ export declare const KnowledgeBasesApiFactory: (configuration?: Configuration, f
9408
9402
  /**
9409
9403
  *
9410
9404
  * @summary Create knowledge base
9411
- * @param {KnowledgeBaseCreateForm} body
9405
+ * @param {KnowledgeBaseCreateRequest} body
9412
9406
  * @param {*} [options] Override http request option.
9413
9407
  * @throws {RequiredError}
9414
9408
  */
9415
- create(body: KnowledgeBaseCreateForm, options?: any): Promise<KnowledgeBase>;
9409
+ create(body: KnowledgeBaseCreateRequest, options?: any): Promise<KnowledgeBaseDto>;
9416
9410
  /**
9417
9411
  *
9418
9412
  * @summary Create knowledge base's handle
9419
9413
  * @param {string} id
9420
- * @param {KnowledgeBaseFileCreateForm} [body]
9414
+ * @param {KnowledgeBaseFileCreateRequest} [body]
9421
9415
  * @param {*} [options] Override http request option.
9422
9416
  * @throws {RequiredError}
9423
9417
  */
9424
- createKnowledgeBaseHandle(id: string, body?: KnowledgeBaseFileCreateForm, options?: any): Promise<FileHandle>;
9418
+ createKnowledgeBaseHandle(id: string, body?: KnowledgeBaseFileCreateRequest, options?: any): Promise<FileHandle>;
9425
9419
  /**
9426
9420
  *
9427
9421
  * @summary Delete knowledge base's file
@@ -9437,7 +9431,7 @@ export declare const KnowledgeBasesApiFactory: (configuration?: Configuration, f
9437
9431
  * @param {*} [options] Override http request option.
9438
9432
  * @throws {RequiredError}
9439
9433
  */
9440
- getByOrgId(options?: any): Promise<KnowledgeBase[]>;
9434
+ getByOrgId(options?: any): Promise<KnowledgeBaseDto[]>;
9441
9435
  /**
9442
9436
  *
9443
9437
  * @summary Get uploaded knowledge base's files
@@ -9445,16 +9439,16 @@ export declare const KnowledgeBasesApiFactory: (configuration?: Configuration, f
9445
9439
  * @param {*} [options] Override http request option.
9446
9440
  * @throws {RequiredError}
9447
9441
  */
9448
- getUploadedFiles(id: string, options?: any): Promise<KnowledgeBaseFile[]>;
9442
+ getUploadedFiles(id: string, options?: any): Promise<KnowledgeBaseFileDto[]>;
9449
9443
  /**
9450
9444
  *
9451
9445
  * @summary Update knowledge base
9452
9446
  * @param {string} id
9453
- * @param {KnowledgeBaseUpdateForm} [body]
9447
+ * @param {KnowledgeBaseUpdateRequest} [body]
9454
9448
  * @param {*} [options] Override http request option.
9455
9449
  * @throws {RequiredError}
9456
9450
  */
9457
- update(id: string, body?: KnowledgeBaseUpdateForm, options?: any): Promise<Response>;
9451
+ update(id: string, body?: KnowledgeBaseUpdateRequest, options?: any): Promise<KnowledgeBaseDto>;
9458
9452
  };
9459
9453
  /**
9460
9454
  * KnowledgeBasesApi - object-oriented interface
@@ -9475,22 +9469,22 @@ export declare class KnowledgeBasesApi extends BaseAPI {
9475
9469
  /**
9476
9470
  *
9477
9471
  * @summary Create knowledge base
9478
- * @param {KnowledgeBaseCreateForm} body
9472
+ * @param {KnowledgeBaseCreateRequest} body
9479
9473
  * @param {*} [options] Override http request option.
9480
9474
  * @throws {RequiredError}
9481
9475
  * @memberof KnowledgeBasesApi
9482
9476
  */
9483
- create(body: KnowledgeBaseCreateForm, options?: any): Promise<KnowledgeBase>;
9477
+ create(body: KnowledgeBaseCreateRequest, options?: any): Promise<KnowledgeBaseDto>;
9484
9478
  /**
9485
9479
  *
9486
9480
  * @summary Create knowledge base's handle
9487
9481
  * @param {string} id
9488
- * @param {KnowledgeBaseFileCreateForm} [body]
9482
+ * @param {KnowledgeBaseFileCreateRequest} [body]
9489
9483
  * @param {*} [options] Override http request option.
9490
9484
  * @throws {RequiredError}
9491
9485
  * @memberof KnowledgeBasesApi
9492
9486
  */
9493
- createKnowledgeBaseHandle(id: string, body?: KnowledgeBaseFileCreateForm, options?: any): Promise<FileHandle>;
9487
+ createKnowledgeBaseHandle(id: string, body?: KnowledgeBaseFileCreateRequest, options?: any): Promise<FileHandle>;
9494
9488
  /**
9495
9489
  *
9496
9490
  * @summary Delete knowledge base's file
@@ -9508,7 +9502,7 @@ export declare class KnowledgeBasesApi extends BaseAPI {
9508
9502
  * @throws {RequiredError}
9509
9503
  * @memberof KnowledgeBasesApi
9510
9504
  */
9511
- getByOrgId(options?: any): Promise<KnowledgeBase[]>;
9505
+ getByOrgId(options?: any): Promise<KnowledgeBaseDto[]>;
9512
9506
  /**
9513
9507
  *
9514
9508
  * @summary Get uploaded knowledge base's files
@@ -9517,17 +9511,17 @@ export declare class KnowledgeBasesApi extends BaseAPI {
9517
9511
  * @throws {RequiredError}
9518
9512
  * @memberof KnowledgeBasesApi
9519
9513
  */
9520
- getUploadedFiles(id: string, options?: any): Promise<KnowledgeBaseFile[]>;
9514
+ getUploadedFiles(id: string, options?: any): Promise<KnowledgeBaseFileDto[]>;
9521
9515
  /**
9522
9516
  *
9523
9517
  * @summary Update knowledge base
9524
9518
  * @param {string} id
9525
- * @param {KnowledgeBaseUpdateForm} [body]
9519
+ * @param {KnowledgeBaseUpdateRequest} [body]
9526
9520
  * @param {*} [options] Override http request option.
9527
9521
  * @throws {RequiredError}
9528
9522
  * @memberof KnowledgeBasesApi
9529
9523
  */
9530
- update(id: string, body?: KnowledgeBaseUpdateForm, options?: any): Promise<Response>;
9524
+ update(id: string, body?: KnowledgeBaseUpdateRequest, options?: any): Promise<KnowledgeBaseDto>;
9531
9525
  }
9532
9526
  /**
9533
9527
  * 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 {UpdateBotKnowledgeBaseForm} body
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 = ("UpdateBotKnowledgeBaseForm" !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
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 {UpdateBotKnowledgeBaseForm} body
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 {UpdateBotKnowledgeBaseForm} body
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 {UpdateBotKnowledgeBaseForm} body
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 {KnowledgeBaseCreateForm} body
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 = ("KnowledgeBaseCreateForm" !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
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 {KnowledgeBaseFileCreateForm} [body]
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 = ("KnowledgeBaseFileCreateForm" !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
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 {KnowledgeBaseUpdateForm} [body]
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 = ("KnowledgeBaseUpdateForm" !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
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 {KnowledgeBaseCreateForm} body
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 {KnowledgeBaseFileCreateForm} [body]
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 {KnowledgeBaseUpdateForm} [body]
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 {KnowledgeBaseCreateForm} body
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 {KnowledgeBaseFileCreateForm} [body]
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 {KnowledgeBaseUpdateForm} [body]
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 {KnowledgeBaseCreateForm} body
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 {KnowledgeBaseFileCreateForm} [body]
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 {KnowledgeBaseUpdateForm} [body]
5519
+ * @param {KnowledgeBaseUpdateRequest} [body]
5520
5520
  * @param {*} [options] Override http request option.
5521
5521
  * @throws {RequiredError}
5522
5522
  * @memberof KnowledgeBasesApi
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@closerplatform/spinner-openapi",
3
- "version": "0.12.934",
3
+ "version": "0.12.935",
4
4
  "description": "swagger client for @closerplatform/spinner-openapi",
5
5
  "author": "Swagger Codegen Contributors",
6
6
  "keywords": [