@naturali/sdk 0.56.0 → 0.56.2

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 CHANGED
@@ -2205,6 +2205,7 @@ var Traces = class {
2205
2205
  *
2206
2206
  * Returns the trace's step payload: every step of the execution's model loop, exactly as the runtime recorded it — tool calls, their arguments, results and cost — passed through unreshaped rather than mapped to a narrower contract, since the payload is the runtime's own step shape.
2207
2207
  * Saving the payload is fire-and-forget on the runtime, so a trace can report `has_steps: false` for a short window after it finishes; this route 404s with `steps_not_available` during that window rather than returning an empty list, so a caller does not mistake "not saved yet" for "no steps ran".
2208
+ * A trace with no payload at all answers `steps_redacted` instead — its content was purged, or its agent runs in zero-retention and nothing was ever written. The distinction is the whole point of two codes: retrying `steps_not_available` succeeds once the write lands, while retrying `steps_redacted` can never succeed. The response carries `content_redacted_at` in `details`.
2208
2209
  *
2209
2210
  */
2210
2211
  static getTraceSteps(options) {
package/dist/index.d.cts CHANGED
@@ -2882,6 +2882,7 @@ type Trace = {
2882
2882
  step_count: number | null;
2883
2883
  /**
2884
2884
  * Whether the serialized step payload has been saved and is fetchable with `GET /v1/projects/{project_id}/traces/{trace_id}/steps`. Saving it is fire-and-forget upstream, so a very fresh trace can report `false` alongside a non-zero `step_count`; that route 404s with `steps_not_available` until this flips to `true`.
2885
+ * It also reads `false` when the content is not stored at all — purged, or never recorded under zero-retention. `content_redacted_at` is what tells the two apart: non-null means this will never flip, and that route answers `steps_redacted`.
2885
2886
  *
2886
2887
  */
2887
2888
  has_steps: boolean;
@@ -8071,7 +8072,7 @@ type GetTraceStepsErrors = {
8071
8072
  */
8072
8073
  401: ErrorResponse;
8073
8074
  /**
8074
- * The trace does not exist (or is not the caller's), or its step payload has not been saved yet (`steps_not_available`).
8075
+ * The trace does not exist (or is not the caller's), its step payload has not been saved yet (`steps_not_available`, worth retrying), or its content is not stored at all (`steps_redacted` — purged or never recorded, never worth retrying).
8075
8076
  *
8076
8077
  */
8077
8078
  404: ErrorResponse;
@@ -9642,6 +9643,7 @@ declare class Traces {
9642
9643
  *
9643
9644
  * Returns the trace's step payload: every step of the execution's model loop, exactly as the runtime recorded it — tool calls, their arguments, results and cost — passed through unreshaped rather than mapped to a narrower contract, since the payload is the runtime's own step shape.
9644
9645
  * Saving the payload is fire-and-forget on the runtime, so a trace can report `has_steps: false` for a short window after it finishes; this route 404s with `steps_not_available` during that window rather than returning an empty list, so a caller does not mistake "not saved yet" for "no steps ran".
9646
+ * A trace with no payload at all answers `steps_redacted` instead — its content was purged, or its agent runs in zero-retention and nothing was ever written. The distinction is the whole point of two codes: retrying `steps_not_available` succeeds once the write lands, while retrying `steps_redacted` can never succeed. The response carries `content_redacted_at` in `details`.
9645
9647
  *
9646
9648
  */
9647
9649
  static getTraceSteps<ThrowOnError extends boolean = false>(options: Options<GetTraceStepsData, ThrowOnError>): RequestResult<GetTraceStepsResponses, GetTraceStepsErrors, ThrowOnError>;
package/dist/index.d.mts CHANGED
@@ -2882,6 +2882,7 @@ type Trace = {
2882
2882
  step_count: number | null;
2883
2883
  /**
2884
2884
  * Whether the serialized step payload has been saved and is fetchable with `GET /v1/projects/{project_id}/traces/{trace_id}/steps`. Saving it is fire-and-forget upstream, so a very fresh trace can report `false` alongside a non-zero `step_count`; that route 404s with `steps_not_available` until this flips to `true`.
2885
+ * It also reads `false` when the content is not stored at all — purged, or never recorded under zero-retention. `content_redacted_at` is what tells the two apart: non-null means this will never flip, and that route answers `steps_redacted`.
2885
2886
  *
2886
2887
  */
2887
2888
  has_steps: boolean;
@@ -8071,7 +8072,7 @@ type GetTraceStepsErrors = {
8071
8072
  */
8072
8073
  401: ErrorResponse;
8073
8074
  /**
8074
- * The trace does not exist (or is not the caller's), or its step payload has not been saved yet (`steps_not_available`).
8075
+ * The trace does not exist (or is not the caller's), its step payload has not been saved yet (`steps_not_available`, worth retrying), or its content is not stored at all (`steps_redacted` — purged or never recorded, never worth retrying).
8075
8076
  *
8076
8077
  */
8077
8078
  404: ErrorResponse;
@@ -9642,6 +9643,7 @@ declare class Traces {
9642
9643
  *
9643
9644
  * Returns the trace's step payload: every step of the execution's model loop, exactly as the runtime recorded it — tool calls, their arguments, results and cost — passed through unreshaped rather than mapped to a narrower contract, since the payload is the runtime's own step shape.
9644
9645
  * Saving the payload is fire-and-forget on the runtime, so a trace can report `has_steps: false` for a short window after it finishes; this route 404s with `steps_not_available` during that window rather than returning an empty list, so a caller does not mistake "not saved yet" for "no steps ran".
9646
+ * A trace with no payload at all answers `steps_redacted` instead — its content was purged, or its agent runs in zero-retention and nothing was ever written. The distinction is the whole point of two codes: retrying `steps_not_available` succeeds once the write lands, while retrying `steps_redacted` can never succeed. The response carries `content_redacted_at` in `details`.
9645
9647
  *
9646
9648
  */
9647
9649
  static getTraceSteps<ThrowOnError extends boolean = false>(options: Options<GetTraceStepsData, ThrowOnError>): RequestResult<GetTraceStepsResponses, GetTraceStepsErrors, ThrowOnError>;
package/dist/index.mjs CHANGED
@@ -2204,6 +2204,7 @@ var Traces = class {
2204
2204
  *
2205
2205
  * Returns the trace's step payload: every step of the execution's model loop, exactly as the runtime recorded it — tool calls, their arguments, results and cost — passed through unreshaped rather than mapped to a narrower contract, since the payload is the runtime's own step shape.
2206
2206
  * Saving the payload is fire-and-forget on the runtime, so a trace can report `has_steps: false` for a short window after it finishes; this route 404s with `steps_not_available` during that window rather than returning an empty list, so a caller does not mistake "not saved yet" for "no steps ran".
2207
+ * A trace with no payload at all answers `steps_redacted` instead — its content was purged, or its agent runs in zero-retention and nothing was ever written. The distinction is the whole point of two codes: retrying `steps_not_available` succeeds once the write lands, while retrying `steps_redacted` can never succeed. The response carries `content_redacted_at` in `details`.
2207
2208
  *
2208
2209
  */
2209
2210
  static getTraceSteps(options) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naturali/sdk",
3
- "version": "0.56.0",
3
+ "version": "0.56.2",
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.56.0"
40
+ "@naturali/api": "0.56.2"
41
41
  },
42
42
  "scripts": {
43
43
  "generate": "tsx scripts/generate.ts",