@mastra/client-js 1.12.1-alpha.1 → 1.13.0-alpha.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.js CHANGED
@@ -3021,6 +3021,15 @@ var Observability = class extends BaseResource {
3021
3021
  getTrace(traceId) {
3022
3022
  return this.request(`/observability/traces/${traceId}`);
3023
3023
  }
3024
+ /**
3025
+ * Extracts a structured trajectory from a trace's spans.
3026
+ *
3027
+ * @param traceId - ID of the trace to extract trajectory from
3028
+ * @returns Promise containing the trajectory with ordered steps
3029
+ */
3030
+ getTraceTrajectory(traceId) {
3031
+ return this.request(`/observability/traces/${traceId}/trajectory`);
3032
+ }
3024
3033
  /**
3025
3034
  * Retrieves paginated list of traces with optional filtering.
3026
3035
  * This is the legacy API preserved for backward compatibility.
@@ -4871,6 +4880,10 @@ var MastraClient = class extends BaseResource {
4871
4880
  getTrace(traceId) {
4872
4881
  return this.observability.getTrace(traceId);
4873
4882
  }
4883
+ /** Extracts a structured trajectory from a trace's spans. */
4884
+ getTraceTrajectory(traceId) {
4885
+ return this.observability.getTraceTrajectory(traceId);
4886
+ }
4874
4887
  /**
4875
4888
  * Retrieves paginated list of traces with optional filtering.
4876
4889
  * This is the legacy API preserved for backward compatibility.