@mastra/client-js 1.18.0-alpha.6 → 1.18.0-alpha.8

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.
@@ -5499,6 +5499,87 @@ export interface PostWorkflowsWorkflowIdRestartAllActiveWorkflowRunsAsync_RouteC
5499
5499
  response: PostWorkflowsWorkflowIdRestartAllActiveWorkflowRunsAsync_Response;
5500
5500
  responseType: 'json';
5501
5501
  }
5502
+ export type PostWorkflowsWorkflowIdRunsRunIdStepsExecute_PathParams = {
5503
+ /** Unique identifier for the workflow */
5504
+ workflowId: string;
5505
+ /** Unique identifier for the workflow run */
5506
+ runId: string;
5507
+ };
5508
+ export type PostWorkflowsWorkflowIdRunsRunIdStepsExecute_Body = {
5509
+ stepId: string;
5510
+ executionPath: number[];
5511
+ stepResults: {
5512
+ [key: string]: any;
5513
+ };
5514
+ state: {
5515
+ [key: string]: any;
5516
+ };
5517
+ requestContext: {
5518
+ [key: string]: any;
5519
+ };
5520
+ input?: any | undefined;
5521
+ resumeData?: any | undefined;
5522
+ retryCount?: number | undefined;
5523
+ foreachIdx?: number | undefined;
5524
+ format?: ('legacy' | 'vnext') | undefined;
5525
+ perStep?: boolean | undefined;
5526
+ validateInputs?: boolean | undefined;
5527
+ };
5528
+ export type PostWorkflowsWorkflowIdRunsRunIdStepsExecute_Response = any;
5529
+ export type PostWorkflowsWorkflowIdRunsRunIdStepsExecute_Request = Simplify<(PostWorkflowsWorkflowIdRunsRunIdStepsExecute_PathParams extends never ? {} : {
5530
+ params: PostWorkflowsWorkflowIdRunsRunIdStepsExecute_PathParams;
5531
+ }) & (never extends never ? {} : {} extends never ? {
5532
+ query?: never;
5533
+ } : {
5534
+ query: never;
5535
+ }) & (PostWorkflowsWorkflowIdRunsRunIdStepsExecute_Body extends never ? {} : {} extends PostWorkflowsWorkflowIdRunsRunIdStepsExecute_Body ? {
5536
+ body?: PostWorkflowsWorkflowIdRunsRunIdStepsExecute_Body;
5537
+ } : {
5538
+ body: PostWorkflowsWorkflowIdRunsRunIdStepsExecute_Body;
5539
+ })>;
5540
+ export interface PostWorkflowsWorkflowIdRunsRunIdStepsExecute_RouteContract {
5541
+ pathParams: PostWorkflowsWorkflowIdRunsRunIdStepsExecute_PathParams;
5542
+ queryParams: never;
5543
+ body: PostWorkflowsWorkflowIdRunsRunIdStepsExecute_Body;
5544
+ request: PostWorkflowsWorkflowIdRunsRunIdStepsExecute_Request;
5545
+ response: PostWorkflowsWorkflowIdRunsRunIdStepsExecute_Response;
5546
+ responseType: 'json';
5547
+ }
5548
+ export type PostWorkflowsEvents_Body = {
5549
+ event: {
5550
+ id: string;
5551
+ type: string;
5552
+ data: unknown;
5553
+ runId: string;
5554
+ createdAt: string;
5555
+ index?: number | undefined;
5556
+ deliveryAttempt?: number | undefined;
5557
+ [x: string]: unknown;
5558
+ };
5559
+ };
5560
+ export type PostWorkflowsEvents_Response = {
5561
+ ok: boolean;
5562
+ retry?: boolean | undefined;
5563
+ };
5564
+ export type PostWorkflowsEvents_Request = Simplify<(never extends never ? {} : {
5565
+ params: never;
5566
+ }) & (never extends never ? {} : {} extends never ? {
5567
+ query?: never;
5568
+ } : {
5569
+ query: never;
5570
+ }) & (PostWorkflowsEvents_Body extends never ? {} : {} extends PostWorkflowsEvents_Body ? {
5571
+ body?: PostWorkflowsEvents_Body;
5572
+ } : {
5573
+ body: PostWorkflowsEvents_Body;
5574
+ })>;
5575
+ export interface PostWorkflowsEvents_RouteContract {
5576
+ pathParams: never;
5577
+ queryParams: never;
5578
+ body: PostWorkflowsEvents_Body;
5579
+ request: PostWorkflowsEvents_Request;
5580
+ response: PostWorkflowsEvents_Response;
5581
+ responseType: 'json';
5582
+ }
5502
5583
  export type GetTools_Response = {
5503
5584
  [key: string]: {
5504
5585
  id: string;
@@ -7461,7 +7542,7 @@ export type GetObservabilityTraces_QueryParams = {
7461
7542
  /** When true, excludes the end date from results (uses < instead of <=) */
7462
7543
  endExclusive?: boolean | undefined;
7463
7544
  } | undefined) | undefined) | any;
