devtools-protocol 0.0.1702366 → 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 +20 -0
- package/json/browser_protocol.json +47 -0
- package/package.json +1 -1
- package/pdl/domains/Page.pdl +2 -0
- package/pdl/domains/Preload.pdl +4 -0
- package/pdl/domains/Storage.pdl +14 -0
- package/types/protocol-mapping.d.ts +12 -3
- package/types/protocol-proxy-api.d.ts +10 -3
- package/types/protocol-tests-proxy-api.d.ts +10 -3
- package/types/protocol.d.ts +32 -2
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
|
+
```
|
|
@@ -22571,6 +22571,12 @@
|
|
|
22571
22571
|
"description": "Frame swap timestamp.",
|
|
22572
22572
|
"optional": true,
|
|
22573
22573
|
"$ref": "Network.TimeSinceEpoch"
|
|
22574
|
+
},
|
|
22575
|
+
{
|
|
22576
|
+
"name": "monotonicTimestamp",
|
|
22577
|
+
"description": "Frame swap timestamp as monotonic time.",
|
|
22578
|
+
"optional": true,
|
|
22579
|
+
"$ref": "Network.MonotonicTime"
|
|
22574
22580
|
}
|
|
22575
22581
|
]
|
|
22576
22582
|
},
|
|
@@ -26199,6 +26205,12 @@
|
|
|
26199
26205
|
"name": "status",
|
|
26200
26206
|
"$ref": "PreloadingStatus"
|
|
26201
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
|
+
},
|
|
26202
26214
|
{
|
|
26203
26215
|
"name": "prerenderStatus",
|
|
26204
26216
|
"optional": true,
|
|
@@ -27815,6 +27827,27 @@
|
|
|
27815
27827
|
}
|
|
27816
27828
|
]
|
|
27817
27829
|
},
|
|
27830
|
+
{
|
|
27831
|
+
"id": "PrivateVerificationTokensIssuerConfig",
|
|
27832
|
+
"description": "Configuration for a Private Verification Tokens issuer.",
|
|
27833
|
+
"experimental": true,
|
|
27834
|
+
"type": "object",
|
|
27835
|
+
"properties": [
|
|
27836
|
+
{
|
|
27837
|
+
"name": "issuerOrigin",
|
|
27838
|
+
"description": "Origin of the token issuer.",
|
|
27839
|
+
"type": "string"
|
|
27840
|
+
},
|
|
27841
|
+
{
|
|
27842
|
+
"name": "redeemerOrigins",
|
|
27843
|
+
"description": "Origins authorized to redeem tokens from this issuer.",
|
|
27844
|
+
"type": "array",
|
|
27845
|
+
"items": {
|
|
27846
|
+
"type": "string"
|
|
27847
|
+
}
|
|
27848
|
+
}
|
|
27849
|
+
]
|
|
27850
|
+
},
|
|
27818
27851
|
{
|
|
27819
27852
|
"id": "StorageBucketsDurability",
|
|
27820
27853
|
"type": "string",
|
|
@@ -28181,6 +28214,20 @@
|
|
|
28181
28214
|
}
|
|
28182
28215
|
]
|
|
28183
28216
|
},
|
|
28217
|
+
{
|
|
28218
|
+
"name": "getPrivateVerificationTokensIssuerConfigs",
|
|
28219
|
+
"description": "Returns the configured Private Verification Tokens issuers and their redeemer\norigins.",
|
|
28220
|
+
"experimental": true,
|
|
28221
|
+
"returns": [
|
|
28222
|
+
{
|
|
28223
|
+
"name": "configs",
|
|
28224
|
+
"type": "array",
|
|
28225
|
+
"items": {
|
|
28226
|
+
"$ref": "PrivateVerificationTokensIssuerConfig"
|
|
28227
|
+
}
|
|
28228
|
+
}
|
|
28229
|
+
]
|
|
28230
|
+
},
|
|
28184
28231
|
{
|
|
28185
28232
|
"name": "clearPrivateVerificationTokens",
|
|
28186
28233
|
"description": "Removes all Private Verification Tokens issued by the provided issuerOrigin.",
|
package/package.json
CHANGED
package/pdl/domains/Page.pdl
CHANGED
|
@@ -388,6 +388,8 @@ domain Page
|
|
|
388
388
|
number scrollOffsetY
|
|
389
389
|
# Frame swap timestamp.
|
|
390
390
|
optional Network.TimeSinceEpoch timestamp
|
|
391
|
+
# Frame swap timestamp as monotonic time.
|
|
392
|
+
optional Network.MonotonicTime monotonicTimestamp
|
|
391
393
|
|
|
392
394
|
# Javascript dialog type.
|
|
393
395
|
type DialogType extends string
|
package/pdl/domains/Preload.pdl
CHANGED
|
@@ -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.
|
package/pdl/domains/Storage.pdl
CHANGED
|
@@ -58,6 +58,14 @@ experimental domain Storage
|
|
|
58
58
|
# Base64-encoded serialized token.
|
|
59
59
|
string token
|
|
60
60
|
|
|
61
|
+
# Configuration for a Private Verification Tokens issuer.
|
|
62
|
+
experimental type PrivateVerificationTokensIssuerConfig extends object
|
|
63
|
+
properties
|
|
64
|
+
# Origin of the token issuer.
|
|
65
|
+
string issuerOrigin
|
|
66
|
+
# Origins authorized to redeem tokens from this issuer.
|
|
67
|
+
array of string redeemerOrigins
|
|
68
|
+
|
|
61
69
|
|
|
62
70
|
|
|
63
71
|
type StorageBucketsDurability extends string
|
|
@@ -234,6 +242,12 @@ experimental domain Storage
|
|
|
234
242
|
returns
|
|
235
243
|
array of PrivateVerificationToken tokens
|
|
236
244
|
|
|
245
|
+
# Returns the configured Private Verification Tokens issuers and their redeemer
|
|
246
|
+
# origins.
|
|
247
|
+
experimental command getPrivateVerificationTokensIssuerConfigs
|
|
248
|
+
returns
|
|
249
|
+
array of PrivateVerificationTokensIssuerConfig configs
|
|
250
|
+
|
|
237
251
|
# Removes all Private Verification Tokens issued by the provided issuerOrigin.
|
|
238
252
|
experimental command clearPrivateVerificationTokens
|
|
239
253
|
parameters
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
// Copyright
|
|
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
|
|
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.
|
|
@@ -5862,6 +5862,15 @@ export namespace ProtocolMapping {
|
|
|
5862
5862
|
paramsType: [];
|
|
5863
5863
|
returnType: Protocol.Storage.GetPrivateVerificationTokensResponse;
|
|
5864
5864
|
};
|
|
5865
|
+
/**
|
|
5866
|
+
* Returns the configured Private Verification Tokens issuers and their redeemer
|
|
5867
|
+
* origins.
|
|
5868
|
+
* @experimental
|
|
5869
|
+
*/
|
|
5870
|
+
'Storage.getPrivateVerificationTokensIssuerConfigs': {
|
|
5871
|
+
paramsType: [];
|
|
5872
|
+
returnType: Protocol.Storage.GetPrivateVerificationTokensIssuerConfigsResponse;
|
|
5873
|
+
};
|
|
5865
5874
|
/**
|
|
5866
5875
|
* Removes all Private Verification Tokens issued by the provided issuerOrigin.
|
|
5867
5876
|
* @experimental
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
// Copyright
|
|
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
|
|
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.
|
|
@@ -4936,6 +4936,13 @@ export namespace ProtocolProxyApi {
|
|
|
4936
4936
|
*/
|
|
4937
4937
|
getPrivateVerificationTokens(): Promise<Protocol.Storage.GetPrivateVerificationTokensResponse>;
|
|
4938
4938
|
|
|
4939
|
+
/**
|
|
4940
|
+
* Returns the configured Private Verification Tokens issuers and their redeemer
|
|
4941
|
+
* origins.
|
|
4942
|
+
* @experimental
|
|
4943
|
+
*/
|
|
4944
|
+
getPrivateVerificationTokensIssuerConfigs(): Promise<Protocol.Storage.GetPrivateVerificationTokensIssuerConfigsResponse>;
|
|
4945
|
+
|
|
4939
4946
|
/**
|
|
4940
4947
|
* Removes all Private Verification Tokens issued by the provided issuerOrigin.
|
|
4941
4948
|
* @experimental
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
// Copyright
|
|
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
|
|
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.
|
|
@@ -5322,6 +5322,13 @@ export namespace ProtocolTestsProxyApi {
|
|
|
5322
5322
|
*/
|
|
5323
5323
|
getPrivateVerificationTokens(): Promise<{id: number, result: Protocol.Storage.GetPrivateVerificationTokensResponse, sessionId: string}>;
|
|
5324
5324
|
|
|
5325
|
+
/**
|
|
5326
|
+
* Returns the configured Private Verification Tokens issuers and their redeemer
|
|
5327
|
+
* origins.
|
|
5328
|
+
* @experimental
|
|
5329
|
+
*/
|
|
5330
|
+
getPrivateVerificationTokensIssuerConfigs(): Promise<{id: number, result: Protocol.Storage.GetPrivateVerificationTokensIssuerConfigsResponse, sessionId: string}>;
|
|
5331
|
+
|
|
5325
5332
|
/**
|
|
5326
5333
|
* Removes all Private Verification Tokens issued by the provided issuerOrigin.
|
|
5327
5334
|
* @experimental
|
package/types/protocol.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
// Copyright
|
|
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
|
|
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.
|
|
@@ -17129,6 +17130,10 @@ export namespace Protocol {
|
|
|
17129
17130
|
* Frame swap timestamp.
|
|
17130
17131
|
*/
|
|
17131
17132
|
timestamp?: Network.TimeSinceEpoch;
|
|
17133
|
+
/**
|
|
17134
|
+
* Frame swap timestamp as monotonic time.
|
|
17135
|
+
*/
|
|
17136
|
+
monotonicTimestamp?: Network.MonotonicTime;
|
|
17132
17137
|
}
|
|
17133
17138
|
|
|
17134
17139
|
/**
|
|
@@ -19336,6 +19341,12 @@ export namespace Protocol {
|
|
|
19336
19341
|
key: PreloadingAttemptKey;
|
|
19337
19342
|
pipelineId: PreloadPipelineId;
|
|
19338
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;
|
|
19339
19350
|
prerenderStatus?: PrerenderFinalStatus;
|
|
19340
19351
|
/**
|
|
19341
19352
|
* This is used to give users more information about the name of Mojo interface
|
|
@@ -20206,6 +20217,21 @@ export namespace Protocol {
|
|
|
20206
20217
|
token: string;
|
|
20207
20218
|
}
|
|
20208
20219
|
|
|
20220
|
+
/**
|
|
20221
|
+
* Configuration for a Private Verification Tokens issuer.
|
|
20222
|
+
* @experimental
|
|
20223
|
+
*/
|
|
20224
|
+
export interface PrivateVerificationTokensIssuerConfig {
|
|
20225
|
+
/**
|
|
20226
|
+
* Origin of the token issuer.
|
|
20227
|
+
*/
|
|
20228
|
+
issuerOrigin: string;
|
|
20229
|
+
/**
|
|
20230
|
+
* Origins authorized to redeem tokens from this issuer.
|
|
20231
|
+
*/
|
|
20232
|
+
redeemerOrigins: string[];
|
|
20233
|
+
}
|
|
20234
|
+
|
|
20209
20235
|
export type StorageBucketsDurability = ('relaxed' | 'strict');
|
|
20210
20236
|
|
|
20211
20237
|
export interface StorageBucket {
|
|
@@ -20416,6 +20442,10 @@ export namespace Protocol {
|
|
|
20416
20442
|
tokens: PrivateVerificationToken[];
|
|
20417
20443
|
}
|
|
20418
20444
|
|
|
20445
|
+
export interface GetPrivateVerificationTokensIssuerConfigsResponse {
|
|
20446
|
+
configs: PrivateVerificationTokensIssuerConfig[];
|
|
20447
|
+
}
|
|
20448
|
+
|
|
20419
20449
|
export interface ClearPrivateVerificationTokensRequest {
|
|
20420
20450
|
issuerOrigin: string;
|
|
20421
20451
|
}
|