hanzoai 8.5.649 → 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.
- package/dist/api/ai-api.d.ts +168 -10
- package/dist/api/ai-api.js +209 -0
- package/dist/api/billing-api.d.ts +4 -4
- package/dist/api/billing-api.js +4 -4
- package/dist/api/train-api.d.ts +501 -4
- package/dist/api/train-api.js +730 -4
- package/dist/esm/api/ai-api.d.ts +168 -10
- package/dist/esm/api/ai-api.js +209 -0
- package/dist/esm/api/billing-api.d.ts +4 -4
- package/dist/esm/api/billing-api.js +4 -4
- package/dist/esm/api/train-api.d.ts +501 -4
- package/dist/esm/api/train-api.js +730 -4
- package/dist/esm/models/ai-decisions-answer.d.ts +7 -0
- package/dist/esm/models/ai-decisions-answer.js +1 -0
- package/dist/esm/models/ai-decisions-boolean.d.ts +49 -0
- package/dist/esm/models/ai-decisions-boolean.js +16 -0
- package/dist/esm/models/ai-decisions-question.d.ts +3 -0
- package/dist/esm/models/captured.d.ts +42 -0
- package/dist/esm/models/captured.js +14 -0
- package/dist/esm/models/correct-in.d.ts +48 -0
- package/dist/esm/models/correct-in.js +14 -0
- package/dist/esm/models/correction.d.ts +90 -0
- package/dist/esm/models/correction.js +14 -0
- package/dist/esm/models/corrections.d.ts +32 -0
- package/dist/esm/models/corrections.js +14 -0
- package/dist/esm/models/index.d.ts +24 -0
- package/dist/esm/models/index.js +24 -0
- package/dist/esm/models/post-chat200-response-all-of-routing-candidates-inner.d.ts +30 -0
- package/dist/esm/models/post-chat200-response-all-of-routing-candidates-inner.js +14 -0
- package/dist/esm/models/post-chat200-response-all-of-routing-inputs.d.ts +42 -0
- package/dist/esm/models/post-chat200-response-all-of-routing-inputs.js +18 -0
- package/dist/esm/models/post-chat200-response-all-of-routing.d.ts +50 -0
- package/dist/esm/models/post-chat200-response-all-of-routing.js +14 -0
- package/dist/esm/models/post-chat200-response.d.ts +17 -0
- package/dist/esm/models/post-chat200-response.js +14 -0
- package/dist/esm/models/post-responses200-response.d.ts +17 -0
- package/dist/esm/models/post-responses200-response.js +14 -0
- package/dist/esm/models/train-capabilities-out.d.ts +25 -0
- package/dist/esm/models/train-capabilities-out.js +14 -0
- package/dist/esm/models/train-capability.d.ts +87 -0
- package/dist/esm/models/train-capability.js +14 -0
- package/dist/esm/models/train-capture-in.d.ts +24 -0
- package/dist/esm/models/train-capture-in.js +14 -0
- package/dist/esm/models/train-capture.d.ts +30 -0
- package/dist/esm/models/train-capture.js +14 -0
- package/dist/esm/models/train-correction-group.d.ts +42 -0
- package/dist/esm/models/train-correction-group.js +14 -0
- package/dist/esm/models/train-correction.d.ts +90 -0
- package/dist/esm/models/train-correction.js +14 -0
- package/dist/esm/models/train-corrections-out.d.ts +32 -0
- package/dist/esm/models/train-corrections-out.js +14 -0
- package/dist/esm/models/train-create-in.d.ts +30 -0
- package/dist/esm/models/train-create-in.js +14 -0
- package/dist/esm/models/train-live.d.ts +66 -0
- package/dist/esm/models/train-live.js +14 -0
- package/dist/esm/models/train-publish-cap-in.d.ts +30 -0
- package/dist/esm/models/train-publish-cap-in.js +14 -0
- package/dist/esm/models/train-question.d.ts +36 -0
- package/dist/esm/models/train-question.js +14 -0
- package/dist/esm/models/train-train-in.d.ts +30 -0
- package/dist/esm/models/train-train-in.js +14 -0
- package/dist/esm/models/train-unmade-out.d.ts +30 -0
- package/dist/esm/models/train-unmade-out.js +14 -0
- package/dist/esm/models/train-version.d.ts +96 -0
- package/dist/esm/models/train-version.js +14 -0
- package/dist/esm/models/usage-category-spend.d.ts +1 -1
- package/dist/models/ai-decisions-answer.d.ts +7 -0
- package/dist/models/ai-decisions-answer.js +1 -0
- package/dist/models/ai-decisions-boolean.d.ts +49 -0
- package/dist/models/ai-decisions-boolean.js +19 -0
- package/dist/models/ai-decisions-question.d.ts +3 -0
- package/dist/models/captured.d.ts +42 -0
- package/dist/models/captured.js +15 -0
- package/dist/models/correct-in.d.ts +48 -0
- package/dist/models/correct-in.js +15 -0
- package/dist/models/correction.d.ts +90 -0
- package/dist/models/correction.js +15 -0
- package/dist/models/corrections.d.ts +32 -0
- package/dist/models/corrections.js +15 -0
- package/dist/models/index.d.ts +24 -0
- package/dist/models/index.js +24 -0
- package/dist/models/post-chat200-response-all-of-routing-candidates-inner.d.ts +30 -0
- package/dist/models/post-chat200-response-all-of-routing-candidates-inner.js +15 -0
- package/dist/models/post-chat200-response-all-of-routing-inputs.d.ts +42 -0
- package/dist/models/post-chat200-response-all-of-routing-inputs.js +21 -0
- package/dist/models/post-chat200-response-all-of-routing.d.ts +50 -0
- package/dist/models/post-chat200-response-all-of-routing.js +15 -0
- package/dist/models/post-chat200-response.d.ts +17 -0
- package/dist/models/post-chat200-response.js +15 -0
- package/dist/models/post-responses200-response.d.ts +17 -0
- package/dist/models/post-responses200-response.js +15 -0
- package/dist/models/train-capabilities-out.d.ts +25 -0
- package/dist/models/train-capabilities-out.js +15 -0
- package/dist/models/train-capability.d.ts +87 -0
- package/dist/models/train-capability.js +15 -0
- package/dist/models/train-capture-in.d.ts +24 -0
- package/dist/models/train-capture-in.js +15 -0
- package/dist/models/train-capture.d.ts +30 -0
- package/dist/models/train-capture.js +15 -0
- package/dist/models/train-correction-group.d.ts +42 -0
- package/dist/models/train-correction-group.js +15 -0
- package/dist/models/train-correction.d.ts +90 -0
- package/dist/models/train-correction.js +15 -0
- package/dist/models/train-corrections-out.d.ts +32 -0
- package/dist/models/train-corrections-out.js +15 -0
- package/dist/models/train-create-in.d.ts +30 -0
- package/dist/models/train-create-in.js +15 -0
- package/dist/models/train-live.d.ts +66 -0
- package/dist/models/train-live.js +15 -0
- package/dist/models/train-publish-cap-in.d.ts +30 -0
- package/dist/models/train-publish-cap-in.js +15 -0
- package/dist/models/train-question.d.ts +36 -0
- package/dist/models/train-question.js +15 -0
- package/dist/models/train-train-in.d.ts +30 -0
- package/dist/models/train-train-in.js +15 -0
- package/dist/models/train-unmade-out.d.ts +30 -0
- package/dist/models/train-unmade-out.js +15 -0
- package/dist/models/train-version.d.ts +96 -0
- package/dist/models/train-version.js +15 -0
- package/dist/models/usage-category-spend.d.ts +1 -1
- package/package.json +1 -1
- package/src/api/ai-api.ts +305 -10
- package/src/api/billing-api.ts +4 -4
- package/src/api/train-api.ts +980 -14
- package/src/models/ai-decisions-answer.ts +7 -0
- package/src/models/ai-decisions-boolean.ts +58 -0
- package/src/models/ai-decisions-question.ts +4 -1
- package/src/models/captured.ts +48 -0
- package/src/models/correct-in.ts +54 -0
- package/src/models/correction.ts +96 -0
- package/src/models/corrections.ts +42 -0
- package/src/models/index.ts +24 -0
- package/src/models/post-chat200-response-all-of-routing-candidates-inner.ts +36 -0
- package/src/models/post-chat200-response-all-of-routing-inputs.ts +51 -0
- package/src/models/post-chat200-response-all-of-routing.ts +60 -0
- package/src/models/post-chat200-response.ts +38 -0
- package/src/models/post-responses200-response.ts +35 -0
- package/src/models/train-capabilities-out.ts +33 -0
- package/src/models/train-capability.ts +99 -0
- package/src/models/train-capture-in.ts +30 -0
- package/src/models/train-capture.ts +36 -0
- package/src/models/train-correction-group.ts +48 -0
- package/src/models/train-correction.ts +96 -0
- package/src/models/train-corrections-out.ts +42 -0
- package/src/models/train-create-in.ts +36 -0
- package/src/models/train-live.ts +72 -0
- package/src/models/train-publish-cap-in.ts +36 -0
- package/src/models/train-question.ts +42 -0
- package/src/models/train-train-in.ts +36 -0
- package/src/models/train-unmade-out.ts +36 -0
- package/src/models/train-version.ts +102 -0
- package/src/models/usage-category-spend.ts +1 -1
package/dist/api/ai-api.d.ts
CHANGED
|
@@ -28,11 +28,13 @@ import type { AiModelList } from '../models';
|
|
|
28
28
|
import type { AiModels } from '../models';
|
|
29
29
|
import type { AiRanking } from '../models';
|
|
30
30
|
import type { AiResponse } from '../models';
|
|
31
|
-
import type { AiResponsesResource } from '../models';
|
|
32
31
|
import type { AiRoutingEdit } from '../models';
|
|
33
32
|
import type { AiRoutingRewardRequest } from '../models';
|
|
34
33
|
import type { AiTokenCount } from '../models';
|
|
35
34
|
import type { AiVideoStatus } from '../models';
|
|
35
|
+
import type { CorrectIn } from '../models';
|
|
36
|
+
import type { Correction } from '../models';
|
|
37
|
+
import type { Corrections } from '../models';
|
|
36
38
|
import type { DocSearchResult } from '../models';
|
|
37
39
|
import type { Envelope } from '../models';
|
|
38
40
|
import type { GetAiActivities200Response } from '../models';
|
|
@@ -113,7 +115,9 @@ import type { PostAiTreeFiles200Response } from '../models';
|
|
|
113
115
|
import type { PostAiVectors200Response } from '../models';
|
|
114
116
|
import type { PostAiVideos200Response } from '../models';
|
|
115
117
|
import type { PostAiWorkflows200Response } from '../models';
|
|
118
|
+
import type { PostChat200Response } from '../models';
|
|
116
119
|
import type { PostModelsByModelAccess200Response } from '../models';
|
|
120
|
+
import type { PostResponses200Response } from '../models';
|
|
117
121
|
import type { PutAiRouterCatalog200Response } from '../models';
|
|
118
122
|
/**
|
|
119
123
|
* AiApi - axios parameter creator
|
|
@@ -171,6 +175,32 @@ export declare const AiApiAxiosParamCreator: (configuration?: Configuration) =>
|
|
|
171
175
|
* @throws {RequiredError}
|
|
172
176
|
*/
|
|
173
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\'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>;
|
|
174
204
|
/**
|
|
175
205
|
* Delete one article.
|
|
176
206
|
* @summary Delete a article
|
|
@@ -2695,6 +2725,32 @@ export declare const AiApiFp: (configuration?: Configuration) => {
|
|
|
2695
2725
|
* @throws {RequiredError}
|
|
2696
2726
|
*/
|
|
2697
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\'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>>;
|
|
2698
2754
|
/**
|
|
2699
2755
|
* Delete one article.
|
|
2700
2756
|
* @summary Delete a article
|
|
@@ -4761,7 +4817,7 @@ export declare const AiApiFp: (configuration?: Configuration) => {
|
|
|
4761
4817
|
* @param {*} [options] Override http request option.
|
|
4762
4818
|
* @throws {RequiredError}
|
|
4763
4819
|
*/
|
|
4764
|
-
postChat(openaiChatCompletionRequest: OpenaiChatCompletionRequest, xMaxCost?: number, xMaxLatencyMs?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
4820
|
+
postChat(openaiChatCompletionRequest: OpenaiChatCompletionRequest, xMaxCost?: number, xMaxLatencyMs?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PostChat200Response>>;
|
|
4765
4821
|
/**
|
|
4766
4822
|
* Implements the OpenAI-compatible chat completions API
|
|
4767
4823
|
* @summary Implements the OpenAI-compatible chat completions API
|
|
@@ -4771,7 +4827,7 @@ export declare const AiApiFp: (configuration?: Configuration) => {
|
|
|
4771
4827
|
* @param {*} [options] Override http request option.
|
|
4772
4828
|
* @throws {RequiredError}
|
|
4773
4829
|
*/
|
|
4774
|
-
postChatCompletions(openaiChatCompletionRequest: OpenaiChatCompletionRequest, xMaxCost?: number, xMaxLatencyMs?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
4830
|
+
postChatCompletions(openaiChatCompletionRequest: OpenaiChatCompletionRequest, xMaxCost?: number, xMaxLatencyMs?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PostChat200Response>>;
|
|
4775
4831
|
/**
|
|
4776
4832
|
* Serves one completion to a caller with no account.
|
|
4777
4833
|
* @summary Serves one completion to a caller with no account.
|
|
@@ -4789,7 +4845,7 @@ export declare const AiApiFp: (configuration?: Configuration) => {
|
|
|
4789
4845
|
* @param {*} [options] Override http request option.
|
|
4790
4846
|
* @throws {RequiredError}
|
|
4791
4847
|
*/
|
|
4792
|
-
postCompletions(openaiChatCompletionRequest: OpenaiChatCompletionRequest, xMaxCost?: number, xMaxLatencyMs?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
4848
|
+
postCompletions(openaiChatCompletionRequest: OpenaiChatCompletionRequest, xMaxCost?: number, xMaxLatencyMs?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PostChat200Response>>;
|
|
4793
4849
|
/**
|
|
4794
4850
|
* Implements POST /v1/decisions (the Decisions API). Body: {\"model\": \"kai\", \"state\": \"...\"|{...}|[...], \"questions\": {\"<name>\": {\"type\": \"choice\"|\"noul\"|\"score\", \"instructions\": ..., \"criteria\": ...}}}. model is kai, Kai\'s versioned id kai-<12 hex of the weights\' sha256> — priced as kai and sent as asked — or Jev by OpenRouter\'s vendor ids, typesafe/jev-1.13 and ~typesafe/jev-latest, which reach Jev itself and bill at Jev\'s list price. No Jev id is ever answered by Kai: a bare one, such as jev-latest, is an unknown model. model is required; state and questions are required unless the request names a handle, which carries neither. instructions is optional and any JSON. A choice names at least 2 labels and a score at least 1 level, bounded by the token budget rather than a count; questions holds 1 to 100. observe holds the state under an id, and a later request naming that id as its handle decides over it again. An id is 1 to 128 characters of A-Z, a-z, 0-9, \'.\', \'_\' and \'-\'. A handle belongs to the org that observed it: no other org\'s request can name it. Response: {\"id\",\"model\",\"provider\",\"answers\":{\"<name>\":{\"type\",...}}, \"usage\":{\"input_tokens\",\"output_tokens\"},\"routing\",\"state_hash\",\"latency_ms\"}. usage.input_tokens is the billed count — the request\'s text counted once, the state once and each question\'s instructions and options once; a decision over a handle bills the state once, when it was observed. The body may be sent gzip, deflate, br or zstd encoded; decoded, it is bounded as sent. Refusals are {\"error\":{\"code\",\"message\"}}: 400 malformed JSON or unknown model, 401 no valid credential, 402 insufficient balance, 403 a key kind that may not call this (pk-), 415 any other Content-Encoding, 422 an invalid question or handle id, a state beyond the checkpoint\'s reach (code state_too_long) or a body past 16 MiB (code request_too_long), 429 rate limited or queue full, 502 the service failed, 503 the model is known and not served, 529 overloaded. 402, 429 and 529 carry Retry-After and Retry-After-Ms, and every answer carries X-Request-Id. Billed on the answer\'s input tokens at the model\'s price.
|
|
4795
4851
|
* @summary Implements POST /v1/decisions (the Decisions API).
|
|
@@ -4851,7 +4907,7 @@ export declare const AiApiFp: (configuration?: Configuration) => {
|
|
|
4851
4907
|
* @param {*} [options] Override http request option.
|
|
4852
4908
|
* @throws {RequiredError}
|
|
4853
4909
|
*/
|
|
4854
|
-
postResponses(xMaxCost?: number, xMaxLatencyMs?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
4910
|
+
postResponses(xMaxCost?: number, xMaxLatencyMs?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PostResponses200Response>>;
|
|
4855
4911
|
/**
|
|
4856
4912
|
* Implements POST /v1/videos/generations — the ASYNC create. Body: {\"model\": \"...\", \"prompt\": \"...\", \"size\"?: \"1280x720\", \"seconds\"?: int} It authenticates the caller, resolves the model to its upstream provider via the shared routing table (zen3-video* / wan2-2-t2v-a14b → the spark-video backend), reserves the per-video budget (the balance gate), creates ONE upstream job, registers it in the in-pod store, and returns the OpenAI-shaped video object with status \"queued\" IMMEDIATELY. The client then polls GET /v1/videos/{id} and downloads GET /v1/videos/{id}/content. Nothing is billed here — the debit lands on completion.
|
|
4857
4913
|
* @summary Implements POST /v1/videos/generations — the ASYNC create.
|
|
@@ -5215,6 +5271,30 @@ export declare const AiApiFactory: (configuration?: Configuration, basePath?: st
|
|
|
5215
5271
|
* @throws {RequiredError}
|
|
5216
5272
|
*/
|
|
5217
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>;
|
|
5218
5298
|
/**
|
|
5219
5299
|
* Delete one article.
|
|
5220
5300
|
* @summary Delete a article
|
|
@@ -7166,7 +7246,7 @@ export declare const AiApiFactory: (configuration?: Configuration, basePath?: st
|
|
|
7166
7246
|
* @param {*} [options] Override http request option.
|
|
7167
7247
|
* @throws {RequiredError}
|
|
7168
7248
|
*/
|
|
7169
|
-
postChat(requestParameters: AiApiPostChatRequest, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
7249
|
+
postChat(requestParameters: AiApiPostChatRequest, options?: RawAxiosRequestConfig): AxiosPromise<PostChat200Response>;
|
|
7170
7250
|
/**
|
|
7171
7251
|
* Implements the OpenAI-compatible chat completions API
|
|
7172
7252
|
* @summary Implements the OpenAI-compatible chat completions API
|
|
@@ -7174,7 +7254,7 @@ export declare const AiApiFactory: (configuration?: Configuration, basePath?: st
|
|
|
7174
7254
|
* @param {*} [options] Override http request option.
|
|
7175
7255
|
* @throws {RequiredError}
|
|
7176
7256
|
*/
|
|
7177
|
-
postChatCompletions(requestParameters: AiApiPostChatCompletionsRequest, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
7257
|
+
postChatCompletions(requestParameters: AiApiPostChatCompletionsRequest, options?: RawAxiosRequestConfig): AxiosPromise<PostChat200Response>;
|
|
7178
7258
|
/**
|
|
7179
7259
|
* Serves one completion to a caller with no account.
|
|
7180
7260
|
* @summary Serves one completion to a caller with no account.
|
|
@@ -7190,7 +7270,7 @@ export declare const AiApiFactory: (configuration?: Configuration, basePath?: st
|
|
|
7190
7270
|
* @param {*} [options] Override http request option.
|
|
7191
7271
|
* @throws {RequiredError}
|
|
7192
7272
|
*/
|
|
7193
|
-
postCompletions(requestParameters: AiApiPostCompletionsRequest, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
7273
|
+
postCompletions(requestParameters: AiApiPostCompletionsRequest, options?: RawAxiosRequestConfig): AxiosPromise<PostChat200Response>;
|
|
7194
7274
|
/**
|
|
7195
7275
|
* Implements POST /v1/decisions (the Decisions API). Body: {\"model\": \"kai\", \"state\": \"...\"|{...}|[...], \"questions\": {\"<name>\": {\"type\": \"choice\"|\"noul\"|\"score\", \"instructions\": ..., \"criteria\": ...}}}. model is kai, Kai\'s versioned id kai-<12 hex of the weights\' sha256> — priced as kai and sent as asked — or Jev by OpenRouter\'s vendor ids, typesafe/jev-1.13 and ~typesafe/jev-latest, which reach Jev itself and bill at Jev\'s list price. No Jev id is ever answered by Kai: a bare one, such as jev-latest, is an unknown model. model is required; state and questions are required unless the request names a handle, which carries neither. instructions is optional and any JSON. A choice names at least 2 labels and a score at least 1 level, bounded by the token budget rather than a count; questions holds 1 to 100. observe holds the state under an id, and a later request naming that id as its handle decides over it again. An id is 1 to 128 characters of A-Z, a-z, 0-9, \'.\', \'_\' and \'-\'. A handle belongs to the org that observed it: no other org\'s request can name it. Response: {\"id\",\"model\",\"provider\",\"answers\":{\"<name>\":{\"type\",...}}, \"usage\":{\"input_tokens\",\"output_tokens\"},\"routing\",\"state_hash\",\"latency_ms\"}. usage.input_tokens is the billed count — the request\'s text counted once, the state once and each question\'s instructions and options once; a decision over a handle bills the state once, when it was observed. The body may be sent gzip, deflate, br or zstd encoded; decoded, it is bounded as sent. Refusals are {\"error\":{\"code\",\"message\"}}: 400 malformed JSON or unknown model, 401 no valid credential, 402 insufficient balance, 403 a key kind that may not call this (pk-), 415 any other Content-Encoding, 422 an invalid question or handle id, a state beyond the checkpoint\'s reach (code state_too_long) or a body past 16 MiB (code request_too_long), 429 rate limited or queue full, 502 the service failed, 503 the model is known and not served, 529 overloaded. 402, 429 and 529 carry Retry-After and Retry-After-Ms, and every answer carries X-Request-Id. Billed on the answer\'s input tokens at the model\'s price.
|
|
7196
7276
|
* @summary Implements POST /v1/decisions (the Decisions API).
|
|
@@ -7251,7 +7331,7 @@ export declare const AiApiFactory: (configuration?: Configuration, basePath?: st
|
|
|
7251
7331
|
* @param {*} [options] Override http request option.
|
|
7252
7332
|
* @throws {RequiredError}
|
|
7253
7333
|
*/
|
|
7254
|
-
postResponses(requestParameters?: AiApiPostResponsesRequest, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
7334
|
+
postResponses(requestParameters?: AiApiPostResponsesRequest, options?: RawAxiosRequestConfig): AxiosPromise<PostResponses200Response>;
|
|
7255
7335
|
/**
|
|
7256
7336
|
* Implements POST /v1/videos/generations — the ASYNC create. Body: {\"model\": \"...\", \"prompt\": \"...\", \"size\"?: \"1280x720\", \"seconds\"?: int} It authenticates the caller, resolves the model to its upstream provider via the shared routing table (zen3-video* / wan2-2-t2v-a14b → the spark-video backend), reserves the per-video budget (the balance gate), creates ONE upstream job, registers it in the in-pod store, and returns the OpenAI-shaped video object with status \"queued\" IMMEDIATELY. The client then polls GET /v1/videos/{id} and downloads GET /v1/videos/{id}/content. Nothing is billed here — the debit lands on completion.
|
|
7257
7337
|
* @summary Implements POST /v1/videos/generations — the ASYNC create.
|
|
@@ -7606,6 +7686,57 @@ export interface AiApiAiSetLimitsRequest {
|
|
|
7606
7686
|
*/
|
|
7607
7687
|
readonly aiLimitsSet: AiLimitsSet;
|
|
7608
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\'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
|
+
}
|
|
7609
7740
|
/**
|
|
7610
7741
|
* Request parameters for deleteAiArticlesByOwnerByName operation in AiApi.
|
|
7611
7742
|
* @export
|
|
@@ -10820,6 +10951,33 @@ export declare class AiApi extends BaseAPI {
|
|
|
10820
10951
|
* @memberof AiApi
|
|
10821
10952
|
*/
|
|
10822
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, {}>>;
|
|
10823
10981
|
/**
|
|
10824
10982
|
* Delete one article.
|
|
10825
10983
|
* @summary Delete a article
|
|
@@ -13127,7 +13285,7 @@ export declare class AiApi extends BaseAPI {
|
|
|
13127
13285
|
* @throws {RequiredError}
|
|
13128
13286
|
* @memberof AiApi
|
|
13129
13287
|
*/
|
|
13130
|
-
postResponses(requestParameters?: AiApiPostResponsesRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<AiResponsesResource, any, {}>>;
|
|
13288
|
+
postResponses(requestParameters?: AiApiPostResponsesRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<import("../models").AiResponsesResource, any, {}>>;
|
|
13131
13289
|
/**
|
|
13132
13290
|
* Implements POST /v1/videos/generations — the ASYNC create. Body: {\"model\": \"...\", \"prompt\": \"...\", \"size\"?: \"1280x720\", \"seconds\"?: int} It authenticates the caller, resolves the model to its upstream provider via the shared routing table (zen3-video* / wan2-2-t2v-a14b → the spark-video backend), reserves the per-video budget (the balance gate), creates ONE upstream job, registers it in the in-pod store, and returns the OpenAI-shaped video object with status \"queued\" IMMEDIATELY. The client then polls GET /v1/videos/{id} and downloads GET /v1/videos/{id}/content. Nothing is billed here — the debit lands on completion.
|
|
13133
13291
|
* @summary Implements POST /v1/videos/generations — the ASYNC create.
|
package/dist/api/ai-api.js
CHANGED
|
@@ -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\'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\'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
|
|
@@ -275,7 +275,7 @@ export declare const BillingApiAxiosParamCreator: (configuration?: Configuration
|
|
|
275
275
|
*/
|
|
276
276
|
getBillingTransactionsById: (id: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
277
277
|
/**
|
|
278
|
-
* Answers one row per BILLED call against the caller\'s org — transaction id, amount, timestamp and the metered unit. This is the raw charged ledger, not a rollup. Each row is stamped with a canonical `metadata.product` derived from what the meter persisted: `agent` becomes agents, `provisioning` becomes the provisioned kind, a token-metered row becomes inference, anything else keeps its metering surface. The ledger has no product field of its own, so this read is where that dimension is made real — from the SAME charged rows, never a second meter. A row that already carries its own product WINS, so the derivation stops the day the meter records one. `product=<id>` filters to one product server-side. `groupBy=product` reduces to `{product,requests,amountCents}` rollups instead of rows. `amount` is whole USD cents, ROUNDED; `decimal` beside it is the SAME debit exact, as an 18-decimal USD string. Sum `decimal`. A page of sub-cent token calls totals correctly there and totals ZERO in `amount` — that difference is real money. Scoped to the caller\'s own org\'s books, where the org\'s ledger file IS the tenant boundary; no client-supplied subject is ever forwarded. 401 without a validated principal. The co-resident read returns the 2000 most recent debits, newest first; `start` and `end` narrow the window only on the split-deploy upstream.
|
|
278
|
+
* Answers one row per BILLED call against the caller\'s org — transaction id, amount, timestamp and the metered unit. This is the raw charged ledger, not a rollup. Each row is stamped with a canonical `metadata.product` derived from what the meter persisted: `agent` becomes agents, `provisioning` becomes the provisioned kind, a token-metered row becomes inference, anything else keeps its metering surface. The ledger has no product field of its own, so this read is where that dimension is made real — from the SAME charged rows, never a second meter. A row that already carries its own product WINS, so the derivation stops the day the meter records one. Each row carries `name`: what its metered unit (`metadata.model`) reads as on a bill — `Desktop sandbox` for `desktop/visor`, `Agent sessions` for `session`. An AI model is its own name. Show `name`; `metadata.model` stays the unit the ledger keys on. `product=<id>` filters to one product server-side. `groupBy=product` reduces to `{product,requests,amountCents}` rollups instead of rows. `amount` is whole USD cents, ROUNDED; `decimal` beside it is the SAME debit exact, as an 18-decimal USD string. Sum `decimal`. A page of sub-cent token calls totals correctly there and totals ZERO in `amount` — that difference is real money. Scoped to the caller\'s own org\'s books, where the org\'s ledger file IS the tenant boundary; no client-supplied subject is ever forwarded. 401 without a validated principal. The co-resident read returns the 2000 most recent debits, newest first; `start` and `end` narrow the window only on the split-deploy upstream.
|
|
279
279
|
* @summary Every billed call the caller\'s org made, attributed to a product
|
|
280
280
|
* @param {*} [options] Override http request option.
|
|
281
281
|
* @throws {RequiredError}
|
|
@@ -664,7 +664,7 @@ export declare const BillingApiFp: (configuration?: Configuration) => {
|
|
|
664
664
|
*/
|
|
665
665
|
getBillingTransactionsById(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BillingTransaction>>;
|
|
666
666
|
/**
|
|
667
|
-
* Answers one row per BILLED call against the caller\'s org — transaction id, amount, timestamp and the metered unit. This is the raw charged ledger, not a rollup. Each row is stamped with a canonical `metadata.product` derived from what the meter persisted: `agent` becomes agents, `provisioning` becomes the provisioned kind, a token-metered row becomes inference, anything else keeps its metering surface. The ledger has no product field of its own, so this read is where that dimension is made real — from the SAME charged rows, never a second meter. A row that already carries its own product WINS, so the derivation stops the day the meter records one. `product=<id>` filters to one product server-side. `groupBy=product` reduces to `{product,requests,amountCents}` rollups instead of rows. `amount` is whole USD cents, ROUNDED; `decimal` beside it is the SAME debit exact, as an 18-decimal USD string. Sum `decimal`. A page of sub-cent token calls totals correctly there and totals ZERO in `amount` — that difference is real money. Scoped to the caller\'s own org\'s books, where the org\'s ledger file IS the tenant boundary; no client-supplied subject is ever forwarded. 401 without a validated principal. The co-resident read returns the 2000 most recent debits, newest first; `start` and `end` narrow the window only on the split-deploy upstream.
|
|
667
|
+
* Answers one row per BILLED call against the caller\'s org — transaction id, amount, timestamp and the metered unit. This is the raw charged ledger, not a rollup. Each row is stamped with a canonical `metadata.product` derived from what the meter persisted: `agent` becomes agents, `provisioning` becomes the provisioned kind, a token-metered row becomes inference, anything else keeps its metering surface. The ledger has no product field of its own, so this read is where that dimension is made real — from the SAME charged rows, never a second meter. A row that already carries its own product WINS, so the derivation stops the day the meter records one. Each row carries `name`: what its metered unit (`metadata.model`) reads as on a bill — `Desktop sandbox` for `desktop/visor`, `Agent sessions` for `session`. An AI model is its own name. Show `name`; `metadata.model` stays the unit the ledger keys on. `product=<id>` filters to one product server-side. `groupBy=product` reduces to `{product,requests,amountCents}` rollups instead of rows. `amount` is whole USD cents, ROUNDED; `decimal` beside it is the SAME debit exact, as an 18-decimal USD string. Sum `decimal`. A page of sub-cent token calls totals correctly there and totals ZERO in `amount` — that difference is real money. Scoped to the caller\'s own org\'s books, where the org\'s ledger file IS the tenant boundary; no client-supplied subject is ever forwarded. 401 without a validated principal. The co-resident read returns the 2000 most recent debits, newest first; `start` and `end` narrow the window only on the split-deploy upstream.
|
|
668
668
|
* @summary Every billed call the caller\'s org made, attributed to a product
|
|
669
669
|
* @param {*} [options] Override http request option.
|
|
670
670
|
* @throws {RequiredError}
|
|
@@ -1043,7 +1043,7 @@ export declare const BillingApiFactory: (configuration?: Configuration, basePath
|
|
|
1043
1043
|
*/
|
|
1044
1044
|
getBillingTransactionsById(requestParameters: BillingApiGetBillingTransactionsByIdRequest, options?: RawAxiosRequestConfig): AxiosPromise<BillingTransaction>;
|
|
1045
1045
|
/**
|
|
1046
|
-
* Answers one row per BILLED call against the caller\'s org — transaction id, amount, timestamp and the metered unit. This is the raw charged ledger, not a rollup. Each row is stamped with a canonical `metadata.product` derived from what the meter persisted: `agent` becomes agents, `provisioning` becomes the provisioned kind, a token-metered row becomes inference, anything else keeps its metering surface. The ledger has no product field of its own, so this read is where that dimension is made real — from the SAME charged rows, never a second meter. A row that already carries its own product WINS, so the derivation stops the day the meter records one. `product=<id>` filters to one product server-side. `groupBy=product` reduces to `{product,requests,amountCents}` rollups instead of rows. `amount` is whole USD cents, ROUNDED; `decimal` beside it is the SAME debit exact, as an 18-decimal USD string. Sum `decimal`. A page of sub-cent token calls totals correctly there and totals ZERO in `amount` — that difference is real money. Scoped to the caller\'s own org\'s books, where the org\'s ledger file IS the tenant boundary; no client-supplied subject is ever forwarded. 401 without a validated principal. The co-resident read returns the 2000 most recent debits, newest first; `start` and `end` narrow the window only on the split-deploy upstream.
|
|
1046
|
+
* Answers one row per BILLED call against the caller\'s org — transaction id, amount, timestamp and the metered unit. This is the raw charged ledger, not a rollup. Each row is stamped with a canonical `metadata.product` derived from what the meter persisted: `agent` becomes agents, `provisioning` becomes the provisioned kind, a token-metered row becomes inference, anything else keeps its metering surface. The ledger has no product field of its own, so this read is where that dimension is made real — from the SAME charged rows, never a second meter. A row that already carries its own product WINS, so the derivation stops the day the meter records one. Each row carries `name`: what its metered unit (`metadata.model`) reads as on a bill — `Desktop sandbox` for `desktop/visor`, `Agent sessions` for `session`. An AI model is its own name. Show `name`; `metadata.model` stays the unit the ledger keys on. `product=<id>` filters to one product server-side. `groupBy=product` reduces to `{product,requests,amountCents}` rollups instead of rows. `amount` is whole USD cents, ROUNDED; `decimal` beside it is the SAME debit exact, as an 18-decimal USD string. Sum `decimal`. A page of sub-cent token calls totals correctly there and totals ZERO in `amount` — that difference is real money. Scoped to the caller\'s own org\'s books, where the org\'s ledger file IS the tenant boundary; no client-supplied subject is ever forwarded. 401 without a validated principal. The co-resident read returns the 2000 most recent debits, newest first; `start` and `end` narrow the window only on the split-deploy upstream.
|
|
1047
1047
|
* @summary Every billed call the caller\'s org made, attributed to a product
|
|
1048
1048
|
* @param {*} [options] Override http request option.
|
|
1049
1049
|
* @throws {RequiredError}
|
|
@@ -1870,7 +1870,7 @@ export declare class BillingApi extends BaseAPI {
|
|
|
1870
1870
|
*/
|
|
1871
1871
|
getBillingTransactionsById(requestParameters: BillingApiGetBillingTransactionsByIdRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<BillingTransaction, any, {}>>;
|
|
1872
1872
|
/**
|
|
1873
|
-
* Answers one row per BILLED call against the caller\'s org — transaction id, amount, timestamp and the metered unit. This is the raw charged ledger, not a rollup. Each row is stamped with a canonical `metadata.product` derived from what the meter persisted: `agent` becomes agents, `provisioning` becomes the provisioned kind, a token-metered row becomes inference, anything else keeps its metering surface. The ledger has no product field of its own, so this read is where that dimension is made real — from the SAME charged rows, never a second meter. A row that already carries its own product WINS, so the derivation stops the day the meter records one. `product=<id>` filters to one product server-side. `groupBy=product` reduces to `{product,requests,amountCents}` rollups instead of rows. `amount` is whole USD cents, ROUNDED; `decimal` beside it is the SAME debit exact, as an 18-decimal USD string. Sum `decimal`. A page of sub-cent token calls totals correctly there and totals ZERO in `amount` — that difference is real money. Scoped to the caller\'s own org\'s books, where the org\'s ledger file IS the tenant boundary; no client-supplied subject is ever forwarded. 401 without a validated principal. The co-resident read returns the 2000 most recent debits, newest first; `start` and `end` narrow the window only on the split-deploy upstream.
|
|
1873
|
+
* Answers one row per BILLED call against the caller\'s org — transaction id, amount, timestamp and the metered unit. This is the raw charged ledger, not a rollup. Each row is stamped with a canonical `metadata.product` derived from what the meter persisted: `agent` becomes agents, `provisioning` becomes the provisioned kind, a token-metered row becomes inference, anything else keeps its metering surface. The ledger has no product field of its own, so this read is where that dimension is made real — from the SAME charged rows, never a second meter. A row that already carries its own product WINS, so the derivation stops the day the meter records one. Each row carries `name`: what its metered unit (`metadata.model`) reads as on a bill — `Desktop sandbox` for `desktop/visor`, `Agent sessions` for `session`. An AI model is its own name. Show `name`; `metadata.model` stays the unit the ledger keys on. `product=<id>` filters to one product server-side. `groupBy=product` reduces to `{product,requests,amountCents}` rollups instead of rows. `amount` is whole USD cents, ROUNDED; `decimal` beside it is the SAME debit exact, as an 18-decimal USD string. Sum `decimal`. A page of sub-cent token calls totals correctly there and totals ZERO in `amount` — that difference is real money. Scoped to the caller\'s own org\'s books, where the org\'s ledger file IS the tenant boundary; no client-supplied subject is ever forwarded. 401 without a validated principal. The co-resident read returns the 2000 most recent debits, newest first; `start` and `end` narrow the window only on the split-deploy upstream.
|
|
1874
1874
|
* @summary Every billed call the caller\'s org made, attributed to a product
|
|
1875
1875
|
* @param {*} [options] Override http request option.
|
|
1876
1876
|
* @throws {RequiredError}
|