7464
- 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;
7545
+ 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;
7465
7546
  traceId?: (string | undefined) | undefined;
7466
7547
  entityType?: (string | undefined) | undefined;
7467
7548
  entityId?: ((string | null) | undefined) | undefined;
@@ -7530,7 +7611,7 @@ export type GetObservabilityTraces_Response = {
7530
7611
  /** Human-readable span name */
7531
7612
  name: string;
7532
7613
  /** Span type (e.g., WORKFLOW_RUN, AGENT_RUN, TOOL_CALL, etc.) */
7533
- 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';
7614
+ 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';
7534
7615
  /** Whether this is an event (point-in-time) vs a span (duration) */
7535
7616
  isEvent: boolean;
7536
7617
  /** When the span started */
@@ -7626,7 +7707,7 @@ export type GetObservabilityBranches_QueryParams = {
7626
7707
  /** When true, excludes the end date from results (uses < instead of <=) */
7627
7708
  endExclusive?: boolean | undefined;
7628
7709
  } | undefined) | undefined) | any;
7629
- 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;
7710
+ 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;
7630
7711
  traceId?: (string | undefined) | undefined;
7631
7712
  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;
7632
7713
  entityId?: ((string | null) | undefined) | undefined;
@@ -7683,7 +7764,7 @@ export type GetObservabilityBranches_Response = {
7683
7764
  /** Human-readable span name */
7684
7765
  name: string;
7685
7766
  /** Span type (e.g., WORKFLOW_RUN, AGENT_RUN, TOOL_CALL, etc.) */
7686
- 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';
7767
+ 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';
7687
7768
  /** Whether this is an event (point-in-time) vs a span (duration) */
7688
7769
  isEvent: boolean;
7689
7770
  /** When the span started */
@@ -7779,7 +7860,7 @@ export type GetObservabilityTracesTraceIdBranchesSpanId_Response = {
7779
7860
  /** Human-readable span name */
7780
7861
  name: string;
7781
7862
  /** Span type (e.g., WORKFLOW_RUN, AGENT_RUN, TOOL_CALL, etc.) */
7782
- 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';
7863
+ 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';
7783
7864
  /** Whether this is an event (point-in-time) vs a span (duration) */
7784
7865
  isEvent: boolean;
7785
7866
  /** When the span started */
@@ -7867,7 +7948,7 @@ export type GetObservabilityTracesTraceId_Response = {
7867
7948
  /** Human-readable span name */
7868
7949
  name: string;
7869
7950
  /** Span type (e.g., WORKFLOW_RUN, AGENT_RUN, TOOL_CALL, etc.) */
7870
- 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';
7951
+ 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';
7871
7952
  /** Whether this is an event (point-in-time) vs a span (duration) */
7872
7953
  isEvent: boolean;
7873
7954
  /** When the span started */
@@ -7955,7 +8036,7 @@ export type GetObservabilityTracesTraceIdLight_Response = {
7955
8036
  /** Human-readable span name */
7956
8037
  name: string;
7957
8038
  /** Span type (e.g., WORKFLOW_RUN, AGENT_RUN, TOOL_CALL, etc.) */
7958
- 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';
8039
+ 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';
7959
8040
  /** Whether this is an event (point-in-time) vs a span (duration) */
7960
8041
  isEvent: boolean;
7961
8042
  /** When the span started */
@@ -8006,7 +8087,7 @@ export type GetObservabilityTracesTraceIdSpansSpanId_Response = {
8006
8087
  /** Human-readable span name */
8007
8088
  name: string;
8008
8089
  /** Span type (e.g., WORKFLOW_RUN, AGENT_RUN, TOOL_CALL, etc.) */
8009
- 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';
8090
+ 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';
8010
8091
  /** Whether this is an event (point-in-time) vs a span (duration) */
8011
8092
  isEvent: boolean;
8012
8093
  /** When the span started */
@@ -8195,7 +8276,7 @@ export type GetObservabilityTracesTraceIdSpanIdScores_Response = {
8195
8276
  entity: {
8196
8277
  [key: string]: unknown;
8197
8278
  };
8198
- entityType?: ('AGENT' | 'WORKFLOW' | 'TRAJECTORY' | 'STEP' | '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;
8279
+ entityType?: ('AGENT' | 'WORKFLOW' | 'TRAJECTORY' | 'STEP' | '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;
8199
8280
  structuredOutput?: boolean | undefined;
8200
8281
  traceId?: string | undefined;
8201
8282
  spanId?: string | undefined;
@@ -41714,6 +41795,8 @@ export interface RouteTypes {
41714
41795
  'POST /workflows/:workflowId/restart-async': PostWorkflowsWorkflowIdRestartAsync_RouteContract;
41715
41796
  'POST /workflows/:workflowId/restart-all-active-workflow-runs': PostWorkflowsWorkflowIdRestartAllActiveWorkflowRuns_RouteContract;
41716
41797
  'POST /workflows/:workflowId/restart-all-active-workflow-runs-async': PostWorkflowsWorkflowIdRestartAllActiveWorkflowRunsAsync_RouteContract;
41798
+ 'POST /workflows/:workflowId/runs/:runId/steps/execute': PostWorkflowsWorkflowIdRunsRunIdStepsExecute_RouteContract;
41799
+ 'POST /workflows/events': PostWorkflowsEvents_RouteContract;
41717
41800
  'GET /tools': GetTools_RouteContract;
41718
41801
  'GET /tools/:toolId': GetToolsToolId_RouteContract;
41719
41802
  'POST /tools/:toolId/execute': PostToolsToolIdExecute_RouteContract;
@@ -42731,6 +42814,9 @@ export interface Client {
42731
42814
  '/workflows/:workflowId/runs/:runId/cancel': {
42732
42815
  POST: PostWorkflowsWorkflowIdRunsRunIdCancel_RouteContract;
42733
42816
  };
42817
+ '/workflows/:workflowId/runs/:runId/steps/execute': {
42818
+ POST: PostWorkflowsWorkflowIdRunsRunIdStepsExecute_RouteContract;
42819
+ };
42734
42820
  '/workflows/:workflowId/start': {
42735
42821
  POST: PostWorkflowsWorkflowIdStart_RouteContract;
42736
42822
  };
@@ -42752,6 +42838,9 @@ export interface Client {
42752
42838
  '/workflows/:workflowId/time-travel-stream': {
42753
42839
  POST: PostWorkflowsWorkflowIdTimeTravelStream_RouteContract;
42754
42840
  };
42841
+ '/workflows/events': {
42842
+ POST: PostWorkflowsEvents_RouteContract;
42843
+ };
42755
42844
  '/workspaces': {
42756
42845
  GET: GetWorkspaces_RouteContract;
42757
42846
  };