devtools-protocol 0.0.1680125 → 0.0.1682007

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.
@@ -4183,6 +4183,34 @@
4183
4183
  "type": "string"
4184
4184
  }
4185
4185
  ]
4186
+ },
4187
+ {
4188
+ "name": "getGlobalPrivacyControl",
4189
+ "description": "Gets the current globally-applied privacy control status\nSee https://www.w3.org/TR/gpc/#get-global-privacy-control",
4190
+ "experimental": true,
4191
+ "returns": [
4192
+ {
4193
+ "name": "gpc",
4194
+ "type": "boolean"
4195
+ }
4196
+ ]
4197
+ },
4198
+ {
4199
+ "name": "setGlobalPrivacyControl",
4200
+ "description": "Sets and then gets the current globally-applied privacy control status\nSee https://www.w3.org/TR/gpc/#set-global-privacy-control",
4201
+ "experimental": true,
4202
+ "parameters": [
4203
+ {
4204
+ "name": "gpc",
4205
+ "type": "boolean"
4206
+ }
4207
+ ],
4208
+ "returns": [
4209
+ {
4210
+ "name": "gpc",
4211
+ "type": "boolean"
4212
+ }
4213
+ ]
4186
4214
  }
4187
4215
  ],
4188
4216
  "events": [
@@ -11863,6 +11891,26 @@
11863
11891
  }
11864
11892
  ]
11865
11893
  },
