@maxim_mazurok/gapi.client.containeranalysis-v1 0.0.20230707 → 0.0.20230721

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 +91 -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: 20230721
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.
@@ -244,6 +271,9 @@ declare namespace gapi.client {
244
271
  */
245
272
  args?:
246
273
  string[];
274
+ /** Option to include built-in and custom substitutions as env variables for this build step. This option will override the global option in BuildOption. */
275
+ automapSubstitutions?:
276
+ boolean;
247
277
  /**
248
278
  * Working directory to use when running this step's container. If this value is a relative path, it is relative to the build's working directory. If this value is absolute, it may be
249
279
  * outside the build's working directory, in which case the contents of the path may not be persisted across build step executions, unless a `volume` for that path is specified. If the
@@ -646,6 +676,9 @@ declare namespace gapi.client {
646
676
  string;
647
677
  }
648
678
  interface ContaineranalysisGoogleDevtoolsCloudbuildV1BuildOptions {
679
+ /** Option to include built-in and custom substitutions as env variables for all build steps. */
680
+ automapSubstitutions?:
681
+ boolean;
649
682
  /** Optional. Option to specify how default logs buckets are setup. */
650
683
  defaultLogsBucketBehavior?:
651
684
  string;
@@ -739,6 +772,9 @@ declare namespace gapi.client {
739
772
  */
740
773
  args?:
741
774
  string[];
775
+ /** Option to include built-in and custom substitutions as env variables for this build step. This option will override the global option in BuildOption. */
776
+ automapSubstitutions?:
777
+ boolean;
742
778
  /**
743
779
  * Working directory to use when running this step's container. If this value is a relative path, it is relative to the build's working directory. If this value is absolute, it may be
744
780
  * outside the build's working directory, in which case the contents of the path may not be persisted across build step executions, unless a `volume` for that path is specified. If the
@@ -1491,6 +1527,17 @@ declare namespace gapi.client {
1491
1527
  recipe?:
1492
1528
  Recipe;
1493
1529
  }
1530
+ interface InTotoSlsaProvenanceV1 {
1531
+ /** InToto spec defined at https://github.com/in-toto/attestation/tree/main/spec#statement */
1532
+ _type?:
1533
+ string;
1534
+ predicate?:
1535
+ SlsaProvenanceV1;
1536
+ predicateType?:
1537
+ string;
1538
+ subject?:
1539
+ Subject[];
1540
+ }
1494
1541
  interface InTotoStatement {
1495
1542
  /** Always `https://in-toto.io/Statement/v0.1`. */
1496
1543
  _type?:
@@ -1887,6 +1934,14 @@ declare namespace gapi.client {
1887
1934
  repoName?:
1888
1935
  string;
1889
1936
  }
1937
+ interface ProvenanceBuilder {
1938
+ builderDependencies?:
1939
+ ResourceDescriptor[];
1940
+ id?:
1941
+ string;
1942
+ version?:
1943
+ { [P in string]: string };
1944
+ }
1890
1945
  interface Publisher {
1891
1946
  /** 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
1947
  issuingAuthority?:
@@ -1955,6 +2010,30 @@ declare namespace gapi.client {
1955
2010
  uid?:
1956
2011
  string;
1957
2012
  }
2013
+ interface ResourceDescriptor {
2014
+ annotations?:
2015
+ { [P in string]: any };
2016
+ content?:
2017
+ string;
2018
+ digest?:
2019
+ { [P in string]: string };
2020
+ downloadLocation?:
2021
+ string;
2022
+ mediaType?:
2023
+ string;
2024
+ name?:
2025
+ string;
2026
+ uri?:
2027
+ string;
2028
+ }
2029
+ interface RunDetails {
2030
+ builder?:
2031
+ ProvenanceBuilder;
2032
+ byproducts?:
2033
+ ResourceDescriptor[];
2034
+ metadata?:
2035
+ BuildMetadata;
2036
+ }
1958
2037
  interface SbomReferenceIntotoPayload {
1959
2038
  /** Identifier for the schema of the Statement. */
1960
2039
  _type?:
@@ -2089,6 +2168,12 @@ declare namespace gapi.client {
2089
2168
  recipe?:
2090
2169
  SlsaRecipe;
2091
2170
  }
2171
+ interface SlsaProvenanceV1 {
2172
+ buildDefinition?:
2173
+ BuildDefinition;
2174
+ runDetails?:
2175
+ RunDetails;
2176
+ }
2092
2177
  interface SlsaProvenanceZeroTwo {
2093
2178
  buildConfig?:
2094
2179
  { [P in string]: any };
@@ -2279,7 +2364,7 @@ declare namespace gapi.client {
2279
2364
  string;
2280
2365
  }
2281
2366
  interface VexAssessment {
2282
- /** Holds the MITRE standard Common Vulnerabilities and Exposures (CVE) tracking number for the vulnerability. */
2367
+ /** Holds the MITRE standard Common Vulnerabilities and Exposures (CVE) tracking number for the vulnerability. Deprecated: Use vulnerability_id instead to denote CVEs. */
2283
2368
  cve?:
2284
2369
  string;
2285
2370
  /** Contains information about the impact of this vulnerability, this will change with time. */
@@ -2300,6 +2385,9 @@ declare namespace gapi.client {
2300
2385
  /** Provides the state of this Vulnerability assessment. */
2301
2386
  state?:
2302
2387
  string;
2388
+ /** The vulnerability identifier for this Assessment. Will hold one of common identifiers e.g. CVE, GHSA etc. */
2389
+ vulnerabilityId?:
2390
+ string;
2303
2391
  }
2304
2392
  interface Volume {
2305
2393
  /** 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.20230721",
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: 20230721
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
  });