@paulirish/trace_engine 0.0.51 → 0.0.53

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 (197) hide show
  1. package/.tmp/tsbuildinfo/tsconfig.tsbuildinfo +1 -1
  2. package/core/platform/DOMUtilities.d.ts +8 -0
  3. package/core/platform/DOMUtilities.js +14 -0
  4. package/core/platform/DOMUtilities.js.map +1 -1
  5. package/core/platform/StringUtilities.d.ts +1 -5
  6. package/core/platform/StringUtilities.js +4 -1
  7. package/core/platform/StringUtilities.js.map +1 -1
  8. package/core/platform/devtools_entrypoint-bundle-typescript-tsconfig.json +1 -1
  9. package/core/platform/platform-tsconfig.json +1 -1
  10. package/generated/protocol.d.ts +345 -44
  11. package/locales/af.json +11 -5
  12. package/locales/am.json +7 -1
  13. package/locales/ar.json +7 -1
  14. package/locales/as.json +7 -1
  15. package/locales/az.json +7 -1
  16. package/locales/be.json +7 -1
  17. package/locales/bg.json +7 -1
  18. package/locales/bn.json +7 -1
  19. package/locales/bs.json +7 -1
  20. package/locales/ca.json +7 -1
  21. package/locales/cs.json +7 -1
  22. package/locales/cy.json +7 -1
  23. package/locales/da.json +7 -1
  24. package/locales/de.json +7 -1
  25. package/locales/el.json +7 -1
  26. package/locales/en-GB.json +7 -1
  27. package/locales/en-US.json +52 -7
  28. package/locales/en-XL.json +52 -7
  29. package/locales/es-419.json +7 -1
  30. package/locales/es.json +7 -1
  31. package/locales/et.json +7 -1
  32. package/locales/eu.json +7 -1
  33. package/locales/fa.json +7 -1
  34. package/locales/fi.json +7 -1
  35. package/locales/fil.json +7 -1
  36. package/locales/fr-CA.json +7 -1
  37. package/locales/fr.json +7 -1
  38. package/locales/gl.json +7 -1
  39. package/locales/gu.json +7 -1
  40. package/locales/he.json +7 -1
  41. package/locales/hi.json +7 -1
  42. package/locales/hr.json +7 -1
  43. package/locales/hu.json +7 -1
  44. package/locales/hy.json +7 -1
  45. package/locales/id.json +7 -1
  46. package/locales/is.json +7 -1
  47. package/locales/it.json +7 -1
  48. package/locales/ja.json +7 -1
  49. package/locales/ka.json +7 -1
  50. package/locales/kk.json +7 -1
  51. package/locales/km.json +7 -1
  52. package/locales/kn.json +7 -1
  53. package/locales/ko.json +7 -1
  54. package/locales/ky.json +7 -1
  55. package/locales/lo.json +7 -1
  56. package/locales/lt.json +7 -1
  57. package/locales/lv.json +7 -1
  58. package/locales/mk.json +7 -1
  59. package/locales/ml.json +7 -1
  60. package/locales/mn.json +7 -1
  61. package/locales/mr.json +7 -1
  62. package/locales/ms.json +7 -1
  63. package/locales/my.json +7 -1
  64. package/locales/ne.json +7 -1
  65. package/locales/nl.json +7 -1
  66. package/locales/no.json +7 -1
  67. package/locales/or.json +7 -1
  68. package/locales/pa.json +7 -1
  69. package/locales/pl.json +7 -1
  70. package/locales/pt-PT.json +7 -1
  71. package/locales/pt.json +7 -1
  72. package/locales/ro.json +7 -1
  73. package/locales/ru.json +7 -1
  74. package/locales/si.json +7 -1
  75. package/locales/sk.json +7 -1
  76. package/locales/sl.json +7 -1
  77. package/locales/sq.json +7 -1
  78. package/locales/sr-Latn.json +7 -1
  79. package/locales/sr.json +7 -1
  80. package/locales/sv.json +7 -1
  81. package/locales/sw.json +7 -1
  82. package/locales/ta.json +7 -1
  83. package/locales/te.json +7 -1
  84. package/locales/th.json +7 -1
  85. package/locales/tr.json +7 -1
  86. package/locales/uk.json +7 -1
  87. package/locales/ur.json +7 -1
  88. package/locales/uz.json +7 -1
  89. package/locales/vi.json +7 -1
  90. package/locales/zh-HK.json +7 -1
  91. package/locales/zh-TW.json +7 -1
  92. package/locales/zh.json +7 -1
  93. package/locales/zu.json +7 -1
  94. package/models/cpu_profile/cpu_profile-tsconfig.json +1 -1
  95. package/models/cpu_profile/devtools_entrypoint-bundle-typescript-tsconfig.json +1 -1
  96. package/models/trace/LanternComputationData.js +3 -3
  97. package/models/trace/LanternComputationData.js.map +1 -1
  98. package/models/trace/Processor.d.ts +1 -3
  99. package/models/trace/Processor.js +1 -1
  100. package/models/trace/Processor.js.map +1 -1
  101. package/models/trace/TracingManager.js.map +1 -1
  102. package/models/trace/devtools_entrypoint-bundle-typescript-tsconfig.json +1 -1
  103. package/models/trace/extras/ScriptDuplication.d.ts +5 -2
  104. package/models/trace/extras/ScriptDuplication.js +4 -2
  105. package/models/trace/extras/ScriptDuplication.js.map +1 -1
  106. package/models/trace/extras/StackTraceForEvent.js +88 -47
  107. package/models/trace/extras/StackTraceForEvent.js.map +1 -1
  108. package/models/trace/extras/ThirdParties.d.ts +13 -12
  109. package/models/trace/extras/ThirdParties.js +50 -19
  110. package/models/trace/extras/ThirdParties.js.map +1 -1
  111. package/models/trace/extras/devtools_entrypoint-bundle-typescript-tsconfig.json +1 -1
  112. package/models/trace/extras/extras-tsconfig.json +1 -1
  113. package/models/trace/extras/extras.d.ts +98 -6
  114. package/models/trace/extras/extras.js +98 -6
  115. package/models/trace/handlers/AsyncJSCallsHandler.d.ts +5 -0
  116. package/models/trace/handlers/AsyncJSCallsHandler.js +12 -9
  117. package/models/trace/handlers/AsyncJSCallsHandler.js.map +1 -1
  118. package/models/trace/handlers/FramesHandler.js.map +1 -1
  119. package/models/trace/handlers/NetworkRequestsHandler.d.ts +1 -0
  120. package/models/trace/handlers/NetworkRequestsHandler.js +37 -23
  121. package/models/trace/handlers/NetworkRequestsHandler.js.map +1 -1
  122. package/models/trace/handlers/ScriptsHandler.d.ts +5 -1
  123. package/models/trace/handlers/ScriptsHandler.js +59 -22
  124. package/models/trace/handlers/ScriptsHandler.js.map +1 -1
  125. package/models/trace/handlers/WarningsHandler.js +14 -2
  126. package/models/trace/handlers/WarningsHandler.js.map +1 -1
  127. package/models/trace/handlers/devtools_entrypoint-bundle-typescript-tsconfig.json +1 -1
  128. package/models/trace/handlers/handlers-tsconfig.json +1 -1
  129. package/models/trace/handlers/helpers.js +12 -0
  130. package/models/trace/handlers/helpers.js.map +1 -1
  131. package/models/trace/handlers/types.d.ts +2 -6
  132. package/models/trace/handlers/types.js.map +1 -1
  133. package/models/trace/helpers/devtools_entrypoint-bundle-typescript-tsconfig.json +1 -1
  134. package/models/trace/helpers/helpers-tsconfig.json +1 -1
  135. package/models/trace/insights/CLSCulprits.d.ts +6 -1
  136. package/models/trace/insights/CLSCulprits.js +11 -2
  137. package/models/trace/insights/CLSCulprits.js.map +1 -1
  138. package/models/trace/insights/Cache.d.ts +0 -1
  139. package/models/trace/insights/Cache.js +8 -7
  140. package/models/trace/insights/Cache.js.map +1 -1
  141. package/models/trace/insights/Common.js +6 -0
  142. package/models/trace/insights/Common.js.map +1 -1
  143. package/models/trace/insights/DocumentLatency.d.ts +7 -3
  144. package/models/trace/insights/DocumentLatency.js +25 -8
  145. package/models/trace/insights/DocumentLatency.js.map +1 -1
  146. package/models/trace/insights/DuplicatedJavaScript.js +9 -3
  147. package/models/trace/insights/DuplicatedJavaScript.js.map +1 -1
  148. package/models/trace/insights/ImageDelivery.d.ts +0 -1
  149. package/models/trace/insights/ImageDelivery.js +1 -1
  150. package/models/trace/insights/ImageDelivery.js.map +1 -1
  151. package/models/trace/insights/LCPPhases.d.ts +1 -1
  152. package/models/trace/insights/LCPPhases.js +1 -1
  153. package/models/trace/insights/LCPPhases.js.map +1 -1
  154. package/models/trace/insights/LegacyJavaScript.d.ts +1 -1
  155. package/models/trace/insights/LegacyJavaScript.js +6 -3
  156. package/models/trace/insights/LegacyJavaScript.js.map +1 -1
  157. package/models/trace/insights/NetworkDependencyTree.d.ts +151 -3
  158. package/models/trace/insights/NetworkDependencyTree.js +648 -10
  159. package/models/trace/insights/NetworkDependencyTree.js.map +1 -1
  160. package/models/trace/insights/RenderBlocking.js +1 -1
  161. package/models/trace/insights/RenderBlocking.js.map +1 -1
  162. package/models/trace/insights/ThirdParties.d.ts +1 -1
  163. package/models/trace/insights/ThirdParties.js +7 -7
  164. package/models/trace/insights/ThirdParties.js.map +1 -1
  165. package/models/trace/insights/devtools_entrypoint-bundle-typescript-tsconfig.json +1 -1
  166. package/models/trace/insights/insights-tsconfig.json +1 -1
  167. package/models/trace/insights/types.d.ts +11 -0
  168. package/models/trace/insights/types.js.map +1 -1
  169. package/models/trace/lantern/core/core-tsconfig.json +1 -1
  170. package/models/trace/lantern/core/devtools_entrypoint-bundle-typescript-tsconfig.json +1 -1
  171. package/models/trace/lantern/devtools_entrypoint-bundle-typescript-tsconfig.json +1 -1
  172. package/models/trace/lantern/graph/devtools_entrypoint-bundle-typescript-tsconfig.json +1 -1
  173. package/models/trace/lantern/graph/graph-tsconfig.json +1 -1
  174. package/models/trace/lantern/lantern-tsconfig.json +1 -1
  175. package/models/trace/lantern/metrics/devtools_entrypoint-bundle-typescript-tsconfig.json +1 -1
  176. package/models/trace/lantern/metrics/metrics-tsconfig.json +1 -1
  177. package/models/trace/lantern/simulation/devtools_entrypoint-bundle-typescript-tsconfig.json +1 -1
  178. package/models/trace/lantern/simulation/simulation-tsconfig.json +1 -1
  179. package/models/trace/lantern/types/Lantern.d.ts +4 -7
  180. package/models/trace/lantern/types/Lantern.js +1 -0
  181. package/models/trace/lantern/types/Lantern.js.map +1 -1
  182. package/models/trace/lantern/types/devtools_entrypoint-bundle-typescript-tsconfig.json +1 -1
  183. package/models/trace/lantern/types/types-tsconfig.json +1 -1
  184. package/models/trace/trace-tsconfig.json +1 -1
  185. package/models/trace/types/Configuration.d.ts +2 -0
  186. package/models/trace/types/Configuration.js.map +1 -1
  187. package/models/trace/types/Extensions.d.ts +1 -3
  188. package/models/trace/types/Extensions.js.map +1 -1
  189. package/models/trace/types/File.d.ts +2 -1
  190. package/models/trace/types/File.js.map +1 -1
  191. package/models/trace/types/TraceEvents.d.ts +51 -26
  192. package/models/trace/types/TraceEvents.js +6 -0
  193. package/models/trace/types/TraceEvents.js.map +1 -1
  194. package/models/trace/types/devtools_entrypoint-bundle-typescript-tsconfig.json +1 -1
  195. package/models/trace/types/types-tsconfig.json +1 -1
  196. package/package.json +1 -1
  197. package/test/test-trace-engine.mjs +2 -2
