devtools-protocol 0.0.1326544 → 0.0.1330662

Sign up to get free protection for your applications and to get access to all the features.
@@ -9125,6 +9125,37 @@
9125
9125
  }
9126
9126
  ]
9127
9127
  },
9128
+ {
9129
+ "id": "PressureSource",
9130
+ "experimental": true,
9131
+ "type": "string",
9132
+ "enum": [
9133
+ "cpu"
9134
+ ]
9135
+ },
9136
+ {
9137
+ "id": "PressureState",
9138
+ "experimental": true,
9139
+ "type": "string",
9140
+ "enum": [
9141
+ "nominal",
9142
+ "fair",
9143
+ "serious",
9144
+ "critical"
9145
+ ]
9146
+ },
9147
+ {
9148
+ "id": "PressureMetadata",
9149
+ "experimental": true,
9150
+ "type": "object",
9151
+ "properties": [
9152
+ {
9153
+ "name": "available",
9154
+ "optional": true,
9155
+ "type": "boolean"
9156
+ }
9157
+ ]
9158
+ },
9128
9159
  {
9129
9160
  "id": "DisabledImageType",
9130
9161
  "description": "Enum of image types that can be disabled.",
@@ -9481,6 +9512,41 @@
9481
9512
  }
9482
9513
  ]
9483
9514
  },
9515
+ {
9516
+ "name": "setPressureSourceOverrideEnabled",
9517
+ "description": "Overrides a pressure source of a given type, as used by the Compute\nPressure API, so that updates to PressureObserver.observe() are provided\nvia setPressureStateOverride instead of being retrieved from\nplatform-provided telemetry data.",
9518
+ "experimental": true,
9519
+ "parameters": [
9520
+ {
9521
+ "name": "enabled",
9522
+ "type": "boolean"
9523
+ },
9524
+ {
9525
+ "name": "source",
9526
+ "$ref": "PressureSource"
9527
+ },
9528
+ {
9529
+ "name": "metadata",
9530
+ "optional": true,
9531
+ "$ref": "PressureMetadata"
9532
+ }
9533
+ ]
9534
+ },
9535
+ {
9536
+ "name": "setPressureStateOverride",
9537
+ "description": "Provides a given pressure state that will be processed and eventually be\ndelivered to PressureObserver users. |source| must have been previously\noverridden by setPressureSourceOverrideEnabled.",
9538
+ "experimental": true,
9539
+ "parameters": [
9540
+ {
9541
+ "name": "source",
9542
+ "$ref": "PressureSource"
9543
+ },
9544
+ {
9545
+ "name": "state",
9546
+ "$ref": "PressureState"
9547
+ }
9548
+ ]
9549
+ },
9484
9550
  {
9485
9551
  "name": "setIdleOverride",
9486
9552
  "description": "Overrides the Idle state.",
@@ -21603,6 +21669,58 @@
21603
21669
  "modulus"
21604
21670
  ]
21605
21671
  },
21672
+ {
21673
+ "id": "AttributionReportingAggregatableDebugReportingData",
21674
+ "experimental": true,
21675
+ "type": "object",
21676
+ "properties": [
21677
+ {
21678
+ "name": "keyPiece",
21679
+ "$ref": "UnsignedInt128AsBase16"
21680
+ },
21681
+ {
21682
+ "name": "value",
21683
+ "description": "number instead of integer because not all uint32 can be represented by\nint",
21684
+ "type": "number"
21685
+ },
21686
+ {
21687
+ "name": "types",
21688
+ "type": "array",
21689
+ "items": {
21690
+ "type": "string"
21691
+ }
21692
+ }
21693
+ ]
21694
+ },
21695
+ {
21696
+ "id": "AttributionReportingAggregatableDebugReportingConfig",
21697
+ "experimental": true,
21698
+ "type": "object",
21699
+ "properties": [
21700
+ {
21701
+ "name": "budget",
21702
+ "description": "number instead of integer because not all uint32 can be represented by\nint, only present for source registrations",
21703
+ "optional": true,
21704
+ "type": "number"
21705
+ },
21706
+ {
21707
+ "name": "keyPiece",
21708
+ "$ref": "UnsignedInt128AsBase16"
21709
+ },
21710
+ {
21711
+ "name": "debugData",
21712
+ "type": "array",
21713
+ "items": {
21714
+ "$ref": "AttributionReportingAggregatableDebugReportingData"
21715
+ }
21716
+ },
21717
+ {
21718
+ "name": "aggregationCoordinatorOrigin",
21719
+ "optional": true,
21720
+ "type": "string"
21721
+ }
21722
+ ]
21723
+ },
21606
21724
  {
21607
21725
  "id": "AttributionReportingSourceRegistration",
21608
21726
  "experimental": true,
@@ -21682,6 +21800,10 @@
21682
21800
  {
21683
21801
  "name": "destinationLimitPriority",
21684
21802
  "$ref": "SignedInt64AsBase10"
21803
+ },
21804
+ {
21805
+ "name": "aggregatableDebugReportingConfig",
21806
+ "$ref": "AttributionReportingAggregatableDebugReportingConfig"
21685
21807
  }
21686
21808
  ]
