@opencraw/studio 0.0.43 → 0.0.45
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.esm.js +2082 -4630
- package/dist/src/flow-recording/recorded-action.contract.d.ts +2 -2
- package/dist/src/scope-outline/outline.model.d.ts +1 -1
- package/dist/src/studio-api/command.contract.d.ts +14 -14
- package/dist/src/studio-api/deck-view.contract.d.ts +4 -4
- package/dist/src/studio-api/detect-url-view.contract.d.ts +7 -7
- package/dist/src/studio-api/event.contract.d.ts +12 -12
- package/dist/src/studio-api/grid-view.contract.d.ts +8 -8
- package/dist/src/studio-api/infer-selector-view.contract.d.ts +33 -33
- package/dist/src/studio-api/inspect-view.contract.d.ts +9 -9
- package/dist/src/studio-api/sample-run-view.contract.d.ts +2 -2
- package/dist/src/studio-api/snapshot-view.contract.d.ts +6 -6
- package/dist/src/studio-api/studio-control-view.contract.d.ts +2 -2
- package/dist/src/studio-api/workspace-view.contract.d.ts +9 -9
- package/package.json +12 -30
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
/** The kinds of user action the in-page recorder script (`recorder-script.client.ts`) reports. */
|
|
3
|
-
export declare const RECORDED_ACTION_KINDS: readonly [
|
|
3
|
+
export declare const RECORDED_ACTION_KINDS: readonly ['click', 'fill', 'select', 'keypress', 'scroll'];
|
|
4
4
|
export type RecordedActionKind = typeof RECORDED_ACTION_KINDS[number];
|
|
5
5
|
/** Why a report was refused before it became an action: out of this phase's scope (issue #95). */
|
|
6
|
-
export declare const UNSUPPORTED_REASONS: readonly [
|
|
6
|
+
export declare const UNSUPPORTED_REASONS: readonly ['iframe', 'shadow-dom'];
|
|
7
7
|
export type UnsupportedReason = typeof UNSUPPORTED_REASONS[number];
|
|
8
8
|
/**
|
|
9
9
|
* The type/name/id of the form field a `fill`/`select` landed on, exactly as
|
|
@@ -20,7 +20,7 @@ export interface SentencePart {
|
|
|
20
20
|
text: string;
|
|
21
21
|
}
|
|
22
22
|
/** The step types the outline renders as a bracket: their body is nested steps, not a single value. */
|
|
23
|
-
export declare const BRACKET_STEP_TYPES: readonly [
|
|
23
|
+
export declare const BRACKET_STEP_TYPES: readonly ['forEach', 'paginate', 'if'];
|
|
24
24
|
export type BracketStepType = typeof BRACKET_STEP_TYPES[number];
|
|
25
25
|
interface OutlineNodeBase {
|
|
26
26
|
/** The step's JSON path in the recipe, e.g. `steps.3.steps.1`. */
|
|
@@ -64,7 +64,7 @@ export declare const fetchStartPageCommandSchema: z.ZodObject<{
|
|
|
64
64
|
export declare const saveOutlineCommandSchema: z.ZodObject<{
|
|
65
65
|
type: z.ZodLiteral<"save-outline">;
|
|
66
66
|
path: z.ZodString;
|
|
67
|
-
outline: z.ZodType<import("./outline-view.contract").OutlineView, unknown, z.core.$ZodTypeInternals<import("./outline-view.contract").OutlineView, unknown>>;
|
|
67
|
+
outline: z.ZodType<import("./outline-view.contract.js").OutlineView, unknown, z.core.$ZodTypeInternals<import("./outline-view.contract.js").OutlineView, unknown>>;
|
|
68
68
|
}, z.core.$strip>;
|
|
69
69
|
/**
|
|
70
70
|
* Captures the snapshot the content pane shows for a step (`page-snapshot`'s
|
|
@@ -147,9 +147,9 @@ export declare const tablePreviewOptionsSchema: z.ZodObject<{
|
|
|
147
147
|
columns: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
148
148
|
align: z.ZodOptional<z.ZodEnum<{
|
|
149
149
|
auto: "auto";
|
|
150
|
-
top: "top";
|
|
151
|
-
center: "center";
|
|
152
150
|
bottom: "bottom";
|
|
151
|
+
center: "center";
|
|
152
|
+
top: "top";
|
|
153
153
|
}>>;
|
|
154
154
|
}, z.core.$strip>;
|
|
155
155
|
/**
|
|
@@ -168,9 +168,9 @@ export declare const tablePreviewCommandSchema: z.ZodObject<{
|
|
|
168
168
|
columns: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
169
169
|
align: z.ZodOptional<z.ZodEnum<{
|
|
170
170
|
auto: "auto";
|
|
171
|
-
top: "top";
|
|
172
|
-
center: "center";
|
|
173
171
|
bottom: "bottom";
|
|
172
|
+
center: "center";
|
|
173
|
+
top: "top";
|
|
174
174
|
}>>;
|
|
175
175
|
}, z.core.$strip>;
|
|
176
176
|
}, z.core.$strip>;
|
|
@@ -269,9 +269,9 @@ export declare const deckPreviewOptionsSchema: z.ZodObject<{
|
|
|
269
269
|
shapes: z.ZodOptional<z.ZodBoolean>;
|
|
270
270
|
align: z.ZodOptional<z.ZodEnum<{
|
|
271
271
|
auto: "auto";
|
|
272
|
-
top: "top";
|
|
273
|
-
center: "center";
|
|
274
272
|
bottom: "bottom";
|
|
273
|
+
center: "center";
|
|
274
|
+
top: "top";
|
|
275
275
|
}>>;
|
|
276
276
|
header: z.ZodString;
|
|
277
277
|
until: z.ZodOptional<z.ZodString>;
|
|
@@ -295,9 +295,9 @@ export declare const deckPreviewCommandSchema: z.ZodObject<{
|
|
|
295
295
|
shapes: z.ZodOptional<z.ZodBoolean>;
|
|
296
296
|
align: z.ZodOptional<z.ZodEnum<{
|
|
297
297
|
auto: "auto";
|
|
298
|
-
top: "top";
|
|
299
|
-
center: "center";
|
|
300
298
|
bottom: "bottom";
|
|
299
|
+
center: "center";
|
|
300
|
+
top: "top";
|
|
301
301
|
}>>;
|
|
302
302
|
header: z.ZodString;
|
|
303
303
|
until: z.ZodOptional<z.ZodString>;
|
|
@@ -460,7 +460,7 @@ export declare const studioCommandSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
460
460
|
}, z.core.$strip>, z.ZodObject<{
|
|
461
461
|
type: z.ZodLiteral<"save-outline">;
|
|
462
462
|
path: z.ZodString;
|
|
463
|
-
outline: z.ZodType<import("./outline-view.contract").OutlineView, unknown, z.core.$ZodTypeInternals<import("./outline-view.contract").OutlineView, unknown>>;
|
|
463
|
+
outline: z.ZodType<import("./outline-view.contract.js").OutlineView, unknown, z.core.$ZodTypeInternals<import("./outline-view.contract.js").OutlineView, unknown>>;
|
|
464
464
|
}, z.core.$strip>, z.ZodObject<{
|
|
465
465
|
type: z.ZodLiteral<"take-snapshot">;
|
|
466
466
|
recipeId: z.ZodString;
|
|
@@ -514,9 +514,9 @@ export declare const studioCommandSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
514
514
|
columns: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
515
515
|
align: z.ZodOptional<z.ZodEnum<{
|
|
516
516
|
auto: "auto";
|
|
517
|
-
top: "top";
|
|
518
|
-
center: "center";
|
|
519
517
|
bottom: "bottom";
|
|
518
|
+
center: "center";
|
|
519
|
+
top: "top";
|
|
520
520
|
}>>;
|
|
521
521
|
}, z.core.$strip>;
|
|
522
522
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -563,9 +563,9 @@ export declare const studioCommandSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
563
563
|
shapes: z.ZodOptional<z.ZodBoolean>;
|
|
564
564
|
align: z.ZodOptional<z.ZodEnum<{
|
|
565
565
|
auto: "auto";
|
|
566
|
-
top: "top";
|
|
567
|
-
center: "center";
|
|
568
566
|
bottom: "bottom";
|
|
567
|
+
center: "center";
|
|
568
|
+
top: "top";
|
|
569
569
|
}>>;
|
|
570
570
|
header: z.ZodString;
|
|
571
571
|
until: z.ZodOptional<z.ZodString>;
|
|
@@ -43,10 +43,10 @@ export declare const deckSlideViewSchema: z.ZodObject<{
|
|
|
43
43
|
rows: z.ZodArray<z.ZodArray<z.ZodObject<{
|
|
44
44
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
|
|
45
45
|
type: z.ZodEnum<{
|
|
46
|
-
string: "string";
|
|
47
|
-
number: "number";
|
|
48
46
|
boolean: "boolean";
|
|
49
47
|
date: "date";
|
|
48
|
+
number: "number";
|
|
49
|
+
string: "string";
|
|
50
50
|
}>;
|
|
51
51
|
}, z.core.$strip>>>;
|
|
52
52
|
rowCount: z.ZodOptional<z.ZodNumber>;
|
|
@@ -98,10 +98,10 @@ export declare const deckDocumentViewSchema: z.ZodObject<{
|
|
|
98
98
|
rows: z.ZodArray<z.ZodArray<z.ZodObject<{
|
|
99
99
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
|
|
100
100
|
type: z.ZodEnum<{
|
|
101
|
-
string: "string";
|
|
102
|
-
number: "number";
|
|
103
101
|
boolean: "boolean";
|
|
104
102
|
date: "date";
|
|
103
|
+
number: "number";
|
|
104
|
+
string: "string";
|
|
105
105
|
}>;
|
|
106
106
|
}, z.core.$strip>>>;
|
|
107
107
|
rowCount: z.ZodOptional<z.ZodNumber>;
|
|
@@ -5,19 +5,19 @@ import { z } from 'zod';
|
|
|
5
5
|
*/
|
|
6
6
|
export declare const detectUrlViewSchema: z.ZodObject<{
|
|
7
7
|
kind: z.ZodEnum<{
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
csv: "csv";
|
|
9
|
+
docx: "docx";
|
|
10
10
|
html: "html";
|
|
11
11
|
json: "json";
|
|
12
12
|
jsonl: "jsonl";
|
|
13
|
+
markdown: "markdown";
|
|
13
14
|
pdf: "pdf";
|
|
14
|
-
csv: "csv";
|
|
15
|
-
xlsx: "xlsx";
|
|
16
15
|
pptx: "pptx";
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
text: "text";
|
|
17
|
+
unknown: "unknown";
|
|
18
|
+
xlsx: "xlsx";
|
|
19
19
|
xml: "xml";
|
|
20
|
-
|
|
20
|
+
yaml: "yaml";
|
|
21
21
|
youtube: "youtube";
|
|
22
22
|
}>;
|
|
23
23
|
}, z.core.$strip>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
/** Why a sample run stopped before finishing on its own; mirrors `@opencraw/core`'s `RecipeReport.stoppedBy`. */
|
|
3
3
|
export declare const stoppedBySchema: z.ZodEnum<{
|
|
4
|
-
"sample-maxRecords": "sample-maxRecords";
|
|
5
|
-
"sample-maxPages": "sample-maxPages";
|
|
6
4
|
"sample-maxMs": "sample-maxMs";
|
|
5
|
+
"sample-maxPages": "sample-maxPages";
|
|
6
|
+
"sample-maxRecords": "sample-maxRecords";
|
|
7
7
|
}>;
|
|
8
8
|
/** One line of the engine's own trace output (`traceLine`), streamed as a sample run proceeds. */
|
|
9
9
|
export declare const traceLineEventSchema: z.ZodObject<{
|
|
@@ -51,9 +51,9 @@ export declare const runFinishedEventSchema: z.ZodObject<{
|
|
|
51
51
|
durationMs: z.ZodNumber;
|
|
52
52
|
error: z.ZodOptional<z.ZodString>;
|
|
53
53
|
stoppedBy: z.ZodOptional<z.ZodEnum<{
|
|
54
|
-
"sample-maxRecords": "sample-maxRecords";
|
|
55
|
-
"sample-maxPages": "sample-maxPages";
|
|
56
54
|
"sample-maxMs": "sample-maxMs";
|
|
55
|
+
"sample-maxPages": "sample-maxPages";
|
|
56
|
+
"sample-maxRecords": "sample-maxRecords";
|
|
57
57
|
}>>;
|
|
58
58
|
}, z.core.$strip>;
|
|
59
59
|
/** The workspace's recipes changed on disk (a save, or a future watcher) and should be re-fetched. */
|
|
@@ -69,16 +69,16 @@ export declare const workspaceChangedEventSchema: z.ZodObject<{
|
|
|
69
69
|
*/
|
|
70
70
|
export declare const recordingCardEventSchema: z.ZodObject<{
|
|
71
71
|
type: z.ZodLiteral<"recording-card">;
|
|
72
|
-
node: z.ZodType<import("./outline-view.contract").OutlineNode, unknown, z.core.$ZodTypeInternals<import("./outline-view.contract").OutlineNode, unknown>>;
|
|
72
|
+
node: z.ZodType<import("./outline-view.contract.js").OutlineNode, unknown, z.core.$ZodTypeInternals<import("./outline-view.contract.js").OutlineNode, unknown>>;
|
|
73
73
|
secret: z.ZodBoolean;
|
|
74
74
|
}, z.core.$strip>;
|
|
75
75
|
/** A notice from the recording session that is not itself a step: a "next" link offer, or an unsupported iframe/shadow-DOM report. */
|
|
76
76
|
export declare const recordingNoteEventSchema: z.ZodObject<{
|
|
77
77
|
type: z.ZodLiteral<"recording-note">;
|
|
78
78
|
kind: z.ZodEnum<{
|
|
79
|
-
unsupported: "unsupported";
|
|
80
|
-
"next-link": "next-link";
|
|
81
79
|
info: "info";
|
|
80
|
+
"next-link": "next-link";
|
|
81
|
+
unsupported: "unsupported";
|
|
82
82
|
}>;
|
|
83
83
|
message: z.ZodString;
|
|
84
84
|
}, z.core.$strip>;
|
|
@@ -134,22 +134,22 @@ export declare const studioEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
134
134
|
durationMs: z.ZodNumber;
|
|
135
135
|
error: z.ZodOptional<z.ZodString>;
|
|
136
136
|
stoppedBy: z.ZodOptional<z.ZodEnum<{
|
|
137
|
-
"sample-maxRecords": "sample-maxRecords";
|
|
138
|
-
"sample-maxPages": "sample-maxPages";
|
|
139
137
|
"sample-maxMs": "sample-maxMs";
|
|
138
|
+
"sample-maxPages": "sample-maxPages";
|
|
139
|
+
"sample-maxRecords": "sample-maxRecords";
|
|
140
140
|
}>>;
|
|
141
141
|
}, z.core.$strip>, z.ZodObject<{
|
|
142
142
|
type: z.ZodLiteral<"workspace-changed">;
|
|
143
143
|
}, z.core.$strip>, z.ZodObject<{
|
|
144
144
|
type: z.ZodLiteral<"recording-card">;
|
|
145
|
-
node: z.ZodType<import("./outline-view.contract").OutlineNode, unknown, z.core.$ZodTypeInternals<import("./outline-view.contract").OutlineNode, unknown>>;
|
|
145
|
+
node: z.ZodType<import("./outline-view.contract.js").OutlineNode, unknown, z.core.$ZodTypeInternals<import("./outline-view.contract.js").OutlineNode, unknown>>;
|
|
146
146
|
secret: z.ZodBoolean;
|
|
147
147
|
}, z.core.$strip>, z.ZodObject<{
|
|
148
148
|
type: z.ZodLiteral<"recording-note">;
|
|
149
149
|
kind: z.ZodEnum<{
|
|
150
|
-
unsupported: "unsupported";
|
|
151
|
-
"next-link": "next-link";
|
|
152
150
|
info: "info";
|
|
151
|
+
"next-link": "next-link";
|
|
152
|
+
unsupported: "unsupported";
|
|
153
153
|
}>;
|
|
154
154
|
message: z.ZodString;
|
|
155
155
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -3,10 +3,10 @@ import { z } from 'zod';
|
|
|
3
3
|
export declare const gridCellViewSchema: z.ZodObject<{
|
|
4
4
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
|
|
5
5
|
type: z.ZodEnum<{
|
|
6
|
-
string: "string";
|
|
7
|
-
number: "number";
|
|
8
6
|
boolean: "boolean";
|
|
9
7
|
date: "date";
|
|
8
|
+
number: "number";
|
|
9
|
+
string: "string";
|
|
10
10
|
}>;
|
|
11
11
|
}, z.core.$strip>;
|
|
12
12
|
/** One merged range, 0-based and inclusive. */
|
|
@@ -25,10 +25,10 @@ export declare const gridSheetViewSchema: z.ZodObject<{
|
|
|
25
25
|
rows: z.ZodArray<z.ZodArray<z.ZodObject<{
|
|
26
26
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
|
|
27
27
|
type: z.ZodEnum<{
|
|
28
|
-
string: "string";
|
|
29
|
-
number: "number";
|
|
30
28
|
boolean: "boolean";
|
|
31
29
|
date: "date";
|
|
30
|
+
number: "number";
|
|
31
|
+
string: "string";
|
|
32
32
|
}>;
|
|
33
33
|
}, z.core.$strip>>>;
|
|
34
34
|
rowCount: z.ZodOptional<z.ZodNumber>;
|
|
@@ -49,10 +49,10 @@ export declare const gridRowsViewSchema: z.ZodObject<{
|
|
|
49
49
|
rows: z.ZodArray<z.ZodArray<z.ZodObject<{
|
|
50
50
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
|
|
51
51
|
type: z.ZodEnum<{
|
|
52
|
-
string: "string";
|
|
53
|
-
number: "number";
|
|
54
52
|
boolean: "boolean";
|
|
55
53
|
date: "date";
|
|
54
|
+
number: "number";
|
|
55
|
+
string: "string";
|
|
56
56
|
}>;
|
|
57
57
|
}, z.core.$strip>>>;
|
|
58
58
|
}, z.core.$strip>;
|
|
@@ -66,10 +66,10 @@ export declare const workbookDocumentViewSchema: z.ZodObject<{
|
|
|
66
66
|
rows: z.ZodArray<z.ZodArray<z.ZodObject<{
|
|
67
67
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
|
|
68
68
|
type: z.ZodEnum<{
|
|
69
|
-
string: "string";
|
|
70
|
-
number: "number";
|
|
71
69
|
boolean: "boolean";
|
|
72
70
|
date: "date";
|
|
71
|
+
number: "number";
|
|
72
|
+
string: "string";
|
|
73
73
|
}>;
|
|
74
74
|
}, z.core.$strip>>>;
|
|
75
75
|
rowCount: z.ZodOptional<z.ZodNumber>;
|
|
@@ -3,11 +3,11 @@ import { z } from 'zod';
|
|
|
3
3
|
export declare const selectorAlternativeSchema: z.ZodObject<{
|
|
4
4
|
selector: z.ZodString;
|
|
5
5
|
tier: z.ZodEnum<{
|
|
6
|
-
id: "id";
|
|
7
|
-
"data-attr": "data-attr";
|
|
8
6
|
class: "class";
|
|
9
|
-
|
|
7
|
+
"data-attr": "data-attr";
|
|
8
|
+
id: "id";
|
|
10
9
|
position: "position";
|
|
10
|
+
structure: "structure";
|
|
11
11
|
}>;
|
|
12
12
|
matches: z.ZodNumber;
|
|
13
13
|
}, z.core.$strip>;
|
|
@@ -15,22 +15,22 @@ export declare const selectorAlternativeSchema: z.ZodObject<{
|
|
|
15
15
|
export declare const fieldPickSchema: z.ZodObject<{
|
|
16
16
|
selector: z.ZodString;
|
|
17
17
|
tier: z.ZodEnum<{
|
|
18
|
-
id: "id";
|
|
19
|
-
"data-attr": "data-attr";
|
|
20
18
|
class: "class";
|
|
21
|
-
|
|
19
|
+
"data-attr": "data-attr";
|
|
20
|
+
id: "id";
|
|
22
21
|
position: "position";
|
|
22
|
+
structure: "structure";
|
|
23
23
|
}>;
|
|
24
24
|
take: z.ZodString;
|
|
25
25
|
matches: z.ZodNumber;
|
|
26
26
|
alternatives: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
27
27
|
selector: z.ZodString;
|
|
28
28
|
tier: z.ZodEnum<{
|
|
29
|
-
id: "id";
|
|
30
|
-
"data-attr": "data-attr";
|
|
31
29
|
class: "class";
|
|
32
|
-
|
|
30
|
+
"data-attr": "data-attr";
|
|
31
|
+
id: "id";
|
|
33
32
|
position: "position";
|
|
33
|
+
structure: "structure";
|
|
34
34
|
}>;
|
|
35
35
|
matches: z.ZodNumber;
|
|
36
36
|
}, z.core.$strip>>>;
|
|
@@ -49,22 +49,22 @@ export declare const inferSelectorViewSchema: z.ZodDiscriminatedUnion<[z.ZodObje
|
|
|
49
49
|
field: z.ZodObject<{
|
|
50
50
|
selector: z.ZodString;
|
|
51
51
|
tier: z.ZodEnum<{
|
|
52
|
-
id: "id";
|
|
53
|
-
"data-attr": "data-attr";
|
|
54
52
|
class: "class";
|
|
55
|
-
|
|
53
|
+
"data-attr": "data-attr";
|
|
54
|
+
id: "id";
|
|
56
55
|
position: "position";
|
|
56
|
+
structure: "structure";
|
|
57
57
|
}>;
|
|
58
58
|
take: z.ZodString;
|
|
59
59
|
matches: z.ZodNumber;
|
|
60
60
|
alternatives: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
61
61
|
selector: z.ZodString;
|
|
62
62
|
tier: z.ZodEnum<{
|
|
63
|
-
id: "id";
|
|
64
|
-
"data-attr": "data-attr";
|
|
65
63
|
class: "class";
|
|
66
|
-
|
|
64
|
+
"data-attr": "data-attr";
|
|
65
|
+
id: "id";
|
|
67
66
|
position: "position";
|
|
67
|
+
structure: "structure";
|
|
68
68
|
}>;
|
|
69
69
|
matches: z.ZodNumber;
|
|
70
70
|
}, z.core.$strip>>>;
|
|
@@ -75,21 +75,21 @@ export declare const inferSelectorViewSchema: z.ZodDiscriminatedUnion<[z.ZodObje
|
|
|
75
75
|
item: z.ZodObject<{
|
|
76
76
|
selector: z.ZodString;
|
|
77
77
|
tier: z.ZodEnum<{
|
|
78
|
-
id: "id";
|
|
79
|
-
"data-attr": "data-attr";
|
|
80
78
|
class: "class";
|
|
81
|
-
|
|
79
|
+
"data-attr": "data-attr";
|
|
80
|
+
id: "id";
|
|
82
81
|
position: "position";
|
|
82
|
+
structure: "structure";
|
|
83
83
|
}>;
|
|
84
84
|
matches: z.ZodNumber;
|
|
85
85
|
alternatives: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
86
86
|
selector: z.ZodString;
|
|
87
87
|
tier: z.ZodEnum<{
|
|
88
|
-
id: "id";
|
|
89
|
-
"data-attr": "data-attr";
|
|
90
88
|
class: "class";
|
|
91
|
-
|
|
89
|
+
"data-attr": "data-attr";
|
|
90
|
+
id: "id";
|
|
92
91
|
position: "position";
|
|
92
|
+
structure: "structure";
|
|
93
93
|
}>;
|
|
94
94
|
matches: z.ZodNumber;
|
|
95
95
|
}, z.core.$strip>>>;
|
|
@@ -97,22 +97,22 @@ export declare const inferSelectorViewSchema: z.ZodDiscriminatedUnion<[z.ZodObje
|
|
|
97
97
|
field: z.ZodObject<{
|
|
98
98
|
selector: z.ZodString;
|
|
99
99
|
tier: z.ZodEnum<{
|
|
100
|
-
id: "id";
|
|
101
|
-
"data-attr": "data-attr";
|
|
102
100
|
class: "class";
|
|
103
|
-
|
|
101
|
+
"data-attr": "data-attr";
|
|
102
|
+
id: "id";
|
|
104
103
|
position: "position";
|
|
104
|
+
structure: "structure";
|
|
105
105
|
}>;
|
|
106
106
|
take: z.ZodString;
|
|
107
107
|
matches: z.ZodNumber;
|
|
108
108
|
alternatives: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
109
109
|
selector: z.ZodString;
|
|
110
110
|
tier: z.ZodEnum<{
|
|
111
|
-
id: "id";
|
|
112
|
-
"data-attr": "data-attr";
|
|
113
111
|
class: "class";
|
|
114
|
-
|
|
112
|
+
"data-attr": "data-attr";
|
|
113
|
+
id: "id";
|
|
115
114
|
position: "position";
|
|
115
|
+
structure: "structure";
|
|
116
116
|
}>;
|
|
117
117
|
matches: z.ZodNumber;
|
|
118
118
|
}, z.core.$strip>>>;
|
|
@@ -123,22 +123,22 @@ export declare const inferSelectorViewSchema: z.ZodDiscriminatedUnion<[z.ZodObje
|
|
|
123
123
|
field: z.ZodObject<{
|
|
124
124
|
selector: z.ZodString;
|
|
125
125
|
tier: z.ZodEnum<{
|
|
126
|
-
id: "id";
|
|
127
|
-
"data-attr": "data-attr";
|
|
128
126
|
class: "class";
|
|
129
|
-
|
|
127
|
+
"data-attr": "data-attr";
|
|
128
|
+
id: "id";
|
|
130
129
|
position: "position";
|
|
130
|
+
structure: "structure";
|
|
131
131
|
}>;
|
|
132
132
|
take: z.ZodString;
|
|
133
133
|
matches: z.ZodNumber;
|
|
134
134
|
alternatives: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
135
135
|
selector: z.ZodString;
|
|
136
136
|
tier: z.ZodEnum<{
|
|
137
|
-
id: "id";
|
|
138
|
-
"data-attr": "data-attr";
|
|
139
137
|
class: "class";
|
|
140
|
-
|
|
138
|
+
"data-attr": "data-attr";
|
|
139
|
+
id: "id";
|
|
141
140
|
position: "position";
|
|
141
|
+
structure: "structure";
|
|
142
142
|
}>;
|
|
143
143
|
matches: z.ZodNumber;
|
|
144
144
|
}, z.core.$strip>>>;
|
|
@@ -14,19 +14,19 @@ export interface DomTreeNodeView {
|
|
|
14
14
|
}
|
|
15
15
|
export declare const domTreeNodeViewSchema: z.ZodType<DomTreeNodeView>;
|
|
16
16
|
declare const pageDataKindSchema: z.ZodEnum<{
|
|
17
|
-
link: "link";
|
|
18
|
-
"ld-json": "ld-json";
|
|
19
|
-
"json-script": "json-script";
|
|
20
17
|
"inline-state": "inline-state";
|
|
18
|
+
"json-script": "json-script";
|
|
19
|
+
"ld-json": "ld-json";
|
|
20
|
+
link: "link";
|
|
21
21
|
meta: "meta";
|
|
22
22
|
}>;
|
|
23
23
|
/** One "data in the page" entry — mirrors `page-inspector/page-data.algorithm.ts`'s `PageDataFinding`. */
|
|
24
24
|
export declare const pageDataFindingSchema: z.ZodObject<{
|
|
25
25
|
kind: z.ZodEnum<{
|
|
26
|
-
link: "link";
|
|
27
|
-
"ld-json": "ld-json";
|
|
28
|
-
"json-script": "json-script";
|
|
29
26
|
"inline-state": "inline-state";
|
|
27
|
+
"json-script": "json-script";
|
|
28
|
+
"ld-json": "ld-json";
|
|
29
|
+
link: "link";
|
|
30
30
|
meta: "meta";
|
|
31
31
|
}>;
|
|
32
32
|
label: z.ZodString;
|
|
@@ -43,10 +43,10 @@ export declare const inspectViewSchema: z.ZodObject<{
|
|
|
43
43
|
tree: z.ZodType<DomTreeNodeView, unknown, z.core.$ZodTypeInternals<DomTreeNodeView, unknown>>;
|
|
44
44
|
pageData: z.ZodArray<z.ZodObject<{
|
|
45
45
|
kind: z.ZodEnum<{
|
|
46
|
-
link: "link";
|
|
47
|
-
"ld-json": "ld-json";
|
|
48
|
-
"json-script": "json-script";
|
|
49
46
|
"inline-state": "inline-state";
|
|
47
|
+
"json-script": "json-script";
|
|
48
|
+
"ld-json": "ld-json";
|
|
49
|
+
link: "link";
|
|
50
50
|
meta: "meta";
|
|
51
51
|
}>;
|
|
52
52
|
label: z.ZodString;
|
|
@@ -13,9 +13,9 @@ export declare const sampleRunViewSchema: z.ZodObject<{
|
|
|
13
13
|
durationMs: z.ZodNumber;
|
|
14
14
|
error: z.ZodOptional<z.ZodString>;
|
|
15
15
|
stoppedBy: z.ZodOptional<z.ZodEnum<{
|
|
16
|
-
"sample-maxRecords": "sample-maxRecords";
|
|
17
|
-
"sample-maxPages": "sample-maxPages";
|
|
18
16
|
"sample-maxMs": "sample-maxMs";
|
|
17
|
+
"sample-maxPages": "sample-maxPages";
|
|
18
|
+
"sample-maxRecords": "sample-maxRecords";
|
|
19
19
|
}>>;
|
|
20
20
|
records: z.ZodArray<z.ZodObject<{
|
|
21
21
|
key: z.ZodNullable<z.ZodString>;
|
|
@@ -12,18 +12,18 @@ export declare const snapshotViewSchema: z.ZodObject<{
|
|
|
12
12
|
nodeCount: z.ZodNumber;
|
|
13
13
|
baseUrl: z.ZodString;
|
|
14
14
|
format: z.ZodOptional<z.ZodEnum<{
|
|
15
|
-
|
|
15
|
+
csv: "csv";
|
|
16
|
+
docx: "docx";
|
|
16
17
|
html: "html";
|
|
17
18
|
json: "json";
|
|
18
19
|
jsonl: "jsonl";
|
|
20
|
+
markdown: "markdown";
|
|
19
21
|
pdf: "pdf";
|
|
20
|
-
csv: "csv";
|
|
21
|
-
xlsx: "xlsx";
|
|
22
22
|
pptx: "pptx";
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
text: "text";
|
|
24
|
+
xlsx: "xlsx";
|
|
25
25
|
xml: "xml";
|
|
26
|
-
|
|
26
|
+
yaml: "yaml";
|
|
27
27
|
youtube: "youtube";
|
|
28
28
|
}>>;
|
|
29
29
|
notice: z.ZodOptional<z.ZodString>;
|
|
@@ -7,8 +7,8 @@ export declare const askUiViewSchema: z.ZodObject<{
|
|
|
7
7
|
/** How a controller's request went: `pending` until a page reported, then what it said. */
|
|
8
8
|
export declare const uiOutcomeViewSchema: z.ZodObject<{
|
|
9
9
|
state: z.ZodEnum<{
|
|
10
|
-
pending: "pending";
|
|
11
10
|
done: "done";
|
|
11
|
+
pending: "pending";
|
|
12
12
|
}>;
|
|
13
13
|
ok: z.ZodOptional<z.ZodBoolean>;
|
|
14
14
|
message: z.ZodOptional<z.ZodString>;
|
|
@@ -24,9 +24,9 @@ export declare const studioStatusViewSchema: z.ZodObject<{
|
|
|
24
24
|
export declare const runStatusViewSchema: z.ZodObject<{
|
|
25
25
|
recipeId: z.ZodString;
|
|
26
26
|
state: z.ZodEnum<{
|
|
27
|
-
running: "running";
|
|
28
27
|
finished: "finished";
|
|
29
28
|
"never-run": "never-run";
|
|
29
|
+
running: "running";
|
|
30
30
|
}>;
|
|
31
31
|
result: z.ZodOptional<z.ZodObject<{
|
|
32
32
|
emitted: z.ZodNumber;
|
|
@@ -4,8 +4,8 @@ export declare const recipeIssueSchema: z.ZodObject<{
|
|
|
4
4
|
path: z.ZodString;
|
|
5
5
|
message: z.ZodString;
|
|
6
6
|
kind: z.ZodEnum<{
|
|
7
|
-
validation: "validation";
|
|
8
7
|
binding: "binding";
|
|
8
|
+
validation: "validation";
|
|
9
9
|
}>;
|
|
10
10
|
}, z.core.$strip>;
|
|
11
11
|
/** One recipe file in an opened workspace. */
|
|
@@ -21,12 +21,12 @@ export declare const recipeListingSchema: z.ZodObject<{
|
|
|
21
21
|
path: z.ZodString;
|
|
22
22
|
message: z.ZodString;
|
|
23
23
|
kind: z.ZodEnum<{
|
|
24
|
-
validation: "validation";
|
|
25
24
|
binding: "binding";
|
|
25
|
+
validation: "validation";
|
|
26
26
|
}>;
|
|
27
27
|
}, z.core.$strip>>;
|
|
28
28
|
text: z.ZodString;
|
|
29
|
-
outline: z.ZodOptional<z.ZodType<import("./outline-view.contract").OutlineView, unknown, z.core.$ZodTypeInternals<import("./outline-view.contract").OutlineView, unknown>>>;
|
|
29
|
+
outline: z.ZodOptional<z.ZodType<import("./outline-view.contract.js").OutlineView, unknown, z.core.$ZodTypeInternals<import("./outline-view.contract.js").OutlineView, unknown>>>;
|
|
30
30
|
}, z.core.$strip>;
|
|
31
31
|
/** The hooks Studio was started with (`opencraw studio --hooks <file>`, issue #150): where they came from and what they are called, for the warning bar and the hook-name suggestions. */
|
|
32
32
|
export declare const loadedHooksSchema: z.ZodObject<{
|
|
@@ -34,9 +34,9 @@ export declare const loadedHooksSchema: z.ZodObject<{
|
|
|
34
34
|
names: z.ZodArray<z.ZodString>;
|
|
35
35
|
remote: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
36
36
|
kind: z.ZodEnum<{
|
|
37
|
-
hook: "hook";
|
|
38
|
-
captcha: "captcha";
|
|
39
37
|
access: "access";
|
|
38
|
+
captcha: "captcha";
|
|
39
|
+
hook: "hook";
|
|
40
40
|
}>;
|
|
41
41
|
name: z.ZodString;
|
|
42
42
|
label: z.ZodString;
|
|
@@ -57,21 +57,21 @@ export declare const workspaceViewSchema: z.ZodObject<{
|
|
|
57
57
|
path: z.ZodString;
|
|
58
58
|
message: z.ZodString;
|
|
59
59
|
kind: z.ZodEnum<{
|
|
60
|
-
validation: "validation";
|
|
61
60
|
binding: "binding";
|
|
61
|
+
validation: "validation";
|
|
62
62
|
}>;
|
|
63
63
|
}, z.core.$strip>>;
|
|
64
64
|
text: z.ZodString;
|
|
65
|
-
outline: z.ZodOptional<z.ZodType<import("./outline-view.contract").OutlineView, unknown, z.core.$ZodTypeInternals<import("./outline-view.contract").OutlineView, unknown>>>;
|
|
65
|
+
outline: z.ZodOptional<z.ZodType<import("./outline-view.contract.js").OutlineView, unknown, z.core.$ZodTypeInternals<import("./outline-view.contract.js").OutlineView, unknown>>>;
|
|
66
66
|
}, z.core.$strip>>;
|
|
67
67
|
hooks: z.ZodOptional<z.ZodObject<{
|
|
68
68
|
source: z.ZodString;
|
|
69
69
|
names: z.ZodArray<z.ZodString>;
|
|
70
70
|
remote: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
71
71
|
kind: z.ZodEnum<{
|
|
72
|
-
hook: "hook";
|
|
73
|
-
captcha: "captcha";
|
|
74
72
|
access: "access";
|
|
73
|
+
captcha: "captcha";
|
|
74
|
+
hook: "hook";
|
|
75
75
|
}>;
|
|
76
76
|
name: z.ZodString;
|
|
77
77
|
label: z.ZodString;
|