hanzoai 8.5.653 → 8.5.654

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (119) hide show
  1. package/dist/api/ai-api.d.ts +157 -0
  2. package/dist/api/ai-api.js +209 -0
  3. package/dist/api/train-api.d.ts +497 -0
  4. package/dist/api/train-api.js +726 -0
  5. package/dist/esm/api/ai-api.d.ts +157 -0
  6. package/dist/esm/api/ai-api.js +209 -0
  7. package/dist/esm/api/train-api.d.ts +497 -0
  8. package/dist/esm/api/train-api.js +726 -0
  9. package/dist/esm/models/ai-decisions-answer.d.ts +7 -0
  10. package/dist/esm/models/ai-decisions-answer.js +1 -0
  11. package/dist/esm/models/ai-decisions-boolean.d.ts +49 -0
  12. package/dist/esm/models/ai-decisions-boolean.js +16 -0
  13. package/dist/esm/models/ai-decisions-question.d.ts +3 -0
  14. package/dist/esm/models/captured.d.ts +42 -0
  15. package/dist/esm/models/captured.js +14 -0
  16. package/dist/esm/models/correct-in.d.ts +48 -0
  17. package/dist/esm/models/correct-in.js +14 -0
  18. package/dist/esm/models/correction.d.ts +90 -0
  19. package/dist/esm/models/correction.js +14 -0
  20. package/dist/esm/models/corrections.d.ts +32 -0
  21. package/dist/esm/models/corrections.js +14 -0
  22. package/dist/esm/models/index.d.ts +19 -0
  23. package/dist/esm/models/index.js +19 -0
  24. package/dist/esm/models/train-capabilities-out.d.ts +25 -0
  25. package/dist/esm/models/train-capabilities-out.js +14 -0
  26. package/dist/esm/models/train-capability.d.ts +87 -0
  27. package/dist/esm/models/train-capability.js +14 -0
  28. package/dist/esm/models/train-capture-in.d.ts +24 -0
  29. package/dist/esm/models/train-capture-in.js +14 -0
  30. package/dist/esm/models/train-capture.d.ts +30 -0
  31. package/dist/esm/models/train-capture.js +14 -0
  32. package/dist/esm/models/train-correction-group.d.ts +42 -0
  33. package/dist/esm/models/train-correction-group.js +14 -0
  34. package/dist/esm/models/train-correction.d.ts +90 -0
  35. package/dist/esm/models/train-correction.js +14 -0
  36. package/dist/esm/models/train-corrections-out.d.ts +32 -0
  37. package/dist/esm/models/train-corrections-out.js +14 -0
  38. package/dist/esm/models/train-create-in.d.ts +30 -0
  39. package/dist/esm/models/train-create-in.js +14 -0
  40. package/dist/esm/models/train-live.d.ts +66 -0
  41. package/dist/esm/models/train-live.js +14 -0
  42. package/dist/esm/models/train-publish-cap-in.d.ts +30 -0
  43. package/dist/esm/models/train-publish-cap-in.js +14 -0
  44. package/dist/esm/models/train-question.d.ts +36 -0
  45. package/dist/esm/models/train-question.js +14 -0
  46. package/dist/esm/models/train-train-in.d.ts +30 -0
  47. package/dist/esm/models/train-train-in.js +14 -0
  48. package/dist/esm/models/train-unmade-out.d.ts +30 -0
  49. package/dist/esm/models/train-unmade-out.js +14 -0
  50. package/dist/esm/models/train-version.d.ts +96 -0
  51. package/dist/esm/models/train-version.js +14 -0
  52. package/dist/models/ai-decisions-answer.d.ts +7 -0
  53. package/dist/models/ai-decisions-answer.js +1 -0
  54. package/dist/models/ai-decisions-boolean.d.ts +49 -0
  55. package/dist/models/ai-decisions-boolean.js +19 -0
  56. package/dist/models/ai-decisions-question.d.ts +3 -0
  57. package/dist/models/captured.d.ts +42 -0
  58. package/dist/models/captured.js +15 -0
  59. package/dist/models/correct-in.d.ts +48 -0
  60. package/dist/models/correct-in.js +15 -0
  61. package/dist/models/correction.d.ts +90 -0
  62. package/dist/models/correction.js +15 -0
  63. package/dist/models/corrections.d.ts +32 -0
  64. package/dist/models/corrections.js +15 -0
  65. package/dist/models/index.d.ts +19 -0
  66. package/dist/models/index.js +19 -0
  67. package/dist/models/train-capabilities-out.d.ts +25 -0
  68. package/dist/models/train-capabilities-out.js +15 -0
  69. package/dist/models/train-capability.d.ts +87 -0
  70. package/dist/models/train-capability.js +15 -0
  71. package/dist/models/train-capture-in.d.ts +24 -0
  72. package/dist/models/train-capture-in.js +15 -0
  73. package/dist/models/train-capture.d.ts +30 -0
  74. package/dist/models/train-capture.js +15 -0
  75. package/dist/models/train-correction-group.d.ts +42 -0
  76. package/dist/models/train-correction-group.js +15 -0
  77. package/dist/models/train-correction.d.ts +90 -0
  78. package/dist/models/train-correction.js +15 -0
  79. package/dist/models/train-corrections-out.d.ts +32 -0
  80. package/dist/models/train-corrections-out.js +15 -0
  81. package/dist/models/train-create-in.d.ts +30 -0
  82. package/dist/models/train-create-in.js +15 -0
  83. package/dist/models/train-live.d.ts +66 -0
  84. package/dist/models/train-live.js +15 -0
  85. package/dist/models/train-publish-cap-in.d.ts +30 -0
  86. package/dist/models/train-publish-cap-in.js +15 -0
  87. package/dist/models/train-question.d.ts +36 -0
  88. package/dist/models/train-question.js +15 -0
  89. package/dist/models/train-train-in.d.ts +30 -0
  90. package/dist/models/train-train-in.js +15 -0
  91. package/dist/models/train-unmade-out.d.ts +30 -0
  92. package/dist/models/train-unmade-out.js +15 -0
  93. package/dist/models/train-version.d.ts +96 -0
  94. package/dist/models/train-version.js +15 -0
  95. package/package.json +1 -1
  96. package/src/api/ai-api.ts +293 -0
  97. package/src/api/train-api.ts +976 -10
  98. package/src/models/ai-decisions-answer.ts +7 -0
  99. package/src/models/ai-decisions-boolean.ts +58 -0
  100. package/src/models/ai-decisions-question.ts +4 -1
  101. package/src/models/captured.ts +48 -0
  102. package/src/models/correct-in.ts +54 -0
  103. package/src/models/correction.ts +96 -0
  104. package/src/models/corrections.ts +42 -0
  105. package/src/models/index.ts +19 -0
  106. package/src/models/train-capabilities-out.ts +33 -0
  107. package/src/models/train-capability.ts +99 -0
  108. package/src/models/train-capture-in.ts +30 -0
  109. package/src/models/train-capture.ts +36 -0
  110. package/src/models/train-correction-group.ts +48 -0
  111. package/src/models/train-correction.ts +96 -0
  112. package/src/models/train-corrections-out.ts +42 -0
  113. package/src/models/train-create-in.ts +36 -0
  114. package/src/models/train-live.ts +72 -0
  115. package/src/models/train-publish-cap-in.ts +36 -0
  116. package/src/models/train-question.ts +42 -0
  117. package/src/models/train-train-in.ts +36 -0
  118. package/src/models/train-unmade-out.ts +36 -0
  119. package/src/models/train-version.ts +102 -0