21687
21809
  },
@@ -21878,6 +22000,10 @@
21878
22000
  "name": "triggerContextId",
21879
22001
  "optional": true,
21880
22002
  "type": "string"
22003
+ },
22004
+ {
22005
+ "name": "aggregatableDebugReportingConfig",
22006
+ "$ref": "AttributionReportingAggregatableDebugReportingConfig"
21881
22007
  }
21882
22008
  ]
21883
22009
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "devtools-protocol",
3
- "version": "0.0.1326544",
3
+ "version": "0.0.1330662",
4
4
  "description": "The Chrome DevTools Protocol JSON",
5
5
  "repository": "https://github.com/ChromeDevTools/devtools-protocol",
6
6
  "author": "The Chromium Authors",
@@ -4185,6 +4185,21 @@ domain Emulation
4185
4185
  optional SensorReadingXYZ xyz
4186
4186
  optional SensorReadingQuaternion quaternion
4187
4187
 
4188
+ experimental type PressureSource extends string
4189
+ enum
4190
+ cpu
4191
+
4192
+ experimental type PressureState extends string
4193
+ enum
4194
+ nominal
4195
+ fair
4196
+ serious
4197
+ critical
4198
+
4199
+ experimental type PressureMetadata extends object
4200
+ properties
4201
+ optional boolean available
4202
+
4188
4203
  # Tells whether emulation is supported.
4189
4204
  deprecated command canEmulate
4190
4205
  returns
@@ -4354,6 +4369,24 @@ domain Emulation
4354
4369
  SensorType type
4355
4370
  SensorReading reading
4356
4371
 
4372
+ # Overrides a pressure source of a given type, as used by the Compute
4373
+ # Pressure API, so that updates to PressureObserver.observe() are provided
4374
+ # via setPressureStateOverride instead of being retrieved from
4375
+ # platform-provided telemetry data.
4376
+ experimental command setPressureSourceOverrideEnabled
4377
+ parameters
4378
+ boolean enabled
4379
+ PressureSource source
4380
+ optional PressureMetadata metadata
4381
+
4382
+ # Provides a given pressure state that will be processed and eventually be
4383
+ # delivered to PressureObserver users. |source| must have been previously
4384
+ # overridden by setPressureSourceOverrideEnabled.
4385
+ experimental command setPressureStateOverride
4386
+ parameters
4387
+ PressureSource source
4388
+ PressureState state
4389
+
4357
4390
  # Overrides the Idle state.
4358
4391
  command setIdleOverride
4359
4392
  parameters
@@ -10523,6 +10556,23 @@ experimental domain Storage
10523
10556
  exact
10524
10557
  modulus
10525
10558
 
10559
+ experimental type AttributionReportingAggregatableDebugReportingData extends object
10560
+ properties
10561
+ UnsignedInt128AsBase16 keyPiece
10562
+ # number instead of integer because not all uint32 can be represented by
10563
+ # int
10564
+ number value
10565
+ array of string types
10566
+
10567
+ experimental type AttributionReportingAggregatableDebugReportingConfig extends object
10568
+ properties
10569
+ # number instead of integer because not all uint32 can be represented by
10570
+ # int, only present for source registrations
10571
+ optional number budget
10572
+ UnsignedInt128AsBase16 keyPiece
10573
+ array of AttributionReportingAggregatableDebugReportingData debugData
10574
+ optional string aggregationCoordinatorOrigin
10575
+
10526
10576
  experimental type AttributionReportingSourceRegistration extends object
10527
10577
  properties
10528
10578
  Network.TimeSinceEpoch time
@@ -10542,6 +10592,7 @@ experimental domain Storage
10542
10592
  optional UnsignedInt64AsBase10 debugKey
10543
10593
  AttributionReportingTriggerDataMatching triggerDataMatching
10544
10594
  SignedInt64AsBase10 destinationLimitPriority