11894
+ {
11895
+ "name": "setCPUPerformanceOverride",
11896
+ "description": "Overrides the value of navigator.cpuPerformance",
11897
+ "experimental": true,
11898
+ "parameters": [
11899
+ {
11900
+ "name": "performanceTier",
11901
+ "description": "Override value. Omitting the parameter disables the override.",
11902
+ "optional": true,
11903
+ "type": "string",
11904
+ "enum": [
11905
+ "unknown",
11906
+ "low",
11907
+ "mid",
11908
+ "high",
11909
+ "ultra"
11910
+ ]
11911
+ }
11912
+ ]
11913
+ },
11866
11914
  {
11867
11915
  "name": "setUserAgentOverride",
11868
11916
  "description": "Allows overriding user agent with the given string.\n`userAgentMetadata` must be set for Client Hint headers to be sent.",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "devtools-protocol",
3
- "version": "0.0.1680125",
3
+ "version": "0.0.1682007",
4
4
  "description": "The Chrome DevTools Protocol JSON",
5
5
  "repository": "https://github.com/ChromeDevTools/devtools-protocol",
6
6
  "author": "The Chromium Authors",
@@ -332,3 +332,17 @@ domain Browser
332
332
  command addPrivacySandboxEnrollmentOverride
333
333
  parameters
334
334
  string url
335
+
336
+ # Gets the current globally-applied privacy control status
337
+ # See https://www.w3.org/TR/gpc/#get-global-privacy-control
338
+ experimental command getGlobalPrivacyControl
339
+ returns
340
+ boolean gpc
341
+
342
+ # Sets and then gets the current globally-applied privacy control status
343
+ # See https://www.w3.org/TR/gpc/#set-global-privacy-control
344
+ experimental command setGlobalPrivacyControl
345
+ parameters
346
+ boolean gpc
347
+ returns
348
+ boolean gpc
@@ -570,6 +570,22 @@ domain Emulation
570
570
  # Hardware concurrency to report
571
571
  integer hardwareConcurrency
572
572
 
573
+ # Overrides the value of navigator.cpuPerformance
574
+ experimental command setCPUPerformanceOverride
575
+ parameters
576
+ # Override value. Omitting the parameter disables the override.
577
+ optional enum performanceTier
578
+ # Tier 0: Unknown
579
+ unknown
580
+ # Tier 1: Low
581
+ low
582
+ # Tier 2: Mid
583
+ mid
584
+ # Tier 3: High
585
+ high
586
+ # Tier 4: Ultra
587
+ ultra
588
+
573
589
  # Allows overriding user agent with the given string.
574
590
  # `userAgentMetadata` must be set for Client Hint headers to be sent.
575
591
  command setUserAgentOverride
@@ -2186,6 +2186,24 @@ export namespace ProtocolMapping {
2186
2186
  paramsType: [Protocol.Browser.AddPrivacySandboxEnrollmentOverrideRequest];
2187
2187
  returnType: void;
2188
2188
  };
2189
+ /**
2190
+ * Gets the current globally-applied privacy control status
2191
+ * See https://www.w3.org/TR/gpc/#get-global-privacy-control
2192
+ * @experimental
2193
+ */
2194
+ 'Browser.getGlobalPrivacyControl': {
2195
+ paramsType: [];
2196
+ returnType: Protocol.Browser.GetGlobalPrivacyControlResponse;
2197
+ };
2198
+ /**
2199
+ * Sets and then gets the current globally-applied privacy control status
2200
+ * See https://www.w3.org/TR/gpc/#set-global-privacy-control
2201
+ * @experimental
2202
+ */
2203
+ 'Browser.setGlobalPrivacyControl': {
2204
+ paramsType: [Protocol.Browser.SetGlobalPrivacyControlRequest];
2205
+ returnType: Protocol.Browser.SetGlobalPrivacyControlResponse;
2206
+ };
2189
2207
  /**
2190
2208
  * Inserts a new rule with the given `ruleText` in a stylesheet with given `styleSheetId`, at the
2191
2209
  * position specified by `location`.
@@ -3550,6 +3568,14 @@ export namespace ProtocolMapping {
3550
3568
  paramsType: [Protocol.Emulation.SetHardwareConcurrencyOverrideRequest];
3551
3569
  returnType: void;
3552
3570
  };
3571
+ /**
3572
+ * Overrides the value of navigator.cpuPerformance
3573
+ * @experimental
3574
+ */
3575
+ 'Emulation.setCPUPerformanceOverride': {
3576
+ paramsType: [Protocol.Emulation.SetCPUPerformanceOverrideRequest?];
3577
+ returnType: void;
3578
+ };
3553
3579
  /**
3554
3580
  * Allows overriding user agent with the given string.
3555
3581
  * `userAgentMetadata` must be set for Client Hint headers to be sent.
@@ -1155,6 +1155,20 @@ export namespace ProtocolProxyApi {
1155
1155
  */
1156
1156
  addPrivacySandboxEnrollmentOverride(params: Protocol.Browser.AddPrivacySandboxEnrollmentOverrideRequest): Promise<void>;
1157
1157
 
1158
+ /**
1159
+ * Gets the current globally-applied privacy control status
1160
+ * See https://www.w3.org/TR/gpc/#get-global-privacy-control
1161
+ * @experimental
1162
+ */
1163
+ getGlobalPrivacyControl(): Promise<Protocol.Browser.GetGlobalPrivacyControlResponse>;
1164
+
1165
+ /**
1166
+ * Sets and then gets the current globally-applied privacy control status
1167
+ * See https://www.w3.org/TR/gpc/#set-global-privacy-control
1168
+ * @experimental
1169
+ */
1170
+ setGlobalPrivacyControl(params: Protocol.Browser.SetGlobalPrivacyControlRequest): Promise<Protocol.Browser.SetGlobalPrivacyControlResponse>;
1171
+
1158
1172
  /**
1159
1173
  * Fired when page is about to start a download.
1160
1174
  * @experimental
@@ -2388,6 +2402,12 @@ export namespace ProtocolProxyApi {
2388
2402
  */
2389
2403
  setHardwareConcurrencyOverride(params: Protocol.Emulation.SetHardwareConcurrencyOverrideRequest): Promise<void>;
2390
2404
 
2405
+ /**
2406
+ * Overrides the value of navigator.cpuPerformance
2407
+ * @experimental
2408
+ */
2409
+ setCPUPerformanceOverride(params: Protocol.Emulation.SetCPUPerformanceOverrideRequest): Promise<void>;
2410
+
2391
2411
  /**
2392
2412
  * Allows overriding user agent with the given string.
2393
2413
  * `userAgentMetadata` must be set for Client Hint headers to be sent.
@@ -1225,6 +1225,20 @@ export namespace ProtocolTestsProxyApi {
1225
1225
  */
1226
1226
  addPrivacySandboxEnrollmentOverride(params: Protocol.Browser.AddPrivacySandboxEnrollmentOverrideRequest): Promise<{id: number, result: void, sessionId: string}>;
1227
1227
 
1228
+ /**
1229
+ * Gets the current globally-applied privacy control status
1230
+ * See https://www.w3.org/TR/gpc/#get-global-privacy-control
1231
+ * @experimental
1232
+ */
1233
+ getGlobalPrivacyControl(): Promise<{id: number, result: Protocol.Browser.GetGlobalPrivacyControlResponse, sessionId: string}>;
1234
+
1235
+ /**
1236
+ * Sets and then gets the current globally-applied privacy control status
1237
+ * See https://www.w3.org/TR/gpc/#set-global-privacy-control
1238
+ * @experimental
1239
+ */
1240
+ setGlobalPrivacyControl(params: Protocol.Browser.SetGlobalPrivacyControlRequest): Promise<{id: number, result: Protocol.Browser.SetGlobalPrivacyControlResponse, sessionId: string}>;
1241
+
1228
1242
  /**
1229
1243
  * Fired when page is about to start a download.
1230
1244
  * @experimental
@@ -2526,6 +2540,12 @@ export namespace ProtocolTestsProxyApi {
2526
2540
  */
2527
2541
  setHardwareConcurrencyOverride(params: Protocol.Emulation.SetHardwareConcurrencyOverrideRequest): Promise<{id: number, result: void, sessionId: string}>;
2528
2542
 
2543
+ /**
2544
+ * Overrides the value of navigator.cpuPerformance
2545
+ * @experimental
2546
+ */
2547
+ setCPUPerformanceOverride(params: Protocol.Emulation.SetCPUPerformanceOverrideRequest): Promise<{id: number, result: void, sessionId: string}>;
2548
+
2529
2549
  /**
2530
2550
  * Allows overriding user agent with the given string.
2531
2551
  * `userAgentMetadata` must be set for Client Hint headers to be sent.
@@ -4997,6 +4997,18 @@ export namespace Protocol {
4997
4997
  url: string;
4998
4998
  }
4999
4999
 
5000
+ export interface GetGlobalPrivacyControlResponse {
5001
+ gpc: boolean;
5002
+ }
5003
+
5004
+ export interface SetGlobalPrivacyControlRequest {
5005
+ gpc: boolean;
5006
+ }
5007
+
5008
+ export interface SetGlobalPrivacyControlResponse {
5009
+ gpc: boolean;
5010
+ }
5011
+
5000
5012
  /**
5001
5013
  * Fired when page is about to start a download.
5002
5014
  * @experimental
@@ -9987,6 +9999,21 @@ export namespace Protocol {
9987
9999
  hardwareConcurrency: integer;
9988
10000
  }
9989
10001
 
10002
+ export const enum SetCPUPerformanceOverrideRequestPerformanceTier {
10003
+ Unknown = 'unknown',
10004
+ Low = 'low',
10005
+ Mid = 'mid',
10006
+ High = 'high',
10007
+ Ultra = 'ultra',
10008
+ }
10009
+
10010
+ export interface SetCPUPerformanceOverrideRequest {
10011
+ /**
10012
+ * Override value. Omitting the parameter disables the override.
10013
+ */
10014
+ performanceTier?: ('unknown' | 'low' | 'mid' | 'high' | 'ultra');
10015
+ }
10016
+
9990
10017
  export interface SetUserAgentOverrideRequest {
9991
10018
  /**
9992
10019
  * User agent to use.