@maxim_mazurok/gapi.client.androidmanagement-v1 0.0.20230717 → 0.0.20230731

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: 20230717
12
+ // Revision: 20230731
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;
@@ -755,6 +773,9 @@ declare namespace gapi.client {
755
773
  // tslint:disable-next-line:no-empty-interface
756
774
  interface Empty {
757
775
  }
776
+ // tslint:disable-next-line:no-empty-interface
777
+ interface EnrollmentCompleteEvent {
778
+ }
758
779
  interface EnrollmentToken {
759
780
  /**
760
781
  * 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
@@ -1127,6 +1148,14 @@ declare namespace gapi.client {
1127
1148
  webApps?:
1128
1149
  WebApp[];
1129
1150
  }
1151
+ interface Location {
1152
+ /** The latitude position of the location */
1153
+ latitude?:
1154
+ number;
1155
+ /** The longitude position of the location */
1156
+ longitude?:
1157
+ number;
1158
+ }
1130
1159
  // tslint:disable-next-line:no-empty-interface
1131
1160
  interface LogBufferSizeCriticalEvent {
1132
1161
  }
@@ -1136,6 +1165,17 @@ declare namespace gapi.client {
1136
1165
  // tslint:disable-next-line:no-empty-interface
1137
1166
  interface LoggingStoppedEvent {
1138
1167
  }
1168
+ interface LostModeLocationEvent {
1169
+ /** The battery level as a number between 0 and 100 inclusive */
1170
+ batteryLevel?:
1171
+ number;
1172
+ /** The device location */
1173
+ location?:
1174
+ Location;
1175
+ }
1176
+ // tslint:disable-next-line:no-empty-interface
1177
+ interface LostModeOutgoingPhoneCallEvent {
1178
+ }
1139
1179
  interface ManagedConfigurationTemplate {
1140
1180
  /** Optional, a map containing configuration variables defined for the configuration. */
1141
1181
  configurationVariables?:
@@ -1817,10 +1857,7 @@ declare namespace gapi.client {
1817
1857
  /** The API level of the Android platform version running on the device. */
1818
1858
  apiLevel?:
1819
1859
  number;
1820
- /** The email address of the authenticated user (only present for Google Account provisioning method). */
1821
- authenticatedUserEmail?:
1822
- string;
1823
- /** Brand of the device. For example, Google. */
1860
+ /** The brand of the device. For example, Google. */
1824
1861
  brand?:
1825
1862
  string;
1826
1863
  /** The name of the enterprise in the form enterprises/{enterprise}. */
@@ -1965,6 +2002,28 @@ declare namespace gapi.client {
1965
2002
  passwordPoliciesContext?:
1966
2003
  PasswordPoliciesContext;
1967
2004
  }
2005
+ interface StartLostModeParams {
2006
+ /** The email address displayed to the user when the device is in lost mode. */
2007
+ lostEmailAddress?:
2008
+ string;
2009
+ /** The message displayed to the user when the device is in lost mode. */
2010
+ lostMessage?:
2011
+ UserFacingMessage;
2012
+ /** The organization name displayed to the user when the device is in lost mode. */
2013
+ lostOrganization?:
2014
+ UserFacingMessage;
2015
+ /** The phone number displayed to the user when the device is in lost mode. */
2016
+ lostPhoneNumber?:
2017
+ UserFacingMessage;
2018
+ /** The street address displayed to the user when the device is in lost mode. */
2019
+ lostStreetAddress?:
2020
+ UserFacingMessage;
2021
+ }
2022
+ interface StartLostModeStatus {
2023
+ /** The status. See StartLostModeStatus. */
2024
+ status?:
2025
+ string;
2026
+ }
1968
2027
  interface Status {
1969
2028
  /** The status code, which should be an enum value of google.rpc.Code. */
1970
2029
  code?:
@@ -2014,6 +2073,19 @@ declare namespace gapi.client {
2014
2073
  systemPropertiesEnabled?:
2015
2074
  boolean;
2016
2075
  }
2076
+ // tslint:disable-next-line:no-empty-interface
2077
+ interface StopLostModeParams {
2078
+ }
2079
+ interface StopLostModeStatus {
2080
+ /** The status. See StopLostModeStatus. */
2081
+ status?:
2082
+ string;
2083
+ }
2084
+ interface StopLostModeUserAttemptEvent {
2085
+ /** The status of the attempt to stop lost mode. */
2086
+ status?:
2087
+ string;
2088
+ }
2017
2089
  interface SystemUpdate {
2018
2090
  /**
2019
2091
  * 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,
@@ -2107,6 +2179,9 @@ declare namespace gapi.client {
2107
2179
  /** A DNS lookup event was initiated through the standard network stack. Part of NETWORK_ACTIVITY_LOGS. */
2108
2180
  dnsEvent?:
2109
2181
  DnsEvent;
2182
+ /** Device has completed enrollment. Part of AMAPI_LOGS. */
2183
+ enrollmentCompleteEvent?:
2184
+ any;
2110
2185
  /** Unique id of the event. */
2111
2186
  eventId?:
2112
2187
  string;
@@ -2155,6 +2230,12 @@ declare namespace gapi.client {
2155
2230
  /** usageLog policy has been disabled. Part of SECURITY_LOGS. */
2156
2231
  loggingStoppedEvent?:
2157
2232
  any;
2233
+ /** A lost mode location update when a device in lost mode. */
2234
+ lostModeLocationEvent?:
2235
+ LostModeLocationEvent;
2236
+ /** An outgoing phone call has been made when a device in lost mode. */
2237
+ lostModeOutgoingPhoneCallEvent?:
2238
+ any;
2158
2239
  /** Removable media was mounted. Part of SECURITY_LOGS. */
2159
2240
  mediaMountEvent?:
2160
2241
  MediaMountEvent;
@@ -2170,6 +2251,9 @@ declare namespace gapi.client {
2170
2251
  /** The device or profile has been remotely locked via the LOCK command. Part of SECURITY_LOGS. */
2171
2252
  remoteLockEvent?:
2172
2253
  RemoteLockEvent;
2254
+ /** An attempt to take a device out of lost mode. */
2255
+ stopLostModeUserAttemptEvent?:
2256
+ StopLostModeUserAttemptEvent;
2173
2257
  /** 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
2258
  wipeFailureEvent?:
2175
2259
  any;
@@ -3938,7 +4022,7 @@ declare namespace gapi.client {
3938
4022
  WebTokensResource;
3939
4023
  }
3940
4024
  interface ProvisioningInfoResource {
3941
- /** Get the device provisioning info by the identifier provided via the sign-in url. */
4025
+ /** Get the device provisioning information by the identifier provided in the sign-in url. */
3942
4026
  get(request?: {
3943
4027
  /** V1 error format. */
3944
4028
  "$.xgafv"?:
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.20230731",
4
4
  "description": "TypeScript typings for Android Management API v1",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -15,6 +15,6 @@
15
15
  "types": "index.d.ts",
16
16
  "dependencies": {
17
17
  "@types/gapi.client": "*",
18
- "@types/gapi.client.discovery": "*"
18
+ "@types/gapi.client.discovery-v1": "*"
19
19
  }
20
20
  }
package/readme.md CHANGED
@@ -92,7 +92,7 @@ Updates an enterprise. See also: SigninDetail
92
92
  await gapi.client.androidmanagement.enterprises.patch({ name: "name", });
93
93
 
94
94
  /*
95
- Get the device provisioning info by the identifier provided via the sign-in url.
95
+ Get the device provisioning information by the identifier provided in the sign-in url.
96
96
  */
97
97
  await gapi.client.androidmanagement.provisioningInfo.get({ name: "name", });
98
98
 
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: 20230731
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
  });
@@ -959,7 +994,7 @@ gapi.load('client', async () => {
959
994
  ],
960
995
  value: "Test string",
961
996
  });
962
- /** Get the device provisioning info by the identifier provided via the sign-in url. */
997
+ /** Get the device provisioning information by the identifier provided in the sign-in url. */
963
998
  await gapi.client.androidmanagement.provisioningInfo.get({
964
999
  name: "Test string",
965
1000
  });