@ai-matrx/desktop-protocol 0.21.29 → 0.21.31

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.
package/dist/index.d.cts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { O as OpName } from './models-BpzT2hqF.cjs';
3
- export { B as BEARER_PREFIX, g as CLOSE_RULES, h as CancelMsg, j as ClientToCoreMsg, e as ClientType, k as CloseAction, l as CloseCode, m as CloseCodeValue, C as CloseOutcome, n as CloseRule, o as CoreToClientMsg, p as CreditMsg, D as DesktopProtocolError, d as EVENTS, q as EndMsg, E as EndReason, r as ErrorCode, s as ErrorCodeName, t as ErrorData, u as ErrorMsg, v as ErrorReason, w as ErrorReasonName, x as EventMsg, y as EventName, F as FsPatchEditFailure, H as HelloMsg, L as Limits, z as LlmRunning, A as LlmServerState, G as MlInstallPhase, I as MlInstallProgress, f as MlProgress, J as MlRuntimeState, K as MlServiceState, N as MlServiceStatus, P as MlStatusParams, Q as MlStatusResult, R as ModelsInstallParams, U as ModelsInstallResult, V as ModelsLlmInstallParams, X as ModelsLlmInstallResult, Y as ModelsLlmStartParams, Z as ModelsLlmStartResult, _ as ModelsLlmStatusParams, $ as ModelsLlmStatusResult, a0 as ModelsLlmStopParams, a1 as ModelsLlmStopResult, a2 as ModelsProgressEvent, a3 as ModelsStatusParams, a4 as ModelsStatusResult, a5 as ModelsTranscribeParams, M as ModelsTranscribeResult, a6 as NAMED_SCHEMAS, a7 as NamedSchemaId, c as OPS, a8 as OpDescriptor, a as OpParams, b as OpResult, a9 as OpSpec, aa as PING_TEXT, ab as PONG_TEXT, ac as ProtocolErrorBody, ad as RelayMsg, ae as RequestMsg, af as ResponseMsg, ag as SERVICES, ah as SUBPROTOCOL, ai as ServiceId, aj as ServiceOpName, ak as ServiceOpSpec, al as ServiceSpec, S as StreamMeta, am as StreamMsg, an as TextModelId, ao as TextModelInfo, ap as TranscriptSegment, T as TranscriptionModelId, aq as TranscriptionModelInfo, W as Welcome, ar as closeRule, i as isDesktopProtocolError, as as isTerminalClose } from './models-BpzT2hqF.cjs';
2
+ import { O as OpName } from './models-C4JytZ8c.cjs';
3
+ export { B as BEARER_PREFIX, g as CLOSE_RULES, h as CancelMsg, j as ClientToCoreMsg, e as ClientType, k as CloseAction, l as CloseCode, m as CloseCodeValue, C as CloseOutcome, n as CloseRule, o as CoreToClientMsg, p as CreditMsg, D as DesktopProtocolError, d as EVENTS, q as EndMsg, E as EndReason, r as ErrorCode, s as ErrorCodeName, t as ErrorData, u as ErrorMsg, v as ErrorReason, w as ErrorReasonName, x as EventMsg, y as EventName, F as FsPatchEditFailure, H as HelloMsg, L as Limits, z as LlmRunning, A as LlmServerState, G as MlInstallPhase, I as MlInstallProgress, f as MlProgress, J as MlRuntimeState, K as MlServiceState, N as MlServiceStatus, P as MlStatusParams, Q as MlStatusResult, R as ModelsInstallParams, U as ModelsInstallResult, V as ModelsLlmInstallParams, X as ModelsLlmInstallResult, Y as ModelsLlmStartParams, Z as ModelsLlmStartResult, _ as ModelsLlmStatusParams, $ as ModelsLlmStatusResult, a0 as ModelsLlmStopParams, a1 as ModelsLlmStopResult, a2 as ModelsProgressEvent, a3 as ModelsStatusParams, a4 as ModelsStatusResult, a5 as ModelsTranscribeParams, M as ModelsTranscribeResult, a6 as NAMED_SCHEMAS, a7 as NamedSchemaId, c as OPS, a8 as OpDescriptor, a as OpParams, b as OpResult, a9 as OpSpec, aa as PING_TEXT, ab as PONG_TEXT, ac as ProtocolErrorBody, ad as RelayMsg, ae as RequestMsg, af as ResponseMsg, ag as SERVICES, ah as SUBPROTOCOL, ai as ServiceId, aj as ServiceOpName, ak as ServiceOpSpec, al as ServiceSpec, S as StreamMeta, am as StreamMsg, an as TextModelId, ao as TextModelInfo, ap as TranscriptSegment, T as TranscriptionModelId, aq as TranscriptionModelInfo, W as Welcome, ar as closeRule, i as isDesktopProtocolError, as as isTerminalClose } from './models-C4JytZ8c.cjs';
4
4
  export { BROADCAST_CID, DecodedFrame, FRAME_HEADER_BYTES, FRAME_STRUCT_FORMAT, FRAME_VERSION, FrameChannel, FrameChannelValue, FrameFlag, assertFrameHeader, connectionEndFrame, decodeFrame, encodeFrame, hasFlag, isConnectionEnd, readCid, stampCid } from './frame.cjs';
5
5
 
6
6
  /** @ai-matrx/desktop-protocol — version and primitive schemas. Schema source: lint-enforced rules in scripts/check-schema-source.mjs. */
@@ -82,10 +82,35 @@ declare const PROTOCOL_MAJOR: 1;
82
82
  * and entities.* (names, private data); browser.tool_metrics, browser.reset_counters and
83
83
  * browser.log (the bridge's diagnostics for every one of the owner's clients). A 1.36 core
84
84
  * answers UNKNOWN_OPERATION.
