@naturali/sdk 0.241.0 → 0.243.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.cjs +1 -1
- package/dist/index.d.cts +22 -6
- package/dist/index.d.mts +22 -6
- package/dist/index.mjs +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -5146,7 +5146,7 @@ var Playbooks = class {
|
|
|
5146
5146
|
/**
|
|
5147
5147
|
* Run a node of a case
|
|
5148
5148
|
*
|
|
5149
|
-
* Runs one node now. The cascade already runs every node whose inputs are set once a write, a settle or a resume makes it runnable, and never reruns a `failed` or `done` one: this is how a failed node is retried, and how a `done` node is recomputed after an upgrade changed its executor. A `collect` node takes its own input values as its output, any other node starts its executor with the node's input values mapped through the executor's `input`. The executor runs as the author of the case's playbook version, whose permission to start it is checked again here (`403 PLAYBOOK_EXECUTOR_FORBIDDEN`); an author that no longer exists is `409
|
|
5149
|
+
* Runs one node now. The cascade already runs every node whose inputs are set once a write, a settle or a resume makes it runnable, and never reruns a `failed` or `done` one: this is how a failed node is retried, and how a `done` node is recomputed after an upgrade changed its executor. A `collect` node takes its own input values as its output, any other node starts its executor with the node's input values mapped through the executor's `input`. The executor runs as the author of the case's playbook version, whose permission to start it is checked again here (`403 PLAYBOOK_EXECUTOR_FORBIDDEN`); an author that no longer exists is `409 WORK_AUTHORITY_MISSING`. Only a `ready`, `stale`, `failed` or `done` node with every required input set runs; anything else is `409 PLAYBOOK_NODE_NOT_RUNNABLE`. A paused case is `409 PLAYBOOK_CASE_PAUSED`, and a case in a paused project `409 PROJECT_PAUSED`.
|
|
5150
5150
|
*
|
|
5151
5151
|
* An `upstream` node has no executor: running it pulls the current output of the node it names in the bound case, which must be `done`. This is the only way to refresh one that an upstream change left `stale`.
|
|
5152
5152
|
*
|
package/dist/index.d.cts
CHANGED
|
@@ -1048,9 +1048,13 @@ type Agent = {
|
|
|
1048
1048
|
[key: string]: unknown;
|
|
1049
1049
|
}> | null;
|
|
1050
1050
|
/**
|
|
1051
|
-
*
|
|
1051
|
+
* Under `run_as: caller`, the policies capping the caller's permissions on every generation; null is no cap. Under `run_as: agent`, the agent's own grant.
|
|
1052
1052
|
*/
|
|
1053
1053
|
policy_ids?: Array<string> | null;
|
|
1054
|
+
/**
|
|
1055
|
+
* What `policy_ids` are. `caller`: a turn runs as the caller's permissions intersected with `policy_ids`. `agent`: a turn runs as `policy_ids` alone, and the caller needs only `agents:CreateAgentGeneration` on the agent. See [Execution Identity](/docs/modules/agents#execution-identity).
|
|
1056
|
+
*/
|
|
1057
|
+
run_as?: 'caller' | 'agent';
|
|
1054
1058
|
/**
|
|
1055
1059
|
* Sampling temperature
|
|
1056
1060
|
*/
|
|
@@ -1314,9 +1318,13 @@ type CreateAgentRequest = {
|
|
|
1314
1318
|
*/
|
|
1315
1319
|
step_rules?: Array<AgentStepRule>;
|
|
1316
1320
|
/**
|
|
1317
|
-
*
|
|
1321
|
+
* Under `run_as: caller`, the policies capping the caller's permissions on every generation; under `run_as: agent`, the agent's own grant. The caller must hold every grant they carry inside the agent's project, else `403 POLICY_GRANT_NOT_HELD`. See [Execution Identity](/docs/modules/agents#execution-identity).
|
|
1318
1322
|
*/
|
|
1319
1323
|
policy_ids?: Array<string>;
|
|
1324
|
+
/**
|
|
1325
|
+
* What `policy_ids` are: `caller` (default) caps the caller, `agent` makes them the agent's own grant. `agent` requires a non-empty `policy_ids`, else `400 AGENT_RUN_AS_REQUIRES_POLICIES`.
|
|
1326
|
+
*/
|
|
1327
|
+
run_as?: 'caller' | 'agent';
|
|
1320
1328
|
/**
|
|
1321
1329
|
* Sampling temperature passed to the model. Omitted, the provider's default applies.
|
|
1322
1330
|
*/
|
|
@@ -1462,9 +1470,13 @@ type UpdateAgentRequest = {
|
|
|
1462
1470
|
*/
|
|
1463
1471
|
step_rules?: Array<AgentStepRule> | null;
|
|
1464
1472
|
/**
|
|
1465
|
-
* Replaces
|
|
1473
|
+
* Replaces `policy_ids`; `null` removes them. The caller must hold every grant of each policy it adds inside the agent's project, else `403 POLICY_GRANT_NOT_HELD`. See [Execution Identity](/docs/modules/agents#execution-identity).
|
|
1466
1474
|
*/
|
|
1467
1475
|
policy_ids?: Array<string> | null;
|
|
1476
|
+
/**
|
|
1477
|
+
* Replaces what `policy_ids` are: `caller` caps the caller, `agent` makes them the agent's own grant. An agent left `run_as: agent` with no `policy_ids` is `400 AGENT_RUN_AS_REQUIRES_POLICIES`.
|
|
1478
|
+
*/
|
|
1479
|
+
run_as?: 'caller' | 'agent';
|
|
1468
1480
|
/**
|
|
1469
1481
|
* Sampling temperature passed to the model; `null` restores the provider's default.
|
|
1470
1482
|
*/
|
|
@@ -4298,9 +4310,13 @@ type AgentResourceProperties = {
|
|
|
4298
4310
|
active_tool_ids?: Array<string> | null;
|
|
4299
4311
|
}> | null;
|
|
4300
4312
|
/**
|
|
4301
|
-
*
|
|
4313
|
+
* Under `run_as: caller`, the policies capping the caller's permissions on every generation; under `run_as: agent`, the agent's own grant. The deployer must hold every grant they carry inside the agent's project, else `403 POLICY_GRANT_NOT_HELD`.
|
|
4302
4314
|
*/
|
|
4303
4315
|
policy_ids?: Array<string> | null;
|
|
4316
|
+
/**
|
|
4317
|
+
* What `policy_ids` are: `caller` (default) caps the caller, `agent` makes them the agent's own grant and requires a non-empty `policy_ids`.
|
|
4318
|
+
*/
|
|
4319
|
+
run_as?: 'caller' | 'agent';
|
|
4304
4320
|
/**
|
|
4305
4321
|
* Sampling temperature
|
|
4306
4322
|
*/
|
|
@@ -9344,7 +9360,7 @@ type Task = {
|
|
|
9344
9360
|
*/
|
|
9345
9361
|
pause_reason?: string | null;
|
|
9346
9362
|
/**
|
|
9347
|
-
* Server-owned. How many machine-driven transitions have run back-to-back with no outside intervention — a dispatch outcome routed through `on_complete`/`on_failure`, or a `transition-task` call made by a dispatched run or agent
|
|
9363
|
+
* Server-owned. How many machine-driven transitions have run back-to-back with no outside intervention — a dispatch outcome routed through `on_complete`/`on_failure`, or a `transition-task` call made by a dispatched run or agent under its stored authority. Any move by a person, a plain API key, or an approval resolution resets it to `0`. Once it would exceed the server's limit (`TASK_AUTOMATION_CHAIN_LIMIT`, default 50) the next such transition is refused with `TASK_AUTOMATION_CHAIN_LIMIT`, bounding a cycle composed across workflows and orchestrations.
|
|
9348
9364
|
*/
|
|
9349
9365
|
automation_chain_depth?: number;
|
|
9350
9366
|
/**
|
|
@@ -37968,7 +37984,7 @@ export declare class Playbooks {
|
|
|
37968
37984
|
/**
|
|
37969
37985
|
* Run a node of a case
|
|
37970
37986
|
*
|
|
37971
|
-
* Runs one node now. The cascade already runs every node whose inputs are set once a write, a settle or a resume makes it runnable, and never reruns a `failed` or `done` one: this is how a failed node is retried, and how a `done` node is recomputed after an upgrade changed its executor. A `collect` node takes its own input values as its output, any other node starts its executor with the node's input values mapped through the executor's `input`. The executor runs as the author of the case's playbook version, whose permission to start it is checked again here (`403 PLAYBOOK_EXECUTOR_FORBIDDEN`); an author that no longer exists is `409
|
|
37987
|
+
* Runs one node now. The cascade already runs every node whose inputs are set once a write, a settle or a resume makes it runnable, and never reruns a `failed` or `done` one: this is how a failed node is retried, and how a `done` node is recomputed after an upgrade changed its executor. A `collect` node takes its own input values as its output, any other node starts its executor with the node's input values mapped through the executor's `input`. The executor runs as the author of the case's playbook version, whose permission to start it is checked again here (`403 PLAYBOOK_EXECUTOR_FORBIDDEN`); an author that no longer exists is `409 WORK_AUTHORITY_MISSING`. Only a `ready`, `stale`, `failed` or `done` node with every required input set runs; anything else is `409 PLAYBOOK_NODE_NOT_RUNNABLE`. A paused case is `409 PLAYBOOK_CASE_PAUSED`, and a case in a paused project `409 PROJECT_PAUSED`.
|
|
37972
37988
|
*
|
|
37973
37989
|
* An `upstream` node has no executor: running it pulls the current output of the node it names in the bound case, which must be `done`. This is the only way to refresh one that an upstream change left `stale`.
|
|
37974
37990
|
*
|
package/dist/index.d.mts
CHANGED
|
@@ -1048,9 +1048,13 @@ type Agent = {
|
|
|
1048
1048
|
[key: string]: unknown;
|
|
1049
1049
|
}> | null;
|
|
1050
1050
|
/**
|
|
1051
|
-
*
|
|
1051
|
+
* Under `run_as: caller`, the policies capping the caller's permissions on every generation; null is no cap. Under `run_as: agent`, the agent's own grant.
|
|
1052
1052
|
*/
|
|
1053
1053
|
policy_ids?: Array<string> | null;
|
|
1054
|
+
/**
|
|
1055
|
+
* What `policy_ids` are. `caller`: a turn runs as the caller's permissions intersected with `policy_ids`. `agent`: a turn runs as `policy_ids` alone, and the caller needs only `agents:CreateAgentGeneration` on the agent. See [Execution Identity](/docs/modules/agents#execution-identity).
|
|
1056
|
+
*/
|
|
1057
|
+
run_as?: 'caller' | 'agent';
|
|
1054
1058
|
/**
|
|
1055
1059
|
* Sampling temperature
|
|
1056
1060
|
*/
|
|
@@ -1314,9 +1318,13 @@ type CreateAgentRequest = {
|
|
|
1314
1318
|
*/
|
|
1315
1319
|
step_rules?: Array<AgentStepRule>;
|
|
1316
1320
|
/**
|
|
1317
|
-
*
|
|
1321
|
+
* Under `run_as: caller`, the policies capping the caller's permissions on every generation; under `run_as: agent`, the agent's own grant. The caller must hold every grant they carry inside the agent's project, else `403 POLICY_GRANT_NOT_HELD`. See [Execution Identity](/docs/modules/agents#execution-identity).
|
|
1318
1322
|
*/
|
|
1319
1323
|
policy_ids?: Array<string>;
|
|
1324
|
+
/**
|
|
1325
|
+
* What `policy_ids` are: `caller` (default) caps the caller, `agent` makes them the agent's own grant. `agent` requires a non-empty `policy_ids`, else `400 AGENT_RUN_AS_REQUIRES_POLICIES`.
|
|
1326
|
+
*/
|
|
1327
|
+
run_as?: 'caller' | 'agent';
|
|
1320
1328
|
/**
|
|
1321
1329
|
* Sampling temperature passed to the model. Omitted, the provider's default applies.
|
|
1322
1330
|
*/
|
|
@@ -1462,9 +1470,13 @@ type UpdateAgentRequest = {
|
|
|
1462
1470
|
*/
|
|
1463
1471
|
step_rules?: Array<AgentStepRule> | null;
|
|
1464
1472
|
/**
|
|
1465
|
-
* Replaces
|
|
1473
|
+
* Replaces `policy_ids`; `null` removes them. The caller must hold every grant of each policy it adds inside the agent's project, else `403 POLICY_GRANT_NOT_HELD`. See [Execution Identity](/docs/modules/agents#execution-identity).
|
|
1466
1474
|
*/
|
|
1467
1475
|
policy_ids?: Array<string> | null;
|
|
1476
|
+
/**
|
|
1477
|
+
* Replaces what `policy_ids` are: `caller` caps the caller, `agent` makes them the agent's own grant. An agent left `run_as: agent` with no `policy_ids` is `400 AGENT_RUN_AS_REQUIRES_POLICIES`.
|
|
1478
|
+
*/
|
|
1479
|
+
run_as?: 'caller' | 'agent';
|
|
1468
1480
|
/**
|
|
1469
1481
|
* Sampling temperature passed to the model; `null` restores the provider's default.
|
|
1470
1482
|
*/
|
|
@@ -4298,9 +4310,13 @@ type AgentResourceProperties = {
|
|
|
4298
4310
|
active_tool_ids?: Array<string> | null;
|
|
4299
4311
|
}> | null;
|
|
4300
4312
|
/**
|
|
4301
|
-
*
|
|
4313
|
+
* Under `run_as: caller`, the policies capping the caller's permissions on every generation; under `run_as: agent`, the agent's own grant. The deployer must hold every grant they carry inside the agent's project, else `403 POLICY_GRANT_NOT_HELD`.
|
|
4302
4314
|
*/
|
|
4303
4315
|
policy_ids?: Array<string> | null;
|
|
4316
|
+
/**
|
|
4317
|
+
* What `policy_ids` are: `caller` (default) caps the caller, `agent` makes them the agent's own grant and requires a non-empty `policy_ids`.
|
|
4318
|
+
*/
|
|
4319
|
+
run_as?: 'caller' | 'agent';
|
|
4304
4320
|
/**
|
|
4305
4321
|
* Sampling temperature
|
|
4306
4322
|
*/
|
|
@@ -9344,7 +9360,7 @@ type Task = {
|
|
|
9344
9360
|
*/
|
|
9345
9361
|
pause_reason?: string | null;
|
|
9346
9362
|
/**
|
|
9347
|
-
* Server-owned. How many machine-driven transitions have run back-to-back with no outside intervention — a dispatch outcome routed through `on_complete`/`on_failure`, or a `transition-task` call made by a dispatched run or agent
|
|
9363
|
+
* Server-owned. How many machine-driven transitions have run back-to-back with no outside intervention — a dispatch outcome routed through `on_complete`/`on_failure`, or a `transition-task` call made by a dispatched run or agent under its stored authority. Any move by a person, a plain API key, or an approval resolution resets it to `0`. Once it would exceed the server's limit (`TASK_AUTOMATION_CHAIN_LIMIT`, default 50) the next such transition is refused with `TASK_AUTOMATION_CHAIN_LIMIT`, bounding a cycle composed across workflows and orchestrations.
|
|
9348
9364
|
*/
|
|
9349
9365
|
automation_chain_depth?: number;
|
|
9350
9366
|
/**
|
|
@@ -37968,7 +37984,7 @@ export declare class Playbooks {
|
|
|
37968
37984
|
/**
|
|
37969
37985
|
* Run a node of a case
|
|
37970
37986
|
*
|
|
37971
|
-
* Runs one node now. The cascade already runs every node whose inputs are set once a write, a settle or a resume makes it runnable, and never reruns a `failed` or `done` one: this is how a failed node is retried, and how a `done` node is recomputed after an upgrade changed its executor. A `collect` node takes its own input values as its output, any other node starts its executor with the node's input values mapped through the executor's `input`. The executor runs as the author of the case's playbook version, whose permission to start it is checked again here (`403 PLAYBOOK_EXECUTOR_FORBIDDEN`); an author that no longer exists is `409
|
|
37987
|
+
* Runs one node now. The cascade already runs every node whose inputs are set once a write, a settle or a resume makes it runnable, and never reruns a `failed` or `done` one: this is how a failed node is retried, and how a `done` node is recomputed after an upgrade changed its executor. A `collect` node takes its own input values as its output, any other node starts its executor with the node's input values mapped through the executor's `input`. The executor runs as the author of the case's playbook version, whose permission to start it is checked again here (`403 PLAYBOOK_EXECUTOR_FORBIDDEN`); an author that no longer exists is `409 WORK_AUTHORITY_MISSING`. Only a `ready`, `stale`, `failed` or `done` node with every required input set runs; anything else is `409 PLAYBOOK_NODE_NOT_RUNNABLE`. A paused case is `409 PLAYBOOK_CASE_PAUSED`, and a case in a paused project `409 PROJECT_PAUSED`.
|
|
37972
37988
|
*
|
|
37973
37989
|
* An `upstream` node has no executor: running it pulls the current output of the node it names in the bound case, which must be `done`. This is the only way to refresh one that an upstream change left `stale`.
|
|
37974
37990
|
*
|
package/dist/index.mjs
CHANGED
|
@@ -5145,7 +5145,7 @@ var Playbooks = class {
|
|
|
5145
5145
|
/**
|
|
5146
5146
|
* Run a node of a case
|
|
5147
5147
|
*
|
|
5148
|
-
* Runs one node now. The cascade already runs every node whose inputs are set once a write, a settle or a resume makes it runnable, and never reruns a `failed` or `done` one: this is how a failed node is retried, and how a `done` node is recomputed after an upgrade changed its executor. A `collect` node takes its own input values as its output, any other node starts its executor with the node's input values mapped through the executor's `input`. The executor runs as the author of the case's playbook version, whose permission to start it is checked again here (`403 PLAYBOOK_EXECUTOR_FORBIDDEN`); an author that no longer exists is `409
|
|
5148
|
+
* Runs one node now. The cascade already runs every node whose inputs are set once a write, a settle or a resume makes it runnable, and never reruns a `failed` or `done` one: this is how a failed node is retried, and how a `done` node is recomputed after an upgrade changed its executor. A `collect` node takes its own input values as its output, any other node starts its executor with the node's input values mapped through the executor's `input`. The executor runs as the author of the case's playbook version, whose permission to start it is checked again here (`403 PLAYBOOK_EXECUTOR_FORBIDDEN`); an author that no longer exists is `409 WORK_AUTHORITY_MISSING`. Only a `ready`, `stale`, `failed` or `done` node with every required input set runs; anything else is `409 PLAYBOOK_NODE_NOT_RUNNABLE`. A paused case is `409 PLAYBOOK_CASE_PAUSED`, and a case in a paused project `409 PROJECT_PAUSED`.
|
|
5149
5149
|
*
|
|
5150
5150
|
* An `upstream` node has no executor: running it pulls the current output of the node it names in the bound case, which must be `done`. This is the only way to refresh one that an upstream change left `stale`.
|
|
5151
5151
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@naturali/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.243.0",
|
|
4
4
|
"description": "TypeScript SDK for the naturali.ai API, generated from its OpenAPI specs",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"naturali",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@hey-api/openapi-ts": "^0.99.0",
|
|
41
|
-
"@naturali/api": "0.
|
|
41
|
+
"@naturali/api": "0.243.0",
|
|
42
42
|
"@ttoss/openapi-codegen": "^0.10.1",
|
|
43
43
|
"@types/node": "^26.5.1",
|
|
44
44
|
"tsdown": "^0.23.0",
|