@maxim_mazurok/gapi.client.androidmanagement-v1 0.2.20260318 → 0.3.20260604

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/index.d.ts +1021 -263
  2. package/package.json +1 -1
  3. package/readme.md +17 -0
package/index.d.ts CHANGED
@@ -9,7 +9,7 @@
9
9
  // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
10
10
  // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
11
11
  // Generated from: https://androidmanagement.googleapis.com/$discovery/rest?version=v1
12
- // Revision: 20260318
12
+ // Revision: 20260604
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -37,23 +37,47 @@ declare namespace gapi.client {
37
37
  /** Required. The activation code for the eSIM profile. */
38
38
  activationCode?: string;
39
39
  /** Required. The activation state of the eSIM profile once it is downloaded. */
40
- activationState?: string;
40
+ activationState?:
41
+ | 'ACTIVATION_STATE_UNSPECIFIED'
42
+ | 'ACTIVATED'
43
+ | 'NOT_ACTIVATED';
41
44
  }
42
45
  interface AdvancedSecurityOverrides {
43
46
  /** Controls Common Criteria Mode—security standards defined in the Common Criteria for Information Technology Security Evaluation (https://www.commoncriteriaportal.org/) (CC). Enabling Common Criteria Mode increases certain security components on a device, see CommonCriteriaMode for details.Warning: Common Criteria Mode enforces a strict security model typically only required for IT products used in national security systems and other highly sensitive organizations. Standard device use may be affected. Only enabled if required. If Common Criteria Mode is turned off after being enabled previously, all user-configured Wi-Fi networks may be lost and any enterprise-configured Wi-Fi networks that require user input may need to be reconfigured. */
44
- commonCriteriaMode?: string;
47
+ commonCriteriaMode?:
48
+ | 'COMMON_CRITERIA_MODE_UNSPECIFIED'
49
+ | 'COMMON_CRITERIA_MODE_DISABLED'
50
+ | 'COMMON_CRITERIA_MODE_ENABLED';
45
51
  /** Optional. Controls whether content protection, which scans for deceptive apps, is enabled. This is supported on Android 15 and above. */
46
- contentProtectionPolicy?: string;
52
+ contentProtectionPolicy?:
53
+ | 'CONTENT_PROTECTION_POLICY_UNSPECIFIED'
54
+ | 'CONTENT_PROTECTION_DISABLED'
55
+ | 'CONTENT_PROTECTION_ENFORCED'
56
+ | 'CONTENT_PROTECTION_USER_CHOICE';
47
57
  /** Controls access to developer settings: developer options and safe boot. Replaces safeBootDisabled (deprecated) and debuggingFeaturesAllowed (deprecated). On personally-owned devices with a work profile, setting this policy will not disable safe boot. In this case, a NonComplianceDetail with MANAGEMENT_MODE is reported. */
48
- developerSettings?: string;
58
+ developerSettings?:
59
+ | 'DEVELOPER_SETTINGS_UNSPECIFIED'
60
+ | 'DEVELOPER_SETTINGS_DISABLED'
61
+ | 'DEVELOPER_SETTINGS_ALLOWED';
49
62
  /** Whether Google Play Protect verification (https://support.google.com/accounts/answer/2812853) is enforced. Replaces ensureVerifyAppsEnabled (deprecated). */
50
- googlePlayProtectVerifyApps?: string;
63
+ googlePlayProtectVerifyApps?:
64
+ | 'GOOGLE_PLAY_PROTECT_VERIFY_APPS_UNSPECIFIED'
65
+ | 'VERIFY_APPS_ENFORCED'
66
+ | 'VERIFY_APPS_USER_CHOICE';
51
67
  /** Optional. Controls Memory Tagging Extension (MTE) (https://source.android.com/docs/security/test/memory-safety/arm-mte) on the device. The device needs to be rebooted to apply changes to the MTE policy. On Android 15 and above, a NonComplianceDetail with PENDING is reported if the policy change is pending a device reboot. */
52
- mtePolicy?: string;
68
+ mtePolicy?:
69
+ | 'MTE_POLICY_UNSPECIFIED'
70
+ | 'MTE_USER_CHOICE'
71
+ | 'MTE_ENFORCED'
72
+ | 'MTE_DISABLED';
53
73
  /** Personal apps that can read work profile notifications using a NotificationListenerService (https://developer.android.com/reference/android/service/notification/NotificationListenerService). By default, no personal apps (aside from system apps) can read work notifications. Each value in the list must be a package name. */
54
74
  personalAppsThatCanReadWorkNotifications?: string[];
55
75
  /** The policy for untrusted apps (apps from unknown sources) enforced on the device. Replaces install_unknown_sources_allowed (deprecated). */
56
- untrustedAppsPolicy?: string;
76
+ untrustedAppsPolicy?:
77
+ | 'UNTRUSTED_APPS_POLICY_UNSPECIFIED'
78
+ | 'DISALLOW_INSTALL'
79
+ | 'ALLOW_INSTALL_IN_PERSONAL_PROFILE_ONLY'
80
+ | 'ALLOW_INSTALL_DEVICE_WIDE';
57
81
  }
