@mastra/client-js 1.18.2-alpha.1 → 1.19.0-alpha.3

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.
@@ -14,6 +14,9 @@ export type GetAgents_Response = {
14
14
  [key: string]: {
15
15
  name: string;
16
16
  description?: string | undefined;
17
+ metadata?: {
18
+ [key: string]: unknown;
19
+ } | undefined;
17
20
  instructions?: (string | string[] | any | any[]) | undefined;
18
21
  tools: {
19
22
  [key: string]: {
@@ -165,6 +168,9 @@ export type GetAgentsAgentId_QueryParams = {
165
168
  export type GetAgentsAgentId_Response = {
166
169
  name: string;
167
170
  description?: string | undefined;
171
+ metadata?: {
172
+ [key: string]: unknown;
173
+ } | undefined;
168
174
  instructions?: (string | string[] | any | any[]) | undefined;
169
175
  tools: {
170
176
  [key: string]: {
@@ -9828,6 +9834,131 @@ export interface GetObservabilityTraces_RouteContract {
9828
9834
  response: GetObservabilityTraces_Response;
9829
9835
  responseType: 'json';
9830
9836
  }
9837
+ export type GetObservabilityTracesLight_QueryParams = {
9838
+ startedAt?: (({
9839
+ /** Start of date range (inclusive by default) */
9840
+ start?: Date | undefined;
9841
+ /** End of date range (inclusive by default) */
9842
+ end?: Date | undefined;
9843
+ /** When true, excludes the start date from results (uses > instead of >=) */
9844
+ startExclusive?: boolean | undefined;
9845
+ /** When true, excludes the end date from results (uses < instead of <=) */
9846
+ endExclusive?: boolean | undefined;
9847
+ } | undefined) | undefined) | any;
9848
+ endedAt?: (({
9849
+ /** Start of date range (inclusive by default) */
9850
+ start?: Date | undefined;
9851
+ /** End of date range (inclusive by default) */
9852
+ end?: Date | undefined;
9853
+ /** When true, excludes the start date from results (uses > instead of >=) */
9854
+ startExclusive?: boolean | undefined;
9855
+ /** When true, excludes the end date from results (uses < instead of <=) */
9856
+ endExclusive?: boolean | undefined;
9857
+ } | undefined) | undefined) | any;
9858
+ spanType?: (('agent_run' | 'scorer_run' | 'scorer_step' | 'generic' | 'model_generation' | 'model_step' | 'model_inference' | 'model_chunk' | 'mcp_tool_call' | 'processor_run' | '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') | undefined) | undefined;
9859
+ traceId?: (string | undefined) | undefined;
9860
+ entityType?: (string | undefined) | undefined;
9861
+ entityId?: ((string | null) | undefined) | undefined;
9862
+ entityName?: ((string | null) | undefined) | undefined;
9863
+ parentEntityType?: ((('agent' | 'scorer' | 'rag_ingestion' | 'trajectory' | 'input_processor' | 'input_step_processor' | 'output_processor' | 'output_step_processor' | 'workflow_step' | 'tool' | 'workflow_run' | 'memory') | null) | undefined) | undefined;
9864
+ parentEntityId?: ((string | null) | undefined) | undefined;
9865
+ parentEntityName?: ((string | null) | undefined) | undefined;
9866
+ rootEntityType?: ((('agent' | 'scorer' | 'rag_ingestion' | 'trajectory' | 'input_processor' | 'input_step_processor' | 'output_processor' | 'output_step_processor' | 'workflow_step' | 'tool' | 'workflow_run' | 'memory') | null) | undefined) | undefined;
9867
+ rootEntityId?: ((string | null) | undefined) | undefined;
9868
+ rootEntityName?: ((string | null) | undefined) | undefined;
9869
+ userId?: ((string | null) | undefined) | undefined;
9870
+ organizationId?: ((string | null) | undefined) | undefined;
9871
+ resourceId?: ((string | null) | undefined) | undefined;
9872
+ runId?: ((string | null) | undefined) | undefined;
9873
+ sessionId?: ((string | null) | undefined) | undefined;
9874
+ threadId?: ((string | null) | undefined) | undefined;
9875
+ requestId?: ((string | null) | undefined) | undefined;
9876
+ environment?: ((string | null) | undefined) | undefined;
9877
+ serviceName?: ((string | null) | undefined) | undefined;
9878
+ scope?: ((({
9879
+ [key: string]: unknown;
9880
+ } | null) | undefined) | undefined) | any;
9881
+ entityVersionId?: ((string | null) | undefined) | undefined;
9882
+ parentEntityVersionId?: ((string | null) | undefined) | undefined;
9883
+ rootEntityVersionId?: ((string | null) | undefined) | undefined;
9884
+ experimentId?: ((string | null) | undefined) | undefined;
9885
+ source?: ((string | null) | undefined) | undefined;
9886
+ metadata?: ((({
9887
+ [key: string]: unknown;
9888
+ } | null) | undefined) | undefined) | any;
9889
+ tags?: (((string[] | null) | undefined) | undefined) | any;
9890
+ status?: (('success' | 'error' | 'running') | undefined) | undefined;
9891
+ hasChildError?: (boolean | undefined) | undefined;
9892
+ page?: (number | undefined) | undefined;
9893
+ perPage?: (number | undefined) | undefined;
9894
+ field?: ('startedAt' | 'endedAt') | undefined;
9895
+ direction?: ('ASC' | 'DESC') | undefined;
9896
+ dateRange?: (({
9897
+ /** Start of date range (inclusive by default) */
9898
+ start?: Date | undefined;
9899
+ /** End of date range (inclusive by default) */
9900
+ end?: Date | undefined;
9901
+ /** When true, excludes the start date from results (uses > instead of >=) */
9902
+ startExclusive?: boolean | undefined;
9903
+ /** When true, excludes the end date from results (uses < instead of <=) */
9904
+ endExclusive?: boolean | undefined;
9905
+ } | undefined) | undefined) | any;
9906
+ name?: (string | undefined) | undefined;
9907
+ };
9908
+ export type GetObservabilityTracesLight_Response = {
9909
+ pagination: {
9910
+ /** Total number of items available */
9911
+ total: number;
9912
+ /** Current page */
9913
+ page: number;
9914
+ /** Number of items per page, or false if pagination is disabled */
9915
+ perPage: number | false;
9916
+ /** True if more pages are available */
9917
+ hasMore: boolean;
9918
+ };
9919
+ spans: {
9920
+ /** Unique trace identifier */
9921
+ traceId: string;
9922
+ /** Unique span identifier within a trace */
9923
+ spanId: string;
9924
+ /** Human-readable span name */
9925
+ name: string;
9926
+ /** Span type (e.g., WORKFLOW_RUN, AGENT_RUN, TOOL_CALL, etc.) */
9927
+ spanType: 'agent_run' | 'scorer_run' | 'scorer_step' | 'generic' | 'model_generation' | 'model_step' | 'model_inference' | 'model_chunk' | 'mcp_tool_call' | 'processor_run' | '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';
9928
+ /** Whether this is an event (point-in-time) vs a span (duration) */
9929
+ isEvent: boolean;
9930
+ /** When the span started */
9931
+ startedAt: Date;
9932
+ parentSpanId?: (string | null) | undefined;
9933
+ endedAt?: (Date | null) | undefined;
9934
+ error?: (unknown | null) | undefined;
9935
+ entityType?: (('agent' | 'scorer' | 'rag_ingestion' | 'trajectory' | 'input_processor' | 'input_step_processor' | 'output_processor' | 'output_step_processor' | 'workflow_step' | 'tool' | 'workflow_run' | 'memory') | null) | undefined;
9936
+ entityId?: (string | null) | undefined;
9937
+ entityName?: (string | null) | undefined;
9938
+ /** Database record creation time */
9939
+ createdAt: Date;
9940
+ updatedAt: Date | null;
9941
+ }[];
9942
+ };
9943
+ export type GetObservabilityTracesLight_Request = Simplify<(never extends never ? {} : {
9944
+ params: never;
9945
+ }) & (GetObservabilityTracesLight_QueryParams extends never ? {} : {} extends GetObservabilityTracesLight_QueryParams ? {
9946
+ query?: GetObservabilityTracesLight_QueryParams;
9947
+ } : {
9948
+ query: GetObservabilityTracesLight_QueryParams;
9949
+ }) & (never extends never ? {} : {} extends never ? {
9950
+ body?: never;
9951
+ } : {
9952
+ body: never;
9953
+ })>;
9954
+ export interface GetObservabilityTracesLight_RouteContract {
9955
+ pathParams: never;
9956
+ queryParams: GetObservabilityTracesLight_QueryParams;
9957
+ body: never;
9958
+ request: GetObservabilityTracesLight_Request;
9959
+ response: GetObservabilityTracesLight_Response;
9960
+ responseType: 'json';
9961
+ }
9831
9962
  export type GetObservabilityBranches_QueryParams = {
9832
9963
  startedAt?: (({
9833
9964
  /** Start of date range (inclusive by default) */
@@ -43271,6 +43402,7 @@ export interface RouteTypes {
43271
43402
  'GET /scores/entity/:entityType/:entityId': GetScoresEntityEntityTypeEntityId_RouteContract;
43272
43403
  'POST /scores': PostScores_RouteContract;
43273
43404
  'GET /observability/traces': GetObservabilityTraces_RouteContract;
43405
+ 'GET /observability/traces/light': GetObservabilityTracesLight_RouteContract;
43274
43406
  'GET /observability/branches': GetObservabilityBranches_RouteContract;
43275
43407
  'GET /observability/traces/:traceId/branches/:spanId': GetObservabilityTracesTraceIdBranchesSpanId_RouteContract;
43276
43408
  'GET /observability/traces/:traceId': GetObservabilityTracesTraceId_RouteContract;
@@ -43901,6 +44033,9 @@ export interface Client {
43901
44033
  '/observability/traces/:traceId/trajectory': {
43902
44034
  GET: GetObservabilityTracesTraceIdTrajectory_RouteContract;
43903
44035
  };
44036
+ '/observability/traces/light': {
44037
+ GET: GetObservabilityTracesLight_RouteContract;
44038
+ };
43904
44039
  '/observability/traces/score': {
43905
44040
  POST: PostObservabilityTracesScore_RouteContract;
43906
44041
  };