mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-13 21:06:14 +08:00
Chrome: chrome.enterprise.deviceAttributes added
This commit is contained in:
19
types/chrome/index.d.ts
vendored
19
types/chrome/index.d.ts
vendored
@@ -2302,6 +2302,25 @@ declare namespace chrome.enterprise.platformKeys {
|
||||
export function removeCertificate(tokenId: string, certificate: ArrayBuffer, callback?: () => void): void;
|
||||
}
|
||||
|
||||
////////////////////
|
||||
// Enterprise Device Attributes
|
||||
////////////////////
|
||||
/**
|
||||
* Use the <code>chrome.enterprise.deviceAttributes</code> API to read device attributes.
|
||||
* Permissions: "enterprise.deviceAttributes"
|
||||
* Since: Chrome 46
|
||||
* Important: This API works only on Chrome OS.
|
||||
* Note: This API is only for extensions pre-installed by policy.
|
||||
*/
|
||||
declare namespace chrome.enterprise.deviceAttributes {
|
||||
/**
|
||||
* @description Fetches the value of the device identifier of the directory API, that is generated by the server and identifies the cloud record of the device for querying in the cloud directory API.
|
||||
* @export
|
||||
* @param {(deviceId) => void} callback Called with the device identifier of the directory API when received.
|
||||
*/
|
||||
export function getDirectoryDeviceId(callback: (deviceId) => void): void;
|
||||
}
|
||||
|
||||
////////////////////
|
||||
// Events
|
||||
////////////////////
|
||||
|
||||
Reference in New Issue
Block a user