@@ -18,7 +18,7 @@
18
18
  "noImplicitOverride": true,
19
19
  "noImplicitReturns": true,
20
20
  "noUnusedLocals": false,
21
- "noUnusedParameters": true,
21
+ "noUnusedParameters": false,
22
22
  "outDir": ".",
23
23
  "rootDir": "../../../../../../front_end/core/platform",
24
24
  "skipLibCheck": true,
@@ -18,7 +18,7 @@
18
18
  "noImplicitOverride": true,
19
19
  "noImplicitReturns": true,
20
20
  "noUnusedLocals": false,
21
- "noUnusedParameters": true,
21
+ "noUnusedParameters": false,
22
22
  "outDir": ".",
23
23
  "rootDir": "../../../../../../front_end/core/platform",
24
24
  "skipLibCheck": true,
@@ -1300,6 +1300,21 @@ export declare namespace Audits {
1300
1300
  */
1301
1301
  propertyValue?: string;
1302
1302
  }
1303
+ const enum UserReidentificationIssueType {
1304
+ BlockedFrameNavigation = "BlockedFrameNavigation",
1305
+ BlockedSubresource = "BlockedSubresource"
1306
+ }
1307
+ /**
1308
+ * This issue warns about uses of APIs that may be considered misuse to
1309
+ * re-identify users.
1310
+ */
1311
+ interface UserReidentificationIssueDetails {
1312
+ type: UserReidentificationIssueType;
1313
+ /**
1314
+ * Applies to BlockedFrameNavigation and BlockedSubresource issue types.
1315
+ */
1316
+ request?: AffectedRequest;
1317
+ }
1303
1318
  /**
1304
1319
  * A unique identifier for the type of issue. Each type may use one of the
1305
1320
  * optional fields in InspectorIssueDetails to convey more specific
@@ -1329,7 +1344,8 @@ export declare namespace Audits {
1329
1344
  PropertyRuleIssue = "PropertyRuleIssue",
1330
1345
  SharedDictionaryIssue = "SharedDictionaryIssue",
1331
1346
  SelectElementAccessibilityIssue = "SelectElementAccessibilityIssue",
1332
- SRIMessageSignatureIssue = "SRIMessageSignatureIssue"
1347
+ SRIMessageSignatureIssue = "SRIMessageSignatureIssue",
1348
+ UserReidentificationIssue = "UserReidentificationIssue"
1333
1349
  }
1334
1350
  /**
1335
1351
  * This struct holds a list of optional fields with additional information
@@ -1361,6 +1377,7 @@ export declare namespace Audits {
1361
1377
  sharedDictionaryIssueDetails?: SharedDictionaryIssueDetails;
1362
1378
  selectElementAccessibilityIssueDetails?: SelectElementAccessibilityIssueDetails;
1363
1379
  sriMessageSignatureIssueDetails?: SRIMessageSignatureIssueDetails;
1380
+ userReidentificationIssueDetails?: UserReidentificationIssueDetails;
1364
1381
  }
1365
1382
  /**
1366
1383
  * A unique id for a DevTools inspector issue. Allows other entities (e.g.
@@ -6162,6 +6179,11 @@ export declare namespace Emulation {
6162
6179
  source: PressureSource;
6163
6180
  state: PressureState;
6164
6181
  }
6182
+ interface SetPressureDataOverrideRequest {
6183
+ source: PressureSource;
6184
+ state: PressureState;
6185
+ ownContributionEstimate?: number;
6186
+ }
6165
6187
  interface SetIdleOverrideRequest {
6166
6188
  /**
6167
6189
  * Mock isUserActive
@@ -6284,6 +6306,13 @@ export declare namespace Emulation {
6284
6306
  */
