@maxim_mazurok/gapi.client.containeranalysis-v1alpha1 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 +89 -1
  2. package/package.json +1 -1
  3. package/tests.ts +169 -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=v1alpha1
12
- // Revision: 20230707
12
+ // Revision: 20230721
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -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 Attestation {
81
84
  pgpSignedAttestation?:
@@ -128,10 +131,26 @@ declare namespace gapi.client {
128
131
  role?:
129
132
  string;
130
133
  }
134
+ interface BuildDefinition {
135
+ buildType?:
136
+ string;
137
+ externalParameters?:
138
+ { [P in string]: any };
139
+ internalParameters?:
140
+ { [P in string]: any };
141
+ resolvedDependencies?:
142
+ ResourceDescriptor[];
143
+ }
131
144
  interface BuildDetails {
132
145
  /** Deprecated. See InTotoStatement for the replacement. In-toto Provenance representation as defined in spec. */
133
146
  intotoProvenance?:
134
147
  InTotoProvenance;
148
+ /**
149
+ * 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
150
+ * statement with a to-spec slsa provenance.
151
+ */
152
+ inTotoSlsaProvenanceV1?:
153
+ InTotoSlsaProvenanceV1;
135
154
  /**
136
155
  * 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
137
156
  * Occurrence's envelope.
@@ -154,6 +173,14 @@ declare namespace gapi.client {
154
173
  id?:
155
174
  string;
156
175
  }
176
+ interface BuildMetadata {
177
+ finishedOn?:
178
+ string;
179
+ invocationId?:
180
+ string;
181
+ startedOn?:
182
+ string;
183
+ }
157
184
  interface BuildProvenance {
158
185
  /** Version string of the builder at the time this build was executed. */
159
186
  builderVersion?:
@@ -239,6 +266,9 @@ declare namespace gapi.client {
239
266
  */
240
267
  args?:
241
268
  string[];
269
+ /** Option to include built-in and custom substitutions as env variables for this build step. This option will override the global option in BuildOption. */
270
+ automapSubstitutions?:
271
+ boolean;
242
272
  /**
243
273
  * 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
244
274
  * 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
@@ -635,6 +665,9 @@ declare namespace gapi.client {
635
665
  string;
636
666
  }
637
667
  interface ContaineranalysisGoogleDevtoolsCloudbuildV1BuildOptions {
668
+ /** Option to include built-in and custom substitutions as env variables for all build steps. */
669
+ automapSubstitutions?:
670
+ boolean;
638
671
  /** Optional. Option to specify how default logs buckets are setup. */
639
672
  defaultLogsBucketBehavior?:
640
673
  string;
@@ -728,6 +761,9 @@ declare namespace gapi.client {
728
761
  */
729
762
  args?:
730
763
  string[];
764
+ /** Option to include built-in and custom substitutions as env variables for this build step. This option will override the global option in BuildOption. */
765
+ automapSubstitutions?:
766
+ boolean;
731
767
  /**
732
768
  * 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
733
769
  * 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
@@ -1626,6 +1662,17 @@ declare namespace gapi.client {
1626
1662
  recipe?:
1627
1663
  Recipe;
1628
1664
  }
1665
+ interface InTotoSlsaProvenanceV1 {
1666
+ /** InToto spec defined at https://github.com/in-toto/attestation/tree/main/spec#statement */
1667
+ _type?:
1668
+ string;
1669
+ predicate?:
1670
+ SlsaProvenanceV1;
1671
+ predicateType?:
1672
+ string;
1673
+ subject?:
1674
+ Subject[];
1675
+ }
1629
1676
  interface InTotoStatement {
1630
1677
  /** Always "https://in-toto.io/Statement/v0.1". */
1631
1678
  _type?:
@@ -2155,6 +2202,14 @@ declare namespace gapi.client {
2155
2202
  name?:
2156
2203
  string;
2157
2204
  }
2205
+ interface ProvenanceBuilder {
2206
+ builderDependencies?:
2207
+ ResourceDescriptor[];
2208
+ id?:
2209
+ string;
2210
+ version?:
2211
+ { [P in string]: string };
2212
+ }
2158
2213
  interface Publisher {
2159
2214
  /** Provides information about the authority of the issuing party to release the document, in particular, the party's constituency and responsibilities or other obligations. */
2160
2215
  issuingAuthority?:
@@ -2261,6 +2316,30 @@ declare namespace gapi.client {
2261
2316
  uri?:
2262
2317
  string;
2263
2318
  }
2319
+ interface ResourceDescriptor {
2320
+ annotations?:
2321
+ { [P in string]: any };
2322
+ content?:
2323
+ string;
2324
+ digest?:
2325
+ { [P in string]: string };
2326
+ downloadLocation?:
2327
+ string;
2328
+ mediaType?:
2329
+ string;
2330
+ name?:
2331
+ string;
2332
+ uri?:
2333
+ string;
2334
+ }
2335
+ interface RunDetails {
2336
+ builder?:
2337
+ ProvenanceBuilder;
2338
+ byproducts?:
2339
+ ResourceDescriptor[];
2340
+ metadata?:
2341
+ BuildMetadata;
2342
+ }
2264
2343
  interface SbomReferenceIntotoPayload {
2265
2344
  /** Identifier for the schema of the Statement. */
2266
2345
  _type?:
@@ -2405,6 +2484,12 @@ declare namespace gapi.client {
2405
2484
  recipe?:
2406
2485
  SlsaRecipe;
2407
2486
  }
2487
+ interface SlsaProvenanceV1 {
2488
+ buildDefinition?:
2489
+ BuildDefinition;
2490
+ runDetails?:
2491
+ RunDetails;
2492
+ }
2408
2493
  interface SlsaProvenanceZeroTwo {
2409
2494
  /** Lists the steps in the build. */
2410
2495
  buildConfig?:
@@ -2632,6 +2717,9 @@ declare namespace gapi.client {
2632
2717
  /** Provides the state of this Vulnerability assessment. */
2633
2718
  state?:
2634
2719
  string;
2720
+ /** The vulnerability identifier for this Assessment. Will hold one of common identifiers e.g. CVE, GHSA etc. */
2721
+ vulnerabilityId?:
2722
+ string;
2635
2723
  }
2636
2724
  interface Volume {
2637
2725
  /** 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-v1alpha1",
3
- "version": "0.0.20230707",
3
+ "version": "0.0.20230721",
4
4
  "description": "TypeScript typings for Container Analysis API v1alpha1",
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 */
@@ -243,6 +243,7 @@ gapi.load('client', async () => {
243
243
  ],
244
244
  shortDescription: "Test string",
245
245
  state: "Test string",
246
+ vulnerabilityId: "Test string",
246
247
  },
247
248
  languageCode: "Test string",
248
249
  longDescription: "Test string",
@@ -569,6 +570,7 @@ gapi.load('client', async () => {
569
570
  ],
570
571
  shortDescription: "Test string",
571
572
  state: "Test string",
573
+ vulnerabilityId: "Test string",
572
574
  },
573
575
  languageCode: "Test string",
574
576
  longDescription: "Test string",
@@ -749,6 +751,87 @@ gapi.load('client', async () => {
749
751
  type: "Test string",
750
752
  },
751
753
  },
754
+ inTotoSlsaProvenanceV1: {
755
+ _type: "Test string",
756
+ predicate: {
757
+ buildDefinition: {
758
+ buildType: "Test string",
759
+ externalParameters: {
760
+ A: 42
761
+ },
762
+ internalParameters: {
763
+ A: 42
764
+ },
765
+ resolvedDependencies: [
766
+ {
767
+ annotations: {
768
+ A: 42
769
+ },
770
+ content: "Test string",
771
+ digest: {
772
+ A: "Test string"
773
+ },
774
+ downloadLocation: "Test string",
775
+ mediaType: "Test string",
776
+ name: "Test string",
777
+ uri: "Test string",
778
+ }
779
+ ],
780
+ },
781
+ runDetails: {
782
+ builder: {
783
+ builderDependencies: [
784
+ {
785
+ annotations: {
786
+ A: 42
787
+ },
788
+ content: "Test string",
789
+ digest: {
790
+ A: "Test string"
791
+ },
792
+ downloadLocation: "Test string",
793
+ mediaType: "Test string",
794
+ name: "Test string",
795
+ uri: "Test string",
796
+ }
797
+ ],
798
+ id: "Test string",
799
+ version: {
800
+ A: "Test string"
801
+ },
802
+ },
803
+ byproducts: [
804
+ {
805
+ annotations: {
806
+ A: 42
807
+ },
808
+ content: "Test string",
809
+ digest: {
810
+ A: "Test string"
811
+ },
812
+ downloadLocation: "Test string",
813
+ mediaType: "Test string",
814
+ name: "Test string",
815
+ uri: "Test string",
816
+ }
817
+ ],
818
+ metadata: {
819
+ finishedOn: "Test string",
820
+ invocationId: "Test string",
821
+ startedOn: "Test string",
822
+ },
823
+ },
824
+ },
825
+ predicateType: "Test string",
826
+ subject: [
827
+ {
828
+ digest: {
829
+ A: "Test string"
830
+ },
831
+ name: "Test string",
832
+ }
833
+ ],
834
+ },
752
835
  intotoStatement: {
753
836
  _type: "Test string",
754
837
  predicateType: "Test string",
@@ -1496,6 +1579,7 @@ gapi.load('client', async () => {
1496
1579
  }
1497
1580
  ],
1498
1581
  state: "Test string",
1582
+ vulnerabilityId: "Test string",
1499
1583
  },
1500
1584
  },
1501
1585
  });
@@ -1585,6 +1669,87 @@ gapi.load('client', async () => {
1585
1669
  type: "Test string",
1586
1670
  },
1587
1671
  },
1672
+ inTotoSlsaProvenanceV1: {
1673
+ _type: "Test string",
1674
+ predicate: {
1675
+ buildDefinition: {
1676
+ buildType: "Test string",
1677
+ externalParameters: {
1678
+ A: 42
1679
+ },
1680
+ internalParameters: {
1681
+ A: 42
1682
+ },
1683
+ resolvedDependencies: [
1684
+ {
1685
+ annotations: {
1686
+ A: 42
1687
+ },
1688
+ content: "Test string",
1689
+ digest: {
1690
+ A: "Test string"
1691
+ },
1692
+ downloadLocation: "Test string",
1693
+ mediaType: "Test string",
1694
+ name: "Test string",
1695
+ uri: "Test string",
1696
+ }
1697
+ ],
1698
+ },
1699
+ runDetails: {
1700
+ builder: {
1701
+ builderDependencies: [
1702
+ {
1703
+ annotations: {
1704
+ A: 42
1705
+ },
1706
+ content: "Test string",
1707
+ digest: {
1708
+ A: "Test string"
1709
+ },
1710
+ downloadLocation: "Test string",
1711
+ mediaType: "Test string",
1712
+ name: "Test string",
1713
+ uri: "Test string",
1714
+ }
1715
+ ],
1716
+ id: "Test string",
1717
+ version: {
1718
+ A: "Test string"
1719
+ },
1720
+ },
1721
+ byproducts: [
1722
+ {
1723
+ annotations: {
1724
+ A: 42
1725
+ },
1726
+ content: "Test string",
1727
+ digest: {
1728
+ A: "Test string"
1729
+ },
1730
+ downloadLocation: "Test string",
1731
+ mediaType: "Test string",
1732
+ name: "Test string",
1733
+ uri: "Test string",
1734
+ }
1735
+ ],
1736
+ metadata: {
1737
+ finishedOn: "Test string",
1738
+ invocationId: "Test string",
1739
+ startedOn: "Test string",
1740
+ },
1741
+ },
1742
+ },
1743
+ predicateType: "Test string",
1744
+ subject: [
1745
+ {
1746
+ digest: {
1747
+ A: "Test string"
1748
+ },
1749
+ name: "Test string",
1750
+ }
1751
+ ],
1752
+ },
1588
1753
  intotoStatement: {
1589
1754
  _type: "Test string",
1590
1755
  predicateType: "Test string",
@@ -2332,6 +2497,7 @@ gapi.load('client', async () => {
2332
2497
  }
2333
2498
  ],
2334
2499
  state: "Test string",
2500
+ vulnerabilityId: "Test string",
2335
2501
  },
2336
2502
  },
2337
2503
  });
@@ -2663,6 +2829,7 @@ gapi.load('client', async () => {
2663
2829
  ],
2664
2830
  shortDescription: "Test string",
2665
2831
  state: "Test string",
2832
+ vulnerabilityId: "Test string",
2666
2833
  },
2667
2834
  languageCode: "Test string",
2668
2835
  longDescription: "Test string",
@@ -2989,6 +3156,7 @@ gapi.load('client', async () => {
2989
3156
  ],
2990
3157
  shortDescription: "Test string",
2991
3158
  state: "Test string",
3159
+ vulnerabilityId: "Test string",
2992
3160
  },
2993
3161
  languageCode: "Test string",
2994
3162
  longDescription: "Test string",