effect-browser 0.3.0-beta.24 → 0.3.0-beta.25

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 (345) hide show
  1. package/README.md +333 -157
  2. package/dist/Action.d.mts +1 -1
  3. package/dist/Action.mjs +61 -9
  4. package/dist/Action.mjs.map +1 -1
  5. package/dist/Browser.d.mts +2 -2
  6. package/dist/Browser.mjs +2 -2
  7. package/dist/BrowserError.d.mts +2 -2
  8. package/dist/BrowserError.mjs +194 -41
  9. package/dist/BrowserError.mjs.map +1 -1
  10. package/dist/BrowserEvent.d.mts +1 -1
  11. package/dist/BrowserEvent.mjs +166 -35
  12. package/dist/BrowserEvent.mjs.map +1 -1
  13. package/dist/Cdp.d.mts +15 -0
  14. package/dist/Cdp.mjs +22 -0
  15. package/dist/Cdp.mjs.map +1 -0
  16. package/dist/Change.d.mts +2 -2
  17. package/dist/Change.mjs +33 -6
  18. package/dist/Change.mjs.map +1 -1
  19. package/dist/Frame.d.mts +2 -2
  20. package/dist/Frame.mjs +132 -14
  21. package/dist/Frame.mjs.map +1 -1
  22. package/dist/{Style.d.mts → InputStyle.d.mts} +93 -25
  23. package/dist/{Style.mjs → InputStyle.mjs} +1 -1
  24. package/dist/Layout.d.mts +2 -2
  25. package/dist/Layout.mjs +58 -16
  26. package/dist/Layout.mjs.map +1 -1
  27. package/dist/Overlay.d.mts +2 -2
  28. package/dist/Overlay.mjs +33 -5
  29. package/dist/Overlay.mjs.map +1 -1
  30. package/dist/Page.d.mts +2 -2
  31. package/dist/Page.mjs +2 -2
  32. package/dist/PageTime.d.mts +2 -2
  33. package/dist/PageTime.mjs +13 -3
  34. package/dist/PageTime.mjs.map +1 -1
  35. package/dist/Pose.d.mts +2 -2
  36. package/dist/Pose.mjs +30 -9
  37. package/dist/Pose.mjs.map +1 -1
  38. package/dist/Site.d.mts +288 -18
  39. package/dist/Site.mjs +11 -3
  40. package/dist/Site.mjs.map +1 -1
  41. package/dist/Snapshot.d.mts +2 -2
  42. package/dist/Snapshot.mjs +87 -6
  43. package/dist/Snapshot.mjs.map +1 -1
  44. package/dist/Text.d.mts +2 -0
  45. package/dist/Text.mjs +45 -0
  46. package/dist/Text.mjs.map +1 -0
  47. package/dist/Window.d.mts +2 -2
  48. package/dist/Window.mjs +31 -6
  49. package/dist/Window.mjs.map +1 -1
  50. package/dist/ai/BrowserTools.d.mts +4987 -0
  51. package/dist/ai/BrowserTools.mjs +3 -0
  52. package/dist/ai/PageControl.d.mts +286 -0
  53. package/dist/ai/PageControl.mjs +426 -0
  54. package/dist/ai/PageControl.mjs.map +1 -0
  55. package/dist/ai/PromptCache.d.mts +16 -0
  56. package/dist/ai/PromptCache.mjs +72 -0
  57. package/dist/ai/PromptCache.mjs.map +1 -0
  58. package/dist/ai/Tabs.d.mts +2 -0
  59. package/dist/ai/Tabs.mjs +72 -0
  60. package/dist/ai/Tabs.mjs.map +1 -0
  61. package/dist/ai/ToolError.d.mts +34 -0
  62. package/dist/ai/ToolError.mjs +2 -0
  63. package/dist/ai/index.d.mts +6 -0
  64. package/dist/ai/index.mjs +6 -0
  65. package/dist/index.d.mts +7 -18
  66. package/dist/index.mjs +6 -9
  67. package/dist/{Action-24sLOubi.d.mts → internal/Action-CkanNTUw.d.mts} +64 -4
  68. package/dist/{Browser-DGR6ZEYo.d.mts → internal/Browser-DD9Vm1c-.d.mts} +75 -11
  69. package/dist/{Browser-CAQFhTkM.mjs → internal/Browser-vzD7i2oj.mjs} +174 -237
  70. package/dist/internal/Browser-vzD7i2oj.mjs.map +1 -0
  71. package/dist/{BrowserError-BlcmLVzn.d.mts → internal/BrowserError-CsuRYcDX.d.mts} +187 -28
  72. package/dist/{BrowserEvent-C2p-NwuU.d.mts → internal/BrowserEvent-tGPYYf6R.d.mts} +168 -13
  73. package/dist/internal/BrowserTools-Yi3lOX4h.mjs +497 -0
  74. package/dist/internal/BrowserTools-Yi3lOX4h.mjs.map +1 -0
  75. package/dist/{Style-T3ezDYLI.mjs → internal/InputStyle-CPzxoN4g.mjs} +75 -20
  76. package/dist/internal/InputStyle-CPzxoN4g.mjs.map +1 -0
  77. package/dist/{moment/Moment.mjs → internal/Moment-CstaX1mR.mjs} +49 -16
  78. package/dist/internal/Moment-CstaX1mR.mjs.map +1 -0
  79. package/dist/{moment/Moment.d.mts → internal/Moment-DOcldBdf.d.mts} +53 -20
  80. package/dist/internal/Page-BfGxn7oN.d.mts +1553 -0
  81. package/dist/{Page-BaAOshxo.mjs → internal/Page-DqF-tuTx.mjs} +62 -74
  82. package/dist/internal/Page-DqF-tuTx.mjs.map +1 -0
  83. package/dist/internal/Release-CFONkPDP.d.mts +39 -0
  84. package/dist/internal/Stage-D5ymSXDT.mjs +298 -0
  85. package/dist/internal/Stage-D5ymSXDT.mjs.map +1 -0
  86. package/dist/internal/Stillness-DCPeAN1a.mjs +1124 -0
  87. package/dist/internal/Stillness-DCPeAN1a.mjs.map +1 -0
  88. package/dist/internal/Supervisor-BcY_QNIY.d.mts +108 -0
  89. package/dist/internal/Supervisor-BcglY23c.mjs +531 -0
  90. package/dist/internal/Supervisor-BcglY23c.mjs.map +1 -0
  91. package/dist/internal/Tabs-dXMscIUQ.d.mts +52 -0
  92. package/dist/internal/TestPage-CYiYbh63.d.mts +159 -0
  93. package/dist/internal/ToolError-DArsRS2m.mjs +117 -0
  94. package/dist/internal/ToolError-DArsRS2m.mjs.map +1 -0
  95. package/dist/{plan/index.d.mts → internal/Walk-BNXcfZ2z.d.mts} +59 -35
  96. package/dist/{plan/index.mjs → internal/Walk-C5ky7uSf.mjs} +83 -51
  97. package/dist/internal/Walk-C5ky7uSf.mjs.map +1 -0
  98. package/dist/{ActionPort.mjs → internal/action-port-B5EkeGOR.mjs} +6 -12
  99. package/dist/internal/action-port-B5EkeGOR.mjs.map +1 -0
  100. package/dist/internal/cdp/workerd.d.mts +13 -0
  101. package/dist/internal/cdp/workerd.mjs +19 -0
  102. package/dist/internal/cdp/workerd.mjs.map +1 -0
  103. package/dist/{Clock.mjs → internal/clock-BKSAEf00.mjs} +13 -13
  104. package/dist/internal/clock-BKSAEf00.mjs.map +1 -0
  105. package/dist/{connection-Db-YtlbE.d.mts → internal/connection-BaB0vp1o.d.mts} +6 -6
  106. package/dist/{connection-C_jWYIwe.mjs → internal/connection-C2X4GmXM.mjs} +19 -15
  107. package/dist/internal/connection-C2X4GmXM.mjs.map +1 -0
  108. package/dist/internal/events-DzCrww-y.mjs +72 -0
  109. package/dist/internal/events-DzCrww-y.mjs.map +1 -0
  110. package/dist/internal/fold.inpage-uhrT-dOB.mjs +49 -0
  111. package/dist/internal/fold.inpage-uhrT-dOB.mjs.map +1 -0
  112. package/dist/internal/functions-jBOs6GKv.mjs +27 -0
  113. package/dist/internal/functions-jBOs6GKv.mjs.map +1 -0
  114. package/dist/{Geometry-DJx9qrYy.d.mts → internal/geometry-Dhj_ztJs.d.mts} +3 -3
  115. package/dist/{Geometry.mjs → internal/geometry-Lxyflb9J.mjs} +3 -12
  116. package/dist/internal/geometry-Lxyflb9J.mjs.map +1 -0
  117. package/dist/{Matching.mjs → internal/matching-Cs-UeOY0.mjs} +3 -3
  118. package/dist/internal/matching-Cs-UeOY0.mjs.map +1 -0
  119. package/dist/internal/page-DFQb-YOK.mjs +436 -0
  120. package/dist/internal/page-DFQb-YOK.mjs.map +1 -0
  121. package/dist/{pose.inpage-CLq7Mfdr.mjs → internal/pose.inpage-CBFeWcVa.mjs} +2 -48
  122. package/dist/internal/pose.inpage-CBFeWcVa.mjs.map +1 -0
  123. package/dist/{Url.mjs → internal/url-DB0pQYk6.mjs} +3 -12
  124. package/dist/internal/url-DB0pQYk6.mjs.map +1 -0
  125. package/dist/policy/Policy.d.mts +60 -6
  126. package/dist/policy/Policy.mjs +52 -9
  127. package/dist/policy/Policy.mjs.map +1 -1
  128. package/dist/policy/index.d.mts +2 -0
  129. package/dist/policy/index.mjs +2 -0
  130. package/dist/{film → presentation}/Film.d.mts +83 -16
  131. package/dist/{film → presentation}/Film.mjs +82 -30
  132. package/dist/presentation/Film.mjs.map +1 -0
  133. package/dist/presentation/Motion.d.mts +5 -1
  134. package/dist/presentation/Motion.mjs +16 -2
  135. package/dist/presentation/Motion.mjs.map +1 -1
  136. package/dist/presentation/Presentation.d.mts +42 -7
  137. package/dist/presentation/Presentation.mjs +26 -9
  138. package/dist/presentation/Presentation.mjs.map +1 -1
  139. package/dist/presentation/Stage.d.mts +40 -6
  140. package/dist/presentation/Stage.mjs +1 -262
  141. package/dist/presentation/index.d.mts +5 -0
  142. package/dist/presentation/index.mjs +5 -0
  143. package/dist/supervisor/Release.d.mts +2 -0
  144. package/dist/supervisor/Release.mjs +40 -0
  145. package/dist/supervisor/Release.mjs.map +1 -0
  146. package/dist/supervisor/Supervisor.d.mts +2 -104
  147. package/dist/supervisor/Supervisor.mjs +2 -515
  148. package/dist/supervisor/index.d.mts +3 -0
  149. package/dist/supervisor/index.mjs +3 -0
  150. package/dist/testing/HttpCassette.d.mts +98 -0
  151. package/dist/testing/HttpCassette.mjs +146 -0
  152. package/dist/testing/HttpCassette.mjs.map +1 -0
  153. package/dist/testing/Story.d.mts +31 -0
  154. package/dist/testing/Story.mjs +76 -0
  155. package/dist/testing/Story.mjs.map +1 -0
  156. package/dist/testing/TestBrowser.d.mts +191 -0
  157. package/dist/testing/TestBrowser.mjs +105 -0
  158. package/dist/testing/TestBrowser.mjs.map +1 -0
  159. package/dist/testing/TestModel.d.mts +133 -0
  160. package/dist/testing/TestModel.mjs +209 -0
  161. package/dist/testing/TestModel.mjs.map +1 -0
  162. package/dist/testing/TestPage.d.mts +2 -0
  163. package/dist/testing/TestPage.mjs +47 -0
  164. package/dist/testing/TestPage.mjs.map +1 -0
  165. package/dist/testing/index.d.mts +6 -311
  166. package/dist/testing/index.mjs +6 -521
  167. package/dist/timeline/Moment.d.mts +3 -0
  168. package/dist/timeline/Moment.mjs +3 -0
  169. package/dist/timeline/Stillness.d.mts +34 -0
  170. package/dist/timeline/Stillness.mjs +2 -0
  171. package/dist/timeline/index.d.mts +3 -0
  172. package/dist/timeline/index.mjs +3 -0
  173. package/dist/walk/Walk.d.mts +2 -0
  174. package/dist/walk/Walk.mjs +2 -0
  175. package/dist/walk/index.d.mts +2 -0
  176. package/dist/walk/index.mjs +2 -0
  177. package/package.json +54 -163
  178. package/src/Action.ts +73 -8
  179. package/src/Browser.ts +75 -9
  180. package/src/BrowserError.ts +258 -63
  181. package/src/BrowserEvent.ts +252 -55
  182. package/src/Cdp.ts +42 -0
  183. package/src/Change.ts +68 -3
  184. package/src/Frame.ts +247 -14
  185. package/src/{Style.ts → InputStyle.ts} +98 -22
  186. package/src/Layout.ts +95 -24
  187. package/src/Overlay.ts +42 -3
  188. package/src/Page.ts +144 -320
  189. package/src/PageTime.ts +29 -4
  190. package/src/Pose.ts +38 -7
  191. package/src/Site.ts +15 -3
  192. package/src/Snapshot.ts +179 -3
  193. package/src/Text.ts +60 -0
  194. package/src/Window.ts +53 -3
  195. package/src/ai/BrowserTools.ts +778 -0
  196. package/src/ai/PageControl.ts +702 -0
  197. package/src/ai/PromptCache.ts +87 -0
  198. package/src/ai/Tabs.ts +84 -0
  199. package/src/ai/ToolError.ts +50 -0
  200. package/src/ai/index.ts +36 -0
  201. package/src/ai/internal/crops.ts +38 -0
  202. package/src/ai/internal/points.ts +57 -0
  203. package/src/ai/internal/receipts.ts +107 -0
  204. package/src/index.ts +83 -6
  205. package/src/{ActionPort.ts → internal/action-port.ts} +3 -3
  206. package/src/{providers → internal/cdp}/connection.ts +19 -12
  207. package/src/internal/cdp/workerd.ts +36 -0
  208. package/src/{Clock.ts → internal/clock.ts} +20 -0
  209. package/src/internal/input/actions.ts +1 -1
  210. package/src/internal/input/dispatch.ts +2 -2
  211. package/src/internal/input/guard.inpage.ts +1 -1
  212. package/src/internal/input/guard.ts +1 -1
  213. package/src/internal/input/perform.ts +5 -5
  214. package/src/internal/input/pointer.ts +2 -2
  215. package/src/internal/input/targets.inpage.ts +3 -3
  216. package/src/{Matching.ts → internal/matching.ts} +6 -6
  217. package/src/internal/page/bridge.ts +2 -2
  218. package/src/internal/page/clock.inpage.ts +1 -1
  219. package/src/internal/page/compose.inpage.ts +2 -2
  220. package/src/internal/page/context.ts +2 -2
  221. package/src/internal/page/functions.ts +84 -0
  222. package/src/internal/page/navigation.ts +1 -1
  223. package/src/internal/page/openings.ts +2 -2
  224. package/src/internal/page/page.ts +33 -35
  225. package/src/internal/page/port.ts +14 -8
  226. package/src/internal/page/replies.ts +1 -1
  227. package/src/internal/page/requests.ts +1 -1
  228. package/src/internal/page/scripts.ts +1 -1
  229. package/src/internal/page/time.ts +1 -1
  230. package/src/internal/pictures/capture.ts +1 -4
  231. package/src/internal/pictures/dimensions.ts +1 -1
  232. package/src/internal/pictures/frame.ts +1 -1
  233. package/src/internal/pictures/pictures.ts +53 -61
  234. package/src/internal/reading/context.inpage.ts +2 -2
  235. package/src/internal/reading/expect.inpage.ts +1 -1
  236. package/src/internal/reading/layout.inpage.ts +3 -3
  237. package/src/internal/reading/layout.ts +5 -5
  238. package/src/internal/reading/outline.inpage.ts +3 -3
  239. package/src/internal/reading/reading.ts +11 -19
  240. package/src/internal/reading/ready.inpage.ts +2 -2
  241. package/src/internal/reading/ready.ts +3 -2
  242. package/src/internal/reading/subjects.inpage.ts +3 -3
  243. package/src/internal/reading/text.inpage.ts +2 -2
  244. package/src/internal/reading/walk.inpage.ts +1 -1
  245. package/src/internal/timeline/changes.inpage.ts +2 -2
  246. package/src/internal/timeline/changes.ts +3 -4
  247. package/src/internal/timeline/sight.inpage.ts +2 -2
  248. package/src/internal/timeline/window.ts +3 -4
  249. package/src/policy/Policy.ts +70 -16
  250. package/src/policy/index.ts +12 -0
  251. package/src/{film → presentation}/Film.ts +104 -37
  252. package/src/presentation/Motion.ts +45 -3
  253. package/src/presentation/Presentation.ts +47 -14
  254. package/src/presentation/Stage.ts +73 -35
  255. package/src/presentation/index.ts +30 -0
  256. package/src/presentation/{feed.ts → internal/feed.ts} +1 -1
  257. package/src/supervisor/Release.ts +45 -0
  258. package/src/supervisor/Supervisor.ts +80 -5
  259. package/src/supervisor/index.ts +18 -0
  260. package/src/supervisor/{contract.ts → internal/contract.ts} +14 -10
  261. package/src/supervisor/{lifecycle.ts → internal/lifecycle.ts} +7 -7
  262. package/src/supervisor/{runtime.ts → internal/runtime.ts} +7 -7
  263. package/src/testing/HttpCassette.ts +260 -0
  264. package/src/testing/Story.ts +103 -0
  265. package/src/testing/TestBrowser.ts +14 -4
  266. package/src/testing/TestModel.ts +297 -0
  267. package/src/testing/TestPage.ts +92 -4
  268. package/src/testing/index.ts +35 -1
  269. package/src/testing/{evidence.ts → internal/evidence.ts} +19 -11
  270. package/src/testing/{model.ts → internal/model.ts} +14 -8
  271. package/src/testing/{page.ts → internal/page.ts} +55 -56
  272. package/src/{moment → timeline}/Moment.ts +79 -29
  273. package/src/{stillness → timeline}/Stillness.ts +61 -43
  274. package/src/timeline/index.ts +18 -0
  275. package/src/{stillness/Pixels.ts → timeline/internal/pixels.ts} +2 -2
  276. package/src/{moment → timeline/internal}/words.ts +2 -2
  277. package/src/walk/Walk.ts +165 -0
  278. package/src/walk/index.ts +12 -0
  279. package/src/{plan → walk/internal}/choose.ts +23 -14
  280. package/src/{plan → walk/internal}/data.ts +37 -14
  281. package/src/{plan → walk/internal}/execute.ts +79 -36
  282. package/src/{plan → walk/internal}/record.ts +6 -6
  283. package/src/{plan → walk/internal}/targets.ts +35 -25
  284. package/dist/ActionPort.d.mts +0 -15
  285. package/dist/ActionPort.mjs.map +0 -1
  286. package/dist/Browser-CAQFhTkM.mjs.map +0 -1
  287. package/dist/Change-CxT1mp2e.d.mts +0 -80
  288. package/dist/Clock-Du5nP-nK.d.mts +0 -57
  289. package/dist/Clock.d.mts +0 -2
  290. package/dist/Clock.mjs.map +0 -1
  291. package/dist/Frame-UEH2hO5T.d.mts +0 -124
  292. package/dist/Geometry.d.mts +0 -2
  293. package/dist/Geometry.mjs.map +0 -1
  294. package/dist/Matching-MtcWZ_hA.d.mts +0 -266
  295. package/dist/Matching.d.mts +0 -2
  296. package/dist/Matching.mjs.map +0 -1
  297. package/dist/Overlay-CoGw5tL_.d.mts +0 -27
  298. package/dist/Page-BaAOshxo.mjs.map +0 -1
  299. package/dist/Page-CLzh5E9w.d.mts +0 -718
  300. package/dist/PageTime-68UPUZpZ.d.mts +0 -29
  301. package/dist/Pose-2qqGzPvb.d.mts +0 -32
  302. package/dist/Released-tURbFmal.d.mts +0 -15
  303. package/dist/Snapshot-CtBVOtuu.d.mts +0 -73
  304. package/dist/Stillness-BwP0RdI4.mjs +0 -157
  305. package/dist/Stillness-BwP0RdI4.mjs.map +0 -1
  306. package/dist/Style-T3ezDYLI.mjs.map +0 -1
  307. package/dist/Url-B7P-TWwL.d.mts +0 -26
  308. package/dist/Url.d.mts +0 -2
  309. package/dist/Url.mjs.map +0 -1
  310. package/dist/Window-BDa8MtNP.d.mts +0 -34
  311. package/dist/connection-C_jWYIwe.mjs.map +0 -1
  312. package/dist/film/Film.mjs.map +0 -1
  313. package/dist/moment/Moment.mjs.map +0 -1
  314. package/dist/plan/index.mjs.map +0 -1
  315. package/dist/pose.inpage-CLq7Mfdr.mjs.map +0 -1
  316. package/dist/presentation/Stage.mjs.map +0 -1
  317. package/dist/presentation/feed.d.mts +0 -20
  318. package/dist/presentation/feed.mjs +0 -18
  319. package/dist/presentation/feed.mjs.map +0 -1
  320. package/dist/providers/Cdp.d.mts +0 -9
  321. package/dist/providers/Cdp.mjs +0 -15
  322. package/dist/providers/Cdp.mjs.map +0 -1
  323. package/dist/providers/Chromium.d.mts +0 -32
  324. package/dist/providers/Chromium.mjs +0 -55
  325. package/dist/providers/Chromium.mjs.map +0 -1
  326. package/dist/providers/Released.d.mts +0 -2
  327. package/dist/providers/Released.mjs +0 -12
  328. package/dist/providers/Released.mjs.map +0 -1
  329. package/dist/stillness/Stillness.d.mts +0 -12
  330. package/dist/stillness/Stillness.mjs +0 -2
  331. package/dist/supervisor/Supervisor.mjs.map +0 -1
  332. package/dist/testing/index.mjs.map +0 -1
  333. package/dist/workerd/Cdp.d.mts +0 -8
  334. package/dist/workerd/Cdp.mjs +0 -13
  335. package/dist/workerd/Cdp.mjs.map +0 -1
  336. package/src/plan/index.ts +0 -36
  337. package/src/providers/Cdp.ts +0 -16
  338. package/src/providers/Chromium.ts +0 -99
  339. package/src/providers/Released.ts +0 -13
  340. package/src/workerd/Cdp.ts +0 -11
  341. /package/dist/{fold.inpage-CyVZQHZL.d.mts → internal/fold.inpage-CyVZQHZL.d.mts} +0 -0
  342. /package/dist/{rolldown-runtime-D7D4PA-g.mjs → internal/rolldown-runtime-D7D4PA-g.mjs} +0 -0
  343. /package/src/{Geometry.ts → internal/geometry.ts} +0 -0
  344. /package/src/{Url.ts → internal/url.ts} +0 -0
  345. /package/src/{stillness → timeline/internal}/utilsBundle.d.ts +0 -0
