@maxim_mazurok/gapi.client.androidmanagement-v1 0.0.20230717 → 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 +82 -4
  2. package/package.json +1 -1
  3. package/tests.ts +36 -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: 20230717
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;
@@ -1127,6 +1145,14 @@ declare namespace gapi.client {
1127
1145
  webApps?:
1128
1146
  WebApp[];
1129
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
+ }
1130
1156
  // tslint:disable-next-line:no-empty-interface
1131
1157
  interface LogBufferSizeCriticalEvent {
1132
1158
  }
@@ -1136,6 +1162,17 @@ declare namespace gapi.client {
1136
1162
  // tslint:disable-next-line:no-empty-interface
1137
1163
  interface LoggingStoppedEvent {
1138
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
+ }
1139
1176
  interface ManagedConfigurationTemplate {
1140
1177
  /** Optional, a map containing configuration variables defined for the configuration. */
1141
1178
  configurationVariables?:
@@ -1817,9 +1854,6 @@ declare namespace gapi.client {
1817
1854
  /** The API level of the Android platform version running on the device. */
1818
1855
  apiLevel?:
1819
1856
  number;
1820
- /** The email address of the authenticated user (only present for Google Account provisioning method). */
1821
- authenticatedUserEmail?:
1822
- string;
1823
1857
  /** Brand of the device. For example, Google. */
1824
1858
  brand?:
1825
1859
  string;
@@ -1965,6 +1999,28 @@ declare namespace gapi.client {
1965
1999
  passwordPoliciesContext?:
1966
2000
  PasswordPoliciesContext;
1967
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
+ }
1968
2024
  interface Status {
1969
2025
  /** The status code, which should be an enum value of google.rpc.Code. */
1970
2026
  code?:
@@ -2014,6 +2070,19 @@ declare namespace gapi.client {
2014
2070
  systemPropertiesEnabled?:
2015
2071
  boolean;
2016
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
+ }
2017
2086
  interface SystemUpdate {
2018
2087
  /**
2019
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,
@@ -2155,6 +2224,12 @@ declare namespace gapi.client {
2155
2224
  /** usageLog policy has been disabled. Part of SECURITY_LOGS. */
2156
2225
  loggingStoppedEvent?:
2157
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;
2158
2233
  /** Removable media was mounted. Part of SECURITY_LOGS. */
2159
2234
  mediaMountEvent?:
2160
2235
  MediaMountEvent;
@@ -2170,6 +2245,9 @@ declare namespace gapi.client {
2170
2245
  /** The device or profile has been remotely locked via the LOCK command. Part of SECURITY_LOGS. */
2171
2246
  remoteLockEvent?:
2172
2247
  RemoteLockEvent;
2248
+ /** An attempt to take a device out of lost mode. */
2249
+ stopLostModeUserAttemptEvent?:
2250
+ StopLostModeUserAttemptEvent;
2173
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. */
2174
2252
  wipeFailureEvent?:
2175
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.20230717",
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: 20230717
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
  });