@maxim_mazurok/gapi.client.containeranalysis-v1 0.0.20230623 → 0.0.20230717

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.
Files changed (3) hide show
  1. package/index.d.ts +93 -3
  2. package/package.json +1 -1
  3. package/tests.ts +262 -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://containeranalysis.googleapis.com/$discovery/rest?version=v1
12
- // Revision: 20230623
12
+ // Revision: 20230717
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -49,7 +49,7 @@ declare namespace gapi.client {
49
49
  string[];
50
50
  }
51
51
  interface Assessment {
52
- /** Holds the MITRE standard Common Vulnerabilities and Exposures (CVE) tracking number for the vulnerability. */
52
+ /** Holds the MITRE standard Common Vulnerabilities and Exposures (CVE) tracking number for the vulnerability. Deprecated: Use vulnerability_id instead to denote CVEs. */
53
53
  cve?:
54
54
  string;
55
55
  /** Contains information about the impact of this vulnerability, this will change with time. */
@@ -76,6 +76,9 @@ declare namespace gapi.client {
76
76
  /** Provides the state of this Vulnerability assessment. */
77
77
  state?:
78
78
  string;
79
+ /** The vulnerability identifier for this Assessment. Will hold one of common identifiers e.g. CVE, GHSA etc. */
80
+ vulnerabilityId?:
81
+ string;
79
82
  }
80
83
  interface AttestationNote {
81
84
  /** Hint hints at the purpose of the attestation authority. */
@@ -150,10 +153,28 @@ declare namespace gapi.client {
150
153
  role?:
151
154
  string;
152
155
  }
156
+ interface BuildDefinition {
157
+ buildType?:
158
+ string;
159
+ externalParameters?:
160
+ { [P in string]: any };
161
+ internalParameters?:
162
+ { [P in string]: any };
163
+ resolvedDependencies?:
164
+ ResourceDescriptor[];
165
+ }
153
166
  interface BuilderConfig {
154
167
  id?:
155
168
  string;
156
169
  }
170
+ interface BuildMetadata {
171
+ finishedOn?:
172
+ string;
173
+ invocationId?:
174
+ string;
175
+ startedOn?:
176
+ string;
177
+ }
157
178
  interface BuildNote {
158
179
  /** Required. Immutable. Version of the builder which produced this build. */
159
180
  builderVersion?:
@@ -163,6 +184,12 @@ declare namespace gapi.client {
163
184
  /** Deprecated. See InTotoStatement for the replacement. In-toto Provenance representation as defined in spec. */
164
185
  intotoProvenance?:
165
186
  InTotoProvenance;
187
+ /**
188
+ * In-Toto Slsa Provenance V1 represents a slsa provenance meeting the slsa spec, wrapped in an in-toto statement. This allows for direct jsonification of a to-spec in-toto slsa
189
+ * statement with a to-spec slsa provenance.
190
+ */
191
+ inTotoSlsaProvenanceV1?:
192
+ InTotoSlsaProvenanceV1;
166
193
  /**
167
194
  * In-toto Statement representation as defined in spec. The intoto_statement can contain any type of provenance. The serialized payload of the statement can be stored and signed in the
168
195
  * Occurrence's envelope.
@@ -1227,6 +1254,9 @@ declare namespace gapi.client {
1227
1254
  /** The last time this resource was scanned. */
1228
1255
  lastScanTime?:
1229
1256
  string;
1257
+ /** The status of an SBOM generation. */
1258
+ sbomStatus?:
1259
+ SBOMStatus;
1230
1260
  }
1231
1261
  interface Distribution {
1232
1262
  /** The CPU architecture for which packages in this distribution channel were built. */
@@ -1488,6 +1518,17 @@ declare namespace gapi.client {
1488
1518
  recipe?:
1489
1519
  Recipe;
1490
1520
  }
1521
+ interface InTotoSlsaProvenanceV1 {
1522
+ /** InToto spec defined at https://github.com/in-toto/attestation/tree/main/spec#statement */
1523
+ _type?:
1524
+ string;
1525
+ predicate?:
1526
+ SlsaProvenanceV1;
1527
+ predicateType?:
1528
+ string;
1529
+ subject?:
1530
+ Subject[];
1531
+ }
1491
1532
  interface InTotoStatement {
1492
1533
  /** Always `https://in-toto.io/Statement/v0.1`. */
1493
1534
  _type?:
@@ -1884,6 +1925,14 @@ declare namespace gapi.client {
1884
1925
  repoName?:
1885
1926
  string;
1886
1927
  }
1928
+ interface ProvenanceBuilder {
1929
+ builderDependencies?:
1930
+ ResourceDescriptor[];
1931
+ id?:
1932
+ string;
1933
+ version?:
1934
+ { [P in string]: string };
1935
+ }
1887
1936
  interface Publisher {
1888
1937
  /** Provides information about the authority of the issuing party to release the document, in particular, the party's constituency and responsibilities or other obligations. */
1889
1938
  issuingAuthority?:
@@ -1952,6 +2001,30 @@ declare namespace gapi.client {
1952
2001
  uid?:
1953
2002
  string;
1954
2003
  }
2004
+ interface ResourceDescriptor {
2005
+ annotations?:
2006
+ { [P in string]: any };
2007
+ content?:
2008
+ string;
2009
+ digest?:
2010
+ { [P in string]: string };
2011
+ downloadLocation?:
2012
+ string;
2013
+ mediaType?:
2014
+ string;
2015
+ name?:
2016
+ string;
2017
+ uri?:
2018
+ string;
2019
+ }
2020
+ interface RunDetails {
2021
+ builder?:
2022
+ ProvenanceBuilder;
2023
+ byproducts?:
2024
+ ResourceDescriptor[];
2025
+ metadata?:
2026
+ BuildMetadata;
2027
+ }
1955
2028
  interface SbomReferenceIntotoPayload {
1956
2029
  /** Identifier for the schema of the Statement. */
1957
2030
  _type?:
@@ -1999,6 +2072,14 @@ declare namespace gapi.client {
1999
2072
  signatures?:
2000
2073
  EnvelopeSignature[];
2001
2074
  }
2075
+ interface SBOMStatus {
2076
+ /** If there was an error generating an SBOM, this will indicate what that error was. */
2077
+ error?:
2078
+ string;
2079
+ /** The progress of the SBOM generation. */
2080
+ sbomState?:
2081
+ string;
2082
+ }
2002
2083
  interface SetIamPolicyRequest {
2003
2084
  /**
2004
2085
  * REQUIRED: The complete policy to be applied to the `resource`. The size of the policy is limited to a few 10s of KB. An empty policy is a valid policy but certain Google Cloud
@@ -2078,6 +2159,12 @@ declare namespace gapi.client {
2078
2159
  recipe?:
2079
2160
  SlsaRecipe;
2080
2161
  }
2162
+ interface SlsaProvenanceV1 {
2163
+ buildDefinition?:
2164
+ BuildDefinition;
2165
+ runDetails?:
2166
+ RunDetails;
2167
+ }
2081
2168
  interface SlsaProvenanceZeroTwo {
2082
2169
  buildConfig?:
2083
2170
  { [P in string]: any };
@@ -2268,7 +2355,7 @@ declare namespace gapi.client {
2268
2355
  string;
2269
2356
  }
2270
2357
  interface VexAssessment {
2271
- /** Holds the MITRE standard Common Vulnerabilities and Exposures (CVE) tracking number for the vulnerability. */
2358
+ /** Holds the MITRE standard Common Vulnerabilities and Exposures (CVE) tracking number for the vulnerability. Deprecated: Use vulnerability_id instead to denote CVEs. */
2272
2359
  cve?:
2273
2360
  string;
2274
2361
  /** Contains information about the impact of this vulnerability, this will change with time. */
@@ -2289,6 +2376,9 @@ declare namespace gapi.client {
2289
2376
  /** Provides the state of this Vulnerability assessment. */
2290
2377
  state?:
2291
2378
  string;
2379
+ /** The vulnerability identifier for this Assessment. Will hold one of common identifiers e.g. CVE, GHSA etc. */
2380
+ vulnerabilityId?:
2381
+ string;
2292
2382
  }
2293
2383
  interface Volume {
2294
2384
  /** Name of the volume to mount. Volume names must be unique per build step and must be valid names for Docker volumes. Each named volume must be used by at least two build steps. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.containeranalysis-v1",
3
- "version": "0.0.20230623",
3
+ "version": "0.0.20230717",
4
4
  "description": "TypeScript typings for Container Analysis API v1",
5
5
  "license": "MIT",
6
6
  "author": {
package/tests.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
4
4
  // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
5
5
 
6
- // Revision: 20230623
6
+ // Revision: 20230717
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -302,6 +302,7 @@ gapi.load('client', async () => {
302
302
  ],
303
303
  shortDescription: "Test string",
304
304
  state: "Test string",
305
+ vulnerabilityId: "Test string",
305
306
  },
306
307
  languageCode: "Test string",
307
308
  longDescription: "Test string",
@@ -593,6 +594,7 @@ gapi.load('client', async () => {
593
594
  ],
594
595
  shortDescription: "Test string",
595
596
  state: "Test string",
597
+ vulnerabilityId: "Test string",
596
598
  },
597
599
  languageCode: "Test string",
598
600
  longDescription: "Test string",
@@ -909,6 +911,7 @@ gapi.load('client', async () => {
909
911
  ],
910
912
  shortDescription: "Test string",
911
913
  state: "Test string",
914
+ vulnerabilityId: "Test string",
912
915
  },
913
916
  languageCode: "Test string",
914
917
  longDescription: "Test string",
@@ -1026,6 +1029,87 @@ gapi.load('client', async () => {
1026
1029
  type: "Test string",
1027
1030
  },
1028
1031
  },
1032
+ inTotoSlsaProvenanceV1: {
1033
+ _type: "Test string",
1034
+ predicate: {
1035
+ buildDefinition: {
1036
+ buildType: "Test string",
1037
+ externalParameters: {
1038
+ A: 42
1039
+ },
1040
+ internalParameters: {
1041
+ A: 42
1042
+ },
1043
+ resolvedDependencies: [
1044
+ {
1045
+ annotations: {
1046
+ A: 42
1047
+ },
1048
+ content: "Test string",
1049
+ digest: {
1050
+ A: "Test string"
1051
+ },
1052
+ downloadLocation: "Test string",
1053
+ mediaType: "Test string",
1054
+ name: "Test string",
1055
+ uri: "Test string",
1056
+ }
1057
+ ],
1058
+ },
1059
+ runDetails: {
1060
+ builder: {
1061
+ builderDependencies: [
1062
+ {
1063
+ annotations: {
1064
+ A: 42
1065
+ },
1066
+ content: "Test string",
1067
+ digest: {
1068
+ A: "Test string"
1069
+ },
1070
+ downloadLocation: "Test string",
1071
+ mediaType: "Test string",
1072
+ name: "Test string",
1073
+ uri: "Test string",
1074
+ }
1075
+ ],
1076
+ id: "Test string",
1077
+ version: {
1078
+ A: "Test string"
1079
+ },
1080
+ },
1081
+ byproducts: [
1082
+ {
1083
+ annotations: {
1084
+ A: 42
1085
+ },
1086
+ content: "Test string",
1087
+ digest: {
1088
+ A: "Test string"
1089
+ },
1090
+ downloadLocation: "Test string",
1091
+ mediaType: "Test string",
1092
+ name: "Test string",
1093
+ uri: "Test string",
1094
+ }
1095
+ ],
1096
+ metadata: {
1097
+ finishedOn: "Test string",
1098
+ invocationId: "Test string",
1099
+ startedOn: "Test string",
1100
+ },
1101
+ },
1102
+ },
1103
+ predicateType: "Test string",
1104
+ subject: [
1105
+ {
1106
+ digest: {
1107
+ A: "Test string"
1108
+ },
1109
+ name: "Test string",
1110
+ }
1111
+ ],
1112
+ },
1029
1113
  intotoStatement: {
1030
1114
  _type: "Test string",
1031
1115
  predicateType: "Test string",
@@ -1323,6 +1407,10 @@ gapi.load('client', async () => {
1323
1407
  continuousAnalysis: "Test string",
1324
1408
  cpe: "Test string",
1325
1409
  lastScanTime: "Test string",
1410
+ sbomStatus: {
1411
+ error: "Test string",
1412
+ sbomState: "Test string",
1413
+ },
1326
1414
  },
1327
1415
  dsseAttestation: {
1328
1416
  envelope: {
@@ -1694,6 +1782,7 @@ gapi.load('client', async () => {
1694
1782
  }
1695
1783
  ],
1696
1784
  state: "Test string",
1785
+ vulnerabilityId: "Test string",
1697
1786
  },
1698
1787
  },
1699
1788
  }
@@ -1752,6 +1841,87 @@ gapi.load('client', async () => {
1752
1841
  type: "Test string",
1753
1842
  },
1754
1843
  },
1844
+ inTotoSlsaProvenanceV1: {
1845
+ _type: "Test string",
1846
+ predicate: {
1847
+ buildDefinition: {
1848
+ buildType: "Test string",
1849
+ externalParameters: {
1850
+ A: 42
1851
+ },
1852
+ internalParameters: {
1853
+ A: 42
1854
+ },
1855
+ resolvedDependencies: [
1856
+ {
1857
+ annotations: {
1858
+ A: 42
1859
+ },
1860
+ content: "Test string",
1861
+ digest: {
1862
+ A: "Test string"
1863
+ },
1864
+ downloadLocation: "Test string",
1865
+ mediaType: "Test string",
1866
+ name: "Test string",
1867
+ uri: "Test string",
1868
+ }
1869
+ ],
1870
+ },
1871
+ runDetails: {
1872
+ builder: {
1873
+ builderDependencies: [
1874
+ {
1875
+ annotations: {
1876
+ A: 42
1877
+ },
1878
+ content: "Test string",
1879
+ digest: {
1880
+ A: "Test string"
1881
+ },
1882
+ downloadLocation: "Test string",
1883
+ mediaType: "Test string",
1884
+ name: "Test string",
1885
+ uri: "Test string",
1886
+ }
1887
+ ],
1888
+ id: "Test string",
1889
+ version: {
1890
+ A: "Test string"
1891
+ },
1892
+ },
1893
+ byproducts: [
1894
+ {
1895
+ annotations: {
1896
+ A: 42
1897
+ },
1898
+ content: "Test string",
1899
+ digest: {
1900
+ A: "Test string"
1901
+ },
1902
+ downloadLocation: "Test string",
1903
+ mediaType: "Test string",
1904
+ name: "Test string",
1905
+ uri: "Test string",
1906
+ }
1907
+ ],
1908
+ metadata: {
1909
+ finishedOn: "Test string",
1910
+ invocationId: "Test string",
1911
+ startedOn: "Test string",
1912
+ },
1913
+ },
1914
+ },
1915
+ predicateType: "Test string",
1916
+ subject: [
1917
+ {
1918
+ digest: {
1919
+ A: "Test string"
1920
+ },
1921
+ name: "Test string",
1922
+ }
1923
+ ],
1924
+ },
1755
1925
  intotoStatement: {
1756
1926
  _type: "Test string",
1757
1927
  predicateType: "Test string",
@@ -2049,6 +2219,10 @@ gapi.load('client', async () => {
2049
2219
  continuousAnalysis: "Test string",
2050
2220
  cpe: "Test string",
2051
2221
  lastScanTime: "Test string",
2222
+ sbomStatus: {
2223
+ error: "Test string",
2224
+ sbomState: "Test string",
2225
+ },
2052
2226
  },
2053
2227
  dsseAttestation: {
2054
2228
  envelope: {
@@ -2420,6 +2594,7 @@ gapi.load('client', async () => {
2420
2594
  }
2421
2595
  ],
2422
2596
  state: "Test string",
2597
+ vulnerabilityId: "Test string",
2423
2598
  },
2424
2599
  },
2425
2600
  });
@@ -2513,6 +2688,87 @@ gapi.load('client', async () => {
2513
2688
  type: "Test string",
2514
2689
  },
2515
2690
  },
2691
+ inTotoSlsaProvenanceV1: {
2692
+ _type: "Test string",
2693
+ predicate: {
2694
+ buildDefinition: {
2695
+ buildType: "Test string",
2696
+ externalParameters: {
2697
+ A: 42
2698
+ },
2699
+ internalParameters: {
2700
+ A: 42
2701
+ },
2702
+ resolvedDependencies: [
2703
+ {
2704
+ annotations: {
2705
+ A: 42
2706
+ },
2707
+ content: "Test string",
2708
+ digest: {
2709
+ A: "Test string"
2710
+ },
2711
+ downloadLocation: "Test string",
2712
+ mediaType: "Test string",
2713
+ name: "Test string",
2714
+ uri: "Test string",
2715
+ }
2716
+ ],
2717
+ },
2718
+ runDetails: {
2719
+ builder: {
2720
+ builderDependencies: [
2721
+ {
2722
+ annotations: {
2723
+ A: 42
2724
+ },
2725
+ content: "Test string",
2726
+ digest: {
2727
+ A: "Test string"
2728
+ },
2729
+ downloadLocation: "Test string",
2730
+ mediaType: "Test string",
2731
+ name: "Test string",
2732
+ uri: "Test string",
2733
+ }
2734
+ ],
2735
+ id: "Test string",
2736
+ version: {
2737
+ A: "Test string"
2738
+ },
2739
+ },
2740
+ byproducts: [
2741
+ {
2742
+ annotations: {
2743
+ A: 42
2744
+ },
2745
+ content: "Test string",
2746
+ digest: {
2747
+ A: "Test string"
2748
+ },
2749
+ downloadLocation: "Test string",
2750
+ mediaType: "Test string",
2751
+ name: "Test string",
2752
+ uri: "Test string",
2753
+ }
2754
+ ],
2755
+ metadata: {
2756
+ finishedOn: "Test string",
2757
+ invocationId: "Test string",
2758
+ startedOn: "Test string",
2759
+ },
2760
+ },
2761
+ },
2762
+ predicateType: "Test string",
2763
+ subject: [
2764
+ {
2765
+ digest: {
2766
+ A: "Test string"
2767
+ },
2768
+ name: "Test string",
2769
+ }
2770
+ ],
2771
+ },
2516
2772
  intotoStatement: {
2517
2773
  _type: "Test string",
2518
2774
  predicateType: "Test string",
@@ -2810,6 +3066,10 @@ gapi.load('client', async () => {
2810
3066
  continuousAnalysis: "Test string",
2811
3067
  cpe: "Test string",
2812
3068
  lastScanTime: "Test string",
3069
+ sbomStatus: {
3070
+ error: "Test string",
3071
+ sbomState: "Test string",
3072
+ },
2813
3073
  },
2814
3074
  dsseAttestation: {
2815
3075
  envelope: {
@@ -3181,6 +3441,7 @@ gapi.load('client', async () => {
3181
3441
  }
3182
3442
  ],
3183
3443
  state: "Test string",
3444
+ vulnerabilityId: "Test string",
3184
3445
  },
3185
3446
  },
3186
3447
  });