@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.
Files changed (73) hide show
  1. package/README.md +4 -0
  2. package/dist/hhi-armory-service/src/services/hooks/useContainerGetComparisonQuery.d.ts +43 -0
  3. package/dist/hhi-armory-service/src/services/hooks/useContainerGetComparisonQuery.js +14 -0
  4. package/dist/hhi-armory-service/src/services/hooks/useContainerGetContainerQuery.d.ts +25 -0
  5. package/dist/hhi-armory-service/src/services/hooks/useContainerGetContainerQuery.js +14 -0
  6. package/dist/hhi-armory-service/src/services/hooks/useContainerGetOverviewQuery.d.ts +25 -0
  7. package/dist/hhi-armory-service/src/services/hooks/useContainerGetOverviewQuery.js +14 -0
  8. package/dist/hhi-armory-service/src/services/hooks/useContainerGetProvenanceQuery.d.ts +25 -0
  9. package/dist/hhi-armory-service/src/services/hooks/useContainerGetProvenanceQuery.js +14 -0
  10. package/dist/hhi-armory-service/src/services/hooks/useContainerListContainersQuery.d.ts +46 -0
  11. package/dist/hhi-armory-service/src/services/hooks/useContainerListContainersQuery.js +14 -0
  12. package/dist/hhi-armory-service/src/services/hooks/useContainerListTagPackagesQuery.d.ts +54 -0
  13. package/dist/hhi-armory-service/src/services/hooks/useContainerListTagPackagesQuery.js +14 -0
  14. package/dist/hhi-armory-service/src/services/hooks/useContainerListTagVulnerabilitiesQuery.d.ts +57 -0
  15. package/dist/hhi-armory-service/src/services/hooks/useContainerListTagVulnerabilitiesQuery.js +14 -0
  16. package/dist/hhi-armory-service/src/services/hooks/useContainerListTagsQuery.d.ts +50 -0
  17. package/dist/hhi-armory-service/src/services/hooks/useContainerListTagsQuery.js +14 -0
  18. package/dist/hhi-armory-service/src/services/index.d.ts +40 -0
  19. package/dist/hhi-armory-service/src/services/index.js +8 -0
  20. package/dist/hhi-armory-service/src/services/schemas/ArchInfo.d.ts +18 -0
  21. package/dist/hhi-armory-service/src/services/schemas/ArchInfo.js +4 -0
  22. package/dist/hhi-armory-service/src/services/schemas/BadRequest.d.ts +8 -0
  23. package/dist/hhi-armory-service/src/services/schemas/ComparisonData.d.ts +26 -0
  24. package/dist/hhi-armory-service/src/services/schemas/ComparisonData.js +1 -0
  25. package/dist/hhi-armory-service/src/services/schemas/ComparisonMetrics.d.ts +10 -0
  26. package/dist/hhi-armory-service/src/services/schemas/ComparisonMetrics.js +1 -0
  27. package/dist/hhi-armory-service/src/services/schemas/ContainerSummary.d.ts +63 -0
  28. package/dist/hhi-armory-service/src/services/schemas/ContainerSummary.js +4 -0
  29. package/dist/hhi-armory-service/src/services/schemas/CveEvent.d.ts +26 -0
  30. package/dist/hhi-armory-service/src/services/schemas/CveEvent.js +4 -0
  31. package/dist/hhi-armory-service/src/services/schemas/DailyCve.d.ts +39 -0
  32. package/dist/hhi-armory-service/src/services/schemas/DailyCve.js +4 -0
  33. package/dist/hhi-armory-service/src/services/schemas/ImageTag.d.ts +24 -0
  34. package/dist/hhi-armory-service/src/services/schemas/ImageTag.js +1 -0
  35. package/dist/hhi-armory-service/src/services/schemas/InternalServerError.d.ts +8 -0
  36. package/dist/hhi-armory-service/src/services/schemas/ListContainersResponseBody.d.ts +12 -0
  37. package/dist/hhi-armory-service/src/services/schemas/ListContainersResponseBody.js +1 -0
  38. package/dist/hhi-armory-service/src/services/schemas/ListTagPackagesResponseBody.d.ts +14 -0
  39. package/dist/hhi-armory-service/src/services/schemas/ListTagPackagesResponseBody.js +1 -0
  40. package/dist/hhi-armory-service/src/services/schemas/ListTagVulnerabilitiesResponseBody.d.ts +14 -0
  41. package/dist/hhi-armory-service/src/services/schemas/ListTagVulnerabilitiesResponseBody.js +1 -0
  42. package/dist/hhi-armory-service/src/services/schemas/ListTagsResponseBody.d.ts +16 -0
  43. package/dist/hhi-armory-service/src/services/schemas/ListTagsResponseBody.js +1 -0
  44. package/dist/hhi-armory-service/src/services/schemas/MarkdownDoc.d.ts +21 -0
  45. package/dist/hhi-armory-service/src/services/schemas/MarkdownDoc.js +4 -0
  46. package/dist/hhi-armory-service/src/services/schemas/MetricSet.d.ts +25 -0
  47. package/dist/hhi-armory-service/src/services/schemas/MetricSet.js +4 -0
  48. package/dist/hhi-armory-service/src/services/schemas/NameSlug.d.ts +13 -0
  49. package/dist/hhi-armory-service/src/services/schemas/NameSlug.js +4 -0
  50. package/dist/hhi-armory-service/src/services/schemas/NetNewCveDay.d.ts +24 -0
  51. package/dist/hhi-armory-service/src/services/schemas/NetNewCveDay.js +1 -0
  52. package/dist/hhi-armory-service/src/services/schemas/NotFound.d.ts +8 -0
  53. package/dist/hhi-armory-service/src/services/schemas/NotImplemented.d.ts +15 -0
  54. package/dist/hhi-armory-service/src/services/schemas/NotImplemented.js +4 -0
  55. package/dist/hhi-armory-service/src/services/schemas/PackageInfo.d.ts +30 -0
  56. package/dist/hhi-armory-service/src/services/schemas/PackageInfo.js +4 -0
  57. package/dist/hhi-armory-service/src/services/schemas/Pagination.d.ts +12 -3
  58. package/dist/hhi-armory-service/src/services/schemas/ReductionSet.d.ts +25 -0
  59. package/dist/hhi-armory-service/src/services/schemas/ReductionSet.js +4 -0
  60. package/dist/hhi-armory-service/src/services/schemas/ServiceUnavailable.d.ts +15 -0
  61. package/dist/hhi-armory-service/src/services/schemas/ServiceUnavailable.js +4 -0
  62. package/dist/hhi-armory-service/src/services/schemas/SeverityTimeline.d.ts +14 -0
  63. package/dist/hhi-armory-service/src/services/schemas/SeverityTimeline.js +1 -0
  64. package/dist/hhi-armory-service/src/services/schemas/TagMetadata.d.ts +32 -0
  65. package/dist/hhi-armory-service/src/services/schemas/TagMetadata.js +1 -0
  66. package/dist/hhi-armory-service/src/services/schemas/TagSize.d.ts +16 -0
  67. package/dist/hhi-armory-service/src/services/schemas/TagSize.js +4 -0
  68. package/dist/hhi-armory-service/src/services/schemas/Unauthorized.d.ts +8 -0
  69. package/dist/hhi-armory-service/src/services/schemas/Vulnerabilities.d.ts +31 -0
  70. package/dist/hhi-armory-service/src/services/schemas/Vulnerabilities.js +4 -0
  71. package/dist/hhi-armory-service/src/services/schemas/VulnerabilityRow.d.ts +48 -0
  72. package/dist/hhi-armory-service/src/services/schemas/VulnerabilityRow.js +4 -0
  73. package/package.json +1 -1
