@maudecode/talaria-web-contracts 1.18.0 → 1.20.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.
Files changed (95) hide show
  1. package/dist/context-detail.d.ts +75 -0
  2. package/dist/context-detail.js +18 -0
  3. package/dist/context-detail.js.map +1 -0
  4. package/dist/gateway-session.d.ts +475 -0
  5. package/dist/gateway-session.js +106 -0
  6. package/dist/gateway-session.js.map +1 -0
  7. package/dist/index.d.ts +4 -0
  8. package/dist/index.js +4 -0
  9. package/dist/index.js.map +1 -1
  10. package/dist/openapi.js +4 -0
  11. package/dist/openapi.js.map +1 -1
  12. package/dist/router.d.ts +5503 -251
  13. package/dist/routes/automation.d.ts +100 -18
  14. package/dist/routes/automation.js +7 -4
  15. package/dist/routes/automation.js.map +1 -1
  16. package/dist/routes/chat.d.ts +1605 -47
  17. package/dist/routes/chat.js +7 -2
  18. package/dist/routes/chat.js.map +1 -1
  19. package/dist/routes/core.d.ts +15 -4
  20. package/dist/routes/core.js +2 -2
  21. package/dist/routes/core.js.map +1 -1
  22. package/dist/routes/git.d.ts +9 -0
  23. package/dist/routes/git.js +6 -1
  24. package/dist/routes/git.js.map +1 -1
  25. package/dist/routes/raw.js +10 -6
  26. package/dist/routes/raw.js.map +1 -1
  27. package/dist/routes/sessions.d.ts +3189 -181
  28. package/dist/routes/sessions.js +24 -7
  29. package/dist/routes/sessions.js.map +1 -1
  30. package/dist/routes/settings.d.ts +445 -11
  31. package/dist/routes/settings.js +5 -4
  32. package/dist/routes/settings.js.map +1 -1
  33. package/dist/routes/tools.d.ts +945 -34
  34. package/dist/routes/tools.js +75 -8
  35. package/dist/routes/tools.js.map +1 -1
  36. package/dist/routes/workspaces.d.ts +4 -4
  37. package/dist/run-status.d.ts +39 -0
  38. package/dist/run-status.js +13 -0
  39. package/dist/run-status.js.map +1 -0
  40. package/dist/sidecar/methods.d.ts +1906 -52
  41. package/dist/sidecar/methods.js +9 -2
  42. package/dist/sidecar/methods.js.map +1 -1
  43. package/dist/sidecar/namespaces.d.ts +2421 -54
  44. package/dist/sidecar/namespaces.js +390 -36
  45. package/dist/sidecar/namespaces.js.map +1 -1
  46. package/dist/sidecar/rpc.d.ts +1 -0
  47. package/dist/sidecar/rpc.js +2 -0
  48. package/dist/sidecar/rpc.js.map +1 -1
  49. package/dist/sidecar/runtime.d.ts +74 -0
  50. package/dist/sidecar/runtime.js +29 -0
  51. package/dist/sidecar/runtime.js.map +1 -1
  52. package/dist/sidecar/version.d.ts +1 -1
  53. package/dist/sidecar/version.js +1 -1
  54. package/dist/speed.d.ts +14 -0
  55. package/dist/speed.js +6 -0
  56. package/dist/speed.js.map +1 -0
  57. package/dist/sse.d.ts +868 -5
  58. package/dist/sse.js +30 -7
  59. package/dist/sse.js.map +1 -1
  60. package/dist/transcribe-stream.d.ts +34 -0
  61. package/dist/transcribe-stream.js +23 -0
  62. package/dist/transcribe-stream.js.map +1 -0
  63. package/dist/views.d.ts +2627 -176
  64. package/dist/views.js +321 -52
  65. package/dist/views.js.map +1 -1
  66. package/fixtures/sidecar/aux.json +142 -0
  67. package/fixtures/sidecar/chat.json +28 -0
  68. package/fixtures/sidecar/checkpoints.json +12 -7
  69. package/fixtures/sidecar/commands.json +216 -108
  70. package/fixtures/sidecar/config.json +15 -0
  71. package/fixtures/sidecar/connectors.json +218 -0
  72. package/fixtures/sidecar/context-detail.json +77 -0
  73. package/fixtures/sidecar/cron.json +1004 -32
  74. package/fixtures/sidecar/dashboard_plugins.json +59 -0
  75. package/fixtures/sidecar/gateway.json +202 -0
  76. package/fixtures/sidecar/goals.json +5 -3
  77. package/fixtures/sidecar/kanban.json +139 -49
  78. package/fixtures/sidecar/memory.json +50 -0
  79. package/fixtures/sidecar/models.json +122 -0
  80. package/fixtures/sidecar/personalities.json +92 -0
  81. package/fixtures/sidecar/plugin-catalog.json +4 -0
  82. package/fixtures/sidecar/plugins.json +171 -27
  83. package/fixtures/sidecar/process.json +63 -0
  84. package/fixtures/sidecar/profiles.json +2 -0
  85. package/fixtures/sidecar/providers.json +14 -1
  86. package/fixtures/sidecar/rpc.json +39 -1
  87. package/fixtures/sidecar/runtime.json +130 -14
  88. package/fixtures/sidecar/skills.json +256 -13
  89. package/fixtures/sidecar/state_db.json +29 -2
  90. package/fixtures/sidecar/stt.json +62 -1
  91. package/fixtures/sidecar/text.json +20 -2
  92. package/fixtures/sidecar/toolsets.json +468 -0
  93. package/fixtures/sidecar/usage.json +22 -2
  94. package/fixtures/sidecar/write_approval.json +98 -0
  95. package/package.json +1 -1
@@ -1,4 +1,12 @@
1
1
  import { z } from 'zod';
2
+ /** Warnings and wording come from the Agent's selection guard registry, including future guard kinds. */
3
+ export declare const ModelSelectionWarningSchema: z.ZodObject<{
4
+ kind: z.ZodString;
5
+ title: z.ZodString;
6
+ model: z.ZodString;
7
+ provider: z.ZodString;
8
+ message: z.ZodString;
9
+ }, z.core.$strip>;
2
10
  /** Shared param shapes. */
