@maxim_mazurok/gapi.client.smartdevicemanagement-v1 0.1.20260303 → 0.2.20260601

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 +17 -23
  2. package/package.json +1 -1
  3. package/readme.md +17 -0
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://smartdevicemanagement.googleapis.com/$discovery/rest?version=v1
12
- // Revision: 20260303
12
+ // Revision: 20260601
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -29,8 +29,6 @@ declare namespace gapi.client {
29
29
 
30
30
  namespace smartdevicemanagement {
31
31
  interface GoogleHomeEnterpriseSdmV1Device {
32
- /** Output only. The GHP device ID of the device. */
33
- ghpName?: string;
34
32
  /** Required. The resource name of the device. For example: "enterprises/XYZ/devices/123". */
35
33
  name?: string;
36
34
  /** Assignee details of the device. */
@@ -65,8 +63,6 @@ declare namespace gapi.client {
65
63
  interface GoogleHomeEnterpriseSdmV1ParentRelation {
66
64
  /** Output only. The custom name of the relation -- e.g., structure/room where the device is assigned to. */
67
65
  displayName?: string;
68
- /** Output only. The GHP name of the relation -- e.g., structure/room where the device is assigned to. For example: "homegraph.googleapis.com/Structure/ABC" or "homegraph.googleapis.com/Room/ABC" */
69
- ghpParent?: string;
70
66
  /** Output only. The name of the relation -- e.g., structure/room where the device is assigned to. For example: "enterprises/XYZ/structures/ABC" or "enterprises/XYZ/structures/ABC/rooms/123" */
71
67
  parent?: string;
72
68
  }
@@ -77,8 +73,6 @@ declare namespace gapi.client {
77
73
  traits?: {[P in string]: any};
78
74
  }
79
75
  interface GoogleHomeEnterpriseSdmV1Structure {
80
- /** Output only. The unique identifier for the structure in Google Home Platform. Format: homegraph.googleapis.com/Structure/{structure_id} */
81
- ghpName?: string;
82
76
  /** Output only. The resource name of the structure. For example: "enterprises/XYZ/structures/ABC". */
83
77
  name?: string;
84
78
  /** Structure traits. */
@@ -88,11 +82,11 @@ declare namespace gapi.client {
88
82
  /** Executes a command to device managed by the enterprise. */
89
83
  executeCommand(request: {
90
84
  /** V1 error format. */
91
- '$.xgafv'?: string;
85
+ '$.xgafv'?: '1' | '2';
92
86
  /** OAuth access token. */
93
87
  access_token?: string;
94
88
  /** Data format for response. */
95
- alt?: string;
89
+ alt?: 'json' | 'media' | 'proto';
96
90
  /** JSONP */
97
91
  callback?: string;
98
92
  /** Selector specifying which fields to include in a partial response. */
@@ -117,11 +111,11 @@ declare namespace gapi.client {
117
111
  executeCommand(
118
112
  request: {
119
113
  /** V1 error format. */
120
- '$.xgafv'?: string;
114
+ '$.xgafv'?: '1' | '2';
121
115
  /** OAuth access token. */
122
116
  access_token?: string;
123
117
  /** Data format for response. */
124
- alt?: string;
118
+ alt?: 'json' | 'media' | 'proto';
125
119
  /** JSONP */
126
120
  callback?: string;
127
121
  /** Selector specifying which fields to include in a partial response. */
@@ -146,11 +140,11 @@ declare namespace gapi.client {
146
140
  /** Gets a device managed by the enterprise. */
147
141
  get(request?: {
148
142
  /** V1 error format. */
149
- '$.xgafv'?: string;
143
+ '$.xgafv'?: '1' | '2';
150
144
  /** OAuth access token. */
151
145
  access_token?: string;
152
146
  /** Data format for response. */
153
- alt?: string;
147
+ alt?: 'json' | 'media' | 'proto';
154
148
  /** JSONP */
155
149
  callback?: string;
156
150
  /** Selector specifying which fields to include in a partial response. */
@@ -173,11 +167,11 @@ declare namespace gapi.client {
173
167
  /** Lists devices managed by the enterprise. */
174
168
  list(request?: {
175
169
  /** V1 error format. */
176
- '$.xgafv'?: string;
170
+ '$.xgafv'?: '1' | '2';
177
171
  /** OAuth access token. */
178
172
  access_token?: string;
179
173
  /** Data format for response. */
180
- alt?: string;
174
+ alt?: 'json' | 'media' | 'proto';
181
175
  /** JSONP */
182
176
  callback?: string;
183
177
  /** Selector specifying which fields to include in a partial response. */
@@ -204,11 +198,11 @@ declare namespace gapi.client {
204
198
  /** Gets a room managed by the enterprise. */
205
199
  get(request?: {
206
200
  /** V1 error format. */
207
- '$.xgafv'?: string;
201
+ '$.xgafv'?: '1' | '2';
208
202
  /** OAuth access token. */
209
203
  access_token?: string;
210
204
  /** Data format for response. */
211
- alt?: string;
205
+ alt?: 'json' | 'media' | 'proto';
212
206
  /** JSONP */
213
207
  callback?: string;
214
208
  /** Selector specifying which fields to include in a partial response. */
@@ -231,11 +225,11 @@ declare namespace gapi.client {
231
225
  /** Lists rooms managed by the enterprise. */
232
226
  list(request?: {
233
227
  /** V1 error format. */
234
- '$.xgafv'?: string;
228
+ '$.xgafv'?: '1' | '2';
235
229
  /** OAuth access token. */
236
230
  access_token?: string;
237
231
  /** Data format for response. */
238
- alt?: string;
232
+ alt?: 'json' | 'media' | 'proto';
239
233
  /** JSONP */
240
234
  callback?: string;
241
235
  /** Selector specifying which fields to include in a partial response. */
@@ -260,11 +254,11 @@ declare namespace gapi.client {
260
254
  /** Gets a structure managed by the enterprise. */
261
255
  get(request?: {
262
256
  /** V1 error format. */
263
- '$.xgafv'?: string;
257
+ '$.xgafv'?: '1' | '2';
264
258
  /** OAuth access token. */
265
259
  access_token?: string;
266
260
  /** Data format for response. */
267
- alt?: string;
261
+ alt?: 'json' | 'media' | 'proto';
268
262
  /** JSONP */
269
263
  callback?: string;
270
264
  /** Selector specifying which fields to include in a partial response. */
@@ -287,11 +281,11 @@ declare namespace gapi.client {
287
281
  /** Lists structures managed by the enterprise. */
288
282
  list(request?: {
289
283
  /** V1 error format. */
290
- '$.xgafv'?: string;
284
+ '$.xgafv'?: '1' | '2';
291
285
  /** OAuth access token. */
292
286
  access_token?: string;
293
287
  /** Data format for response. */
294
- alt?: string;
288
+ alt?: 'json' | 'media' | 'proto';
295
289
  /** JSONP */
296
290
  callback?: string;
297
291
  /** Selector specifying which fields to include in a partial response. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.smartdevicemanagement-v1",
3
- "version": "0.1.20260303",
3
+ "version": "0.2.20260601",
4
4
  "description": "TypeScript typings for Smart Device Management API v1",
5
5
  "repository": {
6
6
  "type": "git",
package/readme.md CHANGED
@@ -11,6 +11,23 @@ Install typings for Smart Device Management API:
11
11
  npm install @types/gapi.client.smartdevicemanagement-v1 --save-dev
12
12
  ```
13
13
 
14
+ ## TypeScript 6.0+
15
+
16
+ TypeScript 6.0 changed `types` to default to `[]`. You must now explicitly list type packages in `tsconfig.json`:
17
+
18
+ ```json
19
+ {
20
+ "compilerOptions": {
21
+ "types": [
22
+ "gapi",
23
+ "gapi.auth2",
24
+ "gapi.client",
25
+ "gapi.client.smartdevicemanagement-v1"
26
+ ]
27
+ }
28
+ }
29
+ ```
30
+
14
31
  ## Usage
15
32
 
16
33
  You need to initialize Google API client in your code: