@paulirish/trace_engine 0.0.10 → 0.0.12

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 (256) hide show
  1. package/README.md +1 -1
  2. package/analyze-trace.mjs +1 -1
  3. package/core/platform/DevToolsPath.d.ts +4 -13
  4. package/core/platform/DevToolsPath.js +7 -4
  5. package/core/platform/DevToolsPath.js.map +1 -7
  6. package/core/platform/MimeType.d.ts +27 -0
  7. package/core/platform/MimeType.js +119 -86
  8. package/core/platform/MimeType.js.map +1 -7
  9. package/core/platform/Timing.d.ts +7 -0
  10. package/core/platform/Timing.js +7 -4
  11. package/core/platform/Timing.js.map +1 -7
  12. package/core/platform/UIString.d.ts +2 -5
  13. package/core/platform/UIString.js +5 -2
  14. package/core/platform/UIString.js.map +1 -7
  15. package/core/platform/UserVisibleError.js +19 -10
  16. package/core/platform/UserVisibleError.js.map +1 -7
  17. package/core/platform/array-utilities.d.ts +48 -10
  18. package/core/platform/array-utilities.js +160 -124
  19. package/core/platform/array-utilities.js.map +1 -7
  20. package/core/platform/brand.d.ts +14 -0
  21. package/core/platform/brand.js +5 -1
  22. package/core/platform/brand.js.map +1 -7
  23. package/core/platform/date-utilities.js +10 -6
  24. package/core/platform/date-utilities.js.map +1 -7
  25. package/core/platform/dom-utilities.d.ts +3 -1
  26. package/core/platform/dom-utilities.js +94 -83
  27. package/core/platform/dom-utilities.js.map +1 -7
  28. package/core/platform/keyboard-utilities.d.ts +2 -0
  29. package/core/platform/keyboard-utilities.js +15 -24
  30. package/core/platform/keyboard-utilities.js.map +1 -7
  31. package/core/platform/map-utilities.d.ts +4 -0
  32. package/core/platform/map-utilities.js +66 -60
  33. package/core/platform/map-utilities.js.map +1 -7
  34. package/core/platform/number-utilities.js +66 -55
  35. package/core/platform/number-utilities.js.map +1 -7
  36. package/core/platform/platform.d.ts +5 -1
  37. package/core/platform/platform.js +54 -37
  38. package/core/platform/platform.js.map +1 -7
  39. package/core/platform/promise-utilities.d.ts +10 -0
  40. package/core/platform/promise-utilities.js +16 -8
  41. package/core/platform/promise-utilities.js.map +1 -7
  42. package/core/platform/set-utilities.js +20 -17
  43. package/core/platform/set-utilities.js.map +1 -7
  44. package/core/platform/string-utilities.d.ts +32 -1
  45. package/core/platform/string-utilities.js +453 -379
  46. package/core/platform/string-utilities.js.map +1 -7
  47. package/core/platform/typescript-utilities.d.ts +5 -5
  48. package/core/platform/typescript-utilities.js +19 -7
  49. package/core/platform/typescript-utilities.js.map +1 -7
  50. package/generated/protocol.d.ts +2081 -347
  51. package/generated/protocol.js +5 -2230
  52. package/models/cpu_profile/CPUProfileDataModel.d.ts +77 -0
  53. package/models/cpu_profile/CPUProfileDataModel.js +492 -359
  54. package/models/cpu_profile/CPUProfileDataModel.js.map +1 -7
  55. package/models/cpu_profile/ProfileTreeModel.d.ts +29 -0
  56. package/models/cpu_profile/ProfileTreeModel.js +87 -82
  57. package/models/cpu_profile/ProfileTreeModel.js.map +1 -7
  58. package/models/cpu_profile/cpu_profile.d.ts +3 -0
  59. package/models/cpu_profile/cpu_profile.js +7 -7
  60. package/models/cpu_profile/cpu_profile.js.map +1 -7
  61. package/models/trace/EntriesFilter.d.ts +55 -0
  62. package/models/trace/EntriesFilter.js +227 -166
  63. package/models/trace/EntriesFilter.js.map +1 -7
  64. package/models/trace/LegacyTracingModel.js.map +1 -7
  65. package/models/trace/ModelImpl.d.ts +110 -0
  66. package/models/trace/ModelImpl.js +161 -102
  67. package/models/trace/ModelImpl.js.map +1 -7
  68. package/models/trace/Processor.d.ts +36 -0
  69. package/models/trace/Processor.js +197 -163
  70. package/models/trace/Processor.js.map +1 -7
  71. package/models/trace/TracingManager.js.map +1 -7
  72. package/models/trace/extras/FetchNodes.d.ts +46 -0
  73. package/models/trace/extras/FetchNodes.js +132 -91
  74. package/models/trace/extras/FetchNodes.js.map +1 -7
  75. package/models/trace/extras/FilmStrip.d.ts +19 -0
  76. package/models/trace/extras/FilmStrip.js +38 -31
  77. package/models/trace/extras/FilmStrip.js.map +1 -7
  78. package/models/trace/extras/MainThreadActivity.d.ts +2 -0
  79. package/models/trace/extras/MainThreadActivity.js +72 -56
  80. package/models/trace/extras/MainThreadActivity.js.map +1 -7
  81. package/models/trace/extras/Metadata.d.ts +2 -0
  82. package/models/trace/extras/Metadata.js +42 -26
  83. package/models/trace/extras/Metadata.js.map +1 -7
  84. package/models/trace/extras/extras.js.map +1 -7
  85. package/models/trace/handlers/AnimationHandler.d.ts +8 -0
  86. package/models/trace/handlers/AnimationHandler.js +22 -20
  87. package/models/trace/handlers/AnimationHandler.js.map +1 -7
  88. package/models/trace/handlers/AuctionWorkletsHandler.d.ts +8 -0
  89. package/models/trace/handlers/AuctionWorkletsHandler.js +143 -89
  90. package/models/trace/handlers/AuctionWorkletsHandler.js.map +1 -7
  91. package/models/trace/handlers/FramesHandler.d.ts +76 -0
  92. package/models/trace/handlers/FramesHandler.js +424 -355
  93. package/models/trace/handlers/FramesHandler.js.map +1 -7
  94. package/models/trace/handlers/GPUHandler.d.ts +11 -0
  95. package/models/trace/handlers/GPUHandler.js +41 -37
  96. package/models/trace/handlers/GPUHandler.js.map +1 -7
  97. package/models/trace/handlers/InitiatorsHandler.d.ts +10 -0
  98. package/models/trace/handlers/InitiatorsHandler.js +164 -113
  99. package/models/trace/handlers/InitiatorsHandler.js.map +1 -7
  100. package/models/trace/handlers/InvalidationsHandler.d.ts +10 -0
  101. package/models/trace/handlers/InvalidationsHandler.js +101 -79
  102. package/models/trace/handlers/InvalidationsHandler.js.map +1 -7
  103. package/models/trace/handlers/LargestImagePaintHandler.d.ts +5 -0
  104. package/models/trace/handlers/LargestImagePaintHandler.js +32 -12
  105. package/models/trace/handlers/LargestImagePaintHandler.js.map +1 -7
  106. package/models/trace/handlers/LargestTextPaintHandler.d.ts +5 -0
  107. package/models/trace/handlers/LargestTextPaintHandler.js +20 -12
  108. package/models/trace/handlers/LargestTextPaintHandler.js.map +1 -7
  109. package/models/trace/handlers/LayerTreeHandler.d.ts +13 -0
  110. package/models/trace/handlers/LayerTreeHandler.js +96 -70
  111. package/models/trace/handlers/LayerTreeHandler.js.map +1 -7
  112. package/models/trace/handlers/LayoutShiftsHandler.d.ts +44 -0
  113. package/models/trace/handlers/LayoutShiftsHandler.js +304 -227
  114. package/models/trace/handlers/LayoutShiftsHandler.js.map +1 -7
  115. package/models/trace/handlers/MemoryHandler.d.ts +7 -0
  116. package/models/trace/handlers/MemoryHandler.js +14 -11
  117. package/models/trace/handlers/MemoryHandler.js.map +1 -7
  118. package/models/trace/handlers/MetaHandler.d.ts +37 -0
  119. package/models/trace/handlers/MetaHandler.js +314 -226
  120. package/models/trace/handlers/MetaHandler.js.map +1 -7
  121. package/models/trace/handlers/ModelHandlers.d.ts +21 -0
  122. package/models/trace/handlers/ModelHandlers.js +25 -22
  123. package/models/trace/handlers/ModelHandlers.js.map +1 -7
  124. package/models/trace/handlers/NetworkRequestsHandler.d.ts +17 -0
  125. package/models/trace/handlers/NetworkRequestsHandler.js +342 -218
  126. package/models/trace/handlers/NetworkRequestsHandler.js.map +1 -7
  127. package/models/trace/handlers/PageLoadMetricsHandler.d.ts +67 -0
  128. package/models/trace/handlers/PageLoadMetricsHandler.js +357 -284
  129. package/models/trace/handlers/PageLoadMetricsHandler.js.map +1 -7
  130. package/models/trace/handlers/RendererHandler.d.ts +101 -0
  131. package/models/trace/handlers/RendererHandler.js +295 -191
  132. package/models/trace/handlers/RendererHandler.js.map +1 -7
  133. package/models/trace/handlers/SamplesHandler.d.ts +46 -0
  134. package/models/trace/handlers/SamplesHandler.js +195 -158
  135. package/models/trace/handlers/SamplesHandler.js.map +1 -7
  136. package/models/trace/handlers/ScreenshotsHandler.d.ts +7 -0
  137. package/models/trace/handlers/ScreenshotsHandler.js +63 -41
  138. package/models/trace/handlers/ScreenshotsHandler.js.map +1 -7
  139. package/models/trace/handlers/Threads.d.ts +33 -0
  140. package/models/trace/handlers/Threads.js +85 -67
  141. package/models/trace/handlers/Threads.js.map +1 -7
  142. package/models/trace/handlers/UserInteractionsHandler.d.ts +57 -0
  143. package/models/trace/handlers/UserInteractionsHandler.js +240 -141
  144. package/models/trace/handlers/UserInteractionsHandler.js.map +1 -7
  145. package/models/trace/handlers/UserTimingsHandler.d.ts +28 -0
  146. package/models/trace/handlers/UserTimingsHandler.js +91 -80
  147. package/models/trace/handlers/UserTimingsHandler.js.map +1 -7
  148. package/models/trace/handlers/WarningsHandler.d.ts +14 -0
  149. package/models/trace/handlers/WarningsHandler.js +100 -62
  150. package/models/trace/handlers/WarningsHandler.js.map +1 -7
  151. package/models/trace/handlers/WorkersHandler.d.ts +11 -0
  152. package/models/trace/handlers/WorkersHandler.js +40 -38
  153. package/models/trace/handlers/WorkersHandler.js.map +1 -7
  154. package/models/trace/handlers/handlers.d.ts +3 -0
  155. package/models/trace/handlers/handlers.js +7 -4
  156. package/models/trace/handlers/handlers.js.map +1 -7
  157. package/models/trace/handlers/types.d.ts +45 -0
  158. package/models/trace/handlers/types.js +15 -15
  159. package/models/trace/handlers/types.js.map +1 -7
  160. package/models/trace/helpers/SamplesIntegrator.d.ts +49 -0
  161. package/models/trace/helpers/SamplesIntegrator.js +381 -204
  162. package/models/trace/helpers/SamplesIntegrator.js.map +1 -7
  163. package/models/trace/helpers/Timing.d.ts +26 -0
  164. package/models/trace/helpers/Timing.js +131 -110
  165. package/models/trace/helpers/Timing.js.map +1 -7
  166. package/models/trace/helpers/Trace.d.ts +37 -0
  167. package/models/trace/helpers/Trace.js +200 -166
  168. package/models/trace/helpers/Trace.js.map +1 -7
  169. package/models/trace/helpers/TreeHelpers.d.ts +90 -0
  170. package/models/trace/helpers/TreeHelpers.js +203 -100
  171. package/models/trace/helpers/TreeHelpers.js.map +1 -7
  172. package/models/trace/helpers/helpers.d.ts +4 -0
  173. package/models/trace/helpers/helpers.js +8 -5
  174. package/models/trace/helpers/helpers.js.map +1 -7
  175. package/models/trace/root-causes/LayoutShift.d.ts +119 -0
  176. package/models/trace/root-causes/LayoutShift.js +470 -323
  177. package/models/trace/root-causes/LayoutShift.js.map +1 -7
  178. package/models/trace/root-causes/RootCauses.d.ts +14 -0
  179. package/models/trace/root-causes/RootCauses.js +9 -6
  180. package/models/trace/root-causes/RootCauses.js.map +1 -7
  181. package/models/trace/root-causes/root-causes.d.ts +1 -0
  182. package/models/trace/root-causes/root-causes.js +5 -2
  183. package/models/trace/root-causes/root-causes.js.map +1 -7
  184. package/models/trace/trace.d.ts +11 -0
  185. package/models/trace/trace.js +17 -23
  186. package/models/trace/trace.js.map +1 -7
  187. package/models/trace/types/Configuration.d.ts +33 -0
  188. package/models/trace/types/Configuration.js +25 -14
  189. package/models/trace/types/Configuration.js.map +1 -7
  190. package/models/trace/types/File.d.ts +23 -0
  191. package/models/trace/types/File.js +5 -6
  192. package/models/trace/types/File.js.map +1 -7
  193. package/models/trace/types/Timing.d.ts +25 -0
  194. package/models/trace/types/Timing.js +10 -11
  195. package/models/trace/types/Timing.js.map +1 -7
  196. package/models/trace/types/TraceEvents.d.ts +1571 -0
  197. package/models/trace/types/TraceEvents.js +174 -381
  198. package/models/trace/types/TraceEvents.js.map +1 -7
  199. package/models/trace/types/types.d.ts +4 -0
  200. package/models/trace/types/types.js +8 -5
  201. package/models/trace/types/types.js.map +1 -7
  202. package/package.json +1 -1
  203. package/TracingManager.js +0 -0
  204. package/core/platform/devtools_entrypoint-bundle-tsconfig-tsconfig.json +0 -40
  205. package/core/platform/platform.js.compressed +0 -0
  206. package/core/platform/platform.js.hash +0 -1
  207. package/core/platform/platform.prebundle.d.ts +0 -15
  208. package/core/platform/platform.prebundle.js +0 -50
  209. package/core/platform/platform.prebundle.js.map +0 -1
  210. package/core/platform/platform.prebundle.ts +0 -64
  211. package/extras/extras.js +0 -0
  212. package/models/trace/SDKServices.js +0 -104
  213. package/models/trace/SDKServices.js.map +0 -7
  214. package/models/trace/TraceProcessor.js +0 -133
  215. package/models/trace/TraceProcessor.js.map +0 -7
  216. package/models/trace/TreeManipulator.js +0 -85
  217. package/models/trace/TreeManipulator.js.map +0 -7
  218. package/models/trace/devtools_entrypoint-legacy-typescript-tsconfig.json +0 -43
  219. package/models/trace/frames/TimelineFrameModel.js +0 -392
  220. package/models/trace/frames/TimelineFrameModel.js.map +0 -7
  221. package/models/trace/frames/bundle-tsconfig.json +0 -1
  222. package/models/trace/frames/devtools_entrypoint-bundle-typescript-tsconfig.json +0 -43
  223. package/models/trace/frames/frames-tsconfig.json +0 -58
  224. package/models/trace/frames/frames.js +0 -5
  225. package/models/trace/frames/frames.js.map +0 -7
  226. package/models/trace/handlers/Migration.js +0 -27
  227. package/models/trace/handlers/Migration.js.map +0 -7
  228. package/models/trace/handlers/UberFramesHandler.js +0 -293
  229. package/models/trace/handlers/UberFramesHandler.js.map +0 -7
  230. package/models/trace/legacy-tsconfig.json +0 -1
  231. package/models/trace/sdk_services/DOMNodeLookup.js +0 -41
  232. package/models/trace/sdk_services/DOMNodeLookup.js.map +0 -7
  233. package/models/trace/sdk_services/LayoutShifts.js +0 -68
  234. package/models/trace/sdk_services/LayoutShifts.js.map +0 -7
  235. package/models/trace/sdk_services/bundle-tsconfig.json +0 -1
  236. package/models/trace/sdk_services/devtools_entrypoint-bundle-typescript-tsconfig.json +0 -41
  237. package/models/trace/sdk_services/sdk_services-tsconfig.json +0 -57
  238. package/models/trace/sdk_services/sdk_services.js +0 -7
  239. package/models/trace/sdk_services/sdk_services.js.map +0 -7
  240. package/models/trace/trace-legacy.js +0 -16
  241. package/models/trace/trace-legacy.js.map +0 -7
  242. package/models/trace/worker/Processor.js +0 -143
  243. package/models/trace/worker/Processor.js.map +0 -7
  244. package/models/trace/worker/Types.js +0 -1
  245. package/models/trace/worker/Types.js.map +0 -7
  246. package/models/trace/worker/bundle-tsconfig.json +0 -1
  247. package/models/trace/worker/devtools_entrypoint-bundle-typescript-tsconfig.json +0 -41
  248. package/models/trace/worker/devtools_entrypoint-worker_entrypoint-typescript-tsconfig.json +0 -41
  249. package/models/trace/worker/processor-tsconfig.json +0 -45
  250. package/models/trace/worker/worker.js +0 -7
  251. package/models/trace/worker/worker.js.map +0 -7
  252. package/models/trace/worker/worker_entrypoint-tsconfig.json +0 -1
  253. package/models/trace/worker/worker_entrypoint.js +0 -36
  254. package/models/trace/worker/worker_entrypoint.js.map +0 -7
  255. package/trace.mjs +0 -6980
  256. package/trace.mjs.map +0 -8
@@ -2,19 +2,19 @@
2
2
  * This file is auto-generated, do not edit manually. *
3
3
  * Re-generate with: npm run generate-protocol-resources.
4
4
  */
