@maxim_mazurok/gapi.client.websecurityscanner-v1alpha 0.1.20251109 → 0.2.20251207
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 +84 -41
- package/package.json +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://websecurityscanner.googleapis.com/$discovery/rest?version=v1alpha
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20251207
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -59,7 +59,22 @@ declare namespace gapi.client {
|
|
|
59
59
|
/** The URL where the browser lands when the vulnerability is detected. */
|
|
60
60
|
finalUrl?: string;
|
|
61
61
|
/** The type of the Finding. */
|
|
62
|
-
findingType?:
|
|
62
|
+
findingType?:
|
|
63
|
+
| 'FINDING_TYPE_UNSPECIFIED'
|
|
64
|
+
| 'MIXED_CONTENT'
|
|
65
|
+
| 'OUTDATED_LIBRARY'
|
|
66
|
+
| 'ROSETTA_FLASH'
|
|
67
|
+
| 'XSS_CALLBACK'
|
|
68
|
+
| 'XSS_ERROR'
|
|
69
|
+
| 'CLEAR_TEXT_PASSWORD'
|
|
70
|
+
| 'INVALID_CONTENT_TYPE'
|
|
71
|
+
| 'XSS_ANGULAR_CALLBACK'
|
|
72
|
+
| 'INVALID_HEADER'
|
|
73
|
+
| 'MISSPELLED_SECURITY_HEADER_NAME'
|
|
74
|
+
| 'MISMATCHING_SECURITY_HEADER_VALUES'
|
|
75
|
+
| 'ACCESSIBLE_GIT_REPOSITORY'
|
|
76
|
+
| 'ACCESSIBLE_SVN_REPOSITORY'
|
|
77
|
+
| 'ACCESSIBLE_ENV_FILE';
|
|
63
78
|
/** If the vulnerability was originated from nested IFrame, the immediate parent IFrame is reported. */
|
|
64
79
|
frameUrl?: string;
|
|
65
80
|
/** The URL produced by the server-side fuzzer and used in the request that triggered the vulnerability. */
|
|
@@ -87,7 +102,22 @@ declare namespace gapi.client {
|
|
|
87
102
|
/** The count of findings belonging to this finding type. */
|
|
88
103
|
findingCount?: number;
|
|
89
104
|
/** The finding type associated with the stats. */
|
|
90
|
-
findingType?:
|
|
105
|
+
findingType?:
|
|
106
|
+
| 'FINDING_TYPE_UNSPECIFIED'
|
|
107
|
+
| 'MIXED_CONTENT'
|
|
108
|
+
| 'OUTDATED_LIBRARY'
|
|
109
|
+
| 'ROSETTA_FLASH'
|
|
110
|
+
| 'XSS_CALLBACK'
|
|
111
|
+
| 'XSS_ERROR'
|
|
112
|
+
| 'CLEAR_TEXT_PASSWORD'
|
|
113
|
+
| 'INVALID_CONTENT_TYPE'
|
|
114
|
+
| 'XSS_ANGULAR_CALLBACK'
|
|
115
|
+
| 'INVALID_HEADER'
|
|
116
|
+
| 'MISSPELLED_SECURITY_HEADER_NAME'
|
|
117
|
+
| 'MISMATCHING_SECURITY_HEADER_VALUES'
|
|
118
|
+
| 'ACCESSIBLE_GIT_REPOSITORY'
|
|
119
|
+
| 'ACCESSIBLE_SVN_REPOSITORY'
|
|
120
|
+
| 'ACCESSIBLE_ENV_FILE';
|
|
91
121
|
}
|
|
92
122
|
interface GoogleAccount {
|
|
93
123
|
/** Required. Input only. The password of the Google account. The credential is stored encrypted and not returned in any response nor included in audit logs. */
|
|
@@ -155,15 +185,28 @@ declare namespace gapi.client {
|
|
|
155
185
|
/** Required. The starting URLs from which the scanner finds site pages. */
|
|
156
186
|
startingUrls?: string[];
|
|
157
187
|
/** Set of Google Cloud platforms targeted by the scan. If empty, APP_ENGINE will be used as a default. */
|
|
158
|
-
targetPlatforms?:
|
|
188
|
+
targetPlatforms?:
|
|
189
|
+
| 'TARGET_PLATFORM_UNSPECIFIED'
|
|
190
|
+
| 'APP_ENGINE'
|
|
191
|
+
| 'COMPUTE'
|
|
192
|
+
| 'CLOUD_RUN'
|
|
193
|
+
| 'CLOUD_FUNCTIONS'[];
|
|
159
194
|
/** The user agent used during scanning. */
|
|
160
|
-
userAgent?:
|
|
195
|
+
userAgent?:
|
|
196
|
+
| 'USER_AGENT_UNSPECIFIED'
|
|
197
|
+
| 'CHROME_LINUX'
|
|
198
|
+
| 'CHROME_ANDROID'
|
|
199
|
+
| 'SAFARI_IPHONE';
|
|
161
200
|
}
|
|
162
201
|
interface ScanRun {
|
|
163
202
|
/** The time at which the ScanRun reached termination state - that the ScanRun is either finished or stopped by user. */
|
|
164
203
|
endTime?: string;
|
|
165
204
|
/** The execution state of the ScanRun. */
|
|
166
|
-
executionState?:
|
|
205
|
+
executionState?:
|
|
206
|
+
| 'EXECUTION_STATE_UNSPECIFIED'
|
|
207
|
+
| 'QUEUED'
|
|
208
|
+
| 'SCANNING'
|
|
209
|
+
| 'FINISHED';
|
|
167
210
|
/** Whether the scan run has found any vulnerabilities. */
|
|
168
211
|
hasVulnerabilities?: boolean;
|
|
169
212
|
/** The resource name of the ScanRun. The name follows the format of 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'. The ScanRun IDs are generated by the system. */
|
|
@@ -171,7 +214,7 @@ declare namespace gapi.client {
|
|
|
171
214
|
/** The percentage of total completion ranging from 0 to 100. If the scan is in queue, the value is 0. If the scan is running, the value ranges from 0 to 100. If the scan is finished, the value is 100. */
|
|
172
215
|
progressPercent?: number;
|
|
173
216
|
/** The result state of the ScanRun. This field is only available after the execution state reaches "FINISHED". */
|
|
174
|
-
resultState?:
|
|
217
|
+
resultState?: 'RESULT_STATE_UNSPECIFIED' | 'SUCCESS' | 'ERROR' | 'KILLED';
|
|
175
218
|
/** The time at which the ScanRun started. */
|
|
176
219
|
startTime?: string;
|
|
177
220
|
/** The number of URLs crawled during this ScanRun. If the scan is in progress, the value represents the number of URLs crawled up to now. */
|
|
@@ -213,11 +256,11 @@ declare namespace gapi.client {
|
|
|
213
256
|
/** List CrawledUrls under a given ScanRun. */
|
|
214
257
|
list(request?: {
|
|
215
258
|
/** V1 error format. */
|
|
216
|
-
'$.xgafv'?:
|
|
259
|
+
'$.xgafv'?: '1' | '2';
|
|
217
260
|
/** OAuth access token. */
|
|
218
261
|
access_token?: string;
|
|
219
262
|
/** Data format for response. */
|
|
220
|
-
alt?:
|
|
263
|
+
alt?: 'json' | 'media' | 'proto';
|
|
221
264
|
/** JSONP */
|
|
222
265
|
callback?: string;
|
|
223
266
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -246,11 +289,11 @@ declare namespace gapi.client {
|
|
|
246
289
|
/** Gets a Finding. */
|
|
247
290
|
get(request?: {
|
|
248
291
|
/** V1 error format. */
|
|
249
|
-
'$.xgafv'?:
|
|
292
|
+
'$.xgafv'?: '1' | '2';
|
|
250
293
|
/** OAuth access token. */
|
|
251
294
|
access_token?: string;
|
|
252
295
|
/** Data format for response. */
|
|
253
|
-
alt?:
|
|
296
|
+
alt?: 'json' | 'media' | 'proto';
|
|
254
297
|
/** JSONP */
|
|
255
298
|
callback?: string;
|
|
256
299
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -273,11 +316,11 @@ declare namespace gapi.client {
|
|
|
273
316
|
/** List Findings under a given ScanRun. */
|
|
274
317
|
list(request?: {
|
|
275
318
|
/** V1 error format. */
|
|
276
|
-
'$.xgafv'?:
|
|
319
|
+
'$.xgafv'?: '1' | '2';
|
|
277
320
|
/** OAuth access token. */
|
|
278
321
|
access_token?: string;
|
|
279
322
|
/** Data format for response. */
|
|
280
|
-
alt?:
|
|
323
|
+
alt?: 'json' | 'media' | 'proto';
|
|
281
324
|
/** JSONP */
|
|
282
325
|
callback?: string;
|
|
283
326
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -308,11 +351,11 @@ declare namespace gapi.client {
|
|
|
308
351
|
/** List all FindingTypeStats under a given ScanRun. */
|
|
309
352
|
list(request?: {
|
|
310
353
|
/** V1 error format. */
|
|
311
|
-
'$.xgafv'?:
|
|
354
|
+
'$.xgafv'?: '1' | '2';
|
|
312
355
|
/** OAuth access token. */
|
|
313
356
|
access_token?: string;
|
|
314
357
|
/** Data format for response. */
|
|
315
|
-
alt?:
|
|
358
|
+
alt?: 'json' | 'media' | 'proto';
|
|
316
359
|
/** JSONP */
|
|
317
360
|
callback?: string;
|
|
318
361
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -337,11 +380,11 @@ declare namespace gapi.client {
|
|
|
337
380
|
/** Gets a ScanRun. */
|
|
338
381
|
get(request?: {
|
|
339
382
|
/** V1 error format. */
|
|
340
|
-
'$.xgafv'?:
|
|
383
|
+
'$.xgafv'?: '1' | '2';
|
|
341
384
|
/** OAuth access token. */
|
|
342
385
|
access_token?: string;
|
|
343
386
|
/** Data format for response. */
|
|
344
|
-
alt?:
|
|
387
|
+
alt?: 'json' | 'media' | 'proto';
|
|
345
388
|
/** JSONP */
|
|
346
389
|
callback?: string;
|
|
347
390
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -364,11 +407,11 @@ declare namespace gapi.client {
|
|
|
364
407
|
/** Lists ScanRuns under a given ScanConfig, in descending order of ScanRun stop time. */
|
|
365
408
|
list(request?: {
|
|
366
409
|
/** V1 error format. */
|
|
367
|
-
'$.xgafv'?:
|
|
410
|
+
'$.xgafv'?: '1' | '2';
|
|
368
411
|
/** OAuth access token. */
|
|
369
412
|
access_token?: string;
|
|
370
413
|
/** Data format for response. */
|
|
371
|
-
alt?:
|
|
414
|
+
alt?: 'json' | 'media' | 'proto';
|
|
372
415
|
/** JSONP */
|
|
373
416
|
callback?: string;
|
|
374
417
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -395,11 +438,11 @@ declare namespace gapi.client {
|
|
|
395
438
|
/** Stops a ScanRun. The stopped ScanRun is returned. */
|
|
396
439
|
stop(request: {
|
|
397
440
|
/** V1 error format. */
|
|
398
|
-
'$.xgafv'?:
|
|
441
|
+
'$.xgafv'?: '1' | '2';
|
|
399
442
|
/** OAuth access token. */
|
|
400
443
|
access_token?: string;
|
|
401
444
|
/** Data format for response. */
|
|
402
|
-
alt?:
|
|
445
|
+
alt?: 'json' | 'media' | 'proto';
|
|
403
446
|
/** JSONP */
|
|
404
447
|
callback?: string;
|
|
405
448
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -424,11 +467,11 @@ declare namespace gapi.client {
|
|
|
424
467
|
stop(
|
|
425
468
|
request: {
|
|
426
469
|
/** V1 error format. */
|
|
427
|
-
'$.xgafv'?:
|
|
470
|
+
'$.xgafv'?: '1' | '2';
|
|
428
471
|
/** OAuth access token. */
|
|
429
472
|
access_token?: string;
|
|
430
473
|
/** Data format for response. */
|
|
431
|
-
alt?:
|
|
474
|
+
alt?: 'json' | 'media' | 'proto';
|
|
432
475
|
/** JSONP */
|
|
433
476
|
callback?: string;
|
|
434
477
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -458,11 +501,11 @@ declare namespace gapi.client {
|
|
|
458
501
|
/** Creates a new ScanConfig. */
|
|
459
502
|
create(request: {
|
|
460
503
|
/** V1 error format. */
|
|
461
|
-
'$.xgafv'?:
|
|
504
|
+
'$.xgafv'?: '1' | '2';
|
|
462
505
|
/** OAuth access token. */
|
|
463
506
|
access_token?: string;
|
|
464
507
|
/** Data format for response. */
|
|
465
|
-
alt?:
|
|
508
|
+
alt?: 'json' | 'media' | 'proto';
|
|
466
509
|
/** JSONP */
|
|
467
510
|
callback?: string;
|
|
468
511
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -487,11 +530,11 @@ declare namespace gapi.client {
|
|
|
487
530
|
create(
|
|
488
531
|
request: {
|
|
489
532
|
/** V1 error format. */
|
|
490
|
-
'$.xgafv'?:
|
|
533
|
+
'$.xgafv'?: '1' | '2';
|
|
491
534
|
/** OAuth access token. */
|
|
492
535
|
access_token?: string;
|
|
493
536
|
/** Data format for response. */
|
|
494
|
-
alt?:
|
|
537
|
+
alt?: 'json' | 'media' | 'proto';
|
|
495
538
|
/** JSONP */
|
|
496
539
|
callback?: string;
|
|
497
540
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -516,11 +559,11 @@ declare namespace gapi.client {
|
|
|
516
559
|
/** Deletes an existing ScanConfig and its child resources. */
|
|
517
560
|
delete(request?: {
|
|
518
561
|
/** V1 error format. */
|
|
519
|
-
'$.xgafv'?:
|
|
562
|
+
'$.xgafv'?: '1' | '2';
|
|
520
563
|
/** OAuth access token. */
|
|
521
564
|
access_token?: string;
|
|
522
565
|
/** Data format for response. */
|
|
523
|
-
alt?:
|
|
566
|
+
alt?: 'json' | 'media' | 'proto';
|
|
524
567
|
/** JSONP */
|
|
525
568
|
callback?: string;
|
|
526
569
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -543,11 +586,11 @@ declare namespace gapi.client {
|
|
|
543
586
|
/** Gets a ScanConfig. */
|
|
544
587
|
get(request?: {
|
|
545
588
|
/** V1 error format. */
|
|
546
|
-
'$.xgafv'?:
|
|
589
|
+
'$.xgafv'?: '1' | '2';
|
|
547
590
|
/** OAuth access token. */
|
|
548
591
|
access_token?: string;
|
|
549
592
|
/** Data format for response. */
|
|
550
|
-
alt?:
|
|
593
|
+
alt?: 'json' | 'media' | 'proto';
|
|
551
594
|
/** JSONP */
|
|
552
595
|
callback?: string;
|
|
553
596
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -570,11 +613,11 @@ declare namespace gapi.client {
|
|
|
570
613
|
/** Lists ScanConfigs under a given project. */
|
|
571
614
|
list(request?: {
|
|
572
615
|
/** V1 error format. */
|
|
573
|
-
'$.xgafv'?:
|
|
616
|
+
'$.xgafv'?: '1' | '2';
|
|
574
617
|
/** OAuth access token. */
|
|
575
618
|
access_token?: string;
|
|
576
619
|
/** Data format for response. */
|
|
577
|
-
alt?:
|
|
620
|
+
alt?: 'json' | 'media' | 'proto';
|
|
578
621
|
/** JSONP */
|
|
579
622
|
callback?: string;
|
|
580
623
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -601,11 +644,11 @@ declare namespace gapi.client {
|
|
|
601
644
|
/** Updates a ScanConfig. This method support partial update of a ScanConfig. */
|
|
602
645
|
patch(request: {
|
|
603
646
|
/** V1 error format. */
|
|
604
|
-
'$.xgafv'?:
|
|
647
|
+
'$.xgafv'?: '1' | '2';
|
|
605
648
|
/** OAuth access token. */
|
|
606
649
|
access_token?: string;
|
|
607
650
|
/** Data format for response. */
|
|
608
|
-
alt?:
|
|
651
|
+
alt?: 'json' | 'media' | 'proto';
|
|
609
652
|
/** JSONP */
|
|
610
653
|
callback?: string;
|
|
611
654
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -632,11 +675,11 @@ declare namespace gapi.client {
|
|
|
632
675
|
patch(
|
|
633
676
|
request: {
|
|
634
677
|
/** V1 error format. */
|
|
635
|
-
'$.xgafv'?:
|
|
678
|
+
'$.xgafv'?: '1' | '2';
|
|
636
679
|
/** OAuth access token. */
|
|
637
680
|
access_token?: string;
|
|
638
681
|
/** Data format for response. */
|
|
639
|
-
alt?:
|
|
682
|
+
alt?: 'json' | 'media' | 'proto';
|
|
640
683
|
/** JSONP */
|
|
641
684
|
callback?: string;
|
|
642
685
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -663,11 +706,11 @@ declare namespace gapi.client {
|
|
|
663
706
|
/** Start a ScanRun according to the given ScanConfig. */
|
|
664
707
|
start(request: {
|
|
665
708
|
/** V1 error format. */
|
|
666
|
-
'$.xgafv'?:
|
|
709
|
+
'$.xgafv'?: '1' | '2';
|
|
667
710
|
/** OAuth access token. */
|
|
668
711
|
access_token?: string;
|
|
669
712
|
/** Data format for response. */
|
|
670
|
-
alt?:
|
|
713
|
+
alt?: 'json' | 'media' | 'proto';
|
|
671
714
|
/** JSONP */
|
|
672
715
|
callback?: string;
|
|
673
716
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -692,11 +735,11 @@ declare namespace gapi.client {
|
|
|
692
735
|
start(
|
|
693
736
|
request: {
|
|
694
737
|
/** V1 error format. */
|
|
695
|
-
'$.xgafv'?:
|
|
738
|
+
'$.xgafv'?: '1' | '2';
|
|
696
739
|
/** OAuth access token. */
|
|
697
740
|
access_token?: string;
|
|
698
741
|
/** Data format for response. */
|
|
699
|
-
alt?:
|
|
742
|
+
alt?: 'json' | 'media' | 'proto';
|
|
700
743
|
/** JSONP */
|
|
701
744
|
callback?: string;
|
|
702
745
|
/** Selector specifying which fields to include in a partial response. */
|