@docsxai/engine 0.3.0-rc.3 → 0.3.0-rc.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (181) hide show
  1. package/README.md +44 -34
  2. package/dist/atomic-write.d.ts +19 -0
  3. package/dist/atomic-write.js +127 -0
  4. package/dist/auth/api-login.d.ts +9 -51
  5. package/dist/auth/api-login.js +3 -3
  6. package/dist/auth/browser-session.js +1 -1
  7. package/dist/auth/cookie-jar.d.ts +4 -4
  8. package/dist/auth/cookie-jar.js +4 -4
  9. package/dist/auth/email-otp.d.ts +11 -147
  10. package/dist/auth/email-otp.js +4 -4
  11. package/dist/auth/http-basic.js +1 -1
  12. package/dist/auth/index.js +3 -3
  13. package/dist/auth/jwt-injection.d.ts +7 -131
  14. package/dist/auth/jwt-injection.js +5 -5
  15. package/dist/auth/manual-capture.d.ts +3 -3
  16. package/dist/auth/manual-capture.js +2 -2
  17. package/dist/auth/mtls.d.ts +1 -6
  18. package/dist/auth/mtls.js +1 -1
  19. package/dist/auth/pat-header.d.ts +1 -9
  20. package/dist/auth/pat-header.js +1 -1
  21. package/dist/auth/storage-state-cache.d.ts +16 -6
  22. package/dist/auth/storage-state-cache.js +65 -15
  23. package/dist/auth/test-backdoor.d.ts +2 -13
  24. package/dist/auth/test-backdoor.js +3 -3
  25. package/dist/auth/totp.d.ts +1 -1
  26. package/dist/auth/totp.js +4 -4
  27. package/dist/auth/types.d.ts +3 -3
  28. package/dist/auth/types.js +4 -4
  29. package/dist/auth/ui-form.d.ts +24 -153
  30. package/dist/auth/ui-form.js +3 -3
  31. package/dist/auth/webauthn.d.ts +7 -67
  32. package/dist/auth/webauthn.js +3 -3
  33. package/dist/auth.js +1 -1
  34. package/dist/backend-client-contracts.d.ts +1 -1
  35. package/dist/backend-client-contracts.js +2 -2
  36. package/dist/backend-client-oauth-login.js +1 -1
  37. package/dist/backend-client-state-cache.d.ts +2 -2
  38. package/dist/backend-client-state-cache.js +8 -8
  39. package/dist/backend-client-token.js +4 -4
  40. package/dist/backend-client-transport.d.ts +2 -2
  41. package/dist/backend-client-transport.js +3 -3
  42. package/dist/backend-client.js +6 -6
  43. package/dist/browser-build.d.ts +6 -0
  44. package/dist/browser-build.js +12 -0
  45. package/dist/browser-launch-error.d.ts +18 -0
  46. package/dist/browser-launch-error.js +63 -0
  47. package/dist/browser-wait.d.ts +7 -0
  48. package/dist/browser-wait.js +12 -0
  49. package/dist/calibrate.d.ts +6 -2
  50. package/dist/calibrate.js +20 -13
  51. package/dist/cli-backend-errors.d.ts +5 -0
  52. package/dist/cli-backend-errors.js +24 -3
  53. package/dist/cli-commands-auth.d.ts +1 -0
  54. package/dist/cli-commands-auth.js +114 -0
  55. package/dist/cli-commands-authoring.d.ts +0 -1
  56. package/dist/cli-commands-authoring.js +124 -101
  57. package/dist/cli-commands-backend.d.ts +1 -1
  58. package/dist/cli-commands-backend.js +76 -21
  59. package/dist/cli-commands-docpack.d.ts +3 -1
  60. package/dist/cli-commands-docpack.js +145 -39
  61. package/dist/cli-commands-init.d.ts +1 -0
  62. package/dist/cli-commands-init.js +100 -0
  63. package/dist/cli-commands-pack.d.ts +1 -1
  64. package/dist/cli-commands-pack.js +6 -4
  65. package/dist/cli-commands-session.d.ts +1 -3
  66. package/dist/cli-commands-session.js +109 -180
  67. package/dist/cli-commands-site.d.ts +2 -0
  68. package/dist/cli-commands-site.js +77 -0
  69. package/dist/cli-commands-style.d.ts +1 -0
  70. package/dist/cli-commands-style.js +85 -0
  71. package/dist/cli-flags.d.ts +18 -0
  72. package/dist/cli-flags.js +77 -0
  73. package/dist/cli-help.d.ts +30 -0
  74. package/dist/cli-help.js +174 -0
  75. package/dist/cli-messages.d.ts +30 -0
  76. package/dist/cli-messages.js +97 -0
  77. package/dist/cli-node-guard.d.ts +1 -0
  78. package/dist/cli-node-guard.js +8 -0
  79. package/dist/cli-retired.js +6 -0
  80. package/dist/cli-run-stale.d.ts +2 -0
  81. package/dist/cli-run-stale.js +13 -0
  82. package/dist/cli-run-summary.js +7 -3
  83. package/dist/cli-shared.d.ts +30 -1
  84. package/dist/cli-shared.js +112 -12
  85. package/dist/cli-unexpected.d.ts +12 -2
  86. package/dist/cli-unexpected.js +50 -4
  87. package/dist/cli-usage.d.ts +1 -1
  88. package/dist/cli-usage.js +115 -66
  89. package/dist/cli-value-flags.d.ts +8 -0
  90. package/dist/cli-value-flags.js +34 -0
  91. package/dist/cli-version.d.ts +6 -0
  92. package/dist/cli-version.js +25 -0
  93. package/dist/cli.d.ts +1 -0
  94. package/dist/cli.js +42 -19
  95. package/dist/deprecation.d.ts +2 -0
  96. package/dist/deprecation.js +2 -0
  97. package/dist/device-scale-factor.d.ts +14 -0
  98. package/dist/device-scale-factor.js +38 -0
  99. package/dist/diagnose.js +14 -13
  100. package/dist/diff-compute.js +22 -8
  101. package/dist/diff-report.js +3 -3
  102. package/dist/diff-types.js +1 -1
  103. package/dist/diff.js +3 -3
  104. package/dist/doc-pack-io.js +62 -47
  105. package/dist/doc-pack.d.ts +567 -3487
  106. package/dist/doc-pack.js +47 -33
  107. package/dist/doctor-checks-config.d.ts +12 -0
  108. package/dist/doctor-checks-config.js +229 -0
  109. package/dist/doctor-checks-plugins.js +2 -2
  110. package/dist/doctor-checks-site.d.ts +3 -0
  111. package/dist/doctor-checks-site.js +21 -0
  112. package/dist/doctor-checks.d.ts +13 -2
  113. package/dist/doctor-checks.js +94 -79
  114. package/dist/doctor-next.d.ts +5 -0
  115. package/dist/doctor-next.js +52 -0
  116. package/dist/doctor.d.ts +36 -2
  117. package/dist/doctor.js +88 -29
  118. package/dist/environment-spec.d.ts +36 -44
  119. package/dist/environment-spec.js +31 -3
  120. package/dist/export/adf.d.ts +1 -1
  121. package/dist/export/adf.js +16 -27
  122. package/dist/export/playwright-test.d.ts +1 -1
  123. package/dist/export/playwright-test.js +13 -15
  124. package/dist/flow-file.d.ts +1 -1
  125. package/dist/flow-file.js +22 -4
  126. package/dist/flow-halt.d.ts +1 -1
  127. package/dist/flow-halt.js +15 -3
  128. package/dist/flow-lint.d.ts +3 -1
  129. package/dist/flow-lint.js +39 -26
  130. package/dist/flow-matrix-lint.js +2 -2
  131. package/dist/flow-runtime.d.ts +17 -6
  132. package/dist/flow-runtime.js +48 -17
  133. package/dist/flow-success.js +4 -4
  134. package/dist/flow-tree.js +2 -2
  135. package/dist/index.d.ts +2 -0
  136. package/dist/index.js +2 -0
  137. package/dist/main-module.d.ts +1 -0
  138. package/dist/main-module.js +17 -0
  139. package/dist/matrix-spec.d.ts +33 -106
  140. package/dist/matrix-spec.js +12 -3
  141. package/dist/node-floor.d.ts +4 -0
  142. package/dist/node-floor.js +14 -0
  143. package/dist/obstacles.js +1 -1
  144. package/dist/open-in-browser.d.ts +22 -0
  145. package/dist/open-in-browser.js +37 -0
  146. package/dist/playwright-driver.d.ts +8 -12
  147. package/dist/playwright-driver.js +75 -70
  148. package/dist/playwright-instrumented-browser.d.ts +10 -7
  149. package/dist/playwright-instrumented-browser.js +35 -12
  150. package/dist/plugins/load.d.ts +1 -1
  151. package/dist/plugins/load.js +4 -4
  152. package/dist/plugins/lock.js +11 -8
  153. package/dist/plugins/manifest.d.ts +16 -35
  154. package/dist/plugins/manifest.js +5 -5
  155. package/dist/plugins/plan.d.ts +3 -3
  156. package/dist/plugins/plan.js +14 -14
  157. package/dist/plugins/registry.d.ts +1 -1
  158. package/dist/plugins/registry.js +1 -1
  159. package/dist/plugins/runtime.js +3 -3
  160. package/dist/plugins/types.d.ts +1 -1
  161. package/dist/plugins-cli.js +36 -28
  162. package/dist/posix-path.d.ts +2 -0
  163. package/dist/posix-path.js +7 -0
  164. package/dist/redact.js +2 -2
  165. package/dist/run-flows.d.ts +7 -0
  166. package/dist/run-flows.js +75 -27
  167. package/dist/style.d.ts +2 -2
  168. package/dist/style.js +13 -11
  169. package/dist/verify-determinism.js +2 -1
  170. package/dist/verify-next-step.d.ts +2 -0
  171. package/dist/verify-next-step.js +24 -0
  172. package/dist/verify-report.js +3 -2
  173. package/dist/viewer-bin.d.ts +9 -3
  174. package/dist/viewer-bin.js +35 -12
  175. package/dist/workspace-templates.d.ts +15 -0
  176. package/dist/workspace-templates.js +88 -0
  177. package/dist/workspace.d.ts +78 -5
  178. package/dist/workspace.js +47 -28
  179. package/dist/zip.d.ts +1 -1
  180. package/dist/zip.js +23 -6
  181. package/package.json +6 -6
@@ -1,12 +1,34 @@
1
1
  import { z } from "zod";
2
2
  export { ColorScheme, EnvironmentSpec, LocaleTag, VIEWPORT_PRESETS, ViewportPreset, ViewportSize, } from "./environment-spec.js";
3
3
  export { MAX_MATRIX_VARIANTS, MatrixSpec, MatrixViewport, VariantInfo, VariantSelector, } from "./matrix-spec.js";
4
- export declare const ArrowStyle: z.ZodEnum<["top-left", "top-right", "bottom-left", "bottom-right", "top", "bottom", "left", "right"]>;
4
+ export declare const ArrowStyle: z.ZodEnum<{
5
+ "top-left": "top-left";
6
+ "top-right": "top-right";
7
+ "bottom-left": "bottom-left";
8
+ "bottom-right": "bottom-right";
9
+ top: "top";
10
+ bottom: "bottom";
11
+ left: "left";
12
+ right: "right";
13
+ }>;
5
14
  export type ArrowStyle = z.infer<typeof ArrowStyle>;
6
15
  /** A locator reference (`$play_button`) resolved against a flow-file's `locators` map, or an inline selector. */
7
16
  export declare const LocatorRef: z.ZodString;
8
17
  export type LocatorRef = z.infer<typeof LocatorRef>;
9
- export declare const ActionType: z.ZodEnum<["navigate", "click", "fill", "upload", "press", "hover", "select", "check", "uncheck", "wait", "hide", "show"]>;
18
+ export declare const ActionType: z.ZodEnum<{
19
+ fill: "fill";
20
+ check: "check";
21
+ navigate: "navigate";
22
+ click: "click";
23
+ upload: "upload";
24
+ press: "press";
25
+ hover: "hover";
26
+ select: "select";
27
+ uncheck: "uncheck";
28
+ wait: "wait";
29
+ hide: "hide";
30
+ show: "show";
31
+ }>;
10
32
  export type ActionType = z.infer<typeof ActionType>;
11
33
  /** Bounds for a step's `timeout_ms`, in milliseconds. 30 s is Playwright's own default wait. */
12
34
  export declare const STEP_TIMEOUT_MIN_MS = 100;
@@ -14,81 +36,45 @@ export declare const STEP_TIMEOUT_MAX_MS = 30000;
14
36
  /**
15
37
  * What to wait for after a step's action settles. `network_idle` / `element_stable` / `load` / `settled` are
16
38
  * named primitives (`settled` = fonts loaded, visible images loaded, viewport layout still, bounded by the
17
- * step's `timeout_ms`); `{ selector }` waits for an element to appear (Playwright's default timeout, ~30s) — give it
39
+ * step's `timeout_ms`); `{ selector }` waits for an element to appear (Playwright's default timeout, ~30s), give it
18
40
  * `timeout_ms` to override that (e.g. waiting on a multi-minute backend op that mounts a "done" element);
19
- * `{ timeout_ms }` alone is a blind sleep (last resort — for animations, not state).
41
+ * `{ timeout_ms }` alone is a blind sleep (last resort, for animations, not state).
20
42
  */
21
- export declare const WaitSpec: z.ZodUnion<[z.ZodEnum<["network_idle", "element_stable", "load", "settled"]>, z.ZodObject<{
22
- timeout_ms: z.ZodNumber;
23
- }, "strict", z.ZodTypeAny, {
24
- timeout_ms: number;
25
- }, {
26
- timeout_ms: number;
43
+ export declare const WaitSpec: z.ZodUnion<readonly [z.ZodEnum<{
44
+ network_idle: "network_idle";
45
+ element_stable: "element_stable";
46
+ load: "load";
47
+ settled: "settled";
27
48
  }>, z.ZodObject<{
49
+ timeout_ms: z.ZodNumber;
50
+ }, z.core.$strict>, z.ZodObject<{
28
51
  selector: z.ZodString;
29
52
  timeout_ms: z.ZodOptional<z.ZodNumber>;
30
- }, "strict", z.ZodTypeAny, {
31
- selector: string;
32
- timeout_ms?: number | undefined;
33
- }, {
34
- selector: string;
35
- timeout_ms?: number | undefined;
36
- }>]>;
53
+ }, z.core.$strict>]>;
37
54
  export type WaitSpec = z.infer<typeof WaitSpec>;
38
- /** Post-step success criterion. Execution halts if it fails (no selector fallbacks — drift is a signal). */
39
- export declare const SuccessSpec: z.ZodUnion<[z.ZodObject<{
55
+ /** Post-step success criterion. Execution halts if it fails (no selector fallbacks, drift is a signal). */
56
+ export declare const SuccessSpec: z.ZodUnion<readonly [z.ZodObject<{
40
57
  visible: z.ZodString;
41
- }, "strict", z.ZodTypeAny, {
42
- visible: string;
43
- }, {
44
- visible: string;
45
- }>, z.ZodObject<{
58
+ }, z.core.$strict>, z.ZodObject<{
46
59
  hidden: z.ZodString;
47
- }, "strict", z.ZodTypeAny, {
48
- hidden: string;
49
- }, {
50
- hidden: string;
51
- }>, z.ZodObject<{
60
+ }, z.core.$strict>, z.ZodObject<{
52
61
  url_matches: z.ZodString;
53
- }, "strict", z.ZodTypeAny, {
54
- url_matches: string;
55
- }, {
56
- url_matches: string;
57
- }>, z.ZodObject<{
62
+ }, z.core.$strict>, z.ZodObject<{
58
63
  text_contains: z.ZodObject<{
59
64
  selector: z.ZodString;
60
65
  text: z.ZodString;
61
- }, "strict", z.ZodTypeAny, {
62
- selector: string;
63
- text: string;
64
- }, {
65
- selector: string;
66
- text: string;
67
- }>;
68
- }, "strict", z.ZodTypeAny, {
69
- text_contains: {
70
- selector: string;
71
- text: string;
72
- };
73
- }, {
74
- text_contains: {
75
- selector: string;
76
- text: string;
77
- };
78
- }>]>;
66
+ }, z.core.$strict>;
67
+ }, z.core.$strict>]>;
79
68
  export type SuccessSpec = z.infer<typeof SuccessSpec>;
80
69
  export declare const NudgeOffset: z.ZodObject<{
81
70
  x: z.ZodNumber;
82
71
  y: z.ZodNumber;
83
- }, "strict", z.ZodTypeAny, {
84
- x: number;
85
- y: number;
86
- }, {
87
- x: number;
88
- y: number;
89
- }>;
72
+ }, z.core.$strict>;
90
73
  export type NudgeOffset = z.infer<typeof NudgeOffset>;
91
- export declare const RedactionStyle: z.ZodEnum<["box", "pixelate"]>;
74
+ export declare const RedactionStyle: z.ZodEnum<{
75
+ box: "box";
76
+ pixelate: "pixelate";
77
+ }>;
92
78
  export type RedactionStyle = z.infer<typeof RedactionStyle>;
93
79
  /** A fixed rectangle in CSS pixels (viewport coordinates), scaled to device pixels at capture time. */
94
80
  export declare const RedactionRegion: z.ZodObject<{
@@ -96,70 +82,34 @@ export declare const RedactionRegion: z.ZodObject<{
96
82
  y: z.ZodNumber;
97
83
  width: z.ZodNumber;
98
84
  height: z.ZodNumber;
99
- }, "strict", z.ZodTypeAny, {
100
- width: number;
101
- height: number;
102
- x: number;
103
- y: number;
104
- }, {
105
- width: number;
106
- height: number;
107
- x: number;
108
- y: number;
109
- }>;
85
+ }, z.core.$strict>;
110
86
  export type RedactionRegion = z.infer<typeof RedactionRegion>;
111
87
  /**
112
88
  * One area to mask on every screenshot it applies to (step shots *and* halt shots): either an
113
89
  * element (locator ref / inline selector, resolved to its bounding box at capture time) or a fixed
114
90
  * `region`. Default `style` is `box` (solid #000 fill); `pixelate` is a 16-px mosaic. A selector
115
- * that matches nothing at capture time is skipped with a stderr warning — redacting an absent
91
+ * that matches nothing at capture time is skipped with a stderr warning, redacting an absent
116
92
  * element is vacuously satisfied, never a halt. Flow-level `redactions` apply to every step;
117
93
  * per-step `redactions` are additive.
118
94
  */
119
- export declare const RedactionSpec: z.ZodUnion<[z.ZodObject<{
95
+ export declare const RedactionSpec: z.ZodUnion<readonly [z.ZodObject<{
120
96
  selector: z.ZodString;
121
- style: z.ZodOptional<z.ZodEnum<["box", "pixelate"]>>;
122
- }, "strict", z.ZodTypeAny, {
123
- selector: string;
124
- style?: "box" | "pixelate" | undefined;
125
- }, {
126
- selector: string;
127
- style?: "box" | "pixelate" | undefined;
128
- }>, z.ZodObject<{
97
+ style: z.ZodOptional<z.ZodEnum<{
98
+ box: "box";
99
+ pixelate: "pixelate";
100
+ }>>;
101
+ }, z.core.$strict>, z.ZodObject<{
129
102
  region: z.ZodObject<{
130
103
  x: z.ZodNumber;
131
104
  y: z.ZodNumber;
132
105
  width: z.ZodNumber;
133
106
  height: z.ZodNumber;
134
- }, "strict", z.ZodTypeAny, {
135
- width: number;
136
- height: number;
137
- x: number;
138
- y: number;
139
- }, {
140
- width: number;
141
- height: number;
142
- x: number;
143
- y: number;
144
- }>;
145
- style: z.ZodOptional<z.ZodEnum<["box", "pixelate"]>>;
146
- }, "strict", z.ZodTypeAny, {
147
- region: {
148
- width: number;
149
- height: number;
150
- x: number;
151
- y: number;
152
- };
153
- style?: "box" | "pixelate" | undefined;
154
- }, {
155
- region: {
156
- width: number;
157
- height: number;
158
- x: number;
159
- y: number;
160
- };
161
- style?: "box" | "pixelate" | undefined;
162
- }>]>;
107
+ }, z.core.$strict>;
108
+ style: z.ZodOptional<z.ZodEnum<{
109
+ box: "box";
110
+ pixelate: "pixelate";
111
+ }>>;
112
+ }, z.core.$strict>]>;
163
113
  export type RedactionSpec = z.infer<typeof RedactionSpec>;
164
114
  /** Most `obstacles` one annotation record may carry (the writer keeps the nearest this many). */
165
115
  export declare const MAX_OBSTACLES = 40;
@@ -174,1347 +124,265 @@ export declare const MAX_OBSTACLE_RADIUS = 2000;
174
124
  * `obstacle_limit` steer the capture-time obstacle scan, the rest steer `docsxai-viewer burn`.
175
125
  */
176
126
  export declare const AnnotationPlacement: z.ZodObject<{
177
- /** Put the callout inside the target when the target is big enough to hold it (no arrow). */
178
127
  inside: z.ZodOptional<z.ZodBoolean>;
179
- /** Only try this side of the target (falls back to the usual order when nothing fits there). */
180
- side: z.ZodOptional<z.ZodEnum<["top", "bottom", "left", "right"]>>;
181
- /** Where along the target's edge the callout sits: flush with its start, centred, or flush with its end. */
182
- align: z.ZodOptional<z.ZodEnum<["start", "center", "end"]>>;
183
- /** `nudge` moves only the callout: the arrow stays on the target and a stem joins the two. */
128
+ side: z.ZodOptional<z.ZodEnum<{
129
+ top: "top";
130
+ bottom: "bottom";
131
+ left: "left";
132
+ right: "right";
133
+ }>>;
134
+ align: z.ZodOptional<z.ZodEnum<{
135
+ start: "start";
136
+ center: "center";
137
+ end: "end";
138
+ }>>;
184
139
  pin_arrow: z.ZodOptional<z.ZodBoolean>;
185
- /** Widest outer callout box in px (default 280, narrower on small screenshots with obstacles). */
186
140
  max_width: z.ZodOptional<z.ZodNumber>;
187
- /** CSS px around the target the obstacle scan covers (default 320). Read by `docsxai run`. */
188
141
  obstacle_radius: z.ZodOptional<z.ZodNumber>;
189
- /** Most obstacles recorded for this annotation (default {@link MAX_OBSTACLES}). Read by `docsxai run`. */
190
142
  obstacle_limit: z.ZodOptional<z.ZodNumber>;
191
- }, "strict", z.ZodTypeAny, {
192
- inside?: boolean | undefined;
193
- side?: "top" | "bottom" | "left" | "right" | undefined;
194
- align?: "start" | "center" | "end" | undefined;
195
- pin_arrow?: boolean | undefined;
196
- max_width?: number | undefined;
197
- obstacle_radius?: number | undefined;
198
- obstacle_limit?: number | undefined;
199
- }, {
200
- inside?: boolean | undefined;
201
- side?: "top" | "bottom" | "left" | "right" | undefined;
202
- align?: "start" | "center" | "end" | undefined;
203
- pin_arrow?: boolean | undefined;
204
- max_width?: number | undefined;
205
- obstacle_radius?: number | undefined;
206
- obstacle_limit?: number | undefined;
207
- }>;
143
+ }, z.core.$strict>;
208
144
  export type AnnotationPlacement = z.infer<typeof AnnotationPlacement>;
