@nekro-nxt/contracts 0.5.0 → 0.6.0

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.
@@ -82,6 +82,16 @@ export declare const ExtensionPermissionRequirementSchema: z.ZodObject<{
82
82
  mayForceTrigger: z.ZodBoolean;
83
83
  timeoutMs: z.ZodNumber;
84
84
  }, z.core.$strict>>;
85
+ outbound: z.ZodOptional<z.ZodObject<{
86
+ read: z.ZodOptional<z.ZodLiteral<true>>;
87
+ transform: z.ZodOptional<z.ZodLiteral<true>>;
88
+ cancel: z.ZodOptional<z.ZodLiteral<true>>;
89
+ timeoutMs: z.ZodNumber;
90
+ onTimeout: z.ZodOptional<z.ZodEnum<{
91
+ cancel: "cancel";
92
+ send: "send";
93
+ }>>;
94
+ }, z.core.$strict>>;
85
95
  jobs: z.ZodOptional<z.ZodObject<{
86
96
  declared: z.ZodOptional<z.ZodArray<z.ZodObject<{
87
97
  id: z.ZodString;
@@ -111,6 +121,8 @@ export declare const ExtensionPermissionRequirementSchema: z.ZodObject<{
111
121
  url: z.ZodString;
112
122
  headers: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
113
123
  secret: z.ZodString;
124
+ }, z.core.$strict>, z.ZodObject<{
125
+ credential: z.ZodString;
114
126
  }, z.core.$strict>]>>>;
115
127
  }, z.core.$strict>, z.ZodObject<{
116
128
  transport: z.ZodLiteral<"stdio">;
@@ -119,6 +131,8 @@ export declare const ExtensionPermissionRequirementSchema: z.ZodObject<{
119
131
  args: z.ZodDefault<z.ZodArray<z.ZodString>>;
120
132
  env: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
121
133
  secret: z.ZodString;
134
+ }, z.core.$strict>, z.ZodObject<{
135
+ credential: z.ZodString;
122
136
  }, z.core.$strict>]>>>;
123
137
  }, z.core.$strict>], "transport">>;
124
138
  }, z.core.$strict>>;
@@ -175,16 +189,14 @@ export declare const ImageUnderstandingPolicyApiSchema: z.ZodObject<{
175
189
  maxTokens: z.ZodNumber;
176
190
  }, z.core.$strict>], "mode">;
177
191
  }, z.core.$strict>;
178
- export declare const CommandAccountServiceSchema: z.ZodEnum<{
179
- github: "github";
180
- }>;
181
- export type CommandAccountService = z.output<typeof CommandAccountServiceSchema>;
182
192
  export declare const CommandAccountUsageSchema: z.ZodEnum<{
183
193
  issues: "issues";
184
194
  push: "push";
185
195
  read: "read";
186
196
  "pull-requests": "pull-requests";
187
197
  }>;
198
+ /** What the user wants a granted account used for; told to the agent only. */
199
+ export type CommandAccountUsage = z.output<typeof CommandAccountUsageSchema>;
188
200
  export declare const DynamicClientApprovalPolicySchema: z.ZodEnum<{
189
201
  manual: "manual";
190
202
  automatic: "automatic";
@@ -192,6 +204,8 @@ export declare const DynamicClientApprovalPolicySchema: z.ZodEnum<{
192
204
  export declare const NotificationEventKeySchema: z.ZodEnum<{
193
205
  "dynamic-client-approval-requested": "dynamic-client-approval-requested";
194
206
  "community-feedback-update": "community-feedback-update";
207
+ "credential-requested": "credential-requested";
208
+ "extension-notification": "extension-notification";
195
209
  }>;
196
210
  export type NotificationEventKey = z.output<typeof NotificationEventKeySchema>;
197
211
  export declare const NotificationSettingsViewSchema: z.ZodObject<{
@@ -207,6 +221,8 @@ export declare const NotificationSettingsViewSchema: z.ZodObject<{
207
221
  events: z.ZodObject<{
208
222
  'dynamic-client-approval-requested': z.ZodBoolean;
209
223
  'community-feedback-update': z.ZodDefault<z.ZodBoolean>;
224
+ 'credential-requested': z.ZodDefault<z.ZodBoolean>;
225
+ 'extension-notification': z.ZodDefault<z.ZodBoolean>;
210
226
  }, z.core.$strict>;
211
227
  }, z.core.$strict>;
212
228
  export declare const UpdateNotificationSettingsRequestSchema: z.ZodObject<{
@@ -223,6 +239,8 @@ export declare const UpdateNotificationSettingsRequestSchema: z.ZodObject<{
223
239
  events: z.ZodObject<{
224
240
  'dynamic-client-approval-requested': z.ZodBoolean;
225
241
  'community-feedback-update': z.ZodOptional<z.ZodBoolean>;
242
+ 'credential-requested': z.ZodOptional<z.ZodBoolean>;
243
+ 'extension-notification': z.ZodOptional<z.ZodBoolean>;
226
244
  }, z.core.$strict>;
227
245
  }, z.core.$strict>;
228
246
  export declare const TestBarkNotificationRequestSchema: z.ZodObject<{
@@ -242,12 +260,126 @@ export declare const ClientNotificationFeedResponseSchema: z.ZodObject<{
242
260
  route: z.ZodOptional<z.ZodString>;
243
261
  }, z.core.$strict>>;
244
262
  }, z.core.$strict>;
263
+ /** Which model writes one kind of compaction summary: that kind's default, or a model chosen for this agent. */
264
+ export declare const AgentCompactionModelChoiceSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
265
+ mode: z.ZodLiteral<"follow">;
266
+ }, z.core.$strict>, z.ZodObject<{
267
+ mode: z.ZodLiteral<"custom">;
268
+ model: z.ZodObject<{
269
+ provider: z.ZodString;
270
+ model: z.ZodString;
271
+ reasoningEffort: z.ZodOptional<z.ZodString>;
272
+ }, z.core.$strict>;
273
+ }, z.core.$strict>], "mode">;
274
+ /**
275
+ * In-session compaction follows the main model by default, so the replayed conversation hits the provider's cache;
276
+ * compaction into a new session follows the host's compaction model.
277
+ */
278
+ export declare const AgentCompactionPolicySchema: z.ZodObject<{
279
+ inSession: z.ZodDiscriminatedUnion<[z.ZodObject<{
280
+ mode: z.ZodLiteral<"follow">;
281
+ }, z.core.$strict>, z.ZodObject<{
282
+ mode: z.ZodLiteral<"custom">;
283
+ model: z.ZodObject<{
284
+ provider: z.ZodString;
285
+ model: z.ZodString;
286
+ reasoningEffort: z.ZodOptional<z.ZodString>;
287
+ }, z.core.$strict>;
288
+ }, z.core.$strict>], "mode">;
289
+ newSession: z.ZodDiscriminatedUnion<[z.ZodObject<{
290
+ mode: z.ZodLiteral<"follow">;
291
+ }, z.core.$strict>, z.ZodObject<{
292
+ mode: z.ZodLiteral<"custom">;
293
+ model: z.ZodObject<{
294
+ provider: z.ZodString;
295
+ model: z.ZodString;
296
+ reasoningEffort: z.ZodOptional<z.ZodString>;
297
+ }, z.core.$strict>;
298
+ }, z.core.$strict>], "mode">;
299
+ }, z.core.$strict>;
300
+ /** The host's idle compaction threshold, summary model and wait limit. */
301
+ export declare const CompactionSettingsSchema: z.ZodObject<{
302
+ idleThresholdPercent: z.ZodDefault<z.ZodNumber>;
303
+ newSessionModel: z.ZodDiscriminatedUnion<[z.ZodObject<{
304
+ mode: z.ZodLiteral<"main">;
305
+ }, z.core.$strict>, z.ZodObject<{
306
+ mode: z.ZodLiteral<"custom">;
307
+ model: z.ZodObject<{
308
+ provider: z.ZodString;
309
+ model: z.ZodString;
310
+ reasoningEffort: z.ZodOptional<z.ZodString>;
311
+ }, z.core.$strict>;
312
+ }, z.core.$strict>], "mode">;
313
+ timeoutSeconds: z.ZodNumber;
314
+ }, z.core.$strict>;
315
+ export type CompactionSettings = z.output<typeof CompactionSettingsSchema>;
316
+ export declare const DEFAULT_COMPACTION_SETTINGS: CompactionSettings;
317
+ export declare const FALLBACK_MODEL_LIMIT = 3;
318
+ /**
319
+ * Models an agent switches to, in order, when its main model has used up its quota or stays unavailable after the
320
+ * usual retries. Empty leaves the main model alone, as before fallback models existed.
321
+ */
322
+ export declare const AgentFallbackModelsSchema: z.ZodArray<z.ZodObject<{
323
+ provider: z.ZodString;
324
+ model: z.ZodString;
325
+ reasoningEffort: z.ZodOptional<z.ZodString>;
326
+ }, z.core.$strict>>;
327
+ /** Why a channel conversation left its main model. */
328
+ export declare const ModelFallbackReasonSchema: z.ZodEnum<{
329
+ quota: "quota";
330
+ "rate-limit": "rate-limit";
331
+ unavailable: "unavailable";
332
+ }>;
333
+ export type ModelFallbackReason = z.output<typeof ModelFallbackReasonSchema>;
334
+ /** How long a model that failed is passed over before conversations try it again. */
335
+ export declare const ModelFallbackSettingsSchema: z.ZodObject<{
336
+ unavailableCooldownMinutes: z.ZodNumber;
337
+ quotaCooldownMinutes: z.ZodNumber;
338
+ }, z.core.$strict>;
339
+ export type ModelFallbackSettings = z.output<typeof ModelFallbackSettingsSchema>;
340
+ export declare const DEFAULT_MODEL_FALLBACK_SETTINGS: ModelFallbackSettings;
341
+ /** The name an agent passes to open a sub-conversation on its main model; no candidate may take it. */
342
+ export declare const SUB_CONVERSATION_MAIN_MODEL = "\u4E3B\u6A21\u578B";
343
+ export declare const SUB_CONVERSATION_MODEL_LIMITS: {
344
+ readonly candidates: 8;
345
+ readonly name: 20;
346
+ readonly guidance: 200;
347
+ };
348
+ /**
349
+ * Models an agent may open sub-conversations with, each named so the agent can pick it and described so it knows
350
+ * when to. Without a `default`, a sub-conversation opened without naming a model follows the main model.
351
+ */
352
+ export declare const AgentSubConversationModelsSchema: z.ZodObject<{
353
+ candidates: z.ZodArray<z.ZodObject<{
354
+ name: z.ZodString;
355
+ model: z.ZodObject<{
356
+ provider: z.ZodString;
357
+ model: z.ZodString;
358
+ reasoningEffort: z.ZodOptional<z.ZodString>;
359
+ }, z.core.$strict>;
360
+ guidance: z.ZodString;
361
+ }, z.core.$strict>>;
362
+ default: z.ZodOptional<z.ZodString>;
363
+ }, z.core.$strict>;
364
+ export type AgentSubConversationModels = z.output<typeof AgentSubConversationModelsSchema>;
365
+ export declare const NO_SUB_CONVERSATION_MODELS: AgentSubConversationModels;
245
366
  export declare const WorkTreeOrderSchema: z.ZodObject<{
246
367
  agentIds: z.ZodArray<z.core.$ZodBranded<z.ZodString, "AgentId", "out">>;
247
368
  channelIdsByAgent: z.ZodRecord<z.core.$ZodBranded<z.ZodString, "AgentId", "out">, z.ZodArray<z.core.$ZodBranded<z.ZodString, "ChannelId", "out">>>;
248
369
  unboundChannelIds: z.ZodArray<z.core.$ZodBranded<z.ZodString, "ChannelId", "out">>;
249
370
  }, z.core.$strict>;
250
371
  export type WorkTreeOrder = z.output<typeof WorkTreeOrderSchema>;
372
+ /** The group key of 「未接线」 in `collapsedGroupIds`; agent groups use the agent id. */
373
+ export declare const UNBOUND_CHANNEL_GROUP_ID = "unbound";
374
+ /**
375
+ * How the console arranges its channel list: pinned channels in their order and the groups it has collapsed. Shared
376
+ * by every device signed in to the console; it never changes bindings.
377
+ */
378
+ export declare const ChannelListViewSchema: z.ZodObject<{
379
+ pinnedChannelIds: z.ZodArray<z.core.$ZodBranded<z.ZodString, "ChannelId", "out">>;
380
+ collapsedGroupIds: z.ZodArray<z.ZodUnion<readonly [z.core.$ZodBranded<z.ZodString, "AgentId", "out">, z.ZodLiteral<"unbound">]>>;
381
+ }, z.core.$strict>;
382
+ export type ChannelListView = z.output<typeof ChannelListViewSchema>;
251
383
  export declare const HostSnapshotMessageSchema: z.ZodObject<{
252
384
  id: z.ZodUnion<readonly [z.core.$ZodBranded<z.ZodString, "ChannelEventId", "out">, z.core.$ZodBranded<z.ZodString, "OutboundIntentId", "out">]>;
253
385
  channelId: z.core.$ZodBranded<z.ZodString, "ChannelId", "out">;
@@ -446,11 +578,24 @@ export declare const HostSnapshotMessageSchema: z.ZodObject<{
446
578
  extensions: z.ZodArray<z.ZodString>;
447
579
  problems: z.ZodOptional<z.ZodArray<z.ZodString>>;
448
580
  }, z.core.$strict>>;
581
+ outboundProcessing: z.ZodOptional<z.ZodObject<{
582
+ extensions: z.ZodArray<z.ZodString>;
583
+ rewritten: z.ZodBoolean;
584
+ followUp: z.ZodOptional<z.ZodLiteral<true>>;
585
+ }, z.core.$strict>>;
449
586
  scheduledTask: z.ZodOptional<z.ZodObject<{
450
587
  label: z.ZodString;
451
588
  extensionName: z.ZodOptional<z.ZodString>;
452
589
  note: z.ZodOptional<z.ZodString>;
453
590
  }, z.core.$strict>>;
591
+ responseWait: z.ZodOptional<z.ZodObject<{
592
+ displayName: z.ZodOptional<z.ZodString>;
593
+ cause: z.ZodEnum<{
594
+ limit: "limit";
595
+ quiet: "quiet";
596
+ }>;
597
+ waitedSeconds: z.ZodNumber;
598
+ }, z.core.$strict>>;
454
599
  }, z.core.$strict>;
455
600
  export type HostSnapshotMessage = z.output<typeof HostSnapshotMessageSchema>;
456
601
  export declare const HostConnectionEventSchema: z.ZodObject<{
@@ -513,8 +658,8 @@ export declare const PlatformUserListResponseSchema: z.ZodObject<{
513
658
  export type PlatformUserListResponse = z.output<typeof PlatformUserListResponseSchema>;
514
659
  export declare const ChannelFactSseItemSchema: z.ZodObject<{
515
660
  kind: z.ZodEnum<{
516
- inbound: "inbound";
517
661
  outbound: "outbound";
662
+ inbound: "inbound";
518
663
  }>;
519
664
  sourceId: z.ZodUnion<readonly [z.core.$ZodBranded<z.ZodString, "ChannelEventId", "out">, z.core.$ZodBranded<z.ZodString, "OutboundIntentId", "out">]>;
520
665
  message: z.ZodObject<{
@@ -715,11 +860,24 @@ export declare const ChannelFactSseItemSchema: z.ZodObject<{
715
860
  extensions: z.ZodArray<z.ZodString>;
716
861
  problems: z.ZodOptional<z.ZodArray<z.ZodString>>;
717
862
  }, z.core.$strict>>;
863
+ outboundProcessing: z.ZodOptional<z.ZodObject<{
864
+ extensions: z.ZodArray<z.ZodString>;
865
+ rewritten: z.ZodBoolean;
866
+ followUp: z.ZodOptional<z.ZodLiteral<true>>;
867
+ }, z.core.$strict>>;
718
868
  scheduledTask: z.ZodOptional<z.ZodObject<{
719
869
  label: z.ZodString;
720
870
  extensionName: z.ZodOptional<z.ZodString>;
721
871
  note: z.ZodOptional<z.ZodString>;
722
872
  }, z.core.$strict>>;
873
+ responseWait: z.ZodOptional<z.ZodObject<{
874
+ displayName: z.ZodOptional<z.ZodString>;
875
+ cause: z.ZodEnum<{
876
+ limit: "limit";
877
+ quiet: "quiet";
878
+ }>;
879
+ waitedSeconds: z.ZodNumber;
880
+ }, z.core.$strict>>;
723
881
  }, z.core.$strict>;
724
882
  }, z.core.$strict>;
725
883
  export declare const ChannelFactSseDataSchema: z.ZodObject<{
@@ -727,8 +885,8 @@ export declare const ChannelFactSseDataSchema: z.ZodObject<{
727
885
  revision: z.ZodNumber;
728
886
  items: z.ZodArray<z.ZodObject<{
729
887
  kind: z.ZodEnum<{
730
- inbound: "inbound";
731
888
  outbound: "outbound";
889
+ inbound: "inbound";
732
890
  }>;
733
891
  sourceId: z.ZodUnion<readonly [z.core.$ZodBranded<z.ZodString, "ChannelEventId", "out">, z.core.$ZodBranded<z.ZodString, "OutboundIntentId", "out">]>;
734
892
  message: z.ZodObject<{
@@ -929,20 +1087,34 @@ export declare const ChannelFactSseDataSchema: z.ZodObject<{
929
1087
  extensions: z.ZodArray<z.ZodString>;
930
1088
  problems: z.ZodOptional<z.ZodArray<z.ZodString>>;
931
1089
  }, z.core.$strict>>;
1090
+ outboundProcessing: z.ZodOptional<z.ZodObject<{
1091
+ extensions: z.ZodArray<z.ZodString>;
1092
+ rewritten: z.ZodBoolean;
1093
+ followUp: z.ZodOptional<z.ZodLiteral<true>>;
1094
+ }, z.core.$strict>>;
932
1095
  scheduledTask: z.ZodOptional<z.ZodObject<{
933
1096
  label: z.ZodString;
934
1097
  extensionName: z.ZodOptional<z.ZodString>;
935
1098
  note: z.ZodOptional<z.ZodString>;
936
1099
  }, z.core.$strict>>;
1100
+ responseWait: z.ZodOptional<z.ZodObject<{
1101
+ displayName: z.ZodOptional<z.ZodString>;
1102
+ cause: z.ZodEnum<{
1103
+ limit: "limit";
1104
+ quiet: "quiet";
1105
+ }>;
1106
+ waitedSeconds: z.ZodNumber;
1107
+ }, z.core.$strict>>;
937
1108
  }, z.core.$strict>;
938
1109
  }, z.core.$strict>>;
939
1110
  }, z.core.$strict>;
940
1111
  export declare const ChannelRuntimePhaseSchema: z.ZodEnum<{
1112
+ unavailable: "unavailable";
941
1113
  idle: "idle";
942
1114
  thinking: "thinking";
943
1115
  "using-tool": "using-tool";
1116
+ compacting: "compacting";
944
1117
  "waiting-input": "waiting-input";
945
- unavailable: "unavailable";
946
1118
  }>;
947
1119
  export declare const ChannelRuntimeUsageSchema: z.ZodObject<{
948
1120
  inputTokens: z.ZodNumber;
@@ -971,6 +1143,7 @@ export declare const ChannelRuntimeToolSchema: z.ZodObject<{
971
1143
  "partially-sent": "partially-sent";
972
1144
  failed: "failed";
973
1145
  unknown: "unknown";
1146
+ cancelled: "cancelled";
974
1147
  }>>;
975
1148
  durationMs: z.ZodOptional<z.ZodNumber>;
976
1149
  }, z.core.$strict>>>;
@@ -990,6 +1163,7 @@ export declare const ChannelRuntimeToolSchema: z.ZodObject<{
990
1163
  "partially-sent": "partially-sent";
991
1164
  failed: "failed";
992
1165
  unknown: "unknown";
1166
+ cancelled: "cancelled";
993
1167
  }>>;
994
1168
  durationMs: z.ZodOptional<z.ZodNumber>;
995
1169
  }, z.core.$strict>;
@@ -1014,6 +1188,7 @@ export declare const ChannelRuntimeStepSchema: z.ZodObject<{
1014
1188
  "partially-sent": "partially-sent";
1015
1189
  failed: "failed";
1016
1190
  unknown: "unknown";
1191
+ cancelled: "cancelled";
1017
1192
  }>>;
1018
1193
  durationMs: z.ZodOptional<z.ZodNumber>;
1019
1194
  }, z.core.$strict>>>;
@@ -1033,6 +1208,7 @@ export declare const ChannelRuntimeStepSchema: z.ZodObject<{
1033
1208
  "partially-sent": "partially-sent";
1034
1209
  failed: "failed";
1035
1210
  unknown: "unknown";
1211
+ cancelled: "cancelled";
1036
1212
  }>>;
1037
1213
  durationMs: z.ZodOptional<z.ZodNumber>;
1038
1214
  }, z.core.$strict>>;
@@ -1105,6 +1281,7 @@ export declare const ChannelRuntimeTurnSchema: z.ZodObject<{
1105
1281
  "partially-sent": "partially-sent";
1106
1282
  failed: "failed";
1107
1283
  unknown: "unknown";
1284
+ cancelled: "cancelled";
1108
1285
  }>>;
1109
1286
  durationMs: z.ZodOptional<z.ZodNumber>;
1110
1287
  }, z.core.$strict>>>;
@@ -1124,6 +1301,7 @@ export declare const ChannelRuntimeTurnSchema: z.ZodObject<{
1124
1301
  "partially-sent": "partially-sent";
1125
1302
  failed: "failed";
1126
1303
  unknown: "unknown";
1304
+ cancelled: "cancelled";
1127
1305
  }>>;
1128
1306
  durationMs: z.ZodOptional<z.ZodNumber>;
1129
1307
  }, z.core.$strict>>;
@@ -1266,13 +1444,35 @@ export declare const ChannelRuntimeProjectionSchema: z.ZodObject<{
1266
1444
  agentId: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "AgentId", "out">>;
1267
1445
  episodeId: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "EpisodeId", "out">>;
1268
1446
  phase: z.ZodEnum<{
1447
+ unavailable: "unavailable";
1269
1448
  idle: "idle";
1270
1449
  thinking: "thinking";
1271
1450
  "using-tool": "using-tool";
1451
+ compacting: "compacting";
1272
1452
  "waiting-input": "waiting-input";
1273
- unavailable: "unavailable";
1274
1453
  }>;
1275
1454
  summary: z.ZodString;
1455
+ compaction: z.ZodOptional<z.ZodObject<{
1456
+ kind: z.ZodEnum<{
1457
+ "in-session": "in-session";
1458
+ "new-session": "new-session";
1459
+ }>;
1460
+ startedAt: z.ZodNumber;
1461
+ }, z.core.$strict>>;
1462
+ modelFallback: z.ZodOptional<z.ZodObject<{
1463
+ model: z.ZodObject<{
1464
+ provider: z.ZodString;
1465
+ model: z.ZodString;
1466
+ reasoningEffort: z.ZodOptional<z.ZodString>;
1467
+ }, z.core.$strict>;
1468
+ reason: z.ZodEnum<{
1469
+ quota: "quota";
1470
+ "rate-limit": "rate-limit";
1471
+ unavailable: "unavailable";
1472
+ }>;
1473
+ since: z.ZodNumber;
1474
+ retryMainAt: z.ZodNumber;
1475
+ }, z.core.$strict>>;
1276
1476
  pendingInjectCount: z.ZodNumber;
1277
1477
  occupancy: z.ZodOptional<z.ZodObject<{
1278
1478
  projectedTokens: z.ZodNumber;
@@ -1407,6 +1607,7 @@ export declare const ChannelRuntimeProjectionSchema: z.ZodObject<{
1407
1607
  "partially-sent": "partially-sent";
1408
1608
  failed: "failed";
1409
1609
  unknown: "unknown";
1610
+ cancelled: "cancelled";
1410
1611
  }>>;
1411
1612
  durationMs: z.ZodOptional<z.ZodNumber>;
1412
1613
  }, z.core.$strict>>>;
@@ -1426,6 +1627,7 @@ export declare const ChannelRuntimeProjectionSchema: z.ZodObject<{
1426
1627
  "partially-sent": "partially-sent";
1427
1628
  failed: "failed";
1428
1629
  unknown: "unknown";
1630
+ cancelled: "cancelled";
1429
1631
  }>>;
1430
1632
  durationMs: z.ZodOptional<z.ZodNumber>;
1431
1633
  }, z.core.$strict>>;
@@ -1463,13 +1665,35 @@ export declare const ChannelRuntimeSseDataSchema: z.ZodObject<{
1463
1665
  agentId: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "AgentId", "out">>;
1464
1666
  episodeId: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "EpisodeId", "out">>;
1465
1667
  phase: z.ZodEnum<{
1668
+ unavailable: "unavailable";
1466
1669
  idle: "idle";
1467
1670
  thinking: "thinking";
1468
1671
  "using-tool": "using-tool";
1672
+ compacting: "compacting";
1469
1673
  "waiting-input": "waiting-input";
1470
- unavailable: "unavailable";
1471
1674
  }>;
1472
1675
  summary: z.ZodString;
1676
+ compaction: z.ZodOptional<z.ZodObject<{
1677
+ kind: z.ZodEnum<{
1678
+ "in-session": "in-session";
1679
+ "new-session": "new-session";
1680
+ }>;
1681
+ startedAt: z.ZodNumber;
1682
+ }, z.core.$strict>>;
1683
+ modelFallback: z.ZodOptional<z.ZodObject<{
1684
+ model: z.ZodObject<{
1685
+ provider: z.ZodString;
1686
+ model: z.ZodString;
1687
+ reasoningEffort: z.ZodOptional<z.ZodString>;
1688
+ }, z.core.$strict>;
1689
+ reason: z.ZodEnum<{
1690
+ quota: "quota";
1691
+ "rate-limit": "rate-limit";
1692
+ unavailable: "unavailable";
1693
+ }>;
1694
+ since: z.ZodNumber;
1695
+ retryMainAt: z.ZodNumber;
1696
+ }, z.core.$strict>>;
1473
1697
  pendingInjectCount: z.ZodNumber;
1474
1698
  occupancy: z.ZodOptional<z.ZodObject<{
1475
1699
  projectedTokens: z.ZodNumber;
@@ -1604,6 +1828,7 @@ export declare const ChannelRuntimeSseDataSchema: z.ZodObject<{
1604
1828
  "partially-sent": "partially-sent";
1605
1829
  failed: "failed";
1606
1830
  unknown: "unknown";
1831
+ cancelled: "cancelled";
1607
1832
  }>>;
1608
1833
  durationMs: z.ZodOptional<z.ZodNumber>;
1609
1834
  }, z.core.$strict>>>;
@@ -1623,6 +1848,7 @@ export declare const ChannelRuntimeSseDataSchema: z.ZodObject<{
1623
1848
  "partially-sent": "partially-sent";
1624
1849
  failed: "failed";
1625
1850
  unknown: "unknown";
1851
+ cancelled: "cancelled";
1626
1852
  }>>;
1627
1853
  durationMs: z.ZodOptional<z.ZodNumber>;
1628
1854
  }, z.core.$strict>>;
@@ -1910,8 +2136,8 @@ export declare const SubConversationSchema: z.ZodObject<{
1910
2136
  script: "script";
1911
2137
  }>;
1912
2138
  status: z.ZodEnum<{
1913
- closed: "closed";
1914
2139
  open: "open";
2140
+ closed: "closed";
1915
2141
  }>;
1916
2142
  closeReason: z.ZodOptional<z.ZodEnum<{
1917
2143
  failed: "failed";
@@ -1922,6 +2148,11 @@ export declare const SubConversationSchema: z.ZodObject<{
1922
2148
  }>>;
1923
2149
  summary: z.ZodOptional<z.ZodString>;
1924
2150
  authoringTaskId: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "AuthoringTaskId", "out">>;
2151
+ model: z.ZodOptional<z.ZodObject<{
2152
+ provider: z.ZodString;
2153
+ model: z.ZodString;
2154
+ reasoningEffort: z.ZodOptional<z.ZodString>;
2155
+ }, z.core.$strict>>;
1925
2156
  createdAt: z.ZodNumber;
1926
2157
  closedAt: z.ZodOptional<z.ZodNumber>;
1927
2158
  }, z.core.$strict>;
@@ -2075,6 +2306,7 @@ export declare const AttentionItemSchema: z.ZodObject<{
2075
2306
  "agent-vision-unavailable": "agent-vision-unavailable";
2076
2307
  "logs-unavailable": "logs-unavailable";
2077
2308
  "community-feedback": "community-feedback";
2309
+ "extension-update": "extension-update";
2078
2310
  }>;
