@googleapis/verifiedaccess 3.0.0 → 3.1.0
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/CHANGELOG.md +7 -0
- package/build/v1.d.ts +0 -97
- package/build/v1.js.map +1 -1
- package/build/v2.d.ts +8 -102
- package/build/v2.js.map +1 -1
- package/index.ts +1 -1
- package/package.json +1 -1
- package/v1.ts +0 -97
- package/v2.ts +8 -102
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [3.1.0](https://github.com/googleapis/google-api-nodejs-client/compare/verifiedaccess-v3.0.0...verifiedaccess-v3.1.0) (2023-08-09)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* **verifiedaccess:** update the API ([d8e2234](https://github.com/googleapis/google-api-nodejs-client/commit/d8e22343e2eb2ad4112ca9c067a0e95457f81f76))
|
|
9
|
+
|
|
3
10
|
## [3.0.0](https://github.com/googleapis/google-api-nodejs-client/compare/verifiedaccess-v2.0.0...verifiedaccess-v3.0.0) (2023-06-22)
|
|
4
11
|
|
|
5
12
|
|
package/build/v1.d.ts
CHANGED
|
@@ -141,52 +141,6 @@ export declare namespace verifiedaccess_v1 {
|
|
|
141
141
|
constructor(context: APIRequestContext);
|
|
142
142
|
/**
|
|
143
143
|
* CreateChallenge API
|
|
144
|
-
* @example
|
|
145
|
-
* ```js
|
|
146
|
-
* // Before running the sample:
|
|
147
|
-
* // - Enable the API at:
|
|
148
|
-
* // https://console.developers.google.com/apis/api/verifiedaccess.googleapis.com
|
|
149
|
-
* // - Login into gcloud by running:
|
|
150
|
-
* // `$ gcloud auth application-default login`
|
|
151
|
-
* // - Install the npm module by running:
|
|
152
|
-
* // `$ npm install googleapis`
|
|
153
|
-
*
|
|
154
|
-
* const {google} = require('googleapis');
|
|
155
|
-
* const verifiedaccess = google.verifiedaccess('v1');
|
|
156
|
-
*
|
|
157
|
-
* async function main() {
|
|
158
|
-
* const auth = new google.auth.GoogleAuth({
|
|
159
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
160
|
-
* scopes: ['https://www.googleapis.com/auth/verifiedaccess'],
|
|
161
|
-
* });
|
|
162
|
-
*
|
|
163
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
164
|
-
* const authClient = await auth.getClient();
|
|
165
|
-
* google.options({auth: authClient});
|
|
166
|
-
*
|
|
167
|
-
* // Do the magic
|
|
168
|
-
* const res = await verifiedaccess.challenge.create({
|
|
169
|
-
* // Request body metadata
|
|
170
|
-
* requestBody: {
|
|
171
|
-
* // request body parameters
|
|
172
|
-
* // {}
|
|
173
|
-
* },
|
|
174
|
-
* });
|
|
175
|
-
* console.log(res.data);
|
|
176
|
-
*
|
|
177
|
-
* // Example response
|
|
178
|
-
* // {
|
|
179
|
-
* // "alternativeChallenge": {},
|
|
180
|
-
* // "challenge": {}
|
|
181
|
-
* // }
|
|
182
|
-
* }
|
|
183
|
-
*
|
|
184
|
-
* main().catch(e => {
|
|
185
|
-
* console.error(e);
|
|
186
|
-
* throw e;
|
|
187
|
-
* });
|
|
188
|
-
*
|
|
189
|
-
* ```
|
|
190
144
|
*
|
|
191
145
|
* @param params - Parameters for request
|
|
192
146
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -201,57 +155,6 @@ export declare namespace verifiedaccess_v1 {
|
|
|
201
155
|
create(callback: BodyResponseCallback<Schema$Challenge>): void;
|
|
202
156
|
/**
|
|
203
157
|
* VerifyChallengeResponse API
|
|
204
|
-
* @example
|
|
205
|
-
* ```js
|
|
206
|
-
* // Before running the sample:
|
|
207
|
-
* // - Enable the API at:
|
|
208
|
-
* // https://console.developers.google.com/apis/api/verifiedaccess.googleapis.com
|
|
209
|
-
* // - Login into gcloud by running:
|
|
210
|
-
* // `$ gcloud auth application-default login`
|
|
211
|
-
* // - Install the npm module by running:
|
|
212
|
-
* // `$ npm install googleapis`
|
|
213
|
-
*
|
|
214
|
-
* const {google} = require('googleapis');
|
|
215
|
-
* const verifiedaccess = google.verifiedaccess('v1');
|
|
216
|
-
*
|
|
217
|
-
* async function main() {
|
|
218
|
-
* const auth = new google.auth.GoogleAuth({
|
|
219
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
220
|
-
* scopes: ['https://www.googleapis.com/auth/verifiedaccess'],
|
|
221
|
-
* });
|
|
222
|
-
*
|
|
223
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
224
|
-
* const authClient = await auth.getClient();
|
|
225
|
-
* google.options({auth: authClient});
|
|
226
|
-
*
|
|
227
|
-
* // Do the magic
|
|
228
|
-
* const res = await verifiedaccess.challenge.verify({
|
|
229
|
-
* // Request body metadata
|
|
230
|
-
* requestBody: {
|
|
231
|
-
* // request body parameters
|
|
232
|
-
* // {
|
|
233
|
-
* // "challengeResponse": {},
|
|
234
|
-
* // "expectedIdentity": "my_expectedIdentity"
|
|
235
|
-
* // }
|
|
236
|
-
* },
|
|
237
|
-
* });
|
|
238
|
-
* console.log(res.data);
|
|
239
|
-
*
|
|
240
|
-
* // Example response
|
|
241
|
-
* // {
|
|
242
|
-
* // "deviceEnrollmentId": "my_deviceEnrollmentId",
|
|
243
|
-
* // "devicePermanentId": "my_devicePermanentId",
|
|
244
|
-
* // "signedPublicKeyAndChallenge": "my_signedPublicKeyAndChallenge",
|
|
245
|
-
* // "verificationOutput": "my_verificationOutput"
|
|
246
|
-
* // }
|
|
247
|
-
* }
|
|
248
|
-
*
|
|
249
|
-
* main().catch(e => {
|
|
250
|
-
* console.error(e);
|
|
251
|
-
* throw e;
|
|
252
|
-
* });
|
|
253
|
-
*
|
|
254
|
-
* ```
|
|
255
158
|
*
|
|
256
159
|
* @param params - Parameters for request
|
|
257
160
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
package/build/v1.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v1.js","sourceRoot":"","sources":["../v1.ts"],"names":[],"mappings":";AAAA,4BAA4B;AAC5B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,gDAAgD;AAChD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;;;AAEjC,uDAAuD;AACvD,sDAAsD;AACtD,0DAA0D;AAC1D,oDAAoD;AACpD,4CAA4C;AAE5C,yDAe2B;AAG3B,IAAiB,iBAAiB,
|
|
1
|
+
{"version":3,"file":"v1.js","sourceRoot":"","sources":["../v1.ts"],"names":[],"mappings":";AAAA,4BAA4B;AAC5B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,gDAAgD;AAChD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;;;AAEjC,uDAAuD;AACvD,sDAAsD;AACtD,0DAA0D;AAC1D,oDAAoD;AACpD,4CAA4C;AAE5C,yDAe2B;AAG3B,IAAiB,iBAAiB,CAiWjC;AAjWD,WAAiB,iBAAiB;IAgEhC;;;;;;;;;;OAUG;IACH,MAAa,cAAc;QAIzB,YAAY,OAAsB,EAAE,MAA2B;YAC7D,IAAI,CAAC,OAAO,GAAG;gBACb,QAAQ,EAAE,OAAO,IAAI,EAAE;gBACvB,MAAM;aACP,CAAC;YAEF,IAAI,CAAC,SAAS,GAAG,IAAI,kBAAkB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxD,CAAC;KACF;IAZY,gCAAc,iBAY1B,CAAA;IAmED,MAAa,kBAAkB;QAE7B,YAAY,OAA0B;YACpC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACzB,CAAC;QAiCD,MAAM,CACJ,gBAGkC,EAClC,iBAIkC,EAClC,QAEkC;YAElC,IAAI,MAAM,GAAG,CAAC,gBAAgB,IAAI,EAAE,CAAqC,CAAC;YAC1E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K,UAAU,EAAE;gBAC3C,QAAQ,GAAG,iBAAiB,CAAC;gBAC7B,OAAO,GAAG,EAAE,CAAC;aACd;YAED,MAAM,OAAO,GACX,OAAO,CAAC,OAAO,IAAI,wCAAwC,CAAC;YAC9D,MAAM,UAAU,GAAG;gBACjB,OAAO,EAAE,MAAM,CAAC,MAAM,CACpB;oBACE,GAAG,EAAE,CAAC,OAAO,GAAG,sBAAsB,CAAC,CAAC,OAAO,CAC7C,cAAc,EACd,IAAI,CACL;oBACD,MAAM,EAAE,MAAM;iBACf,EACD,OAAO,CACR;gBACD,MAAM;gBACN,cAAc,EAAE,EAAE;gBAClB,UAAU,EAAE,EAAE;gBACd,OAAO,EAAE,IAAI,CAAC,OAAO;aACtB,CAAC;YACF,IAAI,QAAQ,EAAE;gBACZ,IAAA,oCAAgB,EACd,UAAU,EACV,QAAyC,CAC1C,CAAC;aACH;iBAAM;gBACL,OAAO,IAAA,oCAAgB,EACrB,UAAU,CACX,CAAC;aACH;QACH,CAAC;KACF;IAzLY,oCAAkB,qBAyL9B,CAAA;AAcH,CAAC,EAjWgB,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAiWjC"}
|
package/build/v2.d.ts
CHANGED
|
@@ -244,10 +244,18 @@ export declare namespace verifiedaccess_v2 {
|
|
|
244
244
|
* Result message for VerifiedAccess.VerifyChallengeResponse.
|
|
245
245
|
*/
|
|
246
246
|
export interface Schema$VerifyChallengeResponseResult {
|
|
247
|
+
/**
|
|
248
|
+
* Attested device ID (ADID).
|
|
249
|
+
*/
|
|
250
|
+
attestedDeviceId?: string | null;
|
|
247
251
|
/**
|
|
248
252
|
* Unique customer id that this device belongs to, as defined by the Google Admin SDK at https://developers.google.com/admin-sdk/directory/v1/guides/manage-customers
|
|
249
253
|
*/
|
|
250
254
|
customerId?: string | null;
|
|
255
|
+
/**
|
|
256
|
+
* Device enrollment id for ChromeOS devices.
|
|
257
|
+
*/
|
|
258
|
+
deviceEnrollmentId?: string | null;
|
|
251
259
|
/**
|
|
252
260
|
* Device permanent id is returned in this field (for the machine response only).
|
|
253
261
|
*/
|
|
@@ -290,51 +298,6 @@ export declare namespace verifiedaccess_v2 {
|
|
|
290
298
|
constructor(context: APIRequestContext);
|
|
291
299
|
/**
|
|
292
300
|
* Generates a new challenge.
|
|
293
|
-
* @example
|
|
294
|
-
* ```js
|
|
295
|
-
* // Before running the sample:
|
|
296
|
-
* // - Enable the API at:
|
|
297
|
-
* // https://console.developers.google.com/apis/api/verifiedaccess.googleapis.com
|
|
298
|
-
* // - Login into gcloud by running:
|
|
299
|
-
* // `$ gcloud auth application-default login`
|
|
300
|
-
* // - Install the npm module by running:
|
|
301
|
-
* // `$ npm install googleapis`
|
|
302
|
-
*
|
|
303
|
-
* const {google} = require('googleapis');
|
|
304
|
-
* const verifiedaccess = google.verifiedaccess('v2');
|
|
305
|
-
*
|
|
306
|
-
* async function main() {
|
|
307
|
-
* const auth = new google.auth.GoogleAuth({
|
|
308
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
309
|
-
* scopes: ['https://www.googleapis.com/auth/verifiedaccess'],
|
|
310
|
-
* });
|
|
311
|
-
*
|
|
312
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
313
|
-
* const authClient = await auth.getClient();
|
|
314
|
-
* google.options({auth: authClient});
|
|
315
|
-
*
|
|
316
|
-
* // Do the magic
|
|
317
|
-
* const res = await verifiedaccess.challenge.generate({
|
|
318
|
-
* // Request body metadata
|
|
319
|
-
* requestBody: {
|
|
320
|
-
* // request body parameters
|
|
321
|
-
* // {}
|
|
322
|
-
* },
|
|
323
|
-
* });
|
|
324
|
-
* console.log(res.data);
|
|
325
|
-
*
|
|
326
|
-
* // Example response
|
|
327
|
-
* // {
|
|
328
|
-
* // "challenge": "my_challenge"
|
|
329
|
-
* // }
|
|
330
|
-
* }
|
|
331
|
-
*
|
|
332
|
-
* main().catch(e => {
|
|
333
|
-
* console.error(e);
|
|
334
|
-
* throw e;
|
|
335
|
-
* });
|
|
336
|
-
*
|
|
337
|
-
* ```
|
|
338
301
|
*
|
|
339
302
|
* @param params - Parameters for request
|
|
340
303
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -349,63 +312,6 @@ export declare namespace verifiedaccess_v2 {
|
|
|
349
312
|
generate(callback: BodyResponseCallback<Schema$Challenge>): void;
|
|
350
313
|
/**
|
|
351
314
|
* Verifies the challenge response.
|
|
352
|
-
* @example
|
|
353
|
-
* ```js
|
|
354
|
-
* // Before running the sample:
|
|
355
|
-
* // - Enable the API at:
|
|
356
|
-
* // https://console.developers.google.com/apis/api/verifiedaccess.googleapis.com
|
|
357
|
-
* // - Login into gcloud by running:
|
|
358
|
-
* // `$ gcloud auth application-default login`
|
|
359
|
-
* // - Install the npm module by running:
|
|
360
|
-
* // `$ npm install googleapis`
|
|
361
|
-
*
|
|
362
|
-
* const {google} = require('googleapis');
|
|
363
|
-
* const verifiedaccess = google.verifiedaccess('v2');
|
|
364
|
-
*
|
|
365
|
-
* async function main() {
|
|
366
|
-
* const auth = new google.auth.GoogleAuth({
|
|
367
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
368
|
-
* scopes: ['https://www.googleapis.com/auth/verifiedaccess'],
|
|
369
|
-
* });
|
|
370
|
-
*
|
|
371
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
372
|
-
* const authClient = await auth.getClient();
|
|
373
|
-
* google.options({auth: authClient});
|
|
374
|
-
*
|
|
375
|
-
* // Do the magic
|
|
376
|
-
* const res = await verifiedaccess.challenge.verify({
|
|
377
|
-
* // Request body metadata
|
|
378
|
-
* requestBody: {
|
|
379
|
-
* // request body parameters
|
|
380
|
-
* // {
|
|
381
|
-
* // "challengeResponse": "my_challengeResponse",
|
|
382
|
-
* // "expectedIdentity": "my_expectedIdentity"
|
|
383
|
-
* // }
|
|
384
|
-
* },
|
|
385
|
-
* });
|
|
386
|
-
* console.log(res.data);
|
|
387
|
-
*
|
|
388
|
-
* // Example response
|
|
389
|
-
* // {
|
|
390
|
-
* // "customerId": "my_customerId",
|
|
391
|
-
* // "devicePermanentId": "my_devicePermanentId",
|
|
392
|
-
* // "deviceSignal": "my_deviceSignal",
|
|
393
|
-
* // "deviceSignals": {},
|
|
394
|
-
* // "keyTrustLevel": "my_keyTrustLevel",
|
|
395
|
-
* // "profileCustomerId": "my_profileCustomerId",
|
|
396
|
-
* // "profileKeyTrustLevel": "my_profileKeyTrustLevel",
|
|
397
|
-
* // "signedPublicKeyAndChallenge": "my_signedPublicKeyAndChallenge",
|
|
398
|
-
* // "virtualDeviceId": "my_virtualDeviceId",
|
|
399
|
-
* // "virtualProfileId": "my_virtualProfileId"
|
|
400
|
-
* // }
|
|
401
|
-
* }
|
|
402
|
-
*
|
|
403
|
-
* main().catch(e => {
|
|
404
|
-
* console.error(e);
|
|
405
|
-
* throw e;
|
|
406
|
-
* });
|
|
407
|
-
*
|
|
408
|
-
* ```
|
|
409
315
|
*
|
|
410
316
|
* @param params - Parameters for request
|
|
411
317
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
package/build/v2.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v2.js","sourceRoot":"","sources":["../v2.ts"],"names":[],"mappings":";AAAA,4BAA4B;AAC5B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,gDAAgD;AAChD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;;;AAEjC,uDAAuD;AACvD,sDAAsD;AACtD,0DAA0D;AAC1D,oDAAoD;AACpD,4CAA4C;AAE5C,yDAe2B;AAG3B,IAAiB,iBAAiB,
|
|
1
|
+
{"version":3,"file":"v2.js","sourceRoot":"","sources":["../v2.ts"],"names":[],"mappings":";AAAA,4BAA4B;AAC5B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,gDAAgD;AAChD,EAAE;AAC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A,oCAAgB,EACd,UAAU,EACV,QAAyC,CAC1C,CAAC;aACH;iBAAM;gBACL,OAAO,IAAA,oCAAgB,EACrB,UAAU,CACX,CAAC;aACH;QACH,CAAC;KACF;IA7LY,oCAAkB,qBA6L9B,CAAA;AAeH,CAAC,EAngBgB,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAmgBjC"}
|
package/index.ts
CHANGED
|
@@ -31,7 +31,7 @@ export function verifiedaccess(
|
|
|
31
31
|
options: verifiedaccess_v2.Options
|
|
32
32
|
): verifiedaccess_v2.Verifiedaccess;
|
|
33
33
|
export function verifiedaccess<
|
|
34
|
-
T = verifiedaccess_v1.Verifiedaccess | verifiedaccess_v2.Verifiedaccess
|
|
34
|
+
T = verifiedaccess_v1.Verifiedaccess | verifiedaccess_v2.Verifiedaccess,
|
|
35
35
|
>(
|
|
36
36
|
this: GoogleConfigurable,
|
|
37
37
|
versionOrOptions:
|
package/package.json
CHANGED
package/v1.ts
CHANGED
|
@@ -197,52 +197,6 @@ export namespace verifiedaccess_v1 {
|
|
|
197
197
|
|
|
198
198
|
/**
|
|
199
199
|
* CreateChallenge API
|
|
200
|
-
* @example
|
|
201
|
-
* ```js
|
|
202
|
-
* // Before running the sample:
|
|
203
|
-
* // - Enable the API at:
|
|
204
|
-
* // https://console.developers.google.com/apis/api/verifiedaccess.googleapis.com
|
|
205
|
-
* // - Login into gcloud by running:
|
|
206
|
-
* // `$ gcloud auth application-default login`
|
|
207
|
-
* // - Install the npm module by running:
|
|
208
|
-
* // `$ npm install googleapis`
|
|
209
|
-
*
|
|
210
|
-
* const {google} = require('googleapis');
|
|
211
|
-
* const verifiedaccess = google.verifiedaccess('v1');
|
|
212
|
-
*
|
|
213
|
-
* async function main() {
|
|
214
|
-
* const auth = new google.auth.GoogleAuth({
|
|
215
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
216
|
-
* scopes: ['https://www.googleapis.com/auth/verifiedaccess'],
|
|
217
|
-
* });
|
|
218
|
-
*
|
|
219
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
220
|
-
* const authClient = await auth.getClient();
|
|
221
|
-
* google.options({auth: authClient});
|
|
222
|
-
*
|
|
223
|
-
* // Do the magic
|
|
224
|
-
* const res = await verifiedaccess.challenge.create({
|
|
225
|
-
* // Request body metadata
|
|
226
|
-
* requestBody: {
|
|
227
|
-
* // request body parameters
|
|
228
|
-
* // {}
|
|
229
|
-
* },
|
|
230
|
-
* });
|
|
231
|
-
* console.log(res.data);
|
|
232
|
-
*
|
|
233
|
-
* // Example response
|
|
234
|
-
* // {
|
|
235
|
-
* // "alternativeChallenge": {},
|
|
236
|
-
* // "challenge": {}
|
|
237
|
-
* // }
|
|
238
|
-
* }
|
|
239
|
-
*
|
|
240
|
-
* main().catch(e => {
|
|
241
|
-
* console.error(e);
|
|
242
|
-
* throw e;
|
|
243
|
-
* });
|
|
244
|
-
*
|
|
245
|
-
* ```
|
|
246
200
|
*
|
|
247
201
|
* @param params - Parameters for request
|
|
248
202
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -327,57 +281,6 @@ export namespace verifiedaccess_v1 {
|
|
|
327
281
|
|
|
328
282
|
/**
|
|
329
283
|
* VerifyChallengeResponse API
|
|
330
|
-
* @example
|
|
331
|
-
* ```js
|
|
332
|
-
* // Before running the sample:
|
|
333
|
-
* // - Enable the API at:
|
|
334
|
-
* // https://console.developers.google.com/apis/api/verifiedaccess.googleapis.com
|
|
335
|
-
* // - Login into gcloud by running:
|
|
336
|
-
* // `$ gcloud auth application-default login`
|
|
337
|
-
* // - Install the npm module by running:
|
|
338
|
-
* // `$ npm install googleapis`
|
|
339
|
-
*
|
|
340
|
-
* const {google} = require('googleapis');
|
|
341
|
-
* const verifiedaccess = google.verifiedaccess('v1');
|
|
342
|
-
*
|
|
343
|
-
* async function main() {
|
|
344
|
-
* const auth = new google.auth.GoogleAuth({
|
|
345
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
346
|
-
* scopes: ['https://www.googleapis.com/auth/verifiedaccess'],
|
|
347
|
-
* });
|
|
348
|
-
*
|
|
349
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
350
|
-
* const authClient = await auth.getClient();
|
|
351
|
-
* google.options({auth: authClient});
|
|
352
|
-
*
|
|
353
|
-
* // Do the magic
|
|
354
|
-
* const res = await verifiedaccess.challenge.verify({
|
|
355
|
-
* // Request body metadata
|
|
356
|
-
* requestBody: {
|
|
357
|
-
* // request body parameters
|
|
358
|
-
* // {
|
|
359
|
-
* // "challengeResponse": {},
|
|
360
|
-
* // "expectedIdentity": "my_expectedIdentity"
|
|
361
|
-
* // }
|
|
362
|
-
* },
|
|
363
|
-
* });
|
|
364
|
-
* console.log(res.data);
|
|
365
|
-
*
|
|
366
|
-
* // Example response
|
|
367
|
-
* // {
|
|
368
|
-
* // "deviceEnrollmentId": "my_deviceEnrollmentId",
|
|
369
|
-
* // "devicePermanentId": "my_devicePermanentId",
|
|
370
|
-
* // "signedPublicKeyAndChallenge": "my_signedPublicKeyAndChallenge",
|
|
371
|
-
* // "verificationOutput": "my_verificationOutput"
|
|
372
|
-
* // }
|
|
373
|
-
* }
|
|
374
|
-
*
|
|
375
|
-
* main().catch(e => {
|
|
376
|
-
* console.error(e);
|
|
377
|
-
* throw e;
|
|
378
|
-
* });
|
|
379
|
-
*
|
|
380
|
-
* ```
|
|
381
284
|
*
|
|
382
285
|
* @param params - Parameters for request
|
|
383
286
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
package/v2.ts
CHANGED
|
@@ -296,10 +296,18 @@ export namespace verifiedaccess_v2 {
|
|
|
296
296
|
* Result message for VerifiedAccess.VerifyChallengeResponse.
|
|
297
297
|
*/
|
|
298
298
|
export interface Schema$VerifyChallengeResponseResult {
|
|
299
|
+
/**
|
|
300
|
+
* Attested device ID (ADID).
|
|
301
|
+
*/
|
|
302
|
+
attestedDeviceId?: string | null;
|
|
299
303
|
/**
|
|
300
304
|
* Unique customer id that this device belongs to, as defined by the Google Admin SDK at https://developers.google.com/admin-sdk/directory/v1/guides/manage-customers
|
|
301
305
|
*/
|
|
302
306
|
customerId?: string | null;
|
|
307
|
+
/**
|
|
308
|
+
* Device enrollment id for ChromeOS devices.
|
|
309
|
+
*/
|
|
310
|
+
deviceEnrollmentId?: string | null;
|
|
303
311
|
/**
|
|
304
312
|
* Device permanent id is returned in this field (for the machine response only).
|
|
305
313
|
*/
|
|
@@ -346,51 +354,6 @@ export namespace verifiedaccess_v2 {
|
|
|
346
354
|
|
|
347
355
|
/**
|
|
348
356
|
* Generates a new challenge.
|
|
349
|
-
* @example
|
|
350
|
-
* ```js
|
|
351
|
-
* // Before running the sample:
|
|
352
|
-
* // - Enable the API at:
|
|
353
|
-
* // https://console.developers.google.com/apis/api/verifiedaccess.googleapis.com
|
|
354
|
-
* // - Login into gcloud by running:
|
|
355
|
-
* // `$ gcloud auth application-default login`
|
|
356
|
-
* // - Install the npm module by running:
|
|
357
|
-
* // `$ npm install googleapis`
|
|
358
|
-
*
|
|
359
|
-
* const {google} = require('googleapis');
|
|
360
|
-
* const verifiedaccess = google.verifiedaccess('v2');
|
|
361
|
-
*
|
|
362
|
-
* async function main() {
|
|
363
|
-
* const auth = new google.auth.GoogleAuth({
|
|
364
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
365
|
-
* scopes: ['https://www.googleapis.com/auth/verifiedaccess'],
|
|
366
|
-
* });
|
|
367
|
-
*
|
|
368
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
369
|
-
* const authClient = await auth.getClient();
|
|
370
|
-
* google.options({auth: authClient});
|
|
371
|
-
*
|
|
372
|
-
* // Do the magic
|
|
373
|
-
* const res = await verifiedaccess.challenge.generate({
|
|
374
|
-
* // Request body metadata
|
|
375
|
-
* requestBody: {
|
|
376
|
-
* // request body parameters
|
|
377
|
-
* // {}
|
|
378
|
-
* },
|
|
379
|
-
* });
|
|
380
|
-
* console.log(res.data);
|
|
381
|
-
*
|
|
382
|
-
* // Example response
|
|
383
|
-
* // {
|
|
384
|
-
* // "challenge": "my_challenge"
|
|
385
|
-
* // }
|
|
386
|
-
* }
|
|
387
|
-
*
|
|
388
|
-
* main().catch(e => {
|
|
389
|
-
* console.error(e);
|
|
390
|
-
* throw e;
|
|
391
|
-
* });
|
|
392
|
-
*
|
|
393
|
-
* ```
|
|
394
357
|
*
|
|
395
358
|
* @param params - Parameters for request
|
|
396
359
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -479,63 +442,6 @@ export namespace verifiedaccess_v2 {
|
|
|
479
442
|
|
|
480
443
|
/**
|
|
481
444
|
* Verifies the challenge response.
|
|
482
|
-
* @example
|
|
483
|
-
* ```js
|
|
484
|
-
* // Before running the sample:
|
|
485
|
-
* // - Enable the API at:
|
|
486
|
-
* // https://console.developers.google.com/apis/api/verifiedaccess.googleapis.com
|
|
487
|
-
* // - Login into gcloud by running:
|
|
488
|
-
* // `$ gcloud auth application-default login`
|
|
489
|
-
* // - Install the npm module by running:
|
|
490
|
-
* // `$ npm install googleapis`
|
|
491
|
-
*
|
|
492
|
-
* const {google} = require('googleapis');
|
|
493
|
-
* const verifiedaccess = google.verifiedaccess('v2');
|
|
494
|
-
*
|
|
495
|
-
* async function main() {
|
|
496
|
-
* const auth = new google.auth.GoogleAuth({
|
|
497
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
498
|
-
* scopes: ['https://www.googleapis.com/auth/verifiedaccess'],
|
|
499
|
-
* });
|
|
500
|
-
*
|
|
501
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
502
|
-
* const authClient = await auth.getClient();
|
|
503
|
-
* google.options({auth: authClient});
|
|
504
|
-
*
|
|
505
|
-
* // Do the magic
|
|
506
|
-
* const res = await verifiedaccess.challenge.verify({
|
|
507
|
-
* // Request body metadata
|
|
508
|
-
* requestBody: {
|
|
509
|
-
* // request body parameters
|
|
510
|
-
* // {
|
|
511
|
-
* // "challengeResponse": "my_challengeResponse",
|
|
512
|
-
* // "expectedIdentity": "my_expectedIdentity"
|
|
513
|
-
* // }
|
|
514
|
-
* },
|
|
515
|
-
* });
|
|
516
|
-
* console.log(res.data);
|
|
517
|
-
*
|
|
518
|
-
* // Example response
|
|
519
|
-
* // {
|
|
520
|
-
* // "customerId": "my_customerId",
|
|
521
|
-
* // "devicePermanentId": "my_devicePermanentId",
|
|
522
|
-
* // "deviceSignal": "my_deviceSignal",
|
|
523
|
-
* // "deviceSignals": {},
|
|
524
|
-
* // "keyTrustLevel": "my_keyTrustLevel",
|
|
525
|
-
* // "profileCustomerId": "my_profileCustomerId",
|
|
526
|
-
* // "profileKeyTrustLevel": "my_profileKeyTrustLevel",
|
|
527
|
-
* // "signedPublicKeyAndChallenge": "my_signedPublicKeyAndChallenge",
|
|
528
|
-
* // "virtualDeviceId": "my_virtualDeviceId",
|
|
529
|
-
* // "virtualProfileId": "my_virtualProfileId"
|
|
530
|
-
* // }
|
|
531
|
-
* }
|
|
532
|
-
*
|
|
533
|
-
* main().catch(e => {
|
|
534
|
-
* console.error(e);
|
|
535
|
-
* throw e;
|
|
536
|
-
* });
|
|
537
|
-
*
|
|
538
|
-
* ```
|
|
539
445
|
*
|
|
540
446
|
* @param params - Parameters for request
|
|
541
447
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|