devtools-protocol 0.0.1165014 → 0.0.1166296

Sign up to get free protection for your applications and to get access to all the features.
@@ -3210,9 +3210,33 @@
3210
3210
  "items": {
3211
3211
  "$ref": "CSSScope"
3212
3212
  }
3213
+ },
3214
+ {
3215
+ "name": "ruleTypes",
3216
+ "description": "The array keeps the types of ancestor CSSRules from the innermost going outwards.",
3217
+ "experimental": true,
3218
+ "optional": true,
3219
+ "type": "array",
3220
+ "items": {
3221
+ "$ref": "CSSRuleType"
3222
+ }
3213
3223
  }
3214
3224
  ]
3215
3225
  },
3226
+ {
3227
+ "id": "CSSRuleType",
3228
+ "description": "Enum indicating the type of a CSS rule, used to represent the order of a style rule's ancestors.\nThis list only contains rule types that are collected during the ancestor rule collection.",
3229
+ "experimental": true,
3230
+ "type": "string",
3231
+ "enum": [
3232
+ "MediaRule",
3233
+ "SupportsRule",
3234
+ "ContainerRule",
3235
+ "LayerRule",
3236
+ "ScopeRule",
3237
+ "StyleRule"
3238
+ ]
3239
+ },
3216
3240
  {
3217
3241
  "id": "RuleUsage",
3218
3242
  "description": "CSS coverage information.",
@@ -19841,6 +19865,155 @@
19841
19865
  "$ref": "StorageBucketsDurability"
19842
19866
  }
19843
19867
  ]
19868
+ },
19869
+ {
19870
+ "id": "AttributionReportingSourceType",
19871
+ "experimental": true,
19872
+ "type": "string",
19873
+ "enum": [
19874
+ "navigation",
19875
+ "event"
19876
+ ]
19877
+ },
19878
+ {
19879
+ "id": "UnsignedInt64AsBase10",
19880
+ "experimental": true,
19881
+ "type": "string"
19882
+ },
19883
+ {
19884
+ "id": "UnsignedInt128AsBase16",
19885
+ "experimental": true,
19886
+ "type": "string"
19887
+ },
19888
+ {
19889
+ "id": "SignedInt64AsBase10",
19890
+ "experimental": true,
19891
+ "type": "string"
19892
+ },
19893
+ {
19894
+ "id": "AttributionReportingFilterDataEntry",
19895
+ "experimental": true,
19896
+ "type": "object",
19897
+ "properties": [
19898
+ {
19899
+ "name": "key",
19900
+ "type": "string"
19901
+ },
19902
+ {
19903
+ "name": "values",
19904
+ "type": "array",
19905
+ "items": {
19906
+ "type": "string"
19907
+ }
19908
+ }
19909
+ ]
19910
+ },
19911
+ {
19912
+ "id": "AttributionReportingAggregationKeysEntry",
19913
+ "experimental": true,
19914
+ "type": "object",
19915
+ "properties": [
19916
+ {
19917
+ "name": "key",
19918
+ "type": "string"
19919
+ },
19920
+ {
19921
+ "name": "value",
19922
+ "$ref": "UnsignedInt128AsBase16"
19923
+ }
19924
+ ]
19925
+ },
19926
+ {
19927
+ "id": "AttributionReportingSourceRegistration",
19928
+ "experimental": true,
19929
+ "type": "object",
19930
+ "properties": [
19931
+ {
19932
+ "name": "time",
19933
+ "$ref": "Network.TimeSinceEpoch"
19934
+ },
19935
+ {
19936
+ "name": "expiry",
19937
+ "description": "duration in seconds",
19938
+ "optional": true,
19939
+ "type": "integer"
19940
+ },
19941
+ {
19942
+ "name": "eventReportWindow",
19943
+ "description": "duration in seconds",
19944
+ "optional": true,
19945
+ "type": "integer"
19946
+ },
19947
+ {
19948
+ "name": "aggregatableReportWindow",
19949
+ "description": "duration in seconds",
19950
+ "optional": true,
19951
+ "type": "integer"
19952
+ },
19953
+ {
19954
+ "name": "type",
19955
+ "$ref": "AttributionReportingSourceType"
19956
+ },
19957
+ {
19958
+ "name": "sourceOrigin",
19959
+ "type": "string"
19960
+ },
19961
+ {
19962
+ "name": "reportingOrigin",
19963
+ "type": "string"
19964
+ },
19965
+ {
19966
+ "name": "destinationSites",
19967
+ "type": "array",
19968
+ "items": {
19969
+ "type": "string"
19970
+ }
19971
+ },
19972
+ {
19973
+ "name": "eventId",
19974
+ "$ref": "UnsignedInt64AsBase10"
19975
+ },
19976
+ {
19977
+ "name": "priority",
19978
+ "$ref": "SignedInt64AsBase10"
19979
+ },
19980
+ {
19981
+ "name": "filterData",
19982
+ "type": "array",
19983
+ "items": {
19984
+ "$ref": "AttributionReportingFilterDataEntry"
19985
+ }
19986
+ },
19987
+ {
19988
+ "name": "aggregationKeys",
19989
+ "type": "array",
19990
+ "items": {
19991
+ "$ref": "AttributionReportingAggregationKeysEntry"
19992
+ }
19993
+ },
19994
+ {
19995
+ "name": "debugKey",
19996
+ "optional": true,
19997
+ "$ref": "UnsignedInt64AsBase10"
19998
+ }
19999
+ ]
20000
+ },
20001
+ {
20002
+ "id": "AttributionReportingSourceRegistrationResult",
20003
+ "experimental": true,
20004
+ "type": "string",
20005
+ "enum": [
20006
+ "success",
20007
+ "internalError",
20008
+ "insufficientSourceCapacity",
20009
+ "insufficientUniqueDestinationCapacity",
20010
+ "excessiveReportingOrigins",
20011
+ "prohibitedByBrowserPolicy",
20012
+ "successNoised",
20013
+ "destinationReportingLimitReached",
20014
+ "destinationGlobalLimitReached",
20015
+ "destinationBothLimitsReached"
20016
+ ]
19844
20017
  }
