@mastra/client-js 1.22.0-alpha.4 → 1.22.0-alpha.6

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.
@@ -104,9 +104,16 @@ export type GetAgents_Response = {
104
104
  defaultStreamOptionsLegacy?: {
105
105
  [key: string]: any;
106
106
  } | undefined;
107
+ source?: ('code' | 'stored') | undefined;
107
108
  status?: ('draft' | 'published' | 'archived') | undefined;
108
109
  activeVersionId?: string | undefined;
109
110
  hasDraft?: boolean | undefined;
111
+ editor?: (false | {
112
+ instructions?: boolean | undefined;
113
+ tools?: (boolean | {
114
+ description?: boolean | undefined;
115
+ }) | undefined;
116
+ }) | undefined;
110
117
  };
111
118
  };
112
119
  export type GetAgents_Request = Simplify<(never extends never ? {} : {
@@ -262,9 +269,16 @@ export type GetAgentsAgentId_Response = {
262
269
  defaultStreamOptionsLegacy?: {
263
270
  [key: string]: any;
264
271
  } | undefined;
272
+ source?: ('code' | 'stored') | undefined;
265
273
  status?: ('draft' | 'published' | 'archived') | undefined;
266
274
  activeVersionId?: string | undefined;
267
275
  hasDraft?: boolean | undefined;
276
+ editor?: (false | {
277
+ instructions?: boolean | undefined;
278
+ tools?: (boolean | {
279
+ description?: boolean | undefined;
280
+ }) | undefined;
281
+ }) | undefined;
268
282
  };
269
283
  export type GetAgentsAgentId_Request = Simplify<(GetAgentsAgentId_PathParams extends never ? {} : {
270
284
  params: GetAgentsAgentId_PathParams;
@@ -3827,6 +3841,36 @@ export interface PostAgentsAgentIdSignals_RouteContract {
3827
3841
  response: PostAgentsAgentIdSignals_Response;
3828
3842
  responseType: 'json';
3829
3843
  }
3844
+ export type PostAgentsAgentIdThreadsAbort_PathParams = {
3845
+ /** Unique identifier for the agent */
3846
+ agentId: string;
3847
+ };
3848
+ export type PostAgentsAgentIdThreadsAbort_Body = {
3849
+ resourceId?: string | undefined;
3850
+ threadId: string;
3851
+ };
3852
+ export type PostAgentsAgentIdThreadsAbort_Response = {
3853
+ aborted: boolean;
3854
+ };
3855
+ export type PostAgentsAgentIdThreadsAbort_Request = Simplify<(PostAgentsAgentIdThreadsAbort_PathParams extends never ? {} : {
3856
+ params: PostAgentsAgentIdThreadsAbort_PathParams;
3857
+ }) & (never extends never ? {} : {} extends never ? {
3858
+ query?: never;
3859
+ } : {
3860
+ query: never;
3861
+ }) & (PostAgentsAgentIdThreadsAbort_Body extends never ? {} : {} extends PostAgentsAgentIdThreadsAbort_Body ? {
3862
+ body?: PostAgentsAgentIdThreadsAbort_Body;
3863
+ } : {
3864
+ body: PostAgentsAgentIdThreadsAbort_Body;
3865
+ })>;
3866
+ export interface PostAgentsAgentIdThreadsAbort_RouteContract {
3867
+ pathParams: PostAgentsAgentIdThreadsAbort_PathParams;
3868
+ queryParams: never;
3869
+ body: PostAgentsAgentIdThreadsAbort_Body;
3870
+ request: PostAgentsAgentIdThreadsAbort_Request;
3871
+ response: PostAgentsAgentIdThreadsAbort_Response;
3872
+ responseType: 'json';
3873
+ }
3830
3874
  export type PostAgentsAgentIdThreadsSubscribe_PathParams = {
3831
3875
  /** Unique identifier for the agent */
3832
3876
  agentId: string;
@@ -3921,6 +3965,44 @@ export interface PostAgentsAgentIdApproveToolCall_RouteContract {
3921
3965
  response: PostAgentsAgentIdApproveToolCall_Response;
3922
3966
  responseType: 'stream';
3923
3967
  }
3968
+ export type PostAgentsAgentIdSendToolApproval_PathParams = {
3969
+ /** Unique identifier for the agent */
3970
+ agentId: string;
3971
+ };
3972
+ export type PostAgentsAgentIdSendToolApproval_Body = {
3973
+ resourceId: string;
3974
+ threadId: string;
3975
+ requestContext?: {
3976
+ [key: string]: any;
3977
+ } | undefined;
3978
+ toolCallId: string;
3979
+ approved: boolean;
3980
+ format?: string | undefined;
3981
+ };
3982
+ export type PostAgentsAgentIdSendToolApproval_Response = {
3983
+ accepted: true;
3984
+ runId: string;
3985
+ toolCallId?: string | undefined;
3986
+ };
3987
+ export type PostAgentsAgentIdSendToolApproval_Request = Simplify<(PostAgentsAgentIdSendToolApproval_PathParams extends never ? {} : {
3988
+ params: PostAgentsAgentIdSendToolApproval_PathParams;
3989
+ }) & (never extends never ? {} : {} extends never ? {
3990
+ query?: never;
3991
+ } : {
3992
+ query: never;
3993
+ }) & (PostAgentsAgentIdSendToolApproval_Body extends never ? {} : {} extends PostAgentsAgentIdSendToolApproval_Body ? {
3994
+ body?: PostAgentsAgentIdSendToolApproval_Body;
3995
+ } : {
3996
+ body: PostAgentsAgentIdSendToolApproval_Body;
3997
+ })>;
3998
+ export interface PostAgentsAgentIdSendToolApproval_RouteContract {
3999
+ pathParams: PostAgentsAgentIdSendToolApproval_PathParams;
4000
+ queryParams: never;
4001
+ body: PostAgentsAgentIdSendToolApproval_Body;
4002
+ request: PostAgentsAgentIdSendToolApproval_Request;
4003
+ response: PostAgentsAgentIdSendToolApproval_Response;
4004
+ responseType: 'json';
4005
+ }
3924
4006
  export type PostAgentsAgentIdDeclineToolCall_PathParams = {
3925
4007
  /** Unique identifier for the agent */
3926
4008
  agentId: string;
@@ -15926,36 +16008,14 @@ export interface PostStoredAgentsPreviewInstructions_RouteContract {
15926
16008
  response: PostStoredAgentsPreviewInstructions_Response;
15927
16009
  responseType: 'json';
15928
16010
  }
15929
- export type GetStoredAgentsStoredAgentId_PathParams = {
16011
+ export type PostStoredAgentsStoredAgentIdExport_PathParams = {
15930
16012
  /** Unique identifier for the stored agent */
15931
16013
  storedAgentId: string;
15932
16014
  };
15933
- export type GetStoredAgentsStoredAgentId_QueryParams = {
15934
- /** Which version to resolve: published (active version) or draft (latest version) */
15935
- status: ('draft' | 'published' | 'archived') | undefined;
15936
- };
15937
- export type GetStoredAgentsStoredAgentId_Response = {
15938
- id: string;
15939
- /** Agent status: draft or published */
15940
- status: string;
15941
- activeVersionId?: string | undefined;
15942
- authorId?: string | undefined;
15943
- metadata?: {
15944
- [key: string]: unknown;
15945
- } | undefined;
15946
- visibility?: ('private' | 'public') | undefined;
15947
- /** Number of users who have favorited this agent */
15948
- favoriteCount?: number | undefined;
15949
- /** Whether the requesting user has favorited this agent */
15950
- isFavorited?: boolean | undefined;
15951
- createdAt: Date;
15952
- updatedAt: Date;
15953
- /** Name of the agent */
15954
- name: string;
15955
- /** Description of the agent */
15956
- description?: string | undefined;
15957
- /** System instructions for the agent (string or array of instruction blocks) */
15958
- instructions: string | ({
16015
+ export type PostStoredAgentsStoredAgentIdExport_Body = {
16016
+ name?: string | undefined;
16017
+ description?: (string | undefined) | undefined;
16018
+ instructions?: (string | ({
15959
16019
  type: 'text';
15960
16020
  content: string;
15961
16021
  } | {
@@ -15986,9 +16046,8 @@ export type GetStoredAgentsStoredAgentId_Response = {
15986
16046
  })[];
15987
16047
  })[];
15988
16048
  } | undefined;
15989
- })[];
15990
- /** Model configuration — static value or array of conditional variants */
15991
- model: {
16049
+ })[]) | undefined;
16050
+ model?: ({
15992
16051
  /** Model provider (e.g., openai, anthropic) */
15993
16052
  provider: string;
15994
16053
  /** Model name (e.g., gpt-4o, claude-3-opus) */
@@ -16024,9 +16083,8 @@ export type GetStoredAgentsStoredAgentId_Response = {
16024
16083
  })[];
16025
16084
  })[];
16026
16085
  } | undefined;
16027
- }[];
16028
- /** Tool keys mapped to per-tool config — static or conditional */
16029
- tools?: ({
16086
+ }[]) | undefined;
16087
+ tools?: (({
16030
16088
  [key: string]: {
16031
16089
  description?: string | undefined;
16032
16090
  rules?: {
@@ -16102,9 +16160,8 @@ export type GetStoredAgentsStoredAgentId_Response = {
16102
16160
  })[];
16103
16161
  })[];
16104
16162
  } | undefined;
16105
- }[]) | undefined;
16106
- /** Default options for generate/stream calls — static or conditional */
16107
- defaultOptions?: ({
16163
+ }[]) | undefined) | undefined;
16164
+ defaultOptions?: (({
16108
16165
  runId?: string | undefined;
16109
16166
  savePerStep?: boolean | undefined;
16110
16167
  maxSteps?: number | undefined;
@@ -16199,9 +16256,8 @@ export type GetStoredAgentsStoredAgentId_Response = {
16199
16256
  })[];
16200
16257
  })[];
16201
16258
  } | undefined;
16202
- }[]) | undefined;
16203
- /** Workflow keys with optional per-workflow config — static or conditional */
16204
- workflows?: ({
16259
+ }[]) | undefined) | undefined;
16260
+ workflows?: (({
16205
16261
  [key: string]: {
16206
16262
  description?: string | undefined;
16207
16263
  rules?: {
@@ -16277,9 +16333,8 @@ export type GetStoredAgentsStoredAgentId_Response = {
16277
16333
  })[];
16278
16334
  })[];
16279
16335
  } | undefined;
16280
- }[]) | undefined;
16281
- /** Agent keys with optional per-agent config — static or conditional */
16282
- agents?: ({
16336
+ }[]) | undefined) | undefined;
16337
+ agents?: (({
16283
16338
  [key: string]: {
16284
16339
  description?: string | undefined;
16285
16340
  rules?: {
@@ -16355,9 +16410,8 @@ export type GetStoredAgentsStoredAgentId_Response = {
16355
16410
  })[];
16356
16411
  })[];
16357
16412
  } | undefined;
16358
- }[]) | undefined;
16359
- /** Map of tool provider IDs to their tool configurations — static or conditional */
16360
- integrationTools?: ({
16413
+ }[]) | undefined) | undefined;
16414
+ integrationTools?: (({
16361
16415
  [key: string]: {
16362
16416
  tools?: {
16363
16417
  [key: string]: {
@@ -16441,9 +16495,8 @@ export type GetStoredAgentsStoredAgentId_Response = {
16441
16495
  })[];
16442
16496
  })[];
16443
16497
  } | undefined;
16444
- }[]) | undefined;
16445
- /** Tool provider connections and per-tool config (provider-agnostic). Coexists with the deprecated `integrationTools` field. */
16446
- toolProviders?: ({
16498
+ }[]) | undefined) | undefined;
16499
+ toolProviders?: (({
16447
16500
  [key: string]: {
16448
16501
  tools: {
16449
16502
  [key: string]: {
@@ -16503,9 +16556,8 @@ export type GetStoredAgentsStoredAgentId_Response = {
16503
16556
  })[];
16504
16557
  })[];
16505
16558
  } | undefined;
16506
- }[]) | undefined;
16507
- /** Map of stored MCP client IDs to their tool configurations — static or conditional */
16508
- mcpClients?: ({
16559
+ }[]) | undefined) | undefined;
16560
+ mcpClients?: (({
16509
16561
  [key: string]: {
16510
16562
  tools?: {
16511
16563
  [key: string]: {
@@ -16589,9 +16641,8 @@ export type GetStoredAgentsStoredAgentId_Response = {
16589
16641
  })[];
16590
16642
  })[];
16591
16643
  } | undefined;
16592
- }[]) | undefined;
16593
- /** Input processor graph — static or conditional */
16594
- inputProcessors?: ({
16644
+ }[]) | undefined) | undefined;
16645
+ inputProcessors?: (({
16595
16646
  /** Ordered list of processor graph entries */
16596
16647
  steps: ({
16597
16648
  type: 'step';
@@ -16997,9 +17048,8 @@ export type GetStoredAgentsStoredAgentId_Response = {
16997
17048
  })[];
16998
17049
  })[];
16999
17050
  } | undefined;
17000
- }[]) | undefined;
17001
- /** Output processor graph — static or conditional */
17002
- outputProcessors?: ({
17051
+ }[]) | undefined) | undefined;
17052
+ outputProcessors?: (({
17003
17053
  /** Ordered list of processor graph entries */
17004
17054
  steps: ({
17005
17055
  type: 'step';
@@ -17405,9 +17455,8 @@ export type GetStoredAgentsStoredAgentId_Response = {
17405
17455
  })[];
17406
17456
  })[];
17407
17457
  } | undefined;
17408
- }[]) | undefined;
17409
- /** Memory configuration — static or conditional */
17410
- memory?: ({
17458
+ }[]) | undefined) | undefined;
17459
+ memory?: ((({
17411
17460
  /** Vector database identifier or false to disable */
17412
17461
  vector?: (string | false) | undefined;
17413
17462
  /** Memory behavior configuration, excluding workingMemory and threads */
@@ -17611,139 +17660,136 @@ export type GetStoredAgentsStoredAgentId_Response = {
17611
17660
  })[];
17612
17661
  })[];
17613
17662
  } | undefined;