2079
2311
  severity: z.ZodEnum<{
2080
2312
  info: "info";
@@ -2088,6 +2320,7 @@ export declare const AttentionItemSchema: z.ZodObject<{
2088
2320
  connection: "connection";
2089
2321
  outbound: "outbound";
2090
2322
  "community-feedback": "community-feedback";
2323
+ "extension-update": "extension-update";
2091
2324
  "authoring-task": "authoring-task";
2092
2325
  logs: "logs";
2093
2326
  }>;
@@ -2111,6 +2344,7 @@ export declare const AttentionItemSchema: z.ZodObject<{
2111
2344
  "open-agent": "open-agent";
2112
2345
  "open-logs": "open-logs";
2113
2346
  "open-community-feedback": "open-community-feedback";
2347
+ "open-extension-updates": "open-extension-updates";
2114
2348
  }>;
2115
2349
  label: z.ZodString;
2116
2350
  }, z.core.$strict>;
@@ -2131,6 +2365,7 @@ export declare const AttentionListSchema: z.ZodObject<{
2131
2365
  "agent-vision-unavailable": "agent-vision-unavailable";
2132
2366
  "logs-unavailable": "logs-unavailable";
2133
2367
  "community-feedback": "community-feedback";
2368
+ "extension-update": "extension-update";
2134
2369
  }>;
2135
2370
  severity: z.ZodEnum<{
2136
2371
  info: "info";
@@ -2144,6 +2379,7 @@ export declare const AttentionListSchema: z.ZodObject<{
2144
2379
  connection: "connection";
2145
2380
  outbound: "outbound";
2146
2381
  "community-feedback": "community-feedback";
2382
+ "extension-update": "extension-update";
2147
2383
  "authoring-task": "authoring-task";
2148
2384
  logs: "logs";
2149
2385
  }>;
@@ -2167,6 +2403,7 @@ export declare const AttentionListSchema: z.ZodObject<{
2167
2403
  "open-agent": "open-agent";
2168
2404
  "open-logs": "open-logs";
2169
2405
  "open-community-feedback": "open-community-feedback";
2406
+ "open-extension-updates": "open-extension-updates";
2170
2407
  }>;
2171
2408
  label: z.ZodString;
2172
2409
  }, z.core.$strict>;
@@ -2313,65 +2550,160 @@ export declare const VerificationBrowserAvailabilitySchema: z.ZodObject<{
2313
2550
  }, z.core.$strict>>;
2314
2551
  }, z.core.$strict>;
2315
2552
  export type VerificationBrowserAvailability = z.output<typeof VerificationBrowserAvailabilitySchema>;
2316
- /**
2317
- * One account in the host's library. The library only keeps accounts; an account takes effect only for the agents
2318
- * whose capabilities grant it, which `usedBy` lists.
2319
- */
2320
- export declare const CommandAccountSchema: z.ZodObject<{
2321
- id: z.ZodString;
2322
- service: z.ZodEnum<{
2323
- github: "github";
2324
- }>;
2325
- login: z.ZodString;
2326
- source: z.ZodEnum<{
2327
- token: "token";
2328
- "gh-login": "gh-login";
2553
+ /** A platform's own program that linked accounts work through, such as the GitHub CLI. */
2554
+ export declare const LinkedAccountPlatformToolSchema: z.ZodObject<{
2555
+ id: z.ZodEnum<{
2556
+ "github-cli": "github-cli";
2329
2557
  }>;
2330
- scopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
2331
- createdAt: z.ZodNumber;
2332
- usedBy: z.ZodArray<z.core.$ZodBranded<z.ZodString, "AgentId", "out">>;
2333
- }, z.core.$strict>;
2334
- export type CommandAccount = z.output<typeof CommandAccountSchema>;
2335
- /** A login the local `gh` holds, offered as a quick way to add an account. */
2336
- export declare const LocalGithubLoginSchema: z.ZodObject<{
2337
- login: z.ZodString;
2338
- active: z.ZodBoolean;
2558
+ name: z.ZodString;
2559
+ availability: z.ZodObject<{
2560
+ available: z.ZodBoolean;
2561
+ source: z.ZodOptional<z.ZodEnum<{
2562
+ host: "host";
2563
+ system: "system";
2564
+ downloaded: "downloaded";
2565
+ }>>;
2566
+ version: z.ZodOptional<z.ZodString>;
2567
+ download: z.ZodOptional<z.ZodObject<{
2568
+ version: z.ZodString;
2569
+ state: z.ZodEnum<{
2570
+ failed: "failed";
2571
+ idle: "idle";
2572
+ downloading: "downloading";
2573
+ }>;
2574
+ receivedBytes: z.ZodOptional<z.ZodNumber>;
2575
+ totalBytes: z.ZodOptional<z.ZodNumber>;
2576
+ error: z.ZodOptional<z.ZodString>;
2577
+ }, z.core.$strict>>;
2578
+ }, z.core.$strict>;
2339
2579
  }, z.core.$strict>;
2340
- export declare const CommandAccountsViewSchema: z.ZodObject<{
2341
- accounts: z.ZodArray<z.ZodObject<{
2342
- id: z.ZodString;
2343
- service: z.ZodEnum<{
2580
+ /** 设置 → 关联账号: every platform the host supports, with its accounts and tools. */
2581
+ export declare const LinkedAccountsViewSchema: z.ZodObject<{
2582
+ platforms: z.ZodArray<z.ZodObject<{
2583
+ id: z.ZodEnum<{
2344
2584
  github: "github";
2345
2585
  }>;
2346
- login: z.ZodString;
2347
- source: z.ZodEnum<{
2586
+ name: z.ZodString;
2587
+ addMethods: z.ZodArray<z.ZodEnum<{
2348
2588
  token: "token";
2349
2589
  "gh-login": "gh-login";
2350
- }>;
2351
- scopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
2352
- createdAt: z.ZodNumber;
2353
- usedBy: z.ZodArray<z.core.$ZodBranded<z.ZodString, "AgentId", "out">>;
2590
+ }>>;
2591
+ tool: z.ZodOptional<z.ZodObject<{
2592
+ id: z.ZodEnum<{
2593
+ "github-cli": "github-cli";
2594
+ }>;
2595
+ name: z.ZodString;
2596
+ availability: z.ZodObject<{
2597
+ available: z.ZodBoolean;
2598
+ source: z.ZodOptional<z.ZodEnum<{
2599
+ host: "host";
2600
+ system: "system";
2601
+ downloaded: "downloaded";
2602
+ }>>;
2603
+ version: z.ZodOptional<z.ZodString>;
2604
+ download: z.ZodOptional<z.ZodObject<{
2605
+ version: z.ZodString;
2606
+ state: z.ZodEnum<{
2607
+ failed: "failed";
2608
+ idle: "idle";
2609
+ downloading: "downloading";
2610
+ }>;
2611
+ receivedBytes: z.ZodOptional<z.ZodNumber>;
2612
+ totalBytes: z.ZodOptional<z.ZodNumber>;
2613
+ error: z.ZodOptional<z.ZodString>;
2614
+ }, z.core.$strict>>;
2615
+ }, z.core.$strict>;
2616
+ }, z.core.$strict>>;
2617
+ accounts: z.ZodArray<z.ZodObject<{
2618
+ id: z.core.$ZodBranded<z.ZodString, "LinkedAccountId", "out">;
2619
+ platform: z.ZodEnum<{
2620
+ github: "github";
2621
+ }>;
2622
+ login: z.ZodString;
2623
+ scopes: z.ZodNullable<z.ZodArray<z.ZodString>>;
2624
+ source: z.ZodEnum<{
2625
+ token: "token";
2626
+ "gh-login": "gh-login";
2627
+ }>;
2628
+ available: z.ZodBoolean;
2629
+ grantedAgentIds: z.ZodArray<z.core.$ZodBranded<z.ZodString, "AgentId", "out">>;
2630
+ createdAt: z.ZodNumber;
2631
+ updatedAt: z.ZodNumber;
2632
+ lastUsedAt: z.ZodNullable<z.ZodNumber>;
2633
+ }, z.core.$strict>>;
2354
2634
  }, z.core.$strict>>;
2355
- localLogins: z.ZodArray<z.ZodObject<{
2635
+ localGithubLogins: z.ZodArray<z.ZodObject<{
2356
2636
  login: z.ZodString;
2357
2637
  active: z.ZodBoolean;
2358
2638
  }, z.core.$strict>>;
2359
2639
  }, z.core.$strict>;
2360
- export type CommandAccountsView = z.output<typeof CommandAccountsViewSchema>;
2361
- export declare const AddCommandAccountRequestSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
2362
- source: z.ZodLiteral<"token">;
2363
- service: z.ZodEnum<{
2364
- github: "github";
2365
- }>;
2366
- token: z.ZodString;
2640
+ export type LinkedAccountsView = z.output<typeof LinkedAccountsViewSchema>;
2641
+ export declare const RemoveLinkedAccountResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
2642
+ removed: z.ZodLiteral<true>;
2643
+ view: z.ZodObject<{
2644
+ platforms: z.ZodArray<z.ZodObject<{
2645
+ id: z.ZodEnum<{
2646
+ github: "github";
2647
+ }>;
2648
+ name: z.ZodString;
2649
+ addMethods: z.ZodArray<z.ZodEnum<{
2650
+ token: "token";
2651
+ "gh-login": "gh-login";
2652
+ }>>;
2653
+ tool: z.ZodOptional<z.ZodObject<{
2654
+ id: z.ZodEnum<{
2655
+ "github-cli": "github-cli";
2656
+ }>;
2657
+ name: z.ZodString;
2658
+ availability: z.ZodObject<{
2659
+ available: z.ZodBoolean;
2660
+ source: z.ZodOptional<z.ZodEnum<{
2661
+ host: "host";
2662
+ system: "system";
2663
+ downloaded: "downloaded";
2664
+ }>>;
2665
+ version: z.ZodOptional<z.ZodString>;
2666
+ download: z.ZodOptional<z.ZodObject<{
2667
+ version: z.ZodString;
2668
+ state: z.ZodEnum<{
2669
+ failed: "failed";
2670
+ idle: "idle";
2671
+ downloading: "downloading";
2672
+ }>;
2673
+ receivedBytes: z.ZodOptional<z.ZodNumber>;
2674
+ totalBytes: z.ZodOptional<z.ZodNumber>;
2675
+ error: z.ZodOptional<z.ZodString>;
2676
+ }, z.core.$strict>>;
2677
+ }, z.core.$strict>;
2678
+ }, z.core.$strict>>;
2679
+ accounts: z.ZodArray<z.ZodObject<{
2680
+ id: z.core.$ZodBranded<z.ZodString, "LinkedAccountId", "out">;
2681
+ platform: z.ZodEnum<{
2682
+ github: "github";
2683
+ }>;
2684
+ login: z.ZodString;
2685
+ scopes: z.ZodNullable<z.ZodArray<z.ZodString>>;
2686
+ source: z.ZodEnum<{
2687
+ token: "token";
2688
+ "gh-login": "gh-login";
2689
+ }>;
2690
+ available: z.ZodBoolean;
2691
+ grantedAgentIds: z.ZodArray<z.core.$ZodBranded<z.ZodString, "AgentId", "out">>;
2692
+ createdAt: z.ZodNumber;
2693
+ updatedAt: z.ZodNumber;
2694
+ lastUsedAt: z.ZodNullable<z.ZodNumber>;
2695
+ }, z.core.$strict>>;
2696
+ }, z.core.$strict>>;
2697
+ localGithubLogins: z.ZodArray<z.ZodObject<{
2698
+ login: z.ZodString;
2699
+ active: z.ZodBoolean;
2700
+ }, z.core.$strict>>;
2701
+ }, z.core.$strict>;
2367
2702
  }, z.core.$strict>, z.ZodObject<{
2368
- source: z.ZodLiteral<"gh-login">;
2369
- service: z.ZodEnum<{
2370
- github: "github";
2371
- }>;
2372
- login: z.ZodString;
2373
- }, z.core.$strict>], "source">;
2374
- export type AddCommandAccountRequest = z.output<typeof AddCommandAccountRequestSchema>;
2703
+ removed: z.ZodLiteral<false>;
2704
+ grantedAgentIds: z.ZodArray<z.core.$ZodBranded<z.ZodString, "AgentId", "out">>;
2705
+ }, z.core.$strict>], "removed">;
2706
+ export type RemoveLinkedAccountResult = z.output<typeof RemoveLinkedAccountResultSchema>;
2375
2707
  /** An extension action an agent asked an administrator to confirm, or one it took on its own. */
2376
2708
  export declare const ExtensionRequestSchema: z.ZodObject<{
2377
2709
  number: z.ZodNumber;
@@ -2427,10 +2759,10 @@ export declare const HostSnapshotSchema: z.ZodObject<{
2427
2759
  isolated: "isolated";
2428
2760
  }>;
2429
2761
  phase: z.ZodEnum<{
2762
+ dependency: "dependency";
2430
2763
  dispose: "dispose";
2431
2764
  restore: "restore";
2432
2765
  configuration: "configuration";
2433
- dependency: "dependency";
2434
2766
  build: "build";
2435
2767
  load: "load";
2436
2768
  render: "render";
@@ -2461,6 +2793,13 @@ export declare const HostSnapshotSchema: z.ZodObject<{
2461
2793
  name: z.ZodString;
2462
2794
  description: z.ZodOptional<z.ZodString>;
2463
2795
  inputModalities: z.ZodOptional<z.ZodArray<z.ZodString>>;
2796
+ reasoning: z.ZodOptional<z.ZodObject<{
2797
+ efforts: z.ZodArray<z.ZodObject<{
2798
+ id: z.ZodString;
2799
+ name: z.ZodString;
2800
+ }, z.core.$strict>>;
2801
+ defaultEffort: z.ZodOptional<z.ZodString>;
2802
+ }, z.core.$strict>>;
2464
2803
  }, z.core.$strict>>;
2465
2804
  capabilityAvailability: z.ZodObject<{
2466
2805
  subagents: z.ZodObject<{
@@ -2657,22 +2996,10 @@ export declare const HostSnapshotSchema: z.ZodObject<{
2657
2996
  events: z.ZodObject<{
2658
2997
  'dynamic-client-approval-requested': z.ZodBoolean;
2659
2998
  'community-feedback-update': z.ZodDefault<z.ZodBoolean>;
2999
+ 'credential-requested': z.ZodDefault<z.ZodBoolean>;
3000
+ 'extension-notification': z.ZodDefault<z.ZodBoolean>;
2660
3001
  }, z.core.$strict>;
2661
3002
  }, z.core.$strict>;
2662
- commandAccounts: z.ZodOptional<z.ZodArray<z.ZodObject<{
2663
- id: z.ZodString;
2664
- service: z.ZodEnum<{
2665
- github: "github";
2666
- }>;
2667
- login: z.ZodString;
2668
- source: z.ZodEnum<{
2669
- token: "token";
2670
- "gh-login": "gh-login";
2671
- }>;
2672
- scopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
2673
- createdAt: z.ZodNumber;
2674
- usedBy: z.ZodArray<z.core.$ZodBranded<z.ZodString, "AgentId", "out">>;
2675
- }, z.core.$strict>>>;
2676
3003
  agents: z.ZodArray<z.ZodObject<{
2677
3004
  id: z.core.$ZodBranded<z.ZodString, "AgentId", "out">;
2678
3005
  displayName: z.ZodString;
@@ -2728,14 +3055,18 @@ export declare const HostSnapshotSchema: z.ZodObject<{
2728
3055
  }>>>;
2729
3056
  }, z.core.$strict>>>;
2730
3057
  extensionAutonomy: z.ZodDefault<z.ZodEnum<{
2731
- manual: "manual";
2732
3058
  confirm: "confirm";
3059
+ manual: "manual";
2733
3060
  autonomous: "autonomous";
2734
3061
  }>>;
2735
3062
  extensionRequesters: z.ZodDefault<z.ZodEnum<{
2736
3063
  everyone: "everyone";
2737
3064
  admins: "admins";
2738
3065
  }>>;
3066
+ extensionConfigRequesters: z.ZodDefault<z.ZodEnum<{
3067
+ everyone: "everyone";
3068
+ admins: "admins";
3069
+ }>>;
2739
3070
  }, z.core.$strict>;
2740
3071
  imagePolicy: z.ZodObject<{
2741
3072
  history: z.ZodObject<{
@@ -2766,18 +3097,59 @@ export declare const HostSnapshotSchema: z.ZodObject<{
2766
3097
  manual: "manual";
2767
3098
  automatic: "automatic";
2768
3099
  }>;
2769
- imageDiagnostics: z.ZodObject<{
2770
- route: z.ZodObject<{
2771
- mode: z.ZodEnum<{
2772
- direct: "direct";
2773
- unavailable: "unavailable";
2774
- delegated: "delegated";
2775
- }>;
2776
- provider: z.ZodOptional<z.ZodString>;
2777
- model: z.ZodOptional<z.ZodString>;
2778
- }, z.core.$strict>;
2779
- activeSessions: z.ZodNumber;
2780
- residentImages: z.ZodNumber;
3100
+ compaction: z.ZodOptional<z.ZodObject<{
3101
+ inSession: z.ZodDiscriminatedUnion<[z.ZodObject<{
3102
+ mode: z.ZodLiteral<"follow">;
3103
+ }, z.core.$strict>, z.ZodObject<{
3104
+ mode: z.ZodLiteral<"custom">;
3105
+ model: z.ZodObject<{
3106
+ provider: z.ZodString;
3107
+ model: z.ZodString;
3108
+ reasoningEffort: z.ZodOptional<z.ZodString>;
3109
+ }, z.core.$strict>;
3110
+ }, z.core.$strict>], "mode">;
3111
+ newSession: z.ZodDiscriminatedUnion<[z.ZodObject<{
3112
+ mode: z.ZodLiteral<"follow">;
3113
+ }, z.core.$strict>, z.ZodObject<{
3114
+ mode: z.ZodLiteral<"custom">;
3115
+ model: z.ZodObject<{
3116
+ provider: z.ZodString;
3117
+ model: z.ZodString;
3118
+ reasoningEffort: z.ZodOptional<z.ZodString>;
3119
+ }, z.core.$strict>;
3120
+ }, z.core.$strict>], "mode">;
3121
+ }, z.core.$strict>>;
3122
+ subConversationModels: z.ZodOptional<z.ZodObject<{
3123
+ candidates: z.ZodArray<z.ZodObject<{
3124
+ name: z.ZodString;
3125
+ model: z.ZodObject<{
3126
+ provider: z.ZodString;
3127
+ model: z.ZodString;
3128
+ reasoningEffort: z.ZodOptional<z.ZodString>;
3129
+ }, z.core.$strict>;
3130
+ guidance: z.ZodString;
3131
+ }, z.core.$strict>>;
3132
+ default: z.ZodOptional<z.ZodString>;
3133
+ }, z.core.$strict>>;
3134
+ fallbackModels: z.ZodOptional<z.ZodArray<z.ZodObject<{
3135
+ provider: z.ZodString;
3136
+ model: z.ZodString;
3137
+ reasoningEffort: z.ZodOptional<z.ZodString>;
3138
+ }, z.core.$strict>>>;
3139
+ aliases: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string[], string[]>>>;
3140
+ outboundOrder: z.ZodOptional<z.ZodArray<z.core.$ZodBranded<z.ZodString, "ExtensionId", "out">>>;
3141
+ imageDiagnostics: z.ZodObject<{
3142
+ route: z.ZodObject<{
3143
+ mode: z.ZodEnum<{
3144
+ direct: "direct";
3145
+ unavailable: "unavailable";
3146
+ delegated: "delegated";
3147
+ }>;
3148
+ provider: z.ZodOptional<z.ZodString>;
3149
+ model: z.ZodOptional<z.ZodString>;
3150
+ }, z.core.$strict>;
3151
+ activeSessions: z.ZodNumber;
3152
+ residentImages: z.ZodNumber;
2781
3153
  duplicateImagesSkipped: z.ZodNumber;
2782
3154
  lastInspection: z.ZodOptional<z.ZodObject<{
2783
3155
  mode: z.ZodEnum<{
@@ -2813,11 +3185,12 @@ export declare const HostSnapshotSchema: z.ZodObject<{
2813
3185
  idle: "idle";
2814
3186
  }>;
2815
3187
  runtimePhase: z.ZodDefault<z.ZodEnum<{
3188
+ unavailable: "unavailable";
2816
3189
  idle: "idle";
2817
3190
  thinking: "thinking";
2818
3191
  "using-tool": "using-tool";
3192
+ compacting: "compacting";
2819
3193
  "waiting-input": "waiting-input";
2820
- unavailable: "unavailable";
2821
3194
  }>>;
2822
3195
  createdAt: z.ZodNumber;
2823
3196
  channels: z.ZodArray<z.core.$ZodBranded<z.ZodString, "ChannelId", "out">>;
@@ -2840,11 +3213,12 @@ export declare const HostSnapshotSchema: z.ZodObject<{
2840
3213
  platformDisplayName: z.ZodOptional<z.ZodString>;
2841
3214
  boundAgentId: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "AgentId", "out">>;
2842
3215
  runtimePhase: z.ZodDefault<z.ZodEnum<{
3216
+ unavailable: "unavailable";
2843
3217
  idle: "idle";
2844
3218
  thinking: "thinking";
2845
3219
  "using-tool": "using-tool";
3220
+ compacting: "compacting";
2846
3221
  "waiting-input": "waiting-input";
2847
- unavailable: "unavailable";
2848
3222
  }>>;
2849
3223
  activity: z.ZodDefault<z.ZodObject<{
2850
3224
  lastActivityAt: z.ZodOptional<z.ZodNumber>;
@@ -2870,6 +3244,7 @@ export declare const HostSnapshotSchema: z.ZodObject<{
2870
3244
  command: "command";
2871
3245
  always: "always";
2872
3246
  "mentioned-or-replied": "mentioned-or-replied";
3247
+ smart: "smart";
2873
3248
  "observe-only": "observe-only";
2874
3249
  }>;
2875
3250
  paused: z.ZodDefault<z.ZodBoolean>;
@@ -2882,6 +3257,18 @@ export declare const HostSnapshotSchema: z.ZodObject<{
2882
3257
  observe: "observe";
2883
3258
  }>>;
2884
3259
  activityTriggerOverrides: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
3260
+ responseTiming: z.ZodOptional<z.ZodObject<{
3261
+ waitEnabled: z.ZodOptional<z.ZodBoolean>;
3262
+ waitMaxQuietSeconds: z.ZodOptional<z.ZodNumber>;
3263
+ waitMaxTotalSeconds: z.ZodOptional<z.ZodNumber>;
3264
+ debounceSeconds: z.ZodOptional<z.ZodNumber>;
3265
+ debounceMaxSeconds: z.ZodOptional<z.ZodNumber>;
3266
+ debounceMaxMessages: z.ZodOptional<z.ZodNumber>;
3267
+ nameWake: z.ZodOptional<z.ZodBoolean>;
3268
+ attentionWake: z.ZodOptional<z.ZodBoolean>;
3269
+ attentionSeconds: z.ZodOptional<z.ZodNumber>;
3270
+ midWakesPerMinute: z.ZodOptional<z.ZodNumber>;
3271
+ }, z.core.$strict>>;
2885
3272
  boundAt: z.ZodNumber;
2886
3273
  }, z.core.$strict>>;
2887
3274
  }, z.core.$strict>>;
@@ -2890,6 +3277,10 @@ export declare const HostSnapshotSchema: z.ZodObject<{
2890
3277
  channelIdsByAgent: z.ZodRecord<z.core.$ZodBranded<z.ZodString, "AgentId", "out">, z.ZodArray<z.core.$ZodBranded<z.ZodString, "ChannelId", "out">>>;
2891
3278
  unboundChannelIds: z.ZodArray<z.core.$ZodBranded<z.ZodString, "ChannelId", "out">>;
2892
3279
  }, z.core.$strict>>;
3280
+ channelListView: z.ZodDefault<z.ZodObject<{
3281
+ pinnedChannelIds: z.ZodArray<z.core.$ZodBranded<z.ZodString, "ChannelId", "out">>;
3282
+ collapsedGroupIds: z.ZodArray<z.ZodUnion<readonly [z.core.$ZodBranded<z.ZodString, "AgentId", "out">, z.ZodLiteral<"unbound">]>>;
3283
+ }, z.core.$strict>>;
2893
3284
  messages: z.ZodArray<z.ZodObject<{
2894
3285
  id: z.ZodUnion<readonly [z.core.$ZodBranded<z.ZodString, "ChannelEventId", "out">, z.core.$ZodBranded<z.ZodString, "OutboundIntentId", "out">]>;
2895
3286
  channelId: z.core.$ZodBranded<z.ZodString, "ChannelId", "out">;
@@ -3088,11 +3479,24 @@ export declare const HostSnapshotSchema: z.ZodObject<{
3088
3479
  extensions: z.ZodArray<z.ZodString>;
3089
3480
  problems: z.ZodOptional<z.ZodArray<z.ZodString>>;
3090
3481
  }, z.core.$strict>>;
3482
+ outboundProcessing: z.ZodOptional<z.ZodObject<{
3483
+ extensions: z.ZodArray<z.ZodString>;
3484
+ rewritten: z.ZodBoolean;
3485
+ followUp: z.ZodOptional<z.ZodLiteral<true>>;
3486
+ }, z.core.$strict>>;
3091
3487
  scheduledTask: z.ZodOptional<z.ZodObject<{
3092
3488
  label: z.ZodString;
3093
3489
  extensionName: z.ZodOptional<z.ZodString>;
3094
3490
  note: z.ZodOptional<z.ZodString>;
3095
3491
  }, z.core.$strict>>;
3492
+ responseWait: z.ZodOptional<z.ZodObject<{
3493
+ displayName: z.ZodOptional<z.ZodString>;
3494
+ cause: z.ZodEnum<{
3495
+ limit: "limit";
3496
+ quiet: "quiet";
3497
+ }>;
3498
+ waitedSeconds: z.ZodNumber;
3499
+ }, z.core.$strict>>;
3096
3500
  }, z.core.$strict>>;
3097
3501
  connections: z.ZodArray<z.ZodObject<{
3098
3502
  id: z.core.$ZodBranded<z.ZodString, "ConnectionId", "out">;
@@ -3100,6 +3504,7 @@ export declare const HostSnapshotSchema: z.ZodObject<{
3100
3504
  alias: z.ZodOptional<z.ZodString>;
3101
3505
  activityTriggerDefaults: z.ZodDefault<z.ZodArray<z.ZodString>>;
3102
3506
  configuredSecrets: z.ZodOptional<z.ZodArray<z.ZodString>>;
3507
+ boundCredentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.core.$ZodBranded<z.ZodString, "CredentialId", "out">>>;
3103
3508
  status: z.ZodDefault<z.ZodObject<{
3104
3509
  state: z.ZodEnum<{
3105
3510
  failed: "failed";
@@ -3539,6 +3944,16 @@ export declare const HostSnapshotSchema: z.ZodObject<{
3539
3944
  mayForceTrigger: z.ZodBoolean;
3540
3945
  timeoutMs: z.ZodNumber;
3541
3946
  }, z.core.$strict>>;
3947
+ outbound: z.ZodOptional<z.ZodObject<{
3948
+ read: z.ZodOptional<z.ZodLiteral<true>>;
3949
+ transform: z.ZodOptional<z.ZodLiteral<true>>;
3950
+ cancel: z.ZodOptional<z.ZodLiteral<true>>;
3951
+ timeoutMs: z.ZodNumber;
3952
+ onTimeout: z.ZodOptional<z.ZodEnum<{
3953
+ cancel: "cancel";
3954
+ send: "send";
3955
+ }>>;
3956
+ }, z.core.$strict>>;
3542
3957
  jobs: z.ZodOptional<z.ZodObject<{
3543
3958
  declared: z.ZodOptional<z.ZodArray<z.ZodObject<{
3544
3959
  id: z.ZodString;
@@ -3568,6 +3983,8 @@ export declare const HostSnapshotSchema: z.ZodObject<{
3568
3983
  url: z.ZodString;
3569
3984
  headers: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
3570
3985
  secret: z.ZodString;
3986
+ }, z.core.$strict>, z.ZodObject<{
3987
+ credential: z.ZodString;
3571
3988
  }, z.core.$strict>]>>>;
3572
3989
  }, z.core.$strict>, z.ZodObject<{
3573
3990
  transport: z.ZodLiteral<"stdio">;
@@ -3576,6 +3993,8 @@ export declare const HostSnapshotSchema: z.ZodObject<{
3576
3993
  args: z.ZodDefault<z.ZodArray<z.ZodString>>;
3577
3994
  env: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
3578
3995
  secret: z.ZodString;
3996
+ }, z.core.$strict>, z.ZodObject<{
3997
+ credential: z.ZodString;
3579
3998
  }, z.core.$strict>]>>>;
3580
3999
  }, z.core.$strict>], "transport">>;
3581
4000
  }, z.core.$strict>>;
@@ -3661,6 +4080,16 @@ export declare const HostSnapshotSchema: z.ZodObject<{
3661
4080
  mayForceTrigger: z.ZodBoolean;
3662
4081
  timeoutMs: z.ZodNumber;
3663
4082
  }, z.core.$strict>>;
4083
+ outbound: z.ZodOptional<z.ZodObject<{
4084
+ read: z.ZodOptional<z.ZodLiteral<true>>;
4085
+ transform: z.ZodOptional<z.ZodLiteral<true>>;
4086
+ cancel: z.ZodOptional<z.ZodLiteral<true>>;
4087
+ timeoutMs: z.ZodNumber;
4088
+ onTimeout: z.ZodOptional<z.ZodEnum<{
4089
+ cancel: "cancel";
4090
+ send: "send";
4091
+ }>>;
4092
+ }, z.core.$strict>>;
3664
4093
  jobs: z.ZodOptional<z.ZodObject<{
3665
4094
  declared: z.ZodOptional<z.ZodArray<z.ZodObject<{
3666
4095
  id: z.ZodString;
@@ -3690,6 +4119,8 @@ export declare const HostSnapshotSchema: z.ZodObject<{
3690
4119
  url: z.ZodString;
3691
4120
  headers: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
3692
4121
  secret: z.ZodString;
4122
+ }, z.core.$strict>, z.ZodObject<{
4123
+ credential: z.ZodString;
3693
4124
  }, z.core.$strict>]>>>;
3694
4125
  }, z.core.$strict>, z.ZodObject<{
3695
4126
  transport: z.ZodLiteral<"stdio">;
@@ -3698,6 +4129,8 @@ export declare const HostSnapshotSchema: z.ZodObject<{
3698
4129
  args: z.ZodDefault<z.ZodArray<z.ZodString>>;
3699
4130
  env: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
3700
4131
  secret: z.ZodString;
4132
+ }, z.core.$strict>, z.ZodObject<{
4133
+ credential: z.ZodString;
3701
4134
  }, z.core.$strict>]>>>;
3702
4135
  }, z.core.$strict>], "transport">>;
3703
4136
  }, z.core.$strict>>;
@@ -3786,6 +4219,16 @@ export declare const HostSnapshotSchema: z.ZodObject<{
3786
4219
  mayForceTrigger: z.ZodBoolean;
3787
4220
  timeoutMs: z.ZodNumber;
3788
4221
  }, z.core.$strict>>;
4222
+ outbound: z.ZodOptional<z.ZodObject<{
4223
+ read: z.ZodOptional<z.ZodLiteral<true>>;
4224
+ transform: z.ZodOptional<z.ZodLiteral<true>>;
4225
+ cancel: z.ZodOptional<z.ZodLiteral<true>>;
4226
+ timeoutMs: z.ZodNumber;
4227
+ onTimeout: z.ZodOptional<z.ZodEnum<{
4228
+ cancel: "cancel";
4229
+ send: "send";
4230
+ }>>;
4231
+ }, z.core.$strict>>;
3789
4232
  jobs: z.ZodOptional<z.ZodObject<{
3790
4233
  declared: z.ZodOptional<z.ZodArray<z.ZodObject<{
3791
4234
  id: z.ZodString;
@@ -3815,6 +4258,8 @@ export declare const HostSnapshotSchema: z.ZodObject<{
3815
4258
  url: z.ZodString;
3816
4259
  headers: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
3817
4260
  secret: z.ZodString;
4261
+ }, z.core.$strict>, z.ZodObject<{
4262
+ credential: z.ZodString;
3818
4263
  }, z.core.$strict>]>>>;
3819
4264
  }, z.core.$strict>, z.ZodObject<{
3820
4265
  transport: z.ZodLiteral<"stdio">;
@@ -3823,6 +4268,8 @@ export declare const HostSnapshotSchema: z.ZodObject<{
3823
4268
  args: z.ZodDefault<z.ZodArray<z.ZodString>>;
3824
4269
  env: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
3825
4270
  secret: z.ZodString;
4271
+ }, z.core.$strict>, z.ZodObject<{
4272
+ credential: z.ZodString;
3826
4273
  }, z.core.$strict>]>>>;
3827
4274
  }, z.core.$strict>], "transport">>;
3828
4275
  }, z.core.$strict>>;
@@ -3860,6 +4307,7 @@ export declare const HostSnapshotSchema: z.ZodObject<{
3860
4307
  extensionRevisionId: z.core.$ZodBranded<z.ZodString, "ExtensionRevisionId", "out">;
3861
4308
  config: z.ZodJSONSchema;
3862
4309
  configuredSecrets: z.ZodOptional<z.ZodArray<z.ZodString>>;
4310
+ boundCredentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.core.$ZodBranded<z.ZodString, "CredentialId", "out">>>;
3863
4311
  activatedAt: z.ZodNumber;
3864
4312
  runtime: z.ZodOptional<z.ZodObject<{
3865
4313
  status: z.ZodEnum<{
@@ -3903,6 +4351,7 @@ export declare const HostSnapshotSchema: z.ZodObject<{
3903
4351
  installedAt: z.ZodNumber;
3904
4352
  config: z.ZodDefault<z.ZodJSONSchema>;
3905
4353
  configuredSecrets: z.ZodOptional<z.ZodArray<z.ZodString>>;
4354
+ boundCredentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.core.$ZodBranded<z.ZodString, "CredentialId", "out">>>;
3906
4355
  runtime: z.ZodOptional<z.ZodObject<{
3907
4356
  status: z.ZodEnum<{
3908
4357
  active: "active";
@@ -3985,6 +4434,16 @@ export declare const HostSnapshotSchema: z.ZodObject<{
3985
4434
  mayForceTrigger: z.ZodBoolean;
3986
4435
  timeoutMs: z.ZodNumber;
3987
4436
  }, z.core.$strict>>;
4437
+ outbound: z.ZodOptional<z.ZodObject<{
4438
+ read: z.ZodOptional<z.ZodLiteral<true>>;
4439
+ transform: z.ZodOptional<z.ZodLiteral<true>>;
4440
+ cancel: z.ZodOptional<z.ZodLiteral<true>>;
4441
+ timeoutMs: z.ZodNumber;
4442
+ onTimeout: z.ZodOptional<z.ZodEnum<{
4443
+ cancel: "cancel";
4444
+ send: "send";
4445
+ }>>;
4446
+ }, z.core.$strict>>;
3988
4447
  jobs: z.ZodOptional<z.ZodObject<{
3989
4448
  declared: z.ZodOptional<z.ZodArray<z.ZodObject<{
3990
4449
  id: z.ZodString;
@@ -4014,6 +4473,8 @@ export declare const HostSnapshotSchema: z.ZodObject<{
4014
4473
  url: z.ZodString;
4015
4474
  headers: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
4016
4475
  secret: z.ZodString;
4476
+ }, z.core.$strict>, z.ZodObject<{
4477
+ credential: z.ZodString;
4017
4478
  }, z.core.$strict>]>>>;
4018
4479
  }, z.core.$strict>, z.ZodObject<{
4019
4480
  transport: z.ZodLiteral<"stdio">;
@@ -4022,6 +4483,8 @@ export declare const HostSnapshotSchema: z.ZodObject<{
4022
4483
  args: z.ZodDefault<z.ZodArray<z.ZodString>>;
4023
4484
  env: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
4024
4485
  secret: z.ZodString;
4486
+ }, z.core.$strict>, z.ZodObject<{
4487
+ credential: z.ZodString;
4025
4488
  }, z.core.$strict>]>>>;
4026
4489
  }, z.core.$strict>], "transport">>;
4027
4490
  }, z.core.$strict>>;
@@ -4465,8 +4928,8 @@ export declare const HostSnapshotSchema: z.ZodObject<{
4465
4928
  script: "script";
4466
4929
  }>;
4467
4930
  status: z.ZodEnum<{
4468
- closed: "closed";
4469
4931
  open: "open";
4932
+ closed: "closed";
4470
4933
  }>;
4471
4934
  closeReason: z.ZodOptional<z.ZodEnum<{
4472
4935
  failed: "failed";
@@ -4477,6 +4940,11 @@ export declare const HostSnapshotSchema: z.ZodObject<{
4477
4940
  }>>;
4478
4941
  summary: z.ZodOptional<z.ZodString>;
4479
4942
  authoringTaskId: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "AuthoringTaskId", "out">>;
4943
+ model: z.ZodOptional<z.ZodObject<{
4944
+ provider: z.ZodString;
4945
+ model: z.ZodString;
4946
+ reasoningEffort: z.ZodOptional<z.ZodString>;
4947
+ }, z.core.$strict>>;
4480
4948
  createdAt: z.ZodNumber;
4481
4949
  closedAt: z.ZodOptional<z.ZodNumber>;
4482
4950
  }, z.core.$strict>>>;
@@ -4556,6 +5024,7 @@ export declare const DshPluginCatalogEntrySchema: z.ZodObject<{
4556
5024
  tarball: "tarball";
4557
5025
  imported: "imported";
4558
5026
  }>>;
5027
+ official: z.ZodOptional<z.ZodBoolean>;
4559
5028
  installedAt: z.ZodOptional<z.ZodNumber>;
4560
5029
  clientUiDetected: z.ZodOptional<z.ZodBoolean>;
4561
5030
  hostUi: z.ZodOptional<z.ZodObject<{
@@ -4670,6 +5139,16 @@ export declare const DshPluginCatalogEntrySchema: z.ZodObject<{
4670
5139
  mayForceTrigger: z.ZodBoolean;
4671
5140
  timeoutMs: z.ZodNumber;
4672
5141
  }, z.core.$strict>>;
5142
+ outbound: z.ZodOptional<z.ZodObject<{
5143
+ read: z.ZodOptional<z.ZodLiteral<true>>;
5144
+ transform: z.ZodOptional<z.ZodLiteral<true>>;
5145
+ cancel: z.ZodOptional<z.ZodLiteral<true>>;
5146
+ timeoutMs: z.ZodNumber;
5147
+ onTimeout: z.ZodOptional<z.ZodEnum<{
5148
+ cancel: "cancel";
5149
+ send: "send";
5150
+ }>>;
5151
+ }, z.core.$strict>>;
4673
5152
  jobs: z.ZodOptional<z.ZodObject<{
4674
5153
  declared: z.ZodOptional<z.ZodArray<z.ZodObject<{
4675
5154
  id: z.ZodString;
@@ -4699,6 +5178,8 @@ export declare const DshPluginCatalogEntrySchema: z.ZodObject<{
4699
5178
  url: z.ZodString;
4700
5179
  headers: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
4701
5180
  secret: z.ZodString;
5181
+ }, z.core.$strict>, z.ZodObject<{
5182
+ credential: z.ZodString;
4702
5183
  }, z.core.$strict>]>>>;
4703
5184
  }, z.core.$strict>, z.ZodObject<{
4704
5185
  transport: z.ZodLiteral<"stdio">;
@@ -4707,6 +5188,8 @@ export declare const DshPluginCatalogEntrySchema: z.ZodObject<{
4707
5188
  args: z.ZodDefault<z.ZodArray<z.ZodString>>;
4708
5189
  env: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
4709
5190
  secret: z.ZodString;
5191
+ }, z.core.$strict>, z.ZodObject<{
5192
+ credential: z.ZodString;
4710
5193
  }, z.core.$strict>]>>>;
4711
5194
  }, z.core.$strict>], "transport">>;
4712
5195
  }, z.core.$strict>>;
@@ -4735,6 +5218,7 @@ export declare const DshPluginCatalogEntrySchema: z.ZodObject<{
4735
5218
  agent: "agent";
4736
5219
  }>>;
4737
5220
  config: z.ZodJSONSchema;
5221
+ grantedServices: z.ZodOptional<z.ZodArray<z.ZodString>>;
4738
5222
  activations: z.ZodArray<z.ZodObject<{
4739
5223
  targetKey: z.ZodString;
4740
5224
  target: z.ZodEnum<{
@@ -4746,18 +5230,22 @@ export declare const DshPluginCatalogEntrySchema: z.ZodObject<{
4746
5230
  diagnostic: z.ZodOptional<z.ZodObject<{
4747
5231
  status: z.ZodEnum<{
4748
5232
  active: "active";
5233
+ pending: "pending";
4749
5234
  "load-failed": "load-failed";
4750
5235
  "restore-failed": "restore-failed";
4751
5236
  "dispose-failed": "dispose-failed";
4752
5237
  }>;
4753
5238
  phase: z.ZodEnum<{
4754
5239
  import: "import";
5240
+ dependency: "dependency";
4755
5241
  apply: "apply";
4756
5242
  update: "update";
4757
5243
  dispose: "dispose";
4758
5244
  restore: "restore";
4759
5245
  }>;
4760
5246
  message: z.ZodOptional<z.ZodString>;
5247
+ waitingFor: z.ZodOptional<z.ZodArray<z.ZodString>>;
5248
+ restrictedServices: z.ZodOptional<z.ZodArray<z.ZodString>>;
4761
5249
  observedAt: z.ZodNumber;
4762
5250
  }, z.core.$strip>>;
4763
5251
  }, z.core.$strict>>;
@@ -4861,8 +5349,8 @@ export declare const HostSseEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
4861
5349
  revision: z.ZodNumber;
4862
5350
  items: z.ZodArray<z.ZodObject<{
4863
5351
  kind: z.ZodEnum<{
4864
- inbound: "inbound";
4865
5352
  outbound: "outbound";
5353
+ inbound: "inbound";
4866
5354
  }>;
4867
5355
  sourceId: z.ZodUnion<readonly [z.core.$ZodBranded<z.ZodString, "ChannelEventId", "out">, z.core.$ZodBranded<z.ZodString, "OutboundIntentId", "out">]>;
4868
5356
  message: z.ZodObject<{
@@ -5063,11 +5551,24 @@ export declare const HostSseEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
5063
5551
  extensions: z.ZodArray<z.ZodString>;
5064
5552
  problems: z.ZodOptional<z.ZodArray<z.ZodString>>;
5065
5553
  }, z.core.$strict>>;
5554
+ outboundProcessing: z.ZodOptional<z.ZodObject<{
5555
+ extensions: z.ZodArray<z.ZodString>;
5556
+ rewritten: z.ZodBoolean;
5557
+ followUp: z.ZodOptional<z.ZodLiteral<true>>;
5558
+ }, z.core.$strict>>;
5066
5559
  scheduledTask: z.ZodOptional<z.ZodObject<{
5067
5560
  label: z.ZodString;
5068
5561
  extensionName: z.ZodOptional<z.ZodString>;
5069
5562
  note: z.ZodOptional<z.ZodString>;
5070
5563
  }, z.core.$strict>>;
5564
+ responseWait: z.ZodOptional<z.ZodObject<{
5565
+ displayName: z.ZodOptional<z.ZodString>;
5566
+ cause: z.ZodEnum<{
5567
+ limit: "limit";
5568
+ quiet: "quiet";
5569
+ }>;
5570
+ waitedSeconds: z.ZodNumber;
5571
+ }, z.core.$strict>>;
5071
5572
  }, z.core.$strict>;
5072
5573
  }, z.core.$strict>>;
5073
5574
  }, z.core.$strict>;
@@ -5095,13 +5596,35 @@ export declare const HostSseEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
5095
5596
  agentId: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "AgentId", "out">>;
5096
5597
  episodeId: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "EpisodeId", "out">>;
5097
5598
  phase: z.ZodEnum<{
5599
+ unavailable: "unavailable";
5098
5600
  idle: "idle";
5099
5601
  thinking: "thinking";
5100
5602
  "using-tool": "using-tool";
5603
+ compacting: "compacting";
5101
5604
  "waiting-input": "waiting-input";
5102
- unavailable: "unavailable";
5103
5605
  }>;
5104
5606
  summary: z.ZodString;
5607
+ compaction: z.ZodOptional<z.ZodObject<{
5608
+ kind: z.ZodEnum<{
5609
+ "in-session": "in-session";
5610
+ "new-session": "new-session";
5611
+ }>;
5612
+ startedAt: z.ZodNumber;
5613
+ }, z.core.$strict>>;
5614
+ modelFallback: z.ZodOptional<z.ZodObject<{
5615
+ model: z.ZodObject<{
5616
+ provider: z.ZodString;
5617
+ model: z.ZodString;
5618
+ reasoningEffort: z.ZodOptional<z.ZodString>;
5619
+ }, z.core.$strict>;
5620
+ reason: z.ZodEnum<{
5621
+ quota: "quota";
5622
+ "rate-limit": "rate-limit";
5623
+ unavailable: "unavailable";
5624
+ }>;
5625
+ since: z.ZodNumber;
5626
+ retryMainAt: z.ZodNumber;
5627
+ }, z.core.$strict>>;
5105
5628
  pendingInjectCount: z.ZodNumber;
5106
5629
  occupancy: z.ZodOptional<z.ZodObject<{
5107
5630
  projectedTokens: z.ZodNumber;
@@ -5236,6 +5759,7 @@ export declare const HostSseEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
5236
5759
  "partially-sent": "partially-sent";
5237
5760
  failed: "failed";
5238
5761
  unknown: "unknown";
5762
+ cancelled: "cancelled";
5239
5763
  }>>;
5240
5764
  durationMs: z.ZodOptional<z.ZodNumber>;
5241
5765
  }, z.core.$strict>>>;
@@ -5255,6 +5779,7 @@ export declare const HostSseEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
5255
5779
  "partially-sent": "partially-sent";
5256
5780
  failed: "failed";
5257
5781
  unknown: "unknown";
5782
+ cancelled: "cancelled";
5258
5783
  }>>;
5259
5784
  durationMs: z.ZodOptional<z.ZodNumber>;
5260
5785
  }, z.core.$strict>>;
@@ -5379,6 +5904,8 @@ export declare const LlmModelInputModalitiesSchema: z.ZodArray<z.ZodEnum<{
5379
5904
  text: "text";
5380
5905
  image: "image";
5381
5906
  }>>;
5907
+ /** Thinking levels a model offers, least to most; the ids are the adapter's own. */
5908
+ export declare const LlmModelReasoningEffortsSchema: z.ZodArray<z.ZodString>;
5382
5909
  export declare const LlmProviderModelSchema: z.ZodObject<{
5383
5910
  id: z.ZodString;
5384
5911
  name: z.ZodString;
@@ -5388,6 +5915,7 @@ export declare const LlmProviderModelSchema: z.ZodObject<{
5388
5915
  text: "text";
5389
5916
  image: "image";
5390
5917
  }>>>;
5918
+ reasoningEfforts: z.ZodOptional<z.ZodArray<z.ZodString>>;
5391
5919
  }, z.core.$strict>;
5392
5920
  export declare const LlmDiscoveredModelSchema: z.ZodObject<{
5393
5921
  id: z.ZodString;
@@ -5398,6 +5926,7 @@ export declare const LlmDiscoveredModelSchema: z.ZodObject<{
5398
5926
  text: "text";
5399
5927
  image: "image";
5400
5928
  }>>>;
5929
+ reasoningEfforts: z.ZodOptional<z.ZodArray<z.ZodString>>;
5401
5930
  }, z.core.$strict>;
5402
5931
  export declare const LlmProviderCredentialSchema: z.ZodObject<{
5403
5932
  configured: z.ZodBoolean;
@@ -5439,6 +5968,7 @@ export declare const LlmProviderViewSchema: z.ZodObject<{
5439
5968
  text: "text";
5440
5969
  image: "image";
5441
5970
  }>>>;
5971
+ reasoningEfforts: z.ZodOptional<z.ZodArray<z.ZodString>>;
5442
5972
  }, z.core.$strict>>;
5443
5973
  modelsCustomized: z.ZodBoolean;
5444
5974
  discoverable: z.ZodBoolean;
@@ -5448,6 +5978,59 @@ export declare const LlmProviderViewSchema: z.ZodObject<{
5448
5978
  message: z.ZodOptional<z.ZodString>;
5449
5979
  model: z.ZodOptional<z.ZodString>;
5450
5980
  }, z.core.$strict>>>;
5981
+ subscription: z.ZodOptional<z.ZodObject<{
5982
+ label: z.ZodString;
5983
+ active: z.ZodBoolean;
5984
+ accountLabel: z.ZodNullable<z.ZodString>;
5985
+ }, z.core.$strict>>;
5986
+ }, z.core.$strict>;
5987
+ export declare const SubscriptionStatusSchema: z.ZodObject<{
5988
+ provider: z.ZodString;
5989
+ label: z.ZodString;
5990
+ usageUrl: z.ZodURL;
5991
+ available: z.ZodBoolean;
5992
+ mode: z.ZodEnum<{
5993
+ subscription: "subscription";
5994
+ unconfigured: "unconfigured";
5995
+ "api-key": "api-key";
5996
+ }>;
5997
+ activeAccountId: z.ZodNullable<z.ZodString>;
5998
+ accounts: z.ZodArray<z.ZodObject<{
5999
+ id: z.ZodString;
6000
+ label: z.ZodString;
6001
+ email: z.ZodNullable<z.ZodString>;
6002
+ createdAt: z.ZodNumber;
6003
+ }, z.core.$strict>>;
6004
+ login: z.ZodNullable<z.ZodObject<{
6005
+ id: z.ZodString;
6006
+ status: z.ZodEnum<{
6007
+ failed: "failed";
6008
+ running: "running";
6009
+ cancelled: "cancelled";
6010
+ authorized: "authorized";
6011
+ }>;
6012
+ notices: z.ZodArray<z.ZodObject<{
6013
+ message: z.ZodString;
6014
+ url: z.ZodOptional<z.ZodString>;
6015
+ code: z.ZodOptional<z.ZodString>;
6016
+ }, z.core.$strict>>;
6017
+ prompt: z.ZodNullable<z.ZodObject<{
6018
+ id: z.ZodString;
6019
+ kind: z.ZodEnum<{
6020
+ text: "text";
6021
+ secret: "secret";
6022
+ select: "select";
6023
+ }>;
6024
+ message: z.ZodString;
6025
+ placeholder: z.ZodOptional<z.ZodString>;
6026
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
6027
+ id: z.ZodString;
6028
+ label: z.ZodString;
6029
+ description: z.ZodOptional<z.ZodString>;
6030
+ }, z.core.$strict>>>;
6031
+ }, z.core.$strict>>;
6032
+ error: z.ZodNullable<z.ZodString>;
6033
+ }, z.core.$strict>>;
5451
6034
  }, z.core.$strict>;
5452
6035
  export declare const LlmProviderSettingsSchema: z.ZodObject<{
5453
6036
  writable: z.ZodBoolean;
@@ -5477,6 +6060,7 @@ export declare const LlmProviderSettingsSchema: z.ZodObject<{
5477
6060
  text: "text";
5478
6061
  image: "image";
5479
6062
  }>>>;
6063
+ reasoningEfforts: z.ZodOptional<z.ZodArray<z.ZodString>>;
5480
6064
  }, z.core.$strict>>;
5481
6065
  modelsCustomized: z.ZodBoolean;
5482
6066
  discoverable: z.ZodBoolean;
@@ -5486,6 +6070,11 @@ export declare const LlmProviderSettingsSchema: z.ZodObject<{
5486
6070
  message: z.ZodOptional<z.ZodString>;
5487
6071
  model: z.ZodOptional<z.ZodString>;
5488
6072
  }, z.core.$strict>>>;
6073
+ subscription: z.ZodOptional<z.ZodObject<{
6074
+ label: z.ZodString;
6075
+ active: z.ZodBoolean;
6076
+ accountLabel: z.ZodNullable<z.ZodString>;
6077
+ }, z.core.$strict>>;
5489
6078
  }, z.core.$strict>>;
5490
6079
  }, z.core.$strict>;
