@naturali/cli 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.mjs +175 -19
- 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.286.0";
|
|
21
21
|
//#endregion
|
|
22
22
|
//#region ../sdk/src/generated/core/bodySerializer.gen.ts
|
|
23
23
|
const serializeFormDataPair = (data, key, value) => {
|
|
@@ -1695,7 +1695,7 @@ var ApiKeys = class {
|
|
|
1695
1695
|
scheme: "bearer",
|
|
1696
1696
|
type: "http"
|
|
1697
1697
|
}],
|
|
1698
|
-
url: "/v1/api-keys/{api_key_id}
|
|
1698
|
+
url: "/v1/api-keys/{api_key_id}/rotate",
|
|
1699
1699
|
...options
|
|
1700
1700
|
});
|
|
1701
1701
|
}
|
|
@@ -5919,7 +5919,7 @@ var Tasks = class {
|
|
|
5919
5919
|
/**
|
|
5920
5920
|
* List tasks
|
|
5921
5921
|
*
|
|
5922
|
-
* 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.
|
|
5922
|
+
* 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.
|
|
5923
5923
|
*/
|
|
5924
5924
|
static listTasks(options) {
|
|
5925
5925
|
return (options.client ?? client).get({
|
|
@@ -5943,6 +5943,17 @@ var Tasks = class {
|
|
|
5943
5943
|
});
|
|
5944
5944
|
}
|
|
5945
5945
|
/**
|
|
5946
|
+
* Get a task graph
|
|
5947
|
+
*
|
|
5948
|
+
* 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`.
|
|
5949
|
+
*/
|
|
5950
|
+
static getTaskGraph(options) {
|
|
5951
|
+
return (options.client ?? client).get({
|
|
5952
|
+
url: "/v1/projects/{project_id}/tasks/graph",
|
|
5953
|
+
...options
|
|
5954
|
+
});
|
|
5955
|
+
}
|
|
5956
|
+
/**
|
|
5946
5957
|
* Delete a task
|
|
5947
5958
|
*
|
|
5948
5959
|
* Deletes a task. Its transition history and dependencies cascade; a dependent it was the last open dependency of is freed.
|
|
@@ -6742,7 +6753,7 @@ var Webhooks = class {
|
|
|
6742
6753
|
/**
|
|
6743
6754
|
* Get a webhook
|
|
6744
6755
|
*
|
|
6745
|
-
* 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}
|
|
6756
|
+
* 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).
|
|
6746
6757
|
*
|
|
6747
6758
|
*/
|
|
6748
6759
|
static getWebhook(options) {
|
|
@@ -6771,13 +6782,13 @@ var Webhooks = class {
|
|
|
6771
6782
|
/**
|
|
6772
6783
|
* Rotate the signing secret
|
|
6773
6784
|
*
|
|
6774
|
-
* Issues a new signing secret for the same endpoint and returns it — the second and last time a secret is ever returned.
|
|
6785
|
+
* Issues a new signing secret for the same endpoint and returns it — the second and last time a secret is ever returned.
|
|
6775
6786
|
* 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.
|
|
6776
6787
|
*
|
|
6777
6788
|
*/
|
|
6778
6789
|
static rotateWebhookSecret(options) {
|
|
6779
6790
|
return (options.client ?? client).post({
|
|
6780
|
-
url: "/v1/projects/{project_id}/webhooks/{webhook_id}
|
|
6791
|
+
url: "/v1/projects/{project_id}/webhooks/{webhook_id}/rotate-secret",
|
|
6781
6792
|
...options
|
|
6782
6793
|
});
|
|
6783
6794
|
}
|
|
@@ -6810,14 +6821,14 @@ var Webhooks = class {
|
|
|
6810
6821
|
/**
|
|
6811
6822
|
* Redeliver an event
|
|
6812
6823
|
*
|
|
6813
|
-
* Queue the same event at the same endpoint again — the recovery path for a delivery that failed, or one your receiver dropped.
|
|
6824
|
+
* Queue the same event at the same endpoint again — the recovery path for a delivery that failed, or one your receiver dropped.
|
|
6814
6825
|
* 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.
|
|
6815
6826
|
* An inactive webhook is refused with `409 WEBHOOK_INACTIVE`.
|
|
6816
6827
|
*
|
|
6817
6828
|
*/
|
|
6818
6829
|
static redeliverWebhookDelivery(options) {
|
|
6819
6830
|
return (options.client ?? client).post({
|
|
6820
|
-
url: "/v1/projects/{project_id}/webhook-deliveries/{delivery_id}
|
|
6831
|
+
url: "/v1/projects/{project_id}/webhook-deliveries/{delivery_id}/redeliver",
|
|
6821
6832
|
...options
|
|
6822
6833
|
});
|
|
6823
6834
|
}
|
|
@@ -10115,6 +10126,13 @@ const routes = {
|
|
|
10115
10126
|
"type": "boolean",
|
|
10116
10127
|
"in": "body"
|
|
10117
10128
|
},
|
|
10129
|
+
{
|
|
10130
|
+
"name": "model_input_modalities",
|
|
10131
|
+
"description": "Model name (or alias) → the input modalities it accepts. A message part of a modality its model lacks is refused with `INPUT_MODALITY_UNSUPPORTED` (400) before the provider is called; a model absent from the map is sent every part.",
|
|
10132
|
+
"required": false,
|
|
10133
|
+
"type": "object",
|
|
10134
|
+
"in": "body"
|
|
10135
|
+
},
|
|
10118
10136
|
{
|
|
10119
10137
|
"name": "require_priced_model",
|
|
10120
10138
|
"description": "When `true`, a generation on this provider whose model no price-book row covers is refused with `MODEL_NOT_PRICED` (409) before the provider is called, as the project's `require_priced_model` does for every provider of the project.",
|
|
@@ -10229,6 +10247,13 @@ const routes = {
|
|
|
10229
10247
|
"type": "boolean",
|
|
10230
10248
|
"in": "body"
|
|
10231
10249
|
},
|
|
10250
|
+
{
|
|
10251
|
+
"name": "model_input_modalities",
|
|
10252
|
+
"description": "Model name (or alias) → the input modalities it accepts. A message part of a modality its model lacks is refused with `INPUT_MODALITY_UNSUPPORTED` (400) before the provider is called; a model absent from the map is sent every part. Replaces the whole map; `null` clears it.",
|
|
10253
|
+
"required": false,
|
|
10254
|
+
"type": "object",
|
|
10255
|
+
"in": "body"
|
|
10256
|
+
},
|
|
10232
10257
|
{
|
|
10233
10258
|
"name": "require_priced_model",
|
|
10234
10259
|
"description": "When `true`, a generation on this provider whose model no price-book row covers is refused with `MODEL_NOT_PRICED` (409) before the provider is called, as the project's `require_priced_model` does for every provider of the project.",
|
|
@@ -13140,6 +13165,13 @@ const routes = {
|
|
|
13140
13165
|
"required": false,
|
|
13141
13166
|
"type": "object",
|
|
13142
13167
|
"in": "body"
|
|
13168
|
+
},
|
|
13169
|
+
{
|
|
13170
|
+
"name": "file_ids",
|
|
13171
|
+
"description": "Files a `user` turn sends the model natively, in this order, each a file of the conversation's project the caller may download (`files:DownloadFile`). Refused on an `assistant` turn.",
|
|
13172
|
+
"required": false,
|
|
13173
|
+
"type": "array",
|
|
13174
|
+
"in": "body"
|
|
13143
13175
|
}
|
|
13144
13176
|
]
|
|
13145
13177
|
},
|
|
@@ -24447,6 +24479,13 @@ const routes = {
|
|
|
24447
24479
|
"type": "string",
|
|
24448
24480
|
"in": "body"
|
|
24449
24481
|
},
|
|
24482
|
+
{
|
|
24483
|
+
"name": "file_ids",
|
|
24484
|
+
"description": "Files the turn sends the model natively, in this order, with or without `message`. Each is a file of the session's project the caller may download (`files:DownloadFile`).",
|
|
24485
|
+
"required": false,
|
|
24486
|
+
"type": "array",
|
|
24487
|
+
"in": "body"
|
|
24488
|
+
},
|
|
24450
24489
|
{
|
|
24451
24490
|
"name": "tool_context",
|
|
24452
24491
|
"description": "Key-value pairs forwarded as `X-Naturali-Context-<key>` headers on every `http`, `mcp` and `builtin` tool call in this generation. The header name is the deployment's configured context prefix (`X-Naturali-Context-` by default) plus the key verbatim — no character is re-cased. Keys are never case-converted — they round-trip exactly as sent. An invalid or colliding key is rejected with `400 INVALID_TOOL_CONTEXT_KEY`.",
|
|
@@ -24456,7 +24495,7 @@ const routes = {
|
|
|
24456
24495
|
},
|
|
24457
24496
|
{
|
|
24458
24497
|
"name": "idempotency_key",
|
|
24459
|
-
"description": "Optional deduplication key scoped to this session. If a message with the same key already exists in the session, the original message is returned with HTTP 200 and no new message or generation is triggered. Reusing the key with a different `message`, `document_id` or `tool_context` is `409 IDEMPOTENCY_KEY_REUSED`.\n",
|
|
24498
|
+
"description": "Optional deduplication key scoped to this session. If a message with the same key already exists in the session, the original message is returned with HTTP 200 and no new message or generation is triggered. Reusing the key with a different `message`, `file_ids`, `document_id` or `tool_context` is `409 IDEMPOTENCY_KEY_REUSED`.\n",
|
|
24460
24499
|
"required": false,
|
|
24461
24500
|
"type": "string",
|
|
24462
24501
|
"in": "body"
|
|
@@ -24764,11 +24803,12 @@ const routes = {
|
|
|
24764
24803
|
"list-tasks": {
|
|
24765
24804
|
serviceClass: "Tasks",
|
|
24766
24805
|
operationId: "listTasks",
|
|
24767
|
-
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.",
|
|
24806
|
+
description: "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.",
|
|
24768
24807
|
moduleDocsUrl: "https://naturali.ai/docs/modules/tasks",
|
|
24769
24808
|
httpMethod: "get",
|
|
24770
|
-
pathParams: [
|
|
24809
|
+
pathParams: [],
|
|
24771
24810
|
queryParams: [
|
|
24811
|
+
"project_id",
|
|
24772
24812
|
"workflow_id",
|
|
24773
24813
|
"state",
|
|
24774
24814
|
"status",
|
|
@@ -24776,6 +24816,7 @@ const routes = {
|
|
|
24776
24816
|
"priority",
|
|
24777
24817
|
"assignee",
|
|
24778
24818
|
"blocked",
|
|
24819
|
+
"upstream_of",
|
|
24779
24820
|
"metadata",
|
|
24780
24821
|
"order",
|
|
24781
24822
|
"limit",
|
|
@@ -24786,10 +24827,10 @@ const routes = {
|
|
|
24786
24827
|
flags: [
|
|
24787
24828
|
{
|
|
24788
24829
|
"name": "project_id",
|
|
24789
|
-
"description": "
|
|
24790
|
-
"required":
|
|
24830
|
+
"description": "Only the tasks of this project. Omitted, every project the caller reads.",
|
|
24831
|
+
"required": false,
|
|
24791
24832
|
"type": "string",
|
|
24792
|
-
"in": "
|
|
24833
|
+
"in": "query"
|
|
24793
24834
|
},
|
|
24794
24835
|
{
|
|
24795
24836
|
"name": "workflow_id",
|
|
@@ -24800,7 +24841,7 @@ const routes = {
|
|
|
24800
24841
|
},
|
|
24801
24842
|
{
|
|
24802
24843
|
"name": "state",
|
|
24803
|
-
"description": "",
|
|
24844
|
+
"description": "Only the tasks in this workflow state.",
|
|
24804
24845
|
"required": false,
|
|
24805
24846
|
"type": "string",
|
|
24806
24847
|
"in": "query"
|
|
@@ -24828,7 +24869,7 @@ const routes = {
|
|
|
24828
24869
|
},
|
|
24829
24870
|
{
|
|
24830
24871
|
"name": "assignee",
|
|
24831
|
-
"description": "",
|
|
24872
|
+
"description": "Only the tasks assigned to this value.",
|
|
24832
24873
|
"required": false,
|
|
24833
24874
|
"type": "string",
|
|
24834
24875
|
"in": "query"
|
|
@@ -24840,6 +24881,13 @@ const routes = {
|
|
|
24840
24881
|
"type": "string",
|
|
24841
24882
|
"in": "query"
|
|
24842
24883
|
},
|
|
24884
|
+
{
|
|
24885
|
+
"name": "upstream_of",
|
|
24886
|
+
"description": "Only the tasks this task depends on, directly or through others, closed ones included; never the task itself. An unknown id selects nothing. With `blocked=false&order=next` it pulls the next task toward it.",
|
|
24887
|
+
"required": false,
|
|
24888
|
+
"type": "string",
|
|
24889
|
+
"in": "query"
|
|
24890
|
+
},
|
|
24843
24891
|
{
|
|
24844
24892
|
"name": "metadata",
|
|
24845
24893
|
"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.",
|
|
@@ -24953,6 +25001,100 @@ const routes = {
|
|
|
24953
25001
|
}
|
|
24954
25002
|
]
|
|
24955
25003
|
},
|
|
25004
|
+
"get-task-graph": {
|
|
25005
|
+
serviceClass: "Tasks",
|
|
25006
|
+
operationId: "getTaskGraph",
|
|
25007
|
+
description: "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`.",
|
|
25008
|
+
moduleDocsUrl: "https://naturali.ai/docs/modules/tasks",
|
|
25009
|
+
httpMethod: "get",
|
|
25010
|
+
pathParams: [],
|
|
25011
|
+
queryParams: [
|
|
25012
|
+
"project_id",
|
|
25013
|
+
"workflow_id",
|
|
25014
|
+
"state",
|
|
25015
|
+
"status",
|
|
25016
|
+
"automation_status",
|
|
25017
|
+
"priority",
|
|
25018
|
+
"assignee",
|
|
25019
|
+
"blocked",
|
|
25020
|
+
"upstream_of",
|
|
25021
|
+
"metadata"
|
|
25022
|
+
],
|
|
25023
|
+
headerParams: [],
|
|
25024
|
+
cookieParams: [],
|
|
25025
|
+
flags: [
|
|
25026
|
+
{
|
|
25027
|
+
"name": "project_id",
|
|
25028
|
+
"description": "Only the tasks of this project. Omitted, every project the caller reads.",
|
|
25029
|
+
"required": false,
|
|
25030
|
+
"type": "string",
|
|
25031
|
+
"in": "query"
|
|
25032
|
+
},
|
|
25033
|
+
{
|
|
25034
|
+
"name": "workflow_id",
|
|
25035
|
+
"description": "Only the tasks of this workflow.",
|
|
25036
|
+
"required": false,
|
|
25037
|
+
"type": "string",
|
|
25038
|
+
"in": "query"
|
|
25039
|
+
},
|
|
25040
|
+
{
|
|
25041
|
+
"name": "state",
|
|
25042
|
+
"description": "Only the tasks in this workflow state.",
|
|
25043
|
+
"required": false,
|
|
25044
|
+
"type": "string",
|
|
25045
|
+
"in": "query"
|
|
25046
|
+
},
|
|
25047
|
+
{
|
|
25048
|
+
"name": "status",
|
|
25049
|
+
"description": "Filter by whether the task is open or closed. Repeat the parameter to OR values. A value outside the enum, empty string included, is a `400`.",
|
|
25050
|
+
"required": false,
|
|
25051
|
+
"type": "array",
|
|
25052
|
+
"in": "query"
|
|
25053
|
+
},
|
|
25054
|
+
{
|
|
25055
|
+
"name": "automation_status",
|
|
25056
|
+
"description": "Filter by the current state's dispatch status. Repeat the parameter to OR values. `none` selects the tasks whose `automation_status` is `null` — the ones that never entered a state with an automation. It is a value a task really holds, so it is a value of the filter too; the parameter's own absence already means \"every task\".\n\nA value outside the enum, empty string included, is a `400`.",
|
|
25057
|
+
"required": false,
|
|
25058
|
+
"type": "array",
|
|
25059
|
+
"in": "query"
|
|
25060
|
+
},
|
|
25061
|
+
{
|
|
25062
|
+
"name": "priority",
|
|
25063
|
+
"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`.",
|
|
25064
|
+
"required": false,
|
|
25065
|
+
"type": "array",
|
|
25066
|
+
"in": "query"
|
|
25067
|
+
},
|
|
25068
|
+
{
|
|
25069
|
+
"name": "assignee",
|
|
25070
|
+
"description": "Only the tasks assigned to this value.",
|
|
25071
|
+
"required": false,
|
|
25072
|
+
"type": "string",
|
|
25073
|
+
"in": "query"
|
|
25074
|
+
},
|
|
25075
|
+
{
|
|
25076
|
+
"name": "blocked",
|
|
25077
|
+
"description": "`true` lists only the tasks with an open dependency (`readiness.blocked`), `false` only the rest.",
|
|
25078
|
+
"required": false,
|
|
25079
|
+
"type": "string",
|
|
25080
|
+
"in": "query"
|
|
25081
|
+
},
|
|
25082
|
+
{
|
|
25083
|
+
"name": "upstream_of",
|
|
25084
|
+
"description": "Only the tasks this task depends on, directly or through others, closed ones included; never the task itself. An unknown id selects nothing. With `blocked=false&order=next` it pulls the next task toward it.",
|
|
25085
|
+
"required": false,
|
|
25086
|
+
"type": "string",
|
|
25087
|
+
"in": "query"
|
|
25088
|
+
},
|
|
25089
|
+
{
|
|
25090
|
+
"name": "metadata",
|
|
25091
|
+
"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.",
|
|
25092
|
+
"required": false,
|
|
25093
|
+
"type": "string",
|
|
25094
|
+
"in": "query"
|
|
25095
|
+
}
|
|
25096
|
+
]
|
|
25097
|
+
},
|
|
24956
25098
|
"get-task": {
|
|
24957
25099
|
serviceClass: "Tasks",
|
|
24958
25100
|
operationId: "getTask",
|
|
@@ -25739,6 +25881,13 @@ const routes = {
|
|
|
25739
25881
|
"type": "object",
|
|
25740
25882
|
"in": "body"
|
|
25741
25883
|
},
|
|
25884
|
+
{
|
|
25885
|
+
"name": "preset_parameters_by_action",
|
|
25886
|
+
"description": "For `builtin` tools: presets per action, keyed by a name in `actions`. An action receives `preset_parameters` with its own entry's keys over them, key by key; an action with no entry receives `preset_parameters` alone. Each action's model-visible schema hides only that action's effective keys. Every key the effective preset of an action the tool can run (in `actions`, not in `denied_actions`) carries must be a parameter that action declares (a tool-level `action`, which selects the action of a direct call, is exempt): otherwise the write is `400 VALIDATION_FAILED`, with `meta.problems` naming the key path and the action. Values accept `{{context:<key>}}` references, as `preset_parameters` does.",
|
|
25887
|
+
"required": false,
|
|
25888
|
+
"type": "object",
|
|
25889
|
+
"in": "body"
|
|
25890
|
+
},
|
|
25742
25891
|
{
|
|
25743
25892
|
"name": "pipeline",
|
|
25744
25893
|
"description": "Pipeline definition for `pipeline` tools. See the `pipeline` field on the Tool schema for the full structure.",
|
|
@@ -25895,6 +26044,13 @@ const routes = {
|
|
|
25895
26044
|
"type": "object",
|
|
25896
26045
|
"in": "body"
|
|
25897
26046
|
},
|
|
26047
|
+
{
|
|
26048
|
+
"name": "preset_parameters_by_action",
|
|
26049
|
+
"description": "For `builtin` tools: presets per action, keyed by a name in `actions`. An action receives `preset_parameters` with its own entry's keys over them, key by key; an action with no entry receives `preset_parameters` alone. Each action's model-visible schema hides only that action's effective keys. Every key the effective preset of an action the tool can run (in `actions`, not in `denied_actions`) carries must be a parameter that action declares (a tool-level `action`, which selects the action of a direct call, is exempt): otherwise the write is `400 VALIDATION_FAILED`, with `meta.problems` naming the key path and the action. Values accept `{{context:<key>}}` references, as `preset_parameters` does.",
|
|
26050
|
+
"required": false,
|
|
26051
|
+
"type": "object",
|
|
26052
|
+
"in": "body"
|
|
26053
|
+
},
|
|
25898
26054
|
{
|
|
25899
26055
|
"name": "pipeline",
|
|
25900
26056
|
"description": "Pipeline definition for `pipeline` tools. See the `pipeline` field on the Tool schema for the full structure.",
|
|
@@ -27151,7 +27307,7 @@ const routes = {
|
|
|
27151
27307
|
"get-webhook": {
|
|
27152
27308
|
serviceClass: "Webhooks",
|
|
27153
27309
|
operationId: "getWebhook",
|
|
27154
|
-
description: "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}
|
|
27310
|
+
description: "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).",
|
|
27155
27311
|
moduleDocsUrl: "https://naturali.ai/docs/modules/webhooks",
|
|
27156
27312
|
httpMethod: "get",
|
|
27157
27313
|
pathParams: ["project_id", "webhook_id"],
|
|
@@ -27261,7 +27417,7 @@ const routes = {
|
|
|
27261
27417
|
"rotate-webhook-secret": {
|
|
27262
27418
|
serviceClass: "Webhooks",
|
|
27263
27419
|
operationId: "rotateWebhookSecret",
|
|
27264
|
-
description: "Issues a new signing secret for the same endpoint and returns it — the second and last time a secret is ever returned.
|
|
27420
|
+
description: "Issues a new signing secret for the same endpoint and returns it — the second and last time a secret is ever returned. 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.",
|
|
27265
27421
|
moduleDocsUrl: "https://naturali.ai/docs/modules/webhooks",
|
|
27266
27422
|
httpMethod: "post",
|
|
27267
27423
|
pathParams: ["project_id", "webhook_id"],
|
|
@@ -27370,7 +27526,7 @@ const routes = {
|
|
|
27370
27526
|
"redeliver-webhook-delivery": {
|
|
27371
27527
|
serviceClass: "Webhooks",
|
|
27372
27528
|
operationId: "redeliverWebhookDelivery",
|
|
27373
|
-
description: "Queue the same event at the same endpoint again — the recovery path for a delivery that failed, or one your receiver dropped.
|
|
27529
|
+
description: "Queue the same event at the same endpoint again — the recovery path for a delivery that failed, or one your receiver dropped. 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. An inactive webhook is refused with `409 WEBHOOK_INACTIVE`.",
|
|
27374
27530
|
moduleDocsUrl: "https://naturali.ai/docs/modules/webhooks",
|
|
27375
27531
|
httpMethod: "post",
|
|
27376
27532
|
pathParams: ["project_id", "delivery_id"],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@naturali/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.286.0",
|
|
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.286.0",
|
|
35
35
|
"@ttoss/openapi-codegen": "^0.10.1",
|
|
36
36
|
"@types/node": "^26.5.1",
|
|
37
37
|
"tsdown": "^0.23.0",
|