devtools-protocol 0.0.1165779 → 0.0.1166296
Sign up to get free protection for your applications and to get access to all the features.
- package/json/browser_protocol.json +177 -1
- package/package.json +1 -1
- package/pdl/browser_protocol.pdl +64 -0
- package/types/protocol-mapping.d.ts +12 -0
- package/types/protocol-proxy-api.d.ts +11 -0
- package/types/protocol.d.ts +59 -1
@@ -3233,7 +3233,8 @@
|
|
3233
3233
|
"SupportsRule",
|
3234
3234
|
"ContainerRule",
|
3235
3235
|
"LayerRule",
|
3236
|
-
"ScopeRule"
|
3236
|
+
"ScopeRule",
|
3237
|
+
"StyleRule"
|
3237
3238
|
]
|
3238
3239
|
},
|
3239
3240
|
{
|
@@ -19864,6 +19865,155 @@
|
|
19864
19865
|
"$ref": "StorageBucketsDurability"
|
19865
19866
|
}
|
19866
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
|
+
]
|
19867
20017
|
}
|
19868
20018
|
],
|
19869
20019
|
"commands": [
|
@@ -20336,6 +20486,17 @@
|
|
20336
20486
|
"type": "boolean"
|
20337
20487
|
}
|
20338
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
|
+
]
|
20339
20500
|
}
|
20340
20501
|
],
|
20341
20502
|
"events": [
|
@@ -20508,6 +20669,21 @@
|
|
20508
20669
|
"type": "string"
|
20509
20670
|
}
|
20510
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
|
+
]
|
20511
20687
|
}
|
20512
20688
|
]
|
20513
20689
|
},
|
package/package.json
CHANGED
package/pdl/browser_protocol.pdl
CHANGED
@@ -1562,6 +1562,7 @@ experimental domain CSS
|
|
1562
1562
|
ContainerRule
|
1563
1563
|
LayerRule
|
1564
1564
|
ScopeRule
|
1565
|
+
StyleRule
|
1565
1566
|
|
1566
1567
|
# CSS coverage information.
|
1567
1568
|
type RuleUsage extends object
|
@@ -9655,6 +9656,69 @@ experimental domain Storage
|
|
9655
9656
|
# If enabled, noise is suppressed and reports are sent immediately.
|
9656
9657
|
boolean enabled
|
9657
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
|
+
|
9658
9722
|
# The SystemInfo domain defines methods and events for querying low-level system information.
|
9659
9723
|
experimental domain SystemInfo
|
9660
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 {
|
package/types/protocol.d.ts
CHANGED
@@ -4493,7 +4493,7 @@ export namespace Protocol {
|
|
4493
4493
|
* Enum indicating the type of a CSS rule, used to represent the order of a style rule's ancestors.
|
4494
4494
|
* This list only contains rule types that are collected during the ancestor rule collection.
|
4495
4495
|
*/
|
4496
|
-
export type CSSRuleType = ('MediaRule' | 'SupportsRule' | 'ContainerRule' | 'LayerRule' | 'ScopeRule');
|
4496
|
+
export type CSSRuleType = ('MediaRule' | 'SupportsRule' | 'ContainerRule' | 'LayerRule' | 'ScopeRule' | 'StyleRule');
|
4497
4497
|
|
4498
4498
|
/**
|
4499
4499
|
* CSS coverage information.
|
@@ -15039,6 +15039,51 @@ export namespace Protocol {
|
|
15039
15039
|
durability: StorageBucketsDurability;
|
15040
15040
|
}
|
15041
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
|
+
|
15042
15087
|
export interface GetStorageKeyForFrameRequest {
|
15043
15088
|
frameId: Page.FrameId;
|
15044
15089
|
}
|
@@ -15292,6 +15337,10 @@ export namespace Protocol {
|
|
15292
15337
|
enabled: boolean;
|
15293
15338
|
}
|
15294
15339
|
|
15340
|
+
export interface SetAttributionReportingTrackingRequest {
|
15341
|
+
enable: boolean;
|
15342
|
+
}
|
15343
|
+
|
15295
15344
|
/**
|
15296
15345
|
* A cache's contents have been modified.
|
15297
15346
|
*/
|
@@ -15421,6 +15470,15 @@ export namespace Protocol {
|
|
15421
15470
|
export interface StorageBucketDeletedEvent {
|
15422
15471
|
bucketId: string;
|
15423
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
|
+
}
|
15424
15482
|
}
|
15425
15483
|
|
15426
15484
|
/**
|