package/README.md CHANGED
@@ -16,6 +16,10 @@ Contract: [Hardening agent API contracts](https://harness.atlassian.net/wiki/spa
16
16
  | Executions list | `GET …/migrations` | `useMigrationListMigrationsQuery` |
17
17
  | View PR drawer | `GET …/migrations/{id}` | `useMigrationGetMigrationQuery` |
18
18
 
19
+ Container catalog hooks match `@harnessio/react-hsa-service-client` (`GET /api/v1/containers…`):
20
+
21
+ `useContainerListContainersQuery`, `useContainerGetContainerQuery`, `useContainerGetOverviewQuery`, `useContainerGetProvenanceQuery`, `useContainerListTagsQuery`, `useContainerGetComparisonQuery`, `useContainerListTagPackagesQuery`, `useContainerListTagVulnerabilitiesQuery`.
22
+
19
23
  `GET …/migrations/{id}/execution` is not generated (deferred in Confluence v4).
20
24
 
21
25
  When **hhi-armory** publishes an updated spec, replace `openapi.yaml`, update `allowedOperationIds` in `oats.config.ts`, and run `yarn build`.
@@ -0,0 +1,43 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ComparisonData } from '../schemas/ComparisonData';
3
+ import type { BadRequest } from '../schemas/BadRequest';
4
+ import type { Unauthorized } from '../schemas/Unauthorized';
5
+ import type { NotFound } from '../schemas/NotFound';
6
+ import type { InternalServerError } from '../schemas/InternalServerError';
7
+ import type { NotImplemented } from '../schemas/NotImplemented';
8
+ import type { ServiceUnavailable } from '../schemas/ServiceUnavailable';
9
+ import type { ResponseWithPagination } from '../helpers';
10
+ import { FetcherOptions } from '../../../../fetcher/index.js';
11
+ export interface ContainerGetComparisonQueryPathParams {
12
+ /**
13
+ * @example "Unde quo."
14
+ */
15
+ slug: string;
16
+ /**
17
+ * @example "Sit architecto."
18
+ */
19
+ tagSlug: string;
20
+ }
21
+ export interface ContainerGetComparisonQueryQueryParams {
22
+ /**
23
+ * Alternative image slug.
24
+ * @example "Autem minima consequuntur qui."
25
+ */
26
+ alternative?: string;
27
+ /**
28
+ * @default "last-month"
29
+ * @example "last-month"
30
+ */
31
+ period?: 'last-180-days' | 'last-30-days' | 'last-90-days' | 'last-month';
32
+ criticalHighOnly?: boolean;
33
+ }
34
+ export type ContainerGetComparisonOkResponse = ResponseWithPagination<ComparisonData>;
35
+ export type ContainerGetComparisonErrorResponse = BadRequest | Unauthorized | NotFound | InternalServerError | NotImplemented | ServiceUnavailable;
36
+ export interface ContainerGetComparisonProps extends ContainerGetComparisonQueryPathParams, Omit<FetcherOptions<ContainerGetComparisonQueryQueryParams, unknown>, 'url'> {
37
+ queryParams: ContainerGetComparisonQueryQueryParams;
38
+ }
39
+ export declare function containerGetComparison(props: ContainerGetComparisonProps): Promise<ContainerGetComparisonOkResponse>;
40
+ /**
41
+ * Compare a Harness tag with an alternative image.
42
+ */
43
+ export declare function useContainerGetComparisonQuery(props: ContainerGetComparisonProps, options?: Omit<UseQueryOptions<ContainerGetComparisonOkResponse, ContainerGetComparisonErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ContainerGetComparisonOkResponse, ContainerGetComparisonErrorResponse>;
@@ -0,0 +1,14 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ import { useQuery } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../fetcher/index.js';
6
+ export function containerGetComparison(props) {
7
+ return fetcher(Object.assign({ url: `/api/v1/containers/${props.slug}/tags/${props.tagSlug}/comparison`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Compare a Harness tag with an alternative image.
11
+ */
12
+ export function useContainerGetComparisonQuery(props, options) {
13
+ return useQuery(['Container#GetComparison', props.slug, props.tagSlug, props.queryParams], ({ signal }) => containerGetComparison(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,25 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ContainerSummary } from '../schemas/ContainerSummary';
3
+ import type { BadRequest } from '../schemas/BadRequest';
4
+ import type { Unauthorized } from '../schemas/Unauthorized';
5
+ import type { NotFound } from '../schemas/NotFound';
6
+ import type { InternalServerError } from '../schemas/InternalServerError';
7
+ import type { NotImplemented } from '../schemas/NotImplemented';
8
+ import type { ServiceUnavailable } from '../schemas/ServiceUnavailable';
9
+ import type { ResponseWithPagination } from '../helpers';
10
+ import { FetcherOptions } from '../../../../fetcher/index.js';
11
+ export interface ContainerGetContainerQueryPathParams {
12
+ /**
13
+ * @example "adoptium-jdk"
14
+ */
15
+ slug: string;
16
+ }
17
+ export type ContainerGetContainerOkResponse = ResponseWithPagination<ContainerSummary>;
18
+ export type ContainerGetContainerErrorResponse = BadRequest | Unauthorized | NotFound | InternalServerError | NotImplemented | ServiceUnavailable;
19
+ export interface ContainerGetContainerProps extends ContainerGetContainerQueryPathParams, Omit<FetcherOptions<unknown, unknown>, 'url'> {
20
+ }
21
+ export declare function containerGetContainer(props: ContainerGetContainerProps): Promise<ContainerGetContainerOkResponse>;
22
+ /**
23
+ * Get one container's detail.
24
+ */
25
+ export declare function useContainerGetContainerQuery(props: ContainerGetContainerProps, options?: Omit<UseQueryOptions<ContainerGetContainerOkResponse, ContainerGetContainerErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ContainerGetContainerOkResponse, ContainerGetContainerErrorResponse>;
@@ -0,0 +1,14 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ import { useQuery } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../fetcher/index.js';
6
+ export function containerGetContainer(props) {
7
+ return fetcher(Object.assign({ url: `/api/v1/containers/${props.slug}`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Get one container's detail.
11
+ */
12
+ export function useContainerGetContainerQuery(props, options) {
13
+ return useQuery(['Container#GetContainer', props.slug], ({ signal }) => containerGetContainer(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,25 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { MarkdownDoc } from '../schemas/MarkdownDoc';
3
+ import type { BadRequest } from '../schemas/BadRequest';
4
+ import type { Unauthorized } from '../schemas/Unauthorized';
5
+ import type { NotFound } from '../schemas/NotFound';
6
+ import type { InternalServerError } from '../schemas/InternalServerError';
7
+ import type { NotImplemented } from '../schemas/NotImplemented';
8
+ import type { ServiceUnavailable } from '../schemas/ServiceUnavailable';
9
+ import type { ResponseWithPagination } from '../helpers';
10
+ import { FetcherOptions } from '../../../../fetcher/index.js';
11
+ export interface ContainerGetOverviewQueryPathParams {
12
+ /**
13
+ * @example "python"
14
+ */
15
+ slug: string;
16
+ }
17
+ export type ContainerGetOverviewOkResponse = ResponseWithPagination<MarkdownDoc>;
18
+ export type ContainerGetOverviewErrorResponse = BadRequest | Unauthorized | NotFound | InternalServerError | NotImplemented | ServiceUnavailable;
19
+ export interface ContainerGetOverviewProps extends ContainerGetOverviewQueryPathParams, Omit<FetcherOptions<unknown, unknown>, 'url'> {
20
+ }
21
+ export declare function containerGetOverview(props: ContainerGetOverviewProps): Promise<ContainerGetOverviewOkResponse>;
22
+ /**
23
+ * Get the container's Overview document (markdown).
24
+ */
25
+ export declare function useContainerGetOverviewQuery(props: ContainerGetOverviewProps, options?: Omit<UseQueryOptions<ContainerGetOverviewOkResponse, ContainerGetOverviewErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ContainerGetOverviewOkResponse, ContainerGetOverviewErrorResponse>;
@@ -0,0 +1,14 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ import { useQuery } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../fetcher/index.js';
6
+ export function containerGetOverview(props) {
7
+ return fetcher(Object.assign({ url: `/api/v1/containers/${props.slug}/overview`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Get the container's Overview document (markdown).
11
+ */
12
+ export function useContainerGetOverviewQuery(props, options) {
13
+ return useQuery(['Container#GetOverview', props.slug], ({ signal }) => containerGetOverview(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,25 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { MarkdownDoc } from '../schemas/MarkdownDoc';
3
+ import type { BadRequest } from '../schemas/BadRequest';
4
+ import type { Unauthorized } from '../schemas/Unauthorized';
5
+ import type { NotFound } from '../schemas/NotFound';
6
+ import type { InternalServerError } from '../schemas/InternalServerError';
7
+ import type { NotImplemented } from '../schemas/NotImplemented';
8
+ import type { ServiceUnavailable } from '../schemas/ServiceUnavailable';
9
+ import type { ResponseWithPagination } from '../helpers';
10
+ import { FetcherOptions } from '../../../../fetcher/index.js';
11
+ export interface ContainerGetProvenanceQueryPathParams {
12
+ /**
13
+ * @example "python"
14
+ */
15
+ slug: string;
16
+ }
17
+ export type ContainerGetProvenanceOkResponse = ResponseWithPagination<MarkdownDoc>;
18
+ export type ContainerGetProvenanceErrorResponse = BadRequest | Unauthorized | NotFound | InternalServerError | NotImplemented | ServiceUnavailable;
19
+ export interface ContainerGetProvenanceProps extends ContainerGetProvenanceQueryPathParams, Omit<FetcherOptions<unknown, unknown>, 'url'> {
20
+ }
21
+ export declare function containerGetProvenance(props: ContainerGetProvenanceProps): Promise<ContainerGetProvenanceOkResponse>;
22
+ /**
23
+ * Get the container's Provenance document (markdown).
24
+ */
25
+ export declare function useContainerGetProvenanceQuery(props: ContainerGetProvenanceProps, options?: Omit<UseQueryOptions<ContainerGetProvenanceOkResponse, ContainerGetProvenanceErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ContainerGetProvenanceOkResponse, ContainerGetProvenanceErrorResponse>;
@@ -0,0 +1,14 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ import { useQuery } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../fetcher/index.js';
6
+ export function containerGetProvenance(props) {
7
+ return fetcher(Object.assign({ url: `/api/v1/containers/${props.slug}/provenance`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Get the container's Provenance document (markdown).
11
+ */
12
+ export function useContainerGetProvenanceQuery(props, options) {
13
+ return useQuery(['Container#GetProvenance', props.slug], ({ signal }) => containerGetProvenance(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,46 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ListContainersResponseBody } from '../schemas/ListContainersResponseBody';
3
+ import type { BadRequest } from '../schemas/BadRequest';
4
+ import type { Unauthorized } from '../schemas/Unauthorized';
5
+ import type { NotFound } from '../schemas/NotFound';
6
+ import type { InternalServerError } from '../schemas/InternalServerError';
7
+ import type { NotImplemented } from '../schemas/NotImplemented';
8
+ import type { ServiceUnavailable } from '../schemas/ServiceUnavailable';
9
+ import type { ResponseWithPagination } from '../helpers';
10
+ import { FetcherOptions } from '../../../../fetcher/index.js';
11
+ export interface ContainerListContainersQueryQueryParams {
12
+ /**
13
+ * Free-text search over name/description/usage.
14
+ * @example "Sint et numquam minima dolorem."
15
+ */
16
+ search?: string;
17
+ /**
18
+ * Comma-separated tag filter (e.g. Java,Base).
19
+ * @example "Delectus beatae a."
20
+ */
21
+ tags?: string;
22
+ /**
23
+ * Page number (0-indexed).
24
+ * @format int64
25
+ * @default 0
26
+ * @example 1370767254768258000
27
+ */
28
+ page?: number;
29
+ /**
30
+ * Items per page.
31
+ * @format int64
32
+ * @default 15
33
+ * @example 35
34
+ */
35
+ pageSize?: number;
36
+ }
37
+ export type ContainerListContainersOkResponse = ResponseWithPagination<ListContainersResponseBody>;
38
+ export type ContainerListContainersErrorResponse = BadRequest | Unauthorized | NotFound | InternalServerError | NotImplemented | ServiceUnavailable;
39
+ export interface ContainerListContainersProps extends Omit<FetcherOptions<ContainerListContainersQueryQueryParams, unknown>, 'url'> {
40
+ queryParams: ContainerListContainersQueryQueryParams;
41
+ }
42
+ export declare function containerListContainers(props: ContainerListContainersProps): Promise<ContainerListContainersOkResponse>;
43
+ /**
44
+ * List containers for the catalog grid.
45
+ */
46
+ export declare function useContainerListContainersQuery(props: ContainerListContainersProps, options?: Omit<UseQueryOptions<ContainerListContainersOkResponse, ContainerListContainersErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ContainerListContainersOkResponse, ContainerListContainersErrorResponse>;
@@ -0,0 +1,14 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ import { useQuery } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../fetcher/index.js';
6
+ export function containerListContainers(props) {
7
+ return fetcher(Object.assign({ url: `/api/v1/containers`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * List containers for the catalog grid.
11
+ */
12
+ export function useContainerListContainersQuery(props, options) {
13
+ return useQuery(['Container#ListContainers', props.queryParams], ({ signal }) => containerListContainers(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,54 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ListTagPackagesResponseBody } from '../schemas/ListTagPackagesResponseBody';
3
+ import type { BadRequest } from '../schemas/BadRequest';
4
+ import type { Unauthorized } from '../schemas/Unauthorized';
5
+ import type { NotFound } from '../schemas/NotFound';
6
+ import type { InternalServerError } from '../schemas/InternalServerError';
7
+ import type { NotImplemented } from '../schemas/NotImplemented';
8
+ import type { ServiceUnavailable } from '../schemas/ServiceUnavailable';
9
+ import type { ResponseWithPagination } from '../helpers';
10
+ import { FetcherOptions } from '../../../../fetcher/index.js';
11
+ export interface ContainerListTagPackagesQueryPathParams {
12
+ /**
13
+ * @example "Error aut ea debitis eum in."
14
+ */
15
+ slug: string;
16
+ /**
17
+ * @example "Minus sint in qui aut."
18
+ */
19
+ tagSlug: string;
20
+ }
21
+ export interface ContainerListTagPackagesQueryQueryParams {
22
+ /**
23
+ * Architecture filter (e.g. x86-64).
24
+ * @example "Nisi est reprehenderit hic consequatur."
25
+ */
26
+ arch?: string;
27
+ /**
28
+ * @example "Aut sed."
29
+ */
30
+ search?: string;
31
+ /**
32
+ * @format int64
33
+ * @default 0
34
+ * @example 3935745170125200400
35
+ */
36
+ page?: number;
37
+ /**
38
+ * Items per page.
39
+ * @format int64
40
+ * @default 15
41
+ * @example 14
42
+ */
43
+ pageSize?: number;
44
+ }
45
+ export type ContainerListTagPackagesOkResponse = ResponseWithPagination<ListTagPackagesResponseBody>;
46
+ export type ContainerListTagPackagesErrorResponse = BadRequest | Unauthorized | NotFound | InternalServerError | NotImplemented | ServiceUnavailable;
47
+ export interface ContainerListTagPackagesProps extends ContainerListTagPackagesQueryPathParams, Omit<FetcherOptions<ContainerListTagPackagesQueryQueryParams, unknown>, 'url'> {
48
+ queryParams: ContainerListTagPackagesQueryQueryParams;
49
+ }
50
+ export declare function containerListTagPackages(props: ContainerListTagPackagesProps): Promise<ContainerListTagPackagesOkResponse>;
51
+ /**
52
+ * List packages (SBOM) for a tag.
53
+ */
54
+ export declare function useContainerListTagPackagesQuery(props: ContainerListTagPackagesProps, options?: Omit<UseQueryOptions<ContainerListTagPackagesOkResponse, ContainerListTagPackagesErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ContainerListTagPackagesOkResponse, ContainerListTagPackagesErrorResponse>;
@@ -0,0 +1,14 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ import { useQuery } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../fetcher/index.js';
6
+ export function containerListTagPackages(props) {
7
+ return fetcher(Object.assign({ url: `/api/v1/containers/${props.slug}/tags/${props.tagSlug}/packages`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * List packages (SBOM) for a tag.
11
+ */
12
+ export function useContainerListTagPackagesQuery(props, options) {
13
+ return useQuery(['Container#ListTagPackages', props.slug, props.tagSlug, props.queryParams], ({ signal }) => containerListTagPackages(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,57 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ListTagVulnerabilitiesResponseBody } from '../schemas/ListTagVulnerabilitiesResponseBody';
3
+ import type { BadRequest } from '../schemas/BadRequest';
4
+ import type { Unauthorized } from '../schemas/Unauthorized';
5
+ import type { NotFound } from '../schemas/NotFound';
6
+ import type { InternalServerError } from '../schemas/InternalServerError';
7
+ import type { NotImplemented } from '../schemas/NotImplemented';
8
+ import type { ServiceUnavailable } from '../schemas/ServiceUnavailable';
9
+ import type { ResponseWithPagination } from '../helpers';
10
+ import { FetcherOptions } from '../../../../fetcher/index.js';
11
+ export interface ContainerListTagVulnerabilitiesQueryPathParams {
12
+ /**
13
+ * @example "Et tempore."
14
+ */
15
+ slug: string;
16
+ /**
17
+ * @example "Voluptas iure et reiciendis."
18
+ */
19
+ tagSlug: string;
20
+ }
21
+ export interface ContainerListTagVulnerabilitiesQueryQueryParams {
22
+ /**
23
+ * @example "Veritatis omnis reiciendis iusto."
24
+ */
25
+ arch?: string;
26
+ /**
27
+ * @example "Unspecified"
28
+ */
29
+ severity?: 'All' | 'Critical' | 'High' | 'Low' | 'Medium' | 'Unspecified';
30
+ /**
31
+ * @example "Vel deleniti enim commodi."
32
+ */
33
+ search?: string;
34
+ /**
35
+ * @format int64
36
+ * @default 0
37
+ * @example 7330974117726427000
38
+ */
39
+ page?: number;
40
+ /**
41
+ * Items per page.
42
+ * @format int64
43
+ * @default 15
44
+ * @example 66
45
+ */
46
+ pageSize?: number;
47
+ }
48
+ export type ContainerListTagVulnerabilitiesOkResponse = ResponseWithPagination<ListTagVulnerabilitiesResponseBody>;
49
+ export type ContainerListTagVulnerabilitiesErrorResponse = BadRequest | Unauthorized | NotFound | InternalServerError | NotImplemented | ServiceUnavailable;
50
+ export interface ContainerListTagVulnerabilitiesProps extends ContainerListTagVulnerabilitiesQueryPathParams, Omit<FetcherOptions<ContainerListTagVulnerabilitiesQueryQueryParams, unknown>, 'url'> {
51
+ queryParams: ContainerListTagVulnerabilitiesQueryQueryParams;
52
+ }
53
+ export declare function containerListTagVulnerabilities(props: ContainerListTagVulnerabilitiesProps): Promise<ContainerListTagVulnerabilitiesOkResponse>;
54
+ /**
55
+ * List vulnerabilities for a tag.
56
+ */
57
+ export declare function useContainerListTagVulnerabilitiesQuery(props: ContainerListTagVulnerabilitiesProps, options?: Omit<UseQueryOptions<ContainerListTagVulnerabilitiesOkResponse, ContainerListTagVulnerabilitiesErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ContainerListTagVulnerabilitiesOkResponse, ContainerListTagVulnerabilitiesErrorResponse>;
@@ -0,0 +1,14 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ import { useQuery } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../fetcher/index.js';
6
+ export function containerListTagVulnerabilities(props) {
7
+ return fetcher(Object.assign({ url: `/api/v1/containers/${props.slug}/tags/${props.tagSlug}/vulnerabilities`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * List vulnerabilities for a tag.
11
+ */
12
+ export function useContainerListTagVulnerabilitiesQuery(props, options) {
13
+ return useQuery(['Container#ListTagVulnerabilities', props.slug, props.tagSlug, props.queryParams], ({ signal }) => containerListTagVulnerabilities(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,50 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ListTagsResponseBody } from '../schemas/ListTagsResponseBody';
3
+ import type { BadRequest } from '../schemas/BadRequest';
4
+ import type { Unauthorized } from '../schemas/Unauthorized';
5
+ import type { NotFound } from '../schemas/NotFound';
6
+ import type { InternalServerError } from '../schemas/InternalServerError';
7
+ import type { NotImplemented } from '../schemas/NotImplemented';
8
+ import type { ServiceUnavailable } from '../schemas/ServiceUnavailable';
9
+ import type { ResponseWithPagination } from '../helpers';
10
+ import { FetcherOptions } from '../../../../fetcher/index.js';
11
+ export interface ContainerListTagsQueryPathParams {
12
+ /**
13
+ * @example "adoptium-jdk"
14
+ */
15
+ slug: string;
16
+ }
17
+ export interface ContainerListTagsQueryQueryParams {
18
+ /**
19
+ * @default "all"
20
+ * @example "dev"
21
+ */
22
+ variant?: 'all' | 'dev' | 'production';
23
+ /**
24
+ * @example "Non provident voluptate."
25
+ */
26
+ search?: string;
27
+ /**
28
+ * @format int64
29
+ * @default 0
30
+ * @example 8871467111198086000
31
+ */
32
+ page?: number;
33
+ /**
34
+ * Items per page.
35
+ * @format int64
36
+ * @default 15
37
+ * @example 45
38
+ */
39
+ pageSize?: number;
40
+ }
41
+ export type ContainerListTagsOkResponse = ResponseWithPagination<ListTagsResponseBody>;
42
+ export type ContainerListTagsErrorResponse = BadRequest | Unauthorized | NotFound | InternalServerError | NotImplemented | ServiceUnavailable;
43
+ export interface ContainerListTagsProps extends ContainerListTagsQueryPathParams, Omit<FetcherOptions<ContainerListTagsQueryQueryParams, unknown>, 'url'> {
44
+ queryParams: ContainerListTagsQueryQueryParams;
45
+ }
46
+ export declare function containerListTags(props: ContainerListTagsProps): Promise<ContainerListTagsOkResponse>;
47
+ /**
48
+ * List a container's tags (versions).
49
+ */
50
+ export declare function useContainerListTagsQuery(props: ContainerListTagsProps, options?: Omit<UseQueryOptions<ContainerListTagsOkResponse, ContainerListTagsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ContainerListTagsOkResponse, ContainerListTagsErrorResponse>;
@@ -0,0 +1,14 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ import { useQuery } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../fetcher/index.js';
6
+ export function containerListTags(props) {
7
+ return fetcher(Object.assign({ url: `/api/v1/containers/${props.slug}/tags`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * List a container's tags (versions).
11
+ */
12
+ export function useContainerListTagsQuery(props, options) {
13
+ return useQuery(['Container#ListTags', props.slug, props.queryParams], ({ signal }) => containerListTags(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -1,4 +1,20 @@
1
1
  export type { GetPathParamsType, ResponseWithPagination } from './helpers';
2
+ export type { ContainerGetComparisonErrorResponse, ContainerGetComparisonOkResponse, ContainerGetComparisonProps, ContainerGetComparisonQueryPathParams, ContainerGetComparisonQueryQueryParams, } from './hooks/useContainerGetComparisonQuery';
3
+ export { containerGetComparison, useContainerGetComparisonQuery, } from './hooks/useContainerGetComparisonQuery';
4
+ export type { ContainerGetContainerErrorResponse, ContainerGetContainerOkResponse, ContainerGetContainerProps, ContainerGetContainerQueryPathParams, } from './hooks/useContainerGetContainerQuery';
5
+ export { containerGetContainer, useContainerGetContainerQuery, } from './hooks/useContainerGetContainerQuery';
6
+ export type { ContainerGetOverviewErrorResponse, ContainerGetOverviewOkResponse, ContainerGetOverviewProps, ContainerGetOverviewQueryPathParams, } from './hooks/useContainerGetOverviewQuery';
7
+ export { containerGetOverview, useContainerGetOverviewQuery, } from './hooks/useContainerGetOverviewQuery';
8
+ export type { ContainerGetProvenanceErrorResponse, ContainerGetProvenanceOkResponse, ContainerGetProvenanceProps, ContainerGetProvenanceQueryPathParams, } from './hooks/useContainerGetProvenanceQuery';
9
+ export { containerGetProvenance, useContainerGetProvenanceQuery, } from './hooks/useContainerGetProvenanceQuery';
10
+ export type { ContainerListContainersErrorResponse, ContainerListContainersOkResponse, ContainerListContainersProps, ContainerListContainersQueryQueryParams, } from './hooks/useContainerListContainersQuery';
11
+ export { containerListContainers, useContainerListContainersQuery, } from './hooks/useContainerListContainersQuery';
12
+ export type { ContainerListTagPackagesErrorResponse, ContainerListTagPackagesOkResponse, ContainerListTagPackagesProps, ContainerListTagPackagesQueryPathParams, ContainerListTagPackagesQueryQueryParams, } from './hooks/useContainerListTagPackagesQuery';
13
+ export { containerListTagPackages, useContainerListTagPackagesQuery, } from './hooks/useContainerListTagPackagesQuery';
14
+ export type { ContainerListTagVulnerabilitiesErrorResponse, ContainerListTagVulnerabilitiesOkResponse, ContainerListTagVulnerabilitiesProps, ContainerListTagVulnerabilitiesQueryPathParams, ContainerListTagVulnerabilitiesQueryQueryParams, } from './hooks/useContainerListTagVulnerabilitiesQuery';
15
+ export { containerListTagVulnerabilities, useContainerListTagVulnerabilitiesQuery, } from './hooks/useContainerListTagVulnerabilitiesQuery';
16
+ export type { ContainerListTagsErrorResponse, ContainerListTagsOkResponse, ContainerListTagsProps, ContainerListTagsQueryPathParams, ContainerListTagsQueryQueryParams, } from './hooks/useContainerListTagsQuery';
17
+ export { containerListTags, useContainerListTagsQuery } from './hooks/useContainerListTagsQuery';
2
18
  export type { HardeningGetArtifactsSummaryErrorResponse, HardeningGetArtifactsSummaryOkResponse, HardeningGetArtifactsSummaryProps, HardeningGetArtifactsSummaryQueryPathParams, } from './hooks/useHardeningGetArtifactsSummaryQuery';
3
19
  export { hardeningGetArtifactsSummary, useHardeningGetArtifactsSummaryQuery, } from './hooks/useHardeningGetArtifactsSummaryQuery';
4
20
  export type { HardeningListArtifactsErrorResponse, HardeningListArtifactsOkResponse, HardeningListArtifactsProps, HardeningListArtifactsQueryPathParams, HardeningListArtifactsQueryQueryParams, } from './hooks/useHardeningListArtifactsQuery';
@@ -14,21 +30,34 @@ export type { ConflictResponse } from './responses/ConflictResponse';
14
30
  export type { InternalServerErrorResponse } from './responses/InternalServerErrorResponse';
15
31
  export type { NotFoundResponse } from './responses/NotFoundResponse';
16
32
  export type { UnauthorizedResponse } from './responses/UnauthorizedResponse';
33
+ export type { ArchInfo } from './schemas/ArchInfo';
17
34
  export type { BadRequest } from './schemas/BadRequest';
18
35
  export type { ChangeSummary } from './schemas/ChangeSummary';
19
36
  export type { CheckStatus } from './schemas/CheckStatus';
37
+ export type { ComparisonData } from './schemas/ComparisonData';
38
+ export type { ComparisonMetrics } from './schemas/ComparisonMetrics';
20
39
  export type { Conflict } from './schemas/Conflict';
40
+ export type { ContainerSummary } from './schemas/ContainerSummary';
21
41
  export type { CreateMigrationRequest } from './schemas/CreateMigrationRequest';
22
42
  export type { CveDiff } from './schemas/CveDiff';
23
43
  export type { CveDiffRow } from './schemas/CveDiffRow';
44
+ export type { CveEvent } from './schemas/CveEvent';
24
45
  export type { CveSeverityCounts } from './schemas/CveSeverityCounts';
46
+ export type { DailyCve } from './schemas/DailyCve';
25
47
  export type { DownloadStats } from './schemas/DownloadStats';
26
48
  export type { HardeningArtifactItem } from './schemas/HardeningArtifactItem';
27
49
  export type { HardeningArtifactsListResponse } from './schemas/HardeningArtifactsListResponse';
28
50
  export type { HardeningArtifactsSummaryResponse } from './schemas/HardeningArtifactsSummaryResponse';
29
51
  export type { ImageRefPair } from './schemas/ImageRefPair';
52
+ export type { ImageTag } from './schemas/ImageTag';
30
53
  export type { ImageUsedEntry } from './schemas/ImageUsedEntry';
31
54
  export type { InternalServerError } from './schemas/InternalServerError';
55
+ export type { ListContainersResponseBody } from './schemas/ListContainersResponseBody';
56
+ export type { ListTagPackagesResponseBody } from './schemas/ListTagPackagesResponseBody';
57
+ export type { ListTagVulnerabilitiesResponseBody } from './schemas/ListTagVulnerabilitiesResponseBody';
58
+ export type { ListTagsResponseBody } from './schemas/ListTagsResponseBody';
59
+ export type { MarkdownDoc } from './schemas/MarkdownDoc';
60
+ export type { MetricSet } from './schemas/MetricSet';
32
61
  export type { MigrationChecks } from './schemas/MigrationChecks';
33
62
  export type { MigrationDetail } from './schemas/MigrationDetail';
34
63
  export type { MigrationFailure } from './schemas/MigrationFailure';
@@ -36,14 +65,25 @@ export type { MigrationListResponse } from './schemas/MigrationListResponse';
36
65
  export type { MigrationScmConfig } from './schemas/MigrationScmConfig';
37
66
  export type { MigrationSnippet } from './schemas/MigrationSnippet';
38
67
  export type { MigrationSummary } from './schemas/MigrationSummary';
68
+ export type { NameSlug } from './schemas/NameSlug';
69
+ export type { NetNewCveDay } from './schemas/NetNewCveDay';
39
70
  export type { NotFound } from './schemas/NotFound';
71
+ export type { NotImplemented } from './schemas/NotImplemented';
72
+ export type { PackageInfo } from './schemas/PackageInfo';
40
73
  export type { Pagination } from './schemas/Pagination';
41
74
  export type { PinnedImage } from './schemas/PinnedImage';
42
75
  export type { PrReference } from './schemas/PrReference';
76
+ export type { ReductionSet } from './schemas/ReductionSet';
43
77
  export type { RuntimeEnvironment } from './schemas/RuntimeEnvironment';
44
78
  export type { RuntimeTest } from './schemas/RuntimeTest';
45
79
  export type { RuntimeTestCheck } from './schemas/RuntimeTestCheck';
46
80
  export type { RuntimeTestResult } from './schemas/RuntimeTestResult';
47
81
  export type { RuntimeTestsBlock } from './schemas/RuntimeTestsBlock';
82
+ export type { ServiceUnavailable } from './schemas/ServiceUnavailable';
83
+ export type { SeverityTimeline } from './schemas/SeverityTimeline';
48
84
  export type { SupplyChainInfo } from './schemas/SupplyChainInfo';
85
+ export type { TagMetadata } from './schemas/TagMetadata';
86
+ export type { TagSize } from './schemas/TagSize';
49
87
  export type { Unauthorized } from './schemas/Unauthorized';
88
+ export type { Vulnerabilities } from './schemas/Vulnerabilities';
89
+ export type { VulnerabilityRow } from './schemas/VulnerabilityRow';
@@ -1,3 +1,11 @@
1
+ export { containerGetComparison, useContainerGetComparisonQuery, } from './hooks/useContainerGetComparisonQuery';
2
+ export { containerGetContainer, useContainerGetContainerQuery, } from './hooks/useContainerGetContainerQuery';
3
+ export { containerGetOverview, useContainerGetOverviewQuery, } from './hooks/useContainerGetOverviewQuery';
4
+ export { containerGetProvenance, useContainerGetProvenanceQuery, } from './hooks/useContainerGetProvenanceQuery';
5
+ export { containerListContainers, useContainerListContainersQuery, } from './hooks/useContainerListContainersQuery';
6
+ export { containerListTagPackages, useContainerListTagPackagesQuery, } from './hooks/useContainerListTagPackagesQuery';
7
+ export { containerListTagVulnerabilities, useContainerListTagVulnerabilitiesQuery, } from './hooks/useContainerListTagVulnerabilitiesQuery';
8
+ export { containerListTags, useContainerListTagsQuery } from './hooks/useContainerListTagsQuery';
1
9
  export { hardeningGetArtifactsSummary, useHardeningGetArtifactsSummaryQuery, } from './hooks/useHardeningGetArtifactsSummaryQuery';
2
10
  export { hardeningListArtifacts, useHardeningListArtifactsQuery, } from './hooks/useHardeningListArtifactsQuery';
3
11
  export { migrationCreateMigration, useMigrationCreateMigrationMutation, } from './hooks/useMigrationCreateMigrationMutation';
@@ -0,0 +1,18 @@
1
+ /**
2
+ * @example {"archSlug":"x86-64","name":"x86_64","sizeMb":22.39}
3
+ */
4
+ export interface ArchInfo {
5
+ /**
6
+ * @example "x86-64"
7
+ */
8
+ archSlug: string;
9
+ /**
10
+ * @example "x86_64"
11
+ */
12
+ name: string;
13
+ /**
14
+ * @format double
15
+ * @example 22.39
16
+ */
17
+ sizeMb: number;
18
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -1,7 +1,15 @@
1
+ /**
2
+ * @example {"message":"Bad Request","status":2430825729691327500}
3
+ */
1
4
  export interface BadRequest {
5
+ /**
6
+ * @example "Bad Request"
7
+ */
2
8
  message: string;
3
9
  /**
4
10
  * @format int64
11
+ * @default 400
12
+ * @example 6213758147937505000
5
13
  */
6
14
  status?: number;
7
15
  }