@docsxai/engine 0.2.1-rc.1 → 0.3.0-rc.2
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 +18 -5
- package/dist/address-class.d.ts +14 -0
- package/dist/address-class.js +151 -0
- package/dist/auth/api-login.d.ts +3 -3
- package/dist/auth/email-otp.d.ts +60 -60
- package/dist/auth/jwt-injection.d.ts +45 -45
- package/dist/auth/pat-header.d.ts +2 -2
- package/dist/auth/types.d.ts +2 -2
- package/dist/auth/ui-form.d.ts +54 -54
- package/dist/auth/webauthn.d.ts +22 -22
- package/dist/backend-client-contracts.d.ts +4 -2
- package/dist/backend-client-token.js +2 -1
- package/dist/calibrate.d.ts +2 -2
- package/dist/calibrate.js +5 -0
- package/dist/cli-backend-errors.d.ts +7 -0
- package/dist/cli-backend-errors.js +65 -0
- package/dist/cli-commands-authoring.js +57 -51
- package/dist/cli-commands-backend.js +49 -42
- package/dist/cli-commands-docpack.d.ts +5 -0
- package/dist/cli-commands-docpack.js +106 -66
- package/dist/cli-commands-pack.d.ts +2 -0
- package/dist/cli-commands-pack.js +65 -0
- package/dist/cli-commands-session.js +120 -125
- package/dist/cli-messages.d.ts +17 -0
- package/dist/cli-messages.js +80 -0
- package/dist/cli-retired.d.ts +6 -0
- package/dist/cli-retired.js +12 -0
- package/dist/cli-run-summary.d.ts +15 -0
- package/dist/cli-run-summary.js +33 -0
- package/dist/cli-usage.d.ts +1 -1
- package/dist/cli-usage.js +78 -5
- package/dist/cli-verify.d.ts +14 -0
- package/dist/cli-verify.js +54 -0
- package/dist/cli.js +15 -2
- 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 +2282 -387
- package/dist/doc-pack.js +135 -43
- package/dist/doctor-checks-plugins.js +4 -3
- package/dist/doctor-checks.d.ts +1 -1
- package/dist/doctor-checks.js +31 -6
- package/dist/doctor.d.ts +2 -0
- package/dist/doctor.js +27 -3
- 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 +9 -3
- 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 +52 -22
- package/dist/flow-runtime.js +63 -117
- 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 +5 -0
- package/dist/index.js +5 -0
- package/dist/matrix-spec.d.ts +145 -0
- package/dist/matrix-spec.js +120 -0
- package/dist/page-hide.d.ts +10 -0
- package/dist/page-hide.js +45 -0
- package/dist/page-settle.d.ts +39 -0
- package/dist/page-settle.js +142 -0
- package/dist/playwright-driver.d.ts +28 -8
- package/dist/playwright-driver.js +73 -28
- package/dist/plugins/manifest.d.ts +9 -9
- package/dist/run-flows.d.ts +40 -0
- package/dist/run-flows.js +129 -0
- package/dist/style.d.ts +2 -2
- 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/zip.d.ts +2 -2
- package/package.json +3 -2
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?: "desktop" | "mobile" | "tablet" | {
|
|
130
|
-
width: number;
|
|
131
|
-
height: number;
|
|
132
|
-
} | undefined;
|
|
133
|
-
color_scheme?: "dark" | "light" | undefined;
|
|
134
|
-
reduced_motion?: boolean | undefined;
|
|
135
|
-
}, {
|
|
136
|
-
clock?: string | undefined;
|
|
137
|
-
locale?: string | undefined;
|
|
138
|
-
timezone?: string | undefined;
|
|
139
|
-
viewport?: "desktop" | "mobile" | "tablet" | {
|
|
140
|
-
width: number;
|
|
141
|
-
height: number;
|
|
142
|
-
} | undefined;
|
|
143
|
-
color_scheme?: "dark" | "light" | 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,27 +265,117 @@ 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
|
-
arrow?: "
|
|
320
|
+
arrow?: "top-left" | "top-right" | "bottom-left" | "bottom-right" | "top" | "bottom" | "left" | "right" | undefined;
|
|
249
321
|
nudge?: {
|
|
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
|
-
arrow?: "
|
|
348
|
+
arrow?: "top-left" | "top-right" | "bottom-left" | "bottom-right" | "top" | "bottom" | "left" | "right" | undefined;
|
|
257
349
|
nudge?: {
|
|
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,22 +513,112 @@ 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
|
-
arrow?: "
|
|
568
|
+
arrow?: "top-left" | "top-right" | "bottom-left" | "bottom-right" | "top" | "bottom" | "left" | "right" | undefined;
|
|
365
569
|
nudge?: {
|
|
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
|
-
arrow?: "
|
|
596
|
+
arrow?: "top-left" | "top-right" | "bottom-left" | "bottom-right" | "top" | "bottom" | "left" | "right" | undefined;
|
|
373
597
|
nudge?: {
|
|
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,22 +685,112 @@ 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
|
-
arrow?: "
|
|
740
|
+
arrow?: "top-left" | "top-right" | "bottom-left" | "bottom-right" | "top" | "bottom" | "left" | "right" | undefined;
|
|
414
741
|
nudge?: {
|
|
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
|
-
arrow?: "
|
|
768
|
+
arrow?: "top-left" | "top-right" | "bottom-left" | "bottom-right" | "top" | "bottom" | "left" | "right" | undefined;
|
|
422
769
|
nudge?: {
|
|
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: "
|
|
476
|
-
optional?: boolean | undefined;
|
|
477
|
-
target?: string | undefined;
|
|
886
|
+
action: "fill" | "navigate" | "click" | "upload" | "press" | "hover" | "select" | "check" | "uncheck" | "wait" | "hide" | "show";
|
|
478
887
|
value?: string | undefined;
|
|
479
|
-
|
|
888
|
+
timeout_ms?: number | undefined;
|
|
889
|
+
target?: string | undefined;
|
|
890
|
+
only?: {
|
|
891
|
+
locale?: string[] | undefined;
|
|
892
|
+
viewport?: string[] | undefined;
|
|
893
|
+
color_scheme?: ("light" | "dark")[] | undefined;
|
|
894
|
+
} | undefined;
|
|
895
|
+
skip?: {
|
|
896
|
+
locale?: string[] | undefined;
|
|
897
|
+
viewport?: string[] | undefined;
|
|
898
|
+
color_scheme?: ("light" | "dark")[] | undefined;
|
|
899
|
+
} | undefined;
|
|
900
|
+
optional?: boolean | undefined;
|
|
901
|
+
wait_for?: "network_idle" | "element_stable" | "load" | "settled" | {
|
|
480
902
|
timeout_ms: number;
|
|
481
903
|
} | {
|
|
482
904
|
selector: string;
|
|
@@ -496,41 +918,92 @@ export declare const Step: z.ZodEffects<z.ZodObject<{
|
|
|
496
918
|
} | undefined;
|
|
497
919
|
annotation?: {
|
|
498
920
|
copy: string;
|
|
499
|
-
arrow?: "
|
|
921
|
+
arrow?: "top-left" | "top-right" | "bottom-left" | "bottom-right" | "top" | "bottom" | "left" | "right" | undefined;
|
|
500
922
|
nudge?: {
|
|
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;
|
|
508
|
-
arrow?: "
|
|
950
|
+
arrow?: "top-left" | "top-right" | "bottom-left" | "bottom-right" | "top" | "bottom" | "left" | "right" | undefined;
|
|
509
951
|
nudge?: {
|
|
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: "
|
|
530
|
-
optional?: boolean | undefined;
|
|
531
|
-
target?: string | undefined;
|
|
991
|
+
action: "fill" | "navigate" | "click" | "upload" | "press" | "hover" | "select" | "check" | "uncheck" | "wait" | "hide" | "show";
|
|
532
992
|
value?: string | undefined;
|
|
533
|
-
|
|
993
|
+
timeout_ms?: number | undefined;
|
|
994
|
+
target?: string | undefined;
|
|
995
|
+
only?: {
|
|
996
|
+
locale?: string[] | undefined;
|
|
997
|
+
viewport?: string[] | undefined;
|
|
998
|
+
color_scheme?: ("light" | "dark")[] | undefined;
|
|
999
|
+
} | undefined;
|
|
1000
|
+
skip?: {
|
|
1001
|
+
locale?: string[] | undefined;
|
|
1002
|
+
viewport?: string[] | undefined;
|
|
1003
|
+
color_scheme?: ("light" | "dark")[] | undefined;
|
|
1004
|
+
} | undefined;
|
|
1005
|
+
optional?: boolean | undefined;
|
|
1006
|
+
wait_for?: "network_idle" | "element_stable" | "load" | "settled" | {
|
|
534
1007
|
timeout_ms: number;
|
|
535
1008
|
} | {
|
|
536
1009
|
selector: string;
|
|
@@ -550,41 +1023,92 @@ export declare const Step: z.ZodEffects<z.ZodObject<{
|
|
|
550
1023
|
} | undefined;
|
|
551
1024
|
annotation?: {
|
|
552
1025
|
copy: string;
|
|
553
|
-
arrow?: "
|
|
1026
|
+
arrow?: "top-left" | "top-right" | "bottom-left" | "bottom-right" | "top" | "bottom" | "left" | "right" | undefined;
|
|
554
1027
|
nudge?: {
|
|
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;
|
|
562
|
-
arrow?: "
|
|
1055
|
+
arrow?: "top-left" | "top-right" | "bottom-left" | "bottom-right" | "top" | "bottom" | "left" | "right" | undefined;
|
|
563
1056
|
nudge?: {
|
|
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: "
|
|
584
|
-
optional?: boolean | undefined;
|
|
585
|
-
target?: string | undefined;
|
|
1096
|
+
action: "fill" | "navigate" | "click" | "upload" | "press" | "hover" | "select" | "check" | "uncheck" | "wait" | "hide" | "show";
|
|
586
1097
|
value?: string | undefined;
|
|
587
|
-
|
|
1098
|
+
timeout_ms?: number | undefined;
|
|
1099
|
+
target?: string | undefined;
|
|
1100
|
+
only?: {
|
|
1101
|
+
locale?: string[] | undefined;
|
|
1102
|
+
viewport?: string[] | undefined;
|
|
1103
|
+
color_scheme?: ("light" | "dark")[] | undefined;
|
|
1104
|
+
} | undefined;
|
|
1105
|
+
skip?: {
|
|
1106
|
+
locale?: string[] | undefined;
|
|
1107
|
+
viewport?: string[] | undefined;
|
|
1108
|
+
color_scheme?: ("light" | "dark")[] | undefined;
|
|
1109
|
+
} | undefined;
|
|
1110
|
+
optional?: boolean | undefined;
|
|
1111
|
+
wait_for?: "network_idle" | "element_stable" | "load" | "settled" | {
|
|
588
1112
|
timeout_ms: number;
|
|
589
1113
|
} | {
|
|
590
1114
|
selector: string;
|
|
@@ -604,41 +1128,92 @@ export declare const Step: z.ZodEffects<z.ZodObject<{
|
|
|
604
1128
|
} | undefined;
|
|
605
1129
|
annotation?: {
|
|
606
1130
|
copy: string;
|
|
607
|
-
arrow?: "
|
|
1131
|
+
arrow?: "top-left" | "top-right" | "bottom-left" | "bottom-right" | "top" | "bottom" | "left" | "right" | undefined;
|
|
608
1132
|
nudge?: {
|
|
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;
|
|
616
|
-
arrow?: "
|
|
1160
|
+
arrow?: "top-left" | "top-right" | "bottom-left" | "bottom-right" | "top" | "bottom" | "left" | "right" | undefined;
|
|
617
1161
|
nudge?: {
|
|
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: "
|
|
638
|
-
optional?: boolean | undefined;
|
|
639
|
-
target?: string | undefined;
|
|
1201
|
+
action: "fill" | "navigate" | "click" | "upload" | "press" | "hover" | "select" | "check" | "uncheck" | "wait" | "hide" | "show";
|
|
640
1202
|
value?: string | undefined;
|
|
641
|
-
|
|
1203
|
+
timeout_ms?: number | undefined;
|
|
1204
|
+
target?: string | undefined;
|
|
1205
|
+
only?: {
|
|
1206
|
+
locale?: string[] | undefined;
|
|
1207
|
+
viewport?: string[] | undefined;
|
|
1208
|
+
color_scheme?: ("light" | "dark")[] | undefined;
|
|
1209
|
+
} | undefined;
|
|
1210
|
+
skip?: {
|
|
1211
|
+
locale?: string[] | undefined;
|
|
1212
|
+
viewport?: string[] | undefined;
|
|
1213
|
+
color_scheme?: ("light" | "dark")[] | undefined;
|
|
1214
|
+
} | undefined;
|
|
1215
|
+
optional?: boolean | undefined;
|
|
1216
|
+
wait_for?: "network_idle" | "element_stable" | "load" | "settled" | {
|
|
642
1217
|
timeout_ms: number;
|
|
643
1218
|
} | {
|
|
644
1219
|
selector: string;
|
|
@@ -658,94 +1233,406 @@ export declare const Step: z.ZodEffects<z.ZodObject<{
|
|
|
658
1233
|
} | undefined;
|
|
659
1234
|
annotation?: {
|
|
660
1235
|
copy: string;
|
|
661
|
-
arrow?: "
|
|
1236
|
+
arrow?: "top-left" | "top-right" | "bottom-left" | "bottom-right" | "top" | "bottom" | "left" | "right" | undefined;
|
|
662
1237
|
nudge?: {
|
|
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;
|
|
670
|
-
arrow?: "
|
|
1265
|
+
arrow?: "top-left" | "top-right" | "bottom-left" | "bottom-right" | "top" | "bottom" | "left" | "right" | undefined;
|
|
671
1266
|
nudge?: {
|
|
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: {
|
|
682
|
-
x: number;
|
|
683
|
-
y: number;
|
|
684
1297
|
width: number;
|
|
685
1298
|
height: number;
|
|
1299
|
+
x: number;
|
|
1300
|
+
y: number;
|
|
686
1301
|
};
|
|
687
1302
|
style?: "box" | "pixelate" | undefined;
|
|
688
1303
|
})[] | undefined;
|
|
689
|
-
}
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
}
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
1304
|
+
}>, {
|
|
1305
|
+
id: string;
|
|
1306
|
+
action: "fill" | "navigate" | "click" | "upload" | "press" | "hover" | "select" | "check" | "uncheck" | "wait" | "hide" | "show";
|
|
1307
|
+
value?: string | undefined;
|
|
1308
|
+
timeout_ms?: number | undefined;
|
|
1309
|
+
target?: string | undefined;
|
|
1310
|
+
only?: {
|
|
1311
|
+
locale?: string[] | undefined;
|
|
1312
|
+
viewport?: string[] | undefined;
|
|
1313
|
+
color_scheme?: ("light" | "dark")[] | undefined;
|
|
1314
|
+
} | undefined;
|
|
1315
|
+
skip?: {
|
|
1316
|
+
locale?: string[] | undefined;
|
|
1317
|
+
viewport?: string[] | undefined;
|
|
1318
|
+
color_scheme?: ("light" | "dark")[] | undefined;
|
|
1319
|
+
} | undefined;
|
|
1320
|
+
optional?: boolean | undefined;
|
|
1321
|
+
wait_for?: "network_idle" | "element_stable" | "load" | "settled" | {
|
|
1322
|
+
timeout_ms: number;
|
|
1323
|
+
} | {
|
|
1324
|
+
selector: string;
|
|
1325
|
+
timeout_ms?: number | undefined;
|
|
1326
|
+
} | undefined;
|
|
1327
|
+
success?: {
|
|
1328
|
+
visible: string;
|
|
1329
|
+
} | {
|
|
1330
|
+
hidden: string;
|
|
1331
|
+
} | {
|
|
1332
|
+
url_matches: string;
|
|
1333
|
+
} | {
|
|
1334
|
+
text_contains: {
|
|
1335
|
+
selector: string;
|
|
1336
|
+
text: string;
|
|
1337
|
+
};
|
|
1338
|
+
} | undefined;
|
|
1339
|
+
annotation?: {
|
|
1340
|
+
copy: string;
|
|
1341
|
+
arrow?: "top-left" | "top-right" | "bottom-left" | "bottom-right" | "top" | "bottom" | "left" | "right" | undefined;
|
|
1342
|
+
nudge?: {
|
|
1343
|
+
x: number;
|
|
1344
|
+
y: number;
|
|
1345
|
+
} | undefined;
|
|
1346
|
+
placement?: {
|
|
1347
|
+
inside?: boolean | undefined;
|
|
1348
|
+
side?: "top" | "bottom" | "left" | "right" | undefined;
|
|
1349
|
+
align?: "start" | "center" | "end" | undefined;
|
|
1350
|
+
pin_arrow?: boolean | undefined;
|
|
1351
|
+
max_width?: number | undefined;
|
|
1352
|
+
obstacle_radius?: number | undefined;
|
|
1353
|
+
obstacle_limit?: number | undefined;
|
|
1354
|
+
} | undefined;
|
|
1355
|
+
target?: string | undefined;
|
|
1356
|
+
copy_by_locale?: Record<string, string> | undefined;
|
|
1357
|
+
only?: {
|
|
1358
|
+
locale?: string[] | undefined;
|
|
1359
|
+
viewport?: string[] | undefined;
|
|
1360
|
+
color_scheme?: ("light" | "dark")[] | undefined;
|
|
1361
|
+
} | undefined;
|
|
1362
|
+
skip?: {
|
|
1363
|
+
locale?: string[] | undefined;
|
|
1364
|
+
viewport?: string[] | undefined;
|
|
1365
|
+
color_scheme?: ("light" | "dark")[] | undefined;
|
|
1366
|
+
} | undefined;
|
|
1367
|
+
} | undefined;
|
|
1368
|
+
annotations?: {
|
|
1369
|
+
copy: string;
|
|
1370
|
+
arrow?: "top-left" | "top-right" | "bottom-left" | "bottom-right" | "top" | "bottom" | "left" | "right" | undefined;
|
|
1371
|
+
nudge?: {
|
|
1372
|
+
x: number;
|
|
1373
|
+
y: number;
|
|
1374
|
+
} | undefined;
|
|
1375
|
+
placement?: {
|
|
1376
|
+
inside?: boolean | undefined;
|
|
1377
|
+
side?: "top" | "bottom" | "left" | "right" | undefined;
|
|
1378
|
+
align?: "start" | "center" | "end" | undefined;
|
|
1379
|
+
pin_arrow?: boolean | undefined;
|
|
1380
|
+
max_width?: number | undefined;
|
|
1381
|
+
obstacle_radius?: number | undefined;
|
|
1382
|
+
obstacle_limit?: number | undefined;
|
|
1383
|
+
} | undefined;
|
|
1384
|
+
target?: string | undefined;
|
|
1385
|
+
copy_by_locale?: Record<string, string> | undefined;
|
|
1386
|
+
only?: {
|
|
1387
|
+
locale?: string[] | undefined;
|
|
1388
|
+
viewport?: string[] | undefined;
|
|
1389
|
+
color_scheme?: ("light" | "dark")[] | undefined;
|
|
1390
|
+
} | undefined;
|
|
1391
|
+
skip?: {
|
|
1392
|
+
locale?: string[] | undefined;
|
|
1393
|
+
viewport?: string[] | undefined;
|
|
1394
|
+
color_scheme?: ("light" | "dark")[] | undefined;
|
|
1395
|
+
} | undefined;
|
|
1396
|
+
}[] | undefined;
|
|
1397
|
+
redactions?: ({
|
|
1398
|
+
selector: string;
|
|
1399
|
+
style?: "box" | "pixelate" | undefined;
|
|
1400
|
+
} | {
|
|
1401
|
+
region: {
|
|
1402
|
+
width: number;
|
|
744
1403
|
height: number;
|
|
1404
|
+
x: number;
|
|
1405
|
+
y: number;
|
|
1406
|
+
};
|
|
1407
|
+
style?: "box" | "pixelate" | undefined;
|
|
1408
|
+
})[] | undefined;
|
|
1409
|
+
}, {
|
|
1410
|
+
id: string;
|
|
1411
|
+
action: "fill" | "navigate" | "click" | "upload" | "press" | "hover" | "select" | "check" | "uncheck" | "wait" | "hide" | "show";
|
|
1412
|
+
value?: string | undefined;
|
|
1413
|
+
timeout_ms?: number | undefined;
|
|
1414
|
+
target?: string | undefined;
|
|
1415
|
+
only?: {
|
|
1416
|
+
locale?: string[] | undefined;
|
|
1417
|
+
viewport?: string[] | undefined;
|
|
1418
|
+
color_scheme?: ("light" | "dark")[] | undefined;
|
|
1419
|
+
} | undefined;
|
|
1420
|
+
skip?: {
|
|
1421
|
+
locale?: string[] | undefined;
|
|
1422
|
+
viewport?: string[] | undefined;
|
|
1423
|
+
color_scheme?: ("light" | "dark")[] | undefined;
|
|
1424
|
+
} | undefined;
|
|
1425
|
+
optional?: boolean | undefined;
|
|
1426
|
+
wait_for?: "network_idle" | "element_stable" | "load" | "settled" | {
|
|
1427
|
+
timeout_ms: number;
|
|
1428
|
+
} | {
|
|
1429
|
+
selector: string;
|
|
1430
|
+
timeout_ms?: number | undefined;
|
|
1431
|
+
} | undefined;
|
|
1432
|
+
success?: {
|
|
1433
|
+
visible: string;
|
|
1434
|
+
} | {
|
|
1435
|
+
hidden: string;
|
|
1436
|
+
} | {
|
|
1437
|
+
url_matches: string;
|
|
1438
|
+
} | {
|
|
1439
|
+
text_contains: {
|
|
1440
|
+
selector: string;
|
|
1441
|
+
text: string;
|
|
1442
|
+
};
|
|
1443
|
+
} | undefined;
|
|
1444
|
+
annotation?: {
|
|
1445
|
+
copy: string;
|
|
1446
|
+
arrow?: "top-left" | "top-right" | "bottom-left" | "bottom-right" | "top" | "bottom" | "left" | "right" | undefined;
|
|
1447
|
+
nudge?: {
|
|
1448
|
+
x: number;
|
|
1449
|
+
y: number;
|
|
1450
|
+
} | undefined;
|
|
1451
|
+
placement?: {
|
|
1452
|
+
inside?: boolean | undefined;
|
|
1453
|
+
side?: "top" | "bottom" | "left" | "right" | undefined;
|
|
1454
|
+
align?: "start" | "center" | "end" | undefined;
|
|
1455
|
+
pin_arrow?: boolean | undefined;
|
|
1456
|
+
max_width?: number | undefined;
|
|
1457
|
+
obstacle_radius?: number | undefined;
|
|
1458
|
+
obstacle_limit?: number | undefined;
|
|
1459
|
+
} | undefined;
|
|
1460
|
+
target?: string | undefined;
|
|
1461
|
+
copy_by_locale?: Record<string, string> | undefined;
|
|
1462
|
+
only?: {
|
|
1463
|
+
locale?: string[] | undefined;
|
|
1464
|
+
viewport?: string[] | undefined;
|
|
1465
|
+
color_scheme?: ("light" | "dark")[] | undefined;
|
|
1466
|
+
} | undefined;
|
|
1467
|
+
skip?: {
|
|
1468
|
+
locale?: string[] | undefined;
|
|
1469
|
+
viewport?: string[] | undefined;
|
|
1470
|
+
color_scheme?: ("light" | "dark")[] | undefined;
|
|
1471
|
+
} | undefined;
|
|
1472
|
+
} | undefined;
|
|
1473
|
+
annotations?: {
|
|
1474
|
+
copy: string;
|
|
1475
|
+
arrow?: "top-left" | "top-right" | "bottom-left" | "bottom-right" | "top" | "bottom" | "left" | "right" | undefined;
|
|
1476
|
+
nudge?: {
|
|
1477
|
+
x: number;
|
|
1478
|
+
y: number;
|
|
1479
|
+
} | undefined;
|
|
1480
|
+
placement?: {
|
|
1481
|
+
inside?: boolean | undefined;
|
|
1482
|
+
side?: "top" | "bottom" | "left" | "right" | undefined;
|
|
1483
|
+
align?: "start" | "center" | "end" | undefined;
|
|
1484
|
+
pin_arrow?: boolean | undefined;
|
|
1485
|
+
max_width?: number | undefined;
|
|
1486
|
+
obstacle_radius?: number | undefined;
|
|
1487
|
+
obstacle_limit?: number | undefined;
|
|
1488
|
+
} | undefined;
|
|
1489
|
+
target?: string | undefined;
|
|
1490
|
+
copy_by_locale?: Record<string, string> | undefined;
|
|
1491
|
+
only?: {
|
|
1492
|
+
locale?: string[] | undefined;
|
|
1493
|
+
viewport?: string[] | undefined;
|
|
1494
|
+
color_scheme?: ("light" | "dark")[] | undefined;
|
|
1495
|
+
} | undefined;
|
|
1496
|
+
skip?: {
|
|
1497
|
+
locale?: string[] | undefined;
|
|
1498
|
+
viewport?: string[] | undefined;
|
|
1499
|
+
color_scheme?: ("light" | "dark")[] | undefined;
|
|
745
1500
|
} | undefined;
|
|
746
|
-
|
|
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
|
|
1536
|
+
* (A extends B extends C); cycles are rejected. Resolved at run time against `flows/<name>.flow.yaml`.
|
|
1537
|
+
* Typical use: factor out a shared preamble (Library → open a video → editor) so dependent flows don't
|
|
1538
|
+
* re-walk it every run. (`run --stop-after` operates on the merged step list.)
|
|
1539
|
+
*/
|
|
1540
|
+
extends: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>>;
|
|
1541
|
+
/**
|
|
1542
|
+
* Deterministic execution environment (frozen clock, locale, timezone, viewport, color scheme,
|
|
1543
|
+
* reduced motion). With `extends`, merged per-key — this flow's keys win over the parent's.
|
|
1544
|
+
*/
|
|
1545
|
+
environment: z.ZodOptional<z.ZodObject<{
|
|
1546
|
+
clock: z.ZodOptional<z.ZodString>;
|
|
1547
|
+
locale: z.ZodOptional<z.ZodString>;
|
|
1548
|
+
timezone: z.ZodOptional<z.ZodString>;
|
|
1549
|
+
viewport: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["desktop", "tablet", "mobile"]>, z.ZodObject<{
|
|
1550
|
+
width: z.ZodNumber;
|
|
1551
|
+
height: z.ZodNumber;
|
|
1552
|
+
}, "strict", z.ZodTypeAny, {
|
|
1553
|
+
width: number;
|
|
1554
|
+
height: number;
|
|
1555
|
+
}, {
|
|
1556
|
+
width: number;
|
|
1557
|
+
height: number;
|
|
1558
|
+
}>]>>;
|
|
1559
|
+
color_scheme: z.ZodOptional<z.ZodEnum<["light", "dark"]>>;
|
|
1560
|
+
reduced_motion: z.ZodOptional<z.ZodBoolean>;
|
|
1561
|
+
}, "strict", z.ZodTypeAny, {
|
|
1562
|
+
clock?: string | undefined;
|
|
1563
|
+
locale?: string | undefined;
|
|
1564
|
+
timezone?: string | undefined;
|
|
1565
|
+
viewport?: {
|
|
1566
|
+
width: number;
|
|
1567
|
+
height: number;
|
|
1568
|
+
} | "desktop" | "tablet" | "mobile" | undefined;
|
|
1569
|
+
color_scheme?: "light" | "dark" | undefined;
|
|
1570
|
+
reduced_motion?: boolean | undefined;
|
|
1571
|
+
}, {
|
|
1572
|
+
clock?: string | undefined;
|
|
1573
|
+
locale?: string | undefined;
|
|
1574
|
+
timezone?: string | undefined;
|
|
1575
|
+
viewport?: {
|
|
1576
|
+
width: number;
|
|
1577
|
+
height: number;
|
|
1578
|
+
} | "desktop" | "tablet" | "mobile" | undefined;
|
|
1579
|
+
color_scheme?: "light" | "dark" | undefined;
|
|
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,22 +1821,112 @@ 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
|
-
arrow?: "
|
|
1876
|
+
arrow?: "top-left" | "top-right" | "bottom-left" | "bottom-right" | "top" | "bottom" | "left" | "right" | undefined;
|
|
898
1877
|
nudge?: {
|
|
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
|
-
arrow?: "
|
|
1904
|
+
arrow?: "top-left" | "top-right" | "bottom-left" | "bottom-right" | "top" | "bottom" | "left" | "right" | undefined;
|
|
906
1905
|
nudge?: {
|
|
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,22 +1993,112 @@ 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
|
-
arrow?: "
|
|
2048
|
+
arrow?: "top-left" | "top-right" | "bottom-left" | "bottom-right" | "top" | "bottom" | "left" | "right" | undefined;
|
|
947
2049
|
nudge?: {
|
|
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
|
-
arrow?: "
|
|
2076
|
+
arrow?: "top-left" | "top-right" | "bottom-left" | "bottom-right" | "top" | "bottom" | "left" | "right" | undefined;
|
|
955
2077
|
nudge?: {
|
|
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,96 @@ 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: {
|
|
991
|
-
x: number;
|
|
992
|
-
y: number;
|
|
993
2133
|
width: number;
|
|
994
2134
|
height: number;
|
|
2135
|
+
x: number;
|
|
2136
|
+
y: number;
|
|
995
2137
|
};
|
|
996
2138
|
style?: "box" | "pixelate" | undefined;
|
|
997
2139
|
}, {
|
|
998
2140
|
region: {
|
|
999
|
-
x: number;
|
|
1000
|
-
y: number;
|
|
1001
2141
|
width: number;
|
|
1002
2142
|
height: number;
|
|
2143
|
+
x: number;
|
|
2144
|
+
y: number;
|
|
1003
2145
|
};
|
|
1004
2146
|
style?: "box" | "pixelate" | undefined;
|
|
1005
2147
|
}>]>, "many">>;
|
|
2148
|
+
/** Variants this step runs for (the others skip it). Needs a `matrix`; see {@link VariantSelector}. */
|
|
2149
|
+
only: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
2150
|
+
viewport: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2151
|
+
color_scheme: z.ZodOptional<z.ZodArray<z.ZodEnum<["light", "dark"]>, "many">>;
|
|
2152
|
+
locale: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2153
|
+
}, "strict", z.ZodTypeAny, {
|
|
2154
|
+
locale?: string[] | undefined;
|
|
2155
|
+
viewport?: string[] | undefined;
|
|
2156
|
+
color_scheme?: ("light" | "dark")[] | undefined;
|
|
2157
|
+
}, {
|
|
2158
|
+
locale?: string[] | undefined;
|
|
2159
|
+
viewport?: string[] | undefined;
|
|
2160
|
+
color_scheme?: ("light" | "dark")[] | undefined;
|
|
2161
|
+
}>, {
|
|
2162
|
+
locale?: string[] | undefined;
|
|
2163
|
+
viewport?: string[] | undefined;
|
|
2164
|
+
color_scheme?: ("light" | "dark")[] | undefined;
|
|
2165
|
+
}, {
|
|
2166
|
+
locale?: string[] | undefined;
|
|
2167
|
+
viewport?: string[] | undefined;
|
|
2168
|
+
color_scheme?: ("light" | "dark")[] | undefined;
|
|
2169
|
+
}>>;
|
|
2170
|
+
/** Variants this step is dropped from. Needs a `matrix`; see {@link VariantSelector}. */
|
|
2171
|
+
skip: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
2172
|
+
viewport: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2173
|
+
color_scheme: z.ZodOptional<z.ZodArray<z.ZodEnum<["light", "dark"]>, "many">>;
|
|
2174
|
+
locale: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2175
|
+
}, "strict", z.ZodTypeAny, {
|
|
2176
|
+
locale?: string[] | undefined;
|
|
2177
|
+
viewport?: string[] | undefined;
|
|
2178
|
+
color_scheme?: ("light" | "dark")[] | undefined;
|
|
2179
|
+
}, {
|
|
2180
|
+
locale?: string[] | undefined;
|
|
2181
|
+
viewport?: string[] | undefined;
|
|
2182
|
+
color_scheme?: ("light" | "dark")[] | undefined;
|
|
2183
|
+
}>, {
|
|
2184
|
+
locale?: string[] | undefined;
|
|
2185
|
+
viewport?: string[] | undefined;
|
|
2186
|
+
color_scheme?: ("light" | "dark")[] | undefined;
|
|
2187
|
+
}, {
|
|
2188
|
+
locale?: string[] | undefined;
|
|
2189
|
+
viewport?: string[] | undefined;
|
|
2190
|
+
color_scheme?: ("light" | "dark")[] | undefined;
|
|
2191
|
+
}>>;
|
|
1006
2192
|
}, "strict", z.ZodTypeAny, {
|
|
1007
2193
|
id: string;
|
|
1008
|
-
action: "
|
|
1009
|
-
optional?: boolean | undefined;
|
|
1010
|
-
target?: string | undefined;
|
|
2194
|
+
action: "fill" | "navigate" | "click" | "upload" | "press" | "hover" | "select" | "check" | "uncheck" | "wait" | "hide" | "show";
|
|
1011
2195
|
value?: string | undefined;
|
|
1012
|
-
|
|
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" | {
|
|
1013
2210
|
timeout_ms: number;
|
|
1014
2211
|
} | {
|
|
1015
2212
|
selector: string;
|
|
@@ -1029,41 +2226,92 @@ export declare const FlowFile: z.ZodObject<{
|
|
|
1029
2226
|
} | undefined;
|
|
1030
2227
|
annotation?: {
|
|
1031
2228
|
copy: string;
|
|
1032
|
-
arrow?: "
|
|
2229
|
+
arrow?: "top-left" | "top-right" | "bottom-left" | "bottom-right" | "top" | "bottom" | "left" | "right" | undefined;
|
|
1033
2230
|
nudge?: {
|
|
1034
2231
|
x: number;
|
|
1035
2232
|
y: number;
|
|
1036
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;
|
|
1037
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;
|
|
1038
2255
|
} | undefined;
|
|
1039
2256
|
annotations?: {
|
|
1040
2257
|
copy: string;
|
|
1041
|
-
arrow?: "
|
|
2258
|
+
arrow?: "top-left" | "top-right" | "bottom-left" | "bottom-right" | "top" | "bottom" | "left" | "right" | undefined;
|
|
1042
2259
|
nudge?: {
|
|
1043
2260
|
x: number;
|
|
1044
2261
|
y: number;
|
|
1045
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;
|
|
1046
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;
|
|
1047
2284
|
}[] | undefined;
|
|
1048
2285
|
redactions?: ({
|
|
1049
2286
|
selector: string;
|
|
1050
2287
|
style?: "box" | "pixelate" | undefined;
|
|
1051
2288
|
} | {
|
|
1052
2289
|
region: {
|
|
1053
|
-
x: number;
|
|
1054
|
-
y: number;
|
|
1055
2290
|
width: number;
|
|
1056
2291
|
height: number;
|
|
2292
|
+
x: number;
|
|
2293
|
+
y: number;
|
|
1057
2294
|
};
|
|
1058
2295
|
style?: "box" | "pixelate" | undefined;
|
|
1059
2296
|
})[] | undefined;
|
|
1060
2297
|
}, {
|
|
1061
2298
|
id: string;
|
|
1062
|
-
action: "
|
|
1063
|
-
optional?: boolean | undefined;
|
|
1064
|
-
target?: string | undefined;
|
|
2299
|
+
action: "fill" | "navigate" | "click" | "upload" | "press" | "hover" | "select" | "check" | "uncheck" | "wait" | "hide" | "show";
|
|
1065
2300
|
value?: string | undefined;
|
|
1066
|
-
|
|
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" | {
|
|
1067
2315
|
timeout_ms: number;
|
|
1068
2316
|
} | {
|
|
1069
2317
|
selector: string;
|
|
@@ -1083,41 +2331,92 @@ export declare const FlowFile: z.ZodObject<{
|
|
|
1083
2331
|
} | undefined;
|
|
1084
2332
|
annotation?: {
|
|
1085
2333
|
copy: string;
|
|
1086
|
-
arrow?: "
|
|
2334
|
+
arrow?: "top-left" | "top-right" | "bottom-left" | "bottom-right" | "top" | "bottom" | "left" | "right" | undefined;
|
|
1087
2335
|
nudge?: {
|
|
1088
2336
|
x: number;
|
|
1089
2337
|
y: number;
|
|
1090
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;
|
|
1091
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;
|
|
1092
2360
|
} | undefined;
|
|
1093
2361
|
annotations?: {
|
|
1094
2362
|
copy: string;
|
|
1095
|
-
arrow?: "
|
|
2363
|
+
arrow?: "top-left" | "top-right" | "bottom-left" | "bottom-right" | "top" | "bottom" | "left" | "right" | undefined;
|
|
1096
2364
|
nudge?: {
|
|
1097
2365
|
x: number;
|
|
1098
2366
|
y: number;
|
|
1099
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;
|
|
1100
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;
|
|
1101
2389
|
}[] | undefined;
|
|
1102
2390
|
redactions?: ({
|
|
1103
2391
|
selector: string;
|
|
1104
2392
|
style?: "box" | "pixelate" | undefined;
|
|
1105
2393
|
} | {
|
|
1106
2394
|
region: {
|
|
1107
|
-
x: number;
|
|
1108
|
-
y: number;
|
|
1109
2395
|
width: number;
|
|
1110
2396
|
height: number;
|
|
2397
|
+
x: number;
|
|
2398
|
+
y: number;
|
|
1111
2399
|
};
|
|
1112
2400
|
style?: "box" | "pixelate" | undefined;
|
|
1113
2401
|
})[] | undefined;
|
|
1114
2402
|
}>, {
|
|
1115
2403
|
id: string;
|
|
1116
|
-
action: "
|
|
1117
|
-
optional?: boolean | undefined;
|
|
1118
|
-
target?: string | undefined;
|
|
2404
|
+
action: "fill" | "navigate" | "click" | "upload" | "press" | "hover" | "select" | "check" | "uncheck" | "wait" | "hide" | "show";
|
|
1119
2405
|
value?: string | undefined;
|
|
1120
|
-
|
|
2406
|
+
timeout_ms?: number | undefined;
|
|
2407
|
+
target?: string | undefined;
|
|
2408
|
+
only?: {
|
|
2409
|
+
locale?: string[] | undefined;
|
|
2410
|
+
viewport?: string[] | undefined;
|
|
2411
|
+
color_scheme?: ("light" | "dark")[] | undefined;
|
|
2412
|
+
} | undefined;
|
|
2413
|
+
skip?: {
|
|
2414
|
+
locale?: string[] | undefined;
|
|
2415
|
+
viewport?: string[] | undefined;
|
|
2416
|
+
color_scheme?: ("light" | "dark")[] | undefined;
|
|
2417
|
+
} | undefined;
|
|
2418
|
+
optional?: boolean | undefined;
|
|
2419
|
+
wait_for?: "network_idle" | "element_stable" | "load" | "settled" | {
|
|
1121
2420
|
timeout_ms: number;
|
|
1122
2421
|
} | {
|
|
1123
2422
|
selector: string;
|
|
@@ -1137,41 +2436,197 @@ export declare const FlowFile: z.ZodObject<{
|
|
|
1137
2436
|
} | undefined;
|
|
1138
2437
|
annotation?: {
|
|
1139
2438
|
copy: string;
|
|
1140
|
-
arrow?: "
|
|
2439
|
+
arrow?: "top-left" | "top-right" | "bottom-left" | "bottom-right" | "top" | "bottom" | "left" | "right" | undefined;
|
|
1141
2440
|
nudge?: {
|
|
1142
2441
|
x: number;
|
|
1143
2442
|
y: number;
|
|
1144
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;
|
|
1145
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;
|
|
1146
2465
|
} | undefined;
|
|
1147
2466
|
annotations?: {
|
|
1148
2467
|
copy: string;
|
|
1149
|
-
arrow?: "
|
|
2468
|
+
arrow?: "top-left" | "top-right" | "bottom-left" | "bottom-right" | "top" | "bottom" | "left" | "right" | undefined;
|
|
1150
2469
|
nudge?: {
|
|
1151
2470
|
x: number;
|
|
1152
2471
|
y: number;
|
|
1153
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;
|
|
1154
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;
|
|
1155
2494
|
}[] | undefined;
|
|
1156
2495
|
redactions?: ({
|
|
1157
2496
|
selector: string;
|
|
1158
2497
|
style?: "box" | "pixelate" | undefined;
|
|
1159
2498
|
} | {
|
|
1160
2499
|
region: {
|
|
1161
|
-
x: number;
|
|
1162
|
-
y: number;
|
|
1163
2500
|
width: number;
|
|
1164
2501
|
height: number;
|
|
2502
|
+
x: number;
|
|
2503
|
+
y: number;
|
|
1165
2504
|
};
|
|
1166
2505
|
style?: "box" | "pixelate" | undefined;
|
|
1167
2506
|
})[] | undefined;
|
|
1168
2507
|
}, {
|
|
1169
2508
|
id: string;
|
|
1170
|
-
action: "
|
|
1171
|
-
|
|
2509
|
+
action: "fill" | "navigate" | "click" | "upload" | "press" | "hover" | "select" | "check" | "uncheck" | "wait" | "hide" | "show";
|
|
2510
|
+
value?: string | undefined;
|
|
2511
|
+
timeout_ms?: number | undefined;
|
|
1172
2512
|
target?: string | undefined;
|
|
2513
|
+
only?: {
|
|
2514
|
+
locale?: string[] | undefined;
|
|
2515
|
+
viewport?: string[] | undefined;
|
|
2516
|
+
color_scheme?: ("light" | "dark")[] | undefined;
|
|
2517
|
+
} | undefined;
|
|
2518
|
+
skip?: {
|
|
2519
|
+
locale?: string[] | undefined;
|
|
2520
|
+
viewport?: string[] | undefined;
|
|
2521
|
+
color_scheme?: ("light" | "dark")[] | undefined;
|
|
2522
|
+
} | undefined;
|
|
2523
|
+
optional?: boolean | undefined;
|
|
2524
|
+
wait_for?: "network_idle" | "element_stable" | "load" | "settled" | {
|
|
2525
|
+
timeout_ms: number;
|
|
2526
|
+
} | {
|
|
2527
|
+
selector: string;
|
|
2528
|
+
timeout_ms?: number | undefined;
|
|
2529
|
+
} | undefined;
|
|
2530
|
+
success?: {
|
|
2531
|
+
visible: string;
|
|
2532
|
+
} | {
|
|
2533
|
+
hidden: string;
|
|
2534
|
+
} | {
|
|
2535
|
+
url_matches: string;
|
|
2536
|
+
} | {
|
|
2537
|
+
text_contains: {
|
|
2538
|
+
selector: string;
|
|
2539
|
+
text: string;
|
|
2540
|
+
};
|
|
2541
|
+
} | undefined;
|
|
2542
|
+
annotation?: {
|
|
2543
|
+
copy: string;
|
|
2544
|
+
arrow?: "top-left" | "top-right" | "bottom-left" | "bottom-right" | "top" | "bottom" | "left" | "right" | undefined;
|
|
2545
|
+
nudge?: {
|
|
2546
|
+
x: number;
|
|
2547
|
+
y: number;
|
|
2548
|
+
} | undefined;
|
|
2549
|
+
placement?: {
|
|
2550
|
+
inside?: boolean | undefined;
|
|
2551
|
+
side?: "top" | "bottom" | "left" | "right" | undefined;
|
|
2552
|
+
align?: "start" | "center" | "end" | undefined;
|
|
2553
|
+
pin_arrow?: boolean | undefined;
|
|
2554
|
+
max_width?: number | undefined;
|
|
2555
|
+
obstacle_radius?: number | undefined;
|
|
2556
|
+
obstacle_limit?: number | undefined;
|
|
2557
|
+
} | undefined;
|
|
2558
|
+
target?: string | undefined;
|
|
2559
|
+
copy_by_locale?: Record<string, string> | undefined;
|
|
2560
|
+
only?: {
|
|
2561
|
+
locale?: string[] | undefined;
|
|
2562
|
+
viewport?: string[] | undefined;
|
|
2563
|
+
color_scheme?: ("light" | "dark")[] | undefined;
|
|
2564
|
+
} | undefined;
|
|
2565
|
+
skip?: {
|
|
2566
|
+
locale?: string[] | undefined;
|
|
2567
|
+
viewport?: string[] | undefined;
|
|
2568
|
+
color_scheme?: ("light" | "dark")[] | undefined;
|
|
2569
|
+
} | undefined;
|
|
2570
|
+
} | undefined;
|
|
2571
|
+
annotations?: {
|
|
2572
|
+
copy: string;
|
|
2573
|
+
arrow?: "top-left" | "top-right" | "bottom-left" | "bottom-right" | "top" | "bottom" | "left" | "right" | undefined;
|
|
2574
|
+
nudge?: {
|
|
2575
|
+
x: number;
|
|
2576
|
+
y: number;
|
|
2577
|
+
} | undefined;
|
|
2578
|
+
placement?: {
|
|
2579
|
+
inside?: boolean | undefined;
|
|
2580
|
+
side?: "top" | "bottom" | "left" | "right" | undefined;
|
|
2581
|
+
align?: "start" | "center" | "end" | undefined;
|
|
2582
|
+
pin_arrow?: boolean | undefined;
|
|
2583
|
+
max_width?: number | undefined;
|
|
2584
|
+
obstacle_radius?: number | undefined;
|
|
2585
|
+
obstacle_limit?: number | undefined;
|
|
2586
|
+
} | undefined;
|
|
2587
|
+
target?: string | undefined;
|
|
2588
|
+
copy_by_locale?: Record<string, string> | undefined;
|
|
2589
|
+
only?: {
|
|
2590
|
+
locale?: string[] | undefined;
|
|
2591
|
+
viewport?: string[] | undefined;
|
|
2592
|
+
color_scheme?: ("light" | "dark")[] | undefined;
|
|
2593
|
+
} | undefined;
|
|
2594
|
+
skip?: {
|
|
2595
|
+
locale?: string[] | undefined;
|
|
2596
|
+
viewport?: string[] | undefined;
|
|
2597
|
+
color_scheme?: ("light" | "dark")[] | undefined;
|
|
2598
|
+
} | undefined;
|
|
2599
|
+
}[] | undefined;
|
|
2600
|
+
redactions?: ({
|
|
2601
|
+
selector: string;
|
|
2602
|
+
style?: "box" | "pixelate" | undefined;
|
|
2603
|
+
} | {
|
|
2604
|
+
region: {
|
|
2605
|
+
width: number;
|
|
2606
|
+
height: number;
|
|
2607
|
+
x: number;
|
|
2608
|
+
y: number;
|
|
2609
|
+
};
|
|
2610
|
+
style?: "box" | "pixelate" | undefined;
|
|
2611
|
+
})[] | undefined;
|
|
2612
|
+
}>, {
|
|
2613
|
+
id: string;
|
|
2614
|
+
action: "fill" | "navigate" | "click" | "upload" | "press" | "hover" | "select" | "check" | "uncheck" | "wait" | "hide" | "show";
|
|
1173
2615
|
value?: string | undefined;
|
|
1174
|
-
|
|
2616
|
+
timeout_ms?: number | undefined;
|
|
2617
|
+
target?: string | undefined;
|
|
2618
|
+
only?: {
|
|
2619
|
+
locale?: string[] | undefined;
|
|
2620
|
+
viewport?: string[] | undefined;
|
|
2621
|
+
color_scheme?: ("light" | "dark")[] | undefined;
|
|
2622
|
+
} | undefined;
|
|
2623
|
+
skip?: {
|
|
2624
|
+
locale?: string[] | undefined;
|
|
2625
|
+
viewport?: string[] | undefined;
|
|
2626
|
+
color_scheme?: ("light" | "dark")[] | undefined;
|
|
2627
|
+
} | undefined;
|
|
2628
|
+
optional?: boolean | undefined;
|
|
2629
|
+
wait_for?: "network_idle" | "element_stable" | "load" | "settled" | {
|
|
1175
2630
|
timeout_ms: number;
|
|
1176
2631
|
} | {
|
|
1177
2632
|
selector: string;
|
|
@@ -1191,70 +2646,202 @@ export declare const FlowFile: z.ZodObject<{
|
|
|
1191
2646
|
} | undefined;
|
|
1192
2647
|
annotation?: {
|
|
1193
2648
|
copy: string;
|
|
1194
|
-
arrow?: "
|
|
2649
|
+
arrow?: "top-left" | "top-right" | "bottom-left" | "bottom-right" | "top" | "bottom" | "left" | "right" | undefined;
|
|
1195
2650
|
nudge?: {
|
|
1196
2651
|
x: number;
|
|
1197
2652
|
y: number;
|
|
1198
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;
|
|
1199
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;
|
|
1200
2675
|
} | undefined;
|
|
1201
2676
|
annotations?: {
|
|
1202
2677
|
copy: string;
|
|
1203
|
-
arrow?: "
|
|
2678
|
+
arrow?: "top-left" | "top-right" | "bottom-left" | "bottom-right" | "top" | "bottom" | "left" | "right" | undefined;
|
|
1204
2679
|
nudge?: {
|
|
1205
2680
|
x: number;
|
|
1206
2681
|
y: number;
|
|
1207
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;
|
|
1208
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;
|
|
1209
2704
|
}[] | undefined;
|
|
1210
2705
|
redactions?: ({
|
|
1211
2706
|
selector: string;
|
|
1212
2707
|
style?: "box" | "pixelate" | undefined;
|
|
1213
2708
|
} | {
|
|
1214
2709
|
region: {
|
|
2710
|
+
width: number;
|
|
2711
|
+
height: number;
|
|
2712
|
+
x: number;
|
|
2713
|
+
y: number;
|
|
2714
|
+
};
|
|
2715
|
+
style?: "box" | "pixelate" | undefined;
|
|
2716
|
+
})[] | undefined;
|
|
2717
|
+
}, {
|
|
2718
|
+
id: string;
|
|
2719
|
+
action: "fill" | "navigate" | "click" | "upload" | "press" | "hover" | "select" | "check" | "uncheck" | "wait" | "hide" | "show";
|
|
2720
|
+
value?: string | undefined;
|
|
2721
|
+
timeout_ms?: number | undefined;
|
|
2722
|
+
target?: string | undefined;
|
|
2723
|
+
only?: {
|
|
2724
|
+
locale?: string[] | undefined;
|
|
2725
|
+
viewport?: string[] | undefined;
|
|
2726
|
+
color_scheme?: ("light" | "dark")[] | undefined;
|
|
2727
|
+
} | undefined;
|
|
2728
|
+
skip?: {
|
|
2729
|
+
locale?: string[] | undefined;
|
|
2730
|
+
viewport?: string[] | undefined;
|
|
2731
|
+
color_scheme?: ("light" | "dark")[] | undefined;
|
|
2732
|
+
} | undefined;
|
|
2733
|
+
optional?: boolean | undefined;
|
|
2734
|
+
wait_for?: "network_idle" | "element_stable" | "load" | "settled" | {
|
|
2735
|
+
timeout_ms: number;
|
|
2736
|
+
} | {
|
|
2737
|
+
selector: string;
|
|
2738
|
+
timeout_ms?: number | undefined;
|
|
2739
|
+
} | undefined;
|
|
2740
|
+
success?: {
|
|
2741
|
+
visible: string;
|
|
2742
|
+
} | {
|
|
2743
|
+
hidden: string;
|
|
2744
|
+
} | {
|
|
2745
|
+
url_matches: string;
|
|
2746
|
+
} | {
|
|
2747
|
+
text_contains: {
|
|
2748
|
+
selector: string;
|
|
2749
|
+
text: string;
|
|
2750
|
+
};
|
|
2751
|
+
} | undefined;
|
|
2752
|
+
annotation?: {
|
|
2753
|
+
copy: string;
|
|
2754
|
+
arrow?: "top-left" | "top-right" | "bottom-left" | "bottom-right" | "top" | "bottom" | "left" | "right" | undefined;
|
|
2755
|
+
nudge?: {
|
|
1215
2756
|
x: number;
|
|
1216
2757
|
y: number;
|
|
2758
|
+
} | undefined;
|
|
2759
|
+
placement?: {
|
|
2760
|
+
inside?: boolean | undefined;
|
|
2761
|
+
side?: "top" | "bottom" | "left" | "right" | undefined;
|
|
2762
|
+
align?: "start" | "center" | "end" | undefined;
|
|
2763
|
+
pin_arrow?: boolean | undefined;
|
|
2764
|
+
max_width?: number | undefined;
|
|
2765
|
+
obstacle_radius?: number | undefined;
|
|
2766
|
+
obstacle_limit?: number | undefined;
|
|
2767
|
+
} | undefined;
|
|
2768
|
+
target?: string | undefined;
|
|
2769
|
+
copy_by_locale?: Record<string, string> | undefined;
|
|
2770
|
+
only?: {
|
|
2771
|
+
locale?: string[] | undefined;
|
|
2772
|
+
viewport?: string[] | undefined;
|
|
2773
|
+
color_scheme?: ("light" | "dark")[] | undefined;
|
|
2774
|
+
} | undefined;
|
|
2775
|
+
skip?: {
|
|
2776
|
+
locale?: string[] | undefined;
|
|
2777
|
+
viewport?: string[] | undefined;
|
|
2778
|
+
color_scheme?: ("light" | "dark")[] | undefined;
|
|
2779
|
+
} | undefined;
|
|
2780
|
+
} | undefined;
|
|
2781
|
+
annotations?: {
|
|
2782
|
+
copy: string;
|
|
2783
|
+
arrow?: "top-left" | "top-right" | "bottom-left" | "bottom-right" | "top" | "bottom" | "left" | "right" | undefined;
|
|
2784
|
+
nudge?: {
|
|
2785
|
+
x: number;
|
|
2786
|
+
y: number;
|
|
2787
|
+
} | undefined;
|
|
2788
|
+
placement?: {
|
|
2789
|
+
inside?: boolean | undefined;
|
|
2790
|
+
side?: "top" | "bottom" | "left" | "right" | undefined;
|
|
2791
|
+
align?: "start" | "center" | "end" | undefined;
|
|
2792
|
+
pin_arrow?: boolean | undefined;
|
|
2793
|
+
max_width?: number | undefined;
|
|
2794
|
+
obstacle_radius?: number | undefined;
|
|
2795
|
+
obstacle_limit?: number | undefined;
|
|
2796
|
+
} | undefined;
|
|
2797
|
+
target?: string | undefined;
|
|
2798
|
+
copy_by_locale?: Record<string, string> | undefined;
|
|
2799
|
+
only?: {
|
|
2800
|
+
locale?: string[] | undefined;
|
|
2801
|
+
viewport?: string[] | undefined;
|
|
2802
|
+
color_scheme?: ("light" | "dark")[] | undefined;
|
|
2803
|
+
} | undefined;
|
|
2804
|
+
skip?: {
|
|
2805
|
+
locale?: string[] | undefined;
|
|
2806
|
+
viewport?: string[] | undefined;
|
|
2807
|
+
color_scheme?: ("light" | "dark")[] | undefined;
|
|
2808
|
+
} | undefined;
|
|
2809
|
+
}[] | undefined;
|
|
2810
|
+
redactions?: ({
|
|
2811
|
+
selector: string;
|
|
2812
|
+
style?: "box" | "pixelate" | undefined;
|
|
2813
|
+
} | {
|
|
2814
|
+
region: {
|
|
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;
|
|
1222
2822
|
}>, "many">;
|
|
1223
2823
|
}, "strict", z.ZodTypeAny, {
|
|
1224
2824
|
name: string;
|
|
1225
|
-
extends?: string | undefined;
|
|
1226
|
-
environment?: {
|
|
1227
|
-
clock?: string | undefined;
|
|
1228
|
-
locale?: string | undefined;
|
|
1229
|
-
timezone?: string | undefined;
|
|
1230
|
-
viewport?: "desktop" | "mobile" | "tablet" | {
|
|
1231
|
-
width: number;
|
|
1232
|
-
height: number;
|
|
1233
|
-
} | undefined;
|
|
1234
|
-
color_scheme?: "dark" | "light" | undefined;
|
|
1235
|
-
reduced_motion?: boolean | undefined;
|
|
1236
|
-
} | undefined;
|
|
1237
|
-
redactions?: ({
|
|
1238
|
-
selector: string;
|
|
1239
|
-
style?: "box" | "pixelate" | undefined;
|
|
1240
|
-
} | {
|
|
1241
|
-
region: {
|
|
1242
|
-
x: number;
|
|
1243
|
-
y: number;
|
|
1244
|
-
width: number;
|
|
1245
|
-
height: number;
|
|
1246
|
-
};
|
|
1247
|
-
style?: "box" | "pixelate" | undefined;
|
|
1248
|
-
})[] | undefined;
|
|
1249
2825
|
prerequisites: Record<string, string | boolean>[];
|
|
1250
2826
|
locators: Record<string, string>;
|
|
1251
2827
|
steps: {
|
|
1252
2828
|
id: string;
|
|
1253
|
-
action: "
|
|
1254
|
-
optional?: boolean | undefined;
|
|
1255
|
-
target?: string | undefined;
|
|
2829
|
+
action: "fill" | "navigate" | "click" | "upload" | "press" | "hover" | "select" | "check" | "uncheck" | "wait" | "hide" | "show";
|
|
1256
2830
|
value?: string | undefined;
|
|
1257
|
-
|
|
2831
|
+
timeout_ms?: number | undefined;
|
|
2832
|
+
target?: string | undefined;
|
|
2833
|
+
only?: {
|
|
2834
|
+
locale?: string[] | undefined;
|
|
2835
|
+
viewport?: string[] | undefined;
|
|
2836
|
+
color_scheme?: ("light" | "dark")[] | undefined;
|
|
2837
|
+
} | undefined;
|
|
2838
|
+
skip?: {
|
|
2839
|
+
locale?: string[] | undefined;
|
|
2840
|
+
viewport?: string[] | undefined;
|
|
2841
|
+
color_scheme?: ("light" | "dark")[] | undefined;
|
|
2842
|
+
} | undefined;
|
|
2843
|
+
optional?: boolean | undefined;
|
|
2844
|
+
wait_for?: "network_idle" | "element_stable" | "load" | "settled" | {
|
|
1258
2845
|
timeout_ms: number;
|
|
1259
2846
|
} | {
|
|
1260
2847
|
selector: string;
|
|
@@ -1274,70 +2861,128 @@ export declare const FlowFile: z.ZodObject<{
|
|
|
1274
2861
|
} | undefined;
|
|
1275
2862
|
annotation?: {
|
|
1276
2863
|
copy: string;
|
|
1277
|
-
arrow?: "
|
|
2864
|
+
arrow?: "top-left" | "top-right" | "bottom-left" | "bottom-right" | "top" | "bottom" | "left" | "right" | undefined;
|
|
1278
2865
|
nudge?: {
|
|
1279
2866
|
x: number;
|
|
1280
2867
|
y: number;
|
|
1281
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;
|
|
1282
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;
|
|
1283
2890
|
} | undefined;
|
|
1284
2891
|
annotations?: {
|
|
1285
2892
|
copy: string;
|
|
1286
|
-
arrow?: "
|
|
2893
|
+
arrow?: "top-left" | "top-right" | "bottom-left" | "bottom-right" | "top" | "bottom" | "left" | "right" | undefined;
|
|
1287
2894
|
nudge?: {
|
|
1288
2895
|
x: number;
|
|
1289
2896
|
y: number;
|
|
1290
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;
|
|
1291
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;
|
|
1292
2919
|
}[] | undefined;
|
|
1293
2920
|
redactions?: ({
|
|
1294
2921
|
selector: string;
|
|
1295
2922
|
style?: "box" | "pixelate" | undefined;
|
|
1296
2923
|
} | {
|
|
1297
2924
|
region: {
|
|
1298
|
-
x: number;
|
|
1299
|
-
y: number;
|
|
1300
2925
|
width: number;
|
|
1301
2926
|
height: number;
|
|
2927
|
+
x: number;
|
|
2928
|
+
y: number;
|
|
1302
2929
|
};
|
|
1303
2930
|
style?: "box" | "pixelate" | undefined;
|
|
1304
2931
|
})[] | undefined;
|
|
1305
2932
|
}[];
|
|
1306
|
-
|
|
1307
|
-
|
|
2933
|
+
redactions?: ({
|
|
2934
|
+
selector: string;
|
|
2935
|
+
style?: "box" | "pixelate" | undefined;
|
|
2936
|
+
} | {
|
|
2937
|
+
region: {
|
|
2938
|
+
width: number;
|
|
2939
|
+
height: number;
|
|
2940
|
+
x: number;
|
|
2941
|
+
y: number;
|
|
2942
|
+
};
|
|
2943
|
+
style?: "box" | "pixelate" | undefined;
|
|
2944
|
+
})[] | undefined;
|
|
1308
2945
|
extends?: string | undefined;
|
|
1309
2946
|
environment?: {
|
|
1310
2947
|
clock?: string | undefined;
|
|
1311
2948
|
locale?: string | undefined;
|
|
1312
2949
|
timezone?: string | undefined;
|
|
1313
|
-
viewport?:
|
|
2950
|
+
viewport?: {
|
|
1314
2951
|
width: number;
|
|
1315
2952
|
height: number;
|
|
1316
|
-
} | undefined;
|
|
1317
|
-
color_scheme?: "
|
|
2953
|
+
} | "desktop" | "tablet" | "mobile" | undefined;
|
|
2954
|
+
color_scheme?: "light" | "dark" | undefined;
|
|
1318
2955
|
reduced_motion?: boolean | undefined;
|
|
1319
2956
|
} | undefined;
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
region: {
|
|
1325
|
-
x: number;
|
|
1326
|
-
y: number;
|
|
2957
|
+
matrix?: {
|
|
2958
|
+
locales?: string[] | undefined;
|
|
2959
|
+
color_schemes?: ("light" | "dark")[] | undefined;
|
|
2960
|
+
viewports?: ("desktop" | "tablet" | "mobile" | {
|
|
1327
2961
|
width: number;
|
|
1328
2962
|
height: number;
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
}
|
|
1332
|
-
|
|
1333
|
-
|
|
2963
|
+
name?: string | undefined;
|
|
2964
|
+
})[] | undefined;
|
|
2965
|
+
} | undefined;
|
|
2966
|
+
}, {
|
|
2967
|
+
name: string;
|
|
1334
2968
|
steps: {
|
|
1335
2969
|
id: string;
|
|
1336
|
-
action: "
|
|
1337
|
-
optional?: boolean | undefined;
|
|
1338
|
-
target?: string | undefined;
|
|
2970
|
+
action: "fill" | "navigate" | "click" | "upload" | "press" | "hover" | "select" | "check" | "uncheck" | "wait" | "hide" | "show";
|
|
1339
2971
|
value?: string | undefined;
|
|
1340
|
-
|
|
2972
|
+
timeout_ms?: number | undefined;
|
|
2973
|
+
target?: string | undefined;
|
|
2974
|
+
only?: {
|
|
2975
|
+
locale?: string[] | undefined;
|
|
2976
|
+
viewport?: string[] | undefined;
|
|
2977
|
+
color_scheme?: ("light" | "dark")[] | undefined;
|
|
2978
|
+
} | undefined;
|
|
2979
|
+
skip?: {
|
|
2980
|
+
locale?: string[] | undefined;
|
|
2981
|
+
viewport?: string[] | undefined;
|
|
2982
|
+
color_scheme?: ("light" | "dark")[] | undefined;
|
|
2983
|
+
} | undefined;
|
|
2984
|
+
optional?: boolean | undefined;
|
|
2985
|
+
wait_for?: "network_idle" | "element_stable" | "load" | "settled" | {
|
|
1341
2986
|
timeout_ms: number;
|
|
1342
2987
|
} | {
|
|
1343
2988
|
selector: string;
|
|
@@ -1357,35 +3002,110 @@ export declare const FlowFile: z.ZodObject<{
|
|
|
1357
3002
|
} | undefined;
|
|
1358
3003
|
annotation?: {
|
|
1359
3004
|
copy: string;
|
|
1360
|
-
arrow?: "
|
|
3005
|
+
arrow?: "top-left" | "top-right" | "bottom-left" | "bottom-right" | "top" | "bottom" | "left" | "right" | undefined;
|
|
1361
3006
|
nudge?: {
|
|
1362
3007
|
x: number;
|
|
1363
3008
|
y: number;
|
|
1364
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;
|
|
1365
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;
|
|
1366
3031
|
} | undefined;
|
|
1367
3032
|
annotations?: {
|
|
1368
3033
|
copy: string;
|
|
1369
|
-
arrow?: "
|
|
3034
|
+
arrow?: "top-left" | "top-right" | "bottom-left" | "bottom-right" | "top" | "bottom" | "left" | "right" | undefined;
|
|
1370
3035
|
nudge?: {
|
|
1371
3036
|
x: number;
|
|
1372
3037
|
y: number;
|
|
1373
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;
|
|
1374
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;
|
|
1375
3060
|
}[] | undefined;
|
|
1376
3061
|
redactions?: ({
|
|
1377
3062
|
selector: string;
|
|
1378
3063
|
style?: "box" | "pixelate" | undefined;
|
|
1379
3064
|
} | {
|
|
1380
3065
|
region: {
|
|
1381
|
-
x: number;
|
|
1382
|
-
y: number;
|
|
1383
3066
|
width: number;
|
|
1384
3067
|
height: number;
|
|
3068
|
+
x: number;
|
|
3069
|
+
y: number;
|
|
1385
3070
|
};
|
|
1386
3071
|
style?: "box" | "pixelate" | undefined;
|
|
1387
3072
|
})[] | undefined;
|
|
1388
3073
|
}[];
|
|
3074
|
+
redactions?: ({
|
|
3075
|
+
selector: string;
|
|
3076
|
+
style?: "box" | "pixelate" | undefined;
|
|
3077
|
+
} | {
|
|
3078
|
+
region: {
|
|
3079
|
+
width: number;
|
|
3080
|
+
height: number;
|
|
3081
|
+
x: number;
|
|
3082
|
+
y: number;
|
|
3083
|
+
};
|
|
3084
|
+
style?: "box" | "pixelate" | undefined;
|
|
3085
|
+
})[] | undefined;
|
|
3086
|
+
extends?: string | undefined;
|
|
3087
|
+
environment?: {
|
|
3088
|
+
clock?: string | undefined;
|
|
3089
|
+
locale?: string | undefined;
|
|
3090
|
+
timezone?: string | undefined;
|
|
3091
|
+
viewport?: {
|
|
3092
|
+
width: number;
|
|
3093
|
+
height: number;
|
|
3094
|
+
} | "desktop" | "tablet" | "mobile" | undefined;
|
|
3095
|
+
color_scheme?: "light" | "dark" | undefined;
|
|
3096
|
+
reduced_motion?: boolean | undefined;
|
|
3097
|
+
} | undefined;
|
|
3098
|
+
matrix?: {
|
|
3099
|
+
locales?: string[] | undefined;
|
|
3100
|
+
color_schemes?: ("light" | "dark")[] | undefined;
|
|
3101
|
+
viewports?: ("desktop" | "tablet" | "mobile" | {
|
|
3102
|
+
width: number;
|
|
3103
|
+
height: number;
|
|
3104
|
+
name?: string | undefined;
|
|
3105
|
+
})[] | undefined;
|
|
3106
|
+
} | undefined;
|
|
3107
|
+
prerequisites?: Record<string, string | boolean>[] | undefined;
|
|
3108
|
+
locators?: Record<string, string> | undefined;
|
|
1389
3109
|
}>;
|
|
1390
3110
|
export type FlowFile = z.infer<typeof FlowFile>;
|
|
1391
3111
|
/** A rectangle in screenshot pixels: finite position, finite non-negative size. */
|
|
@@ -1395,19 +3115,17 @@ export declare const BoundingBox: z.ZodObject<{
|
|
|
1395
3115
|
width: z.ZodNumber;
|
|
1396
3116
|
height: z.ZodNumber;
|
|
1397
3117
|
}, "strict", z.ZodTypeAny, {
|
|
1398
|
-
x: number;
|
|
1399
|
-
y: number;
|
|
1400
3118
|
width: number;
|
|
1401
3119
|
height: number;
|
|
1402
|
-
}, {
|
|
1403
3120
|
x: number;
|
|
1404
3121
|
y: number;
|
|
3122
|
+
}, {
|
|
1405
3123
|
width: number;
|
|
1406
3124
|
height: number;
|
|
3125
|
+
x: number;
|
|
3126
|
+
y: number;
|
|
1407
3127
|
}>;
|
|
1408
3128
|
export type BoundingBox = z.infer<typeof BoundingBox>;
|
|
1409
|
-
/** Most `obstacles` one annotation record may carry (the writer keeps the nearest this many). */
|
|
1410
|
-
export declare const MAX_OBSTACLES = 40;
|
|
1411
3129
|
export declare const AnnotationRecord: z.ZodObject<{
|
|
1412
3130
|
step: z.ZodString;
|
|
1413
3131
|
selector: z.ZodString;
|
|
@@ -1417,15 +3135,15 @@ export declare const AnnotationRecord: z.ZodObject<{
|
|
|
1417
3135
|
width: z.ZodNumber;
|
|
1418
3136
|
height: z.ZodNumber;
|
|
1419
3137
|
}, "strict", z.ZodTypeAny, {
|
|
1420
|
-
x: number;
|
|
1421
|
-
y: number;
|
|
1422
3138
|
width: number;
|
|
1423
3139
|
height: number;
|
|
1424
|
-
}, {
|
|
1425
3140
|
x: number;
|
|
1426
3141
|
y: number;
|
|
3142
|
+
}, {
|
|
1427
3143
|
width: number;
|
|
1428
3144
|
height: number;
|
|
3145
|
+
x: number;
|
|
3146
|
+
y: number;
|
|
1429
3147
|
}>>;
|
|
1430
3148
|
copy: z.ZodString;
|
|
1431
3149
|
arrow_style: z.ZodOptional<z.ZodEnum<["top-left", "top-right", "bottom-left", "bottom-right", "top", "bottom", "left", "right"]>>;
|
|
@@ -1455,60 +3173,111 @@ export declare const AnnotationRecord: z.ZodObject<{
|
|
|
1455
3173
|
width: z.ZodNumber;
|
|
1456
3174
|
height: z.ZodNumber;
|
|
1457
3175
|
}, "strict", z.ZodTypeAny, {
|
|
1458
|
-
x: number;
|
|
1459
|
-
y: number;
|
|
1460
3176
|
width: number;
|
|
1461
3177
|
height: number;
|
|
1462
|
-
}, {
|
|
1463
3178
|
x: number;
|
|
1464
3179
|
y: number;
|
|
3180
|
+
}, {
|
|
1465
3181
|
width: number;
|
|
1466
3182
|
height: number;
|
|
3183
|
+
x: number;
|
|
3184
|
+
y: number;
|
|
1467
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
|
+
}>>;
|
|
1468
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. */
|
|
1469
3220
|
index: z.ZodOptional<z.ZodNumber>;
|
|
1470
3221
|
}, "strict", z.ZodTypeAny, {
|
|
1471
|
-
step: string;
|
|
1472
3222
|
selector: string;
|
|
1473
|
-
|
|
3223
|
+
copy: string;
|
|
3224
|
+
step: string;
|
|
3225
|
+
nudge?: {
|
|
1474
3226
|
x: number;
|
|
1475
3227
|
y: number;
|
|
3228
|
+
} | undefined;
|
|
3229
|
+
placement?: {
|
|
3230
|
+
inside?: boolean | undefined;
|
|
3231
|
+
side?: "top" | "bottom" | "left" | "right" | undefined;
|
|
3232
|
+
align?: "start" | "center" | "end" | undefined;
|
|
3233
|
+
pin_arrow?: boolean | undefined;
|
|
3234
|
+
max_width?: number | undefined;
|
|
3235
|
+
obstacle_radius?: number | undefined;
|
|
3236
|
+
obstacle_limit?: number | undefined;
|
|
3237
|
+
} | undefined;
|
|
3238
|
+
bounding_box?: {
|
|
1476
3239
|
width: number;
|
|
1477
3240
|
height: number;
|
|
1478
|
-
} | undefined;
|
|
1479
|
-
copy: string;
|
|
1480
|
-
arrow_style?: "bottom" | "bottom-left" | "bottom-right" | "left" | "right" | "top" | "top-left" | "top-right" | undefined;
|
|
1481
|
-
nudge?: {
|
|
1482
3241
|
x: number;
|
|
1483
3242
|
y: number;
|
|
1484
3243
|
} | undefined;
|
|
3244
|
+
arrow_style?: "top-left" | "top-right" | "bottom-left" | "bottom-right" | "top" | "bottom" | "left" | "right" | undefined;
|
|
1485
3245
|
obstacles?: {
|
|
1486
|
-
x: number;
|
|
1487
|
-
y: number;
|
|
1488
3246
|
width: number;
|
|
1489
3247
|
height: number;
|
|
3248
|
+
x: number;
|
|
3249
|
+
y: number;
|
|
1490
3250
|
}[] | undefined;
|
|
1491
3251
|
index?: number | undefined;
|
|
1492
3252
|
}, {
|
|
1493
|
-
step: string;
|
|
1494
3253
|
selector: string;
|
|
1495
|
-
|
|
3254
|
+
copy: string;
|
|
3255
|
+
step: string;
|
|
3256
|
+
nudge?: {
|
|
1496
3257
|
x: number;
|
|
1497
3258
|
y: number;
|
|
3259
|
+
} | undefined;
|
|
3260
|
+
placement?: {
|
|
3261
|
+
inside?: boolean | undefined;
|
|
3262
|
+
side?: "top" | "bottom" | "left" | "right" | undefined;
|
|
3263
|
+
align?: "start" | "center" | "end" | undefined;
|
|
3264
|
+
pin_arrow?: boolean | undefined;
|
|
3265
|
+
max_width?: number | undefined;
|
|
3266
|
+
obstacle_radius?: number | undefined;
|
|
3267
|
+
obstacle_limit?: number | undefined;
|
|
3268
|
+
} | undefined;
|
|
3269
|
+
bounding_box?: {
|
|
1498
3270
|
width: number;
|
|
1499
3271
|
height: number;
|
|
1500
|
-
} | undefined;
|
|
1501
|
-
copy: string;
|
|
1502
|
-
arrow_style?: "bottom" | "bottom-left" | "bottom-right" | "left" | "right" | "top" | "top-left" | "top-right" | undefined;
|
|
1503
|
-
nudge?: {
|
|
1504
3272
|
x: number;
|
|
1505
3273
|
y: number;
|
|
1506
3274
|
} | undefined;
|
|
3275
|
+
arrow_style?: "top-left" | "top-right" | "bottom-left" | "bottom-right" | "top" | "bottom" | "left" | "right" | undefined;
|
|
1507
3276
|
obstacles?: {
|
|
1508
|
-
x: number;
|
|
1509
|
-
y: number;
|
|
1510
3277
|
width: number;
|
|
1511
3278
|
height: number;
|
|
3279
|
+
x: number;
|
|
3280
|
+
y: number;
|
|
1512
3281
|
}[] | undefined;
|
|
1513
3282
|
index?: number | undefined;
|
|
1514
3283
|
}>;
|
|
@@ -1516,6 +3285,43 @@ export type AnnotationRecord = z.infer<typeof AnnotationRecord>;
|
|
|
1516
3285
|
export declare const AnnotationsFile: z.ZodObject<{
|
|
1517
3286
|
schema: z.ZodLiteral<"docsxai/annotations@1">;
|
|
1518
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
|
+
}>>;
|
|
1519
3325
|
annotations: z.ZodArray<z.ZodObject<{
|
|
1520
3326
|
step: z.ZodString;
|
|
1521
3327
|
selector: z.ZodString;
|
|
@@ -1525,15 +3331,15 @@ export declare const AnnotationsFile: z.ZodObject<{
|
|
|
1525
3331
|
width: z.ZodNumber;
|
|
1526
3332
|
height: z.ZodNumber;
|
|
1527
3333
|
}, "strict", z.ZodTypeAny, {
|
|
1528
|
-
x: number;
|
|
1529
|
-
y: number;
|
|
1530
3334
|
width: number;
|
|
1531
3335
|
height: number;
|
|
1532
|
-
}, {
|
|
1533
3336
|
x: number;
|
|
1534
3337
|
y: number;
|
|
3338
|
+
}, {
|
|
1535
3339
|
width: number;
|
|
1536
3340
|
height: number;
|
|
3341
|
+
x: number;
|
|
3342
|
+
y: number;
|
|
1537
3343
|
}>>;
|
|
1538
3344
|
copy: z.ZodString;
|
|
1539
3345
|
arrow_style: z.ZodOptional<z.ZodEnum<["top-left", "top-right", "bottom-left", "bottom-right", "top", "bottom", "left", "right"]>>;
|
|
@@ -1563,115 +3369,204 @@ export declare const AnnotationsFile: z.ZodObject<{
|
|
|
1563
3369
|
width: z.ZodNumber;
|
|
1564
3370
|
height: z.ZodNumber;
|
|
1565
3371
|
}, "strict", z.ZodTypeAny, {
|
|
1566
|
-
x: number;
|
|
1567
|
-
y: number;
|
|
1568
3372
|
width: number;
|
|
1569
3373
|
height: number;
|
|
1570
|
-
}, {
|
|
1571
3374
|
x: number;
|
|
1572
3375
|
y: number;
|
|
3376
|
+
}, {
|
|
1573
3377
|
width: number;
|
|
1574
3378
|
height: number;
|
|
3379
|
+
x: number;
|
|
3380
|
+
y: number;
|
|
1575
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
|
+
}>>;
|
|
1576
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. */
|
|
1577
3416
|
index: z.ZodOptional<z.ZodNumber>;
|
|
1578
3417
|
}, "strict", z.ZodTypeAny, {
|
|
1579
|
-
step: string;
|
|
1580
3418
|
selector: string;
|
|
1581
|
-
|
|
3419
|
+
copy: string;
|
|
3420
|
+
step: string;
|
|
3421
|
+
nudge?: {
|
|
1582
3422
|
x: number;
|
|
1583
3423
|
y: number;
|
|
3424
|
+
} | undefined;
|
|
3425
|
+
placement?: {
|
|
3426
|
+
inside?: boolean | undefined;
|
|
3427
|
+
side?: "top" | "bottom" | "left" | "right" | undefined;
|
|
3428
|
+
align?: "start" | "center" | "end" | undefined;
|
|
3429
|
+
pin_arrow?: boolean | undefined;
|
|
3430
|
+
max_width?: number | undefined;
|
|
3431
|
+
obstacle_radius?: number | undefined;
|
|
3432
|
+
obstacle_limit?: number | undefined;
|
|
3433
|
+
} | undefined;
|
|
3434
|
+
bounding_box?: {
|
|
1584
3435
|
width: number;
|
|
1585
3436
|
height: number;
|
|
1586
|
-
} | undefined;
|
|
1587
|
-
copy: string;
|
|
1588
|
-
arrow_style?: "bottom" | "bottom-left" | "bottom-right" | "left" | "right" | "top" | "top-left" | "top-right" | undefined;
|
|
1589
|
-
nudge?: {
|
|
1590
3437
|
x: number;
|
|
1591
3438
|
y: number;
|
|
1592
3439
|
} | undefined;
|
|
3440
|
+
arrow_style?: "top-left" | "top-right" | "bottom-left" | "bottom-right" | "top" | "bottom" | "left" | "right" | undefined;
|
|
1593
3441
|
obstacles?: {
|
|
1594
|
-
x: number;
|
|
1595
|
-
y: number;
|
|
1596
3442
|
width: number;
|
|
1597
3443
|
height: number;
|
|
3444
|
+
x: number;
|
|
3445
|
+
y: number;
|
|
1598
3446
|
}[] | undefined;
|
|
1599
3447
|
index?: number | undefined;
|
|
1600
3448
|
}, {
|
|
1601
|
-
step: string;
|
|
1602
3449
|
selector: string;
|
|
1603
|
-
|
|
3450
|
+
copy: string;
|
|
3451
|
+
step: string;
|
|
3452
|
+
nudge?: {
|
|
1604
3453
|
x: number;
|
|
1605
3454
|
y: number;
|
|
3455
|
+
} | undefined;
|
|
3456
|
+
placement?: {
|
|
3457
|
+
inside?: boolean | undefined;
|
|
3458
|
+
side?: "top" | "bottom" | "left" | "right" | undefined;
|
|
3459
|
+
align?: "start" | "center" | "end" | undefined;
|
|
3460
|
+
pin_arrow?: boolean | undefined;
|
|
3461
|
+
max_width?: number | undefined;
|
|
3462
|
+
obstacle_radius?: number | undefined;
|
|
3463
|
+
obstacle_limit?: number | undefined;
|
|
3464
|
+
} | undefined;
|
|
3465
|
+
bounding_box?: {
|
|
1606
3466
|
width: number;
|
|
1607
3467
|
height: number;
|
|
1608
|
-
} | undefined;
|
|
1609
|
-
copy: string;
|
|
1610
|
-
arrow_style?: "bottom" | "bottom-left" | "bottom-right" | "left" | "right" | "top" | "top-left" | "top-right" | undefined;
|
|
1611
|
-
nudge?: {
|
|
1612
3468
|
x: number;
|
|
1613
3469
|
y: number;
|
|
1614
3470
|
} | undefined;
|
|
3471
|
+
arrow_style?: "top-left" | "top-right" | "bottom-left" | "bottom-right" | "top" | "bottom" | "left" | "right" | undefined;
|
|
1615
3472
|
obstacles?: {
|
|
1616
|
-
x: number;
|
|
1617
|
-
y: number;
|
|
1618
3473
|
width: number;
|
|
1619
3474
|
height: number;
|
|
3475
|
+
x: number;
|
|
3476
|
+
y: number;
|
|
1620
3477
|
}[] | undefined;
|
|
1621
3478
|
index?: number | undefined;
|
|
1622
3479
|
}>, "many">;
|
|
1623
3480
|
}, "strict", z.ZodTypeAny, {
|
|
1624
|
-
schema: "docsxai/annotations@1";
|
|
1625
|
-
flow: string;
|
|
1626
3481
|
annotations: {
|
|
1627
|
-
step: string;
|
|
1628
3482
|
selector: string;
|
|
1629
|
-
|
|
3483
|
+
copy: string;
|
|
3484
|
+
step: string;
|
|
3485
|
+
nudge?: {
|
|
1630
3486
|
x: number;
|
|
1631
3487
|
y: number;
|
|
3488
|
+
} | undefined;
|
|
3489
|
+
placement?: {
|
|
3490
|
+
inside?: boolean | undefined;
|
|
3491
|
+
side?: "top" | "bottom" | "left" | "right" | undefined;
|
|
3492
|
+
align?: "start" | "center" | "end" | undefined;
|
|
3493
|
+
pin_arrow?: boolean | undefined;
|
|
3494
|
+
max_width?: number | undefined;
|
|
3495
|
+
obstacle_radius?: number | undefined;
|
|
3496
|
+
obstacle_limit?: number | undefined;
|
|
3497
|
+
} | undefined;
|
|
3498
|
+
bounding_box?: {
|
|
1632
3499
|
width: number;
|
|
1633
3500
|
height: number;
|
|
1634
|
-
} | undefined;
|
|
1635
|
-
copy: string;
|
|
1636
|
-
arrow_style?: "bottom" | "bottom-left" | "bottom-right" | "left" | "right" | "top" | "top-left" | "top-right" | undefined;
|
|
1637
|
-
nudge?: {
|
|
1638
3501
|
x: number;
|
|
1639
3502
|
y: number;
|
|
1640
3503
|
} | undefined;
|
|
3504
|
+
arrow_style?: "top-left" | "top-right" | "bottom-left" | "bottom-right" | "top" | "bottom" | "left" | "right" | undefined;
|
|
1641
3505
|
obstacles?: {
|
|
1642
|
-
x: number;
|
|
1643
|
-
y: number;
|
|
1644
3506
|
width: number;
|
|
1645
3507
|
height: number;
|
|
3508
|
+
x: number;
|
|
3509
|
+
y: number;
|
|
1646
3510
|
}[] | undefined;
|
|
1647
3511
|
index?: number | undefined;
|
|
1648
3512
|
}[];
|
|
1649
|
-
}, {
|
|
1650
3513
|
schema: "docsxai/annotations@1";
|
|
1651
3514
|
flow: string;
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
x: number;
|
|
1657
|
-
y: number;
|
|
3515
|
+
variant?: {
|
|
3516
|
+
id: string;
|
|
3517
|
+
locale?: string | undefined;
|
|
3518
|
+
viewport?: {
|
|
1658
3519
|
width: number;
|
|
1659
3520
|
height: number;
|
|
3521
|
+
name: string;
|
|
1660
3522
|
} | undefined;
|
|
3523
|
+
color_scheme?: "light" | "dark" | undefined;
|
|
3524
|
+
} | undefined;
|
|
3525
|
+
}, {
|
|
3526
|
+
annotations: {
|
|
3527
|
+
selector: string;
|
|
1661
3528
|
copy: string;
|
|
1662
|
-
|
|
3529
|
+
step: string;
|
|
1663
3530
|
nudge?: {
|
|
1664
3531
|
x: number;
|
|
1665
3532
|
y: number;
|
|
1666
3533
|
} | undefined;
|
|
1667
|
-
|
|
3534
|
+
placement?: {
|
|
3535
|
+
inside?: boolean | undefined;
|
|
3536
|
+
side?: "top" | "bottom" | "left" | "right" | undefined;
|
|
3537
|
+
align?: "start" | "center" | "end" | undefined;
|
|
3538
|
+
pin_arrow?: boolean | undefined;
|
|
3539
|
+
max_width?: number | undefined;
|
|
3540
|
+
obstacle_radius?: number | undefined;
|
|
3541
|
+
obstacle_limit?: number | undefined;
|
|
3542
|
+
} | undefined;
|
|
3543
|
+
bounding_box?: {
|
|
3544
|
+
width: number;
|
|
3545
|
+
height: number;
|
|
1668
3546
|
x: number;
|
|
1669
3547
|
y: number;
|
|
3548
|
+
} | undefined;
|
|
3549
|
+
arrow_style?: "top-left" | "top-right" | "bottom-left" | "bottom-right" | "top" | "bottom" | "left" | "right" | undefined;
|
|
3550
|
+
obstacles?: {
|
|
1670
3551
|
width: number;
|
|
1671
3552
|
height: number;
|
|
3553
|
+
x: number;
|
|
3554
|
+
y: number;
|
|
1672
3555
|
}[] | undefined;
|
|
1673
3556
|
index?: number | undefined;
|
|
1674
3557
|
}[];
|
|
3558
|
+
schema: "docsxai/annotations@1";
|
|
3559
|
+
flow: string;
|
|
3560
|
+
variant?: {
|
|
3561
|
+
id: string;
|
|
3562
|
+
locale?: string | undefined;
|
|
3563
|
+
viewport?: {
|
|
3564
|
+
width: number;
|
|
3565
|
+
height: number;
|
|
3566
|
+
name: string;
|
|
3567
|
+
} | undefined;
|
|
3568
|
+
color_scheme?: "light" | "dark" | undefined;
|
|
3569
|
+
} | undefined;
|
|
1675
3570
|
}>;
|
|
1676
3571
|
export type AnnotationsFile = z.infer<typeof AnnotationsFile>;
|
|
1677
3572
|
export declare const StyleArtifact: z.ZodObject<{
|
|
@@ -1737,32 +3632,32 @@ export declare const RoleAuth: z.ZodObject<{
|
|
|
1737
3632
|
auth_cookie: z.ZodOptional<z.ZodString>;
|
|
1738
3633
|
}, "strict", z.ZodTypeAny, {
|
|
1739
3634
|
enabled: boolean;
|
|
1740
|
-
store: "
|
|
3635
|
+
store: "local" | "backend";
|
|
1741
3636
|
ttl: string | number;
|
|
1742
3637
|
auth_cookie?: string | undefined;
|
|
1743
3638
|
}, {
|
|
1744
3639
|
enabled?: boolean | undefined;
|
|
1745
|
-
store?: "
|
|
3640
|
+
store?: "local" | "backend" | undefined;
|
|
1746
3641
|
ttl?: string | number | undefined;
|
|
1747
3642
|
auth_cookie?: string | undefined;
|
|
1748
3643
|
}>>;
|
|
1749
3644
|
}, "strict", z.ZodTypeAny, {
|
|
1750
|
-
strategy: "api-login" | "email-otp" | "http-basic" | "jwt-injection" | "manual-capture" | "mtls" | "pat-header" | "test-backdoor" | "totp" | "ui-form" | "webauthn";
|
|
1751
|
-
creds_env: Record<string, string>;
|
|
1752
3645
|
options: Record<string, unknown>;
|
|
3646
|
+
strategy: "api-login" | "jwt-injection" | "ui-form" | "http-basic" | "mtls" | "pat-header" | "email-otp" | "totp" | "webauthn" | "manual-capture" | "test-backdoor";
|
|
3647
|
+
creds_env: Record<string, string>;
|
|
1753
3648
|
cache: {
|
|
1754
3649
|
enabled: boolean;
|
|
1755
|
-
store: "
|
|
3650
|
+
store: "local" | "backend";
|
|
1756
3651
|
ttl: string | number;
|
|
1757
3652
|
auth_cookie?: string | undefined;
|
|
1758
3653
|
};
|
|
1759
3654
|
}, {
|
|
1760
|
-
strategy: "api-login" | "
|
|
1761
|
-
creds_env?: Record<string, string> | undefined;
|
|
3655
|
+
strategy: "api-login" | "jwt-injection" | "ui-form" | "http-basic" | "mtls" | "pat-header" | "email-otp" | "totp" | "webauthn" | "manual-capture" | "test-backdoor";
|
|
1762
3656
|
options?: Record<string, unknown> | undefined;
|
|
3657
|
+
creds_env?: Record<string, string> | undefined;
|
|
1763
3658
|
cache?: {
|
|
1764
3659
|
enabled?: boolean | undefined;
|
|
1765
|
-
store?: "
|
|
3660
|
+
store?: "local" | "backend" | undefined;
|
|
1766
3661
|
ttl?: string | number | undefined;
|
|
1767
3662
|
auth_cookie?: string | undefined;
|
|
1768
3663
|
} | undefined;
|
|
@@ -1790,32 +3685,32 @@ export declare const AuthStrategyDescriptor: z.ZodEffects<z.ZodObject<{
|
|
|
1790
3685
|
auth_cookie: z.ZodOptional<z.ZodString>;
|
|
1791
3686
|
}, "strict", z.ZodTypeAny, {
|
|
1792
3687
|
enabled: boolean;
|
|
1793
|
-
store: "
|
|
3688
|
+
store: "local" | "backend";
|
|
1794
3689
|
ttl: string | number;
|
|
1795
3690
|
auth_cookie?: string | undefined;
|
|
1796
3691
|
}, {
|
|
1797
3692
|
enabled?: boolean | undefined;
|
|
1798
|
-
store?: "
|
|
3693
|
+
store?: "local" | "backend" | undefined;
|
|
1799
3694
|
ttl?: string | number | undefined;
|
|
1800
3695
|
auth_cookie?: string | undefined;
|
|
1801
3696
|
}>>;
|
|
1802
3697
|
}, "strict", z.ZodTypeAny, {
|
|
1803
|
-
strategy: "api-login" | "email-otp" | "http-basic" | "jwt-injection" | "manual-capture" | "mtls" | "pat-header" | "test-backdoor" | "totp" | "ui-form" | "webauthn";
|
|
1804
|
-
creds_env: Record<string, string>;
|
|
1805
3698
|
options: Record<string, unknown>;
|
|
3699
|
+
strategy: "api-login" | "jwt-injection" | "ui-form" | "http-basic" | "mtls" | "pat-header" | "email-otp" | "totp" | "webauthn" | "manual-capture" | "test-backdoor";
|
|
3700
|
+
creds_env: Record<string, string>;
|
|
1806
3701
|
cache: {
|
|
1807
3702
|
enabled: boolean;
|
|
1808
|
-
store: "
|
|
3703
|
+
store: "local" | "backend";
|
|
1809
3704
|
ttl: string | number;
|
|
1810
3705
|
auth_cookie?: string | undefined;
|
|
1811
3706
|
};
|
|
1812
3707
|
}, {
|
|
1813
|
-
strategy: "api-login" | "
|
|
1814
|
-
creds_env?: Record<string, string> | undefined;
|
|
3708
|
+
strategy: "api-login" | "jwt-injection" | "ui-form" | "http-basic" | "mtls" | "pat-header" | "email-otp" | "totp" | "webauthn" | "manual-capture" | "test-backdoor";
|
|
1815
3709
|
options?: Record<string, unknown> | undefined;
|
|
3710
|
+
creds_env?: Record<string, string> | undefined;
|
|
1816
3711
|
cache?: {
|
|
1817
3712
|
enabled?: boolean | undefined;
|
|
1818
|
-
store?: "
|
|
3713
|
+
store?: "local" | "backend" | undefined;
|
|
1819
3714
|
ttl?: string | number | undefined;
|
|
1820
3715
|
auth_cookie?: string | undefined;
|
|
1821
3716
|
} | undefined;
|
|
@@ -1824,12 +3719,12 @@ export declare const AuthStrategyDescriptor: z.ZodEffects<z.ZodObject<{
|
|
|
1824
3719
|
schema: "docsxai/auth-strategy@1";
|
|
1825
3720
|
default_role: string;
|
|
1826
3721
|
roles: Record<string, {
|
|
1827
|
-
strategy: "api-login" | "email-otp" | "http-basic" | "jwt-injection" | "manual-capture" | "mtls" | "pat-header" | "test-backdoor" | "totp" | "ui-form" | "webauthn";
|
|
1828
|
-
creds_env: Record<string, string>;
|
|
1829
3722
|
options: Record<string, unknown>;
|
|
3723
|
+
strategy: "api-login" | "jwt-injection" | "ui-form" | "http-basic" | "mtls" | "pat-header" | "email-otp" | "totp" | "webauthn" | "manual-capture" | "test-backdoor";
|
|
3724
|
+
creds_env: Record<string, string>;
|
|
1830
3725
|
cache: {
|
|
1831
3726
|
enabled: boolean;
|
|
1832
|
-
store: "
|
|
3727
|
+
store: "local" | "backend";
|
|
1833
3728
|
ttl: string | number;
|
|
1834
3729
|
auth_cookie?: string | undefined;
|
|
1835
3730
|
};
|
|
@@ -1838,12 +3733,12 @@ export declare const AuthStrategyDescriptor: z.ZodEffects<z.ZodObject<{
|
|
|
1838
3733
|
schema: "docsxai/auth-strategy@1";
|
|
1839
3734
|
default_role: string;
|
|
1840
3735
|
roles: Record<string, {
|
|
1841
|
-
strategy: "api-login" | "
|
|
1842
|
-
creds_env?: Record<string, string> | undefined;
|
|
3736
|
+
strategy: "api-login" | "jwt-injection" | "ui-form" | "http-basic" | "mtls" | "pat-header" | "email-otp" | "totp" | "webauthn" | "manual-capture" | "test-backdoor";
|
|
1843
3737
|
options?: Record<string, unknown> | undefined;
|
|
3738
|
+
creds_env?: Record<string, string> | undefined;
|
|
1844
3739
|
cache?: {
|
|
1845
3740
|
enabled?: boolean | undefined;
|
|
1846
|
-
store?: "
|
|
3741
|
+
store?: "local" | "backend" | undefined;
|
|
1847
3742
|
ttl?: string | number | undefined;
|
|
1848
3743
|
auth_cookie?: string | undefined;
|
|
1849
3744
|
} | undefined;
|
|
@@ -1852,12 +3747,12 @@ export declare const AuthStrategyDescriptor: z.ZodEffects<z.ZodObject<{
|
|
|
1852
3747
|
schema: "docsxai/auth-strategy@1";
|
|
1853
3748
|
default_role: string;
|
|
1854
3749
|
roles: Record<string, {
|
|
1855
|
-
strategy: "api-login" | "email-otp" | "http-basic" | "jwt-injection" | "manual-capture" | "mtls" | "pat-header" | "test-backdoor" | "totp" | "ui-form" | "webauthn";
|
|
1856
|
-
creds_env: Record<string, string>;
|
|
1857
3750
|
options: Record<string, unknown>;
|
|
3751
|
+
strategy: "api-login" | "jwt-injection" | "ui-form" | "http-basic" | "mtls" | "pat-header" | "email-otp" | "totp" | "webauthn" | "manual-capture" | "test-backdoor";
|
|
3752
|
+
creds_env: Record<string, string>;
|
|
1858
3753
|
cache: {
|
|
1859
3754
|
enabled: boolean;
|
|
1860
|
-
store: "
|
|
3755
|
+
store: "local" | "backend";
|
|
1861
3756
|
ttl: string | number;
|
|
1862
3757
|
auth_cookie?: string | undefined;
|
|
1863
3758
|
};
|
|
@@ -1866,12 +3761,12 @@ export declare const AuthStrategyDescriptor: z.ZodEffects<z.ZodObject<{
|
|
|
1866
3761
|
schema: "docsxai/auth-strategy@1";
|
|
1867
3762
|
default_role: string;
|
|
1868
3763
|
roles: Record<string, {
|
|
1869
|
-
strategy: "api-login" | "
|
|
1870
|
-
creds_env?: Record<string, string> | undefined;
|
|
3764
|
+
strategy: "api-login" | "jwt-injection" | "ui-form" | "http-basic" | "mtls" | "pat-header" | "email-otp" | "totp" | "webauthn" | "manual-capture" | "test-backdoor";
|
|
1871
3765
|
options?: Record<string, unknown> | undefined;
|
|
3766
|
+
creds_env?: Record<string, string> | undefined;
|
|
1872
3767
|
cache?: {
|
|
1873
3768
|
enabled?: boolean | undefined;
|
|
1874
|
-
store?: "
|
|
3769
|
+
store?: "local" | "backend" | undefined;
|
|
1875
3770
|
ttl?: string | number | undefined;
|
|
1876
3771
|
auth_cookie?: string | undefined;
|
|
1877
3772
|
} | undefined;
|
|
@@ -1890,13 +3785,13 @@ export declare const RevisionMeta: z.ZodObject<{
|
|
|
1890
3785
|
}, "strict", z.ZodTypeAny, {
|
|
1891
3786
|
rev_id: string;
|
|
1892
3787
|
parent_rev_id: string | null;
|
|
1893
|
-
kind: "calibrate" | "
|
|
3788
|
+
kind: "calibrate" | "run" | "edit";
|
|
1894
3789
|
author: string;
|
|
1895
3790
|
timestamp: string;
|
|
1896
3791
|
}, {
|
|
1897
3792
|
rev_id: string;
|
|
1898
3793
|
parent_rev_id: string | null;
|
|
1899
|
-
kind: "calibrate" | "
|
|
3794
|
+
kind: "calibrate" | "run" | "edit";
|
|
1900
3795
|
author: string;
|
|
1901
3796
|
timestamp: string;
|
|
1902
3797
|
}>;
|