@harnessio/react-har-service-client 0.0.8 → 0.0.10

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 (117) hide show
  1. package/dist/har-service/src/services/hooks/useCreateRegistryMutation.d.ts +23 -0
  2. package/dist/har-service/src/services/hooks/useCreateRegistryMutation.js +14 -0
  3. package/dist/har-service/src/services/hooks/useDeleteRegistryMutation.d.ts +20 -0
  4. package/dist/har-service/src/services/hooks/useDeleteRegistryMutation.js +14 -0
  5. package/dist/har-service/src/services/hooks/useGetAllArtifactVersionsQuery.d.ts +14 -7
  6. package/dist/har-service/src/services/hooks/useGetAllArtifactVersionsQuery.js +2 -2
  7. package/dist/har-service/src/services/hooks/useGetAllArtifactsQuery.d.ts +18 -9
  8. package/dist/har-service/src/services/hooks/useGetAllArtifactsQuery.js +2 -2
  9. package/dist/har-service/src/services/hooks/useGetAllRegistriesQuery.d.ts +43 -0
  10. package/dist/har-service/src/services/hooks/useGetAllRegistriesQuery.js +14 -0
  11. package/dist/har-service/src/services/hooks/useGetArtifactStatsForRegistryQuery.d.ts +25 -0
  12. package/dist/har-service/src/services/hooks/useGetArtifactStatsForRegistryQuery.js +14 -0
  13. package/dist/har-service/src/services/hooks/useGetArtifactStatsForSpaceQuery.d.ts +25 -0
  14. package/dist/har-service/src/services/hooks/useGetArtifactStatsForSpaceQuery.js +14 -0
  15. package/dist/har-service/src/services/hooks/useGetArtifactStatsQuery.d.ts +26 -0
  16. package/dist/har-service/src/services/hooks/useGetArtifactStatsQuery.js +14 -0
  17. package/dist/har-service/src/services/hooks/useGetArtifactSummaryQuery.d.ts +3 -7
  18. package/dist/har-service/src/services/hooks/useGetArtifactSummaryQuery.js +2 -2
  19. package/dist/har-service/src/services/hooks/useGetArtifactVersionSummaryQuery.d.ts +3 -7
  20. package/dist/har-service/src/services/hooks/useGetArtifactVersionSummaryQuery.js +2 -2
  21. package/dist/har-service/src/services/hooks/useGetClientSetupDetailsQuery.d.ts +3 -7
  22. package/dist/har-service/src/services/hooks/useGetClientSetupDetailsQuery.js +2 -2
  23. package/dist/har-service/src/services/hooks/useGetDockerArtifactDetailsQuery.d.ts +5 -6
  24. package/dist/har-service/src/services/hooks/useGetDockerArtifactDetailsQuery.js +8 -2
  25. package/dist/har-service/src/services/hooks/useGetDockerArtifactLayersQuery.d.ts +6 -6
  26. package/dist/har-service/src/services/hooks/useGetDockerArtifactLayersQuery.js +8 -2
  27. package/dist/har-service/src/services/hooks/useGetDockerArtifactManifestQuery.d.ts +6 -6
  28. package/dist/har-service/src/services/hooks/useGetDockerArtifactManifestQuery.js +8 -2
  29. package/dist/har-service/src/services/hooks/useGetDockerArtifactManifestsQuery.d.ts +3 -7
  30. package/dist/har-service/src/services/hooks/useGetDockerArtifactManifestsQuery.js +2 -2
  31. package/dist/har-service/src/services/hooks/useGetHelmArtifactDetailsQuery.d.ts +3 -7
  32. package/dist/har-service/src/services/hooks/useGetHelmArtifactDetailsQuery.js +2 -2
  33. package/dist/har-service/src/services/hooks/useGetHelmArtifactManifestQuery.d.ts +3 -7
  34. package/dist/har-service/src/services/hooks/useGetHelmArtifactManifestQuery.js +2 -2
  35. package/dist/har-service/src/services/hooks/useGetRegistryQuery.d.ts +20 -0
  36. package/dist/har-service/src/services/hooks/useGetRegistryQuery.js +14 -0
  37. package/dist/har-service/src/services/hooks/useListArtifactLabelsQuery.d.ts +34 -0
  38. package/dist/har-service/src/services/hooks/useListArtifactLabelsQuery.js +14 -0
  39. package/dist/har-service/src/services/hooks/useModifyRegistryMutation.d.ts +24 -0
  40. package/dist/har-service/src/services/hooks/useModifyRegistryMutation.js +14 -0
  41. package/dist/har-service/src/services/hooks/useUpdateArtifactLabelsMutation.d.ts +24 -0
  42. package/dist/har-service/src/services/hooks/useUpdateArtifactLabelsMutation.js +14 -0
  43. package/dist/har-service/src/services/index.d.ts +49 -44
  44. package/dist/har-service/src/services/index.js +10 -9
  45. package/dist/har-service/src/services/requestBodies/ArtifactLabelRequestRequestBody.d.ts +2 -0
  46. package/dist/har-service/src/services/requestBodies/RegistryRequestRequestBody.d.ts +2 -0
  47. package/dist/har-service/src/services/responses/ArtifactLabelResponseResponse.d.ts +6 -0
  48. package/dist/har-service/src/services/responses/ArtifactStatsResponseResponse.d.ts +6 -0
  49. package/dist/har-service/src/services/responses/ListArtifactLabelResponseResponse.d.ts +6 -0
  50. package/dist/har-service/src/services/responses/ListRegistryResponseResponse.d.ts +6 -0
  51. package/dist/har-service/src/services/responses/RegistryResponseResponse.d.ts +6 -0
  52. package/dist/har-service/src/services/schemas/ArtifactLabelRequest.d.ts +3 -0
  53. package/dist/har-service/src/services/schemas/ArtifactMetadata.d.ts +2 -1
  54. package/dist/har-service/src/services/schemas/ArtifactStats.d.ts +9 -0
  55. package/dist/har-service/src/services/schemas/ArtifactVersionMetadata.d.ts +2 -0
  56. package/dist/har-service/src/services/schemas/CleanupPolicy.d.ts +4 -5
  57. package/dist/har-service/src/services/schemas/DockerArtifactDetail.d.ts +1 -1
  58. package/dist/har-service/src/services/schemas/HelmArtifactDetail.d.ts +1 -1
  59. package/dist/har-service/src/services/schemas/ListArtifactLabel.d.ts +26 -0
  60. package/dist/har-service/src/services/schemas/ListArtifactLabel.js +4 -0
  61. package/dist/har-service/src/services/schemas/{ListRepository.d.ts → ListRegistry.d.ts} +5 -5
  62. package/dist/har-service/src/services/schemas/Registry.d.ts +19 -0
  63. package/dist/har-service/src/services/schemas/RegistryConfig.d.ts +6 -0
  64. package/dist/har-service/src/services/schemas/RegistryMetadata.d.ts +18 -0
  65. package/dist/har-service/src/services/schemas/RegistryRequest.d.ts +13 -0
  66. package/dist/har-service/src/services/schemas/RegistryType.d.ts +4 -0
  67. package/dist/har-service/src/services/schemas/RegistryType.js +4 -0
  68. package/dist/har-service/src/services/schemas/{UpstreamProxyConfig.d.ts → UpstreamConfig.d.ts} +3 -3
  69. package/dist/har-service/src/services/schemas/VirtualConfig.d.ts +6 -0
  70. package/dist/har-service/src/services/schemas/VirtualConfig.js +4 -0
  71. package/package.json +1 -1
  72. package/dist/har-service/src/services/hooks/useCreateRepositoryMutation.d.ts +0 -27
  73. package/dist/har-service/src/services/hooks/useCreateRepositoryMutation.js +0 -14
  74. package/dist/har-service/src/services/hooks/useCreateUpstreamProxyMutation.d.ts +0 -27
  75. package/dist/har-service/src/services/hooks/useCreateUpstreamProxyMutation.js +0 -14
  76. package/dist/har-service/src/services/hooks/useDeleteRepositoryMutation.d.ts +0 -28
  77. package/dist/har-service/src/services/hooks/useDeleteRepositoryMutation.js +0 -14
  78. package/dist/har-service/src/services/hooks/useDeleteUpstreamProxyMutation.d.ts +0 -28
  79. package/dist/har-service/src/services/hooks/useDeleteUpstreamProxyMutation.js +0 -14
  80. package/dist/har-service/src/services/hooks/useGetAllRepositoriesQuery.d.ts +0 -31
  81. package/dist/har-service/src/services/hooks/useGetAllRepositoriesQuery.js +0 -14
  82. package/dist/har-service/src/services/hooks/useGetRepositoryQuery.d.ts +0 -28
  83. package/dist/har-service/src/services/hooks/useGetRepositoryQuery.js +0 -14
  84. package/dist/har-service/src/services/hooks/useGetUpstreamProxyQuery.d.ts +0 -28
  85. package/dist/har-service/src/services/hooks/useGetUpstreamProxyQuery.js +0 -14
  86. package/dist/har-service/src/services/hooks/useModifyRepositoryMutation.d.ts +0 -32
  87. package/dist/har-service/src/services/hooks/useModifyRepositoryMutation.js +0 -14
  88. package/dist/har-service/src/services/hooks/useModifyUpstreamProxyMutation.d.ts +0 -32
  89. package/dist/har-service/src/services/hooks/useModifyUpstreamProxyMutation.js +0 -14
  90. package/dist/har-service/src/services/requestBodies/RepositoryRequestRequestBody.d.ts +0 -2
  91. package/dist/har-service/src/services/requestBodies/UpstreamProxyRequestRequestBody.d.ts +0 -2
  92. package/dist/har-service/src/services/responses/ListRepositoryResponseResponse.d.ts +0 -6
  93. package/dist/har-service/src/services/responses/RepositoryResponseResponse.d.ts +0 -6
  94. package/dist/har-service/src/services/responses/UpstreamProxyResponseResponse.d.ts +0 -6
  95. package/dist/har-service/src/services/schemas/Label.d.ts +0 -6
  96. package/dist/har-service/src/services/schemas/Repository.d.ts +0 -20
  97. package/dist/har-service/src/services/schemas/RepositoryConfig.d.ts +0 -8
  98. package/dist/har-service/src/services/schemas/RepositoryMetadata.d.ts +0 -18
  99. package/dist/har-service/src/services/schemas/RepositoryRequest.d.ts +0 -14
  100. package/dist/har-service/src/services/schemas/Type.d.ts +0 -4
  101. package/dist/har-service/src/services/schemas/UpstreamProxy.d.ts +0 -15
  102. package/dist/har-service/src/services/schemas/UpstreamProxyRequest.d.ts +0 -10
  103. /package/dist/har-service/src/services/requestBodies/{RepositoryRequestRequestBody.js → ArtifactLabelRequestRequestBody.js} +0 -0
  104. /package/dist/har-service/src/services/requestBodies/{UpstreamProxyRequestRequestBody.js → RegistryRequestRequestBody.js} +0 -0
  105. /package/dist/har-service/src/services/responses/{ListRepositoryResponseResponse.js → ArtifactLabelResponseResponse.js} +0 -0
  106. /package/dist/har-service/src/services/responses/{RepositoryResponseResponse.js → ArtifactStatsResponseResponse.js} +0 -0
  107. /package/dist/har-service/src/services/responses/{UpstreamProxyResponseResponse.js → ListArtifactLabelResponseResponse.js} +0 -0
  108. /package/dist/har-service/src/services/{schemas/ListRepository.js → responses/ListRegistryResponseResponse.js} +0 -0
  109. /package/dist/har-service/src/services/{schemas/Repository.js → responses/RegistryResponseResponse.js} +0 -0
  110. /package/dist/har-service/src/services/schemas/{Label.js → ArtifactLabelRequest.js} +0 -0
  111. /package/dist/har-service/src/services/schemas/{Type.js → ArtifactStats.js} +0 -0
  112. /package/dist/har-service/src/services/schemas/{RepositoryConfig.js → ListRegistry.js} +0 -0
  113. /package/dist/har-service/src/services/schemas/{RepositoryMetadata.js → Registry.js} +0 -0
  114. /package/dist/har-service/src/services/schemas/{RepositoryRequest.js → RegistryConfig.js} +0 -0
  115. /package/dist/har-service/src/services/schemas/{UpstreamProxy.js → RegistryMetadata.js} +0 -0
  116. /package/dist/har-service/src/services/schemas/{UpstreamProxyConfig.js → RegistryRequest.js} +0 -0
  117. /package/dist/har-service/src/services/schemas/{UpstreamProxyRequest.js → UpstreamConfig.js} +0 -0
