@maxim_mazurok/gapi.client.androidmanagement-v1 0.1.20250821 → 0.1.20250829

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 (2) hide show
  1. package/index.d.ts +16 -4
  2. package/package.json +1 -1
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: 20250821
12
+ // Revision: 20250829
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -44,7 +44,7 @@ declare namespace gapi.client {
44
44
  commonCriteriaMode?: string;
45
45
  /** Optional. Controls whether content protection, which scans for deceptive apps, is enabled. This is supported on Android 15 and above. */
46
46
  contentProtectionPolicy?: string;
47
- /** Controls access to developer settings: developer options and safe boot. Replaces safeBootDisabled (deprecated) and debuggingFeaturesAllowed (deprecated). */
47
+ /** 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
48
  developerSettings?: string;
49
49
  /** Whether Google Play Protect verification (https://support.google.com/accounts/answer/2812853) is enforced. Replaces ensureVerifyAppsEnabled (deprecated). */
50
50
  googlePlayProtectVerifyApps?: string;
@@ -184,13 +184,15 @@ declare namespace gapi.client {
184
184
  connectedWorkAndPersonalApp?: string;
185
185
  /** Optional. Whether the app is allowed to act as a credential provider on Android 14 and above. */
186
186
  credentialProviderPolicy?: string;
187
+ /** Optional. Configuration for this custom app.install_type must be set to CUSTOM for this to be set. */
188
+ customAppConfig?: CustomAppConfig;
187
189
  /** 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. */
188
190
  defaultPermissionPolicy?: string;
189
191
  /** The scopes delegated to the app from Android Device Policy. These provide additional privileges for the applications they are applied to. */
190
192
  delegatedScopes?: string[];
191
193
  /** Whether the app is disabled. When disabled, the app data is still preserved. */
192
194
  disabled?: boolean;
193
- /** 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.The signing key certificate fingerprint of the app on the device must match one of the entries in signingKeyFingerprintsSha256 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 signingKeyFingerprintsSha256 is not set, a NonComplianceDetail with INVALID_VALUE is reported. */
195
+ /** 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.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. */
194
196
  extensionConfig?: ExtensionConfig;
195
197
  /** Optional. The constraints for installing the app. You can specify a maximum of one InstallConstraint. Multiple constraints are rejected. */
196
198
  installConstraint?: InstallConstraint[];
@@ -212,6 +214,8 @@ declare namespace gapi.client {
212
214
  permissionGrants?: PermissionGrant[];
213
215
  /** 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. */
214
216
  preferentialNetworkId?: string;
217
+ /** 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 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 */
218
+ signingKeyCerts?: ApplicationSigningKeyCert[];
215
219
  /** 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. */
216
220
  userControlSettings?: string;
217
221
  /** Specifies whether the app installed in the work profile is allowed to add widgets to the home screen. */
@@ -253,6 +257,10 @@ declare namespace gapi.client {
253
257
  /** Whether removed apps are included in application reports. */
254
258
  includeRemovedApps?: boolean;
255
259
  }
260
+ interface ApplicationSigningKeyCert {
261
+ /** Required. The SHA-256 hash value of the signing key certificate of the app. This must be a valid SHA-256 hash value, i.e. 32 bytes. Otherwise, the policy is rejected. */
262
+ signingKeyCertFingerprintSha256?: string;
263
+ }
256
264
  interface AppProcessInfo {
257
265
  /** SHA-256 hash of the base APK, in hexadecimal format. */
258
266
  apkSha256Hash?: string;
@@ -334,7 +342,7 @@ declare namespace gapi.client {
334
342
  failureReason?: string;
335
343
  }
336
344
  interface ChoosePrivateKeyRule {
337
- /** The package names to which this rule applies. The hash of the signing certificate for each app is verified against the hash provided by Play. If no package names are specified, then the alias is provided to all apps that call KeyChain.choosePrivateKeyAlias (https://developer.android.com/reference/android/security/KeyChain#choosePrivateKeyAlias%28android.app.Activity,%20android.security.KeyChainAliasCallback,%20java.lang.String[],%20java.security.Principal[],%20java.lang.String,%20int,%20java.lang.String%29) or any overloads (but not without calling KeyChain.choosePrivateKeyAlias, even on Android 11 and above). Any app with the same Android UID as a package specified here will have access when they call KeyChain.choosePrivateKeyAlias. */
345
+ /** The package names to which this rule applies. The signing key certificate fingerprint of the app is verified against the signing key certificate fingerprints provided by Play Store and ApplicationPolicy.signingKeyCerts . If no package names are specified, then the alias is provided to all apps that call KeyChain.choosePrivateKeyAlias (https://developer.android.com/reference/android/security/KeyChain#choosePrivateKeyAlias%28android.app.Activity,%20android.security.KeyChainAliasCallback,%20java.lang.String[],%20java.security.Principal[],%20java.lang.String,%20int,%20java.lang.String%29) or any overloads (but not without calling KeyChain.choosePrivateKeyAlias, even on Android 11 and above). Any app with the same Android UID as a package specified here will have access when they call KeyChain.choosePrivateKeyAlias. */
338
346
  packageNames?: string[];
339
347
  /** The alias of the private key to be used. */
340
348
  privateKeyAlias?: string;
@@ -455,6 +463,10 @@ declare namespace gapi.client {
455
463
  /** Whether the test succeeded. */
456
464
  success?: boolean;
457
465
  }
466
+ interface CustomAppConfig {
467
+ /** Optional. User uninstall settings of the custom app. */
468
+ userUninstallSettings?: string;
469
+ }
458
470
  interface Date {
459
471
  /** 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. */
460
472
  day?: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.androidmanagement-v1",
3
- "version": "0.1.20250821",
3
+ "version": "0.1.20250829",
4
4
  "description": "TypeScript typings for Android Management API v1",
5
5
  "repository": {
6
6
  "type": "git",