3
11
  export declare const ProfileHomeParams: z.ZodObject<{
4
12
  profile_home: z.ZodString;
@@ -6,6 +14,43 @@ export declare const ProfileHomeParams: z.ZodObject<{
6
14
  export declare const BaseHomeParams: z.ZodObject<{
7
15
  base_home: z.ZodString;
8
16
  }, z.core.$strip>;
17
+ /** Profile-scoped toolset choices; clients render policy and selection without deriving them. */
18
+ export declare const ToolsetsCatalogSchema: z.ZodObject<{
19
+ toolsets: z.ZodArray<z.ZodObject<{
20
+ name: z.ZodString;
21
+ description: z.ZodString;
22
+ available: z.ZodBoolean;
23
+ selected: z.ZodBoolean;
24
+ unavailable_reason: z.ZodNullable<z.ZodEnum<{
25
+ unavailable: "unavailable";
26
+ disabled: "disabled";
27
+ }>>;
28
+ }, z.core.$strip>>;
29
+ selected_toolsets: z.ZodArray<z.ZodString>;
30
+ using_defaults: z.ZodBoolean;
31
+ }, z.core.$strip>;
32
+ export declare const TOOLSETS_METHODS: {
33
+ readonly 'toolsets.catalog': {
34
+ readonly params: z.ZodObject<{
35
+ profile_home: z.ZodString;
36
+ enabled_toolsets: z.ZodNullable<z.ZodArray<z.ZodString>>;
37
+ }, z.core.$strip>;
38
+ readonly result: z.ZodObject<{
39
+ toolsets: z.ZodArray<z.ZodObject<{
40
+ name: z.ZodString;
41
+ description: z.ZodString;
42
+ available: z.ZodBoolean;
43
+ selected: z.ZodBoolean;
44
+ unavailable_reason: z.ZodNullable<z.ZodEnum<{
45
+ unavailable: "unavailable";
46
+ disabled: "disabled";
47
+ }>>;
48
+ }, z.core.$strip>>;
49
+ selected_toolsets: z.ZodArray<z.ZodString>;
50
+ using_defaults: z.ZodBoolean;
51
+ }, z.core.$strip>;
52
+ };
53
+ };
9
54
  export declare const GoalStateSchema: z.ZodObject<{
10
55
  goal: z.ZodString;
11
56
  status: z.ZodString;
@@ -15,6 +60,11 @@ export declare const GoalStateSchema: z.ZodObject<{
15
60
  last_reason: z.ZodNullable<z.ZodString>;
16
61
  paused_reason: z.ZodNullable<z.ZodString>;
17
62
  }, z.core.$strip>;
63
+ /** TAL-808: `parked` is an active goal's live wait barrier: its reason and, for a timed wait, the Unix-seconds deadline. */
64
+ export declare const GoalParkedSchema: z.ZodObject<{
65
+ reason: z.ZodNullable<z.ZodString>;
66
+ until: z.ZodNullable<z.ZodNumber>;
67
+ }, z.core.$strip>;
18
68
  export declare const GoalStatusSchema: z.ZodObject<{
19
69
  goal: z.ZodNullable<z.ZodObject<{
20
70
  goal: z.ZodString;
@@ -26,6 +76,10 @@ export declare const GoalStatusSchema: z.ZodObject<{
26
76
  paused_reason: z.ZodNullable<z.ZodString>;
27
77
  }, z.core.$strip>>;
28
78
  active: z.ZodBoolean;
79
+ parked: z.ZodNullable<z.ZodObject<{
80
+ reason: z.ZodNullable<z.ZodString>;
81
+ until: z.ZodNullable<z.ZodNumber>;
82
+ }, z.core.$strip>>;
29
83
  message: z.ZodString;
30
84
  message_key: z.ZodOptional<z.ZodString>;
31
85
  message_args: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
@@ -76,6 +130,10 @@ export declare const GOALS_METHODS: {
76
130
  paused_reason: z.ZodNullable<z.ZodString>;
77
131
  }, z.core.$strip>>;
78
132
  active: z.ZodBoolean;
133
+ parked: z.ZodNullable<z.ZodObject<{
134
+ reason: z.ZodNullable<z.ZodString>;
135
+ until: z.ZodNullable<z.ZodNumber>;
136
+ }, z.core.$strip>>;
79
137
  message: z.ZodString;
80
138
  message_key: z.ZodOptional<z.ZodString>;
81
139
  message_args: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
@@ -88,6 +146,7 @@ export declare const GOALS_METHODS: {
88
146
  default_max_turns: z.ZodOptional<z.ZodNumber>;
89
147
  args: z.ZodString;
90
148
  stream_running: z.ZodOptional<z.ZodBoolean>;
149
+ workspace: z.ZodOptional<z.ZodString>;
91
150
  }, z.core.$strip>;
92
151
  readonly result: z.ZodObject<{
93
152
  ok: z.ZodBoolean;
@@ -153,6 +212,7 @@ export declare const GOALS_METHODS: {
153
212
  default_max_turns: z.ZodOptional<z.ZodNumber>;
154
213
  last_response: z.ZodString;
155
214
  user_initiated: z.ZodOptional<z.ZodBoolean>;
215
+ workspace: z.ZodOptional<z.ZodString>;
156
216
  }, z.core.$strip>;
157
217
  readonly result: z.ZodObject<{
158
218
  status: z.ZodNullable<z.ZodString>;
@@ -176,24 +236,154 @@ export declare const CommandSchema: z.ZodObject<{
176
236
  cli_only: z.ZodBoolean;
177
237
  gateway_only: z.ZodBoolean;
178
238
  exec: z.ZodBoolean;
239
+ prompt: z.ZodNullable<z.ZodEnum<{
240
+ unsupported: "unsupported";
241
+ expand: "expand";
242
+ }>>;
179
243
  }, z.core.$strip>;
180
244
  /**
181
245
  * A model-provider plugin installed and enabled in the profile (TAL-288); bundled providers are built-ins. `setup` is the Agent's
182
246
  * own verdict without spawning the plugin's CLI: `not_loaded` means the installed plugin could not be loaded (import failure, or its
183
247
  * provider id or directory name is taken by another profile's plugin in this process-wide registry).
184
248
  */
249
+ /**
250
+ * TAL-806: one field of a plugin manifest's `config_schema` (Agent `plugin_settings_fields`) with its current value from
251
+ * `plugins.entries.<key>.settings`, else `default`. A `secret` field carries its `.env` name and `has_value`, never a value.
252
+ */
253
+ export declare const PluginSettingFieldSchema: z.ZodObject<{
254
+ key: z.ZodString;
255
+ type: z.ZodEnum<{
256
+ string: "string";
257
+ number: "number";
258
+ boolean: "boolean";
259
+ enum: "enum";
260
+ json: "json";
261
+ secret: "secret";
262
+ }>;
263
+ label: z.ZodString;
264
+ description: z.ZodString;
265
+ required: z.ZodBoolean;
266
+ choices: z.ZodOptional<z.ZodArray<z.ZodString>>;
267
+ default: z.ZodOptional<z.ZodUnknown>;
268
+ value: z.ZodOptional<z.ZodUnknown>;
269
+ env: z.ZodOptional<z.ZodString>;
270
+ has_value: z.ZodOptional<z.ZodBoolean>;
271
+ }, z.core.$strip>;
272
+ export type PluginSettingField = z.infer<typeof PluginSettingFieldSchema>;
273
+ /** Persistence succeeded; this separately describes application to live plugin MCP connections. */
274
+ export declare const PluginRuntimeApplicationSchema: z.ZodEnum<{
275
+ unknown: "unknown";
276
+ applied: "applied";
277
+ restart_required: "restart_required";
278
+ }>;
279
+ /** TAL-1276: one OAuth client a plugin manifest declares, its grant's state as `hermes auth status` maps it, and the hosts the code is approved at and exchanged at. */
280
+ export declare const PluginOAuthStateSchema: z.ZodEnum<{
281
+ signed_in: "signed_in";
282
+ sign_in_needed: "sign_in_needed";
283
+ revoked: "revoked";
284
+ logged_out: "logged_out";
285
+ }>;
286
+ export declare const PluginOAuthClientSchema: z.ZodObject<{
287
+ id: z.ZodString;
288
+ state: z.ZodEnum<{
289
+ signed_in: "signed_in";
290
+ sign_in_needed: "sign_in_needed";
291
+ revoked: "revoked";
292
+ logged_out: "logged_out";
293
+ }>;
294
+ authorize_host: z.ZodString;
295
+ token_host: z.ZodString;
296
+ }, z.core.$strip>;
297
+ export type PluginOAuthClient = z.infer<typeof PluginOAuthClientSchema>;
298
+ export declare const PluginUpdateResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
299
+ key: z.ZodString;
300
+ status: z.ZodLiteral<"updated">;
301
+ }, z.core.$strip>, z.ZodObject<{
302
+ key: z.ZodString;
303
+ status: z.ZodLiteral<"needs_consent">;
304
+ verdict: z.ZodLiteral<"caution">;
305
+ findings: z.ZodString;
306
+ consent_token: z.ZodString;
307
+ }, z.core.$strip>, z.ZodObject<{
308
+ key: z.ZodString;
309
+ status: z.ZodLiteral<"blocked">;
310
+ verdict: z.ZodString;
311
+ findings: z.ZodString;
312
+ }, z.core.$strip>], "status">;
313
+ export type PluginUpdateResult = z.infer<typeof PluginUpdateResultSchema>;
314
+ export declare const PluginCatalogQuerySchema: z.ZodObject<{
315
+ query: z.ZodDefault<z.ZodString>;
316
+ offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
317
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
318
+ }, z.core.$strip>;
319
+ export declare const PluginInstallInputSchema: z.ZodObject<{
320
+ name: z.ZodString;
321
+ consent_token: z.ZodOptional<z.ZodString>;
322
+ }, z.core.$strip>;
323
+ export declare const PluginCatalogSchema: z.ZodObject<{
324
+ supported: z.ZodBoolean;
325
+ read_only: z.ZodOptional<z.ZodBoolean>;
326
+ entries: z.ZodArray<z.ZodObject<{
327
+ name: z.ZodString;
328
+ title: z.ZodString;
329
+ description: z.ZodString;
330
+ repo: z.ZodString;
331
+ sha: z.ZodString;
332
+ tier: z.ZodString;
333
+ category: z.ZodString;
334
+ requirements: z.ZodArray<z.ZodString>;
335
+ installed_key: z.ZodNullable<z.ZodString>;
336
+ installed_sha: z.ZodNullable<z.ZodString>;
337
+ can_install: z.ZodBoolean;
338
+ refusal: z.ZodNullable<z.ZodString>;
339
+ }, z.core.$strip>>;
340
+ total: z.ZodNumber;
341
+ next_offset: z.ZodNullable<z.ZodNumber>;
342
+ }, z.core.$strip>;
343
+ export declare const PluginInstallResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
344
+ name: z.ZodString;
345
+ key: z.ZodString;
346
+ status: z.ZodLiteral<"installed">;
347
+ enabled: z.ZodLiteral<false>;
348
+ }, z.core.$strip>, z.ZodObject<{
349
+ name: z.ZodString;
350
+ status: z.ZodLiteral<"needs_consent">;
351
+ findings: z.ZodString;
352
+ consent_token: z.ZodString;
353
+ }, z.core.$strip>, z.ZodObject<{
354
+ name: z.ZodString;
355
+ status: z.ZodLiteral<"blocked">;
356
+ findings: z.ZodString;
357
+ }, z.core.$strip>], "status">;
358
+ export type PluginInstallResult = z.infer<typeof PluginInstallResultSchema>;
359
+ export type PluginCatalog = z.infer<typeof PluginCatalogSchema>;
185
360
  export declare const PluginProviderSchema: z.ZodObject<{
186
361
  name: z.ZodString;
187
362
  display_name: z.ZodString;
188
363
  auth_type: z.ZodString;
189
364
  setup: z.ZodEnum<{
365
+ unavailable: "unavailable";
190
366
  ready: "ready";
191
367
  missing_cli: "missing_cli";
192
368
  needs_setup: "needs_setup";
193
369
  not_loaded: "not_loaded";
194
- unavailable: "unavailable";
195
370
  }>;
196
371
  }, z.core.$strip>;
372
+ /** Profile-owned Agent dashboards use Web protocol panels; native Desktop bundles need migration. */
373
+ export declare const AgentDashboardPluginSchema: z.ZodObject<{
374
+ name: z.ZodString;
375
+ label: z.ZodString;
376
+ version: z.ZodString;
377
+ description: z.ZodString;
378
+ enabled: z.ZodBoolean;
379
+ panel: z.ZodNullable<z.ZodString>;
380
+ has_api: z.ZodBoolean;
381
+ }, z.core.$strip>;
382
+ export declare const AgentDashboardResponseSchema: z.ZodObject<{
383
+ status: z.ZodNumber;
384
+ body: z.ZodString;
385
+ content_type: z.ZodString;
386
+ }, z.core.$strip>;
197
387
  /** A skill bundle: `/<name>` loads its `skill_count` skills in one message (TAL-265). */
198
388
  export declare const CommandBundleSchema: z.ZodObject<{
199
389
  name: z.ZodString;
@@ -225,13 +415,23 @@ export declare const COMMANDS_METHODS: {
225
415
  cli_only: z.ZodBoolean;
226
416
  gateway_only: z.ZodBoolean;
227
417
  exec: z.ZodBoolean;
418
+ prompt: z.ZodNullable<z.ZodEnum<{
419
+ unsupported: "unsupported";
420
+ expand: "expand";
421
+ }>>;
228
422
  }, z.core.$strip>>;
229
423
  }, z.core.$strip>;
230
424
  };
425
+ /**
426
+ * With `session_id`, a plugin command runs under that chat's session binding and `workspace` (TAL-904) and receives the session
427
+ * as its handler declares it; every recognised command fires the Agent's `pre_command` hook with that session (TAL-1267).
428
+ */
231
429
  readonly 'commands.exec': {
232
430
  readonly params: z.ZodObject<{
233
431
  profile_home: z.ZodString;
234
432
  command: z.ZodString;
433
+ session_id: z.ZodOptional<z.ZodString>;
434
+ workspace: z.ZodOptional<z.ZodString>;
235
435
  }, z.core.$strip>;
236
436
  readonly result: z.ZodObject<{
237
437
  output: z.ZodString;
@@ -241,6 +441,24 @@ export declare const COMMANDS_METHODS: {
241
441
  }>;
242
442
  }, z.core.$strip>;
243
443
  };
444
+ /**
445
+ * `/<prompt built-in> [args]` as the turn text (`message`) the Agent's builder writes for the session's profile, workspace and toolsets.
446
+ * `name` is the built-in's canonical name, null when the command is not one; `message` is null when this Agent has no builder for it.
447
+ * A failing builder errors `prompt_expand_failed`. Every built-in fires the Agent's `pre_command` hook with `session_id` (TAL-1279).
448
+ */
449
+ readonly 'commands.expand_prompt': {
450
+ readonly params: z.ZodObject<{
451
+ profile_home: z.ZodString;
452
+ command: z.ZodString;
453
+ session_id: z.ZodOptional<z.ZodString>;
454
+ workspace: z.ZodString;
455
+ enabled_toolsets: z.ZodNullable<z.ZodArray<z.ZodString>>;
456
+ }, z.core.$strip>;
457
+ readonly result: z.ZodObject<{
458
+ name: z.ZodNullable<z.ZodString>;
459
+ message: z.ZodNullable<z.ZodString>;
460
+ }, z.core.$strip>;
461
+ };
244
462
  readonly 'commands.bundles': {
245
463
  readonly params: z.ZodObject<{
246
464
  profile_home: z.ZodString;
@@ -276,6 +494,64 @@ export declare const COMMANDS_METHODS: {
276
494
  moa: z.ZodRecord<z.ZodString, z.ZodUnknown>;
277
495
  }, z.core.$strip>;
278
496
  };
497
+ readonly 'plugins.dashboard_list': {
498
+ readonly params: z.ZodObject<{
499
+ profile_home: z.ZodString;
500
+ }, z.core.$strip>;
501
+ readonly result: z.ZodObject<{
502
+ supported: z.ZodBoolean;
503
+ plugins: z.ZodArray<z.ZodObject<{
504
+ name: z.ZodString;
505
+ label: z.ZodString;
506
+ version: z.ZodString;
507
+ description: z.ZodString;
508
+ enabled: z.ZodBoolean;
509
+ panel: z.ZodNullable<z.ZodString>;
510
+ has_api: z.ZodBoolean;
511
+ }, z.core.$strip>>;
512
+ }, z.core.$strip>;
513
+ };
514
+ readonly 'plugins.dashboard_toggle': {
515
+ readonly params: z.ZodObject<{
516
+ profile_home: z.ZodString;
517
+ name: z.ZodString;
518
+ enabled: z.ZodBoolean;
519
+ }, z.core.$strip>;
520
+ readonly result: z.ZodObject<{
521
+ ok: z.ZodLiteral<true>;
522
+ }, z.core.$strip>;
523
+ };
524
+ readonly 'plugins.dashboard_asset': {
525
+ readonly params: z.ZodObject<{
526
+ profile_home: z.ZodString;
527
+ name: z.ZodString;
528
+ path: z.ZodString;
529
+ }, z.core.$strip>;
530
+ readonly result: z.ZodObject<{
531
+ status: z.ZodNumber;
532
+ body: z.ZodString;
533
+ content_type: z.ZodString;
534
+ }, z.core.$strip>;
535
+ };
536
+ /** Buffered HTTP only. Cancellation abandons the result; the Agent has no handler-cancel operation. */
537
+ readonly 'plugins.dashboard_request': {
538
+ readonly params: z.ZodObject<{
539
+ profile_home: z.ZodString;
540
+ name: z.ZodString;
541
+ path: z.ZodString;
542
+ method: z.ZodString;
543
+ query: z.ZodString;
544
+ headers: z.ZodRecord<z.ZodString, z.ZodString>;
545
+ body: z.ZodString;
546
+ authenticated: z.ZodBoolean;
547
+ websocket: z.ZodBoolean;
548
+ }, z.core.$strip>;
549
+ readonly result: z.ZodObject<{
550
+ status: z.ZodNumber;
551
+ body: z.ZodString;
552
+ content_type: z.ZodString;
553
+ }, z.core.$strip>;
554
+ };
279
555
  readonly 'plugins.providers': {
280
556
  readonly params: z.ZodObject<{
281
557
  profile_home: z.ZodString;
@@ -286,11 +562,11 @@ export declare const COMMANDS_METHODS: {
286
562
  display_name: z.ZodString;
287
563
  auth_type: z.ZodString;
288
564
  setup: z.ZodEnum<{
565
+ unavailable: "unavailable";
289
566
  ready: "ready";
290
567
  missing_cli: "missing_cli";
291
568
  needs_setup: "needs_setup";
292
569
  not_loaded: "not_loaded";
293
- unavailable: "unavailable";
294
570
  }>;
295
571
  }, z.core.$strip>>;
296
572
  }, z.core.$strip>;
@@ -311,12 +587,217 @@ export declare const COMMANDS_METHODS: {
311
587
  activation: z.ZodString;
312
588
  hooks: z.ZodArray<z.ZodString>;
313
589
  is_active_provider: z.ZodOptional<z.ZodBoolean>;
590
+ update_available: z.ZodOptional<z.ZodBoolean>;
591
+ latest_revision: z.ZodOptional<z.ZodString>;
314
592
  }, z.core.$strip>>;
315
593
  supported_hooks: z.ZodArray<z.ZodString>;
316
594
  }, z.core.$strip>;
317
595
  };
596
+ readonly 'plugins.catalog': {
597
+ readonly params: z.ZodObject<{
598
+ profile_home: z.ZodString;
599
+ query: z.ZodDefault<z.ZodString>;
600
+ offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
601
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
602
+ }, z.core.$strip>;
603
+ readonly result: z.ZodObject<{
604
+ supported: z.ZodBoolean;
605
+ read_only: z.ZodOptional<z.ZodBoolean>;
606
+ entries: z.ZodArray<z.ZodObject<{
607
+ name: z.ZodString;
608
+ title: z.ZodString;
609
+ description: z.ZodString;
610
+ repo: z.ZodString;
611
+ sha: z.ZodString;
612
+ tier: z.ZodString;
613
+ category: z.ZodString;
614
+ requirements: z.ZodArray<z.ZodString>;
615
+ installed_key: z.ZodNullable<z.ZodString>;
616
+ installed_sha: z.ZodNullable<z.ZodString>;
617
+ can_install: z.ZodBoolean;
618
+ refusal: z.ZodNullable<z.ZodString>;
619
+ }, z.core.$strip>>;
620
+ total: z.ZodNumber;
621
+ next_offset: z.ZodNullable<z.ZodNumber>;
622
+ }, z.core.$strip>;
623
+ };
624
+ readonly 'plugins.install': {
625
+ readonly params: z.ZodObject<{
626
+ profile_home: z.ZodString;
627
+ name: z.ZodString;
628
+ consent_token: z.ZodOptional<z.ZodString>;
629
+ }, z.core.$strip>;
630
+ readonly result: z.ZodDiscriminatedUnion<[z.ZodObject<{
631
+ name: z.ZodString;
632
+ key: z.ZodString;
633
+ status: z.ZodLiteral<"installed">;
634
+ enabled: z.ZodLiteral<false>;
635
+ }, z.core.$strip>, z.ZodObject<{
636
+ name: z.ZodString;
637
+ status: z.ZodLiteral<"needs_consent">;
638
+ findings: z.ZodString;
639
+ consent_token: z.ZodString;
640
+ }, z.core.$strip>, z.ZodObject<{
641
+ name: z.ZodString;
642
+ status: z.ZodLiteral<"blocked">;
643
+ findings: z.ZodString;
644
+ }, z.core.$strip>], "status">;
645
+ };
646
+ readonly 'plugins.update': {
647
+ readonly params: z.ZodObject<{
648
+ profile_home: z.ZodString;
649
+ key: z.ZodString;
650
+ accept_caution: z.ZodOptional<z.ZodBoolean>;
651
+ consent_token: z.ZodOptional<z.ZodString>;
652
+ }, z.core.$strip>;
653
+ readonly result: z.ZodDiscriminatedUnion<[z.ZodObject<{
654
+ key: z.ZodString;
655
+ status: z.ZodLiteral<"updated">;
656
+ }, z.core.$strip>, z.ZodObject<{
657
+ key: z.ZodString;
658
+ status: z.ZodLiteral<"needs_consent">;
659
+ verdict: z.ZodLiteral<"caution">;
660
+ findings: z.ZodString;
661
+ consent_token: z.ZodString;
662
+ }, z.core.$strip>, z.ZodObject<{
663
+ key: z.ZodString;
664
+ status: z.ZodLiteral<"blocked">;
665
+ verdict: z.ZodString;
666
+ findings: z.ZodString;
667
+ }, z.core.$strip>], "status">;
668
+ };
669
+ /** TAL-820: each profile's `plugins.isolation` and installed third-party plugin count, read without loading a plugin. */
670
+ readonly 'plugins.isolation': {
671
+ readonly params: z.ZodObject<{
672
+ base_home: z.ZodString;
673
+ }, z.core.$strip>;
674
+ readonly result: z.ZodObject<{
675
+ profiles: z.ZodArray<z.ZodObject<{
676
+ name: z.ZodString;
677
+ isolation: z.ZodEnum<{
678
+ in_process: "in_process";
679
+ host: "host";
680
+ }>;
681
+ third_party_plugins: z.ZodNumber;
682
+ }, z.core.$strip>>;
683
+ }, z.core.$strip>;
684
+ };
685
+ /** TAL-806: plugins whose manifest declares settings; `supported` is false on an Agent without `hermes_cli.plugins_settings`. */
686
+ readonly 'plugins.settings': {
687
+ readonly params: z.ZodObject<{
688
+ profile_home: z.ZodString;
689
+ }, z.core.$strip>;
690
+ readonly result: z.ZodObject<{
691
+ supported: z.ZodBoolean;
692
+ plugins: z.ZodArray<z.ZodObject<{
693
+ key: z.ZodString;
694
+ fields: z.ZodArray<z.ZodObject<{
695
+ key: z.ZodString;
696
+ type: z.ZodEnum<{
697
+ string: "string";
698
+ number: "number";
699
+ boolean: "boolean";
700
+ enum: "enum";
701
+ json: "json";
702
+ secret: "secret";
703
+ }>;
704
+ label: z.ZodString;
705
+ description: z.ZodString;
706
+ required: z.ZodBoolean;
707
+ choices: z.ZodOptional<z.ZodArray<z.ZodString>>;
708
+ default: z.ZodOptional<z.ZodUnknown>;
709
+ value: z.ZodOptional<z.ZodUnknown>;
710
+ env: z.ZodOptional<z.ZodString>;
711
+ has_value: z.ZodOptional<z.ZodBoolean>;
712
+ }, z.core.$strip>>;
713
+ }, z.core.$strip>>;
714
+ }, z.core.$strip>;
715
+ };
716
+ /**
717
+ * TAL-1276: plugins whose manifest declares OAuth clients (Agent v0.22.3+), each client's sign-in state as
718
+ * `hermes auth status <plugin>:<id>` reports it, and the hosts the CLI names before signing in: the code is approved
719
+ * at `authorize_host` and exchanged at `token_host`. `supported` is false on an Agent without the plugin OAuth helpers.
720
+ */
721
+ readonly 'plugins.oauth_status': {
722
+ readonly params: z.ZodObject<{
723
+ profile_home: z.ZodString;
724
+ }, z.core.$strip>;
725
+ readonly result: z.ZodObject<{
726
+ supported: z.ZodBoolean;
727
+ plugins: z.ZodArray<z.ZodObject<{
728
+ key: z.ZodString;
729
+ clients: z.ZodArray<z.ZodObject<{
730
+ id: z.ZodString;
731
+ state: z.ZodEnum<{
732
+ signed_in: "signed_in";
733
+ sign_in_needed: "sign_in_needed";
734
+ revoked: "revoked";
735
+ logged_out: "logged_out";
736
+ }>;
737
+ authorize_host: z.ZodString;
738
+ token_host: z.ZodString;
739
+ }, z.core.$strip>>;
740
+ }, z.core.$strip>>;
741
+ }, z.core.$strip>;
742
+ };
743
+ /** TAL-1276: `hermes auth logout <plugin>:<id>`; `removed` is false when no grant was stored. Errors `oauth_unsupported` on older Agents. */
744
+ readonly 'plugins.oauth_logout': {
745
+ readonly params: z.ZodObject<{
746
+ profile_home: z.ZodString;
747
+ key: z.ZodString;
748
+ id: z.ZodString;
749
+ }, z.core.$strip>;
750
+ readonly result: z.ZodObject<{
751
+ key: z.ZodString;
752
+ id: z.ZodString;
753
+ removed: z.ZodBoolean;
754
+ }, z.core.$strip>;
755
+ };
756
+ /**
757
+ * TAL-806: write non-secret `values` through the Agent's locked plugin-state writer and return the refreshed fields.
758
+ * An undeclared key, a secret or a type mismatch is invalid params; a managed install or key errors `plugin_settings_managed`.
759
+ * `secret_envs` (secret key → `.env` name the caller wrote) is checked against the current manifest before anything is
760
+ * written; a key that is no longer a secret stored under that name errors `plugin_settings_changed`.
761
+ */
762
+ readonly 'plugins.settings_save': {
763
+ readonly params: z.ZodObject<{
764
+ profile_home: z.ZodString;
765
+ key: z.ZodString;
766
+ values: z.ZodRecord<z.ZodString, z.ZodUnknown>;
767
+ secret_envs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
768
+ }, z.core.$strip>;
769
+ readonly result: z.ZodObject<{
770
+ key: z.ZodString;
771
+ written: z.ZodArray<z.ZodString>;
772
+ fields: z.ZodArray<z.ZodObject<{
773
+ key: z.ZodString;
774
+ type: z.ZodEnum<{
775
+ string: "string";
776
+ number: "number";
777
+ boolean: "boolean";
778
+ enum: "enum";
779
+ json: "json";
780
+ secret: "secret";
781
+ }>;
782
+ label: z.ZodString;
783
+ description: z.ZodString;
784
+ required: z.ZodBoolean;
785
+ choices: z.ZodOptional<z.ZodArray<z.ZodString>>;
786
+ default: z.ZodOptional<z.ZodUnknown>;
787
+ value: z.ZodOptional<z.ZodUnknown>;
788
+ env: z.ZodOptional<z.ZodString>;
789
+ has_value: z.ZodOptional<z.ZodBoolean>;
790
+ }, z.core.$strip>>;
791
+ runtime_application: z.ZodOptional<z.ZodEnum<{
792
+ unknown: "unknown";
793
+ applied: "applied";
794
+ restart_required: "restart_required";
795
+ }>>;
796
+ }, z.core.$strip>;
797
+ };
318
798
  };
319
- /** `claim_live`: a running task's worker still holds its claim. `has_completion_evidence`: the task stores a result, which the Agent requires to complete it (TAL-557). */
799
+ /** `claim_live`: a running task's worker still holds its claim. `has_completion_evidence`: the task stores a result, which the Agent requires to complete it (TAL-557).
800
+ * `agent_move_targets`: the Agent workflow's manual moves from the task's status, `null` before Agent 0.21.6 (TAL-796). */
320
801
  export declare const KanbanTaskSchema: z.ZodObject<{
321
802
  id: z.ZodString;
322
803
  title: z.ZodString;
@@ -324,7 +805,23 @@ export declare const KanbanTaskSchema: z.ZodObject<{
324
805
  priority: z.ZodNumber;
325
806
  claim_live: z.ZodBoolean;
326
807
  has_completion_evidence: z.ZodBoolean;
808
+ agent_move_targets: z.ZodNullable<z.ZodArray<z.ZodString>>;
327
809
  }, z.core.$catchall<z.ZodUnknown>>;
810
+ /** Task detail's links (TAL-809): `link_tasks` names each linked task that still exists; `current_run_started_at` is the active run's start, `null` without one (`started_at` is the first-ever start). */
811
+ export declare const KanbanTaskLinksShape: {
812
+ links: z.ZodObject<{
813
+ parents: z.ZodArray<z.ZodString>;
814
+ children: z.ZodArray<z.ZodString>;
815
+ }, z.core.$strip>;
816
+ link_tasks: z.ZodArray<z.ZodObject<{
817
+ id: z.ZodString;
818
+ title: z.ZodString;
819
+ status: z.ZodString;
820
+ }, z.core.$strip>>;
821
+ };
822
+ export declare const KanbanRunStartShape: {
823
+ current_run_started_at: z.ZodNullable<z.ZodNumber>;
824
+ };
328
825
  export declare const KanbanBoardSchema: z.ZodUnion<readonly [z.ZodObject<{
329
826
  changed: z.ZodLiteral<false>;
330
827
  latest_event_id: z.ZodNumber;
@@ -333,6 +830,7 @@ export declare const KanbanBoardSchema: z.ZodUnion<readonly [z.ZodObject<{
333
830
  changed: z.ZodLiteral<true>;
334
831
  columns: z.ZodArray<z.ZodObject<{
335
832
  name: z.ZodString;
833
+ label: z.ZodString;
336
834
  tasks: z.ZodArray<z.ZodObject<{
337
835
  id: z.ZodString;
338
836
  title: z.ZodString;
@@ -340,6 +838,7 @@ export declare const KanbanBoardSchema: z.ZodUnion<readonly [z.ZodObject<{
340
838
  priority: z.ZodNumber;
341
839
  claim_live: z.ZodBoolean;
342
840
  has_completion_evidence: z.ZodBoolean;
841
+ agent_move_targets: z.ZodNullable<z.ZodArray<z.ZodString>>;
343
842
  }, z.core.$catchall<z.ZodUnknown>>>;
344
843
  }, z.core.$strip>>;
345
844
  tenants: z.ZodArray<z.ZodString>;
@@ -392,6 +891,7 @@ export declare const KANBAN_METHODS: {
392
891
  changed: z.ZodLiteral<true>;
393
892
  columns: z.ZodArray<z.ZodObject<{
394
893
  name: z.ZodString;
894
+ label: z.ZodString;
395
895
  tasks: z.ZodArray<z.ZodObject<{
396
896
  id: z.ZodString;
397
897
  title: z.ZodString;
@@ -399,6 +899,7 @@ export declare const KANBAN_METHODS: {
399
899
  priority: z.ZodNumber;
400
900
  claim_live: z.ZodBoolean;
401
901
  has_completion_evidence: z.ZodBoolean;
902
+ agent_move_targets: z.ZodNullable<z.ZodArray<z.ZodString>>;
402
903
  }, z.core.$catchall<z.ZodUnknown>>>;
403
904
  }, z.core.$strip>>;
404
905
  tenants: z.ZodArray<z.ZodString>;
@@ -491,6 +992,17 @@ export declare const KANBAN_METHODS: {
491
992
  task_id: z.ZodString;
492
993
  }, z.core.$strip>;
493
994
  readonly result: z.ZodObject<{
995
+ runs: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
996
+ read_only: z.ZodBoolean;
997
+ links: z.ZodObject<{
998
+ parents: z.ZodArray<z.ZodString>;
999
+ children: z.ZodArray<z.ZodString>;
1000
+ }, z.core.$strip>;
1001
+ link_tasks: z.ZodArray<z.ZodObject<{
1002
+ id: z.ZodString;
1003
+ title: z.ZodString;
1004
+ status: z.ZodString;
1005
+ }, z.core.$strip>>;
494
1006
  task: z.ZodObject<{
495
1007
  id: z.ZodString;
496
1008
  title: z.ZodString;
@@ -498,15 +1010,11 @@ export declare const KANBAN_METHODS: {
498
1010
  priority: z.ZodNumber;
499
1011
  claim_live: z.ZodBoolean;
500
1012
  has_completion_evidence: z.ZodBoolean;
1013
+ agent_move_targets: z.ZodNullable<z.ZodArray<z.ZodString>>;
1014
+ current_run_started_at: z.ZodNullable<z.ZodNumber>;
501
1015
  }, z.core.$catchall<z.ZodUnknown>>;
502
1016
  comments: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
503
1017
  events: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
504
- links: z.ZodObject<{
505
- parents: z.ZodArray<z.ZodString>;
506
- children: z.ZodArray<z.ZodString>;
507
- }, z.core.$strip>;
508
- runs: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
509
- read_only: z.ZodBoolean;
510
1018
  }, z.core.$strip>;
511
1019
  };
512
1020
  readonly 'kanban.create_task': {
@@ -523,6 +1031,7 @@ export declare const KANBAN_METHODS: {
523
1031
  priority: z.ZodNumber;
524
1032
  claim_live: z.ZodBoolean;
525
1033
  has_completion_evidence: z.ZodBoolean;
1034
+ agent_move_targets: z.ZodNullable<z.ZodArray<z.ZodString>>;
526
1035
  }, z.core.$catchall<z.ZodUnknown>>;
527
1036
  read_only: z.ZodBoolean;
528
1037
  }, z.core.$strip>;
@@ -542,6 +1051,7 @@ export declare const KANBAN_METHODS: {
542
1051
  priority: z.ZodNumber;
543
1052
  claim_live: z.ZodBoolean;
544
1053
  has_completion_evidence: z.ZodBoolean;
1054
+ agent_move_targets: z.ZodNullable<z.ZodArray<z.ZodString>>;
545
1055
  }, z.core.$catchall<z.ZodUnknown>>;
546
1056
  read_only: z.ZodBoolean;
547
1057
  }, z.core.$strip>;
@@ -566,6 +1076,7 @@ export declare const KANBAN_METHODS: {
566
1076
  priority: z.ZodNumber;
567
1077
  claim_live: z.ZodBoolean;
568
1078
  has_completion_evidence: z.ZodBoolean;
1079
+ agent_move_targets: z.ZodNullable<z.ZodArray<z.ZodString>>;
569
1080
  }, z.core.$catchall<z.ZodUnknown>>;
570
1081
  read_only: z.ZodBoolean;
571
1082
  }, z.core.$strip>;
@@ -662,12 +1173,15 @@ export declare const KANBAN_METHODS: {
662
1173
  read_only: z.ZodBoolean;
663
1174
  }, z.core.$strip>;
664
1175
  };
1176
+ /** `column_order`: the Agent workflow's column keys in board order (TAL-796). */
665
1177
  readonly 'kanban.stats': {
666
1178
  readonly params: z.ZodObject<{
667
1179
  profile_home: z.ZodString;
668
1180
  board: z.ZodOptional<z.ZodNullable<z.ZodString>>;
669
1181
  }, z.core.$strip>;
670
- readonly result: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1182
+ readonly result: z.ZodObject<{
1183
+ column_order: z.ZodArray<z.ZodString>;
1184
+ }, z.core.$catchall<z.ZodUnknown>>;
671
1185
  };
672
1186
  readonly 'kanban.assignees': {
673
1187
  readonly params: z.ZodObject<{
@@ -723,6 +1237,12 @@ export declare const KANBAN_METHODS: {
723
1237
  readonly result: z.ZodRecord<z.ZodString, z.ZodUnknown>;
724
1238
  };
725
1239
  };
1240
+ /** Busy Agent work, or retained canonical history that this Agent cannot safely retire. */
1241
+ export declare const SessionDeleteRefusedSchema: z.ZodEnum<{
1242
+ active_turn: "active_turn";
1243
+ runtime_history_unsupported: "runtime_history_unsupported";
1244
+ }>;
1245
+ export type SessionDeleteRefused = z.infer<typeof SessionDeleteRefusedSchema>;
726
1246
  export declare const STATE_DB_METHODS: {
727
1247
  readonly 'state_db.sync_start': {
728
1248
  readonly params: z.ZodObject<{
@@ -764,13 +1284,25 @@ export declare const STATE_DB_METHODS: {
764
1284
  ok: z.ZodBoolean;
765
1285
  }, z.core.$strip>;
766
1286
  };
1287
+ /**
1288
+ * TAL-792: `include_compression_lineage` also removes the session's compression continuations, resolved and removed in the
1289
+ * same transaction (tip first). `refused` when another Agent process holds a live turn lease or compression lock on any
1290
+ * row the delete would remove, or the Agent lacks retirement APIs for retained canonical history; nothing is removed. `deleted_ids` is the transaction's committed target set,
1291
+ * including continuations/delegates; it remains present when only post-commit artifact cleanup failed.
1292
+ */
767
1293
  readonly 'state_db.delete_cli_session': {
768
1294
  readonly params: z.ZodObject<{
769
1295
  profile_home: z.ZodString;
770
1296
  session_id: z.ZodString;
1297
+ include_compression_lineage: z.ZodOptional<z.ZodBoolean>;
771
1298
  }, z.core.$strip>;
772
1299
  readonly result: z.ZodObject<{
773
1300
  ok: z.ZodBoolean;
1301
+ refused: z.ZodOptional<z.ZodEnum<{
1302
+ active_turn: "active_turn";
1303
+ runtime_history_unsupported: "runtime_history_unsupported";
1304
+ }>>;
1305
+ deleted_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
774
1306
  }, z.core.$strip>;
775
1307
  };
776
1308
  /** TAL-258: append one row through the Agent's `SessionDB.append_message` (bumps `message_count`); `ok` is false without a state.db. */
@@ -787,12 +1319,41 @@ export declare const STATE_DB_METHODS: {
787
1319
  ok: z.ZodBoolean;
788
1320
  }, z.core.$strip>;
789
1321
  };
1322
+ /**
1323
+ * TAL-1274: the Agent's low-disk session auto-prune question for the profile (Agent v0.22.3 `hermes_cli.prune_advisor`), as the
1324
+ * Agent's own `lines` naming `/autoprune on|off|later`; null while the Agent would not ask (disk not low, `sessions.auto_prune`
1325
+ * set, or snoozed) or has no advisor. May measure state.db, which takes seconds on a large store.
1326
+ */
1327
+ readonly 'state_db.prune_advice': {
1328
+ readonly params: z.ZodObject<{
1329
+ profile_home: z.ZodString;
1330
+ }, z.core.$strip>;
1331
+ readonly result: z.ZodObject<{
1332
+ advice: z.ZodNullable<z.ZodObject<{
1333
+ lines: z.ZodArray<z.ZodString>;
1334
+ }, z.core.$strip>>;
1335
+ }, z.core.$strip>;
1336
+ };
790
1337
  };
791
1338
  /** TAL-213: the profile's canonical Bot Chat (its session titled exactly "Bot Chat") and that chat's live compression tip. */
792
1339
  export declare const CanonicalBotChatSchema: z.ZodObject<{
793
1340
  session_id: z.ZodString;
794
1341
  tip_session_id: z.ZodString;
795
1342
  }, z.core.$strip>;
1343
+ /**
1344
+ * TAL-805: a profile's gateway under the host multiplexer. `own` runs its own gateway process, `served` is served by the
1345
+ * live host gateway, `parked` was stopped through the host (`hermes -p X gateway stop`) and nothing runs, `standalone` opted out of the host
1346
+ * and is not running, `stopped` is none of these. Only `own` and `served` are running; Agents without the multiplexer
1347
+ * helpers report `own` or `stopped`.
1348
+ */
1349
+ export declare const GatewayModeSchema: z.ZodEnum<{
1350
+ stopped: "stopped";
1351
+ parked: "parked";
1352
+ own: "own";
1353
+ served: "served";
1354
+ standalone: "standalone";
1355
+ }>;
1356
+ export type GatewayMode = z.infer<typeof GatewayModeSchema>;
796
1357
  export declare const ProfileRowSchema: z.ZodObject<{
797
1358
  name: z.ZodString;
798
1359
  path: z.ZodString;
@@ -805,6 +1366,13 @@ export declare const ProfileRowSchema: z.ZodObject<{
805
1366
  skill_count: z.ZodNumber;
806
1367
  enabled_skills: z.ZodNumber;
807
1368
  total_skills: z.ZodNumber;
1369
+ gateway_mode: z.ZodDefault<z.ZodEnum<{
1370
+ stopped: "stopped";
1371
+ parked: "parked";
1372
+ own: "own";
1373
+ served: "served";
1374
+ standalone: "standalone";
1375
+ }>>;
808
1376
  display_name: z.ZodDefault<z.ZodString>;
809
1377
  description: z.ZodDefault<z.ZodString>;
810
1378
  has_avatar: z.ZodDefault<z.ZodBoolean>;
@@ -831,6 +1399,13 @@ export declare const PROFILES_METHODS: {
831
1399
  skill_count: z.ZodNumber;
832
1400
  enabled_skills: z.ZodNumber;
833
1401
  total_skills: z.ZodNumber;
1402
+ gateway_mode: z.ZodDefault<z.ZodEnum<{
1403
+ stopped: "stopped";
1404
+ parked: "parked";
1405
+ own: "own";
1406
+ served: "served";
1407
+ standalone: "standalone";
1408
+ }>>;
834
1409
  display_name: z.ZodDefault<z.ZodString>;
835
1410
  description: z.ZodDefault<z.ZodString>;
836
1411
  has_avatar: z.ZodDefault<z.ZodBoolean>;
@@ -861,6 +1436,13 @@ export declare const PROFILES_METHODS: {
861
1436
  skill_count: z.ZodNumber;
862
1437
  enabled_skills: z.ZodNumber;
863
1438
  total_skills: z.ZodNumber;
1439
+ gateway_mode: z.ZodDefault<z.ZodEnum<{
1440
+ stopped: "stopped";
1441
+ parked: "parked";
1442
+ own: "own";
1443
+ served: "served";
1444
+ standalone: "standalone";
1445
+ }>>;
864
1446
  display_name: z.ZodDefault<z.ZodString>;
865
1447
  description: z.ZodDefault<z.ZodString>;
866
1448
  has_avatar: z.ZodDefault<z.ZodBoolean>;
@@ -899,7 +1481,25 @@ export declare const PROFILES_METHODS: {
899
1481
  }, z.core.$strip>;
900
1482
  };
901
1483
  };
1484
+ export declare const SkillCatalogIdentitySchema: z.ZodObject<{
1485
+ load_name: z.ZodOptional<z.ZodString>;
1486
+ declared_name: z.ZodOptional<z.ZodString>;
1487
+ status: z.ZodOptional<z.ZodEnum<{
1488
+ shadowed: "shadowed";
1489
+ unique: "unique";
1490
+ ambiguous: "ambiguous";
1491
+ }>>;
1492
+ tier: z.ZodOptional<z.ZodNumber>;
1493
+ }, z.core.$strip>;
902
1494
  export declare const SkillRowSchema: z.ZodObject<{
1495
+ load_name: z.ZodOptional<z.ZodString>;
1496
+ declared_name: z.ZodOptional<z.ZodString>;
1497
+ status: z.ZodOptional<z.ZodEnum<{
1498
+ shadowed: "shadowed";
1499
+ unique: "unique";
1500
+ ambiguous: "ambiguous";
1501
+ }>>;
1502
+ tier: z.ZodOptional<z.ZodNumber>;
903
1503
  name: z.ZodString;
904
1504
  description: z.ZodString;
905
1505
  category: z.ZodNullable<z.ZodString>;
@@ -915,6 +1515,7 @@ export declare const SkillViewSchema: z.ZodUnion<readonly [z.ZodObject<{
915
1515
  path: z.ZodString;
916
1516
  skill_dir: z.ZodNullable<z.ZodString>;
917
1517
  linked_files: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>;
1518
+ editable: z.ZodOptional<z.ZodBoolean>;
918
1519
  }, z.core.$strip>, z.ZodObject<{
919
1520
  success: z.ZodLiteral<false>;
920
1521
  error: z.ZodString;
@@ -932,6 +1533,14 @@ export declare const SKILLS_METHODS: {
932
1533
  readonly result: z.ZodObject<{
933
1534
  success: z.ZodOptional<z.ZodBoolean>;
934
1535
  skills: z.ZodArray<z.ZodObject<{
1536
+ load_name: z.ZodOptional<z.ZodString>;
1537
+ declared_name: z.ZodOptional<z.ZodString>;
1538
+ status: z.ZodOptional<z.ZodEnum<{
1539
+ shadowed: "shadowed";
1540
+ unique: "unique";
1541
+ ambiguous: "ambiguous";
1542
+ }>>;
1543
+ tier: z.ZodOptional<z.ZodNumber>;
935
1544
  name: z.ZodString;
936
1545
  description: z.ZodString;
937
1546
  category: z.ZodNullable<z.ZodString>;
@@ -957,6 +1566,7 @@ export declare const SKILLS_METHODS: {
957
1566
  path: z.ZodString;
958
1567
  skill_dir: z.ZodNullable<z.ZodString>;
959
1568
  linked_files: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>;
1569
+ editable: z.ZodOptional<z.ZodBoolean>;
960
1570
  }, z.core.$strip>, z.ZodObject<{
961
1571
  success: z.ZodLiteral<false>;
962
1572
  error: z.ZodString;
@@ -975,6 +1585,9 @@ export declare const SKILLS_METHODS: {
975
1585
  found: z.ZodBoolean;
976
1586
  skill_dir: z.ZodNullable<z.ZodString>;
977
1587
  skill_md: z.ZodNullable<z.ZodString>;
1588
+ load_name: z.ZodOptional<z.ZodString>;
1589
+ declared_name: z.ZodOptional<z.ZodString>;
1590
+ sibling_load_names: z.ZodOptional<z.ZodArray<z.ZodString>>;
978
1591
  }, z.core.$strip>;
979
1592
  };
980
1593
  };
@@ -1010,27 +1623,420 @@ export declare const MCP_METHODS: {
1010
1623
  }, z.core.$strip>;
1011
1624
  };
1012
1625
  };
1013
- export declare const STT_METHODS: {
1014
- readonly 'stt.capability': {
1015
- readonly params: z.ZodObject<{
1016
- profile_home: z.ZodString;
1017
- }, z.core.$strip>;
1018
- readonly result: z.ZodObject<{
1019
- available: z.ZodBoolean;
1020
- provider: z.ZodString;
1021
- }, z.core.$strip>;
1022
- };
1023
- readonly 'stt.transcribe': {
1024
- readonly params: z.ZodObject<{
1025
- profile_home: z.ZodString;
1026
- audio_b64: z.ZodString;
1027
- suffix: z.ZodOptional<z.ZodString>;
1028
- }, z.core.$strip>;
1029
- readonly result: z.ZodObject<{
1030
- transcript: z.ZodString;
1626
+ /** One portal policy layer's rules (the Agent's `PolicyBody`): `allow` names the apps that stay on, `deny` the ones off; `tools` turns single tools off. */
1627
+ export declare const ConnectorPolicyBodySchema: z.ZodObject<{
1628
+ mode: z.ZodEnum<{
1629
+ deny: "deny";
1630
+ unrestricted: "unrestricted";
1631
+ "deny-all": "deny-all";
1632
+ allow: "allow";
1633
+ }>;
1634
+ connectors: z.ZodOptional<z.ZodArray<z.ZodString>>;
1635
+ disabled_connectors: z.ZodOptional<z.ZodArray<z.ZodString>>;
1636
+ tools: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1637
+ disable: z.ZodArray<z.ZodString>;
1638
+ }, z.core.$strip>>>;
1639
+ tags: z.ZodOptional<z.ZodObject<{
1640
+ enable: z.ZodOptional<z.ZodArray<z.ZodString>>;
1641
+ disable: z.ZodOptional<z.ZodArray<z.ZodString>>;
1642
+ }, z.core.$strip>>;
1643
+ }, z.core.$strip>;
1644
+ /** A connection operation's target (`tools/connectors/operation.py`): a hosted app account, or an MCP server the card approves. */
1645
+ export declare const ConnectorOperationTargetSchema: z.ZodObject<{
1646
+ name: z.ZodString;
1647
+ kind: z.ZodString;
1648
+ state: z.ZodEnum<{
1649
+ pending: "pending";
1650
+ expired: "expired";
1651
+ skipped: "skipped";
1652
+ initiated: "initiated";
1653
+ connected: "connected";
1654
+ failed: "failed";
1655
+ not_connected: "not_connected";
1656
+ }>;
1657
+ detail: z.ZodString;
1658
+ connect_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1659
+ required_env: z.ZodArray<z.ZodObject<{
1660
+ name: z.ZodString;
1661
+ prompt: z.ZodString;
1662
+ required: z.ZodBoolean;
1663
+ secret: z.ZodBoolean;
1664
+ }, z.core.$strip>>;
1665
+ }, z.core.$strip>;
1666
+ /** `owner`: `account` for the Connectors page's connect, `session` for a chat card, which `tool_call_id` opened. */
1667
+ export declare const ConnectorOperationSnapshotSchema: z.ZodObject<{
1668
+ op_id: z.ZodString;
1669
+ settled: z.ZodBoolean;
1670
+ owner: z.ZodEnum<{
1671
+ session: "session";
1672
+ account: "account";
1673
+ }>;
1674
+ tool_call_id: z.ZodNullable<z.ZodString>;
1675
+ targets: z.ZodArray<z.ZodObject<{
1676
+ name: z.ZodString;
1677
+ kind: z.ZodString;
1678
+ state: z.ZodEnum<{
1679
+ pending: "pending";
1680
+ expired: "expired";
1681
+ skipped: "skipped";
1682
+ initiated: "initiated";
1683
+ connected: "connected";
1684
+ failed: "failed";
1685
+ not_connected: "not_connected";
1686
+ }>;
1687
+ detail: z.ZodString;
1688
+ connect_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1689
+ required_env: z.ZodArray<z.ZodObject<{
1690
+ name: z.ZodString;
1691
+ prompt: z.ZodString;
1692
+ required: z.ZodBoolean;
1693
+ secret: z.ZodBoolean;
1694
+ }, z.core.$strip>>;
1695
+ }, z.core.$strip>>;
1696
+ }, z.core.$strip>;
1697
+ /**
1698
+ * Failures carry `data.condition`: `connectors_unavailable`, `connectors_sign_in`, `connectors_forbidden`, `connectors_org_required`,
1699
+ * `connector_not_found`, `connection_not_found`, `policy_conflict` (the member rules changed since `expected_revision`), `policy_invalid`,
1700
+ * `operation_not_found`, `operation_settled`, `operation_refused`, `connectors_failed`.
1701
+ */
1702
+ export declare const CONNECTORS_METHODS: {
1703
+ /** The Agent's `connectors_available()`; never creates an identity. */
1704
+ readonly 'connectors.available': {
1705
+ readonly params: z.ZodObject<{
1706
+ profile_home: z.ZodString;
1707
+ }, z.core.$strip>;
1708
+ readonly result: z.ZodObject<{
1709
+ available: z.ZodBoolean;
1710
+ }, z.core.$strip>;
1711
+ };
1712
+ readonly 'connectors.catalog': {
1713
+ readonly params: z.ZodObject<{
1714
+ profile_home: z.ZodString;
1715
+ }, z.core.$strip>;
1716
+ readonly result: z.ZodObject<{
1717
+ connectors: z.ZodArray<z.ZodObject<{
1718
+ slug: z.ZodString;
1719
+ name: z.ZodString;
1720
+ description: z.ZodString;
1721
+ category: z.ZodString;
1722
+ logo_url: z.ZodNullable<z.ZodString>;
1723
+ }, z.core.$strip>>;
1724
+ }, z.core.$strip>;
1725
+ };
1726
+ readonly 'connectors.accounts': {
1727
+ readonly params: z.ZodObject<{
1728
+ profile_home: z.ZodString;
1729
+ }, z.core.$strip>;
1730
+ readonly result: z.ZodObject<{
1731
+ accounts: z.ZodArray<z.ZodObject<{
1732
+ connection_id: z.ZodString;
1733
+ connector: z.ZodString;
1734
+ status: z.ZodString;
1735
+ status_reason: z.ZodNullable<z.ZodString>;
1736
+ label: z.ZodString;
1737
+ alias: z.ZodNullable<z.ZodString>;
1738
+ active: z.ZodBoolean;
1739
+ disabled: z.ZodBoolean;
1740
+ created_at: z.ZodString;
1741
+ }, z.core.$strip>>;
1742
+ }, z.core.$strip>;
1743
+ };
1744
+ readonly 'connectors.remove': {
1745
+ readonly params: z.ZodObject<{
1746
+ profile_home: z.ZodString;
1747
+ connection_id: z.ZodString;
1748
+ }, z.core.$strip>;
1749
+ readonly result: z.ZodObject<{
1750
+ connection_id: z.ZodString;
1751
+ connector: z.ZodString;
1752
+ status: z.ZodLiteral<"removed">;
1753
+ }, z.core.$strip>;
1754
+ };
1755
+ readonly 'connectors.tools': {
1756
+ readonly params: z.ZodObject<{
1757
+ profile_home: z.ZodString;
1758
+ connector: z.ZodString;
1759
+ refresh: z.ZodOptional<z.ZodBoolean>;
1760
+ }, z.core.$strip>;
1761
+ readonly result: z.ZodObject<{
1762
+ connector: z.ZodString;
1763
+ tools: z.ZodArray<z.ZodObject<{
1764
+ slug: z.ZodString;
1765
+ name: z.ZodString;
1766
+ description: z.ZodString;
1767
+ facet: z.ZodString;
1768
+ hints: z.ZodArray<z.ZodString>;
1769
+ categories: z.ZodArray<z.ZodString>;
1770
+ deprecated: z.ZodBoolean;
1771
+ }, z.core.$strip>>;
1772
+ }, z.core.$strip>;
1773
+ };
1774
+ readonly 'connectors.policy.get': {
1775
+ readonly params: z.ZodObject<{
1776
+ profile_home: z.ZodString;
1777
+ }, z.core.$strip>;
1778
+ readonly result: z.ZodObject<{
1779
+ layers: z.ZodArray<z.ZodObject<{
1780
+ kind: z.ZodEnum<{
1781
+ role: "role";
1782
+ org: "org";
1783
+ member: "member";
1784
+ }>;
1785
+ revision: z.ZodString;
1786
+ body: z.ZodObject<{
1787
+ mode: z.ZodEnum<{
1788
+ deny: "deny";
1789
+ unrestricted: "unrestricted";
1790
+ "deny-all": "deny-all";
1791
+ allow: "allow";
1792
+ }>;
1793
+ connectors: z.ZodOptional<z.ZodArray<z.ZodString>>;
1794
+ disabled_connectors: z.ZodOptional<z.ZodArray<z.ZodString>>;
1795
+ tools: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1796
+ disable: z.ZodArray<z.ZodString>;
1797
+ }, z.core.$strip>>>;
1798
+ tags: z.ZodOptional<z.ZodObject<{
1799
+ enable: z.ZodOptional<z.ZodArray<z.ZodString>>;
1800
+ disable: z.ZodOptional<z.ZodArray<z.ZodString>>;
1801
+ }, z.core.$strip>>;
1802
+ }, z.core.$strip>;
1803
+ }, z.core.$strip>>;
1804
+ effective: z.ZodObject<{
1805
+ mode: z.ZodEnum<{
1806
+ deny: "deny";
1807
+ unrestricted: "unrestricted";
1808
+ "deny-all": "deny-all";
1809
+ allow: "allow";
1810
+ }>;
1811
+ connectors: z.ZodOptional<z.ZodArray<z.ZodString>>;
1812
+ disabled_connectors: z.ZodOptional<z.ZodArray<z.ZodString>>;
1813
+ tools: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1814
+ disable: z.ZodArray<z.ZodString>;
1815
+ }, z.core.$strip>>>;
1816
+ tags: z.ZodOptional<z.ZodObject<{
1817
+ enable: z.ZodOptional<z.ZodArray<z.ZodString>>;
1818
+ disable: z.ZodOptional<z.ZodArray<z.ZodString>>;
1819
+ }, z.core.$strip>>;
1820
+ revision: z.ZodString;
1821
+ }, z.core.$strip>;
1822
+ }, z.core.$strip>;
1823
+ };
1824
+ /** One member-rule change: `enabled` turns the app on or off; `tool` with `tool_enabled` turns one of its tools on or off. */
1825
+ readonly 'connectors.policy.set': {
1826
+ readonly params: z.ZodObject<{
1827
+ profile_home: z.ZodString;
1828
+ connector: z.ZodString;
1829
+ expected_revision: z.ZodString;
1830
+ enabled: z.ZodOptional<z.ZodBoolean>;
1831
+ tool: z.ZodOptional<z.ZodString>;
1832
+ tool_enabled: z.ZodOptional<z.ZodBoolean>;
1833
+ }, z.core.$strip>;
1834
+ readonly result: z.ZodObject<{
1835
+ revision: z.ZodString;
1836
+ }, z.core.$strip>;
1837
+ };
1838
+ /** Starts (or rejoins) the account-owned connect and waits for its authorization link. */
1839
+ readonly 'connectors.connect': {
1840
+ readonly params: z.ZodObject<{
1841
+ profile_home: z.ZodString;
1842
+ connector: z.ZodString;
1843
+ }, z.core.$strip>;
1844
+ readonly result: z.ZodObject<{
1845
+ op_id: z.ZodString;
1846
+ settled: z.ZodBoolean;
1847
+ owner: z.ZodEnum<{
1848
+ session: "session";
1849
+ account: "account";
1850
+ }>;
1851
+ tool_call_id: z.ZodNullable<z.ZodString>;
1852
+ targets: z.ZodArray<z.ZodObject<{
1853
+ name: z.ZodString;
1854
+ kind: z.ZodString;
1855
+ state: z.ZodEnum<{
1856
+ pending: "pending";
1857
+ expired: "expired";
1858
+ skipped: "skipped";
1859
+ initiated: "initiated";
1860
+ connected: "connected";
1861
+ failed: "failed";
1862
+ not_connected: "not_connected";
1863
+ }>;
1864
+ detail: z.ZodString;
1865
+ connect_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1866
+ required_env: z.ZodArray<z.ZodObject<{
1867
+ name: z.ZodString;
1868
+ prompt: z.ZodString;
1869
+ required: z.ZodBoolean;
1870
+ secret: z.ZodBoolean;
1871
+ }, z.core.$strip>>;
1872
+ }, z.core.$strip>>;
1873
+ }, z.core.$strip>;
1874
+ };
1875
+ readonly 'connectors.operation': {
1876
+ readonly params: z.ZodObject<{
1877
+ profile_home: z.ZodString;
1878
+ op_id: z.ZodString;
1879
+ }, z.core.$strip>;
1880
+ readonly result: z.ZodObject<{
1881
+ op_id: z.ZodString;
1882
+ settled: z.ZodBoolean;
1883
+ owner: z.ZodEnum<{
1884
+ session: "session";
1885
+ account: "account";
1886
+ }>;
1887
+ tool_call_id: z.ZodNullable<z.ZodString>;
1888
+ targets: z.ZodArray<z.ZodObject<{
1889
+ name: z.ZodString;
1890
+ kind: z.ZodString;
1891
+ state: z.ZodEnum<{
1892
+ pending: "pending";
1893
+ expired: "expired";
1894
+ skipped: "skipped";
1895
+ initiated: "initiated";
1896
+ connected: "connected";
1897
+ failed: "failed";
1898
+ not_connected: "not_connected";
1899
+ }>;
1900
+ detail: z.ZodString;
1901
+ connect_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1902
+ required_env: z.ZodArray<z.ZodObject<{
1903
+ name: z.ZodString;
1904
+ prompt: z.ZodString;
1905
+ required: z.ZodBoolean;
1906
+ secret: z.ZodBoolean;
1907
+ }, z.core.$strip>>;
1908
+ }, z.core.$strip>>;
1909
+ }, z.core.$strip>;
1910
+ };
1911
+ readonly 'connectors.respond': {
1912
+ readonly params: z.ZodObject<{
1913
+ profile_home: z.ZodString;
1914
+ op_id: z.ZodString;
1915
+ action: z.ZodEnum<{
1916
+ retry: "retry";
1917
+ skip: "skip";
1918
+ approve: "approve";
1919
+ continue: "continue";
1920
+ }>;
1921
+ target: z.ZodOptional<z.ZodString>;
1922
+ env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1923
+ }, z.core.$strip>;
1924
+ readonly result: z.ZodObject<{
1925
+ op_id: z.ZodString;
1926
+ settled: z.ZodBoolean;
1927
+ owner: z.ZodEnum<{
1928
+ session: "session";
1929
+ account: "account";
1930
+ }>;
1931
+ tool_call_id: z.ZodNullable<z.ZodString>;
1932
+ targets: z.ZodArray<z.ZodObject<{
1933
+ name: z.ZodString;
1934
+ kind: z.ZodString;
1935
+ state: z.ZodEnum<{
1936
+ pending: "pending";
1937
+ expired: "expired";
1938
+ skipped: "skipped";
1939
+ initiated: "initiated";
1940
+ connected: "connected";
1941
+ failed: "failed";
1942
+ not_connected: "not_connected";
1943
+ }>;
1944
+ detail: z.ZodString;
1945
+ connect_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1946
+ required_env: z.ZodArray<z.ZodObject<{
1947
+ name: z.ZodString;
1948
+ prompt: z.ZodString;
1949
+ required: z.ZodBoolean;
1950
+ secret: z.ZodBoolean;
1951
+ }, z.core.$strip>>;
1952
+ }, z.core.$strip>>;
1953
+ }, z.core.$strip>;
1954
+ };
1955
+ };
1956
+ export declare const STT_METHODS: {
1957
+ /**
1958
+ * `streaming` (TAL-802): `stt.streaming` is on and the provider has a live wire with credentials, so `stt.stream` would open.
1959
+ * `warm_supported` (TAL-916): the available provider is the local engine and the Agent can pre-load it (`tools.stt_lease`),
1960
+ * so `stt.warm` does real work.
1961
+ */
1962
+ readonly 'stt.capability': {
1963
+ readonly params: z.ZodObject<{
1964
+ profile_home: z.ZodString;
1965
+ }, z.core.$strip>;
1966
+ readonly result: z.ZodObject<{
1967
+ available: z.ZodBoolean;
1968
+ provider: z.ZodString;
1969
+ streaming: z.ZodBoolean;
1970
+ warm_supported: z.ZodBoolean;
1971
+ }, z.core.$strip>;
1972
+ };
1973
+ /**
1974
+ * TAL-916: pre-load the profile's local engine (first-use download and model load) so the next `stt.transcribe` starts
1975
+ * hot. Blocks until loaded; a no-op (`warmed: false`) for remote providers, and `action: 'unsupported'` on an Agent
1976
+ * without the warmer.
1977
+ */
1978
+ readonly 'stt.warm': {
1979
+ readonly params: z.ZodObject<{
1980
+ profile_home: z.ZodString;
1981
+ }, z.core.$strip>;
1982
+ readonly result: z.ZodObject<{
1983
+ provider: z.ZodString;
1984
+ warmed: z.ZodBoolean;
1985
+ action: z.ZodString;
1986
+ error: z.ZodOptional<z.ZodString>;
1987
+ }, z.core.$strip>;
1988
+ };
1989
+ readonly 'stt.transcribe': {
1990
+ readonly params: z.ZodObject<{
1991
+ profile_home: z.ZodString;
1992
+ audio_b64: z.ZodString;
1993
+ suffix: z.ZodOptional<z.ZodString>;
1994
+ }, z.core.$strip>;
1995
+ readonly result: z.ZodObject<{
1996
+ transcript: z.ZodString;
1997
+ filtered: z.ZodBoolean;
1998
+ }, z.core.$strip>;
1999
+ };
2000
+ /**
2001
+ * TAL-802: one live dictation. Opens the profile's streaming session for s16le mono PCM at `sample_rate` (the sidecar
2002
+ * resamples), emits `ready` with the `stream_id` that `stt.stream_audio` feeds, then `partial` text as the provider
2003
+ * recognizes it, and returns the session's final transcript once audio ends. Cancelling the call cancels the session.
2004
+ */
2005
+ readonly 'stt.stream': {
2006
+ readonly params: z.ZodObject<{
2007
+ profile_home: z.ZodString;
2008
+ sample_rate: z.ZodNumber;
2009
+ }, z.core.$strip>;
2010
+ readonly result: z.ZodObject<{
2011
+ transcript: z.ZodString;
2012
+ filtered: z.ZodBoolean;
2013
+ provider: z.ZodString;
2014
+ }, z.core.$strip>;
2015
+ readonly stream: z.ZodDiscriminatedUnion<[z.ZodObject<{
2016
+ event: z.ZodLiteral<"ready">;
2017
+ data: z.ZodObject<{
2018
+ stream_id: z.ZodString;
2019
+ }, z.core.$strip>;
2020
+ }, z.core.$strip>, z.ZodObject<{
2021
+ event: z.ZodLiteral<"partial">;
2022
+ data: z.ZodObject<{
2023
+ text: z.ZodString;
2024
+ }, z.core.$strip>;
2025
+ }, z.core.$strip>], "event">;
2026
+ };
2027
+ /** TAL-802: feed one PCM chunk to an open `stt.stream`, in order; `end` marks the end of speech. */
2028
+ readonly 'stt.stream_audio': {
2029
+ readonly params: z.ZodObject<{
2030
+ stream_id: z.ZodString;
2031
+ audio_b64: z.ZodOptional<z.ZodString>;
2032
+ end: z.ZodOptional<z.ZodBoolean>;
2033
+ }, z.core.$strip>;
2034
+ readonly result: z.ZodObject<{
2035
+ ok: z.ZodLiteral<true>;
1031
2036
  }, z.core.$strip>;
1032
2037
  };
1033
2038
  };
2039
+ /** `running_elsewhere`: a live execution owner. `recovery_only`: a retained snapshot, not a source for new task context. */
1034
2040
  export declare const CronJobSchema: z.ZodObject<{
1035
2041
  id: z.ZodString;
1036
2042
  name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1038,6 +2044,8 @@ export declare const CronJobSchema: z.ZodObject<{
1038
2044
  toast_notifications: z.ZodBoolean;
1039
2045
  monitor: z.ZodString;
1040
2046
  continuity: z.ZodBoolean;
2047
+ running_elsewhere: z.ZodOptional<z.ZodBoolean>;
2048
+ recovery_only: z.ZodOptional<z.ZodBoolean>;
1041
2049
  }, z.core.$catchall<z.ZodUnknown>>;
1042
2050
  export declare const CronUsageSchema: z.ZodObject<{
1043
2051
  model: z.ZodOptional<z.ZodString>;
@@ -1048,10 +2056,105 @@ export declare const CronUsageSchema: z.ZodObject<{
1048
2056
  output_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1049
2057
  total_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1050
2058
  }, z.core.$strip>;
2059
+ export declare const CronBlueprintSlotSchema: z.ZodObject<{
2060
+ name: z.ZodString;
2061
+ type: z.ZodString;
2062
+ label: z.ZodString;
2063
+ default: z.ZodNullable<z.ZodString>;
2064
+ options: z.ZodArray<z.ZodString>;
2065
+ optional: z.ZodBoolean;
2066
+ strict: z.ZodBoolean;
2067
+ help: z.ZodString;
2068
+ }, z.core.$strip>;
2069
+ export declare const CronBlueprintsSchema: z.ZodObject<{
2070
+ blueprints: z.ZodArray<z.ZodObject<{
2071
+ key: z.ZodString;
2072
+ title: z.ZodString;
2073
+ description: z.ZodString;
2074
+ category: z.ZodString;
2075
+ source: z.ZodEnum<{
2076
+ plugin: "plugin";
2077
+ builtin: "builtin";
2078
+ }>;
2079
+ plugin: z.ZodNullable<z.ZodString>;
2080
+ schedule_label: z.ZodString;
2081
+ slots: z.ZodArray<z.ZodObject<{
2082
+ name: z.ZodString;
2083
+ type: z.ZodString;
2084
+ label: z.ZodString;
2085
+ default: z.ZodNullable<z.ZodString>;
2086
+ options: z.ZodArray<z.ZodString>;
2087
+ optional: z.ZodBoolean;
2088
+ strict: z.ZodBoolean;
2089
+ help: z.ZodString;
2090
+ }, z.core.$strip>>;
2091
+ }, z.core.$strip>>;
2092
+ }, z.core.$strip>;
2093
+ export declare const CronBlueprintFillInputSchema: z.ZodObject<{
2094
+ key: z.ZodString;
2095
+ values: z.ZodRecord<z.ZodString, z.ZodString>;
2096
+ }, z.core.$strip>;
2097
+ export declare const CronBlueprintFillSchema: z.ZodObject<{
2098
+ draft: z.ZodObject<{
2099
+ name: z.ZodString;
2100
+ prompt: z.ZodString;
2101
+ schedule: z.ZodString;
2102
+ deliver: z.ZodString;
2103
+ skills: z.ZodArray<z.ZodString>;
2104
+ }, z.core.$strip>;
2105
+ }, z.core.$strip>;
2106
+ export type CronBlueprint = z.infer<typeof CronBlueprintsSchema>['blueprints'][number];
1051
2107
  export declare const CRON_METHODS: {
2108
+ readonly 'cron.blueprints': {
2109
+ readonly params: z.ZodObject<{
2110
+ profile_home: z.ZodString;
2111
+ }, z.core.$strip>;
2112
+ readonly result: z.ZodObject<{
2113
+ blueprints: z.ZodArray<z.ZodObject<{
2114
+ key: z.ZodString;
2115
+ title: z.ZodString;
2116
+ description: z.ZodString;
2117
+ category: z.ZodString;
2118
+ source: z.ZodEnum<{
2119
+ plugin: "plugin";
2120
+ builtin: "builtin";
2121
+ }>;
2122
+ plugin: z.ZodNullable<z.ZodString>;
2123
+ schedule_label: z.ZodString;
2124
+ slots: z.ZodArray<z.ZodObject<{
2125
+ name: z.ZodString;
2126
+ type: z.ZodString;
2127
+ label: z.ZodString;
2128
+ default: z.ZodNullable<z.ZodString>;
2129
+ options: z.ZodArray<z.ZodString>;
2130
+ optional: z.ZodBoolean;
2131
+ strict: z.ZodBoolean;
2132
+ help: z.ZodString;
2133
+ }, z.core.$strip>>;
2134
+ }, z.core.$strip>>;
2135
+ }, z.core.$strip>;
2136
+ };
2137
+ readonly 'cron.blueprint_fill': {
2138
+ readonly params: z.ZodObject<{
2139
+ key: z.ZodString;
2140
+ values: z.ZodRecord<z.ZodString, z.ZodString>;
2141
+ profile_home: z.ZodOptional<z.ZodString>;
2142
+ }, z.core.$strip>;
2143
+ readonly result: z.ZodObject<{
2144
+ draft: z.ZodObject<{
2145
+ name: z.ZodString;
2146
+ prompt: z.ZodString;
2147
+ schedule: z.ZodString;
2148
+ deliver: z.ZodString;
2149
+ skills: z.ZodArray<z.ZodString>;
2150
+ }, z.core.$strip>;
2151
+ }, z.core.$strip>;
2152
+ };
2153
+ /** `probe_store` adds the store's write probe (TAL-810): null when writes land or the Agent predates the probe. */
1052
2154
  readonly 'cron.list': {
1053
2155
  readonly params: z.ZodObject<{
1054
2156
  profile_home: z.ZodString;
2157
+ probe_store: z.ZodOptional<z.ZodBoolean>;
1055
2158
  }, z.core.$strip>;
1056
2159
  readonly result: z.ZodObject<{
1057
2160
  jobs: z.ZodArray<z.ZodObject<{
@@ -1061,7 +2164,15 @@ export declare const CRON_METHODS: {
1061
2164
  toast_notifications: z.ZodBoolean;
1062
2165
  monitor: z.ZodString;
1063
2166
  continuity: z.ZodBoolean;
2167
+ running_elsewhere: z.ZodOptional<z.ZodBoolean>;
2168
+ recovery_only: z.ZodOptional<z.ZodBoolean>;
1064
2169
  }, z.core.$catchall<z.ZodUnknown>>>;
2170
+ store_health: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2171
+ store: z.ZodString;
2172
+ error: z.ZodString;
2173
+ since: z.ZodString;
2174
+ fix: z.ZodString;
2175
+ }, z.core.$strip>>>;
1065
2176
  }, z.core.$strip>;
1066
2177
  };
1067
2178
  readonly 'cron.get': {
@@ -1077,6 +2188,8 @@ export declare const CRON_METHODS: {
1077
2188
  toast_notifications: z.ZodBoolean;
1078
2189
  monitor: z.ZodString;
1079
2190
  continuity: z.ZodBoolean;
2191
+ running_elsewhere: z.ZodOptional<z.ZodBoolean>;
2192
+ recovery_only: z.ZodOptional<z.ZodBoolean>;
1080
2193
  }, z.core.$catchall<z.ZodUnknown>>>;
1081
2194
  }, z.core.$strip>;
1082
2195
  };
@@ -1094,6 +2207,8 @@ export declare const CRON_METHODS: {
1094
2207
  toast_notifications: z.ZodBoolean;
1095
2208
  monitor: z.ZodString;
1096
2209
  continuity: z.ZodBoolean;
2210
+ running_elsewhere: z.ZodOptional<z.ZodBoolean>;
2211
+ recovery_only: z.ZodOptional<z.ZodBoolean>;
1097
2212
  }, z.core.$catchall<z.ZodUnknown>>;
1098
2213
  }, z.core.$strip>;
1099
2214
  };
@@ -1111,6 +2226,8 @@ export declare const CRON_METHODS: {
1111
2226
  toast_notifications: z.ZodBoolean;
1112
2227
  monitor: z.ZodString;
1113
2228
  continuity: z.ZodBoolean;
2229
+ running_elsewhere: z.ZodOptional<z.ZodBoolean>;
2230
+ recovery_only: z.ZodOptional<z.ZodBoolean>;
1114
2231
  }, z.core.$catchall<z.ZodUnknown>>;
1115
2232
  }, z.core.$strip>;
1116
2233
  };
@@ -1160,8 +2277,8 @@ export declare const CRON_METHODS: {
1160
2277
  }, z.core.$strip>, z.ZodObject<{
1161
2278
  job_id: z.ZodString;
1162
2279
  status: z.ZodEnum<{
1163
- completed: "completed";
1164
2280
  failed: "failed";
2281
+ completed: "completed";
1165
2282
  }>;
1166
2283
  success: z.ZodBoolean;
1167
2284
  error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1250,7 +2367,9 @@ export declare const CRON_METHODS: {
1250
2367
  }, z.core.$strip>;
1251
2368
  };
1252
2369
  readonly 'cron.delivery_options': {
1253
- readonly params: z.ZodObject<{}, z.core.$strip>;
2370
+ readonly params: z.ZodObject<{
2371
+ profile_home: z.ZodString;
2372
+ }, z.core.$strip>;
1254
2373
  readonly result: z.ZodObject<{
1255
2374
  platforms: z.ZodArray<z.ZodObject<{
1256
2375
  value: z.ZodString;
@@ -1259,6 +2378,11 @@ export declare const CRON_METHODS: {
1259
2378
  }, z.core.$strip>;
1260
2379
  };
1261
2380
  };
2381
+ /**
2382
+ * `providers.model_ids` `fallback` (TAL-799): the Agent served its curated list because the live catalog was unreachable.
2383
+ * `providers.local_models` (TAL-798): the GGUFs staged for the Agent's managed llama.cpp provider `provider_id`, and the
2384
+ * running server's base URL (`current_endpoint`, null while it is off).
2385
+ */
1262
2386
  export declare const PROVIDERS_METHODS: {
1263
2387
  readonly 'providers.registry': {
1264
2388
  readonly params: z.ZodObject<{
@@ -1292,6 +2416,17 @@ export declare const PROVIDERS_METHODS: {
1292
2416
  readonly result: z.ZodObject<{
1293
2417
  provider: z.ZodString;
1294
2418
  model_ids: z.ZodArray<z.ZodString>;
2419
+ fallback: z.ZodDefault<z.ZodBoolean>;
2420
+ }, z.core.$strip>;
2421
+ };
2422
+ readonly 'providers.local_models': {
2423
+ readonly params: z.ZodObject<{
2424
+ profile_home: z.ZodString;
2425
+ }, z.core.$strip>;
2426
+ readonly result: z.ZodObject<{
2427
+ provider_id: z.ZodString;
2428
+ models: z.ZodArray<z.ZodString>;
2429
+ current_endpoint: z.ZodNullable<z.ZodString>;
1295
2430
  }, z.core.$strip>;
1296
2431
  };
1297
2432
  readonly 'providers.resolve_runtime': {
@@ -1317,6 +2452,55 @@ export declare const PROVIDERS_METHODS: {
1317
2452
  entries: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1318
2453
  }, z.core.$strip>;
1319
2454
  };
2455
+ readonly 'models.selection_warnings': {
2456
+ readonly params: z.ZodObject<{
2457
+ profile_home: z.ZodString;
2458
+ session_id: z.ZodString;
2459
+ model: z.ZodString;
2460
+ provider: z.ZodNullable<z.ZodString>;
2461
+ current_model: z.ZodNullable<z.ZodString>;
2462
+ current_provider: z.ZodNullable<z.ZodString>;
2463
+ context_tokens: z.ZodNullable<z.ZodNumber>;
2464
+ messages: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2465
+ }, z.core.$strip>;
2466
+ readonly result: z.ZodObject<{
2467
+ warnings: z.ZodArray<z.ZodObject<{
2468
+ kind: z.ZodString;
2469
+ title: z.ZodString;
2470
+ model: z.ZodString;
2471
+ provider: z.ZodString;
2472
+ message: z.ZodString;
2473
+ }, z.core.$strip>>;
2474
+ context_tokens: z.ZodNullable<z.ZodNumber>;
2475
+ provider: z.ZodString;
2476
+ base_url: z.ZodString;
2477
+ }, z.core.$strip>;
2478
+ };
2479
+ readonly 'models.speed_tiers': {
2480
+ readonly params: z.ZodObject<{
2481
+ profile_home: z.ZodString;
2482
+ routes: z.ZodArray<z.ZodObject<{
2483
+ model: z.ZodString;
2484
+ provider: z.ZodString;
2485
+ base_url: z.ZodOptional<z.ZodString>;
2486
+ }, z.core.$strip>>;
2487
+ }, z.core.$strip>;
2488
+ readonly result: z.ZodObject<{
2489
+ tiers: z.ZodArray<z.ZodArray<z.ZodObject<{
2490
+ id: z.ZodEnum<{
2491
+ standard: "standard";
2492
+ priority: "priority";
2493
+ ultrafast: "ultrafast";
2494
+ fast: "fast";
2495
+ }>;
2496
+ service_tier: z.ZodEnum<{
2497
+ default: "default";
2498
+ priority: "priority";
2499
+ ultrafast: "ultrafast";
2500
+ }>;
2501
+ }, z.core.$strip>>>;
2502
+ }, z.core.$strip>;
2503
+ };
1320
2504
  readonly 'models.context_length': {
1321
2505
  readonly params: z.ZodObject<{
1322
2506
  profile_home: z.ZodString;
@@ -1355,14 +2539,20 @@ export declare const PROVIDERS_METHODS: {
1355
2539
  * `oauth.start` answers the code to show; a sidecar thread polls the provider and writes the credential through the
1356
2540
  * Agent's own auth store. A flow belongs to the profile home that started it: poll and cancel from another home do not
1357
2541
  * find it. `error` is the Agent's reason for a flow that ended without a credential.
2542
+ *
2543
+ * TAL-1276: provider `plugin:<key>:<id>` is the browser sign-in of a plugin-declared OAuth client. Its start has no
2544
+ * `user_code`; `verification_url` is the authorize link, `redirect_uri` the loopback address the browser is sent back
2545
+ * to, and `authorize_host`/`token_host` the hosts the code goes to. It finishes when that redirect reaches the sidecar's
2546
+ * listener or through `oauth.submit_redirect` with the address the browser showed (`oauth_redirect_invalid` for any
2547
+ * other address, `oauth_flow_ended` once the flow ended).
1358
2548
  */
1359
2549
  export declare const OAuthFlowStatusSchema: z.ZodEnum<{
1360
2550
  error: "error";
1361
- cancelled: "cancelled";
1362
2551
  pending: "pending";
2552
+ expired: "expired";
2553
+ cancelled: "cancelled";
1363
2554
  approved: "approved";
1364
2555
  denied: "denied";
1365
- expired: "expired";
1366
2556
  }>;
1367
2557
  export declare const OAUTH_METHODS: {
1368
2558
  readonly 'oauth.start': {
@@ -1374,10 +2564,13 @@ export declare const OAUTH_METHODS: {
1374
2564
  flow_id: z.ZodString;
1375
2565
  provider: z.ZodString;
1376
2566
  status: z.ZodLiteral<"pending">;
1377
- user_code: z.ZodString;
2567
+ user_code: z.ZodOptional<z.ZodString>;
1378
2568
  verification_url: z.ZodString;
1379
2569
  expires_in: z.ZodNumber;
1380
2570
  interval: z.ZodNumber;
2571
+ redirect_uri: z.ZodOptional<z.ZodString>;
2572
+ authorize_host: z.ZodOptional<z.ZodString>;
2573
+ token_host: z.ZodOptional<z.ZodString>;
1381
2574
  }, z.core.$strip>;
1382
2575
  };
1383
2576
  readonly 'oauth.poll': {
@@ -1390,11 +2583,11 @@ export declare const OAUTH_METHODS: {
1390
2583
  provider: z.ZodString;
1391
2584
  status: z.ZodEnum<{
1392
2585
  error: "error";
1393
- cancelled: "cancelled";
1394
2586
  pending: "pending";
2587
+ expired: "expired";
2588
+ cancelled: "cancelled";
1395
2589
  approved: "approved";
1396
2590
  denied: "denied";
1397
- expired: "expired";
1398
2591
  }>;
1399
2592
  error: z.ZodNullable<z.ZodString>;
1400
2593
  }, z.core.$strip>;
@@ -1409,11 +2602,31 @@ export declare const OAUTH_METHODS: {
1409
2602
  provider: z.ZodString;
1410
2603
  status: z.ZodEnum<{
1411
2604
  error: "error";
1412
- cancelled: "cancelled";
1413
2605
  pending: "pending";
2606
+ expired: "expired";
2607
+ cancelled: "cancelled";
1414
2608
  approved: "approved";
1415
2609
  denied: "denied";
2610
+ }>;
2611
+ error: z.ZodNullable<z.ZodString>;
2612
+ }, z.core.$strip>;
2613
+ };
2614
+ readonly 'oauth.submit_redirect': {
2615
+ readonly params: z.ZodObject<{
2616
+ profile_home: z.ZodString;
2617
+ flow_id: z.ZodString;
2618
+ url: z.ZodString;
2619
+ }, z.core.$strip>;
2620
+ readonly result: z.ZodObject<{
2621
+ flow_id: z.ZodString;
2622
+ provider: z.ZodString;
2623
+ status: z.ZodEnum<{
2624
+ error: "error";
2625
+ pending: "pending";
1416
2626
  expired: "expired";
2627
+ cancelled: "cancelled";
2628
+ approved: "approved";
2629
+ denied: "denied";
1417
2630
  }>;
1418
2631
  error: z.ZodNullable<z.ZodString>;
1419
2632
  }, z.core.$strip>;
@@ -1458,6 +2671,31 @@ export declare const AUX_METHODS: {
1458
2671
  }, z.core.$strip>;
1459
2672
  }, z.core.$strip>], "event">;
1460
2673
  };
2674
+ /**
2675
+ * TAL-800: the profile's auxiliary slots in Agent order (built-ins, then the profile's plugin tasks). `reasoning_effort`
2676
+ * is the slot's resolved effort (`''` = provider default); `effective` is the route an `inherit_from` task resolves to now.
2677
+ * `reserved`: the Agent's other `auxiliary.*` keys (settings and unlisted routes); a reset never touches them.
2678
+ */
2679
+ readonly 'aux.tasks': {
2680
+ readonly params: z.ZodObject<{
2681
+ profile_home: z.ZodString;
2682
+ }, z.core.$strip>;
2683
+ readonly result: z.ZodObject<{
2684
+ tasks: z.ZodArray<z.ZodObject<{
2685
+ key: z.ZodString;
2686
+ label: z.ZodString;
2687
+ description: z.ZodString;
2688
+ inherit_from: z.ZodNullable<z.ZodString>;
2689
+ reasoning_effort: z.ZodString;
2690
+ effective: z.ZodNullable<z.ZodObject<{
2691
+ provider: z.ZodString;
2692
+ model: z.ZodString;
2693
+ base_url: z.ZodString;
2694
+ }, z.core.$strip>>;
2695
+ }, z.core.$strip>>;
2696
+ reserved: z.ZodArray<z.ZodString>;
2697
+ }, z.core.$strip>;
2698
+ };
1461
2699
  readonly 'aux.resolve': {
1462
2700
  readonly params: z.ZodObject<{
1463
2701
  profile_home: z.ZodString;
@@ -1499,6 +2737,154 @@ export declare const TEXT_METHODS: {
1499
2737
  tags: z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
1500
2738
  }, z.core.$strip>;
1501
2739
  };
2740
+ /** TAL-906: the Agent's read-aloud script (`prepare_spoken_text`); `text` as written on an Agent without it. */
2741
+ readonly 'text.spoken': {
2742
+ readonly params: z.ZodObject<{
2743
+ text: z.ZodString;
2744
+ }, z.core.$strip>;
2745
+ readonly result: z.ZodObject<{
2746
+ spoken_text: z.ZodString;
2747
+ }, z.core.$strip>;
2748
+ };
2749
+ };
2750
+ /**
2751
+ * TAL-886: the Agent's `MemoryStore` reading of a MEMORY.md / USER.md body: its char count and the profile's limit for that store.
2752
+ * TAL-784: `memory.write` replaces a memory page file with `content` only while its bytes still hash (SHA-256 hex) to `base`,
2753
+ * holding the Agent's per-file lock (`<file>.lock`); `written: false` means the file changed and is untouched.
2754
+ */
2755
+ export declare const MEMORY_METHODS: {
2756
+ readonly 'memory.check': {
2757
+ readonly params: z.ZodObject<{
2758
+ profile_home: z.ZodString;
2759
+ target: z.ZodEnum<{
2760
+ memory: "memory";
2761
+ user: "user";
2762
+ }>;
2763
+ content: z.ZodString;
2764
+ }, z.core.$strip>;
2765
+ readonly result: z.ZodObject<{
2766
+ count: z.ZodNumber;
2767
+ limit: z.ZodNumber;
2768
+ }, z.core.$strip>;
2769
+ };
2770
+ readonly 'memory.write': {
2771
+ readonly params: z.ZodObject<{
2772
+ profile_home: z.ZodString;
2773
+ section: z.ZodEnum<{
2774
+ memory: "memory";
2775
+ user: "user";
2776
+ soul: "soul";
2777
+ }>;
2778
+ base: z.ZodString;
2779
+ content: z.ZodString;
2780
+ }, z.core.$strip>;
2781
+ readonly result: z.ZodObject<{
2782
+ written: z.ZodBoolean;
2783
+ }, z.core.$strip>;
2784
+ };
2785
+ };
2786
+ /**
2787
+ * TAL-819: one write the Agent staged for approval (`skills.write_approval` / `memory.write_approval`). `target` is the skill
2788
+ * name(s), or `memory` / `user` for the memory store; `op` the staged action; `diff` the unified diff an approval would apply
2789
+ * (a skill create shows the new file, a write that would fail says why); `revision` is the SHA-256 of that diff, which an approval
2790
+ * must send back. `approvable` is false when no diff could be built or the Agent would refuse the write (`diff` says why;
2791
+ * `revision` is empty); such a write can only be rejected.
2792
+ */
2793
+ export declare const PendingWriteSchema: z.ZodObject<{
2794
+ id: z.ZodString;
2795
+ kind: z.ZodEnum<{
2796
+ skills: "skills";
2797
+ memory: "memory";
2798
+ }>;
2799
+ target: z.ZodString;
2800
+ op: z.ZodString;
2801
+ summary: z.ZodString;
2802
+ origin: z.ZodString;
2803
+ created_at: z.ZodNumber;
2804
+ diff: z.ZodString;
2805
+ approvable: z.ZodBoolean;
2806
+ revision: z.ZodString;
2807
+ }, z.core.$strip>;
2808
+ export type PendingWrite = z.infer<typeof PendingWriteSchema>;
2809
+ export declare const PendingWriteRefSchema: z.ZodObject<{
2810
+ id: z.ZodString;
2811
+ revision: z.ZodString;
2812
+ }, z.core.$strip>;
2813
+ /**
2814
+ * TAL-819: the profile's staged writes of `kind`, oldest first, and whether its gate is on; `supported` is false on an Agent
2815
+ * without the review handlers. `approve` / `reject` run the Agent's `/skills` or `/memory` handler per write; `done` is true
2816
+ * once the record is gone (applied or dropped) and `message` is the handler's text. An approval whose diff no longer has the
2817
+ * reviewed `revision` is refused (`done: false`) without applying.
2818
+ */
2819
+ export declare const WRITE_APPROVAL_METHODS: {
2820
+ readonly 'write_approval.pending': {
2821
+ readonly params: z.ZodObject<{
2822
+ profile_home: z.ZodString;
2823
+ kind: z.ZodEnum<{
2824
+ skills: "skills";
2825
+ memory: "memory";
2826
+ }>;
2827
+ }, z.core.$strip>;
2828
+ readonly result: z.ZodObject<{
2829
+ supported: z.ZodBoolean;
2830
+ enabled: z.ZodBoolean;
2831
+ items: z.ZodArray<z.ZodObject<{
2832
+ id: z.ZodString;
2833
+ kind: z.ZodEnum<{
2834
+ skills: "skills";
2835
+ memory: "memory";
2836
+ }>;
2837
+ target: z.ZodString;
2838
+ op: z.ZodString;
2839
+ summary: z.ZodString;
2840
+ origin: z.ZodString;
2841
+ created_at: z.ZodNumber;
2842
+ diff: z.ZodString;
2843
+ approvable: z.ZodBoolean;
2844
+ revision: z.ZodString;
2845
+ }, z.core.$strip>>;
2846
+ }, z.core.$strip>;
2847
+ };
2848
+ readonly 'write_approval.approve': {
2849
+ readonly params: z.ZodObject<{
2850
+ profile_home: z.ZodString;
2851
+ kind: z.ZodEnum<{
2852
+ skills: "skills";
2853
+ memory: "memory";
2854
+ }>;
2855
+ writes: z.ZodArray<z.ZodObject<{
2856
+ id: z.ZodString;
2857
+ revision: z.ZodString;
2858
+ }, z.core.$strip>>;
2859
+ }, z.core.$strip>;
2860
+ readonly result: z.ZodObject<{
2861
+ results: z.ZodArray<z.ZodObject<{
2862
+ id: z.ZodString;
2863
+ done: z.ZodBoolean;
2864
+ message: z.ZodString;
2865
+ }, z.core.$strip>>;
2866
+ }, z.core.$strip>;
2867
+ };
2868
+ readonly 'write_approval.reject': {
2869
+ readonly params: z.ZodObject<{
2870
+ profile_home: z.ZodString;
2871
+ kind: z.ZodEnum<{
2872
+ skills: "skills";
2873
+ memory: "memory";
2874
+ }>;
2875
+ writes: z.ZodArray<z.ZodObject<{
2876
+ id: z.ZodString;
2877
+ revision: z.ZodString;
2878
+ }, z.core.$strip>>;
2879
+ }, z.core.$strip>;
2880
+ readonly result: z.ZodObject<{
2881
+ results: z.ZodArray<z.ZodObject<{
2882
+ id: z.ZodString;
2883
+ done: z.ZodBoolean;
2884
+ message: z.ZodString;
2885
+ }, z.core.$strip>>;
2886
+ }, z.core.$strip>;
2887
+ };
1502
2888
  };
1503
2889
  export declare const ProcessEventSchema: z.ZodObject<{
1504
2890
  process_id: z.ZodString;
@@ -1506,6 +2892,8 @@ export declare const ProcessEventSchema: z.ZodObject<{
1506
2892
  type: z.ZodOptional<z.ZodString>;
1507
2893
  session_key: z.ZodOptional<z.ZodString>;
1508
2894
  origin_ui_session_id: z.ZodOptional<z.ZodString>;
2895
+ child_process: z.ZodOptional<z.ZodBoolean>;
2896
+ reconciliation_profile_home: z.ZodOptional<z.ZodString>;
1509
2897
  }, z.core.$catchall<z.ZodUnknown>>;
1510
2898
  export declare const PROCESS_METHODS: {
1511
2899
  readonly 'process.drain': {
@@ -1520,6 +2908,8 @@ export declare const PROCESS_METHODS: {
1520
2908
  type: z.ZodOptional<z.ZodString>;
1521
2909
  session_key: z.ZodOptional<z.ZodString>;
1522
2910
  origin_ui_session_id: z.ZodOptional<z.ZodString>;
2911
+ child_process: z.ZodOptional<z.ZodBoolean>;
2912
+ reconciliation_profile_home: z.ZodOptional<z.ZodString>;
1523
2913
  }, z.core.$catchall<z.ZodUnknown>>>;
1524
2914
  }, z.core.$strip>;
1525
2915
  };
@@ -1566,6 +2956,7 @@ export declare const PROCESS_METHODS: {
1566
2956
  }, z.core.$strip>;
1567
2957
  readonly result: z.ZodObject<{
1568
2958
  claim_id: z.ZodNullable<z.ZodString>;
2959
+ retryable: z.ZodOptional<z.ZodBoolean>;
1569
2960
  }, z.core.$strip>;
1570
2961
  };
1571
2962
  readonly 'process.complete_delivery': {
@@ -1604,7 +2995,21 @@ export declare const PROCESS_METHODS: {
1604
2995
  event: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1605
2996
  }, z.core.$strip>;
1606
2997
  readonly result: z.ZodObject<{
1607
- text: z.ZodString;
2998
+ text: z.ZodString;
2999
+ }, z.core.$strip>;
3000
+ };
3001
+ readonly 'process.stop': {
3002
+ readonly params: z.ZodObject<{
3003
+ profile_home: z.ZodString;
3004
+ session_id: z.ZodString;
3005
+ process_id: z.ZodString;
3006
+ }, z.core.$strip>;
3007
+ readonly result: z.ZodObject<{
3008
+ outcome: z.ZodEnum<{
3009
+ stopped: "stopped";
3010
+ not_running: "not_running";
3011
+ not_found: "not_found";
3012
+ }>;
1608
3013
  }, z.core.$strip>;
1609
3014
  };
1610
3015
  readonly 'process.list': {
@@ -1671,7 +3076,7 @@ export declare const AccountUsageSnapshotSchema: z.ZodObject<{
1671
3076
  }, z.core.$catchall<z.ZodUnknown>>;
1672
3077
  /**
1673
3078
  * TAL-548: one credential-pool entry's local state (no network, no secrets); the server derives a quota source per entry.
1674
- * `matches_api_key`: the entry's key is the server-resolved `api_key` passed to `usage.pool`.
3079
+ * `matches_api_key`: the entry's key is the configured key, passed as `api_key` or resolved from `env_vars` in the profile's secret scope.
1675
3080
  */
1676
3081
  export declare const PoolEntrySchema: z.ZodObject<{
1677
3082
  credential_id: z.ZodString;
@@ -1686,14 +3091,14 @@ export declare const PoolEntrySchema: z.ZodObject<{
1686
3091
  matches_api_key: z.ZodBoolean;
1687
3092
  }, z.core.$strip>;
1688
3093
  /**
1689
- * TAL-548: one key-based balance read. The key is the pool entry's (`credential_id`) or the server-resolved `api_key`.
3094
+ * TAL-548: one key-based balance read. The key is the pool entry's (`credential_id`), a raw `api_key`, or resolved from `env_vars` in the profile's secret scope.
1690
3095
  * `ok` carries the provider's sanitised fields: OpenRouter `quota`/`label`, DeepSeek `balances`/`is_available`, OpenCode Go
1691
3096
  * `windows`; `http_error` carries the status code.
1692
3097
  */
1693
3098
  export declare const BalanceResultSchema: z.ZodObject<{
1694
3099
  status: z.ZodEnum<{
1695
- ok: "ok";
1696
3100
  unavailable: "unavailable";
3101
+ ok: "ok";
1697
3102
  no_key: "no_key";
1698
3103
  http_error: "http_error";
1699
3104
  }>;
@@ -1725,6 +3130,14 @@ export declare const BalanceResultSchema: z.ZodObject<{
1725
3130
  rate_limited: z.ZodBoolean;
1726
3131
  }, z.core.$strip>>;
1727
3132
  }, z.core.$strip>;
3133
+ /** TAL-807: the Agent's `CredentialPool.limit_state`: every live account benched until `resets_at`, else the given models no usable account serves until their ISO reset. */
3134
+ export declare const PoolLimitSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3135
+ scope: z.ZodLiteral<"account">;
3136
+ resets_at: z.ZodString;
3137
+ }, z.core.$strip>, z.ZodObject<{
3138
+ scope: z.ZodLiteral<"models">;
3139
+ models: z.ZodRecord<z.ZodString, z.ZodString>;
3140
+ }, z.core.$strip>], "scope">;
1728
3141
  export declare const USAGE_METHODS: {
1729
3142
  readonly 'usage.account': {
1730
3143
  readonly params: z.ZodObject<{
@@ -1749,6 +3162,7 @@ export declare const USAGE_METHODS: {
1749
3162
  profile_home: z.ZodString;
1750
3163
  provider: z.ZodString;
1751
3164
  api_key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3165
+ env_vars: z.ZodOptional<z.ZodArray<z.ZodString>>;
1752
3166
  }, z.core.$strip>;
1753
3167
  readonly result: z.ZodObject<{
1754
3168
  entries: z.ZodArray<z.ZodObject<{
@@ -1763,15 +3177,40 @@ export declare const USAGE_METHODS: {
1763
3177
  retry_after: z.ZodNullable<z.ZodString>;
1764
3178
  matches_api_key: z.ZodBoolean;
1765
3179
  }, z.core.$strip>>;
3180
+ has_api_key: z.ZodOptional<z.ZodBoolean>;
1766
3181
  }, z.core.$strip>;
1767
3182
  };
1768
3183
  /** TAL-548: the providers whose persisted credential pool holds an account the user added, keyed or not. */
1769
3184
  readonly 'usage.pool_providers': {
1770
3185
  readonly params: z.ZodObject<{
1771
3186
  profile_home: z.ZodString;
3187
+ key_envs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
1772
3188
  }, z.core.$strip>;
1773
3189
  readonly result: z.ZodObject<{
1774
3190
  providers: z.ZodArray<z.ZodString>;
3191
+ keys: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
3192
+ present: z.ZodBoolean;
3193
+ revision: z.ZodNullable<z.ZodString>;
3194
+ }, z.core.$strip>>>;
3195
+ }, z.core.$strip>;
3196
+ };
3197
+ /** TAL-807: pool rate limits by provider slug, only for pooled providers that are limited; `models` are bare ids. */
3198
+ readonly 'usage.limits': {
3199
+ readonly params: z.ZodObject<{
3200
+ profile_home: z.ZodString;
3201
+ providers: z.ZodArray<z.ZodObject<{
3202
+ slug: z.ZodString;
3203
+ models: z.ZodArray<z.ZodString>;
3204
+ }, z.core.$strip>>;
3205
+ }, z.core.$strip>;
3206
+ readonly result: z.ZodObject<{
3207
+ limits: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
3208
+ scope: z.ZodLiteral<"account">;
3209
+ resets_at: z.ZodString;
3210
+ }, z.core.$strip>, z.ZodObject<{
3211
+ scope: z.ZodLiteral<"models">;
3212
+ models: z.ZodRecord<z.ZodString, z.ZodString>;
3213
+ }, z.core.$strip>], "scope">>;
1775
3214
  }, z.core.$strip>;
1776
3215
  };
1777
3216
  readonly 'usage.balance': {
@@ -1784,11 +3223,12 @@ export declare const USAGE_METHODS: {
1784
3223
  }>;
1785
3224
  credential_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1786
3225
  api_key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3226
+ env_vars: z.ZodOptional<z.ZodArray<z.ZodString>>;
1787
3227
  }, z.core.$strip>;
1788
3228
  readonly result: z.ZodObject<{
1789
3229
  status: z.ZodEnum<{
1790
- ok: "ok";
1791
3230
  unavailable: "unavailable";
3231
+ ok: "ok";
1792
3232
  no_key: "no_key";
1793
3233
  http_error: "http_error";
1794
3234
  }>;
@@ -1845,6 +3285,17 @@ export declare const CONFIG_METHODS: {
1845
3285
  path: z.ZodString;
1846
3286
  }, z.core.$strip>;
1847
3287
  };
3288
+ /** TAL-797: `.env` edits through the Agent's locked writer; `null` removes a key, an empty value is skipped; line breaks, spaces, quotes, `#` and non-ASCII are refused. */
3289
+ readonly 'config.env_write': {
3290
+ readonly params: z.ZodObject<{
3291
+ profile_home: z.ZodString;
3292
+ updates: z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>;
3293
+ }, z.core.$strip>;
3294
+ readonly result: z.ZodObject<{
3295
+ ok: z.ZodLiteral<true>;
3296
+ path: z.ZodString;
3297
+ }, z.core.$strip>;
3298
+ };
1848
3299
  readonly 'models.reasoning_efforts': {
1849
3300
  readonly params: z.ZodObject<{
1850
3301
  profile_home: z.ZodString;
@@ -1856,6 +3307,22 @@ export declare const CONFIG_METHODS: {
1856
3307
  supports_reasoning: z.ZodNullable<z.ZodBoolean>;
1857
3308
  }, z.core.$strip>;
1858
3309
  };
3310
+ /**
3311
+ * TAL-901: the Agent's personalities for `config` (its built-ins, then the top-level `personalities:` block, then
3312
+ * `agent.personalities`), by case-folded name in the Agent's order; `prompt` is the rendered overlay text.
3313
+ */
3314
+ readonly 'personalities.list': {
3315
+ readonly params: z.ZodObject<{
3316
+ config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3317
+ }, z.core.$strip>;
3318
+ readonly result: z.ZodObject<{
3319
+ personalities: z.ZodArray<z.ZodObject<{
3320
+ name: z.ZodString;
3321
+ description: z.ZodString;
3322
+ prompt: z.ZodString;
3323
+ }, z.core.$strip>>;
3324
+ }, z.core.$strip>;
3325
+ };
1859
3326
  };
1860
3327
  export declare const WORKTREE_METHODS: {
1861
3328
  readonly 'worktree.create': {
@@ -1870,6 +3337,23 @@ export declare const WORKTREE_METHODS: {
1870
3337
  base: z.ZodNullable<z.ZodString>;
1871
3338
  }, z.core.$strip>;
1872
3339
  };
3340
+ /**
3341
+ * TAL-1254: relock Talaria's worktrees for this sidecar (`hermes pid=<pid>`) so the Agent's worktree sweep reads them as
3342
+ * live. `foreign_lock`: a lock that is not a `hermes pid=` one holds the tree and stays. A tree this sidecar does not
3343
+ * hold yet (a running process's `hermes pid=` lock, or a git failure) is absent from `results`; the caller retries it.
3344
+ */
3345
+ readonly 'worktree.retain': {
3346
+ readonly params: z.ZodObject<{
3347
+ paths: z.ZodArray<z.ZodString>;
3348
+ }, z.core.$strip>;
3349
+ readonly result: z.ZodObject<{
3350
+ results: z.ZodRecord<z.ZodString, z.ZodEnum<{
3351
+ retained: "retained";
3352
+ missing: "missing";
3353
+ foreign_lock: "foreign_lock";
3354
+ }>>;
3355
+ }, z.core.$strip>;
3356
+ };
1873
3357
  };
1874
3358
  export declare const AgentCheckpointSchema: z.ZodObject<{
1875
3359
  hash: z.ZodString;
@@ -1911,15 +3395,24 @@ export declare const CHECKPOINTS_METHODS: {
1911
3395
  diff: z.ZodString;
1912
3396
  }, z.core.$strip>;
1913
3397
  };
3398
+ /**
3399
+ * Safe unless `all` (TAL-1260): only files still as the Agent last wrote them are reverted, and `kept_user_edits` names the
3400
+ * hand-edited ones left in place. `restored_files` is what a safe restore acted on; null when the whole tree was checked out.
3401
+ */
1914
3402
  readonly 'checkpoints.restore': {
1915
3403
  readonly params: z.ZodObject<{
1916
3404
  profile_home: z.ZodString;
1917
3405
  workspace: z.ZodString;
1918
3406
  checkpoint: z.ZodString;
3407
+ all: z.ZodOptional<z.ZodBoolean>;
1919
3408
  }, z.core.$strip>;
1920
3409
  readonly result: z.ZodObject<{
1921
3410
  restored_to: z.ZodString;
1922
3411
  reason: z.ZodString;
3412
+ restored_files: z.ZodNullable<z.ZodArray<z.ZodString>>;
3413
+ kept_user_edits: z.ZodArray<z.ZodString>;
3414
+ skipped_oversize: z.ZodArray<z.ZodString>;
3415
+ failed_deletes: z.ZodArray<z.ZodString>;
1923
3416
  }, z.core.$strip>;
1924
3417
  };
1925
3418
  };
@@ -1930,13 +3423,6 @@ export declare const ChatUsageSchema: z.ZodObject<{
1930
3423
  cache_write_tokens: z.ZodNumber;
1931
3424
  estimated_cost_usd: z.ZodNullable<z.ZodNumber>;
1932
3425
  }, z.core.$strip>;
1933
- /**
1934
- * `failed`, `partial`, and `compression_exhausted` are the Agent's own turn-result flags, forwarded as sent; `failed` also sets `status: 'error'`.
1935
- * `max_iterations_summary_request` is the Agent's text for the user row it appends to ask for a summary once its tool budget runs out
1936
- * (`tool_limit_reached`); the server drops that trailing row of an exhausted turn from the transcript and the model context (TAL-537).
1937
- * A completed `compressed` turn also carries `context_messages`, its `messages` with tool output pruned and capped for the model (row for row),
1938
- * and `post_compression_context_tokens_estimate`, the next request's estimated size (TAL-539); both are null otherwise.
1939
- */
1940
3426
  export declare const ChatStartResultSchema: z.ZodObject<{
1941
3427
  status: z.ZodEnum<{
1942
3428
  error: "error";
@@ -1960,7 +3446,9 @@ export declare const ChatStartResultSchema: z.ZodObject<{
1960
3446
  cache_write_tokens: z.ZodNumber;
1961
3447
  estimated_cost_usd: z.ZodNullable<z.ZodNumber>;
1962
3448
  }, z.core.$strip>;
1963
- context: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3449
+ context: z.ZodObject<{
3450
+ next_turn_threshold_tokens: z.ZodOptional<z.ZodNumber>;
3451
+ }, z.core.$loose>;
1964
3452
  model: z.ZodString;
1965
3453
  provider: z.ZodString;
1966
3454
  compressed: z.ZodBoolean;
@@ -2008,6 +3496,15 @@ export declare const ChatStreamSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
2008
3496
  tid: z.ZodOptional<z.ZodString>;
2009
3497
  is_error: z.ZodOptional<z.ZodBoolean>;
2010
3498
  }, z.core.$catchall<z.ZodUnknown>>;
3499
+ }, z.core.$strip>, z.ZodObject<{
3500
+ event: z.ZodLiteral<"tool_progress">;
3501
+ data: z.ZodObject<{
3502
+ tool_call_id: z.ZodString;
3503
+ message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3504
+ progress: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3505
+ total: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3506
+ percent: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3507
+ }, z.core.$strip>;
2011
3508
  }, z.core.$strip>, z.ZodObject<{
2012
3509
  event: z.ZodLiteral<"tool_complete">;
2013
3510
  data: z.ZodObject<{
@@ -2027,6 +3524,38 @@ export declare const ChatStreamSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
2027
3524
  }, z.core.$strip>, z.ZodObject<{
2028
3525
  event: z.ZodLiteral<"clarify_resolved">;
2029
3526
  data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3527
+ }, z.core.$strip>, z.ZodObject<{
3528
+ event: z.ZodLiteral<"connection">;
3529
+ data: z.ZodObject<{
3530
+ op_id: z.ZodString;
3531
+ settled: z.ZodBoolean;
3532
+ owner: z.ZodEnum<{
3533
+ session: "session";
3534
+ account: "account";
3535
+ }>;
3536
+ tool_call_id: z.ZodNullable<z.ZodString>;
3537
+ targets: z.ZodArray<z.ZodObject<{
3538
+ name: z.ZodString;
3539
+ kind: z.ZodString;
3540
+ state: z.ZodEnum<{
3541
+ pending: "pending";
3542
+ expired: "expired";
3543
+ skipped: "skipped";
3544
+ initiated: "initiated";
3545
+ connected: "connected";
3546
+ failed: "failed";
3547
+ not_connected: "not_connected";
3548
+ }>;
3549
+ detail: z.ZodString;
3550
+ connect_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3551
+ required_env: z.ZodArray<z.ZodObject<{
3552
+ name: z.ZodString;
3553
+ prompt: z.ZodString;
3554
+ required: z.ZodBoolean;
3555
+ secret: z.ZodBoolean;
3556
+ }, z.core.$strip>>;
3557
+ }, z.core.$strip>>;
3558
+ }, z.core.$strip>;
2030
3559
  }, z.core.$strip>, z.ZodObject<{
2031
3560
  event: z.ZodLiteral<"approval_resolved">;
2032
3561
  data: z.ZodObject<{
@@ -2037,12 +3566,52 @@ export declare const ChatStreamSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
2037
3566
  }, z.core.$strip>, z.ZodObject<{
2038
3567
  event: z.ZodLiteral<"compressing">;
2039
3568
  data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3569
+ }, z.core.$strip>, z.ZodObject<{
3570
+ event: z.ZodLiteral<"compression_finished">;
3571
+ data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2040
3572
  }, z.core.$strip>, z.ZodObject<{
2041
3573
  event: z.ZodLiteral<"warning">;
2042
3574
  data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2043
3575
  }, z.core.$strip>, z.ZodObject<{
2044
3576
  event: z.ZodLiteral<"status">;
2045
3577
  data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3578
+ }, z.core.$strip>, z.ZodObject<{
3579
+ event: z.ZodLiteral<"notice">;
3580
+ data: z.ZodObject<{
3581
+ id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3582
+ key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3583
+ level: z.ZodString;
3584
+ kind: z.ZodString;
3585
+ ttl_ms: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3586
+ text: z.ZodString;
3587
+ lapses_with_agent: z.ZodOptional<z.ZodBoolean>;
3588
+ }, z.core.$loose>;
3589
+ }, z.core.$strip>, z.ZodObject<{
3590
+ event: z.ZodLiteral<"notice_clear">;
3591
+ data: z.ZodObject<{
3592
+ key: z.ZodString;
3593
+ }, z.core.$loose>;
3594
+ }, z.core.$strip>, z.ZodObject<{
3595
+ event: z.ZodLiteral<"notices_reset">;
3596
+ data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3597
+ }, z.core.$strip>, z.ZodObject<{
3598
+ event: z.ZodLiteral<"provider_phase">;
3599
+ data: z.ZodObject<{
3600
+ phase: z.ZodNullable<z.ZodObject<{
3601
+ phase: z.ZodLiteral<"prompt_reading">;
3602
+ progress_percent: z.ZodNullable<z.ZodNumber>;
3603
+ }, z.core.$strip>>;
3604
+ }, z.core.$strip>;
3605
+ }, z.core.$strip>, z.ZodObject<{
3606
+ event: z.ZodLiteral<"rate_limit_wait">;
3607
+ data: z.ZodObject<{
3608
+ provider: z.ZodNullable<z.ZodString>;
3609
+ until: z.ZodNullable<z.ZodNumber>;
3610
+ until_kind: z.ZodOptional<z.ZodEnum<{
3611
+ reset: "reset";
3612
+ retry: "retry";
3613
+ }>>;
3614
+ }, z.core.$loose>;
2046
3615
  }, z.core.$strip>], "event">;
2047
3616
  export declare const CHAT_METHODS: {
2048
3617
  readonly 'chat.start': {
@@ -2067,6 +3636,10 @@ export declare const CHAT_METHODS: {
2067
3636
  ephemeral_system_prompt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2068
3637
  persist_user_message: z.ZodOptional<z.ZodString>;
2069
3638
  ephemeral: z.ZodOptional<z.ZodBoolean>;
3639
+ voice_turn: z.ZodOptional<z.ZodBoolean>;
3640
+ connect_card: z.ZodOptional<z.ZodBoolean>;
3641
+ skill_secret: z.ZodOptional<z.ZodBoolean>;
3642
+ workspace_local: z.ZodOptional<z.ZodBoolean>;
2070
3643
  }, z.core.$strip>;
2071
3644
  readonly result: z.ZodObject<{
2072
3645
  status: z.ZodEnum<{
@@ -2091,7 +3664,9 @@ export declare const CHAT_METHODS: {
2091
3664
  cache_write_tokens: z.ZodNumber;
2092
3665
  estimated_cost_usd: z.ZodNullable<z.ZodNumber>;
2093
3666
  }, z.core.$strip>;
2094
- context: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3667
+ context: z.ZodObject<{
3668
+ next_turn_threshold_tokens: z.ZodOptional<z.ZodNumber>;
3669
+ }, z.core.$loose>;
2095
3670
  model: z.ZodString;
2096
3671
  provider: z.ZodString;
2097
3672
  compressed: z.ZodBoolean;
@@ -2139,6 +3714,15 @@ export declare const CHAT_METHODS: {
2139
3714
  tid: z.ZodOptional<z.ZodString>;
2140
3715
  is_error: z.ZodOptional<z.ZodBoolean>;
2141
3716
  }, z.core.$catchall<z.ZodUnknown>>;
3717
+ }, z.core.$strip>, z.ZodObject<{
3718
+ event: z.ZodLiteral<"tool_progress">;
3719
+ data: z.ZodObject<{
3720
+ tool_call_id: z.ZodString;
3721
+ message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3722
+ progress: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3723
+ total: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3724
+ percent: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3725
+ }, z.core.$strip>;
2142
3726
  }, z.core.$strip>, z.ZodObject<{
2143
3727
  event: z.ZodLiteral<"tool_complete">;
2144
3728
  data: z.ZodObject<{
@@ -2158,6 +3742,38 @@ export declare const CHAT_METHODS: {
2158
3742
  }, z.core.$strip>, z.ZodObject<{
2159
3743
  event: z.ZodLiteral<"clarify_resolved">;
2160
3744
  data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3745
+ }, z.core.$strip>, z.ZodObject<{
3746
+ event: z.ZodLiteral<"connection">;
3747
+ data: z.ZodObject<{
3748
+ op_id: z.ZodString;
3749
+ settled: z.ZodBoolean;
3750
+ owner: z.ZodEnum<{
3751
+ session: "session";
3752
+ account: "account";
3753
+ }>;
3754
+ tool_call_id: z.ZodNullable<z.ZodString>;
3755
+ targets: z.ZodArray<z.ZodObject<{
3756
+ name: z.ZodString;
3757
+ kind: z.ZodString;
3758
+ state: z.ZodEnum<{
3759
+ pending: "pending";
3760
+ expired: "expired";
3761
+ skipped: "skipped";
3762
+ initiated: "initiated";
3763
+ connected: "connected";
3764
+ failed: "failed";
3765
+ not_connected: "not_connected";
3766
+ }>;
3767
+ detail: z.ZodString;
3768
+ connect_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3769
+ required_env: z.ZodArray<z.ZodObject<{
3770
+ name: z.ZodString;
3771
+ prompt: z.ZodString;
3772
+ required: z.ZodBoolean;
3773
+ secret: z.ZodBoolean;
3774
+ }, z.core.$strip>>;
3775
+ }, z.core.$strip>>;
3776
+ }, z.core.$strip>;
2161
3777
  }, z.core.$strip>, z.ZodObject<{
2162
3778
  event: z.ZodLiteral<"approval_resolved">;
2163
3779
  data: z.ZodObject<{
@@ -2168,12 +3784,52 @@ export declare const CHAT_METHODS: {
2168
3784
  }, z.core.$strip>, z.ZodObject<{
2169
3785
  event: z.ZodLiteral<"compressing">;
2170
3786
  data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3787
+ }, z.core.$strip>, z.ZodObject<{
3788
+ event: z.ZodLiteral<"compression_finished">;
3789
+ data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2171
3790
  }, z.core.$strip>, z.ZodObject<{
2172
3791
  event: z.ZodLiteral<"warning">;
2173
3792
  data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2174
3793
  }, z.core.$strip>, z.ZodObject<{
2175
3794
  event: z.ZodLiteral<"status">;
2176
3795
  data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3796
+ }, z.core.$strip>, z.ZodObject<{
3797
+ event: z.ZodLiteral<"notice">;
3798
+ data: z.ZodObject<{
3799
+ id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3800
+ key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3801
+ level: z.ZodString;
3802
+ kind: z.ZodString;
3803
+ ttl_ms: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3804
+ text: z.ZodString;
3805
+ lapses_with_agent: z.ZodOptional<z.ZodBoolean>;
3806
+ }, z.core.$loose>;
3807
+ }, z.core.$strip>, z.ZodObject<{
3808
+ event: z.ZodLiteral<"notice_clear">;
3809
+ data: z.ZodObject<{
3810
+ key: z.ZodString;
3811
+ }, z.core.$loose>;
3812
+ }, z.core.$strip>, z.ZodObject<{
3813
+ event: z.ZodLiteral<"notices_reset">;
3814
+ data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3815
+ }, z.core.$strip>, z.ZodObject<{
3816
+ event: z.ZodLiteral<"provider_phase">;
3817
+ data: z.ZodObject<{
3818
+ phase: z.ZodNullable<z.ZodObject<{
3819
+ phase: z.ZodLiteral<"prompt_reading">;
3820
+ progress_percent: z.ZodNullable<z.ZodNumber>;
3821
+ }, z.core.$strip>>;
3822
+ }, z.core.$strip>;
3823
+ }, z.core.$strip>, z.ZodObject<{
3824
+ event: z.ZodLiteral<"rate_limit_wait">;
3825
+ data: z.ZodObject<{
3826
+ provider: z.ZodNullable<z.ZodString>;
3827
+ until: z.ZodNullable<z.ZodNumber>;
3828
+ until_kind: z.ZodOptional<z.ZodEnum<{
3829
+ reset: "reset";
3830
+ retry: "retry";
3831
+ }>>;
3832
+ }, z.core.$loose>;
2177
3833
  }, z.core.$strip>], "event">;
2178
3834
  };
2179
3835
  readonly 'chat.interrupt': {
@@ -2220,7 +3876,7 @@ export declare const CHAT_METHODS: {
2220
3876
  /**
2221
3877
  * TAL-424: deliver `pending[index]` now with the Agent's `redirect`: `delivery: redirect` restarts the model request with
2222
3878
  * it, `delivery: steer` puts it last on the slot while tools yield. Not redirected: it stays pending, `requeued` in its
2223
- * place (`kept`) or last (`last`); `withdrawn: false` when the Agent already took it.
3879
+ * place (`kept`) or last (`last`); `withdrawn: false` when the Agent already took it, or `reason: not_running` when the run or Agent is absent.
2224
3880
  */
2225
3881
  readonly 'chat.steer_now': {
2226
3882
  readonly params: z.ZodObject<{
@@ -2233,13 +3889,16 @@ export declare const CHAT_METHODS: {
2233
3889
  redirected: z.ZodBoolean;
2234
3890
  withdrawn: z.ZodBoolean;
2235
3891
  delivery: z.ZodOptional<z.ZodEnum<{
2236
- redirect: "redirect";
2237
3892
  steer: "steer";
3893
+ redirect: "redirect";
2238
3894
  }>>;
2239
3895
  requeued: z.ZodOptional<z.ZodEnum<{
2240
3896
  kept: "kept";
2241
3897
  last: "last";
2242
3898
  }>>;
3899
+ reason: z.ZodOptional<z.ZodEnum<{
3900
+ not_running: "not_running";
3901
+ }>>;
2243
3902
  }, z.core.$strip>;
2244
3903
  };
2245
3904
  /**
@@ -2277,6 +3936,77 @@ export declare const CHAT_METHODS: {
2277
3936
  commit_token: z.ZodNullable<z.ZodString>;
2278
3937
  }, z.core.$strip>;
2279
3938
  };
3939
+ /** TAL-1333: safe metadata from the existing matching resident Agent, never a new Agent. */
3940
+ readonly 'chat.context_detail': {
3941
+ readonly params: z.ZodObject<{
3942
+ profile_home: z.ZodString;
3943
+ session_id: z.ZodString;
3944
+ model: z.ZodNullable<z.ZodString>;
3945
+ model_provider: z.ZodNullable<z.ZodString>;
3946
+ workspace: z.ZodNullable<z.ZodString>;
3947
+ }, z.core.$strip>;
3948
+ readonly result: z.ZodObject<{
3949
+ available: z.ZodBoolean;
3950
+ reason: z.ZodNullable<z.ZodEnum<{
3951
+ not_built: "not_built";
3952
+ unsupported: "unsupported";
3953
+ changed: "changed";
3954
+ unavailable: "unavailable";
3955
+ }>>;
3956
+ used_tokens: z.ZodNullable<z.ZodNumber>;
3957
+ window_tokens: z.ZodNullable<z.ZodNumber>;
3958
+ estimated_total: z.ZodNullable<z.ZodNumber>;
3959
+ source: z.ZodNullable<z.ZodEnum<{
3960
+ local_estimate: "local_estimate";
3961
+ provider_usage: "provider_usage";
3962
+ provider_usage_plus_estimate: "provider_usage_plus_estimate";
3963
+ }>>;
3964
+ estimated: z.ZodNullable<z.ZodBoolean>;
3965
+ categories: z.ZodArray<z.ZodObject<{
3966
+ id: z.ZodEnum<{
3967
+ system_prompt: "system_prompt";
3968
+ tool_definitions: "tool_definitions";
3969
+ rules: "rules";
3970
+ skills: "skills";
3971
+ mcp: "mcp";
3972
+ subagent_definitions: "subagent_definitions";
3973
+ memory: "memory";
3974
+ conversation: "conversation";
3975
+ }>;
3976
+ tokens: z.ZodNumber;
3977
+ percent: z.ZodNullable<z.ZodNumber>;
3978
+ estimated: z.ZodLiteral<true>;
3979
+ }, z.core.$strip>>;
3980
+ files: z.ZodArray<z.ZodObject<{
3981
+ label: z.ZodEnum<{
3982
+ "AGENTS.md": "AGENTS.md";
3983
+ "SOUL.md": "SOUL.md";
3984
+ ".hermes.md": ".hermes.md";
3985
+ "CLAUDE.md": "CLAUDE.md";
3986
+ "GEMINI.md": "GEMINI.md";
3987
+ "CONTEXT.md": "CONTEXT.md";
3988
+ "Context file": "Context file";
3989
+ }>;
3990
+ characters: z.ZodNullable<z.ZodNumber>;
3991
+ tokens: z.ZodNullable<z.ZodNumber>;
3992
+ status: z.ZodEnum<{
3993
+ unknown: "unknown";
3994
+ loaded: "loaded";
3995
+ truncated: "truncated";
3996
+ flagged: "flagged";
3997
+ shadowed: "shadowed";
3998
+ blocked: "blocked";
3999
+ empty: "empty";
4000
+ unreadable: "unreadable";
4001
+ suppressed: "suppressed";
4002
+ }>;
4003
+ loaded: z.ZodNullable<z.ZodBoolean>;
4004
+ }, z.core.$strip>>;
4005
+ truncated: z.ZodBoolean;
4006
+ current_turn_output_tokens: z.ZodNullable<z.ZodNumber>;
4007
+ last_turn_output_tokens: z.ZodNullable<z.ZodNumber>;
4008
+ }, z.core.$strip>;
4009
+ };
2280
4010
  /** TAL-255: second phase of `chat.compress`; `finalized: false` when the token is unknown or already expired. */
2281
4011
  readonly 'chat.compress_finalize': {
2282
4012
  readonly params: z.ZodObject<{
@@ -2287,6 +4017,22 @@ export declare const CHAT_METHODS: {
2287
4017
  finalized: z.ZodBoolean;
2288
4018
  }, z.core.$strip>;
2289
4019
  };
4020
+ /** Archive only emits on_session_delete for the committed local transition; it never closes the Agent session. */
4021
+ readonly 'chat.finalize_session': {
4022
+ readonly params: z.ZodObject<{
4023
+ profile_home: z.ZodString;
4024
+ session_id: z.ZodString;
4025
+ reason: z.ZodEnum<{
4026
+ archive: "archive";
4027
+ delete: "delete";
4028
+ clear: "clear";
4029
+ }>;
4030
+ lineage: z.ZodOptional<z.ZodArray<z.ZodString>>;
4031
+ }, z.core.$strip>;
4032
+ readonly result: z.ZodObject<{
4033
+ messages: z.ZodArray<z.ZodString>;
4034
+ }, z.core.$strip>;
4035
+ };
2290
4036
  readonly 'chat.evict_agent': {
2291
4037
  readonly params: z.ZodObject<{
2292
4038
  session_id: z.ZodString;
@@ -2305,6 +4051,33 @@ export declare const CHAT_METHODS: {
2305
4051
  committed: z.ZodBoolean;
2306
4052
  }, z.core.$strip>;
2307
4053
  };
4054
+ /**
4055
+ * TAL-902: `/refine [focus]`, the Agent's on-demand memory/skill review of `messages` (the session's model context) on the
4056
+ * session's cached agent, else one built from the turn parameters and cached like a turn's. `output` is the Agent's
4057
+ * wording: the review started, or why not (a turn is running, the conversation is empty).
4058
+ */
4059
+ readonly 'chat.refine': {
4060
+ readonly params: z.ZodObject<{
4061
+ profile_home: z.ZodString;
4062
+ session_id: z.ZodString;
4063
+ messages: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4064
+ focus: z.ZodString;
4065
+ model: z.ZodString;
4066
+ model_provider: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4067
+ enabled_toolsets: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
4068
+ max_iterations: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4069
+ max_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4070
+ reasoning_config: z.ZodOptional<z.ZodNullable<z.ZodObject<{
4071
+ enabled: z.ZodBoolean;
4072
+ effort: z.ZodOptional<z.ZodString>;
4073
+ }, z.core.$strip>>>;
4074
+ workspace: z.ZodOptional<z.ZodString>;
4075
+ workspace_local: z.ZodOptional<z.ZodBoolean>;
4076
+ }, z.core.$strip>;
4077
+ readonly result: z.ZodObject<{
4078
+ output: z.ZodString;
4079
+ }, z.core.$strip>;
4080
+ };
2308
4081
  readonly 'approval.respond': {
2309
4082
  readonly params: z.ZodObject<{
2310
4083
  profile_home: z.ZodString;
@@ -2356,9 +4129,581 @@ export declare const CHAT_METHODS: {
2356
4129
  };
2357
4130
  export declare const GATEWAY_ACTIONS: readonly ["start", "stop", "restart"];
2358
4131
  export declare const GATEWAY_METHODS: {
4132
+ readonly 'gateway.session': {
4133
+ readonly params: z.ZodObject<{
4134
+ profile_home: z.ZodString;
4135
+ session_id: z.ZodString;
4136
+ action: z.ZodEnum<{
4137
+ snapshot: "snapshot";
4138
+ receipt: "receipt";
4139
+ context_detail: "context_detail";
4140
+ export: "export";
4141
+ watch: "watch";
4142
+ submit: "submit";
4143
+ cancel: "cancel";
4144
+ steer_queued: "steer_queued";
4145
+ replace_queued: "replace_queued";
4146
+ interrupt: "interrupt";
4147
+ approval: "approval";
4148
+ clarify: "clarify";
4149
+ clarify_lock: "clarify_lock";
4150
+ discard: "discard";
4151
+ mutate: "mutate";
4152
+ }>;
4153
+ format: z.ZodOptional<z.ZodEnum<{
4154
+ json: "json";
4155
+ markdown: "markdown";
4156
+ html: "html";
4157
+ }>>;
4158
+ redact: z.ZodOptional<z.ZodBoolean>;
4159
+ request_id: z.ZodOptional<z.ZodString>;
4160
+ text: z.ZodOptional<z.ZodString>;
4161
+ submission_id: z.ZodOptional<z.ZodString>;
4162
+ show_reasoning: z.ZodOptional<z.ZodBoolean>;
4163
+ admission_id: z.ZodOptional<z.ZodString>;
4164
+ execution_generation: z.ZodOptional<z.ZodNumber>;
4165
+ prompt_id: z.ZodOptional<z.ZodString>;
4166
+ choice: z.ZodOptional<z.ZodEnum<{
4167
+ once: "once";
4168
+ session: "session";
4169
+ always: "always";
4170
+ deny: "deny";
4171
+ }>>;
4172
+ question_id: z.ZodOptional<z.ZodString>;
4173
+ answer: z.ZodOptional<z.ZodString>;
4174
+ expected_revision: z.ZodOptional<z.ZodNumber>;
4175
+ operation: z.ZodOptional<z.ZodEnum<{
4176
+ model: "model";
4177
+ rename: "rename";
4178
+ archive: "archive";
4179
+ sidebar: "sidebar";
4180
+ branch: "branch";
4181
+ delete: "delete";
4182
+ rewind: "rewind";
4183
+ reset: "reset";
4184
+ workspace: "workspace";
4185
+ compress: "compress";
4186
+ }>>;
4187
+ payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4188
+ }, z.core.$strip>;
4189
+ readonly result: z.ZodObject<{
4190
+ state: z.ZodEnum<{
4191
+ unavailable: "unavailable";
4192
+ refused: "refused";
4193
+ attached: "attached";
4194
+ stopped: "stopped";
4195
+ incompatible: "incompatible";
4196
+ }>;
4197
+ reason: z.ZodNullable<z.ZodString>;
4198
+ replay_gap: z.ZodOptional<z.ZodBoolean>;
4199
+ snapshot: z.ZodNullable<z.ZodObject<{
4200
+ session_id: z.ZodString;
4201
+ stored_session_id: z.ZodString;
4202
+ messages: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4203
+ message_count: z.ZodNumber;
4204
+ running: z.ZodBoolean;
4205
+ authority_epoch: z.ZodNumber;
4206
+ replay_epoch: z.ZodString;
4207
+ last_sequence: z.ZodNumber;
4208
+ subscription_id: z.ZodString;
4209
+ revision: z.ZodNumber;
4210
+ execution_generation: z.ZodNumber;
4211
+ pending: z.ZodArray<z.ZodObject<{
4212
+ admission_id: z.ZodString;
4213
+ sequence: z.ZodNumber;
4214
+ status: z.ZodEnum<{
4215
+ unknown: "unknown";
4216
+ queued: "queued";
4217
+ started: "started";
4218
+ terminal: "terminal";
4219
+ }>;
4220
+ outcome: z.ZodNullable<z.ZodString>;
4221
+ authority_epoch: z.ZodNumber;
4222
+ execution_generation: z.ZodNullable<z.ZodNumber>;
4223
+ controls: z.ZodOptional<z.ZodArray<z.ZodString>>;
4224
+ steering: z.ZodOptional<z.ZodBoolean>;
4225
+ text: z.ZodOptional<z.ZodString>;
4226
+ input_id: z.ZodOptional<z.ZodString>;
4227
+ }, z.core.$strip>>;
4228
+ prompts: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4229
+ info: z.ZodRecord<z.ZodString, z.ZodUnknown>;
4230
+ }, z.core.$strip>>;
4231
+ receipt: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
4232
+ admission_id: z.ZodString;
4233
+ sequence: z.ZodNumber;
4234
+ status: z.ZodEnum<{
4235
+ unknown: "unknown";
4236
+ queued: "queued";
4237
+ started: "started";
4238
+ terminal: "terminal";
4239
+ }>;
4240
+ outcome: z.ZodNullable<z.ZodString>;
4241
+ authority_epoch: z.ZodNumber;
4242
+ execution_generation: z.ZodNullable<z.ZodNumber>;
4243
+ controls: z.ZodOptional<z.ZodArray<z.ZodString>>;
4244
+ steering: z.ZodOptional<z.ZodBoolean>;
4245
+ text: z.ZodOptional<z.ZodString>;
4246
+ input_id: z.ZodOptional<z.ZodString>;
4247
+ voice_stopped: z.ZodOptional<z.ZodNever>;
4248
+ }, z.core.$strip>, z.ZodObject<{
4249
+ operation: z.ZodString;
4250
+ status: z.ZodOptional<z.ZodString>;
4251
+ voice_stopped: z.ZodOptional<z.ZodNever>;
4252
+ }, z.core.$loose>, z.ZodObject<{
4253
+ voice_stopped: z.ZodLiteral<true>;
4254
+ }, z.core.$strict>]>>;
4255
+ model_change: z.ZodOptional<z.ZodObject<{
4256
+ state: z.ZodEnum<{
4257
+ applied: "applied";
4258
+ deferred: "deferred";
4259
+ confirmation_required: "confirmation_required";
4260
+ refused: "refused";
4261
+ }>;
4262
+ message: z.ZodOptional<z.ZodString>;
4263
+ confirm: z.ZodOptional<z.ZodString>;
4264
+ model: z.ZodOptional<z.ZodString>;
4265
+ provider: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4266
+ }, z.core.$strip>>;
4267
+ context_detail: z.ZodOptional<z.ZodObject<{
4268
+ available: z.ZodBoolean;
4269
+ reason: z.ZodNullable<z.ZodEnum<{
4270
+ not_built: "not_built";
4271
+ unsupported: "unsupported";
4272
+ changed: "changed";
4273
+ unavailable: "unavailable";
4274
+ }>>;
4275
+ used_tokens: z.ZodNullable<z.ZodNumber>;
4276
+ window_tokens: z.ZodNullable<z.ZodNumber>;
4277
+ estimated_total: z.ZodNullable<z.ZodNumber>;
4278
+ source: z.ZodNullable<z.ZodEnum<{
4279
+ local_estimate: "local_estimate";
4280
+ provider_usage: "provider_usage";
4281
+ provider_usage_plus_estimate: "provider_usage_plus_estimate";
4282
+ }>>;
4283
+ estimated: z.ZodNullable<z.ZodBoolean>;
4284
+ categories: z.ZodArray<z.ZodObject<{
4285
+ id: z.ZodEnum<{
4286
+ system_prompt: "system_prompt";
4287
+ tool_definitions: "tool_definitions";
4288
+ rules: "rules";
4289
+ skills: "skills";
4290
+ mcp: "mcp";
4291
+ subagent_definitions: "subagent_definitions";
4292
+ memory: "memory";
4293
+ conversation: "conversation";
4294
+ }>;
4295
+ tokens: z.ZodNumber;
4296
+ percent: z.ZodNullable<z.ZodNumber>;
4297
+ estimated: z.ZodLiteral<true>;
4298
+ }, z.core.$strip>>;
4299
+ files: z.ZodArray<z.ZodObject<{
4300
+ label: z.ZodEnum<{
4301
+ "AGENTS.md": "AGENTS.md";
4302
+ "SOUL.md": "SOUL.md";
4303
+ ".hermes.md": ".hermes.md";
4304
+ "CLAUDE.md": "CLAUDE.md";
4305
+ "GEMINI.md": "GEMINI.md";
4306
+ "CONTEXT.md": "CONTEXT.md";
4307
+ "Context file": "Context file";
4308
+ }>;
4309
+ characters: z.ZodNullable<z.ZodNumber>;
4310
+ tokens: z.ZodNullable<z.ZodNumber>;
4311
+ status: z.ZodEnum<{
4312
+ unknown: "unknown";
4313
+ loaded: "loaded";
4314
+ truncated: "truncated";
4315
+ flagged: "flagged";
4316
+ shadowed: "shadowed";
4317
+ blocked: "blocked";
4318
+ empty: "empty";
4319
+ unreadable: "unreadable";
4320
+ suppressed: "suppressed";
4321
+ }>;
4322
+ loaded: z.ZodNullable<z.ZodBoolean>;
4323
+ }, z.core.$strip>>;
4324
+ truncated: z.ZodBoolean;
4325
+ current_turn_output_tokens: z.ZodNullable<z.ZodNumber>;
4326
+ last_turn_output_tokens: z.ZodNullable<z.ZodNumber>;
4327
+ }, z.core.$strip>>;
4328
+ export: z.ZodOptional<z.ZodObject<{
4329
+ format: z.ZodEnum<{
4330
+ json: "json";
4331
+ markdown: "markdown";
4332
+ html: "html";
4333
+ }>;
4334
+ filename: z.ZodString;
4335
+ content: z.ZodString;
4336
+ }, z.core.$strip>>;
4337
+ restarting: z.ZodOptional<z.ZodBoolean>;
4338
+ lock: z.ZodOptional<z.ZodObject<{
4339
+ status: z.ZodEnum<{
4340
+ ok: "ok";
4341
+ expired: "expired";
4342
+ }>;
4343
+ remaining: z.ZodOptional<z.ZodArray<z.ZodString>>;
4344
+ }, z.core.$strip>>;
4345
+ }, z.core.$strip>;
4346
+ readonly stream: z.ZodDiscriminatedUnion<[z.ZodObject<{
4347
+ event: z.ZodLiteral<"snapshot">;
4348
+ data: z.ZodObject<{
4349
+ state: z.ZodEnum<{
4350
+ unavailable: "unavailable";
4351
+ refused: "refused";
4352
+ attached: "attached";
4353
+ stopped: "stopped";
4354
+ incompatible: "incompatible";
4355
+ }>;
4356
+ reason: z.ZodNullable<z.ZodString>;
4357
+ replay_gap: z.ZodOptional<z.ZodBoolean>;
4358
+ snapshot: z.ZodNullable<z.ZodObject<{
4359
+ session_id: z.ZodString;
4360
+ stored_session_id: z.ZodString;
4361
+ messages: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4362
+ message_count: z.ZodNumber;
4363
+ running: z.ZodBoolean;
4364
+ authority_epoch: z.ZodNumber;
4365
+ replay_epoch: z.ZodString;
4366
+ last_sequence: z.ZodNumber;
4367
+ subscription_id: z.ZodString;
4368
+ revision: z.ZodNumber;
4369
+ execution_generation: z.ZodNumber;
4370
+ pending: z.ZodArray<z.ZodObject<{
4371
+ admission_id: z.ZodString;
4372
+ sequence: z.ZodNumber;
4373
+ status: z.ZodEnum<{
4374
+ unknown: "unknown";
4375
+ queued: "queued";
4376
+ started: "started";
4377
+ terminal: "terminal";
4378
+ }>;
4379
+ outcome: z.ZodNullable<z.ZodString>;
4380
+ authority_epoch: z.ZodNumber;
4381
+ execution_generation: z.ZodNullable<z.ZodNumber>;
4382
+ controls: z.ZodOptional<z.ZodArray<z.ZodString>>;
4383
+ steering: z.ZodOptional<z.ZodBoolean>;
4384
+ text: z.ZodOptional<z.ZodString>;
4385
+ input_id: z.ZodOptional<z.ZodString>;
4386
+ }, z.core.$strip>>;
4387
+ prompts: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4388
+ info: z.ZodRecord<z.ZodString, z.ZodUnknown>;
4389
+ }, z.core.$strip>>;
4390
+ receipt: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
4391
+ admission_id: z.ZodString;
4392
+ sequence: z.ZodNumber;
4393
+ status: z.ZodEnum<{
4394
+ unknown: "unknown";
4395
+ queued: "queued";
4396
+ started: "started";
4397
+ terminal: "terminal";
4398
+ }>;
4399
+ outcome: z.ZodNullable<z.ZodString>;
4400
+ authority_epoch: z.ZodNumber;
4401
+ execution_generation: z.ZodNullable<z.ZodNumber>;
4402
+ controls: z.ZodOptional<z.ZodArray<z.ZodString>>;
4403
+ steering: z.ZodOptional<z.ZodBoolean>;
4404
+ text: z.ZodOptional<z.ZodString>;
4405
+ input_id: z.ZodOptional<z.ZodString>;
4406
+ voice_stopped: z.ZodOptional<z.ZodNever>;
4407
+ }, z.core.$strip>, z.ZodObject<{
4408
+ operation: z.ZodString;
4409
+ status: z.ZodOptional<z.ZodString>;
4410
+ voice_stopped: z.ZodOptional<z.ZodNever>;
4411
+ }, z.core.$loose>, z.ZodObject<{
4412
+ voice_stopped: z.ZodLiteral<true>;
4413
+ }, z.core.$strict>]>>;
4414
+ model_change: z.ZodOptional<z.ZodObject<{
4415
+ state: z.ZodEnum<{
4416
+ applied: "applied";
4417
+ deferred: "deferred";
4418
+ confirmation_required: "confirmation_required";
4419
+ refused: "refused";
4420
+ }>;
4421
+ message: z.ZodOptional<z.ZodString>;
4422
+ confirm: z.ZodOptional<z.ZodString>;
4423
+ model: z.ZodOptional<z.ZodString>;
4424
+ provider: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4425
+ }, z.core.$strip>>;
4426
+ context_detail: z.ZodOptional<z.ZodObject<{
4427
+ available: z.ZodBoolean;
4428
+ reason: z.ZodNullable<z.ZodEnum<{
4429
+ not_built: "not_built";
4430
+ unsupported: "unsupported";
4431
+ changed: "changed";
4432
+ unavailable: "unavailable";
4433
+ }>>;
4434
+ used_tokens: z.ZodNullable<z.ZodNumber>;
4435
+ window_tokens: z.ZodNullable<z.ZodNumber>;
4436
+ estimated_total: z.ZodNullable<z.ZodNumber>;
4437
+ source: z.ZodNullable<z.ZodEnum<{
4438
+ local_estimate: "local_estimate";
4439
+ provider_usage: "provider_usage";
4440
+ provider_usage_plus_estimate: "provider_usage_plus_estimate";
4441
+ }>>;
4442
+ estimated: z.ZodNullable<z.ZodBoolean>;
4443
+ categories: z.ZodArray<z.ZodObject<{
4444
+ id: z.ZodEnum<{
4445
+ system_prompt: "system_prompt";
4446
+ tool_definitions: "tool_definitions";
4447
+ rules: "rules";
4448
+ skills: "skills";
4449
+ mcp: "mcp";
4450
+ subagent_definitions: "subagent_definitions";
4451
+ memory: "memory";
4452
+ conversation: "conversation";
4453
+ }>;
4454
+ tokens: z.ZodNumber;
4455
+ percent: z.ZodNullable<z.ZodNumber>;
4456
+ estimated: z.ZodLiteral<true>;
4457
+ }, z.core.$strip>>;
4458
+ files: z.ZodArray<z.ZodObject<{
4459
+ label: z.ZodEnum<{
4460
+ "AGENTS.md": "AGENTS.md";
4461
+ "SOUL.md": "SOUL.md";
4462
+ ".hermes.md": ".hermes.md";
4463
+ "CLAUDE.md": "CLAUDE.md";
4464
+ "GEMINI.md": "GEMINI.md";
4465
+ "CONTEXT.md": "CONTEXT.md";
4466
+ "Context file": "Context file";
4467
+ }>;
4468
+ characters: z.ZodNullable<z.ZodNumber>;
4469
+ tokens: z.ZodNullable<z.ZodNumber>;
4470
+ status: z.ZodEnum<{
4471
+ unknown: "unknown";
4472
+ loaded: "loaded";
4473
+ truncated: "truncated";
4474
+ flagged: "flagged";
4475
+ shadowed: "shadowed";
4476
+ blocked: "blocked";
4477
+ empty: "empty";
4478
+ unreadable: "unreadable";
4479
+ suppressed: "suppressed";
4480
+ }>;
4481
+ loaded: z.ZodNullable<z.ZodBoolean>;
4482
+ }, z.core.$strip>>;
4483
+ truncated: z.ZodBoolean;
4484
+ current_turn_output_tokens: z.ZodNullable<z.ZodNumber>;
4485
+ last_turn_output_tokens: z.ZodNullable<z.ZodNumber>;
4486
+ }, z.core.$strip>>;
4487
+ export: z.ZodOptional<z.ZodObject<{
4488
+ format: z.ZodEnum<{
4489
+ json: "json";
4490
+ markdown: "markdown";
4491
+ html: "html";
4492
+ }>;
4493
+ filename: z.ZodString;
4494
+ content: z.ZodString;
4495
+ }, z.core.$strip>>;
4496
+ restarting: z.ZodOptional<z.ZodBoolean>;
4497
+ lock: z.ZodOptional<z.ZodObject<{
4498
+ status: z.ZodEnum<{
4499
+ ok: "ok";
4500
+ expired: "expired";
4501
+ }>;
4502
+ remaining: z.ZodOptional<z.ZodArray<z.ZodString>>;
4503
+ }, z.core.$strip>>;
4504
+ replaying: z.ZodOptional<z.ZodBoolean>;
4505
+ }, z.core.$strip>;
4506
+ }, z.core.$strip>, z.ZodObject<{
4507
+ event: z.ZodLiteral<"event">;
4508
+ data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
4509
+ }, z.core.$strip>, z.ZodObject<{
4510
+ event: z.ZodLiteral<"replay_complete">;
4511
+ data: z.ZodObject<{}, z.core.$strip>;
4512
+ }, z.core.$strip>, z.ZodObject<{
4513
+ event: z.ZodLiteral<"clarify_batch">;
4514
+ data: z.ZodObject<{
4515
+ request_id: z.ZodString;
4516
+ questions: z.ZodArray<z.ZodObject<{
4517
+ qid: z.ZodString;
4518
+ question: z.ZodString;
4519
+ choices: z.ZodOptional<z.ZodArray<z.ZodString>>;
4520
+ multi_select: z.ZodOptional<z.ZodBoolean>;
4521
+ }, z.core.$strip>>;
4522
+ }, z.core.$strip>;
4523
+ }, z.core.$strip>, z.ZodObject<{
4524
+ event: z.ZodLiteral<"restarting">;
4525
+ data: z.ZodObject<{
4526
+ restarting: z.ZodLiteral<true>;
4527
+ }, z.core.$strip>;
4528
+ }, z.core.$strip>], "event">;
4529
+ };
4530
+ readonly 'gateway.create': {
4531
+ readonly params: z.ZodObject<{
4532
+ profile_home: z.ZodString;
4533
+ probe: z.ZodOptional<z.ZodBoolean>;
4534
+ request_id: z.ZodOptional<z.ZodString>;
4535
+ execution_mode: z.ZodOptional<z.ZodEnum<{
4536
+ ignore_config: "ignore_config";
4537
+ safe: "safe";
4538
+ }>>;
4539
+ cwd: z.ZodOptional<z.ZodString>;
4540
+ model: z.ZodOptional<z.ZodString>;
4541
+ provider: z.ZodOptional<z.ZodString>;
4542
+ base_url: z.ZodOptional<z.ZodString>;
4543
+ toolsets: z.ZodOptional<z.ZodArray<z.ZodString>>;
4544
+ }, z.core.$strip>;
4545
+ readonly result: z.ZodObject<{
4546
+ state: z.ZodEnum<{
4547
+ unavailable: "unavailable";
4548
+ refused: "refused";
4549
+ attached: "attached";
4550
+ stopped: "stopped";
4551
+ incompatible: "incompatible";
4552
+ }>;
4553
+ reason: z.ZodNullable<z.ZodString>;
4554
+ replay_gap: z.ZodOptional<z.ZodBoolean>;
4555
+ snapshot: z.ZodNullable<z.ZodObject<{
4556
+ session_id: z.ZodString;
4557
+ stored_session_id: z.ZodString;
4558
+ messages: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4559
+ message_count: z.ZodNumber;
4560
+ running: z.ZodBoolean;
4561
+ authority_epoch: z.ZodNumber;
4562
+ replay_epoch: z.ZodString;
4563
+ last_sequence: z.ZodNumber;
4564
+ subscription_id: z.ZodString;
4565
+ revision: z.ZodNumber;
4566
+ execution_generation: z.ZodNumber;
4567
+ pending: z.ZodArray<z.ZodObject<{
4568
+ admission_id: z.ZodString;
4569
+ sequence: z.ZodNumber;
4570
+ status: z.ZodEnum<{
4571
+ unknown: "unknown";
4572
+ queued: "queued";
4573
+ started: "started";
4574
+ terminal: "terminal";
4575
+ }>;
4576
+ outcome: z.ZodNullable<z.ZodString>;
4577
+ authority_epoch: z.ZodNumber;
4578
+ execution_generation: z.ZodNullable<z.ZodNumber>;
4579
+ controls: z.ZodOptional<z.ZodArray<z.ZodString>>;
4580
+ steering: z.ZodOptional<z.ZodBoolean>;
4581
+ text: z.ZodOptional<z.ZodString>;
4582
+ input_id: z.ZodOptional<z.ZodString>;
4583
+ }, z.core.$strip>>;
4584
+ prompts: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4585
+ info: z.ZodRecord<z.ZodString, z.ZodUnknown>;
4586
+ }, z.core.$strip>>;
4587
+ receipt: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
4588
+ admission_id: z.ZodString;
4589
+ sequence: z.ZodNumber;
4590
+ status: z.ZodEnum<{
4591
+ unknown: "unknown";
4592
+ queued: "queued";
4593
+ started: "started";
4594
+ terminal: "terminal";
4595
+ }>;
4596
+ outcome: z.ZodNullable<z.ZodString>;
4597
+ authority_epoch: z.ZodNumber;
4598
+ execution_generation: z.ZodNullable<z.ZodNumber>;
4599
+ controls: z.ZodOptional<z.ZodArray<z.ZodString>>;
4600
+ steering: z.ZodOptional<z.ZodBoolean>;
4601
+ text: z.ZodOptional<z.ZodString>;
4602
+ input_id: z.ZodOptional<z.ZodString>;
4603
+ voice_stopped: z.ZodOptional<z.ZodNever>;
4604
+ }, z.core.$strip>, z.ZodObject<{
4605
+ operation: z.ZodString;
4606
+ status: z.ZodOptional<z.ZodString>;
4607
+ voice_stopped: z.ZodOptional<z.ZodNever>;
4608
+ }, z.core.$loose>, z.ZodObject<{
4609
+ voice_stopped: z.ZodLiteral<true>;
4610
+ }, z.core.$strict>]>>;
4611
+ model_change: z.ZodOptional<z.ZodObject<{
4612
+ state: z.ZodEnum<{
4613
+ applied: "applied";
4614
+ deferred: "deferred";
4615
+ confirmation_required: "confirmation_required";
4616
+ refused: "refused";
4617
+ }>;
4618
+ message: z.ZodOptional<z.ZodString>;
4619
+ confirm: z.ZodOptional<z.ZodString>;
4620
+ model: z.ZodOptional<z.ZodString>;
4621
+ provider: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4622
+ }, z.core.$strip>>;
4623
+ context_detail: z.ZodOptional<z.ZodObject<{
4624
+ available: z.ZodBoolean;
4625
+ reason: z.ZodNullable<z.ZodEnum<{
4626
+ not_built: "not_built";
4627
+ unsupported: "unsupported";
4628
+ changed: "changed";
4629
+ unavailable: "unavailable";
4630
+ }>>;
4631
+ used_tokens: z.ZodNullable<z.ZodNumber>;
4632
+ window_tokens: z.ZodNullable<z.ZodNumber>;
4633
+ estimated_total: z.ZodNullable<z.ZodNumber>;
4634
+ source: z.ZodNullable<z.ZodEnum<{
4635
+ local_estimate: "local_estimate";
4636
+ provider_usage: "provider_usage";
4637
+ provider_usage_plus_estimate: "provider_usage_plus_estimate";
4638
+ }>>;
4639
+ estimated: z.ZodNullable<z.ZodBoolean>;
4640
+ categories: z.ZodArray<z.ZodObject<{
4641
+ id: z.ZodEnum<{
4642
+ system_prompt: "system_prompt";
4643
+ tool_definitions: "tool_definitions";
4644
+ rules: "rules";
4645
+ skills: "skills";
4646
+ mcp: "mcp";
4647
+ subagent_definitions: "subagent_definitions";
4648
+ memory: "memory";
4649
+ conversation: "conversation";
4650
+ }>;
4651
+ tokens: z.ZodNumber;
4652
+ percent: z.ZodNullable<z.ZodNumber>;
4653
+ estimated: z.ZodLiteral<true>;
4654
+ }, z.core.$strip>>;
4655
+ files: z.ZodArray<z.ZodObject<{
4656
+ label: z.ZodEnum<{
4657
+ "AGENTS.md": "AGENTS.md";
4658
+ "SOUL.md": "SOUL.md";
4659
+ ".hermes.md": ".hermes.md";
4660
+ "CLAUDE.md": "CLAUDE.md";
4661
+ "GEMINI.md": "GEMINI.md";
4662
+ "CONTEXT.md": "CONTEXT.md";
4663
+ "Context file": "Context file";
4664
+ }>;
4665
+ characters: z.ZodNullable<z.ZodNumber>;
4666
+ tokens: z.ZodNullable<z.ZodNumber>;
4667
+ status: z.ZodEnum<{
4668
+ unknown: "unknown";
4669
+ loaded: "loaded";
4670
+ truncated: "truncated";
4671
+ flagged: "flagged";
4672
+ shadowed: "shadowed";
4673
+ blocked: "blocked";
4674
+ empty: "empty";
4675
+ unreadable: "unreadable";
4676
+ suppressed: "suppressed";
4677
+ }>;
4678
+ loaded: z.ZodNullable<z.ZodBoolean>;
4679
+ }, z.core.$strip>>;
4680
+ truncated: z.ZodBoolean;
4681
+ current_turn_output_tokens: z.ZodNullable<z.ZodNumber>;
4682
+ last_turn_output_tokens: z.ZodNullable<z.ZodNumber>;
4683
+ }, z.core.$strip>>;
4684
+ export: z.ZodOptional<z.ZodObject<{
4685
+ format: z.ZodEnum<{
4686
+ json: "json";
4687
+ markdown: "markdown";
4688
+ html: "html";
4689
+ }>;
4690
+ filename: z.ZodString;
4691
+ content: z.ZodString;
4692
+ }, z.core.$strip>>;
4693
+ restarting: z.ZodOptional<z.ZodBoolean>;
4694
+ lock: z.ZodOptional<z.ZodObject<{
4695
+ status: z.ZodEnum<{
4696
+ ok: "ok";
4697
+ expired: "expired";
4698
+ }>;
4699
+ remaining: z.ZodOptional<z.ZodArray<z.ZodString>>;
4700
+ }, z.core.$strip>>;
4701
+ }, z.core.$strip>;
4702
+ };
2359
4703
  readonly 'gateway.control': {
2360
4704
  readonly params: z.ZodObject<{
2361
4705
  profile_home: z.ZodString;
4706
+ interrupt: z.ZodOptional<z.ZodBoolean>;
2362
4707
  cli_profile: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2363
4708
  quick_timeout_seconds: z.ZodOptional<z.ZodNumber>;
2364
4709
  background_wait_seconds: z.ZodOptional<z.ZodNumber>;
@@ -2370,13 +4715,15 @@ export declare const GATEWAY_METHODS: {
2370
4715
  }, z.core.$strip>;
2371
4716
  readonly result: z.ZodObject<{
2372
4717
  status: z.ZodEnum<{
2373
- completed: "completed";
2374
4718
  failed: "failed";
4719
+ completed: "completed";
2375
4720
  busy: "busy";
4721
+ busy_live_work: "busy_live_work";
2376
4722
  }>;
2377
4723
  message: z.ZodString;
2378
4724
  detail: z.ZodOptional<z.ZodString>;
2379
4725
  returncode: z.ZodOptional<z.ZodNumber>;
4726
+ reason: z.ZodOptional<z.ZodString>;
2380
4727
  timed_out: z.ZodOptional<z.ZodBoolean>;
2381
4728
  }, z.core.$strip>;
2382
4729
  readonly stream: z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -2392,19 +4739,22 @@ export declare const GATEWAY_METHODS: {
2392
4739
  readonly 'gateway.restart': {
2393
4740
  readonly params: z.ZodObject<{
2394
4741
  profile_home: z.ZodString;
4742
+ interrupt: z.ZodOptional<z.ZodBoolean>;
2395
4743
  cli_profile: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2396
4744
  quick_timeout_seconds: z.ZodOptional<z.ZodNumber>;
2397
4745
  background_wait_seconds: z.ZodOptional<z.ZodNumber>;
2398
4746
  }, z.core.$strip>;
2399
4747
  readonly result: z.ZodObject<{
2400
4748
  status: z.ZodEnum<{
2401
- completed: "completed";
2402
4749
  failed: "failed";
4750
+ completed: "completed";
2403
4751
  busy: "busy";
4752
+ busy_live_work: "busy_live_work";
2404
4753
  }>;
2405
4754
  message: z.ZodString;
2406
4755
  detail: z.ZodOptional<z.ZodString>;
2407
4756
  returncode: z.ZodOptional<z.ZodNumber>;
4757
+ reason: z.ZodOptional<z.ZodString>;
2408
4758
  timed_out: z.ZodOptional<z.ZodBoolean>;
2409
4759
  }, z.core.$strip>;
2410
4760
  readonly stream: z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -2417,4 +4767,21 @@ export declare const GATEWAY_METHODS: {
2417
4767
  }, z.core.$strip>;
2418
4768
  }, z.core.$strip>], "event">;
2419
4769
  };
4770
+ /** TAL-805: the gateway mode of the profile `name` at `profile_home`; the root profile (`is_default`) is the host itself. */
4771
+ readonly 'gateway.mode': {
4772
+ readonly params: z.ZodObject<{
4773
+ profile_home: z.ZodString;
4774
+ name: z.ZodString;
4775
+ is_default: z.ZodBoolean;
4776
+ }, z.core.$strip>;
4777
+ readonly result: z.ZodObject<{
4778
+ gateway_mode: z.ZodEnum<{
4779
+ stopped: "stopped";
4780
+ parked: "parked";
4781
+ own: "own";
4782
+ served: "served";
4783
+ standalone: "standalone";
4784
+ }>;
4785
+ }, z.core.$strip>;
4786
+ };
2420
4787
  };