209
145
  export declare const StepAnnotation: z.ZodObject<{
210
146
  copy: z.ZodString;
211
- arrow: z.ZodOptional<z.ZodEnum<["top-left", "top-right", "bottom-left", "bottom-right", "top", "bottom", "left", "right"]>>;
212
- /**
213
- * Optional pixel offset applied to the callout + arrow after Popper-like placement. The halo (which
214
- * highlights the target element) stays on the target. Use this when two annotations on the same
215
- * screenshot would otherwise overlap each other — nudge one aside so both are readable.
216
- * Image-space pixels; small values (5–40 px in either direction) typically suffice.
217
- */
147
+ arrow: z.ZodOptional<z.ZodEnum<{
148
+ "top-left": "top-left";
149
+ "top-right": "top-right";
150
+ "bottom-left": "bottom-left";
151
+ "bottom-right": "bottom-right";
152
+ top: "top";
153
+ bottom: "bottom";
154
+ left: "left";
155
+ right: "right";
156
+ }>>;
218
157
  nudge: z.ZodOptional<z.ZodObject<{
219
158
  x: z.ZodNumber;
220
159
  y: z.ZodNumber;
221
- }, "strict", z.ZodTypeAny, {
222
- x: number;
223
- y: number;
224
- }, {
225
- x: number;
226
- y: number;
227
- }>>;
228
- /** Optional burner placement settings — see {@link AnnotationPlacement}. Copied onto the annotation record. */
160
+ }, z.core.$strict>>;
229
161
  placement: z.ZodOptional<z.ZodObject<{
230
- /** Put the callout inside the target when the target is big enough to hold it (no arrow). */
231
162
  inside: z.ZodOptional<z.ZodBoolean>;
232
- /** Only try this side of the target (falls back to the usual order when nothing fits there). */
233
- side: z.ZodOptional<z.ZodEnum<["top", "bottom", "left", "right"]>>;
234
- /** Where along the target's edge the callout sits: flush with its start, centred, or flush with its end. */
235
- align: z.ZodOptional<z.ZodEnum<["start", "center", "end"]>>;
236
- /** `nudge` moves only the callout: the arrow stays on the target and a stem joins the two. */
163
+ side: z.ZodOptional<z.ZodEnum<{
164
+ top: "top";
165
+ bottom: "bottom";
166
+ left: "left";
167
+ right: "right";
168
+ }>>;
169
+ align: z.ZodOptional<z.ZodEnum<{
170
+ start: "start";
171
+ center: "center";
172
+ end: "end";
173
+ }>>;
237
174
  pin_arrow: z.ZodOptional<z.ZodBoolean>;
238
- /** Widest outer callout box in px (default 280, narrower on small screenshots with obstacles). */
239
175
  max_width: z.ZodOptional<z.ZodNumber>;
240
- /** CSS px around the target the obstacle scan covers (default 320). Read by `docsxai run`. */
241
176
  obstacle_radius: z.ZodOptional<z.ZodNumber>;
242
- /** Most obstacles recorded for this annotation (default {@link MAX_OBSTACLES}). Read by `docsxai run`. */
243
177
  obstacle_limit: z.ZodOptional<z.ZodNumber>;
244
- }, "strict", z.ZodTypeAny, {
245
- inside?: boolean | undefined;
246
- side?: "top" | "bottom" | "left" | "right" | undefined;
247
- align?: "start" | "center" | "end" | undefined;
248
- pin_arrow?: boolean | undefined;
249
- max_width?: number | undefined;
250
- obstacle_radius?: number | undefined;
251
- obstacle_limit?: number | undefined;
252
- }, {
253
- inside?: boolean | undefined;
254
- side?: "top" | "bottom" | "left" | "right" | undefined;
255
- align?: "start" | "center" | "end" | undefined;
256
- pin_arrow?: boolean | undefined;
257
- max_width?: number | undefined;
258
- obstacle_radius?: number | undefined;
259
- obstacle_limit?: number | undefined;
260
- }>>;
261
- /**
262
- * Optional override: the locator to anchor the halo/arrow to. Default = the step's `target`. Use this on
263
- * a step whose action *transitions the UI* — the action target vanishes (gets unmounted / replaced) and
264
- * a *different* element is what you want to highlight in the resulting state. Point this at the
265
- * surviving / appearing element.
266
- */
178
+ }, z.core.$strict>>;
267
179
  target: z.ZodOptional<z.ZodString>;
268
- /**
269
- * Call-out text per locale, keyed by BCP-47 tag (`es`, `fr-CA`). `copy` stays required and is the
270
- * fallback. A variant takes its locale's entry (exact tag, then the language subtag), else `copy`.
271
- * The variant locale is the matrix locale, or `environment.locale` when the flow has no matrix locales.
272
- */
273
- copy_by_locale: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>>;
274
- /** Variants this call-out is kept for. Needs a `matrix`; see {@link VariantSelector}. */
275
- only: z.ZodOptional<z.ZodEffects<z.ZodObject<{
276
- viewport: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
277
- color_scheme: z.ZodOptional<z.ZodArray<z.ZodEnum<["light", "dark"]>, "many">>;
278
- locale: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
279
- }, "strict", z.ZodTypeAny, {
280
- locale?: string[] | undefined;
281
- viewport?: string[] | undefined;
282
- color_scheme?: ("light" | "dark")[] | undefined;
283
- }, {
284
- locale?: string[] | undefined;
285
- viewport?: string[] | undefined;
286
- color_scheme?: ("light" | "dark")[] | undefined;
287
- }>, {
288
- locale?: string[] | undefined;
289
- viewport?: string[] | undefined;
290
- color_scheme?: ("light" | "dark")[] | undefined;
291
- }, {
292
- locale?: string[] | undefined;
293
- viewport?: string[] | undefined;
294
- color_scheme?: ("light" | "dark")[] | undefined;
295
- }>>;
296
- /** Variants this call-out is dropped from. Needs a `matrix`; see {@link VariantSelector}. */
297
- skip: z.ZodOptional<z.ZodEffects<z.ZodObject<{
298
- viewport: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
299
- color_scheme: z.ZodOptional<z.ZodArray<z.ZodEnum<["light", "dark"]>, "many">>;
300
- locale: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
301
- }, "strict", z.ZodTypeAny, {
302
- locale?: string[] | undefined;
303
- viewport?: string[] | undefined;
304
- color_scheme?: ("light" | "dark")[] | undefined;
305
- }, {
306
- locale?: string[] | undefined;
307
- viewport?: string[] | undefined;
308
- color_scheme?: ("light" | "dark")[] | undefined;
309
- }>, {
310
- locale?: string[] | undefined;
311
- viewport?: string[] | undefined;
312
- color_scheme?: ("light" | "dark")[] | undefined;
313
- }, {
314
- locale?: string[] | undefined;
315
- viewport?: string[] | undefined;
316
- color_scheme?: ("light" | "dark")[] | undefined;
317
- }>>;
318
- }, "strict", z.ZodTypeAny, {
319
- copy: string;
320
- arrow?: "top-left" | "top-right" | "bottom-left" | "bottom-right" | "top" | "bottom" | "left" | "right" | undefined;
321
- nudge?: {
322
- x: number;
323
- y: number;
324
- } | undefined;
325
- placement?: {
326
- inside?: boolean | undefined;
327
- side?: "top" | "bottom" | "left" | "right" | undefined;
328
- align?: "start" | "center" | "end" | undefined;
329
- pin_arrow?: boolean | undefined;
330
- max_width?: number | undefined;
331
- obstacle_radius?: number | undefined;
332
- obstacle_limit?: number | undefined;
333
- } | undefined;
334
- target?: string | undefined;
335
- copy_by_locale?: Record<string, string> | undefined;
336
- only?: {
337
- locale?: string[] | undefined;
338
- viewport?: string[] | undefined;
339
- color_scheme?: ("light" | "dark")[] | undefined;
340
- } | undefined;
341
- skip?: {
342
- locale?: string[] | undefined;
343
- viewport?: string[] | undefined;
344
- color_scheme?: ("light" | "dark")[] | undefined;
345
- } | undefined;
346
- }, {
347
- copy: string;
348
- arrow?: "top-left" | "top-right" | "bottom-left" | "bottom-right" | "top" | "bottom" | "left" | "right" | undefined;
349
- nudge?: {
350
- x: number;
351
- y: number;
352
- } | undefined;
353
- placement?: {
354
- inside?: boolean | undefined;
355
- side?: "top" | "bottom" | "left" | "right" | undefined;
356
- align?: "start" | "center" | "end" | undefined;
357
- pin_arrow?: boolean | undefined;
358
- max_width?: number | undefined;
359
- obstacle_radius?: number | undefined;
360
- obstacle_limit?: number | undefined;
361
- } | undefined;
362
- target?: string | undefined;
363
- copy_by_locale?: Record<string, string> | undefined;
364
- only?: {
365
- locale?: string[] | undefined;
366
- viewport?: string[] | undefined;
367
- color_scheme?: ("light" | "dark")[] | undefined;
368
- } | undefined;
369
- skip?: {
370
- locale?: string[] | undefined;
371
- viewport?: string[] | undefined;
372
- color_scheme?: ("light" | "dark")[] | undefined;
373
- } | undefined;
374
- }>;
180
+ copy_by_locale: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
181
+ only: z.ZodOptional<z.ZodObject<{
182
+ viewport: z.ZodOptional<z.ZodArray<z.ZodString>>;
183
+ color_scheme: z.ZodOptional<z.ZodArray<z.ZodEnum<{
184
+ light: "light";
185
+ dark: "dark";
186
+ }>>>;
187
+ locale: z.ZodOptional<z.ZodArray<z.ZodString>>;
188
+ }, z.core.$strict>>;
189
+ skip: z.ZodOptional<z.ZodObject<{
190
+ viewport: z.ZodOptional<z.ZodArray<z.ZodString>>;
191
+ color_scheme: z.ZodOptional<z.ZodArray<z.ZodEnum<{
192
+ light: "light";
193
+ dark: "dark";
194
+ }>>>;
195
+ locale: z.ZodOptional<z.ZodArray<z.ZodString>>;
196
+ }, z.core.$strict>>;
197
+ }, z.core.$strict>;
375
198
  export type StepAnnotation = z.infer<typeof StepAnnotation>;
376
- export declare const Step: z.ZodEffects<z.ZodEffects<z.ZodObject<{
199
+ export declare const Step: z.ZodObject<{
377
200
  id: z.ZodString;
378
- action: z.ZodEnum<["navigate", "click", "fill", "upload", "press", "hover", "select", "check", "uncheck", "wait", "hide", "show"]>;
379
- /**
380
- * Best-effort step: if the action / `wait_for` / `success` check throws (target absent, wait timed
381
- * out, etc.), **skip this step and continue** instead of halting the flow. For conditionally-present
382
- * UI — a confirmation modal that sometimes appears, a first-run tooltip, a cookie banner. A skipped
383
- * optional step emits no screenshot / annotation (same as a step skipped by `--start-from`). Prefer
384
- * this over a permissive comma-selector that no-ops on one branch.
385
- */
201
+ action: z.ZodEnum<{
202
+ fill: "fill";
203
+ check: "check";
204
+ navigate: "navigate";
205
+ click: "click";
206
+ upload: "upload";
207
+ press: "press";
208
+ hover: "hover";
209
+ select: "select";
210
+ uncheck: "uncheck";
211
+ wait: "wait";
212
+ hide: "hide";
213
+ show: "show";
214
+ }>;
386
215
  optional: z.ZodOptional<z.ZodBoolean>;
387
- /**
388
- * How long, in ms, this step waits for its `target` before giving up (100–30000). Unset keeps the
389
- * driver default (Playwright's 30 s), so existing flows run exactly as before. The reason to set it
390
- * is an `optional: true` step whose target is usually absent: a short value (e.g. 1500) skips it fast
391
- * instead of holding the run for the full default. On a `wait` step it bounds the `wait_for`
392
- * `{ selector }` wait when that has no `timeout_ms` of its own. With `wait_for: settled` it is that wait's
393
- * whole budget (default 10 s), on any action. Rejected where it would bound nothing.
394
- */
395
216
  timeout_ms: z.ZodOptional<z.ZodNumber>;
396
- /** Locator ref (`$name`) or inline selector. Optional for actions like `navigate` (uses `value`), `wait`, and `show` (no target = show everything hidden). */
397
217
  target: z.ZodOptional<z.ZodString>;
398
- /** Action payload: text for `fill`, file path for `upload`, key for `press`, path/URL for `navigate`, option for `select`. */
399
218
  value: z.ZodOptional<z.ZodString>;
400
- wait_for: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["network_idle", "element_stable", "load", "settled"]>, z.ZodObject<{
401
- timeout_ms: z.ZodNumber;
402
- }, "strict", z.ZodTypeAny, {
403
- timeout_ms: number;
404
- }, {
405
- timeout_ms: number;
219
+ wait_for: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
220
+ network_idle: "network_idle";
221
+ element_stable: "element_stable";
222
+ load: "load";
223
+ settled: "settled";
406
224
  }>, z.ZodObject<{
225
+ timeout_ms: z.ZodNumber;
226
+ }, z.core.$strict>, z.ZodObject<{
407
227
  selector: z.ZodString;
408
228
  timeout_ms: z.ZodOptional<z.ZodNumber>;
409
- }, "strict", z.ZodTypeAny, {
410
- selector: string;
411
- timeout_ms?: number | undefined;
412
- }, {
413
- selector: string;
414
- timeout_ms?: number | undefined;
415
- }>]>>;
416
- success: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
229
+ }, z.core.$strict>]>>;
230
+ success: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
417
231
  visible: z.ZodString;
418
- }, "strict", z.ZodTypeAny, {
419
- visible: string;
420
- }, {
421
- visible: string;
422
- }>, z.ZodObject<{
232
+ }, z.core.$strict>, z.ZodObject<{
423
233
  hidden: z.ZodString;
424
- }, "strict", z.ZodTypeAny, {
425
- hidden: string;
426
- }, {
427
- hidden: string;
428
- }>, z.ZodObject<{
234
+ }, z.core.$strict>, z.ZodObject<{
429
235
  url_matches: z.ZodString;
430
- }, "strict", z.ZodTypeAny, {
431
- url_matches: string;
432
- }, {
433
- url_matches: string;
434
- }>, z.ZodObject<{
236
+ }, z.core.$strict>, z.ZodObject<{
435
237
  text_contains: z.ZodObject<{
436
238
  selector: z.ZodString;
437
239
  text: z.ZodString;
438
- }, "strict", z.ZodTypeAny, {
439
- selector: string;
440
- text: string;
441
- }, {
442
- selector: string;
443
- text: string;
444
- }>;
445
- }, "strict", z.ZodTypeAny, {
446
- text_contains: {
447
- selector: string;
448
- text: string;
449
- };
450
- }, {
451
- text_contains: {
452
- selector: string;
453
- text: string;
454
- };
455
- }>]>>;
456
- /** Single call-out on this step's screenshot. Shorthand for a one-element `annotations` array. */
240
+ }, z.core.$strict>;
241
+ }, z.core.$strict>]>>;
457
242
  annotation: z.ZodOptional<z.ZodObject<{
458
243
  copy: z.ZodString;
459
- arrow: z.ZodOptional<z.ZodEnum<["top-left", "top-right", "bottom-left", "bottom-right", "top", "bottom", "left", "right"]>>;
460
- /**
461
- * Optional pixel offset applied to the callout + arrow after Popper-like placement. The halo (which
462
- * highlights the target element) stays on the target. Use this when two annotations on the same
463
- * screenshot would otherwise overlap each other — nudge one aside so both are readable.
464
- * Image-space pixels; small values (5–40 px in either direction) typically suffice.
465
- */
244
+ arrow: z.ZodOptional<z.ZodEnum<{
245
+ "top-left": "top-left";
246
+ "top-right": "top-right";
247
+ "bottom-left": "bottom-left";
248
+ "bottom-right": "bottom-right";
249
+ top: "top";
250
+ bottom: "bottom";
251
+ left: "left";
252
+ right: "right";
253
+ }>>;
466
254
  nudge: z.ZodOptional<z.ZodObject<{
467
255
  x: z.ZodNumber;
468
256
  y: z.ZodNumber;
469
- }, "strict", z.ZodTypeAny, {
470
- x: number;
471
- y: number;
472
- }, {
473
- x: number;
474
- y: number;
475
- }>>;
476
- /** Optional burner placement settings — see {@link AnnotationPlacement}. Copied onto the annotation record. */
257
+ }, z.core.$strict>>;
477
258
  placement: z.ZodOptional<z.ZodObject<{
478
- /** Put the callout inside the target when the target is big enough to hold it (no arrow). */
479
259
  inside: z.ZodOptional<z.ZodBoolean>;
480
- /** Only try this side of the target (falls back to the usual order when nothing fits there). */
481
- side: z.ZodOptional<z.ZodEnum<["top", "bottom", "left", "right"]>>;
482
- /** Where along the target's edge the callout sits: flush with its start, centred, or flush with its end. */
483
- align: z.ZodOptional<z.ZodEnum<["start", "center", "end"]>>;
484
- /** `nudge` moves only the callout: the arrow stays on the target and a stem joins the two. */
260
+ side: z.ZodOptional<z.ZodEnum<{
261
+ top: "top";
262
+ bottom: "bottom";
263
+ left: "left";
264
+ right: "right";
265
+ }>>;
266
+ align: z.ZodOptional<z.ZodEnum<{
267
+ start: "start";
268
+ center: "center";
269
+ end: "end";
270
+ }>>;
485
271
  pin_arrow: z.ZodOptional<z.ZodBoolean>;
486
- /** Widest outer callout box in px (default 280, narrower on small screenshots with obstacles). */
487
272
  max_width: z.ZodOptional<z.ZodNumber>;
488
- /** CSS px around the target the obstacle scan covers (default 320). Read by `docsxai run`. */
489
273
  obstacle_radius: z.ZodOptional<z.ZodNumber>;
490
- /** Most obstacles recorded for this annotation (default {@link MAX_OBSTACLES}). Read by `docsxai run`. */
491
274
  obstacle_limit: z.ZodOptional<z.ZodNumber>;
492
- }, "strict", z.ZodTypeAny, {
493
- inside?: boolean | undefined;
494
- side?: "top" | "bottom" | "left" | "right" | undefined;
495
- align?: "start" | "center" | "end" | undefined;
496
- pin_arrow?: boolean | undefined;
497
- max_width?: number | undefined;
498
- obstacle_radius?: number | undefined;
499
- obstacle_limit?: number | undefined;
500
- }, {
501
- inside?: boolean | undefined;
502
- side?: "top" | "bottom" | "left" | "right" | undefined;
503
- align?: "start" | "center" | "end" | undefined;
504
- pin_arrow?: boolean | undefined;
505
- max_width?: number | undefined;
506
- obstacle_radius?: number | undefined;
507
- obstacle_limit?: number | undefined;
508
- }>>;
509
- /**
510
- * Optional override: the locator to anchor the halo/arrow to. Default = the step's `target`. Use this on
511
- * a step whose action *transitions the UI* — the action target vanishes (gets unmounted / replaced) and
512
- * a *different* element is what you want to highlight in the resulting state. Point this at the
513
- * surviving / appearing element.
514
- */
275
+ }, z.core.$strict>>;
515
276
  target: z.ZodOptional<z.ZodString>;
516
- /**
517
- * Call-out text per locale, keyed by BCP-47 tag (`es`, `fr-CA`). `copy` stays required and is the
518
- * fallback. A variant takes its locale's entry (exact tag, then the language subtag), else `copy`.
519
- * The variant locale is the matrix locale, or `environment.locale` when the flow has no matrix locales.
520
- */
521
- copy_by_locale: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>>;
522
- /** Variants this call-out is kept for. Needs a `matrix`; see {@link VariantSelector}. */
523
- only: z.ZodOptional<z.ZodEffects<z.ZodObject<{
524
- viewport: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
525
- color_scheme: z.ZodOptional<z.ZodArray<z.ZodEnum<["light", "dark"]>, "many">>;
526
- locale: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
527
- }, "strict", z.ZodTypeAny, {
528
- locale?: string[] | undefined;
529
- viewport?: string[] | undefined;
530
- color_scheme?: ("light" | "dark")[] | undefined;
531
- }, {
532
- locale?: string[] | undefined;
533
- viewport?: string[] | undefined;
534
- color_scheme?: ("light" | "dark")[] | undefined;
535
- }>, {
536
- locale?: string[] | undefined;
537
- viewport?: string[] | undefined;
538
- color_scheme?: ("light" | "dark")[] | undefined;
539
- }, {
540
- locale?: string[] | undefined;
541
- viewport?: string[] | undefined;
542
- color_scheme?: ("light" | "dark")[] | undefined;
543
- }>>;
544
- /** Variants this call-out is dropped from. Needs a `matrix`; see {@link VariantSelector}. */
545
- skip: z.ZodOptional<z.ZodEffects<z.ZodObject<{
546
- viewport: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
547
- color_scheme: z.ZodOptional<z.ZodArray<z.ZodEnum<["light", "dark"]>, "many">>;
548
- locale: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
549
- }, "strict", z.ZodTypeAny, {
550
- locale?: string[] | undefined;
551
- viewport?: string[] | undefined;
552
- color_scheme?: ("light" | "dark")[] | undefined;
553
- }, {
554
- locale?: string[] | undefined;
555
- viewport?: string[] | undefined;
556
- color_scheme?: ("light" | "dark")[] | undefined;
557
- }>, {
558
- locale?: string[] | undefined;
559
- viewport?: string[] | undefined;
560
- color_scheme?: ("light" | "dark")[] | undefined;
561
- }, {
562
- locale?: string[] | undefined;
563
- viewport?: string[] | undefined;
564
- color_scheme?: ("light" | "dark")[] | undefined;
565
- }>>;
566
- }, "strict", z.ZodTypeAny, {
567
- copy: string;
568
- arrow?: "top-left" | "top-right" | "bottom-left" | "bottom-right" | "top" | "bottom" | "left" | "right" | undefined;
569
- nudge?: {
570
- x: number;
571
- y: number;
572
- } | undefined;
573
- placement?: {
574
- inside?: boolean | undefined;
575
- side?: "top" | "bottom" | "left" | "right" | undefined;
576
- align?: "start" | "center" | "end" | undefined;
577
- pin_arrow?: boolean | undefined;
578
- max_width?: number | undefined;
579
- obstacle_radius?: number | undefined;
580
- obstacle_limit?: number | undefined;
581
- } | undefined;
582
- target?: string | undefined;
583
- copy_by_locale?: Record<string, string> | undefined;
584
- only?: {
585
- locale?: string[] | undefined;
586
- viewport?: string[] | undefined;
587
- color_scheme?: ("light" | "dark")[] | undefined;
588
- } | undefined;
589
- skip?: {
590
- locale?: string[] | undefined;
591
- viewport?: string[] | undefined;
592
- color_scheme?: ("light" | "dark")[] | undefined;
593
- } | undefined;
594
- }, {
595
- copy: string;
596
- arrow?: "top-left" | "top-right" | "bottom-left" | "bottom-right" | "top" | "bottom" | "left" | "right" | undefined;
597
- nudge?: {
598
- x: number;
599
- y: number;
600
- } | undefined;
601
- placement?: {
602
- inside?: boolean | undefined;
603
- side?: "top" | "bottom" | "left" | "right" | undefined;
604
- align?: "start" | "center" | "end" | undefined;
605
- pin_arrow?: boolean | undefined;
606
- max_width?: number | undefined;
607
- obstacle_radius?: number | undefined;
608
- obstacle_limit?: number | undefined;
609
- } | undefined;
610
- target?: string | undefined;
611
- copy_by_locale?: Record<string, string> | undefined;
612
- only?: {
613
- locale?: string[] | undefined;
614
- viewport?: string[] | undefined;
615
- color_scheme?: ("light" | "dark")[] | undefined;
616
- } | undefined;
617
- skip?: {
618
- locale?: string[] | undefined;
619
- viewport?: string[] | undefined;
620
- color_scheme?: ("light" | "dark")[] | undefined;
621
- } | undefined;
622
- }>>;
623
- /**
624
- * Multiple call-outs on the same screenshot — rendered as numbered badges (1, 2, …) so the reader sees
625
- * up front that there's more than one thing to look at without having to hover everything. Each entry
626
- * has its own `target` (defaults to the step's `target`) and `copy` / `arrow` — see {@link StepAnnotation}.
627
- * Mutually exclusive with `annotation`.
628
- */
277
+ copy_by_locale: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
278
+ only: z.ZodOptional<z.ZodObject<{
279
+ viewport: z.ZodOptional<z.ZodArray<z.ZodString>>;
280
+ color_scheme: z.ZodOptional<z.ZodArray<z.ZodEnum<{
281
+ light: "light";
282
+ dark: "dark";
283
+ }>>>;
284
+ locale: z.ZodOptional<z.ZodArray<z.ZodString>>;
285
+ }, z.core.$strict>>;
286
+ skip: z.ZodOptional<z.ZodObject<{
287
+ viewport: z.ZodOptional<z.ZodArray<z.ZodString>>;
288
+ color_scheme: z.ZodOptional<z.ZodArray<z.ZodEnum<{
289
+ light: "light";
290
+ dark: "dark";
291
+ }>>>;
292
+ locale: z.ZodOptional<z.ZodArray<z.ZodString>>;
293
+ }, z.core.$strict>>;
294
+ }, z.core.$strict>>;
629
295
  annotations: z.ZodOptional<z.ZodArray<z.ZodObject<{
630
296
  copy: z.ZodString;
631
- arrow: z.ZodOptional<z.ZodEnum<["top-left", "top-right", "bottom-left", "bottom-right", "top", "bottom", "left", "right"]>>;
632
- /**
633
- * Optional pixel offset applied to the callout + arrow after Popper-like placement. The halo (which
634
- * highlights the target element) stays on the target. Use this when two annotations on the same
635
- * screenshot would otherwise overlap each other — nudge one aside so both are readable.
636
- * Image-space pixels; small values (5–40 px in either direction) typically suffice.
637
- */
297
+ arrow: z.ZodOptional<z.ZodEnum<{
298
+ "top-left": "top-left";
299
+ "top-right": "top-right";
300
+ "bottom-left": "bottom-left";
301
+ "bottom-right": "bottom-right";
302
+ top: "top";
303
+ bottom: "bottom";
304
+ left: "left";
305
+ right: "right";
306
+ }>>;
638
307
  nudge: z.ZodOptional<z.ZodObject<{
639
308
  x: z.ZodNumber;
640
309
  y: z.ZodNumber;
641
- }, "strict", z.ZodTypeAny, {
642
- x: number;
643
- y: number;
644
- }, {
645
- x: number;
646
- y: number;
647
- }>>;
648
- /** Optional burner placement settings — see {@link AnnotationPlacement}. Copied onto the annotation record. */
310
+ }, z.core.$strict>>;
649
311
  placement: z.ZodOptional<z.ZodObject<{
650
- /** Put the callout inside the target when the target is big enough to hold it (no arrow). */
651
312
  inside: z.ZodOptional<z.ZodBoolean>;
652
- /** Only try this side of the target (falls back to the usual order when nothing fits there). */
653
- side: z.ZodOptional<z.ZodEnum<["top", "bottom", "left", "right"]>>;
654
- /** Where along the target's edge the callout sits: flush with its start, centred, or flush with its end. */
655
- align: z.ZodOptional<z.ZodEnum<["start", "center", "end"]>>;
656
- /** `nudge` moves only the callout: the arrow stays on the target and a stem joins the two. */
313
+ side: z.ZodOptional<z.ZodEnum<{
314
+ top: "top";
315
+ bottom: "bottom";
316
+ left: "left";
317
+ right: "right";
318
+ }>>;
319
+ align: z.ZodOptional<z.ZodEnum<{
320
+ start: "start";
321
+ center: "center";
322
+ end: "end";
323
+ }>>;
657
324
  pin_arrow: z.ZodOptional<z.ZodBoolean>;
658
- /** Widest outer callout box in px (default 280, narrower on small screenshots with obstacles). */
659
325
  max_width: z.ZodOptional<z.ZodNumber>;
660
- /** CSS px around the target the obstacle scan covers (default 320). Read by `docsxai run`. */
661
326
  obstacle_radius: z.ZodOptional<z.ZodNumber>;
662
- /** Most obstacles recorded for this annotation (default {@link MAX_OBSTACLES}). Read by `docsxai run`. */
663
327
  obstacle_limit: z.ZodOptional<z.ZodNumber>;
664
- }, "strict", z.ZodTypeAny, {
665
- inside?: boolean | undefined;
666
- side?: "top" | "bottom" | "left" | "right" | undefined;
667
- align?: "start" | "center" | "end" | undefined;
668
- pin_arrow?: boolean | undefined;
669
- max_width?: number | undefined;
670
- obstacle_radius?: number | undefined;
671
- obstacle_limit?: number | undefined;
672
- }, {
673
- inside?: boolean | undefined;
674
- side?: "top" | "bottom" | "left" | "right" | undefined;
675
- align?: "start" | "center" | "end" | undefined;
676
- pin_arrow?: boolean | undefined;
677
- max_width?: number | undefined;
678
- obstacle_radius?: number | undefined;
679
- obstacle_limit?: number | undefined;
680
- }>>;
681
- /**
682
- * Optional override: the locator to anchor the halo/arrow to. Default = the step's `target`. Use this on
683
- * a step whose action *transitions the UI* — the action target vanishes (gets unmounted / replaced) and
684
- * a *different* element is what you want to highlight in the resulting state. Point this at the
685
- * surviving / appearing element.
686
- */
328
+ }, z.core.$strict>>;
687
329
  target: z.ZodOptional<z.ZodString>;
