@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.
package/dist/plan.d.ts ADDED
@@ -0,0 +1,1126 @@
1
+ import { z } from 'zod';
2
+ /** Resolve these locators against a fresh observation before executing each step. */
3
+ export declare const plannedStepSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
4
+ type: z.ZodLiteral<"click">;
5
+ id: z.ZodString;
6
+ message: z.ZodString;
7
+ target: z.ZodObject<{
8
+ id: z.ZodNullable<z.ZodString>;
9
+ role: z.ZodString;
10
+ label: z.ZodString;
11
+ context: z.ZodNullable<z.ZodString>;
12
+ group: z.ZodNullable<z.ZodString>;
13
+ }, z.core.$strict>;
14
+ }, z.core.$strict>, z.ZodObject<{
15
+ type: z.ZodLiteral<"focus">;
16
+ id: z.ZodString;
17
+ message: z.ZodString;
18
+ target: z.ZodObject<{
19
+ id: z.ZodNullable<z.ZodString>;
20
+ role: z.ZodString;
21
+ label: z.ZodString;
22
+ context: z.ZodNullable<z.ZodString>;
23
+ group: z.ZodNullable<z.ZodString>;
24
+ }, z.core.$strict>;
25
+ }, z.core.$strict>, z.ZodObject<{
26
+ type: z.ZodLiteral<"insertText">;
27
+ text: z.ZodString;
28
+ id: z.ZodString;
29
+ message: z.ZodString;
30
+ target: z.ZodObject<{
31
+ id: z.ZodNullable<z.ZodString>;
32
+ role: z.ZodString;
33
+ label: z.ZodString;
34
+ context: z.ZodNullable<z.ZodString>;
35
+ group: z.ZodNullable<z.ZodString>;
36
+ }, z.core.$strict>;
37
+ }, z.core.$strict>, z.ZodObject<{
38
+ type: z.ZodLiteral<"key">;
39
+ key: z.ZodString;
40
+ altKey: z.ZodBoolean;
41
+ ctrlKey: z.ZodBoolean;
42
+ metaKey: z.ZodBoolean;
43
+ shiftKey: z.ZodBoolean;
44
+ id: z.ZodString;
45
+ message: z.ZodString;
46
+ target: z.ZodObject<{
47
+ id: z.ZodNullable<z.ZodString>;
48
+ role: z.ZodString;
49
+ label: z.ZodString;
50
+ context: z.ZodNullable<z.ZodString>;
51
+ group: z.ZodNullable<z.ZodString>;
52
+ }, z.core.$strict>;
53
+ }, z.core.$strict>, z.ZodObject<{
54
+ type: z.ZodLiteral<"fill">;
55
+ value: z.ZodString;
56
+ id: z.ZodString;
57
+ message: z.ZodString;
58
+ target: z.ZodObject<{
59
+ id: z.ZodNullable<z.ZodString>;
60
+ role: z.ZodString;
61
+ label: z.ZodString;
62
+ context: z.ZodNullable<z.ZodString>;
63
+ group: z.ZodNullable<z.ZodString>;
64
+ }, z.core.$strict>;
65
+ }, z.core.$strict>, z.ZodObject<{
66
+ type: z.ZodLiteral<"select">;
67
+ values: z.ZodArray<z.ZodString>;
68
+ id: z.ZodString;
69
+ message: z.ZodString;
70
+ target: z.ZodObject<{
71
+ id: z.ZodNullable<z.ZodString>;
72
+ role: z.ZodString;
73
+ label: z.ZodString;
74
+ context: z.ZodNullable<z.ZodString>;
75
+ group: z.ZodNullable<z.ZodString>;
76
+ }, z.core.$strict>;
77
+ }, z.core.$strict>, z.ZodObject<{
78
+ type: z.ZodLiteral<"check">;
79
+ checked: z.ZodBoolean;
80
+ id: z.ZodString;
81
+ message: z.ZodString;
82
+ target: z.ZodObject<{
83
+ id: z.ZodNullable<z.ZodString>;
84
+ role: z.ZodString;
85
+ label: z.ZodString;
86
+ context: z.ZodNullable<z.ZodString>;
87
+ group: z.ZodNullable<z.ZodString>;
88
+ }, z.core.$strict>;
89
+ }, z.core.$strict>], "type">;
90
+ /** An ordered plan and the checks used to assess its outcome. */
91
+ export declare const planSchema: z.ZodObject<{
92
+ id: z.ZodString;
93
+ replacesPlanId: z.ZodOptional<z.ZodString>;
94
+ message: z.ZodString;
95
+ steps: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
96
+ type: z.ZodLiteral<"click">;
97
+ id: z.ZodString;
98
+ message: z.ZodString;
99
+ target: z.ZodObject<{
100
+ id: z.ZodNullable<z.ZodString>;
101
+ role: z.ZodString;
102
+ label: z.ZodString;
103
+ context: z.ZodNullable<z.ZodString>;
104
+ group: z.ZodNullable<z.ZodString>;
105
+ }, z.core.$strict>;
106
+ }, z.core.$strict>, z.ZodObject<{
107
+ type: z.ZodLiteral<"focus">;
108
+ id: z.ZodString;
109
+ message: z.ZodString;
110
+ target: z.ZodObject<{
111
+ id: z.ZodNullable<z.ZodString>;
112
+ role: z.ZodString;
113
+ label: z.ZodString;
114
+ context: z.ZodNullable<z.ZodString>;
115
+ group: z.ZodNullable<z.ZodString>;
116
+ }, z.core.$strict>;
117
+ }, z.core.$strict>, z.ZodObject<{
118
+ type: z.ZodLiteral<"insertText">;
119
+ text: z.ZodString;
120
+ id: z.ZodString;
121
+ message: z.ZodString;
122
+ target: z.ZodObject<{
123
+ id: z.ZodNullable<z.ZodString>;
124
+ role: z.ZodString;
125
+ label: z.ZodString;
126
+ context: z.ZodNullable<z.ZodString>;
127
+ group: z.ZodNullable<z.ZodString>;
128
+ }, z.core.$strict>;
129
+ }, z.core.$strict>, z.ZodObject<{
130
+ type: z.ZodLiteral<"key">;
131
+ key: z.ZodString;
132
+ altKey: z.ZodBoolean;
133
+ ctrlKey: z.ZodBoolean;
134
+ metaKey: z.ZodBoolean;
135
+ shiftKey: z.ZodBoolean;
136
+ id: z.ZodString;
137
+ message: z.ZodString;
138
+ target: z.ZodObject<{
139
+ id: z.ZodNullable<z.ZodString>;
140
+ role: z.ZodString;
141
+ label: z.ZodString;
142
+ context: z.ZodNullable<z.ZodString>;
143
+ group: z.ZodNullable<z.ZodString>;
144
+ }, z.core.$strict>;
145
+ }, z.core.$strict>, z.ZodObject<{
146
+ type: z.ZodLiteral<"fill">;
147
+ value: z.ZodString;
148
+ id: z.ZodString;
149
+ message: z.ZodString;
150
+ target: z.ZodObject<{
151
+ id: z.ZodNullable<z.ZodString>;
152
+ role: z.ZodString;
153
+ label: z.ZodString;
154
+ context: z.ZodNullable<z.ZodString>;
155
+ group: z.ZodNullable<z.ZodString>;
156
+ }, z.core.$strict>;
157
+ }, z.core.$strict>, z.ZodObject<{
158
+ type: z.ZodLiteral<"select">;
159
+ values: z.ZodArray<z.ZodString>;
160
+ id: z.ZodString;
161
+ message: z.ZodString;
162
+ target: z.ZodObject<{
163
+ id: z.ZodNullable<z.ZodString>;
164
+ role: z.ZodString;
165
+ label: z.ZodString;
166
+ context: z.ZodNullable<z.ZodString>;
167
+ group: z.ZodNullable<z.ZodString>;
168
+ }, z.core.$strict>;
169
+ }, z.core.$strict>, z.ZodObject<{
170
+ type: z.ZodLiteral<"check">;
171
+ checked: z.ZodBoolean;
172
+ id: z.ZodString;
173
+ message: z.ZodString;
174
+ target: 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
+ }, z.core.$strict>], "type">>;
182
+ checks: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
183
+ type: z.ZodLiteral<"value">;
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.ZodString;
193
+ }, z.core.$strict>, z.ZodObject<{
194
+ type: z.ZodLiteral<"checked">;
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.ZodBoolean;
204
+ }, z.core.$strict>, z.ZodObject<{
205
+ type: z.ZodLiteral<"selected">;
206
+ description: z.ZodString;
207
+ control: z.ZodObject<{
208
+ id: z.ZodNullable<z.ZodString>;
209
+ role: z.ZodString;
210
+ label: z.ZodString;
211
+ context: z.ZodNullable<z.ZodString>;
212
+ group: z.ZodNullable<z.ZodString>;
213
+ }, z.core.$strict>;
214
+ equals: z.ZodArray<z.ZodString>;
215
+ }, z.core.$strict>, z.ZodObject<{
216
+ type: z.ZodLiteral<"text">;
217
+ description: z.ZodString;
218
+ text: z.ZodString;
219
+ fresh: z.ZodBoolean;
220
+ }, z.core.$strict>, z.ZodObject<{
221
+ type: z.ZodLiteral<"url">;
222
+ description: z.ZodString;
223
+ equals: z.ZodString;
224
+ }, z.core.$strict>, z.ZodObject<{
225
+ type: z.ZodLiteral<"absent">;
226
+ description: z.ZodString;
227
+ control: z.ZodObject<{
228
+ id: z.ZodNullable<z.ZodString>;
229
+ role: z.ZodString;
230
+ label: z.ZodString;
231
+ context: z.ZodNullable<z.ZodString>;
232
+ group: z.ZodNullable<z.ZodString>;
233
+ }, z.core.$strict>;
234
+ }, z.core.$strict>], "type">>;
235
+ }, z.core.$strict>;
236
+ /** Approval covers this concrete plan revision, including every action and argument. */
237
+ export declare const planApprovalSchema: z.ZodObject<{
238
+ type: z.ZodLiteral<"approval">;
239
+ message: z.ZodString;
240
+ plan: z.ZodObject<{
241
+ id: z.ZodString;
242
+ replacesPlanId: z.ZodOptional<z.ZodString>;
243
+ message: z.ZodString;
244
+ steps: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
245
+ type: z.ZodLiteral<"click">;
246
+ id: z.ZodString;
247
+ message: z.ZodString;
248
+ target: z.ZodObject<{
249
+ id: z.ZodNullable<z.ZodString>;
250
+ role: z.ZodString;
251
+ label: z.ZodString;
252
+ context: z.ZodNullable<z.ZodString>;
253
+ group: z.ZodNullable<z.ZodString>;
254
+ }, z.core.$strict>;
255
+ }, z.core.$strict>, z.ZodObject<{
256
+ type: z.ZodLiteral<"focus">;
257
+ id: z.ZodString;
258
+ message: z.ZodString;
259
+ target: z.ZodObject<{
260
+ id: z.ZodNullable<z.ZodString>;
261
+ role: z.ZodString;
262
+ label: z.ZodString;
263
+ context: z.ZodNullable<z.ZodString>;
264
+ group: z.ZodNullable<z.ZodString>;
265
+ }, z.core.$strict>;
266
+ }, z.core.$strict>, z.ZodObject<{
267
+ type: z.ZodLiteral<"insertText">;
268
+ text: z.ZodString;
269
+ id: z.ZodString;
270
+ message: z.ZodString;
271
+ target: z.ZodObject<{
272
+ id: z.ZodNullable<z.ZodString>;
273
+ role: z.ZodString;
274
+ label: z.ZodString;
275
+ context: z.ZodNullable<z.ZodString>;
276
+ group: z.ZodNullable<z.ZodString>;
277
+ }, z.core.$strict>;
278
+ }, z.core.$strict>, z.ZodObject<{
279
+ type: z.ZodLiteral<"key">;
280
+ key: z.ZodString;
281
+ altKey: z.ZodBoolean;
282
+ ctrlKey: z.ZodBoolean;
283
+ metaKey: z.ZodBoolean;
284
+ shiftKey: z.ZodBoolean;
285
+ id: z.ZodString;
286
+ message: z.ZodString;
287
+ target: z.ZodObject<{
288
+ id: z.ZodNullable<z.ZodString>;
289
+ role: z.ZodString;
290
+ label: z.ZodString;
291
+ context: z.ZodNullable<z.ZodString>;
292
+ group: z.ZodNullable<z.ZodString>;
293
+ }, z.core.$strict>;
294
+ }, z.core.$strict>, z.ZodObject<{
295
+ type: z.ZodLiteral<"fill">;
296
+ value: z.ZodString;
297
+ id: z.ZodString;
298
+ message: z.ZodString;
299
+ target: z.ZodObject<{
300
+ id: z.ZodNullable<z.ZodString>;
301
+ role: z.ZodString;
302
+ label: z.ZodString;
303
+ context: z.ZodNullable<z.ZodString>;
304
+ group: z.ZodNullable<z.ZodString>;
305
+ }, z.core.$strict>;
306
+ }, z.core.$strict>, z.ZodObject<{
307
+ type: z.ZodLiteral<"select">;
308
+ values: z.ZodArray<z.ZodString>;
309
+ id: z.ZodString;
310
+ message: z.ZodString;
311
+ target: z.ZodObject<{
312
+ id: z.ZodNullable<z.ZodString>;
313
+ role: z.ZodString;
314
+ label: z.ZodString;
315
+ context: z.ZodNullable<z.ZodString>;
316
+ group: z.ZodNullable<z.ZodString>;
317
+ }, z.core.$strict>;
318
+ }, z.core.$strict>, z.ZodObject<{
319
+ type: z.ZodLiteral<"check">;
320
+ checked: z.ZodBoolean;
321
+ id: z.ZodString;
322
+ message: z.ZodString;
323
+ target: z.ZodObject<{
324
+ id: z.ZodNullable<z.ZodString>;
325
+ role: z.ZodString;
326
+ label: z.ZodString;
327
+ context: z.ZodNullable<z.ZodString>;
328
+ group: z.ZodNullable<z.ZodString>;
329
+ }, z.core.$strict>;
330
+ }, z.core.$strict>], "type">>;
331
+ checks: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
332
+ type: z.ZodLiteral<"value">;
333
+ description: z.ZodString;
334
+ control: z.ZodObject<{
335
+ id: z.ZodNullable<z.ZodString>;
336
+ role: z.ZodString;
337
+ label: z.ZodString;
338
+ context: z.ZodNullable<z.ZodString>;
339
+ group: z.ZodNullable<z.ZodString>;
340
+ }, z.core.$strict>;
341
+ equals: z.ZodString;
342
+ }, z.core.$strict>, z.ZodObject<{
343
+ type: z.ZodLiteral<"checked">;
344
+ description: z.ZodString;
345
+ control: z.ZodObject<{
346
+ id: z.ZodNullable<z.ZodString>;
347
+ role: z.ZodString;
348
+ label: z.ZodString;
349
+ context: z.ZodNullable<z.ZodString>;
350
+ group: z.ZodNullable<z.ZodString>;
351
+ }, z.core.$strict>;
352
+ equals: z.ZodBoolean;
353
+ }, z.core.$strict>, z.ZodObject<{
354
+ type: z.ZodLiteral<"selected">;
355
+ description: z.ZodString;
356
+ control: z.ZodObject<{
357
+ id: z.ZodNullable<z.ZodString>;
358
+ role: z.ZodString;
359
+ label: z.ZodString;
360
+ context: z.ZodNullable<z.ZodString>;
361
+ group: z.ZodNullable<z.ZodString>;
362
+ }, z.core.$strict>;
363
+ equals: z.ZodArray<z.ZodString>;
364
+ }, z.core.$strict>, z.ZodObject<{
365
+ type: z.ZodLiteral<"text">;
366
+ description: z.ZodString;
367
+ text: z.ZodString;
368
+ fresh: z.ZodBoolean;
369
+ }, z.core.$strict>, z.ZodObject<{
370
+ type: z.ZodLiteral<"url">;
371
+ description: z.ZodString;
372
+ equals: z.ZodString;
373
+ }, z.core.$strict>, z.ZodObject<{
374
+ type: z.ZodLiteral<"absent">;
375
+ description: z.ZodString;
376
+ control: z.ZodObject<{
377
+ id: z.ZodNullable<z.ZodString>;
378
+ role: z.ZodString;
379
+ label: z.ZodString;
380
+ context: z.ZodNullable<z.ZodString>;
381
+ group: z.ZodNullable<z.ZodString>;
382
+ }, z.core.$strict>;
383
+ }, z.core.$strict>], "type">>;
384
+ }, z.core.$strict>;
385
+ }, z.core.$strict>;
386
+ /** A step that has already been executed as part of a plan. */
387
+ export declare const completedPlanStepSchema: z.ZodObject<{
388
+ planId: z.ZodString;
389
+ step: z.ZodDiscriminatedUnion<[z.ZodObject<{
390
+ type: z.ZodLiteral<"click">;
391
+ id: z.ZodString;
392
+ message: z.ZodString;
393
+ target: z.ZodObject<{
394
+ id: z.ZodNullable<z.ZodString>;
395
+ role: z.ZodString;
396
+ label: z.ZodString;
397
+ context: z.ZodNullable<z.ZodString>;
398
+ group: z.ZodNullable<z.ZodString>;
399
+ }, z.core.$strict>;
400
+ }, z.core.$strict>, z.ZodObject<{
401
+ type: z.ZodLiteral<"focus">;
402
+ id: z.ZodString;
403
+ message: z.ZodString;
404
+ target: z.ZodObject<{
405
+ id: z.ZodNullable<z.ZodString>;
406
+ role: z.ZodString;
407
+ label: z.ZodString;
408
+ context: z.ZodNullable<z.ZodString>;
409
+ group: z.ZodNullable<z.ZodString>;
410
+ }, z.core.$strict>;
411
+ }, z.core.$strict>, z.ZodObject<{
412
+ type: z.ZodLiteral<"insertText">;
413
+ text: z.ZodString;
414
+ id: z.ZodString;
415
+ message: z.ZodString;
416
+ target: z.ZodObject<{
417
+ id: z.ZodNullable<z.ZodString>;
418
+ role: z.ZodString;
419
+ label: z.ZodString;
420
+ context: z.ZodNullable<z.ZodString>;
421
+ group: z.ZodNullable<z.ZodString>;
422
+ }, z.core.$strict>;
423
+ }, z.core.$strict>, z.ZodObject<{
424
+ type: z.ZodLiteral<"key">;
425
+ key: z.ZodString;
426
+ altKey: z.ZodBoolean;
427
+ ctrlKey: z.ZodBoolean;
428
+ metaKey: z.ZodBoolean;
429
+ shiftKey: z.ZodBoolean;
430
+ id: z.ZodString;
431
+ message: z.ZodString;
432
+ target: z.ZodObject<{
433
+ id: z.ZodNullable<z.ZodString>;
434
+ role: z.ZodString;
435
+ label: z.ZodString;
436
+ context: z.ZodNullable<z.ZodString>;
437
+ group: z.ZodNullable<z.ZodString>;
438
+ }, z.core.$strict>;
439
+ }, z.core.$strict>, z.ZodObject<{
440
+ type: z.ZodLiteral<"fill">;
441
+ value: z.ZodString;
442
+ id: z.ZodString;
443
+ message: z.ZodString;
444
+ target: z.ZodObject<{
445
+ id: z.ZodNullable<z.ZodString>;
446
+ role: z.ZodString;
447
+ label: z.ZodString;
448
+ context: z.ZodNullable<z.ZodString>;
449
+ group: z.ZodNullable<z.ZodString>;
450
+ }, z.core.$strict>;
451
+ }, z.core.$strict>, z.ZodObject<{
452
+ type: z.ZodLiteral<"select">;
453
+ values: z.ZodArray<z.ZodString>;
454
+ id: z.ZodString;
455
+ message: z.ZodString;
456
+ target: z.ZodObject<{
457
+ id: z.ZodNullable<z.ZodString>;
458
+ role: z.ZodString;
459
+ label: z.ZodString;
460
+ context: z.ZodNullable<z.ZodString>;
461
+ group: z.ZodNullable<z.ZodString>;
462
+ }, z.core.$strict>;
463
+ }, z.core.$strict>, z.ZodObject<{
464
+ type: z.ZodLiteral<"check">;
465
+ checked: z.ZodBoolean;
466
+ id: z.ZodString;
467
+ message: z.ZodString;
468
+ target: z.ZodObject<{
469
+ id: z.ZodNullable<z.ZodString>;
470
+ role: z.ZodString;
471
+ label: z.ZodString;
472
+ context: z.ZodNullable<z.ZodString>;
473
+ group: z.ZodNullable<z.ZodString>;
474
+ }, z.core.$strict>;
475
+ }, z.core.$strict>], "type">;
476
+ }, z.core.$strict>;
477
+ /** Execution history and reason supplied when requesting a replacement plan. */
478
+ export declare const replanSchema: z.ZodObject<{
479
+ planId: z.ZodString;
480
+ completedSteps: z.ZodArray<z.ZodObject<{
481
+ planId: z.ZodString;
482
+ step: z.ZodDiscriminatedUnion<[z.ZodObject<{
483
+ type: z.ZodLiteral<"click">;
484
+ id: z.ZodString;
485
+ message: z.ZodString;
486
+ target: z.ZodObject<{
487
+ id: z.ZodNullable<z.ZodString>;
488
+ role: z.ZodString;
489
+ label: z.ZodString;
490
+ context: z.ZodNullable<z.ZodString>;
491
+ group: z.ZodNullable<z.ZodString>;
492
+ }, z.core.$strict>;
493
+ }, z.core.$strict>, z.ZodObject<{
494
+ type: z.ZodLiteral<"focus">;
495
+ id: z.ZodString;
496
+ message: z.ZodString;
497
+ target: z.ZodObject<{
498
+ id: z.ZodNullable<z.ZodString>;
499
+ role: z.ZodString;
500
+ label: z.ZodString;
501
+ context: z.ZodNullable<z.ZodString>;
502
+ group: z.ZodNullable<z.ZodString>;
503
+ }, z.core.$strict>;
504
+ }, z.core.$strict>, z.ZodObject<{
505
+ type: z.ZodLiteral<"insertText">;
506
+ text: z.ZodString;
507
+ id: z.ZodString;
508
+ message: z.ZodString;
509
+ target: z.ZodObject<{
510
+ id: z.ZodNullable<z.ZodString>;
511
+ role: z.ZodString;
512
+ label: z.ZodString;
513
+ context: z.ZodNullable<z.ZodString>;
514
+ group: z.ZodNullable<z.ZodString>;
515
+ }, z.core.$strict>;
516
+ }, z.core.$strict>, z.ZodObject<{
517
+ type: z.ZodLiteral<"key">;
518
+ key: z.ZodString;
519
+ altKey: z.ZodBoolean;
520
+ ctrlKey: z.ZodBoolean;
521
+ metaKey: z.ZodBoolean;
522
+ shiftKey: z.ZodBoolean;
523
+ id: z.ZodString;
524
+ message: z.ZodString;
525
+ target: z.ZodObject<{
526
+ id: z.ZodNullable<z.ZodString>;
527
+ role: z.ZodString;
528
+ label: z.ZodString;
529
+ context: z.ZodNullable<z.ZodString>;
530
+ group: z.ZodNullable<z.ZodString>;
531
+ }, z.core.$strict>;
532
+ }, z.core.$strict>, z.ZodObject<{
533
+ type: z.ZodLiteral<"fill">;
534
+ value: z.ZodString;
535
+ id: z.ZodString;
536
+ message: z.ZodString;
537
+ target: z.ZodObject<{
538
+ id: z.ZodNullable<z.ZodString>;
539
+ role: z.ZodString;
540
+ label: z.ZodString;
541
+ context: z.ZodNullable<z.ZodString>;
542
+ group: z.ZodNullable<z.ZodString>;
543
+ }, z.core.$strict>;
544
+ }, z.core.$strict>, z.ZodObject<{
545
+ type: z.ZodLiteral<"select">;
546
+ values: z.ZodArray<z.ZodString>;
547
+ id: z.ZodString;
548
+ message: z.ZodString;
549
+ target: z.ZodObject<{
550
+ id: z.ZodNullable<z.ZodString>;
551
+ role: z.ZodString;
552
+ label: z.ZodString;
553
+ context: z.ZodNullable<z.ZodString>;
554
+ group: z.ZodNullable<z.ZodString>;
555
+ }, z.core.$strict>;
556
+ }, z.core.$strict>, z.ZodObject<{
557
+ type: z.ZodLiteral<"check">;
558
+ checked: z.ZodBoolean;
559
+ id: z.ZodString;
560
+ message: z.ZodString;
561
+ target: z.ZodObject<{
562
+ id: z.ZodNullable<z.ZodString>;
563
+ role: z.ZodString;
564
+ label: z.ZodString;
565
+ context: z.ZodNullable<z.ZodString>;
566
+ group: z.ZodNullable<z.ZodString>;
567
+ }, z.core.$strict>;
568
+ }, z.core.$strict>], "type">;
569
+ }, z.core.$strict>>;
570
+ failedStepId: z.ZodNullable<z.ZodString>;
571
+ reason: z.ZodEnum<{
572
+ "target-unavailable": "target-unavailable";
573
+ "target-stale": "target-stale";
574
+ "outcome-mismatch": "outcome-mismatch";
575
+ }>;
576
+ message: z.ZodString;
577
+ }, z.core.$strict>;
578
+ /** JSON-compatible context accepted by the planning protocol. */
579
+ export type JsonValue = string | number | boolean | null | JsonValue[] | {
580
+ [key: string]: JsonValue;
581
+ };
582
+ /** Context is JSON data, bounded independently of page observations and images. */
583
+ export declare const planContextSchema: z.ZodCustom<JsonValue, JsonValue>;
584
+ /** Request for a plan, optionally including application context and replan history. */
585
+ export declare const planRequestSchema: z.ZodObject<{
586
+ screenshot: z.ZodOptional<z.ZodObject<{
587
+ data: z.ZodString;
588
+ mimeType: z.ZodEnum<{
589
+ "image/png": "image/png";
590
+ "image/jpeg": "image/jpeg";
591
+ "image/webp": "image/webp";
592
+ }>;
593
+ width: z.ZodNumber;
594
+ height: z.ZodNumber;
595
+ capturedAt: z.ZodNumber;
596
+ url: z.ZodString;
597
+ }, z.core.$strict>>;
598
+ platform: z.ZodOptional<z.ZodString>;
599
+ prompt: z.ZodString;
600
+ clarifications: z.ZodArray<z.ZodObject<{
601
+ question: z.ZodString;
602
+ answer: z.ZodString;
603
+ }, z.core.$strict>>;
604
+ snapshot: z.ZodObject<{
605
+ url: z.ZodString;
606
+ title: z.ZodString;
607
+ text: z.ZodString;
608
+ controls: z.ZodArray<z.ZodObject<{
609
+ target: z.ZodObject<{
610
+ id: z.ZodString;
611
+ version: z.ZodNumber;
612
+ }, z.core.$strict>;
613
+ tag: z.ZodString;
614
+ type: z.ZodOptional<z.ZodString>;
615
+ role: z.ZodString;
616
+ label: z.ZodString;
617
+ description: z.ZodOptional<z.ZodString>;
618
+ placeholder: z.ZodOptional<z.ZodString>;
619
+ groups: z.ZodOptional<z.ZodArray<z.ZodObject<{
620
+ role: z.ZodEnum<{
621
+ group: "group";
622
+ form: "form";
623
+ radiogroup: "radiogroup";
624
+ region: "region";
625
+ dialog: "dialog";
626
+ alertdialog: "alertdialog";
627
+ }>;
628
+ name: z.ZodString;
629
+ }, z.core.$strict>>>;
630
+ groupsTruncated: z.ZodOptional<z.ZodBoolean>;
631
+ context: z.ZodString;
632
+ enabled: z.ZodBoolean;
633
+ readOnly: z.ZodBoolean;
634
+ value: z.ZodOptional<z.ZodString>;
635
+ checked: z.ZodOptional<z.ZodBoolean>;
636
+ expanded: z.ZodOptional<z.ZodBoolean>;
637
+ selectedValues: z.ZodOptional<z.ZodArray<z.ZodString>>;
638
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
639
+ value: z.ZodString;
640
+ label: z.ZodString;
641
+ enabled: z.ZodBoolean;
642
+ }, z.core.$strict>>>;
643
+ valid: z.ZodOptional<z.ZodBoolean>;
644
+ contentEditable: z.ZodOptional<z.ZodBoolean>;
645
+ }, z.core.$strict>>;
646
+ focused: z.ZodNullable<z.ZodObject<{
647
+ id: z.ZodString;
648
+ version: z.ZodNumber;
649
+ }, z.core.$strict>>;
650
+ truncated: z.ZodBoolean;
651
+ }, z.core.$strict>;
652
+ canScreenshot: z.ZodOptional<z.ZodBoolean>;
653
+ protocol: z.ZodLiteral<"plan">;
654
+ context: z.ZodOptional<z.ZodCustom<JsonValue, JsonValue>>;
655
+ checks: z.ZodNullable<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
656
+ type: z.ZodLiteral<"value">;
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.ZodString;
666
+ }, z.core.$strict>, z.ZodObject<{
667
+ type: z.ZodLiteral<"checked">;
668
+ description: z.ZodString;
669
+ control: z.ZodObject<{
670
+ id: z.ZodNullable<z.ZodString>;
671
+ role: z.ZodString;
672
+ label: z.ZodString;
673
+ context: z.ZodNullable<z.ZodString>;
674
+ group: z.ZodNullable<z.ZodString>;
675
+ }, z.core.$strict>;
676
+ equals: z.ZodBoolean;
677
+ }, z.core.$strict>, z.ZodObject<{
678
+ type: z.ZodLiteral<"selected">;
679
+ description: z.ZodString;
680
+ control: z.ZodObject<{
681
+ id: z.ZodNullable<z.ZodString>;
682
+ role: z.ZodString;
683
+ label: z.ZodString;
684
+ context: z.ZodNullable<z.ZodString>;
685
+ group: z.ZodNullable<z.ZodString>;
686
+ }, z.core.$strict>;
687
+ equals: z.ZodArray<z.ZodString>;
688
+ }, z.core.$strict>, z.ZodObject<{
689
+ type: z.ZodLiteral<"text">;
690
+ description: z.ZodString;
691
+ text: z.ZodString;
692
+ fresh: z.ZodBoolean;
693
+ }, z.core.$strict>, z.ZodObject<{
694
+ type: z.ZodLiteral<"url">;
695
+ description: z.ZodString;
696
+ equals: z.ZodString;
697
+ }, z.core.$strict>, z.ZodObject<{
698
+ type: z.ZodLiteral<"absent">;
699
+ description: z.ZodString;
700
+ control: z.ZodObject<{
701
+ id: z.ZodNullable<z.ZodString>;
702
+ role: z.ZodString;
703
+ label: z.ZodString;
704
+ context: z.ZodNullable<z.ZodString>;
705
+ group: z.ZodNullable<z.ZodString>;
706
+ }, z.core.$strict>;
707
+ }, z.core.$strict>], "type">>>;
708
+ replan: z.ZodNullable<z.ZodObject<{
709
+ planId: z.ZodString;
710
+ completedSteps: z.ZodArray<z.ZodObject<{
711
+ planId: z.ZodString;
712
+ step: z.ZodDiscriminatedUnion<[z.ZodObject<{
713
+ type: z.ZodLiteral<"click">;
714
+ id: z.ZodString;
715
+ message: z.ZodString;
716
+ target: z.ZodObject<{
717
+ id: z.ZodNullable<z.ZodString>;
718
+ role: z.ZodString;
719
+ label: z.ZodString;
720
+ context: z.ZodNullable<z.ZodString>;
721
+ group: z.ZodNullable<z.ZodString>;
722
+ }, z.core.$strict>;
723
+ }, z.core.$strict>, z.ZodObject<{
724
+ type: z.ZodLiteral<"focus">;
725
+ id: z.ZodString;
726
+ message: z.ZodString;
727
+ target: z.ZodObject<{
728
+ id: z.ZodNullable<z.ZodString>;
729
+ role: z.ZodString;
730
+ label: z.ZodString;
731
+ context: z.ZodNullable<z.ZodString>;
732
+ group: z.ZodNullable<z.ZodString>;
733
+ }, z.core.$strict>;
734
+ }, z.core.$strict>, z.ZodObject<{
735
+ type: z.ZodLiteral<"insertText">;
736
+ text: z.ZodString;
737
+ id: z.ZodString;
738
+ message: z.ZodString;
739
+ target: z.ZodObject<{
740
+ id: z.ZodNullable<z.ZodString>;
741
+ role: z.ZodString;
742
+ label: z.ZodString;
743
+ context: z.ZodNullable<z.ZodString>;
744
+ group: z.ZodNullable<z.ZodString>;
745
+ }, z.core.$strict>;
746
+ }, z.core.$strict>, z.ZodObject<{
747
+ type: z.ZodLiteral<"key">;
748
+ key: z.ZodString;
749
+ altKey: z.ZodBoolean;
750
+ ctrlKey: z.ZodBoolean;
751
+ metaKey: z.ZodBoolean;
752
+ shiftKey: z.ZodBoolean;
753
+ id: z.ZodString;
754
+ message: z.ZodString;
755
+ target: z.ZodObject<{
756
+ id: z.ZodNullable<z.ZodString>;
757
+ role: z.ZodString;
758
+ label: z.ZodString;
759
+ context: z.ZodNullable<z.ZodString>;
760
+ group: z.ZodNullable<z.ZodString>;
761
+ }, z.core.$strict>;
762
+ }, z.core.$strict>, z.ZodObject<{
763
+ type: z.ZodLiteral<"fill">;
764
+ value: z.ZodString;
765
+ id: z.ZodString;
766
+ message: z.ZodString;
767
+ target: z.ZodObject<{
768
+ id: z.ZodNullable<z.ZodString>;
769
+ role: z.ZodString;
770
+ label: z.ZodString;
771
+ context: z.ZodNullable<z.ZodString>;
772
+ group: z.ZodNullable<z.ZodString>;
773
+ }, z.core.$strict>;
774
+ }, z.core.$strict>, z.ZodObject<{
775
+ type: z.ZodLiteral<"select">;
776
+ values: z.ZodArray<z.ZodString>;
777
+ id: z.ZodString;
778
+ message: z.ZodString;
779
+ target: z.ZodObject<{
780
+ id: z.ZodNullable<z.ZodString>;
781
+ role: z.ZodString;
782
+ label: z.ZodString;
783
+ context: z.ZodNullable<z.ZodString>;
784
+ group: z.ZodNullable<z.ZodString>;
785
+ }, z.core.$strict>;
786
+ }, z.core.$strict>, z.ZodObject<{
787
+ type: z.ZodLiteral<"check">;
788
+ checked: z.ZodBoolean;
789
+ id: z.ZodString;
790
+ message: z.ZodString;
791
+ target: z.ZodObject<{
792
+ id: z.ZodNullable<z.ZodString>;
793
+ role: z.ZodString;
794
+ label: z.ZodString;
795
+ context: z.ZodNullable<z.ZodString>;
796
+ group: z.ZodNullable<z.ZodString>;
797
+ }, z.core.$strict>;
798
+ }, z.core.$strict>], "type">;
799
+ }, z.core.$strict>>;
800
+ failedStepId: z.ZodNullable<z.ZodString>;
801
+ reason: z.ZodEnum<{
802
+ "target-unavailable": "target-unavailable";
803
+ "target-stale": "target-stale";
804
+ "outcome-mismatch": "outcome-mismatch";
805
+ }>;
806
+ message: z.ZodString;
807
+ }, z.core.$strict>>;
808
+ }, z.core.$strict>;
809
+ /** A plan or a response explaining what the planner needs next. */
810
+ export declare const planResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
811
+ id: z.ZodString;
812
+ replacesPlanId: z.ZodOptional<z.ZodString>;
813
+ message: z.ZodString;
814
+ steps: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
815
+ type: z.ZodLiteral<"click">;
816
+ id: z.ZodString;
817
+ message: z.ZodString;
818
+ target: z.ZodObject<{
819
+ id: z.ZodNullable<z.ZodString>;
820
+ role: z.ZodString;
821
+ label: z.ZodString;
822
+ context: z.ZodNullable<z.ZodString>;
823
+ group: z.ZodNullable<z.ZodString>;
824
+ }, z.core.$strict>;
825
+ }, z.core.$strict>, z.ZodObject<{
826
+ type: z.ZodLiteral<"focus">;
827
+ id: z.ZodString;
828
+ message: z.ZodString;
829
+ target: z.ZodObject<{
830
+ id: z.ZodNullable<z.ZodString>;
831
+ role: z.ZodString;
832
+ label: z.ZodString;
833
+ context: z.ZodNullable<z.ZodString>;
834
+ group: z.ZodNullable<z.ZodString>;
835
+ }, z.core.$strict>;
836
+ }, z.core.$strict>, z.ZodObject<{
837
+ type: z.ZodLiteral<"insertText">;
838
+ text: z.ZodString;
839
+ id: z.ZodString;
840
+ message: z.ZodString;
841
+ target: z.ZodObject<{
842
+ id: z.ZodNullable<z.ZodString>;
843
+ role: z.ZodString;
844
+ label: z.ZodString;
845
+ context: z.ZodNullable<z.ZodString>;
846
+ group: z.ZodNullable<z.ZodString>;
847
+ }, z.core.$strict>;
848
+ }, z.core.$strict>, z.ZodObject<{
849
+ type: z.ZodLiteral<"key">;
850
+ key: z.ZodString;
851
+ altKey: z.ZodBoolean;
852
+ ctrlKey: z.ZodBoolean;
853
+ metaKey: z.ZodBoolean;
854
+ shiftKey: z.ZodBoolean;
855
+ id: z.ZodString;
856
+ message: z.ZodString;
857
+ target: z.ZodObject<{
858
+ id: z.ZodNullable<z.ZodString>;
859
+ role: z.ZodString;
860
+ label: z.ZodString;
861
+ context: z.ZodNullable<z.ZodString>;
862
+ group: z.ZodNullable<z.ZodString>;
863
+ }, z.core.$strict>;
864
+ }, z.core.$strict>, z.ZodObject<{
865
+ type: z.ZodLiteral<"fill">;
866
+ value: z.ZodString;
867
+ id: z.ZodString;
868
+ message: z.ZodString;
869
+ target: z.ZodObject<{
870
+ id: z.ZodNullable<z.ZodString>;
871
+ role: z.ZodString;
872
+ label: z.ZodString;
873
+ context: z.ZodNullable<z.ZodString>;
874
+ group: z.ZodNullable<z.ZodString>;
875
+ }, z.core.$strict>;
876
+ }, z.core.$strict>, z.ZodObject<{
877
+ type: z.ZodLiteral<"select">;
878
+ values: z.ZodArray<z.ZodString>;
879
+ id: z.ZodString;
880
+ message: z.ZodString;
881
+ target: z.ZodObject<{
882
+ id: z.ZodNullable<z.ZodString>;
883
+ role: z.ZodString;
884
+ label: z.ZodString;
885
+ context: z.ZodNullable<z.ZodString>;
886
+ group: z.ZodNullable<z.ZodString>;
887
+ }, z.core.$strict>;
888
+ }, z.core.$strict>, z.ZodObject<{
889
+ type: z.ZodLiteral<"check">;
890
+ checked: z.ZodBoolean;
891
+ id: z.ZodString;
892
+ message: z.ZodString;
893
+ target: z.ZodObject<{
894
+ id: z.ZodNullable<z.ZodString>;
895
+ role: z.ZodString;
896
+ label: z.ZodString;
897
+ context: z.ZodNullable<z.ZodString>;
898
+ group: z.ZodNullable<z.ZodString>;
899
+ }, z.core.$strict>;
900
+ }, z.core.$strict>], "type">>;
901
+ checks: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
902
+ type: z.ZodLiteral<"value">;
903
+ description: z.ZodString;
904
+ control: z.ZodObject<{
905
+ id: z.ZodNullable<z.ZodString>;
906
+ role: z.ZodString;
907
+ label: z.ZodString;
908
+ context: z.ZodNullable<z.ZodString>;
909
+ group: z.ZodNullable<z.ZodString>;
910
+ }, z.core.$strict>;
911
+ equals: z.ZodString;
912
+ }, z.core.$strict>, z.ZodObject<{
913
+ type: z.ZodLiteral<"checked">;
914
+ description: z.ZodString;
915
+ control: z.ZodObject<{
916
+ id: z.ZodNullable<z.ZodString>;
917
+ role: z.ZodString;
918
+ label: z.ZodString;
919
+ context: z.ZodNullable<z.ZodString>;
920
+ group: z.ZodNullable<z.ZodString>;
921
+ }, z.core.$strict>;
922
+ equals: z.ZodBoolean;
923
+ }, z.core.$strict>, z.ZodObject<{
924
+ type: z.ZodLiteral<"selected">;
925
+ description: z.ZodString;
926
+ control: z.ZodObject<{
927
+ id: z.ZodNullable<z.ZodString>;
928
+ role: z.ZodString;
929
+ label: z.ZodString;
930
+ context: z.ZodNullable<z.ZodString>;
931
+ group: z.ZodNullable<z.ZodString>;
932
+ }, z.core.$strict>;
933
+ equals: z.ZodArray<z.ZodString>;
934
+ }, z.core.$strict>, z.ZodObject<{
935
+ type: z.ZodLiteral<"text">;
936
+ description: z.ZodString;
937
+ text: z.ZodString;
938
+ fresh: z.ZodBoolean;
939
+ }, z.core.$strict>, z.ZodObject<{
940
+ type: z.ZodLiteral<"url">;
941
+ description: z.ZodString;
942
+ equals: z.ZodString;
943
+ }, z.core.$strict>, z.ZodObject<{
944
+ type: z.ZodLiteral<"absent">;
945
+ description: z.ZodString;
946
+ control: z.ZodObject<{
947
+ id: z.ZodNullable<z.ZodString>;
948
+ role: z.ZodString;
949
+ label: z.ZodString;
950
+ context: z.ZodNullable<z.ZodString>;
951
+ group: z.ZodNullable<z.ZodString>;
952
+ }, z.core.$strict>;
953
+ }, z.core.$strict>], "type">>;
954
+ }, z.core.$strict>, z.ZodObject<{
955
+ type: z.ZodLiteral<"approval">;
956
+ message: z.ZodString;
957
+ plan: z.ZodObject<{
958
+ id: z.ZodString;
959
+ replacesPlanId: z.ZodOptional<z.ZodString>;
960
+ message: z.ZodString;
961
+ steps: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
962
+ type: z.ZodLiteral<"click">;
963
+ id: z.ZodString;
964
+ message: z.ZodString;
965
+ target: z.ZodObject<{
966
+ id: z.ZodNullable<z.ZodString>;
967
+ role: z.ZodString;
968
+ label: z.ZodString;
969
+ context: z.ZodNullable<z.ZodString>;
970
+ group: z.ZodNullable<z.ZodString>;
971
+ }, z.core.$strict>;
972
+ }, z.core.$strict>, z.ZodObject<{
973
+ type: z.ZodLiteral<"focus">;
974
+ id: z.ZodString;
975
+ message: z.ZodString;
976
+ target: z.ZodObject<{
977
+ id: z.ZodNullable<z.ZodString>;
978
+ role: z.ZodString;
979
+ label: z.ZodString;
980
+ context: z.ZodNullable<z.ZodString>;
981
+ group: z.ZodNullable<z.ZodString>;
982
+ }, z.core.$strict>;
983
+ }, z.core.$strict>, z.ZodObject<{
984
+ type: z.ZodLiteral<"insertText">;
985
+ text: z.ZodString;
986
+ id: z.ZodString;
987
+ message: z.ZodString;
988
+ target: z.ZodObject<{
989
+ id: z.ZodNullable<z.ZodString>;
990
+ role: z.ZodString;
991
+ label: z.ZodString;
992
+ context: z.ZodNullable<z.ZodString>;
993
+ group: z.ZodNullable<z.ZodString>;
994
+ }, z.core.$strict>;
995
+ }, z.core.$strict>, z.ZodObject<{
996
+ type: z.ZodLiteral<"key">;
997
+ key: z.ZodString;
998
+ altKey: z.ZodBoolean;
999
+ ctrlKey: z.ZodBoolean;
1000
+ metaKey: z.ZodBoolean;
1001
+ shiftKey: z.ZodBoolean;
1002
+ id: z.ZodString;
1003
+ message: z.ZodString;
1004
+ target: z.ZodObject<{
1005
+ id: z.ZodNullable<z.ZodString>;
1006
+ role: z.ZodString;
1007
+ label: z.ZodString;
1008
+ context: z.ZodNullable<z.ZodString>;
1009
+ group: z.ZodNullable<z.ZodString>;
1010
+ }, z.core.$strict>;
1011
+ }, z.core.$strict>, z.ZodObject<{
1012
+ type: z.ZodLiteral<"fill">;
1013
+ value: z.ZodString;
1014
+ id: z.ZodString;
1015
+ message: z.ZodString;
1016
+ target: z.ZodObject<{
1017
+ id: z.ZodNullable<z.ZodString>;
1018
+ role: z.ZodString;
1019
+ label: z.ZodString;
1020
+ context: z.ZodNullable<z.ZodString>;
1021
+ group: z.ZodNullable<z.ZodString>;
1022
+ }, z.core.$strict>;
1023
+ }, z.core.$strict>, z.ZodObject<{
1024
+ type: z.ZodLiteral<"select">;
1025
+ values: z.ZodArray<z.ZodString>;
1026
+ id: z.ZodString;
1027
+ message: z.ZodString;
1028
+ target: z.ZodObject<{
1029
+ id: z.ZodNullable<z.ZodString>;
1030
+ role: z.ZodString;
1031
+ label: z.ZodString;
1032
+ context: z.ZodNullable<z.ZodString>;
1033
+ group: z.ZodNullable<z.ZodString>;
1034
+ }, z.core.$strict>;
1035
+ }, z.core.$strict>, z.ZodObject<{
1036
+ type: z.ZodLiteral<"check">;
1037
+ checked: z.ZodBoolean;
1038
+ id: z.ZodString;
1039
+ message: z.ZodString;
1040
+ target: z.ZodObject<{
1041
+ id: z.ZodNullable<z.ZodString>;
1042
+ role: z.ZodString;
1043
+ label: z.ZodString;
1044
+ context: z.ZodNullable<z.ZodString>;
1045
+ group: z.ZodNullable<z.ZodString>;
1046
+ }, z.core.$strict>;
1047
+ }, z.core.$strict>], "type">>;
1048
+ checks: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1049
+ type: z.ZodLiteral<"value">;
1050
+ description: z.ZodString;
1051
+ control: z.ZodObject<{
1052
+ id: z.ZodNullable<z.ZodString>;
1053
+ role: z.ZodString;
1054
+ label: z.ZodString;
1055
+ context: z.ZodNullable<z.ZodString>;
1056
+ group: z.ZodNullable<z.ZodString>;
1057
+ }, z.core.$strict>;
1058
+ equals: z.ZodString;
1059
+ }, z.core.$strict>, z.ZodObject<{
1060
+ type: z.ZodLiteral<"checked">;
1061
+ description: z.ZodString;
1062
+ control: z.ZodObject<{
1063
+ id: z.ZodNullable<z.ZodString>;
1064
+ role: z.ZodString;
1065
+ label: z.ZodString;
1066
+ context: z.ZodNullable<z.ZodString>;
1067
+ group: z.ZodNullable<z.ZodString>;
1068
+ }, z.core.$strict>;
1069
+ equals: z.ZodBoolean;
1070
+ }, z.core.$strict>, z.ZodObject<{
1071
+ type: z.ZodLiteral<"selected">;
1072
+ description: z.ZodString;
1073
+ control: z.ZodObject<{
1074
+ id: z.ZodNullable<z.ZodString>;
1075
+ role: z.ZodString;
1076
+ label: z.ZodString;
1077
+ context: z.ZodNullable<z.ZodString>;
1078
+ group: z.ZodNullable<z.ZodString>;
1079
+ }, z.core.$strict>;
1080
+ equals: z.ZodArray<z.ZodString>;
1081
+ }, z.core.$strict>, z.ZodObject<{
1082
+ type: z.ZodLiteral<"text">;
1083
+ description: z.ZodString;
1084
+ text: z.ZodString;
1085
+ fresh: z.ZodBoolean;
1086
+ }, z.core.$strict>, z.ZodObject<{
1087
+ type: z.ZodLiteral<"url">;
1088
+ description: z.ZodString;
1089
+ equals: z.ZodString;
1090
+ }, z.core.$strict>, z.ZodObject<{
1091
+ type: z.ZodLiteral<"absent">;
1092
+ description: z.ZodString;
1093
+ control: z.ZodObject<{
1094
+ id: z.ZodNullable<z.ZodString>;
1095
+ role: z.ZodString;
1096
+ label: z.ZodString;
1097
+ context: z.ZodNullable<z.ZodString>;
1098
+ group: z.ZodNullable<z.ZodString>;
1099
+ }, z.core.$strict>;
1100
+ }, z.core.$strict>], "type">>;
1101
+ }, z.core.$strict>;
1102
+ }, z.core.$strict>, z.ZodObject<{
1103
+ type: z.ZodLiteral<"clarify">;
1104
+ message: z.ZodString;
1105
+ }, z.core.$strict>, z.ZodObject<{
1106
+ type: z.ZodLiteral<"screenshot">;
1107
+ message: z.ZodString;
1108
+ }, z.core.$strict>, z.ZodObject<{
1109
+ type: z.ZodLiteral<"unsupported">;
1110
+ message: z.ZodString;
1111
+ }, z.core.$strict>]>;
1112
+ /** A validated plan. */
1113
+ export type Plan = z.infer<typeof planSchema>;
1114
+ /** One action in a plan. */
1115
+ export type PlannedStep = z.infer<typeof plannedStepSchema>;
1116
+ /** A completed step and its originating plan. */
1117
+ export type CompletedPlanStep = z.infer<typeof completedPlanStepSchema>;
1118
+ /** The context for replacing a plan. */
1119
+ export type Replan = z.infer<typeof replanSchema>;
1120
+ /** A validated planning request. */
1121
+ export type PlanRequest = z.infer<typeof planRequestSchema>;
1122
+ /** A validated planning response. */
1123
+ export type PlanResponse = z.infer<typeof planResponseSchema>;
1124
+ /** A request to approve a concrete plan. */
1125
+ export type PlanApproval = z.infer<typeof planApprovalSchema>;
1126
+ //# sourceMappingURL=plan.d.ts.map