@@ -4,11 +4,17 @@
4
4
  import { useQuery } from '@tanstack/react-query';
5
5
  import { fetcher } from '../../../../fetcher/index.js';
6
6
  export function getDockerArtifactManifest(props) {
7
- return fetcher(Object.assign({ url: `/artifacts/versions/docker/manifest`, method: 'GET' }, props));
7
+ return fetcher(Object.assign({ url: `/registry/${props.registry_ref}/artifact/${props.artifact}/version/${props.version}/docker/manifest`, method: 'GET' }, props));
8
8
  }
9
9
  /**
10
10
  * Get Docker Artifact Manifest
11
11
  */
12
12
  export function useGetDockerArtifactManifestQuery(props, options) {
13
- return useQuery(['GetDockerArtifactManifest', props.queryParams], ({ signal }) => getDockerArtifactManifest(Object.assign(Object.assign({}, props), { signal })), options);
13
+ return useQuery([
14
+ 'GetDockerArtifactManifest',
15
+ props.registry_ref,
16
+ props.artifact,
17
+ props.version,
18
+ props.queryParams,
19
+ ], ({ signal }) => getDockerArtifactManifest(Object.assign(Object.assign({}, props), { signal })), options);
14
20
  }
@@ -6,18 +6,14 @@ import type { NotFoundResponse } from '../responses/NotFoundResponse';
6
6
  import type { InternalServerErrorResponse } from '../responses/InternalServerErrorResponse';
7
7
  import type { ResponseWithPagination } from '../helpers';
8
8
  import { FetcherOptions } from '../../../../fetcher/index.js';
