@closerplatform/spinner-openapi 0.12.592 → 0.12.593

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 CHANGED
@@ -6665,6 +6665,19 @@ export interface UpdateAgentGroupConfigurationForm {
6665
6665
  */
6666
6666
  advisers: Array<string>;
6667
6667
  }
6668
+ /**
6669
+ *
6670
+ * @export
6671
+ * @interface UpdateBotKnowledgeBaseForm
6672
+ */
6673
+ export interface UpdateBotKnowledgeBaseForm {
6674
+ /**
6675
+ *
6676
+ * @type {string}
6677
+ * @memberof UpdateBotKnowledgeBaseForm
6678
+ */
6679
+ knowledgeBaseId?: string;
6680
+ }
6668
6681
  /**
6669
6682
  *
6670
6683
  * @export
@@ -8029,6 +8042,14 @@ export declare const BotsApiFetchParamCreator: (configuration?: Configuration) =
8029
8042
  * @throws {RequiredError}
8030
8043
  */
8031
8044
  updateBotPersonalData(body: BotPersonalDataForm, options?: any): FetchArgs;
8045
+ /**
8046
+ *
8047
+ * @summary Update bot's knowledge base
8048
+ * @param {UpdateBotKnowledgeBaseForm} body
8049
+ * @param {*} [options] Override http request option.
8050
+ * @throws {RequiredError}
8051
+ */
8052
+ updateKnowledgeBase(body: UpdateBotKnowledgeBaseForm, options?: any): FetchArgs;
8032
8053
  /**
8033
8054
  *
8034
8055
  * @summary update lekta config
@@ -8104,6 +8125,14 @@ export declare const BotsApiFp: (configuration?: Configuration) => {
8104
8125
  * @throws {RequiredError}
8105
8126
  */
