@maxim_mazurok/gapi.client.ondemandscanning-v1 0.0.20231009 → 0.0.20231016

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 +14 -1
  2. package/package.json +1 -1
  3. package/tests.ts +16 -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://ondemandscanning.googleapis.com/$discovery/rest?version=v1
12
- // Revision: 20231009
12
+ // Revision: 20231016
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -762,6 +762,13 @@ declare namespace gapi.client {
762
762
  /** HashDigest stores the SHA512 hash digest of the jar file if the package is of type Maven. This field will be unset for non Maven packages. */
763
763
  hashDigest?:
764
764
  string;
765
+ /**
766
+ * The list of licenses found that are related to a given package. Note that licenses may also be stored on the BinarySourceInfo. If there is no BinarySourceInfo (because there's no
767
+ * concept of source vs binary), then it will be stored here, while if there are BinarySourceInfos, it will be stored there, as one source can have multiple binaries with different
768
+ * licenses.
769
+ */
770
+ licenses?:
771
+ string[];
765
772
  /** The maintainer of the package. */
766
773
  maintainer?:
767
774
  Maintainer;
@@ -848,6 +855,12 @@ declare namespace gapi.client {
848
855
  Version;
849
856
  }
850
857
  interface PackageVersion {
858
+ /**
859
+ * The licenses associated with this package. Note that this has to go on the PackageVersion level, because we can have cases with images with the same source having different
860
+ * licences. E.g. in Alpine, musl and musl-utils both have the same origin musl, but have different sets of licenses.
861
+ */
862
+ licenses?:
863
+ string[];
851
864
  name?:
852
865
  string;
853
866
  version?:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.ondemandscanning-v1",
3
- "version": "0.0.20231009",
3
+ "version": "0.0.20231016",
4
4
  "description": "TypeScript typings for On-Demand Scanning 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: 20231009
6
+ // Revision: 20231016
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -77,16 +77,25 @@ gapi.load('client', async () => {
77
77
  binarySourceInfo: [
78
78
  {
79
79
  binaryVersion: {
80
+ licenses: [
81
+ "Test string"
82
+ ],
80
83
  name: "Test string",
81
84
  version: "Test string",
82
85
  },
83
86
  sourceVersion: {
87
+ licenses: [
88
+ "Test string"
89
+ ],
84
90
  name: "Test string",
85
91
  version: "Test string",
86
92
  },
87
93
  }
88
94
  ],
89
95
  binaryVersion: {
96
+ licenses: [
97
+ "Test string"
98
+ ],
90
99
  name: "Test string",
91
100
  version: "Test string",
92
101
  },
@@ -103,6 +112,9 @@ gapi.load('client', async () => {
103
112
  }
104
113
  ],
105
114
  hashDigest: "Test string",
115
+ licenses: [
116
+ "Test string"
117
+ ],
106
118
  maintainer: {
107
119
  kind: "Test string",
108
120
  name: "Test string",
@@ -115,6 +127,9 @@ gapi.load('client', async () => {
115
127
  "Test string"
116
128
  ],
117
129
  sourceVersion: {
130
+ licenses: [
131
+ "Test string"
132
+ ],
118
133
  name: "Test string",
119
134
  version: "Test string",
120
135
  },