58
82
  interface AlwaysOnVpnPackage {
59
83
  /** Disallows networking when the VPN is not connected. */
@@ -69,17 +93,45 @@ declare namespace gapi.client {
69
93
  /** Optional. APN settings for override APNs. There must not be any conflict between any of APN settings provided, otherwise the policy will be rejected. Two ApnSettings are considered to conflict when all of the following fields match on both: numericOperatorId, apn, proxyAddress, proxyPort, mmsProxyAddress, mmsProxyPort, mmsc, mvnoType, protocol, roamingProtocol. If some of the APN settings result in non-compliance of INVALID_VALUE , they will be ignored. This can be set on fully managed devices on Android 10 and above. This can also be set on work profiles on Android 13 and above and only with ApnSetting's with ENTERPRISE APN type. A NonComplianceDetail with API_LEVEL is reported if the Android version is less than 10. A NonComplianceDetail with MANAGEMENT_MODE is reported for work profiles on Android versions less than 13. */
70
94
  apnSettings?: ApnSetting[];
71
95
  /** Optional. Whether override APNs are disabled or enabled. See DevicePolicyManager.setOverrideApnsEnabled (https://developer.android.com/reference/android/app/admin/DevicePolicyManager#setOverrideApnsEnabled) for more details. */
72
- overrideApns?: string;
96
+ overrideApns?:
97
+ | 'OVERRIDE_APNS_UNSPECIFIED'
98
+ | 'OVERRIDE_APNS_DISABLED'
99
+ | 'OVERRIDE_APNS_ENABLED';
73
100
  }
74
101
  interface ApnSetting {
75
102
  /** Optional. Whether User Plane resources have to be activated during every transition from CM-IDLE mode to CM-CONNECTED state for this APN. See 3GPP TS 23.501 section 5.6.13. */
76
- alwaysOnSetting?: string;
103
+ alwaysOnSetting?:
104
+ | 'ALWAYS_ON_SETTING_UNSPECIFIED'
105
+ | 'NOT_ALWAYS_ON'
106
+ | 'ALWAYS_ON';
77
107
  /** Required. Name of the APN. Policy will be rejected if this field is empty. */
78
108
  apn?: string;
79
109
  /** Required. Usage categories for the APN. Policy will be rejected if this field is empty or contains APN_TYPE_UNSPECIFIED or duplicates. Multiple APN types can be set on fully managed devices. ENTERPRISE is the only allowed APN type on work profiles. A NonComplianceDetail with MANAGEMENT_MODE is reported for any other value on work profiles. APN types that are not supported on the device or management mode will be ignored. If this results in the empty list, the APN setting will be ignored, because apnTypes is a required field. A NonComplianceDetail with INVALID_VALUE is reported if none of the APN types are supported on the device or management mode. */
80
- apnTypes?: string[];
110
+ apnTypes?:
111
+ | 'APN_TYPE_UNSPECIFIED'
112
+ | 'ENTERPRISE'
113
+ | 'BIP'
114
+ | 'CBS'
115
+ | 'DEFAULT'
116
+ | 'DUN'
117
+ | 'EMERGENCY'
118
+ | 'FOTA'
119
+ | 'HIPRI'
120
+ | 'IA'
121
+ | 'IMS'
122
+ | 'MCX'
123
+ | 'MMS'
124
+ | 'RCS'
125
+ | 'SUPL'
126
+ | 'VSIM'
127
+ | 'XCAP'[];
81
128
  /** Optional. Authentication type of the APN. */
82
- authType?: string;
129
+ authType?:
130
+ | 'AUTH_TYPE_UNSPECIFIED'
131
+ | 'NONE'
132
+ | 'PAP'
133
+ | 'CHAP'
134
+ | 'PAP_OR_CHAP';
83
135
  /** Optional. Carrier ID for the APN. A value of 0 (default) means not set and negative values are rejected. */
84
136
  carrierId?: number;
85
137
  /** Required. Human-readable name that describes the APN. Policy will be rejected if this field is empty. */
@@ -95,27 +147,58 @@ declare namespace gapi.client {
95
147
  /** Optional. The MTU (Maximum Transmission Unit) size of the IPv6 mobile interface to which the APN connected. A value of 0 (default) means not set and negative values are rejected. Supported on Android 13 and above. A NonComplianceDetail with API_LEVEL is reported if the Android version is less than 13. */
96
148
  mtuV6?: number;
97
149
  /** Optional. MVNO match type for the APN. */
98
- mvnoType?: string;
150
+ mvnoType?: 'MVNO_TYPE_UNSPECIFIED' | 'GID' | 'ICCID' | 'IMSI' | 'SPN';
99
151
  /** Optional. Radio technologies (network types) the APN may use. Policy will be rejected if this field contains NETWORK_TYPE_UNSPECIFIED or duplicates. */
100
- networkTypes?: string[];
152
+ networkTypes?:
153
+ | 'NETWORK_TYPE_UNSPECIFIED'
154
+ | 'EDGE'
155
+ | 'GPRS'
156
+ | 'GSM'
157
+ | 'HSDPA'
158
+ | 'HSPA'
159
+ | 'HSPAP'
160
+ | 'HSUPA'
161
+ | 'IWLAN'
162
+ | 'LTE'
163
+ | 'NR'
164
+ | 'TD_SCDMA'
165
+ | 'UMTS'[];
101
166
  /** Optional. The numeric operator ID of the APN. Numeric operator ID is defined as MCC (Mobile Country Code) + MNC (Mobile Network Code). */
102
167
  numericOperatorId?: string;
103
168
  /** Optional. APN password of the APN. */
104
169
  password?: string;
105
170
  /** Optional. The protocol to use to connect to this APN. */
106
- protocol?: string;
171
+ protocol?:
172
+ | 'PROTOCOL_UNSPECIFIED'
173
+ | 'IP'
174
+ | 'IPV4V6'
175
+ | 'IPV6'
176
+ | 'NON_IP'
177
+ | 'PPP'
178
+ | 'UNSTRUCTURED';
107
179
  /** Optional. The proxy address of the APN. */
108
180
  proxyAddress?: string;
109
181
  /** Optional. The proxy port of the APN. A value of 0 (default) means not set and negative values are rejected. */
110
182
  proxyPort?: number;
111
183
  /** Optional. The protocol to use to connect to this APN while the device is roaming. */
112
- roamingProtocol?: string;
184
+ roamingProtocol?:
185
+ | 'PROTOCOL_UNSPECIFIED'
186
+ | 'IP'
187
+ | 'IPV4V6'
188
+ | 'IPV6'
189
+ | 'NON_IP'
190
+ | 'PPP'
191
+ | 'UNSTRUCTURED';
113
192
  /** Optional. APN username of the APN. */
114
193
  username?: string;
115
194
  }
116
195
  interface Application {
117
196
  /** Whether this app is free, free with in-app purchases, or paid. If the pricing is unspecified, this means the app is not generally available anymore (even though it might still be available to people who own it). */
118
- appPricing?: string;
197
+ appPricing?:
198
+ | 'APP_PRICING_UNSPECIFIED'
199
+ | 'FREE'
200
+ | 'FREE_WITH_IN_APP_PURCHASE'
201
+ | 'PAID';
119
202
  /** Application tracks visible to the enterprise. */
120
203
  appTracks?: AppTrackInfo[];
121
204
  /** Versions currently available for this app. */
@@ -127,13 +210,23 @@ declare namespace gapi.client {
127
210
  /** The app category (e.g. RACING, SOCIAL, etc.) */
128
211
  category?: string;
129
212
  /** The content rating for this app. */
130
- contentRating?: string;
213
+ contentRating?:
214
+ | 'CONTENT_RATING_UNSPECIFIED'
215
+ | 'THREE_YEARS'
216
+ | 'SEVEN_YEARS'
217
+ | 'TWELVE_YEARS'
218
+ | 'SIXTEEN_YEARS'
219
+ | 'EIGHTEEN_YEARS';
131
220
  /** The localized promotional description, if available. */
132
221
  description?: string;
133
222
  /** How and to whom the package is made available. */
134
- distributionChannel?: string;
223
+ distributionChannel?:
224
+ | 'DISTRIBUTION_CHANNEL_UNSPECIFIED'
225
+ | 'PUBLIC_GOOGLE_HOSTED'
226
+ | 'PRIVATE_GOOGLE_HOSTED'
227
+ | 'PRIVATE_SELF_HOSTED';
135
228
  /** Noteworthy features (if any) of this app. */
136
- features?: string[];
229
+ features?: 'APP_FEATURE_UNSPECIFIED' | 'VPN_APP'[];
137
230
  /** Full app description, if available. */
138
231
  fullDescription?: string;
139
232
  /** A link to an image that can be used as an icon for the app. This image is suitable for use up to a pixel size of 512 x 512. */
@@ -163,7 +256,16 @@ declare namespace gapi.client {
163
256
  /** The creation time of the event. */
164
257
  createTime?: string;
165
258
  /** App event type. */
166
- eventType?: string;
259
+ eventType?:
260
+ | 'APPLICATION_EVENT_TYPE_UNSPECIFIED'
261
+ | 'INSTALLED'
262
+ | 'CHANGED'
263
+ | 'DATA_CLEARED'
264
+ | 'REMOVED'
265
+ | 'REPLACED'
266
+ | 'RESTARTED'
267
+ | 'PINNED'
268
+ | 'UNPINNED';
167
269
  }
168
270
  interface ApplicationPermission {
169
271
  /** A longer description of the permission, providing more detail on what it affects. Localized. */
@@ -177,19 +279,45 @@ declare namespace gapi.client {
177
279
  /** List of the app’s track IDs that a device belonging to the enterprise can access. If the list contains multiple track IDs, devices receive the latest version among all accessible tracks. If the list contains no track IDs, devices only have access to the app’s production track. More details about each track are available in AppTrackInfo. */
178
280
  accessibleTrackIds?: string[];
179
281
  /** Specifies whether the app is allowed networking when the VPN is not connected and alwaysOnVpnPackage.lockdownEnabled is enabled. If set to VPN_LOCKDOWN_ENFORCED, the app is not allowed networking, and if set to VPN_LOCKDOWN_EXEMPTION, the app is allowed networking. Only supported on devices running Android 10 and above. If this is not supported by the device, the device will contain a NonComplianceDetail with non_compliance_reason set to API_LEVEL and a fieldPath. If this is not applicable to the app, the device will contain a NonComplianceDetail with non_compliance_reason set to UNSUPPORTED and a fieldPath. The fieldPath is set to applications[i].alwaysOnVpnLockdownExemption, where i is the index of the package in the applications policy. */
180
- alwaysOnVpnLockdownExemption?: string;
282
+ alwaysOnVpnLockdownExemption?:
283
+ | 'ALWAYS_ON_VPN_LOCKDOWN_EXEMPTION_UNSPECIFIED'
284
+ | 'VPN_LOCKDOWN_ENFORCED'
285
+ | 'VPN_LOCKDOWN_EXEMPTION';
181
286
  /** Controls the auto-update mode for the app. */
182
- autoUpdateMode?: string;
287
+ autoUpdateMode?:
288
+ | 'AUTO_UPDATE_MODE_UNSPECIFIED'
289
+ | 'AUTO_UPDATE_DEFAULT'
290
+ | 'AUTO_UPDATE_POSTPONED'
291
+ | 'AUTO_UPDATE_HIGH_PRIORITY';
183
292
  /** Controls whether the app can communicate with itself across a device’s work and personal profiles, subject to user consent. */
184
- connectedWorkAndPersonalApp?: string;
293
+ connectedWorkAndPersonalApp?:
294
+ | 'CONNECTED_WORK_AND_PERSONAL_APP_UNSPECIFIED'
295
+ | 'CONNECTED_WORK_AND_PERSONAL_APP_DISALLOWED'
296
+ | 'CONNECTED_WORK_AND_PERSONAL_APP_ALLOWED';
185
297
  /** Optional. Whether the app is allowed to act as a credential provider on Android 14 and above. */
186
- credentialProviderPolicy?: string;
298
+ credentialProviderPolicy?:
299
+ | 'CREDENTIAL_PROVIDER_POLICY_UNSPECIFIED'
300
+ | 'CREDENTIAL_PROVIDER_ALLOWED';
187
301
  /** Optional. Configuration for this custom app.install_type must be set to CUSTOM for this to be set. */
188
302
  customAppConfig?: CustomAppConfig;
189
303
  /** The default policy for all permissions requested by the app. If specified, this overrides the policy-level default_permission_policy which applies to all apps. It does not override the permission_grants which applies to all apps. */
190
- defaultPermissionPolicy?: string;
304
+ defaultPermissionPolicy?:
305
+ | 'PERMISSION_POLICY_UNSPECIFIED'
306
+ | 'PROMPT'
307
+ | 'GRANT'
308
+ | 'DENY';
191
309
  /** The scopes delegated to the app from Android Device Policy. These provide additional privileges for the applications they are applied to. */
192
- delegatedScopes?: string[];
310
+ delegatedScopes?:
311
+ | 'DELEGATED_SCOPE_UNSPECIFIED'
312
+ | 'CERT_INSTALL'
313
+ | 'MANAGED_CONFIGURATIONS'
314
+ | 'BLOCK_UNINSTALL'
315
+ | 'PERMISSION_GRANT'
316
+ | 'PACKAGE_ACCESS'
317
+ | 'ENABLE_SYSTEM_APP'
318
+ | 'NETWORK_ACTIVITY_LOGS'
319
+ | 'SECURITY_LOGS'
320
+ | 'CERT_SELECTION'[];
193
321
  /** Whether the app is disabled. When disabled, the app data is still preserved. */
194
322
  disabled?: boolean;
195
323
  /** Configuration to enable this app as an extension app, with the capability of interacting with Android Device Policy offline.This field can be set for at most one app. If there is any app with COMPANION_APP role, this field cannot be set.The signing key certificate fingerprint of the app on the device must match one of the entries in ApplicationPolicy.signingKeyCerts or ExtensionConfig.signingKeyFingerprintsSha256 (deprecated) or the signing key certificate fingerprints obtained from Play Store for the app to be able to communicate with Android Device Policy. If the app is not on Play Store and if ApplicationPolicy.signingKeyCerts and ExtensionConfig.signingKeyFingerprintsSha256 (deprecated) are not set, a NonComplianceDetail with INVALID_VALUE is reported. */
@@ -199,7 +327,15 @@ declare namespace gapi.client {
199
327
  /** Optional. Amongst apps with installType set to: FORCE_INSTALLED PREINSTALLEDthis controls the relative priority of installation. A value of 0 (default) means this app has no priority over other apps. For values between 1 and 10,000, a lower value means a higher priority. Values outside of the range 0 to 10,000 inclusive are rejected. */
200
328
  installPriority?: number;
201
329
  /** The type of installation to perform. */
202
- installType?: string;
330
+ installType?:
331
+ | 'INSTALL_TYPE_UNSPECIFIED'
332
+ | 'PREINSTALLED'
333
+ | 'FORCE_INSTALLED'
334
+ | 'BLOCKED'
335
+ | 'AVAILABLE'
336
+ | 'REQUIRED_FOR_SETUP'
337
+ | 'KIOSK'
338
+ | 'CUSTOM';
203
339
  /** Whether the app is allowed to lock itself in full-screen mode. DEPRECATED. Use InstallType KIOSK or kioskCustomLauncherEnabled to configure a dedicated device. */
204
340
  lockTaskAllowed?: boolean;
205
341
  /** Managed configuration applied to the app. The format for the configuration is dictated by the ManagedProperty values supported by the app. Each field name in the managed configuration must match the key field of the ManagedProperty. The field value must be compatible with the type of the ManagedProperty: *type* *JSON value* BOOL true or false STRING string INTEGER number CHOICE string MULTISELECT array of strings HIDDEN string BUNDLE_ARRAY array of objects Note: string values cannot be longer than 65535 characters. */
@@ -213,15 +349,28 @@ declare namespace gapi.client {
213
349
  /** Explicit permission grants or denials for the app. These values override the default_permission_policy and permission_grants which apply to all apps. */
214
350
  permissionGrants?: PermissionGrant[];
215
351
  /** Optional. ID of the preferential network the application uses. There must be a configuration for the specified network ID in preferentialNetworkServiceConfigs. If set to PREFERENTIAL_NETWORK_ID_UNSPECIFIED, the application will use the default network ID specified in defaultPreferentialNetworkId. See the documentation of defaultPreferentialNetworkId for the list of apps excluded from this defaulting. This applies on both work profiles and fully managed devices on Android 13 and above. */
216
- preferentialNetworkId?: string;
352
+ preferentialNetworkId?:
353
+ | 'PREFERENTIAL_NETWORK_ID_UNSPECIFIED'
354
+ | 'NO_PREFERENTIAL_NETWORK'
355
+ | 'PREFERENTIAL_NETWORK_ID_ONE'
356
+ | 'PREFERENTIAL_NETWORK_ID_TWO'
357
+ | 'PREFERENTIAL_NETWORK_ID_THREE'
358
+ | 'PREFERENTIAL_NETWORK_ID_FOUR'
359
+ | 'PREFERENTIAL_NETWORK_ID_FIVE';
217
360
  /** Optional. Roles the app has.Apps having certain roles can be exempted from power and background execution restrictions, suspension and hibernation on Android 14 and above. The user control can also be disallowed for apps with certain roles on Android 11 and above. Refer to the documentation of each RoleType for more details.The app is notified about the roles that are set for it if the app has a notification receiver service with . The app is notified whenever its roles are updated or after the app is installed when it has nonempty list of roles. The app can use this notification to bootstrap itself after the installation. See Integrate with the AMAPI SDK (https://developers.google.com/android/management/sdk-integration) and Manage app roles (https://developers.google.com/android/management/app-roles) guides for more details on the requirements for the service.For the exemptions to be applied and the app to be notified about the roles, the signing key certificate fingerprint of the app on the device must match one of the signing key certificate fingerprints obtained from Play Store or one of the entries in ApplicationPolicy.signingKeyCerts. Otherwise, a NonComplianceDetail with APP_SIGNING_CERT_MISMATCH is reported.There must not be duplicate roles with the same roleType. Multiple apps cannot hold a role with the same roleType. A role with type ROLE_TYPE_UNSPECIFIED is not allowed. */
218
361
  roles?: Role[];
219
362
  /** Optional. Signing key certificates of the app.This field is required in the following cases: The app has installType set to CUSTOM (i.e. a custom app). The app has roles set to a nonempty list and the app does not exist on the Play Store. The app has extensionConfig set (i.e. an extension app) but ExtensionConfig.signingKeyFingerprintsSha256 (deprecated) is not set and the app does not exist on the Play Store.If this field is not set for a custom app, the policy is rejected. If it is not set when required for a non-custom app, a NonComplianceDetail with INVALID_VALUE is reported.For other cases, this field is optional and the signing key certificates obtained from Play Store are used.See following policy settings to see how this field is used: choosePrivateKeyRules ApplicationPolicy.InstallType.CUSTOM ApplicationPolicy.extensionConfig ApplicationPolicy.roles */
220
363
  signingKeyCerts?: ApplicationSigningKeyCert[];
221
364
  /** Optional. Specifies whether user control is permitted for the app. User control includes user actions like force-stopping and clearing app data. Certain types of apps have special treatment, see USER_CONTROL_SETTINGS_UNSPECIFIED and USER_CONTROL_ALLOWED for more details. */
222
- userControlSettings?: string;
365
+ userControlSettings?:
366
+ | 'USER_CONTROL_SETTINGS_UNSPECIFIED'
367
+ | 'USER_CONTROL_ALLOWED'
368
+ | 'USER_CONTROL_DISALLOWED';
223
369
  /** Specifies whether the app installed in the work profile is allowed to add widgets to the home screen. */
224
- workProfileWidgets?: string;
370
+ workProfileWidgets?:
371
+ | 'WORK_PROFILE_WIDGETS_UNSPECIFIED'
372
+ | 'WORK_PROFILE_WIDGETS_ALLOWED'
373
+ | 'WORK_PROFILE_WIDGETS_DISALLOWED';
225
374
  }
226
375
  interface ApplicationPolicyChange {
227
376
  /** If ApplicationPolicy.packageName matches an existing ApplicationPolicy object within the Policy being modified, then that object will be updated. Otherwise, it will be added to the end of the Policy.applications. */
@@ -231,7 +380,12 @@ declare namespace gapi.client {
231
380
  }
232
381
  interface ApplicationReport {
233
382
  /** The source of the package. */
234
- applicationSource?: string;
383
+ applicationSource?:
384
+ | 'APPLICATION_SOURCE_UNSPECIFIED'
385
+ | 'SYSTEM_APP_FACTORY_VERSION'
386
+ | 'SYSTEM_APP_UPDATED_VERSION'
387
+ | 'INSTALLED_FROM_PLAY_STORE'
388
+ | 'CUSTOM';
235
389
  /** The display name of the app. */
236
390
  displayName?: string;
237
391
  /** The list of app events which have occurred in the last 30 hours. */
@@ -244,12 +398,17 @@ declare namespace gapi.client {
244
398
  packageName?: string;
245
399
  /** The SHA-256 hash of the app's APK file, which can be used to verify the app hasn't been modified. Each byte of the hash value is represented as a two-digit hexadecimal number. */
246
400
  packageSha256Hash?: string;
247
- /** The SHA-1 hash of each android.content.pm.Signature (https://developer.android.com/reference/android/content/pm/Signature.html) associated with the app package. Each byte of each hash value is represented as a two-digit hexadecimal number. */
401
+ /** Deprecated. Use signingKeyCerts instead. The SHA-1 hash of each android.content.pm.Signature (https://developer.android.com/reference/android/content/pm/Signature.html) associated with the app package. Each byte of each hash value is represented as a two-digit hexadecimal number. */
248
402
  signingKeyCertFingerprints?: string[];
403
+ /** Output only. Signing key certificates of the app. */
404
+ signingKeyCerts?: ApplicationSigningKeyCert[];
249
405
  /** Application state. */
250
- state?: string;
406
+ state?: 'APPLICATION_STATE_UNSPECIFIED' | 'REMOVED' | 'INSTALLED';
251
407
  /** Whether the app is user facing. */
252
- userFacingType?: string;
408
+ userFacingType?:
409
+ | 'USER_FACING_TYPE_UNSPECIFIED'
410
+ | 'NOT_USER_FACING'
411
+ | 'USER_FACING';
253
412
  /** The app version code, which can be used to determine whether one version is more recent than another. */
254
413
  versionCode?: number;
255
414
  /** The app version as displayed to the user. */
@@ -305,7 +464,10 @@ declare namespace gapi.client {
305
464
  /** User ID of the admin app from the which the change was requested. */
306
465
  adminUserId?: number;
307
466
  /** Whether the backup service is enabled */
308
- backupServiceState?: string;
467
+ backupServiceState?:
468
+ | 'BACKUP_SERVICE_STATE_UNSPECIFIED'
469
+ | 'BACKUP_SERVICE_DISABLED'
470
+ | 'BACKUP_SERVICE_ENABLED';
309
471
  }
310
472
  interface BatchUsageLogEvents {
311
473
  /** If present, the name of the device in the form ‘enterprises/{enterpriseId}/devices/{deviceId}’ */
@@ -321,7 +483,10 @@ declare namespace gapi.client {
321
483
  /** Number of days the policy is non-compliant before the device or work profile is blocked. To block access immediately, set to 0. blockAfterDays must be less than wipeAfterDays. */
322
484
  blockAfterDays?: number;
323
485
  /** Specifies the scope of this BlockAction. Only applicable to devices that are company-owned. */
324
- blockScope?: string;
486
+ blockScope?:
487
+ | 'BLOCK_SCOPE_UNSPECIFIED'
488
+ | 'BLOCK_SCOPE_WORK_PROFILE'
489
+ | 'BLOCK_SCOPE_DEVICE';
325
490
  }
326
491
  interface CertAuthorityInstalledEvent {
327
492
  /** Subject of the certificate. */
@@ -371,7 +536,13 @@ declare namespace gapi.client {
371
536
  /** The duration for which the command is valid. The command will expire if not executed by the device during this time. The default duration if unspecified is ten minutes. There is no maximum duration. */
372
537
  duration?: string;
373
538
  /** If the command failed, an error code explaining the failure. This is not set when the command is cancelled by the caller. For reasoning about command errors, prefer fields in the following order (most preferred first): 1. Command-specific fields like clearAppsDataStatus, startLostModeStatus, or similar, if they exist. 2. This field, if set. 3. The generic error field in the Operation that wraps the command. */
374
- errorCode?: string;
539
+ errorCode?:
540
+ | 'COMMAND_ERROR_CODE_UNSPECIFIED'
541
+ | 'UNKNOWN'
542
+ | 'API_LEVEL'
543
+ | 'MANAGEMENT_MODE'
544
+ | 'INVALID_VALUE'
545
+ | 'UNSUPPORTED';
375
546
  /** Output only. Status of an ADD_ESIM or REMOVE_ESIM command. */
376
547
  esimStatus?: EsimCommandStatus;
377
548
  /** For commands of type RESET_PASSWORD, optionally specifies the new password. Note: The new password must be at least 6 characters long if it is numeric in case of Android 14 devices. Else the command will fail with INVALID_VALUE. */
@@ -383,7 +554,11 @@ declare namespace gapi.client {
383
554
  /** Output only. Status of the REQUEST_DEVICE_INFO command. */
384
555
  requestDeviceInfoStatus?: RequestDeviceInfoStatus;
385
556
  /** For commands of type RESET_PASSWORD, optionally specifies flags. */
386
- resetPasswordFlags?: string[];
557
+ resetPasswordFlags?:
558
+ | 'RESET_PASSWORD_FLAG_UNSPECIFIED'
559
+ | 'REQUIRE_ENTRY'
560
+ | 'DO_NOT_ASK_CREDENTIALS_ON_BOOT'
561
+ | 'LOCK_NOW'[];
387
562
  /** Parameters for the START_LOST_MODE command to put the device into lost mode. See StartLostModeParams. If this is set, then it is suggested that type should not be set. In this case, the server automatically sets it to START_LOST_MODE. It is also acceptable to explicitly set type to START_LOST_MODE. */
388
563
  startLostModeParams?: StartLostModeParams;
389
564
  /** Output only. Status of the START_LOST_MODE command to put the device into lost mode. See StartLostModeStatus. */
@@ -393,7 +568,19 @@ declare namespace gapi.client {
393
568
  /** Output only. Status of the STOP_LOST_MODE command to take the device out of lost mode. See StopLostModeStatus. */
394
569
  stopLostModeStatus?: StopLostModeStatus;
395
570
  /** The type of the command. */
396
- type?: string;
571
+ type?:
572
+ | 'COMMAND_TYPE_UNSPECIFIED'
573
+ | 'LOCK'
574
+ | 'RESET_PASSWORD'
575
+ | 'REBOOT'
576
+ | 'RELINQUISH_OWNERSHIP'
577
+ | 'CLEAR_APP_DATA'
578
+ | 'START_LOST_MODE'
579
+ | 'STOP_LOST_MODE'
580
+ | 'ADD_ESIM'
581
+ | 'REMOVE_ESIM'
582
+ | 'REQUEST_DEVICE_INFO'
583
+ | 'WIPE';
397
584
  /** The resource name of the user that owns the device in the form enterprises/{enterpriseId}/users/{userId}. This is automatically generated by the server based on the device the command is sent to. */
398
585
  userName?: string;
399
586
  /** Optional. Parameters for the WIPE command to wipe the device. If this is set, then it is suggested that type should not be set. In this case, the server automatically sets it to WIPE. It is also acceptable to explicitly set type to WIPE. */
@@ -401,9 +588,17 @@ declare namespace gapi.client {
401
588
  }
402
589
  interface CommonCriteriaModeInfo {
403
590
  /** Whether Common Criteria Mode is enabled. */
404
- commonCriteriaModeStatus?: string;
591
+ commonCriteriaModeStatus?:
592
+ | 'COMMON_CRITERIA_MODE_STATUS_UNKNOWN'
593
+ | 'COMMON_CRITERIA_MODE_DISABLED'
594
+ | 'COMMON_CRITERIA_MODE_ENABLED';
405
595
  /** Output only. The status of policy signature verification. */
406
- policySignatureVerificationStatus?: string;
596
+ policySignatureVerificationStatus?:
597
+ | 'POLICY_SIGNATURE_VERIFICATION_STATUS_UNSPECIFIED'
598
+ | 'POLICY_SIGNATURE_VERIFICATION_DISABLED'
599
+ | 'POLICY_SIGNATURE_VERIFICATION_SUCCEEDED'
600
+ | 'POLICY_SIGNATURE_VERIFICATION_NOT_SUPPORTED'
601
+ | 'POLICY_SIGNATURE_VERIFICATION_FAILED';
407
602
  }
408
603
  interface ComplianceRule {
409
604
  /** A condition which is satisfied if the Android Framework API level on the device doesn't meet a minimum requirement. */
@@ -449,17 +644,34 @@ declare namespace gapi.client {
449
644
  }
450
645
  interface CrossProfilePolicies {
451
646
  /** Optional. Controls whether personal profile apps can invoke app functions exposed by apps in the work profile. */
452
- crossProfileAppFunctions?: string;
647
+ crossProfileAppFunctions?:
648
+ | 'CROSS_PROFILE_APP_FUNCTIONS_UNSPECIFIED'
649
+ | 'CROSS_PROFILE_APP_FUNCTIONS_DISALLOWED'
650
+ | 'CROSS_PROFILE_APP_FUNCTIONS_ALLOWED';
453
651
  /** Whether text copied from one profile (personal or work) can be pasted in the other profile. */
454
- crossProfileCopyPaste?: string;
652
+ crossProfileCopyPaste?:
653
+ | 'CROSS_PROFILE_COPY_PASTE_UNSPECIFIED'
654
+ | 'COPY_FROM_WORK_TO_PERSONAL_DISALLOWED'
655
+ | 'CROSS_PROFILE_COPY_PASTE_ALLOWED';
455
656
  /** Whether data from one profile (personal or work) can be shared with apps in the other profile. Specifically controls simple data sharing via intents. Management of other cross-profile communication channels, such as contact search, copy/paste, or connected work & personal apps, are configured separately. */
456
- crossProfileDataSharing?: string;
657
+ crossProfileDataSharing?:
658
+ | 'CROSS_PROFILE_DATA_SHARING_UNSPECIFIED'
659
+ | 'CROSS_PROFILE_DATA_SHARING_DISALLOWED'
660
+ | 'DATA_SHARING_FROM_WORK_TO_PERSONAL_DISALLOWED'
661
+ | 'CROSS_PROFILE_DATA_SHARING_ALLOWED';
457
662
  /** List of apps which are excluded from the ShowWorkContactsInPersonalProfile setting. For this to be set, ShowWorkContactsInPersonalProfile must be set to one of the following values: SHOW_WORK_CONTACTS_IN_PERSONAL_PROFILE_ALLOWED. In this case, these exemptions act as a blocklist. SHOW_WORK_CONTACTS_IN_PERSONAL_PROFILE_DISALLOWED. In this case, these exemptions act as an allowlist. SHOW_WORK_CONTACTS_IN_PERSONAL_PROFILE_DISALLOWED_EXCEPT_SYSTEM. In this case, these exemptions act as an allowlist, in addition to the already allowlisted system apps.Supported on Android 14 and above. A NonComplianceDetail with API_LEVEL is reported if the Android version is less than 14. */
458
663
  exemptionsToShowWorkContactsInPersonalProfile?: PackageNameList;
459
664
  /** Whether personal apps can access contacts stored in the work profile.See also exemptions_to_show_work_contacts_in_personal_profile. */
460
- showWorkContactsInPersonalProfile?: string;
665
+ showWorkContactsInPersonalProfile?:
666
+ | 'SHOW_WORK_CONTACTS_IN_PERSONAL_PROFILE_UNSPECIFIED'
667
+ | 'SHOW_WORK_CONTACTS_IN_PERSONAL_PROFILE_DISALLOWED'
668
+ | 'SHOW_WORK_CONTACTS_IN_PERSONAL_PROFILE_ALLOWED'
669
+ | 'SHOW_WORK_CONTACTS_IN_PERSONAL_PROFILE_DISALLOWED_EXCEPT_SYSTEM';
461
670
  /** Specifies the default behaviour for work profile widgets. If the policy does not specify work_profile_widgets for a specific application, it will behave according to the value specified here. */
462
- workProfileWidgetsDefault?: string;
671
+ workProfileWidgetsDefault?:
672
+ | 'WORK_PROFILE_WIDGETS_DEFAULT_UNSPECIFIED'
673
+ | 'WORK_PROFILE_WIDGETS_DEFAULT_ALLOWED'
674
+ | 'WORK_PROFILE_WIDGETS_DEFAULT_DISALLOWED';
463
675
  }
464
676
  interface CryptoSelfTestCompletedEvent {
465
677
  /** Whether the test succeeded. */
@@ -467,7 +679,10 @@ declare namespace gapi.client {
467
679
  }
468
680
  interface CustomAppConfig {
469
681
  /** Optional. User uninstall settings of the custom app. */
470
- userUninstallSettings?: string;
682
+ userUninstallSettings?:
683
+ | 'USER_UNINSTALL_SETTINGS_UNSPECIFIED'
684
+ | 'DISALLOW_UNINSTALL_BY_USER'
685
+ | 'ALLOW_UNINSTALL_BY_USER';
471
686
  }
472
687
  interface Date {
473
688
  /** Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant. */
@@ -483,13 +698,26 @@ declare namespace gapi.client {
483
698
  }
484
699
  interface DefaultApplicationContext {
485
700
  /** Output only. The scope of non-compliant default application setting. */
486
- defaultApplicationScope?: string;
701
+ defaultApplicationScope?:
702
+ | 'DEFAULT_APPLICATION_SCOPE_UNSPECIFIED'
703
+ | 'SCOPE_FULLY_MANAGED'
704
+ | 'SCOPE_WORK_PROFILE'
705
+ | 'SCOPE_PERSONAL_PROFILE';
487
706
  }
488
707
  interface DefaultApplicationInfo {
489
708
  /** Output only. Details on the default application setting attempts, in the same order as listed in defaultApplications. */
490
709
  defaultApplicationSettingAttempts?: DefaultApplicationSettingAttempt[];
491
710
  /** Output only. The default application type. */
492
- defaultApplicationType?: string;
711
+ defaultApplicationType?:
712
+ | 'DEFAULT_APPLICATION_TYPE_UNSPECIFIED'
713
+ | 'DEFAULT_ASSISTANT'
714
+ | 'DEFAULT_BROWSER'
715
+ | 'DEFAULT_CALL_REDIRECTION'
716
+ | 'DEFAULT_CALL_SCREENING'
717
+ | 'DEFAULT_DIALER'
718
+ | 'DEFAULT_HOME'
719
+ | 'DEFAULT_SMS'
720
+ | 'DEFAULT_WALLET';
493
721
  /** Output only. The package name of the current default application. */
494
722
  packageName?: string;
495
723
  }
@@ -497,13 +725,31 @@ declare namespace gapi.client {
497
725
  /** Required. The list of applications that can be set as the default app for a given type. This list must not be empty or contain duplicates. The first app in the list that is installed and qualified for the defaultApplicationType (e.g. SMS app for DEFAULT_SMS) is set as the default app. The signing key certificate fingerprint of the app on the device must also match one of the signing key certificate fingerprints obtained from Play Store or one of the entries in ApplicationPolicy.signingKeyCerts in order to be set as the default.If the defaultApplicationScopes contains SCOPE_FULLY_MANAGED or SCOPE_WORK_PROFILE, the app must have an entry in applications with installType set to a value other than BLOCKED.A NonComplianceDetail with APP_NOT_INSTALLED reason and DEFAULT_APPLICATION_SETTING_FAILED_FOR_SCOPE specific reason is reported if none of the apps in the list are installed. A NonComplianceDetail with INVALID_VALUE reason and DEFAULT_APPLICATION_SETTING_FAILED_FOR_SCOPE specific reason is reported if at least one app is installed but the policy fails to apply due to other reasons (e.g. the app is not of the right type).When applying to SCOPE_PERSONAL_PROFILE on a company-owned device with a work profile, only pre-installed system apps can be set as the default. A NonComplianceDetail with INVALID_VALUE reason and DEFAULT_APPLICATION_SETTING_FAILED_FOR_SCOPE specific reason is reported if the policy fails to apply to the personal profile. */
498
726
  defaultApplications?: DefaultApplication[];
499
727
  /** Required. The scopes to which the policy should be applied. This list must not be empty or contain duplicates.A NonComplianceDetail with MANAGEMENT_MODE reason and DEFAULT_APPLICATION_SETTING_UNSUPPORTED_SCOPES specific reason is reported if none of the specified scopes can be applied to the management mode (e.g. a fully managed device receives a policy with only SCOPE_PERSONAL_PROFILE in the list). */
500
- defaultApplicationScopes?: string[];
728
+ defaultApplicationScopes?:
729
+ | 'DEFAULT_APPLICATION_SCOPE_UNSPECIFIED'
730
+ | 'SCOPE_FULLY_MANAGED'
731
+ | 'SCOPE_WORK_PROFILE'
732
+ | 'SCOPE_PERSONAL_PROFILE'[];
501
733
  /** Required. The app type to set the default application. */
502
- defaultApplicationType?: string;
734
+ defaultApplicationType?:
735
+ | 'DEFAULT_APPLICATION_TYPE_UNSPECIFIED'
736
+ | 'DEFAULT_ASSISTANT'
737
+ | 'DEFAULT_BROWSER'
738
+ | 'DEFAULT_CALL_REDIRECTION'
739
+ | 'DEFAULT_CALL_SCREENING'
740
+ | 'DEFAULT_DIALER'
741
+ | 'DEFAULT_HOME'
742
+ | 'DEFAULT_SMS'
743
+ | 'DEFAULT_WALLET';
503
744
  }
504
745
  interface DefaultApplicationSettingAttempt {
505
746
  /** Output only. The outcome of setting the app as the default. */
506
- attemptOutcome?: string;
747
+ attemptOutcome?:
748
+ | 'ATTEMPT_OUTCOME_UNSPECIFIED'
749
+ | 'SUCCESS'
750
+ | 'APP_NOT_INSTALLED'
751
+ | 'APP_SIGNING_CERT_MISMATCH'
752
+ | 'OTHER_FAILURE';
507
753
  /** Output only. The package name of the attempted application. */
508
754
  packageName?: string;
509
755
  }
@@ -519,7 +765,15 @@ declare namespace gapi.client {
519
765
  /** The version of the policy currently applied to the device. */
520
766
  appliedPolicyVersion?: string;
521
767
  /** The state currently applied to the device. */
522
- appliedState?: string;
768
+ appliedState?:
769
+ | 'DEVICE_STATE_UNSPECIFIED'
770
+ | 'ACTIVE'
771
+ | 'DISABLED'
772
+ | 'DELETED'
773
+ | 'PROVISIONING'
774
+ | 'LOST'
775
+ | 'PREPARING_FOR_MIGRATION'
776
+ | 'DEACTIVATED_BY_DEVICE_FINANCE';
523
777
  /** Information about Common Criteria Mode—security standards defined in the Common Criteria for Information Technology Security Evaluation (https://www.commoncriteriaportal.org/) (CC).This information is only available if statusReportingSettings.commonCriteriaModeEnabled is true in the device's policy the device is company-owned. */
524
778
  commonCriteriaModeInfo?: CommonCriteriaModeInfo;
525
779
  /** Output only. The default application information for the DefaultApplicationType. This information is only available if defaultApplicationInfoReportingEnabled is true in the device's policy. Available on Android 16 and above.All app types are reported on fully managed devices. DEFAULT_BROWSER, DEFAULT_CALL_REDIRECTION, DEFAULT_CALL_SCREENING and DEFAULT_DIALER types are reported for the work profiles on company-owned devices with a work profile and personally-owned devices. DEFAULT_WALLET is also reported for company-owned devices with a work profile, but will only include work profile information. */
@@ -549,7 +803,10 @@ declare namespace gapi.client {
549
803
  /** The last time the device sent a status report. */
550
804
  lastStatusReportTime?: string;
551
805
  /** The type of management mode Android Device Policy takes on the device. This influences which policy settings are supported. */
552
- managementMode?: string;
806
+ managementMode?:
807
+ | 'MANAGEMENT_MODE_UNSPECIFIED'
808
+ | 'DEVICE_OWNER'
809
+ | 'PROFILE_OWNER';
553
810
  /** Events related to memory and storage measurements in chronological order. This information is only available if memoryInfoEnabled is true in the device's policy.Events are retained for a certain period of time and old events are deleted. */
554
811
  memoryEvents?: MemoryEvent[];
555
812
  /** Memory information: contains information about device memory and storage. */
@@ -561,7 +818,10 @@ declare namespace gapi.client {
561
818
  /** Details about policy settings that the device is not compliant with. */
562
819
  nonComplianceDetails?: NonComplianceDetail[];
563
820
  /** Ownership of the managed device. */
564
- ownership?: string;
821
+ ownership?:
822
+ | 'OWNERSHIP_UNSPECIFIED'
823
+ | 'COMPANY_OWNED'
824
+ | 'PERSONALLY_OWNED';
565
825
  /** Whether the device is compliant with its policy. */
566
826
  policyCompliant?: boolean;
567
827
  /** The name of the policy applied to the device, in the form enterprises/{enterpriseId}/policies/{policyId}. If not specified, the policy_name for the device's user is applied. This field can be modified by a patch request. You can specify only the policyId when calling enterprises.devices.patch, as long as the policyId doesn’t contain any slashes. The rest of the policy name is inferred. */
@@ -575,7 +835,15 @@ declare namespace gapi.client {
575
835
  /** Detailed information about the device software. This information is only available if softwareInfoEnabled is true in the device's policy. */
576
836
  softwareInfo?: SoftwareInfo;
577
837
  /** The state to be applied to the device. This field can be modified by a patch request. Note that when calling enterprises.devices.patch, ACTIVE and DISABLED are the only allowable values. To enter the device into a DELETED state, call enterprises.devices.delete. */
578
- state?: string;
838
+ state?:
839
+ | 'DEVICE_STATE_UNSPECIFIED'
840
+ | 'ACTIVE'
841
+ | 'DISABLED'
842
+ | 'DELETED'
843
+ | 'PROVISIONING'
844
+ | 'LOST'
845
+ | 'PREPARING_FOR_MIGRATION'
846
+ | 'DEACTIVATED_BY_DEVICE_FINANCE';
579
847
  /** Map of selected system properties name and value related to the device. This information is only available if systemPropertiesEnabled is true in the device's policy. */
580
848
  systemProperties?: {[P in string]: string};
581
849
  /** The user who owns the device. */
@@ -587,19 +855,37 @@ declare namespace gapi.client {
587
855
  /** Optional. Access Point Name (APN) policy. Configuration for Access Point Names (APNs) which may override any other APNs on the device. See OVERRIDE_APNS_ENABLED and overrideApns for details. */
588
856
  apnPolicy?: ApnPolicy;
589
857
  /** Optional. Controls whether Bluetooth sharing is allowed. */
590
- bluetoothSharing?: string;
858
+ bluetoothSharing?:
859
+ | 'BLUETOOTH_SHARING_UNSPECIFIED'
860
+ | 'BLUETOOTH_SHARING_ALLOWED'
861
+ | 'BLUETOOTH_SHARING_DISALLOWED';
591
862
  /** Controls Wi-Fi configuring privileges. Based on the option set, user will have either full or limited or no control in configuring Wi-Fi networks. */
592
- configureWifi?: string;
863
+ configureWifi?:
864
+ | 'CONFIGURE_WIFI_UNSPECIFIED'
865
+ | 'ALLOW_CONFIGURING_WIFI'
866
+ | 'DISALLOW_ADD_WIFI_CONFIG'
867
+ | 'DISALLOW_CONFIGURING_WIFI';
593
868
  /** Optional. Preferential network service configuration. Setting this field will override preferentialNetworkService. This can be set on both work profiles and fully managed devices on Android 13 and above. See 5G network slicing (https://developers.google.com/android/management/5g-network-slicing) guide for more details. */
594
869
  preferentialNetworkServiceSettings?: PreferentialNetworkServiceSettings;
595
870
  /** Optional. The global private DNS settings. */
596
871
  privateDnsSettings?: PrivateDnsSettings;
597
872
  /** Controls tethering settings. Based on the value set, the user is partially or fully disallowed from using different forms of tethering. */
598
- tetheringSettings?: string;
873
+ tetheringSettings?:
874
+ | 'TETHERING_SETTINGS_UNSPECIFIED'
875
+ | 'ALLOW_ALL_TETHERING'
876
+ | 'DISALLOW_WIFI_TETHERING'
877
+ | 'DISALLOW_ALL_TETHERING';
599
878
  /** Controls what files and/or data can be transferred via USB. Supported only on company-owned devices. */
600
- usbDataAccess?: string;
879
+ usbDataAccess?:
880
+ | 'USB_DATA_ACCESS_UNSPECIFIED'
881
+ | 'ALLOW_USB_DATA_TRANSFER'
882
+ | 'DISALLOW_USB_FILE_TRANSFER'
883
+ | 'DISALLOW_USB_DATA_TRANSFER';
601
884
  /** Controls configuring and using Wi-Fi direct settings. Supported on company-owned devices running Android 13 and above. */
602
- wifiDirectSettings?: string;
885
+ wifiDirectSettings?:
886
+ | 'WIFI_DIRECT_SETTINGS_UNSPECIFIED'
887
+ | 'ALLOW_WIFI_DIRECT'
888
+ | 'DISALLOW_WIFI_DIRECT';
603
889
  /** Optional. Wi-Fi roaming policy. */
604
890
  wifiRoamingPolicy?: WifiRoamingPolicy;
605
891
  /** Restrictions on which Wi-Fi SSIDs the device can connect to. Note that this does not affect which networks can be configured on the device. Supported on company-owned devices running Android 13 and above. */
@@ -607,17 +893,38 @@ declare namespace gapi.client {
607
893
  }
608
894
  interface DeviceRadioState {
609
895
  /** Controls whether airplane mode can be toggled by the user or not. */
610
- airplaneModeState?: string;
896
+ airplaneModeState?:
897
+ | 'AIRPLANE_MODE_STATE_UNSPECIFIED'
898
+ | 'AIRPLANE_MODE_USER_CHOICE'
899
+ | 'AIRPLANE_MODE_DISABLED';
611
900
  /** Controls whether cellular 2G setting can be toggled by the user or not. */
612
- cellularTwoGState?: string;
901
+ cellularTwoGState?:
902
+ | 'CELLULAR_TWO_G_STATE_UNSPECIFIED'
903
+ | 'CELLULAR_TWO_G_USER_CHOICE'
904
+ | 'CELLULAR_TWO_G_DISABLED';
613
905
  /** The minimum required security level of Wi-Fi networks that the device can connect to. */
614
- minimumWifiSecurityLevel?: string;
906
+ minimumWifiSecurityLevel?:
907
+ | 'MINIMUM_WIFI_SECURITY_LEVEL_UNSPECIFIED'
908
+ | 'OPEN_NETWORK_SECURITY'
909
+ | 'PERSONAL_NETWORK_SECURITY'
910
+ | 'ENTERPRISE_NETWORK_SECURITY'
911
+ | 'ENTERPRISE_BIT192_NETWORK_SECURITY';
615
912
  /** Controls the state of the ultra wideband setting and whether the user can toggle it on or off. */
616
- ultraWidebandState?: string;
913
+ ultraWidebandState?:
914
+ | 'ULTRA_WIDEBAND_STATE_UNSPECIFIED'
915
+ | 'ULTRA_WIDEBAND_USER_CHOICE'
916
+ | 'ULTRA_WIDEBAND_DISABLED';
617
917
  /** Optional. Controls whether the user is allowed to add eSIM profiles. */
618
- userInitiatedAddEsimSettings?: string;
918
+ userInitiatedAddEsimSettings?:
919
+ | 'USER_INITIATED_ADD_ESIM_SETTINGS_UNSPECIFIED'
920
+ | 'USER_INITIATED_ADD_ESIM_ALLOWED'
921
+ | 'USER_INITIATED_ADD_ESIM_DISALLOWED';
619
922
  /** Controls current state of Wi-Fi and if user can change its state. */
620
- wifiState?: string;
923
+ wifiState?:
924
+ | 'WIFI_STATE_UNSPECIFIED'
925
+ | 'WIFI_STATE_USER_CHOICE'
926
+ | 'WIFI_ENABLED'
927
+ | 'WIFI_DISABLED';
621
928
  }
622
929
  interface DeviceSettings {
623
930
  /** Whether ADB (https://developer.android.com/studio/command-line/adb.html) is enabled on the device. */
@@ -625,7 +932,14 @@ declare namespace gapi.client {
625
932
  /** Whether developer mode is enabled on the device. */
626
933
  developmentSettingsEnabled?: boolean;
627
934
  /** Encryption status from DevicePolicyManager. */
628
- encryptionStatus?: string;
935
+ encryptionStatus?:
936
+ | 'ENCRYPTION_STATUS_UNSPECIFIED'
937
+ | 'UNSUPPORTED'
938
+ | 'INACTIVE'
939
+ | 'ACTIVATING'
940
+ | 'ACTIVE'
941
+ | 'ACTIVE_DEFAULT_KEY'
942
+ | 'ACTIVE_PER_USER';
629
943
  /** Whether the device is secured with PIN/password. */
630
944
  isDeviceSecure?: boolean;
631
945
  /** Whether the storage encryption is enabled. */
@@ -647,7 +961,7 @@ declare namespace gapi.client {
647
961
  /** Refresh rate of the display in frames per second. */
648
962
  refreshRate?: number;
649
963
  /** State of the display. */
650
- state?: string;
964
+ state?: 'DISPLAY_STATE_UNSPECIFIED' | 'OFF' | 'ON' | 'DOZE' | 'SUSPENDED';
651
965
  /** Display width in pixels. */
652
966
  width?: number;
653
967
  }
@@ -687,7 +1001,11 @@ declare namespace gapi.client {
687
1001
  /** Optional, arbitrary data associated with the enrollment token. This could contain, for example, the ID of an org unit the device is assigned to after enrollment. After a device enrolls with the token, this data will be exposed in the enrollment_token_data field of the Device resource. The data must be 1024 characters or less; otherwise, the creation request will fail. */
688
1002
  additionalData?: string;
689
1003
  /** Controls whether personal usage is allowed on a device provisioned with this enrollment token.For company-owned devices: Enabling personal usage allows the user to set up a work profile on the device. Disabling personal usage requires the user provision the device as a fully managed device.For personally-owned devices: Enabling personal usage allows the user to set up a work profile on the device. Disabling personal usage will prevent the device from provisioning. Personal usage cannot be disabled on personally-owned device. */
690
- allowPersonalUsage?: string;
1004
+ allowPersonalUsage?:
1005
+ | 'ALLOW_PERSONAL_USAGE_UNSPECIFIED'
1006
+ | 'PERSONAL_USAGE_ALLOWED'
1007
+ | 'PERSONAL_USAGE_DISALLOWED'
1008
+ | 'PERSONAL_USAGE_DISALLOWED_USERLESS';
691
1009
  /** The length of time the enrollment token is valid, ranging from 1 minute to Durations.MAX_VALUE (https://developers.google.com/protocol-buffers/docs/reference/java/com/google/protobuf/util/Durations.html#MAX_VALUE), approximately 10,000 years. If not specified, the default duration is 1 hour. Please note that if requested duration causes the resulting expiration_timestamp to exceed Timestamps.MAX_VALUE (https://developers.google.com/protocol-buffers/docs/reference/java/com/google/protobuf/util/Timestamps.html#MAX_VALUE), then expiration_timestamp is coerced to Timestamps.MAX_VALUE. */
692
1010
  duration?: string;
693
1011
  /** The expiration time of the token. This is a read-only field generated by the server. */
@@ -711,19 +1029,35 @@ declare namespace gapi.client {
711
1029
  /** The enterprise contact info of an EMM-managed enterprise. */
712
1030
  contactInfo?: ContactInfo;
713
1031
  /** The types of Google Pub/Sub notifications enabled for the enterprise. */
714
- enabledNotificationTypes?: string[];
1032
+ enabledNotificationTypes?:
1033
+ | 'NOTIFICATION_TYPE_UNSPECIFIED'
1034
+ | 'ENROLLMENT'
1035
+ | 'COMPLIANCE_REPORT'
1036
+ | 'STATUS_REPORT'
1037
+ | 'COMMAND'
1038
+ | 'USAGE_LOGS'
1039
+ | 'ENTERPRISE_UPGRADE'[];
715
1040
  /** The name of the enterprise displayed to users. This field has a maximum length of 100 characters. */
716
1041
  enterpriseDisplayName?: string;
717
1042
  /** Output only. The type of the enterprise. */
718
- enterpriseType?: string;
1043
+ enterpriseType?:
1044
+ | 'ENTERPRISE_TYPE_UNSPECIFIED'
1045
+ | 'MANAGED_GOOGLE_DOMAIN'
1046
+ | 'MANAGED_GOOGLE_PLAY_ACCOUNTS_ENTERPRISE';
719
1047
  /** Settings for Google-provided user authentication. */
720
1048
  googleAuthenticationSettings?: GoogleAuthenticationSettings;
721
1049
  /** An image displayed as a logo during device provisioning. Supported types are: image/bmp, image/gif, image/x-ico, image/jpeg, image/png, image/webp, image/vnd.wap.wbmp, image/x-adobe-dng. */
722
1050
  logo?: ExternalData;
723
1051
  /** Output only. The type of managed Google domain. */
724
- managedGoogleDomainType?: string;
1052
+ managedGoogleDomainType?:
1053
+ | 'MANAGED_GOOGLE_DOMAIN_TYPE_UNSPECIFIED'
1054
+ | 'TYPE_TEAM'
1055
+ | 'TYPE_DOMAIN';
725
1056
  /** Output only. The type of a managed Google Play Accounts enterprise. */
726
- managedGooglePlayAccountsEnterpriseType?: string;
1057
+ managedGooglePlayAccountsEnterpriseType?:
1058
+ | 'MANAGED_GOOGLE_PLAY_ACCOUNTS_ENTERPRISE_TYPE_UNSPECIFIED'
1059
+ | 'CUSTOMER_MANAGED'
1060
+ | 'EMM_MANAGED';
727
1061
  /** The name of the enterprise which is generated by the server during creation, in the form enterprises/{enterpriseId}. */
728
1062
  name?: string;
729
1063
  /** A color in RGB format that indicates the predominant color to display in the device management app UI. The color components are stored as follows: (red << 16) | (green << 8) | blue, where the value of each component is between 0 and 255, inclusive. */
@@ -739,7 +1073,7 @@ declare namespace gapi.client {
739
1073
  /** The name of upgraded enterprise in the format "enterprises/{enterprise}" */
740
1074
  enterprise?: string;
741
1075
  /** Output only. The upgrade state of the enterprise. */
742
- upgradeState?: string;
1076
+ upgradeState?: 'UPGRADE_STATE_UNSPECIFIED' | 'UPGRADE_STATE_SUCCEEDED';
743
1077
  }
744
1078
  interface EsimCommandStatus {
745
1079
  /** Output only. Information about the eSIM added or removed. This is populated only when the eSIM operation status is SUCCESS. */
@@ -747,7 +1081,16 @@ declare namespace gapi.client {
747
1081
  /** Output only. Details of the error if the status is set to INTERNAL_ERROR. */
748
1082
  internalErrorDetails?: InternalErrorDetails;
749
1083
  /** Output only. Status of an ADD_ESIM or REMOVE_ESIM command. */
750
- status?: string;
1084
+ status?:
1085
+ | 'STATUS_UNSPECIFIED'
1086
+ | 'SUCCESS'
1087
+ | 'IN_PROGRESS'
1088
+ | 'PENDING_USER_ACTION'
1089
+ | 'ERROR_SETUP_IN_PROGRESS'
1090
+ | 'ERROR_USER_DENIED'
1091
+ | 'INTERNAL_ERROR'
1092
+ | 'ERROR_ICC_ID_NOT_FOUND'
1093
+ | 'ERROR_MULTIPLE_ACTIVE_ESIMS_NO_AVAILABLE_SLOT';
751
1094
  }
752
1095
  interface EsimInfo {
753
1096
  /** Output only. ICC ID of the eSIM. */
@@ -795,7 +1138,10 @@ declare namespace gapi.client {
795
1138
  }
796
1139
  interface GoogleAuthenticationSettings {
797
1140
  /** Output only. Whether users need to be authenticated by Google during the enrollment process. IT admin can specify if Google authentication is enabled for the enterprise for knowledge worker devices. This value can be set only via the Google Admin Console. Google authentication can be used with signin_url In the case where Google authentication is required and a signin_url is specified, Google authentication will be launched before signin_url. This value is overridden by EnrollmentToken.googleAuthenticationOptions and SigninDetail.googleAuthenticationOptions, if they are set. */
798
- googleAuthenticationRequired?: string;
1141
+ googleAuthenticationRequired?:
1142
+ | 'GOOGLE_AUTHENTICATION_REQUIRED_UNSPECIFIED'
1143
+ | 'NOT_REQUIRED'
1144
+ | 'REQUIRED';
799
1145
  }
800
1146
  interface HardwareInfo {
801
1147
  /** Battery shutdown temperature thresholds in Celsius for each battery on the device. */
@@ -849,21 +1195,61 @@ declare namespace gapi.client {
849
1195
  }
850
1196
  interface InstallConstraint {
851
1197
  /** Optional. Charging constraint. */
852
- chargingConstraint?: string;
1198
+ chargingConstraint?:
1199
+ | 'CHARGING_CONSTRAINT_UNSPECIFIED'
1200
+ | 'CHARGING_NOT_REQUIRED'
1201
+ | 'INSTALL_ONLY_WHEN_CHARGING';
853
1202
  /** Optional. Device idle constraint. */
854
- deviceIdleConstraint?: string;
1203
+ deviceIdleConstraint?:
1204
+ | 'DEVICE_IDLE_CONSTRAINT_UNSPECIFIED'
1205
+ | 'DEVICE_IDLE_NOT_REQUIRED'
1206
+ | 'INSTALL_ONLY_WHEN_DEVICE_IDLE';
855
1207
  /** Optional. Network type constraint. */
856
- networkTypeConstraint?: string;
1208
+ networkTypeConstraint?:
1209
+ | 'NETWORK_TYPE_CONSTRAINT_UNSPECIFIED'
1210
+ | 'INSTALL_ON_ANY_NETWORK'
1211
+ | 'INSTALL_ONLY_ON_UNMETERED_NETWORK';
857
1212
  }
858
1213
  interface InternalErrorDetails {
859
1214
  /** Output only. Integer representation of the error code as specified here (https://developer.android.com/reference/android/telephony/euicc/EuiccManager#EXTRA_EMBEDDED_SUBSCRIPTION_DETAILED_CODE). See also, OPERATION_SMDX_SUBJECT_REASON_CODE. See error_code_detail for more details. */
860
1215
  errorCode?: string;
861
1216
  /** Output only. The error code detail corresponding to the error_code. */
862
- errorCodeDetail?: string;
1217
+ errorCodeDetail?:
1218
+ | 'ERROR_CODE_DETAIL_UNSPECIFIED'
1219
+ | 'ERROR_TIME_OUT'
1220
+ | 'ERROR_EUICC_MISSING'
1221
+ | 'ERROR_UNSUPPORTED_VERSION'
1222
+ | 'ERROR_ADDRESS_MISSING'
1223
+ | 'ERROR_INVALID_CONFIRMATION_CODE'
1224
+ | 'ERROR_CERTIFICATE_ERROR'
1225
+ | 'ERROR_NO_PROFILES_AVAILABLE'
1226
+ | 'ERROR_CONNECTION_ERROR'
1227
+ | 'ERROR_INVALID_RESPONSE'
1228
+ | 'ERROR_CARRIER_LOCKED'
1229
+ | 'ERROR_DISALLOWED_BY_PPR'
1230
+ | 'ERROR_INVALID_ACTIVATION_CODE'
1231
+ | 'ERROR_INCOMPATIBLE_CARRIER'
1232
+ | 'ERROR_OPERATION_BUSY'
1233
+ | 'ERROR_INSTALL_PROFILE'
1234
+ | 'ERROR_EUICC_INSUFFICIENT_MEMORY'
1235
+ | 'ERROR_INVALID_PORT'
1236
+ | 'ERROR_SIM_MISSING';
863
1237
  /** Output only. Integer representation of the operation code as specified here (https://developer.android.com/reference/android/telephony/euicc/EuiccManager#EXTRA_EMBEDDED_SUBSCRIPTION_DETAILED_CODE). See operation_code_detail for more details. */
864
1238
  operationCode?: string;
865
1239
  /** Output only. The operation code detail corresponding to the operation_code. */
866
- operationCodeDetail?: string;
1240
+ operationCodeDetail?:
1241
+ | 'OPERATION_CODE_DETAIL_UNSPECIFIED'
1242
+ | 'OPERATION_SYSTEM'
1243
+ | 'OPERATION_SIM_SLOT'
1244
+ | 'OPERATION_EUICC_CARD'
1245
+ | 'OPERATION_SMDX'
1246
+ | 'OPERATION_SWITCH'
1247
+ | 'OPERATION_DOWNLOAD'
1248
+ | 'OPERATION_METADATA'
1249
+ | 'OPERATION_EUICC_GSMA'
1250
+ | 'OPERATION_APDU'
1251
+ | 'OPERATION_SMDX_SUBJECT_REASON_CODE'
1252
+ | 'OPERATION_HTTP';
867
1253
  }
868
1254
  interface IssueCommandResponse {}
869
1255
  interface KeyDestructionEvent {
@@ -886,7 +1272,7 @@ declare namespace gapi.client {
886
1272
  /** Optionally, a free-form message string to explain the app state. If the state was triggered by a particular value (e.g. a managed configuration value), it should be included in the message. */
887
1273
  message?: string;
888
1274
  /** The severity of the app state. */
889
- severity?: string;
1275
+ severity?: 'SEVERITY_UNSPECIFIED' | 'INFO' | 'ERROR';
890
1276
  }
891
1277
  interface KeyGeneratedEvent {
892
1278
  /** UID of the application which generated the key. */
@@ -920,15 +1306,32 @@ declare namespace gapi.client {
920
1306
  }
921
1307
  interface KioskCustomization {
922
1308
  /** Specifies whether the Settings app is allowed in kiosk mode. */
923
- deviceSettings?: string;
1309
+ deviceSettings?:
1310
+ | 'DEVICE_SETTINGS_UNSPECIFIED'
1311
+ | 'SETTINGS_ACCESS_ALLOWED'
1312
+ | 'SETTINGS_ACCESS_BLOCKED';
924
1313
  /** Sets the behavior of a device in kiosk mode when a user presses and holds (long-presses) the Power button. */
925
- powerButtonActions?: string;
1314
+ powerButtonActions?:
1315
+ | 'POWER_BUTTON_ACTIONS_UNSPECIFIED'
1316
+ | 'POWER_BUTTON_AVAILABLE'
1317
+ | 'POWER_BUTTON_BLOCKED';
926
1318
  /** Specifies whether system info and notifications are disabled in kiosk mode. */
927
- statusBar?: string;
1319
+ statusBar?:
1320
+ | 'STATUS_BAR_UNSPECIFIED'
1321
+ | 'NOTIFICATIONS_AND_SYSTEM_INFO_ENABLED'
1322
+ | 'NOTIFICATIONS_AND_SYSTEM_INFO_DISABLED'
1323
+ | 'SYSTEM_INFO_ONLY';
928
1324
  /** Specifies whether system error dialogs for crashed or unresponsive apps are blocked in kiosk mode. When blocked, the system will force-stop the app as if the user chooses the "close app" option on the UI. */
929
- systemErrorWarnings?: string;
1325
+ systemErrorWarnings?:
1326
+ | 'SYSTEM_ERROR_WARNINGS_UNSPECIFIED'
1327
+ | 'ERROR_AND_WARNINGS_ENABLED'
1328
+ | 'ERROR_AND_WARNINGS_MUTED';
930
1329
  /** Specifies which navigation features are enabled (e.g. Home, Overview buttons) in kiosk mode. */
931
- systemNavigation?: string;
1330
+ systemNavigation?:
1331
+ | 'SYSTEM_NAVIGATION_UNSPECIFIED'
1332
+ | 'NAVIGATION_ENABLED'
1333
+ | 'NAVIGATION_DISABLED'
1334
+ | 'HOME_BUTTON_ONLY';
932
1335
  }
933
1336
  interface LaunchAppAction {
934
1337
  /** Package name of app to be launched */
@@ -1014,7 +1417,16 @@ declare namespace gapi.client {
1014
1417
  /** The name of the property. Localized. */
1015
1418
  title?: string;
1016
1419
  /** The type of the property. */
1017
- type?: string;
1420
+ type?:
1421
+ | 'MANAGED_PROPERTY_TYPE_UNSPECIFIED'
1422
+ | 'BOOL'
1423
+ | 'STRING'
1424
+ | 'INTEGER'
1425
+ | 'CHOICE'
1426
+ | 'MULTISELECT'
1427
+ | 'HIDDEN'
1428
+ | 'BUNDLE'
1429
+ | 'BUNDLE_ARRAY';
1018
1430
  }
1019
1431
  interface ManagedPropertyEntry {
1020
1432
  /** The human-readable name of the value. Localized. */
@@ -1040,7 +1452,13 @@ declare namespace gapi.client {
1040
1452
  /** The creation time of the event. */
1041
1453
  createTime?: string;
1042
1454
  /** Event type. */
1043
- eventType?: string;
1455
+ eventType?:
1456
+ | 'MEMORY_EVENT_TYPE_UNSPECIFIED'
1457
+ | 'RAM_MEASURED'
1458
+ | 'INTERNAL_STORAGE_MEASURED'
1459
+ | 'EXTERNAL_STORAGE_DETECTED'
1460
+ | 'EXTERNAL_STORAGE_REMOVED'
1461
+ | 'EXTERNAL_STORAGE_MEASURED';
1044
1462
  }
1045
1463
  interface MemoryInfo {
1046
1464
  /** Total internal storage on device in bytes. */
@@ -1060,7 +1478,11 @@ declare namespace gapi.client {
1060
1478
  /** Immutable. The time when this migration token expires. This can be at most seven days from the time of creation. The migration token is deleted seven days after it expires. */
1061
1479
  expireTime?: string;
1062
1480
  /** Required. Immutable. The management mode of the device or profile being migrated. */
1063
- managementMode?: string;
1481
+ managementMode?:
1482
+ | 'MANAGEMENT_MODE_UNSPECIFIED'
1483
+ | 'WORK_PROFILE_PERSONALLY_OWNED'
1484
+ | 'WORK_PROFILE_COMPANY_OWNED'
1485
+ | 'FULLY_MANAGED';
1064
1486
  /** Output only. The name of the migration token, which is generated by the server during creation, in the form enterprises/{enterprise}/migrationTokens/{migration_token}. */
1065
1487
  name?: string;
1066
1488
  /** Required. Immutable. The name of the policy initially applied to the enrolled device, in the form enterprises/{enterprise}/policies/{policy}. */
@@ -1098,9 +1520,36 @@ declare namespace gapi.client {
1098
1520
  /** For settings with nested fields, if a particular nested field is out of compliance, this specifies the full path to the offending field. The path is formatted in the same way the policy JSON field would be referenced in JavaScript, that is: 1) For object-typed fields, the field name is followed by a dot then by a subfield name. 2) For array-typed fields, the field name is followed by the array index enclosed in brackets. For example, to indicate a problem with the url field in the externalData field in the 3rd application, the path would be applications[2].externalData.url */
1099
1521
  fieldPath?: string;
1100
1522
  /** If package_name is set and the non-compliance reason is APP_NOT_INSTALLED or APP_NOT_UPDATED, the detailed reason the app can't be installed or updated. */
1101
- installationFailureReason?: string;
1523
+ installationFailureReason?:
1524
+ | 'INSTALLATION_FAILURE_REASON_UNSPECIFIED'
1525
+ | 'INSTALLATION_FAILURE_REASON_UNKNOWN'
1526
+ | 'IN_PROGRESS'
1527
+ | 'NOT_FOUND'
1528
+ | 'NOT_COMPATIBLE_WITH_DEVICE'
1529
+ | 'NOT_APPROVED'
1530
+ | 'PERMISSIONS_NOT_ACCEPTED'
1531
+ | 'NOT_AVAILABLE_IN_COUNTRY'
1532
+ | 'NO_LICENSES_REMAINING'
1533
+ | 'NOT_ENROLLED'
1534
+ | 'USER_INVALID'
1535
+ | 'NETWORK_ERROR_UNRELIABLE_CONNECTION'
1536
+ | 'INSUFFICIENT_STORAGE';
1102
1537
  /** The reason the device is not in compliance with the setting. */
1103
- nonComplianceReason?: string;
1538
+ nonComplianceReason?:
1539
+ | 'NON_COMPLIANCE_REASON_UNSPECIFIED'
1540
+ | 'API_LEVEL'
1541
+ | 'MANAGEMENT_MODE'
1542
+ | 'USER_ACTION'
1543
+ | 'INVALID_VALUE'
1544
+ | 'APP_NOT_INSTALLED'
1545
+ | 'UNSUPPORTED'
1546
+ | 'APP_INSTALLED'
1547
+ | 'PENDING'
1548
+ | 'APP_INCOMPATIBLE'
1549
+ | 'APP_NOT_UPDATED'
1550
+ | 'DEVICE_INCOMPATIBLE'
1551
+ | 'APP_SIGNING_CERT_MISMATCH'
1552
+ | 'PROJECT_NOT_PERMITTED';
1104
1553
  /** The package name indicating which app is out of compliance, if applicable. */
1105
1554
  packageName?: string;
1106
1555
  /** The name of the policy setting. This is the JSON field name of a top-level Policy field. */
@@ -1108,11 +1557,40 @@ declare namespace gapi.client {
1108
1557
  /** Additional context for specific_non_compliance_reason. */
1109
1558
  specificNonComplianceContext?: SpecificNonComplianceContext;
1110
1559
  /** The policy-specific reason the device is not in compliance with the setting. */
1111
- specificNonComplianceReason?: string;
1560
+ specificNonComplianceReason?:
1561
+ | 'SPECIFIC_NON_COMPLIANCE_REASON_UNSPECIFIED'
1562
+ | 'PASSWORD_POLICIES_USER_CREDENTIALS_CONFIRMATION_REQUIRED'
1563
+ | 'PASSWORD_POLICIES_PASSWORD_EXPIRED'
1564
+ | 'PASSWORD_POLICIES_PASSWORD_NOT_SUFFICIENT'
1565
+ | 'ONC_WIFI_INVALID_VALUE'
1566
+ | 'ONC_WIFI_API_LEVEL'
1567
+ | 'ONC_WIFI_INVALID_ENTERPRISE_CONFIG'
1568
+ | 'ONC_WIFI_USER_SHOULD_REMOVE_NETWORK'
1569
+ | 'ONC_WIFI_KEY_PAIR_ALIAS_NOT_CORRESPONDING_TO_EXISTING_KEY'
1570
+ | 'PERMISSIBLE_USAGE_RESTRICTION'
1571
+ | 'REQUIRED_ACCOUNT_NOT_IN_ENTERPRISE'
1572
+ | 'NEW_ACCOUNT_NOT_IN_ENTERPRISE'
1573
+ | 'DEFAULT_APPLICATION_SETTING_UNSUPPORTED_SCOPES'
1574
+ | 'DEFAULT_APPLICATION_SETTING_FAILED_FOR_SCOPE'
1575
+ | 'PRIVATE_DNS_HOST_NOT_SERVING';
1112
1576
  }
1113
1577
  interface NonComplianceDetailCondition {
1114
1578
  /** The reason the device is not in compliance with the setting. If not set, then this condition matches any reason. */
1115
- nonComplianceReason?: string;
1579
+ nonComplianceReason?:
1580
+ | 'NON_COMPLIANCE_REASON_UNSPECIFIED'
1581
+ | 'API_LEVEL'
1582
+ | 'MANAGEMENT_MODE'
1583
+ | 'USER_ACTION'
1584
+ | 'INVALID_VALUE'
1585
+ | 'APP_NOT_INSTALLED'
1586
+ | 'UNSUPPORTED'
1587
+ | 'APP_INSTALLED'
1588
+ | 'PENDING'
1589
+ | 'APP_INCOMPATIBLE'
1590
+ | 'APP_NOT_UPDATED'
1591
+ | 'DEVICE_INCOMPATIBLE'
1592
+ | 'APP_SIGNING_CERT_MISMATCH'
1593
+ | 'PROJECT_NOT_PERMITTED';
1116
1594
  /** The package name of the app that's out of compliance. If not set, then this condition matches any package name. */
1117
1595
  packageName?: string;
1118
1596
  /** The name of the policy setting. This is the JSON field name of a top-level Policy field. If not set, then this condition matches any setting name. */
@@ -1143,9 +1621,17 @@ declare namespace gapi.client {
1143
1621
  interface OsShutdownEvent {}
1144
1622
  interface OsStartupEvent {
1145
1623
  /** Verified Boot state. */
1146
- verifiedBootState?: string;
1624
+ verifiedBootState?:
1625
+ | 'VERIFIED_BOOT_STATE_UNSPECIFIED'
1626
+ | 'GREEN'
1627
+ | 'YELLOW'
1628
+ | 'ORANGE';
1147
1629
  /** dm-verity mode. */
1148
- verityMode?: string;
1630
+ verityMode?:
1631
+ | 'DM_VERITY_MODE_UNSPECIFIED'
1632
+ | 'ENFORCING'
1633
+ | 'IO_ERROR'
1634
+ | 'DISABLED';
1149
1635
  }
1150
1636
  interface PackageNameList {
1151
1637
  /** A list of package names. */
@@ -1153,7 +1639,10 @@ declare namespace gapi.client {
1153
1639
  }
1154
1640
  interface PasswordPoliciesContext {
1155
1641
  /** The scope of non-compliant password. */
1156
- passwordPolicyScope?: string;
1642
+ passwordPolicyScope?:
1643
+ | 'SCOPE_UNSPECIFIED'
1644
+ | 'SCOPE_DEVICE'
1645
+ | 'SCOPE_PROFILE';
1157
1646
  }
1158
1647
  interface PasswordRequirements {
1159
1648
  /** Number of incorrect device-unlock passwords that can be entered before a device is wiped. A value of 0 means there is no restriction. */
@@ -1177,23 +1666,45 @@ declare namespace gapi.client {
1177
1666
  /** Minimum number of upper case letters required in the password. Only enforced when password_quality is COMPLEX. */
1178
1667
  passwordMinimumUpperCase?: number;
1179
1668
  /** The required password quality. */
1180
- passwordQuality?: string;
1669
+ passwordQuality?:
1670
+ | 'PASSWORD_QUALITY_UNSPECIFIED'
1671
+ | 'BIOMETRIC_WEAK'
1672
+ | 'SOMETHING'
1673
+ | 'NUMERIC'
1674
+ | 'NUMERIC_COMPLEX'
1675
+ | 'ALPHABETIC'
1676
+ | 'ALPHANUMERIC'
1677
+ | 'COMPLEX'
1678
+ | 'COMPLEXITY_LOW'
1679
+ | 'COMPLEXITY_MEDIUM'
1680
+ | 'COMPLEXITY_HIGH';
1181
1681
  /** The scope that the password requirement applies to. */
1182
- passwordScope?: string;
1682
+ passwordScope?: 'SCOPE_UNSPECIFIED' | 'SCOPE_DEVICE' | 'SCOPE_PROFILE';
1183
1683
  /** The length of time after a device or work profile is unlocked using a strong form of authentication (password, PIN, pattern) that it can be unlocked using any other authentication method (e.g. fingerprint, trust agents, face). After the specified time period elapses, only strong forms of authentication can be used to unlock the device or work profile. */
1184
- requirePasswordUnlock?: string;
1684
+ requirePasswordUnlock?:
1685
+ | 'REQUIRE_PASSWORD_UNLOCK_UNSPECIFIED'
1686
+ | 'USE_DEFAULT_DEVICE_TIMEOUT'
1687
+ | 'REQUIRE_EVERY_DAY';
1185
1688
  /** Controls whether a unified lock is allowed for the device and the work profile, on devices running Android 9 and above with a work profile. This can be set only if password_scope is set to SCOPE_PROFILE, the policy will be rejected otherwise. If user has not set a separate work lock and this field is set to REQUIRE_SEPARATE_WORK_LOCK, a NonComplianceDetail is reported with nonComplianceReason set to USER_ACTION. */
1186
- unifiedLockSettings?: string;
1689
+ unifiedLockSettings?:
1690
+ | 'UNIFIED_LOCK_SETTINGS_UNSPECIFIED'
1691
+ | 'ALLOW_UNIFIED_WORK_AND_PERSONAL_LOCK'
1692
+ | 'REQUIRE_SEPARATE_WORK_LOCK';
1187
1693
  }
1188
1694
  interface PerAppResult {
1189
1695
  /** The result of an attempt to clear the data of a single app. */
1190
- clearingResult?: string;
1696
+ clearingResult?:
1697
+ | 'CLEARING_RESULT_UNSPECIFIED'
1698
+ | 'SUCCESS'
1699
+ | 'APP_NOT_FOUND'
1700
+ | 'APP_PROTECTED'
1701
+ | 'API_LEVEL';
1191
1702
  }
1192
1703
  interface PermissionGrant {
1193
1704
  /** The Android permission or group, e.g. android.permission.READ_CALENDAR or android.permission_group.CALENDAR. */
1194
1705
  permission?: string;
1195
1706
  /** The policy for granting the permission. */
1196
- policy?: string;
1707
+ policy?: 'PERMISSION_POLICY_UNSPECIFIED' | 'PROMPT' | 'GRANT' | 'DENY';
1197
1708
  }
1198
1709
  interface PersistentPreferredActivity {
1199
1710
  /** The intent actions to match in the filter. If any actions are included in the filter, then an intent's action must be one of those values for it to match. If no actions are included, the intent action is ignored. */
@@ -1205,7 +1716,7 @@ declare namespace gapi.client {
1205
1716
  }
1206
1717
  interface PersonalApplicationPolicy {
1207
1718
  /** The type of installation to perform. */
1208
- installType?: string;
1719
+ installType?: 'INSTALL_TYPE_UNSPECIFIED' | 'BLOCKED' | 'AVAILABLE';
1209
1720
  /** The package name of the application. */
1210
1721
  packageName?: string;
1211
1722
  }
@@ -1213,7 +1724,10 @@ declare namespace gapi.client {
1213
1724
  /** Account types that can't be managed by the user. */
1214
1725
  accountTypesWithManagementDisabled?: string[];
1215
1726
  /** Optional. Whether bluetooth sharing is allowed. */
1216
- bluetoothSharing?: string;
1727
+ bluetoothSharing?:
1728
+ | 'BLUETOOTH_SHARING_UNSPECIFIED'
1729
+ | 'BLUETOOTH_SHARING_ALLOWED'
1730
+ | 'BLUETOOTH_SHARING_DISALLOWED';
1217
1731
  /** If true, the camera is disabled on the personal profile. */
1218
1732
  cameraDisabled?: boolean;
1219
1733
  /** Controls how long the work profile can stay off. The minimum duration must be at least 3 days. Other details are as follows: - If the duration is set to 0, the feature is turned off. - If the duration is set to a value smaller than the minimum duration, the feature returns an error. *Note:* If you want to avoid personal profiles being suspended during long periods of off-time, you can temporarily set a large value for this parameter. */
@@ -1221,9 +1735,16 @@ declare namespace gapi.client {
1221
1735
  /** Policy applied to applications in the personal profile. */
1222
1736
  personalApplications?: PersonalApplicationPolicy[];
1223
1737
  /** Used together with personalApplications to control how apps in the personal profile are allowed or blocked. */
1224
- personalPlayStoreMode?: string;
1738
+ personalPlayStoreMode?:
1739
+ | 'PLAY_STORE_MODE_UNSPECIFIED'
1740
+ | 'BLACKLIST'
1741
+ | 'BLOCKLIST'
1742
+ | 'ALLOWLIST';
1225
1743
  /** Optional. Controls whether a private space is allowed on the device. */
1226
- privateSpacePolicy?: string;
1744
+ privateSpacePolicy?:
1745
+ | 'PRIVATE_SPACE_POLICY_UNSPECIFIED'
1746
+ | 'PRIVATE_SPACE_ALLOWED'
1747
+ | 'PRIVATE_SPACE_DISALLOWED';
1227
1748
  /** If true, screen capture is disabled for all users. This also blocks Circle to Search (https://support.google.com/android/answer/14508957). */
1228
1749
  screenCaptureDisabled?: boolean;
1229
1750
  }
@@ -1239,17 +1760,39 @@ declare namespace gapi.client {
1239
1760
  /** Configuration for an always-on VPN connection. Use with vpn_config_disabled to prevent modification of this setting. */
1240
1761
  alwaysOnVpnPackage?: AlwaysOnVpnPackage;
1241
1762
  /** This setting is not supported. Any value is ignored. */
1242
- androidDevicePolicyTracks?: string[];
1763
+ androidDevicePolicyTracks?:
1764
+ | 'APP_TRACK_UNSPECIFIED'
1765
+ | 'PRODUCTION'
1766
+ | 'BETA'[];
1243
1767
  /** Recommended alternative: autoUpdateMode which is set per app, provides greater flexibility around update frequency.When autoUpdateMode is set to AUTO_UPDATE_POSTPONED or AUTO_UPDATE_HIGH_PRIORITY, this field has no effect.The app auto update policy, which controls when automatic app updates can be applied. */
1244
- appAutoUpdatePolicy?: string;
1768
+ appAutoUpdatePolicy?:
1769
+ | 'APP_AUTO_UPDATE_POLICY_UNSPECIFIED'
1770
+ | 'CHOICE_TO_THE_USER'
1771
+ | 'NEVER'
1772
+ | 'WIFI_ONLY'
1773
+ | 'ALWAYS';
1245
1774
  /** Optional. Controls whether apps on the device for fully managed devices or in the work profile for devices with work profiles are allowed to expose app functions. */
1246
- appFunctions?: string;
1775
+ appFunctions?:
1776
+ | 'APP_FUNCTIONS_UNSPECIFIED'
1777
+ | 'APP_FUNCTIONS_DISALLOWED'
1778
+ | 'APP_FUNCTIONS_ALLOWED';
1247
1779
  /** Policy applied to apps. This can have at most 3,000 elements. */
1248
1780
  applications?: ApplicationPolicy[];
1249
1781
  /** Optional. Controls whether AssistContent (https://developer.android.com/reference/android/app/assist/AssistContent) is allowed to be sent to a privileged app such as an assistant app. AssistContent includes screenshots and information about an app, such as package name. This is supported on Android 15 and above. */
1250
- assistContentPolicy?: string;
1782
+ assistContentPolicy?:
1783
+ | 'ASSIST_CONTENT_POLICY_UNSPECIFIED'
1784
+ | 'ASSIST_CONTENT_DISALLOWED'
1785
+ | 'ASSIST_CONTENT_ALLOWED';
1251
1786
  /** Whether auto date, time, and time zone are enabled on a company-owned device. If this is set, then autoTimeRequired is ignored. */
1252
- autoDateAndTimeZone?: string;
1787
+ autoDateAndTimeZone?:
1788
+ | 'AUTO_DATE_AND_TIME_ZONE_UNSPECIFIED'
1789
+ | 'AUTO_DATE_AND_TIME_ZONE_USER_CHOICE'
1790
+ | 'AUTO_DATE_AND_TIME_ZONE_ENFORCED';
1791
+ /** Optional. The policy for the autofill service. */
1792
+ autofillPolicy?:
1793
+ | 'AUTOFILL_POLICY_UNSPECIFIED'
1794
+ | 'AUTOFILL_USER_CHOICE'
1795
+ | 'AUTOFILL_DISABLED';
1253
1796
  /** Whether auto time is required, which prevents the user from manually setting the date and time. If autoDateAndTimeZone is set, this field is ignored. */
1254
1797
  autoTimeRequired?: boolean;
1255
1798
  /** This field has no effect. */
@@ -1261,7 +1804,11 @@ declare namespace gapi.client {
1261
1804
  /** Whether bluetooth is disabled. Prefer this setting over bluetooth_config_disabled because bluetooth_config_disabled can be bypassed by the user. */
1262
1805
  bluetoothDisabled?: boolean;
1263
1806
  /** Controls the use of the camera and whether the user has access to the camera access toggle. */
1264
- cameraAccess?: string;
1807
+ cameraAccess?:
1808
+ | 'CAMERA_ACCESS_UNSPECIFIED'
1809
+ | 'CAMERA_ACCESS_USER_CHOICE'
1810
+ | 'CAMERA_ACCESS_DISABLED'
1811
+ | 'CAMERA_ACCESS_ENFORCED';
1265
1812
  /** If camera_access is set to any value other than CAMERA_ACCESS_UNSPECIFIED, this has no effect. Otherwise this field controls whether cameras are disabled: If true, all cameras are disabled, otherwise they are available. For fully managed devices this field applies for all apps on the device. For work profiles, this field applies only to apps in the work profile, and the camera access of apps outside the work profile is unaffected. */
1266
1813
  cameraDisabled?: boolean;
1267
1814
  /** Whether configuring cell broadcast is disabled. */
@@ -1272,8 +1819,11 @@ declare namespace gapi.client {
1272
1819
  complianceRules?: ComplianceRule[];
1273
1820
  /** Whether creating windows besides app windows is disabled. */
1274
1821
  createWindowsDisabled?: boolean;
1275
- /** Controls which apps are allowed to act as credential providers on Android 14 and above. These apps store credentials, see this (https://developer.android.com/training/sign-in/passkeys) and this (https://developer.android.com/reference/androidx/credentials/CredentialManager) for details. See also credentialProviderPolicy. */
1276
- credentialProviderPolicyDefault?: string;
1822
+ /** Optional. Controls which apps are allowed to act as credential providers on Android 14 and above. These apps store credentials, see this (https://developer.android.com/training/sign-in/passkeys) and this (https://developer.android.com/reference/androidx/credentials/CredentialManager) for details. See also credentialProviderPolicy. */
1823
+ credentialProviderPolicyDefault?:
1824
+ | 'CREDENTIAL_PROVIDER_POLICY_DEFAULT_UNSPECIFIED'
1825
+ | 'CREDENTIAL_PROVIDER_DEFAULT_DISALLOWED'
1826
+ | 'CREDENTIAL_PROVIDER_DEFAULT_DISALLOWED_EXCEPT_SYSTEM';
1277
1827
  /** Whether configuring user credentials is disabled. */
1278
1828
  credentialsConfigDisabled?: boolean;
1279
1829
  /** Cross-profile policies applied on the device. */
@@ -1285,7 +1835,11 @@ declare namespace gapi.client {
1285
1835
  /** Optional. The default application setting for supported types. If the default application is successfully set for at least one app type on a profile, users are prevented from changing any default applications on that profile.Only one DefaultApplicationSetting is allowed for each DefaultApplicationType.See Default application settings (https://developers.google.com/android/management/default-application-settings) guide for more details. */
1286
1836
  defaultApplicationSettings?: DefaultApplicationSetting[];
1287
1837
  /** The default permission policy for runtime permission requests. */
1288
- defaultPermissionPolicy?: string;
1838
+ defaultPermissionPolicy?:
1839
+ | 'PERMISSION_POLICY_UNSPECIFIED'
1840
+ | 'PROMPT'
1841
+ | 'GRANT'
1842
+ | 'DENY';
1289
1843
  /** Covers controls for device connectivity such as Wi-Fi, USB data access, keyboard/mouse connections, and more. */
1290
1844
  deviceConnectivityManagement?: DeviceConnectivityManagement;
1291
1845
  /** The device owner information to be shown on the lock screen. */
@@ -1295,11 +1849,17 @@ declare namespace gapi.client {
1295
1849
  /** Optional. Controls for the display settings. */
1296
1850
  displaySettings?: DisplaySettings;
1297
1851
  /** Whether encryption is enabled */
1298
- encryptionPolicy?: string;
1852
+ encryptionPolicy?:
1853
+ | 'ENCRYPTION_POLICY_UNSPECIFIED'
1854
+ | 'ENABLED_WITHOUT_PASSWORD'
1855
+ | 'ENABLED_WITH_PASSWORD';
1299
1856
  /** Whether app verification is force-enabled. */
1300
1857
  ensureVerifyAppsEnabled?: boolean;
1301
1858
  /** Optional. Controls whether the enterpriseDisplayName is visible on the device (e.g. lock screen message on company-owned devices). */
1302
- enterpriseDisplayNameVisibility?: string;
1859
+ enterpriseDisplayNameVisibility?:
1860
+ | 'ENTERPRISE_DISPLAY_NAME_VISIBILITY_UNSPECIFIED'
1861
+ | 'ENTERPRISE_DISPLAY_NAME_VISIBLE'
1862
+ | 'ENTERPRISE_DISPLAY_NAME_HIDDEN';
1303
1863
  /** Whether factory resetting from settings is disabled. */
1304
1864
  factoryResetDisabled?: boolean;
1305
1865
  /** Email addresses of device administrators for factory reset protection. When the device is factory reset, it will require one of these admins to log in with the Google account email and password to unlock the device. If no admins are specified, the device won't provide factory reset protection. */
@@ -1313,19 +1873,43 @@ declare namespace gapi.client {
1313
1873
  /** If true, this disables the Lock Screen (https://source.android.com/docs/core/display/multi_display/lock-screen) for primary and/or secondary displays. This policy is supported only in dedicated device management mode. */
1314
1874
  keyguardDisabled?: boolean;
1315
1875
  /** Disabled keyguard customizations, such as widgets. */
1316
- keyguardDisabledFeatures?: string[];
1876
+ keyguardDisabledFeatures?:
1877
+ | 'KEYGUARD_DISABLED_FEATURE_UNSPECIFIED'
1878
+ | 'CAMERA'
1879
+ | 'NOTIFICATIONS'
1880
+ | 'UNREDACTED_NOTIFICATIONS'
1881
+ | 'TRUST_AGENTS'
1882
+ | 'DISABLE_FINGERPRINT'
1883
+ | 'DISABLE_REMOTE_INPUT'
1884
+ | 'FACE'
1885
+ | 'IRIS'
1886
+ | 'BIOMETRICS'
1887
+ | 'SHORTCUTS'
1888
+ | 'ALL_FEATURES'[];
1317
1889
  /** Settings controlling the behavior of a device in kiosk mode. To enable kiosk mode, set kioskCustomLauncherEnabled to true or specify an app in the policy with installType KIOSK. */
1318
1890
  kioskCustomization?: KioskCustomization;
1319
1891
  /** Whether the kiosk custom launcher is enabled. This replaces the home screen with a launcher that locks down the device to the apps installed via the applications setting. Apps appear on a single page in alphabetical order. Use kioskCustomization to further configure the kiosk device behavior. */
1320
1892
  kioskCustomLauncherEnabled?: boolean;
1321
1893
  /** The degree of location detection enabled. */
1322
- locationMode?: string;
1894
+ locationMode?:
1895
+ | 'LOCATION_MODE_UNSPECIFIED'
1896
+ | 'HIGH_ACCURACY'
1897
+ | 'SENSORS_ONLY'
1898
+ | 'BATTERY_SAVING'
1899
+ | 'OFF'
1900
+ | 'LOCATION_USER_CHOICE'
1901
+ | 'LOCATION_ENFORCED'
1902
+ | 'LOCATION_DISABLED';
1323
1903
  /** A message displayed to the user in the device administators settings screen. */
1324
1904
  longSupportMessage?: UserFacingMessage;
1325
1905
  /** Maximum time in milliseconds for user activity until the device locks. A value of 0 means there is no restriction. */
1326
1906
  maximumTimeToLock?: string;
1327
1907
  /** Controls the use of the microphone and whether the user has access to the microphone access toggle. This applies only on fully managed devices. */
1328
- microphoneAccess?: string;
1908
+ microphoneAccess?:
1909
+ | 'MICROPHONE_ACCESS_UNSPECIFIED'
1910
+ | 'MICROPHONE_ACCESS_USER_CHOICE'
1911
+ | 'MICROPHONE_ACCESS_DISABLED'
1912
+ | 'MICROPHONE_ACCESS_ENFORCED';
1329
1913
  /** The minimum allowed Android API level. */
1330
1914
  minimumApiLevel?: number;
1331
1915
  /** Whether configuring mobile networks is disabled. */
@@ -1363,13 +1947,19 @@ declare namespace gapi.client {
1363
1947
  /** Policies managing personal usage on a company-owned device. */
1364
1948
  personalUsagePolicies?: PersonalUsagePolicies;
1365
1949
  /** This mode controls which apps are available to the user in the Play Store and the behavior on the device when apps are removed from the policy. */
1366
- playStoreMode?: string;
1950
+ playStoreMode?: 'PLAY_STORE_MODE_UNSPECIFIED' | 'WHITELIST' | 'BLACKLIST';
1367
1951
  /** Rules that define the behavior when a particular policy can not be applied on device */
1368
1952
  policyEnforcementRules?: PolicyEnforcementRule[];
1369
1953
  /** Controls whether preferential network service is enabled on the work profile or on fully managed devices. For example, an organization may have an agreement with a carrier that all of the work data from its employees' devices will be sent via a network service dedicated for enterprise use. An example of a supported preferential network service is the enterprise slice on 5G networks. This policy has no effect if preferentialNetworkServiceSettings or ApplicationPolicy.preferentialNetworkId is set on devices running Android 13 or above. */
1370
- preferentialNetworkService?: string;
1954
+ preferentialNetworkService?:
1955
+ | 'PREFERENTIAL_NETWORK_SERVICE_UNSPECIFIED'
1956
+ | 'PREFERENTIAL_NETWORK_SERVICE_DISABLED'
1957
+ | 'PREFERENTIAL_NETWORK_SERVICE_ENABLED';
1371
1958
  /** Optional. Controls whether printing is allowed. This is supported on devices running Android 9 and above. . */
1372
- printingPolicy?: string;
1959
+ printingPolicy?:
1960
+ | 'PRINTING_POLICY_UNSPECIFIED'
1961
+ | 'PRINTING_DISALLOWED'
1962
+ | 'PRINTING_ALLOWED';
1373
1963
  /** Allows showing UI on a device for a user to choose a private key alias if there are no matching rules in ChoosePrivateKeyRules. For devices below Android P, setting this may leave enterprise keys vulnerable. This value will have no effect if any application has CERT_SELECTION delegation scope. */
1374
1964
  privateKeySelectionEnabled?: boolean;
1375
1965
  /** The network-independent global HTTP proxy. Typically proxies should be configured per-network in open_network_configuration. However for unusual configurations like general internal filtering a global HTTP proxy may be useful. If the proxy is not accessible, network access may break. The global proxy is only a recommendation and some apps may ignore it. */
@@ -1399,7 +1989,11 @@ declare namespace gapi.client {
1399
1989
  /** Status reporting settings */
1400
1990
  statusReportingSettings?: StatusReportingSettings;
1401
1991
  /** The battery plugged in modes for which the device stays on. When using this setting, it is recommended to clear maximum_time_to_lock so that the device doesn't lock itself while it stays on. */
1402
- stayOnPluggedModes?: string[];
1992
+ stayOnPluggedModes?:
1993
+ | 'BATTERY_PLUGGED_MODE_UNSPECIFIED'
1994
+ | 'AC'
1995
+ | 'USB'
1996
+ | 'WIRELESS'[];
1403
1997
  /** The system update policy, which controls how OS updates are applied. If the update type is WINDOWED, the update window will automatically apply to Play app updates as well.Note: Google Play system updates (https://source.android.com/docs/core/ota/modular-system) (also called Mainline updates) are automatically downloaded and require a device reboot to be installed. Refer to the mainline section in Manage system updates (https://developer.android.com/work/dpc/system-updates#mainline) for further details. */
1404
1998
  systemUpdate?: SystemUpdate;
1405
1999
  /** Whether configuring tethering and portable hotspots is disabled. If tetheringSettings is set to anything other than TETHERING_SETTINGS_UNSPECIFIED, this setting is ignored. */
@@ -1423,7 +2017,7 @@ declare namespace gapi.client {
1423
2017
  /** This is deprecated. */
1424
2018
  wifiConfigsLockdownEnabled?: boolean;
1425
2019
  /** Optional. Wipe flags to indicate what data is wiped when a device or profile wipe is triggered due to any reason (for example, non-compliance). This does not apply to the enterprises.devices.delete method. . This list must not have duplicates. */
1426
- wipeDataFlags?: string[];
2020
+ wipeDataFlags?: 'WIPE_DATA_FLAG_UNSPECIFIED' | 'WIPE_ESIMS'[];
1427
2021
  /** Optional. Controls the work account setup configuration, such as details of whether a Google authenticated account is required. */
1428
2022
  workAccountSetupConfig?: WorkAccountSetupConfig;
1429
2023
  }
@@ -1439,7 +2033,11 @@ declare namespace gapi.client {
1439
2033
  /** Corresponding admin-facing advice to mitigate this security risk and improve the security posture of the device. */
1440
2034
  advice?: UserFacingMessage[];
1441
2035
  /** A specific security risk that negatively affects the security posture of the device. */
1442
- securityRisk?: string;
2036
+ securityRisk?:
2037
+ | 'SECURITY_RISK_UNSPECIFIED'
2038
+ | 'UNKNOWN_OS'
2039
+ | 'COMPROMISED_OS'
2040
+ | 'HARDWARE_BACKED_EVALUATION_FAILED';
1443
2041
  }
1444
2042
  interface PowerManagementEvent {
1445
2043
  /** For BATTERY_LEVEL_COLLECTED events, the battery level as a percentage. */
@@ -1447,19 +2045,47 @@ declare namespace gapi.client {
1447
2045
  /** The creation time of the event. */
1448
2046
  createTime?: string;
1449
2047
  /** Event type. */
1450
- eventType?: string;
2048
+ eventType?:
2049
+ | 'POWER_MANAGEMENT_EVENT_TYPE_UNSPECIFIED'
2050
+ | 'BATTERY_LEVEL_COLLECTED'
2051
+ | 'POWER_CONNECTED'
2052
+ | 'POWER_DISCONNECTED'
2053
+ | 'BATTERY_LOW'
2054
+ | 'BATTERY_OKAY'
2055
+ | 'BOOT_COMPLETED'
2056
+ | 'SHUTDOWN';
1451
2057
  }
1452
2058
  interface PreferentialNetworkServiceConfig {
1453
2059
  /** Optional. Whether fallback to the device-wide default network is allowed. If this is set to FALLBACK_TO_DEFAULT_CONNECTION_ALLOWED, then nonMatchingNetworks must not be set to NON_MATCHING_NETWORKS_DISALLOWED, the policy will be rejected otherwise. Note: If this is set to FALLBACK_TO_DEFAULT_CONNECTION_DISALLOWED, applications are not able to access the internet if the 5G slice is not available. */
1454
- fallbackToDefaultConnection?: string;
2060
+ fallbackToDefaultConnection?:
2061
+ | 'FALLBACK_TO_DEFAULT_CONNECTION_UNSPECIFIED'
2062
+ | 'FALLBACK_TO_DEFAULT_CONNECTION_ALLOWED'
2063
+ | 'FALLBACK_TO_DEFAULT_CONNECTION_DISALLOWED';
1455
2064
  /** Optional. Whether apps this configuration applies to are blocked from using networks other than the preferential service. If this is set to NON_MATCHING_NETWORKS_DISALLOWED, then fallbackToDefaultConnection must be set to FALLBACK_TO_DEFAULT_CONNECTION_DISALLOWED. */
1456
- nonMatchingNetworks?: string;
2065
+ nonMatchingNetworks?:
2066
+ | 'NON_MATCHING_NETWORKS_UNSPECIFIED'
2067
+ | 'NON_MATCHING_NETWORKS_ALLOWED'
2068
+ | 'NON_MATCHING_NETWORKS_DISALLOWED';
1457
2069
  /** Required. Preferential network identifier. This must not be set to NO_PREFERENTIAL_NETWORK or PREFERENTIAL_NETWORK_ID_UNSPECIFIED, the policy will be rejected otherwise. */
1458
- preferentialNetworkId?: string;
2070
+ preferentialNetworkId?:
2071
+ | 'PREFERENTIAL_NETWORK_ID_UNSPECIFIED'
2072
+ | 'NO_PREFERENTIAL_NETWORK'
2073
+ | 'PREFERENTIAL_NETWORK_ID_ONE'
2074
+ | 'PREFERENTIAL_NETWORK_ID_TWO'
2075
+ | 'PREFERENTIAL_NETWORK_ID_THREE'
2076
+ | 'PREFERENTIAL_NETWORK_ID_FOUR'
2077
+ | 'PREFERENTIAL_NETWORK_ID_FIVE';
1459
2078
  }
1460
2079
  interface PreferentialNetworkServiceSettings {
1461
2080
  /** Required. Default preferential network ID for the applications that are not in applications or if ApplicationPolicy.preferentialNetworkId is set to PREFERENTIAL_NETWORK_ID_UNSPECIFIED. There must be a configuration for the specified network ID in preferentialNetworkServiceConfigs, unless this is set to NO_PREFERENTIAL_NETWORK. If set to PREFERENTIAL_NETWORK_ID_UNSPECIFIED or unset, this defaults to NO_PREFERENTIAL_NETWORK. Note: If the default preferential network is misconfigured, applications with no ApplicationPolicy.preferentialNetworkId set are not able to access the internet. This setting does not apply to the following critical apps: com.google.android.apps.work.clouddpc com.google.android.gmsApplicationPolicy.preferentialNetworkId can still be used to configure the preferential network for them. */
1462
- defaultPreferentialNetworkId?: string;
2081
+ defaultPreferentialNetworkId?:
2082
+ | 'PREFERENTIAL_NETWORK_ID_UNSPECIFIED'
2083
+ | 'NO_PREFERENTIAL_NETWORK'
2084
+ | 'PREFERENTIAL_NETWORK_ID_ONE'
2085
+ | 'PREFERENTIAL_NETWORK_ID_TWO'
2086
+ | 'PREFERENTIAL_NETWORK_ID_THREE'
2087
+ | 'PREFERENTIAL_NETWORK_ID_FOUR'
2088
+ | 'PREFERENTIAL_NETWORK_ID_FIVE';
1463
2089
  /** Required. Preferential network service configurations which enables having multiple enterprise slices. There must not be multiple configurations with the same preferentialNetworkId. If a configuration is not referenced by any application by setting ApplicationPolicy.preferentialNetworkId or by setting defaultPreferentialNetworkId, it will be ignored. For devices on 4G networks, enterprise APN needs to be configured additionally to set up data call for preferential network service. These APNs can be added using apnPolicy. */
1464
2090
  preferentialNetworkServiceConfigs?: PreferentialNetworkServiceConfig[];
1465
2091
  }
@@ -1467,7 +2093,11 @@ declare namespace gapi.client {
1467
2093
  /** Optional. The hostname of the DNS server. This must be set if and only if private_dns_mode is set to PRIVATE_DNS_SPECIFIED_HOST. Supported on Android 10 and above on fully managed devices. A NonComplianceDetail with MANAGEMENT_MODE is reported on other management modes. A NonComplianceDetail with API_LEVEL is reported if the Android version is less than 10. A NonComplianceDetail with PENDING is reported if the device is not connected to a network. A NonComplianceDetail with nonComplianceReason INVALID_VALUE and specificNonComplianceReason PRIVATE_DNS_HOST_NOT_SERVING is reported if the specified host is not a DNS server or not supported on Android. A NonComplianceDetail with INVALID_VALUE is reported if applying this setting fails for any other reason. */
1468
2094
  privateDnsHost?: string;
1469
2095
  /** Optional. The configuration mode for device's global private DNS settings. If this is set to PRIVATE_DNS_SPECIFIED_HOST, then private_dns_host must be set. */
1470
- privateDnsMode?: string;
2096
+ privateDnsMode?:
2097
+ | 'PRIVATE_DNS_MODE_UNSPECIFIED'
2098
+ | 'PRIVATE_DNS_USER_CHOICE'
2099
+ | 'PRIVATE_DNS_AUTOMATIC'
2100
+ | 'PRIVATE_DNS_SPECIFIED_HOST';
1471
2101
  }
1472
2102
  interface ProvisioningInfo {
1473
2103
  /** The API level of the Android platform version running on the device. */
@@ -1481,7 +2111,10 @@ declare namespace gapi.client {
1481
2111
  /** For corporate-owned devices, IMEI number of the GSM device. For example, A1000031212. */
1482
2112
  imei?: string;
1483
2113
  /** The management mode of the device or profile. */
1484
- managementMode?: string;
2114
+ managementMode?:
2115
+ | 'MANAGEMENT_MODE_UNSPECIFIED'
2116
+ | 'DEVICE_OWNER'
2117
+ | 'PROFILE_OWNER';
1485
2118
  /** For corporate-owned devices, MEID number of the CDMA device. For example, A00000292788E1. */
1486
2119
  meid?: string;
1487
2120
  /** The model of the device. For example, Asus Nexus 7. */
@@ -1489,7 +2122,10 @@ declare namespace gapi.client {
1489
2122
  /** The name of this resource in the form provisioningInfo/{provisioning_info}. */
1490
2123
  name?: string;
1491
2124
  /** Ownership of the managed device. */
1492
- ownership?: string;
2125
+ ownership?:
2126
+ | 'OWNERSHIP_UNSPECIFIED'
2127
+ | 'COMPANY_OWNED'
2128
+ | 'PERSONALLY_OWNED';
1493
2129
  /** For corporate-owned devices, The device serial number. */
1494
2130
  serialNumber?: string;
1495
2131
  }
@@ -1525,33 +2161,54 @@ declare namespace gapi.client {
1525
2161
  }
1526
2162
  interface RequestDeviceInfoParams {
1527
2163
  /** Required. Type of device information to be requested. */
1528
- deviceInfo?: string;
2164
+ deviceInfo?: 'DEVICE_INFO_UNSPECIFIED' | 'EID';
1529
2165
  }
1530
2166
  interface RequestDeviceInfoStatus {
1531
2167
  /** Information related to the EIDs of the device. */
1532
2168
  eidInfo?: EidInfo;
1533
2169
  /** Output only. Status of a REQUEST_DEVICE_INFO command. */
1534
- status?: string;
2170
+ status?:
2171
+ | 'STATUS_UNSPECIFIED'
2172
+ | 'SUCCEEDED'
2173
+ | 'PENDING_USER_ACTION'
2174
+ | 'USER_DECLINED'
2175
+ | 'UNSUPPORTED';
1535
2176
  }
1536
2177
  interface Role {
1537
2178
  /** Required. The type of the role an app can have. */
1538
- roleType?: string;
2179
+ roleType?:
2180
+ | 'ROLE_TYPE_UNSPECIFIED'
2181
+ | 'COMPANION_APP'
2182
+ | 'KIOSK'
2183
+ | 'MOBILE_THREAT_DEFENSE_ENDPOINT_DETECTION_RESPONSE'
2184
+ | 'SYSTEM_HEALTH_MONITORING';
1539
2185
  }
1540
2186
  interface ScreenBrightnessSettings {
1541
2187
  /** Optional. The screen brightness between 1 and 255 where 1 is the lowest and 255 is the highest brightness. A value of 0 (default) means no screen brightness set. Any other value is rejected. screenBrightnessMode must be either BRIGHTNESS_AUTOMATIC or BRIGHTNESS_FIXED to set this. Supported on Android 9 and above on fully managed devices. A NonComplianceDetail with API_LEVEL is reported if the Android version is less than 9. Supported on work profiles on company-owned devices on Android 15 and above. */
1542
2188
  screenBrightness?: number;
1543
2189
  /** Optional. Controls the screen brightness mode. */
1544
- screenBrightnessMode?: string;
2190
+ screenBrightnessMode?:
2191
+ | 'SCREEN_BRIGHTNESS_MODE_UNSPECIFIED'
2192
+ | 'BRIGHTNESS_USER_CHOICE'
2193
+ | 'BRIGHTNESS_AUTOMATIC'
2194
+ | 'BRIGHTNESS_FIXED';
1545
2195
  }
1546
2196
  interface ScreenTimeoutSettings {
1547
2197
  /** Optional. Controls the screen timeout duration. The screen timeout duration must be greater than 0, otherwise it is rejected. Additionally, it should not be greater than maximumTimeToLock, otherwise the screen timeout is set to maximumTimeToLock and a NonComplianceDetail with INVALID_VALUE reason and SCREEN_TIMEOUT_GREATER_THAN_MAXIMUM_TIME_TO_LOCK specific reason is reported. If the screen timeout is less than a certain lower bound, it is set to the lower bound. The lower bound may vary across devices. If this is set, screenTimeoutMode must be SCREEN_TIMEOUT_ENFORCED. Supported on Android 9 and above on fully managed devices. A NonComplianceDetail with API_LEVEL is reported if the Android version is less than 9. Supported on work profiles on company-owned devices on Android 15 and above. */
1548
2198
  screenTimeout?: string;
1549
2199
  /** Optional. Controls whether the user is allowed to configure the screen timeout. */
1550
- screenTimeoutMode?: string;
2200
+ screenTimeoutMode?:
2201
+ | 'SCREEN_TIMEOUT_MODE_UNSPECIFIED'
2202
+ | 'SCREEN_TIMEOUT_USER_CHOICE'
2203
+ | 'SCREEN_TIMEOUT_ENFORCED';
1551
2204
  }
1552
2205
  interface SecurityPosture {
1553
2206
  /** Device's security posture value. */
1554
- devicePosture?: string;
2207
+ devicePosture?:
2208
+ | 'POSTURE_UNSPECIFIED'
2209
+ | 'SECURE'
2210
+ | 'AT_RISK'
2211
+ | 'POTENTIALLY_COMPROMISED';
1555
2212
  /** Additional details regarding the security posture of the device. */
1556
2213
  postureDetails?: PostureDetail[];
1557
2214
  }
@@ -1565,9 +2222,16 @@ declare namespace gapi.client {
1565
2222
  }
1566
2223
  interface SigninDetail {
1567
2224
  /** Controls whether personal usage is allowed on a device provisioned with this enrollment token.For company-owned devices: Enabling personal usage allows the user to set up a work profile on the device. Disabling personal usage requires the user provision the device as a fully managed device.For personally-owned devices: Enabling personal usage allows the user to set up a work profile on the device. Disabling personal usage will prevent the device from provisioning. Personal usage cannot be disabled on personally-owned device. */
1568
- allowPersonalUsage?: string;
2225
+ allowPersonalUsage?:
2226
+ | 'ALLOW_PERSONAL_USAGE_UNSPECIFIED'
2227
+ | 'PERSONAL_USAGE_ALLOWED'
2228
+ | 'PERSONAL_USAGE_DISALLOWED'
2229
+ | 'PERSONAL_USAGE_DISALLOWED_USERLESS';
1569
2230
  /** Optional. Whether the sign-in URL should be used by default for the enterprise. The SigninDetail with defaultStatus set to SIGNIN_DETAIL_IS_DEFAULT is used for Google account enrollment method. Only one of an enterprise's signinDetails can have defaultStatus set to SIGNIN_DETAIL_IS_DEFAULT. If an Enterprise has at least one signinDetails and none of them have defaultStatus set to SIGNIN_DETAIL_IS_DEFAULT then the first one from the list is selected and has set defaultStatus to SIGNIN_DETAIL_IS_DEFAULT. If no signinDetails specified for the Enterprise then the Google Account device enrollment will fail. */
1570
- defaultStatus?: string;
2231
+ defaultStatus?:
2232
+ | 'SIGNIN_DETAIL_DEFAULT_STATUS_UNSPECIFIED'
2233
+ | 'SIGNIN_DETAIL_IS_DEFAULT'
2234
+ | 'SIGNIN_DETAIL_IS_NOT_DEFAULT';
1571
2235
  /** A JSON string whose UTF-8 representation can be used to generate a QR code to enroll a device with this enrollment token. To enroll a device using NFC, the NFC record must contain a serialized java.util.Properties representation of the properties in the JSON. This is a read-only field generated by the server. */
1572
2236
  qrCode?: string;
1573
2237
  /** An enterprise wide enrollment token used to trigger custom sign-in flow. This is a read-only field generated by the server. */
@@ -1629,13 +2293,18 @@ declare namespace gapi.client {
1629
2293
  }
1630
2294
  interface StartLostModeStatus {
1631
2295
  /** The status. See StartLostModeStatus. */
1632
- status?: string;
2296
+ status?:
2297
+ | 'STATUS_UNSPECIFIED'
2298
+ | 'SUCCESS'
2299
+ | 'RESET_PASSWORD_RECENTLY'
2300
+ | 'USER_EXIT_LOST_MODE_RECENTLY'
2301
+ | 'ALREADY_IN_LOST_MODE';
1633
2302
  }
1634
2303
  interface Status {
1635
2304
  /** The status code, which should be an enum value of google.rpc.Code. */
1636
2305
  code?: number;
1637
2306
  /** A list of messages that carry the error details. There is a common set of message types for APIs to use. */
1638
- details?: Array<{[P in string]: any}>;
2307
+ details?: {[P in string]: any}[];
1639
2308
  /** A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client. */
1640
2309
  message?: string;
1641
2310
  }
@@ -1668,11 +2337,11 @@ declare namespace gapi.client {
1668
2337
  interface StopLostModeParams {}
1669
2338
  interface StopLostModeStatus {
1670
2339
  /** The status. See StopLostModeStatus. */
1671
- status?: string;
2340
+ status?: 'STATUS_UNSPECIFIED' | 'SUCCESS' | 'NOT_IN_LOST_MODE';
1672
2341
  }
1673
2342
  interface StopLostModeUserAttemptEvent {
1674
2343
  /** The status of the attempt to stop lost mode. */
1675
- status?: string;
2344
+ status?: 'STATUS_UNSPECIFIED' | 'ATTEMPT_SUCCEEDED' | 'ATTEMPT_FAILED';
1676
2345
  }
1677
2346
  interface SystemUpdate {
1678
2347
  /** If the type is WINDOWED, the end of the maintenance window, measured as the number of minutes after midnight in device's local time. This value must be between 0 and 1439, inclusive. If this value is less than start_minutes, then the maintenance window spans midnight. If the maintenance window specified is smaller than 30 minutes, the actual window is extended to 30 minutes beyond the start time. */
@@ -1682,21 +2351,36 @@ declare namespace gapi.client {
1682
2351
  /** If the type is WINDOWED, the start of the maintenance window, measured as the number of minutes after midnight in the device's local time. This value must be between 0 and 1439, inclusive. */
1683
2352
  startMinutes?: number;
1684
2353
  /** The type of system update to configure. */
1685
- type?: string;
2354
+ type?:
2355
+ | 'SYSTEM_UPDATE_TYPE_UNSPECIFIED'
2356
+ | 'AUTOMATIC'
2357
+ | 'WINDOWED'
2358
+ | 'POSTPONE';
1686
2359
  }
1687
2360
  interface SystemUpdateInfo {
1688
2361
  /** The time when the update was first available. A zero value indicates that this field is not set. This field is set only if an update is available (that is, updateStatus is neither UPDATE_STATUS_UNKNOWN nor UP_TO_DATE). */
1689
2362
  updateReceivedTime?: string;
1690
2363
  /** The status of an update: whether an update exists and what type it is. */
1691
- updateStatus?: string;
2364
+ updateStatus?:
2365
+ | 'UPDATE_STATUS_UNKNOWN'
2366
+ | 'UP_TO_DATE'
2367
+ | 'UNKNOWN_UPDATE_AVAILABLE'
2368
+ | 'SECURITY_UPDATE_AVAILABLE'
2369
+ | 'OS_UPDATE_AVAILABLE';
1692
2370
  }
1693
2371
  interface TelephonyInfo {
1694
2372
  /** Output only. Activation state of the SIM card on the device. This is applicable for eSIMs only. This is supported on all devices for Android 15 and above. This is always ACTIVATION_STATE_UNSPECIFIED for physical SIMs and for devices below Android 15. */
1695
- activationState?: string;
2373
+ activationState?:
2374
+ | 'ACTIVATION_STATE_UNSPECIFIED'
2375
+ | 'ACTIVATED'
2376
+ | 'NOT_ACTIVATED';
1696
2377
  /** The carrier name associated with this SIM card. */
1697
2378
  carrierName?: string;
1698
2379
  /** Output only. The configuration mode of the SIM card on the device. This is applicable for eSIMs only. This is supported on all devices for Android 15 and above. This is always CONFIG_MODE_UNSPECIFIED for physical SIMs and for devices below Android 15. */
1699
- configMode?: string;
2380
+ configMode?:
2381
+ | 'CONFIG_MODE_UNSPECIFIED'
2382
+ | 'ADMIN_CONFIGURED'
2383
+ | 'USER_CONFIGURED';
1700
2384
  /** Output only. The ICCID associated with this SIM card. */
1701
2385
  iccId?: string;
1702
2386
  /** The phone number associated with this SIM card. */
@@ -1710,9 +2394,15 @@ declare namespace gapi.client {
1710
2394
  }
1711
2395
  interface UsageLog {
1712
2396
  /** Specifies which log types are enabled. Note that users will receive on-device messaging when usage logging is enabled. */
1713
- enabledLogTypes?: string[];
2397
+ enabledLogTypes?:
2398
+ | 'LOG_TYPE_UNSPECIFIED'
2399
+ | 'SECURITY_LOGS'
2400
+ | 'NETWORK_ACTIVITY_LOGS'[];
1714
2401
  /** Specifies which of the enabled log types can be uploaded over mobile data. By default logs are queued for upload when the device connects to WiFi. */
1715
- uploadOnCellularAllowed?: string[];
2402
+ uploadOnCellularAllowed?:
2403
+ | 'LOG_TYPE_UNSPECIFIED'
2404
+ | 'SECURITY_LOGS'
2405
+ | 'NETWORK_ACTIVITY_LOGS'[];
1716
2406
  }
1717
2407
  interface UsageLogEvent {
1718
2408
  /** A shell command was issued over ADB via “adb shell command”. Part of SECURITY_LOGS. */
@@ -1742,7 +2432,40 @@ declare namespace gapi.client {
1742
2432
  /** Device timestamp when the event was logged. */
1743
2433
  eventTime?: string;
1744
2434
  /** The particular usage log event type that was reported on the device. Use this to determine which event field to access. */
1745
- eventType?: string;
2435
+ eventType?:
2436
+ | 'EVENT_TYPE_UNSPECIFIED'
2437
+ | 'ADB_SHELL_COMMAND'
2438
+ | 'ADB_SHELL_INTERACTIVE'
2439
+ | 'APP_PROCESS_START'
2440
+ | 'KEYGUARD_DISMISSED'
2441
+ | 'KEYGUARD_DISMISS_AUTH_ATTEMPT'
2442
+ | 'KEYGUARD_SECURED'
2443
+ | 'FILE_PULLED'
2444
+ | 'FILE_PUSHED'
2445
+ | 'CERT_AUTHORITY_INSTALLED'
2446
+ | 'CERT_AUTHORITY_REMOVED'
2447
+ | 'CERT_VALIDATION_FAILURE'
2448
+ | 'CRYPTO_SELF_TEST_COMPLETED'
2449
+ | 'KEY_DESTRUCTION'
2450
+ | 'KEY_GENERATED'
2451
+ | 'KEY_IMPORT'
2452
+ | 'KEY_INTEGRITY_VIOLATION'
2453
+ | 'LOGGING_STARTED'
2454
+ | 'LOGGING_STOPPED'
2455
+ | 'LOG_BUFFER_SIZE_CRITICAL'
2456
+ | 'MEDIA_MOUNT'
2457
+ | 'MEDIA_UNMOUNT'
2458
+ | 'OS_SHUTDOWN'
2459
+ | 'OS_STARTUP'
2460
+ | 'REMOTE_LOCK'
2461
+ | 'WIPE_FAILURE'
2462
+ | 'CONNECT'
2463
+ | 'DNS'
2464
+ | 'STOP_LOST_MODE_USER_ATTEMPT'
2465
+ | 'LOST_MODE_OUTGOING_PHONE_CALL'
2466
+ | 'LOST_MODE_LOCATION'
2467
+ | 'ENROLLMENT_COMPLETE'
2468
+ | 'BACKUP_SERVICE_TOGGLED';
1746
2469
  /** A file was downloaded from the device. Part of SECURITY_LOGS. */
1747
2470
  filePulledEvent?: FilePulledEvent;
1748
2471
  /** A file was uploaded onto the device. Part of SECURITY_LOGS. */
@@ -1798,7 +2521,11 @@ declare namespace gapi.client {
1798
2521
  }
1799
2522
  interface WebApp {
1800
2523
  /** The display mode of the web app. */
1801
- displayMode?: string;
2524
+ displayMode?:
2525
+ | 'DISPLAY_MODE_UNSPECIFIED'
2526
+ | 'MINIMAL_UI'
2527
+ | 'STANDALONE'
2528
+ | 'FULL_SCREEN';
1802
2529
  /** A list of icons for the web app. Must have at least one element. */
1803
2530
  icons?: WebAppIcon[];
1804
2531
  /** The name of the web app, which is generated by the server during creation in the form enterprises/{enterpriseId}/webApps/{packageName}. */
@@ -1816,13 +2543,20 @@ declare namespace gapi.client {
1816
2543
  }
1817
2544
  interface WebToken {
1818
2545
  /** The features to enable. Use this if you want to control exactly which feature(s) will be activated; leave empty to allow all features.Restrictions / things to note: - If no features are listed here, all features are enabled — this is the default behavior where you give access to all features to your admins. - This must not contain any FEATURE_UNSPECIFIED values. - Repeated values are ignored */
1819
- enabledFeatures?: string[];
2546
+ enabledFeatures?:
2547
+ | 'FEATURE_UNSPECIFIED'
2548
+ | 'PLAY_SEARCH'
2549
+ | 'PRIVATE_APPS'
2550
+ | 'WEB_APPS'
2551
+ | 'STORE_BUILDER'
2552
+ | 'MANAGED_CONFIGURATIONS'
2553
+ | 'ZERO_TOUCH_CUSTOMER_MANAGEMENT'[];
1820
2554
  /** The name of the web token, which is generated by the server during creation in the form enterprises/{enterpriseId}/webTokens/{webTokenId}. */
1821
2555
  name?: string;
1822
2556
  /** The URL of the parent frame hosting the iframe with the embedded UI. To prevent XSS, the iframe may not be hosted at other URLs. The URL must use the https scheme. */
1823
2557
  parentFrameUrl?: string;
1824
2558
  /** Permissions available to an admin in the embedded UI. An admin must have all of these permissions in order to view the UI. This field is deprecated. */
1825
- permissions?: string[];
2559
+ permissions?: 'WEB_TOKEN_PERMISSION_UNSPECIFIED' | 'APPROVE_APPS'[];
1826
2560
  /** The token value which is used in the hosting page to generate the iframe with the embedded UI. This is a read-only field generated by the server. */
1827
2561
  value?: string;
1828
2562
  }
@@ -1832,7 +2566,11 @@ declare namespace gapi.client {
1832
2566
  }
1833
2567
  interface WifiRoamingSetting {
1834
2568
  /** Required. Wi-Fi roaming mode for the specified SSID. */
1835
- wifiRoamingMode?: string;
2569
+ wifiRoamingMode?:
2570
+ | 'WIFI_ROAMING_MODE_UNSPECIFIED'
2571
+ | 'WIFI_ROAMING_DISABLED'
2572
+ | 'WIFI_ROAMING_DEFAULT'
2573
+ | 'WIFI_ROAMING_AGGRESSIVE';
1836
2574
  /** Required. SSID of the Wi-Fi network. */
1837
2575
  wifiSsid?: string;
1838
2576
  }
@@ -1842,7 +2580,10 @@ declare namespace gapi.client {
1842
2580
  }
1843
2581
  interface WifiSsidPolicy {
1844
2582
  /** Type of the Wi-Fi SSID policy to be applied. */
1845
- wifiSsidPolicyType?: string;
2583
+ wifiSsidPolicyType?:
2584
+ | 'WIFI_SSID_POLICY_TYPE_UNSPECIFIED'
2585
+ | 'WIFI_SSID_DENYLIST'
2586
+ | 'WIFI_SSID_ALLOWLIST';
1846
2587
  /** Optional. List of Wi-Fi SSIDs that should be applied in the policy. This field must be non-empty when WifiSsidPolicyType is set to WIFI_SSID_ALLOWLIST. If this is set to a non-empty list, then a NonComplianceDetail detail with API_LEVEL is reported if the Android version is less than 13 and a NonComplianceDetail with MANAGEMENT_MODE is reported for non-company-owned devices. */
1847
2588
  wifiSsids?: WifiSsid[];
1848
2589
  }
@@ -1855,13 +2596,20 @@ declare namespace gapi.client {
1855
2596
  interface WipeFailureEvent {}
1856
2597
  interface WipeParams {
1857
2598
  /** Optional. Flags to determine what data to wipe. */
1858
- wipeDataFlags?: string[];
2599
+ wipeDataFlags?:
2600
+ | 'WIPE_DATA_FLAG_UNSPECIFIED'
2601
+ | 'PRESERVE_RESET_PROTECTION_DATA'
2602
+ | 'WIPE_EXTERNAL_STORAGE'
2603
+ | 'WIPE_ESIMS'[];
1859
2604
  /** Optional. A short message displayed to the user before wiping the work profile on personal devices. This has no effect on company owned devices. The maximum message length is 200 characters. */
1860
2605
  wipeReason?: UserFacingMessage;
1861
2606
  }
1862
2607
  interface WorkAccountSetupConfig {
1863
2608
  /** Optional. The authentication type of the user on the device. */
1864
- authenticationType?: string;
2609
+ authenticationType?:
2610
+ | 'AUTHENTICATION_TYPE_UNSPECIFIED'
2611
+ | 'AUTHENTICATION_TYPE_NOT_ENFORCED'
2612
+ | 'GOOGLE_AUTHENTICATED';
1865
2613
  /** Optional. The specific google work account email address to be added. This field is only relevant if authenticationType is GOOGLE_AUTHENTICATED. This must be an enterprise account and not a consumer account. Once set and a Google authenticated account is added to the device, changing this field will have no effect, and thus recommended to be set only once. */
1866
2614
  requiredAccountEmail?: string;
1867
2615
  }
@@ -1869,11 +2617,11 @@ declare namespace gapi.client {
1869
2617
  /** Gets info about an application. */
1870
2618
  get(request?: {
1871
2619
  /** V1 error format. */
1872
- '$.xgafv'?: string;
2620
+ '$.xgafv'?: '1' | '2';
1873
2621
  /** OAuth access token. */
1874
2622
  access_token?: string;
1875
2623
  /** Data format for response. */
1876
- alt?: string;
2624
+ alt?: 'json' | 'media' | 'proto';
1877
2625
  /** JSONP */
1878
2626
  callback?: string;
1879
2627
  /** Selector specifying which fields to include in a partial response. */
@@ -1900,11 +2648,11 @@ declare namespace gapi.client {
1900
2648
  /** Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to Code.CANCELLED. */
1901
2649
  cancel(request?: {
1902
2650
  /** V1 error format. */
1903
- '$.xgafv'?: string;
2651
+ '$.xgafv'?: '1' | '2';
1904
2652
  /** OAuth access token. */
1905
2653
  access_token?: string;
1906
2654
  /** Data format for response. */
1907
- alt?: string;
2655
+ alt?: 'json' | 'media' | 'proto';
1908
2656
  /** JSONP */
1909
2657
  callback?: string;
1910
2658
  /** Selector specifying which fields to include in a partial response. */
@@ -1927,11 +2675,11 @@ declare namespace gapi.client {
1927
2675
  /** Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service. */
1928
2676
  get(request?: {
1929
2677
  /** V1 error format. */
1930
- '$.xgafv'?: string;
2678
+ '$.xgafv'?: '1' | '2';
1931
2679
  /** OAuth access token. */
1932
2680
  access_token?: string;
1933
2681
  /** Data format for response. */
1934
- alt?: string;
2682
+ alt?: 'json' | 'media' | 'proto';
1935
2683
  /** JSONP */
1936
2684
  callback?: string;
1937
2685
  /** Selector specifying which fields to include in a partial response. */
@@ -1954,11 +2702,11 @@ declare namespace gapi.client {
1954
2702
  /** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns UNIMPLEMENTED. */
1955
2703
  list(request?: {
1956
2704
  /** V1 error format. */
1957
- '$.xgafv'?: string;
2705
+ '$.xgafv'?: '1' | '2';
1958
2706
  /** OAuth access token. */
1959
2707
  access_token?: string;
1960
2708
  /** Data format for response. */
1961
- alt?: string;
2709
+ alt?: 'json' | 'media' | 'proto';
1962
2710
  /** JSONP */
1963
2711
  callback?: string;
1964
2712
  /** Selector specifying which fields to include in a partial response. */
@@ -1991,11 +2739,11 @@ declare namespace gapi.client {
1991
2739
  /** Deletes a device. This operation attempts to wipe the device but this is not guaranteed to succeed if the device is offline for an extended period. Deleted devices do not show up in enterprises.devices.list calls and a 404 is returned from enterprises.devices.get. */
1992
2740
  delete(request?: {
1993
2741
  /** V1 error format. */
1994
- '$.xgafv'?: string;
2742
+ '$.xgafv'?: '1' | '2';
1995
2743
  /** OAuth access token. */
1996
2744
  access_token?: string;
1997
2745
  /** Data format for response. */
1998
- alt?: string;
2746
+ alt?: 'json' | 'media' | 'proto';
1999
2747
  /** JSONP */
2000
2748
  callback?: string;
2001
2749
  /** Selector specifying which fields to include in a partial response. */
@@ -2015,18 +2763,28 @@ declare namespace gapi.client {
2015
2763
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2016
2764
  uploadType?: string;
2017
2765
  /** Optional flags that control the device wiping behavior. */
2018
- wipeDataFlags?: string | string[];
2766
+ wipeDataFlags?:
2767
+ | 'WIPE_DATA_FLAG_UNSPECIFIED'
2768
+ | 'PRESERVE_RESET_PROTECTION_DATA'
2769
+ | 'WIPE_EXTERNAL_STORAGE'
2770
+ | 'WIPE_ESIMS'
2771
+ | (
2772
+ | 'WIPE_DATA_FLAG_UNSPECIFIED'
2773
+ | 'PRESERVE_RESET_PROTECTION_DATA'
2774
+ | 'WIPE_EXTERNAL_STORAGE'
2775
+ | 'WIPE_ESIMS'
2776
+ )[];
2019
2777
  /** Optional. A short message displayed to the user before wiping the work profile on personal devices. This has no effect on company owned devices. The maximum message length is 200 characters. */
2020
2778
  wipeReasonMessage?: string;
2021
2779
  }): Request<{}>;
2022
2780
  /** Gets a device. Deleted devices will respond with a 404 error. */
2023
2781
  get(request?: {
2024
2782
  /** V1 error format. */
2025
- '$.xgafv'?: string;
2783
+ '$.xgafv'?: '1' | '2';
2026
2784
  /** OAuth access token. */
2027
2785
  access_token?: string;
2028
2786
  /** Data format for response. */
2029
- alt?: string;
2787
+ alt?: 'json' | 'media' | 'proto';
2030
2788
  /** JSONP */
2031
2789
  callback?: string;
2032
2790
  /** Selector specifying which fields to include in a partial response. */
@@ -2049,11 +2807,11 @@ declare namespace gapi.client {
2049
2807
  /** Issues a command to a device. The Operation resource returned contains a Command in its metadata field. Use the get operation method to get the status of the command. */
2050
2808
  issueCommand(request: {
2051
2809
  /** V1 error format. */
2052
- '$.xgafv'?: string;
2810
+ '$.xgafv'?: '1' | '2';
2053
2811
  /** OAuth access token. */
2054
2812
  access_token?: string;
2055
2813
  /** Data format for response. */
2056
- alt?: string;
2814
+ alt?: 'json' | 'media' | 'proto';
2057
2815
  /** JSONP */
2058
2816
  callback?: string;
2059
2817
  /** Selector specifying which fields to include in a partial response. */
@@ -2078,11 +2836,11 @@ declare namespace gapi.client {
2078
2836
  issueCommand(
2079
2837
  request: {
2080
2838
  /** V1 error format. */
2081
- '$.xgafv'?: string;
2839
+ '$.xgafv'?: '1' | '2';
2082
2840
  /** OAuth access token. */
2083
2841
  access_token?: string;
2084
2842
  /** Data format for response. */
2085
- alt?: string;
2843
+ alt?: 'json' | 'media' | 'proto';
2086
2844
  /** JSONP */
2087
2845
  callback?: string;
2088
2846
  /** Selector specifying which fields to include in a partial response. */
@@ -2107,11 +2865,11 @@ declare namespace gapi.client {
2107
2865
  /** Lists devices for a given enterprise. Deleted devices are not returned in the response. */
2108
2866
  list(request?: {
2109
2867
  /** V1 error format. */
2110
- '$.xgafv'?: string;
2868
+ '$.xgafv'?: '1' | '2';
2111
2869
  /** OAuth access token. */
2112
2870
  access_token?: string;
2113
2871
  /** Data format for response. */
2114
- alt?: string;
2872
+ alt?: 'json' | 'media' | 'proto';
2115
2873
  /** JSONP */
2116
2874
  callback?: string;
2117
2875
  /** Selector specifying which fields to include in a partial response. */
@@ -2138,11 +2896,11 @@ declare namespace gapi.client {
2138
2896
  /** Updates a device. */
2139
2897
  patch(request: {
2140
2898
  /** V1 error format. */
2141
- '$.xgafv'?: string;
2899
+ '$.xgafv'?: '1' | '2';
2142
2900
  /** OAuth access token. */
2143
2901
  access_token?: string;
2144
2902
  /** Data format for response. */
2145
- alt?: string;
2903
+ alt?: 'json' | 'media' | 'proto';
2146
2904
  /** JSONP */
2147
2905
  callback?: string;
2148
2906
  /** Selector specifying which fields to include in a partial response. */
@@ -2169,11 +2927,11 @@ declare namespace gapi.client {
2169
2927
  patch(
2170
2928
  request: {
2171
2929
  /** V1 error format. */
2172
- '$.xgafv'?: string;
2930
+ '$.xgafv'?: '1' | '2';
2173
2931
  /** OAuth access token. */
2174
2932
  access_token?: string;
2175
2933
  /** Data format for response. */
2176
- alt?: string;
2934
+ alt?: 'json' | 'media' | 'proto';
2177
2935
  /** JSONP */
2178
2936
  callback?: string;
2179
2937
  /** Selector specifying which fields to include in a partial response. */
@@ -2203,11 +2961,11 @@ declare namespace gapi.client {
2203
2961
  /** Creates an enrollment token for a given enterprise. It's up to the caller's responsibility to manage the lifecycle of newly created tokens and deleting them when they're not intended to be used anymore. */
2204
2962
  create(request: {
2205
2963
  /** V1 error format. */
2206
- '$.xgafv'?: string;
2964
+ '$.xgafv'?: '1' | '2';
2207
2965
  /** OAuth access token. */
2208
2966
  access_token?: string;
2209
2967
  /** Data format for response. */
2210
- alt?: string;
2968
+ alt?: 'json' | 'media' | 'proto';
2211
2969
  /** JSONP */
2212
2970
  callback?: string;
2213
2971
  /** Selector specifying which fields to include in a partial response. */
@@ -2232,11 +2990,11 @@ declare namespace gapi.client {
2232
2990
  create(
2233
2991
  request: {
2234
2992
  /** V1 error format. */
2235
- '$.xgafv'?: string;
2993
+ '$.xgafv'?: '1' | '2';
2236
2994
  /** OAuth access token. */
2237
2995
  access_token?: string;
2238
2996
  /** Data format for response. */
2239
- alt?: string;
2997
+ alt?: 'json' | 'media' | 'proto';
2240
2998
  /** JSONP */
2241
2999
  callback?: string;
2242
3000
  /** Selector specifying which fields to include in a partial response. */
@@ -2261,11 +3019,11 @@ declare namespace gapi.client {
2261
3019
  /** Deletes an enrollment token. This operation invalidates the token, preventing its future use. */
2262
3020
  delete(request?: {
2263
3021
  /** V1 error format. */
2264
- '$.xgafv'?: string;
3022
+ '$.xgafv'?: '1' | '2';
2265
3023
  /** OAuth access token. */
2266
3024
  access_token?: string;
2267
3025
  /** Data format for response. */
2268
- alt?: string;
3026
+ alt?: 'json' | 'media' | 'proto';
2269
3027
  /** JSONP */
2270
3028
  callback?: string;
2271
3029
  /** Selector specifying which fields to include in a partial response. */
@@ -2288,11 +3046,11 @@ declare namespace gapi.client {
2288
3046
  /** Gets an active, unexpired enrollment token. A partial view of the enrollment token is returned. Only the following fields are populated: name, expirationTimestamp, allowPersonalUsage, value, qrCode. This method is meant to help manage active enrollment tokens lifecycle. For security reasons, it's recommended to delete active enrollment tokens as soon as they're not intended to be used anymore. */
2289
3047
  get(request?: {
2290
3048
  /** V1 error format. */
2291
- '$.xgafv'?: string;
3049
+ '$.xgafv'?: '1' | '2';
2292
3050
  /** OAuth access token. */
2293
3051
  access_token?: string;
2294
3052
  /** Data format for response. */
2295
- alt?: string;
3053
+ alt?: 'json' | 'media' | 'proto';
2296
3054
  /** JSONP */
2297
3055
  callback?: string;
2298
3056
  /** Selector specifying which fields to include in a partial response. */
@@ -2315,11 +3073,11 @@ declare namespace gapi.client {
2315
3073
  /** Lists active, unexpired enrollment tokens for a given enterprise. The list items contain only a partial view of EnrollmentToken object. Only the following fields are populated: name, expirationTimestamp, allowPersonalUsage, value, qrCode. This method is meant to help manage active enrollment tokens lifecycle. For security reasons, it's recommended to delete active enrollment tokens as soon as they're not intended to be used anymore. */
2316
3074
  list(request?: {
2317
3075
  /** V1 error format. */
2318
- '$.xgafv'?: string;
3076
+ '$.xgafv'?: '1' | '2';
2319
3077
  /** OAuth access token. */
2320
3078
  access_token?: string;
2321
3079
  /** Data format for response. */
2322
- alt?: string;
3080
+ alt?: 'json' | 'media' | 'proto';
2323
3081
  /** JSONP */
2324
3082
  callback?: string;
2325
3083
  /** Selector specifying which fields to include in a partial response. */
@@ -2348,11 +3106,11 @@ declare namespace gapi.client {
2348
3106
  /** Creates a migration token, to migrate an existing device from being managed by the EMM's Device Policy Controller (DPC) to being managed by the Android Management API. See the guide (https://developers.google.com/android/management/dpc-migration) for more details. */
2349
3107
  create(request: {
2350
3108
  /** V1 error format. */
2351
- '$.xgafv'?: string;
3109
+ '$.xgafv'?: '1' | '2';
2352
3110
  /** OAuth access token. */
2353
3111
  access_token?: string;
2354
3112
  /** Data format for response. */
2355
- alt?: string;
3113
+ alt?: 'json' | 'media' | 'proto';
2356
3114
  /** JSONP */
2357
3115
  callback?: string;
2358
3116
  /** Selector specifying which fields to include in a partial response. */
@@ -2377,11 +3135,11 @@ declare namespace gapi.client {
2377
3135
  create(
2378
3136
  request: {
2379
3137
  /** V1 error format. */
2380
- '$.xgafv'?: string;
3138
+ '$.xgafv'?: '1' | '2';
2381
3139
  /** OAuth access token. */
2382
3140
  access_token?: string;
2383
3141
  /** Data format for response. */
2384
- alt?: string;
3142
+ alt?: 'json' | 'media' | 'proto';
2385
3143
  /** JSONP */
2386
3144
  callback?: string;
2387
3145
  /** Selector specifying which fields to include in a partial response. */
@@ -2406,11 +3164,11 @@ declare namespace gapi.client {
2406
3164
  /** Gets a migration token. */
2407
3165
  get(request?: {
2408
3166
  /** V1 error format. */
2409
- '$.xgafv'?: string;
3167
+ '$.xgafv'?: '1' | '2';
2410
3168
  /** OAuth access token. */
2411
3169
  access_token?: string;
2412
3170
  /** Data format for response. */
2413
- alt?: string;
3171
+ alt?: 'json' | 'media' | 'proto';
2414
3172
  /** JSONP */
2415
3173
  callback?: string;
2416
3174
  /** Selector specifying which fields to include in a partial response. */
@@ -2433,11 +3191,11 @@ declare namespace gapi.client {
2433
3191
  /** Lists migration tokens. */
2434
3192
  list(request?: {
2435
3193
  /** V1 error format. */
2436
- '$.xgafv'?: string;
3194
+ '$.xgafv'?: '1' | '2';
2437
3195
  /** OAuth access token. */
2438
3196
  access_token?: string;
2439
3197
  /** Data format for response. */
2440
- alt?: string;
3198
+ alt?: 'json' | 'media' | 'proto';
2441
3199
  /** JSONP */
2442
3200
  callback?: string;
2443
3201
  /** Selector specifying which fields to include in a partial response. */
@@ -2466,11 +3224,11 @@ declare namespace gapi.client {
2466
3224
  /** Deletes a policy. This operation is only permitted if no devices are currently referencing the policy. */
2467
3225
  delete(request?: {
2468
3226
  /** V1 error format. */
2469
- '$.xgafv'?: string;
3227
+ '$.xgafv'?: '1' | '2';
2470
3228
  /** OAuth access token. */
2471
3229
  access_token?: string;
2472
3230
  /** Data format for response. */
2473
- alt?: string;
3231
+ alt?: 'json' | 'media' | 'proto';
2474
3232
  /** JSONP */
2475
3233
  callback?: string;
2476
3234
  /** Selector specifying which fields to include in a partial response. */
@@ -2493,11 +3251,11 @@ declare namespace gapi.client {
2493
3251
  /** Gets a policy. */
2494
3252
  get(request?: {
2495
3253
  /** V1 error format. */
2496
- '$.xgafv'?: string;
3254
+ '$.xgafv'?: '1' | '2';
2497
3255
  /** OAuth access token. */
2498
3256
  access_token?: string;
2499
3257
  /** Data format for response. */
2500
- alt?: string;
3258
+ alt?: 'json' | 'media' | 'proto';
2501
3259
  /** JSONP */
2502
3260
  callback?: string;
2503
3261
  /** Selector specifying which fields to include in a partial response. */
@@ -2520,11 +3278,11 @@ declare namespace gapi.client {
2520
3278
  /** Lists policies for a given enterprise. */
2521
3279
  list(request?: {
2522
3280
  /** V1 error format. */
2523
- '$.xgafv'?: string;
3281
+ '$.xgafv'?: '1' | '2';
2524
3282
  /** OAuth access token. */
2525
3283
  access_token?: string;
2526
3284
  /** Data format for response. */
2527
- alt?: string;
3285
+ alt?: 'json' | 'media' | 'proto';
2528
3286
  /** JSONP */
2529
3287
  callback?: string;
2530
3288
  /** Selector specifying which fields to include in a partial response. */
@@ -2551,11 +3309,11 @@ declare namespace gapi.client {
2551
3309
  /** Updates or creates applications in a policy. */
2552
3310
  modifyPolicyApplications(request: {
2553
3311
  /** V1 error format. */
2554
- '$.xgafv'?: string;
3312
+ '$.xgafv'?: '1' | '2';
2555
3313
  /** OAuth access token. */
2556
3314
  access_token?: string;
2557
3315
  /** Data format for response. */
2558
- alt?: string;
3316
+ alt?: 'json' | 'media' | 'proto';
2559
3317
  /** JSONP */
2560
3318
  callback?: string;
2561
3319
  /** Selector specifying which fields to include in a partial response. */
@@ -2580,11 +3338,11 @@ declare namespace gapi.client {
2580
3338
  modifyPolicyApplications(
2581
3339
  request: {
2582
3340
  /** V1 error format. */
2583
- '$.xgafv'?: string;
3341
+ '$.xgafv'?: '1' | '2';
2584
3342
  /** OAuth access token. */
2585
3343
  access_token?: string;
2586
3344
  /** Data format for response. */
2587
- alt?: string;
3345
+ alt?: 'json' | 'media' | 'proto';
2588
3346
  /** JSONP */
2589
3347
  callback?: string;
2590
3348
  /** Selector specifying which fields to include in a partial response. */
@@ -2609,11 +3367,11 @@ declare namespace gapi.client {
2609
3367
  /** Updates or creates a policy. */
2610
3368
  patch(request: {
2611
3369
  /** V1 error format. */
2612
- '$.xgafv'?: string;
3370
+ '$.xgafv'?: '1' | '2';
2613
3371
  /** OAuth access token. */
2614
3372
  access_token?: string;
2615
3373
  /** Data format for response. */
2616
- alt?: string;
3374
+ alt?: 'json' | 'media' | 'proto';
2617
3375
  /** JSONP */
2618
3376
  callback?: string;
2619
3377
  /** Selector specifying which fields to include in a partial response. */
@@ -2640,11 +3398,11 @@ declare namespace gapi.client {
2640
3398
  patch(
2641
3399
  request: {
2642
3400
  /** V1 error format. */
2643
- '$.xgafv'?: string;
3401
+ '$.xgafv'?: '1' | '2';
2644
3402
  /** OAuth access token. */
2645
3403
  access_token?: string;
2646
3404
  /** Data format for response. */
2647
- alt?: string;
3405
+ alt?: 'json' | 'media' | 'proto';
2648
3406
  /** JSONP */
2649
3407
  callback?: string;
2650
3408
  /** Selector specifying which fields to include in a partial response. */
@@ -2671,11 +3429,11 @@ declare namespace gapi.client {
2671
3429
  /** Removes applications in a policy. */
2672
3430
  removePolicyApplications(request: {
2673
3431
  /** V1 error format. */
2674
- '$.xgafv'?: string;
3432
+ '$.xgafv'?: '1' | '2';
2675
3433
  /** OAuth access token. */
2676
3434
  access_token?: string;
2677
3435
  /** Data format for response. */
2678
- alt?: string;
3436
+ alt?: 'json' | 'media' | 'proto';
2679
3437
  /** JSONP */
2680
3438
  callback?: string;
2681
3439
  /** Selector specifying which fields to include in a partial response. */
@@ -2700,11 +3458,11 @@ declare namespace gapi.client {
2700
3458
  removePolicyApplications(
2701
3459
  request: {
2702
3460
  /** V1 error format. */
2703
- '$.xgafv'?: string;
3461
+ '$.xgafv'?: '1' | '2';
2704
3462
  /** OAuth access token. */
2705
3463
  access_token?: string;
2706
3464
  /** Data format for response. */
2707
- alt?: string;
3465
+ alt?: 'json' | 'media' | 'proto';
2708
3466
  /** JSONP */
2709
3467
  callback?: string;
2710
3468
  /** Selector specifying which fields to include in a partial response. */
@@ -2731,11 +3489,11 @@ declare namespace gapi.client {
2731
3489
  /** Creates a web app. */
2732
3490
  create(request: {
2733
3491
  /** V1 error format. */
2734
- '$.xgafv'?: string;
3492
+ '$.xgafv'?: '1' | '2';
2735
3493
  /** OAuth access token. */
2736
3494
  access_token?: string;
2737
3495
  /** Data format for response. */
2738
- alt?: string;
3496
+ alt?: 'json' | 'media' | 'proto';
2739
3497
  /** JSONP */
2740
3498
  callback?: string;
2741
3499
  /** Selector specifying which fields to include in a partial response. */
@@ -2760,11 +3518,11 @@ declare namespace gapi.client {
2760
3518
  create(
2761
3519
  request: {
2762
3520
  /** V1 error format. */
2763
- '$.xgafv'?: string;
3521
+ '$.xgafv'?: '1' | '2';
2764
3522
  /** OAuth access token. */
2765
3523
  access_token?: string;
2766
3524
  /** Data format for response. */
2767
- alt?: string;
3525
+ alt?: 'json' | 'media' | 'proto';
2768
3526
  /** JSONP */
2769
3527
  callback?: string;
2770
3528
  /** Selector specifying which fields to include in a partial response. */
@@ -2789,11 +3547,11 @@ declare namespace gapi.client {
2789
3547
  /** Deletes a web app. */
2790
3548
  delete(request?: {
2791
3549
  /** V1 error format. */
2792
- '$.xgafv'?: string;
3550
+ '$.xgafv'?: '1' | '2';
2793
3551
  /** OAuth access token. */
2794
3552
  access_token?: string;
2795
3553
  /** Data format for response. */
2796
- alt?: string;
3554
+ alt?: 'json' | 'media' | 'proto';
2797
3555
  /** JSONP */
2798
3556
  callback?: string;
2799
3557
  /** Selector specifying which fields to include in a partial response. */
@@ -2816,11 +3574,11 @@ declare namespace gapi.client {
2816
3574
  /** Gets a web app. */
2817
3575
  get(request?: {
2818
3576
  /** V1 error format. */
2819
- '$.xgafv'?: string;
3577
+ '$.xgafv'?: '1' | '2';
2820
3578
  /** OAuth access token. */
2821
3579
  access_token?: string;
2822
3580
  /** Data format for response. */
2823
- alt?: string;
3581
+ alt?: 'json' | 'media' | 'proto';
2824
3582
  /** JSONP */
2825
3583
  callback?: string;
2826
3584
  /** Selector specifying which fields to include in a partial response. */
@@ -2843,11 +3601,11 @@ declare namespace gapi.client {
2843
3601
  /** Lists web apps for a given enterprise. */
2844
3602
  list(request?: {
2845
3603
  /** V1 error format. */
2846
- '$.xgafv'?: string;
3604
+ '$.xgafv'?: '1' | '2';
2847
3605
  /** OAuth access token. */
2848
3606
  access_token?: string;
2849
3607
  /** Data format for response. */
2850
- alt?: string;
3608
+ alt?: 'json' | 'media' | 'proto';
2851
3609
  /** JSONP */
2852
3610
  callback?: string;
2853
3611
  /** Selector specifying which fields to include in a partial response. */
@@ -2874,11 +3632,11 @@ declare namespace gapi.client {
2874
3632
  /** Updates a web app. */
2875
3633
  patch(request: {
2876
3634
  /** V1 error format. */
2877
- '$.xgafv'?: string;
3635
+ '$.xgafv'?: '1' | '2';
2878
3636
  /** OAuth access token. */
2879
3637
  access_token?: string;
2880
3638
  /** Data format for response. */
2881
- alt?: string;
3639
+ alt?: 'json' | 'media' | 'proto';
2882
3640
  /** JSONP */
2883
3641
  callback?: string;
2884
3642
  /** Selector specifying which fields to include in a partial response. */
@@ -2905,11 +3663,11 @@ declare namespace gapi.client {
2905
3663
  patch(
2906
3664
  request: {
2907
3665
  /** V1 error format. */
2908
- '$.xgafv'?: string;
3666
+ '$.xgafv'?: '1' | '2';
2909
3667
  /** OAuth access token. */
2910
3668
  access_token?: string;
2911
3669
  /** Data format for response. */
2912
- alt?: string;
3670
+ alt?: 'json' | 'media' | 'proto';
2913
3671
  /** JSONP */
2914
3672
  callback?: string;
2915
3673
  /** Selector specifying which fields to include in a partial response. */
@@ -2938,11 +3696,11 @@ declare namespace gapi.client {
2938
3696
  /** Creates a web token to access an embeddable managed Google Play web UI for a given enterprise. */
2939
3697
  create(request: {
2940
3698
  /** V1 error format. */
2941
- '$.xgafv'?: string;
3699
+ '$.xgafv'?: '1' | '2';
2942
3700
  /** OAuth access token. */
2943
3701
  access_token?: string;
2944
3702
  /** Data format for response. */
2945
- alt?: string;
3703
+ alt?: 'json' | 'media' | 'proto';
2946
3704
  /** JSONP */
2947
3705
  callback?: string;
2948
3706
  /** Selector specifying which fields to include in a partial response. */
@@ -2967,11 +3725,11 @@ declare namespace gapi.client {
2967
3725
  create(
2968
3726
  request: {
2969
3727
  /** V1 error format. */
2970
- '$.xgafv'?: string;
3728
+ '$.xgafv'?: '1' | '2';
2971
3729
  /** OAuth access token. */
2972
3730
  access_token?: string;
2973
3731
  /** Data format for response. */
2974
- alt?: string;
3732
+ alt?: 'json' | 'media' | 'proto';
2975
3733
  /** JSONP */
2976
3734
  callback?: string;
2977
3735
  /** Selector specifying which fields to include in a partial response. */
@@ -2998,13 +3756,13 @@ declare namespace gapi.client {
2998
3756
  /** Creates an enterprise. This is the last step in the enterprise signup flow. See also: SigninDetail */
2999
3757
  create(request: {
3000
3758
  /** V1 error format. */
3001
- '$.xgafv'?: string;
3759
+ '$.xgafv'?: '1' | '2';
3002
3760
  /** OAuth access token. */
3003
3761
  access_token?: string;
3004
3762
  /** Whether the enterprise admin has seen and agreed to the managed Google Play Agreement (https://www.android.com/enterprise/terms/). Do not set this field for any customer-managed enterprise (https://developers.google.com/android/management/create-enterprise#customer-managed_enterprises). Set this to field to true for all EMM-managed enterprises (https://developers.google.com/android/management/create-enterprise#emm-managed_enterprises). */
3005
3763
  agreementAccepted?: boolean;
3006
3764
  /** Data format for response. */
3007
- alt?: string;
3765
+ alt?: 'json' | 'media' | 'proto';
3008
3766
  /** JSONP */
3009
3767
  callback?: string;
3010
3768
  /** The enterprise token appended to the callback URL. Set this when creating a customer-managed enterprise (https://developers.google.com/android/management/create-enterprise#customer-managed_enterprises) and not when creating a deprecated EMM-managed enterprise (https://developers.google.com/android/management/create-enterprise#emm-managed_enterprises). */
@@ -3033,13 +3791,13 @@ declare namespace gapi.client {
3033
3791
  create(
3034
3792
  request: {
3035
3793
  /** V1 error format. */
3036
- '$.xgafv'?: string;
3794
+ '$.xgafv'?: '1' | '2';
3037
3795
  /** OAuth access token. */
3038
3796
  access_token?: string;
3039
3797
  /** Whether the enterprise admin has seen and agreed to the managed Google Play Agreement (https://www.android.com/enterprise/terms/). Do not set this field for any customer-managed enterprise (https://developers.google.com/android/management/create-enterprise#customer-managed_enterprises). Set this to field to true for all EMM-managed enterprises (https://developers.google.com/android/management/create-enterprise#emm-managed_enterprises). */
3040
3798
  agreementAccepted?: boolean;
3041
3799
  /** Data format for response. */
3042
- alt?: string;
3800
+ alt?: 'json' | 'media' | 'proto';
3043
3801
  /** JSONP */
3044
3802
  callback?: string;
3045
3803
  /** The enterprise token appended to the callback URL. Set this when creating a customer-managed enterprise (https://developers.google.com/android/management/create-enterprise#customer-managed_enterprises) and not when creating a deprecated EMM-managed enterprise (https://developers.google.com/android/management/create-enterprise#emm-managed_enterprises). */
@@ -3068,11 +3826,11 @@ declare namespace gapi.client {
3068
3826
  /** Permanently deletes an enterprise and all accounts and data associated with it. Warning: this will result in a cascaded deletion of all AM API devices associated with the deleted enterprise. Only available for EMM-managed enterprises. */
3069
3827
  delete(request?: {
3070
3828
  /** V1 error format. */
3071
- '$.xgafv'?: string;
3829
+ '$.xgafv'?: '1' | '2';
3072
3830
  /** OAuth access token. */
3073
3831
  access_token?: string;
3074
3832
  /** Data format for response. */
3075
- alt?: string;
3833
+ alt?: 'json' | 'media' | 'proto';
3076
3834
  /** JSONP */
3077
3835
  callback?: string;
3078
3836
  /** Selector specifying which fields to include in a partial response. */
@@ -3095,11 +3853,11 @@ declare namespace gapi.client {
3095
3853
  /** Generates an enterprise upgrade URL to upgrade an existing managed Google Play Accounts enterprise to a managed Google domain. See the guide (https://developers.google.com/android/management/upgrade-an-enterprise) for more details. */
3096
3854
  generateEnterpriseUpgradeUrl(request: {
3097
3855
  /** V1 error format. */
3098
- '$.xgafv'?: string;
3856
+ '$.xgafv'?: '1' | '2';
3099
3857
  /** OAuth access token. */
3100
3858
  access_token?: string;
3101
3859
  /** Data format for response. */
3102
- alt?: string;
3860
+ alt?: 'json' | 'media' | 'proto';
3103
3861
  /** JSONP */
3104
3862
  callback?: string;
3105
3863
  /** Selector specifying which fields to include in a partial response. */
@@ -3124,11 +3882,11 @@ declare namespace gapi.client {
3124
3882
  generateEnterpriseUpgradeUrl(
3125
3883
  request: {
3126
3884
  /** V1 error format. */
3127
- '$.xgafv'?: string;
3885
+ '$.xgafv'?: '1' | '2';
3128
3886
  /** OAuth access token. */
3129
3887
  access_token?: string;
3130
3888
  /** Data format for response. */
3131
- alt?: string;
3889
+ alt?: 'json' | 'media' | 'proto';
3132
3890
  /** JSONP */
3133
3891
  callback?: string;
3134
3892
  /** Selector specifying which fields to include in a partial response. */
@@ -3153,11 +3911,11 @@ declare namespace gapi.client {
3153
3911
  /** Gets an enterprise. */
3154
3912
  get(request?: {
3155
3913
  /** V1 error format. */
3156
- '$.xgafv'?: string;
3914
+ '$.xgafv'?: '1' | '2';
3157
3915
  /** OAuth access token. */
3158
3916
  access_token?: string;
3159
3917
  /** Data format for response. */
3160
- alt?: string;
3918
+ alt?: 'json' | 'media' | 'proto';
3161
3919
  /** JSONP */
3162
3920
  callback?: string;
3163
3921
  /** Selector specifying which fields to include in a partial response. */
@@ -3180,11 +3938,11 @@ declare namespace gapi.client {
3180
3938
  /** Lists EMM-managed enterprises. Only BASIC fields are returned. */
3181
3939
  list(request?: {
3182
3940
  /** V1 error format. */
3183
- '$.xgafv'?: string;
3941
+ '$.xgafv'?: '1' | '2';
3184
3942
  /** OAuth access token. */
3185
3943
  access_token?: string;
3186
3944
  /** Data format for response. */
3187
- alt?: string;
3945
+ alt?: 'json' | 'media' | 'proto';
3188
3946
  /** JSONP */
3189
3947
  callback?: string;
3190
3948
  /** Selector specifying which fields to include in a partial response. */
@@ -3208,16 +3966,16 @@ declare namespace gapi.client {
3208
3966
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3209
3967
  uploadType?: string;
3210
3968
  /** Specifies which Enterprise fields to return. This method only supports BASIC. */
3211
- view?: string;
3969
+ view?: 'ENTERPRISE_VIEW_UNSPECIFIED' | 'BASIC';
3212
3970
  }): Request<ListEnterprisesResponse>;
3213
3971
  /** Updates an enterprise. See also: SigninDetail */
3214
3972
  patch(request: {
3215
3973
  /** V1 error format. */
3216
- '$.xgafv'?: string;
3974
+ '$.xgafv'?: '1' | '2';
3217
3975
  /** OAuth access token. */
3218
3976
  access_token?: string;
3219
3977
  /** Data format for response. */
3220
- alt?: string;
3978
+ alt?: 'json' | 'media' | 'proto';
3221
3979
  /** JSONP */
3222
3980
  callback?: string;
3223
3981
  /** Selector specifying which fields to include in a partial response. */
@@ -3244,11 +4002,11 @@ declare namespace gapi.client {
3244
4002
  patch(
3245
4003
  request: {
3246
4004
  /** V1 error format. */
3247
- '$.xgafv'?: string;
4005
+ '$.xgafv'?: '1' | '2';
3248
4006
  /** OAuth access token. */
3249
4007
  access_token?: string;
3250
4008
  /** Data format for response. */
3251
- alt?: string;
4009
+ alt?: 'json' | 'media' | 'proto';
3252
4010
  /** JSONP */
3253
4011
  callback?: string;
3254
4012
  /** Selector specifying which fields to include in a partial response. */
@@ -3284,11 +4042,11 @@ declare namespace gapi.client {
3284
4042
  /** Get the device provisioning information by the identifier provided in the sign-in url. */
3285
4043
  get(request?: {
3286
4044
  /** V1 error format. */
3287
- '$.xgafv'?: string;
4045
+ '$.xgafv'?: '1' | '2';
3288
4046
  /** OAuth access token. */
3289
4047
  access_token?: string;
3290
4048
  /** Data format for response. */
3291
- alt?: string;
4049
+ alt?: 'json' | 'media' | 'proto';
3292
4050
  /** JSONP */
3293
4051
  callback?: string;
3294
4052
  /** Selector specifying which fields to include in a partial response. */
@@ -3313,7 +4071,7 @@ declare namespace gapi.client {
3313
4071
  /** Creates an enterprise signup URL. */
3314
4072
  create(request?: {
3315
4073
  /** V1 error format. */
3316
- '$.xgafv'?: string;
4074
+ '$.xgafv'?: '1' | '2';
3317
4075
  /** OAuth access token. */
3318
4076
  access_token?: string;
3319
4077
  /** Optional. Email address used to prefill the admin field of the enterprise signup form. This value is a hint only and can be altered by the user. If allowedDomains is non-empty then this must belong to one of the allowedDomains. */
@@ -3321,7 +4079,7 @@ declare namespace gapi.client {
3321
4079
  /** Optional. A list of domains that are permitted for the admin email. The IT admin cannot enter an email address with a domain name that is not in this list. Subdomains of domains in this list are not allowed but can be allowed by adding a second entry which has *. prefixed to the domain name (e.g. *.example.com). If the field is not present or is an empty list then the IT admin is free to use any valid domain name. Personal email domains are always allowed, but will result in the creation of a managed Google Play Accounts enterprise. */
3322
4080
  allowedDomains?: string | string[];
3323
4081
  /** Data format for response. */
3324
- alt?: string;
4082
+ alt?: 'json' | 'media' | 'proto';
3325
4083
  /** JSONP */
3326
4084
  callback?: string;
3327
4085
  /** The callback URL that the admin will be redirected to after successfully creating an enterprise. Before redirecting there the system will add a query parameter to this URL named enterpriseToken which will contain an opaque token to be used for the create enterprise request. The URL will be parsed then reformatted in order to add the enterpriseToken parameter, so there may be some minor formatting changes. */