@maxim_mazurok/gapi.client.containeranalysis-v1alpha1 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 +91 -1
  2. package/package.json +1 -1
  3. package/tests.ts +177 -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: 20230623
12
+ // Revision: 20230717
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?:
@@ -1205,6 +1232,9 @@ declare namespace gapi.client {
1205
1232
  /** Output only. An operation that indicates the status of the current scan. This field is deprecated, do not use. */
1206
1233
  operation?:
1207
1234
  Operation;
1235
+ /** Output only. The status of an SBOM generation. */
1236
+ sbomStatus?:
1237
+ SBOMStatus;
1208
1238
  }
1209
1239
  interface Discovery {
1210
1240
  /** The kind of analysis that is handled by this discovery. */
@@ -1623,6 +1653,17 @@ declare namespace gapi.client {
1623
1653
  recipe?:
1624
1654
  Recipe;
1625
1655
  }
1656
+ interface InTotoSlsaProvenanceV1 {
1657
+ /** InToto spec defined at https://github.com/in-toto/attestation/tree/main/spec#statement */
1658
+ _type?:
1659
+ string;
1660
+ predicate?:
1661
+ SlsaProvenanceV1;
1662
+ predicateType?:
1663
+ string;
1664
+ subject?:
1665
+ Subject[];
1666
+ }
1626
1667
  interface InTotoStatement {
1627
1668
  /** Always "https://in-toto.io/Statement/v0.1". */
1628
1669
  _type?:
@@ -2152,6 +2193,14 @@ declare namespace gapi.client {
2152
2193
  name?:
2153
2194
  string;
2154
2195
  }
2196
+ interface ProvenanceBuilder {
2197
+ builderDependencies?:
2198
+ ResourceDescriptor[];
2199
+ id?:
2200
+ string;
2201
+ version?:
2202
+ { [P in string]: string };
2203
+ }
2155
2204
  interface Publisher {
2156
2205
  /** Provides information about the authority of the issuing party to release the document, in particular, the party's constituency and responsibilities or other obligations. */
2157
2206
  issuingAuthority?:
@@ -2258,6 +2307,30 @@ declare namespace gapi.client {
2258
2307
  uri?:
2259
2308
  string;
2260
2309
  }
2310
+ interface ResourceDescriptor {
2311
+ annotations?:
2312
+ { [P in string]: any };
2313
+ content?:
2314
+ string;
2315
+ digest?:
2316
+ { [P in string]: string };
2317
+ downloadLocation?:
2318
+ string;
2319
+ mediaType?:
2320
+ string;
2321
+ name?:
2322
+ string;
2323
+ uri?:
2324
+ string;
2325
+ }
2326
+ interface RunDetails {
2327
+ builder?:
2328
+ ProvenanceBuilder;
2329
+ byproducts?:
2330
+ ResourceDescriptor[];
2331
+ metadata?:
2332
+ BuildMetadata;
2333
+ }
2261
2334
  interface SbomReferenceIntotoPayload {
2262
2335
  /** Identifier for the schema of the Statement. */
2263
2336
  _type?:
@@ -2305,6 +2378,14 @@ declare namespace gapi.client {
2305
2378
  signatures?:
2306
2379
  EnvelopeSignature[];
2307
2380
  }
2381
+ interface SBOMStatus {
2382
+ /** Output only. If there was an error generating an SBOM, this will indicate what that error was. */
2383
+ error?:
2384
+ string;
2385
+ /** Output only. The progress of the SBOM generation. */
2386
+ sbomState?:
2387
+ string;
2388
+ }
2308
2389
  interface ScanConfig {
2309
2390
  /** Output only. The time this scan config was created. */
2310
2391
  createTime?:
@@ -2394,6 +2475,12 @@ declare namespace gapi.client {
2394
2475
  recipe?:
2395
2476
  SlsaRecipe;
2396
2477
  }
2478
+ interface SlsaProvenanceV1 {
2479
+ buildDefinition?:
2480
+ BuildDefinition;
2481
+ runDetails?:
2482
+ RunDetails;
2483
+ }
2397
2484
  interface SlsaProvenanceZeroTwo {
2398
2485
  /** Lists the steps in the build. */
2399
2486
  buildConfig?:
@@ -2621,6 +2708,9 @@ declare namespace gapi.client {
2621
2708
  /** Provides the state of this Vulnerability assessment. */
2622
2709
  state?:
2623
2710
  string;
2711
+ /** The vulnerability identifier for this Assessment. Will hold one of common identifiers e.g. CVE, GHSA etc. */
2712
+ vulnerabilityId?:
2713
+ string;
2624
2714
  }
2625
2715
  interface Volume {
2626
2716
  /** 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.20230623",
3
+ "version": "0.0.20230717",
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: 20230623
6
+ // Revision: 20230717
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",
@@ -1099,6 +1182,10 @@ gapi.load('client', async () => {
1099
1182
  A: 42
1100
1183
  },
1101
1184
  },
1185
+ sbomStatus: {
1186
+ error: "Test string",
1187
+ sbomState: "Test string",
1188
+ },
1102
1189
  },
1103
1190
  dsseAttestation: {
1104
1191
  envelope: {
@@ -1492,6 +1579,7 @@ gapi.load('client', async () => {
1492
1579
  }
1493
1580
  ],
1494
1581
  state: "Test string",
1582
+ vulnerabilityId: "Test string",
1495
1583
  },
1496
1584
  },
1497
1585
  });
@@ -1581,6 +1669,87 @@ gapi.load('client', async () => {
1581
1669
  type: "Test string",
1582
1670
  },
1583
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
+ },
1584
1753
  intotoStatement: {
1585
1754
  _type: "Test string",
1586
1755
  predicateType: "Test string",
@@ -1931,6 +2100,10 @@ gapi.load('client', async () => {
1931
2100
  A: 42
1932
2101
  },
1933
2102
  },
2103
+ sbomStatus: {
2104
+ error: "Test string",
2105
+ sbomState: "Test string",
2106
+ },
1934
2107
  },
1935
2108
  dsseAttestation: {
1936
2109
  envelope: {
@@ -2324,6 +2497,7 @@ gapi.load('client', async () => {
2324
2497
  }
2325
2498
  ],
2326
2499
  state: "Test string",
2500
+ vulnerabilityId: "Test string",
2327
2501
  },
2328
2502
  },
2329
2503
  });
@@ -2655,6 +2829,7 @@ gapi.load('client', async () => {
2655
2829
  ],
2656
2830
  shortDescription: "Test string",
2657
2831
  state: "Test string",
2832
+ vulnerabilityId: "Test string",
2658
2833
  },
2659
2834
  languageCode: "Test string",
2660
2835
  longDescription: "Test string",
@@ -2981,6 +3156,7 @@ gapi.load('client', async () => {
2981
3156
  ],
2982
3157
  shortDescription: "Test string",
2983
3158
  state: "Test string",
3159
+ vulnerabilityId: "Test string",
2984
3160
  },
2985
3161
  languageCode: "Test string",
2986
3162
  longDescription: "Test string",