chrome-types 0.1.295 → 0.1.297
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 +23 -40
- package/index.d.ts +23 -40
- 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 Tue Jul 30 2024 22:29:32 GMT+0000 (Coordinated Universal Time)
|
|
18
|
+
// Built at 37f74a52a4cf66063abad06fe9af586df5b748ff
|
|
19
19
|
|
|
20
20
|
// Includes all types, including MV2 + Platform Apps APIs.
|
|
21
21
|
|
|
@@ -10158,6 +10158,24 @@ declare namespace chrome {
|
|
|
10158
10158
|
): void;
|
|
10159
10159
|
}
|
|
10160
10160
|
|
|
10161
|
+
/**
|
|
10162
|
+
* Use the `chrome.devtools.performance` API to listen to recording status updates in the Performance panel in DevTools.
|
|
10163
|
+
*
|
|
10164
|
+
* @since Pending
|
|
10165
|
+
*/
|
|
10166
|
+
export namespace devtools.performance {
|
|
10167
|
+
|
|
10168
|
+
/**
|
|
10169
|
+
* Fired when the Performance panel starts recording.
|
|
10170
|
+
*/
|
|
10171
|
+
export const onProfilingStarted: events.Event<() => void>;
|
|
10172
|
+
|
|
10173
|
+
/**
|
|
10174
|
+
* Fired when the Performance panel stops recording.
|
|
10175
|
+
*/
|
|
10176
|
+
export const onProfilingStopped: events.Event<() => void>;
|
|
10177
|
+
}
|
|
10178
|
+
|
|
10161
10179
|
/**
|
|
10162
10180
|
* Use the `chrome.devtools.recorder` API to customize the Recorder panel in DevTools.
|
|
10163
10181
|
*
|
|
@@ -11655,7 +11673,7 @@ declare namespace chrome {
|
|
|
11655
11673
|
/**
|
|
11656
11674
|
* The size of the returned icon. The icon will be square with dimensions size \* size pixels. The default and largest size for the icon is 32x32 pixels. The only supported sizes are 16 and 32. It is an error to specify any other size.
|
|
11657
11675
|
*/
|
|
11658
|
-
size?:
|
|
11676
|
+
size?: number;
|
|
11659
11677
|
}
|
|
11660
11678
|
|
|
11661
11679
|
/**
|
|
@@ -18362,13 +18380,13 @@ declare namespace chrome {
|
|
|
18362
18380
|
|
|
18363
18381
|
/**
|
|
18364
18382
|
* The `chrome.management` API provides ways to manage the list of extensions/apps that are installed and running. It is particularly useful for extensions that [override](https://developer.chrome.com/extensions/develop/ui/override-chrome-pages) the built-in New Tab page.
|
|
18383
|
+
*
|
|
18384
|
+
* @chrome-permission management
|
|
18365
18385
|
*/
|
|
18366
18386
|
export namespace management {
|
|
18367
18387
|
|
|
18368
18388
|
/**
|
|
18369
18389
|
* Information about an icon belonging to an extension, app, or theme.
|
|
18370
|
-
*
|
|
18371
|
-
* @chrome-permission management
|
|
18372
18390
|
*/
|
|
18373
18391
|
export interface IconInfo {
|
|
18374
18392
|
|
|
@@ -18385,8 +18403,6 @@ declare namespace chrome {
|
|
|
18385
18403
|
|
|
18386
18404
|
/**
|
|
18387
18405
|
* These are all possible app launch types.
|
|
18388
|
-
*
|
|
18389
|
-
* @chrome-permission management
|
|
18390
18406
|
*/
|
|
18391
18407
|
export type LaunchType = "OPEN_AS_REGULAR_TAB" | "OPEN_AS_PINNED_TAB" | "OPEN_AS_WINDOW" | "OPEN_FULL_SCREEN";
|
|
18392
18408
|
|
|
@@ -18394,7 +18410,6 @@ declare namespace chrome {
|
|
|
18394
18410
|
* A reason the item is disabled.
|
|
18395
18411
|
*
|
|
18396
18412
|
* @since Chrome 44
|
|
18397
|
-
* @chrome-permission management
|
|
18398
18413
|
*/
|
|
18399
18414
|
export type ExtensionDisabledReason = "unknown" | "permissions_increase";
|
|
18400
18415
|
|
|
@@ -18402,7 +18417,6 @@ declare namespace chrome {
|
|
|
18402
18417
|
* The type of this extension, app, or theme.
|
|
18403
18418
|
*
|
|
18404
18419
|
* @since Chrome 44
|
|
18405
|
-
* @chrome-permission management
|
|
18406
18420
|
*/
|
|
18407
18421
|
export type ExtensionType = "extension" | "hosted_app" | "packaged_app" | "legacy_packaged_app" | "theme" | "login_screen_extension";
|
|
18408
18422
|
|
|
@@ -18415,14 +18429,11 @@ declare namespace chrome {
|
|
|
18415
18429
|
* `other`: The extension was installed by other means.
|
|
18416
18430
|
*
|
|
18417
18431
|
* @since Chrome 44
|
|
18418
|
-
* @chrome-permission management
|
|
18419
18432
|
*/
|
|
18420
18433
|
export type ExtensionInstallType = "admin" | "development" | "normal" | "sideload" | "other";
|
|
18421
18434
|
|
|
18422
18435
|
/**
|
|
18423
18436
|
* Information about an installed extension, app, or theme.
|
|
18424
|
-
*
|
|
18425
|
-
* @chrome-permission management
|
|
18426
18437
|
*/
|
|
18427
18438
|
export interface ExtensionInfo {
|
|
18428
18439
|
|
|
@@ -18552,7 +18563,6 @@ declare namespace chrome {
|
|
|
18552
18563
|
* Options for how to handle the extension's uninstallation.
|
|
18553
18564
|
*
|
|
18554
18565
|
* @since Chrome 88
|
|
18555
|
-
* @chrome-permission management
|
|
18556
18566
|
*/
|
|
18557
18567
|
export interface UninstallOptions {
|
|
18558
18568
|
|
|
@@ -18564,8 +18574,6 @@ declare namespace chrome {
|
|
|
18564
18574
|
|
|
18565
18575
|
/**
|
|
18566
18576
|
* Fired when an app or extension has been installed.
|
|
18567
|
-
*
|
|
18568
|
-
* @chrome-permission management
|
|
18569
18577
|
*/
|
|
18570
18578
|
export const onInstalled: events.Event<(
|
|
18571
18579
|
info: ExtensionInfo,
|
|
@@ -18573,8 +18581,6 @@ declare namespace chrome {
|
|
|
18573
18581
|
|
|
18574
18582
|
/**
|
|
18575
18583
|
* Fired when an app or extension has been uninstalled.
|
|
18576
|
-
*
|
|
18577
|
-
* @chrome-permission management
|
|
18578
18584
|
*/
|
|
18579
18585
|
export const onUninstalled: events.Event<(
|
|
18580
18586
|
id: string,
|
|
@@ -18582,8 +18588,6 @@ declare namespace chrome {
|
|
|
18582
18588
|
|
|
18583
18589
|
/**
|
|
18584
18590
|
* Fired when an app or extension has been enabled.
|
|
18585
|
-
*
|
|
18586
|
-
* @chrome-permission management
|
|
18587
18591
|
*/
|
|
18588
18592
|
export const onEnabled: events.Event<(
|
|
18589
18593
|
info: ExtensionInfo,
|
|
@@ -18591,8 +18595,6 @@ declare namespace chrome {
|
|
|
18591
18595
|
|
|
18592
18596
|
/**
|
|
18593
18597
|
* Fired when an app or extension has been disabled.
|
|
18594
|
-
*
|
|
18595
|
-
* @chrome-permission management
|
|
18596
18598
|
*/
|
|
18597
18599
|
export const onDisabled: events.Event<(
|
|
18598
18600
|
info: ExtensionInfo,
|
|
@@ -18602,14 +18604,11 @@ declare namespace chrome {
|
|
|
18602
18604
|
* Returns a list of information about installed extensions and apps.
|
|
18603
18605
|
*
|
|
18604
18606
|
* @chrome-returns-extra since Chrome 88
|
|
18605
|
-
* @chrome-permission management
|
|
18606
18607
|
*/
|
|
18607
18608
|
export function getAll(): Promise<ExtensionInfo[]>;
|
|
18608
18609
|
|
|
18609
18610
|
/**
|
|
18610
18611
|
* Returns a list of information about installed extensions and apps.
|
|
18611
|
-
*
|
|
18612
|
-
* @chrome-permission management
|
|
18613
18612
|
*/
|
|
18614
18613
|
export function getAll(
|
|
18615
18614
|
|
|
@@ -18623,7 +18622,6 @@ declare namespace chrome {
|
|
|
18623
18622
|
*
|
|
18624
18623
|
* @chrome-returns-extra since Chrome 88
|
|
18625
18624
|
* @param id The ID from an item of {@link management.ExtensionInfo}.
|
|
18626
|
-
* @chrome-permission management
|
|
18627
18625
|
*/
|
|
18628
18626
|
export function get(
|
|
18629
18627
|
|
|
@@ -18634,7 +18632,6 @@ declare namespace chrome {
|
|
|
18634
18632
|
* Returns information about the installed extension, app, or theme that has the given ID.
|
|
18635
18633
|
*
|
|
18636
18634
|
* @param id The ID from an item of {@link management.ExtensionInfo}.
|
|
18637
|
-
* @chrome-permission management
|
|
18638
18635
|
*/
|
|
18639
18636
|
export function get(
|
|
18640
18637
|
|
|
@@ -18667,7 +18664,6 @@ declare namespace chrome {
|
|
|
18667
18664
|
*
|
|
18668
18665
|
* @chrome-returns-extra since Chrome 88
|
|
18669
18666
|
* @param id The ID of an already installed extension.
|
|
18670
|
-
* @chrome-permission management
|
|
18671
18667
|
*/
|
|
18672
18668
|
export function getPermissionWarningsById(
|
|
18673
18669
|
|
|
@@ -18678,7 +18674,6 @@ declare namespace chrome {
|
|
|
18678
18674
|
* Returns a list of [permission warnings](https://developer.chrome.com/extensions/develop/concepts/permission-warnings) for the given extension id.
|
|
18679
18675
|
*
|
|
18680
18676
|
* @param id The ID of an already installed extension.
|
|
18681
|
-
* @chrome-permission management
|
|
18682
18677
|
*/
|
|
18683
18678
|
export function getPermissionWarningsById(
|
|
18684
18679
|
|
|
@@ -18720,7 +18715,6 @@ declare namespace chrome {
|
|
|
18720
18715
|
* @chrome-returns-extra since Chrome 88
|
|
18721
18716
|
* @param id This should be the id from an item of {@link management.ExtensionInfo}.
|
|
18722
18717
|
* @param enabled Whether this item should be enabled or disabled.
|
|
18723
|
-
* @chrome-permission management
|
|
18724
18718
|
*/
|
|
18725
18719
|
export function setEnabled(
|
|
18726
18720
|
|
|
@@ -18734,7 +18728,6 @@ declare namespace chrome {
|
|
|
18734
18728
|
*
|
|
18735
18729
|
* @param id This should be the id from an item of {@link management.ExtensionInfo}.
|
|
18736
18730
|
* @param enabled Whether this item should be enabled or disabled.
|
|
18737
|
-
* @chrome-permission management
|
|
18738
18731
|
*/
|
|
18739
18732
|
export function setEnabled(
|
|
18740
18733
|
|
|
@@ -18750,7 +18743,6 @@ declare namespace chrome {
|
|
|
18750
18743
|
*
|
|
18751
18744
|
* @chrome-returns-extra since Chrome 88
|
|
18752
18745
|
* @param id This should be the id from an item of {@link management.ExtensionInfo}.
|
|
18753
|
-
* @chrome-permission management
|
|
18754
18746
|
*/
|
|
18755
18747
|
export function uninstall(
|
|
18756
18748
|
|
|
@@ -18763,7 +18755,6 @@ declare namespace chrome {
|
|
|
18763
18755
|
* Uninstalls a currently installed app or extension. Note: This function does not work in managed environments when the user is not allowed to uninstall the specified extension/app. If the uninstall fails (e.g. the user cancels the dialog) the promise will be rejected or the callback will be called with {@link runtime.lastError} set.
|
|
18764
18756
|
*
|
|
18765
18757
|
* @param id This should be the id from an item of {@link management.ExtensionInfo}.
|
|
18766
|
-
* @chrome-permission management
|
|
18767
18758
|
*/
|
|
18768
18759
|
export function uninstall(
|
|
18769
18760
|
|
|
@@ -18799,7 +18790,6 @@ declare namespace chrome {
|
|
|
18799
18790
|
*
|
|
18800
18791
|
* @chrome-returns-extra since Chrome 88
|
|
18801
18792
|
* @param id The extension id of the application.
|
|
18802
|
-
* @chrome-permission management
|
|
18803
18793
|
*/
|
|
18804
18794
|
export function launchApp(
|
|
18805
18795
|
|
|
@@ -18810,7 +18800,6 @@ declare namespace chrome {
|
|
|
18810
18800
|
* Launches an application.
|
|
18811
18801
|
*
|
|
18812
18802
|
* @param id The extension id of the application.
|
|
18813
|
-
* @chrome-permission management
|
|
18814
18803
|
*/
|
|
18815
18804
|
export function launchApp(
|
|
18816
18805
|
|
|
@@ -18824,7 +18813,6 @@ declare namespace chrome {
|
|
|
18824
18813
|
*
|
|
18825
18814
|
* @chrome-returns-extra since Chrome 88
|
|
18826
18815
|
* @param id This should be the id from an app item of {@link management.ExtensionInfo}.
|
|
18827
|
-
* @chrome-permission management
|
|
18828
18816
|
*/
|
|
18829
18817
|
export function createAppShortcut(
|
|
18830
18818
|
|
|
@@ -18835,7 +18823,6 @@ declare namespace chrome {
|
|
|
18835
18823
|
* Display options to create shortcuts for an app. On Mac, only packaged app shortcuts can be created.
|
|
18836
18824
|
*
|
|
18837
18825
|
* @param id This should be the id from an app item of {@link management.ExtensionInfo}.
|
|
18838
|
-
* @chrome-permission management
|
|
18839
18826
|
*/
|
|
18840
18827
|
export function createAppShortcut(
|
|
18841
18828
|
|
|
@@ -18850,7 +18837,6 @@ declare namespace chrome {
|
|
|
18850
18837
|
* @chrome-returns-extra since Chrome 88
|
|
18851
18838
|
* @param id This should be the id from an app item of {@link management.ExtensionInfo}.
|
|
18852
18839
|
* @param launchType The target launch type. Always check and make sure this launch type is in {@link ExtensionInfo.availableLaunchTypes}, because the available launch types vary on different platforms and configurations.
|
|
18853
|
-
* @chrome-permission management
|
|
18854
18840
|
*/
|
|
18855
18841
|
export function setLaunchType(
|
|
18856
18842
|
|
|
@@ -18864,7 +18850,6 @@ declare namespace chrome {
|
|
|
18864
18850
|
*
|
|
18865
18851
|
* @param id This should be the id from an app item of {@link management.ExtensionInfo}.
|
|
18866
18852
|
* @param launchType The target launch type. Always check and make sure this launch type is in {@link ExtensionInfo.availableLaunchTypes}, because the available launch types vary on different platforms and configurations.
|
|
18867
|
-
* @chrome-permission management
|
|
18868
18853
|
*/
|
|
18869
18854
|
export function setLaunchType(
|
|
18870
18855
|
|
|
@@ -18881,7 +18866,6 @@ declare namespace chrome {
|
|
|
18881
18866
|
* @chrome-returns-extra since Chrome 88
|
|
18882
18867
|
* @param url The URL of a web page. The scheme of the URL can only be "http" or "https".
|
|
18883
18868
|
* @param title The title of the generated app.
|
|
18884
|
-
* @chrome-permission management
|
|
18885
18869
|
*/
|
|
18886
18870
|
export function generateAppForLink(
|
|
18887
18871
|
|
|
@@ -18895,7 +18879,6 @@ declare namespace chrome {
|
|
|
18895
18879
|
*
|
|
18896
18880
|
* @param url The URL of a web page. The scheme of the URL can only be "http" or "https".
|
|
18897
18881
|
* @param title The title of the generated app.
|
|
18898
|
-
* @chrome-permission management
|
|
18899
18882
|
*/
|
|
18900
18883
|
export function generateAppForLink(
|
|
18901
18884
|
|
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 Tue Jul 30 2024 22:29:27 GMT+0000 (Coordinated Universal Time)
|
|
18
|
+
// Built at 37f74a52a4cf66063abad06fe9af586df5b748ff
|
|
19
19
|
|
|
20
20
|
// Includes MV3+ APIs only.
|
|
21
21
|
|
|
@@ -6355,6 +6355,24 @@ declare namespace chrome {
|
|
|
6355
6355
|
): void;
|
|
6356
6356
|
}
|
|
6357
6357
|
|
|
6358
|
+
/**
|
|
6359
|
+
* Use the `chrome.devtools.performance` API to listen to recording status updates in the Performance panel in DevTools.
|
|
6360
|
+
*
|
|
6361
|
+
* @since Pending
|
|
6362
|
+
*/
|
|
6363
|
+
export namespace devtools.performance {
|
|
6364
|
+
|
|
6365
|
+
/**
|
|
6366
|
+
* Fired when the Performance panel starts recording.
|
|
6367
|
+
*/
|
|
6368
|
+
export const onProfilingStarted: events.Event<() => void>;
|
|
6369
|
+
|
|
6370
|
+
/**
|
|
6371
|
+
* Fired when the Performance panel stops recording.
|
|
6372
|
+
*/
|
|
6373
|
+
export const onProfilingStopped: events.Event<() => void>;
|
|
6374
|
+
}
|
|
6375
|
+
|
|
6358
6376
|
/**
|
|
6359
6377
|
* Use the `chrome.devtools.recorder` API to customize the Recorder panel in DevTools.
|
|
6360
6378
|
*
|
|
@@ -7785,7 +7803,7 @@ declare namespace chrome {
|
|
|
7785
7803
|
/**
|
|
7786
7804
|
* The size of the returned icon. The icon will be square with dimensions size \* size pixels. The default and largest size for the icon is 32x32 pixels. The only supported sizes are 16 and 32. It is an error to specify any other size.
|
|
7787
7805
|
*/
|
|
7788
|
-
size?:
|
|
7806
|
+
size?: number;
|
|
7789
7807
|
}
|
|
7790
7808
|
|
|
7791
7809
|
/**
|
|
@@ -13733,13 +13751,13 @@ declare namespace chrome {
|
|
|
13733
13751
|
|
|
13734
13752
|
/**
|
|
13735
13753
|
* The `chrome.management` API provides ways to manage the list of extensions/apps that are installed and running. It is particularly useful for extensions that [override](https://developer.chrome.com/extensions/develop/ui/override-chrome-pages) the built-in New Tab page.
|
|
13754
|
+
*
|
|
13755
|
+
* @chrome-permission management
|
|
13736
13756
|
*/
|
|
13737
13757
|
export namespace management {
|
|
13738
13758
|
|
|
13739
13759
|
/**
|
|
13740
13760
|
* Information about an icon belonging to an extension, app, or theme.
|
|
13741
|
-
*
|
|
13742
|
-
* @chrome-permission management
|
|
13743
13761
|
*/
|
|
13744
13762
|
export interface IconInfo {
|
|
13745
13763
|
|
|
@@ -13756,8 +13774,6 @@ declare namespace chrome {
|
|
|
13756
13774
|
|
|
13757
13775
|
/**
|
|
13758
13776
|
* These are all possible app launch types.
|
|
13759
|
-
*
|
|
13760
|
-
* @chrome-permission management
|
|
13761
13777
|
*/
|
|
13762
13778
|
export type LaunchType = "OPEN_AS_REGULAR_TAB" | "OPEN_AS_PINNED_TAB" | "OPEN_AS_WINDOW" | "OPEN_FULL_SCREEN";
|
|
13763
13779
|
|
|
@@ -13765,7 +13781,6 @@ declare namespace chrome {
|
|
|
13765
13781
|
* A reason the item is disabled.
|
|
13766
13782
|
*
|
|
13767
13783
|
* @since Chrome 44
|
|
13768
|
-
* @chrome-permission management
|
|
13769
13784
|
*/
|
|
13770
13785
|
export type ExtensionDisabledReason = "unknown" | "permissions_increase";
|
|
13771
13786
|
|
|
@@ -13773,7 +13788,6 @@ declare namespace chrome {
|
|
|
13773
13788
|
* The type of this extension, app, or theme.
|
|
13774
13789
|
*
|
|
13775
13790
|
* @since Chrome 44
|
|
13776
|
-
* @chrome-permission management
|
|
13777
13791
|
*/
|
|
13778
13792
|
export type ExtensionType = "extension" | "hosted_app" | "packaged_app" | "legacy_packaged_app" | "theme" | "login_screen_extension";
|
|
13779
13793
|
|
|
@@ -13786,14 +13800,11 @@ declare namespace chrome {
|
|
|
13786
13800
|
* `other`: The extension was installed by other means.
|
|
13787
13801
|
*
|
|
13788
13802
|
* @since Chrome 44
|
|
13789
|
-
* @chrome-permission management
|
|
13790
13803
|
*/
|
|
13791
13804
|
export type ExtensionInstallType = "admin" | "development" | "normal" | "sideload" | "other";
|
|
13792
13805
|
|
|
13793
13806
|
/**
|
|
13794
13807
|
* Information about an installed extension, app, or theme.
|
|
13795
|
-
*
|
|
13796
|
-
* @chrome-permission management
|
|
13797
13808
|
*/
|
|
13798
13809
|
export interface ExtensionInfo {
|
|
13799
13810
|
|
|
@@ -13923,7 +13934,6 @@ declare namespace chrome {
|
|
|
13923
13934
|
* Options for how to handle the extension's uninstallation.
|
|
13924
13935
|
*
|
|
13925
13936
|
* @since Chrome 88
|
|
13926
|
-
* @chrome-permission management
|
|
13927
13937
|
*/
|
|
13928
13938
|
export interface UninstallOptions {
|
|
13929
13939
|
|
|
@@ -13935,8 +13945,6 @@ declare namespace chrome {
|
|
|
13935
13945
|
|
|
13936
13946
|
/**
|
|
13937
13947
|
* Fired when an app or extension has been installed.
|
|
13938
|
-
*
|
|
13939
|
-
* @chrome-permission management
|
|
13940
13948
|
*/
|
|
13941
13949
|
export const onInstalled: events.Event<(
|
|
13942
13950
|
info: ExtensionInfo,
|
|
@@ -13944,8 +13952,6 @@ declare namespace chrome {
|
|
|
13944
13952
|
|
|
13945
13953
|
/**
|
|
13946
13954
|
* Fired when an app or extension has been uninstalled.
|
|
13947
|
-
*
|
|
13948
|
-
* @chrome-permission management
|
|
13949
13955
|
*/
|
|
13950
13956
|
export const onUninstalled: events.Event<(
|
|
13951
13957
|
id: string,
|
|
@@ -13953,8 +13959,6 @@ declare namespace chrome {
|
|
|
13953
13959
|
|
|
13954
13960
|
/**
|
|
13955
13961
|
* Fired when an app or extension has been enabled.
|
|
13956
|
-
*
|
|
13957
|
-
* @chrome-permission management
|
|
13958
13962
|
*/
|
|
13959
13963
|
export const onEnabled: events.Event<(
|
|
13960
13964
|
info: ExtensionInfo,
|
|
@@ -13962,8 +13966,6 @@ declare namespace chrome {
|
|
|
13962
13966
|
|
|
13963
13967
|
/**
|
|
13964
13968
|
* Fired when an app or extension has been disabled.
|
|
13965
|
-
*
|
|
13966
|
-
* @chrome-permission management
|
|
13967
13969
|
*/
|
|
13968
13970
|
export const onDisabled: events.Event<(
|
|
13969
13971
|
info: ExtensionInfo,
|
|
@@ -13973,14 +13975,11 @@ declare namespace chrome {
|
|
|
13973
13975
|
* Returns a list of information about installed extensions and apps.
|
|
13974
13976
|
*
|
|
13975
13977
|
* @chrome-returns-extra since Chrome 88
|
|
13976
|
-
* @chrome-permission management
|
|
13977
13978
|
*/
|
|
13978
13979
|
export function getAll(): Promise<ExtensionInfo[]>;
|
|
13979
13980
|
|
|
13980
13981
|
/**
|
|
13981
13982
|
* Returns a list of information about installed extensions and apps.
|
|
13982
|
-
*
|
|
13983
|
-
* @chrome-permission management
|
|
13984
13983
|
*/
|
|
13985
13984
|
export function getAll(
|
|
13986
13985
|
|
|
@@ -13994,7 +13993,6 @@ declare namespace chrome {
|
|
|
13994
13993
|
*
|
|
13995
13994
|
* @chrome-returns-extra since Chrome 88
|
|
13996
13995
|
* @param id The ID from an item of {@link management.ExtensionInfo}.
|
|
13997
|
-
* @chrome-permission management
|
|
13998
13996
|
*/
|
|
13999
13997
|
export function get(
|
|
14000
13998
|
|
|
@@ -14005,7 +14003,6 @@ declare namespace chrome {
|
|
|
14005
14003
|
* Returns information about the installed extension, app, or theme that has the given ID.
|
|
14006
14004
|
*
|
|
14007
14005
|
* @param id The ID from an item of {@link management.ExtensionInfo}.
|
|
14008
|
-
* @chrome-permission management
|
|
14009
14006
|
*/
|
|
14010
14007
|
export function get(
|
|
14011
14008
|
|
|
@@ -14038,7 +14035,6 @@ declare namespace chrome {
|
|
|
14038
14035
|
*
|
|
14039
14036
|
* @chrome-returns-extra since Chrome 88
|
|
14040
14037
|
* @param id The ID of an already installed extension.
|
|
14041
|
-
* @chrome-permission management
|
|
14042
14038
|
*/
|
|
14043
14039
|
export function getPermissionWarningsById(
|
|
14044
14040
|
|
|
@@ -14049,7 +14045,6 @@ declare namespace chrome {
|
|
|
14049
14045
|
* Returns a list of [permission warnings](https://developer.chrome.com/extensions/develop/concepts/permission-warnings) for the given extension id.
|
|
14050
14046
|
*
|
|
14051
14047
|
* @param id The ID of an already installed extension.
|
|
14052
|
-
* @chrome-permission management
|
|
14053
14048
|
*/
|
|
14054
14049
|
export function getPermissionWarningsById(
|
|
14055
14050
|
|
|
@@ -14091,7 +14086,6 @@ declare namespace chrome {
|
|
|
14091
14086
|
* @chrome-returns-extra since Chrome 88
|
|
14092
14087
|
* @param id This should be the id from an item of {@link management.ExtensionInfo}.
|
|
14093
14088
|
* @param enabled Whether this item should be enabled or disabled.
|
|
14094
|
-
* @chrome-permission management
|
|
14095
14089
|
*/
|
|
14096
14090
|
export function setEnabled(
|
|
14097
14091
|
|
|
@@ -14105,7 +14099,6 @@ declare namespace chrome {
|
|
|
14105
14099
|
*
|
|
14106
14100
|
* @param id This should be the id from an item of {@link management.ExtensionInfo}.
|
|
14107
14101
|
* @param enabled Whether this item should be enabled or disabled.
|
|
14108
|
-
* @chrome-permission management
|
|
14109
14102
|
*/
|
|
14110
14103
|
export function setEnabled(
|
|
14111
14104
|
|
|
@@ -14121,7 +14114,6 @@ declare namespace chrome {
|
|
|
14121
14114
|
*
|
|
14122
14115
|
* @chrome-returns-extra since Chrome 88
|
|
14123
14116
|
* @param id This should be the id from an item of {@link management.ExtensionInfo}.
|
|
14124
|
-
* @chrome-permission management
|
|
14125
14117
|
*/
|
|
14126
14118
|
export function uninstall(
|
|
14127
14119
|
|
|
@@ -14134,7 +14126,6 @@ declare namespace chrome {
|
|
|
14134
14126
|
* Uninstalls a currently installed app or extension. Note: This function does not work in managed environments when the user is not allowed to uninstall the specified extension/app. If the uninstall fails (e.g. the user cancels the dialog) the promise will be rejected or the callback will be called with {@link runtime.lastError} set.
|
|
14135
14127
|
*
|
|
14136
14128
|
* @param id This should be the id from an item of {@link management.ExtensionInfo}.
|
|
14137
|
-
* @chrome-permission management
|
|
14138
14129
|
*/
|
|
14139
14130
|
export function uninstall(
|
|
14140
14131
|
|
|
@@ -14170,7 +14161,6 @@ declare namespace chrome {
|
|
|
14170
14161
|
*
|
|
14171
14162
|
* @chrome-returns-extra since Chrome 88
|
|
14172
14163
|
* @param id The extension id of the application.
|
|
14173
|
-
* @chrome-permission management
|
|
14174
14164
|
*/
|
|
14175
14165
|
export function launchApp(
|
|
14176
14166
|
|
|
@@ -14181,7 +14171,6 @@ declare namespace chrome {
|
|
|
14181
14171
|
* Launches an application.
|
|
14182
14172
|
*
|
|
14183
14173
|
* @param id The extension id of the application.
|
|
14184
|
-
* @chrome-permission management
|
|
14185
14174
|
*/
|
|
14186
14175
|
export function launchApp(
|
|
14187
14176
|
|
|
@@ -14195,7 +14184,6 @@ declare namespace chrome {
|
|
|
14195
14184
|
*
|
|
14196
14185
|
* @chrome-returns-extra since Chrome 88
|
|
14197
14186
|
* @param id This should be the id from an app item of {@link management.ExtensionInfo}.
|
|
14198
|
-
* @chrome-permission management
|
|
14199
14187
|
*/
|
|
14200
14188
|
export function createAppShortcut(
|
|
14201
14189
|
|
|
@@ -14206,7 +14194,6 @@ declare namespace chrome {
|
|
|
14206
14194
|
* Display options to create shortcuts for an app. On Mac, only packaged app shortcuts can be created.
|
|
14207
14195
|
*
|
|
14208
14196
|
* @param id This should be the id from an app item of {@link management.ExtensionInfo}.
|
|
14209
|
-
* @chrome-permission management
|
|
14210
14197
|
*/
|
|
14211
14198
|
export function createAppShortcut(
|
|
14212
14199
|
|
|
@@ -14221,7 +14208,6 @@ declare namespace chrome {
|
|
|
14221
14208
|
* @chrome-returns-extra since Chrome 88
|
|
14222
14209
|
* @param id This should be the id from an app item of {@link management.ExtensionInfo}.
|
|
14223
14210
|
* @param launchType The target launch type. Always check and make sure this launch type is in {@link ExtensionInfo.availableLaunchTypes}, because the available launch types vary on different platforms and configurations.
|
|
14224
|
-
* @chrome-permission management
|
|
14225
14211
|
*/
|
|
14226
14212
|
export function setLaunchType(
|
|
14227
14213
|
|
|
@@ -14235,7 +14221,6 @@ declare namespace chrome {
|
|
|
14235
14221
|
*
|
|
14236
14222
|
* @param id This should be the id from an app item of {@link management.ExtensionInfo}.
|
|
14237
14223
|
* @param launchType The target launch type. Always check and make sure this launch type is in {@link ExtensionInfo.availableLaunchTypes}, because the available launch types vary on different platforms and configurations.
|
|
14238
|
-
* @chrome-permission management
|
|
14239
14224
|
*/
|
|
14240
14225
|
export function setLaunchType(
|
|
14241
14226
|
|
|
@@ -14252,7 +14237,6 @@ declare namespace chrome {
|
|
|
14252
14237
|
* @chrome-returns-extra since Chrome 88
|
|
14253
14238
|
* @param url The URL of a web page. The scheme of the URL can only be "http" or "https".
|
|
14254
14239
|
* @param title The title of the generated app.
|
|
14255
|
-
* @chrome-permission management
|
|
14256
14240
|
*/
|
|
14257
14241
|
export function generateAppForLink(
|
|
14258
14242
|
|
|
@@ -14266,7 +14250,6 @@ declare namespace chrome {
|
|
|
14266
14250
|
*
|
|
14267
14251
|
* @param url The URL of a web page. The scheme of the URL can only be "http" or "https".
|
|
14268
14252
|
* @param title The title of the generated app.
|
|
14269
|
-
* @chrome-permission management
|
|
14270
14253
|
*/
|
|
14271
14254
|
export function generateAppForLink(
|
|
14272
14255
|
|
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": "6fbcb342813c4096"
|
|
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.297"
|
|
20
20
|
}
|