19845
20018
  ],
19846
20019
  "commands": [
@@ -20313,6 +20486,17 @@
20313
20486
  "type": "boolean"
20314
20487
  }
20315
20488
  ]
20489
+ },
20490
+ {
20491
+ "name": "setAttributionReportingTracking",
20492
+ "description": "Enables/disables issuing of Attribution Reporting events.",
20493
+ "experimental": true,
20494
+ "parameters": [
20495
+ {
20496
+ "name": "enable",
20497
+ "type": "boolean"
20498
+ }
20499
+ ]
20316
20500
  }
20317
20501
  ],
20318
20502
  "events": [
@@ -20485,6 +20669,21 @@
20485
20669
  "type": "string"
20486
20670
  }
20487
20671
  ]
20672
+ },
20673
+ {
20674
+ "name": "attributionReportingSourceRegistered",
20675
+ "description": "TODO(crbug.com/1458532): Add other Attribution Reporting events, e.g.\ntrigger registration.",
20676
+ "experimental": true,
20677
+ "parameters": [
20678
+ {
20679
+ "name": "registration",
20680
+ "$ref": "AttributionReportingSourceRegistration"
20681
+ },
20682
+ {
20683
+ "name": "result",
20684
+ "$ref": "AttributionReportingSourceRegistrationResult"
20685
+ }
20686
+ ]
20488
20687
  }
20489
20688
  ]
20490
20689
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "devtools-protocol",
3
- "version": "0.0.1165014",
3
+ "version": "0.0.1166296",
4
4
  "description": "The Chrome DevTools Protocol JSON",
5
5
  "repository": "https://github.com/ChromeDevTools/devtools-protocol",
6
6
  "author": "The Chromium Authors",
@@ -1550,6 +1550,19 @@ experimental domain CSS
1550
1550
  # @scope CSS at-rule array.
1551
1551
  # The array enumerates @scope at-rules starting with the innermost one, going outwards.
1552
1552
  experimental optional array of CSSScope scopes
1553
+ # The array keeps the types of ancestor CSSRules from the innermost going outwards.
1554
+ experimental optional array of CSSRuleType ruleTypes
1555
+
1556
+ # Enum indicating the type of a CSS rule, used to represent the order of a style rule's ancestors.
1557
+ # This list only contains rule types that are collected during the ancestor rule collection.
1558
+ experimental type CSSRuleType extends string
1559
+ enum
1560
+ MediaRule
1561
+ SupportsRule
1562
+ ContainerRule
1563
+ LayerRule
1564
+ ScopeRule
1565
+ StyleRule
1553
1566
 
1554
1567
  # CSS coverage information.
1555
1568
  type RuleUsage extends object
@@ -9643,6 +9656,69 @@ experimental domain Storage
9643
9656
  # If enabled, noise is suppressed and reports are sent immediately.
9644
9657
  boolean enabled
9645
9658
 