6285
6307
  enabled: boolean;
6286
6308
  }
6309
+ interface SetSmallViewportHeightDifferenceOverrideRequest {
6310
+ /**
6311
+ * This will cause an element of size 100svh to be `difference` pixels smaller than an element
6312
+ * of size 100lvh.
6313
+ */
6314
+ difference: integer;
6315
+ }
6287
6316
  }
6288
6317
  /**
6289
6318
  * This domain provides experimental commands only supported in headless mode.
@@ -7811,6 +7840,7 @@ export declare namespace Network {
7811
7840
  Ping = "Ping",
7812
7841
  CSPViolationReport = "CSPViolationReport",
7813
7842
  Preflight = "Preflight",
7843
+ FedCM = "FedCM",
7814
7844
  Other = "Other"
7815
7845
  }
7816
7846
  /**
@@ -8200,6 +8230,7 @@ export declare namespace Network {
8200
8230
  MixedContent = "mixed-content",
8201
8231
  Origin = "origin",
8202
8232
  Inspector = "inspector",
8233
+ Integrity = "integrity",
8203
8234
  SubresourceFilter = "subresource-filter",
8204
8235
  ContentType = "content-type",
8205
8236
  CoepFrameResourceNeedsCoepHeader = "coep-frame-resource-needs-coep-header",
@@ -9064,6 +9095,39 @@ export declare namespace Network {
9064
9095
  receiveBufferSize?: number;
9065
9096
  dnsQueryType?: DirectSocketDnsQueryType;
9066
9097
  }
9098
+ interface DirectUDPSocketOptions {
9099
+ remoteAddr?: string;
9100
+ /**
9101
+ * Unsigned int 16.
9102
+ */
9103
+ remotePort?: integer;
9104
+ localAddr?: string;
9105
+ /**
9106
+ * Unsigned int 16.
9107
+ */
9108
+ localPort?: integer;
9109
+ dnsQueryType?: DirectSocketDnsQueryType;
9110
+ /**
9111
+ * Expected to be unsigned integer.
9112
+ */
9113
+ sendBufferSize?: number;
9114
+ /**
9115
+ * Expected to be unsigned integer.
9116
+ */
9117
+ receiveBufferSize?: number;
9118
+ }
9119
+ interface DirectUDPMessage {
9120
+ data: binary;
9121
+ /**
9122
+ * Null for connected mode.
9123
+ */
9124
+ remoteAddr?: string;
9125
+ /**
9126
+ * Null for connected mode.
9127
+ * Expected to be unsigned integer.
9128
+ */
9129
+ remotePort?: integer;
9130
+ }
9067
9131
  const enum PrivateNetworkRequestPolicy {
9068
9132
  Allow = "Allow",
9069
9133
  BlockFromInsecureToMorePrivate = "BlockFromInsecureToMorePrivate",
@@ -9344,6 +9408,10 @@ export declare namespace Network {
9344
9408
  * Longest post body size (in bytes) that would be included in requestWillBeSent notification
9345
9409
  */
9346
9410
  maxPostDataSize?: integer;
9411
+ /**
9412
+ * Whether DirectSocket chunk send/receive events should be reported.
9413
+ */
9414
+ reportDirectSocketTraffic?: boolean;
9347
9415
  }
9348
9416
  interface GetAllCookiesResponse extends ProtocolResponseWithError {
9349
9417
  /**
@@ -10141,6 +10209,79 @@ export declare namespace Network {
10141
10209
  identifier: RequestId;
10142
10210
  timestamp: MonotonicTime;
10143
10211
  }
10212
+ /**
10213
+ * Fired when data is sent to tcp direct socket stream.
10214
+ */
10215
+ interface DirectTCPSocketChunkSentEvent {
10216
+ identifier: RequestId;
10217
+ data: binary;
10218
+ timestamp: MonotonicTime;
10219
+ }
10220
+ /**
10221
+ * Fired when data is received from tcp direct socket stream.
10222
+ */
10223
+ interface DirectTCPSocketChunkReceivedEvent {
10224
+ identifier: RequestId;
10225
+ data: binary;
10226
+ timestamp: MonotonicTime;
10227
+ }
10228
+ /**
10229
+ * Fired upon direct_socket.UDPSocket creation.
10230
+ */
10231
+ interface DirectUDPSocketCreatedEvent {
10232
+ identifier: RequestId;
10233
+ options: DirectUDPSocketOptions;
10234
+ timestamp: MonotonicTime;
10235
+ initiator?: Initiator;
10236
+ }
10237
+ /**
10238
+ * Fired when direct_socket.UDPSocket connection is opened.
10239
+ */
10240
+ interface DirectUDPSocketOpenedEvent {
10241
+ identifier: RequestId;
10242
+ localAddr: string;
10243
+ /**
10244
+ * Expected to be unsigned integer.
10245
+ */
10246
+ localPort: integer;
10247
+ timestamp: MonotonicTime;
10248
+ remoteAddr?: string;
10249
+ /**
10250
+ * Expected to be unsigned integer.
10251
+ */
10252
+ remotePort?: integer;
10253
+ }
10254
+ /**
10255
+ * Fired when direct_socket.UDPSocket is aborted.
10256
+ */
10257
+ interface DirectUDPSocketAbortedEvent {
10258
+ identifier: RequestId;
10259
+ errorMessage: string;
10260
+ timestamp: MonotonicTime;
10261
+ }
10262
+ /**
10263
+ * Fired when direct_socket.UDPSocket is closed.
10264
+ */
10265
+ interface DirectUDPSocketClosedEvent {
10266
+ identifier: RequestId;
10267
+ timestamp: MonotonicTime;
10268
+ }
10269
+ /**
10270
+ * Fired when message is sent to udp direct socket stream.
10271
+ */
10272
+ interface DirectUDPSocketChunkSentEvent {
10273
+ identifier: RequestId;
10274
+ message: DirectUDPMessage;
10275
+ timestamp: MonotonicTime;
10276
+ }
10277
+ /**
10278
+ * Fired when message is received from udp direct socket stream.
10279
+ */
10280
+ interface DirectUDPSocketChunkReceivedEvent {
10281
+ identifier: RequestId;
10282
+ message: DirectUDPMessage;
10283
+ timestamp: MonotonicTime;
10284
+ }
10144
10285
  /**
10145
10286
  * Fired when additional information about a requestWillBeSent event is available from the
10146
10287
  * network stack. Not every requestWillBeSent event will have an additional
@@ -11143,6 +11284,7 @@ export declare namespace Page {
11143
11284
  /**
11144
11285
  * All Permissions Policy features. This enum should match the one defined
11145
11286
  * in services/network/public/cpp/permissions_policy/permissions_policy_features.json5.
11287
+ * LINT_SKIP.IfChange(PermissionsPolicyFeature)
11146
11288
  */
11147
11289
  const enum PermissionsPolicyFeature {
11148
11290
  Accelerometer = "accelerometer",
@@ -11209,10 +11351,12 @@ export declare namespace Page {
11209
11351
  KeyboardMap = "keyboard-map",
11210
11352
  LanguageDetector = "language-detector",
11211
11353
  LocalFonts = "local-fonts",
11354
+ LocalNetworkAccess = "local-network-access",
11212
11355
  Magnetometer = "magnetometer",
11213
11356
  MediaPlaybackWhileNotVisible = "media-playback-while-not-visible",
11214
11357
  Microphone = "microphone",
11215
11358
  Midi = "midi",
11359
+ OnDeviceSpeechRecognition = "on-device-speech-recognition",
11216
11360
  OtpCredentials = "otp-credentials",
11217
11361
  Payment = "payment",
11218
11362
  PictureInPicture = "picture-in-picture",
@@ -11222,6 +11366,7 @@ export declare namespace Page {
11222
11366
  PrivateStateTokenRedemption = "private-state-token-redemption",
11223
11367
  PublickeyCredentialsCreate = "publickey-credentials-create",
11224
11368
  PublickeyCredentialsGet = "publickey-credentials-get",
11369
+ RecordAdAuctionEvents = "record-ad-auction-events",
11225
11370
  Rewriter = "rewriter",
11226
11371
  RunAdAuction = "run-ad-auction",
11227
11372
  ScreenWakeLock = "screen-wake-lock",
@@ -12068,7 +12213,8 @@ export declare namespace Page {
12068
12213
  RequestedByWebViewClient = "RequestedByWebViewClient",
12069
12214
  PostMessageByWebViewClient = "PostMessageByWebViewClient",
12070
12215
  CacheControlNoStoreDeviceBoundSessionTerminated = "CacheControlNoStoreDeviceBoundSessionTerminated",
12071
- CacheLimitPruned = "CacheLimitPruned"
12216
+ CacheLimitPrunedOnModerateMemoryPressure = "CacheLimitPrunedOnModerateMemoryPressure",
12217
+ CacheLimitPrunedOnCriticalMemoryPressure = "CacheLimitPrunedOnCriticalMemoryPressure"
12072
12218
  }
12073
12219
  /**
12074
12220
  * Types of not restored reasons for back-forward cache.
@@ -12286,15 +12432,17 @@ export declare namespace Page {
12286
12432
  */
12287
12433
  recommendedId?: string;
12288
12434
  }
12289
- interface GetAdScriptIdRequest {
12435
+ interface GetAdScriptAncestryIdsRequest {
12290
12436
  frameId: FrameId;
12291
12437
  }
12292
- interface GetAdScriptIdResponse extends ProtocolResponseWithError {
12438
+ interface GetAdScriptAncestryIdsResponse extends ProtocolResponseWithError {
12293
12439
  /**
12294
- * Identifies the bottom-most script which caused the frame to be labelled
12295
- * as an ad. Only sent if frame is labelled as an ad and id is available.
12440
+ * The ancestry chain of ad script identifiers leading to this frame's
12441
+ * creation, ordered from the most immediate script (in the frame creation
12442
+ * stack) to more distant ancestors (that created the immediately preceding
12443
+ * script). Only sent if frame is labelled as an ad and ids are available.
12296
12444
  */
12297
- adScriptId?: AdScriptId;
12445
+ adScriptAncestryIds: AdScriptId[];
12298
12446
  }
12299
12447
  interface GetFrameTreeResponse extends ProtocolResponseWithError {
12300
12448
  /**
@@ -13060,6 +13208,10 @@ export declare namespace Page {
13060
13208
  * closed.
13061
13209
  */
13062
13210
  interface JavascriptDialogClosedEvent {
13211
+ /**
13212
+ * Frame id.
13213
+ */
13214
+ frameId: FrameId;
13063
13215
  /**
13064
13216
  * Whether dialog was confirmed.
13065
13217
  */
@@ -13078,6 +13230,10 @@ export declare namespace Page {
13078
13230
  * Frame url.
13079
13231
  */
13080
13232
  url: string;
13233
+ /**
13234
+ * Frame id.
13235
+ */
13236
+ frameId: FrameId;
13081
13237
  /**
13082
13238
  * Message that will be displayed by the dialog.
13083
13239
  */
@@ -13892,6 +14048,28 @@ export declare namespace Storage {
13892
14048
  */
13893
14049
  bytesUsed: integer;
13894
14050
  }
14051
+ /**
14052
+ * Represents a dictionary object passed in as privateAggregationConfig to
14053
+ * run or selectURL.
14054
+ */
14055
+ interface SharedStoragePrivateAggregationConfig {
14056
+ /**
14057
+ * The chosen aggregation service deployment.
14058
+ */
14059
+ aggregationCoordinatorOrigin?: string;
14060
+ /**
14061
+ * The context ID provided.
14062
+ */
14063
+ contextId?: string;
14064
+ /**
14065
+ * Configures the maximum size allowed for filtering IDs.
14066
+ */
14067
+ filteringIdMaxBytes: integer;
14068
+ /**
14069
+ * The limit on the number of contributions in the final report.
14070
+ */
14071
+ maxContributions?: integer;
14072
+ }
13895
14073
  /**
13896
14074
  * Pair of reporting metadata details for a candidate URL for `selectURL()`.
13897
14075
  */
@@ -13919,57 +14097,90 @@ export declare namespace Storage {
13919
14097
  interface SharedStorageAccessParams {
13920
14098
  /**
13921
14099
  * Spec of the module script URL.
13922
- * Present only for SharedStorageAccessType.documentAddModule.
14100
+ * Present only for SharedStorageAccessMethods: addModule and
14101
+ * createWorklet.
13923
14102
  */
13924
14103
  scriptSourceUrl?: string;
14104
+ /**
14105
+ * String denoting "context-origin", "script-origin", or a custom
14106
+ * origin to be used as the worklet's data origin.
14107
+ * Present only for SharedStorageAccessMethod: createWorklet.
14108
+ */
14109
+ dataOrigin?: string;
13925
14110
  /**
13926
14111
  * Name of the registered operation to be run.
13927
- * Present only for SharedStorageAccessType.documentRun and
13928
- * SharedStorageAccessType.documentSelectURL.
14112
+ * Present only for SharedStorageAccessMethods: run and selectURL.
13929
14113
  */
13930
14114
  operationName?: string;
14115
+ /**
14116
+ * Whether or not to keep the worket alive for future run or selectURL
14117
+ * calls.
14118
+ * Present only for SharedStorageAccessMethods: run and selectURL.
14119
+ */
14120
+ keepAlive?: boolean;
14121
+ /**
14122
+ * Configures the private aggregation options.
14123
+ * Present only for SharedStorageAccessMethods: run and selectURL.
14124
+ */
14125
+ privateAggregationConfig?: SharedStoragePrivateAggregationConfig;
13931
14126
  /**
13932
14127
  * The operation's serialized data in bytes (converted to a string).
13933
- * Present only for SharedStorageAccessType.documentRun and
13934
- * SharedStorageAccessType.documentSelectURL.
14128
+ * Present only for SharedStorageAccessMethods: run and selectURL.
14129
+ * TODO(crbug.com/401011862): Consider updating this parameter to binary.
13935
14130
  */
13936
14131
  serializedData?: string;
13937
14132
  /**
13938
14133
  * Array of candidate URLs' specs, along with any associated metadata.
13939
- * Present only for SharedStorageAccessType.documentSelectURL.
14134
+ * Present only for SharedStorageAccessMethod: selectURL.
13940
14135
  */
13941
14136
  urlsWithMetadata?: SharedStorageUrlWithMetadata[];
14137
+ /**
14138
+ * Spec of the URN:UUID generated for a selectURL call.
14139
+ * Present only for SharedStorageAccessMethod: selectURL.
14140
+ */
14141
+ urnUuid?: string;
13942
14142
  /**
13943
14143
  * Key for a specific entry in an origin's shared storage.
13944
- * Present only for SharedStorageAccessType.documentSet,
13945
- * SharedStorageAccessType.documentAppend,
13946
- * SharedStorageAccessType.documentDelete,
13947
- * SharedStorageAccessType.workletSet,
13948
- * SharedStorageAccessType.workletAppend,
13949
- * SharedStorageAccessType.workletDelete,
13950
- * SharedStorageAccessType.workletGet,
13951
- * SharedStorageAccessType.headerSet,
13952
- * SharedStorageAccessType.headerAppend, and
13953
- * SharedStorageAccessType.headerDelete.
14144
+ * Present only for SharedStorageAccessMethods: set, append, delete, and
14145
+ * get.
13954
14146
  */
13955
14147
  key?: string;
13956
14148
  /**
13957
14149
  * Value for a specific entry in an origin's shared storage.
13958
- * Present only for SharedStorageAccessType.documentSet,
13959
- * SharedStorageAccessType.documentAppend,
13960
- * SharedStorageAccessType.workletSet,
13961
- * SharedStorageAccessType.workletAppend,
13962
- * SharedStorageAccessType.headerSet, and
13963
- * SharedStorageAccessType.headerAppend.
14150
+ * Present only for SharedStorageAccessMethods: set and append.
13964
14151
  */
13965
14152
  value?: string;
13966
14153
  /**
13967
14154
  * Whether or not to set an entry for a key if that key is already present.
13968
- * Present only for SharedStorageAccessType.documentSet,
13969
- * SharedStorageAccessType.workletSet, and
13970
- * SharedStorageAccessType.headerSet.
14155
+ * Present only for SharedStorageAccessMethod: set.
13971
14156
  */
13972
14157
  ignoreIfPresent?: boolean;
14158
+ /**
14159
+ * If the method is called on a worklet, or as part of
14160
+ * a worklet script, it will have an ID for the associated worklet.
14161
+ * Present only for SharedStorageAccessMethods: addModule, createWorklet,
14162
+ * run, selectURL, and any other SharedStorageAccessMethod when the
14163
+ * SharedStorageAccessScope is worklet.
14164
+ */
14165
+ workletId?: string;
14166
+ /**
14167
+ * Name of the lock to be acquired, if present.
14168
+ * Optionally present only for SharedStorageAccessMethods: batchUpdate,
14169
+ * set, append, delete, and clear.
14170
+ */
14171
+ withLock?: string;
14172
+ /**
14173
+ * If the method has been called as part of a batchUpdate, then this
14174
+ * number identifies the batch to which it belongs.
14175
+ * Optionally present only for SharedStorageAccessMethods:
14176
+ * batchUpdate (required), set, append, delete, and clear.
14177
+ */
14178
+ batchUpdateId?: string;
14179
+ /**
14180
+ * Number of modifier methods sent in batch.
14181
+ * Present only for SharedStorageAccessMethod: batchUpdate.
14182
+ */
14183
+ batchSize?: integer;
13973
14184
  }
13974
14185
  const enum StorageBucketsDurability {
13975
14186
  Relaxed = "relaxed",
@@ -14029,14 +14240,6 @@ export declare namespace Storage {
14029
14240
  */
14030
14241
  ends: integer[];
14031
14242
  }
14032
- interface AttributionReportingTriggerSpec {
14033
- /**
14034
- * number instead of integer because not all uint32 can be represented by
14035
- * int
14036
- */
14037
- triggerData: number[];
14038
- eventReportWindows: AttributionReportingEventReportWindows;
14039
- }
14040
14243
  const enum AttributionReportingTriggerDataMatching {
14041
14244
  Exact = "exact",
14042
14245
  Modulus = "modulus"
@@ -14069,13 +14272,22 @@ export declare namespace Storage {
14069
14272
  limit: number;
14070
14273
  maxEventStates: number;
14071
14274
  }
14275
+ interface AttributionReportingNamedBudgetDef {
14276
+ name: string;
14277
+ budget: integer;
14278
+ }
14072
14279
  interface AttributionReportingSourceRegistration {
14073
14280
  time: Network.TimeSinceEpoch;
14074
14281
  /**
14075
14282
  * duration in seconds
14076
14283
  */
14077
14284
  expiry: integer;
14078
- triggerSpecs: AttributionReportingTriggerSpec[];
14285
+ /**
14286
+ * number instead of integer because not all uint32 can be represented by
14287
+ * int
14288
+ */
14289
+ triggerData: number[];
14290
+ eventReportWindows: AttributionReportingEventReportWindows;
14079
14291
  /**
14080
14292
  * duration in seconds
14081
14293
  */
@@ -14094,6 +14306,9 @@ export declare namespace Storage {
14094
14306
  aggregatableDebugReportingConfig: AttributionReportingAggregatableDebugReportingConfig;
14095
14307
  scopesData?: AttributionScopesData;
14096
14308
  maxEventLevelReports: integer;
14309
+ namedBudgets: AttributionReportingNamedBudgetDef[];
14310
+ debugReporting: boolean;
14311
+ eventLevelEpsilon: number;
14097
14312
  }
14098
14313
  const enum AttributionReportingSourceRegistrationResult {
14099
14314
  Success = "success",
@@ -14145,6 +14360,10 @@ export declare namespace Storage {
14145
14360
  dedupKey?: UnsignedInt64AsBase10;
14146
14361
  filters: AttributionReportingFilterPair;
14147
14362
  }
14363
+ interface AttributionReportingNamedBudgetCandidate {
14364
+ name?: string;
14365
+ filters: AttributionReportingFilterPair;
14366
+ }
14148
14367
  interface AttributionReportingTriggerRegistration {
14149
14368
  filters: AttributionReportingFilterPair;
14150
14369
  debugKey?: UnsignedInt64AsBase10;
@@ -14159,6 +14378,7 @@ export declare namespace Storage {
14159
14378
  triggerContextId?: string;
14160
14379
  aggregatableDebugReportingConfig: AttributionReportingAggregatableDebugReportingConfig;
14161
14380
  scopes: string[];
14381
+ namedBudgets: AttributionReportingNamedBudgetCandidate[];
14162
14382
  }
14163
14383
  const enum AttributionReportingEventLevelResult {
14164
14384
  Success = "success",
@@ -14198,6 +14418,12 @@ export declare namespace Storage {
14198
14418
  ReportWindowPassed = "reportWindowPassed",
14199
14419
  ExcessiveReports = "excessiveReports"
14200
14420
  }
14421
+ const enum AttributionReportingReportResult {
14422
+ Sent = "sent",
14423
+ Prohibited = "prohibited",
14424
+ FailedToAssemble = "failedToAssemble",
14425
+ Expired = "expired"
14426
+ }
14201
14427
  /**
14202
14428
  * A single Related Website Set object.
14203
14429
  */
@@ -14468,6 +14694,11 @@ export declare namespace Storage {
14468
14694
  */
14469
14695
  matchedUrls: string[];
14470
14696
  }
14697
+ interface SetProtectedAudienceKAnonymityRequest {
14698
+ owner: string;
14699
+ name: string;
14700
+ hashes: binary[];
14701
+ }
14471
14702
  /**
14472
14703
  * A cache's contents have been modified.
14473
14704
  */
@@ -14655,6 +14886,17 @@ export declare namespace Storage {
14655
14886
  eventLevel: AttributionReportingEventLevelResult;
14656
14887
  aggregatable: AttributionReportingAggregatableResult;
14657
14888
  }
14889
+ interface AttributionReportingReportSentEvent {
14890
+ url: string;
14891
+ body: any;
14892
+ result: AttributionReportingReportResult;
14893
+ /**
14894
+ * If result is `sent`, populated with net/HTTP status.
14895
+ */
14896
+ netError?: integer;
14897
+ netErrorName?: string;
14898
+ httpStatusCode?: integer;
14899
+ }
14658
14900
  }
14659
14901
  /**
14660
14902
  * The SystemInfo domain defines methods and events for querying low-level system information.
@@ -16558,7 +16800,6 @@ export declare namespace Preload {
16558
16800
  InvalidSchemeRedirect = "InvalidSchemeRedirect",
16559
16801
  InvalidSchemeNavigation = "InvalidSchemeNavigation",
16560
16802
  NavigationRequestBlockedByCsp = "NavigationRequestBlockedByCsp",
16561
- MainFrameNavigation = "MainFrameNavigation",
16562
16803
  MojoBinderPolicy = "MojoBinderPolicy",
16563
16804
  RendererProcessCrashed = "RendererProcessCrashed",
16564
16805
  RendererProcessKilled = "RendererProcessKilled",
@@ -16955,6 +17196,30 @@ export declare namespace BluetoothEmulation {
16955
17196
  Connection = "connection",
16956
17197
  Discovery = "discovery"
16957
17198
  }
17199
+ /**
17200
+ * Indicates the various types of characteristic write.
17201
+ */
17202
+ const enum CharacteristicWriteType {
17203
+ WriteDefaultDeprecated = "write-default-deprecated",
17204
+ WriteWithResponse = "write-with-response",
17205
+ WriteWithoutResponse = "write-without-response"
17206
+ }
17207
+ /**
17208
+ * Indicates the various types of characteristic operation.
17209
+ */
17210
+ const enum CharacteristicOperationType {
17211
+ Read = "read",
17212
+ Write = "write",
17213
+ SubscribeToNotifications = "subscribe-to-notifications",
17214
+ UnsubscribeFromNotifications = "unsubscribe-from-notifications"
17215
+ }
17216
+ /**
17217
+ * Indicates the various types of descriptor operation.
17218
+ */
17219
+ const enum DescriptorOperationType {
17220
+ Read = "read",
17221
+ Write = "write"
17222
+ }
16958
17223
  /**
16959
17224
  * Stores the manufacturer data
16960
17225
  */
@@ -17042,6 +17307,18 @@ export declare namespace BluetoothEmulation {
17042
17307
  type: GATTOperationType;
17043
17308
  code: integer;
17044
17309
  }
17310
+ interface SimulateCharacteristicOperationResponseRequest {
17311
+ characteristicId: string;
17312
+ type: CharacteristicOperationType;
17313
+ code: integer;
17314
+ data?: binary;
17315
+ }
17316
+ interface SimulateDescriptorOperationResponseRequest {
17317
+ descriptorId: string;
17318
+ type: DescriptorOperationType;
17319
+ code: integer;
17320
+ data?: binary;
17321
+ }
17045
17322
  interface AddServiceRequest {
17046
17323
  address: string;
17047
17324
  serviceUuid: string;
@@ -17082,6 +17359,9 @@ export declare namespace BluetoothEmulation {
17082
17359
  interface RemoveDescriptorRequest {
17083
17360
  descriptorId: string;
17084
17361
  }
17362
+ interface SimulateGATTDisconnectionRequest {
17363
+ address: string;
17364
+ }
17085
17365
  /**
17086
17366
  * Event for when a GATT operation of |type| to the peripheral with |address|
17087
17367
  * happened.
@@ -17090,6 +17370,27 @@ export declare namespace BluetoothEmulation {
17090
17370
  address: string;
17091
17371
  type: GATTOperationType;
17092
17372
  }
17373
+ /**
17374
+ * Event for when a characteristic operation of |type| to the characteristic
17375
+ * respresented by |characteristicId| happened. |data| and |writeType| is
17376
+ * expected to exist when |type| is write.
17377
+ */
17378
+ interface CharacteristicOperationReceivedEvent {
17379
+ characteristicId: string;
17380
+ type: CharacteristicOperationType;
17381
+ data?: binary;
17382
+ writeType?: CharacteristicWriteType;
17383
+ }
17384
+ /**
17385
+ * Event for when a descriptor operation of |type| to the descriptor
17386
+ * respresented by |descriptorId| happened. |data| is expected to exist when
17387
+ * |type| is write.
17388
+ */
17389
+ interface DescriptorOperationReceivedEvent {
17390
+ descriptorId: string;
17391
+ type: DescriptorOperationType;
17392
+ data?: binary;
17393
+ }
17093
17394
  }
17094
17395
  /**
17095
17396
  * Debugger domain exposes JavaScript debugging capabilities. It allows setting and removing
@@ -17874,7 +18175,7 @@ export declare namespace Debugger {
17874
18175
  */
17875
18176
  hash: string;
17876
18177
  /**
17877
- * For Wasm modules, the content of the `build_id` custom section.
18178
+ * For Wasm modules, the content of the `build_id` custom section. For JavaScript the `debugId` magic comment.
17878
18179
  */
17879
18180
  buildId: string;
17880
18181
  /**
@@ -17952,7 +18253,7 @@ export declare namespace Debugger {
17952
18253
  */
17953
18254
  hash: string;
17954
18255
  /**
17955
- * For Wasm modules, the content of the `build_id` custom section.
18256
+ * For Wasm modules, the content of the `build_id` custom section. For JavaScript the `debugId` magic comment.
17956
18257
  */
17957
18258
  buildId: string;
17958
18259
  /**