@naturali/cli 0.218.0 → 0.219.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 +15 -13
- 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.
|
|
20
|
+
var version = "0.219.0";
|
|
21
21
|
//#endregion
|
|
22
22
|
//#region ../sdk/src/generated/core/bodySerializer.gen.ts
|
|
23
23
|
const serializeFormDataPair = (data, key, value) => {
|
|
@@ -1494,8 +1494,10 @@ var AiProviders = class {
|
|
|
1494
1494
|
*
|
|
1495
1495
|
* Creates a new LLM provider configuration.
|
|
1496
1496
|
*
|
|
1497
|
-
* A
|
|
1498
|
-
*
|
|
1497
|
+
* A provider's credential is its linked `secret_id`; `config.apiKey` is
|
|
1498
|
+
* refused with `400 VALIDATION_FAILED`.
|
|
1499
|
+
*
|
|
1500
|
+
* A `bedrock` or `vertex` record must link one. Without it the provider
|
|
1499
1501
|
* SDK signs with the server's own credentials (the AWS default credential
|
|
1500
1502
|
* chain, Google Application Default Credentials), which is refused with
|
|
1501
1503
|
* `400 VALIDATION_FAILED` unless the deployment allows it.
|
|
@@ -4565,7 +4567,7 @@ var Playbooks = class {
|
|
|
4565
4567
|
*
|
|
4566
4568
|
* Creates a playbook at version 1. The definition is refused with `400 PLAYBOOK_VALIDATION_FAILED` when it holds a duplicate node or input, an input reading a missing node or field, an `execute` node without an executor or another kind with one, transformations on a non-final node, or a cycle; `meta.problems` lists every one. A duplicate `name` in the project is `409 NAME_CONFLICT`.
|
|
4567
4569
|
*
|
|
4568
|
-
* The caller becomes the version's author, whom its executors run as, so it must be allowed to start every executor the definition names (`403 PLAYBOOK_EXECUTOR_FORBIDDEN`), and each must exist in the project, or be an agent or tool shared with it (`400 PLAYBOOK_VALIDATION_FAILED`, an `EXECUTOR_NOT_FOUND` problem). A `tool` executor on an `mcp` tool must name in `operation_id` an action the tool's binding allows (`EXECUTOR_ACTION_REQUIRED`, `EXECUTOR_ACTION_UNAVAILABLE`). A definition with executors written with a trigger or OAuth token is `409 PLAYBOOK_AUTHOR_UNAVAILABLE`: those carry their boundary in the token, so no run can act as them.
|
|
4570
|
+
* The caller becomes the version's author, whom its executors run as, so it must be allowed to start every executor the definition names (`403 PLAYBOOK_EXECUTOR_FORBIDDEN`), and each must exist in the project, or be an agent or tool shared with it (`400 PLAYBOOK_VALIDATION_FAILED`, an `EXECUTOR_NOT_FOUND` problem). A `tool` executor on an `mcp` tool must name in `operation_id` an action the tool's binding allows (`EXECUTOR_ACTION_REQUIRED`, `EXECUTOR_ACTION_UNAVAILABLE`). An executor cannot be a `client` tool (`EXECUTOR_TOOL_UNSUPPORTED`), nor a transformation's tool a `client` or `mcp` tool (`TRANSFORMATION_TOOL_UNSUPPORTED`). A definition with executors written with a trigger or OAuth token is `409 PLAYBOOK_AUTHOR_UNAVAILABLE`: those carry their boundary in the token, so no run can act as them.
|
|
4569
4571
|
*/
|
|
4570
4572
|
static createPlaybook(options) {
|
|
4571
4573
|
return (options.client ?? client).post({
|
|
@@ -4582,7 +4584,7 @@ var Playbooks = class {
|
|
|
4582
4584
|
*
|
|
4583
4585
|
* 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.
|
|
4584
4586
|
*
|
|
4585
|
-
* With `project_id`, the references are checked too, as a write there would check them: the upstreams against that project's playbooks, and each executor the caller may start must exist (`EXECUTOR_NOT_FOUND`) and name an action its `mcp` tool allows (`EXECUTOR_ACTION_REQUIRED`, `EXECUTOR_ACTION_UNAVAILABLE`). The caller needs both `playbooks:ValidatePlaybook` and `playbooks:ListPlaybooks` on the project. Without it, only the definition's own graph is checked.
|
|
4587
|
+
* With `project_id`, the references are checked too, as a write there would check them: the upstreams against that project's playbooks, and each executor the caller may start must exist (`EXECUTOR_NOT_FOUND`) and name an action its `mcp` tool allows (`EXECUTOR_ACTION_REQUIRED`, `EXECUTOR_ACTION_UNAVAILABLE`) and not be a `client` tool (`EXECUTOR_TOOL_UNSUPPORTED`), and each transformation's tool must not be a `client` or `mcp` tool (`TRANSFORMATION_TOOL_UNSUPPORTED`). The caller needs both `playbooks:ValidatePlaybook` and `playbooks:ListPlaybooks` on the project. Without it, only the definition's own graph is checked.
|
|
4586
4588
|
*/
|
|
4587
4589
|
static validatePlaybook(options) {
|
|
4588
4590
|
return (options.client ?? client).post({
|
|
@@ -4621,7 +4623,7 @@ var Playbooks = class {
|
|
|
4621
4623
|
*
|
|
4622
4624
|
* Updates any of `name`, `description` and `definition`. Only a change to `definition` archives a new version; a rename or a rewrite of the definition the playbook already holds leaves `version` where it is. A case keeps the version it was created on.
|
|
4623
4625
|
*
|
|
4624
|
-
* A new version is authored by the caller, checked as on create: `403 PLAYBOOK_EXECUTOR_FORBIDDEN` for an executor it may not start, an `EXECUTOR_NOT_FOUND` problem for one that does not exist, `EXECUTOR_ACTION_REQUIRED` or `EXECUTOR_ACTION_UNAVAILABLE` for an `mcp` tool action a run could not call, `409 PLAYBOOK_AUTHOR_UNAVAILABLE` for a trigger or OAuth token.
|
|
4626
|
+
* A new version is authored by the caller, checked as on create: `403 PLAYBOOK_EXECUTOR_FORBIDDEN` for an executor it may not start, an `EXECUTOR_NOT_FOUND` problem for one that does not exist, `EXECUTOR_ACTION_REQUIRED` or `EXECUTOR_ACTION_UNAVAILABLE` for an `mcp` tool action a run could not call, `EXECUTOR_TOOL_UNSUPPORTED` for a `client` tool executor, `TRANSFORMATION_TOOL_UNSUPPORTED` for a `client` or `mcp` transformation tool, `409 PLAYBOOK_AUTHOR_UNAVAILABLE` for a trigger or OAuth token.
|
|
4625
4627
|
*/
|
|
4626
4628
|
static updatePlaybook(options) {
|
|
4627
4629
|
return (options.client ?? client).patch({
|
|
@@ -9534,7 +9536,7 @@ const routes = {
|
|
|
9534
9536
|
"create-ai-provider": {
|
|
9535
9537
|
serviceClass: "AIProviders",
|
|
9536
9538
|
operationId: "createAiProvider",
|
|
9537
|
-
description: "Creates a new LLM provider configuration. A
|
|
9539
|
+
description: "Creates a new LLM provider configuration. A provider's credential is its linked `secret_id`; `config.apiKey` is refused with `400 VALIDATION_FAILED`. A `bedrock` or `vertex` record must link one. Without it the provider SDK signs with the server's own credentials (the AWS default credential chain, Google Application Default Credentials), which is refused with `400 VALIDATION_FAILED` unless the deployment allows it.",
|
|
9538
9540
|
moduleDocsUrl: "https://naturali.ai/docs/modules/ai-providers",
|
|
9539
9541
|
httpMethod: "post",
|
|
9540
9542
|
pathParams: ["project_id"],
|
|
@@ -9572,7 +9574,7 @@ const routes = {
|
|
|
9572
9574
|
},
|
|
9573
9575
|
{
|
|
9574
9576
|
"name": "secret_id",
|
|
9575
|
-
"description": "Secret ID containing API credentials. Required for `bedrock` and `vertex
|
|
9577
|
+
"description": "Secret ID containing API credentials. Required for `bedrock` and `vertex`.",
|
|
9576
9578
|
"required": false,
|
|
9577
9579
|
"type": "string",
|
|
9578
9580
|
"in": "body"
|
|
@@ -9586,7 +9588,7 @@ const routes = {
|
|
|
9586
9588
|
},
|
|
9587
9589
|
{
|
|
9588
9590
|
"name": "config",
|
|
9589
|
-
"description": "Additional provider-specific configuration. `
|
|
9591
|
+
"description": "Additional provider-specific configuration. `apiKey` is refused: the credential goes in the linked secret.",
|
|
9590
9592
|
"required": false,
|
|
9591
9593
|
"type": "object",
|
|
9592
9594
|
"in": "body"
|
|
@@ -9679,7 +9681,7 @@ const routes = {
|
|
|
9679
9681
|
},
|
|
9680
9682
|
{
|
|
9681
9683
|
"name": "config",
|
|
9682
|
-
"description": "Replaces the whole configuration
|
|
9684
|
+
"description": "Replaces the whole configuration. `apiKey` is refused: the credential goes in the linked secret.",
|
|
9683
9685
|
"required": false,
|
|
9684
9686
|
"type": "object",
|
|
9685
9687
|
"in": "body"
|
|
@@ -19289,7 +19291,7 @@ const routes = {
|
|
|
19289
19291
|
"create-playbook": {
|
|
19290
19292
|
serviceClass: "Playbooks",
|
|
19291
19293
|
operationId: "createPlaybook",
|
|
19292
|
-
description: "Creates a playbook at version 1. The definition is refused with `400 PLAYBOOK_VALIDATION_FAILED` when it holds a duplicate node or input, an input reading a missing node or field, an `execute` node without an executor or another kind with one, transformations on a non-final node, or a cycle; `meta.problems` lists every one. A duplicate `name` in the project is `409 NAME_CONFLICT`. The caller becomes the version's author, whom its executors run as, so it must be allowed to start every executor the definition names (`403 PLAYBOOK_EXECUTOR_FORBIDDEN`), and each must exist in the project, or be an agent or tool shared with it (`400 PLAYBOOK_VALIDATION_FAILED`, an `EXECUTOR_NOT_FOUND` problem). A `tool` executor on an `mcp` tool must name in `operation_id` an action the tool's binding allows (`EXECUTOR_ACTION_REQUIRED`, `EXECUTOR_ACTION_UNAVAILABLE`). A definition with executors written with a trigger or OAuth token is `409 PLAYBOOK_AUTHOR_UNAVAILABLE`: those carry their boundary in the token, so no run can act as them.",
|
|
19294
|
+
description: "Creates a playbook at version 1. The definition is refused with `400 PLAYBOOK_VALIDATION_FAILED` when it holds a duplicate node or input, an input reading a missing node or field, an `execute` node without an executor or another kind with one, transformations on a non-final node, or a cycle; `meta.problems` lists every one. A duplicate `name` in the project is `409 NAME_CONFLICT`. The caller becomes the version's author, whom its executors run as, so it must be allowed to start every executor the definition names (`403 PLAYBOOK_EXECUTOR_FORBIDDEN`), and each must exist in the project, or be an agent or tool shared with it (`400 PLAYBOOK_VALIDATION_FAILED`, an `EXECUTOR_NOT_FOUND` problem). A `tool` executor on an `mcp` tool must name in `operation_id` an action the tool's binding allows (`EXECUTOR_ACTION_REQUIRED`, `EXECUTOR_ACTION_UNAVAILABLE`). An executor cannot be a `client` tool (`EXECUTOR_TOOL_UNSUPPORTED`), nor a transformation's tool a `client` or `mcp` tool (`TRANSFORMATION_TOOL_UNSUPPORTED`). A definition with executors written with a trigger or OAuth token is `409 PLAYBOOK_AUTHOR_UNAVAILABLE`: those carry their boundary in the token, so no run can act as them.",
|
|
19293
19295
|
moduleDocsUrl: "https://naturali.ai/docs/modules/playbooks",
|
|
19294
19296
|
httpMethod: "post",
|
|
19295
19297
|
pathParams: ["project_id"],
|
|
@@ -19337,7 +19339,7 @@ const routes = {
|
|
|
19337
19339
|
"validate-playbook": {
|
|
19338
19340
|
serviceClass: "Playbooks",
|
|
19339
19341
|
operationId: "validatePlaybook",
|
|
19340
|
-
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 references are checked too, as a write there would check them: the upstreams against that project's playbooks, and each executor the caller may start must exist (`EXECUTOR_NOT_FOUND`) and name an action its `mcp` tool allows (`EXECUTOR_ACTION_REQUIRED`, `EXECUTOR_ACTION_UNAVAILABLE`). The caller needs both `playbooks:ValidatePlaybook` and `playbooks:ListPlaybooks` on the project. Without it, only the definition's own graph is checked.",
|
|
19342
|
+
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 references are checked too, as a write there would check them: the upstreams against that project's playbooks, and each executor the caller may start must exist (`EXECUTOR_NOT_FOUND`) and name an action its `mcp` tool allows (`EXECUTOR_ACTION_REQUIRED`, `EXECUTOR_ACTION_UNAVAILABLE`) and not be a `client` tool (`EXECUTOR_TOOL_UNSUPPORTED`), and each transformation's tool must not be a `client` or `mcp` tool (`TRANSFORMATION_TOOL_UNSUPPORTED`). The caller needs both `playbooks:ValidatePlaybook` and `playbooks:ListPlaybooks` on the project. Without it, only the definition's own graph is checked.",
|
|
19341
19343
|
moduleDocsUrl: "https://naturali.ai/docs/modules/playbooks",
|
|
19342
19344
|
httpMethod: "post",
|
|
19343
19345
|
pathParams: ["project_id"],
|
|
@@ -19395,7 +19397,7 @@ const routes = {
|
|
|
19395
19397
|
"update-playbook": {
|
|
19396
19398
|
serviceClass: "Playbooks",
|
|
19397
19399
|
operationId: "updatePlaybook",
|
|
19398
|
-
description: "Updates any of `name`, `description` and `definition`. Only a change to `definition` archives a new version; a rename or a rewrite of the definition the playbook already holds leaves `version` where it is. A case keeps the version it was created on. A new version is authored by the caller, checked as on create: `403 PLAYBOOK_EXECUTOR_FORBIDDEN` for an executor it may not start, an `EXECUTOR_NOT_FOUND` problem for one that does not exist, `EXECUTOR_ACTION_REQUIRED` or `EXECUTOR_ACTION_UNAVAILABLE` for an `mcp` tool action a run could not call, `409 PLAYBOOK_AUTHOR_UNAVAILABLE` for a trigger or OAuth token.",
|
|
19400
|
+
description: "Updates any of `name`, `description` and `definition`. Only a change to `definition` archives a new version; a rename or a rewrite of the definition the playbook already holds leaves `version` where it is. A case keeps the version it was created on. A new version is authored by the caller, checked as on create: `403 PLAYBOOK_EXECUTOR_FORBIDDEN` for an executor it may not start, an `EXECUTOR_NOT_FOUND` problem for one that does not exist, `EXECUTOR_ACTION_REQUIRED` or `EXECUTOR_ACTION_UNAVAILABLE` for an `mcp` tool action a run could not call, `EXECUTOR_TOOL_UNSUPPORTED` for a `client` tool executor, `TRANSFORMATION_TOOL_UNSUPPORTED` for a `client` or `mcp` transformation tool, `409 PLAYBOOK_AUTHOR_UNAVAILABLE` for a trigger or OAuth token.",
|
|
19399
19401
|
moduleDocsUrl: "https://naturali.ai/docs/modules/playbooks",
|
|
19400
19402
|
httpMethod: "patch",
|
|
19401
19403
|
pathParams: ["project_id", "playbook_id"],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@naturali/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.219.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.
|
|
34
|
+
"@naturali/sdk": "0.219.0",
|
|
35
35
|
"@ttoss/openapi-codegen": "^0.10.0",
|
|
36
36
|
"@types/node": "^26.5.1",
|
|
37
37
|
"tsdown": "^0.23.0",
|