devtools-protocol 0.0.1683682 → 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.
@@ -19498,6 +19498,55 @@ export namespace Protocol {
19498
19498
 
19499
19499
  export type ServiceWorkerVersionStatus = ('new' | 'installing' | 'installed' | 'activating' | 'activated' | 'redundant');
19500
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
+
19501
19550
  /**
19502
19551
  * ServiceWorker version.
19503
19552
  */
@@ -19518,7 +19567,13 @@ export namespace Protocol {
19518
19567
  scriptResponseTime?: number;
19519
19568
  controlledClients?: Target.TargetID[];
19520
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
+ */
19521
19575
  routerRules?: string;
19576
+ typedRouterRules?: ServiceWorkerRouterRule[];
19522
19577
  }
19523
19578
 
19524
19579
  /**
@@ -19909,7 +19964,7 @@ export namespace Protocol {
19909
19964
  /**
19910
19965
  * Enum of possible storage types.
19911
19966
  */
19912
- 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');
19913
19968
 
19914
19969
  /**
19915
19970
  * Usage for a storage type.
@@ -19935,197 +19990,6 @@ export namespace Protocol {
19935
19990
  count: number;
19936
19991
  }
19937
19992
 
19938
- /**
19939
- * Enum of shared storage access scopes.
19940
- */
19941
- export type SharedStorageAccessScope = ('window' | 'sharedStorageWorklet' | 'header');
19942
-
19943
- /**
19944
- * Enum of shared storage access methods.
19945
- */
19946
- export type SharedStorageAccessMethod = ('addModule' | 'createWorklet' | 'selectURL' | 'run' | 'batchUpdate' | 'set' | 'append' | 'delete' | 'clear' | 'get' | 'keys' | 'values' | 'entries' | 'length' | 'remainingBudget');
19947
-
19948
- /**
19949
- * Struct for a single key-value pair in an origin's shared storage.
19950
- */
19951
- export interface SharedStorageEntry {
19952
- key: string;
19953
- value: string;
19954
- }
19955
-
19956
- /**
19957
- * Details for an origin's shared storage.
19958
- */
19959
- export interface SharedStorageMetadata {
19960
- /**
19961
- * Time when the origin's shared storage was last created.
19962
- */
19963
- creationTime: Network.TimeSinceEpoch;
19964
- /**
19965
- * Number of key-value pairs stored in origin's shared storage.
19966
- */
19967
- length: integer;
19968
- /**
19969
- * Current amount of bits of entropy remaining in the navigation budget.
19970
- */
19971
- remainingBudget: number;
19972
- /**
19973
- * Total number of bytes stored as key-value pairs in origin's shared
19974
- * storage.
19975
- */
19976
- bytesUsed: integer;
19977
- }
19978
-
19979
- /**
19980
- * Represents a dictionary object passed in as privateAggregationConfig to
19981
- * run or selectURL.
19982
- */
19983
- export interface SharedStoragePrivateAggregationConfig {
19984
- /**
19985
- * The chosen aggregation service deployment.
19986
- */
19987
- aggregationCoordinatorOrigin?: string;
19988
- /**
19989
- * The context ID provided.
19990
- */
19991
- contextId?: string;
19992
- /**
19993
- * Configures the maximum size allowed for filtering IDs.
19994
- */
19995
- filteringIdMaxBytes: integer;
19996
- /**
19997
- * The limit on the number of contributions in the final report.
19998
- */
19999
- maxContributions?: integer;
20000
- }
20001
-
20002
- /**
20003
- * Pair of reporting metadata details for a candidate URL for `selectURL()`.
20004
- */
20005
- export interface SharedStorageReportingMetadata {
20006
- eventType: string;
20007
- reportingUrl: string;
20008
- }
20009
-
20010
- /**
20011
- * Bundles a candidate URL with its reporting metadata.
20012
- */
20013
- export interface SharedStorageUrlWithMetadata {
20014
- /**
20015
- * Spec of candidate URL.
20016
- */
20017
- url: string;
20018
- /**
20019
- * Any associated reporting metadata.
20020
- */
20021
- reportingMetadata: SharedStorageReportingMetadata[];
20022
- }
20023
-
20024
- /**
20025
- * Bundles the parameters for shared storage access events whose
20026
- * presence/absence can vary according to SharedStorageAccessType.
20027
- */
20028
- export interface SharedStorageAccessParams {
20029
- /**
20030
- * Spec of the module script URL.
20031
- * Present only for SharedStorageAccessMethods: addModule and
20032
- * createWorklet.
20033
- */
20034
- scriptSourceUrl?: string;
20035
- /**
20036
- * String denoting "context-origin", "script-origin", or a custom
20037
- * origin to be used as the worklet's data origin.
20038
- * Present only for SharedStorageAccessMethod: createWorklet.
20039
- */
20040
- dataOrigin?: string;
20041
- /**
20042
- * Name of the registered operation to be run.
20043
- * Present only for SharedStorageAccessMethods: run and selectURL.
20044
- */
20045
- operationName?: string;
20046
- /**
20047
- * ID of the operation call.
20048
- * Present only for SharedStorageAccessMethods: run and selectURL.
20049
- */
20050
- operationId?: string;
20051
- /**
20052
- * Whether or not to keep the worket alive for future run or selectURL
20053
- * calls.
20054
- * Present only for SharedStorageAccessMethods: run and selectURL.
20055
- */
20056
- keepAlive?: boolean;
20057
- /**
20058
- * Configures the private aggregation options.
20059
- * Present only for SharedStorageAccessMethods: run and selectURL.
20060
- */
20061
- privateAggregationConfig?: SharedStoragePrivateAggregationConfig;
20062
- /**
20063
- * The operation's serialized data in bytes (converted to a string).
20064
- * Present only for SharedStorageAccessMethods: run and selectURL.
20065
- * TODO(crbug.com/401011862): Consider updating this parameter to binary.
20066
- */
20067
- serializedData?: string;
20068
- /**
20069
- * Array of candidate URLs' specs, along with any associated metadata.
20070
- * Present only for SharedStorageAccessMethod: selectURL.
20071
- */
20072
- urlsWithMetadata?: SharedStorageUrlWithMetadata[];
20073
- /**
20074
- * Spec of the URN:UUID generated for a selectURL call.
20075
- * Present only for SharedStorageAccessMethod: selectURL.
20076
- */
20077
- urnUuid?: string;
20078
- /**
20079
- * Key for a specific entry in an origin's shared storage.
20080
- * Present only for SharedStorageAccessMethods: set, append, delete, and
20081
- * get.
20082
- */
20083
- key?: string;
20084
- /**
20085
- * Value for a specific entry in an origin's shared storage.
20086
- * Present only for SharedStorageAccessMethods: set and append.
20087
- */
20088
- value?: string;
20089
- /**
20090
- * Whether or not to set an entry for a key if that key is already present.
20091
- * Present only for SharedStorageAccessMethod: set.
20092
- */
20093
- ignoreIfPresent?: boolean;
20094
- /**
20095
- * A number denoting the (0-based) order of the worklet's
20096
- * creation relative to all other shared storage worklets created by
20097
- * documents using the current storage partition.
20098
- * Present only for SharedStorageAccessMethods: addModule, createWorklet.
20099
- */
20100
- workletOrdinal?: integer;
20101
- /**
20102
- * Hex representation of the DevTools token used as the TargetID for the
20103
- * associated shared storage worklet.
20104
- * Present only for SharedStorageAccessMethods: addModule, createWorklet,
20105
- * run, selectURL, and any other SharedStorageAccessMethod when the
20106
- * SharedStorageAccessScope is sharedStorageWorklet.
20107
- */
20108
- workletTargetId?: Target.TargetID;
20109
- /**
20110
- * Name of the lock to be acquired, if present.
20111
- * Optionally present only for SharedStorageAccessMethods: batchUpdate,
20112
- * set, append, delete, and clear.
20113
- */
20114
- withLock?: string;
20115
- /**
20116
- * If the method has been called as part of a batchUpdate, then this
20117
- * number identifies the batch to which it belongs.
20118
- * Optionally present only for SharedStorageAccessMethods:
20119
- * batchUpdate (required), set, append, delete, and clear.
20120
- */
20121
- batchUpdateId?: string;
20122
- /**
20123
- * Number of modifier methods sent in batch.
20124
- * Present only for SharedStorageAccessMethod: batchUpdate.
20125
- */
20126
- batchSize?: integer;
20127
- }
20128
-
20129
19993
  export type StorageBucketsDurability = ('relaxed' | 'strict');
20130
19994
 
20131
19995
  export interface StorageBucket {
@@ -20351,50 +20215,6 @@ export namespace Protocol {
20351
20215
  didDeleteTokens: boolean;
20352
20216
  }
20353
20217
 
20354
- export interface GetSharedStorageMetadataRequest {
20355
- ownerOrigin: string;
20356
- }
20357
-
20358
- export interface GetSharedStorageMetadataResponse {
20359
- metadata: SharedStorageMetadata;
20360
- }
20361
-
20362
- export interface GetSharedStorageEntriesRequest {
20363
- ownerOrigin: string;
20364
- }
20365
-
20366
- export interface GetSharedStorageEntriesResponse {
20367
- entries: SharedStorageEntry[];
20368
- }
20369
-
20370
- export interface SetSharedStorageEntryRequest {
20371
- ownerOrigin: string;
20372
- key: string;
20373
- value: string;
20374
- /**
20375
- * If `ignoreIfPresent` is included and true, then only sets the entry if
20376
- * `key` doesn't already exist.
20377
- */
20378
- ignoreIfPresent?: boolean;
20379
- }
20380
-
20381
- export interface DeleteSharedStorageEntryRequest {
20382
- ownerOrigin: string;
20383
- key: string;
20384
- }
20385
-
20386
- export interface ClearSharedStorageEntriesRequest {
20387
- ownerOrigin: string;
20388
- }
20389
-
20390
- export interface ResetSharedStorageBudgetRequest {
20391
- ownerOrigin: string;
20392
- }
20393
-
20394
- export interface SetSharedStorageTrackingRequest {
20395
- enable: boolean;
20396
- }
20397
-
20398
20218
  export interface SetStorageBucketTrackingRequest {
20399
20219
  storageKey: string;
20400
20220
  enable: boolean;
@@ -20496,79 +20316,6 @@ export namespace Protocol {
20496
20316
  bucketId: string;
20497
20317
  }
20498
20318
 
20499
- /**
20500
- * Shared storage was accessed by the associated page.
20501
- * The following parameters are included in all events.
20502
- */
20503
- export interface SharedStorageAccessedEvent {
20504
- /**
20505
- * Time of the access.
20506
- */
20507
- accessTime: Network.TimeSinceEpoch;
20508
- /**
20509
- * Enum value indicating the access scope.
20510
- */
20511
- scope: SharedStorageAccessScope;
20512
- /**
20513
- * Enum value indicating the Shared Storage API method invoked.
20514
- */
20515
- method: SharedStorageAccessMethod;
20516
- /**
20517
- * DevTools Frame Token for the primary frame tree's root.
20518
- */
20519
- mainFrameId: Page.FrameId;
20520
- /**
20521
- * Serialization of the origin owning the Shared Storage data.
20522
- */
20523
- ownerOrigin: string;
20524
- /**
20525
- * Serialization of the site owning the Shared Storage data.
20526
- */
20527
- ownerSite: string;
20528
- /**
20529
- * The sub-parameters wrapped by `params` are all optional and their
20530
- * presence/absence depends on `type`.
20531
- */
20532
- params: SharedStorageAccessParams;
20533
- }
20534
-
20535
- /**
20536
- * A shared storage run or selectURL operation finished its execution.
20537
- * The following parameters are included in all events.
20538
- */
20539
- export interface SharedStorageWorkletOperationExecutionFinishedEvent {
20540
- /**
20541
- * Time that the operation finished.
20542
- */
20543
- finishedTime: Network.TimeSinceEpoch;
20544
- /**
20545
- * Time, in microseconds, from start of shared storage JS API call until
20546
- * end of operation execution in the worklet.
20547
- */
20548
- executionTime: integer;
20549
- /**
20550
- * Enum value indicating the Shared Storage API method invoked.
20551
- */
20552
- method: SharedStorageAccessMethod;
20553
- /**
20554
- * ID of the operation call.
20555
- */
20556
- operationId: string;
20557
- /**
20558
- * Hex representation of the DevTools token used as the TargetID for the
20559
- * associated shared storage worklet.
20560
- */
20561
- workletTargetId: Target.TargetID;
20562
- /**
20563
- * DevTools Frame Token for the primary frame tree's root.
20564
- */
20565
- mainFrameId: Page.FrameId;
20566
- /**
20567
- * Serialization of the origin owning the Shared Storage data.
20568
- */
20569
- ownerOrigin: string;
20570
- }
20571
-
20572
20319
  export interface StorageBucketCreatedOrUpdatedEvent {
20573
20320
  bucketInfo: StorageBucketInfo;
20574
20321
  }
@@ -22144,6 +21891,10 @@ export namespace Protocol {
22144
21891
  * A hint indicating that the tool output may contain untrusted content, ex: UGC, 3rd party data.
22145
21892
  */
22146
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;
22147
21898
  /**
22148
21899
  * If the declarative tool was declared with the autosubmit attribute.
22149
21900
  */