@openchamber/sdk 1.23.2-preview.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (75) hide show
  1. package/API.md +529 -0
  2. package/DOCUMENTATION.md +81 -0
  3. package/GUEST_SERVICES.md +166 -0
  4. package/LICENSE +21 -0
  5. package/README.md +186 -0
  6. package/dist/api-version.d.ts +6 -0
  7. package/dist/api-version.js +5 -0
  8. package/dist/contract.d.ts +471 -0
  9. package/dist/contract.js +256 -0
  10. package/dist/host-version.d.ts +16 -0
  11. package/dist/host-version.js +50 -0
  12. package/dist/host.d.ts +101 -0
  13. package/dist/host.js +606 -0
  14. package/dist/index.d.ts +12 -0
  15. package/dist/index.js +7 -0
  16. package/dist/manifest.d.ts +298 -0
  17. package/dist/manifest.js +224 -0
  18. package/dist/parse.d.ts +279 -0
  19. package/dist/parse.js +379 -0
  20. package/dist/protocol.d.ts +1092 -0
  21. package/dist/protocol.js +450 -0
  22. package/dist/schemas.d.ts +4 -0
  23. package/dist/schemas.js +6 -0
  24. package/dist/ui/badge.d.ts +10 -0
  25. package/dist/ui/badge.js +26 -0
  26. package/dist/ui/banner.d.ts +13 -0
  27. package/dist/ui/banner.js +48 -0
  28. package/dist/ui/button.d.ts +14 -0
  29. package/dist/ui/button.js +49 -0
  30. package/dist/ui/checkbox.d.ts +12 -0
  31. package/dist/ui/checkbox.js +45 -0
  32. package/dist/ui/dom.d.ts +15 -0
  33. package/dist/ui/dom.js +60 -0
  34. package/dist/ui/empty.d.ts +11 -0
  35. package/dist/ui/empty.js +44 -0
  36. package/dist/ui/field.d.ts +18 -0
  37. package/dist/ui/field.js +49 -0
  38. package/dist/ui/icons.d.ts +10 -0
  39. package/dist/ui/icons.js +23 -0
  40. package/dist/ui/index.d.ts +35 -0
  41. package/dist/ui/index.js +17 -0
  42. package/dist/ui/list.d.ts +26 -0
  43. package/dist/ui/list.js +90 -0
  44. package/dist/ui/menu.d.ts +20 -0
  45. package/dist/ui/menu.js +111 -0
  46. package/dist/ui/navigation.d.ts +18 -0
  47. package/dist/ui/navigation.js +38 -0
  48. package/dist/ui/option.d.ts +16 -0
  49. package/dist/ui/option.js +35 -0
  50. package/dist/ui/popup.d.ts +5 -0
  51. package/dist/ui/popup.js +43 -0
  52. package/dist/ui/progress.d.ts +11 -0
  53. package/dist/ui/progress.js +44 -0
  54. package/dist/ui/search.d.ts +11 -0
  55. package/dist/ui/search.js +62 -0
  56. package/dist/ui/select.d.ts +22 -0
  57. package/dist/ui/select.js +164 -0
  58. package/dist/ui/separator.d.ts +6 -0
  59. package/dist/ui/separator.js +26 -0
  60. package/dist/ui/spinner.d.ts +8 -0
  61. package/dist/ui/spinner.js +29 -0
  62. package/dist/ui/style.d.ts +1 -0
  63. package/dist/ui/style.js +190 -0
  64. package/dist/ui/tabs.d.ts +15 -0
  65. package/dist/ui/tabs.js +61 -0
  66. package/dist/ui/text.d.ts +23 -0
  67. package/dist/ui/text.js +89 -0
  68. package/dist/ui/theme.d.ts +22 -0
  69. package/dist/ui/theme.js +69 -0
  70. package/dist/workspace-schemas.d.ts +136 -0
  71. package/dist/workspace-schemas.js +44 -0
  72. package/dist/workspace.d.ts +109 -0
  73. package/dist/workspace.js +4 -0
  74. package/package.json +55 -0
  75. package/scripts/bundle-guest.ts +44 -0
