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

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;
@@ -15926,36 +15940,14 @@ export interface PostStoredAgentsPreviewInstructions_RouteContract {
15926
15940
  response: PostStoredAgentsPreviewInstructions_Response;
15927
15941
  responseType: 'json';
15928
15942
  }
15929
- export type GetStoredAgentsStoredAgentId_PathParams = {
15943
+ export type PostStoredAgentsStoredAgentIdExport_PathParams = {
15930
15944
  /** Unique identifier for the stored agent */
15931
15945
  storedAgentId: string;
15932
15946
  };
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 | ({
15947
+ export type PostStoredAgentsStoredAgentIdExport_Body = {
15948
+ name?: string | undefined;
15949
+ description?: (string | undefined) | undefined;
15950
+ instructions?: (string | ({
15959
15951
  type: 'text';
15960
15952
  content: string;
15961
15953
  } | {
@@ -15986,9 +15978,8 @@ export type GetStoredAgentsStoredAgentId_Response = {
15986
15978
  })[];
15987
15979
  })[];
15988
15980
  } | undefined;
15989
- })[];
15990
- /** Model configuration — static value or array of conditional variants */
15991
- model: {
15981
+ })[]) | undefined;
15982
+ model?: ({
15992
15983
  /** Model provider (e.g., openai, anthropic) */
15993
15984
  provider: string;
15994
15985
  /** Model name (e.g., gpt-4o, claude-3-opus) */
@@ -16024,9 +16015,8 @@ export type GetStoredAgentsStoredAgentId_Response = {
16024
16015
  })[];
16025
16016
  })[];
16026
16017
  } | undefined;
16027
- }[];
16028
- /** Tool keys mapped to per-tool config — static or conditional */
16029
- tools?: ({
16018
+ }[]) | undefined;
16019
+ tools?: (({
16030
16020
  [key: string]: {
16031
16021
  description?: string | undefined;
16032
16022
  rules?: {
@@ -16102,9 +16092,8 @@ export type GetStoredAgentsStoredAgentId_Response = {
16102
16092
  })[];
16103
16093
  })[];
16104
16094
  } | undefined;
16105
- }[]) | undefined;
16106
- /** Default options for generate/stream calls — static or conditional */
16107
- defaultOptions?: ({
16095
+ }[]) | undefined) | undefined;
16096
+ defaultOptions?: (({
16108
16097
  runId?: string | undefined;
16109
16098
  savePerStep?: boolean | undefined;
16110
16099
  maxSteps?: number | undefined;
@@ -16199,9 +16188,8 @@ export type GetStoredAgentsStoredAgentId_Response = {
16199
16188
  })[];
16200
16189
  })[];
16201
16190
  } | undefined;
16202
- }[]) | undefined;
16203
- /** Workflow keys with optional per-workflow config — static or conditional */
16204
- workflows?: ({
16191
+ }[]) | undefined) | undefined;
16192
+ workflows?: (({
16205
16193
  [key: string]: {
16206
16194
  description?: string | undefined;
16207
16195
  rules?: {
@@ -16277,9 +16265,8 @@ export type GetStoredAgentsStoredAgentId_Response = {
16277
16265
  })[];
16278
16266
  })[];
16279
16267
  } | undefined;
16280
- }[]) | undefined;
16281
- /** Agent keys with optional per-agent config — static or conditional */
16282
- agents?: ({
16268
+ }[]) | undefined) | undefined;
16269
+ agents?: (({
16283
16270
  [key: string]: {
16284
16271
  description?: string | undefined;
16285
16272
  rules?: {
@@ -16355,9 +16342,8 @@ export type GetStoredAgentsStoredAgentId_Response = {
16355
16342
  })[];
16356
16343
  })[];
16357
16344
  } | undefined;
16358
- }[]) | undefined;
16359
- /** Map of tool provider IDs to their tool configurations — static or conditional */
16360
- integrationTools?: ({
16345
+ }[]) | undefined) | undefined;
16346
+ integrationTools?: (({
16361
16347
  [key: string]: {
16362
16348
  tools?: {
16363
16349
  [key: string]: {
@@ -16441,9 +16427,8 @@ export type GetStoredAgentsStoredAgentId_Response = {
16441
16427
  })[];
16442
16428
  })[];
16443
16429
  } | undefined;
16444
- }[]) | undefined;
16445
- /** Tool provider connections and per-tool config (provider-agnostic). Coexists with the deprecated `integrationTools` field. */
16446
- toolProviders?: ({
16430
+ }[]) | undefined) | undefined;
16431
+ toolProviders?: (({
16447
16432
  [key: string]: {
16448
16433
  tools: {
16449
16434
  [key: string]: {
@@ -16503,9 +16488,8 @@ export type GetStoredAgentsStoredAgentId_Response = {
16503
16488
  })[];
16504
16489
  })[];
16505
16490
  } | undefined;
16506
- }[]) | undefined;
16507
- /** Map of stored MCP client IDs to their tool configurations — static or conditional */
16508
- mcpClients?: ({
16491
+ }[]) | undefined) | undefined;
16492
+ mcpClients?: (({
16509
16493
  [key: string]: {
16510
16494
  tools?: {
16511
16495
  [key: string]: {
@@ -16589,9 +16573,8 @@ export type GetStoredAgentsStoredAgentId_Response = {
16589
16573
  })[];
16590
16574
  })[];
16591
16575
  } | undefined;
16592
- }[]) | undefined;
16593
- /** Input processor graph — static or conditional */
16594
- inputProcessors?: ({
16576
+ }[]) | undefined) | undefined;
16577
+ inputProcessors?: (({
16595
16578
  /** Ordered list of processor graph entries */
16596
16579
  steps: ({
16597
16580
  type: 'step';
@@ -16997,9 +16980,8 @@ export type GetStoredAgentsStoredAgentId_Response = {
16997
16980
  })[];
16998
16981
  })[];
16999
16982
  } | undefined;
17000
- }[]) | undefined;
17001
- /** Output processor graph — static or conditional */
17002
- outputProcessors?: ({
16983
+ }[]) | undefined) | undefined;
16984
+ outputProcessors?: (({
17003
16985
  /** Ordered list of processor graph entries */
17004
16986
  steps: ({
17005
16987
  type: 'step';
@@ -17405,9 +17387,8 @@ export type GetStoredAgentsStoredAgentId_Response = {
17405
17387
  })[];
17406
17388
  })[];
17407
17389
  } | undefined;
17408
- }[]) | undefined;
17409
- /** Memory configuration — static or conditional */
17410
- memory?: ({
17390
+ }[]) | undefined) | undefined;
17391
+ memory?: ((({
17411
17392
  /** Vector database identifier or false to disable */
17412
17393
  vector?: (string | false) | undefined;
17413
17394
  /** Memory behavior configuration, excluding workingMemory and threads */
@@ -17611,9 +17592,8 @@ export type GetStoredAgentsStoredAgentId_Response = {
17611
17592
  })[];
17612
17593
  })[];
17613
17594
  } | undefined;
17614
- }[]) | undefined;
17615
- /** Scorer keys with optional sampling config — static or conditional */
17616
- scorers?: ({
17595
+ }[]) | null) | undefined) | undefined;
17596
+ scorers?: (({
17617
17597
  [key: string]: {
17618
17598
  description?: string | undefined;
17619
17599
  sampling?: ({
@@ -17701,9 +17681,8 @@ export type GetStoredAgentsStoredAgentId_Response = {
17701
17681
  })[];
17702
17682
  })[];
17703
17683
  } | undefined;
17704
- }[]) | undefined;
17705
- /** Skill IDs mapped to per-skill config — static or conditional */
17706
- skills?: ({
17684
+ }[]) | undefined) | undefined;
17685
+ skills?: (({
17707
17686
  [key: string]: {
17708
17687
  description?: string | undefined;
17709
17688
  instructions?: string | undefined;
@@ -17741,9 +17720,8 @@ export type GetStoredAgentsStoredAgentId_Response = {
17741
17720
  })[];
17742
17721
  })[];
17743
17722
  } | undefined;
17744
- }[]) | undefined;
17745
- /** Workspace reference (stored ID or inline config) — static or conditional */
17746
- workspace?: (({
17723
+ }[]) | undefined) | undefined;
17724
+ workspace?: ((({
17747
17725
  type: 'id';
17748
17726
  workspaceId: string;
17749
17727
  } | {
@@ -17947,9 +17925,8 @@ export type GetStoredAgentsStoredAgentId_Response = {
17947
17925
  })[];
17948
17926
  })[];
17949
17927
  } | undefined;
17950
- }[]) | undefined;
17951
- /** Browser configuration — object config, true (apply default), false/null (disable) */
17952
- browser?: (({
17928
+ }[]) | undefined) | undefined;
17929
+ browser?: ((({
17953
17930
  type: 'inline';
17954
17931
  config: {
17955
17932
  /** Browser provider type (e.g., stagehand, playwright) */
@@ -18033,42 +18010,62 @@ export type GetStoredAgentsStoredAgentId_Response = {
18033
18010
  })[];
18034
18011
  })[];
18035
18012
  } | undefined;
18036
- }[]) | boolean | null) | undefined;
18037
- /** JSON Schema defining valid request context variables */
18038
- requestContextSchema?: {
18013
+ }[]) | boolean | null) | undefined) | undefined;
18014
+ requestContextSchema?: ({
18039
18015
  [key: string]: unknown;
18040
- } | undefined;
18016
+ } | undefined) | undefined;
18041
18017
  };
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;
18018
+ export type PostStoredAgentsStoredAgentIdExport_Response = {
18019
+ agentId: string;
18020
+ fileName: string;
18021
+ content: string;
18022
+ config: {
18023
+ [key: string]: unknown;
18024
+ };
18025
+ };
18026
+ export type PostStoredAgentsStoredAgentIdExport_Request = Simplify<(PostStoredAgentsStoredAgentIdExport_PathParams extends never ? {} : {
18027
+ params: PostStoredAgentsStoredAgentIdExport_PathParams;
18048
18028
  }) & (never extends never ? {} : {} extends never ? {
18049
- body?: never;
18029
+ query?: never;
18050
18030
  } : {
18051
- body: never;
18031
+ query: never;
18032
+ }) & (PostStoredAgentsStoredAgentIdExport_Body extends never ? {} : {} extends PostStoredAgentsStoredAgentIdExport_Body ? {
18033
+ body?: PostStoredAgentsStoredAgentIdExport_Body;
18034
+ } : {
18035
+ body: PostStoredAgentsStoredAgentIdExport_Body;
18052
18036
  })>;
18053
- export interface GetStoredAgentsStoredAgentId_RouteContract {
18054
- pathParams: GetStoredAgentsStoredAgentId_PathParams;
18055
- queryParams: GetStoredAgentsStoredAgentId_QueryParams;
18056
- body: never;
18057
- request: GetStoredAgentsStoredAgentId_Request;
18058
- response: GetStoredAgentsStoredAgentId_Response;
18037
+ export interface PostStoredAgentsStoredAgentIdExport_RouteContract {
18038
+ pathParams: PostStoredAgentsStoredAgentIdExport_PathParams;
18039
+ queryParams: never;
18040
+ body: PostStoredAgentsStoredAgentIdExport_Body;
18041
+ request: PostStoredAgentsStoredAgentIdExport_Request;
18042
+ response: PostStoredAgentsStoredAgentIdExport_Response;
18059
18043
  responseType: 'json';
18060
18044
  }
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 */
18045
+ export type GetStoredAgentsStoredAgentId_PathParams = {
18046
+ /** Unique identifier for the stored agent */
18047
+ storedAgentId: string;
18048
+ };
18049
+ export type GetStoredAgentsStoredAgentId_QueryParams = {
18050
+ /** Which version to resolve: published (active version) or draft (latest version) */
18051
+ status: ('draft' | 'published' | 'archived') | undefined;
18052
+ };
18053
+ export type GetStoredAgentsStoredAgentId_Response = {
18054
+ id: string;
18055
+ /** Agent status: draft or published */
18056
+ status: string;
18057
+ activeVersionId?: string | undefined;
18065
18058
  authorId?: string | undefined;
18066
- /** Additional metadata for the agent */
18067
18059
  metadata?: {
18068
18060
  [key: string]: unknown;
18069
18061
  } | undefined;
18070
- /** Agent visibility: private (owner/admin only) or public (any reader) */
18071
18062
  visibility?: ('private' | 'public') | undefined;
18063
+ /** Number of users who have favorited this agent */
18064
+ favoriteCount?: number | undefined;
18065
+ /** Whether the requesting user has favorited this agent */
18066
+ isFavorited?: boolean | undefined;
18067
+ createdAt: Date;
18068
+ updatedAt: Date;
18072
18069
  /** Name of the agent */
18073
18070
  name: string;
18074
18071
  /** Description of the agent */
@@ -18106,8 +18103,8 @@ export type PostStoredAgents_Body = {
18106
18103
  })[];
18107
18104
  } | undefined;
18108
18105
  })[];
18109
- /** Model configuration — static value or array of conditional variants. When omitted, the builder default model is applied server-side. */
18110
- model?: ({
18106
+ /** Model configuration — static value or array of conditional variants */
18107
+ model: {
18111
18108
  /** Model provider (e.g., openai, anthropic) */
18112
18109
  provider: string;
18113
18110
  /** Model name (e.g., gpt-4o, claude-3-opus) */
@@ -18143,7 +18140,7 @@ export type PostStoredAgents_Body = {
18143
18140
  })[];
18144
18141
  })[];
18145
18142
  } | undefined;
18146
- }[]) | undefined;
18143
+ }[];
18147
18144
  /** Tool keys mapped to per-tool config — static or conditional */
18148
18145
  tools?: ({
18149
18146
  [key: string]: {
@@ -20153,27 +20150,41 @@ export type PostStoredAgents_Body = {
20153
20150
  })[];
20154
20151
  } | undefined;
20155
20152
  }[]) | boolean | null) | undefined;
20156
- /** JSON Schema defining valid request context variables for conditional rule evaluation */
20153
+ /** JSON Schema defining valid request context variables */
20157
20154
  requestContextSchema?: {
20158
20155
  [key: string]: unknown;
20159
20156
  } | undefined;
20160
20157
  };
