@naturali/cli 0.202.0 → 0.203.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/README.md CHANGED
@@ -17,7 +17,7 @@ the environment:
17
17
  | Variable | Purpose |
18
18
  | --- | --- |
19
19
  | `NATURALI_TOKEN` | Bearer credential (`nat_sk_…` or a session JWT). Required. |
20
- | `NATURALI_PROJECT` | Default `--project-id` for commands that take one. An explicit `--project-id` still wins. |
20
+ | `NATURALI_PROJECT_ID` | Default `--project-id` for commands that take one. An explicit `--project-id` still wins. |
21
21
 
22
22
  ## Commands
23
23
 
package/dist/index.mjs CHANGED
@@ -17,7 +17,7 @@ var __exportAll = (all, no_symbols) => {
17
17
  };
18
18
  //#endregion
19
19
  //#region package.json
20
- var version = "0.202.0";
20
+ var version = "0.203.0";
21
21
  //#endregion
22
22
  //#region ../sdk/src/generated/core/bodySerializer.gen.ts
23
23
  const serializeFormDataPair = (data, key, value) => {
@@ -2925,7 +2925,7 @@ var Evaluations = class {
2925
2925
  /**
2926
2926
  * Cancel an eval run
2927
2927
  *
2928
- * Cancels a queued or running run: its outstanding item tasks are dropped so it stops consuming provider budget, and the run settles as `canceled`.
2928
+ * Cancels a queued or running run: its outstanding item tasks are dropped so it stops consuming provider budget, and the run settles as `cancelled`.
2929
2929
  *
2930
2930
  * Results already written are kept — they are real measurements of generations that were really paid for — and `completed_count` / `errored_count` report what ran. `aggregate_scores` is deliberately left null: a partial roll-up in the same field a completed run uses would read as a whole-dataset verdict.
2931
2931
  *
@@ -4287,7 +4287,7 @@ var Orchestrations = class {
4287
4287
  /**
4288
4288
  * Validate an orchestration graph
4289
4289
  *
4290
- * Statically validates an orchestration graph without persisting anything. Checks that every node has its required field, node ids are unique, edges reference existing nodes, the graph is acyclic (unless it contains a loop node), and every `input_mapping` `{"var": "..."}` reference resolves to a state key written by an upstream node or seeded by `input_schema`. Returns blocking `errors` and non-blocking `warnings` (e.g. a state key only written on a conditional branch). The same `errors` checks are enforced on create and update, which fail with `400` when any error is present.
4290
+ * Statically validates an orchestration graph without persisting anything. Checks that every node has its required field, node ids are unique, edges reference existing nodes, the graph is acyclic (unless it contains a loop node), and every `input_mapping` `{"var": "..."}` reference resolves to a state key written by an upstream node or seeded by `input_schema`. Returns blocking `problems` and non-blocking `warnings` (e.g. a state key only written on a conditional branch). The same checks are enforced on create and update, which fail with `400 ORCHESTRATION_VALIDATION_FAILED` listing the same items under `meta.problems` and `meta.warnings`.
4291
4291
  *
4292
4292
  */
4293
4293
  static validateOrchestration(options) {
@@ -4438,7 +4438,7 @@ var Orchestrations = class {
4438
4438
  /**
4439
4439
  * Start an orchestration run
4440
4440
  *
4441
- * Creates a new run for the orchestration named by orchestration_id. By default the run executes durably in the background: the response returns immediately with status "queued" (a worker then claims it and moves it to "running") and progress is observed via get-orchestration-run or run lifecycle webhook events (orchestration_runs.started/awaiting_input/succeeded/failed). Delay and poll waits park the run as "sleeping" and are woken by a background scheduler, surviving restarts. Pass wait=true to block until the run reaches a terminal or awaiting_input state.
4441
+ * Creates a new run for the orchestration named by orchestration_id. By default the run executes durably in the background: the response returns immediately with status "queued" (a worker then claims it and moves it to "running") and progress is observed via get-orchestration-run or run lifecycle webhook events (orchestration_runs.started/awaiting_input/completed/failed). Delay and poll waits park the run as "sleeping" and are woken by a background scheduler, surviving restarts. Pass wait=true to block until the run reaches a terminal or awaiting_input state.
4442
4442
  */
4443
4443
  static startOrchestrationRun(options) {
4444
4444
  return (options.client ?? client).post({
@@ -4715,7 +4715,7 @@ var Playbooks = class {
4715
4715
  /**
4716
4716
  * List what a node still needs
4717
4717
  *
4718
- * Returns the manual inputs still unset, or refused by their schema, before `node` can be reached, grouped in waves: nothing in a later wave can run before the earlier ones are filled.
4718
+ * Returns the manual inputs still unset, or refused by their schema, before `node_id` can be reached, grouped in waves: nothing in a later wave can run before the earlier ones are filled.
4719
4719
  */
4720
4720
  static getPlaybookCaseMissing(options) {
4721
4721
  return (options.client ?? client).get({
@@ -4778,7 +4778,7 @@ var Playbooks = class {
4778
4778
  /**
4779
4779
  * Export a final node
4780
4780
  *
4781
- * Renders one revision of a final node as files, one export per transformation: each transformation's tool is called with the case's `case_id` and `subject`, the `node`, the `revision` and that revision's `output`, and must answer a file (`execute.response_mode: base64`) of its `format`'s content type. The file is kept in the project's files under `/.system/playbooks/`. An export never feeds a node.
4781
+ * Renders one revision of a final node as files, one export per transformation: each transformation's tool is called with the case's `case_id` and `subject`, the `node_id`, the `revision` and that revision's `output`, and must answer a file (`execute.response_mode: base64`) of its `format`'s content type. The file is kept in the project's files under `/.system/playbooks/`. An export never feeds a node.
4782
4782
  *
4783
4783
  * Without `revision` the node's current output is exported, which needs the node `done` (`409 PLAYBOOK_NODE_NOT_EXPORTABLE`); a `revision` names an earlier output or confirmation of the node. Each tool runs as the author of the case's playbook version, whose permission to call it is checked here (`403 PLAYBOOK_EXECUTOR_FORBIDDEN`). A paused case is `409 PLAYBOOK_CASE_PAUSED`, and a case in a paused project `409 PROJECT_PAUSED`.
4784
4784
  *
@@ -4819,7 +4819,7 @@ var Playbooks = class {
4819
4819
  /**
4820
4820
  * Upgrade a case
4821
4821
  *
4822
- * Moves a case to another version of its playbook: the playbook's current version, or the `version` named, an earlier one included. Values carry over by node key, and every node's state is read against the new version: a node added is open, a node removed leaves the structure while its entries stay, a node whose input reads another field is `stale`, and a value its input's new schema refuses is missing again. The cascade then runs what became runnable. With `wait: true` it answers once every execution queued, and every one those queue, has settled or parked. Each upgrade is recorded with what moved; the version the case is already on records nothing.
4822
+ * Moves a case to another version of its playbook: the playbook's current version, or the `version` named, an earlier one included. Values carry over by node ID, and every node's state is read against the new version: a node added is open, a node removed leaves the structure while its entries stay, a node whose input reads another field is `stale`, and a value its input's new schema refuses is missing again. The cascade then runs what became runnable. With `wait: true` it answers once every execution queued, and every one those queue, has settled or parked. Each upgrade is recorded with what moved; the version the case is already on records nothing.
4823
4823
  *
4824
4824
  * An execution running is `409 PLAYBOOK_CASE_BUSY`; one queued but not started settles `superseded`. An upgrade made with a credential the case's own work runs as is `403 PLAYBOOK_SELF_WRITE`.
4825
4825
  */
@@ -5419,7 +5419,7 @@ var Sessions = class {
5419
5419
  /**
5420
5420
  * Add a user message
5421
5421
  *
5422
- * Saves a user message to the session. When autoGenerate is enabled on the session and no generation is currently in progress, generation is triggered automatically and the response mirrors GenerateSessionResponse. Otherwise returns the saved user message.
5422
+ * Saves a user message to the session. When `auto_generate` is enabled on the session and no generation is currently in progress, generation is triggered automatically and the response is the generated turn, the same body `?wait=true` generate answers. Otherwise returns the saved user message.
5423
5423
  *
5424
5424
  */
5425
5425
  static addSessionMessage(options) {
@@ -7018,13 +7018,14 @@ const placeFlags = (args) => {
7018
7018
  };
7019
7019
  const PROJECT_ID_PARAM = "project_id";
7020
7020
  /**
7021
- * Falls back to `NATURALI_PROJECT` for the `project_id` path or query
7021
+ * Falls back to `NATURALI_PROJECT_ID` for the `project_id` path or query
7022
7022
  * parameter when a command doesn't pass `--project-id` explicitly, so a user
7023
7023
  * working within one project doesn't have to repeat it on every command.
7024
+ * `NATURALI_PROJECT` is read after it so shells that still export it work.
7024
7025
  */
7025
7026
  const applyProjectIdEnvDefault = (args) => {
7026
7027
  const { route, call } = args;
7027
- const envProjectId = process.env["NATURALI_PROJECT"];
7028
+ const envProjectId = process.env["NATURALI_PROJECT_ID"] || process.env["NATURALI_PROJECT"];
7028
7029
  if (!envProjectId) return;
7029
7030
  if (route.pathParams.includes(PROJECT_ID_PARAM) && !(PROJECT_ID_PARAM in call.path)) call.path[PROJECT_ID_PARAM] = envProjectId;
7030
7031
  else if (route.queryParams.includes(PROJECT_ID_PARAM) && !(PROJECT_ID_PARAM in call.query)) call.query[PROJECT_ID_PARAM] = envProjectId;
@@ -9883,7 +9884,8 @@ const routes = {
9883
9884
  queryParams: [
9884
9885
  "status",
9885
9886
  "origin",
9886
- "expires_before",
9887
+ "expires_from",
9888
+ "expires_to",
9887
9889
  "limit",
9888
9890
  "offset"
9889
9891
  ],
@@ -9899,9 +9901,9 @@ const routes = {
9899
9901
  },
9900
9902
  {
9901
9903
  "name": "status",
9902
- "description": "Filter by lifecycle status",
9904
+ "description": "Filter by lifecycle status. Repeat the parameter to OR values. A value outside the enum, empty string included, is a `400`.",
9903
9905
  "required": false,
9904
- "type": "string",
9906
+ "type": "array",
9905
9907
  "in": "query"
9906
9908
  },
9907
9909
  {
@@ -9912,8 +9914,15 @@ const routes = {
9912
9914
  "in": "query"
9913
9915
  },
9914
9916
  {
9915
- "name": "expires_before",
9916
- "description": "Return only items expiring at or before this timestamp",
9917
+ "name": "expires_from",
9918
+ "description": "Only items whose `expires_at` is at or after this timestamp (ISO 8601)",
9919
+ "required": false,
9920
+ "type": "string",
9921
+ "in": "query"
9922
+ },
9923
+ {
9924
+ "name": "expires_to",
9925
+ "description": "Only items whose `expires_at` is at or before this timestamp (ISO 8601)",
9917
9926
  "required": false,
9918
9927
  "type": "string",
9919
9928
  "in": "query"
@@ -9959,9 +9968,9 @@ const routes = {
9959
9968
  },
9960
9969
  {
9961
9970
  "name": "status",
9962
- "description": "Lifecycle status the groups are built from (default `rejected`)",
9971
+ "description": "Lifecycle statuses the groups are built from (default `rejected`). Repeat the parameter to OR values. A value outside the enum, empty string included, is a `400`.",
9963
9972
  "required": false,
9964
- "type": "string",
9973
+ "type": "array",
9965
9974
  "in": "query"
9966
9975
  },
9967
9976
  {
@@ -10589,9 +10598,9 @@ const routes = {
10589
10598
  },
10590
10599
  {
10591
10600
  "name": "status",
10592
- "description": "Filter by chain status",
10601
+ "description": "Filter by chain status. Repeat the parameter to OR values. A value outside the enum, empty string included, is a `400`.",
10593
10602
  "required": false,
10594
- "type": "string",
10603
+ "type": "array",
10595
10604
  "in": "query"
10596
10605
  },
10597
10606
  {
@@ -12448,9 +12457,9 @@ const routes = {
12448
12457
  },
12449
12458
  {
12450
12459
  "name": "status",
12451
- "description": "Only decisions in this status",
12460
+ "description": "Only decisions in these statuses. Repeat the parameter to OR values. A value outside the enum, empty string included, is a `400`.",
12452
12461
  "required": false,
12453
- "type": "string",
12462
+ "type": "array",
12454
12463
  "in": "query"
12455
12464
  },
12456
12465
  {
@@ -14229,7 +14238,7 @@ const routes = {
14229
14238
  "cancel-eval-run": {
14230
14239
  serviceClass: "Evaluations",
14231
14240
  operationId: "cancelEvalRun",
14232
- description: "Cancels a queued or running run: its outstanding item tasks are dropped so it stops consuming provider budget, and the run settles as `canceled`. Results already written are kept — they are real measurements of generations that were really paid for — and `completed_count` / `errored_count` report what ran. `aggregate_scores` is deliberately left null: a partial roll-up in the same field a completed run uses would read as a whole-dataset verdict. A run that has already finished is rejected with 400.",
14241
+ description: "Cancels a queued or running run: its outstanding item tasks are dropped so it stops consuming provider budget, and the run settles as `cancelled`. Results already written are kept — they are real measurements of generations that were really paid for — and `completed_count` / `errored_count` report what ran. `aggregate_scores` is deliberately left null: a partial roll-up in the same field a completed run uses would read as a whole-dataset verdict. A run that has already finished is rejected with 400.",
14233
14242
  moduleDocsUrl: "https://naturali.ai/docs/modules/evaluations",
14234
14243
  httpMethod: "post",
14235
14244
  pathParams: [
@@ -14290,9 +14299,9 @@ const routes = {
14290
14299
  },
14291
14300
  {
14292
14301
  "name": "status",
14293
- "description": "Filter by triage status",
14302
+ "description": "Filter by triage status. Repeat the parameter to OR values. A value outside the enum, empty string included, is a `400`.",
14294
14303
  "required": false,
14295
- "type": "string",
14304
+ "type": "array",
14296
14305
  "in": "query"
14297
14306
  },
14298
14307
  {
@@ -15226,9 +15235,9 @@ const routes = {
15226
15235
  },
15227
15236
  {
15228
15237
  "name": "status",
15229
- "description": "Filter by lifecycle status",
15238
+ "description": "Filter by lifecycle status. Repeat the parameter to OR values. A value outside the enum, empty string included, is a `400`.",
15230
15239
  "required": false,
15231
- "type": "string",
15240
+ "type": "array",
15232
15241
  "in": "query"
15233
15242
  },
15234
15243
  {
@@ -16045,7 +16054,7 @@ const routes = {
16045
16054
  },
16046
16055
  {
16047
16056
  "name": "metadata",
16048
- "description": "A `MetadataBag` on a field where `null` is meaningful — a full-replacement update that clears the bag, or a record whose bag was never set.",
16057
+ "description": "A `MetadataBag` on a request field where `null` is meaningful: a full-replacement update that clears the bag. A record whose bag is unset leaves the field out.",
16049
16058
  "required": false,
16050
16059
  "type": "object",
16051
16060
  "in": "body"
@@ -17133,7 +17142,7 @@ const routes = {
17133
17142
  },
17134
17143
  {
17135
17144
  "name": "on",
17136
- "description": "The event a firing reads. `agents.generation.completed` fires once per completed turn whatever the transport, and is the only event the built-in extractor may bind to. `conversations.message.generated` fires per persisted assistant reply and is conversation-backed, so it is for custom handlers.",
17145
+ "description": "The event a firing reads. `generations.completed` fires once per completed turn whatever the transport, and is the only event the built-in extractor may bind to. `conversation_messages.generated` fires per persisted assistant reply and is conversation-backed, so it is for custom handlers.",
17137
17146
  "required": true,
17138
17147
  "type": "string",
17139
17148
  "in": "body"
@@ -17254,7 +17263,7 @@ const routes = {
17254
17263
  },
17255
17264
  {
17256
17265
  "name": "on",
17257
- "description": "The event a firing reads. `agents.generation.completed` fires once per completed turn whatever the transport, and is the only event the built-in extractor may bind to. `conversations.message.generated` fires per persisted assistant reply and is conversation-backed, so it is for custom handlers.",
17266
+ "description": "The event a firing reads. `generations.completed` fires once per completed turn whatever the transport, and is the only event the built-in extractor may bind to. `conversation_messages.generated` fires per persisted assistant reply and is conversation-backed, so it is for custom handlers.",
17258
17267
  "required": false,
17259
17268
  "type": "string",
17260
17269
  "in": "body"
@@ -17569,7 +17578,8 @@ const routes = {
17569
17578
  "mechanism",
17570
17579
  "outcome",
17571
17580
  "generation_id",
17572
- "since",
17581
+ "from",
17582
+ "to",
17573
17583
  "limit",
17574
17584
  "offset"
17575
17585
  ],
@@ -17612,8 +17622,15 @@ const routes = {
17612
17622
  "in": "query"
17613
17623
  },
17614
17624
  {
17615
- "name": "since",
17616
- "description": "Only assertions recorded at or after this instant.",
17625
+ "name": "from",
17626
+ "description": "Only assertions recorded at or after this instant (ISO 8601).",
17627
+ "required": false,
17628
+ "type": "string",
17629
+ "in": "query"
17630
+ },
17631
+ {
17632
+ "name": "to",
17633
+ "description": "Only assertions recorded at or before this instant (ISO 8601).",
17617
17634
  "required": false,
17618
17635
  "type": "string",
17619
17636
  "in": "query"
@@ -18343,7 +18360,7 @@ const routes = {
18343
18360
  },
18344
18361
  {
18345
18362
  "name": "output_mapping",
18346
- "description": "The shape of a succeeded run's `output`, owned by the orchestration rather than by its terminal node ids. Each key is an output field (a dotted key such as `summary.title` builds a nested object); each value is JSON Logic (https://jsonlogic.com) evaluated against `{ \"state\": <final run state> }`, which includes `state.input` and `state.nodes.<id>`. A missing path maps to `null`; a mapping that throws fails the run. Null (or omitted) keys `output` by terminal node id. Versioned with the graph; `null` on update clears it.",
18363
+ "description": "The shape of a completed run's `output`, owned by the orchestration rather than by its terminal node ids. Each key is an output field (a dotted key such as `summary.title` builds a nested object); each value is JSON Logic (https://jsonlogic.com) evaluated against `{ \"state\": <final run state> }`, which includes `state.input` and `state.nodes.<id>`. A missing path maps to `null`; a mapping that throws fails the run. Null (or omitted) keys `output` by terminal node id. Versioned with the graph; `null` on update clears it.",
18347
18364
  "required": false,
18348
18365
  "type": "object",
18349
18366
  "in": "body"
@@ -18360,7 +18377,7 @@ const routes = {
18360
18377
  "validate-orchestration": {
18361
18378
  serviceClass: "Orchestrations",
18362
18379
  operationId: "validateOrchestration",
18363
- description: "Statically validates an orchestration graph without persisting anything. Checks that every node has its required field, node ids are unique, edges reference existing nodes, the graph is acyclic (unless it contains a loop node), and every `input_mapping` `{\"var\": \"...\"}` reference resolves to a state key written by an upstream node or seeded by `input_schema`. Returns blocking `errors` and non-blocking `warnings` (e.g. a state key only written on a conditional branch). The same `errors` checks are enforced on create and update, which fail with `400` when any error is present.",
18380
+ description: "Statically validates an orchestration graph without persisting anything. Checks that every node has its required field, node ids are unique, edges reference existing nodes, the graph is acyclic (unless it contains a loop node), and every `input_mapping` `{\"var\": \"...\"}` reference resolves to a state key written by an upstream node or seeded by `input_schema`. Returns blocking `problems` and non-blocking `warnings` (e.g. a state key only written on a conditional branch). The same checks are enforced on create and update, which fail with `400 ORCHESTRATION_VALIDATION_FAILED` listing the same items under `meta.problems` and `meta.warnings`.",
18364
18381
  moduleDocsUrl: "https://naturali.ai/docs/modules/orchestrations",
18365
18382
  httpMethod: "post",
18366
18383
  pathParams: ["project_id"],
@@ -18550,7 +18567,7 @@ const routes = {
18550
18567
  },
18551
18568
  {
18552
18569
  "name": "output_mapping",
18553
- "description": "The shape of a succeeded run's `output`, owned by the orchestration rather than by its terminal node ids. Each key is an output field (a dotted key such as `summary.title` builds a nested object); each value is JSON Logic (https://jsonlogic.com) evaluated against `{ \"state\": <final run state> }`, which includes `state.input` and `state.nodes.<id>`. A missing path maps to `null`; a mapping that throws fails the run. Null (or omitted) keys `output` by terminal node id. Versioned with the graph; `null` on update clears it.",
18570
+ "description": "The shape of a completed run's `output`, owned by the orchestration rather than by its terminal node ids. Each key is an output field (a dotted key such as `summary.title` builds a nested object); each value is JSON Logic (https://jsonlogic.com) evaluated against `{ \"state\": <final run state> }`, which includes `state.input` and `state.nodes.<id>`. A missing path maps to `null`; a mapping that throws fails the run. Null (or omitted) keys `output` by terminal node id. Versioned with the graph; `null` on update clears it.",
18554
18571
  "required": false,
18555
18572
  "type": "object",
18556
18573
  "in": "body"
@@ -18791,7 +18808,7 @@ const routes = {
18791
18808
  "start-orchestration-run": {
18792
18809
  serviceClass: "Orchestrations",
18793
18810
  operationId: "startOrchestrationRun",
18794
- description: "Creates a new run for the orchestration named by orchestration_id. By default the run executes durably in the background: the response returns immediately with status \"queued\" (a worker then claims it and moves it to \"running\") and progress is observed via get-orchestration-run or run lifecycle webhook events (orchestration_runs.started/awaiting_input/succeeded/failed). Delay and poll waits park the run as \"sleeping\" and are woken by a background scheduler, surviving restarts. Pass wait=true to block until the run reaches a terminal or awaiting_input state.",
18811
+ description: "Creates a new run for the orchestration named by orchestration_id. By default the run executes durably in the background: the response returns immediately with status \"queued\" (a worker then claims it and moves it to \"running\") and progress is observed via get-orchestration-run or run lifecycle webhook events (orchestration_runs.started/awaiting_input/completed/failed). Delay and poll waits park the run as \"sleeping\" and are woken by a background scheduler, surviving restarts. Pass wait=true to block until the run reaches a terminal or awaiting_input state.",
18795
18812
  moduleDocsUrl: "https://naturali.ai/docs/modules/orchestrations",
18796
18813
  httpMethod: "post",
18797
18814
  pathParams: ["project_id"],
@@ -18829,7 +18846,7 @@ const routes = {
18829
18846
  },
18830
18847
  {
18831
18848
  "name": "tool_context",
18832
- "description": "Key-value pairs forwarded as `X-Naturali-Context-<key>` headers on every `http` and `mcp` tool call made by an agent node of this run — including the agents of any child run a `loop` or `sub_orchestration` node starts. The header name is `X-Naturali-Context-` plus the key verbatim; no character is re-cased.\n\nThe bag is stored on the run and re-read on every step, so it survives an `awaiting_input` pause, a `sleeping` wait, a background worker drive and a crash redrive. It is **write-only**: a run is a record every principal who may read runs can read, and a credential in it is not theirs to see, so it is never returned on one. It also does not outlive the run: reaching a terminal status (`succeeded`, `failed`, `cancelled` or `expired`) clears it. A key that is not a valid HTTP header name, or two keys that map to the same header, are rejected with `400 INVALID_TOOL_CONTEXT_KEY` and no run is created.\n\nThe reserved identity keys (`session_id`, `actor_id`, `actor_external_id`) are stripped at generation time — a caller cannot address them from here.",
18849
+ "description": "Key-value pairs forwarded as `X-Naturali-Context-<key>` headers on every `http` and `mcp` tool call made by an agent node of this run — including the agents of any child run a `loop` or `sub_orchestration` node starts. The header name is `X-Naturali-Context-` plus the key verbatim; no character is re-cased.\n\nThe bag is stored on the run and re-read on every step, so it survives an `awaiting_input` pause, a `sleeping` wait, a background worker drive and a crash redrive. It is **write-only**: a run is a record every principal who may read runs can read, and a credential in it is not theirs to see, so it is never returned on one. It also does not outlive the run: reaching a terminal status (`completed`, `failed`, `cancelled` or `expired`) clears it. A key that is not a valid HTTP header name, or two keys that map to the same header, are rejected with `400 INVALID_TOOL_CONTEXT_KEY` and no run is created.\n\nThe reserved identity keys (`session_id`, `actor_id`, `actor_external_id`) are stripped at generation time — a caller cannot address them from here.",
18833
18850
  "required": false,
18834
18851
  "type": "object",
18835
18852
  "in": "body"
@@ -18850,7 +18867,7 @@ const routes = {
18850
18867
  },
18851
18868
  {
18852
18869
  "name": "wait",
18853
- "description": "When true, block until the run reaches a terminal (succeeded/failed) or awaiting_input state and return the settled run. When false (default), return immediately with status \"queued\" and execute the run in the background.",
18870
+ "description": "When true, block until the run reaches a terminal (completed/failed) or awaiting_input state and return the settled run. When false (default), return immediately with status \"queued\" and execute the run in the background.",
18854
18871
  "required": false,
18855
18872
  "type": "boolean",
18856
18873
  "in": "body"
@@ -19458,9 +19475,9 @@ const routes = {
19458
19475
  },
19459
19476
  {
19460
19477
  "name": "automation_status",
19461
- "description": "Only the cases in this automation status",
19478
+ "description": "Only the cases in these automation statuses. Repeat the parameter to OR values. A value outside the enum, empty string included, is a `400`.",
19462
19479
  "required": false,
19463
- "type": "string",
19480
+ "type": "array",
19464
19481
  "in": "query"
19465
19482
  },
19466
19483
  {
@@ -19571,11 +19588,11 @@ const routes = {
19571
19588
  "get-playbook-case-missing": {
19572
19589
  serviceClass: "Playbooks",
19573
19590
  operationId: "getPlaybookCaseMissing",
19574
- description: "Returns the manual inputs still unset, or refused by their schema, before `node` can be reached, grouped in waves: nothing in a later wave can run before the earlier ones are filled.",
19591
+ description: "Returns the manual inputs still unset, or refused by their schema, before `node_id` can be reached, grouped in waves: nothing in a later wave can run before the earlier ones are filled.",
19575
19592
  moduleDocsUrl: "https://naturali.ai/docs/modules/playbooks",
19576
19593
  httpMethod: "get",
19577
19594
  pathParams: ["project_id", "case_id"],
19578
- queryParams: ["node"],
19595
+ queryParams: ["node_id"],
19579
19596
  headerParams: [],
19580
19597
  cookieParams: [],
19581
19598
  flags: [
@@ -19594,8 +19611,8 @@ const routes = {
19594
19611
  "in": "path"
19595
19612
  },
19596
19613
  {
19597
- "name": "node",
19598
- "description": "The key of the node to reach, usually a final node",
19614
+ "name": "node_id",
19615
+ "description": "The ID of the node to reach, usually a final node",
19599
19616
  "required": true,
19600
19617
  "type": "string",
19601
19618
  "in": "query"
@@ -19610,7 +19627,7 @@ const routes = {
19610
19627
  httpMethod: "get",
19611
19628
  pathParams: ["project_id", "case_id"],
19612
19629
  queryParams: [
19613
- "node",
19630
+ "node_id",
19614
19631
  "limit",
19615
19632
  "offset"
19616
19633
  ],
@@ -19632,7 +19649,7 @@ const routes = {
19632
19649
  "in": "path"
19633
19650
  },
19634
19651
  {
19635
- "name": "node",
19652
+ "name": "node_id",
19636
19653
  "description": "Only the entries of this node",
19637
19654
  "required": false,
19638
19655
  "type": "string",
@@ -19685,7 +19702,7 @@ const routes = {
19685
19702
  },
19686
19703
  {
19687
19704
  "name": "node",
19688
- "description": "The key of a node of the case's playbook version",
19705
+ "description": "The ID of a node of the case's playbook version",
19689
19706
  "required": true,
19690
19707
  "type": "string",
19691
19708
  "in": "path"
@@ -19707,7 +19724,7 @@ const routes = {
19707
19724
  httpMethod: "get",
19708
19725
  pathParams: ["project_id", "case_id"],
19709
19726
  queryParams: [
19710
- "node",
19727
+ "node_id",
19711
19728
  "limit",
19712
19729
  "offset"
19713
19730
  ],
@@ -19729,7 +19746,7 @@ const routes = {
19729
19746
  "in": "path"
19730
19747
  },
19731
19748
  {
19732
- "name": "node",
19749
+ "name": "node_id",
19733
19750
  "description": "Only the executions of this node",
19734
19751
  "required": false,
19735
19752
  "type": "string",
@@ -19792,7 +19809,7 @@ const routes = {
19792
19809
  "export-playbook-case-node": {
19793
19810
  serviceClass: "Playbooks",
19794
19811
  operationId: "exportPlaybookCaseNode",
19795
- description: "Renders one revision of a final node as files, one export per transformation: each transformation's tool is called with the case's `case_id` and `subject`, the `node`, the `revision` and that revision's `output`, and must answer a file (`execute.response_mode: base64`) of its `format`'s content type. The file is kept in the project's files under `/.system/playbooks/`. An export never feeds a node. Without `revision` the node's current output is exported, which needs the node `done` (`409 PLAYBOOK_NODE_NOT_EXPORTABLE`); a `revision` names an earlier output or confirmation of the node. Each tool runs as the author of the case's playbook version, whose permission to call it is checked here (`403 PLAYBOOK_EXECUTOR_FORBIDDEN`). A paused case is `409 PLAYBOOK_CASE_PAUSED`, and a case in a paused project `409 PROJECT_PAUSED`. Without `wait` every export answers `running` and settles in the background; with `wait: true` it answers once each has its file or its error.",
19812
+ description: "Renders one revision of a final node as files, one export per transformation: each transformation's tool is called with the case's `case_id` and `subject`, the `node_id`, the `revision` and that revision's `output`, and must answer a file (`execute.response_mode: base64`) of its `format`'s content type. The file is kept in the project's files under `/.system/playbooks/`. An export never feeds a node. Without `revision` the node's current output is exported, which needs the node `done` (`409 PLAYBOOK_NODE_NOT_EXPORTABLE`); a `revision` names an earlier output or confirmation of the node. Each tool runs as the author of the case's playbook version, whose permission to call it is checked here (`403 PLAYBOOK_EXECUTOR_FORBIDDEN`). A paused case is `409 PLAYBOOK_CASE_PAUSED`, and a case in a paused project `409 PROJECT_PAUSED`. Without `wait` every export answers `running` and settles in the background; with `wait: true` it answers once each has its file or its error.",
19796
19813
  moduleDocsUrl: "https://naturali.ai/docs/modules/playbooks",
19797
19814
  httpMethod: "post",
19798
19815
  pathParams: [
@@ -19820,7 +19837,7 @@ const routes = {
19820
19837
  },
19821
19838
  {
19822
19839
  "name": "node",
19823
- "description": "The key of a node of the case's playbook version",
19840
+ "description": "The ID of a node of the case's playbook version",
19824
19841
  "required": true,
19825
19842
  "type": "string",
19826
19843
  "in": "path"
@@ -19856,7 +19873,7 @@ const routes = {
19856
19873
  httpMethod: "get",
19857
19874
  pathParams: ["project_id", "case_id"],
19858
19875
  queryParams: [
19859
- "node",
19876
+ "node_id",
19860
19877
  "transformation",
19861
19878
  "limit",
19862
19879
  "offset"
@@ -19879,7 +19896,7 @@ const routes = {
19879
19896
  "in": "path"
19880
19897
  },
19881
19898
  {
19882
- "name": "node",
19899
+ "name": "node_id",
19883
19900
  "description": "Only the exports of this node",
19884
19901
  "required": false,
19885
19902
  "type": "string",
@@ -19949,7 +19966,7 @@ const routes = {
19949
19966
  "upgrade-playbook-case": {
19950
19967
  serviceClass: "Playbooks",
19951
19968
  operationId: "upgradePlaybookCase",
19952
- description: "Moves a case to another version of its playbook: the playbook's current version, or the `version` named, an earlier one included. Values carry over by node key, and every node's state is read against the new version: a node added is open, a node removed leaves the structure while its entries stay, a node whose input reads another field is `stale`, and a value its input's new schema refuses is missing again. The cascade then runs what became runnable. With `wait: true` it answers once every execution queued, and every one those queue, has settled or parked. Each upgrade is recorded with what moved; the version the case is already on records nothing. An execution running is `409 PLAYBOOK_CASE_BUSY`; one queued but not started settles `superseded`. An upgrade made with a credential the case's own work runs as is `403 PLAYBOOK_SELF_WRITE`.",
19969
+ description: "Moves a case to another version of its playbook: the playbook's current version, or the `version` named, an earlier one included. Values carry over by node ID, and every node's state is read against the new version: a node added is open, a node removed leaves the structure while its entries stay, a node whose input reads another field is `stale`, and a value its input's new schema refuses is missing again. The cascade then runs what became runnable. With `wait: true` it answers once every execution queued, and every one those queue, has settled or parked. Each upgrade is recorded with what moved; the version the case is already on records nothing. An execution running is `409 PLAYBOOK_CASE_BUSY`; one queued but not started settles `superseded`. An upgrade made with a credential the case's own work runs as is `403 PLAYBOOK_SELF_WRITE`.",
19953
19970
  moduleDocsUrl: "https://naturali.ai/docs/modules/playbooks",
19954
19971
  httpMethod: "post",
19955
19972
  pathParams: ["project_id", "case_id"],
@@ -20107,7 +20124,7 @@ const routes = {
20107
20124
  },
20108
20125
  {
20109
20126
  "name": "node",
20110
- "description": "The key of a node of the case's playbook version",
20127
+ "description": "The ID of a node of the case's playbook version",
20111
20128
  "required": true,
20112
20129
  "type": "string",
20113
20130
  "in": "path"
@@ -21072,7 +21089,7 @@ const routes = {
21072
21089
  },
21073
21090
  {
21074
21091
  "name": "mode",
21075
- "description": "enforce blocks with 429 (requests at the middleware, tokens/cost_usd at the pre-generation check); monitor observes without blocking — a breach fires the quota.exceeded webhook and writes a quotas:MonitorBreach audit entry, but the request is let through.",
21092
+ "description": "enforce blocks with 429 (requests at the middleware, tokens/cost_usd at the pre-generation check); monitor observes without blocking — a breach fires the quotas.exceeded webhook and writes a quotas:MonitorBreach audit entry, but the request is let through.",
21076
21093
  "required": false,
21077
21094
  "type": "string",
21078
21095
  "in": "body"
@@ -21397,9 +21414,9 @@ const routes = {
21397
21414
  },
21398
21415
  {
21399
21416
  "name": "status",
21400
- "description": "Filter by session status (open, closed, or expired)",
21417
+ "description": "Filter by session status. Repeat the parameter to OR values. A value outside the enum, empty string included, is a `400`.",
21401
21418
  "required": false,
21402
- "type": "string",
21419
+ "type": "array",
21403
21420
  "in": "query"
21404
21421
  },
21405
21422
  {
@@ -21635,7 +21652,7 @@ const routes = {
21635
21652
  "add-session-message": {
21636
21653
  serviceClass: "Sessions",
21637
21654
  operationId: "addSessionMessage",
21638
- description: "Saves a user message to the session. When autoGenerate is enabled on the session and no generation is currently in progress, generation is triggered automatically and the response mirrors GenerateSessionResponse. Otherwise returns the saved user message.",
21655
+ description: "Saves a user message to the session. When `auto_generate` is enabled on the session and no generation is currently in progress, generation is triggered automatically and the response is the generated turn, the same body `?wait=true` generate answers. Otherwise returns the saved user message.",
21639
21656
  moduleDocsUrl: "https://naturali.ai/docs/modules/sessions",
21640
21657
  httpMethod: "post",
21641
21658
  pathParams: ["project_id", "session_id"],
@@ -22020,9 +22037,9 @@ const routes = {
22020
22037
  },
22021
22038
  {
22022
22039
  "name": "status",
22023
- "description": "",
22040
+ "description": "Filter by whether the task is open or closed. Repeat the parameter to OR values. A value outside the enum, empty string included, is a `400`.",
22024
22041
  "required": false,
22025
- "type": "string",
22042
+ "type": "array",
22026
22043
  "in": "query"
22027
22044
  },
22028
22045
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naturali/cli",
3
- "version": "0.202.0",
3
+ "version": "0.203.0",
4
4
  "description": "Command-line interface for the naturali.ai API, generated from its OpenAPI specs",
5
5
  "keywords": [
6
6
  "naturali",
@@ -31,7 +31,7 @@
31
31
  "yaml": "^2.9.1"
32
32
  },
33
33
  "devDependencies": {
34
- "@naturali/sdk": "0.202.0",
34
+ "@naturali/sdk": "0.203.0",
35
35
  "@ttoss/openapi-codegen": "^0.5.0",
36
36
  "@types/node": "^26.5.1",
37
37
  "tsdown": "^0.23.0",