17614
- }[]) | undefined;
17615
- /** Scorer keys with optional sampling config — static or conditional */
17616
- scorers?: ({
17617
- [key: string]: {
17618
- description?: string | undefined;
17619
- sampling?: ({
17620
- type: 'none';
17621
- } | {
17622
- type: 'ratio';
17623
- rate: number;
17624
- }) | undefined;
17625
- rules?: {
17626
- operator: 'AND' | 'OR';
17627
- conditions: ({
17628
- field: string;
17629
- operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
17630
- value?: unknown | undefined;
17631
- } | {
17632
- operator: 'AND' | 'OR';
17633
- conditions: ({
17634
- field: string;
17635
- operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
17636
- value?: unknown | undefined;
17637
- } | {
17638
- operator: 'AND' | 'OR';
17639
- conditions: {
17640
- field: string;
17641
- operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
17642
- value?: unknown | undefined;
17643
- }[];
17644
- })[];
17645
- })[];
17646
- } | undefined;
17647
- };
17648
- } | {
17649
- value: {
17650
- [key: string]: {
17651
- description?: string | undefined;
17652
- sampling?: ({
17653
- type: 'none';
17654
- } | {
17655
- type: 'ratio';
17656
- rate: number;
17657
- }) | undefined;
17658
- rules?: {
17659
- operator: 'AND' | 'OR';
17660
- conditions: ({
17661
- field: string;
17662
- operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
17663
- value?: unknown | undefined;
17664
- } | {
17665
- operator: 'AND' | 'OR';
17666
- conditions: ({
17667
- field: string;
17668
- operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
17669
- value?: unknown | undefined;
17670
- } | {
17671
- operator: 'AND' | 'OR';
17672
- conditions: {
17673
- field: string;
17674
- operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
17675
- value?: unknown | undefined;
17676
- }[];
17677
- })[];
17678
- })[];
17679
- } | undefined;
17680
- };
17681
- };
17682
- rules?: {
17683
- operator: 'AND' | 'OR';
17684
- conditions: ({
17685
- field: string;
17686
- operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
17687
- value?: unknown | undefined;
17688
- } | {
17689
- operator: 'AND' | 'OR';
17690
- conditions: ({
17691
- field: string;
17692
- operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
17693
- value?: unknown | undefined;
17694
- } | {
17695
- operator: 'AND' | 'OR';
17696
- conditions: {
17697
- field: string;
17698
- operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
17699
- value?: unknown | undefined;
17700
- }[];
17701
- })[];
17702
- })[];
17703
- } | undefined;
17704
- }[]) | undefined;
17705
- /** Skill IDs mapped to per-skill config — static or conditional */
17706
- skills?: ({
17707
- [key: string]: {
17708
- description?: string | undefined;
17709
- instructions?: string | undefined;
17710
- pin?: string | undefined;
17711
- strategy?: ('latest' | 'live') | undefined;
17712
- };
17713
- } | {
17714
- value: {
17715
- [key: string]: {
17716
- description?: string | undefined;
17717
- instructions?: string | undefined;
17718
- pin?: string | undefined;
17719
- strategy?: ('latest' | 'live') | undefined;
17720
- };
17721
- };
17722
- rules?: {
17723
- operator: 'AND' | 'OR';
17724
- conditions: ({
17725
- field: string;
17726
- operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
17727
- value?: unknown | undefined;
17728
- } | {
17729
- operator: 'AND' | 'OR';
17730
- conditions: ({
17731
- field: string;
17732
- operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
17733
- value?: unknown | undefined;
17734
- } | {
17735
- operator: 'AND' | 'OR';
17736
- conditions: {
17737
- field: string;
17738
- operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
17739
- value?: unknown | undefined;
17740
- }[];
17741
- })[];
17742
- })[];
17743
- } | undefined;
17744
- }[]) | undefined;
17745
- /** Workspace reference (stored ID or inline config) — static or conditional */
17746
- workspace?: (({
17663
+ }[]) | null) | undefined) | undefined;
17664
+ scorers?: (({
17665
+ [key: string]: {
17666
+ description?: string | undefined;
17667
+ sampling?: ({
17668
+ type: 'none';
17669
+ } | {
17670
+ type: 'ratio';
17671
+ rate: number;
17672
+ }) | undefined;
17673
+ rules?: {
17674
+ operator: 'AND' | 'OR';
17675
+ conditions: ({
17676
+ field: string;
17677
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
17678
+ value?: unknown | undefined;
17679
+ } | {
17680
+ operator: 'AND' | 'OR';
17681
+ conditions: ({
17682
+ field: string;
17683
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
17684
+ value?: unknown | undefined;
17685
+ } | {
17686
+ operator: 'AND' | 'OR';
17687
+ conditions: {
17688
+ field: string;
17689
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
17690
+ value?: unknown | undefined;
17691
+ }[];
17692
+ })[];
17693
+ })[];
17694
+ } | undefined;
17695
+ };
17696
+ } | {
17697
+ value: {
17698
+ [key: string]: {
17699
+ description?: string | undefined;
17700
+ sampling?: ({
17701
+ type: 'none';
17702
+ } | {
17703
+ type: 'ratio';
17704
+ rate: number;
17705
+ }) | undefined;
17706
+ rules?: {
17707
+ operator: 'AND' | 'OR';
17708
+ conditions: ({
17709
+ field: string;
17710
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
17711
+ value?: unknown | undefined;
17712
+ } | {
17713
+ operator: 'AND' | 'OR';
17714
+ conditions: ({
17715
+ field: string;
17716
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
17717
+ value?: unknown | undefined;
17718
+ } | {
17719
+ operator: 'AND' | 'OR';
17720
+ conditions: {
17721
+ field: string;
17722
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
17723
+ value?: unknown | undefined;
17724
+ }[];
17725
+ })[];
17726
+ })[];
17727
+ } | undefined;
17728
+ };
17729
+ };
17730
+ rules?: {
17731
+ operator: 'AND' | 'OR';
17732
+ conditions: ({
17733
+ field: string;
17734
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
17735
+ value?: unknown | undefined;
17736
+ } | {
17737
+ operator: 'AND' | 'OR';
17738
+ conditions: ({
17739
+ field: string;
17740
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
17741
+ value?: unknown | undefined;
17742
+ } | {
17743
+ operator: 'AND' | 'OR';
17744
+ conditions: {
17745
+ field: string;
17746
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
17747
+ value?: unknown | undefined;
17748
+ }[];
17749
+ })[];
17750
+ })[];
17751
+ } | undefined;
17752
+ }[]) | undefined) | undefined;
17753
+ skills?: (({
17754
+ [key: string]: {
17755
+ description?: string | undefined;
17756
+ instructions?: string | undefined;
17757
+ pin?: string | undefined;
17758
+ strategy?: ('latest' | 'live') | undefined;
17759
+ };
17760
+ } | {
17761
+ value: {
17762
+ [key: string]: {
17763
+ description?: string | undefined;
17764
+ instructions?: string | undefined;
17765
+ pin?: string | undefined;
17766
+ strategy?: ('latest' | 'live') | undefined;
17767
+ };
17768
+ };
17769
+ rules?: {
17770
+ operator: 'AND' | 'OR';
17771
+ conditions: ({
17772
+ field: string;
17773
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
17774
+ value?: unknown | undefined;
17775
+ } | {
17776
+ operator: 'AND' | 'OR';
17777
+ conditions: ({
17778
+ field: string;
17779
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
17780
+ value?: unknown | undefined;
17781
+ } | {
17782
+ operator: 'AND' | 'OR';
17783
+ conditions: {
17784
+ field: string;
17785
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
17786
+ value?: unknown | undefined;
17787
+ }[];
17788
+ })[];
17789
+ })[];
17790
+ } | undefined;
17791
+ }[]) | undefined) | undefined;
17792
+ workspace?: ((({
17747
17793
  type: 'id';
17748
17794
  workspaceId: string;
17749
17795
  } | {
@@ -17947,9 +17993,8 @@ export type GetStoredAgentsStoredAgentId_Response = {
17947
17993
  })[];
17948
17994
  })[];
17949
17995
  } | undefined;
17950
- }[]) | undefined;
17951
- /** Browser configuration — object config, true (apply default), false/null (disable) */
17952
- browser?: (({
17996
+ }[]) | undefined) | undefined;
17997
+ browser?: ((({
17953
17998
  type: 'inline';
17954
17999
  config: {
17955
18000
  /** Browser provider type (e.g., stagehand, playwright) */
@@ -18033,42 +18078,62 @@ export type GetStoredAgentsStoredAgentId_Response = {
18033
18078
  })[];
18034
18079
  })[];
18035
18080
  } | undefined;
18036
- }[]) | boolean | null) | undefined;
18037
- /** JSON Schema defining valid request context variables */
18038
- requestContextSchema?: {
18081
+ }[]) | boolean | null) | undefined) | undefined;
18082
+ requestContextSchema?: ({
18039
18083
  [key: string]: unknown;
18040
- } | undefined;
18084
+ } | undefined) | undefined;
18041
18085
  };
18042
- export type GetStoredAgentsStoredAgentId_Request = Simplify<(GetStoredAgentsStoredAgentId_PathParams extends never ? {} : {
18043
- params: GetStoredAgentsStoredAgentId_PathParams;
18044
- }) & (GetStoredAgentsStoredAgentId_QueryParams extends never ? {} : {} extends GetStoredAgentsStoredAgentId_QueryParams ? {
18045
- query?: GetStoredAgentsStoredAgentId_QueryParams;
18046
- } : {
18047
- query: GetStoredAgentsStoredAgentId_QueryParams;
18086
+ export type PostStoredAgentsStoredAgentIdExport_Response = {
18087
+ agentId: string;
18088
+ fileName: string;
18089
+ content: string;
18090
+ config: {
18091
+ [key: string]: unknown;
18092
+ };
18093
+ };
18094
+ export type PostStoredAgentsStoredAgentIdExport_Request = Simplify<(PostStoredAgentsStoredAgentIdExport_PathParams extends never ? {} : {
18095
+ params: PostStoredAgentsStoredAgentIdExport_PathParams;
18048
18096
  }) & (never extends never ? {} : {} extends never ? {
18049
- body?: never;
18097
+ query?: never;
18050
18098
  } : {
18051
- body: never;
18099
+ query: never;
18100
+ }) & (PostStoredAgentsStoredAgentIdExport_Body extends never ? {} : {} extends PostStoredAgentsStoredAgentIdExport_Body ? {
18101
+ body?: PostStoredAgentsStoredAgentIdExport_Body;
18102
+ } : {
18103
+ body: PostStoredAgentsStoredAgentIdExport_Body;
18052
18104
  })>;
18053
- export interface GetStoredAgentsStoredAgentId_RouteContract {
18054
- pathParams: GetStoredAgentsStoredAgentId_PathParams;
18055
- queryParams: GetStoredAgentsStoredAgentId_QueryParams;
18056
- body: never;
18057
- request: GetStoredAgentsStoredAgentId_Request;
18058
- response: GetStoredAgentsStoredAgentId_Response;
18105
+ export interface PostStoredAgentsStoredAgentIdExport_RouteContract {
18106
+ pathParams: PostStoredAgentsStoredAgentIdExport_PathParams;
18107
+ queryParams: never;
18108
+ body: PostStoredAgentsStoredAgentIdExport_Body;
18109
+ request: PostStoredAgentsStoredAgentIdExport_Request;
18110
+ response: PostStoredAgentsStoredAgentIdExport_Response;
18059
18111
  responseType: 'json';
18060
18112
  }
18061
- export type PostStoredAgents_Body = {
18062
- /** Unique identifier for the agent. If not provided, derived from name. */
18063
- id?: string | undefined;
18064
- /** Author identifier for multi-tenant filtering */
18113
+ export type GetStoredAgentsStoredAgentId_PathParams = {
18114
+ /** Unique identifier for the stored agent */
18115
+ storedAgentId: string;
18116
+ };
18117
+ export type GetStoredAgentsStoredAgentId_QueryParams = {
18118
+ /** Which version to resolve: published (active version) or draft (latest version) */
18119
+ status: ('draft' | 'published' | 'archived') | undefined;
18120
+ };
18121
+ export type GetStoredAgentsStoredAgentId_Response = {
18122
+ id: string;
18123
+ /** Agent status: draft or published */
18124
+ status: string;
18125
+ activeVersionId?: string | undefined;
18065
18126
  authorId?: string | undefined;
18066
- /** Additional metadata for the agent */
18067
18127
  metadata?: {
18068
18128
  [key: string]: unknown;
18069
18129
  } | undefined;
18070
- /** Agent visibility: private (owner/admin only) or public (any reader) */
18071
18130
  visibility?: ('private' | 'public') | undefined;
18131
+ /** Number of users who have favorited this agent */
18132
+ favoriteCount?: number | undefined;
18133
+ /** Whether the requesting user has favorited this agent */
18134
+ isFavorited?: boolean | undefined;
18135
+ createdAt: Date;
18136
+ updatedAt: Date;
18072
18137
  /** Name of the agent */
18073
18138
  name: string;
18074
18139
  /** Description of the agent */
@@ -18106,8 +18171,8 @@ export type PostStoredAgents_Body = {
18106
18171
  })[];
18107
18172
  } | undefined;
18108
18173
  })[];
18109
- /** Model configuration — static value or array of conditional variants. When omitted, the builder default model is applied server-side. */
18110
- model?: ({
18174
+ /** Model configuration — static value or array of conditional variants */
18175
+ model: {
18111
18176
  /** Model provider (e.g., openai, anthropic) */
18112
18177
  provider: string;
18113
18178
  /** Model name (e.g., gpt-4o, claude-3-opus) */
@@ -18143,7 +18208,7 @@ export type PostStoredAgents_Body = {
18143
18208
  })[];
18144
18209
  })[];
18145
18210
  } | undefined;
18146
- }[]) | undefined;
18211
+ }[];
18147
18212
  /** Tool keys mapped to per-tool config — static or conditional */
18148
18213
  tools?: ({
18149
18214
  [key: string]: {
@@ -20153,27 +20218,41 @@ export type PostStoredAgents_Body = {
20153
20218
  })[];
20154
20219
  } | undefined;
20155
20220
  }[]) | boolean | null) | undefined;
20156
- /** JSON Schema defining valid request context variables for conditional rule evaluation */
20221
+ /** JSON Schema defining valid request context variables */
20157
20222
  requestContextSchema?: {
20158
20223
  [key: string]: unknown;
20159
20224
  } | undefined;
20160
20225
  };
20161
- export type PostStoredAgents_Response = {
20162
- id: string;
20163
- /** Agent status: draft or published */
20164
- status: string;
20165
- activeVersionId?: string | undefined;
20226
+ export type GetStoredAgentsStoredAgentId_Request = Simplify<(GetStoredAgentsStoredAgentId_PathParams extends never ? {} : {
20227
+ params: GetStoredAgentsStoredAgentId_PathParams;
20228
+ }) & (GetStoredAgentsStoredAgentId_QueryParams extends never ? {} : {} extends GetStoredAgentsStoredAgentId_QueryParams ? {
20229
+ query?: GetStoredAgentsStoredAgentId_QueryParams;
20230
+ } : {
20231
+ query: GetStoredAgentsStoredAgentId_QueryParams;
20232
+ }) & (never extends never ? {} : {} extends never ? {
20233
+ body?: never;
20234
+ } : {
20235
+ body: never;
20236
+ })>;
20237
+ export interface GetStoredAgentsStoredAgentId_RouteContract {
20238
+ pathParams: GetStoredAgentsStoredAgentId_PathParams;
20239
+ queryParams: GetStoredAgentsStoredAgentId_QueryParams;
20240
+ body: never;
20241
+ request: GetStoredAgentsStoredAgentId_Request;
20242
+ response: GetStoredAgentsStoredAgentId_Response;
20243
+ responseType: 'json';
20244
+ }
20245
+ export type PostStoredAgents_Body = {
20246
+ /** Unique identifier for the agent. If not provided, derived from name. */
20247
+ id?: string | undefined;
20248
+ /** Author identifier for multi-tenant filtering */
20166
20249
  authorId?: string | undefined;
20250
+ /** Additional metadata for the agent */
20167
20251
  metadata?: {
20168
20252
  [key: string]: unknown;
20169
20253
  } | undefined;
20254
+ /** Agent visibility: private (owner/admin only) or public (any reader) */
20170
20255
  visibility?: ('private' | 'public') | undefined;
20171
- /** Number of users who have favorited this agent */
20172
- favoriteCount?: number | undefined;
20173
- /** Whether the requesting user has favorited this agent */
20174
- isFavorited?: boolean | undefined;
20175
- createdAt: Date;
20176
- updatedAt: Date;
20177
20256
  /** Name of the agent */
20178
20257
  name: string;
20179
20258
  /** Description of the agent */
@@ -20211,8 +20290,8 @@ export type PostStoredAgents_Response = {
20211
20290
  })[];
20212
20291
  } | undefined;
20213
20292
  })[];
20214
- /** Model configuration — static value or array of conditional variants */
20215
- model: {
20293
+ /** Model configuration — static value or array of conditional variants. When omitted, the builder default model is applied server-side. */
20294
+ model?: ({
20216
20295
  /** Model provider (e.g., openai, anthropic) */
20217
20296
  provider: string;
20218
20297
  /** Model name (e.g., gpt-4o, claude-3-opus) */
@@ -20248,7 +20327,7 @@ export type PostStoredAgents_Response = {
20248
20327
  })[];
20249
20328
  })[];
20250
20329
  } | undefined;
20251
- }[];
20330
+ }[]) | undefined;
20252
20331
  /** Tool keys mapped to per-tool config — static or conditional */
20253
20332
  tools?: ({
20254
20333
  [key: string]: {
@@ -22258,43 +22337,33 @@ export type PostStoredAgents_Response = {
22258
22337
  })[];
22259
22338
  } | undefined;
22260
22339
  }[]) | boolean | null) | undefined;
22261
- /** JSON Schema defining valid request context variables */
22340
+ /** JSON Schema defining valid request context variables for conditional rule evaluation */
22262
22341
  requestContextSchema?: {
22263
22342
  [key: string]: unknown;
22264
22343
  } | undefined;
22265
22344
  };
