Skip to content

Commit 9fecc5a

Browse files
committed
New types
1 parent 2ef7f48 commit 9fecc5a

28 files changed

Lines changed: 629 additions & 20 deletions

libs/types/alpha/index.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
/* tslint:disable */
44
/* eslint-disable */
55

6+
export type { AffectedFleet } from './models/AffectedFleet';
67
export { ApiVersion } from './models/ApiVersion';
78
export type { Catalog } from './models/Catalog';
89
export type { CatalogItem } from './models/CatalogItem';
@@ -19,4 +20,20 @@ export type { CatalogItemVersion } from './models/CatalogItemVersion';
1920
export type { CatalogList } from './models/CatalogList';
2021
export type { CatalogSpec } from './models/CatalogSpec';
2122
export type { CatalogStatus } from './models/CatalogStatus';
23+
export type { CveCountsBySeverity } from './models/CveCountsBySeverity';
24+
export type { DeviceCountsBySeverity } from './models/DeviceCountsBySeverity';
25+
export type { DeviceVulnerabilitySummaryResponse } from './models/DeviceVulnerabilitySummaryResponse';
26+
export type { FleetVulnerabilitySummary } from './models/FleetVulnerabilitySummary';
27+
export type { FleetVulnerabilitySummaryResponse } from './models/FleetVulnerabilitySummaryResponse';
28+
export type { SemVer } from './models/SemVer';
29+
export type { SemVerRange } from './models/SemVerRange';
2230
export type { Status } from './models/Status';
31+
export { Vulnerability } from './models/Vulnerability';
32+
export { VulnerabilityGroup } from './models/VulnerabilityGroup';
33+
export { VulnerabilityGroupItem } from './models/VulnerabilityGroupItem';
34+
export type { VulnerabilityGroupList } from './models/VulnerabilityGroupList';
35+
export type { VulnerabilityImageRef } from './models/VulnerabilityImageRef';
36+
export { VulnerabilityImpact } from './models/VulnerabilityImpact';
37+
export type { VulnerabilityList } from './models/VulnerabilityList';
38+
export type { VulnerabilitySeveritySummary } from './models/VulnerabilitySeveritySummary';
39+
export type { VulnerabilitySummaryResponse } from './models/VulnerabilitySummaryResponse';
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
/* generated using openapi-typescript-codegen -- do no edit */
2+
/* istanbul ignore file */
3+
/* tslint:disable */
4+
/* eslint-disable */
5+
import type { VulnerabilityGroupItem } from './VulnerabilityGroupItem';
6+
/**
7+
* One fleet or the fleetless aggregate with device and image counts for a CVE.
8+
*/
9+
export type AffectedFleet = {
10+
/**
11+
* Fleet metadata.name, empty for the fleetless aggregate.
12+
*/
13+
fleetName: string;
14+
/**
15+
* True when this row represents devices not owned by a fleet.
16+
*/
17+
fleetless: boolean;
18+
/**
19+
* Devices in this fleet or fleetless group affected by the CVE.
20+
*/
21+
affectedDevices: number;
22+
/**
23+
* Per-digest findings within this fleet or fleetless group.
24+
*/
25+
findings: Array<VulnerabilityGroupItem>;
26+
};
27+

