@naturali/sdk 0.295.4 → 0.295.5
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 +18 -0
- package/dist/index.d.cts +230 -20
- package/dist/index.d.mts +230 -20
- package/dist/index.mjs +18 -0
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -2661,6 +2661,9 @@ var Documents = class {
|
|
|
2661
2661
|
* `POST /documents/{document_id}/ingest`; to ingest the same source under a
|
|
2662
2662
|
* different path, upload a new copy of the file first.
|
|
2663
2663
|
*
|
|
2664
|
+
* A file with a lifetime (`expires_at` or `delete_after`) is never
|
|
2665
|
+
* ingested: `409 FILE_NOT_INGESTIBLE`.
|
|
2666
|
+
*
|
|
2664
2667
|
*/
|
|
2665
2668
|
static ingestDocument(options) {
|
|
2666
2669
|
return (options.client ?? client).post({
|
|
@@ -6170,6 +6173,21 @@ var Tasks = class {
|
|
|
6170
6173
|
});
|
|
6171
6174
|
}
|
|
6172
6175
|
/**
|
|
6176
|
+
* Hold a task until a date
|
|
6177
|
+
*
|
|
6178
|
+
* Holds a task until a future date, or clears its hold with `null`. While the date is ahead the task is blocked (`readiness.blocked`, a `scheduled` entry in `readiness.blocked_by`); once it passes the task is ready with no write, and `tasks.hold_cleared` fires. An action of its own, `tasks:SetTaskHold`; create-task and update-task do not accept `hold_until`.
|
|
6179
|
+
*/
|
|
6180
|
+
static setTaskHold(options) {
|
|
6181
|
+
return (options.client ?? client).put({
|
|
6182
|
+
url: "/v1/projects/{project_id}/tasks/{task_id}/hold",
|
|
6183
|
+
...options,
|
|
6184
|
+
headers: {
|
|
6185
|
+
"Content-Type": "application/json",
|
|
6186
|
+
...options.headers
|
|
6187
|
+
}
|
|
6188
|
+
});
|
|
6189
|
+
}
|
|
6190
|
+
/**
|
|
6173
6191
|
* Pause a task
|
|
6174
6192
|
*
|
|
6175
6193
|
* 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.
|