10595
+ AttributionReportingAggregatableDebugReportingConfig aggregatableDebugReportingConfig
10545
10596
 
10546
10597
  experimental type AttributionReportingSourceRegistrationResult extends string
10547
10598
  enum
@@ -10615,6 +10666,7 @@ experimental domain Storage
10615
10666
  optional string aggregationCoordinatorOrigin
10616
10667
  AttributionReportingSourceRegistrationTimeConfig sourceRegistrationTimeConfig
10617
10668
  optional string triggerContextId
10669
+ AttributionReportingAggregatableDebugReportingConfig aggregatableDebugReportingConfig
10618
10670
 
10619
10671
  experimental type AttributionReportingEventLevelResult extends string
10620
10672
  enum
@@ -2728,6 +2728,25 @@ export namespace ProtocolMapping {
2728
2728
  paramsType: [Protocol.Emulation.SetSensorOverrideReadingsRequest];
2729
2729
  returnType: void;
2730
2730
  };
2731
+ /**
2732
+ * Overrides a pressure source of a given type, as used by the Compute
2733
+ * Pressure API, so that updates to PressureObserver.observe() are provided
2734
+ * via setPressureStateOverride instead of being retrieved from
2735
+ * platform-provided telemetry data.
2736
+ */
2737
+ 'Emulation.setPressureSourceOverrideEnabled': {
2738
+ paramsType: [Protocol.Emulation.SetPressureSourceOverrideEnabledRequest];
2739
+ returnType: void;
2740
+ };
2741
+ /**
2742
+ * Provides a given pressure state that will be processed and eventually be
2743
+ * delivered to PressureObserver users. |source| must have been previously
2744
+ * overridden by setPressureSourceOverrideEnabled.
2745
+ */
2746
+ 'Emulation.setPressureStateOverride': {
2747
+ paramsType: [Protocol.Emulation.SetPressureStateOverrideRequest];
2748
+ returnType: void;
2749
+ };
2731
2750
  /**
2732
2751
  * Overrides the Idle state.
2733
2752
  */
