@maxim_mazurok/gapi.client.containeranalysis-v1 0.1.20260313 → 0.1.20260521
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 +160 -11
- package/package.json +1 -1
- package/readme.md +17 -0
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://containeranalysis.googleapis.com/$discovery/rest?version=v1
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20260521
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -28,6 +28,15 @@ declare namespace gapi.client {
|
|
|
28
28
|
): void;
|
|
29
29
|
|
|
30
30
|
namespace containeranalysis {
|
|
31
|
+
interface AISkillAnalysisNote {}
|
|
32
|
+
interface AISkillAnalysisOccurrence {
|
|
33
|
+
/** Findings produced by the analysis. */
|
|
34
|
+
findings?: Finding[];
|
|
35
|
+
/** Maximum severity found among findings. */
|
|
36
|
+
maxSeverity?: string;
|
|
37
|
+
/** Name of the skill that produced this analysis. */
|
|
38
|
+
skillName?: string;
|
|
39
|
+
}
|
|
31
40
|
interface AliasContext {
|
|
32
41
|
/** The alias kind. */
|
|
33
42
|
kind?: 'KIND_UNSPECIFIED' | 'FIXED' | 'MOVABLE' | 'OTHER';
|
|
@@ -324,6 +333,8 @@ declare namespace gapi.client {
|
|
|
324
333
|
url?: string;
|
|
325
334
|
}
|
|
326
335
|
interface ContaineranalysisGoogleDevtoolsCloudbuildV1Artifacts {
|
|
336
|
+
/** Optional. A list of generic artifacts to be uploaded to Artifact Registry upon successful completion of all build steps. If any artifacts fail to be pushed, the build is marked FAILURE. */
|
|
337
|
+
genericArtifacts?: ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsGenericArtifact[];
|
|
327
338
|
/** Optional. A list of Go modules to be uploaded to Artifact Registry upon successful completion of all build steps. If any objects fail to be pushed, the build is marked FAILURE. */
|
|
328
339
|
goModules?: ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsGoModule[];
|
|
329
340
|
/** A list of images to be pushed upon the successful completion of all build steps. The images will be pushed using the builder service account's credentials. The digests of the pushed images will be stored in the Build resource's results field. If any of the images fail to be pushed, the build is marked FAILURE. */
|
|
@@ -347,6 +358,12 @@ declare namespace gapi.client {
|
|
|
347
358
|
/** Output only. Stores timing information for pushing all artifact objects. */
|
|
348
359
|
timing?: ContaineranalysisGoogleDevtoolsCloudbuildV1TimeSpan;
|
|
349
360
|
}
|
|
361
|
+
interface ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsGenericArtifact {
|
|
362
|
+
/** Required. Path to the generic artifact in the build's workspace to be uploaded to Artifact Registry. */
|
|
363
|
+
folder?: string;
|
|
364
|
+
/** Required. Registry path to upload the generic artifact to, in the form projects/$PROJECT/locations/$LOCATION/repositories/$REPO/packages/$PACKAGE/versions/$VERSION */
|
|
365
|
+
registryPath?: string;
|
|
366
|
+
}
|
|
350
367
|
interface ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsGoModule {
|
|
351
368
|
/** Optional. The Go module's "module path". e.g. example.com/foo/v2 */
|
|
352
369
|
modulePath?: string;
|
|
@@ -581,6 +598,8 @@ declare namespace gapi.client {
|
|
|
581
598
|
name?: string;
|
|
582
599
|
/** Output only. Stores timing information for pulling this build step's builder image only. */
|
|
583
600
|
pullTiming?: ContaineranalysisGoogleDevtoolsCloudbuildV1TimeSpan;
|
|
601
|
+
/** Declaration of results for this build step. */
|
|
602
|
+
results?: ContaineranalysisGoogleDevtoolsCloudbuildV1StepResult[];
|
|
584
603
|
/** A shell script to be executed in the step. When script is provided, the user cannot specify the entrypoint or args. */
|
|
585
604
|
script?: string;
|
|
586
605
|
/** A list of environment variables which are encrypted using a Cloud Key Management Service crypto key. These values must be specified in the build's `Secret`. */
|
|
@@ -606,6 +625,10 @@ declare namespace gapi.client {
|
|
|
606
625
|
/** The ID(s) of the step(s) that this build step depends on. This build step will not start until all the build steps in `wait_for` have completed successfully. If `wait_for` is empty, this build step will start when all previous build steps in the `Build.Steps` list have completed successfully. */
|
|
607
626
|
waitFor?: string[];
|
|
608
627
|
}
|
|
628
|
+
interface ContaineranalysisGoogleDevtoolsCloudbuildV1BuildStepResults {
|
|
629
|
+
/** Results for a build step. */
|
|
630
|
+
results?: {[P in string]: string};
|
|
631
|
+
}
|
|
609
632
|
interface ContaineranalysisGoogleDevtoolsCloudbuildV1BuildWarning {
|
|
610
633
|
/** The priority for this warning. */
|
|
611
634
|
priority?: 'PRIORITY_UNSPECIFIED' | 'INFO' | 'WARNING' | 'ALERT';
|
|
@@ -638,9 +661,17 @@ declare namespace gapi.client {
|
|
|
638
661
|
interface ContaineranalysisGoogleDevtoolsCloudbuildV1Dependency {
|
|
639
662
|
/** If set to true disable all dependency fetching (ignoring the default source as well). */
|
|
640
663
|
empty?: boolean;
|
|
664
|
+
/** Represents a generic artifact as a build dependency. */
|
|
665
|
+
genericArtifact?: ContaineranalysisGoogleDevtoolsCloudbuildV1DependencyGenericArtifactDependency;
|
|
641
666
|
/** Represents a git repository as a build dependency. */
|
|
642
667
|
gitSource?: ContaineranalysisGoogleDevtoolsCloudbuildV1DependencyGitSourceDependency;
|
|
643
668
|
}
|
|
669
|
+
interface ContaineranalysisGoogleDevtoolsCloudbuildV1DependencyGenericArtifactDependency {
|
|
670
|
+
/** Required. Where the artifact files should be placed on the worker. */
|
|
671
|
+
destPath?: string;
|
|
672
|
+
/** Required. The location to download the artifact files from. Ex: projects/p1/locations/us/repositories/r1/packages/p1/versions/v1 */
|
|
673
|
+
resource?: string;
|
|
674
|
+
}
|
|
644
675
|
interface ContaineranalysisGoogleDevtoolsCloudbuildV1DependencyGitSourceDependency {
|
|
645
676
|
/** Optional. How much history should be fetched for the build (default 1, -1 for all history). */
|
|
646
677
|
depth?: string;
|
|
@@ -732,6 +763,12 @@ declare namespace gapi.client {
|
|
|
732
763
|
buildStepImages?: string[];
|
|
733
764
|
/** List of build step outputs, produced by builder images, in the order corresponding to build step indices. [Cloud Builders](https://cloud.google.com/cloud-build/docs/cloud-builders) can produce this output by writing to `$BUILDER_OUTPUT/output`. Only the first 50KB of data is stored. Note that the `$BUILDER_OUTPUT` variable is read-only and can't be substituted. */
|
|
734
765
|
buildStepOutputs?: string[];
|
|
766
|
+
/** Results for build steps. step_id -> */
|
|
767
|
+
buildStepResults?: {
|
|
768
|
+
[P in string]: ContaineranalysisGoogleDevtoolsCloudbuildV1BuildStepResults;
|
|
769
|
+
};
|
|
770
|
+
/** Output only. Generic artifacts uploaded to Artifact Registry at the end of the build. */
|
|
771
|
+
genericArtifacts?: ContaineranalysisGoogleDevtoolsCloudbuildV1UploadedGenericArtifact[];
|
|
735
772
|
/** Optional. Go module artifacts uploaded to Artifact Registry at the end of the build. */
|
|
736
773
|
goModules?: ContaineranalysisGoogleDevtoolsCloudbuildV1UploadedGoModule[];
|
|
737
774
|
/** Container images that were built as a part of the build. */
|
|
@@ -793,6 +830,14 @@ declare namespace gapi.client {
|
|
|
793
830
|
/** A copy of the build's `source.storage_source_manifest`, if exists, with any revisions resolved. This feature is in Preview. */
|
|
794
831
|
resolvedStorageSourceManifest?: ContaineranalysisGoogleDevtoolsCloudbuildV1StorageSourceManifest;
|
|
795
832
|
}
|
|
833
|
+
interface ContaineranalysisGoogleDevtoolsCloudbuildV1StepResult {
|
|
834
|
+
/** Optional. The content of the attestation to be generated. */
|
|
835
|
+
attestationContent?: string;
|
|
836
|
+
/** Optional. The type of attestation to be generated. */
|
|
837
|
+
attestationType?: string;
|
|
838
|
+
/** Required. The name of the result. */
|
|
839
|
+
name?: string;
|
|
840
|
+
}
|
|
796
841
|
interface ContaineranalysisGoogleDevtoolsCloudbuildV1StorageSource {
|
|
797
842
|
/** Cloud Storage bucket containing the source (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)). */
|
|
798
843
|
bucket?: string;
|
|
@@ -817,6 +862,20 @@ declare namespace gapi.client {
|
|
|
817
862
|
/** Start of time span. */
|
|
818
863
|
startTime?: string;
|
|
819
864
|
}
|
|
865
|
+
interface ContaineranalysisGoogleDevtoolsCloudbuildV1UploadedGenericArtifact {
|
|
866
|
+
/** Output only. The hash of the whole artifact. */
|
|
867
|
+
artifactFingerprint?: ContaineranalysisGoogleDevtoolsCloudbuildV1FileHashes;
|
|
868
|
+
/** Output only. Path to the artifact in Artifact Registry. */
|
|
869
|
+
artifactRegistryPackage?: string;
|
|
870
|
+
/** Output only. The file hashes that make up the generic artifact. */
|
|
871
|
+
fileHashes?: {
|
|
872
|
+
[P in string]: ContaineranalysisGoogleDevtoolsCloudbuildV1FileHashes;
|
|
873
|
+
};
|
|
874
|
+
/** Output only. Stores timing information for pushing the specified artifact. */
|
|
875
|
+
pushTiming?: ContaineranalysisGoogleDevtoolsCloudbuildV1TimeSpan;
|
|
876
|
+
/** Output only. URI of the uploaded artifact. Ex: projects/p1/locations/us/repositories/r1/packages/p1/versions/v1 */
|
|
877
|
+
uri?: string;
|
|
878
|
+
}
|
|
820
879
|
interface ContaineranalysisGoogleDevtoolsCloudbuildV1UploadedGoModule {
|
|
821
880
|
/** Output only. Path to the artifact in Artifact Registry. */
|
|
822
881
|
artifactRegistryPackage?: string;
|
|
@@ -864,23 +923,31 @@ declare namespace gapi.client {
|
|
|
864
923
|
path?: string;
|
|
865
924
|
}
|
|
866
925
|
interface CVSS {
|
|
926
|
+
/** Attack Complexity (AC). Defined in CVSS v2, v3, v4. */
|
|
867
927
|
attackComplexity?:
|
|
868
928
|
| 'ATTACK_COMPLEXITY_UNSPECIFIED'
|
|
869
929
|
| 'ATTACK_COMPLEXITY_LOW'
|
|
870
930
|
| 'ATTACK_COMPLEXITY_HIGH'
|
|
871
931
|
| 'ATTACK_COMPLEXITY_MEDIUM';
|
|
872
|
-
/**
|
|
932
|
+
/** Attack Requirements (AT). Defined in CVSS v4. */
|
|
933
|
+
attackRequirements?:
|
|
934
|
+
| 'ATTACK_REQUIREMENTS_UNSPECIFIED'
|
|
935
|
+
| 'ATTACK_REQUIREMENTS_NONE'
|
|
936
|
+
| 'ATTACK_REQUIREMENTS_PRESENT';
|
|
937
|
+
/** Attack Vector (AV). Defined in CVSS v2, v3, v4. */
|
|
873
938
|
attackVector?:
|
|
874
939
|
| 'ATTACK_VECTOR_UNSPECIFIED'
|
|
875
940
|
| 'ATTACK_VECTOR_NETWORK'
|
|
876
941
|
| 'ATTACK_VECTOR_ADJACENT'
|
|
877
942
|
| 'ATTACK_VECTOR_LOCAL'
|
|
878
943
|
| 'ATTACK_VECTOR_PHYSICAL';
|
|
944
|
+
/** Authentication (Au). Defined in CVSS v2. */
|
|
879
945
|
authentication?:
|
|
880
946
|
| 'AUTHENTICATION_UNSPECIFIED'
|
|
881
947
|
| 'AUTHENTICATION_MULTIPLE'
|
|
882
948
|
| 'AUTHENTICATION_SINGLE'
|
|
883
949
|
| 'AUTHENTICATION_NONE';
|
|
950
|
+
/** Availability Impact (A). Defined in CVSS v2, v3. */
|
|
884
951
|
availabilityImpact?:
|
|
885
952
|
| 'IMPACT_UNSPECIFIED'
|
|
886
953
|
| 'IMPACT_HIGH'
|
|
@@ -890,6 +957,7 @@ declare namespace gapi.client {
|
|
|
890
957
|
| 'IMPACT_COMPLETE';
|
|
891
958
|
/** The base score is a function of the base metric scores. */
|
|
892
959
|
baseScore?: number;
|
|
960
|
+
/** Confidentiality Impact (C). Defined in CVSS v2, v3. */
|
|
893
961
|
confidentialityImpact?:
|
|
894
962
|
| 'IMPACT_UNSPECIFIED'
|
|
895
963
|
| 'IMPACT_HIGH'
|
|
@@ -899,6 +967,7 @@ declare namespace gapi.client {
|
|
|
899
967
|
| 'IMPACT_COMPLETE';
|
|
900
968
|
exploitabilityScore?: number;
|
|
901
969
|
impactScore?: number;
|
|
970
|
+
/** Integrity Impact (I). Defined in CVSS v2, v3. */
|
|
902
971
|
integrityImpact?:
|
|
903
972
|
| 'IMPACT_UNSPECIFIED'
|
|
904
973
|
| 'IMPACT_HIGH'
|
|
@@ -906,16 +975,69 @@ declare namespace gapi.client {
|
|
|
906
975
|
| 'IMPACT_NONE'
|
|
907
976
|
| 'IMPACT_PARTIAL'
|
|
908
977
|
| 'IMPACT_COMPLETE';
|
|
978
|
+
/** Privileges Required (PR). Defined in CVSS v3, v4. */
|
|
909
979
|
privilegesRequired?:
|
|
910
980
|
| 'PRIVILEGES_REQUIRED_UNSPECIFIED'
|
|
911
981
|
| 'PRIVILEGES_REQUIRED_NONE'
|
|
912
982
|
| 'PRIVILEGES_REQUIRED_LOW'
|
|
913
983
|
| 'PRIVILEGES_REQUIRED_HIGH';
|
|
984
|
+
/** Scope (S). Defined in CVSS v3. */
|
|
914
985
|
scope?: 'SCOPE_UNSPECIFIED' | 'SCOPE_UNCHANGED' | 'SCOPE_CHANGED';
|
|
986
|
+
/** Subsequent System Availability Impact (SA). Defined in CVSS v4. */
|
|
987
|
+
subsequentSystemAvailabilityImpact?:
|
|
988
|
+
| 'IMPACT_UNSPECIFIED'
|
|
989
|
+
| 'IMPACT_HIGH'
|
|
990
|
+
| 'IMPACT_LOW'
|
|
991
|
+
| 'IMPACT_NONE'
|
|
992
|
+
| 'IMPACT_PARTIAL'
|
|
993
|
+
| 'IMPACT_COMPLETE';
|
|
994
|
+
/** Subsequent System Confidentiality Impact (SC). Defined in CVSS v4. */
|
|
995
|
+
subsequentSystemConfidentialityImpact?:
|
|
996
|
+
| 'IMPACT_UNSPECIFIED'
|
|
997
|
+
| 'IMPACT_HIGH'
|
|
998
|
+
| 'IMPACT_LOW'
|
|
999
|
+
| 'IMPACT_NONE'
|
|
1000
|
+
| 'IMPACT_PARTIAL'
|
|
1001
|
+
| 'IMPACT_COMPLETE';
|
|
1002
|
+
/** Subsequent System Integrity Impact (SI). Defined in CVSS v4. */
|
|
1003
|
+
subsequentSystemIntegrityImpact?:
|
|
1004
|
+
| 'IMPACT_UNSPECIFIED'
|
|
1005
|
+
| 'IMPACT_HIGH'
|
|
1006
|
+
| 'IMPACT_LOW'
|
|
1007
|
+
| 'IMPACT_NONE'
|
|
1008
|
+
| 'IMPACT_PARTIAL'
|
|
1009
|
+
| 'IMPACT_COMPLETE';
|
|
1010
|
+
/** User Interaction (UI). Defined in CVSS v3, v4. */
|
|
915
1011
|
userInteraction?:
|
|
916
1012
|
| 'USER_INTERACTION_UNSPECIFIED'
|
|
917
1013
|
| 'USER_INTERACTION_NONE'
|
|
918
|
-
| 'USER_INTERACTION_REQUIRED'
|
|
1014
|
+
| 'USER_INTERACTION_REQUIRED'
|
|
1015
|
+
| 'USER_INTERACTION_PASSIVE'
|
|
1016
|
+
| 'USER_INTERACTION_ACTIVE';
|
|
1017
|
+
/** Vulnerable System Availability Impact (VA). Defined in CVSS v4. */
|
|
1018
|
+
vulnerableSystemAvailabilityImpact?:
|
|
1019
|
+
| 'IMPACT_UNSPECIFIED'
|
|
1020
|
+
| 'IMPACT_HIGH'
|
|
1021
|
+
| 'IMPACT_LOW'
|
|
1022
|
+
| 'IMPACT_NONE'
|
|
1023
|
+
| 'IMPACT_PARTIAL'
|
|
1024
|
+
| 'IMPACT_COMPLETE';
|
|
1025
|
+
/** Vulnerable System Confidentiality Impact (VC). Defined in CVSS v4. */
|
|
1026
|
+
vulnerableSystemConfidentialityImpact?:
|
|
1027
|
+
| 'IMPACT_UNSPECIFIED'
|
|
1028
|
+
| 'IMPACT_HIGH'
|
|
1029
|
+
| 'IMPACT_LOW'
|
|
1030
|
+
| 'IMPACT_NONE'
|
|
1031
|
+
| 'IMPACT_PARTIAL'
|
|
1032
|
+
| 'IMPACT_COMPLETE';
|
|
1033
|
+
/** Vulnerable System Integrity Impact (VI). Defined in CVSS v4. */
|
|
1034
|
+
vulnerableSystemIntegrityImpact?:
|
|
1035
|
+
| 'IMPACT_UNSPECIFIED'
|
|
1036
|
+
| 'IMPACT_HIGH'
|
|
1037
|
+
| 'IMPACT_LOW'
|
|
1038
|
+
| 'IMPACT_NONE'
|
|
1039
|
+
| 'IMPACT_PARTIAL'
|
|
1040
|
+
| 'IMPACT_COMPLETE';
|
|
919
1041
|
}
|
|
920
1042
|
interface CVSSv3 {
|
|
921
1043
|
attackComplexity?:
|
|
@@ -1031,7 +1153,8 @@ declare namespace gapi.client {
|
|
|
1031
1153
|
| 'DSSE_ATTESTATION'
|
|
1032
1154
|
| 'VULNERABILITY_ASSESSMENT'
|
|
1033
1155
|
| 'SBOM_REFERENCE'
|
|
1034
|
-
| 'SECRET'
|
|
1156
|
+
| 'SECRET'
|
|
1157
|
+
| 'AI_SKILL_ANALYSIS';
|
|
1035
1158
|
}
|
|
1036
1159
|
interface DiscoveryOccurrence {
|
|
1037
1160
|
analysisCompleted?: AnalysisCompleted;
|
|
@@ -1135,6 +1258,22 @@ declare namespace gapi.client {
|
|
|
1135
1258
|
/** Required. Collection of file hashes. */
|
|
1136
1259
|
fileHash?: Hash[];
|
|
1137
1260
|
}
|
|
1261
|
+
interface Finding {
|
|
1262
|
+
/** Category of the finding. */
|
|
1263
|
+
category?: string;
|
|
1264
|
+
/** Location (path and line) where the finding was detected. */
|
|
1265
|
+
location?: FindingLocation;
|
|
1266
|
+
/** Scanner determines which engine (e.g. static, llm) emitted the finding. */
|
|
1267
|
+
scanner?: string;
|
|
1268
|
+
/** Severity of the finding. */
|
|
1269
|
+
severity?: string;
|
|
1270
|
+
}
|
|
1271
|
+
interface FindingLocation {
|
|
1272
|
+
/** Relative path of the file containing the finding. */
|
|
1273
|
+
filePath?: string;
|
|
1274
|
+
/** Line number (1-based), or 0 if whole File / unknown. */
|
|
1275
|
+
lineNumber?: string;
|
|
1276
|
+
}
|
|
1138
1277
|
interface Fingerprint {
|
|
1139
1278
|
/** Required. The layer ID of the final layer in the Docker image's v1 representation. */
|
|
1140
1279
|
v1Name?: string;
|
|
@@ -1385,6 +1524,8 @@ declare namespace gapi.client {
|
|
|
1385
1524
|
reason?: string;
|
|
1386
1525
|
}
|
|
1387
1526
|
interface Note {
|
|
1527
|
+
/** A note describing an AI skill analysis. */
|
|
1528
|
+
aiSkillAnalysis?: any;
|
|
1388
1529
|
/** A note describing an attestation role. */
|
|
1389
1530
|
attestation?: AttestationNote;
|
|
1390
1531
|
/** A note describing build provenance for a verifiable build. */
|
|
@@ -1418,7 +1559,8 @@ declare namespace gapi.client {
|
|
|
1418
1559
|
| 'DSSE_ATTESTATION'
|
|
1419
1560
|
| 'VULNERABILITY_ASSESSMENT'
|
|
1420
1561
|
| 'SBOM_REFERENCE'
|
|
1421
|
-
| 'SECRET'
|
|
1562
|
+
| 'SECRET'
|
|
1563
|
+
| 'AI_SKILL_ANALYSIS';
|
|
1422
1564
|
/** A detailed description of this note. */
|
|
1423
1565
|
longDescription?: string;
|
|
1424
1566
|
/** Output only. The name of the note in the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. */
|
|
@@ -1445,6 +1587,10 @@ declare namespace gapi.client {
|
|
|
1445
1587
|
vulnerabilityAssessment?: VulnerabilityAssessmentNote;
|
|
1446
1588
|
}
|
|
1447
1589
|
interface Occurrence {
|
|
1590
|
+
/** The time this advisory was published by the source. */
|
|
1591
|
+
advisoryPublishTime?: string;
|
|
1592
|
+
/** Describes an AI skill analysis. */
|
|
1593
|
+
aiSkillAnalysis?: AISkillAnalysisOccurrence;
|
|
1448
1594
|
/** Describes an attestation of an artifact. */
|
|
1449
1595
|
attestation?: AttestationOccurrence;
|
|
1450
1596
|
/** Describes a verifiable build. */
|
|
@@ -1478,7 +1624,8 @@ declare namespace gapi.client {
|
|
|
1478
1624
|
| 'DSSE_ATTESTATION'
|
|
1479
1625
|
| 'VULNERABILITY_ASSESSMENT'
|
|
1480
1626
|
| 'SBOM_REFERENCE'
|
|
1481
|
-
| 'SECRET'
|
|
1627
|
+
| 'SECRET'
|
|
1628
|
+
| 'AI_SKILL_ANALYSIS';
|
|
1482
1629
|
/** Output only. The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. */
|
|
1483
1630
|
name?: string;
|
|
1484
1631
|
/** Required. Immutable. The analysis note associated with this occurrence, in the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. This field can be used as a filter in list requests. */
|
|
@@ -1605,13 +1752,13 @@ declare namespace gapi.client {
|
|
|
1605
1752
|
}
|
|
1606
1753
|
interface Recipe {
|
|
1607
1754
|
/** Collection of all external inputs that influenced the build on top of recipe.definedInMaterial and recipe.entryPoint. For example, if the recipe type were "make", then this might be the flags passed to make aside from the target, which is captured in recipe.entryPoint. Since the arguments field can greatly vary in structure, depending on the builder and recipe type, this is of form "Any". */
|
|
1608
|
-
arguments?:
|
|
1755
|
+
arguments?: {[P in string]: any}[];
|
|
1609
1756
|
/** Index in materials containing the recipe steps that are not implied by recipe.type. For example, if the recipe type were "make", then this would point to the source containing the Makefile, not the make program itself. Set to -1 if the recipe doesn't come from a material, as zero is default unset value for int64. */
|
|
1610
1757
|
definedInMaterial?: string;
|
|
1611
1758
|
/** String identifying the entry point into the build. This is often a path to a configuration file and/or a target label within that file. The syntax and meaning are defined by recipe.type. For example, if the recipe type were "make", then this would reference the directory in which to run make as well as which target to use. */
|
|
1612
1759
|
entryPoint?: string;
|
|
1613
1760
|
/** Any other builder-controlled inputs necessary for correctly evaluating the recipe. Usually only needed for reproducing the build but not evaluated as part of policy. Since the environment field can greatly vary in structure, depending on the builder and recipe type, this is of form "Any". */
|
|
1614
|
-
environment?:
|
|
1761
|
+
environment?: {[P in string]: any}[];
|
|
1615
1762
|
/** URI indicating what type of recipe was performed. It determines the meaning of recipe.entryPoint, recipe.arguments, recipe.environment, and materials. */
|
|
1616
1763
|
type?: string;
|
|
1617
1764
|
}
|
|
@@ -1835,7 +1982,7 @@ declare namespace gapi.client {
|
|
|
1835
1982
|
/** The status code, which should be an enum value of google.rpc.Code. */
|
|
1836
1983
|
code?: number;
|
|
1837
1984
|
/** A list of messages that carry the error details. There is a common set of message types for APIs to use. */
|
|
1838
|
-
details?:
|
|
1985
|
+
details?: {[P in string]: any}[];
|
|
1839
1986
|
/** A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client. */
|
|
1840
1987
|
message?: string;
|
|
1841
1988
|
}
|
|
@@ -1965,7 +2112,8 @@ declare namespace gapi.client {
|
|
|
1965
2112
|
cvssVersion?:
|
|
1966
2113
|
| 'CVSS_VERSION_UNSPECIFIED'
|
|
1967
2114
|
| 'CVSS_VERSION_2'
|
|
1968
|
-
| 'CVSS_VERSION_3'
|
|
2115
|
+
| 'CVSS_VERSION_3'
|
|
2116
|
+
| 'CVSS_VERSION_4';
|
|
1969
2117
|
/** Details of all known distros and packages affected by this vulnerability. */
|
|
1970
2118
|
details?: Detail[];
|
|
1971
2119
|
/** The note provider assigned severity of this vulnerability. */
|
|
@@ -1992,7 +2140,8 @@ declare namespace gapi.client {
|
|
|
1992
2140
|
cvssVersion?:
|
|
1993
2141
|
| 'CVSS_VERSION_UNSPECIFIED'
|
|
1994
2142
|
| 'CVSS_VERSION_2'
|
|
1995
|
-
| 'CVSS_VERSION_3'
|
|
2143
|
+
| 'CVSS_VERSION_3'
|
|
2144
|
+
| 'CVSS_VERSION_4';
|
|
1996
2145
|
/** The distro assigned severity for this vulnerability when it is available, otherwise this is the note provider assigned severity. When there are multiple PackageIssues for this vulnerability, they can have different effective severities because some might be provided by the distro while others are provided by the language ecosystem for a language pack. For this reason, it is advised to use the effective severity on the PackageIssue level. In the case where multiple PackageIssues have differing effective severities, this field should be the highest severity for any of the PackageIssues. */
|
|
1997
2146
|
effectiveSeverity?:
|
|
1998
2147
|
| 'SEVERITY_UNSPECIFIED'
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -11,6 +11,23 @@ Install typings for Container Analysis API:
|
|
|
11
11
|
npm install @types/gapi.client.containeranalysis-v1 --save-dev
|
|
12
12
|
```
|
|
13
13
|
|
|
14
|
+
## TypeScript 6.0+
|
|
15
|
+
|
|
16
|
+
TypeScript 6.0 changed `types` to default to `[]`. You must now explicitly list type packages in `tsconfig.json`:
|
|
17
|
+
|
|
18
|
+
```json
|
|
19
|
+
{
|
|
20
|
+
"compilerOptions": {
|
|
21
|
+
"types": [
|
|
22
|
+
"gapi",
|
|
23
|
+
"gapi.auth2",
|
|
24
|
+
"gapi.client",
|
|
25
|
+
"gapi.client.containeranalysis-v1"
|
|
26
|
+
]
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
```
|
|
30
|
+
|
|
14
31
|
## Usage
|
|
15
32
|
|
|
16
33
|
You need to initialize Google API client in your code:
|