@naturali/sdk 0.284.0 → 0.285.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 +18 -7
- package/dist/index.d.cts +303 -19
- package/dist/index.d.mts +303 -19
- package/dist/index.mjs +18 -7
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -1674,7 +1674,7 @@ var ApiKeys = class {
|
|
|
1674
1674
|
scheme: "bearer",
|
|
1675
1675
|
type: "http"
|
|
1676
1676
|
}],
|
|
1677
|
-
url: "/v1/api-keys/{api_key_id}
|
|
1677
|
+
url: "/v1/api-keys/{api_key_id}/rotate",
|
|
1678
1678
|
...options
|
|
1679
1679
|
});
|
|
1680
1680
|
}
|
|
@@ -5898,7 +5898,7 @@ var Tasks = class {
|
|
|
5898
5898
|
/**
|
|
5899
5899
|
* List tasks
|
|
5900
5900
|
*
|
|
5901
|
-
* 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.
|
|
5901
|
+
* Lists tasks (the board query). Filter by workflow, state, status, automation status, priority, assignee, `upstream_of` or `metadata` — `GET /tasks?workflow_id=...&state=...` is one board column.
|
|
5902
5902
|
*/
|
|
5903
5903
|
static listTasks(options) {
|
|
5904
5904
|
return (options.client ?? client).get({
|
|
@@ -5922,6 +5922,17 @@ var Tasks = class {
|
|
|
5922
5922
|
});
|
|
5923
5923
|
}
|
|
5924
5924
|
/**
|
|
5925
|
+
* Get a task graph
|
|
5926
|
+
*
|
|
5927
|
+
* A summary of each task `GET /tasks` selects with the same filters, as `data.nodes`, and the dependencies between them, as `data.edges`: one read draws a list, a graph or a tree. `upstream_of` answers what leads to one task. Answered whole, never paged: above `TASK_GRAPH_LIMIT` tasks it is refused with `TASK_GRAPH_TOO_LARGE`.
|
|
5928
|
+
*/
|
|
5929
|
+
static getTaskGraph(options) {
|
|
5930
|
+
return (options.client ?? client).get({
|
|
5931
|
+
url: "/v1/projects/{project_id}/tasks/graph",
|
|
5932
|
+
...options
|
|
5933
|
+
});
|
|
5934
|
+
}
|
|
5935
|
+
/**
|
|
5925
5936
|
* Delete a task
|
|
5926
5937
|
*
|
|
5927
5938
|
* Deletes a task. Its transition history and dependencies cascade; a dependent it was the last open dependency of is freed.
|
|
@@ -6721,7 +6732,7 @@ var Webhooks = class {
|
|
|
6721
6732
|
/**
|
|
6722
6733
|
* Get a webhook
|
|
6723
6734
|
*
|
|
6724
|
-
* The endpoint, the events it is subscribed to and whether deliveries are attempted. The signing secret is not returned: it is shown once by [`POST /v1/projects/{project_id}/webhooks`](/docs/api/webhooks/create-webhook) and again by [`POST /v1/projects/{project_id}/webhooks/{webhook_id}
|
|
6735
|
+
* The endpoint, the events it is subscribed to and whether deliveries are attempted. The signing secret is not returned: it is shown once by [`POST /v1/projects/{project_id}/webhooks`](/docs/api/webhooks/create-webhook) and again by [`POST /v1/projects/{project_id}/webhooks/{webhook_id}/rotate-secret`](/docs/api/webhooks/rotate-webhook-secret).
|
|
6725
6736
|
*
|
|
6726
6737
|
*/
|
|
6727
6738
|
static getWebhook(options) {
|
|
@@ -6750,13 +6761,13 @@ var Webhooks = class {
|
|
|
6750
6761
|
/**
|
|
6751
6762
|
* Rotate the signing secret
|
|
6752
6763
|
*
|
|
6753
|
-
* Issues a new signing secret for the same endpoint and returns it — the second and last time a secret is ever returned.
|
|
6764
|
+
* Issues a new signing secret for the same endpoint and returns it — the second and last time a secret is ever returned.
|
|
6754
6765
|
* The change takes effect on the next delivery, including retries of deliveries already queued, so roll the new secret out to your receiver promptly. There is no overlap window in which both secrets verify.
|
|
6755
6766
|
*
|
|
6756
6767
|
*/
|
|
6757
6768
|
static rotateWebhookSecret(options) {
|
|
6758
6769
|
return (options.client ?? client).post({
|
|
6759
|
-
url: "/v1/projects/{project_id}/webhooks/{webhook_id}
|
|
6770
|
+
url: "/v1/projects/{project_id}/webhooks/{webhook_id}/rotate-secret",
|
|
6760
6771
|
...options
|
|
6761
6772
|
});
|
|
6762
6773
|
}
|
|
@@ -6789,14 +6800,14 @@ var Webhooks = class {
|
|
|
6789
6800
|
/**
|
|
6790
6801
|
* Redeliver an event
|
|
6791
6802
|
*
|
|
6792
|
-
* Queue the same event at the same endpoint again — the recovery path for a delivery that failed, or one your receiver dropped.
|
|
6803
|
+
* Queue the same event at the same endpoint again — the recovery path for a delivery that failed, or one your receiver dropped.
|
|
6793
6804
|
* A **new** delivery is created and returned; the original record is left untouched, because its attempt history is the evidence you redelivered on. The event's `id` is carried over unchanged, so a receiver deduping on the event sees the same event twice while one deduping on `X-Naturali-Delivery` sees a distinct delivery.
|
|
6794
6805
|
* An inactive webhook is refused with `409 WEBHOOK_INACTIVE`.
|
|
6795
6806
|
*
|
|
6796
6807
|
*/
|
|
6797
6808
|
static redeliverWebhookDelivery(options) {
|
|
6798
6809
|
return (options.client ?? client).post({
|
|
6799
|
-
url: "/v1/projects/{project_id}/webhook-deliveries/{delivery_id}
|
|
6810
|
+
url: "/v1/projects/{project_id}/webhook-deliveries/{delivery_id}/redeliver",
|
|
6800
6811
|
...options
|
|
6801
6812
|
});
|
|
6802
6813
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@naturali/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.285.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.285.0",
|
|
42
42
|
"@ttoss/openapi-codegen": "^0.10.1",
|
|
43
43
|
"@types/node": "^26.5.1",
|
|
44
44
|
"tsdown": "^0.23.0",
|