@mastra/client-js 1.17.0-alpha.2 → 1.17.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.
@@ -1,6 +1,6 @@
1
1
  import type { ListScoresResponse, Trajectory } from '@mastra/core/evals';
2
2
  import type { SpanType } from '@mastra/core/observability';
3
- import type { TraceRecord, GetTraceLightResponse, GetSpanResponse, ListTracesArgs, ListTracesResponse, SpanIds, PaginationArgs, SpanRecord, PaginationInfo, ScoreTracesRequest, ScoreTracesResponse, ListLogsArgs, ListLogsResponse, ListScoresArgs, ListScoresResponse as ListScoresResponseNew, CreateScoreBody, CreateScoreResponse, GetScoreAggregateArgs, GetScoreAggregateResponse, GetScoreBreakdownArgs, GetScoreBreakdownResponse, GetScoreTimeSeriesArgs, GetScoreTimeSeriesResponse, GetScorePercentilesArgs, GetScorePercentilesResponse, ListFeedbackArgs, ListFeedbackResponse, CreateFeedbackBody, CreateFeedbackResponse, GetFeedbackAggregateArgs, GetFeedbackAggregateResponse, GetFeedbackBreakdownArgs, GetFeedbackBreakdownResponse, GetFeedbackTimeSeriesArgs, GetFeedbackTimeSeriesResponse, GetFeedbackPercentilesArgs, GetFeedbackPercentilesResponse, GetMetricAggregateArgs, GetMetricAggregateResponse, GetMetricBreakdownArgs, GetMetricBreakdownResponse, GetMetricTimeSeriesArgs, GetMetricTimeSeriesResponse, GetMetricPercentilesArgs, GetMetricPercentilesResponse, GetMetricNamesArgs, GetMetricNamesResponse, GetMetricLabelKeysArgs, GetMetricLabelKeysResponse, GetMetricLabelValuesArgs, GetMetricLabelValuesResponse, GetEntityTypesResponse, GetEntityNamesArgs, GetEntityNamesResponse, GetServiceNamesResponse, GetEnvironmentsResponse, GetTagsArgs, GetTagsResponse } from '@mastra/core/storage';
3
+ import type { TraceRecord, GetTraceLightResponse, GetSpanResponse, ListTracesArgs, ListTracesResponse, ListBranchesArgs, ListBranchesResponse, GetBranchArgs, GetBranchResponse, SpanIds, PaginationArgs, SpanRecord, PaginationInfo, ScoreTracesRequest, ScoreTracesResponse, ListLogsArgs, ListLogsResponse, ListScoresArgs, ListScoresResponse as ListScoresResponseNew, CreateScoreBody, CreateScoreResponse, GetScoreAggregateArgs, GetScoreAggregateResponse, GetScoreBreakdownArgs, GetScoreBreakdownResponse, GetScoreTimeSeriesArgs, GetScoreTimeSeriesResponse, GetScorePercentilesArgs, GetScorePercentilesResponse, ListFeedbackArgs, ListFeedbackResponse, CreateFeedbackBody, CreateFeedbackResponse, GetFeedbackAggregateArgs, GetFeedbackAggregateResponse, GetFeedbackBreakdownArgs, GetFeedbackBreakdownResponse, GetFeedbackTimeSeriesArgs, GetFeedbackTimeSeriesResponse, GetFeedbackPercentilesArgs, GetFeedbackPercentilesResponse, GetMetricAggregateArgs, GetMetricAggregateResponse, GetMetricBreakdownArgs, GetMetricBreakdownResponse, GetMetricTimeSeriesArgs, GetMetricTimeSeriesResponse, GetMetricPercentilesArgs, GetMetricPercentilesResponse, GetMetricNamesArgs, GetMetricNamesResponse, GetMetricLabelKeysArgs, GetMetricLabelKeysResponse, GetMetricLabelValuesArgs, GetMetricLabelValuesResponse, GetEntityTypesResponse, GetEntityNamesArgs, GetEntityNamesResponse, GetServiceNamesResponse, GetEnvironmentsResponse, GetTagsArgs, GetTagsResponse } from '@mastra/core/storage';
4
4
  import type { ClientOptions } from '../types.js';