libs/types/alpha/models/CatalogItemVersion.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
/* eslint-disable */
55
import type { CatalogItemConfigurable } from './CatalogItemConfigurable';
66
import type { CatalogItemDeprecation } from './CatalogItemDeprecation';
7+
import type { SemVer } from './SemVer';
8+
import type { SemVerRange } from './SemVerRange';
79
/**
810
* A version of a catalog item following the Cincinnati model where versions
911
* are nodes in an upgrade graph and channels are labels on those nodes.
@@ -16,7 +18,7 @@ export type CatalogItemVersion = (CatalogItemConfigurable & {
1618
/**
1719
* Semantic version identifier (e.g., 1.2.3, 2.0.0-rc1). Required for version ordering and upgrade graph.
1820
*/
19-
version: string;
21+
version: SemVer;
2022
/**
2123
* Map of artifact type to image tag or digest. Keys must match a type in spec.artifacts. Only keyed artifacts are available for this version.
2224
*/
@@ -28,15 +30,15 @@ export type CatalogItemVersion = (CatalogItemConfigurable & {
2830
/**
2931
* The single version this one replaces, defining the primary upgrade edge.
3032
*/
31-
replaces?: string;
33+
replaces?: SemVer;
3234
/**
3335
* Additional versions that can upgrade directly to this one. Use when stable channel skips intermediate fast-only versions.
3436
*/
35-
skips?: Array<string>;
37+
skips?: Array<SemVer>;
3638
/**
3739
* Semver range of versions that can upgrade directly to this one. Use for z-stream updates or hotfixes.
3840
*/
39-
skipRange?: string;
41+
skipRange?: SemVerRange;
4042
deprecation?: CatalogItemDeprecation;
4143
});
4244

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
/* generated using openapi-typescript-codegen -- do no edit */
2+
/* istanbul ignore file */
3+
/* tslint:disable */
4+
/* eslint-disable */
5+
/**
6+
* Counts of distinct CVEs in the organization by highest severity.
7+
*/
8+
export type CveCountsBySeverity = {
9+
/**
10+
* Total distinct CVEs across the organization.
11+
*/
12+
total: number;
13+
/**
14+
* Count of distinct Critical CVEs.
15+
*/
16+
critical: number;
17+
/**
18+
* Count of distinct High CVEs.
19+
*/
20+
high: number;
21+
/**
22+
* Count of distinct Medium CVEs.
23+
*/
24+
medium: number;
25+
/**
26+
* Count of distinct Low CVEs.
27+
*/
28+
low: number;
29+
/**
30+
* Count of distinct CVEs with no exploitable impact (CVSS score 0).
31+
*/
32+
none: number;
33+
/**
34+
* Count of distinct CVEs with unknown or unscored severity.
35+
*/
36+
unknown: number;
37+
};
38+
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
/* generated using openapi-typescript-codegen -- do no edit */
2+
/* istanbul ignore file */
3+
/* tslint:disable */
4+
/* eslint-disable */
5+
/**
6+
* Counts of distinct devices affected in the organization, grouped by vulnerability severity.
7+
*/
8+
export type DeviceCountsBySeverity = {
9+
/**
10+
* Number of distinct devices with at least one vulnerability finding in the organization.
11+
*/
12+
total: number;
13+
/**
14+
* Number of devices whose highest severity finding is critical.
15+
*/
16+
critical: number;
17+
/**
18+
* Number of devices whose highest severity finding is high.
19+
*/
20+
high: number;
21+
/**
22+
* Number of devices whose highest severity finding is medium.
23+
*/
24+
medium: number;
25+
/**
26+
* Number of devices whose highest severity finding is low.
27+
*/
28+
low: number;
29+
/**
30+
* Number of devices whose highest severity finding is none.
31+
*/
32+
none: number;
33+
/**
34+
* Number of devices whose highest severity finding is unknown.
35+
*/
36+
unknown: number;
37+
};
38+
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
/* generated using openapi-typescript-codegen -- do no edit */
2+
/* istanbul ignore file */
3+
/* tslint:disable */
4+
/* eslint-disable */
5+
import type { ApiVersion } from './ApiVersion';
6+
import type { VulnerabilitySeveritySummary } from './VulnerabilitySeveritySummary';
7+
/**
8+
* Severity summary for a single device.
9+
*/
10+
export type DeviceVulnerabilitySummaryResponse = {
11+
apiVersion: ApiVersion;
12+
/**
13+
* Resource kind; always DeviceVulnerabilitySummary.
14+
*/
15+
kind: string;
16+
/**
17+
* Image reference from device status. Absent when the device has no rendered OS image.
18+
*/
19+
image?: string;
20+
/**
21+
* Image digest from device status. Absent when the device has no rendered OS image.
22+
*/
23+
imageDigest?: string;
24+
summary: VulnerabilitySeveritySummary;
25+
};
26+
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/* generated using openapi-typescript-codegen -- do no edit */
2+
/* istanbul ignore file */
3+
/* tslint:disable */
4+
/* eslint-disable */
5+
import type { VulnerabilitySeveritySummary } from './VulnerabilitySeveritySummary';
6+
/**
7+
* Fleet vulnerability totals including unique digest count.
8+
*/
9+
export type FleetVulnerabilitySummary = (VulnerabilitySeveritySummary & {
10+
/**
11+
* Distinct image digests observed in the fleet.
12+
*/
13+
uniqueDigests: number;
14+
});
15+
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/* generated using openapi-typescript-codegen -- do no edit */
2+
/* istanbul ignore file */
3+
/* tslint:disable */
4+
/* eslint-disable */
5+
import type { ApiVersion } from './ApiVersion';
6+
import type { FleetVulnerabilitySummary } from './FleetVulnerabilitySummary';
7+
/**
8+
* Severity summary for a single fleet.
9+
*/
10+
export type FleetVulnerabilitySummaryResponse = {
11+
apiVersion: ApiVersion;
12+
/**
13+
* Resource kind; always FleetVulnerabilitySummary.
14+
*/
15+
kind: string;
16+
summary: FleetVulnerabilitySummary;
17+
};
18+

libs/types/alpha/models/SemVer.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/* generated using openapi-typescript-codegen -- do no edit */
2+
/* istanbul ignore file */
3+
/* tslint:disable */
4+
/* eslint-disable */
5+
/**
6+
* Semantic version identifier (e.g., 1.2.3, 2.0.0-rc1)
7+
*/
8+
export type SemVer = string;
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/* generated using openapi-typescript-codegen -- do no edit */
2+
/* istanbul ignore file */
3+
/* tslint:disable */
4+
/* eslint-disable */
5+
/**
6+
* Semver range constraint (e.g., >=1.0.0 <2.0.0). Space-separated terms, each with optional operator (>=, <=, >, <, =, ~, ^) followed by a version.
7+
*/
8+
export type SemVerRange = string;

0 commit comments

Comments
 (0)