@mastra/client-js 1.60.0-alpha.10 → 1.60.0-alpha.12

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.
@@ -3,7 +3,7 @@ name: mastra-client-js
3
3
  description: Documentation for @mastra/client-js. Use when working with @mastra/client-js APIs, configuration, or implementation.
4
4
  metadata:
5
5
  package: "@mastra/client-js"
6
- version: "1.60.0-alpha.10"
6
+ version: "1.60.0-alpha.12"
7
7
  ---
8
8
 
9
9
  ## When to use
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.60.0-alpha.10",
2
+ "version": "1.60.0-alpha.12",
3
3
  "package": "@mastra/client-js",
4
4
  "exports": {
5
5
  "ClientTool": {
@@ -36,6 +36,7 @@ The configured observability store must support each API. Call `getObservability
36
36
  | `traceQuery` | `trace-query` | `queryTraces()` |
37
37
  | `spanQuery` | `span-query` | `querySpans()` |
38
38
  | `spanQueryDurationSort` | `span-query-duration-sort` | `orderBy` on `durationMs` in `querySpans()` |
39
+ | `spanQueryModelProviderSort` | `span-query-model-provider-sort` | `orderBy` on `model` or `provider` in `querySpans()` |
39
40
  | `spanQueryContextFields` | `span-query-context-fields` | Additional identity, context, and parent/root entity predicates in span queries and aggregates |
40
41
  | `spanQueryModelFields` | `span-query-model-fields` | `model` and `provider` predicates in span queries and aggregates |
41
42
  | `traceAggregate` | `trace-aggregate` | `aggregateTraces()` |
@@ -673,7 +674,7 @@ const result = await mastraClient.querySpans({
673
674
  console.log(result.spans)
674
675
  ```
675
676
 
676
- Pages default to 100 rows and allow at most 1,000. The response is `{ spans, page: { next } }`, without a total count. Ordering accepts exactly one of `startedAt`, `endedAt`, `durationMs`, `timeToFirstChunkMs`, or `timeToFirstTokenMs`, ascending or descending, and defaults to descending start time. Spans without a value for the `timeToFirstChunkMs` or `timeToFirstTokenMs` sort field sort last in both directions.
677
+ Pages default to 100 rows and allow at most 1,000. The response is `{ spans, page: { next } }`, without a total count. Ordering accepts exactly one of `startedAt`, `endedAt`, `durationMs`, `timeToFirstChunkMs`, `timeToFirstTokenMs`, `model`, or `provider`, ascending or descending, and defaults to descending start time. Missing sort values appear last in both directions. Model and provider sorting is case-sensitive.
677
678
 
678
679
  | Fields | Operators |
679
680
  | -------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- |
@@ -2593,7 +2593,7 @@ type Shared_Type_62 = {
2593
2593
  } | null) | undefined;
2594
2594
  /** Milliseconds from the model call to the first token received; null when unknown */
2595
2595
  timeToFirstTokenMs?: (number | null) | undefined;
2596
- /** Errors in this span and all nested spans; null when unknown */
2596
+ /** Failures originating directly on this span; null when unknown */
2597
2597
  errorCount?: (number | null) | undefined;
2598
2598
  /** Database record creation time */
2599
2599
  createdAt: Date;
@@ -2718,7 +2718,7 @@ type Shared_Type_64 = {
2718
2718
  } | null) | undefined;
2719
2719
  /** Milliseconds from the model call to the first token received; null when unknown */
2720
2720
  timeToFirstTokenMs?: (number | null) | undefined;
2721
- /** Errors in this span and all nested spans; null when unknown */
2721
+ /** Failures originating directly on this span; null when unknown */
2722
2722
  errorCount?: (number | null) | undefined;
2723
2723
  /** Database record creation time */
2724
2724
  createdAt: Date;
@@ -2933,6 +2933,8 @@ type Shared_Type_69 = {
2933
2933
  spanQuery: boolean;
2934
2934
  /** Whether completed spans can be sorted by duration */
2935
2935
  spanQueryDurationSort: boolean;
2936
+ /** Whether spans can be sorted by model and provider */
2937
+ spanQueryModelProviderSort: boolean;
2936
2938
  /** Additional identity, context and parent/root entity predicates in span queries. Treat a missing value as unavailable. */
2937
2939
  spanQueryContextFields: boolean;
2938
2940
  /** `model` and `provider` predicates in span queries and span aggregates. Treat a missing value as unavailable. */
@@ -8233,7 +8235,7 @@ export type GetObservabilityTracesTraceIdSpanIdScores_Response = {
8233
8235
  entity: {
8234
8236
  [key: string]: unknown;
8235
8237
  };
8236
- entityType?: ('AGENT' | 'WORKFLOW' | 'TRAJECTORY' | 'STEP' | 'EXTERNAL' | 'agent_run' | 'scorer_run' | 'classifier_evaluation' | 'scorer_step' | 'generic' | 'model_generation' | 'model_step' | 'model_inference' | 'model_chunk' | 'mcp_tool_call' | 'mcp_server_request' | 'processor_run' | 'tool_call' | 'client_tool_call' | 'provider_tool_call' | 'workflow_run' | 'workflow_step' | 'workflow_conditional' | 'workflow_conditional_eval' | 'workflow_parallel' | 'workflow_loop' | 'workflow_sleep' | 'workflow_wait_event' | 'memory_operation' | 'workspace_action' | 'rag_ingestion' | 'rag_embedding' | 'rag_vector_operation' | 'rag_action' | 'graph_action' | 'mapping' | 'skill_resolution' | 'skill_action' | 'agent_signal') | undefined;
8238
+ entityType?: ('AGENT' | 'WORKFLOW' | 'TRAJECTORY' | 'STEP' | 'SCORER' | 'PROCESSOR' | 'EXTERNAL' | 'agent_run' | 'scorer_run' | 'classifier_evaluation' | 'scorer_step' | 'generic' | 'model_generation' | 'model_step' | 'model_inference' | 'model_chunk' | 'mcp_tool_call' | 'mcp_server_request' | 'processor_run' | 'tool_call' | 'client_tool_call' | 'provider_tool_call' | 'workflow_run' | 'workflow_step' | 'workflow_conditional' | 'workflow_conditional_eval' | 'workflow_parallel' | 'workflow_loop' | 'workflow_sleep' | 'workflow_wait_event' | 'memory_operation' | 'workspace_action' | 'rag_ingestion' | 'rag_embedding' | 'rag_vector_operation' | 'rag_action' | 'graph_action' | 'mapping' | 'skill_resolution' | 'skill_action' | 'agent_signal') | undefined;
8237
8239
  structuredOutput?: boolean | undefined;
8238
8240
  traceId?: string | undefined;
8239
8241
  spanId?: string | undefined;
@@ -8540,7 +8542,7 @@ export type PostObservabilitySpansQuery_Body = {
8540
8542
  where?: InputShared_Auxiliary_231 | undefined;
8541
8543
  textSearch?: string | undefined;
8542
8544
  orderBy?: {
8543
- field: 'startedAt' | 'endedAt' | 'timeToFirstChunkMs' | 'timeToFirstTokenMs' | 'durationMs';
8545
+ field: 'startedAt' | 'endedAt' | 'timeToFirstChunkMs' | 'timeToFirstTokenMs' | 'durationMs' | 'model' | 'provider';
8544
8546
  direction: 'asc' | 'desc';
8545
8547
  }[];
8546
8548
  page?: {