@harnessio/react-hhi-armory-service-client 0.1.0 → 0.2.0
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/README.md +4 -0
- package/dist/hhi-armory-service/src/services/hooks/useContainerGetComparisonQuery.d.ts +43 -0
- package/dist/hhi-armory-service/src/services/hooks/useContainerGetComparisonQuery.js +14 -0
- package/dist/hhi-armory-service/src/services/hooks/useContainerGetContainerQuery.d.ts +25 -0
- package/dist/hhi-armory-service/src/services/hooks/useContainerGetContainerQuery.js +14 -0
- package/dist/hhi-armory-service/src/services/hooks/useContainerGetOverviewQuery.d.ts +25 -0
- package/dist/hhi-armory-service/src/services/hooks/useContainerGetOverviewQuery.js +14 -0
- package/dist/hhi-armory-service/src/services/hooks/useContainerGetProvenanceQuery.d.ts +25 -0
- package/dist/hhi-armory-service/src/services/hooks/useContainerGetProvenanceQuery.js +14 -0
- package/dist/hhi-armory-service/src/services/hooks/useContainerListContainersQuery.d.ts +46 -0
- package/dist/hhi-armory-service/src/services/hooks/useContainerListContainersQuery.js +14 -0
- package/dist/hhi-armory-service/src/services/hooks/useContainerListTagPackagesQuery.d.ts +54 -0
- package/dist/hhi-armory-service/src/services/hooks/useContainerListTagPackagesQuery.js +14 -0
- package/dist/hhi-armory-service/src/services/hooks/useContainerListTagVulnerabilitiesQuery.d.ts +57 -0
- package/dist/hhi-armory-service/src/services/hooks/useContainerListTagVulnerabilitiesQuery.js +14 -0
- package/dist/hhi-armory-service/src/services/hooks/useContainerListTagsQuery.d.ts +50 -0
- package/dist/hhi-armory-service/src/services/hooks/useContainerListTagsQuery.js +14 -0
- package/dist/hhi-armory-service/src/services/index.d.ts +40 -0
- package/dist/hhi-armory-service/src/services/index.js +8 -0
- package/dist/hhi-armory-service/src/services/schemas/ArchInfo.d.ts +18 -0
- package/dist/hhi-armory-service/src/services/schemas/ArchInfo.js +4 -0
- package/dist/hhi-armory-service/src/services/schemas/BadRequest.d.ts +8 -0
- package/dist/hhi-armory-service/src/services/schemas/ComparisonData.d.ts +26 -0
- package/dist/hhi-armory-service/src/services/schemas/ComparisonData.js +1 -0
- package/dist/hhi-armory-service/src/services/schemas/ComparisonMetrics.d.ts +10 -0
- package/dist/hhi-armory-service/src/services/schemas/ComparisonMetrics.js +1 -0
- package/dist/hhi-armory-service/src/services/schemas/ContainerSummary.d.ts +63 -0
- package/dist/hhi-armory-service/src/services/schemas/ContainerSummary.js +4 -0
- package/dist/hhi-armory-service/src/services/schemas/CveEvent.d.ts +26 -0
- package/dist/hhi-armory-service/src/services/schemas/CveEvent.js +4 -0
- package/dist/hhi-armory-service/src/services/schemas/DailyCve.d.ts +39 -0
- package/dist/hhi-armory-service/src/services/schemas/DailyCve.js +4 -0
- package/dist/hhi-armory-service/src/services/schemas/ImageTag.d.ts +24 -0
- package/dist/hhi-armory-service/src/services/schemas/ImageTag.js +1 -0
- package/dist/hhi-armory-service/src/services/schemas/InternalServerError.d.ts +8 -0
- package/dist/hhi-armory-service/src/services/schemas/ListContainersResponseBody.d.ts +12 -0
- package/dist/hhi-armory-service/src/services/schemas/ListContainersResponseBody.js +1 -0
- package/dist/hhi-armory-service/src/services/schemas/ListTagPackagesResponseBody.d.ts +14 -0
- package/dist/hhi-armory-service/src/services/schemas/ListTagPackagesResponseBody.js +1 -0
- package/dist/hhi-armory-service/src/services/schemas/ListTagVulnerabilitiesResponseBody.d.ts +14 -0
- package/dist/hhi-armory-service/src/services/schemas/ListTagVulnerabilitiesResponseBody.js +1 -0
- package/dist/hhi-armory-service/src/services/schemas/ListTagsResponseBody.d.ts +16 -0
- package/dist/hhi-armory-service/src/services/schemas/ListTagsResponseBody.js +1 -0
- package/dist/hhi-armory-service/src/services/schemas/MarkdownDoc.d.ts +21 -0
- package/dist/hhi-armory-service/src/services/schemas/MarkdownDoc.js +4 -0
- package/dist/hhi-armory-service/src/services/schemas/MetricSet.d.ts +25 -0
- package/dist/hhi-armory-service/src/services/schemas/MetricSet.js +4 -0
- package/dist/hhi-armory-service/src/services/schemas/NameSlug.d.ts +13 -0
- package/dist/hhi-armory-service/src/services/schemas/NameSlug.js +4 -0
- package/dist/hhi-armory-service/src/services/schemas/NetNewCveDay.d.ts +24 -0
- package/dist/hhi-armory-service/src/services/schemas/NetNewCveDay.js +1 -0
- package/dist/hhi-armory-service/src/services/schemas/NotFound.d.ts +8 -0
- package/dist/hhi-armory-service/src/services/schemas/NotImplemented.d.ts +15 -0
- package/dist/hhi-armory-service/src/services/schemas/NotImplemented.js +4 -0
- package/dist/hhi-armory-service/src/services/schemas/PackageInfo.d.ts +30 -0
- package/dist/hhi-armory-service/src/services/schemas/PackageInfo.js +4 -0
- package/dist/hhi-armory-service/src/services/schemas/Pagination.d.ts +12 -3
- package/dist/hhi-armory-service/src/services/schemas/ReductionSet.d.ts +25 -0
- package/dist/hhi-armory-service/src/services/schemas/ReductionSet.js +4 -0
- package/dist/hhi-armory-service/src/services/schemas/ServiceUnavailable.d.ts +15 -0
- package/dist/hhi-armory-service/src/services/schemas/ServiceUnavailable.js +4 -0
- package/dist/hhi-armory-service/src/services/schemas/SeverityTimeline.d.ts +14 -0
- package/dist/hhi-armory-service/src/services/schemas/SeverityTimeline.js +1 -0
- package/dist/hhi-armory-service/src/services/schemas/TagMetadata.d.ts +32 -0
- package/dist/hhi-armory-service/src/services/schemas/TagMetadata.js +1 -0
- package/dist/hhi-armory-service/src/services/schemas/TagSize.d.ts +16 -0
- package/dist/hhi-armory-service/src/services/schemas/TagSize.js +4 -0
- package/dist/hhi-armory-service/src/services/schemas/Unauthorized.d.ts +8 -0
- package/dist/hhi-armory-service/src/services/schemas/Vulnerabilities.d.ts +31 -0
- package/dist/hhi-armory-service/src/services/schemas/Vulnerabilities.js +4 -0
- package/dist/hhi-armory-service/src/services/schemas/VulnerabilityRow.d.ts +48 -0
- package/dist/hhi-armory-service/src/services/schemas/VulnerabilityRow.js +4 -0
- package/package.json +1 -1
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { NameSlug } from '../schemas/NameSlug';
|
|
2
|
+
import type { ComparisonMetrics } from '../schemas/ComparisonMetrics';
|
|
3
|
+
import type { SeverityTimeline } from '../schemas/SeverityTimeline';
|
|
4
|
+
import type { NetNewCveDay } from '../schemas/NetNewCveDay';
|
|
5
|
+
/**
|
|
6
|
+
* Comparison of a Harness tag with an alternative image.
|
|
7
|
+
* @example {"availableAlternatives":[{"name":"Last month","slug":"last-month"},{"name":"Last month","slug":"last-month"},{"name":"Last month","slug":"last-month"},{"name":"Last month","slug":"last-month"}],"availablePeriods":[{"name":"Last month","slug":"last-month"},{"name":"Last month","slug":"last-month"},{"name":"Last month","slug":"last-month"}],"comparisonMetrics":{"alternative":{"compressedSizeMb":63.9,"newCvesPerMonth":0,"numberOfPackages":32,"totalCves":0},"harness":{"compressedSizeMb":63.9,"newCvesPerMonth":0,"numberOfPackages":32,"totalCves":0},"reduction":{"compressedSizePercent":94,"newCvesPerMonthPercent":100,"numberOfPackagesPercent":93,"totalCvesPercent":100}},"cvesBySeverityTimeline":{"alternative":[{"critical":8469470783580281000,"date":"2025-10-07","high":102190922570021470,"low":2237222090248226300,"medium":1668840470618656500,"total":4058625835738158000,"unknown":6055519049768489000},{"critical":8469470783580281000,"date":"2025-10-07","high":102190922570021470,"low":2237222090248226300,"medium":1668840470618656500,"total":4058625835738158000,"unknown":6055519049768489000},{"critical":8469470783580281000,"date":"2025-10-07","high":102190922570021470,"low":2237222090248226300,"medium":1668840470618656500,"total":4058625835738158000,"unknown":6055519049768489000},{"critical":8469470783580281000,"date":"2025-10-07","high":102190922570021470,"low":2237222090248226300,"medium":1668840470618656500,"total":4058625835738158000,"unknown":6055519049768489000}],"harness":[{"critical":8469470783580281000,"date":"2025-10-07","high":102190922570021470,"low":2237222090248226300,"medium":1668840470618656500,"total":4058625835738158000,"unknown":6055519049768489000},{"critical":8469470783580281000,"date":"2025-10-07","high":102190922570021470,"low":2237222090248226300,"medium":1668840470618656500,"total":4058625835738158000,"unknown":6055519049768489000},{"critical":8469470783580281000,"date":"2025-10-07","high":102190922570021470,"low":2237222090248226300,"medium":1668840470618656500,"total":4058625835738158000,"unknown":6055519049768489000},{"critical":8469470783580281000,"date":"2025-10-07","high":102190922570021470,"low":2237222090248226300,"medium":1668840470618656500,"total":4058625835738158000,"unknown":6055519049768489000}]},"netNewCvesTimeline":[{"alternative":250,"date":"2025-10-07","events":[{"cveId":"CVE-2024-58251","cveSlug":"CVE-2024-58251","severity":"Critical","severityScore":8.5,"type":"alternative"},{"cveId":"CVE-2024-58251","cveSlug":"CVE-2024-58251","severity":"Critical","severityScore":8.5,"type":"alternative"},{"cveId":"CVE-2024-58251","cveSlug":"CVE-2024-58251","severity":"Critical","severityScore":8.5,"type":"alternative"},{"cveId":"CVE-2024-58251","cveSlug":"CVE-2024-58251","severity":"Critical","severityScore":8.5,"type":"alternative"}],"harness":0},{"alternative":250,"date":"2025-10-07","events":[{"cveId":"CVE-2024-58251","cveSlug":"CVE-2024-58251","severity":"Critical","severityScore":8.5,"type":"alternative"},{"cveId":"CVE-2024-58251","cveSlug":"CVE-2024-58251","severity":"Critical","severityScore":8.5,"type":"alternative"},{"cveId":"CVE-2024-58251","cveSlug":"CVE-2024-58251","severity":"Critical","severityScore":8.5,"type":"alternative"},{"cveId":"CVE-2024-58251","cveSlug":"CVE-2024-58251","severity":"Critical","severityScore":8.5,"type":"alternative"}],"harness":0},{"alternative":250,"date":"2025-10-07","events":[{"cveId":"CVE-2024-58251","cveSlug":"CVE-2024-58251","severity":"Critical","severityScore":8.5,"type":"alternative"},{"cveId":"CVE-2024-58251","cveSlug":"CVE-2024-58251","severity":"Critical","severityScore":8.5,"type":"alternative"},{"cveId":"CVE-2024-58251","cveSlug":"CVE-2024-58251","severity":"Critical","severityScore":8.5,"type":"alternative"},{"cveId":"CVE-2024-58251","cveSlug":"CVE-2024-58251","severity":"Critical","severityScore":8.5,"type":"alternative"}],"harness":0}],"selectedAlternative":{"name":"Last month","slug":"last-month"},"selectedPeriod":{"name":"Last month","slug":"last-month"}}
|
|
8
|
+
*/
|
|
9
|
+
export interface ComparisonData {
|
|
10
|
+
/**
|
|
11
|
+
* @example [{"name":"Last month","slug":"last-month"},{"name":"Last month","slug":"last-month"},{"name":"Last month","slug":"last-month"},{"name":"Last month","slug":"last-month"}]
|
|
12
|
+
*/
|
|
13
|
+
availableAlternatives: NameSlug[];
|
|
14
|
+
/**
|
|
15
|
+
* @example [{"name":"Last month","slug":"last-month"},{"name":"Last month","slug":"last-month"},{"name":"Last month","slug":"last-month"},{"name":"Last month","slug":"last-month"}]
|
|
16
|
+
*/
|
|
17
|
+
availablePeriods: NameSlug[];
|
|
18
|
+
comparisonMetrics: ComparisonMetrics;
|
|
19
|
+
cvesBySeverityTimeline: SeverityTimeline;
|
|
20
|
+
/**
|
|
21
|
+
* @example [{"alternative":250,"date":"2025-10-07","events":[{"cveId":"CVE-2024-58251","cveSlug":"CVE-2024-58251","severity":"Critical","severityScore":8.5,"type":"alternative"},{"cveId":"CVE-2024-58251","cveSlug":"CVE-2024-58251","severity":"Critical","severityScore":8.5,"type":"alternative"},{"cveId":"CVE-2024-58251","cveSlug":"CVE-2024-58251","severity":"Critical","severityScore":8.5,"type":"alternative"},{"cveId":"CVE-2024-58251","cveSlug":"CVE-2024-58251","severity":"Critical","severityScore":8.5,"type":"alternative"}],"harness":0},{"alternative":250,"date":"2025-10-07","events":[{"cveId":"CVE-2024-58251","cveSlug":"CVE-2024-58251","severity":"Critical","severityScore":8.5,"type":"alternative"},{"cveId":"CVE-2024-58251","cveSlug":"CVE-2024-58251","severity":"Critical","severityScore":8.5,"type":"alternative"},{"cveId":"CVE-2024-58251","cveSlug":"CVE-2024-58251","severity":"Critical","severityScore":8.5,"type":"alternative"},{"cveId":"CVE-2024-58251","cveSlug":"CVE-2024-58251","severity":"Critical","severityScore":8.5,"type":"alternative"}],"harness":0}]
|
|
22
|
+
*/
|
|
23
|
+
netNewCvesTimeline: NetNewCveDay[];
|
|
24
|
+
selectedAlternative: NameSlug;
|
|
25
|
+
selectedPeriod: NameSlug;
|
|
26
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { MetricSet } from '../schemas/MetricSet';
|
|
2
|
+
import type { ReductionSet } from '../schemas/ReductionSet';
|
|
3
|
+
/**
|
|
4
|
+
* @example {"alternative":{"compressedSizeMb":63.9,"newCvesPerMonth":0,"numberOfPackages":32,"totalCves":0},"harness":{"compressedSizeMb":63.9,"newCvesPerMonth":0,"numberOfPackages":32,"totalCves":0},"reduction":{"compressedSizePercent":94,"newCvesPerMonthPercent":100,"numberOfPackagesPercent":93,"totalCvesPercent":100}}
|
|
5
|
+
*/
|
|
6
|
+
export interface ComparisonMetrics {
|
|
7
|
+
alternative: MetricSet;
|
|
8
|
+
harness: MetricSet;
|
|
9
|
+
reduction: ReductionSet;
|
|
10
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A single container image record (catalog card / detail).
|
|
3
|
+
* @example {"additionalTagsCount":124,"description":"Minimal HarnessOS Adoptium Java JDK image.","detailsApiUrl":"/api/v1/containers/adoptium-jdk","dockerPull":"registry.harness.io/harness/prometheus","fipsAvailable":true,"fipsSlugReference":"nginx-fips","hasManyTags":["latest","stable","1.0.0"],"lastChanged":"2025-10-07T13:00:00Z","latestTag":"adoptium-openjdk-21.0.8.9","logoUrl":"https://framerusercontent.com/images/xnRwaYXs5ljCX83txuuUgPeD9Y.svg","name":"adoptium-jdk","slug":"adoptium-jdk","usage":"Used for compiling Java applications."}
|
|
4
|
+
*/
|
|
5
|
+
export interface ContainerSummary {
|
|
6
|
+
/**
|
|
7
|
+
* @format int64
|
|
8
|
+
* @example 124
|
|
9
|
+
*/
|
|
10
|
+
additionalTagsCount: number;
|
|
11
|
+
/**
|
|
12
|
+
* @example "Minimal HarnessOS Adoptium Java JDK image."
|
|
13
|
+
*/
|
|
14
|
+
description: string;
|
|
15
|
+
/**
|
|
16
|
+
* @example "/api/v1/containers/adoptium-jdk"
|
|
17
|
+
*/
|
|
18
|
+
detailsApiUrl: string;
|
|
19
|
+
/**
|
|
20
|
+
* Docker pull reference for the image. Uses the image name (not the slug).
|
|
21
|
+
* @example "registry.harness.io/harness/prometheus"
|
|
22
|
+
*/
|
|
23
|
+
dockerPull: string;
|
|
24
|
+
/**
|
|
25
|
+
* @example true
|
|
26
|
+
*/
|
|
27
|
+
fipsAvailable: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Slug of the FIPS-variant container. Present only when fipsAvailable is true.
|
|
30
|
+
* @example "nginx-fips"
|
|
31
|
+
*/
|
|
32
|
+
fipsSlugReference?: string;
|
|
33
|
+
/**
|
|
34
|
+
* Notable tag names for the container.
|
|
35
|
+
* @example ["latest","stable","1.0.0"]
|
|
36
|
+
*/
|
|
37
|
+
hasManyTags?: string[];
|
|
38
|
+
/**
|
|
39
|
+
* @format date-time
|
|
40
|
+
* @example "2025-10-07T13:00:00Z"
|
|
41
|
+
*/
|
|
42
|
+
lastChanged: string;
|
|
43
|
+
/**
|
|
44
|
+
* @example "adoptium-openjdk-21.0.8.9"
|
|
45
|
+
*/
|
|
46
|
+
latestTag: string;
|
|
47
|
+
/**
|
|
48
|
+
* @example "https://framerusercontent.com/images/xnRwaYXs5ljCX83txuuUgPeD9Y.svg"
|
|
49
|
+
*/
|
|
50
|
+
logoUrl?: string;
|
|
51
|
+
/**
|
|
52
|
+
* @example "adoptium-jdk"
|
|
53
|
+
*/
|
|
54
|
+
name: string;
|
|
55
|
+
/**
|
|
56
|
+
* @example "adoptium-jdk"
|
|
57
|
+
*/
|
|
58
|
+
slug: string;
|
|
59
|
+
/**
|
|
60
|
+
* @example "Used for compiling Java applications."
|
|
61
|
+
*/
|
|
62
|
+
usage: string;
|
|
63
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @example {"cveId":"CVE-2024-58251","cveSlug":"CVE-2024-58251","severity":"Critical","severityScore":8.5,"type":"alternative"}
|
|
3
|
+
*/
|
|
4
|
+
export interface CveEvent {
|
|
5
|
+
/**
|
|
6
|
+
* @example "CVE-2024-58251"
|
|
7
|
+
*/
|
|
8
|
+
cveId: string;
|
|
9
|
+
/**
|
|
10
|
+
* @example "CVE-2024-58251"
|
|
11
|
+
*/
|
|
12
|
+
cveSlug: string;
|
|
13
|
+
/**
|
|
14
|
+
* @example "Critical"
|
|
15
|
+
*/
|
|
16
|
+
severity: string;
|
|
17
|
+
/**
|
|
18
|
+
* @format double
|
|
19
|
+
* @example 8.5
|
|
20
|
+
*/
|
|
21
|
+
severityScore: number;
|
|
22
|
+
/**
|
|
23
|
+
* @example "alternative"
|
|
24
|
+
*/
|
|
25
|
+
type: string;
|
|
26
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @example {"critical":3277784178728186000,"date":"2025-10-07","high":7580244515916350000,"low":7126105310315128000,"medium":3324589630928013000,"total":4728286211276118000,"unknown":5787367445904496000}
|
|
3
|
+
*/
|
|
4
|
+
export interface DailyCve {
|
|
5
|
+
/**
|
|
6
|
+
* @format int64
|
|
7
|
+
* @example 5700623677072544000
|
|
8
|
+
*/
|
|
9
|
+
critical: number;
|
|
10
|
+
/**
|
|
11
|
+
* @example "2025-10-07"
|
|
12
|
+
*/
|
|
13
|
+
date: string;
|
|
14
|
+
/**
|
|
15
|
+
* @format int64
|
|
16
|
+
* @example 3330131728356873000
|
|
17
|
+
*/
|
|
18
|
+
high: number;
|
|
19
|
+
/**
|
|
20
|
+
* @format int64
|
|
21
|
+
* @example 8165286945051507000
|
|
22
|
+
*/
|
|
23
|
+
low: number;
|
|
24
|
+
/**
|
|
25
|
+
* @format int64
|
|
26
|
+
* @example 5583309571277814000
|
|
27
|
+
*/
|
|
28
|
+
medium: number;
|
|
29
|
+
/**
|
|
30
|
+
* @format int64
|
|
31
|
+
* @example 290436617428121100
|
|
32
|
+
*/
|
|
33
|
+
total: number;
|
|
34
|
+
/**
|
|
35
|
+
* @format int64
|
|
36
|
+
* @example 9037749807071155000
|
|
37
|
+
*/
|
|
38
|
+
unknown: number;
|
|
39
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { TagSize } from '../schemas/TagSize';
|
|
2
|
+
import type { Vulnerabilities } from '../schemas/Vulnerabilities';
|
|
3
|
+
/**
|
|
4
|
+
* A single image tag (version).
|
|
5
|
+
* @example {"lastChanged":"2012-11-26T20:10:31Z","size":{"architectures":["x86_64","arm64"],"totalMb":22.38},"tagName":"3.10-dev, 3.10.18-dev","tagSlug":"3-10-18-dev","vulnerabilities":{"critical":0,"high":8,"low":141,"medium":4,"negligible":2}}
|
|
6
|
+
*/
|
|
7
|
+
export interface ImageTag {
|
|
8
|
+
/**
|
|
9
|
+
* @format date-time
|
|
10
|
+
* @example "2001-03-12T06:58:47Z"
|
|
11
|
+
*/
|
|
12
|
+
lastChanged: string;
|
|
13
|
+
size: TagSize;
|
|
14
|
+
/**
|
|
15
|
+
* @example "3.10-dev, 3.10.18-dev"
|
|
16
|
+
*/
|
|
17
|
+
tagName: string;
|
|
18
|
+
/**
|
|
19
|
+
* URL-safe tag identifier used by the tag-scoped endpoints (packages, vulnerabilities, comparison, sbom).
|
|
20
|
+
* @example "3-10-18-dev"
|
|
21
|
+
*/
|
|
22
|
+
tagSlug: string;
|
|
23
|
+
vulnerabilities: Vulnerabilities;
|
|
24
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,7 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @example {"message":"Internal Server Error","status":8269935850730361000}
|
|
3
|
+
*/
|
|
1
4
|
export interface InternalServerError {
|
|
5
|
+
/**
|
|
6
|
+
* @example "Internal Server Error"
|
|
7
|
+
*/
|
|
2
8
|
message: string;
|
|
3
9
|
/**
|
|
4
10
|
* @format int64
|
|
11
|
+
* @default 500
|
|
12
|
+
* @example 2012966562710299600
|
|
5
13
|
*/
|
|
6
14
|
status?: number;
|
|
7
15
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { Pagination } from '../schemas/Pagination';
|
|
2
|
+
import type { ContainerSummary } from '../schemas/ContainerSummary';
|
|
3
|
+
/**
|
|
4
|
+
* @example {"pagination":{"page":0,"pageSize":50,"total":42},"results":[{"additionalTagsCount":124,"description":"Minimal HarnessOS Adoptium Java JDK image.","detailsApiUrl":"/api/v1/containers/adoptium-jdk","dockerPull":"registry.harness.io/harness/prometheus","fipsAvailable":true,"fipsSlugReference":"nginx-fips","hasManyTags":["latest","stable","1.0.0"],"lastChanged":"2025-10-07T13:00:00Z","latestTag":"adoptium-openjdk-21.0.8.9","logoUrl":"https://framerusercontent.com/images/xnRwaYXs5ljCX83txuuUgPeD9Y.svg","name":"adoptium-jdk","slug":"adoptium-jdk","usage":"Used for compiling Java applications."},{"additionalTagsCount":124,"description":"Minimal HarnessOS Adoptium Java JDK image.","detailsApiUrl":"/api/v1/containers/adoptium-jdk","dockerPull":"registry.harness.io/harness/prometheus","fipsAvailable":true,"fipsSlugReference":"nginx-fips","hasManyTags":["latest","stable","1.0.0"],"lastChanged":"2025-10-07T13:00:00Z","latestTag":"adoptium-openjdk-21.0.8.9","logoUrl":"https://framerusercontent.com/images/xnRwaYXs5ljCX83txuuUgPeD9Y.svg","name":"adoptium-jdk","slug":"adoptium-jdk","usage":"Used for compiling Java applications."},{"additionalTagsCount":124,"description":"Minimal HarnessOS Adoptium Java JDK image.","detailsApiUrl":"/api/v1/containers/adoptium-jdk","dockerPull":"registry.harness.io/harness/prometheus","fipsAvailable":true,"fipsSlugReference":"nginx-fips","hasManyTags":["latest","stable","1.0.0"],"lastChanged":"2025-10-07T13:00:00Z","latestTag":"adoptium-openjdk-21.0.8.9","logoUrl":"https://framerusercontent.com/images/xnRwaYXs5ljCX83txuuUgPeD9Y.svg","name":"adoptium-jdk","slug":"adoptium-jdk","usage":"Used for compiling Java applications."}]}
|
|
5
|
+
*/
|
|
6
|
+
export interface ListContainersResponseBody {
|
|
7
|
+
pagination: Pagination;
|
|
8
|
+
/**
|
|
9
|
+
* @example [{"additionalTagsCount":124,"description":"Minimal HarnessOS Adoptium Java JDK image.","detailsApiUrl":"/api/v1/containers/adoptium-jdk","dockerPull":"registry.harness.io/harness/prometheus","fipsAvailable":true,"fipsSlugReference":"nginx-fips","hasManyTags":["latest","stable","1.0.0"],"lastChanged":"2025-10-07T13:00:00Z","latestTag":"adoptium-openjdk-21.0.8.9","logoUrl":"https://framerusercontent.com/images/xnRwaYXs5ljCX83txuuUgPeD9Y.svg","name":"adoptium-jdk","slug":"adoptium-jdk","usage":"Used for compiling Java applications."},{"additionalTagsCount":124,"description":"Minimal HarnessOS Adoptium Java JDK image.","detailsApiUrl":"/api/v1/containers/adoptium-jdk","dockerPull":"registry.harness.io/harness/prometheus","fipsAvailable":true,"fipsSlugReference":"nginx-fips","hasManyTags":["latest","stable","1.0.0"],"lastChanged":"2025-10-07T13:00:00Z","latestTag":"adoptium-openjdk-21.0.8.9","logoUrl":"https://framerusercontent.com/images/xnRwaYXs5ljCX83txuuUgPeD9Y.svg","name":"adoptium-jdk","slug":"adoptium-jdk","usage":"Used for compiling Java applications."},{"additionalTagsCount":124,"description":"Minimal HarnessOS Adoptium Java JDK image.","detailsApiUrl":"/api/v1/containers/adoptium-jdk","dockerPull":"registry.harness.io/harness/prometheus","fipsAvailable":true,"fipsSlugReference":"nginx-fips","hasManyTags":["latest","stable","1.0.0"],"lastChanged":"2025-10-07T13:00:00Z","latestTag":"adoptium-openjdk-21.0.8.9","logoUrl":"https://framerusercontent.com/images/xnRwaYXs5ljCX83txuuUgPeD9Y.svg","name":"adoptium-jdk","slug":"adoptium-jdk","usage":"Used for compiling Java applications."}]
|
|
10
|
+
*/
|
|
11
|
+
results: ContainerSummary[];
|
|
12
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { Pagination } from '../schemas/Pagination';
|
|
2
|
+
import type { PackageInfo } from '../schemas/PackageInfo';
|
|
3
|
+
import type { TagMetadata } from '../schemas/TagMetadata';
|
|
4
|
+
/**
|
|
5
|
+
* @example {"pagination":{"page":0,"pageSize":50,"total":42},"results":[{"license":"Apache-2.0","package":"openssl","packageSlug":"openssl","repository":"https://github.com/openssl/openssl","version":"3.1.4-r0","versionSlug":"3-1-4-r0"},{"license":"Apache-2.0","package":"openssl","packageSlug":"openssl","repository":"https://github.com/openssl/openssl","version":"3.1.4-r0","versionSlug":"3-1-4-r0"},{"license":"Apache-2.0","package":"openssl","packageSlug":"openssl","repository":"https://github.com/openssl/openssl","version":"3.1.4-r0","versionSlug":"3-1-4-r0"},{"license":"Apache-2.0","package":"openssl","packageSlug":"openssl","repository":"https://github.com/openssl/openssl","version":"3.1.4-r0","versionSlug":"3-1-4-r0"}],"tagMetadata":{"architectures":[{"archSlug":"x86-64","name":"x86_64","sizeMb":22.39},{"archSlug":"x86-64","name":"x86_64","sizeMb":22.39},{"archSlug":"x86-64","name":"x86_64","sizeMb":22.39},{"archSlug":"x86-64","name":"x86_64","sizeMb":22.39}],"dockerPullCommand":"docker pull app.harness.io/python-base:3.10.18-dev","lastChanged":"1974-03-02T13:11:10Z","sbomDownloadUrl":"https://cdn.harness.io/sbom/python-base/3-10-18-dev/x86-64/sbom.json","tagName":"3.10.18-dev","tagSlug":"3-10-18-dev"}}
|
|
6
|
+
*/
|
|
7
|
+
export interface ListTagPackagesResponseBody {
|
|
8
|
+
pagination: Pagination;
|
|
9
|
+
/**
|
|
10
|
+
* @example [{"license":"Apache-2.0","package":"openssl","packageSlug":"openssl","repository":"https://github.com/openssl/openssl","version":"3.1.4-r0","versionSlug":"3-1-4-r0"},{"license":"Apache-2.0","package":"openssl","packageSlug":"openssl","repository":"https://github.com/openssl/openssl","version":"3.1.4-r0","versionSlug":"3-1-4-r0"},{"license":"Apache-2.0","package":"openssl","packageSlug":"openssl","repository":"https://github.com/openssl/openssl","version":"3.1.4-r0","versionSlug":"3-1-4-r0"},{"license":"Apache-2.0","package":"openssl","packageSlug":"openssl","repository":"https://github.com/openssl/openssl","version":"3.1.4-r0","versionSlug":"3-1-4-r0"}]
|
|
11
|
+
*/
|
|
12
|
+
results: PackageInfo[];
|
|
13
|
+
tagMetadata: TagMetadata;
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { Pagination } from '../schemas/Pagination';
|
|
2
|
+
import type { VulnerabilityRow } from '../schemas/VulnerabilityRow';
|
|
3
|
+
import type { TagMetadata } from '../schemas/TagMetadata';
|
|
4
|
+
/**
|
|
5
|
+
* @example {"pagination":{"page":0,"pageSize":50,"total":42},"results":[{"cveId":"CVE-2024-58251","cveSlug":"CVE-2024-58251","fixedInVersion":"3.1.5-r0","lastDetected":"1980-07-11T14:24:59Z","package":"openssl","packageSlug":"openssl","severity":"High","severityScore":7.8,"version":"3.1.4-r0","versionSlug":"3-1-4-r0"},{"cveId":"CVE-2024-58251","cveSlug":"CVE-2024-58251","fixedInVersion":"3.1.5-r0","lastDetected":"1980-07-11T14:24:59Z","package":"openssl","packageSlug":"openssl","severity":"High","severityScore":7.8,"version":"3.1.4-r0","versionSlug":"3-1-4-r0"}],"tagMetadata":{"architectures":[{"archSlug":"x86-64","name":"x86_64","sizeMb":22.39},{"archSlug":"x86-64","name":"x86_64","sizeMb":22.39},{"archSlug":"x86-64","name":"x86_64","sizeMb":22.39},{"archSlug":"x86-64","name":"x86_64","sizeMb":22.39}],"dockerPullCommand":"docker pull app.harness.io/python-base:3.10.18-dev","lastChanged":"1974-03-02T13:11:10Z","sbomDownloadUrl":"https://cdn.harness.io/sbom/python-base/3-10-18-dev/x86-64/sbom.json","tagName":"3.10.18-dev","tagSlug":"3-10-18-dev"}}
|
|
6
|
+
*/
|
|
7
|
+
export interface ListTagVulnerabilitiesResponseBody {
|
|
8
|
+
pagination: Pagination;
|
|
9
|
+
/**
|
|
10
|
+
* @example [{"cveId":"CVE-2024-58251","cveSlug":"CVE-2024-58251","fixedInVersion":"3.1.5-r0","lastDetected":"1980-07-11T14:24:59Z","package":"openssl","packageSlug":"openssl","severity":"High","severityScore":7.8,"version":"3.1.4-r0","versionSlug":"3-1-4-r0"},{"cveId":"CVE-2024-58251","cveSlug":"CVE-2024-58251","fixedInVersion":"3.1.5-r0","lastDetected":"1980-07-11T14:24:59Z","package":"openssl","packageSlug":"openssl","severity":"High","severityScore":7.8,"version":"3.1.4-r0","versionSlug":"3-1-4-r0"}]
|
|
11
|
+
*/
|
|
12
|
+
results: VulnerabilityRow[];
|
|
13
|
+
tagMetadata: TagMetadata;
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { Pagination } from '../schemas/Pagination';
|
|
2
|
+
import type { ImageTag } from '../schemas/ImageTag';
|
|
3
|
+
/**
|
|
4
|
+
* @example {"availableVariants":["dev","production"],"pagination":{"page":0,"pageSize":50,"total":42},"results":[{"lastChanged":"1984-08-01T11:38:33Z","size":{"architectures":["x86_64","arm64"],"totalMb":22.38},"tagName":"3.10-dev, 3.10.18-dev","tagSlug":"3-10-18-dev","vulnerabilities":{"critical":0,"high":8,"low":141,"medium":4,"negligible":2}},{"lastChanged":"1984-08-01T11:38:33Z","size":{"architectures":["x86_64","arm64"],"totalMb":22.38},"tagName":"3.10-dev, 3.10.18-dev","tagSlug":"3-10-18-dev","vulnerabilities":{"critical":0,"high":8,"low":141,"medium":4,"negligible":2}}]}
|
|
5
|
+
*/
|
|
6
|
+
export interface ListTagsResponseBody {
|
|
7
|
+
/**
|
|
8
|
+
* @example ["dev","production"]
|
|
9
|
+
*/
|
|
10
|
+
availableVariants: string[];
|
|
11
|
+
pagination: Pagination;
|
|
12
|
+
/**
|
|
13
|
+
* @example [{"lastChanged":"1984-08-01T11:38:33Z","size":{"architectures":["x86_64","arm64"],"totalMb":22.38},"tagName":"3.10-dev, 3.10.18-dev","tagSlug":"3-10-18-dev","vulnerabilities":{"critical":0,"high":8,"low":141,"medium":4,"negligible":2}},{"lastChanged":"1984-08-01T11:38:33Z","size":{"architectures":["x86_64","arm64"],"totalMb":22.38},"tagName":"3.10-dev, 3.10.18-dev","tagSlug":"3-10-18-dev","vulnerabilities":{"critical":0,"high":8,"low":141,"medium":4,"negligible":2}},{"lastChanged":"1984-08-01T11:38:33Z","size":{"architectures":["x86_64","arm64"],"totalMb":22.38},"tagName":"3.10-dev, 3.10.18-dev","tagSlug":"3-10-18-dev","vulnerabilities":{"critical":0,"high":8,"low":141,"medium":4,"negligible":2}}]
|
|
14
|
+
*/
|
|
15
|
+
results: ImageTag[];
|
|
16
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A markdown document (Overview or Provenance) for a container.
|
|
3
|
+
* @example {"content":"# Harness Secure Artifacts Container for python\n\nMinimal Python image...","kind":"overview","slug":"python"}
|
|
4
|
+
*/
|
|
5
|
+
export interface MarkdownDoc {
|
|
6
|
+
/**
|
|
7
|
+
* Raw markdown source.
|
|
8
|
+
* @example "# Harness Secure Artifacts Container for python\n\nMinimal Python image..."
|
|
9
|
+
*/
|
|
10
|
+
content: string;
|
|
11
|
+
/**
|
|
12
|
+
* Which document this is.
|
|
13
|
+
* @example "overview"
|
|
14
|
+
*/
|
|
15
|
+
kind: 'overview' | 'provenance';
|
|
16
|
+
/**
|
|
17
|
+
* Container slug this document belongs to.
|
|
18
|
+
* @example "python"
|
|
19
|
+
*/
|
|
20
|
+
slug: string;
|
|
21
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @example {"compressedSizeMb":63.9,"newCvesPerMonth":0,"numberOfPackages":32,"totalCves":0}
|
|
3
|
+
*/
|
|
4
|
+
export interface MetricSet {
|
|
5
|
+
/**
|
|
6
|
+
* @format double
|
|
7
|
+
* @example 63.9
|
|
8
|
+
*/
|
|
9
|
+
compressedSizeMb: number;
|
|
10
|
+
/**
|
|
11
|
+
* @format int64
|
|
12
|
+
* @example 0
|
|
13
|
+
*/
|
|
14
|
+
newCvesPerMonth: number;
|
|
15
|
+
/**
|
|
16
|
+
* @format int64
|
|
17
|
+
* @example 32
|
|
18
|
+
*/
|
|
19
|
+
numberOfPackages: number;
|
|
20
|
+
/**
|
|
21
|
+
* @format int64
|
|
22
|
+
* @example 0
|
|
23
|
+
*/
|
|
24
|
+
totalCves: number;
|
|
25
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { CveEvent } from '../schemas/CveEvent';
|
|
2
|
+
/**
|
|
3
|
+
* @example {"alternative":250,"date":"2025-10-07","events":[{"cveId":"CVE-2024-58251","cveSlug":"CVE-2024-58251","severity":"Critical","severityScore":8.5,"type":"alternative"},{"cveId":"CVE-2024-58251","cveSlug":"CVE-2024-58251","severity":"Critical","severityScore":8.5,"type":"alternative"},{"cveId":"CVE-2024-58251","cveSlug":"CVE-2024-58251","severity":"Critical","severityScore":8.5,"type":"alternative"}],"harness":0}
|
|
4
|
+
*/
|
|
5
|
+
export interface NetNewCveDay {
|
|
6
|
+
/**
|
|
7
|
+
* @format int64
|
|
8
|
+
* @example 250
|
|
9
|
+
*/
|
|
10
|
+
alternative: number;
|
|
11
|
+
/**
|
|
12
|
+
* @example "2025-10-07"
|
|
13
|
+
*/
|
|
14
|
+
date: string;
|
|
15
|
+
/**
|
|
16
|
+
* @example [{"cveId":"CVE-2024-58251","cveSlug":"CVE-2024-58251","severity":"Critical","severityScore":8.5,"type":"alternative"},{"cveId":"CVE-2024-58251","cveSlug":"CVE-2024-58251","severity":"Critical","severityScore":8.5,"type":"alternative"}]
|
|
17
|
+
*/
|
|
18
|
+
events: CveEvent[];
|
|
19
|
+
/**
|
|
20
|
+
* @format int64
|
|
21
|
+
* @example 0
|
|
22
|
+
*/
|
|
23
|
+
harness: number;
|
|
24
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,7 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @example {"message":"Not Found","status":8645752448108912000}
|
|
3
|
+
*/
|
|
1
4
|
export interface NotFound {
|
|
5
|
+
/**
|
|
6
|
+
* @example "Not Found"
|
|
7
|
+
*/
|
|
2
8
|
message: string;
|
|
3
9
|
/**
|
|
4
10
|
* @format int64
|
|
11
|
+
* @default 404
|
|
12
|
+
* @example 2399715919635183000
|
|
5
13
|
*/
|
|
6
14
|
status?: number;
|
|
7
15
|
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @example {"message":"Not Implemented","status":2441556442902308400}
|
|
3
|
+
*/
|
|
4
|
+
export interface NotImplemented {
|
|
5
|
+
/**
|
|
6
|
+
* @example "Not Implemented"
|
|
7
|
+
*/
|
|
8
|
+
message: string;
|
|
9
|
+
/**
|
|
10
|
+
* @format int64
|
|
11
|
+
* @default 501
|
|
12
|
+
* @example 3102803372723234000
|
|
13
|
+
*/
|
|
14
|
+
status?: number;
|
|
15
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A package present in a tag's SBOM.
|
|
3
|
+
* @example {"license":"Apache-2.0","package":"openssl","packageSlug":"openssl","repository":"https://github.com/openssl/openssl","version":"3.1.4-r0","versionSlug":"3-1-4-r0"}
|
|
4
|
+
*/
|
|
5
|
+
export interface PackageInfo {
|
|
6
|
+
/**
|
|
7
|
+
* @example "Apache-2.0"
|
|
8
|
+
*/
|
|
9
|
+
license: string;
|
|
10
|
+
/**
|
|
11
|
+
* @example "openssl"
|
|
12
|
+
*/
|
|
13
|
+
package: string;
|
|
14
|
+
/**
|
|
15
|
+
* @example "openssl"
|
|
16
|
+
*/
|
|
17
|
+
packageSlug: string;
|
|
18
|
+
/**
|
|
19
|
+
* @example "https://github.com/openssl/openssl"
|
|
20
|
+
*/
|
|
21
|
+
repository: string;
|
|
22
|
+
/**
|
|
23
|
+
* @example "3.1.4-r0"
|
|
24
|
+
*/
|
|
25
|
+
version: string;
|
|
26
|
+
/**
|
|
27
|
+
* @example "3-1-4-r0"
|
|
28
|
+
*/
|
|
29
|
+
versionSlug: string;
|
|
30
|
+
}
|
|
@@ -1,14 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @example {"page":0,"pageSize":50,"total":42}
|
|
3
|
+
*/
|
|
1
4
|
export interface Pagination {
|
|
2
5
|
/**
|
|
6
|
+
* Current page
|
|
3
7
|
* @format int64
|
|
8
|
+
* @example 0
|
|
4
9
|
*/
|
|
5
|
-
page
|
|
10
|
+
page: number;
|
|
6
11
|
/**
|
|
12
|
+
* Items per page
|
|
7
13
|
* @format int64
|
|
14
|
+
* @example 50
|
|
8
15
|
*/
|
|
9
|
-
pageSize
|
|
16
|
+
pageSize: number;
|
|
10
17
|
/**
|
|
18
|
+
* Total items
|
|
11
19
|
* @format int64
|
|
20
|
+
* @example 42
|
|
12
21
|
*/
|
|
13
|
-
total
|
|
22
|
+
total: number;
|
|
14
23
|
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @example {"compressedSizePercent":94,"newCvesPerMonthPercent":100,"numberOfPackagesPercent":93,"totalCvesPercent":100}
|
|
3
|
+
*/
|
|
4
|
+
export interface ReductionSet {
|
|
5
|
+
/**
|
|
6
|
+
* @format int64
|
|
7
|
+
* @example 94
|
|
8
|
+
*/
|
|
9
|
+
compressedSizePercent: number;
|
|
10
|
+
/**
|
|
11
|
+
* @format int64
|
|
12
|
+
* @example 100
|
|
13
|
+
*/
|
|
14
|
+
newCvesPerMonthPercent: number;
|
|
15
|
+
/**
|
|
16
|
+
* @format int64
|
|
17
|
+
* @example 93
|
|
18
|
+
*/
|
|
19
|
+
numberOfPackagesPercent: number;
|
|
20
|
+
/**
|
|
21
|
+
* @format int64
|
|
22
|
+
* @example 100
|
|
23
|
+
*/
|
|
24
|
+
totalCvesPercent: number;
|
|
25
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @example {"message":"Service Unavailable","status":1413106658186788400}
|
|
3
|
+
*/
|
|
4
|
+
export interface ServiceUnavailable {
|
|
5
|
+
/**
|
|
6
|
+
* @example "Service Unavailable"
|
|
7
|
+
*/
|
|
8
|
+
message: string;
|
|
9
|
+
/**
|
|
10
|
+
* @format int64
|
|
11
|
+
* @default 503
|
|
12
|
+
* @example 7300862351522144000
|
|
13
|
+
*/
|
|
14
|
+
status?: number;
|
|
15
|
+
}
|