@remotion/renderer 4.0.364 → 4.0.366

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 (646) hide show
  1. package/package.json +12 -12
  2. package/.prettierignore +0 -2
  3. package/dist/test/actual-concurrency.test.d.ts +0 -1
  4. package/dist/test/artifacts.test.d.ts +0 -1
  5. package/dist/test/asset-calculation.test.d.ts +0 -1
  6. package/dist/test/asset-compression.test.d.ts +0 -1
  7. package/dist/test/avoid-ffmpeg-stackoverflow.test.d.ts +0 -1
  8. package/dist/test/browser-log-message.test.d.ts +0 -1
  9. package/dist/test/calculate-atempo.test.d.ts +0 -1
  10. package/dist/test/compositor-rust.test.d.ts +0 -1
  11. package/dist/test/crf.test.d.ts +0 -1
  12. package/dist/test/derive-codec-from-file-extension.test.d.ts +0 -1
  13. package/dist/test/dont-skip-assets.test.d.ts +0 -1
  14. package/dist/test/download-file.test.d.ts +0 -1
  15. package/dist/test/even-dimensions.test.d.ts +0 -1
  16. package/dist/test/extra-frames-to-capture.test.d.ts +0 -1
  17. package/dist/test/extract-audio.test.d.ts +0 -1
  18. package/dist/test/extract-frame-rust.test.d.ts +0 -1
  19. package/dist/test/ffmpeg-filters.test.d.ts +0 -1
  20. package/dist/test/ffmpeg-merge-filter.test.d.ts +0 -1
  21. package/dist/test/ffmpeg-volume-expression.test.d.ts +0 -1
  22. package/dist/test/file-extension.test.d.ts +0 -1
  23. package/dist/test/find-closest-package-json.test.d.ts +0 -1
  24. package/dist/test/flatten-volume-array.test.d.ts +0 -1
  25. package/dist/test/format-logs.test.d.ts +0 -1
  26. package/dist/test/frame-padded-index.test.d.ts +0 -1
  27. package/dist/test/frame.test.d.ts +0 -1
  28. package/dist/test/get-assets-for-markup.d.ts +0 -8
  29. package/dist/test/get-audio-channels.test.d.ts +0 -1
  30. package/dist/test/get-bundle-url-from-serve-url.test.d.ts +0 -1
  31. package/dist/test/get-silent-parts.test.d.ts +0 -1
  32. package/dist/test/guess-extension-for-media.test.d.ts +0 -1
  33. package/dist/test/handle-weird-file-names.test.d.ts +0 -1
  34. package/dist/test/log-level.test.d.ts +0 -1
  35. package/dist/test/mime-types.test.d.ts +0 -1
  36. package/dist/test/offthread-extract-url.test.d.ts +0 -1
  37. package/dist/test/parse-ffmpeg-progress.test.d.ts +0 -1
  38. package/dist/test/partitions.test.d.ts +0 -1
  39. package/dist/test/pixel-format.test.d.ts +0 -1
  40. package/dist/test/port-config.test.d.ts +0 -1
  41. package/dist/test/port-selection.test.d.ts +0 -1
  42. package/dist/test/prores-profile.test.d.ts +0 -1
  43. package/dist/test/render-still.test.d.ts +0 -1
  44. package/dist/test/rust-errors.test.d.ts +0 -1
  45. package/dist/test/rust-get-video-metadata.test.d.ts +0 -1
  46. package/dist/test/rust-memory-usage.test.d.ts +0 -1
  47. package/dist/test/sanitize-file-path.test.d.ts +0 -1
  48. package/dist/test/serve-url.test.d.ts +0 -1
  49. package/dist/test/symbolicate-remote-stack.test.d.ts +0 -1
  50. package/dist/test/validate-concurrency.test.d.ts +0 -1
  51. package/dist/test/validate-config-stitcher.test.d.ts +0 -1
  52. package/dist/test/validate-config.test.d.ts +0 -1
  53. package/dist/test/validate-even-dimensions-with-codec.test.d.ts +0 -1
  54. package/dist/test/validate-image-format.test.d.ts +0 -1
  55. package/dist/test/webpack-to-serve-url.test.d.ts +0 -1
  56. package/ensure-browser.mjs +0 -3337
  57. package/package/dist/assets/apply-tone-frequency.d.ts +0 -11
  58. package/package/dist/assets/apply-tone-frequency.js +0 -34
  59. package/package/dist/assets/calculate-asset-positions.d.ts +0 -3
  60. package/package/dist/assets/calculate-asset-positions.js +0 -72
  61. package/package/dist/assets/calculate-atempo.d.ts +0 -1
  62. package/package/dist/assets/calculate-atempo.js +0 -16
  63. package/package/dist/assets/convert-assets-to-file-urls.d.ts +0 -13
  64. package/package/dist/assets/convert-assets-to-file-urls.js +0 -36
  65. package/package/dist/assets/download-and-map-assets-to-file.d.ts +0 -37
  66. package/package/dist/assets/download-and-map-assets-to-file.js +0 -312
  67. package/package/dist/assets/download-file.d.ts +0 -18
  68. package/package/dist/assets/download-file.js +0 -135
  69. package/package/dist/assets/download-map.d.ts +0 -55
  70. package/package/dist/assets/download-map.js +0 -63
  71. package/package/dist/assets/ffmpeg-volume-expression.d.ts +0 -12
  72. package/package/dist/assets/ffmpeg-volume-expression.js +0 -96
  73. package/package/dist/assets/flatten-volume-array.d.ts +0 -3
  74. package/package/dist/assets/flatten-volume-array.js +0 -26
  75. package/package/dist/assets/get-audio-channels.d.ts +0 -20
  76. package/package/dist/assets/get-audio-channels.js +0 -78
  77. package/package/dist/assets/inline-audio-mixing.d.ts +0 -22
  78. package/package/dist/assets/inline-audio-mixing.js +0 -189
  79. package/package/dist/assets/read-file.d.ts +0 -7
  80. package/package/dist/assets/read-file.js +0 -97
  81. package/package/dist/assets/round-volume-to-avoid-stack-overflow.d.ts +0 -1
  82. package/package/dist/assets/round-volume-to-avoid-stack-overflow.js +0 -17
  83. package/package/dist/assets/sanitize-filename.d.ts +0 -1
  84. package/package/dist/assets/sanitize-filename.js +0 -58
  85. package/package/dist/assets/sanitize-filepath.d.ts +0 -1
  86. package/package/dist/assets/sanitize-filepath.js +0 -16
  87. package/package/dist/assets/truncate-utf8-bytes.d.ts +0 -1
  88. package/package/dist/assets/truncate-utf8-bytes.js +0 -36
  89. package/package/dist/assets/types.d.ts +0 -18
  90. package/package/dist/assets/types.js +0 -21
  91. package/package/dist/browser/Browser.d.ts +0 -97
  92. package/package/dist/browser/Browser.js +0 -246
  93. package/package/dist/browser/BrowserFetcher.d.ts +0 -33
  94. package/package/dist/browser/BrowserFetcher.js +0 -215
  95. package/package/dist/browser/BrowserPage.d.ts +0 -104
  96. package/package/dist/browser/BrowserPage.js +0 -436
  97. package/package/dist/browser/BrowserRunner.d.ts +0 -33
  98. package/package/dist/browser/BrowserRunner.js +0 -303
  99. package/package/dist/browser/Connection.d.ts +0 -49
  100. package/package/dist/browser/Connection.js +0 -258
  101. package/package/dist/browser/ConsoleMessage.d.ts +0 -42
  102. package/package/dist/browser/ConsoleMessage.js +0 -47
  103. package/package/dist/browser/DOMWorld.d.ts +0 -56
  104. package/package/dist/browser/DOMWorld.js +0 -272
  105. package/package/dist/browser/Errors.d.ts +0 -25
  106. package/package/dist/browser/Errors.js +0 -35
  107. package/package/dist/browser/EvalTypes.d.ts +0 -27
  108. package/package/dist/browser/EvalTypes.js +0 -17
  109. package/package/dist/browser/EventEmitter.d.ts +0 -23
  110. package/package/dist/browser/EventEmitter.js +0 -53
  111. package/package/dist/browser/ExecutionContext.d.ts +0 -34
  112. package/package/dist/browser/ExecutionContext.js +0 -174
  113. package/package/dist/browser/FrameManager.d.ts +0 -89
  114. package/package/dist/browser/FrameManager.js +0 -487
  115. package/package/dist/browser/HTTPRequest.d.ts +0 -29
  116. package/package/dist/browser/HTTPRequest.js +0 -39
  117. package/package/dist/browser/HTTPResponse.d.ts +0 -21
  118. package/package/dist/browser/HTTPResponse.js +0 -41
  119. package/package/dist/browser/JSHandle.d.ts +0 -35
  120. package/package/dist/browser/JSHandle.js +0 -90
  121. package/package/dist/browser/LaunchOptions.d.ts +0 -26
  122. package/package/dist/browser/LaunchOptions.js +0 -17
  123. package/package/dist/browser/Launcher.d.ts +0 -18
  124. package/package/dist/browser/Launcher.js +0 -41
  125. package/package/dist/browser/LifecycleWatcher.d.ts +0 -29
  126. package/package/dist/browser/LifecycleWatcher.js +0 -180
  127. package/package/dist/browser/NetworkEventManager.d.ts +0 -34
  128. package/package/dist/browser/NetworkEventManager.js +0 -85
  129. package/package/dist/browser/NetworkManager.d.ts +0 -37
  130. package/package/dist/browser/NetworkManager.js +0 -246
  131. package/package/dist/browser/NodeWebSocketTransport.d.ts +0 -19
  132. package/package/dist/browser/NodeWebSocketTransport.js +0 -81
  133. package/package/dist/browser/PuppeteerViewport.d.ts +0 -5
  134. package/package/dist/browser/PuppeteerViewport.js +0 -2
  135. package/package/dist/browser/ScreenshotOptions.d.ts +0 -0
  136. package/package/dist/browser/ScreenshotOptions.js +0 -1
  137. package/package/dist/browser/Target.d.ts +0 -72
  138. package/package/dist/browser/Target.js +0 -161
  139. package/package/dist/browser/TaskQueue.d.ts +0 -20
  140. package/package/dist/browser/TaskQueue.js +0 -47
  141. package/package/dist/browser/TimeoutSettings.d.ts +0 -24
  142. package/package/dist/browser/TimeoutSettings.js +0 -62
  143. package/package/dist/browser/assert.d.ts +0 -1
  144. package/package/dist/browser/assert.js +0 -9
  145. package/package/dist/browser/browser-download-progress-bar.d.ts +0 -7
  146. package/package/dist/browser/browser-download-progress-bar.js +0 -31
  147. package/package/dist/browser/devtools-commands.d.ts +0 -274
  148. package/package/dist/browser/devtools-commands.js +0 -2
  149. package/package/dist/browser/devtools-types.d.ts +0 -1263
  150. package/package/dist/browser/devtools-types.js +0 -2
  151. package/package/dist/browser/flaky-errors.d.ts +0 -2
  152. package/package/dist/browser/flaky-errors.js +0 -20
  153. package/package/dist/browser/get-download-destination.d.ts +0 -1
  154. package/package/dist/browser/get-download-destination.js +0 -38
  155. package/package/dist/browser/handle-failed-resource.d.ts +0 -10
  156. package/package/dist/browser/handle-failed-resource.js +0 -21
  157. package/package/dist/browser/mitt/index.d.ts +0 -22
  158. package/package/dist/browser/mitt/index.js +0 -49
  159. package/package/dist/browser/should-log-message.d.ts +0 -24
  160. package/package/dist/browser/should-log-message.js +0 -104
  161. package/package/dist/browser/source-map-getter.d.ts +0 -2
  162. package/package/dist/browser/source-map-getter.js +0 -2
  163. package/package/dist/browser/util.d.ts +0 -37
  164. package/package/dist/browser/util.js +0 -169
  165. package/package/dist/browser-executable.d.ts +0 -1
  166. package/package/dist/browser-executable.js +0 -2
  167. package/package/dist/browser-log.d.ts +0 -6
  168. package/package/dist/browser-log.js +0 -2
  169. package/package/dist/browser.d.ts +0 -2
  170. package/package/dist/browser.js +0 -4
  171. package/package/dist/call-ffmpeg.d.ts +0 -22
  172. package/package/dist/call-ffmpeg.js +0 -53
  173. package/package/dist/can-concat-seamlessly.d.ts +0 -4
  174. package/package/dist/can-concat-seamlessly.js +0 -17
  175. package/package/dist/can-use-parallel-encoding.d.ts +0 -3
  176. package/package/dist/can-use-parallel-encoding.js +0 -19
  177. package/package/dist/chalk/index.d.ts +0 -55
  178. package/package/dist/chalk/index.js +0 -130
  179. package/package/dist/chalk/is-color-supported.d.ts +0 -1
  180. package/package/dist/chalk/is-color-supported.js +0 -55
  181. package/package/dist/check-version-requirements.d.ts +0 -3
  182. package/package/dist/check-version-requirements.js +0 -82
  183. package/package/dist/chunk.d.ts +0 -1
  184. package/package/dist/chunk.js +0 -11
  185. package/package/dist/client.d.ts +0 -3016
  186. package/package/dist/client.js +0 -57
  187. package/package/dist/codec-supports-media.d.ts +0 -9
  188. package/package/dist/codec-supports-media.js +0 -76
  189. package/package/dist/codec.d.ts +0 -4
  190. package/package/dist/codec.js +0 -17
  191. package/package/dist/collect-assets.d.ts +0 -7
  192. package/package/dist/collect-assets.js +0 -38
  193. package/package/dist/combine-audio.d.ts +0 -21
  194. package/package/dist/combine-audio.js +0 -183
  195. package/package/dist/combine-chunks.d.ts +0 -39
  196. package/package/dist/combine-chunks.js +0 -171
  197. package/package/dist/combine-video-streams-seamlessly.d.ts +0 -3
  198. package/package/dist/combine-video-streams-seamlessly.js +0 -8
  199. package/package/dist/combine-video-streams.d.ts +0 -17
  200. package/package/dist/combine-video-streams.js +0 -75
  201. package/package/dist/compositor/compositor.d.ts +0 -22
  202. package/package/dist/compositor/compositor.js +0 -182
  203. package/package/dist/compositor/get-executable-path.d.ts +0 -12
  204. package/package/dist/compositor/get-executable-path.js +0 -95
  205. package/package/dist/compositor/get-explicit-env.d.ts +0 -3
  206. package/package/dist/compositor/get-explicit-env.js +0 -13
  207. package/package/dist/compositor/make-file-executable.d.ts +0 -1
  208. package/package/dist/compositor/make-file-executable.js +0 -44
  209. package/package/dist/compositor/make-nonce.d.ts +0 -1
  210. package/package/dist/compositor/make-nonce.js +0 -8
  211. package/package/dist/compositor/payloads.d.ts +0 -73
  212. package/package/dist/compositor/payloads.js +0 -2
  213. package/package/dist/compositor/serialize-command.d.ts +0 -2
  214. package/package/dist/compositor/serialize-command.js +0 -14
  215. package/package/dist/compress-assets.d.ts +0 -7
  216. package/package/dist/compress-assets.js +0 -25
  217. package/package/dist/compress-audio.d.ts +0 -16
  218. package/package/dist/compress-audio.js +0 -44
  219. package/package/dist/convert-number-of-gif-loops-to-ffmpeg.d.ts +0 -1
  220. package/package/dist/convert-number-of-gif-loops-to-ffmpeg.js +0 -17
  221. package/package/dist/convert-to-positive-frame-index.d.ts +0 -4
  222. package/package/dist/convert-to-positive-frame-index.js +0 -8
  223. package/package/dist/create-audio.d.ts +0 -29
  224. package/package/dist/create-audio.js +0 -127
  225. package/package/dist/create-ffmpeg-complex-filter.d.ts +0 -10
  226. package/package/dist/create-ffmpeg-complex-filter.js +0 -24
  227. package/package/dist/create-ffmpeg-merge-filter.d.ts +0 -5
  228. package/package/dist/create-ffmpeg-merge-filter.js +0 -25
  229. package/package/dist/create-silent-audio.d.ts +0 -10
  230. package/package/dist/create-silent-audio.js +0 -28
  231. package/package/dist/crf.d.ts +0 -13
  232. package/package/dist/crf.js +0 -103
  233. package/package/dist/cycle-browser-tabs.d.ts +0 -10
  234. package/package/dist/cycle-browser-tabs.js +0 -50
  235. package/package/dist/default-on-log.d.ts +0 -2
  236. package/package/dist/default-on-log.js +0 -8
  237. package/package/dist/delay-render-embedded-stack.d.ts +0 -2
  238. package/package/dist/delay-render-embedded-stack.js +0 -17
  239. package/package/dist/delete-directory.d.ts +0 -1
  240. package/package/dist/delete-directory.js +0 -68
  241. package/package/dist/ensure-browser.d.ts +0 -24
  242. package/package/dist/ensure-browser.js +0 -58
  243. package/package/dist/ensure-frames-in-order.d.ts +0 -5
  244. package/package/dist/ensure-frames-in-order.js +0 -39
  245. package/package/dist/ensure-output-directory.d.ts +0 -1
  246. package/package/dist/ensure-output-directory.js +0 -17
  247. package/package/dist/error-handling/handle-javascript-exception.d.ts +0 -23
  248. package/package/dist/error-handling/handle-javascript-exception.js +0 -86
  249. package/package/dist/error-handling/symbolicate-error.d.ts +0 -3
  250. package/package/dist/error-handling/symbolicate-error.js +0 -26
  251. package/package/dist/error-handling/symbolicateable-error.d.ts +0 -18
  252. package/package/dist/error-handling/symbolicateable-error.js +0 -19
  253. package/package/dist/error-handling.d.ts +0 -1
  254. package/package/dist/error-handling.js +0 -5
  255. package/package/dist/esm/client.mjs +0 -3270
  256. package/package/dist/esm/error-handling.mjs +0 -363
  257. package/package/dist/esm/index.mjs +0 -23201
  258. package/package/dist/esm/pure.mjs +0 -526
  259. package/package/dist/extract-audio.d.ts +0 -7
  260. package/package/dist/extract-audio.js +0 -25
  261. package/package/dist/ffmpeg-args.d.ts +0 -21
  262. package/package/dist/ffmpeg-args.js +0 -96
  263. package/package/dist/ffmpeg-filter-file.d.ts +0 -13
  264. package/package/dist/ffmpeg-filter-file.js +0 -70
  265. package/package/dist/ffmpeg-override.d.ts +0 -4
  266. package/package/dist/ffmpeg-override.js +0 -2
  267. package/package/dist/file-extensions.d.ts +0 -14
  268. package/package/dist/file-extensions.js +0 -85
  269. package/package/dist/filter-asset-types.d.ts +0 -8
  270. package/package/dist/filter-asset-types.js +0 -44
  271. package/package/dist/find-closest-package-json.d.ts +0 -2
  272. package/package/dist/find-closest-package-json.js +0 -31
  273. package/package/dist/format-logs.d.ts +0 -3
  274. package/package/dist/format-logs.js +0 -214
  275. package/package/dist/frame-range.d.ts +0 -2
  276. package/package/dist/frame-range.js +0 -49
  277. package/package/dist/get-browser-instance.d.ts +0 -24
  278. package/package/dist/get-browser-instance.js +0 -63
  279. package/package/dist/get-bundle-url-from-serve-url.d.ts +0 -2
  280. package/package/dist/get-bundle-url-from-serve-url.js +0 -30
  281. package/package/dist/get-codec-name.d.ts +0 -21
  282. package/package/dist/get-codec-name.js +0 -87
  283. package/package/dist/get-compositions.d.ts +0 -34
  284. package/package/dist/get-compositions.js +0 -196
  285. package/package/dist/get-concurrency.d.ts +0 -1
  286. package/package/dist/get-concurrency.js +0 -27
  287. package/package/dist/get-cpu-count.d.ts +0 -2
  288. package/package/dist/get-cpu-count.js +0 -33
  289. package/package/dist/get-duration-from-frame-range.d.ts +0 -1
  290. package/package/dist/get-duration-from-frame-range.js +0 -17
  291. package/package/dist/get-extension-from-codec.d.ts +0 -6
  292. package/package/dist/get-extension-from-codec.js +0 -61
  293. package/package/dist/get-extension-of-filename.d.ts +0 -1
  294. package/package/dist/get-extension-of-filename.js +0 -15
  295. package/package/dist/get-extra-frames-to-capture.d.ts +0 -14
  296. package/package/dist/get-extra-frames-to-capture.js +0 -62
  297. package/package/dist/get-frame-padded-index.d.ts +0 -21
  298. package/package/dist/get-frame-padded-index.js +0 -43
  299. package/package/dist/get-frame-to-render.d.ts +0 -2
  300. package/package/dist/get-frame-to-render.js +0 -19
  301. package/package/dist/get-local-browser-executable.d.ts +0 -9
  302. package/package/dist/get-local-browser-executable.js +0 -36
  303. package/package/dist/get-port.d.ts +0 -15
  304. package/package/dist/get-port.js +0 -86
  305. package/package/dist/get-prores-profile-name.d.ts +0 -3
  306. package/package/dist/get-prores-profile-name.js +0 -25
  307. package/package/dist/get-silent-parts.d.ts +0 -10
  308. package/package/dist/get-silent-parts.js +0 -66
  309. package/package/dist/get-video-metadata.d.ts +0 -10
  310. package/package/dist/get-video-metadata.js +0 -25
  311. package/package/dist/get-video-threads-flag.d.ts +0 -2
  312. package/package/dist/get-video-threads-flag.js +0 -16
  313. package/package/dist/goto-page-or-throw.d.ts +0 -3
  314. package/package/dist/goto-page-or-throw.js +0 -16
  315. package/package/dist/guess-extension-for-media.d.ts +0 -9
  316. package/package/dist/guess-extension-for-media.js +0 -31
  317. package/package/dist/image-format.d.ts +0 -13
  318. package/package/dist/image-format.js +0 -37
  319. package/package/dist/index.d.ts +0 -1256
  320. package/package/dist/index.js +0 -227
  321. package/package/dist/is-audio-codec.d.ts +0 -2
  322. package/package/dist/is-audio-codec.js +0 -7
  323. package/package/dist/is-delay-render-error-with-retry.d.ts +0 -1
  324. package/package/dist/is-delay-render-error-with-retry.js +0 -28
  325. package/package/dist/is-serve-url.d.ts +0 -1
  326. package/package/dist/is-serve-url.js +0 -15
  327. package/package/dist/jpeg-quality.d.ts +0 -2
  328. package/package/dist/jpeg-quality.js +0 -22
  329. package/package/dist/locks.d.ts +0 -7
  330. package/package/dist/locks.js +0 -47
  331. package/package/dist/log-level.d.ts +0 -4
  332. package/package/dist/log-level.js +0 -15
  333. package/package/dist/logger.d.ts +0 -20
  334. package/package/dist/logger.js +0 -89
  335. package/package/dist/make-cancel-signal.d.ts +0 -14
  336. package/package/dist/make-cancel-signal.js +0 -48
  337. package/package/dist/make-metadata-args.d.ts +0 -2
  338. package/package/dist/make-metadata-args.js +0 -22
  339. package/package/dist/make-page.d.ts +0 -30
  340. package/package/dist/make-page.js +0 -70
  341. package/package/dist/memory/from-docker-cgroup.d.ts +0 -1
  342. package/package/dist/memory/from-docker-cgroup.js +0 -66
  343. package/package/dist/memory/from-lambda-env.d.ts +0 -1
  344. package/package/dist/memory/from-lambda-env.js +0 -10
  345. package/package/dist/memory/from-proc-meminfo.d.ts +0 -2
  346. package/package/dist/memory/from-proc-meminfo.js +0 -44
  347. package/package/dist/memory/get-available-memory.d.ts +0 -2
  348. package/package/dist/memory/get-available-memory.js +0 -44
  349. package/package/dist/merge-audio-track.d.ts +0 -19
  350. package/package/dist/merge-audio-track.js +0 -133
  351. package/package/dist/mime-db.d.ts +0 -6
  352. package/package/dist/mime-db.js +0 -8636
  353. package/package/dist/mime-types.d.ts +0 -3
  354. package/package/dist/mime-types.js +0 -94
  355. package/package/dist/mux-video-and-audio.d.ts +0 -15
  356. package/package/dist/mux-video-and-audio.js +0 -54
  357. package/package/dist/next-frame-to-render.d.ts +0 -11
  358. package/package/dist/next-frame-to-render.js +0 -41
  359. package/package/dist/normalize-serve-url.d.ts +0 -1
  360. package/package/dist/normalize-serve-url.js +0 -19
  361. package/package/dist/offthread-video-server.d.ts +0 -51
  362. package/package/dist/offthread-video-server.js +0 -217
  363. package/package/dist/open-browser.d.ts +0 -47
  364. package/package/dist/open-browser.js +0 -200
  365. package/package/dist/options/api-key.d.ts +0 -15
  366. package/package/dist/options/api-key.js +0 -29
  367. package/package/dist/options/audio-bitrate.d.ts +0 -18
  368. package/package/dist/options/audio-bitrate.js +0 -35
  369. package/package/dist/options/audio-codec.d.ts +0 -55
  370. package/package/dist/options/audio-codec.js +0 -188
  371. package/package/dist/options/beep-on-finish.d.ts +0 -15
  372. package/package/dist/options/beep-on-finish.js +0 -35
  373. package/package/dist/options/binaries-directory.d.ts +0 -15
  374. package/package/dist/options/binaries-directory.js +0 -35
  375. package/package/dist/options/chrome-mode.d.ts +0 -17
  376. package/package/dist/options/chrome-mode.js +0 -46
  377. package/package/dist/options/color-space.d.ts +0 -23
  378. package/package/dist/options/color-space.js +0 -49
  379. package/package/dist/options/crf.d.ts +0 -17
  380. package/package/dist/options/crf.js +0 -43
  381. package/package/dist/options/cross-site-isolation.d.ts +0 -15
  382. package/package/dist/options/cross-site-isolation.js +0 -29
  383. package/package/dist/options/delete-after.d.ts +0 -19
  384. package/package/dist/options/delete-after.js +0 -37
  385. package/package/dist/options/disable-git-source.d.ts +0 -15
  386. package/package/dist/options/disable-git-source.js +0 -28
  387. package/package/dist/options/disallow-parallel-encoding.d.ts +0 -15
  388. package/package/dist/options/disallow-parallel-encoding.js +0 -35
  389. package/package/dist/options/enable-lambda-insights.d.ts +0 -15
  390. package/package/dist/options/enable-lambda-insights.js +0 -35
  391. package/package/dist/options/enable-multiprocess-on-linux.d.ts +0 -15
  392. package/package/dist/options/enable-multiprocess-on-linux.js +0 -36
  393. package/package/dist/options/encoding-buffer-size.d.ts +0 -18
  394. package/package/dist/options/encoding-buffer-size.js +0 -39
  395. package/package/dist/options/encoding-max-rate.d.ts +0 -18
  396. package/package/dist/options/encoding-max-rate.js +0 -35
  397. package/package/dist/options/enforce-audio.d.ts +0 -18
  398. package/package/dist/options/enforce-audio.js +0 -36
  399. package/package/dist/options/folder-expiry.d.ts +0 -15
  400. package/package/dist/options/folder-expiry.js +0 -37
  401. package/package/dist/options/for-seamless-aac-concatenation.d.ts +0 -19
  402. package/package/dist/options/for-seamless-aac-concatenation.js +0 -40
  403. package/package/dist/options/gl.d.ts +0 -24
  404. package/package/dist/options/gl.js +0 -68
  405. package/package/dist/options/hardware-acceleration.d.ts +0 -18
  406. package/package/dist/options/hardware-acceleration.js +0 -56
  407. package/package/dist/options/headless.d.ts +0 -15
  408. package/package/dist/options/headless.js +0 -36
  409. package/package/dist/options/image-sequence-pattern.d.ts +0 -15
  410. package/package/dist/options/image-sequence-pattern.js +0 -30
  411. package/package/dist/options/index.d.ts +0 -747
  412. package/package/dist/options/index.js +0 -97
  413. package/package/dist/options/jpeg-quality.d.ts +0 -17
  414. package/package/dist/options/jpeg-quality.js +0 -47
  415. package/package/dist/options/latency-hint.d.ts +0 -18
  416. package/package/dist/options/latency-hint.js +0 -27
  417. package/package/dist/options/log-level.d.ts +0 -16
  418. package/package/dist/options/log-level.js +0 -32
  419. package/package/dist/options/metadata.d.ts +0 -18
  420. package/package/dist/options/metadata.js +0 -47
  421. package/package/dist/options/mute.d.ts +0 -15
  422. package/package/dist/options/mute.js +0 -37
  423. package/package/dist/options/number-of-gif-loops.d.ts +0 -19
  424. package/package/dist/options/number-of-gif-loops.js +0 -44
  425. package/package/dist/options/offthreadvideo-cache-size.d.ts +0 -20
  426. package/package/dist/options/offthreadvideo-cache-size.js +0 -60
  427. package/package/dist/options/offthreadvideo-threads.d.ts +0 -20
  428. package/package/dist/options/offthreadvideo-threads.js +0 -40
  429. package/package/dist/options/on-browser-download.d.ts +0 -22
  430. package/package/dist/options/on-browser-download.js +0 -19
  431. package/package/dist/options/option.d.ts +0 -20
  432. package/package/dist/options/option.js +0 -2
  433. package/package/dist/options/options-map.d.ts +0 -2040
  434. package/package/dist/options/options-map.js +0 -192
  435. package/package/dist/options/overwrite.d.ts +0 -15
  436. package/package/dist/options/overwrite.js +0 -42
  437. package/package/dist/options/prefer-lossless.d.ts +0 -18
  438. package/package/dist/options/prefer-lossless.js +0 -26
  439. package/package/dist/options/public-dir.d.ts +0 -18
  440. package/package/dist/options/public-dir.js +0 -37
  441. package/package/dist/options/public-path.d.ts +0 -18
  442. package/package/dist/options/public-path.js +0 -37
  443. package/package/dist/options/repro.d.ts +0 -15
  444. package/package/dist/options/repro.js +0 -36
  445. package/package/dist/options/scale.d.ts +0 -15
  446. package/package/dist/options/scale.js +0 -41
  447. package/package/dist/options/separate-audio.d.ts +0 -18
  448. package/package/dist/options/separate-audio.js +0 -28
  449. package/package/dist/options/throw-if-site-exists.d.ts +0 -15
  450. package/package/dist/options/throw-if-site-exists.js +0 -28
  451. package/package/dist/options/timeout.d.ts +0 -15
  452. package/package/dist/options/timeout.js +0 -44
  453. package/package/dist/options/video-bitrate.d.ts +0 -15
  454. package/package/dist/options/video-bitrate.js +0 -35
  455. package/package/dist/options/video-cache-size.d.ts +0 -19
  456. package/package/dist/options/video-cache-size.js +0 -39
  457. package/package/dist/options/video-codec.d.ts +0 -23
  458. package/package/dist/options/video-codec.js +0 -104
  459. package/package/dist/options/webhook-custom-data.d.ts +0 -10
  460. package/package/dist/options/webhook-custom-data.js +0 -21
  461. package/package/dist/options/x264-preset.d.ts +0 -25
  462. package/package/dist/options/x264-preset.js +0 -55
  463. package/package/dist/overwrite.d.ts +0 -1
  464. package/package/dist/overwrite.js +0 -4
  465. package/package/dist/p-limit.d.ts +0 -1
  466. package/package/dist/p-limit.js +0 -57
  467. package/package/dist/parse-browser-error-stack.d.ts +0 -7
  468. package/package/dist/parse-browser-error-stack.js +0 -87
  469. package/package/dist/parse-ffmpeg-progress.d.ts +0 -1
  470. package/package/dist/parse-ffmpeg-progress.js +0 -18
  471. package/package/dist/path-normalize.d.ts +0 -1
  472. package/package/dist/path-normalize.js +0 -132
  473. package/package/dist/perf.d.ts +0 -5
  474. package/package/dist/perf.js +0 -37
  475. package/package/dist/pixel-format.d.ts +0 -6
  476. package/package/dist/pixel-format.js +0 -37
  477. package/package/dist/pool.d.ts +0 -8
  478. package/package/dist/pool.js +0 -30
  479. package/package/dist/port-config.d.ts +0 -14
  480. package/package/dist/port-config.js +0 -79
  481. package/package/dist/prepare-server.d.ts +0 -32
  482. package/package/dist/prepare-server.js +0 -123
  483. package/package/dist/preprocess-audio-track.d.ts +0 -27
  484. package/package/dist/preprocess-audio-track.js +0 -82
  485. package/package/dist/prespawn-ffmpeg.d.ts +0 -49
  486. package/package/dist/prespawn-ffmpeg.js +0 -112
  487. package/package/dist/prestitcher-memory-usage.d.ts +0 -10
  488. package/package/dist/prestitcher-memory-usage.js +0 -26
  489. package/package/dist/print-useful-error-message.d.ts +0 -2
  490. package/package/dist/print-useful-error-message.js +0 -110
  491. package/package/dist/prores-profile.d.ts +0 -7
  492. package/package/dist/prores-profile.js +0 -23
  493. package/package/dist/puppeteer-evaluate.d.ts +0 -17
  494. package/package/dist/puppeteer-evaluate.js +0 -162
  495. package/package/dist/puppeteer-screenshot.d.ts +0 -12
  496. package/package/dist/puppeteer-screenshot.js +0 -58
  497. package/package/dist/pure.d.ts +0 -17
  498. package/package/dist/pure.js +0 -17
  499. package/package/dist/redirect-status-codes.d.ts +0 -1
  500. package/package/dist/redirect-status-codes.js +0 -6
  501. package/package/dist/render-frame-and-retry-target-close.d.ts +0 -54
  502. package/package/dist/render-frame-and-retry-target-close.js +0 -179
  503. package/package/dist/render-frame-with-option-to-reject.d.ts +0 -48
  504. package/package/dist/render-frame-with-option-to-reject.js +0 -156
  505. package/package/dist/render-frame.d.ts +0 -47
  506. package/package/dist/render-frame.js +0 -51
  507. package/package/dist/render-frames.d.ts +0 -97
  508. package/package/dist/render-frames.js +0 -413
  509. package/package/dist/render-has-audio.d.ts +0 -8
  510. package/package/dist/render-has-audio.js +0 -20
  511. package/package/dist/render-media.d.ts +0 -135
  512. package/package/dist/render-media.js +0 -621
  513. package/package/dist/render-partitions.d.ts +0 -7
  514. package/package/dist/render-partitions.js +0 -50
  515. package/package/dist/render-still.d.ts +0 -74
  516. package/package/dist/render-still.js +0 -356
  517. package/package/dist/replace-browser.d.ts +0 -7
  518. package/package/dist/replace-browser.js +0 -48
  519. package/package/dist/repro.d.ts +0 -25
  520. package/package/dist/repro.js +0 -184
  521. package/package/dist/resolve-asset-src.d.ts +0 -1
  522. package/package/dist/resolve-asset-src.js +0 -17
  523. package/package/dist/sample-rate.d.ts +0 -1
  524. package/package/dist/sample-rate.js +0 -4
  525. package/package/dist/screenshot-task.d.ts +0 -12
  526. package/package/dist/screenshot-task.js +0 -86
  527. package/package/dist/seamless-aac-trim.d.ts +0 -12
  528. package/package/dist/seamless-aac-trim.js +0 -24
  529. package/package/dist/seek-to-frame.d.ts +0 -18
  530. package/package/dist/seek-to-frame.js +0 -148
  531. package/package/dist/select-composition.d.ts +0 -45
  532. package/package/dist/select-composition.js +0 -219
  533. package/package/dist/serialize-artifact.d.ts +0 -7
  534. package/package/dist/serialize-artifact.js +0 -2
  535. package/package/dist/serve-handler/index.d.ts +0 -4
  536. package/package/dist/serve-handler/index.js +0 -208
  537. package/package/dist/serve-handler/is-path-inside.d.ts +0 -1
  538. package/package/dist/serve-handler/is-path-inside.js +0 -27
  539. package/package/dist/serve-handler/range-parser.d.ts +0 -13
  540. package/package/dist/serve-handler/range-parser.js +0 -57
  541. package/package/dist/serve-static.d.ts +0 -18
  542. package/package/dist/serve-static.js +0 -141
  543. package/package/dist/set-props-and-env.d.ts +0 -22
  544. package/package/dist/set-props-and-env.js +0 -219
  545. package/package/dist/stitch-frames-to-video.d.ts +0 -77
  546. package/package/dist/stitch-frames-to-video.js +0 -350
  547. package/package/dist/stringify-ffmpeg-filter.d.ts +0 -24
  548. package/package/dist/stringify-ffmpeg-filter.js +0 -140
  549. package/package/dist/succeed-or-cancel.d.ts +0 -6
  550. package/package/dist/succeed-or-cancel.js +0 -23
  551. package/package/dist/symbolicate-stacktrace.d.ts +0 -29
  552. package/package/dist/symbolicate-stacktrace.js +0 -155
  553. package/package/dist/take-frame.d.ts +0 -13
  554. package/package/dist/take-frame.js +0 -47
  555. package/package/dist/test/actual-concurrency.test.d.ts +0 -1
  556. package/package/dist/test/artifacts.test.d.ts +0 -1
  557. package/package/dist/test/asset-calculation.test.d.ts +0 -1
  558. package/package/dist/test/asset-compression.test.d.ts +0 -1
  559. package/package/dist/test/avoid-ffmpeg-stackoverflow.test.d.ts +0 -1
  560. package/package/dist/test/browser-log-message.test.d.ts +0 -1
  561. package/package/dist/test/calculate-atempo.test.d.ts +0 -1
  562. package/package/dist/test/compositor-rust.test.d.ts +0 -1
  563. package/package/dist/test/crf.test.d.ts +0 -1
  564. package/package/dist/test/derive-codec-from-file-extension.test.d.ts +0 -1
  565. package/package/dist/test/dont-skip-assets.test.d.ts +0 -1
  566. package/package/dist/test/download-file.test.d.ts +0 -1
  567. package/package/dist/test/even-dimensions.test.d.ts +0 -1
  568. package/package/dist/test/extra-frames-to-capture.test.d.ts +0 -1
  569. package/package/dist/test/extract-audio.test.d.ts +0 -1
  570. package/package/dist/test/extract-frame-rust.test.d.ts +0 -1
  571. package/package/dist/test/ffmpeg-filters.test.d.ts +0 -1
  572. package/package/dist/test/ffmpeg-merge-filter.test.d.ts +0 -1
  573. package/package/dist/test/ffmpeg-volume-expression.test.d.ts +0 -1
  574. package/package/dist/test/file-extension.test.d.ts +0 -1
  575. package/package/dist/test/find-closest-package-json.test.d.ts +0 -1
  576. package/package/dist/test/flatten-volume-array.test.d.ts +0 -1
  577. package/package/dist/test/format-logs.test.d.ts +0 -1
  578. package/package/dist/test/frame-padded-index.test.d.ts +0 -1
  579. package/package/dist/test/frame.test.d.ts +0 -1
  580. package/package/dist/test/get-assets-for-markup.d.ts +0 -8
  581. package/package/dist/test/get-audio-channels.test.d.ts +0 -1
  582. package/package/dist/test/get-bundle-url-from-serve-url.test.d.ts +0 -1
  583. package/package/dist/test/get-silent-parts.test.d.ts +0 -1
  584. package/package/dist/test/guess-extension-for-media.test.d.ts +0 -1
  585. package/package/dist/test/handle-weird-file-names.test.d.ts +0 -1
  586. package/package/dist/test/log-level.test.d.ts +0 -1
  587. package/package/dist/test/mime-types.test.d.ts +0 -1
  588. package/package/dist/test/offthread-extract-url.test.d.ts +0 -1
  589. package/package/dist/test/parse-ffmpeg-progress.test.d.ts +0 -1
  590. package/package/dist/test/partitions.test.d.ts +0 -1
  591. package/package/dist/test/pixel-format.test.d.ts +0 -1
  592. package/package/dist/test/port-config.test.d.ts +0 -1
  593. package/package/dist/test/port-selection.test.d.ts +0 -1
  594. package/package/dist/test/prores-profile.test.d.ts +0 -1
  595. package/package/dist/test/render-still.test.d.ts +0 -1
  596. package/package/dist/test/rust-errors.test.d.ts +0 -1
  597. package/package/dist/test/rust-get-video-metadata.test.d.ts +0 -1
  598. package/package/dist/test/rust-memory-usage.test.d.ts +0 -1
  599. package/package/dist/test/sanitize-file-path.test.d.ts +0 -1
  600. package/package/dist/test/serve-url.test.d.ts +0 -1
  601. package/package/dist/test/symbolicate-remote-stack.test.d.ts +0 -1
  602. package/package/dist/test/validate-concurrency.test.d.ts +0 -1
  603. package/package/dist/test/validate-config-stitcher.test.d.ts +0 -1
  604. package/package/dist/test/validate-config.test.d.ts +0 -1
  605. package/package/dist/test/validate-even-dimensions-with-codec.test.d.ts +0 -1
  606. package/package/dist/test/validate-image-format.test.d.ts +0 -1
  607. package/package/dist/test/webpack-to-serve-url.test.d.ts +0 -1
  608. package/package/dist/test-gpu.d.ts +0 -21
  609. package/package/dist/test-gpu.js +0 -45
  610. package/package/dist/tmp-dir.d.ts +0 -1
  611. package/package/dist/tmp-dir.js +0 -63
  612. package/package/dist/to-megabytes.d.ts +0 -1
  613. package/package/dist/to-megabytes.js +0 -7
  614. package/package/dist/truthy.d.ts +0 -3
  615. package/package/dist/truthy.js +0 -6
  616. package/package/dist/types.d.ts +0 -10
  617. package/package/dist/types.js +0 -2
  618. package/package/dist/v5-required-input-props.d.ts +0 -6
  619. package/package/dist/v5-required-input-props.js +0 -2
  620. package/package/dist/validate-concurrency.d.ts +0 -7
  621. package/package/dist/validate-concurrency.js +0 -38
  622. package/package/dist/validate-even-dimensions-with-codec.d.ts +0 -14
  623. package/package/dist/validate-even-dimensions-with-codec.js +0 -40
  624. package/package/dist/validate-every-nth-frame.d.ts +0 -1
  625. package/package/dist/validate-every-nth-frame.js +0 -24
  626. package/package/dist/validate-ffmpeg-override.d.ts +0 -2
  627. package/package/dist/validate-ffmpeg-override.js +0 -12
  628. package/package/dist/validate-number-of-gif-loops.d.ts +0 -2
  629. package/package/dist/validate-number-of-gif-loops.js +0 -24
  630. package/package/dist/validate-output-filename.d.ts +0 -9
  631. package/package/dist/validate-output-filename.js +0 -32
  632. package/package/dist/validate-puppeteer-timeout.d.ts +0 -1
  633. package/package/dist/validate-puppeteer-timeout.js +0 -25
  634. package/package/dist/validate-scale.d.ts +0 -1
  635. package/package/dist/validate-scale.js +0 -26
  636. package/package/dist/validate-videobitrate.d.ts +0 -1
  637. package/package/dist/validate-videobitrate.js +0 -20
  638. package/package/dist/validate.d.ts +0 -4
  639. package/package/dist/validate.js +0 -8
  640. package/package/dist/wait-for-symbolication-error-to-be-done.d.ts +0 -3
  641. package/package/dist/wait-for-symbolication-error-to-be-done.js +0 -8
  642. package/package/dist/wrap-with-error-handling.d.ts +0 -8
  643. package/package/dist/wrap-with-error-handling.js +0 -18
  644. package/package/dist/ws/ws-types.d.ts +0 -15
  645. package/package/dist/ws/ws-types.js +0 -8
  646. package/package/ensure-browser.mjs +0 -3337
