@ai-matrx/desktop-protocol 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,935 @@
1
+ import { z } from 'zod';
2
+ export { e as CancelMsg, f as ClientToCoreMsg, C as ClientType, g as CloseCode, h as CoreToClientMsg, j as CreditMsg, D as DesktopProtocolError, d as EVENTS, k as EndMsg, E as EndReason, l as ErrorCode, m as ErrorCodeName, n as ErrorData, o as ErrorMsg, p as ErrorReason, q as ErrorReasonName, r as EventMsg, s as EventName, H as HelloMsg, L as Limits, N as NAMED_SCHEMAS, t as NamedSchemaId, c as OPS, u as OpDescriptor, O as OpName, a as OpParams, b as OpResult, v as OpSpec, P as PING_TEXT, w as PONG_TEXT, x as ProtocolErrorBody, R as RelayMsg, y as RequestMsg, z as ResponseMsg, S as StreamMeta, A as StreamMsg, W as Welcome, i as isDesktopProtocolError } from './registry-DTcTGycI.cjs';
3
+ export { DecodedFrame, FRAME_HEADER_BYTES, FRAME_STRUCT_FORMAT, FRAME_VERSION, FrameChannel, FrameChannelValue, FrameFlag, assertFrameHeader, decodeFrame, encodeFrame, hasFlag, readCid, stampCid } from './frame.cjs';
4
+
5
+ /** @ai-matrx/desktop-protocol — version and primitive schemas. Schema source: lint-enforced rules in scripts/check-schema-source.mjs. */
6
+
7
+ declare const PROTOCOL_MAJOR: 1;
8
+ declare const PROTOCOL_MINOR: 0;
9
+ /** Internal building blocks — deliberately unnamed in $defs (inlined wherever used). */
10
+ declare const u32: z.ZodInt;
11
+ declare const nonNegInt: z.ZodInt;
12
+ /** Unix epoch milliseconds. */
13
+ declare const epochMs: z.ZodInt;
14
+ /** "major.minor". Same major = compatible (minor adds optional fields/ops only). */
15
+ declare const ProtocolVersion: z.ZodString;
16
+ type ProtocolVersion = z.output<typeof ProtocolVersion>;
17
+ /** Client-generated request id, unique per session. */
18
+ declare const RequestId: z.ZodString;
19
+ type RequestId = z.output<typeof RequestId>;
20
+ /** Long-lived resource handle minted by the core: "<kind>_<base62>" (pty_…, watch_…). */
21
+ declare const ResourceId: z.ZodString;
22
+ type ResourceId = z.output<typeof ResourceId>;
23
+ /**
24
+ * = app_instances.id. A plain pattern, NOT z.uuid(): z.uuid() emits `format: uuid` + `pattern`,
25
+ * which datamodel-codegen renders as `Annotated[UUID, Field(pattern=...)]` — a model Pydantic can
26
+ * never validate ("Unable to apply constraint 'pattern' … of type 'uuid'"). generate.ts now
27
+ * refuses format+pattern on one node so this class cannot come back.
28
+ */
29
+ declare const DeviceId: z.ZodString;
30
+ type DeviceId = z.output<typeof DeviceId>;
31
+ /**
32
+ * Absolute, normalized path: forward slashes on every OS, NFC. POSIX "/..." or Windows "C:/...".
33
+ * Normalization happens once, in the fs owner (SPEC §9); the wire never carries backslashes.
34
+ */
35
+ declare const AbsPath: z.ZodString;
36
+ type AbsPath = z.output<typeof AbsPath>;
37
+
38
+ /** @ai-matrx/desktop-protocol — binary frame header and flow-control constants. Schema source: lint-enforced rules in scripts/check-schema-source.mjs. */
39
+
40
+ /** Zod twin of the codec's FrameHeader (layout documented in src/frame.ts) — for $defs and Pydantic. */
41
+ declare const FrameHeader: z.ZodObject<{
42
+ version: z.ZodLiteral<1>;
43
+ flags: z.ZodInt;
44
+ channel: z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<255>]>;
45
+ cid: z.ZodInt;
46
+ sid: z.ZodInt;
47
+ seq: z.ZodInt;
48
+ }, z.core.$strict>;
49
+ type FrameHeader = z.infer<typeof FrameHeader>;
50
+ declare const DEFAULT_WINDOW_BYTES: 262144;
51
+ declare const DEFAULT_MAX_FRAME_PAYLOAD_BYTES: 65536;
52
+ declare const DEFAULT_MAX_MESSAGE_BYTES: 8388608;
53
+
54
+ /** @ai-matrx/desktop-protocol — cap sysinfo. Schema source: lint-enforced rules in scripts/check-schema-source.mjs. */
55
+
56
+ declare const OsPermissionName: z.ZodEnum<{
57
+ full_disk_access: "full_disk_access";
58
+ accessibility: "accessibility";
59
+ screen_recording: "screen_recording";
60
+ microphone: "microphone";
61
+ camera: "camera";
62
+ automation: "automation";
63
+ contacts: "contacts";
64
+ calendars: "calendars";
65
+ photos: "photos";
66
+ location: "location";
67
+ local_network: "local_network";
68
+ bluetooth: "bluetooth";
69
+ notifications: "notifications";
70
+ }>;
71
+ type OsPermissionName = z.output<typeof OsPermissionName>;
72
+ declare const SysinfoGetParams: z.ZodObject<{}, z.core.$strict>;
73
+ type SysinfoGetParams = z.output<typeof SysinfoGetParams>;
74
+ declare const SysinfoGetResult: z.ZodObject<{
75
+ device_id: z.ZodString;
76
+ device_name: z.ZodString;
77
+ hostname: z.ZodString;
78
+ platform: z.ZodEnum<{
79
+ darwin: "darwin";
80
+ win32: "win32";
81
+ linux: "linux";
82
+ }>;
83
+ os_version: z.ZodString;
84
+ arch: z.ZodEnum<{
85
+ arm64: "arm64";
86
+ x64: "x64";
87
+ }>;
88
+ app_version: z.ZodString;
89
+ protocol_version: z.ZodString;
90
+ user: z.ZodObject<{
91
+ username: z.ZodString;
92
+ shell: z.ZodString;
93
+ }, z.core.$strict>;
94
+ paths: z.ZodObject<{
95
+ home: z.ZodString;
96
+ desktop: z.ZodString;
97
+ documents: z.ZodString;
98
+ downloads: z.ZodString;
99
+ app_data: z.ZodString;
100
+ temp: z.ZodString;
101
+ }, z.core.$strict>;
102
+ cpu: z.ZodObject<{
103
+ model: z.ZodString;
104
+ cores: z.ZodInt;
105
+ }, z.core.$strict>;
106
+ memory: z.ZodObject<{
107
+ total_bytes: z.ZodInt;
108
+ free_bytes: z.ZodInt;
109
+ }, z.core.$strict>;
110
+ uptime_seconds: z.ZodInt;
111
+ on_battery: z.ZodNullable<z.ZodBoolean>;
112
+ sleep_prevented: z.ZodBoolean;
113
+ permissions: z.ZodArray<z.ZodObject<{
114
+ name: z.ZodEnum<{
115
+ full_disk_access: "full_disk_access";
116
+ accessibility: "accessibility";
117
+ screen_recording: "screen_recording";
118
+ microphone: "microphone";
119
+ camera: "camera";
120
+ automation: "automation";
121
+ contacts: "contacts";
122
+ calendars: "calendars";
123
+ photos: "photos";
124
+ location: "location";
125
+ local_network: "local_network";
126
+ bluetooth: "bluetooth";
127
+ notifications: "notifications";
128
+ }>;
129
+ state: z.ZodEnum<{
130
+ granted: "granted";
131
+ denied: "denied";
132
+ not_determined: "not_determined";
133
+ not_applicable: "not_applicable";
134
+ }>;
135
+ settings_url: z.ZodNullable<z.ZodString>;
136
+ }, z.core.$strict>>;
137
+ }, z.core.$strict>;
138
+ type SysinfoGetResult = z.output<typeof SysinfoGetResult>;
139
+
140
+ /** @ai-matrx/desktop-protocol — cap fs. Schema source: lint-enforced rules in scripts/check-schema-source.mjs. */
141
+
142
+ declare const FsKind: z.ZodEnum<{
143
+ file: "file";
144
+ dir: "dir";
145
+ symlink: "symlink";
146
+ }>;
147
+ type FsKind = z.output<typeof FsKind>;
148
+ /** = daemon get_stat_dict(), plus mtime in ms and hidden. */
149
+ declare const FsEntry: z.ZodObject<{
150
+ name: z.ZodString;
151
+ path: z.ZodString;
152
+ kind: z.ZodEnum<{
153
+ file: "file";
154
+ dir: "dir";
155
+ symlink: "symlink";
156
+ }>;
157
+ size: z.ZodInt;
158
+ mtime: z.ZodNumber;
159
+ mtime_ms: z.ZodInt;
160
+ mode: z.ZodInt;
161
+ target: z.ZodNullable<z.ZodString>;
162
+ hidden: z.ZodBoolean;
163
+ }, z.core.$strict>;
164
+ type FsEntry = z.output<typeof FsEntry>;
165
+ declare const FsListParams: z.ZodObject<{
166
+ path: z.ZodString;
167
+ recursive: z.ZodDefault<z.ZodBoolean>;
168
+ depth: z.ZodDefault<z.ZodInt>;
169
+ pattern: z.ZodOptional<z.ZodString>;
170
+ limit: z.ZodDefault<z.ZodInt>;
171
+ page_token: z.ZodOptional<z.ZodString>;
172
+ show_hidden: z.ZodDefault<z.ZodBoolean>;
173
+ sort: z.ZodDefault<z.ZodEnum<{
174
+ kind: "kind";
175
+ name: "name";
176
+ size: "size";
177
+ mtime: "mtime";
178
+ }>>;
179
+ }, z.core.$strict>;
180
+ type FsListParams = z.output<typeof FsListParams>;
181
+ declare const FsListResult: z.ZodObject<{
182
+ entries: z.ZodArray<z.ZodObject<{
183
+ name: z.ZodString;
184
+ path: z.ZodString;
185
+ kind: z.ZodEnum<{
186
+ file: "file";
187
+ dir: "dir";
188
+ symlink: "symlink";
189
+ }>;
190
+ size: z.ZodInt;
191
+ mtime: z.ZodNumber;
192
+ mtime_ms: z.ZodInt;
193
+ mode: z.ZodInt;
194
+ target: z.ZodNullable<z.ZodString>;
195
+ hidden: z.ZodBoolean;
196
+ }, z.core.$strict>>;
197
+ truncated: z.ZodBoolean;
198
+ next_page_token: z.ZodNullable<z.ZodString>;
199
+ scanned: z.ZodInt;
200
+ }, z.core.$strict>;
201
+ type FsListResult = z.output<typeof FsListResult>;
202
+ declare const FsStatParams: z.ZodObject<{
203
+ path: z.ZodString;
204
+ }, z.core.$strict>;
205
+ type FsStatParams = z.output<typeof FsStatParams>;
206
+ declare const FsStatResult: z.ZodObject<{
207
+ name: z.ZodString;
208
+ path: z.ZodString;
209
+ kind: z.ZodEnum<{
210
+ file: "file";
211
+ dir: "dir";
212
+ symlink: "symlink";
213
+ }>;
214
+ size: z.ZodInt;
215
+ mtime: z.ZodNumber;
216
+ mtime_ms: z.ZodInt;
217
+ mode: z.ZodInt;
218
+ target: z.ZodNullable<z.ZodString>;
219
+ hidden: z.ZodBoolean;
220
+ }, z.core.$strict>;
221
+ type FsStatResult = z.output<typeof FsStatResult>;
222
+ declare const FsEncoding: z.ZodEnum<{
223
+ utf8: "utf8";
224
+ base64: "base64";
225
+ }>;
226
+ type FsEncoding = z.output<typeof FsEncoding>;
227
+ /** Bounded read. offset = byte offset; limit = chars (utf8) or bytes (base64), as the daemon. */
228
+ declare const FsReadParams: z.ZodObject<{
229
+ path: z.ZodString;
230
+ encoding: z.ZodDefault<z.ZodEnum<{
231
+ utf8: "utf8";
232
+ base64: "base64";
233
+ }>>;
234
+ offset: z.ZodDefault<z.ZodInt>;
235
+ limit: z.ZodDefault<z.ZodInt>;
236
+ }, z.core.$strict>;
237
+ type FsReadParams = z.output<typeof FsReadParams>;
238
+ declare const FsReadResult: z.ZodObject<{
239
+ content: z.ZodString;
240
+ encoding: z.ZodEnum<{
241
+ utf8: "utf8";
242
+ base64: "base64";
243
+ }>;
244
+ size: z.ZodInt;
245
+ offset: z.ZodInt;
246
+ next_offset: z.ZodInt;
247
+ truncated: z.ZodBoolean;
248
+ mime: z.ZodNullable<z.ZodString>;
249
+ mtime_ms: z.ZodInt;
250
+ }, z.core.$strict>;
251
+ type FsReadResult = z.output<typeof FsReadResult>;
252
+ /** Whole-file or ranged download as binary frames (channel DATA, credited). */
253
+ declare const FsReadStreamParams: z.ZodObject<{
254
+ path: z.ZodString;
255
+ offset: z.ZodDefault<z.ZodInt>;
256
+ length: z.ZodOptional<z.ZodInt>;
257
+ window_bytes: z.ZodOptional<z.ZodInt>;
258
+ }, z.core.$strict>;
259
+ type FsReadStreamParams = z.output<typeof FsReadStreamParams>;
260
+ /** Unary result arrives first (size/mime), then stream{open} + DATA frames + end. */
261
+ declare const FsReadStreamResult: z.ZodObject<{
262
+ size: z.ZodInt;
263
+ mime: z.ZodNullable<z.ZodString>;
264
+ mtime_ms: z.ZodInt;
265
+ }, z.core.$strict>;
266
+ type FsReadStreamResult = z.output<typeof FsReadStreamResult>;
267
+ declare const FsWriteParams: z.ZodObject<{
268
+ path: z.ZodString;
269
+ content: z.ZodString;
270
+ encoding: z.ZodDefault<z.ZodEnum<{
271
+ utf8: "utf8";
272
+ base64: "base64";
273
+ }>>;
274
+ mode: z.ZodOptional<z.ZodInt>;
275
+ create_parents: z.ZodDefault<z.ZodBoolean>;
276
+ if_match_mtime_ms: z.ZodOptional<z.ZodInt>;
277
+ exclusive: z.ZodDefault<z.ZodBoolean>;
278
+ }, z.core.$strict>;
279
+ type FsWriteParams = z.output<typeof FsWriteParams>;
280
+ /** Writes are atomic: temp file in the same directory + rename (daemon parity). */
281
+ declare const FsWriteResult: z.ZodObject<{
282
+ path: z.ZodString;
283
+ size: z.ZodInt;
284
+ mtime_ms: z.ZodInt;
285
+ created: z.ZodBoolean;
286
+ }, z.core.$strict>;
287
+ type FsWriteResult = z.output<typeof FsWriteResult>;
288
+ declare const FsMkdirParams: z.ZodObject<{
289
+ path: z.ZodString;
290
+ parents: z.ZodDefault<z.ZodBoolean>;
291
+ }, z.core.$strict>;
292
+ type FsMkdirParams = z.output<typeof FsMkdirParams>;
293
+ declare const FsMkdirResult: z.ZodObject<{
294
+ path: z.ZodString;
295
+ created: z.ZodBoolean;
296
+ }, z.core.$strict>;
297
+ type FsMkdirResult = z.output<typeof FsMkdirResult>;
298
+ /** = daemon RenameRequest (/fs/rename). */
299
+ declare const FsMoveParams: z.ZodObject<{
300
+ from_path: z.ZodString;
301
+ to_path: z.ZodString;
302
+ overwrite: z.ZodDefault<z.ZodBoolean>;
303
+ }, z.core.$strict>;
304
+ type FsMoveParams = z.output<typeof FsMoveParams>;
305
+ declare const FsMoveResult: z.ZodObject<{
306
+ from_path: z.ZodString;
307
+ to_path: z.ZodString;
308
+ }, z.core.$strict>;
309
+ type FsMoveResult = z.output<typeof FsMoveResult>;
310
+ /**
311
+ * Delete. Default goes to the OS Trash (Finder/Explorer semantics: undoable from the phone's
312
+ * "Undo" toast via fs.move back). to_trash:false is a permanent delete — the daemon's behaviour,
313
+ * used by agents through _sandbox_proxy.
314
+ */
315
+ declare const FsDeleteParams: z.ZodObject<{
316
+ path: z.ZodString;
317
+ recursive: z.ZodDefault<z.ZodBoolean>;
318
+ to_trash: z.ZodDefault<z.ZodBoolean>;
319
+ }, z.core.$strict>;
320
+ type FsDeleteParams = z.output<typeof FsDeleteParams>;
321
+ declare const FsDeleteResult: z.ZodObject<{
322
+ deleted: z.ZodLiteral<true>;
323
+ trashed_to: z.ZodNullable<z.ZodString>;
324
+ }, z.core.$strict>;
325
+ type FsDeleteResult = z.output<typeof FsDeleteResult>;
326
+ /** Opens a watch resource; changes arrive as event fs.changed with resourceId. */
327
+ declare const FsWatchParams: z.ZodObject<{
328
+ path: z.ZodString;
329
+ recursive: z.ZodDefault<z.ZodBoolean>;
330
+ ignore: z.ZodDefault<z.ZodArray<z.ZodString>>;
331
+ debounce_ms: z.ZodDefault<z.ZodInt>;
332
+ }, z.core.$strict>;
333
+ type FsWatchParams = z.output<typeof FsWatchParams>;
334
+ declare const FsWatchResult: z.ZodObject<{
335
+ resource_id: z.ZodString;
336
+ path: z.ZodString;
337
+ }, z.core.$strict>;
338
+ type FsWatchResult = z.output<typeof FsWatchResult>;
339
+ /** = daemon EditChunk / PatchRequest (/fs/patch). */
340
+ declare const FsPatchParams: z.ZodObject<{
341
+ path: z.ZodString;
342
+ edits: z.ZodArray<z.ZodObject<{
343
+ old_text: z.ZodString;
344
+ new_text: z.ZodString;
345
+ replace_all: z.ZodDefault<z.ZodBoolean>;
346
+ }, z.core.$strict>>;
347
+ create_if_missing: z.ZodDefault<z.ZodBoolean>;
348
+ }, z.core.$strict>;
349
+ type FsPatchParams = z.output<typeof FsPatchParams>;
350
+ declare const FsPatchResult: z.ZodObject<{
351
+ path: z.ZodString;
352
+ applied: z.ZodInt;
353
+ size: z.ZodInt;
354
+ mtime_ms: z.ZodInt;
355
+ }, z.core.$strict>;
356
+ type FsPatchResult = z.output<typeof FsPatchResult>;
357
+ /** = daemon SearchPathRequest (/search/paths). */
358
+ declare const FsSearchPathsParams: z.ZodObject<{
359
+ pattern: z.ZodString;
360
+ cwd: z.ZodString;
361
+ hidden: z.ZodDefault<z.ZodBoolean>;
362
+ max_results: z.ZodDefault<z.ZodInt>;
363
+ }, z.core.$strict>;
364
+ type FsSearchPathsParams = z.output<typeof FsSearchPathsParams>;
365
+ declare const FsSearchPathsResult: z.ZodObject<{
366
+ paths: z.ZodArray<z.ZodString>;
367
+ truncated: z.ZodBoolean;
368
+ }, z.core.$strict>;
369
+ type FsSearchPathsResult = z.output<typeof FsSearchPathsResult>;
370
+ /** = daemon SearchContentRequest (/search/content). */
371
+ declare const FsSearchContentParams: z.ZodObject<{
372
+ query: z.ZodString;
373
+ cwd: z.ZodString;
374
+ regex: z.ZodDefault<z.ZodBoolean>;
375
+ case_sensitive: z.ZodDefault<z.ZodBoolean>;
376
+ include: z.ZodOptional<z.ZodArray<z.ZodString>>;
377
+ exclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
378
+ max_results: z.ZodDefault<z.ZodInt>;
379
+ }, z.core.$strict>;
380
+ type FsSearchContentParams = z.output<typeof FsSearchContentParams>;
381
+ declare const FsSearchContentResult: z.ZodObject<{
382
+ results: z.ZodArray<z.ZodObject<{
383
+ path: z.ZodString;
384
+ lines: z.ZodString;
385
+ line_number: z.ZodInt;
386
+ submatches: z.ZodArray<z.ZodObject<{
387
+ match: z.ZodString;
388
+ start: z.ZodInt;
389
+ end: z.ZodInt;
390
+ }, z.core.$strict>>;
391
+ }, z.core.$strict>>;
392
+ truncated: z.ZodBoolean;
393
+ }, z.core.$strict>;
394
+ type FsSearchContentResult = z.output<typeof FsSearchContentResult>;
395
+ declare const FsChange: z.ZodObject<{
396
+ type: z.ZodEnum<{
397
+ created: "created";
398
+ deleted: "deleted";
399
+ modified: "modified";
400
+ moved: "moved";
401
+ }>;
402
+ path: z.ZodString;
403
+ to_path: z.ZodOptional<z.ZodString>;
404
+ kind: z.ZodEnum<{
405
+ unknown: "unknown";
406
+ file: "file";
407
+ dir: "dir";
408
+ symlink: "symlink";
409
+ }>;
410
+ }, z.core.$strict>;
411
+ type FsChange = z.output<typeof FsChange>;
412
+ declare const FsChangedEvent: z.ZodObject<{
413
+ changes: z.ZodArray<z.ZodObject<{
414
+ type: z.ZodEnum<{
415
+ created: "created";
416
+ deleted: "deleted";
417
+ modified: "modified";
418
+ moved: "moved";
419
+ }>;
420
+ path: z.ZodString;
421
+ to_path: z.ZodOptional<z.ZodString>;
422
+ kind: z.ZodEnum<{
423
+ unknown: "unknown";
424
+ file: "file";
425
+ dir: "dir";
426
+ symlink: "symlink";
427
+ }>;
428
+ }, z.core.$strict>>;
429
+ overflow: z.ZodBoolean;
430
+ }, z.core.$strict>;
431
+ type FsChangedEvent = z.output<typeof FsChangedEvent>;
432
+
433
+ /** @ai-matrx/desktop-protocol — cap exec. Schema source: lint-enforced rules in scripts/check-schema-source.mjs. */
434
+
435
+ declare const Signal: z.ZodEnum<{
436
+ SIGINT: "SIGINT";
437
+ SIGTERM: "SIGTERM";
438
+ SIGKILL: "SIGKILL";
439
+ SIGHUP: "SIGHUP";
440
+ SIGQUIT: "SIGQUIT";
441
+ SIGTSTP: "SIGTSTP";
442
+ SIGCONT: "SIGCONT";
443
+ SIGUSR1: "SIGUSR1";
444
+ SIGUSR2: "SIGUSR2";
445
+ }>;
446
+ type Signal = z.output<typeof Signal>;
447
+ /**
448
+ * Start a PTY. Response result = PtyInfo; the same request id then carries the output stream:
449
+ * stream{meta:{kind:"open",sid,resource_id}} → DATA frames (credited) → end{reason}.
450
+ * Input goes as STDIN frames on that sid (cheap per keystroke) or via exec.pty.write.
451
+ */
452
+ declare const ExecPtyStartParams: z.ZodObject<{
453
+ cols: z.ZodInt;
454
+ rows: z.ZodInt;
455
+ cwd: z.ZodOptional<z.ZodString>;
456
+ shell: z.ZodOptional<z.ZodString>;
457
+ args: z.ZodOptional<z.ZodArray<z.ZodString>>;
458
+ env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
459
+ name: z.ZodOptional<z.ZodString>;
460
+ window_bytes: z.ZodOptional<z.ZodInt>;
461
+ }, z.core.$strict>;
462
+ type ExecPtyStartParams = z.output<typeof ExecPtyStartParams>;
463
+ declare const PtyInfo: z.ZodObject<{
464
+ resource_id: z.ZodString;
465
+ pid: z.ZodInt;
466
+ shell: z.ZodString;
467
+ cwd: z.ZodString;
468
+ title: z.ZodString;
469
+ name: z.ZodNullable<z.ZodString>;
470
+ cols: z.ZodInt;
471
+ rows: z.ZodInt;
472
+ state: z.ZodEnum<{
473
+ running: "running";
474
+ exited: "exited";
475
+ }>;
476
+ exit_code: z.ZodNullable<z.ZodInt>;
477
+ exit_signal: z.ZodNullable<z.ZodEnum<{
478
+ SIGINT: "SIGINT";
479
+ SIGTERM: "SIGTERM";
480
+ SIGKILL: "SIGKILL";
481
+ SIGHUP: "SIGHUP";
482
+ SIGQUIT: "SIGQUIT";
483
+ SIGTSTP: "SIGTSTP";
484
+ SIGCONT: "SIGCONT";
485
+ SIGUSR1: "SIGUSR1";
486
+ SIGUSR2: "SIGUSR2";
487
+ }>>;
488
+ last_seq: z.ZodInt;
489
+ created_at_ms: z.ZodInt;
490
+ controller_client_id: z.ZodNullable<z.ZodString>;
491
+ attached_clients: z.ZodInt;
492
+ orphan_expires_at_ms: z.ZodNullable<z.ZodInt>;
493
+ }, z.core.$strict>;
494
+ type PtyInfo = z.output<typeof PtyInfo>;
495
+ declare const ExecPtyStartResult: z.ZodObject<{
496
+ resource_id: z.ZodString;
497
+ pid: z.ZodInt;
498
+ shell: z.ZodString;
499
+ cwd: z.ZodString;
500
+ title: z.ZodString;
501
+ name: z.ZodNullable<z.ZodString>;
502
+ cols: z.ZodInt;
503
+ rows: z.ZodInt;
504
+ state: z.ZodEnum<{
505
+ running: "running";
506
+ exited: "exited";
507
+ }>;
508
+ exit_code: z.ZodNullable<z.ZodInt>;
509
+ exit_signal: z.ZodNullable<z.ZodEnum<{
510
+ SIGINT: "SIGINT";
511
+ SIGTERM: "SIGTERM";
512
+ SIGKILL: "SIGKILL";
513
+ SIGHUP: "SIGHUP";
514
+ SIGQUIT: "SIGQUIT";
515
+ SIGTSTP: "SIGTSTP";
516
+ SIGCONT: "SIGCONT";
517
+ SIGUSR1: "SIGUSR1";
518
+ SIGUSR2: "SIGUSR2";
519
+ }>>;
520
+ last_seq: z.ZodInt;
521
+ created_at_ms: z.ZodInt;
522
+ controller_client_id: z.ZodNullable<z.ZodString>;
523
+ attached_clients: z.ZodInt;
524
+ orphan_expires_at_ms: z.ZodNullable<z.ZodInt>;
525
+ }, z.core.$strict>;
526
+ type ExecPtyStartResult = z.output<typeof ExecPtyStartResult>;
527
+ declare const ExecPtyWriteParams: z.ZodObject<{
528
+ resource_id: z.ZodString;
529
+ data: z.ZodString;
530
+ }, z.core.$strict>;
531
+ type ExecPtyWriteParams = z.output<typeof ExecPtyWriteParams>;
532
+ declare const ExecPtyWriteResult: z.ZodObject<{
533
+ written: z.ZodInt;
534
+ }, z.core.$strict>;
535
+ type ExecPtyWriteResult = z.output<typeof ExecPtyWriteResult>;
536
+ declare const ExecPtyResizeParams: z.ZodObject<{
537
+ resource_id: z.ZodString;
538
+ cols: z.ZodInt;
539
+ rows: z.ZodInt;
540
+ }, z.core.$strict>;
541
+ type ExecPtyResizeParams = z.output<typeof ExecPtyResizeParams>;
542
+ declare const ExecPtyResizeResult: z.ZodObject<{
543
+ cols: z.ZodInt;
544
+ rows: z.ZodInt;
545
+ }, z.core.$strict>;
546
+ type ExecPtyResizeResult = z.output<typeof ExecPtyResizeResult>;
547
+ /** Delivered to the PTY's foreground process group (daemon parity: tcgetpgrp + killpg). */
548
+ declare const ExecPtySignalParams: z.ZodObject<{
549
+ resource_id: z.ZodString;
550
+ signal: z.ZodEnum<{
551
+ SIGINT: "SIGINT";
552
+ SIGTERM: "SIGTERM";
553
+ SIGKILL: "SIGKILL";
554
+ SIGHUP: "SIGHUP";
555
+ SIGQUIT: "SIGQUIT";
556
+ SIGTSTP: "SIGTSTP";
557
+ SIGCONT: "SIGCONT";
558
+ SIGUSR1: "SIGUSR1";
559
+ SIGUSR2: "SIGUSR2";
560
+ }>;
561
+ }, z.core.$strict>;
562
+ type ExecPtySignalParams = z.output<typeof ExecPtySignalParams>;
563
+ declare const ExecPtySignalResult: z.ZodObject<{
564
+ delivered: z.ZodBoolean;
565
+ }, z.core.$strict>;
566
+ type ExecPtySignalResult = z.output<typeof ExecPtySignalResult>;
567
+ /** SIGHUP the session, SIGKILL after grace_ms, reap, free the resource. Idempotent. */
568
+ declare const ExecPtyKillParams: z.ZodObject<{
569
+ resource_id: z.ZodString;
570
+ grace_ms: z.ZodDefault<z.ZodInt>;
571
+ }, z.core.$strict>;
572
+ type ExecPtyKillParams = z.output<typeof ExecPtyKillParams>;
573
+ declare const ExecPtyKillResult: z.ZodObject<{
574
+ exit_code: z.ZodNullable<z.ZodInt>;
575
+ exit_signal: z.ZodNullable<z.ZodEnum<{
576
+ SIGINT: "SIGINT";
577
+ SIGTERM: "SIGTERM";
578
+ SIGKILL: "SIGKILL";
579
+ SIGHUP: "SIGHUP";
580
+ SIGQUIT: "SIGQUIT";
581
+ SIGTSTP: "SIGTSTP";
582
+ SIGCONT: "SIGCONT";
583
+ SIGUSR1: "SIGUSR1";
584
+ SIGUSR2: "SIGUSR2";
585
+ }>>;
586
+ }, z.core.$strict>;
587
+ type ExecPtyKillResult = z.output<typeof ExecPtyKillResult>;
588
+ declare const ExecListParams: z.ZodObject<{}, z.core.$strict>;
589
+ type ExecListParams = z.output<typeof ExecListParams>;
590
+ declare const ExecListResult: z.ZodObject<{
591
+ sessions: z.ZodArray<z.ZodObject<{
592
+ resource_id: z.ZodString;
593
+ pid: z.ZodInt;
594
+ shell: z.ZodString;
595
+ cwd: z.ZodString;
596
+ title: z.ZodString;
597
+ name: z.ZodNullable<z.ZodString>;
598
+ cols: z.ZodInt;
599
+ rows: z.ZodInt;
600
+ state: z.ZodEnum<{
601
+ running: "running";
602
+ exited: "exited";
603
+ }>;
604
+ exit_code: z.ZodNullable<z.ZodInt>;
605
+ exit_signal: z.ZodNullable<z.ZodEnum<{
606
+ SIGINT: "SIGINT";
607
+ SIGTERM: "SIGTERM";
608
+ SIGKILL: "SIGKILL";
609
+ SIGHUP: "SIGHUP";
610
+ SIGQUIT: "SIGQUIT";
611
+ SIGTSTP: "SIGTSTP";
612
+ SIGCONT: "SIGCONT";
613
+ SIGUSR1: "SIGUSR1";
614
+ SIGUSR2: "SIGUSR2";
615
+ }>>;
616
+ last_seq: z.ZodInt;
617
+ created_at_ms: z.ZodInt;
618
+ controller_client_id: z.ZodNullable<z.ZodString>;
619
+ attached_clients: z.ZodInt;
620
+ orphan_expires_at_ms: z.ZodNullable<z.ZodInt>;
621
+ }, z.core.$strict>>;
622
+ }, z.core.$strict>;
623
+ type ExecListResult = z.output<typeof ExecListResult>;
624
+ /**
625
+ * One-shot command (agents, via _sandbox_proxy → /exec). Timeout ENFORCED (exit 124, daemon
626
+ * convention). cwd is sticky per cwd_key: a later run with the same key and no cwd starts where
627
+ * the last one ended (SPEC §6.1: "cd sub && pwd" then "pwd").
628
+ */
629
+ declare const ExecRunParams: z.ZodObject<{
630
+ command: z.ZodString;
631
+ cwd: z.ZodOptional<z.ZodString>;
632
+ cwd_key: z.ZodOptional<z.ZodString>;
633
+ env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
634
+ stdin: z.ZodOptional<z.ZodString>;
635
+ timeout: z.ZodDefault<z.ZodInt>;
636
+ max_output_bytes: z.ZodDefault<z.ZodInt>;
637
+ }, z.core.$strict>;
638
+ type ExecRunParams = z.output<typeof ExecRunParams>;
639
+ declare const ExecRunResult: z.ZodObject<{
640
+ exit_code: z.ZodInt;
641
+ stdout: z.ZodString;
642
+ stderr: z.ZodString;
643
+ cwd: z.ZodString;
644
+ duration_ms: z.ZodInt;
645
+ timed_out: z.ZodBoolean;
646
+ output_truncated: z.ZodBoolean;
647
+ }, z.core.$strict>;
648
+ type ExecRunResult = z.output<typeof ExecRunResult>;
649
+ declare const ExecExitedEvent: z.ZodObject<{
650
+ exit_code: z.ZodNullable<z.ZodInt>;
651
+ exit_signal: z.ZodNullable<z.ZodEnum<{
652
+ SIGINT: "SIGINT";
653
+ SIGTERM: "SIGTERM";
654
+ SIGKILL: "SIGKILL";
655
+ SIGHUP: "SIGHUP";
656
+ SIGQUIT: "SIGQUIT";
657
+ SIGTSTP: "SIGTSTP";
658
+ SIGCONT: "SIGCONT";
659
+ SIGUSR1: "SIGUSR1";
660
+ SIGUSR2: "SIGUSR2";
661
+ }>>;
662
+ }, z.core.$strict>;
663
+ type ExecExitedEvent = z.output<typeof ExecExitedEvent>;
664
+ declare const ExecTitleEvent: z.ZodObject<{
665
+ title: z.ZodString;
666
+ }, z.core.$strict>;
667
+ type ExecTitleEvent = z.output<typeof ExecTitleEvent>;
668
+ declare const ExecCwdEvent: z.ZodObject<{
669
+ cwd: z.ZodString;
670
+ }, z.core.$strict>;
671
+ type ExecCwdEvent = z.output<typeof ExecCwdEvent>;
672
+
673
+ /** @ai-matrx/desktop-protocol — cap session. Schema source: lint-enforced rules in scripts/check-schema-source.mjs. */
674
+
675
+ /**
676
+ * Reattach after a drop. mode "control" by the same user takes control (previous controller is
677
+ * demoted to read_only and gets session.control_changed). since_seq = last seq the client
678
+ * rendered: frames (since_seq, last_seq] are replayed from the ring with the REPLAY flag; if they
679
+ * have left the ring, stream{gap} + stream{snapshot} + SNAPSHOT frames come first.
680
+ * Response = PtyInfo|FsWatchResult-shaped ResourceInfo; then the stream continues on a new sid.
681
+ */
682
+ declare const SessionAttachParams: z.ZodObject<{
683
+ resource_id: z.ZodString;
684
+ mode: z.ZodDefault<z.ZodEnum<{
685
+ control: "control";
686
+ read_only: "read_only";
687
+ }>>;
688
+ since_seq: z.ZodOptional<z.ZodInt>;
689
+ window_bytes: z.ZodOptional<z.ZodInt>;
690
+ }, z.core.$strict>;
691
+ type SessionAttachParams = z.output<typeof SessionAttachParams>;
692
+ declare const ResourceInfo: z.ZodDiscriminatedUnion<[z.ZodObject<{
693
+ kind: z.ZodLiteral<"pty">;
694
+ pty: z.ZodObject<{
695
+ resource_id: z.ZodString;
696
+ pid: z.ZodInt;
697
+ shell: z.ZodString;
698
+ cwd: z.ZodString;
699
+ title: z.ZodString;
700
+ name: z.ZodNullable<z.ZodString>;
701
+ cols: z.ZodInt;
702
+ rows: z.ZodInt;
703
+ state: z.ZodEnum<{
704
+ running: "running";
705
+ exited: "exited";
706
+ }>;
707
+ exit_code: z.ZodNullable<z.ZodInt>;
708
+ exit_signal: z.ZodNullable<z.ZodEnum<{
709
+ SIGINT: "SIGINT";
710
+ SIGTERM: "SIGTERM";
711
+ SIGKILL: "SIGKILL";
712
+ SIGHUP: "SIGHUP";
713
+ SIGQUIT: "SIGQUIT";
714
+ SIGTSTP: "SIGTSTP";
715
+ SIGCONT: "SIGCONT";
716
+ SIGUSR1: "SIGUSR1";
717
+ SIGUSR2: "SIGUSR2";
718
+ }>>;
719
+ last_seq: z.ZodInt;
720
+ created_at_ms: z.ZodInt;
721
+ controller_client_id: z.ZodNullable<z.ZodString>;
722
+ attached_clients: z.ZodInt;
723
+ orphan_expires_at_ms: z.ZodNullable<z.ZodInt>;
724
+ }, z.core.$strict>;
725
+ }, z.core.$strict>, z.ZodObject<{
726
+ kind: z.ZodLiteral<"watch">;
727
+ resource_id: z.ZodString;
728
+ path: z.ZodString;
729
+ orphan_expires_at_ms: z.ZodNullable<z.ZodInt>;
730
+ }, z.core.$strict>], "kind">;
731
+ type ResourceInfo = z.output<typeof ResourceInfo>;
732
+ declare const SessionAttachResult: z.ZodDiscriminatedUnion<[z.ZodObject<{
733
+ kind: z.ZodLiteral<"pty">;
734
+ pty: z.ZodObject<{
735
+ resource_id: z.ZodString;
736
+ pid: z.ZodInt;
737
+ shell: z.ZodString;
738
+ cwd: z.ZodString;
739
+ title: z.ZodString;
740
+ name: z.ZodNullable<z.ZodString>;
741
+ cols: z.ZodInt;
742
+ rows: z.ZodInt;
743
+ state: z.ZodEnum<{
744
+ running: "running";
745
+ exited: "exited";
746
+ }>;
747
+ exit_code: z.ZodNullable<z.ZodInt>;
748
+ exit_signal: z.ZodNullable<z.ZodEnum<{
749
+ SIGINT: "SIGINT";
750
+ SIGTERM: "SIGTERM";
751
+ SIGKILL: "SIGKILL";
752
+ SIGHUP: "SIGHUP";
753
+ SIGQUIT: "SIGQUIT";
754
+ SIGTSTP: "SIGTSTP";
755
+ SIGCONT: "SIGCONT";
756
+ SIGUSR1: "SIGUSR1";
757
+ SIGUSR2: "SIGUSR2";
758
+ }>>;
759
+ last_seq: z.ZodInt;
760
+ created_at_ms: z.ZodInt;
761
+ controller_client_id: z.ZodNullable<z.ZodString>;
762
+ attached_clients: z.ZodInt;
763
+ orphan_expires_at_ms: z.ZodNullable<z.ZodInt>;
764
+ }, z.core.$strict>;
765
+ }, z.core.$strict>, z.ZodObject<{
766
+ kind: z.ZodLiteral<"watch">;
767
+ resource_id: z.ZodString;
768
+ path: z.ZodString;
769
+ orphan_expires_at_ms: z.ZodNullable<z.ZodInt>;
770
+ }, z.core.$strict>], "kind">;
771
+ type SessionAttachResult = z.output<typeof SessionAttachResult>;
772
+ /** Leave the resource running (orphan grace starts if no other client controls it). */
773
+ declare const SessionDetachParams: z.ZodObject<{
774
+ resource_id: z.ZodString;
775
+ }, z.core.$strict>;
776
+ type SessionDetachParams = z.output<typeof SessionDetachParams>;
777
+ declare const SessionDetachResult: z.ZodObject<{
778
+ orphan_expires_at_ms: z.ZodNullable<z.ZodInt>;
779
+ }, z.core.$strict>;
780
+ type SessionDetachResult = z.output<typeof SessionDetachResult>;
781
+ /** Free a resource through its owner's cancel path (watch → unwatch; pty → exec.pty.kill). */
782
+ declare const SessionReleaseParams: z.ZodObject<{
783
+ resource_id: z.ZodString;
784
+ }, z.core.$strict>;
785
+ type SessionReleaseParams = z.output<typeof SessionReleaseParams>;
786
+ declare const SessionReleaseResult: z.ZodObject<{
787
+ released: z.ZodLiteral<true>;
788
+ }, z.core.$strict>;
789
+ type SessionReleaseResult = z.output<typeof SessionReleaseResult>;
790
+ declare const SessionListParams: z.ZodObject<{}, z.core.$strict>;
791
+ type SessionListParams = z.output<typeof SessionListParams>;
792
+ declare const SessionListResult: z.ZodObject<{
793
+ resources: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
794
+ kind: z.ZodLiteral<"pty">;
795
+ pty: z.ZodObject<{
796
+ resource_id: z.ZodString;
797
+ pid: z.ZodInt;
798
+ shell: z.ZodString;
799
+ cwd: z.ZodString;
800
+ title: z.ZodString;
801
+ name: z.ZodNullable<z.ZodString>;
802
+ cols: z.ZodInt;
803
+ rows: z.ZodInt;
804
+ state: z.ZodEnum<{
805
+ running: "running";
806
+ exited: "exited";
807
+ }>;
808
+ exit_code: z.ZodNullable<z.ZodInt>;
809
+ exit_signal: z.ZodNullable<z.ZodEnum<{
810
+ SIGINT: "SIGINT";
811
+ SIGTERM: "SIGTERM";
812
+ SIGKILL: "SIGKILL";
813
+ SIGHUP: "SIGHUP";
814
+ SIGQUIT: "SIGQUIT";
815
+ SIGTSTP: "SIGTSTP";
816
+ SIGCONT: "SIGCONT";
817
+ SIGUSR1: "SIGUSR1";
818
+ SIGUSR2: "SIGUSR2";
819
+ }>>;
820
+ last_seq: z.ZodInt;
821
+ created_at_ms: z.ZodInt;
822
+ controller_client_id: z.ZodNullable<z.ZodString>;
823
+ attached_clients: z.ZodInt;
824
+ orphan_expires_at_ms: z.ZodNullable<z.ZodInt>;
825
+ }, z.core.$strict>;
826
+ }, z.core.$strict>, z.ZodObject<{
827
+ kind: z.ZodLiteral<"watch">;
828
+ resource_id: z.ZodString;
829
+ path: z.ZodString;
830
+ orphan_expires_at_ms: z.ZodNullable<z.ZodInt>;
831
+ }, z.core.$strict>], "kind">>;
832
+ }, z.core.$strict>;
833
+ type SessionListResult = z.output<typeof SessionListResult>;
834
+ declare const SessionControlChangedEvent: z.ZodObject<{
835
+ controller_client_id: z.ZodNullable<z.ZodString>;
836
+ your_mode: z.ZodEnum<{
837
+ control: "control";
838
+ read_only: "read_only";
839
+ }>;
840
+ }, z.core.$strict>;
841
+ type SessionControlChangedEvent = z.output<typeof SessionControlChangedEvent>;
842
+
843
+ /** @ai-matrx/desktop-protocol — cap relay. Schema source: lint-enforced rules in scripts/check-schema-source.mjs. */
844
+
845
+ declare const RelayDeviceStatusEvent: z.ZodObject<{
846
+ online: z.ZodBoolean;
847
+ since_ms: z.ZodInt;
848
+ app_version: z.ZodNullable<z.ZodString>;
849
+ protocol_version: z.ZodNullable<z.ZodString>;
850
+ }, z.core.$strict>;
851
+ type RelayDeviceStatusEvent = z.output<typeof RelayDeviceStatusEvent>;
852
+ declare const RelayAuthExpiringEvent: z.ZodObject<{
853
+ expires_at_ms: z.ZodInt;
854
+ }, z.core.$strict>;
855
+ type RelayAuthExpiringEvent = z.output<typeof RelayAuthExpiringEvent>;
856
+ /** HTTP POST https://relay.matrxserver.com/v1/devices/{device_id}/call — unary ops only (lane F). */
857
+ declare const RelayCallRequest: z.ZodObject<{
858
+ cap: z.ZodString;
859
+ op: z.ZodString;
860
+ params: z.ZodUnknown;
861
+ timeout_ms: z.ZodDefault<z.ZodInt>;
862
+ }, z.core.$strict>;
863
+ type RelayCallRequest = z.output<typeof RelayCallRequest>;
864
+ declare const RelayCallResponse: z.ZodDiscriminatedUnion<[z.ZodObject<{
865
+ ok: z.ZodLiteral<true>;
866
+ result: z.ZodUnknown;
867
+ }, z.core.$strict>, z.ZodObject<{
868
+ ok: z.ZodLiteral<false>;
869
+ error: z.ZodObject<{
870
+ code: z.ZodEnum<{
871
+ AUTH_REQUIRED: "AUTH_REQUIRED";
872
+ AUTH_INVALID: "AUTH_INVALID";
873
+ AUTH_EXPIRED: "AUTH_EXPIRED";
874
+ AUTH_FORBIDDEN: "AUTH_FORBIDDEN";
875
+ AUTH_DEVICE_REVOKED: "AUTH_DEVICE_REVOKED";
876
+ PERMISSION_DENIED_OS: "PERMISSION_DENIED_OS";
877
+ NOT_FOUND: "NOT_FOUND";
878
+ CONFLICT: "CONFLICT";
879
+ INVALID_PARAMS: "INVALID_PARAMS";
880
+ RESOURCE_BUSY: "RESOURCE_BUSY";
881
+ RESOURCE_GONE: "RESOURCE_GONE";
882
+ CANCELLED: "CANCELLED";
883
+ TIMEOUT: "TIMEOUT";
884
+ PLATFORM_UNSUPPORTED: "PLATFORM_UNSUPPORTED";
885
+ RATE_LIMITED: "RATE_LIMITED";
886
+ INTERNAL: "INTERNAL";
887
+ PROTOCOL_VERSION_UNSUPPORTED: "PROTOCOL_VERSION_UNSUPPORTED";
888
+ PROTOCOL_ERROR: "PROTOCOL_ERROR";
889
+ UNKNOWN_OPERATION: "UNKNOWN_OPERATION";
890
+ DEVICE_OFFLINE: "DEVICE_OFFLINE";
891
+ PAYLOAD_TOO_LARGE: "PAYLOAD_TOO_LARGE";
892
+ }>;
893
+ message: z.ZodString;
894
+ retryable: z.ZodBoolean;
895
+ data: z.ZodOptional<z.ZodObject<{
896
+ reason: z.ZodOptional<z.ZodEnum<{
897
+ not_a_directory: "not_a_directory";
898
+ is_a_directory: "is_a_directory";
899
+ directory_not_empty: "directory_not_empty";
900
+ already_exists: "already_exists";
901
+ stale_write: "stale_write";
902
+ binary_content: "binary_content";
903
+ not_utf8_boundary: "not_utf8_boundary";
904
+ patch_no_match: "patch_no_match";
905
+ patch_ambiguous: "patch_ambiguous";
906
+ resource_exited: "resource_exited";
907
+ resource_expired: "resource_expired";
908
+ control_taken: "control_taken";
909
+ window_exhausted: "window_exhausted";
910
+ }>>;
911
+ cap: z.ZodOptional<z.ZodString>;
912
+ op: z.ZodOptional<z.ZodString>;
913
+ path: z.ZodOptional<z.ZodString>;
914
+ settings_url: z.ZodOptional<z.ZodString>;
915
+ retry_after_ms: z.ZodOptional<z.ZodInt>;
916
+ limit_bytes: z.ZodOptional<z.ZodInt>;
917
+ upgrade: z.ZodOptional<z.ZodObject<{
918
+ min_version: z.ZodString;
919
+ max_version: z.ZodString;
920
+ download_url: z.ZodOptional<z.ZodURL>;
921
+ }, z.core.$strict>>;
922
+ }, z.core.$strict>>;
923
+ }, z.core.$strict>;
924
+ }, z.core.$strict>], "ok">;
925
+ type RelayCallResponse = z.output<typeof RelayCallResponse>;
926
+ /** HTTP GET /v1/devices/{device_id}/status (owner JWT). */
927
+ declare const RelayStatusResponse: z.ZodObject<{
928
+ online: z.ZodBoolean;
929
+ since_ms: z.ZodInt;
930
+ app_version: z.ZodNullable<z.ZodString>;
931
+ protocol_version: z.ZodNullable<z.ZodString>;
932
+ }, z.core.$strict>;
933
+ type RelayStatusResponse = z.output<typeof RelayStatusResponse>;
934
+
935
+ export { AbsPath, DEFAULT_MAX_FRAME_PAYLOAD_BYTES, DEFAULT_MAX_MESSAGE_BYTES, DEFAULT_WINDOW_BYTES, DeviceId, ExecCwdEvent, ExecExitedEvent, ExecListParams, ExecListResult, ExecPtyKillParams, ExecPtyKillResult, ExecPtyResizeParams, ExecPtyResizeResult, ExecPtySignalParams, ExecPtySignalResult, ExecPtyStartParams, ExecPtyStartResult, ExecPtyWriteParams, ExecPtyWriteResult, ExecRunParams, ExecRunResult, ExecTitleEvent, FrameHeader, FsChange, FsChangedEvent, FsDeleteParams, FsDeleteResult, FsEncoding, FsEntry, FsKind, FsListParams, FsListResult, FsMkdirParams, FsMkdirResult, FsMoveParams, FsMoveResult, FsPatchParams, FsPatchResult, FsReadParams, FsReadResult, FsReadStreamParams, FsReadStreamResult, FsSearchContentParams, FsSearchContentResult, FsSearchPathsParams, FsSearchPathsResult, FsStatParams, FsStatResult, FsWatchParams, FsWatchResult, FsWriteParams, FsWriteResult, OsPermissionName, PROTOCOL_MAJOR, PROTOCOL_MINOR, ProtocolVersion, PtyInfo, RelayAuthExpiringEvent, RelayCallRequest, RelayCallResponse, RelayDeviceStatusEvent, RelayStatusResponse, RequestId, ResourceId, ResourceInfo, SessionAttachParams, SessionAttachResult, SessionControlChangedEvent, SessionDetachParams, SessionDetachResult, SessionListParams, SessionListResult, SessionReleaseParams, SessionReleaseResult, Signal, SysinfoGetParams, SysinfoGetResult, epochMs, nonNegInt, u32 };