5491
6080
  export declare const ConnectionTestResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -5549,11 +6138,15 @@ export declare const ExtensionImportInspectionSchema: z.ZodObject<{
5549
6138
  }, z.core.$strict>;
5550
6139
  export declare const AgentRevisionChangedFieldSchema: z.ZodEnum<{
5551
6140
  name: "name";
6141
+ aliases: "aliases";
5552
6142
  model: "model";
5553
6143
  persona: "persona";
5554
6144
  capabilities: "capabilities";
5555
6145
  approvalPolicy: "approvalPolicy";
5556
6146
  imagePolicy: "imagePolicy";
6147
+ compaction: "compaction";
6148
+ subConversationModels: "subConversationModels";
6149
+ fallbackModels: "fallbackModels";
5557
6150
  }>;
5558
6151
  export declare const AgentRevisionHistorySchema: z.ZodObject<{
5559
6152
  agentId: z.core.$ZodBranded<z.ZodString, "AgentId", "out">;
@@ -5569,11 +6162,15 @@ export declare const AgentRevisionHistorySchema: z.ZodObject<{
5569
6162
  }, z.core.$strict>;
5570
6163
  changedFields: z.ZodArray<z.ZodEnum<{
5571
6164
  name: "name";
6165
+ aliases: "aliases";
5572
6166
  model: "model";
5573
6167
  persona: "persona";
5574
6168
  capabilities: "capabilities";
5575
6169
  approvalPolicy: "approvalPolicy";
5576
6170
  imagePolicy: "imagePolicy";
6171
+ compaction: "compaction";
6172
+ subConversationModels: "subConversationModels";
6173
+ fallbackModels: "fallbackModels";
5577
6174
  }>>;
5578
6175
  current: z.ZodBoolean;
5579
6176
  }, z.core.$strict>>;
@@ -5731,6 +6328,44 @@ export declare const AdministratorSchema: z.ZodObject<{
5731
6328
  }>;
5732
6329
  addedAt: z.ZodNumber;
5733
6330
  }, z.core.$strict>;