85
+ * 1.38 — code from anywhere: coding.* (the coding engine's sessions, runs, transcripts, preferences
86
+ * and recent rows; start, send, stop, take over, stop elsewhere, Full Download, reconcile;
87
+ * live watches coding.watch / coding.session.watch with events coding.changed,
88
+ * coding.watch_state, coding.item, coding.gap) and session.identify (a client's label,
89
+ * e.g. "iPhone", for "Started from iPhone"). A 1.37 core answers UNKNOWN_OPERATION.
90
+ * 1.39 — Agents in the desktop app: account.agents.get (one agent's inputs and what it uses),
91
+ * account.agents.runs (one agent's runs, mandate.run_history) and account.agents.favorite
92
+ * (the catalogue's one star write); AccountAgent gains the catalogue's own fields (tags,
93
+ * model_id, access_level, organization_id, origin, is_archived, orchestra), optional. A
94
+ * 1.38 core answers UNKNOWN_OPERATION.
95
+ * 1.40 — the web from this computer becomes Sources: web.scrape `engine` (auto, browser, server)
96
+ * and `land`, web.fetch_with_browser `land`; WebScrapePage and WebBrowserFetchResult
97
+ * `source` (saved, or waiting in this computer's outbox); web.search answers through AI
98
+ * Matrx's own search (never a key on the computer); web.runtime.state/install/remove
99
+ * (the browser), web.outbox.list/retry/discard, web.log.list/clear and the web.log.entry
100
+ * event (never page text), web.research.queue/fetch and the web.progress event. The
101
+ * tools service's web_scrape and web_browser_fetch take their own params (knobs, a spool
102
+ * folder) and hand back each page's parse as a file. A 1.39 core answers
103
+ * UNKNOWN_OPERATION for the new ops and refuses `engine`/`land` as INVALID_PARAMS.
104
+ * 1.41 — Permissions and privacy on every OS: sysinfo.get's permissions gain Matrx Local's
105
+ * remaining kinds (reminders, speech_recognition, messages, mail, wifi) and a `detail`
106
+ * line, and the result gains `requirements` (secret storage, tray, display server, helper
107
+ * programs, Smart App Control, path length); system.open_settings opens each grant's own
108
+ * page by its name. A 1.40 peer is sent neither the new rows nor the new fields; a 1.40
109
+ * core refuses the new panes as INVALID_PARAMS.
85
110
  */
86
- declare const PROTOCOL_MINOR: 37;
111
+ declare const PROTOCOL_MINOR: 41;
87
112
  /** This package's version as the wire spells it ("major.minor"): hello, welcome, relay status. */
88
- declare const PROTOCOL_VERSION: "1.37";
113
+ declare const PROTOCOL_VERSION: "1.41";
89
114
  /** Internal building blocks — deliberately unnamed in $defs (inlined wherever used). */
90
115
  declare const u32: z.ZodInt;
91
116
  declare const nonNegInt: z.ZodInt;
@@ -167,8 +192,36 @@ declare const OsPermissionName: z.ZodEnum<{
167
192
  local_network: "local_network";
168
193
  bluetooth: "bluetooth";
169
194
  notifications: "notifications";
195
+ reminders: "reminders";
196
+ speech_recognition: "speech_recognition";
197
+ messages: "messages";
198
+ mail: "mail";
199
+ wifi: "wifi";
170
200
  }>;
171
201
  type OsPermissionName = z.output<typeof OsPermissionName>;
202
+ /** The state of one OS grant or one requirement. */
203
+ declare const OsGrantState: z.ZodEnum<{
204
+ granted: "granted";
205
+ denied: "denied";
206
+ not_determined: "not_determined";
207
+ not_applicable: "not_applicable";
208
+ }>;
209
+ type OsGrantState = z.output<typeof OsGrantState>;
210
+ /**
211
+ * (1.41) What Matrx 2 needs from the computer beyond its privacy grants: secret storage (the OS's
212
+ * keychain for the sign-in), the tray (Linux: a StatusNotifier host), the display server (Linux),
213
+ * the helper programs its tools run (Linux), Smart App Control (Windows 11: blocks an unsigned app)
214
+ * and the path length (Windows' 260-character limit). `granted` met, `denied` missing.
215
+ */
216
+ declare const OsRequirementName: z.ZodEnum<{
217
+ secret_storage: "secret_storage";
218
+ tray: "tray";
219
+ display_server: "display_server";
220
+ helper_programs: "helper_programs";
221
+ smart_app_control: "smart_app_control";
222
+ path_length: "path_length";
223
+ }>;
224
+ type OsRequirementName = z.output<typeof OsRequirementName>;
172
225
  declare const SysinfoGetParams: z.ZodObject<{}, z.core.$strict>;
173
226
  type SysinfoGetParams = z.output<typeof SysinfoGetParams>;
174
227
  declare const SysinfoGetResult: z.ZodObject<{
@@ -225,6 +278,11 @@ declare const SysinfoGetResult: z.ZodObject<{
225
278
  local_network: "local_network";
226
279
  bluetooth: "bluetooth";
227
280
  notifications: "notifications";
281
+ reminders: "reminders";
282
+ speech_recognition: "speech_recognition";
283
+ messages: "messages";
284
+ mail: "mail";
285
+ wifi: "wifi";
228
286
  }>;
229
287
  state: z.ZodEnum<{
230
288
  granted: "granted";
@@ -233,7 +291,26 @@ declare const SysinfoGetResult: z.ZodObject<{
233
291
  not_applicable: "not_applicable";
234
292
  }>;
235
293
  settings_url: z.ZodNullable<z.ZodString>;
294
+ detail: z.ZodOptional<z.ZodString>;
236
295
  }, z.core.$strict>>;
296
+ requirements: z.ZodOptional<z.ZodArray<z.ZodObject<{
297
+ name: z.ZodEnum<{
298
+ secret_storage: "secret_storage";
299
+ tray: "tray";
300
+ display_server: "display_server";
301
+ helper_programs: "helper_programs";
302
+ smart_app_control: "smart_app_control";
303
+ path_length: "path_length";
304
+ }>;
305
+ state: z.ZodEnum<{
306
+ granted: "granted";
307
+ denied: "denied";
308
+ not_determined: "not_determined";
309
+ not_applicable: "not_applicable";
310
+ }>;
311
+ settings_url: z.ZodNullable<z.ZodString>;
312
+ detail: z.ZodNullable<z.ZodString>;
313
+ }, z.core.$strict>>>;
237
314
  }, z.core.$strict>;
238
315
  type SysinfoGetResult = z.output<typeof SysinfoGetResult>;
239
316
  declare const SysinfoHardwareParams: z.ZodObject<{}, z.core.$strict>;
@@ -1245,6 +1322,17 @@ declare const AccountAgent: z.ZodObject<{
1245
1322
  shared_by: z.ZodNullable<z.ZodString>;
1246
1323
  organization: z.ZodNullable<z.ZodString>;
1247
1324
  updated_at_ms: z.ZodInt;
1325
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1326
+ model_id: z.ZodOptional<z.ZodString>;
1327
+ access_level: z.ZodOptional<z.ZodString>;
1328
+ organization_id: z.ZodOptional<z.ZodString>;
1329
+ origin: z.ZodOptional<z.ZodEnum<{
1330
+ mine: "mine";
1331
+ shared: "shared";
1332
+ system: "system";
1333
+ }>>;
1334
+ is_archived: z.ZodOptional<z.ZodBoolean>;
1335
+ orchestra: z.ZodOptional<z.ZodBoolean>;
1248
1336
  }, z.core.$strict>;
1249
1337
  type AccountAgent = z.output<typeof AccountAgent>;
1250
1338
  declare const AccountAgentsListParams: z.ZodObject<{}, z.core.$strict>;
@@ -1267,6 +1355,17 @@ declare const AccountAgentsListResult: z.ZodObject<{
1267
1355
  shared_by: z.ZodNullable<z.ZodString>;
1268
1356
  organization: z.ZodNullable<z.ZodString>;
1269
1357
  updated_at_ms: z.ZodInt;
1358
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1359
+ model_id: z.ZodOptional<z.ZodString>;
1360
+ access_level: z.ZodOptional<z.ZodString>;
1361
+ organization_id: z.ZodOptional<z.ZodString>;
1362
+ origin: z.ZodOptional<z.ZodEnum<{
1363
+ mine: "mine";
1364
+ shared: "shared";
1365
+ system: "system";
1366
+ }>>;
1367
+ is_archived: z.ZodOptional<z.ZodBoolean>;
1368
+ orchestra: z.ZodOptional<z.ZodBoolean>;
1270
1369
  }, z.core.$strict>>;
1271
1370
  }, z.core.$strict>;
1272
1371
  type AccountAgentsListResult = z.output<typeof AccountAgentsListResult>;
@@ -1366,6 +1465,204 @@ declare const AccountVaultCopyResult: z.ZodObject<{
1366
1465
  clears_at_ms: z.ZodInt;
1367
1466
  }, z.core.$strict>;
1368
1467
  type AccountVaultCopyResult = z.output<typeof AccountVaultCopyResult>;
1468
+ /** One agent, opened (Shortcuts' editor and its Details inspector): what it asks for and what it uses. */
1469
+ declare const AccountAgentVariable: z.ZodObject<{
1470
+ name: z.ZodString;
1471
+ default_value: z.ZodString;
1472
+ required: z.ZodBoolean;
1473
+ help: z.ZodString;
1474
+ }, z.core.$strict>;
1475
+ type AccountAgentVariable = z.output<typeof AccountAgentVariable>;
1476
+ declare const AccountAgentDetail: z.ZodObject<{
1477
+ agent: z.ZodObject<{
1478
+ id: z.ZodString;
1479
+ name: z.ZodString;
1480
+ description: z.ZodString;
1481
+ category: z.ZodString;
1482
+ agent_type: z.ZodString;
1483
+ is_favorite: z.ZodBoolean;
1484
+ is_owner: z.ZodBoolean;
1485
+ shared_by: z.ZodNullable<z.ZodString>;
1486
+ organization: z.ZodNullable<z.ZodString>;
1487
+ updated_at_ms: z.ZodInt;
1488
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1489
+ model_id: z.ZodOptional<z.ZodString>;
1490
+ access_level: z.ZodOptional<z.ZodString>;
1491
+ organization_id: z.ZodOptional<z.ZodString>;
1492
+ origin: z.ZodOptional<z.ZodEnum<{
1493
+ mine: "mine";
1494
+ shared: "shared";
1495
+ system: "system";
1496
+ }>>;
1497
+ is_archived: z.ZodOptional<z.ZodBoolean>;
1498
+ orchestra: z.ZodOptional<z.ZodBoolean>;
1499
+ }, z.core.$strict>;
1500
+ variables: z.ZodArray<z.ZodObject<{
1501
+ name: z.ZodString;
1502
+ default_value: z.ZodString;
1503
+ required: z.ZodBoolean;
1504
+ help: z.ZodString;
1505
+ }, z.core.$strict>>;
1506
+ tool_count: z.ZodInt;
1507
+ custom_tool_count: z.ZodInt;
1508
+ skill_count: z.ZodInt;
1509
+ connection_count: z.ZodInt;
1510
+ model_name: z.ZodNullable<z.ZodString>;
1511
+ }, z.core.$strict>;
1512
+ type AccountAgentDetail = z.output<typeof AccountAgentDetail>;
1513
+ declare const AccountAgentsGetParams: z.ZodObject<{
1514
+ agent_id: z.ZodString;
1515
+ }, z.core.$strict>;
1516
+ type AccountAgentsGetParams = z.output<typeof AccountAgentsGetParams>;
1517
+ declare const AccountAgentsGetResult: z.ZodObject<{
1518
+ state: z.ZodEnum<{
1519
+ ok: "ok";
1520
+ signed_out: "signed_out";
1521
+ unavailable: "unavailable";
1522
+ }>;
1523
+ problem: z.ZodNullable<z.ZodString>;
1524
+ detail: z.ZodNullable<z.ZodObject<{
1525
+ agent: z.ZodObject<{
1526
+ id: z.ZodString;
1527
+ name: z.ZodString;
1528
+ description: z.ZodString;
1529
+ category: z.ZodString;
1530
+ agent_type: z.ZodString;
1531
+ is_favorite: z.ZodBoolean;
1532
+ is_owner: z.ZodBoolean;
1533
+ shared_by: z.ZodNullable<z.ZodString>;
1534
+ organization: z.ZodNullable<z.ZodString>;
1535
+ updated_at_ms: z.ZodInt;
1536
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1537
+ model_id: z.ZodOptional<z.ZodString>;
1538
+ access_level: z.ZodOptional<z.ZodString>;
1539
+ organization_id: z.ZodOptional<z.ZodString>;
1540
+ origin: z.ZodOptional<z.ZodEnum<{
1541
+ mine: "mine";
1542
+ shared: "shared";
1543
+ system: "system";
1544
+ }>>;
1545
+ is_archived: z.ZodOptional<z.ZodBoolean>;
1546
+ orchestra: z.ZodOptional<z.ZodBoolean>;
1547
+ }, z.core.$strict>;
1548
+ variables: z.ZodArray<z.ZodObject<{
1549
+ name: z.ZodString;
1550
+ default_value: z.ZodString;
1551
+ required: z.ZodBoolean;
1552
+ help: z.ZodString;
1553
+ }, z.core.$strict>>;
1554
+ tool_count: z.ZodInt;
1555
+ custom_tool_count: z.ZodInt;
1556
+ skill_count: z.ZodInt;
1557
+ connection_count: z.ZodInt;
1558
+ model_name: z.ZodNullable<z.ZodString>;
1559
+ }, z.core.$strict>>;
1560
+ }, z.core.$strict>;
1561
+ type AccountAgentsGetResult = z.output<typeof AccountAgentsGetResult>;
1562
+ /** A run's status as mandate.run_history names it. */
1563
+ declare const AccountAgentRunStatus: z.ZodEnum<{
1564
+ running: "running";
1565
+ failed: "failed";
1566
+ stopped: "stopped";
1567
+ succeeded: "succeeded";
1568
+ warned: "warned";
1569
+ waiting: "waiting";
1570
+ }>;
1571
+ type AccountAgentRunStatus = z.output<typeof AccountAgentRunStatus>;
1572
+ /** One run of one agent (mandate.run_history, view "mine"): never its content beyond one line. */
1573
+ declare const AccountAgentRun: z.ZodObject<{
1574
+ run_id: z.ZodString;
1575
+ status: z.ZodEnum<{
1576
+ running: "running";
1577
+ failed: "failed";
1578
+ stopped: "stopped";
1579
+ succeeded: "succeeded";
1580
+ warned: "warned";
1581
+ waiting: "waiting";
1582
+ }>;
1583
+ started_at_ms: z.ZodInt;
1584
+ completed_at_ms: z.ZodNullable<z.ZodInt>;
1585
+ duration_ms: z.ZodNullable<z.ZodInt>;
1586
+ cost: z.ZodNullable<z.ZodNumber>;
1587
+ tokens: z.ZodNullable<z.ZodInt>;
1588
+ output_preview: z.ZodNullable<z.ZodString>;
1589
+ error: z.ZodNullable<z.ZodString>;
1590
+ mandate_key: z.ZodNullable<z.ZodString>;
1591
+ organization: z.ZodNullable<z.ZodString>;
1592
+ conversation_id: z.ZodNullable<z.ZodString>;
1593
+ has_transcript: z.ZodBoolean;
1594
+ }, z.core.$strict>;
1595
+ type AccountAgentRun = z.output<typeof AccountAgentRun>;
1596
+ declare const AccountAgentRunSort: z.ZodEnum<{
1597
+ status: "status";
1598
+ cost: "cost";
1599
+ started_at: "started_at";
1600
+ duration: "duration";
1601
+ }>;
1602
+ type AccountAgentRunSort = z.output<typeof AccountAgentRunSort>;
1603
+ declare const AccountAgentsRunsParams: z.ZodObject<{
1604
+ agent_id: z.ZodString;
1605
+ status: z.ZodOptional<z.ZodEnum<{
1606
+ running: "running";
1607
+ failed: "failed";
1608
+ stopped: "stopped";
1609
+ succeeded: "succeeded";
1610
+ warned: "warned";
1611
+ waiting: "waiting";
1612
+ }>>;
1613
+ sort: z.ZodOptional<z.ZodEnum<{
1614
+ status: "status";
1615
+ cost: "cost";
1616
+ started_at: "started_at";
1617
+ duration: "duration";
1618
+ }>>;
1619
+ descending: z.ZodOptional<z.ZodBoolean>;
1620
+ offset: z.ZodOptional<z.ZodInt>;
1621
+ limit: z.ZodOptional<z.ZodInt>;
1622
+ }, z.core.$strict>;
1623
+ type AccountAgentsRunsParams = z.output<typeof AccountAgentsRunsParams>;
1624
+ declare const AccountAgentsRunsResult: z.ZodObject<{
1625
+ state: z.ZodEnum<{
1626
+ ok: "ok";
1627
+ signed_out: "signed_out";
1628
+ unavailable: "unavailable";
1629
+ }>;
1630
+ problem: z.ZodNullable<z.ZodString>;
1631
+ total: z.ZodInt;
1632
+ rows: z.ZodArray<z.ZodObject<{
1633
+ run_id: z.ZodString;
1634
+ status: z.ZodEnum<{
1635
+ running: "running";
1636
+ failed: "failed";
1637
+ stopped: "stopped";
1638
+ succeeded: "succeeded";
1639
+ warned: "warned";
1640
+ waiting: "waiting";
1641
+ }>;
1642
+ started_at_ms: z.ZodInt;
1643
+ completed_at_ms: z.ZodNullable<z.ZodInt>;
1644
+ duration_ms: z.ZodNullable<z.ZodInt>;
1645
+ cost: z.ZodNullable<z.ZodNumber>;
1646
+ tokens: z.ZodNullable<z.ZodInt>;
1647
+ output_preview: z.ZodNullable<z.ZodString>;
1648
+ error: z.ZodNullable<z.ZodString>;
1649
+ mandate_key: z.ZodNullable<z.ZodString>;
1650
+ organization: z.ZodNullable<z.ZodString>;
1651
+ conversation_id: z.ZodNullable<z.ZodString>;
1652
+ has_transcript: z.ZodBoolean;
1653
+ }, z.core.$strict>>;
1654
+ }, z.core.$strict>;
1655
+ type AccountAgentsRunsResult = z.output<typeof AccountAgentsRunsResult>;
1656
+ /** Star or unstar an agent: the catalogue's one favorite write (the person's own entity state). */
1657
+ declare const AccountAgentsFavoriteParams: z.ZodObject<{
1658
+ agent_id: z.ZodString;
1659
+ favorite: z.ZodBoolean;
1660
+ }, z.core.$strict>;
1661
+ type AccountAgentsFavoriteParams = z.output<typeof AccountAgentsFavoriteParams>;
1662
+ declare const AccountAgentsFavoriteResult: z.ZodObject<{
1663
+ favorite: z.ZodBoolean;
1664
+ }, z.core.$strict>;
1665
+ type AccountAgentsFavoriteResult = z.output<typeof AccountAgentsFavoriteResult>;
1369
1666
 
1370
1667
  /**
1371
1668
  * @ai-matrx/desktop-protocol — cap apps (SPEC §6): the desktop apps a person uses (Claude, Codex,
@@ -3436,9 +3733,9 @@ type ToolPlatform = z.output<typeof ToolPlatform>;
3436
3733
  */
3437
3734
  declare const ToolTransport: z.ZodEnum<{
3438
3735
  relay: "relay";
3736
+ agent: "agent";
3439
3737
  in_process: "in_process";
3440
3738
  localhost: "localhost";
3441
- agent: "agent";
3442
3739
  }>;
3443
3740
  type ToolTransport = z.output<typeof ToolTransport>;
3444
3741
  declare const ToolLevelResult: z.ZodObject<{
@@ -3455,9 +3752,9 @@ declare const ToolLevelResult: z.ZodObject<{
3455
3752
  }>;
3456
3753
  transport: z.ZodEnum<{
3457
3754
  relay: "relay";
3755
+ agent: "agent";
3458
3756
  in_process: "in_process";
3459
3757
  localhost: "localhost";
3460
- agent: "agent";
3461
3758
  }>;
3462
3759
  outcome: z.ZodEnum<{
3463
3760
  pass: "pass";
@@ -3488,9 +3785,9 @@ declare const ToolResultsFile: z.ZodObject<{
3488
3785
  }>;
3489
3786
  transport: z.ZodEnum<{
3490
3787
  relay: "relay";
3788
+ agent: "agent";
3491
3789
  in_process: "in_process";
3492
3790
  localhost: "localhost";
3493
- agent: "agent";
3494
3791
  }>;
3495
3792
  outcome: z.ZodEnum<{
3496
3793
  pass: "pass";
@@ -3760,17 +4057,30 @@ declare const GitCloneParams: z.ZodObject<{
3760
4057
  }, z.core.$strict>;
3761
4058
  type GitCloneParams = z.output<typeof GitCloneParams>;
3762
4059
 
3763
- /**
3764
- * @ai-matrx/desktop-protocol — cap web (SPEC §3.10, §6): fetch, scrape, search and browser-fetch
3765
- * from the person's own computer, on its own network and IP. Served by the `tools` Python service,
3766
- * which runs the platform's one scraper (`matrx_scraper`) in its local lane (no proxy, ever: the
3767
- * point of the device lane is the person's own connection). The core forwards each Router op to its
3768
- * service op (SERVICES.tools in registry.ts). Schema source: lint-enforced rules in
3769
- * scripts/check-schema-source.mjs. Added in protocol 1.22.
3770
- */
3771
-
3772
4060
  /** The most text any web op returns per page; longer text is cut and says so (`truncated`). */
3773
4061
  declare const WEB_MAX_TEXT_CHARS: 524288;
4062
+ declare const WebRuntimeParams: z.ZodObject<{}, z.core.$strict>;
4063
+ declare const WebOutboxListParams: z.ZodObject<{}, z.core.$strict>;
4064
+ declare const WebOutboxRetryParams: z.ZodObject<{
4065
+ outbox_id: z.ZodOptional<z.ZodString>;
4066
+ }, z.core.$strict>;
4067
+ declare const WebOutboxDiscardParams: z.ZodObject<{
4068
+ outbox_id: z.ZodString;
4069
+ }, z.core.$strict>;
4070
+ declare const WebOutboxDiscardResult: z.ZodObject<{
4071
+ discarded: z.ZodBoolean;
4072
+ }, z.core.$strict>;
4073
+ declare const WebLogListParams: z.ZodObject<{
4074
+ since_ms: z.ZodOptional<z.ZodInt>;
4075
+ limit: z.ZodDefault<z.ZodInt>;
4076
+ }, z.core.$strict>;
4077
+ declare const WebLogClearParams: z.ZodObject<{}, z.core.$strict>;
4078
+ declare const WebLogClearResult: z.ZodObject<{
4079
+ cleared: z.ZodInt;
4080
+ }, z.core.$strict>;
4081
+ declare const WebResearchQueueParams: z.ZodObject<{
4082
+ topic_id: z.ZodOptional<z.ZodString>;
4083
+ }, z.core.$strict>;
3774
4084
  declare const WebHeader: z.ZodObject<{
3775
4085
  name: z.ZodString;
3776
4086
  value: z.ZodString;
@@ -3815,6 +4125,20 @@ declare const WebScrapeParams: z.ZodObject<{
3815
4125
  urls: z.ZodArray<z.ZodString>;
3816
4126
  use_cache: z.ZodDefault<z.ZodBoolean>;
3817
4127
  get_links: z.ZodDefault<z.ZodBoolean>;
4128
+ engine: z.ZodOptional<z.ZodEnum<{
4129
+ server: "server";
4130
+ auto: "auto";
4131
+ browser: "browser";
4132
+ }>>;
4133
+ land: z.ZodOptional<z.ZodObject<{
4134
+ organization_id: z.ZodOptional<z.ZodString>;
4135
+ keep: z.ZodDefault<z.ZodBoolean>;
4136
+ attach_to: z.ZodDefault<z.ZodArray<z.ZodObject<{
4137
+ entity_type: z.ZodString;
4138
+ entity_id: z.ZodString;
4139
+ label: z.ZodOptional<z.ZodString>;
4140
+ }, z.core.$strict>>>;
4141
+ }, z.core.$strict>>;
3818
4142
  }, z.core.$strict>;
3819
4143
  type WebScrapeParams = z.output<typeof WebScrapeParams>;
3820
4144
  declare const WebScrapePage: z.ZodObject<{
@@ -3827,6 +4151,36 @@ declare const WebScrapePage: z.ZodObject<{
3827
4151
  links: z.ZodArray<z.ZodString>;
3828
4152
  error: z.ZodNullable<z.ZodString>;
3829
4153
  via: z.ZodNullable<z.ZodString>;
4154
+ source: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
4155
+ state: z.ZodLiteral<"saved">;
4156
+ processed_document_id: z.ZodString;
4157
+ source_id: z.ZodString;
4158
+ reused_existing: z.ZodBoolean;
4159
+ new_version_of: z.ZodNullable<z.ZodString>;
4160
+ kept: z.ZodBoolean;
4161
+ intelligence: z.ZodEnum<{
4162
+ never: "never";
4163
+ queued: "queued";
4164
+ deferred: "deferred";
4165
+ }>;
4166
+ original_file_id: z.ZodNullable<z.ZodString>;
4167
+ organization_id: z.ZodString;
4168
+ notices: z.ZodArray<z.ZodObject<{
4169
+ code: z.ZodString;
4170
+ message: z.ZodString;
4171
+ remedy: z.ZodString;
4172
+ }, z.core.$strict>>;
4173
+ }, z.core.$strict>, z.ZodObject<{
4174
+ state: z.ZodLiteral<"not_saved">;
4175
+ outbox_id: z.ZodString;
4176
+ reason: z.ZodEnum<{
4177
+ signed_out: "signed_out";
4178
+ queued: "queued";
4179
+ offline: "offline";
4180
+ rejected: "rejected";
4181
+ }>;
4182
+ message: z.ZodString;
4183
+ }, z.core.$strict>], "state">>;
3830
4184
  }, z.core.$strict>;
3831
4185
  type WebScrapePage = z.output<typeof WebScrapePage>;
3832
4186
  declare const WebScrapeResult: z.ZodObject<{
@@ -3840,6 +4194,36 @@ declare const WebScrapeResult: z.ZodObject<{
3840
4194
  links: z.ZodArray<z.ZodString>;
3841
4195
  error: z.ZodNullable<z.ZodString>;
3842
4196
  via: z.ZodNullable<z.ZodString>;
4197
+ source: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
4198
+ state: z.ZodLiteral<"saved">;
4199
+ processed_document_id: z.ZodString;
4200
+ source_id: z.ZodString;
4201
+ reused_existing: z.ZodBoolean;
4202
+ new_version_of: z.ZodNullable<z.ZodString>;
4203
+ kept: z.ZodBoolean;
4204
+ intelligence: z.ZodEnum<{
4205
+ never: "never";
4206
+ queued: "queued";
4207
+ deferred: "deferred";
4208
+ }>;
4209
+ original_file_id: z.ZodNullable<z.ZodString>;
4210
+ organization_id: z.ZodString;
4211
+ notices: z.ZodArray<z.ZodObject<{
4212
+ code: z.ZodString;
4213
+ message: z.ZodString;
4214
+ remedy: z.ZodString;
4215
+ }, z.core.$strict>>;
4216
+ }, z.core.$strict>, z.ZodObject<{
4217
+ state: z.ZodLiteral<"not_saved">;
4218
+ outbox_id: z.ZodString;
4219
+ reason: z.ZodEnum<{
4220
+ signed_out: "signed_out";
4221
+ queued: "queued";
4222
+ offline: "offline";
4223
+ rejected: "rejected";
4224
+ }>;
4225
+ message: z.ZodString;
4226
+ }, z.core.$strict>], "state">>;
3843
4227
  }, z.core.$strict>>;
3844
4228
  elapsed_ms: z.ZodInt;
3845
4229
  }, z.core.$strict>;
@@ -3903,6 +4287,15 @@ declare const WebBrowserFetchParams: z.ZodObject<{
3903
4287
  wait_for: z.ZodOptional<z.ZodString>;
3904
4288
  wait_timeout_ms: z.ZodDefault<z.ZodInt>;
3905
4289
  extract_text: z.ZodDefault<z.ZodBoolean>;
4290
+ land: z.ZodOptional<z.ZodObject<{
4291
+ organization_id: z.ZodOptional<z.ZodString>;
4292
+ keep: z.ZodDefault<z.ZodBoolean>;
4293
+ attach_to: z.ZodDefault<z.ZodArray<z.ZodObject<{
4294
+ entity_type: z.ZodString;
4295
+ entity_id: z.ZodString;
4296
+ label: z.ZodOptional<z.ZodString>;
4297
+ }, z.core.$strict>>>;
4298
+ }, z.core.$strict>>;
3906
4299
  }, z.core.$strict>;
3907
4300
  type WebBrowserFetchParams = z.output<typeof WebBrowserFetchParams>;
3908
4301
  declare const WebBrowserFetchResult: z.ZodObject<{
@@ -3912,6 +4305,36 @@ declare const WebBrowserFetchResult: z.ZodObject<{
3912
4305
  content: z.ZodString;
3913
4306
  truncated: z.ZodBoolean;
3914
4307
  elapsed_ms: z.ZodInt;
4308
+ source: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
4309
+ state: z.ZodLiteral<"saved">;
4310
+ processed_document_id: z.ZodString;
4311
+ source_id: z.ZodString;
4312
+ reused_existing: z.ZodBoolean;
4313
+ new_version_of: z.ZodNullable<z.ZodString>;
4314
+ kept: z.ZodBoolean;
4315
+ intelligence: z.ZodEnum<{
4316
+ never: "never";
4317
+ queued: "queued";
4318
+ deferred: "deferred";
4319
+ }>;
4320
+ original_file_id: z.ZodNullable<z.ZodString>;
4321
+ organization_id: z.ZodString;
4322
+ notices: z.ZodArray<z.ZodObject<{
4323
+ code: z.ZodString;
4324
+ message: z.ZodString;
4325
+ remedy: z.ZodString;
4326
+ }, z.core.$strict>>;
4327
+ }, z.core.$strict>, z.ZodObject<{
4328
+ state: z.ZodLiteral<"not_saved">;
4329
+ outbox_id: z.ZodString;
4330
+ reason: z.ZodEnum<{
4331
+ signed_out: "signed_out";
4332
+ queued: "queued";
4333
+ offline: "offline";
4334
+ rejected: "rejected";
4335
+ }>;
4336
+ message: z.ZodString;
4337
+ }, z.core.$strict>], "state">>;
3915
4338
  }, z.core.$strict>;
3916
4339
  type WebBrowserFetchResult = z.output<typeof WebBrowserFetchResult>;
3917
4340
  /** The tools service's progress (one phase per long op). */
@@ -3924,99 +4347,646 @@ declare const ToolsServiceProgress: z.ZodObject<{
3924
4347
  total: z.ZodInt;
3925
4348
  }, z.core.$strict>;
3926
4349
  type ToolsServiceProgress = z.output<typeof ToolsServiceProgress>;
3927
-
4350
+ /** An entity a saved page is filed against (`platform.associations`, the door's AttachTarget). */
4351
+ declare const WebAttachTarget: z.ZodObject<{
4352
+ entity_type: z.ZodString;
4353
+ entity_id: z.ZodString;
4354
+ label: z.ZodOptional<z.ZodString>;
4355
+ }, z.core.$strict>;
4356
+ type WebAttachTarget = z.output<typeof WebAttachTarget>;
3928
4357
  /**
3929
- * @ai-matrx/desktop-protocol — cap system (SPEC §6): open a link or a file the way the person's
3930
- * computer would, and show a notification. Schema source: lint-enforced rules in
3931
- * scripts/check-schema-source.mjs. Added in protocol 1.4.
4358
+ * Where and how a read page is saved (since 1.38). Absent: saved in the organization this computer
4359
+ * is signed in to, not kept. The core saves every page it reads, for every caller (the person's own
4360
+ * screens, an agent through the relay, the phone), through AI Matrx's one desktop door
4361
+ * (`POST /scraper/content/save`).
3932
4362
  */
3933
-
3934
- /** (1.24) An OS settings page Matrx 2 can open: the person's own place to change what Matrx 2 only shows. */
3935
- declare const SystemSettingsPane: z.ZodEnum<{
3936
- microphone: "microphone";
3937
- displays: "displays";
3938
- night_shift: "night_shift";
3939
- sound: "sound";
3940
- keyboard: "keyboard";
3941
- keyboard_shortcuts: "keyboard_shortcuts";
3942
- text_input: "text_input";
3943
- dictation: "dictation";
3944
- energy: "energy";
3945
- about: "about";
3946
- storage: "storage";
3947
- system_report: "system_report";
4363
+ declare const WebLand: z.ZodObject<{
4364
+ organization_id: z.ZodOptional<z.ZodString>;
4365
+ keep: z.ZodDefault<z.ZodBoolean>;
4366
+ attach_to: z.ZodDefault<z.ZodArray<z.ZodObject<{
4367
+ entity_type: z.ZodString;
4368
+ entity_id: z.ZodString;
4369
+ label: z.ZodOptional<z.ZodString>;
4370
+ }, z.core.$strict>>>;
4371
+ }, z.core.$strict>;
4372
+ type WebLand = z.output<typeof WebLand>;
4373
+ /** Why a read page is not saved yet. The page is never lost: it waits in this computer's outbox. */
4374
+ declare const WebNotSavedReason: z.ZodEnum<{
4375
+ signed_out: "signed_out";
4376
+ queued: "queued";
4377
+ offline: "offline";
4378
+ rejected: "rejected";
3948
4379
  }>;
3949
- type SystemSettingsPane = z.output<typeof SystemSettingsPane>;
3950
- declare const SystemOpenSettingsParams: z.ZodObject<{
3951
- pane: z.ZodEnum<{
3952
- microphone: "microphone";
3953
- displays: "displays";
3954
- night_shift: "night_shift";
3955
- sound: "sound";
3956
- keyboard: "keyboard";
3957
- keyboard_shortcuts: "keyboard_shortcuts";
3958
- text_input: "text_input";
3959
- dictation: "dictation";
3960
- energy: "energy";
3961
- about: "about";
3962
- storage: "storage";
3963
- system_report: "system_report";
4380
+ type WebNotSavedReason = z.output<typeof WebNotSavedReason>;
4381
+ declare const WebSourceNotice: z.ZodObject<{
4382
+ code: z.ZodString;
4383
+ message: z.ZodString;
4384
+ remedy: z.ZodString;
4385
+ }, z.core.$strict>;
4386
+ type WebSourceNotice = z.output<typeof WebSourceNotice>;
4387
+ /** A read page's Source (since 1.38): saved (the door's LandedSource), or waiting in the outbox. */
4388
+ declare const WebSourceState: z.ZodDiscriminatedUnion<[z.ZodObject<{
4389
+ state: z.ZodLiteral<"saved">;
4390
+ processed_document_id: z.ZodString;
4391
+ source_id: z.ZodString;
4392
+ reused_existing: z.ZodBoolean;
4393
+ new_version_of: z.ZodNullable<z.ZodString>;
4394
+ kept: z.ZodBoolean;
4395
+ intelligence: z.ZodEnum<{
4396
+ never: "never";
4397
+ queued: "queued";
4398
+ deferred: "deferred";
3964
4399
  }>;
3965
- }, z.core.$strict>;
3966
- type SystemOpenSettingsParams = z.output<typeof SystemOpenSettingsParams>;
3967
- declare const SystemOpenSettingsResult: z.ZodObject<{
3968
- pane: z.ZodEnum<{
3969
- microphone: "microphone";
3970
- displays: "displays";
3971
- night_shift: "night_shift";
3972
- sound: "sound";
3973
- keyboard: "keyboard";
3974
- keyboard_shortcuts: "keyboard_shortcuts";
3975
- text_input: "text_input";
3976
- dictation: "dictation";
3977
- energy: "energy";
3978
- about: "about";
3979
- storage: "storage";
3980
- system_report: "system_report";
4400
+ original_file_id: z.ZodNullable<z.ZodString>;
4401
+ organization_id: z.ZodString;
4402
+ notices: z.ZodArray<z.ZodObject<{
4403
+ code: z.ZodString;
4404
+ message: z.ZodString;
4405
+ remedy: z.ZodString;
4406
+ }, z.core.$strict>>;
4407
+ }, z.core.$strict>, z.ZodObject<{
4408
+ state: z.ZodLiteral<"not_saved">;
4409
+ outbox_id: z.ZodString;
4410
+ reason: z.ZodEnum<{
4411
+ signed_out: "signed_out";
4412
+ queued: "queued";
4413
+ offline: "offline";
4414
+ rejected: "rejected";
3981
4415
  }>;
3982
- }, z.core.$strict>;
3983
- type SystemOpenSettingsResult = z.output<typeof SystemOpenSettingsResult>;
3984
- declare const SystemOpenUrlParams: z.ZodObject<{
3985
- url: z.ZodString;
3986
- }, z.core.$strict>;
3987
- type SystemOpenUrlParams = z.output<typeof SystemOpenUrlParams>;
3988
- declare const SystemOpenUrlResult: z.ZodObject<{
3989
- url: z.ZodString;
3990
- }, z.core.$strict>;
3991
- type SystemOpenUrlResult = z.output<typeof SystemOpenUrlResult>;
3992
- declare const SystemOpenPathParams: z.ZodObject<{
4416
+ message: z.ZodString;
4417
+ }, z.core.$strict>], "state">;
4418
+ type WebSourceState = z.output<typeof WebSourceState>;
4419
+ /** One page's whole parse (`ScrapeResult.to_dict_with_html()`), written gzipped by the service. */
4420
+ declare const ToolsParseFile: z.ZodObject<{
3993
4421
  path: z.ZodString;
3994
- reveal: z.ZodDefault<z.ZodBoolean>;
4422
+ bytes: z.ZodInt;
3995
4423
  }, z.core.$strict>;
3996
- type SystemOpenPathParams = z.output<typeof SystemOpenPathParams>;
3997
- declare const SystemOpenPathResult: z.ZodObject<{
3998
- path: z.ZodString;
3999
- revealed: z.ZodBoolean;
4424
+ type ToolsParseFile = z.output<typeof ToolsParseFile>;
4425
+ declare const ToolsWebScrapeParams: z.ZodObject<{
4426
+ urls: z.ZodArray<z.ZodString>;
4427
+ use_cache: z.ZodDefault<z.ZodBoolean>;
4428
+ get_links: z.ZodDefault<z.ZodBoolean>;
4429
+ engine: z.ZodDefault<z.ZodEnum<{
4430
+ auto: "auto";
4431
+ browser: "browser";
4432
+ }>>;
4433
+ concurrency: z.ZodDefault<z.ZodInt>;
4434
+ delay_ms: z.ZodDefault<z.ZodInt>;
4435
+ spool_dir: z.ZodString;
4000
4436
  }, z.core.$strict>;
4001
- type SystemOpenPathResult = z.output<typeof SystemOpenPathResult>;
4002
- declare const SystemNotifyParams: z.ZodObject<{
4003
- title: z.ZodString;
4004
- body: z.ZodDefault<z.ZodString>;
4437
+ type ToolsWebScrapeParams = z.output<typeof ToolsWebScrapeParams>;
4438
+ declare const ToolsWebScrapePage: z.ZodObject<{
4439
+ page: z.ZodObject<{
4440
+ url: z.ZodString;
4441
+ ok: z.ZodBoolean;
4442
+ status: z.ZodNullable<z.ZodInt>;
4443
+ title: z.ZodNullable<z.ZodString>;
4444
+ text: z.ZodString;
4445
+ truncated: z.ZodBoolean;
4446
+ links: z.ZodArray<z.ZodString>;
4447
+ error: z.ZodNullable<z.ZodString>;
4448
+ via: z.ZodNullable<z.ZodString>;
4449
+ source: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
4450
+ state: z.ZodLiteral<"saved">;
4451
+ processed_document_id: z.ZodString;
4452
+ source_id: z.ZodString;
4453
+ reused_existing: z.ZodBoolean;
4454
+ new_version_of: z.ZodNullable<z.ZodString>;
4455
+ kept: z.ZodBoolean;
4456
+ intelligence: z.ZodEnum<{
4457
+ never: "never";
4458
+ queued: "queued";
4459
+ deferred: "deferred";
4460
+ }>;
4461
+ original_file_id: z.ZodNullable<z.ZodString>;
4462
+ organization_id: z.ZodString;
4463
+ notices: z.ZodArray<z.ZodObject<{
4464
+ code: z.ZodString;
4465
+ message: z.ZodString;
4466
+ remedy: z.ZodString;
4467
+ }, z.core.$strict>>;
4468
+ }, z.core.$strict>, z.ZodObject<{
4469
+ state: z.ZodLiteral<"not_saved">;
4470
+ outbox_id: z.ZodString;
4471
+ reason: z.ZodEnum<{
4472
+ signed_out: "signed_out";
4473
+ queued: "queued";
4474
+ offline: "offline";
4475
+ rejected: "rejected";
4476
+ }>;
4477
+ message: z.ZodString;
4478
+ }, z.core.$strict>], "state">>;
4479
+ }, z.core.$strict>;
4480
+ parse: z.ZodNullable<z.ZodObject<{
4481
+ path: z.ZodString;
4482
+ bytes: z.ZodInt;
4483
+ }, z.core.$strict>>;
4484
+ html: z.ZodNullable<z.ZodObject<{
4485
+ path: z.ZodString;
4486
+ bytes: z.ZodInt;
4487
+ }, z.core.$strict>>;
4005
4488
  }, z.core.$strict>;
4006
- type SystemNotifyParams = z.output<typeof SystemNotifyParams>;
4007
- declare const SystemNotifyResult: z.ZodObject<{
4008
- shown: z.ZodBoolean;
4489
+ type ToolsWebScrapePage = z.output<typeof ToolsWebScrapePage>;
4490
+ declare const ToolsWebScrapeResult: z.ZodObject<{
4491
+ pages: z.ZodArray<z.ZodObject<{
4492
+ page: z.ZodObject<{
4493
+ url: z.ZodString;
4494
+ ok: z.ZodBoolean;
4495
+ status: z.ZodNullable<z.ZodInt>;
4496
+ title: z.ZodNullable<z.ZodString>;
4497
+ text: z.ZodString;
4498
+ truncated: z.ZodBoolean;
4499
+ links: z.ZodArray<z.ZodString>;
4500
+ error: z.ZodNullable<z.ZodString>;
4501
+ via: z.ZodNullable<z.ZodString>;
4502
+ source: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
4503
+ state: z.ZodLiteral<"saved">;
4504
+ processed_document_id: z.ZodString;
4505
+ source_id: z.ZodString;
4506
+ reused_existing: z.ZodBoolean;
4507
+ new_version_of: z.ZodNullable<z.ZodString>;
4508
+ kept: z.ZodBoolean;
4509
+ intelligence: z.ZodEnum<{
4510
+ never: "never";
4511
+ queued: "queued";
4512
+ deferred: "deferred";
4513
+ }>;
4514
+ original_file_id: z.ZodNullable<z.ZodString>;
4515
+ organization_id: z.ZodString;
4516
+ notices: z.ZodArray<z.ZodObject<{
4517
+ code: z.ZodString;
4518
+ message: z.ZodString;
4519
+ remedy: z.ZodString;
4520
+ }, z.core.$strict>>;
4521
+ }, z.core.$strict>, z.ZodObject<{
4522
+ state: z.ZodLiteral<"not_saved">;
4523
+ outbox_id: z.ZodString;
4524
+ reason: z.ZodEnum<{
4525
+ signed_out: "signed_out";
4526
+ queued: "queued";
4527
+ offline: "offline";
4528
+ rejected: "rejected";
4529
+ }>;
4530
+ message: z.ZodString;
4531
+ }, z.core.$strict>], "state">>;
4532
+ }, z.core.$strict>;
4533
+ parse: z.ZodNullable<z.ZodObject<{
4534
+ path: z.ZodString;
4535
+ bytes: z.ZodInt;
4536
+ }, z.core.$strict>>;
4537
+ html: z.ZodNullable<z.ZodObject<{
4538
+ path: z.ZodString;
4539
+ bytes: z.ZodInt;
4540
+ }, z.core.$strict>>;
4541
+ }, z.core.$strict>>;
4542
+ elapsed_ms: z.ZodInt;
4009
4543
  }, z.core.$strict>;
4010
- type SystemNotifyResult = z.output<typeof SystemNotifyResult>;
4011
-
4012
- /**
4013
- * @ai-matrx/desktop-protocol — cap screen (SPEC §6): the person's displays and a picture of one.
4014
- * Schema source: lint-enforced rules in scripts/check-schema-source.mjs. Added in protocol 1.4.
4015
- */
4016
-
4017
- declare const ScreenListParams: z.ZodObject<{}, z.core.$strict>;
4018
- declare const ScreenDisplay: z.ZodObject<{
4019
- id: z.ZodInt;
4544
+ type ToolsWebScrapeResult = z.output<typeof ToolsWebScrapeResult>;
4545
+ declare const ToolsWebBrowserFetchParams: z.ZodObject<{
4546
+ url: z.ZodString;
4547
+ wait_for: z.ZodOptional<z.ZodString>;
4548
+ wait_timeout_ms: z.ZodDefault<z.ZodInt>;
4549
+ extract_text: z.ZodDefault<z.ZodBoolean>;
4550
+ spool_dir: z.ZodString;
4551
+ }, z.core.$strict>;
4552
+ type ToolsWebBrowserFetchParams = z.output<typeof ToolsWebBrowserFetchParams>;
4553
+ declare const ToolsWebBrowserFetchResult: z.ZodObject<{
4554
+ result: z.ZodObject<{
4555
+ url: z.ZodString;
4556
+ status: z.ZodNullable<z.ZodInt>;
4557
+ title: z.ZodNullable<z.ZodString>;
4558
+ content: z.ZodString;
4559
+ truncated: z.ZodBoolean;
4560
+ elapsed_ms: z.ZodInt;
4561
+ source: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
4562
+ state: z.ZodLiteral<"saved">;
4563
+ processed_document_id: z.ZodString;
4564
+ source_id: z.ZodString;
4565
+ reused_existing: z.ZodBoolean;
4566
+ new_version_of: z.ZodNullable<z.ZodString>;
4567
+ kept: z.ZodBoolean;
4568
+ intelligence: z.ZodEnum<{
4569
+ never: "never";
4570
+ queued: "queued";
4571
+ deferred: "deferred";
4572
+ }>;
4573
+ original_file_id: z.ZodNullable<z.ZodString>;
4574
+ organization_id: z.ZodString;
4575
+ notices: z.ZodArray<z.ZodObject<{
4576
+ code: z.ZodString;
4577
+ message: z.ZodString;
4578
+ remedy: z.ZodString;
4579
+ }, z.core.$strict>>;
4580
+ }, z.core.$strict>, z.ZodObject<{
4581
+ state: z.ZodLiteral<"not_saved">;
4582
+ outbox_id: z.ZodString;
4583
+ reason: z.ZodEnum<{
4584
+ signed_out: "signed_out";
4585
+ queued: "queued";
4586
+ offline: "offline";
4587
+ rejected: "rejected";
4588
+ }>;
4589
+ message: z.ZodString;
4590
+ }, z.core.$strict>], "state">>;
4591
+ }, z.core.$strict>;
4592
+ parse: z.ZodNullable<z.ZodObject<{
4593
+ path: z.ZodString;
4594
+ bytes: z.ZodInt;
4595
+ }, z.core.$strict>>;
4596
+ }, z.core.$strict>;
4597
+ type ToolsWebBrowserFetchResult = z.output<typeof ToolsWebBrowserFetchResult>;
4598
+ declare const WebRuntimeStateName: z.ZodEnum<{
4599
+ not_installed: "not_installed";
4600
+ installing: "installing";
4601
+ installed: "installed";
4602
+ failed: "failed";
4603
+ }>;
4604
+ type WebRuntimeStateName = z.output<typeof WebRuntimeStateName>;
4605
+ declare const WebRuntimeState: z.ZodObject<{
4606
+ state: z.ZodEnum<{
4607
+ not_installed: "not_installed";
4608
+ installing: "installing";
4609
+ installed: "installed";
4610
+ failed: "failed";
4611
+ }>;
4612
+ error: z.ZodNullable<z.ZodString>;
4613
+ size_bytes: z.ZodNullable<z.ZodInt>;
4614
+ can_show_window: z.ZodBoolean;
4615
+ }, z.core.$strict>;
4616
+ type WebRuntimeState = z.output<typeof WebRuntimeState>;
4617
+ declare const WebOutboxItem: z.ZodObject<{
4618
+ outbox_id: z.ZodString;
4619
+ url: z.ZodString;
4620
+ title: z.ZodNullable<z.ZodString>;
4621
+ organization_id: z.ZodNullable<z.ZodString>;
4622
+ reason: z.ZodEnum<{
4623
+ signed_out: "signed_out";
4624
+ queued: "queued";
4625
+ offline: "offline";
4626
+ rejected: "rejected";
4627
+ }>;
4628
+ message: z.ZodString;
4629
+ attempts: z.ZodInt;
4630
+ created_at_ms: z.ZodInt;
4631
+ last_attempt_at_ms: z.ZodNullable<z.ZodInt>;
4632
+ bytes: z.ZodInt;
4633
+ }, z.core.$strict>;
4634
+ type WebOutboxItem = z.output<typeof WebOutboxItem>;
4635
+ declare const WebOutboxListResult: z.ZodObject<{
4636
+ items: z.ZodArray<z.ZodObject<{
4637
+ outbox_id: z.ZodString;
4638
+ url: z.ZodString;
4639
+ title: z.ZodNullable<z.ZodString>;
4640
+ organization_id: z.ZodNullable<z.ZodString>;
4641
+ reason: z.ZodEnum<{
4642
+ signed_out: "signed_out";
4643
+ queued: "queued";
4644
+ offline: "offline";
4645
+ rejected: "rejected";
4646
+ }>;
4647
+ message: z.ZodString;
4648
+ attempts: z.ZodInt;
4649
+ created_at_ms: z.ZodInt;
4650
+ last_attempt_at_ms: z.ZodNullable<z.ZodInt>;
4651
+ bytes: z.ZodInt;
4652
+ }, z.core.$strict>>;
4653
+ bytes: z.ZodInt;
4654
+ cap_bytes: z.ZodInt;
4655
+ }, z.core.$strict>;
4656
+ type WebOutboxListResult = z.output<typeof WebOutboxListResult>;
4657
+ declare const WebOutboxRetryResult: z.ZodObject<{
4658
+ saved: z.ZodInt;
4659
+ waiting: z.ZodInt;
4660
+ }, z.core.$strict>;
4661
+ type WebOutboxRetryResult = z.output<typeof WebOutboxRetryResult>;
4662
+ declare const WebLogVia: z.ZodEnum<{
4663
+ server: "server";
4664
+ browser: "browser";
4665
+ this_computer: "this_computer";
4666
+ }>;
4667
+ type WebLogVia = z.output<typeof WebLogVia>;
4668
+ declare const WebLogCaller: z.ZodEnum<{
4669
+ agent: "agent";
4670
+ other: "other";
4671
+ person: "person";
4672
+ research: "research";
4673
+ phone: "phone";
4674
+ }>;
4675
+ type WebLogCaller = z.output<typeof WebLogCaller>;
4676
+ declare const WebLogResult: z.ZodEnum<{
4677
+ failed: "failed";
4678
+ saved: "saved";
4679
+ not_saved: "not_saved";
4680
+ blocked: "blocked";
4681
+ read: "read";
4682
+ }>;
4683
+ type WebLogResult = z.output<typeof WebLogResult>;
4684
+ declare const WebLogEntry: z.ZodObject<{
4685
+ id: z.ZodString;
4686
+ at_ms: z.ZodInt;
4687
+ caller: z.ZodEnum<{
4688
+ agent: "agent";
4689
+ other: "other";
4690
+ person: "person";
4691
+ research: "research";
4692
+ phone: "phone";
4693
+ }>;
4694
+ url: z.ZodString;
4695
+ title: z.ZodNullable<z.ZodString>;
4696
+ result: z.ZodEnum<{
4697
+ failed: "failed";
4698
+ saved: "saved";
4699
+ not_saved: "not_saved";
4700
+ blocked: "blocked";
4701
+ read: "read";
4702
+ }>;
4703
+ detail: z.ZodNullable<z.ZodString>;
4704
+ via: z.ZodEnum<{
4705
+ server: "server";
4706
+ browser: "browser";
4707
+ this_computer: "this_computer";
4708
+ }>;
4709
+ duration_ms: z.ZodInt;
4710
+ processed_document_id: z.ZodNullable<z.ZodString>;
4711
+ }, z.core.$strict>;
4712
+ type WebLogEntry = z.output<typeof WebLogEntry>;
4713
+ declare const WebLogListResult: z.ZodObject<{
4714
+ entries: z.ZodArray<z.ZodObject<{
4715
+ id: z.ZodString;
4716
+ at_ms: z.ZodInt;
4717
+ caller: z.ZodEnum<{
4718
+ agent: "agent";
4719
+ other: "other";
4720
+ person: "person";
4721
+ research: "research";
4722
+ phone: "phone";
4723
+ }>;
4724
+ url: z.ZodString;
4725
+ title: z.ZodNullable<z.ZodString>;
4726
+ result: z.ZodEnum<{
4727
+ failed: "failed";
4728
+ saved: "saved";
4729
+ not_saved: "not_saved";
4730
+ blocked: "blocked";
4731
+ read: "read";
4732
+ }>;
4733
+ detail: z.ZodNullable<z.ZodString>;
4734
+ via: z.ZodEnum<{
4735
+ server: "server";
4736
+ browser: "browser";
4737
+ this_computer: "this_computer";
4738
+ }>;
4739
+ duration_ms: z.ZodInt;
4740
+ processed_document_id: z.ZodNullable<z.ZodString>;
4741
+ }, z.core.$strict>>;
4742
+ }, z.core.$strict>;
4743
+ type WebLogListResult = z.output<typeof WebLogListResult>;
4744
+ /** A long web op's progress (web.runtime.install, web.research.fetch): the op's request id. */
4745
+ declare const WebProgressEvent: z.ZodObject<{
4746
+ request_id: z.ZodString;
4747
+ phase: z.ZodEnum<{
4748
+ installing: "installing";
4749
+ fetching: "fetching";
4750
+ saving: "saving";
4751
+ }>;
4752
+ done: z.ZodInt;
4753
+ total: z.ZodInt;
4754
+ }, z.core.$strict>;
4755
+ type WebProgressEvent = z.output<typeof WebProgressEvent>;
4756
+ declare const WebResearchItemState: z.ZodEnum<{
4757
+ failed: "failed";
4758
+ waiting: "waiting";
4759
+ saved: "saved";
4760
+ blocked: "blocked";
4761
+ fetching: "fetching";
4762
+ thin: "thin";
4763
+ cannot_edit: "cannot_edit";
4764
+ }>;
4765
+ type WebResearchItemState = z.output<typeof WebResearchItemState>;
4766
+ declare const WebResearchItem: z.ZodObject<{
4767
+ topic_id: z.ZodString;
4768
+ topic_name: z.ZodString;
4769
+ source_id: z.ZodString;
4770
+ url: z.ZodString;
4771
+ title: z.ZodNullable<z.ZodString>;
4772
+ level: z.ZodInt;
4773
+ last_failure: z.ZodNullable<z.ZodString>;
4774
+ state: z.ZodEnum<{
4775
+ failed: "failed";
4776
+ waiting: "waiting";
4777
+ saved: "saved";
4778
+ blocked: "blocked";
4779
+ fetching: "fetching";
4780
+ thin: "thin";
4781
+ cannot_edit: "cannot_edit";
4782
+ }>;
4783
+ message: z.ZodNullable<z.ZodString>;
4784
+ }, z.core.$strict>;
4785
+ type WebResearchItem = z.output<typeof WebResearchItem>;
4786
+ declare const WebResearchQueueResult: z.ZodObject<{
4787
+ state: z.ZodEnum<{
4788
+ ready: "ready";
4789
+ signed_out: "signed_out";
4790
+ unavailable: "unavailable";
4791
+ }>;
4792
+ problem: z.ZodNullable<z.ZodString>;
4793
+ items: z.ZodArray<z.ZodObject<{
4794
+ topic_id: z.ZodString;
4795
+ topic_name: z.ZodString;
4796
+ source_id: z.ZodString;
4797
+ url: z.ZodString;
4798
+ title: z.ZodNullable<z.ZodString>;
4799
+ level: z.ZodInt;
4800
+ last_failure: z.ZodNullable<z.ZodString>;
4801
+ state: z.ZodEnum<{
4802
+ failed: "failed";
4803
+ waiting: "waiting";
4804
+ saved: "saved";
4805
+ blocked: "blocked";
4806
+ fetching: "fetching";
4807
+ thin: "thin";
4808
+ cannot_edit: "cannot_edit";
4809
+ }>;
4810
+ message: z.ZodNullable<z.ZodString>;
4811
+ }, z.core.$strict>>;
4812
+ view_only: z.ZodInt;
4813
+ }, z.core.$strict>;
4814
+ type WebResearchQueueResult = z.output<typeof WebResearchQueueResult>;
4815
+ declare const WebResearchFetchParams: z.ZodObject<{
4816
+ topic_id: z.ZodOptional<z.ZodString>;
4817
+ source_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
4818
+ }, z.core.$strict>;
4819
+ type WebResearchFetchParams = z.output<typeof WebResearchFetchParams>;
4820
+ declare const WebResearchFetchResult: z.ZodObject<{
4821
+ items: z.ZodArray<z.ZodObject<{
4822
+ topic_id: z.ZodString;
4823
+ topic_name: z.ZodString;
4824
+ source_id: z.ZodString;
4825
+ url: z.ZodString;
4826
+ title: z.ZodNullable<z.ZodString>;
4827
+ level: z.ZodInt;
4828
+ last_failure: z.ZodNullable<z.ZodString>;
4829
+ state: z.ZodEnum<{
4830
+ failed: "failed";
4831
+ waiting: "waiting";
4832
+ saved: "saved";
4833
+ blocked: "blocked";
4834
+ fetching: "fetching";
4835
+ thin: "thin";
4836
+ cannot_edit: "cannot_edit";
4837
+ }>;
4838
+ message: z.ZodNullable<z.ZodString>;
4839
+ }, z.core.$strict>>;
4840
+ saved: z.ZodInt;
4841
+ thin: z.ZodInt;
4842
+ failed: z.ZodInt;
4843
+ cannot_edit: z.ZodInt;
4844
+ }, z.core.$strict>;
4845
+ type WebResearchFetchResult = z.output<typeof WebResearchFetchResult>;
4846
+
4847
+ /**
4848
+ * @ai-matrx/desktop-protocol — cap system (SPEC §6): open a link or a file the way the person's
4849
+ * computer would, and show a notification. Schema source: lint-enforced rules in
4850
+ * scripts/check-schema-source.mjs. Added in protocol 1.4.
4851
+ */
4852
+
4853
+ /** (1.24) An OS settings page Matrx 2 can open: the person's own place to change what Matrx 2 only shows. */
4854
+ declare const SystemSettingsPane: z.ZodEnum<{
4855
+ full_disk_access: "full_disk_access";
4856
+ accessibility: "accessibility";
4857
+ screen_recording: "screen_recording";
4858
+ microphone: "microphone";
4859
+ camera: "camera";
4860
+ automation: "automation";
4861
+ contacts: "contacts";
4862
+ calendars: "calendars";
4863
+ photos: "photos";
4864
+ location: "location";
4865
+ local_network: "local_network";
4866
+ bluetooth: "bluetooth";
4867
+ notifications: "notifications";
4868
+ reminders: "reminders";
4869
+ speech_recognition: "speech_recognition";
4870
+ messages: "messages";
4871
+ mail: "mail";
4872
+ wifi: "wifi";
4873
+ displays: "displays";
4874
+ night_shift: "night_shift";
4875
+ sound: "sound";
4876
+ keyboard: "keyboard";
4877
+ keyboard_shortcuts: "keyboard_shortcuts";
4878
+ text_input: "text_input";
4879
+ dictation: "dictation";
4880
+ energy: "energy";
4881
+ about: "about";
4882
+ storage: "storage";
4883
+ system_report: "system_report";
4884
+ }>;
4885
+ type SystemSettingsPane = z.output<typeof SystemSettingsPane>;
4886
+ declare const SystemOpenSettingsParams: z.ZodObject<{
4887
+ pane: z.ZodEnum<{
4888
+ full_disk_access: "full_disk_access";
4889
+ accessibility: "accessibility";
4890
+ screen_recording: "screen_recording";
4891
+ microphone: "microphone";
4892
+ camera: "camera";
4893
+ automation: "automation";
4894
+ contacts: "contacts";
4895
+ calendars: "calendars";
4896
+ photos: "photos";
4897
+ location: "location";
4898
+ local_network: "local_network";
4899
+ bluetooth: "bluetooth";
4900
+ notifications: "notifications";
4901
+ reminders: "reminders";
4902
+ speech_recognition: "speech_recognition";
4903
+ messages: "messages";
4904
+ mail: "mail";
4905
+ wifi: "wifi";
4906
+ displays: "displays";
4907
+ night_shift: "night_shift";
4908
+ sound: "sound";
4909
+ keyboard: "keyboard";
4910
+ keyboard_shortcuts: "keyboard_shortcuts";
4911
+ text_input: "text_input";
4912
+ dictation: "dictation";
4913
+ energy: "energy";
4914
+ about: "about";
4915
+ storage: "storage";
4916
+ system_report: "system_report";
4917
+ }>;
4918
+ }, z.core.$strict>;
4919
+ type SystemOpenSettingsParams = z.output<typeof SystemOpenSettingsParams>;
4920
+ declare const SystemOpenSettingsResult: z.ZodObject<{
4921
+ pane: z.ZodEnum<{
4922
+ full_disk_access: "full_disk_access";
4923
+ accessibility: "accessibility";
4924
+ screen_recording: "screen_recording";
4925
+ microphone: "microphone";
4926
+ camera: "camera";
4927
+ automation: "automation";
4928
+ contacts: "contacts";
4929
+ calendars: "calendars";
4930
+ photos: "photos";
4931
+ location: "location";
4932
+ local_network: "local_network";
4933
+ bluetooth: "bluetooth";
4934
+ notifications: "notifications";
4935
+ reminders: "reminders";
4936
+ speech_recognition: "speech_recognition";
4937
+ messages: "messages";
4938
+ mail: "mail";
4939
+ wifi: "wifi";
4940
+ displays: "displays";
4941
+ night_shift: "night_shift";
4942
+ sound: "sound";
4943
+ keyboard: "keyboard";
4944
+ keyboard_shortcuts: "keyboard_shortcuts";
4945
+ text_input: "text_input";
4946
+ dictation: "dictation";
4947
+ energy: "energy";
4948
+ about: "about";
4949
+ storage: "storage";
4950
+ system_report: "system_report";
4951
+ }>;
4952
+ }, z.core.$strict>;
4953
+ type SystemOpenSettingsResult = z.output<typeof SystemOpenSettingsResult>;
4954
+ declare const SystemOpenUrlParams: z.ZodObject<{
4955
+ url: z.ZodString;
4956
+ }, z.core.$strict>;
4957
+ type SystemOpenUrlParams = z.output<typeof SystemOpenUrlParams>;
4958
+ declare const SystemOpenUrlResult: z.ZodObject<{
4959
+ url: z.ZodString;
4960
+ }, z.core.$strict>;
4961
+ type SystemOpenUrlResult = z.output<typeof SystemOpenUrlResult>;
4962
+ declare const SystemOpenPathParams: z.ZodObject<{
4963
+ path: z.ZodString;
4964
+ reveal: z.ZodDefault<z.ZodBoolean>;
4965
+ }, z.core.$strict>;
4966
+ type SystemOpenPathParams = z.output<typeof SystemOpenPathParams>;
4967
+ declare const SystemOpenPathResult: z.ZodObject<{
4968
+ path: z.ZodString;
4969
+ revealed: z.ZodBoolean;
4970
+ }, z.core.$strict>;
4971
+ type SystemOpenPathResult = z.output<typeof SystemOpenPathResult>;
4972
+ declare const SystemNotifyParams: z.ZodObject<{
4973
+ title: z.ZodString;
4974
+ body: z.ZodDefault<z.ZodString>;
4975
+ }, z.core.$strict>;
4976
+ type SystemNotifyParams = z.output<typeof SystemNotifyParams>;
4977
+ declare const SystemNotifyResult: z.ZodObject<{
4978
+ shown: z.ZodBoolean;
4979
+ }, z.core.$strict>;
4980
+ type SystemNotifyResult = z.output<typeof SystemNotifyResult>;
4981
+
4982
+ /**
4983
+ * @ai-matrx/desktop-protocol — cap screen (SPEC §6): the person's displays and a picture of one.
4984
+ * Schema source: lint-enforced rules in scripts/check-schema-source.mjs. Added in protocol 1.4.
4985
+ */
4986
+
4987
+ declare const ScreenListParams: z.ZodObject<{}, z.core.$strict>;
4988
+ declare const ScreenDisplay: z.ZodObject<{
4989
+ id: z.ZodInt;
4020
4990
  name: z.ZodString;
4021
4991
  x: z.ZodInt;
4022
4992
  y: z.ZodInt;
@@ -5338,183 +6308,2054 @@ declare const ExecJobListResult: z.ZodObject<{
5338
6308
  command: z.ZodString;
5339
6309
  pid: z.ZodInt;
5340
6310
  cwd: z.ZodString;
5341
- running: z.ZodBoolean;
5342
- exit_code: z.ZodNullable<z.ZodInt>;
5343
- started_at_ms: z.ZodInt;
5344
- output_bytes: z.ZodInt;
6311
+ running: z.ZodBoolean;
6312
+ exit_code: z.ZodNullable<z.ZodInt>;
6313
+ started_at_ms: z.ZodInt;
6314
+ output_bytes: z.ZodInt;
6315
+ }, z.core.$strict>>;
6316
+ }, z.core.$strict>;
6317
+ type ExecJobListResult = z.output<typeof ExecJobListResult>;
6318
+
6319
+ /**
6320
+ * @ai-matrx/desktop-protocol — the `coding` capability's Claude Code history (SPEC §6 `coding`):
6321
+ * "Import missing history" — every Claude Code session on this computer that AI Matrx lacks, or is
6322
+ * behind on, imported through the shared importer (matrx-coding-history, the same code Matrx Local
6323
+ * runs) in Matrx 2's `coding` Python service (SPEC §3.10). Schema source: lint-enforced rules in
6324
+ * scripts/check-schema-source.mjs.
6325
+ *
6326
+ * Two contracts, both generated from this file (SPEC P11):
6327
+ * - the Router op `coding.history.import_missing` (every transport) and its progress event;
6328
+ * - the internal service ops `coding.plan_missing` / `coding.import_next` between the core and
6329
+ * the Python service. The core runs the loop: each service call is one bounded batch carrying
6330
+ * a fresh access token, so a long run never outlives its credential.
6331
+ */
6332
+
6333
+ declare const CodingHistoryFailure: z.ZodObject<{
6334
+ session_id: z.ZodString;
6335
+ reason: z.ZodString;
6336
+ }, z.core.$strict>;
6337
+ /**
6338
+ * Service op `coding.plan_missing`: read the cloud's list and this computer's history (stat only).
6339
+ * `credentials` is null when nobody is signed in: the service answers `blocked: signed_out` with
6340
+ * its own line, so every sentence the person reads comes from one place.
6341
+ */
6342
+ declare const CodingPlanMissingParams: z.ZodObject<{
6343
+ credentials: z.ZodNullable<z.ZodObject<{
6344
+ access_token: z.ZodString;
6345
+ user_id: z.ZodString;
6346
+ server_url: z.ZodString;
6347
+ }, z.core.$strict>>;
6348
+ }, z.core.$strict>;
6349
+ /** Service op `coding.import_next`: import the plan's next bounded batch (null credentials: as above). */
6350
+ declare const CodingImportNextParams: z.ZodObject<{
6351
+ plan_id: z.ZodString;
6352
+ credentials: z.ZodNullable<z.ZodObject<{
6353
+ access_token: z.ZodString;
6354
+ user_id: z.ZodString;
6355
+ server_url: z.ZodString;
6356
+ }, z.core.$strict>>;
6357
+ }, z.core.$strict>;
6358
+ declare const CodingHistoryImportMissingParams: z.ZodObject<{}, z.core.$strict>;
6359
+ /** What the core adds to every coding service op from its own sign-in (never sent by a client). */
6360
+ declare const CodingServiceCredentials: z.ZodObject<{
6361
+ access_token: z.ZodString;
6362
+ user_id: z.ZodString;
6363
+ server_url: z.ZodString;
6364
+ }, z.core.$strict>;
6365
+ type CodingServiceCredentials = z.output<typeof CodingServiceCredentials>;
6366
+ /**
6367
+ * Why a run stopped before it was done, as a state the screen can name:
6368
+ * signed_out — no usable AI Matrx sign-in (or it expired mid-run);
6369
+ * offline — the AI Matrx server did not answer;
6370
+ * organization_required — AI Matrx needs to know which organization files coding sessions;
6371
+ * claude_unavailable — Claude Code's account on this computer cannot be read;
6372
+ * cloud_list_unavailable — the server's list of sessions could not be proven complete;
6373
+ * history_too_large — more local sessions than the importer reads in one run.
6374
+ */
6375
+ declare const CodingHistoryBlocked: z.ZodEnum<{
6376
+ signed_out: "signed_out";
6377
+ offline: "offline";
6378
+ organization_required: "organization_required";
6379
+ claude_unavailable: "claude_unavailable";
6380
+ cloud_list_unavailable: "cloud_list_unavailable";
6381
+ history_too_large: "history_too_large";
6382
+ }>;
6383
+ type CodingHistoryBlocked = z.output<typeof CodingHistoryBlocked>;
6384
+ /** A run's counts so far, and its one honest line. */
6385
+ declare const CodingHistoryRun: z.ZodObject<{
6386
+ local_sessions: z.ZodInt;
6387
+ in_cloud: z.ZodInt;
6388
+ missing: z.ZodInt;
6389
+ behind: z.ZodInt;
6390
+ too_large: z.ZodInt;
6391
+ imported: z.ZodInt;
6392
+ changed: z.ZodInt;
6393
+ failed: z.ZodInt;
6394
+ failures: z.ZodArray<z.ZodObject<{
6395
+ session_id: z.ZodString;
6396
+ reason: z.ZodString;
6397
+ }, z.core.$strict>>;
6398
+ remaining: z.ZodInt;
6399
+ summary: z.ZodString;
6400
+ }, z.core.$strict>;
6401
+ type CodingHistoryRun = z.output<typeof CodingHistoryRun>;
6402
+ /** The answer to each service op: where the run stands. */
6403
+ declare const CodingHistoryStep: z.ZodObject<{
6404
+ plan_id: z.ZodNullable<z.ZodString>;
6405
+ finished: z.ZodBoolean;
6406
+ blocked: z.ZodNullable<z.ZodEnum<{
6407
+ signed_out: "signed_out";
6408
+ offline: "offline";
6409
+ organization_required: "organization_required";
6410
+ claude_unavailable: "claude_unavailable";
6411
+ cloud_list_unavailable: "cloud_list_unavailable";
6412
+ history_too_large: "history_too_large";
6413
+ }>>;
6414
+ run: z.ZodObject<{
6415
+ local_sessions: z.ZodInt;
6416
+ in_cloud: z.ZodInt;
6417
+ missing: z.ZodInt;
6418
+ behind: z.ZodInt;
6419
+ too_large: z.ZodInt;
6420
+ imported: z.ZodInt;
6421
+ changed: z.ZodInt;
6422
+ failed: z.ZodInt;
6423
+ failures: z.ZodArray<z.ZodObject<{
6424
+ session_id: z.ZodString;
6425
+ reason: z.ZodString;
6426
+ }, z.core.$strict>>;
6427
+ remaining: z.ZodInt;
6428
+ summary: z.ZodString;
6429
+ }, z.core.$strict>;
6430
+ }, z.core.$strict>;
6431
+ type CodingHistoryStep = z.output<typeof CodingHistoryStep>;
6432
+ /** The coding service's progress messages (sent while it reads a large history). */
6433
+ declare const CodingServiceProgress: z.ZodObject<{
6434
+ phase: z.ZodEnum<{
6435
+ checking: "checking";
6436
+ importing: "importing";
6437
+ }>;
6438
+ done: z.ZodInt;
6439
+ total: z.ZodInt;
6440
+ }, z.core.$strict>;
6441
+ type CodingServiceProgress = z.output<typeof CodingServiceProgress>;
6442
+ declare const CodingHistoryImportMissingResult: z.ZodObject<{
6443
+ state: z.ZodEnum<{
6444
+ cancelled: "cancelled";
6445
+ blocked: "blocked";
6446
+ done: "done";
6447
+ }>;
6448
+ blocked: z.ZodNullable<z.ZodEnum<{
6449
+ signed_out: "signed_out";
6450
+ offline: "offline";
6451
+ organization_required: "organization_required";
6452
+ claude_unavailable: "claude_unavailable";
6453
+ cloud_list_unavailable: "cloud_list_unavailable";
6454
+ history_too_large: "history_too_large";
6455
+ }>>;
6456
+ run: z.ZodObject<{
6457
+ local_sessions: z.ZodInt;
6458
+ in_cloud: z.ZodInt;
6459
+ missing: z.ZodInt;
6460
+ behind: z.ZodInt;
6461
+ too_large: z.ZodInt;
6462
+ imported: z.ZodInt;
6463
+ changed: z.ZodInt;
6464
+ failed: z.ZodInt;
6465
+ failures: z.ZodArray<z.ZodObject<{
6466
+ session_id: z.ZodString;
6467
+ reason: z.ZodString;
6468
+ }, z.core.$strict>>;
6469
+ remaining: z.ZodInt;
6470
+ summary: z.ZodString;
6471
+ }, z.core.$strict>;
6472
+ elapsed_ms: z.ZodInt;
6473
+ }, z.core.$strict>;
6474
+ type CodingHistoryImportMissingResult = z.output<typeof CodingHistoryImportMissingResult>;
6475
+ /** Sent to the client that started `coding.history.import_missing`, for that request. */
6476
+ declare const CodingHistoryProgressEvent: z.ZodObject<{
6477
+ request_id: z.ZodString;
6478
+ phase: z.ZodEnum<{
6479
+ checking: "checking";
6480
+ importing: "importing";
6481
+ }>;
6482
+ done: z.ZodInt;
6483
+ total: z.ZodInt;
6484
+ imported: z.ZodInt;
6485
+ failed: z.ZodInt;
6486
+ }, z.core.$strict>;
6487
+ type CodingHistoryProgressEvent = z.output<typeof CodingHistoryProgressEvent>;
6488
+
6489
+ /**
6490
+ * @ai-matrx/desktop-protocol — the `coding` capability's sessions (SPEC §6 `coding`, "code from
6491
+ * anywhere"): the Claude Code and Codex chats Matrx 2's engine (`@ai-matrx/coding-sessions`) runs
6492
+ * and discovers on this computer, read and driven from a phone, the web or an agent through the
6493
+ * relay. Schema source: lint-enforced rules in scripts/check-schema-source.mjs. Added in 1.38.
6494
+ *
6495
+ * TWO SHAPES, ON PURPOSE:
6496
+ * - Params are wire-designed (snake_case), like every other op.
6497
+ * - The RECORDS the engine owns (a session, a run, a transcript item, a discovered chat, a
6498
+ * provider's status, a preference) travel in the engine's own shape (camelCase), so the Mac's
6499
+ * own screen (IPC) and a phone (relay) render exactly the same rows with the same code
6500
+ * (`@ai-matrx/coding-sessions/react`). The core fills every "optional or null" engine field
6501
+ * with null before sending (the strict Python twin cannot mirror optional+nullable), so each
6502
+ * record's z.output is assignable to the package's own type (proven in coding-sessions).
6503
+ *
6504
+ * Not on the wire, by design (they act on the computer's own screen or its own sign-in): open a
6505
+ * folder in an app, the screen's own preferences and drafts, retrying the apps' titles, and the
6506
+ * agent catalogue reads (a web client reads the catalogue directly as the same person).
6507
+ */
6508
+
6509
+ /** Exactly-once sends (the core keeps these ids 10 minutes). */
6510
+ declare const CodingClientRequestId: z.ZodString;
6511
+ declare const CodingSessionAgentPart: z.ZodObject<{
6512
+ part: z.ZodEnum<{
6513
+ tools: "tools";
6514
+ instructions: "instructions";
6515
+ skills: "skills";
6516
+ }>;
6517
+ loaded: z.ZodInt;
6518
+ total: z.ZodInt;
6519
+ }, z.core.$strict>;
6520
+ declare const CodingQuotaWindow: z.ZodObject<{
6521
+ label: z.ZodString;
6522
+ usedPercent: z.ZodNullable<z.ZodNumber>;
6523
+ resetsAt: z.ZodNullable<z.ZodString>;
6524
+ valueLabel: z.ZodNullable<z.ZodString>;
6525
+ }, z.core.$strict>;
6526
+ declare const CodingProviderProblem: z.ZodObject<{
6527
+ kind: z.ZodEnum<{
6528
+ "usage-limit": "usage-limit";
6529
+ "signed-out": "signed-out";
6530
+ }>;
6531
+ message: z.ZodString;
6532
+ until: z.ZodNullable<z.ZodString>;
6533
+ at: z.ZodString;
6534
+ }, z.core.$strict>;
6535
+ declare const CodingProviderBinary: z.ZodObject<{
6536
+ path: z.ZodString;
6537
+ version: z.ZodNullable<z.ZodString>;
6538
+ source: z.ZodEnum<{
6539
+ path: "path";
6540
+ "desktop-app": "desktop-app";
6541
+ "npm-global": "npm-global";
6542
+ configured: "configured";
6543
+ }>;
6544
+ sourceLabel: z.ZodString;
6545
+ newer: z.ZodNullable<z.ZodObject<{
6546
+ path: z.ZodString;
6547
+ version: z.ZodString;
6548
+ sourceLabel: z.ZodString;
6549
+ }, z.core.$strict>>;
6550
+ }, z.core.$strict>;
6551
+ declare const CodingProvidersParams: z.ZodObject<{}, z.core.$strict>;
6552
+ declare const CodingProvidersResult: z.ZodObject<{
6553
+ providers: z.ZodArray<z.ZodObject<{
6554
+ provider: z.ZodEnum<{
6555
+ claude: "claude";
6556
+ codex: "codex";
6557
+ }>;
6558
+ label: z.ZodString;
6559
+ installed: z.ZodBoolean;
6560
+ version: z.ZodNullable<z.ZodString>;
6561
+ loggedIn: z.ZodBoolean;
6562
+ billing: z.ZodEnum<{
6563
+ unknown: "unknown";
6564
+ subscription: "subscription";
6565
+ api: "api";
6566
+ }>;
6567
+ plan: z.ZodNullable<z.ZodString>;
6568
+ account: z.ZodNullable<z.ZodString>;
6569
+ problem: z.ZodNullable<z.ZodString>;
6570
+ fix: z.ZodNullable<z.ZodString>;
6571
+ ready: z.ZodBoolean;
6572
+ lastProblem: z.ZodNullable<z.ZodObject<{
6573
+ kind: z.ZodEnum<{
6574
+ "usage-limit": "usage-limit";
6575
+ "signed-out": "signed-out";
6576
+ }>;
6577
+ message: z.ZodString;
6578
+ until: z.ZodNullable<z.ZodString>;
6579
+ at: z.ZodString;
6580
+ }, z.core.$strict>>;
6581
+ quota: z.ZodArray<z.ZodObject<{
6582
+ label: z.ZodString;
6583
+ usedPercent: z.ZodNullable<z.ZodNumber>;
6584
+ resetsAt: z.ZodNullable<z.ZodString>;
6585
+ valueLabel: z.ZodNullable<z.ZodString>;
6586
+ }, z.core.$strict>>;
6587
+ models: z.ZodArray<z.ZodObject<{
6588
+ id: z.ZodString;
6589
+ label: z.ZodString;
6590
+ }, z.core.$strict>>;
6591
+ efforts: z.ZodArray<z.ZodString>;
6592
+ defaultModel: z.ZodNullable<z.ZodObject<{
6593
+ id: z.ZodString;
6594
+ source: z.ZodEnum<{
6595
+ settings: "settings";
6596
+ driver: "driver";
6597
+ }>;
6598
+ }, z.core.$strict>>;
6599
+ defaultEffort: z.ZodNullable<z.ZodString>;
6600
+ binary: z.ZodNullable<z.ZodObject<{
6601
+ path: z.ZodString;
6602
+ version: z.ZodNullable<z.ZodString>;
6603
+ source: z.ZodEnum<{
6604
+ path: "path";
6605
+ "desktop-app": "desktop-app";
6606
+ "npm-global": "npm-global";
6607
+ configured: "configured";
6608
+ }>;
6609
+ sourceLabel: z.ZodString;
6610
+ newer: z.ZodNullable<z.ZodObject<{
6611
+ path: z.ZodString;
6612
+ version: z.ZodString;
6613
+ sourceLabel: z.ZodString;
6614
+ }, z.core.$strict>>;
6615
+ }, z.core.$strict>>;
6616
+ }, z.core.$strict>>;
6617
+ }, z.core.$strict>;
6618
+ declare const CodingSessionsListParams: z.ZodObject<{}, z.core.$strict>;
6619
+ declare const CodingDiscoverParams: z.ZodObject<{
6620
+ limit: z.ZodOptional<z.ZodInt>;
6621
+ }, z.core.$strict>;
6622
+ declare const CodingDiscoverResult: z.ZodObject<{
6623
+ chats: z.ZodArray<z.ZodObject<{
6624
+ provider: z.ZodEnum<{
6625
+ claude: "claude";
6626
+ codex: "codex";
6627
+ }>;
6628
+ providerSessionId: z.ZodString;
6629
+ cwd: z.ZodNullable<z.ZodString>;
6630
+ title: z.ZodString;
6631
+ titleSource: z.ZodOptional<z.ZodEnum<{
6632
+ unknown: "unknown";
6633
+ app: "app";
6634
+ "app-remembered": "app-remembered";
6635
+ "custom-title": "custom-title";
6636
+ "ai-title": "ai-title";
6637
+ "agent-name": "agent-name";
6638
+ summary: "summary";
6639
+ "first-prompt": "first-prompt";
6640
+ "last-prompt": "last-prompt";
6641
+ }>>;
6642
+ titlePending: z.ZodOptional<z.ZodBoolean>;
6643
+ archived: z.ZodOptional<z.ZodBoolean>;
6644
+ scheduled: z.ZodOptional<z.ZodBoolean>;
6645
+ unlisted: z.ZodOptional<z.ZodBoolean>;
6646
+ unavailable: z.ZodNullable<z.ZodString>;
6647
+ updatedAt: z.ZodString;
6648
+ source: z.ZodNullable<z.ZodString>;
6649
+ activeElsewhere: z.ZodNullable<z.ZodObject<{
6650
+ reason: z.ZodEnum<{
6651
+ open: "open";
6652
+ process: "process";
6653
+ "recent-write": "recent-write";
6654
+ "open-tool-call": "open-tool-call";
6655
+ }>;
6656
+ message: z.ZodString;
6657
+ pid: z.ZodNullable<z.ZodInt>;
6658
+ }, z.core.$strict>>;
6659
+ }, z.core.$strict>>;
6660
+ }, z.core.$strict>;
6661
+ declare const CodingRunsListParams: z.ZodObject<{
6662
+ session_id: z.ZodString;
6663
+ }, z.core.$strict>;
6664
+ declare const CodingRunsListResult: z.ZodObject<{
6665
+ runs: z.ZodArray<z.ZodObject<{
6666
+ runId: z.ZodString;
6667
+ sessionId: z.ZodString;
6668
+ provider: z.ZodEnum<{
6669
+ claude: "claude";
6670
+ codex: "codex";
6671
+ }>;
6672
+ cwd: z.ZodString;
6673
+ prompt: z.ZodString;
6674
+ model: z.ZodNullable<z.ZodString>;
6675
+ status: z.ZodEnum<{
6676
+ completed: "completed";
6677
+ running: "running";
6678
+ failed: "failed";
6679
+ stopped: "stopped";
6680
+ starting: "starting";
6681
+ }>;
6682
+ startedAt: z.ZodString;
6683
+ endedAt: z.ZodNullable<z.ZodString>;
6684
+ error: z.ZodNullable<z.ZodString>;
6685
+ usage: z.ZodNullable<z.ZodObject<{
6686
+ inputTokens: z.ZodInt;
6687
+ outputTokens: z.ZodInt;
6688
+ cachedInputTokens: z.ZodInt;
6689
+ }, z.core.$strict>>;
6690
+ costUsd: z.ZodNullable<z.ZodNumber>;
6691
+ billing: z.ZodNullable<z.ZodEnum<{
6692
+ unknown: "unknown";
6693
+ subscription: "subscription";
6694
+ api: "api";
6695
+ }>>;
6696
+ startedBy: z.ZodNullable<z.ZodObject<{
6697
+ kind: z.ZodEnum<{
6698
+ web: "web";
6699
+ agent: "agent";
6700
+ other: "other";
6701
+ this_computer: "this_computer";
6702
+ phone: "phone";
6703
+ }>;
6704
+ label: z.ZodString;
6705
+ }, z.core.$strict>>;
6706
+ }, z.core.$strict>>;
6707
+ }, z.core.$strict>;
6708
+ /** A first page defaults to the device's config (256 KB); "Show earlier" asks for more. */
6709
+ declare const CodingHistoryParams: z.ZodObject<{
6710
+ session_id: z.ZodString;
6711
+ max_bytes: z.ZodOptional<z.ZodInt>;
6712
+ }, z.core.$strict>;
6713
+ declare const CodingHistoryResult: z.ZodObject<{
6714
+ items: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
6715
+ kind: z.ZodLiteral<"user">;
6716
+ id: z.ZodString;
6717
+ text: z.ZodString;
6718
+ at: z.ZodNullable<z.ZodString>;
6719
+ }, z.core.$strict>, z.ZodObject<{
6720
+ kind: z.ZodLiteral<"text">;
6721
+ id: z.ZodString;
6722
+ text: z.ZodString;
6723
+ }, z.core.$strict>, z.ZodObject<{
6724
+ kind: z.ZodLiteral<"text-delta">;
6725
+ id: z.ZodString;
6726
+ text: z.ZodString;
6727
+ }, z.core.$strict>, z.ZodObject<{
6728
+ kind: z.ZodLiteral<"reasoning">;
6729
+ id: z.ZodString;
6730
+ text: z.ZodString;
6731
+ }, z.core.$strict>, z.ZodObject<{
6732
+ kind: z.ZodLiteral<"tool-call">;
6733
+ id: z.ZodString;
6734
+ name: z.ZodString;
6735
+ input: z.ZodUnknown;
6736
+ }, z.core.$strict>, z.ZodObject<{
6737
+ kind: z.ZodLiteral<"tool-result">;
6738
+ id: z.ZodString;
6739
+ output: z.ZodString;
6740
+ isError: z.ZodBoolean;
6741
+ fullBytes: z.ZodOptional<z.ZodInt>;
6742
+ }, z.core.$strict>, z.ZodObject<{
6743
+ kind: z.ZodLiteral<"usage">;
6744
+ usage: z.ZodObject<{
6745
+ inputTokens: z.ZodInt;
6746
+ outputTokens: z.ZodInt;
6747
+ cachedInputTokens: z.ZodInt;
6748
+ }, z.core.$strict>;
6749
+ costUsd: z.ZodNullable<z.ZodNumber>;
6750
+ }, z.core.$strict>, z.ZodObject<{
6751
+ kind: z.ZodLiteral<"notice">;
6752
+ id: z.ZodString;
6753
+ level: z.ZodEnum<{
6754
+ warning: "warning";
6755
+ info: "info";
6756
+ }>;
6757
+ text: z.ZodString;
6758
+ }, z.core.$strict>, z.ZodObject<{
6759
+ kind: z.ZodLiteral<"error">;
6760
+ id: z.ZodString;
6761
+ text: z.ZodString;
6762
+ }, z.core.$strict>], "kind">>;
6763
+ truncated: z.ZodBoolean;
6764
+ unavailable: z.ZodNullable<z.ZodString>;
6765
+ seq: z.ZodInt;
6766
+ }, z.core.$strict>;
6767
+ declare const CodingTranscriptReadParams: z.ZodObject<{
6768
+ provider: z.ZodEnum<{
6769
+ claude: "claude";
6770
+ codex: "codex";
6771
+ }>;
6772
+ provider_session_id: z.ZodString;
6773
+ max_bytes: z.ZodOptional<z.ZodInt>;
6774
+ }, z.core.$strict>;
6775
+ declare const CodingTranscriptReadResult: z.ZodObject<{
6776
+ items: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
6777
+ kind: z.ZodLiteral<"user">;
6778
+ id: z.ZodString;
6779
+ text: z.ZodString;
6780
+ at: z.ZodNullable<z.ZodString>;
6781
+ }, z.core.$strict>, z.ZodObject<{
6782
+ kind: z.ZodLiteral<"text">;
6783
+ id: z.ZodString;
6784
+ text: z.ZodString;
6785
+ }, z.core.$strict>, z.ZodObject<{
6786
+ kind: z.ZodLiteral<"text-delta">;
6787
+ id: z.ZodString;
6788
+ text: z.ZodString;
6789
+ }, z.core.$strict>, z.ZodObject<{
6790
+ kind: z.ZodLiteral<"reasoning">;
6791
+ id: z.ZodString;
6792
+ text: z.ZodString;
6793
+ }, z.core.$strict>, z.ZodObject<{
6794
+ kind: z.ZodLiteral<"tool-call">;
6795
+ id: z.ZodString;
6796
+ name: z.ZodString;
6797
+ input: z.ZodUnknown;
6798
+ }, z.core.$strict>, z.ZodObject<{
6799
+ kind: z.ZodLiteral<"tool-result">;
6800
+ id: z.ZodString;
6801
+ output: z.ZodString;
6802
+ isError: z.ZodBoolean;
6803
+ fullBytes: z.ZodOptional<z.ZodInt>;
6804
+ }, z.core.$strict>, z.ZodObject<{
6805
+ kind: z.ZodLiteral<"usage">;
6806
+ usage: z.ZodObject<{
6807
+ inputTokens: z.ZodInt;
6808
+ outputTokens: z.ZodInt;
6809
+ cachedInputTokens: z.ZodInt;
6810
+ }, z.core.$strict>;
6811
+ costUsd: z.ZodNullable<z.ZodNumber>;
6812
+ }, z.core.$strict>, z.ZodObject<{
6813
+ kind: z.ZodLiteral<"notice">;
6814
+ id: z.ZodString;
6815
+ level: z.ZodEnum<{
6816
+ warning: "warning";
6817
+ info: "info";
6818
+ }>;
6819
+ text: z.ZodString;
6820
+ }, z.core.$strict>, z.ZodObject<{
6821
+ kind: z.ZodLiteral<"error">;
6822
+ id: z.ZodString;
6823
+ text: z.ZodString;
6824
+ }, z.core.$strict>], "kind">>;
6825
+ truncated: z.ZodBoolean;
6826
+ unavailable: z.ZodNullable<z.ZodString>;
6827
+ seq: z.ZodInt;
6828
+ }, z.core.$strict>;
6829
+ /** The whole of one tool output the transcript carried only the start of. */
6830
+ declare const CodingItemFullParams: z.ZodObject<{
6831
+ provider: z.ZodEnum<{
6832
+ claude: "claude";
6833
+ codex: "codex";
6834
+ }>;
6835
+ provider_session_id: z.ZodString;
6836
+ item_id: z.ZodString;
6837
+ }, z.core.$strict>;
6838
+ declare const CodingItemFullResult: z.ZodObject<{
6839
+ output: z.ZodString;
6840
+ bytes: z.ZodInt;
6841
+ }, z.core.$strict>;
6842
+ declare const CodingActivityParams: z.ZodObject<{
6843
+ provider: z.ZodEnum<{
6844
+ claude: "claude";
6845
+ codex: "codex";
6846
+ }>;
6847
+ provider_session_id: z.ZodString;
6848
+ }, z.core.$strict>;
6849
+ declare const CodingActivityResult: z.ZodObject<{
6850
+ active: z.ZodNullable<z.ZodObject<{
6851
+ reason: z.ZodEnum<{
6852
+ open: "open";
6853
+ process: "process";
6854
+ "recent-write": "recent-write";
6855
+ "open-tool-call": "open-tool-call";
6856
+ }>;
6857
+ message: z.ZodString;
6858
+ pid: z.ZodNullable<z.ZodInt>;
6859
+ }, z.core.$strict>>;
6860
+ }, z.core.$strict>;
6861
+ declare const CodingFoldersRecentParams: z.ZodObject<{}, z.core.$strict>;
6862
+ declare const CodingFoldersRecentResult: z.ZodObject<{
6863
+ folders: z.ZodArray<z.ZodObject<{
6864
+ path: z.ZodString;
6865
+ lastUsedAt: z.ZodString;
6866
+ exists: z.ZodBoolean;
6867
+ }, z.core.$strict>>;
6868
+ }, z.core.$strict>;
6869
+ declare const CodingFoldersCheckParams: z.ZodObject<{
6870
+ path: z.ZodString;
6871
+ }, z.core.$strict>;
6872
+ declare const CodingFoldersCheckResult: z.ZodObject<{
6873
+ path: z.ZodString;
6874
+ exists: z.ZodBoolean;
6875
+ isDirectory: z.ZodBoolean;
6876
+ }, z.core.$strict>;
6877
+ declare const CodingFoldersCreateParams: z.ZodObject<{
6878
+ path: z.ZodString;
6879
+ }, z.core.$strict>;
6880
+ declare const CodingFoldersCreateResult: z.ZodObject<{
6881
+ path: z.ZodString;
6882
+ exists: z.ZodBoolean;
6883
+ isDirectory: z.ZodBoolean;
6884
+ }, z.core.$strict>;
6885
+ declare const CodingStartResult: z.ZodObject<{
6886
+ session: z.ZodObject<{
6887
+ id: z.ZodString;
6888
+ provider: z.ZodEnum<{
6889
+ claude: "claude";
6890
+ codex: "codex";
6891
+ }>;
6892
+ providerSessionId: z.ZodNullable<z.ZodString>;
6893
+ cwd: z.ZodString;
6894
+ title: z.ZodString;
6895
+ model: z.ZodNullable<z.ZodString>;
6896
+ effort: z.ZodNullable<z.ZodString>;
6897
+ origin: z.ZodEnum<{
6898
+ started: "started";
6899
+ takeover: "takeover";
6900
+ }>;
6901
+ createdAt: z.ZodString;
6902
+ updatedAt: z.ZodString;
6903
+ lastRunId: z.ZodNullable<z.ZodString>;
6904
+ lastRunStatus: z.ZodNullable<z.ZodEnum<{
6905
+ completed: "completed";
6906
+ running: "running";
6907
+ failed: "failed";
6908
+ stopped: "stopped";
6909
+ starting: "starting";
6910
+ }>>;
6911
+ queued: z.ZodArray<z.ZodString>;
6912
+ agent: z.ZodNullable<z.ZodObject<{
6913
+ agentId: z.ZodString;
6914
+ versionId: z.ZodNullable<z.ZodString>;
6915
+ versionNumber: z.ZodNullable<z.ZodInt>;
6916
+ name: z.ZodString;
6917
+ definitionHash: z.ZodString;
6918
+ loaded: z.ZodArray<z.ZodObject<{
6919
+ part: z.ZodEnum<{
6920
+ tools: "tools";
6921
+ instructions: "instructions";
6922
+ skills: "skills";
6923
+ }>;
6924
+ loaded: z.ZodInt;
6925
+ total: z.ZodInt;
6926
+ }, z.core.$strict>>;
6927
+ unavailable: z.ZodArray<z.ZodObject<{
6928
+ kind: z.ZodString;
6929
+ name: z.ZodString;
6930
+ reason: z.ZodString;
6931
+ }, z.core.$strict>>;
6932
+ skills: z.ZodArray<z.ZodString>;
6933
+ tools: z.ZodArray<z.ZodString>;
6934
+ variables: z.ZodRecord<z.ZodString, z.ZodUnknown>;
6935
+ blockDue: z.ZodBoolean;
6936
+ deliveredAt: z.ZodNullable<z.ZodString>;
6937
+ replaces: z.ZodNullable<z.ZodString>;
6938
+ }, z.core.$strict>>;
6939
+ agentRemovedDue: z.ZodBoolean;
6940
+ }, z.core.$strict>;
6941
+ run: z.ZodNullable<z.ZodObject<{
6942
+ runId: z.ZodString;
6943
+ sessionId: z.ZodString;
6944
+ provider: z.ZodEnum<{
6945
+ claude: "claude";
6946
+ codex: "codex";
6947
+ }>;
6948
+ cwd: z.ZodString;
6949
+ prompt: z.ZodString;
6950
+ model: z.ZodNullable<z.ZodString>;
6951
+ status: z.ZodEnum<{
6952
+ completed: "completed";
6953
+ running: "running";
6954
+ failed: "failed";
6955
+ stopped: "stopped";
6956
+ starting: "starting";
6957
+ }>;
6958
+ startedAt: z.ZodString;
6959
+ endedAt: z.ZodNullable<z.ZodString>;
6960
+ error: z.ZodNullable<z.ZodString>;
6961
+ usage: z.ZodNullable<z.ZodObject<{
6962
+ inputTokens: z.ZodInt;
6963
+ outputTokens: z.ZodInt;
6964
+ cachedInputTokens: z.ZodInt;
6965
+ }, z.core.$strict>>;
6966
+ costUsd: z.ZodNullable<z.ZodNumber>;
6967
+ billing: z.ZodNullable<z.ZodEnum<{
6968
+ unknown: "unknown";
6969
+ subscription: "subscription";
6970
+ api: "api";
6971
+ }>>;
6972
+ startedBy: z.ZodNullable<z.ZodObject<{
6973
+ kind: z.ZodEnum<{
6974
+ web: "web";
6975
+ agent: "agent";
6976
+ other: "other";
6977
+ this_computer: "this_computer";
6978
+ phone: "phone";
6979
+ }>;
6980
+ label: z.ZodString;
6981
+ }, z.core.$strict>>;
6982
+ }, z.core.$strict>>;
6983
+ queued: z.ZodBoolean;
6984
+ }, z.core.$strict>;
6985
+ declare const CodingTakeoverResult: z.ZodObject<{
6986
+ session: z.ZodObject<{
6987
+ id: z.ZodString;
6988
+ provider: z.ZodEnum<{
6989
+ claude: "claude";
6990
+ codex: "codex";
6991
+ }>;
6992
+ providerSessionId: z.ZodNullable<z.ZodString>;
6993
+ cwd: z.ZodString;
6994
+ title: z.ZodString;
6995
+ model: z.ZodNullable<z.ZodString>;
6996
+ effort: z.ZodNullable<z.ZodString>;
6997
+ origin: z.ZodEnum<{
6998
+ started: "started";
6999
+ takeover: "takeover";
7000
+ }>;
7001
+ createdAt: z.ZodString;
7002
+ updatedAt: z.ZodString;
7003
+ lastRunId: z.ZodNullable<z.ZodString>;
7004
+ lastRunStatus: z.ZodNullable<z.ZodEnum<{
7005
+ completed: "completed";
7006
+ running: "running";
7007
+ failed: "failed";
7008
+ stopped: "stopped";
7009
+ starting: "starting";
7010
+ }>>;
7011
+ queued: z.ZodArray<z.ZodString>;
7012
+ agent: z.ZodNullable<z.ZodObject<{
7013
+ agentId: z.ZodString;
7014
+ versionId: z.ZodNullable<z.ZodString>;
7015
+ versionNumber: z.ZodNullable<z.ZodInt>;
7016
+ name: z.ZodString;
7017
+ definitionHash: z.ZodString;
7018
+ loaded: z.ZodArray<z.ZodObject<{
7019
+ part: z.ZodEnum<{
7020
+ tools: "tools";
7021
+ instructions: "instructions";
7022
+ skills: "skills";
7023
+ }>;
7024
+ loaded: z.ZodInt;
7025
+ total: z.ZodInt;
7026
+ }, z.core.$strict>>;
7027
+ unavailable: z.ZodArray<z.ZodObject<{
7028
+ kind: z.ZodString;
7029
+ name: z.ZodString;
7030
+ reason: z.ZodString;
7031
+ }, z.core.$strict>>;
7032
+ skills: z.ZodArray<z.ZodString>;
7033
+ tools: z.ZodArray<z.ZodString>;
7034
+ variables: z.ZodRecord<z.ZodString, z.ZodUnknown>;
7035
+ blockDue: z.ZodBoolean;
7036
+ deliveredAt: z.ZodNullable<z.ZodString>;
7037
+ replaces: z.ZodNullable<z.ZodString>;
7038
+ }, z.core.$strict>>;
7039
+ agentRemovedDue: z.ZodBoolean;
7040
+ }, z.core.$strict>;
7041
+ }, z.core.$strict>;
7042
+ declare const CodingSendParams: z.ZodObject<{
7043
+ session_id: z.ZodString;
7044
+ prompt: z.ZodString;
7045
+ client_request_id: z.ZodString;
7046
+ }, z.core.$strict>;
7047
+ declare const CodingStopParams: z.ZodObject<{
7048
+ run_id: z.ZodString;
7049
+ }, z.core.$strict>;
7050
+ declare const CodingStopResult: z.ZodObject<{
7051
+ run: z.ZodNullable<z.ZodObject<{
7052
+ runId: z.ZodString;
7053
+ sessionId: z.ZodString;
7054
+ provider: z.ZodEnum<{
7055
+ claude: "claude";
7056
+ codex: "codex";
7057
+ }>;
7058
+ cwd: z.ZodString;
7059
+ prompt: z.ZodString;
7060
+ model: z.ZodNullable<z.ZodString>;
7061
+ status: z.ZodEnum<{
7062
+ completed: "completed";
7063
+ running: "running";
7064
+ failed: "failed";
7065
+ stopped: "stopped";
7066
+ starting: "starting";
7067
+ }>;
7068
+ startedAt: z.ZodString;
7069
+ endedAt: z.ZodNullable<z.ZodString>;
7070
+ error: z.ZodNullable<z.ZodString>;
7071
+ usage: z.ZodNullable<z.ZodObject<{
7072
+ inputTokens: z.ZodInt;
7073
+ outputTokens: z.ZodInt;
7074
+ cachedInputTokens: z.ZodInt;
7075
+ }, z.core.$strict>>;
7076
+ costUsd: z.ZodNullable<z.ZodNumber>;
7077
+ billing: z.ZodNullable<z.ZodEnum<{
7078
+ unknown: "unknown";
7079
+ subscription: "subscription";
7080
+ api: "api";
7081
+ }>>;
7082
+ startedBy: z.ZodNullable<z.ZodObject<{
7083
+ kind: z.ZodEnum<{
7084
+ web: "web";
7085
+ agent: "agent";
7086
+ other: "other";
7087
+ this_computer: "this_computer";
7088
+ phone: "phone";
7089
+ }>;
7090
+ label: z.ZodString;
7091
+ }, z.core.$strict>>;
7092
+ }, z.core.$strict>>;
7093
+ }, z.core.$strict>;
7094
+ /**
7095
+ * Stop a chat running in another app: the process is re-read at stop time and refused with a
7096
+ * sentence when it is gone or is now something else (a reused pid).
7097
+ */
7098
+ declare const CodingStopElsewhereParams: z.ZodObject<{
7099
+ provider: z.ZodEnum<{
7100
+ claude: "claude";
7101
+ codex: "codex";
7102
+ }>;
7103
+ provider_session_id: z.ZodString;
7104
+ pid: z.ZodInt;
7105
+ }, z.core.$strict>;
7106
+ declare const CodingStopElsewhereResult: z.ZodObject<{
7107
+ stopped: z.ZodBoolean;
7108
+ message: z.ZodString;
7109
+ }, z.core.$strict>;
7110
+ /** The next run's model or effort; "" = the provider's own default. */
7111
+ declare const CodingOptionsSetParams: z.ZodObject<{
7112
+ session_id: z.ZodString;
7113
+ model: z.ZodOptional<z.ZodString>;
7114
+ effort: z.ZodOptional<z.ZodString>;
7115
+ }, z.core.$strict>;
7116
+ declare const CodingOptionsSetResult: z.ZodObject<{
7117
+ session: z.ZodObject<{
7118
+ id: z.ZodString;
7119
+ provider: z.ZodEnum<{
7120
+ claude: "claude";
7121
+ codex: "codex";
7122
+ }>;
7123
+ providerSessionId: z.ZodNullable<z.ZodString>;
7124
+ cwd: z.ZodString;
7125
+ title: z.ZodString;
7126
+ model: z.ZodNullable<z.ZodString>;
7127
+ effort: z.ZodNullable<z.ZodString>;
7128
+ origin: z.ZodEnum<{
7129
+ started: "started";
7130
+ takeover: "takeover";
7131
+ }>;
7132
+ createdAt: z.ZodString;
7133
+ updatedAt: z.ZodString;
7134
+ lastRunId: z.ZodNullable<z.ZodString>;
7135
+ lastRunStatus: z.ZodNullable<z.ZodEnum<{
7136
+ completed: "completed";
7137
+ running: "running";
7138
+ failed: "failed";
7139
+ stopped: "stopped";
7140
+ starting: "starting";
7141
+ }>>;
7142
+ queued: z.ZodArray<z.ZodString>;
7143
+ agent: z.ZodNullable<z.ZodObject<{
7144
+ agentId: z.ZodString;
7145
+ versionId: z.ZodNullable<z.ZodString>;
7146
+ versionNumber: z.ZodNullable<z.ZodInt>;
7147
+ name: z.ZodString;
7148
+ definitionHash: z.ZodString;
7149
+ loaded: z.ZodArray<z.ZodObject<{
7150
+ part: z.ZodEnum<{
7151
+ tools: "tools";
7152
+ instructions: "instructions";
7153
+ skills: "skills";
7154
+ }>;
7155
+ loaded: z.ZodInt;
7156
+ total: z.ZodInt;
7157
+ }, z.core.$strict>>;
7158
+ unavailable: z.ZodArray<z.ZodObject<{
7159
+ kind: z.ZodString;
7160
+ name: z.ZodString;
7161
+ reason: z.ZodString;
7162
+ }, z.core.$strict>>;
7163
+ skills: z.ZodArray<z.ZodString>;
7164
+ tools: z.ZodArray<z.ZodString>;
7165
+ variables: z.ZodRecord<z.ZodString, z.ZodUnknown>;
7166
+ blockDue: z.ZodBoolean;
7167
+ deliveredAt: z.ZodNullable<z.ZodString>;
7168
+ replaces: z.ZodNullable<z.ZodString>;
7169
+ }, z.core.$strict>>;
7170
+ agentRemovedDue: z.ZodBoolean;
7171
+ }, z.core.$strict>;
7172
+ }, z.core.$strict>;
7173
+ /** Load a different agent from the next message on; absent `agent` removes it. */
7174
+ declare const CodingAgentSetParams: z.ZodObject<{
7175
+ session_id: z.ZodString;
7176
+ agent: z.ZodOptional<z.ZodObject<{
7177
+ agent_id: z.ZodString;
7178
+ version_id: z.ZodOptional<z.ZodString>;
7179
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
7180
+ }, z.core.$strict>>;
7181
+ }, z.core.$strict>;
7182
+ declare const CodingAgentSetResult: z.ZodObject<{
7183
+ session: z.ZodObject<{
7184
+ id: z.ZodString;
7185
+ provider: z.ZodEnum<{
7186
+ claude: "claude";
7187
+ codex: "codex";
7188
+ }>;
7189
+ providerSessionId: z.ZodNullable<z.ZodString>;
7190
+ cwd: z.ZodString;
7191
+ title: z.ZodString;
7192
+ model: z.ZodNullable<z.ZodString>;
7193
+ effort: z.ZodNullable<z.ZodString>;
7194
+ origin: z.ZodEnum<{
7195
+ started: "started";
7196
+ takeover: "takeover";
7197
+ }>;
7198
+ createdAt: z.ZodString;
7199
+ updatedAt: z.ZodString;
7200
+ lastRunId: z.ZodNullable<z.ZodString>;
7201
+ lastRunStatus: z.ZodNullable<z.ZodEnum<{
7202
+ completed: "completed";
7203
+ running: "running";
7204
+ failed: "failed";
7205
+ stopped: "stopped";
7206
+ starting: "starting";
7207
+ }>>;
7208
+ queued: z.ZodArray<z.ZodString>;
7209
+ agent: z.ZodNullable<z.ZodObject<{
7210
+ agentId: z.ZodString;
7211
+ versionId: z.ZodNullable<z.ZodString>;
7212
+ versionNumber: z.ZodNullable<z.ZodInt>;
7213
+ name: z.ZodString;
7214
+ definitionHash: z.ZodString;
7215
+ loaded: z.ZodArray<z.ZodObject<{
7216
+ part: z.ZodEnum<{
7217
+ tools: "tools";
7218
+ instructions: "instructions";
7219
+ skills: "skills";
7220
+ }>;
7221
+ loaded: z.ZodInt;
7222
+ total: z.ZodInt;
7223
+ }, z.core.$strict>>;
7224
+ unavailable: z.ZodArray<z.ZodObject<{
7225
+ kind: z.ZodString;
7226
+ name: z.ZodString;
7227
+ reason: z.ZodString;
7228
+ }, z.core.$strict>>;
7229
+ skills: z.ZodArray<z.ZodString>;
7230
+ tools: z.ZodArray<z.ZodString>;
7231
+ variables: z.ZodRecord<z.ZodString, z.ZodUnknown>;
7232
+ blockDue: z.ZodBoolean;
7233
+ deliveredAt: z.ZodNullable<z.ZodString>;
7234
+ replaces: z.ZodNullable<z.ZodString>;
7235
+ }, z.core.$strict>>;
7236
+ agentRemovedDue: z.ZodBoolean;
7237
+ }, z.core.$strict>;
7238
+ }, z.core.$strict>;
7239
+ /** Whether this computer is signed in to AI Matrx, so an agent can load into a session. */
7240
+ declare const CodingAgentsAccessParams: z.ZodObject<{}, z.core.$strict>;
7241
+ declare const CodingAgentsAccessResult: z.ZodObject<{
7242
+ signedIn: z.ZodBoolean;
7243
+ userId: z.ZodNullable<z.ZodString>;
7244
+ organizationId: z.ZodNullable<z.ZodString>;
7245
+ configured: z.ZodBoolean;
7246
+ }, z.core.$strict>;
7247
+ declare const CodingTitlesStatusParams: z.ZodObject<{}, z.core.$strict>;
7248
+ declare const CodingTitlesStatusResult: z.ZodObject<{
7249
+ owner: z.ZodBoolean;
7250
+ pending: z.ZodBoolean;
7251
+ problem: z.ZodNullable<z.ZodString>;
7252
+ renames: z.ZodNullable<z.ZodString>;
7253
+ }, z.core.$strict>;
7254
+ declare const CodingPrefsListParams: z.ZodObject<{}, z.core.$strict>;
7255
+ declare const CodingPrefsListResult: z.ZodObject<{
7256
+ preferences: z.ZodRecord<z.ZodString, z.ZodObject<{
7257
+ title: z.ZodNullable<z.ZodString>;
7258
+ pinned: z.ZodBoolean;
7259
+ hidden: z.ZodBoolean;
7260
+ lastSeenAt: z.ZodNullable<z.ZodString>;
7261
+ updatedAt: z.ZodNullable<z.ZodString>;
7262
+ }, z.core.$strict>>;
7263
+ }, z.core.$strict>;
7264
+ /** Rename (`title`; `clear_title` restores the chat's own), pin, hide. */
7265
+ declare const CodingPrefsSetParams: z.ZodObject<{
7266
+ key: z.ZodString;
7267
+ title: z.ZodOptional<z.ZodString>;
7268
+ clear_title: z.ZodOptional<z.ZodBoolean>;
7269
+ pinned: z.ZodOptional<z.ZodBoolean>;
7270
+ hidden: z.ZodOptional<z.ZodBoolean>;
7271
+ }, z.core.$strict>;
7272
+ declare const CodingPrefsSetResult: z.ZodObject<{
7273
+ preferences: z.ZodRecord<z.ZodString, z.ZodObject<{
7274
+ title: z.ZodNullable<z.ZodString>;
7275
+ pinned: z.ZodBoolean;
7276
+ hidden: z.ZodBoolean;
7277
+ lastSeenAt: z.ZodNullable<z.ZodString>;
7278
+ updatedAt: z.ZodNullable<z.ZodString>;
7279
+ }, z.core.$strict>>;
7280
+ }, z.core.$strict>;
7281
+ /** The person opened this chat (on any screen): its "New output" dot clears everywhere. */
7282
+ declare const CodingRecentSeenParams: z.ZodObject<{
7283
+ target: z.ZodString;
7284
+ }, z.core.$strict>;
7285
+ declare const CodingRecentSeenResult: z.ZodObject<{
7286
+ recent: z.ZodArray<z.ZodObject<{
7287
+ target: z.ZodString;
7288
+ title: z.ZodString;
7289
+ provider: z.ZodEnum<{
7290
+ claude: "claude";
7291
+ codex: "codex";
7292
+ }>;
7293
+ sessionId: z.ZodNullable<z.ZodString>;
7294
+ providerSessionId: z.ZodNullable<z.ZodString>;
7295
+ cwd: z.ZodNullable<z.ZodString>;
7296
+ updatedAt: z.ZodString;
7297
+ state: z.ZodEnum<{
7298
+ running: "running";
7299
+ idle: "idle";
7300
+ needs_attention: "needs_attention";
7301
+ new_output: "new_output";
7302
+ elsewhere: "elsewhere";
7303
+ }>;
7304
+ stateLabel: z.ZodNullable<z.ZodString>;
7305
+ pinned: z.ZodBoolean;
7306
+ startedBy: z.ZodNullable<z.ZodObject<{
7307
+ kind: z.ZodEnum<{
7308
+ web: "web";
7309
+ agent: "agent";
7310
+ other: "other";
7311
+ this_computer: "this_computer";
7312
+ phone: "phone";
7313
+ }>;
7314
+ label: z.ZodString;
7315
+ }, z.core.$strict>>;
7316
+ }, z.core.$strict>>;
7317
+ }, z.core.$strict>;
7318
+ declare const CodingSearchParams: z.ZodObject<{
7319
+ query: z.ZodString;
7320
+ cursor: z.ZodOptional<z.ZodInt>;
7321
+ limit: z.ZodOptional<z.ZodInt>;
7322
+ }, z.core.$strict>;
7323
+ /**
7324
+ * "Ask the desktop app to reconcile this conversation" (the web's sync panel): deliver this one
7325
+ * chat's missing entries to AI Matrx through the shared importer. Progress arrives as
7326
+ * coding.history.progress for this request.
7327
+ */
7328
+ declare const CodingReconcileParams: z.ZodObject<{
7329
+ provider: z.ZodEnum<{
7330
+ claude: "claude";
7331
+ codex: "codex";
7332
+ }>;
7333
+ provider_session_id: z.ZodString;
7334
+ }, z.core.$strict>;
7335
+ /**
7336
+ * FULL DOWNLOAD over any transport: the provider's own complete transcript file, byte for byte,
7337
+ * on the op's stream. It also refreshes the person's opt-in cloud backup and counts the chat's
7338
+ * subagent transcripts. `available: false` says why (the stream then carries nothing).
7339
+ */
7340
+ declare const CodingTranscriptRawParams: z.ZodObject<{
7341
+ provider: z.ZodEnum<{
7342
+ claude: "claude";
7343
+ codex: "codex";
7344
+ }>;
7345
+ provider_session_id: z.ZodString;
7346
+ }, z.core.$strict>;
7347
+ /** Live changes to the sessions, runs, preferences, titles and recent rows (coding.changed). */
7348
+ declare const CodingWatchParams: z.ZodObject<{}, z.core.$strict>;
7349
+ declare const CodingWatchResult: z.ZodObject<{
7350
+ resource_id: z.ZodString;
7351
+ }, z.core.$strict>;
7352
+ /**
7353
+ * One chat's live items (coding.item), replayed from `since_seq` when it is still in the device's
7354
+ * ring; older than the ring → coding.gap first, and the client reads history again.
7355
+ */
7356
+ declare const CodingSessionWatchParams: z.ZodObject<{
7357
+ session_id: z.ZodString;
7358
+ since_seq: z.ZodOptional<z.ZodInt>;
7359
+ }, z.core.$strict>;
7360
+ declare const CodingSessionWatchResult: z.ZodObject<{
7361
+ resource_id: z.ZodString;
7362
+ seq: z.ZodInt;
7363
+ }, z.core.$strict>;
7364
+ /**
7365
+ * Sent once after hello by a client that knows the core is 1.38+ (an older core answers
7366
+ * UNKNOWN_OPERATION; a new hello field would have made every older core refuse the hello).
7367
+ */
7368
+ declare const SessionIdentifyParams: z.ZodObject<{
7369
+ label: z.ZodString;
7370
+ }, z.core.$strict>;
7371
+ declare const SessionIdentifyResult: z.ZodObject<{
7372
+ label: z.ZodString;
7373
+ }, z.core.$strict>;
7374
+ declare const CodingProviderName: z.ZodEnum<{
7375
+ claude: "claude";
7376
+ codex: "codex";
7377
+ }>;
7378
+ type CodingProviderName = z.output<typeof CodingProviderName>;
7379
+ declare const CodingRunStatus: z.ZodEnum<{
7380
+ completed: "completed";
7381
+ running: "running";
7382
+ failed: "failed";
7383
+ stopped: "stopped";
7384
+ starting: "starting";
7385
+ }>;
7386
+ type CodingRunStatus = z.output<typeof CodingRunStatus>;
7387
+ declare const CodingRunUsage: z.ZodObject<{
7388
+ inputTokens: z.ZodInt;
7389
+ outputTokens: z.ZodInt;
7390
+ cachedInputTokens: z.ZodInt;
7391
+ }, z.core.$strict>;
7392
+ type CodingRunUsage = z.output<typeof CodingRunUsage>;
7393
+ /**
7394
+ * Who started a run, stamped by the core from the connection (never from call arguments):
7395
+ * "This Mac", "iPhone", "Safari on Mac", "An agent".
7396
+ */
7397
+ declare const CodingStartedBy: z.ZodObject<{
7398
+ kind: z.ZodEnum<{
7399
+ web: "web";
7400
+ agent: "agent";
7401
+ other: "other";
7402
+ this_computer: "this_computer";
7403
+ phone: "phone";
7404
+ }>;
7405
+ label: z.ZodString;
7406
+ }, z.core.$strict>;
7407
+ type CodingStartedBy = z.output<typeof CodingStartedBy>;
7408
+ declare const CodingRunRecord: z.ZodObject<{
7409
+ runId: z.ZodString;
7410
+ sessionId: z.ZodString;
7411
+ provider: z.ZodEnum<{
7412
+ claude: "claude";
7413
+ codex: "codex";
7414
+ }>;
7415
+ cwd: z.ZodString;
7416
+ prompt: z.ZodString;
7417
+ model: z.ZodNullable<z.ZodString>;
7418
+ status: z.ZodEnum<{
7419
+ completed: "completed";
7420
+ running: "running";
7421
+ failed: "failed";
7422
+ stopped: "stopped";
7423
+ starting: "starting";
7424
+ }>;
7425
+ startedAt: z.ZodString;
7426
+ endedAt: z.ZodNullable<z.ZodString>;
7427
+ error: z.ZodNullable<z.ZodString>;
7428
+ usage: z.ZodNullable<z.ZodObject<{
7429
+ inputTokens: z.ZodInt;
7430
+ outputTokens: z.ZodInt;
7431
+ cachedInputTokens: z.ZodInt;
7432
+ }, z.core.$strict>>;
7433
+ costUsd: z.ZodNullable<z.ZodNumber>;
7434
+ billing: z.ZodNullable<z.ZodEnum<{
7435
+ unknown: "unknown";
7436
+ subscription: "subscription";
7437
+ api: "api";
7438
+ }>>;
7439
+ startedBy: z.ZodNullable<z.ZodObject<{
7440
+ kind: z.ZodEnum<{
7441
+ web: "web";
7442
+ agent: "agent";
7443
+ other: "other";
7444
+ this_computer: "this_computer";
7445
+ phone: "phone";
7446
+ }>;
7447
+ label: z.ZodString;
7448
+ }, z.core.$strict>>;
7449
+ }, z.core.$strict>;
7450
+ type CodingRunRecord = z.output<typeof CodingRunRecord>;
7451
+ declare const CodingSessionAgent: z.ZodObject<{
7452
+ agentId: z.ZodString;
7453
+ versionId: z.ZodNullable<z.ZodString>;
7454
+ versionNumber: z.ZodNullable<z.ZodInt>;
7455
+ name: z.ZodString;
7456
+ definitionHash: z.ZodString;
7457
+ loaded: z.ZodArray<z.ZodObject<{
7458
+ part: z.ZodEnum<{
7459
+ tools: "tools";
7460
+ instructions: "instructions";
7461
+ skills: "skills";
7462
+ }>;
7463
+ loaded: z.ZodInt;
7464
+ total: z.ZodInt;
7465
+ }, z.core.$strict>>;
7466
+ unavailable: z.ZodArray<z.ZodObject<{
7467
+ kind: z.ZodString;
7468
+ name: z.ZodString;
7469
+ reason: z.ZodString;
7470
+ }, z.core.$strict>>;
7471
+ skills: z.ZodArray<z.ZodString>;
7472
+ tools: z.ZodArray<z.ZodString>;
7473
+ variables: z.ZodRecord<z.ZodString, z.ZodUnknown>;
7474
+ blockDue: z.ZodBoolean;
7475
+ deliveredAt: z.ZodNullable<z.ZodString>;
7476
+ replaces: z.ZodNullable<z.ZodString>;
7477
+ }, z.core.$strict>;
7478
+ type CodingSessionAgent = z.output<typeof CodingSessionAgent>;
7479
+ declare const CodingSessionRecord: z.ZodObject<{
7480
+ id: z.ZodString;
7481
+ provider: z.ZodEnum<{
7482
+ claude: "claude";
7483
+ codex: "codex";
7484
+ }>;
7485
+ providerSessionId: z.ZodNullable<z.ZodString>;
7486
+ cwd: z.ZodString;
7487
+ title: z.ZodString;
7488
+ model: z.ZodNullable<z.ZodString>;
7489
+ effort: z.ZodNullable<z.ZodString>;
7490
+ origin: z.ZodEnum<{
7491
+ started: "started";
7492
+ takeover: "takeover";
7493
+ }>;
7494
+ createdAt: z.ZodString;
7495
+ updatedAt: z.ZodString;
7496
+ lastRunId: z.ZodNullable<z.ZodString>;
7497
+ lastRunStatus: z.ZodNullable<z.ZodEnum<{
7498
+ completed: "completed";
7499
+ running: "running";
7500
+ failed: "failed";
7501
+ stopped: "stopped";
7502
+ starting: "starting";
7503
+ }>>;
7504
+ queued: z.ZodArray<z.ZodString>;
7505
+ agent: z.ZodNullable<z.ZodObject<{
7506
+ agentId: z.ZodString;
7507
+ versionId: z.ZodNullable<z.ZodString>;
7508
+ versionNumber: z.ZodNullable<z.ZodInt>;
7509
+ name: z.ZodString;
7510
+ definitionHash: z.ZodString;
7511
+ loaded: z.ZodArray<z.ZodObject<{
7512
+ part: z.ZodEnum<{
7513
+ tools: "tools";
7514
+ instructions: "instructions";
7515
+ skills: "skills";
7516
+ }>;
7517
+ loaded: z.ZodInt;
7518
+ total: z.ZodInt;
7519
+ }, z.core.$strict>>;
7520
+ unavailable: z.ZodArray<z.ZodObject<{
7521
+ kind: z.ZodString;
7522
+ name: z.ZodString;
7523
+ reason: z.ZodString;
7524
+ }, z.core.$strict>>;
7525
+ skills: z.ZodArray<z.ZodString>;
7526
+ tools: z.ZodArray<z.ZodString>;
7527
+ variables: z.ZodRecord<z.ZodString, z.ZodUnknown>;
7528
+ blockDue: z.ZodBoolean;
7529
+ deliveredAt: z.ZodNullable<z.ZodString>;
7530
+ replaces: z.ZodNullable<z.ZodString>;
7531
+ }, z.core.$strict>>;
7532
+ agentRemovedDue: z.ZodBoolean;
7533
+ }, z.core.$strict>;
7534
+ type CodingSessionRecord = z.output<typeof CodingSessionRecord>;
7535
+ declare const CodingActiveElsewhere: z.ZodObject<{
7536
+ reason: z.ZodEnum<{
7537
+ open: "open";
7538
+ process: "process";
7539
+ "recent-write": "recent-write";
7540
+ "open-tool-call": "open-tool-call";
7541
+ }>;
7542
+ message: z.ZodString;
7543
+ pid: z.ZodNullable<z.ZodInt>;
7544
+ }, z.core.$strict>;
7545
+ type CodingActiveElsewhere = z.output<typeof CodingActiveElsewhere>;
7546
+ declare const CodingDiscoveredChat: z.ZodObject<{
7547
+ provider: z.ZodEnum<{
7548
+ claude: "claude";
7549
+ codex: "codex";
7550
+ }>;
7551
+ providerSessionId: z.ZodString;
7552
+ cwd: z.ZodNullable<z.ZodString>;
7553
+ title: z.ZodString;
7554
+ titleSource: z.ZodOptional<z.ZodEnum<{
7555
+ unknown: "unknown";
7556
+ app: "app";
7557
+ "app-remembered": "app-remembered";
7558
+ "custom-title": "custom-title";
7559
+ "ai-title": "ai-title";
7560
+ "agent-name": "agent-name";
7561
+ summary: "summary";
7562
+ "first-prompt": "first-prompt";
7563
+ "last-prompt": "last-prompt";
7564
+ }>>;
7565
+ titlePending: z.ZodOptional<z.ZodBoolean>;
7566
+ archived: z.ZodOptional<z.ZodBoolean>;
7567
+ scheduled: z.ZodOptional<z.ZodBoolean>;
7568
+ unlisted: z.ZodOptional<z.ZodBoolean>;
7569
+ unavailable: z.ZodNullable<z.ZodString>;
7570
+ updatedAt: z.ZodString;
7571
+ source: z.ZodNullable<z.ZodString>;
7572
+ activeElsewhere: z.ZodNullable<z.ZodObject<{
7573
+ reason: z.ZodEnum<{
7574
+ open: "open";
7575
+ process: "process";
7576
+ "recent-write": "recent-write";
7577
+ "open-tool-call": "open-tool-call";
7578
+ }>;
7579
+ message: z.ZodString;
7580
+ pid: z.ZodNullable<z.ZodInt>;
7581
+ }, z.core.$strict>>;
7582
+ }, z.core.$strict>;
7583
+ type CodingDiscoveredChat = z.output<typeof CodingDiscoveredChat>;
7584
+ declare const CodingTranscriptItem: z.ZodDiscriminatedUnion<[z.ZodObject<{
7585
+ kind: z.ZodLiteral<"user">;
7586
+ id: z.ZodString;
7587
+ text: z.ZodString;
7588
+ at: z.ZodNullable<z.ZodString>;
7589
+ }, z.core.$strict>, z.ZodObject<{
7590
+ kind: z.ZodLiteral<"text">;
7591
+ id: z.ZodString;
7592
+ text: z.ZodString;
7593
+ }, z.core.$strict>, z.ZodObject<{
7594
+ kind: z.ZodLiteral<"text-delta">;
7595
+ id: z.ZodString;
7596
+ text: z.ZodString;
7597
+ }, z.core.$strict>, z.ZodObject<{
7598
+ kind: z.ZodLiteral<"reasoning">;
7599
+ id: z.ZodString;
7600
+ text: z.ZodString;
7601
+ }, z.core.$strict>, z.ZodObject<{
7602
+ kind: z.ZodLiteral<"tool-call">;
7603
+ id: z.ZodString;
7604
+ name: z.ZodString;
7605
+ input: z.ZodUnknown;
7606
+ }, z.core.$strict>, z.ZodObject<{
7607
+ kind: z.ZodLiteral<"tool-result">;
7608
+ id: z.ZodString;
7609
+ output: z.ZodString;
7610
+ isError: z.ZodBoolean;
7611
+ fullBytes: z.ZodOptional<z.ZodInt>;
7612
+ }, z.core.$strict>, z.ZodObject<{
7613
+ kind: z.ZodLiteral<"usage">;
7614
+ usage: z.ZodObject<{
7615
+ inputTokens: z.ZodInt;
7616
+ outputTokens: z.ZodInt;
7617
+ cachedInputTokens: z.ZodInt;
7618
+ }, z.core.$strict>;
7619
+ costUsd: z.ZodNullable<z.ZodNumber>;
7620
+ }, z.core.$strict>, z.ZodObject<{
7621
+ kind: z.ZodLiteral<"notice">;
7622
+ id: z.ZodString;
7623
+ level: z.ZodEnum<{
7624
+ warning: "warning";
7625
+ info: "info";
7626
+ }>;
7627
+ text: z.ZodString;
7628
+ }, z.core.$strict>, z.ZodObject<{
7629
+ kind: z.ZodLiteral<"error">;
7630
+ id: z.ZodString;
7631
+ text: z.ZodString;
7632
+ }, z.core.$strict>], "kind">;
7633
+ type CodingTranscriptItem = z.output<typeof CodingTranscriptItem>;
7634
+ declare const CodingHistoryRecord: z.ZodObject<{
7635
+ items: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
7636
+ kind: z.ZodLiteral<"user">;
7637
+ id: z.ZodString;
7638
+ text: z.ZodString;
7639
+ at: z.ZodNullable<z.ZodString>;
7640
+ }, z.core.$strict>, z.ZodObject<{
7641
+ kind: z.ZodLiteral<"text">;
7642
+ id: z.ZodString;
7643
+ text: z.ZodString;
7644
+ }, z.core.$strict>, z.ZodObject<{
7645
+ kind: z.ZodLiteral<"text-delta">;
7646
+ id: z.ZodString;
7647
+ text: z.ZodString;
7648
+ }, z.core.$strict>, z.ZodObject<{
7649
+ kind: z.ZodLiteral<"reasoning">;
7650
+ id: z.ZodString;
7651
+ text: z.ZodString;
7652
+ }, z.core.$strict>, z.ZodObject<{
7653
+ kind: z.ZodLiteral<"tool-call">;
7654
+ id: z.ZodString;
7655
+ name: z.ZodString;
7656
+ input: z.ZodUnknown;
7657
+ }, z.core.$strict>, z.ZodObject<{
7658
+ kind: z.ZodLiteral<"tool-result">;
7659
+ id: z.ZodString;
7660
+ output: z.ZodString;
7661
+ isError: z.ZodBoolean;
7662
+ fullBytes: z.ZodOptional<z.ZodInt>;
7663
+ }, z.core.$strict>, z.ZodObject<{
7664
+ kind: z.ZodLiteral<"usage">;
7665
+ usage: z.ZodObject<{
7666
+ inputTokens: z.ZodInt;
7667
+ outputTokens: z.ZodInt;
7668
+ cachedInputTokens: z.ZodInt;
7669
+ }, z.core.$strict>;
7670
+ costUsd: z.ZodNullable<z.ZodNumber>;
7671
+ }, z.core.$strict>, z.ZodObject<{
7672
+ kind: z.ZodLiteral<"notice">;
7673
+ id: z.ZodString;
7674
+ level: z.ZodEnum<{
7675
+ warning: "warning";
7676
+ info: "info";
7677
+ }>;
7678
+ text: z.ZodString;
7679
+ }, z.core.$strict>, z.ZodObject<{
7680
+ kind: z.ZodLiteral<"error">;
7681
+ id: z.ZodString;
7682
+ text: z.ZodString;
7683
+ }, z.core.$strict>], "kind">>;
7684
+ truncated: z.ZodBoolean;
7685
+ unavailable: z.ZodNullable<z.ZodString>;
7686
+ seq: z.ZodInt;
7687
+ }, z.core.$strict>;
7688
+ type CodingHistoryRecord = z.output<typeof CodingHistoryRecord>;
7689
+ declare const CodingProviderStatus: z.ZodObject<{
7690
+ provider: z.ZodEnum<{
7691
+ claude: "claude";
7692
+ codex: "codex";
7693
+ }>;
7694
+ label: z.ZodString;
7695
+ installed: z.ZodBoolean;
7696
+ version: z.ZodNullable<z.ZodString>;
7697
+ loggedIn: z.ZodBoolean;
7698
+ billing: z.ZodEnum<{
7699
+ unknown: "unknown";
7700
+ subscription: "subscription";
7701
+ api: "api";
7702
+ }>;
7703
+ plan: z.ZodNullable<z.ZodString>;
7704
+ account: z.ZodNullable<z.ZodString>;
7705
+ problem: z.ZodNullable<z.ZodString>;
7706
+ fix: z.ZodNullable<z.ZodString>;
7707
+ ready: z.ZodBoolean;
7708
+ lastProblem: z.ZodNullable<z.ZodObject<{
7709
+ kind: z.ZodEnum<{
7710
+ "usage-limit": "usage-limit";
7711
+ "signed-out": "signed-out";
7712
+ }>;
7713
+ message: z.ZodString;
7714
+ until: z.ZodNullable<z.ZodString>;
7715
+ at: z.ZodString;
7716
+ }, z.core.$strict>>;
7717
+ quota: z.ZodArray<z.ZodObject<{
7718
+ label: z.ZodString;
7719
+ usedPercent: z.ZodNullable<z.ZodNumber>;
7720
+ resetsAt: z.ZodNullable<z.ZodString>;
7721
+ valueLabel: z.ZodNullable<z.ZodString>;
7722
+ }, z.core.$strict>>;
7723
+ models: z.ZodArray<z.ZodObject<{
7724
+ id: z.ZodString;
7725
+ label: z.ZodString;
7726
+ }, z.core.$strict>>;
7727
+ efforts: z.ZodArray<z.ZodString>;
7728
+ defaultModel: z.ZodNullable<z.ZodObject<{
7729
+ id: z.ZodString;
7730
+ source: z.ZodEnum<{
7731
+ settings: "settings";
7732
+ driver: "driver";
7733
+ }>;
7734
+ }, z.core.$strict>>;
7735
+ defaultEffort: z.ZodNullable<z.ZodString>;
7736
+ binary: z.ZodNullable<z.ZodObject<{
7737
+ path: z.ZodString;
7738
+ version: z.ZodNullable<z.ZodString>;
7739
+ source: z.ZodEnum<{
7740
+ path: "path";
7741
+ "desktop-app": "desktop-app";
7742
+ "npm-global": "npm-global";
7743
+ configured: "configured";
7744
+ }>;
7745
+ sourceLabel: z.ZodString;
7746
+ newer: z.ZodNullable<z.ZodObject<{
7747
+ path: z.ZodString;
7748
+ version: z.ZodString;
7749
+ sourceLabel: z.ZodString;
7750
+ }, z.core.$strict>>;
7751
+ }, z.core.$strict>>;
7752
+ }, z.core.$strict>;
7753
+ type CodingProviderStatus = z.output<typeof CodingProviderStatus>;
7754
+ /** The person's rename, pin, hide and "last looked at" for one chat, by the engine's chat key. */
7755
+ declare const CodingChatPreference: z.ZodObject<{
7756
+ title: z.ZodNullable<z.ZodString>;
7757
+ pinned: z.ZodBoolean;
7758
+ hidden: z.ZodBoolean;
7759
+ lastSeenAt: z.ZodNullable<z.ZodString>;
7760
+ updatedAt: z.ZodNullable<z.ZodString>;
7761
+ }, z.core.$strict>;
7762
+ type CodingChatPreference = z.output<typeof CodingChatPreference>;
7763
+ declare const CodingTitleStatus: z.ZodObject<{
7764
+ owner: z.ZodBoolean;
7765
+ pending: z.ZodBoolean;
7766
+ problem: z.ZodNullable<z.ZodString>;
7767
+ renames: z.ZodNullable<z.ZodString>;
7768
+ }, z.core.$strict>;
7769
+ type CodingTitleStatus = z.output<typeof CodingTitleStatus>;
7770
+ /**
7771
+ * One row of THE recent coding chats (the Mac's Code › Recent and the phone's Sessions list draw
7772
+ * exactly these): the chats driven here and the coding apps' own chats, newest first, each with
7773
+ * the Mac's dot. `state`: running (amber "Running"), needs_attention (amber: failed or
7774
+ * interrupted since the person last looked), new_output (blue), elsewhere (amber "Running in
7775
+ * <app>"), idle (no dot).
7776
+ */
7777
+ declare const CodingRecentRow: z.ZodObject<{
7778
+ target: z.ZodString;
7779
+ title: z.ZodString;
7780
+ provider: z.ZodEnum<{
7781
+ claude: "claude";
7782
+ codex: "codex";
7783
+ }>;
7784
+ sessionId: z.ZodNullable<z.ZodString>;
7785
+ providerSessionId: z.ZodNullable<z.ZodString>;
7786
+ cwd: z.ZodNullable<z.ZodString>;
7787
+ updatedAt: z.ZodString;
7788
+ state: z.ZodEnum<{
7789
+ running: "running";
7790
+ idle: "idle";
7791
+ needs_attention: "needs_attention";
7792
+ new_output: "new_output";
7793
+ elsewhere: "elsewhere";
7794
+ }>;
7795
+ stateLabel: z.ZodNullable<z.ZodString>;
7796
+ pinned: z.ZodBoolean;
7797
+ startedBy: z.ZodNullable<z.ZodObject<{
7798
+ kind: z.ZodEnum<{
7799
+ web: "web";
7800
+ agent: "agent";
7801
+ other: "other";
7802
+ this_computer: "this_computer";
7803
+ phone: "phone";
7804
+ }>;
7805
+ label: z.ZodString;
7806
+ }, z.core.$strict>>;
7807
+ }, z.core.$strict>;
7808
+ type CodingRecentRow = z.output<typeof CodingRecentRow>;
7809
+ declare const CodingFolderCheck: z.ZodObject<{
7810
+ path: z.ZodString;
7811
+ exists: z.ZodBoolean;
7812
+ isDirectory: z.ZodBoolean;
7813
+ }, z.core.$strict>;
7814
+ type CodingFolderCheck = z.output<typeof CodingFolderCheck>;
7815
+ declare const CodingRecentFolder: z.ZodObject<{
7816
+ path: z.ZodString;
7817
+ lastUsedAt: z.ZodString;
7818
+ exists: z.ZodBoolean;
7819
+ }, z.core.$strict>;
7820
+ type CodingRecentFolder = z.output<typeof CodingRecentFolder>;
7821
+ declare const CodingAgentSelectionParams: z.ZodObject<{
7822
+ agent_id: z.ZodString;
7823
+ version_id: z.ZodOptional<z.ZodString>;
7824
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
7825
+ }, z.core.$strict>;
7826
+ type CodingAgentSelectionParams = z.output<typeof CodingAgentSelectionParams>;
7827
+ declare const CodingSendResult: z.ZodObject<{
7828
+ session: z.ZodObject<{
7829
+ id: z.ZodString;
7830
+ provider: z.ZodEnum<{
7831
+ claude: "claude";
7832
+ codex: "codex";
7833
+ }>;
7834
+ providerSessionId: z.ZodNullable<z.ZodString>;
7835
+ cwd: z.ZodString;
7836
+ title: z.ZodString;
7837
+ model: z.ZodNullable<z.ZodString>;
7838
+ effort: z.ZodNullable<z.ZodString>;
7839
+ origin: z.ZodEnum<{
7840
+ started: "started";
7841
+ takeover: "takeover";
7842
+ }>;
7843
+ createdAt: z.ZodString;
7844
+ updatedAt: z.ZodString;
7845
+ lastRunId: z.ZodNullable<z.ZodString>;
7846
+ lastRunStatus: z.ZodNullable<z.ZodEnum<{
7847
+ completed: "completed";
7848
+ running: "running";
7849
+ failed: "failed";
7850
+ stopped: "stopped";
7851
+ starting: "starting";
7852
+ }>>;
7853
+ queued: z.ZodArray<z.ZodString>;
7854
+ agent: z.ZodNullable<z.ZodObject<{
7855
+ agentId: z.ZodString;
7856
+ versionId: z.ZodNullable<z.ZodString>;
7857
+ versionNumber: z.ZodNullable<z.ZodInt>;
7858
+ name: z.ZodString;
7859
+ definitionHash: z.ZodString;
7860
+ loaded: z.ZodArray<z.ZodObject<{
7861
+ part: z.ZodEnum<{
7862
+ tools: "tools";
7863
+ instructions: "instructions";
7864
+ skills: "skills";
7865
+ }>;
7866
+ loaded: z.ZodInt;
7867
+ total: z.ZodInt;
7868
+ }, z.core.$strict>>;
7869
+ unavailable: z.ZodArray<z.ZodObject<{
7870
+ kind: z.ZodString;
7871
+ name: z.ZodString;
7872
+ reason: z.ZodString;
7873
+ }, z.core.$strict>>;
7874
+ skills: z.ZodArray<z.ZodString>;
7875
+ tools: z.ZodArray<z.ZodString>;
7876
+ variables: z.ZodRecord<z.ZodString, z.ZodUnknown>;
7877
+ blockDue: z.ZodBoolean;
7878
+ deliveredAt: z.ZodNullable<z.ZodString>;
7879
+ replaces: z.ZodNullable<z.ZodString>;
7880
+ }, z.core.$strict>>;
7881
+ agentRemovedDue: z.ZodBoolean;
7882
+ }, z.core.$strict>;
7883
+ run: z.ZodNullable<z.ZodObject<{
7884
+ runId: z.ZodString;
7885
+ sessionId: z.ZodString;
7886
+ provider: z.ZodEnum<{
7887
+ claude: "claude";
7888
+ codex: "codex";
7889
+ }>;
7890
+ cwd: z.ZodString;
7891
+ prompt: z.ZodString;
7892
+ model: z.ZodNullable<z.ZodString>;
7893
+ status: z.ZodEnum<{
7894
+ completed: "completed";
7895
+ running: "running";
7896
+ failed: "failed";
7897
+ stopped: "stopped";
7898
+ starting: "starting";
7899
+ }>;
7900
+ startedAt: z.ZodString;
7901
+ endedAt: z.ZodNullable<z.ZodString>;
7902
+ error: z.ZodNullable<z.ZodString>;
7903
+ usage: z.ZodNullable<z.ZodObject<{
7904
+ inputTokens: z.ZodInt;
7905
+ outputTokens: z.ZodInt;
7906
+ cachedInputTokens: z.ZodInt;
7907
+ }, z.core.$strict>>;
7908
+ costUsd: z.ZodNullable<z.ZodNumber>;
7909
+ billing: z.ZodNullable<z.ZodEnum<{
7910
+ unknown: "unknown";
7911
+ subscription: "subscription";
7912
+ api: "api";
7913
+ }>>;
7914
+ startedBy: z.ZodNullable<z.ZodObject<{
7915
+ kind: z.ZodEnum<{
7916
+ web: "web";
7917
+ agent: "agent";
7918
+ other: "other";
7919
+ this_computer: "this_computer";
7920
+ phone: "phone";
7921
+ }>;
7922
+ label: z.ZodString;
7923
+ }, z.core.$strict>>;
7924
+ }, z.core.$strict>>;
7925
+ queued: z.ZodBoolean;
7926
+ }, z.core.$strict>;
7927
+ type CodingSendResult = z.output<typeof CodingSendResult>;
7928
+ declare const CodingSessionsListResult: z.ZodObject<{
7929
+ sessions: z.ZodArray<z.ZodObject<{
7930
+ id: z.ZodString;
7931
+ provider: z.ZodEnum<{
7932
+ claude: "claude";
7933
+ codex: "codex";
7934
+ }>;
7935
+ providerSessionId: z.ZodNullable<z.ZodString>;
7936
+ cwd: z.ZodString;
7937
+ title: z.ZodString;
7938
+ model: z.ZodNullable<z.ZodString>;
7939
+ effort: z.ZodNullable<z.ZodString>;
7940
+ origin: z.ZodEnum<{
7941
+ started: "started";
7942
+ takeover: "takeover";
7943
+ }>;
7944
+ createdAt: z.ZodString;
7945
+ updatedAt: z.ZodString;
7946
+ lastRunId: z.ZodNullable<z.ZodString>;
7947
+ lastRunStatus: z.ZodNullable<z.ZodEnum<{
7948
+ completed: "completed";
7949
+ running: "running";
7950
+ failed: "failed";
7951
+ stopped: "stopped";
7952
+ starting: "starting";
7953
+ }>>;
7954
+ queued: z.ZodArray<z.ZodString>;
7955
+ agent: z.ZodNullable<z.ZodObject<{
7956
+ agentId: z.ZodString;
7957
+ versionId: z.ZodNullable<z.ZodString>;
7958
+ versionNumber: z.ZodNullable<z.ZodInt>;
7959
+ name: z.ZodString;
7960
+ definitionHash: z.ZodString;
7961
+ loaded: z.ZodArray<z.ZodObject<{
7962
+ part: z.ZodEnum<{
7963
+ tools: "tools";
7964
+ instructions: "instructions";
7965
+ skills: "skills";
7966
+ }>;
7967
+ loaded: z.ZodInt;
7968
+ total: z.ZodInt;
7969
+ }, z.core.$strict>>;
7970
+ unavailable: z.ZodArray<z.ZodObject<{
7971
+ kind: z.ZodString;
7972
+ name: z.ZodString;
7973
+ reason: z.ZodString;
7974
+ }, z.core.$strict>>;
7975
+ skills: z.ZodArray<z.ZodString>;
7976
+ tools: z.ZodArray<z.ZodString>;
7977
+ variables: z.ZodRecord<z.ZodString, z.ZodUnknown>;
7978
+ blockDue: z.ZodBoolean;
7979
+ deliveredAt: z.ZodNullable<z.ZodString>;
7980
+ replaces: z.ZodNullable<z.ZodString>;
7981
+ }, z.core.$strict>>;
7982
+ agentRemovedDue: z.ZodBoolean;
7983
+ }, z.core.$strict>>;
7984
+ runs: z.ZodRecord<z.ZodString, z.ZodObject<{
7985
+ runId: z.ZodString;
7986
+ sessionId: z.ZodString;
7987
+ provider: z.ZodEnum<{
7988
+ claude: "claude";
7989
+ codex: "codex";
7990
+ }>;
7991
+ cwd: z.ZodString;
7992
+ prompt: z.ZodString;
7993
+ model: z.ZodNullable<z.ZodString>;
7994
+ status: z.ZodEnum<{
7995
+ completed: "completed";
7996
+ running: "running";
7997
+ failed: "failed";
7998
+ stopped: "stopped";
7999
+ starting: "starting";
8000
+ }>;
8001
+ startedAt: z.ZodString;
8002
+ endedAt: z.ZodNullable<z.ZodString>;
8003
+ error: z.ZodNullable<z.ZodString>;
8004
+ usage: z.ZodNullable<z.ZodObject<{
8005
+ inputTokens: z.ZodInt;
8006
+ outputTokens: z.ZodInt;
8007
+ cachedInputTokens: z.ZodInt;
8008
+ }, z.core.$strict>>;
8009
+ costUsd: z.ZodNullable<z.ZodNumber>;
8010
+ billing: z.ZodNullable<z.ZodEnum<{
8011
+ unknown: "unknown";
8012
+ subscription: "subscription";
8013
+ api: "api";
8014
+ }>>;
8015
+ startedBy: z.ZodNullable<z.ZodObject<{
8016
+ kind: z.ZodEnum<{
8017
+ web: "web";
8018
+ agent: "agent";
8019
+ other: "other";
8020
+ this_computer: "this_computer";
8021
+ phone: "phone";
8022
+ }>;
8023
+ label: z.ZodString;
8024
+ }, z.core.$strict>>;
8025
+ }, z.core.$strict>>;
8026
+ recent: z.ZodArray<z.ZodObject<{
8027
+ target: z.ZodString;
8028
+ title: z.ZodString;
8029
+ provider: z.ZodEnum<{
8030
+ claude: "claude";
8031
+ codex: "codex";
8032
+ }>;
8033
+ sessionId: z.ZodNullable<z.ZodString>;
8034
+ providerSessionId: z.ZodNullable<z.ZodString>;
8035
+ cwd: z.ZodNullable<z.ZodString>;
8036
+ updatedAt: z.ZodString;
8037
+ state: z.ZodEnum<{
8038
+ running: "running";
8039
+ idle: "idle";
8040
+ needs_attention: "needs_attention";
8041
+ new_output: "new_output";
8042
+ elsewhere: "elsewhere";
8043
+ }>;
8044
+ stateLabel: z.ZodNullable<z.ZodString>;
8045
+ pinned: z.ZodBoolean;
8046
+ startedBy: z.ZodNullable<z.ZodObject<{
8047
+ kind: z.ZodEnum<{
8048
+ web: "web";
8049
+ agent: "agent";
8050
+ other: "other";
8051
+ this_computer: "this_computer";
8052
+ phone: "phone";
8053
+ }>;
8054
+ label: z.ZodString;
8055
+ }, z.core.$strict>>;
8056
+ }, z.core.$strict>>;
8057
+ title_status: z.ZodObject<{
8058
+ owner: z.ZodBoolean;
8059
+ pending: z.ZodBoolean;
8060
+ problem: z.ZodNullable<z.ZodString>;
8061
+ renames: z.ZodNullable<z.ZodString>;
8062
+ }, z.core.$strict>;
8063
+ }, z.core.$strict>;
8064
+ type CodingSessionsListResult = z.output<typeof CodingSessionsListResult>;
8065
+ declare const CodingSearchResult: z.ZodObject<{
8066
+ query: z.ZodString;
8067
+ hits: z.ZodArray<z.ZodObject<{
8068
+ provider: z.ZodEnum<{
8069
+ claude: "claude";
8070
+ codex: "codex";
8071
+ }>;
8072
+ providerSessionId: z.ZodString;
8073
+ title: z.ZodString;
8074
+ cwd: z.ZodNullable<z.ZodString>;
8075
+ updatedAt: z.ZodString;
8076
+ where: z.ZodEnum<{
8077
+ content: "content";
8078
+ title: "title";
8079
+ }>;
8080
+ snippet: z.ZodNullable<z.ZodString>;
8081
+ }, z.core.$strict>>;
8082
+ scanned: z.ZodInt;
8083
+ total: z.ZodInt;
8084
+ nextCursor: z.ZodNullable<z.ZodInt>;
8085
+ }, z.core.$strict>;
8086
+ type CodingSearchResult = z.output<typeof CodingSearchResult>;
8087
+ declare const CodingTranscriptRawResult: z.ZodObject<{
8088
+ available: z.ZodBoolean;
8089
+ reason: z.ZodNullable<z.ZodString>;
8090
+ file_name: z.ZodNullable<z.ZodString>;
8091
+ bytes: z.ZodInt;
8092
+ backup_refreshed: z.ZodBoolean;
8093
+ subagents: z.ZodInt;
8094
+ }, z.core.$strict>;
8095
+ type CodingTranscriptRawResult = z.output<typeof CodingTranscriptRawResult>;
8096
+ declare const CodingChangedEvent: z.ZodDiscriminatedUnion<[z.ZodObject<{
8097
+ kind: z.ZodLiteral<"session">;
8098
+ session: z.ZodObject<{
8099
+ id: z.ZodString;
8100
+ provider: z.ZodEnum<{
8101
+ claude: "claude";
8102
+ codex: "codex";
8103
+ }>;
8104
+ providerSessionId: z.ZodNullable<z.ZodString>;
8105
+ cwd: z.ZodString;
8106
+ title: z.ZodString;
8107
+ model: z.ZodNullable<z.ZodString>;
8108
+ effort: z.ZodNullable<z.ZodString>;
8109
+ origin: z.ZodEnum<{
8110
+ started: "started";
8111
+ takeover: "takeover";
8112
+ }>;
8113
+ createdAt: z.ZodString;
8114
+ updatedAt: z.ZodString;
8115
+ lastRunId: z.ZodNullable<z.ZodString>;
8116
+ lastRunStatus: z.ZodNullable<z.ZodEnum<{
8117
+ completed: "completed";
8118
+ running: "running";
8119
+ failed: "failed";
8120
+ stopped: "stopped";
8121
+ starting: "starting";
8122
+ }>>;
8123
+ queued: z.ZodArray<z.ZodString>;
8124
+ agent: z.ZodNullable<z.ZodObject<{
8125
+ agentId: z.ZodString;
8126
+ versionId: z.ZodNullable<z.ZodString>;
8127
+ versionNumber: z.ZodNullable<z.ZodInt>;
8128
+ name: z.ZodString;
8129
+ definitionHash: z.ZodString;
8130
+ loaded: z.ZodArray<z.ZodObject<{
8131
+ part: z.ZodEnum<{
8132
+ tools: "tools";
8133
+ instructions: "instructions";
8134
+ skills: "skills";
8135
+ }>;
8136
+ loaded: z.ZodInt;
8137
+ total: z.ZodInt;
8138
+ }, z.core.$strict>>;
8139
+ unavailable: z.ZodArray<z.ZodObject<{
8140
+ kind: z.ZodString;
8141
+ name: z.ZodString;
8142
+ reason: z.ZodString;
8143
+ }, z.core.$strict>>;
8144
+ skills: z.ZodArray<z.ZodString>;
8145
+ tools: z.ZodArray<z.ZodString>;
8146
+ variables: z.ZodRecord<z.ZodString, z.ZodUnknown>;
8147
+ blockDue: z.ZodBoolean;
8148
+ deliveredAt: z.ZodNullable<z.ZodString>;
8149
+ replaces: z.ZodNullable<z.ZodString>;
8150
+ }, z.core.$strict>>;
8151
+ agentRemovedDue: z.ZodBoolean;
8152
+ }, z.core.$strict>;
8153
+ }, z.core.$strict>, z.ZodObject<{
8154
+ kind: z.ZodLiteral<"run">;
8155
+ run: z.ZodObject<{
8156
+ runId: z.ZodString;
8157
+ sessionId: z.ZodString;
8158
+ provider: z.ZodEnum<{
8159
+ claude: "claude";
8160
+ codex: "codex";
8161
+ }>;
8162
+ cwd: z.ZodString;
8163
+ prompt: z.ZodString;
8164
+ model: z.ZodNullable<z.ZodString>;
8165
+ status: z.ZodEnum<{
8166
+ completed: "completed";
8167
+ running: "running";
8168
+ failed: "failed";
8169
+ stopped: "stopped";
8170
+ starting: "starting";
8171
+ }>;
8172
+ startedAt: z.ZodString;
8173
+ endedAt: z.ZodNullable<z.ZodString>;
8174
+ error: z.ZodNullable<z.ZodString>;
8175
+ usage: z.ZodNullable<z.ZodObject<{
8176
+ inputTokens: z.ZodInt;
8177
+ outputTokens: z.ZodInt;
8178
+ cachedInputTokens: z.ZodInt;
8179
+ }, z.core.$strict>>;
8180
+ costUsd: z.ZodNullable<z.ZodNumber>;
8181
+ billing: z.ZodNullable<z.ZodEnum<{
8182
+ unknown: "unknown";
8183
+ subscription: "subscription";
8184
+ api: "api";
8185
+ }>>;
8186
+ startedBy: z.ZodNullable<z.ZodObject<{
8187
+ kind: z.ZodEnum<{
8188
+ web: "web";
8189
+ agent: "agent";
8190
+ other: "other";
8191
+ this_computer: "this_computer";
8192
+ phone: "phone";
8193
+ }>;
8194
+ label: z.ZodString;
8195
+ }, z.core.$strict>>;
8196
+ }, z.core.$strict>;
8197
+ }, z.core.$strict>, z.ZodObject<{
8198
+ kind: z.ZodLiteral<"preferences">;
8199
+ preferences: z.ZodRecord<z.ZodString, z.ZodObject<{
8200
+ title: z.ZodNullable<z.ZodString>;
8201
+ pinned: z.ZodBoolean;
8202
+ hidden: z.ZodBoolean;
8203
+ lastSeenAt: z.ZodNullable<z.ZodString>;
8204
+ updatedAt: z.ZodNullable<z.ZodString>;
5345
8205
  }, z.core.$strict>>;
8206
+ }, z.core.$strict>, z.ZodObject<{
8207
+ kind: z.ZodLiteral<"titles">;
8208
+ }, z.core.$strict>, z.ZodObject<{
8209
+ kind: z.ZodLiteral<"recent">;
8210
+ recent: z.ZodArray<z.ZodObject<{
8211
+ target: z.ZodString;
8212
+ title: z.ZodString;
8213
+ provider: z.ZodEnum<{
8214
+ claude: "claude";
8215
+ codex: "codex";
8216
+ }>;
8217
+ sessionId: z.ZodNullable<z.ZodString>;
8218
+ providerSessionId: z.ZodNullable<z.ZodString>;
8219
+ cwd: z.ZodNullable<z.ZodString>;
8220
+ updatedAt: z.ZodString;
8221
+ state: z.ZodEnum<{
8222
+ running: "running";
8223
+ idle: "idle";
8224
+ needs_attention: "needs_attention";
8225
+ new_output: "new_output";
8226
+ elsewhere: "elsewhere";
8227
+ }>;
8228
+ stateLabel: z.ZodNullable<z.ZodString>;
8229
+ pinned: z.ZodBoolean;
8230
+ startedBy: z.ZodNullable<z.ZodObject<{
8231
+ kind: z.ZodEnum<{
8232
+ web: "web";
8233
+ agent: "agent";
8234
+ other: "other";
8235
+ this_computer: "this_computer";
8236
+ phone: "phone";
8237
+ }>;
8238
+ label: z.ZodString;
8239
+ }, z.core.$strict>>;
8240
+ }, z.core.$strict>>;
8241
+ }, z.core.$strict>], "kind">;
8242
+ type CodingChangedEvent = z.output<typeof CodingChangedEvent>;
8243
+ /** Repeated every heartbeat: a watcher that hears nothing for 2.5× the beat says "Not live". */
8244
+ declare const CodingWatchStateEvent: z.ZodObject<{
8245
+ live: z.ZodBoolean;
8246
+ reason: z.ZodNullable<z.ZodString>;
8247
+ beat_ms: z.ZodInt;
5346
8248
  }, z.core.$strict>;