9659
+ # Enables/disables issuing of Attribution Reporting events.
9660
+ experimental command setAttributionReportingTracking
9661
+ parameters
9662
+ boolean enable
9663
+
9664
+ experimental type AttributionReportingSourceType extends string
9665
+ enum
9666
+ navigation
9667
+ event
9668
+
9669
+ experimental type UnsignedInt64AsBase10 extends string
9670
+ experimental type UnsignedInt128AsBase16 extends string
9671
+ experimental type SignedInt64AsBase10 extends string
9672
+
9673
+ experimental type AttributionReportingFilterDataEntry extends object
9674
+ properties
9675
+ string key
9676
+ array of string values
9677
+
9678
+ experimental type AttributionReportingAggregationKeysEntry extends object
9679
+ properties
9680
+ string key
9681
+ UnsignedInt128AsBase16 value
9682
+
9683
+ experimental type AttributionReportingSourceRegistration extends object
9684
+ properties
9685
+ Network.TimeSinceEpoch time
9686
+ # duration in seconds
9687
+ optional integer expiry
9688
+ # duration in seconds
9689
+ optional integer eventReportWindow
9690
+ # duration in seconds
9691
+ optional integer aggregatableReportWindow
9692
+ AttributionReportingSourceType type
9693
+ string sourceOrigin
9694
+ string reportingOrigin
9695
+ array of string destinationSites
9696
+ UnsignedInt64AsBase10 eventId
9697
+ SignedInt64AsBase10 priority
9698
+ array of AttributionReportingFilterDataEntry filterData
9699
+ array of AttributionReportingAggregationKeysEntry aggregationKeys
9700
+ optional UnsignedInt64AsBase10 debugKey
9701
+
9702
+ experimental type AttributionReportingSourceRegistrationResult extends string
9703
+ enum
9704
+ success
9705
+ internalError
9706
+ insufficientSourceCapacity
9707
+ insufficientUniqueDestinationCapacity
9708
+ excessiveReportingOrigins
9709
+ prohibitedByBrowserPolicy
9710
+ successNoised
9711
+ destinationReportingLimitReached
9712
+ destinationGlobalLimitReached
9713
+ destinationBothLimitsReached
9714
+
9715
+ # TODO(crbug.com/1458532): Add other Attribution Reporting events, e.g.
9716
+ # trigger registration.
9717
+ experimental event attributionReportingSourceRegistered
9718
+ parameters
9719
+ AttributionReportingSourceRegistration registration
9720
+ AttributionReportingSourceRegistrationResult result
9721
+
9646
9722
  # The SystemInfo domain defines methods and events for querying low-level system information.
9647
9723
  experimental domain SystemInfo
9648
9724
 
