chrome-types 0.1.68 → 0.1.72
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 +21 -17
- package/index.d.ts +21 -17
- 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 Sun Nov 28 2021 22:27:41 GMT+0000 (Coordinated Universal Time)
|
|
18
|
+
// Built at 1eb17e15be59ac864df2dd46b1d5cf8452086414
|
|
19
19
|
|
|
20
20
|
// Includes all types, including MV2 + Platform Apps APIs.
|
|
21
21
|
|
|
@@ -11908,7 +11908,7 @@ declare namespace chrome {
|
|
|
11908
11908
|
): void;
|
|
11909
11909
|
|
|
11910
11910
|
/**
|
|
11911
|
-
* Fetches the device's hostname as set by DeviceHostnameTemplate policy. If the current user is not affiliated or no hostname has been set by the
|
|
11911
|
+
* Fetches the device's hostname as set by DeviceHostnameTemplate policy. If the current user is not affiliated or no hostname has been set by the enterprise policy, returns an empty string.
|
|
11912
11912
|
*
|
|
11913
11913
|
* @chrome-returns-extra since Pending
|
|
11914
11914
|
* @since Chrome 82
|
|
@@ -11916,7 +11916,7 @@ declare namespace chrome {
|
|
|
11916
11916
|
export function getDeviceHostname(): Promise<string>;
|
|
11917
11917
|
|
|
11918
11918
|
/**
|
|
11919
|
-
* Fetches the device's hostname as set by DeviceHostnameTemplate policy. If the current user is not affiliated or no hostname has been set by the
|
|
11919
|
+
* Fetches the device's hostname as set by DeviceHostnameTemplate policy. If the current user is not affiliated or no hostname has been set by the enterprise policy, returns an empty string.
|
|
11920
11920
|
*
|
|
11921
11921
|
* @param callback Called with hostname of the device.
|
|
11922
11922
|
* @since Chrome 82
|
|
@@ -21371,7 +21371,7 @@ declare namespace chrome {
|
|
|
21371
21371
|
/**
|
|
21372
21372
|
* The maximum number of times that {@link submitJob} can be called per minute.
|
|
21373
21373
|
*/
|
|
21374
|
-
export const MAX_SUBMIT_JOB_CALLS_PER_MINUTE:
|
|
21374
|
+
export const MAX_SUBMIT_JOB_CALLS_PER_MINUTE: 40;
|
|
21375
21375
|
|
|
21376
21376
|
/**
|
|
21377
21377
|
* The maximum number of times that {@link getPrinterInfo} can be called per minute.
|
|
@@ -22801,7 +22801,7 @@ declare namespace chrome {
|
|
|
22801
22801
|
}
|
|
22802
22802
|
|
|
22803
22803
|
/**
|
|
22804
|
-
* @since
|
|
22804
|
+
* @since Chrome 96
|
|
22805
22805
|
*/
|
|
22806
22806
|
export interface RegisteredContentScript {
|
|
22807
22807
|
|
|
@@ -22847,7 +22847,7 @@ declare namespace chrome {
|
|
|
22847
22847
|
}
|
|
22848
22848
|
|
|
22849
22849
|
/**
|
|
22850
|
-
* @since
|
|
22850
|
+
* @since Chrome 96
|
|
22851
22851
|
*/
|
|
22852
22852
|
export interface ContentScriptFilter {
|
|
22853
22853
|
|
|
@@ -22858,7 +22858,7 @@ declare namespace chrome {
|
|
|
22858
22858
|
}
|
|
22859
22859
|
|
|
22860
22860
|
/**
|
|
22861
|
-
* Injects a script into a target context. The script will be run at `document_idle`.
|
|
22861
|
+
* Injects a script into a target context. The script will be run at `document_idle`. If the script evaluates to a promise, the browser will wait for the promise to settle and return the resulting value.
|
|
22862
22862
|
*
|
|
22863
22863
|
* @chrome-returns-extra since Pending
|
|
22864
22864
|
* @param injection The details of the script which to inject.
|
|
@@ -22869,7 +22869,7 @@ declare namespace chrome {
|
|
|
22869
22869
|
): Promise<InjectionResult[]>;
|
|
22870
22870
|
|
|
22871
22871
|
/**
|
|
22872
|
-
* Injects a script into a target context. The script will be run at `document_idle`.
|
|
22872
|
+
* Injects a script into a target context. The script will be run at `document_idle`. If the script evaluates to a promise, the browser will wait for the promise to settle and return the resulting value.
|
|
22873
22873
|
*
|
|
22874
22874
|
* @param injection The details of the script which to inject.
|
|
22875
22875
|
* @param callback Invoked upon completion of the injection. The resulting array contains the result of execution for each frame where the injection succeeded.
|
|
@@ -22936,8 +22936,9 @@ declare namespace chrome {
|
|
|
22936
22936
|
/**
|
|
22937
22937
|
* Registers one or more content scripts for this extension.
|
|
22938
22938
|
*
|
|
22939
|
+
* @chrome-returns-extra since Pending
|
|
22939
22940
|
* @param scripts Contains a list of scripts to be registered. If there are errors during script parsing/file validation, or if the IDs specified already exist, then no scripts are registered.
|
|
22940
|
-
* @since
|
|
22941
|
+
* @since Chrome 96
|
|
22941
22942
|
*/
|
|
22942
22943
|
export function registerContentScripts(
|
|
22943
22944
|
|
|
@@ -22949,7 +22950,7 @@ declare namespace chrome {
|
|
|
22949
22950
|
*
|
|
22950
22951
|
* @param scripts Contains a list of scripts to be registered. If there are errors during script parsing/file validation, or if the IDs specified already exist, then no scripts are registered.
|
|
22951
22952
|
* @param callback A callback to be invoked once scripts have been fully registered or if an error has occurred.
|
|
22952
|
-
* @since
|
|
22953
|
+
* @since Chrome 96
|
|
22953
22954
|
*/
|
|
22954
22955
|
export function registerContentScripts(
|
|
22955
22956
|
|
|
@@ -22961,8 +22962,9 @@ declare namespace chrome {
|
|
|
22961
22962
|
/**
|
|
22962
22963
|
* Returns all dynamically registered content scripts for this extension that match the given filter.
|
|
22963
22964
|
*
|
|
22965
|
+
* @chrome-returns-extra since Pending
|
|
22964
22966
|
* @param filter An object to filter the extension's dynamically registered scripts.
|
|
22965
|
-
* @since
|
|
22967
|
+
* @since Chrome 96
|
|
22966
22968
|
*/
|
|
22967
22969
|
export function getRegisteredContentScripts(
|
|
22968
22970
|
|
|
@@ -22973,7 +22975,7 @@ declare namespace chrome {
|
|
|
22973
22975
|
* Returns all dynamically registered content scripts for this extension that match the given filter.
|
|
22974
22976
|
*
|
|
22975
22977
|
* @param filter An object to filter the extension's dynamically registered scripts.
|
|
22976
|
-
* @since
|
|
22978
|
+
* @since Chrome 96
|
|
22977
22979
|
*/
|
|
22978
22980
|
export function getRegisteredContentScripts(
|
|
22979
22981
|
|
|
@@ -22987,8 +22989,9 @@ declare namespace chrome {
|
|
|
22987
22989
|
/**
|
|
22988
22990
|
* Unregisters content scripts for this extension.
|
|
22989
22991
|
*
|
|
22992
|
+
* @chrome-returns-extra since Pending
|
|
22990
22993
|
* @param filter If specified, only unregisters dynamic content scripts which match the filter. Otherwise, all of the extension's dynamic content scripts are unregistered.
|
|
22991
|
-
* @since
|
|
22994
|
+
* @since Chrome 96
|
|
22992
22995
|
*/
|
|
22993
22996
|
export function unregisterContentScripts(
|
|
22994
22997
|
|
|
@@ -23000,7 +23003,7 @@ declare namespace chrome {
|
|
|
23000
23003
|
*
|
|
23001
23004
|
* @param filter If specified, only unregisters dynamic content scripts which match the filter. Otherwise, all of the extension's dynamic content scripts are unregistered.
|
|
23002
23005
|
* @param callback A callback to be invoked once scripts have been unregistered or if an error has occurred.
|
|
23003
|
-
* @since
|
|
23006
|
+
* @since Chrome 96
|
|
23004
23007
|
*/
|
|
23005
23008
|
export function unregisterContentScripts(
|
|
23006
23009
|
|
|
@@ -23012,8 +23015,9 @@ declare namespace chrome {
|
|
|
23012
23015
|
/**
|
|
23013
23016
|
* Updates one or more content scripts for this extension.
|
|
23014
23017
|
*
|
|
23018
|
+
* @chrome-returns-extra since Pending
|
|
23015
23019
|
* @param scripts Contains a list of scripts to be updated. A property is only updated for the existing script if it is specified in this object. If there are errors during script parsing/file validation, or if the IDs specified do not correspond to a fully registered script, then no scripts are updated.
|
|
23016
|
-
* @since
|
|
23020
|
+
* @since Chrome 96
|
|
23017
23021
|
*/
|
|
23018
23022
|
export function updateContentScripts(
|
|
23019
23023
|
|
|
@@ -23025,7 +23029,7 @@ declare namespace chrome {
|
|
|
23025
23029
|
*
|
|
23026
23030
|
* @param scripts Contains a list of scripts to be updated. A property is only updated for the existing script if it is specified in this object. If there are errors during script parsing/file validation, or if the IDs specified do not correspond to a fully registered script, then no scripts are updated.
|
|
23027
23031
|
* @param callback A callback to be invoked once scripts have been updated or if an error has occurred.
|
|
23028
|
-
* @since
|
|
23032
|
+
* @since Chrome 96
|
|
23029
23033
|
*/
|
|
23030
23034
|
export function updateContentScripts(
|
|
23031
23035
|
|
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 Sun Nov 28 2021 22:27:36 GMT+0000 (Coordinated Universal Time)
|
|
18
|
+
// Built at 1eb17e15be59ac864df2dd46b1d5cf8452086414
|
|
19
19
|
|
|
20
20
|
// Includes MV3+ APIs only.
|
|
21
21
|
|
|
@@ -7879,7 +7879,7 @@ declare namespace chrome {
|
|
|
7879
7879
|
): void;
|
|
7880
7880
|
|
|
7881
7881
|
/**
|
|
7882
|
-
* Fetches the device's hostname as set by DeviceHostnameTemplate policy. If the current user is not affiliated or no hostname has been set by the
|
|
7882
|
+
* Fetches the device's hostname as set by DeviceHostnameTemplate policy. If the current user is not affiliated or no hostname has been set by the enterprise policy, returns an empty string.
|
|
7883
7883
|
*
|
|
7884
7884
|
* @chrome-returns-extra since Pending
|
|
7885
7885
|
* @since Chrome 82
|
|
@@ -7887,7 +7887,7 @@ declare namespace chrome {
|
|
|
7887
7887
|
export function getDeviceHostname(): Promise<string>;
|
|
7888
7888
|
|
|
7889
7889
|
/**
|
|
7890
|
-
* Fetches the device's hostname as set by DeviceHostnameTemplate policy. If the current user is not affiliated or no hostname has been set by the
|
|
7890
|
+
* Fetches the device's hostname as set by DeviceHostnameTemplate policy. If the current user is not affiliated or no hostname has been set by the enterprise policy, returns an empty string.
|
|
7891
7891
|
*
|
|
7892
7892
|
* @param callback Called with hostname of the device.
|
|
7893
7893
|
* @since Chrome 82
|
|
@@ -14293,7 +14293,7 @@ declare namespace chrome {
|
|
|
14293
14293
|
/**
|
|
14294
14294
|
* The maximum number of times that {@link submitJob} can be called per minute.
|
|
14295
14295
|
*/
|
|
14296
|
-
export const MAX_SUBMIT_JOB_CALLS_PER_MINUTE:
|
|
14296
|
+
export const MAX_SUBMIT_JOB_CALLS_PER_MINUTE: 40;
|
|
14297
14297
|
|
|
14298
14298
|
/**
|
|
14299
14299
|
* The maximum number of times that {@link getPrinterInfo} can be called per minute.
|
|
@@ -15712,7 +15712,7 @@ declare namespace chrome {
|
|
|
15712
15712
|
}
|
|
15713
15713
|
|
|
15714
15714
|
/**
|
|
15715
|
-
* @since
|
|
15715
|
+
* @since Chrome 96
|
|
15716
15716
|
*/
|
|
15717
15717
|
export interface RegisteredContentScript {
|
|
15718
15718
|
|
|
@@ -15758,7 +15758,7 @@ declare namespace chrome {
|
|
|
15758
15758
|
}
|
|
15759
15759
|
|
|
15760
15760
|
/**
|
|
15761
|
-
* @since
|
|
15761
|
+
* @since Chrome 96
|
|
15762
15762
|
*/
|
|
15763
15763
|
export interface ContentScriptFilter {
|
|
15764
15764
|
|
|
@@ -15769,7 +15769,7 @@ declare namespace chrome {
|
|
|
15769
15769
|
}
|
|
15770
15770
|
|
|
15771
15771
|
/**
|
|
15772
|
-
* Injects a script into a target context. The script will be run at `document_idle`.
|
|
15772
|
+
* Injects a script into a target context. The script will be run at `document_idle`. If the script evaluates to a promise, the browser will wait for the promise to settle and return the resulting value.
|
|
15773
15773
|
*
|
|
15774
15774
|
* @chrome-returns-extra since Pending
|
|
15775
15775
|
* @param injection The details of the script which to inject.
|
|
@@ -15780,7 +15780,7 @@ declare namespace chrome {
|
|
|
15780
15780
|
): Promise<InjectionResult[]>;
|
|
15781
15781
|
|
|
15782
15782
|
/**
|
|
15783
|
-
* Injects a script into a target context. The script will be run at `document_idle`.
|
|
15783
|
+
* Injects a script into a target context. The script will be run at `document_idle`. If the script evaluates to a promise, the browser will wait for the promise to settle and return the resulting value.
|
|
15784
15784
|
*
|
|
15785
15785
|
* @param injection The details of the script which to inject.
|
|
15786
15786
|
* @param callback Invoked upon completion of the injection. The resulting array contains the result of execution for each frame where the injection succeeded.
|
|
@@ -15847,8 +15847,9 @@ declare namespace chrome {
|
|
|
15847
15847
|
/**
|
|
15848
15848
|
* Registers one or more content scripts for this extension.
|
|
15849
15849
|
*
|
|
15850
|
+
* @chrome-returns-extra since Pending
|
|
15850
15851
|
* @param scripts Contains a list of scripts to be registered. If there are errors during script parsing/file validation, or if the IDs specified already exist, then no scripts are registered.
|
|
15851
|
-
* @since
|
|
15852
|
+
* @since Chrome 96
|
|
15852
15853
|
*/
|
|
15853
15854
|
export function registerContentScripts(
|
|
15854
15855
|
|
|
@@ -15860,7 +15861,7 @@ declare namespace chrome {
|
|
|
15860
15861
|
*
|
|
15861
15862
|
* @param scripts Contains a list of scripts to be registered. If there are errors during script parsing/file validation, or if the IDs specified already exist, then no scripts are registered.
|
|
15862
15863
|
* @param callback A callback to be invoked once scripts have been fully registered or if an error has occurred.
|
|
15863
|
-
* @since
|
|
15864
|
+
* @since Chrome 96
|
|
15864
15865
|
*/
|
|
15865
15866
|
export function registerContentScripts(
|
|
15866
15867
|
|
|
@@ -15872,8 +15873,9 @@ declare namespace chrome {
|
|
|
15872
15873
|
/**
|
|
15873
15874
|
* Returns all dynamically registered content scripts for this extension that match the given filter.
|
|
15874
15875
|
*
|
|
15876
|
+
* @chrome-returns-extra since Pending
|
|
15875
15877
|
* @param filter An object to filter the extension's dynamically registered scripts.
|
|
15876
|
-
* @since
|
|
15878
|
+
* @since Chrome 96
|
|
15877
15879
|
*/
|
|
15878
15880
|
export function getRegisteredContentScripts(
|
|
15879
15881
|
|
|
@@ -15884,7 +15886,7 @@ declare namespace chrome {
|
|
|
15884
15886
|
* Returns all dynamically registered content scripts for this extension that match the given filter.
|
|
15885
15887
|
*
|
|
15886
15888
|
* @param filter An object to filter the extension's dynamically registered scripts.
|
|
15887
|
-
* @since
|
|
15889
|
+
* @since Chrome 96
|
|
15888
15890
|
*/
|
|
15889
15891
|
export function getRegisteredContentScripts(
|
|
15890
15892
|
|
|
@@ -15898,8 +15900,9 @@ declare namespace chrome {
|
|
|
15898
15900
|
/**
|
|
15899
15901
|
* Unregisters content scripts for this extension.
|
|
15900
15902
|
*
|
|
15903
|
+
* @chrome-returns-extra since Pending
|
|
15901
15904
|
* @param filter If specified, only unregisters dynamic content scripts which match the filter. Otherwise, all of the extension's dynamic content scripts are unregistered.
|
|
15902
|
-
* @since
|
|
15905
|
+
* @since Chrome 96
|
|
15903
15906
|
*/
|
|
15904
15907
|
export function unregisterContentScripts(
|
|
15905
15908
|
|
|
@@ -15911,7 +15914,7 @@ declare namespace chrome {
|
|
|
15911
15914
|
*
|
|
15912
15915
|
* @param filter If specified, only unregisters dynamic content scripts which match the filter. Otherwise, all of the extension's dynamic content scripts are unregistered.
|
|
15913
15916
|
* @param callback A callback to be invoked once scripts have been unregistered or if an error has occurred.
|
|
15914
|
-
* @since
|
|
15917
|
+
* @since Chrome 96
|
|
15915
15918
|
*/
|
|
15916
15919
|
export function unregisterContentScripts(
|
|
15917
15920
|
|
|
@@ -15923,8 +15926,9 @@ declare namespace chrome {
|
|
|
15923
15926
|
/**
|
|
15924
15927
|
* Updates one or more content scripts for this extension.
|
|
15925
15928
|
*
|
|
15929
|
+
* @chrome-returns-extra since Pending
|
|
15926
15930
|
* @param scripts Contains a list of scripts to be updated. A property is only updated for the existing script if it is specified in this object. If there are errors during script parsing/file validation, or if the IDs specified do not correspond to a fully registered script, then no scripts are updated.
|
|
15927
|
-
* @since
|
|
15931
|
+
* @since Chrome 96
|
|
15928
15932
|
*/
|
|
15929
15933
|
export function updateContentScripts(
|
|
15930
15934
|
|
|
@@ -15936,7 +15940,7 @@ declare namespace chrome {
|
|
|
15936
15940
|
*
|
|
15937
15941
|
* @param scripts Contains a list of scripts to be updated. A property is only updated for the existing script if it is specified in this object. If there are errors during script parsing/file validation, or if the IDs specified do not correspond to a fully registered script, then no scripts are updated.
|
|
15938
15942
|
* @param callback A callback to be invoked once scripts have been updated or if an error has occurred.
|
|
15939
|
-
* @since
|
|
15943
|
+
* @since Chrome 96
|
|
15940
15944
|
*/
|
|
15941
15945
|
export function updateContentScripts(
|
|
15942
15946
|
|
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": "2c997a3731772930"
|
|
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.72"
|
|
20
20
|
}
|