688
- /**
689
- * Call-out text per locale, keyed by BCP-47 tag (`es`, `fr-CA`). `copy` stays required and is the
690
- * fallback. A variant takes its locale's entry (exact tag, then the language subtag), else `copy`.
691
- * The variant locale is the matrix locale, or `environment.locale` when the flow has no matrix locales.
692
- */
693
- copy_by_locale: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>>;
694
- /** Variants this call-out is kept for. Needs a `matrix`; see {@link VariantSelector}. */
695
- only: z.ZodOptional<z.ZodEffects<z.ZodObject<{
696
- viewport: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
697
- color_scheme: z.ZodOptional<z.ZodArray<z.ZodEnum<["light", "dark"]>, "many">>;
698
- locale: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
699
- }, "strict", z.ZodTypeAny, {
700
- locale?: string[] | undefined;
701
- viewport?: string[] | undefined;
702
- color_scheme?: ("light" | "dark")[] | undefined;
703
- }, {
704
- locale?: string[] | undefined;
705
- viewport?: string[] | undefined;
706
- color_scheme?: ("light" | "dark")[] | undefined;
707
- }>, {
708
- locale?: string[] | undefined;
709
- viewport?: string[] | undefined;
710
- color_scheme?: ("light" | "dark")[] | undefined;
711
- }, {
712
- locale?: string[] | undefined;
713
- viewport?: string[] | undefined;
714
- color_scheme?: ("light" | "dark")[] | undefined;
715
- }>>;
716
- /** Variants this call-out is dropped from. Needs a `matrix`; see {@link VariantSelector}. */
717
- skip: z.ZodOptional<z.ZodEffects<z.ZodObject<{
718
- viewport: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
719
- color_scheme: z.ZodOptional<z.ZodArray<z.ZodEnum<["light", "dark"]>, "many">>;
720
- locale: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
721
- }, "strict", z.ZodTypeAny, {
722
- locale?: string[] | undefined;
723
- viewport?: string[] | undefined;
724
- color_scheme?: ("light" | "dark")[] | undefined;
725
- }, {
726
- locale?: string[] | undefined;
727
- viewport?: string[] | undefined;
728
- color_scheme?: ("light" | "dark")[] | undefined;
729
- }>, {
730
- locale?: string[] | undefined;
731
- viewport?: string[] | undefined;
732
- color_scheme?: ("light" | "dark")[] | undefined;
733
- }, {
734
- locale?: string[] | undefined;
735
- viewport?: string[] | undefined;
736
- color_scheme?: ("light" | "dark")[] | undefined;
737
- }>>;
738
- }, "strict", z.ZodTypeAny, {
739
- copy: string;
740
- arrow?: "top-left" | "top-right" | "bottom-left" | "bottom-right" | "top" | "bottom" | "left" | "right" | undefined;
741
- nudge?: {
742
- x: number;
743
- y: number;
744
- } | undefined;
745
- placement?: {
746
- inside?: boolean | undefined;
747
- side?: "top" | "bottom" | "left" | "right" | undefined;
748
- align?: "start" | "center" | "end" | undefined;
749
- pin_arrow?: boolean | undefined;
750
- max_width?: number | undefined;
751
- obstacle_radius?: number | undefined;
752
- obstacle_limit?: number | undefined;
753
- } | undefined;
754
- target?: string | undefined;
755
- copy_by_locale?: Record<string, string> | undefined;
756
- only?: {
757
- locale?: string[] | undefined;
758
- viewport?: string[] | undefined;
759
- color_scheme?: ("light" | "dark")[] | undefined;
760
- } | undefined;
761
- skip?: {
762
- locale?: string[] | undefined;
763
- viewport?: string[] | undefined;
764
- color_scheme?: ("light" | "dark")[] | undefined;
765
- } | undefined;
766
- }, {
767
- copy: string;
768
- arrow?: "top-left" | "top-right" | "bottom-left" | "bottom-right" | "top" | "bottom" | "left" | "right" | undefined;
769
- nudge?: {
770
- x: number;
771
- y: number;
772
- } | undefined;
773
- placement?: {
774
- inside?: boolean | undefined;
775
- side?: "top" | "bottom" | "left" | "right" | undefined;
776
- align?: "start" | "center" | "end" | undefined;
777
- pin_arrow?: boolean | undefined;
778
- max_width?: number | undefined;
779
- obstacle_radius?: number | undefined;
780
- obstacle_limit?: number | undefined;
781
- } | undefined;
782
- target?: string | undefined;
783
- copy_by_locale?: Record<string, string> | undefined;
784
- only?: {
785
- locale?: string[] | undefined;
786
- viewport?: string[] | undefined;
787
- color_scheme?: ("light" | "dark")[] | undefined;
788
- } | undefined;
789
- skip?: {
790
- locale?: string[] | undefined;
791
- viewport?: string[] | undefined;
792
- color_scheme?: ("light" | "dark")[] | undefined;
793
- } | undefined;
794
- }>, "many">>;
795
- /** Extra redactions for this step's screenshots, additive on top of the flow-level list. */
796
- redactions: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
330
+ copy_by_locale: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
331
+ only: z.ZodOptional<z.ZodObject<{
332
+ viewport: z.ZodOptional<z.ZodArray<z.ZodString>>;
333
+ color_scheme: z.ZodOptional<z.ZodArray<z.ZodEnum<{
334
+ light: "light";
335
+ dark: "dark";
336
+ }>>>;
337
+ locale: z.ZodOptional<z.ZodArray<z.ZodString>>;
338
+ }, z.core.$strict>>;
339
+ skip: z.ZodOptional<z.ZodObject<{
340
+ viewport: z.ZodOptional<z.ZodArray<z.ZodString>>;
341
+ color_scheme: z.ZodOptional<z.ZodArray<z.ZodEnum<{
342
+ light: "light";
343
+ dark: "dark";
344
+ }>>>;
345
+ locale: z.ZodOptional<z.ZodArray<z.ZodString>>;
346
+ }, z.core.$strict>>;
347
+ }, z.core.$strict>>>;
348
+ redactions: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
797
349
  selector: z.ZodString;
798
- style: z.ZodOptional<z.ZodEnum<["box", "pixelate"]>>;
799
- }, "strict", z.ZodTypeAny, {
800
- selector: string;
801
- style?: "box" | "pixelate" | undefined;
802
- }, {
803
- selector: string;
804
- style?: "box" | "pixelate" | undefined;
805
- }>, z.ZodObject<{
350
+ style: z.ZodOptional<z.ZodEnum<{
351
+ box: "box";
352
+ pixelate: "pixelate";
353
+ }>>;
354
+ }, z.core.$strict>, z.ZodObject<{
806
355
  region: z.ZodObject<{
807
356
  x: z.ZodNumber;
808
357
  y: z.ZodNumber;
809
358
  width: z.ZodNumber;
810
359
  height: z.ZodNumber;
811
- }, "strict", z.ZodTypeAny, {
812
- width: number;
813
- height: number;
814
- x: number;
815
- y: number;
816
- }, {
817
- width: number;
818
- height: number;
819
- x: number;
820
- y: number;
821
- }>;
822
- style: z.ZodOptional<z.ZodEnum<["box", "pixelate"]>>;
823
- }, "strict", z.ZodTypeAny, {
824
- region: {
825
- width: number;
826
- height: number;
827
- x: number;
828
- y: number;
829
- };
830
- style?: "box" | "pixelate" | undefined;
831
- }, {
832
- region: {
833
- width: number;
834
- height: number;
835
- x: number;
836
- y: number;
837
- };
838
- style?: "box" | "pixelate" | undefined;
839
- }>]>, "many">>;
840
- /** Variants this step runs for (the others skip it). Needs a `matrix`; see {@link VariantSelector}. */
841
- only: z.ZodOptional<z.ZodEffects<z.ZodObject<{
842
- viewport: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
843
- color_scheme: z.ZodOptional<z.ZodArray<z.ZodEnum<["light", "dark"]>, "many">>;
844
- locale: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
845
- }, "strict", z.ZodTypeAny, {
846
- locale?: string[] | undefined;
847
- viewport?: string[] | undefined;
848
- color_scheme?: ("light" | "dark")[] | undefined;
849
- }, {
850
- locale?: string[] | undefined;
851
- viewport?: string[] | undefined;
852
- color_scheme?: ("light" | "dark")[] | undefined;
853
- }>, {
854
- locale?: string[] | undefined;
855
- viewport?: string[] | undefined;
856
- color_scheme?: ("light" | "dark")[] | undefined;
857
- }, {
858
- locale?: string[] | undefined;
859
- viewport?: string[] | undefined;
860
- color_scheme?: ("light" | "dark")[] | undefined;
861
- }>>;
862
- /** Variants this step is dropped from. Needs a `matrix`; see {@link VariantSelector}. */
863
- skip: z.ZodOptional<z.ZodEffects<z.ZodObject<{
864
- viewport: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
865
- color_scheme: z.ZodOptional<z.ZodArray<z.ZodEnum<["light", "dark"]>, "many">>;
866
- locale: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
867
- }, "strict", z.ZodTypeAny, {
868
- locale?: string[] | undefined;
869
- viewport?: string[] | undefined;
870
- color_scheme?: ("light" | "dark")[] | undefined;
871
- }, {
872
- locale?: string[] | undefined;
873
- viewport?: string[] | undefined;
874
- color_scheme?: ("light" | "dark")[] | undefined;
875
- }>, {
876
- locale?: string[] | undefined;
877
- viewport?: string[] | undefined;
878
- color_scheme?: ("light" | "dark")[] | undefined;
879
- }, {
880
- locale?: string[] | undefined;
881
- viewport?: string[] | undefined;
882
- color_scheme?: ("light" | "dark")[] | undefined;
883
- }>>;
884
- }, "strict", z.ZodTypeAny, {
885
- id: string;
886
- action: "fill" | "navigate" | "click" | "upload" | "press" | "hover" | "select" | "check" | "uncheck" | "wait" | "hide" | "show";
887
- value?: string | undefined;
888
- timeout_ms?: number | undefined;
889
- target?: string | undefined;
890
- only?: {
891
- locale?: string[] | undefined;
892
- viewport?: string[] | undefined;
893
- color_scheme?: ("light" | "dark")[] | undefined;
894
- } | undefined;
895
- skip?: {
896
- locale?: string[] | undefined;
897
- viewport?: string[] | undefined;
898
- color_scheme?: ("light" | "dark")[] | undefined;
899
- } | undefined;
900
- optional?: boolean | undefined;
901
- wait_for?: "network_idle" | "element_stable" | "load" | "settled" | {
902
- timeout_ms: number;
903
- } | {
904
- selector: string;
905
- timeout_ms?: number | undefined;
906
- } | undefined;
907
- success?: {
908
- visible: string;
909
- } | {
910
- hidden: string;
911
- } | {
912
- url_matches: string;
913
- } | {
914
- text_contains: {
915
- selector: string;
916
- text: string;
917
- };
918
- } | undefined;
919
- annotation?: {
920
- copy: string;
921
- arrow?: "top-left" | "top-right" | "bottom-left" | "bottom-right" | "top" | "bottom" | "left" | "right" | undefined;
922
- nudge?: {
923
- x: number;
924
- y: number;
925
- } | undefined;
926
- placement?: {
927
- inside?: boolean | undefined;
928
- side?: "top" | "bottom" | "left" | "right" | undefined;
929
- align?: "start" | "center" | "end" | undefined;
930
- pin_arrow?: boolean | undefined;
931
- max_width?: number | undefined;
932
- obstacle_radius?: number | undefined;
933
- obstacle_limit?: number | undefined;
934
- } | undefined;
935
- target?: string | undefined;
936
- copy_by_locale?: Record<string, string> | undefined;
937
- only?: {
938
- locale?: string[] | undefined;
939
- viewport?: string[] | undefined;
940
- color_scheme?: ("light" | "dark")[] | undefined;
941
- } | undefined;
942
- skip?: {
943
- locale?: string[] | undefined;
944
- viewport?: string[] | undefined;
945
- color_scheme?: ("light" | "dark")[] | undefined;
946
- } | undefined;
947
- } | undefined;
948
- annotations?: {
949
- copy: string;
950
- arrow?: "top-left" | "top-right" | "bottom-left" | "bottom-right" | "top" | "bottom" | "left" | "right" | undefined;
951
- nudge?: {
952
- x: number;
953
- y: number;
954
- } | undefined;
955
- placement?: {
956
- inside?: boolean | undefined;
957
- side?: "top" | "bottom" | "left" | "right" | undefined;
958
- align?: "start" | "center" | "end" | undefined;
959
- pin_arrow?: boolean | undefined;
960
- max_width?: number | undefined;
961
- obstacle_radius?: number | undefined;
962
- obstacle_limit?: number | undefined;
963
- } | undefined;
964
- target?: string | undefined;
965
- copy_by_locale?: Record<string, string> | undefined;
966
- only?: {
967
- locale?: string[] | undefined;
968
- viewport?: string[] | undefined;
969
- color_scheme?: ("light" | "dark")[] | undefined;
970
- } | undefined;
971
- skip?: {
972
- locale?: string[] | undefined;
973
- viewport?: string[] | undefined;
974
- color_scheme?: ("light" | "dark")[] | undefined;
975
- } | undefined;
976
- }[] | undefined;
977
- redactions?: ({
978
- selector: string;
979
- style?: "box" | "pixelate" | undefined;
980
- } | {
981
- region: {
982
- width: number;
983
- height: number;
984
- x: number;
985
- y: number;
986
- };
987
- style?: "box" | "pixelate" | undefined;
988
- })[] | undefined;
989
- }, {
990
- id: string;
991
- action: "fill" | "navigate" | "click" | "upload" | "press" | "hover" | "select" | "check" | "uncheck" | "wait" | "hide" | "show";
992
- value?: string | undefined;
993
- timeout_ms?: number | undefined;
994
- target?: string | undefined;
995
- only?: {
996
- locale?: string[] | undefined;
997
- viewport?: string[] | undefined;
998
- color_scheme?: ("light" | "dark")[] | undefined;
999
- } | undefined;
1000
- skip?: {
1001
- locale?: string[] | undefined;
1002
- viewport?: string[] | undefined;
1003
- color_scheme?: ("light" | "dark")[] | undefined;
1004
- } | undefined;
1005
- optional?: boolean | undefined;
1006
- wait_for?: "network_idle" | "element_stable" | "load" | "settled" | {
1007
- timeout_ms: number;
1008
- } | {
1009
- selector: string;
1010
- timeout_ms?: number | undefined;
1011
- } | undefined;
1012
- success?: {
1013
- visible: string;
1014
- } | {
1015
- hidden: string;
1016
- } | {
1017
- url_matches: string;
1018
- } | {
1019
- text_contains: {
1020
- selector: string;
1021
- text: string;
1022
- };
1023
- } | undefined;
1024
- annotation?: {
1025
- copy: string;
1026
- arrow?: "top-left" | "top-right" | "bottom-left" | "bottom-right" | "top" | "bottom" | "left" | "right" | undefined;
1027
- nudge?: {
1028
- x: number;
1029
- y: number;
1030
- } | undefined;
1031
- placement?: {
1032
- inside?: boolean | undefined;
1033
- side?: "top" | "bottom" | "left" | "right" | undefined;
1034
- align?: "start" | "center" | "end" | undefined;
1035
- pin_arrow?: boolean | undefined;
1036
- max_width?: number | undefined;
1037
- obstacle_radius?: number | undefined;
1038
- obstacle_limit?: number | undefined;
1039
- } | undefined;
1040
- target?: string | undefined;
1041
- copy_by_locale?: Record<string, string> | undefined;
1042
- only?: {
1043
- locale?: string[] | undefined;
1044
- viewport?: string[] | undefined;
1045
- color_scheme?: ("light" | "dark")[] | undefined;
1046
- } | undefined;
1047
- skip?: {
1048
- locale?: string[] | undefined;
1049
- viewport?: string[] | undefined;
1050
- color_scheme?: ("light" | "dark")[] | undefined;
1051
- } | undefined;
1052
- } | undefined;
1053
- annotations?: {
1054
- copy: string;
1055
- arrow?: "top-left" | "top-right" | "bottom-left" | "bottom-right" | "top" | "bottom" | "left" | "right" | undefined;
1056
- nudge?: {
1057
- x: number;
1058
- y: number;
1059
- } | undefined;
1060
- placement?: {
1061
- inside?: boolean | undefined;
1062
- side?: "top" | "bottom" | "left" | "right" | undefined;
1063
- align?: "start" | "center" | "end" | undefined;
1064
- pin_arrow?: boolean | undefined;
1065
- max_width?: number | undefined;
1066
- obstacle_radius?: number | undefined;
1067
- obstacle_limit?: number | undefined;
1068
- } | undefined;
1069
- target?: string | undefined;
1070
- copy_by_locale?: Record<string, string> | undefined;
1071
- only?: {
1072
- locale?: string[] | undefined;
1073
- viewport?: string[] | undefined;
1074
- color_scheme?: ("light" | "dark")[] | undefined;
1075
- } | undefined;
1076
- skip?: {
1077
- locale?: string[] | undefined;
1078
- viewport?: string[] | undefined;
1079
- color_scheme?: ("light" | "dark")[] | undefined;
1080
- } | undefined;
1081
- }[] | undefined;
1082
- redactions?: ({
1083
- selector: string;
1084
- style?: "box" | "pixelate" | undefined;
1085
- } | {
1086
- region: {
1087
- width: number;
1088
- height: number;
1089
- x: number;
1090
- y: number;
1091
- };
1092
- style?: "box" | "pixelate" | undefined;
1093
- })[] | undefined;
1094
- }>, {
1095
- id: string;
1096
- action: "fill" | "navigate" | "click" | "upload" | "press" | "hover" | "select" | "check" | "uncheck" | "wait" | "hide" | "show";
1097
- value?: string | undefined;
1098
- timeout_ms?: number | undefined;
1099
- target?: string | undefined;
1100
- only?: {
1101
- locale?: string[] | undefined;
1102
- viewport?: string[] | undefined;
1103
- color_scheme?: ("light" | "dark")[] | undefined;
1104
- } | undefined;
1105
- skip?: {
1106
- locale?: string[] | undefined;
1107
- viewport?: string[] | undefined;
1108
- color_scheme?: ("light" | "dark")[] | undefined;
1109
- } | undefined;
1110
- optional?: boolean | undefined;
1111
- wait_for?: "network_idle" | "element_stable" | "load" | "settled" | {
1112
- timeout_ms: number;
1113
- } | {
1114
- selector: string;
1115
- timeout_ms?: number | undefined;
1116
- } | undefined;
1117
- success?: {
1118
- visible: string;
1119
- } | {
1120
- hidden: string;
1121
- } | {
1122
- url_matches: string;
1123
- } | {
1124
- text_contains: {
1125
- selector: string;
1126
- text: string;
1127
- };
1128
- } | undefined;
1129
- annotation?: {
1130
- copy: string;
1131
- arrow?: "top-left" | "top-right" | "bottom-left" | "bottom-right" | "top" | "bottom" | "left" | "right" | undefined;
1132
- nudge?: {
1133
- x: number;
1134
- y: number;
1135
- } | undefined;
1136
- placement?: {
1137
- inside?: boolean | undefined;
1138
- side?: "top" | "bottom" | "left" | "right" | undefined;
1139
- align?: "start" | "center" | "end" | undefined;
1140
- pin_arrow?: boolean | undefined;
1141
- max_width?: number | undefined;
1142
- obstacle_radius?: number | undefined;
1143
- obstacle_limit?: number | undefined;
1144
- } | undefined;
1145
- target?: string | undefined;
1146
- copy_by_locale?: Record<string, string> | undefined;
1147
- only?: {
1148
- locale?: string[] | undefined;
1149
- viewport?: string[] | undefined;
1150
- color_scheme?: ("light" | "dark")[] | undefined;
1151
- } | undefined;
1152
- skip?: {
1153
- locale?: string[] | undefined;
1154
- viewport?: string[] | undefined;
1155
- color_scheme?: ("light" | "dark")[] | undefined;
1156
- } | undefined;
1157
- } | undefined;
1158
- annotations?: {
1159
- copy: string;
1160
- arrow?: "top-left" | "top-right" | "bottom-left" | "bottom-right" | "top" | "bottom" | "left" | "right" | undefined;
1161
- nudge?: {
1162
- x: number;
1163
- y: number;
1164
- } | undefined;
1165
- placement?: {
1166
- inside?: boolean | undefined;
1167
- side?: "top" | "bottom" | "left" | "right" | undefined;
1168
- align?: "start" | "center" | "end" | undefined;
1169
- pin_arrow?: boolean | undefined;
1170
- max_width?: number | undefined;
1171
- obstacle_radius?: number | undefined;
1172
- obstacle_limit?: number | undefined;
1173
- } | undefined;
1174
- target?: string | undefined;
1175
- copy_by_locale?: Record<string, string> | undefined;
1176
- only?: {
1177
- locale?: string[] | undefined;
1178
- viewport?: string[] | undefined;
1179
- color_scheme?: ("light" | "dark")[] | undefined;
1180
- } | undefined;
1181
- skip?: {
1182
- locale?: string[] | undefined;
1183
- viewport?: string[] | undefined;
1184
- color_scheme?: ("light" | "dark")[] | undefined;
1185
- } | undefined;
1186
- }[] | undefined;
1187
- redactions?: ({
1188
- selector: string;
1189
- style?: "box" | "pixelate" | undefined;
1190
- } | {
1191
- region: {
1192
- width: number;
1193
- height: number;
1194
- x: number;
1195
- y: number;
1196
- };
1197
- style?: "box" | "pixelate" | undefined;
1198
- })[] | undefined;
1199
- }, {
1200
- id: string;
1201
- action: "fill" | "navigate" | "click" | "upload" | "press" | "hover" | "select" | "check" | "uncheck" | "wait" | "hide" | "show";
1202
- value?: string | undefined;
1203
- timeout_ms?: number | undefined;
1204
- target?: string | undefined;
1205
- only?: {
1206
- locale?: string[] | undefined;
1207
- viewport?: string[] | undefined;
1208
- color_scheme?: ("light" | "dark")[] | undefined;
1209
- } | undefined;
1210
- skip?: {
1211
- locale?: string[] | undefined;
1212
- viewport?: string[] | undefined;
1213
- color_scheme?: ("light" | "dark")[] | undefined;
1214
- } | undefined;
1215
- optional?: boolean | undefined;
1216
- wait_for?: "network_idle" | "element_stable" | "load" | "settled" | {
1217
- timeout_ms: number;
1218
- } | {
1219
- selector: string;
1220
- timeout_ms?: number | undefined;
1221
- } | undefined;
1222
- success?: {
1223
- visible: string;
1224
- } | {
1225
- hidden: string;
1226
- } | {
1227
- url_matches: string;
1228
- } | {
1229
- text_contains: {
1230
- selector: string;
1231
- text: string;
1232
- };
1233
- } | undefined;
1234
- annotation?: {
1235
- copy: string;
1236
- arrow?: "top-left" | "top-right" | "bottom-left" | "bottom-right" | "top" | "bottom" | "left" | "right" | undefined;
1237
- nudge?: {
1238
- x: number;
1239
- y: number;
1240
- } | undefined;
1241
- placement?: {
1242
- inside?: boolean | undefined;
1243
- side?: "top" | "bottom" | "left" | "right" | undefined;
1244
- align?: "start" | "center" | "end" | undefined;
1245
- pin_arrow?: boolean | undefined;
1246
- max_width?: number | undefined;
1247
- obstacle_radius?: number | undefined;
1248
- obstacle_limit?: number | undefined;
1249
- } | undefined;
1250
- target?: string | undefined;
1251
- copy_by_locale?: Record<string, string> | undefined;
1252
- only?: {
1253
- locale?: string[] | undefined;
1254
- viewport?: string[] | undefined;
1255
- color_scheme?: ("light" | "dark")[] | undefined;
1256
- } | undefined;
1257
- skip?: {
1258
- locale?: string[] | undefined;
1259
- viewport?: string[] | undefined;
1260
- color_scheme?: ("light" | "dark")[] | undefined;
1261
- } | undefined;
1262
- } | undefined;
1263
- annotations?: {
1264
- copy: string;
1265
- arrow?: "top-left" | "top-right" | "bottom-left" | "bottom-right" | "top" | "bottom" | "left" | "right" | undefined;
1266
- nudge?: {
1267
- x: number;
1268
- y: number;
1269
- } | undefined;
1270
- placement?: {
1271
- inside?: boolean | undefined;
1272
- side?: "top" | "bottom" | "left" | "right" | undefined;
1273
- align?: "start" | "center" | "end" | undefined;
1274
- pin_arrow?: boolean | undefined;
1275
- max_width?: number | undefined;
1276
- obstacle_radius?: number | undefined;
1277
- obstacle_limit?: number | undefined;
1278
- } | undefined;
1279
- target?: string | undefined;
1280
- copy_by_locale?: Record<string, string> | undefined;
1281
- only?: {
1282
- locale?: string[] | undefined;
1283
- viewport?: string[] | undefined;
1284
- color_scheme?: ("light" | "dark")[] | undefined;
1285
- } | undefined;
1286
- skip?: {
1287
- locale?: string[] | undefined;
1288
- viewport?: string[] | undefined;
1289
- color_scheme?: ("light" | "dark")[] | undefined;
1290
- } | undefined;
1291
- }[] | undefined;
1292
- redactions?: ({
1293
- selector: string;
1294
- style?: "box" | "pixelate" | undefined;
1295
- } | {
1296
- region: {
1297
- width: number;
1298
- height: number;
1299
- x: number;
1300
- y: number;
1301
- };
1302
- style?: "box" | "pixelate" | undefined;
1303
- })[] | undefined;
1304
- }>, {
1305
- id: string;
1306
- action: "fill" | "navigate" | "click" | "upload" | "press" | "hover" | "select" | "check" | "uncheck" | "wait" | "hide" | "show";
1307
- value?: string | undefined;
1308
- timeout_ms?: number | undefined;
1309
- target?: string | undefined;
1310
- only?: {
1311
- locale?: string[] | undefined;
1312
- viewport?: string[] | undefined;
1313
- color_scheme?: ("light" | "dark")[] | undefined;
1314
- } | undefined;
1315
- skip?: {
1316
- locale?: string[] | undefined;
1317
- viewport?: string[] | undefined;
1318
- color_scheme?: ("light" | "dark")[] | undefined;
1319
- } | undefined;
1320
- optional?: boolean | undefined;
1321
- wait_for?: "network_idle" | "element_stable" | "load" | "settled" | {
1322
- timeout_ms: number;
1323
- } | {
1324
- selector: string;
1325
- timeout_ms?: number | undefined;
1326
- } | undefined;
1327
- success?: {
1328
- visible: string;
1329
- } | {
1330
- hidden: string;
1331
- } | {
1332
- url_matches: string;
1333
- } | {
1334
- text_contains: {
1335
- selector: string;
1336
- text: string;
1337
- };
1338
- } | undefined;
1339
- annotation?: {
1340
- copy: string;
1341
- arrow?: "top-left" | "top-right" | "bottom-left" | "bottom-right" | "top" | "bottom" | "left" | "right" | undefined;
1342
- nudge?: {
1343
- x: number;
1344
- y: number;
1345
- } | undefined;
1346
- placement?: {
1347
- inside?: boolean | undefined;
1348
- side?: "top" | "bottom" | "left" | "right" | undefined;
1349
- align?: "start" | "center" | "end" | undefined;
1350
- pin_arrow?: boolean | undefined;
1351
- max_width?: number | undefined;
1352
- obstacle_radius?: number | undefined;
1353
- obstacle_limit?: number | undefined;
1354
- } | undefined;
1355
- target?: string | undefined;
1356
- copy_by_locale?: Record<string, string> | undefined;
1357
- only?: {
1358
- locale?: string[] | undefined;
1359
- viewport?: string[] | undefined;
1360
- color_scheme?: ("light" | "dark")[] | undefined;
1361
- } | undefined;
1362
- skip?: {
1363
- locale?: string[] | undefined;
1364
- viewport?: string[] | undefined;
1365
- color_scheme?: ("light" | "dark")[] | undefined;
1366
- } | undefined;
1367
- } | undefined;
1368
- annotations?: {
1369
- copy: string;
1370
- arrow?: "top-left" | "top-right" | "bottom-left" | "bottom-right" | "top" | "bottom" | "left" | "right" | undefined;
1371
- nudge?: {
1372
- x: number;
1373
- y: number;
1374
- } | undefined;
1375
- placement?: {
1376
- inside?: boolean | undefined;
1377
- side?: "top" | "bottom" | "left" | "right" | undefined;
1378
- align?: "start" | "center" | "end" | undefined;
1379
- pin_arrow?: boolean | undefined;
1380
- max_width?: number | undefined;
1381
- obstacle_radius?: number | undefined;
1382
- obstacle_limit?: number | undefined;
1383
- } | undefined;
1384
- target?: string | undefined;
1385
- copy_by_locale?: Record<string, string> | undefined;
1386
- only?: {
1387
- locale?: string[] | undefined;
1388
- viewport?: string[] | undefined;
1389
- color_scheme?: ("light" | "dark")[] | undefined;
1390
- } | undefined;
1391
- skip?: {
1392
- locale?: string[] | undefined;
1393
- viewport?: string[] | undefined;
1394
- color_scheme?: ("light" | "dark")[] | undefined;
1395
- } | undefined;
1396
- }[] | undefined;
1397
- redactions?: ({
1398
- selector: string;
1399
- style?: "box" | "pixelate" | undefined;
1400
- } | {
1401
- region: {
1402
- width: number;
1403
- height: number;
1404
- x: number;
1405
- y: number;
1406
- };
1407
- style?: "box" | "pixelate" | undefined;
1408
- })[] | undefined;
1409
- }, {
1410
- id: string;
1411
- action: "fill" | "navigate" | "click" | "upload" | "press" | "hover" | "select" | "check" | "uncheck" | "wait" | "hide" | "show";
1412
- value?: string | undefined;
1413
- timeout_ms?: number | undefined;
1414
- target?: string | undefined;
1415
- only?: {
1416
- locale?: string[] | undefined;
1417
- viewport?: string[] | undefined;
1418
- color_scheme?: ("light" | "dark")[] | undefined;
1419
- } | undefined;
1420
- skip?: {
1421
- locale?: string[] | undefined;
1422
- viewport?: string[] | undefined;
1423
- color_scheme?: ("light" | "dark")[] | undefined;
1424
- } | undefined;
1425
- optional?: boolean | undefined;
1426
- wait_for?: "network_idle" | "element_stable" | "load" | "settled" | {
1427
- timeout_ms: number;
1428
- } | {
1429
- selector: string;
1430
- timeout_ms?: number | undefined;
1431
- } | undefined;
1432
- success?: {
1433
- visible: string;
1434
- } | {
1435
- hidden: string;
1436
- } | {
1437
- url_matches: string;
1438
- } | {
1439
- text_contains: {
1440
- selector: string;
1441
- text: string;
1442
- };
1443
- } | undefined;
1444
- annotation?: {
1445
- copy: string;
1446
- arrow?: "top-left" | "top-right" | "bottom-left" | "bottom-right" | "top" | "bottom" | "left" | "right" | undefined;
1447
- nudge?: {
1448
- x: number;
1449
- y: number;
1450
- } | undefined;
1451
- placement?: {
1452
- inside?: boolean | undefined;
1453
- side?: "top" | "bottom" | "left" | "right" | undefined;
1454
- align?: "start" | "center" | "end" | undefined;
1455
- pin_arrow?: boolean | undefined;
1456
- max_width?: number | undefined;
1457
- obstacle_radius?: number | undefined;
1458
- obstacle_limit?: number | undefined;
1459
- } | undefined;
1460
- target?: string | undefined;
1461
- copy_by_locale?: Record<string, string> | undefined;
1462
- only?: {
1463
- locale?: string[] | undefined;
1464
- viewport?: string[] | undefined;
1465
- color_scheme?: ("light" | "dark")[] | undefined;
1466
- } | undefined;
1467
- skip?: {
1468
- locale?: string[] | undefined;
1469
- viewport?: string[] | undefined;
1470
- color_scheme?: ("light" | "dark")[] | undefined;
1471
- } | undefined;
1472
- } | undefined;
1473
- annotations?: {
1474
- copy: string;
1475
- arrow?: "top-left" | "top-right" | "bottom-left" | "bottom-right" | "top" | "bottom" | "left" | "right" | undefined;
1476
- nudge?: {
1477
- x: number;
1478
- y: number;
1479
- } | undefined;
1480
- placement?: {
1481
- inside?: boolean | undefined;
1482
- side?: "top" | "bottom" | "left" | "right" | undefined;
1483
- align?: "start" | "center" | "end" | undefined;
1484
- pin_arrow?: boolean | undefined;
1485
- max_width?: number | undefined;
1486
- obstacle_radius?: number | undefined;
1487
- obstacle_limit?: number | undefined;
1488
- } | undefined;
1489
- target?: string | undefined;
1490
- copy_by_locale?: Record<string, string> | undefined;
1491
- only?: {
1492
- locale?: string[] | undefined;
1493
- viewport?: string[] | undefined;
1494
- color_scheme?: ("light" | "dark")[] | undefined;
1495
- } | undefined;
1496
- skip?: {
1497
- locale?: string[] | undefined;
1498
- viewport?: string[] | undefined;
1499
- color_scheme?: ("light" | "dark")[] | undefined;
1500
- } | undefined;
1501
- }[] | undefined;
1502
- redactions?: ({
1503
- selector: string;
1504
- style?: "box" | "pixelate" | undefined;
1505
- } | {
1506
- region: {
1507
- width: number;
1508
- height: number;
1509
- x: number;
1510
- y: number;
1511
- };
1512
- style?: "box" | "pixelate" | undefined;
1513
- })[] | undefined;
1514
- }>;
360
+ }, z.core.$strict>;
361
+ style: z.ZodOptional<z.ZodEnum<{
362
+ box: "box";
363
+ pixelate: "pixelate";
364
+ }>>;
365
+ }, z.core.$strict>]>>>;
366
+ only: z.ZodOptional<z.ZodObject<{
367
+ viewport: z.ZodOptional<z.ZodArray<z.ZodString>>;
368
+ color_scheme: z.ZodOptional<z.ZodArray<z.ZodEnum<{
369
+ light: "light";
370
+ dark: "dark";
371
+ }>>>;
372
+ locale: z.ZodOptional<z.ZodArray<z.ZodString>>;
373
+ }, z.core.$strict>>;
374
+ skip: z.ZodOptional<z.ZodObject<{
375
+ viewport: z.ZodOptional<z.ZodArray<z.ZodString>>;
376
+ color_scheme: z.ZodOptional<z.ZodArray<z.ZodEnum<{
377
+ light: "light";
378
+ dark: "dark";
379
+ }>>>;
380
+ locale: z.ZodOptional<z.ZodArray<z.ZodString>>;
381
+ }, z.core.$strict>>;
382
+ }, z.core.$strict>;
1515
383
  export type Step = z.infer<typeof Step>;
