chrome-types 0.1.370 → 0.1.372

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.
Files changed (3) hide show
  1. package/_all.d.ts +69 -17
  2. package/index.d.ts +7 -10
  3. package/package.json +2 -2
package/_all.d.ts CHANGED
@@ -14,8 +14,8 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- // Generated on Sat Aug 09 2025 22:33:11 GMT+0000 (Coordinated Universal Time)
18
- // Built at 027a12bdea4c73324d5831d6fbf11b67b1466bc9
17
+ // Generated on Thu Aug 21 2025 22:32:46 GMT+0000 (Coordinated Universal Time)
18
+ // Built at 0985f026222f7b539a5428a5c96aa19bdcf235dc
19
19
 
20
20
  // Includes all types, including MV2 + Platform Apps APIs.
21
21
 
@@ -6418,6 +6418,11 @@ declare namespace chrome {
6418
6418
  */
6419
6419
  export type MultipleAutomaticDownloadsContentSetting = "allow" | "block" | "ask";
6420
6420
 
6421
+ /**
6422
+ * @since Pending
6423
+ */
6424
+ export type SoundContentSetting = "allow" | "block";
6425
+
6421
6426
  /**
6422
6427
  * Whether to allow sites to use the [Private State Tokens API](https://developer.chrome.com/docs/privacy-sandbox/trust-tokens/). One of
6423
6428
  * `allow`: Allow sites to use the Private State Tokens API,
@@ -7531,10 +7536,6 @@ declare namespace chrome {
7531
7536
  * The `chrome.debugger` API serves as an alternate transport for Chrome's [remote debugging protocol](https://developer.chrome.com/devtools/docs/debugger-protocol). Use `chrome.debugger` to attach to one or more tabs to instrument network interaction, debug JavaScript, mutate the DOM and CSS, and more. Use the {@link Debuggee} property `tabId` to target tabs with `sendCommand` and route events by `tabId` from `onEvent` callbacks.
7532
7537
  *
7533
7538
  * @chrome-permission debugger
7534
- * @chrome-platform chromeos
7535
- * @chrome-platform linux
7536
- * @chrome-platform mac
7537
- * @chrome-platform win
7538
7539
  */
7539
7540
  namespace _debugger {
7540
7541
 
@@ -25718,10 +25719,6 @@ declare namespace chrome {
25718
25719
  *
25719
25720
  * @since Chrome 87
25720
25721
  * @chrome-permission search
25721
- * @chrome-platform chromeos
25722
- * @chrome-platform linux
25723
- * @chrome-platform mac
25724
- * @chrome-platform win
25725
25722
  */
25726
25723
  export namespace search {
25727
25724
 
@@ -38752,6 +38749,48 @@ declare namespace chrome {
38752
38749
  */
38753
38750
  export type ZoomMode = "per-origin" | "per-view" | "disabled";
38754
38751
 
38752
+ /**
38753
+ * Determines what to do with the active match after the find session has ended. `clear` will clear the highlighting over the active match; `keep` will keep the active match highlighted; `activate` will keep the active match highlighted and simulate a user click on that match. The default action is `keep`.
38754
+ *
38755
+ * @since Pending
38756
+ */
38757
+ export type StopFindingAction = "clear" | "keep" | "activate";
38758
+
38759
+ /**
38760
+ * The type of modal dialog requested by the guest.
38761
+ *
38762
+ * @since Pending
38763
+ */
38764
+ export type DialogMessageType = "alert" | "confirm" | "prompt";
38765
+
38766
+ /**
38767
+ * String indicating the reason for the exit.
38768
+ *
38769
+ * @since Pending
38770
+ */
38771
+ export type ExitReason = "normal" | "abnormal" | "crashed" | "killed" | "oom killed" | "oom" | "failed to launch" | "integrity failure";
38772
+
38773
+ /**
38774
+ * String indicating what type of abort occurred. This string is _not_ guaranteed to remain backwards compatible between releases. You must not parse and act based upon its content. It is also possible that, in some cases, an error not listed here could be reported.
38775
+ *
38776
+ * @since Pending
38777
+ */
38778
+ export type LoadAbortReason = "ERR_ABORTED" | "ERR_INVALID_URL" | "ERR_DISALLOWED_URL_SCHEME" | "ERR_BLOCKED_BY_CLIENT" | "ERR_ADDRESS_UNREACHABLE" | "ERR_EMPTY_RESPONSE" | "ERR_FILE_NOT_FOUND" | "ERR_UNKNOWN_URL_SCHEME";
38779
+
38780
+ /**
38781
+ * The requested disposition of the new window.
38782
+ *
38783
+ * @since Pending
38784
+ */
38785
+ export type WindowOpenDisposition = "ignore" | "save_to_disk" | "current_tab" | "new_background_tab" | "new_foreground_tab" | "new_window" | "new_popup";
38786
+
38787
+ /**
38788
+ * The type of permission being requested.
38789
+ *
38790
+ * @since Pending
38791
+ */
38792
+ export type PermissionType = "media" | "geolocation" | "pointerLock" | "download" | "loadplugin" | "filesystem" | "fullscreen" | "hid";
38793
+
38755
38794
  /**
38756
38795
  * Object reference which can be used to post messages into the guest page.
38757
38796
  */
@@ -38821,7 +38860,7 @@ declare namespace chrome {
38821
38860
  * The default behavior is to cancel the dialog.
38822
38861
  */
38823
38862
  export const dialog: events.Event<(
38824
- messageType: "alert" | "confirm" | "prompt",
38863
+ messageType: DialogMessageType,
38825
38864
  messageText: string,
38826
38865
  dialog: DialogController,
38827
38866
  ) => void>;
@@ -38840,8 +38879,21 @@ declare namespace chrome {
38840
38879
  * ```
38841
38880
  */
38842
38881
  export const exit: events.Event<(
38843
- processID: number,
38844
- reason: "normal" | "abnormal" | "crash" | "kill",
38882
+ /**
38883
+ * @since Pending
38884
+ */
38885
+ details: {
38886
+
38887
+ /**
38888
+ * Chrome's internal ID of the process that exited.
38889
+ */
38890
+ processID: number,
38891
+
38892
+ /**
38893
+ * String indicating the reason for the exit.
38894
+ */
38895
+ reason: ExitReason,
38896
+ },
38845
38897
  ) => void>;
38846
38898
 
38847
38899
  /**
@@ -38870,7 +38922,7 @@ declare namespace chrome {
38870
38922
  * @since Chrome 44
38871
38923
  */
38872
38924
  code: number,
38873
- reason: "ERR_ABORTED" | "ERR_INVALID_URL" | "ERR_DISALLOWED_URL_SCHEME" | "ERR_BLOCKED_BY_CLIENT" | "ERR_ADDRESS_UNREACHABLE" | "ERR_EMPTY_RESPONSE" | "ERR_FILE_NOT_FOUND" | "ERR_UNKNOWN_URL_SCHEME",
38925
+ reason: LoadAbortReason,
38874
38926
  ) => void>;
38875
38927
 
38876
38928
  /**
@@ -38924,7 +38976,7 @@ declare namespace chrome {
38924
38976
  initialWidth: number,
38925
38977
  initialHeight: number,
38926
38978
  name: string,
38927
- windowOpenDisposition: "ignore" | "save_to_disk" | "current_tab" | "new_background_tab" | "new_foreground_tab" | "new_window" | "new_popup",
38979
+ windowOpenDisposition: WindowOpenDisposition,
38928
38980
  ) => void>;
38929
38981
 
38930
38982
  /**
@@ -38941,7 +38993,7 @@ declare namespace chrome {
38941
38993
  * ```
38942
38994
  */
38943
38995
  export const permissionrequest: events.Event<(
38944
- permission: "media" | "geolocation" | "pointerLock" | "download" | "loadplugin" | "filesystem" | "fullscreen" | "hid",
38996
+ permission: PermissionType,
38945
38997
  request: {},
38946
38998
  ) => void>;
38947
38999
 
@@ -39380,7 +39432,7 @@ declare namespace chrome {
39380
39432
  */
39381
39433
  export function stopFinding(
39382
39434
 
39383
- action?: "clear" | "keep" | "activate",
39435
+ action?: StopFindingAction,
39384
39436
  ): void;
39385
39437
 
39386
39438
  /**
package/index.d.ts CHANGED
@@ -14,8 +14,8 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- // Generated on Sat Aug 09 2025 22:33:07 GMT+0000 (Coordinated Universal Time)
18
- // Built at 027a12bdea4c73324d5831d6fbf11b67b1466bc9
17
+ // Generated on Thu Aug 21 2025 22:32:41 GMT+0000 (Coordinated Universal Time)
18
+ // Built at 0985f026222f7b539a5428a5c96aa19bdcf235dc
19
19
 
20
20
  // Includes MV3+ APIs only.
21
21
 
@@ -3170,6 +3170,11 @@ declare namespace chrome {
3170
3170
  */
3171
3171
  export type MultipleAutomaticDownloadsContentSetting = "allow" | "block" | "ask";
3172
3172
 
3173
+ /**
3174
+ * @since Pending
3175
+ */
3176
+ export type SoundContentSetting = "allow" | "block";
3177
+
3173
3178
  /**
3174
3179
  * Whether to allow sites to use the [Private State Tokens API](https://developer.chrome.com/docs/privacy-sandbox/trust-tokens/). One of
3175
3180
  * `allow`: Allow sites to use the Private State Tokens API,
@@ -4283,10 +4288,6 @@ declare namespace chrome {
4283
4288
  * The `chrome.debugger` API serves as an alternate transport for Chrome's [remote debugging protocol](https://developer.chrome.com/devtools/docs/debugger-protocol). Use `chrome.debugger` to attach to one or more tabs to instrument network interaction, debug JavaScript, mutate the DOM and CSS, and more. Use the {@link Debuggee} property `tabId` to target tabs with `sendCommand` and route events by `tabId` from `onEvent` callbacks.
4284
4289
  *
4285
4290
  * @chrome-permission debugger
4286
- * @chrome-platform chromeos
4287
- * @chrome-platform linux
4288
- * @chrome-platform mac
4289
- * @chrome-platform win
4290
4291
  */
4291
4292
  namespace _debugger {
4292
4293
 
@@ -20452,10 +20453,6 @@ declare namespace chrome {
20452
20453
  *
20453
20454
  * @since Chrome 87
20454
20455
  * @chrome-permission search
20455
- * @chrome-platform chromeos
20456
- * @chrome-platform linux
20457
- * @chrome-platform mac
20458
- * @chrome-platform win
20459
20456
  */
20460
20457
  export namespace search {
20461
20458
 
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "type": "module",
6
6
  "name": "chrome-types",
7
7
  "config": {
8
- "build-hash": "64795cbd0bf4b4dc"
8
+ "build-hash": "6a00907b1f44d61c"
9
9
  },
10
10
  "repository": {
11
11
  "type": "git",
@@ -16,5 +16,5 @@
16
16
  "url": "https://github.com/GoogleChrome/chrome-types/issues"
17
17
  },
18
18
  "homepage": "https://github.com/GoogleChrome/chrome-types",
19
- "version": "0.1.370"
19
+ "version": "0.1.372"
20
20
  }