devtools-protocol 0.0.1704034 → 0.0.1704684

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.
package/README.md CHANGED
@@ -9,3 +9,23 @@ Use the [protocol viewer](https://chromedevtools.github.io/devtools-protocol/) f
9
9
  TypeScript definitions for the protocol's types are available in ['types/protocol.d.ts'](https://github.com/ChromeDevTools/devtools-protocol/tree/master/types). Mappings from Commands and events to these types are available in either generated `DomainApi` style in [`types/protocol-proxy-api.d.ts`](https://github.com/ChromeDevTools/devtools-protocol/blob/master/types/protocol-proxy-api.d.ts) or in simple name-to-type-interface style in [`types/protocol-mapping.d.ts`](https://github.com/ChromeDevTools/devtools-protocol/blob/master/types/protocol-mapping.d.ts).
10
10
 
11
11
  Also, this repo is published as the [`devtools-protocol`](https://www.npmjs.com/package/devtools-protocol) npm module.
12
+
13
+ ## Development
14
+
15
+ The `.pdl` files, the `json/` files and the TypeScript definitions in `types/`
16
+ are all generated by [`scripts/update-to-latest.sh`](scripts/update-to-latest.sh),
17
+ which runs daily. Do not edit them by hand.
18
+
19
+ The TypeScript generator itself lives in Chromium, at
20
+ [`//third_party/blink/public/devtools_protocol/scripts/protocol_dts_generator.ts`](https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/public/devtools_protocol/scripts/protocol_dts_generator.ts),
21
+ so that Chromium and this repo share a single source of truth. It is fetched
22
+ into `tmp/chromium/` by the sparse checkout in `update-to-latest.sh`. Changes to
23
+ the generator should be made in Chromium.
24
+
25
+ To regenerate `types/` against an existing local Chromium checkout:
26
+
27
+ ```sh
28
+ cd scripts
29
+ CHROMIUM_PROTOCOL_SCRIPTS_DIR=/path/to/src/third_party/blink/public/devtools_protocol/scripts \
30
+ npm run build-protocol-dts
31
+ ```
@@ -26205,6 +26205,12 @@
26205
26205
  "name": "status",
26206
26206
  "$ref": "PreloadingStatus"
26207
26207
  },
26208
+ {
26209
+ "name": "effectiveAction",
26210
+ "description": "The action currently performed by this attempt. This differs from\n`key.action` after a prerender-until-script attempt is upgraded in place\nto a full prerender.",
26211
+ "optional": true,
26212
+ "$ref": "SpeculationAction"
26213
+ },
26208
26214
  {
26209
26215
  "name": "prerenderStatus",
26210
26216
  "optional": true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "devtools-protocol",
3
- "version": "0.0.1704034",
3
+ "version": "0.0.1704684",
4
4
  "description": "The Chrome DevTools Protocol JSON",
5
5
  "repository": "https://github.com/ChromeDevTools/devtools-protocol",
6
6
  "author": "The Chromium Authors",
@@ -287,6 +287,10 @@ experimental domain Preload
287
287
  PreloadingAttemptKey key
288
288
  PreloadPipelineId pipelineId
289
289
  PreloadingStatus status
290
+ # The action currently performed by this attempt. This differs from
291
+ # `key.action` after a prerender-until-script attempt is upgraded in place
292
+ # to a full prerender.
293
+ optional SpeculationAction effectiveAction
290
294
  optional PrerenderFinalStatus prerenderStatus
291
295
  # This is used to give users more information about the name of Mojo interface
292
296
  # that is incompatible with prerender and has caused the cancellation of the attempt.
@@ -1,12 +1,12 @@
1
- // Copyright (c) 2026 The Chromium Authors. All rights reserved.
1
+ // Copyright 2026 The Chromium Authors
2
2
  // Use of this source code is governed by a BSD-style license that can be
3
3
  // found in the LICENSE file.
4
4
 
5
5
  /**********************************************************************
6
- * Auto-generated by protocol-dts-generator.ts. Do not edit manually. *
6
+ * Auto-generated by protocol_dts_generator.ts. Do not edit manually. *
7
7
  **********************************************************************/
8
8
 
9
- import Protocol from './protocol'
9
+ import Protocol from './protocol.js'
10
10
 
11
11
  /**
12
12
  * Mappings from protocol event and command names to the types required for them.
@@ -1,12 +1,12 @@
1
- // Copyright (c) 2026 The Chromium Authors. All rights reserved.
1
+ // Copyright 2026 The Chromium Authors
2
2
  // Use of this source code is governed by a BSD-style license that can be
3
3
  // found in the LICENSE file.
4
4
 
5
5
  /**********************************************************************
6
- * Auto-generated by protocol-dts-generator.ts. Do not edit manually. *
6
+ * Auto-generated by protocol_dts_generator.ts. Do not edit manually. *
7
7
  **********************************************************************/
8
8
 
9
- import Protocol from './protocol'
9
+ import Protocol from './protocol.js'
10
10
 
11
11
  /**
12
12
  * API generated from Protocol commands and events.
@@ -1,12 +1,12 @@
1
- // Copyright (c) 2026 The Chromium Authors. All rights reserved.
1
+ // Copyright 2026 The Chromium Authors
2
2
  // Use of this source code is governed by a BSD-style license that can be
3
3
  // found in the LICENSE file.
4
4
 
5
5
  /**********************************************************************
6
- * Auto-generated by protocol-dts-generator.ts. Do not edit manually. *
6
+ * Auto-generated by protocol_dts_generator.ts. Do not edit manually. *
7
7
  **********************************************************************/
8
8
 
9
- import Protocol from './protocol'
9
+ import Protocol from './protocol.js'
10
10
 
11
11
  /**
12
12
  * API generated from Protocol commands and events.
@@ -1,9 +1,9 @@
1
- // Copyright (c) 2026 The Chromium Authors. All rights reserved.
1
+ // Copyright 2026 The Chromium Authors
2
2
  // Use of this source code is governed by a BSD-style license that can be
3
3
  // found in the LICENSE file.
4
4
 
5
5
  /**********************************************************************
6
- * Auto-generated by protocol-dts-generator.ts. Do not edit manually. *
6
+ * Auto-generated by protocol_dts_generator.ts. Do not edit manually. *
7
7
  **********************************************************************/
8
8
 
9
9
  /**
@@ -13,6 +13,7 @@
13
13
  export namespace Protocol {
14
14
 
15
15
  export type integer = number
16
+ export type binary = string
16
17
 
17
18
  /**
18
19
  * This domain is deprecated - use Runtime or Log instead.
@@ -19340,6 +19341,12 @@ export namespace Protocol {
19340
19341
  key: PreloadingAttemptKey;
19341
19342
  pipelineId: PreloadPipelineId;
19342
19343
  status: PreloadingStatus;
19344
+ /**
19345
+ * The action currently performed by this attempt. This differs from
19346
+ * `key.action` after a prerender-until-script attempt is upgraded in place
19347
+ * to a full prerender.
19348
+ */
19349
+ effectiveAction?: SpeculationAction;
19343
19350
  prerenderStatus?: PrerenderFinalStatus;
19344
19351
  /**
19345
19352
  * This is used to give users more information about the name of Mojo interface