Chrome: chrome.enterprise.deviceAttributes added

This commit is contained in:
Nikolai Ommundsen
2017-11-21 13:04:30 +01:00
parent 324fb0e9ac
commit 0da22d7987

View File

@@ -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
////////////////////