@maxim_mazurok/gapi.client.homegraph-v1 0.0.20230421 → 0.0.20230516
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 +305 -153
- package/package.json +1 -1
- package/tests.ts +1 -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://homegraph.googleapis.com/$discovery/rest?version=v1
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20230516
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -24,149 +24,196 @@ declare namespace gapi.client {
|
|
|
24
24
|
namespace homegraph {
|
|
25
25
|
interface AgentDeviceId {
|
|
26
26
|
/** Third-party device ID. */
|
|
27
|
-
id?:
|
|
27
|
+
id?:
|
|
28
|
+
string;
|
|
28
29
|
}
|
|
29
30
|
interface AgentOtherDeviceId {
|
|
30
31
|
/** Project ID for your smart home Action. */
|
|
31
|
-
agentId?:
|
|
32
|
+
agentId?:
|
|
33
|
+
string;
|
|
32
34
|
/** Unique third-party device ID. */
|
|
33
|
-
deviceId?:
|
|
35
|
+
deviceId?:
|
|
36
|
+
string;
|
|
34
37
|
}
|
|
35
38
|
interface Device {
|
|
36
39
|
/** Attributes for the traits supported by the device. */
|
|
37
|
-
attributes?:
|
|
40
|
+
attributes?:
|
|
41
|
+
{ [P in string]: any };
|
|
38
42
|
/**
|
|
39
43
|
* Custom device attributes stored in Home Graph and provided to your smart home Action in each [QUERY](https://developers.home.google.com/cloud-to-cloud/intents/query) and
|
|
40
44
|
* [EXECUTE](https://developers.home.google.com/cloud-to-cloud/intents/execute) intent. Data in this object has a few constraints: No sensitive information, including but not limited
|
|
41
45
|
* to Personally Identifiable Information.
|
|
42
46
|
*/
|
|
43
|
-
customData?:
|
|
47
|
+
customData?:
|
|
48
|
+
{ [P in string]: any };
|
|
44
49
|
/** Device manufacturer, model, hardware version, and software version. */
|
|
45
|
-
deviceInfo?:
|
|
50
|
+
deviceInfo?:
|
|
51
|
+
DeviceInfo;
|
|
46
52
|
/** Third-party device ID. */
|
|
47
|
-
id?:
|
|
53
|
+
id?:
|
|
54
|
+
string;
|
|
48
55
|
/** Names given to this device by your smart home Action. */
|
|
49
|
-
name?:
|
|
56
|
+
name?:
|
|
57
|
+
DeviceNames;
|
|
50
58
|
/**
|
|
51
59
|
* Indicates whether your smart home Action will report notifications to Google for this device via ReportStateAndNotification. If your smart home Action enables users to control
|
|
52
60
|
* device notifications, you should update this field and call RequestSyncDevices.
|
|
53
61
|
*/
|
|
54
|
-
notificationSupportedByAgent?:
|
|
62
|
+
notificationSupportedByAgent?:
|
|
63
|
+
boolean;
|
|
55
64
|
/** Alternate IDs associated with this device. This is used to identify cloud synced devices enabled for [local fulfillment](https://developers.home.google.com/local-home/overview). */
|
|
56
|
-
otherDeviceIds?:
|
|
65
|
+
otherDeviceIds?:
|
|
66
|
+
AgentOtherDeviceId[];
|
|
57
67
|
/** Suggested name for the room where this device is installed. Google attempts to use this value during user setup. */
|
|
58
|
-
roomHint?:
|
|
68
|
+
roomHint?:
|
|
69
|
+
string;
|
|
59
70
|
/** Suggested name for the structure where this device is installed. Google attempts to use this value during user setup. */
|
|
60
|
-
structureHint?:
|
|
71
|
+
structureHint?:
|
|
72
|
+
string;
|
|
61
73
|
/** Traits supported by the device. See [device traits](https://developers.home.google.com/cloud-to-cloud/traits). */
|
|
62
|
-
traits?:
|
|
74
|
+
traits?:
|
|
75
|
+
string[];
|
|
63
76
|
/** Hardware type of the device. See [device types](https://developers.home.google.com/cloud-to-cloud/guides). */
|
|
64
|
-
type?:
|
|
77
|
+
type?:
|
|
78
|
+
string;
|
|
65
79
|
/** Indicates whether your smart home Action will report state of this device to Google via ReportStateAndNotification. */
|
|
66
|
-
willReportState?:
|
|
80
|
+
willReportState?:
|
|
81
|
+
boolean;
|
|
67
82
|
}
|
|
68
83
|
interface DeviceInfo {
|
|
69
84
|
/** Device hardware version. */
|
|
70
|
-
hwVersion?:
|
|
85
|
+
hwVersion?:
|
|
86
|
+
string;
|
|
71
87
|
/** Device manufacturer. */
|
|
72
|
-
manufacturer?:
|
|
88
|
+
manufacturer?:
|
|
89
|
+
string;
|
|
73
90
|
/** Device model. */
|
|
74
|
-
model?:
|
|
91
|
+
model?:
|
|
92
|
+
string;
|
|
75
93
|
/** Device software version. */
|
|
76
|
-
swVersion?:
|
|
94
|
+
swVersion?:
|
|
95
|
+
string;
|
|
77
96
|
}
|
|
78
97
|
interface DeviceNames {
|
|
79
98
|
/** List of names provided by the manufacturer rather than the user, such as serial numbers, SKUs, etc. */
|
|
80
|
-
defaultNames?:
|
|
99
|
+
defaultNames?:
|
|
100
|
+
string[];
|
|
81
101
|
/** Primary name of the device, generally provided by the user. */
|
|
82
|
-
name?:
|
|
102
|
+
name?:
|
|
103
|
+
string;
|
|
83
104
|
/** Additional names provided by the user for the device. */
|
|
84
|
-
nicknames?:
|
|
105
|
+
nicknames?:
|
|
106
|
+
string[];
|
|
85
107
|
}
|
|
86
108
|
// tslint:disable-next-line:no-empty-interface
|
|
87
109
|
interface Empty {
|
|
88
110
|
}
|
|
89
111
|
interface QueryRequest {
|
|
90
112
|
/** Required. Third-party user ID. */
|
|
91
|
-
agentUserId?:
|
|
113
|
+
agentUserId?:
|
|
114
|
+
string;
|
|
92
115
|
/** Required. Inputs containing third-party device IDs for which to get the device states. */
|
|
93
|
-
inputs?:
|
|
116
|
+
inputs?:
|
|
117
|
+
QueryRequestInput[];
|
|
94
118
|
/** Request ID used for debugging. */
|
|
95
|
-
requestId?:
|
|
119
|
+
requestId?:
|
|
120
|
+
string;
|
|
96
121
|
}
|
|
97
122
|
interface QueryRequestInput {
|
|
98
123
|
/** Payload containing third-party device IDs. */
|
|
99
|
-
payload?:
|
|
124
|
+
payload?:
|
|
125
|
+
QueryRequestPayload;
|
|
100
126
|
}
|
|
101
127
|
interface QueryRequestPayload {
|
|
102
128
|
/** Third-party device IDs for which to get the device states. */
|
|
103
|
-
devices?:
|
|
129
|
+
devices?:
|
|
130
|
+
AgentDeviceId[];
|
|
104
131
|
}
|
|
105
132
|
interface QueryResponse {
|
|
106
133
|
/** Device states for the devices given in the request. */
|
|
107
|
-
payload?:
|
|
134
|
+
payload?:
|
|
135
|
+
QueryResponsePayload;
|
|
108
136
|
/** Request ID used for debugging. Copied from the request. */
|
|
109
|
-
requestId?:
|
|
137
|
+
requestId?:
|
|
138
|
+
string;
|
|
110
139
|
}
|
|
111
140
|
interface QueryResponsePayload {
|
|
112
141
|
/** States of the devices. Map of third-party device ID to struct of device states. */
|
|
113
|
-
devices?:
|
|
142
|
+
devices?:
|
|
143
|
+
{ [P in string]: { [P in string]: any } };
|
|
114
144
|
}
|
|
115
145
|
interface ReportStateAndNotificationDevice {
|
|
116
146
|
/** Notifications metadata for devices. See the **Device NOTIFICATIONS** section of the individual trait [reference guides](https://developers.home.google.com/cloud-to-cloud/traits). */
|
|
117
|
-
notifications?:
|
|
147
|
+
notifications?:
|
|
148
|
+
{ [P in string]: any };
|
|
118
149
|
/** States of devices to update. See the **Device STATES** section of the individual trait [reference guides](https://developers.home.google.com/cloud-to-cloud/traits). */
|
|
119
|
-
states?:
|
|
150
|
+
states?:
|
|
151
|
+
{ [P in string]: any };
|
|
120
152
|
}
|
|
121
153
|
interface ReportStateAndNotificationRequest {
|
|
122
154
|
/** Required. Third-party user ID. */
|
|
123
|
-
agentUserId?:
|
|
155
|
+
agentUserId?:
|
|
156
|
+
string;
|
|
124
157
|
/** Unique identifier per event (for example, a doorbell press). */
|
|
125
|
-
eventId?:
|
|
158
|
+
eventId?:
|
|
159
|
+
string;
|
|
126
160
|
/** Deprecated. */
|
|
127
|
-
followUpToken?:
|
|
161
|
+
followUpToken?:
|
|
162
|
+
string;
|
|
128
163
|
/** Required. State of devices to update and notification metadata for devices. */
|
|
129
|
-
payload?:
|
|
164
|
+
payload?:
|
|
165
|
+
StateAndNotificationPayload;
|
|
130
166
|
/** Request ID used for debugging. */
|
|
131
|
-
requestId?:
|
|
167
|
+
requestId?:
|
|
168
|
+
string;
|
|
132
169
|
}
|
|
133
170
|
interface ReportStateAndNotificationResponse {
|
|
134
171
|
/** Request ID copied from ReportStateAndNotificationRequest. */
|
|
135
|
-
requestId?:
|
|
172
|
+
requestId?:
|
|
173
|
+
string;
|
|
136
174
|
}
|
|
137
175
|
interface RequestSyncDevicesRequest {
|
|
138
176
|
/** Required. Third-party user ID. */
|
|
139
|
-
agentUserId?:
|
|
177
|
+
agentUserId?:
|
|
178
|
+
string;
|
|
140
179
|
/**
|
|
141
180
|
* Optional. If set, the request will be added to a queue and a response will be returned immediately. This enables concurrent requests for the given `agent_user_id`, but the caller
|
|
142
181
|
* will not receive any error responses.
|
|
143
182
|
*/
|
|
144
|
-
async?:
|
|
183
|
+
async?:
|
|
184
|
+
boolean;
|
|
145
185
|
}
|
|
146
186
|
// tslint:disable-next-line:no-empty-interface
|
|
147
187
|
interface RequestSyncDevicesResponse {
|
|
148
188
|
}
|
|
149
189
|
interface StateAndNotificationPayload {
|
|
150
190
|
/** The devices for updating state and sending notifications. */
|
|
151
|
-
devices?:
|
|
191
|
+
devices?:
|
|
192
|
+
ReportStateAndNotificationDevice;
|
|
152
193
|
}
|
|
153
194
|
interface SyncRequest {
|
|
154
195
|
/** Required. Third-party user ID. */
|
|
155
|
-
agentUserId?:
|
|
196
|
+
agentUserId?:
|
|
197
|
+
string;
|
|
156
198
|
/** Request ID used for debugging. */
|
|
157
|
-
requestId?:
|
|
199
|
+
requestId?:
|
|
200
|
+
string;
|
|
158
201
|
}
|
|
159
202
|
interface SyncResponse {
|
|
160
203
|
/** Devices associated with the third-party user. */
|
|
161
|
-
payload?:
|
|
204
|
+
payload?:
|
|
205
|
+
SyncResponsePayload;
|
|
162
206
|
/** Request ID used for debugging. Copied from the request. */
|
|
163
|
-
requestId?:
|
|
207
|
+
requestId?:
|
|
208
|
+
string;
|
|
164
209
|
}
|
|
165
210
|
interface SyncResponsePayload {
|
|
166
211
|
/** Third-party user ID */
|
|
167
|
-
agentUserId?:
|
|
212
|
+
agentUserId?:
|
|
213
|
+
string;
|
|
168
214
|
/** Devices associated with the third-party user. */
|
|
169
|
-
devices?:
|
|
215
|
+
devices?:
|
|
216
|
+
Device[];
|
|
170
217
|
}
|
|
171
218
|
interface AgentUsersResource {
|
|
172
219
|
/**
|
|
@@ -176,31 +223,44 @@ declare namespace gapi.client {
|
|
|
176
223
|
*/
|
|
177
224
|
delete(request?: {
|
|
178
225
|
/** V1 error format. */
|
|
179
|
-
"$.xgafv"?:
|
|
226
|
+
"$.xgafv"?:
|
|
227
|
+
string;
|
|
180
228
|
/** OAuth access token. */
|
|
181
|
-
access_token?:
|
|
229
|
+
access_token?:
|
|
230
|
+
string;
|
|
182
231
|
/** Required. Third-party user ID. */
|
|
183
|
-
agentUserId:
|
|
232
|
+
agentUserId:
|
|
233
|
+
string;
|
|
184
234
|
/** Data format for response. */
|
|
185
|
-
alt?:
|
|
235
|
+
alt?:
|
|
236
|
+
string;
|
|
186
237
|
/** JSONP */
|
|
187
|
-
callback?:
|
|
238
|
+
callback?:
|
|
239
|
+
string;
|
|
188
240
|
/** Selector specifying which fields to include in a partial response. */
|
|
189
|
-
fields?:
|
|
241
|
+
fields?:
|
|
242
|
+
string;
|
|
190
243
|
/** 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. */
|
|
191
|
-
key?:
|
|
244
|
+
key?:
|
|
245
|
+
string;
|
|
192
246
|
/** OAuth 2.0 token for the current user. */
|
|
193
|
-
oauth_token?:
|
|
247
|
+
oauth_token?:
|
|
248
|
+
string;
|
|
194
249
|
/** Returns response with indentations and line breaks. */
|
|
195
|
-
prettyPrint?:
|
|
250
|
+
prettyPrint?:
|
|
251
|
+
boolean;
|
|
196
252
|
/** 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. */
|
|
197
|
-
quotaUser?:
|
|
253
|
+
quotaUser?:
|
|
254
|
+
string;
|
|
198
255
|
/** Request ID used for debugging. */
|
|
199
|
-
requestId?:
|
|
256
|
+
requestId?:
|
|
257
|
+
string;
|
|
200
258
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
201
|
-
upload_protocol?:
|
|
259
|
+
upload_protocol?:
|
|
260
|
+
string;
|
|
202
261
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
203
|
-
uploadType?:
|
|
262
|
+
uploadType?:
|
|
263
|
+
string;
|
|
204
264
|
}): Request<{}>;
|
|
205
265
|
}
|
|
206
266
|
interface DevicesResource {
|
|
@@ -210,53 +270,76 @@ declare namespace gapi.client {
|
|
|
210
270
|
*/
|
|
211
271
|
query(request: {
|
|
212
272
|
/** V1 error format. */
|
|
213
|
-
"$.xgafv"?:
|
|
273
|
+
"$.xgafv"?:
|
|
274
|
+
string;
|
|
214
275
|
/** OAuth access token. */
|
|
215
|
-
access_token?:
|
|
276
|
+
access_token?:
|
|
277
|
+
string;
|
|
216
278
|
/** Data format for response. */
|
|
217
|
-
alt?:
|
|
279
|
+
alt?:
|
|
280
|
+
string;
|
|
218
281
|
/** JSONP */
|
|
219
|
-
callback?:
|
|
282
|
+
callback?:
|
|
283
|
+
string;
|
|
220
284
|
/** Selector specifying which fields to include in a partial response. */
|
|
221
|
-
fields?:
|
|
285
|
+
fields?:
|
|
286
|
+
string;
|
|
222
287
|
/** 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. */
|
|
223
|
-
key?:
|
|
288
|
+
key?:
|
|
289
|
+
string;
|
|
224
290
|
/** OAuth 2.0 token for the current user. */
|
|
225
|
-
oauth_token?:
|
|
291
|
+
oauth_token?:
|
|
292
|
+
string;
|
|
226
293
|
/** Returns response with indentations and line breaks. */
|
|
227
|
-
prettyPrint?:
|
|
294
|
+
prettyPrint?:
|
|
295
|
+
boolean;
|
|
228
296
|
/** 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. */
|
|
229
|
-
quotaUser?:
|
|
297
|
+
quotaUser?:
|
|
298
|
+
string;
|
|
230
299
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
231
|
-
upload_protocol?:
|
|
300
|
+
upload_protocol?:
|
|
301
|
+
string;
|
|
232
302
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
233
|
-
uploadType?:
|
|
303
|
+
uploadType?:
|
|
304
|
+
string;
|
|
234
305
|
/** Request body */
|
|
235
|
-
resource:
|
|
306
|
+
resource:
|
|
307
|
+
QueryRequest;
|
|
236
308
|
}): Request<QueryResponse>;
|
|
237
309
|
query(request: {
|
|
238
310
|
/** V1 error format. */
|
|
239
|
-
"$.xgafv"?:
|
|
311
|
+
"$.xgafv"?:
|
|
312
|
+
string;
|
|
240
313
|
/** OAuth access token. */
|
|
241
|
-
access_token?:
|
|
314
|
+
access_token?:
|
|
315
|
+
string;
|
|
242
316
|
/** Data format for response. */
|
|
243
|
-
alt?:
|
|
317
|
+
alt?:
|
|
318
|
+
string;
|
|
244
319
|
/** JSONP */
|
|
245
|
-
callback?:
|
|
320
|
+
callback?:
|
|
321
|
+
string;
|
|
246
322
|
/** Selector specifying which fields to include in a partial response. */
|
|
247
|
-
fields?:
|
|
323
|
+
fields?:
|
|
324
|
+
string;
|
|
248
325
|
/** 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. */
|
|
249
|
-
key?:
|
|
326
|
+
key?:
|
|
327
|
+
string;
|
|
250
328
|
/** OAuth 2.0 token for the current user. */
|
|
251
|
-
oauth_token?:
|
|
329
|
+
oauth_token?:
|
|
330
|
+
string;
|
|
252
331
|
/** Returns response with indentations and line breaks. */
|
|
253
|
-
prettyPrint?:
|
|
332
|
+
prettyPrint?:
|
|
333
|
+
boolean;
|
|
254
334
|
/** 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. */
|
|
255
|
-
quotaUser?:
|
|
335
|
+
quotaUser?:
|
|
336
|
+
string;
|
|
256
337
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
257
|
-
upload_protocol?:
|
|
338
|
+
upload_protocol?:
|
|
339
|
+
string;
|
|
258
340
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
259
|
-
uploadType?:
|
|
341
|
+
uploadType?:
|
|
342
|
+
string;
|
|
260
343
|
},
|
|
261
344
|
body: QueryRequest): Request<QueryResponse>;
|
|
262
345
|
/**
|
|
@@ -268,53 +351,76 @@ declare namespace gapi.client {
|
|
|
268
351
|
*/
|
|
269
352
|
reportStateAndNotification(request: {
|
|
270
353
|
/** V1 error format. */
|
|
271
|
-
"$.xgafv"?:
|
|
354
|
+
"$.xgafv"?:
|
|
355
|
+
string;
|
|
272
356
|
/** OAuth access token. */
|
|
273
|
-
access_token?:
|
|
357
|
+
access_token?:
|
|
358
|
+
string;
|
|
274
359
|
/** Data format for response. */
|
|
275
|
-
alt?:
|
|
360
|
+
alt?:
|
|
361
|
+
string;
|
|
276
362
|
/** JSONP */
|
|
277
|
-
callback?:
|
|
363
|
+
callback?:
|
|
364
|
+
string;
|
|
278
365
|
/** Selector specifying which fields to include in a partial response. */
|
|
279
|
-
fields?:
|
|
366
|
+
fields?:
|
|
367
|
+
string;
|
|
280
368
|
/** 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. */
|
|
281
|
-
key?:
|
|
369
|
+
key?:
|
|
370
|
+
string;
|
|
282
371
|
/** OAuth 2.0 token for the current user. */
|
|
283
|
-
oauth_token?:
|
|
372
|
+
oauth_token?:
|
|
373
|
+
string;
|
|
284
374
|
/** Returns response with indentations and line breaks. */
|
|
285
|
-
prettyPrint?:
|
|
375
|
+
prettyPrint?:
|
|
376
|
+
boolean;
|
|
286
377
|
/** 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. */
|
|
287
|
-
quotaUser?:
|
|
378
|
+
quotaUser?:
|
|
379
|
+
string;
|
|
288
380
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
289
|
-
upload_protocol?:
|
|
381
|
+
upload_protocol?:
|
|
382
|
+
string;
|
|
290
383
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
291
|
-
uploadType?:
|
|
384
|
+
uploadType?:
|
|
385
|
+
string;
|
|
292
386
|
/** Request body */
|
|
293
|
-
resource:
|
|
387
|
+
resource:
|
|
388
|
+
ReportStateAndNotificationRequest;
|
|
294
389
|
}): Request<ReportStateAndNotificationResponse>;
|
|
295
390
|
reportStateAndNotification(request: {
|
|
296
391
|
/** V1 error format. */
|
|
297
|
-
"$.xgafv"?:
|
|
392
|
+
"$.xgafv"?:
|
|
393
|
+
string;
|
|
298
394
|
/** OAuth access token. */
|
|
299
|
-
access_token?:
|
|
395
|
+
access_token?:
|
|
396
|
+
string;
|
|
300
397
|
/** Data format for response. */
|
|
301
|
-
alt?:
|
|
398
|
+
alt?:
|
|
399
|
+
string;
|
|
302
400
|
/** JSONP */
|
|
303
|
-
callback?:
|
|
401
|
+
callback?:
|
|
402
|
+
string;
|
|
304
403
|
/** Selector specifying which fields to include in a partial response. */
|
|
305
|
-
fields?:
|
|
404
|
+
fields?:
|
|
405
|
+
string;
|
|
306
406
|
/** 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. */
|
|
307
|
-
key?:
|
|
407
|
+
key?:
|
|
408
|
+
string;
|
|
308
409
|
/** OAuth 2.0 token for the current user. */
|
|
309
|
-
oauth_token?:
|
|
410
|
+
oauth_token?:
|
|
411
|
+
string;
|
|
310
412
|
/** Returns response with indentations and line breaks. */
|
|
311
|
-
prettyPrint?:
|
|
413
|
+
prettyPrint?:
|
|
414
|
+
boolean;
|
|
312
415
|
/** 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. */
|
|
313
|
-
quotaUser?:
|
|
416
|
+
quotaUser?:
|
|
417
|
+
string;
|
|
314
418
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
315
|
-
upload_protocol?:
|
|
419
|
+
upload_protocol?:
|
|
420
|
+
string;
|
|
316
421
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
317
|
-
uploadType?:
|
|
422
|
+
uploadType?:
|
|
423
|
+
string;
|
|
318
424
|
},
|
|
319
425
|
body: ReportStateAndNotificationRequest): Request<ReportStateAndNotificationResponse>;
|
|
320
426
|
/**
|
|
@@ -324,53 +430,76 @@ declare namespace gapi.client {
|
|
|
324
430
|
*/
|
|
325
431
|
requestSync(request: {
|
|
326
432
|
/** V1 error format. */
|
|
327
|
-
"$.xgafv"?:
|
|
433
|
+
"$.xgafv"?:
|
|
434
|
+
string;
|
|
328
435
|
/** OAuth access token. */
|
|
329
|
-
access_token?:
|
|
436
|
+
access_token?:
|
|
437
|
+
string;
|
|
330
438
|
/** Data format for response. */
|
|
331
|
-
alt?:
|
|
439
|
+
alt?:
|
|
440
|
+
string;
|
|
332
441
|
/** JSONP */
|
|
333
|
-
callback?:
|
|
442
|
+
callback?:
|
|
443
|
+
string;
|
|
334
444
|
/** Selector specifying which fields to include in a partial response. */
|
|
335
|
-
fields?:
|
|
445
|
+
fields?:
|
|
446
|
+
string;
|
|
336
447
|
/** 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. */
|
|
337
|
-
key?:
|
|
448
|
+
key?:
|
|
449
|
+
string;
|
|
338
450
|
/** OAuth 2.0 token for the current user. */
|
|
339
|
-
oauth_token?:
|
|
451
|
+
oauth_token?:
|
|
452
|
+
string;
|
|
340
453
|
/** Returns response with indentations and line breaks. */
|
|
341
|
-
prettyPrint?:
|
|
454
|
+
prettyPrint?:
|
|
455
|
+
boolean;
|
|
342
456
|
/** 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. */
|
|
343
|
-
quotaUser?:
|
|
457
|
+
quotaUser?:
|
|
458
|
+
string;
|
|
344
459
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
345
|
-
upload_protocol?:
|
|
460
|
+
upload_protocol?:
|
|
461
|
+
string;
|
|
346
462
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
347
|
-
uploadType?:
|
|
463
|
+
uploadType?:
|
|
464
|
+
string;
|
|
348
465
|
/** Request body */
|
|
349
|
-
resource:
|
|
466
|
+
resource:
|
|
467
|
+
RequestSyncDevicesRequest;
|
|
350
468
|
}): Request<{}>;
|
|
351
469
|
requestSync(request: {
|
|
352
470
|
/** V1 error format. */
|
|
353
|
-
"$.xgafv"?:
|
|
471
|
+
"$.xgafv"?:
|
|
472
|
+
string;
|
|
354
473
|
/** OAuth access token. */
|
|
355
|
-
access_token?:
|
|
474
|
+
access_token?:
|
|
475
|
+
string;
|
|
356
476
|
/** Data format for response. */
|
|
357
|
-
alt?:
|
|
477
|
+
alt?:
|
|
478
|
+
string;
|
|
358
479
|
/** JSONP */
|
|
359
|
-
callback?:
|
|
480
|
+
callback?:
|
|
481
|
+
string;
|
|
360
482
|
/** Selector specifying which fields to include in a partial response. */
|
|
361
|
-
fields?:
|
|
483
|
+
fields?:
|
|
484
|
+
string;
|
|
362
485
|
/** 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. */
|
|
363
|
-
key?:
|
|
486
|
+
key?:
|
|
487
|
+
string;
|
|
364
488
|
/** OAuth 2.0 token for the current user. */
|
|
365
|
-
oauth_token?:
|
|
489
|
+
oauth_token?:
|
|
490
|
+
string;
|
|
366
491
|
/** Returns response with indentations and line breaks. */
|
|
367
|
-
prettyPrint?:
|
|
492
|
+
prettyPrint?:
|
|
493
|
+
boolean;
|
|
368
494
|
/** 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. */
|
|
369
|
-
quotaUser?:
|
|
495
|
+
quotaUser?:
|
|
496
|
+
string;
|
|
370
497
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
371
|
-
upload_protocol?:
|
|
498
|
+
upload_protocol?:
|
|
499
|
+
string;
|
|
372
500
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
373
|
-
uploadType?:
|
|
501
|
+
uploadType?:
|
|
502
|
+
string;
|
|
374
503
|
},
|
|
375
504
|
body: RequestSyncDevicesRequest): Request<{}>;
|
|
376
505
|
/**
|
|
@@ -379,53 +508,76 @@ declare namespace gapi.client {
|
|
|
379
508
|
*/
|
|
380
509
|
sync(request: {
|
|
381
510
|
/** V1 error format. */
|
|
382
|
-
"$.xgafv"?:
|
|
511
|
+
"$.xgafv"?:
|
|
512
|
+
string;
|
|
383
513
|
/** OAuth access token. */
|
|
384
|
-
access_token?:
|
|
514
|
+
access_token?:
|
|
515
|
+
string;
|
|
385
516
|
/** Data format for response. */
|
|
386
|
-
alt?:
|
|
517
|
+
alt?:
|
|
518
|
+
string;
|
|
387
519
|
/** JSONP */
|
|
388
|
-
callback?:
|
|
520
|
+
callback?:
|
|
521
|
+
string;
|
|
389
522
|
/** Selector specifying which fields to include in a partial response. */
|
|
390
|
-
fields?:
|
|
523
|
+
fields?:
|
|
524
|
+
string;
|
|
391
525
|
/** 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. */
|
|
392
|
-
key?:
|
|
526
|
+
key?:
|
|
527
|
+
string;
|
|
393
528
|
/** OAuth 2.0 token for the current user. */
|
|
394
|
-
oauth_token?:
|
|
529
|
+
oauth_token?:
|
|
530
|
+
string;
|
|
395
531
|
/** Returns response with indentations and line breaks. */
|
|
396
|
-
prettyPrint?:
|
|
532
|
+
prettyPrint?:
|
|
533
|
+
boolean;
|
|
397
534
|
/** 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. */
|
|
398
|
-
quotaUser?:
|
|
535
|
+
quotaUser?:
|
|
536
|
+
string;
|
|
399
537
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
400
|
-
upload_protocol?:
|
|
538
|
+
upload_protocol?:
|
|
539
|
+
string;
|
|
401
540
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
402
|
-
uploadType?:
|
|
541
|
+
uploadType?:
|
|
542
|
+
string;
|
|
403
543
|
/** Request body */
|
|
404
|
-
resource:
|
|
544
|
+
resource:
|
|
545
|
+
SyncRequest;
|
|
405
546
|
}): Request<SyncResponse>;
|
|
406
547
|
sync(request: {
|
|
407
548
|
/** V1 error format. */
|
|
408
|
-
"$.xgafv"?:
|
|
549
|
+
"$.xgafv"?:
|
|
550
|
+
string;
|
|
409
551
|
/** OAuth access token. */
|
|
410
|
-
access_token?:
|
|
552
|
+
access_token?:
|
|
553
|
+
string;
|
|
411
554
|
/** Data format for response. */
|
|
412
|
-
alt?:
|
|
555
|
+
alt?:
|
|
556
|
+
string;
|
|
413
557
|
/** JSONP */
|
|
414
|
-
callback?:
|
|
558
|
+
callback?:
|
|
559
|
+
string;
|
|
415
560
|
/** Selector specifying which fields to include in a partial response. */
|
|
416
|
-
fields?:
|
|
561
|
+
fields?:
|
|
562
|
+
string;
|
|
417
563
|
/** 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. */
|
|
418
|
-
key?:
|
|
564
|
+
key?:
|
|
565
|
+
string;
|
|
419
566
|
/** OAuth 2.0 token for the current user. */
|
|
420
|
-
oauth_token?:
|
|
567
|
+
oauth_token?:
|
|
568
|
+
string;
|
|
421
569
|
/** Returns response with indentations and line breaks. */
|
|
422
|
-
prettyPrint?:
|
|
570
|
+
prettyPrint?:
|
|
571
|
+
boolean;
|
|
423
572
|
/** 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. */
|
|
424
|
-
quotaUser?:
|
|
573
|
+
quotaUser?:
|
|
574
|
+
string;
|
|
425
575
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
426
|
-
upload_protocol?:
|
|
576
|
+
upload_protocol?:
|
|
577
|
+
string;
|
|
427
578
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
428
|
-
uploadType?:
|
|
579
|
+
uploadType?:
|
|
580
|
+
string;
|
|
429
581
|
},
|
|
430
582
|
body: SyncRequest): Request<SyncResponse>;
|
|
431
583
|
}
|
package/package.json
CHANGED
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:
|
|
6
|
+
// Revision: 20230516
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|