22266
- export type PostStoredAgents_Request = Simplify<(never extends never ? {} : {
22267
- params: never;
22268
- }) & (never extends never ? {} : {} extends never ? {
22269
- query?: never;
22270
- } : {
22271
- query: never;
22272
- }) & (PostStoredAgents_Body extends never ? {} : {} extends PostStoredAgents_Body ? {
22273
- body?: PostStoredAgents_Body;
22274
- } : {
22275
- body: PostStoredAgents_Body;
22276
- })>;
22277
- export interface PostStoredAgents_RouteContract {
22278
- pathParams: never;
22279
- queryParams: never;
22280
- body: PostStoredAgents_Body;
22281
- request: PostStoredAgents_Request;
22282
- response: PostStoredAgents_Response;
22283
- responseType: 'json';
22284
- }
22285
- export type PatchStoredAgentsStoredAgentId_PathParams = {
22286
- /** Unique identifier for the stored agent */
22287
- storedAgentId: string;
22288
- };
22289
- export type PatchStoredAgentsStoredAgentId_Body = {
22290
- authorId?: (string | undefined) | undefined;
22291
- metadata?: ({
22345
+ export type PostStoredAgents_Response = {
22346
+ id: string;
22347
+ /** Agent status: draft or published */
22348
+ status: string;
22349
+ activeVersionId?: string | undefined;
22350
+ authorId?: string | undefined;
22351
+ metadata?: {
22292
22352
  [key: string]: unknown;
22293
- } | undefined) | undefined;
22294
- visibility?: (('private' | 'public') | undefined) | undefined;
22295
- name?: string | undefined;
22296
- description?: (string | undefined) | undefined;
22297
- instructions?: (string | ({
22353
+ } | undefined;
22354
+ visibility?: ('private' | 'public') | undefined;
22355
+ /** Number of users who have favorited this agent */
22356
+ favoriteCount?: number | undefined;
22357
+ /** Whether the requesting user has favorited this agent */
22358
+ isFavorited?: boolean | undefined;
22359
+ createdAt: Date;
22360
+ updatedAt: Date;
22361
+ /** Name of the agent */
22362
+ name: string;
22363
+ /** Description of the agent */
22364
+ description?: string | undefined;
22365
+ /** System instructions for the agent (string or array of instruction blocks) */
22366
+ instructions: string | ({
22298
22367
  type: 'text';
22299
22368
  content: string;
22300
22369
  } | {
@@ -22325,8 +22394,9 @@ export type PatchStoredAgentsStoredAgentId_Body = {
22325
22394
  })[];
22326
22395
  })[];
22327
22396
  } | undefined;
22328
- })[]) | undefined;
22329
- model?: ({
22397
+ })[];
22398
+ /** Model configuration — static value or array of conditional variants */
22399
+ model: {
22330
22400
  /** Model provider (e.g., openai, anthropic) */
22331
22401
  provider: string;
22332
22402
  /** Model name (e.g., gpt-4o, claude-3-opus) */
@@ -22362,8 +22432,9 @@ export type PatchStoredAgentsStoredAgentId_Body = {
22362
22432
  })[];
22363
22433
  })[];
22364
22434
  } | undefined;
22365
- }[]) | undefined;
22366
- tools?: (({
22435
+ }[];
22436
+ /** Tool keys mapped to per-tool config — static or conditional */
22437
+ tools?: ({
22367
22438
  [key: string]: {
22368
22439
  description?: string | undefined;
22369
22440
  rules?: {
@@ -22439,8 +22510,9 @@ export type PatchStoredAgentsStoredAgentId_Body = {
22439
22510
  })[];
22440
22511
  })[];
22441
22512
  } | undefined;
22442
- }[]) | undefined) | undefined;
22443
- defaultOptions?: (({
22513
+ }[]) | undefined;
22514
+ /** Default options for generate/stream calls — static or conditional */
22515
+ defaultOptions?: ({
22444
22516
  runId?: string | undefined;
22445
22517
  savePerStep?: boolean | undefined;
22446
22518
  maxSteps?: number | undefined;
@@ -22535,8 +22607,9 @@ export type PatchStoredAgentsStoredAgentId_Body = {
22535
22607
  })[];
22536
22608
  })[];
22537
22609
  } | undefined;
22538
- }[]) | undefined) | undefined;
22539
- workflows?: (({
22610
+ }[]) | undefined;
22611
+ /** Workflow keys with optional per-workflow config — static or conditional */
22612
+ workflows?: ({
22540
22613
  [key: string]: {
22541
22614
  description?: string | undefined;
22542
22615
  rules?: {
@@ -22612,8 +22685,9 @@ export type PatchStoredAgentsStoredAgentId_Body = {
22612
22685
  })[];
22613
22686
  })[];
22614
22687
  } | undefined;
22615
- }[]) | undefined) | undefined;
22616
- agents?: (({
22688
+ }[]) | undefined;
22689
+ /** Agent keys with optional per-agent config — static or conditional */
22690
+ agents?: ({
22617
22691
  [key: string]: {
22618
22692
  description?: string | undefined;
22619
22693
  rules?: {
@@ -22689,8 +22763,9 @@ export type PatchStoredAgentsStoredAgentId_Body = {
22689
22763
  })[];
22690
22764
  })[];
22691
22765
  } | undefined;
22692
- }[]) | undefined) | undefined;
22693
- integrationTools?: (({
22766
+ }[]) | undefined;
22767
+ /** Map of tool provider IDs to their tool configurations — static or conditional */
22768
+ integrationTools?: ({
22694
22769
  [key: string]: {
22695
22770
  tools?: {
22696
22771
  [key: string]: {
@@ -22774,8 +22849,9 @@ export type PatchStoredAgentsStoredAgentId_Body = {
22774
22849
  })[];
22775
22850
  })[];
22776
22851
  } | undefined;
22777
- }[]) | undefined) | undefined;
22778
- toolProviders?: (({
22852
+ }[]) | undefined;
22853
+ /** Tool provider connections and per-tool config (provider-agnostic). Coexists with the deprecated `integrationTools` field. */
22854
+ toolProviders?: ({
22779
22855
  [key: string]: {
22780
22856
  tools: {
22781
22857
  [key: string]: {
@@ -22835,8 +22911,9 @@ export type PatchStoredAgentsStoredAgentId_Body = {
22835
22911
  })[];
22836
22912
  })[];
22837
22913
  } | undefined;
22838
- }[]) | undefined) | undefined;
22839
- mcpClients?: (({
22914
+ }[]) | undefined;
22915
+ /** Map of stored MCP client IDs to their tool configurations — static or conditional */
22916
+ mcpClients?: ({
22840
22917
  [key: string]: {
22841
22918
  tools?: {
22842
22919
  [key: string]: {
@@ -22920,8 +22997,9 @@ export type PatchStoredAgentsStoredAgentId_Body = {
22920
22997
  })[];
22921
22998
  })[];
22922
22999
  } | undefined;
22923
- }[]) | undefined) | undefined;
22924
- inputProcessors?: (({
23000
+ }[]) | undefined;
23001
+ /** Input processor graph — static or conditional */
23002
+ inputProcessors?: ({
22925
23003
  /** Ordered list of processor graph entries */
22926
23004
  steps: ({
22927
23005
  type: 'step';
@@ -23327,8 +23405,9 @@ export type PatchStoredAgentsStoredAgentId_Body = {
23327
23405
  })[];
23328
23406
  })[];
23329
23407
  } | undefined;
23330
- }[]) | undefined) | undefined;
23331
- outputProcessors?: (({
23408
+ }[]) | undefined;
23409
+ /** Output processor graph — static or conditional */
23410
+ outputProcessors?: ({
23332
23411
  /** Ordered list of processor graph entries */
23333
23412
  steps: ({
23334
23413
  type: 'step';
@@ -23734,8 +23813,9 @@ export type PatchStoredAgentsStoredAgentId_Body = {
23734
23813
  })[];
23735
23814
  })[];
23736
23815
  } | undefined;
23737
- }[]) | undefined) | undefined;
23738
- memory?: ((({
23816
+ }[]) | undefined;
23817
+ /** Memory configuration — static or conditional */
23818
+ memory?: ({
23739
23819
  /** Vector database identifier or false to disable */
23740
23820
  vector?: (string | false) | undefined;
23741
23821
  /** Memory behavior configuration, excluding workingMemory and threads */
@@ -23939,8 +24019,9 @@ export type PatchStoredAgentsStoredAgentId_Body = {
23939
24019
  })[];
23940
24020
  })[];
23941
24021
  } | undefined;
23942
- }[]) | null) | undefined) | undefined;
23943
- scorers?: (({
24022
+ }[]) | undefined;
24023
+ /** Scorer keys with optional sampling config — static or conditional */
24024
+ scorers?: ({
23944
24025
  [key: string]: {
23945
24026
  description?: string | undefined;
23946
24027
  sampling?: ({
@@ -24028,8 +24109,9 @@ export type PatchStoredAgentsStoredAgentId_Body = {
24028
24109
  })[];
24029
24110
  })[];
24030
24111
  } | undefined;
24031
- }[]) | undefined) | undefined;
24032
- skills?: (({
24112
+ }[]) | undefined;
24113
+ /** Skill IDs mapped to per-skill config — static or conditional */
24114
+ skills?: ({
24033
24115
  [key: string]: {
24034
24116
  description?: string | undefined;
24035
24117
  instructions?: string | undefined;
@@ -24067,8 +24149,9 @@ export type PatchStoredAgentsStoredAgentId_Body = {
24067
24149
  })[];
24068
24150
  })[];
24069
24151
  } | undefined;
24070
- }[]) | undefined) | undefined;
24071
- workspace?: ((({
24152
+ }[]) | undefined;
24153
+ /** Workspace reference (stored ID or inline config) — static or conditional */
24154
+ workspace?: (({
24072
24155
  type: 'id';
24073
24156
  workspaceId: string;
24074
24157
  } | {
@@ -24272,8 +24355,9 @@ export type PatchStoredAgentsStoredAgentId_Body = {
24272
24355
  })[];
24273
24356
  })[];
24274
24357
  } | undefined;
24275
- }[]) | undefined) | undefined;
24276
- browser?: ((({
24358
+ }[]) | undefined;
24359
+ /** Browser configuration — object config, true (apply default), false/null (disable) */
24360
+ browser?: (({
24277
24361
  type: 'inline';
24278
24362
  config: {
24279
24363
  /** Browser provider type (e.g., stagehand, playwright) */
@@ -24357,46 +24441,44 @@ export type PatchStoredAgentsStoredAgentId_Body = {
24357
24441
  })[];
24358
24442
  })[];
24359
24443
  } | undefined;
24360
- }[]) | boolean | null) | undefined) | undefined;
24361
- requestContextSchema?: ({
24362
- [key: string]: unknown;
24363
- } | undefined) | undefined;
24364
- /** Optional message describing the changes for the auto-created version */
24365
- changeMessage?: string | undefined;
24366
- };
24367
- export type PatchStoredAgentsStoredAgentId_Response = {
24368
- id: string;
24369
- status: string;
24370
- activeVersionId?: string | undefined;
24371
- authorId?: string | undefined;
24372
- metadata?: {
24444
+ }[]) | boolean | null) | undefined;
24445
+ /** JSON Schema defining valid request context variables */
24446
+ requestContextSchema?: {
24373
24447
  [key: string]: unknown;
24374
24448
  } | undefined;
24375
- visibility?: ('private' | 'public') | undefined;
24376
- createdAt: Date;
24377
- updatedAt: Date;
24378
- } | {
24379
- id: string;
24380
- /** Agent status: draft or published */
24381
- status: string;
24382
- activeVersionId?: string | undefined;
24383
- authorId?: string | undefined;
24384
- metadata?: {
24449
+ };
24450
+ export type PostStoredAgents_Request = Simplify<(never extends never ? {} : {
24451
+ params: never;
24452
+ }) & (never extends never ? {} : {} extends never ? {
24453
+ query?: never;
24454
+ } : {
24455
+ query: never;
24456
+ }) & (PostStoredAgents_Body extends never ? {} : {} extends PostStoredAgents_Body ? {
24457
+ body?: PostStoredAgents_Body;
24458
+ } : {
24459
+ body: PostStoredAgents_Body;
24460
+ })>;
24461
+ export interface PostStoredAgents_RouteContract {
24462
+ pathParams: never;
24463
+ queryParams: never;
24464
+ body: PostStoredAgents_Body;
24465
+ request: PostStoredAgents_Request;
24466
+ response: PostStoredAgents_Response;
24467
+ responseType: 'json';
24468
+ }
24469
+ export type PatchStoredAgentsStoredAgentId_PathParams = {
24470
+ /** Unique identifier for the stored agent */
24471
+ storedAgentId: string;
24472
+ };
24473
+ export type PatchStoredAgentsStoredAgentId_Body = {
24474
+ authorId?: (string | undefined) | undefined;
24475
+ metadata?: ({
24385
24476
  [key: string]: unknown;
24386
- } | undefined;
24387
- visibility?: ('private' | 'public') | undefined;
24388
- /** Number of users who have favorited this agent */
24389
- favoriteCount?: number | undefined;
24390
- /** Whether the requesting user has favorited this agent */
24391
- isFavorited?: boolean | undefined;
24392
- createdAt: Date;
24393
- updatedAt: Date;
24394
- /** Name of the agent */
24395
- name: string;
24396
- /** Description of the agent */
24397
- description?: string | undefined;
24398
- /** System instructions for the agent (string or array of instruction blocks) */
24399
- instructions: string | ({
24477
+ } | undefined) | undefined;
24478
+ visibility?: (('private' | 'public') | undefined) | undefined;
24479
+ name?: string | undefined;
24480
+ description?: (string | undefined) | undefined;
24481
+ instructions?: (string | ({
24400
24482
  type: 'text';
24401
24483
  content: string;
24402
24484
  } | {
@@ -24427,9 +24509,8 @@ export type PatchStoredAgentsStoredAgentId_Response = {
24427
24509
  })[];
24428
24510
  })[];
24429
24511
  } | undefined;
24430
- })[];
24431
- /** Model configuration — static value or array of conditional variants */
24432
- model: {
24512
+ })[]) | undefined;
24513
+ model?: ({
24433
24514
  /** Model provider (e.g., openai, anthropic) */
24434
24515
  provider: string;
24435
24516
  /** Model name (e.g., gpt-4o, claude-3-opus) */
@@ -24465,9 +24546,8 @@ export type PatchStoredAgentsStoredAgentId_Response = {
24465
24546
  })[];
24466
24547
  })[];
24467
24548
  } | undefined;
24468
- }[];
24469
- /** Tool keys mapped to per-tool config — static or conditional */
24470
- tools?: ({
24549
+ }[]) | undefined;
24550
+ tools?: (({
24471
24551
  [key: string]: {
24472
24552
  description?: string | undefined;
24473
24553
  rules?: {
@@ -24543,9 +24623,8 @@ export type PatchStoredAgentsStoredAgentId_Response = {
24543
24623
  })[];
24544
24624
  })[];
24545
24625
  } | undefined;
24546
- }[]) | undefined;
24547
- /** Default options for generate/stream calls — static or conditional */
24548
- defaultOptions?: ({
24626
+ }[]) | undefined) | undefined;
24627
+ defaultOptions?: (({
24549
24628
  runId?: string | undefined;
24550
24629
  savePerStep?: boolean | undefined;
24551
24630
  maxSteps?: number | undefined;
@@ -24640,9 +24719,8 @@ export type PatchStoredAgentsStoredAgentId_Response = {
24640
24719
  })[];
24641
24720
  })[];
24642
24721
  } | undefined;
