@naturali/sdk 0.284.0 → 0.286.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.cjs
CHANGED
|
@@ -1675,7 +1675,7 @@ var ApiKeys = class {
|
|
|
1675
1675
|
scheme: "bearer",
|
|
1676
1676
|
type: "http"
|
|
1677
1677
|
}],
|
|
1678
|
-
url: "/v1/api-keys/{api_key_id}
|
|
1678
|
+
url: "/v1/api-keys/{api_key_id}/rotate",
|
|
1679
1679
|
...options
|
|
1680
1680
|
});
|
|
1681
1681
|
}
|
|
@@ -5899,7 +5899,7 @@ var Tasks = class {
|
|
|
5899
5899
|
/**
|
|
5900
5900
|
* List tasks
|
|
5901
5901
|
*
|
|
5902
|
-
* 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.
|
|
5902
|
+
* 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.
|
|
5903
5903
|
*/
|
|
5904
5904
|
static listTasks(options) {
|
|
5905
5905
|
return (options.client ?? client).get({
|
|
@@ -5923,6 +5923,17 @@ var Tasks = class {
|
|
|
5923
5923
|
});
|
|
5924
5924
|
}
|
|
5925
5925
|
/**
|
|
5926
|
+
* Get a task graph
|
|
5927
|
+
*
|
|
5928
|
+
* 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`.
|
|
5929
|
+
*/
|
|
5930
|
+
static getTaskGraph(options) {
|
|
5931
|
+
return (options.client ?? client).get({
|
|
5932
|
+
url: "/v1/projects/{project_id}/tasks/graph",
|
|
5933
|
+
...options
|
|
5934
|
+
});
|
|
5935
|
+
}
|
|
5936
|
+
/**
|
|
5926
5937
|
* Delete a task
|
|
5927
5938
|
*
|
|
5928
5939
|
* Deletes a task. Its transition history and dependencies cascade; a dependent it was the last open dependency of is freed.
|
|
@@ -6722,7 +6733,7 @@ var Webhooks = class {
|
|
|
6722
6733
|
/**
|
|
6723
6734
|
* Get a webhook
|
|
6724
6735
|
*
|
|
6725
|
-
* 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}
|
|
6736
|
+
* 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).
|
|
6726
6737
|
*
|
|
6727
6738
|
*/
|
|
6728
6739
|
static getWebhook(options) {
|
|
@@ -6751,13 +6762,13 @@ var Webhooks = class {
|
|
|
6751
6762
|
/**
|
|
6752
6763
|
* Rotate the signing secret
|
|
6753
6764
|
*
|
|
6754
|
-
* Issues a new signing secret for the same endpoint and returns it — the second and last time a secret is ever returned.
|
|
6765
|
+
* Issues a new signing secret for the same endpoint and returns it — the second and last time a secret is ever returned.
|
|
6755
6766
|
* 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.
|
|
6756
6767
|
*
|
|
6757
6768
|
*/
|
|
6758
6769
|
static rotateWebhookSecret(options) {
|
|
6759
6770
|
return (options.client ?? client).post({
|
|
6760
|
-
url: "/v1/projects/{project_id}/webhooks/{webhook_id}
|
|
6771
|
+
url: "/v1/projects/{project_id}/webhooks/{webhook_id}/rotate-secret",
|
|
6761
6772
|
...options
|
|
6762
6773
|
});
|
|
6763
6774
|
}
|
|
@@ -6790,14 +6801,14 @@ var Webhooks = class {
|
|
|
6790
6801
|
/**
|
|
6791
6802
|
* Redeliver an event
|
|
6792
6803
|
*
|
|
6793
|
-
* Queue the same event at the same endpoint again — the recovery path for a delivery that failed, or one your receiver dropped.
|
|
6804
|
+
* Queue the same event at the same endpoint again — the recovery path for a delivery that failed, or one your receiver dropped.
|
|
6794
6805
|
* 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.
|
|
6795
6806
|
* An inactive webhook is refused with `409 WEBHOOK_INACTIVE`.
|
|
6796
6807
|
*
|
|
6797
6808
|
*/
|
|
6798
6809
|
static redeliverWebhookDelivery(options) {
|
|
6799
6810
|
return (options.client ?? client).post({
|
|
6800
|
-
url: "/v1/projects/{project_id}/webhook-deliveries/{delivery_id}
|
|
6811
|
+
url: "/v1/projects/{project_id}/webhook-deliveries/{delivery_id}/redeliver",
|
|
6801
6812
|
...options
|
|
6802
6813
|
});
|
|
6803
6814
|
}
|