chrome-types 0.1.450 → 0.1.451
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 +55 -15
- package/index.d.ts +55 -15
- 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 Fri Oct 02 2026 22:27:32 GMT+0000 (Coordinated Universal Time)
|
|
18
|
+
// Built at e9a89ce4f8747ea33b59ef598897cc8ded3ee74b
|
|
19
19
|
|
|
20
20
|
// Includes all types, including MV2 + Platform Apps APIs.
|
|
21
21
|
|
|
@@ -945,7 +945,7 @@ declare namespace chrome {
|
|
|
945
945
|
*
|
|
946
946
|
* @chrome-returns-extra since Chrome 91
|
|
947
947
|
*/
|
|
948
|
-
export function clearAll(): Promise<boolean>;
|
|
948
|
+
export function clearAll(): Promise<boolean | undefined>;
|
|
949
949
|
|
|
950
950
|
/**
|
|
951
951
|
* Clears all alarms.
|
|
@@ -953,7 +953,7 @@ declare namespace chrome {
|
|
|
953
953
|
export function clearAll(
|
|
954
954
|
|
|
955
955
|
callback?: (
|
|
956
|
-
wasCleared
|
|
956
|
+
wasCleared?: boolean,
|
|
957
957
|
) => void,
|
|
958
958
|
): void;
|
|
959
959
|
}
|
|
@@ -12084,7 +12084,7 @@ declare namespace chrome {
|
|
|
12084
12084
|
export interface GetFileIconOptions {
|
|
12085
12085
|
|
|
12086
12086
|
/**
|
|
12087
|
-
* The size of the returned icon
|
|
12087
|
+
* The size of the returned icon in density-independent pixels (DIPs). Must be either 16 or 32 (defaults to 32). On high-DPI displays, the returned image scales with the device scale factor (e.g., 64x64 px for size 32 on a 2x display). Calls from background service workers default to 1x scale.
|
|
12088
12088
|
*/
|
|
12089
12089
|
size?: number;
|
|
12090
12090
|
}
|
|
@@ -12252,7 +12252,7 @@ declare namespace chrome {
|
|
|
12252
12252
|
): void;
|
|
12253
12253
|
|
|
12254
12254
|
/**
|
|
12255
|
-
* Retrieve an icon for the specified download. For new downloads, file icons are available after the {@link
|
|
12255
|
+
* Retrieve an icon for the specified download. For new downloads, file icons are available after the download's target filename has been determined (for example, when {@link onChanged} fires with a `filename` change). Attempting to retrieve the icon before the filename is determined will result in an error through {@link runtime.lastError}. The image returned by this function while a download is in progress may be different from the image returned after the download is complete. Icon retrieval is done by querying the underlying operating system or toolkit depending on the platform. The icon that is returned will therefore depend on a number of factors including state of the download, platform, registered file types and visual theme. If a file icon cannot be determined, {@link runtime.lastError} will contain an error message.
|
|
12256
12256
|
*
|
|
12257
12257
|
* @chrome-returns-extra since Chrome 96
|
|
12258
12258
|
* @param downloadId The identifier for the download.
|
|
@@ -12266,7 +12266,7 @@ declare namespace chrome {
|
|
|
12266
12266
|
): Promise<string | undefined>;
|
|
12267
12267
|
|
|
12268
12268
|
/**
|
|
12269
|
-
* Retrieve an icon for the specified download. For new downloads, file icons are available after the {@link
|
|
12269
|
+
* Retrieve an icon for the specified download. For new downloads, file icons are available after the download's target filename has been determined (for example, when {@link onChanged} fires with a `filename` change). Attempting to retrieve the icon before the filename is determined will result in an error through {@link runtime.lastError}. The image returned by this function while a download is in progress may be different from the image returned after the download is complete. Icon retrieval is done by querying the underlying operating system or toolkit depending on the platform. The icon that is returned will therefore depend on a number of factors including state of the download, platform, registered file types and visual theme. If a file icon cannot be determined, {@link runtime.lastError} will contain an error message.
|
|
12270
12270
|
*
|
|
12271
12271
|
* @param downloadId The identifier for the download.
|
|
12272
12272
|
*/
|
|
@@ -24748,6 +24748,37 @@ declare namespace chrome {
|
|
|
24748
24748
|
*/
|
|
24749
24749
|
export type OnInstalledReason = "install" | "update" | "chrome_update" | "shared_module_update";
|
|
24750
24750
|
|
|
24751
|
+
/**
|
|
24752
|
+
* The reason that this event is being dispatched.
|
|
24753
|
+
*
|
|
24754
|
+
* @chrome-enum "install" The extension was newly installed.
|
|
24755
|
+
* @chrome-enum "update" The extension was reloaded after an update.
|
|
24756
|
+
* @chrome-enum "browser\_update" The browser was updated to a new version.
|
|
24757
|
+
* @chrome-enum "enable" The extension was re-enabled from a disabled state.
|
|
24758
|
+
* @chrome-enum "startup" The extension is being loaded during browser startup.
|
|
24759
|
+
* @chrome-enum "reload" The extension was reloaded (e.g. via chrome.runtime.reload() or the user manually reloaded the extension).
|
|
24760
|
+
* @since Pending
|
|
24761
|
+
*/
|
|
24762
|
+
export type OnLoadedReason = "install" | "update" | "browser_update" | "enable" | "startup" | "reload";
|
|
24763
|
+
|
|
24764
|
+
/**
|
|
24765
|
+
* Details about the extension load event.
|
|
24766
|
+
*
|
|
24767
|
+
* @since Pending
|
|
24768
|
+
*/
|
|
24769
|
+
export interface ExtensionLoadDetails {
|
|
24770
|
+
|
|
24771
|
+
/**
|
|
24772
|
+
* The reason that this event is being dispatched.
|
|
24773
|
+
*/
|
|
24774
|
+
reason: OnLoadedReason;
|
|
24775
|
+
|
|
24776
|
+
/**
|
|
24777
|
+
* Indicates the previous version of the extension, which has just been updated. This is present only if 'reason' is 'update'.
|
|
24778
|
+
*/
|
|
24779
|
+
previousVersion?: string;
|
|
24780
|
+
}
|
|
24781
|
+
|
|
24751
24782
|
/**
|
|
24752
24783
|
* 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.
|
|
24753
24784
|
*
|
|
@@ -24899,6 +24930,15 @@ declare namespace chrome {
|
|
|
24899
24930
|
*/
|
|
24900
24931
|
export const onEnabled: events.Event<() => void>;
|
|
24901
24932
|
|
|
24933
|
+
/**
|
|
24934
|
+
* Fired when the extension is added to the set of active extensions. This can occur in multiple scenarios: when an extension is first installed, updated to a new version, re-enabled after being disabled, reloaded, loaded during browser startup, or loaded when the browser is updated to a new version.
|
|
24935
|
+
*
|
|
24936
|
+
* @since Pending
|
|
24937
|
+
*/
|
|
24938
|
+
export const onExtensionLoaded: events.Event<(
|
|
24939
|
+
details: ExtensionLoadDetails,
|
|
24940
|
+
) => void>;
|
|
24941
|
+
|
|
24902
24942
|
/**
|
|
24903
24943
|
* Sent to the event page just before it is unloaded. This gives the extension opportunity to do some clean up. Note that since the page is unloading, any asynchronous operations started while handling this event are not guaranteed to complete. If more activity for the event page occurs before it gets unloaded the onSuspendCanceled event will be sent and the page won't be unloaded.
|
|
24904
24944
|
*/
|
|
@@ -36177,7 +36217,7 @@ declare namespace chrome {
|
|
|
36177
36217
|
filters?: {
|
|
36178
36218
|
|
|
36179
36219
|
/**
|
|
36180
|
-
* Conditions that the URL being navigated to must satisfy.
|
|
36220
|
+
* Conditions that the URL being navigated to must satisfy.
|
|
36181
36221
|
*/
|
|
36182
36222
|
url: events.UrlFilter[],
|
|
36183
36223
|
},
|
|
@@ -36261,7 +36301,7 @@ declare namespace chrome {
|
|
|
36261
36301
|
filters?: {
|
|
36262
36302
|
|
|
36263
36303
|
/**
|
|
36264
|
-
* Conditions that the URL being navigated to must satisfy.
|
|
36304
|
+
* Conditions that the URL being navigated to must satisfy.
|
|
36265
36305
|
*/
|
|
36266
36306
|
url: events.UrlFilter[],
|
|
36267
36307
|
},
|
|
@@ -36335,7 +36375,7 @@ declare namespace chrome {
|
|
|
36335
36375
|
filters?: {
|
|
36336
36376
|
|
|
36337
36377
|
/**
|
|
36338
|
-
* Conditions that the URL being navigated to must satisfy.
|
|
36378
|
+
* Conditions that the URL being navigated to must satisfy.
|
|
36339
36379
|
*/
|
|
36340
36380
|
url: events.UrlFilter[],
|
|
36341
36381
|
},
|
|
@@ -36409,7 +36449,7 @@ declare namespace chrome {
|
|
|
36409
36449
|
filters?: {
|
|
36410
36450
|
|
|
36411
36451
|
/**
|
|
36412
|
-
* Conditions that the URL being navigated to must satisfy.
|
|
36452
|
+
* Conditions that the URL being navigated to must satisfy.
|
|
36413
36453
|
*/
|
|
36414
36454
|
url: events.UrlFilter[],
|
|
36415
36455
|
},
|
|
@@ -36491,7 +36531,7 @@ declare namespace chrome {
|
|
|
36491
36531
|
filters?: {
|
|
36492
36532
|
|
|
36493
36533
|
/**
|
|
36494
|
-
* Conditions that the URL being navigated to must satisfy.
|
|
36534
|
+
* Conditions that the URL being navigated to must satisfy.
|
|
36495
36535
|
*/
|
|
36496
36536
|
url: events.UrlFilter[],
|
|
36497
36537
|
},
|
|
@@ -36538,7 +36578,7 @@ declare namespace chrome {
|
|
|
36538
36578
|
filters?: {
|
|
36539
36579
|
|
|
36540
36580
|
/**
|
|
36541
|
-
* Conditions that the URL being navigated to must satisfy.
|
|
36581
|
+
* Conditions that the URL being navigated to must satisfy.
|
|
36542
36582
|
*/
|
|
36543
36583
|
url: events.UrlFilter[],
|
|
36544
36584
|
},
|
|
@@ -36622,7 +36662,7 @@ declare namespace chrome {
|
|
|
36622
36662
|
filters?: {
|
|
36623
36663
|
|
|
36624
36664
|
/**
|
|
36625
|
-
* Conditions that the URL being navigated to must satisfy.
|
|
36665
|
+
* Conditions that the URL being navigated to must satisfy.
|
|
36626
36666
|
*/
|
|
36627
36667
|
url: events.UrlFilter[],
|
|
36628
36668
|
},
|
|
@@ -36729,7 +36769,7 @@ declare namespace chrome {
|
|
|
36729
36769
|
filters?: {
|
|
36730
36770
|
|
|
36731
36771
|
/**
|
|
36732
|
-
* Conditions that the URL being navigated to must satisfy.
|
|
36772
|
+
* Conditions that the URL being navigated to must satisfy.
|
|
36733
36773
|
*/
|
|
36734
36774
|
url: events.UrlFilter[],
|
|
36735
36775
|
},
|
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 Fri Oct 02 2026 22:27:28 GMT+0000 (Coordinated Universal Time)
|
|
18
|
+
// Built at e9a89ce4f8747ea33b59ef598897cc8ded3ee74b
|
|
19
19
|
|
|
20
20
|
// Includes MV3+ APIs only.
|
|
21
21
|
|
|
@@ -1003,7 +1003,7 @@ declare namespace chrome {
|
|
|
1003
1003
|
*
|
|
1004
1004
|
* @chrome-returns-extra since Chrome 91
|
|
1005
1005
|
*/
|
|
1006
|
-
export function clearAll(): Promise<boolean>;
|
|
1006
|
+
export function clearAll(): Promise<boolean | undefined>;
|
|
1007
1007
|
|
|
1008
1008
|
/**
|
|
1009
1009
|
* Clears all alarms.
|
|
@@ -1011,7 +1011,7 @@ declare namespace chrome {
|
|
|
1011
1011
|
export function clearAll(
|
|
1012
1012
|
|
|
1013
1013
|
callback?: (
|
|
1014
|
-
wasCleared
|
|
1014
|
+
wasCleared?: boolean,
|
|
1015
1015
|
) => void,
|
|
1016
1016
|
): void;
|
|
1017
1017
|
}
|
|
@@ -8283,7 +8283,7 @@ declare namespace chrome {
|
|
|
8283
8283
|
export interface GetFileIconOptions {
|
|
8284
8284
|
|
|
8285
8285
|
/**
|
|
8286
|
-
* The size of the returned icon
|
|
8286
|
+
* The size of the returned icon in density-independent pixels (DIPs). Must be either 16 or 32 (defaults to 32). On high-DPI displays, the returned image scales with the device scale factor (e.g., 64x64 px for size 32 on a 2x display). Calls from background service workers default to 1x scale.
|
|
8287
8287
|
*/
|
|
8288
8288
|
size?: number;
|
|
8289
8289
|
}
|
|
@@ -8451,7 +8451,7 @@ declare namespace chrome {
|
|
|
8451
8451
|
): void;
|
|
8452
8452
|
|
|
8453
8453
|
/**
|
|
8454
|
-
* Retrieve an icon for the specified download. For new downloads, file icons are available after the {@link
|
|
8454
|
+
* Retrieve an icon for the specified download. For new downloads, file icons are available after the download's target filename has been determined (for example, when {@link onChanged} fires with a `filename` change). Attempting to retrieve the icon before the filename is determined will result in an error through {@link runtime.lastError}. The image returned by this function while a download is in progress may be different from the image returned after the download is complete. Icon retrieval is done by querying the underlying operating system or toolkit depending on the platform. The icon that is returned will therefore depend on a number of factors including state of the download, platform, registered file types and visual theme. If a file icon cannot be determined, {@link runtime.lastError} will contain an error message.
|
|
8455
8455
|
*
|
|
8456
8456
|
* @chrome-returns-extra since Chrome 96
|
|
8457
8457
|
* @param downloadId The identifier for the download.
|
|
@@ -8465,7 +8465,7 @@ declare namespace chrome {
|
|
|
8465
8465
|
): Promise<string | undefined>;
|
|
8466
8466
|
|
|
8467
8467
|
/**
|
|
8468
|
-
* Retrieve an icon for the specified download. For new downloads, file icons are available after the {@link
|
|
8468
|
+
* Retrieve an icon for the specified download. For new downloads, file icons are available after the download's target filename has been determined (for example, when {@link onChanged} fires with a `filename` change). Attempting to retrieve the icon before the filename is determined will result in an error through {@link runtime.lastError}. The image returned by this function while a download is in progress may be different from the image returned after the download is complete. Icon retrieval is done by querying the underlying operating system or toolkit depending on the platform. The icon that is returned will therefore depend on a number of factors including state of the download, platform, registered file types and visual theme. If a file icon cannot be determined, {@link runtime.lastError} will contain an error message.
|
|
8469
8469
|
*
|
|
8470
8470
|
* @param downloadId The identifier for the download.
|
|
8471
8471
|
*/
|
|
@@ -17552,6 +17552,37 @@ declare namespace chrome {
|
|
|
17552
17552
|
*/
|
|
17553
17553
|
export type OnInstalledReason = "install" | "update" | "chrome_update" | "shared_module_update";
|
|
17554
17554
|
|
|
17555
|
+
/**
|
|
17556
|
+
* The reason that this event is being dispatched.
|
|
17557
|
+
*
|
|
17558
|
+
* @chrome-enum "install" The extension was newly installed.
|
|
17559
|
+
* @chrome-enum "update" The extension was reloaded after an update.
|
|
17560
|
+
* @chrome-enum "browser\_update" The browser was updated to a new version.
|
|
17561
|
+
* @chrome-enum "enable" The extension was re-enabled from a disabled state.
|
|
17562
|
+
* @chrome-enum "startup" The extension is being loaded during browser startup.
|
|
17563
|
+
* @chrome-enum "reload" The extension was reloaded (e.g. via chrome.runtime.reload() or the user manually reloaded the extension).
|
|
17564
|
+
* @since Pending
|
|
17565
|
+
*/
|
|
17566
|
+
export type OnLoadedReason = "install" | "update" | "browser_update" | "enable" | "startup" | "reload";
|
|
17567
|
+
|
|
17568
|
+
/**
|
|
17569
|
+
* Details about the extension load event.
|
|
17570
|
+
*
|
|
17571
|
+
* @since Pending
|
|
17572
|
+
*/
|
|
17573
|
+
export interface ExtensionLoadDetails {
|
|
17574
|
+
|
|
17575
|
+
/**
|
|
17576
|
+
* The reason that this event is being dispatched.
|
|
17577
|
+
*/
|
|
17578
|
+
reason: OnLoadedReason;
|
|
17579
|
+
|
|
17580
|
+
/**
|
|
17581
|
+
* Indicates the previous version of the extension, which has just been updated. This is present only if 'reason' is 'update'.
|
|
17582
|
+
*/
|
|
17583
|
+
previousVersion?: string;
|
|
17584
|
+
}
|
|
17585
|
+
|
|
17555
17586
|
/**
|
|
17556
17587
|
* 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.
|
|
17557
17588
|
*
|
|
@@ -17692,6 +17723,15 @@ declare namespace chrome {
|
|
|
17692
17723
|
*/
|
|
17693
17724
|
export const onEnabled: events.Event<() => void>;
|
|
17694
17725
|
|
|
17726
|
+
/**
|
|
17727
|
+
* Fired when the extension is added to the set of active extensions. This can occur in multiple scenarios: when an extension is first installed, updated to a new version, re-enabled after being disabled, reloaded, loaded during browser startup, or loaded when the browser is updated to a new version.
|
|
17728
|
+
*
|
|
17729
|
+
* @since Pending
|
|
17730
|
+
*/
|
|
17731
|
+
export const onExtensionLoaded: events.Event<(
|
|
17732
|
+
details: ExtensionLoadDetails,
|
|
17733
|
+
) => void>;
|
|
17734
|
+
|
|
17695
17735
|
/**
|
|
17696
17736
|
* Sent to the event page just before it is unloaded. This gives the extension opportunity to do some clean up. Note that since the page is unloading, any asynchronous operations started while handling this event are not guaranteed to complete. If more activity for the event page occurs before it gets unloaded the onSuspendCanceled event will be sent and the page won't be unloaded.
|
|
17697
17737
|
*/
|
|
@@ -26114,7 +26154,7 @@ declare namespace chrome {
|
|
|
26114
26154
|
filters?: {
|
|
26115
26155
|
|
|
26116
26156
|
/**
|
|
26117
|
-
* Conditions that the URL being navigated to must satisfy.
|
|
26157
|
+
* Conditions that the URL being navigated to must satisfy.
|
|
26118
26158
|
*/
|
|
26119
26159
|
url: events.UrlFilter[],
|
|
26120
26160
|
},
|
|
@@ -26198,7 +26238,7 @@ declare namespace chrome {
|
|
|
26198
26238
|
filters?: {
|
|
26199
26239
|
|
|
26200
26240
|
/**
|
|
26201
|
-
* Conditions that the URL being navigated to must satisfy.
|
|
26241
|
+
* Conditions that the URL being navigated to must satisfy.
|
|
26202
26242
|
*/
|
|
26203
26243
|
url: events.UrlFilter[],
|
|
26204
26244
|
},
|
|
@@ -26272,7 +26312,7 @@ declare namespace chrome {
|
|
|
26272
26312
|
filters?: {
|
|
26273
26313
|
|
|
26274
26314
|
/**
|
|
26275
|
-
* Conditions that the URL being navigated to must satisfy.
|
|
26315
|
+
* Conditions that the URL being navigated to must satisfy.
|
|
26276
26316
|
*/
|
|
26277
26317
|
url: events.UrlFilter[],
|
|
26278
26318
|
},
|
|
@@ -26346,7 +26386,7 @@ declare namespace chrome {
|
|
|
26346
26386
|
filters?: {
|
|
26347
26387
|
|
|
26348
26388
|
/**
|
|
26349
|
-
* Conditions that the URL being navigated to must satisfy.
|
|
26389
|
+
* Conditions that the URL being navigated to must satisfy.
|
|
26350
26390
|
*/
|
|
26351
26391
|
url: events.UrlFilter[],
|
|
26352
26392
|
},
|
|
@@ -26428,7 +26468,7 @@ declare namespace chrome {
|
|
|
26428
26468
|
filters?: {
|
|
26429
26469
|
|
|
26430
26470
|
/**
|
|
26431
|
-
* Conditions that the URL being navigated to must satisfy.
|
|
26471
|
+
* Conditions that the URL being navigated to must satisfy.
|
|
26432
26472
|
*/
|
|
26433
26473
|
url: events.UrlFilter[],
|
|
26434
26474
|
},
|
|
@@ -26475,7 +26515,7 @@ declare namespace chrome {
|
|
|
26475
26515
|
filters?: {
|
|
26476
26516
|
|
|
26477
26517
|
/**
|
|
26478
|
-
* Conditions that the URL being navigated to must satisfy.
|
|
26518
|
+
* Conditions that the URL being navigated to must satisfy.
|
|
26479
26519
|
*/
|
|
26480
26520
|
url: events.UrlFilter[],
|
|
26481
26521
|
},
|
|
@@ -26559,7 +26599,7 @@ declare namespace chrome {
|
|
|
26559
26599
|
filters?: {
|
|
26560
26600
|
|
|
26561
26601
|
/**
|
|
26562
|
-
* Conditions that the URL being navigated to must satisfy.
|
|
26602
|
+
* Conditions that the URL being navigated to must satisfy.
|
|
26563
26603
|
*/
|
|
26564
26604
|
url: events.UrlFilter[],
|
|
26565
26605
|
},
|
|
@@ -26666,7 +26706,7 @@ declare namespace chrome {
|
|
|
26666
26706
|
filters?: {
|
|
26667
26707
|
|
|
26668
26708
|
/**
|
|
26669
|
-
* Conditions that the URL being navigated to must satisfy.
|
|
26709
|
+
* Conditions that the URL being navigated to must satisfy.
|
|
26670
26710
|
*/
|
|
26671
26711
|
url: events.UrlFilter[],
|
|
26672
26712
|
},
|
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": "7cdf446d9ee47a93"
|
|
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.451"
|
|
20
20
|
}
|