5
- export declare type integer = number;
6
- export declare type binary = string;
7
- export declare type EnumerableEnum<T> = {
5
+ export type integer = number;
6
+ export type binary = string;
7
+ export type EnumerableEnum<T> = {
8
8
  [K in keyof T]: T[K];
9
9
  };
10
10
  export interface ProtocolResponseWithError {
11
11
  /** Returns an error message if the request failed. */
12
12
  getError(): string | undefined;
13
13
  }
14
- declare type OpaqueType<Tag extends string> = {
14
+ type OpaqueType<Tag extends string> = {
15
15
  protocolOpaqueTypeTag: Tag;
16
16
  };
17
- declare type OpaqueIdentifier<RepresentationType, Tag extends string> = RepresentationType & OpaqueType<Tag>;
17
+ type OpaqueIdentifier<RepresentationType, Tag extends string> = RepresentationType & OpaqueType<Tag>;
18
18
  export declare namespace Accessibility {
19
19
  /**
20
20
  * Unique accessibility node identifier.
@@ -93,7 +93,7 @@ export declare namespace Accessibility {
93
93
  */
94
94
  superseded?: boolean;
95
95
  /**
96
- * The native markup source for this value, e.g. a <label> element.
96
+ * The native markup source for this value, e.g. a `<label>` element.
97
97
  */
98
98
  nativeSource?: AXValueNativeSourceType;
99
99
  /**
@@ -274,7 +274,7 @@ export declare namespace Accessibility {
274
274
  */
275
275
  objectId?: Runtime.RemoteObjectId;
276
276
  /**
277
- * Whether to fetch this nodes ancestors, siblings and children. Defaults to true.
277
+ * Whether to fetch this node's ancestors, siblings and children. Defaults to true.
278
278
  */
279
279
  fetchRelatives?: boolean;
280
280
  }
@@ -419,6 +419,9 @@ export declare namespace Animation {
419
419
  playbackRate: number;
420
420
  /**
421
421
  * `Animation`'s start time.
422
+ * Milliseconds for time based animations and
423
+ * percentage [0 - 100] for scroll driven animations
424
+ * (i.e. when viewOrScrollTimeline exists).
422
425
  */
423
426
  startTime: number;
424
427
  /**
@@ -438,6 +441,39 @@ export declare namespace Animation {
438
441
  * animation/transition.
439
442
  */
440
443
  cssId?: string;
444
+ /**
445
+ * View or scroll timeline
446
+ */
447
+ viewOrScrollTimeline?: ViewOrScrollTimeline;
448
+ }
449
+ /**
450
+ * Timeline instance
451
+ */
452
+ interface ViewOrScrollTimeline {
453
+ /**
454
+ * Scroll container node
455
+ */
456
+ sourceNodeId?: DOM.BackendNodeId;
457
+ /**
458
+ * Represents the starting scroll position of the timeline
459
+ * as a length offset in pixels from scroll origin.
460
+ */
461
+ startOffset?: number;
462
+ /**
463
+ * Represents the ending scroll position of the timeline
464
+ * as a length offset in pixels from scroll origin.
465
+ */
466
+ endOffset?: number;
467
+ /**
468
+ * The element whose principal box's visibility in the
469
+ * scrollport defined the progress of the timeline.
470
+ * Does not exist for animations with ScrollTimeline
471
+ */
472
+ subjectNodeId?: DOM.BackendNodeId;
473
+ /**
474
+ * Orientation of the scroll
475
+ */
476
+ axis: DOM.ScrollOrientation;
441
477
  }
442
478
  /**
443
479
  * AnimationEffect instance
@@ -461,6 +497,9 @@ export declare namespace Animation {
461
497
  iterations: number;
462
498
  /**
463
499
  * `AnimationEffect`'s iteration duration.
500
+ * Milliseconds for time based animations and
501
+ * percentage [0 - 100] for scroll driven animations
502
+ * (i.e. when viewOrScrollTimeline exists).
464
503
  */
465
504
  duration: number;
466
505
  /**
@@ -652,7 +691,9 @@ export declare namespace Audits {
652
691
  ExcludeSameSiteStrict = "ExcludeSameSiteStrict",
653
692
  ExcludeInvalidSameParty = "ExcludeInvalidSameParty",
654
693
  ExcludeSamePartyCrossPartyContext = "ExcludeSamePartyCrossPartyContext",
655
- ExcludeDomainNonASCII = "ExcludeDomainNonASCII"
694
+ ExcludeDomainNonASCII = "ExcludeDomainNonASCII",
695
+ ExcludeThirdPartyCookieBlockedInFirstPartySet = "ExcludeThirdPartyCookieBlockedInFirstPartySet",
696
+ ExcludeThirdPartyPhaseout = "ExcludeThirdPartyPhaseout"
656
697
  }
657
698
  const enum CookieWarningReason {
658
699
  WarnSameSiteUnspecifiedCrossSiteContext = "WarnSameSiteUnspecifiedCrossSiteContext",
@@ -664,7 +705,9 @@ export declare namespace Audits {
664
705
  WarnSameSiteLaxCrossDowngradeStrict = "WarnSameSiteLaxCrossDowngradeStrict",
665
706
  WarnSameSiteLaxCrossDowngradeLax = "WarnSameSiteLaxCrossDowngradeLax",
666
707
  WarnAttributeValueExceedsMaxSize = "WarnAttributeValueExceedsMaxSize",
667
- WarnDomainNonASCII = "WarnDomainNonASCII"
708
+ WarnDomainNonASCII = "WarnDomainNonASCII",
709
+ WarnThirdPartyPhaseout = "WarnThirdPartyPhaseout",
710
+ WarnCrossSiteRedirectDowngradeChangesInclusion = "WarnCrossSiteRedirectDowngradeChangesInclusion"
668
711
  }
669
712
  const enum CookieOperation {
670
713
  SetCookie = "SetCookie",
@@ -713,6 +756,7 @@ export declare namespace Audits {
713
756
  Frame = "Frame",
714
757
  Image = "Image",
715
758
  Import = "Import",
759
+ JSON = "JSON",
716
760
  Manifest = "Manifest",
717
761
  Ping = "Ping",
718
762
  PluginData = "PluginData",
@@ -722,6 +766,7 @@ export declare namespace Audits {
722
766
  Script = "Script",
723
767
  ServiceWorker = "ServiceWorker",
724
768
  SharedWorker = "SharedWorker",
769
+ SpeculationRules = "SpeculationRules",
725
770
  Stylesheet = "Stylesheet",
726
771
  Track = "Track",
727
772
  Video = "Video",
@@ -846,29 +891,6 @@ export declare namespace Audits {
846
891
  isWarning: boolean;
847
892
  type: SharedArrayBufferIssueType;
848
893
  }
849
- const enum TwaQualityEnforcementViolationType {
850
- KHttpError = "kHttpError",
851
- KUnavailableOffline = "kUnavailableOffline",
852
- KDigitalAssetLinks = "kDigitalAssetLinks"
853
- }
854
- interface TrustedWebActivityIssueDetails {
855
- /**
856
- * The url that triggers the violation.
857
- */
858
- url: string;
859
- violationType: TwaQualityEnforcementViolationType;
860
- httpStatusCode?: integer;
861
- /**
862
- * The package name of the Trusted Web Activity client app. This field is
863
- * only used when violation type is kDigitalAssetLinks.
864
- */
865
- packageName?: string;
866
- /**
867
- * The signature of the Trusted Web Activity client app. This field is only
868
- * used when violation type is kDigitalAssetLinks.
869
- */
870
- signature?: string;
871
- }
872
894
  interface LowTextContrastIssueDetails {
873
895
  violatingNodeId: DOM.BackendNodeId;
874
896
  violatingNodeSelector: string;
@@ -897,11 +919,16 @@ export declare namespace Audits {
897
919
  InsecureContext = "InsecureContext",
898
920
  InvalidHeader = "InvalidHeader",
899
921
  InvalidRegisterTriggerHeader = "InvalidRegisterTriggerHeader",
900
- InvalidEligibleHeader = "InvalidEligibleHeader",
901
- TooManyConcurrentRequests = "TooManyConcurrentRequests",
902
922
  SourceAndTriggerHeaders = "SourceAndTriggerHeaders",
903
923
  SourceIgnored = "SourceIgnored",
904
- TriggerIgnored = "TriggerIgnored"
924
+ TriggerIgnored = "TriggerIgnored",
925
+ OsSourceIgnored = "OsSourceIgnored",
926
+ OsTriggerIgnored = "OsTriggerIgnored",
927
+ InvalidRegisterOsSourceHeader = "InvalidRegisterOsSourceHeader",
928
+ InvalidRegisterOsTriggerHeader = "InvalidRegisterOsTriggerHeader",
929
+ WebAndOsHeaders = "WebAndOsHeaders",
930
+ NoWebOrOsSupport = "NoWebOrOsSupport",
931
+ NavigationRegistrationWithoutTransientUserActivation = "NavigationRegistrationWithoutTransientUserActivation"
905
932
  }
906
933
  /**
907
934
  * Details for issues around "Attribution Reporting API" usage.
@@ -933,7 +960,18 @@ export declare namespace Audits {
933
960
  location?: SourceCodeLocation;
934
961
  }
935
962
  const enum GenericIssueErrorType {
936
- CrossOriginPortalPostMessageError = "CrossOriginPortalPostMessageError"
963
+ CrossOriginPortalPostMessageError = "CrossOriginPortalPostMessageError",
964
+ FormLabelForNameError = "FormLabelForNameError",
965
+ FormDuplicateIdForInputError = "FormDuplicateIdForInputError",
966
+ FormInputWithNoLabelError = "FormInputWithNoLabelError",
967
+ FormAutocompleteAttributeEmptyError = "FormAutocompleteAttributeEmptyError",
968
+ FormEmptyIdAndNameAttributesForInputError = "FormEmptyIdAndNameAttributesForInputError",
969
+ FormAriaLabelledByToNonExistingId = "FormAriaLabelledByToNonExistingId",
970
+ FormInputAssignedAutocompleteValueToIdOrNameAttributeError = "FormInputAssignedAutocompleteValueToIdOrNameAttributeError",
971
+ FormLabelHasNeitherForNorNestedInput = "FormLabelHasNeitherForNorNestedInput",
972
+ FormLabelForMatchesNonExistingIdError = "FormLabelForMatchesNonExistingIdError",
973
+ FormInputHasWrongButWellIntendedAutocompleteValueError = "FormInputHasWrongButWellIntendedAutocompleteValueError",
974
+ ResponseWasBlockedByORB = "ResponseWasBlockedByORB"
937
975
  }
938
976
  /**
939
977
  * Depending on the concrete errorType, different properties are set.
@@ -944,64 +982,9 @@ export declare namespace Audits {
944
982
  */
945
983
  errorType: GenericIssueErrorType;
946
984
  frameId?: Page.FrameId;
947
- }
948
- const enum DeprecationIssueType {
949
- AuthorizationCoveredByWildcard = "AuthorizationCoveredByWildcard",
950
- CanRequestURLHTTPContainingNewline = "CanRequestURLHTTPContainingNewline",
951
- ChromeLoadTimesConnectionInfo = "ChromeLoadTimesConnectionInfo",
952
- ChromeLoadTimesFirstPaintAfterLoadTime = "ChromeLoadTimesFirstPaintAfterLoadTime",
953
- ChromeLoadTimesWasAlternateProtocolAvailable = "ChromeLoadTimesWasAlternateProtocolAvailable",
954
- CookieWithTruncatingChar = "CookieWithTruncatingChar",
955
- CrossOriginAccessBasedOnDocumentDomain = "CrossOriginAccessBasedOnDocumentDomain",
956
- CrossOriginWindowAlert = "CrossOriginWindowAlert",
957
- CrossOriginWindowConfirm = "CrossOriginWindowConfirm",
958
- CSSSelectorInternalMediaControlsOverlayCastButton = "CSSSelectorInternalMediaControlsOverlayCastButton",
959
- DeprecationExample = "DeprecationExample",
960
- DocumentDomainSettingWithoutOriginAgentClusterHeader = "DocumentDomainSettingWithoutOriginAgentClusterHeader",
961
- EventPath = "EventPath",
962
- ExpectCTHeader = "ExpectCTHeader",
963
- GeolocationInsecureOrigin = "GeolocationInsecureOrigin",
964
- GeolocationInsecureOriginDeprecatedNotRemoved = "GeolocationInsecureOriginDeprecatedNotRemoved",
965
- GetUserMediaInsecureOrigin = "GetUserMediaInsecureOrigin",
966
- HostCandidateAttributeGetter = "HostCandidateAttributeGetter",
967
- IdentityInCanMakePaymentEvent = "IdentityInCanMakePaymentEvent",
968
- InsecurePrivateNetworkSubresourceRequest = "InsecurePrivateNetworkSubresourceRequest",
969
- LegacyConstraintGoogIPv6 = "LegacyConstraintGoogIPv6",
970
- LocalCSSFileExtensionRejected = "LocalCSSFileExtensionRejected",
971
- MediaSourceAbortRemove = "MediaSourceAbortRemove",
972
- MediaSourceDurationTruncatingBuffered = "MediaSourceDurationTruncatingBuffered",
973
- NavigateEventRestoreScroll = "NavigateEventRestoreScroll",
974
- NavigateEventTransitionWhile = "NavigateEventTransitionWhile",
975
- NoSysexWebMIDIWithoutPermission = "NoSysexWebMIDIWithoutPermission",
976
- NotificationInsecureOrigin = "NotificationInsecureOrigin",
977
- NotificationPermissionRequestedIframe = "NotificationPermissionRequestedIframe",
978
- ObsoleteWebRtcCipherSuite = "ObsoleteWebRtcCipherSuite",
979
- OpenWebDatabaseInsecureContext = "OpenWebDatabaseInsecureContext",
980
- OverflowVisibleOnReplacedElement = "OverflowVisibleOnReplacedElement",
981
- PersistentQuotaType = "PersistentQuotaType",
982
- PictureSourceSrc = "PictureSourceSrc",
983
- PrefixedCancelAnimationFrame = "PrefixedCancelAnimationFrame",
984
- PrefixedRequestAnimationFrame = "PrefixedRequestAnimationFrame",
985
- PrefixedStorageInfo = "PrefixedStorageInfo",
986
- PrefixedVideoDisplayingFullscreen = "PrefixedVideoDisplayingFullscreen",
987
- PrefixedVideoEnterFullscreen = "PrefixedVideoEnterFullscreen",
988
- PrefixedVideoEnterFullScreen = "PrefixedVideoEnterFullScreen",
989
- PrefixedVideoExitFullscreen = "PrefixedVideoExitFullscreen",
990
- PrefixedVideoExitFullScreen = "PrefixedVideoExitFullScreen",
991
- PrefixedVideoSupportsFullscreen = "PrefixedVideoSupportsFullscreen",
992
- RangeExpand = "RangeExpand",
993
- RequestedSubresourceWithEmbeddedCredentials = "RequestedSubresourceWithEmbeddedCredentials",
994
- RTCConstraintEnableDtlsSrtpFalse = "RTCConstraintEnableDtlsSrtpFalse",
995
- RTCConstraintEnableDtlsSrtpTrue = "RTCConstraintEnableDtlsSrtpTrue",
996
- RTCPeerConnectionComplexPlanBSdpUsingDefaultSdpSemantics = "RTCPeerConnectionComplexPlanBSdpUsingDefaultSdpSemantics",
997
- RTCPeerConnectionSdpSemanticsPlanB = "RTCPeerConnectionSdpSemanticsPlanB",
998
- RtcpMuxPolicyNegotiate = "RtcpMuxPolicyNegotiate",
999
- SharedArrayBufferConstructedWithoutIsolation = "SharedArrayBufferConstructedWithoutIsolation",
1000
- TextToSpeech_DisallowedByAutoplay = "TextToSpeech_DisallowedByAutoplay",
1001
- V8SharedArrayBufferConstructedInExtensionWithoutIsolation = "V8SharedArrayBufferConstructedInExtensionWithoutIsolation",
1002
- XHRJSONEncodingDetection = "XHRJSONEncodingDetection",
1003
- XMLHttpRequestSynchronousInNonWorkerOutsideBeforeUnload = "XMLHttpRequestSynchronousInNonWorkerOutsideBeforeUnload",
1004
- XRSupportsSession = "XRSupportsSession"
985
+ violatingNodeId?: DOM.BackendNodeId;
986
+ violatingNodeAttribute?: string;
987
+ request?: AffectedRequest;
1005
988
  }
1006
989
  /**
1007
990
  * This issue tracks information needed to print a deprecation message.
@@ -1010,7 +993,30 @@ export declare namespace Audits {
1010
993
  interface DeprecationIssueDetails {
1011
994
  affectedFrame?: AffectedFrame;
1012
995
  sourceCodeLocation: SourceCodeLocation;
1013
- type: DeprecationIssueType;
996
+ /**
997
+ * One of the deprecation names from third_party/blink/renderer/core/frame/deprecation/deprecation.json5
998
+ */
999
+ type: string;
1000
+ }
1001
+ /**
1002
+ * This issue warns about sites in the redirect chain of a finished navigation
1003
+ * that may be flagged as trackers and have their state cleared if they don't
1004
+ * receive a user interaction. Note that in this context 'site' means eTLD+1.
1005
+ * For example, if the URL `https://example.test:80/bounce` was in the
1006
+ * redirect chain, the site reported would be `example.test`.
1007
+ */
1008
+ interface BounceTrackingIssueDetails {
1009
+ trackingSites: string[];
1010
+ }
1011
+ /**
1012
+ * This issue warns about third-party sites that are accessing cookies on the
1013
+ * current page, and have been permitted due to having a global metadata grant.
1014
+ * Note that in this context 'site' means eTLD+1. For example, if the URL
1015
+ * `https://example.test:80/web_page` was accessing cookies, the site reported
1016
+ * would be `example.test`.
1017
+ */
1018
+ interface CookieDeprecationMetadataIssueDetails {
1019
+ allowedSites: string[];
1014
1020
  }
1015
1021
  const enum ClientHintIssueReason {
1016
1022
  MetaTagAllowListInvalidOrigin = "MetaTagAllowListInvalidOrigin",
@@ -1026,31 +1032,63 @@ export declare namespace Audits {
1026
1032
  * all cases except for success.
1027
1033
  */
1028
1034
  const enum FederatedAuthRequestIssueReason {
1029
- ApprovalDeclined = "ApprovalDeclined",
1035
+ ShouldEmbargo = "ShouldEmbargo",
1030
1036
  TooManyRequests = "TooManyRequests",
1031
- ManifestListHttpNotFound = "ManifestListHttpNotFound",
1032
- ManifestListNoResponse = "ManifestListNoResponse",
1033
- ManifestListInvalidResponse = "ManifestListInvalidResponse",
1034
- ManifestNotInManifestList = "ManifestNotInManifestList",
1035
- ManifestListTooBig = "ManifestListTooBig",
1036
- ManifestHttpNotFound = "ManifestHttpNotFound",
1037
- ManifestNoResponse = "ManifestNoResponse",
1038
- ManifestInvalidResponse = "ManifestInvalidResponse",
1037
+ WellKnownHttpNotFound = "WellKnownHttpNotFound",
1038
+ WellKnownNoResponse = "WellKnownNoResponse",
1039
+ WellKnownInvalidResponse = "WellKnownInvalidResponse",
1040
+ WellKnownListEmpty = "WellKnownListEmpty",
1041
+ WellKnownInvalidContentType = "WellKnownInvalidContentType",
1042
+ ConfigNotInWellKnown = "ConfigNotInWellKnown",
1043
+ WellKnownTooBig = "WellKnownTooBig",
1044
+ ConfigHttpNotFound = "ConfigHttpNotFound",
1045
+ ConfigNoResponse = "ConfigNoResponse",
1046
+ ConfigInvalidResponse = "ConfigInvalidResponse",
1047
+ ConfigInvalidContentType = "ConfigInvalidContentType",
1039
1048
  ClientMetadataHttpNotFound = "ClientMetadataHttpNotFound",
1040
1049
  ClientMetadataNoResponse = "ClientMetadataNoResponse",
1041
1050
  ClientMetadataInvalidResponse = "ClientMetadataInvalidResponse",
1051
+ ClientMetadataInvalidContentType = "ClientMetadataInvalidContentType",
1042
1052
  DisabledInSettings = "DisabledInSettings",
1043
1053
  ErrorFetchingSignin = "ErrorFetchingSignin",
1044
1054
  InvalidSigninResponse = "InvalidSigninResponse",
1045
1055
  AccountsHttpNotFound = "AccountsHttpNotFound",
1046
1056
  AccountsNoResponse = "AccountsNoResponse",
1047
1057
  AccountsInvalidResponse = "AccountsInvalidResponse",
1058
+ AccountsListEmpty = "AccountsListEmpty",
1059
+ AccountsInvalidContentType = "AccountsInvalidContentType",
1048
1060
  IdTokenHttpNotFound = "IdTokenHttpNotFound",
1049
1061
  IdTokenNoResponse = "IdTokenNoResponse",
1050
1062
  IdTokenInvalidResponse = "IdTokenInvalidResponse",
1063
+ IdTokenIdpErrorResponse = "IdTokenIdpErrorResponse",
1064
+ IdTokenCrossSiteIdpErrorResponse = "IdTokenCrossSiteIdpErrorResponse",
1051
1065
  IdTokenInvalidRequest = "IdTokenInvalidRequest",
1066
+ IdTokenInvalidContentType = "IdTokenInvalidContentType",
1052
1067
  ErrorIdToken = "ErrorIdToken",
1053
- Canceled = "Canceled"
1068
+ Canceled = "Canceled",
1069
+ RpPageNotVisible = "RpPageNotVisible",
1070
+ SilentMediationFailure = "SilentMediationFailure",
1071
+ ThirdPartyCookiesBlocked = "ThirdPartyCookiesBlocked",
1072
+ NotSignedInWithIdp = "NotSignedInWithIdp"
1073
+ }
1074
+ interface FederatedAuthUserInfoRequestIssueDetails {
1075
+ federatedAuthUserInfoRequestIssueReason: FederatedAuthUserInfoRequestIssueReason;
1076
+ }
1077
+ /**
1078
+ * Represents the failure reason when a getUserInfo() call fails.
1079
+ * Should be updated alongside FederatedAuthUserInfoRequestResult in
1080
+ * third_party/blink/public/mojom/devtools/inspector_issue.mojom.
1081
+ */
1082
+ const enum FederatedAuthUserInfoRequestIssueReason {
1083
+ NotSameOrigin = "NotSameOrigin",
1084
+ NotIframe = "NotIframe",
1085
+ NotPotentiallyTrustworthy = "NotPotentiallyTrustworthy",
1086
+ NoAPIPermission = "NoApiPermission",
1087
+ NotSignedInWithIdp = "NotSignedInWithIdp",
1088
+ NoAccountSharingPermission = "NoAccountSharingPermission",
1089
+ InvalidConfigOrWellKnown = "InvalidConfigOrWellKnown",
1090
+ InvalidAccountsResponse = "InvalidAccountsResponse",
1091
+ NoReturningUserFromFetchedAccounts = "NoReturningUserFromFetchedAccounts"
1054
1092
  }
1055
1093
  /**
1056
1094
  * This issue tracks client hints related issues. It's used to deprecate old
@@ -1060,6 +1098,62 @@ export declare namespace Audits {
1060
1098
  sourceCodeLocation: SourceCodeLocation;
1061
1099
  clientHintIssueReason: ClientHintIssueReason;
1062
1100
  }
1101
+ interface FailedRequestInfo {
1102
+ /**
1103
+ * The URL that failed to load.
1104
+ */
1105
+ url: string;
1106
+ /**
1107
+ * The failure message for the failed request.
1108
+ */
1109
+ failureMessage: string;
1110
+ requestId?: Network.RequestId;
1111
+ }
1112
+ const enum StyleSheetLoadingIssueReason {
1113
+ LateImportRule = "LateImportRule",
1114
+ RequestFailed = "RequestFailed"
1115
+ }
1116
+ /**
1117
+ * This issue warns when a referenced stylesheet couldn't be loaded.
1118
+ */
1119
+ interface StylesheetLoadingIssueDetails {
1120
+ /**
1121
+ * Source code position that referenced the failing stylesheet.
1122
+ */
1123
+ sourceCodeLocation: SourceCodeLocation;
1124
+ /**
1125
+ * Reason why the stylesheet couldn't be loaded.
1126
+ */
1127
+ styleSheetLoadingIssueReason: StyleSheetLoadingIssueReason;
1128
+ /**
1129
+ * Contains additional info when the failure was due to a request.
1130
+ */
1131
+ failedRequestInfo?: FailedRequestInfo;
1132
+ }
1133
+ const enum PropertyRuleIssueReason {
1134
+ InvalidSyntax = "InvalidSyntax",
1135
+ InvalidInitialValue = "InvalidInitialValue",
1136
+ InvalidInherits = "InvalidInherits",
1137
+ InvalidName = "InvalidName"
1138
+ }
1139
+ /**
1140
+ * This issue warns about errors in property rules that lead to property
1141
+ * registrations being ignored.
1142
+ */
1143
+ interface PropertyRuleIssueDetails {
1144
+ /**
1145
+ * Source code position of the property rule.
1146
+ */
1147
+ sourceCodeLocation: SourceCodeLocation;
1148
+ /**
1149
+ * Reason why the property rule was discarded.
1150
+ */
1151
+ propertyRuleIssueReason: PropertyRuleIssueReason;
1152
+ /**
1153
+ * The value of the property rule property that failed to parse
1154
+ */
1155
+ propertyValue?: string;
1156
+ }
1063
1157
  /**
1064
1158
  * A unique identifier for the type of issue. Each type may use one of the
1065
1159
  * optional fields in InspectorIssueDetails to convey more specific
@@ -1072,7 +1166,6 @@ export declare namespace Audits {
1072
1166
  HeavyAdIssue = "HeavyAdIssue",
1073
1167
  ContentSecurityPolicyIssue = "ContentSecurityPolicyIssue",
1074
1168
  SharedArrayBufferIssue = "SharedArrayBufferIssue",
1075
- TrustedWebActivityIssue = "TrustedWebActivityIssue",
1076
1169
  LowTextContrastIssue = "LowTextContrastIssue",
1077
1170
  CorsIssue = "CorsIssue",
1078
1171
  AttributionReportingIssue = "AttributionReportingIssue",
@@ -1081,7 +1174,12 @@ export declare namespace Audits {
1081
1174
  GenericIssue = "GenericIssue",
1082
1175
  DeprecationIssue = "DeprecationIssue",
1083
1176
  ClientHintIssue = "ClientHintIssue",
1084
- FederatedAuthRequestIssue = "FederatedAuthRequestIssue"
1177
+ FederatedAuthRequestIssue = "FederatedAuthRequestIssue",
1178
+ BounceTrackingIssue = "BounceTrackingIssue",
1179
+ CookieDeprecationMetadataIssue = "CookieDeprecationMetadataIssue",
1180
+ StylesheetLoadingIssue = "StylesheetLoadingIssue",
1181
+ FederatedAuthUserInfoRequestIssue = "FederatedAuthUserInfoRequestIssue",
1182
+ PropertyRuleIssue = "PropertyRuleIssue"
1085
1183
  }
1086
1184
  /**
1087
1185
  * This struct holds a list of optional fields with additional information
@@ -1095,7 +1193,6 @@ export declare namespace Audits {
1095
1193
  heavyAdIssueDetails?: HeavyAdIssueDetails;
1096
1194
  contentSecurityPolicyIssueDetails?: ContentSecurityPolicyIssueDetails;
1097
1195
  sharedArrayBufferIssueDetails?: SharedArrayBufferIssueDetails;
1098
- twaQualityEnforcementDetails?: TrustedWebActivityIssueDetails;
1099
1196
  lowTextContrastIssueDetails?: LowTextContrastIssueDetails;
1100
1197
  corsIssueDetails?: CorsIssueDetails;
1101
1198
  attributionReportingIssueDetails?: AttributionReportingIssueDetails;
@@ -1105,6 +1202,11 @@ export declare namespace Audits {
1105
1202
  deprecationIssueDetails?: DeprecationIssueDetails;
1106
1203
  clientHintIssueDetails?: ClientHintIssueDetails;
1107
1204
  federatedAuthRequestIssueDetails?: FederatedAuthRequestIssueDetails;
1205
+ bounceTrackingIssueDetails?: BounceTrackingIssueDetails;
1206
+ cookieDeprecationMetadataIssueDetails?: CookieDeprecationMetadataIssueDetails;
1207
+ stylesheetLoadingIssueDetails?: StylesheetLoadingIssueDetails;
1208
+ propertyRuleIssueDetails?: PropertyRuleIssueDetails;
1209
+ federatedAuthUserInfoRequestIssueDetails?: FederatedAuthUserInfoRequestIssueDetails;
1108
1210
  }
1109
1211
  /**
1110
1212
  * A unique id for a DevTools inspector issue. Allows other entities (e.g.
@@ -1166,10 +1268,145 @@ export declare namespace Audits {
1166
1268
  */
1167
1269
  reportAAA?: boolean;
1168
1270
  }
1271
+ interface CheckFormsIssuesResponse extends ProtocolResponseWithError {
1272
+ formIssues: GenericIssueDetails[];
1273
+ }
1169
1274
  interface IssueAddedEvent {
1170
1275
  issue: InspectorIssue;
1171
1276
  }
1172
1277
  }
