devtools-protocol 0.0.1064177 → 0.0.1064701

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.
@@ -19223,6 +19223,29 @@
19223
19223
  }
19224
19224
  ]
19225
19225
  },
19226
+ {
19227
+ "id": "SharedStorageAccessType",
19228
+ "description": "Enum of shared storage access types.",
19229
+ "type": "string",
19230
+ "enum": [
19231
+ "documentAddModule",
19232
+ "documentSelectURL",
19233
+ "documentRun",
19234
+ "documentSet",
19235
+ "documentAppend",
19236
+ "documentDelete",
19237
+ "documentClear",
19238
+ "workletSet",
19239
+ "workletAppend",
19240
+ "workletDelete",
19241
+ "workletClear",
19242
+ "workletGet",
19243
+ "workletKeys",
19244
+ "workletEntries",
19245
+ "workletLength",
19246
+ "workletRemainingBudget"
19247
+ ]
19248
+ },
19226
19249
  {
19227
19250
  "id": "SharedStorageEntry",
19228
19251
  "description": "Struct for a single key-value pair in an origin's shared storage.",
@@ -19256,6 +19279,93 @@
19256
19279
  "type": "number"
19257
19280
  }
19258
19281
  ]
19282
+ },
19283
+ {
19284
+ "id": "SharedStorageReportingMetadata",
19285
+ "description": "Pair of reporting metadata details for a candidate URL for `selectURL()`.",
19286
+ "type": "object",
19287
+ "properties": [
19288
+ {
19289
+ "name": "eventType",
19290
+ "type": "string"
19291
+ },
19292
+ {
19293
+ "name": "reportingUrl",
19294
+ "type": "string"
19295
+ }
19296
+ ]
19297
+ },
19298
+ {
19299
+ "id": "SharedStorageUrlWithMetadata",
19300
+ "description": "Bundles a candidate URL with its reporting metadata.",
19301
+ "type": "object",
19302
+ "properties": [
19303
+ {
19304
+ "name": "url",
19305
+ "description": "Spec of candidate URL.",
19306
+ "type": "string"
19307
+ },
19308
+ {
19309
+ "name": "reportingMetadata",
19310
+ "description": "Any associated reporting metadata.",
19311
+ "type": "array",
19312
+ "items": {
19313
+ "$ref": "SharedStorageReportingMetadata"
19314
+ }
19315
+ }
19316
+ ]
19317
+ },
19318
+ {
19319
+ "id": "SharedStorageAccessParams",
19320
+ "description": "Bundles the parameters for shared storage access events whose\npresence/absence can vary according to SharedStorageAccessType.",
19321
+ "type": "object",
19322
+ "properties": [
19323
+ {
19324
+ "name": "scriptSourceUrl",
19325
+ "description": "Spec of the module script URL.\nPresent only for SharedStorageAccessType.documentAddModule.",
19326
+ "optional": true,
19327
+ "type": "string"
19328
+ },
19329
+ {
19330
+ "name": "operationName",
19331
+ "description": "Name of the registered operation to be run.\nPresent only for SharedStorageAccessType.documentRun and\nSharedStorageAccessType.documentSelectURL.",
19332
+ "optional": true,
19333
+ "type": "string"
19334
+ },
19335
+ {
19336
+ "name": "serializedData",
19337
+ "description": "The operation's serialized data in bytes (converted to a string).\nPresent only for SharedStorageAccessType.documentRun and\nSharedStorageAccessType.documentSelectURL.",
19338
+ "optional": true,
19339
+ "type": "string"
19340
+ },
19341
+ {
19342
+ "name": "urlsWithMetadata",
19343
+ "description": "Array of candidate URLs' specs, along with any associated metadata.\nPresent only for SharedStorageAccessType.documentSelectURL.",
19344
+ "optional": true,
19345
+ "type": "array",
19346
+ "items": {
19347
+ "$ref": "SharedStorageUrlWithMetadata"
19348
+ }
19349
+ },
19350
+ {
19351
+ "name": "key",
19352
+ "description": "Key for a specific entry in an origin's shared storage.\nPresent only for SharedStorageAccessType.documentSet,\nSharedStorageAccessType.documentAppend,\nSharedStorageAccessType.documentDelete,\nSharedStorageAccessType.workletSet,\nSharedStorageAccessType.workletAppend,\nSharedStorageAccessType.workletDelete, and\nSharedStorageAccessType.workletGet.",
19353
+ "optional": true,
19354
+ "type": "string"
19355
+ },
19356
+ {
19357
+ "name": "value",
19358
+ "description": "Value for a specific entry in an origin's shared storage.\nPresent only for SharedStorageAccessType.documentSet,\nSharedStorageAccessType.documentAppend,\nSharedStorageAccessType.workletSet, and\nSharedStorageAccessType.workletAppend.",
19359
+ "optional": true,
19360
+ "type": "string"
19361
+ },
19362
+ {
19363
+ "name": "ignoreIfPresent",
19364
+ "description": "Whether or not to set an entry for a key if that key is already present.\nPresent only for SharedStorageAccessType.documentSet and\nSharedStorageAccessType.workletSet.",
19365
+ "optional": true,
19366
+ "type": "boolean"
19367
+ }
19368
+ ]
19259
19369
  }