1516
384
  /** A precondition the flow assumes (e.g. `{ logged_in_as: "editor" }`, `{ feature_flag: "recap.enabled" }`). */
1517
- export declare const Prerequisite: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean]>>;
385
+ export declare const Prerequisite: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodBoolean]>>;
1518
386
  export type Prerequisite = z.infer<typeof Prerequisite>;
1519
387
  /** Longest flow name. The name is a directory and file name under the workspace. */
1520
388
  export declare const MAX_FLOW_NAME_LENGTH = 64;
@@ -1526,1587 +394,250 @@ export declare const MAX_FLOW_NAME_LENGTH = 64;
1526
394
  * `.` and a Windows device name (`con`, `nul`, `com1`, `lpt1`, ..., with or without an extension
1527
395
  * part) are refused too, since Windows cannot create them.
1528
396
  */
1529
- export declare const FlowName: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>;
397
+ export declare const FlowName: z.ZodString;
1530
398
  export type FlowName = z.infer<typeof FlowName>;
1531
399
  export declare const FlowFile: z.ZodObject<{
1532
- name: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>;
1533
- /**
1534
- * Name of another flow whose steps run *first* (composition). The parent's `locators` + `prerequisites`
1535
- * are merged in (this flow wins on collisions); step ids must be unique across the merge. Chains allowed
1536
- * (A extends B extends C); cycles are rejected. Resolved at run time against `flows/<name>.flow.yaml`.
1537
- * Typical use: factor out a shared preamble (Library → open a video → editor) so dependent flows don't
1538
- * re-walk it every run. (`run --stop-after` operates on the merged step list.)
1539
- */
1540
- extends: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>>;
1541
- /**
1542
- * Deterministic execution environment (frozen clock, locale, timezone, viewport, color scheme,
1543
- * reduced motion). With `extends`, merged per-key — this flow's keys win over the parent's.
1544
- */
400
+ name: z.ZodString;
401
+ extends: z.ZodOptional<z.ZodString>;
1545
402
  environment: z.ZodOptional<z.ZodObject<{
1546
403
  clock: z.ZodOptional<z.ZodString>;
1547
404
  locale: z.ZodOptional<z.ZodString>;
1548
405
  timezone: z.ZodOptional<z.ZodString>;
1549
- viewport: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["desktop", "tablet", "mobile"]>, z.ZodObject<{
406
+ viewport: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
407
+ desktop: "desktop";
408
+ tablet: "tablet";
409
+ mobile: "mobile";
410
+ }>, z.ZodObject<{
1550
411
  width: z.ZodNumber;
1551
412
  height: z.ZodNumber;
1552
- }, "strict", z.ZodTypeAny, {
1553
- width: number;
1554
- height: number;
1555
- }, {
1556
- width: number;
1557
- height: number;
1558
- }>]>>;
1559
- color_scheme: z.ZodOptional<z.ZodEnum<["light", "dark"]>>;
413
+ }, z.core.$strict>]>>;
414
+ color_scheme: z.ZodOptional<z.ZodEnum<{
415
+ light: "light";
416
+ dark: "dark";
417
+ }>>;
1560
418
  reduced_motion: z.ZodOptional<z.ZodBoolean>;
1561
- }, "strict", z.ZodTypeAny, {
1562
- clock?: string | undefined;
1563
- locale?: string | undefined;
1564
- timezone?: string | undefined;
1565
- viewport?: {
1566
- width: number;
1567
- height: number;
1568
- } | "desktop" | "tablet" | "mobile" | undefined;
1569
- color_scheme?: "light" | "dark" | undefined;
1570
- reduced_motion?: boolean | undefined;
1571
- }, {
1572
- clock?: string | undefined;
1573
- locale?: string | undefined;
1574
- timezone?: string | undefined;
1575
- viewport?: {
1576
- width: number;
1577
- height: number;
1578
- } | "desktop" | "tablet" | "mobile" | undefined;
1579
- color_scheme?: "light" | "dark" | undefined;
1580
- reduced_motion?: boolean | undefined;
1581
- }>>;
1582
- /**
1583
- * Expands the flow into variants: the product of the listed locales, color schemes and viewports.
1584
- * Each variant runs under its own `environment` override and writes to `docs/<flow>/<variant>/`.
1585
- * Not inherited through `extends`. See `flow-matrix.ts`.
1586
- */
1587
- matrix: z.ZodOptional<z.ZodEffects<z.ZodObject<{
1588
- locales: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1589
- color_schemes: z.ZodOptional<z.ZodArray<z.ZodEnum<["light", "dark"]>, "many">>;
1590
- viewports: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodEnum<["desktop", "tablet", "mobile"]>, z.ZodObject<{
419
+ }, z.core.$strict>>;
420
+ matrix: z.ZodOptional<z.ZodObject<{
421
+ locales: z.ZodOptional<z.ZodArray<z.ZodString>>;
422
+ color_schemes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
423
+ light: "light";
424
+ dark: "dark";
425
+ }>>>;
426
+ viewports: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodEnum<{
427
+ desktop: "desktop";
428
+ tablet: "tablet";
429
+ mobile: "mobile";
430
+ }>, z.ZodObject<{
1591
431
  name: z.ZodOptional<z.ZodString>;
1592
432
  width: z.ZodNumber;
1593
433
  height: z.ZodNumber;
1594
- }, "strict", z.ZodTypeAny, {
1595
- width: number;
1596
- height: number;
1597
- name?: string | undefined;
1598
- }, {
1599
- width: number;
1600
- height: number;
1601
- name?: string | undefined;
1602
- }>]>, "many">>;
1603
- }, "strict", z.ZodTypeAny, {
1604
- locales?: string[] | undefined;
1605
- color_schemes?: ("light" | "dark")[] | undefined;
1606
- viewports?: ("desktop" | "tablet" | "mobile" | {
1607
- width: number;
1608
- height: number;
1609
- name?: string | undefined;
1610
- })[] | undefined;
1611
- }, {
1612
- locales?: string[] | undefined;
1613
- color_schemes?: ("light" | "dark")[] | undefined;
1614
- viewports?: ("desktop" | "tablet" | "mobile" | {
1615
- width: number;
1616
- height: number;
1617
- name?: string | undefined;
1618
- })[] | undefined;
1619
- }>, {
1620
- locales?: string[] | undefined;
1621
- color_schemes?: ("light" | "dark")[] | undefined;
1622
- viewports?: ("desktop" | "tablet" | "mobile" | {
1623
- width: number;
1624
- height: number;
1625
- name?: string | undefined;
1626
- })[] | undefined;
1627
- }, {
1628
- locales?: string[] | undefined;
1629
- color_schemes?: ("light" | "dark")[] | undefined;
1630
- viewports?: ("desktop" | "tablet" | "mobile" | {
1631
- width: number;
1632
- height: number;
1633
- name?: string | undefined;
1634
- })[] | undefined;
1635
- }>>;
1636
- /** Areas masked on every screenshot this flow produces (incl. halt shots). See {@link RedactionSpec}. */
1637
- redactions: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
434
+ }, z.core.$strict>]>>>;
435
+ }, z.core.$strict>>;
436
+ redactions: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1638
437
  selector: z.ZodString;
1639
- style: z.ZodOptional<z.ZodEnum<["box", "pixelate"]>>;
1640
- }, "strict", z.ZodTypeAny, {
1641
- selector: string;
1642
- style?: "box" | "pixelate" | undefined;
1643
- }, {
1644
- selector: string;
1645
- style?: "box" | "pixelate" | undefined;
1646
- }>, z.ZodObject<{
438
+ style: z.ZodOptional<z.ZodEnum<{
439
+ box: "box";
440
+ pixelate: "pixelate";
441
+ }>>;
442
+ }, z.core.$strict>, z.ZodObject<{
1647
443
  region: z.ZodObject<{
1648
444
  x: z.ZodNumber;
1649
445
  y: z.ZodNumber;
1650
446
  width: z.ZodNumber;
1651
447
  height: z.ZodNumber;
1652
- }, "strict", z.ZodTypeAny, {
1653
- width: number;
1654
- height: number;
1655
- x: number;
1656
- y: number;
1657
- }, {
1658
- width: number;
1659
- height: number;
1660
- x: number;
1661
- y: number;
1662
- }>;
1663
- style: z.ZodOptional<z.ZodEnum<["box", "pixelate"]>>;
1664
- }, "strict", z.ZodTypeAny, {
1665
- region: {
1666
- width: number;
1667
- height: number;
1668
- x: number;
1669
- y: number;
1670
- };
1671
- style?: "box" | "pixelate" | undefined;
1672
- }, {
1673
- region: {
1674
- width: number;
1675
- height: number;
1676
- x: number;
1677
- y: number;
1678
- };
1679
- style?: "box" | "pixelate" | undefined;
1680
- }>]>, "many">>;
1681
- prerequisites: z.ZodDefault<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean]>>, "many">>;
1682
- /** Named canonical locators referenced from steps as `$name`. One per name; no fallback lists. */
448
+ }, z.core.$strict>;
449
+ style: z.ZodOptional<z.ZodEnum<{
450
+ box: "box";
451
+ pixelate: "pixelate";
452
+ }>>;
453
+ }, z.core.$strict>]>>>;
454
+ prerequisites: z.ZodDefault<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodBoolean]>>>>;
1683
455
  locators: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
1684
- steps: z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodObject<{
456
+ steps: z.ZodArray<z.ZodObject<{
1685
457
  id: z.ZodString;
1686
- action: z.ZodEnum<["navigate", "click", "fill", "upload", "press", "hover", "select", "check", "uncheck", "wait", "hide", "show"]>;
1687
- /**
1688
- * Best-effort step: if the action / `wait_for` / `success` check throws (target absent, wait timed
1689
- * out, etc.), **skip this step and continue** instead of halting the flow. For conditionally-present
1690
- * UI — a confirmation modal that sometimes appears, a first-run tooltip, a cookie banner. A skipped
1691
- * optional step emits no screenshot / annotation (same as a step skipped by `--start-from`). Prefer
1692
- * this over a permissive comma-selector that no-ops on one branch.
1693
- */
458
+ action: z.ZodEnum<{
459
+ fill: "fill";
460
+ check: "check";
461
+ navigate: "navigate";
462
+ click: "click";
463
+ upload: "upload";
464
+ press: "press";
465
+ hover: "hover";
466
+ select: "select";
467
+ uncheck: "uncheck";
468
+ wait: "wait";
469
+ hide: "hide";
470
+ show: "show";
471
+ }>;
1694
472
  optional: z.ZodOptional<z.ZodBoolean>;
1695
- /**
1696
- * How long, in ms, this step waits for its `target` before giving up (100–30000). Unset keeps the
1697
- * driver default (Playwright's 30 s), so existing flows run exactly as before. The reason to set it
1698
- * is an `optional: true` step whose target is usually absent: a short value (e.g. 1500) skips it fast
1699
- * instead of holding the run for the full default. On a `wait` step it bounds the `wait_for`
1700
- * `{ selector }` wait when that has no `timeout_ms` of its own. With `wait_for: settled` it is that wait's
1701
- * whole budget (default 10 s), on any action. Rejected where it would bound nothing.
1702
- */
1703
473
  timeout_ms: z.ZodOptional<z.ZodNumber>;
1704
- /** Locator ref (`$name`) or inline selector. Optional for actions like `navigate` (uses `value`), `wait`, and `show` (no target = show everything hidden). */
1705
474
  target: z.ZodOptional<z.ZodString>;
1706
- /** Action payload: text for `fill`, file path for `upload`, key for `press`, path/URL for `navigate`, option for `select`. */
1707
475
  value: z.ZodOptional<z.ZodString>;
1708
- wait_for: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["network_idle", "element_stable", "load", "settled"]>, z.ZodObject<{
1709
- timeout_ms: z.ZodNumber;
1710
- }, "strict", z.ZodTypeAny, {
1711
- timeout_ms: number;
1712
- }, {
1713
- timeout_ms: number;
476
+ wait_for: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
477
+ network_idle: "network_idle";
478
+ element_stable: "element_stable";
479
+ load: "load";
480
+ settled: "settled";
1714
481
  }>, z.ZodObject<{
482
+ timeout_ms: z.ZodNumber;
483
+ }, z.core.$strict>, z.ZodObject<{
1715
484
  selector: z.ZodString;
1716
485
  timeout_ms: z.ZodOptional<z.ZodNumber>;
1717
- }, "strict", z.ZodTypeAny, {
1718
- selector: string;
1719
- timeout_ms?: number | undefined;
1720
- }, {
1721
- selector: string;
1722
- timeout_ms?: number | undefined;
1723
- }>]>>;
1724
- success: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
486
+ }, z.core.$strict>]>>;
487
+ success: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
1725
488
  visible: z.ZodString;
