@googleapis/verifiedaccess 4.0.1 → 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 CHANGED
@@ -1,5 +1,31 @@
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
+
3
29
  ## [4.0.1](https://github.com/googleapis/google-api-nodejs-client/compare/verifiedaccess-v4.0.0...verifiedaccess-v4.0.1) (2025-06-04)
4
30
 
5
31
 
package/build/v1.d.ts CHANGED
@@ -145,6 +145,56 @@ 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`.
@@ -159,6 +209,62 @@ export declare namespace verifiedaccess_v1 {
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`.
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,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CAAwC,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
@@ -319,6 +319,55 @@ 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`.
@@ -333,6 +382,70 @@ export declare namespace verifiedaccess_v2 {
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`.
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,CA6hBjC;AA7hBD,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,kBAA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E,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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@googleapis/verifiedaccess",
3
- "version": "4.0.1",
3
+ "version": "5.0.1",
4
4
  "description": "verifiedaccess",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",
package/v1.ts CHANGED
@@ -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`.
@@ -289,6 +339,62 @@ export namespace verifiedaccess_v1 {
289
339
 
290
340
  /**
291
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
+ * ```
292
398
  *
293
399
  * @param params - Parameters for request
294
400
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
package/v2.ts CHANGED
@@ -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`.
@@ -467,6 +516,70 @@ export namespace verifiedaccess_v2 {
467
516
 
468
517
  /**
469
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
+ * ```
470
583
  *
471
584
  * @param params - Parameters for request
472
585
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.