@maxim_mazurok/gapi.client.containeranalysis-v1alpha1 0.0.20230317 → 0.0.20230331

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 +39 -1
  2. package/package.json +1 -1
  3. package/tests.ts +75 -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: 20230317
12
+ // Revision: 20230331
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -1320,6 +1320,8 @@ declare namespace gapi.client {
1320
1320
  relatedUrl?: RelatedUrl[];
1321
1321
  /** A note describing a software bill of materials. */
1322
1322
  sbom?: DocumentNote;
1323
+ /** A note describing a reference to an SBOM. */
1324
+ sbomReference?: SBOMReferenceNote;
1323
1325
  /** A one sentence description of this `Note`. */
1324
1326
  shortDescription?: string;
1325
1327
  /** A note describing an SPDX File. */
@@ -1375,6 +1377,8 @@ declare namespace gapi.client {
1375
1377
  resourceUrl?: string;
1376
1378
  /** Describes a specific software bill of materials document. */
1377
1379
  sbom?: DocumentOccurrence;
1380
+ /** This represents an SBOM reference occurrence */
1381
+ sbomReference?: SBOMReferenceOccurrence;
1378
1382
  /** Describes a specific SPDX File. */
1379
1383
  spdxFile?: FileOccurrence;
1380
1384
  /** Describes a specific SPDX Package. */
@@ -1657,6 +1661,40 @@ declare namespace gapi.client {
1657
1661
  /** The unique URI of the resource. E.g., "https://gcr.io/project/image@sha256:foo" for a Docker image. */
1658
1662
  uri?: string;
1659
1663
  }
1664
+ interface SbomReferenceIntotoPayload {
1665
+ /** Identifier for the schema of the Statement. */
1666
+ _type?: string;
1667
+ /** Additional parameters of the Predicate. Includes the actual data about the SBOM. */
1668
+ predicate?: SbomReferenceIntotoPredicate;
1669
+ /** URI identifying the type of the Predicate. */
1670
+ predicateType?: string;
1671
+ /** Set of software artifacts that the attestation applies to. Each element represents a single software artifact. */
1672
+ subject?: Subject[];
1673
+ }
1674
+ interface SbomReferenceIntotoPredicate {
1675
+ /** A map of algorithm to digest of the contents of the SBOM. */
1676
+ digest?: { [P in string]: string };
1677
+ /** The location of the SBOM. */
1678
+ location?: string;
1679
+ /** The mime type of the SBOM. */
1680
+ mimeType?: string;
1681
+ /** The person or system referring this predicate to the consumer. */
1682
+ referrerId?: string;
1683
+ }
1684
+ interface SBOMReferenceNote {
1685
+ /** The format that SBOM takes. E.g. may be spdx, cyclonedx, etc... */
1686
+ format?: string;
1687
+ /** The version of the format that the SBOM takes. E.g. if the format is spdx, the version may be 2.3. */
1688
+ version?: string;
1689
+ }
1690
+ interface SBOMReferenceOccurrence {
1691
+ /** The actual payload that contains the SBOM reference data. */
1692
+ payload?: SbomReferenceIntotoPayload;
1693
+ /** The kind of payload that SbomReferenceIntotoPayload takes. Since it's in the intoto format, this value is expected to be 'application/vnd.in-toto+json'. */
1694
+ payloadType?: string;
1695
+ /** The signatures over the payload. */
1696
+ signatures?: EnvelopeSignature[];
1697
+ }
1660
1698
  interface ScanConfig {
1661
1699
  /** Output only. The time this scan config was created. */
1662
1700
  createTime?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.containeranalysis-v1alpha1",
3
- "version": "0.0.20230317",
3
+ "version": "0.0.20230331",
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: 20230317
6
+ // Revision: 20230331
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -147,6 +147,10 @@ gapi.load('client', async () => {
147
147
  dataLicence: "Test string",
148
148
  spdxVersion: "Test string",
149
149
  },
150
+ sbomReference: {
151
+ format: "Test string",
152
+ version: "Test string",
153
+ },
150
154
  shortDescription: "Test string",
151
155
  spdxFile: {
152
156
  checksum: [
@@ -469,6 +473,10 @@ gapi.load('client', async () => {
469
473
  dataLicence: "Test string",
470
474
  spdxVersion: "Test string",
471
475
  },
476
+ sbomReference: {
477
+ format: "Test string",
478
+ version: "Test string",
479
+ },
472
480
  shortDescription: "Test string",
473
481
  spdxFile: {
474
482
  checksum: [
@@ -1296,6 +1304,35 @@ gapi.load('client', async () => {
1296
1304
  namespace: "Test string",
1297
1305
  title: "Test string",
1298
1306
  },
1307
+ sbomReference: {
1308
+ payload: {
1309
+ _type: "Test string",
1310
+ predicate: {
1311
+ digest: {
1312
+ A: "Test string"
1313
+ },
1314
+ location: "Test string",
1315
+ mimeType: "Test string",
1316
+ referrerId: "Test string",
1317
+ },
1318
+ predicateType: "Test string",
1319
+ subject: [
1320
+ {
1321
+ digest: {
1322
+ A: "Test string"
1323
+ },
1324
+ name: "Test string",
1325
+ }
1326
+ ],
1327
+ },
1328
+ payloadType: "Test string",
1329
+ signatures: [
1330
+ {
1331
+ keyid: "Test string",
1332
+ sig: "Test string",
1333
+ }
1334
+ ],
1335
+ },
1299
1336
  spdxFile: {
1300
1337
  attributions: [
1301
1338
  "Test string"
@@ -2099,6 +2136,35 @@ gapi.load('client', async () => {
2099
2136
  namespace: "Test string",
2100
2137
  title: "Test string",
2101
2138
  },
2139
+ sbomReference: {
2140
+ payload: {
2141
+ _type: "Test string",
2142
+ predicate: {
2143
+ digest: {
2144
+ A: "Test string"
2145
+ },
2146
+ location: "Test string",
2147
+ mimeType: "Test string",
2148
+ referrerId: "Test string",
2149
+ },
2150
+ predicateType: "Test string",
2151
+ subject: [
2152
+ {
2153
+ digest: {
2154
+ A: "Test string"
2155
+ },
2156
+ name: "Test string",
2157
+ }
2158
+ ],
2159
+ },
2160
+ payloadType: "Test string",
2161
+ signatures: [
2162
+ {
2163
+ keyid: "Test string",
2164
+ sig: "Test string",
2165
+ }
2166
+ ],
2167
+ },
2102
2168
  spdxFile: {
2103
2169
  attributions: [
2104
2170
  "Test string"
@@ -2493,6 +2559,10 @@ gapi.load('client', async () => {
2493
2559
  dataLicence: "Test string",
2494
2560
  spdxVersion: "Test string",
2495
2561
  },
2562
+ sbomReference: {
2563
+ format: "Test string",
2564
+ version: "Test string",
2565
+ },
2496
2566
  shortDescription: "Test string",
2497
2567
  spdxFile: {
2498
2568
  checksum: [
@@ -2815,6 +2885,10 @@ gapi.load('client', async () => {
2815
2885
  dataLicence: "Test string",
2816
2886
  spdxVersion: "Test string",
2817
2887
  },
2888
+ sbomReference: {
2889
+ format: "Test string",
2890
+ version: "Test string",
2891
+ },
2818
2892
  shortDescription: "Test string",
2819
2893
  spdxFile: {
2820
2894
  checksum: [