@mastra/client-js 1.22.0-alpha.3 → 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;
@@ -807,6 +821,68 @@ export type PostAgentsAgentIdClone_Response = {
807
821
  })[];
808
822
  } | undefined;
809
823
  }[]) | undefined;
824
+ /** Tool provider connections and per-tool config (provider-agnostic). Coexists with the deprecated `integrationTools` field. */
825
+ toolProviders?: ({
826
+ [key: string]: {
827
+ tools: {
828
+ [key: string]: {
829
+ toolkit?: string | undefined;
830
+ description?: string | undefined;
831
+ };
832
+ };
833
+ connections: {
834
+ [key: string]: {
835
+ kind: 'author' | 'invoker' | 'platform';
836
+ toolkit: string;
837
+ connectionId: string;
838
+ label?: string | undefined;
839
+ scope?: ('shared' | 'per-author' | 'caller-supplied') | undefined;
840
+ }[];
841
+ };
842
+ };
843
+ } | {
844
+ value: {
845
+ [key: string]: {
846
+ tools: {
847
+ [key: string]: {
848
+ toolkit?: string | undefined;
849
+ description?: string | undefined;
850
+ };
851
+ };
852
+ connections: {
853
+ [key: string]: {
854
+ kind: 'author' | 'invoker' | 'platform';
855
+ toolkit: string;
856
+ connectionId: string;
857
+ label?: string | undefined;
858
+ scope?: ('shared' | 'per-author' | 'caller-supplied') | undefined;
859
+ }[];
860
+ };
861
+ };
862
+ };
863
+ rules?: {
864
+ operator: 'AND' | 'OR';
865
+ conditions: ({
866
+ field: string;
867
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
868
+ value?: unknown | undefined;
869
+ } | {
870
+ operator: 'AND' | 'OR';
871
+ conditions: ({
872
+ field: string;
873
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
874
+ value?: unknown | undefined;
875
+ } | {
876
+ operator: 'AND' | 'OR';
877
+ conditions: {
878
+ field: string;
879
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
880
+ value?: unknown | undefined;
881
+ }[];
882
+ })[];
883
+ })[];
884
+ } | undefined;
885
+ }[]) | undefined;
810
886
  /** Map of stored MCP client IDs to their tool configurations — static or conditional */
811
887
  mcpClients?: ({
812
888
  [key: string]: {
@@ -14185,6 +14261,68 @@ export type GetStoredAgents_Response = {
14185
14261
  })[];
14186
14262
  } | undefined;
14187
14263
  }[]) | undefined;
14264
+ /** Tool provider connections and per-tool config (provider-agnostic). Coexists with the deprecated `integrationTools` field. */
14265
+ toolProviders?: ({
14266
+ [key: string]: {
14267
+ tools: {
14268
+ [key: string]: {
14269
+ toolkit?: string | undefined;
14270
+ description?: string | undefined;
14271
+ };
14272
+ };
14273
+ connections: {
14274
+ [key: string]: {
14275
+ kind: 'author' | 'invoker' | 'platform';
14276
+ toolkit: string;
14277
+ connectionId: string;
14278
+ label?: string | undefined;
14279
+ scope?: ('shared' | 'per-author' | 'caller-supplied') | undefined;
14280
+ }[];
14281
+ };
14282
+ };
14283
+ } | {
14284
+ value: {
14285
+ [key: string]: {
14286
+ tools: {
14287
+ [key: string]: {
14288
+ toolkit?: string | undefined;
14289
+ description?: string | undefined;
14290
+ };
14291
+ };
14292
+ connections: {
14293
+ [key: string]: {
14294
+ kind: 'author' | 'invoker' | 'platform';
14295
+ toolkit: string;
14296
+ connectionId: string;
14297
+ label?: string | undefined;
14298
+ scope?: ('shared' | 'per-author' | 'caller-supplied') | undefined;
14299
+ }[];
14300
+ };
14301
+ };
14302
+ };
14303
+ rules?: {
14304
+ operator: 'AND' | 'OR';
14305
+ conditions: ({
14306
+ field: string;
14307
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
14308
+ value?: unknown | undefined;
14309
+ } | {
14310
+ operator: 'AND' | 'OR';
14311
+ conditions: ({
14312
+ field: string;
14313
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
14314
+ value?: unknown | undefined;
14315
+ } | {
14316
+ operator: 'AND' | 'OR';
14317
+ conditions: {
14318
+ field: string;
14319
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
14320
+ value?: unknown | undefined;
14321
+ }[];
14322
+ })[];
14323
+ })[];
14324
+ } | undefined;
14325
+ }[]) | undefined;
14188
14326
  /** Map of stored MCP client IDs to their tool configurations — static or conditional */
14189
14327
  mcpClients?: ({
14190
14328
  [key: string]: {
@@ -15802,36 +15940,14 @@ export interface PostStoredAgentsPreviewInstructions_RouteContract {
15802
15940
  response: PostStoredAgentsPreviewInstructions_Response;
15803
15941
  responseType: 'json';
15804
15942
  }
15805
- export type GetStoredAgentsStoredAgentId_PathParams = {
15943
+ export type PostStoredAgentsStoredAgentIdExport_PathParams = {
15806
15944
  /** Unique identifier for the stored agent */
15807
15945
  storedAgentId: string;
15808
15946
  };
15809
- export type GetStoredAgentsStoredAgentId_QueryParams = {
15810
- /** Which version to resolve: published (active version) or draft (latest version) */
15811
- status: ('draft' | 'published' | 'archived') | undefined;
15812
- };
15813
- export type GetStoredAgentsStoredAgentId_Response = {
15814
- id: string;
15815
- /** Agent status: draft or published */
15816
- status: string;
15817
- activeVersionId?: string | undefined;
15818
- authorId?: string | undefined;
15819
- metadata?: {
15820
- [key: string]: unknown;
15821
- } | undefined;
15822
- visibility?: ('private' | 'public') | undefined;
15823
- /** Number of users who have favorited this agent */
15824
- favoriteCount?: number | undefined;
15825
- /** Whether the requesting user has favorited this agent */
15826
- isFavorited?: boolean | undefined;
15827
- createdAt: Date;
15828
- updatedAt: Date;
15829
- /** Name of the agent */
15830
- name: string;
15831
- /** Description of the agent */
15832
- description?: string | undefined;
15833
- /** System instructions for the agent (string or array of instruction blocks) */
15834
- instructions: string | ({
15947
+ export type PostStoredAgentsStoredAgentIdExport_Body = {
15948
+ name?: string | undefined;
15949
+ description?: (string | undefined) | undefined;
15950
+ instructions?: (string | ({
15835
15951
  type: 'text';
15836
15952
  content: string;
15837
15953
  } | {
@@ -15862,9 +15978,8 @@ export type GetStoredAgentsStoredAgentId_Response = {
15862
15978
  })[];
15863
15979
  })[];
15864
15980
  } | undefined;
15865
- })[];
15866
- /** Model configuration — static value or array of conditional variants */
15867
- model: {
15981
+ })[]) | undefined;
15982
+ model?: ({
15868
15983
  /** Model provider (e.g., openai, anthropic) */
15869
15984
  provider: string;
15870
15985
  /** Model name (e.g., gpt-4o, claude-3-opus) */
@@ -15900,9 +16015,8 @@ export type GetStoredAgentsStoredAgentId_Response = {
15900
16015
  })[];
15901
16016
  })[];
15902
16017
  } | undefined;
15903
- }[];
15904
- /** Tool keys mapped to per-tool config — static or conditional */
15905
- tools?: ({
16018
+ }[]) | undefined;
16019
+ tools?: (({
15906
16020
  [key: string]: {
15907
16021
  description?: string | undefined;
15908
16022
  rules?: {
@@ -15978,9 +16092,8 @@ export type GetStoredAgentsStoredAgentId_Response = {
15978
16092
  })[];
15979
16093
  })[];
15980
16094
  } | undefined;
15981
- }[]) | undefined;
15982
- /** Default options for generate/stream calls — static or conditional */
15983
- defaultOptions?: ({
16095
+ }[]) | undefined) | undefined;
16096
+ defaultOptions?: (({
15984
16097
  runId?: string | undefined;
15985
16098
  savePerStep?: boolean | undefined;
15986
16099
  maxSteps?: number | undefined;
@@ -16075,9 +16188,8 @@ export type GetStoredAgentsStoredAgentId_Response = {
16075
16188
  })[];
16076
16189
  })[];
16077
16190
  } | undefined;
16078
- }[]) | undefined;
16079
- /** Workflow keys with optional per-workflow config — static or conditional */
16080
- workflows?: ({
16191
+ }[]) | undefined) | undefined;
16192
+ workflows?: (({
16081
16193
  [key: string]: {
16082
16194
  description?: string | undefined;
16083
16195
  rules?: {
@@ -16153,9 +16265,8 @@ export type GetStoredAgentsStoredAgentId_Response = {
16153
16265
  })[];
16154
16266
  })[];
16155
16267
  } | undefined;
16156
- }[]) | undefined;
16157
- /** Agent keys with optional per-agent config — static or conditional */
16158
- agents?: ({
16268
+ }[]) | undefined) | undefined;
16269
+ agents?: (({
16159
16270
  [key: string]: {
16160
16271
  description?: string | undefined;
16161
16272
  rules?: {
@@ -16231,9 +16342,8 @@ export type GetStoredAgentsStoredAgentId_Response = {
16231
16342
  })[];
16232
16343
  })[];
16233
16344
  } | undefined;
16234
- }[]) | undefined;
16235
- /** Map of tool provider IDs to their tool configurations — static or conditional */
16236
- integrationTools?: ({
16345
+ }[]) | undefined) | undefined;
16346
+ integrationTools?: (({
16237
16347
  [key: string]: {
16238
16348
  tools?: {
16239
16349
  [key: string]: {
@@ -16317,68 +16427,43 @@ export type GetStoredAgentsStoredAgentId_Response = {
16317
16427
  })[];
16318
16428
  })[];
16319
16429
  } | undefined;
16320
- }[]) | undefined;
16321
- /** Map of stored MCP client IDs to their tool configurations — static or conditional */
16322
- mcpClients?: ({
16430
+ }[]) | undefined) | undefined;
16431
+ toolProviders?: (({
16323
16432
  [key: string]: {
16324
- tools?: {
16433
+ tools: {
16325
16434
  [key: string]: {
16435
+ toolkit?: string | undefined;
16326
16436
  description?: string | undefined;
16327
- rules?: {
16328
- operator: 'AND' | 'OR';
16329
- conditions: ({
16330
- field: string;
16331
- operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
16332
- value?: unknown | undefined;
16333
- } | {
16334
- operator: 'AND' | 'OR';
16335
- conditions: ({
16336
- field: string;
16337
- operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
16338
- value?: unknown | undefined;
16339
- } | {
16340
- operator: 'AND' | 'OR';
16341
- conditions: {
16342
- field: string;
16343
- operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
16344
- value?: unknown | undefined;
16345
- }[];
16346
- })[];
16347
- })[];
16348
- } | undefined;
16349
16437
  };
16350
- } | undefined;
16438
+ };
16439
+ connections: {
16440
+ [key: string]: {
16441
+ kind: 'author' | 'invoker' | 'platform';
16442
+ toolkit: string;
16443
+ connectionId: string;
16444
+ label?: string | undefined;
16445
+ scope?: ('shared' | 'per-author' | 'caller-supplied') | undefined;
16446
+ }[];
16447
+ };
16351
16448
  };
16352
16449
  } | {
16353
16450
  value: {
16354
16451
  [key: string]: {
16355
- tools?: {
16452
+ tools: {
16356
16453
  [key: string]: {
16454
+ toolkit?: string | undefined;
16357
16455
  description?: string | undefined;
16358
- rules?: {
16359
- operator: 'AND' | 'OR';
16360
- conditions: ({
16361
- field: string;
16362
- operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
16363
- value?: unknown | undefined;
16364
- } | {
16365
- operator: 'AND' | 'OR';
16366
- conditions: ({
16367
- field: string;
16368
- operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
16369
- value?: unknown | undefined;
16370
- } | {
16371
- operator: 'AND' | 'OR';
16372
- conditions: {
16373
- field: string;
16374
- operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
16375
- value?: unknown | undefined;
16376
- }[];
16377
- })[];
16378
- })[];
16379
- } | undefined;
16380
16456
  };
16381
- } | undefined;
16457
+ };
16458
+ connections: {
16459
+ [key: string]: {
16460
+ kind: 'author' | 'invoker' | 'platform';
16461
+ toolkit: string;
16462
+ connectionId: string;
16463
+ label?: string | undefined;
16464
+ scope?: ('shared' | 'per-author' | 'caller-supplied') | undefined;
16465
+ }[];
16466
+ };
16382
16467
  };
16383
16468
  };
16384
16469
  rules?: {
@@ -16403,75 +16488,159 @@ export type GetStoredAgentsStoredAgentId_Response = {
16403
16488
  })[];
16404
16489
  })[];
16405
16490
  } | undefined;
