devtools-protocol 0.0.1253004 → 0.0.1253724

Sign up to get free protection for your applications and to get access to all the features.
@@ -12770,6 +12770,23 @@
12770
12770
  "NameValuePairExceedsMaxSize"
12771
12771
  ]
12772
12772
  },
12773
+ {
12774
+ "id": "CookieExemptionReason",
12775
+ "description": "Types of reasons why a cookie should have been blocked by 3PCD but is exempted for the request.",
12776
+ "experimental": true,
12777
+ "type": "string",
12778
+ "enum": [
12779
+ "None",
12780
+ "UserSetting",
12781
+ "TPCDMetadata",
12782
+ "TPCDDeprecationTrial",
12783
+ "TPCDHeuristics",
12784
+ "EnterprisePolicy",
12785
+ "StorageAccess",
12786
+ "TopLevelStorageAccess",
12787
+ "BrowserHeuristics"
12788
+ ]
12789
+ },
12773
12790
  {
12774
12791
  "id": "BlockedSetCookieWithReason",
12775
12792
  "description": "A cookie which was not stored from a response with the corresponding reason.",
@@ -12798,23 +12815,47 @@
12798
12815
  ]
12799
12816
  },
12800
12817
  {
12801
- "id": "BlockedCookieWithReason",
12802
- "description": "A cookie with was not sent with a request with the corresponding reason.",
12818
+ "id": "ExemptedSetCookieWithReason",
12819
+ "description": "A cookie should have been blocked by 3PCD but is exempted and stored from a response with the\ncorresponding reason. A cookie could only have at most one exemption reason.",
12820
+ "experimental": true,
12821
+ "type": "object",
12822
+ "properties": [
12823
+ {
12824
+ "name": "exemptionReason",
12825
+ "description": "The reason the cookie was exempted.",
12826
+ "$ref": "CookieExemptionReason"
12827
+ },
12828
+ {
12829
+ "name": "cookie",
12830
+ "description": "The cookie object representing the cookie.",
12831
+ "$ref": "Cookie"
12832
+ }
12833
+ ]
12834
+ },
12835
+ {
12836
+ "id": "AssociatedCookie",
12837
+ "description": "A cookie associated with the request which may or may not be sent with it.\nIncludes the cookies itself and reasons for blocking or exemption.",
12803
12838
  "experimental": true,
12804
12839
  "type": "object",
12805
12840
  "properties": [
12841
+ {
12842
+ "name": "cookie",
12843
+ "description": "The cookie object representing the cookie which was not sent.",
12844
+ "$ref": "Cookie"
12845
+ },
12806
12846
  {
12807
12847
  "name": "blockedReasons",
12808
- "description": "The reason(s) the cookie was blocked.",
12848
+ "description": "The reason(s) the cookie was blocked. If empty means the cookie is included.",
12809
12849
  "type": "array",
12810
12850
  "items": {
12811
12851
  "$ref": "CookieBlockedReason"
12812
12852
  }
12813
12853
  },
12814
12854
  {
12815
- "name": "cookie",
12816
- "description": "The cookie object representing the cookie which was not sent.",
12817
- "$ref": "Cookie"
12855
+ "name": "exemptionReason",
12856
+ "description": "The reason the cookie should have been blocked by 3PCD but is exempted. A cookie could\nonly have at most one exemption reason.",
12857
+ "optional": true,
12858
+ "$ref": "CookieExemptionReason"
12818
12859
  }
12819
12860
  ]
12820
12861
  },
@@ -14805,10 +14846,10 @@
14805
14846
  },
14806
14847
  {
14807
14848
  "name": "associatedCookies",
14808
- "description": "A list of cookies potentially associated to the requested URL. This includes both cookies sent with\nthe request and the ones not sent; the latter are distinguished by having blockedReason field set.",
14849
+ "description": "A list of cookies potentially associated to the requested URL. This includes both cookies sent with\nthe request and the ones not sent; the latter are distinguished by having blockedReasons field set.",
14809
14850
  "type": "array",
14810
14851
  "items": {
14811
- "$ref": "BlockedCookieWithReason"
14852
+ "$ref": "AssociatedCookie"
14812
14853
  }
14813
14854
  },
14814
14855
  {
@@ -14886,6 +14927,15 @@
14886
14927
  "description": "True if partitioned cookies are enabled, but the partition key is not serializeable to string.",
14887
14928
  "optional": true,
14888
14929
  "type": "boolean"
14930
+ },
14931
+ {
14932
+ "name": "exemptedCookies",
14933
+ "description": "A list of cookies which should have been blocked by 3PCD but are exempted and stored from\nthe response with the corresponding reason.",
14934
+ "optional": true,
14935
+ "type": "array",
14936
+ "items": {
14937
+ "$ref": "ExemptedSetCookieWithReason"
14938
+ }
14889
14939
  }