24643
- }[]) | undefined;
24644
- /** Workflow keys with optional per-workflow config — static or conditional */
24645
- workflows?: ({
24722
+ }[]) | undefined) | undefined;
24723
+ workflows?: (({
24646
24724
  [key: string]: {
24647
24725
  description?: string | undefined;
24648
24726
  rules?: {
@@ -24718,9 +24796,8 @@ export type PatchStoredAgentsStoredAgentId_Response = {
24718
24796
  })[];
24719
24797
  })[];
24720
24798
  } | undefined;
24721
- }[]) | undefined;
24722
- /** Agent keys with optional per-agent config — static or conditional */
24723
- agents?: ({
24799
+ }[]) | undefined) | undefined;
24800
+ agents?: (({
24724
24801
  [key: string]: {
24725
24802
  description?: string | undefined;
24726
24803
  rules?: {
@@ -24796,9 +24873,8 @@ export type PatchStoredAgentsStoredAgentId_Response = {
24796
24873
  })[];
24797
24874
  })[];
24798
24875
  } | undefined;
24799
- }[]) | undefined;
24800
- /** Map of tool provider IDs to their tool configurations — static or conditional */
24801
- integrationTools?: ({
24876
+ }[]) | undefined) | undefined;
24877
+ integrationTools?: (({
24802
24878
  [key: string]: {
24803
24879
  tools?: {
24804
24880
  [key: string]: {
@@ -24882,9 +24958,8 @@ export type PatchStoredAgentsStoredAgentId_Response = {
24882
24958
  })[];
24883
24959
  })[];
24884
24960
  } | undefined;
24885
- }[]) | undefined;
24886
- /** Tool provider connections and per-tool config (provider-agnostic). Coexists with the deprecated `integrationTools` field. */
24887
- toolProviders?: ({
24961
+ }[]) | undefined) | undefined;
24962
+ toolProviders?: (({
24888
24963
  [key: string]: {
24889
24964
  tools: {
24890
24965
  [key: string]: {
@@ -24944,9 +25019,8 @@ export type PatchStoredAgentsStoredAgentId_Response = {
24944
25019
  })[];
24945
25020
  })[];
24946
25021
  } | undefined;
24947
- }[]) | undefined;
24948
- /** Map of stored MCP client IDs to their tool configurations — static or conditional */
24949
- mcpClients?: ({
25022
+ }[]) | undefined) | undefined;
25023
+ mcpClients?: (({
24950
25024
  [key: string]: {
24951
25025
  tools?: {
24952
25026
  [key: string]: {
@@ -25030,9 +25104,8 @@ export type PatchStoredAgentsStoredAgentId_Response = {
25030
25104
  })[];
25031
25105
  })[];
25032
25106
  } | undefined;
25033
- }[]) | undefined;
25034
- /** Input processor graph — static or conditional */
25035
- inputProcessors?: ({
25107
+ }[]) | undefined) | undefined;
25108
+ inputProcessors?: (({
25036
25109
  /** Ordered list of processor graph entries */
25037
25110
  steps: ({
25038
25111
  type: 'step';
@@ -25438,9 +25511,8 @@ export type PatchStoredAgentsStoredAgentId_Response = {
25438
25511
  })[];
25439
25512
  })[];
25440
25513
  } | undefined;
25441
- }[]) | undefined;
25442
- /** Output processor graph — static or conditional */
25443
- outputProcessors?: ({
25514
+ }[]) | undefined) | undefined;
25515
+ outputProcessors?: (({
25444
25516
  /** Ordered list of processor graph entries */
25445
25517
  steps: ({
25446
25518
  type: 'step';
@@ -25846,9 +25918,8 @@ export type PatchStoredAgentsStoredAgentId_Response = {
25846
25918
  })[];
25847
25919
  })[];
25848
25920
  } | undefined;
25849
- }[]) | undefined;
25850
- /** Memory configuration — static or conditional */
25851
- memory?: ({
25921
+ }[]) | undefined) | undefined;
25922
+ memory?: ((({
25852
25923
  /** Vector database identifier or false to disable */
25853
25924
  vector?: (string | false) | undefined;
25854
25925
  /** Memory behavior configuration, excluding workingMemory and threads */
@@ -26052,9 +26123,8 @@ export type PatchStoredAgentsStoredAgentId_Response = {
26052
26123
  })[];
26053
26124
  })[];
26054
26125
  } | undefined;
26055
- }[]) | undefined;
26056
- /** Scorer keys with optional sampling config — static or conditional */
26057
- scorers?: ({
26126
+ }[]) | null) | undefined) | undefined;
26127
+ scorers?: (({
26058
26128
  [key: string]: {
26059
26129
  description?: string | undefined;
26060
26130
  sampling?: ({
@@ -26142,9 +26212,8 @@ export type PatchStoredAgentsStoredAgentId_Response = {
26142
26212
  })[];
26143
26213
  })[];
26144
26214
  } | undefined;
26145
- }[]) | undefined;
26146
- /** Skill IDs mapped to per-skill config — static or conditional */
26147
- skills?: ({
26215
+ }[]) | undefined) | undefined;
26216
+ skills?: (({
26148
26217
  [key: string]: {
26149
26218
  description?: string | undefined;
26150
26219
  instructions?: string | undefined;
@@ -26182,9 +26251,8 @@ export type PatchStoredAgentsStoredAgentId_Response = {
26182
26251
  })[];
26183
26252
  })[];
26184
26253
  } | undefined;
26185
- }[]) | undefined;
26186
- /** Workspace reference (stored ID or inline config) — static or conditional */
26187
- workspace?: (({
26254
+ }[]) | undefined) | undefined;
26255
+ workspace?: ((({
26188
26256
  type: 'id';
26189
26257
  workspaceId: string;
26190
26258
  } | {
@@ -26388,9 +26456,2125 @@ export type PatchStoredAgentsStoredAgentId_Response = {
26388
26456
  })[];
26389
26457
  })[];
26390
26458
  } | undefined;