20161
- export type PostStoredAgents_Response = {
20162
- id: string;
20163
- /** Agent status: draft or published */
20164
- status: string;
20165
- activeVersionId?: string | undefined;
20158
+ export type GetStoredAgentsStoredAgentId_Request = Simplify<(GetStoredAgentsStoredAgentId_PathParams extends never ? {} : {
20159
+ params: GetStoredAgentsStoredAgentId_PathParams;
20160
+ }) & (GetStoredAgentsStoredAgentId_QueryParams extends never ? {} : {} extends GetStoredAgentsStoredAgentId_QueryParams ? {
20161
+ query?: GetStoredAgentsStoredAgentId_QueryParams;
20162
+ } : {
20163
+ query: GetStoredAgentsStoredAgentId_QueryParams;
20164
+ }) & (never extends never ? {} : {} extends never ? {
20165
+ body?: never;
20166
+ } : {
20167
+ body: never;
20168
+ })>;
20169
+ export interface GetStoredAgentsStoredAgentId_RouteContract {
20170
+ pathParams: GetStoredAgentsStoredAgentId_PathParams;
20171
+ queryParams: GetStoredAgentsStoredAgentId_QueryParams;
20172
+ body: never;
20173
+ request: GetStoredAgentsStoredAgentId_Request;
20174
+ response: GetStoredAgentsStoredAgentId_Response;
20175
+ responseType: 'json';
20176
+ }
20177
+ export type PostStoredAgents_Body = {
20178
+ /** Unique identifier for the agent. If not provided, derived from name. */
20179
+ id?: string | undefined;
20180
+ /** Author identifier for multi-tenant filtering */
20166
20181
  authorId?: string | undefined;
20182
+ /** Additional metadata for the agent */
20167
20183
  metadata?: {
20168
20184
  [key: string]: unknown;
20169
20185
  } | undefined;
20186
+ /** Agent visibility: private (owner/admin only) or public (any reader) */
20170
20187
  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
20188
  /** Name of the agent */
20178
20189
  name: string;
20179
20190
  /** Description of the agent */
@@ -20211,8 +20222,8 @@ export type PostStoredAgents_Response = {
20211
20222
  })[];
20212
20223
  } | undefined;
20213
20224
  })[];
20214
- /** Model configuration — static value or array of conditional variants */
20215
- model: {
20225
+ /** Model configuration — static value or array of conditional variants. When omitted, the builder default model is applied server-side. */
20226
+ model?: ({
20216
20227
  /** Model provider (e.g., openai, anthropic) */
20217
20228
  provider: string;
20218
20229
  /** Model name (e.g., gpt-4o, claude-3-opus) */
@@ -20248,7 +20259,7 @@ export type PostStoredAgents_Response = {
20248
20259
  })[];
20249
20260
  })[];
20250
20261
  } | undefined;
20251
- }[];
20262
+ }[]) | undefined;
20252
20263
  /** Tool keys mapped to per-tool config — static or conditional */
20253
20264
  tools?: ({
20254
20265
  [key: string]: {
@@ -22258,43 +22269,33 @@ export type PostStoredAgents_Response = {
22258
22269
  })[];
22259
22270
  } | undefined;
22260
22271
  }[]) | boolean | null) | undefined;
22261
- /** JSON Schema defining valid request context variables */
22272
+ /** JSON Schema defining valid request context variables for conditional rule evaluation */
22262
22273
  requestContextSchema?: {
22263
22274
  [key: string]: unknown;
22264
22275
  } | undefined;
22265
22276
  };
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?: ({
22277
+ export type PostStoredAgents_Response = {
22278
+ id: string;
22279
+ /** Agent status: draft or published */
22280
+ status: string;
22281
+ activeVersionId?: string | undefined;
22282
+ authorId?: string | undefined;
22283
+ metadata?: {
22292
22284
  [key: string]: unknown;
22293
- } | undefined) | undefined;
22294
- visibility?: (('private' | 'public') | undefined) | undefined;
22295
- name?: string | undefined;
22296
- description?: (string | undefined) | undefined;
22297
- instructions?: (string | ({
22285
+ } | undefined;
22286
+ visibility?: ('private' | 'public') | undefined;
22287
+ /** Number of users who have favorited this agent */
22288
+ favoriteCount?: number | undefined;
22289
+ /** Whether the requesting user has favorited this agent */
22290
+ isFavorited?: boolean | undefined;
22291
+ createdAt: Date;
22292
+ updatedAt: Date;
22293
+ /** Name of the agent */
22294
+ name: string;
22295
+ /** Description of the agent */
22296
+ description?: string | undefined;
22297
+ /** System instructions for the agent (string or array of instruction blocks) */
22298
+ instructions: string | ({
22298
22299
  type: 'text';
22299
22300
  content: string;
22300
22301
  } | {
@@ -22325,8 +22326,9 @@ export type PatchStoredAgentsStoredAgentId_Body = {
22325
22326
  })[];
22326
22327
  })[];
22327
22328
  } | undefined;
22328
- })[]) | undefined;
22329
- model?: ({
22329
+ })[];
22330
+ /** Model configuration — static value or array of conditional variants */
22331
+ model: {
22330
22332
  /** Model provider (e.g., openai, anthropic) */
22331
22333
  provider: string;
22332
22334
  /** Model name (e.g., gpt-4o, claude-3-opus) */
@@ -22362,8 +22364,9 @@ export type PatchStoredAgentsStoredAgentId_Body = {
22362
22364
  })[];
22363
22365
  })[];
22364
22366
  } | undefined;
22365
- }[]) | undefined;
22366
- tools?: (({
22367
+ }[];
22368
+ /** Tool keys mapped to per-tool config — static or conditional */
22369
+ tools?: ({
22367
22370
  [key: string]: {
22368
22371
  description?: string | undefined;
22369
22372
  rules?: {
@@ -22439,8 +22442,9 @@ export type PatchStoredAgentsStoredAgentId_Body = {
22439
22442
  })[];
22440
22443
  })[];
22441
22444
  } | undefined;
22442
- }[]) | undefined) | undefined;
22443
- defaultOptions?: (({
22445
+ }[]) | undefined;
22446
+ /** Default options for generate/stream calls — static or conditional */
22447
+ defaultOptions?: ({
22444
22448
  runId?: string | undefined;
22445
22449
  savePerStep?: boolean | undefined;
22446
22450
  maxSteps?: number | undefined;
@@ -22535,8 +22539,9 @@ export type PatchStoredAgentsStoredAgentId_Body = {
22535
22539
  })[];
22536
22540
  })[];
22537
22541
  } | undefined;
22538
- }[]) | undefined) | undefined;
22539
- workflows?: (({
22542
+ }[]) | undefined;
22543
+ /** Workflow keys with optional per-workflow config — static or conditional */
22544
+ workflows?: ({
22540
22545
  [key: string]: {
22541
22546
  description?: string | undefined;
22542
22547
  rules?: {
@@ -22612,8 +22617,9 @@ export type PatchStoredAgentsStoredAgentId_Body = {
22612
22617
  })[];
22613
22618
  })[];
22614
22619
  } | undefined;
22615
- }[]) | undefined) | undefined;
22616
- agents?: (({
22620
+ }[]) | undefined;
22621
+ /** Agent keys with optional per-agent config — static or conditional */
22622
+ agents?: ({
22617
22623
  [key: string]: {
22618
22624
  description?: string | undefined;
22619
22625
  rules?: {
@@ -22689,8 +22695,9 @@ export type PatchStoredAgentsStoredAgentId_Body = {
22689
22695
  })[];
22690
22696
  })[];
22691
22697
  } | undefined;
22692
- }[]) | undefined) | undefined;
22693
- integrationTools?: (({
22698
+ }[]) | undefined;
22699
+ /** Map of tool provider IDs to their tool configurations — static or conditional */
22700
+ integrationTools?: ({
22694
22701
  [key: string]: {
22695
22702
  tools?: {
22696
22703
  [key: string]: {
@@ -22774,8 +22781,9 @@ export type PatchStoredAgentsStoredAgentId_Body = {
22774
22781
  })[];
22775
22782
  })[];
22776
22783
  } | undefined;
22777
- }[]) | undefined) | undefined;
22778
- toolProviders?: (({
22784
+ }[]) | undefined;
22785
+ /** Tool provider connections and per-tool config (provider-agnostic). Coexists with the deprecated `integrationTools` field. */
22786
+ toolProviders?: ({
22779
22787
  [key: string]: {
22780
22788
  tools: {
22781
22789
  [key: string]: {
@@ -22835,8 +22843,9 @@ export type PatchStoredAgentsStoredAgentId_Body = {
22835
22843
  })[];
22836
22844
  })[];
22837
22845
  } | undefined;
22838
- }[]) | undefined) | undefined;
22839
- mcpClients?: (({
22846
+ }[]) | undefined;
22847
+ /** Map of stored MCP client IDs to their tool configurations — static or conditional */
22848
+ mcpClients?: ({
22840
22849
  [key: string]: {
22841
22850
  tools?: {
22842
22851
  [key: string]: {
@@ -22920,8 +22929,9 @@ export type PatchStoredAgentsStoredAgentId_Body = {
22920
22929
  })[];
22921
22930
  })[];
22922
22931
  } | undefined;
22923
- }[]) | undefined) | undefined;
22924
- inputProcessors?: (({
22932
+ }[]) | undefined;
22933
+ /** Input processor graph — static or conditional */
22934
+ inputProcessors?: ({
22925
22935
  /** Ordered list of processor graph entries */
22926
22936
  steps: ({
22927
22937
  type: 'step';
@@ -23327,8 +23337,9 @@ export type PatchStoredAgentsStoredAgentId_Body = {
23327
23337
  })[];
23328
23338
  })[];
23329
23339
  } | undefined;
23330
- }[]) | undefined) | undefined;
23331
- outputProcessors?: (({
23340
+ }[]) | undefined;
23341
+ /** Output processor graph — static or conditional */
23342
+ outputProcessors?: ({
23332
23343
  /** Ordered list of processor graph entries */
23333
23344
  steps: ({
23334
23345
  type: 'step';
@@ -23734,8 +23745,9 @@ export type PatchStoredAgentsStoredAgentId_Body = {
23734
23745
  })[];
23735
23746
  })[];
23736
23747
  } | undefined;
23737
- }[]) | undefined) | undefined;
23738
- memory?: ((({
23748
+ }[]) | undefined;
23749
+ /** Memory configuration — static or conditional */
23750
+ memory?: ({
23739
23751
  /** Vector database identifier or false to disable */
23740
23752
  vector?: (string | false) | undefined;
23741
23753
  /** Memory behavior configuration, excluding workingMemory and threads */
@@ -23939,8 +23951,9 @@ export type PatchStoredAgentsStoredAgentId_Body = {
23939
23951
  })[];
23940
23952
  })[];
23941
23953
  } | undefined;
23942
- }[]) | null) | undefined) | undefined;
23943
- scorers?: (({
23954
+ }[]) | undefined;
23955
+ /** Scorer keys with optional sampling config — static or conditional */
23956
+ scorers?: ({
23944
23957
  [key: string]: {
23945
23958
  description?: string | undefined;
23946
23959
  sampling?: ({
@@ -24028,8 +24041,9 @@ export type PatchStoredAgentsStoredAgentId_Body = {
24028
24041
  })[];
24029
24042
  })[];
24030
24043
  } | undefined;
24031
- }[]) | undefined) | undefined;
24032
- skills?: (({
24044
+ }[]) | undefined;
24045
+ /** Skill IDs mapped to per-skill config — static or conditional */
24046
+ skills?: ({
24033
24047
  [key: string]: {
24034
24048
  description?: string | undefined;
24035
24049
  instructions?: string | undefined;
@@ -24067,8 +24081,9 @@ export type PatchStoredAgentsStoredAgentId_Body = {
24067
24081
  })[];
24068
24082
  })[];
24069
24083
  } | undefined;
24070
- }[]) | undefined) | undefined;
24071
- workspace?: ((({
24084
+ }[]) | undefined;
24085
+ /** Workspace reference (stored ID or inline config) — static or conditional */
24086
+ workspace?: (({
24072
24087
  type: 'id';
24073
24088
  workspaceId: string;
24074
24089
  } | {
@@ -24272,8 +24287,9 @@ export type PatchStoredAgentsStoredAgentId_Body = {
24272
24287
  })[];
24273
24288
  })[];
24274
24289
  } | undefined;
24275
- }[]) | undefined) | undefined;
24276
- browser?: ((({
24290
+ }[]) | undefined;
24291
+ /** Browser configuration — object config, true (apply default), false/null (disable) */
24292
+ browser?: (({
24277
24293
  type: 'inline';
24278
24294
  config: {
24279
24295
  /** Browser provider type (e.g., stagehand, playwright) */
@@ -24357,46 +24373,44 @@ export type PatchStoredAgentsStoredAgentId_Body = {
24357
24373
  })[];
24358
24374
  })[];
24359
24375
  } | 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?: {
24376
+ }[]) | boolean | null) | undefined;
24377
+ /** JSON Schema defining valid request context variables */
24378
+ requestContextSchema?: {
24373
24379
  [key: string]: unknown;
24374
24380
  } | 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?: {
24381
+ };
24382
+ export type PostStoredAgents_Request = Simplify<(never extends never ? {} : {
24383
+ params: never;
24384
+ }) & (never extends never ? {} : {} extends never ? {
24385
+ query?: never;
24386
+ } : {
24387
+ query: never;
24388
+ }) & (PostStoredAgents_Body extends never ? {} : {} extends PostStoredAgents_Body ? {
24389
+ body?: PostStoredAgents_Body;
24390
+ } : {
24391
+ body: PostStoredAgents_Body;
24392
+ })>;
24393
+ export interface PostStoredAgents_RouteContract {
24394
+ pathParams: never;
24395
+ queryParams: never;
24396
+ body: PostStoredAgents_Body;
24397
+ request: PostStoredAgents_Request;
24398
+ response: PostStoredAgents_Response;
24399
+ responseType: 'json';
24400
+ }
24401
+ export type PatchStoredAgentsStoredAgentId_PathParams = {
24402
+ /** Unique identifier for the stored agent */
24403
+ storedAgentId: string;
24404
+ };
24405
+ export type PatchStoredAgentsStoredAgentId_Body = {
24406
+ authorId?: (string | undefined) | undefined;
24407
+ metadata?: ({
24385
24408
  [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 | ({
24409
+ } | undefined) | undefined;
24410
+ visibility?: (('private' | 'public') | undefined) | undefined;
24411
+ name?: string | undefined;
24412
+ description?: (string | undefined) | undefined;
24413
+ instructions?: (string | ({
24400
24414
  type: 'text';
24401
24415
  content: string;
24402
24416
  } | {
@@ -24427,9 +24441,8 @@ export type PatchStoredAgentsStoredAgentId_Response = {
24427
24441
  })[];
24428
24442
  })[];
24429
24443
  } | undefined;
24430
- })[];
24431
- /** Model configuration — static value or array of conditional variants */
24432
- model: {
24444
+ })[]) | undefined;
24445
+ model?: ({
24433
24446
  /** Model provider (e.g., openai, anthropic) */
24434
24447
  provider: string;
24435
24448
  /** Model name (e.g., gpt-4o, claude-3-opus) */
@@ -24465,9 +24478,8 @@ export type PatchStoredAgentsStoredAgentId_Response = {
24465
24478
  })[];
24466
24479
  })[];