@@ -32,6 +32,9 @@ import type { AiRoutingEdit } from '../models';
32
32
  import type { AiRoutingRewardRequest } from '../models';
33
33
  import type { AiTokenCount } from '../models';
34
34
  import type { AiVideoStatus } from '../models';
35
+ import type { CorrectIn } from '../models';
36
+ import type { Correction } from '../models';
37
+ import type { Corrections } from '../models';
35
38
  import type { DocSearchResult } from '../models';
36
39
  import type { Envelope } from '../models';
37
40
  import type { GetAiActivities200Response } from '../models';
@@ -172,6 +175,32 @@ export declare const AiApiAxiosParamCreator: (configuration?: Configuration) =>
172
175
  * @throws {RequiredError}
173
176
  */
174
177
  aiSetLimits: (aiLimitsSet: AiLimitsSet, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
178
+ /**
179
+ * Files a correction of one question of one of the org\'s Kai decisions: the right answer, which must be one of that question\'s options and not what Kai answered, and why. A decision Kai captured can teach a capability of its question (/v1/capabilities); one made with capture off is kept with state missing and cannot. The org\'s first correction turns capture on, so its next decisions can teach. Refused: 409 not_wrong when the answer is Kai\'s own, 409 corrected when the question already has a correction, 404 when the decision captured no such question.
180
+ * @summary Files a correction of one question of one of the org\'s Kai decisions: the right answer, which must be one of that question\'s options and not what Kai answered, and why.
181
+ * @param {string} decision Decision is the decision\&#39;s id.
182
+ * @param {CorrectIn} correctIn
183
+ * @param {*} [options] Override http request option.
184
+ * @throws {RequiredError}
185
+ */
186
+ decisionsCorrect: (decision: string, correctIn: CorrectIn, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
187
+ /**
188
+ * Answers one of the org\'s decisions\' corrections, each captured (it can teach) or missing (the decision was made with capture off).
189
+ * @summary Answers one of the org\'s decisions\' corrections, each captured (it can teach) or missing (the decision was made with capture off).
190
+ * @param {string} decision
191
+ * @param {*} [options] Override http request option.
192
+ * @throws {RequiredError}
193
+ */
194
+ decisionsCorrections: (decision: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
195
+ /**
196
+ * Deletes one correction of one of the org\'s decisions. A capability already taught from it keeps its versions.
197
+ * @summary Deletes one correction of one of the org\'s decisions.
198
+ * @param {string} decision
199
+ * @param {string} id
200
+ * @param {*} [options] Override http request option.
201
+ * @throws {RequiredError}
202
+ */
203
+ decisionsUncorrect: (decision: string, id: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
175
204
  /**
176
205
  * Delete one article.
177
206
  * @summary Delete a article
@@ -2696,6 +2725,32 @@ export declare const AiApiFp: (configuration?: Configuration) => {
2696
2725
  * @throws {RequiredError}
2697
2726
  */
2698
2727
  aiSetLimits(aiLimitsSet: AiLimitsSet, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AiLimits>>;
2728
+ /**
2729
+ * Files a correction of one question of one of the org\'s Kai decisions: the right answer, which must be one of that question\'s options and not what Kai answered, and why. A decision Kai captured can teach a capability of its question (/v1/capabilities); one made with capture off is kept with state missing and cannot. The org\'s first correction turns capture on, so its next decisions can teach. Refused: 409 not_wrong when the answer is Kai\'s own, 409 corrected when the question already has a correction, 404 when the decision captured no such question.
2730
+ * @summary Files a correction of one question of one of the org\'s Kai decisions: the right answer, which must be one of that question\'s options and not what Kai answered, and why.
2731
+ * @param {string} decision Decision is the decision\&#39;s id.
2732
+ * @param {CorrectIn} correctIn
2733
+ * @param {*} [options] Override http request option.
2734
+ * @throws {RequiredError}
2735
+ */
2736
+ decisionsCorrect(decision: string, correctIn: CorrectIn, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Correction>>;
2737
+ /**
2738
+ * Answers one of the org\'s decisions\' corrections, each captured (it can teach) or missing (the decision was made with capture off).
2739
+ * @summary Answers one of the org\'s decisions\' corrections, each captured (it can teach) or missing (the decision was made with capture off).
2740
+ * @param {string} decision
2741
+ * @param {*} [options] Override http request option.
2742
+ * @throws {RequiredError}
2743
+ */
2744
+ decisionsCorrections(decision: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Corrections>>;
2745
+ /**
2746
+ * Deletes one correction of one of the org\'s decisions. A capability already taught from it keeps its versions.
2747
+ * @summary Deletes one correction of one of the org\'s decisions.
2748
+ * @param {string} decision
2749
+ * @param {string} id
2750
+ * @param {*} [options] Override http request option.
2751
+ * @throws {RequiredError}
2752
+ */
2753
+ decisionsUncorrect(decision: string, id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
2699
2754
  /**
2700
2755
  * Delete one article.
2701
2756
  * @summary Delete a article
@@ -5216,6 +5271,30 @@ export declare const AiApiFactory: (configuration?: Configuration, basePath?: st
5216
5271
  * @throws {RequiredError}
5217
5272
  */
5218
5273
  aiSetLimits(requestParameters: AiApiAiSetLimitsRequest, options?: RawAxiosRequestConfig): AxiosPromise<AiLimits>;
5274
+ /**
5275
+ * Files a correction of one question of one of the org\'s Kai decisions: the right answer, which must be one of that question\'s options and not what Kai answered, and why. A decision Kai captured can teach a capability of its question (/v1/capabilities); one made with capture off is kept with state missing and cannot. The org\'s first correction turns capture on, so its next decisions can teach. Refused: 409 not_wrong when the answer is Kai\'s own, 409 corrected when the question already has a correction, 404 when the decision captured no such question.
5276
+ * @summary Files a correction of one question of one of the org\'s Kai decisions: the right answer, which must be one of that question\'s options and not what Kai answered, and why.
5277
+ * @param {AiApiDecisionsCorrectRequest} requestParameters Request parameters.
5278
+ * @param {*} [options] Override http request option.
5279
+ * @throws {RequiredError}
5280
+ */
5281
+ decisionsCorrect(requestParameters: AiApiDecisionsCorrectRequest, options?: RawAxiosRequestConfig): AxiosPromise<Correction>;
5282
+ /**
5283
+ * Answers one of the org\'s decisions\' corrections, each captured (it can teach) or missing (the decision was made with capture off).
5284
+ * @summary Answers one of the org\'s decisions\' corrections, each captured (it can teach) or missing (the decision was made with capture off).
5285
+ * @param {AiApiDecisionsCorrectionsRequest} requestParameters Request parameters.
5286
+ * @param {*} [options] Override http request option.
5287
+ * @throws {RequiredError}
5288
+ */
5289
+ decisionsCorrections(requestParameters: AiApiDecisionsCorrectionsRequest, options?: RawAxiosRequestConfig): AxiosPromise<Corrections>;
5290
+ /**
5291
+ * Deletes one correction of one of the org\'s decisions. A capability already taught from it keeps its versions.
5292
+ * @summary Deletes one correction of one of the org\'s decisions.
5293
+ * @param {AiApiDecisionsUncorrectRequest} requestParameters Request parameters.
5294
+ * @param {*} [options] Override http request option.
5295
+ * @throws {RequiredError}
5296
+ */
5297
+ decisionsUncorrect(requestParameters: AiApiDecisionsUncorrectRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
5219
5298
  /**
5220
5299
  * Delete one article.
5221
5300
  * @summary Delete a article
@@ -7607,6 +7686,57 @@ export interface AiApiAiSetLimitsRequest {
7607
7686
  */
7608
7687
  readonly aiLimitsSet: AiLimitsSet;
7609
7688
  }
7689
+ /**
7690
+ * Request parameters for decisionsCorrect operation in AiApi.
7691
+ * @export
7692
+ * @interface AiApiDecisionsCorrectRequest
7693
+ */
7694
+ export interface AiApiDecisionsCorrectRequest {
7695
+ /**
7696
+ * Decision is the decision\&#39;s id.
7697
+ * @type {string}
7698
+ * @memberof AiApiDecisionsCorrect
7699
+ */
7700
+ readonly decision: string;
7701
+ /**
7702
+ *
7703
+ * @type {CorrectIn}
7704
+ * @memberof AiApiDecisionsCorrect
7705
+ */
7706
+ readonly correctIn: CorrectIn;
7707
+ }
7708
+ /**
7709
+ * Request parameters for decisionsCorrections operation in AiApi.
7710
+ * @export
7711
+ * @interface AiApiDecisionsCorrectionsRequest
7712
+ */
7713
+ export interface AiApiDecisionsCorrectionsRequest {
7714
+ /**
7715
+ *
7716
+ * @type {string}
7717
+ * @memberof AiApiDecisionsCorrections
7718
+ */
7719
+ readonly decision: string;
7720
+ }
7721
+ /**
7722
+ * Request parameters for decisionsUncorrect operation in AiApi.
7723
+ * @export
7724
+ * @interface AiApiDecisionsUncorrectRequest
7725
+ */
7726
+ export interface AiApiDecisionsUncorrectRequest {
7727
+ /**
7728
+ *
7729
+ * @type {string}
7730
+ * @memberof AiApiDecisionsUncorrect
7731
+ */
7732
+ readonly decision: string;
7733
+ /**
7734
+ *
7735
+ * @type {string}
7736
+ * @memberof AiApiDecisionsUncorrect
7737
+ */
7738
+ readonly id: string;
7739
+ }
7610
7740
  /**
7611
7741
  * Request parameters for deleteAiArticlesByOwnerByName operation in AiApi.
7612
7742
  * @export
@@ -10821,6 +10951,33 @@ export declare class AiApi extends BaseAPI {
10821
10951
  * @memberof AiApi
10822
10952
  */
10823
10953
  aiSetLimits(requestParameters: AiApiAiSetLimitsRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<AiLimits, any, {}>>;
10954
+ /**
10955
+ * Files a correction of one question of one of the org\'s Kai decisions: the right answer, which must be one of that question\'s options and not what Kai answered, and why. A decision Kai captured can teach a capability of its question (/v1/capabilities); one made with capture off is kept with state missing and cannot. The org\'s first correction turns capture on, so its next decisions can teach. Refused: 409 not_wrong when the answer is Kai\'s own, 409 corrected when the question already has a correction, 404 when the decision captured no such question.
10956
+ * @summary Files a correction of one question of one of the org\'s Kai decisions: the right answer, which must be one of that question\'s options and not what Kai answered, and why.
10957
+ * @param {AiApiDecisionsCorrectRequest} requestParameters Request parameters.
10958
+ * @param {*} [options] Override http request option.
10959
+ * @throws {RequiredError}
10960
+ * @memberof AiApi
10961
+ */
10962
+ decisionsCorrect(requestParameters: AiApiDecisionsCorrectRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<Correction, any, {}>>;
10963
+ /**
10964
+ * Answers one of the org\'s decisions\' corrections, each captured (it can teach) or missing (the decision was made with capture off).
10965
+ * @summary Answers one of the org\'s decisions\' corrections, each captured (it can teach) or missing (the decision was made with capture off).
10966
+ * @param {AiApiDecisionsCorrectionsRequest} requestParameters Request parameters.
10967
+ * @param {*} [options] Override http request option.
10968
+ * @throws {RequiredError}
10969
+ * @memberof AiApi
10970
+ */
10971
+ decisionsCorrections(requestParameters: AiApiDecisionsCorrectionsRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<Corrections, any, {}>>;
10972
+ /**
10973
+ * Deletes one correction of one of the org\'s decisions. A capability already taught from it keeps its versions.
10974
+ * @summary Deletes one correction of one of the org\'s decisions.
10975
+ * @param {AiApiDecisionsUncorrectRequest} requestParameters Request parameters.
10976
+ * @param {*} [options] Override http request option.
10977
+ * @throws {RequiredError}
10978
+ * @memberof AiApi
10979
+ */
10980
+ decisionsUncorrect(requestParameters: AiApiDecisionsUncorrectRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<void, any, {}>>;
10824
10981
  /**
10825
10982
  * Delete one article.
10826
10983
  * @summary Delete a article
@@ -236,6 +236,111 @@ const AiApiAxiosParamCreator = function (configuration) {
236
236
  options: localVarRequestOptions,
237
237
  };
238
238
  },
239
+ /**
240
+ * Files a correction of one question of one of the org\'s Kai decisions: the right answer, which must be one of that question\'s options and not what Kai answered, and why. A decision Kai captured can teach a capability of its question (/v1/capabilities); one made with capture off is kept with state missing and cannot. The org\'s first correction turns capture on, so its next decisions can teach. Refused: 409 not_wrong when the answer is Kai\'s own, 409 corrected when the question already has a correction, 404 when the decision captured no such question.
241
+ * @summary Files a correction of one question of one of the org\'s Kai decisions: the right answer, which must be one of that question\'s options and not what Kai answered, and why.
242
+ * @param {string} decision Decision is the decision\&#39;s id.
243
+ * @param {CorrectIn} correctIn
244
+ * @param {*} [options] Override http request option.
245
+ * @throws {RequiredError}
246
+ */
247
+ decisionsCorrect: async (decision, correctIn, options = {}) => {
248
+ // verify required parameter 'decision' is not null or undefined
249
+ (0, common_1.assertParamExists)('decisionsCorrect', 'decision', decision);
250
+ // verify required parameter 'correctIn' is not null or undefined
251
+ (0, common_1.assertParamExists)('decisionsCorrect', 'correctIn', correctIn);
252
+ const localVarPath = `/v1/decisions/{decision}/corrections`
253
+ .replace(`{${"decision"}}`, encodeURIComponent(String(decision)));
254
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
255
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
256
+ let baseOptions;
257
+ if (configuration) {
258
+ baseOptions = configuration.baseOptions;
259
+ }
260
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
261
+ const localVarHeaderParameter = {};
262
+ const localVarQueryParameter = {};
263
+ // authentication bearer required
264
+ // http bearer authentication required
265
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
266
+ localVarHeaderParameter['Content-Type'] = 'application/json';
267
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
268
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
269
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
270
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(correctIn, localVarRequestOptions, configuration);
271
+ return {
272
+ url: (0, common_1.toPathString)(localVarUrlObj),
273
+ options: localVarRequestOptions,
274
+ };
275
+ },
276
+ /**
277
+ * Answers one of the org\'s decisions\' corrections, each captured (it can teach) or missing (the decision was made with capture off).
278
+ * @summary Answers one of the org\'s decisions\' corrections, each captured (it can teach) or missing (the decision was made with capture off).
279
+ * @param {string} decision
280
+ * @param {*} [options] Override http request option.
281
+ * @throws {RequiredError}
282
+ */
283
+ decisionsCorrections: async (decision, options = {}) => {
284
+ // verify required parameter 'decision' is not null or undefined
285
+ (0, common_1.assertParamExists)('decisionsCorrections', 'decision', decision);
286
+ const localVarPath = `/v1/decisions/{decision}/corrections`
287
+ .replace(`{${"decision"}}`, encodeURIComponent(String(decision)));
288
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
289
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
290
+ let baseOptions;
291
+ if (configuration) {
292
+ baseOptions = configuration.baseOptions;
293
+ }
294
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
295
+ const localVarHeaderParameter = {};
296
+ const localVarQueryParameter = {};
297
+ // authentication bearer required
298
+ // http bearer authentication required
299
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
300
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
301
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
302
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
303
+ return {
304
+ url: (0, common_1.toPathString)(localVarUrlObj),
305
+ options: localVarRequestOptions,
306
+ };
307
+ },
308
+ /**
309
+ * Deletes one correction of one of the org\'s decisions. A capability already taught from it keeps its versions.
310
+ * @summary Deletes one correction of one of the org\'s decisions.
311
+ * @param {string} decision
312
+ * @param {string} id
313
+ * @param {*} [options] Override http request option.
314
+ * @throws {RequiredError}
315
+ */
316
+ decisionsUncorrect: async (decision, id, options = {}) => {
317
+ // verify required parameter 'decision' is not null or undefined
318
+ (0, common_1.assertParamExists)('decisionsUncorrect', 'decision', decision);
319
+ // verify required parameter 'id' is not null or undefined
320
+ (0, common_1.assertParamExists)('decisionsUncorrect', 'id', id);
321
+ const localVarPath = `/v1/decisions/{decision}/corrections/{id}`
322
+ .replace(`{${"decision"}}`, encodeURIComponent(String(decision)))
323
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
324
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
325
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
326
+ let baseOptions;
327
+ if (configuration) {
328
+ baseOptions = configuration.baseOptions;
329
+ }
330
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
331
+ const localVarHeaderParameter = {};
332
+ const localVarQueryParameter = {};
333
+ // authentication bearer required
334
+ // http bearer authentication required
335
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
336
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
337
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
338
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
339
+ return {
340
+ url: (0, common_1.toPathString)(localVarUrlObj),
341
+ options: localVarRequestOptions,
342
+ };
343
+ },
239
344
  /**
240
345
  * Delete one article.
241
346
  * @summary Delete a article
@@ -10316,6 +10421,47 @@ const AiApiFp = function (configuration) {
10316
10421
  const localVarOperationServerBasePath = base_1.operationServerMap['AiApi.aiSetLimits']?.[localVarOperationServerIndex]?.url;
10317
10422
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
10318
10423
  },
10424
+ /**
10425
+ * Files a correction of one question of one of the org\'s Kai decisions: the right answer, which must be one of that question\'s options and not what Kai answered, and why. A decision Kai captured can teach a capability of its question (/v1/capabilities); one made with capture off is kept with state missing and cannot. The org\'s first correction turns capture on, so its next decisions can teach. Refused: 409 not_wrong when the answer is Kai\'s own, 409 corrected when the question already has a correction, 404 when the decision captured no such question.
10426
+ * @summary Files a correction of one question of one of the org\'s Kai decisions: the right answer, which must be one of that question\'s options and not what Kai answered, and why.
10427
+ * @param {string} decision Decision is the decision\&#39;s id.
10428
+ * @param {CorrectIn} correctIn
10429
+ * @param {*} [options] Override http request option.
10430
+ * @throws {RequiredError}
10431
+ */
10432
+ async decisionsCorrect(decision, correctIn, options) {
10433
+ const localVarAxiosArgs = await localVarAxiosParamCreator.decisionsCorrect(decision, correctIn, options);
10434
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
10435
+ const localVarOperationServerBasePath = base_1.operationServerMap['AiApi.decisionsCorrect']?.[localVarOperationServerIndex]?.url;
10436
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
10437
+ },
10438
+ /**
10439
+ * Answers one of the org\'s decisions\' corrections, each captured (it can teach) or missing (the decision was made with capture off).
10440
+ * @summary Answers one of the org\'s decisions\' corrections, each captured (it can teach) or missing (the decision was made with capture off).
10441
+ * @param {string} decision
10442
+ * @param {*} [options] Override http request option.
10443
+ * @throws {RequiredError}
10444
+ */
10445
+ async decisionsCorrections(decision, options) {
10446
+ const localVarAxiosArgs = await localVarAxiosParamCreator.decisionsCorrections(decision, options);
10447
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
10448
+ const localVarOperationServerBasePath = base_1.operationServerMap['AiApi.decisionsCorrections']?.[localVarOperationServerIndex]?.url;
10449
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
10450
+ },
10451
+ /**
10452
+ * Deletes one correction of one of the org\'s decisions. A capability already taught from it keeps its versions.
10453
+ * @summary Deletes one correction of one of the org\'s decisions.
10454
+ * @param {string} decision
10455
+ * @param {string} id
10456
+ * @param {*} [options] Override http request option.
10457
+ * @throws {RequiredError}
10458
+ */
10459
+ async decisionsUncorrect(decision, id, options) {
10460
+ const localVarAxiosArgs = await localVarAxiosParamCreator.decisionsUncorrect(decision, id, options);
10461
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
10462
+ const localVarOperationServerBasePath = base_1.operationServerMap['AiApi.decisionsUncorrect']?.[localVarOperationServerIndex]?.url;
10463
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
10464
+ },
10319
10465
  /**
10320
10466
  * Delete one article.
10321
10467
  * @summary Delete a article
@@ -14377,6 +14523,36 @@ const AiApiFactory = function (configuration, basePath, axios) {
14377
14523
  aiSetLimits(requestParameters, options) {
14378
14524
  return localVarFp.aiSetLimits(requestParameters.aiLimitsSet, options).then((request) => request(axios, basePath));
14379
14525
  },
14526
+ /**
14527
+ * Files a correction of one question of one of the org\'s Kai decisions: the right answer, which must be one of that question\'s options and not what Kai answered, and why. A decision Kai captured can teach a capability of its question (/v1/capabilities); one made with capture off is kept with state missing and cannot. The org\'s first correction turns capture on, so its next decisions can teach. Refused: 409 not_wrong when the answer is Kai\'s own, 409 corrected when the question already has a correction, 404 when the decision captured no such question.
14528
+ * @summary Files a correction of one question of one of the org\'s Kai decisions: the right answer, which must be one of that question\'s options and not what Kai answered, and why.
14529
+ * @param {AiApiDecisionsCorrectRequest} requestParameters Request parameters.
14530
+ * @param {*} [options] Override http request option.
14531
+ * @throws {RequiredError}
14532
+ */
14533
+ decisionsCorrect(requestParameters, options) {
14534
+ return localVarFp.decisionsCorrect(requestParameters.decision, requestParameters.correctIn, options).then((request) => request(axios, basePath));
14535
+ },
14536
+ /**
14537
+ * Answers one of the org\'s decisions\' corrections, each captured (it can teach) or missing (the decision was made with capture off).
14538
+ * @summary Answers one of the org\'s decisions\' corrections, each captured (it can teach) or missing (the decision was made with capture off).
14539
+ * @param {AiApiDecisionsCorrectionsRequest} requestParameters Request parameters.
14540
+ * @param {*} [options] Override http request option.
14541
+ * @throws {RequiredError}
14542
+ */
14543
+ decisionsCorrections(requestParameters, options) {
14544
+ return localVarFp.decisionsCorrections(requestParameters.decision, options).then((request) => request(axios, basePath));
14545
+ },
14546
+ /**
14547
+ * Deletes one correction of one of the org\'s decisions. A capability already taught from it keeps its versions.
14548
+ * @summary Deletes one correction of one of the org\'s decisions.
14549
+ * @param {AiApiDecisionsUncorrectRequest} requestParameters Request parameters.
14550
+ * @param {*} [options] Override http request option.
14551
+ * @throws {RequiredError}
14552
+ */
14553
+ decisionsUncorrect(requestParameters, options) {
14554
+ return localVarFp.decisionsUncorrect(requestParameters.decision, requestParameters.id, options).then((request) => request(axios, basePath));
14555
+ },
14380
14556
  /**
14381
14557
  * Delete one article.
14382
14558
  * @summary Delete a article
@@ -17363,6 +17539,39 @@ class AiApi extends base_1.BaseAPI {
17363
17539
  aiSetLimits(requestParameters, options) {
17364
17540
  return (0, exports.AiApiFp)(this.configuration).aiSetLimits(requestParameters.aiLimitsSet, options).then((request) => request(this.axios, this.basePath));
17365
17541
  }
17542
+ /**
17543
+ * Files a correction of one question of one of the org\'s Kai decisions: the right answer, which must be one of that question\'s options and not what Kai answered, and why. A decision Kai captured can teach a capability of its question (/v1/capabilities); one made with capture off is kept with state missing and cannot. The org\'s first correction turns capture on, so its next decisions can teach. Refused: 409 not_wrong when the answer is Kai\'s own, 409 corrected when the question already has a correction, 404 when the decision captured no such question.
17544
+ * @summary Files a correction of one question of one of the org\'s Kai decisions: the right answer, which must be one of that question\'s options and not what Kai answered, and why.
17545
+ * @param {AiApiDecisionsCorrectRequest} requestParameters Request parameters.
17546
+ * @param {*} [options] Override http request option.
17547
+ * @throws {RequiredError}
17548
+ * @memberof AiApi
17549
+ */
17550
+ decisionsCorrect(requestParameters, options) {
17551
+ return (0, exports.AiApiFp)(this.configuration).decisionsCorrect(requestParameters.decision, requestParameters.correctIn, options).then((request) => request(this.axios, this.basePath));
17552
+ }
17553
+ /**
17554
+ * Answers one of the org\'s decisions\' corrections, each captured (it can teach) or missing (the decision was made with capture off).
17555
+ * @summary Answers one of the org\'s decisions\' corrections, each captured (it can teach) or missing (the decision was made with capture off).
17556
+ * @param {AiApiDecisionsCorrectionsRequest} requestParameters Request parameters.
17557
+ * @param {*} [options] Override http request option.
17558
+ * @throws {RequiredError}
17559
+ * @memberof AiApi
17560
+ */
17561
+ decisionsCorrections(requestParameters, options) {
17562
+ return (0, exports.AiApiFp)(this.configuration).decisionsCorrections(requestParameters.decision, options).then((request) => request(this.axios, this.basePath));
17563
+ }
17564
+ /**
17565
+ * Deletes one correction of one of the org\'s decisions. A capability already taught from it keeps its versions.
17566
+ * @summary Deletes one correction of one of the org\'s decisions.
17567
+ * @param {AiApiDecisionsUncorrectRequest} requestParameters Request parameters.
17568
+ * @param {*} [options] Override http request option.
17569
+ * @throws {RequiredError}
17570
+ * @memberof AiApi
17571
+ */
17572
+ decisionsUncorrect(requestParameters, options) {
17573
+ return (0, exports.AiApiFp)(this.configuration).decisionsUncorrect(requestParameters.decision, requestParameters.id, options).then((request) => request(this.axios, this.basePath));
17574
+ }
17366
17575
  /**
17367
17576
  * Delete one article.
17368
17577
  * @summary Delete a article