@maxim_mazurok/gapi.client.containeranalysis-v1beta1 0.2.20260313 → 0.2.20260529
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 +162 -17
- 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=v1beta1
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20260529
|
|
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?: 'SEVERITY_UNSPECIFIED' | 'CRITICAL' | 'HIGH';
|
|
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';
|
|
@@ -264,6 +273,8 @@ declare namespace gapi.client {
|
|
|
264
273
|
url?: string;
|
|
265
274
|
}
|
|
266
275
|
interface ContaineranalysisGoogleDevtoolsCloudbuildV1Artifacts {
|
|
276
|
+
/** 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. */
|
|
277
|
+
genericArtifacts?: ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsGenericArtifact[];
|
|
267
278
|
/** 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. */
|
|
268
279
|
goModules?: ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsGoModule[];
|
|
269
280
|
/** 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. */
|
|
@@ -287,6 +298,12 @@ declare namespace gapi.client {
|
|
|
287
298
|
/** Output only. Stores timing information for pushing all artifact objects. */
|
|
288
299
|
timing?: ContaineranalysisGoogleDevtoolsCloudbuildV1TimeSpan;
|
|
289
300
|
}
|
|
301
|
+
interface ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsGenericArtifact {
|
|
302
|
+
/** Required. Path to the generic artifact in the build's workspace to be uploaded to Artifact Registry. */
|
|
303
|
+
folder?: string;
|
|
304
|
+
/** Required. Registry path to upload the generic artifact to, in the form projects/$PROJECT/locations/$LOCATION/repositories/$REPO/packages/$PACKAGE/versions/$VERSION */
|
|
305
|
+
registryPath?: string;
|
|
306
|
+
}
|
|
290
307
|
interface ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsGoModule {
|
|
291
308
|
/** Optional. The Go module's "module path". e.g. example.com/foo/v2 */
|
|
292
309
|
modulePath?: string;
|
|
@@ -521,6 +538,8 @@ declare namespace gapi.client {
|
|
|
521
538
|
name?: string;
|
|
522
539
|
/** Output only. Stores timing information for pulling this build step's builder image only. */
|
|
523
540
|
pullTiming?: ContaineranalysisGoogleDevtoolsCloudbuildV1TimeSpan;
|
|
541
|
+
/** Declaration of results for this build step. */
|
|
542
|
+
results?: ContaineranalysisGoogleDevtoolsCloudbuildV1StepResult[];
|
|
524
543
|
/** A shell script to be executed in the step. When script is provided, the user cannot specify the entrypoint or args. */
|
|
525
544
|
script?: string;
|
|
526
545
|
/** 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`. */
|
|
@@ -546,6 +565,10 @@ declare namespace gapi.client {
|
|
|
546
565
|
/** 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. */
|
|
547
566
|
waitFor?: string[];
|
|
548
567
|
}
|
|
568
|
+
interface ContaineranalysisGoogleDevtoolsCloudbuildV1BuildStepResults {
|
|
569
|
+
/** Results for a build step. */
|
|
570
|
+
results?: {[P in string]: string};
|
|
571
|
+
}
|
|
549
572
|
interface ContaineranalysisGoogleDevtoolsCloudbuildV1BuildWarning {
|
|
550
573
|
/** The priority for this warning. */
|
|
551
574
|
priority?: 'PRIORITY_UNSPECIFIED' | 'INFO' | 'WARNING' | 'ALERT';
|
|
@@ -578,9 +601,17 @@ declare namespace gapi.client {
|
|
|
578
601
|
interface ContaineranalysisGoogleDevtoolsCloudbuildV1Dependency {
|
|
579
602
|
/** If set to true disable all dependency fetching (ignoring the default source as well). */
|
|
580
603
|
empty?: boolean;
|
|
604
|
+
/** Represents a generic artifact as a build dependency. */
|
|
605
|
+
genericArtifact?: ContaineranalysisGoogleDevtoolsCloudbuildV1DependencyGenericArtifactDependency;
|
|
581
606
|
/** Represents a git repository as a build dependency. */
|
|
582
607
|
gitSource?: ContaineranalysisGoogleDevtoolsCloudbuildV1DependencyGitSourceDependency;
|
|
583
608
|
}
|
|
609
|
+
interface ContaineranalysisGoogleDevtoolsCloudbuildV1DependencyGenericArtifactDependency {
|
|
610
|
+
/** Required. Where the artifact files should be placed on the worker. */
|
|
611
|
+
destPath?: string;
|
|
612
|
+
/** Required. The location to download the artifact files from. Ex: projects/p1/locations/us/repositories/r1/packages/p1/versions/v1 */
|
|
613
|
+
resource?: string;
|
|
614
|
+
}
|
|
584
615
|
interface ContaineranalysisGoogleDevtoolsCloudbuildV1DependencyGitSourceDependency {
|
|
585
616
|
/** Optional. How much history should be fetched for the build (default 1, -1 for all history). */
|
|
586
617
|
depth?: string;
|
|
@@ -672,6 +703,12 @@ declare namespace gapi.client {
|
|
|
672
703
|
buildStepImages?: string[];
|
|
673
704
|
/** 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. */
|
|
674
705
|
buildStepOutputs?: string[];
|
|
706
|
+
/** Results for build steps. step_id -> */
|
|
707
|
+
buildStepResults?: {
|
|
708
|
+
[P in string]: ContaineranalysisGoogleDevtoolsCloudbuildV1BuildStepResults;
|
|
709
|
+
};
|
|
710
|
+
/** Output only. Generic artifacts uploaded to Artifact Registry at the end of the build. */
|
|
711
|
+
genericArtifacts?: ContaineranalysisGoogleDevtoolsCloudbuildV1UploadedGenericArtifact[];
|
|
675
712
|
/** Optional. Go module artifacts uploaded to Artifact Registry at the end of the build. */
|
|
676
713
|
goModules?: ContaineranalysisGoogleDevtoolsCloudbuildV1UploadedGoModule[];
|
|
677
714
|
/** Container images that were built as a part of the build. */
|
|
@@ -733,6 +770,14 @@ declare namespace gapi.client {
|
|
|
733
770
|
/** A copy of the build's `source.storage_source_manifest`, if exists, with any revisions resolved. This feature is in Preview. */
|
|
734
771
|
resolvedStorageSourceManifest?: ContaineranalysisGoogleDevtoolsCloudbuildV1StorageSourceManifest;
|
|
735
772
|
}
|
|
773
|
+
interface ContaineranalysisGoogleDevtoolsCloudbuildV1StepResult {
|
|
774
|
+
/** Optional. The content of the attestation to be generated. */
|
|
775
|
+
attestationContent?: string;
|
|
776
|
+
/** Optional. The type of attestation to be generated. */
|
|
777
|
+
attestationType?: string;
|
|
778
|
+
/** Required. The name of the result. */
|
|
779
|
+
name?: string;
|
|
780
|
+
}
|
|
736
781
|
interface ContaineranalysisGoogleDevtoolsCloudbuildV1StorageSource {
|
|
737
782
|
/** Cloud Storage bucket containing the source (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)). */
|
|
738
783
|
bucket?: string;
|
|
@@ -757,6 +802,20 @@ declare namespace gapi.client {
|
|
|
757
802
|
/** Start of time span. */
|
|
758
803
|
startTime?: string;
|
|
759
804
|
}
|
|
805
|
+
interface ContaineranalysisGoogleDevtoolsCloudbuildV1UploadedGenericArtifact {
|
|
806
|
+
/** Output only. The hash of the whole artifact. */
|
|
807
|
+
artifactFingerprint?: ContaineranalysisGoogleDevtoolsCloudbuildV1FileHashes;
|
|
808
|
+
/** Output only. Path to the artifact in Artifact Registry. */
|
|
809
|
+
artifactRegistryPackage?: string;
|
|
810
|
+
/** Output only. The file hashes that make up the generic artifact. */
|
|
811
|
+
fileHashes?: {
|
|
812
|
+
[P in string]: ContaineranalysisGoogleDevtoolsCloudbuildV1FileHashes;
|
|
813
|
+
};
|
|
814
|
+
/** Output only. Stores timing information for pushing the specified artifact. */
|
|
815
|
+
pushTiming?: ContaineranalysisGoogleDevtoolsCloudbuildV1TimeSpan;
|
|
816
|
+
/** Output only. URI of the uploaded artifact. Ex: projects/p1/locations/us/repositories/r1/packages/p1/versions/v1 */
|
|
817
|
+
uri?: string;
|
|
818
|
+
}
|
|
760
819
|
interface ContaineranalysisGoogleDevtoolsCloudbuildV1UploadedGoModule {
|
|
761
820
|
/** Output only. Path to the artifact in Artifact Registry. */
|
|
762
821
|
artifactRegistryPackage?: string;
|
|
@@ -804,26 +863,31 @@ declare namespace gapi.client {
|
|
|
804
863
|
path?: string;
|
|
805
864
|
}
|
|
806
865
|
interface CVSS {
|
|
807
|
-
/** Defined in CVSS v3,
|
|
866
|
+
/** Attack Complexity (AC). Defined in CVSS v2, v3, v4. */
|
|
808
867
|
attackComplexity?:
|
|
809
868
|
| 'ATTACK_COMPLEXITY_UNSPECIFIED'
|
|
810
869
|
| 'ATTACK_COMPLEXITY_LOW'
|
|
811
870
|
| 'ATTACK_COMPLEXITY_HIGH'
|
|
812
871
|
| 'ATTACK_COMPLEXITY_MEDIUM';
|
|
813
|
-
/**
|
|
872
|
+
/** Attack Requirements (AT). Defined in CVSS v4. */
|
|
873
|
+
attackRequirements?:
|
|
874
|
+
| 'ATTACK_REQUIREMENTS_UNSPECIFIED'
|
|
875
|
+
| 'ATTACK_REQUIREMENTS_NONE'
|
|
876
|
+
| 'ATTACK_REQUIREMENTS_PRESENT';
|
|
877
|
+
/** Attack Vector (AV). Defined in CVSS v2, v3, v4. */
|
|
814
878
|
attackVector?:
|
|
815
879
|
| 'ATTACK_VECTOR_UNSPECIFIED'
|
|
816
880
|
| 'ATTACK_VECTOR_NETWORK'
|
|
817
881
|
| 'ATTACK_VECTOR_ADJACENT'
|
|
818
882
|
| 'ATTACK_VECTOR_LOCAL'
|
|
819
883
|
| 'ATTACK_VECTOR_PHYSICAL';
|
|
820
|
-
/** Defined in CVSS v2 */
|
|
884
|
+
/** Authentication (Au). Defined in CVSS v2. */
|
|
821
885
|
authentication?:
|
|
822
886
|
| 'AUTHENTICATION_UNSPECIFIED'
|
|
823
887
|
| 'AUTHENTICATION_MULTIPLE'
|
|
824
888
|
| 'AUTHENTICATION_SINGLE'
|
|
825
889
|
| 'AUTHENTICATION_NONE';
|
|
826
|
-
/** Defined in CVSS
|
|
890
|
+
/** Availability Impact (A). Defined in CVSS v2, v3. */
|
|
827
891
|
availabilityImpact?:
|
|
828
892
|
| 'IMPACT_UNSPECIFIED'
|
|
829
893
|
| 'IMPACT_HIGH'
|
|
@@ -833,7 +897,7 @@ declare namespace gapi.client {
|
|
|
833
897
|
| 'IMPACT_COMPLETE';
|
|
834
898
|
/** The base score is a function of the base metric scores. */
|
|
835
899
|
baseScore?: number;
|
|
836
|
-
/** Defined in CVSS
|
|
900
|
+
/** Confidentiality Impact (C). Defined in CVSS v2, v3. */
|
|
837
901
|
confidentialityImpact?:
|
|
838
902
|
| 'IMPACT_UNSPECIFIED'
|
|
839
903
|
| 'IMPACT_HIGH'
|
|
@@ -843,7 +907,7 @@ declare namespace gapi.client {
|
|
|
843
907
|
| 'IMPACT_COMPLETE';
|
|
844
908
|
exploitabilityScore?: number;
|
|
845
909
|
impactScore?: number;
|
|
846
|
-
/** Defined in CVSS
|
|
910
|
+
/** Integrity Impact (I). Defined in CVSS v2, v3. */
|
|
847
911
|
integrityImpact?:
|
|
848
912
|
| 'IMPACT_UNSPECIFIED'
|
|
849
913
|
| 'IMPACT_HIGH'
|
|
@@ -851,19 +915,69 @@ declare namespace gapi.client {
|
|
|
851
915
|
| 'IMPACT_NONE'
|
|
852
916
|
| 'IMPACT_PARTIAL'
|
|
853
917
|
| 'IMPACT_COMPLETE';
|
|
854
|
-
/** Defined in CVSS v3 */
|
|
918
|
+
/** Privileges Required (PR). Defined in CVSS v3, v4. */
|
|
855
919
|
privilegesRequired?:
|
|
856
920
|
| 'PRIVILEGES_REQUIRED_UNSPECIFIED'
|
|
857
921
|
| 'PRIVILEGES_REQUIRED_NONE'
|
|
858
922
|
| 'PRIVILEGES_REQUIRED_LOW'
|
|
859
923
|
| 'PRIVILEGES_REQUIRED_HIGH';
|
|
860
|
-
/** Defined in CVSS v3 */
|
|
924
|
+
/** Scope (S). Defined in CVSS v3. */
|
|
861
925
|
scope?: 'SCOPE_UNSPECIFIED' | 'SCOPE_UNCHANGED' | 'SCOPE_CHANGED';
|
|
862
|
-
/** Defined in CVSS
|
|
926
|
+
/** Subsequent System Availability Impact (SA). Defined in CVSS v4. */
|
|
927
|
+
subsequentSystemAvailabilityImpact?:
|
|
928
|
+
| 'IMPACT_UNSPECIFIED'
|
|
929
|
+
| 'IMPACT_HIGH'
|
|
930
|
+
| 'IMPACT_LOW'
|
|
931
|
+
| 'IMPACT_NONE'
|
|
932
|
+
| 'IMPACT_PARTIAL'
|
|
933
|
+
| 'IMPACT_COMPLETE';
|
|
934
|
+
/** Subsequent System Confidentiality Impact (SC). Defined in CVSS v4. */
|
|
935
|
+
subsequentSystemConfidentialityImpact?:
|
|
936
|
+
| 'IMPACT_UNSPECIFIED'
|
|
937
|
+
| 'IMPACT_HIGH'
|
|
938
|
+
| 'IMPACT_LOW'
|
|
939
|
+
| 'IMPACT_NONE'
|
|
940
|
+
| 'IMPACT_PARTIAL'
|
|
941
|
+
| 'IMPACT_COMPLETE';
|
|
942
|
+
/** Subsequent System Integrity Impact (SI). Defined in CVSS v4. */
|
|
943
|
+
subsequentSystemIntegrityImpact?:
|
|
944
|
+
| 'IMPACT_UNSPECIFIED'
|
|
945
|
+
| 'IMPACT_HIGH'
|
|
946
|
+
| 'IMPACT_LOW'
|
|
947
|
+
| 'IMPACT_NONE'
|
|
948
|
+
| 'IMPACT_PARTIAL'
|
|
949
|
+
| 'IMPACT_COMPLETE';
|
|
950
|
+
/** User Interaction (UI). Defined in CVSS v3, v4. */
|
|
863
951
|
userInteraction?:
|
|
864
952
|
| 'USER_INTERACTION_UNSPECIFIED'
|
|
865
953
|
| 'USER_INTERACTION_NONE'
|
|
866
|
-
| 'USER_INTERACTION_REQUIRED'
|
|
954
|
+
| 'USER_INTERACTION_REQUIRED'
|
|
955
|
+
| 'USER_INTERACTION_PASSIVE'
|
|
956
|
+
| 'USER_INTERACTION_ACTIVE';
|
|
957
|
+
/** Vulnerable System Availability Impact (VA). Defined in CVSS v4. */
|
|
958
|
+
vulnerableSystemAvailabilityImpact?:
|
|
959
|
+
| 'IMPACT_UNSPECIFIED'
|
|
960
|
+
| 'IMPACT_HIGH'
|
|
961
|
+
| 'IMPACT_LOW'
|
|
962
|
+
| 'IMPACT_NONE'
|
|
963
|
+
| 'IMPACT_PARTIAL'
|
|
964
|
+
| 'IMPACT_COMPLETE';
|
|
965
|
+
/** Vulnerable System Confidentiality Impact (VC). Defined in CVSS v4. */
|
|
966
|
+
vulnerableSystemConfidentialityImpact?:
|
|
967
|
+
| 'IMPACT_UNSPECIFIED'
|
|
968
|
+
| 'IMPACT_HIGH'
|
|
969
|
+
| 'IMPACT_LOW'
|
|
970
|
+
| 'IMPACT_NONE'
|
|
971
|
+
| 'IMPACT_PARTIAL'
|
|
972
|
+
| 'IMPACT_COMPLETE';
|
|
973
|
+
/** Vulnerable System Integrity Impact (VI). Defined in CVSS v4. */
|
|
974
|
+
vulnerableSystemIntegrityImpact?:
|
|
975
|
+
| 'IMPACT_UNSPECIFIED'
|
|
976
|
+
| 'IMPACT_HIGH'
|
|
977
|
+
| 'IMPACT_LOW'
|
|
978
|
+
| 'IMPACT_NONE'
|
|
979
|
+
| 'IMPACT_PARTIAL'
|
|
980
|
+
| 'IMPACT_COMPLETE';
|
|
867
981
|
}
|
|
868
982
|
interface CVSSv3 {
|
|
869
983
|
attackComplexity?:
|
|
@@ -1022,7 +1136,8 @@ declare namespace gapi.client {
|
|
|
1022
1136
|
| 'SPDX_RELATIONSHIP'
|
|
1023
1137
|
| 'VULNERABILITY_ASSESSMENT'
|
|
1024
1138
|
| 'SBOM_REFERENCE'
|
|
1025
|
-
| 'SECRET'
|
|
1139
|
+
| 'SECRET'
|
|
1140
|
+
| 'AI_SKILL_ANALYSIS';
|
|
1026
1141
|
}
|
|
1027
1142
|
interface Distribution {
|
|
1028
1143
|
/** The CPU architecture for which packages in this distribution channel were built. */
|
|
@@ -1157,6 +1272,24 @@ declare namespace gapi.client {
|
|
|
1157
1272
|
/** This field provides a place for the SPDX file creator to record license notices or other such related notices found in the file */
|
|
1158
1273
|
notice?: string;
|
|
1159
1274
|
}
|
|
1275
|
+
interface Finding {
|
|
1276
|
+
/** Category of the finding. */
|
|
1277
|
+
category?: string;
|
|
1278
|
+
/** Description of the finding category. */
|
|
1279
|
+
details?: string;
|
|
1280
|
+
/** Location (path and line) where the finding was detected. */
|
|
1281
|
+
location?: FindingLocation;
|
|
1282
|
+
/** Scanner determines which engine (e.g. static, llm) emitted the finding. */
|
|
1283
|
+
scanner?: 'SCANNER_UNSPECIFIED' | 'STATIC' | 'LLM';
|
|
1284
|
+
/** Severity of the finding. */
|
|
1285
|
+
severity?: 'SEVERITY_UNSPECIFIED' | 'CRITICAL' | 'HIGH';
|
|
1286
|
+
}
|
|
1287
|
+
interface FindingLocation {
|
|
1288
|
+
/** Relative path of the file containing the finding. */
|
|
1289
|
+
filePath?: string;
|
|
1290
|
+
/** Line number (1-based), or 0 if whole File / unknown. */
|
|
1291
|
+
lineNumber?: string;
|
|
1292
|
+
}
|
|
1160
1293
|
interface Fingerprint {
|
|
1161
1294
|
/** Required. The layer ID of the final layer in the Docker image's v1 representation. */
|
|
1162
1295
|
v1Name?: string;
|
|
@@ -1262,11 +1395,14 @@ declare namespace gapi.client {
|
|
|
1262
1395
|
cvssV2?: CVSS;
|
|
1263
1396
|
/** The cvss v3 score for the vulnerability. */
|
|
1264
1397
|
cvssV3?: CVSS;
|
|
1398
|
+
/** The cvss v4 score of this vulnerability. */
|
|
1399
|
+
cvssV4?: CVSS;
|
|
1265
1400
|
/** Output only. CVSS version used to populate cvss_score and severity. */
|
|
1266
1401
|
cvssVersion?:
|
|
1267
1402
|
| 'CVSS_VERSION_UNSPECIFIED'
|
|
1268
1403
|
| 'CVSS_VERSION_2'
|
|
1269
|
-
| 'CVSS_VERSION_3'
|
|
1404
|
+
| 'CVSS_VERSION_3'
|
|
1405
|
+
| 'CVSS_VERSION_4';
|
|
1270
1406
|
/** The distro assigned severity for this vulnerability when it is available, and note provider assigned severity when distro has not yet assigned a severity for this vulnerability. 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. */
|
|
1271
1407
|
effectiveSeverity?:
|
|
1272
1408
|
| 'SEVERITY_UNSPECIFIED'
|
|
@@ -1445,6 +1581,8 @@ declare namespace gapi.client {
|
|
|
1445
1581
|
version?: Version;
|
|
1446
1582
|
}
|
|
1447
1583
|
interface Note {
|
|
1584
|
+
/** A note describing an AI Skill analysis. */
|
|
1585
|
+
aiSkillAnalysis?: any;
|
|
1448
1586
|
/** A note describing an attestation role. */
|
|
1449
1587
|
attestationAuthority?: Authority;
|
|
1450
1588
|
/** A note describing a base image. */
|
|
@@ -1478,7 +1616,8 @@ declare namespace gapi.client {
|
|
|
1478
1616
|
| 'SPDX_RELATIONSHIP'
|
|
1479
1617
|
| 'VULNERABILITY_ASSESSMENT'
|
|
1480
1618
|
| 'SBOM_REFERENCE'
|
|
1481
|
-
| 'SECRET'
|
|
1619
|
+
| 'SECRET'
|
|
1620
|
+
| 'AI_SKILL_ANALYSIS';
|
|
1482
1621
|
/** A detailed description of this note. */
|
|
1483
1622
|
longDescription?: string;
|
|
1484
1623
|
/** Output only. The name of the note in the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. */
|
|
@@ -1511,6 +1650,8 @@ declare namespace gapi.client {
|
|
|
1511
1650
|
vulnerabilityAssessment?: VulnerabilityAssessmentNote;
|
|
1512
1651
|
}
|
|
1513
1652
|
interface Occurrence {
|
|
1653
|
+
/** Describes a specific AI Skill Analysis occurrence. */
|
|
1654
|
+
aiSkillAnalysis?: AISkillAnalysisOccurrence;
|
|
1514
1655
|
/** Describes an attestation of an artifact. */
|
|
1515
1656
|
attestation?: Details;
|
|
1516
1657
|
/** Describes a verifiable build. */
|
|
@@ -1546,7 +1687,8 @@ declare namespace gapi.client {
|
|
|
1546
1687
|
| 'SPDX_RELATIONSHIP'
|
|
1547
1688
|
| 'VULNERABILITY_ASSESSMENT'
|
|
1548
1689
|
| 'SBOM_REFERENCE'
|
|
1549
|
-
| 'SECRET'
|
|
1690
|
+
| 'SECRET'
|
|
1691
|
+
| 'AI_SKILL_ANALYSIS';
|
|
1550
1692
|
/** Output only. The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. */
|
|
1551
1693
|
name?: string;
|
|
1552
1694
|
/** 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. */
|
|
@@ -2003,7 +2145,7 @@ declare namespace gapi.client {
|
|
|
2003
2145
|
/** The status code, which should be an enum value of google.rpc.Code. */
|
|
2004
2146
|
code?: number;
|
|
2005
2147
|
/** A list of messages that carry the error details. There is a common set of message types for APIs to use. */
|
|
2006
|
-
details?:
|
|
2148
|
+
details?: {[P in string]: any}[];
|
|
2007
2149
|
/** 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. */
|
|
2008
2150
|
message?: string;
|
|
2009
2151
|
}
|
|
@@ -2082,11 +2224,14 @@ declare namespace gapi.client {
|
|
|
2082
2224
|
cvssV2?: CVSS;
|
|
2083
2225
|
/** The full description of the CVSS for version 3. */
|
|
2084
2226
|
cvssV3?: CVSSv3;
|
|
2227
|
+
/** The full description of the CVSS for version 4. */
|
|
2228
|
+
cvssV4?: CVSS;
|
|
2085
2229
|
/** CVSS version used to populate cvss_score and severity. */
|
|
2086
2230
|
cvssVersion?:
|
|
2087
2231
|
| 'CVSS_VERSION_UNSPECIFIED'
|
|
2088
2232
|
| 'CVSS_VERSION_2'
|
|
2089
|
-
| 'CVSS_VERSION_3'
|
|
2233
|
+
| 'CVSS_VERSION_3'
|
|
2234
|
+
| 'CVSS_VERSION_4';
|
|
2090
2235
|
/** A list of CWE for this vulnerability. For details, see: https://cwe.mitre.org/index.html */
|
|
2091
2236
|
cwe?: string[];
|
|
2092
2237
|
/** All information about the package to specifically identify this vulnerability. One entry per (version range and cpe_uri) the package vulnerability has manifested in. */
|
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-v1beta1 --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-v1beta1"
|
|
26
|
+
]
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
```
|
|
30
|
+
|
|
14
31
|
## Usage
|
|
15
32
|
|
|
16
33
|
You need to initialize Google API client in your code:
|