24467
24480
  } | undefined;
24468
- }[];
24469
- /** Tool keys mapped to per-tool config — static or conditional */
24470
- tools?: ({
24481
+ }[]) | undefined;
24482
+ tools?: (({
24471
24483
  [key: string]: {
24472
24484
  description?: string | undefined;
24473
24485
  rules?: {
@@ -24543,9 +24555,8 @@ export type PatchStoredAgentsStoredAgentId_Response = {
24543
24555
  })[];
24544
24556
  })[];
24545
24557
  } | undefined;
24546
- }[]) | undefined;
24547
- /** Default options for generate/stream calls — static or conditional */
24548
- defaultOptions?: ({
24558
+ }[]) | undefined) | undefined;
24559
+ defaultOptions?: (({
24549
24560
  runId?: string | undefined;
24550
24561
  savePerStep?: boolean | undefined;
24551
24562
  maxSteps?: number | undefined;
@@ -24640,9 +24651,8 @@ export type PatchStoredAgentsStoredAgentId_Response = {
24640
24651
  })[];
24641
24652
  })[];
24642
24653
  } | undefined;
24643
- }[]) | undefined;
24644
- /** Workflow keys with optional per-workflow config — static or conditional */
24645
- workflows?: ({
24654
+ }[]) | undefined) | undefined;
24655
+ workflows?: (({
24646
24656
  [key: string]: {
24647
24657
  description?: string | undefined;
24648
24658
  rules?: {
@@ -24718,9 +24728,8 @@ export type PatchStoredAgentsStoredAgentId_Response = {
24718
24728
  })[];
24719
24729
  })[];
24720
24730
  } | undefined;
24721
- }[]) | undefined;
24722
- /** Agent keys with optional per-agent config — static or conditional */
24723
- agents?: ({
24731
+ }[]) | undefined) | undefined;
24732
+ agents?: (({
24724
24733
  [key: string]: {
24725
24734
  description?: string | undefined;
24726
24735
  rules?: {
@@ -24796,9 +24805,8 @@ export type PatchStoredAgentsStoredAgentId_Response = {
24796
24805
  })[];
24797
24806
  })[];
24798
24807
  } | undefined;
24799
- }[]) | undefined;
24800
- /** Map of tool provider IDs to their tool configurations — static or conditional */
24801
- integrationTools?: ({
24808
+ }[]) | undefined) | undefined;
24809
+ integrationTools?: (({
24802
24810
  [key: string]: {
24803
24811
  tools?: {
24804
24812
  [key: string]: {
@@ -24882,9 +24890,8 @@ export type PatchStoredAgentsStoredAgentId_Response = {
24882
24890
  })[];
24883
24891
  })[];
24884
24892
  } | undefined;
24885
- }[]) | undefined;
24886
- /** Tool provider connections and per-tool config (provider-agnostic). Coexists with the deprecated `integrationTools` field. */
24887
- toolProviders?: ({
24893
+ }[]) | undefined) | undefined;
24894
+ toolProviders?: (({
24888
24895
  [key: string]: {
24889
24896
  tools: {
24890
24897
  [key: string]: {
@@ -24944,9 +24951,8 @@ export type PatchStoredAgentsStoredAgentId_Response = {
24944
24951
  })[];
24945
24952
  })[];
24946
24953
  } | undefined;
24947
- }[]) | undefined;
24948
- /** Map of stored MCP client IDs to their tool configurations — static or conditional */
24949
- mcpClients?: ({
24954
+ }[]) | undefined) | undefined;
24955
+ mcpClients?: (({
24950
24956
  [key: string]: {
24951
24957
  tools?: {
24952
24958
  [key: string]: {
@@ -25030,9 +25036,8 @@ export type PatchStoredAgentsStoredAgentId_Response = {
25030
25036
  })[];
25031
25037
  })[];
25032
25038
  } | undefined;
25033
- }[]) | undefined;
25034
- /** Input processor graph — static or conditional */
25035
- inputProcessors?: ({
25039
+ }[]) | undefined) | undefined;
25040
+ inputProcessors?: (({
25036
25041
  /** Ordered list of processor graph entries */
25037
25042
  steps: ({
25038
25043
  type: 'step';
@@ -25438,9 +25443,8 @@ export type PatchStoredAgentsStoredAgentId_Response = {
25438
25443
  })[];
25439
25444
  })[];
25440
25445
  } | undefined;
25441
- }[]) | undefined;
25442
- /** Output processor graph — static or conditional */
25443
- outputProcessors?: ({
25446
+ }[]) | undefined) | undefined;
25447
+ outputProcessors?: (({
25444
25448
  /** Ordered list of processor graph entries */
25445
25449
  steps: ({
25446
25450
  type: 'step';
@@ -25846,9 +25850,8 @@ export type PatchStoredAgentsStoredAgentId_Response = {
25846
25850
  })[];
25847
25851
  })[];
25848
25852
  } | undefined;
25849
- }[]) | undefined;
25850
- /** Memory configuration — static or conditional */
25851
- memory?: ({
25853
+ }[]) | undefined) | undefined;
25854
+ memory?: ((({
25852
25855
  /** Vector database identifier or false to disable */
25853
25856
  vector?: (string | false) | undefined;
25854
25857
  /** Memory behavior configuration, excluding workingMemory and threads */
@@ -26052,9 +26055,8 @@ export type PatchStoredAgentsStoredAgentId_Response = {
26052
26055
  })[];
26053
26056
  })[];
26054
26057
  } | undefined;
26055
- }[]) | undefined;
26056
- /** Scorer keys with optional sampling config — static or conditional */
26057
- scorers?: ({
26058
+ }[]) | null) | undefined) | undefined;
26059
+ scorers?: (({
26058
26060
  [key: string]: {
26059
26061
  description?: string | undefined;
26060
26062
  sampling?: ({
@@ -26142,9 +26144,8 @@ export type PatchStoredAgentsStoredAgentId_Response = {
26142
26144
  })[];
26143
26145
  })[];
26144
26146
  } | undefined;
26145
- }[]) | undefined;
26146
- /** Skill IDs mapped to per-skill config — static or conditional */
26147
- skills?: ({
26147
+ }[]) | undefined) | undefined;
26148
+ skills?: (({
26148
26149
  [key: string]: {
26149
26150
  description?: string | undefined;
26150
26151
  instructions?: string | undefined;
@@ -26182,9 +26183,8 @@ export type PatchStoredAgentsStoredAgentId_Response = {
26182
26183
  })[];
26183
26184
  })[];
26184
26185
  } | undefined;
26185
- }[]) | undefined;
26186
- /** Workspace reference (stored ID or inline config) — static or conditional */
26187
- workspace?: (({
26186
+ }[]) | undefined) | undefined;
26187
+ workspace?: ((({
26188
26188
  type: 'id';
26189
26189
  workspaceId: string;
26190
26190
  } | {
@@ -26388,9 +26388,2125 @@ export type PatchStoredAgentsStoredAgentId_Response = {
26388
26388
  })[];
26389
26389
  })[];
26390
26390
  } | undefined;
