@naturali/cli 0.53.1 → 0.55.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 +36 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -14,7 +14,7 @@ var __exportAll = (all, no_symbols) => {
|
|
|
14
14
|
};
|
|
15
15
|
//#endregion
|
|
16
16
|
//#region package.json
|
|
17
|
-
var version = "0.
|
|
17
|
+
var version = "0.55.0";
|
|
18
18
|
//#endregion
|
|
19
19
|
//#region ../sdk/src/generated/core/bodySerializer.gen.ts
|
|
20
20
|
const jsonBodySerializer = { bodySerializer: (body) => JSON.stringify(body, (_key, value) => typeof value === "bigint" ? value.toString() : value) };
|
|
@@ -2212,6 +2212,19 @@ var Traces = class {
|
|
|
2212
2212
|
...options
|
|
2213
2213
|
});
|
|
2214
2214
|
}
|
|
2215
|
+
/**
|
|
2216
|
+
* Purge a trace's content
|
|
2217
|
+
*
|
|
2218
|
+
* Deletes the trace's step payload and clears its content columns, cascading to every descendant trace in its execution tree and to their generations. The rows survive as auditable skeletons — ids, timestamps and step counts are preserved — with `content_redacted_at` set as verifiable proof the content is gone; a purged trace still reads back with `GET /v1/projects/{project_id}/traces/{trace_id}` (a 404 there would prove nothing about what was erased).
|
|
2219
|
+
* Idempotent: purging an already-purged trace succeeds and leaves the original `content_redacted_at` in place.
|
|
2220
|
+
*
|
|
2221
|
+
*/
|
|
2222
|
+
static purgeTraceContent(options) {
|
|
2223
|
+
return (options.client ?? client).delete({
|
|
2224
|
+
url: "/v1/projects/{project_id}/traces/{trace_id}/content",
|
|
2225
|
+
...options
|
|
2226
|
+
});
|
|
2227
|
+
}
|
|
2215
2228
|
};
|
|
2216
2229
|
var Triggers = class {
|
|
2217
2230
|
/**
|
|
@@ -7434,6 +7447,28 @@ const routes = {
|
|
|
7434
7447
|
"in": "path"
|
|
7435
7448
|
}]
|
|
7436
7449
|
},
|
|
7450
|
+
"purge-trace-content": {
|
|
7451
|
+
serviceClass: "Traces",
|
|
7452
|
+
operationId: "purgeTraceContent",
|
|
7453
|
+
description: "Deletes the trace's step payload and clears its content columns, cascading to every descendant trace in its execution tree and to their generations. The rows survive as auditable skeletons — ids, timestamps and step counts are preserved — with `content_redacted_at` set as verifiable proof the content is gone; a purged trace still reads back with `GET /v1/projects/{project_id}/traces/{trace_id}` (a 404 there would prove nothing about what was erased). Idempotent: purging an already-purged trace succeeds and leaves the original `content_redacted_at` in place.",
|
|
7454
|
+
moduleDocsUrl: "https://docs.naturali.ai/docs/modules/traces",
|
|
7455
|
+
httpMethod: "delete",
|
|
7456
|
+
pathParams: ["project_id", "trace_id"],
|
|
7457
|
+
queryParams: [],
|
|
7458
|
+
flags: [{
|
|
7459
|
+
"name": "project_id",
|
|
7460
|
+
"description": "Project public ID (proj_ prefix).",
|
|
7461
|
+
"required": true,
|
|
7462
|
+
"type": "string",
|
|
7463
|
+
"in": "path"
|
|
7464
|
+
}, {
|
|
7465
|
+
"name": "trace_id",
|
|
7466
|
+
"description": "Trace public ID (trace_ prefix).",
|
|
7467
|
+
"required": true,
|
|
7468
|
+
"type": "string",
|
|
7469
|
+
"in": "path"
|
|
7470
|
+
}]
|
|
7471
|
+
},
|
|
7437
7472
|
"list-triggers": {
|
|
7438
7473
|
serviceClass: "Triggers",
|
|
7439
7474
|
operationId: "listTriggers",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@naturali/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.55.0",
|
|
4
4
|
"description": "Command-line interface for the naturali.ai API, generated from its OpenAPI specs",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"tsx": "^4.23.1",
|
|
31
31
|
"typescript": "~6.0.3",
|
|
32
32
|
"vitest": "^4.1.10",
|
|
33
|
-
"@naturali/sdk": "0.
|
|
33
|
+
"@naturali/sdk": "0.55.0"
|
|
34
34
|
},
|
|
35
35
|
"scripts": {
|
|
36
36
|
"generate": "tsx scripts/generate.ts",
|