@@ -1887,6 +1887,21 @@ export namespace ProtocolProxyApi {
1887
1887
  */
1888
1888
  setSensorOverrideReadings(params: Protocol.Emulation.SetSensorOverrideReadingsRequest): Promise<void>;
1889
1889
 
1890
+ /**
1891
+ * Overrides a pressure source of a given type, as used by the Compute
1892
+ * Pressure API, so that updates to PressureObserver.observe() are provided
1893
+ * via setPressureStateOverride instead of being retrieved from
1894
+ * platform-provided telemetry data.
1895
+ */
1896
+ setPressureSourceOverrideEnabled(params: Protocol.Emulation.SetPressureSourceOverrideEnabledRequest): Promise<void>;
1897
+
1898
+ /**
1899
+ * Provides a given pressure state that will be processed and eventually be
1900
+ * delivered to PressureObserver users. |source| must have been previously
1901
+ * overridden by setPressureSourceOverrideEnabled.
1902
+ */
1903
+ setPressureStateOverride(params: Protocol.Emulation.SetPressureStateOverrideRequest): Promise<void>;
1904
+
1890
1905
  /**
1891
1906
  * Overrides the Idle state.
1892
1907
  */
@@ -2009,6 +2009,21 @@ export namespace ProtocolTestsProxyApi {
2009
2009
  */
2010
2010
  setSensorOverrideReadings(params: Protocol.Emulation.SetSensorOverrideReadingsRequest): Promise<{id: number, result: void, sessionId: string}>;
2011
2011
 
2012
+ /**
2013
+ * Overrides a pressure source of a given type, as used by the Compute
2014
+ * Pressure API, so that updates to PressureObserver.observe() are provided
2015
+ * via setPressureStateOverride instead of being retrieved from
2016
+ * platform-provided telemetry data.
2017
+ */
2018
+ setPressureSourceOverrideEnabled(params: Protocol.Emulation.SetPressureSourceOverrideEnabledRequest): Promise<{id: number, result: void, sessionId: string}>;
2019
+
2020
+ /**
2021
+ * Provides a given pressure state that will be processed and eventually be
2022
+ * delivered to PressureObserver users. |source| must have been previously
2023
+ * overridden by setPressureSourceOverrideEnabled.
2024
+ */
2025
+ setPressureStateOverride(params: Protocol.Emulation.SetPressureStateOverrideRequest): Promise<{id: number, result: void, sessionId: string}>;
2026
+
2012
2027
  /**
2013
2028
  * Overrides the Idle state.
2014
2029
  */
@@ -8188,6 +8188,14 @@ export namespace Protocol {
8188
8188
  quaternion?: SensorReadingQuaternion;
8189
8189
  }
8190
8190
 
8191
+ export type PressureSource = ('cpu');
8192
+
8193
+ export type PressureState = ('nominal' | 'fair' | 'serious' | 'critical');
8194
+
8195
+ export interface PressureMetadata {
8196
+ available?: boolean;
8197
+ }
8198
+
8191
8199
  /**
8192
8200
  * Enum of image types that can be disabled.
8193
8201
  */
@@ -8391,6 +8399,17 @@ export namespace Protocol {
8391
8399
  reading: SensorReading;
8392
8400
  }
8393
8401
 
8402
+ export interface SetPressureSourceOverrideEnabledRequest {
8403
+ enabled: boolean;
8404
+ source: PressureSource;
8405
+ metadata?: PressureMetadata;
8406
+ }
8407
+
8408
+ export interface SetPressureStateOverrideRequest {
8409
+ source: PressureSource;
8410
+ state: PressureState;
8411
+ }
8412
+
8394
8413
  export interface SetIdleOverrideRequest {
8395
8414
  /**
8396
8415
  * Mock isUserActive
@@ -15921,6 +15940,27 @@ export namespace Protocol {
15921
15940
 
15922
15941
  export type AttributionReportingTriggerDataMatching = ('exact' | 'modulus');
15923
15942
 
15943
+ export interface AttributionReportingAggregatableDebugReportingData {
15944
+ keyPiece: UnsignedInt128AsBase16;
15945
+ /**
15946
+ * number instead of integer because not all uint32 can be represented by
15947
+ * int
15948
+ */
15949
+ value: number;
15950
+ types: string[];
15951
+ }
15952
+
15953
+ export interface AttributionReportingAggregatableDebugReportingConfig {
15954
+ /**
15955
+ * number instead of integer because not all uint32 can be represented by
15956
+ * int, only present for source registrations
15957
+ */
15958
+ budget?: number;
15959
+ keyPiece: UnsignedInt128AsBase16;
15960
+ debugData: AttributionReportingAggregatableDebugReportingData[];
15961
+ aggregationCoordinatorOrigin?: string;
15962
+ }
15963
+
15924
15964
  export interface AttributionReportingSourceRegistration {
15925
15965
  time: Network.TimeSinceEpoch;
15926
15966
  /**
@@ -15943,6 +15983,7 @@ export namespace Protocol {
15943
15983
  debugKey?: UnsignedInt64AsBase10;
15944
15984
  triggerDataMatching: AttributionReportingTriggerDataMatching;
15945
15985
  destinationLimitPriority: SignedInt64AsBase10;
15986
+ aggregatableDebugReportingConfig: AttributionReportingAggregatableDebugReportingConfig;
15946
15987
  }
15947
15988
 
15948
15989
  export type AttributionReportingSourceRegistrationResult = ('success' | 'internalError' | 'insufficientSourceCapacity' | 'insufficientUniqueDestinationCapacity' | 'excessiveReportingOrigins' | 'prohibitedByBrowserPolicy' | 'successNoised' | 'destinationReportingLimitReached' | 'destinationGlobalLimitReached' | 'destinationBothLimitsReached' | 'reportingOriginsPerSiteLimitReached' | 'exceedsMaxChannelCapacity' | 'exceedsMaxTriggerStateCardinality' | 'destinationPerDayReportingLimitReached');
@@ -15994,6 +16035,7 @@ export namespace Protocol {
15994
16035
  aggregationCoordinatorOrigin?: string;
15995
16036
  sourceRegistrationTimeConfig: AttributionReportingSourceRegistrationTimeConfig;
15996
16037
  triggerContextId?: string;
16038
+ aggregatableDebugReportingConfig: AttributionReportingAggregatableDebugReportingConfig;
15997
16039
  }
15998
16040
 
15999
16041
  export type AttributionReportingEventLevelResult = ('success' | 'successDroppedLowerPriority' | 'internalError' | 'noCapacityForAttributionDestination' | 'noMatchingSources' | 'deduplicated' | 'excessiveAttributions' | 'priorityTooLow' | 'neverAttributedSource' | 'excessiveReportingOrigins' | 'noMatchingSourceFilterData' | 'prohibitedByBrowserPolicy' | 'noMatchingConfigurations' | 'excessiveReports' | 'falselyAttributedSource' | 'reportWindowPassed' | 'notRegistered' | 'reportWindowNotStarted' | 'noMatchingTriggerData');