5
5
  import { BaseResource } from './base.js';
6
6
  /**
@@ -87,6 +87,28 @@ export declare class Observability extends BaseResource {
87
87
  * @returns Promise containing paginated traces and pagination info
88
88
  */
89
89
  listTraces(params?: ListTracesArgs): Promise<ListTracesResponse>;
90
+ /**
91
+ * Retrieves a paginated list of trace branches with optional filtering and sorting.
92
+ *
93
+ * Each row is a single branch-anchor span (e.g., AGENT_RUN, WORKFLOW_RUN, TOOL_CALL),
94
+ * including ones nested under a different root entity. Use this to list every run of
95
+ * a given agent/workflow/tool regardless of how it was triggered. Pairs with
96
+ * {@link getBranch} to expand a single branch into its subtree.
97
+ *
98
+ * @param params - Parameters for pagination, filtering, and ordering
99
+ * @returns Promise containing paginated branch-anchor spans and pagination info
100
+ */
101
+ listBranches(params?: ListBranchesArgs): Promise<ListBranchesResponse>;
102
+ /**
103
+ * Retrieves the subtree of spans rooted at a given span.
104
+ *
105
+ * @param params - Parameters containing trace ID, span ID, and optional depth.
106
+ * When `depth` is omitted the full descendant subtree is returned; with a finite
107
+ * `depth` only that many levels below the anchor are returned (depth: 0 → only the
108
+ * anchor span; depth: 1 → anchor plus immediate children; etc).
109
+ * @returns Promise containing the branch (anchor span plus descendants)
110
+ */
111
+ getBranch(params: GetBranchArgs): Promise<GetBranchResponse>;
90
112
  /**
91
113
  * Retrieves scores by trace ID and span ID
92
114
  * @param params - Parameters containing trace ID, span ID, and pagination options
@@ -1 +1 @@
1
- {"version":3,"file":"observability.d.ts","sourceRoot":"","sources":["../../src/resources/observability.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACzE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,KAAK,EACV,WAAW,EACX,qBAAqB,EACrB,eAAe,EACf,cAAc,EACd,kBAAkB,EAClB,OAAO,EACP,cAAc,EACd,UAAU,EACV,cAAc,EACd,kBAAkB,EAClB,mBAAmB,EAEnB,YAAY,EACZ,gBAAgB,EAEhB,cAAc,EACd,kBAAkB,IAAI,qBAAqB,EAC3C,eAAe,EACf,mBAAmB,EACnB,qBAAqB,EACrB,yBAAyB,EACzB,qBAAqB,EACrB,yBAAyB,EACzB,sBAAsB,EACtB,0BAA0B,EAC1B,uBAAuB,EACvB,2BAA2B,EAE3B,gBAAgB,EAChB,oBAAoB,EACpB,kBAAkB,EAClB,sBAAsB,EACtB,wBAAwB,EACxB,4BAA4B,EAC5B,wBAAwB,EACxB,4BAA4B,EAC5B,yBAAyB,EACzB,6BAA6B,EAC7B,0BAA0B,EAC1B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IACH,cAAc,CAAC,MAAM,GAAE,kBAAuB,GAAG,OAAO,CAAC,sBAAsB,CAAC;IAKhF;;OAEG;IACH,eAAe,IAAI,OAAO,CAAC,uBAAuB,CAAC;IAInD;;OAEG;IACH,eAAe,IAAI,OAAO,CAAC,uBAAuB,CAAC;IAInD;;OAEG;IACH,OAAO,CAAC,MAAM,GAAE,WAAgB,GAAG,OAAO,CAAC,eAAe,CAAC;CAI5D"}
1
+ {"version":3,"file":"observability.d.ts","sourceRoot":"","sources":["../../src/resources/observability.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACzE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,KAAK,EACV,WAAW,EACX,qBAAqB,EACrB,eAAe,EACf,cAAc,EACd,kBAAkB,EAClB,gBAAgB,EAChB,oBAAoB,EACpB,aAAa,EACb,iBAAiB,EACjB,OAAO,EACP,cAAc,EACd,UAAU,EACV,cAAc,EACd,kBAAkB,EAClB,mBAAmB,EAEnB,YAAY,EACZ,gBAAgB,EAEhB,cAAc,EACd,kBAAkB,IAAI,qBAAqB,EAC3C,eAAe,EACf,mBAAmB,EACnB,qBAAqB,EACrB,yBAAyB,EACzB,qBAAqB,EACrB,yBAAyB,EACzB,sBAAsB,EACtB,0BAA0B,EAC1B,uBAAuB,EACvB,2BAA2B,EAE3B,gBAAgB,EAChB,oBAAoB,EACpB,kBAAkB,EAClB,sBAAsB,EACtB,wBAAwB,EACxB,4BAA4B,EAC5B,wBAAwB,EACxB,4BAA4B,EAC5B,yBAAyB,EACzB,6BAA6B,EAC7B,0BAA0B,EAC1B,8BAA8B,EAE9B,sBAAsB,EACtB,0BAA0B,EAC1B,sBAAsB,EACtB,0BAA0B,EAC1B,uBAAuB,EACvB,2BAA2B,EAC3B,wBAAwB,EACxB,4BAA4B,EAE5B,kBAAkB,EAClB,sBAAsB,EACtB,sBAA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AIjD;;OAEG;IACH,cAAc,CAAC,MAAM,GAAE,kBAAuB,GAAG,OAAO,CAAC,sBAAsB,CAAC;IAKhF;;OAEG;IACH,eAAe,IAAI,OAAO,CAAC,uBAAuB,CAAC;IAInD;;OAEG;IACH,eAAe,IAAI,OAAO,CAAC,uBAAuB,CAAC;IAInD;;OAEG;IACH,OAAO,CAAC,MAAM,GAAE,WAAgB,GAAG,OAAO,CAAC,eAAe,CAAC;CAI5D"}
@@ -7475,6 +7475,253 @@ export interface GetObservabilityTraces_RouteContract {
7475
7475
  response: GetObservabilityTraces_Response;
7476
7476
  responseType: 'json';
7477
7477
  }
7478
+ export type GetObservabilityBranches_QueryParams = {
7479
+ startedAt?: (({
7480
+ /** Start of date range (inclusive by default) */
7481
+ start?: Date | undefined;
7482
+ /** End of date range (inclusive by default) */
7483
+ end?: Date | undefined;
7484
+ /** When true, excludes the start date from results (uses > instead of >=) */
7485
+ startExclusive?: boolean | undefined;
7486
+ /** When true, excludes the end date from results (uses < instead of <=) */
7487
+ endExclusive?: boolean | undefined;
7488
+ } | undefined) | undefined) | any;
7489
+ endedAt?: (({
7490
+ /** Start of date range (inclusive by default) */
7491
+ start?: Date | undefined;
7492
+ /** End of date range (inclusive by default) */
7493
+ end?: Date | undefined;
7494
+ /** When true, excludes the start date from results (uses > instead of >=) */
7495
+ startExclusive?: boolean | undefined;
7496
+ /** When true, excludes the end date from results (uses < instead of <=) */
7497
+ endExclusive?: boolean | undefined;
7498
+ } | undefined) | undefined) | any;
7499
+ spanType?: (('agent_run' | 'scorer_run' | 'scorer_step' | 'generic' | 'model_generation' | 'model_step' | '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') | undefined) | undefined;
7500
+ traceId?: (string | undefined) | undefined;
7501
+ entityType?: ((('agent' | 'scorer' | 'rag_ingestion' | 'trajectory' | 'input_processor' | 'input_step_processor' | 'output_processor' | 'output_step_processor' | 'workflow_step' | 'tool' | 'workflow_run' | 'memory') | null) | undefined) | undefined;
7502
+ entityId?: ((string | null) | undefined) | undefined;
7503
+ entityName?: ((string | null) | undefined) | undefined;
7504
+ 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;
7505
+ parentEntityId?: ((string | null) | undefined) | undefined;
7506
+ parentEntityName?: ((string | null) | undefined) | undefined;
7507
+ 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;
7508
+ rootEntityId?: ((string | null) | undefined) | undefined;
7509
+ rootEntityName?: ((string | null) | undefined) | undefined;
7510
+ userId?: ((string | null) | undefined) | undefined;
7511
+ organizationId?: ((string | null) | undefined) | undefined;
7512
+ resourceId?: ((string | null) | undefined) | undefined;
7513
+ runId?: ((string | null) | undefined) | undefined;
7514
+ sessionId?: ((string | null) | undefined) | undefined;
7515
+ threadId?: ((string | null) | undefined) | undefined;
7516
+ requestId?: ((string | null) | undefined) | undefined;
7517
+ environment?: ((string | null) | undefined) | undefined;
7518
+ serviceName?: ((string | null) | undefined) | undefined;
7519
+ scope?: ((({
7520
+ [key: string]: unknown;
7521
+ } | null) | undefined) | undefined) | any;
7522
+ entityVersionId?: ((string | null) | undefined) | undefined;
7523
+ parentEntityVersionId?: ((string | null) | undefined) | undefined;
7524
+ rootEntityVersionId?: ((string | null) | undefined) | undefined;
7525
+ experimentId?: ((string | null) | undefined) | undefined;
7526
+ source?: ((string | null) | undefined) | undefined;
7527
+ metadata?: ((({
7528
+ [key: string]: unknown;
7529
+ } | null) | undefined) | undefined) | any;
7530
+ tags?: (((string[] | null) | undefined) | undefined) | any;
7531
+ status?: (('success' | 'error' | 'running') | undefined) | undefined;
7532
+ page?: (number | undefined) | undefined;
7533
+ perPage?: (number | undefined) | undefined;
7534
+ field?: ('startedAt' | 'endedAt') | undefined;
7535
+ direction?: ('ASC' | 'DESC') | undefined;
7536
+ };
7537
+ export type GetObservabilityBranches_Response = {
7538
+ pagination: {
7539
+ /** Total number of items available */
7540
+ total: number;
7541
+ /** Current page */
7542
+ page: number;
7543
+ /** Number of items per page, or false if pagination is disabled */
7544
+ perPage: number | false;
7545
+ /** True if more pages are available */
7546
+ hasMore: boolean;
7547
+ };
7548
+ branches: {
7549
+ /** Unique trace identifier */
7550
+ traceId: string;
7551
+ /** Unique span identifier within a trace */
7552
+ spanId: string;
7553
+ /** Human-readable span name */
7554
+ name: string;
7555
+ /** Span type (e.g., WORKFLOW_RUN, AGENT_RUN, TOOL_CALL, etc.) */
7556
+ spanType: 'agent_run' | 'scorer_run' | 'scorer_step' | 'generic' | 'model_generation' | 'model_step' | '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';
7557
+ /** Whether this is an event (point-in-time) vs a span (duration) */
7558
+ isEvent: boolean;
7559
+ /** When the span started */
7560
+ startedAt: Date;
7561
+ parentSpanId?: (string | null) | undefined;
7562
+ entityType?: (('agent' | 'scorer' | 'rag_ingestion' | 'trajectory' | 'input_processor' | 'input_step_processor' | 'output_processor' | 'output_step_processor' | 'workflow_step' | 'tool' | 'workflow_run' | 'memory') | null) | undefined;
7563
+ entityId?: (string | null) | undefined;
7564
+ entityName?: (string | null) | undefined;
7565
+ parentEntityType?: (('agent' | 'scorer' | 'rag_ingestion' | 'trajectory' | 'input_processor' | 'input_step_processor' | 'output_processor' | 'output_step_processor' | 'workflow_step' | 'tool' | 'workflow_run' | 'memory') | null) | undefined;
7566
+ parentEntityId?: (string | null) | undefined;
7567
+ parentEntityName?: (string | null) | undefined;
7568
+ rootEntityType?: (('agent' | 'scorer' | 'rag_ingestion' | 'trajectory' | 'input_processor' | 'input_step_processor' | 'output_processor' | 'output_step_processor' | 'workflow_step' | 'tool' | 'workflow_run' | 'memory') | null) | undefined;
7569
+ rootEntityId?: (string | null) | undefined;
7570
+ rootEntityName?: (string | null) | undefined;
7571
+ userId?: (string | null) | undefined;
7572
+ organizationId?: (string | null) | undefined;
7573
+ resourceId?: (string | null) | undefined;
7574
+ runId?: (string | null) | undefined;
7575
+ sessionId?: (string | null) | undefined;
7576
+ threadId?: (string | null) | undefined;
7577
+ requestId?: (string | null) | undefined;
7578
+ environment?: (string | null) | undefined;
7579
+ serviceName?: (string | null) | undefined;
7580
+ scope?: ({
7581
+ [key: string]: unknown;
7582
+ } | null) | undefined;
7583
+ entityVersionId?: (string | null) | undefined;
7584
+ parentEntityVersionId?: (string | null) | undefined;
7585
+ rootEntityVersionId?: (string | null) | undefined;
7586
+ /** Experiment or eval run identifier */
7587
+ experimentId?: (string | null) | undefined;
7588
+ source?: (string | null) | undefined;
7589
+ metadata?: ({
7590
+ [key: string]: unknown;
7591
+ } | null) | undefined;
7592
+ tags?: (string[] | null) | undefined;
7593
+ attributes?: ({
7594
+ [key: string]: unknown;
7595
+ } | null) | undefined;
7596
+ links?: (unknown[] | null) | undefined;
7597
+ input?: (unknown | null) | undefined;
7598
+ output?: (unknown | null) | undefined;
7599
+ error?: (unknown | null) | undefined;
7600
+ endedAt?: (Date | null) | undefined;
7601
+ /** Request context data */
7602
+ requestContext?: ({
7603
+ [key: string]: unknown;
7604
+ } | null) | undefined;
7605
+ /** Database record creation time */
7606
+ createdAt: Date;
7607
+ updatedAt: Date | null;
7608
+ /** Current status of the trace */
7609
+ status: 'success' | 'error' | 'running';
7610
+ }[];
7611
+ };
7612
+ export type GetObservabilityBranches_Request = Simplify<(never extends never ? {} : {
7613
+ params: never;
7614
+ }) & (GetObservabilityBranches_QueryParams extends never ? {} : {} extends GetObservabilityBranches_QueryParams ? {
7615
+ query?: GetObservabilityBranches_QueryParams;
7616
+ } : {
7617
+ query: GetObservabilityBranches_QueryParams;
7618
+ }) & (never extends never ? {} : {} extends never ? {
7619
+ body?: never;
7620
+ } : {
7621
+ body: never;
7622
+ })>;
7623
+ export interface GetObservabilityBranches_RouteContract {
7624
+ pathParams: never;
7625
+ queryParams: GetObservabilityBranches_QueryParams;
7626
+ body: never;
7627
+ request: GetObservabilityBranches_Request;
7628
+ response: GetObservabilityBranches_Response;
7629
+ responseType: 'json';
7630
+ }
7631
+ export type GetObservabilityTracesTraceIdBranchesSpanId_PathParams = {
7632
+ /** Unique trace identifier */
7633
+ traceId: string;
7634
+ /** Unique span identifier within a trace */
7635
+ spanId: string;
7636
+ };
7637
+ export type GetObservabilityTracesTraceIdBranchesSpanId_QueryParams = {
7638
+ /** Maximum descendant levels below the anchor span (omit for full subtree) */
7639
+ depth?: number | undefined;
7640
+ };
7641
+ export type GetObservabilityTracesTraceIdBranchesSpanId_Response = {
7642
+ /** Unique trace identifier */
7643
+ traceId: string;
7644
+ spans: {
7645
+ /** Unique trace identifier */
7646
+ traceId: string;
7647
+ /** Unique span identifier within a trace */
7648
+ spanId: string;
7649
+ /** Human-readable span name */
7650
+ name: string;
7651
+ /** Span type (e.g., WORKFLOW_RUN, AGENT_RUN, TOOL_CALL, etc.) */
7652
+ spanType: 'agent_run' | 'scorer_run' | 'scorer_step' | 'generic' | 'model_generation' | 'model_step' | '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';
7653
+ /** Whether this is an event (point-in-time) vs a span (duration) */
7654
+ isEvent: boolean;
7655
+ /** When the span started */
7656
+ startedAt: Date;
7657
+ parentSpanId?: (string | null) | undefined;
7658
+ entityType?: (('agent' | 'scorer' | 'rag_ingestion' | 'trajectory' | 'input_processor' | 'input_step_processor' | 'output_processor' | 'output_step_processor' | 'workflow_step' | 'tool' | 'workflow_run' | 'memory') | null) | undefined;
7659
+ entityId?: (string | null) | undefined;
7660
+ entityName?: (string | null) | undefined;
7661
+ parentEntityType?: (('agent' | 'scorer' | 'rag_ingestion' | 'trajectory' | 'input_processor' | 'input_step_processor' | 'output_processor' | 'output_step_processor' | 'workflow_step' | 'tool' | 'workflow_run' | 'memory') | null) | undefined;
7662
+ parentEntityId?: (string | null) | undefined;
7663
+ parentEntityName?: (string | null) | undefined;
7664
+ rootEntityType?: (('agent' | 'scorer' | 'rag_ingestion' | 'trajectory' | 'input_processor' | 'input_step_processor' | 'output_processor' | 'output_step_processor' | 'workflow_step' | 'tool' | 'workflow_run' | 'memory') | null) | undefined;
7665
+ rootEntityId?: (string | null) | undefined;
7666
+ rootEntityName?: (string | null) | undefined;
7667
+ userId?: (string | null) | undefined;
7668
+ organizationId?: (string | null) | undefined;
7669
+ resourceId?: (string | null) | undefined;
7670
+ runId?: (string | null) | undefined;
7671
+ sessionId?: (string | null) | undefined;
7672
+ threadId?: (string | null) | undefined;
7673
+ requestId?: (string | null) | undefined;
7674
+ environment?: (string | null) | undefined;
7675
+ serviceName?: (string | null) | undefined;
7676
+ scope?: ({
7677
+ [key: string]: unknown;
7678
+ } | null) | undefined;
7679
+ entityVersionId?: (string | null) | undefined;
7680
+ parentEntityVersionId?: (string | null) | undefined;
7681
+ rootEntityVersionId?: (string | null) | undefined;
7682
+ /** Experiment or eval run identifier */
7683
+ experimentId?: (string | null) | undefined;
7684
+ source?: (string | null) | undefined;
7685
+ metadata?: ({
7686
+ [key: string]: unknown;
7687
+ } | null) | undefined;
7688
+ tags?: (string[] | null) | undefined;
7689
+ attributes?: ({
7690
+ [key: string]: unknown;
7691
+ } | null) | undefined;
7692
+ links?: (unknown[] | null) | undefined;
7693
+ input?: (unknown | null) | undefined;
7694
+ output?: (unknown | null) | undefined;
7695
+ error?: (unknown | null) | undefined;
7696
+ endedAt?: (Date | null) | undefined;
7697
+ /** Request context data */
7698
+ requestContext?: ({
7699
+ [key: string]: unknown;
7700
+ } | null) | undefined;
7701
+ /** Database record creation time */
7702
+ createdAt: Date;
7703
+ updatedAt: Date | null;
7704
+ }[];
7705
+ };
7706
+ export type GetObservabilityTracesTraceIdBranchesSpanId_Request = Simplify<(GetObservabilityTracesTraceIdBranchesSpanId_PathParams extends never ? {} : {
7707
+ params: GetObservabilityTracesTraceIdBranchesSpanId_PathParams;
7708
+ }) & (GetObservabilityTracesTraceIdBranchesSpanId_QueryParams extends never ? {} : {} extends GetObservabilityTracesTraceIdBranchesSpanId_QueryParams ? {
7709
+ query?: GetObservabilityTracesTraceIdBranchesSpanId_QueryParams;
7710
+ } : {
7711
+ query: GetObservabilityTracesTraceIdBranchesSpanId_QueryParams;
7712
+ }) & (never extends never ? {} : {} extends never ? {
7713
+ body?: never;
7714
+ } : {
7715
+ body: never;
7716
+ })>;
7717
+ export interface GetObservabilityTracesTraceIdBranchesSpanId_RouteContract {
7718
+ pathParams: GetObservabilityTracesTraceIdBranchesSpanId_PathParams;
7719
+ queryParams: GetObservabilityTracesTraceIdBranchesSpanId_QueryParams;
7720
+ body: never;
7721
+ request: GetObservabilityTracesTraceIdBranchesSpanId_Request;
7722
+ response: GetObservabilityTracesTraceIdBranchesSpanId_Response;
7723
+ responseType: 'json';
7724
+ }
7478
7725
  export type GetObservabilityTracesTraceId_PathParams = {
7479
7726
  /** Unique trace identifier */
7480
7727
  traceId: string;
@@ -40726,6 +40973,8 @@ export interface GetBackgroundTasksBackgroundTaskId_RouteContract {
40726
40973
  export type GetSchedules_QueryParams = {
40727
40974
  workflowId?: string | undefined;
40728
40975
  status?: ('active' | 'paused') | undefined;
40976
+ ownerType?: string | undefined;
40977
+ ownerId?: string | undefined;
40729
40978
  };
40730
40979
  export type GetSchedules_Response = {
40731
40980
  schedules: {
@@ -40755,6 +41004,8 @@ export type GetSchedules_Response = {
40755
41004
  metadata?: {
40756
41005
  [key: string]: unknown;
40757
41006
  } | undefined;
41007
+ ownerType?: string | undefined;
41008
+ ownerId?: string | undefined;
40758
41009
  createdAt: number;
40759
41010
  updatedAt: number;
40760
41011
  }[];
@@ -40808,6 +41059,8 @@ export type GetSchedulesScheduleId_Response = {
40808
41059
  metadata?: {
40809
41060
  [key: string]: unknown;
40810
41061
  } | undefined;
41062
+ ownerType?: string | undefined;
41063
+ ownerId?: string | undefined;
40811
41064
  createdAt: number;
40812
41065
  updatedAt: number;
40813
41066
  };
@@ -40840,12 +41093,18 @@ export type GetSchedulesScheduleIdTriggers_QueryParams = {
40840
41093
  };
40841
41094
  export type GetSchedulesScheduleIdTriggers_Response = {
40842
41095
  triggers: {
41096
+ id?: string | undefined;
40843
41097
  scheduleId: string;
40844
- runId: string;
41098
+ runId: string | null;
40845
41099
  scheduledFireAt: number;
40846
41100
  actualFireAt: number;
40847
- status: 'published' | 'failed';
41101
+ outcome: 'published' | 'failed' | 'skipped' | 'acked' | 'alerted' | 'deferred' | 'appended-from-queue' | 'dropped-stale' | 'dropped-superseded' | 'dropped-busy';
40848
41102
  error?: string | undefined;
41103
+ triggerKind?: ('schedule-fire' | 'queue-drain') | undefined;
41104
+ parentTriggerId?: string | undefined;
41105
+ metadata?: {
41106
+ [key: string]: unknown;
41107
+ } | undefined;
40849
41108
  run?: {
40850
41109
  status: 'running' | 'success' | 'failed' | 'tripwire' | 'suspended' | 'waiting' | 'pending' | 'canceled' | 'bailed' | 'paused';
40851
41110
  startedAt?: number | undefined;
@@ -40904,6 +41163,8 @@ export type PostSchedulesScheduleIdPause_Response = {
40904
41163
  metadata?: {
40905
41164
  [key: string]: unknown;
40906
41165
  } | undefined;
41166
+ ownerType?: string | undefined;
41167
+ ownerId?: string | undefined;
40907
41168
  createdAt: number;
40908
41169
  updatedAt: number;
40909
41170
  };
@@ -40956,6 +41217,8 @@ export type PostSchedulesScheduleIdResume_Response = {
40956
41217
  metadata?: {
40957
41218
  [key: string]: unknown;
40958
41219
  } | undefined;
41220
+ ownerType?: string | undefined;
41221
+ ownerId?: string | undefined;
40959
41222
  createdAt: number;
40960
41223
  updatedAt: number;
40961
41224
  };
@@ -41236,6 +41499,8 @@ export interface RouteTypes {
41236
41499
  'GET /scores/entity/:entityType/:entityId': GetScoresEntityEntityTypeEntityId_RouteContract;
41237
41500
  'POST /scores': PostScores_RouteContract;
41238
41501
  'GET /observability/traces': GetObservabilityTraces_RouteContract;
41502
+ 'GET /observability/branches': GetObservabilityBranches_RouteContract;
41503
+ 'GET /observability/traces/:traceId/branches/:spanId': GetObservabilityTracesTraceIdBranchesSpanId_RouteContract;
41239
41504
  'GET /observability/traces/:traceId': GetObservabilityTracesTraceId_RouteContract;
41240
41505
  'GET /observability/traces/:traceId/light': GetObservabilityTracesTraceIdLight_RouteContract;
41241
41506
  'GET /observability/traces/:traceId/spans/:spanId': GetObservabilityTracesTraceIdSpansSpanId_RouteContract;
@@ -41808,6 +42073,9 @@ export interface Client {
41808
42073
  GET: GetMemoryThreadsThreadIdWorkingMemory_RouteContract;
41809
42074
  POST: PostMemoryThreadsThreadIdWorkingMemory_RouteContract;
41810
42075
  };
42076
+ '/observability/branches': {
42077
+ GET: GetObservabilityBranches_RouteContract;
42078
+ };
41811
42079
  '/observability/discovery/entity-names': {
41812
42080
  GET: GetObservabilityDiscoveryEntityNames_RouteContract;
41813
42081
  };
@@ -41891,6 +42159,9 @@ export interface Client {
41891
42159
  '/observability/traces/:traceId/:spanId/scores': {
41892
42160
  GET: GetObservabilityTracesTraceIdSpanIdScores_RouteContract;
41893
42161
  };
42162
+ '/observability/traces/:traceId/branches/:spanId': {
42163
+ GET: GetObservabilityTracesTraceIdBranchesSpanId_RouteContract;
42164
+ };
41894
42165
  '/observability/traces/:traceId/light': {
41895
42166
  GET: GetObservabilityTracesTraceIdLight_RouteContract;
41896
42167
  };