devtools-protocol 0.0.1145810 → 0.0.1146845

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.
@@ -1626,7 +1626,8 @@
1626
1626
  "IdTokenInvalidContentType",
1627
1627
  "ErrorIdToken",
1628
1628
  "Canceled",
1629
- "RpPageNotVisible"
1629
+ "RpPageNotVisible",
1630
+ "SilentMediationFailure"
1630
1631
  ]
1631
1632
  },
1632
1633
  {
@@ -2633,6 +2634,16 @@
2633
2634
  "$ref": "BrowserCommandId"
2634
2635
  }
2635
2636
  ]
2637
+ },
2638
+ {
2639
+ "name": "addPrivacySandboxEnrollmentOverride",
2640
+ "description": "Allows a site to use privacy sandbox features that require enrollment\nwithout the site actually being enrolled. Only supported on page targets.",
2641
+ "parameters": [
2642
+ {
2643
+ "name": "url",
2644
+ "type": "string"
2645
+ }
2646
+ ]
2636
2647
  }
2637
2648
  ],
2638
2649
  "events": [
@@ -4379,6 +4390,9 @@
4379
4390
  {
4380
4391
  "domain": "CacheStorage",
4381
4392
  "experimental": true,
4393
+ "dependencies": [
4394
+ "Storage"
4395
+ ],
4382
4396
  "types": [
4383
4397
  {
4384
4398
  "id": "CacheId",
@@ -4471,6 +4485,12 @@
4471
4485
  "description": "Storage key of the cache.",
4472
4486
  "type": "string"
4473
4487
  },
4488
+ {
4489
+ "name": "storageBucket",
4490
+ "description": "Storage bucket of the cache.",
4491
+ "optional": true,
4492
+ "$ref": "Storage.StorageBucket"
4493
+ },
4474
4494
  {
4475
4495
  "name": "cacheName",
4476
4496
  "description": "The name of the cache.",
@@ -4539,7 +4559,7 @@
4539
4559
  "parameters": [
4540
4560
  {
4541
4561
  "name": "securityOrigin",
4542
- "description": "At least and at most one of securityOrigin, storageKey must be specified.\nSecurity origin.",
4562
+ "description": "At least and at most one of securityOrigin, storageKey, storageBucket must be specified.\nSecurity origin.",
4543
4563
  "optional": true,
4544
4564
  "type": "string"
4545
4565
  },
@@ -4548,6 +4568,12 @@
4548
4568
  "description": "Storage key.",
4549
4569
  "optional": true,
4550
4570
  "type": "string"
4571
+ },
4572
+ {
4573
+ "name": "storageBucket",
4574
+ "description": "Storage bucket. If not specified, it uses the default bucket.",
4575
+ "optional": true,
4576
+ "$ref": "Storage.StorageBucket"
4551
4577
  }
4552
4578
  ],
4553
4579
  "returns": [
@@ -20053,6 +20079,11 @@
20053
20079
  "description": "Storage key to update.",
20054
20080
  "type": "string"
20055
20081
  },
20082
+ {
20083
+ "name": "bucketId",
20084
+ "description": "Storage bucket to update.",
20085
+ "type": "string"
20086
+ },
20056
20087
  {
20057
20088
  "name": "cacheName",
20058
20089
  "description": "Name of cache in origin.",
@@ -20073,6 +20104,11 @@
20073
20104
  "name": "storageKey",
20074
20105
  "description": "Storage key to update.",
20075
20106
  "type": "string"
20107
+ },
20108
+ {
20109
+ "name": "bucketId",
20110
+ "description": "Storage bucket to update.",
20111
+ "type": "string"
20076
20112
  }
20077
20113
  ]
20078
20114
  },
@@ -23258,17 +23294,6 @@
23258
23294
  "MemoryPressureAfterTriggered"
23259
23295
  ]
23260
23296
  },