@@ -1,11 +1,17 @@
1
1
  import { Effect, Schema } from "effect";
2
2
  declare namespace BrowserError_d_exports {
3
- export { BrowserError, Busy, Closed, Consequence, EventHistoryExpired, Failed, InvalidRequest, Limit, NavigationFailed, NotActionable, NotFound, PolicyDenied, PolicyTimeout, Reason, StaleRef, Suspended, Threw, Timeout, call, consequence, failWith, reasonOf, refuse, undispatched };
3
+ export { BrowserError, BrowserErrorReason, Busy, Closed, Consequence, EventHistoryExpired, Failed, InvalidRequest, Limit, NavigationFailed, NotActionable, NotFound, PolicyDenied, PolicyTimeout, StaleRef, Suspended, Threw, Timeout, call, consequence, failWith, isBrowserError, isBrowserErrorReason, reasonOf, refuse, undispatched };
4
4
  }
5
5
  declare const Timeout_base: Schema.Class<Timeout, Schema.TaggedStruct<"Timeout", {
6
6
  readonly millis: Schema.Finite;
7
7
  }>, import("effect/Cause").YieldableError>;
8
- /** The operation did not finish in time. */
8
+ /**
9
+ * The operation did not finish in time.
10
+ *
11
+ * @stability stable
12
+ * @category errors
13
+ * @since 0.3.0
14
+ */
9
15
  declare class Timeout extends Timeout_base {
10
16
  get message(): string;
11
17
  }