26391
- }[]) | undefined;
26392
- /** Browser configuration — object config, true (apply default), false/null (disable) */
26393
- browser?: (({
26391
+ }[]) | undefined) | undefined;
26392
+ browser?: ((({
26393
+ type: 'inline';
26394
+ config: {
26395
+ /** Browser provider type (e.g., stagehand, playwright) */
26396
+ provider: string;
26397
+ /** Run browser in headless mode (default: true) */
26398
+ headless?: boolean | undefined;
26399
+ /** Browser viewport dimensions */
26400
+ viewport?: {
26401
+ /** Viewport width in pixels */
26402
+ width: number;
26403
+ /** Viewport height in pixels */
26404
+ height: number;
26405
+ } | undefined;
26406
+ /** Default timeout in milliseconds (default: 10000) */
26407
+ timeout?: number | undefined;
26408
+ /** Screencast options for streaming browser frames */
26409
+ screencast?: {
26410
+ /** Image format (default: jpeg) */
26411
+ format?: ('jpeg' | 'png') | undefined;
26412
+ /** JPEG quality 0-100 (default: 80) */
26413
+ quality?: number | undefined;
26414
+ /** Max width in pixels (default: 1280) */
26415
+ maxWidth?: number | undefined;
26416
+ /** Max height in pixels (default: 720) */
26417
+ maxHeight?: number | undefined;
26418
+ /** Capture every Nth frame (default: 1) */
26419
+ everyNthFrame?: number | undefined;
26420
+ } | undefined;
26421
+ };
26422
+ } | {
26423
+ value: {
26424
+ type: 'inline';
26425
+ config: {
26426
+ /** Browser provider type (e.g., stagehand, playwright) */
26427
+ provider: string;
26428
+ /** Run browser in headless mode (default: true) */
26429
+ headless?: boolean | undefined;
26430
+ /** Browser viewport dimensions */
26431
+ viewport?: {
26432
+ /** Viewport width in pixels */
26433
+ width: number;
26434
+ /** Viewport height in pixels */
26435
+ height: number;
26436
+ } | undefined;
26437
+ /** Default timeout in milliseconds (default: 10000) */
26438
+ timeout?: number | undefined;
26439
+ /** Screencast options for streaming browser frames */
26440
+ screencast?: {
26441
+ /** Image format (default: jpeg) */
26442
+ format?: ('jpeg' | 'png') | undefined;
26443
+ /** JPEG quality 0-100 (default: 80) */
26444
+ quality?: number | undefined;
26445
+ /** Max width in pixels (default: 1280) */
26446
+ maxWidth?: number | undefined;
26447
+ /** Max height in pixels (default: 720) */
26448
+ maxHeight?: number | undefined;
26449
+ /** Capture every Nth frame (default: 1) */
26450
+ everyNthFrame?: number | undefined;
26451
+ } | undefined;
26452
+ };
26453
+ };
26454
+ rules?: {
26455
+ operator: 'AND' | 'OR';
26456
+ conditions: ({
26457
+ field: string;
26458
+ 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';
26459
+ value?: unknown | undefined;
26460
+ } | {
26461
+ operator: 'AND' | 'OR';
26462
+ conditions: ({
26463
+ field: string;
26464
+ 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';
26465
+ value?: unknown | undefined;
26466
+ } | {
26467
+ operator: 'AND' | 'OR';
26468
+ conditions: {
26469
+ field: string;
26470
+ 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';
26471
+ value?: unknown | undefined;
26472
+ }[];
26473
+ })[];
26474
+ })[];
26475
+ } | undefined;
26476
+ }[]) | boolean | null) | undefined) | undefined;
26477
+ requestContextSchema?: ({
26478
+ [key: string]: unknown;
26479
+ } | undefined) | undefined;
26480
+ /** Optional message describing the changes for the auto-created version */
26481
+ changeMessage?: string | undefined;
26482
+ };
26483
+ export type PatchStoredAgentsStoredAgentId_Response = {
26484
+ id: string;
26485
+ status: string;
26486
+ activeVersionId?: string | undefined;
26487
+ authorId?: string | undefined;
26488
+ metadata?: {
26489
+ [key: string]: unknown;
26490
+ } | undefined;
26491
+ visibility?: ('private' | 'public') | undefined;
26492
+ createdAt: Date;
26493
+ updatedAt: Date;
26494
+ } | {
26495
+ id: string;
26496
+ /** Agent status: draft or published */
26497
+ status: string;
26498
+ activeVersionId?: string | undefined;
26499
+ authorId?: string | undefined;
26500
+ metadata?: {
26501
+ [key: string]: unknown;
26502
+ } | undefined;
26503
+ visibility?: ('private' | 'public') | undefined;
26504
+ /** Number of users who have favorited this agent */
26505
+ favoriteCount?: number | undefined;
26506
+ /** Whether the requesting user has favorited this agent */
26507
+ isFavorited?: boolean | undefined;
26508
+ createdAt: Date;
26509
+ updatedAt: Date;
26510
+ /** Name of the agent */
26511
+ name: string;
26512
+ /** Description of the agent */
26513
+ description?: string | undefined;
26514
+ /** System instructions for the agent (string or array of instruction blocks) */
26515
+ instructions: string | ({
26516
+ type: 'text';
26517
+ content: string;
26518
+ } | {
26519
+ type: 'prompt_block_ref';
26520
+ id: string;
26521
+ } | {
26522
+ type: 'prompt_block';
26523
+ content: string;
26524
+ rules?: {
26525
+ operator: 'AND' | 'OR';
26526
+ conditions: ({
26527
+ field: string;
26528
+ 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';
26529
+ value?: unknown | undefined;
26530
+ } | {
26531
+ operator: 'AND' | 'OR';
26532
+ conditions: ({
26533
+ field: string;
26534
+ 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';
26535
+ value?: unknown | undefined;
26536
+ } | {
26537
+ operator: 'AND' | 'OR';
26538
+ conditions: {
26539
+ field: string;
26540
+ 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';
26541
+ value?: unknown | undefined;
26542
+ }[];
26543
+ })[];
26544
+ })[];
26545
+ } | undefined;
26546
+ })[];
26547
+ /** Model configuration — static value or array of conditional variants */
26548
+ model: {
26549
+ /** Model provider (e.g., openai, anthropic) */
26550
+ provider: string;
26551
+ /** Model name (e.g., gpt-4o, claude-3-opus) */
26552
+ name: string;
26553
+ [x: string]: unknown;
26554
+ } | {
26555
+ value: {
26556
+ /** Model provider (e.g., openai, anthropic) */
26557
+ provider: string;
26558
+ /** Model name (e.g., gpt-4o, claude-3-opus) */
26559
+ name: string;
26560
+ [x: string]: unknown;
26561
+ };
26562
+ rules?: {
26563
+ operator: 'AND' | 'OR';
26564
+ conditions: ({
26565
+ field: string;
26566
+ 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';
26567
+ value?: unknown | undefined;
26568
+ } | {
26569
+ operator: 'AND' | 'OR';
26570
+ conditions: ({
26571
+ field: string;
26572
+ 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';
26573
+ value?: unknown | undefined;
26574
+ } | {
26575
+ operator: 'AND' | 'OR';
26576
+ conditions: {
26577
+ field: string;
26578
+ 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';
26579
+ value?: unknown | undefined;
26580
+ }[];
26581
+ })[];
26582
+ })[];
26583
+ } | undefined;
26584
+ }[];
26585
+ /** Tool keys mapped to per-tool config — static or conditional */
26586
+ tools?: ({
26587
+ [key: string]: {
26588
+ description?: string | undefined;
26589
+ rules?: {
26590
+ operator: 'AND' | 'OR';
26591
+ conditions: ({
26592
+ field: string;
26593
+ 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';
26594
+ value?: unknown | undefined;
26595
+ } | {
26596
+ operator: 'AND' | 'OR';
26597
+ conditions: ({
26598
+ field: string;
26599
+ 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';
26600
+ value?: unknown | undefined;
26601
+ } | {
26602
+ operator: 'AND' | 'OR';
26603
+ conditions: {
26604
+ field: string;
26605
+ 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';
26606
+ value?: unknown | undefined;
26607
+ }[];
26608
+ })[];
26609
+ })[];
26610
+ } | undefined;
26611
+ };
26612
+ } | {
26613
+ value: {
26614
+ [key: string]: {
26615
+ description?: string | undefined;
26616
+ rules?: {
26617
+ operator: 'AND' | 'OR';
26618
+ conditions: ({
26619
+ field: string;
26620
+ 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';
26621
+ value?: unknown | undefined;
26622
+ } | {
26623
+ operator: 'AND' | 'OR';
26624
+ conditions: ({
26625
+ field: string;
26626
+ 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';
26627
+ value?: unknown | undefined;
26628
+ } | {
26629
+ operator: 'AND' | 'OR';
26630
+ conditions: {
26631
+ field: string;
26632
+ 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';
26633
+ value?: unknown | undefined;
26634
+ }[];
26635
+ })[];
26636
+ })[];
26637
+ } | undefined;
26638
+ };
26639
+ };
26640
+ rules?: {
26641
+ operator: 'AND' | 'OR';
26642
+ conditions: ({
26643
+ field: string;
26644
+ 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';
26645
+ value?: unknown | undefined;
26646
+ } | {
26647
+ operator: 'AND' | 'OR';
26648
+ conditions: ({
26649
+ field: string;
26650
+ 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';
26651
+ value?: unknown | undefined;
26652
+ } | {
26653
+ operator: 'AND' | 'OR';
26654
+ conditions: {
26655
+ field: string;
26656
+ 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';
26657
+ value?: unknown | undefined;
26658
+ }[];
26659
+ })[];
26660
+ })[];
26661
+ } | undefined;
26662
+ }[]) | undefined;
26663
+ /** Default options for generate/stream calls — static or conditional */
26664
+ defaultOptions?: ({
26665
+ runId?: string | undefined;
26666
+ savePerStep?: boolean | undefined;
26667
+ maxSteps?: number | undefined;
26668
+ activeTools?: string[] | undefined;
26669
+ maxProcessorRetries?: number | undefined;
26670
+ toolChoice?: ('auto' | 'none' | 'required' | {
26671
+ type: 'tool';
26672
+ toolName: string;
26673
+ }) | undefined;
26674
+ modelSettings?: {
26675
+ temperature?: number | undefined;
26676
+ maxTokens?: number | undefined;
26677
+ topP?: number | undefined;
26678
+ topK?: number | undefined;
26679
+ frequencyPenalty?: number | undefined;
26680
+ presencePenalty?: number | undefined;
26681
+ stopSequences?: string[] | undefined;
26682
+ seed?: number | undefined;
26683
+ maxRetries?: number | undefined;
26684
+ } | undefined;
26685
+ returnScorerData?: boolean | undefined;
26686
+ tracingOptions?: {
26687
+ traceName?: string | undefined;
26688
+ attributes?: {
26689
+ [key: string]: unknown;
26690
+ } | undefined;
26691
+ spanId?: string | undefined;
26692
+ traceId?: string | undefined;
26693
+ } | undefined;
26694
+ requireToolApproval?: boolean | undefined;
26695
+ autoResumeSuspendedTools?: boolean | undefined;
26696
+ toolCallConcurrency?: number | undefined;
26697
+ includeRawChunks?: boolean | undefined;
26698
+ [x: string]: unknown;
26699
+ } | {
26700
+ /** Default options for agent execution */
26701
+ value: {
26702
+ runId?: string | undefined;
26703
+ savePerStep?: boolean | undefined;
26704
+ maxSteps?: number | undefined;
26705
+ activeTools?: string[] | undefined;
26706
+ maxProcessorRetries?: number | undefined;
26707
+ toolChoice?: ('auto' | 'none' | 'required' | {
26708
+ type: 'tool';
26709
+ toolName: string;
26710
+ }) | undefined;
26711
+ modelSettings?: {
26712
+ temperature?: number | undefined;
26713
+ maxTokens?: number | undefined;
26714
+ topP?: number | undefined;
26715
+ topK?: number | undefined;
26716
+ frequencyPenalty?: number | undefined;
26717
+ presencePenalty?: number | undefined;
26718
+ stopSequences?: string[] | undefined;
26719
+ seed?: number | undefined;
26720
+ maxRetries?: number | undefined;
26721
+ } | undefined;
26722
+ returnScorerData?: boolean | undefined;
26723
+ tracingOptions?: {
26724
+ traceName?: string | undefined;
26725
+ attributes?: {
26726
+ [key: string]: unknown;
26727
+ } | undefined;
26728
+ spanId?: string | undefined;
26729
+ traceId?: string | undefined;
26730
+ } | undefined;
26731
+ requireToolApproval?: boolean | undefined;
26732
+ autoResumeSuspendedTools?: boolean | undefined;
26733
+ toolCallConcurrency?: number | undefined;
26734
+ includeRawChunks?: boolean | undefined;
26735
+ [x: string]: unknown;
26736
+ };
26737
+ rules?: {
26738
+ operator: 'AND' | 'OR';
26739
+ conditions: ({
26740
+ field: string;
26741
+ 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';
26742
+ value?: unknown | undefined;
26743
+ } | {
26744
+ operator: 'AND' | 'OR';
26745
+ conditions: ({
26746
+ field: string;
26747
+ 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';
26748
+ value?: unknown | undefined;
26749
+ } | {
26750
+ operator: 'AND' | 'OR';
26751
+ conditions: {
26752
+ field: string;
26753
+ 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';
26754
+ value?: unknown | undefined;
26755
+ }[];
26756
+ })[];
26757
+ })[];
26758
+ } | undefined;
26759
+ }[]) | undefined;
26760
+ /** Workflow keys with optional per-workflow config — static or conditional */
26761
+ workflows?: ({
26762
+ [key: string]: {
26763
+ description?: string | undefined;
26764
+ rules?: {
26765
+ operator: 'AND' | 'OR';
26766
+ conditions: ({
26767
+ field: string;
26768
+ 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';
26769
+ value?: unknown | undefined;
26770
+ } | {
26771
+ operator: 'AND' | 'OR';
26772
+ conditions: ({
26773
+ field: string;
26774
+ 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';
26775
+ value?: unknown | undefined;
26776
+ } | {
26777
+ operator: 'AND' | 'OR';
26778
+ conditions: {
26779
+ field: string;
26780
+ 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';
26781
+ value?: unknown | undefined;
26782
+ }[];
26783
+ })[];
26784
+ })[];
26785
+ } | undefined;
26786
+ };
26787
+ } | {
26788
+ value: {
26789
+ [key: string]: {
26790
+ description?: string | undefined;
26791
+ rules?: {
26792
+ operator: 'AND' | 'OR';
26793
+ conditions: ({
26794
+ field: string;
26795
+ 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';
26796
+ value?: unknown | undefined;
26797
+ } | {
26798
+ operator: 'AND' | 'OR';
26799
+ conditions: ({
26800
+ field: string;
26801
+ 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';
26802
+ value?: unknown | undefined;
26803
+ } | {
26804
+ operator: 'AND' | 'OR';
26805
+ conditions: {
26806
+ field: string;
26807
+ 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';
26808
+ value?: unknown | undefined;
26809
+ }[];
26810
+ })[];
26811
+ })[];
26812
+ } | undefined;
26813
+ };
26814
+ };
26815
+ rules?: {
26816
+ operator: 'AND' | 'OR';
26817
+ conditions: ({
26818
+ field: string;
26819
+ 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';
26820
+ value?: unknown | undefined;
26821
+ } | {
26822
+ operator: 'AND' | 'OR';
26823
+ conditions: ({
26824
+ field: string;
26825
+ 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';
26826
+ value?: unknown | undefined;
26827
+ } | {
26828
+ operator: 'AND' | 'OR';
26829
+ conditions: {
26830
+ field: string;
26831
+ 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';
26832
+ value?: unknown | undefined;
26833
+ }[];
26834
+ })[];
26835
+ })[];
26836
+ } | undefined;
26837
+ }[]) | undefined;
26838
+ /** Agent keys with optional per-agent config — static or conditional */
26839
+ agents?: ({
26840
+ [key: string]: {
26841
+ description?: string | undefined;
26842
+ rules?: {
26843
+ operator: 'AND' | 'OR';
26844
+ conditions: ({
26845
+ field: string;
26846
+ 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';
26847
+ value?: unknown | undefined;
26848
+ } | {
26849
+ operator: 'AND' | 'OR';
26850
+ conditions: ({
26851
+ field: string;
26852
+ 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';
26853
+ value?: unknown | undefined;
26854
+ } | {
26855
+ operator: 'AND' | 'OR';
26856
+ conditions: {
26857
+ field: string;
26858
+ 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';
26859
+ value?: unknown | undefined;
26860
+ }[];
26861
+ })[];
26862
+ })[];
26863
+ } | undefined;
26864
+ };
26865
+ } | {
26866
+ value: {
26867
+ [key: string]: {
26868
+ description?: string | undefined;
26869
+ rules?: {
26870
+ operator: 'AND' | 'OR';
26871
+ conditions: ({
26872
+ field: string;
26873
+ 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';
26874
+ value?: unknown | undefined;
26875
+ } | {
26876
+ operator: 'AND' | 'OR';
26877
+ conditions: ({
26878
+ field: string;
26879
+ 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';
26880
+ value?: unknown | undefined;
26881
+ } | {
26882
+ operator: 'AND' | 'OR';
26883
+ conditions: {
26884
+ field: string;
26885
+ 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';
26886
+ value?: unknown | undefined;
26887
+ }[];
26888
+ })[];
26889
+ })[];
26890
+ } | undefined;
26891
+ };
26892
+ };
26893
+ rules?: {
26894
+ operator: 'AND' | 'OR';
26895
+ conditions: ({
26896
+ field: string;
26897
+ 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';
26898
+ value?: unknown | undefined;
26899
+ } | {
26900
+ operator: 'AND' | 'OR';
26901
+ conditions: ({
26902
+ field: string;
26903
+ 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';
26904
+ value?: unknown | undefined;
26905
+ } | {
26906
+ operator: 'AND' | 'OR';
26907
+ conditions: {
26908
+ field: string;
26909
+ 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';
26910
+ value?: unknown | undefined;
26911
+ }[];
26912
+ })[];
26913
+ })[];
26914
+ } | undefined;
26915
+ }[]) | undefined;
26916
+ /** Map of tool provider IDs to their tool configurations — static or conditional */
26917
+ integrationTools?: ({
26918
+ [key: string]: {
26919
+ tools?: {
26920
+ [key: string]: {
26921
+ description?: string | undefined;
26922
+ rules?: {
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
+ operator: 'AND' | 'OR';
26930
+ conditions: ({
26931
+ field: string;
26932
+ 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';
26933
+ value?: unknown | undefined;
26934
+ } | {
26935
+ operator: 'AND' | 'OR';
26936
+ conditions: {
26937
+ field: string;
26938
+ 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';
26939
+ value?: unknown | undefined;
26940
+ }[];
26941
+ })[];
26942
+ })[];
26943
+ } | undefined;
26944
+ };
26945
+ } | undefined;
26946
+ };
26947
+ } | {
26948
+ value: {
26949
+ [key: string]: {
26950
+ tools?: {
26951
+ [key: string]: {
26952
+ description?: string | undefined;
26953
+ rules?: {
26954
+ operator: 'AND' | 'OR';
26955
+ conditions: ({
26956
+ field: string;
26957
+ 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';
26958
+ value?: unknown | undefined;
26959
+ } | {
26960
+ operator: 'AND' | 'OR';
26961
+ conditions: ({
26962
+ field: string;
26963
+ 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';
26964
+ value?: unknown | undefined;
26965
+ } | {
26966
+ operator: 'AND' | 'OR';
26967
+ conditions: {
26968
+ field: string;
26969
+ 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';
26970
+ value?: unknown | undefined;
26971
+ }[];
26972
+ })[];
26973
+ })[];
26974
+ } | undefined;
26975
+ };
26976
+ } | undefined;
26977
+ };
26978
+ };
26979
+ rules?: {
26980
+ operator: 'AND' | 'OR';
26981
+ conditions: ({
26982
+ field: string;
26983
+ 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';
26984
+ value?: unknown | undefined;
26985
+ } | {
26986
+ operator: 'AND' | 'OR';
26987
+ conditions: ({
26988
+ field: string;
26989
+ 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';
26990
+ value?: unknown | undefined;
26991
+ } | {
26992
+ operator: 'AND' | 'OR';
26993
+ conditions: {
26994
+ field: string;
26995
+ 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';
26996
+ value?: unknown | undefined;
26997
+ }[];
26998
+ })[];
26999
+ })[];
27000
+ } | undefined;
27001
+ }[]) | undefined;
27002
+ /** Tool provider connections and per-tool config (provider-agnostic). Coexists with the deprecated `integrationTools` field. */
27003
+ toolProviders?: ({
27004
+ [key: string]: {
27005
+ tools: {
27006
+ [key: string]: {
27007
+ toolkit?: string | undefined;
27008
+ description?: string | undefined;
27009
+ };
27010
+ };
27011
+ connections: {
27012
+ [key: string]: {
27013
+ kind: 'author' | 'invoker' | 'platform';
27014
+ toolkit: string;
27015
+ connectionId: string;
27016
+ label?: string | undefined;
27017
+ scope?: ('shared' | 'per-author' | 'caller-supplied') | undefined;
27018
+ }[];
27019
+ };
27020
+ };
27021
+ } | {
27022
+ value: {
27023
+ [key: string]: {
27024
+ tools: {
27025
+ [key: string]: {
27026
+ toolkit?: string | undefined;
27027
+ description?: string | undefined;
27028
+ };
27029
+ };
27030
+ connections: {
27031
+ [key: string]: {
27032
+ kind: 'author' | 'invoker' | 'platform';
27033
+ toolkit: string;
27034
+ connectionId: string;
27035
+ label?: string | undefined;
27036
+ scope?: ('shared' | 'per-author' | 'caller-supplied') | undefined;
27037
+ }[];
27038
+ };
27039
+ };
27040
+ };
27041
+ rules?: {
27042
+ operator: 'AND' | 'OR';
27043
+ conditions: ({
27044
+ field: string;
27045
+ 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';
27046
+ value?: unknown | undefined;
27047
+ } | {
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
+ })[];
27061
+ })[];
27062
+ } | undefined;
27063
+ }[]) | undefined;
27064
+ /** Map of stored MCP client IDs to their tool configurations — static or conditional */
27065
+ mcpClients?: ({
27066
+ [key: string]: {
27067
+ tools?: {
27068
+ [key: string]: {
27069
+ description?: string | undefined;
27070
+ rules?: {
27071
+ operator: 'AND' | 'OR';
27072
+ conditions: ({
27073
+ field: string;
27074
+ 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';
27075
+ value?: unknown | undefined;
27076
+ } | {
27077
+ operator: 'AND' | 'OR';
27078
+ conditions: ({
27079
+ field: string;
27080
+ 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';
27081
+ value?: unknown | undefined;
27082
+ } | {
27083
+ operator: 'AND' | 'OR';
27084
+ conditions: {
27085
+ field: string;
27086
+ 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';
27087
+ value?: unknown | undefined;
27088
+ }[];
27089
+ })[];
27090
+ })[];
27091
+ } | undefined;
27092
+ };
27093
+ } | undefined;
27094
+ };
27095
+ } | {
27096
+ value: {
27097
+ [key: string]: {
27098
+ tools?: {
27099
+ [key: string]: {
27100
+ description?: string | undefined;
27101
+ rules?: {
27102
+ operator: 'AND' | 'OR';
27103
+ conditions: ({
27104
+ field: string;
27105
+ 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';
27106
+ value?: unknown | undefined;
27107
+ } | {
27108
+ operator: 'AND' | 'OR';
27109
+ conditions: ({
27110
+ field: string;
27111
+ 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';
27112
+ value?: unknown | undefined;
27113
+ } | {
27114
+ operator: 'AND' | 'OR';
27115
+ conditions: {
27116
+ field: string;
27117
+ 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';
27118
+ value?: unknown | undefined;
27119
+ }[];
27120
+ })[];
27121
+ })[];
27122
+ } | undefined;
27123
+ };
27124
+ } | undefined;
27125
+ };
27126
+ };
27127
+ rules?: {
27128
+ operator: 'AND' | 'OR';
27129
+ conditions: ({
27130
+ field: string;
27131
+ 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';
27132
+ value?: unknown | undefined;
27133
+ } | {
27134
+ operator: 'AND' | 'OR';
27135
+ conditions: ({
27136
+ field: string;
27137
+ 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';
27138
+ value?: unknown | undefined;
27139
+ } | {
27140
+ operator: 'AND' | 'OR';
27141
+ conditions: {
27142
+ field: string;
27143
+ 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';
27144
+ value?: unknown | undefined;
27145
+ }[];
27146
+ })[];
27147
+ })[];
27148
+ } | undefined;
27149
+ }[]) | undefined;
27150
+ /** Input processor graph — static or conditional */
27151
+ inputProcessors?: ({
27152
+ /** Ordered list of processor graph entries */
27153
+ steps: ({
27154
+ type: 'step';
27155
+ step: {
27156
+ /** Unique ID for this step within the graph */
27157
+ id: string;
27158
+ /** ProcessorProvider ID that creates this processor */
27159
+ providerId: string;
27160
+ /** Configuration matching the provider configSchema */
27161
+ config: {
27162
+ [key: string]: unknown;
27163
+ };
27164
+ /** Which processor phases to enable */
27165
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep')[];
27166
+ };
27167
+ } | {
27168
+ type: 'parallel';
27169
+ branches: ({
27170
+ type: 'step';
27171
+ step: {
27172
+ /** Unique ID for this step within the graph */
27173
+ id: string;
27174
+ /** ProcessorProvider ID that creates this processor */
27175
+ providerId: string;
27176
+ /** Configuration matching the provider configSchema */
27177
+ config: {
27178
+ [key: string]: unknown;
27179
+ };
27180
+ /** Which processor phases to enable */
27181
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep')[];
27182
+ };
27183
+ } | {
27184
+ type: 'parallel';
27185
+ branches: {
27186
+ type: 'step';
27187
+ step: {
27188
+ /** Unique ID for this step within the graph */
27189
+ id: string;
27190
+ /** ProcessorProvider ID that creates this processor */
27191
+ providerId: string;
27192
+ /** Configuration matching the provider configSchema */
27193
+ config: {
27194
+ [key: string]: unknown;
27195
+ };
27196
+ /** Which processor phases to enable */
27197
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep')[];
27198
+ };
27199
+ }[][];
27200
+ } | {
27201
+ type: 'conditional';
27202
+ conditions: {
27203
+ steps: {
27204
+ type: 'step';
27205
+ step: {
27206
+ /** Unique ID for this step within the graph */
27207
+ id: string;
27208
+ /** ProcessorProvider ID that creates this processor */
27209
+ providerId: string;
27210
+ /** Configuration matching the provider configSchema */
27211
+ config: {
27212
+ [key: string]: unknown;
27213
+ };
27214
+ /** Which processor phases to enable */
27215
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep')[];
27216
+ };
27217
+ }[];
27218
+ rules?: {
27219
+ operator: 'AND' | 'OR';
27220
+ conditions: ({
27221
+ field: string;
27222
+ 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';
27223
+ value?: unknown | undefined;
27224
+ } | {
27225
+ operator: 'AND' | 'OR';
27226
+ conditions: ({
27227
+ field: string;
27228
+ 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';
27229
+ value?: unknown | undefined;
27230
+ } | {
27231
+ operator: 'AND' | 'OR';
27232
+ conditions: {
27233
+ field: string;
27234
+ 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';
27235
+ value?: unknown | undefined;
27236
+ }[];
27237
+ })[];
27238
+ })[];
27239
+ } | undefined;
27240
+ }[];
27241
+ })[][];
27242
+ } | {
27243
+ type: 'conditional';
27244
+ conditions: {
27245
+ steps: ({
27246
+ type: 'step';
27247
+ step: {
27248
+ /** Unique ID for this step within the graph */
27249
+ id: string;
27250
+ /** ProcessorProvider ID that creates this processor */
27251
+ providerId: string;
27252
+ /** Configuration matching the provider configSchema */
27253
+ config: {
27254
+ [key: string]: unknown;
27255
+ };
27256
+ /** Which processor phases to enable */
27257
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep')[];
27258
+ };
27259
+ } | {
27260
+ type: 'parallel';
27261
+ branches: {
27262
+ type: 'step';
27263
+ step: {
27264
+ /** Unique ID for this step within the graph */
27265
+ id: string;
27266
+ /** ProcessorProvider ID that creates this processor */
27267
+ providerId: string;
27268
+ /** Configuration matching the provider configSchema */
27269
+ config: {
27270
+ [key: string]: unknown;
27271
+ };
27272
+ /** Which processor phases to enable */
27273
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep')[];
27274
+ };
27275
+ }[][];
27276
+ } | {
27277
+ type: 'conditional';
27278
+ conditions: {
27279
+ steps: {
27280
+ type: 'step';
27281
+ step: {
27282
+ /** Unique ID for this step within the graph */
27283
+ id: string;
27284
+ /** ProcessorProvider ID that creates this processor */
27285
+ providerId: string;
27286
+ /** Configuration matching the provider configSchema */
27287
+ config: {
27288
+ [key: string]: unknown;
27289
+ };
27290
+ /** Which processor phases to enable */
27291
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep')[];
27292
+ };
27293
+ }[];
27294
+ rules?: {
27295
+ operator: 'AND' | 'OR';
27296
+ conditions: ({
27297
+ field: string;
27298
+ 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';
27299
+ value?: unknown | undefined;
27300
+ } | {
27301
+ operator: 'AND' | 'OR';
27302
+ conditions: ({
27303
+ field: string;
27304
+ 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';
27305
+ value?: unknown | undefined;
27306
+ } | {
27307
+ operator: 'AND' | 'OR';
27308
+ conditions: {
27309
+ field: string;
27310
+ 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';
27311
+ value?: unknown | undefined;
27312
+ }[];
27313
+ })[];
27314
+ })[];
27315
+ } | undefined;
27316
+ }[];
27317
+ })[];
27318
+ rules?: {
27319
+ operator: 'AND' | 'OR';
27320
+ conditions: ({
27321
+ field: string;
27322
+ 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';
27323
+ value?: unknown | undefined;
27324
+ } | {
27325
+ operator: 'AND' | 'OR';
27326
+ conditions: ({
27327
+ field: string;
27328
+ 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';
27329
+ value?: unknown | undefined;
27330
+ } | {
27331
+ operator: 'AND' | 'OR';
27332
+ conditions: {
27333
+ field: string;
27334
+ 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';
27335
+ value?: unknown | undefined;
27336
+ }[];
27337
+ })[];
27338
+ })[];
27339
+ } | undefined;
27340
+ }[];
27341
+ })[];
27342
+ } | {
27343
+ value: {
27344
+ /** Ordered list of processor graph entries */
27345
+ steps: ({
27346
+ type: 'step';
27347
+ step: {
27348
+ /** Unique ID for this step within the graph */
27349
+ id: string;
27350
+ /** ProcessorProvider ID that creates this processor */
27351
+ providerId: string;
27352
+ /** Configuration matching the provider configSchema */
27353
+ config: {
27354
+ [key: string]: unknown;
27355
+ };
27356
+ /** Which processor phases to enable */
27357
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep')[];
27358
+ };
27359
+ } | {
27360
+ type: 'parallel';
27361
+ branches: ({
27362
+ type: 'step';
27363
+ step: {
27364
+ /** Unique ID for this step within the graph */
27365
+ id: string;
27366
+ /** ProcessorProvider ID that creates this processor */
27367
+ providerId: string;
27368
+ /** Configuration matching the provider configSchema */
27369
+ config: {
27370
+ [key: string]: unknown;
27371
+ };
27372
+ /** Which processor phases to enable */
27373
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep')[];
27374
+ };
27375
+ } | {
27376
+ type: 'parallel';
27377
+ branches: {
27378
+ type: 'step';
27379
+ step: {
27380
+ /** Unique ID for this step within the graph */
27381
+ id: string;
27382
+ /** ProcessorProvider ID that creates this processor */
27383
+ providerId: string;
27384
+ /** Configuration matching the provider configSchema */
27385
+ config: {
27386
+ [key: string]: unknown;
27387
+ };
27388
+ /** Which processor phases to enable */
27389
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep')[];
27390
+ };
27391
+ }[][];
27392
+ } | {
27393
+ type: 'conditional';
27394
+ conditions: {
27395
+ steps: {
27396
+ type: 'step';
27397
+ step: {
27398
+ /** Unique ID for this step within the graph */
27399
+ id: string;
27400
+ /** ProcessorProvider ID that creates this processor */
27401
+ providerId: string;
27402
+ /** Configuration matching the provider configSchema */
27403
+ config: {
27404
+ [key: string]: unknown;
27405
+ };
27406
+ /** Which processor phases to enable */
27407
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep')[];
27408
+ };
27409
+ }[];
27410
+ rules?: {
27411
+ operator: 'AND' | 'OR';
27412
+ conditions: ({
27413
+ field: string;
27414
+ 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';
27415
+ value?: unknown | undefined;
27416
+ } | {
27417
+ operator: 'AND' | 'OR';
27418
+ conditions: ({
27419
+ field: string;
27420
+ 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';
27421
+ value?: unknown | undefined;
27422
+ } | {
27423
+ operator: 'AND' | 'OR';
27424
+ conditions: {
27425
+ field: string;
27426
+ 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';
27427
+ value?: unknown | undefined;
27428
+ }[];
27429
+ })[];
27430
+ })[];
27431
+ } | undefined;
27432
+ }[];
27433
+ })[][];
27434
+ } | {
27435
+ type: 'conditional';
27436
+ conditions: {
27437
+ steps: ({
27438
+ type: 'step';
27439
+ step: {
27440
+ /** Unique ID for this step within the graph */
27441
+ id: string;
27442
+ /** ProcessorProvider ID that creates this processor */
27443
+ providerId: string;
27444
+ /** Configuration matching the provider configSchema */
27445
+ config: {
27446
+ [key: string]: unknown;
27447
+ };
27448
+ /** Which processor phases to enable */
27449
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep')[];
27450
+ };
27451
+ } | {
27452
+ type: 'parallel';
27453
+ branches: {
27454
+ type: 'step';
27455
+ step: {
27456
+ /** Unique ID for this step within the graph */
27457
+ id: string;
27458
+ /** ProcessorProvider ID that creates this processor */
27459
+ providerId: string;
27460
+ /** Configuration matching the provider configSchema */
27461
+ config: {
27462
+ [key: string]: unknown;
27463
+ };
27464
+ /** Which processor phases to enable */
27465
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep')[];
27466
+ };
27467
+ }[][];
27468
+ } | {
27469
+ type: 'conditional';
27470
+ conditions: {
27471
+ steps: {
27472
+ type: 'step';
27473
+ step: {
27474
+ /** Unique ID for this step within the graph */
27475
+ id: string;
27476
+ /** ProcessorProvider ID that creates this processor */
27477
+ providerId: string;
27478
+ /** Configuration matching the provider configSchema */
27479
+ config: {
27480
+ [key: string]: unknown;
27481
+ };
27482
+ /** Which processor phases to enable */
27483
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep')[];
27484
+ };
27485
+ }[];
27486
+ rules?: {
27487
+ operator: 'AND' | 'OR';
27488
+ conditions: ({
27489
+ field: string;
27490
+ 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';
27491
+ value?: unknown | undefined;
27492
+ } | {
27493
+ operator: 'AND' | 'OR';
27494
+ conditions: ({
27495
+ field: string;
27496
+ 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';
27497
+ value?: unknown | undefined;
27498
+ } | {
27499
+ operator: 'AND' | 'OR';
27500
+ conditions: {
27501
+ field: string;
27502
+ 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';
27503
+ value?: unknown | undefined;
27504
+ }[];
27505
+ })[];
27506
+ })[];
27507
+ } | undefined;
27508
+ }[];
27509
+ })[];
27510
+ rules?: {
27511
+ operator: 'AND' | 'OR';
27512
+ conditions: ({
27513
+ field: string;
27514
+ 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';
27515
+ value?: unknown | undefined;
27516
+ } | {
27517
+ operator: 'AND' | 'OR';
27518
+ conditions: ({
27519
+ field: string;
27520
+ 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';
27521
+ value?: unknown | undefined;
27522
+ } | {
27523
+ operator: 'AND' | 'OR';
27524
+ conditions: {
27525
+ field: string;
27526
+ 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';
27527
+ value?: unknown | undefined;
27528
+ }[];
27529
+ })[];
27530
+ })[];
27531
+ } | undefined;
27532
+ }[];
27533
+ })[];
27534
+ };
27535
+ rules?: {
27536
+ operator: 'AND' | 'OR';
27537
+ conditions: ({
27538
+ field: string;
27539
+ 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';
27540
+ value?: unknown | undefined;
27541
+ } | {
27542
+ operator: 'AND' | 'OR';
27543
+ conditions: ({
27544
+ field: string;
27545
+ 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';
27546
+ value?: unknown | undefined;
27547
+ } | {
27548
+ operator: 'AND' | 'OR';
27549
+ conditions: {
27550
+ field: string;
27551
+ 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';
27552
+ value?: unknown | undefined;
27553
+ }[];
27554
+ })[];
27555
+ })[];
27556
+ } | undefined;
27557
+ }[]) | undefined;
27558
+ /** Output processor graph — static or conditional */
27559
+ outputProcessors?: ({
27560
+ /** Ordered list of processor graph entries */
27561
+ steps: ({
27562
+ type: 'step';
27563
+ step: {
27564
+ /** Unique ID for this step within the graph */
27565
+ id: string;
27566
+ /** ProcessorProvider ID that creates this processor */
27567
+ providerId: string;
27568
+ /** Configuration matching the provider configSchema */
27569
+ config: {
27570
+ [key: string]: unknown;
27571
+ };
27572
+ /** Which processor phases to enable */
27573
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep')[];
27574
+ };
27575
+ } | {
27576
+ type: 'parallel';
27577
+ branches: ({
27578
+ type: 'step';
27579
+ step: {
27580
+ /** Unique ID for this step within the graph */
27581
+ id: string;
27582
+ /** ProcessorProvider ID that creates this processor */
27583
+ providerId: string;
27584
+ /** Configuration matching the provider configSchema */
27585
+ config: {
27586
+ [key: string]: unknown;
27587
+ };
27588
+ /** Which processor phases to enable */
27589
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep')[];
27590
+ };
27591
+ } | {
27592
+ type: 'parallel';
27593
+ branches: {
27594
+ type: 'step';
27595
+ step: {
27596
+ /** Unique ID for this step within the graph */
27597
+ id: string;
27598
+ /** ProcessorProvider ID that creates this processor */
27599
+ providerId: string;
27600
+ /** Configuration matching the provider configSchema */
27601
+ config: {
27602
+ [key: string]: unknown;
27603
+ };
27604
+ /** Which processor phases to enable */
27605
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep')[];
27606
+ };
27607
+ }[][];
27608
+ } | {
27609
+ type: 'conditional';
27610
+ conditions: {
27611
+ steps: {
27612
+ type: 'step';
27613
+ step: {
27614
+ /** Unique ID for this step within the graph */
27615
+ id: string;
27616
+ /** ProcessorProvider ID that creates this processor */
27617
+ providerId: string;
27618
+ /** Configuration matching the provider configSchema */
27619
+ config: {
27620
+ [key: string]: unknown;
27621
+ };
27622
+ /** Which processor phases to enable */
27623
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep')[];
27624
+ };
27625
+ }[];
27626
+ rules?: {
27627
+ operator: 'AND' | 'OR';
27628
+ conditions: ({
27629
+ field: string;
27630
+ 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';
27631
+ value?: unknown | undefined;
27632
+ } | {
27633
+ operator: 'AND' | 'OR';
27634
+ conditions: ({
27635
+ field: string;
27636
+ 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';
27637
+ value?: unknown | undefined;
27638
+ } | {
27639
+ operator: 'AND' | 'OR';
27640
+ conditions: {
27641
+ field: string;
27642
+ 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';
27643
+ value?: unknown | undefined;
27644
+ }[];
27645
+ })[];
27646
+ })[];
27647
+ } | undefined;
27648
+ }[];
27649
+ })[][];
27650
+ } | {
27651
+ type: 'conditional';
27652
+ conditions: {
27653
+ steps: ({
27654
+ type: 'step';
27655
+ step: {
27656
+ /** Unique ID for this step within the graph */
27657
+ id: string;
27658
+ /** ProcessorProvider ID that creates this processor */
27659
+ providerId: string;
27660
+ /** Configuration matching the provider configSchema */
27661
+ config: {
27662
+ [key: string]: unknown;
27663
+ };
27664
+ /** Which processor phases to enable */
27665
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep')[];
27666
+ };
27667
+ } | {
27668
+ type: 'parallel';
27669
+ branches: {
27670
+ type: 'step';
27671
+ step: {
27672
+ /** Unique ID for this step within the graph */
27673
+ id: string;
27674
+ /** ProcessorProvider ID that creates this processor */
27675
+ providerId: string;
27676
+ /** Configuration matching the provider configSchema */
27677
+ config: {
27678
+ [key: string]: unknown;
27679
+ };
27680
+ /** Which processor phases to enable */
27681
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep')[];
27682
+ };
27683
+ }[][];
27684
+ } | {
27685
+ type: 'conditional';
27686
+ conditions: {
27687
+ steps: {
27688
+ type: 'step';
27689
+ step: {
27690
+ /** Unique ID for this step within the graph */
27691
+ id: string;
27692
+ /** ProcessorProvider ID that creates this processor */
27693
+ providerId: string;
27694
+ /** Configuration matching the provider configSchema */
27695
+ config: {
27696
+ [key: string]: unknown;
27697
+ };
27698
+ /** Which processor phases to enable */
27699
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep')[];
27700
+ };
27701
+ }[];
27702
+ rules?: {
27703
+ operator: 'AND' | 'OR';
27704
+ conditions: ({
27705
+ field: string;
27706
+ 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';
27707
+ value?: unknown | undefined;
27708
+ } | {
27709
+ operator: 'AND' | 'OR';
27710
+ conditions: ({
27711
+ field: string;
27712
+ 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';
27713
+ value?: unknown | undefined;
27714
+ } | {
27715
+ operator: 'AND' | 'OR';
27716
+ conditions: {
27717
+ field: string;
27718
+ 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';
27719
+ value?: unknown | undefined;
27720
+ }[];
27721
+ })[];
27722
+ })[];
27723
+ } | undefined;
27724
+ }[];
27725
+ })[];
27726
+ rules?: {
27727
+ operator: 'AND' | 'OR';
27728
+ conditions: ({
27729
+ field: string;
27730
+ 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';
27731
+ value?: unknown | undefined;
27732
+ } | {
27733
+ operator: 'AND' | 'OR';
27734
+ conditions: ({
27735
+ field: string;
27736
+ 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';
27737
+ value?: unknown | undefined;
27738
+ } | {
27739
+ operator: 'AND' | 'OR';
27740
+ conditions: {
27741
+ field: string;
27742
+ 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';
27743
+ value?: unknown | undefined;
27744
+ }[];
27745
+ })[];
27746
+ })[];
27747
+ } | undefined;
27748
+ }[];
27749
+ })[];
27750
+ } | {
27751
+ value: {
27752
+ /** Ordered list of processor graph entries */
27753
+ steps: ({
27754
+ type: 'step';
27755
+ step: {
27756
+ /** Unique ID for this step within the graph */
27757
+ id: string;
27758
+ /** ProcessorProvider ID that creates this processor */
27759
+ providerId: string;
27760
+ /** Configuration matching the provider configSchema */
27761
+ config: {
27762
+ [key: string]: unknown;
27763
+ };
27764
+ /** Which processor phases to enable */
27765
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep')[];
27766
+ };
27767
+ } | {
27768
+ type: 'parallel';
27769
+ branches: ({
27770
+ type: 'step';
27771
+ step: {
27772
+ /** Unique ID for this step within the graph */
27773
+ id: string;
27774
+ /** ProcessorProvider ID that creates this processor */
27775
+ providerId: string;
27776
+ /** Configuration matching the provider configSchema */
27777
+ config: {
27778
+ [key: string]: unknown;
27779
+ };
27780
+ /** Which processor phases to enable */
27781
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep')[];
27782
+ };
27783
+ } | {
27784
+ type: 'parallel';
27785
+ branches: {
27786
+ type: 'step';
27787
+ step: {
27788
+ /** Unique ID for this step within the graph */
27789
+ id: string;
27790
+ /** ProcessorProvider ID that creates this processor */
27791
+ providerId: string;
27792
+ /** Configuration matching the provider configSchema */
27793
+ config: {
27794
+ [key: string]: unknown;
27795
+ };
27796
+ /** Which processor phases to enable */
27797
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep')[];
27798
+ };
27799
+ }[][];
27800
+ } | {
27801
+ type: 'conditional';
27802
+ conditions: {
27803
+ steps: {
27804
+ type: 'step';
27805
+ step: {
27806
+ /** Unique ID for this step within the graph */
27807
+ id: string;
27808
+ /** ProcessorProvider ID that creates this processor */
27809
+ providerId: string;
27810
+ /** Configuration matching the provider configSchema */
27811
+ config: {
27812
+ [key: string]: unknown;
27813
+ };
27814
+ /** Which processor phases to enable */
27815
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep')[];
27816
+ };
27817
+ }[];
27818
+ rules?: {
27819
+ operator: 'AND' | 'OR';
27820
+ conditions: ({
27821
+ field: string;
27822
+ 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';
27823
+ value?: unknown | undefined;
27824
+ } | {
27825
+ operator: 'AND' | 'OR';
27826
+ conditions: ({
27827
+ field: string;
27828
+ 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';
27829
+ value?: unknown | undefined;
27830
+ } | {
27831
+ operator: 'AND' | 'OR';
27832
+ conditions: {
27833
+ field: string;
27834
+ 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';
27835
+ value?: unknown | undefined;
27836
+ }[];
27837
+ })[];
27838
+ })[];
27839
+ } | undefined;
27840
+ }[];
27841
+ })[][];
27842
+ } | {
27843
+ type: 'conditional';
27844
+ conditions: {
27845
+ steps: ({
27846
+ type: 'step';
27847
+ step: {
27848
+ /** Unique ID for this step within the graph */
27849
+ id: string;
27850
+ /** ProcessorProvider ID that creates this processor */
27851
+ providerId: string;
27852
+ /** Configuration matching the provider configSchema */
27853
+ config: {
27854
+ [key: string]: unknown;
27855
+ };
27856
+ /** Which processor phases to enable */
27857
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep')[];
27858
+ };
27859
+ } | {
27860
+ type: 'parallel';
27861
+ branches: {
27862
+ type: 'step';
27863
+ step: {
27864
+ /** Unique ID for this step within the graph */
27865
+ id: string;
27866
+ /** ProcessorProvider ID that creates this processor */
27867
+ providerId: string;
27868
+ /** Configuration matching the provider configSchema */
27869
+ config: {
27870
+ [key: string]: unknown;
27871
+ };
27872
+ /** Which processor phases to enable */
27873
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep')[];
27874
+ };
27875
+ }[][];
27876
+ } | {
27877
+ type: 'conditional';
27878
+ conditions: {
27879
+ steps: {
27880
+ type: 'step';
27881
+ step: {
27882
+ /** Unique ID for this step within the graph */
27883
+ id: string;
27884
+ /** ProcessorProvider ID that creates this processor */
27885
+ providerId: string;
27886
+ /** Configuration matching the provider configSchema */
27887
+ config: {
27888
+ [key: string]: unknown;
27889
+ };
27890
+ /** Which processor phases to enable */
27891
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep')[];
27892
+ };
27893
+ }[];
27894
+ rules?: {
27895
+ operator: 'AND' | 'OR';
27896
+ conditions: ({
27897
+ field: string;
27898
+ 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';
27899
+ value?: unknown | undefined;
27900
+ } | {
27901
+ operator: 'AND' | 'OR';
27902
+ conditions: ({
27903
+ field: string;
27904
+ 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';
27905
+ value?: unknown | undefined;
27906
+ } | {
27907
+ operator: 'AND' | 'OR';
27908
+ conditions: {
27909
+ field: string;
27910
+ 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';
27911
+ value?: unknown | undefined;
27912
+ }[];
27913
+ })[];
27914
+ })[];
27915
+ } | undefined;
27916
+ }[];
27917
+ })[];
27918
+ rules?: {
27919
+ operator: 'AND' | 'OR';
27920
+ conditions: ({
27921
+ field: string;
27922
+ 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';
27923
+ value?: unknown | undefined;
27924
+ } | {
27925
+ operator: 'AND' | 'OR';
27926
+ conditions: ({
27927
+ field: string;
27928
+ 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';
27929
+ value?: unknown | undefined;
27930
+ } | {
27931
+ operator: 'AND' | 'OR';
27932
+ conditions: {
27933
+ field: string;
27934
+ 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';
27935
+ value?: unknown | undefined;
27936
+ }[];
27937
+ })[];
27938
+ })[];
27939
+ } | undefined;
27940
+ }[];
27941
+ })[];
27942
+ };
27943
+ rules?: {
27944
+ operator: 'AND' | 'OR';
27945
+ conditions: ({
27946
+ field: string;
27947
+ 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';
27948
+ value?: unknown | undefined;
27949
+ } | {
27950
+ operator: 'AND' | 'OR';
27951
+ conditions: ({
27952
+ field: string;
27953
+ 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';
27954
+ value?: unknown | undefined;
27955
+ } | {
27956
+ operator: 'AND' | 'OR';
27957
+ conditions: {
27958
+ field: string;
27959
+ 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';
27960
+ value?: unknown | undefined;
27961
+ }[];
27962
+ })[];
27963
+ })[];
27964
+ } | undefined;
27965
+ }[]) | undefined;
27966
+ /** Memory configuration — static or conditional */
27967
+ memory?: ({
27968
+ /** Vector database identifier or false to disable */
27969
+ vector?: (string | false) | undefined;
27970
+ /** Memory behavior configuration, excluding workingMemory and threads */
27971
+ options?: {
27972
+ readOnly?: boolean | undefined;
27973
+ lastMessages?: (number | false) | undefined;
27974
+ semanticRecall?: (boolean | {
27975
+ /** Number of semantically similar messages to retrieve */
27976
+ topK: number;
27977
+ /** Amount of surrounding context to include with each retrieved message */
27978
+ messageRange: number | {
27979
+ before: number;
27980
+ after: number;
27981
+ };
27982
+ /** Scope for semantic search queries */
27983
+ scope?: ('thread' | 'resource') | undefined;
27984
+ /** Minimum similarity score threshold */
27985
+ threshold?: number | undefined;
27986
+ /** Index name for the vector store */
27987
+ indexName?: string | undefined;
27988
+ }) | undefined;
27989
+ generateTitle?: (boolean | {
27990
+ /** Model ID in format provider/model-name (ModelRouterModelId) */
27991
+ model: string;
27992
+ /** Custom instructions for title generation */
27993
+ instructions?: string | undefined;
27994
+ }) | undefined;
27995
+ } | undefined;
27996
+ /** Embedding model ID in the format "provider/model" (e.g., "openai/text-embedding-3-small") */
27997
+ embedder?: string | undefined;
27998
+ /** Options to pass to the embedder, omitting telemetry */
27999
+ embedderOptions?: {
28000
+ [key: string]: unknown;
28001
+ } | undefined;
28002
+ /** Serialized observational memory configuration */
28003
+ observationalMemory?: (boolean | {
28004
+ /** Model ID for both Observer and Reflector */
28005
+ model?: string | undefined;
28006
+ /** Memory scope */
28007
+ scope?: ('resource' | 'thread') | undefined;
28008
+ /** Share token budget between messages and observations */
28009
+ shareTokenBudget?: boolean | undefined;
28010
+ /** Observation step configuration */
28011
+ observation?: {
28012
+ /** Observer model ID */
28013
+ model?: string | undefined;
28014
+ /** Token threshold that triggers observation */
28015
+ messageTokens?: number | undefined;
28016
+ /** Model settings (temperature, etc.) */
28017
+ modelSettings?: {
28018
+ [key: string]: unknown;
28019
+ } | undefined;
28020
+ /** Provider-specific options */
28021
+ providerOptions?: {
28022
+ [key: string]: {
28023
+ [key: string]: unknown;
28024
+ } | undefined;
28025
+ } | undefined;
28026
+ /** Maximum tokens per batch */
28027
+ maxTokensPerBatch?: number | undefined;
28028
+ /** Async buffering interval or false */
28029
+ bufferTokens?: (number | false) | undefined;
28030
+ /** Ratio of buffered observations to activate */
28031
+ bufferActivation?: number | undefined;
28032
+ /** Token threshold for synchronous blocking */
28033
+ blockAfter?: number | undefined;
28034
+ } | undefined;
28035
+ /** Reflection step configuration */
28036
+ reflection?: {
28037
+ /** Reflector model ID */
28038
+ model?: string | undefined;
28039
+ /** Token threshold that triggers reflection */
28040
+ observationTokens?: number | undefined;
28041
+ /** Model settings (temperature, etc.) */
28042
+ modelSettings?: {
28043
+ [key: string]: unknown;
28044
+ } | undefined;
28045
+ /** Provider-specific options */
28046
+ providerOptions?: {
28047
+ [key: string]: {
28048
+ [key: string]: unknown;
28049
+ } | undefined;
28050
+ } | undefined;
28051
+ /** Token threshold for synchronous blocking */
28052
+ blockAfter?: number | undefined;
28053
+ /** Ratio for async reflection buffering */
28054
+ bufferActivation?: number | undefined;
28055
+ } | undefined;
28056
+ }) | undefined;
28057
+ } | {
28058
+ value: {
28059
+ /** Vector database identifier or false to disable */
28060
+ vector?: (string | false) | undefined;
28061
+ /** Memory behavior configuration, excluding workingMemory and threads */
28062
+ options?: {
28063
+ readOnly?: boolean | undefined;
28064
+ lastMessages?: (number | false) | undefined;
28065
+ semanticRecall?: (boolean | {
28066
+ /** Number of semantically similar messages to retrieve */
28067
+ topK: number;
28068
+ /** Amount of surrounding context to include with each retrieved message */
28069
+ messageRange: number | {
28070
+ before: number;
28071
+ after: number;
28072
+ };
28073
+ /** Scope for semantic search queries */
28074
+ scope?: ('thread' | 'resource') | undefined;
28075
+ /** Minimum similarity score threshold */
28076
+ threshold?: number | undefined;
28077
+ /** Index name for the vector store */
28078
+ indexName?: string | undefined;
28079
+ }) | undefined;
28080
+ generateTitle?: (boolean | {
28081
+ /** Model ID in format provider/model-name (ModelRouterModelId) */
28082
+ model: string;
28083
+ /** Custom instructions for title generation */
28084
+ instructions?: string | undefined;
28085
+ }) | undefined;
28086
+ } | undefined;
28087
+ /** Embedding model ID in the format "provider/model" (e.g., "openai/text-embedding-3-small") */
28088
+ embedder?: string | undefined;
28089
+ /** Options to pass to the embedder, omitting telemetry */
28090
+ embedderOptions?: {
28091
+ [key: string]: unknown;
28092
+ } | undefined;
28093
+ /** Serialized observational memory configuration */
28094
+ observationalMemory?: (boolean | {
28095
+ /** Model ID for both Observer and Reflector */
28096
+ model?: string | undefined;
28097
+ /** Memory scope */
28098
+ scope?: ('resource' | 'thread') | undefined;
28099
+ /** Share token budget between messages and observations */
28100
+ shareTokenBudget?: boolean | undefined;
28101
+ /** Observation step configuration */
28102
+ observation?: {
28103
+ /** Observer model ID */
28104
+ model?: string | undefined;
28105
+ /** Token threshold that triggers observation */
28106
+ messageTokens?: number | undefined;
28107
+ /** Model settings (temperature, etc.) */
28108
+ modelSettings?: {
28109
+ [key: string]: unknown;
28110
+ } | undefined;
28111
+ /** Provider-specific options */
28112
+ providerOptions?: {
28113
+ [key: string]: {
28114
+ [key: string]: unknown;
28115
+ } | undefined;
28116
+ } | undefined;
28117
+ /** Maximum tokens per batch */
28118
+ maxTokensPerBatch?: number | undefined;
28119
+ /** Async buffering interval or false */
28120
+ bufferTokens?: (number | false) | undefined;
28121
+ /** Ratio of buffered observations to activate */
28122
+ bufferActivation?: number | undefined;
28123
+ /** Token threshold for synchronous blocking */
28124
+ blockAfter?: number | undefined;
28125
+ } | undefined;
28126
+ /** Reflection step configuration */
28127
+ reflection?: {
28128
+ /** Reflector model ID */
28129
+ model?: string | undefined;
28130
+ /** Token threshold that triggers reflection */
28131
+ observationTokens?: number | undefined;
28132
+ /** Model settings (temperature, etc.) */
28133
+ modelSettings?: {
28134
+ [key: string]: unknown;
28135
+ } | undefined;
28136
+ /** Provider-specific options */
28137
+ providerOptions?: {
28138
+ [key: string]: {
28139
+ [key: string]: unknown;
28140
+ } | undefined;
28141
+ } | undefined;
28142
+ /** Token threshold for synchronous blocking */
28143
+ blockAfter?: number | undefined;
28144
+ /** Ratio for async reflection buffering */
28145
+ bufferActivation?: number | undefined;
28146
+ } | undefined;
28147
+ }) | undefined;
28148
+ };
28149
+ rules?: {
28150
+ operator: 'AND' | 'OR';
28151
+ conditions: ({
28152
+ field: string;
28153
+ 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';
28154
+ value?: unknown | undefined;
28155
+ } | {
28156
+ operator: 'AND' | 'OR';
28157
+ conditions: ({
28158
+ field: string;
28159
+ 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';
28160
+ value?: unknown | undefined;
28161
+ } | {
28162
+ operator: 'AND' | 'OR';
28163
+ conditions: {
28164
+ field: string;
28165
+ 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';
28166
+ value?: unknown | undefined;
28167
+ }[];
28168
+ })[];
28169
+ })[];
28170
+ } | undefined;
28171
+ }[]) | undefined;
28172
+ /** Scorer keys with optional sampling config — static or conditional */
28173
+ scorers?: ({
28174
+ [key: string]: {
28175
+ description?: string | undefined;
28176
+ sampling?: ({
28177
+ type: 'none';
28178
+ } | {
28179
+ type: 'ratio';
28180
+ rate: number;
28181
+ }) | undefined;
28182
+ rules?: {
28183
+ operator: 'AND' | 'OR';
28184
+ conditions: ({
28185
+ field: string;
28186
+ 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';
28187
+ value?: unknown | undefined;
28188
+ } | {
28189
+ operator: 'AND' | 'OR';
28190
+ conditions: ({
28191
+ field: string;
28192
+ 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';
28193
+ value?: unknown | undefined;
28194
+ } | {
28195
+ operator: 'AND' | 'OR';
28196
+ conditions: {
28197
+ field: string;
28198
+ 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';
28199
+ value?: unknown | undefined;
28200
+ }[];
28201
+ })[];
28202
+ })[];
28203
+ } | undefined;
28204
+ };
28205
+ } | {
28206
+ value: {
28207
+ [key: string]: {
28208
+ description?: string | undefined;
28209
+ sampling?: ({
28210
+ type: 'none';
28211
+ } | {
28212
+ type: 'ratio';
28213
+ rate: number;
28214
+ }) | undefined;
28215
+ rules?: {
28216
+ operator: 'AND' | 'OR';
28217
+ conditions: ({
28218
+ field: string;
28219
+ 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';
28220
+ value?: unknown | undefined;
28221
+ } | {
28222
+ operator: 'AND' | 'OR';
28223
+ conditions: ({
28224
+ field: string;
28225
+ 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';
28226
+ value?: unknown | undefined;
28227
+ } | {
28228
+ operator: 'AND' | 'OR';
28229
+ conditions: {
28230
+ field: string;
28231
+ 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';
28232
+ value?: unknown | undefined;
28233
+ }[];
28234
+ })[];
28235
+ })[];
28236
+ } | undefined;
28237
+ };
28238
+ };
28239
+ rules?: {
28240
+ operator: 'AND' | 'OR';
28241
+ conditions: ({
28242
+ field: string;
28243
+ 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';
28244
+ value?: unknown | undefined;
28245
+ } | {
28246
+ operator: 'AND' | 'OR';
28247
+ conditions: ({
28248
+ field: string;
28249
+ 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';
28250
+ value?: unknown | undefined;
28251
+ } | {
28252
+ operator: 'AND' | 'OR';
28253
+ conditions: {
28254
+ field: string;
28255
+ 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';
28256
+ value?: unknown | undefined;
28257
+ }[];
28258
+ })[];
28259
+ })[];
28260
+ } | undefined;
28261
+ }[]) | undefined;
28262
+ /** Skill IDs mapped to per-skill config — static or conditional */
28263
+ skills?: ({
28264
+ [key: string]: {
28265
+ description?: string | undefined;
28266
+ instructions?: string | undefined;
28267
+ pin?: string | undefined;
28268
+ strategy?: ('latest' | 'live') | undefined;
28269
+ };
28270
+ } | {
28271
+ value: {
28272
+ [key: string]: {
28273
+ description?: string | undefined;
28274
+ instructions?: string | undefined;
28275
+ pin?: string | undefined;
28276
+ strategy?: ('latest' | 'live') | undefined;
28277
+ };
28278
+ };
28279
+ rules?: {
28280
+ operator: 'AND' | 'OR';
28281
+ conditions: ({
28282
+ field: string;
28283
+ 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';
28284
+ value?: unknown | undefined;
28285
+ } | {
28286
+ operator: 'AND' | 'OR';
28287
+ conditions: ({
28288
+ field: string;
28289
+ 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';
28290
+ value?: unknown | undefined;
28291
+ } | {
28292
+ operator: 'AND' | 'OR';
28293
+ conditions: {
28294
+ field: string;
28295
+ 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';
28296
+ value?: unknown | undefined;
28297
+ }[];
28298
+ })[];
28299
+ })[];
28300
+ } | undefined;
28301
+ }[]) | undefined;
28302
+ /** Workspace reference (stored ID or inline config) — static or conditional */
28303
+ workspace?: (({
28304
+ type: 'id';
28305
+ workspaceId: string;
28306
+ } | {
28307
+ type: 'inline';
28308
+ config: {
28309
+ /** Name of the workspace */
28310
+ name: string;
28311
+ /** Description of the workspace */
28312
+ description?: string | undefined;
28313
+ /** Filesystem configuration */
28314
+ filesystem?: {
28315
+ /** Filesystem provider name */
28316
+ provider: string;
28317
+ /** Filesystem provider configuration */
28318
+ config: {
28319
+ [key: string]: unknown;
28320
+ };
28321
+ } | undefined;
28322
+ /** Sandbox configuration */
28323
+ sandbox?: {
28324
+ /** Sandbox provider name */
28325
+ provider: string;
28326
+ /** Sandbox provider configuration */
28327
+ config: {
28328
+ [key: string]: unknown;
28329
+ };
28330
+ } | undefined;
28331
+ /** Mounted filesystems keyed by mount path */
28332
+ mounts?: {
28333
+ [key: string]: {
28334
+ /** Filesystem provider name */
28335
+ provider: string;
28336
+ /** Filesystem provider configuration */
28337
+ config: {
28338
+ [key: string]: unknown;
28339
+ };
28340
+ };
28341
+ } | undefined;
28342
+ /** Search configuration */
28343
+ search?: {
28344
+ /** Vector store provider identifier */
28345
+ vectorProvider?: string | undefined;
28346
+ /** Vector store provider-specific configuration */
28347
+ vectorConfig?: {
28348
+ [key: string]: unknown;
28349
+ } | undefined;
28350
+ /** Embedder provider identifier */
28351
+ embedderProvider?: string | undefined;
28352
+ /** Embedder model name */
28353
+ embedderModel?: string | undefined;
28354
+ /** Embedder provider-specific configuration */
28355
+ embedderConfig?: {
28356
+ [key: string]: unknown;
28357
+ } | undefined;
28358
+ /** BM25 keyword search config */
28359
+ bm25?: (boolean | {
28360
+ k1?: number | undefined;
28361
+ b?: number | undefined;
28362
+ }) | undefined;
28363
+ /** Custom index name for the vector store */
28364
+ searchIndexName?: string | undefined;
28365
+ /** Paths to auto-index on init */
28366
+ autoIndexPaths?: string[] | undefined;
28367
+ } | undefined;
28368
+ /** Array of skill IDs */
28369
+ skills?: string[] | undefined;
28370
+ /** Workspace tool configuration */
28371
+ tools?: {
28372
+ /** Default: whether all tools are enabled */
28373
+ enabled?: boolean | undefined;
28374
+ /** Default: whether all tools require user approval */
28375
+ requireApproval?: boolean | undefined;
28376
+ /** Per-tool overrides keyed by workspace tool name */
28377
+ tools?: {
28378
+ [key: string]: {
28379
+ /** Whether the tool is enabled */
28380
+ enabled?: boolean | undefined;
28381
+ /** Whether the tool requires user approval before execution */
28382
+ requireApproval?: boolean | undefined;
28383
+ /** For write tools: require reading a file before writing to it */
28384
+ requireReadBeforeWrite?: boolean | undefined;
28385
+ };
28386
+ } | undefined;
28387
+ } | undefined;
28388
+ /** Whether to automatically sync the workspace */
28389
+ autoSync?: boolean | undefined;
28390
+ /** Operation timeout in milliseconds */
28391
+ operationTimeout?: number | undefined;
28392
+ };
28393
+ }) | {
28394
+ value: {
28395
+ type: 'id';
28396
+ workspaceId: string;
28397
+ } | {
28398
+ type: 'inline';
28399
+ config: {
28400
+ /** Name of the workspace */
28401
+ name: string;
28402
+ /** Description of the workspace */
28403
+ description?: string | undefined;
28404
+ /** Filesystem configuration */
28405
+ filesystem?: {
28406
+ /** Filesystem provider name */
28407
+ provider: string;
28408
+ /** Filesystem provider configuration */
28409
+ config: {
28410
+ [key: string]: unknown;
28411
+ };
28412
+ } | undefined;
28413
+ /** Sandbox configuration */
28414
+ sandbox?: {
28415
+ /** Sandbox provider name */
28416
+ provider: string;
28417
+ /** Sandbox provider configuration */
28418
+ config: {
28419
+ [key: string]: unknown;
28420
+ };
28421
+ } | undefined;
28422
+ /** Mounted filesystems keyed by mount path */
28423
+ mounts?: {
28424
+ [key: string]: {
28425
+ /** Filesystem provider name */
28426
+ provider: string;
28427
+ /** Filesystem provider configuration */
28428
+ config: {
28429
+ [key: string]: unknown;
28430
+ };
28431
+ };
28432
+ } | undefined;
28433
+ /** Search configuration */
28434
+ search?: {
28435
+ /** Vector store provider identifier */
28436
+ vectorProvider?: string | undefined;
28437
+ /** Vector store provider-specific configuration */
28438
+ vectorConfig?: {
28439
+ [key: string]: unknown;
28440
+ } | undefined;
28441
+ /** Embedder provider identifier */
28442
+ embedderProvider?: string | undefined;
28443
+ /** Embedder model name */
28444
+ embedderModel?: string | undefined;
28445
+ /** Embedder provider-specific configuration */
28446
+ embedderConfig?: {
28447
+ [key: string]: unknown;
28448
+ } | undefined;
28449
+ /** BM25 keyword search config */
28450
+ bm25?: (boolean | {
28451
+ k1?: number | undefined;
28452
+ b?: number | undefined;
28453
+ }) | undefined;
28454
+ /** Custom index name for the vector store */
28455
+ searchIndexName?: string | undefined;
28456
+ /** Paths to auto-index on init */
28457
+ autoIndexPaths?: string[] | undefined;
28458
+ } | undefined;
28459
+ /** Array of skill IDs */
28460
+ skills?: string[] | undefined;
28461
+ /** Workspace tool configuration */
28462
+ tools?: {
28463
+ /** Default: whether all tools are enabled */
28464
+ enabled?: boolean | undefined;
28465
+ /** Default: whether all tools require user approval */
28466
+ requireApproval?: boolean | undefined;
28467
+ /** Per-tool overrides keyed by workspace tool name */
28468
+ tools?: {
28469
+ [key: string]: {
28470
+ /** Whether the tool is enabled */
28471
+ enabled?: boolean | undefined;
28472
+ /** Whether the tool requires user approval before execution */
28473
+ requireApproval?: boolean | undefined;
28474
+ /** For write tools: require reading a file before writing to it */
28475
+ requireReadBeforeWrite?: boolean | undefined;
28476
+ };
28477
+ } | undefined;
28478
+ } | undefined;
28479
+ /** Whether to automatically sync the workspace */
28480
+ autoSync?: boolean | undefined;
28481
+ /** Operation timeout in milliseconds */
28482
+ operationTimeout?: number | undefined;
28483
+ };
28484
+ };
28485
+ rules?: {
28486
+ operator: 'AND' | 'OR';
28487
+ conditions: ({
28488
+ field: string;
28489
+ 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';
28490
+ value?: unknown | undefined;
28491
+ } | {
28492
+ operator: 'AND' | 'OR';
28493
+ conditions: ({
28494
+ field: string;
28495
+ 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';
28496
+ value?: unknown | undefined;
28497
+ } | {
28498
+ operator: 'AND' | 'OR';
28499
+ conditions: {
28500
+ field: string;
28501
+ 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';
28502
+ value?: unknown | undefined;
28503
+ }[];
28504
+ })[];
28505
+ })[];
28506
+ } | undefined;
28507
+ }[]) | undefined;
28508
+ /** Browser configuration — object config, true (apply default), false/null (disable) */
28509
+ browser?: (({
26394
28510
  type: 'inline';
26395
28511
  config: {
26396
28512
  /** Browser provider type (e.g., stagehand, playwright) */
@@ -41169,6 +43285,40 @@ export interface DeleteToolProvidersProviderIdConnectionsConnectionId_RouteContr
41169
43285
  response: DeleteToolProvidersProviderIdConnectionsConnectionId_Response;
41170
43286
  responseType: 'json';
41171
43287
  }
43288
+ export type PatchToolProvidersProviderIdConnectionsConnectionId_PathParams = {
43289
+ /** Unique identifier for the tool provider */
43290
+ providerId: string;
43291
+ /** Adapter-native connection id (e.g. Composio ca_...) */
43292
+ connectionId: string;
43293
+ };
43294
+ export type PatchToolProvidersProviderIdConnectionsConnectionId_Body = {
43295
+ /** New display label for the connection. Pass null (or empty string) to clear the existing label. */
43296
+ label: string | '' | null;
43297
+ };
43298
+ export type PatchToolProvidersProviderIdConnectionsConnectionId_Response = {
43299
+ ok: true;
43300
+ /** The persisted label after the update (null when cleared) */
43301
+ label: string | null;
43302
+ };
43303
+ export type PatchToolProvidersProviderIdConnectionsConnectionId_Request = Simplify<(PatchToolProvidersProviderIdConnectionsConnectionId_PathParams extends never ? {} : {
43304
+ params: PatchToolProvidersProviderIdConnectionsConnectionId_PathParams;
43305
+ }) & (never extends never ? {} : {} extends never ? {
43306
+ query?: never;
43307
+ } : {
43308
+ query: never;
43309
+ }) & (PatchToolProvidersProviderIdConnectionsConnectionId_Body extends never ? {} : {} extends PatchToolProvidersProviderIdConnectionsConnectionId_Body ? {
43310
+ body?: PatchToolProvidersProviderIdConnectionsConnectionId_Body;
43311
+ } : {
43312
+ body: PatchToolProvidersProviderIdConnectionsConnectionId_Body;
43313
+ })>;
43314
+ export interface PatchToolProvidersProviderIdConnectionsConnectionId_RouteContract {
43315
+ pathParams: PatchToolProvidersProviderIdConnectionsConnectionId_PathParams;
43316
+ queryParams: never;
43317
+ body: PatchToolProvidersProviderIdConnectionsConnectionId_Body;
43318
+ request: PatchToolProvidersProviderIdConnectionsConnectionId_Request;
43319
+ response: PatchToolProvidersProviderIdConnectionsConnectionId_Response;
43320
+ responseType: 'json';
43321
+ }
41172
43322
  export type GetToolProvidersProviderIdConnectionsConnectionIdUsage_PathParams = {
41173
43323
  /** Unique identifier for the tool provider */
41174
43324
  providerId: string;
@@ -41300,6 +43450,7 @@ export type GetSystemPackages_Response = {
41300
43450
  }[];
41301
43451
  isDev: boolean;
41302
43452
  cmsEnabled: boolean;
43453
+ editorSource?: ('code' | 'db') | undefined;
41303
43454
  observabilityEnabled: boolean;
41304
43455
  storageType?: string | undefined;
41305
43456
  observabilityStorageType?: string | undefined;
@@ -45112,6 +47263,7 @@ export interface RouteTypes {
45112
47263
  'POST /mcp/:serverId/messages': PostMcpServerIdMessages_RouteContract;
45113
47264
  'GET /stored/agents': GetStoredAgents_RouteContract;
45114
47265
  'POST /stored/agents/preview-instructions': PostStoredAgentsPreviewInstructions_RouteContract;
47266
+ 'POST /stored/agents/:storedAgentId/export': PostStoredAgentsStoredAgentIdExport_RouteContract;
45115
47267
  'GET /stored/agents/:storedAgentId': GetStoredAgentsStoredAgentId_RouteContract;
45116
47268
  'POST /stored/agents': PostStoredAgents_RouteContract;
45117
47269
  'PATCH /stored/agents/:storedAgentId': PatchStoredAgentsStoredAgentId_RouteContract;
@@ -45184,6 +47336,7 @@ export interface RouteTypes {
45184
47336
  'GET /tool-providers/:providerId/connections': GetToolProvidersProviderIdConnections_RouteContract;
45185
47337
  'GET /tool-providers/:providerId/connection-fields': GetToolProvidersProviderIdConnectionFields_RouteContract;
45186
47338
  'DELETE /tool-providers/:providerId/connections/:connectionId': DeleteToolProvidersProviderIdConnectionsConnectionId_RouteContract;
47339
+ 'PATCH /tool-providers/:providerId/connections/:connectionId': PatchToolProvidersProviderIdConnectionsConnectionId_RouteContract;
45187
47340
  'GET /tool-providers/:providerId/connections/:connectionId/usage': GetToolProvidersProviderIdConnectionsConnectionIdUsage_RouteContract;
45188
47341
  'GET /tool-providers/:providerId/health': GetToolProvidersProviderIdHealth_RouteContract;
45189
47342
  'GET /processor-providers': GetProcessorProviders_RouteContract;
@@ -45854,6 +48007,9 @@ export interface Client {
45854
48007
  GET: GetStoredAgentsStoredAgentId_RouteContract;
45855
48008
  PATCH: PatchStoredAgentsStoredAgentId_RouteContract;
45856
48009
  };
48010
+ '/stored/agents/:storedAgentId/export': {
48011
+ POST: PostStoredAgentsStoredAgentIdExport_RouteContract;
48012
+ };
45857
48013
  '/stored/agents/:storedAgentId/favorite': {
45858
48014
  DELETE: DeleteStoredAgentsStoredAgentIdFavorite_RouteContract;
45859
48015
  PUT: PutStoredAgentsStoredAgentIdFavorite_RouteContract;
@@ -45990,6 +48146,7 @@ export interface Client {
45990
48146
  };
45991
48147
  '/tool-providers/:providerId/connections/:connectionId': {
45992
48148
  DELETE: DeleteToolProvidersProviderIdConnectionsConnectionId_RouteContract;
48149
+ PATCH: PatchToolProvidersProviderIdConnectionsConnectionId_RouteContract;
45993
48150
  };
45994
48151
  '/tool-providers/:providerId/connections/:connectionId/usage': {
45995
48152
  GET: GetToolProvidersProviderIdConnectionsConnectionIdUsage_RouteContract;