8106
8127
  updateBotPersonalData(body: BotPersonalDataForm, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<Response>;
8128
+ /**
8129
+ *
8130
+ * @summary Update bot's knowledge base
8131
+ * @param {UpdateBotKnowledgeBaseForm} body
8132
+ * @param {*} [options] Override http request option.
8133
+ * @throws {RequiredError}
8134
+ */
8135
+ updateKnowledgeBase(body: UpdateBotKnowledgeBaseForm, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<Response>;
8107
8136
  /**
8108
8137
  *
8109
8138
  * @summary update lekta config
@@ -8179,6 +8208,14 @@ export declare const BotsApiFactory: (configuration?: Configuration, fetch?: Fet
8179
8208
  * @throws {RequiredError}
8180
8209
  */
8181
8210
  updateBotPersonalData(body: BotPersonalDataForm, options?: any): Promise<Response>;
8211
+ /**
8212
+ *
8213
+ * @summary Update bot's knowledge base
8214
+ * @param {UpdateBotKnowledgeBaseForm} body
8215
+ * @param {*} [options] Override http request option.
8216
+ * @throws {RequiredError}
8217
+ */
8218
+ updateKnowledgeBase(body: UpdateBotKnowledgeBaseForm, options?: any): Promise<Response>;
8182
8219
  /**
8183
8220
  *
8184
8221
  * @summary update lekta config
@@ -8264,6 +8301,15 @@ export declare class BotsApi extends BaseAPI {
8264
8301
  * @memberof BotsApi
8265
8302
  */
8266
8303
  updateBotPersonalData(body: BotPersonalDataForm, options?: any): Promise<Response>;
8304
+ /**
8305
+ *
8306
+ * @summary Update bot's knowledge base
8307
+ * @param {UpdateBotKnowledgeBaseForm} body
8308
+ * @param {*} [options] Override http request option.
8309
+ * @throws {RequiredError}
8310
+ * @memberof BotsApi
8311
+ */
8312
+ updateKnowledgeBase(body: UpdateBotKnowledgeBaseForm, options?: any): Promise<Response>;
8267
8313
  /**
8268
8314
  *
8269
8315
  * @summary update lekta config
package/dist/api.js CHANGED
@@ -2275,6 +2275,42 @@ const BotsApiFetchParamCreator = function (configuration) {
2275
2275
  options: localVarRequestOptions,
2276
2276
  };
2277
2277
  },
2278
+ /**
2279
+ *
2280
+ * @summary Update bot's knowledge base
2281
+ * @param {UpdateBotKnowledgeBaseForm} body
2282
+ * @param {*} [options] Override http request option.
2283
+ * @throws {RequiredError}
2284
+ */
2285
+ updateKnowledgeBase(body, options = {}) {
2286
+ // verify required parameter 'body' is not null or undefined
2287
+ if (body === null || body === undefined) {
2288
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling updateKnowledgeBase.');
2289
+ }
2290
+ const localVarPath = `/bots/knowledge-base`;
2291
+ const localVarUrlObj = url.parse(localVarPath, true);
2292
+ const localVarRequestOptions = Object.assign({ method: 'PUT' }, options);
2293
+ const localVarHeaderParameter = {};
2294
+ const localVarQueryParameter = {};
2295
+ // authentication apiKey required
2296
+ if (configuration && configuration.apiKey) {
2297
+ const localVarApiKeyValue = typeof configuration.apiKey === 'function'
2298
+ ? configuration.apiKey("X-Api-Key")
2299
+ : configuration.apiKey;
2300
+ localVarHeaderParameter["X-Api-Key"] = localVarApiKeyValue;
2301
+ }
2302
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2303
+ localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
2304
+ // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
2305
+ delete localVarUrlObj.search;
2306
+ localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
2307
+ const needsSerialization = ("UpdateBotKnowledgeBaseForm" !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
2308
+ localVarRequestOptions.body = needsSerialization ? JSON.stringify(body || {}) : (body || "");
2309
+ return {
2310
+ url: url.format(localVarUrlObj),
2311
+ options: localVarRequestOptions,
2312
+ };
2313
+ },
2278
2314
  /**
2279
2315
  *
2280
2316
  * @summary update lekta config
@@ -2477,6 +2513,26 @@ const BotsApiFp = function (configuration) {
2477
2513
  });
2478
2514
  };
2479
2515
  },
2516
+ /**
2517
+ *
2518
+ * @summary Update bot's knowledge base
2519
+ * @param {UpdateBotKnowledgeBaseForm} body
2520
+ * @param {*} [options] Override http request option.
2521
+ * @throws {RequiredError}
2522
+ */
2523
+ updateKnowledgeBase(body, options) {
2524
+ const localVarFetchArgs = (0, exports.BotsApiFetchParamCreator)(configuration).updateKnowledgeBase(body, options);
2525
+ return (fetch = isomorphicFetch, basePath = BASE_PATH) => {
2526
+ return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
2527
+ if (response.status >= 200 && response.status < 300) {
2528
+ return response;
2529
+ }
2530
+ else {
2531
+ throw response;
2532
+ }
2533
+ });
2534
+ };
2535
+ },
2480
2536
  /**
2481
2537
  *
2482
2538
  * @summary update lekta config
@@ -2583,6 +2639,16 @@ const BotsApiFactory = function (configuration, fetch, basePath) {
2583
2639
  updateBotPersonalData(body, options) {
2584
2640
  return (0, exports.BotsApiFp)(configuration).updateBotPersonalData(body, options)(fetch, basePath);
2585
2641
  },
2642
+ /**
2643
+ *
2644
+ * @summary Update bot's knowledge base
2645
+ * @param {UpdateBotKnowledgeBaseForm} body
2646
+ * @param {*} [options] Override http request option.
2647
+ * @throws {RequiredError}
2648
+ */
2649
+ updateKnowledgeBase(body, options) {
2650
+ return (0, exports.BotsApiFp)(configuration).updateKnowledgeBase(body, options)(fetch, basePath);
2651
+ },
2586
2652
  /**
2587
2653
  *
2588
2654
  * @summary update lekta config
@@ -2688,6 +2754,17 @@ class BotsApi extends BaseAPI {
2688
2754
  updateBotPersonalData(body, options) {
2689
2755
  return (0, exports.BotsApiFp)(this.configuration).updateBotPersonalData(body, options)(this.fetch, this.basePath);
2690
2756
  }
2757
+ /**
2758
+ *
2759
+ * @summary Update bot's knowledge base
2760
+ * @param {UpdateBotKnowledgeBaseForm} body
2761
+ * @param {*} [options] Override http request option.
2762
+ * @throws {RequiredError}
2763
+ * @memberof BotsApi
2764
+ */
2765
+ updateKnowledgeBase(body, options) {
2766
+ return (0, exports.BotsApiFp)(this.configuration).updateKnowledgeBase(body, options)(this.fetch, this.basePath);
2767
+ }
2691
2768
  /**
2692
2769
  *
2693
2770
  * @summary update lekta config
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@closerplatform/spinner-openapi",
3
- "version": "0.12.592",
3
+ "version": "0.12.593",
4
4
  "description": "swagger client for @closerplatform/spinner-openapi",
5
5
  "author": "Swagger Codegen Contributors",
6
6
  "keywords": [