@@ -17,40 +23,74 @@ declare const Busy_base: Schema.Class<Busy, Schema.TaggedStruct<"Busy", {
17
23
  /**
18
24
  * The operation waited its turn behind others on its page and was not given one in time, or was
19
25
  * asked to fail fast: the page may be well, only busy.
26
+ *
27
+ * @stability stable
28
+ * @category errors
29
+ * @since 0.3.0
20
30
  */
21
31
  declare class Busy extends Busy_base {
22
32
  get message(): string;
23
33
  }
24
34
  declare const Suspended_base: Schema.Class<Suspended, Schema.TaggedStruct<"Suspended", {}>, import("effect/Cause").YieldableError>;
25
- /** Input is withheld by a scoped suspension; nothing was dispatched. */
35
+ /**
36
+ * Input is withheld by a scoped suspension; nothing was dispatched.
37
+ *
38
+ * @stability stable
39
+ * @category errors
40
+ * @since 0.3.0
41
+ */
26
42
  declare class Suspended extends Suspended_base {
27
43
  get message(): string;
28
44
  }
29
45
  declare const Limit_base: Schema.Class<Limit, Schema.TaggedStruct<"Limit", {
30
46
  readonly maxPages: Schema.Int;
31
47
  }>, import("effect/Cause").YieldableError>;
32
- /** The browser has as many pages open as `maxPages` allows, and none closed in time. */
48
+ /**
49
+ * The browser has as many pages open as `maxPages` allows, and none closed in time.
50
+ *
51
+ * @stability stable
52
+ * @category errors
53
+ * @since 0.3.0
54
+ */
33
55
  declare class Limit extends Limit_base {
34
56
  get message(): string;
35
57
  }
36
58
  declare const StaleRef_base: Schema.Class<StaleRef, Schema.TaggedStruct<"StaleRef", {
37
59
  readonly ref: Schema.String;
38
60
  }>, import("effect/Cause").YieldableError>;
39
- /** A ref from an earlier snapshot no longer names an element on the page. */
61
+ /**
62
+ * A ref from an earlier snapshot no longer names an element on the page.
63
+ *
64
+ * @stability stable
65
+ * @category errors
66
+ * @since 0.3.0
67
+ */
40
68
  declare class StaleRef extends StaleRef_base {
41
69
  get message(): string;
42
70
  }
43
71
  declare const NotFound_base: Schema.Class<NotFound, Schema.TaggedStruct<"NotFound", {
44
72
  readonly target: Schema.String;
45
73
  }>, import("effect/Cause").YieldableError>;
46
- /** What the operation looked for is not on the page. */
74
+ /**
75
+ * What the operation looked for is not on the page.
76
+ *
77
+ * @stability stable
78
+ * @category errors
79
+ * @since 0.3.0
80
+ */
47
81
  declare class NotFound extends NotFound_base {
48
82
  get message(): string;
49
83
  }
50
84
  declare const NotActionable_base: Schema.Class<NotActionable, Schema.TaggedStruct<"NotActionable", {
51
85
  readonly detail: Schema.String;
52
86
  }>, import("effect/Cause").YieldableError>;
53
- /** The element exists but cannot take this input: covered, disabled, hidden or the wrong kind. */
87
+ /**
88
+ * The element exists but cannot take this input: covered, disabled, hidden or the wrong kind.
89
+ *
90
+ * @stability stable
91
+ * @category errors
92
+ * @since 0.3.0
93
+ */
54
94
  declare class NotActionable extends NotActionable_base {
55
95
  get message(): string;
56
96
  }
@@ -58,7 +98,13 @@ declare const NavigationFailed_base: Schema.Class<NavigationFailed, Schema.Tagge
58
98
  readonly url: Schema.String;
59
99
  readonly detail: Schema.String;
60
100
  }>, import("effect/Cause").YieldableError>;
