@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.mjs
CHANGED
|
@@ -2660,6 +2660,9 @@ var Documents = class {
|
|
|
2660
2660
|
* `POST /documents/{document_id}/ingest`; to ingest the same source under a
|
|
2661
2661
|
* different path, upload a new copy of the file first.
|
|
2662
2662
|
*
|
|
2663
|
+
* A file with a lifetime (`expires_at` or `delete_after`) is never
|
|
2664
|
+
* ingested: `409 FILE_NOT_INGESTIBLE`.
|
|
2665
|
+
*
|
|
2663
2666
|
*/
|
|
2664
2667
|
static ingestDocument(options) {
|
|
2665
2668
|
return (options.client ?? client).post({
|
|
@@ -6169,6 +6172,21 @@ var Tasks = class {
|
|
|
6169
6172
|
});
|
|
6170
6173
|
}
|
|
6171
6174
|
/**
|
|
6175
|
+
* Hold a task until a date
|
|
6176
|
+
*
|
|
6177
|
+
* 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`.
|
|
6178
|
+
*/
|
|
6179
|
+
static setTaskHold(options) {
|
|
6180
|
+
return (options.client ?? client).put({
|
|
6181
|
+
url: "/v1/projects/{project_id}/tasks/{task_id}/hold",
|
|
6182
|
+
...options,
|
|
6183
|
+
headers: {
|
|
6184
|
+
"Content-Type": "application/json",
|
|
6185
|
+
...options.headers
|
|
6186
|
+
}
|
|
6187
|
+
});
|
|
6188
|
+
}
|
|
6189
|
+
/**
|
|
6172
6190
|
* Pause a task
|
|
6173
6191
|
*
|
|
6174
6192
|
* 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.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@naturali/sdk",
|
|
3
|
-
"version": "0.295.
|
|
3
|
+
"version": "0.295.5",
|
|
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.295.
|
|
41
|
+
"@naturali/api": "0.295.5",
|
|
42
42
|
"@ttoss/openapi-codegen": "^0.10.1",
|
|
43
43
|
"@types/node": "^26.5.1",
|
|
44
44
|
"tsdown": "^0.23.0",
|