@maxim_mazurok/gapi.client.containeranalysis-v1alpha1 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.
- package/index.d.ts +80 -1
- package/package.json +1 -1
- 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:
|
|
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?:
|
|
@@ -1626,6 +1653,17 @@ declare namespace gapi.client {
|
|
|
1626
1653
|
recipe?:
|
|
1627
1654
|
Recipe;
|
|
1628
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
|
+
}
|
|
1629
1667
|
interface InTotoStatement {
|
|
1630
1668
|
/** Always "https://in-toto.io/Statement/v0.1". */
|
|
1631
1669
|
_type?:
|
|
@@ -2155,6 +2193,14 @@ declare namespace gapi.client {
|
|
|
2155
2193
|
name?:
|
|
2156
2194
|
string;
|
|
2157
2195
|
}
|
|
2196
|
+
interface ProvenanceBuilder {
|
|
2197
|
+
builderDependencies?:
|
|
2198
|
+
ResourceDescriptor[];
|
|
2199
|
+
id?:
|
|
2200
|
+
string;
|
|
2201
|
+
version?:
|
|
2202
|
+
{ [P in string]: string };
|
|
2203
|
+
}
|
|
2158
2204
|
interface Publisher {
|
|
2159
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. */
|
|
2160
2206
|
issuingAuthority?:
|
|
@@ -2261,6 +2307,30 @@ declare namespace gapi.client {
|
|
|
2261
2307
|
uri?:
|
|
2262
2308
|
string;
|
|
2263
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
|
+
}
|
|
2264
2334
|
interface SbomReferenceIntotoPayload {
|
|
2265
2335
|
/** Identifier for the schema of the Statement. */
|
|
2266
2336
|
_type?:
|
|
@@ -2405,6 +2475,12 @@ declare namespace gapi.client {
|
|
|
2405
2475
|
recipe?:
|
|
2406
2476
|
SlsaRecipe;
|
|
2407
2477
|
}
|
|
2478
|
+
interface SlsaProvenanceV1 {
|
|
2479
|
+
buildDefinition?:
|
|
2480
|
+
BuildDefinition;
|
|
2481
|
+
runDetails?:
|
|
2482
|
+
RunDetails;
|
|
2483
|
+
}
|
|
2408
2484
|
interface SlsaProvenanceZeroTwo {
|
|
2409
2485
|
/** Lists the steps in the build. */
|
|
2410
2486
|
buildConfig?:
|
|
@@ -2632,6 +2708,9 @@ declare namespace gapi.client {
|
|
|
2632
2708
|
/** Provides the state of this Vulnerability assessment. */
|
|
2633
2709
|
state?:
|
|
2634
2710
|
string;
|
|
2711
|
+
/** The vulnerability identifier for this Assessment. Will hold one of common identifiers e.g. CVE, GHSA etc. */
|
|
2712
|
+
vulnerabilityId?:
|
|
2713
|
+
string;
|
|
2635
2714
|
}
|
|
2636
2715
|
interface Volume {
|
|
2637
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
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:
|
|
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",
|
|
@@ -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",
|