61
- /** A navigation failed, for example on a DNS error or a refused connection. */
101
+ /**
102
+ * A navigation failed, for example on a DNS error or a refused connection.
103
+ *
104
+ * @stability stable
105
+ * @category errors
106
+ * @since 0.3.0
107
+ */
62
108
  declare class NavigationFailed extends NavigationFailed_base {
63
109
  get message(): string;
64
110
  }
@@ -68,6 +114,10 @@ declare const Closed_base: Schema.Class<Closed, Schema.TaggedStruct<"Closed", {
68
114
  /**
69
115
  * The page is gone: it was closed (`page`) or crashed, or its browser was lost for one of the
70
116
  * browser's `DisconnectCause`s.
117
+ *
118
+ * @stability stable
119
+ * @category errors
120
+ * @since 0.3.0
71
121
  */
72
122
  declare class Closed extends Closed_base {
73
123
  get message(): string;
@@ -75,7 +125,13 @@ declare class Closed extends Closed_base {
75
125
  declare const InvalidRequest_base: Schema.Class<InvalidRequest, Schema.TaggedStruct<"InvalidRequest", {
76
126
  readonly detail: Schema.String;
77
127
  }>, import("effect/Cause").YieldableError>;
78
- /** The request itself is invalid, such as a ref that is not a ref or a point off the screen. */
128
+ /**
129
+ * The request itself is invalid, such as a ref that is not a ref or a point off the screen.
130
+ *
131
+ * @stability stable
132
+ * @category errors
133
+ * @since 0.3.0
134
+ */
79
135
  declare class InvalidRequest extends InvalidRequest_base {
80
136
  get message(): string;
81
137
  }
@@ -84,14 +140,26 @@ declare const PolicyDenied_base: Schema.Class<PolicyDenied, Schema.TaggedStruct<
84
140
  /** What made the policy deny, such as the failure of the judge it asked. */
85
141
  readonly cause: Schema.optional<Schema.Defect>;
86
142
  }>, import("effect/Cause").YieldableError>;
87
- /** The input policy refused the action before any input was sent. */
143
+ /**
144
+ * The input policy refused the action before any input was sent.
145
+ *
146
+ * @stability stable
147
+ * @category errors
148
+ * @since 0.3.0
149
+ */
88
150
  declare class PolicyDenied extends PolicyDenied_base {
89
151
  get message(): string;
90
152
  }
91
153
  declare const PolicyTimeout_base: Schema.Class<PolicyTimeout, Schema.TaggedStruct<"PolicyTimeout", {
92
154
  readonly millis: Schema.Finite;
93
155
  }>, import("effect/Cause").YieldableError>;
94
- /** The input policy did not release its hold within its own bound. */
156
+ /**
157
+ * The input policy did not release its hold within its own bound.
158
+ *
159
+ * @stability stable
160
+ * @category errors
161
+ * @since 0.3.0
162
+ */
95
163
  declare class PolicyTimeout extends PolicyTimeout_base {
96
164
  get message(): string;
97
165
  }
@@ -100,56 +168,147 @@ declare const EventHistoryExpired_base: Schema.Class<EventHistoryExpired, Schema
100
168
  readonly oldest: Schema.Int;
101
169
  readonly latest: Schema.Int;
102
170
  }>, import("effect/Cause").YieldableError>;
103
- /** The requested event cursor fell behind the browser's bounded replay history. */
171
+ /**
172
+ * The requested event cursor fell behind the browser's bounded replay history.
173
+ *
174
+ * @stability stable
175
+ * @category errors
176
+ * @since 0.3.0
177
+ */
104
178
  declare class EventHistoryExpired extends EventHistoryExpired_base {
105
179
  get message(): string;
106
180
  }
107
181
  declare const Failed_base: Schema.Class<Failed, Schema.TaggedStruct<"Failed", {
108
182
  readonly detail: Schema.String;
109
183
  }>, import("effect/Cause").YieldableError>;
110
- /** The browser, the connection or the provider failed in a way the other reasons do not cover. */
184
+ /**
185
+ * The browser, the connection or the provider failed in a way the other reasons do not cover.
186
+ *
187
+ * @stability stable
188
+ * @category errors
189
+ * @since 0.3.0
190
+ */
111
191
  declare class Failed extends Failed_base {
112
192
  get message(): string;
113
193
  }
114
194
  declare const Threw_base: Schema.Class<Threw, Schema.TaggedStruct<"Threw", {}>, import("effect/Cause").YieldableError>;
115
- /** Caller code threw in the page's main world. Its source and payload stay private. */
195
+ /**
196
+ * Caller code threw in the page's main world. Its source and payload stay private.
197
+ *
198
+ * @stability stable
199
+ * @category errors
200
+ * @since 0.3.0
201
+ */
116
202
  declare class Threw extends Threw_base {
117
203
  get message(): string;
118
204
  }
119
- declare const Reason: Schema.Union<readonly [typeof Timeout, typeof Busy, typeof Suspended, typeof Limit, typeof StaleRef, typeof NotFound, typeof NotActionable, typeof NavigationFailed, typeof Closed, typeof InvalidRequest, typeof PolicyDenied, typeof PolicyTimeout, typeof EventHistoryExpired, typeof Failed, typeof Threw]>;
120
- type Reason = typeof Reason.Type;
205
+ /**
206
+ * What went wrong, as `BrowserError`'s `reason`.
207
+ *
208
+ * @stability stable
209
+ * @category errors
210
+ * @since 0.3.0
211
+ */
212
+ declare const BrowserErrorReason: Schema.Union<readonly [typeof Timeout, typeof Busy, typeof Suspended, typeof Limit, typeof StaleRef, typeof NotFound, typeof NotActionable, typeof NavigationFailed, typeof Closed, typeof InvalidRequest, typeof PolicyDenied, typeof PolicyTimeout, typeof EventHistoryExpired, typeof Failed, typeof Threw]>;
213
+ /**
214
+ * @stability stable
215
+ * @category errors
216
+ * @since 0.3.0
217
+ */
218
+ type BrowserErrorReason = typeof BrowserErrorReason.Type;
121
219
  declare const BrowserError_base: Schema.Class<BrowserError, Schema.TaggedStruct<"BrowserError", {
122
220
  readonly operation: Schema.String;
123
221
  readonly reason: Schema.Union<readonly [typeof Timeout, typeof Busy, typeof Suspended, typeof Limit, typeof StaleRef, typeof NotFound, typeof NotActionable, typeof NavigationFailed, typeof Closed, typeof InvalidRequest, typeof PolicyDenied, typeof PolicyTimeout, typeof EventHistoryExpired, typeof Failed, typeof Threw]>;
124
222
  readonly dispatched: Schema.Boolean;
125
223
  }>, import("effect/Cause").YieldableError>;
224
+ /**
225
+ * @stability stable
226
+ * @category errors
227
+ * @since 0.3.0
228
+ */
126
229
  declare class BrowserError extends BrowserError_base {
127
230
  get message(): string;
128
231
  }
232
+ /**
233
+ * Whether a value is a `BrowserError`.
234
+ *
235
+ * @stability stable
236
+ * @category guards
237
+ * @since 0.3.0
238
+ */
239
+ declare const isBrowserError: (u: unknown) => u is BrowserError;
240
+ /**
241
+ * Whether a value is one of `BrowserError`'s reasons.
242
+ *
243
+ * @stability stable
244
+ * @category guards
245
+ * @since 0.3.0
246
+ */
247
+ declare const isBrowserErrorReason: (u: unknown) => u is BrowserErrorReason;
129
248
  /**
130
249
  * What a failure leaves. `lost` is `"page"` when the page is gone and its browser stands, and
131
250
  * `"session"` when the browser is gone with its pages. `repeat` says whether the call can be made
132
251
  * again, on what still stands: `"safe"`, as nothing reached the browser; `"check"`, as it may have
133
- * taken effect, so look first, as a Plan expectation does; `"pointless"`, as it fails again unless
252
+ * taken effect, so look first, as a walk's expectation does; `"pointless"`, as it fails again unless
134
253
  * something changes, such as
135
254
  * a new ref; or `"resume"`, reading events again from a newer cursor.
255
+ *
256
+ * @stability stable
257
+ * @category models
258
+ * @since 0.3.0
136
259
  */
137
260
  interface Consequence {
138
261
  readonly lost: "nothing" | "page" | "session";
139
262
  readonly repeat: "safe" | "check" | "pointless" | "resume";
140
263
  }
141
- /** What `error` leaves, from its reason and whether it was dispatched alone. */
264
+ /**
265
+ * What `error` leaves, from its reason and whether it was dispatched alone.
266
+ *
267
+ * @stability stable
268
+ * @category combinators
269
+ * @since 0.3.0
270
+ */
142
271
  declare const consequence: ({ reason, dispatched }: BrowserError) => Consequence;
143
- /** A failure before any of the operation's input reached the page. */
144
- declare const undispatched: (operation: string, reason: Reason) => BrowserError;
145
- /** Fail an operation before dispatch, preserving its typed reason. */
146
- declare const failWith: (operation: string, reason: Reason) => Effect.Effect<never, BrowserError, never>;
147
- /** Refuse an invalid request before sending anything. */
272
+ /**
273
+ * A failure before any of the operation's input reached the page.
274
+ *
275
+ * @stability stable
276
+ * @category constructors
277
+ * @since 0.3.0
278
+ */
279
+ declare const undispatched: (operation: string, reason: BrowserErrorReason) => BrowserError;
280
+ /**
281
+ * Fail an operation before dispatch, preserving its typed reason.
282
+ *
283
+ * @stability stable
284
+ * @category constructors
285
+ * @since 0.3.0
286
+ */
287
+ declare const failWith: (operation: string, reason: BrowserErrorReason) => Effect.Effect<never, BrowserError, never>;
288
+ /**
289
+ * Refuse an invalid request before sending anything.
290
+ *
291
+ * @stability stable
292
+ * @category constructors
293
+ * @since 0.3.0
294
+ */
148
295
  declare const refuse: (operation: string, detail: string) => Effect.Effect<never, BrowserError, never>;
149
- /** Translate a protocol/provider failure, redacting diagnostic addresses by default. */
150
- declare const reasonOf: (cause: unknown, timeoutMillis?: number, closed?: Closed["cause"], redact?: (message: string) => string) => Reason;
151
- /** A native call whose action wrapper owns any later dispatch evidence. */
296
+ /**
297
+ * Translate a protocol/provider failure, redacting diagnostic addresses by default.
298
+ *
299
+ * @stability stable
300
+ * @category constructors
301
+ * @since 0.3.0
302
+ */
303
+ declare const reasonOf: (cause: unknown, timeoutMillis?: number, closed?: Closed["cause"], redact?: (message: string) => string) => BrowserErrorReason;
304
+ /**
305
+ * A native call whose action wrapper owns any later dispatch evidence.
306
+ *
307
+ * @stability stable
308
+ * @category constructors
309
+ * @since 0.3.0
310
+ */
152
311
  declare const call: <A>(operation: string, run: () => Promise<A>, closedBy: () => Closed["cause"], timeoutMillis?: number) => Effect.Effect<A, BrowserError, never>;
153
312
  //#endregion
154
- export { reasonOf as C, failWith as S, undispatched as T, Suspended as _, Consequence as a, call as b, InvalidRequest as c, NotActionable as d, NotFound as f, StaleRef as g, Reason as h, Closed as i, Limit as l, PolicyTimeout as m, BrowserError_d_exports as n, EventHistoryExpired as o, PolicyDenied as p, Busy as r, Failed as s, BrowserError as t, NavigationFailed as u, Threw as v, refuse as w, consequence as x, Timeout as y };
155
- //# sourceMappingURL=BrowserError-BlcmLVzn.d.mts.map
313
+ export { isBrowserError as C, undispatched as D, refuse as E, failWith as S, reasonOf as T, Suspended as _, Closed as a, call as b, Failed as c, NavigationFailed as d, NotActionable as f, StaleRef as g, PolicyTimeout as h, Busy as i, InvalidRequest as l, PolicyDenied as m, BrowserErrorReason as n, Consequence as o, NotFound as p, BrowserError_d_exports as r, EventHistoryExpired as s, BrowserError as t, Limit as u, Threw as v, isBrowserErrorReason as w, consequence as x, Timeout as y };
314
+ //# sourceMappingURL=BrowserError-CsuRYcDX.d.mts.map
@@ -8,7 +8,13 @@ declare const PageOpened_base: Schema.Class<PageOpened, Schema.TaggedStruct<"Pag
8
8
  readonly url: Schema.String;
9
9
  readonly opener: Schema.optional<Schema.String>;
10
10
  }>, {}>;