1278
+ /**
1279
+ * Defines commands and events for Autofill.
1280
+ */
1281
+ export declare namespace Autofill {
1282
+ interface CreditCard {
1283
+ /**
1284
+ * 16-digit credit card number.
1285
+ */
1286
+ number: string;
1287
+ /**
1288
+ * Name of the credit card owner.
1289
+ */
1290
+ name: string;
1291
+ /**
1292
+ * 2-digit expiry month.
1293
+ */
1294
+ expiryMonth: string;
1295
+ /**
1296
+ * 4-digit expiry year.
1297
+ */
1298
+ expiryYear: string;
1299
+ /**
1300
+ * 3-digit card verification code.
1301
+ */
1302
+ cvc: string;
1303
+ }
1304
+ interface AddressField {
1305
+ /**
1306
+ * address field name, for example GIVEN_NAME.
1307
+ */
1308
+ name: string;
1309
+ /**
1310
+ * address field value, for example Jon Doe.
1311
+ */
1312
+ value: string;
1313
+ }
1314
+ /**
1315
+ * A list of address fields.
1316
+ */
1317
+ interface AddressFields {
1318
+ fields: AddressField[];
1319
+ }
1320
+ interface Address {
1321
+ /**
1322
+ * fields and values defining an address.
1323
+ */
1324
+ fields: AddressField[];
1325
+ }
1326
+ /**
1327
+ * Defines how an address can be displayed like in chrome://settings/addresses.
1328
+ * Address UI is a two dimensional array, each inner array is an "address information line", and when rendered in a UI surface should be displayed as such.
1329
+ * The following address UI for instance:
1330
+ * [[{name: "GIVE_NAME", value: "Jon"}, {name: "FAMILY_NAME", value: "Doe"}], [{name: "CITY", value: "Munich"}, {name: "ZIP", value: "81456"}]]
1331
+ * should allow the receiver to render:
1332
+ * Jon Doe
1333
+ * Munich 81456
1334
+ */
1335
+ interface AddressUI {
1336
+ /**
1337
+ * A two dimension array containing the repesentation of values from an address profile.
1338
+ */
1339
+ addressFields: AddressFields[];
1340
+ }
1341
+ /**
1342
+ * Specified whether a filled field was done so by using the html autocomplete attribute or autofill heuristics.
1343
+ */
1344
+ const enum FillingStrategy {
1345
+ AutocompleteAttribute = "autocompleteAttribute",
1346
+ AutofillInferred = "autofillInferred"
1347
+ }
1348
+ interface FilledField {
1349
+ /**
1350
+ * The type of the field, e.g text, password etc.
1351
+ */
1352
+ htmlType: string;
1353
+ /**
1354
+ * the html id
1355
+ */
1356
+ id: string;
1357
+ /**
1358
+ * the html name
1359
+ */
1360
+ name: string;
1361
+ /**
1362
+ * the field value
1363
+ */
1364
+ value: string;
1365
+ /**
1366
+ * The actual field type, e.g FAMILY_NAME
1367
+ */
1368
+ autofillType: string;
1369
+ /**
1370
+ * The filling strategy
1371
+ */
1372
+ fillingStrategy: FillingStrategy;
1373
+ /**
1374
+ * The form field's DOM node
1375
+ */
1376
+ fieldId: DOM.BackendNodeId;
1377
+ }
1378
+ interface TriggerRequest {
1379
+ /**
1380
+ * Identifies a field that serves as an anchor for autofill.
1381
+ */
1382
+ fieldId: DOM.BackendNodeId;
1383
+ /**
1384
+ * Identifies the frame that field belongs to.
1385
+ */
1386
+ frameId?: Page.FrameId;
1387
+ /**
1388
+ * Credit card information to fill out the form. Credit card data is not saved.
1389
+ */
1390
+ card: CreditCard;
1391
+ }
1392
+ interface SetAddressesRequest {
1393
+ addresses: Address[];
1394
+ }
1395
+ /**
1396
+ * Emitted when an address form is filled.
1397
+ */
1398
+ interface AddressFormFilledEvent {
1399
+ /**
1400
+ * Information about the fields that were filled
1401
+ */
1402
+ filledFields: FilledField[];
1403
+ /**
1404
+ * An UI representation of the address used to fill the form.
1405
+ * Consists of a 2D array where each child represents an address/profile line.
1406
+ */
1407
+ addressUi: AddressUI;
1408
+ }
1409
+ }
1173
1410
  /**
1174
1411
  * Defines events for background web platform features.
1175
1412
  */
@@ -1223,6 +1460,10 @@ export declare namespace BackgroundService {
1223
1460
  * A list of event-specific information.
1224
1461
  */
1225
1462
  eventMetadata: EventMetadata[];
1463
+ /**
1464
+ * Storage key this event belongs to.
1465
+ */
1466
+ storageKey: string;
1226
1467
  }