23261
- {
23262
- "id": "PreloadEnabledState",
23263
- "type": "string",
23264
- "enum": [
23265
- "Enabled",
23266
- "DisabledByDataSaver",
23267
- "DisabledByBatterySaver",
23268
- "DisabledByPreference",
23269
- "NotSupported"
23270
- ]
23271
- },
23272
23297
  {
23273
23298
  "id": "PreloadingStatus",
23274
23299
  "description": "Preloading status values, see also PreloadingTriggeringOutcome. This\nstatus is shared by prefetchStatusUpdated and prerenderStatusUpdated.",
@@ -23294,6 +23319,7 @@
23294
23319
  "PrefetchFailedNetError",
23295
23320
  "PrefetchFailedNon2XX",
23296
23321
  "PrefetchFailedPerPageLimitExceeded",
23322
+ "PrefetchEvicted",
23297
23323
  "PrefetchHeldback",
23298
23324
  "PrefetchIneligibleRetryAfter",
23299
23325
  "PrefetchIsPrivacyDecoy",
@@ -23381,8 +23407,16 @@
23381
23407
  "description": "Fired when a preload enabled state is updated.",
23382
23408
  "parameters": [
23383
23409
  {
23384
- "name": "state",
23385
- "$ref": "PreloadEnabledState"
23410
+ "name": "disabledByPreference",
23411
+ "type": "boolean"
23412
+ },
23413
+ {
23414
+ "name": "disabledByDataSaver",
23415
+ "type": "boolean"
23416
+ },
23417
+ {
23418
+ "name": "disabledByBatterySaver",
23419
+ "type": "boolean"
23386
23420
  }
23387
23421
  ]
23388
23422
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "devtools-protocol",
3
- "version": "0.0.1145810",
3
+ "version": "0.0.1146845",
4
4
  "description": "The Chrome DevTools Protocol JSON",
5
5
  "repository": "https://github.com/ChromeDevTools/devtools-protocol",
6
6
  "author": "The Chromium Authors",
@@ -817,6 +817,7 @@ experimental domain Audits
817
817
  ErrorIdToken
818
818
  Canceled
819
819
  RpPageNotVisible
820
+ SilentMediationFailure
820
821
 
821
822
  # This issue tracks client hints related issues. It's used to deprecate old
822
823
  # features, encourage the use of new ones, and provide general guidance.
@@ -1314,6 +1315,12 @@ domain Browser
1314
1315
  parameters
1315
1316
  BrowserCommandId commandId
1316
1317
 
1318
+ # Allows a site to use privacy sandbox features that require enrollment
1319
+ # without the site actually being enrolled. Only supported on page targets.
1320
+ command addPrivacySandboxEnrollmentOverride
1321
+ parameters
1322
+ string url
1323
+
1317
1324
  # This domain exposes CSS read/write operations. All CSS objects (stylesheets, rules, and styles)
1318
1325
  # have an associated `id` used in subsequent operations on the related object. Each object type has
1319
1326
  # a specific `id` structure, and those are not interchangeable between objects of different kinds.
@@ -2040,6 +2047,7 @@ experimental domain CSS
2040
2047
  StyleSheetId styleSheetId
2041
2048
 
2042
2049
  experimental domain CacheStorage
2050
+ depends on Storage
2043
2051
 
2044
2052
  # Unique identifier of the Cache object.
2045
2053
  type CacheId extends string
@@ -2083,6 +2091,8 @@ experimental domain CacheStorage
2083
2091
  string securityOrigin
2084
2092
  # Storage key of the cache.
2085
2093
  string storageKey
2094
+ # Storage bucket of the cache.
2095
+ optional Storage.StorageBucket storageBucket
2086
2096
  # The name of the cache.
2087
2097
  string cacheName
2088
2098
 
@@ -2114,11 +2124,13 @@ experimental domain CacheStorage
2114
2124
  # Requests cache names.
2115
2125
  command requestCacheNames
2116
2126
  parameters
2117
- # At least and at most one of securityOrigin, storageKey must be specified.
2127
+ # At least and at most one of securityOrigin, storageKey, storageBucket must be specified.
2118
2128
  # Security origin.
2119
2129
  optional string securityOrigin
2120
2130
  # Storage key.
2121
2131
  optional string storageKey
2132
+ # Storage bucket. If not specified, it uses the default bucket.
2133
+ optional Storage.StorageBucket storageBucket
2122
2134
  returns
2123
2135
  # Caches for the security origin.
2124
2136
  array of Cache caches
@@ -9425,6 +9437,8 @@ experimental domain Storage
9425
9437
  string origin
9426
9438
  # Storage key to update.
9427
9439
  string storageKey
9440
+ # Storage bucket to update.
9441
+ string bucketId
9428
9442
  # Name of cache in origin.
9429
9443
  string cacheName
9430
9444
 
@@ -9435,6 +9449,8 @@ experimental domain Storage
9435
9449
  string origin
9436
9450
  # Storage key to update.
9437
9451
  string storageKey
9452
+ # Storage bucket to update.
9453
+ string bucketId
9438
9454
 
9439
9455
  # The origin's IndexedDB object store has been modified.
9440
9456
  event indexedDBContentUpdated
@@ -11017,19 +11033,12 @@ experimental domain Preload
11017
11033
  # that is incompatible with prerender and has caused the cancellation of the attempt
11018
11034
  optional string disallowedApiMethod
11019
11035
 
11020
- type PreloadEnabledState extends string
11021
- enum
11022
- Enabled
11023
- DisabledByDataSaver
11024
- DisabledByBatterySaver
11025
- DisabledByPreference
11026
- # Service not available.
11027
- NotSupported
11028
-
11029
11036
  # Fired when a preload enabled state is updated.
11030
11037
  event preloadEnabledStateUpdated
11031
11038
  parameters
11032
- PreloadEnabledState state
11039
+ boolean disabledByPreference
11040
+ boolean disabledByDataSaver
11041
+ boolean disabledByBatterySaver
11033
11042
 
11034
11043
  # Preloading status values, see also PreloadingTriggeringOutcome. This
11035
11044
  # status is shared by prefetchStatusUpdated and prerenderStatusUpdated.
@@ -11055,6 +11064,7 @@ experimental domain Preload
11055
11064
  PrefetchFailedNetError
11056
11065
  PrefetchFailedNon2XX
11057
11066
  PrefetchFailedPerPageLimitExceeded
11067
+ PrefetchEvicted
11058
11068
  PrefetchHeldback
11059
11069
  # A previous prefetch to the origin got a HTTP 503 response with an
11060
11070
  # Retry-After header that has no elapsed yet.
@@ -1623,6 +1623,14 @@ export namespace ProtocolMapping {
1623
1623
  paramsType: [Protocol.Browser.ExecuteBrowserCommandRequest];
1624
1624
  returnType: void;
1625
1625
  };
1626
+ /**
1627
+ * Allows a site to use privacy sandbox features that require enrollment
1628
+ * without the site actually being enrolled. Only supported on page targets.
1629
+ */
1630
+ 'Browser.addPrivacySandboxEnrollmentOverride': {
1631
+ paramsType: [Protocol.Browser.AddPrivacySandboxEnrollmentOverrideRequest];
1632
+ returnType: void;
1633
+ };
1626
1634
  /**
1627
1635
  * Inserts a new rule with the given `ruleText` in a stylesheet with given `styleSheetId`, at the
1628
1636
  * position specified by `location`.
@@ -928,6 +928,12 @@ export namespace ProtocolProxyApi {
928
928
  */
929
929
  executeBrowserCommand(params: Protocol.Browser.ExecuteBrowserCommandRequest): Promise<void>;
930
930
 
931
+ /**
932
+ * Allows a site to use privacy sandbox features that require enrollment
933
+ * without the site actually being enrolled. Only supported on page targets.
934
+ */
935
+ addPrivacySandboxEnrollmentOverride(params: Protocol.Browser.AddPrivacySandboxEnrollmentOverrideRequest): Promise<void>;
936
+
931
937
  /**
932
938
  * Fired when page is about to start a download.
933
939
  */
@@ -3520,7 +3520,7 @@ export namespace Protocol {
3520
3520
  * third_party/blink/public/mojom/devtools/inspector_issue.mojom to include
3521
3521
  * all cases except for success.
3522
3522
  */
3523
- export type FederatedAuthRequestIssueReason = ('ShouldEmbargo' | 'TooManyRequests' | 'WellKnownHttpNotFound' | 'WellKnownNoResponse' | 'WellKnownInvalidResponse' | 'WellKnownListEmpty' | 'WellKnownInvalidContentType' | 'ConfigNotInWellKnown' | 'WellKnownTooBig' | 'ConfigHttpNotFound' | 'ConfigNoResponse' | 'ConfigInvalidResponse' | 'ConfigInvalidContentType' | 'ClientMetadataHttpNotFound' | 'ClientMetadataNoResponse' | 'ClientMetadataInvalidResponse' | 'ClientMetadataInvalidContentType' | 'DisabledInSettings' | 'ErrorFetchingSignin' | 'InvalidSigninResponse' | 'AccountsHttpNotFound' | 'AccountsNoResponse' | 'AccountsInvalidResponse' | 'AccountsListEmpty' | 'AccountsInvalidContentType' | 'IdTokenHttpNotFound' | 'IdTokenNoResponse' | 'IdTokenInvalidResponse' | 'IdTokenInvalidRequest' | 'IdTokenInvalidContentType' | 'ErrorIdToken' | 'Canceled' | 'RpPageNotVisible');
3523
+ export type FederatedAuthRequestIssueReason = ('ShouldEmbargo' | 'TooManyRequests' | 'WellKnownHttpNotFound' | 'WellKnownNoResponse' | 'WellKnownInvalidResponse' | 'WellKnownListEmpty' | 'WellKnownInvalidContentType' | 'ConfigNotInWellKnown' | 'WellKnownTooBig' | 'ConfigHttpNotFound' | 'ConfigNoResponse' | 'ConfigInvalidResponse' | 'ConfigInvalidContentType' | 'ClientMetadataHttpNotFound' | 'ClientMetadataNoResponse' | 'ClientMetadataInvalidResponse' | 'ClientMetadataInvalidContentType' | 'DisabledInSettings' | 'ErrorFetchingSignin' | 'InvalidSigninResponse' | 'AccountsHttpNotFound' | 'AccountsNoResponse' | 'AccountsInvalidResponse' | 'AccountsListEmpty' | 'AccountsInvalidContentType' | 'IdTokenHttpNotFound' | 'IdTokenNoResponse' | 'IdTokenInvalidResponse' | 'IdTokenInvalidRequest' | 'IdTokenInvalidContentType' | 'ErrorIdToken' | 'Canceled' | 'RpPageNotVisible' | 'SilentMediationFailure');
3524
3524
 
3525
3525
  /**
3526
3526
  * This issue tracks client hints related issues. It's used to deprecate old
@@ -4092,6 +4092,10 @@ export namespace Protocol {
4092
4092
  commandId: BrowserCommandId;
4093
4093
  }
4094
4094
 
4095
+ export interface AddPrivacySandboxEnrollmentOverrideRequest {
4096
+ url: string;
4097
+ }
4098
+
4095
4099
  /**
4096
4100
  * Fired when page is about to start a download.
4097
4101
  */
@@ -5325,6 +5329,10 @@ export namespace Protocol {
5325
5329
  * Storage key of the cache.
5326
5330
  */
5327
5331
  storageKey: string;
5332
+ /**
5333
+ * Storage bucket of the cache.
5334
+ */
5335
+ storageBucket?: Storage.StorageBucket;
5328
5336
  /**
5329
5337
  * The name of the cache.
5330
5338
  */
@@ -5366,7 +5374,7 @@ export namespace Protocol {
5366
5374
 
5367
5375
  export interface RequestCacheNamesRequest {
5368
5376
  /**
5369
- * At least and at most one of securityOrigin, storageKey must be specified.
5377
+ * At least and at most one of securityOrigin, storageKey, storageBucket must be specified.
5370
5378
  * Security origin.
5371
5379
  */
5372
5380
  securityOrigin?: string;
@@ -5374,6 +5382,10 @@ export namespace Protocol {
5374
5382
  * Storage key.
5375
5383
  */
5376
5384
  storageKey?: string;
5385
+ /**
5386
+ * Storage bucket. If not specified, it uses the default bucket.
5387
+ */
5388
+ storageBucket?: Storage.StorageBucket;
5377
5389
  }
5378
5390
 
5379
5391
  export interface RequestCacheNamesResponse {
@@ -15154,6 +15166,10 @@ export namespace Protocol {
15154
15166
  * Storage key to update.
15155
15167
  */
15156
15168
  storageKey: string;
15169
+ /**
15170
+ * Storage bucket to update.
15171
+ */
15172
+ bucketId: string;
15157
15173
  /**
15158
15174
  * Name of cache in origin.
15159
15175
  */
@@ -15172,6 +15188,10 @@ export namespace Protocol {
15172
15188
  * Storage key to update.
15173
15189
  */
15174
15190
  storageKey: string;
15191
+ /**
15192
+ * Storage bucket to update.
15193
+ */
15194
+ bucketId: string;
15175
15195
  }
15176
15196
 
15177
15197
  /**
@@ -17163,8 +17183,6 @@ export namespace Protocol {
17163
17183
  */
17164
17184
  export type PrerenderFinalStatus = ('Activated' | 'Destroyed' | 'LowEndDevice' | 'InvalidSchemeRedirect' | 'InvalidSchemeNavigation' | 'InProgressNavigation' | 'NavigationRequestBlockedByCsp' | 'MainFrameNavigation' | 'MojoBinderPolicy' | 'RendererProcessCrashed' | 'RendererProcessKilled' | 'Download' | 'TriggerDestroyed' | 'NavigationNotCommitted' | 'NavigationBadHttpStatus' | 'ClientCertRequested' | 'NavigationRequestNetworkError' | 'MaxNumOfRunningPrerendersExceeded' | 'CancelAllHostsForTesting' | 'DidFailLoad' | 'Stop' | 'SslCertificateError' | 'LoginAuthRequested' | 'UaChangeRequiresReload' | 'BlockedByClient' | 'AudioOutputDeviceRequested' | 'MixedContent' | 'TriggerBackgrounded' | 'EmbedderTriggeredAndCrossOriginRedirected' | 'MemoryLimitExceeded' | 'FailToGetMemoryUsage' | 'DataSaverEnabled' | 'HasEffectiveUrl' | 'ActivatedBeforeStarted' | 'InactivePageRestriction' | 'StartFailed' | 'TimeoutBackgrounded' | 'CrossSiteRedirectInInitialNavigation' | 'CrossSiteNavigationInInitialNavigation' | 'SameSiteCrossOriginRedirectNotOptInInInitialNavigation' | 'SameSiteCrossOriginNavigationNotOptInInInitialNavigation' | 'ActivationNavigationParameterMismatch' | 'ActivatedInBackground' | 'EmbedderHostDisallowed' | 'ActivationNavigationDestroyedBeforeSuccess' | 'TabClosedByUserGesture' | 'TabClosedWithoutUserGesture' | 'PrimaryMainFrameRendererProcessCrashed' | 'PrimaryMainFrameRendererProcessKilled' | 'ActivationFramePolicyNotCompatible' | 'PreloadingDisabled' | 'BatterySaverEnabled' | 'ActivatedDuringMainFrameNavigation' | 'PreloadingUnsupportedByWebContents' | 'CrossSiteRedirectInMainFrameNavigation' | 'CrossSiteNavigationInMainFrameNavigation' | 'SameSiteCrossOriginRedirectNotOptInInMainFrameNavigation' | 'SameSiteCrossOriginNavigationNotOptInInMainFrameNavigation' | 'MemoryPressureOnTrigger' | 'MemoryPressureAfterTriggered');
17165
17185
 
17166
- export type PreloadEnabledState = ('Enabled' | 'DisabledByDataSaver' | 'DisabledByBatterySaver' | 'DisabledByPreference' | 'NotSupported');
17167
-
17168
17186
  /**
17169
17187
  * Preloading status values, see also PreloadingTriggeringOutcome. This
17170
17188
  * status is shared by prefetchStatusUpdated and prerenderStatusUpdated.
@@ -17175,7 +17193,7 @@ export namespace Protocol {
17175
17193
  * TODO(https://crbug.com/1384419): revisit the list of PrefetchStatus and
17176
17194
  * filter out the ones that aren't necessary to the developers.
17177
17195
  */
17178
- export type PrefetchStatus = ('PrefetchAllowed' | 'PrefetchFailedIneligibleRedirect' | 'PrefetchFailedInvalidRedirect' | 'PrefetchFailedMIMENotSupported' | 'PrefetchFailedNetError' | 'PrefetchFailedNon2XX' | 'PrefetchFailedPerPageLimitExceeded' | 'PrefetchHeldback' | 'PrefetchIneligibleRetryAfter' | 'PrefetchIsPrivacyDecoy' | 'PrefetchIsStale' | 'PrefetchNotEligibleBrowserContextOffTheRecord' | 'PrefetchNotEligibleDataSaverEnabled' | 'PrefetchNotEligibleExistingProxy' | 'PrefetchNotEligibleHostIsNonUnique' | 'PrefetchNotEligibleNonDefaultStoragePartition' | 'PrefetchNotEligibleSameSiteCrossOriginPrefetchRequiredProxy' | 'PrefetchNotEligibleSchemeIsNotHttps' | 'PrefetchNotEligibleUserHasCookies' | 'PrefetchNotEligibleUserHasServiceWorker' | 'PrefetchNotEligibleBatterySaverEnabled' | 'PrefetchNotEligiblePreloadingDisabled' | 'PrefetchNotFinishedInTime' | 'PrefetchNotStarted' | 'PrefetchNotUsedCookiesChanged' | 'PrefetchProxyNotAvailable' | 'PrefetchResponseUsed' | 'PrefetchSuccessfulButNotUsed' | 'PrefetchNotUsedProbeFailed');
17196
+ export type PrefetchStatus = ('PrefetchAllowed' | 'PrefetchFailedIneligibleRedirect' | 'PrefetchFailedInvalidRedirect' | 'PrefetchFailedMIMENotSupported' | 'PrefetchFailedNetError' | 'PrefetchFailedNon2XX' | 'PrefetchFailedPerPageLimitExceeded' | 'PrefetchEvicted' | 'PrefetchHeldback' | 'PrefetchIneligibleRetryAfter' | 'PrefetchIsPrivacyDecoy' | 'PrefetchIsStale' | 'PrefetchNotEligibleBrowserContextOffTheRecord' | 'PrefetchNotEligibleDataSaverEnabled' | 'PrefetchNotEligibleExistingProxy' | 'PrefetchNotEligibleHostIsNonUnique' | 'PrefetchNotEligibleNonDefaultStoragePartition' | 'PrefetchNotEligibleSameSiteCrossOriginPrefetchRequiredProxy' | 'PrefetchNotEligibleSchemeIsNotHttps' | 'PrefetchNotEligibleUserHasCookies' | 'PrefetchNotEligibleUserHasServiceWorker' | 'PrefetchNotEligibleBatterySaverEnabled' | 'PrefetchNotEligiblePreloadingDisabled' | 'PrefetchNotFinishedInTime' | 'PrefetchNotStarted' | 'PrefetchNotUsedCookiesChanged' | 'PrefetchProxyNotAvailable' | 'PrefetchResponseUsed' | 'PrefetchSuccessfulButNotUsed' | 'PrefetchNotUsedProbeFailed');
17179
17197
 
17180
17198
  /**
17181
17199
  * Upsert. Currently, it is only emitted when a rule set added.
@@ -17210,7 +17228,9 @@ export namespace Protocol {
17210
17228
  * Fired when a preload enabled state is updated.
17211
17229
  */
17212
17230
  export interface PreloadEnabledStateUpdatedEvent {
17213
- state: PreloadEnabledState;
17231
+ disabledByPreference: boolean;
17232
+ disabledByDataSaver: boolean;
17233
+ disabledByBatterySaver: boolean;
17214
17234
  }
17215
17235
 
17216
17236
  /**