@googleapis/verifiedaccess 3.9.0 → 5.0.1
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 +44 -0
- package/build/index.d.ts +1 -1
- package/build/index.js.map +1 -1
- package/build/v1.d.ts +111 -5
- package/build/v1.js.map +1 -1
- package/build/v2.d.ts +118 -5
- package/build/v2.js.map +1 -1
- package/index.ts +0 -1
- package/package.json +2 -2
- package/v1.ts +117 -8
- package/v2.ts +124 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,49 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [5.0.1](https://github.com/googleapis/google-api-nodejs-client/compare/verifiedaccess-v5.0.0...verifiedaccess-v5.0.1) (2025-07-08)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* **verifiedaccess:** update the API ([2c335dd](https://github.com/googleapis/google-api-nodejs-client/commit/2c335dd6d9dc52d1811979caddd17cd664306e29))
|
|
9
|
+
* **verifiedaccess:** update the API ([49aad9a](https://github.com/googleapis/google-api-nodejs-client/commit/49aad9ae685ad9994436678027a2626b8832d8da))
|
|
10
|
+
|
|
11
|
+
## [5.0.0](https://github.com/googleapis/google-api-nodejs-client/compare/verifiedaccess-v4.0.1...verifiedaccess-v5.0.0) (2025-06-30)
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### ⚠ BREAKING CHANGES
|
|
15
|
+
|
|
16
|
+
* upgrade to node 18
|
|
17
|
+
|
|
18
|
+
### Features
|
|
19
|
+
|
|
20
|
+
* upgrade to node 18 ([682fbb8](https://github.com/googleapis/google-api-nodejs-client/commit/682fbb869189ae92b3e9a194d37d0548af0c1f92))
|
|
21
|
+
* **verifiedaccess:** update the API ([fbd86e4](https://github.com/googleapis/google-api-nodejs-client/commit/fbd86e49504ba79a4458dc3475ab27a694afb0e0))
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
### Bug Fixes
|
|
25
|
+
|
|
26
|
+
* **deps:** upgrade googleapis-common to 8.0.2-rc ([f4b0990](https://github.com/googleapis/google-api-nodejs-client/commit/f4b099071040cfbcfe4a2e7d487d45ee93b369e0))
|
|
27
|
+
* **verifiedaccess:** update the API ([49aad9a](https://github.com/googleapis/google-api-nodejs-client/commit/49aad9ae685ad9994436678027a2626b8832d8da))
|
|
28
|
+
|
|
29
|
+
## [4.0.1](https://github.com/googleapis/google-api-nodejs-client/compare/verifiedaccess-v4.0.0...verifiedaccess-v4.0.1) (2025-06-04)
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
### Bug Fixes
|
|
33
|
+
|
|
34
|
+
* **deps:** upgrade googleapis-common to 8.0.2-rc ([f4b0990](https://github.com/googleapis/google-api-nodejs-client/commit/f4b099071040cfbcfe4a2e7d487d45ee93b369e0))
|
|
35
|
+
|
|
36
|
+
## [4.0.0](https://github.com/googleapis/google-api-nodejs-client/compare/verifiedaccess-v3.9.0...verifiedaccess-v4.0.0) (2025-05-29)
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
### ⚠ BREAKING CHANGES
|
|
40
|
+
|
|
41
|
+
* upgrade to node 18
|
|
42
|
+
|
|
43
|
+
### Features
|
|
44
|
+
|
|
45
|
+
* upgrade to node 18 ([682fbb8](https://github.com/googleapis/google-api-nodejs-client/commit/682fbb869189ae92b3e9a194d37d0548af0c1f92))
|
|
46
|
+
|
|
3
47
|
## [3.9.0](https://github.com/googleapis/google-api-nodejs-client/compare/verifiedaccess-v3.8.0...verifiedaccess-v3.9.0) (2025-05-05)
|
|
4
48
|
|
|
5
49
|
|
package/build/index.d.ts
CHANGED
|
@@ -14,4 +14,4 @@ declare const auth: AuthPlus;
|
|
|
14
14
|
export { auth };
|
|
15
15
|
export { verifiedaccess_v1 };
|
|
16
16
|
export { verifiedaccess_v2 };
|
|
17
|
-
export { AuthPlus, GlobalOptions, APIRequestContext, GoogleConfigurable, StreamMethodOptions,
|
|
17
|
+
export { AuthPlus, GlobalOptions, APIRequestContext, GoogleConfigurable, StreamMethodOptions, MethodOptions, BodyResponseCallback, } from 'googleapis-common';
|
package/build/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.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,kCAAkC;AAElC,yDAAuE;AACvE,6BAAuC;AA+B/B,kGA/BA,sBAAiB,OA+BA;AA9BzB,6BAAuC;AA+B/B,kGA/BA,sBAAiB,OA+BA;AA7BZ,QAAA,QAAQ,GAAG;IACtB,EAAE,EAAE,sBAAiB,CAAC,cAAc;IACpC,EAAE,EAAE,sBAAiB,CAAC,cAAc;CACrC,CAAC;AAUF,SAAgB,cAAc,CAI5B,gBAI6B;IAE7B,OAAO,IAAA,0BAAM,EAAI,gBAAgB,EAAE,gBAAgB,EAAE,gBAAQ,EAAE,IAAI,CAAC,CAAC;AACvE,CAAC;AAXD,wCAWC;AAED,MAAM,IAAI,GAAG,IAAI,4BAAQ,EAAE,CAAC;AACpB,oBAAI;AAGZ,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.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,kCAAkC;AAElC,yDAAuE;AACvE,6BAAuC;AA+B/B,kGA/BA,sBAAiB,OA+BA;AA9BzB,6BAAuC;AA+B/B,kGA/BA,sBAAiB,OA+BA;AA7BZ,QAAA,QAAQ,GAAG;IACtB,EAAE,EAAE,sBAAiB,CAAC,cAAc;IACpC,EAAE,EAAE,sBAAiB,CAAC,cAAc;CACrC,CAAC;AAUF,SAAgB,cAAc,CAI5B,gBAI6B;IAE7B,OAAO,IAAA,0BAAM,EAAI,gBAAgB,EAAE,gBAAgB,EAAE,gBAAQ,EAAE,IAAI,CAAC,CAAC;AACvE,CAAC;AAXD,wCAWC;AAED,MAAM,IAAI,GAAG,IAAI,4BAAQ,EAAE,CAAC;AACpB,oBAAI;AAGZ,uDAQ2B;AAPzB,6GAAA,QAAQ,OAAA"}
|
package/build/v1.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
|
-
import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient,
|
|
2
|
+
import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient, GaxiosResponseWithHTTP2, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common';
|
|
3
3
|
import { Readable } from 'stream';
|
|
4
4
|
export declare namespace verifiedaccess_v1 {
|
|
5
5
|
export interface Options extends GlobalOptions {
|
|
@@ -145,28 +145,134 @@ export declare namespace verifiedaccess_v1 {
|
|
|
145
145
|
constructor(context: APIRequestContext);
|
|
146
146
|
/**
|
|
147
147
|
* CreateChallenge API
|
|
148
|
+
* @example
|
|
149
|
+
* ```js
|
|
150
|
+
* // Before running the sample:
|
|
151
|
+
* // - Enable the API at:
|
|
152
|
+
* // https://console.developers.google.com/apis/api/verifiedaccess.googleapis.com
|
|
153
|
+
* // - Login into gcloud by running:
|
|
154
|
+
* // ```sh
|
|
155
|
+
* // $ gcloud auth application-default login
|
|
156
|
+
* // ```
|
|
157
|
+
* // - Install the npm module by running:
|
|
158
|
+
* // ```sh
|
|
159
|
+
* // $ npm install googleapis
|
|
160
|
+
* // ```
|
|
161
|
+
*
|
|
162
|
+
* const {google} = require('googleapis');
|
|
163
|
+
* const verifiedaccess = google.verifiedaccess('v1');
|
|
164
|
+
*
|
|
165
|
+
* async function main() {
|
|
166
|
+
* const auth = new google.auth.GoogleAuth({
|
|
167
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
168
|
+
* scopes: ['https://www.googleapis.com/auth/verifiedaccess'],
|
|
169
|
+
* });
|
|
170
|
+
*
|
|
171
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
172
|
+
* const authClient = await auth.getClient();
|
|
173
|
+
* google.options({auth: authClient});
|
|
174
|
+
*
|
|
175
|
+
* // Do the magic
|
|
176
|
+
* const res = await verifiedaccess.challenge.create({
|
|
177
|
+
* // Request body metadata
|
|
178
|
+
* requestBody: {
|
|
179
|
+
* // request body parameters
|
|
180
|
+
* // {}
|
|
181
|
+
* },
|
|
182
|
+
* });
|
|
183
|
+
* console.log(res.data);
|
|
184
|
+
*
|
|
185
|
+
* // Example response
|
|
186
|
+
* // {
|
|
187
|
+
* // "alternativeChallenge": {},
|
|
188
|
+
* // "challenge": {}
|
|
189
|
+
* // }
|
|
190
|
+
* }
|
|
191
|
+
*
|
|
192
|
+
* main().catch(e => {
|
|
193
|
+
* console.error(e);
|
|
194
|
+
* throw e;
|
|
195
|
+
* });
|
|
196
|
+
*
|
|
197
|
+
* ```
|
|
148
198
|
*
|
|
149
199
|
* @param params - Parameters for request
|
|
150
200
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
151
201
|
* @param callback - Optional callback that handles the response.
|
|
152
202
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
153
203
|
*/
|
|
154
|
-
create(params: Params$Resource$Challenge$Create, options: StreamMethodOptions):
|
|
155
|
-
create(params?: Params$Resource$Challenge$Create, options?: MethodOptions):
|
|
204
|
+
create(params: Params$Resource$Challenge$Create, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
205
|
+
create(params?: Params$Resource$Challenge$Create, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Challenge>>;
|
|
156
206
|
create(params: Params$Resource$Challenge$Create, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
157
207
|
create(params: Params$Resource$Challenge$Create, options: MethodOptions | BodyResponseCallback<Schema$Challenge>, callback: BodyResponseCallback<Schema$Challenge>): void;
|
|
158
208
|
create(params: Params$Resource$Challenge$Create, callback: BodyResponseCallback<Schema$Challenge>): void;
|
|
159
209
|
create(callback: BodyResponseCallback<Schema$Challenge>): void;
|
|
160
210
|
/**
|
|
161
211
|
* VerifyChallengeResponse API
|
|
212
|
+
* @example
|
|
213
|
+
* ```js
|
|
214
|
+
* // Before running the sample:
|
|
215
|
+
* // - Enable the API at:
|
|
216
|
+
* // https://console.developers.google.com/apis/api/verifiedaccess.googleapis.com
|
|
217
|
+
* // - Login into gcloud by running:
|
|
218
|
+
* // ```sh
|
|
219
|
+
* // $ gcloud auth application-default login
|
|
220
|
+
* // ```
|
|
221
|
+
* // - Install the npm module by running:
|
|
222
|
+
* // ```sh
|
|
223
|
+
* // $ npm install googleapis
|
|
224
|
+
* // ```
|
|
225
|
+
*
|
|
226
|
+
* const {google} = require('googleapis');
|
|
227
|
+
* const verifiedaccess = google.verifiedaccess('v1');
|
|
228
|
+
*
|
|
229
|
+
* async function main() {
|
|
230
|
+
* const auth = new google.auth.GoogleAuth({
|
|
231
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
232
|
+
* scopes: ['https://www.googleapis.com/auth/verifiedaccess'],
|
|
233
|
+
* });
|
|
234
|
+
*
|
|
235
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
236
|
+
* const authClient = await auth.getClient();
|
|
237
|
+
* google.options({auth: authClient});
|
|
238
|
+
*
|
|
239
|
+
* // Do the magic
|
|
240
|
+
* const res = await verifiedaccess.challenge.verify({
|
|
241
|
+
* // Request body metadata
|
|
242
|
+
* requestBody: {
|
|
243
|
+
* // request body parameters
|
|
244
|
+
* // {
|
|
245
|
+
* // "challengeResponse": {},
|
|
246
|
+
* // "expectedIdentity": "my_expectedIdentity"
|
|
247
|
+
* // }
|
|
248
|
+
* },
|
|
249
|
+
* });
|
|
250
|
+
* console.log(res.data);
|
|
251
|
+
*
|
|
252
|
+
* // Example response
|
|
253
|
+
* // {
|
|
254
|
+
* // "attestedDeviceId": "my_attestedDeviceId",
|
|
255
|
+
* // "deviceEnrollmentId": "my_deviceEnrollmentId",
|
|
256
|
+
* // "devicePermanentId": "my_devicePermanentId",
|
|
257
|
+
* // "signedPublicKeyAndChallenge": "my_signedPublicKeyAndChallenge",
|
|
258
|
+
* // "verificationOutput": "my_verificationOutput"
|
|
259
|
+
* // }
|
|
260
|
+
* }
|
|
261
|
+
*
|
|
262
|
+
* main().catch(e => {
|
|
263
|
+
* console.error(e);
|
|
264
|
+
* throw e;
|
|
265
|
+
* });
|
|
266
|
+
*
|
|
267
|
+
* ```
|
|
162
268
|
*
|
|
163
269
|
* @param params - Parameters for request
|
|
164
270
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
165
271
|
* @param callback - Optional callback that handles the response.
|
|
166
272
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
167
273
|
*/
|
|
168
|
-
verify(params: Params$Resource$Challenge$Verify, options: StreamMethodOptions):
|
|
169
|
-
verify(params?: Params$Resource$Challenge$Verify, options?: MethodOptions):
|
|
274
|
+
verify(params: Params$Resource$Challenge$Verify, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
275
|
+
verify(params?: Params$Resource$Challenge$Verify, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$VerifyChallengeResponseResult>>;
|
|
170
276
|
verify(params: Params$Resource$Challenge$Verify, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
171
277
|
verify(params: Params$Resource$Challenge$Verify, options: MethodOptions | BodyResponseCallback<Schema$VerifyChallengeResponseResult>, callback: BodyResponseCallback<Schema$VerifyChallengeResponseResult>): void;
|
|
172
278
|
verify(params: Params$Resource$Challenge$Verify, callback: BodyResponseCallback<Schema$VerifyChallengeResponseResult>): void;
|
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,CAodjC;AApdD,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;IAuED,MAAa,kBAAkB;QAE7B,YAAY,OAA0B;YACpC,I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AE,CAAkB,CAAC;YAEzD,IAAI,OAAO,gBAAgB,KAAK,UAAU,EAAE;gBAC1C,QAAQ,GAAG,gBAAgB,CAAC;gBAC5B,MAAM,GAAG,EAAsC,CAAC;gBAChD,OAAO,GAAG,EAAE,CAAC;aACd;YAED,IAAI,OAAO,iBAAiB,KAAK,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;oBACd,UAAU,EAAE,EAAE;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;IAxSY,oCAAkB,qBAwS9B,CAAA;AAcH,CAAC,EApdgB,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAodjC"}
|
package/build/v2.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
|
-
import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient,
|
|
2
|
+
import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient, GaxiosResponseWithHTTP2, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common';
|
|
3
3
|
import { Readable } from 'stream';
|
|
4
4
|
export declare namespace verifiedaccess_v2 {
|
|
5
5
|
export interface Options extends GlobalOptions {
|
|
@@ -319,28 +319,141 @@ export declare namespace verifiedaccess_v2 {
|
|
|
319
319
|
constructor(context: APIRequestContext);
|
|
320
320
|
/**
|
|
321
321
|
* Generates a new challenge.
|
|
322
|
+
* @example
|
|
323
|
+
* ```js
|
|
324
|
+
* // Before running the sample:
|
|
325
|
+
* // - Enable the API at:
|
|
326
|
+
* // https://console.developers.google.com/apis/api/verifiedaccess.googleapis.com
|
|
327
|
+
* // - Login into gcloud by running:
|
|
328
|
+
* // ```sh
|
|
329
|
+
* // $ gcloud auth application-default login
|
|
330
|
+
* // ```
|
|
331
|
+
* // - Install the npm module by running:
|
|
332
|
+
* // ```sh
|
|
333
|
+
* // $ npm install googleapis
|
|
334
|
+
* // ```
|
|
335
|
+
*
|
|
336
|
+
* const {google} = require('googleapis');
|
|
337
|
+
* const verifiedaccess = google.verifiedaccess('v2');
|
|
338
|
+
*
|
|
339
|
+
* async function main() {
|
|
340
|
+
* const auth = new google.auth.GoogleAuth({
|
|
341
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
342
|
+
* scopes: ['https://www.googleapis.com/auth/verifiedaccess'],
|
|
343
|
+
* });
|
|
344
|
+
*
|
|
345
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
346
|
+
* const authClient = await auth.getClient();
|
|
347
|
+
* google.options({auth: authClient});
|
|
348
|
+
*
|
|
349
|
+
* // Do the magic
|
|
350
|
+
* const res = await verifiedaccess.challenge.generate({
|
|
351
|
+
* // Request body metadata
|
|
352
|
+
* requestBody: {
|
|
353
|
+
* // request body parameters
|
|
354
|
+
* // {}
|
|
355
|
+
* },
|
|
356
|
+
* });
|
|
357
|
+
* console.log(res.data);
|
|
358
|
+
*
|
|
359
|
+
* // Example response
|
|
360
|
+
* // {
|
|
361
|
+
* // "challenge": "my_challenge"
|
|
362
|
+
* // }
|
|
363
|
+
* }
|
|
364
|
+
*
|
|
365
|
+
* main().catch(e => {
|
|
366
|
+
* console.error(e);
|
|
367
|
+
* throw e;
|
|
368
|
+
* });
|
|
369
|
+
*
|
|
370
|
+
* ```
|
|
322
371
|
*
|
|
323
372
|
* @param params - Parameters for request
|
|
324
373
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
325
374
|
* @param callback - Optional callback that handles the response.
|
|
326
375
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
327
376
|
*/
|
|
328
|
-
generate(params: Params$Resource$Challenge$Generate, options: StreamMethodOptions):
|
|
329
|
-
generate(params?: Params$Resource$Challenge$Generate, options?: MethodOptions):
|
|
377
|
+
generate(params: Params$Resource$Challenge$Generate, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
378
|
+
generate(params?: Params$Resource$Challenge$Generate, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Challenge>>;
|
|
330
379
|
generate(params: Params$Resource$Challenge$Generate, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
331
380
|
generate(params: Params$Resource$Challenge$Generate, options: MethodOptions | BodyResponseCallback<Schema$Challenge>, callback: BodyResponseCallback<Schema$Challenge>): void;
|
|
332
381
|
generate(params: Params$Resource$Challenge$Generate, callback: BodyResponseCallback<Schema$Challenge>): void;
|
|
333
382
|
generate(callback: BodyResponseCallback<Schema$Challenge>): void;
|
|
334
383
|
/**
|
|
335
384
|
* Verifies the challenge response.
|
|
385
|
+
* @example
|
|
386
|
+
* ```js
|
|
387
|
+
* // Before running the sample:
|
|
388
|
+
* // - Enable the API at:
|
|
389
|
+
* // https://console.developers.google.com/apis/api/verifiedaccess.googleapis.com
|
|
390
|
+
* // - Login into gcloud by running:
|
|
391
|
+
* // ```sh
|
|
392
|
+
* // $ gcloud auth application-default login
|
|
393
|
+
* // ```
|
|
394
|
+
* // - Install the npm module by running:
|
|
395
|
+
* // ```sh
|
|
396
|
+
* // $ npm install googleapis
|
|
397
|
+
* // ```
|
|
398
|
+
*
|
|
399
|
+
* const {google} = require('googleapis');
|
|
400
|
+
* const verifiedaccess = google.verifiedaccess('v2');
|
|
401
|
+
*
|
|
402
|
+
* async function main() {
|
|
403
|
+
* const auth = new google.auth.GoogleAuth({
|
|
404
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
405
|
+
* scopes: ['https://www.googleapis.com/auth/verifiedaccess'],
|
|
406
|
+
* });
|
|
407
|
+
*
|
|
408
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
409
|
+
* const authClient = await auth.getClient();
|
|
410
|
+
* google.options({auth: authClient});
|
|
411
|
+
*
|
|
412
|
+
* // Do the magic
|
|
413
|
+
* const res = await verifiedaccess.challenge.verify({
|
|
414
|
+
* // Request body metadata
|
|
415
|
+
* requestBody: {
|
|
416
|
+
* // request body parameters
|
|
417
|
+
* // {
|
|
418
|
+
* // "challengeResponse": "my_challengeResponse",
|
|
419
|
+
* // "expectedIdentity": "my_expectedIdentity"
|
|
420
|
+
* // }
|
|
421
|
+
* },
|
|
422
|
+
* });
|
|
423
|
+
* console.log(res.data);
|
|
424
|
+
*
|
|
425
|
+
* // Example response
|
|
426
|
+
* // {
|
|
427
|
+
* // "attestedDeviceId": "my_attestedDeviceId",
|
|
428
|
+
* // "customerId": "my_customerId",
|
|
429
|
+
* // "deviceEnrollmentId": "my_deviceEnrollmentId",
|
|
430
|
+
* // "devicePermanentId": "my_devicePermanentId",
|
|
431
|
+
* // "deviceSignal": "my_deviceSignal",
|
|
432
|
+
* // "deviceSignals": {},
|
|
433
|
+
* // "keyTrustLevel": "my_keyTrustLevel",
|
|
434
|
+
* // "profileCustomerId": "my_profileCustomerId",
|
|
435
|
+
* // "profileKeyTrustLevel": "my_profileKeyTrustLevel",
|
|
436
|
+
* // "profilePermanentId": "my_profilePermanentId",
|
|
437
|
+
* // "signedPublicKeyAndChallenge": "my_signedPublicKeyAndChallenge",
|
|
438
|
+
* // "virtualDeviceId": "my_virtualDeviceId",
|
|
439
|
+
* // "virtualProfileId": "my_virtualProfileId"
|
|
440
|
+
* // }
|
|
441
|
+
* }
|
|
442
|
+
*
|
|
443
|
+
* main().catch(e => {
|
|
444
|
+
* console.error(e);
|
|
445
|
+
* throw e;
|
|
446
|
+
* });
|
|
447
|
+
*
|
|
448
|
+
* ```
|
|
336
449
|
*
|
|
337
450
|
* @param params - Parameters for request
|
|
338
451
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
339
452
|
* @param callback - Optional callback that handles the response.
|
|
340
453
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
341
454
|
*/
|
|
342
|
-
verify(params: Params$Resource$Challenge$Verify, options: StreamMethodOptions):
|
|
343
|
-
verify(params?: Params$Resource$Challenge$Verify, options?: MethodOptions):
|
|
455
|
+
verify(params: Params$Resource$Challenge$Verify, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
456
|
+
verify(params?: Params$Resource$Challenge$Verify, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$VerifyChallengeResponseResult>>;
|
|
344
457
|
verify(params: Params$Resource$Challenge$Verify, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
345
458
|
verify(params: Params$Resource$Challenge$Verify, options: MethodOptions | BodyResponseCallback<Schema$VerifyChallengeResponseResult>, callback: BodyResponseCallback<Schema$VerifyChallengeResponseResult>): void;
|
|
346
459
|
verify(params: Params$Resource$Challenge$Verify, callback: BodyResponseCallback<Schema$VerifyChallengeResponseResult>): void;
|
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,sE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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;oBACd,UAAU,EAAE,EAAE;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;IAnTY,oCAAkB,qBAmT9B,CAAA;AAeH,CAAC,EA9oBgB,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QA8oBjC"}
|
package/index.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@googleapis/verifiedaccess",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.1",
|
|
4
4
|
"description": "verifiedaccess",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"types": "build/index.d.ts",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"webpack": "webpack"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"googleapis-common": "^
|
|
31
|
+
"googleapis-common": "^8.0.2-rc.0"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@microsoft/api-documenter": "^7.8.10",
|
package/v1.ts
CHANGED
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
Compute,
|
|
24
24
|
UserRefreshClient,
|
|
25
25
|
BaseExternalAccountClient,
|
|
26
|
-
|
|
26
|
+
GaxiosResponseWithHTTP2,
|
|
27
27
|
GoogleConfigurable,
|
|
28
28
|
createAPIRequest,
|
|
29
29
|
MethodOptions,
|
|
@@ -201,6 +201,56 @@ export namespace verifiedaccess_v1 {
|
|
|
201
201
|
|
|
202
202
|
/**
|
|
203
203
|
* CreateChallenge 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
|
+
* // ```sh
|
|
211
|
+
* // $ gcloud auth application-default login
|
|
212
|
+
* // ```
|
|
213
|
+
* // - Install the npm module by running:
|
|
214
|
+
* // ```sh
|
|
215
|
+
* // $ npm install googleapis
|
|
216
|
+
* // ```
|
|
217
|
+
*
|
|
218
|
+
* const {google} = require('googleapis');
|
|
219
|
+
* const verifiedaccess = google.verifiedaccess('v1');
|
|
220
|
+
*
|
|
221
|
+
* async function main() {
|
|
222
|
+
* const auth = new google.auth.GoogleAuth({
|
|
223
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
224
|
+
* scopes: ['https://www.googleapis.com/auth/verifiedaccess'],
|
|
225
|
+
* });
|
|
226
|
+
*
|
|
227
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
228
|
+
* const authClient = await auth.getClient();
|
|
229
|
+
* google.options({auth: authClient});
|
|
230
|
+
*
|
|
231
|
+
* // Do the magic
|
|
232
|
+
* const res = await verifiedaccess.challenge.create({
|
|
233
|
+
* // Request body metadata
|
|
234
|
+
* requestBody: {
|
|
235
|
+
* // request body parameters
|
|
236
|
+
* // {}
|
|
237
|
+
* },
|
|
238
|
+
* });
|
|
239
|
+
* console.log(res.data);
|
|
240
|
+
*
|
|
241
|
+
* // Example response
|
|
242
|
+
* // {
|
|
243
|
+
* // "alternativeChallenge": {},
|
|
244
|
+
* // "challenge": {}
|
|
245
|
+
* // }
|
|
246
|
+
* }
|
|
247
|
+
*
|
|
248
|
+
* main().catch(e => {
|
|
249
|
+
* console.error(e);
|
|
250
|
+
* throw e;
|
|
251
|
+
* });
|
|
252
|
+
*
|
|
253
|
+
* ```
|
|
204
254
|
*
|
|
205
255
|
* @param params - Parameters for request
|
|
206
256
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -210,11 +260,11 @@ export namespace verifiedaccess_v1 {
|
|
|
210
260
|
create(
|
|
211
261
|
params: Params$Resource$Challenge$Create,
|
|
212
262
|
options: StreamMethodOptions
|
|
213
|
-
):
|
|
263
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
214
264
|
create(
|
|
215
265
|
params?: Params$Resource$Challenge$Create,
|
|
216
266
|
options?: MethodOptions
|
|
217
|
-
):
|
|
267
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$Challenge>>;
|
|
218
268
|
create(
|
|
219
269
|
params: Params$Resource$Challenge$Create,
|
|
220
270
|
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
@@ -243,7 +293,10 @@ export namespace verifiedaccess_v1 {
|
|
|
243
293
|
callback?:
|
|
244
294
|
| BodyResponseCallback<Schema$Challenge>
|
|
245
295
|
| BodyResponseCallback<Readable>
|
|
246
|
-
):
|
|
296
|
+
):
|
|
297
|
+
| void
|
|
298
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$Challenge>>
|
|
299
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
247
300
|
let params = (paramsOrCallback || {}) as Params$Resource$Challenge$Create;
|
|
248
301
|
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
249
302
|
|
|
@@ -286,6 +339,62 @@ export namespace verifiedaccess_v1 {
|
|
|
286
339
|
|
|
287
340
|
/**
|
|
288
341
|
* VerifyChallengeResponse API
|
|
342
|
+
* @example
|
|
343
|
+
* ```js
|
|
344
|
+
* // Before running the sample:
|
|
345
|
+
* // - Enable the API at:
|
|
346
|
+
* // https://console.developers.google.com/apis/api/verifiedaccess.googleapis.com
|
|
347
|
+
* // - Login into gcloud by running:
|
|
348
|
+
* // ```sh
|
|
349
|
+
* // $ gcloud auth application-default login
|
|
350
|
+
* // ```
|
|
351
|
+
* // - Install the npm module by running:
|
|
352
|
+
* // ```sh
|
|
353
|
+
* // $ npm install googleapis
|
|
354
|
+
* // ```
|
|
355
|
+
*
|
|
356
|
+
* const {google} = require('googleapis');
|
|
357
|
+
* const verifiedaccess = google.verifiedaccess('v1');
|
|
358
|
+
*
|
|
359
|
+
* async function main() {
|
|
360
|
+
* const auth = new google.auth.GoogleAuth({
|
|
361
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
362
|
+
* scopes: ['https://www.googleapis.com/auth/verifiedaccess'],
|
|
363
|
+
* });
|
|
364
|
+
*
|
|
365
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
366
|
+
* const authClient = await auth.getClient();
|
|
367
|
+
* google.options({auth: authClient});
|
|
368
|
+
*
|
|
369
|
+
* // Do the magic
|
|
370
|
+
* const res = await verifiedaccess.challenge.verify({
|
|
371
|
+
* // Request body metadata
|
|
372
|
+
* requestBody: {
|
|
373
|
+
* // request body parameters
|
|
374
|
+
* // {
|
|
375
|
+
* // "challengeResponse": {},
|
|
376
|
+
* // "expectedIdentity": "my_expectedIdentity"
|
|
377
|
+
* // }
|
|
378
|
+
* },
|
|
379
|
+
* });
|
|
380
|
+
* console.log(res.data);
|
|
381
|
+
*
|
|
382
|
+
* // Example response
|
|
383
|
+
* // {
|
|
384
|
+
* // "attestedDeviceId": "my_attestedDeviceId",
|
|
385
|
+
* // "deviceEnrollmentId": "my_deviceEnrollmentId",
|
|
386
|
+
* // "devicePermanentId": "my_devicePermanentId",
|
|
387
|
+
* // "signedPublicKeyAndChallenge": "my_signedPublicKeyAndChallenge",
|
|
388
|
+
* // "verificationOutput": "my_verificationOutput"
|
|
389
|
+
* // }
|
|
390
|
+
* }
|
|
391
|
+
*
|
|
392
|
+
* main().catch(e => {
|
|
393
|
+
* console.error(e);
|
|
394
|
+
* throw e;
|
|
395
|
+
* });
|
|
396
|
+
*
|
|
397
|
+
* ```
|
|
289
398
|
*
|
|
290
399
|
* @param params - Parameters for request
|
|
291
400
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -295,11 +404,11 @@ export namespace verifiedaccess_v1 {
|
|
|
295
404
|
verify(
|
|
296
405
|
params: Params$Resource$Challenge$Verify,
|
|
297
406
|
options: StreamMethodOptions
|
|
298
|
-
):
|
|
407
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
299
408
|
verify(
|
|
300
409
|
params?: Params$Resource$Challenge$Verify,
|
|
301
410
|
options?: MethodOptions
|
|
302
|
-
):
|
|
411
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$VerifyChallengeResponseResult>>;
|
|
303
412
|
verify(
|
|
304
413
|
params: Params$Resource$Challenge$Verify,
|
|
305
414
|
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
@@ -334,8 +443,8 @@ export namespace verifiedaccess_v1 {
|
|
|
334
443
|
| BodyResponseCallback<Readable>
|
|
335
444
|
):
|
|
336
445
|
| void
|
|
337
|
-
|
|
|
338
|
-
|
|
|
446
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$VerifyChallengeResponseResult>>
|
|
447
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
339
448
|
let params = (paramsOrCallback || {}) as Params$Resource$Challenge$Verify;
|
|
340
449
|
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
341
450
|
|
package/v2.ts
CHANGED
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
Compute,
|
|
24
24
|
UserRefreshClient,
|
|
25
25
|
BaseExternalAccountClient,
|
|
26
|
-
|
|
26
|
+
GaxiosResponseWithHTTP2,
|
|
27
27
|
GoogleConfigurable,
|
|
28
28
|
createAPIRequest,
|
|
29
29
|
MethodOptions,
|
|
@@ -375,6 +375,55 @@ export namespace verifiedaccess_v2 {
|
|
|
375
375
|
|
|
376
376
|
/**
|
|
377
377
|
* Generates a new challenge.
|
|
378
|
+
* @example
|
|
379
|
+
* ```js
|
|
380
|
+
* // Before running the sample:
|
|
381
|
+
* // - Enable the API at:
|
|
382
|
+
* // https://console.developers.google.com/apis/api/verifiedaccess.googleapis.com
|
|
383
|
+
* // - Login into gcloud by running:
|
|
384
|
+
* // ```sh
|
|
385
|
+
* // $ gcloud auth application-default login
|
|
386
|
+
* // ```
|
|
387
|
+
* // - Install the npm module by running:
|
|
388
|
+
* // ```sh
|
|
389
|
+
* // $ npm install googleapis
|
|
390
|
+
* // ```
|
|
391
|
+
*
|
|
392
|
+
* const {google} = require('googleapis');
|
|
393
|
+
* const verifiedaccess = google.verifiedaccess('v2');
|
|
394
|
+
*
|
|
395
|
+
* async function main() {
|
|
396
|
+
* const auth = new google.auth.GoogleAuth({
|
|
397
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
398
|
+
* scopes: ['https://www.googleapis.com/auth/verifiedaccess'],
|
|
399
|
+
* });
|
|
400
|
+
*
|
|
401
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
402
|
+
* const authClient = await auth.getClient();
|
|
403
|
+
* google.options({auth: authClient});
|
|
404
|
+
*
|
|
405
|
+
* // Do the magic
|
|
406
|
+
* const res = await verifiedaccess.challenge.generate({
|
|
407
|
+
* // Request body metadata
|
|
408
|
+
* requestBody: {
|
|
409
|
+
* // request body parameters
|
|
410
|
+
* // {}
|
|
411
|
+
* },
|
|
412
|
+
* });
|
|
413
|
+
* console.log(res.data);
|
|
414
|
+
*
|
|
415
|
+
* // Example response
|
|
416
|
+
* // {
|
|
417
|
+
* // "challenge": "my_challenge"
|
|
418
|
+
* // }
|
|
419
|
+
* }
|
|
420
|
+
*
|
|
421
|
+
* main().catch(e => {
|
|
422
|
+
* console.error(e);
|
|
423
|
+
* throw e;
|
|
424
|
+
* });
|
|
425
|
+
*
|
|
426
|
+
* ```
|
|
378
427
|
*
|
|
379
428
|
* @param params - Parameters for request
|
|
380
429
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -384,11 +433,11 @@ export namespace verifiedaccess_v2 {
|
|
|
384
433
|
generate(
|
|
385
434
|
params: Params$Resource$Challenge$Generate,
|
|
386
435
|
options: StreamMethodOptions
|
|
387
|
-
):
|
|
436
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
388
437
|
generate(
|
|
389
438
|
params?: Params$Resource$Challenge$Generate,
|
|
390
439
|
options?: MethodOptions
|
|
391
|
-
):
|
|
440
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$Challenge>>;
|
|
392
441
|
generate(
|
|
393
442
|
params: Params$Resource$Challenge$Generate,
|
|
394
443
|
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
@@ -417,7 +466,10 @@ export namespace verifiedaccess_v2 {
|
|
|
417
466
|
callback?:
|
|
418
467
|
| BodyResponseCallback<Schema$Challenge>
|
|
419
468
|
| BodyResponseCallback<Readable>
|
|
420
|
-
):
|
|
469
|
+
):
|
|
470
|
+
| void
|
|
471
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$Challenge>>
|
|
472
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
421
473
|
let params = (paramsOrCallback ||
|
|
422
474
|
{}) as Params$Resource$Challenge$Generate;
|
|
423
475
|
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
@@ -464,6 +516,70 @@ export namespace verifiedaccess_v2 {
|
|
|
464
516
|
|
|
465
517
|
/**
|
|
466
518
|
* Verifies the challenge response.
|
|
519
|
+
* @example
|
|
520
|
+
* ```js
|
|
521
|
+
* // Before running the sample:
|
|
522
|
+
* // - Enable the API at:
|
|
523
|
+
* // https://console.developers.google.com/apis/api/verifiedaccess.googleapis.com
|
|
524
|
+
* // - Login into gcloud by running:
|
|
525
|
+
* // ```sh
|
|
526
|
+
* // $ gcloud auth application-default login
|
|
527
|
+
* // ```
|
|
528
|
+
* // - Install the npm module by running:
|
|
529
|
+
* // ```sh
|
|
530
|
+
* // $ npm install googleapis
|
|
531
|
+
* // ```
|
|
532
|
+
*
|
|
533
|
+
* const {google} = require('googleapis');
|
|
534
|
+
* const verifiedaccess = google.verifiedaccess('v2');
|
|
535
|
+
*
|
|
536
|
+
* async function main() {
|
|
537
|
+
* const auth = new google.auth.GoogleAuth({
|
|
538
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
539
|
+
* scopes: ['https://www.googleapis.com/auth/verifiedaccess'],
|
|
540
|
+
* });
|
|
541
|
+
*
|
|
542
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
543
|
+
* const authClient = await auth.getClient();
|
|
544
|
+
* google.options({auth: authClient});
|
|
545
|
+
*
|
|
546
|
+
* // Do the magic
|
|
547
|
+
* const res = await verifiedaccess.challenge.verify({
|
|
548
|
+
* // Request body metadata
|
|
549
|
+
* requestBody: {
|
|
550
|
+
* // request body parameters
|
|
551
|
+
* // {
|
|
552
|
+
* // "challengeResponse": "my_challengeResponse",
|
|
553
|
+
* // "expectedIdentity": "my_expectedIdentity"
|
|
554
|
+
* // }
|
|
555
|
+
* },
|
|
556
|
+
* });
|
|
557
|
+
* console.log(res.data);
|
|
558
|
+
*
|
|
559
|
+
* // Example response
|
|
560
|
+
* // {
|
|
561
|
+
* // "attestedDeviceId": "my_attestedDeviceId",
|
|
562
|
+
* // "customerId": "my_customerId",
|
|
563
|
+
* // "deviceEnrollmentId": "my_deviceEnrollmentId",
|
|
564
|
+
* // "devicePermanentId": "my_devicePermanentId",
|
|
565
|
+
* // "deviceSignal": "my_deviceSignal",
|
|
566
|
+
* // "deviceSignals": {},
|
|
567
|
+
* // "keyTrustLevel": "my_keyTrustLevel",
|
|
568
|
+
* // "profileCustomerId": "my_profileCustomerId",
|
|
569
|
+
* // "profileKeyTrustLevel": "my_profileKeyTrustLevel",
|
|
570
|
+
* // "profilePermanentId": "my_profilePermanentId",
|
|
571
|
+
* // "signedPublicKeyAndChallenge": "my_signedPublicKeyAndChallenge",
|
|
572
|
+
* // "virtualDeviceId": "my_virtualDeviceId",
|
|
573
|
+
* // "virtualProfileId": "my_virtualProfileId"
|
|
574
|
+
* // }
|
|
575
|
+
* }
|
|
576
|
+
*
|
|
577
|
+
* main().catch(e => {
|
|
578
|
+
* console.error(e);
|
|
579
|
+
* throw e;
|
|
580
|
+
* });
|
|
581
|
+
*
|
|
582
|
+
* ```
|
|
467
583
|
*
|
|
468
584
|
* @param params - Parameters for request
|
|
469
585
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -473,11 +589,11 @@ export namespace verifiedaccess_v2 {
|
|
|
473
589
|
verify(
|
|
474
590
|
params: Params$Resource$Challenge$Verify,
|
|
475
591
|
options: StreamMethodOptions
|
|
476
|
-
):
|
|
592
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
477
593
|
verify(
|
|
478
594
|
params?: Params$Resource$Challenge$Verify,
|
|
479
595
|
options?: MethodOptions
|
|
480
|
-
):
|
|
596
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$VerifyChallengeResponseResult>>;
|
|
481
597
|
verify(
|
|
482
598
|
params: Params$Resource$Challenge$Verify,
|
|
483
599
|
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
@@ -512,8 +628,8 @@ export namespace verifiedaccess_v2 {
|
|
|
512
628
|
| BodyResponseCallback<Readable>
|
|
513
629
|
):
|
|
514
630
|
| void
|
|
515
|
-
|
|
|
516
|
-
|
|
|
631
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$VerifyChallengeResponseResult>>
|
|
632
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
517
633
|
let params = (paramsOrCallback || {}) as Params$Resource$Challenge$Verify;
|
|
518
634
|
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
519
635
|
|