@@ -1,1263 +0,0 @@
1
- type RemoteObjectId = string;
2
- interface WebDriverValue {
3
- /**
4
- * (WebDriverValueType enum)
5
- */
6
- type: 'undefined' | 'null' | 'string' | 'number' | 'boolean' | 'bigint' | 'regexp' | 'date' | 'symbol' | 'array' | 'object' | 'function' | 'map' | 'set' | 'weakmap' | 'weakset' | 'error' | 'proxy' | 'promise' | 'typedarray' | 'arraybuffer' | 'node' | 'window';
7
- value?: any;
8
- objectId?: string;
9
- }
10
- type UnserializableValue = string;
11
- export interface DevtoolsRemoteObject {
12
- /**
13
- * Object type. (RemoteObjectType enum)
14
- */
15
- type: 'object' | 'function' | 'undefined' | 'string' | 'number' | 'boolean' | 'symbol' | 'bigint';
16
- /**
17
- * Object subtype hint. Specified for `object` type values only.
18
- * NOTE: If you change anything here, make sure to also update
19
- * `subtype` in `ObjectPreview` and `PropertyPreview` below. (RemoteObjectSubtype enum)
20
- */
21
- subtype?: 'array' | 'null' | 'node' | 'regexp' | 'date' | 'map' | 'set' | 'weakmap' | 'weakset' | 'iterator' | 'generator' | 'error' | 'proxy' | 'promise' | 'typedarray' | 'arraybuffer' | 'dataview' | 'webassemblymemory' | 'wasmvalue';
22
- /**
23
- * Object class (constructor) name. Specified for `object` type values only.
24
- */
25
- className?: string;
26
- /**
27
- * Remote object value in case of primitive values or JSON values (if it was requested).
28
- */
29
- value?: any;
30
- /**
31
- * Primitive value which can not be JSON-stringified does not have `value`, but gets this
32
- * property.
33
- */
34
- unserializableValue?: UnserializableValue;
35
- /**
36
- * String representation of the object.
37
- */
38
- description?: string;
39
- /**
40
- * WebDriver BiDi representation of the value.
41
- */
42
- webDriverValue?: WebDriverValue;
43
- /**
44
- * Unique object identifier (for non-primitive values).
45
- */
46
- objectId?: RemoteObjectId;
47
- preview?: ObjectPreview;
48
- }
49
- export interface ObjectPreview {
50
- /**
51
- * Object type. (ObjectPreviewType enum)
52
- */
53
- type: 'object' | 'function' | 'undefined' | 'string' | 'number' | 'boolean' | 'symbol' | 'bigint';
54
- /**
55
- * Object subtype hint. Specified for `object` type values only. (ObjectPreviewSubtype enum)
56
- */
57
- subtype?: 'array' | 'null' | 'node' | 'regexp' | 'date' | 'map' | 'set' | 'weakmap' | 'weakset' | 'iterator' | 'generator' | 'error' | 'proxy' | 'promise' | 'typedarray' | 'arraybuffer' | 'dataview' | 'webassemblymemory' | 'wasmvalue';
58
- /**
59
- * String representation of the object.
60
- */
61
- description?: string;
62
- /**
63
- * True iff some of the properties or entries of the original object did not fit.
64
- */
65
- overflow: boolean;
66
- /**
67
- * List of the properties.
68
- */
69
- properties: PropertyPreview[];
70
- /**
71
- * List of the entries. Specified for `map` and `set` subtype values only.
72
- */
73
- entries?: EntryPreview[];
74
- }
75
- export interface EntryPreview {
76
- /**
77
- * Preview of the key. Specified for map-like collection entries.
78
- */
79
- key?: ObjectPreview;
80
- /**
81
- * Preview of the value.
82
- */
83
- value: ObjectPreview;
84
- }
85
- export interface PropertyPreview {
86
- /**
87
- * Property name.
88
- */
89
- name: string;
90
- /**
91
- * Object type. Accessor means that the property itself is an accessor property. (PropertyPreviewType enum)
92
- */
93
- type: 'object' | 'function' | 'undefined' | 'string' | 'number' | 'boolean' | 'symbol' | 'accessor' | 'bigint';
94
- /**
95
- * User-friendly property value string.
96
- */
97
- value?: string;
98
- /**
99
- * Nested value preview.
100
- */
101
- valuePreview?: ObjectPreview;
102
- /**
103
- * Object subtype hint. Specified for `object` type values only. (PropertyPreviewSubtype enum)
104
- */
105
- subtype?: 'array' | 'null' | 'node' | 'regexp' | 'date' | 'map' | 'set' | 'weakmap' | 'weakset' | 'iterator' | 'generator' | 'error' | 'proxy' | 'promise' | 'typedarray' | 'arraybuffer' | 'dataview' | 'webassemblymemory' | 'wasmvalue';
106
- }
107
- type TargetID = string;
108
- export interface TargetInfo {
109
- targetId: TargetID;
110
- type: string;
111
- title: string;
112
- url: string;
113
- /**
114
- * Whether the target has an attached client.
115
- */
116
- attached: boolean;
117
- /**
118
- * Opener target Id
119
- */
120
- openerId?: TargetID;
121
- /**
122
- * Whether the target has access to the originating window.
123
- */
124
- canAccessOpener: boolean;
125
- browserContextId?: string;
126
- }
127
- export interface DevtoolsTargetCreatedEvent {
128
- targetInfo: TargetInfo;
129
- }
130
- export interface ExecutionContextDescription {
131
- /**
132
- * Unique id of the execution context. It can be used to specify in which execution context
133
- * script evaluation should be performed.
134
- */
135
- id: number;
136
- /**
137
- * Execution context origin.
138
- */
139
- origin: string;
140
- /**
141
- * Human readable name describing given context.
142
- */
143
- name: string;
144
- /**
145
- * A system-unique execution context identifier. Unlike the id, this is unique across
146
- * multiple processes, so can be reliably used to identify specific context while backend
147
- * performs a cross-process navigation.
148
- */
149
- uniqueId: string;
150
- /**
151
- * Embedder-specific auxiliary data.
152
- */
153
- auxData?: any;
154
- }
155
- export interface ExceptionDetails {
156
- /**
157
- * Exception id.
158
- */
159
- exceptionId: number;
160
- /**
161
- * Exception text, which should be used together with exception object when available.
162
- */
163
- text: string;
164
- /**
165
- * Line number of the exception location (0-based).
166
- */
167
- lineNumber: number;
168
- /**
169
- * Column number of the exception location (0-based).
170
- */
171
- columnNumber: number;
172
- /**
173
- * Script ID of the exception location.
174
- */
175
- scriptId?: string;
176
- /**
177
- * URL of the exception location, to be used when the script was not reported.
178
- */
179
- url?: string;
180
- /**
181
- * JavaScript stack trace if available.
182
- */
183
- stackTrace?: StackTrace;
184
- /**
185
- * Exception object if available.
186
- */
187
- exception?: DevtoolsRemoteObject;
188
- /**
189
- * Identifier of the context where exception happened.
190
- */
191
- executionContextId?: number;
192
- /**
193
- * Dictionary with entries of meta data that the client associated
194
- * with this exception, such as information about associated network
195
- * requests, etc.
196
- */
197
- exceptionMetaData?: any;
198
- }
199
- export interface StackTrace {
200
- /**
201
- * String label of this stack trace. For async traces this may be a name of the function that
202
- * initiated the async call.
203
- */
204
- description?: string;
205
- /**
206
- * JavaScript function name.
207
- */
208
- callFrames: CallFrame[];
209
- /**
210
- * Asynchronous JavaScript stack trace that preceded this stack, if available.
211
- */
212
- parent?: StackTrace;
213
- /**
214
- * Asynchronous JavaScript stack trace that preceded this stack, if available.
215
- */
216
- parentId?: StackTraceId;
217
- }
218
- export interface CallFrame {
219
- /**
220
- * JavaScript function name.
221
- */
222
- functionName: string;
223
- /**
224
- * JavaScript script id.
225
- */
226
- scriptId: number;
227
- /**
228
- * JavaScript script name or url.
229
- */
230
- url: string;
231
- /**
232
- * JavaScript script line number (0-based).
233
- */
234
- lineNumber: number;
235
- /**
236
- * JavaScript script column number (0-based).
237
- */
238
- columnNumber: number;
239
- }
240
- interface StackTraceId {
241
- id: string;
242
- debuggerId?: string;
243
- }
244
- export interface CallFunctionOnRequest {
245
- /**
246
- * Declaration of the function to call.
247
- */
248
- functionDeclaration: string;
249
- /**
250
- * Identifier of the object to call function on. Either objectId or executionContextId should
251
- * be specified.
252
- */
253
- objectId?: RemoteObjectId;
254
- /**
255
- * Call arguments. All call arguments must belong to the same JavaScript world as the target
256
- * object.
257
- */
258
- arguments?: CallArgument[];
259
- /**
260
- * In silent mode exceptions thrown during evaluation are not reported and do not pause
261
- * execution. Overrides `setPauseOnException` state.
262
- */
263
- silent?: boolean;
264
- /**
265
- * Whether the result is expected to be a JSON object which should be sent by value.
266
- */
267
- returnByValue?: boolean;
268
- /**
269
- * Whether preview should be generated for the result.
270
- */
271
- generatePreview?: boolean;
272
- /**
273
- * Whether execution should be treated as initiated by user in the UI.
274
- */
275
- userGesture?: boolean;
276
- /**
277
- * Whether execution should `await` for resulting value and return once awaited promise is
278
- * resolved.
279
- */
280
- awaitPromise?: boolean;
281
- /**
282
- * Specifies execution context which global object will be used to call function on. Either
283
- * executionContextId or objectId should be specified.
284
- */
285
- executionContextId?: ExecutionContextId;
286
- /**
287
- * Symbolic group name that can be used to release multiple objects. If objectGroup is not
288
- * specified and objectId is, objectGroup will be inherited from object.
289
- */
290
- objectGroup?: string;
291
- /**
292
- * Whether to throw an exception if side effect cannot be ruled out during evaluation.
293
- */
294
- throwOnSideEffect?: boolean;
295
- /**
296
- * Whether the result should contain `webDriverValue`, serialized according to
297
- * https://w3c.github.io/webdriver-bidi. This is mutually exclusive with `returnByValue`, but
298
- * resulting `objectId` is still provided.
299
- */
300
- generateWebDriverValue?: boolean;
301
- }
302
- export interface CallArgument {
303
- /**
304
- * Primitive value or serializable javascript object.
305
- */
306
- value?: any;
307
- /**
308
- * Primitive value which can not be JSON-stringified.
309
- */
310
- unserializableValue?: UnserializableValue;
311
- /**
312
- * Remote object handle.
313
- */
314
- objectId?: RemoteObjectId;
315
- }
316
- export interface CallFunctionOnResponse {
317
- /**
318
- * Call result.
319
- */
320
- result: DevtoolsRemoteObject;
321
- /**
322
- * Exception details.
323
- */
324
- exceptionDetails?: ExceptionDetails;
325
- }
326
- type ExecutionContextId = number;
327
- export interface EvaluateResponse {
328
- /**
329
- * Evaluation result.
330
- */
331
- result: DevtoolsRemoteObject;
332
- /**
333
- * Exception details.
334
- */
335
- exceptionDetails?: ExceptionDetails;
336
- }
337
- export interface GetFrameTreeResponse {
338
- /**
339
- * Present frame tree structure.
340
- */
341
- frameTree: FrameTree;
342
- }
343
- export interface FrameTree {
344
- /**
345
- * Frame information for this tree item.
346
- */
347
- frame: Frame;
348
- /**
349
- * Child frames.
350
- */
351
- childFrames?: FrameTree[];
352
- }
353
- type FrameId = string;
354
- type LoaderId = string;
355
- export interface Frame {
356
- /**
357
- * Frame unique identifier.
358
- */
359
- id: FrameId;
360
- /**
361
- * Parent frame identifier.
362
- */
363
- parentId?: FrameId;
364
- /**
365
- * Identifier of the loader associated with this frame.
366
- */
367
- loaderId: LoaderId;
368
- /**
369
- * Frame's name as specified in the tag.
370
- */
371
- name?: string;
372
- /**
373
- * Frame document's URL without fragment.
374
- */
375
- url: string;
376
- /**
377
- * Frame document's URL fragment including the '#'.
378
- */
379
- urlFragment?: string;
380
- /**
381
- * Frame document's registered domain, taking the public suffixes list into account.
382
- * Extracted from the Frame's url.
383
- * Example URLs: http://www.google.com/file.html -> "google.com"
384
- * http://a.b.co.uk/file.html -> "b.co.uk"
385
- */
386
- domainAndRegistry: string;
387
- /**
388
- * Frame document's security origin.
389
- */
390
- securityOrigin: string;
391
- /**
392
- * Frame document's mimeType as determined by the browser.
393
- */
394
- mimeType: string;
395
- /**
396
- * If the frame failed to load, this contains the URL that could not be loaded. Note that unlike url above, this URL may contain a fragment.
397
- */
398
- unreachableUrl?: string;
399
- }
400
- export interface SetAutoAttachRequest {
401
- /**
402
- * Whether to auto-attach to related targets.
403
- */
404
- autoAttach: boolean;
405
- /**
406
- * Whether to pause new targets when attaching to them. Use `Runtime.runIfWaitingForDebugger`
407
- * to run paused targets.
408
- */
409
- waitForDebuggerOnStart: boolean;
410
- /**
411
- * Enables "flat" access to the session via specifying sessionId attribute in the commands.
412
- * We plan to make this the default, deprecate non-flattened mode,
413
- * and eventually retire it. See crbug.com/991325.
414
- */
415
- flatten?: boolean;
416
- }
417
- /**
418
- * Fired when frame has been detached from its parent.
419
- */
420
- export interface FrameDetachedEvent {
421
- /**
422
- * Id of the frame that has been detached.
423
- */
424
- frameId: FrameId;
425
- /**
426
- * (FrameDetachedEventReason enum)
427
- */
428
- reason: 'remove' | 'swap';
429
- }
430
- export interface SetLifecycleEventsEnabledRequest {
431
- /**
432
- * If true, starts emitting lifecycle events.
433
- */
434
- enabled: boolean;
435
- }
436
- export interface NavigateRequest {
437
- /**
438
- * URL to navigate the page to.
439
- */
440
- url: string;
441
- /**
442
- * Referrer URL.
443
- */
444
- referrer?: string;
445
- /**
446
- * Frame id to navigate, if not specified navigates the top frame.
447
- */
448
- frameId?: FrameId;
449
- /**
450
- * Referrer-policy used for the navigation.
451
- */
452
- referrerPolicy?: ReferrerPolicy;
453
- }
454
- export interface NavigateResponse {
455
- /**
456
- * Frame id that has navigated (or failed to navigate)
457
- */
458
- frameId: FrameId;
459
- /**
460
- * Loader identifier. This is omitted in case of same-document navigation,
461
- * as the previously committed loaderId would not change.
462
- */
463
- loaderId?: LoaderId;
464
- /**
465
- * User friendly error message, present if and only if navigation has failed.
466
- */
467
- errorText?: string;
468
- }
469
- export declare const enum FrameDetachedEventReason {
470
- Remove = "remove",
471
- Swap = "swap"
472
- }
473
- export interface AttachedToTargetEvent {
474
- /**
475
- * Identifier assigned to the session used to send/receive messages.
476
- */
477
- sessionId: SessionID;
478
- targetInfo: TargetInfo;
479
- waitingForDebugger: boolean;
480
- }
481
- type SessionID = string;
482
- export interface DetachedFromTargetEvent {
483
- /**
484
- * Detached session identifier.
485
- */
486
- sessionId: SessionID;
487
- /**
488
- * Deprecated.
489
- */
490
- targetId?: TargetID;
491
- }
492
- export interface LifecycleEventEvent {
493
- /**
494
- * Id of the frame.
495
- */
496
- frameId: FrameId;
497
- /**
498
- * Loader identifier. Empty string if the request is fetched from worker.
499
- */
500
- loaderId: LoaderId;
501
- name: string;
502
- timestamp: number;
503
- }
504
- export interface AddScriptToEvaluateOnNewDocumentRequest {
505
- source: string;
506
- /**
507
- * If specified, creates an isolated world with the given name and evaluates given script in it.
508
- * This world name will be used as the ExecutionContextDescription::name when the corresponding
509
- * event is emitted.
510
- */
511
- worldName?: string;
512
- /**
513
- * Specifies whether command line API should be available to the script, defaults
514
- * to false.
515
- */
516
- includeCommandLineAPI?: boolean;
517
- }
518
- export interface AddScriptToEvaluateOnNewDocumentResponse {
519
- /**
520
- * Identifier of the added script.
521
- */
522
- identifier: ScriptIdentifier;
523
- }
524
- type ScriptIdentifier = string;
525
- export interface CreateIsolatedWorldRequest {
526
- /**
527
- * Id of the frame in which the isolated world should be created.
528
- */
529
- frameId: FrameId;
530
- /**
531
- * An optional name which is reported in the Execution Context.
532
- */
533
- worldName?: string;
534
- /**
535
- * Whether or not universal access should be granted to the isolated world. This is a powerful
536
- * option, use with caution.
537
- */
538
- grantUniveralAccess?: boolean;
539
- }
540
- export interface CreateIsolatedWorldResponse {
541
- /**
542
- * Execution context of the isolated world.
543
- */
544
- executionContextId: ExecutionContextId;
545
- }
546
- export interface CaptureScreenshotRequest {
547
- /**
548
- * Image compression format (defaults to png). (CaptureScreenshotRequestFormat enum)
549
- */
550
- format?: 'jpeg' | 'png' | 'webp';
551
- /**
552
- * Compression quality from range [0..100] (jpeg only).
553
- */
554
- quality?: number;
555
- /**
556
- * Capture the screenshot of a given region only.
557
- */
558
- clip?: {
559
- /**
560
- * X offset in device independent pixels (dip).
561
- */
562
- x: number;
563
- /**
564
- * Y offset in device independent pixels (dip).
565
- */
566
- y: number;
567
- /**
568
- * Rectangle width in device independent pixels (dip).
569
- */
570
- width: number;
571
- /**
572
- * Rectangle height in device independent pixels (dip).
573
- */
574
- height: number;
575
- /**
576
- * Page scale factor.
577
- */
578
- scale: number;
579
- };
580
- /**
581
- * Capture the screenshot from the surface, rather than the view. Defaults to true.
582
- */
583
- fromSurface?: boolean;
584
- /**
585
- * Capture the screenshot beyond the viewport. Defaults to false.
586
- */
587
- captureBeyondViewport?: boolean;
588
- /**
589
- * Optimize image encoding for speed, not for resulting size (defaults to false) EXPERIMENTAL
590
- */
591
- optimizeForSpeed?: boolean;
592
- }
593
- export interface CaptureScreenshotResponse {
594
- /**
595
- * Base64-encoded image data. (Encoded as a base64 string when passed over JSON)
596
- */
597
- data: string;
598
- }
599
- export interface PrintPDFRequest {
600
- /**
601
- * Paper orientation. Defaults to false.
602
- */
603
- landscape?: boolean;
604
- /**
605
- * Display header and footer. Defaults to false.
606
- */
607
- displayHeaderFooter?: boolean;
608
- /**
609
- * Print background graphics. Defaults to false.
610
- */
611
- printBackground?: boolean;
612
- /**
613
- * Scale of the webpage rendering. Defaults to 1.
614
- */
615
- scale?: number;
616
- /**
617
- * Paper width in inches. Defaults to 8.5 inches.
618
- */
619
- paperWidth?: number;
620
- /**
621
- * Paper height in inches. Defaults to 11 inches.
622
- */
623
- paperHeight?: number;
624
- /**
625
- * Top margin in inches. Defaults to 1cm (~0.4 inches).
626
- */
627
- marginTop?: number;
628
- /**
629
- * Bottom margin in inches. Defaults to 1cm (~0.4 inches).
630
- */
631
- marginBottom?: number;
632
- /**
633
- * Left margin in inches. Defaults to 1cm (~0.4 inches).
634
- */
635
- marginLeft?: number;
636
- /**
637
- * Right margin in inches. Defaults to 1cm (~0.4 inches).
638
- */
639
- marginRight?: number;
640
- /**
641
- * Paper ranges to print, one based, e.g., '1-5, 8, 11-13'.
642
- * Pages are printed in the document order, not in the order specified,
643
- * and no more than once. Defaults to empty string,
644
- * which implies the entire document is printed.
645
- * The page numbers are quietly capped to actual page count of the document,
646
- * and ranges beyond the end of the document are ignored.
647
- * If this results in no pages to print, an error is reported.
648
- * It is an error to specify a range with start greater than end.
649
- */
650
- pageRanges?: string;
651
- /**
652
- * HTML template for the print header.
653
- * Should be valid HTML markup with following classes used to inject printing values into them:
654
- * date: formatted print date
655
- * title: document title
656
- * url: document location
657
- * pageNumber: current page number
658
- * totalPages: total pages in the document
659
- * For example, <span class=title></span> would generate span containing the title.
660
- */
661
- headerTemplate?: string;
662
- /**
663
- * HTML template for the print footer. Should use the same format as the headerTemplate.
664
- */
665
- footerTemplate?: string;
666
- /**
667
- * Whether or not to prefer page size as defined by css. Defaults to false, in which case the content will be scaled to fit the paper size.
668
- */
669
- preferCSSPageSize?: boolean;
670
- }
671
- export interface PrintPDFResponse {
672
- /**
673
- * Base64-encoded pdf data. Empty if |returnAsStream| is specified. (Encoded as a base64 string when passed over JSON)
674
- */
675
- data: string;
676
- }
677
- export interface RequestWillBeSentEvent {
678
- /**
679
- * Request identifier.
680
- */
681
- requestId: RequestId;
682
- /**
683
- * Loader identifier. Empty string if the request is fetched from worker.
684
- */
685
- loaderId: LoaderId;
686
- /**
687
- * URL of the document this request is loaded for.
688
- */
689
- documentURL: string;
690
- /**
691
- * Request data.
692
- */
693
- request: Request;
694
- /**
695
- * Timestamp.
696
- */
697
- timestamp: number;
698
- /**
699
- * Timestamp.
700
- */
701
- wallTime: number;
702
- /**
703
- * Request initiator.
704
- */
705
- initiator: Initiator;
706
- /**
707
- * In the case that redirectResponse is populated, this flag indicates whether
708
- * requestWillBeSentExtraInfo and responseReceivedExtraInfo events will be or were emitted
709
- * for the request which was just redirected.
710
- */
711
- redirectHasExtraInfo: boolean;
712
- /**
713
- * Redirect response data.
714
- */
715
- redirectResponse?: Response;
716
- /**
717
- * Type of this resource.
718
- */
719
- type?: ResourceType;
720
- /**
721
- * Frame identifier.
722
- */
723
- frameId?: FrameId;
724
- /**
725
- * Whether the request is initiated by a user gesture. Defaults to false.
726
- */
727
- hasUserGesture?: boolean;
728
- }
729
- interface Initiator {
730
- /**
731
- * Type of this initiator. (InitiatorType enum)
732
- */
733
- type: 'parser' | 'script' | 'preload' | 'SignedExchange' | 'preflight' | 'other';
734
- /**
735
- * Initiator JavaScript stack trace, set for Script only.
736
- */
737
- stack?: StackTrace;
738
- /**
739
- * Initiator URL, set for Parser type or for Script type (when script is importing module) or for SignedExchange type.
740
- */
741
- url?: string;
742
- /**
743
- * Initiator line number, set for Parser type or for Script type (when script is importing
744
- * module) (0-based).
745
- */
746
- lineNumber?: number;
747
- /**
748
- * Initiator column number, set for Parser type or for Script type (when script is importing
749
- * module) (0-based).
750
- */
751
- columnNumber?: number;
752
- /**
753
- * Set if another request triggered this request (e.g. preflight).
754
- */
755
- requestId?: RequestId;
756
- }
757
- type ResourceType = 'Document' | 'Stylesheet' | 'Image' | 'Media' | 'Font' | 'Script' | 'TextTrack' | 'XHR' | 'Fetch' | 'EventSource' | 'WebSocket' | 'Manifest' | 'SignedExchange' | 'Ping' | 'CSPViolationReport' | 'Preflight' | 'Other';
758
- type RequestId = string;
759
- export interface ActivateTargetRequest {
760
- targetId: TargetID;
761
- }
762
- export interface SetDefaultBackgroundColorOverrideRequest {
763
- /**
764
- * RGBA of the default background color. If not specified, any existing override will be
765
- * cleared.
766
- */
767
- color?: RGBA;
768
- }
769
- interface RGBA {
770
- /**
771
- * The red component, in the [0-255] range.
772
- */
773
- r: number;
774
- /**
775
- * The green component, in the [0-255] range.
776
- */
777
- g: number;
778
- /**
779
- * The blue component, in the [0-255] range.
780
- */
781
- b: number;
782
- /**
783
- * The alpha component, in the [0-1] range (default: 1).
784
- */
785
- a?: number;
786
- }
787
- export interface Response {
788
- /**
789
- * Response URL. This URL can be different from CachedResource.url in case of redirect.
790
- */
791
- url: string;
792
- /**
793
- * HTTP response status code.
794
- */
795
- status: number;
796
- /**
797
- * HTTP response status text.
798
- */
799
- statusText: string;
800
- /**
801
- * HTTP response headers.
802
- */
803
- headers: Headers;
804
- /**
805
- * HTTP response headers text. This has been replaced by the headers in Network.responseReceivedExtraInfo.
806
- */
807
- headersText?: string;
808
- /**
809
- * Resource mimeType as determined by the browser.
810
- */
811
- mimeType: string;
812
- /**
813
- * Refined HTTP request headers that were actually transmitted over the network.
814
- */
815
- requestHeaders?: Headers;
816
- /**
817
- * HTTP request headers text. This has been replaced by the headers in Network.requestWillBeSentExtraInfo.
818
- */
819
- requestHeadersText?: string;
820
- /**
821
- * Specifies whether physical connection was actually reused for this request.
822
- */
823
- connectionReused: boolean;
824
- /**
825
- * Physical connection id that was actually used for this request.
826
- */
827
- connectionId: number;
828
- /**
829
- * Remote IP address.
830
- */
831
- remoteIPAddress?: string;
832
- /**
833
- * Remote port.
834
- */
835
- remotePort?: number;
836
- /**
837
- * Specifies that the request was served from the disk cache.
838
- */
839
- fromDiskCache?: boolean;
840
- /**
841
- * Specifies that the request was served from the ServiceWorker.
842
- */
843
- fromServiceWorker?: boolean;
844
- /**
845
- * Specifies that the request was served from the prefetch cache.
846
- */
847
- fromPrefetchCache?: boolean;
848
- /**
849
- * Total number of bytes received for this request so far.
850
- */
851
- encodedDataLength: number;
852
- /**
853
- * The time at which the returned response was generated.
854
- */
855
- responseTime?: number;
856
- /**
857
- * Cache Storage Cache Name.
858
- */
859
- cacheStorageCacheName?: string;
860
- /**
861
- * Protocol used to fetch this request.
862
- */
863
- protocol?: string;
864
- }
865
- export interface ResponseReceivedExtraInfoEvent {
866
- /**
867
- * Request identifier. Used to match this information to another responseReceived event.
868
- */
869
- requestId: RequestId;
870
- /**
871
- * Raw response headers as they were received over the wire.
872
- */
873
- headers: Headers;
874
- /**
875
- * The status code of the response. This is useful in cases the request failed and no responseReceived
876
- * event is triggered, which is the case for, e.g., CORS errors. This is also the correct status code
877
- * for cached requests, where the status in responseReceived is a 200 and this will be 304.
878
- */
879
- statusCode: number;
880
- /**
881
- * Raw response header text as it was received over the wire. The raw text may not always be
882
- * available, such as in the case of HTTP/2 or QUIC.
883
- */
884
- headersText?: string;
885
- }
886
- interface Request {
887
- /**
888
- * Request URL (without fragment).
889
- */
890
- url: string;
891
- /**
892
- * Fragment of the requested URL starting with hash, if present.
893
- */
894
- urlFragment?: string;
895
- /**
896
- * HTTP request method.
897
- */
898
- method: string;
899
- /**
900
- * HTTP request headers.
901
- */
902
- headers: Headers;
903
- /**
904
- * HTTP POST request data.
905
- */
906
- postData?: string;
907
- /**
908
- * True when the request has POST data. Note that postData might still be omitted when this flag is true when the data is too long.
909
- */
910
- hasPostData?: boolean;
911
- /**
912
- * The referrer policy of the request, as defined in https://www.w3.org/TR/referrer-policy/ (RequestReferrerPolicy enum)
913
- */
914
- referrerPolicy: 'unsafe-url' | 'no-referrer-when-downgrade' | 'no-referrer' | 'origin' | 'origin-when-cross-origin' | 'same-origin' | 'strict-origin' | 'strict-origin-when-cross-origin';
915
- /**
916
- * Whether is loaded via link preload.
917
- */
918
- isLinkPreload?: boolean;
919
- /**
920
- * True if this resource request is considered to be the 'same site' as the
921
- * request correspondinfg to the main frame.
922
- */
923
- isSameSite?: boolean;
924
- }
925
- export interface RequestPausedEvent {
926
- /**
927
- * Each request the page makes will have a unique id.
928
- */
929
- requestId: RequestId;
930
- /**
931
- * The details of the request.
932
- */
933
- request: Request;
934
- /**
935
- * The id of the frame that initiated the request.
936
- */
937
- frameId: FrameId;
938
- /**
939
- * How the requested resource will be used.
940
- */
941
- resourceType: ResourceType;
942
- /**
943
- * Response status text if intercepted at response stage.
944
- */
945
- responseStatusText?: string;
946
- /**
947
- * If the intercepted request had a corresponding Network.requestWillBeSent event fired for it,
948
- * then this networkId will be the same as the requestId present in the requestWillBeSent event.
949
- */
950
- networkId?: RequestId;
951
- }
952
- export interface ResponseReceivedEvent {
953
- /**
954
- * Request identifier.
955
- */
956
- requestId: RequestId;
957
- /**
958
- * Loader identifier. Empty string if the request is fetched from worker.
959
- */
960
- loaderId: LoaderId;
961
- /**
962
- * Timestamp.
963
- */
964
- timestamp: number;
965
- /**
966
- * Resource type.
967
- */
968
- type: ResourceType;
969
- /**
970
- * Response data.
971
- */
972
- response: Response;
973
- /**
974
- * Indicates whether requestWillBeSentExtraInfo and responseReceivedExtraInfo events will be
975
- * or were emitted for this request.
976
- */
977
- hasExtraInfo: boolean;
978
- /**
979
- * Frame identifier.
980
- */
981
- frameId?: FrameId;
982
- }
983
- export interface LoadingFinishedEvent {
984
- /**
985
- * Request identifier.
986
- */
987
- requestId: RequestId;
988
- /**
989
- * Timestamp.
990
- */
991
- timestamp: number;
992
- /**
993
- * Total number of bytes received for this request.
994
- */
995
- encodedDataLength: number;
996
- /**
997
- * Set when 1) response was blocked by Cross-Origin Read Blocking and also
998
- * 2) this needs to be reported to the DevTools console.
999
- */
1000
- shouldReportCorbBlocking?: boolean;
1001
- }
1002
- export interface LoadingFailedEvent {
1003
- /**
1004
- * Request identifier.
1005
- */
1006
- requestId: RequestId;
1007
- /**
1008
- * Timestamp.
1009
- */
1010
- timestamp: number;
1011
- /**
1012
- * Resource type.
1013
- */
1014
- type: ResourceType;
1015
- /**
1016
- * User friendly error message.
1017
- */
1018
- errorText: string;
1019
- /**
1020
- * True if loading was canceled.
1021
- */
1022
- canceled?: boolean;
1023
- }
1024
- export interface EnableRequest {
1025
- /**
1026
- * Time domain to use for collecting and reporting duration metrics. (EnableRequestTimeDomain enum)
1027
- */
1028
- timeDomain?: 'timeTicks' | 'threadTicks';
1029
- }
1030
- export interface RequestServedFromCacheEvent {
1031
- /**
1032
- * Request identifier.
1033
- */
1034
- requestId: RequestId;
1035
- }
1036
- export interface DetachFromTargetRequest {
1037
- /**
1038
- * Session to detach.
1039
- */
1040
- sessionId?: SessionID;
1041
- /**
1042
- * Deprecated.
1043
- */
1044
- targetId?: TargetID;
1045
- }
1046
- export interface SetDeviceMetricsOverrideRequest {
1047
- /**
1048
- * Overriding width value in pixels (minimum 0, maximum 10000000). 0 disables the override.
1049
- */
1050
- width: number;
1051
- /**
1052
- * Overriding height value in pixels (minimum 0, maximum 10000000). 0 disables the override.
1053
- */
1054
- height: number;
1055
- /**
1056
- * Overriding device scale factor value. 0 disables the override.
1057
- */
1058
- deviceScaleFactor: number;
1059
- /**
1060
- * Whether to emulate mobile device. This includes viewport meta tag, overlay scrollbars, text
1061
- * autosizing and more.
1062
- */
1063
- mobile: boolean;
1064
- /**
1065
- * Scale to apply to resulting view image.
1066
- */
1067
- scale?: number;
1068
- /**
1069
- * Overriding screen width value in pixels (minimum 0, maximum 10000000).
1070
- */
1071
- screenWidth?: number;
1072
- /**
1073
- * Overriding screen height value in pixels (minimum 0, maximum 10000000).
1074
- */
1075
- screenHeight?: number;
1076
- /**
1077
- * Overriding view X position on screen in pixels (minimum 0, maximum 10000000).
1078
- */
1079
- positionX?: number;
1080
- /**
1081
- * Overriding view Y position on screen in pixels (minimum 0, maximum 10000000).
1082
- */
1083
- positionY?: number;
1084
- /**
1085
- * Do not set visible view size, rely upon explicit setVisibleSize call.
1086
- */
1087
- dontSetVisibleSize?: boolean;
1088
- /**
1089
- * Screen orientation override.
1090
- */
1091
- screenOrientation?: ScreenOrientation;
1092
- /**
1093
- * If set, the visible area of the page will be overridden to this viewport. This viewport
1094
- * change is not observed by the page, e.g. viewport-relative elements do not change positions.
1095
- */
1096
- viewport?: {
1097
- /**
1098
- * X offset in device independent pixels (dip).
1099
- */
1100
- x: number;
1101
- /**
1102
- * Y offset in device independent pixels (dip).
1103
- */
1104
- y: number;
1105
- /**
1106
- * Rectangle width in device independent pixels (dip).
1107
- */
1108
- width: number;
1109
- /**
1110
- * Rectangle height in device independent pixels (dip).
1111
- */
1112
- height: number;
1113
- /**
1114
- * Page scale factor.
1115
- */
1116
- scale: number;
1117
- };
1118
- /**
1119
- * If set, the display feature of a multi-segment screen. If not set, multi-segment support
1120
- * is turned-off.
1121
- */
1122
- displayFeature?: DisplayFeature;
1123
- }
1124
- interface DisplayFeature {
1125
- /**
1126
- * Orientation of a display feature in relation to screen (DisplayFeatureOrientation enum)
1127
- */
1128
- orientation: 'vertical' | 'horizontal';
1129
- /**
1130
- * The offset from the screen origin in either the x (for vertical
1131
- * orientation) or y (for horizontal orientation) direction.
1132
- */
1133
- offset: number;
1134
- /**
1135
- * A display feature may mask content such that it is not physically
1136
- * displayed - this length along with the offset describes this area.
1137
- * A display feature that only splits content will have a 0 mask_length.
1138
- */
1139
- maskLength: number;
1140
- }
1141
- export interface EntryAddedEvent {
1142
- /**
1143
- * The entry.
1144
- */
1145
- entry: LogEntry;
1146
- }
1147
- interface LogEntry {
1148
- /**
1149
- * Log entry source. (LogEntrySource enum)
1150
- */
1151
- source: 'xml' | 'javascript' | 'network' | 'storage' | 'appcache' | 'rendering' | 'security' | 'deprecation' | 'worker' | 'violation' | 'intervention' | 'recommendation' | 'other';
1152
- /**
1153
- * Log entry severity. (LogEntryLevel enum)
1154
- */
1155
- level: 'verbose' | 'info' | 'warning' | 'error';
1156
- /**
1157
- * Logged text.
1158
- */
1159
- text: string;
1160
- /**
1161
- * (LogEntryCategory enum)
1162
- */
1163
- category?: 'cors';
1164
- /**
1165
- * Timestamp when this entry was added.
1166
- */
1167
- timestamp: number;
1168
- /**
1169
- * URL of the resource if known.
1170
- */
1171
- url?: string;
1172
- /**
1173
- * Line number in the resource.
1174
- */
1175
- lineNumber?: number;
1176
- /**
1177
- * JavaScript stack trace.
1178
- */
1179
- stackTrace?: StackTrace;
1180
- /**
1181
- * Identifier of the network request associated with this entry.
1182
- */
1183
- networkRequestId?: RequestId;
1184
- /**
1185
- * Identifier of the worker associated with this entry.
1186
- */
1187
- workerId?: string;
1188
- /**
1189
- * Call arguments.
1190
- */
1191
- args?: DevtoolsRemoteObject[];
1192
- }
1193
- export interface ConsoleAPICalledEvent {
1194
- /**
1195
- * Type of the call. (ConsoleAPICalledEventType enum)
1196
- */
1197
- type: 'log' | 'debug' | 'info' | 'error' | 'warning' | 'dir' | 'dirxml' | 'table' | 'trace' | 'clear' | 'startGroup' | 'startGroupCollapsed' | 'endGroup' | 'assert' | 'profile' | 'profileEnd' | 'count' | 'timeEnd';
1198
- /**
1199
- * Call arguments.
1200
- */
1201
- args: DevtoolsRemoteObject[];
1202
- /**
1203
- * Identifier of the context where the call was made.
1204
- */
1205
- executionContextId: ExecutionContextId;
1206
- /**
1207
- * Call timestamp.
1208
- */
1209
- timestamp: number;
1210
- /**
1211
- * Stack trace captured when the call was made. The async stack chain is automatically reported for
1212
- * the following call types: `assert`, `error`, `trace`, `warning`. For other types the async call
1213
- * chain can be retrieved using `Debugger.getStackTrace` and `stackTrace.parentId` field.
1214
- */
1215
- stackTrace?: StackTrace;
1216
- /**
1217
- * Console context descriptor for calls on non-default console context (not console.*):
1218
- * 'anonymous#unique-logger-id' for call on unnamed context, 'name#unique-logger-id' for call
1219
- * on named context.
1220
- */
1221
- context?: string;
1222
- }
1223
- export interface BindingCalledEvent {
1224
- name: string;
1225
- payload: string;
1226
- /**
1227
- * Identifier of the context where the call was made.
1228
- */
1229
- executionContextId: ExecutionContextId;
1230
- }
1231
- interface ScreenOrientation {
1232
- /**
1233
- * Orientation type. (ScreenOrientationType enum)
1234
- */
1235
- type: 'portraitPrimary' | 'portraitSecondary' | 'landscapePrimary' | 'landscapeSecondary';
1236
- /**
1237
- * Orientation angle.
1238
- */
1239
- angle: number;
1240
- }
1241
- export interface CloseTargetRequest {
1242
- targetId: TargetID;
1243
- }
1244
- export interface CloseTargetResponse {
1245
- /**
1246
- * Always set to true. If an error occurs, the response indicates protocol error.
1247
- */
1248
- success: boolean;
1249
- }
1250
- export interface ExceptionThrownEvent {
1251
- /**
1252
- * Timestamp of the exception.
1253
- */
1254
- timestamp: number;
1255
- exceptionDetails: ExceptionDetails;
1256
- }
1257
- export interface ReleaseObjectRequest {
1258
- /**
1259
- * Identifier of the object to release.
1260
- */
1261
- objectId: RemoteObjectId;
1262
- }
1263
- export {};