qanswer-sdk 3.2017.0-main → 3.2020.0-main

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.js CHANGED
@@ -55202,15 +55202,16 @@ var ToolLLMApiAxiosParamCreator = function (configuration) {
55202
55202
  * @summary Create a new LLM endpoint
55203
55203
  * @param {LlmCreateDto} llmCreateDto
55204
55204
  * @param {number} [organizationId]
55205
+ * @param {string} [qAnswerApiKey]
55205
55206
  * @param {*} [options] Override http request option.
55206
55207
  * @throws {RequiredError}
55207
55208
  */
55208
- createLlmEndpoint: function (llmCreateDto_1, organizationId_1) {
55209
+ createLlmEndpoint: function (llmCreateDto_1, organizationId_1, qAnswerApiKey_1) {
55209
55210
  var args_1 = [];
55210
- for (var _i = 2; _i < arguments.length; _i++) {
55211
- args_1[_i - 2] = arguments[_i];
55211
+ for (var _i = 3; _i < arguments.length; _i++) {
55212
+ args_1[_i - 3] = arguments[_i];
55212
55213
  }
55213
- return __awaiter(_this, __spreadArray([llmCreateDto_1, organizationId_1], args_1, true), void 0, function (llmCreateDto, organizationId, options) {
55214
+ return __awaiter(_this, __spreadArray([llmCreateDto_1, organizationId_1, qAnswerApiKey_1], args_1, true), void 0, function (llmCreateDto, organizationId, qAnswerApiKey, options) {
55214
55215
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
55215
55216
  if (options === void 0) { options = {}; }
55216
55217
  return __generator(this, function (_a) {
@@ -55244,6 +55245,9 @@ var ToolLLMApiAxiosParamCreator = function (configuration) {
55244
55245
  if (organizationId !== undefined) {
55245
55246
  localVarQueryParameter['organization_id'] = organizationId;
55246
55247
  }
55248
+ if (qAnswerApiKey != null) {
55249
+ localVarHeaderParameter['QAnswer-Api-Key'] = String(qAnswerApiKey);
55250
+ }
55247
55251
  localVarHeaderParameter['Content-Type'] = 'application/json';
55248
55252
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
55249
55253
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -55262,15 +55266,16 @@ var ToolLLMApiAxiosParamCreator = function (configuration) {
55262
55266
  * @summary Delete an LLM endpoint
55263
55267
  * @param {number} id
55264
55268
  * @param {number} [organizationId]
55269
+ * @param {string} [qAnswerApiKey]
55265
55270
  * @param {*} [options] Override http request option.
55266
55271
  * @throws {RequiredError}
55267
55272
  */
55268
- deleteLlmEndpoint: function (id_1, organizationId_1) {
55273
+ deleteLlmEndpoint: function (id_1, organizationId_1, qAnswerApiKey_1) {
55269
55274
  var args_1 = [];
55270
- for (var _i = 2; _i < arguments.length; _i++) {
55271
- args_1[_i - 2] = arguments[_i];
55275
+ for (var _i = 3; _i < arguments.length; _i++) {
55276
+ args_1[_i - 3] = arguments[_i];
55272
55277
  }
55273
- return __awaiter(_this, __spreadArray([id_1, organizationId_1], args_1, true), void 0, function (id, organizationId, options) {
55278
+ return __awaiter(_this, __spreadArray([id_1, organizationId_1, qAnswerApiKey_1], args_1, true), void 0, function (id, organizationId, qAnswerApiKey, options) {
55274
55279
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
55275
55280
  if (options === void 0) { options = {}; }
55276
55281
  return __generator(this, function (_a) {
@@ -55305,6 +55310,9 @@ var ToolLLMApiAxiosParamCreator = function (configuration) {
55305
55310
  if (organizationId !== undefined) {
55306
55311
  localVarQueryParameter['organization_id'] = organizationId;
55307
55312
  }
55313
+ if (qAnswerApiKey != null) {
55314
+ localVarHeaderParameter['QAnswer-Api-Key'] = String(qAnswerApiKey);
55315
+ }
55308
55316
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
55309
55317
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
55310
55318
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -55320,15 +55328,16 @@ var ToolLLMApiAxiosParamCreator = function (configuration) {
55320
55328
  *
55321
55329
  * @summary Download LLM consumption costs
55322
55330
  * @param {LlmCostFilter} llmCostFilter
55331
+ * @param {string} [qAnswerApiKey]
55323
55332
  * @param {*} [options] Override http request option.
55324
55333
  * @throws {RequiredError}
55325
55334
  */
55326
- downloadCosts: function (llmCostFilter_1) {
55335
+ downloadCosts: function (llmCostFilter_1, qAnswerApiKey_1) {
55327
55336
  var args_1 = [];
55328
- for (var _i = 1; _i < arguments.length; _i++) {
55329
- args_1[_i - 1] = arguments[_i];
55337
+ for (var _i = 2; _i < arguments.length; _i++) {
55338
+ args_1[_i - 2] = arguments[_i];
55330
55339
  }
55331
- return __awaiter(_this, __spreadArray([llmCostFilter_1], args_1, true), void 0, function (llmCostFilter, options) {
55340
+ return __awaiter(_this, __spreadArray([llmCostFilter_1, qAnswerApiKey_1], args_1, true), void 0, function (llmCostFilter, qAnswerApiKey, options) {
55332
55341
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
55333
55342
  if (options === void 0) { options = {}; }
55334
55343
  return __generator(this, function (_a) {
@@ -55359,6 +55368,9 @@ var ToolLLMApiAxiosParamCreator = function (configuration) {
55359
55368
  // authentication Bearer required
55360
55369
  // http bearer authentication required
55361
55370
  _a.sent();
55371
+ if (qAnswerApiKey != null) {
55372
+ localVarHeaderParameter['QAnswer-Api-Key'] = String(qAnswerApiKey);
55373
+ }
55362
55374
  localVarHeaderParameter['Content-Type'] = 'application/json';
55363
55375
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
55364
55376
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -55376,15 +55388,16 @@ var ToolLLMApiAxiosParamCreator = function (configuration) {
55376
55388
  *
55377
55389
  * @summary Export LLM endpoints as a ZIP file
55378
55390
  * @param {number} [organizationId]
55391
+ * @param {string} [qAnswerApiKey]
55379
55392
  * @param {*} [options] Override http request option.
55380
55393
  * @throws {RequiredError}
55381
55394
  */
55382
- exportLlmEndpoints: function (organizationId_1) {
55395
+ exportLlmEndpoints: function (organizationId_1, qAnswerApiKey_1) {
55383
55396
  var args_1 = [];
55384
- for (var _i = 1; _i < arguments.length; _i++) {
55385
- args_1[_i - 1] = arguments[_i];
55397
+ for (var _i = 2; _i < arguments.length; _i++) {
55398
+ args_1[_i - 2] = arguments[_i];
55386
55399
  }
55387
- return __awaiter(_this, __spreadArray([organizationId_1], args_1, true), void 0, function (organizationId, options) {
55400
+ return __awaiter(_this, __spreadArray([organizationId_1, qAnswerApiKey_1], args_1, true), void 0, function (organizationId, qAnswerApiKey, options) {
55388
55401
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
55389
55402
  if (options === void 0) { options = {}; }
55390
55403
  return __generator(this, function (_a) {
@@ -55416,6 +55429,9 @@ var ToolLLMApiAxiosParamCreator = function (configuration) {
55416
55429
  if (organizationId !== undefined) {
55417
55430
  localVarQueryParameter['organizationId'] = organizationId;
55418
55431
  }
55432
+ if (qAnswerApiKey != null) {
55433
+ localVarHeaderParameter['QAnswer-Api-Key'] = String(qAnswerApiKey);
55434
+ }
55419
55435
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
55420
55436
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
55421
55437
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -55431,15 +55447,16 @@ var ToolLLMApiAxiosParamCreator = function (configuration) {
55431
55447
  *
55432
55448
  * @summary Get an LLM endpoint by id
55433
55449
  * @param {number} id
55450
+ * @param {string} [qAnswerApiKey]
55434
55451
  * @param {*} [options] Override http request option.
55435
55452
  * @throws {RequiredError}
55436
55453
  */
55437
- getById: function (id_1) {
55454
+ getById: function (id_1, qAnswerApiKey_1) {
55438
55455
  var args_1 = [];
55439
- for (var _i = 1; _i < arguments.length; _i++) {
55440
- args_1[_i - 1] = arguments[_i];
55456
+ for (var _i = 2; _i < arguments.length; _i++) {
55457
+ args_1[_i - 2] = arguments[_i];
55441
55458
  }
55442
- return __awaiter(_this, __spreadArray([id_1], args_1, true), void 0, function (id, options) {
55459
+ return __awaiter(_this, __spreadArray([id_1, qAnswerApiKey_1], args_1, true), void 0, function (id, qAnswerApiKey, options) {
55443
55460
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
55444
55461
  if (options === void 0) { options = {}; }
55445
55462
  return __generator(this, function (_a) {
@@ -55471,6 +55488,9 @@ var ToolLLMApiAxiosParamCreator = function (configuration) {
55471
55488
  // authentication Bearer required
55472
55489
  // http bearer authentication required
55473
55490
  _a.sent();
55491
+ if (qAnswerApiKey != null) {
55492
+ localVarHeaderParameter['QAnswer-Api-Key'] = String(qAnswerApiKey);
55493
+ }
55474
55494
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
55475
55495
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
55476
55496
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -55486,15 +55506,16 @@ var ToolLLMApiAxiosParamCreator = function (configuration) {
55486
55506
  *
55487
55507
  * @summary API to get analytics of LLM consumption costs
55488
55508
  * @param {LlmCostFilter} llmCostFilter
55509
+ * @param {string} [qAnswerApiKey]
55489
55510
  * @param {*} [options] Override http request option.
55490
55511
  * @throws {RequiredError}
55491
55512
  */
55492
- getCosts: function (llmCostFilter_1) {
55513
+ getCosts: function (llmCostFilter_1, qAnswerApiKey_1) {
55493
55514
  var args_1 = [];
55494
- for (var _i = 1; _i < arguments.length; _i++) {
55495
- args_1[_i - 1] = arguments[_i];
55515
+ for (var _i = 2; _i < arguments.length; _i++) {
55516
+ args_1[_i - 2] = arguments[_i];
55496
55517
  }
55497
- return __awaiter(_this, __spreadArray([llmCostFilter_1], args_1, true), void 0, function (llmCostFilter, options) {
55518
+ return __awaiter(_this, __spreadArray([llmCostFilter_1, qAnswerApiKey_1], args_1, true), void 0, function (llmCostFilter, qAnswerApiKey, options) {
55498
55519
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
55499
55520
  if (options === void 0) { options = {}; }
55500
55521
  return __generator(this, function (_a) {
@@ -55525,6 +55546,9 @@ var ToolLLMApiAxiosParamCreator = function (configuration) {
55525
55546
  // authentication Bearer required
55526
55547
  // http bearer authentication required
55527
55548
  _a.sent();
55549
+ if (qAnswerApiKey != null) {
55550
+ localVarHeaderParameter['QAnswer-Api-Key'] = String(qAnswerApiKey);
55551
+ }
55528
55552
  localVarHeaderParameter['Content-Type'] = 'application/json';
55529
55553
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
55530
55554
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -55542,15 +55566,16 @@ var ToolLLMApiAxiosParamCreator = function (configuration) {
55542
55566
  *
55543
55567
  * @summary Retrieves the default LLM endpoint
55544
55568
  * @param {number} [organizationId]
55569
+ * @param {string} [qAnswerApiKey]
55545
55570
  * @param {*} [options] Override http request option.
55546
55571
  * @throws {RequiredError}
55547
55572
  */
55548
- getDefaultLlmEndpoint: function (organizationId_1) {
55573
+ getDefaultLlmEndpoint: function (organizationId_1, qAnswerApiKey_1) {
55549
55574
  var args_1 = [];
55550
- for (var _i = 1; _i < arguments.length; _i++) {
55551
- args_1[_i - 1] = arguments[_i];
55575
+ for (var _i = 2; _i < arguments.length; _i++) {
55576
+ args_1[_i - 2] = arguments[_i];
55552
55577
  }
55553
- return __awaiter(_this, __spreadArray([organizationId_1], args_1, true), void 0, function (organizationId, options) {
55578
+ return __awaiter(_this, __spreadArray([organizationId_1, qAnswerApiKey_1], args_1, true), void 0, function (organizationId, qAnswerApiKey, options) {
55554
55579
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
55555
55580
  if (options === void 0) { options = {}; }
55556
55581
  return __generator(this, function (_a) {
@@ -55582,6 +55607,9 @@ var ToolLLMApiAxiosParamCreator = function (configuration) {
55582
55607
  if (organizationId !== undefined) {
55583
55608
  localVarQueryParameter['organization_id'] = organizationId;
55584
55609
  }
55610
+ if (qAnswerApiKey != null) {
55611
+ localVarHeaderParameter['QAnswer-Api-Key'] = String(qAnswerApiKey);
55612
+ }
55585
55613
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
55586
55614
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
55587
55615
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -55598,15 +55626,16 @@ var ToolLLMApiAxiosParamCreator = function (configuration) {
55598
55626
  * @summary Returns if the LLM endpoint is active. If the organization ID is provided, it checks if the endpoint is active for that organization otherwise for the whole application.
55599
55627
  * @param {number} id
55600
55628
  * @param {number} [organizationId]
55629
+ * @param {string} [qAnswerApiKey]
55601
55630
  * @param {*} [options] Override http request option.
55602
55631
  * @throws {RequiredError}
55603
55632
  */
55604
- getIsActive: function (id_1, organizationId_1) {
55633
+ getIsActive: function (id_1, organizationId_1, qAnswerApiKey_1) {
55605
55634
  var args_1 = [];
55606
- for (var _i = 2; _i < arguments.length; _i++) {
55607
- args_1[_i - 2] = arguments[_i];
55635
+ for (var _i = 3; _i < arguments.length; _i++) {
55636
+ args_1[_i - 3] = arguments[_i];
55608
55637
  }
55609
- return __awaiter(_this, __spreadArray([id_1, organizationId_1], args_1, true), void 0, function (id, organizationId, options) {
55638
+ return __awaiter(_this, __spreadArray([id_1, organizationId_1, qAnswerApiKey_1], args_1, true), void 0, function (id, organizationId, qAnswerApiKey, options) {
55610
55639
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
55611
55640
  if (options === void 0) { options = {}; }
55612
55641
  return __generator(this, function (_a) {
@@ -55641,6 +55670,9 @@ var ToolLLMApiAxiosParamCreator = function (configuration) {
55641
55670
  if (organizationId !== undefined) {
55642
55671
  localVarQueryParameter['organizationId'] = organizationId;
55643
55672
  }
55673
+ if (qAnswerApiKey != null) {
55674
+ localVarHeaderParameter['QAnswer-Api-Key'] = String(qAnswerApiKey);
55675
+ }
55644
55676
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
55645
55677
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
55646
55678
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -55656,15 +55688,16 @@ var ToolLLMApiAxiosParamCreator = function (configuration) {
55656
55688
  * Fetches the info of a specific LLM endpoint by its name.
55657
55689
  * @summary Get LLM info by name
55658
55690
  * @param {string} name
55691
+ * @param {string} [qAnswerApiKey]
55659
55692
  * @param {*} [options] Override http request option.
55660
55693
  * @throws {RequiredError}
55661
55694
  */
55662
- getLlmEndpointByName: function (name_1) {
55695
+ getLlmEndpointByName: function (name_1, qAnswerApiKey_1) {
55663
55696
  var args_1 = [];
55664
- for (var _i = 1; _i < arguments.length; _i++) {
55665
- args_1[_i - 1] = arguments[_i];
55697
+ for (var _i = 2; _i < arguments.length; _i++) {
55698
+ args_1[_i - 2] = arguments[_i];
55666
55699
  }
55667
- return __awaiter(_this, __spreadArray([name_1], args_1, true), void 0, function (name, options) {
55700
+ return __awaiter(_this, __spreadArray([name_1, qAnswerApiKey_1], args_1, true), void 0, function (name, qAnswerApiKey, options) {
55668
55701
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
55669
55702
  if (options === void 0) { options = {}; }
55670
55703
  return __generator(this, function (_a) {
@@ -55698,6 +55731,9 @@ var ToolLLMApiAxiosParamCreator = function (configuration) {
55698
55731
  if (name !== undefined) {
55699
55732
  localVarQueryParameter['name'] = name;
55700
55733
  }
55734
+ if (qAnswerApiKey != null) {
55735
+ localVarHeaderParameter['QAnswer-Api-Key'] = String(qAnswerApiKey);
55736
+ }
55701
55737
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
55702
55738
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
55703
55739
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -55713,15 +55749,16 @@ var ToolLLMApiAxiosParamCreator = function (configuration) {
55713
55749
  *
55714
55750
  * @summary Get an LLM endpoint by name
55715
55751
  * @param {string} name
55752
+ * @param {string} [qAnswerApiKey]
55716
55753
  * @param {*} [options] Override http request option.
55717
55754
  * @throws {RequiredError}
55718
55755
  */
55719
- getLlmEndpointByName1: function (name_1) {
55756
+ getLlmEndpointByName1: function (name_1, qAnswerApiKey_1) {
55720
55757
  var args_1 = [];
55721
- for (var _i = 1; _i < arguments.length; _i++) {
55722
- args_1[_i - 1] = arguments[_i];
55758
+ for (var _i = 2; _i < arguments.length; _i++) {
55759
+ args_1[_i - 2] = arguments[_i];
55723
55760
  }
55724
- return __awaiter(_this, __spreadArray([name_1], args_1, true), void 0, function (name, options) {
55761
+ return __awaiter(_this, __spreadArray([name_1, qAnswerApiKey_1], args_1, true), void 0, function (name, qAnswerApiKey, options) {
55725
55762
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
55726
55763
  if (options === void 0) { options = {}; }
55727
55764
  return __generator(this, function (_a) {
@@ -55755,6 +55792,9 @@ var ToolLLMApiAxiosParamCreator = function (configuration) {
55755
55792
  if (name !== undefined) {
55756
55793
  localVarQueryParameter['name'] = name;
55757
55794
  }
55795
+ if (qAnswerApiKey != null) {
55796
+ localVarHeaderParameter['QAnswer-Api-Key'] = String(qAnswerApiKey);
55797
+ }
55758
55798
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
55759
55799
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
55760
55800
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -55769,15 +55809,16 @@ var ToolLLMApiAxiosParamCreator = function (configuration) {
55769
55809
  /**
55770
55810
  *
55771
55811
  * @summary Get the default prompts for an LLM endpoint
55812
+ * @param {string} [qAnswerApiKey]
55772
55813
  * @param {*} [options] Override http request option.
55773
55814
  * @throws {RequiredError}
55774
55815
  */
55775
- getLlmEndpointDefaultPrompts: function () {
55816
+ getLlmEndpointDefaultPrompts: function (qAnswerApiKey_1) {
55776
55817
  var args_1 = [];
55777
- for (var _i = 0; _i < arguments.length; _i++) {
55778
- args_1[_i] = arguments[_i];
55818
+ for (var _i = 1; _i < arguments.length; _i++) {
55819
+ args_1[_i - 1] = arguments[_i];
55779
55820
  }
55780
- return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
55821
+ return __awaiter(_this, __spreadArray([qAnswerApiKey_1], args_1, true), void 0, function (qAnswerApiKey, options) {
55781
55822
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
55782
55823
  if (options === void 0) { options = {}; }
55783
55824
  return __generator(this, function (_a) {
@@ -55806,6 +55847,9 @@ var ToolLLMApiAxiosParamCreator = function (configuration) {
55806
55847
  // authentication Bearer required
55807
55848
  // http bearer authentication required
55808
55849
  _a.sent();
55850
+ if (qAnswerApiKey != null) {
55851
+ localVarHeaderParameter['QAnswer-Api-Key'] = String(qAnswerApiKey);
55852
+ }
55809
55853
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
55810
55854
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
55811
55855
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -55822,15 +55866,16 @@ var ToolLLMApiAxiosParamCreator = function (configuration) {
55822
55866
  * @summary Get the logo of an LLM endpoint by id
55823
55867
  * @param {number} id
55824
55868
  * @param {string} [conversationId]
55869
+ * @param {string} [qAnswerApiKey]
55825
55870
  * @param {*} [options] Override http request option.
55826
55871
  * @throws {RequiredError}
55827
55872
  */
55828
- getLlmEndpointLogo: function (id_1, conversationId_1) {
55873
+ getLlmEndpointLogo: function (id_1, conversationId_1, qAnswerApiKey_1) {
55829
55874
  var args_1 = [];
55830
- for (var _i = 2; _i < arguments.length; _i++) {
55831
- args_1[_i - 2] = arguments[_i];
55875
+ for (var _i = 3; _i < arguments.length; _i++) {
55876
+ args_1[_i - 3] = arguments[_i];
55832
55877
  }
55833
- return __awaiter(_this, __spreadArray([id_1, conversationId_1], args_1, true), void 0, function (id, conversationId, options) {
55878
+ return __awaiter(_this, __spreadArray([id_1, conversationId_1, qAnswerApiKey_1], args_1, true), void 0, function (id, conversationId, qAnswerApiKey, options) {
55834
55879
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
55835
55880
  if (options === void 0) { options = {}; }
55836
55881
  return __generator(this, function (_a) {
@@ -55865,6 +55910,9 @@ var ToolLLMApiAxiosParamCreator = function (configuration) {
55865
55910
  if (conversationId !== undefined) {
55866
55911
  localVarQueryParameter['conversationId'] = conversationId;
55867
55912
  }
55913
+ if (qAnswerApiKey != null) {
55914
+ localVarHeaderParameter['QAnswer-Api-Key'] = String(qAnswerApiKey);
55915
+ }
55868
55916
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
55869
55917
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
55870
55918
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -55880,15 +55928,16 @@ var ToolLLMApiAxiosParamCreator = function (configuration) {
55880
55928
  *
55881
55929
  * @summary Get all sensitivity levels of LLM endpoints.
55882
55930
  * @param {LlmFilterDto} filter
55931
+ * @param {string} [qAnswerApiKey]
55883
55932
  * @param {*} [options] Override http request option.
55884
55933
  * @throws {RequiredError}
55885
55934
  */
55886
- getSensitivityLevels: function (filter_1) {
55935
+ getSensitivityLevels: function (filter_1, qAnswerApiKey_1) {
55887
55936
  var args_1 = [];
55888
- for (var _i = 1; _i < arguments.length; _i++) {
55889
- args_1[_i - 1] = arguments[_i];
55937
+ for (var _i = 2; _i < arguments.length; _i++) {
55938
+ args_1[_i - 2] = arguments[_i];
55890
55939
  }
55891
- return __awaiter(_this, __spreadArray([filter_1], args_1, true), void 0, function (filter, options) {
55940
+ return __awaiter(_this, __spreadArray([filter_1, qAnswerApiKey_1], args_1, true), void 0, function (filter, qAnswerApiKey, options) {
55892
55941
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, _a, _b, _c, key, value, headersFromBaseOptions;
55893
55942
  if (options === void 0) { options = {}; }
55894
55943
  return __generator(this, function (_d) {
@@ -55925,6 +55974,9 @@ var ToolLLMApiAxiosParamCreator = function (configuration) {
55925
55974
  localVarQueryParameter[key] = value;
55926
55975
  }
55927
55976
  }
55977
+ if (qAnswerApiKey != null) {
55978
+ localVarHeaderParameter['QAnswer-Api-Key'] = String(qAnswerApiKey);
55979
+ }
55928
55980
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
55929
55981
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
55930
55982
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -55939,15 +55991,16 @@ var ToolLLMApiAxiosParamCreator = function (configuration) {
55939
55991
  /**
55940
55992
  *
55941
55993
  * @summary Retrieves the system default LLM endpoint (used when resetting to defaults)
55994
+ * @param {string} [qAnswerApiKey]
55942
55995
  * @param {*} [options] Override http request option.
55943
55996
  * @throws {RequiredError}
55944
55997
  */
55945
- getSystemDefaultLlmEndpoint: function () {
55998
+ getSystemDefaultLlmEndpoint: function (qAnswerApiKey_1) {
55946
55999
  var args_1 = [];
55947
- for (var _i = 0; _i < arguments.length; _i++) {
55948
- args_1[_i] = arguments[_i];
56000
+ for (var _i = 1; _i < arguments.length; _i++) {
56001
+ args_1[_i - 1] = arguments[_i];
55949
56002
  }
55950
- return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
56003
+ return __awaiter(_this, __spreadArray([qAnswerApiKey_1], args_1, true), void 0, function (qAnswerApiKey, options) {
55951
56004
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
55952
56005
  if (options === void 0) { options = {}; }
55953
56006
  return __generator(this, function (_a) {
@@ -55976,6 +56029,9 @@ var ToolLLMApiAxiosParamCreator = function (configuration) {
55976
56029
  // authentication Bearer required
55977
56030
  // http bearer authentication required
55978
56031
  _a.sent();
56032
+ if (qAnswerApiKey != null) {
56033
+ localVarHeaderParameter['QAnswer-Api-Key'] = String(qAnswerApiKey);
56034
+ }
55979
56035
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
55980
56036
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
55981
56037
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -55992,15 +56048,16 @@ var ToolLLMApiAxiosParamCreator = function (configuration) {
55992
56048
  * @summary Import LLM endpoints from a file
55993
56049
  * @param {File} file
55994
56050
  * @param {number} [organizationId]
56051
+ * @param {string} [qAnswerApiKey]
55995
56052
  * @param {*} [options] Override http request option.
55996
56053
  * @throws {RequiredError}
55997
56054
  */
55998
- importLlmEndpoints: function (file_1, organizationId_1) {
56055
+ importLlmEndpoints: function (file_1, organizationId_1, qAnswerApiKey_1) {
55999
56056
  var args_1 = [];
56000
- for (var _i = 2; _i < arguments.length; _i++) {
56001
- args_1[_i - 2] = arguments[_i];
56057
+ for (var _i = 3; _i < arguments.length; _i++) {
56058
+ args_1[_i - 3] = arguments[_i];
56002
56059
  }
56003
- return __awaiter(_this, __spreadArray([file_1, organizationId_1], args_1, true), void 0, function (file, organizationId, options) {
56060
+ return __awaiter(_this, __spreadArray([file_1, organizationId_1, qAnswerApiKey_1], args_1, true), void 0, function (file, organizationId, qAnswerApiKey, options) {
56004
56061
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarFormParams, headersFromBaseOptions;
56005
56062
  if (options === void 0) { options = {}; }
56006
56063
  return __generator(this, function (_a) {
@@ -56035,6 +56092,9 @@ var ToolLLMApiAxiosParamCreator = function (configuration) {
56035
56092
  if (organizationId !== undefined) {
56036
56093
  localVarQueryParameter['organizationId'] = organizationId;
56037
56094
  }
56095
+ if (qAnswerApiKey != null) {
56096
+ localVarHeaderParameter['QAnswer-Api-Key'] = String(qAnswerApiKey);
56097
+ }
56038
56098
  if (file !== undefined) {
56039
56099
  localVarFormParams.append('file', file);
56040
56100
  }
@@ -56055,15 +56115,16 @@ var ToolLLMApiAxiosParamCreator = function (configuration) {
56055
56115
  *
56056
56116
  * @summary Reset the logo of an LLM endpoint by id
56057
56117
  * @param {number} id
56118
+ * @param {string} [qAnswerApiKey]
56058
56119
  * @param {*} [options] Override http request option.
56059
56120
  * @throws {RequiredError}
56060
56121
  */
56061
- resetLlmEndpointLogo: function (id_1) {
56122
+ resetLlmEndpointLogo: function (id_1, qAnswerApiKey_1) {
56062
56123
  var args_1 = [];
56063
- for (var _i = 1; _i < arguments.length; _i++) {
56064
- args_1[_i - 1] = arguments[_i];
56124
+ for (var _i = 2; _i < arguments.length; _i++) {
56125
+ args_1[_i - 2] = arguments[_i];
56065
56126
  }
56066
- return __awaiter(_this, __spreadArray([id_1], args_1, true), void 0, function (id, options) {
56127
+ return __awaiter(_this, __spreadArray([id_1, qAnswerApiKey_1], args_1, true), void 0, function (id, qAnswerApiKey, options) {
56067
56128
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
56068
56129
  if (options === void 0) { options = {}; }
56069
56130
  return __generator(this, function (_a) {
@@ -56095,6 +56156,9 @@ var ToolLLMApiAxiosParamCreator = function (configuration) {
56095
56156
  // authentication Bearer required
56096
56157
  // http bearer authentication required
56097
56158
  _a.sent();
56159
+ if (qAnswerApiKey != null) {
56160
+ localVarHeaderParameter['QAnswer-Api-Key'] = String(qAnswerApiKey);
56161
+ }
56098
56162
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
56099
56163
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
56100
56164
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -56110,15 +56174,16 @@ var ToolLLMApiAxiosParamCreator = function (configuration) {
56110
56174
  *
56111
56175
  * @summary Search over all LLM endpoints.
56112
56176
  * @param {LlmFilterDto} filter
56177
+ * @param {string} [qAnswerApiKey]
56113
56178
  * @param {*} [options] Override http request option.
56114
56179
  * @throws {RequiredError}
56115
56180
  */
56116
- search2: function (filter_1) {
56181
+ search2: function (filter_1, qAnswerApiKey_1) {
56117
56182
  var args_1 = [];
56118
- for (var _i = 1; _i < arguments.length; _i++) {
56119
- args_1[_i - 1] = arguments[_i];
56183
+ for (var _i = 2; _i < arguments.length; _i++) {
56184
+ args_1[_i - 2] = arguments[_i];
56120
56185
  }
56121
- return __awaiter(_this, __spreadArray([filter_1], args_1, true), void 0, function (filter, options) {
56186
+ return __awaiter(_this, __spreadArray([filter_1, qAnswerApiKey_1], args_1, true), void 0, function (filter, qAnswerApiKey, options) {
56122
56187
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, _a, _b, _c, key, value, headersFromBaseOptions;
56123
56188
  if (options === void 0) { options = {}; }
56124
56189
  return __generator(this, function (_d) {
@@ -56155,6 +56220,9 @@ var ToolLLMApiAxiosParamCreator = function (configuration) {
56155
56220
  localVarQueryParameter[key] = value;
56156
56221
  }
56157
56222
  }
56223
+ if (qAnswerApiKey != null) {
56224
+ localVarHeaderParameter['QAnswer-Api-Key'] = String(qAnswerApiKey);
56225
+ }
56158
56226
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
56159
56227
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
56160
56228
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -56170,15 +56238,16 @@ var ToolLLMApiAxiosParamCreator = function (configuration) {
56170
56238
  *
56171
56239
  * @summary Search over the LLM endpoints.
56172
56240
  * @param {LlmFilterDto} filter
56241
+ * @param {string} [qAnswerApiKey]
56173
56242
  * @param {*} [options] Override http request option.
56174
56243
  * @throws {RequiredError}
56175
56244
  */
56176
- searchDetailed: function (filter_1) {
56245
+ searchDetailed: function (filter_1, qAnswerApiKey_1) {
56177
56246
  var args_1 = [];
56178
- for (var _i = 1; _i < arguments.length; _i++) {
56179
- args_1[_i - 1] = arguments[_i];
56247
+ for (var _i = 2; _i < arguments.length; _i++) {
56248
+ args_1[_i - 2] = arguments[_i];
56180
56249
  }
56181
- return __awaiter(_this, __spreadArray([filter_1], args_1, true), void 0, function (filter, options) {
56250
+ return __awaiter(_this, __spreadArray([filter_1, qAnswerApiKey_1], args_1, true), void 0, function (filter, qAnswerApiKey, options) {
56182
56251
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, _a, _b, _c, key, value, headersFromBaseOptions;
56183
56252
  if (options === void 0) { options = {}; }
56184
56253
  return __generator(this, function (_d) {
@@ -56215,6 +56284,9 @@ var ToolLLMApiAxiosParamCreator = function (configuration) {
56215
56284
  localVarQueryParameter[key] = value;
56216
56285
  }
56217
56286
  }
56287
+ if (qAnswerApiKey != null) {
56288
+ localVarHeaderParameter['QAnswer-Api-Key'] = String(qAnswerApiKey);
56289
+ }
56218
56290
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
56219
56291
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
56220
56292
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -56231,15 +56303,16 @@ var ToolLLMApiAxiosParamCreator = function (configuration) {
56231
56303
  * @summary Sets the default LLM endpoint
56232
56304
  * @param {number} llmId
56233
56305
  * @param {number} [organizationId]
56306
+ * @param {string} [qAnswerApiKey]
56234
56307
  * @param {*} [options] Override http request option.
56235
56308
  * @throws {RequiredError}
56236
56309
  */
56237
- setDefaultLlmEndpoint: function (llmId_1, organizationId_1) {
56310
+ setDefaultLlmEndpoint: function (llmId_1, organizationId_1, qAnswerApiKey_1) {
56238
56311
  var args_1 = [];
56239
- for (var _i = 2; _i < arguments.length; _i++) {
56240
- args_1[_i - 2] = arguments[_i];
56312
+ for (var _i = 3; _i < arguments.length; _i++) {
56313
+ args_1[_i - 3] = arguments[_i];
56241
56314
  }
56242
- return __awaiter(_this, __spreadArray([llmId_1, organizationId_1], args_1, true), void 0, function (llmId, organizationId, options) {
56315
+ return __awaiter(_this, __spreadArray([llmId_1, organizationId_1, qAnswerApiKey_1], args_1, true), void 0, function (llmId, organizationId, qAnswerApiKey, options) {
56243
56316
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
56244
56317
  if (options === void 0) { options = {}; }
56245
56318
  return __generator(this, function (_a) {
@@ -56276,6 +56349,9 @@ var ToolLLMApiAxiosParamCreator = function (configuration) {
56276
56349
  if (organizationId !== undefined) {
56277
56350
  localVarQueryParameter['organization_id'] = organizationId;
56278
56351
  }
56352
+ if (qAnswerApiKey != null) {
56353
+ localVarHeaderParameter['QAnswer-Api-Key'] = String(qAnswerApiKey);
56354
+ }
56279
56355
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
56280
56356
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
56281
56357
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -56293,15 +56369,16 @@ var ToolLLMApiAxiosParamCreator = function (configuration) {
56293
56369
  * @param {number} id
56294
56370
  * @param {boolean} active
56295
56371
  * @param {number} [organizationId]
56372
+ * @param {string} [qAnswerApiKey]
56296
56373
  * @param {*} [options] Override http request option.
56297
56374
  * @throws {RequiredError}
56298
56375
  */
56299
- setIsActive: function (id_1, active_1, organizationId_1) {
56376
+ setIsActive: function (id_1, active_1, organizationId_1, qAnswerApiKey_1) {
56300
56377
  var args_1 = [];
56301
- for (var _i = 3; _i < arguments.length; _i++) {
56302
- args_1[_i - 3] = arguments[_i];
56378
+ for (var _i = 4; _i < arguments.length; _i++) {
56379
+ args_1[_i - 4] = arguments[_i];
56303
56380
  }
56304
- return __awaiter(_this, __spreadArray([id_1, active_1, organizationId_1], args_1, true), void 0, function (id, active, organizationId, options) {
56381
+ return __awaiter(_this, __spreadArray([id_1, active_1, organizationId_1, qAnswerApiKey_1], args_1, true), void 0, function (id, active, organizationId, qAnswerApiKey, options) {
56305
56382
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
56306
56383
  if (options === void 0) { options = {}; }
56307
56384
  return __generator(this, function (_a) {
@@ -56341,6 +56418,9 @@ var ToolLLMApiAxiosParamCreator = function (configuration) {
56341
56418
  if (active !== undefined) {
56342
56419
  localVarQueryParameter['active'] = active;
56343
56420
  }
56421
+ if (qAnswerApiKey != null) {
56422
+ localVarHeaderParameter['QAnswer-Api-Key'] = String(qAnswerApiKey);
56423
+ }
56344
56424
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
56345
56425
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
56346
56426
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -56357,15 +56437,16 @@ var ToolLLMApiAxiosParamCreator = function (configuration) {
56357
56437
  * @summary Set the logo of an LLM endpoint by id
56358
56438
  * @param {number} id
56359
56439
  * @param {File} file
56440
+ * @param {string} [qAnswerApiKey]
56360
56441
  * @param {*} [options] Override http request option.
56361
56442
  * @throws {RequiredError}
56362
56443
  */
56363
- setLlmEndpointLogo: function (id_1, file_1) {
56444
+ setLlmEndpointLogo: function (id_1, file_1, qAnswerApiKey_1) {
56364
56445
  var args_1 = [];
56365
- for (var _i = 2; _i < arguments.length; _i++) {
56366
- args_1[_i - 2] = arguments[_i];
56446
+ for (var _i = 3; _i < arguments.length; _i++) {
56447
+ args_1[_i - 3] = arguments[_i];
56367
56448
  }
56368
- return __awaiter(_this, __spreadArray([id_1, file_1], args_1, true), void 0, function (id, file, options) {
56449
+ return __awaiter(_this, __spreadArray([id_1, file_1, qAnswerApiKey_1], args_1, true), void 0, function (id, file, qAnswerApiKey, options) {
56369
56450
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarFormParams, headersFromBaseOptions;
56370
56451
  if (options === void 0) { options = {}; }
56371
56452
  return __generator(this, function (_a) {
@@ -56400,6 +56481,9 @@ var ToolLLMApiAxiosParamCreator = function (configuration) {
56400
56481
  // authentication Bearer required
56401
56482
  // http bearer authentication required
56402
56483
  _a.sent();
56484
+ if (qAnswerApiKey != null) {
56485
+ localVarHeaderParameter['QAnswer-Api-Key'] = String(qAnswerApiKey);
56486
+ }
56403
56487
  if (file !== undefined) {
56404
56488
  localVarFormParams.append('file', file);
56405
56489
  }
@@ -56420,15 +56504,16 @@ var ToolLLMApiAxiosParamCreator = function (configuration) {
56420
56504
  *
56421
56505
  * @summary Sets the system default LLM endpoint (used when resetting to defaults)
56422
56506
  * @param {number} llmId
56507
+ * @param {string} [qAnswerApiKey]
56423
56508
  * @param {*} [options] Override http request option.
56424
56509
  * @throws {RequiredError}
56425
56510
  */
56426
- setSystemDefaultLlmEndpoint: function (llmId_1) {
56511
+ setSystemDefaultLlmEndpoint: function (llmId_1, qAnswerApiKey_1) {
56427
56512
  var args_1 = [];
56428
- for (var _i = 1; _i < arguments.length; _i++) {
56429
- args_1[_i - 1] = arguments[_i];
56513
+ for (var _i = 2; _i < arguments.length; _i++) {
56514
+ args_1[_i - 2] = arguments[_i];
56430
56515
  }
56431
- return __awaiter(_this, __spreadArray([llmId_1], args_1, true), void 0, function (llmId, options) {
56516
+ return __awaiter(_this, __spreadArray([llmId_1, qAnswerApiKey_1], args_1, true), void 0, function (llmId, qAnswerApiKey, options) {
56432
56517
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
56433
56518
  if (options === void 0) { options = {}; }
56434
56519
  return __generator(this, function (_a) {
@@ -56462,6 +56547,9 @@ var ToolLLMApiAxiosParamCreator = function (configuration) {
56462
56547
  if (llmId !== undefined) {
56463
56548
  localVarQueryParameter['llm_id'] = llmId;
56464
56549
  }
56550
+ if (qAnswerApiKey != null) {
56551
+ localVarHeaderParameter['QAnswer-Api-Key'] = String(qAnswerApiKey);
56552
+ }
56465
56553
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
56466
56554
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
56467
56555
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -56479,15 +56567,16 @@ var ToolLLMApiAxiosParamCreator = function (configuration) {
56479
56567
  * @param {number} id
56480
56568
  * @param {LlmUpdateDto} llmUpdateDto
56481
56569
  * @param {number} [organizationId]
56570
+ * @param {string} [qAnswerApiKey]
56482
56571
  * @param {*} [options] Override http request option.
56483
56572
  * @throws {RequiredError}
56484
56573
  */
56485
- updateLlmEndpoint: function (id_1, llmUpdateDto_1, organizationId_1) {
56574
+ updateLlmEndpoint: function (id_1, llmUpdateDto_1, organizationId_1, qAnswerApiKey_1) {
56486
56575
  var args_1 = [];
56487
- for (var _i = 3; _i < arguments.length; _i++) {
56488
- args_1[_i - 3] = arguments[_i];
56576
+ for (var _i = 4; _i < arguments.length; _i++) {
56577
+ args_1[_i - 4] = arguments[_i];
56489
56578
  }
56490
- return __awaiter(_this, __spreadArray([id_1, llmUpdateDto_1, organizationId_1], args_1, true), void 0, function (id, llmUpdateDto, organizationId, options) {
56579
+ return __awaiter(_this, __spreadArray([id_1, llmUpdateDto_1, organizationId_1, qAnswerApiKey_1], args_1, true), void 0, function (id, llmUpdateDto, organizationId, qAnswerApiKey, options) {
56491
56580
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
56492
56581
  if (options === void 0) { options = {}; }
56493
56582
  return __generator(this, function (_a) {
@@ -56524,6 +56613,9 @@ var ToolLLMApiAxiosParamCreator = function (configuration) {
56524
56613
  if (organizationId !== undefined) {
56525
56614
  localVarQueryParameter['organization_id'] = organizationId;
56526
56615
  }
56616
+ if (qAnswerApiKey != null) {
56617
+ localVarHeaderParameter['QAnswer-Api-Key'] = String(qAnswerApiKey);
56618
+ }
56527
56619
  localVarHeaderParameter['Content-Type'] = 'application/json';
56528
56620
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
56529
56621
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -56541,15 +56633,16 @@ var ToolLLMApiAxiosParamCreator = function (configuration) {
56541
56633
  *
56542
56634
  * @summary Validate an LLM endpoint by id
56543
56635
  * @param {number} id
56636
+ * @param {string} [qAnswerApiKey]
56544
56637
  * @param {*} [options] Override http request option.
56545
56638
  * @throws {RequiredError}
56546
56639
  */
56547
- validateLlmEndpointById: function (id_1) {
56640
+ validateLlmEndpointById: function (id_1, qAnswerApiKey_1) {
56548
56641
  var args_1 = [];
56549
- for (var _i = 1; _i < arguments.length; _i++) {
56550
- args_1[_i - 1] = arguments[_i];
56642
+ for (var _i = 2; _i < arguments.length; _i++) {
56643
+ args_1[_i - 2] = arguments[_i];
56551
56644
  }
56552
- return __awaiter(_this, __spreadArray([id_1], args_1, true), void 0, function (id, options) {
56645
+ return __awaiter(_this, __spreadArray([id_1, qAnswerApiKey_1], args_1, true), void 0, function (id, qAnswerApiKey, options) {
56553
56646
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
56554
56647
  if (options === void 0) { options = {}; }
56555
56648
  return __generator(this, function (_a) {
@@ -56581,6 +56674,9 @@ var ToolLLMApiAxiosParamCreator = function (configuration) {
56581
56674
  // authentication Bearer required
56582
56675
  // http bearer authentication required
56583
56676
  _a.sent();
56677
+ if (qAnswerApiKey != null) {
56678
+ localVarHeaderParameter['QAnswer-Api-Key'] = String(qAnswerApiKey);
56679
+ }
56584
56680
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
56585
56681
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
56586
56682
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -56608,16 +56704,17 @@ var ToolLLMApiFp = function (configuration) {
56608
56704
  * @summary Create a new LLM endpoint
56609
56705
  * @param {LlmCreateDto} llmCreateDto
56610
56706
  * @param {number} [organizationId]
56707
+ * @param {string} [qAnswerApiKey]
56611
56708
  * @param {*} [options] Override http request option.
56612
56709
  * @throws {RequiredError}
56613
56710
  */
56614
- createLlmEndpoint: function (llmCreateDto, organizationId, options) {
56711
+ createLlmEndpoint: function (llmCreateDto, organizationId, qAnswerApiKey, options) {
56615
56712
  return __awaiter(this, void 0, void 0, function () {
56616
56713
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
56617
56714
  var _a, _b, _c;
56618
56715
  return __generator(this, function (_d) {
56619
56716
  switch (_d.label) {
56620
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.createLlmEndpoint(llmCreateDto, organizationId, options)];
56717
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.createLlmEndpoint(llmCreateDto, organizationId, qAnswerApiKey, options)];
56621
56718
  case 1:
56622
56719
  localVarAxiosArgs = _d.sent();
56623
56720
  localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
@@ -56632,16 +56729,17 @@ var ToolLLMApiFp = function (configuration) {
56632
56729
  * @summary Delete an LLM endpoint
56633
56730
  * @param {number} id
56634
56731
  * @param {number} [organizationId]
56732
+ * @param {string} [qAnswerApiKey]
56635
56733
  * @param {*} [options] Override http request option.
56636
56734
  * @throws {RequiredError}
56637
56735
  */
56638
- deleteLlmEndpoint: function (id, organizationId, options) {
56736
+ deleteLlmEndpoint: function (id, organizationId, qAnswerApiKey, options) {
56639
56737
  return __awaiter(this, void 0, void 0, function () {
56640
56738
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
56641
56739
  var _a, _b, _c;
56642
56740
  return __generator(this, function (_d) {
56643
56741
  switch (_d.label) {
56644
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteLlmEndpoint(id, organizationId, options)];
56742
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteLlmEndpoint(id, organizationId, qAnswerApiKey, options)];
56645
56743
  case 1:
56646
56744
  localVarAxiosArgs = _d.sent();
56647
56745
  localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
@@ -56655,16 +56753,17 @@ var ToolLLMApiFp = function (configuration) {
56655
56753
  *
56656
56754
  * @summary Download LLM consumption costs
56657
56755
  * @param {LlmCostFilter} llmCostFilter
56756
+ * @param {string} [qAnswerApiKey]
56658
56757
  * @param {*} [options] Override http request option.
56659
56758
  * @throws {RequiredError}
56660
56759
  */
56661
- downloadCosts: function (llmCostFilter, options) {
56760
+ downloadCosts: function (llmCostFilter, qAnswerApiKey, options) {
56662
56761
  return __awaiter(this, void 0, void 0, function () {
56663
56762
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
56664
56763
  var _a, _b, _c;
56665
56764
  return __generator(this, function (_d) {
56666
56765
  switch (_d.label) {
56667
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.downloadCosts(llmCostFilter, options)];
56766
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.downloadCosts(llmCostFilter, qAnswerApiKey, options)];
56668
56767
  case 1:
56669
56768
  localVarAxiosArgs = _d.sent();
56670
56769
  localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
@@ -56678,16 +56777,17 @@ var ToolLLMApiFp = function (configuration) {
56678
56777
  *
56679
56778
  * @summary Export LLM endpoints as a ZIP file
56680
56779
  * @param {number} [organizationId]
56780
+ * @param {string} [qAnswerApiKey]
56681
56781
  * @param {*} [options] Override http request option.
56682
56782
  * @throws {RequiredError}
56683
56783
  */
56684
- exportLlmEndpoints: function (organizationId, options) {
56784
+ exportLlmEndpoints: function (organizationId, qAnswerApiKey, options) {
56685
56785
  return __awaiter(this, void 0, void 0, function () {
56686
56786
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
56687
56787
  var _a, _b, _c;
56688
56788
  return __generator(this, function (_d) {
56689
56789
  switch (_d.label) {
56690
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.exportLlmEndpoints(organizationId, options)];
56790
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.exportLlmEndpoints(organizationId, qAnswerApiKey, options)];
56691
56791
  case 1:
56692
56792
  localVarAxiosArgs = _d.sent();
56693
56793
  localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
@@ -56701,16 +56801,17 @@ var ToolLLMApiFp = function (configuration) {
56701
56801
  *
56702
56802
  * @summary Get an LLM endpoint by id
56703
56803
  * @param {number} id
56804
+ * @param {string} [qAnswerApiKey]
56704
56805
  * @param {*} [options] Override http request option.
56705
56806
  * @throws {RequiredError}
56706
56807
  */
56707
- getById: function (id, options) {
56808
+ getById: function (id, qAnswerApiKey, options) {
56708
56809
  return __awaiter(this, void 0, void 0, function () {
56709
56810
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
56710
56811
  var _a, _b, _c;
56711
56812
  return __generator(this, function (_d) {
56712
56813
  switch (_d.label) {
56713
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getById(id, options)];
56814
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getById(id, qAnswerApiKey, options)];
56714
56815
  case 1:
56715
56816
  localVarAxiosArgs = _d.sent();
56716
56817
  localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
@@ -56724,16 +56825,17 @@ var ToolLLMApiFp = function (configuration) {
56724
56825
  *
56725
56826
  * @summary API to get analytics of LLM consumption costs
56726
56827
  * @param {LlmCostFilter} llmCostFilter
56828
+ * @param {string} [qAnswerApiKey]
56727
56829
  * @param {*} [options] Override http request option.
56728
56830
  * @throws {RequiredError}
56729
56831
  */
56730
- getCosts: function (llmCostFilter, options) {
56832
+ getCosts: function (llmCostFilter, qAnswerApiKey, options) {
56731
56833
  return __awaiter(this, void 0, void 0, function () {
56732
56834
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
56733
56835
  var _a, _b, _c;
56734
56836
  return __generator(this, function (_d) {
56735
56837
  switch (_d.label) {
56736
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getCosts(llmCostFilter, options)];
56838
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getCosts(llmCostFilter, qAnswerApiKey, options)];
56737
56839
  case 1:
56738
56840
  localVarAxiosArgs = _d.sent();
56739
56841
  localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
@@ -56747,16 +56849,17 @@ var ToolLLMApiFp = function (configuration) {
56747
56849
  *
56748
56850
  * @summary Retrieves the default LLM endpoint
56749
56851
  * @param {number} [organizationId]
56852
+ * @param {string} [qAnswerApiKey]
56750
56853
  * @param {*} [options] Override http request option.
56751
56854
  * @throws {RequiredError}
56752
56855
  */
56753
- getDefaultLlmEndpoint: function (organizationId, options) {
56856
+ getDefaultLlmEndpoint: function (organizationId, qAnswerApiKey, options) {
56754
56857
  return __awaiter(this, void 0, void 0, function () {
56755
56858
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
56756
56859
  var _a, _b, _c;
56757
56860
  return __generator(this, function (_d) {
56758
56861
  switch (_d.label) {
56759
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getDefaultLlmEndpoint(organizationId, options)];
56862
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getDefaultLlmEndpoint(organizationId, qAnswerApiKey, options)];
56760
56863
  case 1:
56761
56864
  localVarAxiosArgs = _d.sent();
56762
56865
  localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
@@ -56771,16 +56874,17 @@ var ToolLLMApiFp = function (configuration) {
56771
56874
  * @summary Returns if the LLM endpoint is active. If the organization ID is provided, it checks if the endpoint is active for that organization otherwise for the whole application.
56772
56875
  * @param {number} id
56773
56876
  * @param {number} [organizationId]
56877
+ * @param {string} [qAnswerApiKey]
56774
56878
  * @param {*} [options] Override http request option.
56775
56879
  * @throws {RequiredError}
56776
56880
  */
56777
- getIsActive: function (id, organizationId, options) {
56881
+ getIsActive: function (id, organizationId, qAnswerApiKey, options) {
56778
56882
  return __awaiter(this, void 0, void 0, function () {
56779
56883
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
56780
56884
  var _a, _b, _c;
56781
56885
  return __generator(this, function (_d) {
56782
56886
  switch (_d.label) {
56783
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getIsActive(id, organizationId, options)];
56887
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getIsActive(id, organizationId, qAnswerApiKey, options)];
56784
56888
  case 1:
56785
56889
  localVarAxiosArgs = _d.sent();
56786
56890
  localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
@@ -56794,16 +56898,17 @@ var ToolLLMApiFp = function (configuration) {
56794
56898
  * Fetches the info of a specific LLM endpoint by its name.
56795
56899
  * @summary Get LLM info by name
56796
56900
  * @param {string} name
56901
+ * @param {string} [qAnswerApiKey]
56797
56902
  * @param {*} [options] Override http request option.
56798
56903
  * @throws {RequiredError}
56799
56904
  */
56800
- getLlmEndpointByName: function (name, options) {
56905
+ getLlmEndpointByName: function (name, qAnswerApiKey, options) {
56801
56906
  return __awaiter(this, void 0, void 0, function () {
56802
56907
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
56803
56908
  var _a, _b, _c;
56804
56909
  return __generator(this, function (_d) {
56805
56910
  switch (_d.label) {
56806
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getLlmEndpointByName(name, options)];
56911
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getLlmEndpointByName(name, qAnswerApiKey, options)];
56807
56912
  case 1:
56808
56913
  localVarAxiosArgs = _d.sent();
56809
56914
  localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
@@ -56817,16 +56922,17 @@ var ToolLLMApiFp = function (configuration) {
56817
56922
  *
56818
56923
  * @summary Get an LLM endpoint by name
56819
56924
  * @param {string} name
56925
+ * @param {string} [qAnswerApiKey]
56820
56926
  * @param {*} [options] Override http request option.
56821
56927
  * @throws {RequiredError}
56822
56928
  */
56823
- getLlmEndpointByName1: function (name, options) {
56929
+ getLlmEndpointByName1: function (name, qAnswerApiKey, options) {
56824
56930
  return __awaiter(this, void 0, void 0, function () {
56825
56931
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
56826
56932
  var _a, _b, _c;
56827
56933
  return __generator(this, function (_d) {
56828
56934
  switch (_d.label) {
56829
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getLlmEndpointByName1(name, options)];
56935
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getLlmEndpointByName1(name, qAnswerApiKey, options)];
56830
56936
  case 1:
56831
56937
  localVarAxiosArgs = _d.sent();
56832
56938
  localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
@@ -56839,16 +56945,17 @@ var ToolLLMApiFp = function (configuration) {
56839
56945
  /**
56840
56946
  *
56841
56947
  * @summary Get the default prompts for an LLM endpoint
56948
+ * @param {string} [qAnswerApiKey]
56842
56949
  * @param {*} [options] Override http request option.
56843
56950
  * @throws {RequiredError}
56844
56951
  */
56845
- getLlmEndpointDefaultPrompts: function (options) {
56952
+ getLlmEndpointDefaultPrompts: function (qAnswerApiKey, options) {
56846
56953
  return __awaiter(this, void 0, void 0, function () {
56847
56954
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
56848
56955
  var _a, _b, _c;
56849
56956
  return __generator(this, function (_d) {
56850
56957
  switch (_d.label) {
56851
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getLlmEndpointDefaultPrompts(options)];
56958
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getLlmEndpointDefaultPrompts(qAnswerApiKey, options)];
56852
56959
  case 1:
56853
56960
  localVarAxiosArgs = _d.sent();
56854
56961
  localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
@@ -56863,16 +56970,17 @@ var ToolLLMApiFp = function (configuration) {
56863
56970
  * @summary Get the logo of an LLM endpoint by id
56864
56971
  * @param {number} id
56865
56972
  * @param {string} [conversationId]
56973
+ * @param {string} [qAnswerApiKey]
56866
56974
  * @param {*} [options] Override http request option.
56867
56975
  * @throws {RequiredError}
56868
56976
  */
56869
- getLlmEndpointLogo: function (id, conversationId, options) {
56977
+ getLlmEndpointLogo: function (id, conversationId, qAnswerApiKey, options) {
56870
56978
  return __awaiter(this, void 0, void 0, function () {
56871
56979
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
56872
56980
  var _a, _b, _c;
56873
56981
  return __generator(this, function (_d) {
56874
56982
  switch (_d.label) {
56875
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getLlmEndpointLogo(id, conversationId, options)];
56983
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getLlmEndpointLogo(id, conversationId, qAnswerApiKey, options)];
56876
56984
  case 1:
56877
56985
  localVarAxiosArgs = _d.sent();
56878
56986
  localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
@@ -56886,16 +56994,17 @@ var ToolLLMApiFp = function (configuration) {
56886
56994
  *
56887
56995
  * @summary Get all sensitivity levels of LLM endpoints.
56888
56996
  * @param {LlmFilterDto} filter
56997
+ * @param {string} [qAnswerApiKey]
56889
56998
  * @param {*} [options] Override http request option.
56890
56999
  * @throws {RequiredError}
56891
57000
  */
56892
- getSensitivityLevels: function (filter, options) {
57001
+ getSensitivityLevels: function (filter, qAnswerApiKey, options) {
56893
57002
  return __awaiter(this, void 0, void 0, function () {
56894
57003
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
56895
57004
  var _a, _b, _c;
56896
57005
  return __generator(this, function (_d) {
56897
57006
  switch (_d.label) {
56898
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getSensitivityLevels(filter, options)];
57007
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getSensitivityLevels(filter, qAnswerApiKey, options)];
56899
57008
  case 1:
56900
57009
  localVarAxiosArgs = _d.sent();
56901
57010
  localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
@@ -56908,16 +57017,17 @@ var ToolLLMApiFp = function (configuration) {
56908
57017
  /**
56909
57018
  *
56910
57019
  * @summary Retrieves the system default LLM endpoint (used when resetting to defaults)
57020
+ * @param {string} [qAnswerApiKey]
56911
57021
  * @param {*} [options] Override http request option.
56912
57022
  * @throws {RequiredError}
56913
57023
  */
56914
- getSystemDefaultLlmEndpoint: function (options) {
57024
+ getSystemDefaultLlmEndpoint: function (qAnswerApiKey, options) {
56915
57025
  return __awaiter(this, void 0, void 0, function () {
56916
57026
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
56917
57027
  var _a, _b, _c;
56918
57028
  return __generator(this, function (_d) {
56919
57029
  switch (_d.label) {
56920
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getSystemDefaultLlmEndpoint(options)];
57030
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getSystemDefaultLlmEndpoint(qAnswerApiKey, options)];
56921
57031
  case 1:
56922
57032
  localVarAxiosArgs = _d.sent();
56923
57033
  localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
@@ -56932,16 +57042,17 @@ var ToolLLMApiFp = function (configuration) {
56932
57042
  * @summary Import LLM endpoints from a file
56933
57043
  * @param {File} file
56934
57044
  * @param {number} [organizationId]
57045
+ * @param {string} [qAnswerApiKey]
56935
57046
  * @param {*} [options] Override http request option.
56936
57047
  * @throws {RequiredError}
56937
57048
  */
56938
- importLlmEndpoints: function (file, organizationId, options) {
57049
+ importLlmEndpoints: function (file, organizationId, qAnswerApiKey, options) {
56939
57050
  return __awaiter(this, void 0, void 0, function () {
56940
57051
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
56941
57052
  var _a, _b, _c;
56942
57053
  return __generator(this, function (_d) {
56943
57054
  switch (_d.label) {
56944
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.importLlmEndpoints(file, organizationId, options)];
57055
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.importLlmEndpoints(file, organizationId, qAnswerApiKey, options)];
56945
57056
  case 1:
56946
57057
  localVarAxiosArgs = _d.sent();
56947
57058
  localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
@@ -56955,16 +57066,17 @@ var ToolLLMApiFp = function (configuration) {
56955
57066
  *
56956
57067
  * @summary Reset the logo of an LLM endpoint by id
56957
57068
  * @param {number} id
57069
+ * @param {string} [qAnswerApiKey]
56958
57070
  * @param {*} [options] Override http request option.
56959
57071
  * @throws {RequiredError}
56960
57072
  */
56961
- resetLlmEndpointLogo: function (id, options) {
57073
+ resetLlmEndpointLogo: function (id, qAnswerApiKey, options) {
56962
57074
  return __awaiter(this, void 0, void 0, function () {
56963
57075
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
56964
57076
  var _a, _b, _c;
56965
57077
  return __generator(this, function (_d) {
56966
57078
  switch (_d.label) {
56967
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.resetLlmEndpointLogo(id, options)];
57079
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.resetLlmEndpointLogo(id, qAnswerApiKey, options)];
56968
57080
  case 1:
56969
57081
  localVarAxiosArgs = _d.sent();
56970
57082
  localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
@@ -56978,16 +57090,17 @@ var ToolLLMApiFp = function (configuration) {
56978
57090
  *
56979
57091
  * @summary Search over all LLM endpoints.
56980
57092
  * @param {LlmFilterDto} filter
57093
+ * @param {string} [qAnswerApiKey]
56981
57094
  * @param {*} [options] Override http request option.
56982
57095
  * @throws {RequiredError}
56983
57096
  */
56984
- search2: function (filter, options) {
57097
+ search2: function (filter, qAnswerApiKey, options) {
56985
57098
  return __awaiter(this, void 0, void 0, function () {
56986
57099
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
56987
57100
  var _a, _b, _c;
56988
57101
  return __generator(this, function (_d) {
56989
57102
  switch (_d.label) {
56990
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.search2(filter, options)];
57103
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.search2(filter, qAnswerApiKey, options)];
56991
57104
  case 1:
56992
57105
  localVarAxiosArgs = _d.sent();
56993
57106
  localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
@@ -57001,16 +57114,17 @@ var ToolLLMApiFp = function (configuration) {
57001
57114
  *
57002
57115
  * @summary Search over the LLM endpoints.
57003
57116
  * @param {LlmFilterDto} filter
57117
+ * @param {string} [qAnswerApiKey]
57004
57118
  * @param {*} [options] Override http request option.
57005
57119
  * @throws {RequiredError}
57006
57120
  */
57007
- searchDetailed: function (filter, options) {
57121
+ searchDetailed: function (filter, qAnswerApiKey, options) {
57008
57122
  return __awaiter(this, void 0, void 0, function () {
57009
57123
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
57010
57124
  var _a, _b, _c;
57011
57125
  return __generator(this, function (_d) {
57012
57126
  switch (_d.label) {
57013
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.searchDetailed(filter, options)];
57127
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.searchDetailed(filter, qAnswerApiKey, options)];
57014
57128
  case 1:
57015
57129
  localVarAxiosArgs = _d.sent();
57016
57130
  localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
@@ -57025,16 +57139,17 @@ var ToolLLMApiFp = function (configuration) {
57025
57139
  * @summary Sets the default LLM endpoint
57026
57140
  * @param {number} llmId
57027
57141
  * @param {number} [organizationId]
57142
+ * @param {string} [qAnswerApiKey]
57028
57143
  * @param {*} [options] Override http request option.
57029
57144
  * @throws {RequiredError}
57030
57145
  */
57031
- setDefaultLlmEndpoint: function (llmId, organizationId, options) {
57146
+ setDefaultLlmEndpoint: function (llmId, organizationId, qAnswerApiKey, options) {
57032
57147
  return __awaiter(this, void 0, void 0, function () {
57033
57148
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
57034
57149
  var _a, _b, _c;
57035
57150
  return __generator(this, function (_d) {
57036
57151
  switch (_d.label) {
57037
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.setDefaultLlmEndpoint(llmId, organizationId, options)];
57152
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.setDefaultLlmEndpoint(llmId, organizationId, qAnswerApiKey, options)];
57038
57153
  case 1:
57039
57154
  localVarAxiosArgs = _d.sent();
57040
57155
  localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
@@ -57050,16 +57165,17 @@ var ToolLLMApiFp = function (configuration) {
57050
57165
  * @param {number} id
57051
57166
  * @param {boolean} active
57052
57167
  * @param {number} [organizationId]
57168
+ * @param {string} [qAnswerApiKey]
57053
57169
  * @param {*} [options] Override http request option.
57054
57170
  * @throws {RequiredError}
57055
57171
  */
57056
- setIsActive: function (id, active, organizationId, options) {
57172
+ setIsActive: function (id, active, organizationId, qAnswerApiKey, options) {
57057
57173
  return __awaiter(this, void 0, void 0, function () {
57058
57174
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
57059
57175
  var _a, _b, _c;
57060
57176
  return __generator(this, function (_d) {
57061
57177
  switch (_d.label) {
57062
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.setIsActive(id, active, organizationId, options)];
57178
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.setIsActive(id, active, organizationId, qAnswerApiKey, options)];
57063
57179
  case 1:
57064
57180
  localVarAxiosArgs = _d.sent();
57065
57181
  localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
@@ -57074,16 +57190,17 @@ var ToolLLMApiFp = function (configuration) {
57074
57190
  * @summary Set the logo of an LLM endpoint by id
57075
57191
  * @param {number} id
57076
57192
  * @param {File} file
57193
+ * @param {string} [qAnswerApiKey]
57077
57194
  * @param {*} [options] Override http request option.
57078
57195
  * @throws {RequiredError}
57079
57196
  */
57080
- setLlmEndpointLogo: function (id, file, options) {
57197
+ setLlmEndpointLogo: function (id, file, qAnswerApiKey, options) {
57081
57198
  return __awaiter(this, void 0, void 0, function () {
57082
57199
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
57083
57200
  var _a, _b, _c;
57084
57201
  return __generator(this, function (_d) {
57085
57202
  switch (_d.label) {
57086
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.setLlmEndpointLogo(id, file, options)];
57203
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.setLlmEndpointLogo(id, file, qAnswerApiKey, options)];
57087
57204
  case 1:
57088
57205
  localVarAxiosArgs = _d.sent();
57089
57206
  localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
@@ -57097,16 +57214,17 @@ var ToolLLMApiFp = function (configuration) {
57097
57214
  *
57098
57215
  * @summary Sets the system default LLM endpoint (used when resetting to defaults)
57099
57216
  * @param {number} llmId
57217
+ * @param {string} [qAnswerApiKey]
57100
57218
  * @param {*} [options] Override http request option.
57101
57219
  * @throws {RequiredError}
57102
57220
  */
57103
- setSystemDefaultLlmEndpoint: function (llmId, options) {
57221
+ setSystemDefaultLlmEndpoint: function (llmId, qAnswerApiKey, options) {
57104
57222
  return __awaiter(this, void 0, void 0, function () {
57105
57223
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
57106
57224
  var _a, _b, _c;
57107
57225
  return __generator(this, function (_d) {
57108
57226
  switch (_d.label) {
57109
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.setSystemDefaultLlmEndpoint(llmId, options)];
57227
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.setSystemDefaultLlmEndpoint(llmId, qAnswerApiKey, options)];
57110
57228
  case 1:
57111
57229
  localVarAxiosArgs = _d.sent();
57112
57230
  localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
@@ -57122,16 +57240,17 @@ var ToolLLMApiFp = function (configuration) {
57122
57240
  * @param {number} id
57123
57241
  * @param {LlmUpdateDto} llmUpdateDto
57124
57242
  * @param {number} [organizationId]
57243
+ * @param {string} [qAnswerApiKey]
57125
57244
  * @param {*} [options] Override http request option.
57126
57245
  * @throws {RequiredError}
57127
57246
  */
57128
- updateLlmEndpoint: function (id, llmUpdateDto, organizationId, options) {
57247
+ updateLlmEndpoint: function (id, llmUpdateDto, organizationId, qAnswerApiKey, options) {
57129
57248
  return __awaiter(this, void 0, void 0, function () {
57130
57249
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
57131
57250
  var _a, _b, _c;
57132
57251
  return __generator(this, function (_d) {
57133
57252
  switch (_d.label) {
57134
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateLlmEndpoint(id, llmUpdateDto, organizationId, options)];
57253
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateLlmEndpoint(id, llmUpdateDto, organizationId, qAnswerApiKey, options)];
57135
57254
  case 1:
57136
57255
  localVarAxiosArgs = _d.sent();
57137
57256
  localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
@@ -57145,16 +57264,17 @@ var ToolLLMApiFp = function (configuration) {
57145
57264
  *
57146
57265
  * @summary Validate an LLM endpoint by id
57147
57266
  * @param {number} id
57267
+ * @param {string} [qAnswerApiKey]
57148
57268
  * @param {*} [options] Override http request option.
57149
57269
  * @throws {RequiredError}
57150
57270
  */
57151
- validateLlmEndpointById: function (id, options) {
57271
+ validateLlmEndpointById: function (id, qAnswerApiKey, options) {
57152
57272
  return __awaiter(this, void 0, void 0, function () {
57153
57273
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
57154
57274
  var _a, _b, _c;
57155
57275
  return __generator(this, function (_d) {
57156
57276
  switch (_d.label) {
57157
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.validateLlmEndpointById(id, options)];
57277
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.validateLlmEndpointById(id, qAnswerApiKey, options)];
57158
57278
  case 1:
57159
57279
  localVarAxiosArgs = _d.sent();
57160
57280
  localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
@@ -57183,7 +57303,7 @@ var ToolLLMApiFactory = function (configuration, basePath, axios) {
57183
57303
  * @throws {RequiredError}
57184
57304
  */
57185
57305
  createLlmEndpoint: function (requestParameters, options) {
57186
- return localVarFp.createLlmEndpoint(requestParameters.llmCreateDto, requestParameters.organizationId, options).then(function (request) { return request(axios, basePath); });
57306
+ return localVarFp.createLlmEndpoint(requestParameters.llmCreateDto, requestParameters.organizationId, requestParameters.qAnswerApiKey, options).then(function (request) { return request(axios, basePath); });
57187
57307
  },
57188
57308
  /**
57189
57309
  *
@@ -57193,7 +57313,7 @@ var ToolLLMApiFactory = function (configuration, basePath, axios) {
57193
57313
  * @throws {RequiredError}
57194
57314
  */
57195
57315
  deleteLlmEndpoint: function (requestParameters, options) {
57196
- return localVarFp.deleteLlmEndpoint(requestParameters.id, requestParameters.organizationId, options).then(function (request) { return request(axios, basePath); });
57316
+ return localVarFp.deleteLlmEndpoint(requestParameters.id, requestParameters.organizationId, requestParameters.qAnswerApiKey, options).then(function (request) { return request(axios, basePath); });
57197
57317
  },
57198
57318
  /**
57199
57319
  *
@@ -57203,7 +57323,7 @@ var ToolLLMApiFactory = function (configuration, basePath, axios) {
57203
57323
  * @throws {RequiredError}
57204
57324
  */
57205
57325
  downloadCosts: function (requestParameters, options) {
57206
- return localVarFp.downloadCosts(requestParameters.llmCostFilter, options).then(function (request) { return request(axios, basePath); });
57326
+ return localVarFp.downloadCosts(requestParameters.llmCostFilter, requestParameters.qAnswerApiKey, options).then(function (request) { return request(axios, basePath); });
57207
57327
  },
57208
57328
  /**
57209
57329
  *
@@ -57214,7 +57334,7 @@ var ToolLLMApiFactory = function (configuration, basePath, axios) {
57214
57334
  */
57215
57335
  exportLlmEndpoints: function (requestParameters, options) {
57216
57336
  if (requestParameters === void 0) { requestParameters = {}; }
57217
- return localVarFp.exportLlmEndpoints(requestParameters.organizationId, options).then(function (request) { return request(axios, basePath); });
57337
+ return localVarFp.exportLlmEndpoints(requestParameters.organizationId, requestParameters.qAnswerApiKey, options).then(function (request) { return request(axios, basePath); });
57218
57338
  },
57219
57339
  /**
57220
57340
  *
@@ -57224,7 +57344,7 @@ var ToolLLMApiFactory = function (configuration, basePath, axios) {
57224
57344
  * @throws {RequiredError}
57225
57345
  */
57226
57346
  getById: function (requestParameters, options) {
57227
- return localVarFp.getById(requestParameters.id, options).then(function (request) { return request(axios, basePath); });
57347
+ return localVarFp.getById(requestParameters.id, requestParameters.qAnswerApiKey, options).then(function (request) { return request(axios, basePath); });
57228
57348
  },
57229
57349
  /**
57230
57350
  *
@@ -57234,7 +57354,7 @@ var ToolLLMApiFactory = function (configuration, basePath, axios) {
57234
57354
  * @throws {RequiredError}
57235
57355
  */
57236
57356
  getCosts: function (requestParameters, options) {
57237
- return localVarFp.getCosts(requestParameters.llmCostFilter, options).then(function (request) { return request(axios, basePath); });
57357
+ return localVarFp.getCosts(requestParameters.llmCostFilter, requestParameters.qAnswerApiKey, options).then(function (request) { return request(axios, basePath); });
57238
57358
  },
57239
57359
  /**
57240
57360
  *
@@ -57245,7 +57365,7 @@ var ToolLLMApiFactory = function (configuration, basePath, axios) {
57245
57365
  */
57246
57366
  getDefaultLlmEndpoint: function (requestParameters, options) {
57247
57367
  if (requestParameters === void 0) { requestParameters = {}; }
57248
- return localVarFp.getDefaultLlmEndpoint(requestParameters.organizationId, options).then(function (request) { return request(axios, basePath); });
57368
+ return localVarFp.getDefaultLlmEndpoint(requestParameters.organizationId, requestParameters.qAnswerApiKey, options).then(function (request) { return request(axios, basePath); });
57249
57369
  },
57250
57370
  /**
57251
57371
  *
@@ -57255,7 +57375,7 @@ var ToolLLMApiFactory = function (configuration, basePath, axios) {
57255
57375
  * @throws {RequiredError}
57256
57376
  */
57257
57377
  getIsActive: function (requestParameters, options) {
57258
- return localVarFp.getIsActive(requestParameters.id, requestParameters.organizationId, options).then(function (request) { return request(axios, basePath); });
57378
+ return localVarFp.getIsActive(requestParameters.id, requestParameters.organizationId, requestParameters.qAnswerApiKey, options).then(function (request) { return request(axios, basePath); });
57259
57379
  },
57260
57380
  /**
57261
57381
  * Fetches the info of a specific LLM endpoint by its name.
@@ -57265,7 +57385,7 @@ var ToolLLMApiFactory = function (configuration, basePath, axios) {
57265
57385
  * @throws {RequiredError}
57266
57386
  */
57267
57387
  getLlmEndpointByName: function (requestParameters, options) {
57268
- return localVarFp.getLlmEndpointByName(requestParameters.name, options).then(function (request) { return request(axios, basePath); });
57388
+ return localVarFp.getLlmEndpointByName(requestParameters.name, requestParameters.qAnswerApiKey, options).then(function (request) { return request(axios, basePath); });
57269
57389
  },
57270
57390
  /**
57271
57391
  *
@@ -57275,16 +57395,18 @@ var ToolLLMApiFactory = function (configuration, basePath, axios) {
57275
57395
  * @throws {RequiredError}
57276
57396
  */
57277
57397
  getLlmEndpointByName1: function (requestParameters, options) {
57278
- return localVarFp.getLlmEndpointByName1(requestParameters.name, options).then(function (request) { return request(axios, basePath); });
57398
+ return localVarFp.getLlmEndpointByName1(requestParameters.name, requestParameters.qAnswerApiKey, options).then(function (request) { return request(axios, basePath); });
57279
57399
  },
57280
57400
  /**
57281
57401
  *
57282
57402
  * @summary Get the default prompts for an LLM endpoint
57403
+ * @param {ToolLLMApiGetLlmEndpointDefaultPromptsRequest} requestParameters Request parameters.
57283
57404
  * @param {*} [options] Override http request option.
57284
57405
  * @throws {RequiredError}
57285
57406
  */
57286
- getLlmEndpointDefaultPrompts: function (options) {
57287
- return localVarFp.getLlmEndpointDefaultPrompts(options).then(function (request) { return request(axios, basePath); });
57407
+ getLlmEndpointDefaultPrompts: function (requestParameters, options) {
57408
+ if (requestParameters === void 0) { requestParameters = {}; }
57409
+ return localVarFp.getLlmEndpointDefaultPrompts(requestParameters.qAnswerApiKey, options).then(function (request) { return request(axios, basePath); });
57288
57410
  },
57289
57411
  /**
57290
57412
  *
@@ -57294,7 +57416,7 @@ var ToolLLMApiFactory = function (configuration, basePath, axios) {
57294
57416
  * @throws {RequiredError}
57295
57417
  */
57296
57418
  getLlmEndpointLogo: function (requestParameters, options) {
57297
- return localVarFp.getLlmEndpointLogo(requestParameters.id, requestParameters.conversationId, options).then(function (request) { return request(axios, basePath); });
57419
+ return localVarFp.getLlmEndpointLogo(requestParameters.id, requestParameters.conversationId, requestParameters.qAnswerApiKey, options).then(function (request) { return request(axios, basePath); });
57298
57420
  },
57299
57421
  /**
57300
57422
  *
@@ -57304,16 +57426,18 @@ var ToolLLMApiFactory = function (configuration, basePath, axios) {
57304
57426
  * @throws {RequiredError}
57305
57427
  */
57306
57428
  getSensitivityLevels: function (requestParameters, options) {
57307
- return localVarFp.getSensitivityLevels(requestParameters.filter, options).then(function (request) { return request(axios, basePath); });
57429
+ return localVarFp.getSensitivityLevels(requestParameters.filter, requestParameters.qAnswerApiKey, options).then(function (request) { return request(axios, basePath); });
57308
57430
  },
57309
57431
  /**
57310
57432
  *
57311
57433
  * @summary Retrieves the system default LLM endpoint (used when resetting to defaults)
57434
+ * @param {ToolLLMApiGetSystemDefaultLlmEndpointRequest} requestParameters Request parameters.
57312
57435
  * @param {*} [options] Override http request option.
57313
57436
  * @throws {RequiredError}
57314
57437
  */
57315
- getSystemDefaultLlmEndpoint: function (options) {
57316
- return localVarFp.getSystemDefaultLlmEndpoint(options).then(function (request) { return request(axios, basePath); });
57438
+ getSystemDefaultLlmEndpoint: function (requestParameters, options) {
57439
+ if (requestParameters === void 0) { requestParameters = {}; }
57440
+ return localVarFp.getSystemDefaultLlmEndpoint(requestParameters.qAnswerApiKey, options).then(function (request) { return request(axios, basePath); });
57317
57441
  },
57318
57442
  /**
57319
57443
  *
@@ -57323,7 +57447,7 @@ var ToolLLMApiFactory = function (configuration, basePath, axios) {
57323
57447
  * @throws {RequiredError}
57324
57448
  */
57325
57449
  importLlmEndpoints: function (requestParameters, options) {
57326
- return localVarFp.importLlmEndpoints(requestParameters.file, requestParameters.organizationId, options).then(function (request) { return request(axios, basePath); });
57450
+ return localVarFp.importLlmEndpoints(requestParameters.file, requestParameters.organizationId, requestParameters.qAnswerApiKey, options).then(function (request) { return request(axios, basePath); });
57327
57451
  },
57328
57452
  /**
57329
57453
  *
@@ -57333,7 +57457,7 @@ var ToolLLMApiFactory = function (configuration, basePath, axios) {
57333
57457
  * @throws {RequiredError}
57334
57458
  */
57335
57459
  resetLlmEndpointLogo: function (requestParameters, options) {
57336
- return localVarFp.resetLlmEndpointLogo(requestParameters.id, options).then(function (request) { return request(axios, basePath); });
57460
+ return localVarFp.resetLlmEndpointLogo(requestParameters.id, requestParameters.qAnswerApiKey, options).then(function (request) { return request(axios, basePath); });
57337
57461
  },
57338
57462
  /**
57339
57463
  *
@@ -57343,7 +57467,7 @@ var ToolLLMApiFactory = function (configuration, basePath, axios) {
57343
57467
  * @throws {RequiredError}
57344
57468
  */
57345
57469
  search2: function (requestParameters, options) {
57346
- return localVarFp.search2(requestParameters.filter, options).then(function (request) { return request(axios, basePath); });
57470
+ return localVarFp.search2(requestParameters.filter, requestParameters.qAnswerApiKey, options).then(function (request) { return request(axios, basePath); });
57347
57471
  },
57348
57472
  /**
57349
57473
  *
@@ -57353,7 +57477,7 @@ var ToolLLMApiFactory = function (configuration, basePath, axios) {
57353
57477
  * @throws {RequiredError}
57354
57478
  */
57355
57479
  searchDetailed: function (requestParameters, options) {
57356
- return localVarFp.searchDetailed(requestParameters.filter, options).then(function (request) { return request(axios, basePath); });
57480
+ return localVarFp.searchDetailed(requestParameters.filter, requestParameters.qAnswerApiKey, options).then(function (request) { return request(axios, basePath); });
57357
57481
  },
57358
57482
  /**
57359
57483
  *
@@ -57363,7 +57487,7 @@ var ToolLLMApiFactory = function (configuration, basePath, axios) {
57363
57487
  * @throws {RequiredError}
57364
57488
  */
57365
57489
  setDefaultLlmEndpoint: function (requestParameters, options) {
57366
- return localVarFp.setDefaultLlmEndpoint(requestParameters.llmId, requestParameters.organizationId, options).then(function (request) { return request(axios, basePath); });
57490
+ return localVarFp.setDefaultLlmEndpoint(requestParameters.llmId, requestParameters.organizationId, requestParameters.qAnswerApiKey, options).then(function (request) { return request(axios, basePath); });
57367
57491
  },
57368
57492
  /**
57369
57493
  *
@@ -57373,7 +57497,7 @@ var ToolLLMApiFactory = function (configuration, basePath, axios) {
57373
57497
  * @throws {RequiredError}
57374
57498
  */
57375
57499
  setIsActive: function (requestParameters, options) {
57376
- return localVarFp.setIsActive(requestParameters.id, requestParameters.active, requestParameters.organizationId, options).then(function (request) { return request(axios, basePath); });
57500
+ return localVarFp.setIsActive(requestParameters.id, requestParameters.active, requestParameters.organizationId, requestParameters.qAnswerApiKey, options).then(function (request) { return request(axios, basePath); });
57377
57501
  },
57378
57502
  /**
57379
57503
  *
@@ -57383,7 +57507,7 @@ var ToolLLMApiFactory = function (configuration, basePath, axios) {
57383
57507
  * @throws {RequiredError}
57384
57508
  */
57385
57509
  setLlmEndpointLogo: function (requestParameters, options) {
57386
- return localVarFp.setLlmEndpointLogo(requestParameters.id, requestParameters.file, options).then(function (request) { return request(axios, basePath); });
57510
+ return localVarFp.setLlmEndpointLogo(requestParameters.id, requestParameters.file, requestParameters.qAnswerApiKey, options).then(function (request) { return request(axios, basePath); });
57387
57511
  },
57388
57512
  /**
57389
57513
  *
@@ -57393,7 +57517,7 @@ var ToolLLMApiFactory = function (configuration, basePath, axios) {
57393
57517
  * @throws {RequiredError}
57394
57518
  */
57395
57519
  setSystemDefaultLlmEndpoint: function (requestParameters, options) {
57396
- return localVarFp.setSystemDefaultLlmEndpoint(requestParameters.llmId, options).then(function (request) { return request(axios, basePath); });
57520
+ return localVarFp.setSystemDefaultLlmEndpoint(requestParameters.llmId, requestParameters.qAnswerApiKey, options).then(function (request) { return request(axios, basePath); });
57397
57521
  },
57398
57522
  /**
57399
57523
  *
@@ -57403,7 +57527,7 @@ var ToolLLMApiFactory = function (configuration, basePath, axios) {
57403
57527
  * @throws {RequiredError}
57404
57528
  */
57405
57529
  updateLlmEndpoint: function (requestParameters, options) {
57406
- return localVarFp.updateLlmEndpoint(requestParameters.id, requestParameters.llmUpdateDto, requestParameters.organizationId, options).then(function (request) { return request(axios, basePath); });
57530
+ return localVarFp.updateLlmEndpoint(requestParameters.id, requestParameters.llmUpdateDto, requestParameters.organizationId, requestParameters.qAnswerApiKey, options).then(function (request) { return request(axios, basePath); });
57407
57531
  },
57408
57532
  /**
57409
57533
  *
@@ -57413,7 +57537,7 @@ var ToolLLMApiFactory = function (configuration, basePath, axios) {
57413
57537
  * @throws {RequiredError}
57414
57538
  */
57415
57539
  validateLlmEndpointById: function (requestParameters, options) {
57416
- return localVarFp.validateLlmEndpointById(requestParameters.id, options).then(function (request) { return request(axios, basePath); });
57540
+ return localVarFp.validateLlmEndpointById(requestParameters.id, requestParameters.qAnswerApiKey, options).then(function (request) { return request(axios, basePath); });
57417
57541
  },
57418
57542
  };
57419
57543
  };
@@ -57440,7 +57564,7 @@ var ToolLLMApi = /** @class */ (function (_super) {
57440
57564
  */
57441
57565
  ToolLLMApi.prototype.createLlmEndpoint = function (requestParameters, options) {
57442
57566
  var _this = this;
57443
- return (0, exports.ToolLLMApiFp)(this.configuration).createLlmEndpoint(requestParameters.llmCreateDto, requestParameters.organizationId, options).then(function (request) { return request(_this.axios, _this.basePath); });
57567
+ return (0, exports.ToolLLMApiFp)(this.configuration).createLlmEndpoint(requestParameters.llmCreateDto, requestParameters.organizationId, requestParameters.qAnswerApiKey, options).then(function (request) { return request(_this.axios, _this.basePath); });
57444
57568
  };
57445
57569
  /**
57446
57570
  *
@@ -57452,7 +57576,7 @@ var ToolLLMApi = /** @class */ (function (_super) {
57452
57576
  */
57453
57577
  ToolLLMApi.prototype.deleteLlmEndpoint = function (requestParameters, options) {
57454
57578
  var _this = this;
57455
- return (0, exports.ToolLLMApiFp)(this.configuration).deleteLlmEndpoint(requestParameters.id, requestParameters.organizationId, options).then(function (request) { return request(_this.axios, _this.basePath); });
57579
+ return (0, exports.ToolLLMApiFp)(this.configuration).deleteLlmEndpoint(requestParameters.id, requestParameters.organizationId, requestParameters.qAnswerApiKey, options).then(function (request) { return request(_this.axios, _this.basePath); });
57456
57580
  };
57457
57581
  /**
57458
57582
  *
@@ -57464,7 +57588,7 @@ var ToolLLMApi = /** @class */ (function (_super) {
57464
57588
  */
57465
57589
  ToolLLMApi.prototype.downloadCosts = function (requestParameters, options) {
57466
57590
  var _this = this;
57467
- return (0, exports.ToolLLMApiFp)(this.configuration).downloadCosts(requestParameters.llmCostFilter, options).then(function (request) { return request(_this.axios, _this.basePath); });
57591
+ return (0, exports.ToolLLMApiFp)(this.configuration).downloadCosts(requestParameters.llmCostFilter, requestParameters.qAnswerApiKey, options).then(function (request) { return request(_this.axios, _this.basePath); });
57468
57592
  };
57469
57593
  /**
57470
57594
  *
@@ -57477,7 +57601,7 @@ var ToolLLMApi = /** @class */ (function (_super) {
57477
57601
  ToolLLMApi.prototype.exportLlmEndpoints = function (requestParameters, options) {
57478
57602
  var _this = this;
57479
57603
  if (requestParameters === void 0) { requestParameters = {}; }
57480
- return (0, exports.ToolLLMApiFp)(this.configuration).exportLlmEndpoints(requestParameters.organizationId, options).then(function (request) { return request(_this.axios, _this.basePath); });
57604
+ return (0, exports.ToolLLMApiFp)(this.configuration).exportLlmEndpoints(requestParameters.organizationId, requestParameters.qAnswerApiKey, options).then(function (request) { return request(_this.axios, _this.basePath); });
57481
57605
  };
57482
57606
  /**
57483
57607
  *
@@ -57489,7 +57613,7 @@ var ToolLLMApi = /** @class */ (function (_super) {
57489
57613
  */
57490
57614
  ToolLLMApi.prototype.getById = function (requestParameters, options) {
57491
57615
  var _this = this;
57492
- return (0, exports.ToolLLMApiFp)(this.configuration).getById(requestParameters.id, options).then(function (request) { return request(_this.axios, _this.basePath); });
57616
+ return (0, exports.ToolLLMApiFp)(this.configuration).getById(requestParameters.id, requestParameters.qAnswerApiKey, options).then(function (request) { return request(_this.axios, _this.basePath); });
57493
57617
  };
57494
57618
  /**
57495
57619
  *
@@ -57501,7 +57625,7 @@ var ToolLLMApi = /** @class */ (function (_super) {
57501
57625
  */
57502
57626
  ToolLLMApi.prototype.getCosts = function (requestParameters, options) {
57503
57627
  var _this = this;
57504
- return (0, exports.ToolLLMApiFp)(this.configuration).getCosts(requestParameters.llmCostFilter, options).then(function (request) { return request(_this.axios, _this.basePath); });
57628
+ return (0, exports.ToolLLMApiFp)(this.configuration).getCosts(requestParameters.llmCostFilter, requestParameters.qAnswerApiKey, options).then(function (request) { return request(_this.axios, _this.basePath); });
57505
57629
  };
57506
57630
  /**
57507
57631
  *
@@ -57514,7 +57638,7 @@ var ToolLLMApi = /** @class */ (function (_super) {
57514
57638
  ToolLLMApi.prototype.getDefaultLlmEndpoint = function (requestParameters, options) {
57515
57639
  var _this = this;
57516
57640
  if (requestParameters === void 0) { requestParameters = {}; }
57517
- return (0, exports.ToolLLMApiFp)(this.configuration).getDefaultLlmEndpoint(requestParameters.organizationId, options).then(function (request) { return request(_this.axios, _this.basePath); });
57641
+ return (0, exports.ToolLLMApiFp)(this.configuration).getDefaultLlmEndpoint(requestParameters.organizationId, requestParameters.qAnswerApiKey, options).then(function (request) { return request(_this.axios, _this.basePath); });
57518
57642
  };
57519
57643
  /**
57520
57644
  *
@@ -57526,7 +57650,7 @@ var ToolLLMApi = /** @class */ (function (_super) {
57526
57650
  */
57527
57651
  ToolLLMApi.prototype.getIsActive = function (requestParameters, options) {
57528
57652
  var _this = this;
57529
- return (0, exports.ToolLLMApiFp)(this.configuration).getIsActive(requestParameters.id, requestParameters.organizationId, options).then(function (request) { return request(_this.axios, _this.basePath); });
57653
+ return (0, exports.ToolLLMApiFp)(this.configuration).getIsActive(requestParameters.id, requestParameters.organizationId, requestParameters.qAnswerApiKey, options).then(function (request) { return request(_this.axios, _this.basePath); });
57530
57654
  };
57531
57655
  /**
57532
57656
  * Fetches the info of a specific LLM endpoint by its name.
@@ -57538,7 +57662,7 @@ var ToolLLMApi = /** @class */ (function (_super) {
57538
57662
  */
57539
57663
  ToolLLMApi.prototype.getLlmEndpointByName = function (requestParameters, options) {
57540
57664
  var _this = this;
57541
- return (0, exports.ToolLLMApiFp)(this.configuration).getLlmEndpointByName(requestParameters.name, options).then(function (request) { return request(_this.axios, _this.basePath); });
57665
+ return (0, exports.ToolLLMApiFp)(this.configuration).getLlmEndpointByName(requestParameters.name, requestParameters.qAnswerApiKey, options).then(function (request) { return request(_this.axios, _this.basePath); });
57542
57666
  };
57543
57667
  /**
57544
57668
  *
@@ -57550,18 +57674,20 @@ var ToolLLMApi = /** @class */ (function (_super) {
57550
57674
  */
57551
57675
  ToolLLMApi.prototype.getLlmEndpointByName1 = function (requestParameters, options) {
57552
57676
  var _this = this;
57553
- return (0, exports.ToolLLMApiFp)(this.configuration).getLlmEndpointByName1(requestParameters.name, options).then(function (request) { return request(_this.axios, _this.basePath); });
57677
+ return (0, exports.ToolLLMApiFp)(this.configuration).getLlmEndpointByName1(requestParameters.name, requestParameters.qAnswerApiKey, options).then(function (request) { return request(_this.axios, _this.basePath); });
57554
57678
  };
57555
57679
  /**
57556
57680
  *
57557
57681
  * @summary Get the default prompts for an LLM endpoint
57682
+ * @param {ToolLLMApiGetLlmEndpointDefaultPromptsRequest} requestParameters Request parameters.
57558
57683
  * @param {*} [options] Override http request option.
57559
57684
  * @throws {RequiredError}
57560
57685
  * @memberof ToolLLMApi
57561
57686
  */
57562
- ToolLLMApi.prototype.getLlmEndpointDefaultPrompts = function (options) {
57687
+ ToolLLMApi.prototype.getLlmEndpointDefaultPrompts = function (requestParameters, options) {
57563
57688
  var _this = this;
57564
- return (0, exports.ToolLLMApiFp)(this.configuration).getLlmEndpointDefaultPrompts(options).then(function (request) { return request(_this.axios, _this.basePath); });
57689
+ if (requestParameters === void 0) { requestParameters = {}; }
57690
+ return (0, exports.ToolLLMApiFp)(this.configuration).getLlmEndpointDefaultPrompts(requestParameters.qAnswerApiKey, options).then(function (request) { return request(_this.axios, _this.basePath); });
57565
57691
  };
57566
57692
  /**
57567
57693
  *
@@ -57573,7 +57699,7 @@ var ToolLLMApi = /** @class */ (function (_super) {
57573
57699
  */
57574
57700
  ToolLLMApi.prototype.getLlmEndpointLogo = function (requestParameters, options) {
57575
57701
  var _this = this;
57576
- return (0, exports.ToolLLMApiFp)(this.configuration).getLlmEndpointLogo(requestParameters.id, requestParameters.conversationId, options).then(function (request) { return request(_this.axios, _this.basePath); });
57702
+ return (0, exports.ToolLLMApiFp)(this.configuration).getLlmEndpointLogo(requestParameters.id, requestParameters.conversationId, requestParameters.qAnswerApiKey, options).then(function (request) { return request(_this.axios, _this.basePath); });
57577
57703
  };
57578
57704
  /**
57579
57705
  *
@@ -57585,18 +57711,20 @@ var ToolLLMApi = /** @class */ (function (_super) {
57585
57711
  */
57586
57712
  ToolLLMApi.prototype.getSensitivityLevels = function (requestParameters, options) {
57587
57713
  var _this = this;
57588
- return (0, exports.ToolLLMApiFp)(this.configuration).getSensitivityLevels(requestParameters.filter, options).then(function (request) { return request(_this.axios, _this.basePath); });
57714
+ return (0, exports.ToolLLMApiFp)(this.configuration).getSensitivityLevels(requestParameters.filter, requestParameters.qAnswerApiKey, options).then(function (request) { return request(_this.axios, _this.basePath); });
57589
57715
  };
57590
57716
  /**
57591
57717
  *
57592
57718
  * @summary Retrieves the system default LLM endpoint (used when resetting to defaults)
57719
+ * @param {ToolLLMApiGetSystemDefaultLlmEndpointRequest} requestParameters Request parameters.
57593
57720
  * @param {*} [options] Override http request option.
57594
57721
  * @throws {RequiredError}
57595
57722
  * @memberof ToolLLMApi
57596
57723
  */
57597
- ToolLLMApi.prototype.getSystemDefaultLlmEndpoint = function (options) {
57724
+ ToolLLMApi.prototype.getSystemDefaultLlmEndpoint = function (requestParameters, options) {
57598
57725
  var _this = this;
57599
- return (0, exports.ToolLLMApiFp)(this.configuration).getSystemDefaultLlmEndpoint(options).then(function (request) { return request(_this.axios, _this.basePath); });
57726
+ if (requestParameters === void 0) { requestParameters = {}; }
57727
+ return (0, exports.ToolLLMApiFp)(this.configuration).getSystemDefaultLlmEndpoint(requestParameters.qAnswerApiKey, options).then(function (request) { return request(_this.axios, _this.basePath); });
57600
57728
  };
57601
57729
  /**
57602
57730
  *
@@ -57608,7 +57736,7 @@ var ToolLLMApi = /** @class */ (function (_super) {
57608
57736
  */
57609
57737
  ToolLLMApi.prototype.importLlmEndpoints = function (requestParameters, options) {
57610
57738
  var _this = this;
57611
- return (0, exports.ToolLLMApiFp)(this.configuration).importLlmEndpoints(requestParameters.file, requestParameters.organizationId, options).then(function (request) { return request(_this.axios, _this.basePath); });
57739
+ return (0, exports.ToolLLMApiFp)(this.configuration).importLlmEndpoints(requestParameters.file, requestParameters.organizationId, requestParameters.qAnswerApiKey, options).then(function (request) { return request(_this.axios, _this.basePath); });
57612
57740
  };
57613
57741
  /**
57614
57742
  *
@@ -57620,7 +57748,7 @@ var ToolLLMApi = /** @class */ (function (_super) {
57620
57748
  */
57621
57749
  ToolLLMApi.prototype.resetLlmEndpointLogo = function (requestParameters, options) {
57622
57750
  var _this = this;
57623
- return (0, exports.ToolLLMApiFp)(this.configuration).resetLlmEndpointLogo(requestParameters.id, options).then(function (request) { return request(_this.axios, _this.basePath); });
57751
+ return (0, exports.ToolLLMApiFp)(this.configuration).resetLlmEndpointLogo(requestParameters.id, requestParameters.qAnswerApiKey, options).then(function (request) { return request(_this.axios, _this.basePath); });
57624
57752
  };
57625
57753
  /**
57626
57754
  *
@@ -57632,7 +57760,7 @@ var ToolLLMApi = /** @class */ (function (_super) {
57632
57760
  */
57633
57761
  ToolLLMApi.prototype.search2 = function (requestParameters, options) {
57634
57762
  var _this = this;
57635
- return (0, exports.ToolLLMApiFp)(this.configuration).search2(requestParameters.filter, options).then(function (request) { return request(_this.axios, _this.basePath); });
57763
+ return (0, exports.ToolLLMApiFp)(this.configuration).search2(requestParameters.filter, requestParameters.qAnswerApiKey, options).then(function (request) { return request(_this.axios, _this.basePath); });
57636
57764
  };
57637
57765
  /**
57638
57766
  *
@@ -57644,7 +57772,7 @@ var ToolLLMApi = /** @class */ (function (_super) {
57644
57772
  */
57645
57773
  ToolLLMApi.prototype.searchDetailed = function (requestParameters, options) {
57646
57774
  var _this = this;
57647
- return (0, exports.ToolLLMApiFp)(this.configuration).searchDetailed(requestParameters.filter, options).then(function (request) { return request(_this.axios, _this.basePath); });
57775
+ return (0, exports.ToolLLMApiFp)(this.configuration).searchDetailed(requestParameters.filter, requestParameters.qAnswerApiKey, options).then(function (request) { return request(_this.axios, _this.basePath); });
57648
57776
  };
57649
57777
  /**
57650
57778
  *
@@ -57656,7 +57784,7 @@ var ToolLLMApi = /** @class */ (function (_super) {
57656
57784
  */
57657
57785
  ToolLLMApi.prototype.setDefaultLlmEndpoint = function (requestParameters, options) {
57658
57786
  var _this = this;
57659
- return (0, exports.ToolLLMApiFp)(this.configuration).setDefaultLlmEndpoint(requestParameters.llmId, requestParameters.organizationId, options).then(function (request) { return request(_this.axios, _this.basePath); });
57787
+ return (0, exports.ToolLLMApiFp)(this.configuration).setDefaultLlmEndpoint(requestParameters.llmId, requestParameters.organizationId, requestParameters.qAnswerApiKey, options).then(function (request) { return request(_this.axios, _this.basePath); });
57660
57788
  };
57661
57789
  /**
57662
57790
  *
@@ -57668,7 +57796,7 @@ var ToolLLMApi = /** @class */ (function (_super) {
57668
57796
  */
57669
57797
  ToolLLMApi.prototype.setIsActive = function (requestParameters, options) {
57670
57798
  var _this = this;
57671
- return (0, exports.ToolLLMApiFp)(this.configuration).setIsActive(requestParameters.id, requestParameters.active, requestParameters.organizationId, options).then(function (request) { return request(_this.axios, _this.basePath); });
57799
+ return (0, exports.ToolLLMApiFp)(this.configuration).setIsActive(requestParameters.id, requestParameters.active, requestParameters.organizationId, requestParameters.qAnswerApiKey, options).then(function (request) { return request(_this.axios, _this.basePath); });
57672
57800
  };
57673
57801
  /**
57674
57802
  *
@@ -57680,7 +57808,7 @@ var ToolLLMApi = /** @class */ (function (_super) {
57680
57808
  */
57681
57809
  ToolLLMApi.prototype.setLlmEndpointLogo = function (requestParameters, options) {
57682
57810
  var _this = this;
57683
- return (0, exports.ToolLLMApiFp)(this.configuration).setLlmEndpointLogo(requestParameters.id, requestParameters.file, options).then(function (request) { return request(_this.axios, _this.basePath); });
57811
+ return (0, exports.ToolLLMApiFp)(this.configuration).setLlmEndpointLogo(requestParameters.id, requestParameters.file, requestParameters.qAnswerApiKey, options).then(function (request) { return request(_this.axios, _this.basePath); });
57684
57812
  };
57685
57813
  /**
57686
57814
  *
@@ -57692,7 +57820,7 @@ var ToolLLMApi = /** @class */ (function (_super) {
57692
57820
  */
57693
57821
  ToolLLMApi.prototype.setSystemDefaultLlmEndpoint = function (requestParameters, options) {
57694
57822
  var _this = this;
57695
- return (0, exports.ToolLLMApiFp)(this.configuration).setSystemDefaultLlmEndpoint(requestParameters.llmId, options).then(function (request) { return request(_this.axios, _this.basePath); });
57823
+ return (0, exports.ToolLLMApiFp)(this.configuration).setSystemDefaultLlmEndpoint(requestParameters.llmId, requestParameters.qAnswerApiKey, options).then(function (request) { return request(_this.axios, _this.basePath); });
57696
57824
  };
57697
57825
  /**
57698
57826
  *
@@ -57704,7 +57832,7 @@ var ToolLLMApi = /** @class */ (function (_super) {
57704
57832
  */
57705
57833
  ToolLLMApi.prototype.updateLlmEndpoint = function (requestParameters, options) {
57706
57834
  var _this = this;
57707
- return (0, exports.ToolLLMApiFp)(this.configuration).updateLlmEndpoint(requestParameters.id, requestParameters.llmUpdateDto, requestParameters.organizationId, options).then(function (request) { return request(_this.axios, _this.basePath); });
57835
+ return (0, exports.ToolLLMApiFp)(this.configuration).updateLlmEndpoint(requestParameters.id, requestParameters.llmUpdateDto, requestParameters.organizationId, requestParameters.qAnswerApiKey, options).then(function (request) { return request(_this.axios, _this.basePath); });
57708
57836
  };
57709
57837
  /**
57710
57838
  *
@@ -57716,7 +57844,7 @@ var ToolLLMApi = /** @class */ (function (_super) {
57716
57844
  */
57717
57845
  ToolLLMApi.prototype.validateLlmEndpointById = function (requestParameters, options) {
57718
57846
  var _this = this;
57719
- return (0, exports.ToolLLMApiFp)(this.configuration).validateLlmEndpointById(requestParameters.id, options).then(function (request) { return request(_this.axios, _this.basePath); });
57847
+ return (0, exports.ToolLLMApiFp)(this.configuration).validateLlmEndpointById(requestParameters.id, requestParameters.qAnswerApiKey, options).then(function (request) { return request(_this.axios, _this.basePath); });
57720
57848
  };
57721
57849
  return ToolLLMApi;
57722
57850
  }(base_1.BaseAPI));