16406
- }[]) | undefined;
16407
- /** Input processor graph — static or conditional */
16408
- inputProcessors?: ({
16409
- /** Ordered list of processor graph entries */
16410
- steps: ({
16411
- type: 'step';
16412
- step: {
16413
- /** Unique ID for this step within the graph */
16414
- id: string;
16415
- /** ProcessorProvider ID that creates this processor */
16416
- providerId: string;
16417
- /** Configuration matching the provider configSchema */
16418
- config: {
16419
- [key: string]: unknown;
16420
- };
16421
- /** Which processor phases to enable */
16422
- enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep')[];
16423
- };
16424
- } | {
16425
- type: 'parallel';
16426
- branches: ({
16427
- type: 'step';
16428
- step: {
16429
- /** Unique ID for this step within the graph */
16430
- id: string;
16431
- /** ProcessorProvider ID that creates this processor */
16432
- providerId: string;
16433
- /** Configuration matching the provider configSchema */
16434
- config: {
16435
- [key: string]: unknown;
16436
- };
16437
- /** Which processor phases to enable */
16438
- enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep')[];
16439
- };
16440
- } | {
16441
- type: 'parallel';
16442
- branches: {
16443
- type: 'step';
16444
- step: {
16445
- /** Unique ID for this step within the graph */
16446
- id: string;
16447
- /** ProcessorProvider ID that creates this processor */
16448
- providerId: string;
16449
- /** Configuration matching the provider configSchema */
16450
- config: {
16451
- [key: string]: unknown;
16452
- };
16453
- /** Which processor phases to enable */
16454
- enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep')[];
16455
- };
16456
- }[][];
16457
- } | {
16458
- type: 'conditional';
16459
- conditions: {
16460
- steps: {
16461
- type: 'step';
16462
- step: {
16463
- /** Unique ID for this step within the graph */
16464
- id: string;
16465
- /** ProcessorProvider ID that creates this processor */
16466
- providerId: string;
16467
- /** Configuration matching the provider configSchema */
16468
- config: {
16469
- [key: string]: unknown;
16470
- };
16471
- /** Which processor phases to enable */
16472
- enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep')[];
16473
- };
16474
- }[];
16491
+ }[]) | undefined) | undefined;
16492
+ mcpClients?: (({
16493
+ [key: string]: {
16494
+ tools?: {
16495
+ [key: string]: {
16496
+ description?: string | undefined;
16497
+ rules?: {
16498
+ operator: 'AND' | 'OR';
16499
+ conditions: ({
16500
+ field: string;
16501
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
16502
+ value?: unknown | undefined;
16503
+ } | {
16504
+ operator: 'AND' | 'OR';
16505
+ conditions: ({
16506
+ field: string;
16507
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
16508
+ value?: unknown | undefined;
16509
+ } | {
16510
+ operator: 'AND' | 'OR';
16511
+ conditions: {
16512
+ field: string;
16513
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
16514
+ value?: unknown | undefined;
16515
+ }[];
16516
+ })[];
16517
+ })[];
16518
+ } | undefined;
16519
+ };
16520
+ } | undefined;
16521
+ };
16522
+ } | {
16523
+ value: {
16524
+ [key: string]: {
16525
+ tools?: {
16526
+ [key: string]: {
16527
+ description?: string | undefined;
16528
+ rules?: {
16529
+ operator: 'AND' | 'OR';
16530
+ conditions: ({
16531
+ field: string;
16532
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
16533
+ value?: unknown | undefined;
16534
+ } | {
16535
+ operator: 'AND' | 'OR';
16536
+ conditions: ({
16537
+ field: string;
16538
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
16539
+ value?: unknown | undefined;
16540
+ } | {
16541
+ operator: 'AND' | 'OR';
16542
+ conditions: {
16543
+ field: string;
16544
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
16545
+ value?: unknown | undefined;
16546
+ }[];
16547
+ })[];
16548
+ })[];
16549
+ } | undefined;
16550
+ };
16551
+ } | undefined;
16552
+ };
16553
+ };
16554
+ rules?: {
16555
+ operator: 'AND' | 'OR';
16556
+ conditions: ({
16557
+ field: string;
16558
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
16559
+ value?: unknown | undefined;
16560
+ } | {
16561
+ operator: 'AND' | 'OR';
16562
+ conditions: ({
16563
+ field: string;
16564
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
16565
+ value?: unknown | undefined;
16566
+ } | {
16567
+ operator: 'AND' | 'OR';
16568
+ conditions: {
16569
+ field: string;
16570
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
16571
+ value?: unknown | undefined;
16572
+ }[];
16573
+ })[];
16574
+ })[];
16575
+ } | undefined;
16576
+ }[]) | undefined) | undefined;
16577
+ inputProcessors?: (({
16578
+ /** Ordered list of processor graph entries */
16579
+ steps: ({
16580
+ type: 'step';
16581
+ step: {
16582
+ /** Unique ID for this step within the graph */
16583
+ id: string;
16584
+ /** ProcessorProvider ID that creates this processor */
16585
+ providerId: string;
16586
+ /** Configuration matching the provider configSchema */
16587
+ config: {
16588
+ [key: string]: unknown;
16589
+ };
16590
+ /** Which processor phases to enable */
16591
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep')[];
16592
+ };
16593
+ } | {
16594
+ type: 'parallel';
16595
+ branches: ({
16596
+ type: 'step';
16597
+ step: {
16598
+ /** Unique ID for this step within the graph */
16599
+ id: string;
16600
+ /** ProcessorProvider ID that creates this processor */
16601
+ providerId: string;
16602
+ /** Configuration matching the provider configSchema */
16603
+ config: {
16604
+ [key: string]: unknown;
16605
+ };
16606
+ /** Which processor phases to enable */
16607
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep')[];
16608
+ };
16609
+ } | {
16610
+ type: 'parallel';
16611
+ branches: {
16612
+ type: 'step';
16613
+ step: {
16614
+ /** Unique ID for this step within the graph */
16615
+ id: string;
16616
+ /** ProcessorProvider ID that creates this processor */
16617
+ providerId: string;
16618
+ /** Configuration matching the provider configSchema */
16619
+ config: {
16620
+ [key: string]: unknown;
16621
+ };
16622
+ /** Which processor phases to enable */
16623
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep')[];
16624
+ };
16625
+ }[][];
16626
+ } | {
16627
+ type: 'conditional';
16628
+ conditions: {
16629
+ steps: {
16630
+ type: 'step';
16631
+ step: {
16632
+ /** Unique ID for this step within the graph */
16633
+ id: string;
16634
+ /** ProcessorProvider ID that creates this processor */
16635
+ providerId: string;
16636
+ /** Configuration matching the provider configSchema */
16637
+ config: {
16638
+ [key: string]: unknown;
16639
+ };
16640
+ /** Which processor phases to enable */
16641
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep')[];
16642
+ };
16643
+ }[];
16475
16644
  rules?: {
16476
16645
  operator: 'AND' | 'OR';
16477
16646
  conditions: ({
@@ -16811,9 +16980,8 @@ export type GetStoredAgentsStoredAgentId_Response = {
16811
16980
  })[];
16812
16981
  })[];
16813
16982
  } | undefined;
16814
- }[]) | undefined;
16815
- /** Output processor graph — static or conditional */
16816
- outputProcessors?: ({
16983
+ }[]) | undefined) | undefined;
16984
+ outputProcessors?: (({
16817
16985
  /** Ordered list of processor graph entries */
16818
16986
  steps: ({
16819
16987
  type: 'step';
@@ -17219,9 +17387,8 @@ export type GetStoredAgentsStoredAgentId_Response = {
17219
17387
  })[];
17220
17388
  })[];
17221
17389
  } | undefined;
17222
- }[]) | undefined;
17223
- /** Memory configuration — static or conditional */
17224
- memory?: ({
17390
+ }[]) | undefined) | undefined;
17391
+ memory?: ((({
17225
17392
  /** Vector database identifier or false to disable */
17226
17393
  vector?: (string | false) | undefined;
17227
17394
  /** Memory behavior configuration, excluding workingMemory and threads */
@@ -17425,9 +17592,8 @@ export type GetStoredAgentsStoredAgentId_Response = {
17425
17592
  })[];
17426
17593
  })[];
17427
17594
  } | undefined;
17428
- }[]) | undefined;
17429
- /** Scorer keys with optional sampling config — static or conditional */
17430
- scorers?: ({
17595
+ }[]) | null) | undefined) | undefined;
17596
+ scorers?: (({
17431
17597
  [key: string]: {
17432
17598
  description?: string | undefined;
17433
17599
  sampling?: ({
@@ -17515,9 +17681,8 @@ export type GetStoredAgentsStoredAgentId_Response = {
17515
17681
  })[];
17516
17682
  })[];
17517
17683
  } | undefined;
17518
- }[]) | undefined;
17519
- /** Skill IDs mapped to per-skill config — static or conditional */
17520
- skills?: ({
17684
+ }[]) | undefined) | undefined;
17685
+ skills?: (({
17521
17686
  [key: string]: {
17522
17687
  description?: string | undefined;
17523
17688
  instructions?: string | undefined;
@@ -17555,9 +17720,8 @@ export type GetStoredAgentsStoredAgentId_Response = {
17555
17720
  })[];
17556
17721
  })[];
17557
17722
  } | undefined;
17558
- }[]) | undefined;
17559
- /** Workspace reference (stored ID or inline config) — static or conditional */
17560
- workspace?: (({
17723
+ }[]) | undefined) | undefined;
17724
+ workspace?: ((({
17561
17725
  type: 'id';
17562
17726
  workspaceId: string;
17563
17727
  } | {
@@ -17761,9 +17925,8 @@ export type GetStoredAgentsStoredAgentId_Response = {
17761
17925
  })[];
17762
17926
  })[];
17763
17927
  } | undefined;
17764
- }[]) | undefined;
17765
- /** Browser configuration — object config, true (apply default), false/null (disable) */
17766
- browser?: (({
17928
+ }[]) | undefined) | undefined;
17929
+ browser?: ((({
17767
17930
  type: 'inline';
17768
17931
  config: {
17769
17932
  /** Browser provider type (e.g., stagehand, playwright) */
@@ -17847,42 +18010,62 @@ export type GetStoredAgentsStoredAgentId_Response = {
17847
18010
  })[];
17848
18011
  })[];
17849
18012
  } | undefined;
17850
- }[]) | boolean | null) | undefined;
17851
- /** JSON Schema defining valid request context variables */
17852
- requestContextSchema?: {
18013
+ }[]) | boolean | null) | undefined) | undefined;
18014
+ requestContextSchema?: ({
17853
18015
  [key: string]: unknown;
17854
- } | undefined;
18016
+ } | undefined) | undefined;
17855
18017
  };
17856
- export type GetStoredAgentsStoredAgentId_Request = Simplify<(GetStoredAgentsStoredAgentId_PathParams extends never ? {} : {
17857
- params: GetStoredAgentsStoredAgentId_PathParams;
17858
- }) & (GetStoredAgentsStoredAgentId_QueryParams extends never ? {} : {} extends GetStoredAgentsStoredAgentId_QueryParams ? {
17859
- query?: GetStoredAgentsStoredAgentId_QueryParams;
17860
- } : {
17861
- 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;
17862
18028
  }) & (never extends never ? {} : {} extends never ? {
17863
- body?: never;
18029
+ query?: never;
17864
18030
  } : {
17865
- body: never;
18031
+ query: never;
18032
+ }) & (PostStoredAgentsStoredAgentIdExport_Body extends never ? {} : {} extends PostStoredAgentsStoredAgentIdExport_Body ? {
18033
+ body?: PostStoredAgentsStoredAgentIdExport_Body;
18034
+ } : {
18035
+ body: PostStoredAgentsStoredAgentIdExport_Body;
17866
18036
  })>;
17867
- export interface GetStoredAgentsStoredAgentId_RouteContract {
17868
- pathParams: GetStoredAgentsStoredAgentId_PathParams;
17869
- queryParams: GetStoredAgentsStoredAgentId_QueryParams;
17870
- body: never;
17871
- request: GetStoredAgentsStoredAgentId_Request;
17872
- 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;
17873
18043
  responseType: 'json';
17874
18044
  }
17875
- export type PostStoredAgents_Body = {
17876
- /** Unique identifier for the agent. If not provided, derived from name. */
17877
- id?: string | undefined;
17878
- /** 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;
17879
18058
  authorId?: string | undefined;
17880
- /** Additional metadata for the agent */
17881
18059
  metadata?: {
17882
18060
  [key: string]: unknown;
17883
18061
  } | undefined;
17884
- /** Agent visibility: private (owner/admin only) or public (any reader) */
17885
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;
17886
18069
  /** Name of the agent */
17887
18070
  name: string;
17888
18071
  /** Description of the agent */
@@ -17920,8 +18103,8 @@ export type PostStoredAgents_Body = {
17920
18103
  })[];
17921
18104
  } | undefined;
17922
18105
  })[];
17923
- /** Model configuration — static value or array of conditional variants. When omitted, the builder default model is applied server-side. */
17924
- model?: ({
18106
+ /** Model configuration — static value or array of conditional variants */
18107
+ model: {
17925
18108
  /** Model provider (e.g., openai, anthropic) */
17926
18109
  provider: string;
17927
18110
  /** Model name (e.g., gpt-4o, claude-3-opus) */
@@ -17957,7 +18140,7 @@ export type PostStoredAgents_Body = {
17957
18140
  })[];
17958
18141
  })[];
17959
18142
  } | undefined;
17960
- }[]) | undefined;
18143
+ }[];
17961
18144
  /** Tool keys mapped to per-tool config — static or conditional */
17962
18145
  tools?: ({
17963
18146
  [key: string]: {
@@ -18375,6 +18558,2187 @@ export type PostStoredAgents_Body = {
18375
18558
  })[];
18376
18559
  } | undefined;
18377
18560
  }[]) | undefined;
