@naturali/cli 0.256.0 → 0.257.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 +283 -9
- 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.257.1";
|
|
21
21
|
//#endregion
|
|
22
22
|
//#region ../sdk/src/generated/core/bodySerializer.gen.ts
|
|
23
23
|
const serializeFormDataPair = (data, key, value) => {
|
|
@@ -4956,7 +4956,7 @@ var Playbooks = class {
|
|
|
4956
4956
|
/**
|
|
4957
4957
|
* Run a node of a case
|
|
4958
4958
|
*
|
|
4959
|
-
* 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 under the `policy_ids` of the case's playbook version, which must allow starting it:
|
|
4959
|
+
* 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 under the `policy_ids` of the case's playbook version, which must allow starting it: an executor it may not start fails the execution (`FORBIDDEN`). 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`.
|
|
4960
4960
|
*
|
|
4961
4961
|
* 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`.
|
|
4962
4962
|
*
|
|
@@ -5835,7 +5835,7 @@ var Tasks = class {
|
|
|
5835
5835
|
/**
|
|
5836
5836
|
* List tasks
|
|
5837
5837
|
*
|
|
5838
|
-
* Lists tasks (the board query). Filter by workflow, state, status, automation status, assignee, or `metadata` — `GET /tasks?workflow_id=...&state=...` is one board column.
|
|
5838
|
+
* Lists tasks (the board query). Filter by workflow, state, status, automation status, priority, assignee, or `metadata` — `GET /tasks?workflow_id=...&state=...` is one board column.
|
|
5839
5839
|
*/
|
|
5840
5840
|
static listTasks(options) {
|
|
5841
5841
|
return (options.client ?? client).get({
|
|
@@ -5861,7 +5861,7 @@ var Tasks = class {
|
|
|
5861
5861
|
/**
|
|
5862
5862
|
* Delete a task
|
|
5863
5863
|
*
|
|
5864
|
-
* Deletes a task. Its transition history
|
|
5864
|
+
* Deletes a task. Its transition history and dependencies cascade; a dependent it was the last open dependency of is freed.
|
|
5865
5865
|
*/
|
|
5866
5866
|
static deleteTask(options) {
|
|
5867
5867
|
return (options.client ?? client).delete({
|
|
@@ -5937,6 +5937,21 @@ var Tasks = class {
|
|
|
5937
5937
|
});
|
|
5938
5938
|
}
|
|
5939
5939
|
/**
|
|
5940
|
+
* Set a task's priority
|
|
5941
|
+
*
|
|
5942
|
+
* Sets or clears a task's priority. An action of its own, `tasks:SetTaskPriority`, so a principal can update a task without reprioritising it; create-task and update-task do not accept `priority`.
|
|
5943
|
+
*/
|
|
5944
|
+
static setTaskPriority(options) {
|
|
5945
|
+
return (options.client ?? client).put({
|
|
5946
|
+
url: "/v1/projects/{project_id}/tasks/{task_id}/priority",
|
|
5947
|
+
...options,
|
|
5948
|
+
headers: {
|
|
5949
|
+
"Content-Type": "application/json",
|
|
5950
|
+
...options.headers
|
|
5951
|
+
}
|
|
5952
|
+
});
|
|
5953
|
+
}
|
|
5954
|
+
/**
|
|
5940
5955
|
* Pause a task
|
|
5941
5956
|
*
|
|
5942
5957
|
* Pauses a task's automation. While a pause is in force no state's `on_enter` dispatches and no retry chain continues — an agent generation, a tool call and a sub-orchestration alike — so the task stops spending without losing its place.
|
|
@@ -5967,6 +5982,54 @@ var Tasks = class {
|
|
|
5967
5982
|
});
|
|
5968
5983
|
}
|
|
5969
5984
|
/**
|
|
5985
|
+
* List a task's dependencies
|
|
5986
|
+
*
|
|
5987
|
+
* Lists the tasks this task depends on, open and closed, oldest first. Only the open ones block it.
|
|
5988
|
+
*/
|
|
5989
|
+
static listTaskDependencies(options) {
|
|
5990
|
+
return (options.client ?? client).get({
|
|
5991
|
+
url: "/v1/projects/{project_id}/tasks/{task_id}/dependencies",
|
|
5992
|
+
...options
|
|
5993
|
+
});
|
|
5994
|
+
}
|
|
5995
|
+
/**
|
|
5996
|
+
* Add a task dependency
|
|
5997
|
+
*
|
|
5998
|
+
* Makes the task depend on `depends_on_task_id`, a task in the same project: the path's task is blocked until that one closes, in any terminal state. The pair is the dependency's identity: adding it again answers `200` with the existing one. An edge that would close a cycle is refused.
|
|
5999
|
+
*/
|
|
6000
|
+
static addTaskDependency(options) {
|
|
6001
|
+
return (options.client ?? client).post({
|
|
6002
|
+
url: "/v1/projects/{project_id}/tasks/{task_id}/dependencies",
|
|
6003
|
+
...options,
|
|
6004
|
+
headers: {
|
|
6005
|
+
"Content-Type": "application/json",
|
|
6006
|
+
...options.headers
|
|
6007
|
+
}
|
|
6008
|
+
});
|
|
6009
|
+
}
|
|
6010
|
+
/**
|
|
6011
|
+
* List a task's dependents
|
|
6012
|
+
*
|
|
6013
|
+
* Lists the tasks that depend on this task, open and closed, oldest first.
|
|
6014
|
+
*/
|
|
6015
|
+
static listTaskDependents(options) {
|
|
6016
|
+
return (options.client ?? client).get({
|
|
6017
|
+
url: "/v1/projects/{project_id}/tasks/{task_id}/dependents",
|
|
6018
|
+
...options
|
|
6019
|
+
});
|
|
6020
|
+
}
|
|
6021
|
+
/**
|
|
6022
|
+
* Remove a task dependency
|
|
6023
|
+
*
|
|
6024
|
+
* Removes the task's dependency on `depends_on_task_id`; answers `204` also when there is none. When it was the task's last open dependency, `tasks.unblocked` fires.
|
|
6025
|
+
*/
|
|
6026
|
+
static removeTaskDependency(options) {
|
|
6027
|
+
return (options.client ?? client).delete({
|
|
6028
|
+
url: "/v1/projects/{project_id}/tasks/{task_id}/dependencies/{depends_on_task_id}",
|
|
6029
|
+
...options
|
|
6030
|
+
});
|
|
6031
|
+
}
|
|
6032
|
+
/**
|
|
5970
6033
|
* Get task history
|
|
5971
6034
|
*
|
|
5972
6035
|
* Returns the append-only transition history of a task.
|
|
@@ -6211,7 +6274,7 @@ var Triggers = class {
|
|
|
6211
6274
|
/**
|
|
6212
6275
|
* Fire a trigger
|
|
6213
6276
|
*
|
|
6214
|
-
* Fires a trigger synchronously and returns the terminal firing record. The firing acts as the caller ∩ the trigger's `policy_ids`, which must allow starting the target, else `403`. The firing itself always settles here; an `eval` target's run is queued rather than executed inline, so the record names a `queued` run to poll.
|
|
6277
|
+
* Fires a trigger synchronously and returns the terminal firing record. The firing acts as the caller ∩ the trigger's `policy_ids`, which must allow starting the target, else the firing fails `FORBIDDEN`. A body carrying `input` or `tool_context` also needs the caller to start the target, else `403`. The firing itself always settles here; an `eval` target's run is queued rather than executed inline, so the record names a `queued` run to poll.
|
|
6215
6278
|
*/
|
|
6216
6279
|
static fireTrigger(options) {
|
|
6217
6280
|
return (options.client ?? client).post({
|
|
@@ -21579,7 +21642,7 @@ const routes = {
|
|
|
21579
21642
|
"run-playbook-case-node": {
|
|
21580
21643
|
serviceClass: "Playbooks",
|
|
21581
21644
|
operationId: "runPlaybookCaseNode",
|
|
21582
|
-
description: "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 under the `policy_ids` of the case's playbook version, which must allow starting it:
|
|
21645
|
+
description: "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 under the `policy_ids` of the case's playbook version, which must allow starting it: an executor it may not start fails the execution (`FORBIDDEN`). 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`. 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`. The output is written as an entry when the execution settles. A value equal to the node's current output writes no revision. If the node's inputs change while it runs, the execution settles as `superseded` and writes nothing. Without `wait` the execution answers `running` and settles in the background. With `wait: true` it answers once the executor settles, or once it parks: a workflow task still open, or an orchestration run waiting on a person or a timer, settles the node when it closes or ends.",
|
|
21583
21646
|
moduleDocsUrl: "https://naturali.ai/docs/modules/playbooks",
|
|
21584
21647
|
httpMethod: "post",
|
|
21585
21648
|
pathParams: [
|
|
@@ -24195,7 +24258,7 @@ const routes = {
|
|
|
24195
24258
|
"list-tasks": {
|
|
24196
24259
|
serviceClass: "Tasks",
|
|
24197
24260
|
operationId: "listTasks",
|
|
24198
|
-
description: "Lists tasks (the board query). Filter by workflow, state, status, automation status, assignee, or `metadata` — `GET /tasks?workflow_id=...&state=...` is one board column.",
|
|
24261
|
+
description: "Lists tasks (the board query). Filter by workflow, state, status, automation status, priority, assignee, or `metadata` — `GET /tasks?workflow_id=...&state=...` is one board column.",
|
|
24199
24262
|
moduleDocsUrl: "https://naturali.ai/docs/modules/tasks",
|
|
24200
24263
|
httpMethod: "get",
|
|
24201
24264
|
pathParams: ["project_id"],
|
|
@@ -24204,7 +24267,9 @@ const routes = {
|
|
|
24204
24267
|
"state",
|
|
24205
24268
|
"status",
|
|
24206
24269
|
"automation_status",
|
|
24270
|
+
"priority",
|
|
24207
24271
|
"assignee",
|
|
24272
|
+
"blocked",
|
|
24208
24273
|
"metadata",
|
|
24209
24274
|
"limit",
|
|
24210
24275
|
"cursor"
|
|
@@ -24247,6 +24312,13 @@ const routes = {
|
|
|
24247
24312
|
"type": "array",
|
|
24248
24313
|
"in": "query"
|
|
24249
24314
|
},
|
|
24315
|
+
{
|
|
24316
|
+
"name": "priority",
|
|
24317
|
+
"description": "Filter by priority. Repeat the parameter to OR values. `none` selects the tasks nobody prioritised (`priority: null`). A value outside the enum, empty string included, is a `400`.",
|
|
24318
|
+
"required": false,
|
|
24319
|
+
"type": "array",
|
|
24320
|
+
"in": "query"
|
|
24321
|
+
},
|
|
24250
24322
|
{
|
|
24251
24323
|
"name": "assignee",
|
|
24252
24324
|
"description": "",
|
|
@@ -24254,6 +24326,13 @@ const routes = {
|
|
|
24254
24326
|
"type": "string",
|
|
24255
24327
|
"in": "query"
|
|
24256
24328
|
},
|
|
24329
|
+
{
|
|
24330
|
+
"name": "blocked",
|
|
24331
|
+
"description": "`true` lists only the tasks with an open dependency (`readiness.blocked`), `false` only the rest.",
|
|
24332
|
+
"required": false,
|
|
24333
|
+
"type": "string",
|
|
24334
|
+
"in": "query"
|
|
24335
|
+
},
|
|
24257
24336
|
{
|
|
24258
24337
|
"name": "metadata",
|
|
24259
24338
|
"description": "A `StructuredFilter` over `metadata`, as JSON, url-encoded. It travels as JSON rather than as `key:value` pairs because the match is exact and a query string cannot otherwise say whether `3` is the number or the string.",
|
|
@@ -24435,7 +24514,7 @@ const routes = {
|
|
|
24435
24514
|
"delete-task": {
|
|
24436
24515
|
serviceClass: "Tasks",
|
|
24437
24516
|
operationId: "deleteTask",
|
|
24438
|
-
description: "Deletes a task. Its transition history
|
|
24517
|
+
description: "Deletes a task. Its transition history and dependencies cascade; a dependent it was the last open dependency of is freed.",
|
|
24439
24518
|
moduleDocsUrl: "https://naturali.ai/docs/modules/tasks",
|
|
24440
24519
|
httpMethod: "delete",
|
|
24441
24520
|
pathParams: ["project_id", "task_id"],
|
|
@@ -24607,6 +24686,40 @@ const routes = {
|
|
|
24607
24686
|
}
|
|
24608
24687
|
]
|
|
24609
24688
|
},
|
|
24689
|
+
"set-task-priority": {
|
|
24690
|
+
serviceClass: "Tasks",
|
|
24691
|
+
operationId: "setTaskPriority",
|
|
24692
|
+
description: "Sets or clears a task's priority. An action of its own, `tasks:SetTaskPriority`, so a principal can update a task without reprioritising it; create-task and update-task do not accept `priority`.",
|
|
24693
|
+
moduleDocsUrl: "https://naturali.ai/docs/modules/tasks",
|
|
24694
|
+
httpMethod: "put",
|
|
24695
|
+
pathParams: ["project_id", "task_id"],
|
|
24696
|
+
queryParams: [],
|
|
24697
|
+
headerParams: [],
|
|
24698
|
+
cookieParams: [],
|
|
24699
|
+
flags: [
|
|
24700
|
+
{
|
|
24701
|
+
"name": "project_id",
|
|
24702
|
+
"description": "Project public ID (proj_ prefix).",
|
|
24703
|
+
"required": true,
|
|
24704
|
+
"type": "string",
|
|
24705
|
+
"in": "path"
|
|
24706
|
+
},
|
|
24707
|
+
{
|
|
24708
|
+
"name": "task_id",
|
|
24709
|
+
"description": "The task's ID.",
|
|
24710
|
+
"required": true,
|
|
24711
|
+
"type": "string",
|
|
24712
|
+
"in": "path"
|
|
24713
|
+
},
|
|
24714
|
+
{
|
|
24715
|
+
"name": "priority",
|
|
24716
|
+
"description": "The priority to set; `null` clears it. A value outside the enum is `400 VALIDATION_FAILED`.",
|
|
24717
|
+
"required": true,
|
|
24718
|
+
"type": "string",
|
|
24719
|
+
"in": "body"
|
|
24720
|
+
}
|
|
24721
|
+
]
|
|
24722
|
+
},
|
|
24610
24723
|
"pause-task": {
|
|
24611
24724
|
serviceClass: "Tasks",
|
|
24612
24725
|
operationId: "pauseTask",
|
|
@@ -24665,6 +24778,167 @@ const routes = {
|
|
|
24665
24778
|
"in": "path"
|
|
24666
24779
|
}]
|
|
24667
24780
|
},
|
|
24781
|
+
"list-task-dependencies": {
|
|
24782
|
+
serviceClass: "Tasks",
|
|
24783
|
+
operationId: "listTaskDependencies",
|
|
24784
|
+
description: "Lists the tasks this task depends on, open and closed, oldest first. Only the open ones block it.",
|
|
24785
|
+
moduleDocsUrl: "https://naturali.ai/docs/modules/tasks",
|
|
24786
|
+
httpMethod: "get",
|
|
24787
|
+
pathParams: ["project_id", "task_id"],
|
|
24788
|
+
queryParams: ["limit", "cursor"],
|
|
24789
|
+
headerParams: [],
|
|
24790
|
+
cookieParams: [],
|
|
24791
|
+
flags: [
|
|
24792
|
+
{
|
|
24793
|
+
"name": "project_id",
|
|
24794
|
+
"description": "Project public ID (proj_ prefix).",
|
|
24795
|
+
"required": true,
|
|
24796
|
+
"type": "string",
|
|
24797
|
+
"in": "path"
|
|
24798
|
+
},
|
|
24799
|
+
{
|
|
24800
|
+
"name": "task_id",
|
|
24801
|
+
"description": "The task that waits.",
|
|
24802
|
+
"required": true,
|
|
24803
|
+
"type": "string",
|
|
24804
|
+
"in": "path"
|
|
24805
|
+
},
|
|
24806
|
+
{
|
|
24807
|
+
"name": "limit",
|
|
24808
|
+
"description": "Results per page, 1 to 100 (default 50). Above 100 it is clamped; below 1 or not an integer it is `400`.",
|
|
24809
|
+
"required": false,
|
|
24810
|
+
"type": "integer",
|
|
24811
|
+
"in": "query"
|
|
24812
|
+
},
|
|
24813
|
+
{
|
|
24814
|
+
"name": "cursor",
|
|
24815
|
+
"description": "The previous page's `next_cursor`; omit it for the first page. A cursor this list did not issue is `400`.",
|
|
24816
|
+
"required": false,
|
|
24817
|
+
"type": "string",
|
|
24818
|
+
"in": "query"
|
|
24819
|
+
}
|
|
24820
|
+
]
|
|
24821
|
+
},
|
|
24822
|
+
"add-task-dependency": {
|
|
24823
|
+
serviceClass: "Tasks",
|
|
24824
|
+
operationId: "addTaskDependency",
|
|
24825
|
+
description: "Makes the task depend on `depends_on_task_id`, a task in the same project: the path's task is blocked until that one closes, in any terminal state. The pair is the dependency's identity: adding it again answers `200` with the existing one. An edge that would close a cycle is refused.",
|
|
24826
|
+
moduleDocsUrl: "https://naturali.ai/docs/modules/tasks",
|
|
24827
|
+
httpMethod: "post",
|
|
24828
|
+
pathParams: ["project_id", "task_id"],
|
|
24829
|
+
queryParams: [],
|
|
24830
|
+
headerParams: [],
|
|
24831
|
+
cookieParams: [],
|
|
24832
|
+
flags: [
|
|
24833
|
+
{
|
|
24834
|
+
"name": "project_id",
|
|
24835
|
+
"description": "Project public ID (proj_ prefix).",
|
|
24836
|
+
"required": true,
|
|
24837
|
+
"type": "string",
|
|
24838
|
+
"in": "path"
|
|
24839
|
+
},
|
|
24840
|
+
{
|
|
24841
|
+
"name": "task_id",
|
|
24842
|
+
"description": "The task that waits.",
|
|
24843
|
+
"required": true,
|
|
24844
|
+
"type": "string",
|
|
24845
|
+
"in": "path"
|
|
24846
|
+
},
|
|
24847
|
+
{
|
|
24848
|
+
"name": "depends_on_task_id",
|
|
24849
|
+
"description": "The task that blocks this one, in the same project.",
|
|
24850
|
+
"required": true,
|
|
24851
|
+
"type": "string",
|
|
24852
|
+
"in": "body"
|
|
24853
|
+
},
|
|
24854
|
+
{
|
|
24855
|
+
"name": "note",
|
|
24856
|
+
"description": "Why the task waits, returned as written.",
|
|
24857
|
+
"required": false,
|
|
24858
|
+
"type": "string",
|
|
24859
|
+
"in": "body"
|
|
24860
|
+
}
|
|
24861
|
+
]
|
|
24862
|
+
},
|
|
24863
|
+
"list-task-dependents": {
|
|
24864
|
+
serviceClass: "Tasks",
|
|
24865
|
+
operationId: "listTaskDependents",
|
|
24866
|
+
description: "Lists the tasks that depend on this task, open and closed, oldest first.",
|
|
24867
|
+
moduleDocsUrl: "https://naturali.ai/docs/modules/tasks",
|
|
24868
|
+
httpMethod: "get",
|
|
24869
|
+
pathParams: ["project_id", "task_id"],
|
|
24870
|
+
queryParams: ["limit", "cursor"],
|
|
24871
|
+
headerParams: [],
|
|
24872
|
+
cookieParams: [],
|
|
24873
|
+
flags: [
|
|
24874
|
+
{
|
|
24875
|
+
"name": "project_id",
|
|
24876
|
+
"description": "Project public ID (proj_ prefix).",
|
|
24877
|
+
"required": true,
|
|
24878
|
+
"type": "string",
|
|
24879
|
+
"in": "path"
|
|
24880
|
+
},
|
|
24881
|
+
{
|
|
24882
|
+
"name": "task_id",
|
|
24883
|
+
"description": "The task the dependents wait on.",
|
|
24884
|
+
"required": true,
|
|
24885
|
+
"type": "string",
|
|
24886
|
+
"in": "path"
|
|
24887
|
+
},
|
|
24888
|
+
{
|
|
24889
|
+
"name": "limit",
|
|
24890
|
+
"description": "Results per page, 1 to 100 (default 50). Above 100 it is clamped; below 1 or not an integer it is `400`.",
|
|
24891
|
+
"required": false,
|
|
24892
|
+
"type": "integer",
|
|
24893
|
+
"in": "query"
|
|
24894
|
+
},
|
|
24895
|
+
{
|
|
24896
|
+
"name": "cursor",
|
|
24897
|
+
"description": "The previous page's `next_cursor`; omit it for the first page. A cursor this list did not issue is `400`.",
|
|
24898
|
+
"required": false,
|
|
24899
|
+
"type": "string",
|
|
24900
|
+
"in": "query"
|
|
24901
|
+
}
|
|
24902
|
+
]
|
|
24903
|
+
},
|
|
24904
|
+
"remove-task-dependency": {
|
|
24905
|
+
serviceClass: "Tasks",
|
|
24906
|
+
operationId: "removeTaskDependency",
|
|
24907
|
+
description: "Removes the task's dependency on `depends_on_task_id`; answers `204` also when there is none. When it was the task's last open dependency, `tasks.unblocked` fires.",
|
|
24908
|
+
moduleDocsUrl: "https://naturali.ai/docs/modules/tasks",
|
|
24909
|
+
httpMethod: "delete",
|
|
24910
|
+
pathParams: [
|
|
24911
|
+
"project_id",
|
|
24912
|
+
"task_id",
|
|
24913
|
+
"depends_on_task_id"
|
|
24914
|
+
],
|
|
24915
|
+
queryParams: [],
|
|
24916
|
+
headerParams: [],
|
|
24917
|
+
cookieParams: [],
|
|
24918
|
+
flags: [
|
|
24919
|
+
{
|
|
24920
|
+
"name": "project_id",
|
|
24921
|
+
"description": "Project public ID (proj_ prefix).",
|
|
24922
|
+
"required": true,
|
|
24923
|
+
"type": "string",
|
|
24924
|
+
"in": "path"
|
|
24925
|
+
},
|
|
24926
|
+
{
|
|
24927
|
+
"name": "task_id",
|
|
24928
|
+
"description": "The task that waits.",
|
|
24929
|
+
"required": true,
|
|
24930
|
+
"type": "string",
|
|
24931
|
+
"in": "path"
|
|
24932
|
+
},
|
|
24933
|
+
{
|
|
24934
|
+
"name": "depends_on_task_id",
|
|
24935
|
+
"description": "The task it no longer waits on.",
|
|
24936
|
+
"required": true,
|
|
24937
|
+
"type": "string",
|
|
24938
|
+
"in": "path"
|
|
24939
|
+
}
|
|
24940
|
+
]
|
|
24941
|
+
},
|
|
24668
24942
|
"get-task-history": {
|
|
24669
24943
|
serviceClass: "Tasks",
|
|
24670
24944
|
operationId: "getTaskHistory",
|
|
@@ -25649,7 +25923,7 @@ const routes = {
|
|
|
25649
25923
|
"fire-trigger": {
|
|
25650
25924
|
serviceClass: "Triggers",
|
|
25651
25925
|
operationId: "fireTrigger",
|
|
25652
|
-
description: "Fires a trigger synchronously and returns the terminal firing record. The firing acts as the caller ∩ the trigger's `policy_ids`, which must allow starting the target, else `403`. The firing itself always settles here; an `eval` target's run is queued rather than executed inline, so the record names a `queued` run to poll.",
|
|
25926
|
+
description: "Fires a trigger synchronously and returns the terminal firing record. The firing acts as the caller ∩ the trigger's `policy_ids`, which must allow starting the target, else the firing fails `FORBIDDEN`. A body carrying `input` or `tool_context` also needs the caller to start the target, else `403`. The firing itself always settles here; an `eval` target's run is queued rather than executed inline, so the record names a `queued` run to poll.",
|
|
25653
25927
|
moduleDocsUrl: "https://naturali.ai/docs/modules/triggers",
|
|
25654
25928
|
httpMethod: "post",
|
|
25655
25929
|
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.257.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.257.1",
|
|
35
35
|
"@ttoss/openapi-codegen": "^0.10.1",
|
|
36
36
|
"@types/node": "^26.5.1",
|
|
37
37
|
"tsdown": "^0.23.0",
|