devtools-protocol 0.0.1682007 → 0.0.1684464

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.
@@ -3193,9 +3193,32 @@ export namespace Protocol {
3193
3193
  removeAdFrames: Page.FrameId[];
3194
3194
  }
3195
3195
 
3196
+ /**
3197
+ * An ad script.
3198
+ * Note: when the script is a transitive ad script, we only fill in the
3199
+ * immediate ancestor script in the provenance's adScriptAncestry field (as its
3200
+ * first entry), rather than filling in the full ancestry. This saves work for
3201
+ * the backend, and the frontend can reconstruct the full ancestry if
3202
+ * necessary.
3203
+ */
3204
+ export interface AdScript {
3205
+ /**
3206
+ * The script ID.
3207
+ */
3208
+ scriptId: Runtime.ScriptId;
3209
+ /**
3210
+ * The ad provenance.
3211
+ */
3212
+ provenance: Network.AdProvenance;
3213
+ }
3214
+
3196
3215
  export interface GetAdMetricsResponse {
3197
3216
  metrics: AdMetrics;
3198
3217
  }
3218
+
3219
+ export interface GetAdScriptsResponse {
3220
+ newScripts: AdScript[];
3221
+ }
3199
3222
  }
3200
3223
 
3201
3224
  /**
@@ -13899,6 +13922,9 @@ export namespace Protocol {
13899
13922
  filterlistRule?: string;
13900
13923
  /**
13901
13924
  * The script ancestry that created the ad, if any.
13925
+ * Note: depending on the context, this may represent the full ancestry up
13926
+ * to the root script, or it may contain only one script representing the
13927
+ * immediate ancestor.
13902
13928
  */
13903
13929
  adScriptAncestry?: AdAncestry;
13904
13930
  }
@@ -18179,9 +18205,21 @@ export namespace Protocol {
18179
18205
  */
18180
18206
  maxHeight?: integer;
18181
18207
  /**
18182
- * Send every n-th frame.
18208
+ * Send every n-th frame. Must be a positive integer.
18183
18209
  */
18184
18210
  everyNthFrame?: integer;
18211
+ /**
18212
+ * Maximum number of frames sent until screencastFrameAck is required.
18213
+ * Defaults to 3. Must be a positive integer.
18214
+ */
18215
+ maxFramesInFlight?: integer;
18216
+ /**
18217
+ * By default, after screencastFrameAck arrives, the next produced frame is sent.
18218
+ * Passing this flag enables storing the last produced frame in memory, which is
18219
+ * immediately sent upon screencastFrameAck. This way, overall performance is
18220
+ * traded for a better latency.
18221
+ */
18222
+ sendLastFrame?: boolean;
18185
18223
  }
18186
18224
 
