hanzoai 8.5.648 → 8.5.653
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 +11 -10
- package/dist/api/billing-api.d.ts +4 -4
- package/dist/api/billing-api.js +4 -4
- package/dist/api/train-api.d.ts +4 -4
- package/dist/api/train-api.js +4 -4
- package/dist/esm/api/ai-api.d.ts +11 -10
- 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 +4 -4
- package/dist/esm/api/train-api.js +4 -4
- package/dist/esm/models/index.d.ts +5 -0
- package/dist/esm/models/index.js +5 -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/usage-category-spend.d.ts +1 -1
- package/dist/models/index.d.ts +5 -0
- package/dist/models/index.js +5 -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/usage-category-spend.d.ts +1 -1
- package/package.json +1 -1
- package/src/api/ai-api.ts +12 -10
- package/src/api/billing-api.ts +4 -4
- package/src/api/train-api.ts +4 -4
- package/src/models/index.ts +5 -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/usage-category-spend.ts +1 -1
package/dist/api/ai-api.d.ts
CHANGED
|
@@ -28,7 +28,6 @@ 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';
|
|
@@ -113,7 +112,9 @@ import type { PostAiTreeFiles200Response } from '../models';
|
|
|
113
112
|
import type { PostAiVectors200Response } from '../models';
|
|
114
113
|
import type { PostAiVideos200Response } from '../models';
|
|
115
114
|
import type { PostAiWorkflows200Response } from '../models';
|
|
115
|
+
import type { PostChat200Response } from '../models';
|
|
116
116
|
import type { PostModelsByModelAccess200Response } from '../models';
|
|
117
|
+
import type { PostResponses200Response } from '../models';
|
|
117
118
|
import type { PutAiRouterCatalog200Response } from '../models';
|
|
118
119
|
/**
|
|
119
120
|
* AiApi - axios parameter creator
|
|
@@ -4761,7 +4762,7 @@ export declare const AiApiFp: (configuration?: Configuration) => {
|
|
|
4761
4762
|
* @param {*} [options] Override http request option.
|
|
4762
4763
|
* @throws {RequiredError}
|
|
4763
4764
|
*/
|
|
4764
|
-
postChat(openaiChatCompletionRequest: OpenaiChatCompletionRequest, xMaxCost?: number, xMaxLatencyMs?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
4765
|
+
postChat(openaiChatCompletionRequest: OpenaiChatCompletionRequest, xMaxCost?: number, xMaxLatencyMs?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PostChat200Response>>;
|
|
4765
4766
|
/**
|
|
4766
4767
|
* Implements the OpenAI-compatible chat completions API
|
|
4767
4768
|
* @summary Implements the OpenAI-compatible chat completions API
|
|
@@ -4771,7 +4772,7 @@ export declare const AiApiFp: (configuration?: Configuration) => {
|
|
|
4771
4772
|
* @param {*} [options] Override http request option.
|
|
4772
4773
|
* @throws {RequiredError}
|
|
4773
4774
|
*/
|
|
4774
|
-
postChatCompletions(openaiChatCompletionRequest: OpenaiChatCompletionRequest, xMaxCost?: number, xMaxLatencyMs?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
4775
|
+
postChatCompletions(openaiChatCompletionRequest: OpenaiChatCompletionRequest, xMaxCost?: number, xMaxLatencyMs?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PostChat200Response>>;
|
|
4775
4776
|
/**
|
|
4776
4777
|
* Serves one completion to a caller with no account.
|
|
4777
4778
|
* @summary Serves one completion to a caller with no account.
|
|
@@ -4789,7 +4790,7 @@ export declare const AiApiFp: (configuration?: Configuration) => {
|
|
|
4789
4790
|
* @param {*} [options] Override http request option.
|
|
4790
4791
|
* @throws {RequiredError}
|
|
4791
4792
|
*/
|
|
4792
|
-
postCompletions(openaiChatCompletionRequest: OpenaiChatCompletionRequest, xMaxCost?: number, xMaxLatencyMs?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
4793
|
+
postCompletions(openaiChatCompletionRequest: OpenaiChatCompletionRequest, xMaxCost?: number, xMaxLatencyMs?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PostChat200Response>>;
|
|
4793
4794
|
/**
|
|
4794
4795
|
* 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
4796
|
* @summary Implements POST /v1/decisions (the Decisions API).
|
|
@@ -4851,7 +4852,7 @@ export declare const AiApiFp: (configuration?: Configuration) => {
|
|
|
4851
4852
|
* @param {*} [options] Override http request option.
|
|
4852
4853
|
* @throws {RequiredError}
|
|
4853
4854
|
*/
|
|
4854
|
-
postResponses(xMaxCost?: number, xMaxLatencyMs?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
4855
|
+
postResponses(xMaxCost?: number, xMaxLatencyMs?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PostResponses200Response>>;
|
|
4855
4856
|
/**
|
|
4856
4857
|
* 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
4858
|
* @summary Implements POST /v1/videos/generations — the ASYNC create.
|
|
@@ -7166,7 +7167,7 @@ export declare const AiApiFactory: (configuration?: Configuration, basePath?: st
|
|
|
7166
7167
|
* @param {*} [options] Override http request option.
|
|
7167
7168
|
* @throws {RequiredError}
|
|
7168
7169
|
*/
|
|
7169
|
-
postChat(requestParameters: AiApiPostChatRequest, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
7170
|
+
postChat(requestParameters: AiApiPostChatRequest, options?: RawAxiosRequestConfig): AxiosPromise<PostChat200Response>;
|
|
7170
7171
|
/**
|
|
7171
7172
|
* Implements the OpenAI-compatible chat completions API
|
|
7172
7173
|
* @summary Implements the OpenAI-compatible chat completions API
|
|
@@ -7174,7 +7175,7 @@ export declare const AiApiFactory: (configuration?: Configuration, basePath?: st
|
|
|
7174
7175
|
* @param {*} [options] Override http request option.
|
|
7175
7176
|
* @throws {RequiredError}
|
|
7176
7177
|
*/
|
|
7177
|
-
postChatCompletions(requestParameters: AiApiPostChatCompletionsRequest, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
7178
|
+
postChatCompletions(requestParameters: AiApiPostChatCompletionsRequest, options?: RawAxiosRequestConfig): AxiosPromise<PostChat200Response>;
|
|
7178
7179
|
/**
|
|
7179
7180
|
* Serves one completion to a caller with no account.
|
|
7180
7181
|
* @summary Serves one completion to a caller with no account.
|
|
@@ -7190,7 +7191,7 @@ export declare const AiApiFactory: (configuration?: Configuration, basePath?: st
|
|
|
7190
7191
|
* @param {*} [options] Override http request option.
|
|
7191
7192
|
* @throws {RequiredError}
|
|
7192
7193
|
*/
|
|
7193
|
-
postCompletions(requestParameters: AiApiPostCompletionsRequest, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
7194
|
+
postCompletions(requestParameters: AiApiPostCompletionsRequest, options?: RawAxiosRequestConfig): AxiosPromise<PostChat200Response>;
|
|
7194
7195
|
/**
|
|
7195
7196
|
* 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
7197
|
* @summary Implements POST /v1/decisions (the Decisions API).
|
|
@@ -7251,7 +7252,7 @@ export declare const AiApiFactory: (configuration?: Configuration, basePath?: st
|
|
|
7251
7252
|
* @param {*} [options] Override http request option.
|
|
7252
7253
|
* @throws {RequiredError}
|
|
7253
7254
|
*/
|
|
7254
|
-
postResponses(requestParameters?: AiApiPostResponsesRequest, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
7255
|
+
postResponses(requestParameters?: AiApiPostResponsesRequest, options?: RawAxiosRequestConfig): AxiosPromise<PostResponses200Response>;
|
|
7255
7256
|
/**
|
|
7256
7257
|
* 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
7258
|
* @summary Implements POST /v1/videos/generations — the ASYNC create.
|
|
@@ -13127,7 +13128,7 @@ export declare class AiApi extends BaseAPI {
|
|
|
13127
13128
|
* @throws {RequiredError}
|
|
13128
13129
|
* @memberof AiApi
|
|
13129
13130
|
*/
|
|
13130
|
-
postResponses(requestParameters?: AiApiPostResponsesRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<AiResponsesResource, any, {}>>;
|
|
13131
|
+
postResponses(requestParameters?: AiApiPostResponsesRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<import("../models").AiResponsesResource, any, {}>>;
|
|
13131
13132
|
/**
|
|
13132
13133
|
* 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
13134
|
* @summary Implements POST /v1/videos/generations — the ASYNC create.
|
|
@@ -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}
|
package/dist/api/billing-api.js
CHANGED
|
@@ -907,7 +907,7 @@ const BillingApiAxiosParamCreator = function (configuration) {
|
|
|
907
907
|
};
|
|
908
908
|
},
|
|
909
909
|
/**
|
|
910
|
-
* 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.
|
|
910
|
+
* 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.
|
|
911
911
|
* @summary Every billed call the caller\'s org made, attributed to a product
|
|
912
912
|
* @param {*} [options] Override http request option.
|
|
913
913
|
* @throws {RequiredError}
|
|
@@ -1942,7 +1942,7 @@ const BillingApiFp = function (configuration) {
|
|
|
1942
1942
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1943
1943
|
},
|
|
1944
1944
|
/**
|
|
1945
|
-
* 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.
|
|
1945
|
+
* 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.
|
|
1946
1946
|
* @summary Every billed call the caller\'s org made, attributed to a product
|
|
1947
1947
|
* @param {*} [options] Override http request option.
|
|
1948
1948
|
* @throws {RequiredError}
|
|
@@ -2486,7 +2486,7 @@ const BillingApiFactory = function (configuration, basePath, axios) {
|
|
|
2486
2486
|
return localVarFp.getBillingTransactionsById(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
2487
2487
|
},
|
|
2488
2488
|
/**
|
|
2489
|
-
* 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.
|
|
2489
|
+
* 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.
|
|
2490
2490
|
* @summary Every billed call the caller\'s org made, attributed to a product
|
|
2491
2491
|
* @param {*} [options] Override http request option.
|
|
2492
2492
|
* @throws {RequiredError}
|
|
@@ -2991,7 +2991,7 @@ class BillingApi extends base_1.BaseAPI {
|
|
|
2991
2991
|
return (0, exports.BillingApiFp)(this.configuration).getBillingTransactionsById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
2992
2992
|
}
|
|
2993
2993
|
/**
|
|
2994
|
-
* 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.
|
|
2994
|
+
* 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.
|
|
2995
2995
|
* @summary Every billed call the caller\'s org made, attributed to a product
|
|
2996
2996
|
* @param {*} [options] Override http request option.
|
|
2997
2997
|
* @throws {RequiredError}
|
package/dist/api/train-api.d.ts
CHANGED
|
@@ -225,7 +225,7 @@ export declare const TrainApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
225
225
|
*/
|
|
226
226
|
postTrainJobsByIdEvents: (id: string, trainReportIn: TrainReportIn, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
227
227
|
/**
|
|
228
|
-
* Publishes a job\'s output under a name. Only a succeeded job\'s output is publishable; a rejected one broke its regression budget and needs force, which the record keeps. The output must be stored. A capability is published with its route — the question keys it answers and, per key, the exact question (`{\"type\": \"choice\"|\"score\"|\"noul\", \"labels\": [...]}`) — the base SHA-256 its result names, and its form: head for a readout, full for every other adaptation. A route that claims a question another of the org\'s published capabilities claims is 409 route_conflict. A name the org already published moves to this job.
|
|
228
|
+
* Publishes a job\'s output under a name. Only a succeeded job\'s output is publishable; a rejected one broke its regression budget and needs force, which the record keeps. The output must be stored. A capability is published with its route — the question keys it answers and, per key, the exact question (`{\"type\": \"choice\"|\"score\"|\"noul\", \"labels\": [...]}`) — the base SHA-256 its result names, and its form: head for a readout, full for every other adaptation. A route that claims a question another of the org\'s published capabilities claims is 409 route_conflict. A name the org already published moves to this job. A head\'s tar is copied first to the serving store, the models bucket\'s capabilities/<org>/<sha256>, where the decision service fetches it; ai attaches the org\'s published capabilities to its decisions.
|
|
229
229
|
* @summary Publishes a job\'s output under a name.
|
|
230
230
|
* @param {string} id ID names the job.
|
|
231
231
|
* @param {TrainPublishIn} trainPublishIn
|
|
@@ -430,7 +430,7 @@ export declare const TrainApiFp: (configuration?: Configuration) => {
|
|
|
430
430
|
*/
|
|
431
431
|
postTrainJobsByIdEvents(id: string, trainReportIn: TrainReportIn, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TrainReportOut>>;
|
|
432
432
|
/**
|
|
433
|
-
* Publishes a job\'s output under a name. Only a succeeded job\'s output is publishable; a rejected one broke its regression budget and needs force, which the record keeps. The output must be stored. A capability is published with its route — the question keys it answers and, per key, the exact question (`{\"type\": \"choice\"|\"score\"|\"noul\", \"labels\": [...]}`) — the base SHA-256 its result names, and its form: head for a readout, full for every other adaptation. A route that claims a question another of the org\'s published capabilities claims is 409 route_conflict. A name the org already published moves to this job.
|
|
433
|
+
* Publishes a job\'s output under a name. Only a succeeded job\'s output is publishable; a rejected one broke its regression budget and needs force, which the record keeps. The output must be stored. A capability is published with its route — the question keys it answers and, per key, the exact question (`{\"type\": \"choice\"|\"score\"|\"noul\", \"labels\": [...]}`) — the base SHA-256 its result names, and its form: head for a readout, full for every other adaptation. A route that claims a question another of the org\'s published capabilities claims is 409 route_conflict. A name the org already published moves to this job. A head\'s tar is copied first to the serving store, the models bucket\'s capabilities/<org>/<sha256>, where the decision service fetches it; ai attaches the org\'s published capabilities to its decisions.
|
|
434
434
|
* @summary Publishes a job\'s output under a name.
|
|
435
435
|
* @param {string} id ID names the job.
|
|
436
436
|
* @param {TrainPublishIn} trainPublishIn
|
|
@@ -626,7 +626,7 @@ export declare const TrainApiFactory: (configuration?: Configuration, basePath?:
|
|
|
626
626
|
*/
|
|
627
627
|
postTrainJobsByIdEvents(requestParameters: TrainApiPostTrainJobsByIdEventsRequest, options?: RawAxiosRequestConfig): AxiosPromise<TrainReportOut>;
|
|
628
628
|
/**
|
|
629
|
-
* Publishes a job\'s output under a name. Only a succeeded job\'s output is publishable; a rejected one broke its regression budget and needs force, which the record keeps. The output must be stored. A capability is published with its route — the question keys it answers and, per key, the exact question (`{\"type\": \"choice\"|\"score\"|\"noul\", \"labels\": [...]}`) — the base SHA-256 its result names, and its form: head for a readout, full for every other adaptation. A route that claims a question another of the org\'s published capabilities claims is 409 route_conflict. A name the org already published moves to this job.
|
|
629
|
+
* Publishes a job\'s output under a name. Only a succeeded job\'s output is publishable; a rejected one broke its regression budget and needs force, which the record keeps. The output must be stored. A capability is published with its route — the question keys it answers and, per key, the exact question (`{\"type\": \"choice\"|\"score\"|\"noul\", \"labels\": [...]}`) — the base SHA-256 its result names, and its form: head for a readout, full for every other adaptation. A route that claims a question another of the org\'s published capabilities claims is 409 route_conflict. A name the org already published moves to this job. A head\'s tar is copied first to the serving store, the models bucket\'s capabilities/<org>/<sha256>, where the decision service fetches it; ai attaches the org\'s published capabilities to its decisions.
|
|
630
630
|
* @summary Publishes a job\'s output under a name.
|
|
631
631
|
* @param {TrainApiPostTrainJobsByIdPublishRequest} requestParameters Request parameters.
|
|
632
632
|
* @param {*} [options] Override http request option.
|
|
@@ -1178,7 +1178,7 @@ export declare class TrainApi extends BaseAPI {
|
|
|
1178
1178
|
*/
|
|
1179
1179
|
postTrainJobsByIdEvents(requestParameters: TrainApiPostTrainJobsByIdEventsRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<TrainReportOut, any, {}>>;
|
|
1180
1180
|
/**
|
|
1181
|
-
* Publishes a job\'s output under a name. Only a succeeded job\'s output is publishable; a rejected one broke its regression budget and needs force, which the record keeps. The output must be stored. A capability is published with its route — the question keys it answers and, per key, the exact question (`{\"type\": \"choice\"|\"score\"|\"noul\", \"labels\": [...]}`) — the base SHA-256 its result names, and its form: head for a readout, full for every other adaptation. A route that claims a question another of the org\'s published capabilities claims is 409 route_conflict. A name the org already published moves to this job.
|
|
1181
|
+
* Publishes a job\'s output under a name. Only a succeeded job\'s output is publishable; a rejected one broke its regression budget and needs force, which the record keeps. The output must be stored. A capability is published with its route — the question keys it answers and, per key, the exact question (`{\"type\": \"choice\"|\"score\"|\"noul\", \"labels\": [...]}`) — the base SHA-256 its result names, and its form: head for a readout, full for every other adaptation. A route that claims a question another of the org\'s published capabilities claims is 409 route_conflict. A name the org already published moves to this job. A head\'s tar is copied first to the serving store, the models bucket\'s capabilities/<org>/<sha256>, where the decision service fetches it; ai attaches the org\'s published capabilities to its decisions.
|
|
1182
1182
|
* @summary Publishes a job\'s output under a name.
|
|
1183
1183
|
* @param {TrainApiPostTrainJobsByIdPublishRequest} requestParameters Request parameters.
|
|
1184
1184
|
* @param {*} [options] Override http request option.
|
package/dist/api/train-api.js
CHANGED
|
@@ -767,7 +767,7 @@ const TrainApiAxiosParamCreator = function (configuration) {
|
|
|
767
767
|
};
|
|
768
768
|
},
|
|
769
769
|
/**
|
|
770
|
-
* Publishes a job\'s output under a name. Only a succeeded job\'s output is publishable; a rejected one broke its regression budget and needs force, which the record keeps. The output must be stored. A capability is published with its route — the question keys it answers and, per key, the exact question (`{\"type\": \"choice\"|\"score\"|\"noul\", \"labels\": [...]}`) — the base SHA-256 its result names, and its form: head for a readout, full for every other adaptation. A route that claims a question another of the org\'s published capabilities claims is 409 route_conflict. A name the org already published moves to this job.
|
|
770
|
+
* Publishes a job\'s output under a name. Only a succeeded job\'s output is publishable; a rejected one broke its regression budget and needs force, which the record keeps. The output must be stored. A capability is published with its route — the question keys it answers and, per key, the exact question (`{\"type\": \"choice\"|\"score\"|\"noul\", \"labels\": [...]}`) — the base SHA-256 its result names, and its form: head for a readout, full for every other adaptation. A route that claims a question another of the org\'s published capabilities claims is 409 route_conflict. A name the org already published moves to this job. A head\'s tar is copied first to the serving store, the models bucket\'s capabilities/<org>/<sha256>, where the decision service fetches it; ai attaches the org\'s published capabilities to its decisions.
|
|
771
771
|
* @summary Publishes a job\'s output under a name.
|
|
772
772
|
* @param {string} id ID names the job.
|
|
773
773
|
* @param {TrainPublishIn} trainPublishIn
|
|
@@ -1139,7 +1139,7 @@ const TrainApiFp = function (configuration) {
|
|
|
1139
1139
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1140
1140
|
},
|
|
1141
1141
|
/**
|
|
1142
|
-
* Publishes a job\'s output under a name. Only a succeeded job\'s output is publishable; a rejected one broke its regression budget and needs force, which the record keeps. The output must be stored. A capability is published with its route — the question keys it answers and, per key, the exact question (`{\"type\": \"choice\"|\"score\"|\"noul\", \"labels\": [...]}`) — the base SHA-256 its result names, and its form: head for a readout, full for every other adaptation. A route that claims a question another of the org\'s published capabilities claims is 409 route_conflict. A name the org already published moves to this job.
|
|
1142
|
+
* Publishes a job\'s output under a name. Only a succeeded job\'s output is publishable; a rejected one broke its regression budget and needs force, which the record keeps. The output must be stored. A capability is published with its route — the question keys it answers and, per key, the exact question (`{\"type\": \"choice\"|\"score\"|\"noul\", \"labels\": [...]}`) — the base SHA-256 its result names, and its form: head for a readout, full for every other adaptation. A route that claims a question another of the org\'s published capabilities claims is 409 route_conflict. A name the org already published moves to this job. A head\'s tar is copied first to the serving store, the models bucket\'s capabilities/<org>/<sha256>, where the decision service fetches it; ai attaches the org\'s published capabilities to its decisions.
|
|
1143
1143
|
* @summary Publishes a job\'s output under a name.
|
|
1144
1144
|
* @param {string} id ID names the job.
|
|
1145
1145
|
* @param {TrainPublishIn} trainPublishIn
|
|
@@ -1393,7 +1393,7 @@ const TrainApiFactory = function (configuration, basePath, axios) {
|
|
|
1393
1393
|
return localVarFp.postTrainJobsByIdEvents(requestParameters.id, requestParameters.trainReportIn, options).then((request) => request(axios, basePath));
|
|
1394
1394
|
},
|
|
1395
1395
|
/**
|
|
1396
|
-
* Publishes a job\'s output under a name. Only a succeeded job\'s output is publishable; a rejected one broke its regression budget and needs force, which the record keeps. The output must be stored. A capability is published with its route — the question keys it answers and, per key, the exact question (`{\"type\": \"choice\"|\"score\"|\"noul\", \"labels\": [...]}`) — the base SHA-256 its result names, and its form: head for a readout, full for every other adaptation. A route that claims a question another of the org\'s published capabilities claims is 409 route_conflict. A name the org already published moves to this job.
|
|
1396
|
+
* Publishes a job\'s output under a name. Only a succeeded job\'s output is publishable; a rejected one broke its regression budget and needs force, which the record keeps. The output must be stored. A capability is published with its route — the question keys it answers and, per key, the exact question (`{\"type\": \"choice\"|\"score\"|\"noul\", \"labels\": [...]}`) — the base SHA-256 its result names, and its form: head for a readout, full for every other adaptation. A route that claims a question another of the org\'s published capabilities claims is 409 route_conflict. A name the org already published moves to this job. A head\'s tar is copied first to the serving store, the models bucket\'s capabilities/<org>/<sha256>, where the decision service fetches it; ai attaches the org\'s published capabilities to its decisions.
|
|
1397
1397
|
* @summary Publishes a job\'s output under a name.
|
|
1398
1398
|
* @param {TrainApiPostTrainJobsByIdPublishRequest} requestParameters Request parameters.
|
|
1399
1399
|
* @param {*} [options] Override http request option.
|
|
@@ -1662,7 +1662,7 @@ class TrainApi extends base_1.BaseAPI {
|
|
|
1662
1662
|
return (0, exports.TrainApiFp)(this.configuration).postTrainJobsByIdEvents(requestParameters.id, requestParameters.trainReportIn, options).then((request) => request(this.axios, this.basePath));
|
|
1663
1663
|
}
|
|
1664
1664
|
/**
|
|
1665
|
-
* Publishes a job\'s output under a name. Only a succeeded job\'s output is publishable; a rejected one broke its regression budget and needs force, which the record keeps. The output must be stored. A capability is published with its route — the question keys it answers and, per key, the exact question (`{\"type\": \"choice\"|\"score\"|\"noul\", \"labels\": [...]}`) — the base SHA-256 its result names, and its form: head for a readout, full for every other adaptation. A route that claims a question another of the org\'s published capabilities claims is 409 route_conflict. A name the org already published moves to this job.
|
|
1665
|
+
* Publishes a job\'s output under a name. Only a succeeded job\'s output is publishable; a rejected one broke its regression budget and needs force, which the record keeps. The output must be stored. A capability is published with its route — the question keys it answers and, per key, the exact question (`{\"type\": \"choice\"|\"score\"|\"noul\", \"labels\": [...]}`) — the base SHA-256 its result names, and its form: head for a readout, full for every other adaptation. A route that claims a question another of the org\'s published capabilities claims is 409 route_conflict. A name the org already published moves to this job. A head\'s tar is copied first to the serving store, the models bucket\'s capabilities/<org>/<sha256>, where the decision service fetches it; ai attaches the org\'s published capabilities to its decisions.
|
|
1666
1666
|
* @summary Publishes a job\'s output under a name.
|
|
1667
1667
|
* @param {TrainApiPostTrainJobsByIdPublishRequest} requestParameters Request parameters.
|
|
1668
1668
|
* @param {*} [options] Override http request option.
|
package/dist/esm/api/ai-api.d.ts
CHANGED
|
@@ -27,7 +27,6 @@ import type { AiModelList } from '../models';
|
|
|
27
27
|
import type { AiModels } from '../models';
|
|
28
28
|
import type { AiRanking } from '../models';
|
|
29
29
|
import type { AiResponse } from '../models';
|
|
30
|
-
import type { AiResponsesResource } from '../models';
|
|
31
30
|
import type { AiRoutingEdit } from '../models';
|
|
32
31
|
import type { AiRoutingRewardRequest } from '../models';
|
|
33
32
|
import type { AiTokenCount } from '../models';
|
|
@@ -112,7 +111,9 @@ import type { PostAiTreeFiles200Response } from '../models';
|
|
|
112
111
|
import type { PostAiVectors200Response } from '../models';
|
|
113
112
|
import type { PostAiVideos200Response } from '../models';
|
|
114
113
|
import type { PostAiWorkflows200Response } from '../models';
|
|
114
|
+
import type { PostChat200Response } from '../models';
|
|
115
115
|
import type { PostModelsByModelAccess200Response } from '../models';
|
|
116
|
+
import type { PostResponses200Response } from '../models';
|
|
116
117
|
import type { PutAiRouterCatalog200Response } from '../models';
|
|
117
118
|
/**
|
|
118
119
|
* AiApi - axios parameter creator
|
|
@@ -4760,7 +4761,7 @@ export declare const AiApiFp: (configuration?: Configuration) => {
|
|
|
4760
4761
|
* @param {*} [options] Override http request option.
|
|
4761
4762
|
* @throws {RequiredError}
|
|
4762
4763
|
*/
|
|
4763
|
-
postChat(openaiChatCompletionRequest: OpenaiChatCompletionRequest, xMaxCost?: number, xMaxLatencyMs?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
4764
|
+
postChat(openaiChatCompletionRequest: OpenaiChatCompletionRequest, xMaxCost?: number, xMaxLatencyMs?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PostChat200Response>>;
|
|
4764
4765
|
/**
|
|
4765
4766
|
* Implements the OpenAI-compatible chat completions API
|
|
4766
4767
|
* @summary Implements the OpenAI-compatible chat completions API
|
|
@@ -4770,7 +4771,7 @@ export declare const AiApiFp: (configuration?: Configuration) => {
|
|
|
4770
4771
|
* @param {*} [options] Override http request option.
|
|
4771
4772
|
* @throws {RequiredError}
|
|
4772
4773
|
*/
|
|
4773
|
-
postChatCompletions(openaiChatCompletionRequest: OpenaiChatCompletionRequest, xMaxCost?: number, xMaxLatencyMs?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
4774
|
+
postChatCompletions(openaiChatCompletionRequest: OpenaiChatCompletionRequest, xMaxCost?: number, xMaxLatencyMs?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PostChat200Response>>;
|
|
4774
4775
|
/**
|
|
4775
4776
|
* Serves one completion to a caller with no account.
|
|
4776
4777
|
* @summary Serves one completion to a caller with no account.
|
|
@@ -4788,7 +4789,7 @@ export declare const AiApiFp: (configuration?: Configuration) => {
|
|
|
4788
4789
|
* @param {*} [options] Override http request option.
|
|
4789
4790
|
* @throws {RequiredError}
|
|
4790
4791
|
*/
|
|
4791
|
-
postCompletions(openaiChatCompletionRequest: OpenaiChatCompletionRequest, xMaxCost?: number, xMaxLatencyMs?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
4792
|
+
postCompletions(openaiChatCompletionRequest: OpenaiChatCompletionRequest, xMaxCost?: number, xMaxLatencyMs?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PostChat200Response>>;
|
|
4792
4793
|
/**
|
|
4793
4794
|
* 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.
|
|
4794
4795
|
* @summary Implements POST /v1/decisions (the Decisions API).
|
|
@@ -4850,7 +4851,7 @@ export declare const AiApiFp: (configuration?: Configuration) => {
|
|
|
4850
4851
|
* @param {*} [options] Override http request option.
|
|
4851
4852
|
* @throws {RequiredError}
|
|
4852
4853
|
*/
|
|
4853
|
-
postResponses(xMaxCost?: number, xMaxLatencyMs?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
4854
|
+
postResponses(xMaxCost?: number, xMaxLatencyMs?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PostResponses200Response>>;
|
|
4854
4855
|
/**
|
|
4855
4856
|
* 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.
|
|
4856
4857
|
* @summary Implements POST /v1/videos/generations — the ASYNC create.
|
|
@@ -7165,7 +7166,7 @@ export declare const AiApiFactory: (configuration?: Configuration, basePath?: st
|
|
|
7165
7166
|
* @param {*} [options] Override http request option.
|
|
7166
7167
|
* @throws {RequiredError}
|
|
7167
7168
|
*/
|
|
7168
|
-
postChat(requestParameters: AiApiPostChatRequest, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
7169
|
+
postChat(requestParameters: AiApiPostChatRequest, options?: RawAxiosRequestConfig): AxiosPromise<PostChat200Response>;
|
|
7169
7170
|
/**
|
|
7170
7171
|
* Implements the OpenAI-compatible chat completions API
|
|
7171
7172
|
* @summary Implements the OpenAI-compatible chat completions API
|
|
@@ -7173,7 +7174,7 @@ export declare const AiApiFactory: (configuration?: Configuration, basePath?: st
|
|
|
7173
7174
|
* @param {*} [options] Override http request option.
|
|
7174
7175
|
* @throws {RequiredError}
|
|
7175
7176
|
*/
|
|
7176
|
-
postChatCompletions(requestParameters: AiApiPostChatCompletionsRequest, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
7177
|
+
postChatCompletions(requestParameters: AiApiPostChatCompletionsRequest, options?: RawAxiosRequestConfig): AxiosPromise<PostChat200Response>;
|
|
7177
7178
|
/**
|
|
7178
7179
|
* Serves one completion to a caller with no account.
|
|
7179
7180
|
* @summary Serves one completion to a caller with no account.
|
|
@@ -7189,7 +7190,7 @@ export declare const AiApiFactory: (configuration?: Configuration, basePath?: st
|
|
|
7189
7190
|
* @param {*} [options] Override http request option.
|
|
7190
7191
|
* @throws {RequiredError}
|
|
7191
7192
|
*/
|
|
7192
|
-
postCompletions(requestParameters: AiApiPostCompletionsRequest, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
7193
|
+
postCompletions(requestParameters: AiApiPostCompletionsRequest, options?: RawAxiosRequestConfig): AxiosPromise<PostChat200Response>;
|
|
7193
7194
|
/**
|
|
7194
7195
|
* 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.
|
|
7195
7196
|
* @summary Implements POST /v1/decisions (the Decisions API).
|
|
@@ -7250,7 +7251,7 @@ export declare const AiApiFactory: (configuration?: Configuration, basePath?: st
|
|
|
7250
7251
|
* @param {*} [options] Override http request option.
|
|
7251
7252
|
* @throws {RequiredError}
|
|
7252
7253
|
*/
|
|
7253
|
-
postResponses(requestParameters?: AiApiPostResponsesRequest, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
7254
|
+
postResponses(requestParameters?: AiApiPostResponsesRequest, options?: RawAxiosRequestConfig): AxiosPromise<PostResponses200Response>;
|
|
7254
7255
|
/**
|
|
7255
7256
|
* 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.
|
|
7256
7257
|
* @summary Implements POST /v1/videos/generations — the ASYNC create.
|
|
@@ -13126,7 +13127,7 @@ export declare class AiApi extends BaseAPI {
|
|
|
13126
13127
|
* @throws {RequiredError}
|
|
13127
13128
|
* @memberof AiApi
|
|
13128
13129
|
*/
|
|
13129
|
-
postResponses(requestParameters?: AiApiPostResponsesRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AiResponsesResource, any, {}>>;
|
|
13130
|
+
postResponses(requestParameters?: AiApiPostResponsesRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<import("..").AiResponsesResource, any, {}>>;
|
|
13130
13131
|
/**
|
|
13131
13132
|
* 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.
|
|
13132
13133
|
* @summary Implements POST /v1/videos/generations — the ASYNC create.
|
|
@@ -274,7 +274,7 @@ export declare const BillingApiAxiosParamCreator: (configuration?: Configuration
|
|
|
274
274
|
*/
|
|
275
275
|
getBillingTransactionsById: (id: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
276
276
|
/**
|
|
277
|
-
* 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.
|
|
277
|
+
* 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.
|
|
278
278
|
* @summary Every billed call the caller\'s org made, attributed to a product
|
|
279
279
|
* @param {*} [options] Override http request option.
|
|
280
280
|
* @throws {RequiredError}
|
|
@@ -663,7 +663,7 @@ export declare const BillingApiFp: (configuration?: Configuration) => {
|
|
|
663
663
|
*/
|
|
664
664
|
getBillingTransactionsById(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BillingTransaction>>;
|
|
665
665
|
/**
|
|
666
|
-
* 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.
|
|
666
|
+
* 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.
|
|
667
667
|
* @summary Every billed call the caller\'s org made, attributed to a product
|
|
668
668
|
* @param {*} [options] Override http request option.
|
|
669
669
|
* @throws {RequiredError}
|
|
@@ -1042,7 +1042,7 @@ export declare const BillingApiFactory: (configuration?: Configuration, basePath
|
|
|
1042
1042
|
*/
|
|
1043
1043
|
getBillingTransactionsById(requestParameters: BillingApiGetBillingTransactionsByIdRequest, options?: RawAxiosRequestConfig): AxiosPromise<BillingTransaction>;
|
|
1044
1044
|
/**
|
|
1045
|
-
* 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.
|
|
1045
|
+
* 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.
|
|
1046
1046
|
* @summary Every billed call the caller\'s org made, attributed to a product
|
|
1047
1047
|
* @param {*} [options] Override http request option.
|
|
1048
1048
|
* @throws {RequiredError}
|
|
@@ -1869,7 +1869,7 @@ export declare class BillingApi extends BaseAPI {
|
|
|
1869
1869
|
*/
|
|
1870
1870
|
getBillingTransactionsById(requestParameters: BillingApiGetBillingTransactionsByIdRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<BillingTransaction, any, {}>>;
|
|
1871
1871
|
/**
|
|
1872
|
-
* 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.
|
|
1872
|
+
* 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.
|
|
1873
1873
|
* @summary Every billed call the caller\'s org made, attributed to a product
|
|
1874
1874
|
* @param {*} [options] Override http request option.
|
|
1875
1875
|
* @throws {RequiredError}
|
|
@@ -901,7 +901,7 @@ export const BillingApiAxiosParamCreator = function (configuration) {
|
|
|
901
901
|
};
|
|
902
902
|
},
|
|
903
903
|
/**
|
|
904
|
-
* 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.
|
|
904
|
+
* 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.
|
|
905
905
|
* @summary Every billed call the caller\'s org made, attributed to a product
|
|
906
906
|
* @param {*} [options] Override http request option.
|
|
907
907
|
* @throws {RequiredError}
|
|
@@ -1935,7 +1935,7 @@ export const BillingApiFp = function (configuration) {
|
|
|
1935
1935
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1936
1936
|
},
|
|
1937
1937
|
/**
|
|
1938
|
-
* 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.
|
|
1938
|
+
* 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.
|
|
1939
1939
|
* @summary Every billed call the caller\'s org made, attributed to a product
|
|
1940
1940
|
* @param {*} [options] Override http request option.
|
|
1941
1941
|
* @throws {RequiredError}
|
|
@@ -2478,7 +2478,7 @@ export const BillingApiFactory = function (configuration, basePath, axios) {
|
|
|
2478
2478
|
return localVarFp.getBillingTransactionsById(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
2479
2479
|
},
|
|
2480
2480
|
/**
|
|
2481
|
-
* 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.
|
|
2481
|
+
* 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.
|
|
2482
2482
|
* @summary Every billed call the caller\'s org made, attributed to a product
|
|
2483
2483
|
* @param {*} [options] Override http request option.
|
|
2484
2484
|
* @throws {RequiredError}
|
|
@@ -2982,7 +2982,7 @@ export class BillingApi extends BaseAPI {
|
|
|
2982
2982
|
return BillingApiFp(this.configuration).getBillingTransactionsById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
2983
2983
|
}
|
|
2984
2984
|
/**
|
|
2985
|
-
* 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.
|
|
2985
|
+
* 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.
|
|
2986
2986
|
* @summary Every billed call the caller\'s org made, attributed to a product
|
|
2987
2987
|
* @param {*} [options] Override http request option.
|
|
2988
2988
|
* @throws {RequiredError}
|