9
- export interface GetDockerArtifactManifestsQueryQueryParams {
10
- repokey?: string;
9
+ export interface GetDockerArtifactManifestsQueryPathParams {
10
+ registry_ref: string;
11
11
  artifact: string;
12
12
  version: string;
13
13
  }
14
- export interface GetDockerArtifactManifestsQueryHeaderParams {
15
- 'Harness-Account'?: string;
16
- }
17
14
  export type GetDockerArtifactManifestsOkResponse = ResponseWithPagination<DockerManifestsResponseResponse>;
18
15
  export type GetDockerArtifactManifestsErrorResponse = UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
19
- export interface GetDockerArtifactManifestsProps extends Omit<FetcherOptions<GetDockerArtifactManifestsQueryQueryParams, unknown, GetDockerArtifactManifestsQueryHeaderParams>, 'url'> {
20
- queryParams: GetDockerArtifactManifestsQueryQueryParams;
16
+ export interface GetDockerArtifactManifestsProps extends GetDockerArtifactManifestsQueryPathParams, Omit<FetcherOptions<unknown, unknown>, 'url'> {
21
17
  }
22
18
  export declare function getDockerArtifactManifests(props: GetDockerArtifactManifestsProps): Promise<GetDockerArtifactManifestsOkResponse>;
23
19
  /**
@@ -4,11 +4,11 @@
4
4
  import { useQuery } from '@tanstack/react-query';
5
5
  import { fetcher } from '../../../../fetcher/index.js';
6
6
  export function getDockerArtifactManifests(props) {
7
- return fetcher(Object.assign({ url: `/artifacts/versions/docker/manifests`, method: 'GET' }, props));
7
+ return fetcher(Object.assign({ url: `/registry/${props.registry_ref}/artifact/${props.artifact}/version/${props.version}/docker/manifests`, method: 'GET' }, props));
8
8
  }
9
9
  /**
10
10
  * Get Docker Artifact Manifests
11
11
  */
12
12
  export function useGetDockerArtifactManifestsQuery(props, options) {
13
- return useQuery(['GetDockerArtifactManifests', props.queryParams], ({ signal }) => getDockerArtifactManifests(Object.assign(Object.assign({}, props), { signal })), options);
13
+ return useQuery(['GetDockerArtifactManifests', props.registry_ref, props.artifact, props.version], ({ signal }) => getDockerArtifactManifests(Object.assign(Object.assign({}, props), { signal })), options);
14
14
  }
@@ -6,18 +6,14 @@ import type { NotFoundResponse } from '../responses/NotFoundResponse';
6
6
  import type { InternalServerErrorResponse } from '../responses/InternalServerErrorResponse';
7
7
  import type { ResponseWithPagination } from '../helpers';
8
8
  import { FetcherOptions } from '../../../../fetcher/index.js';
9
- export interface GetHelmArtifactDetailsQueryQueryParams {
10
- repokey?: string;
9
+ export interface GetHelmArtifactDetailsQueryPathParams {
10
+ registry_ref: string;
11
11
  artifact: string;
12
12
  version: string;
13
13
  }
14
- export interface GetHelmArtifactDetailsQueryHeaderParams {
15
- 'Harness-Account'?: string;
16
- }
17
14
  export type GetHelmArtifactDetailsOkResponse = ResponseWithPagination<HelmArtifactDetailResponseResponse>;
18
15
  export type GetHelmArtifactDetailsErrorResponse = UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
19
- export interface GetHelmArtifactDetailsProps extends Omit<FetcherOptions<GetHelmArtifactDetailsQueryQueryParams, unknown, GetHelmArtifactDetailsQueryHeaderParams>, 'url'> {
20
- queryParams: GetHelmArtifactDetailsQueryQueryParams;
16
+ export interface GetHelmArtifactDetailsProps extends GetHelmArtifactDetailsQueryPathParams, Omit<FetcherOptions<unknown, unknown>, 'url'> {
21
17
  }
22
18
  export declare function getHelmArtifactDetails(props: GetHelmArtifactDetailsProps): Promise<GetHelmArtifactDetailsOkResponse>;
23
19
  /**
@@ -4,11 +4,11 @@
4
4
  import { useQuery } from '@tanstack/react-query';
5
5
  import { fetcher } from '../../../../fetcher/index.js';
6
6
  export function getHelmArtifactDetails(props) {
7
- return fetcher(Object.assign({ url: `/artifacts/versions/helm/detail`, method: 'GET' }, props));
7
+ return fetcher(Object.assign({ url: `/registry/${props.registry_ref}/artifact/${props.artifact}/version/${props.version}/helm/details`, method: 'GET' }, props));
8
8
  }
9
9
  /**
10
10
  * Get Helm Artifact Details
11
11
  */
12
12
  export function useGetHelmArtifactDetailsQuery(props, options) {
13
- return useQuery(['GetHelmArtifactDetails', props.queryParams], ({ signal }) => getHelmArtifactDetails(Object.assign(Object.assign({}, props), { signal })), options);
13
+ return useQuery(['GetHelmArtifactDetails', props.registry_ref, props.artifact, props.version], ({ signal }) => getHelmArtifactDetails(Object.assign(Object.assign({}, props), { signal })), options);
14
14
  }
@@ -6,18 +6,14 @@ import type { NotFoundResponse } from '../responses/NotFoundResponse';
6
6
  import type { InternalServerErrorResponse } from '../responses/InternalServerErrorResponse';
7
7
  import type { ResponseWithPagination } from '../helpers';
8
8
  import { FetcherOptions } from '../../../../fetcher/index.js';
9
- export interface GetHelmArtifactManifestQueryQueryParams {
10
- repokey?: string;
9
+ export interface GetHelmArtifactManifestQueryPathParams {
10
+ registry_ref: string;
11
11
  artifact: string;
12
12
  version: string;
13
13
  }
14
- export interface GetHelmArtifactManifestQueryHeaderParams {
15
- 'Harness-Account'?: string;
16
- }
17
14
  export type GetHelmArtifactManifestOkResponse = ResponseWithPagination<HelmArtifactManifestResponseResponse>;
18
15
  export type GetHelmArtifactManifestErrorResponse = UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
19
- export interface GetHelmArtifactManifestProps extends Omit<FetcherOptions<GetHelmArtifactManifestQueryQueryParams, unknown, GetHelmArtifactManifestQueryHeaderParams>, 'url'> {
20
- queryParams: GetHelmArtifactManifestQueryQueryParams;
16
+ export interface GetHelmArtifactManifestProps extends GetHelmArtifactManifestQueryPathParams, Omit<FetcherOptions<unknown, unknown>, 'url'> {
21
17
  }
22
18
  export declare function getHelmArtifactManifest(props: GetHelmArtifactManifestProps): Promise<GetHelmArtifactManifestOkResponse>;
23
19
  /**
@@ -4,11 +4,11 @@
4
4
  import { useQuery } from '@tanstack/react-query';
5
5
  import { fetcher } from '../../../../fetcher/index.js';
6
6
  export function getHelmArtifactManifest(props) {
7
- return fetcher(Object.assign({ url: `/artifacts/versions/helm/manifest`, method: 'GET' }, props));
7
+ return fetcher(Object.assign({ url: `/registry/${props.registry_ref}/artifact/${props.artifact}/version/${props.version}/helm/manifest`, method: 'GET' }, props));
8
8
  }
9
9
  /**
10
10
  * Get Helm Artifact Manifest
11
11
  */
12
12
  export function useGetHelmArtifactManifestQuery(props, options) {
13
- return useQuery(['GetHelmArtifactManifest', props.queryParams], ({ signal }) => getHelmArtifactManifest(Object.assign(Object.assign({}, props), { signal })), options);
13
+ return useQuery(['GetHelmArtifactManifest', props.registry_ref, props.artifact, props.version], ({ signal }) => getHelmArtifactManifest(Object.assign(Object.assign({}, props), { signal })), options);
14
14
  }
@@ -0,0 +1,20 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { RegistryResponseResponse } from '../responses/RegistryResponseResponse';
3
+ import type { UnauthenticatedResponse } from '../responses/UnauthenticatedResponse';
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 GetRegistryQueryPathParams {
10
+ registry_ref: string;
11
+ }
12
+ export type GetRegistryOkResponse = ResponseWithPagination<RegistryResponseResponse>;
13
+ export type GetRegistryErrorResponse = UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
14
+ export interface GetRegistryProps extends GetRegistryQueryPathParams, Omit<FetcherOptions<unknown, unknown>, 'url'> {
15
+ }
16
+ export declare function getRegistry(props: GetRegistryProps): Promise<GetRegistryOkResponse>;
17
+ /**
18
+ * Returns Registry Details in the account for the given key
19
+ */
20
+ export declare function useGetRegistryQuery(props: GetRegistryProps, options?: Omit<UseQueryOptions<GetRegistryOkResponse, GetRegistryErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetRegistryOkResponse, import("..").Error>;
@@ -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 getRegistry(props) {
7
+ return fetcher(Object.assign({ url: `/registry/${props.registry_ref}`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Returns Registry Details in the account for the given key
11
+ */
12
+ export function useGetRegistryQuery(props, options) {
13
+ return useQuery(['GetRegistry', props.registry_ref], ({ signal }) => getRegistry(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,34 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ListArtifactLabelResponseResponse } from '../responses/ListArtifactLabelResponseResponse';
3
+ import type { UnauthenticatedResponse } from '../responses/UnauthenticatedResponse';
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 ListArtifactLabelsQueryPathParams {
10
+ registry_ref: string;
11
+ }
12
+ export interface ListArtifactLabelsQueryQueryParams {
13
+ /**
14
+ * @format int32
15
+ * @default 1
16
+ */
17
+ page?: number;
18
+ /**
19
+ * @format int32
20
+ * @default 20
21
+ */
22
+ size?: number;
23
+ search_term?: string;
24
+ }
25
+ export type ListArtifactLabelsOkResponse = ResponseWithPagination<ListArtifactLabelResponseResponse>;
26
+ export type ListArtifactLabelsErrorResponse = UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
27
+ export interface ListArtifactLabelsProps extends ListArtifactLabelsQueryPathParams, Omit<FetcherOptions<ListArtifactLabelsQueryQueryParams, unknown>, 'url'> {
28
+ queryParams: ListArtifactLabelsQueryQueryParams;
29
+ }
30
+ export declare function listArtifactLabels(props: ListArtifactLabelsProps): Promise<ListArtifactLabelsOkResponse>;
31
+ /**
32
+ * List Artifact Labels.
33
+ */
34
+ export declare function useListArtifactLabelsQuery(props: ListArtifactLabelsProps, options?: Omit<UseQueryOptions<ListArtifactLabelsOkResponse, ListArtifactLabelsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListArtifactLabelsOkResponse, import("..").Error>;
@@ -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 listArtifactLabels(props) {
7
+ return fetcher(Object.assign({ url: `/registry/${props.registry_ref}/artifact/labels`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * List Artifact Labels.
11
+ */
12
+ export function useListArtifactLabelsQuery(props, options) {
13
+ return useQuery(['ListArtifactLabels', props.registry_ref, props.queryParams], ({ signal }) => listArtifactLabels(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,24 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { RegistryResponseResponse } from '../responses/RegistryResponseResponse';
3
+ import type { BadRequestResponse } from '../responses/BadRequestResponse';
4
+ import type { UnauthenticatedResponse } from '../responses/UnauthenticatedResponse';
5
+ import type { UnauthorizedResponse } from '../responses/UnauthorizedResponse';
6
+ import type { NotFoundResponse } from '../responses/NotFoundResponse';
7
+ import type { InternalServerErrorResponse } from '../responses/InternalServerErrorResponse';
8
+ import type { RegistryRequestRequestBody } from '../requestBodies/RegistryRequestRequestBody';
9
+ import type { ResponseWithPagination } from '../helpers';
10
+ import { FetcherOptions } from '../../../../fetcher/index.js';
11
+ export interface ModifyRegistryMutationPathParams {
12
+ registry_ref: string;
13
+ }
14
+ export type ModifyRegistryRequestBody = RegistryRequestRequestBody;
15
+ export type ModifyRegistryOkResponse = ResponseWithPagination<RegistryResponseResponse>;
16
+ export type ModifyRegistryErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
17
+ export interface ModifyRegistryProps extends ModifyRegistryMutationPathParams, Omit<FetcherOptions<unknown, ModifyRegistryRequestBody>, 'url'> {
18
+ body: ModifyRegistryRequestBody;
19
+ }
20
+ export declare function modifyRegistry(props: ModifyRegistryProps): Promise<ModifyRegistryOkResponse>;
21
+ /**
22
+ * Updates a Registry in the account for the given key
23
+ */
24
+ export declare function useModifyRegistryMutation(options?: Omit<UseMutationOptions<ModifyRegistryOkResponse, ModifyRegistryErrorResponse, ModifyRegistryProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<ModifyRegistryOkResponse, import("..").Error, ModifyRegistryProps, unknown>;
@@ -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 { useMutation } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../fetcher/index.js';
6
+ export function modifyRegistry(props) {
7
+ return fetcher(Object.assign({ url: `/registry/${props.registry_ref}`, method: 'PUT' }, props));
8
+ }
9
+ /**
10
+ * Updates a Registry in the account for the given key
11
+ */
12
+ export function useModifyRegistryMutation(options) {
13
+ return useMutation((mutateProps) => modifyRegistry(mutateProps), options);
14
+ }
@@ -0,0 +1,24 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { ArtifactLabelResponseResponse } from '../responses/ArtifactLabelResponseResponse';
3
+ import type { UnauthenticatedResponse } from '../responses/UnauthenticatedResponse';
4
+ import type { UnauthorizedResponse } from '../responses/UnauthorizedResponse';
5
+ import type { NotFoundResponse } from '../responses/NotFoundResponse';
6
+ import type { InternalServerErrorResponse } from '../responses/InternalServerErrorResponse';
7
+ import type { ArtifactLabelRequestRequestBody } from '../requestBodies/ArtifactLabelRequestRequestBody';
8
+ import type { ResponseWithPagination } from '../helpers';
9
+ import { FetcherOptions } from '../../../../fetcher/index.js';
10
+ export interface UpdateArtifactLabelsMutationPathParams {
11
+ registry_ref: string;
12
+ artifact: string;
13
+ }
14
+ export type UpdateArtifactLabelsRequestBody = ArtifactLabelRequestRequestBody;
15
+ export type UpdateArtifactLabelsOkResponse = ResponseWithPagination<ArtifactLabelResponseResponse>;
16
+ export type UpdateArtifactLabelsErrorResponse = UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
17
+ export interface UpdateArtifactLabelsProps extends UpdateArtifactLabelsMutationPathParams, Omit<FetcherOptions<unknown, UpdateArtifactLabelsRequestBody>, 'url'> {
18
+ body: UpdateArtifactLabelsRequestBody;
19
+ }
20
+ export declare function updateArtifactLabels(props: UpdateArtifactLabelsProps): Promise<UpdateArtifactLabelsOkResponse>;
21
+ /**
22
+ * Update Artifact Labels.
23
+ */
24
+ export declare function useUpdateArtifactLabelsMutation(options?: Omit<UseMutationOptions<UpdateArtifactLabelsOkResponse, UpdateArtifactLabelsErrorResponse, UpdateArtifactLabelsProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UpdateArtifactLabelsOkResponse, import("..").Error, UpdateArtifactLabelsProps, unknown>;
@@ -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 { useMutation } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../fetcher/index.js';
6
+ export function updateArtifactLabels(props) {
7
+ return fetcher(Object.assign({ url: `/registry/${props.registry_ref}/artifact/${props.artifact}/labels`, method: 'PUT' }, props));
8
+ }
9
+ /**
10
+ * Update Artifact Labels.
11
+ */
12
+ export function useUpdateArtifactLabelsMutation(options) {
13
+ return useMutation((mutateProps) => updateArtifactLabels(mutateProps), options);
14
+ }
@@ -1,46 +1,50 @@
1
1
  export type { GetPathParamsType, ResponseWithPagination } from './helpers';
2
- export type { CreateRepositoryErrorResponse, CreateRepositoryMutationQueryParams, CreateRepositoryOkResponse, CreateRepositoryProps, CreateRepositoryRequestBody, } from './hooks/useCreateRepositoryMutation';
3
- export { createRepository, useCreateRepositoryMutation } from './hooks/useCreateRepositoryMutation';
4
- export type { CreateUpstreamProxyErrorResponse, CreateUpstreamProxyMutationQueryParams, CreateUpstreamProxyOkResponse, CreateUpstreamProxyProps, CreateUpstreamProxyRequestBody, } from './hooks/useCreateUpstreamProxyMutation';
5
- export { createUpstreamProxy, useCreateUpstreamProxyMutation, } from './hooks/useCreateUpstreamProxyMutation';
6
- export type { DeleteRepositoryErrorResponse, DeleteRepositoryMutationPathParams, DeleteRepositoryMutationQueryParams, DeleteRepositoryOkResponse, DeleteRepositoryProps, } from './hooks/useDeleteRepositoryMutation';
7
- export { deleteRepository, useDeleteRepositoryMutation } from './hooks/useDeleteRepositoryMutation';
8
- export type { DeleteUpstreamProxyErrorResponse, DeleteUpstreamProxyMutationPathParams, DeleteUpstreamProxyMutationQueryParams, DeleteUpstreamProxyOkResponse, DeleteUpstreamProxyProps, } from './hooks/useDeleteUpstreamProxyMutation';
9
- export { deleteUpstreamProxy, useDeleteUpstreamProxyMutation, } from './hooks/useDeleteUpstreamProxyMutation';
10
- export type { GetAllArtifactVersionsErrorResponse, GetAllArtifactVersionsOkResponse, GetAllArtifactVersionsProps, GetAllArtifactVersionsQueryQueryParams, } from './hooks/useGetAllArtifactVersionsQuery';
2
+ export type { CreateRegistryErrorResponse, CreateRegistryMutationQueryParams, CreateRegistryOkResponse, CreateRegistryProps, CreateRegistryRequestBody, } from './hooks/useCreateRegistryMutation';
3
+ export { createRegistry, useCreateRegistryMutation } from './hooks/useCreateRegistryMutation';
4
+ export type { DeleteRegistryErrorResponse, DeleteRegistryMutationPathParams, DeleteRegistryOkResponse, DeleteRegistryProps, } from './hooks/useDeleteRegistryMutation';
5
+ export { deleteRegistry, useDeleteRegistryMutation } from './hooks/useDeleteRegistryMutation';
6
+ export type { GetAllArtifactVersionsErrorResponse, GetAllArtifactVersionsOkResponse, GetAllArtifactVersionsProps, GetAllArtifactVersionsQueryPathParams, GetAllArtifactVersionsQueryQueryParams, } from './hooks/useGetAllArtifactVersionsQuery';
11
7
  export { getAllArtifactVersions, useGetAllArtifactVersionsQuery, } from './hooks/useGetAllArtifactVersionsQuery';
12
- export type { GetAllArtifactsErrorResponse, GetAllArtifactsOkResponse, GetAllArtifactsProps, GetAllArtifactsQueryQueryParams, } from './hooks/useGetAllArtifactsQuery';
8
+ export type { GetAllArtifactsErrorResponse, GetAllArtifactsOkResponse, GetAllArtifactsProps, GetAllArtifactsQueryPathParams, GetAllArtifactsQueryQueryParams, } from './hooks/useGetAllArtifactsQuery';
13
9
  export { getAllArtifacts, useGetAllArtifactsQuery } from './hooks/useGetAllArtifactsQuery';
14
- export type { GetAllRepositoriesErrorResponse, GetAllRepositoriesOkResponse, GetAllRepositoriesProps, GetAllRepositoriesQueryQueryParams, } from './hooks/useGetAllRepositoriesQuery';
15
- export { getAllRepositories, useGetAllRepositoriesQuery } from './hooks/useGetAllRepositoriesQuery';
16
- export type { GetArtifactSummaryErrorResponse, GetArtifactSummaryOkResponse, GetArtifactSummaryProps, GetArtifactSummaryQueryQueryParams, } from './hooks/useGetArtifactSummaryQuery';
10
+ export type { GetAllRegistriesErrorResponse, GetAllRegistriesOkResponse, GetAllRegistriesProps, GetAllRegistriesQueryPathParams, GetAllRegistriesQueryQueryParams, } from './hooks/useGetAllRegistriesQuery';
11
+ export { getAllRegistries, useGetAllRegistriesQuery } from './hooks/useGetAllRegistriesQuery';
12
+ export type { GetArtifactStatsForRegistryErrorResponse, GetArtifactStatsForRegistryOkResponse, GetArtifactStatsForRegistryProps, GetArtifactStatsForRegistryQueryPathParams, GetArtifactStatsForRegistryQueryQueryParams, } from './hooks/useGetArtifactStatsForRegistryQuery';
13
+ export { getArtifactStatsForRegistry, useGetArtifactStatsForRegistryQuery, } from './hooks/useGetArtifactStatsForRegistryQuery';
14
+ export type { GetArtifactStatsForSpaceErrorResponse, GetArtifactStatsForSpaceOkResponse, GetArtifactStatsForSpaceProps, GetArtifactStatsForSpaceQueryPathParams, GetArtifactStatsForSpaceQueryQueryParams, } from './hooks/useGetArtifactStatsForSpaceQuery';
15
+ export { getArtifactStatsForSpace, useGetArtifactStatsForSpaceQuery, } from './hooks/useGetArtifactStatsForSpaceQuery';
16
+ export type { GetArtifactStatsErrorResponse, GetArtifactStatsOkResponse, GetArtifactStatsProps, GetArtifactStatsQueryPathParams, GetArtifactStatsQueryQueryParams, } from './hooks/useGetArtifactStatsQuery';
17
+ export { getArtifactStats, useGetArtifactStatsQuery } from './hooks/useGetArtifactStatsQuery';
18
+ export type { GetArtifactSummaryErrorResponse, GetArtifactSummaryOkResponse, GetArtifactSummaryProps, GetArtifactSummaryQueryPathParams, } from './hooks/useGetArtifactSummaryQuery';
17
19
  export { getArtifactSummary, useGetArtifactSummaryQuery } from './hooks/useGetArtifactSummaryQuery';
18
- export type { GetArtifactVersionSummaryErrorResponse, GetArtifactVersionSummaryOkResponse, GetArtifactVersionSummaryProps, GetArtifactVersionSummaryQueryQueryParams, } from './hooks/useGetArtifactVersionSummaryQuery';
20
+ export type { GetArtifactVersionSummaryErrorResponse, GetArtifactVersionSummaryOkResponse, GetArtifactVersionSummaryProps, GetArtifactVersionSummaryQueryPathParams, } from './hooks/useGetArtifactVersionSummaryQuery';
19
21
  export { getArtifactVersionSummary, useGetArtifactVersionSummaryQuery, } from './hooks/useGetArtifactVersionSummaryQuery';
20
- export type { GetClientSetupDetailsErrorResponse, GetClientSetupDetailsOkResponse, GetClientSetupDetailsProps, GetClientSetupDetailsQueryQueryParams, } from './hooks/useGetClientSetupDetailsQuery';
22
+ export type { GetClientSetupDetailsErrorResponse, GetClientSetupDetailsOkResponse, GetClientSetupDetailsProps, GetClientSetupDetailsQueryPathParams, } from './hooks/useGetClientSetupDetailsQuery';
21
23
  export { getClientSetupDetails, useGetClientSetupDetailsQuery, } from './hooks/useGetClientSetupDetailsQuery';
22
- export type { GetDockerArtifactDetailsErrorResponse, GetDockerArtifactDetailsOkResponse, GetDockerArtifactDetailsProps, GetDockerArtifactDetailsQueryQueryParams, } from './hooks/useGetDockerArtifactDetailsQuery';
24
+ export type { GetDockerArtifactDetailsErrorResponse, GetDockerArtifactDetailsOkResponse, GetDockerArtifactDetailsProps, GetDockerArtifactDetailsQueryPathParams, GetDockerArtifactDetailsQueryQueryParams, } from './hooks/useGetDockerArtifactDetailsQuery';
23
25
  export { getDockerArtifactDetails, useGetDockerArtifactDetailsQuery, } from './hooks/useGetDockerArtifactDetailsQuery';
24
- export type { GetDockerArtifactLayersErrorResponse, GetDockerArtifactLayersOkResponse, GetDockerArtifactLayersProps, GetDockerArtifactLayersQueryQueryParams, } from './hooks/useGetDockerArtifactLayersQuery';
26
+ export type { GetDockerArtifactLayersErrorResponse, GetDockerArtifactLayersOkResponse, GetDockerArtifactLayersProps, GetDockerArtifactLayersQueryPathParams, GetDockerArtifactLayersQueryQueryParams, } from './hooks/useGetDockerArtifactLayersQuery';
25
27
  export { getDockerArtifactLayers, useGetDockerArtifactLayersQuery, } from './hooks/useGetDockerArtifactLayersQuery';
26
- export type { GetDockerArtifactManifestErrorResponse, GetDockerArtifactManifestOkResponse, GetDockerArtifactManifestProps, GetDockerArtifactManifestQueryQueryParams, } from './hooks/useGetDockerArtifactManifestQuery';
28
+ export type { GetDockerArtifactManifestErrorResponse, GetDockerArtifactManifestOkResponse, GetDockerArtifactManifestProps, GetDockerArtifactManifestQueryPathParams, GetDockerArtifactManifestQueryQueryParams, } from './hooks/useGetDockerArtifactManifestQuery';
27
29
  export { getDockerArtifactManifest, useGetDockerArtifactManifestQuery, } from './hooks/useGetDockerArtifactManifestQuery';
28
- export type { GetDockerArtifactManifestsErrorResponse, GetDockerArtifactManifestsOkResponse, GetDockerArtifactManifestsProps, GetDockerArtifactManifestsQueryQueryParams, } from './hooks/useGetDockerArtifactManifestsQuery';
30
+ export type { GetDockerArtifactManifestsErrorResponse, GetDockerArtifactManifestsOkResponse, GetDockerArtifactManifestsProps, GetDockerArtifactManifestsQueryPathParams, } from './hooks/useGetDockerArtifactManifestsQuery';
29
31
  export { getDockerArtifactManifests, useGetDockerArtifactManifestsQuery, } from './hooks/useGetDockerArtifactManifestsQuery';
30
- export type { GetHelmArtifactDetailsErrorResponse, GetHelmArtifactDetailsOkResponse, GetHelmArtifactDetailsProps, GetHelmArtifactDetailsQueryQueryParams, } from './hooks/useGetHelmArtifactDetailsQuery';
32
+ export type { GetHelmArtifactDetailsErrorResponse, GetHelmArtifactDetailsOkResponse, GetHelmArtifactDetailsProps, GetHelmArtifactDetailsQueryPathParams, } from './hooks/useGetHelmArtifactDetailsQuery';
31
33
  export { getHelmArtifactDetails, useGetHelmArtifactDetailsQuery, } from './hooks/useGetHelmArtifactDetailsQuery';
32
- export type { GetHelmArtifactManifestErrorResponse, GetHelmArtifactManifestOkResponse, GetHelmArtifactManifestProps, GetHelmArtifactManifestQueryQueryParams, } from './hooks/useGetHelmArtifactManifestQuery';
34
+ export type { GetHelmArtifactManifestErrorResponse, GetHelmArtifactManifestOkResponse, GetHelmArtifactManifestProps, GetHelmArtifactManifestQueryPathParams, } from './hooks/useGetHelmArtifactManifestQuery';
33
35
  export { getHelmArtifactManifest, useGetHelmArtifactManifestQuery, } from './hooks/useGetHelmArtifactManifestQuery';
34
- export type { GetRepositoryErrorResponse, GetRepositoryOkResponse, GetRepositoryProps, GetRepositoryQueryPathParams, GetRepositoryQueryQueryParams, } from './hooks/useGetRepositoryQuery';
35
- export { getRepository, useGetRepositoryQuery } from './hooks/useGetRepositoryQuery';
36
- export type { GetUpstreamProxyErrorResponse, GetUpstreamProxyOkResponse, GetUpstreamProxyProps, GetUpstreamProxyQueryPathParams, GetUpstreamProxyQueryQueryParams, } from './hooks/useGetUpstreamProxyQuery';
37
- export { getUpstreamProxy, useGetUpstreamProxyQuery } from './hooks/useGetUpstreamProxyQuery';
38
- export type { ModifyRepositoryErrorResponse, ModifyRepositoryMutationPathParams, ModifyRepositoryMutationQueryParams, ModifyRepositoryOkResponse, ModifyRepositoryProps, ModifyRepositoryRequestBody, } from './hooks/useModifyRepositoryMutation';
39
- export { modifyRepository, useModifyRepositoryMutation } from './hooks/useModifyRepositoryMutation';
40
- export type { ModifyUpstreamProxyErrorResponse, ModifyUpstreamProxyMutationPathParams, ModifyUpstreamProxyMutationQueryParams, ModifyUpstreamProxyOkResponse, ModifyUpstreamProxyProps, ModifyUpstreamProxyRequestBody, } from './hooks/useModifyUpstreamProxyMutation';
41
- export { modifyUpstreamProxy, useModifyUpstreamProxyMutation, } from './hooks/useModifyUpstreamProxyMutation';
42
- export type { RepositoryRequestRequestBody } from './requestBodies/RepositoryRequestRequestBody';
43
- export type { UpstreamProxyRequestRequestBody } from './requestBodies/UpstreamProxyRequestRequestBody';
36
+ export type { GetRegistryErrorResponse, GetRegistryOkResponse, GetRegistryProps, GetRegistryQueryPathParams, } from './hooks/useGetRegistryQuery';
37
+ export { getRegistry, useGetRegistryQuery } from './hooks/useGetRegistryQuery';
38
+ export type { ListArtifactLabelsErrorResponse, ListArtifactLabelsOkResponse, ListArtifactLabelsProps, ListArtifactLabelsQueryPathParams, ListArtifactLabelsQueryQueryParams, } from './hooks/useListArtifactLabelsQuery';
39
+ export { listArtifactLabels, useListArtifactLabelsQuery } from './hooks/useListArtifactLabelsQuery';
40
+ export type { ModifyRegistryErrorResponse, ModifyRegistryMutationPathParams, ModifyRegistryOkResponse, ModifyRegistryProps, ModifyRegistryRequestBody, } from './hooks/useModifyRegistryMutation';
41
+ export { modifyRegistry, useModifyRegistryMutation } from './hooks/useModifyRegistryMutation';
42
+ export type { UpdateArtifactLabelsErrorResponse, UpdateArtifactLabelsMutationPathParams, UpdateArtifactLabelsOkResponse, UpdateArtifactLabelsProps, UpdateArtifactLabelsRequestBody, } from './hooks/useUpdateArtifactLabelsMutation';
43
+ export { updateArtifactLabels, useUpdateArtifactLabelsMutation, } from './hooks/useUpdateArtifactLabelsMutation';
44
+ export type { ArtifactLabelRequestRequestBody } from './requestBodies/ArtifactLabelRequestRequestBody';
45
+ export type { RegistryRequestRequestBody } from './requestBodies/RegistryRequestRequestBody';
46
+ export type { ArtifactLabelResponseResponse } from './responses/ArtifactLabelResponseResponse';
47
+ export type { ArtifactStatsResponseResponse } from './responses/ArtifactStatsResponseResponse';
44
48
  export type { ArtifactSummaryResponseResponse } from './responses/ArtifactSummaryResponseResponse';
45
49
  export type { ArtifactVersionSummaryResponseResponse } from './responses/ArtifactVersionSummaryResponseResponse';
46
50
  export type { BadRequestResponse } from './responses/BadRequestResponse';
@@ -52,17 +56,19 @@ export type { DockerManifestsResponseResponse } from './responses/DockerManifest
52
56
  export type { HelmArtifactDetailResponseResponse } from './responses/HelmArtifactDetailResponseResponse';
53
57
  export type { HelmArtifactManifestResponseResponse } from './responses/HelmArtifactManifestResponseResponse';
54
58
  export type { InternalServerErrorResponse } from './responses/InternalServerErrorResponse';
59
+ export type { ListArtifactLabelResponseResponse } from './responses/ListArtifactLabelResponseResponse';
55
60
  export type { ListArtifactResponseResponse } from './responses/ListArtifactResponseResponse';
56
61
  export type { ListArtifactVersionResponseResponse } from './responses/ListArtifactVersionResponseResponse';
57
- export type { ListRepositoryResponseResponse } from './responses/ListRepositoryResponseResponse';
62
+ export type { ListRegistryResponseResponse } from './responses/ListRegistryResponseResponse';
58
63
  export type { NotFoundResponse } from './responses/NotFoundResponse';
59
- export type { RepositoryResponseResponse } from './responses/RepositoryResponseResponse';
64
+ export type { RegistryResponseResponse } from './responses/RegistryResponseResponse';
60
65
  export type { SuccessResponse } from './responses/SuccessResponse';
61
66
  export type { UnauthenticatedResponse } from './responses/UnauthenticatedResponse';
62
67
  export type { UnauthorizedResponse } from './responses/UnauthorizedResponse';
63
- export type { UpstreamProxyResponseResponse } from './responses/UpstreamProxyResponseResponse';
64
68
  export type { Anonymous } from './schemas/Anonymous';
69
+ export type { ArtifactLabelRequest } from './schemas/ArtifactLabelRequest';
65
70
  export type { ArtifactMetadata } from './schemas/ArtifactMetadata';
71
+ export type { ArtifactStats } from './schemas/ArtifactStats';
66
72
  export type { ArtifactSummary } from './schemas/ArtifactSummary';
67
73
  export type { ArtifactVersionMetadata } from './schemas/ArtifactVersionMetadata';
68
74
  export type { ArtifactVersionSummary } from './schemas/ArtifactVersionSummary';
@@ -80,18 +86,17 @@ export type { DockerManifests } from './schemas/DockerManifests';
80
86
  export type { Error } from './schemas/Error';
81
87
  export type { HelmArtifactDetail } from './schemas/HelmArtifactDetail';
82
88
  export type { HelmArtifactManifest } from './schemas/HelmArtifactManifest';
83
- export type { Label } from './schemas/Label';
84
89
  export type { ListArtifact } from './schemas/ListArtifact';
90
+ export type { ListArtifactLabel } from './schemas/ListArtifactLabel';
85
91
  export type { ListArtifactVersion } from './schemas/ListArtifactVersion';
86
- export type { ListRepository } from './schemas/ListRepository';
92
+ export type { ListRegistry } from './schemas/ListRegistry';
87
93
  export type { PackageType } from './schemas/PackageType';
88
- export type { Repository } from './schemas/Repository';
89
- export type { RepositoryConfig } from './schemas/RepositoryConfig';
90
- export type { RepositoryMetadata } from './schemas/RepositoryMetadata';
91
- export type { RepositoryRequest } from './schemas/RepositoryRequest';
94
+ export type { Registry } from './schemas/Registry';
95
+ export type { RegistryConfig } from './schemas/RegistryConfig';
96
+ export type { RegistryMetadata } from './schemas/RegistryMetadata';
97
+ export type { RegistryRequest } from './schemas/RegistryRequest';
98
+ export type { RegistryType } from './schemas/RegistryType';
92
99
  export type { Status } from './schemas/Status';
93
- export type { Type } from './schemas/Type';
94
- export type { UpstreamProxy } from './schemas/UpstreamProxy';
95
- export type { UpstreamProxyConfig } from './schemas/UpstreamProxyConfig';
96
- export type { UpstreamProxyRequest } from './schemas/UpstreamProxyRequest';
100
+ export type { UpstreamConfig } from './schemas/UpstreamConfig';
97
101
  export type { UserPassword } from './schemas/UserPassword';
102
+ export type { VirtualConfig } from './schemas/VirtualConfig';
@@ -1,10 +1,11 @@
1
- export { createRepository, useCreateRepositoryMutation } from './hooks/useCreateRepositoryMutation';
2
- export { createUpstreamProxy, useCreateUpstreamProxyMutation, } from './hooks/useCreateUpstreamProxyMutation';
3
- export { deleteRepository, useDeleteRepositoryMutation } from './hooks/useDeleteRepositoryMutation';
4
- export { deleteUpstreamProxy, useDeleteUpstreamProxyMutation, } from './hooks/useDeleteUpstreamProxyMutation';
1
+ export { createRegistry, useCreateRegistryMutation } from './hooks/useCreateRegistryMutation';
2
+ export { deleteRegistry, useDeleteRegistryMutation } from './hooks/useDeleteRegistryMutation';
5
3
  export { getAllArtifactVersions, useGetAllArtifactVersionsQuery, } from './hooks/useGetAllArtifactVersionsQuery';
6
4
  export { getAllArtifacts, useGetAllArtifactsQuery } from './hooks/useGetAllArtifactsQuery';
7
- export { getAllRepositories, useGetAllRepositoriesQuery } from './hooks/useGetAllRepositoriesQuery';
5
+ export { getAllRegistries, useGetAllRegistriesQuery } from './hooks/useGetAllRegistriesQuery';
6
+ export { getArtifactStatsForRegistry, useGetArtifactStatsForRegistryQuery, } from './hooks/useGetArtifactStatsForRegistryQuery';
7
+ export { getArtifactStatsForSpace, useGetArtifactStatsForSpaceQuery, } from './hooks/useGetArtifactStatsForSpaceQuery';
8
+ export { getArtifactStats, useGetArtifactStatsQuery } from './hooks/useGetArtifactStatsQuery';
8
9
  export { getArtifactSummary, useGetArtifactSummaryQuery } from './hooks/useGetArtifactSummaryQuery';
9
10
  export { getArtifactVersionSummary, useGetArtifactVersionSummaryQuery, } from './hooks/useGetArtifactVersionSummaryQuery';
10
11
  export { getClientSetupDetails, useGetClientSetupDetailsQuery, } from './hooks/useGetClientSetupDetailsQuery';
@@ -14,7 +15,7 @@ export { getDockerArtifactManifest, useGetDockerArtifactManifestQuery, } from '.
14
15
  export { getDockerArtifactManifests, useGetDockerArtifactManifestsQuery, } from './hooks/useGetDockerArtifactManifestsQuery';
15
16
  export { getHelmArtifactDetails, useGetHelmArtifactDetailsQuery, } from './hooks/useGetHelmArtifactDetailsQuery';
16
17
  export { getHelmArtifactManifest, useGetHelmArtifactManifestQuery, } from './hooks/useGetHelmArtifactManifestQuery';
17
- export { getRepository, useGetRepositoryQuery } from './hooks/useGetRepositoryQuery';
18
- export { getUpstreamProxy, useGetUpstreamProxyQuery } from './hooks/useGetUpstreamProxyQuery';
19
- export { modifyRepository, useModifyRepositoryMutation } from './hooks/useModifyRepositoryMutation';
20
- export { modifyUpstreamProxy, useModifyUpstreamProxyMutation, } from './hooks/useModifyUpstreamProxyMutation';
18
+ export { getRegistry, useGetRegistryQuery } from './hooks/useGetRegistryQuery';
19
+ export { listArtifactLabels, useListArtifactLabelsQuery } from './hooks/useListArtifactLabelsQuery';
20
+ export { modifyRegistry, useModifyRegistryMutation } from './hooks/useModifyRegistryMutation';
21
+ export { updateArtifactLabels, useUpdateArtifactLabelsMutation, } from './hooks/useUpdateArtifactLabelsMutation';
@@ -0,0 +1,2 @@
1
+ import type { ArtifactLabelRequest } from '../schemas/ArtifactLabelRequest';
2
+ export type ArtifactLabelRequestRequestBody = ArtifactLabelRequest;
@@ -0,0 +1,2 @@
1
+ import type { RegistryRequest } from '../schemas/RegistryRequest';
2
+ export type RegistryRequestRequestBody = RegistryRequest;
@@ -0,0 +1,6 @@
1
+ import type { ArtifactSummary } from '../schemas/ArtifactSummary';
2
+ import type { Status } from '../schemas/Status';
3
+ export interface ArtifactLabelResponseResponse {
4
+ data: ArtifactSummary;
5
+ status: Status;
6
+ }
@@ -0,0 +1,6 @@
1
+ import type { ArtifactStats } from '../schemas/ArtifactStats';
2
+ import type { Status } from '../schemas/Status';
3
+ export interface ArtifactStatsResponseResponse {
4
+ data: ArtifactStats;
5
+ status: Status;
6
+ }
@@ -0,0 +1,6 @@
1
+ import type { ListArtifactLabel } from '../schemas/ListArtifactLabel';
2
+ import type { Status } from '../schemas/Status';
3
+ export interface ListArtifactLabelResponseResponse {
4
+ data: ListArtifactLabel;
5
+ status: Status;
6
+ }
@@ -0,0 +1,6 @@
1
+ import type { ListRegistry } from '../schemas/ListRegistry';
2
+ import type { Status } from '../schemas/Status';
3
+ export interface ListRegistryResponseResponse {
4
+ data: ListRegistry;
5
+ status: Status;
6
+ }
@@ -0,0 +1,6 @@
1
+ import type { Registry } from '../schemas/Registry';
2
+ import type { Status } from '../schemas/Status';
3
+ export interface RegistryResponseResponse {
4
+ data: Registry;
5
+ status: Status;
6
+ }
@@ -0,0 +1,3 @@
1
+ export interface ArtifactLabelRequest {
2
+ labels: string[];
3
+ }
@@ -8,6 +8,7 @@ export interface ArtifactMetadata {
8
8
  latestVersion: string;
9
9
  name: string;
10
10
  packageType?: PackageType;
11
- repoKey: string;
11
+ registryIdentifier: string;
12
+ registryPath: string;
12
13
  tags?: string[];
13
14
  }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Harness Artifact Stats
3
+ */
4
+ export interface ArtifactStats {
5
+ downloadCount?: number;
6
+ downloadSize?: number;
7
+ totalStorageSize?: number;
8
+ uploadSize?: number;
9
+ }
@@ -10,5 +10,7 @@ export interface ArtifactVersionMetadata {
10
10
  name: string;
11
11
  packageType?: PackageType;
12
12
  pullCommand?: string;
13
+ registryIdentifier: string;
14
+ registryPath: string;
13
15
  size?: string;
14
16
  }
@@ -1,10 +1,9 @@
1
1
  /**
2
- * Cleanup Policy for Harness Artifact Repositories
2
+ * Cleanup Policy for Harness Artifact Registries
3
3
  */
4
4
  export interface CleanupPolicy {
5
- expire?: number;
6
- filePatterns?: {
7
- [key: string]: string;
8
- };
5
+ expireDays?: number;
9
6
  name?: string;
7
+ packagePrefix?: string[];
8
+ versionPrefix?: string[];
10
9
  }
@@ -10,7 +10,7 @@ export interface DockerArtifactDetail {
10
10
  modifiedAt?: string;
11
11
  packageType: PackageType;
12
12
  pullCommand?: string;
13
- repoPath: string;
13
+ registryPath: string;
14
14
  size?: string;
15
15
  url: string;
16
16
  version: string;