18561
+ /** Tool provider connections and per-tool config (provider-agnostic). Coexists with the deprecated `integrationTools` field. */
18562
+ toolProviders?: ({
18563
+ [key: string]: {
18564
+ tools: {
18565
+ [key: string]: {
18566
+ toolkit?: string | undefined;
18567
+ description?: string | undefined;
18568
+ };
18569
+ };
18570
+ connections: {
18571
+ [key: string]: {
18572
+ kind: 'author' | 'invoker' | 'platform';
18573
+ toolkit: string;
18574
+ connectionId: string;
18575
+ label?: string | undefined;
18576
+ scope?: ('shared' | 'per-author' | 'caller-supplied') | undefined;
18577
+ }[];
18578
+ };
18579
+ };
18580
+ } | {
18581
+ value: {
18582
+ [key: string]: {
18583
+ tools: {
18584
+ [key: string]: {
18585
+ toolkit?: string | undefined;
18586
+ description?: string | undefined;
18587
+ };
18588
+ };
18589
+ connections: {
18590
+ [key: string]: {
18591
+ kind: 'author' | 'invoker' | 'platform';
18592
+ toolkit: string;
18593
+ connectionId: string;
18594
+ label?: string | undefined;
18595
+ scope?: ('shared' | 'per-author' | 'caller-supplied') | undefined;
18596
+ }[];
18597
+ };
18598
+ };
18599
+ };
18600
+ rules?: {
18601
+ operator: 'AND' | 'OR';
18602
+ conditions: ({
18603
+ field: string;
18604
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
18605
+ value?: unknown | undefined;
18606
+ } | {
18607
+ operator: 'AND' | 'OR';
18608
+ conditions: ({
18609
+ field: string;
18610
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
18611
+ value?: unknown | undefined;
18612
+ } | {
18613
+ operator: 'AND' | 'OR';
18614
+ conditions: {
18615
+ field: string;
18616
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
18617
+ value?: unknown | undefined;
18618
+ }[];
18619
+ })[];
18620
+ })[];
18621
+ } | undefined;
18622
+ }[]) | undefined;
18623
+ /** Map of stored MCP client IDs to their tool configurations — static or conditional */
18624
+ mcpClients?: ({
18625
+ [key: string]: {
18626
+ tools?: {
18627
+ [key: string]: {
18628
+ description?: string | undefined;
18629
+ rules?: {
18630
+ operator: 'AND' | 'OR';
18631
+ conditions: ({
18632
+ field: string;
18633
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
18634
+ value?: unknown | undefined;
18635
+ } | {
18636
+ operator: 'AND' | 'OR';
18637
+ conditions: ({
18638
+ field: string;
18639
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
18640
+ value?: unknown | undefined;
18641
+ } | {
18642
+ operator: 'AND' | 'OR';
18643
+ conditions: {
18644
+ field: string;
18645
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
18646
+ value?: unknown | undefined;
18647
+ }[];
18648
+ })[];
18649
+ })[];
18650
+ } | undefined;
18651
+ };
18652
+ } | undefined;
18653
+ };
18654
+ } | {
18655
+ value: {
18656
+ [key: string]: {
18657
+ tools?: {
18658
+ [key: string]: {
18659
+ description?: string | undefined;
18660
+ rules?: {
18661
+ operator: 'AND' | 'OR';
18662
+ conditions: ({
18663
+ field: string;
18664
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
18665
+ value?: unknown | undefined;
18666
+ } | {
18667
+ operator: 'AND' | 'OR';
18668
+ conditions: ({
18669
+ field: string;
18670
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
18671
+ value?: unknown | undefined;
18672
+ } | {
18673
+ operator: 'AND' | 'OR';
18674
+ conditions: {
18675
+ field: string;
18676
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
18677
+ value?: unknown | undefined;
18678
+ }[];
18679
+ })[];
18680
+ })[];
18681
+ } | undefined;
18682
+ };
18683
+ } | undefined;
18684
+ };
18685
+ };
18686
+ rules?: {
18687
+ operator: 'AND' | 'OR';
18688
+ conditions: ({
18689
+ field: string;
18690
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
18691
+ value?: unknown | undefined;
18692
+ } | {
18693
+ operator: 'AND' | 'OR';
18694
+ conditions: ({
18695
+ field: string;
18696
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
18697
+ value?: unknown | undefined;
18698
+ } | {
18699
+ operator: 'AND' | 'OR';
18700
+ conditions: {
18701
+ field: string;
18702
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
18703
+ value?: unknown | undefined;
18704
+ }[];
18705
+ })[];
18706
+ })[];
18707
+ } | undefined;
18708
+ }[]) | undefined;
18709
+ /** Input processor graph — static or conditional */
18710
+ inputProcessors?: ({
18711
+ /** Ordered list of processor graph entries */
18712
+ steps: ({
18713
+ type: 'step';
18714
+ step: {
18715
+ /** Unique ID for this step within the graph */
18716
+ id: string;
18717
+ /** ProcessorProvider ID that creates this processor */
18718
+ providerId: string;
18719
+ /** Configuration matching the provider configSchema */
18720
+ config: {
18721
+ [key: string]: unknown;
18722
+ };
18723
+ /** Which processor phases to enable */
18724
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep')[];
18725
+ };
18726
+ } | {
18727
+ type: 'parallel';
18728
+ branches: ({
18729
+ type: 'step';
18730
+ step: {
18731
+ /** Unique ID for this step within the graph */
18732
+ id: string;
18733
+ /** ProcessorProvider ID that creates this processor */
18734
+ providerId: string;
18735
+ /** Configuration matching the provider configSchema */
18736
+ config: {
18737
+ [key: string]: unknown;
18738
+ };
18739
+ /** Which processor phases to enable */
18740
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep')[];
18741
+ };
18742
+ } | {
18743
+ type: 'parallel';
18744
+ branches: {
18745
+ type: 'step';
18746
+ step: {
18747
+ /** Unique ID for this step within the graph */
18748
+ id: string;
18749
+ /** ProcessorProvider ID that creates this processor */
18750
+ providerId: string;
18751
+ /** Configuration matching the provider configSchema */
18752
+ config: {
18753
+ [key: string]: unknown;
18754
+ };
18755
+ /** Which processor phases to enable */
18756
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep')[];
18757
+ };
18758
+ }[][];
18759
+ } | {
18760
+ type: 'conditional';
18761
+ conditions: {
18762
+ steps: {
18763
+ type: 'step';
18764
+ step: {
18765
+ /** Unique ID for this step within the graph */
18766
+ id: string;
18767
+ /** ProcessorProvider ID that creates this processor */
18768
+ providerId: string;
18769
+ /** Configuration matching the provider configSchema */
18770
+ config: {
18771
+ [key: string]: unknown;
18772
+ };
18773
+ /** Which processor phases to enable */
18774
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep')[];
18775
+ };
18776
+ }[];
18777
+ rules?: {
18778
+ operator: 'AND' | 'OR';
18779
+ conditions: ({
18780
+ field: string;
18781
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
18782
+ value?: unknown | undefined;
18783
+ } | {
18784
+ operator: 'AND' | 'OR';
18785
+ conditions: ({
18786
+ field: string;
18787
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
18788
+ value?: unknown | undefined;
18789
+ } | {
18790
+ operator: 'AND' | 'OR';
18791
+ conditions: {
18792
+ field: string;
18793
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
18794
+ value?: unknown | undefined;
18795
+ }[];
18796
+ })[];
18797
+ })[];
18798
+ } | undefined;
18799
+ }[];
18800
+ })[][];
18801
+ } | {
18802
+ type: 'conditional';
18803
+ conditions: {
18804
+ steps: ({
18805
+ type: 'step';
18806
+ step: {
18807
+ /** Unique ID for this step within the graph */
18808
+ id: string;
18809
+ /** ProcessorProvider ID that creates this processor */
18810
+ providerId: string;
18811
+ /** Configuration matching the provider configSchema */
18812
+ config: {
18813
+ [key: string]: unknown;
18814
+ };
18815
+ /** Which processor phases to enable */
18816
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep')[];
18817
+ };
18818
+ } | {
18819
+ type: 'parallel';
18820
+ branches: {
18821
+ type: 'step';
18822
+ step: {
18823
+ /** Unique ID for this step within the graph */
18824
+ id: string;
18825
+ /** ProcessorProvider ID that creates this processor */
18826
+ providerId: string;
18827
+ /** Configuration matching the provider configSchema */
18828
+ config: {
18829
+ [key: string]: unknown;
18830
+ };
18831
+ /** Which processor phases to enable */
18832
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep')[];
18833
+ };
18834
+ }[][];
18835
+ } | {
18836
+ type: 'conditional';
18837
+ conditions: {
18838
+ steps: {
18839
+ type: 'step';
18840
+ step: {
18841
+ /** Unique ID for this step within the graph */
18842
+ id: string;
18843
+ /** ProcessorProvider ID that creates this processor */
18844
+ providerId: string;
18845
+ /** Configuration matching the provider configSchema */
18846
+ config: {
18847
+ [key: string]: unknown;
18848
+ };
18849
+ /** Which processor phases to enable */
18850
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep')[];
18851
+ };
18852
+ }[];
18853
+ rules?: {
18854
+ operator: 'AND' | 'OR';
18855
+ conditions: ({
18856
+ field: string;
18857
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
18858
+ value?: unknown | undefined;
18859
+ } | {
18860
+ operator: 'AND' | 'OR';
18861
+ conditions: ({
18862
+ field: string;
18863
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
18864
+ value?: unknown | undefined;
18865
+ } | {
18866
+ operator: 'AND' | 'OR';
18867
+ conditions: {
18868
+ field: string;
18869
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
18870
+ value?: unknown | undefined;
18871
+ }[];
18872
+ })[];
18873
+ })[];
18874
+ } | undefined;
18875
+ }[];
18876
+ })[];
18877
+ rules?: {
18878
+ operator: 'AND' | 'OR';
18879
+ conditions: ({
18880
+ field: string;
18881
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
18882
+ value?: unknown | undefined;
18883
+ } | {
18884
+ operator: 'AND' | 'OR';
18885
+ conditions: ({
18886
+ field: string;
18887
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
18888
+ value?: unknown | undefined;
18889
+ } | {
18890
+ operator: 'AND' | 'OR';
18891
+ conditions: {
18892
+ field: string;
18893
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
18894
+ value?: unknown | undefined;
18895
+ }[];
18896
+ })[];
18897
+ })[];
18898
+ } | undefined;
18899
+ }[];
18900
+ })[];
18901
+ } | {
18902
+ value: {
18903
+ /** Ordered list of processor graph entries */
18904
+ steps: ({
18905
+ type: 'step';
18906
+ step: {
18907
+ /** Unique ID for this step within the graph */
18908
+ id: string;
18909
+ /** ProcessorProvider ID that creates this processor */
18910
+ providerId: string;
18911
+ /** Configuration matching the provider configSchema */
18912
+ config: {
18913
+ [key: string]: unknown;
18914
+ };
18915
+ /** Which processor phases to enable */
18916
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep')[];
18917
+ };
18918
+ } | {
18919
+ type: 'parallel';
18920
+ branches: ({
18921
+ type: 'step';
18922
+ step: {
18923
+ /** Unique ID for this step within the graph */
18924
+ id: string;
18925
+ /** ProcessorProvider ID that creates this processor */
18926
+ providerId: string;
18927
+ /** Configuration matching the provider configSchema */
18928
+ config: {
18929
+ [key: string]: unknown;
18930
+ };
18931
+ /** Which processor phases to enable */
18932
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep')[];
18933
+ };
18934
+ } | {
18935
+ type: 'parallel';
18936
+ branches: {
18937
+ type: 'step';
18938
+ step: {
18939
+ /** Unique ID for this step within the graph */
18940
+ id: string;
18941
+ /** ProcessorProvider ID that creates this processor */
18942
+ providerId: string;
18943
+ /** Configuration matching the provider configSchema */
18944
+ config: {
18945
+ [key: string]: unknown;
18946
+ };
18947
+ /** Which processor phases to enable */
18948
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep')[];
18949
+ };
18950
+ }[][];
18951
+ } | {
18952
+ type: 'conditional';
18953
+ conditions: {
18954
+ steps: {
18955
+ type: 'step';
18956
+ step: {
18957
+ /** Unique ID for this step within the graph */
18958
+ id: string;
18959
+ /** ProcessorProvider ID that creates this processor */
18960
+ providerId: string;
18961
+ /** Configuration matching the provider configSchema */
18962
+ config: {
18963
+ [key: string]: unknown;
18964
+ };
18965
+ /** Which processor phases to enable */
18966
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep')[];
18967
+ };
18968
+ }[];
18969
+ rules?: {
18970
+ operator: 'AND' | 'OR';
18971
+ conditions: ({
18972
+ field: string;
18973
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
18974
+ value?: unknown | undefined;
18975
+ } | {
18976
+ operator: 'AND' | 'OR';
18977
+ conditions: ({
18978
+ field: string;
18979
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
18980
+ value?: unknown | undefined;
18981
+ } | {
18982
+ operator: 'AND' | 'OR';
18983
+ conditions: {
18984
+ field: string;
18985
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
18986
+ value?: unknown | undefined;
18987
+ }[];
18988
+ })[];
18989
+ })[];
18990
+ } | undefined;
18991
+ }[];
18992
+ })[][];
18993
+ } | {
18994
+ type: 'conditional';
18995
+ conditions: {
18996
+ steps: ({
18997
+ type: 'step';
18998
+ step: {
18999
+ /** Unique ID for this step within the graph */
19000
+ id: string;
19001
+ /** ProcessorProvider ID that creates this processor */
19002
+ providerId: string;
19003
+ /** Configuration matching the provider configSchema */
19004
+ config: {
19005
+ [key: string]: unknown;
19006
+ };
19007
+ /** Which processor phases to enable */
19008
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep')[];
19009
+ };
19010
+ } | {
19011
+ type: 'parallel';
19012
+ branches: {
19013
+ type: 'step';
19014
+ step: {
19015
+ /** Unique ID for this step within the graph */
19016
+ id: string;
19017
+ /** ProcessorProvider ID that creates this processor */
19018
+ providerId: string;
19019
+ /** Configuration matching the provider configSchema */
19020
+ config: {
19021
+ [key: string]: unknown;
19022
+ };
19023
+ /** Which processor phases to enable */
19024
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep')[];
19025
+ };
19026
+ }[][];
19027
+ } | {
19028
+ type: 'conditional';
19029
+ conditions: {
19030
+ steps: {
19031
+ type: 'step';
19032
+ step: {
19033
+ /** Unique ID for this step within the graph */
19034
+ id: string;
19035
+ /** ProcessorProvider ID that creates this processor */
19036
+ providerId: string;
19037
+ /** Configuration matching the provider configSchema */
19038
+ config: {
19039
+ [key: string]: unknown;
19040
+ };
19041
+ /** Which processor phases to enable */
19042
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep')[];
19043
+ };
19044
+ }[];
19045
+ rules?: {
19046
+ operator: 'AND' | 'OR';
19047
+ conditions: ({
19048
+ field: string;
19049
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
19050
+ value?: unknown | undefined;
19051
+ } | {
19052
+ operator: 'AND' | 'OR';
19053
+ conditions: ({
19054
+ field: string;
19055
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
19056
+ value?: unknown | undefined;
19057
+ } | {
19058
+ operator: 'AND' | 'OR';
19059
+ conditions: {
19060
+ field: string;
19061
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
19062
+ value?: unknown | undefined;
19063
+ }[];
19064
+ })[];
19065
+ })[];
19066
+ } | undefined;
19067
+ }[];
19068
+ })[];
19069
+ rules?: {
19070
+ operator: 'AND' | 'OR';
19071
+ conditions: ({
19072
+ field: string;
19073
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
19074
+ value?: unknown | undefined;
19075
+ } | {
19076
+ operator: 'AND' | 'OR';
19077
+ conditions: ({
19078
+ field: string;
19079
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
19080
+ value?: unknown | undefined;
19081
+ } | {
19082
+ operator: 'AND' | 'OR';
19083
+ conditions: {
19084
+ field: string;
19085
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
19086
+ value?: unknown | undefined;
19087
+ }[];
19088
+ })[];
19089
+ })[];
19090
+ } | undefined;
19091
+ }[];
19092
+ })[];
19093
+ };
19094
+ rules?: {
19095
+ operator: 'AND' | 'OR';
19096
+ conditions: ({
19097
+ field: string;
19098
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
19099
+ value?: unknown | undefined;
19100
+ } | {
19101
+ operator: 'AND' | 'OR';
19102
+ conditions: ({
19103
+ field: string;
19104
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
19105
+ value?: unknown | undefined;
19106
+ } | {
19107
+ operator: 'AND' | 'OR';
19108
+ conditions: {
19109
+ field: string;
19110
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
19111
+ value?: unknown | undefined;
19112
+ }[];
19113
+ })[];
19114
+ })[];
19115
+ } | undefined;
19116
+ }[]) | undefined;
19117
+ /** Output processor graph — static or conditional */
19118
+ outputProcessors?: ({
19119
+ /** Ordered list of processor graph entries */
19120
+ steps: ({
19121
+ type: 'step';
19122
+ step: {
19123
+ /** Unique ID for this step within the graph */
19124
+ id: string;
19125
+ /** ProcessorProvider ID that creates this processor */
19126
+ providerId: string;
19127
+ /** Configuration matching the provider configSchema */
19128
+ config: {
19129
+ [key: string]: unknown;
19130
+ };
19131
+ /** Which processor phases to enable */
19132
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep')[];
19133
+ };
19134
+ } | {
19135
+ type: 'parallel';
19136
+ branches: ({
19137
+ type: 'step';
19138
+ step: {
19139
+ /** Unique ID for this step within the graph */
19140
+ id: string;
19141
+ /** ProcessorProvider ID that creates this processor */
19142
+ providerId: string;
19143
+ /** Configuration matching the provider configSchema */
19144
+ config: {
19145
+ [key: string]: unknown;
19146
+ };
19147
+ /** Which processor phases to enable */
19148
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep')[];
19149
+ };
19150
+ } | {
19151
+ type: 'parallel';
19152
+ branches: {
19153
+ type: 'step';
19154
+ step: {
19155
+ /** Unique ID for this step within the graph */
19156
+ id: string;
19157
+ /** ProcessorProvider ID that creates this processor */
19158
+ providerId: string;
19159
+ /** Configuration matching the provider configSchema */
19160
+ config: {
19161
+ [key: string]: unknown;
19162
+ };
19163
+ /** Which processor phases to enable */
19164
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep')[];
19165
+ };
19166
+ }[][];
19167
+ } | {
19168
+ type: 'conditional';
19169
+ conditions: {
19170
+ steps: {
19171
+ type: 'step';
19172
+ step: {
19173
+ /** Unique ID for this step within the graph */
19174
+ id: string;
19175
+ /** ProcessorProvider ID that creates this processor */
19176
+ providerId: string;
19177
+ /** Configuration matching the provider configSchema */
19178
+ config: {
19179
+ [key: string]: unknown;
19180
+ };
19181
+ /** Which processor phases to enable */
19182
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep')[];
19183
+ };
19184
+ }[];
19185
+ rules?: {
19186
+ operator: 'AND' | 'OR';
19187
+ conditions: ({
19188
+ field: string;
19189
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
19190
+ value?: unknown | undefined;
19191
+ } | {
19192
+ operator: 'AND' | 'OR';
19193
+ conditions: ({
19194
+ field: string;
19195
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
19196
+ value?: unknown | undefined;
19197
+ } | {
19198
+ operator: 'AND' | 'OR';
19199
+ conditions: {
19200
+ field: string;
19201
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
19202
+ value?: unknown | undefined;
19203
+ }[];
19204
+ })[];
19205
+ })[];
19206
+ } | undefined;
19207
+ }[];
19208
+ })[][];
19209
+ } | {
19210
+ type: 'conditional';
19211
+ conditions: {
19212
+ steps: ({
19213
+ type: 'step';
19214
+ step: {
19215
+ /** Unique ID for this step within the graph */
19216
+ id: string;
19217
+ /** ProcessorProvider ID that creates this processor */
19218
+ providerId: string;
19219
+ /** Configuration matching the provider configSchema */
19220
+ config: {
19221
+ [key: string]: unknown;
19222
+ };
19223
+ /** Which processor phases to enable */
19224
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep')[];
19225
+ };
19226
+ } | {
19227
+ type: 'parallel';
19228
+ branches: {
19229
+ type: 'step';
19230
+ step: {
19231
+ /** Unique ID for this step within the graph */
19232
+ id: string;
19233
+ /** ProcessorProvider ID that creates this processor */
19234
+ providerId: string;
19235
+ /** Configuration matching the provider configSchema */
19236
+ config: {
19237
+ [key: string]: unknown;
19238
+ };
19239
+ /** Which processor phases to enable */
19240
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep')[];
19241
+ };
19242
+ }[][];
19243
+ } | {
19244
+ type: 'conditional';
19245
+ conditions: {
19246
+ steps: {
19247
+ type: 'step';
19248
+ step: {
19249
+ /** Unique ID for this step within the graph */
19250
+ id: string;
19251
+ /** ProcessorProvider ID that creates this processor */
19252
+ providerId: string;
19253
+ /** Configuration matching the provider configSchema */
19254
+ config: {
19255
+ [key: string]: unknown;
19256
+ };
19257
+ /** Which processor phases to enable */
19258
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep')[];
19259
+ };
19260
+ }[];
19261
+ rules?: {
19262
+ operator: 'AND' | 'OR';
19263
+ conditions: ({
19264
+ field: string;
19265
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
19266
+ value?: unknown | undefined;
19267
+ } | {
19268
+ operator: 'AND' | 'OR';
19269
+ conditions: ({
19270
+ field: string;
19271
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
19272
+ value?: unknown | undefined;
19273
+ } | {
19274
+ operator: 'AND' | 'OR';
19275
+ conditions: {
19276
+ field: string;
19277
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
19278
+ value?: unknown | undefined;
19279
+ }[];
19280
+ })[];
19281
+ })[];
19282
+ } | undefined;
19283
+ }[];
19284
+ })[];
19285
+ rules?: {
19286
+ operator: 'AND' | 'OR';
19287
+ conditions: ({
19288
+ field: string;
19289
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
19290
+ value?: unknown | undefined;
19291
+ } | {
19292
+ operator: 'AND' | 'OR';
19293
+ conditions: ({
19294
+ field: string;
19295
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
19296
+ value?: unknown | undefined;
19297
+ } | {
19298
+ operator: 'AND' | 'OR';
19299
+ conditions: {
19300
+ field: string;
19301
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
19302
+ value?: unknown | undefined;
19303
+ }[];
19304
+ })[];
19305
+ })[];
19306
+ } | undefined;
19307
+ }[];
19308
+ })[];
19309
+ } | {
19310
+ value: {
19311
+ /** Ordered list of processor graph entries */
19312
+ steps: ({
19313
+ type: 'step';
19314
+ step: {
19315
+ /** Unique ID for this step within the graph */
19316
+ id: string;
19317
+ /** ProcessorProvider ID that creates this processor */
19318
+ providerId: string;
19319
+ /** Configuration matching the provider configSchema */
19320
+ config: {
19321
+ [key: string]: unknown;
19322
+ };
19323
+ /** Which processor phases to enable */
19324
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep')[];
19325
+ };
19326
+ } | {
19327
+ type: 'parallel';
19328
+ branches: ({
19329
+ type: 'step';
19330
+ step: {
19331
+ /** Unique ID for this step within the graph */
19332
+ id: string;
19333
+ /** ProcessorProvider ID that creates this processor */
19334
+ providerId: string;
19335
+ /** Configuration matching the provider configSchema */
19336
+ config: {
19337
+ [key: string]: unknown;
19338
+ };
19339
+ /** Which processor phases to enable */
19340
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep')[];
19341
+ };
19342
+ } | {
19343
+ type: 'parallel';
19344
+ branches: {
19345
+ type: 'step';
19346
+ step: {
19347
+ /** Unique ID for this step within the graph */
19348
+ id: string;
19349
+ /** ProcessorProvider ID that creates this processor */
19350
+ providerId: string;
19351
+ /** Configuration matching the provider configSchema */
19352
+ config: {
19353
+ [key: string]: unknown;
19354
+ };
19355
+ /** Which processor phases to enable */
19356
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep')[];
19357
+ };
19358
+ }[][];
19359
+ } | {
19360
+ type: 'conditional';
19361
+ conditions: {
19362
+ steps: {
19363
+ type: 'step';
19364
+ step: {
19365
+ /** Unique ID for this step within the graph */
19366
+ id: string;
19367
+ /** ProcessorProvider ID that creates this processor */
19368
+ providerId: string;
19369
+ /** Configuration matching the provider configSchema */
19370
+ config: {
19371
+ [key: string]: unknown;
19372
+ };
19373
+ /** Which processor phases to enable */
19374
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep')[];
19375
+ };
19376
+ }[];
19377
+ rules?: {
19378
+ operator: 'AND' | 'OR';
19379
+ conditions: ({
19380
+ field: string;
19381
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
19382
+ value?: unknown | undefined;
19383
+ } | {
19384
+ operator: 'AND' | 'OR';
19385
+ conditions: ({
19386
+ field: string;
19387
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
19388
+ value?: unknown | undefined;
19389
+ } | {
19390
+ operator: 'AND' | 'OR';
19391
+ conditions: {
19392
+ field: string;
19393
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
19394
+ value?: unknown | undefined;
19395
+ }[];
19396
+ })[];
19397
+ })[];
19398
+ } | undefined;
19399
+ }[];
19400
+ })[][];
19401
+ } | {
19402
+ type: 'conditional';
19403
+ conditions: {
19404
+ steps: ({
19405
+ type: 'step';
19406
+ step: {
19407
+ /** Unique ID for this step within the graph */
19408
+ id: string;
19409
+ /** ProcessorProvider ID that creates this processor */
19410
+ providerId: string;
19411
+ /** Configuration matching the provider configSchema */
19412
+ config: {
19413
+ [key: string]: unknown;
19414
+ };
19415
+ /** Which processor phases to enable */
19416
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep')[];
19417
+ };
19418
+ } | {
19419
+ type: 'parallel';
19420
+ branches: {
19421
+ type: 'step';
19422
+ step: {
19423
+ /** Unique ID for this step within the graph */
19424
+ id: string;
19425
+ /** ProcessorProvider ID that creates this processor */
19426
+ providerId: string;
19427
+ /** Configuration matching the provider configSchema */
19428
+ config: {
19429
+ [key: string]: unknown;
19430
+ };
19431
+ /** Which processor phases to enable */
19432
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep')[];
19433
+ };
19434
+ }[][];
19435
+ } | {
19436
+ type: 'conditional';
19437
+ conditions: {
19438
+ steps: {
19439
+ type: 'step';
19440
+ step: {
19441
+ /** Unique ID for this step within the graph */
19442
+ id: string;
19443
+ /** ProcessorProvider ID that creates this processor */
19444
+ providerId: string;
19445
+ /** Configuration matching the provider configSchema */
19446
+ config: {
19447
+ [key: string]: unknown;
19448
+ };
19449
+ /** Which processor phases to enable */
19450
+ enabledPhases: ('processInput' | 'processInputStep' | 'processOutputStream' | 'processOutputResult' | 'processOutputStep')[];
19451
+ };
19452
+ }[];
19453
+ rules?: {
19454
+ operator: 'AND' | 'OR';
19455
+ conditions: ({
19456
+ field: string;
19457
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
19458
+ value?: unknown | undefined;
19459
+ } | {
19460
+ operator: 'AND' | 'OR';
19461
+ conditions: ({
19462
+ field: string;
19463
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
19464
+ value?: unknown | undefined;
19465
+ } | {
19466
+ operator: 'AND' | 'OR';
19467
+ conditions: {
19468
+ field: string;
19469
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
19470
+ value?: unknown | undefined;
19471
+ }[];
19472
+ })[];
19473
+ })[];
19474
+ } | undefined;
19475
+ }[];
19476
+ })[];
19477
+ rules?: {
19478
+ operator: 'AND' | 'OR';
19479
+ conditions: ({
19480
+ field: string;
19481
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
19482
+ value?: unknown | undefined;
19483
+ } | {
19484
+ operator: 'AND' | 'OR';
19485
+ conditions: ({
19486
+ field: string;
19487
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
19488
+ value?: unknown | undefined;
19489
+ } | {
19490
+ operator: 'AND' | 'OR';
19491
+ conditions: {
19492
+ field: string;
19493
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
19494
+ value?: unknown | undefined;
19495
+ }[];
19496
+ })[];
19497
+ })[];
19498
+ } | undefined;
19499
+ }[];
19500
+ })[];
19501
+ };
19502
+ rules?: {
19503
+ operator: 'AND' | 'OR';
19504
+ conditions: ({
19505
+ field: string;
19506
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
19507
+ value?: unknown | undefined;
19508
+ } | {
19509
+ operator: 'AND' | 'OR';
19510
+ conditions: ({
19511
+ field: string;
19512
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
19513
+ value?: unknown | undefined;
19514
+ } | {
19515
+ operator: 'AND' | 'OR';
19516
+ conditions: {
19517
+ field: string;
19518
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
19519
+ value?: unknown | undefined;
19520
+ }[];
19521
+ })[];
19522
+ })[];
19523
+ } | undefined;
19524
+ }[]) | undefined;
19525
+ /** Memory configuration — static or conditional */
19526
+ memory?: ({
19527
+ /** Vector database identifier or false to disable */
19528
+ vector?: (string | false) | undefined;
19529
+ /** Memory behavior configuration, excluding workingMemory and threads */
19530
+ options?: {
19531
+ readOnly?: boolean | undefined;
19532
+ lastMessages?: (number | false) | undefined;
19533
+ semanticRecall?: (boolean | {
19534
+ /** Number of semantically similar messages to retrieve */
19535
+ topK: number;
19536
+ /** Amount of surrounding context to include with each retrieved message */
19537
+ messageRange: number | {
19538
+ before: number;
19539
+ after: number;
19540
+ };
19541
+ /** Scope for semantic search queries */
19542
+ scope?: ('thread' | 'resource') | undefined;
19543
+ /** Minimum similarity score threshold */
19544
+ threshold?: number | undefined;
19545
+ /** Index name for the vector store */
19546
+ indexName?: string | undefined;
19547
+ }) | undefined;
19548
+ generateTitle?: (boolean | {
19549
+ /** Model ID in format provider/model-name (ModelRouterModelId) */
19550
+ model: string;
19551
+ /** Custom instructions for title generation */
19552
+ instructions?: string | undefined;
19553
+ }) | undefined;
19554
+ } | undefined;
19555
+ /** Embedding model ID in the format "provider/model" (e.g., "openai/text-embedding-3-small") */
19556
+ embedder?: string | undefined;
19557
+ /** Options to pass to the embedder, omitting telemetry */
19558
+ embedderOptions?: {
19559
+ [key: string]: unknown;
19560
+ } | undefined;
19561
+ /** Serialized observational memory configuration */
19562
+ observationalMemory?: (boolean | {
19563
+ /** Model ID for both Observer and Reflector */
19564
+ model?: string | undefined;
19565
+ /** Memory scope */
19566
+ scope?: ('resource' | 'thread') | undefined;
19567
+ /** Share token budget between messages and observations */
19568
+ shareTokenBudget?: boolean | undefined;
19569
+ /** Observation step configuration */
19570
+ observation?: {
19571
+ /** Observer model ID */
19572
+ model?: string | undefined;
19573
+ /** Token threshold that triggers observation */
19574
+ messageTokens?: number | undefined;
19575
+ /** Model settings (temperature, etc.) */
19576
+ modelSettings?: {
19577
+ [key: string]: unknown;
19578
+ } | undefined;
19579
+ /** Provider-specific options */
19580
+ providerOptions?: {
19581
+ [key: string]: {
19582
+ [key: string]: unknown;
19583
+ } | undefined;
19584
+ } | undefined;
19585
+ /** Maximum tokens per batch */
19586
+ maxTokensPerBatch?: number | undefined;
19587
+ /** Async buffering interval or false */
19588
+ bufferTokens?: (number | false) | undefined;
19589
+ /** Ratio of buffered observations to activate */
19590
+ bufferActivation?: number | undefined;
19591
+ /** Token threshold for synchronous blocking */
19592
+ blockAfter?: number | undefined;
19593
+ } | undefined;
19594
+ /** Reflection step configuration */
19595
+ reflection?: {
19596
+ /** Reflector model ID */
19597
+ model?: string | undefined;
19598
+ /** Token threshold that triggers reflection */
19599
+ observationTokens?: number | undefined;
19600
+ /** Model settings (temperature, etc.) */
19601
+ modelSettings?: {
19602
+ [key: string]: unknown;
19603
+ } | undefined;
19604
+ /** Provider-specific options */
19605
+ providerOptions?: {
19606
+ [key: string]: {
19607
+ [key: string]: unknown;
19608
+ } | undefined;
19609
+ } | undefined;
19610
+ /** Token threshold for synchronous blocking */
19611
+ blockAfter?: number | undefined;
19612
+ /** Ratio for async reflection buffering */
19613
+ bufferActivation?: number | undefined;
19614
+ } | undefined;
19615
+ }) | undefined;
19616
+ } | {
19617
+ value: {
19618
+ /** Vector database identifier or false to disable */
19619
+ vector?: (string | false) | undefined;
19620
+ /** Memory behavior configuration, excluding workingMemory and threads */
19621
+ options?: {
19622
+ readOnly?: boolean | undefined;
19623
+ lastMessages?: (number | false) | undefined;
19624
+ semanticRecall?: (boolean | {
19625
+ /** Number of semantically similar messages to retrieve */
19626
+ topK: number;
19627
+ /** Amount of surrounding context to include with each retrieved message */
19628
+ messageRange: number | {
19629
+ before: number;
19630
+ after: number;
19631
+ };
19632
+ /** Scope for semantic search queries */
19633
+ scope?: ('thread' | 'resource') | undefined;
19634
+ /** Minimum similarity score threshold */
19635
+ threshold?: number | undefined;
19636
+ /** Index name for the vector store */
19637
+ indexName?: string | undefined;
19638
+ }) | undefined;
19639
+ generateTitle?: (boolean | {
19640
+ /** Model ID in format provider/model-name (ModelRouterModelId) */
19641
+ model: string;
19642
+ /** Custom instructions for title generation */
19643
+ instructions?: string | undefined;
19644
+ }) | undefined;
19645
+ } | undefined;
19646
+ /** Embedding model ID in the format "provider/model" (e.g., "openai/text-embedding-3-small") */
19647
+ embedder?: string | undefined;
19648
+ /** Options to pass to the embedder, omitting telemetry */
19649
+ embedderOptions?: {
19650
+ [key: string]: unknown;
19651
+ } | undefined;
19652
+ /** Serialized observational memory configuration */
19653
+ observationalMemory?: (boolean | {
19654
+ /** Model ID for both Observer and Reflector */
19655
+ model?: string | undefined;
19656
+ /** Memory scope */
19657
+ scope?: ('resource' | 'thread') | undefined;
19658
+ /** Share token budget between messages and observations */
19659
+ shareTokenBudget?: boolean | undefined;
19660
+ /** Observation step configuration */
19661
+ observation?: {
19662
+ /** Observer model ID */
19663
+ model?: string | undefined;
19664
+ /** Token threshold that triggers observation */
19665
+ messageTokens?: number | undefined;
19666
+ /** Model settings (temperature, etc.) */
19667
+ modelSettings?: {
19668
+ [key: string]: unknown;
19669
+ } | undefined;
19670
+ /** Provider-specific options */
19671
+ providerOptions?: {
19672
+ [key: string]: {
19673
+ [key: string]: unknown;
19674
+ } | undefined;
19675
+ } | undefined;
19676
+ /** Maximum tokens per batch */
19677
+ maxTokensPerBatch?: number | undefined;
19678
+ /** Async buffering interval or false */
19679
+ bufferTokens?: (number | false) | undefined;
19680
+ /** Ratio of buffered observations to activate */
19681
+ bufferActivation?: number | undefined;
19682
+ /** Token threshold for synchronous blocking */
19683
+ blockAfter?: number | undefined;
19684
+ } | undefined;
19685
+ /** Reflection step configuration */
19686
+ reflection?: {
19687
+ /** Reflector model ID */
19688
+ model?: string | undefined;
19689
+ /** Token threshold that triggers reflection */
19690
+ observationTokens?: number | undefined;
19691
+ /** Model settings (temperature, etc.) */
19692
+ modelSettings?: {
19693
+ [key: string]: unknown;
19694
+ } | undefined;
19695
+ /** Provider-specific options */
19696
+ providerOptions?: {
19697
+ [key: string]: {
19698
+ [key: string]: unknown;
19699
+ } | undefined;
19700
+ } | undefined;
19701
+ /** Token threshold for synchronous blocking */
19702
+ blockAfter?: number | undefined;
19703
+ /** Ratio for async reflection buffering */
19704
+ bufferActivation?: number | undefined;
19705
+ } | undefined;
19706
+ }) | undefined;
19707
+ };
19708
+ rules?: {
19709
+ operator: 'AND' | 'OR';
19710
+ conditions: ({
19711
+ field: string;
19712
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
19713
+ value?: unknown | undefined;
19714
+ } | {
19715
+ operator: 'AND' | 'OR';
19716
+ conditions: ({
19717
+ field: string;
19718
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
19719
+ value?: unknown | undefined;
19720
+ } | {
19721
+ operator: 'AND' | 'OR';
19722
+ conditions: {
19723
+ field: string;
19724
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
19725
+ value?: unknown | undefined;
19726
+ }[];
19727
+ })[];
19728
+ })[];
19729
+ } | undefined;
19730
+ }[]) | undefined;
19731
+ /** Scorer keys with optional sampling config — static or conditional */
19732
+ scorers?: ({
19733
+ [key: string]: {
19734
+ description?: string | undefined;
19735
+ sampling?: ({
19736
+ type: 'none';
19737
+ } | {
19738
+ type: 'ratio';
19739
+ rate: number;
19740
+ }) | undefined;
19741
+ rules?: {
19742
+ operator: 'AND' | 'OR';
19743
+ conditions: ({
19744
+ field: string;
19745
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
19746
+ value?: unknown | undefined;
19747
+ } | {
19748
+ operator: 'AND' | 'OR';
19749
+ conditions: ({
19750
+ field: string;
19751
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
19752
+ value?: unknown | undefined;
19753
+ } | {
19754
+ operator: 'AND' | 'OR';
19755
+ conditions: {
19756
+ field: string;
19757
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
19758
+ value?: unknown | undefined;
19759
+ }[];
19760
+ })[];
19761
+ })[];
19762
+ } | undefined;
19763
+ };
19764
+ } | {
19765
+ value: {
19766
+ [key: string]: {
19767
+ description?: string | undefined;
19768
+ sampling?: ({
19769
+ type: 'none';
19770
+ } | {
19771
+ type: 'ratio';
19772
+ rate: number;
19773
+ }) | undefined;
19774
+ rules?: {
19775
+ operator: 'AND' | 'OR';
19776
+ conditions: ({
19777
+ field: string;
19778
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
19779
+ value?: unknown | undefined;
19780
+ } | {
19781
+ operator: 'AND' | 'OR';
19782
+ conditions: ({
19783
+ field: string;
19784
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
19785
+ value?: unknown | undefined;
19786
+ } | {
19787
+ operator: 'AND' | 'OR';
19788
+ conditions: {
19789
+ field: string;
19790
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
19791
+ value?: unknown | undefined;
19792
+ }[];
19793
+ })[];
19794
+ })[];
19795
+ } | undefined;
19796
+ };
19797
+ };
19798
+ rules?: {
19799
+ operator: 'AND' | 'OR';
19800
+ conditions: ({
19801
+ field: string;
19802
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
19803
+ value?: unknown | undefined;
19804
+ } | {
19805
+ operator: 'AND' | 'OR';
19806
+ conditions: ({
19807
+ field: string;
19808
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
19809
+ value?: unknown | undefined;
19810
+ } | {
19811
+ operator: 'AND' | 'OR';
19812
+ conditions: {
19813
+ field: string;
19814
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
19815
+ value?: unknown | undefined;
19816
+ }[];
19817
+ })[];
19818
+ })[];
19819
+ } | undefined;
19820
+ }[]) | undefined;
19821
+ /** Skill IDs mapped to per-skill config — static or conditional */
19822
+ skills?: ({
19823
+ [key: string]: {
19824
+ description?: string | undefined;
19825
+ instructions?: string | undefined;
19826
+ pin?: string | undefined;
19827
+ strategy?: ('latest' | 'live') | undefined;
19828
+ };
19829
+ } | {
19830
+ value: {
19831
+ [key: string]: {
19832
+ description?: string | undefined;
19833
+ instructions?: string | undefined;
19834
+ pin?: string | undefined;
19835
+ strategy?: ('latest' | 'live') | undefined;
19836
+ };
19837
+ };
19838
+ rules?: {
19839
+ operator: 'AND' | 'OR';
19840
+ conditions: ({
19841
+ field: string;
19842
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
19843
+ value?: unknown | undefined;
19844
+ } | {
19845
+ operator: 'AND' | 'OR';
19846
+ conditions: ({
19847
+ field: string;
19848
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
19849
+ value?: unknown | undefined;
19850
+ } | {
19851
+ operator: 'AND' | 'OR';
19852
+ conditions: {
19853
+ field: string;
19854
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
19855
+ value?: unknown | undefined;
19856
+ }[];
19857
+ })[];
19858
+ })[];
19859
+ } | undefined;
19860
+ }[]) | undefined;
19861
+ /** Workspace reference (stored ID or inline config) — static or conditional */
19862
+ workspace?: (({
19863
+ type: 'id';
19864
+ workspaceId: string;
19865
+ } | {
19866
+ type: 'inline';
19867
+ config: {
19868
+ /** Name of the workspace */
19869
+ name: string;
19870
+ /** Description of the workspace */
19871
+ description?: string | undefined;
19872
+ /** Filesystem configuration */
19873
+ filesystem?: {
19874
+ /** Filesystem provider name */
19875
+ provider: string;
19876
+ /** Filesystem provider configuration */
19877
+ config: {
19878
+ [key: string]: unknown;
19879
+ };
19880
+ } | undefined;
19881
+ /** Sandbox configuration */
19882
+ sandbox?: {
19883
+ /** Sandbox provider name */
19884
+ provider: string;
19885
+ /** Sandbox provider configuration */
19886
+ config: {
19887
+ [key: string]: unknown;
19888
+ };
19889
+ } | undefined;
19890
+ /** Mounted filesystems keyed by mount path */
19891
+ mounts?: {
19892
+ [key: string]: {
19893
+ /** Filesystem provider name */
19894
+ provider: string;
19895
+ /** Filesystem provider configuration */
19896
+ config: {
19897
+ [key: string]: unknown;
19898
+ };
19899
+ };
19900
+ } | undefined;
19901
+ /** Search configuration */
19902
+ search?: {
19903
+ /** Vector store provider identifier */
19904
+ vectorProvider?: string | undefined;
19905
+ /** Vector store provider-specific configuration */
19906
+ vectorConfig?: {
19907
+ [key: string]: unknown;
19908
+ } | undefined;
19909
+ /** Embedder provider identifier */
19910
+ embedderProvider?: string | undefined;
19911
+ /** Embedder model name */
19912
+ embedderModel?: string | undefined;
19913
+ /** Embedder provider-specific configuration */
19914
+ embedderConfig?: {
19915
+ [key: string]: unknown;
19916
+ } | undefined;
19917
+ /** BM25 keyword search config */
19918
+ bm25?: (boolean | {
19919
+ k1?: number | undefined;
19920
+ b?: number | undefined;
19921
+ }) | undefined;
19922
+ /** Custom index name for the vector store */
19923
+ searchIndexName?: string | undefined;
19924
+ /** Paths to auto-index on init */
19925
+ autoIndexPaths?: string[] | undefined;
19926
+ } | undefined;
19927
+ /** Array of skill IDs */
19928
+ skills?: string[] | undefined;
19929
+ /** Workspace tool configuration */
19930
+ tools?: {
19931
+ /** Default: whether all tools are enabled */
19932
+ enabled?: boolean | undefined;
19933
+ /** Default: whether all tools require user approval */
19934
+ requireApproval?: boolean | undefined;
19935
+ /** Per-tool overrides keyed by workspace tool name */
19936
+ tools?: {
19937
+ [key: string]: {
19938
+ /** Whether the tool is enabled */
19939
+ enabled?: boolean | undefined;
19940
+ /** Whether the tool requires user approval before execution */
19941
+ requireApproval?: boolean | undefined;
19942
+ /** For write tools: require reading a file before writing to it */
19943
+ requireReadBeforeWrite?: boolean | undefined;
19944
+ };
19945
+ } | undefined;
19946
+ } | undefined;
19947
+ /** Whether to automatically sync the workspace */
19948
+ autoSync?: boolean | undefined;
19949
+ /** Operation timeout in milliseconds */
19950
+ operationTimeout?: number | undefined;
19951
+ };
19952
+ }) | {
19953
+ value: {
19954
+ type: 'id';
19955
+ workspaceId: string;
19956
+ } | {
19957
+ type: 'inline';
19958
+ config: {
19959
+ /** Name of the workspace */
19960
+ name: string;
19961
+ /** Description of the workspace */
19962
+ description?: string | undefined;
19963
+ /** Filesystem configuration */
19964
+ filesystem?: {
19965
+ /** Filesystem provider name */
19966
+ provider: string;
19967
+ /** Filesystem provider configuration */
19968
+ config: {
19969
+ [key: string]: unknown;
19970
+ };
19971
+ } | undefined;
19972
+ /** Sandbox configuration */
19973
+ sandbox?: {
19974
+ /** Sandbox provider name */
19975
+ provider: string;
19976
+ /** Sandbox provider configuration */
19977
+ config: {
19978
+ [key: string]: unknown;
19979
+ };
19980
+ } | undefined;
19981
+ /** Mounted filesystems keyed by mount path */
19982
+ mounts?: {
19983
+ [key: string]: {
19984
+ /** Filesystem provider name */
19985
+ provider: string;
19986
+ /** Filesystem provider configuration */
19987
+ config: {
19988
+ [key: string]: unknown;
19989
+ };
19990
+ };
19991
+ } | undefined;
19992
+ /** Search configuration */
19993
+ search?: {
19994
+ /** Vector store provider identifier */
19995
+ vectorProvider?: string | undefined;
19996
+ /** Vector store provider-specific configuration */
19997
+ vectorConfig?: {
19998
+ [key: string]: unknown;
19999
+ } | undefined;
20000
+ /** Embedder provider identifier */
20001
+ embedderProvider?: string | undefined;
20002
+ /** Embedder model name */
20003
+ embedderModel?: string | undefined;
20004
+ /** Embedder provider-specific configuration */
20005
+ embedderConfig?: {
20006
+ [key: string]: unknown;
20007
+ } | undefined;
20008
+ /** BM25 keyword search config */
20009
+ bm25?: (boolean | {
20010
+ k1?: number | undefined;
20011
+ b?: number | undefined;
20012
+ }) | undefined;
20013
+ /** Custom index name for the vector store */
20014
+ searchIndexName?: string | undefined;
20015
+ /** Paths to auto-index on init */
20016
+ autoIndexPaths?: string[] | undefined;
20017
+ } | undefined;
20018
+ /** Array of skill IDs */
20019
+ skills?: string[] | undefined;
20020
+ /** Workspace tool configuration */
20021
+ tools?: {
20022
+ /** Default: whether all tools are enabled */
20023
+ enabled?: boolean | undefined;
20024
+ /** Default: whether all tools require user approval */
20025
+ requireApproval?: boolean | undefined;
20026
+ /** Per-tool overrides keyed by workspace tool name */
20027
+ tools?: {
20028
+ [key: string]: {
20029
+ /** Whether the tool is enabled */
20030
+ enabled?: boolean | undefined;
20031
+ /** Whether the tool requires user approval before execution */
20032
+ requireApproval?: boolean | undefined;
20033
+ /** For write tools: require reading a file before writing to it */
20034
+ requireReadBeforeWrite?: boolean | undefined;
20035
+ };
20036
+ } | undefined;
20037
+ } | undefined;
20038
+ /** Whether to automatically sync the workspace */
20039
+ autoSync?: boolean | undefined;
20040
+ /** Operation timeout in milliseconds */
20041
+ operationTimeout?: number | undefined;
20042
+ };
20043
+ };
20044
+ rules?: {
20045
+ operator: 'AND' | 'OR';
20046
+ conditions: ({
20047
+ field: string;
20048
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
20049
+ value?: unknown | undefined;
20050
+ } | {
20051
+ operator: 'AND' | 'OR';
20052
+ conditions: ({
20053
+ field: string;
20054
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
20055
+ value?: unknown | undefined;
20056
+ } | {
20057
+ operator: 'AND' | 'OR';
20058
+ conditions: {
20059
+ field: string;
20060
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
20061
+ value?: unknown | undefined;
20062
+ }[];
20063
+ })[];
20064
+ })[];
20065
+ } | undefined;
20066
+ }[]) | undefined;
20067
+ /** Browser configuration — object config, true (apply default), false/null (disable) */
20068
+ browser?: (({
20069
+ type: 'inline';
20070
+ config: {
20071
+ /** Browser provider type (e.g., stagehand, playwright) */
20072
+ provider: string;
20073
+ /** Run browser in headless mode (default: true) */
20074
+ headless?: boolean | undefined;
20075
+ /** Browser viewport dimensions */
20076
+ viewport?: {
20077
+ /** Viewport width in pixels */
20078
+ width: number;
20079
+ /** Viewport height in pixels */
20080
+ height: number;
20081
+ } | undefined;
20082
+ /** Default timeout in milliseconds (default: 10000) */
20083
+ timeout?: number | undefined;
20084
+ /** Screencast options for streaming browser frames */
20085
+ screencast?: {
20086
+ /** Image format (default: jpeg) */
20087
+ format?: ('jpeg' | 'png') | undefined;
20088
+ /** JPEG quality 0-100 (default: 80) */
20089
+ quality?: number | undefined;
20090
+ /** Max width in pixels (default: 1280) */
20091
+ maxWidth?: number | undefined;
20092
+ /** Max height in pixels (default: 720) */
20093
+ maxHeight?: number | undefined;
20094
+ /** Capture every Nth frame (default: 1) */
20095
+ everyNthFrame?: number | undefined;
20096
+ } | undefined;
20097
+ };
20098
+ } | {
20099
+ value: {
20100
+ type: 'inline';
20101
+ config: {
20102
+ /** Browser provider type (e.g., stagehand, playwright) */
20103
+ provider: string;
20104
+ /** Run browser in headless mode (default: true) */
20105
+ headless?: boolean | undefined;
20106
+ /** Browser viewport dimensions */
20107
+ viewport?: {
20108
+ /** Viewport width in pixels */
20109
+ width: number;
20110
+ /** Viewport height in pixels */
20111
+ height: number;
20112
+ } | undefined;
20113
+ /** Default timeout in milliseconds (default: 10000) */
20114
+ timeout?: number | undefined;
20115
+ /** Screencast options for streaming browser frames */
20116
+ screencast?: {
20117
+ /** Image format (default: jpeg) */
20118
+ format?: ('jpeg' | 'png') | undefined;
20119
+ /** JPEG quality 0-100 (default: 80) */
20120
+ quality?: number | undefined;
20121
+ /** Max width in pixels (default: 1280) */
20122
+ maxWidth?: number | undefined;
20123
+ /** Max height in pixels (default: 720) */
20124
+ maxHeight?: number | undefined;
20125
+ /** Capture every Nth frame (default: 1) */
20126
+ everyNthFrame?: number | undefined;
20127
+ } | undefined;
20128
+ };
20129
+ };
20130
+ rules?: {
20131
+ operator: 'AND' | 'OR';
20132
+ conditions: ({
20133
+ field: string;
20134
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
20135
+ value?: unknown | undefined;
20136
+ } | {
20137
+ operator: 'AND' | 'OR';
20138
+ conditions: ({
20139
+ field: string;
20140
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
20141
+ value?: unknown | undefined;
20142
+ } | {
20143
+ operator: 'AND' | 'OR';
20144
+ conditions: {
20145
+ field: string;
20146
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
20147
+ value?: unknown | undefined;
20148
+ }[];
20149
+ })[];
20150
+ })[];
20151
+ } | undefined;
20152
+ }[]) | boolean | null) | undefined;
20153
+ /** JSON Schema defining valid request context variables */
20154
+ requestContextSchema?: {
20155
+ [key: string]: unknown;
20156
+ } | undefined;
20157
+ };
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 */
20181
+ authorId?: string | undefined;
20182
+ /** Additional metadata for the agent */
20183
+ metadata?: {
20184
+ [key: string]: unknown;
20185
+ } | undefined;
20186
+ /** Agent visibility: private (owner/admin only) or public (any reader) */
20187
+ visibility?: ('private' | 'public') | undefined;
20188
+ /** Name of the agent */
20189
+ name: string;
20190
+ /** Description of the agent */
20191
+ description?: string | undefined;
20192
+ /** System instructions for the agent (string or array of instruction blocks) */
20193
+ instructions: string | ({
20194
+ type: 'text';
20195
+ content: string;
20196
+ } | {
20197
+ type: 'prompt_block_ref';
20198
+ id: string;
20199
+ } | {
20200
+ type: 'prompt_block';
20201
+ content: string;
20202
+ rules?: {
20203
+ operator: 'AND' | 'OR';
20204
+ conditions: ({
20205
+ field: string;
20206
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
20207
+ value?: unknown | undefined;
20208
+ } | {
20209
+ operator: 'AND' | 'OR';
20210
+ conditions: ({
20211
+ field: string;
20212
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
20213
+ value?: unknown | undefined;
20214
+ } | {
20215
+ operator: 'AND' | 'OR';
20216
+ conditions: {
20217
+ field: string;
20218
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
20219
+ value?: unknown | undefined;
20220
+ }[];
20221
+ })[];
20222
+ })[];
20223
+ } | undefined;
20224
+ })[];
20225
+ /** Model configuration — static value or array of conditional variants. When omitted, the builder default model is applied server-side. */
20226
+ model?: ({
20227
+ /** Model provider (e.g., openai, anthropic) */
20228
+ provider: string;
20229
+ /** Model name (e.g., gpt-4o, claude-3-opus) */
20230
+ name: string;
20231
+ [x: string]: unknown;
20232
+ } | {
20233
+ value: {
20234
+ /** Model provider (e.g., openai, anthropic) */
20235
+ provider: string;
20236
+ /** Model name (e.g., gpt-4o, claude-3-opus) */
20237
+ name: string;
20238
+ [x: string]: unknown;
20239
+ };
20240
+ rules?: {
20241
+ operator: 'AND' | 'OR';
20242
+ conditions: ({
20243
+ field: string;
20244
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
20245
+ value?: unknown | undefined;
20246
+ } | {
20247
+ operator: 'AND' | 'OR';
20248
+ conditions: ({
20249
+ field: string;
20250
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
20251
+ value?: unknown | undefined;
20252
+ } | {
20253
+ operator: 'AND' | 'OR';
20254
+ conditions: {
20255
+ field: string;
20256
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
20257
+ value?: unknown | undefined;
20258
+ }[];
20259
+ })[];
20260
+ })[];
20261
+ } | undefined;
20262
+ }[]) | undefined;
20263
+ /** Tool keys mapped to per-tool config — static or conditional */
20264
+ tools?: ({
20265
+ [key: string]: {
20266
+ description?: string | undefined;
20267
+ rules?: {
20268
+ operator: 'AND' | 'OR';
20269
+ conditions: ({
20270
+ field: string;
20271
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
20272
+ value?: unknown | undefined;
20273
+ } | {
20274
+ operator: 'AND' | 'OR';
20275
+ conditions: ({
20276
+ field: string;
20277
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
20278
+ value?: unknown | undefined;
20279
+ } | {
20280
+ operator: 'AND' | 'OR';
20281
+ conditions: {
20282
+ field: string;
20283
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
20284
+ value?: unknown | undefined;
20285
+ }[];
20286
+ })[];
20287
+ })[];
20288
+ } | undefined;
20289
+ };
20290
+ } | {
20291
+ value: {
20292
+ [key: string]: {
20293
+ description?: string | undefined;
20294
+ rules?: {
20295
+ operator: 'AND' | 'OR';
20296
+ conditions: ({
20297
+ field: string;
20298
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
20299
+ value?: unknown | undefined;
20300
+ } | {
20301
+ operator: 'AND' | 'OR';
20302
+ conditions: ({
20303
+ field: string;
20304
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
20305
+ value?: unknown | undefined;
20306
+ } | {
20307
+ operator: 'AND' | 'OR';
20308
+ conditions: {
20309
+ field: string;
20310
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
20311
+ value?: unknown | undefined;
20312
+ }[];
20313
+ })[];
20314
+ })[];
20315
+ } | undefined;
20316
+ };
20317
+ };
20318
+ rules?: {
20319
+ operator: 'AND' | 'OR';
20320
+ conditions: ({
20321
+ field: string;
20322
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
20323
+ value?: unknown | undefined;
20324
+ } | {
20325
+ operator: 'AND' | 'OR';
20326
+ conditions: ({
20327
+ field: string;
20328
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
20329
+ value?: unknown | undefined;
20330
+ } | {
20331
+ operator: 'AND' | 'OR';
20332
+ conditions: {
20333
+ field: string;
20334
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
20335
+ value?: unknown | undefined;
20336
+ }[];
20337
+ })[];
20338
+ })[];
20339
+ } | undefined;
20340
+ }[]) | undefined;
20341
+ /** Default options for generate/stream calls — static or conditional */
20342
+ defaultOptions?: ({
20343
+ runId?: string | undefined;
20344
+ savePerStep?: boolean | undefined;
20345
+ maxSteps?: number | undefined;
20346
+ activeTools?: string[] | undefined;
20347
+ maxProcessorRetries?: number | undefined;
20348
+ toolChoice?: ('auto' | 'none' | 'required' | {
20349
+ type: 'tool';
20350
+ toolName: string;
20351
+ }) | undefined;
20352
+ modelSettings?: {
20353
+ temperature?: number | undefined;
20354
+ maxTokens?: number | undefined;
20355
+ topP?: number | undefined;
20356
+ topK?: number | undefined;
20357
+ frequencyPenalty?: number | undefined;
20358
+ presencePenalty?: number | undefined;
20359
+ stopSequences?: string[] | undefined;
20360
+ seed?: number | undefined;
20361
+ maxRetries?: number | undefined;
20362
+ } | undefined;
20363
+ returnScorerData?: boolean | undefined;
20364
+ tracingOptions?: {
20365
+ traceName?: string | undefined;
20366
+ attributes?: {
20367
+ [key: string]: unknown;
20368
+ } | undefined;
20369
+ spanId?: string | undefined;
20370
+ traceId?: string | undefined;
20371
+ } | undefined;
20372
+ requireToolApproval?: boolean | undefined;
20373
+ autoResumeSuspendedTools?: boolean | undefined;
20374
+ toolCallConcurrency?: number | undefined;
20375
+ includeRawChunks?: boolean | undefined;
20376
+ [x: string]: unknown;
20377
+ } | {
20378
+ /** Default options for agent execution */
20379
+ value: {
20380
+ runId?: string | undefined;
20381
+ savePerStep?: boolean | undefined;
20382
+ maxSteps?: number | undefined;
20383
+ activeTools?: string[] | undefined;
20384
+ maxProcessorRetries?: number | undefined;
20385
+ toolChoice?: ('auto' | 'none' | 'required' | {
20386
+ type: 'tool';
20387
+ toolName: string;
20388
+ }) | undefined;
20389
+ modelSettings?: {
20390
+ temperature?: number | undefined;
20391
+ maxTokens?: number | undefined;
20392
+ topP?: number | undefined;
20393
+ topK?: number | undefined;
20394
+ frequencyPenalty?: number | undefined;
20395
+ presencePenalty?: number | undefined;
20396
+ stopSequences?: string[] | undefined;
20397
+ seed?: number | undefined;
20398
+ maxRetries?: number | undefined;
20399
+ } | undefined;
20400
+ returnScorerData?: boolean | undefined;
20401
+ tracingOptions?: {
20402
+ traceName?: string | undefined;
20403
+ attributes?: {
20404
+ [key: string]: unknown;
20405
+ } | undefined;
20406
+ spanId?: string | undefined;
20407
+ traceId?: string | undefined;
20408
+ } | undefined;
20409
+ requireToolApproval?: boolean | undefined;
20410
+ autoResumeSuspendedTools?: boolean | undefined;
20411
+ toolCallConcurrency?: number | undefined;
20412
+ includeRawChunks?: boolean | undefined;
20413
+ [x: string]: unknown;
20414
+ };
20415
+ rules?: {
20416
+ operator: 'AND' | 'OR';
20417
+ conditions: ({
20418
+ field: string;
20419
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
20420
+ value?: unknown | undefined;
20421
+ } | {
20422
+ operator: 'AND' | 'OR';
20423
+ conditions: ({
20424
+ field: string;
20425
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
20426
+ value?: unknown | undefined;
20427
+ } | {
20428
+ operator: 'AND' | 'OR';
20429
+ conditions: {
20430
+ field: string;
20431
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
20432
+ value?: unknown | undefined;
20433
+ }[];
20434
+ })[];
20435
+ })[];
20436
+ } | undefined;
20437
+ }[]) | undefined;
20438
+ /** Workflow keys with optional per-workflow config — static or conditional */
20439
+ workflows?: ({
20440
+ [key: string]: {
20441
+ description?: string | undefined;
20442
+ rules?: {
20443
+ operator: 'AND' | 'OR';
20444
+ conditions: ({
20445
+ field: string;
20446
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
20447
+ value?: unknown | undefined;
20448
+ } | {
20449
+ operator: 'AND' | 'OR';
20450
+ conditions: ({
20451
+ field: string;
20452
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
20453
+ value?: unknown | undefined;
20454
+ } | {
20455
+ operator: 'AND' | 'OR';
20456
+ conditions: {
20457
+ field: string;
20458
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
20459
+ value?: unknown | undefined;
20460
+ }[];
20461
+ })[];
20462
+ })[];
20463
+ } | undefined;
20464
+ };
20465
+ } | {
20466
+ value: {
20467
+ [key: string]: {
20468
+ description?: string | undefined;
20469
+ rules?: {
20470
+ operator: 'AND' | 'OR';
20471
+ conditions: ({
20472
+ field: string;
20473
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
20474
+ value?: unknown | undefined;
20475
+ } | {
20476
+ operator: 'AND' | 'OR';
20477
+ conditions: ({
20478
+ field: string;
20479
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
20480
+ value?: unknown | undefined;
20481
+ } | {
20482
+ operator: 'AND' | 'OR';
20483
+ conditions: {
20484
+ field: string;
20485
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
20486
+ value?: unknown | undefined;
20487
+ }[];
20488
+ })[];
20489
+ })[];
20490
+ } | undefined;
20491
+ };
20492
+ };
20493
+ rules?: {
20494
+ operator: 'AND' | 'OR';
20495
+ conditions: ({
20496
+ field: string;
20497
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
20498
+ value?: unknown | undefined;
20499
+ } | {
20500
+ operator: 'AND' | 'OR';
20501
+ conditions: ({
20502
+ field: string;
20503
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
20504
+ value?: unknown | undefined;
20505
+ } | {
20506
+ operator: 'AND' | 'OR';
20507
+ conditions: {
20508
+ field: string;
20509
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
20510
+ value?: unknown | undefined;
20511
+ }[];
20512
+ })[];
20513
+ })[];
20514
+ } | undefined;
20515
+ }[]) | undefined;
20516
+ /** Agent keys with optional per-agent config — static or conditional */
20517
+ agents?: ({
20518
+ [key: string]: {
20519
+ description?: string | undefined;
20520
+ rules?: {
20521
+ operator: 'AND' | 'OR';
20522
+ conditions: ({
20523
+ field: string;
20524
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
20525
+ value?: unknown | undefined;
20526
+ } | {
20527
+ operator: 'AND' | 'OR';
20528
+ conditions: ({
20529
+ field: string;
20530
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
20531
+ value?: unknown | undefined;
20532
+ } | {
20533
+ operator: 'AND' | 'OR';
20534
+ conditions: {
20535
+ field: string;
20536
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
20537
+ value?: unknown | undefined;
20538
+ }[];
20539
+ })[];
20540
+ })[];
20541
+ } | undefined;
20542
+ };
20543
+ } | {
20544
+ value: {
20545
+ [key: string]: {
20546
+ description?: string | undefined;
20547
+ rules?: {
20548
+ operator: 'AND' | 'OR';
20549
+ conditions: ({
20550
+ field: string;
20551
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
20552
+ value?: unknown | undefined;
20553
+ } | {
20554
+ operator: 'AND' | 'OR';
20555
+ conditions: ({
20556
+ field: string;
20557
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
20558
+ value?: unknown | undefined;
20559
+ } | {
20560
+ operator: 'AND' | 'OR';
20561
+ conditions: {
20562
+ field: string;
20563
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
20564
+ value?: unknown | undefined;
20565
+ }[];
20566
+ })[];
20567
+ })[];
20568
+ } | undefined;
20569
+ };
20570
+ };
20571
+ rules?: {
20572
+ operator: 'AND' | 'OR';
20573
+ conditions: ({
20574
+ field: string;
20575
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
20576
+ value?: unknown | undefined;
20577
+ } | {
20578
+ operator: 'AND' | 'OR';
20579
+ conditions: ({
20580
+ field: string;
20581
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
20582
+ value?: unknown | undefined;
20583
+ } | {
20584
+ operator: 'AND' | 'OR';
20585
+ conditions: {
20586
+ field: string;
20587
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
20588
+ value?: unknown | undefined;
20589
+ }[];
20590
+ })[];
20591
+ })[];
20592
+ } | undefined;
20593
+ }[]) | undefined;
20594
+ /** Map of tool provider IDs to their tool configurations — static or conditional */
20595
+ integrationTools?: ({
20596
+ [key: string]: {
20597
+ tools?: {
20598
+ [key: string]: {
20599
+ description?: string | undefined;
20600
+ rules?: {
20601
+ operator: 'AND' | 'OR';
20602
+ conditions: ({
20603
+ field: string;
20604
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
20605
+ value?: unknown | undefined;
20606
+ } | {
20607
+ operator: 'AND' | 'OR';
20608
+ conditions: ({
20609
+ field: string;
20610
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
20611
+ value?: unknown | undefined;
20612
+ } | {
20613
+ operator: 'AND' | 'OR';
20614
+ conditions: {
20615
+ field: string;
20616
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
20617
+ value?: unknown | undefined;
20618
+ }[];
20619
+ })[];
20620
+ })[];
20621
+ } | undefined;
20622
+ };
20623
+ } | undefined;
20624
+ };
20625
+ } | {
20626
+ value: {
20627
+ [key: string]: {
20628
+ tools?: {
20629
+ [key: string]: {
20630
+ description?: string | undefined;
20631
+ rules?: {
20632
+ operator: 'AND' | 'OR';
20633
+ conditions: ({
20634
+ field: string;
20635
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
20636
+ value?: unknown | undefined;
20637
+ } | {
20638
+ operator: 'AND' | 'OR';
20639
+ conditions: ({
20640
+ field: string;
20641
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
20642
+ value?: unknown | undefined;
20643
+ } | {
20644
+ operator: 'AND' | 'OR';
20645
+ conditions: {
20646
+ field: string;
20647
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
20648
+ value?: unknown | undefined;
20649
+ }[];
20650
+ })[];
20651
+ })[];
20652
+ } | undefined;
20653
+ };
20654
+ } | undefined;
20655
+ };
20656
+ };
20657
+ rules?: {
20658
+ operator: 'AND' | 'OR';
20659
+ conditions: ({
20660
+ field: string;
20661
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
20662
+ value?: unknown | undefined;
20663
+ } | {
20664
+ operator: 'AND' | 'OR';
20665
+ conditions: ({
20666
+ field: string;
20667
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
20668
+ value?: unknown | undefined;
20669
+ } | {
20670
+ operator: 'AND' | 'OR';
20671
+ conditions: {
20672
+ field: string;
20673
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
20674
+ value?: unknown | undefined;
20675
+ }[];
20676
+ })[];
20677
+ })[];
20678
+ } | undefined;
20679
+ }[]) | undefined;
20680
+ /** Tool provider connections and per-tool config (provider-agnostic). Coexists with the deprecated `integrationTools` field. */
20681
+ toolProviders?: ({
20682
+ [key: string]: {
20683
+ tools: {
20684
+ [key: string]: {
20685
+ toolkit?: string | undefined;
20686
+ description?: string | undefined;
20687
+ };
20688
+ };
20689
+ connections: {
20690
+ [key: string]: {
20691
+ kind: 'author' | 'invoker' | 'platform';
20692
+ toolkit: string;
20693
+ connectionId: string;
20694
+ label?: string | undefined;
20695
+ scope?: ('shared' | 'per-author' | 'caller-supplied') | undefined;
20696
+ }[];
20697
+ };
20698
+ };
20699
+ } | {
20700
+ value: {
20701
+ [key: string]: {
20702
+ tools: {
20703
+ [key: string]: {
20704
+ toolkit?: string | undefined;
20705
+ description?: string | undefined;
20706
+ };
20707
+ };
20708
+ connections: {
20709
+ [key: string]: {
20710
+ kind: 'author' | 'invoker' | 'platform';
20711
+ toolkit: string;
20712
+ connectionId: string;
20713
+ label?: string | undefined;
20714
+ scope?: ('shared' | 'per-author' | 'caller-supplied') | undefined;
20715
+ }[];
20716
+ };
20717
+ };
20718
+ };
20719
+ rules?: {
20720
+ operator: 'AND' | 'OR';
20721
+ conditions: ({
20722
+ field: string;
20723
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
20724
+ value?: unknown | undefined;
20725
+ } | {
20726
+ operator: 'AND' | 'OR';
20727
+ conditions: ({
20728
+ field: string;
20729
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
20730
+ value?: unknown | undefined;
20731
+ } | {
20732
+ operator: 'AND' | 'OR';
20733
+ conditions: {
20734
+ field: string;
20735
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
20736
+ value?: unknown | undefined;
20737
+ }[];
20738
+ })[];
20739
+ })[];
20740
+ } | undefined;
20741
+ }[]) | undefined;
18378
20742
  /** Map of stored MCP client IDs to their tool configurations — static or conditional */