18187
18225
  export interface StartScreenRecordingRequest {
@@ -19460,6 +19498,55 @@ export namespace Protocol {
19460
19498
 
19461
19499
  export type ServiceWorkerVersionStatus = ('new' | 'installing' | 'installed' | 'activating' | 'activated' | 'redundant');
19462
19500
 
19501
+ /**
19502
+ * Mostly corresponds to `RouterCondition` in ServiceWorker spec
19503
+ * (https://www.w3.org/TR/service-workers/#dictdef-routercondition) while this
19504
+ * currently lacks support for the nested conditions ("or" and "not").
19505
+ * TODO(crbug.com/540469610): Support recursive conditions.
19506
+ */
19507
+ export interface ServiceWorkerRouterCondition {
19508
+ /**
19509
+ * Plain text, or JSON serialization of URLPatternInit or URLPattern
19510
+ */
19511
+ urlPattern?: string;
19512
+ requestMethod?: string;
19513
+ requestMode?: string;
19514
+ requestDestination?: string;
19515
+ runningStatus?: ServiceWorkerVersionRunningStatus;
19516
+ }
19517
+
19518
+ export type ServiceWorkerRouterSourceType = ('cache' | 'fetchEvent' | 'network' | 'raceNetworkAndFetchHandler' | 'raceNetworkAndCache' | 'sourceDict');
19519
+
19520
+ /**
19521
+ * https://www.w3.org/TR/service-workers/#dictdef-routersourcedict
19522
+ */
19523
+ export interface ServiceWorkerRouterSourceDict {
19524
+ cacheName: string;
19525
+ }
19526
+
19527
+ /**
19528
+ * Corresponds to `RouterSource` in the spec while the representation is different as follows.
19529
+ * (https://www.w3.org/TR/service-workers/#typedefdef-routersource)
19530
+ * - `RouterSourceEnum`: `type` equals `cache`, `sourceDict` is null.
19531
+ * - `RouterSourceDict`: `type` equals `sourceDict`, `sourceDict` has valid value.
19532
+ */
19533
+ export interface ServiceWorkerRouterSource {
19534
+ type: ServiceWorkerRouterSourceType;
19535
+ /**
19536
+ * Non-empty iff `type` equals "sourceDict".
19537
+ */
19538
+ sourceDict?: ServiceWorkerRouterSourceDict;
19539
+ }
19540
+
19541
+ export interface ServiceWorkerRouterRule {
19542
+ condition: ServiceWorkerRouterCondition;
19543
+ source: ServiceWorkerRouterSource;
19544
+ /**
19545
+ * Rule ID assigned by the browser. Unique within each ServiceWorkerVersion.
19546
+ */
19547
+ id: integer;
19548
+ }
19549
+
19463
19550
  /**
19464
19551
  * ServiceWorker version.
19465
19552
  */
@@ -19480,7 +19567,13 @@ export namespace Protocol {
19480
19567
  scriptResponseTime?: number;
19481
19568
  controlledClients?: Target.TargetID[];
19482
19569
  targetId?: Target.TargetID;
19570
+ /**
19571
+ * Migration to `typedRouterRules` is in progress. The browser sends either
19572
+ * `routerRules` or `typedRouterRules`.
19573
+ * TODO(crbug.com/540469610): Remove `routerRules` after the migration.
19574
+ */
19483
19575
  routerRules?: string;
19576
+ typedRouterRules?: ServiceWorkerRouterRule[];
19484
19577
  }
19485
19578
 
19486
19579
  /**
@@ -19871,7 +19964,7 @@ export namespace Protocol {
19871
19964
  /**
19872
19965
  * Enum of possible storage types.
19873
19966
  */
19874
- export type StorageType = ('cookies' | 'file_systems' | 'indexeddb' | 'local_storage' | 'shader_cache' | 'websql' | 'service_workers' | 'cache_storage' | 'shared_storage' | 'storage_buckets' | 'all' | 'other');
19967
+ export type StorageType = ('cookies' | 'file_systems' | 'indexeddb' | 'local_storage' | 'shader_cache' | 'websql' | 'service_workers' | 'cache_storage' | 'storage_buckets' | 'all' | 'other');
19875
19968
 
19876
19969
  /**
19877
19970
  * Usage for a storage type.
@@ -19897,197 +19990,6 @@ export namespace Protocol {
19897
19990
  count: number;
19898
19991
  }
19899
19992
 
19900
- /**
19901
- * Enum of shared storage access scopes.
19902
- */
19903
- export type SharedStorageAccessScope = ('window' | 'sharedStorageWorklet' | 'header');
19904
-
19905
- /**
19906
- * Enum of shared storage access methods.
19907
- */
19908
- export type SharedStorageAccessMethod = ('addModule' | 'createWorklet' | 'selectURL' | 'run' | 'batchUpdate' | 'set' | 'append' | 'delete' | 'clear' | 'get' | 'keys' | 'values' | 'entries' | 'length' | 'remainingBudget');
19909
-
19910
- /**
19911
- * Struct for a single key-value pair in an origin's shared storage.
19912
- */
19913
- export interface SharedStorageEntry {
19914
- key: string;
19915
- value: string;
19916
- }
19917
-
19918
- /**
19919
- * Details for an origin's shared storage.
19920
- */
19921
- export interface SharedStorageMetadata {
19922
- /**
19923
- * Time when the origin's shared storage was last created.
19924
- */
19925
- creationTime: Network.TimeSinceEpoch;
19926
- /**
19927
- * Number of key-value pairs stored in origin's shared storage.
19928
- */
19929
- length: integer;
19930
- /**
19931
- * Current amount of bits of entropy remaining in the navigation budget.
19932
- */
19933
- remainingBudget: number;
19934
- /**
19935
- * Total number of bytes stored as key-value pairs in origin's shared
19936
- * storage.
19937
- */
19938
- bytesUsed: integer;
19939
- }
19940
-
19941
- /**
19942
- * Represents a dictionary object passed in as privateAggregationConfig to
19943
- * run or selectURL.
19944
- */
19945
- export interface SharedStoragePrivateAggregationConfig {
19946
- /**
19947
- * The chosen aggregation service deployment.
19948
- */
19949
- aggregationCoordinatorOrigin?: string;
19950
- /**
19951
- * The context ID provided.
19952
- */
19953
- contextId?: string;
19954
- /**
19955
- * Configures the maximum size allowed for filtering IDs.
19956
- */
19957
- filteringIdMaxBytes: integer;
19958
- /**
19959
- * The limit on the number of contributions in the final report.
19960
- */
19961
- maxContributions?: integer;
19962
- }
19963
-
19964
- /**
19965
- * Pair of reporting metadata details for a candidate URL for `selectURL()`.
19966
- */
19967
- export interface SharedStorageReportingMetadata {
19968
- eventType: string;
19969
- reportingUrl: string;
19970
- }
19971
-
19972
- /**
19973
- * Bundles a candidate URL with its reporting metadata.
19974
- */
19975
- export interface SharedStorageUrlWithMetadata {
19976
- /**
19977
- * Spec of candidate URL.
19978
- */
19979
- url: string;
19980
- /**
19981
- * Any associated reporting metadata.
19982
- */
19983
- reportingMetadata: SharedStorageReportingMetadata[];
19984
- }
19985
-
19986
- /**
19987
- * Bundles the parameters for shared storage access events whose
19988
- * presence/absence can vary according to SharedStorageAccessType.
19989
- */
19990
- export interface SharedStorageAccessParams {
19991
- /**
19992
- * Spec of the module script URL.
19993
- * Present only for SharedStorageAccessMethods: addModule and
19994
- * createWorklet.
19995
- */
19996
- scriptSourceUrl?: string;
19997
- /**
19998
- * String denoting "context-origin", "script-origin", or a custom
19999
- * origin to be used as the worklet's data origin.
20000
- * Present only for SharedStorageAccessMethod: createWorklet.
20001
- */
20002
- dataOrigin?: string;
20003
- /**
20004
- * Name of the registered operation to be run.
20005
- * Present only for SharedStorageAccessMethods: run and selectURL.
20006
- */
20007
- operationName?: string;
20008
- /**
20009
- * ID of the operation call.
20010
- * Present only for SharedStorageAccessMethods: run and selectURL.
20011
- */
20012
- operationId?: string;
20013
- /**
20014
- * Whether or not to keep the worket alive for future run or selectURL
20015
- * calls.
20016
- * Present only for SharedStorageAccessMethods: run and selectURL.
20017
- */
20018
- keepAlive?: boolean;
20019
- /**
20020
- * Configures the private aggregation options.
20021
- * Present only for SharedStorageAccessMethods: run and selectURL.
20022
- */
20023
- privateAggregationConfig?: SharedStoragePrivateAggregationConfig;
20024
- /**
20025
- * The operation's serialized data in bytes (converted to a string).
20026
- * Present only for SharedStorageAccessMethods: run and selectURL.
20027
- * TODO(crbug.com/401011862): Consider updating this parameter to binary.
20028
- */
20029
- serializedData?: string;
20030
- /**
20031
- * Array of candidate URLs' specs, along with any associated metadata.
20032
- * Present only for SharedStorageAccessMethod: selectURL.
20033
- */
20034
- urlsWithMetadata?: SharedStorageUrlWithMetadata[];
20035
- /**
20036
- * Spec of the URN:UUID generated for a selectURL call.
20037
- * Present only for SharedStorageAccessMethod: selectURL.
20038
- */
20039
- urnUuid?: string;
20040
- /**
20041
- * Key for a specific entry in an origin's shared storage.
20042
- * Present only for SharedStorageAccessMethods: set, append, delete, and
20043
- * get.
20044
- */
20045
- key?: string;
20046
- /**
20047
- * Value for a specific entry in an origin's shared storage.
20048
- * Present only for SharedStorageAccessMethods: set and append.
20049
- */
20050
- value?: string;
20051
- /**
20052
- * Whether or not to set an entry for a key if that key is already present.
20053
- * Present only for SharedStorageAccessMethod: set.
20054
- */
20055
- ignoreIfPresent?: boolean;
20056
- /**
20057
- * A number denoting the (0-based) order of the worklet's
20058
- * creation relative to all other shared storage worklets created by
20059
- * documents using the current storage partition.
20060
- * Present only for SharedStorageAccessMethods: addModule, createWorklet.
20061
- */
20062
- workletOrdinal?: integer;
20063
- /**
20064
- * Hex representation of the DevTools token used as the TargetID for the
20065
- * associated shared storage worklet.
20066
- * Present only for SharedStorageAccessMethods: addModule, createWorklet,
20067
- * run, selectURL, and any other SharedStorageAccessMethod when the
20068
- * SharedStorageAccessScope is sharedStorageWorklet.
20069
- */
20070
- workletTargetId?: Target.TargetID;
20071
- /**
20072
- * Name of the lock to be acquired, if present.
20073
- * Optionally present only for SharedStorageAccessMethods: batchUpdate,
20074
- * set, append, delete, and clear.
20075
- */
20076
- withLock?: string;
20077
- /**
20078
- * If the method has been called as part of a batchUpdate, then this
20079
- * number identifies the batch to which it belongs.
20080
- * Optionally present only for SharedStorageAccessMethods:
20081
- * batchUpdate (required), set, append, delete, and clear.
20082
- */
20083
- batchUpdateId?: string;
20084
- /**
20085
- * Number of modifier methods sent in batch.
20086
- * Present only for SharedStorageAccessMethod: batchUpdate.
20087
- */
20088
- batchSize?: integer;
20089
- }
20090
-
20091
19993
  export type StorageBucketsDurability = ('relaxed' | 'strict');
20092
19994
 
20093
19995
  export interface StorageBucket {
@@ -20313,50 +20215,6 @@ export namespace Protocol {
20313
20215
  didDeleteTokens: boolean;
20314
20216
  }
20315
20217
 
20316
- export interface GetSharedStorageMetadataRequest {
20317
- ownerOrigin: string;
20318
- }
20319
-
20320
- export interface GetSharedStorageMetadataResponse {
20321
- metadata: SharedStorageMetadata;
20322
- }
20323
-
20324
- export interface GetSharedStorageEntriesRequest {
20325
- ownerOrigin: string;
20326
- }
20327
-
20328
- export interface GetSharedStorageEntriesResponse {
20329
- entries: SharedStorageEntry[];
20330
- }
20331
-
20332
- export interface SetSharedStorageEntryRequest {
20333
- ownerOrigin: string;
20334
- key: string;
20335
- value: string;
20336
- /**
20337
- * If `ignoreIfPresent` is included and true, then only sets the entry if
20338
- * `key` doesn't already exist.
20339
- */
20340
- ignoreIfPresent?: boolean;
20341
- }
20342
-
20343
- export interface DeleteSharedStorageEntryRequest {
20344
- ownerOrigin: string;
20345
- key: string;
20346
- }
20347
-
20348
- export interface ClearSharedStorageEntriesRequest {
20349
- ownerOrigin: string;
20350
- }
20351
-
20352
- export interface ResetSharedStorageBudgetRequest {
20353
- ownerOrigin: string;
20354
- }
20355
-
20356
- export interface SetSharedStorageTrackingRequest {
20357
- enable: boolean;
20358
- }
20359
-
20360
20218
  export interface SetStorageBucketTrackingRequest {
20361
20219
  storageKey: string;
20362
20220
  enable: boolean;
@@ -20458,79 +20316,6 @@ export namespace Protocol {
20458
20316
  bucketId: string;
20459
20317
  }
20460
20318
 
20461
- /**
20462
- * Shared storage was accessed by the associated page.
20463
- * The following parameters are included in all events.
20464
- */
20465
- export interface SharedStorageAccessedEvent {
20466
- /**
20467
- * Time of the access.
20468
- */
20469
- accessTime: Network.TimeSinceEpoch;
20470
- /**
20471
- * Enum value indicating the access scope.
20472
- */
20473
- scope: SharedStorageAccessScope;
20474
- /**
20475
- * Enum value indicating the Shared Storage API method invoked.
20476
- */
20477
- method: SharedStorageAccessMethod;
20478
- /**
20479
- * DevTools Frame Token for the primary frame tree's root.
20480
- */
20481
- mainFrameId: Page.FrameId;
20482
- /**
20483
- * Serialization of the origin owning the Shared Storage data.
20484
- */
20485
- ownerOrigin: string;
20486
- /**
20487
- * Serialization of the site owning the Shared Storage data.
20488
- */
20489
- ownerSite: string;
20490
- /**
20491
- * The sub-parameters wrapped by `params` are all optional and their
20492
- * presence/absence depends on `type`.
20493
- */
20494
- params: SharedStorageAccessParams;
20495
- }
20496
-
20497
- /**
20498
- * A shared storage run or selectURL operation finished its execution.
20499
- * The following parameters are included in all events.
20500
- */
20501
- export interface SharedStorageWorkletOperationExecutionFinishedEvent {
20502
- /**
20503
- * Time that the operation finished.
20504
- */
20505
- finishedTime: Network.TimeSinceEpoch;
20506
- /**
20507
- * Time, in microseconds, from start of shared storage JS API call until
20508
- * end of operation execution in the worklet.
20509
- */
20510
- executionTime: integer;
20511
- /**
20512
- * Enum value indicating the Shared Storage API method invoked.
20513
- */
20514
- method: SharedStorageAccessMethod;
20515
- /**
20516
- * ID of the operation call.
20517
- */
20518
- operationId: string;
20519
- /**
20520
- * Hex representation of the DevTools token used as the TargetID for the
20521
- * associated shared storage worklet.
20522
- */
20523
- workletTargetId: Target.TargetID;
20524
- /**
20525
- * DevTools Frame Token for the primary frame tree's root.
20526
- */
20527
- mainFrameId: Page.FrameId;
20528
- /**
20529
- * Serialization of the origin owning the Shared Storage data.
20530
- */
20531
- ownerOrigin: string;
20532
- }
20533
-
20534
20319
  export interface StorageBucketCreatedOrUpdatedEvent {
20535
20320
  bucketInfo: StorageBucketInfo;
20536
20321
  }
@@ -22106,6 +21891,10 @@ export namespace Protocol {
22106
21891
  * A hint indicating that the tool output may contain untrusted content, ex: UGC, 3rd party data.
22107
21892
  */
22108
21893
  untrustedContent?: boolean;
21894
+ /**
21895
+ * A hint indicating that executing the tool will result in consequential actions, ex: booking a flight, transferring money.
21896
+ */
21897
+ consequential?: boolean;
22109
21898
  /**
22110
21899
  * If the declarative tool was declared with the autosubmit attribute.
22111
21900
  */