@ruakit/schema 0.0.0-stage → 0.1.0-alpha.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.
@@ -0,0 +1,706 @@
1
+ import { z } from "zod";
2
+ /** Actions the runtime can perform on an observed target. */
3
+ export declare const actionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
4
+ type: z.ZodLiteral<"click">;
5
+ target: z.ZodObject<{
6
+ id: z.ZodString;
7
+ version: z.ZodNumber;
8
+ }, z.core.$strict>;
9
+ }, z.core.$strict>, z.ZodObject<{
10
+ type: z.ZodLiteral<"focus">;
11
+ target: z.ZodObject<{
12
+ id: z.ZodString;
13
+ version: z.ZodNumber;
14
+ }, z.core.$strict>;
15
+ }, z.core.$strict>, z.ZodObject<{
16
+ type: z.ZodLiteral<"insertText">;
17
+ target: z.ZodObject<{
18
+ id: z.ZodString;
19
+ version: z.ZodNumber;
20
+ }, z.core.$strict>;
21
+ text: z.ZodString;
22
+ }, z.core.$strict>, z.ZodObject<{
23
+ type: z.ZodLiteral<"key">;
24
+ target: z.ZodObject<{
25
+ id: z.ZodString;
26
+ version: z.ZodNumber;
27
+ }, z.core.$strict>;
28
+ key: z.ZodString;
29
+ altKey: z.ZodBoolean;
30
+ ctrlKey: z.ZodBoolean;
31
+ metaKey: z.ZodBoolean;
32
+ shiftKey: z.ZodBoolean;
33
+ }, z.core.$strict>, z.ZodObject<{
34
+ type: z.ZodLiteral<"fill">;
35
+ target: z.ZodObject<{
36
+ id: z.ZodString;
37
+ version: z.ZodNumber;
38
+ }, z.core.$strict>;
39
+ value: z.ZodString;
40
+ }, z.core.$strict>, z.ZodObject<{
41
+ type: z.ZodLiteral<"select">;
42
+ target: z.ZodObject<{
43
+ id: z.ZodString;
44
+ version: z.ZodNumber;
45
+ }, z.core.$strict>;
46
+ values: z.ZodArray<z.ZodString>;
47
+ }, z.core.$strict>, z.ZodObject<{
48
+ type: z.ZodLiteral<"check">;
49
+ target: z.ZodObject<{
50
+ id: z.ZodString;
51
+ version: z.ZodNumber;
52
+ }, z.core.$strict>;
53
+ checked: z.ZodBoolean;
54
+ }, z.core.$strict>], "type">;
55
+ /** The model requests permission for this exact action. Only the host can approve it. */
56
+ export declare const approvalDecisionSchema: z.ZodObject<{
57
+ type: z.ZodLiteral<"approval">;
58
+ message: z.ZodString;
59
+ step: z.ZodDiscriminatedUnion<[z.ZodObject<{
60
+ type: z.ZodLiteral<"click">;
61
+ target: z.ZodObject<{
62
+ id: z.ZodString;
63
+ version: z.ZodNumber;
64
+ }, z.core.$strict>;
65
+ }, z.core.$strict>, z.ZodObject<{
66
+ type: z.ZodLiteral<"focus">;
67
+ target: z.ZodObject<{
68
+ id: z.ZodString;
69
+ version: z.ZodNumber;
70
+ }, z.core.$strict>;
71
+ }, z.core.$strict>, z.ZodObject<{
72
+ type: z.ZodLiteral<"insertText">;
73
+ target: z.ZodObject<{
74
+ id: z.ZodString;
75
+ version: z.ZodNumber;
76
+ }, z.core.$strict>;
77
+ text: z.ZodString;
78
+ }, z.core.$strict>, z.ZodObject<{
79
+ type: z.ZodLiteral<"key">;
80
+ target: z.ZodObject<{
81
+ id: z.ZodString;
82
+ version: z.ZodNumber;
83
+ }, z.core.$strict>;
84
+ key: z.ZodString;
85
+ altKey: z.ZodBoolean;
86
+ ctrlKey: z.ZodBoolean;
87
+ metaKey: z.ZodBoolean;
88
+ shiftKey: z.ZodBoolean;
89
+ }, z.core.$strict>, z.ZodObject<{
90
+ type: z.ZodLiteral<"fill">;
91
+ target: z.ZodObject<{
92
+ id: z.ZodString;
93
+ version: z.ZodNumber;
94
+ }, z.core.$strict>;
95
+ value: z.ZodString;
96
+ }, z.core.$strict>, z.ZodObject<{
97
+ type: z.ZodLiteral<"select">;
98
+ target: z.ZodObject<{
99
+ id: z.ZodString;
100
+ version: z.ZodNumber;
101
+ }, z.core.$strict>;
102
+ values: z.ZodArray<z.ZodString>;
103
+ }, z.core.$strict>, z.ZodObject<{
104
+ type: z.ZodLiteral<"check">;
105
+ target: z.ZodObject<{
106
+ id: z.ZodString;
107
+ version: z.ZodNumber;
108
+ }, z.core.$strict>;
109
+ checked: z.ZodBoolean;
110
+ }, z.core.$strict>], "type">;
111
+ }, z.core.$strict>;
112
+ /** Decisions a planner can return for the current observation. */
113
+ export declare const decisionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
114
+ type: z.ZodLiteral<"act">;
115
+ message: z.ZodString;
116
+ step: z.ZodDiscriminatedUnion<[z.ZodObject<{
117
+ type: z.ZodLiteral<"click">;
118
+ target: z.ZodObject<{
119
+ id: z.ZodString;
120
+ version: z.ZodNumber;
121
+ }, z.core.$strict>;
122
+ }, z.core.$strict>, z.ZodObject<{
123
+ type: z.ZodLiteral<"focus">;
124
+ target: z.ZodObject<{
125
+ id: z.ZodString;
126
+ version: z.ZodNumber;
127
+ }, z.core.$strict>;
128
+ }, z.core.$strict>, z.ZodObject<{
129
+ type: z.ZodLiteral<"insertText">;
130
+ target: z.ZodObject<{
131
+ id: z.ZodString;
132
+ version: z.ZodNumber;
133
+ }, z.core.$strict>;
134
+ text: z.ZodString;
135
+ }, z.core.$strict>, z.ZodObject<{
136
+ type: z.ZodLiteral<"key">;
137
+ target: z.ZodObject<{
138
+ id: z.ZodString;
139
+ version: z.ZodNumber;
140
+ }, z.core.$strict>;
141
+ key: z.ZodString;
142
+ altKey: z.ZodBoolean;
143
+ ctrlKey: z.ZodBoolean;
144
+ metaKey: z.ZodBoolean;
145
+ shiftKey: z.ZodBoolean;
146
+ }, z.core.$strict>, z.ZodObject<{
147
+ type: z.ZodLiteral<"fill">;
148
+ target: z.ZodObject<{
149
+ id: z.ZodString;
150
+ version: z.ZodNumber;
151
+ }, z.core.$strict>;
152
+ value: z.ZodString;
153
+ }, z.core.$strict>, z.ZodObject<{
154
+ type: z.ZodLiteral<"select">;
155
+ target: z.ZodObject<{
156
+ id: z.ZodString;
157
+ version: z.ZodNumber;
158
+ }, z.core.$strict>;
159
+ values: z.ZodArray<z.ZodString>;
160
+ }, z.core.$strict>, z.ZodObject<{
161
+ type: z.ZodLiteral<"check">;
162
+ target: z.ZodObject<{
163
+ id: z.ZodString;
164
+ version: z.ZodNumber;
165
+ }, z.core.$strict>;
166
+ checked: z.ZodBoolean;
167
+ }, z.core.$strict>], "type">;
168
+ }, z.core.$strict>, z.ZodObject<{
169
+ type: z.ZodLiteral<"complete">;
170
+ message: z.ZodString;
171
+ checks: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
172
+ type: z.ZodLiteral<"value">;
173
+ description: z.ZodString;
174
+ control: z.ZodObject<{
175
+ id: z.ZodNullable<z.ZodString>;
176
+ role: z.ZodString;
177
+ label: z.ZodString;
178
+ context: z.ZodNullable<z.ZodString>;
179
+ group: z.ZodNullable<z.ZodString>;
180
+ }, z.core.$strict>;
181
+ equals: z.ZodString;
182
+ }, z.core.$strict>, z.ZodObject<{
183
+ type: z.ZodLiteral<"checked">;
184
+ description: z.ZodString;
185
+ control: z.ZodObject<{
186
+ id: z.ZodNullable<z.ZodString>;
187
+ role: z.ZodString;
188
+ label: z.ZodString;
189
+ context: z.ZodNullable<z.ZodString>;
190
+ group: z.ZodNullable<z.ZodString>;
191
+ }, z.core.$strict>;
192
+ equals: z.ZodBoolean;
193
+ }, z.core.$strict>, z.ZodObject<{
194
+ type: z.ZodLiteral<"selected">;
195
+ description: z.ZodString;
196
+ control: z.ZodObject<{
197
+ id: z.ZodNullable<z.ZodString>;
198
+ role: z.ZodString;
199
+ label: z.ZodString;
200
+ context: z.ZodNullable<z.ZodString>;
201
+ group: z.ZodNullable<z.ZodString>;
202
+ }, z.core.$strict>;
203
+ equals: z.ZodArray<z.ZodString>;
204
+ }, z.core.$strict>, z.ZodObject<{
205
+ type: z.ZodLiteral<"text">;
206
+ description: z.ZodString;
207
+ text: z.ZodString;
208
+ fresh: z.ZodBoolean;
209
+ }, z.core.$strict>, z.ZodObject<{
210
+ type: z.ZodLiteral<"url">;
211
+ description: z.ZodString;
212
+ equals: z.ZodString;
213
+ }, z.core.$strict>, z.ZodObject<{
214
+ type: z.ZodLiteral<"absent">;
215
+ description: z.ZodString;
216
+ control: z.ZodObject<{
217
+ id: z.ZodNullable<z.ZodString>;
218
+ role: z.ZodString;
219
+ label: z.ZodString;
220
+ context: z.ZodNullable<z.ZodString>;
221
+ group: z.ZodNullable<z.ZodString>;
222
+ }, z.core.$strict>;
223
+ }, z.core.$strict>], "type">>;
224
+ }, z.core.$strict>, z.ZodObject<{
225
+ type: z.ZodLiteral<"prepare">;
226
+ message: z.ZodString;
227
+ checks: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
228
+ type: z.ZodLiteral<"value">;
229
+ description: z.ZodString;
230
+ control: z.ZodObject<{
231
+ id: z.ZodNullable<z.ZodString>;
232
+ role: z.ZodString;
233
+ label: z.ZodString;
234
+ context: z.ZodNullable<z.ZodString>;
235
+ group: z.ZodNullable<z.ZodString>;
236
+ }, z.core.$strict>;
237
+ equals: z.ZodString;
238
+ }, z.core.$strict>, z.ZodObject<{
239
+ type: z.ZodLiteral<"checked">;
240
+ description: z.ZodString;
241
+ control: z.ZodObject<{
242
+ id: z.ZodNullable<z.ZodString>;
243
+ role: z.ZodString;
244
+ label: z.ZodString;
245
+ context: z.ZodNullable<z.ZodString>;
246
+ group: z.ZodNullable<z.ZodString>;
247
+ }, z.core.$strict>;
248
+ equals: z.ZodBoolean;
249
+ }, z.core.$strict>, z.ZodObject<{
250
+ type: z.ZodLiteral<"selected">;
251
+ description: z.ZodString;
252
+ control: z.ZodObject<{
253
+ id: z.ZodNullable<z.ZodString>;
254
+ role: z.ZodString;
255
+ label: z.ZodString;
256
+ context: z.ZodNullable<z.ZodString>;
257
+ group: z.ZodNullable<z.ZodString>;
258
+ }, z.core.$strict>;
259
+ equals: z.ZodArray<z.ZodString>;
260
+ }, z.core.$strict>, z.ZodObject<{
261
+ type: z.ZodLiteral<"text">;
262
+ description: z.ZodString;
263
+ text: z.ZodString;
264
+ fresh: z.ZodBoolean;
265
+ }, z.core.$strict>, z.ZodObject<{
266
+ type: z.ZodLiteral<"url">;
267
+ description: z.ZodString;
268
+ equals: z.ZodString;
269
+ }, z.core.$strict>, z.ZodObject<{
270
+ type: z.ZodLiteral<"absent">;
271
+ description: z.ZodString;
272
+ control: z.ZodObject<{
273
+ id: z.ZodNullable<z.ZodString>;
274
+ role: z.ZodString;
275
+ label: z.ZodString;
276
+ context: z.ZodNullable<z.ZodString>;
277
+ group: z.ZodNullable<z.ZodString>;
278
+ }, z.core.$strict>;
279
+ }, z.core.$strict>], "type">>;
280
+ }, z.core.$strict>, z.ZodObject<{
281
+ type: z.ZodLiteral<"screenshot">;
282
+ message: z.ZodString;
283
+ }, z.core.$strict>, z.ZodObject<{
284
+ type: z.ZodLiteral<"clarify">;
285
+ message: z.ZodString;
286
+ }, z.core.$strict>, z.ZodObject<{
287
+ type: z.ZodLiteral<"unsupported">;
288
+ message: z.ZodString;
289
+ }, z.core.$strict>, z.ZodObject<{
290
+ type: z.ZodLiteral<"approval">;
291
+ message: z.ZodString;
292
+ step: z.ZodDiscriminatedUnion<[z.ZodObject<{
293
+ type: z.ZodLiteral<"click">;
294
+ target: z.ZodObject<{
295
+ id: z.ZodString;
296
+ version: z.ZodNumber;
297
+ }, z.core.$strict>;
298
+ }, z.core.$strict>, z.ZodObject<{
299
+ type: z.ZodLiteral<"focus">;
300
+ target: z.ZodObject<{
301
+ id: z.ZodString;
302
+ version: z.ZodNumber;
303
+ }, z.core.$strict>;
304
+ }, z.core.$strict>, z.ZodObject<{
305
+ type: z.ZodLiteral<"insertText">;
306
+ target: z.ZodObject<{
307
+ id: z.ZodString;
308
+ version: z.ZodNumber;
309
+ }, z.core.$strict>;
310
+ text: z.ZodString;
311
+ }, z.core.$strict>, z.ZodObject<{
312
+ type: z.ZodLiteral<"key">;
313
+ target: z.ZodObject<{
314
+ id: z.ZodString;
315
+ version: z.ZodNumber;
316
+ }, z.core.$strict>;
317
+ key: z.ZodString;
318
+ altKey: z.ZodBoolean;
319
+ ctrlKey: z.ZodBoolean;
320
+ metaKey: z.ZodBoolean;
321
+ shiftKey: z.ZodBoolean;
322
+ }, z.core.$strict>, z.ZodObject<{
323
+ type: z.ZodLiteral<"fill">;
324
+ target: z.ZodObject<{
325
+ id: z.ZodString;
326
+ version: z.ZodNumber;
327
+ }, z.core.$strict>;
328
+ value: z.ZodString;
329
+ }, z.core.$strict>, z.ZodObject<{
330
+ type: z.ZodLiteral<"select">;
331
+ target: z.ZodObject<{
332
+ id: z.ZodString;
333
+ version: z.ZodNumber;
334
+ }, z.core.$strict>;
335
+ values: z.ZodArray<z.ZodString>;
336
+ }, z.core.$strict>, z.ZodObject<{
337
+ type: z.ZodLiteral<"check">;
338
+ target: z.ZodObject<{
339
+ id: z.ZodString;
340
+ version: z.ZodNumber;
341
+ }, z.core.$strict>;
342
+ checked: z.ZodBoolean;
343
+ }, z.core.$strict>], "type">;
344
+ }, z.core.$strict>], "type">;
345
+ /** Observation and conversation context sent to the planner. */
346
+ export declare const decisionRequestSchema: z.ZodObject<{
347
+ platform: z.ZodOptional<z.ZodString>;
348
+ prompt: z.ZodString;
349
+ clarifications: z.ZodArray<z.ZodObject<{
350
+ question: z.ZodString;
351
+ answer: z.ZodString;
352
+ }, z.core.$strict>>;
353
+ snapshot: z.ZodObject<{
354
+ url: z.ZodString;
355
+ title: z.ZodString;
356
+ text: z.ZodString;
357
+ controls: z.ZodArray<z.ZodObject<{
358
+ target: z.ZodObject<{
359
+ id: z.ZodString;
360
+ version: z.ZodNumber;
361
+ }, z.core.$strict>;
362
+ tag: z.ZodString;
363
+ type: z.ZodOptional<z.ZodString>;
364
+ role: z.ZodString;
365
+ label: z.ZodString;
366
+ description: z.ZodOptional<z.ZodString>;
367
+ placeholder: z.ZodOptional<z.ZodString>;
368
+ groups: z.ZodOptional<z.ZodArray<z.ZodObject<{
369
+ role: z.ZodEnum<{
370
+ group: "group";
371
+ form: "form";
372
+ radiogroup: "radiogroup";
373
+ region: "region";
374
+ dialog: "dialog";
375
+ alertdialog: "alertdialog";
376
+ }>;
377
+ name: z.ZodString;
378
+ }, z.core.$strict>>>;
379
+ groupsTruncated: z.ZodOptional<z.ZodBoolean>;
380
+ context: z.ZodString;
381
+ enabled: z.ZodBoolean;
382
+ readOnly: z.ZodBoolean;
383
+ value: z.ZodOptional<z.ZodString>;
384
+ checked: z.ZodOptional<z.ZodBoolean>;
385
+ expanded: z.ZodOptional<z.ZodBoolean>;
386
+ selectedValues: z.ZodOptional<z.ZodArray<z.ZodString>>;
387
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
388
+ value: z.ZodString;
389
+ label: z.ZodString;
390
+ enabled: z.ZodBoolean;
391
+ }, z.core.$strict>>>;
392
+ valid: z.ZodOptional<z.ZodBoolean>;
393
+ contentEditable: z.ZodOptional<z.ZodBoolean>;
394
+ }, z.core.$strict>>;
395
+ focused: z.ZodNullable<z.ZodObject<{
396
+ id: z.ZodString;
397
+ version: z.ZodNumber;
398
+ }, z.core.$strict>>;
399
+ truncated: z.ZodBoolean;
400
+ }, z.core.$strict>;
401
+ history: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
402
+ type: z.ZodLiteral<"act">;
403
+ message: z.ZodString;
404
+ step: z.ZodDiscriminatedUnion<[z.ZodObject<{
405
+ type: z.ZodLiteral<"click">;
406
+ target: z.ZodObject<{
407
+ id: z.ZodString;
408
+ version: z.ZodNumber;
409
+ }, z.core.$strict>;
410
+ }, z.core.$strict>, z.ZodObject<{
411
+ type: z.ZodLiteral<"focus">;
412
+ target: z.ZodObject<{
413
+ id: z.ZodString;
414
+ version: z.ZodNumber;
415
+ }, z.core.$strict>;
416
+ }, z.core.$strict>, z.ZodObject<{
417
+ type: z.ZodLiteral<"insertText">;
418
+ target: z.ZodObject<{
419
+ id: z.ZodString;
420
+ version: z.ZodNumber;
421
+ }, z.core.$strict>;
422
+ text: z.ZodString;
423
+ }, z.core.$strict>, z.ZodObject<{
424
+ type: z.ZodLiteral<"key">;
425
+ target: z.ZodObject<{
426
+ id: z.ZodString;
427
+ version: z.ZodNumber;
428
+ }, z.core.$strict>;
429
+ key: z.ZodString;
430
+ altKey: z.ZodBoolean;
431
+ ctrlKey: z.ZodBoolean;
432
+ metaKey: z.ZodBoolean;
433
+ shiftKey: z.ZodBoolean;
434
+ }, z.core.$strict>, z.ZodObject<{
435
+ type: z.ZodLiteral<"fill">;
436
+ target: z.ZodObject<{
437
+ id: z.ZodString;
438
+ version: z.ZodNumber;
439
+ }, z.core.$strict>;
440
+ value: z.ZodString;
441
+ }, z.core.$strict>, z.ZodObject<{
442
+ type: z.ZodLiteral<"select">;
443
+ target: z.ZodObject<{
444
+ id: z.ZodString;
445
+ version: z.ZodNumber;
446
+ }, z.core.$strict>;
447
+ values: z.ZodArray<z.ZodString>;
448
+ }, z.core.$strict>, z.ZodObject<{
449
+ type: z.ZodLiteral<"check">;
450
+ target: z.ZodObject<{
451
+ id: z.ZodString;
452
+ version: z.ZodNumber;
453
+ }, z.core.$strict>;
454
+ checked: z.ZodBoolean;
455
+ }, z.core.$strict>], "type">;
456
+ }, z.core.$strict>, z.ZodObject<{
457
+ type: z.ZodLiteral<"complete">;
458
+ message: z.ZodString;
459
+ checks: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
460
+ type: z.ZodLiteral<"value">;
461
+ description: z.ZodString;
462
+ control: z.ZodObject<{
463
+ id: z.ZodNullable<z.ZodString>;
464
+ role: z.ZodString;
465
+ label: z.ZodString;
466
+ context: z.ZodNullable<z.ZodString>;
467
+ group: z.ZodNullable<z.ZodString>;
468
+ }, z.core.$strict>;
469
+ equals: z.ZodString;
470
+ }, z.core.$strict>, z.ZodObject<{
471
+ type: z.ZodLiteral<"checked">;
472
+ description: z.ZodString;
473
+ control: z.ZodObject<{
474
+ id: z.ZodNullable<z.ZodString>;
475
+ role: z.ZodString;
476
+ label: z.ZodString;
477
+ context: z.ZodNullable<z.ZodString>;
478
+ group: z.ZodNullable<z.ZodString>;
479
+ }, z.core.$strict>;
480
+ equals: z.ZodBoolean;
481
+ }, z.core.$strict>, z.ZodObject<{
482
+ type: z.ZodLiteral<"selected">;
483
+ description: z.ZodString;
484
+ control: z.ZodObject<{
485
+ id: z.ZodNullable<z.ZodString>;
486
+ role: z.ZodString;
487
+ label: z.ZodString;
488
+ context: z.ZodNullable<z.ZodString>;
489
+ group: z.ZodNullable<z.ZodString>;
490
+ }, z.core.$strict>;
491
+ equals: z.ZodArray<z.ZodString>;
492
+ }, z.core.$strict>, z.ZodObject<{
493
+ type: z.ZodLiteral<"text">;
494
+ description: z.ZodString;
495
+ text: z.ZodString;
496
+ fresh: z.ZodBoolean;
497
+ }, z.core.$strict>, z.ZodObject<{
498
+ type: z.ZodLiteral<"url">;
499
+ description: z.ZodString;
500
+ equals: z.ZodString;
501
+ }, z.core.$strict>, z.ZodObject<{
502
+ type: z.ZodLiteral<"absent">;
503
+ description: z.ZodString;
504
+ control: z.ZodObject<{
505
+ id: z.ZodNullable<z.ZodString>;
506
+ role: z.ZodString;
507
+ label: z.ZodString;
508
+ context: z.ZodNullable<z.ZodString>;
509
+ group: z.ZodNullable<z.ZodString>;
510
+ }, z.core.$strict>;
511
+ }, z.core.$strict>], "type">>;
512
+ }, z.core.$strict>, z.ZodObject<{
513
+ type: z.ZodLiteral<"prepare">;
514
+ message: z.ZodString;
515
+ checks: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
516
+ type: z.ZodLiteral<"value">;
517
+ description: z.ZodString;
518
+ control: z.ZodObject<{
519
+ id: z.ZodNullable<z.ZodString>;
520
+ role: z.ZodString;
521
+ label: z.ZodString;
522
+ context: z.ZodNullable<z.ZodString>;
523
+ group: z.ZodNullable<z.ZodString>;
524
+ }, z.core.$strict>;
525
+ equals: z.ZodString;
526
+ }, z.core.$strict>, z.ZodObject<{
527
+ type: z.ZodLiteral<"checked">;
528
+ description: z.ZodString;
529
+ control: z.ZodObject<{
530
+ id: z.ZodNullable<z.ZodString>;
531
+ role: z.ZodString;
532
+ label: z.ZodString;
533
+ context: z.ZodNullable<z.ZodString>;
534
+ group: z.ZodNullable<z.ZodString>;
535
+ }, z.core.$strict>;
536
+ equals: z.ZodBoolean;
537
+ }, z.core.$strict>, z.ZodObject<{
538
+ type: z.ZodLiteral<"selected">;
539
+ description: z.ZodString;
540
+ control: z.ZodObject<{
541
+ id: z.ZodNullable<z.ZodString>;
542
+ role: z.ZodString;
543
+ label: z.ZodString;
544
+ context: z.ZodNullable<z.ZodString>;
545
+ group: z.ZodNullable<z.ZodString>;
546
+ }, z.core.$strict>;
547
+ equals: z.ZodArray<z.ZodString>;
548
+ }, z.core.$strict>, z.ZodObject<{
549
+ type: z.ZodLiteral<"text">;
550
+ description: z.ZodString;
551
+ text: z.ZodString;
552
+ fresh: z.ZodBoolean;
553
+ }, z.core.$strict>, z.ZodObject<{
554
+ type: z.ZodLiteral<"url">;
555
+ description: z.ZodString;
556
+ equals: z.ZodString;
557
+ }, z.core.$strict>, z.ZodObject<{
558
+ type: z.ZodLiteral<"absent">;
559
+ description: z.ZodString;
560
+ control: z.ZodObject<{
561
+ id: z.ZodNullable<z.ZodString>;
562
+ role: z.ZodString;
563
+ label: z.ZodString;
564
+ context: z.ZodNullable<z.ZodString>;
565
+ group: z.ZodNullable<z.ZodString>;
566
+ }, z.core.$strict>;
567
+ }, z.core.$strict>], "type">>;
568
+ }, z.core.$strict>, z.ZodObject<{
569
+ type: z.ZodLiteral<"screenshot">;
570
+ message: z.ZodString;
571
+ }, z.core.$strict>, z.ZodObject<{
572
+ type: z.ZodLiteral<"clarify">;
573
+ message: z.ZodString;
574
+ }, z.core.$strict>, z.ZodObject<{
575
+ type: z.ZodLiteral<"unsupported">;
576
+ message: z.ZodString;
577
+ }, z.core.$strict>, z.ZodObject<{
578
+ type: z.ZodLiteral<"approval">;
579
+ message: z.ZodString;
580
+ step: z.ZodDiscriminatedUnion<[z.ZodObject<{
581
+ type: z.ZodLiteral<"click">;
582
+ target: z.ZodObject<{
583
+ id: z.ZodString;
584
+ version: z.ZodNumber;
585
+ }, z.core.$strict>;
586
+ }, z.core.$strict>, z.ZodObject<{
587
+ type: z.ZodLiteral<"focus">;
588
+ target: z.ZodObject<{
589
+ id: z.ZodString;
590
+ version: z.ZodNumber;
591
+ }, z.core.$strict>;
592
+ }, z.core.$strict>, z.ZodObject<{
593
+ type: z.ZodLiteral<"insertText">;
594
+ target: z.ZodObject<{
595
+ id: z.ZodString;
596
+ version: z.ZodNumber;
597
+ }, z.core.$strict>;
598
+ text: z.ZodString;
599
+ }, z.core.$strict>, z.ZodObject<{
600
+ type: z.ZodLiteral<"key">;
601
+ target: z.ZodObject<{
602
+ id: z.ZodString;
603
+ version: z.ZodNumber;
604
+ }, z.core.$strict>;
605
+ key: z.ZodString;
606
+ altKey: z.ZodBoolean;
607
+ ctrlKey: z.ZodBoolean;
608
+ metaKey: z.ZodBoolean;
609
+ shiftKey: z.ZodBoolean;
610
+ }, z.core.$strict>, z.ZodObject<{
611
+ type: z.ZodLiteral<"fill">;
612
+ target: z.ZodObject<{
613
+ id: z.ZodString;
614
+ version: z.ZodNumber;
615
+ }, z.core.$strict>;
616
+ value: z.ZodString;
617
+ }, z.core.$strict>, z.ZodObject<{
618
+ type: z.ZodLiteral<"select">;
619
+ target: z.ZodObject<{
620
+ id: z.ZodString;
621
+ version: z.ZodNumber;
622
+ }, z.core.$strict>;
623
+ values: z.ZodArray<z.ZodString>;
624
+ }, z.core.$strict>, z.ZodObject<{
625
+ type: z.ZodLiteral<"check">;
626
+ target: z.ZodObject<{
627
+ id: z.ZodString;
628
+ version: z.ZodNumber;
629
+ }, z.core.$strict>;
630
+ checked: z.ZodBoolean;
631
+ }, z.core.$strict>], "type">;
632
+ }, z.core.$strict>], "type">>;
633
+ checks: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
634
+ type: z.ZodLiteral<"value">;
635
+ description: z.ZodString;
636
+ control: z.ZodObject<{
637
+ id: z.ZodNullable<z.ZodString>;
638
+ role: z.ZodString;
639
+ label: z.ZodString;
640
+ context: z.ZodNullable<z.ZodString>;
641
+ group: z.ZodNullable<z.ZodString>;
642
+ }, z.core.$strict>;
643
+ equals: z.ZodString;
644
+ }, z.core.$strict>, z.ZodObject<{
645
+ type: z.ZodLiteral<"checked">;
646
+ description: z.ZodString;
647
+ control: z.ZodObject<{
648
+ id: z.ZodNullable<z.ZodString>;
649
+ role: z.ZodString;
650
+ label: z.ZodString;
651
+ context: z.ZodNullable<z.ZodString>;
652
+ group: z.ZodNullable<z.ZodString>;
653
+ }, z.core.$strict>;
654
+ equals: z.ZodBoolean;
655
+ }, z.core.$strict>, z.ZodObject<{
656
+ type: z.ZodLiteral<"selected">;
657
+ description: z.ZodString;
658
+ control: z.ZodObject<{
659
+ id: z.ZodNullable<z.ZodString>;
660
+ role: z.ZodString;
661
+ label: z.ZodString;
662
+ context: z.ZodNullable<z.ZodString>;
663
+ group: z.ZodNullable<z.ZodString>;
664
+ }, z.core.$strict>;
665
+ equals: z.ZodArray<z.ZodString>;
666
+ }, z.core.$strict>, z.ZodObject<{
667
+ type: z.ZodLiteral<"text">;
668
+ description: z.ZodString;
669
+ text: z.ZodString;
670
+ fresh: z.ZodBoolean;
671
+ }, z.core.$strict>, z.ZodObject<{
672
+ type: z.ZodLiteral<"url">;
673
+ description: z.ZodString;
674
+ equals: z.ZodString;
675
+ }, z.core.$strict>, z.ZodObject<{
676
+ type: z.ZodLiteral<"absent">;
677
+ description: z.ZodString;
678
+ control: z.ZodObject<{
679
+ id: z.ZodNullable<z.ZodString>;
680
+ role: z.ZodString;
681
+ label: z.ZodString;
682
+ context: z.ZodNullable<z.ZodString>;
683
+ group: z.ZodNullable<z.ZodString>;
684
+ }, z.core.$strict>;
685
+ }, z.core.$strict>], "type">>>>;
686
+ canScreenshot: z.ZodOptional<z.ZodBoolean>;
687
+ screenshot: z.ZodOptional<z.ZodObject<{
688
+ data: z.ZodString;
689
+ mimeType: z.ZodEnum<{
690
+ "image/png": "image/png";
691
+ "image/jpeg": "image/jpeg";
692
+ "image/webp": "image/webp";
693
+ }>;
694
+ width: z.ZodNumber;
695
+ height: z.ZodNumber;
696
+ capturedAt: z.ZodNumber;
697
+ url: z.ZodString;
698
+ }, z.core.$strict>>;
699
+ }, z.core.$strict>;
700
+ /** A validated request for a planner decision. */
701
+ export type DecisionRequest = z.infer<typeof decisionRequestSchema>;
702
+ /** A validated planner decision. */
703
+ export type Decision = z.infer<typeof decisionSchema>;
704
+ /** A decision asking the host to approve one action. */
705
+ export type ApprovalDecision = z.infer<typeof approvalDecisionSchema>;
706
+ //# sourceMappingURL=decision.d.ts.map