@@ -0,0 +1,1092 @@
1
+ import { z } from 'zod';
2
+ import { type GuestMessage, type HostMessage } from './contract.ts';
3
+ export declare const hostMessageSchema: z.ZodUnion<readonly [z.ZodObject<{
4
+ type: z.ZodLiteral<"workspace">;
5
+ payload: z.ZodObject<{
6
+ subscriptionId: z.ZodString;
7
+ snapshot: z.ZodDiscriminatedUnion<[z.ZodObject<{
8
+ kind: z.ZodLiteral<"projects">;
9
+ state: z.ZodEnum<{
10
+ loading: "loading";
11
+ ready: "ready";
12
+ error: "error";
13
+ }>;
14
+ projects: z.ZodArray<z.ZodObject<{
15
+ id: z.ZodString;
16
+ name: z.ZodString;
17
+ directory: z.ZodString;
18
+ }, z.core.$strip>>;
19
+ }, z.core.$strip>, z.ZodObject<{
20
+ kind: z.ZodLiteral<"worktrees">;
21
+ projectId: z.ZodString;
22
+ state: z.ZodEnum<{
23
+ loading: "loading";
24
+ ready: "ready";
25
+ error: "error";
26
+ }>;
27
+ worktrees: z.ZodArray<z.ZodObject<{
28
+ directory: z.ZodString;
29
+ name: z.ZodString;
30
+ branch: z.ZodString;
31
+ status: z.ZodEnum<{
32
+ ready: "ready";
33
+ pending: "pending";
34
+ invalid: "invalid";
35
+ missing: "missing";
36
+ }>;
37
+ }, z.core.$strip>>;
38
+ }, z.core.$strip>, z.ZodObject<{
39
+ kind: z.ZodLiteral<"sessions">;
40
+ projectId: z.ZodString;
41
+ state: z.ZodEnum<{
42
+ loading: "loading";
43
+ ready: "ready";
44
+ error: "error";
45
+ }>;
46
+ coverage: z.ZodArray<z.ZodObject<{
47
+ directory: z.ZodString;
48
+ state: z.ZodEnum<{
49
+ loading: "loading";
50
+ ready: "ready";
51
+ error: "error";
52
+ }>;
53
+ }, z.core.$strip>>;
54
+ sessions: z.ZodArray<z.ZodObject<{
55
+ id: z.ZodString;
56
+ title: z.ZodString;
57
+ projectId: z.ZodString;
58
+ directory: z.ZodString;
59
+ parentId: z.ZodNullable<z.ZodString>;
60
+ createdAt: z.ZodNumber;
61
+ updatedAt: z.ZodNumber;
62
+ archivedAt: z.ZodNullable<z.ZodNumber>;
63
+ worktree: z.ZodNullable<z.ZodObject<{
64
+ directory: z.ZodString;
65
+ name: z.ZodString;
66
+ branch: z.ZodString;
67
+ status: z.ZodEnum<{
68
+ ready: "ready";
69
+ pending: "pending";
70
+ invalid: "invalid";
71
+ missing: "missing";
72
+ }>;
73
+ }, z.core.$strip>>;
74
+ activity: z.ZodEnum<{
75
+ unknown: "unknown";
76
+ idle: "idle";
77
+ running: "running";
78
+ retrying: "retrying";
79
+ "waiting-permission": "waiting-permission";
80
+ "waiting-question": "waiting-question";
81
+ }>;
82
+ outcome: z.ZodNullable<z.ZodEnum<{
83
+ completed: "completed";
84
+ failed: "failed";
85
+ }>>;
86
+ items: z.ZodArray<z.ZodObject<{
87
+ id: z.ZodString;
88
+ data: z.ZodOptional<z.ZodJSONSchema>;
89
+ }, z.core.$strip>>;
90
+ }, z.core.$strip>>;
91
+ }, z.core.$strip>], "kind">;
92
+ }, z.core.$strip>;
93
+ channel: z.ZodLiteral<"openchamber.sdk">;
94
+ v: z.ZodLiteral<1>;
95
+ }, z.core.$strip>, z.ZodObject<{
96
+ type: z.ZodLiteral<"ready">;
97
+ payload: z.ZodObject<{
98
+ theme: z.ZodObject<{
99
+ mode: z.ZodEnum<{
100
+ light: "light";
101
+ dark: "dark";
102
+ }>;
103
+ tokens: z.ZodObject<{
104
+ background: z.ZodString;
105
+ elevated: z.ZodString;
106
+ foreground: z.ZodString;
107
+ muted: z.ZodString;
108
+ subtle: z.ZodString;
109
+ border: z.ZodString;
110
+ hover: z.ZodString;
111
+ selection: z.ZodString;
112
+ focus: z.ZodString;
113
+ primary: z.ZodString;
114
+ mutedSurface: z.ZodString;
115
+ elevatedForeground: z.ZodString;
116
+ active: z.ZodString;
117
+ selectionForeground: z.ZodString;
118
+ primaryForeground: z.ZodString;
119
+ success: z.ZodString;
120
+ warning: z.ZodString;
121
+ error: z.ZodString;
122
+ info: z.ZodString;
123
+ font: z.ZodString;
124
+ mono: z.ZodString;
125
+ radius: z.ZodString;
126
+ }, z.core.$strip>;
127
+ }, z.core.$strip>;
128
+ locale: z.ZodString;
129
+ directory: z.ZodNullable<z.ZodString>;
130
+ session: z.ZodNullable<z.ZodObject<{
131
+ id: z.ZodString;
132
+ title: z.ZodString;
133
+ busy: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
134
+ model: z.ZodOptional<z.ZodString>;
135
+ agent: z.ZodOptional<z.ZodString>;
136
+ }, z.core.$strip>>;
137
+ surface: z.ZodEnum<{
138
+ panel: "panel";
139
+ dialog: "dialog";
140
+ page: "page";
141
+ }>;
142
+ connection: z.ZodObject<{
143
+ connected: z.ZodBoolean;
144
+ account: z.ZodString;
145
+ }, z.core.$strip>;
146
+ settings: z.ZodRecord<z.ZodString, z.ZodString>;
147
+ item: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
148
+ kind: z.ZodLiteral<"message">;
149
+ action: z.ZodString;
150
+ sessionId: z.ZodString;
151
+ sessionTitle: z.ZodString;
152
+ directory: z.ZodNullable<z.ZodString>;
153
+ messageId: z.ZodString;
154
+ role: z.ZodEnum<{
155
+ user: "user";
156
+ assistant: "assistant";
157
+ }>;
158
+ text: z.ZodString;
159
+ }, z.core.$strip>, z.ZodObject<{
160
+ kind: z.ZodLiteral<"session">;
161
+ action: z.ZodString;
162
+ sessionId: z.ZodString;
163
+ sessionTitle: z.ZodString;
164
+ directory: z.ZodNullable<z.ZodString>;
165
+ messages: z.ZodOptional<z.ZodArray<z.ZodObject<{
166
+ id: z.ZodString;
167
+ role: z.ZodEnum<{
168
+ user: "user";
169
+ assistant: "assistant";
170
+ }>;
171
+ text: z.ZodString;
172
+ createdAt: z.ZodNumber;
173
+ }, z.core.$strip>>>;
174
+ truncated: z.ZodOptional<z.ZodBoolean>;
175
+ }, z.core.$strip>, z.ZodObject<{
176
+ providerId: z.ZodString;
177
+ id: z.ZodString;
178
+ title: z.ZodString;
179
+ url: z.ZodString;
180
+ text: z.ZodOptional<z.ZodString>;
181
+ kind: z.ZodOptional<z.ZodEnum<{
182
+ issue: "issue";
183
+ pull: "pull";
184
+ }>>;
185
+ author: z.ZodOptional<z.ZodString>;
186
+ branches: z.ZodOptional<z.ZodObject<{
187
+ head: z.ZodString;
188
+ base: z.ZodString;
189
+ }, z.core.$strip>>;
190
+ data: z.ZodOptional<z.ZodJSONSchema>;
191
+ }, z.core.$strip>]>>;
192
+ }, z.core.$strip>;
193
+ channel: z.ZodLiteral<"openchamber.sdk">;
194
+ v: z.ZodLiteral<1>;
195
+ }, z.core.$strip>, z.ZodObject<{
196
+ type: z.ZodLiteral<"directory">;
197
+ payload: z.ZodObject<{
198
+ directory: z.ZodNullable<z.ZodString>;
199
+ }, z.core.$strip>;
200
+ channel: z.ZodLiteral<"openchamber.sdk">;
201
+ v: z.ZodLiteral<1>;
202
+ }, z.core.$strip>, z.ZodObject<{
203
+ type: z.ZodLiteral<"session">;
204
+ payload: z.ZodObject<{
205
+ session: z.ZodNullable<z.ZodObject<{
206
+ id: z.ZodString;
207
+ title: z.ZodString;
208
+ busy: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
209
+ model: z.ZodOptional<z.ZodString>;
210
+ agent: z.ZodOptional<z.ZodString>;
211
+ }, z.core.$strip>>;
212
+ }, z.core.$strip>;
213
+ channel: z.ZodLiteral<"openchamber.sdk">;
214
+ v: z.ZodLiteral<1>;
215
+ }, z.core.$strip>, z.ZodObject<{
216
+ type: z.ZodLiteral<"connection">;
217
+ payload: z.ZodObject<{
218
+ connection: z.ZodObject<{
219
+ connected: z.ZodBoolean;
220
+ account: z.ZodString;
221
+ }, z.core.$strip>;
222
+ }, z.core.$strip>;
223
+ channel: z.ZodLiteral<"openchamber.sdk">;
224
+ v: z.ZodLiteral<1>;
225
+ }, z.core.$strip>, z.ZodObject<{
226
+ type: z.ZodLiteral<"settings">;
227
+ payload: z.ZodObject<{
228
+ settings: z.ZodRecord<z.ZodString, z.ZodString>;
229
+ }, z.core.$strip>;
230
+ channel: z.ZodLiteral<"openchamber.sdk">;
231
+ v: z.ZodLiteral<1>;
232
+ }, z.core.$strip>, z.ZodObject<{
233
+ type: z.ZodLiteral<"session-lifecycle">;
234
+ payload: z.ZodObject<{
235
+ sessionId: z.ZodString;
236
+ phase: z.ZodEnum<{
237
+ completed: "completed";
238
+ started: "started";
239
+ failure: "failure";
240
+ }>;
241
+ }, z.core.$strip>;
242
+ channel: z.ZodLiteral<"openchamber.sdk">;
243
+ v: z.ZodLiteral<1>;
244
+ }, z.core.$strip>, z.ZodObject<{
245
+ type: z.ZodLiteral<"item">;
246
+ payload: z.ZodObject<{
247
+ item: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
248
+ kind: z.ZodLiteral<"message">;
249
+ action: z.ZodString;
250
+ sessionId: z.ZodString;
251
+ sessionTitle: z.ZodString;
252
+ directory: z.ZodNullable<z.ZodString>;
253
+ messageId: z.ZodString;
254
+ role: z.ZodEnum<{
255
+ user: "user";
256
+ assistant: "assistant";
257
+ }>;
258
+ text: z.ZodString;
259
+ }, z.core.$strip>, z.ZodObject<{
260
+ kind: z.ZodLiteral<"session">;
261
+ action: z.ZodString;
262
+ sessionId: z.ZodString;
263
+ sessionTitle: z.ZodString;
264
+ directory: z.ZodNullable<z.ZodString>;
265
+ messages: z.ZodOptional<z.ZodArray<z.ZodObject<{
266
+ id: z.ZodString;
267
+ role: z.ZodEnum<{
268
+ user: "user";
269
+ assistant: "assistant";
270
+ }>;
271
+ text: z.ZodString;
272
+ createdAt: z.ZodNumber;
273
+ }, z.core.$strip>>>;
274
+ truncated: z.ZodOptional<z.ZodBoolean>;
275
+ }, z.core.$strip>, z.ZodObject<{
276
+ providerId: z.ZodString;
277
+ id: z.ZodString;
278
+ title: z.ZodString;
279
+ url: z.ZodString;
280
+ text: z.ZodOptional<z.ZodString>;
281
+ kind: z.ZodOptional<z.ZodEnum<{
282
+ issue: "issue";
283
+ pull: "pull";
284
+ }>>;
285
+ author: z.ZodOptional<z.ZodString>;
286
+ branches: z.ZodOptional<z.ZodObject<{
287
+ head: z.ZodString;
288
+ base: z.ZodString;
289
+ }, z.core.$strip>>;
290
+ data: z.ZodOptional<z.ZodJSONSchema>;
291
+ }, z.core.$strip>]>>;
292
+ }, z.core.$strip>;
293
+ channel: z.ZodLiteral<"openchamber.sdk">;
294
+ v: z.ZodLiteral<1>;
295
+ }, z.core.$strip>, z.ZodObject<{
296
+ type: z.ZodLiteral<"resolve">;
297
+ id: z.ZodString;
298
+ payload: z.ZodObject<{
299
+ command: z.ZodString;
300
+ args: z.ZodString;
301
+ }, z.core.$strip>;
302
+ channel: z.ZodLiteral<"openchamber.sdk">;
303
+ v: z.ZodLiteral<1>;
304
+ }, z.core.$strip>, z.ZodPipe<z.ZodObject<{
305
+ type: z.ZodLiteral<"result">;
306
+ id: z.ZodString;
307
+ ok: z.ZodBoolean;
308
+ error: z.ZodOptional<z.ZodString>;
309
+ code: z.ZodOptional<z.ZodString>;
310
+ payload: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
311
+ storage: z.ZodLiteral<true>;
312
+ op: z.ZodLiteral<"get">;
313
+ found: z.ZodLiteral<false>;
314
+ }, z.core.$strip>, z.ZodObject<{
315
+ storage: z.ZodLiteral<true>;
316
+ op: z.ZodLiteral<"get">;
317
+ found: z.ZodLiteral<true>;
318
+ value: z.ZodJSONSchema;
319
+ }, z.core.$strip>, z.ZodObject<{
320
+ storage: z.ZodLiteral<true>;
321
+ op: z.ZodEnum<{
322
+ delete: "delete";
323
+ set: "set";
324
+ }>;
325
+ }, z.core.$strip>, z.ZodObject<{
326
+ storage: z.ZodLiteral<true>;
327
+ op: z.ZodLiteral<"keys">;
328
+ keys: z.ZodArray<z.ZodString>;
329
+ }, z.core.$strip>]>, z.ZodDiscriminatedUnion<[z.ZodObject<{
330
+ kind: z.ZodLiteral<"projects">;
331
+ state: z.ZodEnum<{
332
+ loading: "loading";
333
+ ready: "ready";
334
+ error: "error";
335
+ }>;
336
+ projects: z.ZodArray<z.ZodObject<{
337
+ id: z.ZodString;
338
+ name: z.ZodString;
339
+ directory: z.ZodString;
340
+ }, z.core.$strip>>;
341
+ }, z.core.$strip>, z.ZodObject<{
342
+ kind: z.ZodLiteral<"worktrees">;
343
+ projectId: z.ZodString;
344
+ state: z.ZodEnum<{
345
+ loading: "loading";
346
+ ready: "ready";
347
+ error: "error";
348
+ }>;
349
+ worktrees: z.ZodArray<z.ZodObject<{
350
+ directory: z.ZodString;
351
+ name: z.ZodString;
352
+ branch: z.ZodString;
353
+ status: z.ZodEnum<{
354
+ ready: "ready";
355
+ pending: "pending";
356
+ invalid: "invalid";
357
+ missing: "missing";
358
+ }>;
359
+ }, z.core.$strip>>;
360
+ }, z.core.$strip>, z.ZodObject<{
361
+ kind: z.ZodLiteral<"sessions">;
362
+ projectId: z.ZodString;
363
+ state: z.ZodEnum<{
364
+ loading: "loading";
365
+ ready: "ready";
366
+ error: "error";
367
+ }>;
368
+ coverage: z.ZodArray<z.ZodObject<{
369
+ directory: z.ZodString;
370
+ state: z.ZodEnum<{
371
+ loading: "loading";
372
+ ready: "ready";
373
+ error: "error";
374
+ }>;
375
+ }, z.core.$strip>>;
376
+ sessions: z.ZodArray<z.ZodObject<{
377
+ id: z.ZodString;
378
+ title: z.ZodString;
379
+ projectId: z.ZodString;
380
+ directory: z.ZodString;
381
+ parentId: z.ZodNullable<z.ZodString>;
382
+ createdAt: z.ZodNumber;
383
+ updatedAt: z.ZodNumber;
384
+ archivedAt: z.ZodNullable<z.ZodNumber>;
385
+ worktree: z.ZodNullable<z.ZodObject<{
386
+ directory: z.ZodString;
387
+ name: z.ZodString;
388
+ branch: z.ZodString;
389
+ status: z.ZodEnum<{
390
+ ready: "ready";
391
+ pending: "pending";
392
+ invalid: "invalid";
393
+ missing: "missing";
394
+ }>;
395
+ }, z.core.$strip>>;
396
+ activity: z.ZodEnum<{
397
+ unknown: "unknown";
398
+ idle: "idle";
399
+ running: "running";
400
+ retrying: "retrying";
401
+ "waiting-permission": "waiting-permission";
402
+ "waiting-question": "waiting-question";
403
+ }>;
404
+ outcome: z.ZodNullable<z.ZodEnum<{
405
+ completed: "completed";
406
+ failed: "failed";
407
+ }>>;
408
+ items: z.ZodArray<z.ZodObject<{
409
+ id: z.ZodString;
410
+ data: z.ZodOptional<z.ZodJSONSchema>;
411
+ }, z.core.$strip>>;
412
+ }, z.core.$strip>>;
413
+ }, z.core.$strip>], "kind">, z.ZodUnion<readonly [z.ZodObject<{
414
+ sessionId: z.ZodString;
415
+ sent: z.ZodEnum<{
416
+ failed: "failed";
417
+ sent: "sent";
418
+ "no-model": "no-model";
419
+ skipped: "skipped";
420
+ }>;
421
+ directory: z.ZodOptional<z.ZodString>;
422
+ worktree: z.ZodOptional<z.ZodObject<{
423
+ directory: z.ZodString;
424
+ name: z.ZodString;
425
+ branch: z.ZodString;
426
+ status: z.ZodEnum<{
427
+ ready: "ready";
428
+ pending: "pending";
429
+ invalid: "invalid";
430
+ missing: "missing";
431
+ }>;
432
+ }, z.core.$strip>>;
433
+ linked: z.ZodOptional<z.ZodBoolean>;
434
+ }, z.core.$strip>, z.ZodObject<{
435
+ sessionId: z.ZodNull;
436
+ sent: z.ZodLiteral<"skipped">;
437
+ directory: z.ZodString;
438
+ worktree: z.ZodObject<{
439
+ directory: z.ZodString;
440
+ name: z.ZodString;
441
+ branch: z.ZodString;
442
+ status: z.ZodEnum<{
443
+ ready: "ready";
444
+ pending: "pending";
445
+ invalid: "invalid";
446
+ missing: "missing";
447
+ }>;
448
+ }, z.core.$strip>;
449
+ failure: z.ZodEnum<{
450
+ "bootstrap-failed": "bootstrap-failed";
451
+ "session-create-failed": "session-create-failed";
452
+ }>;
453
+ }, z.core.$strip>]>, z.ZodObject<{
454
+ status: z.ZodNumber;
455
+ body: z.ZodString;
456
+ }, z.core.$strip>, z.ZodObject<{
457
+ sent: z.ZodEnum<{
458
+ failed: "failed";
459
+ sent: "sent";
460
+ "no-model": "no-model";
461
+ skipped: "skipped";
462
+ }>;
463
+ }, z.core.$strip>, z.ZodObject<{
464
+ status: z.ZodEnum<{
465
+ ready: "ready";
466
+ failed: "failed";
467
+ stopped: "stopped";
468
+ starting: "starting";
469
+ }>;
470
+ }, z.core.$strip>, z.ZodObject<{
471
+ content: z.ZodString;
472
+ }, z.core.$strip>, z.ZodObject<{
473
+ written: z.ZodLiteral<true>;
474
+ }, z.core.$strip>, z.ZodObject<{
475
+ entries: z.ZodArray<z.ZodObject<{
476
+ name: z.ZodString;
477
+ kind: z.ZodEnum<{
478
+ file: "file";
479
+ directory: "directory";
480
+ other: "other";
481
+ }>;
482
+ }, z.core.$strip>>;
483
+ }, z.core.$strip>, z.ZodObject<{
484
+ kind: z.ZodEnum<{
485
+ missing: "missing";
486
+ file: "file";
487
+ directory: "directory";
488
+ other: "other";
489
+ }>;
490
+ size: z.ZodNumber;
491
+ mtime: z.ZodNumber;
492
+ }, z.core.$strip>, z.ZodObject<{
493
+ text: z.ZodString;
494
+ }, z.core.$strip>]>>;
495
+ channel: z.ZodLiteral<"openchamber.sdk">;
496
+ v: z.ZodLiteral<1>;
497
+ }, z.core.$strip>, z.ZodTransform<{
498
+ channel: "openchamber.sdk";
499
+ v: 1;
500
+ type: "result";
501
+ id: string;
502
+ ok: true;
503
+ payload: {
504
+ kind: "projects";
505
+ state: "loading" | "ready" | "error";
506
+ projects: {
507
+ id: string;
508
+ name: string;
509
+ directory: string;
510
+ }[];
511
+ } | {
512
+ kind: "worktrees";
513
+ projectId: string;
514
+ state: "loading" | "ready" | "error";
515
+ worktrees: {
516
+ directory: string;
517
+ name: string;
518
+ branch: string;
519
+ status: "ready" | "pending" | "invalid" | "missing";
520
+ }[];
521
+ } | {
522
+ kind: "sessions";
523
+ projectId: string;
524
+ state: "loading" | "ready" | "error";
525
+ coverage: {
526
+ directory: string;
527
+ state: "loading" | "ready" | "error";
528
+ }[];
529
+ sessions: {
530
+ id: string;
531
+ title: string;
532
+ projectId: string;
533
+ directory: string;
534
+ parentId: string | null;
535
+ createdAt: number;
536
+ updatedAt: number;
537
+ archivedAt: number | null;
538
+ worktree: {
539
+ directory: string;
540
+ name: string;
541
+ branch: string;
542
+ status: "ready" | "pending" | "invalid" | "missing";
543
+ } | null;
544
+ activity: "unknown" | "idle" | "running" | "retrying" | "waiting-permission" | "waiting-question";
545
+ outcome: "completed" | "failed" | null;
546
+ items: {
547
+ id: string;
548
+ data?: z.core.util.JSONType | undefined;
549
+ }[];
550
+ }[];
551
+ } | {
552
+ storage: true;
553
+ op: "get";
554
+ found: false;
555
+ } | {
556
+ storage: true;
557
+ op: "get";
558
+ found: true;
559
+ value: z.core.util.JSONType;
560
+ } | {
561
+ storage: true;
562
+ op: "delete" | "set";
563
+ } | {
564
+ storage: true;
565
+ op: "keys";
566
+ keys: string[];
567
+ } | {
568
+ status: number;
569
+ body: string;
570
+ } | {
571
+ sessionId: string;
572
+ sent: "failed" | "sent" | "no-model" | "skipped";
573
+ directory?: string | undefined;
574
+ worktree?: {
575
+ directory: string;
576
+ name: string;
577
+ branch: string;
578
+ status: "ready" | "pending" | "invalid" | "missing";
579
+ } | undefined;
580
+ linked?: boolean | undefined;
581
+ } | {
582
+ sessionId: null;
583
+ sent: "skipped";
584
+ directory: string;
585
+ worktree: {
586
+ directory: string;
587
+ name: string;
588
+ branch: string;
589
+ status: "ready" | "pending" | "invalid" | "missing";
590
+ };
591
+ failure: "bootstrap-failed" | "session-create-failed";
592
+ } | {
593
+ sent: "failed" | "sent" | "no-model" | "skipped";
594
+ } | {
595
+ status: "ready" | "failed" | "stopped" | "starting";
596
+ } | {
597
+ content: string;
598
+ } | {
599
+ written: true;
600
+ } | {
601
+ entries: {
602
+ name: string;
603
+ kind: "file" | "directory" | "other";
604
+ }[];
605
+ } | {
606
+ kind: "missing" | "file" | "directory" | "other";
607
+ size: number;
608
+ mtime: number;
609
+ } | {
610
+ text: string;
611
+ };
612
+ error?: undefined;
613
+ code?: undefined;
614
+ } | {
615
+ channel: "openchamber.sdk";
616
+ v: 1;
617
+ type: "result";
618
+ id: string;
619
+ ok: true;
620
+ payload?: undefined;
621
+ error?: undefined;
622
+ code?: undefined;
623
+ } | {
624
+ channel: "openchamber.sdk";
625
+ v: 1;
626
+ type: "result";
627
+ id: string;
628
+ ok: false;
629
+ error: string;
630
+ code: "HOST_UNAVAILABLE" | "HOST_TIMEOUT" | "HOST_REJECTED" | "DISCONNECTED" | "DISABLED" | "BAD_PATH" | "NO_INTEGRATION" | "NO_SERVICE" | "SERVICE_FAILED" | "NO_SESSION" | "SESSION_BUSY" | "NOT_GRANTED" | "NO_DIRECTORY" | "NOT_FOUND" | "FILE_TOO_LARGE" | "DENIED" | "NO_MODEL" | "MODEL_FAILED";
631
+ payload?: undefined;
632
+ }, {
633
+ type: "result";
634
+ id: string;
635
+ ok: boolean;
636
+ channel: "openchamber.sdk";
637
+ v: 1;
638
+ error?: string | undefined;
639
+ code?: string | undefined;
640
+ payload?: {
641
+ kind: "projects";
642
+ state: "loading" | "ready" | "error";
643
+ projects: {
644
+ id: string;
645
+ name: string;
646
+ directory: string;
647
+ }[];
648
+ } | {
649
+ kind: "worktrees";
650
+ projectId: string;
651
+ state: "loading" | "ready" | "error";
652
+ worktrees: {
653
+ directory: string;
654
+ name: string;
655
+ branch: string;
656
+ status: "ready" | "pending" | "invalid" | "missing";
657
+ }[];
658
+ } | {
659
+ kind: "sessions";
660
+ projectId: string;
661
+ state: "loading" | "ready" | "error";
662
+ coverage: {
663
+ directory: string;
664
+ state: "loading" | "ready" | "error";
665
+ }[];
666
+ sessions: {
667
+ id: string;
668
+ title: string;
669
+ projectId: string;
670
+ directory: string;
671
+ parentId: string | null;
672
+ createdAt: number;
673
+ updatedAt: number;
674
+ archivedAt: number | null;
675
+ worktree: {
676
+ directory: string;
677
+ name: string;
678
+ branch: string;
679
+ status: "ready" | "pending" | "invalid" | "missing";
680
+ } | null;
681
+ activity: "unknown" | "idle" | "running" | "retrying" | "waiting-permission" | "waiting-question";
682
+ outcome: "completed" | "failed" | null;
683
+ items: {
684
+ id: string;
685
+ data?: z.core.util.JSONType | undefined;
686
+ }[];
687
+ }[];
688
+ } | {
689
+ storage: true;
690
+ op: "get";
691
+ found: false;
692
+ } | {
693
+ storage: true;
694
+ op: "get";
695
+ found: true;
696
+ value: z.core.util.JSONType;
697
+ } | {
698
+ storage: true;
699
+ op: "delete" | "set";
700
+ } | {
701
+ storage: true;
702
+ op: "keys";
703
+ keys: string[];
704
+ } | {
705
+ status: number;
706
+ body: string;
707
+ } | {
708
+ sessionId: string;
709
+ sent: "failed" | "sent" | "no-model" | "skipped";
710
+ directory?: string | undefined;
711
+ worktree?: {
712
+ directory: string;
713
+ name: string;
714
+ branch: string;
715
+ status: "ready" | "pending" | "invalid" | "missing";
716
+ } | undefined;
717
+ linked?: boolean | undefined;
718
+ } | {
719
+ sessionId: null;
720
+ sent: "skipped";
721
+ directory: string;
722
+ worktree: {
723
+ directory: string;
724
+ name: string;
725
+ branch: string;
726
+ status: "ready" | "pending" | "invalid" | "missing";
727
+ };
728
+ failure: "bootstrap-failed" | "session-create-failed";
729
+ } | {
730
+ sent: "failed" | "sent" | "no-model" | "skipped";
731
+ } | {
732
+ status: "ready" | "failed" | "stopped" | "starting";
733
+ } | {
734
+ content: string;
735
+ } | {
736
+ written: true;
737
+ } | {
738
+ entries: {
739
+ name: string;
740
+ kind: "file" | "directory" | "other";
741
+ }[];
742
+ } | {
743
+ kind: "missing" | "file" | "directory" | "other";
744
+ size: number;
745
+ mtime: number;
746
+ } | {
747
+ text: string;
748
+ } | undefined;
749
+ }>>]>;
750
+ export declare const guestMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
751
+ type: z.ZodLiteral<"workspace-read">;
752
+ id: z.ZodString;
753
+ payload: z.ZodDiscriminatedUnion<[z.ZodObject<{
754
+ kind: z.ZodLiteral<"projects">;
755
+ }, z.core.$strict>, z.ZodObject<{
756
+ kind: z.ZodLiteral<"worktrees">;
757
+ projectId: z.ZodString;
758
+ }, z.core.$strict>, z.ZodObject<{
759
+ kind: z.ZodLiteral<"sessions">;
760
+ projectId: z.ZodString;
761
+ }, z.core.$strict>], "kind">;
762
+ channel: z.ZodLiteral<"openchamber.sdk">;
763
+ v: z.ZodLiteral<1>;
764
+ }, z.core.$strip>, z.ZodObject<{
765
+ type: z.ZodLiteral<"workspace-subscribe">;
766
+ id: z.ZodString;
767
+ payload: z.ZodObject<{
768
+ subscriptionId: z.ZodString;
769
+ query: z.ZodDiscriminatedUnion<[z.ZodObject<{
770
+ kind: z.ZodLiteral<"projects">;
771
+ }, z.core.$strict>, z.ZodObject<{
772
+ kind: z.ZodLiteral<"worktrees">;
773
+ projectId: z.ZodString;
774
+ }, z.core.$strict>, z.ZodObject<{
775
+ kind: z.ZodLiteral<"sessions">;
776
+ projectId: z.ZodString;
777
+ }, z.core.$strict>], "kind">;
778
+ }, z.core.$strip>;
779
+ channel: z.ZodLiteral<"openchamber.sdk">;
780
+ v: z.ZodLiteral<1>;
781
+ }, z.core.$strip>, z.ZodObject<{
782
+ type: z.ZodLiteral<"workspace-unsubscribe">;
783
+ id: z.ZodString;
784
+ payload: z.ZodObject<{
785
+ subscriptionId: z.ZodString;
786
+ }, z.core.$strip>;
787
+ channel: z.ZodLiteral<"openchamber.sdk">;
788
+ v: z.ZodLiteral<1>;
789
+ }, z.core.$strip>, z.ZodObject<{
790
+ type: z.ZodLiteral<"storage">;
791
+ id: z.ZodString;
792
+ payload: z.ZodDiscriminatedUnion<[z.ZodObject<{
793
+ op: z.ZodLiteral<"get">;
794
+ key: z.ZodString;
795
+ }, z.core.$strict>, z.ZodObject<{
796
+ op: z.ZodLiteral<"delete">;
797
+ key: z.ZodString;
798
+ }, z.core.$strict>, z.ZodObject<{
799
+ op: z.ZodLiteral<"set">;
800
+ key: z.ZodString;
801
+ value: z.ZodJSONSchema;
802
+ }, z.core.$strict>, z.ZodObject<{
803
+ op: z.ZodLiteral<"keys">;
804
+ }, z.core.$strict>], "op">;
805
+ channel: z.ZodLiteral<"openchamber.sdk">;
806
+ v: z.ZodLiteral<1>;
807
+ }, z.core.$strip>, z.ZodObject<{
808
+ type: z.ZodLiteral<"open-session">;
809
+ id: z.ZodString;
810
+ payload: z.ZodObject<{
811
+ sessionId: z.ZodString;
812
+ }, z.core.$strip>;
813
+ channel: z.ZodLiteral<"openchamber.sdk">;
814
+ v: z.ZodLiteral<1>;
815
+ }, z.core.$strip>, z.ZodObject<{
816
+ type: z.ZodLiteral<"hello">;
817
+ channel: z.ZodLiteral<"openchamber.sdk">;
818
+ v: z.ZodLiteral<1>;
819
+ }, z.core.$strip>, z.ZodObject<{
820
+ type: z.ZodLiteral<"toast">;
821
+ id: z.ZodString;
822
+ payload: z.ZodObject<{
823
+ kind: z.ZodEnum<{
824
+ error: "error";
825
+ info: "info";
826
+ success: "success";
827
+ }>;
828
+ message: z.ZodString;
829
+ }, z.core.$strip>;
830
+ channel: z.ZodLiteral<"openchamber.sdk">;
831
+ v: z.ZodLiteral<1>;
832
+ }, z.core.$strip>, z.ZodObject<{
833
+ type: z.ZodLiteral<"open-url">;
834
+ id: z.ZodString;
835
+ payload: z.ZodObject<{
836
+ url: z.ZodString;
837
+ }, z.core.$strip>;
838
+ channel: z.ZodLiteral<"openchamber.sdk">;
839
+ v: z.ZodLiteral<1>;
840
+ }, z.core.$strip>, z.ZodObject<{
841
+ type: z.ZodLiteral<"open-surface">;
842
+ id: z.ZodString;
843
+ payload: z.ZodObject<{
844
+ surfaceId: z.ZodString;
845
+ }, z.core.$strip>;
846
+ channel: z.ZodLiteral<"openchamber.sdk">;
847
+ v: z.ZodLiteral<1>;
848
+ }, z.core.$strip>, z.ZodObject<{
849
+ type: z.ZodLiteral<"clipboard-write">;
850
+ id: z.ZodString;
851
+ payload: z.ZodObject<{
852
+ text: z.ZodString;
853
+ }, z.core.$strip>;
854
+ channel: z.ZodLiteral<"openchamber.sdk">;
855
+ v: z.ZodLiteral<1>;
856
+ }, z.core.$strip>, z.ZodObject<{
857
+ type: z.ZodLiteral<"compose">;
858
+ id: z.ZodString;
859
+ payload: z.ZodObject<{
860
+ text: z.ZodString;
861
+ mode: z.ZodOptional<z.ZodEnum<{
862
+ replace: "replace";
863
+ append: "append";
864
+ }>>;
865
+ }, z.core.$strip>;
866
+ channel: z.ZodLiteral<"openchamber.sdk">;
867
+ v: z.ZodLiteral<1>;
868
+ }, z.core.$strip>, z.ZodObject<{
869
+ type: z.ZodLiteral<"attach">;
870
+ id: z.ZodString;
871
+ payload: z.ZodObject<{
872
+ providerId: z.ZodString;
873
+ id: z.ZodString;
874
+ title: z.ZodString;
875
+ url: z.ZodString;
876
+ text: z.ZodOptional<z.ZodString>;
877
+ kind: z.ZodOptional<z.ZodEnum<{
878
+ issue: "issue";
879
+ pull: "pull";
880
+ }>>;
881
+ author: z.ZodOptional<z.ZodString>;
882
+ branches: z.ZodOptional<z.ZodObject<{
883
+ head: z.ZodString;
884
+ base: z.ZodString;
885
+ }, z.core.$strip>>;
886
+ data: z.ZodOptional<z.ZodJSONSchema>;
887
+ }, z.core.$strip>;
888
+ channel: z.ZodLiteral<"openchamber.sdk">;
889
+ v: z.ZodLiteral<1>;
890
+ }, z.core.$strip>, z.ZodObject<{
891
+ type: z.ZodLiteral<"start-session">;
892
+ id: z.ZodString;
893
+ payload: z.ZodObject<{
894
+ providerId: z.ZodString;
895
+ id: z.ZodString;
896
+ title: z.ZodString;
897
+ url: z.ZodString;
898
+ text: z.ZodOptional<z.ZodString>;
899
+ kind: z.ZodOptional<z.ZodEnum<{
900
+ issue: "issue";
901
+ pull: "pull";
902
+ }>>;
903
+ author: z.ZodOptional<z.ZodString>;
904
+ branches: z.ZodOptional<z.ZodObject<{
905
+ head: z.ZodString;
906
+ base: z.ZodString;
907
+ }, z.core.$strip>>;
908
+ data: z.ZodOptional<z.ZodJSONSchema>;
909
+ worktree: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{
910
+ kind: z.ZodLiteral<"existing">;
911
+ directory: z.ZodString;
912
+ }, z.core.$strict>, z.ZodObject<{
913
+ kind: z.ZodLiteral<"new">;
914
+ name: z.ZodOptional<z.ZodString>;
915
+ baseBranch: z.ZodOptional<z.ZodString>;
916
+ }, z.core.$strict>]>>;
917
+ projectId: z.ZodOptional<z.ZodString>;
918
+ navigation: z.ZodOptional<z.ZodEnum<{
919
+ preserve: "preserve";
920
+ open: "open";
921
+ }>>;
922
+ }, z.core.$strip>;
923
+ channel: z.ZodLiteral<"openchamber.sdk">;
924
+ v: z.ZodLiteral<1>;
925
+ }, z.core.$strip>, z.ZodObject<{
926
+ type: z.ZodLiteral<"prompt">;
927
+ id: z.ZodString;
928
+ payload: z.ZodObject<{
929
+ text: z.ZodString;
930
+ send: z.ZodOptional<z.ZodBoolean>;
931
+ }, z.core.$strip>;
932
+ channel: z.ZodLiteral<"openchamber.sdk">;
933
+ v: z.ZodLiteral<1>;
934
+ }, z.core.$strip>, z.ZodObject<{
935
+ type: z.ZodLiteral<"session-link">;
936
+ id: z.ZodString;
937
+ payload: z.ZodObject<{
938
+ providerId: z.ZodString;
939
+ id: z.ZodString;
940
+ title: z.ZodString;
941
+ url: z.ZodString;
942
+ text: z.ZodOptional<z.ZodString>;
943
+ kind: z.ZodOptional<z.ZodEnum<{
944
+ issue: "issue";
945
+ pull: "pull";
946
+ }>>;
947
+ author: z.ZodOptional<z.ZodString>;
948
+ branches: z.ZodOptional<z.ZodObject<{
949
+ head: z.ZodString;
950
+ base: z.ZodString;
951
+ }, z.core.$strip>>;
952
+ data: z.ZodOptional<z.ZodJSONSchema>;
953
+ }, z.core.$strip>;
954
+ channel: z.ZodLiteral<"openchamber.sdk">;
955
+ v: z.ZodLiteral<1>;
956
+ }, z.core.$strip>, z.ZodObject<{
957
+ type: z.ZodLiteral<"close">;
958
+ id: z.ZodString;
959
+ channel: z.ZodLiteral<"openchamber.sdk">;
960
+ v: z.ZodLiteral<1>;
961
+ }, z.core.$strip>, z.ZodObject<{
962
+ type: z.ZodLiteral<"oauth-start">;
963
+ id: z.ZodString;
964
+ channel: z.ZodLiteral<"openchamber.sdk">;
965
+ v: z.ZodLiteral<1>;
966
+ }, z.core.$strip>, z.ZodObject<{
967
+ type: z.ZodLiteral<"oauth-disconnect">;
968
+ id: z.ZodString;
969
+ channel: z.ZodLiteral<"openchamber.sdk">;
970
+ v: z.ZodLiteral<1>;
971
+ }, z.core.$strip>, z.ZodObject<{
972
+ type: z.ZodLiteral<"request">;
973
+ id: z.ZodString;
974
+ payload: z.ZodObject<{
975
+ method: z.ZodEnum<{
976
+ GET: "GET";
977
+ POST: "POST";
978
+ PUT: "PUT";
979
+ PATCH: "PATCH";
980
+ DELETE: "DELETE";
981
+ }>;
982
+ path: z.ZodString;
983
+ query: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
984
+ body: z.ZodOptional<z.ZodString>;
985
+ }, z.core.$strip>;
986
+ channel: z.ZodLiteral<"openchamber.sdk">;
987
+ v: z.ZodLiteral<1>;
988
+ }, z.core.$strip>, z.ZodObject<{
989
+ type: z.ZodLiteral<"service-request">;
990
+ id: z.ZodString;
991
+ payload: z.ZodObject<{
992
+ method: z.ZodEnum<{
993
+ GET: "GET";
994
+ POST: "POST";
995
+ PUT: "PUT";
996
+ PATCH: "PATCH";
997
+ DELETE: "DELETE";
998
+ }>;
999
+ path: z.ZodString;
1000
+ query: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1001
+ body: z.ZodOptional<z.ZodString>;
1002
+ }, z.core.$strip>;
1003
+ channel: z.ZodLiteral<"openchamber.sdk">;
1004
+ v: z.ZodLiteral<1>;
1005
+ }, z.core.$strip>, z.ZodObject<{
1006
+ type: z.ZodLiteral<"service-status">;
1007
+ id: z.ZodString;
1008
+ channel: z.ZodLiteral<"openchamber.sdk">;
1009
+ v: z.ZodLiteral<1>;
1010
+ }, z.core.$strip>, z.ZodObject<{
1011
+ type: z.ZodLiteral<"file-read">;
1012
+ id: z.ZodString;
1013
+ payload: z.ZodObject<{
1014
+ path: z.ZodString;
1015
+ }, z.core.$strip>;
1016
+ channel: z.ZodLiteral<"openchamber.sdk">;
1017
+ v: z.ZodLiteral<1>;
1018
+ }, z.core.$strip>, z.ZodObject<{
1019
+ type: z.ZodLiteral<"file-write">;
1020
+ id: z.ZodString;
1021
+ payload: z.ZodObject<{
1022
+ path: z.ZodString;
1023
+ content: z.ZodString;
1024
+ }, z.core.$strip>;
1025
+ channel: z.ZodLiteral<"openchamber.sdk">;
1026
+ v: z.ZodLiteral<1>;
1027
+ }, z.core.$strip>, z.ZodObject<{
1028
+ type: z.ZodLiteral<"file-list">;
1029
+ id: z.ZodString;
1030
+ payload: z.ZodObject<{
1031
+ path: z.ZodString;
1032
+ }, z.core.$strip>;
1033
+ channel: z.ZodLiteral<"openchamber.sdk">;
1034
+ v: z.ZodLiteral<1>;
1035
+ }, z.core.$strip>, z.ZodObject<{
1036
+ type: z.ZodLiteral<"file-stat">;
1037
+ id: z.ZodString;
1038
+ payload: z.ZodObject<{
1039
+ path: z.ZodString;
1040
+ }, z.core.$strip>;
1041
+ channel: z.ZodLiteral<"openchamber.sdk">;
1042
+ v: z.ZodLiteral<1>;
1043
+ }, z.core.$strip>, z.ZodObject<{
1044
+ type: z.ZodLiteral<"generate">;
1045
+ id: z.ZodString;
1046
+ payload: z.ZodObject<{
1047
+ prompt: z.ZodString;
1048
+ system: z.ZodOptional<z.ZodString>;
1049
+ maxOutputTokens: z.ZodOptional<z.ZodNumber>;
1050
+ }, z.core.$strip>;
1051
+ channel: z.ZodLiteral<"openchamber.sdk">;
1052
+ v: z.ZodLiteral<1>;
1053
+ }, z.core.$strip>, z.ZodObject<{
1054
+ type: z.ZodLiteral<"badge">;
1055
+ id: z.ZodString;
1056
+ payload: z.ZodObject<{
1057
+ count: z.ZodNullable<z.ZodNumber>;
1058
+ }, z.core.$strip>;
1059
+ channel: z.ZodLiteral<"openchamber.sdk">;
1060
+ v: z.ZodLiteral<1>;
1061
+ }, z.core.$strip>, z.ZodObject<{
1062
+ type: z.ZodLiteral<"resolve-result">;
1063
+ id: z.ZodString;
1064
+ payload: z.ZodUnion<readonly [z.ZodObject<{
1065
+ item: z.ZodNullable<z.ZodObject<{
1066
+ providerId: z.ZodString;
1067
+ id: z.ZodString;
1068
+ title: z.ZodString;
1069
+ url: z.ZodString;
1070
+ text: z.ZodOptional<z.ZodString>;
1071
+ kind: z.ZodOptional<z.ZodEnum<{
1072
+ issue: "issue";
1073
+ pull: "pull";
1074
+ }>>;
1075
+ author: z.ZodOptional<z.ZodString>;
1076
+ branches: z.ZodOptional<z.ZodObject<{
1077
+ head: z.ZodString;
1078
+ base: z.ZodString;
1079
+ }, z.core.$strip>>;
1080
+ data: z.ZodOptional<z.ZodJSONSchema>;
1081
+ }, z.core.$strip>>;
1082
+ }, z.core.$strip>, z.ZodObject<{
1083
+ error: z.ZodString;
1084
+ }, z.core.$strip>]>;
1085
+ channel: z.ZodLiteral<"openchamber.sdk">;
1086
+ v: z.ZodLiteral<1>;
1087
+ }, z.core.$strip>], "type">;
1088
+ type HostWire = z.input<typeof hostMessageSchema>;
1089
+ type GuestWire = z.input<typeof guestMessageSchema>;
1090
+ export declare const parseHostMessage: (document: HostWire) => HostMessage | null;
1091
+ export declare const parseGuestMessage: (document: GuestWire) => GuestMessage | null;
1092
+ export {};