effect-browser 0.2.0-beta.8 → 0.3.0-beta.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +705 -1166
- package/dist/Browser-CM65Uo7f.mjs +437 -0
- package/dist/Browser-CM65Uo7f.mjs.map +1 -0
- package/dist/Browser.d.mts +115 -3
- package/dist/Browser.mjs +2 -22
- package/dist/BrowserError-DXXIA6Rk.d.mts +135 -0
- package/dist/BrowserError.d.mts +2 -0
- package/dist/BrowserError.mjs +202 -0
- package/dist/BrowserError.mjs.map +1 -0
- package/dist/BrowserEvent-DzdNdvoh.d.mts +277 -0
- package/dist/BrowserEvent.d.mts +2 -0
- package/dist/BrowserEvent.mjs +295 -0
- package/dist/BrowserEvent.mjs.map +1 -0
- package/dist/Cdp.d.mts +32 -0
- package/dist/Cdp.mjs +61 -0
- package/dist/Cdp.mjs.map +1 -0
- package/dist/Change-DNvztNLu.mjs +138 -0
- package/dist/Change-DNvztNLu.mjs.map +1 -0
- package/dist/Change-DVP2IJWm.d.mts +71 -0
- package/dist/Change.d.mts +2 -0
- package/dist/Change.mjs +2 -0
- package/dist/Chromium.d.mts +29 -81
- package/dist/Chromium.mjs +57 -392
- package/dist/Chromium.mjs.map +1 -1
- package/dist/Expect.d.mts +62 -0
- package/dist/Expect.mjs +114 -0
- package/dist/Expect.mjs.map +1 -0
- package/dist/Frame-BERmf_gM.d.mts +117 -0
- package/dist/Frame.d.mts +2 -0
- package/dist/Frame.mjs +123 -0
- package/dist/Frame.mjs.map +1 -0
- package/dist/Moment.d.mts +2 -0
- package/dist/Moment.mjs +288 -0
- package/dist/Moment.mjs.map +1 -0
- package/dist/Motion.d.mts +40 -0
- package/dist/Motion.mjs +122 -0
- package/dist/Motion.mjs.map +1 -0
- package/dist/Page-D4281dIi.mjs +618 -0
- package/dist/Page-D4281dIi.mjs.map +1 -0
- package/dist/Page-DYTdVhYa.d.mts +593 -0
- package/dist/Page.d.mts +2 -0
- package/dist/Page.mjs +2 -0
- package/dist/Plan-CNNOU1Tx.d.mts +112 -0
- package/dist/Plan-Dtrb-8im.mjs +311 -0
- package/dist/Plan-Dtrb-8im.mjs.map +1 -0
- package/dist/Plan.d.mts +2 -3
- package/dist/Plan.mjs +2 -2
- package/dist/Policy.d.mts +76 -0
- package/dist/Policy.mjs +237 -0
- package/dist/Policy.mjs.map +1 -0
- package/dist/Presentation.d.mts +48 -0
- package/dist/Presentation.mjs +117 -0
- package/dist/Presentation.mjs.map +1 -0
- package/dist/Snapshot-B34hZ4Jl.d.mts +68 -0
- package/dist/Snapshot.d.mts +2 -0
- package/dist/Snapshot.mjs +79 -0
- package/dist/Snapshot.mjs.map +1 -0
- package/dist/Stage.d.mts +54 -0
- package/dist/Stage.mjs +133 -0
- package/dist/Stage.mjs.map +1 -0
- package/dist/Supervisor-BtEG93gR.mjs +420 -0
- package/dist/Supervisor-BtEG93gR.mjs.map +1 -0
- package/dist/Supervisor-Im6-wbg5.d.mts +230 -0
- package/dist/Supervisor.d.mts +2 -0
- package/dist/Supervisor.mjs +2 -0
- package/dist/context-DAYjATgC.mjs +137 -0
- package/dist/context-DAYjATgC.mjs.map +1 -0
- package/dist/index.d.mts +17 -14
- package/dist/index.mjs +18 -13
- package/dist/match.inpage-xOe9LNO0.mjs +48 -0
- package/dist/match.inpage-xOe9LNO0.mjs.map +1 -0
- package/dist/page-Banfm_zc.mjs +5097 -0
- package/dist/page-Banfm_zc.mjs.map +1 -0
- package/dist/rolldown-runtime-D7D4PA-g.mjs +13 -0
- package/dist/url-CcL0K7S0.mjs +262 -0
- package/dist/url-CcL0K7S0.mjs.map +1 -0
- package/package.json +96 -61
- package/src/Browser.ts +625 -0
- package/src/BrowserError.ts +225 -0
- package/src/BrowserEvent.ts +294 -0
- package/src/Cdp.ts +101 -0
- package/src/Change.ts +88 -0
- package/src/Chromium.ts +102 -0
- package/src/Expect.ts +180 -0
- package/src/Frame.ts +130 -0
- package/src/Moment.ts +479 -0
- package/src/Motion.ts +166 -0
- package/src/Page.ts +520 -0
- package/src/Plan.ts +350 -0
- package/src/Policy.ts +325 -0
- package/src/Presentation.ts +195 -0
- package/src/Snapshot.ts +89 -0
- package/src/Stage.ts +223 -0
- package/src/Supervisor.ts +353 -0
- package/src/index.ts +20 -0
- package/src/internal/input/actions.ts +607 -0
- package/src/internal/input/dispatch.ts +161 -0
- package/src/internal/input/edit.inpage.ts +162 -0
- package/src/internal/input/evidence.inpage.ts +164 -0
- package/src/internal/input/guard.inpage.ts +605 -0
- package/src/internal/input/guard.ts +183 -0
- package/src/internal/input/keyboard.ts +112 -0
- package/src/internal/input/keys.ts +127 -0
- package/src/internal/input/perform.ts +322 -0
- package/src/internal/input/pointer.ts +153 -0
- package/src/internal/input/replies.ts +159 -0
- package/src/internal/input/settle.ts +50 -0
- package/src/internal/input/style.ts +186 -0
- package/src/internal/input/targets.inpage.ts +293 -0
- package/src/internal/input/targets.ts +148 -0
- package/src/internal/page/bridge.ts +386 -0
- package/src/internal/page/context.ts +302 -0
- package/src/internal/page/lane.ts +301 -0
- package/src/internal/page/navigation.ts +183 -0
- package/src/internal/page/openings.ts +87 -0
- package/src/internal/page/page.ts +137 -0
- package/src/internal/page/url.ts +100 -0
- package/src/internal/page/viewport.ts +43 -0
- package/src/internal/pictures/capture.ts +778 -0
- package/src/internal/pictures/clock.ts +141 -0
- package/src/internal/pictures/pictures.ts +520 -0
- package/src/internal/pictures/transport.ts +242 -0
- package/src/internal/reading/choose.ts +100 -0
- package/src/internal/reading/context.inpage.ts +201 -0
- package/src/internal/reading/controls.inpage.ts +158 -0
- package/src/internal/reading/expect.inpage.ts +70 -0
- package/src/internal/reading/match.inpage.ts +92 -0
- package/src/internal/reading/names.inpage.ts +306 -0
- package/src/internal/reading/outline.inpage.ts +260 -0
- package/src/internal/reading/reading.ts +223 -0
- package/src/internal/reading/ready.inpage.ts +154 -0
- package/src/internal/reading/ready.ts +105 -0
- package/src/internal/reading/subjects.inpage.ts +188 -0
- package/src/internal/reading/text.inpage.ts +135 -0
- package/src/internal/reading/walk.inpage.ts +220 -0
- package/src/internal/supervisor/lifecycle.ts +265 -0
- package/src/internal/timeline/changes.inpage.ts +216 -0
- package/src/internal/timeline/changes.ts +100 -0
- package/src/internal/timeline/events.ts +93 -0
- package/src/internal/timeline/fold.inpage.ts +123 -0
- package/src/internal/timeline/history.inpage.ts +229 -0
- package/src/internal/timeline/marks.inpage.ts +207 -0
- package/src/internal/timeline/record.inpage.ts +133 -0
- package/src/internal/timeline/sight.inpage.ts +122 -0
- package/src/internal/timeline/window.ts +96 -0
- package/src/internal/timeline/words.ts +65 -0
- package/dist/Bootstrap-B9UUXsvF.d.mts +0 -183
- package/dist/Bootstrap-CeQOWBy6.mjs +0 -189
- package/dist/Bootstrap-CeQOWBy6.mjs.map +0 -1
- package/dist/Bootstrap.d.mts +0 -3
- package/dist/Bootstrap.mjs +0 -2
- package/dist/Browser-n-bKgBNN.d.mts +0 -372
- package/dist/Browser.mjs.map +0 -1
- package/dist/BrowserData-CPIIIHol.d.mts +0 -585
- package/dist/BrowserData.d.mts +0 -3
- package/dist/BrowserData.mjs +0 -695
- package/dist/BrowserData.mjs.map +0 -1
- package/dist/BrowserRuntime-CFe9uUTv.d.mts +0 -148
- package/dist/BrowserRuntime-HJ1yYlFS.mjs +0 -6741
- package/dist/BrowserRuntime-HJ1yYlFS.mjs.map +0 -1
- package/dist/BrowserRuntime.d.mts +0 -3
- package/dist/BrowserRuntime.mjs +0 -3
- package/dist/Capture.d.mts +0 -56
- package/dist/Capture.mjs +0 -678
- package/dist/Capture.mjs.map +0 -1
- package/dist/CaptureData-CYriZHX1.mjs +0 -201
- package/dist/CaptureData-CYriZHX1.mjs.map +0 -1
- package/dist/CaptureData.d.mts +0 -219
- package/dist/CaptureData.mjs +0 -2
- package/dist/Errors.d.mts +0 -158
- package/dist/Errors.mjs +0 -207
- package/dist/Errors.mjs.map +0 -1
- package/dist/Images-CaaPNeed.mjs +0 -76
- package/dist/Images-CaaPNeed.mjs.map +0 -1
- package/dist/OperationOptions-DAeRS6O9.mjs +0 -55
- package/dist/OperationOptions-DAeRS6O9.mjs.map +0 -1
- package/dist/PageControl.d.mts +0 -15
- package/dist/PageControl.mjs +0 -34
- package/dist/PageControl.mjs.map +0 -1
- package/dist/PageRegistry-B3q9DS3g.mjs +0 -164
- package/dist/PageRegistry-B3q9DS3g.mjs.map +0 -1
- package/dist/Plan-D8qQ48Ic.mjs +0 -512
- package/dist/Plan-D8qQ48Ic.mjs.map +0 -1
- package/dist/PlanData-B668RxbQ.d.mts +0 -4831
- package/dist/PlanData.d.mts +0 -3
- package/dist/PlanData.mjs +0 -268
- package/dist/PlanData.mjs.map +0 -1
- package/dist/PlanInput-BJcPPncs.mjs +0 -75
- package/dist/PlanInput-BJcPPncs.mjs.map +0 -1
- package/dist/PublicSession-Bs61Eal8.mjs +0 -5601
- package/dist/PublicSession-Bs61Eal8.mjs.map +0 -1
- package/dist/Testing.d.mts +0 -479
- package/dist/Testing.mjs +0 -2147
- package/dist/Testing.mjs.map +0 -1
- package/dist/Timeline-fV22Xk-S.d.mts +0 -29
- package/dist/Timeline.d.mts +0 -4
- package/dist/Timeline.mjs +0 -20
- package/dist/Timeline.mjs.map +0 -1
- package/dist/TimelineData-BsOn-YGZ.d.mts +0 -3818
- package/dist/TimelineData.d.mts +0 -3
- package/dist/TimelineData.mjs +0 -482
- package/dist/TimelineData.mjs.map +0 -1
|
@@ -1,585 +0,0 @@
|
|
|
1
|
-
import { BrowserError } from "./Errors.mjs";
|
|
2
|
-
import { Schema } from "effect";
|
|
3
|
-
//#region src/BrowserData.d.ts
|
|
4
|
-
declare const Identifier: Schema.NonEmptyString;
|
|
5
|
-
declare const PositiveInt: Schema.Int;
|
|
6
|
-
/** Portable basename only; never a local or remote filesystem path. */
|
|
7
|
-
declare const SafeFilename: Schema.NonEmptyString;
|
|
8
|
-
declare const Viewport_base: Schema.Class<Viewport, Schema.Struct<{
|
|
9
|
-
readonly width: Schema.Int;
|
|
10
|
-
readonly height: Schema.Int;
|
|
11
|
-
}>, {}>;
|
|
12
|
-
declare class Viewport extends Viewport_base {}
|
|
13
|
-
declare const Target_base: Schema.Class<Target, Schema.Struct<{
|
|
14
|
-
readonly generation: Schema.Natural;
|
|
15
|
-
readonly pageId: Schema.NonEmptyString;
|
|
16
|
-
readonly frameId: Schema.NonEmptyString;
|
|
17
|
-
}>, {}>;
|
|
18
|
-
/** Page/frame IDs are connection-local; targetId is a separate Chromium identity. */
|
|
19
|
-
declare class Target extends Target_base {}
|
|
20
|
-
declare const PageInfo_base: Schema.Class<PageInfo, Schema.Struct<{
|
|
21
|
-
readonly pageId: Schema.NonEmptyString;
|
|
22
|
-
readonly targetId: Schema.NonEmptyString;
|
|
23
|
-
readonly url: Schema.String;
|
|
24
|
-
readonly title: Schema.String;
|
|
25
|
-
readonly selected: Schema.Boolean;
|
|
26
|
-
}>, {}>;
|
|
27
|
-
declare class PageInfo extends PageInfo_base {}
|
|
28
|
-
declare const FrameInfo_base: Schema.Class<FrameInfo, Schema.Struct<{
|
|
29
|
-
readonly frameId: Schema.NonEmptyString;
|
|
30
|
-
readonly parentFrameId: Schema.NullOr<Schema.NonEmptyString>;
|
|
31
|
-
readonly url: Schema.String;
|
|
32
|
-
readonly name: Schema.String;
|
|
33
|
-
}>, {}>;
|
|
34
|
-
declare class FrameInfo extends FrameInfo_base {}
|
|
35
|
-
declare const SessionPhase: Schema.Literals<readonly ["acquiring", "open", "paused", "detached", "faulted", "uncertain", "closing", "closed"]>;
|
|
36
|
-
type SessionPhase = typeof SessionPhase.Type;
|
|
37
|
-
declare const SessionReason: Schema.Literals<readonly ["expired", "callback-failure", "registration-failure", "native-failure", "disconnected", "popup-policy", "dialog-policy", "popup-overflow", "dialog-overflow", "cleanup-capacity", "handoff", "detached", "closed", "page-contained"]>;
|
|
38
|
-
type SessionReason = typeof SessionReason.Type;
|
|
39
|
-
declare const Inventory_base: Schema.Class<Inventory, Schema.Struct<{
|
|
40
|
-
readonly generation: Schema.Natural;
|
|
41
|
-
readonly pages: Schema.$Array<typeof PageInfo>;
|
|
42
|
-
}>, {}>;
|
|
43
|
-
/**
|
|
44
|
-
* Bounded fresh metadata from one owner generation. Native URL/title reads are non-atomic.
|
|
45
|
-
* PageInfo is data; callers must acquire an issued Page and observe it explicitly before input.
|
|
46
|
-
* The separate pages lifecycle stream attaches its cached registry snapshot and cursor atomically.
|
|
47
|
-
*/
|
|
48
|
-
declare class Inventory extends Inventory_base {}
|
|
49
|
-
declare const SessionStatus_base: Schema.Class<SessionStatus, Schema.Struct<{
|
|
50
|
-
readonly phase: Schema.Literals<readonly ["acquiring", "open", "paused", "detached", "faulted", "uncertain", "closing", "closed"]>;
|
|
51
|
-
readonly reason: Schema.NullOr<Schema.Literals<readonly ["expired", "callback-failure", "registration-failure", "native-failure", "disconnected", "popup-policy", "dialog-policy", "popup-overflow", "dialog-overflow", "cleanup-capacity", "handoff", "detached", "closed", "page-contained"]>>;
|
|
52
|
-
readonly generation: Schema.Natural;
|
|
53
|
-
readonly busy: Schema.Boolean;
|
|
54
|
-
readonly unresolvedDispatch: Schema.Boolean;
|
|
55
|
-
/**
|
|
56
|
-
* Actions admitted against the policy's `maxActions`, as the owner counted them. Host reads
|
|
57
|
-
* (`checkpoint`, `controlFacts`) and uncharged reads such as a form's verification are not
|
|
58
|
-
* actions. `used` equals `maximum` once the allowance is spent; the owner stays open.
|
|
59
|
-
*/
|
|
60
|
-
readonly actions: Schema.Struct<{
|
|
61
|
-
readonly used: Schema.Natural;
|
|
62
|
-
readonly maximum: Schema.Int;
|
|
63
|
-
}>;
|
|
64
|
-
}>, {}>;
|
|
65
|
-
/** Host-only admission evidence. Neither an admission token nor proof of remote termination. */
|
|
66
|
-
declare class SessionStatus extends SessionStatus_base {}
|
|
67
|
-
declare const BrowserDiagnostic_base: Schema.Class<BrowserDiagnostic, Schema.Struct<{
|
|
68
|
-
readonly reason: Schema.Literals<readonly ["expired", "callback-failure", "registration-failure", "native-failure", "disconnected", "popup-policy", "dialog-policy", "popup-overflow", "dialog-overflow", "cleanup-capacity", "handoff", "detached", "closed", "page-contained"]>;
|
|
69
|
-
readonly disposition: Schema.Literals<readonly ["pending", "confirmed", "not-dispatched", "unknown"]>;
|
|
70
|
-
readonly generation: Schema.Natural;
|
|
71
|
-
readonly monotonicNanos: Schema.BigInt;
|
|
72
|
-
}>, {}>;
|
|
73
|
-
/** Bounded host facts only: no target identity, page content, native exception or consumer cause. */
|
|
74
|
-
declare class BrowserDiagnostic extends BrowserDiagnostic_base {}
|
|
75
|
-
declare const BrowserDiagnostics_base: Schema.Class<BrowserDiagnostics, Schema.Struct<{
|
|
76
|
-
readonly records: Schema.$Array<typeof BrowserDiagnostic>;
|
|
77
|
-
readonly total: Schema.Natural;
|
|
78
|
-
readonly dropped: Schema.Natural;
|
|
79
|
-
readonly truncated: Schema.Boolean;
|
|
80
|
-
}>, {}>;
|
|
81
|
-
declare class BrowserDiagnostics extends BrowserDiagnostics_base {}
|
|
82
|
-
declare const ObservedControl_base: Schema.Class<ObservedControl, Schema.Struct<{
|
|
83
|
-
readonly elementId: Schema.NonEmptyString;
|
|
84
|
-
readonly kind: Schema.Literals<readonly ["link", "button", "input", "select", "textarea", "other"]>;
|
|
85
|
-
readonly label: Schema.String;
|
|
86
|
-
readonly disabled: Schema.Boolean;
|
|
87
|
-
readonly checked: Schema.optionalKey<Schema.Boolean>;
|
|
88
|
-
readonly selected: Schema.optionalKey<Schema.Boolean>;
|
|
89
|
-
readonly inputType: Schema.optionalKey<Schema.String>;
|
|
90
|
-
readonly required: Schema.optionalKey<Schema.Boolean>;
|
|
91
|
-
/** Native select state. A select is never represented by one `selected` boolean. */
|
|
92
|
-
readonly multiple: Schema.optionalKey<Schema.Boolean>;
|
|
93
|
-
/** The issued select this native option belongs to, in the same observation. */
|
|
94
|
-
readonly selectElementId: Schema.optionalKey<Schema.NonEmptyString>;
|
|
95
|
-
/** Some choices could not be issued within this reading's shared control/value bounds. */
|
|
96
|
-
readonly optionsTruncated: Schema.optionalKey<Schema.Boolean>;
|
|
97
|
-
}>, {}>;
|
|
98
|
-
declare class ObservedControl extends ObservedControl_base {}
|
|
99
|
-
/**
|
|
100
|
-
* The read frame's root document scroll geometry, sampled in CSS pixels with the reading.
|
|
101
|
-
* Offsets can be negative (for example RTL); dimensions are the scrolling element's measured
|
|
102
|
-
* scrollWidth/Height and clientWidth/Height. They do not describe a nested scrolling container
|
|
103
|
-
* or expose unseen text, and do not establish a scroll direction or an end-of-document condition.
|
|
104
|
-
*/
|
|
105
|
-
declare const DocumentScroll: Schema.Struct<{
|
|
106
|
-
readonly x: Schema.Finite;
|
|
107
|
-
readonly y: Schema.Finite;
|
|
108
|
-
readonly scrollWidth: Schema.Natural;
|
|
109
|
-
readonly scrollHeight: Schema.Natural;
|
|
110
|
-
readonly clientWidth: Schema.Natural;
|
|
111
|
-
readonly clientHeight: Schema.Natural;
|
|
112
|
-
}>;
|
|
113
|
-
type DocumentScroll = typeof DocumentScroll.Type;
|
|
114
|
-
declare const ViewportEvidence_base: Schema.Class<ViewportEvidence, Schema.Struct<{
|
|
115
|
-
readonly width: Schema.Finite;
|
|
116
|
-
readonly height: Schema.Finite;
|
|
117
|
-
/** Absent when the document has no scrolling element, or in older/scripted readings. */
|
|
118
|
-
readonly documentScroll: Schema.optionalKey<Schema.Struct<{
|
|
119
|
-
readonly x: Schema.Finite;
|
|
120
|
-
readonly y: Schema.Finite;
|
|
121
|
-
readonly scrollWidth: Schema.Natural;
|
|
122
|
-
readonly scrollHeight: Schema.Natural;
|
|
123
|
-
readonly clientWidth: Schema.Natural;
|
|
124
|
-
readonly clientHeight: Schema.Natural;
|
|
125
|
-
}>>;
|
|
126
|
-
/** Text that crossed a viewport edge; only its lines on screen were kept. */
|
|
127
|
-
readonly clippedText: Schema.Natural;
|
|
128
|
-
/** Left out: another element is on top at the sampled point, or a box there paints over it. */
|
|
129
|
-
readonly coveredText: Schema.Natural;
|
|
130
|
-
/**
|
|
131
|
-
* Left out: something that takes no pointer events lies over it and the browser's own hit test
|
|
132
|
-
* could not settle whether it paints there, for example beneath another such box, in a child
|
|
133
|
-
* frame, or after too many such points in one reading.
|
|
134
|
-
*/
|
|
135
|
-
readonly uncertainText: Schema.Natural;
|
|
136
|
-
/** Controls that intersect the viewport but cannot be reached there. */
|
|
137
|
-
readonly unreachableControls: Schema.Natural;
|
|
138
|
-
/** The traversal budget ran out first, so this reading is known to be incomplete. */
|
|
139
|
-
readonly exhausted: Schema.Boolean;
|
|
140
|
-
}>, {}>;
|
|
141
|
-
/**
|
|
142
|
-
* How a viewport reading was bounded, what it left out, and its document scroll geometry. These
|
|
143
|
-
* counts and measured layout facts can be shown to a model. Visibility is geometry and
|
|
144
|
-
* hit-testing, never a pixel comparison: text is
|
|
145
|
-
* kept when its line boxes intersect the viewport and the browser finds its own element at a
|
|
146
|
-
* sampled point. Something that takes no pointer events is invisible to that test, so the
|
|
147
|
-
* browser is asked what is on top there with pointer events ignored: a box that paints at the
|
|
148
|
-
* point covers the text, and one that paints nothing there, such as an empty full-screen
|
|
149
|
-
* container, does not. Text that could not be settled that way is left out as uncertain.
|
|
150
|
-
*/
|
|
151
|
-
declare class ViewportEvidence extends ViewportEvidence_base {}
|
|
152
|
-
/**
|
|
153
|
-
* Case-insensitive text a reading keeps. It is applied inside the page before any limit, so
|
|
154
|
-
* matching controls are not crowded out by earlier ones. It filters what is read; it never
|
|
155
|
-
* searches for, re-finds or substitutes a node.
|
|
156
|
-
*/
|
|
157
|
-
declare const ReadingMatch: Schema.String;
|
|
158
|
-
declare const Observation_base: Schema.Class<Observation, Schema.Struct<{
|
|
159
|
-
readonly target: typeof Target;
|
|
160
|
-
readonly observationId: Schema.NonEmptyString;
|
|
161
|
-
readonly revision: Schema.Natural;
|
|
162
|
-
readonly scope: Schema.Literals<readonly ["document", "viewport"]>;
|
|
163
|
-
readonly match: Schema.optionalKey<Schema.String>;
|
|
164
|
-
readonly url: Schema.String;
|
|
165
|
-
readonly text: Schema.String;
|
|
166
|
-
readonly controls: Schema.$Array<typeof ObservedControl>;
|
|
167
|
-
readonly controlsTruncated: Schema.Boolean;
|
|
168
|
-
readonly textTruncated: Schema.Boolean;
|
|
169
|
-
readonly viewport: typeof ViewportEvidence;
|
|
170
|
-
}>, {}>;
|
|
171
|
-
/**
|
|
172
|
-
* Revision is admission fencing, not a claim of a complete DOM version or atomic snapshot. A
|
|
173
|
-
* `viewport` reading holds what is on screen and reachable, plus the bounded choices of its
|
|
174
|
-
* native selects. Those choices are not a claim that a closed dropdown's rows were visible.
|
|
175
|
-
* A `document` reading is the whole body, wherever it is. A reading with `match` keeps only
|
|
176
|
-
* matching text lines and controls, so what it leaves out is not evidence of absence. Nothing
|
|
177
|
-
* here carries a destination, a form or a field value.
|
|
178
|
-
*/
|
|
179
|
-
declare class Observation extends Observation_base {}
|
|
180
|
-
declare const ObservedElement_base: Schema.Class<ObservedElement, Schema.Struct<{
|
|
181
|
-
readonly observationId: Schema.NonEmptyString;
|
|
182
|
-
readonly elementId: Schema.NonEmptyString;
|
|
183
|
-
}>, {}>;
|
|
184
|
-
declare class ObservedElement extends ObservedElement_base {}
|
|
185
|
-
declare const WaitForElementRequest_base: Schema.Class<WaitForElementRequest, Schema.Struct<{
|
|
186
|
-
readonly reference: typeof ObservedElement;
|
|
187
|
-
readonly state: Schema.Literals<readonly ["visible", "hidden", "enabled", "disabled"]>;
|
|
188
|
-
readonly timeoutMillis: Schema.optionalKey<Schema.Int>;
|
|
189
|
-
}>, {}>;
|
|
190
|
-
/** Observe a condition of this exact node. A replacement never satisfies the reference. */
|
|
191
|
-
declare class WaitForElementRequest extends WaitForElementRequest_base {}
|
|
192
|
-
/** Issued option element IDs from one observed native select; never values, labels or indices. */
|
|
193
|
-
declare const SelectOptions: Schema.$Array<Schema.NonEmptyString>;
|
|
194
|
-
type SelectOptions = typeof SelectOptions.Type;
|
|
195
|
-
declare const PageSuspension_base: Schema.Class<PageSuspension, Schema.Struct<{
|
|
196
|
-
readonly pageId: Schema.NonEmptyString;
|
|
197
|
-
readonly targetId: Schema.NonEmptyString;
|
|
198
|
-
readonly suspensionId: Schema.NonEmptyString;
|
|
199
|
-
}>, {}>;
|
|
200
|
-
/** Live, connection-owned receipt. It is not a durable promise that remote clocks remain held. */
|
|
201
|
-
declare class PageSuspension extends PageSuspension_base {}
|
|
202
|
-
declare const PageExecutionState_base: Schema.Class<PageExecutionState, Schema.Struct<{
|
|
203
|
-
readonly pageId: Schema.NonEmptyString;
|
|
204
|
-
readonly targetId: Schema.NonEmptyString;
|
|
205
|
-
readonly state: Schema.Literals<readonly ["running", "suspended", "unknown"]>;
|
|
206
|
-
readonly suspensionId: Schema.optionalKey<Schema.NonEmptyString>;
|
|
207
|
-
}>, {}>;
|
|
208
|
-
declare class PageExecutionState extends PageExecutionState_base {}
|
|
209
|
-
declare const BrowserPolicy_base: Schema.Class<BrowserPolicy, Schema.Struct<{
|
|
210
|
-
readonly network: Schema.TaggedStruct<"Unrestricted", {}>;
|
|
211
|
-
/** Model-reachable actions for the session's lifetime, 1–1,000,000. `status.actions` reads use. */
|
|
212
|
-
readonly maxActions: Schema.Int;
|
|
213
|
-
readonly maxElapsedMillis: Schema.Int;
|
|
214
|
-
readonly maxReturnedBytes: Schema.Int;
|
|
215
|
-
}>, {}>;
|
|
216
|
-
/** Explicit opt-out: this integration does not claim whole-browser network containment. */
|
|
217
|
-
declare class BrowserPolicy extends BrowserPolicy_base {
|
|
218
|
-
/**
|
|
219
|
-
* Conservative bounds for trusted host code: 100 actions, five minutes, 2 MiB returned.
|
|
220
|
-
* The network choice is spelled out in the name because this runtime cannot prove a
|
|
221
|
-
* narrower one; override any bound, never the network. A long session raises `maxActions`
|
|
222
|
-
* (up to 1,000,000) and `maxElapsedMillis` (up to six hours) together.
|
|
223
|
-
*/
|
|
224
|
-
static unrestricted(bounds?: Partial<Pick<BrowserPolicy, "maxActions" | "maxElapsedMillis" | "maxReturnedBytes">>): BrowserPolicy;
|
|
225
|
-
}
|
|
226
|
-
declare const TargetUrl: Schema.NonEmptyString;
|
|
227
|
-
declare const Selector: Schema.NonEmptyString;
|
|
228
|
-
declare const NavigateRequest_base: Schema.Class<NavigateRequest, Schema.Struct<{
|
|
229
|
-
readonly url: Schema.NonEmptyString;
|
|
230
|
-
readonly timeoutMillis: Schema.optionalKey<Schema.Int>;
|
|
231
|
-
}>, {}>;
|
|
232
|
-
declare class NavigateRequest extends NavigateRequest_base {}
|
|
233
|
-
declare const StartNavigationRequest_base: Schema.Class<StartNavigationRequest, Schema.Struct<{
|
|
234
|
-
readonly url: Schema.NonEmptyString;
|
|
235
|
-
readonly timeoutMillis: Schema.optionalKey<Schema.Int>;
|
|
236
|
-
}>, {}>;
|
|
237
|
-
/**
|
|
238
|
-
* A navigation left in flight. `timeoutMillis` is how long the browser may take to reach
|
|
239
|
-
* DOMContentLoaded; omitted, it is the action timeout, as it is for `navigate`.
|
|
240
|
-
*/
|
|
241
|
-
declare class StartNavigationRequest extends StartNavigationRequest_base {}
|
|
242
|
-
declare const ReadTextRequest_base: Schema.Class<ReadTextRequest, Schema.Struct<{
|
|
243
|
-
readonly selector: Schema.optionalKey<Schema.NonEmptyString>;
|
|
244
|
-
}>, {}>;
|
|
245
|
-
declare class ReadTextRequest extends ReadTextRequest_base {}
|
|
246
|
-
declare const ClickRequest_base: Schema.Class<ClickRequest, Schema.Struct<{
|
|
247
|
-
readonly selector: Schema.NonEmptyString;
|
|
248
|
-
}>, {}>;
|
|
249
|
-
declare class ClickRequest extends ClickRequest_base {}
|
|
250
|
-
declare const FillRequest_base: Schema.Class<FillRequest, Schema.Struct<{
|
|
251
|
-
readonly selector: Schema.NonEmptyString;
|
|
252
|
-
readonly value: Schema.String;
|
|
253
|
-
}>, {}>;
|
|
254
|
-
declare class FillRequest extends FillRequest_base {}
|
|
255
|
-
/**
|
|
256
|
-
* One observed control and the one state a form gives it: replacement text, the checked state a
|
|
257
|
-
* checkbox, radio or switch should end in (it is clicked only when it differs, and a native radio
|
|
258
|
-
* is never asked to clear itself), or issued option IDs of a native select from the same
|
|
259
|
-
* observation.
|
|
260
|
-
*/
|
|
261
|
-
declare const FormField: Schema.Struct<{
|
|
262
|
-
readonly elementId: Schema.NonEmptyString;
|
|
263
|
-
readonly value: Schema.optionalKey<Schema.String>;
|
|
264
|
-
readonly checked: Schema.optionalKey<Schema.Boolean>;
|
|
265
|
-
readonly options: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
266
|
-
}>;
|
|
267
|
-
type FormField = typeof FormField.Type;
|
|
268
|
-
declare const FillFormRequest_base: Schema.Class<FillFormRequest, Schema.Struct<{
|
|
269
|
-
readonly observationId: Schema.NonEmptyString;
|
|
270
|
-
readonly fields: Schema.$Array<Schema.Struct<{
|
|
271
|
-
readonly elementId: Schema.NonEmptyString;
|
|
272
|
-
readonly value: Schema.optionalKey<Schema.String>;
|
|
273
|
-
readonly checked: Schema.optionalKey<Schema.Boolean>;
|
|
274
|
-
readonly options: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
|
|
275
|
-
}>>;
|
|
276
|
-
readonly submit: Schema.optionalKey<Schema.NonEmptyString>;
|
|
277
|
-
}>, {}>;
|
|
278
|
-
/** At most 32 distinct fields, and a submit control that is not one of them. */
|
|
279
|
-
declare class FillFormRequest extends FillFormRequest_base {}
|
|
280
|
-
/**
|
|
281
|
-
* Host choices about how a form proceeds. `verify` (default true) re-reads every field before
|
|
282
|
-
* submit and stops when one no longer holds what its own step left there. `settleMillis`
|
|
283
|
-
* (default 50, at most 5000; 0 skips it) is how long each dispatched step lets the page's own
|
|
284
|
-
* handlers run, after at least two rendered frames, before its result is read back.
|
|
285
|
-
*/
|
|
286
|
-
declare const FillFormOptions: Schema.Struct<{
|
|
287
|
-
readonly verify: Schema.optionalKey<Schema.Boolean>;
|
|
288
|
-
readonly settleMillis: Schema.optionalKey<Schema.Int>;
|
|
289
|
-
}>;
|
|
290
|
-
type FillFormOptions = typeof FillFormOptions.Type;
|
|
291
|
-
declare const FormStop_base: Schema.Class<FormStop, Schema.Struct<{
|
|
292
|
-
readonly stage: Schema.Literals<readonly ["field", "verify", "submit"]>;
|
|
293
|
-
readonly elementId: Schema.optionalKey<Schema.NonEmptyString>;
|
|
294
|
-
readonly error: typeof BrowserError;
|
|
295
|
-
}>, {}>;
|
|
296
|
-
/**
|
|
297
|
-
* Where a form stopped and why. `error.outcome` says whether this step itself was dispatched;
|
|
298
|
-
* nothing after it was. `elementId` names the control it stopped at, when there is one: a
|
|
299
|
-
* verification that could not read the form at all names none.
|
|
300
|
-
*/
|
|
301
|
-
declare class FormStop extends FormStop_base {}
|
|
302
|
-
declare const ScrollRequest_base: Schema.Class<ScrollRequest, Schema.Struct<{
|
|
303
|
-
readonly deltaX: Schema.Int;
|
|
304
|
-
readonly deltaY: Schema.Int;
|
|
305
|
-
}>, {}>;
|
|
306
|
-
/**
|
|
307
|
-
* What a form did, in order. `stopped` is present when it did not finish: the fields before it
|
|
308
|
-
* stay set, because a form is not a transaction. `submitted` is true only when the submit click
|
|
309
|
-
* completed; a stop at `submit` with an `unknown` outcome may have sent it.
|
|
310
|
-
*/
|
|
311
|
-
declare class ScrollRequest extends ScrollRequest_base {}
|
|
312
|
-
declare const ViewportPoint_base: Schema.Class<ViewportPoint, Schema.Struct<{
|
|
313
|
-
readonly x: Schema.Finite;
|
|
314
|
-
readonly y: Schema.Finite;
|
|
315
|
-
}>, {}>;
|
|
316
|
-
/**
|
|
317
|
-
* CSS pixels in the main frame's viewport, the space Chromium dispatches pointer input in. It
|
|
318
|
-
* is not a document offset, a device pixel, or a coordinate inside a child frame.
|
|
319
|
-
*/
|
|
320
|
-
declare class ViewportPoint extends ViewportPoint_base {}
|
|
321
|
-
declare const ViewportRect_base: Schema.Class<ViewportRect, Schema.Struct<{
|
|
322
|
-
readonly x: Schema.Finite;
|
|
323
|
-
readonly y: Schema.Finite;
|
|
324
|
-
readonly width: Schema.Finite;
|
|
325
|
-
readonly height: Schema.Finite;
|
|
326
|
-
}>, {}>;
|
|
327
|
-
/** A box in the viewport of the frame it was read from, in CSS pixels. */
|
|
328
|
-
declare class ViewportRect extends ViewportRect_base {}
|
|
329
|
-
declare const ControlFacts_base: Schema.Class<ControlFacts, Schema.Struct<{
|
|
330
|
-
readonly kind: Schema.Literals<readonly ["link", "button", "input", "select", "textarea", "other"]>;
|
|
331
|
-
readonly label: Schema.String;
|
|
332
|
-
readonly disabled: Schema.Boolean;
|
|
333
|
-
readonly checked: Schema.optionalKey<Schema.Boolean>;
|
|
334
|
-
readonly selected: Schema.optionalKey<Schema.Boolean>;
|
|
335
|
-
readonly required: Schema.optionalKey<Schema.Boolean>;
|
|
336
|
-
readonly multiple: Schema.optionalKey<Schema.Boolean>;
|
|
337
|
-
readonly editable: Schema.Boolean;
|
|
338
|
-
readonly inputType: Schema.optionalKey<Schema.String>;
|
|
339
|
-
readonly autocomplete: Schema.optionalKey<Schema.String>;
|
|
340
|
-
/** A resolved link target, or where this control submits its form. Absent when over-long. */
|
|
341
|
-
readonly destination: Schema.optionalKey<Schema.String>;
|
|
342
|
-
readonly formMethod: Schema.optionalKey<Schema.Literals<readonly ["get", "post", "dialog"]>>;
|
|
343
|
-
readonly box: typeof ViewportRect;
|
|
344
|
-
readonly placement: Schema.Literals<readonly ["inside", "partial", "outside"]>;
|
|
345
|
-
/** `self`: the browser finds this control at its visible centre. Not a pixel comparison. */
|
|
346
|
-
readonly hitTest: Schema.Literals<readonly ["self", "covered", "uncertain", "unsampled"]>;
|
|
347
|
-
/** Only then is `box` in the main frame's viewport, the space pointer input uses. */
|
|
348
|
-
readonly mainFrame: Schema.Boolean;
|
|
349
|
-
}>, {}>;
|
|
350
|
-
/**
|
|
351
|
-
* What a host needs to decide whether a control may be acted on. Host-only: a destination can
|
|
352
|
-
* carry a token, so none of this is part of the model-facing `Observation`. It never includes a
|
|
353
|
-
* field's value or any markup.
|
|
354
|
-
*/
|
|
355
|
-
declare class ControlFacts extends ControlFacts_base {}
|
|
356
|
-
declare const Checkpoint_base: Schema.Class<Checkpoint, Schema.Struct<{
|
|
357
|
-
readonly target: typeof Target;
|
|
358
|
-
readonly revision: Schema.Natural;
|
|
359
|
-
readonly url: Schema.String;
|
|
360
|
-
readonly text: Schema.String;
|
|
361
|
-
readonly textTruncated: Schema.Boolean;
|
|
362
|
-
readonly controls: Schema.$Array<typeof ControlFacts>;
|
|
363
|
-
readonly controlsTruncated: Schema.Boolean;
|
|
364
|
-
readonly viewport: typeof ViewportEvidence;
|
|
365
|
-
readonly picture: Schema.optionalKey<Schema.Struct<{
|
|
366
|
-
readonly mediaType: Schema.Literal<"image/png">;
|
|
367
|
-
readonly bytes: Schema.Uint8Array;
|
|
368
|
-
}>>;
|
|
369
|
-
readonly documentChanged: Schema.Boolean;
|
|
370
|
-
readonly startedMonotonicNanos: Schema.BigInt;
|
|
371
|
-
readonly completedMonotonicNanos: Schema.BigInt;
|
|
372
|
-
}>, {}>;
|
|
373
|
-
/**
|
|
374
|
-
* Passive evidence for a recorder: what was on screen, and optionally a picture of it. It issues
|
|
375
|
-
* no element references and never replaces the observation an agent's tools act on, so
|
|
376
|
-
* inspecting, checkpointing and then acting on the inspected node all compose.
|
|
377
|
-
*
|
|
378
|
-
* It is host-only, because it carries control facts. Text and picture are read one after the
|
|
379
|
-
* other, never atomically: the interval says when, and `documentChanged` says the document was
|
|
380
|
-
* replaced in between, so the two may describe different documents.
|
|
381
|
-
*/
|
|
382
|
-
declare class Checkpoint extends Checkpoint_base {}
|
|
383
|
-
/** Omitted bounds default at admission; `scope` defaults to the whole document. */
|
|
384
|
-
declare const ObservationOptions: Schema.Struct<{
|
|
385
|
-
readonly maxTextBytes: Schema.optionalKey<Schema.Int>;
|
|
386
|
-
readonly maxControls: Schema.optionalKey<Schema.Int>;
|
|
387
|
-
readonly scope: Schema.optionalKey<Schema.Literals<readonly ["document", "viewport"]>>;
|
|
388
|
-
readonly match: Schema.optionalKey<Schema.String>;
|
|
389
|
-
}>;
|
|
390
|
-
type ObservationOptions = typeof ObservationOptions.Type;
|
|
391
|
-
/** A checkpoint always reads the viewport. `picture` adds a PNG of it, within the byte policy. */
|
|
392
|
-
declare const CheckpointOptions: Schema.Struct<{
|
|
393
|
-
readonly maxTextBytes: Schema.optionalKey<Schema.Int>;
|
|
394
|
-
readonly maxControls: Schema.optionalKey<Schema.Int>;
|
|
395
|
-
readonly picture: Schema.optionalKey<Schema.Boolean>;
|
|
396
|
-
}>;
|
|
397
|
-
type CheckpointOptions = typeof CheckpointOptions.Type;
|
|
398
|
-
declare const PointerMoveRequest_base: Schema.Class<PointerMoveRequest, Schema.Struct<{
|
|
399
|
-
readonly to: typeof ViewportPoint;
|
|
400
|
-
}>, {}>;
|
|
401
|
-
/** One native pointer move. Easing and pacing are the caller's: send the points you want. */
|
|
402
|
-
declare class PointerMoveRequest extends PointerMoveRequest_base {}
|
|
403
|
-
declare const HoverRequest_base: Schema.Class<HoverRequest, Schema.Struct<{
|
|
404
|
-
readonly selector: Schema.NonEmptyString;
|
|
405
|
-
}>, {}>;
|
|
406
|
-
/** Moves the pointer onto one exact element where it is. It never scrolls to reach it. */
|
|
407
|
-
declare class HoverRequest extends HoverRequest_base {}
|
|
408
|
-
declare const WheelRequest_base: Schema.Class<WheelRequest, Schema.Struct<{
|
|
409
|
-
readonly deltaX: Schema.Finite;
|
|
410
|
-
readonly deltaY: Schema.Finite;
|
|
411
|
-
readonly at: Schema.optionalKey<typeof ViewportPoint>;
|
|
412
|
-
}>, {}>;
|
|
413
|
-
/**
|
|
414
|
-
* One native wheel event where the pointer is, or at `at` after moving there first. The browser
|
|
415
|
-
* chooses what scrolls, exactly as it would for a person, so a nested scroll container under
|
|
416
|
-
* the pointer scrolls instead of the page.
|
|
417
|
-
*/
|
|
418
|
-
declare class WheelRequest extends WheelRequest_base {}
|
|
419
|
-
/**
|
|
420
|
-
* The keys a `press` may name, spelled as the `KeyboardEvent.key` the page will see. The set is
|
|
421
|
-
* closed on purpose: a key name is parsed by the native engine, so none reaches it unreviewed.
|
|
422
|
-
*/
|
|
423
|
-
declare const NamedKey: Schema.Literals<readonly ["Enter", "Tab", "Backspace", "Delete", "Escape", "ArrowLeft", "ArrowRight", "ArrowUp", "ArrowDown", "Home", "End", "PageUp", "PageDown"]>;
|
|
424
|
-
type NamedKey = typeof NamedKey.Type;
|
|
425
|
-
declare const KeyModifier: Schema.Literals<readonly ["Shift", "Control", "Alt", "Meta"]>;
|
|
426
|
-
type KeyModifier = typeof KeyModifier.Type;
|
|
427
|
-
/** One key, down then up, with any modifiers held around it. */
|
|
428
|
-
declare const KeyStroke: Schema.Struct<{
|
|
429
|
-
readonly key: Schema.Union<readonly [Schema.Literals<readonly ["Enter", "Tab", "Backspace", "Delete", "Escape", "ArrowLeft", "ArrowRight", "ArrowUp", "ArrowDown", "Home", "End", "PageUp", "PageDown"]>, Schema.String]>;
|
|
430
|
-
readonly modifiers: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["Shift", "Control", "Alt", "Meta"]>>>;
|
|
431
|
-
}>;
|
|
432
|
-
type KeyStroke = typeof KeyStroke.Type;
|
|
433
|
-
declare const PressRequest_base: Schema.Class<PressRequest, Schema.Struct<{
|
|
434
|
-
readonly key: Schema.Union<readonly [Schema.Literals<readonly ["Enter", "Tab", "Backspace", "Delete", "Escape", "ArrowLeft", "ArrowRight", "ArrowUp", "ArrowDown", "Home", "End", "PageUp", "PageDown"]>, Schema.String]>;
|
|
435
|
-
readonly modifiers: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["Shift", "Control", "Alt", "Meta"]>>>;
|
|
436
|
-
readonly into: Schema.optionalKey<Schema.NonEmptyString>;
|
|
437
|
-
}>, {}>;
|
|
438
|
-
/**
|
|
439
|
-
* One real key stroke. It goes to whatever has focus in the page, exactly as it would for a
|
|
440
|
-
* person, unless `into` names the one element that must already have it. It never focuses that
|
|
441
|
-
* element, because that would hide a scripted focus inside a native-input operation: click it
|
|
442
|
-
* first.
|
|
443
|
-
*/
|
|
444
|
-
declare class PressRequest extends PressRequest_base {}
|
|
445
|
-
declare const TypeRequest_base: Schema.Class<TypeRequest, Schema.Struct<{
|
|
446
|
-
readonly text: Schema.NonEmptyString;
|
|
447
|
-
readonly into: Schema.optionalKey<Schema.NonEmptyString>;
|
|
448
|
-
}>, {}>;
|
|
449
|
-
/**
|
|
450
|
-
* Text as the real key strokes that produce it, with ordered native commands submitted in
|
|
451
|
-
* bounded windows under a single action timeout. An interrupted run is never replayed.
|
|
452
|
-
* A character the US layout cannot produce is inserted as text, as an input method commits it,
|
|
453
|
-
* and raises no key events. Control characters are refused, so a line break can never press
|
|
454
|
-
* Enter from inside a run of text: a named key is always its own `press`. `into` works as it
|
|
455
|
-
* does for `PressRequest`: a guard on where the text lands, never a focus. The exact node is
|
|
456
|
-
* checked before subsequent windows; already submitted input cannot be recalled on focus loss.
|
|
457
|
-
*/
|
|
458
|
-
declare class TypeRequest extends TypeRequest_base {}
|
|
459
|
-
declare const InputReceipt_base: Schema.Class<InputReceipt, Schema.Struct<{
|
|
460
|
-
readonly target: typeof Target;
|
|
461
|
-
readonly kind: Schema.Literals<readonly ["pointer-move", "hover", "wheel", "click", "press", "type"]>;
|
|
462
|
-
readonly position: Schema.NullOr<typeof ViewportPoint>;
|
|
463
|
-
readonly intended: Schema.optionalKey<Schema.Struct<{
|
|
464
|
-
readonly position: typeof ViewportPoint;
|
|
465
|
-
readonly relativePosition: typeof ViewportPoint;
|
|
466
|
-
readonly qualification: Schema.Literal<"checked-exact-node-sample">;
|
|
467
|
-
}>>;
|
|
468
|
-
readonly delta: Schema.optionalKey<Schema.Struct<{
|
|
469
|
-
readonly x: Schema.Finite;
|
|
470
|
-
readonly y: Schema.Finite;
|
|
471
|
-
}>>;
|
|
472
|
-
readonly startedMonotonicNanos: Schema.BigInt;
|
|
473
|
-
readonly completedMonotonicNanos: Schema.BigInt;
|
|
474
|
-
}>, {}>;
|
|
475
|
-
/**
|
|
476
|
-
* What native input was dispatched, where and when. `position` is the point this owner
|
|
477
|
-
* commanded, null before it has placed the pointer, or unknown when Playwright chose the click
|
|
478
|
-
* point internally. For clicks, the interval brackets Playwright's supported click call, which
|
|
479
|
-
* can include its actionability and navigation waits; the browser's exact dispatch instant is
|
|
480
|
-
* unavailable. The interval is on the host monotonic clock that stamps
|
|
481
|
-
* `CapturedFrame.receivedMonotonicNanos`, so input and
|
|
482
|
-
* pixels share one timeline. A wheel event is dispatched, not awaited: the receipt does not
|
|
483
|
-
* claim the page finished scrolling, or that any frame shows it. A receipt never says which
|
|
484
|
-
* key was pressed or what was typed.
|
|
485
|
-
*/
|
|
486
|
-
declare class InputReceipt extends InputReceipt_base {}
|
|
487
|
-
declare const FormFieldResult_base: Schema.Class<FormFieldResult, Schema.Struct<{
|
|
488
|
-
readonly elementId: Schema.NonEmptyString;
|
|
489
|
-
readonly status: Schema.Literals<readonly ["set", "unchanged"]>;
|
|
490
|
-
readonly input: Schema.optionalKey<typeof InputReceipt>;
|
|
491
|
-
}>, {}>;
|
|
492
|
-
/** `set` dispatched input; `unchanged` needed none, because a toggle already held its state. */
|
|
493
|
-
declare class FormFieldResult extends FormFieldResult_base {}
|
|
494
|
-
declare const FillFormResult_base: Schema.Class<FillFormResult, Schema.Struct<{
|
|
495
|
-
readonly fields: Schema.$Array<typeof FormFieldResult>;
|
|
496
|
-
readonly submitted: Schema.Boolean;
|
|
497
|
-
readonly url: Schema.NonEmptyString;
|
|
498
|
-
readonly submitInput: Schema.optionalKey<typeof InputReceipt>;
|
|
499
|
-
readonly stopped: Schema.optionalKey<typeof FormStop>;
|
|
500
|
-
}>, {}>;
|
|
501
|
-
/** The bounded receipts for any toggle clicks and the one optional submit click. */
|
|
502
|
-
declare class FillFormResult extends FillFormResult_base {}
|
|
503
|
-
declare const ScreenshotRequest_base: Schema.Class<ScreenshotRequest, Schema.Struct<{
|
|
504
|
-
readonly fullPage: Schema.Boolean;
|
|
505
|
-
}>, {}>;
|
|
506
|
-
declare class ScreenshotRequest extends ScreenshotRequest_base {}
|
|
507
|
-
declare const NavigationResult_base: Schema.Class<NavigationResult, Schema.Struct<{
|
|
508
|
-
readonly url: Schema.NonEmptyString;
|
|
509
|
-
}>, {}>;
|
|
510
|
-
declare class NavigationResult extends NavigationResult_base {}
|
|
511
|
-
declare const ActionResult_base: Schema.Class<ActionResult, Schema.Struct<{
|
|
512
|
-
readonly url: Schema.NonEmptyString;
|
|
513
|
-
/** Present for clicks; fill and scripted scroll results have no native input receipt. */
|
|
514
|
-
readonly input: Schema.optionalKey<typeof InputReceipt>;
|
|
515
|
-
}>, {}>;
|
|
516
|
-
declare class ActionResult extends ActionResult_base {}
|
|
517
|
-
declare const TextResult_base: Schema.Class<TextResult, Schema.Struct<{
|
|
518
|
-
readonly text: Schema.String;
|
|
519
|
-
}>, {}>;
|
|
520
|
-
declare class TextResult extends TextResult_base {}
|
|
521
|
-
declare const ScreenshotResult_base: Schema.Class<ScreenshotResult, Schema.Struct<{
|
|
522
|
-
readonly mediaType: Schema.Literal<"image/png">;
|
|
523
|
-
readonly bytes: Schema.Uint8Array;
|
|
524
|
-
}>, {}>;
|
|
525
|
-
declare class ScreenshotResult extends ScreenshotResult_base {}
|
|
526
|
-
declare const InlineFile_base: Schema.Class<InlineFile, Schema.Struct<{
|
|
527
|
-
readonly name: Schema.NonEmptyString;
|
|
528
|
-
readonly mediaType: Schema.NonEmptyString;
|
|
529
|
-
readonly bytes: Schema.Uint8Array;
|
|
530
|
-
}>, {}>;
|
|
531
|
-
/** Small selection is in-memory by design: bytes the caller already holds, never a path. */
|
|
532
|
-
declare class InlineFile extends InlineFile_base {}
|
|
533
|
-
declare const InlineFiles: Schema.$Array<typeof InlineFile>;
|
|
534
|
-
declare const AdmissionLimits: Schema.Struct<{
|
|
535
|
-
readonly pendingPerPage: Schema.optionalKey<Schema.Int>;
|
|
536
|
-
readonly pendingPerSession: Schema.optionalKey<Schema.Int>;
|
|
537
|
-
}>;
|
|
538
|
-
type AdmissionLimits = typeof AdmissionLimits.Type;
|
|
539
|
-
/** Finite metadata retention and subscriber resources; native capture bytes have separate limits. */
|
|
540
|
-
declare const TimelineLimits: Schema.Struct<{
|
|
541
|
-
readonly maxDurationMillis: Schema.optionalKey<Schema.Int>;
|
|
542
|
-
readonly maxEvents: Schema.optionalKey<Schema.Int>;
|
|
543
|
-
readonly maxBytes: Schema.optionalKey<Schema.Int>;
|
|
544
|
-
readonly maxSubscribers: Schema.optionalKey<Schema.Int>;
|
|
545
|
-
readonly maxEventBytes: Schema.optionalKey<Schema.Int>;
|
|
546
|
-
}>;
|
|
547
|
-
type TimelineLimits = typeof TimelineLimits.Type;
|
|
548
|
-
declare const AutomationOptions: Schema.Struct<{
|
|
549
|
-
readonly timelineLimits: Schema.optionalKey<Schema.Struct<{
|
|
550
|
-
readonly maxDurationMillis: Schema.optionalKey<Schema.Int>;
|
|
551
|
-
readonly maxEvents: Schema.optionalKey<Schema.Int>;
|
|
552
|
-
readonly maxBytes: Schema.optionalKey<Schema.Int>;
|
|
553
|
-
readonly maxSubscribers: Schema.optionalKey<Schema.Int>;
|
|
554
|
-
readonly maxEventBytes: Schema.optionalKey<Schema.Int>;
|
|
555
|
-
}>>;
|
|
556
|
-
readonly admissionLimits: Schema.optionalKey<Schema.Struct<{
|
|
557
|
-
readonly pendingPerPage: Schema.optionalKey<Schema.Int>;
|
|
558
|
-
readonly pendingPerSession: Schema.optionalKey<Schema.Int>;
|
|
559
|
-
}>>;
|
|
560
|
-
readonly observationLimits: Schema.optionalKey<Schema.Struct<{
|
|
561
|
-
readonly maxSnapshotsPerPage: Schema.Int;
|
|
562
|
-
readonly maxSnapshotsPerSession: Schema.Int;
|
|
563
|
-
readonly maxHandlesPerPage: Schema.Int;
|
|
564
|
-
readonly maxHandlesPerSession: Schema.Int;
|
|
565
|
-
readonly maxBytesPerPage: Schema.Int;
|
|
566
|
-
readonly maxBytesPerSession: Schema.Int;
|
|
567
|
-
}>>;
|
|
568
|
-
readonly actionTimeoutMillis: Schema.optionalKey<Schema.Int>;
|
|
569
|
-
/** Independent host-only checkpoint/control-facts allowance; normalized to 10,000 by the runtime. */
|
|
570
|
-
readonly maxHostReads: Schema.optionalKey<Schema.Int>;
|
|
571
|
-
readonly maxPages: Schema.optionalKey<Schema.Int>;
|
|
572
|
-
readonly initialPage: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
573
|
-
readonly targetId: Schema.NonEmptyString;
|
|
574
|
-
}>, Schema.Struct<{
|
|
575
|
-
readonly newPage: Schema.Literal<true>;
|
|
576
|
-
}>]>>;
|
|
577
|
-
readonly popupPolicy: Schema.optionalKey<Schema.Literals<readonly ["retain", "close", "pause"]>>;
|
|
578
|
-
readonly dialogPolicy: Schema.optionalKey<Schema.Literals<readonly ["dismiss", "pause"]>>;
|
|
579
|
-
readonly pageControl: Schema.optionalKey<Schema.Boolean>;
|
|
580
|
-
}>;
|
|
581
|
-
type AutomationOptions = typeof AutomationOptions.Type;
|
|
582
|
-
//#endregion
|
|
583
|
-
export { Target as $, NavigationResult as A, PressRequest as B, InlineFiles as C, KeyStroke as D, KeyModifier as E, PageExecutionState as F, ScreenshotResult as G, ReadingMatch as H, PageInfo as I, Selector as J, ScrollRequest as K, PageSuspension as L, ObservationOptions as M, ObservedControl as N, NamedKey as O, ObservedElement as P, StartNavigationRequest as Q, PointerMoveRequest as R, InlineFile as S, Inventory as T, SafeFilename as U, ReadTextRequest as V, ScreenshotRequest as W, SessionReason as X, SessionPhase as Y, SessionStatus as Z, FormFieldResult as _, BrowserDiagnostics as a, ViewportEvidence as at, HoverRequest as b, CheckpointOptions as c, WaitForElementRequest as ct, DocumentScroll as d, TargetUrl as et, FillFormOptions as f, FormField as g, FillRequest as h, BrowserDiagnostic as i, Viewport as it, Observation as j, NavigateRequest as k, ClickRequest as l, WheelRequest as lt, FillFormResult as m, AdmissionLimits as n, TimelineLimits as nt, BrowserPolicy as o, ViewportPoint as ot, FillFormRequest as p, SelectOptions as q, AutomationOptions as r, TypeRequest as rt, Checkpoint as s, ViewportRect as st, ActionResult as t, TextResult as tt, ControlFacts as u, FormStop as v, InputReceipt as w, Identifier as x, FrameInfo as y, PositiveInt as z };
|
|
584
|
-
export {};
|
|
585
|
-
//# sourceMappingURL=BrowserData-CPIIIHol.d.mts.map
|
package/dist/BrowserData.d.mts
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { $ as Target, A as NavigationResult, B as PressRequest, C as InlineFiles, D as KeyStroke, E as KeyModifier, F as PageExecutionState, G as ScreenshotResult, H as ReadingMatch, I as PageInfo, J as Selector, K as ScrollRequest, L as PageSuspension, M as ObservationOptions, N as ObservedControl, O as NamedKey, P as ObservedElement, Q as StartNavigationRequest, R as PointerMoveRequest, S as InlineFile, T as Inventory, U as SafeFilename, V as ReadTextRequest, W as ScreenshotRequest, X as SessionReason, Y as SessionPhase, Z as SessionStatus, _ as FormFieldResult, a as BrowserDiagnostics, at as ViewportEvidence, b as HoverRequest, c as CheckpointOptions, ct as WaitForElementRequest, d as DocumentScroll, et as TargetUrl, f as FillFormOptions, g as FormField, h as FillRequest, i as BrowserDiagnostic, it as Viewport, j as Observation, k as NavigateRequest, l as ClickRequest, lt as WheelRequest, m as FillFormResult, n as AdmissionLimits, nt as TimelineLimits, o as BrowserPolicy, ot as ViewportPoint, p as FillFormRequest, q as SelectOptions, r as AutomationOptions, rt as TypeRequest, s as Checkpoint, st as ViewportRect, t as ActionResult, tt as TextResult, u as ControlFacts, v as FormStop, w as InputReceipt, x as Identifier, y as FrameInfo, z as PositiveInt } from "./BrowserData-CPIIIHol.mjs";
|
|
2
|
-
export { ActionResult, AdmissionLimits, AutomationOptions, BrowserDiagnostic, BrowserDiagnostics, BrowserPolicy, Checkpoint, CheckpointOptions, ClickRequest, ControlFacts, DocumentScroll, FillFormOptions, FillFormRequest, FillFormResult, FillRequest, FormField, FormFieldResult, FormStop, FrameInfo, HoverRequest, Identifier, InlineFile, InlineFiles, InputReceipt, Inventory, KeyModifier, KeyStroke, NamedKey, NavigateRequest, NavigationResult, Observation, ObservationOptions, ObservedControl, ObservedElement, PageExecutionState, PageInfo, PageSuspension, PointerMoveRequest, PositiveInt, PressRequest, ReadTextRequest, ReadingMatch, SafeFilename, ScreenshotRequest, ScreenshotResult, ScrollRequest, SelectOptions, Selector, SessionPhase, SessionReason, SessionStatus, StartNavigationRequest, Target, TargetUrl, TextResult, TimelineLimits, TypeRequest, Viewport, ViewportEvidence, ViewportPoint, ViewportRect, WaitForElementRequest, WheelRequest };
|
|
3
|
-
export {};
|