@mastra/client-js 1.17.2-alpha.2 → 1.18.0-alpha.10

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.
@@ -3273,6 +3273,124 @@ export interface PostAgentsAgentIdDeclineNetworkToolCall_RouteContract {
3273
3273
  response: PostAgentsAgentIdDeclineNetworkToolCall_Response;
3274
3274
  responseType: 'stream';
3275
3275
  }
3276
+ export type PostAgentsAgentIdResumeStreamUntilIdle_PathParams = {
3277
+ /** Unique identifier for the agent */
3278
+ agentId: string;
3279
+ };
3280
+ export type PostAgentsAgentIdResumeStreamUntilIdle_Body = {
3281
+ instructions?: (string | string[] | any | any[]) | undefined;
3282
+ system?: (string | string[] | any | any[]) | undefined;
3283
+ context?: any[] | undefined;
3284
+ memory?: {
3285
+ thread: string | {
3286
+ id: string;
3287
+ [x: string]: unknown;
3288
+ };
3289
+ resource: string;
3290
+ options?: {
3291
+ [key: string]: any;
3292
+ } | undefined;
3293
+ readOnly?: boolean | undefined;
3294
+ } | undefined;
3295
+ runId: string;
3296
+ savePerStep?: boolean | undefined;
3297
+ requestContext?: {
3298
+ [key: string]: any;
3299
+ } | undefined;
3300
+ versions?: {
3301
+ agents?: {
3302
+ [key: string]: {
3303
+ versionId: string;
3304
+ } | {
3305
+ status: 'draft' | 'published';
3306
+ };
3307
+ } | undefined;
3308
+ } | undefined;
3309
+ maxSteps?: number | undefined;
3310
+ stopWhen?: any | undefined;
3311
+ providerOptions?: {
3312
+ anthropic?: {
3313
+ [key: string]: any;
3314
+ } | undefined;
3315
+ google?: {
3316
+ [key: string]: any;
3317
+ } | undefined;
3318
+ openai?: {
3319
+ [key: string]: any;
3320
+ } | undefined;
3321
+ xai?: {
3322
+ [key: string]: any;
3323
+ } | undefined;
3324
+ } | undefined;
3325
+ modelSettings?: any | undefined;
3326
+ activeTools?: string[] | undefined;
3327
+ toolsets?: {
3328
+ [key: string]: any;
3329
+ } | undefined;
3330
+ clientTools?: {
3331
+ [key: string]: any;
3332
+ } | undefined;
3333
+ toolChoice?: (('auto' | 'none' | 'required') | {
3334
+ type: 'tool';
3335
+ toolName: string;
3336
+ }) | undefined;
3337
+ requireToolApproval?: boolean | undefined;
3338
+ scorers?: ({
3339
+ [key: string]: any;
3340
+ } | {
3341
+ [key: string]: {
3342
+ scorer: string;
3343
+ sampling?: any | undefined;
3344
+ };
3345
+ }) | undefined;
3346
+ returnScorerData?: boolean | undefined;
3347
+ tracingOptions?: {
3348
+ metadata?: {
3349
+ [key: string]: unknown;
3350
+ } | undefined;
3351
+ requestContextKeys?: string[] | undefined;
3352
+ traceId?: string | undefined;
3353
+ parentSpanId?: string | undefined;
3354
+ tags?: string[] | undefined;
3355
+ hideInput?: boolean | undefined;
3356
+ hideOutput?: boolean | undefined;
3357
+ } | undefined;
3358
+ output?: any | undefined;
3359
+ structuredOutput?: {
3360
+ schema: {
3361
+ [x: string]: unknown;
3362
+ };
3363
+ model?: (string | any) | undefined;
3364
+ instructions?: string | undefined;
3365
+ jsonPromptInjection?: boolean | undefined;
3366
+ errorStrategy?: ('strict' | 'warn' | 'fallback') | undefined;
3367
+ fallbackValue?: any | undefined;
3368
+ } | undefined;
3369
+ resumeData: unknown;
3370
+ toolCallId?: string | undefined;
3371
+ maxIdleMs?: number | undefined;
3372
+ [x: string]: unknown;
3373
+ };
3374
+ export type PostAgentsAgentIdResumeStreamUntilIdle_Response = any;
3375
+ export type PostAgentsAgentIdResumeStreamUntilIdle_Request = Simplify<(PostAgentsAgentIdResumeStreamUntilIdle_PathParams extends never ? {} : {
3376
+ params: PostAgentsAgentIdResumeStreamUntilIdle_PathParams;
3377
+ }) & (never extends never ? {} : {} extends never ? {
3378
+ query?: never;
3379
+ } : {
3380
+ query: never;
3381
+ }) & (PostAgentsAgentIdResumeStreamUntilIdle_Body extends never ? {} : {} extends PostAgentsAgentIdResumeStreamUntilIdle_Body ? {
3382
+ body?: PostAgentsAgentIdResumeStreamUntilIdle_Body;
3383
+ } : {
3384
+ body: PostAgentsAgentIdResumeStreamUntilIdle_Body;
3385
+ })>;
3386
+ export interface PostAgentsAgentIdResumeStreamUntilIdle_RouteContract {
3387
+ pathParams: PostAgentsAgentIdResumeStreamUntilIdle_PathParams;
3388
+ queryParams: never;
3389
+ body: PostAgentsAgentIdResumeStreamUntilIdle_Body;
3390
+ request: PostAgentsAgentIdResumeStreamUntilIdle_Request;
3391
+ response: PostAgentsAgentIdResumeStreamUntilIdle_Response;
3392
+ responseType: 'stream';
3393
+ }
3276
3394
  export type PostAgentsAgentIdNetwork_PathParams = {
3277
3395
  /** Unique identifier for the agent */
3278
3396
  agentId: string;
@@ -5381,6 +5499,87 @@ export interface PostWorkflowsWorkflowIdRestartAllActiveWorkflowRunsAsync_RouteC
5381
5499
  response: PostWorkflowsWorkflowIdRestartAllActiveWorkflowRunsAsync_Response;
5382
5500
  responseType: 'json';
5383
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
+ }
5384
5583
  export type GetTools_Response = {
5385
5584
  [key: string]: {
5386
5585
  id: string;
@@ -5621,8 +5820,8 @@ export interface PostProcessorsProcessorIdExecute_RouteContract {
5621
5820
  export type PostV1Responses_Body = {
5622
5821
  /** Optional model identifier override, such as openai/gpt-5. When omitted, the agent default model is used. */
5623
5822
  model?: string | undefined;
5624
- /** Mastra agent ID for the request */
5625
- agent_id: string;
5823
+ /** Mastra agent ID for the request. Required unless previous_response_id is provided. */
5824
+ agent_id?: string | undefined;
5626
5825
  input: string | {
5627
5826
  role: 'system' | 'developer' | 'user' | 'assistant';
5628
5827
  content: string | {
@@ -5654,6 +5853,10 @@ export type PostV1Responses_Body = {
5654
5853
  openai?: {
5655
5854
  [key: string]: unknown;
5656
5855
  } | undefined;
5856
+ /** Azure OpenAI provider options such as previousResponseId, store, or itemId */
5857
+ azure?: {
5858
+ [key: string]: unknown;
5859
+ } | undefined;
5657
5860
  [x: string]: unknown;
5658
5861
  } | undefined;
5659
5862
  stream: boolean | undefined;
@@ -5727,6 +5930,10 @@ export type PostV1Responses_Response = {
5727
5930
  openai?: {
5728
5931
  [key: string]: unknown;
5729
5932
  } | undefined;
5933
+ /** Azure OpenAI provider options such as previousResponseId, store, or itemId */
5934
+ azure?: {
5935
+ [key: string]: unknown;
5936
+ } | undefined;
5730
5937
  [x: string]: unknown;
5731
5938
  } | undefined;
5732
5939
  tools?: {
@@ -5826,6 +6033,10 @@ export type GetV1ResponsesResponseId_Response = {
5826
6033
  openai?: {
5827
6034
  [key: string]: unknown;
5828
6035
  } | undefined;
6036
+ /** Azure OpenAI provider options such as previousResponseId, store, or itemId */
6037
+ azure?: {
6038
+ [key: string]: unknown;
6039
+ } | undefined;
5829
6040
  [x: string]: unknown;
5830
6041
  } | undefined;
5831
6042
  tools?: {
@@ -7331,7 +7542,7 @@ export type GetObservabilityTraces_QueryParams = {
7331
7542
  /** When true, excludes the end date from results (uses < instead of <=) */
7332
7543
  endExclusive?: boolean | undefined;
7333
7544
  } | undefined) | undefined) | any;
7334
- 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;
7335
7546
  traceId?: (string | undefined) | undefined;
7336
7547
  entityType?: (string | undefined) | undefined;
7337
7548
  entityId?: ((string | null) | undefined) | undefined;
@@ -7400,7 +7611,7 @@ export type GetObservabilityTraces_Response = {
7400
7611
  /** Human-readable span name */
7401
7612
  name: string;
7402
7613
  /** Span type (e.g., WORKFLOW_RUN, AGENT_RUN, TOOL_CALL, etc.) */
7403
- 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';
7404
7615
  /** Whether this is an event (point-in-time) vs a span (duration) */
7405
7616
  isEvent: boolean;
7406
7617
  /** When the span started */
@@ -7496,7 +7707,7 @@ export type GetObservabilityBranches_QueryParams = {
7496
7707
  /** When true, excludes the end date from results (uses < instead of <=) */
7497
7708
  endExclusive?: boolean | undefined;
7498
7709
  } | 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;
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;
7500
7711
  traceId?: (string | undefined) | undefined;
7501
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;
7502
7713
  entityId?: ((string | null) | undefined) | undefined;
@@ -7553,7 +7764,7 @@ export type GetObservabilityBranches_Response = {
7553
7764
  /** Human-readable span name */
7554
7765
  name: string;
7555
7766
  /** 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';
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';
7557
7768
  /** Whether this is an event (point-in-time) vs a span (duration) */
7558
7769
  isEvent: boolean;
7559
7770
  /** When the span started */
@@ -7649,7 +7860,7 @@ export type GetObservabilityTracesTraceIdBranchesSpanId_Response = {
7649
7860
  /** Human-readable span name */
7650
7861
  name: string;
7651
7862
  /** 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';
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';
7653
7864
  /** Whether this is an event (point-in-time) vs a span (duration) */
7654
7865
  isEvent: boolean;
7655
7866
  /** When the span started */
@@ -7737,7 +7948,7 @@ export type GetObservabilityTracesTraceId_Response = {
7737
7948
  /** Human-readable span name */
7738
7949
  name: string;
7739
7950
  /** Span type (e.g., WORKFLOW_RUN, AGENT_RUN, TOOL_CALL, etc.) */
7740
- 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';
7741
7952
  /** Whether this is an event (point-in-time) vs a span (duration) */
7742
7953
  isEvent: boolean;
7743
7954
  /** When the span started */
@@ -7825,7 +8036,7 @@ export type GetObservabilityTracesTraceIdLight_Response = {
7825
8036
  /** Human-readable span name */
7826
8037
  name: string;
7827
8038
  /** Span type (e.g., WORKFLOW_RUN, AGENT_RUN, TOOL_CALL, etc.) */
7828
- 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';
7829
8040
  /** Whether this is an event (point-in-time) vs a span (duration) */
7830
8041
  isEvent: boolean;
7831
8042
  /** When the span started */
@@ -7876,7 +8087,7 @@ export type GetObservabilityTracesTraceIdSpansSpanId_Response = {
7876
8087
  /** Human-readable span name */
7877
8088
  name: string;
7878
8089
  /** Span type (e.g., WORKFLOW_RUN, AGENT_RUN, TOOL_CALL, etc.) */
7879
- 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';
7880
8091
  /** Whether this is an event (point-in-time) vs a span (duration) */
7881
8092
  isEvent: boolean;
7882
8093
  /** When the span started */
@@ -8065,7 +8276,7 @@ export type GetObservabilityTracesTraceIdSpanIdScores_Response = {
8065
8276
  entity: {
8066
8277
  [key: string]: unknown;
8067
8278
  };
8068
- 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;
8069
8280
  structuredOutput?: boolean | undefined;
8070
8281
  traceId?: string | undefined;
8071
8282
  spanId?: string | undefined;
@@ -9362,8 +9573,8 @@ export type PostObservabilityMetricsAggregate_Body = {
9362
9573
  name: string[];
9363
9574
  /** Aggregation function */
9364
9575
  aggregation: 'sum' | 'avg' | 'min' | 'max' | 'count' | 'count_distinct' | 'last';
9365
- /** Column to apply count_distinct over (required when aggregation is 'count_distinct'). Restricted to low/medium-cardinality categorical columns; ID columns are not allowed. */
9366
- distinctColumn?: ('entityType' | 'entityName' | 'parentEntityType' | 'parentEntityName' | 'rootEntityType' | 'rootEntityName' | 'name' | 'provider' | 'model' | 'environment' | 'executionSource' | 'serviceName') | undefined;
9576
+ /** Column to apply count_distinct over (required when aggregation is 'count_distinct'). Restricted to allowlisted metric dimensions. */
9577
+ distinctColumn?: ('entityType' | 'entityName' | 'parentEntityType' | 'parentEntityName' | 'rootEntityType' | 'rootEntityName' | 'name' | 'provider' | 'model' | 'environment' | 'executionSource' | 'serviceName' | 'threadId' | 'resourceId') | undefined;
9367
9578
  filters?: {
9368
9579
  /** Filter by timestamp range */
9369
9580
  timestamp?: {
@@ -9458,8 +9669,8 @@ export type PostObservabilityMetricsBreakdown_Body = {
9458
9669
  groupBy: string[];
9459
9670
  /** Aggregation function */
9460
9671
  aggregation: 'sum' | 'avg' | 'min' | 'max' | 'count' | 'count_distinct' | 'last';
9461
- /** Column to apply count_distinct over (required when aggregation is 'count_distinct'). Restricted to low/medium-cardinality categorical columns; ID columns are not allowed. */
9462
- distinctColumn?: ('entityType' | 'entityName' | 'parentEntityType' | 'parentEntityName' | 'rootEntityType' | 'rootEntityName' | 'name' | 'provider' | 'model' | 'environment' | 'executionSource' | 'serviceName') | undefined;
9672
+ /** Column to apply count_distinct over (required when aggregation is 'count_distinct'). Restricted to allowlisted metric dimensions. */
9673
+ distinctColumn?: ('entityType' | 'entityName' | 'parentEntityType' | 'parentEntityName' | 'rootEntityType' | 'rootEntityName' | 'name' | 'provider' | 'model' | 'environment' | 'executionSource' | 'serviceName' | 'threadId' | 'resourceId') | undefined;
9463
9674
  filters?: {
9464
9675
  /** Filter by timestamp range */
9465
9676
  timestamp?: {
@@ -9555,8 +9766,8 @@ export type PostObservabilityMetricsTimeseries_Body = {
9555
9766
  interval: '1m' | '5m' | '15m' | '1h' | '1d';
9556
9767
  /** Aggregation function */
9557
9768
  aggregation: 'sum' | 'avg' | 'min' | 'max' | 'count' | 'count_distinct' | 'last';
9558
- /** Column to apply count_distinct over (required when aggregation is 'count_distinct'). Restricted to low/medium-cardinality categorical columns; ID columns are not allowed. */
9559
- distinctColumn?: ('entityType' | 'entityName' | 'parentEntityType' | 'parentEntityName' | 'rootEntityType' | 'rootEntityName' | 'name' | 'provider' | 'model' | 'environment' | 'executionSource' | 'serviceName') | undefined;
9769
+ /** Column to apply count_distinct over (required when aggregation is 'count_distinct'). Restricted to allowlisted metric dimensions. */
9770
+ distinctColumn?: ('entityType' | 'entityName' | 'parentEntityType' | 'parentEntityName' | 'rootEntityType' | 'rootEntityName' | 'name' | 'provider' | 'model' | 'environment' | 'executionSource' | 'serviceName' | 'threadId' | 'resourceId') | undefined;
9560
9771
  filters?: {
9561
9772
  /** Filter by timestamp range */
9562
9773
  timestamp?: {
@@ -10325,6 +10536,13 @@ export type GetWellKnownAgentIdAgentCardJson_Response = {
10325
10536
  defaultInputModes: string[];
10326
10537
  defaultOutputModes: string[];
10327
10538
  supportsAuthenticatedExtendedCard?: boolean | undefined;
10539
+ signatures?: {
10540
+ protected: string;
10541
+ signature: string;
10542
+ header?: {
10543
+ [key: string]: unknown;
10544
+ } | undefined;
10545
+ }[] | undefined;
10328
10546
  skills: {
10329
10547
  id: string;
10330
10548
  name: string;
@@ -39040,6 +39258,50 @@ export interface GetSystemPackages_RouteContract {
39040
39258
  response: GetSystemPackages_Response;
39041
39259
  responseType: 'json';
39042
39260
  }
39261
+ export type GetSystemApiSchema_Response = {
39262
+ version: 1;
39263
+ routes: {
39264
+ method: string;
39265
+ path: string;
39266
+ responseType: string;
39267
+ pathParamSchema?: {
39268
+ [key: string]: unknown;
39269
+ } | undefined;
39270
+ queryParamSchema?: {
39271
+ [key: string]: unknown;
39272
+ } | undefined;
39273
+ bodySchema?: {
39274
+ [key: string]: unknown;
39275
+ } | undefined;
39276
+ responseSchema?: {
39277
+ [key: string]: unknown;
39278
+ } | undefined;
39279
+ responseShape: {
39280
+ kind: 'array' | 'record' | 'object-property' | 'single' | 'unknown';
39281
+ listProperty?: string | undefined;
39282
+ paginationProperty?: string | undefined;
39283
+ };
39284
+ }[];
39285
+ };
39286
+ export type GetSystemApiSchema_Request = Simplify<(never extends never ? {} : {
39287
+ params: never;
39288
+ }) & (never extends never ? {} : {} extends never ? {
39289
+ query?: never;
39290
+ } : {
39291
+ query: never;
39292
+ }) & (never extends never ? {} : {} extends never ? {
39293
+ body?: never;
39294
+ } : {
39295
+ body: never;
39296
+ })>;
39297
+ export interface GetSystemApiSchema_RouteContract {
39298
+ pathParams: never;
39299
+ queryParams: never;
39300
+ body: never;
39301
+ request: GetSystemApiSchema_Request;
39302
+ response: GetSystemApiSchema_Response;
39303
+ responseType: 'json';
39304
+ }
39043
39305
  export type GetDatasets_QueryParams = {
39044
39306
  page: number | undefined;
39045
39307
  perPage: number | undefined;
@@ -40940,14 +41202,16 @@ export interface GetBackgroundTasksStream_RouteContract {
40940
41202
  }
40941
41203
  export type GetBackgroundTasks_QueryParams = {
40942
41204
  agentId?: string | undefined;
40943
- status?: ('pending' | 'running' | 'completed' | 'failed' | 'cancelled' | 'timed_out') | undefined;
41205
+ status?: ('pending' | 'running' | 'suspended' | 'completed' | 'failed' | 'cancelled' | 'timed_out') | undefined;
40944
41206
  runId?: string | undefined;
40945
41207
  threadId?: string | undefined;
40946
41208
  resourceId?: string | undefined;
41209
+ toolName?: string | undefined;
41210
+ toolCallId?: string | undefined;
40947
41211
  fromDate?: Date | undefined;
40948
41212
  toDate?: Date | undefined;
40949
- dateFilterBy?: ('createdAt' | 'startedAt' | 'completedAt') | undefined;
40950
- orderBy?: ('createdAt' | 'startedAt' | 'completedAt') | undefined;
41213
+ dateFilterBy?: ('createdAt' | 'startedAt' | 'suspendedAt' | 'completedAt') | undefined;
41214
+ orderBy?: ('createdAt' | 'startedAt' | 'suspendedAt' | 'completedAt') | undefined;
40951
41215
  orderDirection?: ('asc' | 'desc') | undefined;
40952
41216
  page?: number | undefined;
40953
41217
  perPage?: number | undefined;
@@ -40955,7 +41219,7 @@ export type GetBackgroundTasks_QueryParams = {
40955
41219
  export type GetBackgroundTasks_Response = {
40956
41220
  tasks: {
40957
41221
  id: string;
40958
- status: 'pending' | 'running' | 'completed' | 'failed' | 'cancelled' | 'timed_out';
41222
+ status: 'pending' | 'running' | 'suspended' | 'completed' | 'failed' | 'cancelled' | 'timed_out';
40959
41223
  toolName: string;
40960
41224
  toolCallId: string;
40961
41225
  args: {
@@ -40976,6 +41240,7 @@ export type GetBackgroundTasks_Response = {
40976
41240
  retryCount: number;
40977
41241
  maxRetries: number;
40978
41242
  timeoutMs: number;
41243
+ suspendPayload?: unknown | undefined;
40979
41244
  }[];
40980
41245
  total: number;
40981
41246
  };
@@ -41003,7 +41268,7 @@ export type GetBackgroundTasksBackgroundTaskId_PathParams = {
41003
41268
  };
41004
41269
  export type GetBackgroundTasksBackgroundTaskId_Response = {
41005
41270
  id: string;
41006
- status: 'pending' | 'running' | 'completed' | 'failed' | 'cancelled' | 'timed_out';
41271
+ status: 'pending' | 'running' | 'suspended' | 'completed' | 'failed' | 'cancelled' | 'timed_out';
41007
41272
  toolName: string;
41008
41273
  toolCallId: string;
41009
41274
  args: {
@@ -41024,6 +41289,7 @@ export type GetBackgroundTasksBackgroundTaskId_Response = {
41024
41289
  retryCount: number;
41025
41290
  maxRetries: number;
41026
41291
  timeoutMs: number;
41292
+ suspendPayload?: unknown | undefined;
41027
41293
  };
41028
41294
  export type GetBackgroundTasksBackgroundTaskId_Request = Simplify<(GetBackgroundTasksBackgroundTaskId_PathParams extends never ? {} : {
41029
41295
  params: GetBackgroundTasksBackgroundTaskId_PathParams;
@@ -41483,6 +41749,7 @@ export interface RouteTypes {
41483
41749
  'POST /agents/:agentId/decline-tool-call-generate': PostAgentsAgentIdDeclineToolCallGenerate_RouteContract;
41484
41750
  'POST /agents/:agentId/approve-network-tool-call': PostAgentsAgentIdApproveNetworkToolCall_RouteContract;
41485
41751
  'POST /agents/:agentId/decline-network-tool-call': PostAgentsAgentIdDeclineNetworkToolCall_RouteContract;
41752
+ 'POST /agents/:agentId/resume-stream-until-idle': PostAgentsAgentIdResumeStreamUntilIdle_RouteContract;
41486
41753
  'POST /agents/:agentId/network': PostAgentsAgentIdNetwork_RouteContract;
41487
41754
  'POST /agents/:agentId/model': PostAgentsAgentIdModel_RouteContract;
41488
41755
  'POST /agents/:agentId/model/reset': PostAgentsAgentIdModelReset_RouteContract;
@@ -41528,6 +41795,8 @@ export interface RouteTypes {
41528
41795
  'POST /workflows/:workflowId/restart-async': PostWorkflowsWorkflowIdRestartAsync_RouteContract;
41529
41796
  'POST /workflows/:workflowId/restart-all-active-workflow-runs': PostWorkflowsWorkflowIdRestartAllActiveWorkflowRuns_RouteContract;
41530
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;
41531
41800
  'GET /tools': GetTools_RouteContract;
41532
41801
  'GET /tools/:toolId': GetToolsToolId_RouteContract;
41533
41802
  'POST /tools/:toolId/execute': PostToolsToolIdExecute_RouteContract;
@@ -41737,6 +42006,7 @@ export interface RouteTypes {
41737
42006
  'GET /processor-providers': GetProcessorProviders_RouteContract;
41738
42007
  'GET /processor-providers/:providerId': GetProcessorProvidersProviderId_RouteContract;
41739
42008
  'GET /system/packages': GetSystemPackages_RouteContract;
42009
+ 'GET /system/api-schema': GetSystemApiSchema_RouteContract;
41740
42010
  'GET /datasets': GetDatasets_RouteContract;
41741
42011
  'POST /datasets': PostDatasets_RouteContract;
41742
42012
  'GET /datasets/:datasetId': GetDatasetsDatasetId_RouteContract;
@@ -41897,6 +42167,9 @@ export interface Client {
41897
42167
  '/agents/:agentId/resume-stream': {
41898
42168
  POST: PostAgentsAgentIdResumeStream_RouteContract;
41899
42169
  };
42170
+ '/agents/:agentId/resume-stream-until-idle': {
42171
+ POST: PostAgentsAgentIdResumeStreamUntilIdle_RouteContract;
42172
+ };
41900
42173
  '/agents/:agentId/skills/:skillName': {
41901
42174
  GET: GetAgentsAgentIdSkillsSkillName_RouteContract;
41902
42175
  };
@@ -42432,6 +42705,9 @@ export interface Client {
42432
42705
  GET: GetStoredWorkspacesStoredWorkspaceId_RouteContract;
42433
42706
  PATCH: PatchStoredWorkspacesStoredWorkspaceId_RouteContract;
42434
42707
  };
42708
+ '/system/api-schema': {
42709
+ GET: GetSystemApiSchema_RouteContract;
42710
+ };
42435
42711
  '/system/packages': {
42436
42712
  GET: GetSystemPackages_RouteContract;
42437
42713
  };
@@ -42538,6 +42814,9 @@ export interface Client {
42538
42814
  '/workflows/:workflowId/runs/:runId/cancel': {
42539
42815
  POST: PostWorkflowsWorkflowIdRunsRunIdCancel_RouteContract;
42540
42816
  };
42817
+ '/workflows/:workflowId/runs/:runId/steps/execute': {
42818
+ POST: PostWorkflowsWorkflowIdRunsRunIdStepsExecute_RouteContract;
42819
+ };
42541
42820
  '/workflows/:workflowId/start': {
42542
42821
  POST: PostWorkflowsWorkflowIdStart_RouteContract;
42543
42822
  };
@@ -42559,6 +42838,9 @@ export interface Client {
42559
42838
  '/workflows/:workflowId/time-travel-stream': {
42560
42839
  POST: PostWorkflowsWorkflowIdTimeTravelStream_RouteContract;
42561
42840
  };
42841
+ '/workflows/events': {
42842
+ POST: PostWorkflowsEvents_RouteContract;
42843
+ };
42562
42844
  '/workspaces': {
42563
42845
  GET: GetWorkspaces_RouteContract;
42564
42846
  };