@naturali/cli 0.208.5 → 0.208.7
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 +38 -17
- package/package.json +2 -2
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.208.
|
|
20
|
+
var version = "0.208.7";
|
|
21
21
|
//#endregion
|
|
22
22
|
//#region ../sdk/src/generated/core/bodySerializer.gen.ts
|
|
23
23
|
const serializeFormDataPair = (data, key, value) => {
|
|
@@ -4562,6 +4562,8 @@ var Playbooks = class {
|
|
|
4562
4562
|
* Validate a playbook definition
|
|
4563
4563
|
*
|
|
4564
4564
|
* Answers what a create or update would be told about a definition, without writing: `valid`, and every graph problem it holds. A definition whose shape cannot be read is `400 VALIDATION_FAILED`, as on a write.
|
|
4565
|
+
*
|
|
4566
|
+
* With `project_id`, the upstreams are also read against that project's playbooks, as a write there would read them, and the caller needs both `playbooks:ValidatePlaybook` and `playbooks:ListPlaybooks` on the project. Without it, only the definition's own graph is checked.
|
|
4565
4567
|
*/
|
|
4566
4568
|
static validatePlaybook(options) {
|
|
4567
4569
|
return (options.client ?? client).post({
|
|
@@ -4823,6 +4825,8 @@ var Playbooks = class {
|
|
|
4823
4825
|
*
|
|
4824
4826
|
* 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.
|
|
4825
4827
|
*
|
|
4828
|
+
* The case's upstream bindings follow the target version: a name it declares on the same playbook keeps its case, any other binding is dropped, and each name it declares that the case does not bind is bound from `upstreams`, by the rules of create. A declared name left unbound is `400 PLAYBOOK_CASE_UPSTREAM_INVALID` and moves nothing.
|
|
4829
|
+
*
|
|
4826
4830
|
* 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, or that of a case reading it as an upstream, runs as is `403 PLAYBOOK_SELF_WRITE`.
|
|
4827
4831
|
*/
|
|
4828
4832
|
static upgradePlaybookCase(options) {
|
|
@@ -19255,26 +19259,36 @@ const routes = {
|
|
|
19255
19259
|
"validate-playbook": {
|
|
19256
19260
|
serviceClass: "Playbooks",
|
|
19257
19261
|
operationId: "validatePlaybook",
|
|
19258
|
-
description: "Answers what a create or update would be told about a definition, without writing: `valid`, and every graph problem it holds. A definition whose shape cannot be read is `400 VALIDATION_FAILED`, as on a write.",
|
|
19262
|
+
description: "Answers what a create or update would be told about a definition, without writing: `valid`, and every graph problem it holds. A definition whose shape cannot be read is `400 VALIDATION_FAILED`, as on a write. With `project_id`, the upstreams are also read against that project's playbooks, as a write there would read them, and the caller needs both `playbooks:ValidatePlaybook` and `playbooks:ListPlaybooks` on the project. Without it, only the definition's own graph is checked.",
|
|
19259
19263
|
moduleDocsUrl: "https://naturali.ai/docs/modules/playbooks",
|
|
19260
19264
|
httpMethod: "post",
|
|
19261
19265
|
pathParams: ["project_id"],
|
|
19262
19266
|
queryParams: [],
|
|
19263
19267
|
headerParams: [],
|
|
19264
19268
|
cookieParams: [],
|
|
19265
|
-
flags: [
|
|
19266
|
-
|
|
19267
|
-
|
|
19268
|
-
|
|
19269
|
-
|
|
19270
|
-
|
|
19271
|
-
|
|
19272
|
-
|
|
19273
|
-
|
|
19274
|
-
|
|
19275
|
-
|
|
19276
|
-
|
|
19277
|
-
|
|
19269
|
+
flags: [
|
|
19270
|
+
{
|
|
19271
|
+
"name": "project_id",
|
|
19272
|
+
"description": "Project public ID (proj_ prefix).",
|
|
19273
|
+
"required": true,
|
|
19274
|
+
"type": "string",
|
|
19275
|
+
"in": "path"
|
|
19276
|
+
},
|
|
19277
|
+
{
|
|
19278
|
+
"name": "playbook_id",
|
|
19279
|
+
"description": "The playbook the definition would update, so an upstream reading it back is `UPSTREAM_CYCLE`. Requires `project_id`.",
|
|
19280
|
+
"required": false,
|
|
19281
|
+
"type": "string",
|
|
19282
|
+
"in": "body"
|
|
19283
|
+
},
|
|
19284
|
+
{
|
|
19285
|
+
"name": "definition",
|
|
19286
|
+
"description": "The definition to check",
|
|
19287
|
+
"required": true,
|
|
19288
|
+
"type": "object",
|
|
19289
|
+
"in": "body"
|
|
19290
|
+
}
|
|
19291
|
+
]
|
|
19278
19292
|
},
|
|
19279
19293
|
"get-playbook": {
|
|
19280
19294
|
serviceClass: "Playbooks",
|
|
@@ -19558,7 +19572,7 @@ const routes = {
|
|
|
19558
19572
|
},
|
|
19559
19573
|
{
|
|
19560
19574
|
"name": "upstreams",
|
|
19561
|
-
"description": "The case bound to each of the playbook's declared `upstreams`, by name: every declared name and no other, each a case of the declared playbook.
|
|
19575
|
+
"description": "The case bound to each of the playbook's declared `upstreams`, by name: every declared name and no other, each a case of the declared playbook. Bound at create and fitted to the version at each upgrade; empty when the version declares none.",
|
|
19562
19576
|
"required": false,
|
|
19563
19577
|
"type": "object",
|
|
19564
19578
|
"in": "body"
|
|
@@ -20190,7 +20204,7 @@ const routes = {
|
|
|
20190
20204
|
"upgrade-playbook-case": {
|
|
20191
20205
|
serviceClass: "Playbooks",
|
|
20192
20206
|
operationId: "upgradePlaybookCase",
|
|
20193
|
-
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, or that of a case reading it as an upstream, runs as is `403 PLAYBOOK_SELF_WRITE`.",
|
|
20207
|
+
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. The case's upstream bindings follow the target version: a name it declares on the same playbook keeps its case, any other binding is dropped, and each name it declares that the case does not bind is bound from `upstreams`, by the rules of create. A declared name left unbound is `400 PLAYBOOK_CASE_UPSTREAM_INVALID` and moves 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, or that of a case reading it as an upstream, runs as is `403 PLAYBOOK_SELF_WRITE`.",
|
|
20194
20208
|
moduleDocsUrl: "https://naturali.ai/docs/modules/playbooks",
|
|
20195
20209
|
httpMethod: "post",
|
|
20196
20210
|
pathParams: ["project_id", "case_id"],
|
|
@@ -20226,6 +20240,13 @@ const routes = {
|
|
|
20226
20240
|
"type": "integer",
|
|
20227
20241
|
"in": "body"
|
|
20228
20242
|
},
|
|
20243
|
+
{
|
|
20244
|
+
"name": "upstreams",
|
|
20245
|
+
"description": "A case for each upstream the target version declares and the case does not bind yet, by name, checked as at create. A binding the target version declares on the same playbook is kept and never named here; every other binding is dropped.",
|
|
20246
|
+
"required": false,
|
|
20247
|
+
"type": "object",
|
|
20248
|
+
"in": "body"
|
|
20249
|
+
},
|
|
20229
20250
|
{
|
|
20230
20251
|
"name": "wait",
|
|
20231
20252
|
"description": "Answer once every execution the write queued, and every one those queue in turn, has settled or parked, instead of right away",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@naturali/cli",
|
|
3
|
-
"version": "0.208.
|
|
3
|
+
"version": "0.208.7",
|
|
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.208.
|
|
34
|
+
"@naturali/sdk": "0.208.7",
|
|
35
35
|
"@ttoss/openapi-codegen": "^0.5.0",
|
|
36
36
|
"@types/node": "^26.5.1",
|
|
37
37
|
"tsdown": "^0.23.0",
|