devtools-protocol 0.0.845564 → 0.0.847576

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/changelog.md CHANGED
@@ -1,5 +1,43 @@
1
1
 
2
2
 
3
+ ## Roll protocol to r847122
4
+ ###### _2021-01-26 04:16:07 -0800_ | Diff: [181f9b3...769185f](https://github.com/ChromeDevTools/devtools-protocol/compare/181f9b3...769185f)
5
+ #### `Audits`: new types
6
+ * [`Audits.SharedArrayBufferIssueType`](https://chromedevtools.github.io/devtools-protocol/tot/Audits/#type-SharedArrayBufferIssueType)
7
+ * [`Audits.SharedArrayBufferIssueDetails`](https://chromedevtools.github.io/devtools-protocol/tot/Audits/#type-SharedArrayBufferIssueDetails)
8
+ #### `Audits`: removed type
9
+ * [`Audits.SharedArrayBufferTransferIssueDetails`](https://chromedevtools.github.io/devtools-protocol/tot/Audits/#type-SharedArrayBufferTransferIssueDetails)
10
+ #### `Audits`: modified types
11
+ * [`Audits.InspectorIssueCode`](https://chromedevtools.github.io/devtools-protocol/tot/Audits/#type-InspectorIssueCode) - The enum's `SharedArrayBufferTransferIssue` _updated_.
12
+ * [`Audits.InspectorIssueDetails`](https://chromedevtools.github.io/devtools-protocol/tot/Audits/#type-InspectorIssueDetails) - The `sharedArrayBufferTransferIssueDetails` in the properties had `name` _updated_. The `sharedArrayBufferTransferIssueDetails` in the properties had `$ref` _updated_.
13
+
14
+
15
+ ## Roll protocol to r846936
16
+ ###### _2021-01-25 15:16:27 -0800_ | Diff: [d88313d...181f9b3](https://github.com/ChromeDevTools/devtools-protocol/compare/d88313d...181f9b3)
17
+ #### `Network`: new event
18
+ * [`Network.webTransportConnectionEstablished`](https://chromedevtools.github.io/devtools-protocol/tot/Network/#event-webTransportConnectionEstablished)
19
+ #### `Network`: modified event
20
+ * [`Network.webTransportClosed`](https://chromedevtools.github.io/devtools-protocol/tot/Network/#event-webTransportClosed) - `description` added.
21
+
22
+
23
+ ## Roll protocol to r845780
24
+ ###### _2021-01-21 12:16:08 -0800_ | Diff: [3941c7e...d88313d](https://github.com/ChromeDevTools/devtools-protocol/compare/3941c7e...d88313d)
25
+ #### `Audits`: new types
26
+ * [`Audits.TwaQualityEnforcementViolationType`](https://chromedevtools.github.io/devtools-protocol/tot/Audits/#type-TwaQualityEnforcementViolationType)
27
+ * [`Audits.TrustedWebActivityIssueDetails`](https://chromedevtools.github.io/devtools-protocol/tot/Audits/#type-TrustedWebActivityIssueDetails)
28
+ #### `Audits`: modified types
29
+ * [`Audits.InspectorIssueCode`](https://chromedevtools.github.io/devtools-protocol/tot/Audits/#type-InspectorIssueCode) - The enum's `TrustedWebActivityIssue` _added_.
30
+ * [`Audits.InspectorIssueDetails`](https://chromedevtools.github.io/devtools-protocol/tot/Audits/#type-InspectorIssueDetails) - The properties's `twaQualityEnforcementDetails` _added_.
31
+
32
+
33
+ ## Roll protocol to r845564
34
+ ###### _2021-01-21 01:16:18 -0800_ | Diff: [47a861d...3941c7e](https://github.com/ChromeDevTools/devtools-protocol/compare/47a861d...3941c7e)
35
+ #### `Storage`: new command
36
+ * [`Storage.getTrustTokens`](https://chromedevtools.github.io/devtools-protocol/tot/Storage/#method-getTrustTokens)
37
+ #### `Storage`: new type
38
+ * [`Storage.TrustTokens`](https://chromedevtools.github.io/devtools-protocol/tot/Storage/#type-TrustTokens)
39
+
40
+
3
41
  ## Roll protocol to r845301
4
42
  ###### _2021-01-20 12:16:06 -0800_ | Diff: [7f780af...47a861d](https://github.com/ChromeDevTools/devtools-protocol/compare/7f780af...47a861d)
5
43
  #### `Overlay`: new command
@@ -1291,6 +1291,11 @@
1291
1291
  "id": "SourceCodeLocation",
1292
1292
  "type": "object",
1293
1293
  "properties": [
1294
+ {
1295
+ "name": "scriptId",
1296
+ "optional": true,
1297
+ "$ref": "Runtime.ScriptId"
1298
+ },
1294
1299
  {
1295
1300
  "name": "url",
1296
1301
  "type": "string"
@@ -1346,7 +1351,15 @@
1346
1351
  ]
1347
1352
  },
1348
1353
  {
1349
- "id": "SharedArrayBufferTransferIssueDetails",
1354
+ "id": "SharedArrayBufferIssueType",
1355
+ "type": "string",
1356
+ "enum": [
1357
+ "TransferIssue",
1358
+ "CreationIssue"
1359
+ ]
1360
+ },
1361
+ {
1362
+ "id": "SharedArrayBufferIssueDetails",
1350
1363
  "description": "Details for a request that has been blocked with the BLOCKED_BY_RESPONSE\ncode. Currently only used for COEP/COOP, but may be extended to include\nsome CSP errors in the future.",
1351
1364
  "type": "object",
1352
1365
  "properties": [
@@ -1357,6 +1370,51 @@
1357
1370
  {
1358
1371
  "name": "isWarning",
1359
1372
  "type": "boolean"
1373
+ },
1374
+ {
1375
+ "name": "type",
1376
+ "$ref": "SharedArrayBufferIssueType"
1377
+ }
1378
+ ]
1379
+ },
1380
+ {
1381
+ "id": "TwaQualityEnforcementViolationType",
1382
+ "type": "string",
1383
+ "enum": [
1384
+ "kHttpError",
1385
+ "kUnavailableOffline",
1386
+ "kDigitalAssetLinks"
1387
+ ]
1388
+ },
1389
+ {
1390
+ "id": "TrustedWebActivityIssueDetails",
1391
+ "type": "object",
1392
+ "properties": [
1393
+ {
1394
+ "name": "url",
1395
+ "description": "The url that triggers the violation.",
1396
+ "type": "string"
1397
+ },
1398
+ {
1399
+ "name": "violationType",
1400
+ "$ref": "TwaQualityEnforcementViolationType"
1401
+ },
1402
+ {
1403
+ "name": "httpStatusCode",
1404
+ "optional": true,
1405
+ "type": "integer"
1406
+ },
1407
+ {
1408
+ "name": "packageName",
1409
+ "description": "The package name of the Trusted Web Activity client app. This field is\nonly used when violation type is kDigitalAssetLinks.",
1410
+ "optional": true,
1411
+ "type": "string"
1412
+ },
1413
+ {
1414
+ "name": "signature",
1415
+ "description": "The signature of the Trusted Web Activity client app. This field is only\nused when violation type is kDigitalAssetLinks.",
1416
+ "optional": true,
1417
+ "type": "string"
1360
1418
  }
1361
1419
  ]
1362
1420
  },
@@ -1370,7 +1428,8 @@
1370
1428
  "BlockedByResponseIssue",
1371
1429
  "HeavyAdIssue",
1372
1430
  "ContentSecurityPolicyIssue",
1373
- "SharedArrayBufferTransferIssue"
1431
+ "SharedArrayBufferIssue",
1432
+ "TrustedWebActivityIssue"
1374
1433
  ]
1375
1434
  },
1376
1435
  {
@@ -1404,9 +1463,14 @@
1404
1463
  "$ref": "ContentSecurityPolicyIssueDetails"
1405
1464
  },
1406
1465
  {
1407
- "name": "sharedArrayBufferTransferIssueDetails",
1466
+ "name": "sharedArrayBufferIssueDetails",
1467
+ "optional": true,
1468
+ "$ref": "SharedArrayBufferIssueDetails"
1469
+ },
1470
+ {
1471
+ "name": "twaQualityEnforcementDetails",
1408
1472
  "optional": true,
1409
- "$ref": "SharedArrayBufferTransferIssueDetails"
1473
+ "$ref": "TrustedWebActivityIssueDetails"
1410
1474
  }
1411
1475
  ]
1412
1476
  },
@@ -12150,8 +12214,25 @@
12150
12214
  }
12151
12215
  ]
12152
12216
  },
12217
+ {
12218
+ "name": "webTransportConnectionEstablished",
12219
+ "description": "Fired when WebTransport handshake is finished.",
12220
+ "parameters": [
12221
+ {
12222
+ "name": "transportId",
12223
+ "description": "WebTransport identifier.",
12224
+ "$ref": "RequestId"
12225
+ },
12226
+ {
12227
+ "name": "timestamp",
12228
+ "description": "Timestamp.",
12229
+ "$ref": "MonotonicTime"
12230
+ }
12231
+ ]
12232
+ },
12153
12233
  {
12154
12234
  "name": "webTransportClosed",
12235
+ "description": "Fired when WebTransport is disposed.",
12155
12236
  "parameters": [
12156
12237
  {
12157
12238
  "name": "transportId",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "devtools-protocol",
3
- "version": "0.0.845564",
3
+ "version": "0.0.847576",
4
4
  "description": "The Chrome DevTools Protocol JSON",
5
5
  "repository": "https://github.com/ChromeDevTools/devtools-protocol",
6
6
  "author": "The Chromium Authors",
@@ -645,6 +645,7 @@ experimental domain Audits
645
645
 
646
646
  type SourceCodeLocation extends object
647
647
  properties
648
+ optional Runtime.ScriptId scriptId
648
649
  string url
649
650
  integer lineNumber
650
651
  integer columnNumber
@@ -661,13 +662,38 @@ experimental domain Audits
661
662
  optional SourceCodeLocation sourceCodeLocation
662
663
  optional DOM.BackendNodeId violatingNodeId
663
664
 
665
+ type SharedArrayBufferIssueType extends string
666
+ enum
667
+ TransferIssue
668
+ CreationIssue
669
+
664
670
  # Details for a request that has been blocked with the BLOCKED_BY_RESPONSE
665
671
  # code. Currently only used for COEP/COOP, but may be extended to include
666
672
  # some CSP errors in the future.
667
- type SharedArrayBufferTransferIssueDetails extends object
673
+ type SharedArrayBufferIssueDetails extends object
668
674
  properties
669
675
  SourceCodeLocation sourceCodeLocation
670
676
  boolean isWarning
677
+ SharedArrayBufferIssueType type
678
+
679
+ type TwaQualityEnforcementViolationType extends string
680
+ enum
681
+ kHttpError
682
+ kUnavailableOffline
683
+ kDigitalAssetLinks
684
+
685
+ type TrustedWebActivityIssueDetails extends object
686
+ properties
687
+ # The url that triggers the violation.
688
+ string url
689
+ TwaQualityEnforcementViolationType violationType
690
+ optional integer httpStatusCode
691
+ # The package name of the Trusted Web Activity client app. This field is
692
+ # only used when violation type is kDigitalAssetLinks.
693
+ optional string packageName
694
+ # The signature of the Trusted Web Activity client app. This field is only
695
+ # used when violation type is kDigitalAssetLinks.
696
+ optional string signature
671
697
 
672
698
  # A unique identifier for the type of issue. Each type may use one of the
673
699
  # optional fields in InspectorIssueDetails to convey more specific
@@ -679,7 +705,8 @@ experimental domain Audits
679
705
  BlockedByResponseIssue
680
706
  HeavyAdIssue
681
707
  ContentSecurityPolicyIssue
682
- SharedArrayBufferTransferIssue
708
+ SharedArrayBufferIssue
709
+ TrustedWebActivityIssue
683
710
 
684
711
  # This struct holds a list of optional fields with additional information
685
712
  # specific to the kind of issue. When adding a new issue code, please also
@@ -691,7 +718,8 @@ experimental domain Audits
691
718
  optional BlockedByResponseIssueDetails blockedByResponseIssueDetails
692
719
  optional HeavyAdIssueDetails heavyAdIssueDetails
693
720
  optional ContentSecurityPolicyIssueDetails contentSecurityPolicyIssueDetails
694
- optional SharedArrayBufferTransferIssueDetails sharedArrayBufferTransferIssueDetails
721
+ optional SharedArrayBufferIssueDetails sharedArrayBufferIssueDetails
722
+ optional TrustedWebActivityIssueDetails twaQualityEnforcementDetails
695
723
 
696
724
  # An inspector issue reported from the back-end.
697
725
  type InspectorIssue extends object
@@ -5527,6 +5555,15 @@ domain Network
5527
5555
  # Request initiator.
5528
5556
  optional Initiator initiator
5529
5557
 
5558
+ # Fired when WebTransport handshake is finished.
5559
+ event webTransportConnectionEstablished
5560
+ parameters
5561
+ # WebTransport identifier.
5562
+ RequestId transportId
5563
+ # Timestamp.
5564
+ MonotonicTime timestamp
5565
+
5566
+ # Fired when WebTransport is disposed.
5530
5567
  event webTransportClosed
5531
5568
  parameters
5532
5569
  # WebTransport identifier.
@@ -312,6 +312,13 @@ export namespace ProtocolMapping {
312
312
  * Fired upon WebTransport creation.
313
313
  */
314
314
  'Network.webTransportCreated': [Protocol.Network.WebTransportCreatedEvent];
315
+ /**
316
+ * Fired when WebTransport handshake is finished.
317
+ */
318
+ 'Network.webTransportConnectionEstablished': [Protocol.Network.WebTransportConnectionEstablishedEvent];
319
+ /**
320
+ * Fired when WebTransport is disposed.
321
+ */
315
322
  'Network.webTransportClosed': [Protocol.Network.WebTransportClosedEvent];
316
323
  /**
317
324
  * Fired when additional information about a requestWillBeSent event is available from the
@@ -2316,6 +2316,14 @@ export namespace ProtocolProxyApi {
2316
2316
  */
2317
2317
  on(event: 'webTransportCreated', listener: (params: Protocol.Network.WebTransportCreatedEvent) => void): void;
2318
2318
 
2319
+ /**
2320
+ * Fired when WebTransport handshake is finished.
2321
+ */
2322
+ on(event: 'webTransportConnectionEstablished', listener: (params: Protocol.Network.WebTransportConnectionEstablishedEvent) => void): void;
2323
+
2324
+ /**
2325
+ * Fired when WebTransport is disposed.
2326
+ */
2319
2327
  on(event: 'webTransportClosed', listener: (params: Protocol.Network.WebTransportClosedEvent) => void): void;
2320
2328
 
2321
2329
  /**
@@ -3220,6 +3220,7 @@ export namespace Protocol {
3220
3220
  export type ContentSecurityPolicyViolationType = ('kInlineViolation' | 'kEvalViolation' | 'kURLViolation' | 'kTrustedTypesSinkViolation' | 'kTrustedTypesPolicyViolation');
3221
3221
 
3222
3222
  export interface SourceCodeLocation {
3223
+ scriptId?: Runtime.ScriptId;
3223
3224
  url: string;
3224
3225
  lineNumber: integer;
3225
3226
  columnNumber: integer;
@@ -3241,14 +3242,38 @@ export namespace Protocol {
3241
3242
  violatingNodeId?: DOM.BackendNodeId;
3242
3243
  }
3243
3244
 
3245
+ export type SharedArrayBufferIssueType = ('TransferIssue' | 'CreationIssue');
3246
+
3244
3247
  /**
3245
3248
  * Details for a request that has been blocked with the BLOCKED_BY_RESPONSE
3246
3249
  * code. Currently only used for COEP/COOP, but may be extended to include
3247
3250
  * some CSP errors in the future.
3248
3251
  */
3249
- export interface SharedArrayBufferTransferIssueDetails {
3252
+ export interface SharedArrayBufferIssueDetails {
3250
3253
  sourceCodeLocation: SourceCodeLocation;
3251
3254
  isWarning: boolean;
3255
+ type: SharedArrayBufferIssueType;
3256
+ }
3257
+
3258
+ export type TwaQualityEnforcementViolationType = ('kHttpError' | 'kUnavailableOffline' | 'kDigitalAssetLinks');
3259
+
3260
+ export interface TrustedWebActivityIssueDetails {
3261
+ /**
3262
+ * The url that triggers the violation.
3263
+ */
3264
+ url: string;
3265
+ violationType: TwaQualityEnforcementViolationType;
3266
+ httpStatusCode?: integer;
3267
+ /**
3268
+ * The package name of the Trusted Web Activity client app. This field is
3269
+ * only used when violation type is kDigitalAssetLinks.
3270
+ */
3271
+ packageName?: string;
3272
+ /**
3273
+ * The signature of the Trusted Web Activity client app. This field is only
3274
+ * used when violation type is kDigitalAssetLinks.
3275
+ */
3276
+ signature?: string;
3252
3277
  }
3253
3278
 
3254
3279
  /**
@@ -3256,7 +3281,7 @@ export namespace Protocol {
3256
3281
  * optional fields in InspectorIssueDetails to convey more specific
3257
3282
  * information about the kind of issue.
3258
3283
  */
3259
- export type InspectorIssueCode = ('SameSiteCookieIssue' | 'MixedContentIssue' | 'BlockedByResponseIssue' | 'HeavyAdIssue' | 'ContentSecurityPolicyIssue' | 'SharedArrayBufferTransferIssue');
3284
+ export type InspectorIssueCode = ('SameSiteCookieIssue' | 'MixedContentIssue' | 'BlockedByResponseIssue' | 'HeavyAdIssue' | 'ContentSecurityPolicyIssue' | 'SharedArrayBufferIssue' | 'TrustedWebActivityIssue');
3260
3285
 
3261
3286
  /**
3262
3287
  * This struct holds a list of optional fields with additional information
@@ -3269,7 +3294,8 @@ export namespace Protocol {
3269
3294
  blockedByResponseIssueDetails?: BlockedByResponseIssueDetails;
3270
3295
  heavyAdIssueDetails?: HeavyAdIssueDetails;
3271
3296
  contentSecurityPolicyIssueDetails?: ContentSecurityPolicyIssueDetails;
3272
- sharedArrayBufferTransferIssueDetails?: SharedArrayBufferTransferIssueDetails;
3297
+ sharedArrayBufferIssueDetails?: SharedArrayBufferIssueDetails;
3298
+ twaQualityEnforcementDetails?: TrustedWebActivityIssueDetails;
3273
3299
  }
3274
3300
 
3275
3301
  /**
@@ -10314,6 +10340,23 @@ export namespace Protocol {
10314
10340
  initiator?: Initiator;
10315
10341
  }
10316
10342
 
10343
+ /**
10344
+ * Fired when WebTransport handshake is finished.
10345
+ */
10346
+ export interface WebTransportConnectionEstablishedEvent {
10347
+ /**
10348
+ * WebTransport identifier.
10349
+ */
10350
+ transportId: RequestId;
10351
+ /**
10352
+ * Timestamp.
10353
+ */
10354
+ timestamp: MonotonicTime;
10355
+ }
10356
+
10357
+ /**
10358
+ * Fired when WebTransport is disposed.
10359
+ */
10317
10360
  export interface WebTransportClosedEvent {
10318
10361
  /**
10319
10362
  * WebTransport identifier.