@harnessio/react-hhi-armory-service-client 0.0.0-stage → 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 (160) hide show
  1. package/README.md +61 -2
  2. package/dist/fetcher/index.d.ts +17 -0
  3. package/dist/fetcher/index.js +65 -0
  4. package/dist/hhi-armory-service/src/index.d.ts +6 -0
  5. package/dist/hhi-armory-service/src/index.js +10 -0
  6. package/dist/hhi-armory-service/src/services/helpers.d.ts +14 -0
  7. package/dist/hhi-armory-service/src/services/helpers.js +1 -0
  8. package/dist/hhi-armory-service/src/services/hooks/useContainerGetComparisonQuery.d.ts +43 -0
  9. package/dist/hhi-armory-service/src/services/hooks/useContainerGetComparisonQuery.js +14 -0
  10. package/dist/hhi-armory-service/src/services/hooks/useContainerGetContainerQuery.d.ts +25 -0
  11. package/dist/hhi-armory-service/src/services/hooks/useContainerGetContainerQuery.js +14 -0
  12. package/dist/hhi-armory-service/src/services/hooks/useContainerGetOverviewQuery.d.ts +25 -0
  13. package/dist/hhi-armory-service/src/services/hooks/useContainerGetOverviewQuery.js +14 -0
  14. package/dist/hhi-armory-service/src/services/hooks/useContainerGetProvenanceQuery.d.ts +25 -0
  15. package/dist/hhi-armory-service/src/services/hooks/useContainerGetProvenanceQuery.js +14 -0
  16. package/dist/hhi-armory-service/src/services/hooks/useContainerListContainersQuery.d.ts +46 -0
  17. package/dist/hhi-armory-service/src/services/hooks/useContainerListContainersQuery.js +14 -0
  18. package/dist/hhi-armory-service/src/services/hooks/useContainerListTagPackagesQuery.d.ts +54 -0
  19. package/dist/hhi-armory-service/src/services/hooks/useContainerListTagPackagesQuery.js +14 -0
  20. package/dist/hhi-armory-service/src/services/hooks/useContainerListTagVulnerabilitiesQuery.d.ts +57 -0
  21. package/dist/hhi-armory-service/src/services/hooks/useContainerListTagVulnerabilitiesQuery.js +14 -0
  22. package/dist/hhi-armory-service/src/services/hooks/useContainerListTagsQuery.d.ts +50 -0
  23. package/dist/hhi-armory-service/src/services/hooks/useContainerListTagsQuery.js +14 -0
  24. package/dist/hhi-armory-service/src/services/hooks/useHardeningGetArtifactsSummaryQuery.d.ts +29 -0
  25. package/dist/hhi-armory-service/src/services/hooks/useHardeningGetArtifactsSummaryQuery.js +16 -0
  26. package/dist/hhi-armory-service/src/services/hooks/useHardeningListArtifactsQuery.d.ts +51 -0
  27. package/dist/hhi-armory-service/src/services/hooks/useHardeningListArtifactsQuery.js +15 -0
  28. package/dist/hhi-armory-service/src/services/hooks/useMigrationCreateMigrationMutation.d.ts +33 -0
  29. package/dist/hhi-armory-service/src/services/hooks/useMigrationCreateMigrationMutation.js +16 -0
  30. package/dist/hhi-armory-service/src/services/hooks/useMigrationGetMigrationQuery.d.ts +33 -0
  31. package/dist/hhi-armory-service/src/services/hooks/useMigrationGetMigrationQuery.js +15 -0
  32. package/dist/hhi-armory-service/src/services/hooks/useMigrationListMigrationsQuery.d.ts +41 -0
  33. package/dist/hhi-armory-service/src/services/hooks/useMigrationListMigrationsQuery.js +14 -0
  34. package/dist/hhi-armory-service/src/services/index.d.ts +89 -0
  35. package/dist/hhi-armory-service/src/services/index.js +13 -0
  36. package/dist/hhi-armory-service/src/services/responses/BadRequestResponse.d.ts +2 -0
  37. package/dist/hhi-armory-service/src/services/responses/BadRequestResponse.js +1 -0
  38. package/dist/hhi-armory-service/src/services/responses/ConflictResponse.d.ts +2 -0
  39. package/dist/hhi-armory-service/src/services/responses/ConflictResponse.js +1 -0
  40. package/dist/hhi-armory-service/src/services/responses/InternalServerErrorResponse.d.ts +2 -0
  41. package/dist/hhi-armory-service/src/services/responses/InternalServerErrorResponse.js +1 -0
  42. package/dist/hhi-armory-service/src/services/responses/NotFoundResponse.d.ts +2 -0
  43. package/dist/hhi-armory-service/src/services/responses/NotFoundResponse.js +1 -0
  44. package/dist/hhi-armory-service/src/services/responses/UnauthorizedResponse.d.ts +2 -0
  45. package/dist/hhi-armory-service/src/services/responses/UnauthorizedResponse.js +1 -0
  46. package/dist/hhi-armory-service/src/services/schemas/ArchInfo.d.ts +18 -0
  47. package/dist/hhi-armory-service/src/services/schemas/ArchInfo.js +4 -0
  48. package/dist/hhi-armory-service/src/services/schemas/BadRequest.d.ts +15 -0
  49. package/dist/hhi-armory-service/src/services/schemas/BadRequest.js +4 -0
  50. package/dist/hhi-armory-service/src/services/schemas/ChangeSummary.d.ts +4 -0
  51. package/dist/hhi-armory-service/src/services/schemas/ChangeSummary.js +4 -0
  52. package/dist/hhi-armory-service/src/services/schemas/CheckStatus.d.ts +4 -0
  53. package/dist/hhi-armory-service/src/services/schemas/CheckStatus.js +4 -0
  54. package/dist/hhi-armory-service/src/services/schemas/ComparisonData.d.ts +26 -0
  55. package/dist/hhi-armory-service/src/services/schemas/ComparisonData.js +1 -0
  56. package/dist/hhi-armory-service/src/services/schemas/ComparisonMetrics.d.ts +10 -0
  57. package/dist/hhi-armory-service/src/services/schemas/ComparisonMetrics.js +1 -0
  58. package/dist/hhi-armory-service/src/services/schemas/Conflict.d.ts +7 -0
  59. package/dist/hhi-armory-service/src/services/schemas/Conflict.js +4 -0
  60. package/dist/hhi-armory-service/src/services/schemas/ContainerSummary.d.ts +63 -0
  61. package/dist/hhi-armory-service/src/services/schemas/ContainerSummary.js +4 -0
  62. package/dist/hhi-armory-service/src/services/schemas/CreateMigrationRequest.d.ts +32 -0
  63. package/dist/hhi-armory-service/src/services/schemas/CreateMigrationRequest.js +1 -0
  64. package/dist/hhi-armory-service/src/services/schemas/CveDiff.d.ts +8 -0
  65. package/dist/hhi-armory-service/src/services/schemas/CveDiff.js +1 -0
  66. package/dist/hhi-armory-service/src/services/schemas/CveDiffRow.d.ts +11 -0
  67. package/dist/hhi-armory-service/src/services/schemas/CveDiffRow.js +4 -0
  68. package/dist/hhi-armory-service/src/services/schemas/CveEvent.d.ts +26 -0
  69. package/dist/hhi-armory-service/src/services/schemas/CveEvent.js +4 -0
  70. package/dist/hhi-armory-service/src/services/schemas/CveSeverityCounts.d.ts +22 -0
  71. package/dist/hhi-armory-service/src/services/schemas/CveSeverityCounts.js +4 -0
  72. package/dist/hhi-armory-service/src/services/schemas/DailyCve.d.ts +39 -0
  73. package/dist/hhi-armory-service/src/services/schemas/DailyCve.js +4 -0
  74. package/dist/hhi-armory-service/src/services/schemas/DownloadStats.d.ts +10 -0
  75. package/dist/hhi-armory-service/src/services/schemas/DownloadStats.js +4 -0
  76. package/dist/hhi-armory-service/src/services/schemas/HardeningArtifactItem.d.ts +35 -0
  77. package/dist/hhi-armory-service/src/services/schemas/HardeningArtifactItem.js +1 -0
  78. package/dist/hhi-armory-service/src/services/schemas/HardeningArtifactsListResponse.d.ts +6 -0
  79. package/dist/hhi-armory-service/src/services/schemas/HardeningArtifactsListResponse.js +1 -0
  80. package/dist/hhi-armory-service/src/services/schemas/HardeningArtifactsSummaryResponse.d.ts +18 -0
  81. package/dist/hhi-armory-service/src/services/schemas/HardeningArtifactsSummaryResponse.js +1 -0
  82. package/dist/hhi-armory-service/src/services/schemas/ImageRefPair.d.ts +3 -0
  83. package/dist/hhi-armory-service/src/services/schemas/ImageRefPair.js +4 -0
  84. package/dist/hhi-armory-service/src/services/schemas/ImageTag.d.ts +24 -0
  85. package/dist/hhi-armory-service/src/services/schemas/ImageTag.js +1 -0
  86. package/dist/hhi-armory-service/src/services/schemas/ImageUsedEntry.d.ts +8 -0
  87. package/dist/hhi-armory-service/src/services/schemas/ImageUsedEntry.js +4 -0
  88. package/dist/hhi-armory-service/src/services/schemas/InternalServerError.d.ts +15 -0
  89. package/dist/hhi-armory-service/src/services/schemas/InternalServerError.js +4 -0
  90. package/dist/hhi-armory-service/src/services/schemas/ListContainersResponseBody.d.ts +12 -0
  91. package/dist/hhi-armory-service/src/services/schemas/ListContainersResponseBody.js +1 -0
  92. package/dist/hhi-armory-service/src/services/schemas/ListTagPackagesResponseBody.d.ts +14 -0
  93. package/dist/hhi-armory-service/src/services/schemas/ListTagPackagesResponseBody.js +1 -0
  94. package/dist/hhi-armory-service/src/services/schemas/ListTagVulnerabilitiesResponseBody.d.ts +14 -0
  95. package/dist/hhi-armory-service/src/services/schemas/ListTagVulnerabilitiesResponseBody.js +1 -0
  96. package/dist/hhi-armory-service/src/services/schemas/ListTagsResponseBody.d.ts +16 -0
  97. package/dist/hhi-armory-service/src/services/schemas/ListTagsResponseBody.js +1 -0
  98. package/dist/hhi-armory-service/src/services/schemas/MarkdownDoc.d.ts +21 -0
  99. package/dist/hhi-armory-service/src/services/schemas/MarkdownDoc.js +4 -0
  100. package/dist/hhi-armory-service/src/services/schemas/MetricSet.d.ts +25 -0
  101. package/dist/hhi-armory-service/src/services/schemas/MetricSet.js +4 -0
  102. package/dist/hhi-armory-service/src/services/schemas/MigrationChecks.d.ts +7 -0
  103. package/dist/hhi-armory-service/src/services/schemas/MigrationChecks.js +1 -0
  104. package/dist/hhi-armory-service/src/services/schemas/MigrationDetail.d.ts +19 -0
  105. package/dist/hhi-armory-service/src/services/schemas/MigrationDetail.js +1 -0
  106. package/dist/hhi-armory-service/src/services/schemas/MigrationFailure.d.ts +3 -0
  107. package/dist/hhi-armory-service/src/services/schemas/MigrationFailure.js +4 -0
  108. package/dist/hhi-armory-service/src/services/schemas/MigrationListResponse.d.ts +6 -0
  109. package/dist/hhi-armory-service/src/services/schemas/MigrationListResponse.js +1 -0
  110. package/dist/hhi-armory-service/src/services/schemas/MigrationScmConfig.d.ts +12 -0
  111. package/dist/hhi-armory-service/src/services/schemas/MigrationScmConfig.js +4 -0
  112. package/dist/hhi-armory-service/src/services/schemas/MigrationSnippet.d.ts +6 -0
  113. package/dist/hhi-armory-service/src/services/schemas/MigrationSnippet.js +1 -0
  114. package/dist/hhi-armory-service/src/services/schemas/MigrationSummary.d.ts +36 -0
  115. package/dist/hhi-armory-service/src/services/schemas/MigrationSummary.js +1 -0
  116. package/dist/hhi-armory-service/src/services/schemas/NameSlug.d.ts +13 -0
  117. package/dist/hhi-armory-service/src/services/schemas/NameSlug.js +4 -0
  118. package/dist/hhi-armory-service/src/services/schemas/NetNewCveDay.d.ts +24 -0
  119. package/dist/hhi-armory-service/src/services/schemas/NetNewCveDay.js +1 -0
  120. package/dist/hhi-armory-service/src/services/schemas/NotFound.d.ts +15 -0
  121. package/dist/hhi-armory-service/src/services/schemas/NotFound.js +4 -0
  122. package/dist/hhi-armory-service/src/services/schemas/NotImplemented.d.ts +15 -0
  123. package/dist/hhi-armory-service/src/services/schemas/NotImplemented.js +4 -0
  124. package/dist/hhi-armory-service/src/services/schemas/PackageInfo.d.ts +30 -0
  125. package/dist/hhi-armory-service/src/services/schemas/PackageInfo.js +4 -0
  126. package/dist/hhi-armory-service/src/services/schemas/Pagination.d.ts +23 -0
  127. package/dist/hhi-armory-service/src/services/schemas/Pagination.js +4 -0
  128. package/dist/hhi-armory-service/src/services/schemas/PinnedImage.d.ts +4 -0
  129. package/dist/hhi-armory-service/src/services/schemas/PinnedImage.js +4 -0
  130. package/dist/hhi-armory-service/src/services/schemas/PrReference.d.ts +21 -0
  131. package/dist/hhi-armory-service/src/services/schemas/PrReference.js +4 -0
  132. package/dist/hhi-armory-service/src/services/schemas/ReductionSet.d.ts +25 -0
  133. package/dist/hhi-armory-service/src/services/schemas/ReductionSet.js +4 -0
  134. package/dist/hhi-armory-service/src/services/schemas/RuntimeEnvironment.d.ts +6 -0
  135. package/dist/hhi-armory-service/src/services/schemas/RuntimeEnvironment.js +4 -0
  136. package/dist/hhi-armory-service/src/services/schemas/RuntimeTest.d.ts +8 -0
  137. package/dist/hhi-armory-service/src/services/schemas/RuntimeTest.js +1 -0
  138. package/dist/hhi-armory-service/src/services/schemas/RuntimeTestCheck.d.ts +10 -0
  139. package/dist/hhi-armory-service/src/services/schemas/RuntimeTestCheck.js +4 -0
  140. package/dist/hhi-armory-service/src/services/schemas/RuntimeTestResult.d.ts +4 -0
  141. package/dist/hhi-armory-service/src/services/schemas/RuntimeTestResult.js +4 -0
  142. package/dist/hhi-armory-service/src/services/schemas/RuntimeTestsBlock.d.ts +6 -0
  143. package/dist/hhi-armory-service/src/services/schemas/RuntimeTestsBlock.js +1 -0
  144. package/dist/hhi-armory-service/src/services/schemas/ServiceUnavailable.d.ts +15 -0
  145. package/dist/hhi-armory-service/src/services/schemas/ServiceUnavailable.js +4 -0
  146. package/dist/hhi-armory-service/src/services/schemas/SeverityTimeline.d.ts +14 -0
  147. package/dist/hhi-armory-service/src/services/schemas/SeverityTimeline.js +1 -0
  148. package/dist/hhi-armory-service/src/services/schemas/SupplyChainInfo.d.ts +11 -0
  149. package/dist/hhi-armory-service/src/services/schemas/SupplyChainInfo.js +1 -0
  150. package/dist/hhi-armory-service/src/services/schemas/TagMetadata.d.ts +32 -0
  151. package/dist/hhi-armory-service/src/services/schemas/TagMetadata.js +1 -0
  152. package/dist/hhi-armory-service/src/services/schemas/TagSize.d.ts +16 -0
  153. package/dist/hhi-armory-service/src/services/schemas/TagSize.js +4 -0
  154. package/dist/hhi-armory-service/src/services/schemas/Unauthorized.d.ts +15 -0
  155. package/dist/hhi-armory-service/src/services/schemas/Unauthorized.js +4 -0
  156. package/dist/hhi-armory-service/src/services/schemas/Vulnerabilities.d.ts +31 -0
  157. package/dist/hhi-armory-service/src/services/schemas/Vulnerabilities.js +4 -0
  158. package/dist/hhi-armory-service/src/services/schemas/VulnerabilityRow.d.ts +48 -0
  159. package/dist/hhi-armory-service/src/services/schemas/VulnerabilityRow.js +4 -0
  160. package/package.json +32 -4