1726
- }, "strict", z.ZodTypeAny, {
1727
- visible: string;
1728
- }, {
1729
- visible: string;
1730
- }>, z.ZodObject<{
489
+ }, z.core.$strict>, z.ZodObject<{
1731
490
  hidden: z.ZodString;
1732
- }, "strict", z.ZodTypeAny, {
1733
- hidden: string;
1734
- }, {
1735
- hidden: string;
1736
- }>, z.ZodObject<{
491
+ }, z.core.$strict>, z.ZodObject<{
1737
492
  url_matches: z.ZodString;
1738
- }, "strict", z.ZodTypeAny, {
1739
- url_matches: string;
1740
- }, {
1741
- url_matches: string;
1742
- }>, z.ZodObject<{
493
+ }, z.core.$strict>, z.ZodObject<{
1743
494
  text_contains: z.ZodObject<{
1744
495
  selector: z.ZodString;
1745
496
  text: z.ZodString;
1746
- }, "strict", z.ZodTypeAny, {
1747
- selector: string;
1748
- text: string;
1749
- }, {
1750
- selector: string;
1751
- text: string;
1752
- }>;
1753
- }, "strict", z.ZodTypeAny, {
1754
- text_contains: {
1755
- selector: string;
1756
- text: string;
1757
- };
1758
- }, {
1759
- text_contains: {
1760
- selector: string;
1761
- text: string;
1762
- };
1763
- }>]>>;
1764
- /** Single call-out on this step's screenshot. Shorthand for a one-element `annotations` array. */
497
+ }, z.core.$strict>;
498
+ }, z.core.$strict>]>>;
1765
499
  annotation: z.ZodOptional<z.ZodObject<{
1766
500
  copy: z.ZodString;
1767
- arrow: z.ZodOptional<z.ZodEnum<["top-left", "top-right", "bottom-left", "bottom-right", "top", "bottom", "left", "right"]>>;
1768
- /**
1769
- * Optional pixel offset applied to the callout + arrow after Popper-like placement. The halo (which
1770
- * highlights the target element) stays on the target. Use this when two annotations on the same
1771
- * screenshot would otherwise overlap each other — nudge one aside so both are readable.
1772
- * Image-space pixels; small values (5–40 px in either direction) typically suffice.
1773
- */
501
+ arrow: z.ZodOptional<z.ZodEnum<{
502
+ "top-left": "top-left";
503
+ "top-right": "top-right";
504
+ "bottom-left": "bottom-left";
505
+ "bottom-right": "bottom-right";
506
+ top: "top";
507
+ bottom: "bottom";
508
+ left: "left";
509
+ right: "right";
510
+ }>>;
1774
511
  nudge: z.ZodOptional<z.ZodObject<{
1775
512
  x: z.ZodNumber;
1776
513
  y: z.ZodNumber;
1777
- }, "strict", z.ZodTypeAny, {
1778
- x: number;
1779
- y: number;
1780
- }, {
1781
- x: number;
1782
- y: number;
1783
- }>>;
1784
- /** Optional burner placement settings — see {@link AnnotationPlacement}. Copied onto the annotation record. */
514
+ }, z.core.$strict>>;
1785
515
  placement: z.ZodOptional<z.ZodObject<{
1786
- /** Put the callout inside the target when the target is big enough to hold it (no arrow). */
1787
516
  inside: z.ZodOptional<z.ZodBoolean>;
1788
- /** Only try this side of the target (falls back to the usual order when nothing fits there). */
1789
- side: z.ZodOptional<z.ZodEnum<["top", "bottom", "left", "right"]>>;
1790
- /** Where along the target's edge the callout sits: flush with its start, centred, or flush with its end. */
1791
- align: z.ZodOptional<z.ZodEnum<["start", "center", "end"]>>;
1792
- /** `nudge` moves only the callout: the arrow stays on the target and a stem joins the two. */
517
+ side: z.ZodOptional<z.ZodEnum<{
518
+ top: "top";
519
+ bottom: "bottom";
520
+ left: "left";
521
+ right: "right";
522
+ }>>;
523
+ align: z.ZodOptional<z.ZodEnum<{
524
+ start: "start";
525
+ center: "center";
526
+ end: "end";
527
+ }>>;
1793
528
  pin_arrow: z.ZodOptional<z.ZodBoolean>;
1794
- /** Widest outer callout box in px (default 280, narrower on small screenshots with obstacles). */
1795
529
  max_width: z.ZodOptional<z.ZodNumber>;
1796
- /** CSS px around the target the obstacle scan covers (default 320). Read by `docsxai run`. */
1797
530
  obstacle_radius: z.ZodOptional<z.ZodNumber>;
1798
- /** Most obstacles recorded for this annotation (default {@link MAX_OBSTACLES}). Read by `docsxai run`. */
1799
531
  obstacle_limit: z.ZodOptional<z.ZodNumber>;
1800
- }, "strict", z.ZodTypeAny, {
1801
- inside?: boolean | undefined;
1802
- side?: "top" | "bottom" | "left" | "right" | undefined;
1803
- align?: "start" | "center" | "end" | undefined;
1804
- pin_arrow?: boolean | undefined;
1805
- max_width?: number | undefined;
1806
- obstacle_radius?: number | undefined;
1807
- obstacle_limit?: number | undefined;
1808
- }, {
1809
- inside?: boolean | undefined;
1810
- side?: "top" | "bottom" | "left" | "right" | undefined;
1811
- align?: "start" | "center" | "end" | undefined;
1812
- pin_arrow?: boolean | undefined;
1813
- max_width?: number | undefined;
1814
- obstacle_radius?: number | undefined;
1815
- obstacle_limit?: number | undefined;
1816
- }>>;
1817
- /**
1818
- * Optional override: the locator to anchor the halo/arrow to. Default = the step's `target`. Use this on
1819
- * a step whose action *transitions the UI* — the action target vanishes (gets unmounted / replaced) and
1820
- * a *different* element is what you want to highlight in the resulting state. Point this at the
1821
- * surviving / appearing element.
1822
- */
532
+ }, z.core.$strict>>;
1823
533
  target: z.ZodOptional<z.ZodString>;
1824
- /**
1825
- * Call-out text per locale, keyed by BCP-47 tag (`es`, `fr-CA`). `copy` stays required and is the
1826
- * fallback. A variant takes its locale's entry (exact tag, then the language subtag), else `copy`.
1827
- * The variant locale is the matrix locale, or `environment.locale` when the flow has no matrix locales.
1828
- */
1829
- copy_by_locale: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>>;
1830
- /** Variants this call-out is kept for. Needs a `matrix`; see {@link VariantSelector}. */
1831
- only: z.ZodOptional<z.ZodEffects<z.ZodObject<{
1832
- viewport: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1833
- color_scheme: z.ZodOptional<z.ZodArray<z.ZodEnum<["light", "dark"]>, "many">>;
1834
- locale: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1835
- }, "strict", z.ZodTypeAny, {
1836
- locale?: string[] | undefined;
1837
- viewport?: string[] | undefined;
1838
- color_scheme?: ("light" | "dark")[] | undefined;
1839
- }, {
1840
- locale?: string[] | undefined;
1841
- viewport?: string[] | undefined;
1842
- color_scheme?: ("light" | "dark")[] | undefined;
1843
- }>, {
1844
- locale?: string[] | undefined;
1845
- viewport?: string[] | undefined;
1846
- color_scheme?: ("light" | "dark")[] | undefined;
1847
- }, {
1848
- locale?: string[] | undefined;
1849
- viewport?: string[] | undefined;
1850
- color_scheme?: ("light" | "dark")[] | undefined;
1851
- }>>;
1852
- /** Variants this call-out is dropped from. Needs a `matrix`; see {@link VariantSelector}. */
1853
- skip: z.ZodOptional<z.ZodEffects<z.ZodObject<{
1854
- viewport: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1855
- color_scheme: z.ZodOptional<z.ZodArray<z.ZodEnum<["light", "dark"]>, "many">>;
1856
- locale: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1857
- }, "strict", z.ZodTypeAny, {
1858
- locale?: string[] | undefined;
1859
- viewport?: string[] | undefined;
1860
- color_scheme?: ("light" | "dark")[] | undefined;
1861
- }, {
1862
- locale?: string[] | undefined;
1863
- viewport?: string[] | undefined;
1864
- color_scheme?: ("light" | "dark")[] | undefined;
1865
- }>, {
1866
- locale?: string[] | undefined;
1867
- viewport?: string[] | undefined;
1868
- color_scheme?: ("light" | "dark")[] | undefined;
1869
- }, {
1870
- locale?: string[] | undefined;
1871
- viewport?: string[] | undefined;
1872
- color_scheme?: ("light" | "dark")[] | undefined;
1873
- }>>;
1874
- }, "strict", z.ZodTypeAny, {
1875
- copy: string;
1876
- arrow?: "top-left" | "top-right" | "bottom-left" | "bottom-right" | "top" | "bottom" | "left" | "right" | undefined;
1877
- nudge?: {
1878
- x: number;
1879
- y: number;
1880
- } | undefined;
1881
- placement?: {
1882
- inside?: boolean | undefined;
1883
- side?: "top" | "bottom" | "left" | "right" | undefined;
1884
- align?: "start" | "center" | "end" | undefined;
1885
- pin_arrow?: boolean | undefined;
1886
- max_width?: number | undefined;
1887
- obstacle_radius?: number | undefined;
1888
- obstacle_limit?: number | undefined;
1889
- } | undefined;
1890
- target?: string | undefined;
1891
- copy_by_locale?: Record<string, string> | undefined;
1892
- only?: {
1893
- locale?: string[] | undefined;
1894
- viewport?: string[] | undefined;
1895
- color_scheme?: ("light" | "dark")[] | undefined;
1896
- } | undefined;
1897
- skip?: {
1898
- locale?: string[] | undefined;
1899
- viewport?: string[] | undefined;
1900
- color_scheme?: ("light" | "dark")[] | undefined;
1901
- } | undefined;
1902
- }, {
1903
- copy: string;
1904
- arrow?: "top-left" | "top-right" | "bottom-left" | "bottom-right" | "top" | "bottom" | "left" | "right" | undefined;
1905
- nudge?: {
1906
- x: number;
1907
- y: number;
1908
- } | undefined;
1909
- placement?: {
1910
- inside?: boolean | undefined;
1911
- side?: "top" | "bottom" | "left" | "right" | undefined;
1912
- align?: "start" | "center" | "end" | undefined;
1913
- pin_arrow?: boolean | undefined;
1914
- max_width?: number | undefined;
1915
- obstacle_radius?: number | undefined;
1916
- obstacle_limit?: number | undefined;
1917
- } | undefined;
1918
- target?: string | undefined;
1919
- copy_by_locale?: Record<string, string> | undefined;
1920
- only?: {
1921
- locale?: string[] | undefined;
1922
- viewport?: string[] | undefined;
1923
- color_scheme?: ("light" | "dark")[] | undefined;
1924
- } | undefined;
1925
- skip?: {
1926
- locale?: string[] | undefined;
1927
- viewport?: string[] | undefined;
1928
- color_scheme?: ("light" | "dark")[] | undefined;
1929
- } | undefined;
1930
- }>>;
1931
- /**
1932
- * Multiple call-outs on the same screenshot — rendered as numbered badges (1, 2, …) so the reader sees
1933
- * up front that there's more than one thing to look at without having to hover everything. Each entry
1934
- * has its own `target` (defaults to the step's `target`) and `copy` / `arrow` — see {@link StepAnnotation}.
1935
- * Mutually exclusive with `annotation`.
1936
- */
534
+ copy_by_locale: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
535
+ only: z.ZodOptional<z.ZodObject<{
536
+ viewport: z.ZodOptional<z.ZodArray<z.ZodString>>;
537
+ color_scheme: z.ZodOptional<z.ZodArray<z.ZodEnum<{
538
+ light: "light";
539
+ dark: "dark";
540
+ }>>>;
541
+ locale: z.ZodOptional<z.ZodArray<z.ZodString>>;
542
+ }, z.core.$strict>>;
543
+ skip: z.ZodOptional<z.ZodObject<{
544
+ viewport: z.ZodOptional<z.ZodArray<z.ZodString>>;
545
+ color_scheme: z.ZodOptional<z.ZodArray<z.ZodEnum<{
546
+ light: "light";
547
+ dark: "dark";
548
+ }>>>;
549
+ locale: z.ZodOptional<z.ZodArray<z.ZodString>>;
550
+ }, z.core.$strict>>;
551
+ }, z.core.$strict>>;
1937
552
  annotations: z.ZodOptional<z.ZodArray<z.ZodObject<{
1938
553
  copy: z.ZodString;
1939
- arrow: z.ZodOptional<z.ZodEnum<["top-left", "top-right", "bottom-left", "bottom-right", "top", "bottom", "left", "right"]>>;
1940
- /**
1941
- * Optional pixel offset applied to the callout + arrow after Popper-like placement. The halo (which
1942
- * highlights the target element) stays on the target. Use this when two annotations on the same
1943
- * screenshot would otherwise overlap each other — nudge one aside so both are readable.
1944
- * Image-space pixels; small values (5–40 px in either direction) typically suffice.
1945
- */
554
+ arrow: z.ZodOptional<z.ZodEnum<{
555
+ "top-left": "top-left";
556
+ "top-right": "top-right";
557
+ "bottom-left": "bottom-left";
558
+ "bottom-right": "bottom-right";
559
+ top: "top";
560
+ bottom: "bottom";
561
+ left: "left";
562
+ right: "right";
563
+ }>>;
1946
564
  nudge: z.ZodOptional<z.ZodObject<{
1947
565
  x: z.ZodNumber;
1948
566
  y: z.ZodNumber;
1949
- }, "strict", z.ZodTypeAny, {
1950
- x: number;
1951
- y: number;
1952
- }, {
1953
- x: number;
1954
- y: number;
1955
- }>>;
1956
- /** Optional burner placement settings — see {@link AnnotationPlacement}. Copied onto the annotation record. */
567
+ }, z.core.$strict>>;
1957
568
  placement: z.ZodOptional<z.ZodObject<{
1958
- /** Put the callout inside the target when the target is big enough to hold it (no arrow). */
1959
569
  inside: z.ZodOptional<z.ZodBoolean>;
1960
- /** Only try this side of the target (falls back to the usual order when nothing fits there). */
1961
- side: z.ZodOptional<z.ZodEnum<["top", "bottom", "left", "right"]>>;
1962
- /** Where along the target's edge the callout sits: flush with its start, centred, or flush with its end. */
1963
- align: z.ZodOptional<z.ZodEnum<["start", "center", "end"]>>;
1964
- /** `nudge` moves only the callout: the arrow stays on the target and a stem joins the two. */
570
+ side: z.ZodOptional<z.ZodEnum<{
571
+ top: "top";
572
+ bottom: "bottom";
573
+ left: "left";
574
+ right: "right";
575
+ }>>;
576
+ align: z.ZodOptional<z.ZodEnum<{
577
+ start: "start";
578
+ center: "center";
579
+ end: "end";
580
+ }>>;
1965
581
  pin_arrow: z.ZodOptional<z.ZodBoolean>;
1966
- /** Widest outer callout box in px (default 280, narrower on small screenshots with obstacles). */
1967
582
  max_width: z.ZodOptional<z.ZodNumber>;
1968
- /** CSS px around the target the obstacle scan covers (default 320). Read by `docsxai run`. */
1969
583
  obstacle_radius: z.ZodOptional<z.ZodNumber>;
1970
- /** Most obstacles recorded for this annotation (default {@link MAX_OBSTACLES}). Read by `docsxai run`. */
1971
584
  obstacle_limit: z.ZodOptional<z.ZodNumber>;
1972
- }, "strict", z.ZodTypeAny, {
1973
- inside?: boolean | undefined;
1974
- side?: "top" | "bottom" | "left" | "right" | undefined;
1975
- align?: "start" | "center" | "end" | undefined;
1976
- pin_arrow?: boolean | undefined;
1977
- max_width?: number | undefined;
1978
- obstacle_radius?: number | undefined;
1979
- obstacle_limit?: number | undefined;
1980
- }, {
1981
- inside?: boolean | undefined;
1982
- side?: "top" | "bottom" | "left" | "right" | undefined;
1983
- align?: "start" | "center" | "end" | undefined;
1984
- pin_arrow?: boolean | undefined;
1985
- max_width?: number | undefined;
1986
- obstacle_radius?: number | undefined;
1987
- obstacle_limit?: number | undefined;
1988
- }>>;
1989
- /**
1990
- * Optional override: the locator to anchor the halo/arrow to. Default = the step's `target`. Use this on
1991
- * a step whose action *transitions the UI* — the action target vanishes (gets unmounted / replaced) and
1992
- * a *different* element is what you want to highlight in the resulting state. Point this at the
1993
- * surviving / appearing element.
1994
- */
585
+ }, z.core.$strict>>;
1995
586
  target: z.ZodOptional<z.ZodString>;
1996
- /**
1997
- * Call-out text per locale, keyed by BCP-47 tag (`es`, `fr-CA`). `copy` stays required and is the
1998
- * fallback. A variant takes its locale's entry (exact tag, then the language subtag), else `copy`.
1999
- * The variant locale is the matrix locale, or `environment.locale` when the flow has no matrix locales.
2000
- */
2001
- copy_by_locale: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>>;
2002
- /** Variants this call-out is kept for. Needs a `matrix`; see {@link VariantSelector}. */
2003
- only: z.ZodOptional<z.ZodEffects<z.ZodObject<{
2004
- viewport: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2005
- color_scheme: z.ZodOptional<z.ZodArray<z.ZodEnum<["light", "dark"]>, "many">>;
2006
- locale: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2007
- }, "strict", z.ZodTypeAny, {
2008
- locale?: string[] | undefined;
2009
- viewport?: string[] | undefined;
2010
- color_scheme?: ("light" | "dark")[] | undefined;
2011
- }, {
2012
- locale?: string[] | undefined;
2013
- viewport?: string[] | undefined;
2014
- color_scheme?: ("light" | "dark")[] | undefined;
2015
- }>, {
2016
- locale?: string[] | undefined;
2017
- viewport?: string[] | undefined;
2018
- color_scheme?: ("light" | "dark")[] | undefined;
2019
- }, {
2020
- locale?: string[] | undefined;
2021
- viewport?: string[] | undefined;
2022
- color_scheme?: ("light" | "dark")[] | undefined;
2023
- }>>;
2024
- /** Variants this call-out is dropped from. Needs a `matrix`; see {@link VariantSelector}. */
2025
- skip: z.ZodOptional<z.ZodEffects<z.ZodObject<{
2026
- viewport: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2027
- color_scheme: z.ZodOptional<z.ZodArray<z.ZodEnum<["light", "dark"]>, "many">>;
2028
- locale: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2029
- }, "strict", z.ZodTypeAny, {
2030
- locale?: string[] | undefined;
2031
- viewport?: string[] | undefined;
2032
- color_scheme?: ("light" | "dark")[] | undefined;
2033
- }, {
2034
- locale?: string[] | undefined;
2035
- viewport?: string[] | undefined;
2036
- color_scheme?: ("light" | "dark")[] | undefined;
2037
- }>, {
2038
- locale?: string[] | undefined;
2039
- viewport?: string[] | undefined;
2040
- color_scheme?: ("light" | "dark")[] | undefined;
2041
- }, {
2042
- locale?: string[] | undefined;
2043
- viewport?: string[] | undefined;
2044
- color_scheme?: ("light" | "dark")[] | undefined;
2045
- }>>;
2046
- }, "strict", z.ZodTypeAny, {
2047
- copy: string;
2048
- arrow?: "top-left" | "top-right" | "bottom-left" | "bottom-right" | "top" | "bottom" | "left" | "right" | undefined;
2049
- nudge?: {
2050
- x: number;
2051
- y: number;
2052
- } | undefined;
2053
- placement?: {
2054
- inside?: boolean | undefined;
2055
- side?: "top" | "bottom" | "left" | "right" | undefined;
2056
- align?: "start" | "center" | "end" | undefined;
2057
- pin_arrow?: boolean | undefined;
2058
- max_width?: number | undefined;
2059
- obstacle_radius?: number | undefined;
2060
- obstacle_limit?: number | undefined;
2061
- } | undefined;
2062
- target?: string | undefined;
2063
- copy_by_locale?: Record<string, string> | undefined;
2064
- only?: {
2065
- locale?: string[] | undefined;
2066
- viewport?: string[] | undefined;
2067
- color_scheme?: ("light" | "dark")[] | undefined;
2068
- } | undefined;
2069
- skip?: {
2070
- locale?: string[] | undefined;
2071
- viewport?: string[] | undefined;
2072
- color_scheme?: ("light" | "dark")[] | undefined;
2073
- } | undefined;
2074
- }, {
2075
- copy: string;
2076
- arrow?: "top-left" | "top-right" | "bottom-left" | "bottom-right" | "top" | "bottom" | "left" | "right" | undefined;
2077
- nudge?: {
2078
- x: number;
2079
- y: number;
2080
- } | undefined;
2081
- placement?: {
2082
- inside?: boolean | undefined;
2083
- side?: "top" | "bottom" | "left" | "right" | undefined;
2084
- align?: "start" | "center" | "end" | undefined;
2085
- pin_arrow?: boolean | undefined;
2086
- max_width?: number | undefined;
2087
- obstacle_radius?: number | undefined;
2088
- obstacle_limit?: number | undefined;
2089
- } | undefined;
2090
- target?: string | undefined;
2091
- copy_by_locale?: Record<string, string> | undefined;
2092
- only?: {
2093
- locale?: string[] | undefined;
2094
- viewport?: string[] | undefined;
2095
- color_scheme?: ("light" | "dark")[] | undefined;
2096
- } | undefined;
2097
- skip?: {
2098
- locale?: string[] | undefined;
2099
- viewport?: string[] | undefined;
2100
- color_scheme?: ("light" | "dark")[] | undefined;
2101
- } | undefined;
2102
- }>, "many">>;
2103
- /** Extra redactions for this step's screenshots, additive on top of the flow-level list. */
2104
- redactions: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
587
+ copy_by_locale: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
588
+ only: z.ZodOptional<z.ZodObject<{
589
+ viewport: z.ZodOptional<z.ZodArray<z.ZodString>>;
590
+ color_scheme: z.ZodOptional<z.ZodArray<z.ZodEnum<{
591
+ light: "light";
592
+ dark: "dark";
593
+ }>>>;
594
+ locale: z.ZodOptional<z.ZodArray<z.ZodString>>;
595
+ }, z.core.$strict>>;
596
+ skip: z.ZodOptional<z.ZodObject<{
597
+ viewport: z.ZodOptional<z.ZodArray<z.ZodString>>;
598
+ color_scheme: z.ZodOptional<z.ZodArray<z.ZodEnum<{
599
+ light: "light";
600
+ dark: "dark";
601
+ }>>>;
602
+ locale: z.ZodOptional<z.ZodArray<z.ZodString>>;
603
+ }, z.core.$strict>>;
604
+ }, z.core.$strict>>>;
605
+ redactions: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
2105
606
  selector: z.ZodString;