18379
20743
  mcpClients?: ({
18380
20744
  [key: string]: {
@@ -20418,6 +22782,68 @@ export type PostStoredAgents_Response = {
20418
22782
  })[];
20419
22783
  } | undefined;
20420
22784
  }[]) | undefined;
22785
+ /** Tool provider connections and per-tool config (provider-agnostic). Coexists with the deprecated `integrationTools` field. */
22786
+ toolProviders?: ({
22787
+ [key: string]: {
22788
+ tools: {
22789
+ [key: string]: {
22790
+ toolkit?: string | undefined;
22791
+ description?: string | undefined;
22792
+ };
22793
+ };
22794
+ connections: {
22795
+ [key: string]: {
22796
+ kind: 'author' | 'invoker' | 'platform';
22797
+ toolkit: string;
22798
+ connectionId: string;
22799
+ label?: string | undefined;
22800
+ scope?: ('shared' | 'per-author' | 'caller-supplied') | undefined;
22801
+ }[];
22802
+ };
22803
+ };
22804
+ } | {
22805
+ value: {
22806
+ [key: string]: {
22807
+ tools: {
22808
+ [key: string]: {
22809
+ toolkit?: string | undefined;
22810
+ description?: string | undefined;
22811
+ };
22812
+ };
22813
+ connections: {
22814
+ [key: string]: {
22815
+ kind: 'author' | 'invoker' | 'platform';
22816
+ toolkit: string;
22817
+ connectionId: string;
22818
+ label?: string | undefined;
22819
+ scope?: ('shared' | 'per-author' | 'caller-supplied') | undefined;
22820
+ }[];
22821
+ };
22822
+ };
22823
+ };
22824
+ rules?: {
22825
+ operator: 'AND' | 'OR';
22826
+ conditions: ({
22827
+ field: string;
22828
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
22829
+ value?: unknown | undefined;
22830
+ } | {
22831
+ operator: 'AND' | 'OR';
22832
+ conditions: ({
22833
+ field: string;
22834
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
22835
+ value?: unknown | undefined;
22836
+ } | {
22837
+ operator: 'AND' | 'OR';
22838
+ conditions: {
22839
+ field: string;
22840
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
22841
+ value?: unknown | undefined;
22842
+ }[];
22843
+ })[];
22844
+ })[];
22845
+ } | undefined;
22846
+ }[]) | undefined;
20421
22847
  /** Map of stored MCP client IDs to their tool configurations — static or conditional */
