@mastra/client-js 1.21.0-alpha.7 → 1.21.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.
@@ -6964,7 +6964,7 @@ export type GetMemoryThreadsThreadIdMessages_QueryParams = {
6964
6964
  };
6965
6965
  export type GetMemoryThreadsThreadIdMessages_Response = {
6966
6966
  messages: any[];
6967
- uiMessages: unknown;
6967
+ uiMessages: any[] | null;
6968
6968
  };
6969
6969
  export type GetMemoryThreadsThreadIdMessages_Request = Simplify<(GetMemoryThreadsThreadIdMessages_PathParams extends never ? {} : {
6970
6970
  params: GetMemoryThreadsThreadIdMessages_PathParams;
@@ -6997,9 +6997,9 @@ export type GetMemoryThreadsThreadIdWorkingMemory_QueryParams = {
6997
6997
  } | undefined;
6998
6998
  };
6999
6999
  export type GetMemoryThreadsThreadIdWorkingMemory_Response = {
7000
- workingMemory: unknown;
7000
+ workingMemory: unknown | null;
7001
7001
  source: 'thread' | 'resource';
7002
- workingMemoryTemplate: unknown;
7002
+ workingMemoryTemplate: unknown | null;
7003
7003
  threadExists: boolean;
7004
7004
  };
7005
7005
  export type GetMemoryThreadsThreadIdWorkingMemory_Request = Simplify<(GetMemoryThreadsThreadIdWorkingMemory_PathParams extends never ? {} : {
@@ -7475,7 +7475,7 @@ export type GetMemoryNetworkThreadsThreadIdMessages_QueryParams = {
7475
7475
  };
7476
7476
  export type GetMemoryNetworkThreadsThreadIdMessages_Response = {
7477
7477
  messages: any[];
7478
- uiMessages: unknown;
7478
+ uiMessages: any[] | null;
7479
7479
  };
7480
7480
  export type GetMemoryNetworkThreadsThreadIdMessages_Request = Simplify<(GetMemoryNetworkThreadsThreadIdMessages_PathParams extends never ? {} : {
7481
7481
  params: GetMemoryNetworkThreadsThreadIdMessages_PathParams;
@@ -42378,6 +42378,721 @@ export interface PostEditorBuilderRegistriesRegistryIdInstall_RouteContract {
42378
42378
  response: PostEditorBuilderRegistriesRegistryIdInstall_Response;
42379
42379
  responseType: 'json';
42380
42380
  }
42381
+ export type GetAgentBuilder_Response = {
42382
+ [key: string]: {
42383
+ steps: {
42384
+ [key: string]: {
42385
+ id: string;
42386
+ description?: string | undefined;
42387
+ stateSchema?: string | undefined;
42388
+ inputSchema?: string | undefined;
42389
+ outputSchema?: string | undefined;
42390
+ resumeSchema?: string | undefined;
42391
+ suspendSchema?: string | undefined;
42392
+ component?: string | undefined;
42393
+ isWorkflow?: boolean | undefined;
42394
+ metadata?: {
42395
+ [key: string]: unknown;
42396
+ } | undefined;
42397
+ };
42398
+ };
42399
+ allSteps: {
42400
+ [key: string]: {
42401
+ id: string;
42402
+ description?: string | undefined;
42403
+ stateSchema?: string | undefined;
42404
+ inputSchema?: string | undefined;
42405
+ outputSchema?: string | undefined;
42406
+ resumeSchema?: string | undefined;
42407
+ suspendSchema?: string | undefined;
42408
+ component?: string | undefined;
42409
+ isWorkflow?: boolean | undefined;
42410
+ metadata?: {
42411
+ [key: string]: unknown;
42412
+ } | undefined;
42413
+ };
42414
+ };
42415
+ name?: string | undefined;
42416
+ description?: string | undefined;
42417
+ stepGraph: {
42418
+ type: 'step' | 'sleep' | 'sleepUntil' | 'waitForEvent' | 'parallel' | 'conditional' | 'loop' | 'foreach';
42419
+ }[];
42420
+ inputSchema?: string | undefined;
42421
+ outputSchema?: string | undefined;
42422
+ stateSchema?: string | undefined;
42423
+ options?: {} | undefined;
42424
+ isProcessorWorkflow?: boolean | undefined;
42425
+ };
42426
+ };
42427
+ export type GetAgentBuilder_Request = Simplify<(never extends never ? {} : {
42428
+ params: never;
42429
+ }) & (never extends never ? {} : {} extends never ? {
42430
+ query?: never;
42431
+ } : {
42432
+ query: never;
42433
+ }) & (never extends never ? {} : {} extends never ? {
42434
+ body?: never;
42435
+ } : {
42436
+ body: never;
42437
+ })>;
42438
+ export interface GetAgentBuilder_RouteContract {
42439
+ pathParams: never;
42440
+ queryParams: never;
42441
+ body: never;
42442
+ request: GetAgentBuilder_Request;
42443
+ response: GetAgentBuilder_Response;
42444
+ responseType: 'json';
42445
+ }
42446
+ export type GetAgentBuilderActionId_PathParams = {
42447
+ /** Unique identifier for the agent-builder action */
42448
+ actionId: string;
42449
+ };
42450
+ export type GetAgentBuilderActionId_Response = {
42451
+ steps: {
42452
+ [key: string]: {
42453
+ id: string;
42454
+ description?: string | undefined;
42455
+ stateSchema?: string | undefined;
42456
+ inputSchema?: string | undefined;
42457
+ outputSchema?: string | undefined;
42458
+ resumeSchema?: string | undefined;
42459
+ suspendSchema?: string | undefined;
42460
+ component?: string | undefined;
42461
+ isWorkflow?: boolean | undefined;
42462
+ metadata?: {
42463
+ [key: string]: unknown;
42464
+ } | undefined;
42465
+ };
42466
+ };
42467
+ allSteps: {
42468
+ [key: string]: {
42469
+ id: string;
42470
+ description?: string | undefined;
42471
+ stateSchema?: string | undefined;
42472
+ inputSchema?: string | undefined;
42473
+ outputSchema?: string | undefined;
42474
+ resumeSchema?: string | undefined;
42475
+ suspendSchema?: string | undefined;
42476
+ component?: string | undefined;
42477
+ isWorkflow?: boolean | undefined;
42478
+ metadata?: {
42479
+ [key: string]: unknown;
42480
+ } | undefined;
42481
+ };
42482
+ };
42483
+ name?: string | undefined;
42484
+ description?: string | undefined;
42485
+ stepGraph: {
42486
+ type: 'step' | 'sleep' | 'sleepUntil' | 'waitForEvent' | 'parallel' | 'conditional' | 'loop' | 'foreach';
42487
+ }[];
42488
+ inputSchema?: string | undefined;
42489
+ outputSchema?: string | undefined;
42490
+ stateSchema?: string | undefined;
42491
+ options?: {} | undefined;
42492
+ isProcessorWorkflow?: boolean | undefined;
42493
+ };
42494
+ export type GetAgentBuilderActionId_Request = Simplify<(GetAgentBuilderActionId_PathParams extends never ? {} : {
42495
+ params: GetAgentBuilderActionId_PathParams;
42496
+ }) & (never extends never ? {} : {} extends never ? {
42497
+ query?: never;
42498
+ } : {
42499
+ query: never;
42500
+ }) & (never extends never ? {} : {} extends never ? {
42501
+ body?: never;
42502
+ } : {
42503
+ body: never;
42504
+ })>;
42505
+ export interface GetAgentBuilderActionId_RouteContract {
42506
+ pathParams: GetAgentBuilderActionId_PathParams;
42507
+ queryParams: never;
42508
+ body: never;
42509
+ request: GetAgentBuilderActionId_Request;
42510
+ response: GetAgentBuilderActionId_Response;
42511
+ responseType: 'json';
42512
+ }
42513
+ export type GetAgentBuilderActionIdRuns_PathParams = {
42514
+ /** Unique identifier for the agent-builder action */
42515
+ actionId: string;
42516
+ };
42517
+ export type GetAgentBuilderActionIdRuns_QueryParams = {
42518
+ page?: number | undefined;
42519
+ perPage?: number | undefined;
42520
+ offset?: number | undefined;
42521
+ limit?: number | undefined;
42522
+ fromDate?: Date | undefined;
42523
+ toDate?: Date | undefined;
42524
+ resourceId?: string | undefined;
42525
+ status?: ('running' | 'waiting' | 'suspended' | 'success' | 'failed' | 'canceled' | 'pending' | 'bailed' | 'tripwire' | 'paused') | undefined;
42526
+ };
42527
+ export type GetAgentBuilderActionIdRuns_Response = {
42528
+ runs: {
42529
+ workflowName: string;
42530
+ runId: string;
42531
+ snapshot: {
42532
+ [key: string]: any;
42533
+ } | string;
42534
+ createdAt: Date;
42535
+ updatedAt: Date;
42536
+ resourceId?: string | undefined;
42537
+ }[];
42538
+ total: number;
42539
+ };
42540
+ export type GetAgentBuilderActionIdRuns_Request = Simplify<(GetAgentBuilderActionIdRuns_PathParams extends never ? {} : {
42541
+ params: GetAgentBuilderActionIdRuns_PathParams;
42542
+ }) & (GetAgentBuilderActionIdRuns_QueryParams extends never ? {} : {} extends GetAgentBuilderActionIdRuns_QueryParams ? {
42543
+ query?: GetAgentBuilderActionIdRuns_QueryParams;
42544
+ } : {
42545
+ query: GetAgentBuilderActionIdRuns_QueryParams;
42546
+ }) & (never extends never ? {} : {} extends never ? {
42547
+ body?: never;
42548
+ } : {
42549
+ body: never;
42550
+ })>;
42551
+ export interface GetAgentBuilderActionIdRuns_RouteContract {
42552
+ pathParams: GetAgentBuilderActionIdRuns_PathParams;
42553
+ queryParams: GetAgentBuilderActionIdRuns_QueryParams;
42554
+ body: never;
42555
+ request: GetAgentBuilderActionIdRuns_Request;
42556
+ response: GetAgentBuilderActionIdRuns_Response;
42557
+ responseType: 'json';
42558
+ }
42559
+ export type GetAgentBuilderActionIdRunsRunId_PathParams = {
42560
+ /** Unique identifier for the agent-builder action */
42561
+ actionId: string;
42562
+ /** Unique identifier for the action run */
42563
+ runId: string;
42564
+ };
42565
+ export type GetAgentBuilderActionIdRunsRunId_QueryParams = {
42566
+ /** Comma-separated list of fields to return. Available fields: result, error, payload, steps, activeStepsPath, serializedStepGraph. Metadata fields (runId, workflowName, resourceId, createdAt, updatedAt) and status are always included. */
42567
+ fields?: string | undefined;
42568
+ /** Whether to include nested workflow data in steps. Defaults to true. Set to false for better performance. */
42569
+ withNestedWorkflows?: ('true' | 'false') | undefined;
42570
+ };
42571
+ export type GetAgentBuilderActionIdRunsRunId_Response = {
42572
+ runId: string;
42573
+ workflowName: string;
42574
+ resourceId?: string | undefined;
42575
+ createdAt: Date;
42576
+ updatedAt: Date;
42577
+ status: 'running' | 'waiting' | 'suspended' | 'success' | 'failed' | 'canceled' | 'pending' | 'bailed' | 'tripwire' | 'paused';
42578
+ initialState?: {
42579
+ [key: string]: any;
42580
+ } | undefined;
42581
+ result?: unknown | undefined;
42582
+ error?: unknown | undefined;
42583
+ payload?: unknown | undefined;
42584
+ steps?: {
42585
+ [key: string]: any;
42586
+ } | undefined;
42587
+ activeStepsPath?: {
42588
+ [key: string]: number[];
42589
+ } | undefined;
42590
+ serializedStepGraph?: {
42591
+ type: 'step' | 'sleep' | 'sleepUntil' | 'waitForEvent' | 'parallel' | 'conditional' | 'loop' | 'foreach';
42592
+ }[] | undefined;
42593
+ };
42594
+ export type GetAgentBuilderActionIdRunsRunId_Request = Simplify<(GetAgentBuilderActionIdRunsRunId_PathParams extends never ? {} : {
42595
+ params: GetAgentBuilderActionIdRunsRunId_PathParams;
42596
+ }) & (GetAgentBuilderActionIdRunsRunId_QueryParams extends never ? {} : {} extends GetAgentBuilderActionIdRunsRunId_QueryParams ? {
42597
+ query?: GetAgentBuilderActionIdRunsRunId_QueryParams;
42598
+ } : {
42599
+ query: GetAgentBuilderActionIdRunsRunId_QueryParams;
42600
+ }) & (never extends never ? {} : {} extends never ? {
42601
+ body?: never;
42602
+ } : {
42603
+ body: never;
42604
+ })>;
42605
+ export interface GetAgentBuilderActionIdRunsRunId_RouteContract {
42606
+ pathParams: GetAgentBuilderActionIdRunsRunId_PathParams;
42607
+ queryParams: GetAgentBuilderActionIdRunsRunId_QueryParams;
42608
+ body: never;
42609
+ request: GetAgentBuilderActionIdRunsRunId_Request;
42610
+ response: GetAgentBuilderActionIdRunsRunId_Response;
42611
+ responseType: 'json';
42612
+ }
42613
+ export type PostAgentBuilderActionIdCreateRun_PathParams = {
42614
+ /** Unique identifier for the agent-builder action */
42615
+ actionId: string;
42616
+ };
42617
+ export type PostAgentBuilderActionIdCreateRun_QueryParams = {
42618
+ runId?: string | undefined;
42619
+ };
42620
+ export type PostAgentBuilderActionIdCreateRun_Response = {
42621
+ runId: string;
42622
+ };
42623
+ export type PostAgentBuilderActionIdCreateRun_Request = Simplify<(PostAgentBuilderActionIdCreateRun_PathParams extends never ? {} : {
42624
+ params: PostAgentBuilderActionIdCreateRun_PathParams;
42625
+ }) & (PostAgentBuilderActionIdCreateRun_QueryParams extends never ? {} : {} extends PostAgentBuilderActionIdCreateRun_QueryParams ? {
42626
+ query?: PostAgentBuilderActionIdCreateRun_QueryParams;
42627
+ } : {
42628
+ query: PostAgentBuilderActionIdCreateRun_QueryParams;
42629
+ }) & (never extends never ? {} : {} extends never ? {
42630
+ body?: never;
42631
+ } : {
42632
+ body: never;
42633
+ })>;
42634
+ export interface PostAgentBuilderActionIdCreateRun_RouteContract {
42635
+ pathParams: PostAgentBuilderActionIdCreateRun_PathParams;
42636
+ queryParams: PostAgentBuilderActionIdCreateRun_QueryParams;
42637
+ body: never;
42638
+ request: PostAgentBuilderActionIdCreateRun_Request;
42639
+ response: PostAgentBuilderActionIdCreateRun_Response;
42640
+ responseType: 'json';
42641
+ }
42642
+ export type PostAgentBuilderActionIdStream_PathParams = {
42643
+ /** Unique identifier for the agent-builder action */
42644
+ actionId: string;
42645
+ };
42646
+ export type PostAgentBuilderActionIdStream_QueryParams = {
42647
+ /** Unique identifier for the run */
42648
+ runId: string;
42649
+ };
42650
+ export type PostAgentBuilderActionIdStream_Body = {
42651
+ resourceId?: string | undefined;
42652
+ inputData?: unknown | undefined;
42653
+ initialState?: unknown | undefined;
42654
+ requestContext?: {
42655
+ [key: string]: unknown;
42656
+ } | undefined;
42657
+ tracingOptions?: {
42658
+ metadata?: {
42659
+ [key: string]: unknown;
42660
+ } | undefined;
42661
+ requestContextKeys?: string[] | undefined;
42662
+ traceId?: string | undefined;
42663
+ parentSpanId?: string | undefined;
42664
+ tags?: string[] | undefined;
42665
+ hideInput?: boolean | undefined;
42666
+ hideOutput?: boolean | undefined;
42667
+ } | undefined;
42668
+ perStep?: boolean | undefined;
42669
+ closeOnSuspend?: boolean | undefined;
42670
+ };
42671
+ export type PostAgentBuilderActionIdStream_Response = any;
42672
+ export type PostAgentBuilderActionIdStream_Request = Simplify<(PostAgentBuilderActionIdStream_PathParams extends never ? {} : {
42673
+ params: PostAgentBuilderActionIdStream_PathParams;
42674
+ }) & (PostAgentBuilderActionIdStream_QueryParams extends never ? {} : {} extends PostAgentBuilderActionIdStream_QueryParams ? {
42675
+ query?: PostAgentBuilderActionIdStream_QueryParams;
42676
+ } : {
42677
+ query: PostAgentBuilderActionIdStream_QueryParams;
42678
+ }) & (PostAgentBuilderActionIdStream_Body extends never ? {} : {} extends PostAgentBuilderActionIdStream_Body ? {
42679
+ body?: PostAgentBuilderActionIdStream_Body;
42680
+ } : {
42681
+ body: PostAgentBuilderActionIdStream_Body;
42682
+ })>;
42683
+ export interface PostAgentBuilderActionIdStream_RouteContract {
42684
+ pathParams: PostAgentBuilderActionIdStream_PathParams;
42685
+ queryParams: PostAgentBuilderActionIdStream_QueryParams;
42686
+ body: PostAgentBuilderActionIdStream_Body;
42687
+ request: PostAgentBuilderActionIdStream_Request;
42688
+ response: PostAgentBuilderActionIdStream_Response;
42689
+ responseType: 'stream';
42690
+ }
42691
+ export type PostAgentBuilderActionIdStreamLegacy_PathParams = {
42692
+ /** Unique identifier for the agent-builder action */
42693
+ actionId: string;
42694
+ };
42695
+ export type PostAgentBuilderActionIdStreamLegacy_QueryParams = {
42696
+ /** Unique identifier for the run */
42697
+ runId: string;
42698
+ };
42699
+ export type PostAgentBuilderActionIdStreamLegacy_Body = {
42700
+ resourceId?: string | undefined;
42701
+ inputData?: unknown | undefined;
42702
+ initialState?: unknown | undefined;
42703
+ requestContext?: {
42704
+ [key: string]: unknown;
42705
+ } | undefined;
42706
+ tracingOptions?: {
42707
+ metadata?: {
42708
+ [key: string]: unknown;
42709
+ } | undefined;
42710
+ requestContextKeys?: string[] | undefined;
42711
+ traceId?: string | undefined;
42712
+ parentSpanId?: string | undefined;
42713
+ tags?: string[] | undefined;
42714
+ hideInput?: boolean | undefined;
42715
+ hideOutput?: boolean | undefined;
42716
+ } | undefined;
42717
+ perStep?: boolean | undefined;
42718
+ };
42719
+ export type PostAgentBuilderActionIdStreamLegacy_Response = any;
42720
+ export type PostAgentBuilderActionIdStreamLegacy_Request = Simplify<(PostAgentBuilderActionIdStreamLegacy_PathParams extends never ? {} : {
42721
+ params: PostAgentBuilderActionIdStreamLegacy_PathParams;
42722
+ }) & (PostAgentBuilderActionIdStreamLegacy_QueryParams extends never ? {} : {} extends PostAgentBuilderActionIdStreamLegacy_QueryParams ? {
42723
+ query?: PostAgentBuilderActionIdStreamLegacy_QueryParams;
42724
+ } : {
42725
+ query: PostAgentBuilderActionIdStreamLegacy_QueryParams;
42726
+ }) & (PostAgentBuilderActionIdStreamLegacy_Body extends never ? {} : {} extends PostAgentBuilderActionIdStreamLegacy_Body ? {
42727
+ body?: PostAgentBuilderActionIdStreamLegacy_Body;
42728
+ } : {
42729
+ body: PostAgentBuilderActionIdStreamLegacy_Body;
42730
+ })>;
42731
+ export interface PostAgentBuilderActionIdStreamLegacy_RouteContract {
42732
+ pathParams: PostAgentBuilderActionIdStreamLegacy_PathParams;
42733
+ queryParams: PostAgentBuilderActionIdStreamLegacy_QueryParams;
42734
+ body: PostAgentBuilderActionIdStreamLegacy_Body;
42735
+ request: PostAgentBuilderActionIdStreamLegacy_Request;
42736
+ response: PostAgentBuilderActionIdStreamLegacy_Response;
42737
+ responseType: 'stream';
42738
+ }
42739
+ export type PostAgentBuilderActionIdStartAsync_PathParams = {
42740
+ /** Unique identifier for the agent-builder action */
42741
+ actionId: string;
42742
+ };
42743
+ export type PostAgentBuilderActionIdStartAsync_QueryParams = {
42744
+ runId?: string | undefined;
42745
+ };
42746
+ export type PostAgentBuilderActionIdStartAsync_Body = {
42747
+ resourceId?: string | undefined;
42748
+ inputData?: unknown | undefined;
42749
+ initialState?: unknown | undefined;
42750
+ requestContext?: {
42751
+ [key: string]: unknown;
42752
+ } | undefined;
42753
+ tracingOptions?: {
42754
+ metadata?: {
42755
+ [key: string]: unknown;
42756
+ } | undefined;
42757
+ requestContextKeys?: string[] | undefined;
42758
+ traceId?: string | undefined;
42759
+ parentSpanId?: string | undefined;
42760
+ tags?: string[] | undefined;
42761
+ hideInput?: boolean | undefined;
42762
+ hideOutput?: boolean | undefined;
42763
+ } | undefined;
42764
+ perStep?: boolean | undefined;
42765
+ };
42766
+ export type PostAgentBuilderActionIdStartAsync_Response = {
42767
+ status?: ('running' | 'waiting' | 'suspended' | 'success' | 'failed' | 'canceled' | 'pending' | 'bailed' | 'tripwire' | 'paused') | undefined;
42768
+ result?: unknown | undefined;
42769
+ error?: unknown | undefined;
42770
+ payload?: unknown | undefined;
42771
+ initialState?: unknown | undefined;
42772
+ steps?: {
42773
+ [key: string]: any;
42774
+ } | undefined;
42775
+ activeStepsPath?: {
42776
+ [key: string]: number[];
42777
+ } | undefined;
42778
+ serializedStepGraph?: {
42779
+ type: 'step' | 'sleep' | 'sleepUntil' | 'waitForEvent' | 'parallel' | 'conditional' | 'loop' | 'foreach';
42780
+ }[] | undefined;
42781
+ };
42782
+ export type PostAgentBuilderActionIdStartAsync_Request = Simplify<(PostAgentBuilderActionIdStartAsync_PathParams extends never ? {} : {
42783
+ params: PostAgentBuilderActionIdStartAsync_PathParams;
42784
+ }) & (PostAgentBuilderActionIdStartAsync_QueryParams extends never ? {} : {} extends PostAgentBuilderActionIdStartAsync_QueryParams ? {
42785
+ query?: PostAgentBuilderActionIdStartAsync_QueryParams;
42786
+ } : {
42787
+ query: PostAgentBuilderActionIdStartAsync_QueryParams;
42788
+ }) & (PostAgentBuilderActionIdStartAsync_Body extends never ? {} : {} extends PostAgentBuilderActionIdStartAsync_Body ? {
42789
+ body?: PostAgentBuilderActionIdStartAsync_Body;
42790
+ } : {
42791
+ body: PostAgentBuilderActionIdStartAsync_Body;
42792
+ })>;
42793
+ export interface PostAgentBuilderActionIdStartAsync_RouteContract {
42794
+ pathParams: PostAgentBuilderActionIdStartAsync_PathParams;
42795
+ queryParams: PostAgentBuilderActionIdStartAsync_QueryParams;
42796
+ body: PostAgentBuilderActionIdStartAsync_Body;
42797
+ request: PostAgentBuilderActionIdStartAsync_Request;
42798
+ response: PostAgentBuilderActionIdStartAsync_Response;
42799
+ responseType: 'json';
42800
+ }
42801
+ export type PostAgentBuilderActionIdStart_PathParams = {
42802
+ /** Unique identifier for the agent-builder action */
42803
+ actionId: string;
42804
+ };
42805
+ export type PostAgentBuilderActionIdStart_QueryParams = {
42806
+ /** Unique identifier for the run */
42807
+ runId: string;
42808
+ };
42809
+ export type PostAgentBuilderActionIdStart_Body = {
42810
+ resourceId?: string | undefined;
42811
+ inputData?: unknown | undefined;
42812
+ initialState?: unknown | undefined;
42813
+ requestContext?: {
42814
+ [key: string]: unknown;
42815
+ } | undefined;
42816
+ tracingOptions?: {
42817
+ metadata?: {
42818
+ [key: string]: unknown;
42819
+ } | undefined;
42820
+ requestContextKeys?: string[] | undefined;
42821
+ traceId?: string | undefined;
42822
+ parentSpanId?: string | undefined;
42823
+ tags?: string[] | undefined;
42824
+ hideInput?: boolean | undefined;
42825
+ hideOutput?: boolean | undefined;
42826
+ } | undefined;
42827
+ perStep?: boolean | undefined;
42828
+ };
42829
+ export type PostAgentBuilderActionIdStart_Response = {
42830
+ message: string;
42831
+ };
42832
+ export type PostAgentBuilderActionIdStart_Request = Simplify<(PostAgentBuilderActionIdStart_PathParams extends never ? {} : {
42833
+ params: PostAgentBuilderActionIdStart_PathParams;
42834
+ }) & (PostAgentBuilderActionIdStart_QueryParams extends never ? {} : {} extends PostAgentBuilderActionIdStart_QueryParams ? {
42835
+ query?: PostAgentBuilderActionIdStart_QueryParams;
42836
+ } : {
42837
+ query: PostAgentBuilderActionIdStart_QueryParams;
42838
+ }) & (PostAgentBuilderActionIdStart_Body extends never ? {} : {} extends PostAgentBuilderActionIdStart_Body ? {
42839
+ body?: PostAgentBuilderActionIdStart_Body;
42840
+ } : {
42841
+ body: PostAgentBuilderActionIdStart_Body;
42842
+ })>;
42843
+ export interface PostAgentBuilderActionIdStart_RouteContract {
42844
+ pathParams: PostAgentBuilderActionIdStart_PathParams;
42845
+ queryParams: PostAgentBuilderActionIdStart_QueryParams;
42846
+ body: PostAgentBuilderActionIdStart_Body;
42847
+ request: PostAgentBuilderActionIdStart_Request;
42848
+ response: PostAgentBuilderActionIdStart_Response;
42849
+ responseType: 'json';
42850
+ }
42851
+ export type PostAgentBuilderActionIdObserve_PathParams = {
42852
+ /** Unique identifier for the agent-builder action */
42853
+ actionId: string;
42854
+ };
42855
+ export type PostAgentBuilderActionIdObserve_QueryParams = {
42856
+ /** Unique identifier for the run */
42857
+ runId: string;
42858
+ };
42859
+ export type PostAgentBuilderActionIdObserve_Response = any;
42860
+ export type PostAgentBuilderActionIdObserve_Request = Simplify<(PostAgentBuilderActionIdObserve_PathParams extends never ? {} : {
42861
+ params: PostAgentBuilderActionIdObserve_PathParams;
42862
+ }) & (PostAgentBuilderActionIdObserve_QueryParams extends never ? {} : {} extends PostAgentBuilderActionIdObserve_QueryParams ? {
42863
+ query?: PostAgentBuilderActionIdObserve_QueryParams;
42864
+ } : {
42865
+ query: PostAgentBuilderActionIdObserve_QueryParams;
42866
+ }) & (never extends never ? {} : {} extends never ? {
42867
+ body?: never;
42868
+ } : {
42869
+ body: never;
42870
+ })>;
42871
+ export interface PostAgentBuilderActionIdObserve_RouteContract {
42872
+ pathParams: PostAgentBuilderActionIdObserve_PathParams;
42873
+ queryParams: PostAgentBuilderActionIdObserve_QueryParams;
42874
+ body: never;
42875
+ request: PostAgentBuilderActionIdObserve_Request;
42876
+ response: PostAgentBuilderActionIdObserve_Response;
42877
+ responseType: 'stream';
42878
+ }
42879
+ export type PostAgentBuilderActionIdObserveStreamLegacy_PathParams = {
42880
+ /** Unique identifier for the agent-builder action */
42881
+ actionId: string;
42882
+ };
42883
+ export type PostAgentBuilderActionIdObserveStreamLegacy_QueryParams = {
42884
+ /** Unique identifier for the run */
42885
+ runId: string;
42886
+ };
42887
+ export type PostAgentBuilderActionIdObserveStreamLegacy_Response = any;
42888
+ export type PostAgentBuilderActionIdObserveStreamLegacy_Request = Simplify<(PostAgentBuilderActionIdObserveStreamLegacy_PathParams extends never ? {} : {
42889
+ params: PostAgentBuilderActionIdObserveStreamLegacy_PathParams;
42890
+ }) & (PostAgentBuilderActionIdObserveStreamLegacy_QueryParams extends never ? {} : {} extends PostAgentBuilderActionIdObserveStreamLegacy_QueryParams ? {
42891
+ query?: PostAgentBuilderActionIdObserveStreamLegacy_QueryParams;
42892
+ } : {
42893
+ query: PostAgentBuilderActionIdObserveStreamLegacy_QueryParams;
42894
+ }) & (never extends never ? {} : {} extends never ? {
42895
+ body?: never;
42896
+ } : {
42897
+ body: never;
42898
+ })>;
42899
+ export interface PostAgentBuilderActionIdObserveStreamLegacy_RouteContract {
42900
+ pathParams: PostAgentBuilderActionIdObserveStreamLegacy_PathParams;
42901
+ queryParams: PostAgentBuilderActionIdObserveStreamLegacy_QueryParams;
42902
+ body: never;
42903
+ request: PostAgentBuilderActionIdObserveStreamLegacy_Request;
42904
+ response: PostAgentBuilderActionIdObserveStreamLegacy_Response;
42905
+ responseType: 'stream';
42906
+ }
42907
+ export type PostAgentBuilderActionIdResumeAsync_PathParams = {
42908
+ /** Unique identifier for the agent-builder action */
42909
+ actionId: string;
42910
+ };
42911
+ export type PostAgentBuilderActionIdResumeAsync_QueryParams = {
42912
+ /** Unique identifier for the run */
42913
+ runId: string;
42914
+ };
42915
+ export type PostAgentBuilderActionIdResumeAsync_Body = {
42916
+ step?: (string | string[]) | undefined;
42917
+ resumeData?: unknown | undefined;
42918
+ requestContext?: {
42919
+ [key: string]: unknown;
42920
+ } | undefined;
42921
+ tracingOptions?: {
42922
+ metadata?: {
42923
+ [key: string]: unknown;
42924
+ } | undefined;
42925
+ requestContextKeys?: string[] | undefined;
42926
+ traceId?: string | undefined;
42927
+ parentSpanId?: string | undefined;
42928
+ tags?: string[] | undefined;
42929
+ hideInput?: boolean | undefined;
42930
+ hideOutput?: boolean | undefined;
42931
+ } | undefined;
42932
+ perStep?: boolean | undefined;
42933
+ forEachIndex?: number | undefined;
42934
+ };
42935
+ export type PostAgentBuilderActionIdResumeAsync_Response = {
42936
+ status?: ('running' | 'waiting' | 'suspended' | 'success' | 'failed' | 'canceled' | 'pending' | 'bailed' | 'tripwire' | 'paused') | undefined;
42937
+ result?: unknown | undefined;
42938
+ error?: unknown | undefined;
42939
+ payload?: unknown | undefined;
42940
+ initialState?: unknown | undefined;
42941
+ steps?: {
42942
+ [key: string]: any;
42943
+ } | undefined;
42944
+ activeStepsPath?: {
42945
+ [key: string]: number[];
42946
+ } | undefined;
42947
+ serializedStepGraph?: {
42948
+ type: 'step' | 'sleep' | 'sleepUntil' | 'waitForEvent' | 'parallel' | 'conditional' | 'loop' | 'foreach';
42949
+ }[] | undefined;
42950
+ };
42951
+ export type PostAgentBuilderActionIdResumeAsync_Request = Simplify<(PostAgentBuilderActionIdResumeAsync_PathParams extends never ? {} : {
42952
+ params: PostAgentBuilderActionIdResumeAsync_PathParams;
42953
+ }) & (PostAgentBuilderActionIdResumeAsync_QueryParams extends never ? {} : {} extends PostAgentBuilderActionIdResumeAsync_QueryParams ? {
42954
+ query?: PostAgentBuilderActionIdResumeAsync_QueryParams;
42955
+ } : {
42956
+ query: PostAgentBuilderActionIdResumeAsync_QueryParams;
42957
+ }) & (PostAgentBuilderActionIdResumeAsync_Body extends never ? {} : {} extends PostAgentBuilderActionIdResumeAsync_Body ? {
42958
+ body?: PostAgentBuilderActionIdResumeAsync_Body;
42959
+ } : {
42960
+ body: PostAgentBuilderActionIdResumeAsync_Body;
42961
+ })>;
42962
+ export interface PostAgentBuilderActionIdResumeAsync_RouteContract {
42963
+ pathParams: PostAgentBuilderActionIdResumeAsync_PathParams;
42964
+ queryParams: PostAgentBuilderActionIdResumeAsync_QueryParams;
42965
+ body: PostAgentBuilderActionIdResumeAsync_Body;
42966
+ request: PostAgentBuilderActionIdResumeAsync_Request;
42967
+ response: PostAgentBuilderActionIdResumeAsync_Response;
42968
+ responseType: 'json';
42969
+ }
42970
+ export type PostAgentBuilderActionIdResume_PathParams = {
42971
+ /** Unique identifier for the agent-builder action */
42972
+ actionId: string;
42973
+ };
42974
+ export type PostAgentBuilderActionIdResume_QueryParams = {
42975
+ /** Unique identifier for the run */
42976
+ runId: string;
42977
+ };
42978
+ export type PostAgentBuilderActionIdResume_Body = {
42979
+ step?: (string | string[]) | undefined;
42980
+ resumeData?: unknown | undefined;
42981
+ requestContext?: {
42982
+ [key: string]: unknown;
42983
+ } | undefined;
42984
+ tracingOptions?: {
42985
+ metadata?: {
42986
+ [key: string]: unknown;
42987
+ } | undefined;
42988
+ requestContextKeys?: string[] | undefined;
42989
+ traceId?: string | undefined;
42990
+ parentSpanId?: string | undefined;
42991
+ tags?: string[] | undefined;
42992
+ hideInput?: boolean | undefined;
42993
+ hideOutput?: boolean | undefined;
42994
+ } | undefined;
42995
+ perStep?: boolean | undefined;
42996
+ forEachIndex?: number | undefined;
42997
+ };
42998
+ export type PostAgentBuilderActionIdResume_Response = {
42999
+ message: string;
43000
+ };
43001
+ export type PostAgentBuilderActionIdResume_Request = Simplify<(PostAgentBuilderActionIdResume_PathParams extends never ? {} : {
43002
+ params: PostAgentBuilderActionIdResume_PathParams;
43003
+ }) & (PostAgentBuilderActionIdResume_QueryParams extends never ? {} : {} extends PostAgentBuilderActionIdResume_QueryParams ? {
43004
+ query?: PostAgentBuilderActionIdResume_QueryParams;
43005
+ } : {
43006
+ query: PostAgentBuilderActionIdResume_QueryParams;
43007
+ }) & (PostAgentBuilderActionIdResume_Body extends never ? {} : {} extends PostAgentBuilderActionIdResume_Body ? {
43008
+ body?: PostAgentBuilderActionIdResume_Body;
43009
+ } : {
43010
+ body: PostAgentBuilderActionIdResume_Body;
43011
+ })>;
43012
+ export interface PostAgentBuilderActionIdResume_RouteContract {
43013
+ pathParams: PostAgentBuilderActionIdResume_PathParams;
43014
+ queryParams: PostAgentBuilderActionIdResume_QueryParams;
43015
+ body: PostAgentBuilderActionIdResume_Body;
43016
+ request: PostAgentBuilderActionIdResume_Request;
43017
+ response: PostAgentBuilderActionIdResume_Response;
43018
+ responseType: 'json';
43019
+ }
43020
+ export type PostAgentBuilderActionIdResumeStream_PathParams = {
43021
+ /** Unique identifier for the agent-builder action */
43022
+ actionId: string;
43023
+ };
43024
+ export type PostAgentBuilderActionIdResumeStream_QueryParams = {
43025
+ /** Unique identifier for the run */
43026
+ runId: string;
43027
+ };
43028
+ export type PostAgentBuilderActionIdResumeStream_Body = {
43029
+ step?: (string | string[]) | undefined;
43030
+ resumeData?: unknown | undefined;
43031
+ requestContext?: {
43032
+ [key: string]: unknown;
43033
+ } | undefined;
43034
+ tracingOptions?: {
43035
+ metadata?: {
43036
+ [key: string]: unknown;
43037
+ } | undefined;
43038
+ requestContextKeys?: string[] | undefined;
43039
+ traceId?: string | undefined;
43040
+ parentSpanId?: string | undefined;
43041
+ tags?: string[] | undefined;
43042
+ hideInput?: boolean | undefined;
43043
+ hideOutput?: boolean | undefined;
43044
+ } | undefined;
43045
+ perStep?: boolean | undefined;
43046
+ forEachIndex?: number | undefined;
43047
+ };
43048
+ export type PostAgentBuilderActionIdResumeStream_Response = any;
43049
+ export type PostAgentBuilderActionIdResumeStream_Request = Simplify<(PostAgentBuilderActionIdResumeStream_PathParams extends never ? {} : {
43050
+ params: PostAgentBuilderActionIdResumeStream_PathParams;
43051
+ }) & (PostAgentBuilderActionIdResumeStream_QueryParams extends never ? {} : {} extends PostAgentBuilderActionIdResumeStream_QueryParams ? {
43052
+ query?: PostAgentBuilderActionIdResumeStream_QueryParams;
43053
+ } : {
43054
+ query: PostAgentBuilderActionIdResumeStream_QueryParams;
43055
+ }) & (PostAgentBuilderActionIdResumeStream_Body extends never ? {} : {} extends PostAgentBuilderActionIdResumeStream_Body ? {
43056
+ body?: PostAgentBuilderActionIdResumeStream_Body;
43057
+ } : {
43058
+ body: PostAgentBuilderActionIdResumeStream_Body;
43059
+ })>;
43060
+ export interface PostAgentBuilderActionIdResumeStream_RouteContract {
43061
+ pathParams: PostAgentBuilderActionIdResumeStream_PathParams;
43062
+ queryParams: PostAgentBuilderActionIdResumeStream_QueryParams;
43063
+ body: PostAgentBuilderActionIdResumeStream_Body;
43064
+ request: PostAgentBuilderActionIdResumeStream_Request;
43065
+ response: PostAgentBuilderActionIdResumeStream_Response;
43066
+ responseType: 'stream';
43067
+ }
43068
+ export type PostAgentBuilderActionIdRunsRunIdCancel_PathParams = {
43069
+ /** Unique identifier for the agent-builder action */
43070
+ actionId: string;
43071
+ /** Unique identifier for the action run */
43072
+ runId: string;
43073
+ };
43074
+ export type PostAgentBuilderActionIdRunsRunIdCancel_Response = {
43075
+ message: string;
43076
+ };
43077
+ export type PostAgentBuilderActionIdRunsRunIdCancel_Request = Simplify<(PostAgentBuilderActionIdRunsRunIdCancel_PathParams extends never ? {} : {
43078
+ params: PostAgentBuilderActionIdRunsRunIdCancel_PathParams;
43079
+ }) & (never extends never ? {} : {} extends never ? {
43080
+ query?: never;
43081
+ } : {
43082
+ query: never;
43083
+ }) & (never extends never ? {} : {} extends never ? {
43084
+ body?: never;
43085
+ } : {
43086
+ body: never;
43087
+ })>;
43088
+ export interface PostAgentBuilderActionIdRunsRunIdCancel_RouteContract {
43089
+ pathParams: PostAgentBuilderActionIdRunsRunIdCancel_PathParams;
43090
+ queryParams: never;
43091
+ body: never;
43092
+ request: PostAgentBuilderActionIdRunsRunIdCancel_Request;
43093
+ response: PostAgentBuilderActionIdRunsRunIdCancel_Response;
43094
+ responseType: 'json';
43095
+ }
42381
43096
  export type GetSchedules_QueryParams = {
42382
43097
  workflowId?: string | undefined;
42383
43098
  status?: ('active' | 'paused') | undefined;
@@ -43104,6 +43819,21 @@ export interface RouteTypes {
43104
43819
  'GET /editor/builder/registries/:registryId/popular': GetEditorBuilderRegistriesRegistryIdPopular_RouteContract;
43105
43820
  'GET /editor/builder/registries/:registryId/preview': GetEditorBuilderRegistriesRegistryIdPreview_RouteContract;
43106
43821
  'POST /editor/builder/registries/:registryId/install': PostEditorBuilderRegistriesRegistryIdInstall_RouteContract;
43822
+ 'GET /agent-builder': GetAgentBuilder_RouteContract;
43823
+ 'GET /agent-builder/:actionId': GetAgentBuilderActionId_RouteContract;
43824
+ 'GET /agent-builder/:actionId/runs': GetAgentBuilderActionIdRuns_RouteContract;
43825
+ 'GET /agent-builder/:actionId/runs/:runId': GetAgentBuilderActionIdRunsRunId_RouteContract;
43826
+ 'POST /agent-builder/:actionId/create-run': PostAgentBuilderActionIdCreateRun_RouteContract;
43827
+ 'POST /agent-builder/:actionId/stream': PostAgentBuilderActionIdStream_RouteContract;
43828
+ 'POST /agent-builder/:actionId/stream-legacy': PostAgentBuilderActionIdStreamLegacy_RouteContract;
43829
+ 'POST /agent-builder/:actionId/start-async': PostAgentBuilderActionIdStartAsync_RouteContract;
43830
+ 'POST /agent-builder/:actionId/start': PostAgentBuilderActionIdStart_RouteContract;
43831
+ 'POST /agent-builder/:actionId/observe': PostAgentBuilderActionIdObserve_RouteContract;
43832
+ 'POST /agent-builder/:actionId/observe-stream-legacy': PostAgentBuilderActionIdObserveStreamLegacy_RouteContract;
43833
+ 'POST /agent-builder/:actionId/resume-async': PostAgentBuilderActionIdResumeAsync_RouteContract;
43834
+ 'POST /agent-builder/:actionId/resume': PostAgentBuilderActionIdResume_RouteContract;
43835
+ 'POST /agent-builder/:actionId/resume-stream': PostAgentBuilderActionIdResumeStream_RouteContract;
43836
+ 'POST /agent-builder/:actionId/runs/:runId/cancel': PostAgentBuilderActionIdRunsRunIdCancel_RouteContract;
43107
43837
  'GET /schedules': GetSchedules_RouteContract;
43108
43838
  'GET /schedules/:scheduleId': GetSchedulesScheduleId_RouteContract;
43109
43839
  'GET /schedules/:scheduleId/triggers': GetSchedulesScheduleIdTriggers_RouteContract;
@@ -43128,6 +43858,51 @@ export interface Client {
43128
43858
  '/a2a/:agentId': {
43129
43859
  POST: PostA2aAgentId_RouteContract;
43130
43860
  };
43861
+ '/agent-builder': {
43862
+ GET: GetAgentBuilder_RouteContract;
43863
+ };
43864
+ '/agent-builder/:actionId': {
43865
+ GET: GetAgentBuilderActionId_RouteContract;
43866
+ };
43867
+ '/agent-builder/:actionId/create-run': {
43868
+ POST: PostAgentBuilderActionIdCreateRun_RouteContract;
43869
+ };
43870
+ '/agent-builder/:actionId/observe': {
43871
+ POST: PostAgentBuilderActionIdObserve_RouteContract;
43872
+ };
43873
+ '/agent-builder/:actionId/observe-stream-legacy': {
43874
+ POST: PostAgentBuilderActionIdObserveStreamLegacy_RouteContract;
43875
+ };
43876
+ '/agent-builder/:actionId/resume': {
43877
+ POST: PostAgentBuilderActionIdResume_RouteContract;
43878
+ };
43879
+ '/agent-builder/:actionId/resume-async': {
43880
+ POST: PostAgentBuilderActionIdResumeAsync_RouteContract;
43881
+ };
43882
+ '/agent-builder/:actionId/resume-stream': {
43883
+ POST: PostAgentBuilderActionIdResumeStream_RouteContract;
43884
+ };
43885
+ '/agent-builder/:actionId/runs': {
43886
+ GET: GetAgentBuilderActionIdRuns_RouteContract;
43887
+ };
43888
+ '/agent-builder/:actionId/runs/:runId': {
43889
+ GET: GetAgentBuilderActionIdRunsRunId_RouteContract;
43890
+ };
43891
+ '/agent-builder/:actionId/runs/:runId/cancel': {
43892
+ POST: PostAgentBuilderActionIdRunsRunIdCancel_RouteContract;
43893
+ };
43894
+ '/agent-builder/:actionId/start': {
43895
+ POST: PostAgentBuilderActionIdStart_RouteContract;
43896
+ };
43897
+ '/agent-builder/:actionId/start-async': {
43898
+ POST: PostAgentBuilderActionIdStartAsync_RouteContract;
43899
+ };
43900
+ '/agent-builder/:actionId/stream': {
43901
+ POST: PostAgentBuilderActionIdStream_RouteContract;
43902
+ };
43903
+ '/agent-builder/:actionId/stream-legacy': {
43904
+ POST: PostAgentBuilderActionIdStreamLegacy_RouteContract;
43905
+ };
43131
43906
  '/agents': {
43132
43907
  GET: GetAgents_RouteContract;
43133
43908
  };