2106
- style: z.ZodOptional<z.ZodEnum<["box", "pixelate"]>>;
2107
- }, "strict", z.ZodTypeAny, {
2108
- selector: string;
2109
- style?: "box" | "pixelate" | undefined;
2110
- }, {
2111
- selector: string;
2112
- style?: "box" | "pixelate" | undefined;
2113
- }>, z.ZodObject<{
607
+ style: z.ZodOptional<z.ZodEnum<{
608
+ box: "box";
609
+ pixelate: "pixelate";
610
+ }>>;
611
+ }, z.core.$strict>, z.ZodObject<{
2114
612
  region: z.ZodObject<{
2115
613
  x: z.ZodNumber;
2116
614
  y: z.ZodNumber;
2117
615
  width: z.ZodNumber;
2118
616
  height: z.ZodNumber;
2119
- }, "strict", z.ZodTypeAny, {
2120
- width: number;
2121
- height: number;
2122
- x: number;
2123
- y: number;
2124
- }, {
2125
- width: number;
2126
- height: number;
2127
- x: number;
2128
- y: number;
2129
- }>;
2130
- style: z.ZodOptional<z.ZodEnum<["box", "pixelate"]>>;
2131
- }, "strict", z.ZodTypeAny, {
2132
- region: {
2133
- width: number;
2134
- height: number;
2135
- x: number;
2136
- y: number;
2137
- };
2138
- style?: "box" | "pixelate" | undefined;
2139
- }, {
2140
- region: {
2141
- width: number;
2142
- height: number;
2143
- x: number;
2144
- y: number;
2145
- };
2146
- style?: "box" | "pixelate" | undefined;
2147
- }>]>, "many">>;
2148
- /** Variants this step runs for (the others skip it). Needs a `matrix`; see {@link VariantSelector}. */
2149
- only: z.ZodOptional<z.ZodEffects<z.ZodObject<{
2150
- viewport: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2151
- color_scheme: z.ZodOptional<z.ZodArray<z.ZodEnum<["light", "dark"]>, "many">>;
2152
- locale: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2153
- }, "strict", z.ZodTypeAny, {
2154
- locale?: string[] | undefined;
2155
- viewport?: string[] | undefined;
2156
- color_scheme?: ("light" | "dark")[] | undefined;
2157
- }, {
2158
- locale?: string[] | undefined;
2159
- viewport?: string[] | undefined;
2160
- color_scheme?: ("light" | "dark")[] | undefined;
2161
- }>, {
2162
- locale?: string[] | undefined;
2163
- viewport?: string[] | undefined;
2164
- color_scheme?: ("light" | "dark")[] | undefined;
2165
- }, {
2166
- locale?: string[] | undefined;
2167
- viewport?: string[] | undefined;
2168
- color_scheme?: ("light" | "dark")[] | undefined;
2169
- }>>;
2170
- /** Variants this step is dropped from. Needs a `matrix`; see {@link VariantSelector}. */
2171
- skip: z.ZodOptional<z.ZodEffects<z.ZodObject<{
2172
- viewport: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2173
- color_scheme: z.ZodOptional<z.ZodArray<z.ZodEnum<["light", "dark"]>, "many">>;
2174
- locale: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2175
- }, "strict", z.ZodTypeAny, {
2176
- locale?: string[] | undefined;
2177
- viewport?: string[] | undefined;
2178
- color_scheme?: ("light" | "dark")[] | undefined;
2179
- }, {
2180
- locale?: string[] | undefined;
2181
- viewport?: string[] | undefined;
2182
- color_scheme?: ("light" | "dark")[] | undefined;
2183
- }>, {
2184
- locale?: string[] | undefined;
2185
- viewport?: string[] | undefined;
2186
- color_scheme?: ("light" | "dark")[] | undefined;
2187
- }, {
2188
- locale?: string[] | undefined;
2189
- viewport?: string[] | undefined;
2190
- color_scheme?: ("light" | "dark")[] | undefined;
2191
- }>>;
2192
- }, "strict", z.ZodTypeAny, {
2193
- id: string;
2194
- action: "fill" | "navigate" | "click" | "upload" | "press" | "hover" | "select" | "check" | "uncheck" | "wait" | "hide" | "show";
2195
- value?: string | undefined;
2196
- timeout_ms?: number | undefined;
2197
- target?: string | undefined;
2198
- only?: {
2199
- locale?: string[] | undefined;
2200
- viewport?: string[] | undefined;
2201
- color_scheme?: ("light" | "dark")[] | undefined;
2202
- } | undefined;
2203
- skip?: {
2204
- locale?: string[] | undefined;
2205
- viewport?: string[] | undefined;
2206
- color_scheme?: ("light" | "dark")[] | undefined;
2207
- } | undefined;
2208
- optional?: boolean | undefined;
2209
- wait_for?: "network_idle" | "element_stable" | "load" | "settled" | {
2210
- timeout_ms: number;
2211
- } | {
2212
- selector: string;
2213
- timeout_ms?: number | undefined;
2214
- } | undefined;
2215
- success?: {
2216
- visible: string;
2217
- } | {
2218
- hidden: string;
2219
- } | {
2220
- url_matches: string;
2221
- } | {
2222
- text_contains: {
2223
- selector: string;
2224
- text: string;
2225
- };
2226
- } | undefined;
2227
- annotation?: {
2228
- copy: string;
2229
- arrow?: "top-left" | "top-right" | "bottom-left" | "bottom-right" | "top" | "bottom" | "left" | "right" | undefined;
2230
- nudge?: {
2231
- x: number;
2232
- y: number;
2233
- } | undefined;
2234
- placement?: {
2235
- inside?: boolean | undefined;
2236
- side?: "top" | "bottom" | "left" | "right" | undefined;
2237
- align?: "start" | "center" | "end" | undefined;
2238
- pin_arrow?: boolean | undefined;
2239
- max_width?: number | undefined;
2240
- obstacle_radius?: number | undefined;
2241
- obstacle_limit?: number | undefined;
2242
- } | undefined;
2243
- target?: string | undefined;
2244
- copy_by_locale?: Record<string, string> | undefined;
2245
- only?: {
2246
- locale?: string[] | undefined;
2247
- viewport?: string[] | undefined;
2248
- color_scheme?: ("light" | "dark")[] | undefined;
2249
- } | undefined;
2250
- skip?: {
2251
- locale?: string[] | undefined;
2252
- viewport?: string[] | undefined;
2253
- color_scheme?: ("light" | "dark")[] | undefined;
2254
- } | undefined;
2255
- } | undefined;
2256
- annotations?: {
2257
- copy: string;
2258
- arrow?: "top-left" | "top-right" | "bottom-left" | "bottom-right" | "top" | "bottom" | "left" | "right" | undefined;
2259
- nudge?: {
2260
- x: number;
2261
- y: number;
2262
- } | undefined;
2263
- placement?: {
2264
- inside?: boolean | undefined;
2265
- side?: "top" | "bottom" | "left" | "right" | undefined;
2266
- align?: "start" | "center" | "end" | undefined;
2267
- pin_arrow?: boolean | undefined;
2268
- max_width?: number | undefined;
2269
- obstacle_radius?: number | undefined;
2270
- obstacle_limit?: number | undefined;
2271
- } | undefined;
2272
- target?: string | undefined;
2273
- copy_by_locale?: Record<string, string> | undefined;
2274
- only?: {
2275
- locale?: string[] | undefined;
2276
- viewport?: string[] | undefined;
2277
- color_scheme?: ("light" | "dark")[] | undefined;
2278
- } | undefined;
2279
- skip?: {
2280
- locale?: string[] | undefined;
2281
- viewport?: string[] | undefined;
2282
- color_scheme?: ("light" | "dark")[] | undefined;
2283
- } | undefined;
2284
- }[] | undefined;
2285
- redactions?: ({
2286
- selector: string;
2287
- style?: "box" | "pixelate" | undefined;
2288
- } | {
2289
- region: {
2290
- width: number;
2291
- height: number;
2292
- x: number;
2293
- y: number;
2294
- };
2295
- style?: "box" | "pixelate" | undefined;
2296
- })[] | undefined;
2297
- }, {
2298
- id: string;
2299
- action: "fill" | "navigate" | "click" | "upload" | "press" | "hover" | "select" | "check" | "uncheck" | "wait" | "hide" | "show";
2300
- value?: string | undefined;
2301
- timeout_ms?: number | undefined;
2302
- target?: string | undefined;
2303
- only?: {
2304
- locale?: string[] | undefined;
2305
- viewport?: string[] | undefined;
2306
- color_scheme?: ("light" | "dark")[] | undefined;
2307
- } | undefined;
2308
- skip?: {
2309
- locale?: string[] | undefined;
2310
- viewport?: string[] | undefined;
2311
- color_scheme?: ("light" | "dark")[] | undefined;
2312
- } | undefined;
2313
- optional?: boolean | undefined;
2314
- wait_for?: "network_idle" | "element_stable" | "load" | "settled" | {
2315
- timeout_ms: number;
2316
- } | {
2317
- selector: string;
2318
- timeout_ms?: number | undefined;
2319
- } | undefined;
2320
- success?: {
2321
- visible: string;
2322
- } | {
2323
- hidden: string;
2324
- } | {
2325
- url_matches: string;
2326
- } | {
2327
- text_contains: {
2328
- selector: string;
2329
- text: string;
2330
- };
2331
- } | undefined;
2332
- annotation?: {
2333
- copy: string;
2334
- arrow?: "top-left" | "top-right" | "bottom-left" | "bottom-right" | "top" | "bottom" | "left" | "right" | undefined;
2335
- nudge?: {
2336
- x: number;
2337
- y: number;
2338
- } | undefined;
2339
- placement?: {
2340
- inside?: boolean | undefined;
2341
- side?: "top" | "bottom" | "left" | "right" | undefined;
2342
- align?: "start" | "center" | "end" | undefined;
2343
- pin_arrow?: boolean | undefined;
2344
- max_width?: number | undefined;
2345
- obstacle_radius?: number | undefined;
2346
- obstacle_limit?: number | undefined;
2347
- } | undefined;
2348
- target?: string | undefined;
2349
- copy_by_locale?: Record<string, string> | undefined;
2350
- only?: {
2351
- locale?: string[] | undefined;
2352
- viewport?: string[] | undefined;
2353
- color_scheme?: ("light" | "dark")[] | undefined;
2354
- } | undefined;
2355
- skip?: {
2356
- locale?: string[] | undefined;
2357
- viewport?: string[] | undefined;
2358
- color_scheme?: ("light" | "dark")[] | undefined;
2359
- } | undefined;
2360
- } | undefined;
2361
- annotations?: {
2362
- copy: string;
2363
- arrow?: "top-left" | "top-right" | "bottom-left" | "bottom-right" | "top" | "bottom" | "left" | "right" | undefined;
2364
- nudge?: {
2365
- x: number;
2366
- y: number;
2367
- } | undefined;
2368
- placement?: {
2369
- inside?: boolean | undefined;
2370
- side?: "top" | "bottom" | "left" | "right" | undefined;
2371
- align?: "start" | "center" | "end" | undefined;
2372
- pin_arrow?: boolean | undefined;
2373
- max_width?: number | undefined;
2374
- obstacle_radius?: number | undefined;
2375
- obstacle_limit?: number | undefined;
2376
- } | undefined;
2377
- target?: string | undefined;
2378
- copy_by_locale?: Record<string, string> | undefined;
2379
- only?: {
2380
- locale?: string[] | undefined;
2381
- viewport?: string[] | undefined;
2382
- color_scheme?: ("light" | "dark")[] | undefined;
2383
- } | undefined;
2384
- skip?: {
2385
- locale?: string[] | undefined;
2386
- viewport?: string[] | undefined;
2387
- color_scheme?: ("light" | "dark")[] | undefined;
2388
- } | undefined;
2389
- }[] | undefined;
2390
- redactions?: ({
2391
- selector: string;
2392
- style?: "box" | "pixelate" | undefined;
2393
- } | {
2394
- region: {
2395
- width: number;
2396
- height: number;
2397
- x: number;
2398
- y: number;
2399
- };
2400
- style?: "box" | "pixelate" | undefined;
2401
- })[] | undefined;
2402
- }>, {
2403
- id: string;
2404
- action: "fill" | "navigate" | "click" | "upload" | "press" | "hover" | "select" | "check" | "uncheck" | "wait" | "hide" | "show";
2405
- value?: string | undefined;
2406
- timeout_ms?: number | undefined;
2407
- target?: string | undefined;
2408
- only?: {
2409
- locale?: string[] | undefined;
2410
- viewport?: string[] | undefined;
2411
- color_scheme?: ("light" | "dark")[] | undefined;
2412
- } | undefined;
2413
- skip?: {
2414
- locale?: string[] | undefined;
2415
- viewport?: string[] | undefined;
2416
- color_scheme?: ("light" | "dark")[] | undefined;
2417
- } | undefined;
2418
- optional?: boolean | undefined;
2419
- wait_for?: "network_idle" | "element_stable" | "load" | "settled" | {
2420
- timeout_ms: number;
2421
- } | {
2422
- selector: string;
2423
- timeout_ms?: number | undefined;
2424
- } | undefined;
2425
- success?: {
2426
- visible: string;
2427
- } | {
2428
- hidden: string;
2429
- } | {
2430
- url_matches: string;
2431
- } | {
2432
- text_contains: {
2433
- selector: string;
2434
- text: string;
2435
- };
2436
- } | undefined;
2437
- annotation?: {
2438
- copy: string;
2439
- arrow?: "top-left" | "top-right" | "bottom-left" | "bottom-right" | "top" | "bottom" | "left" | "right" | undefined;
2440
- nudge?: {
2441
- x: number;
2442
- y: number;
2443
- } | undefined;
2444
- placement?: {
2445
- inside?: boolean | undefined;
2446
- side?: "top" | "bottom" | "left" | "right" | undefined;
2447
- align?: "start" | "center" | "end" | undefined;
2448
- pin_arrow?: boolean | undefined;
2449
- max_width?: number | undefined;
2450
- obstacle_radius?: number | undefined;
2451
- obstacle_limit?: number | undefined;
2452
- } | undefined;
2453
- target?: string | undefined;
2454
- copy_by_locale?: Record<string, string> | undefined;
2455
- only?: {
2456
- locale?: string[] | undefined;
2457
- viewport?: string[] | undefined;
2458
- color_scheme?: ("light" | "dark")[] | undefined;
2459
- } | undefined;
2460
- skip?: {
2461
- locale?: string[] | undefined;
2462
- viewport?: string[] | undefined;
2463
- color_scheme?: ("light" | "dark")[] | undefined;
2464
- } | undefined;
2465
- } | undefined;
2466
- annotations?: {
2467
- copy: string;
2468
- arrow?: "top-left" | "top-right" | "bottom-left" | "bottom-right" | "top" | "bottom" | "left" | "right" | undefined;
2469
- nudge?: {
2470
- x: number;
2471
- y: number;
2472
- } | undefined;
2473
- placement?: {
2474
- inside?: boolean | undefined;
2475
- side?: "top" | "bottom" | "left" | "right" | undefined;
2476
- align?: "start" | "center" | "end" | undefined;
2477
- pin_arrow?: boolean | undefined;
2478
- max_width?: number | undefined;
2479
- obstacle_radius?: number | undefined;
2480
- obstacle_limit?: number | undefined;
2481
- } | undefined;
2482
- target?: string | undefined;
2483
- copy_by_locale?: Record<string, string> | undefined;
2484
- only?: {
2485
- locale?: string[] | undefined;
2486
- viewport?: string[] | undefined;
2487
- color_scheme?: ("light" | "dark")[] | undefined;
2488
- } | undefined;
2489
- skip?: {
2490
- locale?: string[] | undefined;
2491
- viewport?: string[] | undefined;
2492
- color_scheme?: ("light" | "dark")[] | undefined;
2493
- } | undefined;
2494
- }[] | undefined;
2495
- redactions?: ({
2496
- selector: string;
2497
- style?: "box" | "pixelate" | undefined;
2498
- } | {
2499
- region: {
2500
- width: number;
2501
- height: number;
2502
- x: number;
2503
- y: number;
2504
- };
2505
- style?: "box" | "pixelate" | undefined;
2506
- })[] | undefined;
2507
- }, {
2508
- id: string;
2509
- action: "fill" | "navigate" | "click" | "upload" | "press" | "hover" | "select" | "check" | "uncheck" | "wait" | "hide" | "show";
2510
- value?: string | undefined;
2511
- timeout_ms?: number | undefined;
2512
- target?: string | undefined;
2513
- only?: {
2514
- locale?: string[] | undefined;
2515
- viewport?: string[] | undefined;
2516
- color_scheme?: ("light" | "dark")[] | undefined;
2517
- } | undefined;
2518
- skip?: {
2519
- locale?: string[] | undefined;
2520
- viewport?: string[] | undefined;
2521
- color_scheme?: ("light" | "dark")[] | undefined;
2522
- } | undefined;
2523
- optional?: boolean | undefined;
2524
- wait_for?: "network_idle" | "element_stable" | "load" | "settled" | {
2525
- timeout_ms: number;
2526
- } | {
2527
- selector: string;
2528
- timeout_ms?: number | undefined;
2529
- } | undefined;
2530
- success?: {
2531
- visible: string;
2532
- } | {
2533
- hidden: string;
2534
- } | {
2535
- url_matches: string;
2536
- } | {
2537
- text_contains: {
2538
- selector: string;
2539
- text: string;
2540
- };
2541
- } | undefined;
2542
- annotation?: {
2543
- copy: string;
2544
- arrow?: "top-left" | "top-right" | "bottom-left" | "bottom-right" | "top" | "bottom" | "left" | "right" | undefined;
2545
- nudge?: {
2546
- x: number;
2547
- y: number;
2548
- } | undefined;
2549
- placement?: {
2550
- inside?: boolean | undefined;
2551
- side?: "top" | "bottom" | "left" | "right" | undefined;
2552
- align?: "start" | "center" | "end" | undefined;
2553
- pin_arrow?: boolean | undefined;
2554
- max_width?: number | undefined;
2555
- obstacle_radius?: number | undefined;
2556
- obstacle_limit?: number | undefined;
2557
- } | undefined;
2558
- target?: string | undefined;
2559
- copy_by_locale?: Record<string, string> | undefined;
2560
- only?: {
2561
- locale?: string[] | undefined;
2562
- viewport?: string[] | undefined;
2563
- color_scheme?: ("light" | "dark")[] | undefined;
2564
- } | undefined;
2565
- skip?: {
2566
- locale?: string[] | undefined;
2567
- viewport?: string[] | undefined;
2568
- color_scheme?: ("light" | "dark")[] | undefined;
2569
- } | undefined;
2570
- } | undefined;
2571
- annotations?: {
2572
- copy: string;
2573
- arrow?: "top-left" | "top-right" | "bottom-left" | "bottom-right" | "top" | "bottom" | "left" | "right" | undefined;
2574
- nudge?: {
2575
- x: number;
2576
- y: number;
2577
- } | undefined;
2578
- placement?: {
2579
- inside?: boolean | undefined;
2580
- side?: "top" | "bottom" | "left" | "right" | undefined;
2581
- align?: "start" | "center" | "end" | undefined;
2582
- pin_arrow?: boolean | undefined;
2583
- max_width?: number | undefined;
2584
- obstacle_radius?: number | undefined;
2585
- obstacle_limit?: number | undefined;
2586
- } | undefined;
2587
- target?: string | undefined;
2588
- copy_by_locale?: Record<string, string> | undefined;
2589
- only?: {
2590
- locale?: string[] | undefined;
2591
- viewport?: string[] | undefined;
2592
- color_scheme?: ("light" | "dark")[] | undefined;
2593
- } | undefined;
2594
- skip?: {
2595
- locale?: string[] | undefined;
2596
- viewport?: string[] | undefined;
2597
- color_scheme?: ("light" | "dark")[] | undefined;
2598
- } | undefined;
2599
- }[] | undefined;
2600
- redactions?: ({
2601
- selector: string;
2602
- style?: "box" | "pixelate" | undefined;
2603
- } | {
2604
- region: {
2605
- width: number;
2606
- height: number;
2607
- x: number;
2608
- y: number;
2609
- };
2610
- style?: "box" | "pixelate" | undefined;
2611
- })[] | undefined;
2612
- }>, {
2613
- id: string;
2614
- action: "fill" | "navigate" | "click" | "upload" | "press" | "hover" | "select" | "check" | "uncheck" | "wait" | "hide" | "show";
2615
- value?: string | undefined;
2616
- timeout_ms?: number | undefined;
2617
- target?: string | undefined;
2618
- only?: {
2619
- locale?: string[] | undefined;
2620
- viewport?: string[] | undefined;
2621
- color_scheme?: ("light" | "dark")[] | undefined;
2622
- } | undefined;
2623
- skip?: {
2624
- locale?: string[] | undefined;
2625
- viewport?: string[] | undefined;
2626
- color_scheme?: ("light" | "dark")[] | undefined;
2627
- } | undefined;
2628
- optional?: boolean | undefined;
2629
- wait_for?: "network_idle" | "element_stable" | "load" | "settled" | {
2630
- timeout_ms: number;
2631
- } | {
2632
- selector: string;
2633
- timeout_ms?: number | undefined;
2634
- } | undefined;
2635
- success?: {
2636
- visible: string;
2637
- } | {
2638
- hidden: string;
2639
- } | {
2640
- url_matches: string;
2641
- } | {
2642
- text_contains: {
2643
- selector: string;
2644
- text: string;
2645
- };
2646
- } | undefined;
2647
- annotation?: {
2648
- copy: string;
2649
- arrow?: "top-left" | "top-right" | "bottom-left" | "bottom-right" | "top" | "bottom" | "left" | "right" | undefined;
2650
- nudge?: {
2651
- x: number;
2652
- y: number;
2653
- } | undefined;
2654
- placement?: {
2655
- inside?: boolean | undefined;
2656
- side?: "top" | "bottom" | "left" | "right" | undefined;
2657
- align?: "start" | "center" | "end" | undefined;
2658
- pin_arrow?: boolean | undefined;
2659
- max_width?: number | undefined;
2660
- obstacle_radius?: number | undefined;
2661
- obstacle_limit?: number | undefined;
2662
- } | undefined;
2663
- target?: string | undefined;
2664
- copy_by_locale?: Record<string, string> | undefined;
2665
- only?: {
2666
- locale?: string[] | undefined;
2667
- viewport?: string[] | undefined;
2668
- color_scheme?: ("light" | "dark")[] | undefined;
2669
- } | undefined;
2670
- skip?: {
2671
- locale?: string[] | undefined;
2672
- viewport?: string[] | undefined;
2673
- color_scheme?: ("light" | "dark")[] | undefined;
2674
- } | undefined;
2675
- } | undefined;
2676
- annotations?: {
2677
- copy: string;
2678
- arrow?: "top-left" | "top-right" | "bottom-left" | "bottom-right" | "top" | "bottom" | "left" | "right" | undefined;
2679
- nudge?: {
2680
- x: number;
2681
- y: number;
2682
- } | undefined;
2683
- placement?: {
2684
- inside?: boolean | undefined;
2685
- side?: "top" | "bottom" | "left" | "right" | undefined;
2686
- align?: "start" | "center" | "end" | undefined;
2687
- pin_arrow?: boolean | undefined;
2688
- max_width?: number | undefined;
2689
- obstacle_radius?: number | undefined;
2690
- obstacle_limit?: number | undefined;
2691
- } | undefined;
2692
- target?: string | undefined;
2693
- copy_by_locale?: Record<string, string> | undefined;
2694
- only?: {
2695
- locale?: string[] | undefined;
2696
- viewport?: string[] | undefined;
2697
- color_scheme?: ("light" | "dark")[] | undefined;
2698
- } | undefined;
2699
- skip?: {
2700
- locale?: string[] | undefined;
2701
- viewport?: string[] | undefined;
2702
- color_scheme?: ("light" | "dark")[] | undefined;
2703
- } | undefined;
2704
- }[] | undefined;
2705
- redactions?: ({
2706
- selector: string;
2707
- style?: "box" | "pixelate" | undefined;
2708
- } | {
2709
- region: {
2710
- width: number;
2711
- height: number;
2712
- x: number;
2713
- y: number;
2714
- };
2715
- style?: "box" | "pixelate" | undefined;
2716
- })[] | undefined;
2717
- }, {
2718
- id: string;
2719
- action: "fill" | "navigate" | "click" | "upload" | "press" | "hover" | "select" | "check" | "uncheck" | "wait" | "hide" | "show";
2720
- value?: string | undefined;
2721
- timeout_ms?: number | undefined;
2722
- target?: string | undefined;
2723
- only?: {
2724
- locale?: string[] | undefined;
2725
- viewport?: string[] | undefined;
2726
- color_scheme?: ("light" | "dark")[] | undefined;
2727
- } | undefined;
2728
- skip?: {
2729
- locale?: string[] | undefined;
2730
- viewport?: string[] | undefined;
2731
- color_scheme?: ("light" | "dark")[] | undefined;
2732
- } | undefined;
2733
- optional?: boolean | undefined;
2734
- wait_for?: "network_idle" | "element_stable" | "load" | "settled" | {
2735
- timeout_ms: number;
2736
- } | {
2737
- selector: string;
2738
- timeout_ms?: number | undefined;
2739
- } | undefined;
2740
- success?: {
2741
- visible: string;
2742
- } | {
2743
- hidden: string;
2744
- } | {
2745
- url_matches: string;
2746
- } | {
2747
- text_contains: {
2748
- selector: string;
2749
- text: string;
2750
- };
2751
- } | undefined;
2752
- annotation?: {
2753
- copy: string;
2754
- arrow?: "top-left" | "top-right" | "bottom-left" | "bottom-right" | "top" | "bottom" | "left" | "right" | undefined;
2755
- nudge?: {
2756
- x: number;
2757
- y: number;
2758
- } | undefined;
2759
- placement?: {
2760
- inside?: boolean | undefined;
2761
- side?: "top" | "bottom" | "left" | "right" | undefined;
2762
- align?: "start" | "center" | "end" | undefined;
2763
- pin_arrow?: boolean | undefined;
2764
- max_width?: number | undefined;
2765
- obstacle_radius?: number | undefined;
2766
- obstacle_limit?: number | undefined;
2767
- } | undefined;
2768
- target?: string | undefined;
2769
- copy_by_locale?: Record<string, string> | undefined;
2770
- only?: {
2771
- locale?: string[] | undefined;
2772
- viewport?: string[] | undefined;
2773
- color_scheme?: ("light" | "dark")[] | undefined;
2774
- } | undefined;
2775
- skip?: {
2776
- locale?: string[] | undefined;
2777
- viewport?: string[] | undefined;
2778
- color_scheme?: ("light" | "dark")[] | undefined;
2779
- } | undefined;
2780
- } | undefined;
2781
- annotations?: {
2782
- copy: string;
2783
- arrow?: "top-left" | "top-right" | "bottom-left" | "bottom-right" | "top" | "bottom" | "left" | "right" | undefined;
2784
- nudge?: {
2785
- x: number;
2786
- y: number;
2787
- } | undefined;
2788
- placement?: {
2789
- inside?: boolean | undefined;
2790
- side?: "top" | "bottom" | "left" | "right" | undefined;
2791
- align?: "start" | "center" | "end" | undefined;
2792
- pin_arrow?: boolean | undefined;
2793
- max_width?: number | undefined;
2794
- obstacle_radius?: number | undefined;
2795
- obstacle_limit?: number | undefined;
2796
- } | undefined;
2797
- target?: string | undefined;
2798
- copy_by_locale?: Record<string, string> | undefined;
2799
- only?: {
2800
- locale?: string[] | undefined;
2801
- viewport?: string[] | undefined;
2802
- color_scheme?: ("light" | "dark")[] | undefined;
2803
- } | undefined;
2804
- skip?: {
2805
- locale?: string[] | undefined;
2806
- viewport?: string[] | undefined;
2807
- color_scheme?: ("light" | "dark")[] | undefined;
2808
- } | undefined;
2809
- }[] | undefined;
2810
- redactions?: ({
2811
- selector: string;
2812
- style?: "box" | "pixelate" | undefined;
2813
- } | {
2814
- region: {
2815
- width: number;
2816
- height: number;
2817
- x: number;
2818
- y: number;
2819
- };
2820
- style?: "box" | "pixelate" | undefined;
2821
- })[] | undefined;
2822
- }>, "many">;
2823
- }, "strict", z.ZodTypeAny, {
2824
- name: string;
2825
- prerequisites: Record<string, string | boolean>[];
2826
- locators: Record<string, string>;
2827
- steps: {
2828
- id: string;
2829
- action: "fill" | "navigate" | "click" | "upload" | "press" | "hover" | "select" | "check" | "uncheck" | "wait" | "hide" | "show";
2830
- value?: string | undefined;
2831
- timeout_ms?: number | undefined;
2832
- target?: string | undefined;
2833
- only?: {
2834
- locale?: string[] | undefined;
2835
- viewport?: string[] | undefined;
2836
- color_scheme?: ("light" | "dark")[] | undefined;
2837
- } | undefined;
2838
- skip?: {
2839
- locale?: string[] | undefined;
2840
- viewport?: string[] | undefined;
2841
- color_scheme?: ("light" | "dark")[] | undefined;
2842
- } | undefined;
2843
- optional?: boolean | undefined;
2844
- wait_for?: "network_idle" | "element_stable" | "load" | "settled" | {
2845
- timeout_ms: number;
2846
- } | {
2847
- selector: string;
2848
- timeout_ms?: number | undefined;
2849
- } | undefined;
2850
- success?: {
2851
- visible: string;
2852
- } | {
2853
- hidden: string;
2854
- } | {
2855
- url_matches: string;
2856
- } | {
2857
- text_contains: {
2858
- selector: string;
2859
- text: string;
2860
- };
2861
- } | undefined;
2862
- annotation?: {
2863
- copy: string;
2864
- arrow?: "top-left" | "top-right" | "bottom-left" | "bottom-right" | "top" | "bottom" | "left" | "right" | undefined;
2865
- nudge?: {
2866
- x: number;
2867
- y: number;
2868
- } | undefined;
2869
- placement?: {
2870
- inside?: boolean | undefined;
2871
- side?: "top" | "bottom" | "left" | "right" | undefined;
2872
- align?: "start" | "center" | "end" | undefined;
2873
- pin_arrow?: boolean | undefined;
2874
- max_width?: number | undefined;
2875
- obstacle_radius?: number | undefined;
2876
- obstacle_limit?: number | undefined;
2877
- } | undefined;
2878
- target?: string | undefined;
2879
- copy_by_locale?: Record<string, string> | undefined;
2880
- only?: {
2881
- locale?: string[] | undefined;
2882
- viewport?: string[] | undefined;
2883
- color_scheme?: ("light" | "dark")[] | undefined;
2884
- } | undefined;
2885
- skip?: {
2886
- locale?: string[] | undefined;
2887
- viewport?: string[] | undefined;
2888
- color_scheme?: ("light" | "dark")[] | undefined;
2889
- } | undefined;
2890
- } | undefined;
2891
- annotations?: {
2892
- copy: string;
2893
- arrow?: "top-left" | "top-right" | "bottom-left" | "bottom-right" | "top" | "bottom" | "left" | "right" | undefined;
2894
- nudge?: {
2895
- x: number;
2896
- y: number;
2897
- } | undefined;
2898
- placement?: {
2899
- inside?: boolean | undefined;
2900
- side?: "top" | "bottom" | "left" | "right" | undefined;
2901
- align?: "start" | "center" | "end" | undefined;
2902
- pin_arrow?: boolean | undefined;
2903
- max_width?: number | undefined;
2904
- obstacle_radius?: number | undefined;
2905
- obstacle_limit?: number | undefined;
2906
- } | undefined;
2907
- target?: string | undefined;
2908
- copy_by_locale?: Record<string, string> | undefined;
2909
- only?: {
2910
- locale?: string[] | undefined;
2911
- viewport?: string[] | undefined;
2912
- color_scheme?: ("light" | "dark")[] | undefined;
2913
- } | undefined;
2914
- skip?: {
2915
- locale?: string[] | undefined;
2916
- viewport?: string[] | undefined;
2917
- color_scheme?: ("light" | "dark")[] | undefined;
2918
- } | undefined;
2919
- }[] | undefined;
2920
- redactions?: ({
2921
- selector: string;
2922
- style?: "box" | "pixelate" | undefined;
2923
- } | {
2924
- region: {
2925
- width: number;
2926
- height: number;
2927
- x: number;
2928
- y: number;
2929
- };
2930
- style?: "box" | "pixelate" | undefined;
2931
- })[] | undefined;
2932
- }[];
2933
- redactions?: ({
2934
- selector: string;
2935
- style?: "box" | "pixelate" | undefined;
2936
- } | {
2937
- region: {
2938
- width: number;
2939
- height: number;
2940
- x: number;
2941
- y: number;
2942
- };
2943
- style?: "box" | "pixelate" | undefined;
2944
- })[] | undefined;
2945
- extends?: string | undefined;
2946
- environment?: {
2947
- clock?: string | undefined;
2948
- locale?: string | undefined;
2949
- timezone?: string | undefined;
2950
- viewport?: {
2951
- width: number;
2952
- height: number;
2953
- } | "desktop" | "tablet" | "mobile" | undefined;
2954
- color_scheme?: "light" | "dark" | undefined;
2955
- reduced_motion?: boolean | undefined;
2956
- } | undefined;
2957
- matrix?: {
2958
- locales?: string[] | undefined;
2959
- color_schemes?: ("light" | "dark")[] | undefined;
2960
- viewports?: ("desktop" | "tablet" | "mobile" | {
2961
- width: number;
2962
- height: number;
2963
- name?: string | undefined;
2964
- })[] | undefined;
2965
- } | undefined;
2966
- }, {
2967
- name: string;
2968
- steps: {
2969
- id: string;
2970
- action: "fill" | "navigate" | "click" | "upload" | "press" | "hover" | "select" | "check" | "uncheck" | "wait" | "hide" | "show";
2971
- value?: string | undefined;
2972
- timeout_ms?: number | undefined;
2973
- target?: string | undefined;
2974
- only?: {
2975
- locale?: string[] | undefined;
2976
- viewport?: string[] | undefined;
2977
- color_scheme?: ("light" | "dark")[] | undefined;
2978
- } | undefined;
2979
- skip?: {
2980
- locale?: string[] | undefined;
2981
- viewport?: string[] | undefined;
2982
- color_scheme?: ("light" | "dark")[] | undefined;
2983
- } | undefined;
2984
- optional?: boolean | undefined;
2985
- wait_for?: "network_idle" | "element_stable" | "load" | "settled" | {
2986
- timeout_ms: number;
2987
- } | {
2988
- selector: string;
2989
- timeout_ms?: number | undefined;
2990
- } | undefined;
2991
- success?: {
2992
- visible: string;
2993
- } | {
2994
- hidden: string;
2995
- } | {
2996
- url_matches: string;
2997
- } | {
2998
- text_contains: {
2999
- selector: string;
3000
- text: string;
3001
- };
3002
- } | undefined;
3003
- annotation?: {
3004
- copy: string;
3005
- arrow?: "top-left" | "top-right" | "bottom-left" | "bottom-right" | "top" | "bottom" | "left" | "right" | undefined;
3006
- nudge?: {
3007
- x: number;
3008
- y: number;
3009
- } | undefined;
3010
- placement?: {
3011
- inside?: boolean | undefined;
3012
- side?: "top" | "bottom" | "left" | "right" | undefined;
3013
- align?: "start" | "center" | "end" | undefined;
3014
- pin_arrow?: boolean | undefined;
3015
- max_width?: number | undefined;
3016
- obstacle_radius?: number | undefined;
3017
- obstacle_limit?: number | undefined;
3018
- } | undefined;
3019
- target?: string | undefined;
3020
- copy_by_locale?: Record<string, string> | undefined;
3021
- only?: {
3022
- locale?: string[] | undefined;
3023
- viewport?: string[] | undefined;
3024
- color_scheme?: ("light" | "dark")[] | undefined;
3025
- } | undefined;
3026
- skip?: {
3027
- locale?: string[] | undefined;
3028
- viewport?: string[] | undefined;
3029
- color_scheme?: ("light" | "dark")[] | undefined;
3030
- } | undefined;
3031
- } | undefined;
3032
- annotations?: {
3033
- copy: string;
3034
- arrow?: "top-left" | "top-right" | "bottom-left" | "bottom-right" | "top" | "bottom" | "left" | "right" | undefined;
3035
- nudge?: {
3036
- x: number;
3037
- y: number;
3038
- } | undefined;
3039
- placement?: {
3040
- inside?: boolean | undefined;
3041
- side?: "top" | "bottom" | "left" | "right" | undefined;
3042
- align?: "start" | "center" | "end" | undefined;
3043
- pin_arrow?: boolean | undefined;
3044
- max_width?: number | undefined;
3045
- obstacle_radius?: number | undefined;
3046
- obstacle_limit?: number | undefined;
3047
- } | undefined;
3048
- target?: string | undefined;
3049
- copy_by_locale?: Record<string, string> | undefined;
3050
- only?: {
3051
- locale?: string[] | undefined;
3052
- viewport?: string[] | undefined;
3053
- color_scheme?: ("light" | "dark")[] | undefined;
3054
- } | undefined;
3055
- skip?: {
3056
- locale?: string[] | undefined;
3057
- viewport?: string[] | undefined;
3058
- color_scheme?: ("light" | "dark")[] | undefined;
3059
- } | undefined;
3060
- }[] | undefined;
3061
- redactions?: ({
3062
- selector: string;
3063
- style?: "box" | "pixelate" | undefined;
3064
- } | {
3065
- region: {
3066
- width: number;
3067
- height: number;
3068
- x: number;
3069
- y: number;
3070
- };
3071
- style?: "box" | "pixelate" | undefined;
3072
- })[] | undefined;
3073
- }[];
3074
- redactions?: ({
3075
- selector: string;
3076
- style?: "box" | "pixelate" | undefined;
3077
- } | {
3078
- region: {
3079
- width: number;
3080
- height: number;
3081
- x: number;
3082
- y: number;
3083
- };
3084
- style?: "box" | "pixelate" | undefined;
3085
- })[] | undefined;
3086
- extends?: string | undefined;
3087
- environment?: {
3088
- clock?: string | undefined;
3089
- locale?: string | undefined;
3090
- timezone?: string | undefined;
3091
- viewport?: {
3092
- width: number;
3093
- height: number;
3094
- } | "desktop" | "tablet" | "mobile" | undefined;
3095
- color_scheme?: "light" | "dark" | undefined;
3096
- reduced_motion?: boolean | undefined;
3097
- } | undefined;
3098
- matrix?: {
3099
- locales?: string[] | undefined;
3100
- color_schemes?: ("light" | "dark")[] | undefined;
3101
- viewports?: ("desktop" | "tablet" | "mobile" | {
3102
- width: number;
3103
- height: number;
3104
- name?: string | undefined;
3105
- })[] | undefined;
3106
- } | undefined;
3107
- prerequisites?: Record<string, string | boolean>[] | undefined;
3108
- locators?: Record<string, string> | undefined;
3109
- }>;
617
+ }, z.core.$strict>;
618
+ style: z.ZodOptional<z.ZodEnum<{
619
+ box: "box";
620
+ pixelate: "pixelate";
621
+ }>>;
622
+ }, z.core.$strict>]>>>;
623
+ only: z.ZodOptional<z.ZodObject<{
624
+ viewport: z.ZodOptional<z.ZodArray<z.ZodString>>;
625
+ color_scheme: z.ZodOptional<z.ZodArray<z.ZodEnum<{
626
+ light: "light";
627
+ dark: "dark";
628
+ }>>>;
629
+ locale: z.ZodOptional<z.ZodArray<z.ZodString>>;
630
+ }, z.core.$strict>>;
631
+ skip: z.ZodOptional<z.ZodObject<{
632
+ viewport: z.ZodOptional<z.ZodArray<z.ZodString>>;
633
+ color_scheme: z.ZodOptional<z.ZodArray<z.ZodEnum<{
634
+ light: "light";
635
+ dark: "dark";
636
+ }>>>;
637
+ locale: z.ZodOptional<z.ZodArray<z.ZodString>>;
638
+ }, z.core.$strict>>;
639
+ }, z.core.$strict>>;
640
+ }, z.core.$strict>;
3110
641
  export type FlowFile = z.infer<typeof FlowFile>;
