4lothru 0.0.0-stage → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,1531 @@
1
+ import { z } from 'zod';
2
+
3
+ declare const TargetSchema: z.ZodEffects<z.ZodObject<{
4
+ testId: z.ZodOptional<z.ZodString>;
5
+ role: z.ZodOptional<z.ZodString>;
6
+ name: z.ZodOptional<z.ZodString>;
7
+ label: z.ZodOptional<z.ZodString>;
8
+ text: z.ZodOptional<z.ZodString>;
9
+ selector: z.ZodOptional<z.ZodString>;
10
+ }, "strict", z.ZodTypeAny, {
11
+ testId?: string | undefined;
12
+ role?: string | undefined;
13
+ name?: string | undefined;
14
+ label?: string | undefined;
15
+ text?: string | undefined;
16
+ selector?: string | undefined;
17
+ }, {
18
+ testId?: string | undefined;
19
+ role?: string | undefined;
20
+ name?: string | undefined;
21
+ label?: string | undefined;
22
+ text?: string | undefined;
23
+ selector?: string | undefined;
24
+ }>, {
25
+ testId?: string | undefined;
26
+ role?: string | undefined;
27
+ name?: string | undefined;
28
+ label?: string | undefined;
29
+ text?: string | undefined;
30
+ selector?: string | undefined;
31
+ }, {
32
+ testId?: string | undefined;
33
+ role?: string | undefined;
34
+ name?: string | undefined;
35
+ label?: string | undefined;
36
+ text?: string | undefined;
37
+ selector?: string | undefined;
38
+ }>;
39
+ type Target = z.infer<typeof TargetSchema>;
40
+
41
+ /** Discriminated union keyed on `action`, so each step carries only the fields it needs. */
42
+ declare const GuideStepSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObject<{
43
+ id: z.ZodString;
44
+ action: z.ZodLiteral<"click">;
45
+ target: z.ZodEffects<z.ZodObject<{
46
+ testId: z.ZodOptional<z.ZodString>;
47
+ role: z.ZodOptional<z.ZodString>;
48
+ name: z.ZodOptional<z.ZodString>;
49
+ label: z.ZodOptional<z.ZodString>;
50
+ text: z.ZodOptional<z.ZodString>;
51
+ selector: z.ZodOptional<z.ZodString>;
52
+ }, "strict", z.ZodTypeAny, {
53
+ testId?: string | undefined;
54
+ role?: string | undefined;
55
+ name?: string | undefined;
56
+ label?: string | undefined;
57
+ text?: string | undefined;
58
+ selector?: string | undefined;
59
+ }, {
60
+ testId?: string | undefined;
61
+ role?: string | undefined;
62
+ name?: string | undefined;
63
+ label?: string | undefined;
64
+ text?: string | undefined;
65
+ selector?: string | undefined;
66
+ }>, {
67
+ testId?: string | undefined;
68
+ role?: string | undefined;
69
+ name?: string | undefined;
70
+ label?: string | undefined;
71
+ text?: string | undefined;
72
+ selector?: string | undefined;
73
+ }, {
74
+ testId?: string | undefined;
75
+ role?: string | undefined;
76
+ name?: string | undefined;
77
+ label?: string | undefined;
78
+ text?: string | undefined;
79
+ selector?: string | undefined;
80
+ }>;
81
+ instruction: z.ZodString;
82
+ autoAdvance: z.ZodOptional<z.ZodBoolean>;
83
+ }, "strict", z.ZodTypeAny, {
84
+ id: string;
85
+ action: "click";
86
+ target: {
87
+ testId?: string | undefined;
88
+ role?: string | undefined;
89
+ name?: string | undefined;
90
+ label?: string | undefined;
91
+ text?: string | undefined;
92
+ selector?: string | undefined;
93
+ };
94
+ instruction: string;
95
+ autoAdvance?: boolean | undefined;
96
+ }, {
97
+ id: string;
98
+ action: "click";
99
+ target: {
100
+ testId?: string | undefined;
101
+ role?: string | undefined;
102
+ name?: string | undefined;
103
+ label?: string | undefined;
104
+ text?: string | undefined;
105
+ selector?: string | undefined;
106
+ };
107
+ instruction: string;
108
+ autoAdvance?: boolean | undefined;
109
+ }>, z.ZodObject<{
110
+ id: z.ZodString;
111
+ action: z.ZodLiteral<"input">;
112
+ target: z.ZodEffects<z.ZodObject<{
113
+ testId: z.ZodOptional<z.ZodString>;
114
+ role: z.ZodOptional<z.ZodString>;
115
+ name: z.ZodOptional<z.ZodString>;
116
+ label: z.ZodOptional<z.ZodString>;
117
+ text: z.ZodOptional<z.ZodString>;
118
+ selector: z.ZodOptional<z.ZodString>;
119
+ }, "strict", z.ZodTypeAny, {
120
+ testId?: string | undefined;
121
+ role?: string | undefined;
122
+ name?: string | undefined;
123
+ label?: string | undefined;
124
+ text?: string | undefined;
125
+ selector?: string | undefined;
126
+ }, {
127
+ testId?: string | undefined;
128
+ role?: string | undefined;
129
+ name?: string | undefined;
130
+ label?: string | undefined;
131
+ text?: string | undefined;
132
+ selector?: string | undefined;
133
+ }>, {
134
+ testId?: string | undefined;
135
+ role?: string | undefined;
136
+ name?: string | undefined;
137
+ label?: string | undefined;
138
+ text?: string | undefined;
139
+ selector?: string | undefined;
140
+ }, {
141
+ testId?: string | undefined;
142
+ role?: string | undefined;
143
+ name?: string | undefined;
144
+ label?: string | undefined;
145
+ text?: string | undefined;
146
+ selector?: string | undefined;
147
+ }>;
148
+ value: z.ZodString;
149
+ instruction: z.ZodString;
150
+ autoAdvance: z.ZodOptional<z.ZodBoolean>;
151
+ }, "strict", z.ZodTypeAny, {
152
+ id: string;
153
+ value: string;
154
+ action: "input";
155
+ target: {
156
+ testId?: string | undefined;
157
+ role?: string | undefined;
158
+ name?: string | undefined;
159
+ label?: string | undefined;
160
+ text?: string | undefined;
161
+ selector?: string | undefined;
162
+ };
163
+ instruction: string;
164
+ autoAdvance?: boolean | undefined;
165
+ }, {
166
+ id: string;
167
+ value: string;
168
+ action: "input";
169
+ target: {
170
+ testId?: string | undefined;
171
+ role?: string | undefined;
172
+ name?: string | undefined;
173
+ label?: string | undefined;
174
+ text?: string | undefined;
175
+ selector?: string | undefined;
176
+ };
177
+ instruction: string;
178
+ autoAdvance?: boolean | undefined;
179
+ }>, z.ZodObject<{
180
+ id: z.ZodString;
181
+ action: z.ZodLiteral<"select">;
182
+ target: z.ZodEffects<z.ZodObject<{
183
+ testId: z.ZodOptional<z.ZodString>;
184
+ role: z.ZodOptional<z.ZodString>;
185
+ name: z.ZodOptional<z.ZodString>;
186
+ label: z.ZodOptional<z.ZodString>;
187
+ text: z.ZodOptional<z.ZodString>;
188
+ selector: z.ZodOptional<z.ZodString>;
189
+ }, "strict", z.ZodTypeAny, {
190
+ testId?: string | undefined;
191
+ role?: string | undefined;
192
+ name?: string | undefined;
193
+ label?: string | undefined;
194
+ text?: string | undefined;
195
+ selector?: string | undefined;
196
+ }, {
197
+ testId?: string | undefined;
198
+ role?: string | undefined;
199
+ name?: string | undefined;
200
+ label?: string | undefined;
201
+ text?: string | undefined;
202
+ selector?: string | undefined;
203
+ }>, {
204
+ testId?: string | undefined;
205
+ role?: string | undefined;
206
+ name?: string | undefined;
207
+ label?: string | undefined;
208
+ text?: string | undefined;
209
+ selector?: string | undefined;
210
+ }, {
211
+ testId?: string | undefined;
212
+ role?: string | undefined;
213
+ name?: string | undefined;
214
+ label?: string | undefined;
215
+ text?: string | undefined;
216
+ selector?: string | undefined;
217
+ }>;
218
+ value: z.ZodString;
219
+ instruction: z.ZodString;
220
+ autoAdvance: z.ZodOptional<z.ZodBoolean>;
221
+ }, "strict", z.ZodTypeAny, {
222
+ id: string;
223
+ value: string;
224
+ action: "select";
225
+ target: {
226
+ testId?: string | undefined;
227
+ role?: string | undefined;
228
+ name?: string | undefined;
229
+ label?: string | undefined;
230
+ text?: string | undefined;
231
+ selector?: string | undefined;
232
+ };
233
+ instruction: string;
234
+ autoAdvance?: boolean | undefined;
235
+ }, {
236
+ id: string;
237
+ value: string;
238
+ action: "select";
239
+ target: {
240
+ testId?: string | undefined;
241
+ role?: string | undefined;
242
+ name?: string | undefined;
243
+ label?: string | undefined;
244
+ text?: string | undefined;
245
+ selector?: string | undefined;
246
+ };
247
+ instruction: string;
248
+ autoAdvance?: boolean | undefined;
249
+ }>, z.ZodObject<{
250
+ id: z.ZodString;
251
+ action: z.ZodLiteral<"verify">;
252
+ target: z.ZodEffects<z.ZodObject<{
253
+ testId: z.ZodOptional<z.ZodString>;
254
+ role: z.ZodOptional<z.ZodString>;
255
+ name: z.ZodOptional<z.ZodString>;
256
+ label: z.ZodOptional<z.ZodString>;
257
+ text: z.ZodOptional<z.ZodString>;
258
+ selector: z.ZodOptional<z.ZodString>;
259
+ }, "strict", z.ZodTypeAny, {
260
+ testId?: string | undefined;
261
+ role?: string | undefined;
262
+ name?: string | undefined;
263
+ label?: string | undefined;
264
+ text?: string | undefined;
265
+ selector?: string | undefined;
266
+ }, {
267
+ testId?: string | undefined;
268
+ role?: string | undefined;
269
+ name?: string | undefined;
270
+ label?: string | undefined;
271
+ text?: string | undefined;
272
+ selector?: string | undefined;
273
+ }>, {
274
+ testId?: string | undefined;
275
+ role?: string | undefined;
276
+ name?: string | undefined;
277
+ label?: string | undefined;
278
+ text?: string | undefined;
279
+ selector?: string | undefined;
280
+ }, {
281
+ testId?: string | undefined;
282
+ role?: string | undefined;
283
+ name?: string | undefined;
284
+ label?: string | undefined;
285
+ text?: string | undefined;
286
+ selector?: string | undefined;
287
+ }>;
288
+ instruction: z.ZodString;
289
+ }, "strict", z.ZodTypeAny, {
290
+ id: string;
291
+ action: "verify";
292
+ target: {
293
+ testId?: string | undefined;
294
+ role?: string | undefined;
295
+ name?: string | undefined;
296
+ label?: string | undefined;
297
+ text?: string | undefined;
298
+ selector?: string | undefined;
299
+ };
300
+ instruction: string;
301
+ }, {
302
+ id: string;
303
+ action: "verify";
304
+ target: {
305
+ testId?: string | undefined;
306
+ role?: string | undefined;
307
+ name?: string | undefined;
308
+ label?: string | undefined;
309
+ text?: string | undefined;
310
+ selector?: string | undefined;
311
+ };
312
+ instruction: string;
313
+ }>, z.ZodObject<{
314
+ id: z.ZodString;
315
+ action: z.ZodLiteral<"navigate">;
316
+ url: z.ZodString;
317
+ instruction: z.ZodString;
318
+ }, "strict", z.ZodTypeAny, {
319
+ url: string;
320
+ id: string;
321
+ action: "navigate";
322
+ instruction: string;
323
+ }, {
324
+ url: string;
325
+ id: string;
326
+ action: "navigate";
327
+ instruction: string;
328
+ }>, z.ZodObject<{
329
+ id: z.ZodString;
330
+ action: z.ZodLiteral<"wait">;
331
+ target: z.ZodOptional<z.ZodEffects<z.ZodObject<{
332
+ testId: z.ZodOptional<z.ZodString>;
333
+ role: z.ZodOptional<z.ZodString>;
334
+ name: z.ZodOptional<z.ZodString>;
335
+ label: z.ZodOptional<z.ZodString>;
336
+ text: z.ZodOptional<z.ZodString>;
337
+ selector: z.ZodOptional<z.ZodString>;
338
+ }, "strict", z.ZodTypeAny, {
339
+ testId?: string | undefined;
340
+ role?: string | undefined;
341
+ name?: string | undefined;
342
+ label?: string | undefined;
343
+ text?: string | undefined;
344
+ selector?: string | undefined;
345
+ }, {
346
+ testId?: string | undefined;
347
+ role?: string | undefined;
348
+ name?: string | undefined;
349
+ label?: string | undefined;
350
+ text?: string | undefined;
351
+ selector?: string | undefined;
352
+ }>, {
353
+ testId?: string | undefined;
354
+ role?: string | undefined;
355
+ name?: string | undefined;
356
+ label?: string | undefined;
357
+ text?: string | undefined;
358
+ selector?: string | undefined;
359
+ }, {
360
+ testId?: string | undefined;
361
+ role?: string | undefined;
362
+ name?: string | undefined;
363
+ label?: string | undefined;
364
+ text?: string | undefined;
365
+ selector?: string | undefined;
366
+ }>>;
367
+ timeoutMs: z.ZodOptional<z.ZodNumber>;
368
+ instruction: z.ZodString;
369
+ }, "strict", z.ZodTypeAny, {
370
+ id: string;
371
+ action: "wait";
372
+ instruction: string;
373
+ target?: {
374
+ testId?: string | undefined;
375
+ role?: string | undefined;
376
+ name?: string | undefined;
377
+ label?: string | undefined;
378
+ text?: string | undefined;
379
+ selector?: string | undefined;
380
+ } | undefined;
381
+ timeoutMs?: number | undefined;
382
+ }, {
383
+ id: string;
384
+ action: "wait";
385
+ instruction: string;
386
+ target?: {
387
+ testId?: string | undefined;
388
+ role?: string | undefined;
389
+ name?: string | undefined;
390
+ label?: string | undefined;
391
+ text?: string | undefined;
392
+ selector?: string | undefined;
393
+ } | undefined;
394
+ timeoutMs?: number | undefined;
395
+ }>]>;
396
+ type GuideStep = z.infer<typeof GuideStepSchema>;
397
+
398
+ /**
399
+ * `.passthrough()` keeps unknown top-level keys (e.g. future `meta` blocks used by
400
+ * a browser recorder) so older guides stay forward-compatible without a schema bump.
401
+ */
402
+ declare const GuideSchema: z.ZodObject<{
403
+ id: z.ZodString;
404
+ title: z.ZodString;
405
+ application: z.ZodString;
406
+ release: z.ZodString;
407
+ start: z.ZodObject<{
408
+ url: z.ZodString;
409
+ }, "strict", z.ZodTypeAny, {
410
+ url: string;
411
+ }, {
412
+ url: string;
413
+ }>;
414
+ steps: z.ZodArray<z.ZodDiscriminatedUnion<"action", [z.ZodObject<{
415
+ id: z.ZodString;
416
+ action: z.ZodLiteral<"click">;
417
+ target: z.ZodEffects<z.ZodObject<{
418
+ testId: z.ZodOptional<z.ZodString>;
419
+ role: z.ZodOptional<z.ZodString>;
420
+ name: z.ZodOptional<z.ZodString>;
421
+ label: z.ZodOptional<z.ZodString>;
422
+ text: z.ZodOptional<z.ZodString>;
423
+ selector: z.ZodOptional<z.ZodString>;
424
+ }, "strict", z.ZodTypeAny, {
425
+ testId?: string | undefined;
426
+ role?: string | undefined;
427
+ name?: string | undefined;
428
+ label?: string | undefined;
429
+ text?: string | undefined;
430
+ selector?: string | undefined;
431
+ }, {
432
+ testId?: string | undefined;
433
+ role?: string | undefined;
434
+ name?: string | undefined;
435
+ label?: string | undefined;
436
+ text?: string | undefined;
437
+ selector?: string | undefined;
438
+ }>, {
439
+ testId?: string | undefined;
440
+ role?: string | undefined;
441
+ name?: string | undefined;
442
+ label?: string | undefined;
443
+ text?: string | undefined;
444
+ selector?: string | undefined;
445
+ }, {
446
+ testId?: string | undefined;
447
+ role?: string | undefined;
448
+ name?: string | undefined;
449
+ label?: string | undefined;
450
+ text?: string | undefined;
451
+ selector?: string | undefined;
452
+ }>;
453
+ instruction: z.ZodString;
454
+ autoAdvance: z.ZodOptional<z.ZodBoolean>;
455
+ }, "strict", z.ZodTypeAny, {
456
+ id: string;
457
+ action: "click";
458
+ target: {
459
+ testId?: string | undefined;
460
+ role?: string | undefined;
461
+ name?: string | undefined;
462
+ label?: string | undefined;
463
+ text?: string | undefined;
464
+ selector?: string | undefined;
465
+ };
466
+ instruction: string;
467
+ autoAdvance?: boolean | undefined;
468
+ }, {
469
+ id: string;
470
+ action: "click";
471
+ target: {
472
+ testId?: string | undefined;
473
+ role?: string | undefined;
474
+ name?: string | undefined;
475
+ label?: string | undefined;
476
+ text?: string | undefined;
477
+ selector?: string | undefined;
478
+ };
479
+ instruction: string;
480
+ autoAdvance?: boolean | undefined;
481
+ }>, z.ZodObject<{
482
+ id: z.ZodString;
483
+ action: z.ZodLiteral<"input">;
484
+ target: z.ZodEffects<z.ZodObject<{
485
+ testId: z.ZodOptional<z.ZodString>;
486
+ role: z.ZodOptional<z.ZodString>;
487
+ name: z.ZodOptional<z.ZodString>;
488
+ label: z.ZodOptional<z.ZodString>;
489
+ text: z.ZodOptional<z.ZodString>;
490
+ selector: z.ZodOptional<z.ZodString>;
491
+ }, "strict", z.ZodTypeAny, {
492
+ testId?: string | undefined;
493
+ role?: string | undefined;
494
+ name?: string | undefined;
495
+ label?: string | undefined;
496
+ text?: string | undefined;
497
+ selector?: string | undefined;
498
+ }, {
499
+ testId?: string | undefined;
500
+ role?: string | undefined;
501
+ name?: string | undefined;
502
+ label?: string | undefined;
503
+ text?: string | undefined;
504
+ selector?: string | undefined;
505
+ }>, {
506
+ testId?: string | undefined;
507
+ role?: string | undefined;
508
+ name?: string | undefined;
509
+ label?: string | undefined;
510
+ text?: string | undefined;
511
+ selector?: string | undefined;
512
+ }, {
513
+ testId?: string | undefined;
514
+ role?: string | undefined;
515
+ name?: string | undefined;
516
+ label?: string | undefined;
517
+ text?: string | undefined;
518
+ selector?: string | undefined;
519
+ }>;
520
+ value: z.ZodString;
521
+ instruction: z.ZodString;
522
+ autoAdvance: z.ZodOptional<z.ZodBoolean>;
523
+ }, "strict", z.ZodTypeAny, {
524
+ id: string;
525
+ value: string;
526
+ action: "input";
527
+ target: {
528
+ testId?: string | undefined;
529
+ role?: string | undefined;
530
+ name?: string | undefined;
531
+ label?: string | undefined;
532
+ text?: string | undefined;
533
+ selector?: string | undefined;
534
+ };
535
+ instruction: string;
536
+ autoAdvance?: boolean | undefined;
537
+ }, {
538
+ id: string;
539
+ value: string;
540
+ action: "input";
541
+ target: {
542
+ testId?: string | undefined;
543
+ role?: string | undefined;
544
+ name?: string | undefined;
545
+ label?: string | undefined;
546
+ text?: string | undefined;
547
+ selector?: string | undefined;
548
+ };
549
+ instruction: string;
550
+ autoAdvance?: boolean | undefined;
551
+ }>, z.ZodObject<{
552
+ id: z.ZodString;
553
+ action: z.ZodLiteral<"select">;
554
+ target: z.ZodEffects<z.ZodObject<{
555
+ testId: z.ZodOptional<z.ZodString>;
556
+ role: z.ZodOptional<z.ZodString>;
557
+ name: z.ZodOptional<z.ZodString>;
558
+ label: z.ZodOptional<z.ZodString>;
559
+ text: z.ZodOptional<z.ZodString>;
560
+ selector: z.ZodOptional<z.ZodString>;
561
+ }, "strict", z.ZodTypeAny, {
562
+ testId?: string | undefined;
563
+ role?: string | undefined;
564
+ name?: string | undefined;
565
+ label?: string | undefined;
566
+ text?: string | undefined;
567
+ selector?: string | undefined;
568
+ }, {
569
+ testId?: string | undefined;
570
+ role?: string | undefined;
571
+ name?: string | undefined;
572
+ label?: string | undefined;
573
+ text?: string | undefined;
574
+ selector?: string | undefined;
575
+ }>, {
576
+ testId?: string | undefined;
577
+ role?: string | undefined;
578
+ name?: string | undefined;
579
+ label?: string | undefined;
580
+ text?: string | undefined;
581
+ selector?: string | undefined;
582
+ }, {
583
+ testId?: string | undefined;
584
+ role?: string | undefined;
585
+ name?: string | undefined;
586
+ label?: string | undefined;
587
+ text?: string | undefined;
588
+ selector?: string | undefined;
589
+ }>;
590
+ value: z.ZodString;
591
+ instruction: z.ZodString;
592
+ autoAdvance: z.ZodOptional<z.ZodBoolean>;
593
+ }, "strict", z.ZodTypeAny, {
594
+ id: string;
595
+ value: string;
596
+ action: "select";
597
+ target: {
598
+ testId?: string | undefined;
599
+ role?: string | undefined;
600
+ name?: string | undefined;
601
+ label?: string | undefined;
602
+ text?: string | undefined;
603
+ selector?: string | undefined;
604
+ };
605
+ instruction: string;
606
+ autoAdvance?: boolean | undefined;
607
+ }, {
608
+ id: string;
609
+ value: string;
610
+ action: "select";
611
+ target: {
612
+ testId?: string | undefined;
613
+ role?: string | undefined;
614
+ name?: string | undefined;
615
+ label?: string | undefined;
616
+ text?: string | undefined;
617
+ selector?: string | undefined;
618
+ };
619
+ instruction: string;
620
+ autoAdvance?: boolean | undefined;
621
+ }>, z.ZodObject<{
622
+ id: z.ZodString;
623
+ action: z.ZodLiteral<"verify">;
624
+ target: z.ZodEffects<z.ZodObject<{
625
+ testId: z.ZodOptional<z.ZodString>;
626
+ role: z.ZodOptional<z.ZodString>;
627
+ name: z.ZodOptional<z.ZodString>;
628
+ label: z.ZodOptional<z.ZodString>;
629
+ text: z.ZodOptional<z.ZodString>;
630
+ selector: z.ZodOptional<z.ZodString>;
631
+ }, "strict", z.ZodTypeAny, {
632
+ testId?: string | undefined;
633
+ role?: string | undefined;
634
+ name?: string | undefined;
635
+ label?: string | undefined;
636
+ text?: string | undefined;
637
+ selector?: string | undefined;
638
+ }, {
639
+ testId?: string | undefined;
640
+ role?: string | undefined;
641
+ name?: string | undefined;
642
+ label?: string | undefined;
643
+ text?: string | undefined;
644
+ selector?: string | undefined;
645
+ }>, {
646
+ testId?: string | undefined;
647
+ role?: string | undefined;
648
+ name?: string | undefined;
649
+ label?: string | undefined;
650
+ text?: string | undefined;
651
+ selector?: string | undefined;
652
+ }, {
653
+ testId?: string | undefined;
654
+ role?: string | undefined;
655
+ name?: string | undefined;
656
+ label?: string | undefined;
657
+ text?: string | undefined;
658
+ selector?: string | undefined;
659
+ }>;
660
+ instruction: z.ZodString;
661
+ }, "strict", z.ZodTypeAny, {
662
+ id: string;
663
+ action: "verify";
664
+ target: {
665
+ testId?: string | undefined;
666
+ role?: string | undefined;
667
+ name?: string | undefined;
668
+ label?: string | undefined;
669
+ text?: string | undefined;
670
+ selector?: string | undefined;
671
+ };
672
+ instruction: string;
673
+ }, {
674
+ id: string;
675
+ action: "verify";
676
+ target: {
677
+ testId?: string | undefined;
678
+ role?: string | undefined;
679
+ name?: string | undefined;
680
+ label?: string | undefined;
681
+ text?: string | undefined;
682
+ selector?: string | undefined;
683
+ };
684
+ instruction: string;
685
+ }>, z.ZodObject<{
686
+ id: z.ZodString;
687
+ action: z.ZodLiteral<"navigate">;
688
+ url: z.ZodString;
689
+ instruction: z.ZodString;
690
+ }, "strict", z.ZodTypeAny, {
691
+ url: string;
692
+ id: string;
693
+ action: "navigate";
694
+ instruction: string;
695
+ }, {
696
+ url: string;
697
+ id: string;
698
+ action: "navigate";
699
+ instruction: string;
700
+ }>, z.ZodObject<{
701
+ id: z.ZodString;
702
+ action: z.ZodLiteral<"wait">;
703
+ target: z.ZodOptional<z.ZodEffects<z.ZodObject<{
704
+ testId: z.ZodOptional<z.ZodString>;
705
+ role: z.ZodOptional<z.ZodString>;
706
+ name: z.ZodOptional<z.ZodString>;
707
+ label: z.ZodOptional<z.ZodString>;
708
+ text: z.ZodOptional<z.ZodString>;
709
+ selector: z.ZodOptional<z.ZodString>;
710
+ }, "strict", z.ZodTypeAny, {
711
+ testId?: string | undefined;
712
+ role?: string | undefined;
713
+ name?: string | undefined;
714
+ label?: string | undefined;
715
+ text?: string | undefined;
716
+ selector?: string | undefined;
717
+ }, {
718
+ testId?: string | undefined;
719
+ role?: string | undefined;
720
+ name?: string | undefined;
721
+ label?: string | undefined;
722
+ text?: string | undefined;
723
+ selector?: string | undefined;
724
+ }>, {
725
+ testId?: string | undefined;
726
+ role?: string | undefined;
727
+ name?: string | undefined;
728
+ label?: string | undefined;
729
+ text?: string | undefined;
730
+ selector?: string | undefined;
731
+ }, {
732
+ testId?: string | undefined;
733
+ role?: string | undefined;
734
+ name?: string | undefined;
735
+ label?: string | undefined;
736
+ text?: string | undefined;
737
+ selector?: string | undefined;
738
+ }>>;
739
+ timeoutMs: z.ZodOptional<z.ZodNumber>;
740
+ instruction: z.ZodString;
741
+ }, "strict", z.ZodTypeAny, {
742
+ id: string;
743
+ action: "wait";
744
+ instruction: string;
745
+ target?: {
746
+ testId?: string | undefined;
747
+ role?: string | undefined;
748
+ name?: string | undefined;
749
+ label?: string | undefined;
750
+ text?: string | undefined;
751
+ selector?: string | undefined;
752
+ } | undefined;
753
+ timeoutMs?: number | undefined;
754
+ }, {
755
+ id: string;
756
+ action: "wait";
757
+ instruction: string;
758
+ target?: {
759
+ testId?: string | undefined;
760
+ role?: string | undefined;
761
+ name?: string | undefined;
762
+ label?: string | undefined;
763
+ text?: string | undefined;
764
+ selector?: string | undefined;
765
+ } | undefined;
766
+ timeoutMs?: number | undefined;
767
+ }>]>, "many">;
768
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
769
+ id: z.ZodString;
770
+ title: z.ZodString;
771
+ application: z.ZodString;
772
+ release: z.ZodString;
773
+ start: z.ZodObject<{
774
+ url: z.ZodString;
775
+ }, "strict", z.ZodTypeAny, {
776
+ url: string;
777
+ }, {
778
+ url: string;
779
+ }>;
780
+ steps: z.ZodArray<z.ZodDiscriminatedUnion<"action", [z.ZodObject<{
781
+ id: z.ZodString;
782
+ action: z.ZodLiteral<"click">;
783
+ target: z.ZodEffects<z.ZodObject<{
784
+ testId: z.ZodOptional<z.ZodString>;
785
+ role: z.ZodOptional<z.ZodString>;
786
+ name: z.ZodOptional<z.ZodString>;
787
+ label: z.ZodOptional<z.ZodString>;
788
+ text: z.ZodOptional<z.ZodString>;
789
+ selector: z.ZodOptional<z.ZodString>;
790
+ }, "strict", z.ZodTypeAny, {
791
+ testId?: string | undefined;
792
+ role?: string | undefined;
793
+ name?: string | undefined;
794
+ label?: string | undefined;
795
+ text?: string | undefined;
796
+ selector?: string | undefined;
797
+ }, {
798
+ testId?: string | undefined;
799
+ role?: string | undefined;
800
+ name?: string | undefined;
801
+ label?: string | undefined;
802
+ text?: string | undefined;
803
+ selector?: string | undefined;
804
+ }>, {
805
+ testId?: string | undefined;
806
+ role?: string | undefined;
807
+ name?: string | undefined;
808
+ label?: string | undefined;
809
+ text?: string | undefined;
810
+ selector?: string | undefined;
811
+ }, {
812
+ testId?: string | undefined;
813
+ role?: string | undefined;
814
+ name?: string | undefined;
815
+ label?: string | undefined;
816
+ text?: string | undefined;
817
+ selector?: string | undefined;
818
+ }>;
819
+ instruction: z.ZodString;
820
+ autoAdvance: z.ZodOptional<z.ZodBoolean>;
821
+ }, "strict", z.ZodTypeAny, {
822
+ id: string;
823
+ action: "click";
824
+ target: {
825
+ testId?: string | undefined;
826
+ role?: string | undefined;
827
+ name?: string | undefined;
828
+ label?: string | undefined;
829
+ text?: string | undefined;
830
+ selector?: string | undefined;
831
+ };
832
+ instruction: string;
833
+ autoAdvance?: boolean | undefined;
834
+ }, {
835
+ id: string;
836
+ action: "click";
837
+ target: {
838
+ testId?: string | undefined;
839
+ role?: string | undefined;
840
+ name?: string | undefined;
841
+ label?: string | undefined;
842
+ text?: string | undefined;
843
+ selector?: string | undefined;
844
+ };
845
+ instruction: string;
846
+ autoAdvance?: boolean | undefined;
847
+ }>, z.ZodObject<{
848
+ id: z.ZodString;
849
+ action: z.ZodLiteral<"input">;
850
+ target: z.ZodEffects<z.ZodObject<{
851
+ testId: z.ZodOptional<z.ZodString>;
852
+ role: z.ZodOptional<z.ZodString>;
853
+ name: z.ZodOptional<z.ZodString>;
854
+ label: z.ZodOptional<z.ZodString>;
855
+ text: z.ZodOptional<z.ZodString>;
856
+ selector: z.ZodOptional<z.ZodString>;
857
+ }, "strict", z.ZodTypeAny, {
858
+ testId?: string | undefined;
859
+ role?: string | undefined;
860
+ name?: string | undefined;
861
+ label?: string | undefined;
862
+ text?: string | undefined;
863
+ selector?: string | undefined;
864
+ }, {
865
+ testId?: string | undefined;
866
+ role?: string | undefined;
867
+ name?: string | undefined;
868
+ label?: string | undefined;
869
+ text?: string | undefined;
870
+ selector?: string | undefined;
871
+ }>, {
872
+ testId?: string | undefined;
873
+ role?: string | undefined;
874
+ name?: string | undefined;
875
+ label?: string | undefined;
876
+ text?: string | undefined;
877
+ selector?: string | undefined;
878
+ }, {
879
+ testId?: string | undefined;
880
+ role?: string | undefined;
881
+ name?: string | undefined;
882
+ label?: string | undefined;
883
+ text?: string | undefined;
884
+ selector?: string | undefined;
885
+ }>;
886
+ value: z.ZodString;
887
+ instruction: z.ZodString;
888
+ autoAdvance: z.ZodOptional<z.ZodBoolean>;
889
+ }, "strict", z.ZodTypeAny, {
890
+ id: string;
891
+ value: string;
892
+ action: "input";
893
+ target: {
894
+ testId?: string | undefined;
895
+ role?: string | undefined;
896
+ name?: string | undefined;
897
+ label?: string | undefined;
898
+ text?: string | undefined;
899
+ selector?: string | undefined;
900
+ };
901
+ instruction: string;
902
+ autoAdvance?: boolean | undefined;
903
+ }, {
904
+ id: string;
905
+ value: string;
906
+ action: "input";
907
+ target: {
908
+ testId?: string | undefined;
909
+ role?: string | undefined;
910
+ name?: string | undefined;
911
+ label?: string | undefined;
912
+ text?: string | undefined;
913
+ selector?: string | undefined;
914
+ };
915
+ instruction: string;
916
+ autoAdvance?: boolean | undefined;
917
+ }>, z.ZodObject<{
918
+ id: z.ZodString;
919
+ action: z.ZodLiteral<"select">;
920
+ target: z.ZodEffects<z.ZodObject<{
921
+ testId: z.ZodOptional<z.ZodString>;
922
+ role: z.ZodOptional<z.ZodString>;
923
+ name: z.ZodOptional<z.ZodString>;
924
+ label: z.ZodOptional<z.ZodString>;
925
+ text: z.ZodOptional<z.ZodString>;
926
+ selector: z.ZodOptional<z.ZodString>;
927
+ }, "strict", z.ZodTypeAny, {
928
+ testId?: string | undefined;
929
+ role?: string | undefined;
930
+ name?: string | undefined;
931
+ label?: string | undefined;
932
+ text?: string | undefined;
933
+ selector?: string | undefined;
934
+ }, {
935
+ testId?: string | undefined;
936
+ role?: string | undefined;
937
+ name?: string | undefined;
938
+ label?: string | undefined;
939
+ text?: string | undefined;
940
+ selector?: string | undefined;
941
+ }>, {
942
+ testId?: string | undefined;
943
+ role?: string | undefined;
944
+ name?: string | undefined;
945
+ label?: string | undefined;
946
+ text?: string | undefined;
947
+ selector?: string | undefined;
948
+ }, {
949
+ testId?: string | undefined;
950
+ role?: string | undefined;
951
+ name?: string | undefined;
952
+ label?: string | undefined;
953
+ text?: string | undefined;
954
+ selector?: string | undefined;
955
+ }>;
956
+ value: z.ZodString;
957
+ instruction: z.ZodString;
958
+ autoAdvance: z.ZodOptional<z.ZodBoolean>;
959
+ }, "strict", z.ZodTypeAny, {
960
+ id: string;
961
+ value: string;
962
+ action: "select";
963
+ target: {
964
+ testId?: string | undefined;
965
+ role?: string | undefined;
966
+ name?: string | undefined;
967
+ label?: string | undefined;
968
+ text?: string | undefined;
969
+ selector?: string | undefined;
970
+ };
971
+ instruction: string;
972
+ autoAdvance?: boolean | undefined;
973
+ }, {
974
+ id: string;
975
+ value: string;
976
+ action: "select";
977
+ target: {
978
+ testId?: string | undefined;
979
+ role?: string | undefined;
980
+ name?: string | undefined;
981
+ label?: string | undefined;
982
+ text?: string | undefined;
983
+ selector?: string | undefined;
984
+ };
985
+ instruction: string;
986
+ autoAdvance?: boolean | undefined;
987
+ }>, z.ZodObject<{
988
+ id: z.ZodString;
989
+ action: z.ZodLiteral<"verify">;
990
+ target: z.ZodEffects<z.ZodObject<{
991
+ testId: z.ZodOptional<z.ZodString>;
992
+ role: z.ZodOptional<z.ZodString>;
993
+ name: z.ZodOptional<z.ZodString>;
994
+ label: z.ZodOptional<z.ZodString>;
995
+ text: z.ZodOptional<z.ZodString>;
996
+ selector: z.ZodOptional<z.ZodString>;
997
+ }, "strict", z.ZodTypeAny, {
998
+ testId?: string | undefined;
999
+ role?: string | undefined;
1000
+ name?: string | undefined;
1001
+ label?: string | undefined;
1002
+ text?: string | undefined;
1003
+ selector?: string | undefined;
1004
+ }, {
1005
+ testId?: string | undefined;
1006
+ role?: string | undefined;
1007
+ name?: string | undefined;
1008
+ label?: string | undefined;
1009
+ text?: string | undefined;
1010
+ selector?: string | undefined;
1011
+ }>, {
1012
+ testId?: string | undefined;
1013
+ role?: string | undefined;
1014
+ name?: string | undefined;
1015
+ label?: string | undefined;
1016
+ text?: string | undefined;
1017
+ selector?: string | undefined;
1018
+ }, {
1019
+ testId?: string | undefined;
1020
+ role?: string | undefined;
1021
+ name?: string | undefined;
1022
+ label?: string | undefined;
1023
+ text?: string | undefined;
1024
+ selector?: string | undefined;
1025
+ }>;
1026
+ instruction: z.ZodString;
1027
+ }, "strict", z.ZodTypeAny, {
1028
+ id: string;
1029
+ action: "verify";
1030
+ target: {
1031
+ testId?: string | undefined;
1032
+ role?: string | undefined;
1033
+ name?: string | undefined;
1034
+ label?: string | undefined;
1035
+ text?: string | undefined;
1036
+ selector?: string | undefined;
1037
+ };
1038
+ instruction: string;
1039
+ }, {
1040
+ id: string;
1041
+ action: "verify";
1042
+ target: {
1043
+ testId?: string | undefined;
1044
+ role?: string | undefined;
1045
+ name?: string | undefined;
1046
+ label?: string | undefined;
1047
+ text?: string | undefined;
1048
+ selector?: string | undefined;
1049
+ };
1050
+ instruction: string;
1051
+ }>, z.ZodObject<{
1052
+ id: z.ZodString;
1053
+ action: z.ZodLiteral<"navigate">;
1054
+ url: z.ZodString;
1055
+ instruction: z.ZodString;
1056
+ }, "strict", z.ZodTypeAny, {
1057
+ url: string;
1058
+ id: string;
1059
+ action: "navigate";
1060
+ instruction: string;
1061
+ }, {
1062
+ url: string;
1063
+ id: string;
1064
+ action: "navigate";
1065
+ instruction: string;
1066
+ }>, z.ZodObject<{
1067
+ id: z.ZodString;
1068
+ action: z.ZodLiteral<"wait">;
1069
+ target: z.ZodOptional<z.ZodEffects<z.ZodObject<{
1070
+ testId: z.ZodOptional<z.ZodString>;
1071
+ role: z.ZodOptional<z.ZodString>;
1072
+ name: z.ZodOptional<z.ZodString>;
1073
+ label: z.ZodOptional<z.ZodString>;
1074
+ text: z.ZodOptional<z.ZodString>;
1075
+ selector: z.ZodOptional<z.ZodString>;
1076
+ }, "strict", z.ZodTypeAny, {
1077
+ testId?: string | undefined;
1078
+ role?: string | undefined;
1079
+ name?: string | undefined;
1080
+ label?: string | undefined;
1081
+ text?: string | undefined;
1082
+ selector?: string | undefined;
1083
+ }, {
1084
+ testId?: string | undefined;
1085
+ role?: string | undefined;
1086
+ name?: string | undefined;
1087
+ label?: string | undefined;
1088
+ text?: string | undefined;
1089
+ selector?: string | undefined;
1090
+ }>, {
1091
+ testId?: string | undefined;
1092
+ role?: string | undefined;
1093
+ name?: string | undefined;
1094
+ label?: string | undefined;
1095
+ text?: string | undefined;
1096
+ selector?: string | undefined;
1097
+ }, {
1098
+ testId?: string | undefined;
1099
+ role?: string | undefined;
1100
+ name?: string | undefined;
1101
+ label?: string | undefined;
1102
+ text?: string | undefined;
1103
+ selector?: string | undefined;
1104
+ }>>;
1105
+ timeoutMs: z.ZodOptional<z.ZodNumber>;
1106
+ instruction: z.ZodString;
1107
+ }, "strict", z.ZodTypeAny, {
1108
+ id: string;
1109
+ action: "wait";
1110
+ instruction: string;
1111
+ target?: {
1112
+ testId?: string | undefined;
1113
+ role?: string | undefined;
1114
+ name?: string | undefined;
1115
+ label?: string | undefined;
1116
+ text?: string | undefined;
1117
+ selector?: string | undefined;
1118
+ } | undefined;
1119
+ timeoutMs?: number | undefined;
1120
+ }, {
1121
+ id: string;
1122
+ action: "wait";
1123
+ instruction: string;
1124
+ target?: {
1125
+ testId?: string | undefined;
1126
+ role?: string | undefined;
1127
+ name?: string | undefined;
1128
+ label?: string | undefined;
1129
+ text?: string | undefined;
1130
+ selector?: string | undefined;
1131
+ } | undefined;
1132
+ timeoutMs?: number | undefined;
1133
+ }>]>, "many">;
1134
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1135
+ id: z.ZodString;
1136
+ title: z.ZodString;
1137
+ application: z.ZodString;
1138
+ release: z.ZodString;
1139
+ start: z.ZodObject<{
1140
+ url: z.ZodString;
1141
+ }, "strict", z.ZodTypeAny, {
1142
+ url: string;
1143
+ }, {
1144
+ url: string;
1145
+ }>;
1146
+ steps: z.ZodArray<z.ZodDiscriminatedUnion<"action", [z.ZodObject<{
1147
+ id: z.ZodString;
1148
+ action: z.ZodLiteral<"click">;
1149
+ target: z.ZodEffects<z.ZodObject<{
1150
+ testId: z.ZodOptional<z.ZodString>;
1151
+ role: z.ZodOptional<z.ZodString>;
1152
+ name: z.ZodOptional<z.ZodString>;
1153
+ label: z.ZodOptional<z.ZodString>;
1154
+ text: z.ZodOptional<z.ZodString>;
1155
+ selector: z.ZodOptional<z.ZodString>;
1156
+ }, "strict", z.ZodTypeAny, {
1157
+ testId?: string | undefined;
1158
+ role?: string | undefined;
1159
+ name?: string | undefined;
1160
+ label?: string | undefined;
1161
+ text?: string | undefined;
1162
+ selector?: string | undefined;
1163
+ }, {
1164
+ testId?: string | undefined;
1165
+ role?: string | undefined;
1166
+ name?: string | undefined;
1167
+ label?: string | undefined;
1168
+ text?: string | undefined;
1169
+ selector?: string | undefined;
1170
+ }>, {
1171
+ testId?: string | undefined;
1172
+ role?: string | undefined;
1173
+ name?: string | undefined;
1174
+ label?: string | undefined;
1175
+ text?: string | undefined;
1176
+ selector?: string | undefined;
1177
+ }, {
1178
+ testId?: string | undefined;
1179
+ role?: string | undefined;
1180
+ name?: string | undefined;
1181
+ label?: string | undefined;
1182
+ text?: string | undefined;
1183
+ selector?: string | undefined;
1184
+ }>;
1185
+ instruction: z.ZodString;
1186
+ autoAdvance: z.ZodOptional<z.ZodBoolean>;
1187
+ }, "strict", z.ZodTypeAny, {
1188
+ id: string;
1189
+ action: "click";
1190
+ target: {
1191
+ testId?: string | undefined;
1192
+ role?: string | undefined;
1193
+ name?: string | undefined;
1194
+ label?: string | undefined;
1195
+ text?: string | undefined;
1196
+ selector?: string | undefined;
1197
+ };
1198
+ instruction: string;
1199
+ autoAdvance?: boolean | undefined;
1200
+ }, {
1201
+ id: string;
1202
+ action: "click";
1203
+ target: {
1204
+ testId?: string | undefined;
1205
+ role?: string | undefined;
1206
+ name?: string | undefined;
1207
+ label?: string | undefined;
1208
+ text?: string | undefined;
1209
+ selector?: string | undefined;
1210
+ };
1211
+ instruction: string;
1212
+ autoAdvance?: boolean | undefined;
1213
+ }>, z.ZodObject<{
1214
+ id: z.ZodString;
1215
+ action: z.ZodLiteral<"input">;
1216
+ target: z.ZodEffects<z.ZodObject<{
1217
+ testId: z.ZodOptional<z.ZodString>;
1218
+ role: z.ZodOptional<z.ZodString>;
1219
+ name: z.ZodOptional<z.ZodString>;
1220
+ label: z.ZodOptional<z.ZodString>;
1221
+ text: z.ZodOptional<z.ZodString>;
1222
+ selector: z.ZodOptional<z.ZodString>;
1223
+ }, "strict", z.ZodTypeAny, {
1224
+ testId?: string | undefined;
1225
+ role?: string | undefined;
1226
+ name?: string | undefined;
1227
+ label?: string | undefined;
1228
+ text?: string | undefined;
1229
+ selector?: string | undefined;
1230
+ }, {
1231
+ testId?: string | undefined;
1232
+ role?: string | undefined;
1233
+ name?: string | undefined;
1234
+ label?: string | undefined;
1235
+ text?: string | undefined;
1236
+ selector?: string | undefined;
1237
+ }>, {
1238
+ testId?: string | undefined;
1239
+ role?: string | undefined;
1240
+ name?: string | undefined;
1241
+ label?: string | undefined;
1242
+ text?: string | undefined;
1243
+ selector?: string | undefined;
1244
+ }, {
1245
+ testId?: string | undefined;
1246
+ role?: string | undefined;
1247
+ name?: string | undefined;
1248
+ label?: string | undefined;
1249
+ text?: string | undefined;
1250
+ selector?: string | undefined;
1251
+ }>;
1252
+ value: z.ZodString;
1253
+ instruction: z.ZodString;
1254
+ autoAdvance: z.ZodOptional<z.ZodBoolean>;
1255
+ }, "strict", z.ZodTypeAny, {
1256
+ id: string;
1257
+ value: string;
1258
+ action: "input";
1259
+ target: {
1260
+ testId?: string | undefined;
1261
+ role?: string | undefined;
1262
+ name?: string | undefined;
1263
+ label?: string | undefined;
1264
+ text?: string | undefined;
1265
+ selector?: string | undefined;
1266
+ };
1267
+ instruction: string;
1268
+ autoAdvance?: boolean | undefined;
1269
+ }, {
1270
+ id: string;
1271
+ value: string;
1272
+ action: "input";
1273
+ target: {
1274
+ testId?: string | undefined;
1275
+ role?: string | undefined;
1276
+ name?: string | undefined;
1277
+ label?: string | undefined;
1278
+ text?: string | undefined;
1279
+ selector?: string | undefined;
1280
+ };
1281
+ instruction: string;
1282
+ autoAdvance?: boolean | undefined;
1283
+ }>, z.ZodObject<{
1284
+ id: z.ZodString;
1285
+ action: z.ZodLiteral<"select">;
1286
+ target: z.ZodEffects<z.ZodObject<{
1287
+ testId: z.ZodOptional<z.ZodString>;
1288
+ role: z.ZodOptional<z.ZodString>;
1289
+ name: z.ZodOptional<z.ZodString>;
1290
+ label: z.ZodOptional<z.ZodString>;
1291
+ text: z.ZodOptional<z.ZodString>;
1292
+ selector: z.ZodOptional<z.ZodString>;
1293
+ }, "strict", z.ZodTypeAny, {
1294
+ testId?: string | undefined;
1295
+ role?: string | undefined;
1296
+ name?: string | undefined;
1297
+ label?: string | undefined;
1298
+ text?: string | undefined;
1299
+ selector?: string | undefined;
1300
+ }, {
1301
+ testId?: string | undefined;
1302
+ role?: string | undefined;
1303
+ name?: string | undefined;
1304
+ label?: string | undefined;
1305
+ text?: string | undefined;
1306
+ selector?: string | undefined;
1307
+ }>, {
1308
+ testId?: string | undefined;
1309
+ role?: string | undefined;
1310
+ name?: string | undefined;
1311
+ label?: string | undefined;
1312
+ text?: string | undefined;
1313
+ selector?: string | undefined;
1314
+ }, {
1315
+ testId?: string | undefined;
1316
+ role?: string | undefined;
1317
+ name?: string | undefined;
1318
+ label?: string | undefined;
1319
+ text?: string | undefined;
1320
+ selector?: string | undefined;
1321
+ }>;
1322
+ value: z.ZodString;
1323
+ instruction: z.ZodString;
1324
+ autoAdvance: z.ZodOptional<z.ZodBoolean>;
1325
+ }, "strict", z.ZodTypeAny, {
1326
+ id: string;
1327
+ value: string;
1328
+ action: "select";
1329
+ target: {
1330
+ testId?: string | undefined;
1331
+ role?: string | undefined;
1332
+ name?: string | undefined;
1333
+ label?: string | undefined;
1334
+ text?: string | undefined;
1335
+ selector?: string | undefined;
1336
+ };
1337
+ instruction: string;
1338
+ autoAdvance?: boolean | undefined;
1339
+ }, {
1340
+ id: string;
1341
+ value: string;
1342
+ action: "select";
1343
+ target: {
1344
+ testId?: string | undefined;
1345
+ role?: string | undefined;
1346
+ name?: string | undefined;
1347
+ label?: string | undefined;
1348
+ text?: string | undefined;
1349
+ selector?: string | undefined;
1350
+ };
1351
+ instruction: string;
1352
+ autoAdvance?: boolean | undefined;
1353
+ }>, z.ZodObject<{
1354
+ id: z.ZodString;
1355
+ action: z.ZodLiteral<"verify">;
1356
+ target: z.ZodEffects<z.ZodObject<{
1357
+ testId: z.ZodOptional<z.ZodString>;
1358
+ role: z.ZodOptional<z.ZodString>;
1359
+ name: z.ZodOptional<z.ZodString>;
1360
+ label: z.ZodOptional<z.ZodString>;
1361
+ text: z.ZodOptional<z.ZodString>;
1362
+ selector: z.ZodOptional<z.ZodString>;
1363
+ }, "strict", z.ZodTypeAny, {
1364
+ testId?: string | undefined;
1365
+ role?: string | undefined;
1366
+ name?: string | undefined;
1367
+ label?: string | undefined;
1368
+ text?: string | undefined;
1369
+ selector?: string | undefined;
1370
+ }, {
1371
+ testId?: string | undefined;
1372
+ role?: string | undefined;
1373
+ name?: string | undefined;
1374
+ label?: string | undefined;
1375
+ text?: string | undefined;
1376
+ selector?: string | undefined;
1377
+ }>, {
1378
+ testId?: string | undefined;
1379
+ role?: string | undefined;
1380
+ name?: string | undefined;
1381
+ label?: string | undefined;
1382
+ text?: string | undefined;
1383
+ selector?: string | undefined;
1384
+ }, {
1385
+ testId?: string | undefined;
1386
+ role?: string | undefined;
1387
+ name?: string | undefined;
1388
+ label?: string | undefined;
1389
+ text?: string | undefined;
1390
+ selector?: string | undefined;
1391
+ }>;
1392
+ instruction: z.ZodString;
1393
+ }, "strict", z.ZodTypeAny, {
1394
+ id: string;
1395
+ action: "verify";
1396
+ target: {
1397
+ testId?: string | undefined;
1398
+ role?: string | undefined;
1399
+ name?: string | undefined;
1400
+ label?: string | undefined;
1401
+ text?: string | undefined;
1402
+ selector?: string | undefined;
1403
+ };
1404
+ instruction: string;
1405
+ }, {
1406
+ id: string;
1407
+ action: "verify";
1408
+ target: {
1409
+ testId?: string | undefined;
1410
+ role?: string | undefined;
1411
+ name?: string | undefined;
1412
+ label?: string | undefined;
1413
+ text?: string | undefined;
1414
+ selector?: string | undefined;
1415
+ };
1416
+ instruction: string;
1417
+ }>, z.ZodObject<{
1418
+ id: z.ZodString;
1419
+ action: z.ZodLiteral<"navigate">;
1420
+ url: z.ZodString;
1421
+ instruction: z.ZodString;
1422
+ }, "strict", z.ZodTypeAny, {
1423
+ url: string;
1424
+ id: string;
1425
+ action: "navigate";
1426
+ instruction: string;
1427
+ }, {
1428
+ url: string;
1429
+ id: string;
1430
+ action: "navigate";
1431
+ instruction: string;
1432
+ }>, z.ZodObject<{
1433
+ id: z.ZodString;
1434
+ action: z.ZodLiteral<"wait">;
1435
+ target: z.ZodOptional<z.ZodEffects<z.ZodObject<{
1436
+ testId: z.ZodOptional<z.ZodString>;
1437
+ role: z.ZodOptional<z.ZodString>;
1438
+ name: z.ZodOptional<z.ZodString>;
1439
+ label: z.ZodOptional<z.ZodString>;
1440
+ text: z.ZodOptional<z.ZodString>;
1441
+ selector: z.ZodOptional<z.ZodString>;
1442
+ }, "strict", z.ZodTypeAny, {
1443
+ testId?: string | undefined;
1444
+ role?: string | undefined;
1445
+ name?: string | undefined;
1446
+ label?: string | undefined;
1447
+ text?: string | undefined;
1448
+ selector?: string | undefined;
1449
+ }, {
1450
+ testId?: string | undefined;
1451
+ role?: string | undefined;
1452
+ name?: string | undefined;
1453
+ label?: string | undefined;
1454
+ text?: string | undefined;
1455
+ selector?: string | undefined;
1456
+ }>, {
1457
+ testId?: string | undefined;
1458
+ role?: string | undefined;
1459
+ name?: string | undefined;
1460
+ label?: string | undefined;
1461
+ text?: string | undefined;
1462
+ selector?: string | undefined;
1463
+ }, {
1464
+ testId?: string | undefined;
1465
+ role?: string | undefined;
1466
+ name?: string | undefined;
1467
+ label?: string | undefined;
1468
+ text?: string | undefined;
1469
+ selector?: string | undefined;
1470
+ }>>;
1471
+ timeoutMs: z.ZodOptional<z.ZodNumber>;
1472
+ instruction: z.ZodString;
1473
+ }, "strict", z.ZodTypeAny, {
1474
+ id: string;
1475
+ action: "wait";
1476
+ instruction: string;
1477
+ target?: {
1478
+ testId?: string | undefined;
1479
+ role?: string | undefined;
1480
+ name?: string | undefined;
1481
+ label?: string | undefined;
1482
+ text?: string | undefined;
1483
+ selector?: string | undefined;
1484
+ } | undefined;
1485
+ timeoutMs?: number | undefined;
1486
+ }, {
1487
+ id: string;
1488
+ action: "wait";
1489
+ instruction: string;
1490
+ target?: {
1491
+ testId?: string | undefined;
1492
+ role?: string | undefined;
1493
+ name?: string | undefined;
1494
+ label?: string | undefined;
1495
+ text?: string | undefined;
1496
+ selector?: string | undefined;
1497
+ } | undefined;
1498
+ timeoutMs?: number | undefined;
1499
+ }>]>, "many">;
1500
+ }, z.ZodTypeAny, "passthrough">>;
1501
+ type Guide = z.infer<typeof GuideSchema>;
1502
+
1503
+ interface TrailHandle {
1504
+ next: () => void;
1505
+ back: () => void;
1506
+ exit: () => void;
1507
+ }
1508
+
1509
+ interface TrailInitOptions {
1510
+ /** Explicit URL to a guide document (JSON or YAML). Overrides URL-based auto-detection. */
1511
+ guideUrl?: string;
1512
+ /** Base path used to resolve `?trail=&release=` query params. Defaults to "/guides". */
1513
+ guideBaseUrl?: string;
1514
+ }
1515
+ interface ResolvedGuideRequest {
1516
+ url: string;
1517
+ guideId: string;
1518
+ release: string;
1519
+ }
1520
+ declare function resolveGuideRequest(options: TrailInitOptions): ResolvedGuideRequest | null;
1521
+ /**
1522
+ * Entry point installed inside the application under test. No-ops (negligible
1523
+ * overhead, per spec #34) unless a guide has actually been requested via
1524
+ * `options.guideUrl` or the `?trail=&release=` query params.
1525
+ */
1526
+ declare function init(options?: TrailInitOptions): Promise<TrailHandle | null>;
1527
+ declare const Trail: {
1528
+ init: typeof init;
1529
+ };
1530
+
1531
+ export { type Guide, type GuideStep, type Target, Trail, type TrailHandle, type TrailInitOptions, resolveGuideRequest };