19260
19370
  ],
19261
19371
  "commands": [
@@ -19581,6 +19691,17 @@
19581
19691
  }
19582
19692
  }
19583
19693
  ]
19694
+ },
19695
+ {
19696
+ "name": "setSharedStorageTracking",
19697
+ "description": "Enables/disables issuing of sharedStorageAccessed events.",
19698
+ "experimental": true,
19699
+ "parameters": [
19700
+ {
19701
+ "name": "enable",
19702
+ "type": "boolean"
19703
+ }
19704
+ ]
19584
19705
  }
19585
19706
  ],
19586
19707
  "events": [
@@ -19674,6 +19795,37 @@
19674
19795
  "type": "string"
19675
19796
  }
19676
19797
  ]
19798
+ },
19799
+ {
19800
+ "name": "sharedStorageAccessed",
19801
+ "description": "Shared storage was accessed by the associated page.\nThe following parameters are included in all events.",
19802
+ "parameters": [
19803
+ {
19804
+ "name": "accessTime",
19805
+ "description": "Time of the access.",
19806
+ "$ref": "Network.TimeSinceEpoch"
19807
+ },
19808
+ {
19809
+ "name": "type",
19810
+ "description": "Enum value indicating the Shared Storage API method invoked.",
19811
+ "$ref": "SharedStorageAccessType"
19812
+ },
19813
+ {
19814
+ "name": "mainFrameId",
19815
+ "description": "DevTools Frame Token for the primary frame tree's root.",
19816
+ "$ref": "Page.FrameId"
19817
+ },
19818
+ {
19819
+ "name": "ownerOrigin",
19820
+ "description": "Serialized origin for the context that invoked the Shared Storage API.",
19821
+ "type": "string"
19822
+ },
19823
+ {
19824
+ "name": "params",
19825
+ "description": "The sub-parameters warapped by `params` are all optional and their\npresence/absence depends on `type`.",
19826
+ "$ref": "SharedStorageAccessParams"
19827
+ }
19828
+ ]
19677
19829
  }
19678
19830
  ]
19679
19831
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "devtools-protocol",
3
- "version": "0.0.1064177",
3
+ "version": "0.0.1064701",
4
4
  "description": "The Chrome DevTools Protocol JSON",
5
5
  "repository": "https://github.com/ChromeDevTools/devtools-protocol",
6
6
  "author": "The Chromium Authors",
@@ -9070,6 +9070,26 @@ experimental domain Storage
9070
9070
  array of InterestGroupAd ads
9071
9071
  array of InterestGroupAd adComponents
9072
9072
 
9073
+ # Enum of shared storage access types.
9074
+ type SharedStorageAccessType extends string
9075
+ enum
9076
+ documentAddModule
9077
+ documentSelectURL
9078
+ documentRun
9079
+ documentSet
9080
+ documentAppend
9081
+ documentDelete
9082
+ documentClear
9083
+ workletSet
9084
+ workletAppend
9085
+ workletDelete
9086
+ workletClear
9087
+ workletGet
9088
+ workletKeys
9089
+ workletEntries
9090
+ workletLength
9091
+ workletRemainingBudget
9092
+
9073
9093
  # Struct for a single key-value pair in an origin's shared storage.
9074
9094
  type SharedStorageEntry extends object
9075
9095
  properties
@@ -9083,6 +9103,58 @@ experimental domain Storage
9083
9103
  integer length
9084
9104
  number remainingBudget