20422
22848
  mcpClients?: ({
20423
22849
  [key: string]: {
@@ -22465,6 +24891,67 @@ export type PatchStoredAgentsStoredAgentId_Body = {
22465
24891
  })[];
22466
24892
  } | undefined;
22467
24893
  }[]) | undefined) | undefined;
24894
+ toolProviders?: (({
24895
+ [key: string]: {
24896
+ tools: {
24897
+ [key: string]: {
24898
+ toolkit?: string | undefined;
24899
+ description?: string | undefined;
24900
+ };
24901
+ };
24902
+ connections: {
24903
+ [key: string]: {
24904
+ kind: 'author' | 'invoker' | 'platform';
24905
+ toolkit: string;
24906
+ connectionId: string;
24907
+ label?: string | undefined;
24908
+ scope?: ('shared' | 'per-author' | 'caller-supplied') | undefined;
24909
+ }[];
24910
+ };
24911
+ };
24912
+ } | {
24913
+ value: {
24914
+ [key: string]: {
24915
+ tools: {
24916
+ [key: string]: {
24917
+ toolkit?: string | undefined;
24918
+ description?: string | undefined;
24919
+ };
24920
+ };
24921
+ connections: {
24922
+ [key: string]: {
24923
+ kind: 'author' | 'invoker' | 'platform';
24924
+ toolkit: string;
24925
+ connectionId: string;
24926
+ label?: string | undefined;
24927
+ scope?: ('shared' | 'per-author' | 'caller-supplied') | undefined;
24928
+ }[];
24929
+ };
24930
+ };
24931
+ };
24932
+ rules?: {
24933
+ operator: 'AND' | 'OR';
24934
+ conditions: ({
24935
+ field: string;
24936
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
24937
+ value?: unknown | undefined;
24938
+ } | {
24939
+ operator: 'AND' | 'OR';
24940
+ conditions: ({
24941
+ field: string;
24942
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
24943
+ value?: unknown | undefined;
24944
+ } | {
24945
+ operator: 'AND' | 'OR';
24946
+ conditions: {
24947
+ field: string;
24948
+ operator: 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'in' | 'not_in' | 'exists' | 'not_exists';
24949
+ value?: unknown | undefined;
24950
+ }[];
24951
+ })[];
24952
+ })[];
24953
+ } | undefined;
24954
+ }[]) | undefined) | undefined;
22468
24955
  mcpClients?: (({
22469
24956
  [key: string]: {
22470
24957
  tools?: {
@@ -24512,6 +26999,68 @@ export type PatchStoredAgentsStoredAgentId_Response = {
24512
26999
  })[];
24513
27000
  } | undefined;
24514
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;
24515
27064
  /** Map of stored MCP client IDs to their tool configurations — static or conditional */
24516
27065
  mcpClients?: ({
24517
27066
  [key: string]: {
@@ -40361,6 +42910,13 @@ export type GetToolProviders_Response = {
40361
42910
  id: string;
40362
42911
  name: string;
40363
42912
  description?: string | undefined;
42913
+ displayName?: string | undefined;
42914
+ capabilities?: {
42915
+ multipleConnectionsPerToolkit: boolean;
42916
+ batchConnectionStatus: boolean;
42917
+ reauthorizeReusesConnectionId: boolean;
42918
+ supportsRevoke?: boolean | undefined;
42919
+ } | undefined;
40364
42920
  }[];
40365
42921
  };
40366
42922
  export type GetToolProviders_Request = Simplify<(never extends never ? {} : {
@@ -40428,7 +42984,7 @@ export type GetToolProvidersProviderIdTools_QueryParams = {
40428
42984
  toolkit?: string | undefined;
40429
42985
  /** Search tools by name or description */
40430
42986
  search?: string | undefined;
40431
- /** Page number for pagination */
42987
+ /** Page number for pagination (1-indexed) */
40432
42988
  page?: number | undefined;
40433
42989
  /** Number of items per page */
40434
42990
  perPage?: number | undefined;
@@ -40494,6 +43050,340 @@ export interface GetToolProvidersProviderIdToolsToolSlugSchema_RouteContract {
40494
43050
  response: GetToolProvidersProviderIdToolsToolSlugSchema_Response;
40495
43051
  responseType: 'json';
40496
43052
  }
43053
+ export type PostToolProvidersProviderIdAuthorize_PathParams = {
43054
+ /** Unique identifier for the tool provider */
43055
+ providerId: string;
43056
+ };
43057
+ export type PostToolProvidersProviderIdAuthorize_Body = {
43058
+ /** Toolkit slug being authorized */
43059
+ toolkit: string;
43060
+ /** Existing or newly-minted connection bucket id */
43061
+ connectionId: string;
43062
+ /** Optional tool slug for tool-scoped authorization */
43063
+ toolName?: string | undefined;
43064
+ /** Provider-specific user-supplied connection fields (e.g. subdomain) */
43065
+ config?: {
43066
+ [key: string]: unknown;
43067
+ } | undefined;
43068
+ /** Optional human label to persist on the resulting tool_provider_connections row. Must match the stored connection label rules (≤ 32 chars, [A-Za-z0-9 _-]+). */
43069
+ label?: (string | null) | undefined;
43070
+ /** Identity bucket. "shared" pins under SHARED_BUCKET_ID. "caller-supplied" pins under the request-context resourceId (returns 400 when missing). Defaults to "per-author". */
43071
+ scope?: ('shared' | 'per-author' | 'caller-supplied') | undefined;
43072
+ };
43073
+ export type PostToolProvidersProviderIdAuthorize_Response = {
43074
+ url: string;
43075
+ authId: string;
43076
+ };
43077
+ export type PostToolProvidersProviderIdAuthorize_Request = Simplify<(PostToolProvidersProviderIdAuthorize_PathParams extends never ? {} : {
43078
+ params: PostToolProvidersProviderIdAuthorize_PathParams;
43079
+ }) & (never extends never ? {} : {} extends never ? {
43080
+ query?: never;
43081
+ } : {
43082
+ query: never;
43083
+ }) & (PostToolProvidersProviderIdAuthorize_Body extends never ? {} : {} extends PostToolProvidersProviderIdAuthorize_Body ? {
43084
+ body?: PostToolProvidersProviderIdAuthorize_Body;
43085
+ } : {
43086
+ body: PostToolProvidersProviderIdAuthorize_Body;
43087
+ })>;
43088
+ export interface PostToolProvidersProviderIdAuthorize_RouteContract {
43089
+ pathParams: PostToolProvidersProviderIdAuthorize_PathParams;
43090
+ queryParams: never;
43091
+ body: PostToolProvidersProviderIdAuthorize_Body;
43092
+ request: PostToolProvidersProviderIdAuthorize_Request;
43093
+ response: PostToolProvidersProviderIdAuthorize_Response;
43094
+ responseType: 'json';
43095
+ }
43096
+ export type GetToolProvidersProviderIdAuthStatusAuthId_PathParams = {
43097
+ /** Unique identifier for the tool provider */
43098
+ providerId: string;
43099
+ /** Opaque auth handle returned by authorize */
43100
+ authId: string;
43101
+ };
43102
+ export type GetToolProvidersProviderIdAuthStatusAuthId_Response = {
43103
+ status: 'pending' | 'completed' | 'failed';
43104
+ };
43105
+ export type GetToolProvidersProviderIdAuthStatusAuthId_Request = Simplify<(GetToolProvidersProviderIdAuthStatusAuthId_PathParams extends never ? {} : {
43106
+ params: GetToolProvidersProviderIdAuthStatusAuthId_PathParams;
43107
+ }) & (never extends never ? {} : {} extends never ? {
43108
+ query?: never;
43109
+ } : {
43110
+ query: never;
43111
+ }) & (never extends never ? {} : {} extends never ? {
43112
+ body?: never;
43113
+ } : {
43114
+ body: never;
43115
+ })>;
43116
+ export interface GetToolProvidersProviderIdAuthStatusAuthId_RouteContract {
43117
+ pathParams: GetToolProvidersProviderIdAuthStatusAuthId_PathParams;
43118
+ queryParams: never;
43119
+ body: never;
43120
+ request: GetToolProvidersProviderIdAuthStatusAuthId_Request;
43121
+ response: GetToolProvidersProviderIdAuthStatusAuthId_Response;
43122
+ responseType: 'json';
43123
+ }
43124
+ export type PostToolProvidersProviderIdConnectionStatus_PathParams = {
43125
+ /** Unique identifier for the tool provider */
43126
+ providerId: string;
43127
+ };
43128
+ export type PostToolProvidersProviderIdConnectionStatus_Body = {
43129
+ /** Connection tuples to batch-check */
43130
+ items: {
43131
+ connectionId: string;
43132
+ toolkit: string;
43133
+ }[];
43134
+ };
43135
+ export type PostToolProvidersProviderIdConnectionStatus_Response = {
43136
+ items: {
43137
+ [key: string]: {
43138
+ connected: boolean;
43139
+ };
43140
+ };
43141
+ };
43142
+ export type PostToolProvidersProviderIdConnectionStatus_Request = Simplify<(PostToolProvidersProviderIdConnectionStatus_PathParams extends never ? {} : {
43143
+ params: PostToolProvidersProviderIdConnectionStatus_PathParams;
43144
+ }) & (never extends never ? {} : {} extends never ? {
43145
+ query?: never;
43146
+ } : {
43147
+ query: never;
43148
+ }) & (PostToolProvidersProviderIdConnectionStatus_Body extends never ? {} : {} extends PostToolProvidersProviderIdConnectionStatus_Body ? {
43149
+ body?: PostToolProvidersProviderIdConnectionStatus_Body;
43150
+ } : {
43151
+ body: PostToolProvidersProviderIdConnectionStatus_Body;
43152
+ })>;
43153
+ export interface PostToolProvidersProviderIdConnectionStatus_RouteContract {
43154
+ pathParams: PostToolProvidersProviderIdConnectionStatus_PathParams;
43155
+ queryParams: never;
43156
+ body: PostToolProvidersProviderIdConnectionStatus_Body;
43157
+ request: PostToolProvidersProviderIdConnectionStatus_Request;
43158
+ response: PostToolProvidersProviderIdConnectionStatus_Response;
43159
+ responseType: 'json';
43160
+ }
43161
+ export type GetToolProvidersProviderIdConnections_PathParams = {
43162
+ /** Unique identifier for the tool provider */
43163
+ providerId: string;
43164
+ };
43165
+ export type GetToolProvidersProviderIdConnections_QueryParams = {
43166
+ /** Toolkit slug whose connections to list */
43167
+ toolkit: string;
43168
+ /** Admin-only: restrict listing to a specific author. Silently ignored for non-admin callers. */
43169
+ authorId?: string | undefined;
43170
+ /** Filter results by scope. Omit to include shared + per-author pins for the caller. */
43171
+ scope?: ('shared' | 'per-author' | 'caller-supplied') | undefined;
43172
+ /** Page number for pagination (1-indexed) */
43173
+ page?: number | undefined;
43174
+ /** Number of items per page (default 50, max 200) */
43175
+ perPage?: number | undefined;
43176
+ };
43177
+ export type GetToolProvidersProviderIdConnections_Response = {
43178
+ items: {
43179
+ connectionId: string;
43180
+ status: 'active' | 'pending' | 'failed' | 'inactive';
43181
+ createdAt?: string | undefined;
43182
+ /** Persisted display label from tool_provider_connections, if any */
43183
+ label?: (string | null) | undefined;
43184
+ /** Owner of the connection (when known) */
43185
+ authorId?: string | undefined;
43186
+ /** Persisted scope from tool_provider_connections. Missing for rows that predate the scope field. */
43187
+ scope?: ('shared' | 'per-author' | 'caller-supplied') | undefined;
43188
+ }[];
43189
+ pagination?: {
43190
+ total?: number | undefined;
43191
+ page?: number | undefined;
43192
+ perPage?: number | undefined;
43193
+ hasMore: boolean;
43194
+ } | undefined;
43195
+ };
43196
+ export type GetToolProvidersProviderIdConnections_Request = Simplify<(GetToolProvidersProviderIdConnections_PathParams extends never ? {} : {
43197
+ params: GetToolProvidersProviderIdConnections_PathParams;
43198
+ }) & (GetToolProvidersProviderIdConnections_QueryParams extends never ? {} : {} extends GetToolProvidersProviderIdConnections_QueryParams ? {
43199
+ query?: GetToolProvidersProviderIdConnections_QueryParams;
43200
+ } : {
43201
+ query: GetToolProvidersProviderIdConnections_QueryParams;
43202
+ }) & (never extends never ? {} : {} extends never ? {
43203
+ body?: never;
43204
+ } : {
43205
+ body: never;
43206
+ })>;
43207
+ export interface GetToolProvidersProviderIdConnections_RouteContract {
43208
+ pathParams: GetToolProvidersProviderIdConnections_PathParams;
43209
+ queryParams: GetToolProvidersProviderIdConnections_QueryParams;
43210
+ body: never;
43211
+ request: GetToolProvidersProviderIdConnections_Request;
43212
+ response: GetToolProvidersProviderIdConnections_Response;
43213
+ responseType: 'json';
43214
+ }
43215
+ export type GetToolProvidersProviderIdConnectionFields_PathParams = {
43216
+ /** Unique identifier for the tool provider */
43217
+ providerId: string;
43218
+ };
43219
+ export type GetToolProvidersProviderIdConnectionFields_QueryParams = {
43220
+ /** Toolkit slug whose connection field schema to list */
43221
+ toolkit: string;
43222
+ };
43223
+ export type GetToolProvidersProviderIdConnectionFields_Response = {
43224
+ fields: {
43225
+ name: string;
43226
+ displayName?: string | undefined;
43227
+ description?: string | undefined;
43228
+ type: 'string' | 'number' | 'boolean';
43229
+ required: boolean;
43230
+ default?: unknown | undefined;
43231
+ }[];
43232
+ };
43233
+ export type GetToolProvidersProviderIdConnectionFields_Request = Simplify<(GetToolProvidersProviderIdConnectionFields_PathParams extends never ? {} : {
43234
+ params: GetToolProvidersProviderIdConnectionFields_PathParams;
43235
+ }) & (GetToolProvidersProviderIdConnectionFields_QueryParams extends never ? {} : {} extends GetToolProvidersProviderIdConnectionFields_QueryParams ? {
43236
+ query?: GetToolProvidersProviderIdConnectionFields_QueryParams;
43237
+ } : {
43238
+ query: GetToolProvidersProviderIdConnectionFields_QueryParams;
43239
+ }) & (never extends never ? {} : {} extends never ? {
43240
+ body?: never;
43241
+ } : {
43242
+ body: never;
43243
+ })>;
43244
+ export interface GetToolProvidersProviderIdConnectionFields_RouteContract {
43245
+ pathParams: GetToolProvidersProviderIdConnectionFields_PathParams;
43246
+ queryParams: GetToolProvidersProviderIdConnectionFields_QueryParams;
43247
+ body: never;
43248
+ request: GetToolProvidersProviderIdConnectionFields_Request;
43249
+ response: GetToolProvidersProviderIdConnectionFields_Response;
43250
+ responseType: 'json';
43251
+ }
43252
+ export type DeleteToolProvidersProviderIdConnectionsConnectionId_PathParams = {
43253
+ /** Unique identifier for the tool provider */
43254
+ providerId: string;
43255
+ /** Adapter-native connection id (e.g. Composio ca_...) */
43256
+ connectionId: string;
43257
+ };
43258
+ export type DeleteToolProvidersProviderIdConnectionsConnectionId_QueryParams = {
43259
+ /** When true, revoke at the provider and drop the row even if pinned by agents */
43260
+ force?: (boolean | ('true' | 'false')) | undefined;
43261
+ /** Toolkit slug for the connection (used when the row was upserted with one) */
43262
+ toolkit?: string | undefined;
43263
+ };
43264
+ export type DeleteToolProvidersProviderIdConnectionsConnectionId_Response = {
43265
+ ok: true;
43266
+ /** Whether the provider-side connection was revoked */
43267
+ revoked: boolean;
43268
+ };
43269
+ export type DeleteToolProvidersProviderIdConnectionsConnectionId_Request = Simplify<(DeleteToolProvidersProviderIdConnectionsConnectionId_PathParams extends never ? {} : {
43270
+ params: DeleteToolProvidersProviderIdConnectionsConnectionId_PathParams;
43271
+ }) & (DeleteToolProvidersProviderIdConnectionsConnectionId_QueryParams extends never ? {} : {} extends DeleteToolProvidersProviderIdConnectionsConnectionId_QueryParams ? {
43272
+ query?: DeleteToolProvidersProviderIdConnectionsConnectionId_QueryParams;
43273
+ } : {
43274
+ query: DeleteToolProvidersProviderIdConnectionsConnectionId_QueryParams;
43275
+ }) & (never extends never ? {} : {} extends never ? {
43276
+ body?: never;
43277
+ } : {
43278
+ body: never;
43279
+ })>;
43280
+ export interface DeleteToolProvidersProviderIdConnectionsConnectionId_RouteContract {
43281
+ pathParams: DeleteToolProvidersProviderIdConnectionsConnectionId_PathParams;
43282
+ queryParams: DeleteToolProvidersProviderIdConnectionsConnectionId_QueryParams;
43283
+ body: never;
43284
+ request: DeleteToolProvidersProviderIdConnectionsConnectionId_Request;
43285
+ response: DeleteToolProvidersProviderIdConnectionsConnectionId_Response;
43286
+ responseType: 'json';
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
+ }
43322
+ export type GetToolProvidersProviderIdConnectionsConnectionIdUsage_PathParams = {
43323
+ /** Unique identifier for the tool provider */
43324
+ providerId: string;
43325
+ /** Adapter-native connection id (e.g. Composio ca_...) */
43326
+ connectionId: string;
43327
+ };
43328
+ export type GetToolProvidersProviderIdConnectionsConnectionIdUsage_QueryParams = {
43329
+ /** Optional toolkit slug to scope the usage scan */
43330
+ toolkit?: string | undefined;
43331
+ };
43332
+ export type GetToolProvidersProviderIdConnectionsConnectionIdUsage_Response = {
43333
+ agents: {
43334
+ id: string;
43335
+ name: string;
43336
+ }[];
43337
+ };
43338
+ export type GetToolProvidersProviderIdConnectionsConnectionIdUsage_Request = Simplify<(GetToolProvidersProviderIdConnectionsConnectionIdUsage_PathParams extends never ? {} : {
43339
+ params: GetToolProvidersProviderIdConnectionsConnectionIdUsage_PathParams;
43340
+ }) & (GetToolProvidersProviderIdConnectionsConnectionIdUsage_QueryParams extends never ? {} : {} extends GetToolProvidersProviderIdConnectionsConnectionIdUsage_QueryParams ? {
43341
+ query?: GetToolProvidersProviderIdConnectionsConnectionIdUsage_QueryParams;
43342
+ } : {
43343
+ query: GetToolProvidersProviderIdConnectionsConnectionIdUsage_QueryParams;
43344
+ }) & (never extends never ? {} : {} extends never ? {
43345
+ body?: never;
43346
+ } : {
43347
+ body: never;
43348
+ })>;
43349
+ export interface GetToolProvidersProviderIdConnectionsConnectionIdUsage_RouteContract {
43350
+ pathParams: GetToolProvidersProviderIdConnectionsConnectionIdUsage_PathParams;
43351
+ queryParams: GetToolProvidersProviderIdConnectionsConnectionIdUsage_QueryParams;
43352
+ body: never;
43353
+ request: GetToolProvidersProviderIdConnectionsConnectionIdUsage_Request;
43354
+ response: GetToolProvidersProviderIdConnectionsConnectionIdUsage_Response;
43355
+ responseType: 'json';
43356
+ }
43357
+ export type GetToolProvidersProviderIdHealth_PathParams = {
43358
+ /** Unique identifier for the tool provider */
43359
+ providerId: string;
43360
+ };
43361
+ export type GetToolProvidersProviderIdHealth_Response = {
43362
+ ok: boolean;
43363
+ message?: string | undefined;
43364
+ details?: {
43365
+ [key: string]: unknown;
43366
+ } | undefined;
43367
+ };
43368
+ export type GetToolProvidersProviderIdHealth_Request = Simplify<(GetToolProvidersProviderIdHealth_PathParams extends never ? {} : {
43369
+ params: GetToolProvidersProviderIdHealth_PathParams;
43370
+ }) & (never extends never ? {} : {} extends never ? {
43371
+ query?: never;
43372
+ } : {
43373
+ query: never;
43374
+ }) & (never extends never ? {} : {} extends never ? {
43375
+ body?: never;
43376
+ } : {
43377
+ body: never;
43378
+ })>;
43379
+ export interface GetToolProvidersProviderIdHealth_RouteContract {
43380
+ pathParams: GetToolProvidersProviderIdHealth_PathParams;
43381
+ queryParams: never;
43382
+ body: never;
43383
+ request: GetToolProvidersProviderIdHealth_Request;
43384
+ response: GetToolProvidersProviderIdHealth_Response;
43385
+ responseType: 'json';
43386
+ }
40497
43387
  export type GetProcessorProviders_Response = {
40498
43388
  providers: {
40499
43389
  id: string;
@@ -40560,6 +43450,7 @@ export type GetSystemPackages_Response = {
40560
43450
  }[];
40561
43451
  isDev: boolean;
40562
43452
  cmsEnabled: boolean;
43453
+ editorSource?: ('code' | 'db') | undefined;
40563
43454
  observabilityEnabled: boolean;
40564
43455
  storageType?: string | undefined;
40565
43456
  observabilityStorageType?: string | undefined;
@@ -44372,6 +47263,7 @@ export interface RouteTypes {
44372
47263
  'POST /mcp/:serverId/messages': PostMcpServerIdMessages_RouteContract;
44373
47264
  'GET /stored/agents': GetStoredAgents_RouteContract;
44374
47265
  'POST /stored/agents/preview-instructions': PostStoredAgentsPreviewInstructions_RouteContract;
47266
+ 'POST /stored/agents/:storedAgentId/export': PostStoredAgentsStoredAgentIdExport_RouteContract;
44375
47267
  'GET /stored/agents/:storedAgentId': GetStoredAgentsStoredAgentId_RouteContract;
44376
47268
  'POST /stored/agents': PostStoredAgents_RouteContract;
44377
47269
  'PATCH /stored/agents/:storedAgentId': PatchStoredAgentsStoredAgentId_RouteContract;
@@ -44438,6 +47330,15 @@ export interface RouteTypes {
44438
47330
  'GET /tool-providers/:providerId/toolkits': GetToolProvidersProviderIdToolkits_RouteContract;
44439
47331
  'GET /tool-providers/:providerId/tools': GetToolProvidersProviderIdTools_RouteContract;
44440
47332
  'GET /tool-providers/:providerId/tools/:toolSlug/schema': GetToolProvidersProviderIdToolsToolSlugSchema_RouteContract;
47333
+ 'POST /tool-providers/:providerId/authorize': PostToolProvidersProviderIdAuthorize_RouteContract;
47334
+ 'GET /tool-providers/:providerId/auth-status/:authId': GetToolProvidersProviderIdAuthStatusAuthId_RouteContract;
47335
+ 'POST /tool-providers/:providerId/connection-status': PostToolProvidersProviderIdConnectionStatus_RouteContract;
47336
+ 'GET /tool-providers/:providerId/connections': GetToolProvidersProviderIdConnections_RouteContract;
47337
+ 'GET /tool-providers/:providerId/connection-fields': GetToolProvidersProviderIdConnectionFields_RouteContract;
47338
+ 'DELETE /tool-providers/:providerId/connections/:connectionId': DeleteToolProvidersProviderIdConnectionsConnectionId_RouteContract;
47339
+ 'PATCH /tool-providers/:providerId/connections/:connectionId': PatchToolProvidersProviderIdConnectionsConnectionId_RouteContract;
47340
+ 'GET /tool-providers/:providerId/connections/:connectionId/usage': GetToolProvidersProviderIdConnectionsConnectionIdUsage_RouteContract;
47341
+ 'GET /tool-providers/:providerId/health': GetToolProvidersProviderIdHealth_RouteContract;
44441
47342
  'GET /processor-providers': GetProcessorProviders_RouteContract;
44442
47343
  'GET /processor-providers/:providerId': GetProcessorProvidersProviderId_RouteContract;
44443
47344
  'GET /system/packages': GetSystemPackages_RouteContract;
@@ -45106,6 +48007,9 @@ export interface Client {
45106
48007
  GET: GetStoredAgentsStoredAgentId_RouteContract;
45107
48008
  PATCH: PatchStoredAgentsStoredAgentId_RouteContract;
45108
48009
  };
48010
+ '/stored/agents/:storedAgentId/export': {
48011
+ POST: PostStoredAgentsStoredAgentIdExport_RouteContract;
48012
+ };
45109
48013
  '/stored/agents/:storedAgentId/favorite': {
45110
48014
  DELETE: DeleteStoredAgentsStoredAgentIdFavorite_RouteContract;
45111
48015
  PUT: PutStoredAgentsStoredAgentIdFavorite_RouteContract;
@@ -45225,6 +48129,31 @@ export interface Client {
45225
48129
  '/tool-providers': {
45226
48130
  GET: GetToolProviders_RouteContract;
45227
48131
  };
48132
+ '/tool-providers/:providerId/auth-status/:authId': {
48133
+ GET: GetToolProvidersProviderIdAuthStatusAuthId_RouteContract;
48134
+ };
48135
+ '/tool-providers/:providerId/authorize': {
48136
+ POST: PostToolProvidersProviderIdAuthorize_RouteContract;
48137
+ };
48138
+ '/tool-providers/:providerId/connection-fields': {
48139
+ GET: GetToolProvidersProviderIdConnectionFields_RouteContract;
48140
+ };
48141
+ '/tool-providers/:providerId/connection-status': {
48142
+ POST: PostToolProvidersProviderIdConnectionStatus_RouteContract;
48143
+ };
48144
+ '/tool-providers/:providerId/connections': {
48145
+ GET: GetToolProvidersProviderIdConnections_RouteContract;
48146
+ };
48147
+ '/tool-providers/:providerId/connections/:connectionId': {
48148
+ DELETE: DeleteToolProvidersProviderIdConnectionsConnectionId_RouteContract;
48149
+ PATCH: PatchToolProvidersProviderIdConnectionsConnectionId_RouteContract;
48150
+ };
48151
+ '/tool-providers/:providerId/connections/:connectionId/usage': {
48152
+ GET: GetToolProvidersProviderIdConnectionsConnectionIdUsage_RouteContract;
48153
+ };
48154
+ '/tool-providers/:providerId/health': {
48155
+ GET: GetToolProvidersProviderIdHealth_RouteContract;
48156
+ };
45228
48157
  '/tool-providers/:providerId/toolkits': {
45229
48158
  GET: GetToolProvidersProviderIdToolkits_RouteContract;
45230
48159
  };