@naturali/sdk 0.78.3 → 0.78.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 +4 -2
- package/dist/index.d.cts +21 -3
- package/dist/index.d.mts +21 -3
- package/dist/index.mjs +4 -2
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -2466,7 +2466,9 @@ var Generations = class {
|
|
|
2466
2466
|
/**
|
|
2467
2467
|
* List generations
|
|
2468
2468
|
*
|
|
2469
|
-
* Returns generations the caller can access, optionally filtered by agent, trace, and status. Replaces the former per-trace generations endpoint (use the trace_id query filter).
|
|
2469
|
+
* Returns generations the caller can access, optionally filtered by agent, trace, orchestration run, node, and status. Replaces the former per-trace generations endpoint (use the trace_id query filter).
|
|
2470
|
+
*
|
|
2471
|
+
* Filtering by `orchestration_run_id` is the supported way to get from an orchestration run to the generations its agent nodes produced: a node execution record carries no generation id, so the pointer lives here, alongside the run's other attribution columns.
|
|
2470
2472
|
*
|
|
2471
2473
|
*/
|
|
2472
2474
|
static listGenerations(options) {
|
|
@@ -2508,7 +2510,7 @@ var Generations = class {
|
|
|
2508
2510
|
*
|
|
2509
2511
|
* Clears the generation's content — `metadata`, `error`, `extraction`, and the internal recovery state of a paused run — and stamps `content_redacted_at`.
|
|
2510
2512
|
*
|
|
2511
|
-
* The usage and audit skeleton is preserved: ids, timestamps, status, stop reason, and the attribution fields (`action_id`, `trigger_id`, `orchestration_run_id`, `node_id`, `agent_version`, `routing`) the billing ledger reads. A purged generation reads back as that skeleton, not a 404.
|
|
2513
|
+
* The usage and audit skeleton is preserved: ids, timestamps, status, stop reason, and the attribution fields (`action_id`, `trigger_id`, `orchestration_run_id`, `node_id`, `node_attempt`, `agent_version`, `routing`) the billing ledger reads. A purged generation reads back as that skeleton, not a 404.
|
|
2512
2514
|
*
|
|
2513
2515
|
* This does **not** delete the parent trace's steps object, which holds this generation's content alongside its siblings'. To erase the run's content completely, purge the trace (`DELETE /v1/projects/{project_id}/traces/{trace_id}/content`), which cascades here.
|
|
2514
2516
|
*
|
package/dist/index.d.cts
CHANGED
|
@@ -2628,6 +2628,11 @@ type Generation = {
|
|
|
2628
2628
|
*
|
|
2629
2629
|
*/
|
|
2630
2630
|
node_id?: string | null;
|
|
2631
|
+
/**
|
|
2632
|
+
* The node's 1-based retry attempt, completing the run + node + attempt replay identity. A retried node produces one generation per attempt; this is what tells them apart. Null for a generation no orchestration node dispatched.
|
|
2633
|
+
*
|
|
2634
|
+
*/
|
|
2635
|
+
node_attempt?: number | null;
|
|
2631
2636
|
/**
|
|
2632
2637
|
* Agent config version that served this generation, resolved by the served-version resolver (see [agent versions](/docs/modules/agents#versions-and-releases)).
|
|
2633
2638
|
*
|
|
@@ -11291,6 +11296,16 @@ type ListGenerationsData = {
|
|
|
11291
11296
|
*
|
|
11292
11297
|
*/
|
|
11293
11298
|
initiator_generation_id?: string;
|
|
11299
|
+
/**
|
|
11300
|
+
* Filter by the orchestration run that dispatched the generation. This is how a run is traced back to what its agent nodes did — a node execution record stores no generation id.
|
|
11301
|
+
*
|
|
11302
|
+
*/
|
|
11303
|
+
orchestration_run_id?: string;
|
|
11304
|
+
/**
|
|
11305
|
+
* Filter by the orchestration node that dispatched the generation. Combine with `orchestration_run_id` to narrow to one node of one run; a retried node returns one generation per `node_attempt`.
|
|
11306
|
+
*
|
|
11307
|
+
*/
|
|
11308
|
+
node_id?: string;
|
|
11294
11309
|
/**
|
|
11295
11310
|
* Filter by lifecycle status
|
|
11296
11311
|
*/
|
|
@@ -15406,7 +15421,8 @@ type CallToolErrors = {
|
|
|
15406
15421
|
*/
|
|
15407
15422
|
401: ErrorResponse;
|
|
15408
15423
|
/**
|
|
15409
|
-
* Forbidden
|
|
15424
|
+
* Forbidden — the caller lacks permission, or the tool's target is blocked by the deployment's egress policy (TOOL_EGRESS_BLOCKED). An `http`/`mcp` tool may only reach publicly routable addresses unless the destination is listed in the server's TOOL_EGRESS_ALLOWED_HOSTS; the check runs against the resolved address and on every redirect hop, so `meta.tool_address` names the address that was refused.
|
|
15425
|
+
*
|
|
15410
15426
|
*/
|
|
15411
15427
|
403: ErrorResponse;
|
|
15412
15428
|
/**
|
|
@@ -17626,7 +17642,9 @@ declare class Generations {
|
|
|
17626
17642
|
/**
|
|
17627
17643
|
* List generations
|
|
17628
17644
|
*
|
|
17629
|
-
* Returns generations the caller can access, optionally filtered by agent, trace, and status. Replaces the former per-trace generations endpoint (use the trace_id query filter).
|
|
17645
|
+
* Returns generations the caller can access, optionally filtered by agent, trace, orchestration run, node, and status. Replaces the former per-trace generations endpoint (use the trace_id query filter).
|
|
17646
|
+
*
|
|
17647
|
+
* Filtering by `orchestration_run_id` is the supported way to get from an orchestration run to the generations its agent nodes produced: a node execution record carries no generation id, so the pointer lives here, alongside the run's other attribution columns.
|
|
17630
17648
|
*
|
|
17631
17649
|
*/
|
|
17632
17650
|
static listGenerations<ThrowOnError extends boolean = false>(options: Options<ListGenerationsData, ThrowOnError>): RequestResult<ListGenerationsResponses, ListGenerationsErrors, ThrowOnError>;
|
|
@@ -17649,7 +17667,7 @@ declare class Generations {
|
|
|
17649
17667
|
*
|
|
17650
17668
|
* Clears the generation's content — `metadata`, `error`, `extraction`, and the internal recovery state of a paused run — and stamps `content_redacted_at`.
|
|
17651
17669
|
*
|
|
17652
|
-
* The usage and audit skeleton is preserved: ids, timestamps, status, stop reason, and the attribution fields (`action_id`, `trigger_id`, `orchestration_run_id`, `node_id`, `agent_version`, `routing`) the billing ledger reads. A purged generation reads back as that skeleton, not a 404.
|
|
17670
|
+
* The usage and audit skeleton is preserved: ids, timestamps, status, stop reason, and the attribution fields (`action_id`, `trigger_id`, `orchestration_run_id`, `node_id`, `node_attempt`, `agent_version`, `routing`) the billing ledger reads. A purged generation reads back as that skeleton, not a 404.
|
|
17653
17671
|
*
|
|
17654
17672
|
* This does **not** delete the parent trace's steps object, which holds this generation's content alongside its siblings'. To erase the run's content completely, purge the trace (`DELETE /v1/projects/{project_id}/traces/{trace_id}/content`), which cascades here.
|
|
17655
17673
|
*
|
package/dist/index.d.mts
CHANGED
|
@@ -2628,6 +2628,11 @@ type Generation = {
|
|
|
2628
2628
|
*
|
|
2629
2629
|
*/
|
|
2630
2630
|
node_id?: string | null;
|
|
2631
|
+
/**
|
|
2632
|
+
* The node's 1-based retry attempt, completing the run + node + attempt replay identity. A retried node produces one generation per attempt; this is what tells them apart. Null for a generation no orchestration node dispatched.
|
|
2633
|
+
*
|
|
2634
|
+
*/
|
|
2635
|
+
node_attempt?: number | null;
|
|
2631
2636
|
/**
|
|
2632
2637
|
* Agent config version that served this generation, resolved by the served-version resolver (see [agent versions](/docs/modules/agents#versions-and-releases)).
|
|
2633
2638
|
*
|
|
@@ -11291,6 +11296,16 @@ type ListGenerationsData = {
|
|
|
11291
11296
|
*
|
|
11292
11297
|
*/
|
|
11293
11298
|
initiator_generation_id?: string;
|
|
11299
|
+
/**
|
|
11300
|
+
* Filter by the orchestration run that dispatched the generation. This is how a run is traced back to what its agent nodes did — a node execution record stores no generation id.
|
|
11301
|
+
*
|
|
11302
|
+
*/
|
|
11303
|
+
orchestration_run_id?: string;
|
|
11304
|
+
/**
|
|
11305
|
+
* Filter by the orchestration node that dispatched the generation. Combine with `orchestration_run_id` to narrow to one node of one run; a retried node returns one generation per `node_attempt`.
|
|
11306
|
+
*
|
|
11307
|
+
*/
|
|
11308
|
+
node_id?: string;
|
|
11294
11309
|
/**
|
|
11295
11310
|
* Filter by lifecycle status
|
|
11296
11311
|
*/
|
|
@@ -15406,7 +15421,8 @@ type CallToolErrors = {
|
|
|
15406
15421
|
*/
|
|
15407
15422
|
401: ErrorResponse;
|
|
15408
15423
|
/**
|
|
15409
|
-
* Forbidden
|
|
15424
|
+
* Forbidden — the caller lacks permission, or the tool's target is blocked by the deployment's egress policy (TOOL_EGRESS_BLOCKED). An `http`/`mcp` tool may only reach publicly routable addresses unless the destination is listed in the server's TOOL_EGRESS_ALLOWED_HOSTS; the check runs against the resolved address and on every redirect hop, so `meta.tool_address` names the address that was refused.
|
|
15425
|
+
*
|
|
15410
15426
|
*/
|
|
15411
15427
|
403: ErrorResponse;
|
|
15412
15428
|
/**
|
|
@@ -17626,7 +17642,9 @@ declare class Generations {
|
|
|
17626
17642
|
/**
|
|
17627
17643
|
* List generations
|
|
17628
17644
|
*
|
|
17629
|
-
* Returns generations the caller can access, optionally filtered by agent, trace, and status. Replaces the former per-trace generations endpoint (use the trace_id query filter).
|
|
17645
|
+
* Returns generations the caller can access, optionally filtered by agent, trace, orchestration run, node, and status. Replaces the former per-trace generations endpoint (use the trace_id query filter).
|
|
17646
|
+
*
|
|
17647
|
+
* Filtering by `orchestration_run_id` is the supported way to get from an orchestration run to the generations its agent nodes produced: a node execution record carries no generation id, so the pointer lives here, alongside the run's other attribution columns.
|
|
17630
17648
|
*
|
|
17631
17649
|
*/
|
|
17632
17650
|
static listGenerations<ThrowOnError extends boolean = false>(options: Options<ListGenerationsData, ThrowOnError>): RequestResult<ListGenerationsResponses, ListGenerationsErrors, ThrowOnError>;
|
|
@@ -17649,7 +17667,7 @@ declare class Generations {
|
|
|
17649
17667
|
*
|
|
17650
17668
|
* Clears the generation's content — `metadata`, `error`, `extraction`, and the internal recovery state of a paused run — and stamps `content_redacted_at`.
|
|
17651
17669
|
*
|
|
17652
|
-
* The usage and audit skeleton is preserved: ids, timestamps, status, stop reason, and the attribution fields (`action_id`, `trigger_id`, `orchestration_run_id`, `node_id`, `agent_version`, `routing`) the billing ledger reads. A purged generation reads back as that skeleton, not a 404.
|
|
17670
|
+
* The usage and audit skeleton is preserved: ids, timestamps, status, stop reason, and the attribution fields (`action_id`, `trigger_id`, `orchestration_run_id`, `node_id`, `node_attempt`, `agent_version`, `routing`) the billing ledger reads. A purged generation reads back as that skeleton, not a 404.
|
|
17653
17671
|
*
|
|
17654
17672
|
* This does **not** delete the parent trace's steps object, which holds this generation's content alongside its siblings'. To erase the run's content completely, purge the trace (`DELETE /v1/projects/{project_id}/traces/{trace_id}/content`), which cascades here.
|
|
17655
17673
|
*
|
package/dist/index.mjs
CHANGED
|
@@ -2465,7 +2465,9 @@ var Generations = class {
|
|
|
2465
2465
|
/**
|
|
2466
2466
|
* List generations
|
|
2467
2467
|
*
|
|
2468
|
-
* Returns generations the caller can access, optionally filtered by agent, trace, and status. Replaces the former per-trace generations endpoint (use the trace_id query filter).
|
|
2468
|
+
* Returns generations the caller can access, optionally filtered by agent, trace, orchestration run, node, and status. Replaces the former per-trace generations endpoint (use the trace_id query filter).
|
|
2469
|
+
*
|
|
2470
|
+
* Filtering by `orchestration_run_id` is the supported way to get from an orchestration run to the generations its agent nodes produced: a node execution record carries no generation id, so the pointer lives here, alongside the run's other attribution columns.
|
|
2469
2471
|
*
|
|
2470
2472
|
*/
|
|
2471
2473
|
static listGenerations(options) {
|
|
@@ -2507,7 +2509,7 @@ var Generations = class {
|
|
|
2507
2509
|
*
|
|
2508
2510
|
* Clears the generation's content — `metadata`, `error`, `extraction`, and the internal recovery state of a paused run — and stamps `content_redacted_at`.
|
|
2509
2511
|
*
|
|
2510
|
-
* The usage and audit skeleton is preserved: ids, timestamps, status, stop reason, and the attribution fields (`action_id`, `trigger_id`, `orchestration_run_id`, `node_id`, `agent_version`, `routing`) the billing ledger reads. A purged generation reads back as that skeleton, not a 404.
|
|
2512
|
+
* The usage and audit skeleton is preserved: ids, timestamps, status, stop reason, and the attribution fields (`action_id`, `trigger_id`, `orchestration_run_id`, `node_id`, `node_attempt`, `agent_version`, `routing`) the billing ledger reads. A purged generation reads back as that skeleton, not a 404.
|
|
2511
2513
|
*
|
|
2512
2514
|
* This does **not** delete the parent trace's steps object, which holds this generation's content alongside its siblings'. To erase the run's content completely, purge the trace (`DELETE /v1/projects/{project_id}/traces/{trace_id}/content`), which cascades here.
|
|
2513
2515
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@naturali/sdk",
|
|
3
|
-
"version": "0.78.
|
|
3
|
+
"version": "0.78.5",
|
|
4
4
|
"description": "TypeScript SDK for the naturali.ai API, generated from its OpenAPI specs",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"tsx": "^4.23.1",
|
|
38
38
|
"typescript": "~6.0.3",
|
|
39
39
|
"vitest": "^4.1.10",
|
|
40
|
-
"@naturali/api": "0.78.
|
|
40
|
+
"@naturali/api": "0.78.5"
|
|
41
41
|
},
|
|
42
42
|
"scripts": {
|
|
43
43
|
"generate": "tsx scripts/generate.ts",
|