9085
9105
 
9106
+ # Pair of reporting metadata details for a candidate URL for `selectURL()`.
9107
+ type SharedStorageReportingMetadata extends object
9108
+ properties
9109
+ string eventType
9110
+ string reportingUrl
9111
+
9112
+ # Bundles a candidate URL with its reporting metadata.
9113
+ type SharedStorageUrlWithMetadata extends object
9114
+ properties
9115
+ # Spec of candidate URL.
9116
+ string url
9117
+ # Any associated reporting metadata.
9118
+ array of SharedStorageReportingMetadata reportingMetadata
9119
+
9120
+ # Bundles the parameters for shared storage access events whose
9121
+ # presence/absence can vary according to SharedStorageAccessType.
9122
+ type SharedStorageAccessParams extends object
9123
+ properties
9124
+ # Spec of the module script URL.
9125
+ # Present only for SharedStorageAccessType.documentAddModule.
9126
+ optional string scriptSourceUrl
9127
+ # Name of the registered operation to be run.
9128
+ # Present only for SharedStorageAccessType.documentRun and
9129
+ # SharedStorageAccessType.documentSelectURL.
9130
+ optional string operationName
9131
+ # The operation's serialized data in bytes (converted to a string).
9132
+ # Present only for SharedStorageAccessType.documentRun and
9133
+ # SharedStorageAccessType.documentSelectURL.
9134
+ optional string serializedData
9135
+ # Array of candidate URLs' specs, along with any associated metadata.
9136
+ # Present only for SharedStorageAccessType.documentSelectURL.
9137
+ optional array of SharedStorageUrlWithMetadata urlsWithMetadata
9138
+ # Key for a specific entry in an origin's shared storage.
9139
+ # Present only for SharedStorageAccessType.documentSet,
9140
+ # SharedStorageAccessType.documentAppend,
9141
+ # SharedStorageAccessType.documentDelete,
9142
+ # SharedStorageAccessType.workletSet,
9143
+ # SharedStorageAccessType.workletAppend,
9144
+ # SharedStorageAccessType.workletDelete, and
9145
+ # SharedStorageAccessType.workletGet.
9146
+ optional string key
9147
+ # Value for a specific entry in an origin's shared storage.
9148
+ # Present only for SharedStorageAccessType.documentSet,
9149
+ # SharedStorageAccessType.documentAppend,
9150
+ # SharedStorageAccessType.workletSet, and
9151
+ # SharedStorageAccessType.workletAppend.
9152
+ optional string value
9153
+ # Whether or not to set an entry for a key if that key is already present.
9154
+ # Present only for SharedStorageAccessType.documentSet and
9155
+ # SharedStorageAccessType.workletSet.
9156
+ optional boolean ignoreIfPresent
9157
+
9086
9158
  # Returns a storage key given a frame id.
9087
9159
  command getStorageKeyForFrame
9088
9160
  parameters
@@ -9236,6 +9308,11 @@ experimental domain Storage
9236
9308
  returns
9237
9309
  array of SharedStorageEntry entries
9238
9310
 
9311
+ # Enables/disables issuing of sharedStorageAccessed events.
9312
+ experimental command setSharedStorageTracking
9313
+ parameters
9314
+ boolean enable
9315
+
9239
9316
  # A cache's contents have been modified.
9240
9317
  event cacheStorageContentUpdated
9241
9318
  parameters
@@ -9278,6 +9355,22 @@ experimental domain Storage
9278
9355
  string ownerOrigin
9279
9356
  string name
9280
9357
 
9358
+ # Shared storage was accessed by the associated page.
9359
+ # The following parameters are included in all events.
9360
+ event sharedStorageAccessed
9361
+ parameters
9362
+ # Time of the access.
9363
+ Network.TimeSinceEpoch accessTime
9364
+ # Enum value indicating the Shared Storage API method invoked.
9365
+ SharedStorageAccessType type
9366
+ # DevTools Frame Token for the primary frame tree's root.
9367
+ Page.FrameId mainFrameId
9368
+ # Serialized origin for the context that invoked the Shared Storage API.
9369
+ string ownerOrigin
9370
+ # The sub-parameters warapped by `params` are all optional and their
9371
+ # presence/absence depends on `type`.
9372
+ SharedStorageAccessParams params
9373
+
9281
9374
  # The SystemInfo domain defines methods and events for querying low-level system information.
