chrome-types 0.1.352 → 0.1.354
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 +56 -27
- package/index.d.ts +50 -14
- 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 Jun 13 2025 22:33:38 GMT+0000 (Coordinated Universal Time)
|
|
18
|
+
// Built at 88f0190b90922634641f5e986583ab209f072769
|
|
19
19
|
|
|
20
20
|
// Includes all types, including MV2 + Platform Apps APIs.
|
|
21
21
|
|
|
@@ -317,7 +317,7 @@ declare namespace chrome {
|
|
|
317
317
|
/**
|
|
318
318
|
* Either an ImageData object or a dictionary {size -> ImageData} representing icon to be set. If the icon is specified as a dictionary, the actual image to be used is chosen depending on screen's pixel density. If the number of image pixels that fit into one screen space unit equals `scale`, then image with size `scale` \* n will be selected, where n is the size of the icon in the UI. At least one image must be specified. Note that 'details.imageData = foo' is equivalent to 'details.imageData = {'16': foo}'
|
|
319
319
|
*/
|
|
320
|
-
imageData?:
|
|
320
|
+
imageData?: extensionTypes.ImageDataType | {[name: string]: any},
|
|
321
321
|
|
|
322
322
|
/**
|
|
323
323
|
* Either a relative image path or a dictionary {size -> relative image path} pointing to icon to be set. If the icon is specified as a dictionary, the actual image to be used is chosen depending on screen's pixel density. If the number of image pixels that fit into one screen space unit equals `scale`, then image with size `scale` \* n will be selected, where n is the size of the icon in the UI. At least one image must be specified. Note that 'details.path = foo' is equivalent to 'details.path = {'16': foo}'
|
|
@@ -341,7 +341,7 @@ declare namespace chrome {
|
|
|
341
341
|
/**
|
|
342
342
|
* Either an ImageData object or a dictionary {size -> ImageData} representing icon to be set. If the icon is specified as a dictionary, the actual image to be used is chosen depending on screen's pixel density. If the number of image pixels that fit into one screen space unit equals `scale`, then image with size `scale` \* n will be selected, where n is the size of the icon in the UI. At least one image must be specified. Note that 'details.imageData = foo' is equivalent to 'details.imageData = {'16': foo}'
|
|
343
343
|
*/
|
|
344
|
-
imageData?:
|
|
344
|
+
imageData?: extensionTypes.ImageDataType | {[name: string]: any},
|
|
345
345
|
|
|
346
346
|
/**
|
|
347
347
|
* Either a relative image path or a dictionary {size -> relative image path} pointing to icon to be set. If the icon is specified as a dictionary, the actual image to be used is chosen depending on screen's pixel density. If the number of image pixels that fit into one screen space unit equals `scale`, then image with size `scale` \* n will be selected, where n is the size of the icon in the UI. At least one image must be specified. Note that 'details.path = foo' is equivalent to 'details.path = {'16': foo}'
|
|
@@ -487,7 +487,7 @@ declare namespace chrome {
|
|
|
487
487
|
/**
|
|
488
488
|
* An array of four integers in the range \[0,255\] that make up the RGBA color of the badge. For example, opaque red is `[255, 0, 0, 255]`. Can also be a string with a CSS value, with opaque red being `#FF0000` or `#F00`.
|
|
489
489
|
*/
|
|
490
|
-
color: string |
|
|
490
|
+
color: string | extensionTypes.ColorArray,
|
|
491
491
|
|
|
492
492
|
/**
|
|
493
493
|
* Limits the change to when a particular tab is selected. Automatically resets when the tab is closed.
|
|
@@ -506,7 +506,7 @@ declare namespace chrome {
|
|
|
506
506
|
/**
|
|
507
507
|
* An array of four integers in the range \[0,255\] that make up the RGBA color of the badge. For example, opaque red is `[255, 0, 0, 255]`. Can also be a string with a CSS value, with opaque red being `#FF0000` or `#F00`.
|
|
508
508
|
*/
|
|
509
|
-
color: string |
|
|
509
|
+
color: string | extensionTypes.ColorArray,
|
|
510
510
|
|
|
511
511
|
/**
|
|
512
512
|
* Limits the change to when a particular tab is selected. Automatically resets when the tab is closed.
|
|
@@ -523,7 +523,7 @@ declare namespace chrome {
|
|
|
523
523
|
export function getBadgeBackgroundColor(
|
|
524
524
|
|
|
525
525
|
details: TabDetails,
|
|
526
|
-
): Promise<
|
|
526
|
+
): Promise<extensionTypes.ColorArray>;
|
|
527
527
|
|
|
528
528
|
/**
|
|
529
529
|
* Gets the background color of the action.
|
|
@@ -533,7 +533,7 @@ declare namespace chrome {
|
|
|
533
533
|
details: TabDetails,
|
|
534
534
|
|
|
535
535
|
callback?: (
|
|
536
|
-
result:
|
|
536
|
+
result: extensionTypes.ColorArray,
|
|
537
537
|
) => void,
|
|
538
538
|
): void;
|
|
539
539
|
|
|
@@ -549,7 +549,7 @@ declare namespace chrome {
|
|
|
549
549
|
/**
|
|
550
550
|
* An array of four integers in the range \[0,255\] that make up the RGBA color of the badge. For example, opaque red is `[255, 0, 0, 255]`. Can also be a string with a CSS value, with opaque red being `#FF0000` or `#F00`. Not setting this value will cause a color to be automatically chosen that will contrast with the badge's background color so the text will be visible. Colors with alpha values equivalent to 0 will not be set and will return an error.
|
|
551
551
|
*/
|
|
552
|
-
color: string |
|
|
552
|
+
color: string | extensionTypes.ColorArray,
|
|
553
553
|
|
|
554
554
|
/**
|
|
555
555
|
* Limits the change to when a particular tab is selected. Automatically resets when the tab is closed.
|
|
@@ -570,7 +570,7 @@ declare namespace chrome {
|
|
|
570
570
|
/**
|
|
571
571
|
* An array of four integers in the range \[0,255\] that make up the RGBA color of the badge. For example, opaque red is `[255, 0, 0, 255]`. Can also be a string with a CSS value, with opaque red being `#FF0000` or `#F00`. Not setting this value will cause a color to be automatically chosen that will contrast with the badge's background color so the text will be visible. Colors with alpha values equivalent to 0 will not be set and will return an error.
|
|
572
572
|
*/
|
|
573
|
-
color: string |
|
|
573
|
+
color: string | extensionTypes.ColorArray,
|
|
574
574
|
|
|
575
575
|
/**
|
|
576
576
|
* Limits the change to when a particular tab is selected. Automatically resets when the tab is closed.
|
|
@@ -589,7 +589,7 @@ declare namespace chrome {
|
|
|
589
589
|
export function getBadgeTextColor(
|
|
590
590
|
|
|
591
591
|
details: TabDetails,
|
|
592
|
-
): Promise<
|
|
592
|
+
): Promise<extensionTypes.ColorArray>;
|
|
593
593
|
|
|
594
594
|
/**
|
|
595
595
|
* Gets the text color of the action.
|
|
@@ -601,7 +601,7 @@ declare namespace chrome {
|
|
|
601
601
|
details: TabDetails,
|
|
602
602
|
|
|
603
603
|
callback?: (
|
|
604
|
-
result:
|
|
604
|
+
result: extensionTypes.ColorArray,
|
|
605
605
|
) => void,
|
|
606
606
|
): void;
|
|
607
607
|
|
|
@@ -4507,13 +4507,6 @@ declare namespace chrome {
|
|
|
4507
4507
|
*/
|
|
4508
4508
|
export namespace browserAction {
|
|
4509
4509
|
|
|
4510
|
-
export type ColorArray = [number, number, number, number];
|
|
4511
|
-
|
|
4512
|
-
/**
|
|
4513
|
-
* Pixel data for an image. Must be an ImageData object; for example, from a `canvas` element.
|
|
4514
|
-
*/
|
|
4515
|
-
export type ImageDataType = ImageData;
|
|
4516
|
-
|
|
4517
4510
|
/**
|
|
4518
4511
|
* @since Chrome 88
|
|
4519
4512
|
*/
|
|
@@ -4611,7 +4604,7 @@ declare namespace chrome {
|
|
|
4611
4604
|
/**
|
|
4612
4605
|
* Either an ImageData object or a dictionary {size -> ImageData} representing an icon to be set. If the icon is specified as a dictionary, the image used is chosen depending on the screen's pixel density. If the number of image pixels that fit into one screen space unit equals `scale`, then an image with size `scale` \* n is selected, where _n_ is the size of the icon in the UI. At least one image must be specified. Note that 'details.imageData = foo' is equivalent to 'details.imageData = {'16': foo}'
|
|
4613
4606
|
*/
|
|
4614
|
-
imageData?: ImageDataType | {[name: string]: any},
|
|
4607
|
+
imageData?: extensionTypes.ImageDataType | {[name: string]: any},
|
|
4615
4608
|
|
|
4616
4609
|
/**
|
|
4617
4610
|
* Either a relative image path or a dictionary {size -> relative image path} pointing to an icon to be set. If the icon is specified as a dictionary, the image used is chosen depending on the screen's pixel density. If the number of image pixels that fit into one screen space unit equals `scale`, then an image with size `scale` \* n is selected, where _n_ is the size of the icon in the UI. At least one image must be specified. Note that 'details.path = foo' is equivalent to 'details.path = {'16': foo}'
|
|
@@ -4635,7 +4628,7 @@ declare namespace chrome {
|
|
|
4635
4628
|
/**
|
|
4636
4629
|
* Either an ImageData object or a dictionary {size -> ImageData} representing an icon to be set. If the icon is specified as a dictionary, the image used is chosen depending on the screen's pixel density. If the number of image pixels that fit into one screen space unit equals `scale`, then an image with size `scale` \* n is selected, where _n_ is the size of the icon in the UI. At least one image must be specified. Note that 'details.imageData = foo' is equivalent to 'details.imageData = {'16': foo}'
|
|
4637
4630
|
*/
|
|
4638
|
-
imageData?: ImageDataType | {[name: string]: any},
|
|
4631
|
+
imageData?: extensionTypes.ImageDataType | {[name: string]: any},
|
|
4639
4632
|
|
|
4640
4633
|
/**
|
|
4641
4634
|
* Either a relative image path or a dictionary {size -> relative image path} pointing to an icon to be set. If the icon is specified as a dictionary, the image used is chosen depending on the screen's pixel density. If the number of image pixels that fit into one screen space unit equals `scale`, then an image with size `scale` \* n is selected, where _n_ is the size of the icon in the UI. At least one image must be specified. Note that 'details.path = foo' is equivalent to 'details.path = {'16': foo}'
|
|
@@ -4797,7 +4790,7 @@ declare namespace chrome {
|
|
|
4797
4790
|
/**
|
|
4798
4791
|
* An array of four integers in the range 0-255 that make up the RGBA color of the badge. Can also be a string with a CSS hex color value; for example, `#FF0000` or `#F00` (red). Renders colors at full opacity.
|
|
4799
4792
|
*/
|
|
4800
|
-
color: string | ColorArray,
|
|
4793
|
+
color: string | extensionTypes.ColorArray,
|
|
4801
4794
|
|
|
4802
4795
|
/**
|
|
4803
4796
|
* Limits the change to when a particular tab is selected. Automatically resets when the tab is closed.
|
|
@@ -4816,7 +4809,7 @@ declare namespace chrome {
|
|
|
4816
4809
|
/**
|
|
4817
4810
|
* An array of four integers in the range 0-255 that make up the RGBA color of the badge. Can also be a string with a CSS hex color value; for example, `#FF0000` or `#F00` (red). Renders colors at full opacity.
|
|
4818
4811
|
*/
|
|
4819
|
-
color: string | ColorArray,
|
|
4812
|
+
color: string | extensionTypes.ColorArray,
|
|
4820
4813
|
|
|
4821
4814
|
/**
|
|
4822
4815
|
* Limits the change to when a particular tab is selected. Automatically resets when the tab is closed.
|
|
@@ -4838,7 +4831,7 @@ declare namespace chrome {
|
|
|
4838
4831
|
export function getBadgeBackgroundColor(
|
|
4839
4832
|
|
|
4840
4833
|
details: TabDetails,
|
|
4841
|
-
): Promise<ColorArray>;
|
|
4834
|
+
): Promise<extensionTypes.ColorArray>;
|
|
4842
4835
|
|
|
4843
4836
|
/**
|
|
4844
4837
|
* Gets the background color of the browser action.
|
|
@@ -4848,7 +4841,7 @@ declare namespace chrome {
|
|
|
4848
4841
|
details: TabDetails,
|
|
4849
4842
|
|
|
4850
4843
|
callback?: (
|
|
4851
|
-
result: ColorArray,
|
|
4844
|
+
result: extensionTypes.ColorArray,
|
|
4852
4845
|
) => void,
|
|
4853
4846
|
): void;
|
|
4854
4847
|
|
|
@@ -12310,6 +12303,30 @@ declare namespace chrome {
|
|
|
12310
12303
|
): void;
|
|
12311
12304
|
}
|
|
12312
12305
|
|
|
12306
|
+
/**
|
|
12307
|
+
* Use the `chrome.enterprise.login` API to exit user sessions. Note: This API is only available to extensions installed by enterprise policy in ChromeOS managed sessions.
|
|
12308
|
+
*
|
|
12309
|
+
* @since Pending
|
|
12310
|
+
* @chrome-permission enterprise.login
|
|
12311
|
+
* @chrome-install-location policy
|
|
12312
|
+
* @chrome-platform chromeos
|
|
12313
|
+
*/
|
|
12314
|
+
export namespace enterprise.login {
|
|
12315
|
+
|
|
12316
|
+
/**
|
|
12317
|
+
* Exits the current managed guest session.
|
|
12318
|
+
*/
|
|
12319
|
+
export function exitCurrentManagedGuestSession(): Promise<void>;
|
|
12320
|
+
|
|
12321
|
+
/**
|
|
12322
|
+
* Exits the current managed guest session.
|
|
12323
|
+
*/
|
|
12324
|
+
export function exitCurrentManagedGuestSession(
|
|
12325
|
+
|
|
12326
|
+
callback?: () => void,
|
|
12327
|
+
): void;
|
|
12328
|
+
}
|
|
12329
|
+
|
|
12313
12330
|
/**
|
|
12314
12331
|
* Use the `chrome.enterprise.networkingAttributes` API to read information about your current network. Note: This API is only available to extensions force-installed by enterprise policy.
|
|
12315
12332
|
*
|
|
@@ -13398,6 +13415,18 @@ declare namespace chrome {
|
|
|
13398
13415
|
*/
|
|
13399
13416
|
export namespace extensionTypes {
|
|
13400
13417
|
|
|
13418
|
+
/**
|
|
13419
|
+
* @since Pending
|
|
13420
|
+
*/
|
|
13421
|
+
export type ColorArray = [number, number, number, number];
|
|
13422
|
+
|
|
13423
|
+
/**
|
|
13424
|
+
* Pixel data for an image. Must be an ImageData object; for example, from a `canvas` element.
|
|
13425
|
+
*
|
|
13426
|
+
* @since Pending
|
|
13427
|
+
*/
|
|
13428
|
+
export type ImageDataType = ImageData;
|
|
13429
|
+
|
|
13401
13430
|
/**
|
|
13402
13431
|
* The format of an image.
|
|
13403
13432
|
*
|
|
@@ -23668,9 +23697,9 @@ declare namespace chrome {
|
|
|
23668
23697
|
export const websites: {
|
|
23669
23698
|
|
|
23670
23699
|
/**
|
|
23671
|
-
* If disabled, Chrome blocks third-party sites from setting cookies. The value of this preference is of type boolean, and the default value is `true`.
|
|
23700
|
+
* If disabled, Chrome blocks third-party sites from setting cookies. The value of this preference is of type boolean, and the default value is `true`. Extensions may not enable this API in Incognito mode, where third-party cookies are blocked and can only be allowed at the site level. If you try setting this API to true in Incognito, it will throw an error.
|
|
23672
23701
|
*
|
|
23673
|
-
*
|
|
23702
|
+
* Note: Individual sites may still be able to access third-party cookies when this API returns `false`, if they have a valid [exemption](https://developers.google.com/privacy-sandbox/cookies/temporary-exceptions/preserving-critical-user-experiences) or they use the [Storage Access API](https://developers.google.com/privacy-sandbox/cookies/storage-access-api) instead.
|
|
23674
23703
|
*/
|
|
23675
23704
|
thirdPartyCookiesAllowed: types.ChromeSetting<boolean>,
|
|
23676
23705
|
|
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 Jun 13 2025 22:33:33 GMT+0000 (Coordinated Universal Time)
|
|
18
|
+
// Built at 88f0190b90922634641f5e986583ab209f072769
|
|
19
19
|
|
|
20
20
|
// Includes MV3+ APIs only.
|
|
21
21
|
|
|
@@ -375,7 +375,7 @@ declare namespace chrome {
|
|
|
375
375
|
/**
|
|
376
376
|
* Either an ImageData object or a dictionary {size -> ImageData} representing icon to be set. If the icon is specified as a dictionary, the actual image to be used is chosen depending on screen's pixel density. If the number of image pixels that fit into one screen space unit equals `scale`, then image with size `scale` \* n will be selected, where n is the size of the icon in the UI. At least one image must be specified. Note that 'details.imageData = foo' is equivalent to 'details.imageData = {'16': foo}'
|
|
377
377
|
*/
|
|
378
|
-
imageData?:
|
|
378
|
+
imageData?: extensionTypes.ImageDataType | {[name: string]: any},
|
|
379
379
|
|
|
380
380
|
/**
|
|
381
381
|
* Either a relative image path or a dictionary {size -> relative image path} pointing to icon to be set. If the icon is specified as a dictionary, the actual image to be used is chosen depending on screen's pixel density. If the number of image pixels that fit into one screen space unit equals `scale`, then image with size `scale` \* n will be selected, where n is the size of the icon in the UI. At least one image must be specified. Note that 'details.path = foo' is equivalent to 'details.path = {'16': foo}'
|
|
@@ -399,7 +399,7 @@ declare namespace chrome {
|
|
|
399
399
|
/**
|
|
400
400
|
* Either an ImageData object or a dictionary {size -> ImageData} representing icon to be set. If the icon is specified as a dictionary, the actual image to be used is chosen depending on screen's pixel density. If the number of image pixels that fit into one screen space unit equals `scale`, then image with size `scale` \* n will be selected, where n is the size of the icon in the UI. At least one image must be specified. Note that 'details.imageData = foo' is equivalent to 'details.imageData = {'16': foo}'
|
|
401
401
|
*/
|
|
402
|
-
imageData?:
|
|
402
|
+
imageData?: extensionTypes.ImageDataType | {[name: string]: any},
|
|
403
403
|
|
|
404
404
|
/**
|
|
405
405
|
* Either a relative image path or a dictionary {size -> relative image path} pointing to icon to be set. If the icon is specified as a dictionary, the actual image to be used is chosen depending on screen's pixel density. If the number of image pixels that fit into one screen space unit equals `scale`, then image with size `scale` \* n will be selected, where n is the size of the icon in the UI. At least one image must be specified. Note that 'details.path = foo' is equivalent to 'details.path = {'16': foo}'
|
|
@@ -545,7 +545,7 @@ declare namespace chrome {
|
|
|
545
545
|
/**
|
|
546
546
|
* An array of four integers in the range \[0,255\] that make up the RGBA color of the badge. For example, opaque red is `[255, 0, 0, 255]`. Can also be a string with a CSS value, with opaque red being `#FF0000` or `#F00`.
|
|
547
547
|
*/
|
|
548
|
-
color: string |
|
|
548
|
+
color: string | extensionTypes.ColorArray,
|
|
549
549
|
|
|
550
550
|
/**
|
|
551
551
|
* Limits the change to when a particular tab is selected. Automatically resets when the tab is closed.
|
|
@@ -564,7 +564,7 @@ declare namespace chrome {
|
|
|
564
564
|
/**
|
|
565
565
|
* An array of four integers in the range \[0,255\] that make up the RGBA color of the badge. For example, opaque red is `[255, 0, 0, 255]`. Can also be a string with a CSS value, with opaque red being `#FF0000` or `#F00`.
|
|
566
566
|
*/
|
|
567
|
-
color: string |
|
|
567
|
+
color: string | extensionTypes.ColorArray,
|
|
568
568
|
|
|
569
569
|
/**
|
|
570
570
|
* Limits the change to when a particular tab is selected. Automatically resets when the tab is closed.
|
|
@@ -581,7 +581,7 @@ declare namespace chrome {
|
|
|
581
581
|
export function getBadgeBackgroundColor(
|
|
582
582
|
|
|
583
583
|
details: TabDetails,
|
|
584
|
-
): Promise<
|
|
584
|
+
): Promise<extensionTypes.ColorArray>;
|
|
585
585
|
|
|
586
586
|
/**
|
|
587
587
|
* Gets the background color of the action.
|
|
@@ -591,7 +591,7 @@ declare namespace chrome {
|
|
|
591
591
|
details: TabDetails,
|
|
592
592
|
|
|
593
593
|
callback?: (
|
|
594
|
-
result:
|
|
594
|
+
result: extensionTypes.ColorArray,
|
|
595
595
|
) => void,
|
|
596
596
|
): void;
|
|
597
597
|
|
|
@@ -607,7 +607,7 @@ declare namespace chrome {
|
|
|
607
607
|
/**
|
|
608
608
|
* An array of four integers in the range \[0,255\] that make up the RGBA color of the badge. For example, opaque red is `[255, 0, 0, 255]`. Can also be a string with a CSS value, with opaque red being `#FF0000` or `#F00`. Not setting this value will cause a color to be automatically chosen that will contrast with the badge's background color so the text will be visible. Colors with alpha values equivalent to 0 will not be set and will return an error.
|
|
609
609
|
*/
|
|
610
|
-
color: string |
|
|
610
|
+
color: string | extensionTypes.ColorArray,
|
|
611
611
|
|
|
612
612
|
/**
|
|
613
613
|
* Limits the change to when a particular tab is selected. Automatically resets when the tab is closed.
|
|
@@ -628,7 +628,7 @@ declare namespace chrome {
|
|
|
628
628
|
/**
|
|
629
629
|
* An array of four integers in the range \[0,255\] that make up the RGBA color of the badge. For example, opaque red is `[255, 0, 0, 255]`. Can also be a string with a CSS value, with opaque red being `#FF0000` or `#F00`. Not setting this value will cause a color to be automatically chosen that will contrast with the badge's background color so the text will be visible. Colors with alpha values equivalent to 0 will not be set and will return an error.
|
|
630
630
|
*/
|
|
631
|
-
color: string |
|
|
631
|
+
color: string | extensionTypes.ColorArray,
|
|
632
632
|
|
|
633
633
|
/**
|
|
634
634
|
* Limits the change to when a particular tab is selected. Automatically resets when the tab is closed.
|
|
@@ -647,7 +647,7 @@ declare namespace chrome {
|
|
|
647
647
|
export function getBadgeTextColor(
|
|
648
648
|
|
|
649
649
|
details: TabDetails,
|
|
650
|
-
): Promise<
|
|
650
|
+
): Promise<extensionTypes.ColorArray>;
|
|
651
651
|
|
|
652
652
|
/**
|
|
653
653
|
* Gets the text color of the action.
|
|
@@ -659,7 +659,7 @@ declare namespace chrome {
|
|
|
659
659
|
details: TabDetails,
|
|
660
660
|
|
|
661
661
|
callback?: (
|
|
662
|
-
result:
|
|
662
|
+
result: extensionTypes.ColorArray,
|
|
663
663
|
) => void,
|
|
664
664
|
): void;
|
|
665
665
|
|
|
@@ -8453,6 +8453,30 @@ declare namespace chrome {
|
|
|
8453
8453
|
): void;
|
|
8454
8454
|
}
|
|
8455
8455
|
|
|
8456
|
+
/**
|
|
8457
|
+
* Use the `chrome.enterprise.login` API to exit user sessions. Note: This API is only available to extensions installed by enterprise policy in ChromeOS managed sessions.
|
|
8458
|
+
*
|
|
8459
|
+
* @since Pending
|
|
8460
|
+
* @chrome-permission enterprise.login
|
|
8461
|
+
* @chrome-install-location policy
|
|
8462
|
+
* @chrome-platform chromeos
|
|
8463
|
+
*/
|
|
8464
|
+
export namespace enterprise.login {
|
|
8465
|
+
|
|
8466
|
+
/**
|
|
8467
|
+
* Exits the current managed guest session.
|
|
8468
|
+
*/
|
|
8469
|
+
export function exitCurrentManagedGuestSession(): Promise<void>;
|
|
8470
|
+
|
|
8471
|
+
/**
|
|
8472
|
+
* Exits the current managed guest session.
|
|
8473
|
+
*/
|
|
8474
|
+
export function exitCurrentManagedGuestSession(
|
|
8475
|
+
|
|
8476
|
+
callback?: () => void,
|
|
8477
|
+
): void;
|
|
8478
|
+
}
|
|
8479
|
+
|
|
8456
8480
|
/**
|
|
8457
8481
|
* Use the `chrome.enterprise.networkingAttributes` API to read information about your current network. Note: This API is only available to extensions force-installed by enterprise policy.
|
|
8458
8482
|
*
|
|
@@ -9407,6 +9431,18 @@ declare namespace chrome {
|
|
|
9407
9431
|
*/
|
|
9408
9432
|
export namespace extensionTypes {
|
|
9409
9433
|
|
|
9434
|
+
/**
|
|
9435
|
+
* @since Pending
|
|
9436
|
+
*/
|
|
9437
|
+
export type ColorArray = [number, number, number, number];
|
|
9438
|
+
|
|
9439
|
+
/**
|
|
9440
|
+
* Pixel data for an image. Must be an ImageData object; for example, from a `canvas` element.
|
|
9441
|
+
*
|
|
9442
|
+
* @since Pending
|
|
9443
|
+
*/
|
|
9444
|
+
export type ImageDataType = ImageData;
|
|
9445
|
+
|
|
9410
9446
|
/**
|
|
9411
9447
|
* The format of an image.
|
|
9412
9448
|
*
|
|
@@ -18436,9 +18472,9 @@ declare namespace chrome {
|
|
|
18436
18472
|
export const websites: {
|
|
18437
18473
|
|
|
18438
18474
|
/**
|
|
18439
|
-
* If disabled, Chrome blocks third-party sites from setting cookies. The value of this preference is of type boolean, and the default value is `true`.
|
|
18475
|
+
* If disabled, Chrome blocks third-party sites from setting cookies. The value of this preference is of type boolean, and the default value is `true`. Extensions may not enable this API in Incognito mode, where third-party cookies are blocked and can only be allowed at the site level. If you try setting this API to true in Incognito, it will throw an error.
|
|
18440
18476
|
*
|
|
18441
|
-
*
|
|
18477
|
+
* Note: Individual sites may still be able to access third-party cookies when this API returns `false`, if they have a valid [exemption](https://developers.google.com/privacy-sandbox/cookies/temporary-exceptions/preserving-critical-user-experiences) or they use the [Storage Access API](https://developers.google.com/privacy-sandbox/cookies/storage-access-api) instead.
|
|
18442
18478
|
*/
|
|
18443
18479
|
thirdPartyCookiesAllowed: types.ChromeSetting<boolean>,
|
|
18444
18480
|
|
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": "087bfeb71c90ef89"
|
|
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.354"
|
|
20
20
|
}
|