chrome-types 0.1.210 → 0.1.212
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.
- package/_all.d.ts +181 -79
- package/index.d.ts +181 -79
- 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
|
|
18
|
-
// Built at
|
|
17
|
+
// Generated on Wed Jul 05 2023 22:30:03 GMT+0000 (Coordinated Universal Time)
|
|
18
|
+
// Built at 8865557ecede3b4453b00383983870bcdeb75ed3
|
|
19
19
|
|
|
20
20
|
// Includes all types, including MV2 + Platform Apps APIs.
|
|
21
21
|
|
|
@@ -5412,14 +5412,14 @@ declare namespace chrome {
|
|
|
5412
5412
|
/**
|
|
5413
5413
|
* Types of supported cryptographic signature algorithms.
|
|
5414
5414
|
*
|
|
5415
|
-
* @chrome-enum "RSASSA\_PKCS1\_v1\_5\_MD5\_SHA1" RSASSA PKCS#1 v1.5 signature algorithm with the MD5-SHA-1 hashing. The extension must not prepend a DigestInfo prefix but only add PKCS#1 padding. This algorithm is deprecated and will never be requested by Chrome as of version 109.
|
|
5416
|
-
* @chrome-enum "RSASSA\_PKCS1\_v1\_5\_SHA1" RSASSA PKCS#1 v1.5 signature algorithm with the SHA-1 hash function.
|
|
5417
|
-
* @chrome-enum "RSASSA\_PKCS1\_v1\_5\_SHA256" RSASSA PKCS#1 v1.5 signature algorithm with the SHA-256 hashing function.
|
|
5418
|
-
* @chrome-enum "RSASSA\_PKCS1\_v1\_5\_SHA384" RSASSA PKCS#1 v1.5 signature algorithm with the SHA-384 hashing function.
|
|
5419
|
-
* @chrome-enum "RSASSA\_PKCS1\_v1\_5\_SHA512" RSASSA PKCS#1 v1.5 signature algorithm with the SHA-512 hashing function.
|
|
5420
|
-
* @chrome-enum "RSASSA\_PSS\_SHA256"
|
|
5421
|
-
* @chrome-enum "RSASSA\_PSS\_SHA384"
|
|
5422
|
-
* @chrome-enum "RSASSA\_PSS\_SHA512"
|
|
5415
|
+
* @chrome-enum "RSASSA\_PKCS1\_v1\_5\_MD5\_SHA1" Specifies the RSASSA PKCS#1 v1.5 signature algorithm with the MD5-SHA-1 hashing. The extension must not prepend a DigestInfo prefix but only add PKCS#1 padding. This algorithm is deprecated and will never be requested by Chrome as of version 109.
|
|
5416
|
+
* @chrome-enum "RSASSA\_PKCS1\_v1\_5\_SHA1" Specifies the RSASSA PKCS#1 v1.5 signature algorithm with the SHA-1 hash function.
|
|
5417
|
+
* @chrome-enum "RSASSA\_PKCS1\_v1\_5\_SHA256" Specifies the RSASSA PKCS#1 v1.5 signature algorithm with the SHA-256 hashing function.
|
|
5418
|
+
* @chrome-enum "RSASSA\_PKCS1\_v1\_5\_SHA384" Specifies the RSASSA PKCS#1 v1.5 signature algorithm with the SHA-384 hashing function.
|
|
5419
|
+
* @chrome-enum "RSASSA\_PKCS1\_v1\_5\_SHA512" Specifies the RSASSA PKCS#1 v1.5 signature algorithm with the SHA-512 hashing function.
|
|
5420
|
+
* @chrome-enum "RSASSA\_PSS\_SHA256" Specifies the RSASSA PSS signature algorithm with the SHA-256 hashing function, MGF1 mask generation function and the salt of the same size as the hash.
|
|
5421
|
+
* @chrome-enum "RSASSA\_PSS\_SHA384" Specifies the RSASSA PSS signature algorithm with the SHA-384 hashing function, MGF1 mask generation function and the salt of the same size as the hash.
|
|
5422
|
+
* @chrome-enum "RSASSA\_PSS\_SHA512" Specifies the RSASSA PSS signature algorithm with the SHA-512 hashing function, MGF1 mask generation function and the salt of the same size as the hash.
|
|
5423
5423
|
* @since Chrome 86
|
|
5424
5424
|
*/
|
|
5425
5425
|
export type Algorithm = "RSASSA_PKCS1_v1_5_MD5_SHA1" | "RSASSA_PKCS1_v1_5_SHA1" | "RSASSA_PKCS1_v1_5_SHA256" | "RSASSA_PKCS1_v1_5_SHA384" | "RSASSA_PKCS1_v1_5_SHA512" | "RSASSA_PSS_SHA256" | "RSASSA_PSS_SHA384" | "RSASSA_PSS_SHA512";
|
|
@@ -5531,12 +5531,20 @@ declare namespace chrome {
|
|
|
5531
5531
|
|
|
5532
5532
|
/**
|
|
5533
5533
|
* Deprecated. Replaced by {@link Algorithm}.
|
|
5534
|
+
*
|
|
5535
|
+
* @chrome-enum "MD5\_SHA1" Specifies the MD5 and SHA1 hashing algorithms.
|
|
5536
|
+
* @chrome-enum "SHA1" Specifies the SHA1 hashing algorithm.
|
|
5537
|
+
* @chrome-enum "SHA256" Specifies the SHA256 hashing algorithm.
|
|
5538
|
+
* @chrome-enum "SHA384" Specifies the SHA384 hashing algorithm.
|
|
5539
|
+
* @chrome-enum "SHA512" Specifies the SHA512 hashing algorithm.
|
|
5534
5540
|
*/
|
|
5535
5541
|
export type Hash = "MD5_SHA1" | "SHA1" | "SHA256" | "SHA384" | "SHA512";
|
|
5536
5542
|
|
|
5537
5543
|
/**
|
|
5538
5544
|
* The type of code being requested by the extension with requestPin function.
|
|
5539
5545
|
*
|
|
5546
|
+
* @chrome-enum "PIN" Specifies the requested code is a PIN.
|
|
5547
|
+
* @chrome-enum "PUK" Specifies the requested code is a PUK.
|
|
5540
5548
|
* @since Chrome 57
|
|
5541
5549
|
*/
|
|
5542
5550
|
export type PinRequestType = "PIN" | "PUK";
|
|
@@ -5544,6 +5552,10 @@ declare namespace chrome {
|
|
|
5544
5552
|
/**
|
|
5545
5553
|
* The types of errors that can be presented to the user through the requestPin function.
|
|
5546
5554
|
*
|
|
5555
|
+
* @chrome-enum "INVALID\_PIN" Specifies the PIN is invalid.
|
|
5556
|
+
* @chrome-enum "INVALID\_PUK" Specifies the PUK is invalid.
|
|
5557
|
+
* @chrome-enum "MAX\_ATTEMPTS\_EXCEEDED" Specifies the maximum attempt number has been exceeded.
|
|
5558
|
+
* @chrome-enum "UNKNOWN\_ERROR" Specifies that the error cannot be represented by the above types.
|
|
5547
5559
|
* @since Chrome 57
|
|
5548
5560
|
*/
|
|
5549
5561
|
export type PinRequestErrorType = "INVALID_PIN" | "INVALID_PUK" | "MAX_ATTEMPTS_EXCEEDED" | "UNKNOWN_ERROR";
|
|
@@ -10917,6 +10929,8 @@ declare namespace chrome {
|
|
|
10917
10929
|
|
|
10918
10930
|
/**
|
|
10919
10931
|
* Enable or disable the gray shelf at the bottom of every window associated with the current browser profile. The shelf will be disabled as long as at least one extension has disabled it. Enabling the shelf while at least one other extension has disabled it will return an error through {@link runtime.lastError}. Requires the `"downloads.shelf"` permission in addition to the `"downloads"` permission.
|
|
10932
|
+
*
|
|
10933
|
+
* @deprecated Use {@link setUiOptions} instead.
|
|
10920
10934
|
*/
|
|
10921
10935
|
export function setShelfEnabled(
|
|
10922
10936
|
|
|
@@ -15344,8 +15358,8 @@ declare namespace chrome {
|
|
|
15344
15358
|
}
|
|
15345
15359
|
|
|
15346
15360
|
/**
|
|
15347
|
-
* @chrome-enum "SYNC" Sync is enabled for the primary account.
|
|
15348
|
-
* @chrome-enum "ANY"
|
|
15361
|
+
* @chrome-enum "SYNC" Specifies that Sync is enabled for the primary account.
|
|
15362
|
+
* @chrome-enum "ANY" Specifies the existence of a primary account, if any.
|
|
15349
15363
|
* @since Chrome 84
|
|
15350
15364
|
*/
|
|
15351
15365
|
export type AccountStatus = "SYNC" | "ANY";
|
|
@@ -17181,18 +17195,18 @@ declare namespace chrome {
|
|
|
17181
17195
|
export namespace loginState {
|
|
17182
17196
|
|
|
17183
17197
|
/**
|
|
17184
|
-
* @chrome-enum "SIGNIN\_PROFILE"
|
|
17185
|
-
* @chrome-enum "USER\_PROFILE"
|
|
17198
|
+
* @chrome-enum "SIGNIN\_PROFILE" Specifies that the extension is in the signin profile.
|
|
17199
|
+
* @chrome-enum "USER\_PROFILE" Specifies that the extension is in the user profile.
|
|
17186
17200
|
*/
|
|
17187
17201
|
export type ProfileType = "SIGNIN_PROFILE" | "USER_PROFILE";
|
|
17188
17202
|
|
|
17189
17203
|
/**
|
|
17190
|
-
* @chrome-enum "UNKNOWN"
|
|
17191
|
-
* @chrome-enum "IN\_OOBE\_SCREEN"
|
|
17192
|
-
* @chrome-enum "IN\_LOGIN\_SCREEN"
|
|
17193
|
-
* @chrome-enum "IN\_SESSION"
|
|
17194
|
-
* @chrome-enum "IN\_LOCK\_SCREEN"
|
|
17195
|
-
* @chrome-enum "IN\_RMA\_SCREEN"
|
|
17204
|
+
* @chrome-enum "UNKNOWN" Specifies that the session state is unknown.
|
|
17205
|
+
* @chrome-enum "IN\_OOBE\_SCREEN" Specifies that the user is in the out-of-box-experience screen.
|
|
17206
|
+
* @chrome-enum "IN\_LOGIN\_SCREEN" Specifies that the user is in the login screen.
|
|
17207
|
+
* @chrome-enum "IN\_SESSION" Specifies that the user is in the session.
|
|
17208
|
+
* @chrome-enum "IN\_LOCK\_SCREEN" Specifies that the user is in the lock screen.
|
|
17209
|
+
* @chrome-enum "IN\_RMA\_SCREEN" Specifies that the device is in RMA mode, finalizing repairs.
|
|
17196
17210
|
*/
|
|
17197
17211
|
export type SessionState = "UNKNOWN" | "IN_OOBE_SCREEN" | "IN_LOGIN_SCREEN" | "IN_SESSION" | "IN_LOCK_SCREEN" | "IN_RMA_SCREEN";
|
|
17198
17212
|
|
|
@@ -20116,16 +20130,16 @@ declare namespace chrome {
|
|
|
20116
20130
|
export namespace notifications {
|
|
20117
20131
|
|
|
20118
20132
|
/**
|
|
20119
|
-
* @chrome-enum "basic" icon, title, message, expandedMessage, up to two buttons
|
|
20120
|
-
* @chrome-enum "image" icon, title, message, expandedMessage, image, up to two buttons
|
|
20121
|
-
* @chrome-enum "list" icon, title, message, items, up to two buttons. Users on Mac OS X only see the first item.
|
|
20122
|
-
* @chrome-enum "progress" icon, title, message, progress, up to two buttons
|
|
20133
|
+
* @chrome-enum "basic" Contains an icon, title, message, expandedMessage, and up to two buttons.
|
|
20134
|
+
* @chrome-enum "image" Contains an icon, title, message, expandedMessage, image, and up to two buttons.
|
|
20135
|
+
* @chrome-enum "list" Contains an icon, title, message, items, and up to two buttons. Users on Mac OS X only see the first item.
|
|
20136
|
+
* @chrome-enum "progress" Contains an icon, title, message, progress, and up to two buttons.
|
|
20123
20137
|
*/
|
|
20124
20138
|
export type TemplateType = "basic" | "image" | "list" | "progress";
|
|
20125
20139
|
|
|
20126
20140
|
/**
|
|
20127
|
-
* @chrome-enum "granted"
|
|
20128
|
-
* @chrome-enum "denied"
|
|
20141
|
+
* @chrome-enum "granted" Specifies that the user has elected to show notifications from the app or extension. This is the default at install time.
|
|
20142
|
+
* @chrome-enum "denied" Specifies that the user has elected not to show notifications from the app or extension.
|
|
20129
20143
|
*/
|
|
20130
20144
|
export type PermissionLevel = "granted" | "denied";
|
|
20131
20145
|
|
|
@@ -20498,18 +20512,18 @@ declare namespace chrome {
|
|
|
20498
20512
|
|
|
20499
20513
|
/**
|
|
20500
20514
|
* @chrome-enum "TESTING" A reason used for testing purposes only.
|
|
20501
|
-
* @chrome-enum "AUDIO\_PLAYBACK"
|
|
20502
|
-
* @chrome-enum "IFRAME\_SCRIPTING"
|
|
20503
|
-
* @chrome-enum "DOM\_SCRAPING"
|
|
20504
|
-
* @chrome-enum "BLOBS"
|
|
20505
|
-
* @chrome-enum "DOM\_PARSER"
|
|
20506
|
-
* @chrome-enum "USER\_MEDIA"
|
|
20507
|
-
* @chrome-enum "DISPLAY\_MEDIA"
|
|
20508
|
-
* @chrome-enum "WEB\_RTC"
|
|
20509
|
-
* @chrome-enum "CLIPBOARD"
|
|
20510
|
-
* @chrome-enum "LOCAL\_STORAGE"
|
|
20511
|
-
* @chrome-enum "WORKERS"
|
|
20512
|
-
* @chrome-enum "GEOLOCATION"
|
|
20515
|
+
* @chrome-enum "AUDIO\_PLAYBACK" Specifies that the offscreen document is responsible for playing audio.
|
|
20516
|
+
* @chrome-enum "IFRAME\_SCRIPTING" Specifies that the offscreen document needs to embed and script an iframe in order to modify the iframe's content.
|
|
20517
|
+
* @chrome-enum "DOM\_SCRAPING" Specifies that the offscreen document needs to embed an iframe and scrape its DOM to extract information.
|
|
20518
|
+
* @chrome-enum "BLOBS" Specifies that the offscreen document needs to interact with Blob objects (including `URL.createObjectURL()`).
|
|
20519
|
+
* @chrome-enum "DOM\_PARSER" Specifies that the offscreen document needs to use the
|
|
20520
|
+
* @chrome-enum "USER\_MEDIA" Specifies that the offscreen document needs to interact with media streams from user media (e.g. `getUserMedia()`).
|
|
20521
|
+
* @chrome-enum "DISPLAY\_MEDIA" Specifies that the offscreen document needs to interact with media streams from display media (e.g. `getDisplayMedia()`).
|
|
20522
|
+
* @chrome-enum "WEB\_RTC" Specifies that the offscreen document needs to use
|
|
20523
|
+
* @chrome-enum "CLIPBOARD" Specifies that the offscreen document needs to interact with the
|
|
20524
|
+
* @chrome-enum "LOCAL\_STORAGE" Specifies that the offscreen document needs access to [localStorage](https://developer.mozilla.org/en-US/docs/Web/API/Window/localStorage).
|
|
20525
|
+
* @chrome-enum "WORKERS" Specifies that the offscreen document needs to spawn workers.
|
|
20526
|
+
* @chrome-enum "GEOLOCATION" Specifies that the offscreen document needs to use [navigator.geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/geolocation).
|
|
20513
20527
|
*/
|
|
20514
20528
|
export type Reason = "TESTING" | "AUDIO_PLAYBACK" | "IFRAME_SCRIPTING" | "DOM_SCRAPING" | "BLOBS" | "DOM_PARSER" | "USER_MEDIA" | "DISPLAY_MEDIA" | "WEB_RTC" | "CLIPBOARD" | "LOCAL_STORAGE" | "WORKERS" | "GEOLOCATION";
|
|
20515
20529
|
|
|
@@ -21321,8 +21335,8 @@ declare namespace chrome {
|
|
|
21321
21335
|
export namespace power {
|
|
21322
21336
|
|
|
21323
21337
|
/**
|
|
21324
|
-
* @chrome-enum "system"
|
|
21325
|
-
* @chrome-enum "display"
|
|
21338
|
+
* @chrome-enum "system" Prevents the system from sleeping in response to user inactivity.
|
|
21339
|
+
* @chrome-enum "display" Prevents the display from being turned off or dimmed, or the system from sleeping in response to user inactivity.
|
|
21326
21340
|
*/
|
|
21327
21341
|
export type Level = "system" | "display";
|
|
21328
21342
|
|
|
@@ -21372,10 +21386,10 @@ declare namespace chrome {
|
|
|
21372
21386
|
/**
|
|
21373
21387
|
* Error codes returned in response to {@link onPrintRequested} event.
|
|
21374
21388
|
*
|
|
21375
|
-
* @chrome-enum "OK"
|
|
21376
|
-
* @chrome-enum "FAILED"
|
|
21377
|
-
* @chrome-enum "INVALID\_TICKET"
|
|
21378
|
-
* @chrome-enum "INVALID\_DATA"
|
|
21389
|
+
* @chrome-enum "OK" Specifies that the operation was completed successfully.
|
|
21390
|
+
* @chrome-enum "FAILED" Specifies that a general failure occured.
|
|
21391
|
+
* @chrome-enum "INVALID\_TICKET" Specifies that the print ticket is invalid. For example, the ticket is inconsistent with some capabilities, or the extension is not able to handle all settings from the ticket.
|
|
21392
|
+
* @chrome-enum "INVALID\_DATA" Specifies that the document is invalid. For example, data may be corrupted or the format is incompatible with the extension.
|
|
21379
21393
|
*/
|
|
21380
21394
|
export type PrintError = "OK" | "FAILED" | "INVALID_TICKET" | "INVALID_DATA";
|
|
21381
21395
|
|
|
@@ -21716,39 +21730,39 @@ declare namespace chrome {
|
|
|
21716
21730
|
/**
|
|
21717
21731
|
* The source of the print job.
|
|
21718
21732
|
*
|
|
21719
|
-
* @chrome-enum "PRINT\_PREVIEW"
|
|
21720
|
-
* @chrome-enum "ANDROID\_APP"
|
|
21721
|
-
* @chrome-enum "EXTENSION"
|
|
21733
|
+
* @chrome-enum "PRINT\_PREVIEW" Specifies that the job was created from the Print Preview page initiated by the user.
|
|
21734
|
+
* @chrome-enum "ANDROID\_APP" Specifies that the job was created from an Android App.
|
|
21735
|
+
* @chrome-enum "EXTENSION" Specifies that the job was created by extension via Chrome API.
|
|
21722
21736
|
*/
|
|
21723
21737
|
export type PrintJobSource = "PRINT_PREVIEW" | "ANDROID_APP" | "EXTENSION";
|
|
21724
21738
|
|
|
21725
21739
|
/**
|
|
21726
|
-
*
|
|
21740
|
+
* Specifies the final status of the print job.
|
|
21727
21741
|
*
|
|
21728
|
-
* @chrome-enum "FAILED"
|
|
21729
|
-
* @chrome-enum "CANCELED"
|
|
21730
|
-
* @chrome-enum "PRINTED"
|
|
21742
|
+
* @chrome-enum "FAILED" Specifies that the print job was interrupted due to some error.
|
|
21743
|
+
* @chrome-enum "CANCELED" Specifies that the print job was canceled by the user or via API.
|
|
21744
|
+
* @chrome-enum "PRINTED" Specifies that the print job was printed without any errors.
|
|
21731
21745
|
*/
|
|
21732
21746
|
export type PrintJobStatus = "FAILED" | "CANCELED" | "PRINTED";
|
|
21733
21747
|
|
|
21734
21748
|
/**
|
|
21735
21749
|
* The source of the printer.
|
|
21736
21750
|
*
|
|
21737
|
-
* @chrome-enum "USER"
|
|
21738
|
-
* @chrome-enum "POLICY"
|
|
21751
|
+
* @chrome-enum "USER" Specifies that the printer was added by user.
|
|
21752
|
+
* @chrome-enum "POLICY" Specifies that the printer was added via policy.
|
|
21739
21753
|
*/
|
|
21740
21754
|
export type PrinterSource = "USER" | "POLICY";
|
|
21741
21755
|
|
|
21742
21756
|
/**
|
|
21743
|
-
* @chrome-enum "BLACK\_AND\_WHITE"
|
|
21744
|
-
* @chrome-enum "COLOR"
|
|
21757
|
+
* @chrome-enum "BLACK\_AND\_WHITE" Specifies that black and white mode was used.
|
|
21758
|
+
* @chrome-enum "COLOR" Specifies that color mode was used.
|
|
21745
21759
|
*/
|
|
21746
21760
|
export type ColorMode = "BLACK_AND_WHITE" | "COLOR";
|
|
21747
21761
|
|
|
21748
21762
|
/**
|
|
21749
|
-
* @chrome-enum "ONE\_SIDED"
|
|
21750
|
-
* @chrome-enum "TWO\_SIDED\_LONG\_EDGE"
|
|
21751
|
-
* @chrome-enum "TWO\_SIDED\_SHORT\_EDGE"
|
|
21763
|
+
* @chrome-enum "ONE\_SIDED" Specifies that one-sided printing was used.
|
|
21764
|
+
* @chrome-enum "TWO\_SIDED\_LONG\_EDGE" Specifies that two-sided printing was used, flipping on long edge.
|
|
21765
|
+
* @chrome-enum "TWO\_SIDED\_SHORT\_EDGE" Specifies that two-sided printing was used, flipping on short edge.
|
|
21752
21766
|
*/
|
|
21753
21767
|
export type DuplexMode = "ONE_SIDED" | "TWO_SIDED_LONG_EDGE" | "TWO_SIDED_SHORT_EDGE";
|
|
21754
21768
|
|
|
@@ -22451,7 +22465,7 @@ declare namespace chrome {
|
|
|
22451
22465
|
}
|
|
22452
22466
|
|
|
22453
22467
|
/**
|
|
22454
|
-
* Use the `chrome.runtime` API to retrieve the
|
|
22468
|
+
* Use the `chrome.runtime` API to retrieve the service worker, return details about the manifest, and listen for and respond to events in the app or extension lifecycle. You can also use this API to convert the relative path of URLs to fully-qualified URLs.
|
|
22455
22469
|
*/
|
|
22456
22470
|
export namespace runtime {
|
|
22457
22471
|
|
|
@@ -22566,6 +22580,13 @@ declare namespace chrome {
|
|
|
22566
22580
|
/**
|
|
22567
22581
|
* The operating system Chrome is running on.
|
|
22568
22582
|
*
|
|
22583
|
+
* @chrome-enum "mac" Specifies the MacOS operating system.
|
|
22584
|
+
* @chrome-enum "win" Specifies the Windows operating system.
|
|
22585
|
+
* @chrome-enum "android" Specifies the Android operating system.
|
|
22586
|
+
* @chrome-enum "cros" Specifies the Chrome operating system.
|
|
22587
|
+
* @chrome-enum "linux" Specifies the Linux operating system.
|
|
22588
|
+
* @chrome-enum "openbsd" Specifies the OpenBSD operating system.
|
|
22589
|
+
* @chrome-enum "fuchsia" Specifies the Fuchsia operating system.
|
|
22569
22590
|
* @since Chrome 44
|
|
22570
22591
|
*/
|
|
22571
22592
|
export type PlatformOs = "mac" | "win" | "android" | "cros" | "linux" | "openbsd" | "fuchsia";
|
|
@@ -22573,6 +22594,12 @@ declare namespace chrome {
|
|
|
22573
22594
|
/**
|
|
22574
22595
|
* The machine's processor architecture.
|
|
22575
22596
|
*
|
|
22597
|
+
* @chrome-enum "arm" Specifies the processer architecture as arm.
|
|
22598
|
+
* @chrome-enum "arm64" Specifies the processer architecture as arm64.
|
|
22599
|
+
* @chrome-enum "x86-32" Specifies the processer architecture as x86-32.
|
|
22600
|
+
* @chrome-enum "x86-64" Specifies the processer architecture as x86-64.
|
|
22601
|
+
* @chrome-enum "mips" Specifies the processer architecture as mips.
|
|
22602
|
+
* @chrome-enum "mips64" Specifies the processer architecture as mips64.
|
|
22576
22603
|
* @since Chrome 44
|
|
22577
22604
|
*/
|
|
22578
22605
|
export type PlatformArch = "arm" | "arm64" | "x86-32" | "x86-64" | "mips" | "mips64";
|
|
@@ -22580,6 +22607,11 @@ declare namespace chrome {
|
|
|
22580
22607
|
/**
|
|
22581
22608
|
* The native client architecture. This may be different from arch on some platforms.
|
|
22582
22609
|
*
|
|
22610
|
+
* @chrome-enum "arm" Specifies the native client architecture as arm.
|
|
22611
|
+
* @chrome-enum "x86-32" Specifies the native client architecture as x86-32.
|
|
22612
|
+
* @chrome-enum "x86-64" Specifies the native client architecture as x86-64.
|
|
22613
|
+
* @chrome-enum "mips" Specifies the native client architecture as mips.
|
|
22614
|
+
* @chrome-enum "mips64" Specifies the native client architecture as mips64.
|
|
22583
22615
|
* @since Chrome 44
|
|
22584
22616
|
*/
|
|
22585
22617
|
export type PlatformNaclArch = "arm" | "x86-32" | "x86-64" | "mips" | "mips64";
|
|
@@ -22608,6 +22640,9 @@ declare namespace chrome {
|
|
|
22608
22640
|
/**
|
|
22609
22641
|
* Result of the update check.
|
|
22610
22642
|
*
|
|
22643
|
+
* @chrome-enum "throttled" Specifies that the status check has been throttled. This can occur after repeated checks within a short amount of time.
|
|
22644
|
+
* @chrome-enum "no\_update" Specifies that there are no available updates to install.
|
|
22645
|
+
* @chrome-enum "update\_available" Specifies that there is an available update to install.
|
|
22611
22646
|
* @since Chrome 44
|
|
22612
22647
|
*/
|
|
22613
22648
|
export type RequestUpdateCheckStatus = "throttled" | "no_update" | "update_available";
|
|
@@ -22615,6 +22650,10 @@ declare namespace chrome {
|
|
|
22615
22650
|
/**
|
|
22616
22651
|
* The reason that this event is being dispatched.
|
|
22617
22652
|
*
|
|
22653
|
+
* @chrome-enum "install" Specifies the event reason as an installation.
|
|
22654
|
+
* @chrome-enum "update" Specifies the event reason as an extension update.
|
|
22655
|
+
* @chrome-enum "chrome\_update" Specifies the event reason as a Chrome update.
|
|
22656
|
+
* @chrome-enum "shared\_module\_update" Specifies the event reason as an update to a shared module.
|
|
22618
22657
|
* @since Chrome 44
|
|
22619
22658
|
*/
|
|
22620
22659
|
export type OnInstalledReason = "install" | "update" | "chrome_update" | "shared_module_update";
|
|
@@ -22622,11 +22661,19 @@ declare namespace chrome {
|
|
|
22622
22661
|
/**
|
|
22623
22662
|
* The reason that the event is being dispatched. 'app\_update' is used when the restart is needed because the application is updated to a newer version. 'os\_update' is used when the restart is needed because the browser/OS is updated to a newer version. 'periodic' is used when the system runs for more than the permitted uptime set in the enterprise policy.
|
|
22624
22663
|
*
|
|
22664
|
+
* @chrome-enum "app\_update" Specifies the event reason as an update to the app.
|
|
22665
|
+
* @chrome-enum "os\_update" Specifies the event reason as an update to the operating system.
|
|
22666
|
+
* @chrome-enum "periodic" Specifies the event reason as a periodic restart of the app.
|
|
22625
22667
|
* @since Chrome 44
|
|
22626
22668
|
*/
|
|
22627
22669
|
export type OnRestartRequiredReason = "app_update" | "os_update" | "periodic";
|
|
22628
22670
|
|
|
22629
22671
|
/**
|
|
22672
|
+
* @chrome-enum "TAB" Specifies the context type as a tab
|
|
22673
|
+
* @chrome-enum "POPUP" Specifies the context type as an extension popup window
|
|
22674
|
+
* @chrome-enum "BACKGROUND" Specifies the context type as a service worker.
|
|
22675
|
+
* @chrome-enum "OFFSCREEN\_DOCUMENT" Specifies the context type as an offscreen document.
|
|
22676
|
+
* @chrome-enum "SIDE\_PANEL" Specifies the context type as a side panel.
|
|
22630
22677
|
* @since Chrome 114
|
|
22631
22678
|
*/
|
|
22632
22679
|
export type ContextType = "TAB" | "POPUP" | "BACKGROUND" | "OFFSCREEN_DOCUMENT" | "SIDE_PANEL";
|
|
@@ -23268,8 +23315,8 @@ declare namespace chrome {
|
|
|
23268
23315
|
/**
|
|
23269
23316
|
* The JavaScript world for a script to execute within.
|
|
23270
23317
|
*
|
|
23271
|
-
* @chrome-enum "ISOLATED"
|
|
23272
|
-
* @chrome-enum "MAIN"
|
|
23318
|
+
* @chrome-enum "ISOLATED" Specifies the isolated world, which is the execution environment unique to this extension.
|
|
23319
|
+
* @chrome-enum "MAIN" Specifies the main world of the DOM, which is the execution environment shared with the host page's JavaScript.
|
|
23273
23320
|
* @since Chrome 95
|
|
23274
23321
|
*/
|
|
23275
23322
|
export type ExecutionWorld = "ISOLATED" | "MAIN";
|
|
@@ -23635,9 +23682,9 @@ declare namespace chrome {
|
|
|
23635
23682
|
export namespace search {
|
|
23636
23683
|
|
|
23637
23684
|
/**
|
|
23638
|
-
* @chrome-enum "CURRENT\_TAB"
|
|
23639
|
-
* @chrome-enum "NEW\_TAB"
|
|
23640
|
-
* @chrome-enum "NEW\_WINDOW"
|
|
23685
|
+
* @chrome-enum "CURRENT\_TAB" Specifies that the search results display in the calling tab or the tab from the active browser.
|
|
23686
|
+
* @chrome-enum "NEW\_TAB" Specifies that the search results display in a new tab.
|
|
23687
|
+
* @chrome-enum "NEW\_WINDOW" Specifies that the search results display in a new window.
|
|
23641
23688
|
*/
|
|
23642
23689
|
export type Disposition = "CURRENT_TAB" | "NEW_TAB" | "NEW_WINDOW";
|
|
23643
23690
|
|
|
@@ -26476,6 +26523,8 @@ declare namespace chrome {
|
|
|
26476
26523
|
/**
|
|
26477
26524
|
* The storage area's access level.
|
|
26478
26525
|
*
|
|
26526
|
+
* @chrome-enum "TRUSTED\_CONTEXTS" Specifies contexts originating from the extension itself.
|
|
26527
|
+
* @chrome-enum "TRUSTED\_AND\_UNTRUSTED\_CONTEXTS" Specifies contexts originating from outside the extension.
|
|
26479
26528
|
* @since Chrome 102
|
|
26480
26529
|
*/
|
|
26481
26530
|
export type AccessLevel = "TRUSTED_CONTEXTS" | "TRUSTED_AND_UNTRUSTED_CONTEXTS";
|
|
@@ -27330,6 +27379,13 @@ declare namespace chrome {
|
|
|
27330
27379
|
yearOfManufacture: number;
|
|
27331
27380
|
}
|
|
27332
27381
|
|
|
27382
|
+
/**
|
|
27383
|
+
* An enum to tell if the display is detected and used by the system. The display is considered 'inactive', if it is not detected by the system (maybe disconnected, or considered disconnected due to sleep mode, etc). This state is used to keep existing display when the all displays are disconnected, for example.
|
|
27384
|
+
*
|
|
27385
|
+
* @since Pending
|
|
27386
|
+
*/
|
|
27387
|
+
export type ActiveState = "active" | "inactive";
|
|
27388
|
+
|
|
27333
27389
|
export interface DisplayUnitInfo {
|
|
27334
27390
|
|
|
27335
27391
|
/**
|
|
@@ -27371,6 +27427,13 @@ declare namespace chrome {
|
|
|
27371
27427
|
*/
|
|
27372
27428
|
isEnabled: boolean;
|
|
27373
27429
|
|
|
27430
|
+
/**
|
|
27431
|
+
* Active if the display is detected and used by the system.
|
|
27432
|
+
*
|
|
27433
|
+
* @since Pending
|
|
27434
|
+
*/
|
|
27435
|
+
activeState: ActiveState;
|
|
27436
|
+
|
|
27374
27437
|
/**
|
|
27375
27438
|
* True for all displays when in unified desktop mode. See documentation for {@link enableUnifiedDesktop}.
|
|
27376
27439
|
*
|
|
@@ -27508,9 +27571,9 @@ declare namespace chrome {
|
|
|
27508
27571
|
/**
|
|
27509
27572
|
* Mirror mode, i.e. different ways of how a display is mirrored to other displays.
|
|
27510
27573
|
*
|
|
27511
|
-
* @chrome-enum "off"
|
|
27512
|
-
* @chrome-enum "normal"
|
|
27513
|
-
* @chrome-enum "mixed"
|
|
27574
|
+
* @chrome-enum "off" Specifies the default mode (extended or unified desktop).
|
|
27575
|
+
* @chrome-enum "normal" Specifies that the default source display will be mirrored to all other displays.
|
|
27576
|
+
* @chrome-enum "mixed" Specifies that the specified source display will be mirrored to the provided destination displays. All other connected displays will be extended.
|
|
27514
27577
|
* @since Chrome 65
|
|
27515
27578
|
*/
|
|
27516
27579
|
export type MirrorMode = "off" | "normal" | "mixed";
|
|
@@ -32239,30 +32302,30 @@ declare namespace chrome {
|
|
|
32239
32302
|
/**
|
|
32240
32303
|
* The enum is used by the platform to notify the client of the VPN session status.
|
|
32241
32304
|
*
|
|
32242
|
-
* @chrome-enum "connected" VPN configuration connected.
|
|
32243
|
-
* @chrome-enum "disconnected" VPN configuration disconnected.
|
|
32244
|
-
* @chrome-enum "error"
|
|
32245
|
-
* @chrome-enum "linkDown"
|
|
32246
|
-
* @chrome-enum "linkUp"
|
|
32247
|
-
* @chrome-enum "linkChanged"
|
|
32248
|
-
* @chrome-enum "suspend"
|
|
32249
|
-
* @chrome-enum "resume"
|
|
32305
|
+
* @chrome-enum "connected" Indicates that the VPN configuration connected.
|
|
32306
|
+
* @chrome-enum "disconnected" Indicates that the VPN configuration disconnected.
|
|
32307
|
+
* @chrome-enum "error" Indicates that an error occurred in VPN connection, for example a timeout. A description of the error is given as the {@link onPlatformMessage.error error argument to onPlatformMessage}.
|
|
32308
|
+
* @chrome-enum "linkDown" Indicates that the default physical network connection is down.
|
|
32309
|
+
* @chrome-enum "linkUp" Indicates that the default physical network connection is back up.
|
|
32310
|
+
* @chrome-enum "linkChanged" Indicates that the default physical network connection changed, e.g. wifi->mobile.
|
|
32311
|
+
* @chrome-enum "suspend" Indicates that the OS is preparing to suspend, so the VPN should drop its connection. The extension is not guaranteed to receive this event prior to suspending.
|
|
32312
|
+
* @chrome-enum "resume" Indicates that the OS has resumed and the user has logged back in, so the VPN should try to reconnect.
|
|
32250
32313
|
*/
|
|
32251
32314
|
export type PlatformMessage = "connected" | "disconnected" | "error" | "linkDown" | "linkUp" | "linkChanged" | "suspend" | "resume";
|
|
32252
32315
|
|
|
32253
32316
|
/**
|
|
32254
32317
|
* The enum is used by the VPN client to inform the platform of its current state. This helps provide meaningful messages to the user.
|
|
32255
32318
|
*
|
|
32256
|
-
* @chrome-enum "connected" VPN connection was successful.
|
|
32257
|
-
* @chrome-enum "failure" VPN connection failed.
|
|
32319
|
+
* @chrome-enum "connected" Specifies that VPN connection was successful.
|
|
32320
|
+
* @chrome-enum "failure" Specifies that VPN connection has failed.
|
|
32258
32321
|
*/
|
|
32259
32322
|
export type VpnConnectionState = "connected" | "failure";
|
|
32260
32323
|
|
|
32261
32324
|
/**
|
|
32262
32325
|
* The enum is used by the platform to indicate the event that triggered `onUIEvent`.
|
|
32263
32326
|
*
|
|
32264
|
-
* @chrome-enum "showAddDialog"
|
|
32265
|
-
* @chrome-enum "showConfigureDialog"
|
|
32327
|
+
* @chrome-enum "showAddDialog" Requests that the VPN client show the add configuration dialog box to the user.
|
|
32328
|
+
* @chrome-enum "showConfigureDialog" Requests that the VPN client show the configuration settings dialog box to the user.
|
|
32266
32329
|
*/
|
|
32267
32330
|
export type UIEvent = "showAddDialog" | "showConfigureDialog";
|
|
32268
32331
|
|
|
@@ -33766,51 +33829,87 @@ declare namespace chrome {
|
|
|
33766
33829
|
export namespace webRequest {
|
|
33767
33830
|
|
|
33768
33831
|
/**
|
|
33832
|
+
* @chrome-enum "main\_frame" Specifies the resource as the main frame.
|
|
33833
|
+
* @chrome-enum "sub\_frame" Specifies the resource as a sub frame.
|
|
33834
|
+
* @chrome-enum "stylesheet" Specifies the resource as a stylesheet.
|
|
33835
|
+
* @chrome-enum "script" Specifies the resource as a script.
|
|
33836
|
+
* @chrome-enum "image" Specifies the resource as an image.
|
|
33837
|
+
* @chrome-enum "font" Specifies the resource as a font.
|
|
33838
|
+
* @chrome-enum "object" Specifies the resource as an object.
|
|
33839
|
+
* @chrome-enum "xmlhttprequest" Specifies the resource as an XMLHttpRequest.
|
|
33840
|
+
* @chrome-enum "ping" Specifies the resource as a ping.
|
|
33841
|
+
* @chrome-enum "csp\_report" Specifies the resource as a Content Security Policy (CSP) report.
|
|
33842
|
+
* @chrome-enum "media" Specifies the resource as a media object.
|
|
33843
|
+
* @chrome-enum "websocket" Specifies the resource as a WebSocket.
|
|
33844
|
+
* @chrome-enum "webbundle" Specifies the resource as a WebBundle.
|
|
33845
|
+
* @chrome-enum "other" Specifies the resource as a type not included in the listed types.
|
|
33769
33846
|
* @since Chrome 44
|
|
33770
33847
|
*/
|
|
33771
33848
|
export type ResourceType = "main_frame" | "sub_frame" | "stylesheet" | "script" | "image" | "font" | "object" | "xmlhttprequest" | "ping" | "csp_report" | "media" | "websocket" | "webbundle" | "other";
|
|
33772
33849
|
|
|
33773
33850
|
/**
|
|
33851
|
+
* @chrome-enum "blocking" Specifies the request is blocked until the callback function returns.
|
|
33852
|
+
* @chrome-enum "requestBody" Specifies that the request body should be included in the event.
|
|
33853
|
+
* @chrome-enum "extraHeaders" Specifies that headers can violate Cross-Origin Resource Sharing (CORS).
|
|
33774
33854
|
* @since Chrome 44
|
|
33775
33855
|
*/
|
|
33776
33856
|
export type OnBeforeRequestOptions = "blocking" | "requestBody" | "extraHeaders";
|
|
33777
33857
|
|
|
33778
33858
|
/**
|
|
33859
|
+
* @chrome-enum "requestHeaders" Specifies that the request header should be included in the event.
|
|
33860
|
+
* @chrome-enum "blocking" Specifies the request is blocked until the callback function returns.
|
|
33861
|
+
* @chrome-enum "extraHeaders" Specifies that headers can violate Cross-Origin Resource Sharing (CORS).
|
|
33779
33862
|
* @since Chrome 44
|
|
33780
33863
|
*/
|
|
33781
33864
|
export type OnBeforeSendHeadersOptions = "requestHeaders" | "blocking" | "extraHeaders";
|
|
33782
33865
|
|
|
33783
33866
|
/**
|
|
33867
|
+
* @chrome-enum "requestHeaders" Specifies that the request header should be included in the event.
|
|
33868
|
+
* @chrome-enum "extraHeaders" Specifies that headers can violate Cross-Origin Resource Sharing (CORS).
|
|
33784
33869
|
* @since Chrome 44
|
|
33785
33870
|
*/
|
|
33786
33871
|
export type OnSendHeadersOptions = "requestHeaders" | "extraHeaders";
|
|
33787
33872
|
|
|
33788
33873
|
/**
|
|
33874
|
+
* @chrome-enum "blocking" Specifies the request is blocked until the callback function returns.
|
|
33875
|
+
* @chrome-enum "responseHeaders" Specifies that the response headers should be included in the event.
|
|
33876
|
+
* @chrome-enum "extraHeaders" Specifies that headers can violate Cross-Origin Resource Sharing (CORS).
|
|
33789
33877
|
* @since Chrome 44
|
|
33790
33878
|
*/
|
|
33791
33879
|
export type OnHeadersReceivedOptions = "blocking" | "responseHeaders" | "extraHeaders";
|
|
33792
33880
|
|
|
33793
33881
|
/**
|
|
33882
|
+
* @chrome-enum "responseHeaders" Specifies that the response headers should be included in the event.
|
|
33883
|
+
* @chrome-enum "blocking" Specifies the request is blocked until the callback function returns.
|
|
33884
|
+
* @chrome-enum "asyncBlocking" Specifies that the callback function is handled asynchronously.
|
|
33885
|
+
* @chrome-enum "extraHeaders" Specifies that headers can violate Cross-Origin Resource Sharing (CORS).
|
|
33794
33886
|
* @since Chrome 44
|
|
33795
33887
|
*/
|
|
33796
33888
|
export type OnAuthRequiredOptions = "responseHeaders" | "blocking" | "asyncBlocking" | "extraHeaders";
|
|
33797
33889
|
|
|
33798
33890
|
/**
|
|
33891
|
+
* @chrome-enum "responseHeaders" Specifies that the response headers should be included in the event.
|
|
33892
|
+
* @chrome-enum "extraHeaders" Specifies that headers can violate Cross-Origin Resource Sharing (CORS).
|
|
33799
33893
|
* @since Chrome 44
|
|
33800
33894
|
*/
|
|
33801
33895
|
export type OnResponseStartedOptions = "responseHeaders" | "extraHeaders";
|
|
33802
33896
|
|
|
33803
33897
|
/**
|
|
33898
|
+
* @chrome-enum "responseHeaders" Specifies that the response headers should be included in the event.
|
|
33899
|
+
* @chrome-enum "extraHeaders" Specifies that headers can violate Cross-Origin Resource Sharing (CORS).
|
|
33804
33900
|
* @since Chrome 44
|
|
33805
33901
|
*/
|
|
33806
33902
|
export type OnBeforeRedirectOptions = "responseHeaders" | "extraHeaders";
|
|
33807
33903
|
|
|
33808
33904
|
/**
|
|
33905
|
+
* @chrome-enum "responseHeaders" Specifies that the response headers should be included in the event.
|
|
33906
|
+
* @chrome-enum "extraHeaders" Specifies that headers can violate Cross-Origin Resource Sharing (CORS).
|
|
33809
33907
|
* @since Chrome 44
|
|
33810
33908
|
*/
|
|
33811
33909
|
export type OnCompletedOptions = "responseHeaders" | "extraHeaders";
|
|
33812
33910
|
|
|
33813
33911
|
/**
|
|
33912
|
+
* @chrome-enum "extraHeaders" Specifies that headers can violate Cross-Origin Resource Sharing (CORS).
|
|
33814
33913
|
* @since Chrome 79
|
|
33815
33914
|
*/
|
|
33816
33915
|
export type OnErrorOccurredOptions = "extraHeaders";
|
|
@@ -36406,6 +36505,9 @@ declare namespace chrome {
|
|
|
36406
36505
|
/**
|
|
36407
36506
|
* Specifies what type of browser window to create. 'panel' is deprecated and is available only to existing allowlisted extensions on Chrome OS.
|
|
36408
36507
|
*
|
|
36508
|
+
* @chrome-enum "normal" Specifies the window as a standard window.
|
|
36509
|
+
* @chrome-enum "popup" Specifies the window as a popup window.
|
|
36510
|
+
* @chrome-enum "panel" Specifies the window as a panel.
|
|
36409
36511
|
* @since Chrome 44
|
|
36410
36512
|
*/
|
|
36411
36513
|
export type CreateType = "normal" | "popup" | "panel";
|
package/index.d.ts
CHANGED
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
// Generated on
|
|
18
|
-
// Built at
|
|
17
|
+
// Generated on Wed Jul 05 2023 22:29:58 GMT+0000 (Coordinated Universal Time)
|
|
18
|
+
// Built at 8865557ecede3b4453b00383983870bcdeb75ed3
|
|
19
19
|
|
|
20
20
|
// Includes MV3+ APIs only.
|
|
21
21
|
|
|
@@ -2287,14 +2287,14 @@ declare namespace chrome {
|
|
|
2287
2287
|
/**
|
|
2288
2288
|
* Types of supported cryptographic signature algorithms.
|
|
2289
2289
|
*
|
|
2290
|
-
* @chrome-enum "RSASSA\_PKCS1\_v1\_5\_MD5\_SHA1" RSASSA PKCS#1 v1.5 signature algorithm with the MD5-SHA-1 hashing. The extension must not prepend a DigestInfo prefix but only add PKCS#1 padding. This algorithm is deprecated and will never be requested by Chrome as of version 109.
|
|
2291
|
-
* @chrome-enum "RSASSA\_PKCS1\_v1\_5\_SHA1" RSASSA PKCS#1 v1.5 signature algorithm with the SHA-1 hash function.
|
|
2292
|
-
* @chrome-enum "RSASSA\_PKCS1\_v1\_5\_SHA256" RSASSA PKCS#1 v1.5 signature algorithm with the SHA-256 hashing function.
|
|
2293
|
-
* @chrome-enum "RSASSA\_PKCS1\_v1\_5\_SHA384" RSASSA PKCS#1 v1.5 signature algorithm with the SHA-384 hashing function.
|
|
2294
|
-
* @chrome-enum "RSASSA\_PKCS1\_v1\_5\_SHA512" RSASSA PKCS#1 v1.5 signature algorithm with the SHA-512 hashing function.
|
|
2295
|
-
* @chrome-enum "RSASSA\_PSS\_SHA256"
|
|
2296
|
-
* @chrome-enum "RSASSA\_PSS\_SHA384"
|
|
2297
|
-
* @chrome-enum "RSASSA\_PSS\_SHA512"
|
|
2290
|
+
* @chrome-enum "RSASSA\_PKCS1\_v1\_5\_MD5\_SHA1" Specifies the RSASSA PKCS#1 v1.5 signature algorithm with the MD5-SHA-1 hashing. The extension must not prepend a DigestInfo prefix but only add PKCS#1 padding. This algorithm is deprecated and will never be requested by Chrome as of version 109.
|
|
2291
|
+
* @chrome-enum "RSASSA\_PKCS1\_v1\_5\_SHA1" Specifies the RSASSA PKCS#1 v1.5 signature algorithm with the SHA-1 hash function.
|
|
2292
|
+
* @chrome-enum "RSASSA\_PKCS1\_v1\_5\_SHA256" Specifies the RSASSA PKCS#1 v1.5 signature algorithm with the SHA-256 hashing function.
|
|
2293
|
+
* @chrome-enum "RSASSA\_PKCS1\_v1\_5\_SHA384" Specifies the RSASSA PKCS#1 v1.5 signature algorithm with the SHA-384 hashing function.
|
|
2294
|
+
* @chrome-enum "RSASSA\_PKCS1\_v1\_5\_SHA512" Specifies the RSASSA PKCS#1 v1.5 signature algorithm with the SHA-512 hashing function.
|
|
2295
|
+
* @chrome-enum "RSASSA\_PSS\_SHA256" Specifies the RSASSA PSS signature algorithm with the SHA-256 hashing function, MGF1 mask generation function and the salt of the same size as the hash.
|
|
2296
|
+
* @chrome-enum "RSASSA\_PSS\_SHA384" Specifies the RSASSA PSS signature algorithm with the SHA-384 hashing function, MGF1 mask generation function and the salt of the same size as the hash.
|
|
2297
|
+
* @chrome-enum "RSASSA\_PSS\_SHA512" Specifies the RSASSA PSS signature algorithm with the SHA-512 hashing function, MGF1 mask generation function and the salt of the same size as the hash.
|
|
2298
2298
|
* @since Chrome 86
|
|
2299
2299
|
*/
|
|
2300
2300
|
export type Algorithm = "RSASSA_PKCS1_v1_5_MD5_SHA1" | "RSASSA_PKCS1_v1_5_SHA1" | "RSASSA_PKCS1_v1_5_SHA256" | "RSASSA_PKCS1_v1_5_SHA384" | "RSASSA_PKCS1_v1_5_SHA512" | "RSASSA_PSS_SHA256" | "RSASSA_PSS_SHA384" | "RSASSA_PSS_SHA512";
|
|
@@ -2406,12 +2406,20 @@ declare namespace chrome {
|
|
|
2406
2406
|
|
|
2407
2407
|
/**
|
|
2408
2408
|
* Deprecated. Replaced by {@link Algorithm}.
|
|
2409
|
+
*
|
|
2410
|
+
* @chrome-enum "MD5\_SHA1" Specifies the MD5 and SHA1 hashing algorithms.
|
|
2411
|
+
* @chrome-enum "SHA1" Specifies the SHA1 hashing algorithm.
|
|
2412
|
+
* @chrome-enum "SHA256" Specifies the SHA256 hashing algorithm.
|
|
2413
|
+
* @chrome-enum "SHA384" Specifies the SHA384 hashing algorithm.
|
|
2414
|
+
* @chrome-enum "SHA512" Specifies the SHA512 hashing algorithm.
|
|
2409
2415
|
*/
|
|
2410
2416
|
export type Hash = "MD5_SHA1" | "SHA1" | "SHA256" | "SHA384" | "SHA512";
|
|
2411
2417
|
|
|
2412
2418
|
/**
|
|
2413
2419
|
* The type of code being requested by the extension with requestPin function.
|
|
2414
2420
|
*
|
|
2421
|
+
* @chrome-enum "PIN" Specifies the requested code is a PIN.
|
|
2422
|
+
* @chrome-enum "PUK" Specifies the requested code is a PUK.
|
|
2415
2423
|
* @since Chrome 57
|
|
2416
2424
|
*/
|
|
2417
2425
|
export type PinRequestType = "PIN" | "PUK";
|
|
@@ -2419,6 +2427,10 @@ declare namespace chrome {
|
|
|
2419
2427
|
/**
|
|
2420
2428
|
* The types of errors that can be presented to the user through the requestPin function.
|
|
2421
2429
|
*
|
|
2430
|
+
* @chrome-enum "INVALID\_PIN" Specifies the PIN is invalid.
|
|
2431
|
+
* @chrome-enum "INVALID\_PUK" Specifies the PUK is invalid.
|
|
2432
|
+
* @chrome-enum "MAX\_ATTEMPTS\_EXCEEDED" Specifies the maximum attempt number has been exceeded.
|
|
2433
|
+
* @chrome-enum "UNKNOWN\_ERROR" Specifies that the error cannot be represented by the above types.
|
|
2422
2434
|
* @since Chrome 57
|
|
2423
2435
|
*/
|
|
2424
2436
|
export type PinRequestErrorType = "INVALID_PIN" | "INVALID_PUK" | "MAX_ATTEMPTS_EXCEEDED" | "UNKNOWN_ERROR";
|
|
@@ -7047,6 +7059,8 @@ declare namespace chrome {
|
|
|
7047
7059
|
|
|
7048
7060
|
/**
|
|
7049
7061
|
* Enable or disable the gray shelf at the bottom of every window associated with the current browser profile. The shelf will be disabled as long as at least one extension has disabled it. Enabling the shelf while at least one other extension has disabled it will return an error through {@link runtime.lastError}. Requires the `"downloads.shelf"` permission in addition to the `"downloads"` permission.
|
|
7062
|
+
*
|
|
7063
|
+
* @deprecated Use {@link setUiOptions} instead.
|
|
7050
7064
|
*/
|
|
7051
7065
|
export function setShelfEnabled(
|
|
7052
7066
|
|
|
@@ -10705,8 +10719,8 @@ declare namespace chrome {
|
|
|
10705
10719
|
}
|
|
10706
10720
|
|
|
10707
10721
|
/**
|
|
10708
|
-
* @chrome-enum "SYNC" Sync is enabled for the primary account.
|
|
10709
|
-
* @chrome-enum "ANY"
|
|
10722
|
+
* @chrome-enum "SYNC" Specifies that Sync is enabled for the primary account.
|
|
10723
|
+
* @chrome-enum "ANY" Specifies the existence of a primary account, if any.
|
|
10710
10724
|
* @since Chrome 84
|
|
10711
10725
|
*/
|
|
10712
10726
|
export type AccountStatus = "SYNC" | "ANY";
|
|
@@ -12542,18 +12556,18 @@ declare namespace chrome {
|
|
|
12542
12556
|
export namespace loginState {
|
|
12543
12557
|
|
|
12544
12558
|
/**
|
|
12545
|
-
* @chrome-enum "SIGNIN\_PROFILE"
|
|
12546
|
-
* @chrome-enum "USER\_PROFILE"
|
|
12559
|
+
* @chrome-enum "SIGNIN\_PROFILE" Specifies that the extension is in the signin profile.
|
|
12560
|
+
* @chrome-enum "USER\_PROFILE" Specifies that the extension is in the user profile.
|
|
12547
12561
|
*/
|
|
12548
12562
|
export type ProfileType = "SIGNIN_PROFILE" | "USER_PROFILE";
|
|
12549
12563
|
|
|
12550
12564
|
/**
|
|
12551
|
-
* @chrome-enum "UNKNOWN"
|
|
12552
|
-
* @chrome-enum "IN\_OOBE\_SCREEN"
|
|
12553
|
-
* @chrome-enum "IN\_LOGIN\_SCREEN"
|
|
12554
|
-
* @chrome-enum "IN\_SESSION"
|
|
12555
|
-
* @chrome-enum "IN\_LOCK\_SCREEN"
|
|
12556
|
-
* @chrome-enum "IN\_RMA\_SCREEN"
|
|
12565
|
+
* @chrome-enum "UNKNOWN" Specifies that the session state is unknown.
|
|
12566
|
+
* @chrome-enum "IN\_OOBE\_SCREEN" Specifies that the user is in the out-of-box-experience screen.
|
|
12567
|
+
* @chrome-enum "IN\_LOGIN\_SCREEN" Specifies that the user is in the login screen.
|
|
12568
|
+
* @chrome-enum "IN\_SESSION" Specifies that the user is in the session.
|
|
12569
|
+
* @chrome-enum "IN\_LOCK\_SCREEN" Specifies that the user is in the lock screen.
|
|
12570
|
+
* @chrome-enum "IN\_RMA\_SCREEN" Specifies that the device is in RMA mode, finalizing repairs.
|
|
12557
12571
|
*/
|
|
12558
12572
|
export type SessionState = "UNKNOWN" | "IN_OOBE_SCREEN" | "IN_LOGIN_SCREEN" | "IN_SESSION" | "IN_LOCK_SCREEN" | "IN_RMA_SCREEN";
|
|
12559
12573
|
|
|
@@ -15160,16 +15174,16 @@ declare namespace chrome {
|
|
|
15160
15174
|
export namespace notifications {
|
|
15161
15175
|
|
|
15162
15176
|
/**
|
|
15163
|
-
* @chrome-enum "basic" icon, title, message, expandedMessage, up to two buttons
|
|
15164
|
-
* @chrome-enum "image" icon, title, message, expandedMessage, image, up to two buttons
|
|
15165
|
-
* @chrome-enum "list" icon, title, message, items, up to two buttons. Users on Mac OS X only see the first item.
|
|
15166
|
-
* @chrome-enum "progress" icon, title, message, progress, up to two buttons
|
|
15177
|
+
* @chrome-enum "basic" Contains an icon, title, message, expandedMessage, and up to two buttons.
|
|
15178
|
+
* @chrome-enum "image" Contains an icon, title, message, expandedMessage, image, and up to two buttons.
|
|
15179
|
+
* @chrome-enum "list" Contains an icon, title, message, items, and up to two buttons. Users on Mac OS X only see the first item.
|
|
15180
|
+
* @chrome-enum "progress" Contains an icon, title, message, progress, and up to two buttons.
|
|
15167
15181
|
*/
|
|
15168
15182
|
export type TemplateType = "basic" | "image" | "list" | "progress";
|
|
15169
15183
|
|
|
15170
15184
|
/**
|
|
15171
|
-
* @chrome-enum "granted"
|
|
15172
|
-
* @chrome-enum "denied"
|
|
15185
|
+
* @chrome-enum "granted" Specifies that the user has elected to show notifications from the app or extension. This is the default at install time.
|
|
15186
|
+
* @chrome-enum "denied" Specifies that the user has elected not to show notifications from the app or extension.
|
|
15173
15187
|
*/
|
|
15174
15188
|
export type PermissionLevel = "granted" | "denied";
|
|
15175
15189
|
|
|
@@ -15542,18 +15556,18 @@ declare namespace chrome {
|
|
|
15542
15556
|
|
|
15543
15557
|
/**
|
|
15544
15558
|
* @chrome-enum "TESTING" A reason used for testing purposes only.
|
|
15545
|
-
* @chrome-enum "AUDIO\_PLAYBACK"
|
|
15546
|
-
* @chrome-enum "IFRAME\_SCRIPTING"
|
|
15547
|
-
* @chrome-enum "DOM\_SCRAPING"
|
|
15548
|
-
* @chrome-enum "BLOBS"
|
|
15549
|
-
* @chrome-enum "DOM\_PARSER"
|
|
15550
|
-
* @chrome-enum "USER\_MEDIA"
|
|
15551
|
-
* @chrome-enum "DISPLAY\_MEDIA"
|
|
15552
|
-
* @chrome-enum "WEB\_RTC"
|
|
15553
|
-
* @chrome-enum "CLIPBOARD"
|
|
15554
|
-
* @chrome-enum "LOCAL\_STORAGE"
|
|
15555
|
-
* @chrome-enum "WORKERS"
|
|
15556
|
-
* @chrome-enum "GEOLOCATION"
|
|
15559
|
+
* @chrome-enum "AUDIO\_PLAYBACK" Specifies that the offscreen document is responsible for playing audio.
|
|
15560
|
+
* @chrome-enum "IFRAME\_SCRIPTING" Specifies that the offscreen document needs to embed and script an iframe in order to modify the iframe's content.
|
|
15561
|
+
* @chrome-enum "DOM\_SCRAPING" Specifies that the offscreen document needs to embed an iframe and scrape its DOM to extract information.
|
|
15562
|
+
* @chrome-enum "BLOBS" Specifies that the offscreen document needs to interact with Blob objects (including `URL.createObjectURL()`).
|
|
15563
|
+
* @chrome-enum "DOM\_PARSER" Specifies that the offscreen document needs to use the
|
|
15564
|
+
* @chrome-enum "USER\_MEDIA" Specifies that the offscreen document needs to interact with media streams from user media (e.g. `getUserMedia()`).
|
|
15565
|
+
* @chrome-enum "DISPLAY\_MEDIA" Specifies that the offscreen document needs to interact with media streams from display media (e.g. `getDisplayMedia()`).
|
|
15566
|
+
* @chrome-enum "WEB\_RTC" Specifies that the offscreen document needs to use
|
|
15567
|
+
* @chrome-enum "CLIPBOARD" Specifies that the offscreen document needs to interact with the
|
|
15568
|
+
* @chrome-enum "LOCAL\_STORAGE" Specifies that the offscreen document needs access to [localStorage](https://developer.mozilla.org/en-US/docs/Web/API/Window/localStorage).
|
|
15569
|
+
* @chrome-enum "WORKERS" Specifies that the offscreen document needs to spawn workers.
|
|
15570
|
+
* @chrome-enum "GEOLOCATION" Specifies that the offscreen document needs to use [navigator.geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/geolocation).
|
|
15557
15571
|
*/
|
|
15558
15572
|
export type Reason = "TESTING" | "AUDIO_PLAYBACK" | "IFRAME_SCRIPTING" | "DOM_SCRAPING" | "BLOBS" | "DOM_PARSER" | "USER_MEDIA" | "DISPLAY_MEDIA" | "WEB_RTC" | "CLIPBOARD" | "LOCAL_STORAGE" | "WORKERS" | "GEOLOCATION";
|
|
15559
15573
|
|
|
@@ -16085,8 +16099,8 @@ declare namespace chrome {
|
|
|
16085
16099
|
export namespace power {
|
|
16086
16100
|
|
|
16087
16101
|
/**
|
|
16088
|
-
* @chrome-enum "system"
|
|
16089
|
-
* @chrome-enum "display"
|
|
16102
|
+
* @chrome-enum "system" Prevents the system from sleeping in response to user inactivity.
|
|
16103
|
+
* @chrome-enum "display" Prevents the display from being turned off or dimmed, or the system from sleeping in response to user inactivity.
|
|
16090
16104
|
*/
|
|
16091
16105
|
export type Level = "system" | "display";
|
|
16092
16106
|
|
|
@@ -16136,10 +16150,10 @@ declare namespace chrome {
|
|
|
16136
16150
|
/**
|
|
16137
16151
|
* Error codes returned in response to {@link onPrintRequested} event.
|
|
16138
16152
|
*
|
|
16139
|
-
* @chrome-enum "OK"
|
|
16140
|
-
* @chrome-enum "FAILED"
|
|
16141
|
-
* @chrome-enum "INVALID\_TICKET"
|
|
16142
|
-
* @chrome-enum "INVALID\_DATA"
|
|
16153
|
+
* @chrome-enum "OK" Specifies that the operation was completed successfully.
|
|
16154
|
+
* @chrome-enum "FAILED" Specifies that a general failure occured.
|
|
16155
|
+
* @chrome-enum "INVALID\_TICKET" Specifies that the print ticket is invalid. For example, the ticket is inconsistent with some capabilities, or the extension is not able to handle all settings from the ticket.
|
|
16156
|
+
* @chrome-enum "INVALID\_DATA" Specifies that the document is invalid. For example, data may be corrupted or the format is incompatible with the extension.
|
|
16143
16157
|
*/
|
|
16144
16158
|
export type PrintError = "OK" | "FAILED" | "INVALID_TICKET" | "INVALID_DATA";
|
|
16145
16159
|
|
|
@@ -16480,39 +16494,39 @@ declare namespace chrome {
|
|
|
16480
16494
|
/**
|
|
16481
16495
|
* The source of the print job.
|
|
16482
16496
|
*
|
|
16483
|
-
* @chrome-enum "PRINT\_PREVIEW"
|
|
16484
|
-
* @chrome-enum "ANDROID\_APP"
|
|
16485
|
-
* @chrome-enum "EXTENSION"
|
|
16497
|
+
* @chrome-enum "PRINT\_PREVIEW" Specifies that the job was created from the Print Preview page initiated by the user.
|
|
16498
|
+
* @chrome-enum "ANDROID\_APP" Specifies that the job was created from an Android App.
|
|
16499
|
+
* @chrome-enum "EXTENSION" Specifies that the job was created by extension via Chrome API.
|
|
16486
16500
|
*/
|
|
16487
16501
|
export type PrintJobSource = "PRINT_PREVIEW" | "ANDROID_APP" | "EXTENSION";
|
|
16488
16502
|
|
|
16489
16503
|
/**
|
|
16490
|
-
*
|
|
16504
|
+
* Specifies the final status of the print job.
|
|
16491
16505
|
*
|
|
16492
|
-
* @chrome-enum "FAILED"
|
|
16493
|
-
* @chrome-enum "CANCELED"
|
|
16494
|
-
* @chrome-enum "PRINTED"
|
|
16506
|
+
* @chrome-enum "FAILED" Specifies that the print job was interrupted due to some error.
|
|
16507
|
+
* @chrome-enum "CANCELED" Specifies that the print job was canceled by the user or via API.
|
|
16508
|
+
* @chrome-enum "PRINTED" Specifies that the print job was printed without any errors.
|
|
16495
16509
|
*/
|
|
16496
16510
|
export type PrintJobStatus = "FAILED" | "CANCELED" | "PRINTED";
|
|
16497
16511
|
|
|
16498
16512
|
/**
|
|
16499
16513
|
* The source of the printer.
|
|
16500
16514
|
*
|
|
16501
|
-
* @chrome-enum "USER"
|
|
16502
|
-
* @chrome-enum "POLICY"
|
|
16515
|
+
* @chrome-enum "USER" Specifies that the printer was added by user.
|
|
16516
|
+
* @chrome-enum "POLICY" Specifies that the printer was added via policy.
|
|
16503
16517
|
*/
|
|
16504
16518
|
export type PrinterSource = "USER" | "POLICY";
|
|
16505
16519
|
|
|
16506
16520
|
/**
|
|
16507
|
-
* @chrome-enum "BLACK\_AND\_WHITE"
|
|
16508
|
-
* @chrome-enum "COLOR"
|
|
16521
|
+
* @chrome-enum "BLACK\_AND\_WHITE" Specifies that black and white mode was used.
|
|
16522
|
+
* @chrome-enum "COLOR" Specifies that color mode was used.
|
|
16509
16523
|
*/
|
|
16510
16524
|
export type ColorMode = "BLACK_AND_WHITE" | "COLOR";
|
|
16511
16525
|
|
|
16512
16526
|
/**
|
|
16513
|
-
* @chrome-enum "ONE\_SIDED"
|
|
16514
|
-
* @chrome-enum "TWO\_SIDED\_LONG\_EDGE"
|
|
16515
|
-
* @chrome-enum "TWO\_SIDED\_SHORT\_EDGE"
|
|
16527
|
+
* @chrome-enum "ONE\_SIDED" Specifies that one-sided printing was used.
|
|
16528
|
+
* @chrome-enum "TWO\_SIDED\_LONG\_EDGE" Specifies that two-sided printing was used, flipping on long edge.
|
|
16529
|
+
* @chrome-enum "TWO\_SIDED\_SHORT\_EDGE" Specifies that two-sided printing was used, flipping on short edge.
|
|
16516
16530
|
*/
|
|
16517
16531
|
export type DuplexMode = "ONE_SIDED" | "TWO_SIDED_LONG_EDGE" | "TWO_SIDED_SHORT_EDGE";
|
|
16518
16532
|
|
|
@@ -17215,7 +17229,7 @@ declare namespace chrome {
|
|
|
17215
17229
|
}
|
|
17216
17230
|
|
|
17217
17231
|
/**
|
|
17218
|
-
* Use the `chrome.runtime` API to retrieve the
|
|
17232
|
+
* Use the `chrome.runtime` API to retrieve the service worker, return details about the manifest, and listen for and respond to events in the app or extension lifecycle. You can also use this API to convert the relative path of URLs to fully-qualified URLs.
|
|
17219
17233
|
*/
|
|
17220
17234
|
export namespace runtime {
|
|
17221
17235
|
|
|
@@ -17330,6 +17344,13 @@ declare namespace chrome {
|
|
|
17330
17344
|
/**
|
|
17331
17345
|
* The operating system Chrome is running on.
|
|
17332
17346
|
*
|
|
17347
|
+
* @chrome-enum "mac" Specifies the MacOS operating system.
|
|
17348
|
+
* @chrome-enum "win" Specifies the Windows operating system.
|
|
17349
|
+
* @chrome-enum "android" Specifies the Android operating system.
|
|
17350
|
+
* @chrome-enum "cros" Specifies the Chrome operating system.
|
|
17351
|
+
* @chrome-enum "linux" Specifies the Linux operating system.
|
|
17352
|
+
* @chrome-enum "openbsd" Specifies the OpenBSD operating system.
|
|
17353
|
+
* @chrome-enum "fuchsia" Specifies the Fuchsia operating system.
|
|
17333
17354
|
* @since Chrome 44
|
|
17334
17355
|
*/
|
|
17335
17356
|
export type PlatformOs = "mac" | "win" | "android" | "cros" | "linux" | "openbsd" | "fuchsia";
|
|
@@ -17337,6 +17358,12 @@ declare namespace chrome {
|
|
|
17337
17358
|
/**
|
|
17338
17359
|
* The machine's processor architecture.
|
|
17339
17360
|
*
|
|
17361
|
+
* @chrome-enum "arm" Specifies the processer architecture as arm.
|
|
17362
|
+
* @chrome-enum "arm64" Specifies the processer architecture as arm64.
|
|
17363
|
+
* @chrome-enum "x86-32" Specifies the processer architecture as x86-32.
|
|
17364
|
+
* @chrome-enum "x86-64" Specifies the processer architecture as x86-64.
|
|
17365
|
+
* @chrome-enum "mips" Specifies the processer architecture as mips.
|
|
17366
|
+
* @chrome-enum "mips64" Specifies the processer architecture as mips64.
|
|
17340
17367
|
* @since Chrome 44
|
|
17341
17368
|
*/
|
|
17342
17369
|
export type PlatformArch = "arm" | "arm64" | "x86-32" | "x86-64" | "mips" | "mips64";
|
|
@@ -17344,6 +17371,11 @@ declare namespace chrome {
|
|
|
17344
17371
|
/**
|
|
17345
17372
|
* The native client architecture. This may be different from arch on some platforms.
|
|
17346
17373
|
*
|
|
17374
|
+
* @chrome-enum "arm" Specifies the native client architecture as arm.
|
|
17375
|
+
* @chrome-enum "x86-32" Specifies the native client architecture as x86-32.
|
|
17376
|
+
* @chrome-enum "x86-64" Specifies the native client architecture as x86-64.
|
|
17377
|
+
* @chrome-enum "mips" Specifies the native client architecture as mips.
|
|
17378
|
+
* @chrome-enum "mips64" Specifies the native client architecture as mips64.
|
|
17347
17379
|
* @since Chrome 44
|
|
17348
17380
|
*/
|
|
17349
17381
|
export type PlatformNaclArch = "arm" | "x86-32" | "x86-64" | "mips" | "mips64";
|
|
@@ -17372,6 +17404,9 @@ declare namespace chrome {
|
|
|
17372
17404
|
/**
|
|
17373
17405
|
* Result of the update check.
|
|
17374
17406
|
*
|
|
17407
|
+
* @chrome-enum "throttled" Specifies that the status check has been throttled. This can occur after repeated checks within a short amount of time.
|
|
17408
|
+
* @chrome-enum "no\_update" Specifies that there are no available updates to install.
|
|
17409
|
+
* @chrome-enum "update\_available" Specifies that there is an available update to install.
|
|
17375
17410
|
* @since Chrome 44
|
|
17376
17411
|
*/
|
|
17377
17412
|
export type RequestUpdateCheckStatus = "throttled" | "no_update" | "update_available";
|
|
@@ -17379,6 +17414,10 @@ declare namespace chrome {
|
|
|
17379
17414
|
/**
|
|
17380
17415
|
* The reason that this event is being dispatched.
|
|
17381
17416
|
*
|
|
17417
|
+
* @chrome-enum "install" Specifies the event reason as an installation.
|
|
17418
|
+
* @chrome-enum "update" Specifies the event reason as an extension update.
|
|
17419
|
+
* @chrome-enum "chrome\_update" Specifies the event reason as a Chrome update.
|
|
17420
|
+
* @chrome-enum "shared\_module\_update" Specifies the event reason as an update to a shared module.
|
|
17382
17421
|
* @since Chrome 44
|
|
17383
17422
|
*/
|
|
17384
17423
|
export type OnInstalledReason = "install" | "update" | "chrome_update" | "shared_module_update";
|
|
@@ -17386,11 +17425,19 @@ declare namespace chrome {
|
|
|
17386
17425
|
/**
|
|
17387
17426
|
* The reason that the event is being dispatched. 'app\_update' is used when the restart is needed because the application is updated to a newer version. 'os\_update' is used when the restart is needed because the browser/OS is updated to a newer version. 'periodic' is used when the system runs for more than the permitted uptime set in the enterprise policy.
|
|
17388
17427
|
*
|
|
17428
|
+
* @chrome-enum "app\_update" Specifies the event reason as an update to the app.
|
|
17429
|
+
* @chrome-enum "os\_update" Specifies the event reason as an update to the operating system.
|
|
17430
|
+
* @chrome-enum "periodic" Specifies the event reason as a periodic restart of the app.
|
|
17389
17431
|
* @since Chrome 44
|
|
17390
17432
|
*/
|
|
17391
17433
|
export type OnRestartRequiredReason = "app_update" | "os_update" | "periodic";
|
|
17392
17434
|
|
|
17393
17435
|
/**
|
|
17436
|
+
* @chrome-enum "TAB" Specifies the context type as a tab
|
|
17437
|
+
* @chrome-enum "POPUP" Specifies the context type as an extension popup window
|
|
17438
|
+
* @chrome-enum "BACKGROUND" Specifies the context type as a service worker.
|
|
17439
|
+
* @chrome-enum "OFFSCREEN\_DOCUMENT" Specifies the context type as an offscreen document.
|
|
17440
|
+
* @chrome-enum "SIDE\_PANEL" Specifies the context type as a side panel.
|
|
17394
17441
|
* @since Chrome 114
|
|
17395
17442
|
*/
|
|
17396
17443
|
export type ContextType = "TAB" | "POPUP" | "BACKGROUND" | "OFFSCREEN_DOCUMENT" | "SIDE_PANEL";
|
|
@@ -18021,8 +18068,8 @@ declare namespace chrome {
|
|
|
18021
18068
|
/**
|
|
18022
18069
|
* The JavaScript world for a script to execute within.
|
|
18023
18070
|
*
|
|
18024
|
-
* @chrome-enum "ISOLATED"
|
|
18025
|
-
* @chrome-enum "MAIN"
|
|
18071
|
+
* @chrome-enum "ISOLATED" Specifies the isolated world, which is the execution environment unique to this extension.
|
|
18072
|
+
* @chrome-enum "MAIN" Specifies the main world of the DOM, which is the execution environment shared with the host page's JavaScript.
|
|
18026
18073
|
* @since Chrome 95
|
|
18027
18074
|
*/
|
|
18028
18075
|
export type ExecutionWorld = "ISOLATED" | "MAIN";
|
|
@@ -18388,9 +18435,9 @@ declare namespace chrome {
|
|
|
18388
18435
|
export namespace search {
|
|
18389
18436
|
|
|
18390
18437
|
/**
|
|
18391
|
-
* @chrome-enum "CURRENT\_TAB"
|
|
18392
|
-
* @chrome-enum "NEW\_TAB"
|
|
18393
|
-
* @chrome-enum "NEW\_WINDOW"
|
|
18438
|
+
* @chrome-enum "CURRENT\_TAB" Specifies that the search results display in the calling tab or the tab from the active browser.
|
|
18439
|
+
* @chrome-enum "NEW\_TAB" Specifies that the search results display in a new tab.
|
|
18440
|
+
* @chrome-enum "NEW\_WINDOW" Specifies that the search results display in a new window.
|
|
18394
18441
|
*/
|
|
18395
18442
|
export type Disposition = "CURRENT_TAB" | "NEW_TAB" | "NEW_WINDOW";
|
|
18396
18443
|
|
|
@@ -19999,6 +20046,8 @@ declare namespace chrome {
|
|
|
19999
20046
|
/**
|
|
20000
20047
|
* The storage area's access level.
|
|
20001
20048
|
*
|
|
20049
|
+
* @chrome-enum "TRUSTED\_CONTEXTS" Specifies contexts originating from the extension itself.
|
|
20050
|
+
* @chrome-enum "TRUSTED\_AND\_UNTRUSTED\_CONTEXTS" Specifies contexts originating from outside the extension.
|
|
20002
20051
|
* @since Chrome 102
|
|
20003
20052
|
*/
|
|
20004
20053
|
export type AccessLevel = "TRUSTED_CONTEXTS" | "TRUSTED_AND_UNTRUSTED_CONTEXTS";
|
|
@@ -20594,6 +20643,13 @@ declare namespace chrome {
|
|
|
20594
20643
|
yearOfManufacture: number;
|
|
20595
20644
|
}
|
|
20596
20645
|
|
|
20646
|
+
/**
|
|
20647
|
+
* An enum to tell if the display is detected and used by the system. The display is considered 'inactive', if it is not detected by the system (maybe disconnected, or considered disconnected due to sleep mode, etc). This state is used to keep existing display when the all displays are disconnected, for example.
|
|
20648
|
+
*
|
|
20649
|
+
* @since Pending
|
|
20650
|
+
*/
|
|
20651
|
+
export type ActiveState = "active" | "inactive";
|
|
20652
|
+
|
|
20597
20653
|
export interface DisplayUnitInfo {
|
|
20598
20654
|
|
|
20599
20655
|
/**
|
|
@@ -20635,6 +20691,13 @@ declare namespace chrome {
|
|
|
20635
20691
|
*/
|
|
20636
20692
|
isEnabled: boolean;
|
|
20637
20693
|
|
|
20694
|
+
/**
|
|
20695
|
+
* Active if the display is detected and used by the system.
|
|
20696
|
+
*
|
|
20697
|
+
* @since Pending
|
|
20698
|
+
*/
|
|
20699
|
+
activeState: ActiveState;
|
|
20700
|
+
|
|
20638
20701
|
/**
|
|
20639
20702
|
* True for all displays when in unified desktop mode. See documentation for {@link enableUnifiedDesktop}.
|
|
20640
20703
|
*
|
|
@@ -20772,9 +20835,9 @@ declare namespace chrome {
|
|
|
20772
20835
|
/**
|
|
20773
20836
|
* Mirror mode, i.e. different ways of how a display is mirrored to other displays.
|
|
20774
20837
|
*
|
|
20775
|
-
* @chrome-enum "off"
|
|
20776
|
-
* @chrome-enum "normal"
|
|
20777
|
-
* @chrome-enum "mixed"
|
|
20838
|
+
* @chrome-enum "off" Specifies the default mode (extended or unified desktop).
|
|
20839
|
+
* @chrome-enum "normal" Specifies that the default source display will be mirrored to all other displays.
|
|
20840
|
+
* @chrome-enum "mixed" Specifies that the specified source display will be mirrored to the provided destination displays. All other connected displays will be extended.
|
|
20778
20841
|
* @since Chrome 65
|
|
20779
20842
|
*/
|
|
20780
20843
|
export type MirrorMode = "off" | "normal" | "mixed";
|
|
@@ -25108,30 +25171,30 @@ declare namespace chrome {
|
|
|
25108
25171
|
/**
|
|
25109
25172
|
* The enum is used by the platform to notify the client of the VPN session status.
|
|
25110
25173
|
*
|
|
25111
|
-
* @chrome-enum "connected" VPN configuration connected.
|
|
25112
|
-
* @chrome-enum "disconnected" VPN configuration disconnected.
|
|
25113
|
-
* @chrome-enum "error"
|
|
25114
|
-
* @chrome-enum "linkDown"
|
|
25115
|
-
* @chrome-enum "linkUp"
|
|
25116
|
-
* @chrome-enum "linkChanged"
|
|
25117
|
-
* @chrome-enum "suspend"
|
|
25118
|
-
* @chrome-enum "resume"
|
|
25174
|
+
* @chrome-enum "connected" Indicates that the VPN configuration connected.
|
|
25175
|
+
* @chrome-enum "disconnected" Indicates that the VPN configuration disconnected.
|
|
25176
|
+
* @chrome-enum "error" Indicates that an error occurred in VPN connection, for example a timeout. A description of the error is given as the {@link onPlatformMessage.error error argument to onPlatformMessage}.
|
|
25177
|
+
* @chrome-enum "linkDown" Indicates that the default physical network connection is down.
|
|
25178
|
+
* @chrome-enum "linkUp" Indicates that the default physical network connection is back up.
|
|
25179
|
+
* @chrome-enum "linkChanged" Indicates that the default physical network connection changed, e.g. wifi->mobile.
|
|
25180
|
+
* @chrome-enum "suspend" Indicates that the OS is preparing to suspend, so the VPN should drop its connection. The extension is not guaranteed to receive this event prior to suspending.
|
|
25181
|
+
* @chrome-enum "resume" Indicates that the OS has resumed and the user has logged back in, so the VPN should try to reconnect.
|
|
25119
25182
|
*/
|
|
25120
25183
|
export type PlatformMessage = "connected" | "disconnected" | "error" | "linkDown" | "linkUp" | "linkChanged" | "suspend" | "resume";
|
|
25121
25184
|
|
|
25122
25185
|
/**
|
|
25123
25186
|
* The enum is used by the VPN client to inform the platform of its current state. This helps provide meaningful messages to the user.
|
|
25124
25187
|
*
|
|
25125
|
-
* @chrome-enum "connected" VPN connection was successful.
|
|
25126
|
-
* @chrome-enum "failure" VPN connection failed.
|
|
25188
|
+
* @chrome-enum "connected" Specifies that VPN connection was successful.
|
|
25189
|
+
* @chrome-enum "failure" Specifies that VPN connection has failed.
|
|
25127
25190
|
*/
|
|
25128
25191
|
export type VpnConnectionState = "connected" | "failure";
|
|
25129
25192
|
|
|
25130
25193
|
/**
|
|
25131
25194
|
* The enum is used by the platform to indicate the event that triggered `onUIEvent`.
|
|
25132
25195
|
*
|
|
25133
|
-
* @chrome-enum "showAddDialog"
|
|
25134
|
-
* @chrome-enum "showConfigureDialog"
|
|
25196
|
+
* @chrome-enum "showAddDialog" Requests that the VPN client show the add configuration dialog box to the user.
|
|
25197
|
+
* @chrome-enum "showConfigureDialog" Requests that the VPN client show the configuration settings dialog box to the user.
|
|
25135
25198
|
*/
|
|
25136
25199
|
export type UIEvent = "showAddDialog" | "showConfigureDialog";
|
|
25137
25200
|
|
|
@@ -26635,51 +26698,87 @@ declare namespace chrome {
|
|
|
26635
26698
|
export namespace webRequest {
|
|
26636
26699
|
|
|
26637
26700
|
/**
|
|
26701
|
+
* @chrome-enum "main\_frame" Specifies the resource as the main frame.
|
|
26702
|
+
* @chrome-enum "sub\_frame" Specifies the resource as a sub frame.
|
|
26703
|
+
* @chrome-enum "stylesheet" Specifies the resource as a stylesheet.
|
|
26704
|
+
* @chrome-enum "script" Specifies the resource as a script.
|
|
26705
|
+
* @chrome-enum "image" Specifies the resource as an image.
|
|
26706
|
+
* @chrome-enum "font" Specifies the resource as a font.
|
|
26707
|
+
* @chrome-enum "object" Specifies the resource as an object.
|
|
26708
|
+
* @chrome-enum "xmlhttprequest" Specifies the resource as an XMLHttpRequest.
|
|
26709
|
+
* @chrome-enum "ping" Specifies the resource as a ping.
|
|
26710
|
+
* @chrome-enum "csp\_report" Specifies the resource as a Content Security Policy (CSP) report.
|
|
26711
|
+
* @chrome-enum "media" Specifies the resource as a media object.
|
|
26712
|
+
* @chrome-enum "websocket" Specifies the resource as a WebSocket.
|
|
26713
|
+
* @chrome-enum "webbundle" Specifies the resource as a WebBundle.
|
|
26714
|
+
* @chrome-enum "other" Specifies the resource as a type not included in the listed types.
|
|
26638
26715
|
* @since Chrome 44
|
|
26639
26716
|
*/
|
|
26640
26717
|
export type ResourceType = "main_frame" | "sub_frame" | "stylesheet" | "script" | "image" | "font" | "object" | "xmlhttprequest" | "ping" | "csp_report" | "media" | "websocket" | "webbundle" | "other";
|
|
26641
26718
|
|
|
26642
26719
|
/**
|
|
26720
|
+
* @chrome-enum "blocking" Specifies the request is blocked until the callback function returns.
|
|
26721
|
+
* @chrome-enum "requestBody" Specifies that the request body should be included in the event.
|
|
26722
|
+
* @chrome-enum "extraHeaders" Specifies that headers can violate Cross-Origin Resource Sharing (CORS).
|
|
26643
26723
|
* @since Chrome 44
|
|
26644
26724
|
*/
|
|
26645
26725
|
export type OnBeforeRequestOptions = "blocking" | "requestBody" | "extraHeaders";
|
|
26646
26726
|
|
|
26647
26727
|
/**
|
|
26728
|
+
* @chrome-enum "requestHeaders" Specifies that the request header should be included in the event.
|
|
26729
|
+
* @chrome-enum "blocking" Specifies the request is blocked until the callback function returns.
|
|
26730
|
+
* @chrome-enum "extraHeaders" Specifies that headers can violate Cross-Origin Resource Sharing (CORS).
|
|
26648
26731
|
* @since Chrome 44
|
|
26649
26732
|
*/
|
|
26650
26733
|
export type OnBeforeSendHeadersOptions = "requestHeaders" | "blocking" | "extraHeaders";
|
|
26651
26734
|
|
|
26652
26735
|
/**
|
|
26736
|
+
* @chrome-enum "requestHeaders" Specifies that the request header should be included in the event.
|
|
26737
|
+
* @chrome-enum "extraHeaders" Specifies that headers can violate Cross-Origin Resource Sharing (CORS).
|
|
26653
26738
|
* @since Chrome 44
|
|
26654
26739
|
*/
|
|
26655
26740
|
export type OnSendHeadersOptions = "requestHeaders" | "extraHeaders";
|
|
26656
26741
|
|
|
26657
26742
|
/**
|
|
26743
|
+
* @chrome-enum "blocking" Specifies the request is blocked until the callback function returns.
|
|
26744
|
+
* @chrome-enum "responseHeaders" Specifies that the response headers should be included in the event.
|
|
26745
|
+
* @chrome-enum "extraHeaders" Specifies that headers can violate Cross-Origin Resource Sharing (CORS).
|
|
26658
26746
|
* @since Chrome 44
|
|
26659
26747
|
*/
|
|
26660
26748
|
export type OnHeadersReceivedOptions = "blocking" | "responseHeaders" | "extraHeaders";
|
|
26661
26749
|
|
|
26662
26750
|
/**
|
|
26751
|
+
* @chrome-enum "responseHeaders" Specifies that the response headers should be included in the event.
|
|
26752
|
+
* @chrome-enum "blocking" Specifies the request is blocked until the callback function returns.
|
|
26753
|
+
* @chrome-enum "asyncBlocking" Specifies that the callback function is handled asynchronously.
|
|
26754
|
+
* @chrome-enum "extraHeaders" Specifies that headers can violate Cross-Origin Resource Sharing (CORS).
|
|
26663
26755
|
* @since Chrome 44
|
|
26664
26756
|
*/
|
|
26665
26757
|
export type OnAuthRequiredOptions = "responseHeaders" | "blocking" | "asyncBlocking" | "extraHeaders";
|
|
26666
26758
|
|
|
26667
26759
|
/**
|
|
26760
|
+
* @chrome-enum "responseHeaders" Specifies that the response headers should be included in the event.
|
|
26761
|
+
* @chrome-enum "extraHeaders" Specifies that headers can violate Cross-Origin Resource Sharing (CORS).
|
|
26668
26762
|
* @since Chrome 44
|
|
26669
26763
|
*/
|
|
26670
26764
|
export type OnResponseStartedOptions = "responseHeaders" | "extraHeaders";
|
|
26671
26765
|
|
|
26672
26766
|
/**
|
|
26767
|
+
* @chrome-enum "responseHeaders" Specifies that the response headers should be included in the event.
|
|
26768
|
+
* @chrome-enum "extraHeaders" Specifies that headers can violate Cross-Origin Resource Sharing (CORS).
|
|
26673
26769
|
* @since Chrome 44
|
|
26674
26770
|
*/
|
|
26675
26771
|
export type OnBeforeRedirectOptions = "responseHeaders" | "extraHeaders";
|
|
26676
26772
|
|
|
26677
26773
|
/**
|
|
26774
|
+
* @chrome-enum "responseHeaders" Specifies that the response headers should be included in the event.
|
|
26775
|
+
* @chrome-enum "extraHeaders" Specifies that headers can violate Cross-Origin Resource Sharing (CORS).
|
|
26678
26776
|
* @since Chrome 44
|
|
26679
26777
|
*/
|
|
26680
26778
|
export type OnCompletedOptions = "responseHeaders" | "extraHeaders";
|
|
26681
26779
|
|
|
26682
26780
|
/**
|
|
26781
|
+
* @chrome-enum "extraHeaders" Specifies that headers can violate Cross-Origin Resource Sharing (CORS).
|
|
26683
26782
|
* @since Chrome 79
|
|
26684
26783
|
*/
|
|
26685
26784
|
export type OnErrorOccurredOptions = "extraHeaders";
|
|
@@ -27888,6 +27987,9 @@ declare namespace chrome {
|
|
|
27888
27987
|
/**
|
|
27889
27988
|
* Specifies what type of browser window to create. 'panel' is deprecated and is available only to existing allowlisted extensions on Chrome OS.
|
|
27890
27989
|
*
|
|
27990
|
+
* @chrome-enum "normal" Specifies the window as a standard window.
|
|
27991
|
+
* @chrome-enum "popup" Specifies the window as a popup window.
|
|
27992
|
+
* @chrome-enum "panel" Specifies the window as a panel.
|
|
27891
27993
|
* @since Chrome 44
|
|
27892
27994
|
*/
|
|
27893
27995
|
export type CreateType = "normal" | "popup" | "panel";
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"type": "module",
|
|
6
6
|
"name": "chrome-types",
|
|
7
7
|
"config": {
|
|
8
|
-
"build-hash": "
|
|
8
|
+
"build-hash": "8cf834ad0c5e1d04"
|
|
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.
|
|
19
|
+
"version": "0.1.212"
|
|
20
20
|
}
|