effect-browserbase 0.1.0-beta.102 → 0.2.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (130) hide show
  1. package/README.md +61 -231
  2. package/dist/Account.d.mts +4 -6
  3. package/dist/Account.mjs +4 -9
  4. package/dist/Account.mjs.map +1 -1
  5. package/dist/{Acquisition-WBafHwXH.mjs → Acquisition-D8o4jtCg.mjs} +22 -68
  6. package/dist/Acquisition-D8o4jtCg.mjs.map +1 -0
  7. package/dist/Agents.d.mts +4 -6
  8. package/dist/Agents.mjs +3 -19
  9. package/dist/Agents.mjs.map +1 -1
  10. package/dist/Allocation.d.mts +9 -11
  11. package/dist/Allocation.mjs +2 -4
  12. package/dist/Allocation.mjs.map +1 -1
  13. package/dist/Browser.d.mts +25 -140
  14. package/dist/Browser.mjs +266 -1
  15. package/dist/Browser.mjs.map +1 -0
  16. package/dist/BrowserBinding.d.mts +7 -34
  17. package/dist/BrowserBinding.mjs +30 -1
  18. package/dist/BrowserBinding.mjs.map +1 -0
  19. package/dist/Certificates.d.mts +3 -5
  20. package/dist/Certificates.mjs +2 -7
  21. package/dist/Certificates.mjs.map +1 -1
  22. package/dist/{Cleanup-G2YpTCuU.d.mts → Cleanup-DMTDBir8.d.mts} +5 -6
  23. package/dist/Cleanup.d.mts +3 -2
  24. package/dist/Cleanup.mjs +1 -6
  25. package/dist/Cleanup.mjs.map +1 -1
  26. package/dist/{Client-D1_xYM9o.mjs → Client-BQteUePT.mjs} +2 -4
  27. package/dist/{Client-D1_xYM9o.mjs.map → Client-BQteUePT.mjs.map} +1 -1
  28. package/dist/Client.d.mts +51 -2
  29. package/dist/Client.mjs +1 -1
  30. package/dist/Connection-DcvJZEdc.mjs +65 -0
  31. package/dist/Connection-DcvJZEdc.mjs.map +1 -0
  32. package/dist/ContextCoordination.d.mts +5 -6
  33. package/dist/ContextCoordination.mjs +1 -8
  34. package/dist/ContextCoordination.mjs.map +1 -1
  35. package/dist/Contexts.d.mts +4 -6
  36. package/dist/Contexts.mjs +2 -8
  37. package/dist/Contexts.mjs.map +1 -1
  38. package/dist/Downloads.d.mts +6 -8
  39. package/dist/Downloads.mjs +3 -8
  40. package/dist/Downloads.mjs.map +1 -1
  41. package/dist/Errors.d.mts +3 -26
  42. package/dist/Errors.mjs +1 -137
  43. package/dist/Errors.mjs.map +1 -1
  44. package/dist/{Extensions-ClZbYb1H.mjs → Extensions-nMNMPGCc.mjs} +3 -9
  45. package/dist/{Extensions-ClZbYb1H.mjs.map → Extensions-nMNMPGCc.mjs.map} +1 -1
  46. package/dist/Extensions.d.mts +4 -6
  47. package/dist/Extensions.mjs +1 -1
  48. package/dist/Functions.d.mts +4 -6
  49. package/dist/Functions.mjs +3 -17
  50. package/dist/Functions.mjs.map +1 -1
  51. package/dist/{Launch-BHcAEq05.mjs → Launch-m0fxzJ49.mjs} +5 -5
  52. package/dist/Launch-m0fxzJ49.mjs.map +1 -0
  53. package/dist/Launch.d.mts +130 -2
  54. package/dist/Launch.mjs +4 -11
  55. package/dist/Launch.mjs.map +1 -1
  56. package/dist/PageFetch.d.mts +3 -5
  57. package/dist/PageFetch.mjs +2 -8
  58. package/dist/PageFetch.mjs.map +1 -1
  59. package/dist/Projects.d.mts +3 -5
  60. package/dist/Projects.mjs +2 -8
  61. package/dist/Projects.mjs.map +1 -1
  62. package/dist/Recordings.d.mts +6 -8
  63. package/dist/Recordings.mjs +3 -5
  64. package/dist/Recordings.mjs.map +1 -1
  65. package/dist/{References-URDAtapt.d.mts → References-DOH3Wu44.d.mts} +5 -6
  66. package/dist/References.d.mts +3 -2
  67. package/dist/References.mjs +10 -18
  68. package/dist/References.mjs.map +1 -1
  69. package/dist/Replays.d.mts +6 -8
  70. package/dist/Replays.mjs +3 -5
  71. package/dist/Replays.mjs.map +1 -1
  72. package/dist/Search.d.mts +3 -5
  73. package/dist/Search.mjs +2 -9
  74. package/dist/Search.mjs.map +1 -1
  75. package/dist/{SessionData-DRKcKCqw.d.mts → SessionData-5xYZDshJ.d.mts} +5 -6
  76. package/dist/SessionData.d.mts +3 -2
  77. package/dist/SessionData.mjs +1 -8
  78. package/dist/SessionData.mjs.map +1 -1
  79. package/dist/{Sessions-CtbseWEh.mjs → Sessions-DoQGg9nB.mjs} +34 -18
  80. package/dist/Sessions-DoQGg9nB.mjs.map +1 -0
  81. package/dist/{Sessions-B8E4kMxo.d.mts → Sessions-tFJYaXFq.d.mts} +8 -8
  82. package/dist/Sessions.d.mts +4 -3
  83. package/dist/Sessions.mjs +1 -1
  84. package/dist/{Transfers-Czv5IZzJ.d.mts → Transfers-GVqzrDWl.d.mts} +22 -9
  85. package/dist/Transfers.d.mts +3 -2
  86. package/dist/Transfers.mjs +12 -28
  87. package/dist/Transfers.mjs.map +1 -1
  88. package/dist/Uploads.d.mts +6 -8
  89. package/dist/Uploads.mjs +3 -5
  90. package/dist/Uploads.mjs.map +1 -1
  91. package/dist/Webhooks.d.mts +3 -5
  92. package/dist/Webhooks.mjs +2 -11
  93. package/dist/Webhooks.mjs.map +1 -1
  94. package/dist/{WriterFacts-osvYAsIx.d.mts → WriterFacts-5CPBGG1P.d.mts} +4 -3
  95. package/dist/index.d.mts +27 -30
  96. package/dist/index.mjs +26 -30
  97. package/package.json +3 -24
  98. package/dist/Acquisition-WBafHwXH.mjs.map +0 -1
  99. package/dist/Association-CEps4hYP.mjs +0 -10
  100. package/dist/Association-CEps4hYP.mjs.map +0 -1
  101. package/dist/Bootstrap-BXuzZojd.mjs +0 -194
  102. package/dist/Bootstrap-BXuzZojd.mjs.map +0 -1
  103. package/dist/Bootstrap-m7lHgj0D.d.mts +0 -177
  104. package/dist/Bootstrap.d.mts +0 -2
  105. package/dist/Bootstrap.mjs +0 -2
  106. package/dist/Browser-joE4Zgys.mjs +0 -1557
  107. package/dist/Browser-joE4Zgys.mjs.map +0 -1
  108. package/dist/BrowserBinding-qbQA6JhH.mjs +0 -2452
  109. package/dist/BrowserBinding-qbQA6JhH.mjs.map +0 -1
  110. package/dist/BrowserData-LpcAuAub.d.mts +0 -369
  111. package/dist/BrowserData.d.mts +0 -2
  112. package/dist/BrowserData.mjs +0 -442
  113. package/dist/BrowserData.mjs.map +0 -1
  114. package/dist/Capture-CZJPuD7b.mjs +0 -532
  115. package/dist/Capture-CZJPuD7b.mjs.map +0 -1
  116. package/dist/Capture-Dr5MkIJb.d.mts +0 -125
  117. package/dist/Capture.d.mts +0 -2
  118. package/dist/Capture.mjs +0 -2
  119. package/dist/Client-Ca0zSg1n.d.mts +0 -53
  120. package/dist/Images-DgscEfSf.mjs +0 -127
  121. package/dist/Images-DgscEfSf.mjs.map +0 -1
  122. package/dist/Launch-BHcAEq05.mjs.map +0 -1
  123. package/dist/Launch-C8CfaYxb.d.mts +0 -132
  124. package/dist/PageControl.d.mts +0 -16
  125. package/dist/PageControl.mjs +0 -36
  126. package/dist/PageControl.mjs.map +0 -1
  127. package/dist/PageControlAssociation-DabEg5AR.mjs +0 -10
  128. package/dist/PageControlAssociation-DabEg5AR.mjs.map +0 -1
  129. package/dist/Sessions-CtbseWEh.mjs.map +0 -1
  130. package/dist/rolldown-runtime-D7D4PA-g.mjs +0 -13