3111
642
  /** A rectangle in screenshot pixels: finite position, finite non-negative size. */
3112
643
  export declare const BoundingBox: z.ZodObject<{
@@ -3114,17 +645,7 @@ export declare const BoundingBox: z.ZodObject<{
3114
645
  y: z.ZodNumber;
3115
646
  width: z.ZodNumber;
3116
647
  height: z.ZodNumber;
3117
- }, "strict", z.ZodTypeAny, {
3118
- width: number;
3119
- height: number;
3120
- x: number;
3121
- y: number;
3122
- }, {
3123
- width: number;
3124
- height: number;
3125
- x: number;
3126
- y: number;
3127
- }>;
648
+ }, z.core.$strict>;
3128
649
  export type BoundingBox = z.infer<typeof BoundingBox>;
3129
650
  export declare const AnnotationRecord: z.ZodObject<{
3130
651
  step: z.ZodString;
@@ -3134,194 +655,67 @@ export declare const AnnotationRecord: z.ZodObject<{
3134
655
  y: z.ZodNumber;
3135
656
  width: z.ZodNumber;
3136
657
  height: z.ZodNumber;
3137
- }, "strict", z.ZodTypeAny, {
3138
- width: number;
3139
- height: number;
3140
- x: number;
3141
- y: number;
3142
- }, {
3143
- width: number;
3144
- height: number;
3145
- x: number;
3146
- y: number;
3147
- }>>;
658
+ }, z.core.$strict>>;
3148
659
  copy: z.ZodString;
3149
- arrow_style: z.ZodOptional<z.ZodEnum<["top-left", "top-right", "bottom-left", "bottom-right", "top", "bottom", "left", "right"]>>;
3150
- /** Optional pixel offset applied to the callout + arrow at render time — see {@link NudgeOffset}. */
660
+ arrow_style: z.ZodOptional<z.ZodEnum<{
661
+ "top-left": "top-left";
662
+ "top-right": "top-right";
663
+ "bottom-left": "bottom-left";
664
+ "bottom-right": "bottom-right";
665
+ top: "top";
666
+ bottom: "bottom";
667
+ left: "left";
668
+ right: "right";
669
+ }>>;
3151
670
  nudge: z.ZodOptional<z.ZodObject<{
3152
671
  x: z.ZodNumber;
3153
672
  y: z.ZodNumber;
3154
- }, "strict", z.ZodTypeAny, {
3155
- x: number;
3156
- y: number;
3157
- }, {
3158
- x: number;
3159
- y: number;
3160
- }>>;
3161
- /**
3162
- * Optional boxes of page content (text, controls), in screenshot pixels, that the burner keeps this
3163
- * annotation's callout from covering. The target itself is not listed. `docsxai run` writes it when
3164
- * the workspace sets `annotations.obstacles`; a pipeline that knows the page layout may add it by
3165
- * hand. At most {@link MAX_OBSTACLES} boxes. The engine measures them right after the screenshot, so
3166
- * on a page that animates continuously they can differ slightly from what the image shows. Absent or
3167
- * empty: the callout goes next to the target. The structural mirror in `packages/viewer/src/annotations.ts`
3168
- * carries the same field.
3169
- */
673
+ }, z.core.$strict>>;
3170
674
  obstacles: z.ZodOptional<z.ZodArray<z.ZodObject<{
3171
675
  x: z.ZodNumber;
3172
676
  y: z.ZodNumber;
3173
677
  width: z.ZodNumber;
3174
678
  height: z.ZodNumber;
3175
- }, "strict", z.ZodTypeAny, {
3176
- width: number;
3177
- height: number;
3178
- x: number;
3179
- y: number;
3180
- }, {
3181
- width: number;
3182
- height: number;
3183
- x: number;
3184
- y: number;
3185
- }>, "many">>;
3186
- /** Optional burner placement settings (inside the target, side, alignment, pinned arrow, width) — see {@link AnnotationPlacement}. */
679
+ }, z.core.$strict>>>;
3187
680
  placement: z.ZodOptional<z.ZodObject<{
3188
- /** Put the callout inside the target when the target is big enough to hold it (no arrow). */
3189
681
  inside: z.ZodOptional<z.ZodBoolean>;
3190
- /** Only try this side of the target (falls back to the usual order when nothing fits there). */
3191
- side: z.ZodOptional<z.ZodEnum<["top", "bottom", "left", "right"]>>;
3192
- /** Where along the target's edge the callout sits: flush with its start, centred, or flush with its end. */
3193
- align: z.ZodOptional<z.ZodEnum<["start", "center", "end"]>>;
3194
- /** `nudge` moves only the callout: the arrow stays on the target and a stem joins the two. */
682
+ side: z.ZodOptional<z.ZodEnum<{
683
+ top: "top";
684
+ bottom: "bottom";
685
+ left: "left";
686
+ right: "right";
687
+ }>>;
688
+ align: z.ZodOptional<z.ZodEnum<{
689
+ start: "start";
690
+ center: "center";
691
+ end: "end";
692
+ }>>;
3195
693
  pin_arrow: z.ZodOptional<z.ZodBoolean>;
3196
- /** Widest outer callout box in px (default 280, narrower on small screenshots with obstacles). */
3197
694
  max_width: z.ZodOptional<z.ZodNumber>;
3198
- /** CSS px around the target the obstacle scan covers (default 320). Read by `docsxai run`. */
3199
695
  obstacle_radius: z.ZodOptional<z.ZodNumber>;
3200
- /** Most obstacles recorded for this annotation (default {@link MAX_OBSTACLES}). Read by `docsxai run`. */
3201
696
  obstacle_limit: z.ZodOptional<z.ZodNumber>;
3202
- }, "strict", z.ZodTypeAny, {
3203
- inside?: boolean | undefined;
3204
- side?: "top" | "bottom" | "left" | "right" | undefined;
3205
- align?: "start" | "center" | "end" | undefined;
3206
- pin_arrow?: boolean | undefined;
3207
- max_width?: number | undefined;
3208
- obstacle_radius?: number | undefined;
3209
- obstacle_limit?: number | undefined;
3210
- }, {
3211
- inside?: boolean | undefined;
3212
- side?: "top" | "bottom" | "left" | "right" | undefined;
3213
- align?: "start" | "center" | "end" | undefined;
3214
- pin_arrow?: boolean | undefined;
3215
- max_width?: number | undefined;
3216
- obstacle_radius?: number | undefined;
3217
- obstacle_limit?: number | undefined;
3218
- }>>;
3219
- /** 1-based index of this annotation *within its step's screenshot* — set only when the step has > 1 annotation, so the viewer can render a numbered badge. Absent → render as a plain (un-numbered) halo. */
697
+ }, z.core.$strict>>;
3220
698
  index: z.ZodOptional<z.ZodNumber>;
3221
- }, "strict", z.ZodTypeAny, {
3222
- selector: string;
3223
- copy: string;
3224
- step: string;
3225
- nudge?: {
3226
- x: number;
3227
- y: number;
3228
- } | undefined;
3229
- placement?: {
3230
- inside?: boolean | undefined;
3231
- side?: "top" | "bottom" | "left" | "right" | undefined;
3232
- align?: "start" | "center" | "end" | undefined;
3233
- pin_arrow?: boolean | undefined;
3234
- max_width?: number | undefined;
3235
- obstacle_radius?: number | undefined;
3236
- obstacle_limit?: number | undefined;
3237
- } | undefined;
3238
- bounding_box?: {
3239
- width: number;
3240
- height: number;
3241
- x: number;
3242
- y: number;
3243
- } | undefined;
3244
- arrow_style?: "top-left" | "top-right" | "bottom-left" | "bottom-right" | "top" | "bottom" | "left" | "right" | undefined;
3245
- obstacles?: {
3246
- width: number;
3247
- height: number;
3248
- x: number;
3249
- y: number;
3250
- }[] | undefined;
3251
- index?: number | undefined;
3252
- }, {
3253
- selector: string;
3254
- copy: string;
3255
- step: string;
3256
- nudge?: {
3257
- x: number;
3258
- y: number;
3259
- } | undefined;
3260
- placement?: {
3261
- inside?: boolean | undefined;
3262
- side?: "top" | "bottom" | "left" | "right" | undefined;
3263
- align?: "start" | "center" | "end" | undefined;
3264
- pin_arrow?: boolean | undefined;
3265
- max_width?: number | undefined;
3266
- obstacle_radius?: number | undefined;
3267
- obstacle_limit?: number | undefined;
3268
- } | undefined;
3269
- bounding_box?: {
3270
- width: number;
3271
- height: number;
3272
- x: number;
3273
- y: number;
3274
- } | undefined;
3275
- arrow_style?: "top-left" | "top-right" | "bottom-left" | "bottom-right" | "top" | "bottom" | "left" | "right" | undefined;
3276
- obstacles?: {
3277
- width: number;
3278
- height: number;
3279
- x: number;
3280
- y: number;
3281
- }[] | undefined;
3282
- index?: number | undefined;
3283
- }>;
699
+ }, z.core.$strict>;
3284
700
  export type AnnotationRecord = z.infer<typeof AnnotationRecord>;
3285
701
  export declare const AnnotationsFile: z.ZodObject<{
3286
702
  schema: z.ZodLiteral<"docsxai/annotations@1">;
3287
703
  flow: z.ZodString;
3288
- /** The matrix variant these annotations belong to. Absent for a flow without a `matrix`. */
3289
704
  variant: z.ZodOptional<z.ZodObject<{
3290
705
  id: z.ZodString;
3291
706
  locale: z.ZodOptional<z.ZodString>;
3292
- color_scheme: z.ZodOptional<z.ZodEnum<["light", "dark"]>>;
707
+ color_scheme: z.ZodOptional<z.ZodEnum<{
708
+ light: "light";
709
+ dark: "dark";
710
+ }>>;
3293
711
  viewport: z.ZodOptional<z.ZodObject<{
3294
712
  name: z.ZodString;
3295
713
  width: z.ZodNumber;
3296
714
  height: z.ZodNumber;
3297
- }, "strict", z.ZodTypeAny, {
3298
- width: number;
3299
- height: number;
3300
- name: string;
3301
- }, {
3302
- width: number;
3303
- height: number;
3304
- name: string;
3305
- }>>;
3306
- }, "strict", z.ZodTypeAny, {
3307
- id: string;
3308
- locale?: string | undefined;
3309
- viewport?: {
3310
- width: number;
3311
- height: number;
3312
- name: string;
3313
- } | undefined;
3314
- color_scheme?: "light" | "dark" | undefined;
3315
- }, {
3316
- id: string;
3317
- locale?: string | undefined;
3318
- viewport?: {
3319
- width: number;
3320
- height: number;
3321
- name: string;
3322
- } | undefined;
3323
- color_scheme?: "light" | "dark" | undefined;
3324
- }>>;
715
+ }, z.core.$strict>>;
716
+ }, z.core.$strict>>;
717
+ device_scale_factor: z.ZodOptional<z.ZodNumber>;
718
+ browser_build: z.ZodOptional<z.ZodString>;
3325
719
  annotations: z.ZodArray<z.ZodObject<{
3326
720
  step: z.ZodString;
3327
721
  selector: z.ZodString;
@@ -3330,244 +724,49 @@ export declare const AnnotationsFile: z.ZodObject<{
3330
724
  y: z.ZodNumber;
3331
725
  width: z.ZodNumber;
3332
726
  height: z.ZodNumber;
3333
- }, "strict", z.ZodTypeAny, {
3334
- width: number;
3335
- height: number;
3336
- x: number;
3337
- y: number;
3338
- }, {
3339
- width: number;
3340
- height: number;
3341
- x: number;
3342
- y: number;
3343
- }>>;
727
+ }, z.core.$strict>>;
3344
728
  copy: z.ZodString;
