@mastra/client-js 1.60.1-alpha.5 → 1.61.0-alpha.7

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
@@ -5447,6 +5447,19 @@ var Observability = class extends BaseResource {
5447
5447
  return this.request(`/observability/traces/${traceId}`);
5448
5448
  }
5449
5449
  /**
5450
+ * Retrieves a bounded trace page from Platform. OSS servers do not serve this endpoint.
5451
+ * Check `capabilities.tracePage` before calling.
5452
+ * @experimental This Platform integration may change or be removed.
5453
+ */
5454
+ getTracePage(request) {
5455
+ const { traceId, ...body } = request;
5456
+ return this.request(`/observability/traces/${encodeURIComponent(traceId)}/page`, {
5457
+ method: "POST",
5458
+ body,
5459
+ retries: this.readRetries()
5460
+ });
5461
+ }
5462
+ /**
5450
5463
  * Retrieves a lightweight trace by ID (timeline fields only).
5451
5464
  * Excludes heavy fields (input, output, attributes, metadata, tags, links)
5452
5465
  * for ~97% payload reduction compared to getTrace.
@@ -8461,6 +8474,14 @@ var MastraClient = class extends BaseResource {
8461
8474
  getTrace(traceId) {
8462
8475
  return this.observability.getTrace(traceId);
8463
8476
  }
8477
+ /**
8478
+ * Retrieves a bounded trace page from Platform. OSS servers do not serve this endpoint.
8479
+ * Check `capabilities.tracePage` before calling.
8480
+ * @experimental This Platform integration may change or be removed.
8481
+ */
8482
+ getTracePage(request) {
8483
+ return this.observability.getTracePage(request);
8484
+ }
8464
8485
  /** Retrieves a lightweight trace by ID (timeline fields only, excludes heavy fields). */
8465
8486
  getTraceLight(traceId) {
8466
8487
  return this.observability.getTraceLight(traceId);