@maxim_mazurok/gapi.client.containeranalysis-v1 0.0.20230707 → 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 +82 -3
  2. package/package.json +1 -1
  3. package/tests.ts +250 -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: 20230707
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.
@@ -1491,6 +1518,17 @@ declare namespace gapi.client {
1491
1518
  recipe?:
1492
1519
  Recipe;
1493
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
+ }
1494
1532
  interface InTotoStatement {
1495
1533
  /** Always `https://in-toto.io/Statement/v0.1`. */
1496
1534
  _type?:
@@ -1887,6 +1925,14 @@ declare namespace gapi.client {
1887
1925
  repoName?:
1888
1926
  string;
1889
1927
  }
1928
+ interface ProvenanceBuilder {
1929
+ builderDependencies?:
1930
+ ResourceDescriptor[];
1931
+ id?:
1932
+ string;
1933
+ version?:
1934
+ { [P in string]: string };
1935
+ }
1890
1936
  interface Publisher {
1891
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. */
1892
1938
  issuingAuthority?:
@@ -1955,6 +2001,30 @@ declare namespace gapi.client {
1955
2001
  uid?:
1956
2002
  string;
1957
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
+ }
1958
2028
  interface SbomReferenceIntotoPayload {
1959
2029
  /** Identifier for the schema of the Statement. */
1960
2030
  _type?:
@@ -2089,6 +2159,12 @@ declare namespace gapi.client {
2089
2159
  recipe?:
2090
2160
  SlsaRecipe;
2091
2161
  }
2162
+ interface SlsaProvenanceV1 {
2163
+ buildDefinition?:
2164
+ BuildDefinition;
2165
+ runDetails?:
2166
+ RunDetails;
2167
+ }
2092
2168
  interface SlsaProvenanceZeroTwo {
2093
2169
  buildConfig?:
2094
2170
  { [P in string]: any };
@@ -2279,7 +2355,7 @@ declare namespace gapi.client {
2279
2355
  string;
2280
2356
  }
2281
2357
  interface VexAssessment {
2282
- /** 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. */
2283
2359
  cve?:
2284
2360
  string;
2285
2361
  /** Contains information about the impact of this vulnerability, this will change with time. */
@@ -2300,6 +2376,9 @@ declare namespace gapi.client {
2300
2376
  /** Provides the state of this Vulnerability assessment. */
2301
2377
  state?:
2302
2378
  string;
2379
+ /** The vulnerability identifier for this Assessment. Will hold one of common identifiers e.g. CVE, GHSA etc. */
2380
+ vulnerabilityId?:
2381
+ string;
2303
2382
  }
2304
2383
  interface Volume {
2305
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.20230707",
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: 20230707
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",
@@ -1698,6 +1782,7 @@ gapi.load('client', async () => {
1698
1782
  }
1699
1783
  ],
1700
1784
  state: "Test string",
1785
+ vulnerabilityId: "Test string",
1701
1786
  },
1702
1787
  },
1703
1788
  }
@@ -1756,6 +1841,87 @@ gapi.load('client', async () => {
1756
1841
  type: "Test string",
1757
1842
  },
1758
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
+ },
1759
1925
  intotoStatement: {
1760
1926
  _type: "Test string",
1761
1927
  predicateType: "Test string",
@@ -2428,6 +2594,7 @@ gapi.load('client', async () => {
2428
2594
  }
2429
2595
  ],
2430
2596
  state: "Test string",
2597
+ vulnerabilityId: "Test string",
2431
2598
  },
2432
2599
  },
2433
2600
  });
@@ -2521,6 +2688,87 @@ gapi.load('client', async () => {
2521
2688
  type: "Test string",
2522
2689
  },
2523
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
+ },
2524
2772
  intotoStatement: {
2525
2773
  _type: "Test string",
2526
2774
  predicateType: "Test string",
@@ -3193,6 +3441,7 @@ gapi.load('client', async () => {
3193
3441
  }
3194
3442
  ],
3195
3443
  state: "Test string",
3444
+ vulnerabilityId: "Test string",
3196
3445
  },
3197
3446
  },
3198
3447
  });