devtools-protocol 0.0.948846 → 0.0.952091

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.
@@ -1601,6 +1601,29 @@
1601
1601
  }
1602
1602
  ]
1603
1603
  },
1604
+ {
1605
+ "id": "ClientHintIssueReason",
1606
+ "type": "string",
1607
+ "enum": [
1608
+ "MetaTagAllowListInvalidOrigin",
1609
+ "MetaTagModifiedHTML"
1610
+ ]
1611
+ },
1612
+ {
1613
+ "id": "ClientHintIssueDetails",
1614
+ "description": "This issue tracks client hints related issues. It's used to deprecate old\nfeatures, encourage the use of new ones, and provide general guidance.",
1615
+ "type": "object",
1616
+ "properties": [
1617
+ {
1618
+ "name": "sourceCodeLocation",
1619
+ "$ref": "SourceCodeLocation"
1620
+ },
1621
+ {
1622
+ "name": "clientHintIssueReason",
1623
+ "$ref": "ClientHintIssueReason"
1624
+ }
1625
+ ]
1626
+ },
1604
1627
  {
1605
1628
  "id": "InspectorIssueCode",
1606
1629
  "description": "A unique identifier for the type of issue. Each type may use one of the\noptional fields in InspectorIssueDetails to convey more specific\ninformation about the kind of issue.",
@@ -1620,7 +1643,8 @@
1620
1643
  "NavigatorUserAgentIssue",
1621
1644
  "WasmCrossOriginModuleSharingIssue",
1622
1645
  "GenericIssue",
1623
- "DeprecationIssue"
1646
+ "DeprecationIssue",
1647
+ "ClientHintIssue"
1624
1648
  ]
1625
1649
  },
1626
1650
  {
@@ -1702,6 +1726,11 @@
1702
1726
  "name": "deprecationIssueDetails",
1703
1727
  "optional": true,
1704
1728
  "$ref": "DeprecationIssueDetails"
1729
+ },
1730
+ {
1731
+ "name": "clientHintIssueDetails",
1732
+ "optional": true,
1733
+ "$ref": "ClientHintIssueDetails"
1705
1734
  }
1706
1735
  ]
1707
1736
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "devtools-protocol",
3
- "version": "0.0.948846",
3
+ "version": "0.0.952091",
4
4
  "description": "The Chrome DevTools Protocol JSON",
5
5
  "repository": "https://github.com/ChromeDevTools/devtools-protocol",
6
6
  "author": "The Chromium Authors",
@@ -770,6 +770,22 @@ experimental domain Audits
770
770
  # https://www.chromestatus.com/feature/5684870116278272 for more details."
771
771
  deprecated optional string message
772
772
 
773
+ type ClientHintIssueReason extends string
774
+ enum
775
+ # Items in the accept-ch meta tag allow list must be valid origins.
776
+ # No special values (e.g. self, none, and *) are permitted.
777
+ MetaTagAllowListInvalidOrigin
778
+ # Only accept-ch meta tags in the original HTML sent from the server
779
+ # are respected. Any injected via javascript (or other means) are ignored.
780
+ MetaTagModifiedHTML
781
+
782
+ # This issue tracks client hints related issues. It's used to deprecate old
783
+ # features, encourage the use of new ones, and provide general guidance.
784
+ type ClientHintIssueDetails extends object
785
+ properties
786
+ SourceCodeLocation sourceCodeLocation
787
+ ClientHintIssueReason clientHintIssueReason
788
+
773
789
  # A unique identifier for the type of issue. Each type may use one of the
774
790
  # optional fields in InspectorIssueDetails to convey more specific
775
791
  # information about the kind of issue.
@@ -790,6 +806,7 @@ experimental domain Audits
790
806
  WasmCrossOriginModuleSharingIssue
791
807
  GenericIssue
792
808
  DeprecationIssue
809
+ ClientHintIssue
793
810
 
794
811
  # This struct holds a list of optional fields with additional information
795
812
  # specific to the kind of issue. When adding a new issue code, please also
@@ -811,6 +828,7 @@ experimental domain Audits
811
828
  optional WasmCrossOriginModuleSharingIssueDetails wasmCrossOriginModuleSharingIssue
812
829
  optional GenericIssueDetails genericIssueDetails
813
830
  optional DeprecationIssueDetails deprecationIssueDetails
831
+ optional ClientHintIssueDetails clientHintIssueDetails
814
832
 
815
833
  # A unique id for a DevTools inspector issue. Allows other entities (e.g.
816
834
  # exceptions, CDP message, console messages, etc.) to reference an issue.
@@ -3336,12 +3336,23 @@ export namespace Protocol {
3336
3336
  message?: string;
3337
3337
  }
3338
3338
 
3339
+ export type ClientHintIssueReason = ('MetaTagAllowListInvalidOrigin' | 'MetaTagModifiedHTML');
3340
+
3341
+ /**
3342
+ * This issue tracks client hints related issues. It's used to deprecate old
3343
+ * features, encourage the use of new ones, and provide general guidance.
3344
+ */
3345
+ export interface ClientHintIssueDetails {
3346
+ sourceCodeLocation: SourceCodeLocation;
3347
+ clientHintIssueReason: ClientHintIssueReason;
3348
+ }
3349
+
3339
3350
  /**
3340
3351
  * A unique identifier for the type of issue. Each type may use one of the
3341
3352
  * optional fields in InspectorIssueDetails to convey more specific
3342
3353
  * information about the kind of issue.
3343
3354
  */
3344
- export type InspectorIssueCode = ('SameSiteCookieIssue' | 'MixedContentIssue' | 'BlockedByResponseIssue' | 'HeavyAdIssue' | 'ContentSecurityPolicyIssue' | 'SharedArrayBufferIssue' | 'TrustedWebActivityIssue' | 'LowTextContrastIssue' | 'CorsIssue' | 'AttributionReportingIssue' | 'QuirksModeIssue' | 'NavigatorUserAgentIssue' | 'WasmCrossOriginModuleSharingIssue' | 'GenericIssue' | 'DeprecationIssue');
3355
+ export type InspectorIssueCode = ('SameSiteCookieIssue' | 'MixedContentIssue' | 'BlockedByResponseIssue' | 'HeavyAdIssue' | 'ContentSecurityPolicyIssue' | 'SharedArrayBufferIssue' | 'TrustedWebActivityIssue' | 'LowTextContrastIssue' | 'CorsIssue' | 'AttributionReportingIssue' | 'QuirksModeIssue' | 'NavigatorUserAgentIssue' | 'WasmCrossOriginModuleSharingIssue' | 'GenericIssue' | 'DeprecationIssue' | 'ClientHintIssue');
3345
3356
 
3346
3357
  /**
3347
3358
  * This struct holds a list of optional fields with additional information
@@ -3364,6 +3375,7 @@ export namespace Protocol {
3364
3375
  wasmCrossOriginModuleSharingIssue?: WasmCrossOriginModuleSharingIssueDetails;
3365
3376
  genericIssueDetails?: GenericIssueDetails;
3366
3377
  deprecationIssueDetails?: DeprecationIssueDetails;
3378
+ clientHintIssueDetails?: ClientHintIssueDetails;
3367
3379
  }
3368
3380
 
3369
3381
  /**