9282
9375
  experimental domain SystemInfo
9283
9376
 
@@ -561,6 +561,11 @@ export namespace ProtocolMapping {
561
561
  * One of the interest groups was accessed by the associated page.
562
562
  */
563
563
  'Storage.interestGroupAccessed': [Protocol.Storage.InterestGroupAccessedEvent];
564
+ /**
565
+ * Shared storage was accessed by the associated page.
566
+ * The following parameters are included in all events.
567
+ */
568
+ 'Storage.sharedStorageAccessed': [Protocol.Storage.SharedStorageAccessedEvent];
564
569
  /**
565
570
  * Issued when attached to target because of auto-attach or `attachToTarget` command.
566
571
  */
@@ -4108,6 +4113,13 @@ export namespace ProtocolMapping {
4108
4113
  paramsType: [Protocol.Storage.GetSharedStorageEntriesRequest];
4109
4114
  returnType: Protocol.Storage.GetSharedStorageEntriesResponse;
4110
4115
  };
4116
+ /**
4117
+ * Enables/disables issuing of sharedStorageAccessed events.
4118
+ */
4119
+ 'Storage.setSharedStorageTracking': {
4120
+ paramsType: [Protocol.Storage.SetSharedStorageTrackingRequest];
4121
+ returnType: void;
4122
+ };
4111
4123
  /**
4112
4124
  * Returns information about the system.
4113
4125
  */
@@ -3324,6 +3324,11 @@ export namespace ProtocolProxyApi {
3324
3324
  */
3325
3325
  getSharedStorageEntries(params: Protocol.Storage.GetSharedStorageEntriesRequest): Promise<Protocol.Storage.GetSharedStorageEntriesResponse>;
3326
3326
 
3327
+ /**
3328
+ * Enables/disables issuing of sharedStorageAccessed events.
3329
+ */
3330
+ setSharedStorageTracking(params: Protocol.Storage.SetSharedStorageTrackingRequest): Promise<void>;
3331
+
3327
3332
  /**
3328
3333
  * A cache's contents have been modified.
3329
3334
  */
@@ -3349,6 +3354,12 @@ export namespace ProtocolProxyApi {
3349
3354
  */
3350
3355
  on(event: 'interestGroupAccessed', listener: (params: Protocol.Storage.InterestGroupAccessedEvent) => void): void;
3351
3356
 
3357
+ /**
3358
+ * Shared storage was accessed by the associated page.
3359
+ * The following parameters are included in all events.
3360
+ */
3361
+ on(event: 'sharedStorageAccessed', listener: (params: Protocol.Storage.SharedStorageAccessedEvent) => void): void;
3362
+
3352
3363
  }
3353
3364
 
3354
3365
  export interface SystemInfoApi {
@@ -14582,6 +14582,11 @@ export namespace Protocol {
14582
14582
  adComponents: InterestGroupAd[];
14583
14583
  }
14584
14584
 
14585
+ /**
14586
+ * Enum of shared storage access types.
14587
+ */
14588
+ export type SharedStorageAccessType = ('documentAddModule' | 'documentSelectURL' | 'documentRun' | 'documentSet' | 'documentAppend' | 'documentDelete' | 'documentClear' | 'workletSet' | 'workletAppend' | 'workletDelete' | 'workletClear' | 'workletGet' | 'workletKeys' | 'workletEntries' | 'workletLength' | 'workletRemainingBudget');
14589
+
14585
14590
  /**
14586
14591
  * Struct for a single key-value pair in an origin's shared storage.
14587
14592
  */
@@ -14599,6 +14604,82 @@ export namespace Protocol {
14599
14604
  remainingBudget: number;
14600
14605
  }
14601
14606
 
14607
+ /**
14608
+ * Pair of reporting metadata details for a candidate URL for `selectURL()`.
14609
+ */
14610
+ export interface SharedStorageReportingMetadata {
14611
+ eventType: string;
14612
+ reportingUrl: string;
14613
+ }
14614
+
14615
+ /**
14616
+ * Bundles a candidate URL with its reporting metadata.
14617
+ */
14618
+ export interface SharedStorageUrlWithMetadata {
14619
+ /**
14620
+ * Spec of candidate URL.
14621
+ */
14622
+ url: string;
14623
+ /**
14624
+ * Any associated reporting metadata.
14625
+ */
14626
+ reportingMetadata: SharedStorageReportingMetadata[];
14627
+ }
14628
+
14629
+ /**
14630
+ * Bundles the parameters for shared storage access events whose
14631
+ * presence/absence can vary according to SharedStorageAccessType.
14632
+ */
14633
+ export interface SharedStorageAccessParams {
14634
+ /**
14635
+ * Spec of the module script URL.
14636
+ * Present only for SharedStorageAccessType.documentAddModule.
14637
+ */
14638
+ scriptSourceUrl?: string;
14639
+ /**
14640
+ * Name of the registered operation to be run.
14641
+ * Present only for SharedStorageAccessType.documentRun and
14642
+ * SharedStorageAccessType.documentSelectURL.
14643
+ */
14644
+ operationName?: string;
14645
+ /**
14646
+ * The operation's serialized data in bytes (converted to a string).
14647
+ * Present only for SharedStorageAccessType.documentRun and
14648
+ * SharedStorageAccessType.documentSelectURL.
14649
+ */
14650
+ serializedData?: string;
14651
+ /**
14652
+ * Array of candidate URLs' specs, along with any associated metadata.
14653
+ * Present only for SharedStorageAccessType.documentSelectURL.
14654
+ */
14655
+ urlsWithMetadata?: SharedStorageUrlWithMetadata[];
14656
+ /**
14657
+ * Key for a specific entry in an origin's shared storage.
14658
+ * Present only for SharedStorageAccessType.documentSet,
14659
+ * SharedStorageAccessType.documentAppend,
14660
+ * SharedStorageAccessType.documentDelete,
14661
+ * SharedStorageAccessType.workletSet,
14662
+ * SharedStorageAccessType.workletAppend,
14663
+ * SharedStorageAccessType.workletDelete, and
14664
+ * SharedStorageAccessType.workletGet.
14665
+ */
14666
+ key?: string;
14667
+ /**
14668
+ * Value for a specific entry in an origin's shared storage.
14669
+ * Present only for SharedStorageAccessType.documentSet,
14670
+ * SharedStorageAccessType.documentAppend,
14671
+ * SharedStorageAccessType.workletSet, and
14672
+ * SharedStorageAccessType.workletAppend.
14673
+ */
14674
+ value?: string;
14675
+ /**
14676
+ * Whether or not to set an entry for a key if that key is already present.
14677
+ * Present only for SharedStorageAccessType.documentSet and
14678
+ * SharedStorageAccessType.workletSet.
14679
+ */
14680
+ ignoreIfPresent?: boolean;
14681
+ }
14682
+
14602
14683
  export interface GetStorageKeyForFrameRequest {
14603
14684
  frameId: Page.FrameId;
14604
14685
  }
@@ -14790,6 +14871,10 @@ export namespace Protocol {
14790
14871
  entries: SharedStorageEntry[];
14791
14872
  }
14792
14873
 
14874
+ export interface SetSharedStorageTrackingRequest {
14875
+ enable: boolean;
14876
+ }
14877
+
14793
14878
  /**
14794
14879
  * A cache's contents have been modified.
14795
14880
  */
@@ -14859,6 +14944,34 @@ export namespace Protocol {
14859
14944
  ownerOrigin: string;
14860
14945
  name: string;
14861
14946
  }
14947
+
14948
+ /**
14949
+ * Shared storage was accessed by the associated page.
14950
+ * The following parameters are included in all events.
14951
+ */
14952
+ export interface SharedStorageAccessedEvent {
14953
+ /**
14954
+ * Time of the access.
14955
+ */
14956
+ accessTime: Network.TimeSinceEpoch;
14957
+ /**
14958
+ * Enum value indicating the Shared Storage API method invoked.
14959
+ */
14960
+ type: SharedStorageAccessType;
14961
+ /**
14962
+ * DevTools Frame Token for the primary frame tree's root.
14963
+ */
14964
+ mainFrameId: Page.FrameId;
14965
+ /**
14966
+ * Serialized origin for the context that invoked the Shared Storage API.
14967
+ */
14968
+ ownerOrigin: string;
14969
+ /**
14970
+ * The sub-parameters warapped by `params` are all optional and their
14971
+ * presence/absence depends on `type`.
14972
+ */
14973
+ params: SharedStorageAccessParams;
14974
+ }
14862
14975
  }
14863
14976
 
14864
14977
  /**