1227
1468
  interface StartObservingRequest {
1228
1469
  service: ServiceName;
@@ -1297,12 +1538,15 @@ export declare namespace Browser {
1297
1538
  AudioCapture = "audioCapture",
1298
1539
  BackgroundSync = "backgroundSync",
1299
1540
  BackgroundFetch = "backgroundFetch",
1541
+ CapturedSurfaceControl = "capturedSurfaceControl",
1300
1542
  ClipboardReadWrite = "clipboardReadWrite",
1301
1543
  ClipboardSanitizedWrite = "clipboardSanitizedWrite",
1302
1544
  DisplayCapture = "displayCapture",
1303
1545
  DurableStorage = "durableStorage",
1304
1546
  Flash = "flash",
1305
1547
  Geolocation = "geolocation",
1548
+ IdleDetection = "idleDetection",
1549
+ LocalFonts = "localFonts",
1306
1550
  Midi = "midi",
1307
1551
  MidiSysex = "midiSysex",
1308
1552
  Nfc = "nfc",
@@ -1311,11 +1555,13 @@ export declare namespace Browser {
1311
1555
  PeriodicBackgroundSync = "periodicBackgroundSync",
1312
1556
  ProtectedMediaIdentifier = "protectedMediaIdentifier",
1313
1557
  Sensors = "sensors",
1558
+ StorageAccess = "storageAccess",
1559
+ TopLevelStorageAccess = "topLevelStorageAccess",
1314
1560
  VideoCapture = "videoCapture",
1315
1561
  VideoCapturePanTiltZoom = "videoCapturePanTiltZoom",
1316
- IdleDetection = "idleDetection",
1317
1562
  WakeLockScreen = "wakeLockScreen",
1318
- WakeLockSystem = "wakeLockSystem"
1563
+ WakeLockSystem = "wakeLockSystem",
1564
+ WindowManagement = "windowManagement"
1319
1565
  }
1320
1566
  const enum PermissionSetting {
1321
1567
  Granted = "granted",
@@ -1324,7 +1570,7 @@ export declare namespace Browser {
1324
1570
  }
1325
1571
  /**
1326
1572
  * Definition of PermissionDescriptor defined in the Permissions API:
1327
- * https://w3c.github.io/permissions/#dictdef-permissiondescriptor.
1573
+ * https://w3c.github.io/permissions/#dom-permissiondescriptor.
1328
1574
  */
1329
1575
  interface PermissionDescriptor {
1330
1576
  /**
@@ -1503,7 +1749,7 @@ export declare namespace Browser {
1503
1749
  */
1504
1750
  query?: string;
1505
1751
  /**
1506
- * If true, retrieve delta since last call.
1752
+ * If true, retrieve delta since last delta call.
1507
1753
  */
1508
1754
  delta?: boolean;
1509
1755
  }
@@ -1519,7 +1765,7 @@ export declare namespace Browser {
1519
1765
  */
1520
1766
  name: string;
1521
1767
  /**
1522
- * If true, retrieve delta since last call.
1768
+ * If true, retrieve delta since last delta call.
1523
1769
  */
1524
1770
  delta?: boolean;
1525
1771
  }
@@ -1580,6 +1826,9 @@ export declare namespace Browser {
1580
1826
  interface ExecuteBrowserCommandRequest {
1581
1827
  commandId: BrowserCommandId;
1582
1828
  }
1829
+ interface AddPrivacySandboxEnrollmentOverrideRequest {
1830
+ url: string;
1831
+ }
1583
1832
  /**
1584
1833
  * Fired when page is about to start a download.
1585
1834
  */
@@ -1713,6 +1962,29 @@ export declare namespace CSS {
1713
1962
  * Value range in the underlying resource (if available).
1714
1963
  */
1715
1964
  range?: SourceRange;
1965
+ /**
1966
+ * Specificity of the selector.
1967
+ */
1968
+ specificity?: Specificity;
1969
+ }
1970
+ /**
1971
+ * Specificity:
1972
+ * https://drafts.csswg.org/selectors/#specificity-rules
1973
+ */
1974
+ interface Specificity {
1975
+ /**
1976
+ * The a component, which represents the number of ID selectors.
1977
+ */
1978
+ a: integer;
1979
+ /**
1980
+ * The b component, which represents the number of class selectors, attributes selectors, and
1981
+ * pseudo-classes.
1982
+ */
1983
+ b: integer;
1984
+ /**
1985
+ * The c component, which represents the number of type selectors and pseudo-elements.
1986
+ */
1987
+ c: integer;
1716
1988
  }
1717
1989
  /**
1718
1990
  * Selector list data.
@@ -1777,7 +2049,7 @@ export declare namespace CSS {
1777
2049
  /**
1778
2050
  * Whether this stylesheet is mutable. Inline stylesheets become mutable
1779
2051
  * after they have been modified via CSSOM API.
1780
- * <link> element's stylesheets become mutable only if DevTools modifies them.
2052
+ * `<link>` element's stylesheets become mutable only if DevTools modifies them.
1781
2053
  * Constructed stylesheets (new CSSStyleSheet()) are mutable immediately after creation.
1782
2054
  */
1783
2055
  isMutable: boolean;
@@ -1806,6 +2078,10 @@ export declare namespace CSS {
1806
2078
  * Column offset of the end of the stylesheet within the resource (zero based).
1807
2079
  */
1808
2080
  endColumn: number;
2081
+ /**
2082
+ * If the style sheet was loaded from a network resource, this indicates when the resource failed to load
2083
+ */
2084
+ loadingFailed?: boolean;
1809
2085
  }
1810
2086
  /**
1811
2087
  * CSS rule representation.
@@ -1820,6 +2096,10 @@ export declare namespace CSS {
1820
2096
  * Rule selector data.
1821
2097
  */
1822
2098
  selectorList: SelectorList;
2099
+ /**
2100
+ * Array of selectors from ancestor style rules, sorted by distance from the current rule.
2101
+ */
2102
+ nestingSelectors?: string[];
1823
2103
  /**
1824
2104
  * Parent stylesheet's origin.
1825
2105
  */
@@ -1853,6 +2133,22 @@ export declare namespace CSS {
1853
2133
  * The array enumerates @scope at-rules starting with the innermost one, going outwards.
1854
2134
  */
1855
2135
  scopes?: CSSScope[];
2136
+ /**
2137
+ * The array keeps the types of ancestor CSSRules from the innermost going outwards.
2138
+ */
2139
+ ruleTypes?: CSSRuleType[];
2140
+ }
2141
+ /**
2142
+ * Enum indicating the type of a CSS rule, used to represent the order of a style rule's ancestors.
2143
+ * This list only contains rule types that are collected during the ancestor rule collection.
2144
+ */
2145
+ const enum CSSRuleType {
2146
+ MediaRule = "MediaRule",
2147
+ SupportsRule = "SupportsRule",
2148
+ ContainerRule = "ContainerRule",
2149
+ LayerRule = "LayerRule",
2150
+ ScopeRule = "ScopeRule",
2151
+ StyleRule = "StyleRule"
1856
2152
  }
1857
2153
  /**
1858
2154
  * CSS coverage information.
@@ -2087,6 +2383,14 @@ export declare namespace CSS {
2087
2383
  * Optional name for the container.
2088
2384
  */
2089
2385
  name?: string;
2386
+ /**
2387
+ * Optional physical axes queried for the container.
2388
+ */
2389
+ physicalAxes?: DOM.PhysicalAxes;
2390
+ /**
2391
+ * Optional logical axes queried for the container.
2392
+ */
2393
+ logicalAxes?: DOM.LogicalAxes;
2090
2394
  }
2091
2395
  /**
2092
2396
  * CSS Supports at-rule descriptor.
@@ -2172,6 +2476,10 @@ export declare namespace CSS {
2172
2476
  * Font's family name reported by platform.
2173
2477
  */
2174
2478
  familyName: string;
2479
+ /**
2480
+ * Font's PostScript name reported by platform.
2481
+ */
2482
+ postScriptName: string;
2175
2483
  /**
2176
2484
  * Indicates if the font was downloaded or resolved locally.
2177
2485
  */
@@ -2252,6 +2560,34 @@ export declare namespace CSS {
2252
2560
  */
2253
2561
  fontVariationAxes?: FontVariationAxis[];
2254
2562
  }
2563
+ /**
2564
+ * CSS try rule representation.
2565
+ */
2566
+ interface CSSTryRule {
2567
+ /**
2568
+ * The css style sheet identifier (absent for user agent stylesheet and user-specified
2569
+ * stylesheet rules) this rule came from.
2570
+ */
2571
+ styleSheetId?: StyleSheetId;
2572
+ /**
2573
+ * Parent stylesheet's origin.
2574
+ */
2575
+ origin: StyleSheetOrigin;
2576
+ /**
2577
+ * Associated style declaration.
2578
+ */
2579
+ style: CSSStyle;
2580
+ }
2581
+ /**
2582
+ * CSS position-fallback rule representation.
2583
+ */
2584
+ interface CSSPositionFallbackRule {
2585
+ name: Value;
2586
+ /**
2587
+ * List of keyframes.
2588
+ */
2589
+ tryRules: CSSTryRule[];
2590
+ }
2255
2591
  /**
2256
2592
  * CSS keyframes rule representation.
2257
2593
  */
@@ -2265,6 +2601,59 @@ export declare namespace CSS {
2265
2601
  */
2266
2602
  keyframes: CSSKeyframeRule[];
2267
2603
  }
2604
+ /**
2605
+ * Representation of a custom property registration through CSS.registerProperty
2606
+ */
2607
+ interface CSSPropertyRegistration {
2608
+ propertyName: string;
2609
+ initialValue?: Value;
2610
+ inherits: boolean;
2611
+ syntax: string;
2612
+ }
2613
+ /**
2614
+ * CSS font-palette-values rule representation.
2615
+ */
2616
+ interface CSSFontPaletteValuesRule {
2617
+ /**
2618
+ * The css style sheet identifier (absent for user agent stylesheet and user-specified
2619
+ * stylesheet rules) this rule came from.
2620
+ */
2621
+ styleSheetId?: StyleSheetId;
2622
+ /**
2623
+ * Parent stylesheet's origin.
2624
+ */
2625
+ origin: StyleSheetOrigin;
2626
+ /**
2627
+ * Associated font palette name.
2628
+ */
2629
+ fontPaletteName: Value;
2630
+ /**
2631
+ * Associated style declaration.
2632
+ */
2633
+ style: CSSStyle;
2634
+ }
2635
+ /**
2636
+ * CSS property at-rule representation.
2637
+ */
2638
+ interface CSSPropertyRule {
2639
+ /**
2640
+ * The css style sheet identifier (absent for user agent stylesheet and user-specified
2641
+ * stylesheet rules) this rule came from.
2642
+ */
2643
+ styleSheetId?: StyleSheetId;
2644
+ /**
2645
+ * Parent stylesheet's origin.
2646
+ */
2647
+ origin: StyleSheetOrigin;
2648
+ /**
2649
+ * Associated property name.
2650
+ */
2651
+ propertyName: Value;
2652
+ /**
2653
+ * Associated style declaration.
2654
+ */
2655
+ style: CSSStyle;
2656
+ }
2268
2657
  /**
2269
2658
  * CSS keyframe rule representation.
2270
2659
  */
@@ -2317,6 +2706,12 @@ export declare namespace CSS {
2317
2706
  * Text position of a new rule in the target style sheet.
2318
2707
  */
2319
2708
  location: SourceRange;
2709
+ /**
2710
+ * NodeId for the DOM node in whose context custom property declarations for registered properties should be
2711
+ * validated. If omitted, declarations in the new rule text can only be validated statically, which may produce
2712
+ * incorrect results if the declaration contains a var() for example.
2713
+ */
2714
+ nodeForPropertySyntaxValidation?: DOM.NodeId;
2320
2715
  }
2321
2716
  interface AddRuleResponse extends ProtocolResponseWithError {
2322
2717
  /**
@@ -2434,6 +2829,22 @@ export declare namespace CSS {
2434
2829
  * A list of CSS keyframed animations matching this node.
2435
2830
  */
2436
2831
  cssKeyframesRules?: CSSKeyframesRule[];
2832
+ /**
2833
+ * A list of CSS position fallbacks matching this node.
2834
+ */
2835
+ cssPositionFallbackRules?: CSSPositionFallbackRule[];
2836
+ /**
2837
+ * A list of CSS at-property rules matching this node.
2838
+ */
2839
+ cssPropertyRules?: CSSPropertyRule[];
2840
+ /**
2841
+ * A list of CSS property registrations matching this node.
2842
+ */
2843
+ cssPropertyRegistrations?: CSSPropertyRegistration[];
2844
+ /**
2845
+ * A font-palette-values rule matching this node.
2846
+ */
2847
+ cssFontPaletteValuesRule?: CSSFontPaletteValuesRule;
2437
2848
  /**
2438
2849
  * Id of the first parent element that does not have display: contents.
2439
2850
  */
@@ -2471,7 +2882,7 @@ export declare namespace CSS {
2471
2882
  }
2472
2883
  interface TakeComputedStyleUpdatesResponse extends ProtocolResponseWithError {
2473
2884
  /**
2474
- * The list of node Ids that have their tracked computed styles updated
2885
+ * The list of node Ids that have their tracked computed styles updated.
2475
2886
  */
2476
2887
  nodeIds: DOM.NodeId[];
2477
2888
  }
@@ -2483,6 +2894,17 @@ export declare namespace CSS {
2483
2894
  propertyName: string;
2484
2895
  value: string;
2485
2896
  }
2897
+ interface SetPropertyRulePropertyNameRequest {
2898
+ styleSheetId: StyleSheetId;
2899
+ range: SourceRange;
2900
+ propertyName: string;
2901
+ }
2902
+ interface SetPropertyRulePropertyNameResponse extends ProtocolResponseWithError {
2903
+ /**
2904
+ * The resulting key text after modification.
2905
+ */
2906
+ propertyName: Value;
2907
+ }
2486
2908
  interface SetKeyframeKeyRequest {
2487
2909
  styleSheetId: StyleSheetId;
2488
2910
  range: SourceRange;
@@ -2561,6 +2983,12 @@ export declare namespace CSS {
2561
2983
  }
2562
2984
  interface SetStyleTextsRequest {
2563
2985
  edits: StyleDeclarationEdit[];
2986
+ /**
2987
+ * NodeId for the DOM node in whose context custom property declarations for registered properties should be
2988
+ * validated. If omitted, declarations in the new rule text can only be validated statically, which may produce
2989
+ * incorrect results if the declaration contains a var() for example.
2990
+ */
2991
+ nodeForPropertySyntaxValidation?: DOM.NodeId;
2564
2992
  }
2565
2993
  interface SetStyleTextsResponse extends ProtocolResponseWithError {
2566
2994
  /**
@@ -2586,7 +3014,7 @@ export declare namespace CSS {
2586
3014
  }
2587
3015
  /**
2588
3016
  * Fires whenever a web font is updated. A non-empty font parameter indicates a successfully loaded
2589
- * web font
3017
+ * web font.
2590
3018
  */
2591
3019
  interface FontsUpdatedEvent {
2592
3020
  /**
@@ -2685,7 +3113,15 @@ export declare namespace CacheStorage {
2685
3113
  */
2686
3114
  securityOrigin: string;
2687
3115
  /**
2688
- * The name of the cache.
3116
+ * Storage key of the cache.
3117
+ */
3118
+ storageKey: string;
3119
+ /**
3120
+ * Storage bucket of the cache.
3121
+ */
3122
+ storageBucket?: Storage.StorageBucket;
3123
+ /**
3124
+ * The name of the cache.
2689
3125
  */
2690
3126
  cacheName: string;
2691
3127
  }
@@ -2720,9 +3156,18 @@ export declare namespace CacheStorage {
2720
3156
  }
2721
3157
  interface RequestCacheNamesRequest {
2722
3158
  /**
3159
+ * At least and at most one of securityOrigin, storageKey, storageBucket must be specified.
2723
3160
  * Security origin.
2724
3161
  */
2725
- securityOrigin: string;
3162
+ securityOrigin?: string;
3163
+ /**
3164
+ * Storage key.
3165
+ */
3166
+ storageKey?: string;
3167
+ /**
3168
+ * Storage bucket. If not specified, it uses the default bucket.
3169
+ */
3170
+ storageBucket?: Storage.StorageBucket;
2726
3171
  }
2727
3172
  interface RequestCacheNamesResponse extends ProtocolResponseWithError {
2728
3173
  /**
@@ -2830,8 +3275,8 @@ export declare namespace Cast {
2830
3275
  * the JavaScript object wrapper, etc. It is important that client receives DOM events only for the
2831
3276
  * nodes that are known to the client. Backend keeps track of the nodes that were sent to the client
2832
3277
  * and never sends the same node twice. It is client's responsibility to collect information about
2833
- * the nodes that were sent to the client.<p>Note that `iframe` owner elements will return
2834
- * corresponding document elements as their child nodes.</p>
3278
+ * the nodes that were sent to the client. Note that `iframe` owner elements will return
3279
+ * corresponding document elements as their child nodes.
2835
3280
  */
2836
3281
  export declare namespace DOM {
2837
3282
  /**
@@ -2881,11 +3326,11 @@ export declare namespace DOM {
2881
3326
  ScrollbarCorner = "scrollbar-corner",
2882
3327
  Resizer = "resizer",
2883
3328
  InputListButton = "input-list-button",
2884
- PageTransition = "page-transition",
2885
- PageTransitionContainer = "page-transition-container",
2886
- PageTransitionImageWrapper = "page-transition-image-wrapper",
2887
- PageTransitionOutgoingImage = "page-transition-outgoing-image",
2888
- PageTransitionIncomingImage = "page-transition-incoming-image"
3329
+ ViewTransition = "view-transition",
3330
+ ViewTransitionGroup = "view-transition-group",
3331
+ ViewTransitionImagePair = "view-transition-image-pair",
3332
+ ViewTransitionOld = "view-transition-old",
3333
+ ViewTransitionNew = "view-transition-new"
2889
3334
  }
2890
3335
  /**
2891
3336
  * Shadow root type.
@@ -2903,6 +3348,29 @@ export declare namespace DOM {
2903
3348
  LimitedQuirksMode = "LimitedQuirksMode",
2904
3349
  NoQuirksMode = "NoQuirksMode"
2905
3350
  }
3351
+ /**
3352
+ * ContainerSelector physical axes
3353
+ */
3354
+ const enum PhysicalAxes {
3355
+ Horizontal = "Horizontal",
3356
+ Vertical = "Vertical",
3357
+ Both = "Both"
3358
+ }
3359
+ /**
3360
+ * ContainerSelector logical axes
3361
+ */
3362
+ const enum LogicalAxes {
3363
+ Inline = "Inline",
3364
+ Block = "Block",
3365
+ Both = "Both"
3366
+ }
3367
+ /**
3368
+ * Physical scroll orientation
3369
+ */
3370
+ const enum ScrollOrientation {
3371
+ Horizontal = "horizontal",
3372
+ Vertical = "vertical"
3373
+ }
2906
3374
  /**
2907
3375
  * DOM interaction is implemented in terms of mirror objects that represent the actual DOM nodes.
2908
3376
  * DOMNode is a base node mirror type.
@@ -3747,6 +4215,8 @@ export declare namespace DOM {
3747
4215
  interface GetContainerForNodeRequest {
3748
4216
  nodeId: NodeId;
3749
4217
  containerName?: string;
4218
+ physicalAxes?: PhysicalAxes;
4219
+ logicalAxes?: LogicalAxes;
3750
4220
  }
3751
4221
  interface GetContainerForNodeResponse extends ProtocolResponseWithError {
3752
4222
  /**
@@ -3831,7 +4301,7 @@ export declare namespace DOM {
3831
4301
  */
3832
4302
  parentNodeId: NodeId;
3833
4303
  /**
3834
- * If of the previous siblint.
4304
+ * Id of the previous sibling.
3835
4305
  */
3836
4306
  previousNodeId: NodeId;
3837
4307
  /**
@@ -4101,10 +4571,9 @@ export declare namespace DOMDebugger {
4101
4571
  }
4102
4572
  }
4103
4573
  /**
4104
- * EventBreakpoints permits setting breakpoints on particular operations and
4105
- * events in targets that run JavaScript but do not have a DOM.
4106
- * JavaScript execution will stop on these operations as if there was a regular
4107
- * breakpoint set.
4574
+ * EventBreakpoints permits setting JavaScript breakpoints on operations and events
4575
+ * occurring in native code invoked from JavaScript. Once breakpoint is hit, it is
4576
+ * reported through Debugger domain, similarly to regular breakpoints being hit.
4108
4577
  */
4109
4578
  export declare namespace EventBreakpoints {
4110
4579
  interface SetInstrumentationBreakpointRequest {
@@ -4810,6 +5279,16 @@ export declare namespace Emulation {
4810
5279
  */
4811
5280
  maskLength: integer;
4812
5281
  }
5282
+ const enum DevicePostureType {
5283
+ Continuous = "continuous",
5284
+ Folded = "folded"
5285
+ }
5286
+ interface DevicePosture {
5287
+ /**
5288
+ * Current posture of the device
5289
+ */
5290
+ type: DevicePostureType;
5291
+ }
4813
5292
  interface MediaFeature {
4814
5293
  name: string;
4815
5294
  value: string;
@@ -4837,7 +5316,13 @@ export declare namespace Emulation {
4837
5316
  * Missing optional values will be filled in by the target with what it would normally use.
4838
5317
  */
4839
5318
  interface UserAgentMetadata {
5319
+ /**
5320
+ * Brands appearing in Sec-CH-UA.
5321
+ */
4840
5322
  brands?: UserAgentBrandVersion[];
5323
+ /**
5324
+ * Brands appearing in Sec-CH-UA-Full-Version-List.
5325
+ */
4841
5326
  fullVersionList?: UserAgentBrandVersion[];
4842
5327
  fullVersion?: string;
4843
5328
  platform: string;
@@ -4848,12 +5333,50 @@ export declare namespace Emulation {
4848
5333
  bitness?: string;
4849
5334
  wow64?: boolean;
4850
5335
  }
5336
+ /**
5337
+ * Used to specify sensor types to emulate.
5338
+ * See https://w3c.github.io/sensors/#automation for more information.
5339
+ */
5340
+ const enum SensorType {
5341
+ AbsoluteOrientation = "absolute-orientation",
5342
+ Accelerometer = "accelerometer",
5343
+ AmbientLight = "ambient-light",
5344
+ Gravity = "gravity",
5345
+ Gyroscope = "gyroscope",
5346
+ LinearAcceleration = "linear-acceleration",
5347
+ Magnetometer = "magnetometer",
5348
+ Proximity = "proximity",
5349
+ RelativeOrientation = "relative-orientation"
5350
+ }
5351
+ interface SensorMetadata {
5352
+ available?: boolean;
5353
+ minimumFrequency?: number;
5354
+ maximumFrequency?: number;
5355
+ }
5356
+ interface SensorReadingSingle {
5357
+ value: number;
5358
+ }
5359
+ interface SensorReadingXYZ {
5360
+ x: number;
5361
+ y: number;
5362
+ z: number;
5363
+ }
5364
+ interface SensorReadingQuaternion {
5365
+ x: number;
5366
+ y: number;
5367
+ z: number;
5368
+ w: number;
5369
+ }
5370
+ interface SensorReading {
5371
+ single?: SensorReadingSingle;
5372
+ xyz?: SensorReadingXYZ;
5373
+ quaternion?: SensorReadingQuaternion;
5374
+ }
4851
5375
  /**
4852
5376
  * Enum of image types that can be disabled.
4853
5377
  */
4854
5378
  const enum DisabledImageType {
4855
5379
  Avif = "avif",
4856
- Jxl = "jxl",
4857
5380
  Webp = "webp"
4858
5381
  }
4859
5382
  interface CanEmulateResponse extends ProtocolResponseWithError {
@@ -4944,6 +5467,11 @@ export declare namespace Emulation {
4944
5467
  * is turned-off.
4945
5468
  */
4946
5469
  displayFeature?: DisplayFeature;
5470
+ /**
5471
+ * If set, the posture of a foldable device. If not set the posture is set
5472
+ * to continuous.
5473
+ */
5474
+ devicePosture?: DevicePosture;
4947
5475
  }
4948
5476
  interface SetScrollbarsHiddenRequest {
4949
5477
  /**
@@ -4983,15 +5511,17 @@ export declare namespace Emulation {
4983
5511
  }
4984
5512
  const enum SetEmulatedVisionDeficiencyRequestType {
4985
5513
  None = "none",
4986
- Achromatopsia = "achromatopsia",
4987
5514
  BlurredVision = "blurredVision",
5515
+ ReducedContrast = "reducedContrast",
5516
+ Achromatopsia = "achromatopsia",
4988
5517
  Deuteranopia = "deuteranopia",
4989
5518
  Protanopia = "protanopia",
4990
5519
  Tritanopia = "tritanopia"
4991
5520
  }
4992
5521
  interface SetEmulatedVisionDeficiencyRequest {
4993
5522
  /**
4994
- * Vision deficiency to emulate.
5523
+ * Vision deficiency to emulate. Order: best-effort emulations come first, followed by any
5524
+ * physiologically accurate emulations for medically recognized color vision deficiencies.
4995
5525
  */
4996
5526
  type: SetEmulatedVisionDeficiencyRequestType;
4997
5527
  }
@@ -5009,6 +5539,21 @@ export declare namespace Emulation {
5009
5539
  */
5010
5540
  accuracy?: number;
5011
5541
  }
5542
+ interface GetOverriddenSensorInformationRequest {
5543
+ type: SensorType;
5544
+ }
5545
+ interface GetOverriddenSensorInformationResponse extends ProtocolResponseWithError {
5546
+ requestedSamplingFrequency: number;
5547
+ }
5548
+ interface SetSensorOverrideEnabledRequest {
5549
+ enabled: boolean;
5550
+ type: SensorType;
5551
+ metadata?: SensorMetadata;
5552
+ }
5553
+ interface SetSensorOverrideReadingsRequest {
5554
+ type: SensorType;
5555
+ reading: SensorReading;
5556
+ }
5012
5557
  interface SetIdleOverrideRequest {
5013
5558
  /**
5014
5559
  * Mock isUserActive
@@ -5112,7 +5657,7 @@ export declare namespace Emulation {
5112
5657
  */
5113
5658
  userAgent: string;
5114
5659
  /**
5115
- * Browser langugage to emulate.
5660
+ * Browser language to emulate.
5116
5661
  */
5117
5662
  acceptLanguage?: string;
5118
5663
  /**
@@ -5137,7 +5682,8 @@ export declare namespace Emulation {
5137
5682
  export declare namespace HeadlessExperimental {
5138
5683
  const enum ScreenshotParamsFormat {
5139
5684
  Jpeg = "jpeg",
5140
- Png = "png"
5685
+ Png = "png",
5686
+ Webp = "webp"
5141
5687
  }
5142
5688
  /**
5143
5689
  * Encoding options for a screenshot.
@@ -5148,9 +5694,13 @@ export declare namespace HeadlessExperimental {
5148
5694
  */
5149
5695
  format?: ScreenshotParamsFormat;
5150
5696
  /**
5151
- * Compression quality from range [0..100] (jpeg only).
5697
+ * Compression quality from range [0..100] (jpeg and webp only).
5152
5698
  */
5153
5699
  quality?: integer;
5700
+ /**
5701
+ * Optimize image encoding for speed, not for resulting size (defaults to false)
5702
+ */
5703
+ optimizeForSpeed?: boolean;
5154
5704
  }
5155
5705
  interface BeginFrameRequest {
5156
5706
  /**
@@ -5187,25 +5737,14 @@ export declare namespace HeadlessExperimental {
5187
5737
  */
5188
5738
  screenshotData?: binary;
5189
5739
  }
5190
- /**
5191
- * Issued when the target starts or stops needing BeginFrames.
5192
- * Deprecated. Issue beginFrame unconditionally instead and use result from
5193
- * beginFrame to detect whether the frames were suppressed.
5194
- */
5195
- interface NeedsBeginFramesChangedEvent {
5196
- /**
5197
- * True if BeginFrames are needed, false otherwise.
5198
- */
5199
- needsBeginFrames: boolean;
5200
- }
5201
5740
  }
5202
5741
  /**
5203
5742
  * Input/Output operations for streams produced by DevTools.
5204
5743
  */
5205
5744
  export declare namespace IO {
5206
5745
  /**
5207
- * This is either obtained from another method or specified as `blob:&lt;uuid&gt;` where
5208
- * `&lt;uuid&gt` is an UUID of a Blob.
5746
+ * This is either obtained from another method or specified as `blob:<uuid>` where
5747
+ * `<uuid>` is an UUID of a Blob.
5209
5748
  */
5210
5749
  type StreamHandle = OpaqueIdentifier<string, 'Protocol.IO.StreamHandle'>;
5211
5750
  interface CloseRequest {
@@ -5410,7 +5949,7 @@ export declare namespace IndexedDB {
5410
5949
  }
5411
5950
  interface ClearObjectStoreRequest {
5412
5951
  /**
5413
- * At least and at most one of securityOrigin, storageKey must be specified.
5952
+ * At least and at most one of securityOrigin, storageKey, or storageBucket must be specified.
5414
5953
  * Security origin.
5415
5954
  */
5416
5955
  securityOrigin?: string;
@@ -5418,6 +5957,10 @@ export declare namespace IndexedDB {
5418
5957
  * Storage key.
5419
5958
  */
5420
5959
  storageKey?: string;
5960
+ /**
5961
+ * Storage bucket. If not specified, it uses the default bucket.
5962
+ */
5963
+ storageBucket?: Storage.StorageBucket;
5421
5964
  /**
5422
5965
  * Database name.
5423
5966
  */
@@ -5429,7 +5972,7 @@ export declare namespace IndexedDB {
5429
5972
  }
5430
5973
  interface DeleteDatabaseRequest {
5431
5974
  /**
5432
- * At least and at most one of securityOrigin, storageKey must be specified.
5975
+ * At least and at most one of securityOrigin, storageKey, or storageBucket must be specified.
5433
5976
  * Security origin.
5434
5977
  */
5435
5978
  securityOrigin?: string;
@@ -5437,6 +5980,10 @@ export declare namespace IndexedDB {
5437
5980
  * Storage key.
5438
5981
  */
5439
5982
  storageKey?: string;
5983
+ /**
5984
+ * Storage bucket. If not specified, it uses the default bucket.
5985
+ */
5986
+ storageBucket?: Storage.StorageBucket;
5440
5987
  /**
5441
5988
  * Database name.
5442
5989
  */
@@ -5444,7 +5991,7 @@ export declare namespace IndexedDB {
5444
5991
  }
5445
5992
  interface DeleteObjectStoreEntriesRequest {
5446
5993
  /**
5447
- * At least and at most one of securityOrigin, storageKey must be specified.
5994
+ * At least and at most one of securityOrigin, storageKey, or storageBucket must be specified.
5448
5995
  * Security origin.
5449
5996
  */
5450
5997
  securityOrigin?: string;
@@ -5452,6 +5999,10 @@ export declare namespace IndexedDB {
5452
5999
  * Storage key.
5453
6000
  */
5454
6001
  storageKey?: string;
6002
+ /**
6003
+ * Storage bucket. If not specified, it uses the default bucket.
6004
+ */
6005
+ storageBucket?: Storage.StorageBucket;
5455
6006
  databaseName: string;
5456
6007
  objectStoreName: string;
5457
6008
  /**
@@ -5461,7 +6012,7 @@ export declare namespace IndexedDB {
5461
6012
  }
5462
6013
  interface RequestDataRequest {
5463
6014
  /**
5464
- * At least and at most one of securityOrigin, storageKey must be specified.
6015
+ * At least and at most one of securityOrigin, storageKey, or storageBucket must be specified.
5465
6016
  * Security origin.
5466
6017
  */
5467
6018
  securityOrigin?: string;
@@ -5469,6 +6020,10 @@ export declare namespace IndexedDB {
5469
6020
  * Storage key.
5470
6021
  */
5471
6022
  storageKey?: string;
6023
+ /**
6024
+ * Storage bucket. If not specified, it uses the default bucket.
6025
+ */
6026
+ storageBucket?: Storage.StorageBucket;
5472
6027
  /**
5473
6028
  * Database name.
5474
6029
  */
@@ -5506,7 +6061,7 @@ export declare namespace IndexedDB {
5506
6061
  }
5507
6062
  interface GetMetadataRequest {
5508
6063
  /**
5509
- * At least and at most one of securityOrigin, storageKey must be specified.
6064
+ * At least and at most one of securityOrigin, storageKey, or storageBucket must be specified.
5510
6065
  * Security origin.
5511
6066
  */
5512
6067
  securityOrigin?: string;
@@ -5514,6 +6069,10 @@ export declare namespace IndexedDB {
5514
6069
  * Storage key.
5515
6070
  */
5516
6071
  storageKey?: string;
6072
+ /**
6073
+ * Storage bucket. If not specified, it uses the default bucket.
6074
+ */
6075
+ storageBucket?: Storage.StorageBucket;
5517
6076
  /**
5518
6077
  * Database name.
5519
6078
  */
@@ -5537,7 +6096,7 @@ export declare namespace IndexedDB {
5537
6096
  }
5538
6097
  interface RequestDatabaseRequest {
5539
6098
  /**
5540
- * At least and at most one of securityOrigin, storageKey must be specified.
6099
+ * At least and at most one of securityOrigin, storageKey, or storageBucket must be specified.
5541
6100
  * Security origin.
5542
6101
  */
5543
6102
  securityOrigin?: string;
@@ -5545,6 +6104,10 @@ export declare namespace IndexedDB {
5545
6104
  * Storage key.
5546
6105
  */
5547
6106
  storageKey?: string;
6107
+ /**
6108
+ * Storage bucket. If not specified, it uses the default bucket.
6109
+ */
6110
+ storageBucket?: Storage.StorageBucket;
5548
6111
  /**
5549
6112
  * Database name.
5550
6113
  */
@@ -5558,7 +6121,7 @@ export declare namespace IndexedDB {
5558
6121
  }
5559
6122
  interface RequestDatabaseNamesRequest {
5560
6123
  /**
5561
- * At least and at most one of securityOrigin, storageKey must be specified.
6124
+ * At least and at most one of securityOrigin, storageKey, or storageBucket must be specified.
5562
6125
  * Security origin.
5563
6126
  */
5564
6127
  securityOrigin?: string;
@@ -5566,6 +6129,10 @@ export declare namespace IndexedDB {
5566
6129
  * Storage key.
5567
6130
  */
5568
6131
  storageKey?: string;
6132
+ /**
6133
+ * Storage bucket. If not specified, it uses the default bucket.
6134
+ */
6135
+ storageBucket?: Storage.StorageBucket;
5569
6136
  }
5570
6137
  interface RequestDatabaseNamesResponse extends ProtocolResponseWithError {
5571
6138
  /**
@@ -5608,11 +6175,11 @@ export declare namespace Input {
5608
6175
  /**
5609
6176
  * The plane angle between the Y-Z plane and the plane containing both the stylus axis and the Y axis, in degrees of the range [-90,90], a positive tiltX is to the right (default: 0)
5610
6177
  */
5611
- tiltX?: integer;
6178
+ tiltX?: number;
5612
6179
  /**
5613
6180
  * The plane angle between the X-Z plane and the plane containing both the stylus axis and the X axis, in degrees of the range [-90,90], a positive tiltY is towards the user (default: 0).
5614
6181
  */
5615
- tiltY?: integer;
6182
+ tiltY?: number;
5616
6183
  /**
5617
6184
  * The clockwise rotation of a pen stylus around its own major axis, in degrees in the range [0,359] (default: 0).
5618
6185
  */
@@ -5857,11 +6424,11 @@ export declare namespace Input {
5857
6424
  /**
5858
6425
  * The plane angle between the Y-Z plane and the plane containing both the stylus axis and the Y axis, in degrees of the range [-90,90], a positive tiltX is to the right (default: 0).
5859
6426
  */
5860
- tiltX?: integer;
6427
+ tiltX?: number;
5861
6428
  /**
5862
6429
  * The plane angle between the X-Z plane and the plane containing both the stylus axis and the X axis, in degrees of the range [-90,90], a positive tiltY is towards the user (default: 0).
5863
6430
  */
5864
- tiltY?: integer;
6431
+ tiltY?: number;
5865
6432
  /**
5866
6433
  * The clockwise rotation of a pen stylus around its own major axis, in degrees in the range [0,359] (default: 0).
5867
6434
  */
@@ -6732,6 +7299,10 @@ export declare namespace Network {
6732
7299
  * Time the server finished pushing request.
6733
7300
  */
6734
7301
  pushEnd: number;
7302
+ /**
7303
+ * Started receiving response headers.
7304
+ */
7305
+ receiveHeadersStart: number;
6735
7306
  /**
6736
7307
  * Finished receiving response headers.
6737
7308
  */
@@ -6985,7 +7556,11 @@ export declare namespace Network {
6985
7556
  InsecurePrivateNetwork = "InsecurePrivateNetwork",
6986
7557
  InvalidPrivateNetworkAccess = "InvalidPrivateNetworkAccess",
6987
7558
  UnexpectedPrivateNetworkAccess = "UnexpectedPrivateNetworkAccess",
6988
- NoCorsRedirectModeNotFollow = "NoCorsRedirectModeNotFollow"
7559
+ NoCorsRedirectModeNotFollow = "NoCorsRedirectModeNotFollow",
7560
+ PreflightMissingPrivateNetworkAccessId = "PreflightMissingPrivateNetworkAccessId",
7561
+ PreflightMissingPrivateNetworkAccessName = "PreflightMissingPrivateNetworkAccessName",
7562
+ PrivateNetworkAccessPermissionUnavailable = "PrivateNetworkAccessPermissionUnavailable",
7563
+ PrivateNetworkAccessPermissionDenied = "PrivateNetworkAccessPermissionDenied"
6989
7564
  }
6990
7565
  interface CorsErrorStatus {
6991
7566
  corsError: CorsError;
@@ -7010,9 +7585,9 @@ export declare namespace Network {
7010
7585
  * are specified in third_party/blink/renderer/core/fetch/trust_token.idl.
7011
7586
  */
7012
7587
  interface TrustTokenParams {
7013
- type: TrustTokenOperationType;
7588
+ operation: TrustTokenOperationType;
7014
7589
  /**
7015
- * Only set for "token-redemption" type and determine whether
7590
+ * Only set for "token-redemption" operation and determine whether
7016
7591
  * to request a fresh SRR or use a still valid cached SRR.
7017
7592
  */
7018
7593
  refreshPolicy: TrustTokenParamsRefreshPolicy;
@@ -7027,6 +7602,22 @@ export declare namespace Network {
7027
7602
  Redemption = "Redemption",
7028
7603
  Signing = "Signing"
7029
7604
  }
7605
+ /**
7606
+ * The reason why Chrome uses a specific transport protocol for HTTP semantics.
7607
+ */
7608
+ const enum AlternateProtocolUsage {
7609
+ AlternativeJobWonWithoutRace = "alternativeJobWonWithoutRace",
7610
+ AlternativeJobWonRace = "alternativeJobWonRace",
7611
+ MainJobWonRace = "mainJobWonRace",
7612
+ MappingMissing = "mappingMissing",
7613
+ Broken = "broken",
7614
+ DnsAlpnH3JobWonWithoutRace = "dnsAlpnH3JobWonWithoutRace",
7615
+ DnsAlpnH3JobWonRace = "dnsAlpnH3JobWonRace",
7616
+ UnspecifiedReason = "unspecifiedReason"
7617
+ }
7618
+ interface ServiceWorkerRouterInfo {
7619
+ ruleIdMatched: integer;
7620
+ }
7030
7621
  /**
7031
7622
  * HTTP response data.
7032
7623
  */
@@ -7055,6 +7646,10 @@ export declare namespace Network {
7055
7646
  * Resource mimeType as determined by the browser.
7056
7647
  */
7057
7648
  mimeType: string;
7649
+ /**
7650
+ * Resource charset as determined by the browser (if applicable).
7651
+ */
7652
+ charset: string;
7058
7653
  /**
7059
7654
  * Refined HTTP request headers that were actually transmitted over the network.
7060
7655
  */
@@ -7091,6 +7686,10 @@ export declare namespace Network {
7091
7686
  * Specifies that the request was served from the prefetch cache.
7092
7687
  */
7093
7688
  fromPrefetchCache?: boolean;
7689
+ /**
7690
+ * Infomation about how Service Worker Static Router was used.
7691
+ */
7692
+ serviceWorkerRouterInfo?: ServiceWorkerRouterInfo;
7094
7693
  /**
7095
7694
  * Total number of bytes received for this request so far.
7096
7695
  */
@@ -7115,6 +7714,10 @@ export declare namespace Network {
7115
7714
  * Protocol used to fetch this request.
7116
7715
  */
7117
7716
  protocol?: string;
7717
+ /**
7718
+ * The reason why Chrome uses a specific transport protocol for HTTP semantics.
7719
+ */
7720
+ alternateProtocolUsage?: AlternateProtocolUsage;
7118
7721
  /**
7119
7722
  * Security state of the request resource.
7120
7723
  */
@@ -7323,6 +7926,8 @@ export declare namespace Network {
7323
7926
  SameSiteUnspecifiedTreatedAsLax = "SameSiteUnspecifiedTreatedAsLax",
7324
7927
  SameSiteNoneInsecure = "SameSiteNoneInsecure",
7325
7928
  UserPreferences = "UserPreferences",
7929
+ ThirdPartyPhaseout = "ThirdPartyPhaseout",
7930
+ ThirdPartyBlockedInFirstPartySet = "ThirdPartyBlockedInFirstPartySet",
7326
7931
  SyntaxError = "SyntaxError",
7327
7932
  SchemeNotSupported = "SchemeNotSupported",
7328
7933
  OverwriteSecure = "OverwriteSecure",
@@ -7334,7 +7939,9 @@ export declare namespace Network {
7334
7939
  SchemefulSameSiteUnspecifiedTreatedAsLax = "SchemefulSameSiteUnspecifiedTreatedAsLax",
7335
7940
  SamePartyFromCrossPartyContext = "SamePartyFromCrossPartyContext",
7336
7941
  SamePartyConflictsWithOtherAttributes = "SamePartyConflictsWithOtherAttributes",
7337
- NameValuePairExceedsMaxSize = "NameValuePairExceedsMaxSize"
7942
+ NameValuePairExceedsMaxSize = "NameValuePairExceedsMaxSize",
7943
+ DisallowedCharacter = "DisallowedCharacter",
7944
+ NoCookieContent = "NoCookieContent"
7338
7945
  }
7339
7946
  /**
7340
7947
  * Types of reasons why a cookie may not be sent with a request.
@@ -7348,6 +7955,8 @@ export declare namespace Network {
7348
7955
  SameSiteUnspecifiedTreatedAsLax = "SameSiteUnspecifiedTreatedAsLax",
7349
7956
  SameSiteNoneInsecure = "SameSiteNoneInsecure",
7350
7957
  UserPreferences = "UserPreferences",
7958
+ ThirdPartyPhaseout = "ThirdPartyPhaseout",
7959
+ ThirdPartyBlockedInFirstPartySet = "ThirdPartyBlockedInFirstPartySet",
7351
7960
  UnknownError = "UnknownError",
7352
7961
  SchemefulSameSiteStrict = "SchemefulSameSiteStrict",
7353
7962
  SchemefulSameSiteLax = "SchemefulSameSiteLax",
@@ -7355,6 +7964,20 @@ export declare namespace Network {
7355
7964
  SamePartyFromCrossPartyContext = "SamePartyFromCrossPartyContext",
7356
7965
  NameValuePairExceedsMaxSize = "NameValuePairExceedsMaxSize"
7357
7966
  }
7967
+ /**
7968
+ * Types of reasons why a cookie should have been blocked by 3PCD but is exempted for the request.
7969
+ */
7970
+ const enum CookieExemptionReason {
7971
+ None = "None",
7972
+ UserSetting = "UserSetting",
7973
+ TPCDMetadata = "TPCDMetadata",
7974
+ TPCDDeprecationTrial = "TPCDDeprecationTrial",
7975
+ TPCDHeuristics = "TPCDHeuristics",
7976
+ EnterprisePolicy = "EnterprisePolicy",
7977
+ StorageAccess = "StorageAccess",
7978
+ TopLevelStorageAccess = "TopLevelStorageAccess",
7979
+ CorsOptIn = "CorsOptIn"
7980
+ }
7358
7981
  /**
7359
7982
  * A cookie which was not stored from a response with the corresponding reason.
7360
7983
  */
@@ -7376,17 +7999,37 @@ export declare namespace Network {
7376
7999
  cookie?: Cookie;
7377
8000
  }
7378
8001
  /**
7379
- * A cookie with was not sent with a request with the corresponding reason.
8002
+ * A cookie should have been blocked by 3PCD but is exempted and stored from a response with the
8003
+ * corresponding reason. A cookie could only have at most one exemption reason.
7380
8004
  */
7381
- interface BlockedCookieWithReason {
8005
+ interface ExemptedSetCookieWithReason {
7382
8006
  /**
7383
- * The reason(s) the cookie was blocked.
8007
+ * The reason the cookie was exempted.
7384
8008
  */
7385
- blockedReasons: CookieBlockedReason[];
8009
+ exemptionReason: CookieExemptionReason;
8010
+ /**
8011
+ * The cookie object representing the cookie.
8012
+ */
8013
+ cookie: Cookie;
8014
+ }
8015
+ /**
8016
+ * A cookie associated with the request which may or may not be sent with it.
8017
+ * Includes the cookies itself and reasons for blocking or exemption.
8018
+ */
8019
+ interface AssociatedCookie {
7386
8020
  /**
7387
8021
  * The cookie object representing the cookie which was not sent.
7388
8022
  */
7389
8023
  cookie: Cookie;
8024
+ /**
8025
+ * The reason(s) the cookie was blocked. If empty means the cookie is included.
8026
+ */
8027
+ blockedReasons: CookieBlockedReason[];
8028
+ /**
8029
+ * The reason the cookie should have been blocked by 3PCD but is exempted. A cookie could
8030
+ * only have at most one exemption reason.
8031
+ */
8032
+ exemptionReason?: CookieExemptionReason;
7390
8033
  }
7391
8034
  /**
7392
8035
  * Cookie parameter object
@@ -7595,7 +8238,7 @@ export declare namespace Network {
7595
8238
  */
7596
8239
  signatures: SignedExchangeSignature[];
7597
8240
  /**
7598
- * Signed exchange header integrity hash in the form of "sha256-<base64-hash-value>".
8241
+ * Signed exchange header integrity hash in the form of `sha256-<base64-hash-value>`.
7599
8242
  */
7600
8243
  headerIntegrity: string;
7601
8244
  }
@@ -7654,7 +8297,8 @@ export declare namespace Network {
7654
8297
  const enum ContentEncoding {
7655
8298
  Deflate = "deflate",
7656
8299
  Gzip = "gzip",
7657
- Br = "br"
8300
+ Br = "br",
8301
+ Zstd = "zstd"
7658
8302
  }
7659
8303
  const enum PrivateNetworkRequestPolicy {
7660
8304
  Allow = "Allow",
@@ -7707,9 +8351,19 @@ export declare namespace Network {
7707
8351
  reportingEndpoint?: string;
7708
8352
  reportOnlyReportingEndpoint?: string;
7709
8353
  }
8354
+ const enum ContentSecurityPolicySource {
8355
+ HTTP = "HTTP",
8356
+ Meta = "Meta"
8357
+ }
8358
+ interface ContentSecurityPolicyStatus {
8359
+ effectiveDirectives: string;
8360
+ isEnforced: boolean;
8361
+ source: ContentSecurityPolicySource;
8362
+ }
7710
8363
  interface SecurityIsolationStatus {
7711
8364
  coop?: CrossOriginOpenerPolicyStatus;
7712
8365
  coep?: CrossOriginEmbedderPolicyStatus;
8366
+ csp?: ContentSecurityPolicyStatus[];
7713
8367
  }
7714
8368
  /**
7715
8369
  * The status of a Reporting API report.
@@ -7870,6 +8524,11 @@ export declare namespace Network {
7870
8524
  * If specified, deletes only cookies with the exact path.
7871
8525
  */
7872
8526
  path?: string;
8527
+ /**
8528
+ * If specified, deletes only cookies with the the given name and partitionKey where domain
8529
+ * matches provided URL.
8530
+ */
8531
+ partitionKey?: string;
7873
8532
  }
7874
8533
  interface EmulateNetworkConditionsRequest {
7875
8534
  /**
@@ -8134,7 +8793,7 @@ export declare namespace Network {
8134
8793
  */
8135
8794
  userAgent: string;
8136
8795
  /**
8137
- * Browser langugage to emulate.
8796
+ * Browser language to emulate.
8138
8797
  */
8139
8798
  acceptLanguage?: string;
8140
8799
  /**
@@ -8146,6 +8805,18 @@ export declare namespace Network {
8146
8805
  */
8147
8806
  userAgentMetadata?: Emulation.UserAgentMetadata;
8148
8807
  }
8808
+ interface StreamResourceContentRequest {
8809
+ /**
8810
+ * Identifier of the request to stream.
8811
+ */
8812
+ requestId: RequestId;
8813
+ }
8814
+ interface StreamResourceContentResponse extends ProtocolResponseWithError {
8815
+ /**
8816
+ * Data that has been buffered until streaming is enabled.
8817
+ */
8818
+ bufferedData: binary;
8819
+ }
8149
8820
  interface GetSecurityIsolationStatusRequest {
8150
8821
  /**
8151
8822
  * If no frameId is provided, the status of the target is provided.
@@ -8199,6 +8870,10 @@ export declare namespace Network {
8199
8870
  * Actual bytes received (might be less than dataLength for compressed encodings).
8200
8871
  */
8201
8872
  encodedDataLength: integer;
8873
+ /**
8874
+ * Data that was received.
8875
+ */
8876
+ data?: binary;
8202
8877
  }
8203
8878
  /**
8204
8879
  * Fired when EventSource message is received.
@@ -8274,11 +8949,6 @@ export declare namespace Network {
8274
8949
  * Total number of bytes received for this request.
8275
8950
  */
8276
8951
  encodedDataLength: number;
8277
- /**
8278
- * Set when 1) response was blocked by Cross-Origin Read Blocking and also
8279
- * 2) this needs to be reported to the DevTools console.
8280
- */
8281
- shouldReportCorbBlocking?: boolean;
8282
8952
  }
8283
8953
  /**
8284
8954
  * Details of an intercepted HTTP request, which must be either allowed, blocked, modified or
@@ -8647,9 +9317,9 @@ export declare namespace Network {
8647
9317
  requestId: RequestId;
8648
9318
  /**
8649
9319
  * A list of cookies potentially associated to the requested URL. This includes both cookies sent with
8650
- * the request and the ones not sent; the latter are distinguished by having blockedReason field set.
9320
+ * the request and the ones not sent; the latter are distinguished by having blockedReasons field set.
8651
9321
  */
8652
- associatedCookies: BlockedCookieWithReason[];
9322
+ associatedCookies: AssociatedCookie[];
8653
9323
  /**
8654
9324
  * Raw request headers as they will be sent over the wire.
8655
9325
  */
@@ -8662,6 +9332,10 @@ export declare namespace Network {
8662
9332
  * The client security state set for the request.
8663
9333
  */
8664
9334
  clientSecurityState?: ClientSecurityState;
9335
+ /**
9336
+ * Whether the site has partitioned cookies stored in a partition different than the current one.
9337
+ */
9338
+ siteHasCookieInOtherPartition?: boolean;
8665
9339
  }
8666
9340
  /**
8667
9341
  * Fired when additional information about a responseReceived event is available from the network
@@ -8699,14 +9373,30 @@ export declare namespace Network {
8699
9373
  * available, such as in the case of HTTP/2 or QUIC.
8700
9374
  */
8701
9375
  headersText?: string;
9376
+ /**
9377
+ * The cookie partition key that will be used to store partitioned cookies set in this response.
9378
+ * Only sent when partitioned cookies are enabled.
9379
+ */
9380
+ cookiePartitionKey?: string;
9381
+ /**
9382
+ * True if partitioned cookies are enabled, but the partition key is not serializeable to string.
9383
+ */
9384
+ cookiePartitionKeyOpaque?: boolean;
9385
+ /**
9386
+ * A list of cookies which should have been blocked by 3PCD but are exempted and stored from
9387
+ * the response with the corresponding reason.
9388
+ */
9389
+ exemptedCookies?: ExemptedSetCookieWithReason[];
8702
9390
  }
8703
9391
  const enum TrustTokenOperationDoneEventStatus {
8704
9392
  Ok = "Ok",
8705
9393
  InvalidArgument = "InvalidArgument",
9394
+ MissingIssuerKeys = "MissingIssuerKeys",
8706
9395
  FailedPrecondition = "FailedPrecondition",
8707
9396
  ResourceExhausted = "ResourceExhausted",
8708
9397
  AlreadyExists = "AlreadyExists",
8709
9398
  Unavailable = "Unavailable",
9399
+ Unauthorized = "Unauthorized",
8710
9400
  BadResponse = "BadResponse",
8711
9401
  InternalError = "InternalError",
8712
9402
  UnknownError = "UnknownError",
@@ -9175,6 +9865,23 @@ export declare namespace Overlay {
9175
9865
  */
9176
9866
  outlineColor?: DOM.RGBA;
9177
9867
  }
9868
+ /**
9869
+ * Configuration for Window Controls Overlay
9870
+ */
9871
+ interface WindowControlsOverlayConfig {
9872
+ /**
9873
+ * Whether the title bar CSS should be shown when emulating the Window Controls Overlay.
9874
+ */
9875
+ showCSS: boolean;
9876
+ /**
9877
+ * Seleted platforms to show the overlay.
9878
+ */
9879
+ selectedPlatform: string;
9880
+ /**
9881
+ * The theme color defined in app manifest.
9882
+ */
9883
+ themeColor: string;
9884
+ }
9178
9885
  interface ContainerQueryHighlightConfig {
9179
9886
  /**
9180
9887
  * A descriptor for the highlight appearance of container query containers.
@@ -9476,6 +10183,12 @@ export declare namespace Overlay {
9476
10183
  */
9477
10184
  isolatedElementHighlightConfigs: IsolatedElementHighlightConfig[];
9478
10185
  }
10186
+ interface SetShowWindowControlsOverlayRequest {
10187
+ /**
10188
+ * Window Controls Overlay data, null means hide Window Controls Overlay
10189
+ */
10190
+ windowControlsOverlayConfig?: WindowControlsOverlayConfig;
10191
+ }
9479
10192
  /**
9480
10193
  * Fired when the node should be inspected. This happens after call to `setInspectMode` or when
9481
10194
  * user manually inspects an element.
@@ -9580,11 +10293,14 @@ export declare namespace Page {
9580
10293
  Bluetooth = "bluetooth",
9581
10294
  BrowsingTopics = "browsing-topics",
9582
10295
  Camera = "camera",
10296
+ CapturedSurfaceControl = "captured-surface-control",
9583
10297
  ChDpr = "ch-dpr",
9584
10298
  ChDeviceMemory = "ch-device-memory",
9585
10299
  ChDownlink = "ch-downlink",
9586
10300
  ChEct = "ch-ect",
9587
10301
  ChPrefersColorScheme = "ch-prefers-color-scheme",
10302
+ ChPrefersReducedMotion = "ch-prefers-reduced-motion",
10303
+ ChPrefersReducedTransparency = "ch-prefers-reduced-transparency",
9588
10304
  ChRtt = "ch-rtt",
9589
10305
  ChSaveData = "ch-save-data",
9590
10306
  ChUa = "ch-ua",
@@ -9593,17 +10309,17 @@ export declare namespace Page {
9593
10309
  ChUaPlatform = "ch-ua-platform",
9594
10310
  ChUaModel = "ch-ua-model",
9595
10311
  ChUaMobile = "ch-ua-mobile",
9596
- ChUaFull = "ch-ua-full",
10312
+ ChUaFormFactor = "ch-ua-form-factor",
9597
10313
  ChUaFullVersion = "ch-ua-full-version",
9598
10314
  ChUaFullVersionList = "ch-ua-full-version-list",
9599
10315
  ChUaPlatformVersion = "ch-ua-platform-version",
9600
- ChUaReduced = "ch-ua-reduced",
9601
10316
  ChUaWow64 = "ch-ua-wow64",
9602
10317
  ChViewportHeight = "ch-viewport-height",
9603
10318
  ChViewportWidth = "ch-viewport-width",
9604
10319
  ChWidth = "ch-width",
9605
10320
  ClipboardRead = "clipboard-read",
9606
10321
  ClipboardWrite = "clipboard-write",
10322
+ ComputePressure = "compute-pressure",
9607
10323
  CrossOriginIsolated = "cross-origin-isolated",
9608
10324
  DirectSockets = "direct-sockets",
9609
10325
  DisplayCapture = "display-capture",
@@ -9611,7 +10327,6 @@ export declare namespace Page {
9611
10327
  EncryptedMedia = "encrypted-media",
9612
10328
  ExecutionWhileOutOfViewport = "execution-while-out-of-viewport",
9613
10329
  ExecutionWhileNotRendered = "execution-while-not-rendered",
9614
- FederatedCredentials = "federated-credentials",
9615
10330
  FocusWithoutUserActivation = "focus-without-user-activation",
9616
10331
  Fullscreen = "fullscreen",
9617
10332
  Frobulate = "frobulate",
@@ -9619,6 +10334,7 @@ export declare namespace Page {
9619
10334
  Geolocation = "geolocation",
9620
10335
  Gyroscope = "gyroscope",
9621
10336
  Hid = "hid",
10337
+ IdentityCredentialsGet = "identity-credentials-get",
9622
10338
  IdleDetection = "idle-detection",
9623
10339
  InterestCohort = "interest-cohort",
9624
10340
  JoinAdInterestGroup = "join-ad-interest-group",
@@ -9630,19 +10346,28 @@ export declare namespace Page {
9630
10346
  OtpCredentials = "otp-credentials",
9631
10347
  Payment = "payment",
9632
10348
  PictureInPicture = "picture-in-picture",
10349
+ PrivateAggregation = "private-aggregation",
10350
+ PrivateStateTokenIssuance = "private-state-token-issuance",
10351
+ PrivateStateTokenRedemption = "private-state-token-redemption",
10352
+ PublickeyCredentialsCreate = "publickey-credentials-create",
9633
10353
  PublickeyCredentialsGet = "publickey-credentials-get",
9634
10354
  RunAdAuction = "run-ad-auction",
9635
10355
  ScreenWakeLock = "screen-wake-lock",
9636
10356
  Serial = "serial",
9637
10357
  SharedAutofill = "shared-autofill",
9638
10358
  SharedStorage = "shared-storage",
9639
- StorageAccessAPI = "storage-access-api",
10359
+ SharedStorageSelectUrl = "shared-storage-select-url",
10360
+ SmartCard = "smart-card",
10361
+ StorageAccess = "storage-access",
10362
+ SubApps = "sub-apps",
9640
10363
  SyncXhr = "sync-xhr",
9641
- TrustTokenRedemption = "trust-token-redemption",
9642
10364
  Unload = "unload",
9643
10365
  Usb = "usb",
10366
+ UsbUnrestricted = "usb-unrestricted",
9644
10367
  VerticalScroll = "vertical-scroll",
10368
+ WebPrinting = "web-printing",
9645
10369
  WebShare = "web-share",
10370
+ WindowManagement = "window-management",
9646
10371
  WindowPlacement = "window-placement",
9647
10372
  XrSpatialTracking = "xr-spatial-tracking"
9648
10373
  }
@@ -10171,6 +10896,15 @@ export declare namespace Page {
10171
10896
  */
10172
10897
  eager?: boolean;
10173
10898
  }
10899
+ /**
10900
+ * Enum of possible auto-reponse for permisison / prompt dialogs.
10901
+ */
10902
+ const enum AutoResponseMode {
10903
+ None = "none",
10904
+ AutoAccept = "autoAccept",
10905
+ AutoReject = "autoReject",
10906
+ AutoOptOut = "autoOptOut"
10907
+ }
10174
10908
  /**
10175
10909
  * The type of a frameNavigated event.
10176
10910
  */
@@ -10235,6 +10969,9 @@ export declare namespace Page {
10235
10969
  ActivationNavigationsDisallowedForBug1234857 = "ActivationNavigationsDisallowedForBug1234857",
10236
10970
  ErrorDocument = "ErrorDocument",
10237
10971
  FencedFramesEmbedder = "FencedFramesEmbedder",
10972
+ CookieDisabled = "CookieDisabled",
10973
+ HTTPAuthRequired = "HTTPAuthRequired",
10974
+ CookieFlushed = "CookieFlushed",
10238
10975
  WebSocket = "WebSocket",
10239
10976
  WebTransport = "WebTransport",
10240
10977
  WebRTC = "WebRTC",
@@ -10246,15 +10983,12 @@ export declare namespace Page {
10246
10983
  DocumentLoaded = "DocumentLoaded",
10247
10984
  DedicatedWorkerOrWorklet = "DedicatedWorkerOrWorklet",
10248
10985
  OutstandingNetworkRequestOthers = "OutstandingNetworkRequestOthers",
10249
- OutstandingIndexedDBTransaction = "OutstandingIndexedDBTransaction",
10250
- RequestedNotificationsPermission = "RequestedNotificationsPermission",
10251
10986
  RequestedMIDIPermission = "RequestedMIDIPermission",
10252
10987
  RequestedAudioCapturePermission = "RequestedAudioCapturePermission",
10253
10988
  RequestedVideoCapturePermission = "RequestedVideoCapturePermission",
10254
10989
  RequestedBackForwardCacheBlockedSensors = "RequestedBackForwardCacheBlockedSensors",
10255
10990
  RequestedBackgroundWorkPermission = "RequestedBackgroundWorkPermission",
10256
10991
  BroadcastChannel = "BroadcastChannel",
10257
- IndexedDBConnection = "IndexedDBConnection",
10258
10992
  WebXR = "WebXR",
10259
10993
  SharedWorker = "SharedWorker",
10260
10994
  WebLocks = "WebLocks",
@@ -10278,7 +11012,16 @@ export declare namespace Page {
10278
11012
  OutstandingNetworkRequestDirectSocket = "OutstandingNetworkRequestDirectSocket",
10279
11013
  InjectedJavascript = "InjectedJavascript",
10280
11014
  InjectedStyleSheet = "InjectedStyleSheet",
11015
+ KeepaliveRequest = "KeepaliveRequest",
11016
+ IndexedDBEvent = "IndexedDBEvent",
10281
11017
  Dummy = "Dummy",
11018
+ JsNetworkRequestReceivedCacheControlNoStoreResource = "JsNetworkRequestReceivedCacheControlNoStoreResource",
11019
+ WebRTCSticky = "WebRTCSticky",
11020
+ WebTransportSticky = "WebTransportSticky",
11021
+ WebSocketSticky = "WebSocketSticky",
11022
+ SmartCard = "SmartCard",
11023
+ LiveMediaStreamTrack = "LiveMediaStreamTrack",
11024
+ UnloadHandler = "UnloadHandler",
10282
11025
  ContentSecurityHandler = "ContentSecurityHandler",
10283
11026
  ContentWebAuthenticationAPI = "ContentWebAuthenticationAPI",
10284
11027
  ContentFileChooser = "ContentFileChooser",
@@ -10313,6 +11056,24 @@ export declare namespace Page {
10313
11056
  PageSupportNeeded = "PageSupportNeeded",
10314
11057
  Circumstantial = "Circumstantial"
10315
11058
  }
11059
+ interface BackForwardCacheBlockingDetails {
11060
+ /**
11061
+ * Url of the file where blockage happened. Optional because of tests.
11062
+ */
11063
+ url?: string;
11064
+ /**
11065
+ * Function name where blockage happened. Optional because of anonymous functions and tests.
11066
+ */
11067
+ function?: string;
11068
+ /**
11069
+ * Line number in the script (0-based).
11070
+ */
11071
+ lineNumber: integer;
11072
+ /**
11073
+ * Column number in the script (0-based).
11074
+ */
11075
+ columnNumber: integer;
11076
+ }
10316
11077
  interface BackForwardCacheNotRestoredExplanation {
10317
11078
  /**
10318
11079
  * Type of the reason
@@ -10328,6 +11089,7 @@ export declare namespace Page {
10328
11089
  * - EmbedderExtensionSentMessageToCachedFrame: the extension ID.
10329
11090
  */
10330
11091
  context?: string;
11092
+ details?: BackForwardCacheBlockingDetails[];
10331
11093
  }
10332
11094
  interface BackForwardCacheNotRestoredExplanationTree {
10333
11095
  /**
@@ -10343,46 +11105,6 @@ export declare namespace Page {
10343
11105
  */
10344
11106
  children: BackForwardCacheNotRestoredExplanationTree[];
10345
11107
  }
10346
- /**
10347
- * List of FinalStatus reasons for Prerender2.
10348
- */
10349
- const enum PrerenderFinalStatus {
10350
- Activated = "Activated",
10351
- Destroyed = "Destroyed",
10352
- LowEndDevice = "LowEndDevice",
10353
- CrossOriginRedirect = "CrossOriginRedirect",
10354
- CrossOriginNavigation = "CrossOriginNavigation",
10355
- InvalidSchemeRedirect = "InvalidSchemeRedirect",
10356
- InvalidSchemeNavigation = "InvalidSchemeNavigation",
10357
- InProgressNavigation = "InProgressNavigation",
10358
- NavigationRequestBlockedByCsp = "NavigationRequestBlockedByCsp",
10359
- MainFrameNavigation = "MainFrameNavigation",
10360
- MojoBinderPolicy = "MojoBinderPolicy",
10361
- RendererProcessCrashed = "RendererProcessCrashed",
10362
- RendererProcessKilled = "RendererProcessKilled",
10363
- Download = "Download",
10364
- TriggerDestroyed = "TriggerDestroyed",
10365
- NavigationNotCommitted = "NavigationNotCommitted",
10366
- NavigationBadHttpStatus = "NavigationBadHttpStatus",
10367
- ClientCertRequested = "ClientCertRequested",
10368
- NavigationRequestNetworkError = "NavigationRequestNetworkError",
10369
- MaxNumOfRunningPrerendersExceeded = "MaxNumOfRunningPrerendersExceeded",
10370
- CancelAllHostsForTesting = "CancelAllHostsForTesting",
10371
- DidFailLoad = "DidFailLoad",
10372
- Stop = "Stop",
10373
- SslCertificateError = "SslCertificateError",
10374
- LoginAuthRequested = "LoginAuthRequested",
10375
- UaChangeRequiresReload = "UaChangeRequiresReload",
10376
- BlockedByClient = "BlockedByClient",
10377
- AudioOutputDeviceRequested = "AudioOutputDeviceRequested",
10378
- MixedContent = "MixedContent",
10379
- TriggerBackgrounded = "TriggerBackgrounded",
10380
- EmbedderTriggeredAndSameOriginRedirected = "EmbedderTriggeredAndSameOriginRedirected",
10381
- EmbedderTriggeredAndCrossOriginRedirected = "EmbedderTriggeredAndCrossOriginRedirected",
10382
- MemoryLimitExceeded = "MemoryLimitExceeded",
10383
- FailToGetMemoryUsage = "FailToGetMemoryUsage",
10384
- DataSaverEnabled = "DataSaverEnabled"
10385
- }
10386
11108
  interface AddScriptToEvaluateOnLoadRequest {
10387
11109
  scriptSource: string;
10388
11110
  }
@@ -10405,6 +11127,11 @@ export declare namespace Page {
10405
11127
  * to false.
10406
11128
  */
10407
11129
  includeCommandLineAPI?: boolean;
11130
+ /**
11131
+ * If true, runs the script immediately on existing execution contexts or worlds.
11132
+ * Default: false.
11133
+ */
11134
+ runImmediately?: boolean;
10408
11135
  }
10409
11136
  interface AddScriptToEvaluateOnNewDocumentResponse extends ProtocolResponseWithError {
10410
11137
  /**
@@ -10438,6 +11165,10 @@ export declare namespace Page {
10438
11165
  * Capture the screenshot beyond the viewport. Defaults to false.
10439
11166
  */
10440
11167
  captureBeyondViewport?: boolean;
11168
+ /**
11169
+ * Optimize image encoding for speed, not for resulting size (defaults to false)
11170
+ */
11171
+ optimizeForSpeed?: boolean;
10441
11172
  }
10442
11173
  interface CaptureScreenshotResponse extends ProtocolResponseWithError {
10443
11174
  /**
@@ -10522,11 +11253,15 @@ export declare namespace Page {
10522
11253
  */
10523
11254
  recommendedId?: string;
10524
11255
  }
10525
- interface GetCookiesResponse extends ProtocolResponseWithError {
11256
+ interface GetAdScriptIdRequest {
11257
+ frameId: FrameId;
11258
+ }
11259
+ interface GetAdScriptIdResponse extends ProtocolResponseWithError {
10526
11260
  /**
10527
- * Array of cookie objects.
11261
+ * Identifies the bottom-most script which caused the frame to be labelled
11262
+ * as an ad. Only sent if frame is labelled as an ad and id is available.
10528
11263
  */
10529
- cookies: Network.Cookie[];
11264
+ adScriptId?: AdScriptId;
10530
11265
  }
10531
11266
  interface GetFrameTreeResponse extends ProtocolResponseWithError {
10532
11267
  /**
@@ -10731,6 +11466,14 @@ export declare namespace Page {
10731
11466
  * return as stream
10732
11467
  */
10733
11468
  transferMode?: PrintToPDFRequestTransferMode;
11469
+ /**
11470
+ * Whether or not to generate tagged (accessible) PDF. Defaults to embedder choice.
11471
+ */
11472
+ generateTaggedPDF?: boolean;
11473
+ /**
11474
+ * Whether or not to embed the document outline into the PDF.
11475
+ */
11476
+ generateDocumentOutline?: boolean;
10734
11477
  }
10735
11478
  interface PrintToPDFResponse extends ProtocolResponseWithError {
10736
11479
  /**
@@ -11004,13 +11747,11 @@ export declare namespace Page {
11004
11747
  */
11005
11748
  data: binary;
11006
11749
  }
11007
- const enum SetSPCTransactionModeRequestMode {
11008
- None = "none",
11009
- Autoaccept = "autoaccept",
11010
- Autoreject = "autoreject"
11011
- }
11012
11750
  interface SetSPCTransactionModeRequest {
11013
- mode: SetSPCTransactionModeRequestMode;
11751
+ mode: AutoResponseMode;
11752
+ }
11753
+ interface SetRPHRegistrationModeRequest {
11754
+ mode: AutoResponseMode;
11014
11755
  }
11015
11756
  interface GenerateTestReportRequest {
11016
11757
  /**
@@ -11025,6 +11766,9 @@ export declare namespace Page {
11025
11766
  interface SetInterceptFileChooserDialogRequest {
11026
11767
  enabled: boolean;
11027
11768
  }
11769
+ interface SetPrerenderingAllowedRequest {
11770
+ isAllowed: boolean;
11771
+ }
11028
11772
  interface DomContentEventFiredEvent {
11029
11773
  timestamp: Network.MonotonicTime;
11030
11774
  }
@@ -11045,7 +11789,7 @@ export declare namespace Page {
11045
11789
  */
11046
11790
  mode: FileChooserOpenedEventMode;
11047
11791
  /**
11048
- * Input node id. Only present for file choosers opened via an <input type="file"> element.
11792
+ * Input node id. Only present for file choosers opened via an `<input type="file">` element.
11049
11793
  */
11050
11794
  backendNodeId?: DOM.BackendNodeId;
11051
11795
  }
@@ -11065,11 +11809,6 @@ export declare namespace Page {
11065
11809
  * JavaScript stack trace of when frame was attached, only set if frame initiated from script.
11066
11810
  */
11067
11811
  stack?: Runtime.StackTrace;
11068
- /**
11069
- * Identifies the bottom-most script which caused the frame to be labelled
11070
- * as an ad. Only sent if frame is labelled as an ad and id is available.
11071
- */
11072
- adScriptId?: AdScriptId;
11073
11812
  }
11074
11813
  /**
11075
11814
  * Fired when frame no longer has a scheduled navigation.
@@ -11305,22 +12044,6 @@ export declare namespace Page {
11305
12044
  */
11306
12045
  notRestoredExplanationsTree?: BackForwardCacheNotRestoredExplanationTree;
11307
12046
  }
11308
- /**
11309
- * Fired when a prerender attempt is completed.
11310
- */
11311
- interface PrerenderAttemptCompletedEvent {
11312
- /**
11313
- * The frame id of the frame initiating prerendering.
11314
- */
11315
- initiatingFrameId: FrameId;
11316
- prerenderingUrl: string;
11317
- finalStatus: PrerenderFinalStatus;
11318
- /**
11319
- * This is used to give users more information about the cancellation details,
11320
- * and this will be formatted for display.
11321
- */
11322
- reasonDetails?: string;
11323
- }
11324
12047
  interface LoadEventFiredEvent {
11325
12048
  timestamp: Network.MonotonicTime;
11326
12049
  }
@@ -11871,6 +12594,7 @@ export declare namespace ServiceWorker {
11871
12594
  scriptResponseTime?: number;
11872
12595
  controlledClients?: Target.TargetID[];
11873
12596
  targetId?: Target.TargetID;
12597
+ routerRules?: string;
11874
12598
  }
11875
12599
  /**
11876
12600
  * ServiceWorker error message.
@@ -11946,6 +12670,8 @@ export declare namespace Storage {
11946
12670
  Service_workers = "service_workers",
11947
12671
  Cache_storage = "cache_storage",
11948
12672
  Interest_groups = "interest_groups",
12673
+ Shared_storage = "shared_storage",
12674
+ Storage_buckets = "storage_buckets",
11949
12675
  All = "all",
11950
12676
  Other = "other"
11951
12677
  }
@@ -11970,6 +12696,10 @@ export declare namespace Storage {
11970
12696
  issuerOrigin: string;
11971
12697
  count: number;
11972
12698
  }
12699
+ /**
12700
+ * Protected audience interest group auction identifier.
12701
+ */
12702
+ type InterestGroupAuctionId = OpaqueIdentifier<string, 'Protocol.Storage.InterestGroupAuctionId'>;
11973
12703
  /**
11974
12704
  * Enum of interest group access types.
11975
12705
  */
@@ -11977,14 +12707,37 @@ export declare namespace Storage {
11977
12707
  Join = "join",
11978
12708
  Leave = "leave",
11979
12709
  Update = "update",
12710
+ Loaded = "loaded",
11980
12711
  Bid = "bid",
11981
- Win = "win"
12712
+ Win = "win",
12713
+ AdditionalBid = "additionalBid",
12714
+ AdditionalBidWin = "additionalBidWin",
12715
+ TopLevelBid = "topLevelBid",
12716
+ TopLevelAdditionalBid = "topLevelAdditionalBid",
12717
+ Clear = "clear"
12718
+ }
12719
+ /**
12720
+ * Enum of auction events.
12721
+ */
12722
+ const enum InterestGroupAuctionEventType {
12723
+ Started = "started",
12724
+ ConfigResolved = "configResolved"
12725
+ }
12726
+ /**
12727
+ * Enum of network fetches auctions can do.
12728
+ */
12729
+ const enum InterestGroupAuctionFetchType {
12730
+ BidderJs = "bidderJs",
12731
+ BidderWasm = "bidderWasm",
12732
+ SellerJs = "sellerJs",
12733
+ BidderTrustedSignals = "bidderTrustedSignals",
12734
+ SellerTrustedSignals = "sellerTrustedSignals"
11982
12735
  }
11983
12736
  /**
11984
12737
  * Ad advertising element inside an interest group.
11985
12738
  */
11986
12739
  interface InterestGroupAd {
11987
- renderUrl: string;
12740
+ renderURL: string;
11988
12741
  metadata?: string;
11989
12742
  }
11990
12743
  /**
@@ -11995,15 +12748,306 @@ export declare namespace Storage {
11995
12748
  name: string;
11996
12749
  expirationTime: Network.TimeSinceEpoch;
11997
12750
  joiningOrigin: string;
11998
- biddingUrl?: string;
11999
- biddingWasmHelperUrl?: string;
12000
- updateUrl?: string;
12001
- trustedBiddingSignalsUrl?: string;
12751
+ biddingLogicURL?: string;
12752
+ biddingWasmHelperURL?: string;
12753
+ updateURL?: string;
12754
+ trustedBiddingSignalsURL?: string;
12002
12755
  trustedBiddingSignalsKeys: string[];
12003
12756
  userBiddingSignals?: string;
12004
12757
  ads: InterestGroupAd[];
12005
12758
  adComponents: InterestGroupAd[];
12006
12759
  }
12760
+ /**
12761
+ * Enum of shared storage access types.
12762
+ */
12763
+ const enum SharedStorageAccessType {
12764
+ DocumentAddModule = "documentAddModule",
12765
+ DocumentSelectURL = "documentSelectURL",
12766
+ DocumentRun = "documentRun",
12767
+ DocumentSet = "documentSet",
12768
+ DocumentAppend = "documentAppend",
12769
+ DocumentDelete = "documentDelete",
12770
+ DocumentClear = "documentClear",
12771
+ WorkletSet = "workletSet",
12772
+ WorkletAppend = "workletAppend",
12773
+ WorkletDelete = "workletDelete",
12774
+ WorkletClear = "workletClear",
12775
+ WorkletGet = "workletGet",
12776
+ WorkletKeys = "workletKeys",
12777
+ WorkletEntries = "workletEntries",
12778
+ WorkletLength = "workletLength",
12779
+ WorkletRemainingBudget = "workletRemainingBudget"
12780
+ }
12781
+ /**
12782
+ * Struct for a single key-value pair in an origin's shared storage.
12783
+ */
12784
+ interface SharedStorageEntry {
12785
+ key: string;
12786
+ value: string;
12787
+ }
12788
+ /**
12789
+ * Details for an origin's shared storage.
12790
+ */
12791
+ interface SharedStorageMetadata {
12792
+ creationTime: Network.TimeSinceEpoch;
12793
+ length: integer;
12794
+ remainingBudget: number;
12795
+ }
12796
+ /**
12797
+ * Pair of reporting metadata details for a candidate URL for `selectURL()`.
12798
+ */
12799
+ interface SharedStorageReportingMetadata {
12800
+ eventType: string;
12801
+ reportingUrl: string;
12802
+ }
12803
+ /**
12804
+ * Bundles a candidate URL with its reporting metadata.
12805
+ */
12806
+ interface SharedStorageUrlWithMetadata {
12807
+ /**
12808
+ * Spec of candidate URL.
12809
+ */
12810
+ url: string;
12811
+ /**
12812
+ * Any associated reporting metadata.
12813
+ */
12814
+ reportingMetadata: SharedStorageReportingMetadata[];
12815
+ }
12816
+ /**
12817
+ * Bundles the parameters for shared storage access events whose
12818
+ * presence/absence can vary according to SharedStorageAccessType.
12819
+ */
12820
+ interface SharedStorageAccessParams {
12821
+ /**
12822
+ * Spec of the module script URL.
12823
+ * Present only for SharedStorageAccessType.documentAddModule.
12824
+ */
12825
+ scriptSourceUrl?: string;
12826
+ /**
12827
+ * Name of the registered operation to be run.
12828
+ * Present only for SharedStorageAccessType.documentRun and
12829
+ * SharedStorageAccessType.documentSelectURL.
12830
+ */
12831
+ operationName?: string;
12832
+ /**
12833
+ * The operation's serialized data in bytes (converted to a string).
12834
+ * Present only for SharedStorageAccessType.documentRun and
12835
+ * SharedStorageAccessType.documentSelectURL.
12836
+ */
12837
+ serializedData?: string;
12838
+ /**
12839
+ * Array of candidate URLs' specs, along with any associated metadata.
12840
+ * Present only for SharedStorageAccessType.documentSelectURL.
12841
+ */
12842
+ urlsWithMetadata?: SharedStorageUrlWithMetadata[];
12843
+ /**
12844
+ * Key for a specific entry in an origin's shared storage.
12845
+ * Present only for SharedStorageAccessType.documentSet,
12846
+ * SharedStorageAccessType.documentAppend,
12847
+ * SharedStorageAccessType.documentDelete,
12848
+ * SharedStorageAccessType.workletSet,
12849
+ * SharedStorageAccessType.workletAppend,
12850
+ * SharedStorageAccessType.workletDelete, and
12851
+ * SharedStorageAccessType.workletGet.
12852
+ */
12853
+ key?: string;
12854
+ /**
12855
+ * Value for a specific entry in an origin's shared storage.
12856
+ * Present only for SharedStorageAccessType.documentSet,
12857
+ * SharedStorageAccessType.documentAppend,
12858
+ * SharedStorageAccessType.workletSet, and
12859
+ * SharedStorageAccessType.workletAppend.
12860
+ */
12861
+ value?: string;
12862
+ /**
12863
+ * Whether or not to set an entry for a key if that key is already present.
12864
+ * Present only for SharedStorageAccessType.documentSet and
12865
+ * SharedStorageAccessType.workletSet.
12866
+ */
12867
+ ignoreIfPresent?: boolean;
12868
+ }
12869
+ const enum StorageBucketsDurability {
12870
+ Relaxed = "relaxed",
12871
+ Strict = "strict"
12872
+ }
12873
+ interface StorageBucket {
12874
+ storageKey: SerializedStorageKey;
12875
+ /**
12876
+ * If not specified, it is the default bucket of the storageKey.
12877
+ */
12878
+ name?: string;
12879
+ }
12880
+ interface StorageBucketInfo {
12881
+ bucket: StorageBucket;
12882
+ id: string;
12883
+ expiration: Network.TimeSinceEpoch;
12884
+ /**
12885
+ * Storage quota (bytes).
12886
+ */
12887
+ quota: number;
12888
+ persistent: boolean;
12889
+ durability: StorageBucketsDurability;
12890
+ }
12891
+ const enum AttributionReportingSourceType {
12892
+ Navigation = "navigation",
12893
+ Event = "event"
12894
+ }
12895
+ type UnsignedInt64AsBase10 = string;
12896
+ type UnsignedInt128AsBase16 = string;
12897
+ type SignedInt64AsBase10 = string;
12898
+ interface AttributionReportingFilterDataEntry {
12899
+ key: string;
12900
+ values: string[];
12901
+ }
12902
+ interface AttributionReportingFilterConfig {
12903
+ filterValues: AttributionReportingFilterDataEntry[];
12904
+ /**
12905
+ * duration in seconds
12906
+ */
12907
+ lookbackWindow?: integer;
12908
+ }
12909
+ interface AttributionReportingFilterPair {
12910
+ filters: AttributionReportingFilterConfig[];
12911
+ notFilters: AttributionReportingFilterConfig[];
12912
+ }
12913
+ interface AttributionReportingAggregationKeysEntry {
12914
+ key: string;
12915
+ value: UnsignedInt128AsBase16;
12916
+ }
12917
+ interface AttributionReportingEventReportWindows {
12918
+ /**
12919
+ * duration in seconds
12920
+ */
12921
+ start: integer;
12922
+ /**
12923
+ * duration in seconds
12924
+ */
12925
+ ends: integer[];
12926
+ }
12927
+ interface AttributionReportingTriggerSpec {
12928
+ /**
12929
+ * number instead of integer because not all uint32 can be represented by
12930
+ * int
12931
+ */
12932
+ triggerData: number[];
12933
+ eventReportWindows: AttributionReportingEventReportWindows;
12934
+ }
12935
+ const enum AttributionReportingTriggerDataMatching {
12936
+ Exact = "exact",
12937
+ Modulus = "modulus"
12938
+ }
12939
+ interface AttributionReportingSourceRegistration {
12940
+ time: Network.TimeSinceEpoch;
12941
+ /**
12942
+ * duration in seconds
12943
+ */
12944
+ expiry: integer;
12945
+ triggerSpecs: AttributionReportingTriggerSpec[];
12946
+ /**
12947
+ * duration in seconds
12948
+ */
12949
+ aggregatableReportWindow: integer;
12950
+ type: AttributionReportingSourceType;
12951
+ sourceOrigin: string;
12952
+ reportingOrigin: string;
12953
+ destinationSites: string[];
12954
+ eventId: UnsignedInt64AsBase10;
12955
+ priority: SignedInt64AsBase10;
12956
+ filterData: AttributionReportingFilterDataEntry[];
12957
+ aggregationKeys: AttributionReportingAggregationKeysEntry[];
12958
+ debugKey?: UnsignedInt64AsBase10;
12959
+ triggerDataMatching: AttributionReportingTriggerDataMatching;
12960
+ }
12961
+ const enum AttributionReportingSourceRegistrationResult {
12962
+ Success = "success",
12963
+ InternalError = "internalError",
12964
+ InsufficientSourceCapacity = "insufficientSourceCapacity",
12965
+ InsufficientUniqueDestinationCapacity = "insufficientUniqueDestinationCapacity",
12966
+ ExcessiveReportingOrigins = "excessiveReportingOrigins",
12967
+ ProhibitedByBrowserPolicy = "prohibitedByBrowserPolicy",
12968
+ SuccessNoised = "successNoised",
12969
+ DestinationReportingLimitReached = "destinationReportingLimitReached",
12970
+ DestinationGlobalLimitReached = "destinationGlobalLimitReached",
12971
+ DestinationBothLimitsReached = "destinationBothLimitsReached",
12972
+ ReportingOriginsPerSiteLimitReached = "reportingOriginsPerSiteLimitReached",
12973
+ ExceedsMaxChannelCapacity = "exceedsMaxChannelCapacity"
12974
+ }
12975
+ const enum AttributionReportingSourceRegistrationTimeConfig {
12976
+ Include = "include",
12977
+ Exclude = "exclude"
12978
+ }
12979
+ interface AttributionReportingAggregatableValueEntry {
12980
+ key: string;
12981
+ /**
12982
+ * number instead of integer because not all uint32 can be represented by
12983
+ * int
12984
+ */
12985
+ value: number;
12986
+ }
12987
+ interface AttributionReportingEventTriggerData {
12988
+ data: UnsignedInt64AsBase10;
12989
+ priority: SignedInt64AsBase10;
12990
+ dedupKey?: UnsignedInt64AsBase10;
12991
+ filters: AttributionReportingFilterPair;
12992
+ }
12993
+ interface AttributionReportingAggregatableTriggerData {
12994
+ keyPiece: UnsignedInt128AsBase16;
12995
+ sourceKeys: string[];
12996
+ filters: AttributionReportingFilterPair;
12997
+ }
12998
+ interface AttributionReportingAggregatableDedupKey {
12999
+ dedupKey?: UnsignedInt64AsBase10;
13000
+ filters: AttributionReportingFilterPair;
13001
+ }
13002
+ interface AttributionReportingTriggerRegistration {
13003
+ filters: AttributionReportingFilterPair;
13004
+ debugKey?: UnsignedInt64AsBase10;
13005
+ aggregatableDedupKeys: AttributionReportingAggregatableDedupKey[];
13006
+ eventTriggerData: AttributionReportingEventTriggerData[];
13007
+ aggregatableTriggerData: AttributionReportingAggregatableTriggerData[];
13008
+ aggregatableValues: AttributionReportingAggregatableValueEntry[];
13009
+ debugReporting: boolean;
13010
+ aggregationCoordinatorOrigin?: string;
13011
+ sourceRegistrationTimeConfig: AttributionReportingSourceRegistrationTimeConfig;
13012
+ triggerContextId?: string;
13013
+ }
13014
+ const enum AttributionReportingEventLevelResult {
13015
+ Success = "success",
13016
+ SuccessDroppedLowerPriority = "successDroppedLowerPriority",
13017
+ InternalError = "internalError",
13018
+ NoCapacityForAttributionDestination = "noCapacityForAttributionDestination",
13019
+ NoMatchingSources = "noMatchingSources",
13020
+ Deduplicated = "deduplicated",
13021
+ ExcessiveAttributions = "excessiveAttributions",
13022
+ PriorityTooLow = "priorityTooLow",
13023
+ NeverAttributedSource = "neverAttributedSource",
13024
+ ExcessiveReportingOrigins = "excessiveReportingOrigins",
13025
+ NoMatchingSourceFilterData = "noMatchingSourceFilterData",
13026
+ ProhibitedByBrowserPolicy = "prohibitedByBrowserPolicy",
13027
+ NoMatchingConfigurations = "noMatchingConfigurations",
13028
+ ExcessiveReports = "excessiveReports",
13029
+ FalselyAttributedSource = "falselyAttributedSource",
13030
+ ReportWindowPassed = "reportWindowPassed",
13031
+ NotRegistered = "notRegistered",
13032
+ ReportWindowNotStarted = "reportWindowNotStarted",
13033
+ NoMatchingTriggerData = "noMatchingTriggerData"
13034
+ }
13035
+ const enum AttributionReportingAggregatableResult {
13036
+ Success = "success",
13037
+ InternalError = "internalError",
13038
+ NoCapacityForAttributionDestination = "noCapacityForAttributionDestination",
13039
+ NoMatchingSources = "noMatchingSources",
13040
+ ExcessiveAttributions = "excessiveAttributions",
13041
+ ExcessiveReportingOrigins = "excessiveReportingOrigins",
13042
+ NoHistograms = "noHistograms",
13043
+ InsufficientBudget = "insufficientBudget",
13044
+ NoMatchingSourceFilterData = "noMatchingSourceFilterData",
13045
+ NotRegistered = "notRegistered",
13046
+ ProhibitedByBrowserPolicy = "prohibitedByBrowserPolicy",
13047
+ Deduplicated = "deduplicated",
13048
+ ReportWindowPassed = "reportWindowPassed",
13049
+ ExcessiveReports = "excessiveReports"
13050
+ }
12007
13051
  interface GetStorageKeyForFrameRequest {
12008
13052
  frameId: Page.FrameId;
12009
13053
  }
@@ -12104,6 +13148,12 @@ export declare namespace Storage {
12104
13148
  */
12105
13149
  origin: string;
12106
13150
  }
13151
+ interface TrackCacheStorageForStorageKeyRequest {
13152
+ /**
13153
+ * Storage key.
13154
+ */
13155
+ storageKey: string;
13156
+ }
12107
13157
  interface TrackIndexedDBForOriginRequest {
12108
13158
  /**
12109
13159
  * Security origin.
@@ -12122,6 +13172,12 @@ export declare namespace Storage {
12122
13172
  */
12123
13173
  origin: string;
12124
13174
  }
13175
+ interface UntrackCacheStorageForStorageKeyRequest {
13176
+ /**
13177
+ * Storage key.
13178
+ */
13179
+ storageKey: string;
13180
+ }
12125
13181
  interface UntrackIndexedDBForOriginRequest {
12126
13182
  /**
12127
13183
  * Security origin.
@@ -12156,6 +13212,63 @@ export declare namespace Storage {
12156
13212
  interface SetInterestGroupTrackingRequest {
12157
13213
  enable: boolean;
12158
13214
  }
13215
+ interface SetInterestGroupAuctionTrackingRequest {
13216
+ enable: boolean;
13217
+ }
13218
+ interface GetSharedStorageMetadataRequest {
13219
+ ownerOrigin: string;
13220
+ }
13221
+ interface GetSharedStorageMetadataResponse extends ProtocolResponseWithError {
13222
+ metadata: SharedStorageMetadata;
13223
+ }
13224
+ interface GetSharedStorageEntriesRequest {
13225
+ ownerOrigin: string;
13226
+ }
13227
+ interface GetSharedStorageEntriesResponse extends ProtocolResponseWithError {
13228
+ entries: SharedStorageEntry[];
13229
+ }
13230
+ interface SetSharedStorageEntryRequest {
13231
+ ownerOrigin: string;
13232
+ key: string;
13233
+ value: string;
13234
+ /**
13235
+ * If `ignoreIfPresent` is included and true, then only sets the entry if
13236
+ * `key` doesn't already exist.
13237
+ */
13238
+ ignoreIfPresent?: boolean;
13239
+ }
13240
+ interface DeleteSharedStorageEntryRequest {
13241
+ ownerOrigin: string;
13242
+ key: string;
13243
+ }
13244
+ interface ClearSharedStorageEntriesRequest {
13245
+ ownerOrigin: string;
13246
+ }
13247
+ interface ResetSharedStorageBudgetRequest {
13248
+ ownerOrigin: string;
13249
+ }
13250
+ interface SetSharedStorageTrackingRequest {
13251
+ enable: boolean;
13252
+ }
13253
+ interface SetStorageBucketTrackingRequest {
13254
+ storageKey: string;
13255
+ enable: boolean;
13256
+ }
13257
+ interface DeleteStorageBucketRequest {
13258
+ bucket: StorageBucket;
13259
+ }
13260
+ interface RunBounceTrackingMitigationsResponse extends ProtocolResponseWithError {
13261
+ deletedSites: string[];
13262
+ }
13263
+ interface SetAttributionReportingLocalTestingModeRequest {
13264
+ /**
13265
+ * If enabled, noise is suppressed and reports are sent immediately.
13266
+ */
13267
+ enabled: boolean;
13268
+ }
13269
+ interface SetAttributionReportingTrackingRequest {
13270
+ enable: boolean;
13271
+ }
12159
13272
  /**
12160
13273
  * A cache's contents have been modified.
12161
13274
  */
@@ -12164,6 +13277,14 @@ export declare namespace Storage {
12164
13277
  * Origin to update.
12165
13278
  */
12166
13279
  origin: string;
13280
+ /**
13281
+ * Storage key to update.
13282
+ */
13283
+ storageKey: string;
13284
+ /**
13285
+ * Storage bucket to update.
13286
+ */
13287
+ bucketId: string;
12167
13288
  /**
12168
13289
  * Name of cache in origin.
12169
13290
  */
@@ -12177,6 +13298,14 @@ export declare namespace Storage {
12177
13298
  * Origin to update.
12178
13299
  */
12179
13300
  origin: string;
13301
+ /**
13302
+ * Storage key to update.
13303
+ */
13304
+ storageKey: string;
13305
+ /**
13306
+ * Storage bucket to update.
13307
+ */
13308
+ bucketId: string;
12180
13309
  }
12181
13310
  /**
12182
13311
  * The origin's IndexedDB object store has been modified.
@@ -12187,39 +13316,137 @@ export declare namespace Storage {
12187
13316
  */
12188
13317
  origin: string;
12189
13318
  /**
12190
- * Storage key to update.
13319
+ * Storage key to update.
13320
+ */
13321
+ storageKey: string;
13322
+ /**
13323
+ * Storage bucket to update.
13324
+ */
13325
+ bucketId: string;
13326
+ /**
13327
+ * Database to update.
13328
+ */
13329
+ databaseName: string;
13330
+ /**
13331
+ * ObjectStore to update.
13332
+ */
13333
+ objectStoreName: string;
13334
+ }
13335
+ /**
13336
+ * The origin's IndexedDB database list has been modified.
13337
+ */
13338
+ interface IndexedDBListUpdatedEvent {
13339
+ /**
13340
+ * Origin to update.
13341
+ */
13342
+ origin: string;
13343
+ /**
13344
+ * Storage key to update.
13345
+ */
13346
+ storageKey: string;
13347
+ /**
13348
+ * Storage bucket to update.
13349
+ */
13350
+ bucketId: string;
13351
+ }
13352
+ /**
13353
+ * One of the interest groups was accessed. Note that these events are global
13354
+ * to all targets sharing an interest group store.
13355
+ */
13356
+ interface InterestGroupAccessedEvent {
13357
+ accessTime: Network.TimeSinceEpoch;
13358
+ type: InterestGroupAccessType;
13359
+ ownerOrigin: string;
13360
+ name: string;
13361
+ /**
13362
+ * For topLevelBid/topLevelAdditionalBid, and when appropriate,
13363
+ * win and additionalBidWin
12191
13364
  */
12192
- storageKey: string;
13365
+ componentSellerOrigin?: string;
12193
13366
  /**
12194
- * Database to update.
13367
+ * For bid or somethingBid event, if done locally and not on a server.
12195
13368
  */
12196
- databaseName: string;
13369
+ bid?: number;
13370
+ bidCurrency?: string;
12197
13371
  /**
12198
- * ObjectStore to update.
13372
+ * For non-global events --- links to interestGroupAuctionEvent
12199
13373
  */
12200
- objectStoreName: string;
13374
+ uniqueAuctionId?: InterestGroupAuctionId;
12201
13375
  }
12202
13376
  /**
12203
- * The origin's IndexedDB database list has been modified.
13377
+ * An auction involving interest groups is taking place. These events are
13378
+ * target-specific.
12204
13379
  */
12205
- interface IndexedDBListUpdatedEvent {
13380
+ interface InterestGroupAuctionEventOccurredEvent {
13381
+ eventTime: Network.TimeSinceEpoch;
13382
+ type: InterestGroupAuctionEventType;
13383
+ uniqueAuctionId: InterestGroupAuctionId;
12206
13384
  /**
12207
- * Origin to update.
13385
+ * Set for child auctions.
12208
13386
  */
12209
- origin: string;
13387
+ parentAuctionId?: InterestGroupAuctionId;
12210
13388
  /**
12211
- * Storage key to update.
13389
+ * Set for started and configResolved
12212
13390
  */
12213
- storageKey: string;
13391
+ auctionConfig?: any;
12214
13392
  }
12215
13393
  /**
12216
- * One of the interest groups was accessed by the associated page.
13394
+ * Specifies which auctions a particular network fetch may be related to, and
13395
+ * in what role. Note that it is not ordered with respect to
13396
+ * Network.requestWillBeSent (but will happen before loadingFinished
13397
+ * loadingFailed).
12217
13398
  */
12218
- interface InterestGroupAccessedEvent {
13399
+ interface InterestGroupAuctionNetworkRequestCreatedEvent {
13400
+ type: InterestGroupAuctionFetchType;
13401
+ requestId: Network.RequestId;
13402
+ /**
13403
+ * This is the set of the auctions using the worklet that issued this
13404
+ * request. In the case of trusted signals, it's possible that only some of
13405
+ * them actually care about the keys being queried.
13406
+ */
13407
+ auctions: InterestGroupAuctionId[];
13408
+ }
13409
+ /**
13410
+ * Shared storage was accessed by the associated page.
13411
+ * The following parameters are included in all events.
13412
+ */
13413
+ interface SharedStorageAccessedEvent {
13414
+ /**
13415
+ * Time of the access.
13416
+ */
12219
13417
  accessTime: Network.TimeSinceEpoch;
12220
- type: InterestGroupAccessType;
13418
+ /**
13419
+ * Enum value indicating the Shared Storage API method invoked.
13420
+ */
13421
+ type: SharedStorageAccessType;
13422
+ /**
13423
+ * DevTools Frame Token for the primary frame tree's root.
13424
+ */
13425
+ mainFrameId: Page.FrameId;
13426
+ /**
13427
+ * Serialized origin for the context that invoked the Shared Storage API.
13428
+ */
12221
13429
  ownerOrigin: string;
12222
- name: string;
13430
+ /**
13431
+ * The sub-parameters warapped by `params` are all optional and their
13432
+ * presence/absence depends on `type`.
13433
+ */
13434
+ params: SharedStorageAccessParams;
13435
+ }
13436
+ interface StorageBucketCreatedOrUpdatedEvent {
13437
+ bucketInfo: StorageBucketInfo;
13438
+ }
13439
+ interface StorageBucketDeletedEvent {
13440
+ bucketId: string;
13441
+ }
13442
+ interface AttributionReportingSourceRegisteredEvent {
13443
+ registration: AttributionReportingSourceRegistration;
13444
+ result: AttributionReportingSourceRegistrationResult;
13445
+ }
13446
+ interface AttributionReportingTriggerRegisteredEvent {
13447
+ registration: AttributionReportingTriggerRegistration;
13448
+ eventLevel: AttributionReportingEventLevelResult;
13449
+ aggregatable: AttributionReportingAggregatableResult;
12223
13450
  }
12224
13451
  }
12225
13452
  /**
@@ -12425,6 +13652,12 @@ export declare namespace SystemInfo {
12425
13652
  */
12426
13653
  commandLine: string;
12427
13654
  }
13655
+ interface GetFeatureStateRequest {
13656
+ featureState: string;
13657
+ }
13658
+ interface GetFeatureStateResponse extends ProtocolResponseWithError {
13659
+ featureEnabled: boolean;
13660
+ }
12428
13661
  interface GetProcessInfoResponse extends ProtocolResponseWithError {
12429
13662
  /**
12430
13663
  * An array of process info blocks.
@@ -12463,6 +13696,11 @@ export declare namespace Target {
12463
13696
  */
12464
13697
  openerFrameId?: Page.FrameId;
12465
13698
  browserContextId?: Browser.BrowserContextID;
13699
+ /**
13700
+ * Provides additional details for specific target types. For example, for
13701
+ * the type of "page", this may be set to "portal" or "prerender".
13702
+ */
13703
+ subtype?: string;
12466
13704
  }
12467
13705
  /**
12468
13706
  * A filter used by target query/discovery/auto-attach operations.
@@ -12592,6 +13830,10 @@ export declare namespace Target {
12592
13830
  * false by default).
12593
13831
  */
12594
13832
  background?: boolean;
13833
+ /**
13834
+ * Whether to create the target of type "tab".
13835
+ */
13836
+ forTab?: boolean;
12595
13837
  }
12596
13838
  interface CreateTargetResponse extends ProtocolResponseWithError {
12597
13839
  /**
@@ -12979,8 +14221,8 @@ export declare namespace Tracing {
12979
14221
  value?: number;
12980
14222
  }
12981
14223
  /**
12982
- * Contains an bucket of collected trace events. When tracing is stopped collected events will be
12983
- * send as a sequence of dataCollected events followed by tracingComplete event.
14224
+ * Contains a bucket of collected trace events. When tracing is stopped collected events will be
14225
+ * sent as a sequence of dataCollected events followed by tracingComplete event.
12984
14226
  */
12985
14227
  interface DataCollectedEvent {
12986
14228
  value: any[];
@@ -13172,7 +14414,9 @@ export declare namespace Fetch {
13172
14414
  */
13173
14415
  postData?: binary;
13174
14416
  /**
13175
- * If set, overrides the request headers.
14417
+ * If set, overrides the request headers. Note that the overrides do not
14418
+ * extend to subsequent redirect hops, if a redirect happens. Another override
14419
+ * may be applied to a different request produced by a redirect.
13176
14420
  */
13177
14421
  headers?: HeaderEntry[];
13178
14422
  /**
@@ -13245,6 +14489,11 @@ export declare namespace Fetch {
13245
14489
  * The stage of the request can be determined by presence of responseErrorReason
13246
14490
  * and responseStatusCode -- the request is at the response stage if either
13247
14491
  * of these fields is present and in the request stage otherwise.
14492
+ * Redirect responses and subsequent requests are reported similarly to regular
14493
+ * responses and requests. Redirect responses may be distinguished by the value
14494
+ * of `responseStatusCode` (which is one of 301, 302, 303, 307, 308) along with
14495
+ * presence of the `location` header. Requests resulting from a redirect will
14496
+ * have `redirectedRequestId` field set.
13248
14497
  */
13249
14498
  interface RequestPausedEvent {
13250
14499
  /**
@@ -13283,7 +14532,12 @@ export declare namespace Fetch {
13283
14532
  * If the intercepted request had a corresponding Network.requestWillBeSent event fired for it,
13284
14533
  * then this networkId will be the same as the requestId present in the requestWillBeSent event.
13285
14534
  */
13286
- networkId?: RequestId;
14535
+ networkId?: Network.RequestId;
14536
+ /**
14537
+ * If the request is due to a redirect response from the server, the id of the request that
14538
+ * has caused the redirect.
14539
+ */
14540
+ redirectedRequestId?: RequestId;
13287
14541
  }
13288
14542
  /**
13289
14543
  * Issued when the domain is enabled with handleAuthRequests set to true.
@@ -13602,6 +14856,12 @@ export declare namespace WebAuthn {
13602
14856
  * Defaults to false.
13603
14857
  */
13604
14858
  hasMinPinLength?: boolean;
14859
+ /**
14860
+ * If set to true, the authenticator will support the prf extension.
14861
+ * https://w3c.github.io/webauthn/#prf-extension
14862
+ * Defaults to false.
14863
+ */
14864
+ hasPrf?: boolean;
13605
14865
  /**
13606
14866
  * If set to true, tests of user presence will succeed immediately.
13607
14867
  * Otherwise, they will not be resolved. Defaults to true.
@@ -13612,6 +14872,18 @@ export declare namespace WebAuthn {
13612
14872
  * Defaults to false.
13613
14873
  */
13614
14874
  isUserVerified?: boolean;
14875
+ /**
14876
+ * Credentials created by this authenticator will have the backup
14877
+ * eligibility (BE) flag set to this value. Defaults to false.
14878
+ * https://w3c.github.io/webauthn/#sctn-credential-backup
14879
+ */
14880
+ defaultBackupEligibility?: boolean;
14881
+ /**
14882
+ * Credentials created by this authenticator will have the backup state
14883
+ * (BS) flag set to this value. Defaults to false.
14884
+ * https://w3c.github.io/webauthn/#sctn-credential-backup
14885
+ */
14886
+ defaultBackupState?: boolean;
13615
14887
  }
13616
14888
  interface Credential {
13617
14889
  credentialId: binary;
@@ -13658,6 +14930,24 @@ export declare namespace WebAuthn {
13658
14930
  interface AddVirtualAuthenticatorResponse extends ProtocolResponseWithError {
13659
14931
  authenticatorId: AuthenticatorId;
13660
14932
  }
14933
+ interface SetResponseOverrideBitsRequest {
14934
+ authenticatorId: AuthenticatorId;
14935
+ /**
14936
+ * If isBogusSignature is set, overrides the signature in the authenticator response to be zero.
14937
+ * Defaults to false.
14938
+ */
14939
+ isBogusSignature?: boolean;
14940
+ /**
14941
+ * If isBadUV is set, overrides the UV bit in the flags in the authenticator response to
14942
+ * be zero. Defaults to false.
14943
+ */
14944
+ isBadUV?: boolean;
14945
+ /**
14946
+ * If isBadUP is set, overrides the UP bit in the flags in the authenticator response to
14947
+ * be zero. Defaults to false.
14948
+ */
14949
+ isBadUP?: boolean;
14950
+ }
13661
14951
  interface RemoveVirtualAuthenticatorRequest {
13662
14952
  authenticatorId: AuthenticatorId;
13663
14953
  }
@@ -13693,6 +14983,20 @@ export declare namespace WebAuthn {
13693
14983
  authenticatorId: AuthenticatorId;
13694
14984
  enabled: boolean;
13695
14985
  }
14986
+ /**
14987
+ * Triggered when a credential is added to an authenticator.
14988
+ */
14989
+ interface CredentialAddedEvent {
14990
+ authenticatorId: AuthenticatorId;
14991
+ credential: Credential;
14992
+ }
14993
+ /**
14994
+ * Triggered when a credential is used in a webauthn assertion.
14995
+ */
14996
+ interface CredentialAssertedEvent {
14997
+ authenticatorId: AuthenticatorId;
14998
+ credential: Credential;
14999
+ }
13696
15000
  }
13697
15001
  /**
13698
15002
  * This domain allows detailed inspection of media elements
@@ -13813,6 +15117,417 @@ export declare namespace Media {
13813
15117
  players: PlayerId[];
13814
15118
  }
13815
15119
  }
15120
+ export declare namespace DeviceAccess {
15121
+ /**
15122
+ * Device request id.
15123
+ */
15124
+ type RequestId = OpaqueIdentifier<string, 'Protocol.DeviceAccess.RequestId'>;
15125
+ /**
15126
+ * A device id.
15127
+ */
15128
+ type DeviceId = OpaqueIdentifier<string, 'Protocol.DeviceAccess.DeviceId'>;
15129
+ /**
15130
+ * Device information displayed in a user prompt to select a device.
15131
+ */
15132
+ interface PromptDevice {
15133
+ id: DeviceId;
15134
+ /**
15135
+ * Display name as it appears in a device request user prompt.
15136
+ */
15137
+ name: string;
15138
+ }
15139
+ interface SelectPromptRequest {
15140
+ id: RequestId;
15141
+ deviceId: DeviceId;
15142
+ }
15143
+ interface CancelPromptRequest {
15144
+ id: RequestId;
15145
+ }
15146
+ /**
15147
+ * A device request opened a user prompt to select a device. Respond with the
15148
+ * selectPrompt or cancelPrompt command.
15149
+ */
15150
+ interface DeviceRequestPromptedEvent {
15151
+ id: RequestId;
15152
+ devices: PromptDevice[];
15153
+ }
15154
+ }
15155
+ export declare namespace Preload {
15156
+ /**
15157
+ * Unique id
15158
+ */
15159
+ type RuleSetId = OpaqueIdentifier<string, 'Protocol.Preload.RuleSetId'>;
15160
+ /**
15161
+ * Corresponds to SpeculationRuleSet
15162
+ */
15163
+ interface RuleSet {
15164
+ id: RuleSetId;
15165
+ /**
15166
+ * Identifies a document which the rule set is associated with.
15167
+ */
15168
+ loaderId: Network.LoaderId;
15169
+ /**
15170
+ * Source text of JSON representing the rule set. If it comes from
15171
+ * `<script>` tag, it is the textContent of the node. Note that it is
15172
+ * a JSON for valid case.
15173
+ *
15174
+ * See also:
15175
+ * - https://wicg.github.io/nav-speculation/speculation-rules.html
15176
+ * - https://github.com/WICG/nav-speculation/blob/main/triggers.md
15177
+ */
15178
+ sourceText: string;
15179
+ /**
15180
+ * A speculation rule set is either added through an inline
15181
+ * `<script>` tag or through an external resource via the
15182
+ * 'Speculation-Rules' HTTP header. For the first case, we include
15183
+ * the BackendNodeId of the relevant `<script>` tag. For the second
15184
+ * case, we include the external URL where the rule set was loaded
15185
+ * from, and also RequestId if Network domain is enabled.
15186
+ *
15187
+ * See also:
15188
+ * - https://wicg.github.io/nav-speculation/speculation-rules.html#speculation-rules-script
15189
+ * - https://wicg.github.io/nav-speculation/speculation-rules.html#speculation-rules-header
15190
+ */
15191
+ backendNodeId?: DOM.BackendNodeId;
15192
+ url?: string;
15193
+ requestId?: Network.RequestId;
15194
+ /**
15195
+ * Error information
15196
+ * `errorMessage` is null iff `errorType` is null.
15197
+ */
15198
+ errorType?: RuleSetErrorType;
15199
+ /**
15200
+ * TODO(https://crbug.com/1425354): Replace this property with structured error.
15201
+ */
15202
+ errorMessage?: string;
15203
+ }
15204
+ const enum RuleSetErrorType {
15205
+ SourceIsNotJsonObject = "SourceIsNotJsonObject",
15206
+ InvalidRulesSkipped = "InvalidRulesSkipped"
15207
+ }
15208
+ /**
15209
+ * The type of preloading attempted. It corresponds to
15210
+ * mojom::SpeculationAction (although PrefetchWithSubresources is omitted as it
15211
+ * isn't being used by clients).
15212
+ */
15213
+ const enum SpeculationAction {
15214
+ Prefetch = "Prefetch",
15215
+ Prerender = "Prerender"
15216
+ }
15217
+ /**
15218
+ * Corresponds to mojom::SpeculationTargetHint.
15219
+ * See https://github.com/WICG/nav-speculation/blob/main/triggers.md#window-name-targeting-hints
15220
+ */
15221
+ const enum SpeculationTargetHint {
15222
+ Blank = "Blank",
15223
+ Self = "Self"
15224
+ }
15225
+ /**
15226
+ * A key that identifies a preloading attempt.
15227
+ *
15228
+ * The url used is the url specified by the trigger (i.e. the initial URL), and
15229
+ * not the final url that is navigated to. For example, prerendering allows
15230
+ * same-origin main frame navigations during the attempt, but the attempt is
15231
+ * still keyed with the initial URL.
15232
+ */
15233
+ interface PreloadingAttemptKey {
15234
+ loaderId: Network.LoaderId;
15235
+ action: SpeculationAction;
15236
+ url: string;
15237
+ targetHint?: SpeculationTargetHint;
15238
+ }
15239
+ /**
15240
+ * Lists sources for a preloading attempt, specifically the ids of rule sets
15241
+ * that had a speculation rule that triggered the attempt, and the
15242
+ * BackendNodeIds of <a href> or <area href> elements that triggered the
15243
+ * attempt (in the case of attempts triggered by a document rule). It is
15244
+ * possible for mulitple rule sets and links to trigger a single attempt.
15245
+ */
15246
+ interface PreloadingAttemptSource {
15247
+ key: PreloadingAttemptKey;
15248
+ ruleSetIds: RuleSetId[];
15249
+ nodeIds: DOM.BackendNodeId[];
15250
+ }
15251
+ /**
15252
+ * List of FinalStatus reasons for Prerender2.
15253
+ */
15254
+ const enum PrerenderFinalStatus {
15255
+ Activated = "Activated",
15256
+ Destroyed = "Destroyed",
15257
+ LowEndDevice = "LowEndDevice",
15258
+ InvalidSchemeRedirect = "InvalidSchemeRedirect",
15259
+ InvalidSchemeNavigation = "InvalidSchemeNavigation",
15260
+ NavigationRequestBlockedByCsp = "NavigationRequestBlockedByCsp",
15261
+ MainFrameNavigation = "MainFrameNavigation",
15262
+ MojoBinderPolicy = "MojoBinderPolicy",
15263
+ RendererProcessCrashed = "RendererProcessCrashed",
15264
+ RendererProcessKilled = "RendererProcessKilled",
15265
+ Download = "Download",
15266
+ TriggerDestroyed = "TriggerDestroyed",
15267
+ NavigationNotCommitted = "NavigationNotCommitted",
15268
+ NavigationBadHttpStatus = "NavigationBadHttpStatus",
15269
+ ClientCertRequested = "ClientCertRequested",
15270
+ NavigationRequestNetworkError = "NavigationRequestNetworkError",
15271
+ CancelAllHostsForTesting = "CancelAllHostsForTesting",
15272
+ DidFailLoad = "DidFailLoad",
15273
+ Stop = "Stop",
15274
+ SslCertificateError = "SslCertificateError",
15275
+ LoginAuthRequested = "LoginAuthRequested",
15276
+ UaChangeRequiresReload = "UaChangeRequiresReload",
15277
+ BlockedByClient = "BlockedByClient",
15278
+ AudioOutputDeviceRequested = "AudioOutputDeviceRequested",
15279
+ MixedContent = "MixedContent",
15280
+ TriggerBackgrounded = "TriggerBackgrounded",
15281
+ MemoryLimitExceeded = "MemoryLimitExceeded",
15282
+ DataSaverEnabled = "DataSaverEnabled",
15283
+ TriggerUrlHasEffectiveUrl = "TriggerUrlHasEffectiveUrl",
15284
+ ActivatedBeforeStarted = "ActivatedBeforeStarted",
15285
+ InactivePageRestriction = "InactivePageRestriction",
15286
+ StartFailed = "StartFailed",
15287
+ TimeoutBackgrounded = "TimeoutBackgrounded",
15288
+ CrossSiteRedirectInInitialNavigation = "CrossSiteRedirectInInitialNavigation",
15289
+ CrossSiteNavigationInInitialNavigation = "CrossSiteNavigationInInitialNavigation",
15290
+ SameSiteCrossOriginRedirectNotOptInInInitialNavigation = "SameSiteCrossOriginRedirectNotOptInInInitialNavigation",
15291
+ SameSiteCrossOriginNavigationNotOptInInInitialNavigation = "SameSiteCrossOriginNavigationNotOptInInInitialNavigation",
15292
+ ActivationNavigationParameterMismatch = "ActivationNavigationParameterMismatch",
15293
+ ActivatedInBackground = "ActivatedInBackground",
15294
+ EmbedderHostDisallowed = "EmbedderHostDisallowed",
15295
+ ActivationNavigationDestroyedBeforeSuccess = "ActivationNavigationDestroyedBeforeSuccess",
15296
+ TabClosedByUserGesture = "TabClosedByUserGesture",
15297
+ TabClosedWithoutUserGesture = "TabClosedWithoutUserGesture",
15298
+ PrimaryMainFrameRendererProcessCrashed = "PrimaryMainFrameRendererProcessCrashed",
15299
+ PrimaryMainFrameRendererProcessKilled = "PrimaryMainFrameRendererProcessKilled",
15300
+ ActivationFramePolicyNotCompatible = "ActivationFramePolicyNotCompatible",
15301
+ PreloadingDisabled = "PreloadingDisabled",
15302
+ BatterySaverEnabled = "BatterySaverEnabled",
15303
+ ActivatedDuringMainFrameNavigation = "ActivatedDuringMainFrameNavigation",
15304
+ PreloadingUnsupportedByWebContents = "PreloadingUnsupportedByWebContents",
15305
+ CrossSiteRedirectInMainFrameNavigation = "CrossSiteRedirectInMainFrameNavigation",
15306
+ CrossSiteNavigationInMainFrameNavigation = "CrossSiteNavigationInMainFrameNavigation",
15307
+ SameSiteCrossOriginRedirectNotOptInInMainFrameNavigation = "SameSiteCrossOriginRedirectNotOptInInMainFrameNavigation",
15308
+ SameSiteCrossOriginNavigationNotOptInInMainFrameNavigation = "SameSiteCrossOriginNavigationNotOptInInMainFrameNavigation",
15309
+ MemoryPressureOnTrigger = "MemoryPressureOnTrigger",
15310
+ MemoryPressureAfterTriggered = "MemoryPressureAfterTriggered",
15311
+ PrerenderingDisabledByDevTools = "PrerenderingDisabledByDevTools",
15312
+ SpeculationRuleRemoved = "SpeculationRuleRemoved",
15313
+ ActivatedWithAuxiliaryBrowsingContexts = "ActivatedWithAuxiliaryBrowsingContexts",
15314
+ MaxNumOfRunningEagerPrerendersExceeded = "MaxNumOfRunningEagerPrerendersExceeded",
15315
+ MaxNumOfRunningNonEagerPrerendersExceeded = "MaxNumOfRunningNonEagerPrerendersExceeded",
15316
+ MaxNumOfRunningEmbedderPrerendersExceeded = "MaxNumOfRunningEmbedderPrerendersExceeded",
15317
+ PrerenderingUrlHasEffectiveUrl = "PrerenderingUrlHasEffectiveUrl",
15318
+ RedirectedPrerenderingUrlHasEffectiveUrl = "RedirectedPrerenderingUrlHasEffectiveUrl",
15319
+ ActivationUrlHasEffectiveUrl = "ActivationUrlHasEffectiveUrl"
15320
+ }
15321
+ /**
15322
+ * Preloading status values, see also PreloadingTriggeringOutcome. This
15323
+ * status is shared by prefetchStatusUpdated and prerenderStatusUpdated.
15324
+ */
15325
+ const enum PreloadingStatus {
15326
+ Pending = "Pending",
15327
+ Running = "Running",
15328
+ Ready = "Ready",
15329
+ Success = "Success",
15330
+ Failure = "Failure",
15331
+ NotSupported = "NotSupported"
15332
+ }
15333
+ /**
15334
+ * TODO(https://crbug.com/1384419): revisit the list of PrefetchStatus and
15335
+ * filter out the ones that aren't necessary to the developers.
15336
+ */
15337
+ const enum PrefetchStatus {
15338
+ PrefetchAllowed = "PrefetchAllowed",
15339
+ PrefetchFailedIneligibleRedirect = "PrefetchFailedIneligibleRedirect",
15340
+ PrefetchFailedInvalidRedirect = "PrefetchFailedInvalidRedirect",
15341
+ PrefetchFailedMIMENotSupported = "PrefetchFailedMIMENotSupported",
15342
+ PrefetchFailedNetError = "PrefetchFailedNetError",
15343
+ PrefetchFailedNon2XX = "PrefetchFailedNon2XX",
15344
+ PrefetchFailedPerPageLimitExceeded = "PrefetchFailedPerPageLimitExceeded",
15345
+ PrefetchEvictedAfterCandidateRemoved = "PrefetchEvictedAfterCandidateRemoved",
15346
+ PrefetchEvictedForNewerPrefetch = "PrefetchEvictedForNewerPrefetch",
15347
+ PrefetchHeldback = "PrefetchHeldback",
15348
+ PrefetchIneligibleRetryAfter = "PrefetchIneligibleRetryAfter",
15349
+ PrefetchIsPrivacyDecoy = "PrefetchIsPrivacyDecoy",
15350
+ PrefetchIsStale = "PrefetchIsStale",
15351
+ PrefetchNotEligibleBrowserContextOffTheRecord = "PrefetchNotEligibleBrowserContextOffTheRecord",
15352
+ PrefetchNotEligibleDataSaverEnabled = "PrefetchNotEligibleDataSaverEnabled",
15353
+ PrefetchNotEligibleExistingProxy = "PrefetchNotEligibleExistingProxy",
15354
+ PrefetchNotEligibleHostIsNonUnique = "PrefetchNotEligibleHostIsNonUnique",
15355
+ PrefetchNotEligibleNonDefaultStoragePartition = "PrefetchNotEligibleNonDefaultStoragePartition",
15356
+ PrefetchNotEligibleSameSiteCrossOriginPrefetchRequiredProxy = "PrefetchNotEligibleSameSiteCrossOriginPrefetchRequiredProxy",
15357
+ PrefetchNotEligibleSchemeIsNotHttps = "PrefetchNotEligibleSchemeIsNotHttps",
15358
+ PrefetchNotEligibleUserHasCookies = "PrefetchNotEligibleUserHasCookies",
15359
+ PrefetchNotEligibleUserHasServiceWorker = "PrefetchNotEligibleUserHasServiceWorker",
15360
+ PrefetchNotEligibleBatterySaverEnabled = "PrefetchNotEligibleBatterySaverEnabled",
15361
+ PrefetchNotEligiblePreloadingDisabled = "PrefetchNotEligiblePreloadingDisabled",
15362
+ PrefetchNotFinishedInTime = "PrefetchNotFinishedInTime",
15363
+ PrefetchNotStarted = "PrefetchNotStarted",
15364
+ PrefetchNotUsedCookiesChanged = "PrefetchNotUsedCookiesChanged",
15365
+ PrefetchProxyNotAvailable = "PrefetchProxyNotAvailable",
15366
+ PrefetchResponseUsed = "PrefetchResponseUsed",
15367
+ PrefetchSuccessfulButNotUsed = "PrefetchSuccessfulButNotUsed",
15368
+ PrefetchNotUsedProbeFailed = "PrefetchNotUsedProbeFailed"
15369
+ }
15370
+ /**
15371
+ * Information of headers to be displayed when the header mismatch occurred.
15372
+ */
15373
+ interface PrerenderMismatchedHeaders {
15374
+ headerName: string;
15375
+ initialValue?: string;
15376
+ activationValue?: string;
15377
+ }
15378
+ /**
15379
+ * Upsert. Currently, it is only emitted when a rule set added.
15380
+ */
15381
+ interface RuleSetUpdatedEvent {
15382
+ ruleSet: RuleSet;
15383
+ }
15384
+ interface RuleSetRemovedEvent {
15385
+ id: RuleSetId;
15386
+ }
15387
+ /**
15388
+ * Fired when a preload enabled state is updated.
15389
+ */
15390
+ interface PreloadEnabledStateUpdatedEvent {
15391
+ disabledByPreference: boolean;
15392
+ disabledByDataSaver: boolean;
15393
+ disabledByBatterySaver: boolean;
15394
+ disabledByHoldbackPrefetchSpeculationRules: boolean;
15395
+ disabledByHoldbackPrerenderSpeculationRules: boolean;
15396
+ }
15397
+ /**
15398
+ * Fired when a prefetch attempt is updated.
15399
+ */
15400
+ interface PrefetchStatusUpdatedEvent {
15401
+ key: PreloadingAttemptKey;
15402
+ /**
15403
+ * The frame id of the frame initiating prefetch.
15404
+ */
15405
+ initiatingFrameId: Page.FrameId;
15406
+ prefetchUrl: string;
15407
+ status: PreloadingStatus;
15408
+ prefetchStatus: PrefetchStatus;
15409
+ requestId: Network.RequestId;
15410
+ }
15411
+ /**
15412
+ * Fired when a prerender attempt is updated.
15413
+ */
15414
+ interface PrerenderStatusUpdatedEvent {
15415
+ key: PreloadingAttemptKey;
15416
+ status: PreloadingStatus;
15417
+ prerenderStatus?: PrerenderFinalStatus;
15418
+ /**
15419
+ * This is used to give users more information about the name of Mojo interface
15420
+ * that is incompatible with prerender and has caused the cancellation of the attempt.
15421
+ */
15422
+ disallowedMojoInterface?: string;
15423
+ mismatchedHeaders?: PrerenderMismatchedHeaders[];
15424
+ }
15425
+ /**
15426
+ * Send a list of sources for all preloading attempts in a document.
15427
+ */
15428
+ interface PreloadingAttemptSourcesUpdatedEvent {
15429
+ loaderId: Network.LoaderId;
15430
+ preloadingAttemptSources: PreloadingAttemptSource[];
15431
+ }
15432
+ }
15433
+ /**
15434
+ * This domain allows interacting with the FedCM dialog.
15435
+ */
15436
+ export declare namespace FedCm {
15437
+ /**
15438
+ * Whether this is a sign-up or sign-in action for this account, i.e.
15439
+ * whether this account has ever been used to sign in to this RP before.
15440
+ */
15441
+ const enum LoginState {
15442
+ SignIn = "SignIn",
15443
+ SignUp = "SignUp"
15444
+ }
15445
+ /**
15446
+ * The types of FedCM dialogs.
15447
+ */
15448
+ const enum DialogType {
15449
+ AccountChooser = "AccountChooser",
15450
+ AutoReauthn = "AutoReauthn",
15451
+ ConfirmIdpLogin = "ConfirmIdpLogin",
15452
+ Error = "Error"
15453
+ }
15454
+ /**
15455
+ * The buttons on the FedCM dialog.
15456
+ */
15457
+ const enum DialogButton {
15458
+ ConfirmIdpLoginContinue = "ConfirmIdpLoginContinue",
15459
+ ErrorGotIt = "ErrorGotIt",
15460
+ ErrorMoreDetails = "ErrorMoreDetails"
15461
+ }
15462
+ /**
15463
+ * The URLs that each account has
15464
+ */
15465
+ const enum AccountUrlType {
15466
+ TermsOfService = "TermsOfService",
15467
+ PrivacyPolicy = "PrivacyPolicy"
15468
+ }
15469
+ /**
15470
+ * Corresponds to IdentityRequestAccount
15471
+ */
15472
+ interface Account {
15473
+ accountId: string;
15474
+ email: string;
15475
+ name: string;
15476
+ givenName: string;
15477
+ pictureUrl: string;
15478
+ idpConfigUrl: string;
15479
+ idpLoginUrl: string;
15480
+ loginState: LoginState;
15481
+ /**
15482
+ * These two are only set if the loginState is signUp
15483
+ */
15484
+ termsOfServiceUrl?: string;
15485
+ privacyPolicyUrl?: string;
15486
+ }
15487
+ interface EnableRequest {
15488
+ /**
15489
+ * Allows callers to disable the promise rejection delay that would
15490
+ * normally happen, if this is unimportant to what's being tested.
15491
+ * (step 4 of https://fedidcg.github.io/FedCM/#browser-api-rp-sign-in)
15492
+ */
15493
+ disableRejectionDelay?: boolean;
15494
+ }
15495
+ interface SelectAccountRequest {
15496
+ dialogId: string;
15497
+ accountIndex: integer;
15498
+ }
15499
+ interface ClickDialogButtonRequest {
15500
+ dialogId: string;
15501
+ dialogButton: DialogButton;
15502
+ }
15503
+ interface OpenUrlRequest {
15504
+ dialogId: string;
15505
+ accountIndex: integer;
15506
+ accountUrlType: AccountUrlType;
15507
+ }
15508
+ interface DismissDialogRequest {
15509
+ dialogId: string;
15510
+ triggerCooldown?: boolean;
15511
+ }
15512
+ interface DialogShownEvent {
15513
+ dialogId: string;
15514
+ dialogType: DialogType;
15515
+ accounts: Account[];
15516
+ /**
15517
+ * These exist primarily so that the caller can verify the
15518
+ * RP context was used appropriately.
15519
+ */
15520
+ title: string;
15521
+ subtitle?: string;
15522
+ }
15523
+ /**
15524
+ * Triggered when a dialog is closed, either by user action, JS abort,
15525
+ * or a command below.
15526
+ */
15527
+ interface DialogClosedEvent {
15528
+ dialogId: string;
15529
+ }
15530
+ }
13816
15531
  /**
13817
15532
  * Debugger domain exposes JavaScript debugging capabilities. It allows setting and removing
13818
15533
  * breakpoints, stepping through execution, exploring stack traces, etc.
@@ -14365,6 +16080,7 @@ export declare namespace Debugger {
14365
16080
  }
14366
16081
  const enum SetPauseOnExceptionsRequestState {
14367
16082
  None = "none",
16083
+ Caught = "caught",
14368
16084
  Uncaught = "uncaught",
14369
16085
  All = "all"
14370
16086
  }
@@ -14384,7 +16100,8 @@ export declare namespace Debugger {
14384
16100
  Ok = "Ok",
14385
16101
  CompileError = "CompileError",
14386
16102
  BlockedByActiveGenerator = "BlockedByActiveGenerator",
14387
- BlockedByActiveFunction = "BlockedByActiveFunction"
16103
+ BlockedByActiveFunction = "BlockedByActiveFunction",
16104
+ BlockedByTopLevelEsModuleChange = "BlockedByTopLevelEsModuleChange"
14388
16105
  }
14389
16106
  interface SetScriptSourceRequest {
14390
16107
  /**
@@ -14501,7 +16218,8 @@ export declare namespace Debugger {
14501
16218
  OOM = "OOM",
14502
16219
  Other = "other",
14503
16220
  PromiseRejection = "promiseRejection",
14504
- XHR = "XHR"
16221
+ XHR = "XHR",
16222
+ Step = "step"
14505
16223
  }
14506
16224
  /**
14507
16225
  * Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria.
@@ -14573,7 +16291,7 @@ export declare namespace Debugger {
14573
16291
  */
14574
16292
  hash: string;
14575
16293
  /**
14576
- * Embedder-specific auxiliary data.
16294
+ * Embedder-specific auxiliary data likely matching {isDefault: boolean, type: 'default'|'isolated'|'worker', frameId: string}
14577
16295
  */
14578
16296
  executionContextAuxData?: any;
14579
16297
  /**
@@ -14647,7 +16365,7 @@ export declare namespace Debugger {
14647
16365
  */
14648
16366
  hash: string;
14649
16367
  /**
14650
- * Embedder-specific auxiliary data.
16368
+ * Embedder-specific auxiliary data likely matching {isDefault: boolean, type: 'default'|'isolated'|'worker', frameId: string}
14651
16369
  */
14652
16370
  executionContextAuxData?: any;
14653
16371
  /**
@@ -14786,6 +16504,26 @@ export declare namespace HeapProfiler {
14786
16504
  * default value is 32768 bytes.
14787
16505
  */
14788
16506
  samplingInterval?: number;
16507
+ /**
16508
+ * By default, the sampling heap profiler reports only objects which are
16509
+ * still alive when the profile is returned via getSamplingProfile or
16510
+ * stopSampling, which is useful for determining what functions contribute
16511
+ * the most to steady-state memory usage. This flag instructs the sampling
16512
+ * heap profiler to also include information about objects discarded by
16513
+ * major GC, which will show which functions cause large temporary memory
16514
+ * usage or long GC pauses.
16515
+ */
16516
+ includeObjectsCollectedByMajorGC?: boolean;
16517
+ /**
16518
+ * By default, the sampling heap profiler reports only objects which are
16519
+ * still alive when the profile is returned via getSamplingProfile or
16520
+ * stopSampling, which is useful for determining what functions contribute
16521
+ * the most to steady-state memory usage. This flag instructs the sampling
16522
+ * heap profiler to also include information about objects discarded by
16523
+ * minor GC, which is useful when tuning a latency-sensitive application
16524
+ * for minimal GC activity.
16525
+ */
16526
+ includeObjectsCollectedByMinorGC?: boolean;
14789
16527
  }
14790
16528
  interface StartTrackingHeapObjectsRequest {
14791
16529
  trackAllocations?: boolean;
@@ -14984,45 +16722,6 @@ export declare namespace Profiler {
14984
16722
  */
14985
16723
  functions: FunctionCoverage[];
14986
16724
  }
14987
- /**
14988
- * Describes a type collected during runtime.
14989
- */
14990
- interface TypeObject {
14991
- /**
14992
- * Name of a type collected with type profiling.
14993
- */
14994
- name: string;
14995
- }
14996
- /**
14997
- * Source offset and types for a parameter or return value.
14998
- */
14999
- interface TypeProfileEntry {
15000
- /**
15001
- * Source offset of the parameter or end of function for return values.
15002
- */
15003
- offset: integer;
15004
- /**
15005
- * The types for this parameter or return value.
15006
- */
15007
- types: TypeObject[];
15008
- }
15009
- /**
15010
- * Type profile data collected during runtime for a JavaScript script.
15011
- */
15012
- interface ScriptTypeProfile {
15013
- /**
15014
- * JavaScript script id.
15015
- */
15016
- scriptId: Runtime.ScriptId;
15017
- /**
15018
- * JavaScript script name or url.
15019
- */
15020
- url: string;
15021
- /**
15022
- * Type profile entries for parameters and return values of the functions in the script.
15023
- */
15024
- entries: TypeProfileEntry[];
15025
- }
15026
16725
  interface GetBestEffortCoverageResponse extends ProtocolResponseWithError {
15027
16726
  /**
15028
16727
  * Coverage data for the current isolate.
@@ -15071,12 +16770,6 @@ export declare namespace Profiler {
15071
16770
  */
15072
16771
  timestamp: number;
15073
16772
  }
15074
- interface TakeTypeProfileResponse extends ProtocolResponseWithError {
15075
- /**
15076
- * Type profile for all scripts since startTypeProfile() was turned on.
15077
- */
15078
- result: ScriptTypeProfile[];
15079
- }
15080
16773
  interface ConsoleProfileFinishedEvent {
15081
16774
  id: string;
15082
16775
  /**
@@ -15136,7 +16829,28 @@ export declare namespace Runtime {
15136
16829
  * Unique script identifier.
15137
16830
  */
15138
16831
  type ScriptId = OpaqueIdentifier<string, 'Protocol.Runtime.ScriptId'>;
15139
- const enum WebDriverValueType {
16832
+ const enum SerializationOptionsSerialization {
16833
+ Deep = "deep",
16834
+ Json = "json",
16835
+ IdOnly = "idOnly"
16836
+ }
16837
+ /**
16838
+ * Represents options for serialization. Overrides `generatePreview` and `returnByValue`.
16839
+ */
16840
+ interface SerializationOptions {
16841
+ serialization: SerializationOptionsSerialization;
16842
+ /**
16843
+ * Deep serialization depth. Default is full depth. Respected only in `deep` serialization mode.
16844
+ */
16845
+ maxDepth?: integer;
16846
+ /**
16847
+ * Embedder-specific parameters. For example if connected to V8 in Chrome these control DOM
16848
+ * serialization via `maxNodeDepth: integer` and `includeShadowTree: "none" | "open" | "all"`.
16849
+ * Values can be only of type string or integer.
16850
+ */
16851
+ additionalParameters?: any;
16852
+ }
16853
+ const enum DeepSerializedValueType {
15140
16854
  Undefined = "undefined",
15141
16855
  Null = "null",
15142
16856
  String = "string",
@@ -15159,16 +16873,22 @@ export declare namespace Runtime {
15159
16873
  Typedarray = "typedarray",
15160
16874
  Arraybuffer = "arraybuffer",
15161
16875
  Node = "node",
15162
- Window = "window"
16876
+ Window = "window",
16877
+ Generator = "generator"
15163
16878
  }
15164
16879
  /**
15165
- * Represents the value serialiazed by the WebDriver BiDi specification
15166
- * https://w3c.github.io/webdriver-bidi.
16880
+ * Represents deep serialized value.
15167
16881
  */
15168
- interface WebDriverValue {
15169
- type: WebDriverValueType;
16882
+ interface DeepSerializedValue {
16883
+ type: DeepSerializedValueType;
15170
16884
  value?: any;
15171
16885
  objectId?: string;
16886
+ /**
16887
+ * Set if value reference met more then once during serialization. In such
16888
+ * case, value is provided only to one of the serialized values. Unique
16889
+ * per value in the scope of one CDP call.
16890
+ */
16891
+ weakLocalObjectReference?: integer;
15172
16892
  }
15173
16893
  /**
15174
16894
  * Unique object identifier.
@@ -15242,9 +16962,9 @@ export declare namespace Runtime {
15242
16962
  */
15243
16963
  description?: string;
15244
16964
  /**
15245
- * WebDriver BiDi representation of the value.
16965
+ * Deep serialized value.
15246
16966
  */
15247
- webDriverValue?: WebDriverValue;
16967
+ deepSerializedValue?: DeepSerializedValue;
15248
16968
  /**
15249
16969
  * Unique object identifier (for non-primitive values).
15250
16970
  */
@@ -15523,7 +17243,7 @@ export declare namespace Runtime {
15523
17243
  */
15524
17244
  uniqueId: string;
15525
17245
  /**
15526
- * Embedder-specific auxiliary data.
17246
+ * Embedder-specific auxiliary data likely matching {isDefault: boolean, type: 'default'|'isolated'|'worker', frameId: string}
15527
17247
  */
15528
17248
  auxData?: any;
15529
17249
  }
@@ -15688,6 +17408,7 @@ export declare namespace Runtime {
15688
17408
  silent?: boolean;
15689
17409
  /**
15690
17410
  * Whether the result is expected to be a JSON object which should be sent by value.
17411
+ * Can be overriden by `serializationOptions`.
15691
17412
  */
15692
17413
  returnByValue?: boolean;
15693
17414
  /**
@@ -15718,11 +17439,19 @@ export declare namespace Runtime {
15718
17439
  */
15719
17440
  throwOnSideEffect?: boolean;
15720
17441
  /**
15721
- * Whether the result should contain `webDriverValue`, serialized according to
15722
- * https://w3c.github.io/webdriver-bidi. This is mutually exclusive with `returnByValue`, but
15723
- * resulting `objectId` is still provided.
17442
+ * An alternative way to specify the execution context to call function on.
17443
+ * Compared to contextId that may be reused across processes, this is guaranteed to be
17444
+ * system-unique, so it can be used to prevent accidental function call
17445
+ * in context different than intended (e.g. as a result of navigation across process
17446
+ * boundaries).
17447
+ * This is mutually exclusive with `executionContextId`.
17448
+ */
17449
+ uniqueContextId?: string;
17450
+ /**
17451
+ * Specifies the result serialization. If provided, overrides
17452
+ * `generatePreview` and `returnByValue`.
15724
17453
  */
15725
- generateWebDriverValue?: boolean;
17454
+ serializationOptions?: SerializationOptions;
15726
17455
  }
15727
17456
  interface CallFunctionOnResponse extends ProtocolResponseWithError {
15728
17457
  /**
@@ -15842,9 +17571,10 @@ export declare namespace Runtime {
15842
17571
  */
15843
17572
  uniqueContextId?: string;
15844
17573
  /**
15845
- * Whether the result should be serialized according to https://w3c.github.io/webdriver-bidi.
17574
+ * Specifies the result serialization. If provided, overrides
17575
+ * `generatePreview` and `returnByValue`.
15846
17576
  */
15847
- generateWebDriverValue?: boolean;
17577
+ serializationOptions?: SerializationOptions;
15848
17578
  }
15849
17579
  interface EvaluateResponse extends ProtocolResponseWithError {
15850
17580
  /**
@@ -16148,6 +17878,10 @@ export declare namespace Runtime {
16148
17878
  * Id of the destroyed context
16149
17879
  */
16150
17880
  executionContextId: ExecutionContextId;
17881
+ /**
17882
+ * Unique Id of the destroyed context
17883
+ */
17884
+ executionContextUniqueId: string;
16151
17885
  }
16152
17886
  /**
16153
17887
  * Issued when object should be inspected (for example, as a result of inspect() command line API