@mastra/client-js 1.44.0-alpha.2 → 1.44.0-alpha.4

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.js CHANGED
@@ -4388,6 +4388,21 @@ var Observability = class extends BaseResource {
4388
4388
  });
4389
4389
  }
4390
4390
  /**
4391
+ * Deletes traces by ID, cascading to all associated data: spans, trace
4392
+ * roots/branches, and signal events (scores, feedback, metrics, logs) that
4393
+ * reference the deleted traces. Signals without a trace ID are untouched.
4394
+ * On ClickHouse-backed stores, reads may briefly return deleted rows until
4395
+ * the lightweight delete is fully applied.
4396
+ * @param params - IDs of the traces to delete
4397
+ * @returns Promise resolving to `{ success: true }` once the delete is issued
4398
+ */
4399
+ deleteTraces(params) {
4400
+ return this.request(`/observability/traces/delete`, {
4401
+ method: "POST",
4402
+ body: { traceIds: params.traceIds }
4403
+ });
4404
+ }
4405
+ /**
4391
4406
  * Retrieves a paginated list of logs with optional filtering and sorting.
4392
4407
  */
4393
4408
  listLogs(params = {}) {
@@ -6831,6 +6846,15 @@ var MastraClient = class extends BaseResource {
6831
6846
  listScoresBySpan(params) {
6832
6847
  return this.observability.listScoresBySpan(params);
6833
6848
  }
6849
+ /**
6850
+ * Deletes traces by ID, cascading to all associated spans and trace-linked
6851
+ * signal events (scores, feedback, metrics, logs). Signals without a trace ID
6852
+ * are untouched. On ClickHouse-backed stores, reads may briefly return
6853
+ * deleted rows until the delete is fully applied.
6854
+ */
6855
+ deleteTraces(params) {
6856
+ return this.observability.deleteTraces(params);
6857
+ }
6834
6858
  /** Scores one or more traces using a specified scorer (fire-and-forget). */
6835
6859
  score(params) {
6836
6860
  return this.observability.score(params);