@@ -1,369 +0,0 @@
1
- import { f as UploadReceipt } from "./Transfers-Czv5IZzJ.mjs";
2
- import { Schema } from "effect";
3
- declare namespace BrowserData_d_exports {
4
- export { ActionResult, AutomationOptions, BrowserPolicy, Checkpoint, CheckpointOptions, ClickRequest, ControlFacts, FileSelection, FillRequest, FrameInfo, HoverRequest, InlineFile, InlineFiles, InputReceipt, KeyModifier, KeyStroke, NamedKey, NavigateRequest, NavigationResult, Observation, ObservationOptions, ObservedControl, ObservedElement, PageExecutionState, PageInfo, PageSuspension, PointerMoveRequest, PressRequest, ReadTextRequest, ScreenshotRequest, ScreenshotResult, ScrollRequest, SelectFilesRequest, Selector, StartNavigationRequest, Target, TargetUrl, TextResult, TypeRequest, Viewport, ViewportEvidence, ViewportPoint, ViewportRect, WheelRequest };
5
- }
6
- declare const Viewport_base: Schema.Class<Viewport, Schema.Struct<{
7
- readonly width: Schema.Int;
8
- readonly height: Schema.Int;
9
- }>, {}>;
10
- declare class Viewport extends Viewport_base {}
11
- declare const Target_base: Schema.Class<Target, Schema.Struct<{
12
- readonly generation: Schema.Natural;
13
- readonly pageId: Schema.NonEmptyString;
14
- readonly frameId: Schema.NonEmptyString;
15
- }>, {}>;
16
- /** Page/frame IDs are connection-local; targetId is a separate Chromium identity. */
17
- declare class Target extends Target_base {}
18
- declare const PageInfo_base: Schema.Class<PageInfo, Schema.Struct<{
19
- readonly pageId: Schema.NonEmptyString;
20
- readonly targetId: Schema.NonEmptyString;
21
- readonly url: Schema.String;
22
- readonly title: Schema.String;
23
- readonly selected: Schema.Boolean;
24
- }>, {}>;
25
- declare class PageInfo extends PageInfo_base {}
26
- declare const FrameInfo_base: Schema.Class<FrameInfo, Schema.Struct<{
27
- readonly frameId: Schema.NonEmptyString;
28
- readonly parentFrameId: Schema.NullOr<Schema.NonEmptyString>;
29
- readonly url: Schema.String;
30
- readonly name: Schema.String;
31
- }>, {}>;
32
- declare class FrameInfo extends FrameInfo_base {}
33
- declare const ObservedControl_base: Schema.Class<ObservedControl, Schema.Struct<{
34
- readonly elementId: Schema.NonEmptyString;
35
- readonly kind: Schema.Literals<readonly ["link", "button", "input", "select", "textarea", "other"]>;
36
- readonly label: Schema.String;
37
- readonly disabled: Schema.Boolean;
38
- }>, {}>;
39
- declare class ObservedControl extends ObservedControl_base {}
40
- declare const ViewportEvidence_base: Schema.Class<ViewportEvidence, Schema.Struct<{
41
- readonly width: Schema.Finite;
42
- readonly height: Schema.Finite;
43
- /** Text that crossed a viewport edge; only its lines on screen were kept. */
44
- readonly clippedText: Schema.Natural;
45
- /** Left out: the browser found another element at the sampled point. */
46
- readonly coveredText: Schema.Natural;
47
- readonly uncertainText: Schema.Natural;
48
- /** Controls that intersect the viewport but cannot be reached there. */
49
- readonly unreachableControls: Schema.Natural;
50
- /** The traversal budget ran out first, so this reading is known to be incomplete. */
51
- readonly exhausted: Schema.Boolean;
52
- }>, {}>;
53
- /**
54
- * How a viewport reading was bounded and what it left out. These are counts, so they are safe
55
- * to show a model. Visibility is geometry and hit-testing, never a pixel comparison: text is
56
- * kept when its line boxes intersect the viewport and the browser finds its own element at a
57
- * sampled point. `uncertainText` lay under something that takes no pointer events, which
58
- * hit-testing cannot see through, so it is left out rather than called visible.
59
- */
60
- declare class ViewportEvidence extends ViewportEvidence_base {}
61
- declare const Observation_base: Schema.Class<Observation, Schema.Struct<{
62
- readonly target: typeof Target;
63
- readonly observationId: Schema.NonEmptyString;
64
- readonly revision: Schema.Natural;
65
- readonly scope: Schema.Literals<readonly ["document", "viewport"]>;
66
- readonly url: Schema.String;
67
- readonly text: Schema.String;
68
- readonly controls: Schema.$Array<typeof ObservedControl>;
69
- readonly controlsTruncated: Schema.Boolean;
70
- readonly textTruncated: Schema.Boolean;
71
- readonly viewport: typeof ViewportEvidence;
72
- }>, {}>;
73
- /**
74
- * Revision is admission fencing, not a claim of a complete DOM version or atomic snapshot. A
75
- * `viewport` reading holds only what is on screen and reachable; a `document` reading is the
76
- * whole body, wherever it is. Nothing here carries a destination, a form or a field value.
77
- */
78
- declare class Observation extends Observation_base {}
79
- declare const ObservedElement_base: Schema.Class<ObservedElement, Schema.Struct<{
80
- readonly observationId: Schema.NonEmptyString;
81
- readonly elementId: Schema.NonEmptyString;
82
- }>, {}>;
83
- declare class ObservedElement extends ObservedElement_base {}
84
- declare const PageSuspension_base: Schema.Class<PageSuspension, Schema.Struct<{
85
- readonly pageId: Schema.NonEmptyString;
86
- readonly targetId: Schema.NonEmptyString;
87
- readonly suspensionId: Schema.NonEmptyString;
88
- }>, {}>;
89
- /** Live, connection-owned receipt. It is not a durable promise that remote clocks remain held. */
90
- declare class PageSuspension extends PageSuspension_base {}
91
- declare const PageExecutionState_base: Schema.Class<PageExecutionState, Schema.Struct<{
92
- readonly pageId: Schema.NonEmptyString;
93
- readonly targetId: Schema.NonEmptyString;
94
- readonly state: Schema.Literals<readonly ["running", "suspended", "unknown"]>;
95
- readonly suspensionId: Schema.optionalKey<Schema.NonEmptyString>;
96
- }>, {}>;
97
- declare class PageExecutionState extends PageExecutionState_base {}
98
- declare const BrowserPolicy_base: Schema.Class<BrowserPolicy, Schema.Struct<{
99
- readonly network: Schema.Struct<{
100
- readonly _tag: Schema.Literal<"Unrestricted">;
101
- }>;
102
- readonly maxActions: Schema.Int;
103
- readonly maxElapsedMillis: Schema.Int;
104
- readonly maxReturnedBytes: Schema.Int;
105
- }>, {}>;
106
- /** Explicit opt-out: this integration does not claim whole-browser network containment. */
107
- declare class BrowserPolicy extends BrowserPolicy_base {
108
- /**
109
- * Conservative bounds for trusted host code: 100 actions, five minutes, 2 MiB returned.
110
- * The network choice is spelled out in the name because Browserbase cannot prove a
111
- * narrower one; override any bound, never the network.
112
- */
113
- static unrestricted(bounds?: Partial<Pick<BrowserPolicy, "maxActions" | "maxElapsedMillis" | "maxReturnedBytes">>): BrowserPolicy;
114
- }
115
- declare const TargetUrl: Schema.NonEmptyString;
116
- declare const Selector: Schema.NonEmptyString;
117
- declare const NavigateRequest_base: Schema.Class<NavigateRequest, Schema.Struct<{
118
- readonly url: Schema.NonEmptyString;
119
- }>, {}>;
120
- declare class NavigateRequest extends NavigateRequest_base {}
121
- declare const StartNavigationRequest_base: Schema.Class<StartNavigationRequest, Schema.Struct<{
122
- readonly url: Schema.NonEmptyString;
123
- readonly timeoutMillis: Schema.optionalKey<Schema.Int>;
124
- }>, {}>;
125
- /**
126
- * A navigation left in flight. `timeoutMillis` is how long the browser may take to reach
127
- * DOMContentLoaded; omitted, it is the action timeout, as it is for `navigate`.
128
- */
129
- declare class StartNavigationRequest extends StartNavigationRequest_base {}
130
- declare const ReadTextRequest_base: Schema.Class<ReadTextRequest, Schema.Struct<{
131
- readonly selector: Schema.optionalKey<Schema.NonEmptyString>;
132
- }>, {}>;
133
- declare class ReadTextRequest extends ReadTextRequest_base {}
134
- declare const ClickRequest_base: Schema.Class<ClickRequest, Schema.Struct<{
135
- readonly selector: Schema.NonEmptyString;
136
- }>, {}>;
137
- declare class ClickRequest extends ClickRequest_base {}
138
- declare const FillRequest_base: Schema.Class<FillRequest, Schema.Struct<{
139
- readonly selector: Schema.NonEmptyString;
140
- readonly value: Schema.String;
141
- }>, {}>;
142
- declare class FillRequest extends FillRequest_base {}
143
- declare const ScrollRequest_base: Schema.Class<ScrollRequest, Schema.Struct<{
144
- readonly deltaX: Schema.Int;
145
- readonly deltaY: Schema.Int;
146
- }>, {}>;
147
- declare class ScrollRequest extends ScrollRequest_base {}
148
- declare const ViewportPoint_base: Schema.Class<ViewportPoint, Schema.Struct<{
149
- readonly x: Schema.Finite;
150
- readonly y: Schema.Finite;
151
- }>, {}>;
152
- /**
153
- * CSS pixels in the main frame's viewport, the space Chromium dispatches pointer input in. It
154
- * is not a document offset, a device pixel, or a coordinate inside a child frame.
155
- */
156
- declare class ViewportPoint extends ViewportPoint_base {}
157
- declare const ViewportRect_base: Schema.Class<ViewportRect, Schema.Struct<{
158
- readonly x: Schema.Finite;
159
- readonly y: Schema.Finite;
160
- readonly width: Schema.Finite;
161
- readonly height: Schema.Finite;
162
- }>, {}>;
163
- /** A box in the viewport of the frame it was read from, in CSS pixels. */
164
- declare class ViewportRect extends ViewportRect_base {}
165
- declare const ControlFacts_base: Schema.Class<ControlFacts, Schema.Struct<{
166
- readonly kind: Schema.Literals<readonly ["link", "button", "input", "select", "textarea", "other"]>;
167
- readonly label: Schema.String;
168
- readonly disabled: Schema.Boolean;
169
- readonly editable: Schema.Boolean;
170
- readonly inputType: Schema.optionalKey<Schema.String>;
171
- readonly autocomplete: Schema.optionalKey<Schema.String>;
172
- /** A resolved link target, or where this control submits its form. Absent when over-long. */
173
- readonly destination: Schema.optionalKey<Schema.String>;
174
- readonly formMethod: Schema.optionalKey<Schema.Literals<readonly ["get", "post", "dialog"]>>;
175
- readonly box: typeof ViewportRect;
176
- readonly placement: Schema.Literals<readonly ["inside", "partial", "outside"]>;
177
- /** `self`: the browser finds this control at its visible centre. Not a pixel comparison. */
178
- readonly hitTest: Schema.Literals<readonly ["self", "covered", "uncertain", "unsampled"]>;
179
- /** Only then is `box` in the main frame's viewport, the space pointer input uses. */
180
- readonly mainFrame: Schema.Boolean;
181
- }>, {}>;
182
- /**
183
- * What a host needs to decide whether a control may be acted on. Host-only: a destination can
184
- * carry a token, so none of this is part of the model-facing `Observation`. It never includes a
185
- * field's value or any markup.
186
- */
187
- declare class ControlFacts extends ControlFacts_base {}
188
- declare const Checkpoint_base: Schema.Class<Checkpoint, Schema.Struct<{
189
- readonly target: typeof Target;
190
- readonly revision: Schema.Natural;
191
- readonly url: Schema.String;
192
- readonly text: Schema.String;
193
- readonly textTruncated: Schema.Boolean;
194
- readonly controls: Schema.$Array<typeof ControlFacts>;
195
- readonly controlsTruncated: Schema.Boolean;
196
- readonly viewport: typeof ViewportEvidence;
197
- readonly picture: Schema.optionalKey<Schema.Struct<{
198
- readonly mediaType: Schema.Literal<"image/png">;
199
- readonly bytes: Schema.Uint8Array;
200
- }>>;
201
- readonly documentChanged: Schema.Boolean;
202
- readonly startedMonotonicNanos: Schema.BigInt;
203
- readonly completedMonotonicNanos: Schema.BigInt;
204
- }>, {}>;
205
- /**
206
- * Passive evidence for a recorder: what was on screen, and optionally a picture of it. It issues
207
- * no element references and never replaces the observation an agent's tools act on, so
208
- * inspecting, checkpointing and then acting on the inspected node all compose.
209
- *
210
- * It is host-only, because it carries control facts. Text and picture are read one after the
211
- * other, never atomically: the interval says when, and `documentChanged` says the document was
212
- * replaced in between, so the two may describe different documents.
213
- */
214
- declare class Checkpoint extends Checkpoint_base {}
215
- /** Omitted bounds default at admission; `scope` defaults to the whole document. */
216
- declare const ObservationOptions: Schema.Struct<{
217
- readonly maxTextBytes: Schema.optionalKey<Schema.Int>;
218
- readonly maxControls: Schema.optionalKey<Schema.Int>;
219
- readonly scope: Schema.optionalKey<Schema.Literals<readonly ["document", "viewport"]>>;
220
- }>;
221
- type ObservationOptions = typeof ObservationOptions.Type;
222
- /** A checkpoint always reads the viewport. `picture` adds a PNG of it, within the byte policy. */
223
- declare const CheckpointOptions: Schema.Struct<{
224
- readonly maxTextBytes: Schema.optionalKey<Schema.Int>;
225
- readonly maxControls: Schema.optionalKey<Schema.Int>;
226
- readonly picture: Schema.optionalKey<Schema.Boolean>;
227
- }>;
228
- type CheckpointOptions = typeof CheckpointOptions.Type;
229
- declare const PointerMoveRequest_base: Schema.Class<PointerMoveRequest, Schema.Struct<{
230
- readonly to: typeof ViewportPoint;
231
- }>, {}>;
232
- /** One native pointer move. Easing and pacing are the caller's: send the points you want. */
233
- declare class PointerMoveRequest extends PointerMoveRequest_base {}
234
- declare const HoverRequest_base: Schema.Class<HoverRequest, Schema.Struct<{
235
- readonly selector: Schema.NonEmptyString;
236
- }>, {}>;
237
- /** Moves the pointer onto one exact element where it is. It never scrolls to reach it. */
238
- declare class HoverRequest extends HoverRequest_base {}
239
- declare const WheelRequest_base: Schema.Class<WheelRequest, Schema.Struct<{
240
- readonly deltaX: Schema.Finite;
241
- readonly deltaY: Schema.Finite;
242
- readonly at: Schema.optionalKey<typeof ViewportPoint>;
243
- }>, {}>;
244
- /**
245
- * One native wheel event where the pointer is, or at `at` after moving there first. The browser
246
- * chooses what scrolls, exactly as it would for a person, so a nested scroll container under
247
- * the pointer scrolls instead of the page.
248
- */
249
- declare class WheelRequest extends WheelRequest_base {}
250
- /**
251
- * The keys a `press` may name, spelled as the `KeyboardEvent.key` the page will see. The set is
252
- * closed on purpose: a key name is parsed by the native engine, so none reaches it unreviewed.
253
- */
254
- declare const NamedKey: Schema.Literals<readonly ["Enter", "Tab", "Backspace", "Delete", "Escape", "ArrowLeft", "ArrowRight", "ArrowUp", "ArrowDown", "Home", "End", "PageUp", "PageDown"]>;
255
- type NamedKey = typeof NamedKey.Type;
256
- declare const KeyModifier: Schema.Literals<readonly ["Shift", "Control", "Alt", "Meta"]>;
257
- type KeyModifier = typeof KeyModifier.Type;
258
- /** One key, down then up, with any modifiers held around it. */
259
- declare const KeyStroke: Schema.Struct<{
260
- readonly key: Schema.Union<readonly [Schema.Literals<readonly ["Enter", "Tab", "Backspace", "Delete", "Escape", "ArrowLeft", "ArrowRight", "ArrowUp", "ArrowDown", "Home", "End", "PageUp", "PageDown"]>, Schema.String]>;
261
- readonly modifiers: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["Shift", "Control", "Alt", "Meta"]>>>;
262
- }>;
263
- type KeyStroke = typeof KeyStroke.Type;
264
- declare const PressRequest_base: Schema.Class<PressRequest, Schema.Struct<{
265
- readonly key: Schema.Union<readonly [Schema.Literals<readonly ["Enter", "Tab", "Backspace", "Delete", "Escape", "ArrowLeft", "ArrowRight", "ArrowUp", "ArrowDown", "Home", "End", "PageUp", "PageDown"]>, Schema.String]>;
266
- readonly modifiers: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["Shift", "Control", "Alt", "Meta"]>>>;
267
- readonly into: Schema.optionalKey<Schema.NonEmptyString>;
268
- }>, {}>;
269
- /**
270
- * One real key stroke. It goes to whatever has focus in the page, exactly as it would for a
271
- * person, unless `into` names the one element that must already have it. It never focuses that
272
- * element, because that would hide a scripted focus inside a native-input operation: click it
273
- * first.
274
- */
275
- declare class PressRequest extends PressRequest_base {}
276
- declare const TypeRequest_base: Schema.Class<TypeRequest, Schema.Struct<{
277
- readonly text: Schema.NonEmptyString;
278
- readonly into: Schema.optionalKey<Schema.NonEmptyString>;
279
- }>, {}>;
280
- /**
281
- * Text as the real key strokes that produce it, two native commands for each character, one
282
- * after another under a single action timeout: send a long passage as several shorter runs.
283
- * A character the US layout cannot produce is inserted as text, as an input method commits it,
284
- * and raises no key events. Control characters are refused, so a line break can never press
285
- * Enter from inside a run of text: a named key is always its own `press`. `into` works as it
286
- * does for `PressRequest`: a guard on where the text lands, never a focus.
287
- */
288
- declare class TypeRequest extends TypeRequest_base {}
289
- declare const InputReceipt_base: Schema.Class<InputReceipt, Schema.Struct<{
290
- readonly target: typeof Target;
291
- readonly kind: Schema.Literals<readonly ["pointer-move", "hover", "wheel", "press", "type"]>;
292
- readonly position: Schema.NullOr<typeof ViewportPoint>;
293
- readonly delta: Schema.optionalKey<Schema.Struct<{
294
- readonly x: Schema.Finite;
295
- readonly y: Schema.Finite;
296
- }>>;
297
- readonly startedMonotonicNanos: Schema.BigInt;
298
- readonly completedMonotonicNanos: Schema.BigInt;
299
- }>, {}>;
300
- /**
301
- * What native input was dispatched, where and when. `position` is the point this owner
302
- * commanded, or null when it has not yet placed the pointer on this page. The interval is on
303
- * the host monotonic clock that stamps `CapturedFrame.receivedMonotonicNanos`, so input and
304
- * pixels share one timeline. A wheel event is dispatched, not awaited: the receipt does not
305
- * claim the page finished scrolling, or that any frame shows it. A receipt never says which
306
- * key was pressed or what was typed.
307
- */
308
- declare class InputReceipt extends InputReceipt_base {}
309
- declare const ScreenshotRequest_base: Schema.Class<ScreenshotRequest, Schema.Struct<{
310
- readonly fullPage: Schema.Boolean;
311
- }>, {}>;
312
- declare class ScreenshotRequest extends ScreenshotRequest_base {}
313
- declare const NavigationResult_base: Schema.Class<NavigationResult, Schema.Struct<{
314
- readonly url: Schema.NonEmptyString;
315
- }>, {}>;
316
- declare class NavigationResult extends NavigationResult_base {}
317
- declare const ActionResult_base: Schema.Class<ActionResult, Schema.Struct<{
318
- readonly url: Schema.NonEmptyString;
319
- }>, {}>;
320
- declare class ActionResult extends ActionResult_base {}
321
- declare const TextResult_base: Schema.Class<TextResult, Schema.Struct<{
322
- readonly text: Schema.String;
323
- }>, {}>;
324
- declare class TextResult extends TextResult_base {}
325
- declare const ScreenshotResult_base: Schema.Class<ScreenshotResult, Schema.Struct<{
326
- readonly mediaType: Schema.Literal<"image/png">;
327
- readonly bytes: Schema.Uint8Array;
328
- }>, {}>;
329
- declare class ScreenshotResult extends ScreenshotResult_base {}
330
- declare const InlineFile_base: Schema.Class<InlineFile, Schema.Struct<{
331
- readonly name: Schema.NonEmptyString;
332
- readonly mediaType: Schema.NonEmptyString;
333
- readonly bytes: Schema.Uint8Array;
334
- }>, {}>;
335
- /** Small selection is in-memory by design: bytes the caller already holds, never a path. */
336
- declare class InlineFile extends InlineFile_base {}
337
- declare const InlineFiles: Schema.$Array<typeof InlineFile>;
338
- /**
339
- * The uploaded branch carries receipts, not paths. Attachment authority is the identity of a
340
- * receipt this package issued for this exact session, so decoding one back into a new value
341
- * would discard the very evidence being checked.
342
- */
343
- type FileSelection = {
344
- readonly _tag: "Inline";
345
- readonly files: ReadonlyArray<InlineFile>;
346
- } | {
347
- readonly _tag: "Uploaded";
348
- readonly uploads: ReadonlyArray<UploadReceipt>;
349
- };
350
- interface SelectFilesRequest {
351
- readonly selector: string;
352
- readonly selection: FileSelection;
353
- }
354
- declare const AutomationOptions: Schema.Struct<{
355
- readonly actionTimeoutMillis: Schema.optionalKey<Schema.Int>;
356
- readonly maxPages: Schema.optionalKey<Schema.Int>;
357
- readonly initialPage: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
358
- readonly targetId: Schema.NonEmptyString;
359
- }>, Schema.Struct<{
360
- readonly newPage: Schema.Literal<true>;
361
- }>]>>;
362
- readonly popupPolicy: Schema.optionalKey<Schema.Literals<readonly ["retain", "close", "pause"]>>;
363
- readonly dialogPolicy: Schema.optionalKey<Schema.Literals<readonly ["dismiss", "pause"]>>;
364
- readonly pageControl: Schema.optionalKey<Schema.Boolean>;
365
- }>;
366
- type AutomationOptions = typeof AutomationOptions.Type;
367
- //#endregion
368
- export { ReadTextRequest as A, TypeRequest as B, ObservedControl as C, PageSuspension as D, PageInfo as E, Selector as F, WheelRequest as G, ViewportEvidence as H, StartNavigationRequest as I, Target as L, ScreenshotResult as M, ScrollRequest as N, PointerMoveRequest as O, SelectFilesRequest as P, TargetUrl as R, ObservationOptions as S, PageExecutionState as T, ViewportPoint as U, Viewport as V, ViewportRect as W, KeyStroke as _, Checkpoint as a, NavigationResult as b, ControlFacts as c, FrameInfo as d, HoverRequest as f, KeyModifier as g, InputReceipt as h, BrowserPolicy as i, ScreenshotRequest as j, PressRequest as k, FileSelection as l, InlineFiles as m, AutomationOptions as n, CheckpointOptions as o, InlineFile as p, BrowserData_d_exports as r, ClickRequest as s, ActionResult as t, FillRequest as u, NamedKey as v, ObservedElement as w, Observation as x, NavigateRequest as y, TextResult as z };
369
- //# sourceMappingURL=BrowserData-LpcAuAub.d.mts.map
@@ -1,2 +0,0 @@
1
- import { A as ReadTextRequest, B as TypeRequest, C as ObservedControl, D as PageSuspension, E as PageInfo, F as Selector, G as WheelRequest, H as ViewportEvidence, I as StartNavigationRequest, L as Target, M as ScreenshotResult, N as ScrollRequest, O as PointerMoveRequest, P as SelectFilesRequest, R as TargetUrl, S as ObservationOptions, T as PageExecutionState, U as ViewportPoint, V as Viewport, W as ViewportRect, _ as KeyStroke, a as Checkpoint, b as NavigationResult, c as ControlFacts, d as FrameInfo, f as HoverRequest, g as KeyModifier, h as InputReceipt, i as BrowserPolicy, j as ScreenshotRequest, k as PressRequest, l as FileSelection, m as InlineFiles, n as AutomationOptions, o as CheckpointOptions, p as InlineFile, s as ClickRequest, t as ActionResult, u as FillRequest, v as NamedKey, w as ObservedElement, x as Observation, y as NavigateRequest, z as TextResult } from "./BrowserData-LpcAuAub.mjs";
2
- export { ActionResult, AutomationOptions, BrowserPolicy, Checkpoint, CheckpointOptions, ClickRequest, ControlFacts, FileSelection, FillRequest, FrameInfo, HoverRequest, InlineFile, InlineFiles, InputReceipt, KeyModifier, KeyStroke, NamedKey, NavigateRequest, NavigationResult, Observation, ObservationOptions, ObservedControl, ObservedElement, PageExecutionState, PageInfo, PageSuspension, PointerMoveRequest, PressRequest, ReadTextRequest, ScreenshotRequest, ScreenshotResult, ScrollRequest, SelectFilesRequest, Selector, StartNavigationRequest, Target, TargetUrl, TextResult, TypeRequest, Viewport, ViewportEvidence, ViewportPoint, ViewportRect, WheelRequest };