@maxim_mazurok/gapi.client.androidmanagement-v1 0.0.20230710 → 0.0.20230724

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 +85 -4
  2. package/package.json +1 -1
  3. package/tests.ts +37 -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: 20230710
12
+ // Revision: 20230724
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -434,6 +434,24 @@ declare namespace gapi.client {
434
434
  /** For commands of type RESET_PASSWORD, optionally specifies flags. */
435
435
  resetPasswordFlags?:
436
436
  string[];
437
+ /**
438
+ * 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,
439
+ * the server automatically sets it to START_LOST_MODE. It is also acceptable to explicitly set type to START_LOST_MODE.
440
+ */
441
+ startLostModeParams?:
442
+ StartLostModeParams;
443
+ /** Output only. Status of the START_LOST_MODE command to put the device into lost mode. See StartLostModeStatus. */
444
+ startLostModeStatus?:
445
+ StartLostModeStatus;
446
+ /**
447
+ * Parameters for the STOP_LOST_MODE command to take the device out of lost mode. See StopLostModeParams. If this is set, then it is suggested that type should not be set. In this
448
+ * case, the server automatically sets it to STOP_LOST_MODE. It is also acceptable to explicitly set type to STOP_LOST_MODE.
449
+ */
450
+ stopLostModeParams?:
451
+ any;
452
+ /** Output only. Status of the STOP_LOST_MODE command to take the device out of lost mode. See StopLostModeStatus. */
453
+ stopLostModeStatus?:
454
+ StopLostModeStatus;
437
455
  /** The type of the command. */
438
456
  type?:
439
457
  string;
@@ -685,6 +703,9 @@ declare namespace gapi.client {
685
703
  string;
686
704
  }
687
705
  interface DeviceRadioState {
706
+ /** Controls whether airplane mode can be toggled by the user or not */
707
+ airplaneModeState?:
708
+ string;
688
709
  /** Controls current state of Wi-Fi and if user can change its state. */
689
710
  wifiState?:
690
711
  string;
@@ -1124,6 +1145,14 @@ declare namespace gapi.client {
1124
1145
  webApps?:
1125
1146
  WebApp[];
1126
1147
  }
1148
+ interface Location {
1149
+ /** The latitude position of the location */
1150
+ latitude?:
1151
+ number;
1152
+ /** The longitude position of the location */
1153
+ longitude?:
1154
+ number;
1155
+ }
1127
1156
  // tslint:disable-next-line:no-empty-interface
1128
1157
  interface LogBufferSizeCriticalEvent {
1129
1158
  }
@@ -1133,6 +1162,17 @@ declare namespace gapi.client {
1133
1162
  // tslint:disable-next-line:no-empty-interface
1134
1163
  interface LoggingStoppedEvent {
1135
1164
  }
1165
+ interface LostModeLocationEvent {
1166
+ /** The battery level as a number between 0 and 100 inclusive */
1167
+ batteryLevel?:
1168
+ number;
1169
+ /** The device location */
1170
+ location?:
1171
+ Location;
1172
+ }
1173
+ // tslint:disable-next-line:no-empty-interface
1174
+ interface LostModeOutgoingPhoneCallEvent {
1175
+ }
1136
1176
  interface ManagedConfigurationTemplate {
1137
1177
  /** Optional, a map containing configuration variables defined for the configuration. */
1138
1178
  configurationVariables?:
@@ -1814,9 +1854,6 @@ declare namespace gapi.client {
1814
1854
  /** The API level of the Android platform version running on the device. */
1815
1855
  apiLevel?:
1816
1856
  number;
1817
- /** The email address of the authenticated user (only present for Google Account provisioning method). */
1818
- authenticatedUserEmail?:
1819
- string;
1820
1857
  /** Brand of the device. For example, Google. */
1821
1858
  brand?:
1822
1859
  string;
@@ -1962,6 +1999,28 @@ declare namespace gapi.client {
1962
1999
  passwordPoliciesContext?:
1963
2000
  PasswordPoliciesContext;
1964
2001
  }
2002
+ interface StartLostModeParams {
2003
+ /** The email address displayed to the user when the device is in lost mode. */
2004
+ lostEmailAddress?:
2005
+ string;
2006
+ /** The message displayed to the user when the device is in lost mode. */
2007
+ lostMessage?:
2008
+ UserFacingMessage;
2009
+ /** The organization name displayed to the user when the device is in lost mode. */
2010
+ lostOrganization?:
2011
+ UserFacingMessage;
2012
+ /** The phone number displayed to the user when the device is in lost mode. */
2013
+ lostPhoneNumber?:
2014
+ UserFacingMessage;
2015
+ /** The street address displayed to the user when the device is in lost mode. */
2016
+ lostStreetAddress?:
2017
+ UserFacingMessage;
2018
+ }
2019
+ interface StartLostModeStatus {
2020
+ /** The status. See StartLostModeStatus. */
2021
+ status?:
2022
+ string;
2023
+ }
1965
2024
  interface Status {
1966
2025
  /** The status code, which should be an enum value of google.rpc.Code. */
1967
2026
  code?:
@@ -2011,6 +2070,19 @@ declare namespace gapi.client {
2011
2070
  systemPropertiesEnabled?:
2012
2071
  boolean;
2013
2072
  }
2073
+ // tslint:disable-next-line:no-empty-interface
2074
+ interface StopLostModeParams {
2075
+ }
2076
+ interface StopLostModeStatus {
2077
+ /** The status. See StopLostModeStatus. */
2078
+ status?:
2079
+ string;
2080
+ }
2081
+ interface StopLostModeUserAttemptEvent {
2082
+ /** The status of the attempt to stop lost mode. */
2083
+ status?:
2084
+ string;
2085
+ }
2014
2086
  interface SystemUpdate {
2015
2087
  /**
2016
2088
  * 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,
@@ -2152,6 +2224,12 @@ declare namespace gapi.client {
2152
2224
  /** usageLog policy has been disabled. Part of SECURITY_LOGS. */
2153
2225
  loggingStoppedEvent?:
2154
2226
  any;
2227
+ /** A lost mode location update when a device in lost mode. */
2228
+ lostModeLocationEvent?:
2229
+ LostModeLocationEvent;
2230
+ /** An outgoing phone call has been made when a device in lost mode. */
2231
+ lostModeOutgoingPhoneCallEvent?:
2232
+ any;
2155
2233
  /** Removable media was mounted. Part of SECURITY_LOGS. */
2156
2234
  mediaMountEvent?:
2157
2235
  MediaMountEvent;
@@ -2167,6 +2245,9 @@ declare namespace gapi.client {
2167
2245
  /** The device or profile has been remotely locked via the LOCK command. Part of SECURITY_LOGS. */
2168
2246
  remoteLockEvent?:
2169
2247
  RemoteLockEvent;
2248
+ /** An attempt to take a device out of lost mode. */
2249
+ stopLostModeUserAttemptEvent?:
2250
+ StopLostModeUserAttemptEvent;
2170
2251
  /** The work profile or company-owned device failed to wipe when requested. This could be user initiated or admin initiated e.g. delete was received. Part of SECURITY_LOGS. */
2171
2252
  wipeFailureEvent?:
2172
2253
  any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.androidmanagement-v1",
3
- "version": "0.0.20230710",
3
+ "version": "0.0.20230724",
4
4
  "description": "TypeScript typings for Android Management API v1",
5
5
  "license": "MIT",
6
6
  "author": {
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: 20230710
6
+ // Revision: 20230724
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -186,6 +186,41 @@ gapi.load('client', async () => {
186
186
  resetPasswordFlags: [
187
187
  "Test string"
188
188
  ],
189
+ startLostModeParams: {
190
+ lostEmailAddress: "Test string",
191
+ lostMessage: {
192
+ defaultMessage: "Test string",
193
+ localizedMessages: {
194
+ A: "Test string"
195
+ },
196
+ },
197
+ lostOrganization: {
198
+ defaultMessage: "Test string",
199
+ localizedMessages: {
200
+ A: "Test string"
201
+ },
202
+ },
203
+ lostPhoneNumber: {
204
+ defaultMessage: "Test string",
205
+ localizedMessages: {
206
+ A: "Test string"
207
+ },
208
+ },
209
+ lostStreetAddress: {
210
+ defaultMessage: "Test string",
211
+ localizedMessages: {
212
+ A: "Test string"
213
+ },
214
+ },
215
+ },
216
+ startLostModeStatus: {
217
+ status: "Test string",
218
+ },
219
+ stopLostModeParams: {
220
+ },
221
+ stopLostModeStatus: {
222
+ status: "Test string",
223
+ },
189
224
  type: "Test string",
190
225
  userName: "Test string",
191
226
  });
@@ -652,6 +687,7 @@ gapi.load('client', async () => {
652
687
  },
653
688
  },
654
689
  deviceRadioState: {
690
+ airplaneModeState: "Test string",
655
691
  wifiState: "Test string",
656
692
  },
657
693
  encryptionPolicy: "Test string",