chrome-types 0.1.361 → 0.1.362
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 +31 -224
- package/index.d.ts +31 -228
- 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 23 2025 11:27:20 GMT+0000 (Coordinated Universal Time)
|
|
18
|
+
// Built at bff9ed74819850f5b08848fe5609d073c921d630
|
|
19
19
|
|
|
20
20
|
// Includes all types, including MV2 + Platform Apps APIs.
|
|
21
21
|
|
|
@@ -726,217 +726,6 @@ declare namespace chrome {
|
|
|
726
726
|
): void;
|
|
727
727
|
}
|
|
728
728
|
|
|
729
|
-
/**
|
|
730
|
-
* Use the `chrome.alarms` API to schedule code to run periodically or at a specified time in the future.
|
|
731
|
-
*
|
|
732
|
-
* @chrome-permission alarms
|
|
733
|
-
*/
|
|
734
|
-
export namespace alarms {
|
|
735
|
-
|
|
736
|
-
export interface Alarm {
|
|
737
|
-
|
|
738
|
-
/**
|
|
739
|
-
* Name of this alarm.
|
|
740
|
-
*/
|
|
741
|
-
name: string;
|
|
742
|
-
|
|
743
|
-
/**
|
|
744
|
-
* Time at which this alarm was scheduled to fire, in milliseconds past the epoch (e.g. `Date.now() + n`). For performance reasons, the alarm may have been delayed an arbitrary amount beyond this.
|
|
745
|
-
*/
|
|
746
|
-
scheduledTime: number;
|
|
747
|
-
|
|
748
|
-
/**
|
|
749
|
-
* If not null, the alarm is a repeating alarm and will fire again in `periodInMinutes` minutes.
|
|
750
|
-
*/
|
|
751
|
-
periodInMinutes?: number;
|
|
752
|
-
}
|
|
753
|
-
|
|
754
|
-
export interface AlarmCreateInfo {
|
|
755
|
-
|
|
756
|
-
/**
|
|
757
|
-
* Time at which the alarm should fire, in milliseconds past the epoch (e.g. `Date.now() + n`).
|
|
758
|
-
*/
|
|
759
|
-
when?: number;
|
|
760
|
-
|
|
761
|
-
/**
|
|
762
|
-
* Length of time in minutes after which the `onAlarm` event should fire.
|
|
763
|
-
*/
|
|
764
|
-
delayInMinutes?: number;
|
|
765
|
-
|
|
766
|
-
/**
|
|
767
|
-
* If set, the onAlarm event should fire every `periodInMinutes` minutes after the initial event specified by `when` or `delayInMinutes`. If not set, the alarm will only fire once.
|
|
768
|
-
*/
|
|
769
|
-
periodInMinutes?: number;
|
|
770
|
-
}
|
|
771
|
-
|
|
772
|
-
/**
|
|
773
|
-
* Fired when an alarm has elapsed. Useful for event pages.
|
|
774
|
-
*/
|
|
775
|
-
export const onAlarm: events.Event<(
|
|
776
|
-
alarm: Alarm,
|
|
777
|
-
) => void>;
|
|
778
|
-
|
|
779
|
-
/**
|
|
780
|
-
* Creates an alarm. Near the time(s) specified by `alarmInfo`, the `onAlarm` event is fired. If there is another alarm with the same name (or no name if none is specified), it will be cancelled and replaced by this alarm.
|
|
781
|
-
*
|
|
782
|
-
* In order to reduce the load on the user's machine, Chrome limits alarms to at most once every 30 seconds but may delay them an arbitrary amount more. That is, setting `delayInMinutes` or `periodInMinutes` to less than `0.5` will not be honored and will cause a warning. `when` can be set to less than 30 seconds after "now" without warning but won't actually cause the alarm to fire for at least 30 seconds.
|
|
783
|
-
*
|
|
784
|
-
* To help you debug your app or extension, when you've loaded it unpacked, there's no limit to how often the alarm can fire.
|
|
785
|
-
*
|
|
786
|
-
* @chrome-returns-extra since Chrome 111
|
|
787
|
-
* @param name Optional name to identify this alarm. Defaults to the empty string.
|
|
788
|
-
* @param alarmInfo Describes when the alarm should fire. The initial time must be specified by either `when` or `delayInMinutes` (but not both). If `periodInMinutes` is set, the alarm will repeat every `periodInMinutes` minutes after the initial event. If neither `when` or `delayInMinutes` is set for a repeating alarm, `periodInMinutes` is used as the default for `delayInMinutes`.
|
|
789
|
-
*/
|
|
790
|
-
export function create(
|
|
791
|
-
|
|
792
|
-
name: string,
|
|
793
|
-
|
|
794
|
-
alarmInfo: AlarmCreateInfo,
|
|
795
|
-
): Promise<void>;
|
|
796
|
-
|
|
797
|
-
/**
|
|
798
|
-
* Creates an alarm. Near the time(s) specified by `alarmInfo`, the `onAlarm` event is fired. If there is another alarm with the same name (or no name if none is specified), it will be cancelled and replaced by this alarm.
|
|
799
|
-
*
|
|
800
|
-
* In order to reduce the load on the user's machine, Chrome limits alarms to at most once every 30 seconds but may delay them an arbitrary amount more. That is, setting `delayInMinutes` or `periodInMinutes` to less than `0.5` will not be honored and will cause a warning. `when` can be set to less than 30 seconds after "now" without warning but won't actually cause the alarm to fire for at least 30 seconds.
|
|
801
|
-
*
|
|
802
|
-
* To help you debug your app or extension, when you've loaded it unpacked, there's no limit to how often the alarm can fire.
|
|
803
|
-
*
|
|
804
|
-
* @chrome-returns-extra since Chrome 111
|
|
805
|
-
* @param alarmInfo Describes when the alarm should fire. The initial time must be specified by either `when` or `delayInMinutes` (but not both). If `periodInMinutes` is set, the alarm will repeat every `periodInMinutes` minutes after the initial event. If neither `when` or `delayInMinutes` is set for a repeating alarm, `periodInMinutes` is used as the default for `delayInMinutes`.
|
|
806
|
-
*/
|
|
807
|
-
export function create(
|
|
808
|
-
|
|
809
|
-
alarmInfo: AlarmCreateInfo,
|
|
810
|
-
): Promise<void>;
|
|
811
|
-
|
|
812
|
-
/**
|
|
813
|
-
* Creates an alarm. Near the time(s) specified by `alarmInfo`, the `onAlarm` event is fired. If there is another alarm with the same name (or no name if none is specified), it will be cancelled and replaced by this alarm.
|
|
814
|
-
*
|
|
815
|
-
* In order to reduce the load on the user's machine, Chrome limits alarms to at most once every 30 seconds but may delay them an arbitrary amount more. That is, setting `delayInMinutes` or `periodInMinutes` to less than `0.5` will not be honored and will cause a warning. `when` can be set to less than 30 seconds after "now" without warning but won't actually cause the alarm to fire for at least 30 seconds.
|
|
816
|
-
*
|
|
817
|
-
* To help you debug your app or extension, when you've loaded it unpacked, there's no limit to how often the alarm can fire.
|
|
818
|
-
*
|
|
819
|
-
* @param name Optional name to identify this alarm. Defaults to the empty string.
|
|
820
|
-
* @param alarmInfo Describes when the alarm should fire. The initial time must be specified by either `when` or `delayInMinutes` (but not both). If `periodInMinutes` is set, the alarm will repeat every `periodInMinutes` minutes after the initial event. If neither `when` or `delayInMinutes` is set for a repeating alarm, `periodInMinutes` is used as the default for `delayInMinutes`.
|
|
821
|
-
* @param callback Invoked when the alarm has been created.
|
|
822
|
-
*/
|
|
823
|
-
export function create(
|
|
824
|
-
|
|
825
|
-
name: string,
|
|
826
|
-
|
|
827
|
-
alarmInfo: AlarmCreateInfo,
|
|
828
|
-
|
|
829
|
-
/**
|
|
830
|
-
* @since Chrome 111
|
|
831
|
-
*/
|
|
832
|
-
callback?: () => void,
|
|
833
|
-
): void;
|
|
834
|
-
|
|
835
|
-
/**
|
|
836
|
-
* Creates an alarm. Near the time(s) specified by `alarmInfo`, the `onAlarm` event is fired. If there is another alarm with the same name (or no name if none is specified), it will be cancelled and replaced by this alarm.
|
|
837
|
-
*
|
|
838
|
-
* In order to reduce the load on the user's machine, Chrome limits alarms to at most once every 30 seconds but may delay them an arbitrary amount more. That is, setting `delayInMinutes` or `periodInMinutes` to less than `0.5` will not be honored and will cause a warning. `when` can be set to less than 30 seconds after "now" without warning but won't actually cause the alarm to fire for at least 30 seconds.
|
|
839
|
-
*
|
|
840
|
-
* To help you debug your app or extension, when you've loaded it unpacked, there's no limit to how often the alarm can fire.
|
|
841
|
-
*
|
|
842
|
-
* @param alarmInfo Describes when the alarm should fire. The initial time must be specified by either `when` or `delayInMinutes` (but not both). If `periodInMinutes` is set, the alarm will repeat every `periodInMinutes` minutes after the initial event. If neither `when` or `delayInMinutes` is set for a repeating alarm, `periodInMinutes` is used as the default for `delayInMinutes`.
|
|
843
|
-
* @param callback Invoked when the alarm has been created.
|
|
844
|
-
*/
|
|
845
|
-
export function create(
|
|
846
|
-
|
|
847
|
-
alarmInfo: AlarmCreateInfo,
|
|
848
|
-
|
|
849
|
-
/**
|
|
850
|
-
* @since Chrome 111
|
|
851
|
-
*/
|
|
852
|
-
callback?: () => void,
|
|
853
|
-
): void;
|
|
854
|
-
|
|
855
|
-
/**
|
|
856
|
-
* Retrieves details about the specified alarm.
|
|
857
|
-
*
|
|
858
|
-
* @chrome-returns-extra since Chrome 91
|
|
859
|
-
* @param name The name of the alarm to get. Defaults to the empty string.
|
|
860
|
-
*/
|
|
861
|
-
export function get(
|
|
862
|
-
|
|
863
|
-
name?: string,
|
|
864
|
-
): Promise<Alarm | undefined>;
|
|
865
|
-
|
|
866
|
-
/**
|
|
867
|
-
* Retrieves details about the specified alarm.
|
|
868
|
-
*
|
|
869
|
-
* @param name The name of the alarm to get. Defaults to the empty string.
|
|
870
|
-
*/
|
|
871
|
-
export function get(
|
|
872
|
-
|
|
873
|
-
name?: string,
|
|
874
|
-
|
|
875
|
-
callback?: (
|
|
876
|
-
alarm?: Alarm,
|
|
877
|
-
) => void,
|
|
878
|
-
): void;
|
|
879
|
-
|
|
880
|
-
/**
|
|
881
|
-
* Gets an array of all the alarms.
|
|
882
|
-
*
|
|
883
|
-
* @chrome-returns-extra since Chrome 91
|
|
884
|
-
*/
|
|
885
|
-
export function getAll(): Promise<Alarm[]>;
|
|
886
|
-
|
|
887
|
-
/**
|
|
888
|
-
* Gets an array of all the alarms.
|
|
889
|
-
*/
|
|
890
|
-
export function getAll(
|
|
891
|
-
|
|
892
|
-
callback?: (
|
|
893
|
-
alarms: Alarm[],
|
|
894
|
-
) => void,
|
|
895
|
-
): void;
|
|
896
|
-
|
|
897
|
-
/**
|
|
898
|
-
* Clears the alarm with the given name.
|
|
899
|
-
*
|
|
900
|
-
* @chrome-returns-extra since Chrome 91
|
|
901
|
-
* @param name The name of the alarm to clear. Defaults to the empty string.
|
|
902
|
-
*/
|
|
903
|
-
export function clear(
|
|
904
|
-
|
|
905
|
-
name?: string,
|
|
906
|
-
): Promise<boolean>;
|
|
907
|
-
|
|
908
|
-
/**
|
|
909
|
-
* Clears the alarm with the given name.
|
|
910
|
-
*
|
|
911
|
-
* @param name The name of the alarm to clear. Defaults to the empty string.
|
|
912
|
-
*/
|
|
913
|
-
export function clear(
|
|
914
|
-
|
|
915
|
-
name?: string,
|
|
916
|
-
|
|
917
|
-
callback?: (
|
|
918
|
-
wasCleared: boolean,
|
|
919
|
-
) => void,
|
|
920
|
-
): void;
|
|
921
|
-
|
|
922
|
-
/**
|
|
923
|
-
* Clears all alarms.
|
|
924
|
-
*
|
|
925
|
-
* @chrome-returns-extra since Chrome 91
|
|
926
|
-
*/
|
|
927
|
-
export function clearAll(): Promise<boolean>;
|
|
928
|
-
|
|
929
|
-
/**
|
|
930
|
-
* Clears all alarms.
|
|
931
|
-
*/
|
|
932
|
-
export function clearAll(
|
|
933
|
-
|
|
934
|
-
callback?: (
|
|
935
|
-
wasCleared: boolean,
|
|
936
|
-
) => void,
|
|
937
|
-
): void;
|
|
938
|
-
}
|
|
939
|
-
|
|
940
729
|
/**
|
|
941
730
|
* @chrome-disallow-service-workers
|
|
942
731
|
* @chrome-max-manifest MV2
|
|
@@ -13480,7 +13269,7 @@ declare namespace chrome {
|
|
|
13480
13269
|
export type ImageFormat = "jpeg" | "png";
|
|
13481
13270
|
|
|
13482
13271
|
/**
|
|
13483
|
-
* Details about the format and
|
|
13272
|
+
* Details about the format, quality, and area of an image.
|
|
13484
13273
|
*/
|
|
13485
13274
|
export interface ImageDetails {
|
|
13486
13275
|
|
|
@@ -23832,6 +23621,7 @@ declare namespace chrome {
|
|
|
23832
23621
|
/**
|
|
23833
23622
|
* The types of the browser processes.
|
|
23834
23623
|
*
|
|
23624
|
+
* @chrome-enum "worker" Obsolete, will never be returned.
|
|
23835
23625
|
* @chrome-enum "service\_worker" Obsolete, will never be returned.
|
|
23836
23626
|
*/
|
|
23837
23627
|
export type ProcessType = "browser" | "renderer" | "extension" | "notification" | "plugin" | "worker" | "nacl" | "service_worker" | "utility" | "gpu" | "other";
|
|
@@ -24098,10 +23888,6 @@ declare namespace chrome {
|
|
|
24098
23888
|
* Use the `chrome.proxy` API to manage Chrome's proxy settings. This API relies on the [ChromeSetting prototype of the type API](https://developer.chrome.com/docs/extensions/reference/api/types#type-ChromeSetting) for getting and setting the proxy configuration.
|
|
24099
23889
|
*
|
|
24100
23890
|
* @chrome-permission proxy
|
|
24101
|
-
* @chrome-platform chromeos
|
|
24102
|
-
* @chrome-platform linux
|
|
24103
|
-
* @chrome-platform mac
|
|
24104
|
-
* @chrome-platform win
|
|
24105
23891
|
*/
|
|
24106
23892
|
export namespace proxy {
|
|
24107
23893
|
|
|
@@ -24611,10 +24397,9 @@ declare namespace chrome {
|
|
|
24611
24397
|
* @chrome-enum "x86-64" Specifies the native client architecture as x86-64.
|
|
24612
24398
|
* @chrome-enum "mips" Specifies the native client architecture as mips.
|
|
24613
24399
|
* @chrome-enum "mips64" Specifies the native client architecture as mips64.
|
|
24614
|
-
* @chrome-enum "riscv64" Specifies the native client architecture as riscv64.
|
|
24615
24400
|
* @since Chrome 44
|
|
24616
24401
|
*/
|
|
24617
|
-
export type PlatformNaclArch = "arm" | "x86-32" | "x86-64" | "mips" | "mips64"
|
|
24402
|
+
export type PlatformNaclArch = "arm" | "x86-32" | "x86-64" | "mips" | "mips64";
|
|
24618
24403
|
|
|
24619
24404
|
/**
|
|
24620
24405
|
* An object containing information about the current platform.
|
|
@@ -24634,7 +24419,7 @@ declare namespace chrome {
|
|
|
24634
24419
|
/**
|
|
24635
24420
|
* The native client architecture. This may be different from arch on some platforms.
|
|
24636
24421
|
*/
|
|
24637
|
-
nacl_arch
|
|
24422
|
+
nacl_arch?: PlatformNaclArch;
|
|
24638
24423
|
}
|
|
24639
24424
|
|
|
24640
24425
|
/**
|
|
@@ -28981,7 +28766,7 @@ declare namespace chrome {
|
|
|
28981
28766
|
): void;
|
|
28982
28767
|
|
|
28983
28768
|
/**
|
|
28984
|
-
* Sets the desired access level for the storage area. By default, `session` storage is restricted to trusted contexts (extension pages and service workers), while `local
|
|
28769
|
+
* Sets the desired access level for the storage area. By default, `session` storage is restricted to trusted contexts (extension pages and service workers), while `managed`, `local`, and `sync` storage allow access from both trusted and untrusted contexts.
|
|
28985
28770
|
*
|
|
28986
28771
|
* @since Chrome 102
|
|
28987
28772
|
*/
|
|
@@ -28997,7 +28782,7 @@ declare namespace chrome {
|
|
|
28997
28782
|
): Promise<void>;
|
|
28998
28783
|
|
|
28999
28784
|
/**
|
|
29000
|
-
* Sets the desired access level for the storage area. By default, `session` storage is restricted to trusted contexts (extension pages and service workers), while `local
|
|
28785
|
+
* Sets the desired access level for the storage area. By default, `session` storage is restricted to trusted contexts (extension pages and service workers), while `managed`, `local`, and `sync` storage allow access from both trusted and untrusted contexts.
|
|
29001
28786
|
*
|
|
29002
28787
|
* @param callback Callback on success, or on failure (in which case {@link runtime.lastError} will be set).
|
|
29003
28788
|
* @since Chrome 102
|
|
@@ -31156,6 +30941,13 @@ declare namespace chrome {
|
|
|
31156
30941
|
*/
|
|
31157
30942
|
groupId?: number,
|
|
31158
30943
|
|
|
30944
|
+
/**
|
|
30945
|
+
* The tab's new Split View.
|
|
30946
|
+
*
|
|
30947
|
+
* @since Pending
|
|
30948
|
+
*/
|
|
30949
|
+
splitViewId?: number,
|
|
30950
|
+
|
|
31159
30951
|
/**
|
|
31160
30952
|
* The tab's new pinned state.
|
|
31161
30953
|
*/
|
|
@@ -31831,6 +31623,13 @@ declare namespace chrome {
|
|
|
31831
31623
|
*/
|
|
31832
31624
|
groupId?: number,
|
|
31833
31625
|
|
|
31626
|
+
/**
|
|
31627
|
+
* The ID of the Split View that the tabs are in, or {@link tabs.SPLIT_TAB_ID_NONE} for tabs that aren't in a Split View.
|
|
31628
|
+
*
|
|
31629
|
+
* @since Pending
|
|
31630
|
+
*/
|
|
31631
|
+
splitViewId?: number,
|
|
31632
|
+
|
|
31834
31633
|
/**
|
|
31835
31634
|
* The ID of the parent window, or {@link windows.WINDOW_ID_CURRENT} for the [current window](https://developer.chrome.com/docs/extensions/reference/windows/#current-window).
|
|
31836
31635
|
*/
|
|
@@ -31937,6 +31736,13 @@ declare namespace chrome {
|
|
|
31937
31736
|
*/
|
|
31938
31737
|
groupId?: number,
|
|
31939
31738
|
|
|
31739
|
+
/**
|
|
31740
|
+
* The ID of the Split View that the tabs are in, or {@link tabs.SPLIT_TAB_ID_NONE} for tabs that aren't in a Split View.
|
|
31741
|
+
*
|
|
31742
|
+
* @since Pending
|
|
31743
|
+
*/
|
|
31744
|
+
splitViewId?: number,
|
|
31745
|
+
|
|
31940
31746
|
/**
|
|
31941
31747
|
* The ID of the parent window, or {@link windows.WINDOW_ID_CURRENT} for the [current window](https://developer.chrome.com/docs/extensions/reference/windows/#current-window).
|
|
31942
31748
|
*/
|
|
@@ -35543,9 +35349,10 @@ declare namespace chrome {
|
|
|
35543
35349
|
* @since Chrome 115
|
|
35544
35350
|
* @chrome-permission webAuthenticationProxy
|
|
35545
35351
|
* @chrome-min-manifest MV3
|
|
35546
|
-
* @chrome-platform
|
|
35352
|
+
* @chrome-platform desktop_android
|
|
35547
35353
|
* @chrome-platform linux
|
|
35548
35354
|
* @chrome-platform mac
|
|
35355
|
+
* @chrome-platform win
|
|
35549
35356
|
*/
|
|
35550
35357
|
export namespace webAuthenticationProxy {
|
|
35551
35358
|
|
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 23 2025 11:27:15 GMT+0000 (Coordinated Universal Time)
|
|
18
|
+
// Built at bff9ed74819850f5b08848fe5609d073c921d630
|
|
19
19
|
|
|
20
20
|
// Includes MV3+ APIs only.
|
|
21
21
|
|
|
@@ -784,217 +784,6 @@ declare namespace chrome {
|
|
|
784
784
|
): void;
|
|
785
785
|
}
|
|
786
786
|
|
|
787
|
-
/**
|
|
788
|
-
* Use the `chrome.alarms` API to schedule code to run periodically or at a specified time in the future.
|
|
789
|
-
*
|
|
790
|
-
* @chrome-permission alarms
|
|
791
|
-
*/
|
|
792
|
-
export namespace alarms {
|
|
793
|
-
|
|
794
|
-
export interface Alarm {
|
|
795
|
-
|
|
796
|
-
/**
|
|
797
|
-
* Name of this alarm.
|
|
798
|
-
*/
|
|
799
|
-
name: string;
|
|
800
|
-
|
|
801
|
-
/**
|
|
802
|
-
* Time at which this alarm was scheduled to fire, in milliseconds past the epoch (e.g. `Date.now() + n`). For performance reasons, the alarm may have been delayed an arbitrary amount beyond this.
|
|
803
|
-
*/
|
|
804
|
-
scheduledTime: number;
|
|
805
|
-
|
|
806
|
-
/**
|
|
807
|
-
* If not null, the alarm is a repeating alarm and will fire again in `periodInMinutes` minutes.
|
|
808
|
-
*/
|
|
809
|
-
periodInMinutes?: number;
|
|
810
|
-
}
|
|
811
|
-
|
|
812
|
-
export interface AlarmCreateInfo {
|
|
813
|
-
|
|
814
|
-
/**
|
|
815
|
-
* Time at which the alarm should fire, in milliseconds past the epoch (e.g. `Date.now() + n`).
|
|
816
|
-
*/
|
|
817
|
-
when?: number;
|
|
818
|
-
|
|
819
|
-
/**
|
|
820
|
-
* Length of time in minutes after which the `onAlarm` event should fire.
|
|
821
|
-
*/
|
|
822
|
-
delayInMinutes?: number;
|
|
823
|
-
|
|
824
|
-
/**
|
|
825
|
-
* If set, the onAlarm event should fire every `periodInMinutes` minutes after the initial event specified by `when` or `delayInMinutes`. If not set, the alarm will only fire once.
|
|
826
|
-
*/
|
|
827
|
-
periodInMinutes?: number;
|
|
828
|
-
}
|
|
829
|
-
|
|
830
|
-
/**
|
|
831
|
-
* Fired when an alarm has elapsed. Useful for event pages.
|
|
832
|
-
*/
|
|
833
|
-
export const onAlarm: events.Event<(
|
|
834
|
-
alarm: Alarm,
|
|
835
|
-
) => void>;
|
|
836
|
-
|
|
837
|
-
/**
|
|
838
|
-
* Creates an alarm. Near the time(s) specified by `alarmInfo`, the `onAlarm` event is fired. If there is another alarm with the same name (or no name if none is specified), it will be cancelled and replaced by this alarm.
|
|
839
|
-
*
|
|
840
|
-
* In order to reduce the load on the user's machine, Chrome limits alarms to at most once every 30 seconds but may delay them an arbitrary amount more. That is, setting `delayInMinutes` or `periodInMinutes` to less than `0.5` will not be honored and will cause a warning. `when` can be set to less than 30 seconds after "now" without warning but won't actually cause the alarm to fire for at least 30 seconds.
|
|
841
|
-
*
|
|
842
|
-
* To help you debug your app or extension, when you've loaded it unpacked, there's no limit to how often the alarm can fire.
|
|
843
|
-
*
|
|
844
|
-
* @chrome-returns-extra since Chrome 111
|
|
845
|
-
* @param name Optional name to identify this alarm. Defaults to the empty string.
|
|
846
|
-
* @param alarmInfo Describes when the alarm should fire. The initial time must be specified by either `when` or `delayInMinutes` (but not both). If `periodInMinutes` is set, the alarm will repeat every `periodInMinutes` minutes after the initial event. If neither `when` or `delayInMinutes` is set for a repeating alarm, `periodInMinutes` is used as the default for `delayInMinutes`.
|
|
847
|
-
*/
|
|
848
|
-
export function create(
|
|
849
|
-
|
|
850
|
-
name: string,
|
|
851
|
-
|
|
852
|
-
alarmInfo: AlarmCreateInfo,
|
|
853
|
-
): Promise<void>;
|
|
854
|
-
|
|
855
|
-
/**
|
|
856
|
-
* Creates an alarm. Near the time(s) specified by `alarmInfo`, the `onAlarm` event is fired. If there is another alarm with the same name (or no name if none is specified), it will be cancelled and replaced by this alarm.
|
|
857
|
-
*
|
|
858
|
-
* In order to reduce the load on the user's machine, Chrome limits alarms to at most once every 30 seconds but may delay them an arbitrary amount more. That is, setting `delayInMinutes` or `periodInMinutes` to less than `0.5` will not be honored and will cause a warning. `when` can be set to less than 30 seconds after "now" without warning but won't actually cause the alarm to fire for at least 30 seconds.
|
|
859
|
-
*
|
|
860
|
-
* To help you debug your app or extension, when you've loaded it unpacked, there's no limit to how often the alarm can fire.
|
|
861
|
-
*
|
|
862
|
-
* @chrome-returns-extra since Chrome 111
|
|
863
|
-
* @param alarmInfo Describes when the alarm should fire. The initial time must be specified by either `when` or `delayInMinutes` (but not both). If `periodInMinutes` is set, the alarm will repeat every `periodInMinutes` minutes after the initial event. If neither `when` or `delayInMinutes` is set for a repeating alarm, `periodInMinutes` is used as the default for `delayInMinutes`.
|
|
864
|
-
*/
|
|
865
|
-
export function create(
|
|
866
|
-
|
|
867
|
-
alarmInfo: AlarmCreateInfo,
|
|
868
|
-
): Promise<void>;
|
|
869
|
-
|
|
870
|
-
/**
|
|
871
|
-
* Creates an alarm. Near the time(s) specified by `alarmInfo`, the `onAlarm` event is fired. If there is another alarm with the same name (or no name if none is specified), it will be cancelled and replaced by this alarm.
|
|
872
|
-
*
|
|
873
|
-
* In order to reduce the load on the user's machine, Chrome limits alarms to at most once every 30 seconds but may delay them an arbitrary amount more. That is, setting `delayInMinutes` or `periodInMinutes` to less than `0.5` will not be honored and will cause a warning. `when` can be set to less than 30 seconds after "now" without warning but won't actually cause the alarm to fire for at least 30 seconds.
|
|
874
|
-
*
|
|
875
|
-
* To help you debug your app or extension, when you've loaded it unpacked, there's no limit to how often the alarm can fire.
|
|
876
|
-
*
|
|
877
|
-
* @param name Optional name to identify this alarm. Defaults to the empty string.
|
|
878
|
-
* @param alarmInfo Describes when the alarm should fire. The initial time must be specified by either `when` or `delayInMinutes` (but not both). If `periodInMinutes` is set, the alarm will repeat every `periodInMinutes` minutes after the initial event. If neither `when` or `delayInMinutes` is set for a repeating alarm, `periodInMinutes` is used as the default for `delayInMinutes`.
|
|
879
|
-
* @param callback Invoked when the alarm has been created.
|
|
880
|
-
*/
|
|
881
|
-
export function create(
|
|
882
|
-
|
|
883
|
-
name: string,
|
|
884
|
-
|
|
885
|
-
alarmInfo: AlarmCreateInfo,
|
|
886
|
-
|
|
887
|
-
/**
|
|
888
|
-
* @since Chrome 111
|
|
889
|
-
*/
|
|
890
|
-
callback?: () => void,
|
|
891
|
-
): void;
|
|
892
|
-
|
|
893
|
-
/**
|
|
894
|
-
* Creates an alarm. Near the time(s) specified by `alarmInfo`, the `onAlarm` event is fired. If there is another alarm with the same name (or no name if none is specified), it will be cancelled and replaced by this alarm.
|
|
895
|
-
*
|
|
896
|
-
* In order to reduce the load on the user's machine, Chrome limits alarms to at most once every 30 seconds but may delay them an arbitrary amount more. That is, setting `delayInMinutes` or `periodInMinutes` to less than `0.5` will not be honored and will cause a warning. `when` can be set to less than 30 seconds after "now" without warning but won't actually cause the alarm to fire for at least 30 seconds.
|
|
897
|
-
*
|
|
898
|
-
* To help you debug your app or extension, when you've loaded it unpacked, there's no limit to how often the alarm can fire.
|
|
899
|
-
*
|
|
900
|
-
* @param alarmInfo Describes when the alarm should fire. The initial time must be specified by either `when` or `delayInMinutes` (but not both). If `periodInMinutes` is set, the alarm will repeat every `periodInMinutes` minutes after the initial event. If neither `when` or `delayInMinutes` is set for a repeating alarm, `periodInMinutes` is used as the default for `delayInMinutes`.
|
|
901
|
-
* @param callback Invoked when the alarm has been created.
|
|
902
|
-
*/
|
|
903
|
-
export function create(
|
|
904
|
-
|
|
905
|
-
alarmInfo: AlarmCreateInfo,
|
|
906
|
-
|
|
907
|
-
/**
|
|
908
|
-
* @since Chrome 111
|
|
909
|
-
*/
|
|
910
|
-
callback?: () => void,
|
|
911
|
-
): void;
|
|
912
|
-
|
|
913
|
-
/**
|
|
914
|
-
* Retrieves details about the specified alarm.
|
|
915
|
-
*
|
|
916
|
-
* @chrome-returns-extra since Chrome 91
|
|
917
|
-
* @param name The name of the alarm to get. Defaults to the empty string.
|
|
918
|
-
*/
|
|
919
|
-
export function get(
|
|
920
|
-
|
|
921
|
-
name?: string,
|
|
922
|
-
): Promise<Alarm | undefined>;
|
|
923
|
-
|
|
924
|
-
/**
|
|
925
|
-
* Retrieves details about the specified alarm.
|
|
926
|
-
*
|
|
927
|
-
* @param name The name of the alarm to get. Defaults to the empty string.
|
|
928
|
-
*/
|
|
929
|
-
export function get(
|
|
930
|
-
|
|
931
|
-
name?: string,
|
|
932
|
-
|
|
933
|
-
callback?: (
|
|
934
|
-
alarm?: Alarm,
|
|
935
|
-
) => void,
|
|
936
|
-
): void;
|
|
937
|
-
|
|
938
|
-
/**
|
|
939
|
-
* Gets an array of all the alarms.
|
|
940
|
-
*
|
|
941
|
-
* @chrome-returns-extra since Chrome 91
|
|
942
|
-
*/
|
|
943
|
-
export function getAll(): Promise<Alarm[]>;
|
|
944
|
-
|
|
945
|
-
/**
|
|
946
|
-
* Gets an array of all the alarms.
|
|
947
|
-
*/
|
|
948
|
-
export function getAll(
|
|
949
|
-
|
|
950
|
-
callback?: (
|
|
951
|
-
alarms: Alarm[],
|
|
952
|
-
) => void,
|
|
953
|
-
): void;
|
|
954
|
-
|
|
955
|
-
/**
|
|
956
|
-
* Clears the alarm with the given name.
|
|
957
|
-
*
|
|
958
|
-
* @chrome-returns-extra since Chrome 91
|
|
959
|
-
* @param name The name of the alarm to clear. Defaults to the empty string.
|
|
960
|
-
*/
|
|
961
|
-
export function clear(
|
|
962
|
-
|
|
963
|
-
name?: string,
|
|
964
|
-
): Promise<boolean>;
|
|
965
|
-
|
|
966
|
-
/**
|
|
967
|
-
* Clears the alarm with the given name.
|
|
968
|
-
*
|
|
969
|
-
* @param name The name of the alarm to clear. Defaults to the empty string.
|
|
970
|
-
*/
|
|
971
|
-
export function clear(
|
|
972
|
-
|
|
973
|
-
name?: string,
|
|
974
|
-
|
|
975
|
-
callback?: (
|
|
976
|
-
wasCleared: boolean,
|
|
977
|
-
) => void,
|
|
978
|
-
): void;
|
|
979
|
-
|
|
980
|
-
/**
|
|
981
|
-
* Clears all alarms.
|
|
982
|
-
*
|
|
983
|
-
* @chrome-returns-extra since Chrome 91
|
|
984
|
-
*/
|
|
985
|
-
export function clearAll(): Promise<boolean>;
|
|
986
|
-
|
|
987
|
-
/**
|
|
988
|
-
* Clears all alarms.
|
|
989
|
-
*/
|
|
990
|
-
export function clearAll(
|
|
991
|
-
|
|
992
|
-
callback?: (
|
|
993
|
-
wasCleared: boolean,
|
|
994
|
-
) => void,
|
|
995
|
-
): void;
|
|
996
|
-
}
|
|
997
|
-
|
|
998
787
|
/**
|
|
999
788
|
* The `chrome.audio` API is provided to allow users to get information about and control the audio devices attached to the system. This API is currently only available in kiosk mode for ChromeOS.
|
|
1000
789
|
*
|
|
@@ -9478,7 +9267,7 @@ declare namespace chrome {
|
|
|
9478
9267
|
export type ImageFormat = "jpeg" | "png";
|
|
9479
9268
|
|
|
9480
9269
|
/**
|
|
9481
|
-
* Details about the format and
|
|
9270
|
+
* Details about the format, quality, and area of an image.
|
|
9482
9271
|
*/
|
|
9483
9272
|
export interface ImageDetails {
|
|
9484
9273
|
|
|
@@ -14713,10 +14502,6 @@ declare namespace chrome {
|
|
|
14713
14502
|
* @alpha
|
|
14714
14503
|
* @chrome-permission mdns
|
|
14715
14504
|
* @chrome-channel dev
|
|
14716
|
-
* @chrome-platform chromeos
|
|
14717
|
-
* @chrome-platform linux
|
|
14718
|
-
* @chrome-platform mac
|
|
14719
|
-
* @chrome-platform win
|
|
14720
14505
|
*/
|
|
14721
14506
|
export namespace mdns {
|
|
14722
14507
|
|
|
@@ -18581,6 +18366,7 @@ declare namespace chrome {
|
|
|
18581
18366
|
/**
|
|
18582
18367
|
* The types of the browser processes.
|
|
18583
18368
|
*
|
|
18369
|
+
* @chrome-enum "worker" Obsolete, will never be returned.
|
|
18584
18370
|
* @chrome-enum "service\_worker" Obsolete, will never be returned.
|
|
18585
18371
|
*/
|
|
18586
18372
|
export type ProcessType = "browser" | "renderer" | "extension" | "notification" | "plugin" | "worker" | "nacl" | "service_worker" | "utility" | "gpu" | "other";
|
|
@@ -18847,10 +18633,6 @@ declare namespace chrome {
|
|
|
18847
18633
|
* Use the `chrome.proxy` API to manage Chrome's proxy settings. This API relies on the [ChromeSetting prototype of the type API](https://developer.chrome.com/docs/extensions/reference/api/types#type-ChromeSetting) for getting and setting the proxy configuration.
|
|
18848
18634
|
*
|
|
18849
18635
|
* @chrome-permission proxy
|
|
18850
|
-
* @chrome-platform chromeos
|
|
18851
|
-
* @chrome-platform linux
|
|
18852
|
-
* @chrome-platform mac
|
|
18853
|
-
* @chrome-platform win
|
|
18854
18636
|
*/
|
|
18855
18637
|
export namespace proxy {
|
|
18856
18638
|
|
|
@@ -19360,10 +19142,9 @@ declare namespace chrome {
|
|
|
19360
19142
|
* @chrome-enum "x86-64" Specifies the native client architecture as x86-64.
|
|
19361
19143
|
* @chrome-enum "mips" Specifies the native client architecture as mips.
|
|
19362
19144
|
* @chrome-enum "mips64" Specifies the native client architecture as mips64.
|
|
19363
|
-
* @chrome-enum "riscv64" Specifies the native client architecture as riscv64.
|
|
19364
19145
|
* @since Chrome 44
|
|
19365
19146
|
*/
|
|
19366
|
-
export type PlatformNaclArch = "arm" | "x86-32" | "x86-64" | "mips" | "mips64"
|
|
19147
|
+
export type PlatformNaclArch = "arm" | "x86-32" | "x86-64" | "mips" | "mips64";
|
|
19367
19148
|
|
|
19368
19149
|
/**
|
|
19369
19150
|
* An object containing information about the current platform.
|
|
@@ -19383,7 +19164,7 @@ declare namespace chrome {
|
|
|
19383
19164
|
/**
|
|
19384
19165
|
* The native client architecture. This may be different from arch on some platforms.
|
|
19385
19166
|
*/
|
|
19386
|
-
nacl_arch
|
|
19167
|
+
nacl_arch?: PlatformNaclArch;
|
|
19387
19168
|
}
|
|
19388
19169
|
|
|
19389
19170
|
/**
|
|
@@ -22432,7 +22213,7 @@ declare namespace chrome {
|
|
|
22432
22213
|
): void;
|
|
22433
22214
|
|
|
22434
22215
|
/**
|
|
22435
|
-
* Sets the desired access level for the storage area. By default, `session` storage is restricted to trusted contexts (extension pages and service workers), while `local
|
|
22216
|
+
* Sets the desired access level for the storage area. By default, `session` storage is restricted to trusted contexts (extension pages and service workers), while `managed`, `local`, and `sync` storage allow access from both trusted and untrusted contexts.
|
|
22436
22217
|
*
|
|
22437
22218
|
* @since Chrome 102
|
|
22438
22219
|
*/
|
|
@@ -22448,7 +22229,7 @@ declare namespace chrome {
|
|
|
22448
22229
|
): Promise<void>;
|
|
22449
22230
|
|
|
22450
22231
|
/**
|
|
22451
|
-
* Sets the desired access level for the storage area. By default, `session` storage is restricted to trusted contexts (extension pages and service workers), while `local
|
|
22232
|
+
* Sets the desired access level for the storage area. By default, `session` storage is restricted to trusted contexts (extension pages and service workers), while `managed`, `local`, and `sync` storage allow access from both trusted and untrusted contexts.
|
|
22452
22233
|
*
|
|
22453
22234
|
* @param callback Callback on success, or on failure (in which case {@link runtime.lastError} will be set).
|
|
22454
22235
|
* @since Chrome 102
|
|
@@ -24347,6 +24128,13 @@ declare namespace chrome {
|
|
|
24347
24128
|
*/
|
|
24348
24129
|
groupId?: number,
|
|
24349
24130
|
|
|
24131
|
+
/**
|
|
24132
|
+
* The tab's new Split View.
|
|
24133
|
+
*
|
|
24134
|
+
* @since Pending
|
|
24135
|
+
*/
|
|
24136
|
+
splitViewId?: number,
|
|
24137
|
+
|
|
24350
24138
|
/**
|
|
24351
24139
|
* The tab's new pinned state.
|
|
24352
24140
|
*/
|
|
@@ -24874,6 +24662,13 @@ declare namespace chrome {
|
|
|
24874
24662
|
*/
|
|
24875
24663
|
groupId?: number,
|
|
24876
24664
|
|
|
24665
|
+
/**
|
|
24666
|
+
* The ID of the Split View that the tabs are in, or {@link tabs.SPLIT_TAB_ID_NONE} for tabs that aren't in a Split View.
|
|
24667
|
+
*
|
|
24668
|
+
* @since Pending
|
|
24669
|
+
*/
|
|
24670
|
+
splitViewId?: number,
|
|
24671
|
+
|
|
24877
24672
|
/**
|
|
24878
24673
|
* The ID of the parent window, or {@link windows.WINDOW_ID_CURRENT} for the [current window](https://developer.chrome.com/docs/extensions/reference/windows/#current-window).
|
|
24879
24674
|
*/
|
|
@@ -24980,6 +24775,13 @@ declare namespace chrome {
|
|
|
24980
24775
|
*/
|
|
24981
24776
|
groupId?: number,
|
|
24982
24777
|
|
|
24778
|
+
/**
|
|
24779
|
+
* The ID of the Split View that the tabs are in, or {@link tabs.SPLIT_TAB_ID_NONE} for tabs that aren't in a Split View.
|
|
24780
|
+
*
|
|
24781
|
+
* @since Pending
|
|
24782
|
+
*/
|
|
24783
|
+
splitViewId?: number,
|
|
24784
|
+
|
|
24983
24785
|
/**
|
|
24984
24786
|
* The ID of the parent window, or {@link windows.WINDOW_ID_CURRENT} for the [current window](https://developer.chrome.com/docs/extensions/reference/windows/#current-window).
|
|
24985
24787
|
*/
|
|
@@ -28334,9 +28136,10 @@ declare namespace chrome {
|
|
|
28334
28136
|
* @since Chrome 115
|
|
28335
28137
|
* @chrome-permission webAuthenticationProxy
|
|
28336
28138
|
* @chrome-min-manifest MV3
|
|
28337
|
-
* @chrome-platform
|
|
28139
|
+
* @chrome-platform desktop_android
|
|
28338
28140
|
* @chrome-platform linux
|
|
28339
28141
|
* @chrome-platform mac
|
|
28142
|
+
* @chrome-platform win
|
|
28340
28143
|
*/
|
|
28341
28144
|
export namespace webAuthenticationProxy {
|
|
28342
28145
|
|
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": "7f371dd1a9f493e8"
|
|
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.362"
|
|
20
20
|
}
|