@@ -558,6 +558,11 @@ export namespace ProtocolMapping {
558
558
  'Storage.sharedStorageAccessed': [Protocol.Storage.SharedStorageAccessedEvent];
559
559
  'Storage.storageBucketCreatedOrUpdated': [Protocol.Storage.StorageBucketCreatedOrUpdatedEvent];
560
560
  'Storage.storageBucketDeleted': [Protocol.Storage.StorageBucketDeletedEvent];
561
+ /**
562
+ * TODO(crbug.com/1458532): Add other Attribution Reporting events, e.g.
563
+ * trigger registration.
564
+ */
565
+ 'Storage.attributionReportingSourceRegistered': [Protocol.Storage.AttributionReportingSourceRegisteredEvent];
561
566
  /**
562
567
  * Issued when attached to target because of auto-attach or `attachToTarget` command.
563
568
  */
@@ -4279,6 +4284,13 @@ export namespace ProtocolMapping {
4279
4284
  paramsType: [Protocol.Storage.SetAttributionReportingLocalTestingModeRequest];
4280
4285
  returnType: void;
4281
4286
  };
4287
+ /**
4288
+ * Enables/disables issuing of Attribution Reporting events.
4289
+ */
4290
+ 'Storage.setAttributionReportingTracking': {
4291
+ paramsType: [Protocol.Storage.SetAttributionReportingTrackingRequest];
4292
+ returnType: void;
4293
+ };
4282
4294
  /**
4283
4295
  * Returns information about the system.
4284
4296
  */
@@ -3424,6 +3424,11 @@ export namespace ProtocolProxyApi {
3424
3424
  */
3425
3425
  setAttributionReportingLocalTestingMode(params: Protocol.Storage.SetAttributionReportingLocalTestingModeRequest): Promise<void>;
3426
3426
 
3427
+ /**
3428
+ * Enables/disables issuing of Attribution Reporting events.
3429
+ */
3430
+ setAttributionReportingTracking(params: Protocol.Storage.SetAttributionReportingTrackingRequest): Promise<void>;
3431
+
3427
3432
  /**
3428
3433
  * A cache's contents have been modified.
3429
3434
  */
@@ -3459,6 +3464,12 @@ export namespace ProtocolProxyApi {
3459
3464
 
3460
3465
  on(event: 'storageBucketDeleted', listener: (params: Protocol.Storage.StorageBucketDeletedEvent) => void): void;
3461
3466
 
3467
+ /**
3468
+ * TODO(crbug.com/1458532): Add other Attribution Reporting events, e.g.
3469
+ * trigger registration.
3470
+ */
3471
+ on(event: 'attributionReportingSourceRegistered', listener: (params: Protocol.Storage.AttributionReportingSourceRegisteredEvent) => void): void;
3472
+
3462
3473
  }
3463
3474
 
3464
3475
  export interface SystemInfoApi {
@@ -4483,8 +4483,18 @@ export namespace Protocol {
4483
4483
  * The array enumerates @scope at-rules starting with the innermost one, going outwards.
4484
4484
  */
4485
4485
  scopes?: CSSScope[];
4486
+ /**
4487
+ * The array keeps the types of ancestor CSSRules from the innermost going outwards.
4488
+ */
4489
+ ruleTypes?: CSSRuleType[];
4486
4490
  }
4487
4491
 
4492
+ /**
4493
+ * Enum indicating the type of a CSS rule, used to represent the order of a style rule's ancestors.
4494
+ * This list only contains rule types that are collected during the ancestor rule collection.
4495
+ */
4496
+ export type CSSRuleType = ('MediaRule' | 'SupportsRule' | 'ContainerRule' | 'LayerRule' | 'ScopeRule' | 'StyleRule');
4497
+
4488
4498
  /**
4489
4499
  * CSS coverage information.
4490
4500
  */
@@ -15029,6 +15039,51 @@ export namespace Protocol {
15029
15039
  durability: StorageBucketsDurability;
15030
15040
  }
15031
15041
 
15042
+ export type AttributionReportingSourceType = ('navigation' | 'event');
15043
+
15044
+ export type UnsignedInt64AsBase10 = string;
15045
+
15046
+ export type UnsignedInt128AsBase16 = string;
15047
+
15048
+ export type SignedInt64AsBase10 = string;
15049
+
15050
+ export interface AttributionReportingFilterDataEntry {
15051
+ key: string;
15052
+ values: string[];
15053
+ }
15054
+
15055
+ export interface AttributionReportingAggregationKeysEntry {
15056
+ key: string;
15057
+ value: UnsignedInt128AsBase16;
15058
+ }
15059
+
15060
+ export interface AttributionReportingSourceRegistration {
15061
+ time: Network.TimeSinceEpoch;
15062
+ /**
15063
+ * duration in seconds
15064
+ */
15065
+ expiry?: integer;
15066
+ /**
15067
+ * duration in seconds
15068
+ */
15069
+ eventReportWindow?: integer;
15070
+ /**
15071
+ * duration in seconds
15072
+ */
15073
+ aggregatableReportWindow?: integer;
15074
+ type: AttributionReportingSourceType;
15075
+ sourceOrigin: string;
15076
+ reportingOrigin: string;
15077
+ destinationSites: string[];
15078
+ eventId: UnsignedInt64AsBase10;
15079
+ priority: SignedInt64AsBase10;
15080
+ filterData: AttributionReportingFilterDataEntry[];
15081
+ aggregationKeys: AttributionReportingAggregationKeysEntry[];
15082
+ debugKey?: UnsignedInt64AsBase10;
15083
+ }
15084
+
15085
+ export type AttributionReportingSourceRegistrationResult = ('success' | 'internalError' | 'insufficientSourceCapacity' | 'insufficientUniqueDestinationCapacity' | 'excessiveReportingOrigins' | 'prohibitedByBrowserPolicy' | 'successNoised' | 'destinationReportingLimitReached' | 'destinationGlobalLimitReached' | 'destinationBothLimitsReached');
15086
+
15032
15087
  export interface GetStorageKeyForFrameRequest {
15033
15088
  frameId: Page.FrameId;
15034
15089
  }
@@ -15282,6 +15337,10 @@ export namespace Protocol {
15282
15337
  enabled: boolean;
15283
15338
  }
15284
15339
 
15340
+ export interface SetAttributionReportingTrackingRequest {
15341
+ enable: boolean;
15342
+ }
15343
+
15285
15344
  /**
15286
15345
  * A cache's contents have been modified.
15287
15346
  */
@@ -15411,6 +15470,15 @@ export namespace Protocol {
15411
15470
  export interface StorageBucketDeletedEvent {
15412
15471
  bucketId: string;
15413
15472
  }
15473
+
15474
+ /**
15475
+ * TODO(crbug.com/1458532): Add other Attribution Reporting events, e.g.
15476
+ * trigger registration.
15477
+ */
15478
+ export interface AttributionReportingSourceRegisteredEvent {
15479
+ registration: AttributionReportingSourceRegistration;
15480
+ result: AttributionReportingSourceRegistrationResult;
15481
+ }
15414
15482
  }
15415
15483
 
15416
15484
  /**