@naturali/cli 0.56.5 → 0.57.0
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/index.mjs +12 -2
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -14,7 +14,7 @@ var __exportAll = (all, no_symbols) => {
|
|
|
14
14
|
};
|
|
15
15
|
//#endregion
|
|
16
16
|
//#region package.json
|
|
17
|
-
var version = "0.
|
|
17
|
+
var version = "0.57.0";
|
|
18
18
|
//#endregion
|
|
19
19
|
//#region ../sdk/src/generated/core/bodySerializer.gen.ts
|
|
20
20
|
const jsonBodySerializer = { bodySerializer: (body) => JSON.stringify(body, (_key, value) => typeof value === "bigint" ? value.toString() : value) };
|
|
@@ -1858,6 +1858,8 @@ var Projects = class {
|
|
|
1858
1858
|
*
|
|
1859
1859
|
* The per-project meter — the re-billing view (A11/C12/P3). Aggregates the project's usage over an optional [from, to] window, bucketed by a single dimension. Costs are the billing-grade cost_usd the runtime freezes at write time; null means nothing in the bucket was priced (never that it was free). Only managed providers are priced (on the runtime), so cost reflects managed usage; BYOK usage carries no LLM cost.
|
|
1860
1860
|
*
|
|
1861
|
+
* Every bucket also carries components — the amounts actually measured. The token counts describe LLM usage alone, so that is where a storage, api_request or compute_execution bucket reports its real quantity instead of zeroed token fields.
|
|
1862
|
+
*
|
|
1861
1863
|
*/
|
|
1862
1864
|
static getProjectUsage(options) {
|
|
1863
1865
|
return (options.client ?? client).get({
|
|
@@ -6319,12 +6321,13 @@ const routes = {
|
|
|
6319
6321
|
"get-project-usage": {
|
|
6320
6322
|
serviceClass: "Projects",
|
|
6321
6323
|
operationId: "getProjectUsage",
|
|
6322
|
-
description: "The per-project meter — the re-billing view (A11/C12/P3). Aggregates the project's usage over an optional [from, to] window, bucketed by a single dimension. Costs are the billing-grade cost_usd the runtime freezes at write time; null means nothing in the bucket was priced (never that it was free). Only managed providers are priced (on the runtime), so cost reflects managed usage; BYOK usage carries no LLM cost.",
|
|
6324
|
+
description: "The per-project meter — the re-billing view (A11/C12/P3). Aggregates the project's usage over an optional [from, to] window, bucketed by a single dimension. Costs are the billing-grade cost_usd the runtime freezes at write time; null means nothing in the bucket was priced (never that it was free). Only managed providers are priced (on the runtime), so cost reflects managed usage; BYOK usage carries no LLM cost. Every bucket also carries components — the amounts actually measured. The token counts describe LLM usage alone, so that is where a storage, api_request or compute_execution bucket reports its real quantity instead of zeroed token fields.",
|
|
6323
6325
|
moduleDocsUrl: "https://docs.naturali.ai/docs/modules/projects",
|
|
6324
6326
|
httpMethod: "get",
|
|
6325
6327
|
pathParams: ["project_id"],
|
|
6326
6328
|
queryParams: [
|
|
6327
6329
|
"group_by",
|
|
6330
|
+
"meter_type",
|
|
6328
6331
|
"from",
|
|
6329
6332
|
"to"
|
|
6330
6333
|
],
|
|
@@ -6343,6 +6346,13 @@ const routes = {
|
|
|
6343
6346
|
"type": "string",
|
|
6344
6347
|
"in": "query"
|
|
6345
6348
|
},
|
|
6349
|
+
{
|
|
6350
|
+
"name": "meter_type",
|
|
6351
|
+
"description": "Narrow the rollup to one meter type (llm_tokens, compute_execution, api_request, storage). Omit to include every meter. Useful with group_by=model, whose dimension otherwise mixes model ids with platform SKUs. An unrecognized value yields an empty rollup, not an error.\n",
|
|
6352
|
+
"required": false,
|
|
6353
|
+
"type": "string",
|
|
6354
|
+
"in": "query"
|
|
6355
|
+
},
|
|
6346
6356
|
{
|
|
6347
6357
|
"name": "from",
|
|
6348
6358
|
"description": "Inclusive lower bound (ISO-8601) on event time. Omit for no lower bound.",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@naturali/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.57.0",
|
|
4
4
|
"description": "Command-line interface for the naturali.ai API, generated from its OpenAPI specs",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"tsx": "^4.23.1",
|
|
31
31
|
"typescript": "~6.0.3",
|
|
32
32
|
"vitest": "^4.1.10",
|
|
33
|
-
"@naturali/sdk": "0.
|
|
33
|
+
"@naturali/sdk": "0.57.0"
|
|
34
34
|
},
|
|
35
35
|
"scripts": {
|
|
36
36
|
"generate": "tsx scripts/generate.ts",
|