chrome-types 0.1.360 → 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 +32 -223
- package/index.d.ts +32 -227
- 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
|
|
|
@@ -24598,9 +24384,10 @@ declare namespace chrome {
|
|
|
24598
24384
|
* @chrome-enum "x86-64" Specifies the processer architecture as x86-64.
|
|
24599
24385
|
* @chrome-enum "mips" Specifies the processer architecture as mips.
|
|
24600
24386
|
* @chrome-enum "mips64" Specifies the processer architecture as mips64.
|
|
24387
|
+
* @chrome-enum "riscv64" Specifies the processer architecture as riscv64.
|
|
24601
24388
|
* @since Chrome 44
|
|
24602
24389
|
*/
|
|
24603
|
-
export type PlatformArch = "arm" | "arm64" | "x86-32" | "x86-64" | "mips" | "mips64";
|
|
24390
|
+
export type PlatformArch = "arm" | "arm64" | "x86-32" | "x86-64" | "mips" | "mips64" | "riscv64";
|
|
24604
24391
|
|
|
24605
24392
|
/**
|
|
24606
24393
|
* The native client architecture. This may be different from arch on some platforms.
|
|
@@ -24632,7 +24419,7 @@ declare namespace chrome {
|
|
|
24632
24419
|
/**
|
|
24633
24420
|
* The native client architecture. This may be different from arch on some platforms.
|
|
24634
24421
|
*/
|
|
24635
|
-
nacl_arch
|
|
24422
|
+
nacl_arch?: PlatformNaclArch;
|
|
24636
24423
|
}
|
|
24637
24424
|
|
|
24638
24425
|
/**
|
|
@@ -28979,7 +28766,7 @@ declare namespace chrome {
|
|
|
28979
28766
|
): void;
|
|
28980
28767
|
|
|
28981
28768
|
/**
|
|
28982
|
-
* 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.
|
|
28983
28770
|
*
|
|
28984
28771
|
* @since Chrome 102
|
|
28985
28772
|
*/
|
|
@@ -28995,7 +28782,7 @@ declare namespace chrome {
|
|
|
28995
28782
|
): Promise<void>;
|
|
28996
28783
|
|
|
28997
28784
|
/**
|
|
28998
|
-
* 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.
|
|
28999
28786
|
*
|
|
29000
28787
|
* @param callback Callback on success, or on failure (in which case {@link runtime.lastError} will be set).
|
|
29001
28788
|
* @since Chrome 102
|
|
@@ -31154,6 +30941,13 @@ declare namespace chrome {
|
|
|
31154
30941
|
*/
|
|
31155
30942
|
groupId?: number,
|
|
31156
30943
|
|
|
30944
|
+
/**
|
|
30945
|
+
* The tab's new Split View.
|
|
30946
|
+
*
|
|
30947
|
+
* @since Pending
|
|
30948
|
+
*/
|
|
30949
|
+
splitViewId?: number,
|
|
30950
|
+
|
|
31157
30951
|
/**
|
|
31158
30952
|
* The tab's new pinned state.
|
|
31159
30953
|
*/
|
|
@@ -31829,6 +31623,13 @@ declare namespace chrome {
|
|
|
31829
31623
|
*/
|
|
31830
31624
|
groupId?: number,
|
|
31831
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
|
+
|
|
31832
31633
|
/**
|
|
31833
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).
|
|
31834
31635
|
*/
|
|
@@ -31935,6 +31736,13 @@ declare namespace chrome {
|
|
|
31935
31736
|
*/
|
|
31936
31737
|
groupId?: number,
|
|
31937
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
|
+
|
|
31938
31746
|
/**
|
|
31939
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).
|
|
31940
31748
|
*/
|
|
@@ -35541,9 +35349,10 @@ declare namespace chrome {
|
|
|
35541
35349
|
* @since Chrome 115
|
|
35542
35350
|
* @chrome-permission webAuthenticationProxy
|
|
35543
35351
|
* @chrome-min-manifest MV3
|
|
35544
|
-
* @chrome-platform
|
|
35352
|
+
* @chrome-platform desktop_android
|
|
35545
35353
|
* @chrome-platform linux
|
|
35546
35354
|
* @chrome-platform mac
|
|
35355
|
+
* @chrome-platform win
|
|
35547
35356
|
*/
|
|
35548
35357
|
export namespace webAuthenticationProxy {
|
|
35549
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
|
|
|
@@ -19347,9 +19129,10 @@ declare namespace chrome {
|
|
|
19347
19129
|
* @chrome-enum "x86-64" Specifies the processer architecture as x86-64.
|
|
19348
19130
|
* @chrome-enum "mips" Specifies the processer architecture as mips.
|
|
19349
19131
|
* @chrome-enum "mips64" Specifies the processer architecture as mips64.
|
|
19132
|
+
* @chrome-enum "riscv64" Specifies the processer architecture as riscv64.
|
|
19350
19133
|
* @since Chrome 44
|
|
19351
19134
|
*/
|
|
19352
|
-
export type PlatformArch = "arm" | "arm64" | "x86-32" | "x86-64" | "mips" | "mips64";
|
|
19135
|
+
export type PlatformArch = "arm" | "arm64" | "x86-32" | "x86-64" | "mips" | "mips64" | "riscv64";
|
|
19353
19136
|
|
|
19354
19137
|
/**
|
|
19355
19138
|
* The native client architecture. This may be different from arch on some platforms.
|
|
@@ -19381,7 +19164,7 @@ declare namespace chrome {
|
|
|
19381
19164
|
/**
|
|
19382
19165
|
* The native client architecture. This may be different from arch on some platforms.
|
|
19383
19166
|
*/
|
|
19384
|
-
nacl_arch
|
|
19167
|
+
nacl_arch?: PlatformNaclArch;
|
|
19385
19168
|
}
|
|
19386
19169
|
|
|
19387
19170
|
/**
|
|
@@ -22430,7 +22213,7 @@ declare namespace chrome {
|
|
|
22430
22213
|
): void;
|
|
22431
22214
|
|
|
22432
22215
|
/**
|
|
22433
|
-
* 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.
|
|
22434
22217
|
*
|
|
22435
22218
|
* @since Chrome 102
|
|
22436
22219
|
*/
|
|
@@ -22446,7 +22229,7 @@ declare namespace chrome {
|
|
|
22446
22229
|
): Promise<void>;
|
|
22447
22230
|
|
|
22448
22231
|
/**
|
|
22449
|
-
* 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.
|
|
22450
22233
|
*
|
|
22451
22234
|
* @param callback Callback on success, or on failure (in which case {@link runtime.lastError} will be set).
|
|
22452
22235
|
* @since Chrome 102
|
|
@@ -24345,6 +24128,13 @@ declare namespace chrome {
|
|
|
24345
24128
|
*/
|
|
24346
24129
|
groupId?: number,
|
|
24347
24130
|
|
|
24131
|
+
/**
|
|
24132
|
+
* The tab's new Split View.
|
|
24133
|
+
*
|
|
24134
|
+
* @since Pending
|
|
24135
|
+
*/
|
|
24136
|
+
splitViewId?: number,
|
|
24137
|
+
|
|
24348
24138
|
/**
|
|
24349
24139
|
* The tab's new pinned state.
|
|
24350
24140
|
*/
|
|
@@ -24872,6 +24662,13 @@ declare namespace chrome {
|
|
|
24872
24662
|
*/
|
|
24873
24663
|
groupId?: number,
|
|
24874
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
|
+
|
|
24875
24672
|
/**
|
|
24876
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).
|
|
24877
24674
|
*/
|
|
@@ -24978,6 +24775,13 @@ declare namespace chrome {
|
|
|
24978
24775
|
*/
|
|
24979
24776
|
groupId?: number,
|
|
24980
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
|
+
|
|
24981
24785
|
/**
|
|
24982
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).
|
|
24983
24787
|
*/
|
|
@@ -28332,9 +28136,10 @@ declare namespace chrome {
|
|
|
28332
28136
|
* @since Chrome 115
|
|
28333
28137
|
* @chrome-permission webAuthenticationProxy
|
|
28334
28138
|
* @chrome-min-manifest MV3
|
|
28335
|
-
* @chrome-platform
|
|
28139
|
+
* @chrome-platform desktop_android
|
|
28336
28140
|
* @chrome-platform linux
|
|
28337
28141
|
* @chrome-platform mac
|
|
28142
|
+
* @chrome-platform win
|
|
28338
28143
|
*/
|
|
28339
28144
|
export namespace webAuthenticationProxy {
|
|
28340
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
|
}
|