26391
- }[]) | undefined;
26392
- /** Browser configuration — object config, true (apply default), false/null (disable) */
26393
- browser?: (({
26459
+ }[]) | undefined) | undefined;
26460
+ browser?: ((({
26461
+ type: 'inline';
26462
+ config: {
26463
+ /** Browser provider type (e.g., stagehand, playwright) */
26464
+ provider: string;
26465
+ /** Run browser in headless mode (default: true) */
26466
+ headless?: boolean | undefined;
26467
+ /** Browser viewport dimensions */
26468
+ viewport?: {
26469
+ /** Viewport width in pixels */
26470
+ width: number;
26471
+ /** Viewport height in pixels */
26472
+ height: number;
26473
+ } | undefined;
26474
+ /** Default timeout in milliseconds (default: 10000) */
26475
+ timeout?: number | undefined;
26476
+ /** Screencast options for streaming browser frames */
26477
+ screencast?: {
26478
+ /** Image format (default: jpeg) */
26479
+ format?: ('jpeg' | 'png') | undefined;
26480
+ /** JPEG quality 0-100 (default: 80) */
26481
+ quality?: number | undefined;
26482
+ /** Max width in pixels (default: 1280) */
26483
+ maxWidth?: number | undefined;
26484
+ /** Max height in pixels (default: 720) */
26485
+ maxHeight?: number | undefined;
26486
+ /** Capture every Nth frame (default: 1) */
26487
+ everyNthFrame?: number | undefined;
26488
+ } | undefined;
26489
+ };
26490
+ } | {
26491
+ value: {
26492
+ type: 'inline';
26493
+ config: {
26494
+ /** Browser provider type (e.g., stagehand, playwright) */
26495
+ provider: string;
26496
+ /** Run browser in headless mode (default: true) */
26497
+ headless?: boolean | undefined;
26498
+ /** Browser viewport dimensions */
26499
+ viewport?: {
26500
+ /** Viewport width in pixels */
26501
+ width: number;
26502
+ /** Viewport height in pixels */
26503
+ height: number;
26504
+ } | undefined;
26505
+ /** Default timeout in milliseconds (default: 10000) */
26506
+ timeout?: number | undefined;
26507
+ /** Screencast options for streaming browser frames */
26508
+ screencast?: {
26509
+ /** Image format (default: jpeg) */
26510
+ format?: ('jpeg' | 'png') | undefined;
26511
+ /** JPEG quality 0-100 (default: 80) */
26512
+ quality?: number | undefined;
26513
+ /** Max width in pixels (default: 1280) */
26514
+ maxWidth?: number | undefined;
26515
+ /** Max height in pixels (default: 720) */
26516
+ maxHeight?: number | undefined;
26517
+ /** Capture every Nth frame (default: 1) */
26518
+ everyNthFrame?: number | undefined;
26519
+ } | undefined;
26520
+ };
26521
+ };
26522
+ rules?: {
26523
+ operator: 'AND' | 'OR';
26524
+ conditions: ({
26525
+ field: string;
26526
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
26527
+ value?: unknown | undefined;
26528
+ } | {
26529
+ operator: 'AND' | 'OR';
26530
+ conditions: ({
26531
+ field: string;
26532
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
26533
+ value?: unknown | undefined;
26534
+ } | {
26535
+ operator: 'AND' | 'OR';
26536
+ conditions: {
26537
+ field: string;
26538
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
26539
+ value?: unknown | undefined;
26540
+ }[];
26541
+ })[];
26542
+ })[];
26543
+ } | undefined;
26544
+ }[]) | boolean | null) | undefined) | undefined;
26545
+ requestContextSchema?: ({
26546
+ [key: string]: unknown;
26547
+ } | undefined) | undefined;
26548
+ /** Optional message describing the changes for the auto-created version */
26549
+ changeMessage?: string | undefined;
26550
+ };
26551
+ export type PatchStoredAgentsStoredAgentId_Response = {
26552
+ id: string;
26553
+ status: string;
26554
+ activeVersionId?: string | undefined;
26555
+ authorId?: string | undefined;
26556
+ metadata?: {
26557
+ [key: string]: unknown;
26558
+ } | undefined;
26559
+ visibility?: ('private' | 'public') | undefined;
26560
+ createdAt: Date;
26561
+ updatedAt: Date;
26562
+ } | {
26563
+ id: string;
26564
+ /** Agent status: draft or published */
26565
+ status: string;
26566
+ activeVersionId?: string | undefined;
26567
+ authorId?: string | undefined;
26568
+ metadata?: {
26569
+ [key: string]: unknown;
26570
+ } | undefined;
26571
+ visibility?: ('private' | 'public') | undefined;
26572
+ /** Number of users who have favorited this agent */
26573
+ favoriteCount?: number | undefined;
26574
+ /** Whether the requesting user has favorited this agent */
26575
+ isFavorited?: boolean | undefined;
26576
+ createdAt: Date;
26577
+ updatedAt: Date;
26578
+ /** Name of the agent */
26579
+ name: string;
26580
+ /** Description of the agent */
26581
+ description?: string | undefined;
26582
+ /** System instructions for the agent (string or array of instruction blocks) */
26583
+ instructions: string | ({
26584
+ type: 'text';
26585
+ content: string;
26586
+ } | {
26587
+ type: 'prompt_block_ref';
26588
+ id: string;
26589
+ } | {
26590
+ type: 'prompt_block';
26591
+ content: string;
26592
+ rules?: {
26593
+ operator: 'AND' | 'OR';
26594
+ conditions: ({
26595
+ field: string;
26596
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
26597
+ value?: unknown | undefined;
26598
+ } | {
26599
+ operator: 'AND' | 'OR';
26600
+ conditions: ({
26601
+ field: string;
26602
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
26603
+ value?: unknown | undefined;
26604
+ } | {
26605
+ operator: 'AND' | 'OR';
26606
+ conditions: {
26607
+ field: string;
26608
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
26609
+ value?: unknown | undefined;
26610
+ }[];
26611
+ })[];
26612
+ })[];
26613
+ } | undefined;
26614
+ })[];
26615
+ /** Model configuration — static value or array of conditional variants */
26616
+ model: {
26617
+ /** Model provider (e.g., openai, anthropic) */
26618
+ provider: string;
26619
+ /** Model name (e.g., gpt-4o, claude-3-opus) */
26620
+ name: string;
26621
+ [x: string]: unknown;
26622
+ } | {
26623
+ value: {
26624
+ /** Model provider (e.g., openai, anthropic) */
26625
+ provider: string;
26626
+ /** Model name (e.g., gpt-4o, claude-3-opus) */
26627
+ name: string;
26628
+ [x: string]: unknown;
26629
+ };
26630
+ rules?: {
26631
+ operator: 'AND' | 'OR';
26632
+ conditions: ({
26633
+ field: string;
26634
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
26635
+ value?: unknown | undefined;
26636
+ } | {
26637
+ operator: 'AND' | 'OR';
26638
+ conditions: ({
26639
+ field: string;
26640
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
26641
+ value?: unknown | undefined;
26642
+ } | {
26643
+ operator: 'AND' | 'OR';
26644
+ conditions: {
26645
+ field: string;
26646
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
26647
+ value?: unknown | undefined;
26648
+ }[];
26649
+ })[];
26650
+ })[];
26651
+ } | undefined;
26652
+ }[];
26653
+ /** Tool keys mapped to per-tool config — static or conditional */
26654
+ tools?: ({
26655
+ [key: string]: {
26656
+ description?: string | undefined;
26657
+ rules?: {
26658
+ operator: 'AND' | 'OR';
26659
+ conditions: ({
26660
+ field: string;
26661
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
26662
+ value?: unknown | undefined;
26663
+ } | {
26664
+ operator: 'AND' | 'OR';
26665
+ conditions: ({
26666
+ field: string;
26667
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
26668
+ value?: unknown | undefined;
26669
+ } | {
26670
+ operator: 'AND' | 'OR';
26671
+ conditions: {
26672
+ field: string;
26673
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
26674
+ value?: unknown | undefined;
26675
+ }[];
26676
+ })[];
26677
+ })[];
26678
+ } | undefined;
26679
+ };
26680
+ } | {
26681
+ value: {
26682
+ [key: string]: {
26683
+ description?: string | undefined;
26684
+ rules?: {
26685
+ operator: 'AND' | 'OR';
26686
+ conditions: ({
26687
+ field: string;
26688
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
26689
+ value?: unknown | undefined;
26690
+ } | {
26691
+ operator: 'AND' | 'OR';
26692
+ conditions: ({
26693
+ field: string;
26694
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
26695
+ value?: unknown | undefined;
26696
+ } | {
26697
+ operator: 'AND' | 'OR';
26698
+ conditions: {
26699
+ field: string;
26700
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
26701
+ value?: unknown | undefined;
26702
+ }[];
26703
+ })[];
26704
+ })[];
26705
+ } | undefined;
26706
+ };
26707
+ };
26708
+ rules?: {
26709
+ operator: 'AND' | 'OR';
26710
+ conditions: ({
26711
+ field: string;
26712
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
26713
+ value?: unknown | undefined;
26714
+ } | {
26715
+ operator: 'AND' | 'OR';
26716
+ conditions: ({
26717
+ field: string;
26718
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
26719
+ value?: unknown | undefined;
26720
+ } | {
26721
+ operator: 'AND' | 'OR';
26722
+ conditions: {
26723
+ field: string;
26724
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
26725
+ value?: unknown | undefined;
26726
+ }[];
26727
+ })[];
26728
+ })[];
26729
+ } | undefined;
26730
+ }[]) | undefined;
26731
+ /** Default options for generate/stream calls — static or conditional */
26732
+ defaultOptions?: ({
26733
+ runId?: string | undefined;
26734
+ savePerStep?: boolean | undefined;
26735
+ maxSteps?: number | undefined;
26736
+ activeTools?: string[] | undefined;
26737
+ maxProcessorRetries?: number | undefined;
26738
+ toolChoice?: ('auto' | 'none' | 'required' | {
26739
+ type: 'tool';
26740
+ toolName: string;
26741
+ }) | undefined;
26742
+ modelSettings?: {
26743
+ temperature?: number | undefined;
26744
+ maxTokens?: number | undefined;
26745
+ topP?: number | undefined;
26746
+ topK?: number | undefined;
26747
+ frequencyPenalty?: number | undefined;
26748
+ presencePenalty?: number | undefined;
26749
+ stopSequences?: string[] | undefined;
26750
+ seed?: number | undefined;
26751
+ maxRetries?: number | undefined;
26752
+ } | undefined;
26753
+ returnScorerData?: boolean | undefined;
26754
+ tracingOptions?: {
26755
+ traceName?: string | undefined;
26756
+ attributes?: {
26757
+ [key: string]: unknown;
26758
+ } | undefined;
26759
+ spanId?: string | undefined;
26760
+ traceId?: string | undefined;
26761
+ } | undefined;
26762
+ requireToolApproval?: boolean | undefined;
26763
+ autoResumeSuspendedTools?: boolean | undefined;
26764
+ toolCallConcurrency?: number | undefined;
26765
+ includeRawChunks?: boolean | undefined;
26766
+ [x: string]: unknown;
26767
+ } | {
26768
+ /** Default options for agent execution */
26769
+ value: {
26770
+ runId?: string | undefined;
26771
+ savePerStep?: boolean | undefined;
26772
+ maxSteps?: number | undefined;
26773
+ activeTools?: string[] | undefined;
26774
+ maxProcessorRetries?: number | undefined;
26775
+ toolChoice?: ('auto' | 'none' | 'required' | {
26776
+ type: 'tool';
26777
+ toolName: string;
26778
+ }) | undefined;
26779
+ modelSettings?: {
26780
+ temperature?: number | undefined;
26781
+ maxTokens?: number | undefined;
26782
+ topP?: number | undefined;
26783
+ topK?: number | undefined;
26784
+ frequencyPenalty?: number | undefined;
26785
+ presencePenalty?: number | undefined;
26786
+ stopSequences?: string[] | undefined;
26787
+ seed?: number | undefined;
26788
+ maxRetries?: number | undefined;
26789
+ } | undefined;
26790
+ returnScorerData?: boolean | undefined;
26791
+ tracingOptions?: {
26792
+ traceName?: string | undefined;
26793
+ attributes?: {
26794
+ [key: string]: unknown;
26795
+ } | undefined;
26796
+ spanId?: string | undefined;
26797
+ traceId?: string | undefined;
26798
+ } | undefined;
26799
+ requireToolApproval?: boolean | undefined;
26800
+ autoResumeSuspendedTools?: boolean | undefined;
26801
+ toolCallConcurrency?: number | undefined;
26802
+ includeRawChunks?: boolean | undefined;
26803
+ [x: string]: unknown;
26804
+ };
26805
+ rules?: {
26806
+ operator: 'AND' | 'OR';
26807
+ conditions: ({
26808
+ field: string;
26809
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
26810
+ value?: unknown | undefined;
26811
+ } | {
26812
+ operator: 'AND' | 'OR';
26813
+ conditions: ({
26814
+ field: string;
26815
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
26816
+ value?: unknown | undefined;
26817
+ } | {
26818
+ operator: 'AND' | 'OR';
26819
+ conditions: {
26820
+ field: string;
26821
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
26822
+ value?: unknown | undefined;
26823
+ }[];
26824
+ })[];
26825
+ })[];
26826
+ } | undefined;
26827
+ }[]) | undefined;
26828
+ /** Workflow keys with optional per-workflow config — static or conditional */
26829
+ workflows?: ({
26830
+ [key: string]: {
26831
+ description?: string | undefined;
26832
+ rules?: {
26833
+ operator: 'AND' | 'OR';
26834
+ conditions: ({
26835
+ field: string;
26836
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
26837
+ value?: unknown | undefined;
26838
+ } | {
26839
+ operator: 'AND' | 'OR';
26840
+ conditions: ({
26841
+ field: string;
26842
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
26843
+ value?: unknown | undefined;
26844
+ } | {
26845
+ operator: 'AND' | 'OR';
26846
+ conditions: {
26847
+ field: string;
26848
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
26849
+ value?: unknown | undefined;
26850
+ }[];
26851
+ })[];
26852
+ })[];
26853
+ } | undefined;
26854
+ };
26855
+ } | {
26856
+ value: {
26857
+ [key: string]: {
26858
+ description?: string | undefined;
26859
+ rules?: {
26860
+ operator: 'AND' | 'OR';
26861
+ conditions: ({
26862
+ field: string;
26863
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
26864
+ value?: unknown | undefined;
26865
+ } | {
26866
+ operator: 'AND' | 'OR';
26867
+ conditions: ({
26868
+ field: string;
26869
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
26870
+ value?: unknown | undefined;
26871
+ } | {
26872
+ operator: 'AND' | 'OR';
26873
+ conditions: {
26874
+ field: string;
26875
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
26876
+ value?: unknown | undefined;
26877
+ }[];
26878
+ })[];
26879
+ })[];
26880
+ } | undefined;
26881
+ };
26882
+ };
26883
+ rules?: {
26884
+ operator: 'AND' | 'OR';
26885
+ conditions: ({
26886
+ field: string;
26887
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
26888
+ value?: unknown | undefined;
26889
+ } | {
26890
+ operator: 'AND' | 'OR';
26891
+ conditions: ({
26892
+ field: string;
26893
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
26894
+ value?: unknown | undefined;
26895
+ } | {
26896
+ operator: 'AND' | 'OR';
26897
+ conditions: {
26898
+ field: string;
26899
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
26900
+ value?: unknown | undefined;
26901
+ }[];
26902
+ })[];
26903
+ })[];
26904
+ } | undefined;
26905
+ }[]) | undefined;
26906
+ /** Agent keys with optional per-agent config — static or conditional */
26907
+ agents?: ({
26908
+ [key: string]: {
26909
+ description?: string | undefined;
26910
+ rules?: {
26911
+ operator: 'AND' | 'OR';
26912
+ conditions: ({
26913
+ field: string;
26914
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
26915
+ value?: unknown | undefined;
26916
+ } | {
26917
+ operator: 'AND' | 'OR';
26918
+ conditions: ({
26919
+ field: string;
26920
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
26921
+ value?: unknown | undefined;
26922
+ } | {
26923
+ operator: 'AND' | 'OR';
26924
+ conditions: {
26925
+ field: string;
26926
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
26927
+ value?: unknown | undefined;
26928
+ }[];
26929
+ })[];
26930
+ })[];
26931
+ } | undefined;
26932
+ };
26933
+ } | {
26934
+ value: {
26935
+ [key: string]: {
26936
+ description?: string | undefined;
26937
+ rules?: {
26938
+ operator: 'AND' | 'OR';
26939
+ conditions: ({
26940
+ field: string;
26941
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
26942
+ value?: unknown | undefined;
26943
+ } | {
26944
+ operator: 'AND' | 'OR';
26945
+ conditions: ({
26946
+ field: string;
26947
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
26948
+ value?: unknown | undefined;
26949
+ } | {
26950
+ operator: 'AND' | 'OR';
26951
+ conditions: {
26952
+ field: string;
26953
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
26954
+ value?: unknown | undefined;
26955
+ }[];
26956
+ })[];
26957
+ })[];
26958
+ } | undefined;
26959
+ };
26960
+ };
26961
+ rules?: {
26962
+ operator: 'AND' | 'OR';
26963
+ conditions: ({
26964
+ field: string;
26965
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
26966
+ value?: unknown | undefined;
26967
+ } | {
26968
+ operator: 'AND' | 'OR';
26969
+ conditions: ({
26970
+ field: string;
26971
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
26972
+ value?: unknown | undefined;
26973
+ } | {
26974
+ operator: 'AND' | 'OR';
26975
+ conditions: {
26976
+ field: string;
26977
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
26978
+ value?: unknown | undefined;
26979
+ }[];
26980
+ })[];
26981
+ })[];
26982
+ } | undefined;
26983
+ }[]) | undefined;
26984
+ /** Map of tool provider IDs to their tool configurations — static or conditional */
26985
+ integrationTools?: ({
26986
+ [key: string]: {
26987
+ tools?: {
26988
+ [key: string]: {
26989
+ description?: string | undefined;
26990
+ rules?: {
26991
+ operator: 'AND' | 'OR';
26992
+ conditions: ({
26993
+ field: string;
26994
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
26995
+ value?: unknown | undefined;
26996
+ } | {
26997
+ operator: 'AND' | 'OR';
26998
+ conditions: ({
26999
+ field: string;
27000
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
27001
+ value?: unknown | undefined;
27002
+ } | {
27003
+ operator: 'AND' | 'OR';
27004
+ conditions: {
27005
+ field: string;
27006
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
27007
+ value?: unknown | undefined;
27008
+ }[];
27009
+ })[];
27010
+ })[];
27011
+ } | undefined;
27012
+ };
27013
+ } | undefined;
27014
+ };
27015
+ } | {
27016
+ value: {
27017
+ [key: string]: {
27018
+ tools?: {
27019
+ [key: string]: {
27020
+ description?: string | undefined;
27021
+ rules?: {
27022
+ operator: 'AND' | 'OR';
27023
+ conditions: ({
27024
+ field: string;
27025
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
27026
+ value?: unknown | undefined;
27027
+ } | {
27028
+ operator: 'AND' | 'OR';
27029
+ conditions: ({
27030
+ field: string;
27031
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
27032
+ value?: unknown | undefined;
27033
+ } | {
27034
+ operator: 'AND' | 'OR';
27035
+ conditions: {
27036
+ field: string;
27037
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
27038
+ value?: unknown | undefined;
27039
+ }[];
27040
+ })[];
27041
+ })[];
27042
+ } | undefined;
27043
+ };
27044
+ } | undefined;
27045
+ };
27046
+ };
27047
+ rules?: {
27048
+ operator: 'AND' | 'OR';
27049
+ conditions: ({
27050
+ field: string;
27051
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
27052
+ value?: unknown | undefined;
27053
+ } | {
27054
+ operator: 'AND' | 'OR';
27055
+ conditions: ({
27056
+ field: string;
27057
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
27058
+ value?: unknown | undefined;
27059
+ } | {
27060
+ operator: 'AND' | 'OR';
27061
+ conditions: {
27062
+ field: string;
27063
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
27064
+ value?: unknown | undefined;
27065
+ }[];
27066
+ })[];
27067
+ })[];
27068
+ } | undefined;
27069
+ }[]) | undefined;
27070
+ /** Tool provider connections and per-tool config (provider-agnostic). Coexists with the deprecated `integrationTools` field. */
27071
+ toolProviders?: ({
27072
+ [key: string]: {
27073
+ tools: {
27074
+ [key: string]: {
27075
+ toolkit?: string | undefined;
27076
+ description?: string | undefined;
27077
+ };
27078
+ };
27079
+ connections: {
27080
+ [key: string]: {
27081
+ kind: 'author' | 'invoker' | 'platform';
27082
+ toolkit: string;
27083
+ connectionId: string;
27084
+ label?: string | undefined;
27085
+ scope?: ('shared' | 'per-author' | 'caller-supplied') | undefined;
27086
+ }[];
27087
+ };
27088
+ };
27089
+ } | {
27090
+ value: {
27091
+ [key: string]: {
27092
+ tools: {
27093
+ [key: string]: {
27094
+ toolkit?: string | undefined;
27095
+ description?: string | undefined;
27096
+ };
27097
+ };
27098
+ connections: {
27099
+ [key: string]: {
27100
+ kind: 'author' | 'invoker' | 'platform';
27101
+ toolkit: string;
27102
+ connectionId: string;
27103
+ label?: string | undefined;
27104
+ scope?: ('shared' | 'per-author' | 'caller-supplied') | undefined;
27105
+ }[];
27106
+ };
27107
+ };
27108
+ };
27109
+ rules?: {
27110
+ operator: 'AND' | 'OR';
27111
+ conditions: ({
27112
+ field: string;
27113
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
27114
+ value?: unknown | undefined;
27115
+ } | {
27116
+ operator: 'AND' | 'OR';
27117
+ conditions: ({
27118
+ field: string;
27119
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
27120
+ value?: unknown | undefined;
27121
+ } | {
27122
+ operator: 'AND' | 'OR';
27123
+ conditions: {
27124
+ field: string;
27125
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
27126
+ value?: unknown | undefined;
27127
+ }[];
27128
+ })[];
27129
+ })[];
27130
+ } | undefined;
27131
+ }[]) | undefined;
27132
+ /** Map of stored MCP client IDs to their tool configurations — static or conditional */
27133
+ mcpClients?: ({
27134
+ [key: string]: {
27135
+ tools?: {
27136
+ [key: string]: {
27137
+ description?: string | undefined;
27138
+ rules?: {
27139
+ operator: 'AND' | 'OR';
27140
+ conditions: ({
27141
+ field: string;
27142
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
27143
+ value?: unknown | undefined;
27144
+ } | {
27145
+ operator: 'AND' | 'OR';
27146
+ conditions: ({
27147
+ field: string;
27148
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
27149
+ value?: unknown | undefined;
27150
+ } | {
27151
+ operator: 'AND' | 'OR';
27152
+ conditions: {
27153
+ field: string;
27154
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
27155
+ value?: unknown | undefined;
27156
+ }[];
27157
+ })[];
27158
+ })[];
27159
+ } | undefined;
27160
+ };
27161
+ } | undefined;
27162
+ };
27163
+ } | {
27164
+ value: {
27165
+ [key: string]: {
27166
+ tools?: {
27167
+ [key: string]: {
27168
+ description?: string | undefined;
27169
+ rules?: {
27170
+ operator: 'AND' | 'OR';
27171
+ conditions: ({
27172
+ field: string;
27173
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
27174
+ value?: unknown | undefined;
27175
+ } | {
27176
+ operator: 'AND' | 'OR';
27177
+ conditions: ({
27178
+ field: string;
27179
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
27180
+ value?: unknown | undefined;
27181
+ } | {
27182
+ operator: 'AND' | 'OR';
27183
+ conditions: {
27184
+ field: string;
27185
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
27186
+ value?: unknown | undefined;
27187
+ }[];
27188
+ })[];
27189
+ })[];
27190
+ } | undefined;
27191
+ };
27192
+ } | undefined;
27193
+ };
27194
+ };
27195
+ rules?: {
27196
+ operator: 'AND' | 'OR';
27197
+ conditions: ({
27198
+ field: string;
27199
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
27200
+ value?: unknown | undefined;
27201
+ } | {
27202
+ operator: 'AND' | 'OR';
27203
+ conditions: ({
27204
+ field: string;
27205
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
27206
+ value?: unknown | undefined;
27207
+ } | {
27208
+ operator: 'AND' | 'OR';
27209
+ conditions: {
27210
+ field: string;
27211
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
27212
+ value?: unknown | undefined;
27213
+ }[];
27214
+ })[];
27215
+ })[];
27216
+ } | undefined;
27217
+ }[]) | undefined;
27218
+ /** Input processor graph — static or conditional */
27219
+ inputProcessors?: ({
27220
+ /** Ordered list of processor graph entries */
27221
+ steps: ({
27222
+ type: 'step';
27223
+ step: {
27224
+ /** Unique ID for this step within the graph */
27225
+ id: string;
27226
+ /** ProcessorProvider ID that creates this processor */
27227
+ providerId: string;
27228
+ /** Configuration matching the provider configSchema */
27229
+ config: {
27230
+ [key: string]: unknown;
27231
+ };
27232
+ /** Which processor phases to enable */
27233
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep')[];
27234
+ };
27235
+ } | {
27236
+ type: 'parallel';
27237
+ branches: ({
27238
+ type: 'step';
27239
+ step: {
27240
+ /** Unique ID for this step within the graph */
27241
+ id: string;
27242
+ /** ProcessorProvider ID that creates this processor */
27243
+ providerId: string;
27244
+ /** Configuration matching the provider configSchema */
27245
+ config: {
27246
+ [key: string]: unknown;
27247
+ };
27248
+ /** Which processor phases to enable */
27249
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep')[];
27250
+ };
27251
+ } | {
27252
+ type: 'parallel';
27253
+ branches: {
27254
+ type: 'step';
27255
+ step: {
27256
+ /** Unique ID for this step within the graph */
27257
+ id: string;
27258
+ /** ProcessorProvider ID that creates this processor */
27259
+ providerId: string;
27260
+ /** Configuration matching the provider configSchema */
27261
+ config: {
27262
+ [key: string]: unknown;
27263
+ };
27264
+ /** Which processor phases to enable */
27265
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep')[];
27266
+ };
27267
+ }[][];
27268
+ } | {
27269
+ type: 'conditional';
27270
+ conditions: {
27271
+ steps: {
27272
+ type: 'step';
27273
+ step: {
27274
+ /** Unique ID for this step within the graph */
27275
+ id: string;
27276
+ /** ProcessorProvider ID that creates this processor */
27277
+ providerId: string;
27278
+ /** Configuration matching the provider configSchema */
27279
+ config: {
27280
+ [key: string]: unknown;
27281
+ };
27282
+ /** Which processor phases to enable */
27283
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep')[];
27284
+ };
27285
+ }[];
27286
+ rules?: {
27287
+ operator: 'AND' | 'OR';
27288
+ conditions: ({
27289
+ field: string;
27290
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
27291
+ value?: unknown | undefined;
27292
+ } | {
27293
+ operator: 'AND' | 'OR';
27294
+ conditions: ({
27295
+ field: string;
27296
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
27297
+ value?: unknown | undefined;
27298
+ } | {
27299
+ operator: 'AND' | 'OR';
27300
+ conditions: {
27301
+ field: string;
27302
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
27303
+ value?: unknown | undefined;
27304
+ }[];
27305
+ })[];
27306
+ })[];
27307
+ } | undefined;
27308
+ }[];
27309
+ })[][];
27310
+ } | {
27311
+ type: 'conditional';
27312
+ conditions: {
27313
+ steps: ({
27314
+ type: 'step';
27315
+ step: {
27316
+ /** Unique ID for this step within the graph */
27317
+ id: string;
27318
+ /** ProcessorProvider ID that creates this processor */
27319
+ providerId: string;
27320
+ /** Configuration matching the provider configSchema */
27321
+ config: {
27322
+ [key: string]: unknown;
27323
+ };
27324
+ /** Which processor phases to enable */
27325
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep')[];
27326
+ };
27327
+ } | {
27328
+ type: 'parallel';
27329
+ branches: {
27330
+ type: 'step';
27331
+ step: {
27332
+ /** Unique ID for this step within the graph */
27333
+ id: string;
27334
+ /** ProcessorProvider ID that creates this processor */
27335
+ providerId: string;
27336
+ /** Configuration matching the provider configSchema */
27337
+ config: {
27338
+ [key: string]: unknown;
27339
+ };
27340
+ /** Which processor phases to enable */
27341
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep')[];
27342
+ };
27343
+ }[][];
27344
+ } | {
27345
+ type: 'conditional';
27346
+ conditions: {
27347
+ steps: {
27348
+ type: 'step';
27349
+ step: {
27350
+ /** Unique ID for this step within the graph */
27351
+ id: string;
27352
+ /** ProcessorProvider ID that creates this processor */
27353
+ providerId: string;
27354
+ /** Configuration matching the provider configSchema */
27355
+ config: {
27356
+ [key: string]: unknown;
27357
+ };
27358
+ /** Which processor phases to enable */
27359
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep')[];
27360
+ };
27361
+ }[];
27362
+ rules?: {
27363
+ operator: 'AND' | 'OR';
27364
+ conditions: ({
27365
+ field: string;
27366
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
27367
+ value?: unknown | undefined;
27368
+ } | {
27369
+ operator: 'AND' | 'OR';
27370
+ conditions: ({
27371
+ field: string;
27372
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
27373
+ value?: unknown | undefined;
27374
+ } | {
27375
+ operator: 'AND' | 'OR';
27376
+ conditions: {
27377
+ field: string;
27378
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
27379
+ value?: unknown | undefined;
27380
+ }[];
27381
+ })[];
27382
+ })[];
27383
+ } | undefined;
27384
+ }[];
27385
+ })[];
27386
+ rules?: {
27387
+ operator: 'AND' | 'OR';
27388
+ conditions: ({
27389
+ field: string;
27390
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
27391
+ value?: unknown | undefined;
27392
+ } | {
27393
+ operator: 'AND' | 'OR';
27394
+ conditions: ({
27395
+ field: string;
27396
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
27397
+ value?: unknown | undefined;
27398
+ } | {
27399
+ operator: 'AND' | 'OR';
27400
+ conditions: {
27401
+ field: string;
27402
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
27403
+ value?: unknown | undefined;
27404
+ }[];
27405
+ })[];
27406
+ })[];
27407
+ } | undefined;
27408
+ }[];
27409
+ })[];
27410
+ } | {
27411
+ value: {
27412
+ /** Ordered list of processor graph entries */
27413
+ steps: ({
27414
+ type: 'step';
27415
+ step: {
27416
+ /** Unique ID for this step within the graph */
27417
+ id: string;
27418
+ /** ProcessorProvider ID that creates this processor */
27419
+ providerId: string;
27420
+ /** Configuration matching the provider configSchema */
27421
+ config: {
27422
+ [key: string]: unknown;
27423
+ };
27424
+ /** Which processor phases to enable */
27425
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep')[];
27426
+ };
27427
+ } | {
27428
+ type: 'parallel';
27429
+ branches: ({
27430
+ type: 'step';
27431
+ step: {
27432
+ /** Unique ID for this step within the graph */
27433
+ id: string;
27434
+ /** ProcessorProvider ID that creates this processor */
27435
+ providerId: string;
27436
+ /** Configuration matching the provider configSchema */
27437
+ config: {
27438
+ [key: string]: unknown;
27439
+ };
27440
+ /** Which processor phases to enable */
27441
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep')[];
27442
+ };
27443
+ } | {
27444
+ type: 'parallel';
27445
+ branches: {
27446
+ type: 'step';
27447
+ step: {
27448
+ /** Unique ID for this step within the graph */
27449
+ id: string;
27450
+ /** ProcessorProvider ID that creates this processor */
27451
+ providerId: string;
27452
+ /** Configuration matching the provider configSchema */
27453
+ config: {
27454
+ [key: string]: unknown;
27455
+ };
27456
+ /** Which processor phases to enable */
27457
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep')[];
27458
+ };
27459
+ }[][];
27460
+ } | {
27461
+ type: 'conditional';
27462
+ conditions: {
27463
+ steps: {
27464
+ type: 'step';
27465
+ step: {
27466
+ /** Unique ID for this step within the graph */
27467
+ id: string;
27468
+ /** ProcessorProvider ID that creates this processor */
27469
+ providerId: string;
27470
+ /** Configuration matching the provider configSchema */
27471
+ config: {
27472
+ [key: string]: unknown;
27473
+ };
27474
+ /** Which processor phases to enable */
27475
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep')[];
27476
+ };
27477
+ }[];
27478
+ rules?: {
27479
+ operator: 'AND' | 'OR';
27480
+ conditions: ({
27481
+ field: string;
27482
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
27483
+ value?: unknown | undefined;
27484
+ } | {
27485
+ operator: 'AND' | 'OR';
27486
+ conditions: ({
27487
+ field: string;
27488
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
27489
+ value?: unknown | undefined;
27490
+ } | {
27491
+ operator: 'AND' | 'OR';
27492
+ conditions: {
27493
+ field: string;
27494
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
27495
+ value?: unknown | undefined;
27496
+ }[];
27497
+ })[];
27498
+ })[];
27499
+ } | undefined;
27500
+ }[];
27501
+ })[][];
27502
+ } | {
27503
+ type: 'conditional';
27504
+ conditions: {
27505
+ steps: ({
27506
+ type: 'step';
27507
+ step: {
27508
+ /** Unique ID for this step within the graph */
27509
+ id: string;
27510
+ /** ProcessorProvider ID that creates this processor */
27511
+ providerId: string;
27512
+ /** Configuration matching the provider configSchema */
27513
+ config: {
27514
+ [key: string]: unknown;
27515
+ };
27516
+ /** Which processor phases to enable */
27517
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep')[];
27518
+ };
27519
+ } | {
27520
+ type: 'parallel';
27521
+ branches: {
27522
+ type: 'step';
27523
+ step: {
27524
+ /** Unique ID for this step within the graph */
27525
+ id: string;
27526
+ /** ProcessorProvider ID that creates this processor */
27527
+ providerId: string;
27528
+ /** Configuration matching the provider configSchema */
27529
+ config: {
27530
+ [key: string]: unknown;
27531
+ };
27532
+ /** Which processor phases to enable */
27533
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep')[];
27534
+ };
27535
+ }[][];
27536
+ } | {
27537
+ type: 'conditional';
27538
+ conditions: {
27539
+ steps: {
27540
+ type: 'step';
27541
+ step: {
27542
+ /** Unique ID for this step within the graph */
27543
+ id: string;
27544
+ /** ProcessorProvider ID that creates this processor */
27545
+ providerId: string;
27546
+ /** Configuration matching the provider configSchema */
27547
+ config: {
27548
+ [key: string]: unknown;
27549
+ };
27550
+ /** Which processor phases to enable */
27551
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep')[];
27552
+ };
27553
+ }[];
27554
+ rules?: {
27555
+ operator: 'AND' | 'OR';
27556
+ conditions: ({
27557
+ field: string;
27558
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
27559
+ value?: unknown | undefined;
27560
+ } | {
27561
+ operator: 'AND' | 'OR';
27562
+ conditions: ({
27563
+ field: string;
27564
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
27565
+ value?: unknown | undefined;
27566
+ } | {
27567
+ operator: 'AND' | 'OR';
27568
+ conditions: {
27569
+ field: string;
27570
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
27571
+ value?: unknown | undefined;
27572
+ }[];
27573
+ })[];
27574
+ })[];
27575
+ } | undefined;
27576
+ }[];
27577
+ })[];
27578
+ rules?: {
27579
+ operator: 'AND' | 'OR';
27580
+ conditions: ({
27581
+ field: string;
27582
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
27583
+ value?: unknown | undefined;
27584
+ } | {
27585
+ operator: 'AND' | 'OR';
27586
+ conditions: ({
27587
+ field: string;
27588
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
27589
+ value?: unknown | undefined;
27590
+ } | {
27591
+ operator: 'AND' | 'OR';
27592
+ conditions: {
27593
+ field: string;
27594
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
27595
+ value?: unknown | undefined;
27596
+ }[];
27597
+ })[];
27598
+ })[];
27599
+ } | undefined;
27600
+ }[];
27601
+ })[];
27602
+ };
27603
+ rules?: {
27604
+ operator: 'AND' | 'OR';
27605
+ conditions: ({
27606
+ field: string;
27607
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
27608
+ value?: unknown | undefined;
27609
+ } | {
27610
+ operator: 'AND' | 'OR';
27611
+ conditions: ({
27612
+ field: string;
27613
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
27614
+ value?: unknown | undefined;
27615
+ } | {
27616
+ operator: 'AND' | 'OR';
27617
+ conditions: {
27618
+ field: string;
27619
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
27620
+ value?: unknown | undefined;
27621
+ }[];
27622
+ })[];
27623
+ })[];
27624
+ } | undefined;
27625
+ }[]) | undefined;
27626
+ /** Output processor graph — static or conditional */
27627
+ outputProcessors?: ({
27628
+ /** Ordered list of processor graph entries */
27629
+ steps: ({
27630
+ type: 'step';
27631
+ step: {
27632
+ /** Unique ID for this step within the graph */
27633
+ id: string;
27634
+ /** ProcessorProvider ID that creates this processor */
27635
+ providerId: string;
27636
+ /** Configuration matching the provider configSchema */
27637
+ config: {
27638
+ [key: string]: unknown;
27639
+ };
27640
+ /** Which processor phases to enable */
27641
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep')[];
27642
+ };
27643
+ } | {
27644
+ type: 'parallel';
27645
+ branches: ({
27646
+ type: 'step';
27647
+ step: {
27648
+ /** Unique ID for this step within the graph */
27649
+ id: string;
27650
+ /** ProcessorProvider ID that creates this processor */
27651
+ providerId: string;
27652
+ /** Configuration matching the provider configSchema */
27653
+ config: {
27654
+ [key: string]: unknown;
27655
+ };
27656
+ /** Which processor phases to enable */
27657
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep')[];
27658
+ };
27659
+ } | {
27660
+ type: 'parallel';
27661
+ branches: {
27662
+ type: 'step';
27663
+ step: {
27664
+ /** Unique ID for this step within the graph */
27665
+ id: string;
27666
+ /** ProcessorProvider ID that creates this processor */
27667
+ providerId: string;
27668
+ /** Configuration matching the provider configSchema */
27669
+ config: {
27670
+ [key: string]: unknown;
27671
+ };
27672
+ /** Which processor phases to enable */
27673
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep')[];
27674
+ };
27675
+ }[][];
27676
+ } | {
27677
+ type: 'conditional';
27678
+ conditions: {
27679
+ steps: {
27680
+ type: 'step';
27681
+ step: {
27682
+ /** Unique ID for this step within the graph */
27683
+ id: string;
27684
+ /** ProcessorProvider ID that creates this processor */
27685
+ providerId: string;
27686
+ /** Configuration matching the provider configSchema */
27687
+ config: {
27688
+ [key: string]: unknown;
27689
+ };
27690
+ /** Which processor phases to enable */
27691
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep')[];
27692
+ };
27693
+ }[];
27694
+ rules?: {
27695
+ operator: 'AND' | 'OR';
27696
+ conditions: ({
27697
+ field: string;
27698
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
27699
+ value?: unknown | undefined;
27700
+ } | {
27701
+ operator: 'AND' | 'OR';
27702
+ conditions: ({
27703
+ field: string;
27704
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
27705
+ value?: unknown | undefined;
27706
+ } | {
27707
+ operator: 'AND' | 'OR';
27708
+ conditions: {
27709
+ field: string;
27710
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
27711
+ value?: unknown | undefined;
27712
+ }[];
27713
+ })[];
27714
+ })[];
27715
+ } | undefined;
27716
+ }[];
27717
+ })[][];
27718
+ } | {
27719
+ type: 'conditional';
27720
+ conditions: {
27721
+ steps: ({
27722
+ type: 'step';
27723
+ step: {
27724
+ /** Unique ID for this step within the graph */
27725
+ id: string;
27726
+ /** ProcessorProvider ID that creates this processor */
27727
+ providerId: string;
27728
+ /** Configuration matching the provider configSchema */
27729
+ config: {
27730
+ [key: string]: unknown;
27731
+ };
27732
+ /** Which processor phases to enable */
27733
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep')[];
27734
+ };
27735
+ } | {
27736
+ type: 'parallel';
27737
+ branches: {
27738
+ type: 'step';
27739
+ step: {
27740
+ /** Unique ID for this step within the graph */
27741
+ id: string;
27742
+ /** ProcessorProvider ID that creates this processor */
27743
+ providerId: string;
27744
+ /** Configuration matching the provider configSchema */
27745
+ config: {
27746
+ [key: string]: unknown;
27747
+ };
27748
+ /** Which processor phases to enable */
27749
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep')[];
27750
+ };
27751
+ }[][];
27752
+ } | {
27753
+ type: 'conditional';
27754
+ conditions: {
27755
+ steps: {
27756
+ type: 'step';
27757
+ step: {
27758
+ /** Unique ID for this step within the graph */
27759
+ id: string;
27760
+ /** ProcessorProvider ID that creates this processor */
27761
+ providerId: string;
27762
+ /** Configuration matching the provider configSchema */
27763
+ config: {
27764
+ [key: string]: unknown;
27765
+ };
27766
+ /** Which processor phases to enable */
27767
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep')[];
27768
+ };
27769
+ }[];
27770
+ rules?: {
27771
+ operator: 'AND' | 'OR';
27772
+ conditions: ({
27773
+ field: string;
27774
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
27775
+ value?: unknown | undefined;
27776
+ } | {
27777
+ operator: 'AND' | 'OR';
27778
+ conditions: ({
27779
+ field: string;
27780
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
27781
+ value?: unknown | undefined;
27782
+ } | {
27783
+ operator: 'AND' | 'OR';
27784
+ conditions: {
27785
+ field: string;
27786
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
27787
+ value?: unknown | undefined;
27788
+ }[];
27789
+ })[];
27790
+ })[];
27791
+ } | undefined;
27792
+ }[];
27793
+ })[];
27794
+ rules?: {
27795
+ operator: 'AND' | 'OR';
27796
+ conditions: ({
27797
+ field: string;
27798
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
27799
+ value?: unknown | undefined;
27800
+ } | {
27801
+ operator: 'AND' | 'OR';
27802
+ conditions: ({
27803
+ field: string;
27804
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
27805
+ value?: unknown | undefined;
27806
+ } | {
27807
+ operator: 'AND' | 'OR';
27808
+ conditions: {
27809
+ field: string;
27810
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
27811
+ value?: unknown | undefined;
27812
+ }[];
27813
+ })[];
27814
+ })[];
27815
+ } | undefined;
27816
+ }[];
27817
+ })[];
27818
+ } | {
27819
+ value: {
27820
+ /** Ordered list of processor graph entries */
27821
+ steps: ({
27822
+ type: 'step';
27823
+ step: {
27824
+ /** Unique ID for this step within the graph */
27825
+ id: string;
27826
+ /** ProcessorProvider ID that creates this processor */
27827
+ providerId: string;
27828
+ /** Configuration matching the provider configSchema */
27829
+ config: {
27830
+ [key: string]: unknown;
27831
+ };
27832
+ /** Which processor phases to enable */
27833
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep')[];
27834
+ };
27835
+ } | {
27836
+ type: 'parallel';
27837
+ branches: ({
27838
+ type: 'step';
27839
+ step: {
27840
+ /** Unique ID for this step within the graph */
27841
+ id: string;
27842
+ /** ProcessorProvider ID that creates this processor */
27843
+ providerId: string;
27844
+ /** Configuration matching the provider configSchema */
27845
+ config: {
27846
+ [key: string]: unknown;
27847
+ };
27848
+ /** Which processor phases to enable */
27849
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep')[];
27850
+ };
27851
+ } | {
27852
+ type: 'parallel';
27853
+ branches: {
27854
+ type: 'step';
27855
+ step: {
27856
+ /** Unique ID for this step within the graph */
27857
+ id: string;
27858
+ /** ProcessorProvider ID that creates this processor */
27859
+ providerId: string;
27860
+ /** Configuration matching the provider configSchema */
27861
+ config: {
27862
+ [key: string]: unknown;
27863
+ };
27864
+ /** Which processor phases to enable */
27865
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep')[];
27866
+ };
27867
+ }[][];
27868
+ } | {
27869
+ type: 'conditional';
27870
+ conditions: {
27871
+ steps: {
27872
+ type: 'step';
27873
+ step: {
27874
+ /** Unique ID for this step within the graph */
27875
+ id: string;
27876
+ /** ProcessorProvider ID that creates this processor */
27877
+ providerId: string;
27878
+ /** Configuration matching the provider configSchema */
27879
+ config: {
27880
+ [key: string]: unknown;
27881
+ };
27882
+ /** Which processor phases to enable */
27883
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep')[];
27884
+ };
27885
+ }[];
27886
+ rules?: {
27887
+ operator: 'AND' | 'OR';
27888
+ conditions: ({
27889
+ field: string;
27890
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
27891
+ value?: unknown | undefined;
27892
+ } | {
27893
+ operator: 'AND' | 'OR';
27894
+ conditions: ({
27895
+ field: string;
27896
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
27897
+ value?: unknown | undefined;
27898
+ } | {
27899
+ operator: 'AND' | 'OR';
27900
+ conditions: {
27901
+ field: string;
27902
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
27903
+ value?: unknown | undefined;
27904
+ }[];
27905
+ })[];
27906
+ })[];
27907
+ } | undefined;
27908
+ }[];
27909
+ })[][];
27910
+ } | {
27911
+ type: 'conditional';
27912
+ conditions: {
27913
+ steps: ({
27914
+ type: 'step';
27915
+ step: {
27916
+ /** Unique ID for this step within the graph */
27917
+ id: string;
27918
+ /** ProcessorProvider ID that creates this processor */
27919
+ providerId: string;
27920
+ /** Configuration matching the provider configSchema */
27921
+ config: {
27922
+ [key: string]: unknown;
27923
+ };
27924
+ /** Which processor phases to enable */
27925
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep')[];
27926
+ };
27927
+ } | {
27928
+ type: 'parallel';
27929
+ branches: {
27930
+ type: 'step';
27931
+ step: {
27932
+ /** Unique ID for this step within the graph */
27933
+ id: string;
27934
+ /** ProcessorProvider ID that creates this processor */
27935
+ providerId: string;
27936
+ /** Configuration matching the provider configSchema */
27937
+ config: {
27938
+ [key: string]: unknown;
27939
+ };
27940
+ /** Which processor phases to enable */
27941
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep')[];
27942
+ };
27943
+ }[][];
27944
+ } | {
27945
+ type: 'conditional';
27946
+ conditions: {
27947
+ steps: {
27948
+ type: 'step';
27949
+ step: {
27950
+ /** Unique ID for this step within the graph */
27951
+ id: string;
27952
+ /** ProcessorProvider ID that creates this processor */
27953
+ providerId: string;
27954
+ /** Configuration matching the provider configSchema */
27955
+ config: {
27956
+ [key: string]: unknown;
27957
+ };
27958
+ /** Which processor phases to enable */
27959
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep')[];
27960
+ };
27961
+ }[];
27962
+ rules?: {
27963
+ operator: 'AND' | 'OR';
27964
+ conditions: ({
27965
+ field: string;
27966
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
27967
+ value?: unknown | undefined;
27968
+ } | {
27969
+ operator: 'AND' | 'OR';
27970
+ conditions: ({
27971
+ field: string;
27972
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
27973
+ value?: unknown | undefined;
27974
+ } | {
27975
+ operator: 'AND' | 'OR';
27976
+ conditions: {
27977
+ field: string;
27978
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
27979
+ value?: unknown | undefined;
27980
+ }[];
27981
+ })[];
27982
+ })[];
27983
+ } | undefined;
27984
+ }[];
27985
+ })[];
27986
+ rules?: {
27987
+ operator: 'AND' | 'OR';
27988
+ conditions: ({
27989
+ field: string;
27990
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
27991
+ value?: unknown | undefined;
27992
+ } | {
27993
+ operator: 'AND' | 'OR';
27994
+ conditions: ({
27995
+ field: string;
27996
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
27997
+ value?: unknown | undefined;
27998
+ } | {
27999
+ operator: 'AND' | 'OR';
28000
+ conditions: {
28001
+ field: string;
28002
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
28003
+ value?: unknown | undefined;
28004
+ }[];
28005
+ })[];
28006
+ })[];
28007
+ } | undefined;
28008
+ }[];
28009
+ })[];
28010
+ };
28011
+ rules?: {
28012
+ operator: 'AND' | 'OR';
28013
+ conditions: ({
28014
+ field: string;
28015
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
28016
+ value?: unknown | undefined;
28017
+ } | {
28018
+ operator: 'AND' | 'OR';
28019
+ conditions: ({
28020
+ field: string;
28021
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
28022
+ value?: unknown | undefined;
28023
+ } | {
28024
+ operator: 'AND' | 'OR';
28025
+ conditions: {
28026
+ field: string;
28027
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
28028
+ value?: unknown | undefined;
28029
+ }[];
28030
+ })[];
28031
+ })[];
28032
+ } | undefined;
28033
+ }[]) | undefined;
28034
+ /** Memory configuration — static or conditional */
28035
+ memory?: ({
28036
+ /** Vector database identifier or false to disable */
28037
+ vector?: (string | false) | undefined;
28038
+ /** Memory behavior configuration, excluding workingMemory and threads */
28039
+ options?: {
28040
+ readOnly?: boolean | undefined;
28041
+ lastMessages?: (number | false) | undefined;
28042
+ semanticRecall?: (boolean | {
28043
+ /** Number of semantically similar messages to retrieve */
28044
+ topK: number;
28045
+ /** Amount of surrounding context to include with each retrieved message */
28046
+ messageRange: number | {
28047
+ before: number;
28048
+ after: number;
28049
+ };
28050
+ /** Scope for semantic search queries */
28051
+ scope?: ('thread' | 'resource') | undefined;
28052
+ /** Minimum similarity score threshold */
28053
+ threshold?: number | undefined;
28054
+ /** Index name for the vector store */
28055
+ indexName?: string | undefined;
28056
+ }) | undefined;
28057
+ generateTitle?: (boolean | {
28058
+ /** Model ID in format provider/model-name (ModelRouterModelId) */
28059
+ model: string;
28060
+ /** Custom instructions for title generation */
28061
+ instructions?: string | undefined;
28062
+ }) | undefined;
28063
+ } | undefined;
28064
+ /** Embedding model ID in the format "provider/model" (e.g., "openai/text-embedding-3-small") */
28065
+ embedder?: string | undefined;
28066
+ /** Options to pass to the embedder, omitting telemetry */
28067
+ embedderOptions?: {
28068
+ [key: string]: unknown;
28069
+ } | undefined;
28070
+ /** Serialized observational memory configuration */
28071
+ observationalMemory?: (boolean | {
28072
+ /** Model ID for both Observer and Reflector */
28073
+ model?: string | undefined;
28074
+ /** Memory scope */
28075
+ scope?: ('resource' | 'thread') | undefined;
28076
+ /** Share token budget between messages and observations */
28077
+ shareTokenBudget?: boolean | undefined;
28078
+ /** Observation step configuration */
28079
+ observation?: {
28080
+ /** Observer model ID */
28081
+ model?: string | undefined;
28082
+ /** Token threshold that triggers observation */
28083
+ messageTokens?: number | undefined;
28084
+ /** Model settings (temperature, etc.) */
28085
+ modelSettings?: {
28086
+ [key: string]: unknown;
28087
+ } | undefined;
28088
+ /** Provider-specific options */
28089
+ providerOptions?: {
28090
+ [key: string]: {
28091
+ [key: string]: unknown;
28092
+ } | undefined;
28093
+ } | undefined;
28094
+ /** Maximum tokens per batch */
28095
+ maxTokensPerBatch?: number | undefined;
28096
+ /** Async buffering interval or false */
28097
+ bufferTokens?: (number | false) | undefined;
28098
+ /** Ratio of buffered observations to activate */
28099
+ bufferActivation?: number | undefined;
28100
+ /** Token threshold for synchronous blocking */
28101
+ blockAfter?: number | undefined;
28102
+ } | undefined;
28103
+ /** Reflection step configuration */
28104
+ reflection?: {
28105
+ /** Reflector model ID */
28106
+ model?: string | undefined;
28107
+ /** Token threshold that triggers reflection */
28108
+ observationTokens?: number | undefined;
28109
+ /** Model settings (temperature, etc.) */
28110
+ modelSettings?: {
28111
+ [key: string]: unknown;
28112
+ } | undefined;
28113
+ /** Provider-specific options */
28114
+ providerOptions?: {
28115
+ [key: string]: {
28116
+ [key: string]: unknown;
28117
+ } | undefined;
28118
+ } | undefined;
28119
+ /** Token threshold for synchronous blocking */
28120
+ blockAfter?: number | undefined;
28121
+ /** Ratio for async reflection buffering */
28122
+ bufferActivation?: number | undefined;
28123
+ } | undefined;
28124
+ }) | undefined;
28125
+ } | {
28126
+ value: {
28127
+ /** Vector database identifier or false to disable */
28128
+ vector?: (string | false) | undefined;
28129
+ /** Memory behavior configuration, excluding workingMemory and threads */
28130
+ options?: {
28131
+ readOnly?: boolean | undefined;
28132
+ lastMessages?: (number | false) | undefined;
28133
+ semanticRecall?: (boolean | {
28134
+ /** Number of semantically similar messages to retrieve */
28135
+ topK: number;
28136
+ /** Amount of surrounding context to include with each retrieved message */
28137
+ messageRange: number | {
28138
+ before: number;
28139
+ after: number;
28140
+ };
28141
+ /** Scope for semantic search queries */
28142
+ scope?: ('thread' | 'resource') | undefined;
28143
+ /** Minimum similarity score threshold */
28144
+ threshold?: number | undefined;
28145
+ /** Index name for the vector store */
28146
+ indexName?: string | undefined;
28147
+ }) | undefined;
28148
+ generateTitle?: (boolean | {
28149
+ /** Model ID in format provider/model-name (ModelRouterModelId) */
28150
+ model: string;
28151
+ /** Custom instructions for title generation */
28152
+ instructions?: string | undefined;
28153
+ }) | undefined;
28154
+ } | undefined;
28155
+ /** Embedding model ID in the format "provider/model" (e.g., "openai/text-embedding-3-small") */
28156
+ embedder?: string | undefined;
28157
+ /** Options to pass to the embedder, omitting telemetry */
28158
+ embedderOptions?: {
28159
+ [key: string]: unknown;
28160
+ } | undefined;
28161
+ /** Serialized observational memory configuration */
28162
+ observationalMemory?: (boolean | {
28163
+ /** Model ID for both Observer and Reflector */
28164
+ model?: string | undefined;
28165
+ /** Memory scope */
28166
+ scope?: ('resource' | 'thread') | undefined;
28167
+ /** Share token budget between messages and observations */
28168
+ shareTokenBudget?: boolean | undefined;
28169
+ /** Observation step configuration */
28170
+ observation?: {
28171
+ /** Observer model ID */
28172
+ model?: string | undefined;
28173
+ /** Token threshold that triggers observation */
28174
+ messageTokens?: number | undefined;
28175
+ /** Model settings (temperature, etc.) */
28176
+ modelSettings?: {
28177
+ [key: string]: unknown;
28178
+ } | undefined;
28179
+ /** Provider-specific options */
28180
+ providerOptions?: {
28181
+ [key: string]: {
28182
+ [key: string]: unknown;
28183
+ } | undefined;
28184
+ } | undefined;
28185
+ /** Maximum tokens per batch */
28186
+ maxTokensPerBatch?: number | undefined;
28187
+ /** Async buffering interval or false */
28188
+ bufferTokens?: (number | false) | undefined;
28189
+ /** Ratio of buffered observations to activate */
28190
+ bufferActivation?: number | undefined;
28191
+ /** Token threshold for synchronous blocking */
28192
+ blockAfter?: number | undefined;
28193
+ } | undefined;
28194
+ /** Reflection step configuration */
28195
+ reflection?: {
28196
+ /** Reflector model ID */
28197
+ model?: string | undefined;
28198
+ /** Token threshold that triggers reflection */
28199
+ observationTokens?: number | undefined;
28200
+ /** Model settings (temperature, etc.) */
28201
+ modelSettings?: {
28202
+ [key: string]: unknown;
28203
+ } | undefined;
28204
+ /** Provider-specific options */
28205
+ providerOptions?: {
28206
+ [key: string]: {
28207
+ [key: string]: unknown;
28208
+ } | undefined;
28209
+ } | undefined;
28210
+ /** Token threshold for synchronous blocking */
28211
+ blockAfter?: number | undefined;
28212
+ /** Ratio for async reflection buffering */
28213
+ bufferActivation?: number | undefined;
28214
+ } | undefined;
28215
+ }) | undefined;
28216
+ };
28217
+ rules?: {
28218
+ operator: 'AND' | 'OR';
28219
+ conditions: ({
28220
+ field: string;
28221
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
28222
+ value?: unknown | undefined;
28223
+ } | {
28224
+ operator: 'AND' | 'OR';
28225
+ conditions: ({
28226
+ field: string;
28227
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
28228
+ value?: unknown | undefined;
28229
+ } | {
28230
+ operator: 'AND' | 'OR';
28231
+ conditions: {
28232
+ field: string;
28233
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
28234
+ value?: unknown | undefined;
28235
+ }[];
28236
+ })[];
28237
+ })[];
28238
+ } | undefined;
28239
+ }[]) | undefined;
28240
+ /** Scorer keys with optional sampling config — static or conditional */
28241
+ scorers?: ({
28242
+ [key: string]: {
28243
+ description?: string | undefined;
28244
+ sampling?: ({
28245
+ type: 'none';
28246
+ } | {
28247
+ type: 'ratio';
28248
+ rate: number;
28249
+ }) | undefined;
28250
+ rules?: {
28251
+ operator: 'AND' | 'OR';
28252
+ conditions: ({
28253
+ field: string;
28254
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
28255
+ value?: unknown | undefined;
28256
+ } | {
28257
+ operator: 'AND' | 'OR';
28258
+ conditions: ({
28259
+ field: string;
28260
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
28261
+ value?: unknown | undefined;
28262
+ } | {
28263
+ operator: 'AND' | 'OR';
28264
+ conditions: {
28265
+ field: string;
28266
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
28267
+ value?: unknown | undefined;
28268
+ }[];
28269
+ })[];
28270
+ })[];
28271
+ } | undefined;
28272
+ };
28273
+ } | {
28274
+ value: {
28275
+ [key: string]: {
28276
+ description?: string | undefined;
28277
+ sampling?: ({
28278
+ type: 'none';
28279
+ } | {
28280
+ type: 'ratio';
28281
+ rate: number;
28282
+ }) | undefined;
28283
+ rules?: {
28284
+ operator: 'AND' | 'OR';
28285
+ conditions: ({
28286
+ field: string;
28287
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
28288
+ value?: unknown | undefined;
28289
+ } | {
28290
+ operator: 'AND' | 'OR';
28291
+ conditions: ({
28292
+ field: string;
28293
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
28294
+ value?: unknown | undefined;
28295
+ } | {
28296
+ operator: 'AND' | 'OR';
28297
+ conditions: {
28298
+ field: string;
28299
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
28300
+ value?: unknown | undefined;
28301
+ }[];
28302
+ })[];
28303
+ })[];
28304
+ } | undefined;
28305
+ };
28306
+ };
28307
+ rules?: {
28308
+ operator: 'AND' | 'OR';
28309
+ conditions: ({
28310
+ field: string;
28311
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
28312
+ value?: unknown | undefined;
28313
+ } | {
28314
+ operator: 'AND' | 'OR';
28315
+ conditions: ({
28316
+ field: string;
28317
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
28318
+ value?: unknown | undefined;
28319
+ } | {
28320
+ operator: 'AND' | 'OR';
28321
+ conditions: {
28322
+ field: string;
28323
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
28324
+ value?: unknown | undefined;
28325
+ }[];
28326
+ })[];
28327
+ })[];
28328
+ } | undefined;
28329
+ }[]) | undefined;
28330
+ /** Skill IDs mapped to per-skill config — static or conditional */
28331
+ skills?: ({
28332
+ [key: string]: {
28333
+ description?: string | undefined;
28334
+ instructions?: string | undefined;
28335
+ pin?: string | undefined;
28336
+ strategy?: ('latest' | 'live') | undefined;
28337
+ };
28338
+ } | {
28339
+ value: {
28340
+ [key: string]: {
28341
+ description?: string | undefined;
28342
+ instructions?: string | undefined;
28343
+ pin?: string | undefined;
28344
+ strategy?: ('latest' | 'live') | undefined;
28345
+ };
28346
+ };
28347
+ rules?: {
28348
+ operator: 'AND' | 'OR';
28349
+ conditions: ({
28350
+ field: string;
28351
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
28352
+ value?: unknown | undefined;
28353
+ } | {
28354
+ operator: 'AND' | 'OR';
28355
+ conditions: ({
28356
+ field: string;
28357
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
28358
+ value?: unknown | undefined;
28359
+ } | {
28360
+ operator: 'AND' | 'OR';
28361
+ conditions: {
28362
+ field: string;
28363
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
28364
+ value?: unknown | undefined;
28365
+ }[];
28366
+ })[];
28367
+ })[];
28368
+ } | undefined;
28369
+ }[]) | undefined;
28370
+ /** Workspace reference (stored ID or inline config) — static or conditional */
28371
+ workspace?: (({
28372
+ type: 'id';
28373
+ workspaceId: string;
28374
+ } | {
28375
+ type: 'inline';
28376
+ config: {
28377
+ /** Name of the workspace */
28378
+ name: string;
28379
+ /** Description of the workspace */
28380
+ description?: string | undefined;
28381
+ /** Filesystem configuration */
28382
+ filesystem?: {
28383
+ /** Filesystem provider name */
28384
+ provider: string;
28385
+ /** Filesystem provider configuration */
28386
+ config: {
28387
+ [key: string]: unknown;
28388
+ };
28389
+ } | undefined;
28390
+ /** Sandbox configuration */
28391
+ sandbox?: {
28392
+ /** Sandbox provider name */
28393
+ provider: string;
28394
+ /** Sandbox provider configuration */
28395
+ config: {
28396
+ [key: string]: unknown;
28397
+ };
28398
+ } | undefined;
28399
+ /** Mounted filesystems keyed by mount path */
28400
+ mounts?: {
28401
+ [key: string]: {
28402
+ /** Filesystem provider name */
28403
+ provider: string;
28404
+ /** Filesystem provider configuration */
28405
+ config: {
28406
+ [key: string]: unknown;
28407
+ };
28408
+ };
28409
+ } | undefined;
28410
+ /** Search configuration */
28411
+ search?: {
28412
+ /** Vector store provider identifier */
28413
+ vectorProvider?: string | undefined;
28414
+ /** Vector store provider-specific configuration */
28415
+ vectorConfig?: {
28416
+ [key: string]: unknown;
28417
+ } | undefined;
28418
+ /** Embedder provider identifier */
28419
+ embedderProvider?: string | undefined;
28420
+ /** Embedder model name */
28421
+ embedderModel?: string | undefined;
28422
+ /** Embedder provider-specific configuration */
28423
+ embedderConfig?: {
28424
+ [key: string]: unknown;
28425
+ } | undefined;
28426
+ /** BM25 keyword search config */
28427
+ bm25?: (boolean | {
28428
+ k1?: number | undefined;
28429
+ b?: number | undefined;
28430
+ }) | undefined;
28431
+ /** Custom index name for the vector store */
28432
+ searchIndexName?: string | undefined;
28433
+ /** Paths to auto-index on init */
28434
+ autoIndexPaths?: string[] | undefined;
28435
+ } | undefined;
28436
+ /** Array of skill IDs */
28437
+ skills?: string[] | undefined;
28438
+ /** Workspace tool configuration */
28439
+ tools?: {
28440
+ /** Default: whether all tools are enabled */
28441
+ enabled?: boolean | undefined;
28442
+ /** Default: whether all tools require user approval */
28443
+ requireApproval?: boolean | undefined;
28444
+ /** Per-tool overrides keyed by workspace tool name */
28445
+ tools?: {
28446
+ [key: string]: {
28447
+ /** Whether the tool is enabled */
28448
+ enabled?: boolean | undefined;
28449
+ /** Whether the tool requires user approval before execution */
28450
+ requireApproval?: boolean | undefined;
28451
+ /** For write tools: require reading a file before writing to it */
28452
+ requireReadBeforeWrite?: boolean | undefined;
28453
+ };
28454
+ } | undefined;
28455
+ } | undefined;
28456
+ /** Whether to automatically sync the workspace */
28457
+ autoSync?: boolean | undefined;
28458
+ /** Operation timeout in milliseconds */
28459
+ operationTimeout?: number | undefined;
28460
+ };
28461
+ }) | {
28462
+ value: {
28463
+ type: 'id';
28464
+ workspaceId: string;
28465
+ } | {
28466
+ type: 'inline';
28467
+ config: {
28468
+ /** Name of the workspace */
28469
+ name: string;
28470
+ /** Description of the workspace */
28471
+ description?: string | undefined;
28472
+ /** Filesystem configuration */
28473
+ filesystem?: {
28474
+ /** Filesystem provider name */
28475
+ provider: string;
28476
+ /** Filesystem provider configuration */
28477
+ config: {
28478
+ [key: string]: unknown;
28479
+ };
28480
+ } | undefined;
28481
+ /** Sandbox configuration */
28482
+ sandbox?: {
28483
+ /** Sandbox provider name */
28484
+ provider: string;
28485
+ /** Sandbox provider configuration */
28486
+ config: {
28487
+ [key: string]: unknown;
28488
+ };
28489
+ } | undefined;
28490
+ /** Mounted filesystems keyed by mount path */
28491
+ mounts?: {
28492
+ [key: string]: {
28493
+ /** Filesystem provider name */
28494
+ provider: string;
28495
+ /** Filesystem provider configuration */
28496
+ config: {
28497
+ [key: string]: unknown;
28498
+ };
28499
+ };
28500
+ } | undefined;
28501
+ /** Search configuration */
28502
+ search?: {
28503
+ /** Vector store provider identifier */
28504
+ vectorProvider?: string | undefined;
28505
+ /** Vector store provider-specific configuration */
28506
+ vectorConfig?: {
28507
+ [key: string]: unknown;
28508
+ } | undefined;
28509
+ /** Embedder provider identifier */
28510
+ embedderProvider?: string | undefined;
28511
+ /** Embedder model name */
28512
+ embedderModel?: string | undefined;
28513
+ /** Embedder provider-specific configuration */
28514
+ embedderConfig?: {
28515
+ [key: string]: unknown;
28516
+ } | undefined;
28517
+ /** BM25 keyword search config */
28518
+ bm25?: (boolean | {
28519
+ k1?: number | undefined;
28520
+ b?: number | undefined;
28521
+ }) | undefined;
28522
+ /** Custom index name for the vector store */
28523
+ searchIndexName?: string | undefined;
28524
+ /** Paths to auto-index on init */
28525
+ autoIndexPaths?: string[] | undefined;
28526
+ } | undefined;
28527
+ /** Array of skill IDs */
28528
+ skills?: string[] | undefined;
28529
+ /** Workspace tool configuration */
28530
+ tools?: {
28531
+ /** Default: whether all tools are enabled */
28532
+ enabled?: boolean | undefined;
28533
+ /** Default: whether all tools require user approval */
28534
+ requireApproval?: boolean | undefined;
28535
+ /** Per-tool overrides keyed by workspace tool name */
28536
+ tools?: {
28537
+ [key: string]: {
28538
+ /** Whether the tool is enabled */
28539
+ enabled?: boolean | undefined;
28540
+ /** Whether the tool requires user approval before execution */
28541
+ requireApproval?: boolean | undefined;
28542
+ /** For write tools: require reading a file before writing to it */
28543
+ requireReadBeforeWrite?: boolean | undefined;
28544
+ };
28545
+ } | undefined;
28546
+ } | undefined;
28547
+ /** Whether to automatically sync the workspace */
28548
+ autoSync?: boolean | undefined;
28549
+ /** Operation timeout in milliseconds */
28550
+ operationTimeout?: number | undefined;
28551
+ };
28552
+ };
28553
+ rules?: {
28554
+ operator: 'AND' | 'OR';
28555
+ conditions: ({
28556
+ field: string;
28557
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
28558
+ value?: unknown | undefined;
28559
+ } | {
28560
+ operator: 'AND' | 'OR';
28561
+ conditions: ({
28562
+ field: string;
28563
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
28564
+ value?: unknown | undefined;
28565
+ } | {
28566
+ operator: 'AND' | 'OR';
28567
+ conditions: {
28568
+ field: string;
28569
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
28570
+ value?: unknown | undefined;
28571
+ }[];
28572
+ })[];
28573
+ })[];
28574
+ } | undefined;
28575
+ }[]) | undefined;
28576
+ /** Browser configuration — object config, true (apply default), false/null (disable) */
28577
+ browser?: (({
26394
28578
  type: 'inline';
26395
28579
  config: {
26396
28580
  /** Browser provider type (e.g., stagehand, playwright) */
@@ -41169,6 +43353,40 @@ export interface DeleteToolProvidersProviderIdConnectionsConnectionId_RouteContr
41169
43353
  response: DeleteToolProvidersProviderIdConnectionsConnectionId_Response;
41170
43354
  responseType: 'json';
41171
43355
  }
43356
+ export type PatchToolProvidersProviderIdConnectionsConnectionId_PathParams = {
43357
+ /** Unique identifier for the tool provider */
43358
+ providerId: string;
43359
+ /** Adapter-native connection id (e.g. Composio ca_...) */
43360
+ connectionId: string;
43361
+ };
43362
+ export type PatchToolProvidersProviderIdConnectionsConnectionId_Body = {
43363
+ /** New display label for the connection. Pass null (or empty string) to clear the existing label. */
43364
+ label: string | '' | null;
43365
+ };
43366
+ export type PatchToolProvidersProviderIdConnectionsConnectionId_Response = {
43367
+ ok: true;
43368
+ /** The persisted label after the update (null when cleared) */
43369
+ label: string | null;
43370
+ };
43371
+ export type PatchToolProvidersProviderIdConnectionsConnectionId_Request = Simplify<(PatchToolProvidersProviderIdConnectionsConnectionId_PathParams extends never ? {} : {
43372
+ params: PatchToolProvidersProviderIdConnectionsConnectionId_PathParams;
43373
+ }) & (never extends never ? {} : {} extends never ? {
43374
+ query?: never;
43375
+ } : {
43376
+ query: never;
43377
+ }) & (PatchToolProvidersProviderIdConnectionsConnectionId_Body extends never ? {} : {} extends PatchToolProvidersProviderIdConnectionsConnectionId_Body ? {
43378
+ body?: PatchToolProvidersProviderIdConnectionsConnectionId_Body;
43379
+ } : {
43380
+ body: PatchToolProvidersProviderIdConnectionsConnectionId_Body;
43381
+ })>;
43382
+ export interface PatchToolProvidersProviderIdConnectionsConnectionId_RouteContract {
43383
+ pathParams: PatchToolProvidersProviderIdConnectionsConnectionId_PathParams;
43384
+ queryParams: never;
43385
+ body: PatchToolProvidersProviderIdConnectionsConnectionId_Body;
43386
+ request: PatchToolProvidersProviderIdConnectionsConnectionId_Request;
43387
+ response: PatchToolProvidersProviderIdConnectionsConnectionId_Response;
43388
+ responseType: 'json';
43389
+ }
41172
43390
  export type GetToolProvidersProviderIdConnectionsConnectionIdUsage_PathParams = {
41173
43391
  /** Unique identifier for the tool provider */
41174
43392
  providerId: string;
@@ -41300,6 +43518,7 @@ export type GetSystemPackages_Response = {
41300
43518
  }[];
41301
43519
  isDev: boolean;
41302
43520
  cmsEnabled: boolean;
43521
+ editorSource?: ('code' | 'db') | undefined;
41303
43522
  observabilityEnabled: boolean;
41304
43523
  storageType?: string | undefined;
41305
43524
  observabilityStorageType?: string | undefined;
@@ -44922,9 +47141,11 @@ export interface RouteTypes {
44922
47141
  'POST /agents/:agentId/send-message': PostAgentsAgentIdSendMessage_RouteContract;
44923
47142
  'POST /agents/:agentId/queue-message': PostAgentsAgentIdQueueMessage_RouteContract;
44924
47143
  'POST /agents/:agentId/signals': PostAgentsAgentIdSignals_RouteContract;
47144
+ 'POST /agents/:agentId/threads/abort': PostAgentsAgentIdThreadsAbort_RouteContract;
44925
47145
  'POST /agents/:agentId/threads/subscribe': PostAgentsAgentIdThreadsSubscribe_RouteContract;
44926
47146
  'POST /agents/:agentId/tools/:toolId/execute': PostAgentsAgentIdToolsToolIdExecute_RouteContract;
44927
47147
  'POST /agents/:agentId/approve-tool-call': PostAgentsAgentIdApproveToolCall_RouteContract;
47148
+ 'POST /agents/:agentId/send-tool-approval': PostAgentsAgentIdSendToolApproval_RouteContract;
44928
47149
  'POST /agents/:agentId/decline-tool-call': PostAgentsAgentIdDeclineToolCall_RouteContract;
44929
47150
  'POST /agents/:agentId/resume-stream': PostAgentsAgentIdResumeStream_RouteContract;
44930
47151
  'POST /agents/:agentId/approve-tool-call-generate': PostAgentsAgentIdApproveToolCallGenerate_RouteContract;
@@ -45112,6 +47333,7 @@ export interface RouteTypes {
45112
47333
  'POST /mcp/:serverId/messages': PostMcpServerIdMessages_RouteContract;
45113
47334
  'GET /stored/agents': GetStoredAgents_RouteContract;
45114
47335
  'POST /stored/agents/preview-instructions': PostStoredAgentsPreviewInstructions_RouteContract;
47336
+ 'POST /stored/agents/:storedAgentId/export': PostStoredAgentsStoredAgentIdExport_RouteContract;
45115
47337
  'GET /stored/agents/:storedAgentId': GetStoredAgentsStoredAgentId_RouteContract;
45116
47338
  'POST /stored/agents': PostStoredAgents_RouteContract;
45117
47339
  'PATCH /stored/agents/:storedAgentId': PatchStoredAgentsStoredAgentId_RouteContract;
@@ -45184,6 +47406,7 @@ export interface RouteTypes {
45184
47406
  'GET /tool-providers/:providerId/connections': GetToolProvidersProviderIdConnections_RouteContract;
45185
47407
  'GET /tool-providers/:providerId/connection-fields': GetToolProvidersProviderIdConnectionFields_RouteContract;
45186
47408
  'DELETE /tool-providers/:providerId/connections/:connectionId': DeleteToolProvidersProviderIdConnectionsConnectionId_RouteContract;
47409
+ 'PATCH /tool-providers/:providerId/connections/:connectionId': PatchToolProvidersProviderIdConnectionsConnectionId_RouteContract;
45187
47410
  'GET /tool-providers/:providerId/connections/:connectionId/usage': GetToolProvidersProviderIdConnectionsConnectionIdUsage_RouteContract;
45188
47411
  'GET /tool-providers/:providerId/health': GetToolProvidersProviderIdHealth_RouteContract;
45189
47412
  'GET /processor-providers': GetProcessorProviders_RouteContract;
@@ -45385,6 +47608,9 @@ export interface Client {
45385
47608
  '/agents/:agentId/send-message': {
45386
47609
  POST: PostAgentsAgentIdSendMessage_RouteContract;
45387
47610
  };
47611
+ '/agents/:agentId/send-tool-approval': {
47612
+ POST: PostAgentsAgentIdSendToolApproval_RouteContract;
47613
+ };
45388
47614
  '/agents/:agentId/signals': {
45389
47615
  POST: PostAgentsAgentIdSignals_RouteContract;
45390
47616
  };
@@ -45418,6 +47644,9 @@ export interface Client {
45418
47644
  '/agents/:agentId/streamVNext': {
45419
47645
  POST: PostAgentsAgentIdStreamVNext_RouteContract;
45420
47646
  };
47647
+ '/agents/:agentId/threads/abort': {
47648
+ POST: PostAgentsAgentIdThreadsAbort_RouteContract;
47649
+ };
45421
47650
  '/agents/:agentId/threads/subscribe': {
45422
47651
  POST: PostAgentsAgentIdThreadsSubscribe_RouteContract;
45423
47652
  };
@@ -45854,6 +48083,9 @@ export interface Client {
45854
48083
  GET: GetStoredAgentsStoredAgentId_RouteContract;
45855
48084
  PATCH: PatchStoredAgentsStoredAgentId_RouteContract;
45856
48085
  };
48086
+ '/stored/agents/:storedAgentId/export': {
48087
+ POST: PostStoredAgentsStoredAgentIdExport_RouteContract;
48088
+ };
45857
48089
  '/stored/agents/:storedAgentId/favorite': {
45858
48090
  DELETE: DeleteStoredAgentsStoredAgentIdFavorite_RouteContract;
45859
48091
  PUT: PutStoredAgentsStoredAgentIdFavorite_RouteContract;
@@ -45990,6 +48222,7 @@ export interface Client {
45990
48222
  };
45991
48223
  '/tool-providers/:providerId/connections/:connectionId': {
45992
48224
  DELETE: DeleteToolProvidersProviderIdConnectionsConnectionId_RouteContract;
48225
+ PATCH: PatchToolProvidersProviderIdConnectionsConnectionId_RouteContract;
45993
48226
  };
45994
48227
  '/tool-providers/:providerId/connections/:connectionId/usage': {
45995
48228
  GET: GetToolProvidersProviderIdConnectionsConnectionIdUsage_RouteContract;