devtools-protocol 0.0.1683682 → 0.0.1686980

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.
@@ -4903,6 +4903,15 @@ export namespace Protocol {
4903
4903
  arguments: string[];
4904
4904
  }
4905
4905
 
4906
+ export interface AddMockCameraRequest {
4907
+ /**
4908
+ * Required non-empty identifier for the mock camera. This is mapped to an
4909
+ * internal virtual-device identifier and is not the MediaDeviceInfo.deviceId
4910
+ * exposed to the page.
4911
+ */
4912
+ deviceId: string;
4913
+ }
4914
+
4906
4915
  export interface GetHistogramsRequest {
4907
4916
  /**
4908
4917
  * Requested substring in name. Only histograms which have query as a
@@ -16679,7 +16688,7 @@ export namespace Protocol {
16679
16688
  * in services/network/public/cpp/permissions_policy/permissions_policy_features.json5.
16680
16689
  * @experimental
16681
16690
  */
16682
- export type PermissionsPolicyFeature = ('accelerometer' | 'all-screens-capture' | 'ambient-light-sensor' | 'aria-notify' | 'autofill' | 'autoplay' | 'bluetooth' | 'browsing-topics' | 'camera' | 'captured-surface-control' | 'ch-dpr' | 'ch-device-memory' | 'ch-downlink' | 'ch-ect' | 'ch-prefers-color-scheme' | 'ch-prefers-reduced-motion' | 'ch-prefers-reduced-transparency' | 'ch-rtt' | 'ch-save-data' | 'ch-ua' | 'ch-ua-arch' | 'ch-ua-bitness' | 'ch-ua-high-entropy-values' | 'ch-ua-platform' | 'ch-ua-model' | 'ch-ua-mobile' | 'ch-ua-form-factors' | 'ch-ua-full-version' | 'ch-ua-full-version-list' | 'ch-ua-platform-version' | 'ch-ua-wow64' | 'ch-viewport-height' | 'ch-viewport-width' | 'ch-width' | 'clipboard-read' | 'clipboard-write' | 'compute-pressure' | 'controlled-frame' | 'cross-origin-isolated' | 'deferred-fetch' | 'deferred-fetch-minimal' | 'device-attributes' | 'digital-credentials-create' | 'digital-credentials-get' | 'direct-sockets' | 'direct-sockets-multicast' | 'display-capture' | 'document-domain' | 'encrypted-media' | 'execution-while-out-of-viewport' | 'execution-while-not-rendered' | 'focus-without-user-activation' | 'fullscreen' | 'frobulate' | 'gamepad' | 'geolocation' | 'gyroscope' | 'hid' | 'identity-credentials-get' | 'idle-detection' | 'interest-cohort' | 'keyboard-map' | 'language-detector' | 'language-model' | 'local-fonts' | 'local-network' | 'local-network-access' | 'loopback-network' | 'magnetometer' | 'manual-text' | 'media-playback-while-not-visible' | 'microphone' | 'midi' | 'on-device-speech-recognition' | 'otp-credentials' | 'payment' | 'picture-in-picture' | 'private-state-token-issuance' | 'private-state-token-redemption' | 'publickey-credentials-create' | 'publickey-credentials-get' | 'rewriter' | 'screen-wake-lock' | 'serial' | 'shared-storage' | 'shared-storage-select-url' | 'smart-card' | 'speaker-selection' | 'storage-access' | 'sub-apps' | 'summarizer' | 'sync-xhr' | 'tools' | 'translator' | 'unload' | 'usb' | 'usb-unrestricted' | 'vertical-scroll' | 'web-app-installation' | 'webnn' | 'web-printing' | 'web-share' | 'window-management' | 'writer' | 'xr-spatial-tracking');
16691
+ export type PermissionsPolicyFeature = ('accelerometer' | 'all-screens-capture' | 'ambient-light-sensor' | 'aria-notify' | 'autofill' | 'autoplay' | 'bluetooth' | 'browsing-topics' | 'camera' | 'captured-surface-control' | 'ch-dpr' | 'ch-device-memory' | 'ch-downlink' | 'ch-ect' | 'ch-prefers-color-scheme' | 'ch-prefers-reduced-motion' | 'ch-prefers-reduced-transparency' | 'ch-rtt' | 'ch-save-data' | 'ch-ua' | 'ch-ua-arch' | 'ch-ua-bitness' | 'ch-ua-high-entropy-values' | 'ch-ua-platform' | 'ch-ua-model' | 'ch-ua-mobile' | 'ch-ua-form-factors' | 'ch-ua-full-version' | 'ch-ua-full-version-list' | 'ch-ua-platform-version' | 'ch-ua-wow64' | 'ch-viewport-height' | 'ch-viewport-width' | 'ch-width' | 'clipboard-read' | 'clipboard-write' | 'compute-pressure' | 'controlled-frame' | 'cross-origin-isolated' | 'deferred-fetch' | 'deferred-fetch-minimal' | 'device-attributes' | 'digital-credentials-create' | 'digital-credentials-get' | 'direct-sockets' | 'direct-sockets-multicast' | 'display-capture' | 'document-domain' | 'encrypted-media' | 'execution-while-out-of-viewport' | 'execution-while-not-rendered' | 'focus-without-user-activation' | 'fullscreen' | 'frobulate' | 'gamepad' | 'geolocation' | 'gyroscope' | 'haptics' | 'hid' | 'identity-credentials-get' | 'idle-detection' | 'interest-cohort' | 'keyboard-map' | 'language-detector' | 'language-model' | 'local-fonts' | 'local-network' | 'local-network-access' | 'loopback-network' | 'magnetometer' | 'manual-text' | 'media-playback-while-not-visible' | 'microphone' | 'midi' | 'on-device-speech-recognition' | 'otp-credentials' | 'payment' | 'picture-in-picture' | 'private-state-token-issuance' | 'private-state-token-redemption' | 'publickey-credentials-create' | 'publickey-credentials-get' | 'rewriter' | 'screen-wake-lock' | 'serial' | 'shared-storage' | 'shared-storage-select-url' | 'smart-card' | 'speaker-selection' | 'storage-access' | 'sub-apps' | 'summarizer' | 'sync-xhr' | 'tools' | 'translator' | 'unload' | 'usb' | 'usb-unrestricted' | 'vertical-scroll' | 'web-app-installation' | 'webnn' | 'web-printing' | 'web-share' | 'window-management' | 'writer' | 'xr-spatial-tracking');
16683
16692
 
16684
16693
  /**
16685
16694
  * Reason for a permissions policy feature to be disabled.
@@ -19498,6 +19507,55 @@ export namespace Protocol {
19498
19507
 
19499
19508
  export type ServiceWorkerVersionStatus = ('new' | 'installing' | 'installed' | 'activating' | 'activated' | 'redundant');
19500
19509
 
19510
+ /**
19511
+ * Mostly corresponds to `RouterCondition` in ServiceWorker spec
19512
+ * (https://www.w3.org/TR/service-workers/#dictdef-routercondition) while this
19513
+ * currently lacks support for the nested conditions ("or" and "not").
19514
+ * TODO(crbug.com/540469610): Support recursive conditions.
19515
+ */
19516
+ export interface ServiceWorkerRouterCondition {
19517
+ /**
19518
+ * Plain text, or JSON serialization of URLPatternInit or URLPattern
19519
+ */
19520
+ urlPattern?: string;
19521
+ requestMethod?: string;
19522
+ requestMode?: string;
19523
+ requestDestination?: string;
19524
+ runningStatus?: ServiceWorkerVersionRunningStatus;
19525
+ }
19526
+
19527
+ export type ServiceWorkerRouterSourceType = ('cache' | 'fetchEvent' | 'network' | 'raceNetworkAndFetchHandler' | 'raceNetworkAndCache' | 'sourceDict');
19528
+
19529
+ /**
19530
+ * https://www.w3.org/TR/service-workers/#dictdef-routersourcedict
19531
+ */
19532
+ export interface ServiceWorkerRouterSourceDict {
19533
+ cacheName: string;
19534
+ }
19535
+
19536
+ /**
19537
+ * Corresponds to `RouterSource` in the spec while the representation is different as follows.
19538
+ * (https://www.w3.org/TR/service-workers/#typedefdef-routersource)
19539
+ * - `RouterSourceEnum`: `type` equals `cache`, `sourceDict` is null.
19540
+ * - `RouterSourceDict`: `type` equals `sourceDict`, `sourceDict` has valid value.
19541
+ */
19542
+ export interface ServiceWorkerRouterSource {
19543
+ type: ServiceWorkerRouterSourceType;
19544
+ /**
19545
+ * Non-empty iff `type` equals "sourceDict".
19546
+ */
19547
+ sourceDict?: ServiceWorkerRouterSourceDict;
19548
+ }
19549
+
19550
+ export interface ServiceWorkerRouterRule {
19551
+ condition: ServiceWorkerRouterCondition;
19552
+ source: ServiceWorkerRouterSource;
19553
+ /**
19554
+ * Rule ID assigned by the browser. Unique within each ServiceWorkerVersion.
19555
+ */
19556
+ id: integer;
19557
+ }
19558
+
19501
19559
  /**
19502
19560
  * ServiceWorker version.
19503
19561
  */
@@ -19518,7 +19576,13 @@ export namespace Protocol {
19518
19576
  scriptResponseTime?: number;
19519
19577
  controlledClients?: Target.TargetID[];
19520
19578
  targetId?: Target.TargetID;
19579
+ /**
19580
+ * Migration to `typedRouterRules` is in progress. The browser sends either
19581
+ * `routerRules` or `typedRouterRules`.
19582
+ * TODO(crbug.com/540469610): Remove `routerRules` after the migration.
19583
+ */
19521
19584
  routerRules?: string;
19585
+ typedRouterRules?: ServiceWorkerRouterRule[];
19522
19586
  }
19523
19587
 
19524
19588
  /**
@@ -19909,7 +19973,7 @@ export namespace Protocol {
19909
19973
  /**
19910
19974
  * Enum of possible storage types.
19911
19975
  */
19912
- export type StorageType = ('cookies' | 'file_systems' | 'indexeddb' | 'local_storage' | 'shader_cache' | 'websql' | 'service_workers' | 'cache_storage' | 'shared_storage' | 'storage_buckets' | 'all' | 'other');
19976
+ export type StorageType = ('cookies' | 'file_systems' | 'indexeddb' | 'local_storage' | 'shader_cache' | 'websql' | 'service_workers' | 'cache_storage' | 'storage_buckets' | 'all' | 'other');
19913
19977
 
19914
19978
  /**
19915
19979
  * Usage for a storage type.
@@ -19935,197 +19999,6 @@ export namespace Protocol {
19935
19999
  count: number;
19936
20000
  }
19937
20001
 
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
20002
  export type StorageBucketsDurability = ('relaxed' | 'strict');
20130
20003
 
20131
20004
  export interface StorageBucket {
@@ -20351,50 +20224,6 @@ export namespace Protocol {
20351
20224
  didDeleteTokens: boolean;
20352
20225
  }
20353
20226
 
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
20227
  export interface SetStorageBucketTrackingRequest {
20399
20228
  storageKey: string;
20400
20229
  enable: boolean;
@@ -20496,79 +20325,6 @@ export namespace Protocol {
20496
20325
  bucketId: string;
20497
20326
  }
20498
20327
 
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
20328
  export interface StorageBucketCreatedOrUpdatedEvent {
20573
20329
  bucketInfo: StorageBucketInfo;
20574
20330
  }
@@ -22144,6 +21900,10 @@ export namespace Protocol {
22144
21900
  * A hint indicating that the tool output may contain untrusted content, ex: UGC, 3rd party data.
22145
21901
  */
22146
21902
  untrustedContent?: boolean;
21903
+ /**
21904
+ * A hint indicating that executing the tool will result in consequential actions, ex: booking a flight, transferring money.
21905
+ */
21906
+ consequential?: boolean;
22147
21907
  /**
22148
21908
  * If the declarative tool was declared with the autosubmit attribute.
22149
21909
  */