chrome-types 0.1.176 → 0.1.178

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.
Files changed (3) hide show
  1. package/_all.d.ts +60 -47
  2. package/index.d.ts +59 -46
  3. 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 Fri Mar 03 2023 22:29:42 GMT+0000 (Coordinated Universal Time)
18
- // Built at 939564227c747ae6dc4a9e09fd31747150e96841
17
+ // Generated on Tue Mar 07 2023 22:29:45 GMT+0000 (Coordinated Universal Time)
18
+ // Built at 05f8fe382dcc45f96756d092b24690e56006c82a
19
19
 
20
20
  // Includes all types, including MV2 + Platform Apps APIs.
21
21
 
@@ -633,7 +633,7 @@ declare namespace chrome {
633
633
  * Indicates whether the extension action is enabled for a tab (or globally if no `tabId` is provided). Actions enabled using only {@link declarativeContent} always return false.
634
634
  *
635
635
  * @param tabId The id of the tab for which you want check enabled status.
636
- * @since Chrome 108
636
+ * @since Chrome 110
637
637
  */
638
638
  export function isEnabled(
639
639
 
@@ -644,7 +644,7 @@ declare namespace chrome {
644
644
  * Indicates whether the extension action is enabled for a tab (or globally if no `tabId` is provided). Actions enabled using only {@link declarativeContent} always return false.
645
645
  *
646
646
  * @param tabId The id of the tab for which you want check enabled status.
647
- * @since Chrome 108
647
+ * @since Chrome 110
648
648
  */
649
649
  export function isEnabled(
650
650
 
@@ -681,7 +681,8 @@ declare namespace chrome {
681
681
  * Opens the extension's popup.
682
682
  *
683
683
  * @param options Specifies options for opening the popup.
684
- * @since Chrome 99
684
+ * @alpha
685
+ * @chrome-channel dev
685
686
  */
686
687
  export function openPopup(
687
688
 
@@ -692,7 +693,8 @@ declare namespace chrome {
692
693
  * Opens the extension's popup.
693
694
  *
694
695
  * @param options Specifies options for opening the popup.
695
- * @since Chrome 99
696
+ * @alpha
697
+ * @chrome-channel dev
696
698
  */
697
699
  export function openPopup(
698
700
 
@@ -759,7 +761,7 @@ declare namespace chrome {
759
761
  *
760
762
  * 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.
761
763
  *
762
- * @chrome-returns-extra since Pending
764
+ * @chrome-returns-extra since Chrome 111
763
765
  * @param name Optional name to identify this alarm. Defaults to the empty string.
764
766
  * @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`.
765
767
  */
@@ -777,7 +779,7 @@ declare namespace chrome {
777
779
  *
778
780
  * 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.
779
781
  *
780
- * @chrome-returns-extra since Pending
782
+ * @chrome-returns-extra since Chrome 111
781
783
  * @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`.
782
784
  */
783
785
  export function create(
@@ -803,7 +805,7 @@ declare namespace chrome {
803
805
  alarmInfo: AlarmCreateInfo,
804
806
 
805
807
  /**
806
- * @since Pending
808
+ * @since Chrome 111
807
809
  */
808
810
  callback?: () => void,
809
811
  ): void;
@@ -823,7 +825,7 @@ declare namespace chrome {
823
825
  alarmInfo: AlarmCreateInfo,
824
826
 
825
827
  /**
826
- * @since Pending
828
+ * @since Chrome 111
827
829
  */
828
830
  callback?: () => void,
829
831
  ): void;
@@ -7338,7 +7340,7 @@ declare namespace chrome {
7338
7340
  /**
7339
7341
  * Fired when clipboard data changes. Requires clipboard and clipboardRead permissions for adding listener to chrome.clipboard.onClipboardDataChanged event. After this event fires, the clipboard data is available by calling document.execCommand('paste').
7340
7342
  *
7341
- * @since Chrome 54
7343
+ * @since Chrome 56
7342
7344
  * @chrome-permission clipboardRead
7343
7345
  */
7344
7346
  export const onClipboardDataChanged: events.Event<() => void>;
@@ -9433,7 +9435,7 @@ declare namespace chrome {
9433
9435
  }
9434
9436
 
9435
9437
  /**
9436
- * @since Pending
9438
+ * @since Chrome 111
9437
9439
  */
9438
9440
  export interface GetRulesFilter {
9439
9441
 
@@ -9669,7 +9671,7 @@ declare namespace chrome {
9669
9671
  }
9670
9672
 
9671
9673
  /**
9672
- * @since Pending
9674
+ * @since Chrome 111
9673
9675
  */
9674
9676
  export interface UpdateStaticRulesOptions {
9675
9677
 
@@ -9690,7 +9692,7 @@ declare namespace chrome {
9690
9692
  }
9691
9693
 
9692
9694
  /**
9693
- * @since Pending
9695
+ * @since Chrome 111
9694
9696
  */
9695
9697
  export interface GetDisabledRuleIdsOptions {
9696
9698
 
@@ -9846,7 +9848,7 @@ declare namespace chrome {
9846
9848
  export function getDynamicRules(
9847
9849
 
9848
9850
  /**
9849
- * @since Pending
9851
+ * @since Chrome 111
9850
9852
  */
9851
9853
  filter?: GetRulesFilter,
9852
9854
  ): Promise<Rule[]>;
@@ -9860,7 +9862,7 @@ declare namespace chrome {
9860
9862
  export function getDynamicRules(
9861
9863
 
9862
9864
  /**
9863
- * @since Pending
9865
+ * @since Chrome 111
9864
9866
  */
9865
9867
  filter?: GetRulesFilter,
9866
9868
 
@@ -9911,7 +9913,7 @@ declare namespace chrome {
9911
9913
  export function getSessionRules(
9912
9914
 
9913
9915
  /**
9914
- * @since Pending
9916
+ * @since Chrome 111
9915
9917
  */
9916
9918
  filter?: GetRulesFilter,
9917
9919
  ): Promise<Rule[]>;
@@ -9926,7 +9928,7 @@ declare namespace chrome {
9926
9928
  export function getSessionRules(
9927
9929
 
9928
9930
  /**
9929
- * @since Pending
9931
+ * @since Chrome 111
9930
9932
  */
9931
9933
  filter?: GetRulesFilter,
9932
9934
 
@@ -16719,7 +16721,8 @@ declare namespace chrome {
16719
16721
  *
16720
16722
  * `getAccounts` is only supported on dev channel.
16721
16723
  *
16722
- * @chrome-returns-extra since Chrome 106
16724
+ * @alpha
16725
+ * @chrome-channel dev
16723
16726
  */
16724
16727
  export function getAccounts(): Promise<AccountInfo[]>;
16725
16728
 
@@ -16727,6 +16730,9 @@ declare namespace chrome {
16727
16730
  * Retrieves a list of AccountInfo objects describing the accounts present on the profile.
16728
16731
  *
16729
16732
  * `getAccounts` is only supported on dev channel.
16733
+ *
16734
+ * @alpha
16735
+ * @chrome-channel dev
16730
16736
  */
16731
16737
  export function getAccounts(
16732
16738
 
@@ -17379,7 +17385,7 @@ declare namespace chrome {
17379
17385
  /**
17380
17386
  * Set the current composition. If this extension does not own the active IME, this fails.
17381
17387
  *
17382
- * @chrome-returns-extra since Pending
17388
+ * @chrome-returns-extra since Chrome 111
17383
17389
  */
17384
17390
  export function setComposition(
17385
17391
 
@@ -17497,7 +17503,7 @@ declare namespace chrome {
17497
17503
  /**
17498
17504
  * Clear the current composition. If this extension does not own the active IME, this fails.
17499
17505
  *
17500
- * @chrome-returns-extra since Pending
17506
+ * @chrome-returns-extra since Chrome 111
17501
17507
  */
17502
17508
  export function clearComposition(
17503
17509
 
@@ -17533,7 +17539,7 @@ declare namespace chrome {
17533
17539
  /**
17534
17540
  * Commits the provided text to the current input.
17535
17541
  *
17536
- * @chrome-returns-extra since Pending
17542
+ * @chrome-returns-extra since Chrome 111
17537
17543
  */
17538
17544
  export function commitText(
17539
17545
 
@@ -17579,7 +17585,7 @@ declare namespace chrome {
17579
17585
  /**
17580
17586
  * Sends the key events. This function is expected to be used by virtual keyboards. When key(s) on a virtual keyboard is pressed by a user, this function is used to propagate that event to the system.
17581
17587
  *
17582
- * @chrome-returns-extra since Pending
17588
+ * @chrome-returns-extra since Chrome 111
17583
17589
  */
17584
17590
  export function sendKeyEvents(
17585
17591
 
@@ -17628,7 +17634,7 @@ declare namespace chrome {
17628
17634
  /**
17629
17635
  * Sets the properties of the candidate window. This fails if the extension doesn't own the active IME
17630
17636
  *
17631
- * @chrome-returns-extra since Pending
17637
+ * @chrome-returns-extra since Chrome 111
17632
17638
  */
17633
17639
  export function setCandidateWindowProperties(
17634
17640
 
@@ -17768,7 +17774,7 @@ declare namespace chrome {
17768
17774
  /**
17769
17775
  * Sets the current candidate list. This fails if this extension doesn't own the active IME
17770
17776
  *
17771
- * @chrome-returns-extra since Pending
17777
+ * @chrome-returns-extra since Chrome 111
17772
17778
  */
17773
17779
  export function setCandidates(
17774
17780
 
@@ -17898,7 +17904,7 @@ declare namespace chrome {
17898
17904
  /**
17899
17905
  * Set the position of the cursor in the candidate window. This is a no-op if this extension does not own the active IME.
17900
17906
  *
17901
- * @chrome-returns-extra since Pending
17907
+ * @chrome-returns-extra since Chrome 111
17902
17908
  */
17903
17909
  export function setCursorPosition(
17904
17910
 
@@ -17944,7 +17950,7 @@ declare namespace chrome {
17944
17950
  /**
17945
17951
  * Shows/Hides an assistive window with the given properties.
17946
17952
  *
17947
- * @chrome-returns-extra since Pending
17953
+ * @chrome-returns-extra since Chrome 111
17948
17954
  * @since Chrome 85
17949
17955
  */
17950
17956
  export function setAssistiveWindowProperties(
@@ -17992,7 +17998,7 @@ declare namespace chrome {
17992
17998
  /**
17993
17999
  * Highlights/Unhighlights a button in an assistive window.
17994
18000
  *
17995
- * @chrome-returns-extra since Pending
18001
+ * @chrome-returns-extra since Chrome 111
17996
18002
  * @since Chrome 86
17997
18003
  */
17998
18004
  export function setAssistiveWindowButtonHighlighted(
@@ -18068,7 +18074,7 @@ declare namespace chrome {
18068
18074
  /**
18069
18075
  * Adds the provided menu items to the language menu when this IME is active.
18070
18076
  *
18071
- * @chrome-returns-extra since Pending
18077
+ * @chrome-returns-extra since Chrome 111
18072
18078
  */
18073
18079
  export function setMenuItems(
18074
18080
 
@@ -18088,7 +18094,7 @@ declare namespace chrome {
18088
18094
  /**
18089
18095
  * Updates the state of the MenuItems specified
18090
18096
  *
18091
- * @chrome-returns-extra since Pending
18097
+ * @chrome-returns-extra since Chrome 111
18092
18098
  */
18093
18099
  export function updateMenuItems(
18094
18100
 
@@ -18110,7 +18116,7 @@ declare namespace chrome {
18110
18116
  /**
18111
18117
  * Deletes the text around the caret.
18112
18118
  *
18113
- * @chrome-returns-extra since Pending
18119
+ * @chrome-returns-extra since Chrome 111
18114
18120
  */
18115
18121
  export function deleteSurroundingText(
18116
18122
 
@@ -18255,14 +18261,14 @@ declare namespace chrome {
18255
18261
  /**
18256
18262
  * Identifies the entity that is authorized to access resources associated with this Instance ID. It can be a project ID from [Google developer console](https://code.google.com/apis/console).
18257
18263
  *
18258
- * @since Chrome 45
18264
+ * @since Chrome 46
18259
18265
  */
18260
18266
  authorizedEntity: string,
18261
18267
 
18262
18268
  /**
18263
18269
  * Identifies authorized actions that the authorized entity can take. E.g. for sending GCM messages, `GCM` scope should be used.
18264
18270
  *
18265
- * @since Chrome 45
18271
+ * @since Chrome 46
18266
18272
  */
18267
18273
  scope: string,
18268
18274
 
@@ -18270,7 +18276,7 @@ declare namespace chrome {
18270
18276
  * Allows including a small number of string key/value pairs that will be associated with the token and may be used in processing the request.
18271
18277
  *
18272
18278
  * @deprecated options are deprecated and will be ignored.
18273
- * @since Chrome 45
18279
+ * @since Chrome 46
18274
18280
  * @chrome-deprecated-since Chrome 89
18275
18281
  */
18276
18282
  options?: {[name: string]: string},
@@ -18290,14 +18296,14 @@ declare namespace chrome {
18290
18296
  /**
18291
18297
  * Identifies the entity that is authorized to access resources associated with this Instance ID. It can be a project ID from [Google developer console](https://code.google.com/apis/console).
18292
18298
  *
18293
- * @since Chrome 45
18299
+ * @since Chrome 46
18294
18300
  */
18295
18301
  authorizedEntity: string,
18296
18302
 
18297
18303
  /**
18298
18304
  * Identifies authorized actions that the authorized entity can take. E.g. for sending GCM messages, `GCM` scope should be used.
18299
18305
  *
18300
- * @since Chrome 45
18306
+ * @since Chrome 46
18301
18307
  */
18302
18308
  scope: string,
18303
18309
 
@@ -18305,7 +18311,7 @@ declare namespace chrome {
18305
18311
  * Allows including a small number of string key/value pairs that will be associated with the token and may be used in processing the request.
18306
18312
  *
18307
18313
  * @deprecated options are deprecated and will be ignored.
18308
- * @since Chrome 45
18314
+ * @since Chrome 46
18309
18315
  * @chrome-deprecated-since Chrome 89
18310
18316
  */
18311
18317
  options?: {[name: string]: string},
@@ -18332,14 +18338,14 @@ declare namespace chrome {
18332
18338
  /**
18333
18339
  * The authorized entity that is used to obtain the token.
18334
18340
  *
18335
- * @since Chrome 45
18341
+ * @since Chrome 46
18336
18342
  */
18337
18343
  authorizedEntity: string,
18338
18344
 
18339
18345
  /**
18340
18346
  * The scope that is used to obtain the token.
18341
18347
  *
18342
- * @since Chrome 45
18348
+ * @since Chrome 46
18343
18349
  */
18344
18350
  scope: string,
18345
18351
  },
@@ -18358,14 +18364,14 @@ declare namespace chrome {
18358
18364
  /**
18359
18365
  * The authorized entity that is used to obtain the token.
18360
18366
  *
18361
- * @since Chrome 45
18367
+ * @since Chrome 46
18362
18368
  */
18363
18369
  authorizedEntity: string,
18364
18370
 
18365
18371
  /**
18366
18372
  * The scope that is used to obtain the token.
18367
18373
  *
18368
- * @since Chrome 45
18374
+ * @since Chrome 46
18369
18375
  */
18370
18376
  scope: string,
18371
18377
  },
@@ -21698,8 +21704,10 @@ declare namespace chrome {
21698
21704
  * @chrome-enum "DISPLAY\_MEDIA" The offscreen document needs to interact with media streams from display media (e.g. `getDisplayMedia()`
21699
21705
  * @chrome-enum "WEB\_RTC" The offscreen document needs to use WebRTC APIs.
21700
21706
  * @chrome-enum "CLIPBOARD" The offscreen document needs to interact with the clipboard APIs (e.g. `Navigator.clipboard`).
21707
+ * @chrome-enum "LOCAL\_STORAGE" The offscreen document needs access to [localStorage](https://developer.mozilla.org/en-US/docs/Web/API/Window/localStorage).
21708
+ * @chrome-enum "WORKERS" The offscreen document needs to spawn workers.
21701
21709
  */
21702
- export type Reason = "TESTING" | "AUDIO_PLAYBACK" | "IFRAME_SCRIPTING" | "DOM_SCRAPING" | "BLOBS" | "DOM_PARSER" | "USER_MEDIA" | "DISPLAY_MEDIA" | "WEB_RTC" | "CLIPBOARD";
21710
+ export type Reason = "TESTING" | "AUDIO_PLAYBACK" | "IFRAME_SCRIPTING" | "DOM_SCRAPING" | "BLOBS" | "DOM_PARSER" | "USER_MEDIA" | "DISPLAY_MEDIA" | "WEB_RTC" | "CLIPBOARD" | "LOCAL_STORAGE" | "WORKERS";
21703
21711
 
21704
21712
  export interface CreateParameters {
21705
21713
 
@@ -23154,27 +23162,28 @@ declare namespace chrome {
23154
23162
  *
23155
23163
  * @deprecated We’re deprecating the API {@link websites.privacySandboxEnabled chrome.privacy.websites.privacySandboxEnabled}, though it will remain active for backward compatibility until release M113. Instead, please use {@link websites.topicsEnabled chrome.privacy.websites.topicsEnabled}, {@link websites.fledgeEnabled chrome.privacy.websites.fledgeEnabled} and {@link websites.adMeasurementEnabled chrome.privacy.websites.adMeasurementEnabled}. During the migration period: 1. Enabling privacySandboxEnabled will CLEAR the new APIs listed above because extensions aren’t allowed to enable them; 2. Disabling privacySandboxEnabled will also disable the new APIs; 3. Clearing privacySandboxEnabled will also clear the new APIs.
23156
23164
  * @since Chrome 90
23165
+ * @chrome-deprecated-since Chrome 111
23157
23166
  */
23158
23167
  privacySandboxEnabled: types.ChromeSetting<boolean>,
23159
23168
 
23160
23169
  /**
23161
23170
  * If disabled, the [Topics API](https://developer.chrome.com/en/docs/privacy-sandbox/topics/) is deactivated. The value of this preference is of type boolean, and the default value is `true`. Extensions may only disable this API by setting the value to `false`. If you try setting this API to `true`, it will throw an error.
23162
23171
  *
23163
- * @since Pending
23172
+ * @since Chrome 111
23164
23173
  */
23165
23174
  topicsEnabled: types.ChromeSetting<boolean>,
23166
23175
 
23167
23176
  /**
23168
23177
  * If disabled, the [Fledge API](https://developer.chrome.com/docs/privacy-sandbox/fledge/) is deactivated. The value of this preference is of type boolean, and the default value is `true`. Extensions may only disable this API by setting the value to `false`. If you try setting this API to `true`, it will throw an error.
23169
23178
  *
23170
- * @since Pending
23179
+ * @since Chrome 111
23171
23180
  */
23172
23181
  fledgeEnabled: types.ChromeSetting<boolean>,
23173
23182
 
23174
23183
  /**
23175
23184
  * If disabled, the [Attribution Reporting API](https://developer.chrome.com/en/docs/privacy-sandbox/attribution-reporting/) and [Private Aggregation API](https://developer.chrome.com/docs/privacy-sandbox/private-aggregation/) are deactivated. The value of this preference is of type boolean, and the default value is `true`. Extensions may only disable these APIs by setting the value to `false`. If you try setting these APIs to `true`, it will throw an error.
23176
23185
  *
23177
- * @since Pending
23186
+ * @since Chrome 111
23178
23187
  */
23179
23188
  adMeasurementEnabled: types.ChromeSetting<boolean>,
23180
23189
 
@@ -23865,7 +23874,7 @@ declare namespace chrome {
23865
23874
  /**
23866
23875
  * Fired when a connection is made from a native application. Currently only supported on Chrome OS.
23867
23876
  *
23868
- * @since Chrome 74
23877
+ * @since Chrome 76
23869
23878
  * @chrome-permission nativeMessaging
23870
23879
  */
23871
23880
  export const onConnectNative: events.Event<(
@@ -28737,7 +28746,8 @@ declare namespace chrome {
28737
28746
  /**
28738
28747
  * Get the available capacity of a specified `id` storage device. The `id` is the transient device ID from StorageUnitInfo.
28739
28748
  *
28740
- * @chrome-returns-extra since Chrome 91
28749
+ * @alpha
28750
+ * @chrome-channel dev
28741
28751
  */
28742
28752
  export function getAvailableCapacity(
28743
28753
 
@@ -28746,6 +28756,9 @@ declare namespace chrome {
28746
28756
 
28747
28757
  /**
28748
28758
  * Get the available capacity of a specified `id` storage device. The `id` is the transient device ID from StorageUnitInfo.
28759
+ *
28760
+ * @alpha
28761
+ * @chrome-channel dev
28749
28762
  */
28750
28763
  export function getAvailableCapacity(
28751
28764
 
package/index.d.ts CHANGED
@@ -14,8 +14,8 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- // Generated on Fri Mar 03 2023 22:29:36 GMT+0000 (Coordinated Universal Time)
18
- // Built at 939564227c747ae6dc4a9e09fd31747150e96841
17
+ // Generated on Tue Mar 07 2023 22:29:40 GMT+0000 (Coordinated Universal Time)
18
+ // Built at 05f8fe382dcc45f96756d092b24690e56006c82a
19
19
 
20
20
  // Includes MV3+ APIs only.
21
21
 
@@ -691,7 +691,7 @@ declare namespace chrome {
691
691
  * Indicates whether the extension action is enabled for a tab (or globally if no `tabId` is provided). Actions enabled using only {@link declarativeContent} always return false.
692
692
  *
693
693
  * @param tabId The id of the tab for which you want check enabled status.
694
- * @since Chrome 108
694
+ * @since Chrome 110
695
695
  */
696
696
  export function isEnabled(
697
697
 
@@ -702,7 +702,7 @@ declare namespace chrome {
702
702
  * Indicates whether the extension action is enabled for a tab (or globally if no `tabId` is provided). Actions enabled using only {@link declarativeContent} always return false.
703
703
  *
704
704
  * @param tabId The id of the tab for which you want check enabled status.
705
- * @since Chrome 108
705
+ * @since Chrome 110
706
706
  */
707
707
  export function isEnabled(
708
708
 
@@ -739,7 +739,8 @@ declare namespace chrome {
739
739
  * Opens the extension's popup.
740
740
  *
741
741
  * @param options Specifies options for opening the popup.
742
- * @since Chrome 99
742
+ * @alpha
743
+ * @chrome-channel dev
743
744
  */
744
745
  export function openPopup(
745
746
 
@@ -750,7 +751,8 @@ declare namespace chrome {
750
751
  * Opens the extension's popup.
751
752
  *
752
753
  * @param options Specifies options for opening the popup.
753
- * @since Chrome 99
754
+ * @alpha
755
+ * @chrome-channel dev
754
756
  */
755
757
  export function openPopup(
756
758
 
@@ -817,7 +819,7 @@ declare namespace chrome {
817
819
  *
818
820
  * 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.
819
821
  *
820
- * @chrome-returns-extra since Pending
822
+ * @chrome-returns-extra since Chrome 111
821
823
  * @param name Optional name to identify this alarm. Defaults to the empty string.
822
824
  * @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`.
823
825
  */
@@ -835,7 +837,7 @@ declare namespace chrome {
835
837
  *
836
838
  * 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.
837
839
  *
838
- * @chrome-returns-extra since Pending
840
+ * @chrome-returns-extra since Chrome 111
839
841
  * @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`.
840
842
  */
841
843
  export function create(
@@ -861,7 +863,7 @@ declare namespace chrome {
861
863
  alarmInfo: AlarmCreateInfo,
862
864
 
863
865
  /**
864
- * @since Pending
866
+ * @since Chrome 111
865
867
  */
866
868
  callback?: () => void,
867
869
  ): void;
@@ -881,7 +883,7 @@ declare namespace chrome {
881
883
  alarmInfo: AlarmCreateInfo,
882
884
 
883
885
  /**
884
- * @since Pending
886
+ * @since Chrome 111
885
887
  */
886
888
  callback?: () => void,
887
889
  ): void;
@@ -6235,7 +6237,7 @@ declare namespace chrome {
6235
6237
  }
6236
6238
 
6237
6239
  /**
6238
- * @since Pending
6240
+ * @since Chrome 111
6239
6241
  */
6240
6242
  export interface GetRulesFilter {
6241
6243
 
@@ -6471,7 +6473,7 @@ declare namespace chrome {
6471
6473
  }
6472
6474
 
6473
6475
  /**
6474
- * @since Pending
6476
+ * @since Chrome 111
6475
6477
  */
6476
6478
  export interface UpdateStaticRulesOptions {
6477
6479
 
@@ -6492,7 +6494,7 @@ declare namespace chrome {
6492
6494
  }
6493
6495
 
6494
6496
  /**
6495
- * @since Pending
6497
+ * @since Chrome 111
6496
6498
  */
6497
6499
  export interface GetDisabledRuleIdsOptions {
6498
6500
 
@@ -6648,7 +6650,7 @@ declare namespace chrome {
6648
6650
  export function getDynamicRules(
6649
6651
 
6650
6652
  /**
6651
- * @since Pending
6653
+ * @since Chrome 111
6652
6654
  */
6653
6655
  filter?: GetRulesFilter,
6654
6656
  ): Promise<Rule[]>;
@@ -6662,7 +6664,7 @@ declare namespace chrome {
6662
6664
  export function getDynamicRules(
6663
6665
 
6664
6666
  /**
6665
- * @since Pending
6667
+ * @since Chrome 111
6666
6668
  */
6667
6669
  filter?: GetRulesFilter,
6668
6670
 
@@ -6713,7 +6715,7 @@ declare namespace chrome {
6713
6715
  export function getSessionRules(
6714
6716
 
6715
6717
  /**
6716
- * @since Pending
6718
+ * @since Chrome 111
6717
6719
  */
6718
6720
  filter?: GetRulesFilter,
6719
6721
  ): Promise<Rule[]>;
@@ -6728,7 +6730,7 @@ declare namespace chrome {
6728
6730
  export function getSessionRules(
6729
6731
 
6730
6732
  /**
6731
- * @since Pending
6733
+ * @since Chrome 111
6732
6734
  */
6733
6735
  filter?: GetRulesFilter,
6734
6736
 
@@ -12280,7 +12282,8 @@ declare namespace chrome {
12280
12282
  *
12281
12283
  * `getAccounts` is only supported on dev channel.
12282
12284
  *
12283
- * @chrome-returns-extra since Chrome 106
12285
+ * @alpha
12286
+ * @chrome-channel dev
12284
12287
  */
12285
12288
  export function getAccounts(): Promise<AccountInfo[]>;
12286
12289
 
@@ -12288,6 +12291,9 @@ declare namespace chrome {
12288
12291
  * Retrieves a list of AccountInfo objects describing the accounts present on the profile.
12289
12292
  *
12290
12293
  * `getAccounts` is only supported on dev channel.
12294
+ *
12295
+ * @alpha
12296
+ * @chrome-channel dev
12291
12297
  */
12292
12298
  export function getAccounts(
12293
12299
 
@@ -12940,7 +12946,7 @@ declare namespace chrome {
12940
12946
  /**
12941
12947
  * Set the current composition. If this extension does not own the active IME, this fails.
12942
12948
  *
12943
- * @chrome-returns-extra since Pending
12949
+ * @chrome-returns-extra since Chrome 111
12944
12950
  */
12945
12951
  export function setComposition(
12946
12952
 
@@ -13058,7 +13064,7 @@ declare namespace chrome {
13058
13064
  /**
13059
13065
  * Clear the current composition. If this extension does not own the active IME, this fails.
13060
13066
  *
13061
- * @chrome-returns-extra since Pending
13067
+ * @chrome-returns-extra since Chrome 111
13062
13068
  */
13063
13069
  export function clearComposition(
13064
13070
 
@@ -13094,7 +13100,7 @@ declare namespace chrome {
13094
13100
  /**
13095
13101
  * Commits the provided text to the current input.
13096
13102
  *
13097
- * @chrome-returns-extra since Pending
13103
+ * @chrome-returns-extra since Chrome 111
13098
13104
  */
13099
13105
  export function commitText(
13100
13106
 
@@ -13140,7 +13146,7 @@ declare namespace chrome {
13140
13146
  /**
13141
13147
  * Sends the key events. This function is expected to be used by virtual keyboards. When key(s) on a virtual keyboard is pressed by a user, this function is used to propagate that event to the system.
13142
13148
  *
13143
- * @chrome-returns-extra since Pending
13149
+ * @chrome-returns-extra since Chrome 111
13144
13150
  */
13145
13151
  export function sendKeyEvents(
13146
13152
 
@@ -13189,7 +13195,7 @@ declare namespace chrome {
13189
13195
  /**
13190
13196
  * Sets the properties of the candidate window. This fails if the extension doesn't own the active IME
13191
13197
  *
13192
- * @chrome-returns-extra since Pending
13198
+ * @chrome-returns-extra since Chrome 111
13193
13199
  */
13194
13200
  export function setCandidateWindowProperties(
13195
13201
 
@@ -13329,7 +13335,7 @@ declare namespace chrome {
13329
13335
  /**
13330
13336
  * Sets the current candidate list. This fails if this extension doesn't own the active IME
13331
13337
  *
13332
- * @chrome-returns-extra since Pending
13338
+ * @chrome-returns-extra since Chrome 111
13333
13339
  */
13334
13340
  export function setCandidates(
13335
13341
 
@@ -13459,7 +13465,7 @@ declare namespace chrome {
13459
13465
  /**
13460
13466
  * Set the position of the cursor in the candidate window. This is a no-op if this extension does not own the active IME.
13461
13467
  *
13462
- * @chrome-returns-extra since Pending
13468
+ * @chrome-returns-extra since Chrome 111
13463
13469
  */
13464
13470
  export function setCursorPosition(
13465
13471
 
@@ -13505,7 +13511,7 @@ declare namespace chrome {
13505
13511
  /**
13506
13512
  * Shows/Hides an assistive window with the given properties.
13507
13513
  *
13508
- * @chrome-returns-extra since Pending
13514
+ * @chrome-returns-extra since Chrome 111
13509
13515
  * @since Chrome 85
13510
13516
  */
13511
13517
  export function setAssistiveWindowProperties(
@@ -13553,7 +13559,7 @@ declare namespace chrome {
13553
13559
  /**
13554
13560
  * Highlights/Unhighlights a button in an assistive window.
13555
13561
  *
13556
- * @chrome-returns-extra since Pending
13562
+ * @chrome-returns-extra since Chrome 111
13557
13563
  * @since Chrome 86
13558
13564
  */
13559
13565
  export function setAssistiveWindowButtonHighlighted(
@@ -13629,7 +13635,7 @@ declare namespace chrome {
13629
13635
  /**
13630
13636
  * Adds the provided menu items to the language menu when this IME is active.
13631
13637
  *
13632
- * @chrome-returns-extra since Pending
13638
+ * @chrome-returns-extra since Chrome 111
13633
13639
  */
13634
13640
  export function setMenuItems(
13635
13641
 
@@ -13649,7 +13655,7 @@ declare namespace chrome {
13649
13655
  /**
13650
13656
  * Updates the state of the MenuItems specified
13651
13657
  *
13652
- * @chrome-returns-extra since Pending
13658
+ * @chrome-returns-extra since Chrome 111
13653
13659
  */
13654
13660
  export function updateMenuItems(
13655
13661
 
@@ -13671,7 +13677,7 @@ declare namespace chrome {
13671
13677
  /**
13672
13678
  * Deletes the text around the caret.
13673
13679
  *
13674
- * @chrome-returns-extra since Pending
13680
+ * @chrome-returns-extra since Chrome 111
13675
13681
  */
13676
13682
  export function deleteSurroundingText(
13677
13683
 
@@ -13816,14 +13822,14 @@ declare namespace chrome {
13816
13822
  /**
13817
13823
  * Identifies the entity that is authorized to access resources associated with this Instance ID. It can be a project ID from [Google developer console](https://code.google.com/apis/console).
13818
13824
  *
13819
- * @since Chrome 45
13825
+ * @since Chrome 46
13820
13826
  */
13821
13827
  authorizedEntity: string,
13822
13828
 
13823
13829
  /**
13824
13830
  * Identifies authorized actions that the authorized entity can take. E.g. for sending GCM messages, `GCM` scope should be used.
13825
13831
  *
13826
- * @since Chrome 45
13832
+ * @since Chrome 46
13827
13833
  */
13828
13834
  scope: string,
13829
13835
 
@@ -13831,7 +13837,7 @@ declare namespace chrome {
13831
13837
  * Allows including a small number of string key/value pairs that will be associated with the token and may be used in processing the request.
13832
13838
  *
13833
13839
  * @deprecated options are deprecated and will be ignored.
13834
- * @since Chrome 45
13840
+ * @since Chrome 46
13835
13841
  * @chrome-deprecated-since Chrome 89
13836
13842
  */
13837
13843
  options?: {[name: string]: string},
@@ -13851,14 +13857,14 @@ declare namespace chrome {
13851
13857
  /**
13852
13858
  * Identifies the entity that is authorized to access resources associated with this Instance ID. It can be a project ID from [Google developer console](https://code.google.com/apis/console).
13853
13859
  *
13854
- * @since Chrome 45
13860
+ * @since Chrome 46
13855
13861
  */
13856
13862
  authorizedEntity: string,
13857
13863
 
13858
13864
  /**
13859
13865
  * Identifies authorized actions that the authorized entity can take. E.g. for sending GCM messages, `GCM` scope should be used.
13860
13866
  *
13861
- * @since Chrome 45
13867
+ * @since Chrome 46
13862
13868
  */
13863
13869
  scope: string,
13864
13870
 
@@ -13866,7 +13872,7 @@ declare namespace chrome {
13866
13872
  * Allows including a small number of string key/value pairs that will be associated with the token and may be used in processing the request.
13867
13873
  *
13868
13874
  * @deprecated options are deprecated and will be ignored.
13869
- * @since Chrome 45
13875
+ * @since Chrome 46
13870
13876
  * @chrome-deprecated-since Chrome 89
13871
13877
  */
13872
13878
  options?: {[name: string]: string},
@@ -13893,14 +13899,14 @@ declare namespace chrome {
13893
13899
  /**
13894
13900
  * The authorized entity that is used to obtain the token.
13895
13901
  *
13896
- * @since Chrome 45
13902
+ * @since Chrome 46
13897
13903
  */
13898
13904
  authorizedEntity: string,
13899
13905
 
13900
13906
  /**
13901
13907
  * The scope that is used to obtain the token.
13902
13908
  *
13903
- * @since Chrome 45
13909
+ * @since Chrome 46
13904
13910
  */
13905
13911
  scope: string,
13906
13912
  },
@@ -13919,14 +13925,14 @@ declare namespace chrome {
13919
13925
  /**
13920
13926
  * The authorized entity that is used to obtain the token.
13921
13927
  *
13922
- * @since Chrome 45
13928
+ * @since Chrome 46
13923
13929
  */
13924
13930
  authorizedEntity: string,
13925
13931
 
13926
13932
  /**
13927
13933
  * The scope that is used to obtain the token.
13928
13934
  *
13929
- * @since Chrome 45
13935
+ * @since Chrome 46
13930
13936
  */
13931
13937
  scope: string,
13932
13938
  },
@@ -16904,8 +16910,10 @@ declare namespace chrome {
16904
16910
  * @chrome-enum "DISPLAY\_MEDIA" The offscreen document needs to interact with media streams from display media (e.g. `getDisplayMedia()`
16905
16911
  * @chrome-enum "WEB\_RTC" The offscreen document needs to use WebRTC APIs.
16906
16912
  * @chrome-enum "CLIPBOARD" The offscreen document needs to interact with the clipboard APIs (e.g. `Navigator.clipboard`).
16913
+ * @chrome-enum "LOCAL\_STORAGE" The offscreen document needs access to [localStorage](https://developer.mozilla.org/en-US/docs/Web/API/Window/localStorage).
16914
+ * @chrome-enum "WORKERS" The offscreen document needs to spawn workers.
16907
16915
  */
16908
- export type Reason = "TESTING" | "AUDIO_PLAYBACK" | "IFRAME_SCRIPTING" | "DOM_SCRAPING" | "BLOBS" | "DOM_PARSER" | "USER_MEDIA" | "DISPLAY_MEDIA" | "WEB_RTC" | "CLIPBOARD";
16916
+ export type Reason = "TESTING" | "AUDIO_PLAYBACK" | "IFRAME_SCRIPTING" | "DOM_SCRAPING" | "BLOBS" | "DOM_PARSER" | "USER_MEDIA" | "DISPLAY_MEDIA" | "WEB_RTC" | "CLIPBOARD" | "LOCAL_STORAGE" | "WORKERS";
16909
16917
 
16910
16918
  export interface CreateParameters {
16911
16919
 
@@ -18080,27 +18088,28 @@ declare namespace chrome {
18080
18088
  *
18081
18089
  * @deprecated We’re deprecating the API {@link websites.privacySandboxEnabled chrome.privacy.websites.privacySandboxEnabled}, though it will remain active for backward compatibility until release M113. Instead, please use {@link websites.topicsEnabled chrome.privacy.websites.topicsEnabled}, {@link websites.fledgeEnabled chrome.privacy.websites.fledgeEnabled} and {@link websites.adMeasurementEnabled chrome.privacy.websites.adMeasurementEnabled}. During the migration period: 1. Enabling privacySandboxEnabled will CLEAR the new APIs listed above because extensions aren’t allowed to enable them; 2. Disabling privacySandboxEnabled will also disable the new APIs; 3. Clearing privacySandboxEnabled will also clear the new APIs.
18082
18090
  * @since Chrome 90
18091
+ * @chrome-deprecated-since Chrome 111
18083
18092
  */
18084
18093
  privacySandboxEnabled: types.ChromeSetting<boolean>,
18085
18094
 
18086
18095
  /**
18087
18096
  * If disabled, the [Topics API](https://developer.chrome.com/en/docs/privacy-sandbox/topics/) is deactivated. The value of this preference is of type boolean, and the default value is `true`. Extensions may only disable this API by setting the value to `false`. If you try setting this API to `true`, it will throw an error.
18088
18097
  *
18089
- * @since Pending
18098
+ * @since Chrome 111
18090
18099
  */
18091
18100
  topicsEnabled: types.ChromeSetting<boolean>,
18092
18101
 
18093
18102
  /**
18094
18103
  * If disabled, the [Fledge API](https://developer.chrome.com/docs/privacy-sandbox/fledge/) is deactivated. The value of this preference is of type boolean, and the default value is `true`. Extensions may only disable this API by setting the value to `false`. If you try setting this API to `true`, it will throw an error.
18095
18104
  *
18096
- * @since Pending
18105
+ * @since Chrome 111
18097
18106
  */
18098
18107
  fledgeEnabled: types.ChromeSetting<boolean>,
18099
18108
 
18100
18109
  /**
18101
18110
  * If disabled, the [Attribution Reporting API](https://developer.chrome.com/en/docs/privacy-sandbox/attribution-reporting/) and [Private Aggregation API](https://developer.chrome.com/docs/privacy-sandbox/private-aggregation/) are deactivated. The value of this preference is of type boolean, and the default value is `true`. Extensions may only disable these APIs by setting the value to `false`. If you try setting these APIs to `true`, it will throw an error.
18102
18111
  *
18103
- * @since Pending
18112
+ * @since Chrome 111
18104
18113
  */
18105
18114
  adMeasurementEnabled: types.ChromeSetting<boolean>,
18106
18115
 
@@ -18780,7 +18789,7 @@ declare namespace chrome {
18780
18789
  /**
18781
18790
  * Fired when a connection is made from a native application. Currently only supported on Chrome OS.
18782
18791
  *
18783
- * @since Chrome 74
18792
+ * @since Chrome 76
18784
18793
  * @chrome-permission nativeMessaging
18785
18794
  */
18786
18795
  export const onConnectNative: events.Event<(
@@ -22363,7 +22372,8 @@ declare namespace chrome {
22363
22372
  /**
22364
22373
  * Get the available capacity of a specified `id` storage device. The `id` is the transient device ID from StorageUnitInfo.
22365
22374
  *
22366
- * @chrome-returns-extra since Chrome 91
22375
+ * @alpha
22376
+ * @chrome-channel dev
22367
22377
  */
22368
22378
  export function getAvailableCapacity(
22369
22379
 
@@ -22372,6 +22382,9 @@ declare namespace chrome {
22372
22382
 
22373
22383
  /**
22374
22384
  * Get the available capacity of a specified `id` storage device. The `id` is the transient device ID from StorageUnitInfo.
22385
+ *
22386
+ * @alpha
22387
+ * @chrome-channel dev
22375
22388
  */
22376
22389
  export function getAvailableCapacity(
22377
22390
 
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "type": "module",
6
6
  "name": "chrome-types",
7
7
  "config": {
8
- "build-hash": "e603fe2e582fd41e"
8
+ "build-hash": "a0a53503844b7982"
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.176"
19
+ "version": "0.1.178"
20
20
  }