@docsxai/engine 0.2.0 → 0.3.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +26 -6
- package/dist/address-class.d.ts +14 -0
- package/dist/address-class.js +151 -0
- package/dist/auth/api-login.js +6 -2
- package/dist/backend-client-contracts.d.ts +2 -0
- package/dist/calibrate.js +5 -0
- package/dist/cli-commands-authoring.js +23 -4
- package/dist/cli-commands-backend.js +2 -2
- package/dist/cli-commands-docpack.d.ts +5 -0
- package/dist/cli-commands-docpack.js +70 -24
- package/dist/cli-commands-pack.d.ts +2 -0
- package/dist/cli-commands-pack.js +69 -0
- package/dist/cli-commands-session.js +92 -88
- package/dist/cli-retired.d.ts +6 -0
- package/dist/cli-retired.js +12 -0
- package/dist/cli-usage.d.ts +1 -1
- package/dist/cli-usage.js +53 -5
- package/dist/cli-verify.d.ts +14 -0
- package/dist/cli-verify.js +54 -0
- package/dist/cli.js +14 -1
- package/dist/deprecation.d.ts +19 -0
- package/dist/deprecation.js +32 -0
- package/dist/diagnose.d.ts +25 -0
- package/dist/diagnose.js +69 -3
- package/dist/diff-compute.js +1 -0
- package/dist/doc-pack-io.d.ts +14 -0
- package/dist/doc-pack-io.js +121 -14
- package/dist/doc-pack.d.ts +2165 -181
- package/dist/doc-pack.js +152 -42
- package/dist/doctor-checks.d.ts +1 -1
- package/dist/doctor-checks.js +29 -5
- package/dist/driver-budget.d.ts +6 -0
- package/dist/driver-budget.js +15 -0
- package/dist/egress-guard.d.ts +58 -0
- package/dist/egress-guard.js +136 -0
- package/dist/environment-spec.d.ts +67 -0
- package/dist/environment-spec.js +38 -0
- package/dist/export/playwright-test.js +42 -10
- package/dist/flow-file.d.ts +7 -1
- package/dist/flow-file.js +21 -1
- package/dist/flow-halt.d.ts +16 -0
- package/dist/flow-halt.js +76 -0
- package/dist/flow-hidden.d.ts +9 -0
- package/dist/flow-hidden.js +20 -0
- package/dist/flow-lint.js +91 -1
- package/dist/flow-matrix-lint.d.ts +10 -0
- package/dist/flow-matrix-lint.js +40 -0
- package/dist/flow-matrix.d.ts +44 -0
- package/dist/flow-matrix.js +238 -0
- package/dist/flow-name-rules.d.ts +15 -0
- package/dist/flow-name-rules.js +39 -0
- package/dist/flow-runtime.d.ts +67 -21
- package/dist/flow-runtime.js +72 -110
- package/dist/flow-success.d.ts +3 -0
- package/dist/flow-success.js +37 -0
- package/dist/flow-tree.d.ts +2 -0
- package/dist/flow-tree.js +17 -5
- package/dist/flow-wait.d.ts +3 -0
- package/dist/flow-wait.js +22 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +6 -0
- package/dist/matrix-spec.d.ts +145 -0
- package/dist/matrix-spec.js +120 -0
- package/dist/obstacles.d.ts +33 -0
- package/dist/obstacles.js +72 -0
- package/dist/page-hide.d.ts +10 -0
- package/dist/page-hide.js +45 -0
- package/dist/page-nearby-boxes.d.ts +9 -0
- package/dist/page-nearby-boxes.js +92 -0
- package/dist/page-settle.d.ts +39 -0
- package/dist/page-settle.js +142 -0
- package/dist/playwright-driver.d.ts +30 -8
- package/dist/playwright-driver.js +88 -18
- package/dist/run-flows.d.ts +40 -0
- package/dist/run-flows.js +129 -0
- package/dist/upload-path.d.ts +15 -0
- package/dist/upload-path.js +63 -0
- package/dist/verify-compare.d.ts +43 -0
- package/dist/verify-compare.js +237 -0
- package/dist/verify-determinism.d.ts +16 -0
- package/dist/verify-determinism.js +88 -0
- package/dist/verify-report.d.ts +53 -0
- package/dist/verify-report.js +141 -0
- package/dist/verify-tree.d.ts +27 -0
- package/dist/verify-tree.js +95 -0
- package/dist/viewer-bin.d.ts +6 -0
- package/dist/viewer-bin.js +24 -0
- package/dist/workspace.d.ts +8 -0
- package/package.json +7 -6
package/dist/doc-pack.d.ts
CHANGED
|
@@ -1,18 +1,24 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
+
export { ColorScheme, EnvironmentSpec, LocaleTag, VIEWPORT_PRESETS, ViewportPreset, ViewportSize, } from "./environment-spec.js";
|
|
3
|
+
export { MAX_MATRIX_VARIANTS, MatrixSpec, MatrixViewport, VariantInfo, VariantSelector, } from "./matrix-spec.js";
|
|
2
4
|
export declare const ArrowStyle: z.ZodEnum<["top-left", "top-right", "bottom-left", "bottom-right", "top", "bottom", "left", "right"]>;
|
|
3
5
|
export type ArrowStyle = z.infer<typeof ArrowStyle>;
|
|
4
6
|
/** A locator reference (`$play_button`) resolved against a flow-file's `locators` map, or an inline selector. */
|
|
5
7
|
export declare const LocatorRef: z.ZodString;
|
|
6
8
|
export type LocatorRef = z.infer<typeof LocatorRef>;
|
|
7
|
-
export declare const ActionType: z.ZodEnum<["navigate", "click", "fill", "upload", "press", "hover", "select", "check", "uncheck", "wait"]>;
|
|
9
|
+
export declare const ActionType: z.ZodEnum<["navigate", "click", "fill", "upload", "press", "hover", "select", "check", "uncheck", "wait", "hide", "show"]>;
|
|
8
10
|
export type ActionType = z.infer<typeof ActionType>;
|
|
11
|
+
/** Bounds for a step's `timeout_ms`, in milliseconds. 30 s is Playwright's own default wait. */
|
|
12
|
+
export declare const STEP_TIMEOUT_MIN_MS = 100;
|
|
13
|
+
export declare const STEP_TIMEOUT_MAX_MS = 30000;
|
|
9
14
|
/**
|
|
10
|
-
* What to wait for after a step's action settles. `network_idle` / `element_stable` / `load` are
|
|
11
|
-
* primitives
|
|
15
|
+
* What to wait for after a step's action settles. `network_idle` / `element_stable` / `load` / `settled` are
|
|
16
|
+
* 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
|
|
12
18
|
* `timeout_ms` to override that (e.g. waiting on a multi-minute backend op that mounts a "done" element);
|
|
13
19
|
* `{ timeout_ms }` alone is a blind sleep (last resort — for animations, not state).
|
|
14
20
|
*/
|
|
15
|
-
export declare const WaitSpec: z.ZodUnion<[z.ZodEnum<["network_idle", "element_stable", "load"]>, z.ZodObject<{
|
|
21
|
+
export declare const WaitSpec: z.ZodUnion<[z.ZodEnum<["network_idle", "element_stable", "load", "settled"]>, z.ZodObject<{
|
|
16
22
|
timeout_ms: z.ZodNumber;
|
|
17
23
|
}, "strict", z.ZodTypeAny, {
|
|
18
24
|
timeout_ms: number;
|
|
@@ -82,68 +88,6 @@ export declare const NudgeOffset: z.ZodObject<{
|
|
|
82
88
|
y: number;
|
|
83
89
|
}>;
|
|
84
90
|
export type NudgeOffset = z.infer<typeof NudgeOffset>;
|
|
85
|
-
export declare const ViewportSize: z.ZodObject<{
|
|
86
|
-
width: z.ZodNumber;
|
|
87
|
-
height: z.ZodNumber;
|
|
88
|
-
}, "strict", z.ZodTypeAny, {
|
|
89
|
-
width: number;
|
|
90
|
-
height: number;
|
|
91
|
-
}, {
|
|
92
|
-
width: number;
|
|
93
|
-
height: number;
|
|
94
|
-
}>;
|
|
95
|
-
export type ViewportSize = z.infer<typeof ViewportSize>;
|
|
96
|
-
export declare const ViewportPreset: z.ZodEnum<["desktop", "tablet", "mobile"]>;
|
|
97
|
-
export type ViewportPreset = z.infer<typeof ViewportPreset>;
|
|
98
|
-
/** Named viewport presets — `desktop` 1440×900, `tablet` 834×1112, `mobile` 390×844. */
|
|
99
|
-
export declare const VIEWPORT_PRESETS: Record<ViewportPreset, ViewportSize>;
|
|
100
|
-
/**
|
|
101
|
-
* Deterministic execution environment for a flow. All fields optional; applied at browser-context
|
|
102
|
-
* creation (so the whole flow runs under them). With `extends`, the child flow's `environment`
|
|
103
|
-
* wins per-key over the parent's (a child can pin just `viewport` and inherit the parent's clock).
|
|
104
|
-
*/
|
|
105
|
-
export declare const EnvironmentSpec: z.ZodObject<{
|
|
106
|
-
/** ISO-8601 instant the page clock is frozen at — `new Date()` etc. return this for the whole run. */
|
|
107
|
-
clock: z.ZodOptional<z.ZodString>;
|
|
108
|
-
/** BCP-47 language tag (e.g. `en-GB`). */
|
|
109
|
-
locale: z.ZodOptional<z.ZodString>;
|
|
110
|
-
/** IANA timezone (e.g. `Europe/Amsterdam`). */
|
|
111
|
-
timezone: z.ZodOptional<z.ZodString>;
|
|
112
|
-
/** `{ width, height }` in CSS pixels, or a named preset — see {@link VIEWPORT_PRESETS}. */
|
|
113
|
-
viewport: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["desktop", "tablet", "mobile"]>, z.ZodObject<{
|
|
114
|
-
width: z.ZodNumber;
|
|
115
|
-
height: z.ZodNumber;
|
|
116
|
-
}, "strict", z.ZodTypeAny, {
|
|
117
|
-
width: number;
|
|
118
|
-
height: number;
|
|
119
|
-
}, {
|
|
120
|
-
width: number;
|
|
121
|
-
height: number;
|
|
122
|
-
}>]>>;
|
|
123
|
-
color_scheme: z.ZodOptional<z.ZodEnum<["light", "dark"]>>;
|
|
124
|
-
reduced_motion: z.ZodOptional<z.ZodBoolean>;
|
|
125
|
-
}, "strict", z.ZodTypeAny, {
|
|
126
|
-
clock?: string | undefined;
|
|
127
|
-
locale?: string | undefined;
|
|
128
|
-
timezone?: string | undefined;
|
|
129
|
-
viewport?: {
|
|
130
|
-
width: number;
|
|
131
|
-
height: number;
|
|
132
|
-
} | "desktop" | "tablet" | "mobile" | undefined;
|
|
133
|
-
color_scheme?: "light" | "dark" | undefined;
|
|
134
|
-
reduced_motion?: boolean | undefined;
|
|
135
|
-
}, {
|
|
136
|
-
clock?: string | undefined;
|
|
137
|
-
locale?: string | undefined;
|
|
138
|
-
timezone?: string | undefined;
|
|
139
|
-
viewport?: {
|
|
140
|
-
width: number;
|
|
141
|
-
height: number;
|
|
142
|
-
} | "desktop" | "tablet" | "mobile" | undefined;
|
|
143
|
-
color_scheme?: "light" | "dark" | undefined;
|
|
144
|
-
reduced_motion?: boolean | undefined;
|
|
145
|
-
}>;
|
|
146
|
-
export type EnvironmentSpec = z.infer<typeof EnvironmentSpec>;
|
|
147
91
|
export declare const RedactionStyle: z.ZodEnum<["box", "pixelate"]>;
|
|
148
92
|
export type RedactionStyle = z.infer<typeof RedactionStyle>;
|
|
149
93
|
/** A fixed rectangle in CSS pixels (viewport coordinates), scaled to device pixels at capture time. */
|
|
@@ -153,15 +97,15 @@ export declare const RedactionRegion: z.ZodObject<{
|
|
|
153
97
|
width: z.ZodNumber;
|
|
154
98
|
height: z.ZodNumber;
|
|
155
99
|
}, "strict", z.ZodTypeAny, {
|
|
156
|
-
x: number;
|
|
157
|
-
y: number;
|
|
158
100
|
width: number;
|
|
159
101
|
height: number;
|
|
160
|
-
}, {
|
|
161
102
|
x: number;
|
|
162
103
|
y: number;
|
|
104
|
+
}, {
|
|
163
105
|
width: number;
|
|
164
106
|
height: number;
|
|
107
|
+
x: number;
|
|
108
|
+
y: number;
|
|
165
109
|
}>;
|
|
166
110
|
export type RedactionRegion = z.infer<typeof RedactionRegion>;
|
|
167
111
|
/**
|
|
@@ -188,35 +132,80 @@ export declare const RedactionSpec: z.ZodUnion<[z.ZodObject<{
|
|
|
188
132
|
width: z.ZodNumber;
|
|
189
133
|
height: z.ZodNumber;
|
|
190
134
|
}, "strict", z.ZodTypeAny, {
|
|
191
|
-
x: number;
|
|
192
|
-
y: number;
|
|
193
135
|
width: number;
|
|
194
136
|
height: number;
|
|
195
|
-
}, {
|
|
196
137
|
x: number;
|
|
197
138
|
y: number;
|
|
139
|
+
}, {
|
|
198
140
|
width: number;
|
|
199
141
|
height: number;
|
|
142
|
+
x: number;
|
|
143
|
+
y: number;
|
|
200
144
|
}>;
|
|
201
145
|
style: z.ZodOptional<z.ZodEnum<["box", "pixelate"]>>;
|
|
202
146
|
}, "strict", z.ZodTypeAny, {
|
|
203
147
|
region: {
|
|
204
|
-
x: number;
|
|
205
|
-
y: number;
|
|
206
148
|
width: number;
|
|
207
149
|
height: number;
|
|
150
|
+
x: number;
|
|
151
|
+
y: number;
|
|
208
152
|
};
|
|
209
153
|
style?: "box" | "pixelate" | undefined;
|
|
210
154
|
}, {
|
|
211
155
|
region: {
|
|
212
|
-
x: number;
|
|
213
|
-
y: number;
|
|
214
156
|
width: number;
|
|
215
157
|
height: number;
|
|
158
|
+
x: number;
|
|
159
|
+
y: number;
|
|
216
160
|
};
|
|
217
161
|
style?: "box" | "pixelate" | undefined;
|
|
218
162
|
}>]>;
|
|
219
163
|
export type RedactionSpec = z.infer<typeof RedactionSpec>;
|
|
164
|
+
/** Most `obstacles` one annotation record may carry (the writer keeps the nearest this many). */
|
|
165
|
+
export declare const MAX_OBSTACLES = 40;
|
|
166
|
+
/** Bounds of `placement.max_width`, the widest outer callout box the burner may use, in screenshot px. */
|
|
167
|
+
export declare const MIN_CALLOUT_WIDTH = 120;
|
|
168
|
+
export declare const MAX_CALLOUT_WIDTH = 560;
|
|
169
|
+
/** Widest `placement.obstacle_radius` (CSS px) a flow may ask the obstacle scan for. */
|
|
170
|
+
export declare const MAX_OBSTACLE_RADIUS = 2000;
|
|
171
|
+
/**
|
|
172
|
+
* Optional per-annotation placement settings for the burner. Every key is optional and an empty or
|
|
173
|
+
* absent object changes nothing. The interactive viewer ignores them; `obstacle_radius` and
|
|
174
|
+
* `obstacle_limit` steer the capture-time obstacle scan, the rest steer `docsxai-viewer burn`.
|
|
175
|
+
*/
|
|
176
|
+
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
|
+
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. */
|
|
184
|
+
pin_arrow: z.ZodOptional<z.ZodBoolean>;
|
|
185
|
+
/** Widest outer callout box in px (default 280, narrower on small screenshots with obstacles). */
|
|
186
|
+
max_width: z.ZodOptional<z.ZodNumber>;
|
|
187
|
+
/** CSS px around the target the obstacle scan covers (default 320). Read by `docsxai run`. */
|
|
188
|
+
obstacle_radius: z.ZodOptional<z.ZodNumber>;
|
|
189
|
+
/** Most obstacles recorded for this annotation (default {@link MAX_OBSTACLES}). Read by `docsxai run`. */
|
|
190
|
+
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
|
+
}>;
|
|
208
|
+
export type AnnotationPlacement = z.infer<typeof AnnotationPlacement>;
|
|
220
209
|
export declare const StepAnnotation: z.ZodObject<{
|
|
221
210
|
copy: z.ZodString;
|
|
222
211
|
arrow: z.ZodOptional<z.ZodEnum<["top-left", "top-right", "bottom-left", "bottom-right", "top", "bottom", "left", "right"]>>;
|
|
@@ -236,6 +225,39 @@ export declare const StepAnnotation: z.ZodObject<{
|
|
|
236
225
|
x: number;
|
|
237
226
|
y: number;
|
|
238
227
|
}>>;
|
|
228
|
+
/** Optional burner placement settings — see {@link AnnotationPlacement}. Copied onto the annotation record. */
|
|
229
|
+
placement: z.ZodOptional<z.ZodObject<{
|
|
230
|
+
/** Put the callout inside the target when the target is big enough to hold it (no arrow). */
|
|
231
|
+
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. */
|
|
237
|
+
pin_arrow: z.ZodOptional<z.ZodBoolean>;
|
|
238
|
+
/** Widest outer callout box in px (default 280, narrower on small screenshots with obstacles). */
|
|
239
|
+
max_width: z.ZodOptional<z.ZodNumber>;
|
|
240
|
+
/** CSS px around the target the obstacle scan covers (default 320). Read by `docsxai run`. */
|
|
241
|
+
obstacle_radius: z.ZodOptional<z.ZodNumber>;
|
|
242
|
+
/** Most obstacles recorded for this annotation (default {@link MAX_OBSTACLES}). Read by `docsxai run`. */
|
|
243
|
+
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
|
+
}>>;
|
|
239
261
|
/**
|
|
240
262
|
* Optional override: the locator to anchor the halo/arrow to. Default = the step's `target`. Use this on
|
|
241
263
|
* a step whose action *transitions the UI* — the action target vanishes (gets unmounted / replaced) and
|
|
@@ -243,6 +265,56 @@ export declare const StepAnnotation: z.ZodObject<{
|
|
|
243
265
|
* surviving / appearing element.
|
|
244
266
|
*/
|
|
245
267
|
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
|
+
}>>;
|
|
246
318
|
}, "strict", z.ZodTypeAny, {
|
|
247
319
|
copy: string;
|
|
248
320
|
arrow?: "top-left" | "top-right" | "bottom-left" | "bottom-right" | "top" | "bottom" | "left" | "right" | undefined;
|
|
@@ -250,7 +322,27 @@ export declare const StepAnnotation: z.ZodObject<{
|
|
|
250
322
|
x: number;
|
|
251
323
|
y: number;
|
|
252
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;
|
|
253
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;
|
|
254
346
|
}, {
|
|
255
347
|
copy: string;
|
|
256
348
|
arrow?: "top-left" | "top-right" | "bottom-left" | "bottom-right" | "top" | "bottom" | "left" | "right" | undefined;
|
|
@@ -258,12 +350,32 @@ export declare const StepAnnotation: z.ZodObject<{
|
|
|
258
350
|
x: number;
|
|
259
351
|
y: number;
|
|
260
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;
|
|
261
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;
|
|
262
374
|
}>;
|
|
263
375
|
export type StepAnnotation = z.infer<typeof StepAnnotation>;
|
|
264
|
-
export declare const Step: z.ZodEffects<z.ZodObject<{
|
|
376
|
+
export declare const Step: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
265
377
|
id: z.ZodString;
|
|
266
|
-
action: z.ZodEnum<["navigate", "click", "fill", "upload", "press", "hover", "select", "check", "uncheck", "wait"]>;
|
|
378
|
+
action: z.ZodEnum<["navigate", "click", "fill", "upload", "press", "hover", "select", "check", "uncheck", "wait", "hide", "show"]>;
|
|
267
379
|
/**
|
|
268
380
|
* Best-effort step: if the action / `wait_for` / `success` check throws (target absent, wait timed
|
|
269
381
|
* out, etc.), **skip this step and continue** instead of halting the flow. For conditionally-present
|
|
@@ -272,11 +384,20 @@ export declare const Step: z.ZodEffects<z.ZodObject<{
|
|
|
272
384
|
* this over a permissive comma-selector that no-ops on one branch.
|
|
273
385
|
*/
|
|
274
386
|
optional: z.ZodOptional<z.ZodBoolean>;
|
|
275
|
-
/**
|
|
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
|
+
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). */
|
|
276
397
|
target: z.ZodOptional<z.ZodString>;
|
|
277
398
|
/** Action payload: text for `fill`, file path for `upload`, key for `press`, path/URL for `navigate`, option for `select`. */
|
|
278
399
|
value: z.ZodOptional<z.ZodString>;
|
|
279
|
-
wait_for: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["network_idle", "element_stable", "load"]>, z.ZodObject<{
|
|
400
|
+
wait_for: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["network_idle", "element_stable", "load", "settled"]>, z.ZodObject<{
|
|
280
401
|
timeout_ms: z.ZodNumber;
|
|
281
402
|
}, "strict", z.ZodTypeAny, {
|
|
282
403
|
timeout_ms: number;
|
|
@@ -352,6 +473,39 @@ export declare const Step: z.ZodEffects<z.ZodObject<{
|
|
|
352
473
|
x: number;
|
|
353
474
|
y: number;
|
|
354
475
|
}>>;
|
|
476
|
+
/** Optional burner placement settings — see {@link AnnotationPlacement}. Copied onto the annotation record. */
|
|
477
|
+
placement: z.ZodOptional<z.ZodObject<{
|
|
478
|
+
/** Put the callout inside the target when the target is big enough to hold it (no arrow). */
|
|
479
|
+
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. */
|
|
485
|
+
pin_arrow: z.ZodOptional<z.ZodBoolean>;
|
|
486
|
+
/** Widest outer callout box in px (default 280, narrower on small screenshots with obstacles). */
|
|
487
|
+
max_width: z.ZodOptional<z.ZodNumber>;
|
|
488
|
+
/** CSS px around the target the obstacle scan covers (default 320). Read by `docsxai run`. */
|
|
489
|
+
obstacle_radius: z.ZodOptional<z.ZodNumber>;
|
|
490
|
+
/** Most obstacles recorded for this annotation (default {@link MAX_OBSTACLES}). Read by `docsxai run`. */
|
|
491
|
+
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
|
+
}>>;
|
|
355
509
|
/**
|
|
356
510
|
* Optional override: the locator to anchor the halo/arrow to. Default = the step's `target`. Use this on
|
|
357
511
|
* a step whose action *transitions the UI* — the action target vanishes (gets unmounted / replaced) and
|
|
@@ -359,6 +513,56 @@ export declare const Step: z.ZodEffects<z.ZodObject<{
|
|
|
359
513
|
* surviving / appearing element.
|
|
360
514
|
*/
|
|
361
515
|
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
|
+
}>>;
|
|
362
566
|
}, "strict", z.ZodTypeAny, {
|
|
363
567
|
copy: string;
|
|
364
568
|
arrow?: "top-left" | "top-right" | "bottom-left" | "bottom-right" | "top" | "bottom" | "left" | "right" | undefined;
|
|
@@ -366,7 +570,27 @@ export declare const Step: z.ZodEffects<z.ZodObject<{
|
|
|
366
570
|
x: number;
|
|
367
571
|
y: number;
|
|
368
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;
|
|
369
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;
|
|
370
594
|
}, {
|
|
371
595
|
copy: string;
|
|
372
596
|
arrow?: "top-left" | "top-right" | "bottom-left" | "bottom-right" | "top" | "bottom" | "left" | "right" | undefined;
|
|
@@ -374,7 +598,27 @@ export declare const Step: z.ZodEffects<z.ZodObject<{
|
|
|
374
598
|
x: number;
|
|
375
599
|
y: number;
|
|
376
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;
|
|
377
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;
|
|
378
622
|
}>>;
|
|
379
623
|
/**
|
|
380
624
|
* Multiple call-outs on the same screenshot — rendered as numbered badges (1, 2, …) so the reader sees
|
|
@@ -401,6 +645,39 @@ export declare const Step: z.ZodEffects<z.ZodObject<{
|
|
|
401
645
|
x: number;
|
|
402
646
|
y: number;
|
|
403
647
|
}>>;
|
|
648
|
+
/** Optional burner placement settings — see {@link AnnotationPlacement}. Copied onto the annotation record. */
|
|
649
|
+
placement: z.ZodOptional<z.ZodObject<{
|
|
650
|
+
/** Put the callout inside the target when the target is big enough to hold it (no arrow). */
|
|
651
|
+
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. */
|
|
657
|
+
pin_arrow: z.ZodOptional<z.ZodBoolean>;
|
|
658
|
+
/** Widest outer callout box in px (default 280, narrower on small screenshots with obstacles). */
|
|
659
|
+
max_width: z.ZodOptional<z.ZodNumber>;
|
|
660
|
+
/** CSS px around the target the obstacle scan covers (default 320). Read by `docsxai run`. */
|
|
661
|
+
obstacle_radius: z.ZodOptional<z.ZodNumber>;
|
|
662
|
+
/** Most obstacles recorded for this annotation (default {@link MAX_OBSTACLES}). Read by `docsxai run`. */
|
|
663
|
+
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
|
+
}>>;
|
|
404
681
|
/**
|
|
405
682
|
* Optional override: the locator to anchor the halo/arrow to. Default = the step's `target`. Use this on
|
|
406
683
|
* a step whose action *transitions the UI* — the action target vanishes (gets unmounted / replaced) and
|
|
@@ -408,6 +685,56 @@ export declare const Step: z.ZodEffects<z.ZodObject<{
|
|
|
408
685
|
* surviving / appearing element.
|
|
409
686
|
*/
|
|
410
687
|
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
|
+
}>>;
|
|
411
738
|
}, "strict", z.ZodTypeAny, {
|
|
412
739
|
copy: string;
|
|
413
740
|
arrow?: "top-left" | "top-right" | "bottom-left" | "bottom-right" | "top" | "bottom" | "left" | "right" | undefined;
|
|
@@ -415,7 +742,27 @@ export declare const Step: z.ZodEffects<z.ZodObject<{
|
|
|
415
742
|
x: number;
|
|
416
743
|
y: number;
|
|
417
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;
|
|
418
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;
|
|
419
766
|
}, {
|
|
420
767
|
copy: string;
|
|
421
768
|
arrow?: "top-left" | "top-right" | "bottom-left" | "bottom-right" | "top" | "bottom" | "left" | "right" | undefined;
|
|
@@ -423,7 +770,27 @@ export declare const Step: z.ZodEffects<z.ZodObject<{
|
|
|
423
770
|
x: number;
|
|
424
771
|
y: number;
|
|
425
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;
|
|
426
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;
|
|
427
794
|
}>, "many">>;
|
|
428
795
|
/** Extra redactions for this step's screenshots, additive on top of the flow-level list. */
|
|
429
796
|
redactions: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
@@ -442,41 +809,96 @@ export declare const Step: z.ZodEffects<z.ZodObject<{
|
|
|
442
809
|
width: z.ZodNumber;
|
|
443
810
|
height: z.ZodNumber;
|
|
444
811
|
}, "strict", z.ZodTypeAny, {
|
|
445
|
-
x: number;
|
|
446
|
-
y: number;
|
|
447
812
|
width: number;
|
|
448
813
|
height: number;
|
|
449
|
-
}, {
|
|
450
814
|
x: number;
|
|
451
815
|
y: number;
|
|
816
|
+
}, {
|
|
452
817
|
width: number;
|
|
453
818
|
height: number;
|
|
819
|
+
x: number;
|
|
820
|
+
y: number;
|
|
454
821
|
}>;
|
|
455
822
|
style: z.ZodOptional<z.ZodEnum<["box", "pixelate"]>>;
|
|
456
823
|
}, "strict", z.ZodTypeAny, {
|
|
457
824
|
region: {
|
|
458
|
-
x: number;
|
|
459
|
-
y: number;
|
|
460
825
|
width: number;
|
|
461
826
|
height: number;
|
|
827
|
+
x: number;
|
|
828
|
+
y: number;
|
|
462
829
|
};
|
|
463
830
|
style?: "box" | "pixelate" | undefined;
|
|
464
831
|
}, {
|
|
465
832
|
region: {
|
|
466
|
-
x: number;
|
|
467
|
-
y: number;
|
|
468
833
|
width: number;
|
|
469
834
|
height: number;
|
|
835
|
+
x: number;
|
|
836
|
+
y: number;
|
|
470
837
|
};
|
|
471
838
|
style?: "box" | "pixelate" | undefined;
|
|
472
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
|
+
}>>;
|
|
473
884
|
}, "strict", z.ZodTypeAny, {
|
|
474
885
|
id: string;
|
|
475
|
-
action: "fill" | "navigate" | "click" | "upload" | "press" | "hover" | "select" | "check" | "uncheck" | "wait";
|
|
886
|
+
action: "fill" | "navigate" | "click" | "upload" | "press" | "hover" | "select" | "check" | "uncheck" | "wait" | "hide" | "show";
|
|
476
887
|
value?: string | undefined;
|
|
888
|
+
timeout_ms?: number | undefined;
|
|
477
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;
|
|
478
900
|
optional?: boolean | undefined;
|
|
479
|
-
wait_for?: "network_idle" | "element_stable" | "load" | {
|
|
901
|
+
wait_for?: "network_idle" | "element_stable" | "load" | "settled" | {
|
|
480
902
|
timeout_ms: number;
|
|
481
903
|
} | {
|
|
482
904
|
selector: string;
|
|
@@ -501,7 +923,27 @@ export declare const Step: z.ZodEffects<z.ZodObject<{
|
|
|
501
923
|
x: number;
|
|
502
924
|
y: number;
|
|
503
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;
|
|
504
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;
|
|
505
947
|
} | undefined;
|
|
506
948
|
annotations?: {
|
|
507
949
|
copy: string;
|
|
@@ -510,27 +952,58 @@ export declare const Step: z.ZodEffects<z.ZodObject<{
|
|
|
510
952
|
x: number;
|
|
511
953
|
y: number;
|
|
512
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;
|
|
513
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;
|
|
514
976
|
}[] | undefined;
|
|
515
977
|
redactions?: ({
|
|
516
978
|
selector: string;
|
|
517
979
|
style?: "box" | "pixelate" | undefined;
|
|
518
980
|
} | {
|
|
519
981
|
region: {
|
|
520
|
-
x: number;
|
|
521
|
-
y: number;
|
|
522
982
|
width: number;
|
|
523
983
|
height: number;
|
|
984
|
+
x: number;
|
|
985
|
+
y: number;
|
|
524
986
|
};
|
|
525
987
|
style?: "box" | "pixelate" | undefined;
|
|
526
988
|
})[] | undefined;
|
|
527
989
|
}, {
|
|
528
990
|
id: string;
|
|
529
|
-
action: "fill" | "navigate" | "click" | "upload" | "press" | "hover" | "select" | "check" | "uncheck" | "wait";
|
|
991
|
+
action: "fill" | "navigate" | "click" | "upload" | "press" | "hover" | "select" | "check" | "uncheck" | "wait" | "hide" | "show";
|
|
530
992
|
value?: string | undefined;
|
|
993
|
+
timeout_ms?: number | undefined;
|
|
531
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;
|
|
532
1005
|
optional?: boolean | undefined;
|
|
533
|
-
wait_for?: "network_idle" | "element_stable" | "load" | {
|
|
1006
|
+
wait_for?: "network_idle" | "element_stable" | "load" | "settled" | {
|
|
534
1007
|
timeout_ms: number;
|
|
535
1008
|
} | {
|
|
536
1009
|
selector: string;
|
|
@@ -555,7 +1028,27 @@ export declare const Step: z.ZodEffects<z.ZodObject<{
|
|
|
555
1028
|
x: number;
|
|
556
1029
|
y: number;
|
|
557
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;
|
|
558
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;
|
|
559
1052
|
} | undefined;
|
|
560
1053
|
annotations?: {
|
|
561
1054
|
copy: string;
|
|
@@ -564,27 +1057,58 @@ export declare const Step: z.ZodEffects<z.ZodObject<{
|
|
|
564
1057
|
x: number;
|
|
565
1058
|
y: number;
|
|
566
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;
|
|
567
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;
|
|
568
1081
|
}[] | undefined;
|
|
569
1082
|
redactions?: ({
|
|
570
1083
|
selector: string;
|
|
571
1084
|
style?: "box" | "pixelate" | undefined;
|
|
572
1085
|
} | {
|
|
573
1086
|
region: {
|
|
574
|
-
x: number;
|
|
575
|
-
y: number;
|
|
576
1087
|
width: number;
|
|
577
1088
|
height: number;
|
|
1089
|
+
x: number;
|
|
1090
|
+
y: number;
|
|
578
1091
|
};
|
|
579
1092
|
style?: "box" | "pixelate" | undefined;
|
|
580
1093
|
})[] | undefined;
|
|
581
1094
|
}>, {
|
|
582
1095
|
id: string;
|
|
583
|
-
action: "fill" | "navigate" | "click" | "upload" | "press" | "hover" | "select" | "check" | "uncheck" | "wait";
|
|
1096
|
+
action: "fill" | "navigate" | "click" | "upload" | "press" | "hover" | "select" | "check" | "uncheck" | "wait" | "hide" | "show";
|
|
584
1097
|
value?: string | undefined;
|
|
1098
|
+
timeout_ms?: number | undefined;
|
|
585
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;
|
|
586
1110
|
optional?: boolean | undefined;
|
|
587
|
-
wait_for?: "network_idle" | "element_stable" | "load" | {
|
|
1111
|
+
wait_for?: "network_idle" | "element_stable" | "load" | "settled" | {
|
|
588
1112
|
timeout_ms: number;
|
|
589
1113
|
} | {
|
|
590
1114
|
selector: string;
|
|
@@ -609,7 +1133,27 @@ export declare const Step: z.ZodEffects<z.ZodObject<{
|
|
|
609
1133
|
x: number;
|
|
610
1134
|
y: number;
|
|
611
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;
|
|
612
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;
|
|
613
1157
|
} | undefined;
|
|
614
1158
|
annotations?: {
|
|
615
1159
|
copy: string;
|
|
@@ -618,27 +1162,58 @@ export declare const Step: z.ZodEffects<z.ZodObject<{
|
|
|
618
1162
|
x: number;
|
|
619
1163
|
y: number;
|
|
620
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;
|
|
621
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;
|
|
622
1186
|
}[] | undefined;
|
|
623
1187
|
redactions?: ({
|
|
624
1188
|
selector: string;
|
|
625
1189
|
style?: "box" | "pixelate" | undefined;
|
|
626
1190
|
} | {
|
|
627
1191
|
region: {
|
|
628
|
-
x: number;
|
|
629
|
-
y: number;
|
|
630
1192
|
width: number;
|
|
631
1193
|
height: number;
|
|
1194
|
+
x: number;
|
|
1195
|
+
y: number;
|
|
632
1196
|
};
|
|
633
1197
|
style?: "box" | "pixelate" | undefined;
|
|
634
1198
|
})[] | undefined;
|
|
635
1199
|
}, {
|
|
636
1200
|
id: string;
|
|
637
|
-
action: "fill" | "navigate" | "click" | "upload" | "press" | "hover" | "select" | "check" | "uncheck" | "wait";
|
|
1201
|
+
action: "fill" | "navigate" | "click" | "upload" | "press" | "hover" | "select" | "check" | "uncheck" | "wait" | "hide" | "show";
|
|
638
1202
|
value?: string | undefined;
|
|
1203
|
+
timeout_ms?: number | undefined;
|
|
639
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;
|
|
640
1215
|
optional?: boolean | undefined;
|
|
641
|
-
wait_for?: "network_idle" | "element_stable" | "load" | {
|
|
1216
|
+
wait_for?: "network_idle" | "element_stable" | "load" | "settled" | {
|
|
642
1217
|
timeout_ms: number;
|
|
643
1218
|
} | {
|
|
644
1219
|
selector: string;
|
|
@@ -663,7 +1238,27 @@ export declare const Step: z.ZodEffects<z.ZodObject<{
|
|
|
663
1238
|
x: number;
|
|
664
1239
|
y: number;
|
|
665
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;
|
|
666
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;
|
|
667
1262
|
} | undefined;
|
|
668
1263
|
annotations?: {
|
|
669
1264
|
copy: string;
|
|
@@ -672,47 +1267,285 @@ export declare const Step: z.ZodEffects<z.ZodObject<{
|
|
|
672
1267
|
x: number;
|
|
673
1268
|
y: number;
|
|
674
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;
|
|
675
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;
|
|
676
1291
|
}[] | undefined;
|
|
677
1292
|
redactions?: ({
|
|
678
1293
|
selector: string;
|
|
679
1294
|
style?: "box" | "pixelate" | undefined;
|
|
680
1295
|
} | {
|
|
681
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?: {
|
|
682
1372
|
x: number;
|
|
683
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: {
|
|
684
1402
|
width: number;
|
|
685
1403
|
height: number;
|
|
1404
|
+
x: number;
|
|
1405
|
+
y: number;
|
|
686
1406
|
};
|
|
687
1407
|
style?: "box" | "pixelate" | undefined;
|
|
688
1408
|
})[] | undefined;
|
|
689
|
-
}
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
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
|
+
}>;
|
|
1515
|
+
export type Step = z.infer<typeof Step>;
|
|
1516
|
+
/** 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]>>;
|
|
1518
|
+
export type Prerequisite = z.infer<typeof Prerequisite>;
|
|
1519
|
+
/** Longest flow name. The name is a directory and file name under the workspace. */
|
|
1520
|
+
export declare const MAX_FLOW_NAME_LENGTH = 64;
|
|
1521
|
+
/**
|
|
1522
|
+
* A flow's name is a path segment: it names `flows/<name>.flow.yaml` and `docs/<name>/`, and
|
|
1523
|
+
* `run` writes under both. It starts with a letter or digit, then letters, digits, `.`, `_` and `-`
|
|
1524
|
+
* (so `Board_1.v2` is fine), never contains `..`, and is at most {@link MAX_FLOW_NAME_LENGTH} long.
|
|
1525
|
+
* A slash, a backslash, a leading dot and an absolute path are all outside that set. A trailing
|
|
1526
|
+
* `.` and a Windows device name (`con`, `nul`, `com1`, `lpt1`, ..., with or without an extension
|
|
1527
|
+
* part) are refused too, since Windows cannot create them.
|
|
1528
|
+
*/
|
|
1529
|
+
export declare const FlowName: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>;
|
|
1530
|
+
export type FlowName = z.infer<typeof FlowName>;
|
|
1531
|
+
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
|
|
699
1536
|
* (A extends B extends C); cycles are rejected. Resolved at run time against `flows/<name>.flow.yaml`.
|
|
700
1537
|
* Typical use: factor out a shared preamble (Library → open a video → editor) so dependent flows don't
|
|
701
1538
|
* re-walk it every run. (`run --stop-after` operates on the merged step list.)
|
|
702
1539
|
*/
|
|
703
|
-
extends: z.ZodOptional<z.ZodString
|
|
1540
|
+
extends: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>>;
|
|
704
1541
|
/**
|
|
705
1542
|
* Deterministic execution environment (frozen clock, locale, timezone, viewport, color scheme,
|
|
706
1543
|
* reduced motion). With `extends`, merged per-key — this flow's keys win over the parent's.
|
|
707
1544
|
*/
|
|
708
1545
|
environment: z.ZodOptional<z.ZodObject<{
|
|
709
|
-
/** ISO-8601 instant the page clock is frozen at — `new Date()` etc. return this for the whole run. */
|
|
710
1546
|
clock: z.ZodOptional<z.ZodString>;
|
|
711
|
-
/** BCP-47 language tag (e.g. `en-GB`). */
|
|
712
1547
|
locale: z.ZodOptional<z.ZodString>;
|
|
713
|
-
/** IANA timezone (e.g. `Europe/Amsterdam`). */
|
|
714
1548
|
timezone: z.ZodOptional<z.ZodString>;
|
|
715
|
-
/** `{ width, height }` in CSS pixels, or a named preset — see {@link VIEWPORT_PRESETS}. */
|
|
716
1549
|
viewport: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["desktop", "tablet", "mobile"]>, z.ZodObject<{
|
|
717
1550
|
width: z.ZodNumber;
|
|
718
1551
|
height: z.ZodNumber;
|
|
@@ -746,6 +1579,60 @@ export declare const FlowFile: z.ZodObject<{
|
|
|
746
1579
|
color_scheme?: "light" | "dark" | undefined;
|
|
747
1580
|
reduced_motion?: boolean | undefined;
|
|
748
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<{
|
|
1591
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1592
|
+
width: z.ZodNumber;
|
|
1593
|
+
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
|
+
}>>;
|
|
749
1636
|
/** Areas masked on every screenshot this flow produces (incl. halt shots). See {@link RedactionSpec}. */
|
|
750
1637
|
redactions: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
751
1638
|
selector: z.ZodString;
|
|
@@ -763,40 +1650,40 @@ export declare const FlowFile: z.ZodObject<{
|
|
|
763
1650
|
width: z.ZodNumber;
|
|
764
1651
|
height: z.ZodNumber;
|
|
765
1652
|
}, "strict", z.ZodTypeAny, {
|
|
766
|
-
x: number;
|
|
767
|
-
y: number;
|
|
768
1653
|
width: number;
|
|
769
1654
|
height: number;
|
|
770
|
-
}, {
|
|
771
1655
|
x: number;
|
|
772
1656
|
y: number;
|
|
1657
|
+
}, {
|
|
773
1658
|
width: number;
|
|
774
1659
|
height: number;
|
|
1660
|
+
x: number;
|
|
1661
|
+
y: number;
|
|
775
1662
|
}>;
|
|
776
1663
|
style: z.ZodOptional<z.ZodEnum<["box", "pixelate"]>>;
|
|
777
1664
|
}, "strict", z.ZodTypeAny, {
|
|
778
1665
|
region: {
|
|
779
|
-
x: number;
|
|
780
|
-
y: number;
|
|
781
1666
|
width: number;
|
|
782
1667
|
height: number;
|
|
1668
|
+
x: number;
|
|
1669
|
+
y: number;
|
|
783
1670
|
};
|
|
784
1671
|
style?: "box" | "pixelate" | undefined;
|
|
785
1672
|
}, {
|
|
786
1673
|
region: {
|
|
787
|
-
x: number;
|
|
788
|
-
y: number;
|
|
789
1674
|
width: number;
|
|
790
1675
|
height: number;
|
|
1676
|
+
x: number;
|
|
1677
|
+
y: number;
|
|
791
1678
|
};
|
|
792
1679
|
style?: "box" | "pixelate" | undefined;
|
|
793
1680
|
}>]>, "many">>;
|
|
794
1681
|
prerequisites: z.ZodDefault<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean]>>, "many">>;
|
|
795
1682
|
/** Named canonical locators referenced from steps as `$name`. One per name; no fallback lists. */
|
|
796
1683
|
locators: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
797
|
-
steps: z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
1684
|
+
steps: z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
798
1685
|
id: z.ZodString;
|
|
799
|
-
action: z.ZodEnum<["navigate", "click", "fill", "upload", "press", "hover", "select", "check", "uncheck", "wait"]>;
|
|
1686
|
+
action: z.ZodEnum<["navigate", "click", "fill", "upload", "press", "hover", "select", "check", "uncheck", "wait", "hide", "show"]>;
|
|
800
1687
|
/**
|
|
801
1688
|
* Best-effort step: if the action / `wait_for` / `success` check throws (target absent, wait timed
|
|
802
1689
|
* out, etc.), **skip this step and continue** instead of halting the flow. For conditionally-present
|
|
@@ -805,11 +1692,20 @@ export declare const FlowFile: z.ZodObject<{
|
|
|
805
1692
|
* this over a permissive comma-selector that no-ops on one branch.
|
|
806
1693
|
*/
|
|
807
1694
|
optional: z.ZodOptional<z.ZodBoolean>;
|
|
808
|
-
/**
|
|
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
|
+
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). */
|
|
809
1705
|
target: z.ZodOptional<z.ZodString>;
|
|
810
1706
|
/** Action payload: text for `fill`, file path for `upload`, key for `press`, path/URL for `navigate`, option for `select`. */
|
|
811
1707
|
value: z.ZodOptional<z.ZodString>;
|
|
812
|
-
wait_for: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["network_idle", "element_stable", "load"]>, z.ZodObject<{
|
|
1708
|
+
wait_for: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["network_idle", "element_stable", "load", "settled"]>, z.ZodObject<{
|
|
813
1709
|
timeout_ms: z.ZodNumber;
|
|
814
1710
|
}, "strict", z.ZodTypeAny, {
|
|
815
1711
|
timeout_ms: number;
|
|
@@ -885,6 +1781,39 @@ export declare const FlowFile: z.ZodObject<{
|
|
|
885
1781
|
x: number;
|
|
886
1782
|
y: number;
|
|
887
1783
|
}>>;
|
|
1784
|
+
/** Optional burner placement settings — see {@link AnnotationPlacement}. Copied onto the annotation record. */
|
|
1785
|
+
placement: z.ZodOptional<z.ZodObject<{
|
|
1786
|
+
/** Put the callout inside the target when the target is big enough to hold it (no arrow). */
|
|
1787
|
+
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. */
|
|
1793
|
+
pin_arrow: z.ZodOptional<z.ZodBoolean>;
|
|
1794
|
+
/** Widest outer callout box in px (default 280, narrower on small screenshots with obstacles). */
|
|
1795
|
+
max_width: z.ZodOptional<z.ZodNumber>;
|
|
1796
|
+
/** CSS px around the target the obstacle scan covers (default 320). Read by `docsxai run`. */
|
|
1797
|
+
obstacle_radius: z.ZodOptional<z.ZodNumber>;
|
|
1798
|
+
/** Most obstacles recorded for this annotation (default {@link MAX_OBSTACLES}). Read by `docsxai run`. */
|
|
1799
|
+
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
|
+
}>>;
|
|
888
1817
|
/**
|
|
889
1818
|
* Optional override: the locator to anchor the halo/arrow to. Default = the step's `target`. Use this on
|
|
890
1819
|
* a step whose action *transitions the UI* — the action target vanishes (gets unmounted / replaced) and
|
|
@@ -892,6 +1821,56 @@ export declare const FlowFile: z.ZodObject<{
|
|
|
892
1821
|
* surviving / appearing element.
|
|
893
1822
|
*/
|
|
894
1823
|
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
|
+
}>>;
|
|
895
1874
|
}, "strict", z.ZodTypeAny, {
|
|
896
1875
|
copy: string;
|
|
897
1876
|
arrow?: "top-left" | "top-right" | "bottom-left" | "bottom-right" | "top" | "bottom" | "left" | "right" | undefined;
|
|
@@ -899,7 +1878,27 @@ export declare const FlowFile: z.ZodObject<{
|
|
|
899
1878
|
x: number;
|
|
900
1879
|
y: number;
|
|
901
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;
|
|
902
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;
|
|
903
1902
|
}, {
|
|
904
1903
|
copy: string;
|
|
905
1904
|
arrow?: "top-left" | "top-right" | "bottom-left" | "bottom-right" | "top" | "bottom" | "left" | "right" | undefined;
|
|
@@ -907,7 +1906,27 @@ export declare const FlowFile: z.ZodObject<{
|
|
|
907
1906
|
x: number;
|
|
908
1907
|
y: number;
|
|
909
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;
|
|
910
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;
|
|
911
1930
|
}>>;
|
|
912
1931
|
/**
|
|
913
1932
|
* Multiple call-outs on the same screenshot — rendered as numbered badges (1, 2, …) so the reader sees
|
|
@@ -934,6 +1953,39 @@ export declare const FlowFile: z.ZodObject<{
|
|
|
934
1953
|
x: number;
|
|
935
1954
|
y: number;
|
|
936
1955
|
}>>;
|
|
1956
|
+
/** Optional burner placement settings — see {@link AnnotationPlacement}. Copied onto the annotation record. */
|
|
1957
|
+
placement: z.ZodOptional<z.ZodObject<{
|
|
1958
|
+
/** Put the callout inside the target when the target is big enough to hold it (no arrow). */
|
|
1959
|
+
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. */
|
|
1965
|
+
pin_arrow: z.ZodOptional<z.ZodBoolean>;
|
|
1966
|
+
/** Widest outer callout box in px (default 280, narrower on small screenshots with obstacles). */
|
|
1967
|
+
max_width: z.ZodOptional<z.ZodNumber>;
|
|
1968
|
+
/** CSS px around the target the obstacle scan covers (default 320). Read by `docsxai run`. */
|
|
1969
|
+
obstacle_radius: z.ZodOptional<z.ZodNumber>;
|
|
1970
|
+
/** Most obstacles recorded for this annotation (default {@link MAX_OBSTACLES}). Read by `docsxai run`. */
|
|
1971
|
+
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
|
+
}>>;
|
|
937
1989
|
/**
|
|
938
1990
|
* Optional override: the locator to anchor the halo/arrow to. Default = the step's `target`. Use this on
|
|
939
1991
|
* a step whose action *transitions the UI* — the action target vanishes (gets unmounted / replaced) and
|
|
@@ -941,6 +1993,56 @@ export declare const FlowFile: z.ZodObject<{
|
|
|
941
1993
|
* surviving / appearing element.
|
|
942
1994
|
*/
|
|
943
1995
|
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
|
+
}>>;
|
|
944
2046
|
}, "strict", z.ZodTypeAny, {
|
|
945
2047
|
copy: string;
|
|
946
2048
|
arrow?: "top-left" | "top-right" | "bottom-left" | "bottom-right" | "top" | "bottom" | "left" | "right" | undefined;
|
|
@@ -948,7 +2050,27 @@ export declare const FlowFile: z.ZodObject<{
|
|
|
948
2050
|
x: number;
|
|
949
2051
|
y: number;
|
|
950
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;
|
|
951
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;
|
|
952
2074
|
}, {
|
|
953
2075
|
copy: string;
|
|
954
2076
|
arrow?: "top-left" | "top-right" | "bottom-left" | "bottom-right" | "top" | "bottom" | "left" | "right" | undefined;
|
|
@@ -956,7 +2078,27 @@ export declare const FlowFile: z.ZodObject<{
|
|
|
956
2078
|
x: number;
|
|
957
2079
|
y: number;
|
|
958
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;
|
|
959
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;
|
|
960
2102
|
}>, "many">>;
|
|
961
2103
|
/** Extra redactions for this step's screenshots, additive on top of the flow-level list. */
|
|
962
2104
|
redactions: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
@@ -975,41 +2117,306 @@ export declare const FlowFile: z.ZodObject<{
|
|
|
975
2117
|
width: z.ZodNumber;
|
|
976
2118
|
height: z.ZodNumber;
|
|
977
2119
|
}, "strict", z.ZodTypeAny, {
|
|
978
|
-
x: number;
|
|
979
|
-
y: number;
|
|
980
2120
|
width: number;
|
|
981
2121
|
height: number;
|
|
982
|
-
}, {
|
|
983
2122
|
x: number;
|
|
984
2123
|
y: number;
|
|
2124
|
+
}, {
|
|
985
2125
|
width: number;
|
|
986
2126
|
height: number;
|
|
2127
|
+
x: number;
|
|
2128
|
+
y: number;
|
|
987
2129
|
}>;
|
|
988
2130
|
style: z.ZodOptional<z.ZodEnum<["box", "pixelate"]>>;
|
|
989
2131
|
}, "strict", z.ZodTypeAny, {
|
|
990
2132
|
region: {
|
|
2133
|
+
width: number;
|
|
2134
|
+
height: number;
|
|
991
2135
|
x: number;
|
|
992
2136
|
y: number;
|
|
2137
|
+
};
|
|
2138
|
+
style?: "box" | "pixelate" | undefined;
|
|
2139
|
+
}, {
|
|
2140
|
+
region: {
|
|
993
2141
|
width: number;
|
|
994
2142
|
height: number;
|
|
2143
|
+
x: number;
|
|
2144
|
+
y: number;
|
|
995
2145
|
};
|
|
996
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;
|
|
997
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
|
+
} | {
|
|
998
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?: {
|
|
999
2365
|
x: number;
|
|
1000
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: {
|
|
1001
2395
|
width: number;
|
|
1002
2396
|
height: number;
|
|
2397
|
+
x: number;
|
|
2398
|
+
y: number;
|
|
1003
2399
|
};
|
|
1004
2400
|
style?: "box" | "pixelate" | undefined;
|
|
1005
|
-
}
|
|
1006
|
-
}
|
|
2401
|
+
})[] | undefined;
|
|
2402
|
+
}>, {
|
|
1007
2403
|
id: string;
|
|
1008
|
-
action: "fill" | "navigate" | "click" | "upload" | "press" | "hover" | "select" | "check" | "uncheck" | "wait";
|
|
2404
|
+
action: "fill" | "navigate" | "click" | "upload" | "press" | "hover" | "select" | "check" | "uncheck" | "wait" | "hide" | "show";
|
|
1009
2405
|
value?: string | undefined;
|
|
2406
|
+
timeout_ms?: number | undefined;
|
|
1010
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;
|
|
1011
2418
|
optional?: boolean | undefined;
|
|
1012
|
-
wait_for?: "network_idle" | "element_stable" | "load" | {
|
|
2419
|
+
wait_for?: "network_idle" | "element_stable" | "load" | "settled" | {
|
|
1013
2420
|
timeout_ms: number;
|
|
1014
2421
|
} | {
|
|
1015
2422
|
selector: string;
|
|
@@ -1034,7 +2441,27 @@ export declare const FlowFile: z.ZodObject<{
|
|
|
1034
2441
|
x: number;
|
|
1035
2442
|
y: number;
|
|
1036
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;
|
|
1037
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;
|
|
1038
2465
|
} | undefined;
|
|
1039
2466
|
annotations?: {
|
|
1040
2467
|
copy: string;
|
|
@@ -1043,27 +2470,58 @@ export declare const FlowFile: z.ZodObject<{
|
|
|
1043
2470
|
x: number;
|
|
1044
2471
|
y: number;
|
|
1045
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;
|
|
1046
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;
|
|
1047
2494
|
}[] | undefined;
|
|
1048
2495
|
redactions?: ({
|
|
1049
2496
|
selector: string;
|
|
1050
2497
|
style?: "box" | "pixelate" | undefined;
|
|
1051
2498
|
} | {
|
|
1052
2499
|
region: {
|
|
1053
|
-
x: number;
|
|
1054
|
-
y: number;
|
|
1055
2500
|
width: number;
|
|
1056
2501
|
height: number;
|
|
2502
|
+
x: number;
|
|
2503
|
+
y: number;
|
|
1057
2504
|
};
|
|
1058
2505
|
style?: "box" | "pixelate" | undefined;
|
|
1059
2506
|
})[] | undefined;
|
|
1060
2507
|
}, {
|
|
1061
2508
|
id: string;
|
|
1062
|
-
action: "fill" | "navigate" | "click" | "upload" | "press" | "hover" | "select" | "check" | "uncheck" | "wait";
|
|
2509
|
+
action: "fill" | "navigate" | "click" | "upload" | "press" | "hover" | "select" | "check" | "uncheck" | "wait" | "hide" | "show";
|
|
1063
2510
|
value?: string | undefined;
|
|
2511
|
+
timeout_ms?: number | undefined;
|
|
1064
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;
|
|
1065
2523
|
optional?: boolean | undefined;
|
|
1066
|
-
wait_for?: "network_idle" | "element_stable" | "load" | {
|
|
2524
|
+
wait_for?: "network_idle" | "element_stable" | "load" | "settled" | {
|
|
1067
2525
|
timeout_ms: number;
|
|
1068
2526
|
} | {
|
|
1069
2527
|
selector: string;
|
|
@@ -1088,7 +2546,27 @@ export declare const FlowFile: z.ZodObject<{
|
|
|
1088
2546
|
x: number;
|
|
1089
2547
|
y: number;
|
|
1090
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;
|
|
1091
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;
|
|
1092
2570
|
} | undefined;
|
|
1093
2571
|
annotations?: {
|
|
1094
2572
|
copy: string;
|
|
@@ -1097,27 +2575,58 @@ export declare const FlowFile: z.ZodObject<{
|
|
|
1097
2575
|
x: number;
|
|
1098
2576
|
y: number;
|
|
1099
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;
|
|
1100
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;
|
|
1101
2599
|
}[] | undefined;
|
|
1102
2600
|
redactions?: ({
|
|
1103
2601
|
selector: string;
|
|
1104
2602
|
style?: "box" | "pixelate" | undefined;
|
|
1105
2603
|
} | {
|
|
1106
2604
|
region: {
|
|
1107
|
-
x: number;
|
|
1108
|
-
y: number;
|
|
1109
2605
|
width: number;
|
|
1110
2606
|
height: number;
|
|
2607
|
+
x: number;
|
|
2608
|
+
y: number;
|
|
1111
2609
|
};
|
|
1112
2610
|
style?: "box" | "pixelate" | undefined;
|
|
1113
2611
|
})[] | undefined;
|
|
1114
2612
|
}>, {
|
|
1115
2613
|
id: string;
|
|
1116
|
-
action: "fill" | "navigate" | "click" | "upload" | "press" | "hover" | "select" | "check" | "uncheck" | "wait";
|
|
2614
|
+
action: "fill" | "navigate" | "click" | "upload" | "press" | "hover" | "select" | "check" | "uncheck" | "wait" | "hide" | "show";
|
|
1117
2615
|
value?: string | undefined;
|
|
2616
|
+
timeout_ms?: number | undefined;
|
|
1118
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;
|
|
1119
2628
|
optional?: boolean | undefined;
|
|
1120
|
-
wait_for?: "network_idle" | "element_stable" | "load" | {
|
|
2629
|
+
wait_for?: "network_idle" | "element_stable" | "load" | "settled" | {
|
|
1121
2630
|
timeout_ms: number;
|
|
1122
2631
|
} | {
|
|
1123
2632
|
selector: string;
|
|
@@ -1142,7 +2651,27 @@ export declare const FlowFile: z.ZodObject<{
|
|
|
1142
2651
|
x: number;
|
|
1143
2652
|
y: number;
|
|
1144
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;
|
|
1145
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;
|
|
1146
2675
|
} | undefined;
|
|
1147
2676
|
annotations?: {
|
|
1148
2677
|
copy: string;
|
|
@@ -1151,27 +2680,58 @@ export declare const FlowFile: z.ZodObject<{
|
|
|
1151
2680
|
x: number;
|
|
1152
2681
|
y: number;
|
|
1153
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;
|
|
1154
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;
|
|
1155
2704
|
}[] | undefined;
|
|
1156
2705
|
redactions?: ({
|
|
1157
2706
|
selector: string;
|
|
1158
2707
|
style?: "box" | "pixelate" | undefined;
|
|
1159
2708
|
} | {
|
|
1160
2709
|
region: {
|
|
1161
|
-
x: number;
|
|
1162
|
-
y: number;
|
|
1163
2710
|
width: number;
|
|
1164
2711
|
height: number;
|
|
2712
|
+
x: number;
|
|
2713
|
+
y: number;
|
|
1165
2714
|
};
|
|
1166
2715
|
style?: "box" | "pixelate" | undefined;
|
|
1167
2716
|
})[] | undefined;
|
|
1168
2717
|
}, {
|
|
1169
2718
|
id: string;
|
|
1170
|
-
action: "fill" | "navigate" | "click" | "upload" | "press" | "hover" | "select" | "check" | "uncheck" | "wait";
|
|
2719
|
+
action: "fill" | "navigate" | "click" | "upload" | "press" | "hover" | "select" | "check" | "uncheck" | "wait" | "hide" | "show";
|
|
1171
2720
|
value?: string | undefined;
|
|
2721
|
+
timeout_ms?: number | undefined;
|
|
1172
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;
|
|
1173
2733
|
optional?: boolean | undefined;
|
|
1174
|
-
wait_for?: "network_idle" | "element_stable" | "load" | {
|
|
2734
|
+
wait_for?: "network_idle" | "element_stable" | "load" | "settled" | {
|
|
1175
2735
|
timeout_ms: number;
|
|
1176
2736
|
} | {
|
|
1177
2737
|
selector: string;
|
|
@@ -1196,7 +2756,27 @@ export declare const FlowFile: z.ZodObject<{
|
|
|
1196
2756
|
x: number;
|
|
1197
2757
|
y: number;
|
|
1198
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;
|
|
1199
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;
|
|
1200
2780
|
} | undefined;
|
|
1201
2781
|
annotations?: {
|
|
1202
2782
|
copy: string;
|
|
@@ -1205,17 +2785,37 @@ export declare const FlowFile: z.ZodObject<{
|
|
|
1205
2785
|
x: number;
|
|
1206
2786
|
y: number;
|
|
1207
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;
|
|
1208
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;
|
|
1209
2809
|
}[] | undefined;
|
|
1210
2810
|
redactions?: ({
|
|
1211
2811
|
selector: string;
|
|
1212
2812
|
style?: "box" | "pixelate" | undefined;
|
|
1213
2813
|
} | {
|
|
1214
2814
|
region: {
|
|
1215
|
-
x: number;
|
|
1216
|
-
y: number;
|
|
1217
2815
|
width: number;
|
|
1218
2816
|
height: number;
|
|
2817
|
+
x: number;
|
|
2818
|
+
y: number;
|
|
1219
2819
|
};
|
|
1220
2820
|
style?: "box" | "pixelate" | undefined;
|
|
1221
2821
|
})[] | undefined;
|
|
@@ -1226,11 +2826,22 @@ export declare const FlowFile: z.ZodObject<{
|
|
|
1226
2826
|
locators: Record<string, string>;
|
|
1227
2827
|
steps: {
|
|
1228
2828
|
id: string;
|
|
1229
|
-
action: "fill" | "navigate" | "click" | "upload" | "press" | "hover" | "select" | "check" | "uncheck" | "wait";
|
|
2829
|
+
action: "fill" | "navigate" | "click" | "upload" | "press" | "hover" | "select" | "check" | "uncheck" | "wait" | "hide" | "show";
|
|
1230
2830
|
value?: string | undefined;
|
|
2831
|
+
timeout_ms?: number | undefined;
|
|
1231
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;
|
|
1232
2843
|
optional?: boolean | undefined;
|
|
1233
|
-
wait_for?: "network_idle" | "element_stable" | "load" | {
|
|
2844
|
+
wait_for?: "network_idle" | "element_stable" | "load" | "settled" | {
|
|
1234
2845
|
timeout_ms: number;
|
|
1235
2846
|
} | {
|
|
1236
2847
|
selector: string;
|
|
@@ -1255,7 +2866,27 @@ export declare const FlowFile: z.ZodObject<{
|
|
|
1255
2866
|
x: number;
|
|
1256
2867
|
y: number;
|
|
1257
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;
|
|
1258
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;
|
|
1259
2890
|
} | undefined;
|
|
1260
2891
|
annotations?: {
|
|
1261
2892
|
copy: string;
|
|
@@ -1264,17 +2895,37 @@ export declare const FlowFile: z.ZodObject<{
|
|
|
1264
2895
|
x: number;
|
|
1265
2896
|
y: number;
|
|
1266
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;
|
|
1267
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;
|
|
1268
2919
|
}[] | undefined;
|
|
1269
2920
|
redactions?: ({
|
|
1270
2921
|
selector: string;
|
|
1271
2922
|
style?: "box" | "pixelate" | undefined;
|
|
1272
2923
|
} | {
|
|
1273
2924
|
region: {
|
|
1274
|
-
x: number;
|
|
1275
|
-
y: number;
|
|
1276
2925
|
width: number;
|
|
1277
2926
|
height: number;
|
|
2927
|
+
x: number;
|
|
2928
|
+
y: number;
|
|
1278
2929
|
};
|
|
1279
2930
|
style?: "box" | "pixelate" | undefined;
|
|
1280
2931
|
})[] | undefined;
|
|
@@ -1284,10 +2935,10 @@ export declare const FlowFile: z.ZodObject<{
|
|
|
1284
2935
|
style?: "box" | "pixelate" | undefined;
|
|
1285
2936
|
} | {
|
|
1286
2937
|
region: {
|
|
1287
|
-
x: number;
|
|
1288
|
-
y: number;
|
|
1289
2938
|
width: number;
|
|
1290
2939
|
height: number;
|
|
2940
|
+
x: number;
|
|
2941
|
+
y: number;
|
|
1291
2942
|
};
|
|
1292
2943
|
style?: "box" | "pixelate" | undefined;
|
|
1293
2944
|
})[] | undefined;
|
|
@@ -1303,15 +2954,35 @@ export declare const FlowFile: z.ZodObject<{
|
|
|
1303
2954
|
color_scheme?: "light" | "dark" | undefined;
|
|
1304
2955
|
reduced_motion?: boolean | undefined;
|
|
1305
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;
|
|
1306
2966
|
}, {
|
|
1307
2967
|
name: string;
|
|
1308
2968
|
steps: {
|
|
1309
2969
|
id: string;
|
|
1310
|
-
action: "fill" | "navigate" | "click" | "upload" | "press" | "hover" | "select" | "check" | "uncheck" | "wait";
|
|
2970
|
+
action: "fill" | "navigate" | "click" | "upload" | "press" | "hover" | "select" | "check" | "uncheck" | "wait" | "hide" | "show";
|
|
1311
2971
|
value?: string | undefined;
|
|
2972
|
+
timeout_ms?: number | undefined;
|
|
1312
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;
|
|
1313
2984
|
optional?: boolean | undefined;
|
|
1314
|
-
wait_for?: "network_idle" | "element_stable" | "load" | {
|
|
2985
|
+
wait_for?: "network_idle" | "element_stable" | "load" | "settled" | {
|
|
1315
2986
|
timeout_ms: number;
|
|
1316
2987
|
} | {
|
|
1317
2988
|
selector: string;
|
|
@@ -1336,7 +3007,27 @@ export declare const FlowFile: z.ZodObject<{
|
|
|
1336
3007
|
x: number;
|
|
1337
3008
|
y: number;
|
|
1338
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;
|
|
1339
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;
|
|
1340
3031
|
} | undefined;
|
|
1341
3032
|
annotations?: {
|
|
1342
3033
|
copy: string;
|
|
@@ -1345,17 +3036,37 @@ export declare const FlowFile: z.ZodObject<{
|
|
|
1345
3036
|
x: number;
|
|
1346
3037
|
y: number;
|
|
1347
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;
|
|
1348
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;
|
|
1349
3060
|
}[] | undefined;
|
|
1350
3061
|
redactions?: ({
|
|
1351
3062
|
selector: string;
|
|
1352
3063
|
style?: "box" | "pixelate" | undefined;
|
|
1353
3064
|
} | {
|
|
1354
3065
|
region: {
|
|
1355
|
-
x: number;
|
|
1356
|
-
y: number;
|
|
1357
3066
|
width: number;
|
|
1358
3067
|
height: number;
|
|
3068
|
+
x: number;
|
|
3069
|
+
y: number;
|
|
1359
3070
|
};
|
|
1360
3071
|
style?: "box" | "pixelate" | undefined;
|
|
1361
3072
|
})[] | undefined;
|
|
@@ -1365,10 +3076,10 @@ export declare const FlowFile: z.ZodObject<{
|
|
|
1365
3076
|
style?: "box" | "pixelate" | undefined;
|
|
1366
3077
|
} | {
|
|
1367
3078
|
region: {
|
|
1368
|
-
x: number;
|
|
1369
|
-
y: number;
|
|
1370
3079
|
width: number;
|
|
1371
3080
|
height: number;
|
|
3081
|
+
x: number;
|
|
3082
|
+
y: number;
|
|
1372
3083
|
};
|
|
1373
3084
|
style?: "box" | "pixelate" | undefined;
|
|
1374
3085
|
})[] | undefined;
|
|
@@ -1384,25 +3095,35 @@ export declare const FlowFile: z.ZodObject<{
|
|
|
1384
3095
|
color_scheme?: "light" | "dark" | undefined;
|
|
1385
3096
|
reduced_motion?: boolean | undefined;
|
|
1386
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;
|
|
1387
3107
|
prerequisites?: Record<string, string | boolean>[] | undefined;
|
|
1388
3108
|
locators?: Record<string, string> | undefined;
|
|
1389
3109
|
}>;
|
|
1390
3110
|
export type FlowFile = z.infer<typeof FlowFile>;
|
|
3111
|
+
/** A rectangle in screenshot pixels: finite position, finite non-negative size. */
|
|
1391
3112
|
export declare const BoundingBox: z.ZodObject<{
|
|
1392
3113
|
x: z.ZodNumber;
|
|
1393
3114
|
y: z.ZodNumber;
|
|
1394
3115
|
width: z.ZodNumber;
|
|
1395
3116
|
height: z.ZodNumber;
|
|
1396
3117
|
}, "strict", z.ZodTypeAny, {
|
|
1397
|
-
x: number;
|
|
1398
|
-
y: number;
|
|
1399
3118
|
width: number;
|
|
1400
3119
|
height: number;
|
|
1401
|
-
}, {
|
|
1402
3120
|
x: number;
|
|
1403
3121
|
y: number;
|
|
3122
|
+
}, {
|
|
1404
3123
|
width: number;
|
|
1405
3124
|
height: number;
|
|
3125
|
+
x: number;
|
|
3126
|
+
y: number;
|
|
1406
3127
|
}>;
|
|
1407
3128
|
export type BoundingBox = z.infer<typeof BoundingBox>;
|
|
1408
3129
|
export declare const AnnotationRecord: z.ZodObject<{
|
|
@@ -1414,15 +3135,15 @@ export declare const AnnotationRecord: z.ZodObject<{
|
|
|
1414
3135
|
width: z.ZodNumber;
|
|
1415
3136
|
height: z.ZodNumber;
|
|
1416
3137
|
}, "strict", z.ZodTypeAny, {
|
|
1417
|
-
x: number;
|
|
1418
|
-
y: number;
|
|
1419
3138
|
width: number;
|
|
1420
3139
|
height: number;
|
|
1421
|
-
}, {
|
|
1422
3140
|
x: number;
|
|
1423
3141
|
y: number;
|
|
3142
|
+
}, {
|
|
1424
3143
|
width: number;
|
|
1425
3144
|
height: number;
|
|
3145
|
+
x: number;
|
|
3146
|
+
y: number;
|
|
1426
3147
|
}>>;
|
|
1427
3148
|
copy: z.ZodString;
|
|
1428
3149
|
arrow_style: z.ZodOptional<z.ZodEnum<["top-left", "top-right", "bottom-left", "bottom-right", "top", "bottom", "left", "right"]>>;
|
|
@@ -1437,6 +3158,64 @@ export declare const AnnotationRecord: z.ZodObject<{
|
|
|
1437
3158
|
x: number;
|
|
1438
3159
|
y: number;
|
|
1439
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
|
+
*/
|
|
3170
|
+
obstacles: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3171
|
+
x: z.ZodNumber;
|
|
3172
|
+
y: z.ZodNumber;
|
|
3173
|
+
width: z.ZodNumber;
|
|
3174
|
+
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}. */
|
|
3187
|
+
placement: z.ZodOptional<z.ZodObject<{
|
|
3188
|
+
/** Put the callout inside the target when the target is big enough to hold it (no arrow). */
|
|
3189
|
+
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. */
|
|
3195
|
+
pin_arrow: z.ZodOptional<z.ZodBoolean>;
|
|
3196
|
+
/** Widest outer callout box in px (default 280, narrower on small screenshots with obstacles). */
|
|
3197
|
+
max_width: z.ZodOptional<z.ZodNumber>;
|
|
3198
|
+
/** CSS px around the target the obstacle scan covers (default 320). Read by `docsxai run`. */
|
|
3199
|
+
obstacle_radius: z.ZodOptional<z.ZodNumber>;
|
|
3200
|
+
/** Most obstacles recorded for this annotation (default {@link MAX_OBSTACLES}). Read by `docsxai run`. */
|
|
3201
|
+
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
|
+
}>>;
|
|
1440
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. */
|
|
1441
3220
|
index: z.ZodOptional<z.ZodNumber>;
|
|
1442
3221
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -1447,13 +3226,28 @@ export declare const AnnotationRecord: z.ZodObject<{
|
|
|
1447
3226
|
x: number;
|
|
1448
3227
|
y: number;
|
|
1449
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;
|
|
1450
3238
|
bounding_box?: {
|
|
1451
|
-
x: number;
|
|
1452
|
-
y: number;
|
|
1453
3239
|
width: number;
|
|
1454
3240
|
height: number;
|
|
3241
|
+
x: number;
|
|
3242
|
+
y: number;
|
|
1455
3243
|
} | undefined;
|
|
1456
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;
|
|
1457
3251
|
index?: number | undefined;
|
|
1458
3252
|
}, {
|
|
1459
3253
|
selector: string;
|
|
@@ -1463,19 +3257,71 @@ export declare const AnnotationRecord: z.ZodObject<{
|
|
|
1463
3257
|
x: number;
|
|
1464
3258
|
y: number;
|
|
1465
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;
|
|
1466
3269
|
bounding_box?: {
|
|
1467
|
-
x: number;
|
|
1468
|
-
y: number;
|
|
1469
3270
|
width: number;
|
|
1470
3271
|
height: number;
|
|
3272
|
+
x: number;
|
|
3273
|
+
y: number;
|
|
1471
3274
|
} | undefined;
|
|
1472
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;
|
|
1473
3282
|
index?: number | undefined;
|
|
1474
3283
|
}>;
|
|
1475
3284
|
export type AnnotationRecord = z.infer<typeof AnnotationRecord>;
|
|
1476
3285
|
export declare const AnnotationsFile: z.ZodObject<{
|
|
1477
3286
|
schema: z.ZodLiteral<"docsxai/annotations@1">;
|
|
1478
3287
|
flow: z.ZodString;
|
|
3288
|
+
/** The matrix variant these annotations belong to. Absent for a flow without a `matrix`. */
|
|
3289
|
+
variant: z.ZodOptional<z.ZodObject<{
|
|
3290
|
+
id: z.ZodString;
|
|
3291
|
+
locale: z.ZodOptional<z.ZodString>;
|
|
3292
|
+
color_scheme: z.ZodOptional<z.ZodEnum<["light", "dark"]>>;
|
|
3293
|
+
viewport: z.ZodOptional<z.ZodObject<{
|
|
3294
|
+
name: z.ZodString;
|
|
3295
|
+
width: z.ZodNumber;
|
|
3296
|
+
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
|
+
}>>;
|
|
1479
3325
|
annotations: z.ZodArray<z.ZodObject<{
|
|
1480
3326
|
step: z.ZodString;
|
|
1481
3327
|
selector: z.ZodString;
|
|
@@ -1485,15 +3331,15 @@ export declare const AnnotationsFile: z.ZodObject<{
|
|
|
1485
3331
|
width: z.ZodNumber;
|
|
1486
3332
|
height: z.ZodNumber;
|
|
1487
3333
|
}, "strict", z.ZodTypeAny, {
|
|
1488
|
-
x: number;
|
|
1489
|
-
y: number;
|
|
1490
3334
|
width: number;
|
|
1491
3335
|
height: number;
|
|
1492
|
-
}, {
|
|
1493
3336
|
x: number;
|
|
1494
3337
|
y: number;
|
|
3338
|
+
}, {
|
|
1495
3339
|
width: number;
|
|
1496
3340
|
height: number;
|
|
3341
|
+
x: number;
|
|
3342
|
+
y: number;
|
|
1497
3343
|
}>>;
|
|
1498
3344
|
copy: z.ZodString;
|
|
1499
3345
|
arrow_style: z.ZodOptional<z.ZodEnum<["top-left", "top-right", "bottom-left", "bottom-right", "top", "bottom", "left", "right"]>>;
|
|
@@ -1508,6 +3354,64 @@ export declare const AnnotationsFile: z.ZodObject<{
|
|
|
1508
3354
|
x: number;
|
|
1509
3355
|
y: number;
|
|
1510
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
|
+
*/
|
|
3366
|
+
obstacles: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3367
|
+
x: z.ZodNumber;
|
|
3368
|
+
y: z.ZodNumber;
|
|
3369
|
+
width: z.ZodNumber;
|
|
3370
|
+
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}. */
|
|
3383
|
+
placement: z.ZodOptional<z.ZodObject<{
|
|
3384
|
+
/** Put the callout inside the target when the target is big enough to hold it (no arrow). */
|
|
3385
|
+
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. */
|
|
3391
|
+
pin_arrow: z.ZodOptional<z.ZodBoolean>;
|
|
3392
|
+
/** Widest outer callout box in px (default 280, narrower on small screenshots with obstacles). */
|
|
3393
|
+
max_width: z.ZodOptional<z.ZodNumber>;
|
|
3394
|
+
/** CSS px around the target the obstacle scan covers (default 320). Read by `docsxai run`. */
|
|
3395
|
+
obstacle_radius: z.ZodOptional<z.ZodNumber>;
|
|
3396
|
+
/** Most obstacles recorded for this annotation (default {@link MAX_OBSTACLES}). Read by `docsxai run`. */
|
|
3397
|
+
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
|
+
}>>;
|
|
1511
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. */
|
|
1512
3416
|
index: z.ZodOptional<z.ZodNumber>;
|
|
1513
3417
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -1518,13 +3422,28 @@ export declare const AnnotationsFile: z.ZodObject<{
|
|
|
1518
3422
|
x: number;
|
|
1519
3423
|
y: number;
|
|
1520
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;
|
|
1521
3434
|
bounding_box?: {
|
|
1522
|
-
x: number;
|
|
1523
|
-
y: number;
|
|
1524
3435
|
width: number;
|
|
1525
3436
|
height: number;
|
|
3437
|
+
x: number;
|
|
3438
|
+
y: number;
|
|
1526
3439
|
} | undefined;
|
|
1527
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;
|
|
1528
3447
|
index?: number | undefined;
|
|
1529
3448
|
}, {
|
|
1530
3449
|
selector: string;
|
|
@@ -1534,13 +3453,28 @@ export declare const AnnotationsFile: z.ZodObject<{
|
|
|
1534
3453
|
x: number;
|
|
1535
3454
|
y: number;
|
|
1536
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;
|
|
1537
3465
|
bounding_box?: {
|
|
1538
|
-
x: number;
|
|
1539
|
-
y: number;
|
|
1540
3466
|
width: number;
|
|
1541
3467
|
height: number;
|
|
3468
|
+
x: number;
|
|
3469
|
+
y: number;
|
|
1542
3470
|
} | undefined;
|
|
1543
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;
|
|
1544
3478
|
index?: number | undefined;
|
|
1545
3479
|
}>, "many">;
|
|
1546
3480
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -1552,17 +3486,42 @@ export declare const AnnotationsFile: z.ZodObject<{
|
|
|
1552
3486
|
x: number;
|
|
1553
3487
|
y: number;
|
|
1554
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;
|
|
1555
3498
|
bounding_box?: {
|
|
1556
|
-
x: number;
|
|
1557
|
-
y: number;
|
|
1558
3499
|
width: number;
|
|
1559
3500
|
height: number;
|
|
3501
|
+
x: number;
|
|
3502
|
+
y: number;
|
|
1560
3503
|
} | undefined;
|
|
1561
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;
|
|
1562
3511
|
index?: number | undefined;
|
|
1563
3512
|
}[];
|
|
1564
3513
|
schema: "docsxai/annotations@1";
|
|
1565
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;
|
|
1566
3525
|
}, {
|
|
1567
3526
|
annotations: {
|
|
1568
3527
|
selector: string;
|
|
@@ -1572,17 +3531,42 @@ export declare const AnnotationsFile: z.ZodObject<{
|
|
|
1572
3531
|
x: number;
|
|
1573
3532
|
y: number;
|
|
1574
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;
|
|
1575
3543
|
bounding_box?: {
|
|
1576
|
-
x: number;
|
|
1577
|
-
y: number;
|
|
1578
3544
|
width: number;
|
|
1579
3545
|
height: number;
|
|
3546
|
+
x: number;
|
|
3547
|
+
y: number;
|
|
1580
3548
|
} | undefined;
|
|
1581
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;
|
|
1582
3556
|
index?: number | undefined;
|
|
1583
3557
|
}[];
|
|
1584
3558
|
schema: "docsxai/annotations@1";
|
|
1585
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;
|
|
1586
3570
|
}>;
|
|
1587
3571
|
export type AnnotationsFile = z.infer<typeof AnnotationsFile>;
|
|
1588
3572
|
export declare const StyleArtifact: z.ZodObject<{
|