@@ -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
+ }
@@ -0,0 +1,29 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { HardeningArtifactsSummaryResponse } from '../schemas/HardeningArtifactsSummaryResponse';
3
+ import type { BadRequestResponse } from '../responses/BadRequestResponse';
4
+ import type { UnauthorizedResponse } from '../responses/UnauthorizedResponse';
5
+ import type { NotFoundResponse } from '../responses/NotFoundResponse';
6
+ import type { InternalServerErrorResponse } from '../responses/InternalServerErrorResponse';
7
+ import type { ResponseWithPagination } from '../helpers';
8
+ import { FetcherOptions } from '../../../../fetcher/index.js';
9
+ export interface HardeningGetArtifactsSummaryQueryPathParams {
10
+ /**
11
+ * @example "default"
12
+ */
13
+ orgId: string;
14
+ /**
15
+ * @example "my-project"
16
+ */
17
+ projectId: string;
18
+ }
19
+ export type HardeningGetArtifactsSummaryOkResponse = ResponseWithPagination<HardeningArtifactsSummaryResponse>;
20
+ export type HardeningGetArtifactsSummaryErrorResponse = BadRequestResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
21
+ export interface HardeningGetArtifactsSummaryProps extends HardeningGetArtifactsSummaryQueryPathParams, Omit<FetcherOptions<unknown, unknown>, 'url'> {
22
+ }
23
+ export declare function hardeningGetArtifactsSummary(props: HardeningGetArtifactsSummaryProps): Promise<HardeningGetArtifactsSummaryOkResponse>;
24
+ /**
25
+ * Artifacts list — header cards. Requires Harness-Account header.
26
+ * `counts` (ready/hardened/no_match) is not served yet. `projectedCves` is omitted until at least one artifact has a projection; `projectedArtifacts` is the count covered.
27
+ *
28
+ */
29
+ export declare function useHardeningGetArtifactsSummaryQuery(props: HardeningGetArtifactsSummaryProps, options?: Omit<UseQueryOptions<HardeningGetArtifactsSummaryOkResponse, HardeningGetArtifactsSummaryErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<HardeningGetArtifactsSummaryOkResponse, HardeningGetArtifactsSummaryErrorResponse>;
@@ -0,0 +1,16 @@
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 hardeningGetArtifactsSummary(props) {
7
+ return fetcher(Object.assign({ url: `/api/v1/orgs/${props.orgId}/projects/${props.projectId}/hardening/artifacts/summary`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Artifacts list — header cards. Requires Harness-Account header.
11
+ * `counts` (ready/hardened/no_match) is not served yet. `projectedCves` is omitted until at least one artifact has a projection; `projectedArtifacts` is the count covered.
12
+ *
13
+ */
14
+ export function useHardeningGetArtifactsSummaryQuery(props, options) {
15
+ return useQuery(['Hardening#GetArtifactsSummary', props.orgId, props.projectId], ({ signal }) => hardeningGetArtifactsSummary(Object.assign(Object.assign({}, props), { signal })), options);
16
+ }
@@ -0,0 +1,51 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { HardeningArtifactsListResponse } from '../schemas/HardeningArtifactsListResponse';
3
+ import type { BadRequestResponse } from '../responses/BadRequestResponse';
4
+ import type { UnauthorizedResponse } from '../responses/UnauthorizedResponse';
5
+ import type { NotFoundResponse } from '../responses/NotFoundResponse';
6
+ import type { InternalServerErrorResponse } from '../responses/InternalServerErrorResponse';
7
+ import type { ResponseWithPagination } from '../helpers';
8
+ import { FetcherOptions } from '../../../../fetcher/index.js';
9
+ export interface HardeningListArtifactsQueryPathParams {
10
+ /**
11
+ * @example "default"
12
+ */
13
+ orgId: string;
14
+ /**
15
+ * @example "my-project"
16
+ */
17
+ projectId: string;
18
+ }
19
+ export interface HardeningListArtifactsQueryQueryParams {
20
+ tab?: 'hardened' | 'no_match' | 'ready';
21
+ search?: string;
22
+ /**
23
+ * @default "lastScannedAt"
24
+ */
25
+ sort?: 'lastScannedAt' | 'name' | 'reductionPct';
26
+ /**
27
+ * @default "desc"
28
+ */
29
+ order?: 'asc' | 'desc';
30
+ /**
31
+ * @format int64
32
+ * @default 0
33
+ */
34
+ page?: number;
35
+ /**
36
+ * @format int64
37
+ * @default 50
38
+ */
39
+ pageSize?: number;
40
+ }
41
+ export type HardeningListArtifactsOkResponse = ResponseWithPagination<HardeningArtifactsListResponse>;
42
+ export type HardeningListArtifactsErrorResponse = BadRequestResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
43
+ export interface HardeningListArtifactsProps extends HardeningListArtifactsQueryPathParams, Omit<FetcherOptions<HardeningListArtifactsQueryQueryParams, unknown>, 'url'> {
44
+ queryParams: HardeningListArtifactsQueryQueryParams;
45
+ }
46
+ export declare function hardeningListArtifacts(props: HardeningListArtifactsProps): Promise<HardeningListArtifactsOkResponse>;
47
+ /**
48
+ * Artifacts list. `tab` query is not served yet (ignored). Poll GET migrations/{id} while a run is in progress.
49
+ *
50
+ */
51
+ export declare function useHardeningListArtifactsQuery(props: HardeningListArtifactsProps, options?: Omit<UseQueryOptions<HardeningListArtifactsOkResponse, HardeningListArtifactsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<HardeningListArtifactsOkResponse, HardeningListArtifactsErrorResponse>;
@@ -0,0 +1,15 @@
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 hardeningListArtifacts(props) {
7
+ return fetcher(Object.assign({ url: `/api/v1/orgs/${props.orgId}/projects/${props.projectId}/hardening/artifacts`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Artifacts list. `tab` query is not served yet (ignored). Poll GET migrations/{id} while a run is in progress.
11
+ *
12
+ */
13
+ export function useHardeningListArtifactsQuery(props, options) {
14
+ return useQuery(['Hardening#ListArtifacts', props.orgId, props.projectId, props.queryParams], ({ signal }) => hardeningListArtifacts(Object.assign(Object.assign({}, props), { signal })), options);
15
+ }
@@ -0,0 +1,33 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { MigrationSummary } from '../schemas/MigrationSummary';
3
+ import type { BadRequestResponse } from '../responses/BadRequestResponse';
4
+ import type { UnauthorizedResponse } from '../responses/UnauthorizedResponse';
5
+ import type { NotFoundResponse } from '../responses/NotFoundResponse';
6
+ import type { ConflictResponse } from '../responses/ConflictResponse';
7
+ import type { InternalServerErrorResponse } from '../responses/InternalServerErrorResponse';
8
+ import type { CreateMigrationRequest } from '../schemas/CreateMigrationRequest';
9
+ import type { ResponseWithPagination } from '../helpers';
10
+ import { FetcherOptions } from '../../../../fetcher/index.js';
11
+ export interface MigrationCreateMigrationMutationPathParams {
12
+ /**
13
+ * @example "default"
14
+ */
15
+ orgId: string;
16
+ /**
17
+ * @example "my-project"
18
+ */
19
+ projectId: string;
20
+ }
21
+ export type MigrationCreateMigrationRequestBody = CreateMigrationRequest;
22
+ export type MigrationCreateMigrationOkResponse = ResponseWithPagination<MigrationSummary>;
23
+ export type MigrationCreateMigrationErrorResponse = BadRequestResponse | UnauthorizedResponse | NotFoundResponse | ConflictResponse | InternalServerErrorResponse;
24
+ export interface MigrationCreateMigrationProps extends MigrationCreateMigrationMutationPathParams, Omit<FetcherOptions<unknown, MigrationCreateMigrationRequestBody>, 'url'> {
25
+ body: MigrationCreateMigrationRequestBody;
26
+ }
27
+ export declare function migrationCreateMigration(props: MigrationCreateMigrationProps): Promise<MigrationCreateMigrationOkResponse>;
28
+ /**
29
+ * Start harden artifact flow. Requires Harness-Account and Authorization/x-api-key.
30
+ * Returns 202 with migration IN_PROGRESS. Only the first platform in `platforms` runs for now.
31
+ *
32
+ */
33
+ export declare function useMigrationCreateMigrationMutation(options?: Omit<UseMutationOptions<MigrationCreateMigrationOkResponse, MigrationCreateMigrationErrorResponse, MigrationCreateMigrationProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<MigrationCreateMigrationOkResponse, MigrationCreateMigrationErrorResponse, MigrationCreateMigrationProps, unknown>;
@@ -0,0 +1,16 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ import { useMutation } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../fetcher/index.js';
6
+ export function migrationCreateMigration(props) {
7
+ return fetcher(Object.assign({ url: `/api/v1/orgs/${props.orgId}/projects/${props.projectId}/migrations`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Start harden artifact flow. Requires Harness-Account and Authorization/x-api-key.
11
+ * Returns 202 with migration IN_PROGRESS. Only the first platform in `platforms` runs for now.
12
+ *
13
+ */
14
+ export function useMigrationCreateMigrationMutation(options) {
15
+ return useMutation((mutateProps) => migrationCreateMigration(mutateProps), options);
16
+ }
@@ -0,0 +1,33 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { MigrationDetail } from '../schemas/MigrationDetail';
3
+ import type { BadRequestResponse } from '../responses/BadRequestResponse';
4
+ import type { UnauthorizedResponse } from '../responses/UnauthorizedResponse';
5
+ import type { NotFoundResponse } from '../responses/NotFoundResponse';
6
+ import type { InternalServerErrorResponse } from '../responses/InternalServerErrorResponse';
7
+ import type { ResponseWithPagination } from '../helpers';
8
+ import { FetcherOptions } from '../../../../fetcher/index.js';
9
+ export interface MigrationGetMigrationQueryPathParams {
10
+ /**
11
+ * @example "default"
12
+ */
13
+ orgId: string;
14
+ /**
15
+ * @example "my-project"
16
+ */
17
+ projectId: string;
18
+ /**
19
+ * @format uuid
20
+ * @example "c1a03fe7-1514-40f4-a631-c6df6da2c4f0"
21
+ */
22
+ id: string;
23
+ }
24
+ export type MigrationGetMigrationOkResponse = ResponseWithPagination<MigrationDetail>;
25
+ export type MigrationGetMigrationErrorResponse = BadRequestResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
26
+ export interface MigrationGetMigrationProps extends MigrationGetMigrationQueryPathParams, Omit<FetcherOptions<unknown, unknown>, 'url'> {
27
+ }
28
+ export declare function migrationGetMigration(props: MigrationGetMigrationProps): Promise<MigrationGetMigrationOkResponse>;
29
+ /**
30
+ * View PR drawer. Refreshes IN_PROGRESS runs from the pipeline; poll while in progress.
31
+ *
32
+ */
33
+ export declare function useMigrationGetMigrationQuery(props: MigrationGetMigrationProps, options?: Omit<UseQueryOptions<MigrationGetMigrationOkResponse, MigrationGetMigrationErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<MigrationGetMigrationOkResponse, MigrationGetMigrationErrorResponse>;
@@ -0,0 +1,15 @@
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 migrationGetMigration(props) {
7
+ return fetcher(Object.assign({ url: `/api/v1/orgs/${props.orgId}/projects/${props.projectId}/migrations/${props.id}`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * View PR drawer. Refreshes IN_PROGRESS runs from the pipeline; poll while in progress.
11
+ *
12
+ */
13
+ export function useMigrationGetMigrationQuery(props, options) {
14
+ return useQuery(['Migration#GetMigration', props.orgId, props.projectId, props.id], ({ signal }) => migrationGetMigration(Object.assign(Object.assign({}, props), { signal })), options);
15
+ }
@@ -0,0 +1,41 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { MigrationListResponse } from '../schemas/MigrationListResponse';
3
+ import type { BadRequestResponse } from '../responses/BadRequestResponse';
4
+ import type { UnauthorizedResponse } from '../responses/UnauthorizedResponse';
5
+ import type { NotFoundResponse } from '../responses/NotFoundResponse';
6
+ import type { InternalServerErrorResponse } from '../responses/InternalServerErrorResponse';
7
+ import type { ResponseWithPagination } from '../helpers';
8
+ import { FetcherOptions } from '../../../../fetcher/index.js';
9
+ export interface MigrationListMigrationsQueryPathParams {
10
+ /**
11
+ * @example "default"
12
+ */
13
+ orgId: string;
14
+ /**
15
+ * @example "my-project"
16
+ */
17
+ projectId: string;
18
+ }
19
+ export interface MigrationListMigrationsQueryQueryParams {
20
+ search?: string;
21
+ /**
22
+ * @format int64
23
+ * @default 0
24
+ */
25
+ page?: number;
26
+ /**
27
+ * @format int64
28
+ * @default 50
29
+ */
30
+ pageSize?: number;
31
+ }
32
+ export type MigrationListMigrationsOkResponse = ResponseWithPagination<MigrationListResponse>;
33
+ export type MigrationListMigrationsErrorResponse = BadRequestResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
34
+ export interface MigrationListMigrationsProps extends MigrationListMigrationsQueryPathParams, Omit<FetcherOptions<MigrationListMigrationsQueryQueryParams, unknown>, 'url'> {
35
+ queryParams: MigrationListMigrationsQueryQueryParams;
36
+ }
37
+ export declare function migrationListMigrations(props: MigrationListMigrationsProps): Promise<MigrationListMigrationsOkResponse>;
38
+ /**
39
+ * Hardening Agent executions list; does not refresh status from pipeline (use GET migrations/{id}).
40
+ */
41
+ export declare function useMigrationListMigrationsQuery(props: MigrationListMigrationsProps, options?: Omit<UseQueryOptions<MigrationListMigrationsOkResponse, MigrationListMigrationsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<MigrationListMigrationsOkResponse, MigrationListMigrationsErrorResponse>;
@@ -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 migrationListMigrations(props) {
7
+ return fetcher(Object.assign({ url: `/api/v1/orgs/${props.orgId}/projects/${props.projectId}/migrations`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Hardening Agent executions list; does not refresh status from pipeline (use GET migrations/{id}).
11
+ */
12
+ export function useMigrationListMigrationsQuery(props, options) {
13
+ return useQuery(['Migration#ListMigrations', props.orgId, props.projectId, props.queryParams], ({ signal }) => migrationListMigrations(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,89 @@
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';
18
+ export type { HardeningGetArtifactsSummaryErrorResponse, HardeningGetArtifactsSummaryOkResponse, HardeningGetArtifactsSummaryProps, HardeningGetArtifactsSummaryQueryPathParams, } from './hooks/useHardeningGetArtifactsSummaryQuery';
19
+ export { hardeningGetArtifactsSummary, useHardeningGetArtifactsSummaryQuery, } from './hooks/useHardeningGetArtifactsSummaryQuery';
20
+ export type { HardeningListArtifactsErrorResponse, HardeningListArtifactsOkResponse, HardeningListArtifactsProps, HardeningListArtifactsQueryPathParams, HardeningListArtifactsQueryQueryParams, } from './hooks/useHardeningListArtifactsQuery';
21
+ export { hardeningListArtifacts, useHardeningListArtifactsQuery, } from './hooks/useHardeningListArtifactsQuery';
22
+ export type { MigrationCreateMigrationErrorResponse, MigrationCreateMigrationMutationPathParams, MigrationCreateMigrationOkResponse, MigrationCreateMigrationProps, MigrationCreateMigrationRequestBody, } from './hooks/useMigrationCreateMigrationMutation';
23
+ export { migrationCreateMigration, useMigrationCreateMigrationMutation, } from './hooks/useMigrationCreateMigrationMutation';
24
+ export type { MigrationGetMigrationErrorResponse, MigrationGetMigrationOkResponse, MigrationGetMigrationProps, MigrationGetMigrationQueryPathParams, } from './hooks/useMigrationGetMigrationQuery';
25
+ export { migrationGetMigration, useMigrationGetMigrationQuery, } from './hooks/useMigrationGetMigrationQuery';
26
+ export type { MigrationListMigrationsErrorResponse, MigrationListMigrationsOkResponse, MigrationListMigrationsProps, MigrationListMigrationsQueryPathParams, MigrationListMigrationsQueryQueryParams, } from './hooks/useMigrationListMigrationsQuery';
27
+ export { migrationListMigrations, useMigrationListMigrationsQuery, } from './hooks/useMigrationListMigrationsQuery';
28
+ export type { BadRequestResponse } from './responses/BadRequestResponse';
29
+ export type { ConflictResponse } from './responses/ConflictResponse';
30
+ export type { InternalServerErrorResponse } from './responses/InternalServerErrorResponse';
31
+ export type { NotFoundResponse } from './responses/NotFoundResponse';
32
+ export type { UnauthorizedResponse } from './responses/UnauthorizedResponse';
33
+ export type { ArchInfo } from './schemas/ArchInfo';
34
+ export type { BadRequest } from './schemas/BadRequest';
35
+ export type { ChangeSummary } from './schemas/ChangeSummary';
36
+ export type { CheckStatus } from './schemas/CheckStatus';
37
+ export type { ComparisonData } from './schemas/ComparisonData';
38
+ export type { ComparisonMetrics } from './schemas/ComparisonMetrics';
39
+ export type { Conflict } from './schemas/Conflict';
40
+ export type { ContainerSummary } from './schemas/ContainerSummary';
41
+ export type { CreateMigrationRequest } from './schemas/CreateMigrationRequest';
42
+ export type { CveDiff } from './schemas/CveDiff';
43
+ export type { CveDiffRow } from './schemas/CveDiffRow';
44
+ export type { CveEvent } from './schemas/CveEvent';
45
+ export type { CveSeverityCounts } from './schemas/CveSeverityCounts';
46
+ export type { DailyCve } from './schemas/DailyCve';
47
+ export type { DownloadStats } from './schemas/DownloadStats';
48
+ export type { HardeningArtifactItem } from './schemas/HardeningArtifactItem';
49
+ export type { HardeningArtifactsListResponse } from './schemas/HardeningArtifactsListResponse';
50
+ export type { HardeningArtifactsSummaryResponse } from './schemas/HardeningArtifactsSummaryResponse';
51
+ export type { ImageRefPair } from './schemas/ImageRefPair';
52
+ export type { ImageTag } from './schemas/ImageTag';
53
+ export type { ImageUsedEntry } from './schemas/ImageUsedEntry';
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';
61
+ export type { MigrationChecks } from './schemas/MigrationChecks';
62
+ export type { MigrationDetail } from './schemas/MigrationDetail';
63
+ export type { MigrationFailure } from './schemas/MigrationFailure';
64
+ export type { MigrationListResponse } from './schemas/MigrationListResponse';
65
+ export type { MigrationScmConfig } from './schemas/MigrationScmConfig';
66
+ export type { MigrationSnippet } from './schemas/MigrationSnippet';
67
+ export type { MigrationSummary } from './schemas/MigrationSummary';
68
+ export type { NameSlug } from './schemas/NameSlug';
69
+ export type { NetNewCveDay } from './schemas/NetNewCveDay';
70
+ export type { NotFound } from './schemas/NotFound';
71
+ export type { NotImplemented } from './schemas/NotImplemented';
72
+ export type { PackageInfo } from './schemas/PackageInfo';
73
+ export type { Pagination } from './schemas/Pagination';
74
+ export type { PinnedImage } from './schemas/PinnedImage';
75
+ export type { PrReference } from './schemas/PrReference';
76
+ export type { ReductionSet } from './schemas/ReductionSet';
77
+ export type { RuntimeEnvironment } from './schemas/RuntimeEnvironment';
78
+ export type { RuntimeTest } from './schemas/RuntimeTest';
79
+ export type { RuntimeTestCheck } from './schemas/RuntimeTestCheck';
80
+ export type { RuntimeTestResult } from './schemas/RuntimeTestResult';
81
+ export type { RuntimeTestsBlock } from './schemas/RuntimeTestsBlock';
82
+ export type { ServiceUnavailable } from './schemas/ServiceUnavailable';
83
+ export type { SeverityTimeline } from './schemas/SeverityTimeline';
84
+ export type { SupplyChainInfo } from './schemas/SupplyChainInfo';
85
+ export type { TagMetadata } from './schemas/TagMetadata';
86
+ export type { TagSize } from './schemas/TagSize';
87
+ export type { Unauthorized } from './schemas/Unauthorized';
88
+ export type { Vulnerabilities } from './schemas/Vulnerabilities';
89
+ export type { VulnerabilityRow } from './schemas/VulnerabilityRow';
@@ -0,0 +1,13 @@
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';
9
+ export { hardeningGetArtifactsSummary, useHardeningGetArtifactsSummaryQuery, } from './hooks/useHardeningGetArtifactsSummaryQuery';
10
+ export { hardeningListArtifacts, useHardeningListArtifactsQuery, } from './hooks/useHardeningListArtifactsQuery';
11
+ export { migrationCreateMigration, useMigrationCreateMigrationMutation, } from './hooks/useMigrationCreateMigrationMutation';
12
+ export { migrationGetMigration, useMigrationGetMigrationQuery, } from './hooks/useMigrationGetMigrationQuery';
13
+ export { migrationListMigrations, useMigrationListMigrationsQuery, } from './hooks/useMigrationListMigrationsQuery';
@@ -0,0 +1,2 @@
1
+ import type { BadRequest } from '../schemas/BadRequest';
2
+ export type BadRequestResponse = BadRequest;
@@ -0,0 +1,2 @@
1
+ import type { Conflict } from '../schemas/Conflict';
2
+ export type ConflictResponse = Conflict;
@@ -0,0 +1,2 @@
1
+ import type { InternalServerError } from '../schemas/InternalServerError';
2
+ export type InternalServerErrorResponse = InternalServerError;
@@ -0,0 +1,2 @@
1
+ import type { NotFound } from '../schemas/NotFound';
2
+ export type NotFoundResponse = NotFound;
@@ -0,0 +1,2 @@
1
+ import type { Unauthorized } from '../schemas/Unauthorized';
2
+ export type UnauthorizedResponse = Unauthorized;
@@ -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 {};
@@ -0,0 +1,15 @@
1
+ /**
2
+ * @example {"message":"Bad Request","status":2430825729691327500}
3
+ */
4
+ export interface BadRequest {
5
+ /**
6
+ * @example "Bad Request"
7
+ */
8
+ message: string;
9
+ /**
10
+ * @format int64
11
+ * @default 400
12
+ * @example 6213758147937505000
13
+ */
14
+ status?: number;
15
+ }
@@ -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 {};
@@ -0,0 +1,4 @@
1
+ export interface ChangeSummary {
2
+ changes?: string[];
3
+ unchanged?: string[];
4
+ }
@@ -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 {};
@@ -0,0 +1,4 @@
1
+ export interface CheckStatus {
2
+ pipelineExecutionUrl?: string;
3
+ status?: string;
4
+ }
@@ -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 {};
@@ -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,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,7 @@
1
+ export interface Conflict {
2
+ message: string;
3
+ /**
4
+ * @format int64
5
+ */
6
+ status?: number;
7
+ }
@@ -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 {};