14890
14940
  ]
14891
14941
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "devtools-protocol",
3
- "version": "0.0.1253004",
3
+ "version": "0.0.1253724",
4
4
  "description": "The Chrome DevTools Protocol JSON",
5
5
  "repository": "https://github.com/ChromeDevTools/devtools-protocol",
6
6
  "author": "The Chromium Authors",
@@ -5991,6 +5991,28 @@ domain Network
5991
5991
  # RFC6265bis.
5992
5992
  NameValuePairExceedsMaxSize
5993
5993
 
5994
+ # Types of reasons why a cookie should have been blocked by 3PCD but is exempted for the request.
5995
+ experimental type CookieExemptionReason extends string
5996
+ enum
5997
+ # The default value. Cookie with this reason could either be blocked or included.
5998
+ None
5999
+ # The cookie should have been blocked by 3PCD but is exempted by explicit user setting.
6000
+ UserSetting
6001
+ # The cookie should have been blocked by 3PCD but is exempted by metadata mitigation.
6002
+ TPCDMetadata
6003
+ # The cookie should have been blocked by 3PCD but is exempted by Deprecation Trial mitigation.
6004
+ TPCDDeprecationTrial
6005
+ # The cookie should have been blocked by 3PCD but is exempted by heuristics mitigation.
6006
+ TPCDHeuristics
6007
+ # The cookie should have been blocked by 3PCD but is exempted by Enterprise Policy.
6008
+ EnterprisePolicy
6009
+ # The cookie should have been blocked by 3PCD but is exempted by Storage Access API.
6010
+ StorageAccess
6011
+ # The cookie should have been blocked by 3PCD but is exempted by Top-level Storage Access API.
6012
+ TopLevelStorageAccess
6013
+ # The cookie should have been blocked by 3PCD but is exempted by browser heuristics.
6014
+ BrowserHeuristics
6015
+
5994
6016
  # A cookie which was not stored from a response with the corresponding reason.
5995
6017
  experimental type BlockedSetCookieWithReason extends object
5996
6018
  properties
@@ -6004,13 +6026,26 @@ domain Network
6004
6026
  # errors.
6005
6027
  optional Cookie cookie
6006
6028
 
6007
- # A cookie with was not sent with a request with the corresponding reason.
6008
- experimental type BlockedCookieWithReason extends object
6029
+ # A cookie should have been blocked by 3PCD but is exempted and stored from a response with the
6030
+ # corresponding reason. A cookie could only have at most one exemption reason.
6031
+ experimental type ExemptedSetCookieWithReason extends object
6032
+ properties
6033
+ # The reason the cookie was exempted.
6034
+ CookieExemptionReason exemptionReason
6035
+ # The cookie object representing the cookie.
6036
+ Cookie cookie
6037
+
6038
+ # A cookie associated with the request which may or may not be sent with it.
6039
+ # Includes the cookies itself and reasons for blocking or exemption.
6040
+ experimental type AssociatedCookie extends object
6009
6041
  properties
6010
- # The reason(s) the cookie was blocked.
6011
- array of CookieBlockedReason blockedReasons
6012
6042
  # The cookie object representing the cookie which was not sent.
6013
6043
  Cookie cookie
6044
+ # The reason(s) the cookie was blocked. If empty means the cookie is included.
6045
+ array of CookieBlockedReason blockedReasons
6046
+ # The reason the cookie should have been blocked by 3PCD but is exempted. A cookie could
6047
+ # only have at most one exemption reason.
6048
+ optional CookieExemptionReason exemptionReason
6014
6049
 
6015
6050
  # Cookie parameter object
6016
6051
  type CookieParam extends object
@@ -6779,8 +6814,8 @@ domain Network
6779
6814
  # Request identifier. Used to match this information to an existing requestWillBeSent event.
6780
6815
  RequestId requestId
6781
6816
  # A list of cookies potentially associated to the requested URL. This includes both cookies sent with
6782
- # the request and the ones not sent; the latter are distinguished by having blockedReason field set.
6783
- array of BlockedCookieWithReason associatedCookies
6817
+ # the request and the ones not sent; the latter are distinguished by having blockedReasons field set.
6818
+ array of AssociatedCookie associatedCookies
6784
6819
  # Raw request headers as they will be sent over the wire.
6785
6820
  Headers headers
6786
6821
  # Connection timing information for the request.
@@ -6818,6 +6853,9 @@ domain Network
6818
6853
  optional string cookiePartitionKey
6819
6854
  # True if partitioned cookies are enabled, but the partition key is not serializeable to string.
6820
6855
  optional boolean cookiePartitionKeyOpaque