5347
- type ExecJobListResult = z.output<typeof ExecJobListResult>;
5348
-
5349
- /**
5350
- * @ai-matrx/desktop-protocol — the `coding` capability's Claude Code history (SPEC §6 `coding`):
5351
- * "Import missing history" — every Claude Code session on this computer that AI Matrx lacks, or is
5352
- * behind on, imported through the shared importer (matrx-coding-history, the same code Matrx Local
5353
- * runs) in Matrx 2's `coding` Python service (SPEC §3.10). Schema source: lint-enforced rules in
5354
- * scripts/check-schema-source.mjs.
5355
- *
5356
- * Two contracts, both generated from this file (SPEC P11):
5357
- * - the Router op `coding.history.import_missing` (every transport) and its progress event;
5358
- * - the internal service ops `coding.plan_missing` / `coding.import_next` between the core and
5359
- * the Python service. The core runs the loop: each service call is one bounded batch carrying
5360
- * a fresh access token, so a long run never outlives its credential.
5361
- */
5362
-
5363
- declare const CodingHistoryFailure: z.ZodObject<{
8249
+ type CodingWatchStateEvent = z.output<typeof CodingWatchStateEvent>;
8250
+ declare const CodingItemEvent: z.ZodObject<{
5364
8251
  session_id: z.ZodString;
5365
- reason: z.ZodString;
8252
+ run_id: z.ZodString;
8253
+ seq: z.ZodInt;
8254
+ item: z.ZodDiscriminatedUnion<[z.ZodObject<{
8255
+ kind: z.ZodLiteral<"user">;
8256
+ id: z.ZodString;
8257
+ text: z.ZodString;
8258
+ at: z.ZodNullable<z.ZodString>;
8259
+ }, z.core.$strict>, z.ZodObject<{
8260
+ kind: z.ZodLiteral<"text">;
8261
+ id: z.ZodString;
8262
+ text: z.ZodString;
8263
+ }, z.core.$strict>, z.ZodObject<{
8264
+ kind: z.ZodLiteral<"text-delta">;
8265
+ id: z.ZodString;
8266
+ text: z.ZodString;
8267
+ }, z.core.$strict>, z.ZodObject<{
8268
+ kind: z.ZodLiteral<"reasoning">;
8269
+ id: z.ZodString;
8270
+ text: z.ZodString;
8271
+ }, z.core.$strict>, z.ZodObject<{
8272
+ kind: z.ZodLiteral<"tool-call">;
8273
+ id: z.ZodString;
8274
+ name: z.ZodString;
8275
+ input: z.ZodUnknown;
8276
+ }, z.core.$strict>, z.ZodObject<{
8277
+ kind: z.ZodLiteral<"tool-result">;
8278
+ id: z.ZodString;
8279
+ output: z.ZodString;
8280
+ isError: z.ZodBoolean;
8281
+ fullBytes: z.ZodOptional<z.ZodInt>;
8282
+ }, z.core.$strict>, z.ZodObject<{
8283
+ kind: z.ZodLiteral<"usage">;
8284
+ usage: z.ZodObject<{
8285
+ inputTokens: z.ZodInt;
8286
+ outputTokens: z.ZodInt;
8287
+ cachedInputTokens: z.ZodInt;
8288
+ }, z.core.$strict>;
8289
+ costUsd: z.ZodNullable<z.ZodNumber>;
8290
+ }, z.core.$strict>, z.ZodObject<{
8291
+ kind: z.ZodLiteral<"notice">;
8292
+ id: z.ZodString;
8293
+ level: z.ZodEnum<{
8294
+ warning: "warning";
8295
+ info: "info";
8296
+ }>;
8297
+ text: z.ZodString;
8298
+ }, z.core.$strict>, z.ZodObject<{
8299
+ kind: z.ZodLiteral<"error">;
8300
+ id: z.ZodString;
8301
+ text: z.ZodString;
8302
+ }, z.core.$strict>], "kind">;
5366
8303
  }, z.core.$strict>;
5367
- /**
5368
- * Service op `coding.plan_missing`: read the cloud's list and this computer's history (stat only).
5369
- * `credentials` is null when nobody is signed in: the service answers `blocked: signed_out` with
5370
- * its own line, so every sentence the person reads comes from one place.
5371
- */
5372
- declare const CodingPlanMissingParams: z.ZodObject<{
5373
- credentials: z.ZodNullable<z.ZodObject<{
5374
- access_token: z.ZodString;
5375
- user_id: z.ZodString;
5376
- server_url: z.ZodString;
5377
- }, z.core.$strict>>;
8304
+ type CodingItemEvent = z.output<typeof CodingItemEvent>;
8305
+ /** Items between `since_seq` and `seq` are no longer held: read history again. */
8306
+ declare const CodingGapEvent: z.ZodObject<{
8307
+ session_id: z.ZodString;
8308
+ since_seq: z.ZodInt;
8309
+ seq: z.ZodInt;
5378
8310
  }, z.core.$strict>;
5379
- /** Service op `coding.import_next`: import the plan's next bounded batch (null credentials: as above). */
5380
- declare const CodingImportNextParams: z.ZodObject<{
5381
- plan_id: z.ZodString;
5382
- credentials: z.ZodNullable<z.ZodObject<{
5383
- access_token: z.ZodString;
5384
- user_id: z.ZodString;
5385
- server_url: z.ZodString;
8311
+ type CodingGapEvent = z.output<typeof CodingGapEvent>;
8312
+ declare const CodingStartParams: z.ZodObject<{
8313
+ provider: z.ZodEnum<{
8314
+ claude: "claude";
8315
+ codex: "codex";
8316
+ }>;
8317
+ cwd: z.ZodString;
8318
+ prompt: z.ZodString;
8319
+ model: z.ZodOptional<z.ZodString>;
8320
+ effort: z.ZodOptional<z.ZodString>;
8321
+ agent: z.ZodOptional<z.ZodObject<{
8322
+ agent_id: z.ZodString;
8323
+ version_id: z.ZodOptional<z.ZodString>;
8324
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5386
8325
  }, z.core.$strict>>;
8326
+ account_profile_id: z.ZodOptional<z.ZodString>;
8327
+ client_request_id: z.ZodString;
5387
8328
  }, z.core.$strict>;
5388
- declare const CodingHistoryImportMissingParams: z.ZodObject<{}, z.core.$strict>;
5389
- /** What the core adds to every coding service op from its own sign-in (never sent by a client). */
5390
- declare const CodingServiceCredentials: z.ZodObject<{
5391
- access_token: z.ZodString;
5392
- user_id: z.ZodString;
5393
- server_url: z.ZodString;
5394
- }, z.core.$strict>;
5395
- type CodingServiceCredentials = z.output<typeof CodingServiceCredentials>;
8329
+ type CodingStartParams = z.output<typeof CodingStartParams>;
5396
8330
  /**
5397
- * Why a run stopped before it was done, as a state the screen can name:
5398
- * signed_out — no usable AI Matrx sign-in (or it expired mid-run);
5399
- * offline — the AI Matrx server did not answer;
5400
- * organization_required — AI Matrx needs to know which organization files coding sessions;
5401
- * claude_unavailable — Claude Code's account on this computer cannot be read;
5402
- * cloud_list_unavailable — the server's list of sessions could not be proven complete;
5403
- * history_too_large — more local sessions than the importer reads in one run.
8331
+ * Continue a chat from another app here. When it is live elsewhere the core refuses with
8332
+ * RESOURCE_BUSY carrying the sentence, unless `confirm_elsewhere` (the person saw the warning).
5404
8333
  */
5405
- declare const CodingHistoryBlocked: z.ZodEnum<{
5406
- signed_out: "signed_out";
5407
- offline: "offline";
5408
- organization_required: "organization_required";
5409
- claude_unavailable: "claude_unavailable";
5410
- cloud_list_unavailable: "cloud_list_unavailable";
5411
- history_too_large: "history_too_large";
5412
- }>;
5413
- type CodingHistoryBlocked = z.output<typeof CodingHistoryBlocked>;
5414
- /** A run's counts so far, and its one honest line. */
5415
- declare const CodingHistoryRun: z.ZodObject<{
5416
- local_sessions: z.ZodInt;
5417
- in_cloud: z.ZodInt;
5418
- missing: z.ZodInt;
5419
- behind: z.ZodInt;
5420
- too_large: z.ZodInt;
5421
- imported: z.ZodInt;
5422
- changed: z.ZodInt;
5423
- failed: z.ZodInt;
5424
- failures: z.ZodArray<z.ZodObject<{
5425
- session_id: z.ZodString;
5426
- reason: z.ZodString;
5427
- }, z.core.$strict>>;
5428
- remaining: z.ZodInt;
5429
- summary: z.ZodString;
5430
- }, z.core.$strict>;
5431
- type CodingHistoryRun = z.output<typeof CodingHistoryRun>;
5432
- /** The answer to each service op: where the run stands. */
5433
- declare const CodingHistoryStep: z.ZodObject<{
5434
- plan_id: z.ZodNullable<z.ZodString>;
5435
- finished: z.ZodBoolean;
5436
- blocked: z.ZodNullable<z.ZodEnum<{
5437
- signed_out: "signed_out";
5438
- offline: "offline";
5439
- organization_required: "organization_required";
5440
- claude_unavailable: "claude_unavailable";
5441
- cloud_list_unavailable: "cloud_list_unavailable";
5442
- history_too_large: "history_too_large";
5443
- }>>;
5444
- run: z.ZodObject<{
5445
- local_sessions: z.ZodInt;
5446
- in_cloud: z.ZodInt;
5447
- missing: z.ZodInt;
5448
- behind: z.ZodInt;
5449
- too_large: z.ZodInt;
5450
- imported: z.ZodInt;
5451
- changed: z.ZodInt;
5452
- failed: z.ZodInt;
5453
- failures: z.ZodArray<z.ZodObject<{
5454
- session_id: z.ZodString;
5455
- reason: z.ZodString;
5456
- }, z.core.$strict>>;
5457
- remaining: z.ZodInt;
5458
- summary: z.ZodString;
5459
- }, z.core.$strict>;
5460
- }, z.core.$strict>;
5461
- type CodingHistoryStep = z.output<typeof CodingHistoryStep>;
5462
- /** The coding service's progress messages (sent while it reads a large history). */
5463
- declare const CodingServiceProgress: z.ZodObject<{
5464
- phase: z.ZodEnum<{
5465
- checking: "checking";
5466
- importing: "importing";
8334
+ declare const CodingTakeoverParams: z.ZodObject<{
8335
+ provider: z.ZodEnum<{
8336
+ claude: "claude";
8337
+ codex: "codex";
5467
8338
  }>;
5468
- done: z.ZodInt;
5469
- total: z.ZodInt;
8339
+ provider_session_id: z.ZodString;
8340
+ cwd: z.ZodString;
8341
+ title: z.ZodOptional<z.ZodString>;
8342
+ agent: z.ZodOptional<z.ZodObject<{
8343
+ agent_id: z.ZodString;
8344
+ version_id: z.ZodOptional<z.ZodString>;
8345
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
8346
+ }, z.core.$strict>>;
8347
+ confirm_elsewhere: z.ZodOptional<z.ZodBoolean>;
5470
8348
  }, z.core.$strict>;
5471
- type CodingServiceProgress = z.output<typeof CodingServiceProgress>;
5472
- declare const CodingHistoryImportMissingResult: z.ZodObject<{
8349
+ type CodingTakeoverParams = z.output<typeof CodingTakeoverParams>;
8350
+ declare const CodingReconcileResult: z.ZodObject<{
5473
8351
  state: z.ZodEnum<{
5474
- cancelled: "cancelled";
5475
- done: "done";
5476
8352
  blocked: "blocked";
8353
+ done: "done";
8354
+ nothing_to_do: "nothing_to_do";
5477
8355
  }>;
5478
- blocked: z.ZodNullable<z.ZodEnum<{
5479
- signed_out: "signed_out";
5480
- offline: "offline";
5481
- organization_required: "organization_required";
5482
- claude_unavailable: "claude_unavailable";
5483
- cloud_list_unavailable: "cloud_list_unavailable";
5484
- history_too_large: "history_too_large";
5485
- }>>;
5486
- run: z.ZodObject<{
5487
- local_sessions: z.ZodInt;
5488
- in_cloud: z.ZodInt;
5489
- missing: z.ZodInt;
5490
- behind: z.ZodInt;
5491
- too_large: z.ZodInt;
5492
- imported: z.ZodInt;
5493
- changed: z.ZodInt;
5494
- failed: z.ZodInt;
5495
- failures: z.ZodArray<z.ZodObject<{
5496
- session_id: z.ZodString;
5497
- reason: z.ZodString;
5498
- }, z.core.$strict>>;
5499
- remaining: z.ZodInt;
5500
- summary: z.ZodString;
5501
- }, z.core.$strict>;
5502
- elapsed_ms: z.ZodInt;
5503
- }, z.core.$strict>;
5504
- type CodingHistoryImportMissingResult = z.output<typeof CodingHistoryImportMissingResult>;
5505
- /** Sent to the client that started `coding.history.import_missing`, for that request. */
5506
- declare const CodingHistoryProgressEvent: z.ZodObject<{
5507
- request_id: z.ZodString;
5508
- phase: z.ZodEnum<{
5509
- checking: "checking";
5510
- importing: "importing";
5511
- }>;
5512
- done: z.ZodInt;
5513
- total: z.ZodInt;
5514
- imported: z.ZodInt;
5515
- failed: z.ZodInt;
8356
+ summary: z.ZodString;
5516
8357
  }, z.core.$strict>;
5517
- type CodingHistoryProgressEvent = z.output<typeof CodingHistoryProgressEvent>;
8358
+ type CodingReconcileResult = z.output<typeof CodingReconcileResult>;
5518
8359
 
5519
8360
  /**
5520
8361
  * @ai-matrx/desktop-protocol — cap browser (protocol 1.28): the AI Matrx browser extension as a
@@ -7158,6 +9999,34 @@ declare const FIELDS_SINCE: {
7158
9999
  readonly AppsChatsTitlesCheckResult: {
7159
10000
  readonly stale_windows: "1.33";
7160
10001
  };
10002
+ readonly AccountAgent: {
10003
+ readonly tags: "1.39";
10004
+ readonly model_id: "1.39";
10005
+ readonly access_level: "1.39";
10006
+ readonly organization_id: "1.39";
10007
+ readonly origin: "1.39";
10008
+ readonly is_archived: "1.39";
10009
+ readonly orchestra: "1.39";
10010
+ };
10011
+ readonly WebScrapeParams: {
10012
+ readonly engine: "1.40";
10013
+ readonly land: "1.40";
10014
+ };
10015
+ readonly WebScrapePage: {
10016
+ readonly source: "1.40";
10017
+ };
10018
+ readonly WebBrowserFetchParams: {
10019
+ readonly land: "1.40";
10020
+ };
10021
+ readonly WebBrowserFetchResult: {
10022
+ readonly source: "1.40";
10023
+ };
10024
+ readonly SysinfoGetResult: {
10025
+ readonly requirements: "1.41";
10026
+ };
10027
+ readonly "SysinfoGetResult.permissions[]": {
10028
+ readonly detail: "1.41";
10029
+ };
7161
10030
  };
7162
10031
  type FieldsSincePath = keyof typeof FIELDS_SINCE;
7163
10032
  /**
@@ -7190,6 +10059,18 @@ declare const REASONS_SINCE: {
7190
10059
  readonly awaiting_confirmation: "1.28";
7191
10060
  readonly tool_disabled_on_device: "1.34";
7192
10061
  };
10062
+ /**
10063
+ * (1.41) Values a later minor added to an enum a peer reads inside a list, by the minor that added
10064
+ * each: sysinfo.get's permission names. An older peer's strict enum would refuse the whole answer,
10065
+ * so `forPeer` leaves out the rows it does not know (it is never sent a name it cannot read).
10066
+ */
10067
+ declare const PERMISSIONS_SINCE: {
10068
+ readonly reminders: "1.41";
10069
+ readonly speech_recognition: "1.41";
10070
+ readonly messages: "1.41";
10071
+ readonly mail: "1.41";
10072
+ readonly wifi: "1.41";
10073
+ };
7193
10074
  /** A device status for a reader at `version`: `since_ms` null ("never") becomes 0 before 1.1. */
7194
10075
  declare function statusForPeer<T extends {
7195
10076
  since_ms: number | null;
@@ -7218,7 +10099,7 @@ declare function forPeer(op: OpName | null, part: "error", value: unknown, versi
7218
10099
  declare const VERSIONED_RESULT_OPS: readonly OpName[];
7219
10100
 
7220
10101
  /** SHA-256 of generated/desktop-protocol.schema.json: the contract both sides of a service connection were built from. */
7221
- declare const CONTRACT_SHA256: "1091ef68a5cb45a35a85998fc34560b4ddc035fe67d2d34594e935e92a2081dd";
10102
+ declare const CONTRACT_SHA256: "a2ea77f45ed3f5421e4c722442205e48fce2bbc5bccc892b54403304eca55443";
7222
10103
 
7223
10104
  /**
7224
10105
  * The local tool catalog (SPEC §10): every tool a platform agent calls on a person's computer, the
@@ -7355,4 +10236,4 @@ declare function toolsSending(op: string): string[];
7355
10236
  */
7356
10237
  declare function sharedOpsBlocking(tool: string, disabledTools: readonly string[]): string[];
7357
10238
 
7358
- export { AbsPath, AccountAgent, AccountAgentsListParams, AccountAgentsListResult, AccountReadState, AccountReset, AccountRowId, AccountUsage, AccountVaultCopyParams, AccountVaultCopyResult, AccountVaultListParams, AccountVaultListResult, AppFeatureStatus, AppInfo, AppKey, AppProfile, AppProfileId, AppProfileLocator, AppSupport, AppUsageReading, AppWindowInfo, AppsAccountsResetsParams, AppsAccountsResetsResult, AppsAccountsUsageParams, AppsAccountsUsageResult, AppsChatsChangedEvent, AppsChatsColdParams, AppsChatsColdResult, AppsChatsListParams, AppsChatsListResult, AppsChatsOpenParams, AppsChatsPlaceParams, AppsChatsPlaceResult, AppsChatsStarParams, AppsChatsStarResult, AppsChatsTitlesCheckParams, AppsChatsTitlesCheckResult, AppsChatsTitlesPushParams, AppsChatsTitlesPushResult, AppsChatsWatchParams, AppsChatsWatchResult, AppsChatsWatchStateEvent, AppsListParams, AppsListResult, AppsOpenParams, AppsOpenResult, AppsProfilesListParams, AppsProfilesListResult, AppsProfilesRemoveParams, AppsProfilesRemoveResult, AppsProfilesSaveParams, AppsProfilesSaveResult, AppsProjectsCopyParams, AppsProjectsCopyResult, AppsProjectsCreateParams, AppsProjectsCreateResult, AppsProjectsFileManyParams, AppsProjectsFileManyResult, AppsProjectsFileParams, AppsProjectsFileResult, AppsProjectsImportPinsParams, AppsProjectsImportPinsResult, AppsProjectsMoveParams, AppsProjectsMoveResult, AppsProjectsToWindowParams, AppsProjectsToWindowResult, AppsProjectsUnfileParams, AppsProjectsUnfileResult, AppsProjectsUpdateParams, AppsProjectsUpdateResult, AppsSpendParams, AppsSpendResult, AppsSyncRunParams, AppsSyncStatusParams, AppsSyncStatusResult, AppsWindowActionResult, AppsWindowsAddParams, AppsWindowsListParams, AppsWindowsListResult, AppsWindowsOpenParams, AppsWindowsProcessesParams, AppsWindowsProcessesResult, AppsWindowsRefreshUsageParams, AppsWindowsReloadParams, AppsWindowsReopenParams, AppsWindowsReopenResult, AppsWindowsRestartParams, AppsWindowsSaveNamesParams, AppsWindowsShownParams, AppsWindowsShownResult, AppsWindowsUpdateAndReopenParams, AppsWindowsUpdateAndReopenResult, AppsWindowsUpdateStateParams, AppsWindowsUpdateStateResult, AudioDevice, AudioDevicesParams, AudioDevicesResult, AudioLevelsParams, AudioLevelsResult, AudioPlayParams, AudioPlayResult, AudioRecordParams, AudioRecordResult, AudioSetLevelsParams, AutomationScriptParams, AutomationScriptResult, BrowserCallError, BrowserCallParams, BrowserCallPhase, BrowserCallResult, BrowserClientInstance, BrowserDisconnectParams, BrowserDisconnectResult, BrowserInvokeEvent, BrowserKind, BrowserLogMessage, BrowserLogParams, BrowserLogResult, BrowserPairCodeParams, BrowserPairCodeResult, BrowserPairRequest, BrowserPairResetParams, BrowserPairResult, BrowserProgressEvent, BrowserProgressParams, BrowserProgressResult, BrowserRegisterParams, BrowserRegisterResult, BrowserResetCountersParams, BrowserResetCountersResult, BrowserResultParams, BrowserResultResult, BrowserSession, BrowserSessionState, BrowserSessionsChangedEvent, BrowserSessionsParams, BrowserSessionsResult, BrowserSetEnabledParams, BrowserSetEnabledResult, BrowserToolMetric, BrowserToolMetricsParams, BrowserToolMetricsResult, CONTRACT_SHA256, CalendarCreateParams, CalendarCreateResult, CalendarEvent, CalendarListParams, CalendarListResult, type CatalogTool, type CellState, ChatAppProject, ChatFamily, ChatHidden, ChatId, ChatLastUse, ChatPin, ChatPlace, ChatProject, ChatProjectId, ChatRow, ChatRunning, ChatWindow, ClipboardReadParams, ClipboardReadResult, ClipboardWriteParams, ClipboardWriteResult, CodingHistoryBlocked, CodingHistoryFailure, CodingHistoryImportMissingParams, CodingHistoryImportMissingResult, CodingHistoryProgressEvent, CodingHistoryRun, CodingHistoryStep, CodingImportNextParams, CodingPlanMissingParams, CodingServiceCredentials, CodingServiceProgress, ColdChat, ContactDetail, ContactLabeled, ContactSummary, ContactsGetParams, ContactsGetResult, ContactsSearchParams, ContactsSearchResult, ContractHash, CoreToServiceMsg, DEFAULT_MAX_FRAME_PAYLOAD_BYTES, DEFAULT_MAX_MESSAGE_BYTES, DEFAULT_WINDOW_BYTES, DISCOVERY_FILE, DOCUMENTS_MAX_TEXT_CHARS, DesktopHealth, DeviceId, DiagErrorEntry, DiagErrorKind, DiagErrorStatus, DiagErrorsChangedEvent, DiagErrorsListParams, DiagErrorsListResult, DiagErrorsReportParams, DiagErrorsReportResult, DiagProcess, DocumentsImageResizeParams, DocumentsImageResizeResult, DocumentsOcrLine, DocumentsOcrParams, DocumentsOcrResult, DocumentsOfficeGenerateParams, DocumentsOfficeGenerateResult, DocumentsParagraph, DocumentsPdfPage, DocumentsPdfTextParams, DocumentsPdfTextResult, DocumentsSheet, EXCLUDED_TOOLS, EntitiesNerParams, EntitiesNerResult, EntitiesPiiParams, EntitiesPiiResult, EntitySpan, ExecCwdEvent, ExecExitedEvent, ExecJobId, ExecJobInfo, ExecJobListParams, ExecJobListResult, ExecJobOutputParams, ExecJobOutputResult, ExecJobStartParams, ExecJobStartResult, ExecJobStopParams, ExecJobStopResult, ExecListParams, ExecListResult, ExecPtyKillParams, ExecPtyKillResult, ExecPtyResizeParams, ExecPtyResizeResult, ExecPtySignalParams, ExecPtySignalResult, ExecPtyStartParams, ExecPtyStartResult, ExecPtyWriteParams, ExecPtyWriteResult, ExecRunParams, ExecRunResult, ExecTitleEvent, FIELDS_SINCE, type FieldsSincePath, FrameHeader, FsChange, FsChangedEvent, FsCopyParams, FsCopyResult, FsDeleteParams, FsDeleteResult, FsEncoding, FsEntry, FsInfoParams, FsInfoResult, FsKind, FsListParams, FsListResult, FsMkdirParams, FsMkdirResult, FsMoveParams, FsMoveResult, FsPatchEditApplied, FsPatchParams, FsPatchResult, FsReadParams, FsReadResult, FsReadStreamParams, FsReadStreamResult, FsSearchContentParams, FsSearchContentResult, FsSearchIndexParams, FsSearchIndexResult, FsSearchPathsParams, FsSearchPathsResult, FsStatParams, FsStatResult, FsWatchEventsParams, FsWatchEventsResult, FsWatchId, FsWatchParams, FsWatchResult, FsWatchStartParams, FsWatchStartResult, FsWatchStopParams, FsWatchStopResult, FsWriteParams, FsWriteResult, GIT_MAX_OUTPUT_CHARS, GitAddParams, GitBranchParams, GitBranchResult, GitCloneParams, GitCommitParams, GitCommitResult, GitDiffParams, GitDiffResult, GitLogCommit, GitLogParams, GitLogResult, GitOutputResult, GitPullParams, GitPushParams, GitStashParams, GitStatusFile, GitStatusParams, GitStatusResult, InputHotkeyParams, InputHotkeyResult, InputKey, InputKeyboardSettingsParams, InputKeyboardSettingsResult, InputMouseClickParams, InputMouseClickResult, InputMouseMoveParams, InputMouseMoveResult, InputPoint, InputSetKeyboardSettingsParams, InputTypeTextParams, InputTypeTextResult, LEGACY_ACTIONS, LEGACY_DISPATCHERS, type LegacyDisposition, LocationGetParams, LocationGetResult, MATRX_EXTENSION_IDS, MailAccount, MailAccountsParams, MailAccountsResult, MailListParams, MailListResult, MailMessage, MailSendParams, MailSendResult, MessagesChat, MessagesChatsParams, MessagesChatsResult, MessagesListParams, MessagesListResult, MessagesMessage, MessagesSendParams, MessagesSendResult, NULL_SINCE, NetAddress, NetBluetoothDevice, NetBluetoothParams, NetBluetoothResult, NetDevice, NetDevicesParams, NetDevicesResult, NetDownloadParams, NetDownloadResult, NetInfoParams, NetInfoResult, NetInterface, NetMdnsParams, NetMdnsResult, NetMdnsService, NetScanParams, NetScanResult, NetWifiNetwork, NetWifiParams, NetWifiResult, NoteEntry, NotesFolder, NotesFoldersParams, NotesFoldersResult, NotesListParams, NotesListResult, NotesMatch, NotesReadParams, NotesReadResult, NotesSearchParams, NotesSearchResult, NotesWriteParams, NotesWriteResult, OpName, OsPermissionName, PROTOCOL_MAJOR, PROTOCOL_MINOR, PROTOCOL_VERSION, Photo, PhotosGetParams, PhotosGetResult, PhotosSearchParams, PhotosSearchResult, PiiKind, PowerEnergy, PowerHistoryParams, PowerHistoryPoint, PowerHistoryResult, PowerPreventSleepParams, PowerPreventSleepResult, PowerStatusParams, PowerStatusResult, ProcInfo, ProcKillParams, ProcKillResult, ProcListParams, ProcListResult, ProcPort, ProcPortsParams, ProcPortsResult, ProcSort, ProjectMoveChat, ProjectMoveGroup, ProjectMovePin, ProjectMoveSkip, ProtocolVersion, PtyInfo, REASONS_SINCE, RELAY_CALL_HELLO_ID, RELAY_CALL_REQUEST_ID, RELAY_CALL_VERSION_HEADER, RegistryValue, RegistryValueType, RelayAuthExpiringEvent, RelayCallEnvelope, RelayCallHello, RelayCallRequest, RelayCallResponse, RelayDeviceStatusEvent, RelayHopConnectionEnd, RelayHopEnvelopeHeader, RelayStatusResponse, Reminder, RemindersCreateParams, RemindersCreateResult, RemindersListParams, RemindersListResult, RequestId, ResourceId, ResourceInfo, ResourcesActivityParams, ResourcesActivityResult, ResourcesDisk, ResourcesIncident, ResourcesIncidentsParams, ResourcesIncidentsResult, ResourcesJob, ResourcesJobKind, ResourcesPressure, ResourcesProcess, ResourcesSample, ResourcesSnapshotParams, ResourcesSnapshotResult, ResourcesStopJobParams, ResourcesStopJobResult, ResourcesStrain, ResourcesVerdict, SERVICE_MAX_FRAME_BYTES, ScheduleCancelParams, ScheduleCancelResult, ScheduleCreateParams, ScheduleCreateResult, ScheduleListParams, ScheduleListResult, ScheduleRun, ScheduledTask, ScreenCaptureParams, ScreenCaptureResult, ScreenDisplay, ScreenListParams, ScreenListResult, ServiceCancel, ServiceErrorMsg, ServiceHello, ServiceName, ServicePing, ServicePong, ServiceProgressMsg, ServiceRequest, ServiceResponse, ServiceShutdown, ServiceToCoreMsg, ServiceToken, ServiceWelcome, SessionAttachParams, SessionAttachResult, SessionControlChangedEvent, SessionDetachParams, SessionDetachResult, SessionListParams, SessionListResult, SessionReleaseParams, SessionReleaseResult, ShownSection, Signal, SpendAccount, SpendChat, SpendDay, SpendHelper, SpendIdle, SpendIdleScope, SpendLive, SpendModel, SpendScopes, SpendSplit, SpendStart, StackErrorsParams, StackErrorsResult, StackEvent, StackLogsParams, StackLogsResult, StackRunResult, StackServer, StackServerActionParams, StackServerActionResult, StackServerName, StackStartParams, StackStateParams, StackStateResult, StackStopParams, StackTone, StaleTitleWindow, type StatusCell, type StatusEvidence, type StatusRow, SysinfoGetParams, SysinfoGetResult, SysinfoHardwareParams, SysinfoHardwareResult, SystemNotifyParams, SystemNotifyResult, SystemOpenPathParams, SystemOpenPathResult, SystemOpenSettingsParams, SystemOpenSettingsResult, SystemOpenUrlParams, SystemOpenUrlResult, SystemSettingsPane, TOOL_CATALOG, TOOL_GROUPS, TOOL_LEVELS, TOOL_PLATFORMS, TitleCopies, TitleMismatch, type ToolGroup, type ToolGroupId, ToolLevel, ToolLevelResult, ToolName, ToolOutcome, type ToolPath, ToolPlatform, ToolResultsFile, type ToolState, type ToolStatus, ToolTransport, ToolsServiceProgress, ToolsWebSearchParams, VERSIONED_RESULT_OPS, VaultFieldSummary, VaultItemKind, VaultItemSummary, WEB_MAX_TEXT_CHARS, WebBrowserFetchParams, WebBrowserFetchResult, WebFetchParams, WebFetchResult, WebHeader, WebScrapePage, WebScrapeParams, WebScrapeResult, WebSearchHit, WebSearchParams, WebSearchQueryResult, WebSearchResult, WindowFocusParams, WindowFocusResult, WindowInfo, WindowListParams, WindowListResult, WindowMinimizeParams, WindowMinimizeResult, WindowMoveParams, WindowMoveResult, WindowsEvent, WindowsEventLogParams, WindowsEventLogResult, WindowsFeature, WindowsFeaturesParams, WindowsFeaturesResult, WindowsRegistryReadParams, WindowsRegistryReadResult, WindowsRegistryWriteParams, WindowsRegistryWriteResult, WindowsService, WindowsServiceControlParams, WindowsServiceControlResult, WindowsServicesParams, WindowsServicesResult, announcedVersion, buildToolStatus, builtOps, compareVersions, epochMs, forPeer, knows, negotiate, nonNegInt, refusedOps, renderToolStatusMarkdown, sharedOpsBlocking, statusForPeer, toolsSending, u32, versionSubprotocol };
10239
+ export { AbsPath, AccountAgent, AccountAgentDetail, AccountAgentRun, AccountAgentRunSort, AccountAgentRunStatus, AccountAgentVariable, AccountAgentsFavoriteParams, AccountAgentsFavoriteResult, AccountAgentsGetParams, AccountAgentsGetResult, AccountAgentsListParams, AccountAgentsListResult, AccountAgentsRunsParams, AccountAgentsRunsResult, AccountReadState, AccountReset, AccountRowId, AccountUsage, AccountVaultCopyParams, AccountVaultCopyResult, AccountVaultListParams, AccountVaultListResult, AppFeatureStatus, AppInfo, AppKey, AppProfile, AppProfileId, AppProfileLocator, AppSupport, AppUsageReading, AppWindowInfo, AppsAccountsResetsParams, AppsAccountsResetsResult, AppsAccountsUsageParams, AppsAccountsUsageResult, AppsChatsChangedEvent, AppsChatsColdParams, AppsChatsColdResult, AppsChatsListParams, AppsChatsListResult, AppsChatsOpenParams, AppsChatsPlaceParams, AppsChatsPlaceResult, AppsChatsStarParams, AppsChatsStarResult, AppsChatsTitlesCheckParams, AppsChatsTitlesCheckResult, AppsChatsTitlesPushParams, AppsChatsTitlesPushResult, AppsChatsWatchParams, AppsChatsWatchResult, AppsChatsWatchStateEvent, AppsListParams, AppsListResult, AppsOpenParams, AppsOpenResult, AppsProfilesListParams, AppsProfilesListResult, AppsProfilesRemoveParams, AppsProfilesRemoveResult, AppsProfilesSaveParams, AppsProfilesSaveResult, AppsProjectsCopyParams, AppsProjectsCopyResult, AppsProjectsCreateParams, AppsProjectsCreateResult, AppsProjectsFileManyParams, AppsProjectsFileManyResult, AppsProjectsFileParams, AppsProjectsFileResult, AppsProjectsImportPinsParams, AppsProjectsImportPinsResult, AppsProjectsMoveParams, AppsProjectsMoveResult, AppsProjectsToWindowParams, AppsProjectsToWindowResult, AppsProjectsUnfileParams, AppsProjectsUnfileResult, AppsProjectsUpdateParams, AppsProjectsUpdateResult, AppsSpendParams, AppsSpendResult, AppsSyncRunParams, AppsSyncStatusParams, AppsSyncStatusResult, AppsWindowActionResult, AppsWindowsAddParams, AppsWindowsListParams, AppsWindowsListResult, AppsWindowsOpenParams, AppsWindowsProcessesParams, AppsWindowsProcessesResult, AppsWindowsRefreshUsageParams, AppsWindowsReloadParams, AppsWindowsReopenParams, AppsWindowsReopenResult, AppsWindowsRestartParams, AppsWindowsSaveNamesParams, AppsWindowsShownParams, AppsWindowsShownResult, AppsWindowsUpdateAndReopenParams, AppsWindowsUpdateAndReopenResult, AppsWindowsUpdateStateParams, AppsWindowsUpdateStateResult, AudioDevice, AudioDevicesParams, AudioDevicesResult, AudioLevelsParams, AudioLevelsResult, AudioPlayParams, AudioPlayResult, AudioRecordParams, AudioRecordResult, AudioSetLevelsParams, AutomationScriptParams, AutomationScriptResult, BrowserCallError, BrowserCallParams, BrowserCallPhase, BrowserCallResult, BrowserClientInstance, BrowserDisconnectParams, BrowserDisconnectResult, BrowserInvokeEvent, BrowserKind, BrowserLogMessage, BrowserLogParams, BrowserLogResult, BrowserPairCodeParams, BrowserPairCodeResult, BrowserPairRequest, BrowserPairResetParams, BrowserPairResult, BrowserProgressEvent, BrowserProgressParams, BrowserProgressResult, BrowserRegisterParams, BrowserRegisterResult, BrowserResetCountersParams, BrowserResetCountersResult, BrowserResultParams, BrowserResultResult, BrowserSession, BrowserSessionState, BrowserSessionsChangedEvent, BrowserSessionsParams, BrowserSessionsResult, BrowserSetEnabledParams, BrowserSetEnabledResult, BrowserToolMetric, BrowserToolMetricsParams, BrowserToolMetricsResult, CONTRACT_SHA256, CalendarCreateParams, CalendarCreateResult, CalendarEvent, CalendarListParams, CalendarListResult, type CatalogTool, type CellState, ChatAppProject, ChatFamily, ChatHidden, ChatId, ChatLastUse, ChatPin, ChatPlace, ChatProject, ChatProjectId, ChatRow, ChatRunning, ChatWindow, ClipboardReadParams, ClipboardReadResult, ClipboardWriteParams, ClipboardWriteResult, CodingActiveElsewhere, CodingActivityParams, CodingActivityResult, CodingAgentSelectionParams, CodingAgentSetParams, CodingAgentSetResult, CodingAgentsAccessParams, CodingAgentsAccessResult, CodingChangedEvent, CodingChatPreference, CodingClientRequestId, CodingDiscoverParams, CodingDiscoverResult, CodingDiscoveredChat, CodingFolderCheck, CodingFoldersCheckParams, CodingFoldersCheckResult, CodingFoldersCreateParams, CodingFoldersCreateResult, CodingFoldersRecentParams, CodingFoldersRecentResult, CodingGapEvent, CodingHistoryBlocked, CodingHistoryFailure, CodingHistoryImportMissingParams, CodingHistoryImportMissingResult, CodingHistoryParams, CodingHistoryProgressEvent, CodingHistoryRecord, CodingHistoryResult, CodingHistoryRun, CodingHistoryStep, CodingImportNextParams, CodingItemEvent, CodingItemFullParams, CodingItemFullResult, CodingOptionsSetParams, CodingOptionsSetResult, CodingPlanMissingParams, CodingPrefsListParams, CodingPrefsListResult, CodingPrefsSetParams, CodingPrefsSetResult, CodingProviderBinary, CodingProviderName, CodingProviderProblem, CodingProviderStatus, CodingProvidersParams, CodingProvidersResult, CodingQuotaWindow, CodingRecentFolder, CodingRecentRow, CodingRecentSeenParams, CodingRecentSeenResult, CodingReconcileParams, CodingReconcileResult, CodingRunRecord, CodingRunStatus, CodingRunUsage, CodingRunsListParams, CodingRunsListResult, CodingSearchParams, CodingSearchResult, CodingSendParams, CodingSendResult, CodingServiceCredentials, CodingServiceProgress, CodingSessionAgent, CodingSessionAgentPart, CodingSessionRecord, CodingSessionWatchParams, CodingSessionWatchResult, CodingSessionsListParams, CodingSessionsListResult, CodingStartParams, CodingStartResult, CodingStartedBy, CodingStopElsewhereParams, CodingStopElsewhereResult, CodingStopParams, CodingStopResult, CodingTakeoverParams, CodingTakeoverResult, CodingTitleStatus, CodingTitlesStatusParams, CodingTitlesStatusResult, CodingTranscriptItem, CodingTranscriptRawParams, CodingTranscriptRawResult, CodingTranscriptReadParams, CodingTranscriptReadResult, CodingWatchParams, CodingWatchResult, CodingWatchStateEvent, ColdChat, ContactDetail, ContactLabeled, ContactSummary, ContactsGetParams, ContactsGetResult, ContactsSearchParams, ContactsSearchResult, ContractHash, CoreToServiceMsg, DEFAULT_MAX_FRAME_PAYLOAD_BYTES, DEFAULT_MAX_MESSAGE_BYTES, DEFAULT_WINDOW_BYTES, DISCOVERY_FILE, DOCUMENTS_MAX_TEXT_CHARS, DesktopHealth, DeviceId, DiagErrorEntry, DiagErrorKind, DiagErrorStatus, DiagErrorsChangedEvent, DiagErrorsListParams, DiagErrorsListResult, DiagErrorsReportParams, DiagErrorsReportResult, DiagProcess, DocumentsImageResizeParams, DocumentsImageResizeResult, DocumentsOcrLine, DocumentsOcrParams, DocumentsOcrResult, DocumentsOfficeGenerateParams, DocumentsOfficeGenerateResult, DocumentsParagraph, DocumentsPdfPage, DocumentsPdfTextParams, DocumentsPdfTextResult, DocumentsSheet, EXCLUDED_TOOLS, EntitiesNerParams, EntitiesNerResult, EntitiesPiiParams, EntitiesPiiResult, EntitySpan, ExecCwdEvent, ExecExitedEvent, ExecJobId, ExecJobInfo, ExecJobListParams, ExecJobListResult, ExecJobOutputParams, ExecJobOutputResult, ExecJobStartParams, ExecJobStartResult, ExecJobStopParams, ExecJobStopResult, ExecListParams, ExecListResult, ExecPtyKillParams, ExecPtyKillResult, ExecPtyResizeParams, ExecPtyResizeResult, ExecPtySignalParams, ExecPtySignalResult, ExecPtyStartParams, ExecPtyStartResult, ExecPtyWriteParams, ExecPtyWriteResult, ExecRunParams, ExecRunResult, ExecTitleEvent, FIELDS_SINCE, type FieldsSincePath, FrameHeader, FsChange, FsChangedEvent, FsCopyParams, FsCopyResult, FsDeleteParams, FsDeleteResult, FsEncoding, FsEntry, FsInfoParams, FsInfoResult, FsKind, FsListParams, FsListResult, FsMkdirParams, FsMkdirResult, FsMoveParams, FsMoveResult, FsPatchEditApplied, FsPatchParams, FsPatchResult, FsReadParams, FsReadResult, FsReadStreamParams, FsReadStreamResult, FsSearchContentParams, FsSearchContentResult, FsSearchIndexParams, FsSearchIndexResult, FsSearchPathsParams, FsSearchPathsResult, FsStatParams, FsStatResult, FsWatchEventsParams, FsWatchEventsResult, FsWatchId, FsWatchParams, FsWatchResult, FsWatchStartParams, FsWatchStartResult, FsWatchStopParams, FsWatchStopResult, FsWriteParams, FsWriteResult, GIT_MAX_OUTPUT_CHARS, GitAddParams, GitBranchParams, GitBranchResult, GitCloneParams, GitCommitParams, GitCommitResult, GitDiffParams, GitDiffResult, GitLogCommit, GitLogParams, GitLogResult, GitOutputResult, GitPullParams, GitPushParams, GitStashParams, GitStatusFile, GitStatusParams, GitStatusResult, InputHotkeyParams, InputHotkeyResult, InputKey, InputKeyboardSettingsParams, InputKeyboardSettingsResult, InputMouseClickParams, InputMouseClickResult, InputMouseMoveParams, InputMouseMoveResult, InputPoint, InputSetKeyboardSettingsParams, InputTypeTextParams, InputTypeTextResult, LEGACY_ACTIONS, LEGACY_DISPATCHERS, type LegacyDisposition, LocationGetParams, LocationGetResult, MATRX_EXTENSION_IDS, MailAccount, MailAccountsParams, MailAccountsResult, MailListParams, MailListResult, MailMessage, MailSendParams, MailSendResult, MessagesChat, MessagesChatsParams, MessagesChatsResult, MessagesListParams, MessagesListResult, MessagesMessage, MessagesSendParams, MessagesSendResult, NULL_SINCE, NetAddress, NetBluetoothDevice, NetBluetoothParams, NetBluetoothResult, NetDevice, NetDevicesParams, NetDevicesResult, NetDownloadParams, NetDownloadResult, NetInfoParams, NetInfoResult, NetInterface, NetMdnsParams, NetMdnsResult, NetMdnsService, NetScanParams, NetScanResult, NetWifiNetwork, NetWifiParams, NetWifiResult, NoteEntry, NotesFolder, NotesFoldersParams, NotesFoldersResult, NotesListParams, NotesListResult, NotesMatch, NotesReadParams, NotesReadResult, NotesSearchParams, NotesSearchResult, NotesWriteParams, NotesWriteResult, OpName, OsGrantState, OsPermissionName, OsRequirementName, PERMISSIONS_SINCE, PROTOCOL_MAJOR, PROTOCOL_MINOR, PROTOCOL_VERSION, Photo, PhotosGetParams, PhotosGetResult, PhotosSearchParams, PhotosSearchResult, PiiKind, PowerEnergy, PowerHistoryParams, PowerHistoryPoint, PowerHistoryResult, PowerPreventSleepParams, PowerPreventSleepResult, PowerStatusParams, PowerStatusResult, ProcInfo, ProcKillParams, ProcKillResult, ProcListParams, ProcListResult, ProcPort, ProcPortsParams, ProcPortsResult, ProcSort, ProjectMoveChat, ProjectMoveGroup, ProjectMovePin, ProjectMoveSkip, ProtocolVersion, PtyInfo, REASONS_SINCE, RELAY_CALL_HELLO_ID, RELAY_CALL_REQUEST_ID, RELAY_CALL_VERSION_HEADER, RegistryValue, RegistryValueType, RelayAuthExpiringEvent, RelayCallEnvelope, RelayCallHello, RelayCallRequest, RelayCallResponse, RelayDeviceStatusEvent, RelayHopConnectionEnd, RelayHopEnvelopeHeader, RelayStatusResponse, Reminder, RemindersCreateParams, RemindersCreateResult, RemindersListParams, RemindersListResult, RequestId, ResourceId, ResourceInfo, ResourcesActivityParams, ResourcesActivityResult, ResourcesDisk, ResourcesIncident, ResourcesIncidentsParams, ResourcesIncidentsResult, ResourcesJob, ResourcesJobKind, ResourcesPressure, ResourcesProcess, ResourcesSample, ResourcesSnapshotParams, ResourcesSnapshotResult, ResourcesStopJobParams, ResourcesStopJobResult, ResourcesStrain, ResourcesVerdict, SERVICE_MAX_FRAME_BYTES, ScheduleCancelParams, ScheduleCancelResult, ScheduleCreateParams, ScheduleCreateResult, ScheduleListParams, ScheduleListResult, ScheduleRun, ScheduledTask, ScreenCaptureParams, ScreenCaptureResult, ScreenDisplay, ScreenListParams, ScreenListResult, ServiceCancel, ServiceErrorMsg, ServiceHello, ServiceName, ServicePing, ServicePong, ServiceProgressMsg, ServiceRequest, ServiceResponse, ServiceShutdown, ServiceToCoreMsg, ServiceToken, ServiceWelcome, SessionAttachParams, SessionAttachResult, SessionControlChangedEvent, SessionDetachParams, SessionDetachResult, SessionIdentifyParams, SessionIdentifyResult, SessionListParams, SessionListResult, SessionReleaseParams, SessionReleaseResult, ShownSection, Signal, SpendAccount, SpendChat, SpendDay, SpendHelper, SpendIdle, SpendIdleScope, SpendLive, SpendModel, SpendScopes, SpendSplit, SpendStart, StackErrorsParams, StackErrorsResult, StackEvent, StackLogsParams, StackLogsResult, StackRunResult, StackServer, StackServerActionParams, StackServerActionResult, StackServerName, StackStartParams, StackStateParams, StackStateResult, StackStopParams, StackTone, StaleTitleWindow, type StatusCell, type StatusEvidence, type StatusRow, SysinfoGetParams, SysinfoGetResult, SysinfoHardwareParams, SysinfoHardwareResult, SystemNotifyParams, SystemNotifyResult, SystemOpenPathParams, SystemOpenPathResult, SystemOpenSettingsParams, SystemOpenSettingsResult, SystemOpenUrlParams, SystemOpenUrlResult, SystemSettingsPane, TOOL_CATALOG, TOOL_GROUPS, TOOL_LEVELS, TOOL_PLATFORMS, TitleCopies, TitleMismatch, type ToolGroup, type ToolGroupId, ToolLevel, ToolLevelResult, ToolName, ToolOutcome, type ToolPath, ToolPlatform, ToolResultsFile, type ToolState, type ToolStatus, ToolTransport, ToolsParseFile, ToolsServiceProgress, ToolsWebBrowserFetchParams, ToolsWebBrowserFetchResult, ToolsWebScrapePage, ToolsWebScrapeParams, ToolsWebScrapeResult, ToolsWebSearchParams, VERSIONED_RESULT_OPS, VaultFieldSummary, VaultItemKind, VaultItemSummary, WEB_MAX_TEXT_CHARS, WebAttachTarget, WebBrowserFetchParams, WebBrowserFetchResult, WebFetchParams, WebFetchResult, WebHeader, WebLand, WebLogCaller, WebLogClearParams, WebLogClearResult, WebLogEntry, WebLogListParams, WebLogListResult, WebLogResult, WebLogVia, WebNotSavedReason, WebOutboxDiscardParams, WebOutboxDiscardResult, WebOutboxItem, WebOutboxListParams, WebOutboxListResult, WebOutboxRetryParams, WebOutboxRetryResult, WebProgressEvent, WebResearchFetchParams, WebResearchFetchResult, WebResearchItem, WebResearchItemState, WebResearchQueueParams, WebResearchQueueResult, WebRuntimeParams, WebRuntimeState, WebRuntimeStateName, WebScrapePage, WebScrapeParams, WebScrapeResult, WebSearchHit, WebSearchParams, WebSearchQueryResult, WebSearchResult, WebSourceNotice, WebSourceState, WindowFocusParams, WindowFocusResult, WindowInfo, WindowListParams, WindowListResult, WindowMinimizeParams, WindowMinimizeResult, WindowMoveParams, WindowMoveResult, WindowsEvent, WindowsEventLogParams, WindowsEventLogResult, WindowsFeature, WindowsFeaturesParams, WindowsFeaturesResult, WindowsRegistryReadParams, WindowsRegistryReadResult, WindowsRegistryWriteParams, WindowsRegistryWriteResult, WindowsService, WindowsServiceControlParams, WindowsServiceControlResult, WindowsServicesParams, WindowsServicesResult, announcedVersion, buildToolStatus, builtOps, compareVersions, epochMs, forPeer, knows, negotiate, nonNegInt, refusedOps, renderToolStatusMarkdown, sharedOpsBlocking, statusForPeer, toolsSending, u32, versionSubprotocol };