@naturali/cli 0.116.0 → 0.117.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 +30 -7
- 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.117.0";
|
|
18
18
|
//#endregion
|
|
19
19
|
//#region ../sdk/src/generated/core/bodySerializer.gen.ts
|
|
20
20
|
const serializeFormDataPair = (data, key, value) => {
|
|
@@ -3376,7 +3376,7 @@ var Orchestrations = class {
|
|
|
3376
3376
|
/**
|
|
3377
3377
|
* List orchestration runs
|
|
3378
3378
|
*
|
|
3379
|
-
* Returns orchestration runs the caller can access, optionally filtered by orchestration, by parent run, or by whether the run has a parent at all.
|
|
3379
|
+
* Returns orchestration runs the caller can access, optionally filtered by orchestration, by parent run, by status, or by whether the run has a parent at all.
|
|
3380
3380
|
*
|
|
3381
3381
|
* Note when aggregating: a run's `usage` covers its whole subtree, so summing it over a list that contains both a parent and its children counts the children more than once. Pass `nested=false` to sum over runs a caller started.
|
|
3382
3382
|
*/
|
|
@@ -3591,7 +3591,7 @@ var Quotas = class {
|
|
|
3591
3591
|
/**
|
|
3592
3592
|
* Create a quota
|
|
3593
3593
|
*
|
|
3594
|
-
* Creates a project-scoped quota. `requests` is valid for `scope: project`/`api_key`; `tokens` and `cost_usd` are valid for `scope: project`/`agent`/`actor`. Any other scope/metric pair is rejected with 400 (no attribution exists to enforce it). An `actor` quota caps one end user's spend, matched from the generation's session; a null `scope_ref` means one budget *per* actor rather than a pooled project total. A duplicate quota (same project, scope, scope_ref, metric, window) is rejected with 409.
|
|
3594
|
+
* Creates a project-scoped quota. `requests` is valid for `scope: project`/`api_key`; `tokens` and `cost_usd` are valid for `scope: project`/`agent`/`actor`. Any other scope/metric pair is rejected with 400 (no attribution exists to enforce it). An `actor` quota caps one end user's spend, matched from the generation's session; a null `scope_ref` means one budget *per* actor rather than a pooled project total. A `cost_usd` quota may name one `meter_type` to cap; omitting it caps every priced meter. A duplicate quota (same project, scope, scope_ref, metric, window, meter_type) is rejected with 409.
|
|
3595
3595
|
*/
|
|
3596
3596
|
static createQuota(options) {
|
|
3597
3597
|
return (options.client ?? client).post({
|
|
@@ -3898,7 +3898,7 @@ var Tasks = class {
|
|
|
3898
3898
|
/**
|
|
3899
3899
|
* List tasks
|
|
3900
3900
|
*
|
|
3901
|
-
* Lists tasks (the board query). Filter by workflow, state, status, or assignee — `GET /tasks?workflow_id=...&state=...` is one board column.
|
|
3901
|
+
* Lists tasks (the board query). Filter by workflow, state, status, automation status, or assignee — `GET /tasks?workflow_id=...&state=...` is one board column.
|
|
3902
3902
|
*/
|
|
3903
3903
|
static listTasks(options) {
|
|
3904
3904
|
return (options.client ?? client).get({
|
|
@@ -12983,7 +12983,7 @@ const routes = {
|
|
|
12983
12983
|
"list-orchestration-runs": {
|
|
12984
12984
|
serviceClass: "Orchestrations",
|
|
12985
12985
|
operationId: "listOrchestrationRuns",
|
|
12986
|
-
description: "Returns orchestration runs the caller can access, optionally filtered by orchestration, by parent run, or by whether the run has a parent at all. Note when aggregating: a run's `usage` covers its whole subtree, so summing it over a list that contains both a parent and its children counts the children more than once. Pass `nested=false` to sum over runs a caller started.",
|
|
12986
|
+
description: "Returns orchestration runs the caller can access, optionally filtered by orchestration, by parent run, by status, or by whether the run has a parent at all. Note when aggregating: a run's `usage` covers its whole subtree, so summing it over a list that contains both a parent and its children counts the children more than once. Pass `nested=false` to sum over runs a caller started.",
|
|
12987
12987
|
moduleDocsUrl: "https://docs.naturali.ai/docs/modules/orchestrations",
|
|
12988
12988
|
httpMethod: "get",
|
|
12989
12989
|
pathParams: ["project_id"],
|
|
@@ -12991,6 +12991,7 @@ const routes = {
|
|
|
12991
12991
|
"orchestration_id",
|
|
12992
12992
|
"parent_orchestration_run_id",
|
|
12993
12993
|
"nested",
|
|
12994
|
+
"status",
|
|
12994
12995
|
"limit",
|
|
12995
12996
|
"offset"
|
|
12996
12997
|
],
|
|
@@ -13023,6 +13024,13 @@ const routes = {
|
|
|
13023
13024
|
"type": "boolean",
|
|
13024
13025
|
"in": "query"
|
|
13025
13026
|
},
|
|
13027
|
+
{
|
|
13028
|
+
"name": "status",
|
|
13029
|
+
"description": "Filter by run status. Repeat the parameter to OR values — `status=queued&status=running&status=sleeping&status=awaiting_input` is the set still driving, which is how a caller finds live work without paging every run the project ever started.\n\nThere is no `non_terminal` shorthand on purpose: which statuses count as live is the caller's policy. A value outside the enum, empty string included, is a `400`.",
|
|
13030
|
+
"required": false,
|
|
13031
|
+
"type": "array",
|
|
13032
|
+
"in": "query"
|
|
13033
|
+
},
|
|
13026
13034
|
{
|
|
13027
13035
|
"name": "limit",
|
|
13028
13036
|
"description": "Maximum number of results to return",
|
|
@@ -13469,7 +13477,7 @@ const routes = {
|
|
|
13469
13477
|
"create-quota": {
|
|
13470
13478
|
serviceClass: "Quotas",
|
|
13471
13479
|
operationId: "createQuota",
|
|
13472
|
-
description: "Creates a project-scoped quota. `requests` is valid for `scope: project`/`api_key`; `tokens` and `cost_usd` are valid for `scope: project`/`agent`/`actor`. Any other scope/metric pair is rejected with 400 (no attribution exists to enforce it). An `actor` quota caps one end user's spend, matched from the generation's session; a null `scope_ref` means one budget *per* actor rather than a pooled project total. A duplicate quota (same project, scope, scope_ref, metric, window) is rejected with 409.",
|
|
13480
|
+
description: "Creates a project-scoped quota. `requests` is valid for `scope: project`/`api_key`; `tokens` and `cost_usd` are valid for `scope: project`/`agent`/`actor`. Any other scope/metric pair is rejected with 400 (no attribution exists to enforce it). An `actor` quota caps one end user's spend, matched from the generation's session; a null `scope_ref` means one budget *per* actor rather than a pooled project total. A `cost_usd` quota may name one `meter_type` to cap; omitting it caps every priced meter. A duplicate quota (same project, scope, scope_ref, metric, window, meter_type) is rejected with 409.",
|
|
13473
13481
|
moduleDocsUrl: "https://docs.naturali.ai/docs/modules/quotas",
|
|
13474
13482
|
httpMethod: "post",
|
|
13475
13483
|
pathParams: ["project_id"],
|
|
@@ -13530,6 +13538,13 @@ const routes = {
|
|
|
13530
13538
|
"required": false,
|
|
13531
13539
|
"type": "string",
|
|
13532
13540
|
"in": "body"
|
|
13541
|
+
},
|
|
13542
|
+
{
|
|
13543
|
+
"name": "meter_type",
|
|
13544
|
+
"description": "Only for metric cost_usd (400 on any other metric). The meter this cap answers for. Omit it and the cap sums every priced meter, which is the existing behaviour; name one and only that meter's cost counts, so an AI spend cap is not consumed by platform meters the operator prices (and vice versa). Part of the quota's identity, so two meter scopes can share a scope/metric/window and neither conflicts with an unscoped cap. Immutable after creation — replace the quota to change it.",
|
|
13545
|
+
"required": false,
|
|
13546
|
+
"type": "string",
|
|
13547
|
+
"in": "body"
|
|
13533
13548
|
}
|
|
13534
13549
|
]
|
|
13535
13550
|
},
|
|
@@ -14313,7 +14328,7 @@ const routes = {
|
|
|
14313
14328
|
"list-tasks": {
|
|
14314
14329
|
serviceClass: "Tasks",
|
|
14315
14330
|
operationId: "listTasks",
|
|
14316
|
-
description: "Lists tasks (the board query). Filter by workflow, state, status, or assignee — `GET /tasks?workflow_id=...&state=...` is one board column.",
|
|
14331
|
+
description: "Lists tasks (the board query). Filter by workflow, state, status, automation status, or assignee — `GET /tasks?workflow_id=...&state=...` is one board column.",
|
|
14317
14332
|
moduleDocsUrl: "https://docs.naturali.ai/docs/modules/tasks",
|
|
14318
14333
|
httpMethod: "get",
|
|
14319
14334
|
pathParams: ["project_id"],
|
|
@@ -14321,6 +14336,7 @@ const routes = {
|
|
|
14321
14336
|
"workflow_id",
|
|
14322
14337
|
"state",
|
|
14323
14338
|
"status",
|
|
14339
|
+
"automation_status",
|
|
14324
14340
|
"assignee",
|
|
14325
14341
|
"limit",
|
|
14326
14342
|
"offset"
|
|
@@ -14354,6 +14370,13 @@ const routes = {
|
|
|
14354
14370
|
"type": "string",
|
|
14355
14371
|
"in": "query"
|
|
14356
14372
|
},
|
|
14373
|
+
{
|
|
14374
|
+
"name": "automation_status",
|
|
14375
|
+
"description": "Filter by the current state's dispatch status. Repeat the parameter to OR values. `none` selects the tasks whose `automation_status` is `null` — the ones that never entered a state with an automation. It is a value a task really holds, so it is a value of the filter too; the parameter's own absence already means \"every task\".\n\nA value outside the enum, empty string included, is a `400`.",
|
|
14376
|
+
"required": false,
|
|
14377
|
+
"type": "array",
|
|
14378
|
+
"in": "query"
|
|
14379
|
+
},
|
|
14357
14380
|
{
|
|
14358
14381
|
"name": "assignee",
|
|
14359
14382
|
"description": "",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@naturali/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.117.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.117.0"
|
|
34
34
|
},
|
|
35
35
|
"scripts": {
|
|
36
36
|
"generate": "tsx scripts/generate.ts",
|