6856
+ # A list of cookies which should have been blocked by 3PCD but are exempted and stored from
6857
+ # the response with the corresponding reason.
6858
+ optional array of ExemptedSetCookieWithReason exemptedCookies
6821
6859
 
6822
6860
  # Fired exactly once for each Trust Token operation. Depending on
6823
6861
  # the type of the operation and whether the operation succeeded or
@@ -10592,6 +10592,11 @@ export namespace Protocol {
10592
10592
  */
10593
10593
  export type CookieBlockedReason = ('SecureOnly' | 'NotOnPath' | 'DomainMismatch' | 'SameSiteStrict' | 'SameSiteLax' | 'SameSiteUnspecifiedTreatedAsLax' | 'SameSiteNoneInsecure' | 'UserPreferences' | 'ThirdPartyPhaseout' | 'ThirdPartyBlockedInFirstPartySet' | 'UnknownError' | 'SchemefulSameSiteStrict' | 'SchemefulSameSiteLax' | 'SchemefulSameSiteUnspecifiedTreatedAsLax' | 'SamePartyFromCrossPartyContext' | 'NameValuePairExceedsMaxSize');
10594
10594
 
10595
+ /**
10596
+ * Types of reasons why a cookie should have been blocked by 3PCD but is exempted for the request.
10597
+ */
10598
+ export type CookieExemptionReason = ('None' | 'UserSetting' | 'TPCDMetadata' | 'TPCDDeprecationTrial' | 'TPCDHeuristics' | 'EnterprisePolicy' | 'StorageAccess' | 'TopLevelStorageAccess' | 'BrowserHeuristics');
10599
+
10595
10600
  /**
10596
10601
  * A cookie which was not stored from a response with the corresponding reason.
10597
10602
  */
@@ -10614,17 +10619,38 @@ export namespace Protocol {
10614
10619
  }
10615
10620
 
10616
10621
  /**
10617
- * A cookie with was not sent with a request with the corresponding reason.
10622
+ * A cookie should have been blocked by 3PCD but is exempted and stored from a response with the
10623
+ * corresponding reason. A cookie could only have at most one exemption reason.
10618
10624
  */
10619
- export interface BlockedCookieWithReason {
10625
+ export interface ExemptedSetCookieWithReason {
10620
10626
  /**
10621
- * The reason(s) the cookie was blocked.
10627
+ * The reason the cookie was exempted.
10622
10628
  */
10623
- blockedReasons: CookieBlockedReason[];
10629
+ exemptionReason: CookieExemptionReason;
10630
+ /**
10631
+ * The cookie object representing the cookie.
10632
+ */
10633
+ cookie: Cookie;
10634
+ }
10635
+
10636
+ /**
10637
+ * A cookie associated with the request which may or may not be sent with it.
10638
+ * Includes the cookies itself and reasons for blocking or exemption.
10639
+ */
10640
+ export interface AssociatedCookie {
10624
10641
  /**
10625
10642
  * The cookie object representing the cookie which was not sent.
10626
10643
  */
10627
10644
  cookie: Cookie;
10645
+ /**
10646
+ * The reason(s) the cookie was blocked. If empty means the cookie is included.
10647
+ */
10648
+ blockedReasons: CookieBlockedReason[];
10649
+ /**
10650
+ * The reason the cookie should have been blocked by 3PCD but is exempted. A cookie could
10651
+ * only have at most one exemption reason.
10652
+ */
10653
+ exemptionReason?: CookieExemptionReason;
10628
10654
  }
10629
10655
 
10630
10656
  /**
@@ -11954,9 +11980,9 @@ export namespace Protocol {
11954
11980
  requestId: RequestId;
11955
11981
  /**
11956
11982
  * A list of cookies potentially associated to the requested URL. This includes both cookies sent with
11957
- * the request and the ones not sent; the latter are distinguished by having blockedReason field set.
11983
+ * the request and the ones not sent; the latter are distinguished by having blockedReasons field set.
11958
11984
  */
11959
- associatedCookies: BlockedCookieWithReason[];
11985
+ associatedCookies: AssociatedCookie[];
11960
11986
  /**
11961
11987
  * Raw request headers as they will be sent over the wire.
11962
11988
  */
@@ -12020,6 +12046,11 @@ export namespace Protocol {
12020
12046
  * True if partitioned cookies are enabled, but the partition key is not serializeable to string.
12021
12047
  */
12022
12048
  cookiePartitionKeyOpaque?: boolean;
12049
+ /**
12050
+ * A list of cookies which should have been blocked by 3PCD but are exempted and stored from
12051
+ * the response with the corresponding reason.
12052
+ */
12053
+ exemptedCookies?: ExemptedSetCookieWithReason[];
12023
12054
  }
12024
12055
 
12025
12056
  export const enum TrustTokenOperationDoneEventStatus {