6331
+ export declare const ExtensionConfigVersionSourceSchema: z.ZodEnum<{
6332
+ agent: "agent";
6333
+ console: "console";
6334
+ "chat-admin": "chat-admin";
6335
+ revert: "revert";
6336
+ "auto-revert": "auto-revert";
6337
+ }>;
6338
+ export type ExtensionConfigVersionSource = z.output<typeof ExtensionConfigVersionSourceSchema>;
6339
+ /**
6340
+ * One saved state of an extension's host configuration or of one agent's configuration. Versions are numbered per
6341
+ * extension, layer and agent; reverting writes an old one again as a new version. Secret fields only show whether
6342
+ * they were set and which named credential they were bound to.
6343
+ */
6344
+ export declare const ExtensionConfigVersionSchema: z.ZodObject<{
6345
+ id: z.ZodNumber;
6346
+ extensionId: z.core.$ZodBranded<z.ZodString, "ExtensionId", "out">;
6347
+ layer: z.ZodEnum<{
6348
+ host: "host";
6349
+ agent: "agent";
6350
+ }>;
6351
+ agentId: z.ZodNullable<z.core.$ZodBranded<z.ZodString, "AgentId", "out">>;
6352
+ version: z.ZodNumber;
6353
+ config: z.ZodJSONSchema;
6354
+ configuredSecrets: z.ZodOptional<z.ZodArray<z.ZodString>>;
6355
+ boundCredentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.core.$ZodBranded<z.ZodString, "CredentialId", "out">>>;
6356
+ source: z.ZodEnum<{
6357
+ agent: "agent";
6358
+ console: "console";
6359
+ "chat-admin": "chat-admin";
6360
+ revert: "revert";
6361
+ "auto-revert": "auto-revert";
6362
+ }>;
6363
+ actorAgentId: z.ZodNullable<z.core.$ZodBranded<z.ZodString, "AgentId", "out">>;
6364
+ requesterMemberId: z.ZodNullable<z.ZodString>;
6365
+ reason: z.ZodNullable<z.ZodString>;
6366
+ createdAt: z.ZodNumber;
6367
+ }, z.core.$strict>;
6368
+ export type ExtensionConfigVersion = z.output<typeof ExtensionConfigVersionSchema>;
5734
6369
  export declare const HostApiContracts: {
5735
6370
  readonly listCommands: HostApiContract<"GET", z.ZodObject<{
5736
6371
  channelId: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "ChannelId", "out">>;
@@ -6390,10 +7025,10 @@ export declare const HostApiContracts: {
6390
7025
  isolated: "isolated";
6391
7026
  }>;
6392
7027
  phase: z.ZodEnum<{
7028
+ dependency: "dependency";
6393
7029
  dispose: "dispose";
6394
7030
  restore: "restore";
6395
7031
  configuration: "configuration";
6396
- dependency: "dependency";
6397
7032
  build: "build";
6398
7033
  load: "load";
6399
7034
  render: "render";
@@ -6439,10 +7074,10 @@ export declare const HostApiContracts: {
6439
7074
  isolated: "isolated";
6440
7075
  }>;
6441
7076
  phase: z.ZodEnum<{
7077
+ dependency: "dependency";
6442
7078
  dispose: "dispose";
6443
7079
  restore: "restore";
6444
7080
  configuration: "configuration";
6445
- dependency: "dependency";
6446
7081
  build: "build";
6447
7082
  load: "load";
6448
7083
  render: "render";
@@ -6473,6 +7108,13 @@ export declare const HostApiContracts: {
6473
7108
  name: z.ZodString;
6474
7109
  description: z.ZodOptional<z.ZodString>;
6475
7110
  inputModalities: z.ZodOptional<z.ZodArray<z.ZodString>>;
7111
+ reasoning: z.ZodOptional<z.ZodObject<{
7112
+ efforts: z.ZodArray<z.ZodObject<{
7113
+ id: z.ZodString;
7114
+ name: z.ZodString;
7115
+ }, z.core.$strict>>;
7116
+ defaultEffort: z.ZodOptional<z.ZodString>;
7117
+ }, z.core.$strict>>;
6476
7118
  }, z.core.$strict>>;
6477
7119
  capabilityAvailability: z.ZodObject<{
6478
7120
  subagents: z.ZodObject<{
@@ -6669,22 +7311,10 @@ export declare const HostApiContracts: {
6669
7311
  events: z.ZodObject<{
6670
7312
  'dynamic-client-approval-requested': z.ZodBoolean;
6671
7313
  'community-feedback-update': z.ZodDefault<z.ZodBoolean>;
7314
+ 'credential-requested': z.ZodDefault<z.ZodBoolean>;
7315
+ 'extension-notification': z.ZodDefault<z.ZodBoolean>;
6672
7316
  }, z.core.$strict>;
6673
7317
  }, z.core.$strict>;
6674
- commandAccounts: z.ZodOptional<z.ZodArray<z.ZodObject<{
6675
- id: z.ZodString;
6676
- service: z.ZodEnum<{
6677
- github: "github";
6678
- }>;
6679
- login: z.ZodString;
6680
- source: z.ZodEnum<{
6681
- token: "token";
6682
- "gh-login": "gh-login";
6683
- }>;
6684
- scopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
6685
- createdAt: z.ZodNumber;
6686
- usedBy: z.ZodArray<z.core.$ZodBranded<z.ZodString, "AgentId", "out">>;
6687
- }, z.core.$strict>>>;
6688
7318
  agents: z.ZodArray<z.ZodObject<{
6689
7319
  id: z.core.$ZodBranded<z.ZodString, "AgentId", "out">;
6690
7320
  displayName: z.ZodString;
@@ -6740,14 +7370,18 @@ export declare const HostApiContracts: {
6740
7370
  }>>>;
6741
7371
  }, z.core.$strict>>>;
6742
7372
  extensionAutonomy: z.ZodDefault<z.ZodEnum<{
6743
- manual: "manual";
6744
7373
  confirm: "confirm";
7374
+ manual: "manual";
6745
7375
  autonomous: "autonomous";
6746
7376
  }>>;
6747
7377
  extensionRequesters: z.ZodDefault<z.ZodEnum<{
6748
7378
  everyone: "everyone";
6749
7379
  admins: "admins";
6750
7380
  }>>;
7381
+ extensionConfigRequesters: z.ZodDefault<z.ZodEnum<{
7382
+ everyone: "everyone";
7383
+ admins: "admins";
7384
+ }>>;
6751
7385
  }, z.core.$strict>;
6752
7386
  imagePolicy: z.ZodObject<{
6753
7387
  history: z.ZodObject<{
@@ -6778,6 +7412,47 @@ export declare const HostApiContracts: {
6778
7412
  manual: "manual";
6779
7413
  automatic: "automatic";
6780
7414
  }>;
7415
+ compaction: z.ZodOptional<z.ZodObject<{
7416
+ inSession: z.ZodDiscriminatedUnion<[z.ZodObject<{
7417
+ mode: z.ZodLiteral<"follow">;
7418
+ }, z.core.$strict>, z.ZodObject<{
7419
+ mode: z.ZodLiteral<"custom">;
7420
+ model: z.ZodObject<{
7421
+ provider: z.ZodString;
7422
+ model: z.ZodString;
7423
+ reasoningEffort: z.ZodOptional<z.ZodString>;
7424
+ }, z.core.$strict>;
7425
+ }, z.core.$strict>], "mode">;
7426
+ newSession: z.ZodDiscriminatedUnion<[z.ZodObject<{
7427
+ mode: z.ZodLiteral<"follow">;
7428
+ }, z.core.$strict>, z.ZodObject<{
7429
+ mode: z.ZodLiteral<"custom">;
7430
+ model: z.ZodObject<{
7431
+ provider: z.ZodString;
7432
+ model: z.ZodString;
7433
+ reasoningEffort: z.ZodOptional<z.ZodString>;
7434
+ }, z.core.$strict>;
7435
+ }, z.core.$strict>], "mode">;
7436
+ }, z.core.$strict>>;
7437
+ subConversationModels: z.ZodOptional<z.ZodObject<{
7438
+ candidates: z.ZodArray<z.ZodObject<{
7439
+ name: z.ZodString;
7440
+ model: z.ZodObject<{
7441
+ provider: z.ZodString;
7442
+ model: z.ZodString;
7443
+ reasoningEffort: z.ZodOptional<z.ZodString>;
7444
+ }, z.core.$strict>;
7445
+ guidance: z.ZodString;
7446
+ }, z.core.$strict>>;
7447
+ default: z.ZodOptional<z.ZodString>;
7448
+ }, z.core.$strict>>;
7449
+ fallbackModels: z.ZodOptional<z.ZodArray<z.ZodObject<{
7450
+ provider: z.ZodString;
7451
+ model: z.ZodString;
7452
+ reasoningEffort: z.ZodOptional<z.ZodString>;
7453
+ }, z.core.$strict>>>;
7454
+ aliases: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string[], string[]>>>;
7455
+ outboundOrder: z.ZodOptional<z.ZodArray<z.core.$ZodBranded<z.ZodString, "ExtensionId", "out">>>;
6781
7456
  imageDiagnostics: z.ZodObject<{
6782
7457
  route: z.ZodObject<{
6783
7458
  mode: z.ZodEnum<{
@@ -6825,11 +7500,12 @@ export declare const HostApiContracts: {
6825
7500
  idle: "idle";
6826
7501
  }>;
6827
7502
  runtimePhase: z.ZodDefault<z.ZodEnum<{
7503
+ unavailable: "unavailable";
6828
7504
  idle: "idle";
6829
7505
  thinking: "thinking";
6830
7506
  "using-tool": "using-tool";
7507
+ compacting: "compacting";
6831
7508
  "waiting-input": "waiting-input";
6832
- unavailable: "unavailable";
6833
7509
  }>>;
6834
7510
  createdAt: z.ZodNumber;
6835
7511
  channels: z.ZodArray<z.core.$ZodBranded<z.ZodString, "ChannelId", "out">>;
@@ -6852,11 +7528,12 @@ export declare const HostApiContracts: {
6852
7528
  platformDisplayName: z.ZodOptional<z.ZodString>;
6853
7529
  boundAgentId: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "AgentId", "out">>;
6854
7530
  runtimePhase: z.ZodDefault<z.ZodEnum<{
7531
+ unavailable: "unavailable";
6855
7532
  idle: "idle";
6856
7533
  thinking: "thinking";
6857
7534
  "using-tool": "using-tool";
7535
+ compacting: "compacting";
6858
7536
  "waiting-input": "waiting-input";
6859
- unavailable: "unavailable";
6860
7537
  }>>;
6861
7538
  activity: z.ZodDefault<z.ZodObject<{
6862
7539
  lastActivityAt: z.ZodOptional<z.ZodNumber>;
@@ -6882,6 +7559,7 @@ export declare const HostApiContracts: {
6882
7559
  command: "command";
6883
7560
  always: "always";
6884
7561
  "mentioned-or-replied": "mentioned-or-replied";
7562
+ smart: "smart";
6885
7563
  "observe-only": "observe-only";
6886
7564
  }>;
6887
7565
  paused: z.ZodDefault<z.ZodBoolean>;
@@ -6894,6 +7572,18 @@ export declare const HostApiContracts: {
6894
7572
  observe: "observe";
6895
7573
  }>>;
6896
7574
  activityTriggerOverrides: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
7575
+ responseTiming: z.ZodOptional<z.ZodObject<{
7576
+ waitEnabled: z.ZodOptional<z.ZodBoolean>;
7577
+ waitMaxQuietSeconds: z.ZodOptional<z.ZodNumber>;
7578
+ waitMaxTotalSeconds: z.ZodOptional<z.ZodNumber>;
7579
+ debounceSeconds: z.ZodOptional<z.ZodNumber>;
7580
+ debounceMaxSeconds: z.ZodOptional<z.ZodNumber>;
7581
+ debounceMaxMessages: z.ZodOptional<z.ZodNumber>;
7582
+ nameWake: z.ZodOptional<z.ZodBoolean>;
7583
+ attentionWake: z.ZodOptional<z.ZodBoolean>;
7584
+ attentionSeconds: z.ZodOptional<z.ZodNumber>;
7585
+ midWakesPerMinute: z.ZodOptional<z.ZodNumber>;
7586
+ }, z.core.$strict>>;
6897
7587
  boundAt: z.ZodNumber;
6898
7588
  }, z.core.$strict>>;
6899
7589
  }, z.core.$strict>>;
@@ -6902,6 +7592,10 @@ export declare const HostApiContracts: {
6902
7592
  channelIdsByAgent: z.ZodRecord<z.core.$ZodBranded<z.ZodString, "AgentId", "out">, z.ZodArray<z.core.$ZodBranded<z.ZodString, "ChannelId", "out">>>;
6903
7593
  unboundChannelIds: z.ZodArray<z.core.$ZodBranded<z.ZodString, "ChannelId", "out">>;
6904
7594
  }, z.core.$strict>>;
7595
+ channelListView: z.ZodDefault<z.ZodObject<{
7596
+ pinnedChannelIds: z.ZodArray<z.core.$ZodBranded<z.ZodString, "ChannelId", "out">>;
7597
+ collapsedGroupIds: z.ZodArray<z.ZodUnion<readonly [z.core.$ZodBranded<z.ZodString, "AgentId", "out">, z.ZodLiteral<"unbound">]>>;
7598
+ }, z.core.$strict>>;
6905
7599
  messages: z.ZodArray<z.ZodObject<{
6906
7600
  id: z.ZodUnion<readonly [z.core.$ZodBranded<z.ZodString, "ChannelEventId", "out">, z.core.$ZodBranded<z.ZodString, "OutboundIntentId", "out">]>;
6907
7601
  channelId: z.core.$ZodBranded<z.ZodString, "ChannelId", "out">;
@@ -7100,11 +7794,24 @@ export declare const HostApiContracts: {
7100
7794
  extensions: z.ZodArray<z.ZodString>;
7101
7795
  problems: z.ZodOptional<z.ZodArray<z.ZodString>>;
7102
7796
  }, z.core.$strict>>;
7797
+ outboundProcessing: z.ZodOptional<z.ZodObject<{
7798
+ extensions: z.ZodArray<z.ZodString>;
7799
+ rewritten: z.ZodBoolean;
7800
+ followUp: z.ZodOptional<z.ZodLiteral<true>>;
7801
+ }, z.core.$strict>>;
7103
7802
  scheduledTask: z.ZodOptional<z.ZodObject<{
7104
7803
  label: z.ZodString;
7105
7804
  extensionName: z.ZodOptional<z.ZodString>;
7106
7805
  note: z.ZodOptional<z.ZodString>;
7107
7806
  }, z.core.$strict>>;
7807
+ responseWait: z.ZodOptional<z.ZodObject<{
7808
+ displayName: z.ZodOptional<z.ZodString>;
7809
+ cause: z.ZodEnum<{
7810
+ limit: "limit";
7811
+ quiet: "quiet";
7812
+ }>;
7813
+ waitedSeconds: z.ZodNumber;
7814
+ }, z.core.$strict>>;
7108
7815
  }, z.core.$strict>>;
7109
7816
  connections: z.ZodArray<z.ZodObject<{
7110
7817
  id: z.core.$ZodBranded<z.ZodString, "ConnectionId", "out">;
@@ -7112,6 +7819,7 @@ export declare const HostApiContracts: {
7112
7819
  alias: z.ZodOptional<z.ZodString>;
7113
7820
  activityTriggerDefaults: z.ZodDefault<z.ZodArray<z.ZodString>>;
7114
7821
  configuredSecrets: z.ZodOptional<z.ZodArray<z.ZodString>>;
7822
+ boundCredentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.core.$ZodBranded<z.ZodString, "CredentialId", "out">>>;
7115
7823
  status: z.ZodDefault<z.ZodObject<{
7116
7824
  state: z.ZodEnum<{
7117
7825
  failed: "failed";
@@ -7551,6 +8259,16 @@ export declare const HostApiContracts: {
7551
8259
  mayForceTrigger: z.ZodBoolean;
7552
8260
  timeoutMs: z.ZodNumber;
7553
8261
  }, z.core.$strict>>;
8262
+ outbound: z.ZodOptional<z.ZodObject<{
8263
+ read: z.ZodOptional<z.ZodLiteral<true>>;
8264
+ transform: z.ZodOptional<z.ZodLiteral<true>>;
8265
+ cancel: z.ZodOptional<z.ZodLiteral<true>>;
8266
+ timeoutMs: z.ZodNumber;
8267
+ onTimeout: z.ZodOptional<z.ZodEnum<{
8268
+ cancel: "cancel";
8269
+ send: "send";
8270
+ }>>;
8271
+ }, z.core.$strict>>;
7554
8272
  jobs: z.ZodOptional<z.ZodObject<{
7555
8273
  declared: z.ZodOptional<z.ZodArray<z.ZodObject<{
7556
8274
  id: z.ZodString;
@@ -7580,6 +8298,8 @@ export declare const HostApiContracts: {
7580
8298
  url: z.ZodString;
7581
8299
  headers: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
7582
8300
  secret: z.ZodString;
8301
+ }, z.core.$strict>, z.ZodObject<{
8302
+ credential: z.ZodString;
7583
8303
  }, z.core.$strict>]>>>;
7584
8304
  }, z.core.$strict>, z.ZodObject<{
7585
8305
  transport: z.ZodLiteral<"stdio">;
@@ -7588,6 +8308,8 @@ export declare const HostApiContracts: {
7588
8308
  args: z.ZodDefault<z.ZodArray<z.ZodString>>;
7589
8309
  env: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
7590
8310
  secret: z.ZodString;
8311
+ }, z.core.$strict>, z.ZodObject<{
8312
+ credential: z.ZodString;
7591
8313
  }, z.core.$strict>]>>>;
7592
8314
  }, z.core.$strict>], "transport">>;
7593
8315
  }, z.core.$strict>>;
@@ -7673,6 +8395,16 @@ export declare const HostApiContracts: {
7673
8395
  mayForceTrigger: z.ZodBoolean;
7674
8396
  timeoutMs: z.ZodNumber;
7675
8397
  }, z.core.$strict>>;
8398
+ outbound: z.ZodOptional<z.ZodObject<{
8399
+ read: z.ZodOptional<z.ZodLiteral<true>>;
8400
+ transform: z.ZodOptional<z.ZodLiteral<true>>;
8401
+ cancel: z.ZodOptional<z.ZodLiteral<true>>;
8402
+ timeoutMs: z.ZodNumber;
8403
+ onTimeout: z.ZodOptional<z.ZodEnum<{
8404
+ cancel: "cancel";
8405
+ send: "send";
8406
+ }>>;
8407
+ }, z.core.$strict>>;
7676
8408
  jobs: z.ZodOptional<z.ZodObject<{
7677
8409
  declared: z.ZodOptional<z.ZodArray<z.ZodObject<{
7678
8410
  id: z.ZodString;
@@ -7702,6 +8434,8 @@ export declare const HostApiContracts: {
7702
8434
  url: z.ZodString;
7703
8435
  headers: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
7704
8436
  secret: z.ZodString;
8437
+ }, z.core.$strict>, z.ZodObject<{
8438
+ credential: z.ZodString;
7705
8439
  }, z.core.$strict>]>>>;
7706
8440
  }, z.core.$strict>, z.ZodObject<{
7707
8441
  transport: z.ZodLiteral<"stdio">;
@@ -7710,6 +8444,8 @@ export declare const HostApiContracts: {
7710
8444
  args: z.ZodDefault<z.ZodArray<z.ZodString>>;
7711
8445
  env: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
7712
8446
  secret: z.ZodString;
8447
+ }, z.core.$strict>, z.ZodObject<{
8448
+ credential: z.ZodString;
7713
8449
  }, z.core.$strict>]>>>;
7714
8450
  }, z.core.$strict>], "transport">>;
7715
8451
  }, z.core.$strict>>;
@@ -7798,6 +8534,16 @@ export declare const HostApiContracts: {
7798
8534
  mayForceTrigger: z.ZodBoolean;
7799
8535
  timeoutMs: z.ZodNumber;
7800
8536
  }, z.core.$strict>>;
8537
+ outbound: z.ZodOptional<z.ZodObject<{
8538
+ read: z.ZodOptional<z.ZodLiteral<true>>;
8539
+ transform: z.ZodOptional<z.ZodLiteral<true>>;
8540
+ cancel: z.ZodOptional<z.ZodLiteral<true>>;
8541
+ timeoutMs: z.ZodNumber;
8542
+ onTimeout: z.ZodOptional<z.ZodEnum<{
8543
+ cancel: "cancel";
8544
+ send: "send";
8545
+ }>>;
8546
+ }, z.core.$strict>>;
7801
8547
  jobs: z.ZodOptional<z.ZodObject<{
7802
8548
  declared: z.ZodOptional<z.ZodArray<z.ZodObject<{
7803
8549
  id: z.ZodString;
@@ -7827,6 +8573,8 @@ export declare const HostApiContracts: {
7827
8573
  url: z.ZodString;
7828
8574
  headers: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
7829
8575
  secret: z.ZodString;
8576
+ }, z.core.$strict>, z.ZodObject<{
8577
+ credential: z.ZodString;
7830
8578
  }, z.core.$strict>]>>>;
7831
8579
  }, z.core.$strict>, z.ZodObject<{
7832
8580
  transport: z.ZodLiteral<"stdio">;
@@ -7835,6 +8583,8 @@ export declare const HostApiContracts: {
7835
8583
  args: z.ZodDefault<z.ZodArray<z.ZodString>>;
7836
8584
  env: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
7837
8585
  secret: z.ZodString;
8586
+ }, z.core.$strict>, z.ZodObject<{
8587
+ credential: z.ZodString;
7838
8588
  }, z.core.$strict>]>>>;
7839
8589
  }, z.core.$strict>], "transport">>;
7840
8590
  }, z.core.$strict>>;
@@ -7872,6 +8622,7 @@ export declare const HostApiContracts: {
7872
8622
  extensionRevisionId: z.core.$ZodBranded<z.ZodString, "ExtensionRevisionId", "out">;
7873
8623
  config: z.ZodJSONSchema;
7874
8624
  configuredSecrets: z.ZodOptional<z.ZodArray<z.ZodString>>;
8625
+ boundCredentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.core.$ZodBranded<z.ZodString, "CredentialId", "out">>>;
7875
8626
  activatedAt: z.ZodNumber;
7876
8627
  runtime: z.ZodOptional<z.ZodObject<{
7877
8628
  status: z.ZodEnum<{
@@ -7915,6 +8666,7 @@ export declare const HostApiContracts: {
7915
8666
  installedAt: z.ZodNumber;
7916
8667
  config: z.ZodDefault<z.ZodJSONSchema>;
7917
8668
  configuredSecrets: z.ZodOptional<z.ZodArray<z.ZodString>>;
8669
+ boundCredentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.core.$ZodBranded<z.ZodString, "CredentialId", "out">>>;
7918
8670
  runtime: z.ZodOptional<z.ZodObject<{
7919
8671
  status: z.ZodEnum<{
7920
8672
  active: "active";
@@ -7997,6 +8749,16 @@ export declare const HostApiContracts: {
7997
8749
  mayForceTrigger: z.ZodBoolean;
7998
8750
  timeoutMs: z.ZodNumber;
7999
8751
  }, z.core.$strict>>;
8752
+ outbound: z.ZodOptional<z.ZodObject<{
8753
+ read: z.ZodOptional<z.ZodLiteral<true>>;
8754
+ transform: z.ZodOptional<z.ZodLiteral<true>>;
8755
+ cancel: z.ZodOptional<z.ZodLiteral<true>>;
8756
+ timeoutMs: z.ZodNumber;
8757
+ onTimeout: z.ZodOptional<z.ZodEnum<{
8758
+ cancel: "cancel";
8759
+ send: "send";
8760
+ }>>;
8761
+ }, z.core.$strict>>;
8000
8762
  jobs: z.ZodOptional<z.ZodObject<{
8001
8763
  declared: z.ZodOptional<z.ZodArray<z.ZodObject<{
8002
8764
  id: z.ZodString;
@@ -8026,6 +8788,8 @@ export declare const HostApiContracts: {
8026
8788
  url: z.ZodString;
8027
8789
  headers: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
8028
8790
  secret: z.ZodString;
8791
+ }, z.core.$strict>, z.ZodObject<{
8792
+ credential: z.ZodString;
8029
8793
  }, z.core.$strict>]>>>;
8030
8794
  }, z.core.$strict>, z.ZodObject<{
8031
8795
  transport: z.ZodLiteral<"stdio">;
@@ -8034,6 +8798,8 @@ export declare const HostApiContracts: {
8034
8798
  args: z.ZodDefault<z.ZodArray<z.ZodString>>;
8035
8799
  env: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
8036
8800
  secret: z.ZodString;
8801
+ }, z.core.$strict>, z.ZodObject<{
8802
+ credential: z.ZodString;
8037
8803
  }, z.core.$strict>]>>>;
8038
8804
  }, z.core.$strict>], "transport">>;
8039
8805
  }, z.core.$strict>>;
@@ -8477,8 +9243,8 @@ export declare const HostApiContracts: {
8477
9243
  script: "script";
8478
9244
  }>;
8479
9245
  status: z.ZodEnum<{
8480
- closed: "closed";
8481
9246
  open: "open";
9247
+ closed: "closed";
8482
9248
  }>;
8483
9249
  closeReason: z.ZodOptional<z.ZodEnum<{
8484
9250
  failed: "failed";
@@ -8489,6 +9255,11 @@ export declare const HostApiContracts: {
8489
9255
  }>>;
8490
9256
  summary: z.ZodOptional<z.ZodString>;
8491
9257
  authoringTaskId: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "AuthoringTaskId", "out">>;
9258
+ model: z.ZodOptional<z.ZodObject<{
9259
+ provider: z.ZodString;
9260
+ model: z.ZodString;
9261
+ reasoningEffort: z.ZodOptional<z.ZodString>;
9262
+ }, z.core.$strict>>;
8492
9263
  createdAt: z.ZodNumber;
8493
9264
  closedAt: z.ZodOptional<z.ZodNumber>;
8494
9265
  }, z.core.$strict>>>;
@@ -8839,12 +9610,20 @@ export declare const HostApiContracts: {
8839
9610
  createdAt: z.ZodNumber;
8840
9611
  settledAt: z.ZodOptional<z.ZodNumber>;
8841
9612
  }, z.core.$strict>>;
8842
- testSecrets: z.ZodOptional<z.ZodObject<{
9613
+ testConfig: z.ZodOptional<z.ZodObject<{
8843
9614
  fields: z.ZodArray<z.ZodObject<{
8844
9615
  key: z.ZodString;
8845
9616
  title: z.ZodString;
9617
+ kind: z.ZodEnum<{
9618
+ string: "string";
9619
+ number: "number";
9620
+ secret: "secret";
9621
+ }>;
8846
9622
  }, z.core.$strict>>;
8847
9623
  configured: z.ZodArray<z.ZodString>;
9624
+ values: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
9625
+ agentValues: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
9626
+ boundCredentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.core.$ZodBranded<z.ZodString, "CredentialId", "out">>>;
8848
9627
  }, z.core.$strict>>;
8849
9628
  events: z.ZodArray<z.ZodObject<{
8850
9629
  sequence: z.ZodNumber;
@@ -9341,12 +10120,16 @@ export declare const HostApiContracts: {
9341
10120
  message: z.ZodString;
9342
10121
  }, z.core.$strict>;
9343
10122
  }, z.core.$strict>>;
9344
- readonly setAuthoringTestSecrets: HostApiContract<"PUT", z.ZodObject<{
10123
+ readonly setAuthoringTestConfig: HostApiContract<"PUT", z.ZodObject<{
9345
10124
  taskId: z.core.$ZodBranded<z.ZodString, "AuthoringTaskId", "out">;
9346
10125
  }, z.core.$strict>, z.ZodObject<{
9347
10126
  secrets: z.ZodRecord<z.ZodString, z.ZodString>;
10127
+ values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
10128
+ credentialBindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNullable<z.core.$ZodBranded<z.ZodString, "CredentialId", "out">>>>;
9348
10129
  }, z.core.$strict>, z.ZodObject<{
9349
10130
  configured: z.ZodArray<z.ZodString>;
10131
+ values: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
10132
+ boundCredentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.core.$ZodBranded<z.ZodString, "CredentialId", "out">>>;
9350
10133
  }, z.core.$strict>, z.ZodObject<{
9351
10134
  error: z.ZodObject<{
9352
10135
  code: z.ZodString;
@@ -9524,6 +10307,8 @@ export declare const HostApiContracts: {
9524
10307
  events: z.ZodObject<{
9525
10308
  'dynamic-client-approval-requested': z.ZodBoolean;
9526
10309
  'community-feedback-update': z.ZodOptional<z.ZodBoolean>;
10310
+ 'credential-requested': z.ZodOptional<z.ZodBoolean>;
10311
+ 'extension-notification': z.ZodOptional<z.ZodBoolean>;
9527
10312
  }, z.core.$strict>;
9528
10313
  }, z.core.$strict>, z.ZodObject<{
9529
10314
  revision: z.ZodOptional<z.ZodNumber>;
@@ -9538,6 +10323,8 @@ export declare const HostApiContracts: {
9538
10323
  events: z.ZodObject<{
9539
10324
  'dynamic-client-approval-requested': z.ZodBoolean;
9540
10325
  'community-feedback-update': z.ZodDefault<z.ZodBoolean>;
10326
+ 'credential-requested': z.ZodDefault<z.ZodBoolean>;
10327
+ 'extension-notification': z.ZodDefault<z.ZodBoolean>;
9541
10328
  }, z.core.$strict>;
9542
10329
  }, z.core.$strict>, z.ZodObject<{
9543
10330
  error: z.ZodObject<{
@@ -9703,19 +10490,59 @@ export declare const HostApiContracts: {
9703
10490
  manual: "manual";
9704
10491
  automatic: "automatic";
9705
10492
  }>>;
9706
- capabilities: z.ZodOptional<z.ZodObject<{
9707
- subagents: z.ZodBoolean;
9708
- fileTools: z.ZodBoolean;
9709
- webSearch: z.ZodBoolean;
9710
- dynamicCreation: z.ZodBoolean;
9711
- developmentShell: z.ZodBoolean;
9712
- unrestrictedFileAccess: z.ZodBoolean;
9713
- scheduledTasks: z.ZodDefault<z.ZodBoolean>;
9714
- codeRun: z.ZodDefault<z.ZodBoolean>;
9715
- commandNetwork: z.ZodDefault<z.ZodBoolean>;
9716
- communityFeedbackAuto: z.ZodDefault<z.ZodBoolean>;
9717
- commandAccounts: z.ZodDefault<z.ZodArray<z.ZodObject<{
9718
- service: z.ZodEnum<{
10493
+ compaction: z.ZodOptional<z.ZodObject<{
10494
+ inSession: z.ZodDiscriminatedUnion<[z.ZodObject<{
10495
+ mode: z.ZodLiteral<"follow">;
10496
+ }, z.core.$strict>, z.ZodObject<{
10497
+ mode: z.ZodLiteral<"custom">;
10498
+ model: z.ZodObject<{
10499
+ provider: z.ZodString;
10500
+ model: z.ZodString;
10501
+ reasoningEffort: z.ZodOptional<z.ZodString>;
10502
+ }, z.core.$strict>;
10503
+ }, z.core.$strict>], "mode">;
10504
+ newSession: z.ZodDiscriminatedUnion<[z.ZodObject<{
10505
+ mode: z.ZodLiteral<"follow">;
10506
+ }, z.core.$strict>, z.ZodObject<{
10507
+ mode: z.ZodLiteral<"custom">;
10508
+ model: z.ZodObject<{
10509
+ provider: z.ZodString;
10510
+ model: z.ZodString;
10511
+ reasoningEffort: z.ZodOptional<z.ZodString>;
10512
+ }, z.core.$strict>;
10513
+ }, z.core.$strict>], "mode">;
10514
+ }, z.core.$strict>>;
10515
+ subConversationModels: z.ZodOptional<z.ZodObject<{
10516
+ candidates: z.ZodArray<z.ZodObject<{
10517
+ name: z.ZodString;
10518
+ model: z.ZodObject<{
10519
+ provider: z.ZodString;
10520
+ model: z.ZodString;
10521
+ reasoningEffort: z.ZodOptional<z.ZodString>;
10522
+ }, z.core.$strict>;
10523
+ guidance: z.ZodString;
10524
+ }, z.core.$strict>>;
10525
+ default: z.ZodOptional<z.ZodString>;
10526
+ }, z.core.$strict>>;
10527
+ fallbackModels: z.ZodOptional<z.ZodArray<z.ZodObject<{
10528
+ provider: z.ZodString;
10529
+ model: z.ZodString;
10530
+ reasoningEffort: z.ZodOptional<z.ZodString>;
10531
+ }, z.core.$strict>>>;
10532
+ aliases: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string[], string[]>>>;
10533
+ capabilities: z.ZodOptional<z.ZodObject<{
10534
+ subagents: z.ZodBoolean;
10535
+ fileTools: z.ZodBoolean;
10536
+ webSearch: z.ZodBoolean;
10537
+ dynamicCreation: z.ZodBoolean;
10538
+ developmentShell: z.ZodBoolean;
10539
+ unrestrictedFileAccess: z.ZodBoolean;
10540
+ scheduledTasks: z.ZodDefault<z.ZodBoolean>;
10541
+ codeRun: z.ZodDefault<z.ZodBoolean>;
10542
+ commandNetwork: z.ZodDefault<z.ZodBoolean>;
10543
+ communityFeedbackAuto: z.ZodDefault<z.ZodBoolean>;
10544
+ commandAccounts: z.ZodDefault<z.ZodArray<z.ZodObject<{
10545
+ service: z.ZodEnum<{
9719
10546
  github: "github";
9720
10547
  }>;
9721
10548
  accountId: z.ZodString;
@@ -9727,14 +10554,18 @@ export declare const HostApiContracts: {
9727
10554
  }>>>;
9728
10555
  }, z.core.$strict>>>;
9729
10556
  extensionAutonomy: z.ZodDefault<z.ZodEnum<{
9730
- manual: "manual";
9731
10557
  confirm: "confirm";
10558
+ manual: "manual";
9732
10559
  autonomous: "autonomous";
9733
10560
  }>>;
9734
10561
  extensionRequesters: z.ZodDefault<z.ZodEnum<{
9735
10562
  everyone: "everyone";
9736
10563
  admins: "admins";
9737
10564
  }>>;
10565
+ extensionConfigRequesters: z.ZodDefault<z.ZodEnum<{
10566
+ everyone: "everyone";
10567
+ admins: "admins";
10568
+ }>>;
9738
10569
  }, z.core.$strict>>;
9739
10570
  }, z.core.$strict>, z.ZodObject<{
9740
10571
  agentId: z.core.$ZodBranded<z.ZodString, "AgentId", "out">;
@@ -9807,6 +10638,46 @@ export declare const HostApiContracts: {
9807
10638
  manual: "manual";
9808
10639
  automatic: "automatic";
9809
10640
  }>>;
10641
+ compaction: z.ZodOptional<z.ZodObject<{
10642
+ inSession: z.ZodDiscriminatedUnion<[z.ZodObject<{
10643
+ mode: z.ZodLiteral<"follow">;
10644
+ }, z.core.$strict>, z.ZodObject<{
10645
+ mode: z.ZodLiteral<"custom">;
10646
+ model: z.ZodObject<{
10647
+ provider: z.ZodString;
10648
+ model: z.ZodString;
10649
+ reasoningEffort: z.ZodOptional<z.ZodString>;
10650
+ }, z.core.$strict>;
10651
+ }, z.core.$strict>], "mode">;
10652
+ newSession: z.ZodDiscriminatedUnion<[z.ZodObject<{
10653
+ mode: z.ZodLiteral<"follow">;
10654
+ }, z.core.$strict>, z.ZodObject<{
10655
+ mode: z.ZodLiteral<"custom">;
10656
+ model: z.ZodObject<{
10657
+ provider: z.ZodString;
10658
+ model: z.ZodString;
10659
+ reasoningEffort: z.ZodOptional<z.ZodString>;
10660
+ }, z.core.$strict>;
10661
+ }, z.core.$strict>], "mode">;
10662
+ }, z.core.$strict>>;
10663
+ subConversationModels: z.ZodOptional<z.ZodObject<{
10664
+ candidates: z.ZodArray<z.ZodObject<{
10665
+ name: z.ZodString;
10666
+ model: z.ZodObject<{
10667
+ provider: z.ZodString;
10668
+ model: z.ZodString;
10669
+ reasoningEffort: z.ZodOptional<z.ZodString>;
10670
+ }, z.core.$strict>;
10671
+ guidance: z.ZodString;
10672
+ }, z.core.$strict>>;
10673
+ default: z.ZodOptional<z.ZodString>;
10674
+ }, z.core.$strict>>;
10675
+ fallbackModels: z.ZodOptional<z.ZodArray<z.ZodObject<{
10676
+ provider: z.ZodString;
10677
+ model: z.ZodString;
10678
+ reasoningEffort: z.ZodOptional<z.ZodString>;
10679
+ }, z.core.$strict>>>;
10680
+ aliases: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string[], string[]>>>;
9810
10681
  expectedCurrentRevisionId: z.core.$ZodBranded<z.ZodString, "AgentRevisionId", "out">;
9811
10682
  }, z.core.$strict>, z.ZodObject<{
9812
10683
  currentRevisionId: z.core.$ZodBranded<z.ZodString, "AgentRevisionId", "out">;
@@ -9842,14 +10713,18 @@ export declare const HostApiContracts: {
9842
10713
  }>>>;
9843
10714
  }, z.core.$strict>>>;
9844
10715
  extensionAutonomy: z.ZodOptional<z.ZodEnum<{
9845
- manual: "manual";
9846
10716
  confirm: "confirm";
10717
+ manual: "manual";
9847
10718
  autonomous: "autonomous";
9848
10719
  }>>;
9849
10720
  extensionRequesters: z.ZodOptional<z.ZodEnum<{
9850
10721
  everyone: "everyone";
9851
10722
  admins: "admins";
9852
10723
  }>>;
10724
+ extensionConfigRequesters: z.ZodOptional<z.ZodEnum<{
10725
+ everyone: "everyone";
10726
+ admins: "admins";
10727
+ }>>;
9853
10728
  }, z.core.$strict>, z.ZodObject<{
9854
10729
  currentRevisionId: z.core.$ZodBranded<z.ZodString, "AgentRevisionId", "out">;
9855
10730
  capabilities: z.ZodObject<{
@@ -9876,14 +10751,18 @@ export declare const HostApiContracts: {
9876
10751
  }>>>;
9877
10752
  }, z.core.$strict>>>;
9878
10753
  extensionAutonomy: z.ZodDefault<z.ZodEnum<{
9879
- manual: "manual";
9880
10754
  confirm: "confirm";
10755
+ manual: "manual";
9881
10756
  autonomous: "autonomous";
9882
10757
  }>>;
9883
10758
  extensionRequesters: z.ZodDefault<z.ZodEnum<{
9884
10759
  everyone: "everyone";
9885
10760
  admins: "admins";
9886
10761
  }>>;
10762
+ extensionConfigRequesters: z.ZodDefault<z.ZodEnum<{
10763
+ everyone: "everyone";
10764
+ admins: "admins";
10765
+ }>>;
9887
10766
  }, z.core.$strict>;
9888
10767
  }, z.core.$strict>, z.ZodObject<{
9889
10768
  error: z.ZodObject<{
@@ -9940,6 +10819,7 @@ export declare const HostApiContracts: {
9940
10819
  command: "command";
9941
10820
  always: "always";
9942
10821
  "mentioned-or-replied": "mentioned-or-replied";
10822
+ smart: "smart";
9943
10823
  "observe-only": "observe-only";
9944
10824
  }>;
9945
10825
  processingFeedback: z.ZodOptional<z.ZodEnum<{
@@ -9951,6 +10831,18 @@ export declare const HostApiContracts: {
9951
10831
  observe: "observe";
9952
10832
  }>>;
9953
10833
  activityTriggerOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
10834
+ responseTiming: z.ZodOptional<z.ZodObject<{
10835
+ waitEnabled: z.ZodOptional<z.ZodBoolean>;
10836
+ waitMaxQuietSeconds: z.ZodOptional<z.ZodNumber>;
10837
+ waitMaxTotalSeconds: z.ZodOptional<z.ZodNumber>;
10838
+ debounceSeconds: z.ZodOptional<z.ZodNumber>;
10839
+ debounceMaxSeconds: z.ZodOptional<z.ZodNumber>;
10840
+ debounceMaxMessages: z.ZodOptional<z.ZodNumber>;
10841
+ nameWake: z.ZodOptional<z.ZodBoolean>;
10842
+ attentionWake: z.ZodOptional<z.ZodBoolean>;
10843
+ attentionSeconds: z.ZodOptional<z.ZodNumber>;
10844
+ midWakesPerMinute: z.ZodOptional<z.ZodNumber>;
10845
+ }, z.core.$strict>>;
9954
10846
  }, z.core.$strict>, z.ZodObject<{
9955
10847
  channelId: z.core.$ZodBranded<z.ZodString, "ChannelId", "out">;
9956
10848
  agentId: z.core.$ZodBranded<z.ZodString, "AgentId", "out">;
@@ -9958,6 +10850,7 @@ export declare const HostApiContracts: {
9958
10850
  command: "command";
9959
10851
  always: "always";
9960
10852
  "mentioned-or-replied": "mentioned-or-replied";
10853
+ smart: "smart";
9961
10854
  "observe-only": "observe-only";
9962
10855
  }>;
9963
10856
  paused: z.ZodDefault<z.ZodBoolean>;
@@ -9970,6 +10863,18 @@ export declare const HostApiContracts: {
9970
10863
  observe: "observe";
9971
10864
  }>>;
9972
10865
  activityTriggerOverrides: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
10866
+ responseTiming: z.ZodOptional<z.ZodObject<{
10867
+ waitEnabled: z.ZodOptional<z.ZodBoolean>;
10868
+ waitMaxQuietSeconds: z.ZodOptional<z.ZodNumber>;
10869
+ waitMaxTotalSeconds: z.ZodOptional<z.ZodNumber>;
10870
+ debounceSeconds: z.ZodOptional<z.ZodNumber>;
10871
+ debounceMaxSeconds: z.ZodOptional<z.ZodNumber>;
10872
+ debounceMaxMessages: z.ZodOptional<z.ZodNumber>;
10873
+ nameWake: z.ZodOptional<z.ZodBoolean>;
10874
+ attentionWake: z.ZodOptional<z.ZodBoolean>;
10875
+ attentionSeconds: z.ZodOptional<z.ZodNumber>;
10876
+ midWakesPerMinute: z.ZodOptional<z.ZodNumber>;
10877
+ }, z.core.$strict>>;
9973
10878
  boundAt: z.ZodNumber;
9974
10879
  }, z.core.$strict>, z.ZodObject<{
9975
10880
  error: z.ZodObject<{
@@ -10002,6 +10907,27 @@ export declare const HostApiContracts: {
10002
10907
  message: z.ZodString;
10003
10908
  }, z.core.$strict>;
10004
10909
  }, z.core.$strict>>;
10910
+ readonly getChannelListView: HostApiContract<"GET", z.ZodObject<{}, z.core.$strict>, z.ZodUndefined, z.ZodObject<{
10911
+ pinnedChannelIds: z.ZodArray<z.core.$ZodBranded<z.ZodString, "ChannelId", "out">>;
10912
+ collapsedGroupIds: z.ZodArray<z.ZodUnion<readonly [z.core.$ZodBranded<z.ZodString, "AgentId", "out">, z.ZodLiteral<"unbound">]>>;
10913
+ }, z.core.$strict>, z.ZodObject<{
10914
+ error: z.ZodObject<{
10915
+ code: z.ZodString;
10916
+ message: z.ZodString;
10917
+ }, z.core.$strict>;
10918
+ }, z.core.$strict>>;
10919
+ readonly updateChannelListView: HostApiContract<"PUT", z.ZodObject<{}, z.core.$strict>, z.ZodObject<{
10920
+ pinnedChannelIds: z.ZodArray<z.core.$ZodBranded<z.ZodString, "ChannelId", "out">>;
10921
+ collapsedGroupIds: z.ZodArray<z.ZodUnion<readonly [z.core.$ZodBranded<z.ZodString, "AgentId", "out">, z.ZodLiteral<"unbound">]>>;
10922
+ }, z.core.$strict>, z.ZodObject<{
10923
+ pinnedChannelIds: z.ZodArray<z.core.$ZodBranded<z.ZodString, "ChannelId", "out">>;
10924
+ collapsedGroupIds: z.ZodArray<z.ZodUnion<readonly [z.core.$ZodBranded<z.ZodString, "AgentId", "out">, z.ZodLiteral<"unbound">]>>;
10925
+ }, z.core.$strict>, z.ZodObject<{
10926
+ error: z.ZodObject<{
10927
+ code: z.ZodString;
10928
+ message: z.ZodString;
10929
+ }, z.core.$strict>;
10930
+ }, z.core.$strict>>;
10005
10931
  readonly listChannelMessages: HostApiContract<"GET", z.ZodObject<{
10006
10932
  channelId: z.core.$ZodBranded<z.ZodString, "ChannelId", "out">;
10007
10933
  limit: z.ZodNumber;
@@ -10206,11 +11132,24 @@ export declare const HostApiContracts: {
10206
11132
  extensions: z.ZodArray<z.ZodString>;
10207
11133
  problems: z.ZodOptional<z.ZodArray<z.ZodString>>;
10208
11134
  }, z.core.$strict>>;
11135
+ outboundProcessing: z.ZodOptional<z.ZodObject<{
11136
+ extensions: z.ZodArray<z.ZodString>;
11137
+ rewritten: z.ZodBoolean;
11138
+ followUp: z.ZodOptional<z.ZodLiteral<true>>;
11139
+ }, z.core.$strict>>;
10209
11140
  scheduledTask: z.ZodOptional<z.ZodObject<{
10210
11141
  label: z.ZodString;
10211
11142
  extensionName: z.ZodOptional<z.ZodString>;
10212
11143
  note: z.ZodOptional<z.ZodString>;
10213
11144
  }, z.core.$strict>>;
11145
+ responseWait: z.ZodOptional<z.ZodObject<{
11146
+ displayName: z.ZodOptional<z.ZodString>;
11147
+ cause: z.ZodEnum<{
11148
+ limit: "limit";
11149
+ quiet: "quiet";
11150
+ }>;
11151
+ waitedSeconds: z.ZodNumber;
11152
+ }, z.core.$strict>>;
10214
11153
  }, z.core.$strict>>;
10215
11154
  hasMore: z.ZodBoolean;
10216
11155
  cursor: z.ZodObject<{
@@ -10306,13 +11245,35 @@ export declare const HostApiContracts: {
10306
11245
  agentId: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "AgentId", "out">>;
10307
11246
  episodeId: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "EpisodeId", "out">>;
10308
11247
  phase: z.ZodEnum<{
11248
+ unavailable: "unavailable";
10309
11249
  idle: "idle";
10310
11250
  thinking: "thinking";
10311
11251
  "using-tool": "using-tool";
11252
+ compacting: "compacting";
10312
11253
  "waiting-input": "waiting-input";
10313
- unavailable: "unavailable";
10314
11254
  }>;
10315
11255
  summary: z.ZodString;
11256
+ compaction: z.ZodOptional<z.ZodObject<{
11257
+ kind: z.ZodEnum<{
11258
+ "in-session": "in-session";
11259
+ "new-session": "new-session";
11260
+ }>;
11261
+ startedAt: z.ZodNumber;
11262
+ }, z.core.$strict>>;
11263
+ modelFallback: z.ZodOptional<z.ZodObject<{
11264
+ model: z.ZodObject<{
11265
+ provider: z.ZodString;
11266
+ model: z.ZodString;
11267
+ reasoningEffort: z.ZodOptional<z.ZodString>;
11268
+ }, z.core.$strict>;
11269
+ reason: z.ZodEnum<{
11270
+ quota: "quota";
11271
+ "rate-limit": "rate-limit";
11272
+ unavailable: "unavailable";
11273
+ }>;
11274
+ since: z.ZodNumber;
11275
+ retryMainAt: z.ZodNumber;
11276
+ }, z.core.$strict>>;
10316
11277
  pendingInjectCount: z.ZodNumber;
10317
11278
  occupancy: z.ZodOptional<z.ZodObject<{
10318
11279
  projectedTokens: z.ZodNumber;
@@ -10447,6 +11408,7 @@ export declare const HostApiContracts: {
10447
11408
  "partially-sent": "partially-sent";
10448
11409
  failed: "failed";
10449
11410
  unknown: "unknown";
11411
+ cancelled: "cancelled";
10450
11412
  }>>;
10451
11413
  durationMs: z.ZodOptional<z.ZodNumber>;
10452
11414
  }, z.core.$strict>>>;
@@ -10466,6 +11428,7 @@ export declare const HostApiContracts: {
10466
11428
  "partially-sent": "partially-sent";
10467
11429
  failed: "failed";
10468
11430
  unknown: "unknown";
11431
+ cancelled: "cancelled";
10469
11432
  }>>;
10470
11433
  durationMs: z.ZodOptional<z.ZodNumber>;
10471
11434
  }, z.core.$strict>>;
@@ -10583,8 +11546,8 @@ export declare const HostApiContracts: {
10583
11546
  script: "script";
10584
11547
  }>;
10585
11548
  status: z.ZodEnum<{
10586
- closed: "closed";
10587
11549
  open: "open";
11550
+ closed: "closed";
10588
11551
  }>;
10589
11552
  closeReason: z.ZodOptional<z.ZodEnum<{
10590
11553
  failed: "failed";
@@ -10595,6 +11558,11 @@ export declare const HostApiContracts: {
10595
11558
  }>>;
10596
11559
  summary: z.ZodOptional<z.ZodString>;
10597
11560
  authoringTaskId: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "AuthoringTaskId", "out">>;
11561
+ model: z.ZodOptional<z.ZodObject<{
11562
+ provider: z.ZodString;
11563
+ model: z.ZodString;
11564
+ reasoningEffort: z.ZodOptional<z.ZodString>;
11565
+ }, z.core.$strict>>;
10598
11566
  createdAt: z.ZodNumber;
10599
11567
  closedAt: z.ZodOptional<z.ZodNumber>;
10600
11568
  }, z.core.$strict>>;
@@ -10622,8 +11590,8 @@ export declare const HostApiContracts: {
10622
11590
  script: "script";
10623
11591
  }>;
10624
11592
  status: z.ZodEnum<{
10625
- closed: "closed";
10626
11593
  open: "open";
11594
+ closed: "closed";
10627
11595
  }>;
10628
11596
  closeReason: z.ZodOptional<z.ZodEnum<{
10629
11597
  failed: "failed";
@@ -10634,6 +11602,11 @@ export declare const HostApiContracts: {
10634
11602
  }>>;
10635
11603
  summary: z.ZodOptional<z.ZodString>;
10636
11604
  authoringTaskId: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "AuthoringTaskId", "out">>;
11605
+ model: z.ZodOptional<z.ZodObject<{
11606
+ provider: z.ZodString;
11607
+ model: z.ZodString;
11608
+ reasoningEffort: z.ZodOptional<z.ZodString>;
11609
+ }, z.core.$strict>>;
10637
11610
  createdAt: z.ZodNumber;
10638
11611
  closedAt: z.ZodOptional<z.ZodNumber>;
10639
11612
  }, z.core.$strict>;
@@ -10642,13 +11615,35 @@ export declare const HostApiContracts: {
10642
11615
  agentId: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "AgentId", "out">>;
10643
11616
  episodeId: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "EpisodeId", "out">>;
10644
11617
  phase: z.ZodEnum<{
11618
+ unavailable: "unavailable";
10645
11619
  idle: "idle";
10646
11620
  thinking: "thinking";
10647
11621
  "using-tool": "using-tool";
11622
+ compacting: "compacting";
10648
11623
  "waiting-input": "waiting-input";
10649
- unavailable: "unavailable";
10650
11624
  }>;
10651
11625
  summary: z.ZodString;
11626
+ compaction: z.ZodOptional<z.ZodObject<{
11627
+ kind: z.ZodEnum<{
11628
+ "in-session": "in-session";
11629
+ "new-session": "new-session";
11630
+ }>;
11631
+ startedAt: z.ZodNumber;
11632
+ }, z.core.$strict>>;
11633
+ modelFallback: z.ZodOptional<z.ZodObject<{
11634
+ model: z.ZodObject<{
11635
+ provider: z.ZodString;
11636
+ model: z.ZodString;
11637
+ reasoningEffort: z.ZodOptional<z.ZodString>;
11638
+ }, z.core.$strict>;
11639
+ reason: z.ZodEnum<{
11640
+ quota: "quota";
11641
+ "rate-limit": "rate-limit";
11642
+ unavailable: "unavailable";
11643
+ }>;
11644
+ since: z.ZodNumber;
11645
+ retryMainAt: z.ZodNumber;
11646
+ }, z.core.$strict>>;
10652
11647
  pendingInjectCount: z.ZodNumber;
10653
11648
  occupancy: z.ZodOptional<z.ZodObject<{
10654
11649
  projectedTokens: z.ZodNumber;
@@ -10783,6 +11778,7 @@ export declare const HostApiContracts: {
10783
11778
  "partially-sent": "partially-sent";
10784
11779
  failed: "failed";
10785
11780
  unknown: "unknown";
11781
+ cancelled: "cancelled";
10786
11782
  }>>;
10787
11783
  durationMs: z.ZodOptional<z.ZodNumber>;
10788
11784
  }, z.core.$strict>>>;
@@ -10802,6 +11798,7 @@ export declare const HostApiContracts: {
10802
11798
  "partially-sent": "partially-sent";
10803
11799
  failed: "failed";
10804
11800
  unknown: "unknown";
11801
+ cancelled: "cancelled";
10805
11802
  }>>;
10806
11803
  durationMs: z.ZodOptional<z.ZodNumber>;
10807
11804
  }, z.core.$strict>>;
@@ -10857,8 +11854,8 @@ export declare const HostApiContracts: {
10857
11854
  script: "script";
10858
11855
  }>;
10859
11856
  status: z.ZodEnum<{
10860
- closed: "closed";
10861
11857
  open: "open";
11858
+ closed: "closed";
10862
11859
  }>;
10863
11860
  closeReason: z.ZodOptional<z.ZodEnum<{
10864
11861
  failed: "failed";
@@ -10869,6 +11866,11 @@ export declare const HostApiContracts: {
10869
11866
  }>>;
10870
11867
  summary: z.ZodOptional<z.ZodString>;
10871
11868
  authoringTaskId: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "AuthoringTaskId", "out">>;
11869
+ model: z.ZodOptional<z.ZodObject<{
11870
+ provider: z.ZodString;
11871
+ model: z.ZodString;
11872
+ reasoningEffort: z.ZodOptional<z.ZodString>;
11873
+ }, z.core.$strict>>;
10872
11874
  createdAt: z.ZodNumber;
10873
11875
  closedAt: z.ZodOptional<z.ZodNumber>;
10874
11876
  }, z.core.$strict>, z.ZodObject<{
@@ -11358,6 +12360,78 @@ export declare const HostApiContracts: {
11358
12360
  message: z.ZodString;
11359
12361
  }, z.core.$strict>;
11360
12362
  }, z.core.$strict>>;
12363
+ readonly getCompactionSettings: HostApiContract<"GET", z.ZodObject<{}, z.core.$strict>, z.ZodUndefined, z.ZodObject<{
12364
+ idleThresholdPercent: z.ZodDefault<z.ZodNumber>;
12365
+ newSessionModel: z.ZodDiscriminatedUnion<[z.ZodObject<{
12366
+ mode: z.ZodLiteral<"main">;
12367
+ }, z.core.$strict>, z.ZodObject<{
12368
+ mode: z.ZodLiteral<"custom">;
12369
+ model: z.ZodObject<{
12370
+ provider: z.ZodString;
12371
+ model: z.ZodString;
12372
+ reasoningEffort: z.ZodOptional<z.ZodString>;
12373
+ }, z.core.$strict>;
12374
+ }, z.core.$strict>], "mode">;
12375
+ timeoutSeconds: z.ZodNumber;
12376
+ }, z.core.$strict>, z.ZodObject<{
12377
+ error: z.ZodObject<{
12378
+ code: z.ZodString;
12379
+ message: z.ZodString;
12380
+ }, z.core.$strict>;
12381
+ }, z.core.$strict>>;
12382
+ readonly updateCompactionSettings: HostApiContract<"PUT", z.ZodObject<{}, z.core.$strict>, z.ZodObject<{
12383
+ idleThresholdPercent: z.ZodDefault<z.ZodNumber>;
12384
+ newSessionModel: z.ZodDiscriminatedUnion<[z.ZodObject<{
12385
+ mode: z.ZodLiteral<"main">;
12386
+ }, z.core.$strict>, z.ZodObject<{
12387
+ mode: z.ZodLiteral<"custom">;
12388
+ model: z.ZodObject<{
12389
+ provider: z.ZodString;
12390
+ model: z.ZodString;
12391
+ reasoningEffort: z.ZodOptional<z.ZodString>;
12392
+ }, z.core.$strict>;
12393
+ }, z.core.$strict>], "mode">;
12394
+ timeoutSeconds: z.ZodNumber;
12395
+ }, z.core.$strict>, z.ZodObject<{
12396
+ idleThresholdPercent: z.ZodDefault<z.ZodNumber>;
12397
+ newSessionModel: z.ZodDiscriminatedUnion<[z.ZodObject<{
12398
+ mode: z.ZodLiteral<"main">;
12399
+ }, z.core.$strict>, z.ZodObject<{
12400
+ mode: z.ZodLiteral<"custom">;
12401
+ model: z.ZodObject<{
12402
+ provider: z.ZodString;
12403
+ model: z.ZodString;
12404
+ reasoningEffort: z.ZodOptional<z.ZodString>;
12405
+ }, z.core.$strict>;
12406
+ }, z.core.$strict>], "mode">;
12407
+ timeoutSeconds: z.ZodNumber;
12408
+ }, z.core.$strict>, z.ZodObject<{
12409
+ error: z.ZodObject<{
12410
+ code: z.ZodString;
12411
+ message: z.ZodString;
12412
+ }, z.core.$strict>;
12413
+ }, z.core.$strict>>;
12414
+ readonly getModelFallbackSettings: HostApiContract<"GET", z.ZodObject<{}, z.core.$strict>, z.ZodUndefined, z.ZodObject<{
12415
+ unavailableCooldownMinutes: z.ZodNumber;
12416
+ quotaCooldownMinutes: z.ZodNumber;
12417
+ }, z.core.$strict>, z.ZodObject<{
12418
+ error: z.ZodObject<{
12419
+ code: z.ZodString;
12420
+ message: z.ZodString;
12421
+ }, z.core.$strict>;
12422
+ }, z.core.$strict>>;
12423
+ readonly updateModelFallbackSettings: HostApiContract<"PUT", z.ZodObject<{}, z.core.$strict>, z.ZodObject<{
12424
+ unavailableCooldownMinutes: z.ZodNumber;
12425
+ quotaCooldownMinutes: z.ZodNumber;
12426
+ }, z.core.$strict>, z.ZodObject<{
12427
+ unavailableCooldownMinutes: z.ZodNumber;
12428
+ quotaCooldownMinutes: z.ZodNumber;
12429
+ }, z.core.$strict>, z.ZodObject<{
12430
+ error: z.ZodObject<{
12431
+ code: z.ZodString;
12432
+ message: z.ZodString;
12433
+ }, z.core.$strict>;
12434
+ }, z.core.$strict>>;
11361
12435
  readonly getUpgradeBackupSettings: HostApiContract<"GET", z.ZodObject<{}, z.core.$strict>, z.ZodUndefined, z.ZodObject<{
11362
12436
  mode: z.ZodEnum<{
11363
12437
  data: "data";
@@ -11710,22 +12784,61 @@ export declare const HostApiContracts: {
11710
12784
  message: z.ZodString;
11711
12785
  }, z.core.$strict>;
11712
12786
  }, z.core.$strict>>;
11713
- readonly getCommandAccounts: HostApiContract<"GET", z.ZodObject<{}, z.core.$strict>, z.ZodUndefined, z.ZodObject<{
11714
- accounts: z.ZodArray<z.ZodObject<{
11715
- id: z.ZodString;
11716
- service: z.ZodEnum<{
12787
+ readonly getLinkedAccounts: HostApiContract<"GET", z.ZodObject<{}, z.core.$strict>, z.ZodUndefined, z.ZodObject<{
12788
+ platforms: z.ZodArray<z.ZodObject<{
12789
+ id: z.ZodEnum<{
11717
12790
  github: "github";
11718
12791
  }>;
11719
- login: z.ZodString;
11720
- source: z.ZodEnum<{
12792
+ name: z.ZodString;
12793
+ addMethods: z.ZodArray<z.ZodEnum<{
11721
12794
  token: "token";
11722
12795
  "gh-login": "gh-login";
11723
- }>;
11724
- scopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
11725
- createdAt: z.ZodNumber;
11726
- usedBy: z.ZodArray<z.core.$ZodBranded<z.ZodString, "AgentId", "out">>;
12796
+ }>>;
12797
+ tool: z.ZodOptional<z.ZodObject<{
12798
+ id: z.ZodEnum<{
12799
+ "github-cli": "github-cli";
12800
+ }>;
12801
+ name: z.ZodString;
12802
+ availability: z.ZodObject<{
12803
+ available: z.ZodBoolean;
12804
+ source: z.ZodOptional<z.ZodEnum<{
12805
+ host: "host";
12806
+ system: "system";
12807
+ downloaded: "downloaded";
12808
+ }>>;
12809
+ version: z.ZodOptional<z.ZodString>;
12810
+ download: z.ZodOptional<z.ZodObject<{
12811
+ version: z.ZodString;
12812
+ state: z.ZodEnum<{
12813
+ failed: "failed";
12814
+ idle: "idle";
12815
+ downloading: "downloading";
12816
+ }>;
12817
+ receivedBytes: z.ZodOptional<z.ZodNumber>;
12818
+ totalBytes: z.ZodOptional<z.ZodNumber>;
12819
+ error: z.ZodOptional<z.ZodString>;
12820
+ }, z.core.$strict>>;
12821
+ }, z.core.$strict>;
12822
+ }, z.core.$strict>>;
12823
+ accounts: z.ZodArray<z.ZodObject<{
12824
+ id: z.core.$ZodBranded<z.ZodString, "LinkedAccountId", "out">;
12825
+ platform: z.ZodEnum<{
12826
+ github: "github";
12827
+ }>;
12828
+ login: z.ZodString;
12829
+ scopes: z.ZodNullable<z.ZodArray<z.ZodString>>;
12830
+ source: z.ZodEnum<{
12831
+ token: "token";
12832
+ "gh-login": "gh-login";
12833
+ }>;
12834
+ available: z.ZodBoolean;
12835
+ grantedAgentIds: z.ZodArray<z.core.$ZodBranded<z.ZodString, "AgentId", "out">>;
12836
+ createdAt: z.ZodNumber;
12837
+ updatedAt: z.ZodNumber;
12838
+ lastUsedAt: z.ZodNullable<z.ZodNumber>;
12839
+ }, z.core.$strict>>;
11727
12840
  }, z.core.$strict>>;
11728
- localLogins: z.ZodArray<z.ZodObject<{
12841
+ localGithubLogins: z.ZodArray<z.ZodObject<{
11729
12842
  login: z.ZodString;
11730
12843
  active: z.ZodBoolean;
11731
12844
  }, z.core.$strict>>;
@@ -11735,36 +12848,670 @@ export declare const HostApiContracts: {
11735
12848
  message: z.ZodString;
11736
12849
  }, z.core.$strict>;
11737
12850
  }, z.core.$strict>>;
11738
- readonly addCommandAccount: HostApiContract<"POST", z.ZodObject<{}, z.core.$strict>, z.ZodDiscriminatedUnion<[z.ZodObject<{
11739
- source: z.ZodLiteral<"token">;
11740
- service: z.ZodEnum<{
12851
+ readonly addLinkedAccount: HostApiContract<"POST", z.ZodObject<{}, z.core.$strict>, z.ZodDiscriminatedUnion<[z.ZodObject<{
12852
+ method: z.ZodLiteral<"token">;
12853
+ token: z.ZodString;
12854
+ platform: z.ZodEnum<{
11741
12855
  github: "github";
11742
12856
  }>;
11743
- token: z.ZodString;
11744
12857
  }, z.core.$strict>, z.ZodObject<{
11745
- source: z.ZodLiteral<"gh-login">;
11746
- service: z.ZodEnum<{
12858
+ method: z.ZodLiteral<"gh-login">;
12859
+ login: z.ZodString;
12860
+ platform: z.ZodEnum<{
11747
12861
  github: "github";
11748
12862
  }>;
11749
- login: z.ZodString;
11750
- }, z.core.$strict>], "source">, z.ZodObject<{
11751
- accounts: z.ZodArray<z.ZodObject<{
12863
+ }, z.core.$strict>], "method">, z.ZodObject<{
12864
+ platforms: z.ZodArray<z.ZodObject<{
12865
+ id: z.ZodEnum<{
12866
+ github: "github";
12867
+ }>;
12868
+ name: z.ZodString;
12869
+ addMethods: z.ZodArray<z.ZodEnum<{
12870
+ token: "token";
12871
+ "gh-login": "gh-login";
12872
+ }>>;
12873
+ tool: z.ZodOptional<z.ZodObject<{
12874
+ id: z.ZodEnum<{
12875
+ "github-cli": "github-cli";
12876
+ }>;
12877
+ name: z.ZodString;
12878
+ availability: z.ZodObject<{
12879
+ available: z.ZodBoolean;
12880
+ source: z.ZodOptional<z.ZodEnum<{
12881
+ host: "host";
12882
+ system: "system";
12883
+ downloaded: "downloaded";
12884
+ }>>;
12885
+ version: z.ZodOptional<z.ZodString>;
12886
+ download: z.ZodOptional<z.ZodObject<{
12887
+ version: z.ZodString;
12888
+ state: z.ZodEnum<{
12889
+ failed: "failed";
12890
+ idle: "idle";
12891
+ downloading: "downloading";
12892
+ }>;
12893
+ receivedBytes: z.ZodOptional<z.ZodNumber>;
12894
+ totalBytes: z.ZodOptional<z.ZodNumber>;
12895
+ error: z.ZodOptional<z.ZodString>;
12896
+ }, z.core.$strict>>;
12897
+ }, z.core.$strict>;
12898
+ }, z.core.$strict>>;
12899
+ accounts: z.ZodArray<z.ZodObject<{
12900
+ id: z.core.$ZodBranded<z.ZodString, "LinkedAccountId", "out">;
12901
+ platform: z.ZodEnum<{
12902
+ github: "github";
12903
+ }>;
12904
+ login: z.ZodString;
12905
+ scopes: z.ZodNullable<z.ZodArray<z.ZodString>>;
12906
+ source: z.ZodEnum<{
12907
+ token: "token";
12908
+ "gh-login": "gh-login";
12909
+ }>;
12910
+ available: z.ZodBoolean;
12911
+ grantedAgentIds: z.ZodArray<z.core.$ZodBranded<z.ZodString, "AgentId", "out">>;
12912
+ createdAt: z.ZodNumber;
12913
+ updatedAt: z.ZodNumber;
12914
+ lastUsedAt: z.ZodNullable<z.ZodNumber>;
12915
+ }, z.core.$strict>>;
12916
+ }, z.core.$strict>>;
12917
+ localGithubLogins: z.ZodArray<z.ZodObject<{
12918
+ login: z.ZodString;
12919
+ active: z.ZodBoolean;
12920
+ }, z.core.$strict>>;
12921
+ }, z.core.$strict>, z.ZodObject<{
12922
+ error: z.ZodObject<{
12923
+ code: z.ZodString;
12924
+ message: z.ZodString;
12925
+ }, z.core.$strict>;
12926
+ }, z.core.$strict>>;
12927
+ readonly replaceLinkedAccountToken: HostApiContract<"PUT", z.ZodObject<{
12928
+ accountId: z.core.$ZodBranded<z.ZodString, "LinkedAccountId", "out">;
12929
+ }, z.core.$strict>, z.ZodDiscriminatedUnion<[z.ZodObject<{
12930
+ method: z.ZodLiteral<"token">;
12931
+ token: z.ZodString;
12932
+ }, z.core.$strict>, z.ZodObject<{
12933
+ method: z.ZodLiteral<"gh-login">;
12934
+ login: z.ZodString;
12935
+ }, z.core.$strict>], "method">, z.ZodObject<{
12936
+ platforms: z.ZodArray<z.ZodObject<{
12937
+ id: z.ZodEnum<{
12938
+ github: "github";
12939
+ }>;
12940
+ name: z.ZodString;
12941
+ addMethods: z.ZodArray<z.ZodEnum<{
12942
+ token: "token";
12943
+ "gh-login": "gh-login";
12944
+ }>>;
12945
+ tool: z.ZodOptional<z.ZodObject<{
12946
+ id: z.ZodEnum<{
12947
+ "github-cli": "github-cli";
12948
+ }>;
12949
+ name: z.ZodString;
12950
+ availability: z.ZodObject<{
12951
+ available: z.ZodBoolean;
12952
+ source: z.ZodOptional<z.ZodEnum<{
12953
+ host: "host";
12954
+ system: "system";
12955
+ downloaded: "downloaded";
12956
+ }>>;
12957
+ version: z.ZodOptional<z.ZodString>;
12958
+ download: z.ZodOptional<z.ZodObject<{
12959
+ version: z.ZodString;
12960
+ state: z.ZodEnum<{
12961
+ failed: "failed";
12962
+ idle: "idle";
12963
+ downloading: "downloading";
12964
+ }>;
12965
+ receivedBytes: z.ZodOptional<z.ZodNumber>;
12966
+ totalBytes: z.ZodOptional<z.ZodNumber>;
12967
+ error: z.ZodOptional<z.ZodString>;
12968
+ }, z.core.$strict>>;
12969
+ }, z.core.$strict>;
12970
+ }, z.core.$strict>>;
12971
+ accounts: z.ZodArray<z.ZodObject<{
12972
+ id: z.core.$ZodBranded<z.ZodString, "LinkedAccountId", "out">;
12973
+ platform: z.ZodEnum<{
12974
+ github: "github";
12975
+ }>;
12976
+ login: z.ZodString;
12977
+ scopes: z.ZodNullable<z.ZodArray<z.ZodString>>;
12978
+ source: z.ZodEnum<{
12979
+ token: "token";
12980
+ "gh-login": "gh-login";
12981
+ }>;
12982
+ available: z.ZodBoolean;
12983
+ grantedAgentIds: z.ZodArray<z.core.$ZodBranded<z.ZodString, "AgentId", "out">>;
12984
+ createdAt: z.ZodNumber;
12985
+ updatedAt: z.ZodNumber;
12986
+ lastUsedAt: z.ZodNullable<z.ZodNumber>;
12987
+ }, z.core.$strict>>;
12988
+ }, z.core.$strict>>;
12989
+ localGithubLogins: z.ZodArray<z.ZodObject<{
12990
+ login: z.ZodString;
12991
+ active: z.ZodBoolean;
12992
+ }, z.core.$strict>>;
12993
+ }, z.core.$strict>, z.ZodObject<{
12994
+ error: z.ZodObject<{
12995
+ code: z.ZodString;
12996
+ message: z.ZodString;
12997
+ }, z.core.$strict>;
12998
+ }, z.core.$strict>>;
12999
+ readonly removeLinkedAccount: HostApiContract<"POST", z.ZodObject<{
13000
+ accountId: z.core.$ZodBranded<z.ZodString, "LinkedAccountId", "out">;
13001
+ }, z.core.$strict>, z.ZodObject<{
13002
+ confirm: z.ZodDefault<z.ZodBoolean>;
13003
+ }, z.core.$strict>, z.ZodDiscriminatedUnion<[z.ZodObject<{
13004
+ removed: z.ZodLiteral<true>;
13005
+ view: z.ZodObject<{
13006
+ platforms: z.ZodArray<z.ZodObject<{
13007
+ id: z.ZodEnum<{
13008
+ github: "github";
13009
+ }>;
13010
+ name: z.ZodString;
13011
+ addMethods: z.ZodArray<z.ZodEnum<{
13012
+ token: "token";
13013
+ "gh-login": "gh-login";
13014
+ }>>;
13015
+ tool: z.ZodOptional<z.ZodObject<{
13016
+ id: z.ZodEnum<{
13017
+ "github-cli": "github-cli";
13018
+ }>;
13019
+ name: z.ZodString;
13020
+ availability: z.ZodObject<{
13021
+ available: z.ZodBoolean;
13022
+ source: z.ZodOptional<z.ZodEnum<{
13023
+ host: "host";
13024
+ system: "system";
13025
+ downloaded: "downloaded";
13026
+ }>>;
13027
+ version: z.ZodOptional<z.ZodString>;
13028
+ download: z.ZodOptional<z.ZodObject<{
13029
+ version: z.ZodString;
13030
+ state: z.ZodEnum<{
13031
+ failed: "failed";
13032
+ idle: "idle";
13033
+ downloading: "downloading";
13034
+ }>;
13035
+ receivedBytes: z.ZodOptional<z.ZodNumber>;
13036
+ totalBytes: z.ZodOptional<z.ZodNumber>;
13037
+ error: z.ZodOptional<z.ZodString>;
13038
+ }, z.core.$strict>>;
13039
+ }, z.core.$strict>;
13040
+ }, z.core.$strict>>;
13041
+ accounts: z.ZodArray<z.ZodObject<{
13042
+ id: z.core.$ZodBranded<z.ZodString, "LinkedAccountId", "out">;
13043
+ platform: z.ZodEnum<{
13044
+ github: "github";
13045
+ }>;
13046
+ login: z.ZodString;
13047
+ scopes: z.ZodNullable<z.ZodArray<z.ZodString>>;
13048
+ source: z.ZodEnum<{
13049
+ token: "token";
13050
+ "gh-login": "gh-login";
13051
+ }>;
13052
+ available: z.ZodBoolean;
13053
+ grantedAgentIds: z.ZodArray<z.core.$ZodBranded<z.ZodString, "AgentId", "out">>;
13054
+ createdAt: z.ZodNumber;
13055
+ updatedAt: z.ZodNumber;
13056
+ lastUsedAt: z.ZodNullable<z.ZodNumber>;
13057
+ }, z.core.$strict>>;
13058
+ }, z.core.$strict>>;
13059
+ localGithubLogins: z.ZodArray<z.ZodObject<{
13060
+ login: z.ZodString;
13061
+ active: z.ZodBoolean;
13062
+ }, z.core.$strict>>;
13063
+ }, z.core.$strict>;
13064
+ }, z.core.$strict>, z.ZodObject<{
13065
+ removed: z.ZodLiteral<false>;
13066
+ grantedAgentIds: z.ZodArray<z.core.$ZodBranded<z.ZodString, "AgentId", "out">>;
13067
+ }, z.core.$strict>], "removed">, z.ZodObject<{
13068
+ error: z.ZodObject<{
13069
+ code: z.ZodString;
13070
+ message: z.ZodString;
13071
+ }, z.core.$strict>;
13072
+ }, z.core.$strict>>;
13073
+ readonly getLinkedAccountUses: HostApiContract<"GET", z.ZodObject<{
13074
+ accountId: z.core.$ZodBranded<z.ZodString, "LinkedAccountId", "out">;
13075
+ }, z.core.$strict>, z.ZodUndefined, z.ZodObject<{
13076
+ uses: z.ZodArray<z.ZodObject<{
13077
+ at: z.ZodNumber;
13078
+ agentId: z.ZodNullable<z.core.$ZodBranded<z.ZodString, "AgentId", "out">>;
13079
+ channelId: z.ZodNullable<z.core.$ZodBranded<z.ZodString, "ChannelId", "out">>;
13080
+ consumerKind: z.ZodEnum<{
13081
+ command: "command";
13082
+ }>;
13083
+ consumerId: z.ZodString;
13084
+ }, z.core.$strict>>;
13085
+ }, z.core.$strict>, z.ZodObject<{
13086
+ error: z.ZodObject<{
13087
+ code: z.ZodString;
13088
+ message: z.ZodString;
13089
+ }, z.core.$strict>;
13090
+ }, z.core.$strict>>;
13091
+ readonly getCredentials: HostApiContract<"GET", z.ZodObject<{}, z.core.$strict>, z.ZodUndefined, z.ZodObject<{
13092
+ credentials: z.ZodArray<z.ZodObject<{
13093
+ id: z.core.$ZodBranded<z.ZodString, "CredentialId", "out">;
13094
+ name: z.ZodString;
13095
+ description: z.ZodString;
13096
+ usage: z.ZodEnum<{
13097
+ request: "request";
13098
+ program: "program";
13099
+ }>;
13100
+ domains: z.ZodArray<z.ZodString>;
13101
+ agentScope: z.ZodUnion<readonly [z.ZodObject<{
13102
+ all: z.ZodLiteral<true>;
13103
+ }, z.core.$strict>, z.ZodObject<{
13104
+ agentIds: z.ZodArray<z.core.$ZodBranded<z.ZodString, "AgentId", "out">>;
13105
+ }, z.core.$strict>]>;
13106
+ autoUse: z.ZodBoolean;
13107
+ envName: z.ZodNullable<z.ZodString>;
13108
+ approvedAgentIds: z.ZodArray<z.core.$ZodBranded<z.ZodString, "AgentId", "out">>;
13109
+ redactable: z.ZodBoolean;
13110
+ available: z.ZodBoolean;
13111
+ usedBy: z.ZodObject<{
13112
+ extensions: z.ZodArray<z.ZodObject<{
13113
+ extensionId: z.core.$ZodBranded<z.ZodString, "ExtensionId", "out">;
13114
+ name: z.ZodString;
13115
+ agentIds: z.ZodArray<z.core.$ZodBranded<z.ZodString, "AgentId", "out">>;
13116
+ host: z.ZodBoolean;
13117
+ }, z.core.$strict>>;
13118
+ commandAgents: z.ZodArray<z.core.$ZodBranded<z.ZodString, "AgentId", "out">>;
13119
+ }, z.core.$strict>;
13120
+ createdAt: z.ZodNumber;
13121
+ updatedAt: z.ZodNumber;
13122
+ lastUsedAt: z.ZodNullable<z.ZodNumber>;
13123
+ }, z.core.$strict>>;
13124
+ modelProviders: z.ZodArray<z.ZodObject<{
13125
+ provider: z.ZodString;
13126
+ name: z.ZodString;
13127
+ open: z.ZodBoolean;
13128
+ }, z.core.$strict>>;
13129
+ requests: z.ZodArray<z.ZodObject<{
13130
+ id: z.ZodString;
13131
+ name: z.ZodString;
13132
+ purpose: z.ZodString;
13133
+ domains: z.ZodArray<z.ZodString>;
13134
+ usage: z.ZodEnum<{
13135
+ request: "request";
13136
+ program: "program";
13137
+ }>;
13138
+ agentId: z.core.$ZodBranded<z.ZodString, "AgentId", "out">;
13139
+ channelId: z.ZodNullable<z.core.$ZodBranded<z.ZodString, "ChannelId", "out">>;
13140
+ createdAt: z.ZodNumber;
13141
+ route: z.ZodString;
13142
+ }, z.core.$strict>>;
13143
+ }, z.core.$strict>, z.ZodObject<{
13144
+ error: z.ZodObject<{
13145
+ code: z.ZodString;
13146
+ message: z.ZodString;
13147
+ }, z.core.$strict>;
13148
+ }, z.core.$strict>>;
13149
+ readonly createCredential: HostApiContract<"POST", z.ZodObject<{}, z.core.$strict>, z.ZodObject<{
13150
+ name: z.ZodString;
13151
+ description: z.ZodDefault<z.ZodString>;
13152
+ agentScope: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
13153
+ all: z.ZodLiteral<true>;
13154
+ }, z.core.$strict>, z.ZodObject<{
13155
+ agentIds: z.ZodArray<z.core.$ZodBranded<z.ZodString, "AgentId", "out">>;
13156
+ }, z.core.$strict>]>>;
13157
+ autoUse: z.ZodDefault<z.ZodBoolean>;
13158
+ usage: z.ZodDefault<z.ZodEnum<{
13159
+ request: "request";
13160
+ program: "program";
13161
+ }>>;
13162
+ domains: z.ZodDefault<z.ZodArray<z.ZodString>>;
13163
+ envName: z.ZodOptional<z.ZodString>;
13164
+ value: z.ZodString;
13165
+ requestId: z.ZodOptional<z.ZodString>;
13166
+ }, z.core.$strict>, z.ZodObject<{
13167
+ credentials: z.ZodArray<z.ZodObject<{
13168
+ id: z.core.$ZodBranded<z.ZodString, "CredentialId", "out">;
13169
+ name: z.ZodString;
13170
+ description: z.ZodString;
13171
+ usage: z.ZodEnum<{
13172
+ request: "request";
13173
+ program: "program";
13174
+ }>;
13175
+ domains: z.ZodArray<z.ZodString>;
13176
+ agentScope: z.ZodUnion<readonly [z.ZodObject<{
13177
+ all: z.ZodLiteral<true>;
13178
+ }, z.core.$strict>, z.ZodObject<{
13179
+ agentIds: z.ZodArray<z.core.$ZodBranded<z.ZodString, "AgentId", "out">>;
13180
+ }, z.core.$strict>]>;
13181
+ autoUse: z.ZodBoolean;
13182
+ envName: z.ZodNullable<z.ZodString>;
13183
+ approvedAgentIds: z.ZodArray<z.core.$ZodBranded<z.ZodString, "AgentId", "out">>;
13184
+ redactable: z.ZodBoolean;
13185
+ available: z.ZodBoolean;
13186
+ usedBy: z.ZodObject<{
13187
+ extensions: z.ZodArray<z.ZodObject<{
13188
+ extensionId: z.core.$ZodBranded<z.ZodString, "ExtensionId", "out">;
13189
+ name: z.ZodString;
13190
+ agentIds: z.ZodArray<z.core.$ZodBranded<z.ZodString, "AgentId", "out">>;
13191
+ host: z.ZodBoolean;
13192
+ }, z.core.$strict>>;
13193
+ commandAgents: z.ZodArray<z.core.$ZodBranded<z.ZodString, "AgentId", "out">>;
13194
+ }, z.core.$strict>;
13195
+ createdAt: z.ZodNumber;
13196
+ updatedAt: z.ZodNumber;
13197
+ lastUsedAt: z.ZodNullable<z.ZodNumber>;
13198
+ }, z.core.$strict>>;
13199
+ modelProviders: z.ZodArray<z.ZodObject<{
13200
+ provider: z.ZodString;
13201
+ name: z.ZodString;
13202
+ open: z.ZodBoolean;
13203
+ }, z.core.$strict>>;
13204
+ requests: z.ZodArray<z.ZodObject<{
13205
+ id: z.ZodString;
13206
+ name: z.ZodString;
13207
+ purpose: z.ZodString;
13208
+ domains: z.ZodArray<z.ZodString>;
13209
+ usage: z.ZodEnum<{
13210
+ request: "request";
13211
+ program: "program";
13212
+ }>;
13213
+ agentId: z.core.$ZodBranded<z.ZodString, "AgentId", "out">;
13214
+ channelId: z.ZodNullable<z.core.$ZodBranded<z.ZodString, "ChannelId", "out">>;
13215
+ createdAt: z.ZodNumber;
13216
+ route: z.ZodString;
13217
+ }, z.core.$strict>>;
13218
+ }, z.core.$strict>, z.ZodObject<{
13219
+ error: z.ZodObject<{
13220
+ code: z.ZodString;
13221
+ message: z.ZodString;
13222
+ }, z.core.$strict>;
13223
+ }, z.core.$strict>>;
13224
+ readonly updateCredential: HostApiContract<"PATCH", z.ZodObject<{
13225
+ credentialId: z.core.$ZodBranded<z.ZodString, "CredentialId", "out">;
13226
+ }, z.core.$strict>, z.ZodObject<{
13227
+ name: z.ZodOptional<z.ZodString>;
13228
+ description: z.ZodOptional<z.ZodString>;
13229
+ usage: z.ZodOptional<z.ZodEnum<{
13230
+ request: "request";
13231
+ program: "program";
13232
+ }>>;
13233
+ domains: z.ZodOptional<z.ZodArray<z.ZodString>>;
13234
+ agentScope: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
13235
+ all: z.ZodLiteral<true>;
13236
+ }, z.core.$strict>, z.ZodObject<{
13237
+ agentIds: z.ZodArray<z.core.$ZodBranded<z.ZodString, "AgentId", "out">>;
13238
+ }, z.core.$strict>]>>;
13239
+ autoUse: z.ZodOptional<z.ZodBoolean>;
13240
+ envName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13241
+ approvedAgentIds: z.ZodOptional<z.ZodArray<z.core.$ZodBranded<z.ZodString, "AgentId", "out">>>;
13242
+ }, z.core.$strict>, z.ZodObject<{
13243
+ credentials: z.ZodArray<z.ZodObject<{
13244
+ id: z.core.$ZodBranded<z.ZodString, "CredentialId", "out">;
13245
+ name: z.ZodString;
13246
+ description: z.ZodString;
13247
+ usage: z.ZodEnum<{
13248
+ request: "request";
13249
+ program: "program";
13250
+ }>;
13251
+ domains: z.ZodArray<z.ZodString>;
13252
+ agentScope: z.ZodUnion<readonly [z.ZodObject<{
13253
+ all: z.ZodLiteral<true>;
13254
+ }, z.core.$strict>, z.ZodObject<{
13255
+ agentIds: z.ZodArray<z.core.$ZodBranded<z.ZodString, "AgentId", "out">>;
13256
+ }, z.core.$strict>]>;
13257
+ autoUse: z.ZodBoolean;
13258
+ envName: z.ZodNullable<z.ZodString>;
13259
+ approvedAgentIds: z.ZodArray<z.core.$ZodBranded<z.ZodString, "AgentId", "out">>;
13260
+ redactable: z.ZodBoolean;
13261
+ available: z.ZodBoolean;
13262
+ usedBy: z.ZodObject<{
13263
+ extensions: z.ZodArray<z.ZodObject<{
13264
+ extensionId: z.core.$ZodBranded<z.ZodString, "ExtensionId", "out">;
13265
+ name: z.ZodString;
13266
+ agentIds: z.ZodArray<z.core.$ZodBranded<z.ZodString, "AgentId", "out">>;
13267
+ host: z.ZodBoolean;
13268
+ }, z.core.$strict>>;
13269
+ commandAgents: z.ZodArray<z.core.$ZodBranded<z.ZodString, "AgentId", "out">>;
13270
+ }, z.core.$strict>;
13271
+ createdAt: z.ZodNumber;
13272
+ updatedAt: z.ZodNumber;
13273
+ lastUsedAt: z.ZodNullable<z.ZodNumber>;
13274
+ }, z.core.$strict>>;
13275
+ modelProviders: z.ZodArray<z.ZodObject<{
13276
+ provider: z.ZodString;
13277
+ name: z.ZodString;
13278
+ open: z.ZodBoolean;
13279
+ }, z.core.$strict>>;
13280
+ requests: z.ZodArray<z.ZodObject<{
13281
+ id: z.ZodString;
13282
+ name: z.ZodString;
13283
+ purpose: z.ZodString;
13284
+ domains: z.ZodArray<z.ZodString>;
13285
+ usage: z.ZodEnum<{
13286
+ request: "request";
13287
+ program: "program";
13288
+ }>;
13289
+ agentId: z.core.$ZodBranded<z.ZodString, "AgentId", "out">;
13290
+ channelId: z.ZodNullable<z.core.$ZodBranded<z.ZodString, "ChannelId", "out">>;
13291
+ createdAt: z.ZodNumber;
13292
+ route: z.ZodString;
13293
+ }, z.core.$strict>>;
13294
+ }, z.core.$strict>, z.ZodObject<{
13295
+ error: z.ZodObject<{
13296
+ code: z.ZodString;
13297
+ message: z.ZodString;
13298
+ }, z.core.$strict>;
13299
+ }, z.core.$strict>>;
13300
+ readonly replaceCredentialValue: HostApiContract<"PUT", z.ZodObject<{
13301
+ credentialId: z.core.$ZodBranded<z.ZodString, "CredentialId", "out">;
13302
+ }, z.core.$strict>, z.ZodObject<{
13303
+ value: z.ZodString;
13304
+ }, z.core.$strict>, z.ZodObject<{
13305
+ credentials: z.ZodArray<z.ZodObject<{
13306
+ id: z.core.$ZodBranded<z.ZodString, "CredentialId", "out">;
13307
+ name: z.ZodString;
13308
+ description: z.ZodString;
13309
+ usage: z.ZodEnum<{
13310
+ request: "request";
13311
+ program: "program";
13312
+ }>;
13313
+ domains: z.ZodArray<z.ZodString>;
13314
+ agentScope: z.ZodUnion<readonly [z.ZodObject<{
13315
+ all: z.ZodLiteral<true>;
13316
+ }, z.core.$strict>, z.ZodObject<{
13317
+ agentIds: z.ZodArray<z.core.$ZodBranded<z.ZodString, "AgentId", "out">>;
13318
+ }, z.core.$strict>]>;
13319
+ autoUse: z.ZodBoolean;
13320
+ envName: z.ZodNullable<z.ZodString>;
13321
+ approvedAgentIds: z.ZodArray<z.core.$ZodBranded<z.ZodString, "AgentId", "out">>;
13322
+ redactable: z.ZodBoolean;
13323
+ available: z.ZodBoolean;
13324
+ usedBy: z.ZodObject<{
13325
+ extensions: z.ZodArray<z.ZodObject<{
13326
+ extensionId: z.core.$ZodBranded<z.ZodString, "ExtensionId", "out">;
13327
+ name: z.ZodString;
13328
+ agentIds: z.ZodArray<z.core.$ZodBranded<z.ZodString, "AgentId", "out">>;
13329
+ host: z.ZodBoolean;
13330
+ }, z.core.$strict>>;
13331
+ commandAgents: z.ZodArray<z.core.$ZodBranded<z.ZodString, "AgentId", "out">>;
13332
+ }, z.core.$strict>;
13333
+ createdAt: z.ZodNumber;
13334
+ updatedAt: z.ZodNumber;
13335
+ lastUsedAt: z.ZodNullable<z.ZodNumber>;
13336
+ }, z.core.$strict>>;
13337
+ modelProviders: z.ZodArray<z.ZodObject<{
13338
+ provider: z.ZodString;
13339
+ name: z.ZodString;
13340
+ open: z.ZodBoolean;
13341
+ }, z.core.$strict>>;
13342
+ requests: z.ZodArray<z.ZodObject<{
13343
+ id: z.ZodString;
13344
+ name: z.ZodString;
13345
+ purpose: z.ZodString;
13346
+ domains: z.ZodArray<z.ZodString>;
13347
+ usage: z.ZodEnum<{
13348
+ request: "request";
13349
+ program: "program";
13350
+ }>;
13351
+ agentId: z.core.$ZodBranded<z.ZodString, "AgentId", "out">;
13352
+ channelId: z.ZodNullable<z.core.$ZodBranded<z.ZodString, "ChannelId", "out">>;
13353
+ createdAt: z.ZodNumber;
13354
+ route: z.ZodString;
13355
+ }, z.core.$strict>>;
13356
+ }, z.core.$strict>, z.ZodObject<{
13357
+ error: z.ZodObject<{
13358
+ code: z.ZodString;
13359
+ message: z.ZodString;
13360
+ }, z.core.$strict>;
13361
+ }, z.core.$strict>>;
13362
+ readonly removeCredential: HostApiContract<"POST", z.ZodObject<{
13363
+ credentialId: z.core.$ZodBranded<z.ZodString, "CredentialId", "out">;
13364
+ }, z.core.$strict>, z.ZodObject<{
13365
+ confirm: z.ZodDefault<z.ZodBoolean>;
13366
+ }, z.core.$strict>, z.ZodDiscriminatedUnion<[z.ZodObject<{
13367
+ removed: z.ZodLiteral<true>;
13368
+ view: z.ZodObject<{
13369
+ credentials: z.ZodArray<z.ZodObject<{
13370
+ id: z.core.$ZodBranded<z.ZodString, "CredentialId", "out">;
13371
+ name: z.ZodString;
13372
+ description: z.ZodString;
13373
+ usage: z.ZodEnum<{
13374
+ request: "request";
13375
+ program: "program";
13376
+ }>;
13377
+ domains: z.ZodArray<z.ZodString>;
13378
+ agentScope: z.ZodUnion<readonly [z.ZodObject<{
13379
+ all: z.ZodLiteral<true>;
13380
+ }, z.core.$strict>, z.ZodObject<{
13381
+ agentIds: z.ZodArray<z.core.$ZodBranded<z.ZodString, "AgentId", "out">>;
13382
+ }, z.core.$strict>]>;
13383
+ autoUse: z.ZodBoolean;
13384
+ envName: z.ZodNullable<z.ZodString>;
13385
+ approvedAgentIds: z.ZodArray<z.core.$ZodBranded<z.ZodString, "AgentId", "out">>;
13386
+ redactable: z.ZodBoolean;
13387
+ available: z.ZodBoolean;
13388
+ usedBy: z.ZodObject<{
13389
+ extensions: z.ZodArray<z.ZodObject<{
13390
+ extensionId: z.core.$ZodBranded<z.ZodString, "ExtensionId", "out">;
13391
+ name: z.ZodString;
13392
+ agentIds: z.ZodArray<z.core.$ZodBranded<z.ZodString, "AgentId", "out">>;
13393
+ host: z.ZodBoolean;
13394
+ }, z.core.$strict>>;
13395
+ commandAgents: z.ZodArray<z.core.$ZodBranded<z.ZodString, "AgentId", "out">>;
13396
+ }, z.core.$strict>;
13397
+ createdAt: z.ZodNumber;
13398
+ updatedAt: z.ZodNumber;
13399
+ lastUsedAt: z.ZodNullable<z.ZodNumber>;
13400
+ }, z.core.$strict>>;
13401
+ modelProviders: z.ZodArray<z.ZodObject<{
13402
+ provider: z.ZodString;
13403
+ name: z.ZodString;
13404
+ open: z.ZodBoolean;
13405
+ }, z.core.$strict>>;
13406
+ requests: z.ZodArray<z.ZodObject<{
13407
+ id: z.ZodString;
13408
+ name: z.ZodString;
13409
+ purpose: z.ZodString;
13410
+ domains: z.ZodArray<z.ZodString>;
13411
+ usage: z.ZodEnum<{
13412
+ request: "request";
13413
+ program: "program";
13414
+ }>;
13415
+ agentId: z.core.$ZodBranded<z.ZodString, "AgentId", "out">;
13416
+ channelId: z.ZodNullable<z.core.$ZodBranded<z.ZodString, "ChannelId", "out">>;
13417
+ createdAt: z.ZodNumber;
13418
+ route: z.ZodString;
13419
+ }, z.core.$strict>>;
13420
+ }, z.core.$strict>;
13421
+ }, z.core.$strict>, z.ZodObject<{
13422
+ removed: z.ZodLiteral<false>;
13423
+ usedBy: z.ZodObject<{
13424
+ extensions: z.ZodArray<z.ZodObject<{
13425
+ extensionId: z.core.$ZodBranded<z.ZodString, "ExtensionId", "out">;
13426
+ name: z.ZodString;
13427
+ agentIds: z.ZodArray<z.core.$ZodBranded<z.ZodString, "AgentId", "out">>;
13428
+ host: z.ZodBoolean;
13429
+ }, z.core.$strict>>;
13430
+ commandAgents: z.ZodArray<z.core.$ZodBranded<z.ZodString, "AgentId", "out">>;
13431
+ }, z.core.$strict>;
13432
+ }, z.core.$strict>], "removed">, z.ZodObject<{
13433
+ error: z.ZodObject<{
13434
+ code: z.ZodString;
13435
+ message: z.ZodString;
13436
+ }, z.core.$strict>;
13437
+ }, z.core.$strict>>;
13438
+ readonly getCredentialUses: HostApiContract<"GET", z.ZodObject<{
13439
+ credentialId: z.core.$ZodBranded<z.ZodString, "CredentialId", "out">;
13440
+ }, z.core.$strict>, z.ZodUndefined, z.ZodObject<{
13441
+ uses: z.ZodArray<z.ZodObject<{
13442
+ at: z.ZodNumber;
13443
+ agentId: z.ZodNullable<z.core.$ZodBranded<z.ZodString, "AgentId", "out">>;
13444
+ channelId: z.ZodNullable<z.core.$ZodBranded<z.ZodString, "ChannelId", "out">>;
13445
+ requesterMemberId: z.ZodNullable<z.ZodString>;
13446
+ consumerKind: z.ZodEnum<{
13447
+ extension: "extension";
13448
+ command: "command";
13449
+ model: "model";
13450
+ mcp: "mcp";
13451
+ }>;
13452
+ consumerId: z.ZodString;
13453
+ consumerName: z.ZodNullable<z.ZodString>;
13454
+ targetHost: z.ZodNullable<z.ZodString>;
13455
+ }, z.core.$strict>>;
13456
+ }, z.core.$strict>, z.ZodObject<{
13457
+ error: z.ZodObject<{
13458
+ code: z.ZodString;
13459
+ message: z.ZodString;
13460
+ }, z.core.$strict>;
13461
+ }, z.core.$strict>>;
13462
+ readonly dismissCredentialRequest: HostApiContract<"DELETE", z.ZodObject<{
13463
+ requestId: z.ZodString;
13464
+ }, z.core.$strict>, z.ZodUndefined, z.ZodObject<{
13465
+ credentials: z.ZodArray<z.ZodObject<{
13466
+ id: z.core.$ZodBranded<z.ZodString, "CredentialId", "out">;
13467
+ name: z.ZodString;
13468
+ description: z.ZodString;
13469
+ usage: z.ZodEnum<{
13470
+ request: "request";
13471
+ program: "program";
13472
+ }>;
13473
+ domains: z.ZodArray<z.ZodString>;
13474
+ agentScope: z.ZodUnion<readonly [z.ZodObject<{
13475
+ all: z.ZodLiteral<true>;
13476
+ }, z.core.$strict>, z.ZodObject<{
13477
+ agentIds: z.ZodArray<z.core.$ZodBranded<z.ZodString, "AgentId", "out">>;
13478
+ }, z.core.$strict>]>;
13479
+ autoUse: z.ZodBoolean;
13480
+ envName: z.ZodNullable<z.ZodString>;
13481
+ approvedAgentIds: z.ZodArray<z.core.$ZodBranded<z.ZodString, "AgentId", "out">>;
13482
+ redactable: z.ZodBoolean;
13483
+ available: z.ZodBoolean;
13484
+ usedBy: z.ZodObject<{
13485
+ extensions: z.ZodArray<z.ZodObject<{
13486
+ extensionId: z.core.$ZodBranded<z.ZodString, "ExtensionId", "out">;
13487
+ name: z.ZodString;
13488
+ agentIds: z.ZodArray<z.core.$ZodBranded<z.ZodString, "AgentId", "out">>;
13489
+ host: z.ZodBoolean;
13490
+ }, z.core.$strict>>;
13491
+ commandAgents: z.ZodArray<z.core.$ZodBranded<z.ZodString, "AgentId", "out">>;
13492
+ }, z.core.$strict>;
13493
+ createdAt: z.ZodNumber;
13494
+ updatedAt: z.ZodNumber;
13495
+ lastUsedAt: z.ZodNullable<z.ZodNumber>;
13496
+ }, z.core.$strict>>;
13497
+ modelProviders: z.ZodArray<z.ZodObject<{
13498
+ provider: z.ZodString;
13499
+ name: z.ZodString;
13500
+ open: z.ZodBoolean;
13501
+ }, z.core.$strict>>;
13502
+ requests: z.ZodArray<z.ZodObject<{
11752
13503
  id: z.ZodString;
11753
- service: z.ZodEnum<{
11754
- github: "github";
11755
- }>;
11756
- login: z.ZodString;
11757
- source: z.ZodEnum<{
11758
- token: "token";
11759
- "gh-login": "gh-login";
13504
+ name: z.ZodString;
13505
+ purpose: z.ZodString;
13506
+ domains: z.ZodArray<z.ZodString>;
13507
+ usage: z.ZodEnum<{
13508
+ request: "request";
13509
+ program: "program";
11760
13510
  }>;
11761
- scopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
13511
+ agentId: z.core.$ZodBranded<z.ZodString, "AgentId", "out">;
13512
+ channelId: z.ZodNullable<z.core.$ZodBranded<z.ZodString, "ChannelId", "out">>;
11762
13513
  createdAt: z.ZodNumber;
11763
- usedBy: z.ZodArray<z.core.$ZodBranded<z.ZodString, "AgentId", "out">>;
11764
- }, z.core.$strict>>;
11765
- localLogins: z.ZodArray<z.ZodObject<{
11766
- login: z.ZodString;
11767
- active: z.ZodBoolean;
13514
+ route: z.ZodString;
11768
13515
  }, z.core.$strict>>;
11769
13516
  }, z.core.$strict>, z.ZodObject<{
11770
13517
  error: z.ZodObject<{
@@ -11772,65 +13519,61 @@ export declare const HostApiContracts: {
11772
13519
  message: z.ZodString;
11773
13520
  }, z.core.$strict>;
11774
13521
  }, z.core.$strict>>;
11775
- readonly replaceCommandAccountToken: HostApiContract<"PUT", z.ZodObject<{
11776
- accountId: z.ZodString;
11777
- }, z.core.$strict>, z.ZodDiscriminatedUnion<[z.ZodObject<{
11778
- source: z.ZodLiteral<"token">;
11779
- service: z.ZodEnum<{
11780
- github: "github";
11781
- }>;
11782
- token: z.ZodString;
13522
+ readonly setModelProviderAccess: HostApiContract<"PUT", z.ZodObject<{
13523
+ provider: z.ZodString;
11783
13524
  }, z.core.$strict>, z.ZodObject<{
11784
- source: z.ZodLiteral<"gh-login">;
11785
- service: z.ZodEnum<{
11786
- github: "github";
11787
- }>;
11788
- login: z.ZodString;
11789
- }, z.core.$strict>], "source">, z.ZodObject<{
11790
- accounts: z.ZodArray<z.ZodObject<{
11791
- id: z.ZodString;
11792
- service: z.ZodEnum<{
11793
- github: "github";
11794
- }>;
11795
- login: z.ZodString;
11796
- source: z.ZodEnum<{
11797
- token: "token";
11798
- "gh-login": "gh-login";
13525
+ open: z.ZodBoolean;
13526
+ }, z.core.$strict>, z.ZodObject<{
13527
+ credentials: z.ZodArray<z.ZodObject<{
13528
+ id: z.core.$ZodBranded<z.ZodString, "CredentialId", "out">;
13529
+ name: z.ZodString;
13530
+ description: z.ZodString;
13531
+ usage: z.ZodEnum<{
13532
+ request: "request";
13533
+ program: "program";
11799
13534
  }>;
11800
- scopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
13535
+ domains: z.ZodArray<z.ZodString>;
13536
+ agentScope: z.ZodUnion<readonly [z.ZodObject<{
13537
+ all: z.ZodLiteral<true>;
13538
+ }, z.core.$strict>, z.ZodObject<{
13539
+ agentIds: z.ZodArray<z.core.$ZodBranded<z.ZodString, "AgentId", "out">>;
13540
+ }, z.core.$strict>]>;
13541
+ autoUse: z.ZodBoolean;
13542
+ envName: z.ZodNullable<z.ZodString>;
13543
+ approvedAgentIds: z.ZodArray<z.core.$ZodBranded<z.ZodString, "AgentId", "out">>;
13544
+ redactable: z.ZodBoolean;
13545
+ available: z.ZodBoolean;
13546
+ usedBy: z.ZodObject<{
13547
+ extensions: z.ZodArray<z.ZodObject<{
13548
+ extensionId: z.core.$ZodBranded<z.ZodString, "ExtensionId", "out">;
13549
+ name: z.ZodString;
13550
+ agentIds: z.ZodArray<z.core.$ZodBranded<z.ZodString, "AgentId", "out">>;
13551
+ host: z.ZodBoolean;
13552
+ }, z.core.$strict>>;
13553
+ commandAgents: z.ZodArray<z.core.$ZodBranded<z.ZodString, "AgentId", "out">>;
13554
+ }, z.core.$strict>;
11801
13555
  createdAt: z.ZodNumber;
11802
- usedBy: z.ZodArray<z.core.$ZodBranded<z.ZodString, "AgentId", "out">>;
13556
+ updatedAt: z.ZodNumber;
13557
+ lastUsedAt: z.ZodNullable<z.ZodNumber>;
11803
13558
  }, z.core.$strict>>;
11804
- localLogins: z.ZodArray<z.ZodObject<{
11805
- login: z.ZodString;
11806
- active: z.ZodBoolean;
13559
+ modelProviders: z.ZodArray<z.ZodObject<{
13560
+ provider: z.ZodString;
13561
+ name: z.ZodString;
13562
+ open: z.ZodBoolean;
11807
13563
  }, z.core.$strict>>;
11808
- }, z.core.$strict>, z.ZodObject<{
11809
- error: z.ZodObject<{
11810
- code: z.ZodString;
11811
- message: z.ZodString;
11812
- }, z.core.$strict>;
11813
- }, z.core.$strict>>;
11814
- readonly removeCommandAccount: HostApiContract<"DELETE", z.ZodObject<{
11815
- accountId: z.ZodString;
11816
- }, z.core.$strict>, z.ZodUndefined, z.ZodObject<{
11817
- accounts: z.ZodArray<z.ZodObject<{
13564
+ requests: z.ZodArray<z.ZodObject<{
11818
13565
  id: z.ZodString;
11819
- service: z.ZodEnum<{
11820
- github: "github";
11821
- }>;
11822
- login: z.ZodString;
11823
- source: z.ZodEnum<{
11824
- token: "token";
11825
- "gh-login": "gh-login";
13566
+ name: z.ZodString;
13567
+ purpose: z.ZodString;
13568
+ domains: z.ZodArray<z.ZodString>;
13569
+ usage: z.ZodEnum<{
13570
+ request: "request";
13571
+ program: "program";
11826
13572
  }>;
11827
- scopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
13573
+ agentId: z.core.$ZodBranded<z.ZodString, "AgentId", "out">;
13574
+ channelId: z.ZodNullable<z.core.$ZodBranded<z.ZodString, "ChannelId", "out">>;
11828
13575
  createdAt: z.ZodNumber;
11829
- usedBy: z.ZodArray<z.core.$ZodBranded<z.ZodString, "AgentId", "out">>;
11830
- }, z.core.$strict>>;
11831
- localLogins: z.ZodArray<z.ZodObject<{
11832
- login: z.ZodString;
11833
- active: z.ZodBoolean;
13576
+ route: z.ZodString;
11834
13577
  }, z.core.$strict>>;
11835
13578
  }, z.core.$strict>, z.ZodObject<{
11836
13579
  error: z.ZodObject<{
@@ -12103,6 +13846,7 @@ export declare const HostApiContracts: {
12103
13846
  tarball: "tarball";
12104
13847
  imported: "imported";
12105
13848
  }>>;
13849
+ official: z.ZodOptional<z.ZodBoolean>;
12106
13850
  installedAt: z.ZodOptional<z.ZodNumber>;
12107
13851
  clientUiDetected: z.ZodOptional<z.ZodBoolean>;
12108
13852
  hostUi: z.ZodOptional<z.ZodObject<{
@@ -12217,6 +13961,16 @@ export declare const HostApiContracts: {
12217
13961
  mayForceTrigger: z.ZodBoolean;
12218
13962
  timeoutMs: z.ZodNumber;
12219
13963
  }, z.core.$strict>>;
13964
+ outbound: z.ZodOptional<z.ZodObject<{
13965
+ read: z.ZodOptional<z.ZodLiteral<true>>;
13966
+ transform: z.ZodOptional<z.ZodLiteral<true>>;
13967
+ cancel: z.ZodOptional<z.ZodLiteral<true>>;
13968
+ timeoutMs: z.ZodNumber;
13969
+ onTimeout: z.ZodOptional<z.ZodEnum<{
13970
+ cancel: "cancel";
13971
+ send: "send";
13972
+ }>>;
13973
+ }, z.core.$strict>>;
12220
13974
  jobs: z.ZodOptional<z.ZodObject<{
12221
13975
  declared: z.ZodOptional<z.ZodArray<z.ZodObject<{
12222
13976
  id: z.ZodString;
@@ -12246,6 +14000,8 @@ export declare const HostApiContracts: {
12246
14000
  url: z.ZodString;
12247
14001
  headers: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
12248
14002
  secret: z.ZodString;
14003
+ }, z.core.$strict>, z.ZodObject<{
14004
+ credential: z.ZodString;
12249
14005
  }, z.core.$strict>]>>>;
12250
14006
  }, z.core.$strict>, z.ZodObject<{
12251
14007
  transport: z.ZodLiteral<"stdio">;
@@ -12254,6 +14010,8 @@ export declare const HostApiContracts: {
12254
14010
  args: z.ZodDefault<z.ZodArray<z.ZodString>>;
12255
14011
  env: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
12256
14012
  secret: z.ZodString;
14013
+ }, z.core.$strict>, z.ZodObject<{
14014
+ credential: z.ZodString;
12257
14015
  }, z.core.$strict>]>>>;
12258
14016
  }, z.core.$strict>], "transport">>;
12259
14017
  }, z.core.$strict>>;
@@ -12282,6 +14040,7 @@ export declare const HostApiContracts: {
12282
14040
  agent: "agent";
12283
14041
  }>>;
12284
14042
  config: z.ZodJSONSchema;
14043
+ grantedServices: z.ZodOptional<z.ZodArray<z.ZodString>>;
12285
14044
  activations: z.ZodArray<z.ZodObject<{
12286
14045
  targetKey: z.ZodString;
12287
14046
  target: z.ZodEnum<{
@@ -12293,18 +14052,22 @@ export declare const HostApiContracts: {
12293
14052
  diagnostic: z.ZodOptional<z.ZodObject<{
12294
14053
  status: z.ZodEnum<{
12295
14054
  active: "active";
14055
+ pending: "pending";
12296
14056
  "load-failed": "load-failed";
12297
14057
  "restore-failed": "restore-failed";
12298
14058
  "dispose-failed": "dispose-failed";
12299
14059
  }>;
12300
14060
  phase: z.ZodEnum<{
12301
14061
  import: "import";
14062
+ dependency: "dependency";
12302
14063
  apply: "apply";
12303
14064
  update: "update";
12304
14065
  dispose: "dispose";
12305
14066
  restore: "restore";
12306
14067
  }>;
12307
14068
  message: z.ZodOptional<z.ZodString>;
14069
+ waitingFor: z.ZodOptional<z.ZodArray<z.ZodString>>;
14070
+ restrictedServices: z.ZodOptional<z.ZodArray<z.ZodString>>;
12308
14071
  observedAt: z.ZodNumber;
12309
14072
  }, z.core.$strip>>;
12310
14073
  }, z.core.$strict>>;
@@ -12441,6 +14204,16 @@ export declare const HostApiContracts: {
12441
14204
  mayForceTrigger: z.ZodBoolean;
12442
14205
  timeoutMs: z.ZodNumber;
12443
14206
  }, z.core.$strict>>;
14207
+ outbound: z.ZodOptional<z.ZodObject<{
14208
+ read: z.ZodOptional<z.ZodLiteral<true>>;
14209
+ transform: z.ZodOptional<z.ZodLiteral<true>>;
14210
+ cancel: z.ZodOptional<z.ZodLiteral<true>>;
14211
+ timeoutMs: z.ZodNumber;
14212
+ onTimeout: z.ZodOptional<z.ZodEnum<{
14213
+ cancel: "cancel";
14214
+ send: "send";
14215
+ }>>;
14216
+ }, z.core.$strict>>;
12444
14217
  jobs: z.ZodOptional<z.ZodObject<{
12445
14218
  declared: z.ZodOptional<z.ZodArray<z.ZodObject<{
12446
14219
  id: z.ZodString;
@@ -12470,6 +14243,8 @@ export declare const HostApiContracts: {
12470
14243
  url: z.ZodString;
12471
14244
  headers: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
12472
14245
  secret: z.ZodString;
14246
+ }, z.core.$strict>, z.ZodObject<{
14247
+ credential: z.ZodString;
12473
14248
  }, z.core.$strict>]>>>;
12474
14249
  }, z.core.$strict>, z.ZodObject<{
12475
14250
  transport: z.ZodLiteral<"stdio">;
@@ -12478,6 +14253,8 @@ export declare const HostApiContracts: {
12478
14253
  args: z.ZodDefault<z.ZodArray<z.ZodString>>;
12479
14254
  env: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
12480
14255
  secret: z.ZodString;
14256
+ }, z.core.$strict>, z.ZodObject<{
14257
+ credential: z.ZodString;
12481
14258
  }, z.core.$strict>]>>>;
12482
14259
  }, z.core.$strict>], "transport">>;
12483
14260
  }, z.core.$strict>>;
@@ -12639,6 +14416,16 @@ export declare const HostApiContracts: {
12639
14416
  mayForceTrigger: z.ZodBoolean;
12640
14417
  timeoutMs: z.ZodNumber;
12641
14418
  }, z.core.$strict>>;
14419
+ outbound: z.ZodOptional<z.ZodObject<{
14420
+ read: z.ZodOptional<z.ZodLiteral<true>>;
14421
+ transform: z.ZodOptional<z.ZodLiteral<true>>;
14422
+ cancel: z.ZodOptional<z.ZodLiteral<true>>;
14423
+ timeoutMs: z.ZodNumber;
14424
+ onTimeout: z.ZodOptional<z.ZodEnum<{
14425
+ cancel: "cancel";
14426
+ send: "send";
14427
+ }>>;
14428
+ }, z.core.$strict>>;
12642
14429
  jobs: z.ZodOptional<z.ZodObject<{
12643
14430
  declared: z.ZodOptional<z.ZodArray<z.ZodObject<{
12644
14431
  id: z.ZodString;
@@ -12668,6 +14455,8 @@ export declare const HostApiContracts: {
12668
14455
  url: z.ZodString;
12669
14456
  headers: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
12670
14457
  secret: z.ZodString;
14458
+ }, z.core.$strict>, z.ZodObject<{
14459
+ credential: z.ZodString;
12671
14460
  }, z.core.$strict>]>>>;
12672
14461
  }, z.core.$strict>, z.ZodObject<{
12673
14462
  transport: z.ZodLiteral<"stdio">;
@@ -12676,6 +14465,8 @@ export declare const HostApiContracts: {
12676
14465
  args: z.ZodDefault<z.ZodArray<z.ZodString>>;
12677
14466
  env: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
12678
14467
  secret: z.ZodString;
14468
+ }, z.core.$strict>, z.ZodObject<{
14469
+ credential: z.ZodString;
12679
14470
  }, z.core.$strict>]>>>;
12680
14471
  }, z.core.$strict>], "transport">>;
12681
14472
  }, z.core.$strict>>;
@@ -15261,6 +17052,9 @@ export declare const HostApiContracts: {
15261
17052
  newest: "newest";
15262
17053
  }>>;
15263
17054
  cursor: z.ZodOptional<z.ZodString>;
17055
+ refresh: z.ZodOptional<z.ZodEnum<{
17056
+ 1: "1";
17057
+ }>>;
15264
17058
  }, z.core.$strict>, z.ZodUndefined, z.ZodObject<{
15265
17059
  items: z.ZodArray<z.ZodObject<{
15266
17060
  id: z.core.$ZodBranded<z.ZodString, "ExtensionId", "out">;
@@ -15334,6 +17128,8 @@ export declare const HostApiContracts: {
15334
17128
  branchCount: z.ZodOptional<z.ZodNumber>;
15335
17129
  }, z.core.$strip>>;
15336
17130
  nextCursor: z.ZodNullable<z.ZodString>;
17131
+ fetchedAt: z.ZodNumber;
17132
+ stale: z.ZodBoolean;
15337
17133
  }, z.core.$strict>, z.ZodObject<{
15338
17134
  error: z.ZodObject<{
15339
17135
  code: z.ZodString;
@@ -15342,6 +17138,9 @@ export declare const HostApiContracts: {
15342
17138
  }, z.core.$strict>>;
15343
17139
  readonly getCommunityExtension: HostApiContract<"GET", z.ZodObject<{
15344
17140
  extensionId: z.core.$ZodBranded<z.ZodString, "ExtensionId", "out">;
17141
+ refresh: z.ZodOptional<z.ZodEnum<{
17142
+ 1: "1";
17143
+ }>>;
15345
17144
  }, z.core.$strict>, z.ZodUndefined, z.ZodObject<{
15346
17145
  id: z.core.$ZodBranded<z.ZodString, "ExtensionId", "out">;
15347
17146
  provides: z.ZodArray<z.ZodString>;
@@ -15453,6 +17252,8 @@ export declare const HostApiContracts: {
15453
17252
  }, z.core.$strip>>;
15454
17253
  reviewedAt: z.ZodNullable<z.ZodNumber>;
15455
17254
  }, z.core.$strip>>;
17255
+ fetchedAt: z.ZodNumber;
17256
+ stale: z.ZodBoolean;
15456
17257
  }, z.core.$strip>, z.ZodObject<{
15457
17258
  error: z.ZodObject<{
15458
17259
  code: z.ZodString;
@@ -15911,6 +17712,9 @@ export declare const HostApiContracts: {
15911
17712
  tag: z.ZodOptional<z.ZodString>;
15912
17713
  official: z.ZodOptional<z.ZodLiteral<"1">>;
15913
17714
  cursor: z.ZodOptional<z.ZodString>;
17715
+ refresh: z.ZodOptional<z.ZodEnum<{
17716
+ 1: "1";
17717
+ }>>;
15914
17718
  }, z.core.$strict>, z.ZodUndefined, z.ZodObject<{
15915
17719
  items: z.ZodArray<z.ZodObject<{
15916
17720
  id: z.ZodString;
@@ -15930,6 +17734,8 @@ export declare const HostApiContracts: {
15930
17734
  pageUrl: z.ZodString;
15931
17735
  }, z.core.$strip>>;
15932
17736
  nextCursor: z.ZodNullable<z.ZodString>;
17737
+ fetchedAt: z.ZodNumber;
17738
+ stale: z.ZodBoolean;
15933
17739
  }, z.core.$strict>, z.ZodObject<{
15934
17740
  error: z.ZodObject<{
15935
17741
  code: z.ZodString;
@@ -15938,6 +17744,9 @@ export declare const HostApiContracts: {
15938
17744
  }, z.core.$strict>>;
15939
17745
  readonly getCommunityPersona: HostApiContract<"GET", z.ZodObject<{
15940
17746
  personaId: z.ZodString;
17747
+ refresh: z.ZodOptional<z.ZodEnum<{
17748
+ 1: "1";
17749
+ }>>;
15941
17750
  }, z.core.$strict>, z.ZodUndefined, z.ZodObject<{
15942
17751
  id: z.ZodString;
15943
17752
  name: z.ZodString;
@@ -15968,6 +17777,8 @@ export declare const HostApiContracts: {
15968
17777
  }>;
15969
17778
  summary: z.ZodNullable<z.ZodString>;
15970
17779
  }, z.core.$strip>>;
17780
+ fetchedAt: z.ZodNumber;
17781
+ stale: z.ZodBoolean;
15971
17782
  }, z.core.$strip>, z.ZodObject<{
15972
17783
  error: z.ZodObject<{
15973
17784
  code: z.ZodString;
@@ -16116,6 +17927,7 @@ export declare const HostApiContracts: {
16116
17927
  name: z.ZodString;
16117
17928
  value: z.ZodString;
16118
17929
  secret: z.ZodDefault<z.ZodBoolean>;
17930
+ credential: z.ZodOptional<z.ZodString>;
16119
17931
  }, z.core.$strict>>>;
16120
17932
  }, z.core.$strict>, z.ZodObject<{
16121
17933
  transport: z.ZodLiteral<"stdio">;
@@ -16126,6 +17938,7 @@ export declare const HostApiContracts: {
16126
17938
  name: z.ZodString;
16127
17939
  value: z.ZodString;
16128
17940
  secret: z.ZodDefault<z.ZodBoolean>;
17941
+ credential: z.ZodOptional<z.ZodString>;
16129
17942
  }, z.core.$strict>>>;
16130
17943
  }, z.core.$strict>], "transport">;
16131
17944
  }, z.core.$strict>, z.ZodObject<{
@@ -16153,6 +17966,7 @@ export declare const HostApiContracts: {
16153
17966
  name: z.ZodString;
16154
17967
  value: z.ZodString;
16155
17968
  secret: z.ZodDefault<z.ZodBoolean>;
17969
+ credential: z.ZodOptional<z.ZodString>;
16156
17970
  }, z.core.$strict>>>;
16157
17971
  }, z.core.$strict>, z.ZodObject<{
16158
17972
  transport: z.ZodLiteral<"stdio">;
@@ -16163,6 +17977,7 @@ export declare const HostApiContracts: {
16163
17977
  name: z.ZodString;
16164
17978
  value: z.ZodString;
16165
17979
  secret: z.ZodDefault<z.ZodBoolean>;
17980
+ credential: z.ZodOptional<z.ZodString>;
16166
17981
  }, z.core.$strict>>>;
16167
17982
  }, z.core.$strict>], "transport">;
16168
17983
  }, z.core.$strict>, z.ZodObject<{
@@ -16326,6 +18141,7 @@ export declare const HostApiContracts: {
16326
18141
  text: "text";
16327
18142
  image: "image";
16328
18143
  }>>>;
18144
+ reasoningEfforts: z.ZodOptional<z.ZodArray<z.ZodString>>;
16329
18145
  }, z.core.$strict>>;
16330
18146
  modelsCustomized: z.ZodBoolean;
16331
18147
  discoverable: z.ZodBoolean;
@@ -16335,6 +18151,66 @@ export declare const HostApiContracts: {
16335
18151
  message: z.ZodOptional<z.ZodString>;
16336
18152
  model: z.ZodOptional<z.ZodString>;
16337
18153
  }, z.core.$strict>>>;
18154
+ subscription: z.ZodOptional<z.ZodObject<{
18155
+ label: z.ZodString;
18156
+ active: z.ZodBoolean;
18157
+ accountLabel: z.ZodNullable<z.ZodString>;
18158
+ }, z.core.$strict>>;
18159
+ }, z.core.$strict>>;
18160
+ }, z.core.$strict>, z.ZodObject<{
18161
+ error: z.ZodObject<{
18162
+ code: z.ZodString;
18163
+ message: z.ZodString;
18164
+ }, z.core.$strict>;
18165
+ }, z.core.$strict>>;
18166
+ readonly llmSubscriptionStatus: HostApiContract<"GET", z.ZodObject<{
18167
+ provider: z.ZodString;
18168
+ }, z.core.$strict>, z.ZodUndefined, z.ZodObject<{
18169
+ provider: z.ZodString;
18170
+ label: z.ZodString;
18171
+ usageUrl: z.ZodURL;
18172
+ available: z.ZodBoolean;
18173
+ mode: z.ZodEnum<{
18174
+ subscription: "subscription";
18175
+ unconfigured: "unconfigured";
18176
+ "api-key": "api-key";
18177
+ }>;
18178
+ activeAccountId: z.ZodNullable<z.ZodString>;
18179
+ accounts: z.ZodArray<z.ZodObject<{
18180
+ id: z.ZodString;
18181
+ label: z.ZodString;
18182
+ email: z.ZodNullable<z.ZodString>;
18183
+ createdAt: z.ZodNumber;
18184
+ }, z.core.$strict>>;
18185
+ login: z.ZodNullable<z.ZodObject<{
18186
+ id: z.ZodString;
18187
+ status: z.ZodEnum<{
18188
+ failed: "failed";
18189
+ running: "running";
18190
+ cancelled: "cancelled";
18191
+ authorized: "authorized";
18192
+ }>;
18193
+ notices: z.ZodArray<z.ZodObject<{
18194
+ message: z.ZodString;
18195
+ url: z.ZodOptional<z.ZodString>;
18196
+ code: z.ZodOptional<z.ZodString>;
18197
+ }, z.core.$strict>>;
18198
+ prompt: z.ZodNullable<z.ZodObject<{
18199
+ id: z.ZodString;
18200
+ kind: z.ZodEnum<{
18201
+ text: "text";
18202
+ secret: "secret";
18203
+ select: "select";
18204
+ }>;
18205
+ message: z.ZodString;
18206
+ placeholder: z.ZodOptional<z.ZodString>;
18207
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
18208
+ id: z.ZodString;
18209
+ label: z.ZodString;
18210
+ description: z.ZodOptional<z.ZodString>;
18211
+ }, z.core.$strict>>>;
18212
+ }, z.core.$strict>>;
18213
+ error: z.ZodNullable<z.ZodString>;
16338
18214
  }, z.core.$strict>>;
16339
18215
  }, z.core.$strict>, z.ZodObject<{
16340
18216
  error: z.ZodObject<{
@@ -16342,6 +18218,86 @@ export declare const HostApiContracts: {
16342
18218
  message: z.ZodString;
16343
18219
  }, z.core.$strict>;
16344
18220
  }, z.core.$strict>>;
18221
+ readonly llmSubscriptionAction: HostApiContract<"POST", z.ZodObject<{
18222
+ provider: z.ZodString;
18223
+ }, z.core.$strict>, z.ZodDiscriminatedUnion<[z.ZodObject<{
18224
+ action: z.ZodLiteral<"use-subscription">;
18225
+ expectedRevision: z.ZodNumber;
18226
+ }, z.core.$strict>, z.ZodObject<{
18227
+ action: z.ZodEnum<{
18228
+ cancel: "cancel";
18229
+ login: "login";
18230
+ }>;
18231
+ }, z.core.$strict>, z.ZodObject<{
18232
+ action: z.ZodLiteral<"answer">;
18233
+ promptId: z.ZodString;
18234
+ value: z.ZodString;
18235
+ }, z.core.$strict>, z.ZodObject<{
18236
+ action: z.ZodEnum<{
18237
+ activate: "activate";
18238
+ remove: "remove";
18239
+ }>;
18240
+ accountId: z.ZodString;
18241
+ }, z.core.$strict>, z.ZodObject<{
18242
+ action: z.ZodLiteral<"rename">;
18243
+ accountId: z.ZodString;
18244
+ label: z.ZodString;
18245
+ }, z.core.$strict>], "action">, z.ZodObject<{
18246
+ status: z.ZodObject<{
18247
+ provider: z.ZodString;
18248
+ label: z.ZodString;
18249
+ usageUrl: z.ZodURL;
18250
+ available: z.ZodBoolean;
18251
+ mode: z.ZodEnum<{
18252
+ subscription: "subscription";
18253
+ unconfigured: "unconfigured";
18254
+ "api-key": "api-key";
18255
+ }>;
18256
+ activeAccountId: z.ZodNullable<z.ZodString>;
18257
+ accounts: z.ZodArray<z.ZodObject<{
18258
+ id: z.ZodString;
18259
+ label: z.ZodString;
18260
+ email: z.ZodNullable<z.ZodString>;
18261
+ createdAt: z.ZodNumber;
18262
+ }, z.core.$strict>>;
18263
+ login: z.ZodNullable<z.ZodObject<{
18264
+ id: z.ZodString;
18265
+ status: z.ZodEnum<{
18266
+ failed: "failed";
18267
+ running: "running";
18268
+ cancelled: "cancelled";
18269
+ authorized: "authorized";
18270
+ }>;
18271
+ notices: z.ZodArray<z.ZodObject<{
18272
+ message: z.ZodString;
18273
+ url: z.ZodOptional<z.ZodString>;
18274
+ code: z.ZodOptional<z.ZodString>;
18275
+ }, z.core.$strict>>;
18276
+ prompt: z.ZodNullable<z.ZodObject<{
18277
+ id: z.ZodString;
18278
+ kind: z.ZodEnum<{
18279
+ text: "text";
18280
+ secret: "secret";
18281
+ select: "select";
18282
+ }>;
18283
+ message: z.ZodString;
18284
+ placeholder: z.ZodOptional<z.ZodString>;
18285
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
18286
+ id: z.ZodString;
18287
+ label: z.ZodString;
18288
+ description: z.ZodOptional<z.ZodString>;
18289
+ }, z.core.$strict>>>;
18290
+ }, z.core.$strict>>;
18291
+ error: z.ZodNullable<z.ZodString>;
18292
+ }, z.core.$strict>>;
18293
+ }, z.core.$strict>;
18294
+ revocationConfirmed: z.ZodOptional<z.ZodBoolean>;
18295
+ }, z.core.$strict>, z.ZodObject<{
18296
+ error: z.ZodObject<{
18297
+ code: z.ZodString;
18298
+ message: z.ZodString;
18299
+ }, z.core.$strict>;
18300
+ }, z.core.$strict>>;
16345
18301
  readonly llmDiscoverModels: HostApiContract<"POST", z.ZodObject<{}, z.core.$strict>, z.ZodObject<{
16346
18302
  provider: z.ZodOptional<z.ZodString>;
16347
18303
  settingsNs: z.ZodOptional<z.ZodString>;
@@ -16358,6 +18314,7 @@ export declare const HostApiContracts: {
16358
18314
  text: "text";
16359
18315
  image: "image";
16360
18316
  }>>>;
18317
+ reasoningEfforts: z.ZodOptional<z.ZodArray<z.ZodString>>;
16361
18318
  }, z.core.$strict>>;
16362
18319
  }, z.core.$strict>, z.ZodObject<{
16363
18320
  error: z.ZodObject<{
@@ -16381,6 +18338,7 @@ export declare const HostApiContracts: {
16381
18338
  text: "text";
16382
18339
  image: "image";
16383
18340
  }>>>;
18341
+ reasoningEfforts: z.ZodOptional<z.ZodArray<z.ZodString>>;
16384
18342
  }, z.core.$strict>>>;
16385
18343
  }, z.core.$strict>, z.ZodObject<{
16386
18344
  provider: z.ZodString;
@@ -16457,6 +18415,7 @@ export declare const HostApiContracts: {
16457
18415
  text: "text";
16458
18416
  image: "image";
16459
18417
  }>>>;
18418
+ reasoningEfforts: z.ZodOptional<z.ZodArray<z.ZodString>>;
16460
18419
  }, z.core.$strict>>;
16461
18420
  modelsCustomized: z.ZodBoolean;
16462
18421
  discoverable: z.ZodBoolean;
@@ -16466,6 +18425,11 @@ export declare const HostApiContracts: {
16466
18425
  message: z.ZodOptional<z.ZodString>;
16467
18426
  model: z.ZodOptional<z.ZodString>;
16468
18427
  }, z.core.$strict>>>;
18428
+ subscription: z.ZodOptional<z.ZodObject<{
18429
+ label: z.ZodString;
18430
+ active: z.ZodBoolean;
18431
+ accountLabel: z.ZodNullable<z.ZodString>;
18432
+ }, z.core.$strict>>;
16469
18433
  }, z.core.$strict>>;
16470
18434
  }, z.core.$strict>, z.ZodObject<{
16471
18435
  error: z.ZodObject<{
@@ -16505,6 +18469,7 @@ export declare const HostApiContracts: {
16505
18469
  text: "text";
16506
18470
  image: "image";
16507
18471
  }>>>;
18472
+ reasoningEfforts: z.ZodOptional<z.ZodArray<z.ZodString>>;
16508
18473
  }, z.core.$strict>>;
16509
18474
  modelsCustomized: z.ZodBoolean;
16510
18475
  discoverable: z.ZodBoolean;
@@ -16514,6 +18479,11 @@ export declare const HostApiContracts: {
16514
18479
  message: z.ZodOptional<z.ZodString>;
16515
18480
  model: z.ZodOptional<z.ZodString>;
16516
18481
  }, z.core.$strict>>>;
18482
+ subscription: z.ZodOptional<z.ZodObject<{
18483
+ label: z.ZodString;
18484
+ active: z.ZodBoolean;
18485
+ accountLabel: z.ZodNullable<z.ZodString>;
18486
+ }, z.core.$strict>>;
16517
18487
  }, z.core.$strict>>;
16518
18488
  }, z.core.$strict>, z.ZodObject<{
16519
18489
  error: z.ZodObject<{
@@ -16538,6 +18508,7 @@ export declare const HostApiContracts: {
16538
18508
  text: "text";
16539
18509
  image: "image";
16540
18510
  }>>>;
18511
+ reasoningEfforts: z.ZodOptional<z.ZodArray<z.ZodString>>;
16541
18512
  }, z.core.$strict>>>;
16542
18513
  }, z.core.$strict>, z.ZodObject<{
16543
18514
  writable: z.ZodBoolean;
@@ -16567,6 +18538,7 @@ export declare const HostApiContracts: {
16567
18538
  text: "text";
16568
18539
  image: "image";
16569
18540
  }>>>;
18541
+ reasoningEfforts: z.ZodOptional<z.ZodArray<z.ZodString>>;
16570
18542
  }, z.core.$strict>>;
16571
18543
  modelsCustomized: z.ZodBoolean;
16572
18544
  discoverable: z.ZodBoolean;
@@ -16576,6 +18548,11 @@ export declare const HostApiContracts: {
16576
18548
  message: z.ZodOptional<z.ZodString>;
16577
18549
  model: z.ZodOptional<z.ZodString>;
16578
18550
  }, z.core.$strict>>>;
18551
+ subscription: z.ZodOptional<z.ZodObject<{
18552
+ label: z.ZodString;
18553
+ active: z.ZodBoolean;
18554
+ accountLabel: z.ZodNullable<z.ZodString>;
18555
+ }, z.core.$strict>>;
16579
18556
  }, z.core.$strict>>;
16580
18557
  }, z.core.$strict>, z.ZodObject<{
16581
18558
  error: z.ZodObject<{
@@ -16587,8 +18564,8 @@ export declare const HostApiContracts: {
16587
18564
  connectionId: z.core.$ZodBranded<z.ZodString, "ConnectionId", "out">;
16588
18565
  }, z.core.$strict>, z.ZodObject<{
16589
18566
  direction: z.ZodEnum<{
16590
- receive: "receive";
16591
18567
  send: "send";
18568
+ receive: "receive";
16592
18569
  }>;
16593
18570
  channelId: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "ChannelId", "out">>;
16594
18571
  }, z.core.$strict>, z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -16936,6 +18913,16 @@ export declare const HostApiContracts: {
16936
18913
  mayForceTrigger: z.ZodBoolean;
16937
18914
  timeoutMs: z.ZodNumber;
16938
18915
  }, z.core.$strict>>;
18916
+ outbound: z.ZodOptional<z.ZodObject<{
18917
+ read: z.ZodOptional<z.ZodLiteral<true>>;
18918
+ transform: z.ZodOptional<z.ZodLiteral<true>>;
18919
+ cancel: z.ZodOptional<z.ZodLiteral<true>>;
18920
+ timeoutMs: z.ZodNumber;
18921
+ onTimeout: z.ZodOptional<z.ZodEnum<{
18922
+ cancel: "cancel";
18923
+ send: "send";
18924
+ }>>;
18925
+ }, z.core.$strict>>;
16939
18926
  jobs: z.ZodOptional<z.ZodObject<{
16940
18927
  declared: z.ZodOptional<z.ZodArray<z.ZodObject<{
16941
18928
  id: z.ZodString;
@@ -16965,6 +18952,8 @@ export declare const HostApiContracts: {
16965
18952
  url: z.ZodString;
16966
18953
  headers: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
16967
18954
  secret: z.ZodString;
18955
+ }, z.core.$strict>, z.ZodObject<{
18956
+ credential: z.ZodString;
16968
18957
  }, z.core.$strict>]>>>;
16969
18958
  }, z.core.$strict>, z.ZodObject<{
16970
18959
  transport: z.ZodLiteral<"stdio">;
@@ -16973,6 +18962,8 @@ export declare const HostApiContracts: {
16973
18962
  args: z.ZodDefault<z.ZodArray<z.ZodString>>;
16974
18963
  env: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
16975
18964
  secret: z.ZodString;
18965
+ }, z.core.$strict>, z.ZodObject<{
18966
+ credential: z.ZodString;
16976
18967
  }, z.core.$strict>]>>>;
16977
18968
  }, z.core.$strict>], "transport">>;
16978
18969
  }, z.core.$strict>>;
@@ -17265,6 +19256,7 @@ export declare const HostApiContracts: {
17265
19256
  extensionRevisionId: z.core.$ZodBranded<z.ZodString, "ExtensionRevisionId", "out">;
17266
19257
  config: z.ZodJSONSchema;
17267
19258
  configuredSecrets: z.ZodOptional<z.ZodArray<z.ZodString>>;
19259
+ boundCredentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.core.$ZodBranded<z.ZodString, "CredentialId", "out">>>;
17268
19260
  activatedAt: z.ZodNumber;
17269
19261
  }, z.core.$strict>>;
17270
19262
  pending: z.ZodOptional<z.ZodObject<{
@@ -17312,15 +19304,29 @@ export declare const HostApiContracts: {
17312
19304
  message: z.ZodString;
17313
19305
  }, z.core.$strict>;
17314
19306
  }, z.core.$strict>>;
19307
+ readonly putAgentOutboundOrder: HostApiContract<"PUT", z.ZodObject<{
19308
+ agentId: z.core.$ZodBranded<z.ZodString, "AgentId", "out">;
19309
+ }, z.core.$strict>, z.ZodObject<{
19310
+ extensionIds: z.ZodArray<z.core.$ZodBranded<z.ZodString, "ExtensionId", "out">>;
19311
+ }, z.core.$strict>, z.ZodObject<{
19312
+ extensionIds: z.ZodArray<z.core.$ZodBranded<z.ZodString, "ExtensionId", "out">>;
19313
+ }, z.core.$strict>, z.ZodObject<{
19314
+ error: z.ZodObject<{
19315
+ code: z.ZodString;
19316
+ message: z.ZodString;
19317
+ }, z.core.$strict>;
19318
+ }, z.core.$strict>>;
17315
19319
  readonly updateExtensionActivationConfig: HostApiContract<"PUT", z.ZodObject<{
17316
19320
  agentId: z.core.$ZodBranded<z.ZodString, "AgentId", "out">;
17317
19321
  extensionId: z.core.$ZodBranded<z.ZodString, "ExtensionId", "out">;
17318
19322
  }, z.core.$strict>, z.ZodObject<{
17319
19323
  config: z.ZodJSONSchema;
17320
19324
  secrets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
19325
+ credentialBindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNullable<z.core.$ZodBranded<z.ZodString, "CredentialId", "out">>>>;
17321
19326
  }, z.core.$strict>, z.ZodObject<{
17322
19327
  config: z.ZodJSONSchema;
17323
19328
  configuredSecrets: z.ZodOptional<z.ZodArray<z.ZodString>>;
19329
+ boundCredentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.core.$ZodBranded<z.ZodString, "CredentialId", "out">>>;
17324
19330
  }, z.core.$strict>, z.ZodObject<{
17325
19331
  error: z.ZodObject<{
17326
19332
  code: z.ZodString;
@@ -17332,9 +19338,82 @@ export declare const HostApiContracts: {
17332
19338
  }, z.core.$strict>, z.ZodObject<{
17333
19339
  config: z.ZodJSONSchema;
17334
19340
  secrets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
19341
+ credentialBindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNullable<z.core.$ZodBranded<z.ZodString, "CredentialId", "out">>>>;
17335
19342
  }, z.core.$strict>, z.ZodObject<{
17336
19343
  config: z.ZodJSONSchema;
17337
19344
  configuredSecrets: z.ZodOptional<z.ZodArray<z.ZodString>>;
19345
+ boundCredentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.core.$ZodBranded<z.ZodString, "CredentialId", "out">>>;
19346
+ }, z.core.$strict>, z.ZodObject<{
19347
+ error: z.ZodObject<{
19348
+ code: z.ZodString;
19349
+ message: z.ZodString;
19350
+ }, z.core.$strict>;
19351
+ }, z.core.$strict>>;
19352
+ /** Configuration history of one extension, newest first: the host layer and every agent's configuration. */
19353
+ readonly getExtensionConfigVersions: HostApiContract<"GET", z.ZodObject<{
19354
+ extensionId: z.core.$ZodBranded<z.ZodString, "ExtensionId", "out">;
19355
+ }, z.core.$strict>, z.ZodUndefined, z.ZodObject<{
19356
+ versions: z.ZodArray<z.ZodObject<{
19357
+ id: z.ZodNumber;
19358
+ extensionId: z.core.$ZodBranded<z.ZodString, "ExtensionId", "out">;
19359
+ layer: z.ZodEnum<{
19360
+ host: "host";
19361
+ agent: "agent";
19362
+ }>;
19363
+ agentId: z.ZodNullable<z.core.$ZodBranded<z.ZodString, "AgentId", "out">>;
19364
+ version: z.ZodNumber;
19365
+ config: z.ZodJSONSchema;
19366
+ configuredSecrets: z.ZodOptional<z.ZodArray<z.ZodString>>;
19367
+ boundCredentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.core.$ZodBranded<z.ZodString, "CredentialId", "out">>>;
19368
+ source: z.ZodEnum<{
19369
+ agent: "agent";
19370
+ console: "console";
19371
+ "chat-admin": "chat-admin";
19372
+ revert: "revert";
19373
+ "auto-revert": "auto-revert";
19374
+ }>;
19375
+ actorAgentId: z.ZodNullable<z.core.$ZodBranded<z.ZodString, "AgentId", "out">>;
19376
+ requesterMemberId: z.ZodNullable<z.ZodString>;
19377
+ reason: z.ZodNullable<z.ZodString>;
19378
+ createdAt: z.ZodNumber;
19379
+ }, z.core.$strict>>;
19380
+ }, z.core.$strict>, z.ZodObject<{
19381
+ error: z.ZodObject<{
19382
+ code: z.ZodString;
19383
+ message: z.ZodString;
19384
+ }, z.core.$strict>;
19385
+ }, z.core.$strict>>;
19386
+ /** Writes an earlier configuration again as a new version of the same layer (and agent). */
19387
+ readonly revertExtensionConfig: HostApiContract<"POST", z.ZodObject<{
19388
+ extensionId: z.core.$ZodBranded<z.ZodString, "ExtensionId", "out">;
19389
+ versionId: z.ZodString;
19390
+ }, z.core.$strict>, z.ZodObject<{
19391
+ reason: z.ZodOptional<z.ZodString>;
19392
+ }, z.core.$strict>, z.ZodObject<{
19393
+ version: z.ZodObject<{
19394
+ id: z.ZodNumber;
19395
+ extensionId: z.core.$ZodBranded<z.ZodString, "ExtensionId", "out">;
19396
+ layer: z.ZodEnum<{
19397
+ host: "host";
19398
+ agent: "agent";
19399
+ }>;
19400
+ agentId: z.ZodNullable<z.core.$ZodBranded<z.ZodString, "AgentId", "out">>;
19401
+ version: z.ZodNumber;
19402
+ config: z.ZodJSONSchema;
19403
+ configuredSecrets: z.ZodOptional<z.ZodArray<z.ZodString>>;
19404
+ boundCredentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.core.$ZodBranded<z.ZodString, "CredentialId", "out">>>;
19405
+ source: z.ZodEnum<{
19406
+ agent: "agent";
19407
+ console: "console";
19408
+ "chat-admin": "chat-admin";
19409
+ revert: "revert";
19410
+ "auto-revert": "auto-revert";
19411
+ }>;
19412
+ actorAgentId: z.ZodNullable<z.core.$ZodBranded<z.ZodString, "AgentId", "out">>;
19413
+ requesterMemberId: z.ZodNullable<z.ZodString>;
19414
+ reason: z.ZodNullable<z.ZodString>;
19415
+ createdAt: z.ZodNumber;
19416
+ }, z.core.$strict>;
17338
19417
  }, z.core.$strict>, z.ZodObject<{
17339
19418
  error: z.ZodObject<{
17340
19419
  code: z.ZodString;
@@ -17465,6 +19544,7 @@ export declare const HostApiContracts: {
17465
19544
  "agent-vision-unavailable": "agent-vision-unavailable";
17466
19545
  "logs-unavailable": "logs-unavailable";
17467
19546
  "community-feedback": "community-feedback";
19547
+ "extension-update": "extension-update";
17468
19548
  }>;
17469
19549
  severity: z.ZodEnum<{
17470
19550
  info: "info";
@@ -17478,6 +19558,7 @@ export declare const HostApiContracts: {
17478
19558
  connection: "connection";
17479
19559
  outbound: "outbound";
17480
19560
  "community-feedback": "community-feedback";
19561
+ "extension-update": "extension-update";
17481
19562
  "authoring-task": "authoring-task";
17482
19563
  logs: "logs";
17483
19564
  }>;
@@ -17501,6 +19582,7 @@ export declare const HostApiContracts: {
17501
19582
  "open-agent": "open-agent";
17502
19583
  "open-logs": "open-logs";
17503
19584
  "open-community-feedback": "open-community-feedback";
19585
+ "open-extension-updates": "open-extension-updates";
17504
19586
  }>;
17505
19587
  label: z.ZodString;
17506
19588
  }, z.core.$strict>;
@@ -17640,11 +19722,15 @@ export declare const HostApiContracts: {
17640
19722
  }, z.core.$strict>;
17641
19723
  changedFields: z.ZodArray<z.ZodEnum<{
17642
19724
  name: "name";
19725
+ aliases: "aliases";
17643
19726
  model: "model";
17644
19727
  persona: "persona";
17645
19728
  capabilities: "capabilities";
17646
19729
  approvalPolicy: "approvalPolicy";
17647
19730
  imagePolicy: "imagePolicy";
19731
+ compaction: "compaction";
19732
+ subConversationModels: "subConversationModels";
19733
+ fallbackModels: "fallbackModels";
17648
19734
  }>>;
17649
19735
  current: z.ZodBoolean;
17650
19736
  }, z.core.$strict>>;