@maxim_mazurok/gapi.client.androidmanagement-v1 0.0.20230619 → 0.0.20230705

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.
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: 20230619
12
+ // Revision: 20230705
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -260,6 +260,9 @@ declare namespace gapi.client {
260
260
  /** Application state. */
261
261
  state?:
262
262
  string;
263
+ /** Whether the app is user facing. */
264
+ userFacingType?:
265
+ string;
263
266
  /** The app version code, which can be used to determine whether one version is more recent than another. */
264
267
  versionCode?:
265
268
  number;
@@ -668,9 +671,23 @@ declare namespace gapi.client {
668
671
  string;
669
672
  }
670
673
  interface DeviceConnectivityManagement {
674
+ /** 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. */
675
+ configureWifi?:
676
+ string;
677
+ /** Controls tethering settings. Based on the value set, the user is partially or fully disallowed from using different forms of tethering. */
678
+ tetheringSettings?:
679
+ string;
671
680
  /** Controls what files and/or data can be transferred via USB. Supported only on company-owned devices. */
672
681
  usbDataAccess?:
673
682
  string;
683
+ /** Controls configuring and using Wi-Fi direct settings. Supported on company-owned devices running Android 13 and above. */
684
+ wifiDirectSettings?:
685
+ string;
686
+ }
687
+ interface DeviceRadioState {
688
+ /** Controls current state of Wi-Fi and if user can change its state. */
689
+ wifiState?:
690
+ string;
674
691
  }
675
692
  interface DeviceSettings {
676
693
  /** Whether ADB (https://developer.android.com/studio/command-line/adb.html) is enabled on the device. */
@@ -1526,6 +1543,9 @@ declare namespace gapi.client {
1526
1543
  /** The device owner information to be shown on the lock screen. */
1527
1544
  deviceOwnerLockScreenInfo?:
1528
1545
  UserFacingMessage;
1546
+ /** Covers controls for radio state such as Wi-Fi, bluetooth, and more. */
1547
+ deviceRadioState?:
1548
+ DeviceRadioState;
1529
1549
  /** Whether encryption is enabled */
1530
1550
  encryptionPolicy?:
1531
1551
  string;
@@ -1596,7 +1616,8 @@ declare namespace gapi.client {
1596
1616
  * Whether the network escape hatch is enabled. If a network connection can't be made at boot time, the escape hatch prompts the user to temporarily connect to a network in order to
1597
1617
  * refresh the device policy. After applying policy, the temporary network will be forgotten and the device will continue booting. This prevents being unable to connect to a network if
1598
1618
  * there is no suitable network in the last policy and the device boots into an app in lock task mode, or the user is otherwise unable to reach device settings.Note: Setting
1599
- * wifiConfigDisabled to true will override this setting under specific circumstances. Please see wifiConfigDisabled for further details.
1619
+ * wifiConfigDisabled to true will override this setting under specific circumstances. Please see wifiConfigDisabled for further details. Setting configureWifi to
1620
+ * DISALLOW_CONFIGURING_WIFI will override this setting under specific circumstances. Please see DISALLOW_CONFIGURING_WIFI for further details.
1600
1621
  */
1601
1622
  networkEscapeHatchEnabled?:
1602
1623
  boolean;
@@ -1716,7 +1737,7 @@ declare namespace gapi.client {
1716
1737
  /** 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. */
1717
1738
  systemUpdate?:
1718
1739
  SystemUpdate;
1719
- /** Whether configuring tethering and portable hotspots is disabled. */
1740
+ /** Whether configuring tethering and portable hotspots is disabled. If tetheringSettings is set to anything other than TETHERING_SETTINGS_UNSPECIFIED, this setting is ignored. */
1720
1741
  tetheringConfigDisabled?:
1721
1742
  boolean;
1722
1743
  /** Whether user uninstallation of applications is disabled. This prevents apps from being uninstalled, even those removed using applications */
@@ -1746,8 +1767,9 @@ declare namespace gapi.client {
1746
1767
  /**
1747
1768
  * Whether configuring Wi-Fi networks is disabled. Supported on fully managed devices and work profiles on company-owned devices. For fully managed devices, setting this to true
1748
1769
  * removes all configured networks and retains only the networks configured using openNetworkConfiguration. For work profiles on company-owned devices, existing configured networks are
1749
- * not affected and the user is not allowed to add, remove, or modify Wi-Fi networks. Note: If a network connection can't be made at boot time and configuring Wi-Fi is disabled then
1750
- * network escape hatch will be shown in order to refresh the device policy (see networkEscapeHatchEnabled).
1770
+ * not affected and the user is not allowed to add, remove, or modify Wi-Fi networks. If configureWifi is set to anything other than CONFIGURE_WIFI_UNSPECIFIED, this setting is
1771
+ * ignored. Note: If a network connection can't be made at boot time and configuring Wi-Fi is disabled then network escape hatch will be shown in order to refresh the device policy
1772
+ * (see networkEscapeHatchEnabled).
1751
1773
  */
1752
1774
  wifiConfigDisabled?:
1753
1775
  boolean;
@@ -1788,6 +1810,32 @@ declare namespace gapi.client {
1788
1810
  eventType?:
1789
1811
  string;
1790
1812
  }
1813
+ interface ProvisioningInfo {
1814
+ /** The API level of the Android platform version running on the device. */
1815
+ apiLevel?:
1816
+ number;
1817
+ /** The email address of the authenticated user (only present for Google Account provisioning method). */
1818
+ authenticatedUserEmail?:
1819
+ string;
1820
+ /** Brand of the device. For example, Google. */
1821
+ brand?:
1822
+ string;
1823
+ /** The name of the enterprise in the form enterprises/{enterprise}. */
1824
+ enterprise?:
1825
+ string;
1826
+ /** The management mode of the device or profile. */
1827
+ managementMode?:
1828
+ string;
1829
+ /** The model of the device. For example, Asus Nexus 7. */
1830
+ model?:
1831
+ string;
1832
+ /** The name of this resource in the form provisioningInfo/{provisioning_info}. */
1833
+ name?:
1834
+ string;
1835
+ /** Ownership of the managed device. */
1836
+ ownership?:
1837
+ string;
1838
+ }
1791
1839
  interface ProxyInfo {
1792
1840
  /** For a direct proxy, the hosts for which the proxy is bypassed. The host names may contain wildcards such as *.example.com. */
1793
1841
  excludedHosts?:
@@ -3886,6 +3934,47 @@ declare namespace gapi.client {
3886
3934
  webTokens:
3887
3935
  WebTokensResource;
3888
3936
  }
3937
+ interface ProvisioningInfoResource {
3938
+ /** Get the device provisioning info by the identifier provided via the sign-in url. */
3939
+ get(request?: {
3940
+ /** V1 error format. */
3941
+ "$.xgafv"?:
3942
+ string;
3943
+ /** OAuth access token. */
3944
+ access_token?:
3945
+ string;
3946
+ /** Data format for response. */
3947
+ alt?:
3948
+ string;
3949
+ /** JSONP */
3950
+ callback?:
3951
+ string;
3952
+ /** Selector specifying which fields to include in a partial response. */
3953
+ fields?:
3954
+ string;
3955
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
3956
+ key?:
3957
+ string;
3958
+ /** Required. The identifier that Android Device Policy passes to the 3P sign-in page in the form of provisioningInfo/{provisioning_info}. */
3959
+ name:
3960
+ string;
3961
+ /** OAuth 2.0 token for the current user. */
3962
+ oauth_token?:
3963
+ string;
3964
+ /** Returns response with indentations and line breaks. */
3965
+ prettyPrint?:
3966
+ boolean;
3967
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3968
+ quotaUser?:
3969
+ string;
3970
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3971
+ upload_protocol?:
3972
+ string;
3973
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3974
+ uploadType?:
3975
+ string;
3976
+ }): Request<ProvisioningInfo>;
3977
+ }
3889
3978
  interface SignupUrlsResource {
3890
3979
  /** Creates an enterprise signup URL. */
3891
3980
  create(request?: {
@@ -3937,6 +4026,8 @@ declare namespace gapi.client {
3937
4026
 
3938
4027
  const enterprises: EnterprisesResource;
3939
4028
 
4029
+ const provisioningInfo: ProvisioningInfoResource;
4030
+
3940
4031
  const signupUrls: SignupUrlsResource;
3941
4032
  }
3942
4033
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.androidmanagement-v1",
3
- "version": "0.0.20230619",
3
+ "version": "0.0.20230705",
4
4
  "description": "TypeScript typings for Android Management API v1",
5
5
  "license": "MIT",
6
6
  "author": {
package/readme.md CHANGED
@@ -91,6 +91,11 @@ Updates an enterprise. See also: SigninDetail
91
91
  */
92
92
  await gapi.client.androidmanagement.enterprises.patch({ name: "name", });
93
93
 
94
+ /*
95
+ Get the device provisioning info by the identifier provided via the sign-in url.
96
+ */
97
+ await gapi.client.androidmanagement.provisioningInfo.get({ name: "name", });
98
+
94
99
  /*
95
100
  Creates an enterprise signup URL.
96
101
  */
package/tests.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
4
4
  // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
5
5
 
6
- // Revision: 20230619
6
+ // Revision: 20230705
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -228,6 +228,7 @@ gapi.load('client', async () => {
228
228
  "Test string"
229
229
  ],
230
230
  state: "Test string",
231
+ userFacingType: "Test string",
231
232
  versionCode: 42,
232
233
  versionName: "Test string",
233
234
  }
@@ -639,7 +640,10 @@ gapi.load('client', async () => {
639
640
  debuggingFeaturesAllowed: true,
640
641
  defaultPermissionPolicy: "Test string",
641
642
  deviceConnectivityManagement: {
643
+ configureWifi: "Test string",
644
+ tetheringSettings: "Test string",
642
645
  usbDataAccess: "Test string",
646
+ wifiDirectSettings: "Test string",
643
647
  },
644
648
  deviceOwnerLockScreenInfo: {
645
649
  defaultMessage: "Test string",
@@ -647,6 +651,9 @@ gapi.load('client', async () => {
647
651
  A: "Test string"
648
652
  },
649
653
  },
654
+ deviceRadioState: {
655
+ wifiState: "Test string",
656
+ },
650
657
  encryptionPolicy: "Test string",
651
658
  ensureVerifyAppsEnabled: true,
652
659
  factoryResetDisabled: true,
@@ -951,6 +958,10 @@ gapi.load('client', async () => {
951
958
  ],
952
959
  value: "Test string",
953
960
  });
961
+ /** Get the device provisioning info by the identifier provided via the sign-in url. */
962
+ await gapi.client.androidmanagement.provisioningInfo.get({
963
+ name: "Test string",
964
+ });
954
965
  /** Creates an enterprise signup URL. */
955
966
  await gapi.client.androidmanagement.signupUrls.create({
956
967
  callbackUrl: "Test string",