@maxim_mazurok/gapi.client.containeranalysis-v1alpha1 0.2.20260313 → 0.2.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 +161 -21
- 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=v1alpha1
|
|
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
|
+
/** Optional. Findings produced by the analysis. */
|
|
34
|
+
findings?: Finding[];
|
|
35
|
+
/** Optional. Maximum severity found among findings. */
|
|
36
|
+
maxSeverity?: string;
|
|
37
|
+
/** Optional. Name of the skill that produced this analysis. */
|
|
38
|
+
skillName?: string;
|
|
39
|
+
}
|
|
31
40
|
interface AnalysisCompleted {
|
|
32
41
|
/** type of analysis that were completed on a resource. */
|
|
33
42
|
analysisType?: string[];
|
|
@@ -312,6 +321,8 @@ declare namespace gapi.client {
|
|
|
312
321
|
url?: string;
|
|
313
322
|
}
|
|
314
323
|
interface ContaineranalysisGoogleDevtoolsCloudbuildV1Artifacts {
|
|
324
|
+
/** 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. */
|
|
325
|
+
genericArtifacts?: ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsGenericArtifact[];
|
|
315
326
|
/** 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. */
|
|
316
327
|
goModules?: ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsGoModule[];
|
|
317
328
|
/** 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. */
|
|
@@ -335,6 +346,12 @@ declare namespace gapi.client {
|
|
|
335
346
|
/** Output only. Stores timing information for pushing all artifact objects. */
|
|
336
347
|
timing?: ContaineranalysisGoogleDevtoolsCloudbuildV1TimeSpan;
|
|
337
348
|
}
|
|
349
|
+
interface ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsGenericArtifact {
|
|
350
|
+
/** Required. Path to the generic artifact in the build's workspace to be uploaded to Artifact Registry. */
|
|
351
|
+
folder?: string;
|
|
352
|
+
/** Required. Registry path to upload the generic artifact to, in the form projects/$PROJECT/locations/$LOCATION/repositories/$REPO/packages/$PACKAGE/versions/$VERSION */
|
|
353
|
+
registryPath?: string;
|
|
354
|
+
}
|
|
338
355
|
interface ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsGoModule {
|
|
339
356
|
/** Optional. The Go module's "module path". e.g. example.com/foo/v2 */
|
|
340
357
|
modulePath?: string;
|
|
@@ -569,6 +586,8 @@ declare namespace gapi.client {
|
|
|
569
586
|
name?: string;
|
|
570
587
|
/** Output only. Stores timing information for pulling this build step's builder image only. */
|
|
571
588
|
pullTiming?: ContaineranalysisGoogleDevtoolsCloudbuildV1TimeSpan;
|
|
589
|
+
/** Declaration of results for this build step. */
|
|
590
|
+
results?: ContaineranalysisGoogleDevtoolsCloudbuildV1StepResult[];
|
|
572
591
|
/** A shell script to be executed in the step. When script is provided, the user cannot specify the entrypoint or args. */
|
|
573
592
|
script?: string;
|
|
574
593
|
/** 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`. */
|
|
@@ -594,6 +613,10 @@ declare namespace gapi.client {
|
|
|
594
613
|
/** 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. */
|
|
595
614
|
waitFor?: string[];
|
|
596
615
|
}
|
|
616
|
+
interface ContaineranalysisGoogleDevtoolsCloudbuildV1BuildStepResults {
|
|
617
|
+
/** Results for a build step. */
|
|
618
|
+
results?: {[P in string]: string};
|
|
619
|
+
}
|
|
597
620
|
interface ContaineranalysisGoogleDevtoolsCloudbuildV1BuildWarning {
|
|
598
621
|
/** The priority for this warning. */
|
|
599
622
|
priority?: 'PRIORITY_UNSPECIFIED' | 'INFO' | 'WARNING' | 'ALERT';
|
|
@@ -626,9 +649,17 @@ declare namespace gapi.client {
|
|
|
626
649
|
interface ContaineranalysisGoogleDevtoolsCloudbuildV1Dependency {
|
|
627
650
|
/** If set to true disable all dependency fetching (ignoring the default source as well). */
|
|
628
651
|
empty?: boolean;
|
|
652
|
+
/** Represents a generic artifact as a build dependency. */
|
|
653
|
+
genericArtifact?: ContaineranalysisGoogleDevtoolsCloudbuildV1DependencyGenericArtifactDependency;
|
|
629
654
|
/** Represents a git repository as a build dependency. */
|
|
630
655
|
gitSource?: ContaineranalysisGoogleDevtoolsCloudbuildV1DependencyGitSourceDependency;
|
|
631
656
|
}
|
|
657
|
+
interface ContaineranalysisGoogleDevtoolsCloudbuildV1DependencyGenericArtifactDependency {
|
|
658
|
+
/** Required. Where the artifact files should be placed on the worker. */
|
|
659
|
+
destPath?: string;
|
|
660
|
+
/** Required. The location to download the artifact files from. Ex: projects/p1/locations/us/repositories/r1/packages/p1/versions/v1 */
|
|
661
|
+
resource?: string;
|
|
662
|
+
}
|
|
632
663
|
interface ContaineranalysisGoogleDevtoolsCloudbuildV1DependencyGitSourceDependency {
|
|
633
664
|
/** Optional. How much history should be fetched for the build (default 1, -1 for all history). */
|
|
634
665
|
depth?: string;
|
|
@@ -720,6 +751,12 @@ declare namespace gapi.client {
|
|
|
720
751
|
buildStepImages?: string[];
|
|
721
752
|
/** 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. */
|
|
722
753
|
buildStepOutputs?: string[];
|
|
754
|
+
/** Results for build steps. step_id -> */
|
|
755
|
+
buildStepResults?: {
|
|
756
|
+
[P in string]: ContaineranalysisGoogleDevtoolsCloudbuildV1BuildStepResults;
|
|
757
|
+
};
|
|
758
|
+
/** Output only. Generic artifacts uploaded to Artifact Registry at the end of the build. */
|
|
759
|
+
genericArtifacts?: ContaineranalysisGoogleDevtoolsCloudbuildV1UploadedGenericArtifact[];
|
|
723
760
|
/** Optional. Go module artifacts uploaded to Artifact Registry at the end of the build. */
|
|
724
761
|
goModules?: ContaineranalysisGoogleDevtoolsCloudbuildV1UploadedGoModule[];
|
|
725
762
|
/** Container images that were built as a part of the build. */
|
|
@@ -781,6 +818,14 @@ declare namespace gapi.client {
|
|
|
781
818
|
/** A copy of the build's `source.storage_source_manifest`, if exists, with any revisions resolved. This feature is in Preview. */
|
|
782
819
|
resolvedStorageSourceManifest?: ContaineranalysisGoogleDevtoolsCloudbuildV1StorageSourceManifest;
|
|
783
820
|
}
|
|
821
|
+
interface ContaineranalysisGoogleDevtoolsCloudbuildV1StepResult {
|
|
822
|
+
/** Optional. The content of the attestation to be generated. */
|
|
823
|
+
attestationContent?: string;
|
|
824
|
+
/** Optional. The type of attestation to be generated. */
|
|
825
|
+
attestationType?: string;
|
|
826
|
+
/** Required. The name of the result. */
|
|
827
|
+
name?: string;
|
|
828
|
+
}
|
|
784
829
|
interface ContaineranalysisGoogleDevtoolsCloudbuildV1StorageSource {
|
|
785
830
|
/** Cloud Storage bucket containing the source (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)). */
|
|
786
831
|
bucket?: string;
|
|
@@ -805,6 +850,20 @@ declare namespace gapi.client {
|
|
|
805
850
|
/** Start of time span. */
|
|
806
851
|
startTime?: string;
|
|
807
852
|
}
|
|
853
|
+
interface ContaineranalysisGoogleDevtoolsCloudbuildV1UploadedGenericArtifact {
|
|
854
|
+
/** Output only. The hash of the whole artifact. */
|
|
855
|
+
artifactFingerprint?: ContaineranalysisGoogleDevtoolsCloudbuildV1FileHashes;
|
|
856
|
+
/** Output only. Path to the artifact in Artifact Registry. */
|
|
857
|
+
artifactRegistryPackage?: string;
|
|
858
|
+
/** Output only. The file hashes that make up the generic artifact. */
|
|
859
|
+
fileHashes?: {
|
|
860
|
+
[P in string]: ContaineranalysisGoogleDevtoolsCloudbuildV1FileHashes;
|
|
861
|
+
};
|
|
862
|
+
/** Output only. Stores timing information for pushing the specified artifact. */
|
|
863
|
+
pushTiming?: ContaineranalysisGoogleDevtoolsCloudbuildV1TimeSpan;
|
|
864
|
+
/** Output only. URI of the uploaded artifact. Ex: projects/p1/locations/us/repositories/r1/packages/p1/versions/v1 */
|
|
865
|
+
uri?: string;
|
|
866
|
+
}
|
|
808
867
|
interface ContaineranalysisGoogleDevtoolsCloudbuildV1UploadedGoModule {
|
|
809
868
|
/** Output only. Path to the artifact in Artifact Registry. */
|
|
810
869
|
artifactRegistryPackage?: string;
|
|
@@ -858,26 +917,31 @@ declare namespace gapi.client {
|
|
|
858
917
|
operationId?: string;
|
|
859
918
|
}
|
|
860
919
|
interface CVSS {
|
|
861
|
-
/** Defined in CVSS v3,
|
|
920
|
+
/** Optional. Attack Complexity (AC). Defined in CVSS v2, v3, v4. */
|
|
862
921
|
attackComplexity?:
|
|
863
922
|
| 'ATTACK_COMPLEXITY_UNSPECIFIED'
|
|
864
923
|
| 'ATTACK_COMPLEXITY_LOW'
|
|
865
924
|
| 'ATTACK_COMPLEXITY_HIGH'
|
|
866
925
|
| 'ATTACK_COMPLEXITY_MEDIUM';
|
|
867
|
-
/**
|
|
926
|
+
/** Optional. Attack Requirements (AT). Defined in CVSS v4. */
|
|
927
|
+
attackRequirements?:
|
|
928
|
+
| 'ATTACK_REQUIREMENTS_UNSPECIFIED'
|
|
929
|
+
| 'ATTACK_REQUIREMENTS_NONE'
|
|
930
|
+
| 'ATTACK_REQUIREMENTS_PRESENT';
|
|
931
|
+
/** Optional. Attack Vector (AV). Defined in CVSS v2, v3, v4. */
|
|
868
932
|
attackVector?:
|
|
869
933
|
| 'ATTACK_VECTOR_UNSPECIFIED'
|
|
870
934
|
| 'ATTACK_VECTOR_NETWORK'
|
|
871
935
|
| 'ATTACK_VECTOR_ADJACENT'
|
|
872
936
|
| 'ATTACK_VECTOR_LOCAL'
|
|
873
937
|
| 'ATTACK_VECTOR_PHYSICAL';
|
|
874
|
-
/** Defined in CVSS v2 */
|
|
938
|
+
/** Optional. Authentication (Au). Defined in CVSS v2. */
|
|
875
939
|
authentication?:
|
|
876
940
|
| 'AUTHENTICATION_UNSPECIFIED'
|
|
877
941
|
| 'AUTHENTICATION_MULTIPLE'
|
|
878
942
|
| 'AUTHENTICATION_SINGLE'
|
|
879
943
|
| 'AUTHENTICATION_NONE';
|
|
880
|
-
/** Defined in CVSS
|
|
944
|
+
/** Optional. Availability Impact (A). Defined in CVSS v2, v3. */
|
|
881
945
|
availabilityImpact?:
|
|
882
946
|
| 'IMPACT_UNSPECIFIED'
|
|
883
947
|
| 'IMPACT_HIGH'
|
|
@@ -885,9 +949,9 @@ declare namespace gapi.client {
|
|
|
885
949
|
| 'IMPACT_NONE'
|
|
886
950
|
| 'IMPACT_PARTIAL'
|
|
887
951
|
| 'IMPACT_COMPLETE';
|
|
888
|
-
/** The base score is a function of the base metric scores. */
|
|
952
|
+
/** Optional. The base score is a function of the base metric scores. */
|
|
889
953
|
baseScore?: number;
|
|
890
|
-
/** Defined in CVSS
|
|
954
|
+
/** Optional. Confidentiality Impact (C). Defined in CVSS v2, v3. */
|
|
891
955
|
confidentialityImpact?:
|
|
892
956
|
| 'IMPACT_UNSPECIFIED'
|
|
893
957
|
| 'IMPACT_HIGH'
|
|
@@ -897,7 +961,7 @@ declare namespace gapi.client {
|
|
|
897
961
|
| 'IMPACT_COMPLETE';
|
|
898
962
|
exploitabilityScore?: number;
|
|
899
963
|
impactScore?: number;
|
|
900
|
-
/** Defined in CVSS
|
|
964
|
+
/** Optional. Integrity Impact (I). Defined in CVSS v2, v3. */
|
|
901
965
|
integrityImpact?:
|
|
902
966
|
| 'IMPACT_UNSPECIFIED'
|
|
903
967
|
| 'IMPACT_HIGH'
|
|
@@ -905,19 +969,69 @@ declare namespace gapi.client {
|
|
|
905
969
|
| 'IMPACT_NONE'
|
|
906
970
|
| 'IMPACT_PARTIAL'
|
|
907
971
|
| 'IMPACT_COMPLETE';
|
|
908
|
-
/** Defined in CVSS v3 */
|
|
972
|
+
/** Optional. Privileges Required (PR). Defined in CVSS v3, v4. */
|
|
909
973
|
privilegesRequired?:
|
|
910
974
|
| 'PRIVILEGES_REQUIRED_UNSPECIFIED'
|
|
911
975
|
| 'PRIVILEGES_REQUIRED_NONE'
|
|
912
976
|
| 'PRIVILEGES_REQUIRED_LOW'
|
|
913
977
|
| 'PRIVILEGES_REQUIRED_HIGH';
|
|
914
|
-
/** Defined in CVSS v3 */
|
|
978
|
+
/** Optional. Scope (S). Defined in CVSS v3. */
|
|
915
979
|
scope?: 'SCOPE_UNSPECIFIED' | 'SCOPE_UNCHANGED' | 'SCOPE_CHANGED';
|
|
916
|
-
/** Defined in CVSS
|
|
980
|
+
/** Optional. Subsequent System Availability Impact (SA). Defined in CVSS v4. */
|
|
981
|
+
subsequentSystemAvailabilityImpact?:
|
|
982
|
+
| 'IMPACT_UNSPECIFIED'
|
|
983
|
+
| 'IMPACT_HIGH'
|
|
984
|
+
| 'IMPACT_LOW'
|
|
985
|
+
| 'IMPACT_NONE'
|
|
986
|
+
| 'IMPACT_PARTIAL'
|
|
987
|
+
| 'IMPACT_COMPLETE';
|
|
988
|
+
/** Optional. Subsequent System Confidentiality Impact (SC). Defined in CVSS v4. */
|
|
989
|
+
subsequentSystemConfidentialityImpact?:
|
|
990
|
+
| 'IMPACT_UNSPECIFIED'
|
|
991
|
+
| 'IMPACT_HIGH'
|
|
992
|
+
| 'IMPACT_LOW'
|
|
993
|
+
| 'IMPACT_NONE'
|
|
994
|
+
| 'IMPACT_PARTIAL'
|
|
995
|
+
| 'IMPACT_COMPLETE';
|
|
996
|
+
/** Optional. Subsequent System Integrity Impact (SI). Defined in CVSS v4. */
|
|
997
|
+
subsequentSystemIntegrityImpact?:
|
|
998
|
+
| 'IMPACT_UNSPECIFIED'
|
|
999
|
+
| 'IMPACT_HIGH'
|
|
1000
|
+
| 'IMPACT_LOW'
|
|
1001
|
+
| 'IMPACT_NONE'
|
|
1002
|
+
| 'IMPACT_PARTIAL'
|
|
1003
|
+
| 'IMPACT_COMPLETE';
|
|
1004
|
+
/** Optional. User Interaction (UI). Defined in CVSS v3, v4. */
|
|
917
1005
|
userInteraction?:
|
|
918
1006
|
| 'USER_INTERACTION_UNSPECIFIED'
|
|
919
1007
|
| 'USER_INTERACTION_NONE'
|
|
920
|
-
| 'USER_INTERACTION_REQUIRED'
|
|
1008
|
+
| 'USER_INTERACTION_REQUIRED'
|
|
1009
|
+
| 'USER_INTERACTION_PASSIVE'
|
|
1010
|
+
| 'USER_INTERACTION_ACTIVE';
|
|
1011
|
+
/** Optional. Vulnerable System Availability Impact (VA). Defined in CVSS v4. */
|
|
1012
|
+
vulnerableSystemAvailabilityImpact?:
|
|
1013
|
+
| 'IMPACT_UNSPECIFIED'
|
|
1014
|
+
| 'IMPACT_HIGH'
|
|
1015
|
+
| 'IMPACT_LOW'
|
|
1016
|
+
| 'IMPACT_NONE'
|
|
1017
|
+
| 'IMPACT_PARTIAL'
|
|
1018
|
+
| 'IMPACT_COMPLETE';
|
|
1019
|
+
/** Optional. Vulnerable System Confidentiality Impact (VC). Defined in CVSS v4. */
|
|
1020
|
+
vulnerableSystemConfidentialityImpact?:
|
|
1021
|
+
| 'IMPACT_UNSPECIFIED'
|
|
1022
|
+
| 'IMPACT_HIGH'
|
|
1023
|
+
| 'IMPACT_LOW'
|
|
1024
|
+
| 'IMPACT_NONE'
|
|
1025
|
+
| 'IMPACT_PARTIAL'
|
|
1026
|
+
| 'IMPACT_COMPLETE';
|
|
1027
|
+
/** Optional. Vulnerable System Integrity Impact (VI). Defined in CVSS v4. */
|
|
1028
|
+
vulnerableSystemIntegrityImpact?:
|
|
1029
|
+
| 'IMPACT_UNSPECIFIED'
|
|
1030
|
+
| 'IMPACT_HIGH'
|
|
1031
|
+
| 'IMPACT_LOW'
|
|
1032
|
+
| 'IMPACT_NONE'
|
|
1033
|
+
| 'IMPACT_PARTIAL'
|
|
1034
|
+
| 'IMPACT_COMPLETE';
|
|
921
1035
|
}
|
|
922
1036
|
interface Deployable {
|
|
923
1037
|
/** Resource URI for the artifact being deployed. */
|
|
@@ -1037,7 +1151,8 @@ declare namespace gapi.client {
|
|
|
1037
1151
|
| 'DSSE_ATTESTATION'
|
|
1038
1152
|
| 'VULNERABILITY_ASSESSMENT'
|
|
1039
1153
|
| 'SBOM_REFERENCE'
|
|
1040
|
-
| 'SECRET'
|
|
1154
|
+
| 'SECRET'
|
|
1155
|
+
| 'AI_SKILL_ANALYSIS';
|
|
1041
1156
|
}
|
|
1042
1157
|
interface Distribution {
|
|
1043
1158
|
/** The CPU architecture for which packages in this distribution channel were built */
|
|
@@ -1194,6 +1309,22 @@ declare namespace gapi.client {
|
|
|
1194
1309
|
/** This field provides a place for the SPDX file creator to record license notices or other such related notices found in the file */
|
|
1195
1310
|
notice?: string;
|
|
1196
1311
|
}
|
|
1312
|
+
interface Finding {
|
|
1313
|
+
/** Optional. Category of the finding. */
|
|
1314
|
+
category?: string;
|
|
1315
|
+
/** Optional. Location (path and line) where the finding was detected. */
|
|
1316
|
+
location?: FindingLocation;
|
|
1317
|
+
/** Optional. Scanner determines which engine (e.g. static, llm) emitted the finding. */
|
|
1318
|
+
scanner?: string;
|
|
1319
|
+
/** Optional. Severity of the finding. */
|
|
1320
|
+
severity?: string;
|
|
1321
|
+
}
|
|
1322
|
+
interface FindingLocation {
|
|
1323
|
+
/** Optional. Relative path of the file containing the finding. */
|
|
1324
|
+
filePath?: string;
|
|
1325
|
+
/** Optional. Line number (1-based), or 0 if whole File / unknown. */
|
|
1326
|
+
lineNumber?: string;
|
|
1327
|
+
}
|
|
1197
1328
|
interface Fingerprint {
|
|
1198
1329
|
/** The layer-id of the final layer in the Docker image's v1 representation. This field can be used as a filter in list requests. */
|
|
1199
1330
|
v1Name?: string;
|
|
@@ -1489,6 +1620,8 @@ declare namespace gapi.client {
|
|
|
1489
1620
|
reason?: string;
|
|
1490
1621
|
}
|
|
1491
1622
|
interface Note {
|
|
1623
|
+
/** A note describing an AI skill analysis. */
|
|
1624
|
+
aiSkillAnalysis?: any;
|
|
1492
1625
|
/** A note describing an attestation role. */
|
|
1493
1626
|
attestationAuthority?: AttestationAuthority;
|
|
1494
1627
|
/** A note describing a base image. */
|
|
@@ -1526,7 +1659,8 @@ declare namespace gapi.client {
|
|
|
1526
1659
|
| 'DSSE_ATTESTATION'
|
|
1527
1660
|
| 'VULNERABILITY_ASSESSMENT'
|
|
1528
1661
|
| 'SBOM_REFERENCE'
|
|
1529
|
-
| 'SECRET'
|
|
1662
|
+
| 'SECRET'
|
|
1663
|
+
| 'AI_SKILL_ANALYSIS';
|
|
1530
1664
|
/** A detailed description of this `Note`. */
|
|
1531
1665
|
longDescription?: string;
|
|
1532
1666
|
/** The name of the note in the form "projects/{provider_project_id}/notes/{NOTE_ID}" */
|
|
@@ -1559,6 +1693,8 @@ declare namespace gapi.client {
|
|
|
1559
1693
|
vulnerabilityType?: VulnerabilityType;
|
|
1560
1694
|
}
|
|
1561
1695
|
interface Occurrence {
|
|
1696
|
+
/** This represents an AI skill analysis occurrence */
|
|
1697
|
+
aiSkillAnalysis?: AISkillAnalysisOccurrence;
|
|
1562
1698
|
/** Describes an attestation of an artifact. */
|
|
1563
1699
|
attestation?: Attestation;
|
|
1564
1700
|
/** Build details for a verifiable build. */
|
|
@@ -1598,7 +1734,8 @@ declare namespace gapi.client {
|
|
|
1598
1734
|
| 'DSSE_ATTESTATION'
|
|
1599
1735
|
| 'VULNERABILITY_ASSESSMENT'
|
|
1600
1736
|
| 'SBOM_REFERENCE'
|
|
1601
|
-
| 'SECRET'
|
|
1737
|
+
| 'SECRET'
|
|
1738
|
+
| 'AI_SKILL_ANALYSIS';
|
|
1602
1739
|
/** Output only. The name of the `Occurrence` in the form "projects/{project_id}/occurrences/{OCCURRENCE_ID}" */
|
|
1603
1740
|
name?: string;
|
|
1604
1741
|
/** An analysis note associated with this image, in the form "providers/{provider_id}/notes/{NOTE_ID}" This field can be used as a filter in list requests. */
|
|
@@ -1778,13 +1915,13 @@ declare namespace gapi.client {
|
|
|
1778
1915
|
}
|
|
1779
1916
|
interface Recipe {
|
|
1780
1917
|
/** 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. */
|
|
1781
|
-
arguments?:
|
|
1918
|
+
arguments?: {[P in string]: any}[];
|
|
1782
1919
|
/** 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. */
|
|
1783
1920
|
definedInMaterial?: string;
|
|
1784
1921
|
/** 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. */
|
|
1785
1922
|
entryPoint?: string;
|
|
1786
1923
|
/** 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. */
|
|
1787
|
-
environment?:
|
|
1924
|
+
environment?: {[P in string]: any}[];
|
|
1788
1925
|
/** URI indicating what type of recipe was performed. It determines the meaning of recipe.entryPoint, recipe.arguments, recipe.environment, and materials. */
|
|
1789
1926
|
type?: string;
|
|
1790
1927
|
}
|
|
@@ -2144,7 +2281,7 @@ declare namespace gapi.client {
|
|
|
2144
2281
|
/** The status code, which should be an enum value of google.rpc.Code. */
|
|
2145
2282
|
code?: number;
|
|
2146
2283
|
/** A list of messages that carry the error details. There is a common set of message types for APIs to use. */
|
|
2147
|
-
details?:
|
|
2284
|
+
details?: {[P in string]: any}[];
|
|
2148
2285
|
/** 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. */
|
|
2149
2286
|
message?: string;
|
|
2150
2287
|
}
|
|
@@ -2298,7 +2435,8 @@ declare namespace gapi.client {
|
|
|
2298
2435
|
cvssVersion?:
|
|
2299
2436
|
| 'CVSS_VERSION_UNSPECIFIED'
|
|
2300
2437
|
| 'CVSS_VERSION_2'
|
|
2301
|
-
| 'CVSS_VERSION_3'
|
|
2438
|
+
| 'CVSS_VERSION_3'
|
|
2439
|
+
| 'CVSS_VERSION_4';
|
|
2302
2440
|
/** The distro assigned severity for this vulnerability when that is available and note provider assigned severity when distro has not yet assigned a severity for this vulnerability. When there are multiple package issues for this vulnerability, they can have different effective severities because some might come from the distro and some might come from installed language packs (e.g. Maven JARs or Go binaries). For this reason, it is advised to use the effective severity on the PackageIssue level, as this field may eventually be deprecated. In the case where multiple PackageIssues have different effective severities, the one set here will be the highest severity of any of the PackageIssues. */
|
|
2303
2441
|
effectiveSeverity?:
|
|
2304
2442
|
| 'SEVERITY_UNSPECIFIED'
|
|
@@ -2347,7 +2485,8 @@ declare namespace gapi.client {
|
|
|
2347
2485
|
cvssVersion?:
|
|
2348
2486
|
| 'CVSS_VERSION_UNSPECIFIED'
|
|
2349
2487
|
| 'CVSS_VERSION_2'
|
|
2350
|
-
| 'CVSS_VERSION_3'
|
|
2488
|
+
| 'CVSS_VERSION_3'
|
|
2489
|
+
| 'CVSS_VERSION_4';
|
|
2351
2490
|
/** A list of CWE for this vulnerability. For details, see: https://cwe.mitre.org/index.html */
|
|
2352
2491
|
cwe?: string[];
|
|
2353
2492
|
/** All information about the package to specifically identify this vulnerability. One entry per (version range and cpe_uri) the package vulnerability has manifested in. */
|
|
@@ -2944,7 +3083,8 @@ declare namespace gapi.client {
|
|
|
2944
3083
|
| 'DSSE_ATTESTATION'
|
|
2945
3084
|
| 'VULNERABILITY_ASSESSMENT'
|
|
2946
3085
|
| 'SBOM_REFERENCE'
|
|
2947
|
-
| 'SECRET'
|
|
3086
|
+
| 'SECRET'
|
|
3087
|
+
| 'AI_SKILL_ANALYSIS';
|
|
2948
3088
|
/** The name field contains the project Id. For example: "projects/{project_id} @Deprecated */
|
|
2949
3089
|
name?: string;
|
|
2950
3090
|
/** OAuth 2.0 token for the current user. */
|
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-v1alpha1 --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-v1alpha1"
|
|
26
|
+
]
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
```
|
|
30
|
+
|
|
14
31
|
## Usage
|
|
15
32
|
|
|
16
33
|
You need to initialize Google API client in your code:
|