@naturali/cli 0.219.0 → 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 +18 -14
- 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.219.
|
|
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({
|
|
@@ -1497,6 +1497,10 @@ var AiProviders = class {
|
|
|
1497
1497
|
* A provider's credential is its linked `secret_id`; `config.apiKey` is
|
|
1498
1498
|
* refused with `400 VALIDATION_FAILED`.
|
|
1499
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
|
+
*
|
|
1500
1504
|
* A `bedrock` or `vertex` record must link one. Without it the provider
|
|
1501
1505
|
* SDK signs with the server's own credentials (the AWS default credential
|
|
1502
1506
|
* chain, Google Application Default Credentials), which is refused with
|
|
@@ -1541,7 +1545,7 @@ var AiProviders = class {
|
|
|
1541
1545
|
/**
|
|
1542
1546
|
* Update an AI provider
|
|
1543
1547
|
*
|
|
1544
|
-
* 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`.
|
|
1545
1549
|
*/
|
|
1546
1550
|
static updateAiProvider(options) {
|
|
1547
1551
|
return (options.client ?? client).patch({
|
|
@@ -5869,7 +5873,7 @@ var Triggers = class {
|
|
|
5869
5873
|
/**
|
|
5870
5874
|
* Create a trigger
|
|
5871
5875
|
*
|
|
5872
|
-
* 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`.
|
|
5873
5877
|
*/
|
|
5874
5878
|
static createTrigger(options) {
|
|
5875
5879
|
return (options.client ?? client).post({
|
|
@@ -5917,7 +5921,7 @@ var Triggers = class {
|
|
|
5917
5921
|
/**
|
|
5918
5922
|
* Update a trigger
|
|
5919
5923
|
*
|
|
5920
|
-
* 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`.
|
|
5921
5925
|
*
|
|
5922
5926
|
*/
|
|
5923
5927
|
static updateTrigger(options) {
|
|
@@ -8441,7 +8445,7 @@ const routes = {
|
|
|
8441
8445
|
"create-agent": {
|
|
8442
8446
|
serviceClass: "Agents",
|
|
8443
8447
|
operationId: "createAgent",
|
|
8444
|
-
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`.",
|
|
8445
8449
|
moduleDocsUrl: "https://naturali.ai/docs/modules/agents",
|
|
8446
8450
|
httpMethod: "post",
|
|
8447
8451
|
pathParams: ["project_id"],
|
|
@@ -8653,7 +8657,7 @@ const routes = {
|
|
|
8653
8657
|
"update-agent": {
|
|
8654
8658
|
serviceClass: "Agents",
|
|
8655
8659
|
operationId: "updateAgent",
|
|
8656
|
-
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`.",
|
|
8657
8661
|
moduleDocsUrl: "https://naturali.ai/docs/modules/agents",
|
|
8658
8662
|
httpMethod: "put",
|
|
8659
8663
|
pathParams: ["project_id", "agent_id"],
|
|
@@ -8862,7 +8866,7 @@ const routes = {
|
|
|
8862
8866
|
"patch-agent": {
|
|
8863
8867
|
serviceClass: "Agents",
|
|
8864
8868
|
operationId: "patchAgent",
|
|
8865
|
-
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`.",
|
|
8866
8870
|
moduleDocsUrl: "https://naturali.ai/docs/modules/agents",
|
|
8867
8871
|
httpMethod: "patch",
|
|
8868
8872
|
pathParams: ["project_id", "agent_id"],
|
|
@@ -9536,7 +9540,7 @@ const routes = {
|
|
|
9536
9540
|
"create-ai-provider": {
|
|
9537
9541
|
serviceClass: "AIProviders",
|
|
9538
9542
|
operationId: "createAiProvider",
|
|
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.",
|
|
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.",
|
|
9540
9544
|
moduleDocsUrl: "https://naturali.ai/docs/modules/ai-providers",
|
|
9541
9545
|
httpMethod: "post",
|
|
9542
9546
|
pathParams: ["project_id"],
|
|
@@ -9622,7 +9626,7 @@ const routes = {
|
|
|
9622
9626
|
"update-ai-provider": {
|
|
9623
9627
|
serviceClass: "AIProviders",
|
|
9624
9628
|
operationId: "updateAiProvider",
|
|
9625
|
-
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`.",
|
|
9626
9630
|
moduleDocsUrl: "https://naturali.ai/docs/modules/ai-providers",
|
|
9627
9631
|
httpMethod: "patch",
|
|
9628
9632
|
pathParams: ["project_id", "ai_provider_id"],
|
|
@@ -23421,7 +23425,7 @@ const routes = {
|
|
|
23421
23425
|
"create-trigger": {
|
|
23422
23426
|
serviceClass: "Triggers",
|
|
23423
23427
|
operationId: "createTrigger",
|
|
23424
|
-
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`.",
|
|
23425
23429
|
moduleDocsUrl: "https://naturali.ai/docs/modules/triggers",
|
|
23426
23430
|
httpMethod: "post",
|
|
23427
23431
|
pathParams: ["project_id"],
|
|
@@ -23583,7 +23587,7 @@ const routes = {
|
|
|
23583
23587
|
"update-trigger": {
|
|
23584
23588
|
serviceClass: "Triggers",
|
|
23585
23589
|
operationId: "updateTrigger",
|
|
23586
|
-
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`.",
|
|
23587
23591
|
moduleDocsUrl: "https://naturali.ai/docs/modules/triggers",
|
|
23588
23592
|
httpMethod: "patch",
|
|
23589
23593
|
pathParams: ["project_id", "trigger_id"],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@naturali/cli",
|
|
3
|
-
"version": "0.219.
|
|
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.219.
|
|
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",
|