3345
- arrow_style: z.ZodOptional<z.ZodEnum<["top-left", "top-right", "bottom-left", "bottom-right", "top", "bottom", "left", "right"]>>;
3346
- /** Optional pixel offset applied to the callout + arrow at render time — see {@link NudgeOffset}. */
729
+ arrow_style: z.ZodOptional<z.ZodEnum<{
730
+ "top-left": "top-left";
731
+ "top-right": "top-right";
732
+ "bottom-left": "bottom-left";
733
+ "bottom-right": "bottom-right";
734
+ top: "top";
735
+ bottom: "bottom";
736
+ left: "left";
737
+ right: "right";
738
+ }>>;
3347
739
  nudge: z.ZodOptional<z.ZodObject<{
3348
740
  x: z.ZodNumber;
3349
741
  y: z.ZodNumber;
3350
- }, "strict", z.ZodTypeAny, {
3351
- x: number;
3352
- y: number;
3353
- }, {
3354
- x: number;
3355
- y: number;
3356
- }>>;
3357
- /**
3358
- * Optional boxes of page content (text, controls), in screenshot pixels, that the burner keeps this
3359
- * annotation's callout from covering. The target itself is not listed. `docsxai run` writes it when
3360
- * the workspace sets `annotations.obstacles`; a pipeline that knows the page layout may add it by
3361
- * hand. At most {@link MAX_OBSTACLES} boxes. The engine measures them right after the screenshot, so
3362
- * on a page that animates continuously they can differ slightly from what the image shows. Absent or
3363
- * empty: the callout goes next to the target. The structural mirror in `packages/viewer/src/annotations.ts`
3364
- * carries the same field.
3365
- */
742
+ }, z.core.$strict>>;
3366
743
  obstacles: z.ZodOptional<z.ZodArray<z.ZodObject<{
3367
744
  x: z.ZodNumber;
3368
745
  y: z.ZodNumber;
3369
746
  width: z.ZodNumber;
3370
747
  height: z.ZodNumber;
3371
- }, "strict", z.ZodTypeAny, {
3372
- width: number;
3373
- height: number;
3374
- x: number;
3375
- y: number;
3376
- }, {
3377
- width: number;
3378
- height: number;
3379
- x: number;
3380
- y: number;
3381
- }>, "many">>;
3382
- /** Optional burner placement settings (inside the target, side, alignment, pinned arrow, width) — see {@link AnnotationPlacement}. */
748
+ }, z.core.$strict>>>;
3383
749
  placement: z.ZodOptional<z.ZodObject<{
3384
- /** Put the callout inside the target when the target is big enough to hold it (no arrow). */
3385
750
  inside: z.ZodOptional<z.ZodBoolean>;
3386
- /** Only try this side of the target (falls back to the usual order when nothing fits there). */
3387
- side: z.ZodOptional<z.ZodEnum<["top", "bottom", "left", "right"]>>;
3388
- /** Where along the target's edge the callout sits: flush with its start, centred, or flush with its end. */
3389
- align: z.ZodOptional<z.ZodEnum<["start", "center", "end"]>>;
3390
- /** `nudge` moves only the callout: the arrow stays on the target and a stem joins the two. */
751
+ side: z.ZodOptional<z.ZodEnum<{
752
+ top: "top";
753
+ bottom: "bottom";
754
+ left: "left";
755
+ right: "right";
756
+ }>>;
757
+ align: z.ZodOptional<z.ZodEnum<{
758
+ start: "start";
759
+ center: "center";
760
+ end: "end";
761
+ }>>;
3391
762
  pin_arrow: z.ZodOptional<z.ZodBoolean>;
3392
- /** Widest outer callout box in px (default 280, narrower on small screenshots with obstacles). */
3393
763
  max_width: z.ZodOptional<z.ZodNumber>;
3394
- /** CSS px around the target the obstacle scan covers (default 320). Read by `docsxai run`. */
3395
764
  obstacle_radius: z.ZodOptional<z.ZodNumber>;
3396
- /** Most obstacles recorded for this annotation (default {@link MAX_OBSTACLES}). Read by `docsxai run`. */
3397
765
  obstacle_limit: z.ZodOptional<z.ZodNumber>;
3398
- }, "strict", z.ZodTypeAny, {
3399
- inside?: boolean | undefined;
3400
- side?: "top" | "bottom" | "left" | "right" | undefined;
3401
- align?: "start" | "center" | "end" | undefined;
3402
- pin_arrow?: boolean | undefined;
3403
- max_width?: number | undefined;
3404
- obstacle_radius?: number | undefined;
3405
- obstacle_limit?: number | undefined;
3406
- }, {
3407
- inside?: boolean | undefined;
3408
- side?: "top" | "bottom" | "left" | "right" | undefined;
3409
- align?: "start" | "center" | "end" | undefined;
3410
- pin_arrow?: boolean | undefined;
3411
- max_width?: number | undefined;
3412
- obstacle_radius?: number | undefined;
3413
- obstacle_limit?: number | undefined;
3414
- }>>;
3415
- /** 1-based index of this annotation *within its step's screenshot* — set only when the step has > 1 annotation, so the viewer can render a numbered badge. Absent → render as a plain (un-numbered) halo. */
766
+ }, z.core.$strict>>;
3416
767
  index: z.ZodOptional<z.ZodNumber>;
3417
- }, "strict", z.ZodTypeAny, {
3418
- selector: string;
3419
- copy: string;
3420
- step: string;
3421
- nudge?: {
3422
- x: number;
3423
- y: number;
3424
- } | undefined;
3425
- placement?: {
3426
- inside?: boolean | undefined;
3427
- side?: "top" | "bottom" | "left" | "right" | undefined;
3428
- align?: "start" | "center" | "end" | undefined;
3429
- pin_arrow?: boolean | undefined;
3430
- max_width?: number | undefined;
3431
- obstacle_radius?: number | undefined;
3432
- obstacle_limit?: number | undefined;
3433
- } | undefined;
3434
- bounding_box?: {
3435
- width: number;
3436
- height: number;
3437
- x: number;
3438
- y: number;
3439
- } | undefined;
3440
- arrow_style?: "top-left" | "top-right" | "bottom-left" | "bottom-right" | "top" | "bottom" | "left" | "right" | undefined;
3441
- obstacles?: {
3442
- width: number;
3443
- height: number;
3444
- x: number;
3445
- y: number;
3446
- }[] | undefined;
3447
- index?: number | undefined;
3448
- }, {
3449
- selector: string;
3450
- copy: string;
3451
- step: string;
3452
- nudge?: {
3453
- x: number;
3454
- y: number;
3455
- } | undefined;
3456
- placement?: {
3457
- inside?: boolean | undefined;
3458
- side?: "top" | "bottom" | "left" | "right" | undefined;
3459
- align?: "start" | "center" | "end" | undefined;
3460
- pin_arrow?: boolean | undefined;
3461
- max_width?: number | undefined;
3462
- obstacle_radius?: number | undefined;
3463
- obstacle_limit?: number | undefined;
3464
- } | undefined;
3465
- bounding_box?: {
3466
- width: number;
3467
- height: number;
3468
- x: number;
3469
- y: number;
3470
- } | undefined;
3471
- arrow_style?: "top-left" | "top-right" | "bottom-left" | "bottom-right" | "top" | "bottom" | "left" | "right" | undefined;
3472
- obstacles?: {
3473
- width: number;
3474
- height: number;
3475
- x: number;
3476
- y: number;
3477
- }[] | undefined;
3478
- index?: number | undefined;
3479
- }>, "many">;
3480
- }, "strict", z.ZodTypeAny, {
3481
- annotations: {
3482
- selector: string;
3483
- copy: string;
3484
- step: string;
3485
- nudge?: {
3486
- x: number;
3487
- y: number;
3488
- } | undefined;
3489
- placement?: {
3490
- inside?: boolean | undefined;
3491
- side?: "top" | "bottom" | "left" | "right" | undefined;
3492
- align?: "start" | "center" | "end" | undefined;
3493
- pin_arrow?: boolean | undefined;
3494
- max_width?: number | undefined;
3495
- obstacle_radius?: number | undefined;
3496
- obstacle_limit?: number | undefined;
3497
- } | undefined;
3498
- bounding_box?: {
3499
- width: number;
3500
- height: number;
3501
- x: number;
3502
- y: number;
3503
- } | undefined;
3504
- arrow_style?: "top-left" | "top-right" | "bottom-left" | "bottom-right" | "top" | "bottom" | "left" | "right" | undefined;
3505
- obstacles?: {
3506
- width: number;
3507
- height: number;
3508
- x: number;
3509
- y: number;
3510
- }[] | undefined;
3511
- index?: number | undefined;
3512
- }[];
3513
- schema: "docsxai/annotations@1";
3514
- flow: string;
3515
- variant?: {
3516
- id: string;
3517
- locale?: string | undefined;
3518
- viewport?: {
3519
- width: number;
3520
- height: number;
3521
- name: string;
3522
- } | undefined;
3523
- color_scheme?: "light" | "dark" | undefined;
3524
- } | undefined;
3525
- }, {
3526
- annotations: {
3527
- selector: string;
3528
- copy: string;
3529
- step: string;
3530
- nudge?: {
3531
- x: number;
3532
- y: number;
3533
- } | undefined;
3534
- placement?: {
3535
- inside?: boolean | undefined;
3536
- side?: "top" | "bottom" | "left" | "right" | undefined;
3537
- align?: "start" | "center" | "end" | undefined;
3538
- pin_arrow?: boolean | undefined;
3539
- max_width?: number | undefined;
3540
- obstacle_radius?: number | undefined;
3541
- obstacle_limit?: number | undefined;
3542
- } | undefined;
3543
- bounding_box?: {
3544
- width: number;
3545
- height: number;
3546
- x: number;
3547
- y: number;
3548
- } | undefined;
3549
- arrow_style?: "top-left" | "top-right" | "bottom-left" | "bottom-right" | "top" | "bottom" | "left" | "right" | undefined;
3550
- obstacles?: {
3551
- width: number;
3552
- height: number;
3553
- x: number;
3554
- y: number;
3555
- }[] | undefined;
3556
- index?: number | undefined;
3557
- }[];
3558
- schema: "docsxai/annotations@1";
3559
- flow: string;
3560
- variant?: {
3561
- id: string;
3562
- locale?: string | undefined;
3563
- viewport?: {
3564
- width: number;
3565
- height: number;
3566
- name: string;
3567
- } | undefined;
3568
- color_scheme?: "light" | "dark" | undefined;
3569
- } | undefined;
3570
- }>;
768
+ }, z.core.$strict>>;
769
+ }, z.core.$strict>;
3571
770
  export type AnnotationsFile = z.infer<typeof AnnotationsFile>;
3572
771
  export declare const StyleArtifact: z.ZodObject<{
3573
772
  schema: z.ZodLiteral<"docsxai/style@1">;
@@ -3576,223 +775,104 @@ export declare const StyleArtifact: z.ZodObject<{
3576
775
  terminology: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3577
776
  visual: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3578
777
  localisation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3579
- /** Categories of testing-jargon the commit stage must strip from user-facing prose. */
3580
- pruning_rules: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3581
- }, "strict", z.ZodTypeAny, {
3582
- schema: "docsxai/style@1";
3583
- voice?: Record<string, unknown> | undefined;
3584
- structure?: Record<string, unknown> | undefined;
3585
- terminology?: Record<string, string> | undefined;
3586
- visual?: Record<string, unknown> | undefined;
3587
- localisation?: Record<string, unknown> | undefined;
3588
- pruning_rules?: string[] | undefined;
3589
- }, {
3590
- schema: "docsxai/style@1";
3591
- voice?: Record<string, unknown> | undefined;
3592
- structure?: Record<string, unknown> | undefined;
3593
- terminology?: Record<string, string> | undefined;
3594
- visual?: Record<string, unknown> | undefined;
3595
- localisation?: Record<string, unknown> | undefined;
3596
- pruning_rules?: string[] | undefined;
3597
- }>;
778
+ pruning_rules: z.ZodOptional<z.ZodArray<z.ZodString>>;
779
+ }, z.core.$strict>;
3598
780
  export type StyleArtifact = z.infer<typeof StyleArtifact>;
3599
781
  export declare const LocatorManifest: z.ZodObject<{
3600
782
  schema: z.ZodLiteral<"docsxai/locators@1">;
3601
- /** flow name → locator name → canonical selector. One per name; no fallbacks. */
3602
783
  flows: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>;
3603
- }, "strict", z.ZodTypeAny, {
3604
- schema: "docsxai/locators@1";
3605
- flows: Record<string, Record<string, string>>;
3606
- }, {
3607
- schema: "docsxai/locators@1";
3608
- flows: Record<string, Record<string, string>>;
3609
- }>;
784
+ }, z.core.$strict>;
3610
785
  export type LocatorManifest = z.infer<typeof LocatorManifest>;
3611
- export declare const StrategyName: z.ZodEnum<["api-login", "jwt-injection", "ui-form", "http-basic", "mtls", "pat-header", "email-otp", "totp", "webauthn", "manual-capture", "test-backdoor"]>;
786
+ export declare const StrategyName: z.ZodEnum<{
787
+ "api-login": "api-login";
788
+ "jwt-injection": "jwt-injection";
789
+ "ui-form": "ui-form";
790
+ "http-basic": "http-basic";
791
+ mtls: "mtls";
792
+ "pat-header": "pat-header";
793
+ "email-otp": "email-otp";
794
+ totp: "totp";
795
+ webauthn: "webauthn";
796
+ "manual-capture": "manual-capture";
797
+ "test-backdoor": "test-backdoor";
798
+ }>;
3612
799
  export type StrategyName = z.infer<typeof StrategyName>;
3613
800
  /** `session` = use the captured session's own lifetime; otherwise a duration string (`30m`, `1h`) or ms number. */
3614
- export declare const CacheTtl: z.ZodUnion<[z.ZodLiteral<"session">, z.ZodString, z.ZodNumber]>;
801
+ export declare const CacheTtl: z.ZodUnion<readonly [z.ZodLiteral<"session">, z.ZodString, z.ZodNumber]>;
3615
802
  export type CacheTtl = z.infer<typeof CacheTtl>;
3616
803
  export declare const RoleAuth: z.ZodObject<{
3617
- strategy: z.ZodEnum<["api-login", "jwt-injection", "ui-form", "http-basic", "mtls", "pat-header", "email-otp", "totp", "webauthn", "manual-capture", "test-backdoor"]>;
3618
- /** Env-var *names* holding credentials — never the values. May be `{}` (e.g. `manual-capture` needs none). */
804
+ strategy: z.ZodEnum<{
805
+ "api-login": "api-login";
806
+ "jwt-injection": "jwt-injection";
807
+ "ui-form": "ui-form";
808
+ "http-basic": "http-basic";
809
+ mtls: "mtls";
810
+ "pat-header": "pat-header";
811
+ "email-otp": "email-otp";
812
+ totp: "totp";
813
+ webauthn: "webauthn";
814
+ "manual-capture": "manual-capture";
815
+ "test-backdoor": "test-backdoor";
816
+ }>;
3619
817
  creds_env: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
3620
818
  options: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3621
819
  cache: z.ZodDefault<z.ZodObject<{
3622
820
  enabled: z.ZodDefault<z.ZodBoolean>;
3623
- store: z.ZodDefault<z.ZodEnum<["local", "backend"]>>;
3624
- /** Fallback expiry when no `auth_cookie` is set/found: a duration, or `session` (→ a 1h default). */
3625
- ttl: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<"session">, z.ZodString, z.ZodNumber]>>;
3626
- /**
3627
- * Name of the app's actual auth/session cookie. When set, the cached session's `expiresAt` is *that*
3628
- * cookie's expiry — the real bound — rather than the `ttl` guess. Identify it from the captured jar
3629
- * (`capture-auth` prints it): it's on the app's domain, long-lived (not an ephemeral IdP scratch
3630
- * cookie), e.g. `AppSession.Production` / `.AspNetCore.Cookies` / `session`. Optional.
3631
- */
821
+ store: z.ZodDefault<z.ZodEnum<{
822
+ local: "local";
823
+ backend: "backend";
824
+ }>>;
825
+ ttl: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<"session">, z.ZodString, z.ZodNumber]>>;
3632
826
  auth_cookie: z.ZodOptional<z.ZodString>;
3633
- }, "strict", z.ZodTypeAny, {
3634
- enabled: boolean;
3635
- store: "local" | "backend";
3636
- ttl: string | number;
3637
- auth_cookie?: string | undefined;
3638
- }, {
3639
- enabled?: boolean | undefined;
3640
- store?: "local" | "backend" | undefined;
3641
- ttl?: string | number | undefined;
3642
- auth_cookie?: string | undefined;
3643
- }>>;
3644
- }, "strict", z.ZodTypeAny, {
3645
- options: Record<string, unknown>;
3646
- strategy: "api-login" | "jwt-injection" | "ui-form" | "http-basic" | "mtls" | "pat-header" | "email-otp" | "totp" | "webauthn" | "manual-capture" | "test-backdoor";
3647
- creds_env: Record<string, string>;
3648
- cache: {
3649
- enabled: boolean;
3650
- store: "local" | "backend";
3651
- ttl: string | number;
3652
- auth_cookie?: string | undefined;
3653
- };
3654
- }, {
3655
- strategy: "api-login" | "jwt-injection" | "ui-form" | "http-basic" | "mtls" | "pat-header" | "email-otp" | "totp" | "webauthn" | "manual-capture" | "test-backdoor";
3656
- options?: Record<string, unknown> | undefined;
3657
- creds_env?: Record<string, string> | undefined;
3658
- cache?: {
3659
- enabled?: boolean | undefined;
3660
- store?: "local" | "backend" | undefined;
3661
- ttl?: string | number | undefined;
3662
- auth_cookie?: string | undefined;
3663
- } | undefined;
3664
- }>;
827
+ }, z.core.$strict>>;
828
+ }, z.core.$strict>;
3665
829
  export type RoleAuth = z.infer<typeof RoleAuth>;
3666
- export declare const AuthStrategyDescriptor: z.ZodEffects<z.ZodObject<{
830
+ export declare const AuthStrategyDescriptor: z.ZodObject<{
3667
831
  schema: z.ZodLiteral<"docsxai/auth-strategy@1">;
3668
832
  default_role: z.ZodString;
3669
833
  roles: z.ZodRecord<z.ZodString, z.ZodObject<{
3670
- strategy: z.ZodEnum<["api-login", "jwt-injection", "ui-form", "http-basic", "mtls", "pat-header", "email-otp", "totp", "webauthn", "manual-capture", "test-backdoor"]>;
3671
- /** Env-var *names* holding credentials — never the values. May be `{}` (e.g. `manual-capture` needs none). */
834
+ strategy: z.ZodEnum<{
835
+ "api-login": "api-login";
836
+ "jwt-injection": "jwt-injection";
837
+ "ui-form": "ui-form";
838
+ "http-basic": "http-basic";
839
+ mtls: "mtls";
840
+ "pat-header": "pat-header";
841
+ "email-otp": "email-otp";
842
+ totp: "totp";
843
+ webauthn: "webauthn";
844
+ "manual-capture": "manual-capture";
845
+ "test-backdoor": "test-backdoor";
846
+ }>;
3672
847
  creds_env: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
3673
848
  options: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3674
849
  cache: z.ZodDefault<z.ZodObject<{
3675
850
  enabled: z.ZodDefault<z.ZodBoolean>;
3676
- store: z.ZodDefault<z.ZodEnum<["local", "backend"]>>;
3677
- /** Fallback expiry when no `auth_cookie` is set/found: a duration, or `session` (→ a 1h default). */
3678
- ttl: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<"session">, z.ZodString, z.ZodNumber]>>;
3679
- /**
3680
- * Name of the app's actual auth/session cookie. When set, the cached session's `expiresAt` is *that*
3681
- * cookie's expiry — the real bound — rather than the `ttl` guess. Identify it from the captured jar
3682
- * (`capture-auth` prints it): it's on the app's domain, long-lived (not an ephemeral IdP scratch
3683
- * cookie), e.g. `AppSession.Production` / `.AspNetCore.Cookies` / `session`. Optional.
3684
- */
851
+ store: z.ZodDefault<z.ZodEnum<{
852
+ local: "local";
853
+ backend: "backend";
854
+ }>>;
855
+ ttl: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<"session">, z.ZodString, z.ZodNumber]>>;
3685
856
  auth_cookie: z.ZodOptional<z.ZodString>;
3686
- }, "strict", z.ZodTypeAny, {
3687
- enabled: boolean;
3688
- store: "local" | "backend";
3689
- ttl: string | number;
3690
- auth_cookie?: string | undefined;
3691
- }, {
3692
- enabled?: boolean | undefined;
3693
- store?: "local" | "backend" | undefined;
3694
- ttl?: string | number | undefined;
3695
- auth_cookie?: string | undefined;
3696
- }>>;
3697
- }, "strict", z.ZodTypeAny, {
3698
- options: Record<string, unknown>;
3699
- strategy: "api-login" | "jwt-injection" | "ui-form" | "http-basic" | "mtls" | "pat-header" | "email-otp" | "totp" | "webauthn" | "manual-capture" | "test-backdoor";
3700
- creds_env: Record<string, string>;
3701
- cache: {
3702
- enabled: boolean;
3703
- store: "local" | "backend";
3704
- ttl: string | number;
3705
- auth_cookie?: string | undefined;
3706
- };
3707
- }, {
3708
- strategy: "api-login" | "jwt-injection" | "ui-form" | "http-basic" | "mtls" | "pat-header" | "email-otp" | "totp" | "webauthn" | "manual-capture" | "test-backdoor";
3709
- options?: Record<string, unknown> | undefined;
3710
- creds_env?: Record<string, string> | undefined;
3711
- cache?: {
3712
- enabled?: boolean | undefined;
3713
- store?: "local" | "backend" | undefined;
3714
- ttl?: string | number | undefined;
3715
- auth_cookie?: string | undefined;
3716
- } | undefined;
3717
- }>>;
3718
- }, "strict", z.ZodTypeAny, {
3719
- schema: "docsxai/auth-strategy@1";
3720
- default_role: string;
3721
- roles: Record<string, {
3722
- options: Record<string, unknown>;
3723
- strategy: "api-login" | "jwt-injection" | "ui-form" | "http-basic" | "mtls" | "pat-header" | "email-otp" | "totp" | "webauthn" | "manual-capture" | "test-backdoor";
3724
- creds_env: Record<string, string>;
3725
- cache: {
3726
- enabled: boolean;
3727
- store: "local" | "backend";
3728
- ttl: string | number;
3729
- auth_cookie?: string | undefined;
3730
- };
3731
- }>;
3732
- }, {
3733
- schema: "docsxai/auth-strategy@1";
3734
- default_role: string;
3735
- roles: Record<string, {
3736
- strategy: "api-login" | "jwt-injection" | "ui-form" | "http-basic" | "mtls" | "pat-header" | "email-otp" | "totp" | "webauthn" | "manual-capture" | "test-backdoor";
3737
- options?: Record<string, unknown> | undefined;
3738
- creds_env?: Record<string, string> | undefined;
3739
- cache?: {
3740
- enabled?: boolean | undefined;
3741
- store?: "local" | "backend" | undefined;
3742
- ttl?: string | number | undefined;
3743
- auth_cookie?: string | undefined;
3744
- } | undefined;
3745
- }>;
3746
- }>, {
3747
- schema: "docsxai/auth-strategy@1";
3748
- default_role: string;
3749
- roles: Record<string, {
3750
- options: Record<string, unknown>;
3751
- strategy: "api-login" | "jwt-injection" | "ui-form" | "http-basic" | "mtls" | "pat-header" | "email-otp" | "totp" | "webauthn" | "manual-capture" | "test-backdoor";
3752
- creds_env: Record<string, string>;
3753
- cache: {
3754
- enabled: boolean;
3755
- store: "local" | "backend";
3756
- ttl: string | number;
3757
- auth_cookie?: string | undefined;
3758
- };
3759
- }>;
3760
- }, {
3761
- schema: "docsxai/auth-strategy@1";
3762
- default_role: string;
3763
- roles: Record<string, {
3764
- strategy: "api-login" | "jwt-injection" | "ui-form" | "http-basic" | "mtls" | "pat-header" | "email-otp" | "totp" | "webauthn" | "manual-capture" | "test-backdoor";
3765
- options?: Record<string, unknown> | undefined;
3766
- creds_env?: Record<string, string> | undefined;
3767
- cache?: {
3768
- enabled?: boolean | undefined;
3769
- store?: "local" | "backend" | undefined;
3770
- ttl?: string | number | undefined;
3771
- auth_cookie?: string | undefined;
3772
- } | undefined;
3773
- }>;
3774
- }>;
857
+ }, z.core.$strict>>;
858
+ }, z.core.$strict>>;
859
+ }, z.core.$strict>;
3775
860
  export type AuthStrategyDescriptor = z.infer<typeof AuthStrategyDescriptor>;
3776
- export declare const RevisionKind: z.ZodEnum<["calibrate", "run", "edit"]>;
861
+ export declare const RevisionKind: z.ZodEnum<{
862
+ calibrate: "calibrate";
863
+ run: "run";
864
+ edit: "edit";
865
+ }>;
3777
866
  export type RevisionKind = z.infer<typeof RevisionKind>;
3778
867
  export declare const RevisionMeta: z.ZodObject<{
3779
868
  rev_id: z.ZodString;
3780
869
  parent_rev_id: z.ZodNullable<z.ZodString>;
3781
- kind: z.ZodEnum<["calibrate", "run", "edit"]>;
870
+ kind: z.ZodEnum<{
871
+ calibrate: "calibrate";
872
+ run: "run";
873
+ edit: "edit";
874
+ }>;
3782
875
  author: z.ZodString;
3783
- /** ISO-8601 timestamp. */
3784
876
  timestamp: z.ZodString;
3785
- }, "strict", z.ZodTypeAny, {
3786
- rev_id: string;
3787
- parent_rev_id: string | null;
3788
- kind: "calibrate" | "run" | "edit";
3789
- author: string;
3790
- timestamp: string;
3791
- }, {
3792
- rev_id: string;
3793
- parent_rev_id: string | null;
3794
- kind: "calibrate" | "run" | "edit";
3795
- author: string;
3796
- timestamp: string;
3797
- }>;
877
+ }, z.core.$strict>;
3798
878
  export type RevisionMeta = z.infer<typeof RevisionMeta>;