11
- /** A page opened, and the page that opened it, as a link or `window.open` does, if one did. */
11
+ /**
12
+ * A page opened, and the page that opened it, as a link or `window.open` does, if one did.
13
+ *
14
+ * @stability stable
15
+ * @category schemas
16
+ * @since 0.3.0
17
+ */
12
18
  declare class PageOpened extends PageOpened_base {}
13
19
  declare const PageClosed_base: Schema.Class<PageClosed, Schema.TaggedStruct<"PageClosed", {
14
20
  readonly at: Schema.Finite;
@@ -18,6 +24,10 @@ declare const PageClosed_base: Schema.Class<PageClosed, Schema.TaggedStruct<"Pag
18
24
  /**
19
25
  * The page closed (`page`), or crashed and was closed (`crashed`). A page lost with its browser
20
26
  * has no event of its own: `Disconnected` stands for all of them.
27
+ *
28
+ * @stability stable
29
+ * @category schemas
30
+ * @since 0.3.0
21
31
  */
22
32
  declare class PageClosed extends PageClosed_base {}
23
33
  declare const PageUntracked_base: Schema.Class<PageUntracked, Schema.TaggedStruct<"PageUntracked", {
@@ -28,6 +38,10 @@ declare const PageUntracked_base: Schema.Class<PageUntracked, Schema.TaggedStruc
28
38
  /**
29
39
  * A tab the site opened that the library could not track, as its registration failed with
30
40
  * `detail`. A tab that closed as it opened has no event.
41
+ *
42
+ * @stability stable
43
+ * @category schemas
44
+ * @since 0.3.0
31
45
  */
32
46
  declare class PageUntracked extends PageUntracked_base {}
33
47
  declare const Navigated_base: Schema.Class<Navigated, Schema.TaggedStruct<"Navigated", {
@@ -45,6 +59,10 @@ declare const Navigated_base: Schema.Class<Navigated, Schema.TaggedStruct<"Navig
45
59
  /**
46
60
  * The page's main frame moved to `url`: into a new document, or within the current one
47
61
  * (`sameDocument`), as `pushState` and fragment links do. Frames carry the document they followed.
62
+ *
63
+ * @stability stable
64
+ * @category schemas
65
+ * @since 0.3.0
48
66
  */
49
67
  declare class Navigated extends Navigated_base {}
50
68
  declare const PageLoaded_base: Schema.Class<PageLoaded, Schema.TaggedStruct<"PageLoaded", {
@@ -52,25 +70,52 @@ declare const PageLoaded_base: Schema.Class<PageLoaded, Schema.TaggedStruct<"Pag
52
70
  readonly page: Schema.String;
53
71
  readonly state: Schema.Literals<readonly ["domcontentloaded", "load"]>;
54
72
  }>, {}>;
55
- /** The page's document finished parsing (`domcontentloaded`) or loading (`load`). */
73
+ /**
74
+ * The page's document finished parsing (`domcontentloaded`) or loading (`load`).
75
+ *
76
+ * @stability stable
77
+ * @category schemas
78
+ * @since 0.3.0
79
+ */
56
80
  declare class PageLoaded extends PageLoaded_base {}
57
81
  /**
58
82
  * Why a browser was lost to its owner: its connection dropped (`connection`), its provider ended
59
83
  * its session, at or after the session's `expiresAt` (`session`), or its owner released it.
84
+ *
85
+ * @stability stable
86
+ * @category schemas
87
+ * @since 0.3.0
60
88
  */
61
89
  declare const DisconnectCause: Schema.Literals<readonly ["connection", "session", "released"]>;
90
+ /**
91
+ * @stability stable
92
+ * @category models
93
+ * @since 0.3.0
94
+ */
62
95
  type DisconnectCause = typeof DisconnectCause.Type;
63
96
  declare const Disconnected_base: Schema.Class<Disconnected, Schema.TaggedStruct<"Disconnected", {
64
97
  readonly at: Schema.Finite;
65
98
  readonly cause: Schema.Literals<readonly ["connection", "session", "released"]>;
66
99
  }>, {}>;
67
- /** The browser was lost to its owner, with every page in it. It happens once. */
100
+ /**
101
+ * The browser was lost to its owner, with every page in it. It happens once.
102
+ *
103
+ * @stability stable
104
+ * @category schemas
105
+ * @since 0.3.0
106
+ */
68
107
  declare class Disconnected extends Disconnected_base {}
69
108
  declare const SessionEnding_base: Schema.Class<SessionEnding, Schema.TaggedStruct<"SessionEnding", {
70
109
  readonly at: Schema.Finite;
71
110
  readonly expiresAt: Schema.DateTimeUtc;
72
111
  }>, {}>;
73
- /** The provider ends this browser's session at `expiresAt`, a wall-clock instant. */
112
+ /**
113
+ * The provider ends this browser's session at `expiresAt`, a wall-clock instant.
114
+ *
115
+ * @stability stable
116
+ * @category schemas
117
+ * @since 0.3.0
118
+ */
74
119
  declare class SessionEnding extends SessionEnding_base {}
75
120
  /**
76
121
  * The words around a subject that say which one it is, each bound to it in the page rather than
@@ -78,6 +123,10 @@ declare class SessionEnding extends SessionEnding_base {}
78
123
  * `column` the header over it; elsewhere, `label` is the words just before it in its row, item,
79
124
  * group or block, at most 40 characters. `heading` is the nearest heading above it, left out for
80
125
  * what is pinned to the viewport. Row, column and heading are at most 60 characters.
126
+ *
127
+ * @stability stable
128
+ * @category schemas
129
+ * @since 0.3.0
81
130
  */
82
131
  declare const SubjectContext: Schema.Struct<{
83
132
  readonly row: Schema.optional<Schema.String>;
@@ -85,6 +134,11 @@ declare const SubjectContext: Schema.Struct<{
85
134
  readonly label: Schema.optional<Schema.String>;
86
135
  readonly heading: Schema.optional<Schema.String>;
87
136
  }>;
137
+ /**
138
+ * @stability stable
139
+ * @category models
140
+ * @since 0.3.0
141
+ */
88
142
  type SubjectContext = typeof SubjectContext.Type;
89
143
  declare const Subject_base: Schema.Class<Subject, Schema.Struct<{
90
144
  readonly role: Schema.NullOr<Schema.String>;
@@ -98,19 +152,34 @@ declare const Subject_base: Schema.Class<Subject, Schema.Struct<{
98
152
  }>;
99
153
  }>, {}>;
100
154
  /**
101
- * What an input acted on, or what `Page.find` found, as the page named it then: its role (null
155
+ * What an input acted on, or what `Snapshot.find` found, as the page named it then: its role (null
102
156
  * when it has none), its accessible name (empty when it has none), its lowercase tag and its
103
157
  * context. For a point, it is the control under the point, or else the element painted there.
104
158
  * Unlike a ref, it keeps its meaning after the page changes.
159
+ *
160
+ * @stability stable
161
+ * @category schemas
162
+ * @since 0.3.0
105
163
  */
106
164
  declare class Subject extends Subject_base {}
107
- /** An element's box in viewport CSS pixels; it may lie partly or wholly outside the viewport. */
165
+ /**
166
+ * An element's box in viewport CSS pixels; it may lie partly or wholly outside the viewport.
167
+ *
168
+ * @stability stable
169
+ * @category schemas
170
+ * @since 0.3.0
171
+ */
108
172
  declare const Box: Schema.Struct<{
109
173
  readonly x: Schema.Finite;
110
174
  readonly y: Schema.Finite;
111
175
  readonly width: Schema.Finite;
112
176
  readonly height: Schema.Finite;
113
177
  }>;
178
+ /**
179
+ * @stability stable
180
+ * @category models
181
+ * @since 0.3.0
182
+ */
114
183
  type Box = typeof Box.Type;
115
184
  declare const Action_base: Schema.Class<Action, Schema.TaggedStruct<"Action", {
116
185
  readonly at: Schema.Finite;
@@ -213,6 +282,10 @@ declare const Action_base: Schema.Class<Action, Schema.TaggedStruct<"Action", {
213
282
  * action that failed before finding its target has neither. Point actions carry the viewport
214
283
  * point they used. `correlation` is the id its caller gave it with `Page.correlate`, such as a
215
284
  * model's tool call id.
285
+ *
286
+ * @stability stable
287
+ * @category schemas
288
+ * @since 0.3.0
216
289
  */
217
290
  declare class Action extends Action_base {}
218
291
  declare const ActionAnnounced_base: Schema.Class<ActionAnnounced, Schema.TaggedStruct<"ActionAnnounced", {
@@ -237,6 +310,10 @@ declare const ActionAnnounced_base: Schema.Class<ActionAnnounced, Schema.TaggedS
237
310
  * target into view comes before. `x` and `y` are where the pointer goes, in viewport CSS pixels; for
238
311
  * a drag, its start. Input with no pointer travel, such as keys or typing into the focused field,
239
312
  * announces nothing.
313
+ *
314
+ * @stability stable
315
+ * @category schemas
316
+ * @since 0.3.0
240
317
  */
241
318
  declare class ActionAnnounced extends ActionAnnounced_base {}
242
319
  declare const TrackPlanned_base: Schema.Class<TrackPlanned, Schema.TaggedStruct<"TrackPlanned", {
@@ -252,7 +329,13 @@ declare const TrackPlanned_base: Schema.Class<TrackPlanned, Schema.TaggedStruct<
252
329
  readonly afterMillis: Schema.Finite;
253
330
  }>>;
254
331
  }>, {}>;
255
- /** One whole glide, published before its first input. Offsets use the host monotonic clock. */
332
+ /**
333
+ * One whole glide, published before its first input. Offsets use the host monotonic clock.
334
+ *
335
+ * @stability stable
336
+ * @category schemas
337
+ * @since 0.3.0
338
+ */
256
339
  declare class TrackPlanned extends TrackPlanned_base {}
257
340
  declare const TrackPerformed_base: Schema.Class<TrackPerformed, Schema.TaggedStruct<"TrackPerformed", {
258
341
  readonly x: Schema.Finite;
@@ -267,6 +350,10 @@ declare const TrackPerformed_base: Schema.Class<TrackPerformed, Schema.TaggedStr
267
350
  * The submitted prefix of a glide. `plan` is its TrackPlanned envelope sequence; `dispatched`
268
351
  * counts samples. `complete` means every sample was submitted, not acknowledged by the browser.
269
352
  * The terminal point clips a canceled plan so a compositor never draws its unrealized future.
353
+ *
354
+ * @stability stable
355
+ * @category schemas
356
+ * @since 0.3.0
270
357
  */
271
358
  declare class TrackPerformed extends TrackPerformed_base {}
272
359
  declare const PointerPressed_base: Schema.Class<PointerPressed, Schema.TaggedStruct<"PointerPressed", {
@@ -277,6 +364,11 @@ declare const PointerPressed_base: Schema.Class<PointerPressed, Schema.TaggedStr
277
364
  readonly button: Schema.Literals<readonly ["left", "right", "middle"]>;
278
365
  readonly clickCount: Schema.Int;
279
366
  }>, {}>;
367
+ /**
368
+ * @stability stable
369
+ * @category schemas
370
+ * @since 0.3.0
371
+ */
280
372
  declare class PointerPressed extends PointerPressed_base {}
281
373
  declare const PointerReleased_base: Schema.Class<PointerReleased, Schema.TaggedStruct<"PointerReleased", {
282
374
  readonly x: Schema.Finite;
@@ -286,6 +378,11 @@ declare const PointerReleased_base: Schema.Class<PointerReleased, Schema.TaggedS
286
378
  readonly button: Schema.Literals<readonly ["left", "right", "middle"]>;
287
379
  readonly clickCount: Schema.Int;
288
380
  }>, {}>;
381
+ /**
382
+ * @stability stable
383
+ * @category schemas
384
+ * @since 0.3.0
385
+ */
289
386
  declare class PointerReleased extends PointerReleased_base {}
290
387
  declare const WheelScrolled_base: Schema.Class<WheelScrolled, Schema.TaggedStruct<"WheelScrolled", {
291
388
  readonly x: Schema.Finite;
@@ -295,6 +392,11 @@ declare const WheelScrolled_base: Schema.Class<WheelScrolled, Schema.TaggedStruc
295
392
  readonly dx: Schema.Finite;
296
393
  readonly dy: Schema.Finite;
297
394
  }>, {}>;
395
+ /**
396
+ * @stability stable
397
+ * @category schemas
398
+ * @since 0.3.0
399
+ */
298
400
  declare class WheelScrolled extends WheelScrolled_base {}
299
401
  declare const KeyChanged_base: Schema.Class<KeyChanged, Schema.TaggedStruct<"KeyChanged", {
300
402
  readonly at: Schema.Finite;
@@ -302,22 +404,49 @@ declare const KeyChanged_base: Schema.Class<KeyChanged, Schema.TaggedStruct<"Key
302
404
  readonly key: Schema.String;
303
405
  readonly phase: Schema.Literals<readonly ["down", "up"]>;
304
406
  }>, {}>;
407
+ /**
408
+ * @stability stable
409
+ * @category schemas
410
+ * @since 0.3.0
411
+ */
305
412
  declare class KeyChanged extends KeyChanged_base {}
306
413
  declare const TextInserted_base: Schema.Class<TextInserted, Schema.TaggedStruct<"TextInserted", {
307
414
  readonly at: Schema.Finite;
308
415
  readonly page: Schema.String;
309
416
  readonly text: Schema.String;
310
417
  }>, {}>;
311
- /** Literal text insertion has no corresponding key events, including Unicode and newlines. */
418
+ /**
419
+ * Literal text insertion has no corresponding key events, including Unicode and newlines.
420
+ *
421
+ * @stability stable
422
+ * @category schemas
423
+ * @since 0.3.0
424
+ */
312
425
  declare class TextInserted extends TextInserted_base {}
313
426
  declare const CursorChanged_base: Schema.Class<CursorChanged, Schema.TaggedStruct<"CursorChanged", {
314
427
  readonly at: Schema.Finite;
315
428
  readonly page: Schema.String;
316
429
  readonly cursor: Schema.String;
317
430
  }>, {}>;
318
- /** The target's CSS cursor, obtained during target resolution without another browser call. */
431
+ /**
432
+ * The target's CSS cursor, obtained during target resolution without another browser call.
433
+ *
434
+ * @stability stable
435
+ * @category schemas
436
+ * @since 0.3.0
437
+ */
319
438
  declare class CursorChanged extends CursorChanged_base {}
439
+ /**
440
+ * @stability stable
441
+ * @category schemas
442
+ * @since 0.3.0
443
+ */
320
444
  declare const TrackEvent: Schema.Union<readonly [typeof ActionAnnounced, typeof TrackPlanned, typeof TrackPerformed, typeof PointerPressed, typeof PointerReleased, typeof WheelScrolled, typeof KeyChanged, typeof TextInserted, typeof CursorChanged]>;
445
+ /**
446
+ * @stability stable
447
+ * @category models
448
+ * @since 0.3.0
449
+ */
321
450
  type TrackEvent = typeof TrackEvent.Type;
322
451
  declare const DialogShown_base: Schema.Class<DialogShown, Schema.TaggedStruct<"DialogShown", {
323
452
  readonly at: Schema.Finite;
@@ -329,6 +458,10 @@ declare const DialogShown_base: Schema.Class<DialogShown, Schema.TaggedStruct<"D
329
458
  /**
330
459
  * A JavaScript dialog appeared; its completed answer, or a failed response: an alert or a leave-page prompt accepted, a
331
460
  * confirm or a prompt dismissed, as if its Cancel were pressed.
461
+ *
462
+ * @stability stable
463
+ * @category schemas
464
+ * @since 0.3.0
332
465
  */
333
466
  declare class DialogShown extends DialogShown_base {}
334
467
  declare const RequestRefused_base: Schema.Class<RequestRefused, Schema.TaggedStruct<"RequestRefused", {
@@ -343,17 +476,39 @@ declare const RequestRefused_base: Schema.Class<RequestRefused, Schema.TaggedStr
343
476
  readonly timeoutMillis: Schema.optional<Schema.Finite>;
344
477
  }>>;
345
478
  }>, {}>;
346
- /** A context policy refused traffic; page is present only when its containing page was established.
347
- * Worker and out-of-process iframe requests may omit it while retaining proven context ownership. */
479
+ /**
480
+ * A context policy refused traffic; page is present only when its containing page was established.
481
+ * Worker and out-of-process iframe requests may omit it while retaining proven context ownership.
482
+ *
483
+ * @stability stable
484
+ * @category schemas
485
+ * @since 0.3.0
486
+ */
348
487
  declare class RequestRefused extends RequestRefused_base {}
488
+ /**
489
+ * @stability stable
490
+ * @category schemas
491
+ * @since 0.3.0
492
+ */
349
493
  declare const BrowserEvent: Schema.Union<readonly [typeof RequestRefused, typeof PageOpened, typeof PageClosed, typeof PageUntracked, typeof Navigated, typeof PageLoaded, typeof Action, typeof ActionAnnounced, typeof TrackPlanned, typeof TrackPerformed, typeof PointerPressed, typeof PointerReleased, typeof WheelScrolled, typeof KeyChanged, typeof TextInserted, typeof CursorChanged, typeof DialogShown, typeof Disconnected, typeof SessionEnding]>;
494
+ /**
495
+ * @stability stable
496
+ * @category models
497
+ * @since 0.3.0
498
+ */
350
499
  type BrowserEvent = typeof BrowserEvent.Type;
351
500
  declare const RecordedEvent_base: Schema.Class<RecordedEvent, Schema.Struct<{
352
501
  readonly sequence: Schema.Int;
353
502
  readonly event: Schema.Union<readonly [typeof RequestRefused, typeof PageOpened, typeof PageClosed, typeof PageUntracked, typeof Navigated, typeof PageLoaded, typeof Action, typeof ActionAnnounced, typeof TrackPlanned, typeof TrackPerformed, typeof PointerPressed, typeof PointerReleased, typeof WheelScrolled, typeof KeyChanged, typeof TextInserted, typeof CursorChanged, typeof DialogShown, typeof Disconnected, typeof SessionEnding]>;
354
503
  }>, {}>;
355
- /** A position in the browser's one replayable event history. Sequences begin at one. */
504
+ /**
505
+ * A position in the browser's one replayable event history. Sequences begin at one.
506
+ *
507
+ * @stability stable
508
+ * @category schemas
509
+ * @since 0.3.0
510
+ */
356
511
  declare class RecordedEvent extends RecordedEvent_base {}
357
512
  //#endregion
358
513
  export { TextInserted as C, WheelScrolled as D, TrackPlanned as E, SubjectContext as S, TrackPerformed as T, PointerReleased as _, BrowserEvent_d_exports as a, SessionEnding as b, DisconnectCause as c, Navigated as d, PageClosed as f, PointerPressed as g, PageUntracked as h, BrowserEvent as i, Disconnected as l, PageOpened as m, ActionAnnounced as n, CursorChanged as o, PageLoaded as p, Box as r, DialogShown as s, Action as t, KeyChanged as u, RecordedEvent as v, TrackEvent as w, Subject as x, RequestRefused as y };
359
- //# sourceMappingURL=BrowserEvent-C2p-NwuU.d.mts.map
514
+ //# sourceMappingURL=BrowserEvent-tGPYYf6R.d.mts.map