diff --git a/types/chrome/index.d.ts b/types/chrome/index.d.ts index d6ec95045c..d51c1b4e4c 100644 --- a/types/chrome/index.d.ts +++ b/types/chrome/index.d.ts @@ -2302,6 +2302,25 @@ declare namespace chrome.enterprise.platformKeys { export function removeCertificate(tokenId: string, certificate: ArrayBuffer, callback?: () => void): void; } +//////////////////// +// Enterprise Device Attributes +//////////////////// +/** + * Use the chrome.enterprise.deviceAttributes 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 ////////////////////