@naturali/cli 0.218.1 → 0.219.1
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 +31 -25
- 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.1";
|
|
21
21
|
//#endregion
|
|
22
22
|
//#region ../sdk/src/generated/core/bodySerializer.gen.ts
|
|
23
23
|
const serializeFormDataPair = (data, key, value) => {
|
|
@@ -1286,7 +1286,7 @@ var Agents = class {
|
|
|
1286
1286
|
/**
|
|
1287
1287
|
* Create an agent
|
|
1288
1288
|
*
|
|
1289
|
-
* Creates a new agent bound to an AI provider.
|
|
1289
|
+
* Creates a new agent bound to an AI provider. A `{{secret:...}}` reference in an inline `tool_bindings[].tool` also needs `secrets:UseSecret` on that secret, else `403`.
|
|
1290
1290
|
*/
|
|
1291
1291
|
static createAgent(options) {
|
|
1292
1292
|
return (options.client ?? client).post({
|
|
@@ -1325,7 +1325,7 @@ var Agents = class {
|
|
|
1325
1325
|
/**
|
|
1326
1326
|
* Partially update an agent
|
|
1327
1327
|
*
|
|
1328
|
-
* Partially updates an existing agent. Identical to PUT — both perform partial updates.
|
|
1328
|
+
* Partially updates an existing agent. Identical to PUT — both perform partial updates. A `{{secret:...}}` reference in an inline `tool_bindings[].tool` also needs `secrets:UseSecret` on that secret, else `403`.
|
|
1329
1329
|
*/
|
|
1330
1330
|
static patchAgent(options) {
|
|
1331
1331
|
return (options.client ?? client).patch({
|
|
@@ -1340,7 +1340,7 @@ var Agents = class {
|
|
|
1340
1340
|
/**
|
|
1341
1341
|
* Update an agent
|
|
1342
1342
|
*
|
|
1343
|
-
* Updates an existing agent. Identical to PATCH — both perform partial updates.
|
|
1343
|
+
* Updates an existing agent. Identical to PATCH — both perform partial updates. A `{{secret:...}}` reference in an inline `tool_bindings[].tool` also needs `secrets:UseSecret` on that secret, else `403`.
|
|
1344
1344
|
*/
|
|
1345
1345
|
static updateAgent(options) {
|
|
1346
1346
|
return (options.client ?? client).put({
|
|
@@ -1494,8 +1494,14 @@ 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 record with both `base_url` and `secret_id` sends the secret to that
|
|
1501
|
+
* URL, so creating one also needs `secrets:UseSecret` on the secret, else
|
|
1502
|
+
* `403`.
|
|
1503
|
+
*
|
|
1504
|
+
* A `bedrock` or `vertex` record must link one. Without it the provider
|
|
1499
1505
|
* SDK signs with the server's own credentials (the AWS default credential
|
|
1500
1506
|
* chain, Google Application Default Credentials), which is refused with
|
|
1501
1507
|
* `400 VALIDATION_FAILED` unless the deployment allows it.
|
|
@@ -1539,7 +1545,7 @@ var AiProviders = class {
|
|
|
1539
1545
|
/**
|
|
1540
1546
|
* Update an AI provider
|
|
1541
1547
|
*
|
|
1542
|
-
* Updates an AI provider configuration
|
|
1548
|
+
* Updates an AI provider configuration. Setting `base_url` or `secret_id` so the record holds both also needs `secrets:UseSecret` on the secret, else `403`.
|
|
1543
1549
|
*/
|
|
1544
1550
|
static updateAiProvider(options) {
|
|
1545
1551
|
return (options.client ?? client).patch({
|
|
@@ -4565,7 +4571,7 @@ var Playbooks = class {
|
|
|
4565
4571
|
*
|
|
4566
4572
|
* 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
4573
|
*
|
|
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.
|
|
4574
|
+
* 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
4575
|
*/
|
|
4570
4576
|
static createPlaybook(options) {
|
|
4571
4577
|
return (options.client ?? client).post({
|
|
@@ -4582,7 +4588,7 @@ var Playbooks = class {
|
|
|
4582
4588
|
*
|
|
4583
4589
|
* 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
4590
|
*
|
|
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.
|
|
4591
|
+
* 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
4592
|
*/
|
|
4587
4593
|
static validatePlaybook(options) {
|
|
4588
4594
|
return (options.client ?? client).post({
|
|
@@ -4621,7 +4627,7 @@ var Playbooks = class {
|
|
|
4621
4627
|
*
|
|
4622
4628
|
* 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
4629
|
*
|
|
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.
|
|
4630
|
+
* 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
4631
|
*/
|
|
4626
4632
|
static updatePlaybook(options) {
|
|
4627
4633
|
return (options.client ?? client).patch({
|
|
@@ -5867,7 +5873,7 @@ var Triggers = class {
|
|
|
5867
5873
|
/**
|
|
5868
5874
|
* Create a trigger
|
|
5869
5875
|
*
|
|
5870
|
-
* Creates a new trigger for a project
|
|
5876
|
+
* Creates a new trigger for a project. A `{{secret:...}}` reference in `tool_context` also needs `secrets:UseSecret` on that secret, else `403`.
|
|
5871
5877
|
*/
|
|
5872
5878
|
static createTrigger(options) {
|
|
5873
5879
|
return (options.client ?? client).post({
|
|
@@ -5915,7 +5921,7 @@ var Triggers = class {
|
|
|
5915
5921
|
/**
|
|
5916
5922
|
* Update a trigger
|
|
5917
5923
|
*
|
|
5918
|
-
* Updates an existing trigger's configuration. The type is immutable. Changing `target_type` or `target_id` re-checks that the caller may start the resulting target, because a firing runs with the trigger creator's authority rather than the updater's. A caller who could not start the new target is answered `403` and the trigger keeps the target it had.
|
|
5924
|
+
* Updates an existing trigger's configuration. The type is immutable. Changing `target_type` or `target_id` re-checks that the caller may start the resulting target, because a firing runs with the trigger creator's authority rather than the updater's. A caller who could not start the new target is answered `403` and the trigger keeps the target it had. A `{{secret:...}}` reference in a written `tool_context`, or in the stored one when the target changes, also needs `secrets:UseSecret` on that secret, else `403`.
|
|
5919
5925
|
*
|
|
5920
5926
|
*/
|
|
5921
5927
|
static updateTrigger(options) {
|
|
@@ -8439,7 +8445,7 @@ const routes = {
|
|
|
8439
8445
|
"create-agent": {
|
|
8440
8446
|
serviceClass: "Agents",
|
|
8441
8447
|
operationId: "createAgent",
|
|
8442
|
-
description: "Creates a new agent bound to an AI provider.",
|
|
8448
|
+
description: "Creates a new agent bound to an AI provider. A `{{secret:...}}` reference in an inline `tool_bindings[].tool` also needs `secrets:UseSecret` on that secret, else `403`.",
|
|
8443
8449
|
moduleDocsUrl: "https://naturali.ai/docs/modules/agents",
|
|
8444
8450
|
httpMethod: "post",
|
|
8445
8451
|
pathParams: ["project_id"],
|
|
@@ -8651,7 +8657,7 @@ const routes = {
|
|
|
8651
8657
|
"update-agent": {
|
|
8652
8658
|
serviceClass: "Agents",
|
|
8653
8659
|
operationId: "updateAgent",
|
|
8654
|
-
description: "Updates an existing agent. Identical to PATCH — both perform partial updates.",
|
|
8660
|
+
description: "Updates an existing agent. Identical to PATCH — both perform partial updates. A `{{secret:...}}` reference in an inline `tool_bindings[].tool` also needs `secrets:UseSecret` on that secret, else `403`.",
|
|
8655
8661
|
moduleDocsUrl: "https://naturali.ai/docs/modules/agents",
|
|
8656
8662
|
httpMethod: "put",
|
|
8657
8663
|
pathParams: ["project_id", "agent_id"],
|
|
@@ -8860,7 +8866,7 @@ const routes = {
|
|
|
8860
8866
|
"patch-agent": {
|
|
8861
8867
|
serviceClass: "Agents",
|
|
8862
8868
|
operationId: "patchAgent",
|
|
8863
|
-
description: "Partially updates an existing agent. Identical to PUT — both perform partial updates.",
|
|
8869
|
+
description: "Partially updates an existing agent. Identical to PUT — both perform partial updates. A `{{secret:...}}` reference in an inline `tool_bindings[].tool` also needs `secrets:UseSecret` on that secret, else `403`.",
|
|
8864
8870
|
moduleDocsUrl: "https://naturali.ai/docs/modules/agents",
|
|
8865
8871
|
httpMethod: "patch",
|
|
8866
8872
|
pathParams: ["project_id", "agent_id"],
|
|
@@ -9534,7 +9540,7 @@ const routes = {
|
|
|
9534
9540
|
"create-ai-provider": {
|
|
9535
9541
|
serviceClass: "AIProviders",
|
|
9536
9542
|
operationId: "createAiProvider",
|
|
9537
|
-
description: "Creates a new LLM provider configuration. A
|
|
9543
|
+
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 record with both `base_url` and `secret_id` sends the secret to that URL, so creating one also needs `secrets:UseSecret` on the secret, else `403`. 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
9544
|
moduleDocsUrl: "https://naturali.ai/docs/modules/ai-providers",
|
|
9539
9545
|
httpMethod: "post",
|
|
9540
9546
|
pathParams: ["project_id"],
|
|
@@ -9572,7 +9578,7 @@ const routes = {
|
|
|
9572
9578
|
},
|
|
9573
9579
|
{
|
|
9574
9580
|
"name": "secret_id",
|
|
9575
|
-
"description": "Secret ID containing API credentials. Required for `bedrock` and `vertex
|
|
9581
|
+
"description": "Secret ID containing API credentials. Required for `bedrock` and `vertex`.",
|
|
9576
9582
|
"required": false,
|
|
9577
9583
|
"type": "string",
|
|
9578
9584
|
"in": "body"
|
|
@@ -9586,7 +9592,7 @@ const routes = {
|
|
|
9586
9592
|
},
|
|
9587
9593
|
{
|
|
9588
9594
|
"name": "config",
|
|
9589
|
-
"description": "Additional provider-specific configuration. `
|
|
9595
|
+
"description": "Additional provider-specific configuration. `apiKey` is refused: the credential goes in the linked secret.",
|
|
9590
9596
|
"required": false,
|
|
9591
9597
|
"type": "object",
|
|
9592
9598
|
"in": "body"
|
|
@@ -9620,7 +9626,7 @@ const routes = {
|
|
|
9620
9626
|
"update-ai-provider": {
|
|
9621
9627
|
serviceClass: "AIProviders",
|
|
9622
9628
|
operationId: "updateAiProvider",
|
|
9623
|
-
description: "Updates an AI provider configuration",
|
|
9629
|
+
description: "Updates an AI provider configuration. Setting `base_url` or `secret_id` so the record holds both also needs `secrets:UseSecret` on the secret, else `403`.",
|
|
9624
9630
|
moduleDocsUrl: "https://naturali.ai/docs/modules/ai-providers",
|
|
9625
9631
|
httpMethod: "patch",
|
|
9626
9632
|
pathParams: ["project_id", "ai_provider_id"],
|
|
@@ -9679,7 +9685,7 @@ const routes = {
|
|
|
9679
9685
|
},
|
|
9680
9686
|
{
|
|
9681
9687
|
"name": "config",
|
|
9682
|
-
"description": "Replaces the whole configuration
|
|
9688
|
+
"description": "Replaces the whole configuration. `apiKey` is refused: the credential goes in the linked secret.",
|
|
9683
9689
|
"required": false,
|
|
9684
9690
|
"type": "object",
|
|
9685
9691
|
"in": "body"
|
|
@@ -19289,7 +19295,7 @@ const routes = {
|
|
|
19289
19295
|
"create-playbook": {
|
|
19290
19296
|
serviceClass: "Playbooks",
|
|
19291
19297
|
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.",
|
|
19298
|
+
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
19299
|
moduleDocsUrl: "https://naturali.ai/docs/modules/playbooks",
|
|
19294
19300
|
httpMethod: "post",
|
|
19295
19301
|
pathParams: ["project_id"],
|
|
@@ -19337,7 +19343,7 @@ const routes = {
|
|
|
19337
19343
|
"validate-playbook": {
|
|
19338
19344
|
serviceClass: "Playbooks",
|
|
19339
19345
|
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.",
|
|
19346
|
+
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
19347
|
moduleDocsUrl: "https://naturali.ai/docs/modules/playbooks",
|
|
19342
19348
|
httpMethod: "post",
|
|
19343
19349
|
pathParams: ["project_id"],
|
|
@@ -19395,7 +19401,7 @@ const routes = {
|
|
|
19395
19401
|
"update-playbook": {
|
|
19396
19402
|
serviceClass: "Playbooks",
|
|
19397
19403
|
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.",
|
|
19404
|
+
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
19405
|
moduleDocsUrl: "https://naturali.ai/docs/modules/playbooks",
|
|
19400
19406
|
httpMethod: "patch",
|
|
19401
19407
|
pathParams: ["project_id", "playbook_id"],
|
|
@@ -23419,7 +23425,7 @@ const routes = {
|
|
|
23419
23425
|
"create-trigger": {
|
|
23420
23426
|
serviceClass: "Triggers",
|
|
23421
23427
|
operationId: "createTrigger",
|
|
23422
|
-
description: "Creates a new trigger for a project",
|
|
23428
|
+
description: "Creates a new trigger for a project. A `{{secret:...}}` reference in `tool_context` also needs `secrets:UseSecret` on that secret, else `403`.",
|
|
23423
23429
|
moduleDocsUrl: "https://naturali.ai/docs/modules/triggers",
|
|
23424
23430
|
httpMethod: "post",
|
|
23425
23431
|
pathParams: ["project_id"],
|
|
@@ -23581,7 +23587,7 @@ const routes = {
|
|
|
23581
23587
|
"update-trigger": {
|
|
23582
23588
|
serviceClass: "Triggers",
|
|
23583
23589
|
operationId: "updateTrigger",
|
|
23584
|
-
description: "Updates an existing trigger's configuration. The type is immutable. Changing `target_type` or `target_id` re-checks that the caller may start the resulting target, because a firing runs with the trigger creator's authority rather than the updater's. A caller who could not start the new target is answered `403` and the trigger keeps the target it had.",
|
|
23590
|
+
description: "Updates an existing trigger's configuration. The type is immutable. Changing `target_type` or `target_id` re-checks that the caller may start the resulting target, because a firing runs with the trigger creator's authority rather than the updater's. A caller who could not start the new target is answered `403` and the trigger keeps the target it had. A `{{secret:...}}` reference in a written `tool_context`, or in the stored one when the target changes, also needs `secrets:UseSecret` on that secret, else `403`.",
|
|
23585
23591
|
moduleDocsUrl: "https://naturali.ai/docs/modules/triggers",
|
|
23586
23592
|
httpMethod: "patch",
|
|
23587
23593
|
pathParams: ["project_id", "trigger_id"],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@naturali/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.219.1",
|
|
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.1",
|
|
35
35
|
"@ttoss/openapi-codegen": "^0.10.0",
|
|
36
36
|
"@types/node": "^26.5.1",
|
|
37
37
|
"tsdown": "^0.23.0",
|