@harnessio/react-har-service-v2-client 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/dist/har-service-v2/src/services/hooks/useCopyMutation.d.ts +30 -0
  2. package/dist/har-service-v2/src/services/hooks/useCopyMutation.js +14 -0
  3. package/dist/har-service-v2/src/services/hooks/useGetFileQuery.d.ts +28 -0
  4. package/dist/har-service-v2/src/services/hooks/useGetFileQuery.js +14 -0
  5. package/dist/har-service-v2/src/services/hooks/useGetMetadataQuery.d.ts +5 -7
  6. package/dist/har-service-v2/src/services/hooks/useGetMetadataQuery.js +3 -3
  7. package/dist/har-service-v2/src/services/hooks/{useGetAllHarnessArtifactsQuery.d.ts → useListArtifactsQuery.d.ts} +9 -8
  8. package/dist/har-service-v2/src/services/hooks/{useGetAllHarnessArtifactsQuery.js → useListArtifactsQuery.js} +4 -4
  9. package/dist/har-service-v2/src/services/hooks/useListPackagesQuery.d.ts +44 -0
  10. package/dist/har-service-v2/src/services/hooks/useListPackagesQuery.js +14 -0
  11. package/dist/har-service-v2/src/services/hooks/{useGetAllRegistriesQuery.d.ts → useListRegistriesQuery.d.ts} +7 -7
  12. package/dist/har-service-v2/src/services/hooks/{useGetAllRegistriesQuery.js → useListRegistriesQuery.js} +3 -3
  13. package/dist/har-service-v2/src/services/hooks/useUpdateMetadataMutation.d.ts +2 -8
  14. package/dist/har-service-v2/src/services/hooks/useUpdateMetadataMutation.js +2 -2
  15. package/dist/har-service-v2/src/services/index.d.ts +18 -16
  16. package/dist/har-service-v2/src/services/index.js +5 -4
  17. package/dist/har-service-v2/src/services/responses/CopyResponseResponse.d.ts +4 -0
  18. package/dist/har-service-v2/src/services/responses/DownloadFileResponseResponse.d.ts +4 -0
  19. package/dist/har-service-v2/src/services/responses/DownloadFileResponseResponse.js +4 -0
  20. package/dist/har-service-v2/src/services/responses/ListPackageResponseResponse.d.ts +6 -0
  21. package/dist/har-service-v2/src/services/responses/RedirectResponse.d.ts +1 -0
  22. package/dist/har-service-v2/src/services/schemas/ArtifactMetadata.d.ts +5 -2
  23. package/dist/har-service-v2/src/services/schemas/{ListRegistryArtifact.d.ts → ListPackage.d.ts} +7 -7
  24. package/dist/har-service-v2/src/services/schemas/MetadataInput.d.ts +36 -2
  25. package/dist/har-service-v2/src/services/schemas/{RegistryArtifactMetadata.d.ts → PackageMetadata.d.ts} +4 -3
  26. package/package.json +1 -1
  27. package/dist/har-service-v2/src/services/hooks/useGetAllArtifactVersionsQuery.d.ts +0 -43
  28. package/dist/har-service-v2/src/services/hooks/useGetAllArtifactVersionsQuery.js +0 -14
  29. package/dist/har-service-v2/src/services/hooks/useGetAllArtifactsByRegistryQuery.d.ts +0 -42
  30. package/dist/har-service-v2/src/services/hooks/useGetAllArtifactsByRegistryQuery.js +0 -14
  31. package/dist/har-service-v2/src/services/responses/ListArtifactVersionResponseResponse.d.ts +0 -6
  32. package/dist/har-service-v2/src/services/responses/ListRegistryArtifactResponseResponse.d.ts +0 -6
  33. package/dist/har-service-v2/src/services/schemas/ArtifactVersionMetadata.d.ts +0 -32
  34. package/dist/har-service-v2/src/services/schemas/ListArtifactVersion.d.ts +0 -33
  35. package/dist/har-service-v2/src/services/schemas/RegistryArtifactMetadata.js +0 -1
  36. /package/dist/har-service-v2/src/services/responses/{ListArtifactVersionResponseResponse.js → CopyResponseResponse.js} +0 -0
  37. /package/dist/har-service-v2/src/services/responses/{ListRegistryArtifactResponseResponse.js → ListPackageResponseResponse.js} +0 -0
  38. /package/dist/har-service-v2/src/services/{schemas/ArtifactVersionMetadata.js → responses/RedirectResponse.js} +0 -0
  39. /package/dist/har-service-v2/src/services/schemas/{ListArtifactVersion.js → ListPackage.js} +0 -0
  40. /package/dist/har-service-v2/src/services/schemas/{ListRegistryArtifact.js → PackageMetadata.js} +0 -0
@@ -0,0 +1,30 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { CopyResponseResponse } from '../responses/CopyResponseResponse';
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 { ResponseWithPagination } from '../helpers';
9
+ import { FetcherOptions } from '../../../../fetcher/index.js';
10
+ export interface CopyMutationQueryParams {
11
+ account_identifier: string;
12
+ src_org_identifier?: string;
13
+ src_project_identifier?: string;
14
+ src_registry_identifier: string;
15
+ src_artifact?: string;
16
+ src_version?: string;
17
+ target_org_identifier?: string;
18
+ target_project_identifier?: string;
19
+ target_registry_identifier: string;
20
+ }
21
+ export type CopyOkResponse = ResponseWithPagination<CopyResponseResponse>;
22
+ export type CopyErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
23
+ export interface CopyProps extends Omit<FetcherOptions<CopyMutationQueryParams, unknown>, 'url'> {
24
+ queryParams: CopyMutationQueryParams;
25
+ }
26
+ export declare function copy(props: CopyProps): Promise<CopyOkResponse>;
27
+ /**
28
+ * Copy Artifact
29
+ */
30
+ export declare function useCopyMutation(options?: Omit<UseMutationOptions<CopyOkResponse, CopyErrorResponse, CopyProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CopyOkResponse, import("..").Error, CopyProps, 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 copy(props) {
7
+ return fetcher(Object.assign({ url: `/copy`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Copy Artifact
11
+ */
12
+ export function useCopyMutation(options) {
13
+ return useMutation((mutateProps) => copy(mutateProps), options);
14
+ }
@@ -0,0 +1,28 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { DownloadFileResponseResponse } from '../responses/DownloadFileResponseResponse';
3
+ import type { RedirectResponse } from '../responses/RedirectResponse';
4
+ import type { BadRequestResponse } from '../responses/BadRequestResponse';
5
+ import type { UnauthenticatedResponse } from '../responses/UnauthenticatedResponse';
6
+ import type { UnauthorizedResponse } from '../responses/UnauthorizedResponse';
7
+ import type { NotFoundResponse } from '../responses/NotFoundResponse';
8
+ import type { InternalServerErrorResponse } from '../responses/InternalServerErrorResponse';
9
+ import type { ResponseWithPagination } from '../helpers';
10
+ import { FetcherOptions } from '../../../../fetcher/index.js';
11
+ export interface GetFileQueryPathParams {
12
+ file_name: string;
13
+ }
14
+ export interface GetFileQueryQueryParams {
15
+ account_identifier: string;
16
+ registry_identifier: string;
17
+ path: string;
18
+ }
19
+ export type GetFileOkResponse = ResponseWithPagination<DownloadFileResponseResponse>;
20
+ export type GetFileErrorResponse = RedirectResponse | BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
21
+ export interface GetFileProps extends GetFileQueryPathParams, Omit<FetcherOptions<GetFileQueryQueryParams, unknown>, 'url'> {
22
+ queryParams: GetFileQueryQueryParams;
23
+ }
24
+ export declare function getFile(props: GetFileProps): Promise<GetFileOkResponse>;
25
+ /**
26
+ * Download file using file path
27
+ */
28
+ export declare function useGetFileQuery(props: GetFileProps, options?: Omit<UseQueryOptions<GetFileOkResponse, GetFileErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetFileOkResponse, 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 { useQuery } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../fetcher/index.js';
6
+ export function getFile(props) {
7
+ return fetcher(Object.assign({ url: `/files/${props.file_name}`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Download file using file path
11
+ */
12
+ export function useGetFileQuery(props, options) {
13
+ return useQuery(['GetFile', props.file_name, props.queryParams], ({ signal }) => getFile(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -7,24 +7,22 @@ import type { NotFoundResponse } from '../responses/NotFoundResponse';
7
7
  import type { InternalServerErrorResponse } from '../responses/InternalServerErrorResponse';
8
8
  import type { ResponseWithPagination } from '../helpers';
9
9
  import { FetcherOptions } from '../../../../fetcher/index.js';
10
- export interface GetMetadataQueryPathParams {
11
- path: string;
12
- }
13
10
  export interface GetMetadataQueryQueryParams {
14
11
  account_identifier: string;
15
- org_identifier?: string;
16
- project_identifier?: string;
17
12
  registry_identifier: string;
13
+ path?: string;
14
+ package?: string;
15
+ version?: string;
18
16
  }
19
17
  export type GetMetadataOkResponse = ResponseWithPagination<MetadataResponseResponse>;
20
18
  export type GetMetadataErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
21
- export interface GetMetadataProps extends GetMetadataQueryPathParams, Omit<FetcherOptions<GetMetadataQueryQueryParams, unknown>, 'url'> {
19
+ export interface GetMetadataProps extends Omit<FetcherOptions<GetMetadataQueryQueryParams, unknown>, 'url'> {
22
20
  queryParams: GetMetadataQueryQueryParams;
23
21
  }
24
22
  export declare function getMetadata(props: GetMetadataProps): Promise<GetMetadataOkResponse>;
25
23
  /**
26
24
  * Retrieves all metadata key-value pairs associated with a specific entity.
27
- * This endpoint returns metadata for artifacts, versions, or registry-level entities based on the provided path.
25
+ * This endpoint returns metadata for packages, versions, or registry-level entities based on the provided path.
28
26
  *
29
27
  */
30
28
  export declare function useGetMetadataQuery(props: GetMetadataProps, options?: Omit<UseQueryOptions<GetMetadataOkResponse, GetMetadataErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetMetadataOkResponse, import("..").Error>;
@@ -4,13 +4,13 @@
4
4
  import { useQuery } from '@tanstack/react-query';
5
5
  import { fetcher } from '../../../../fetcher/index.js';
6
6
  export function getMetadata(props) {
7
- return fetcher(Object.assign({ url: `/metadata/path/${props.path}`, method: 'GET' }, props));
7
+ return fetcher(Object.assign({ url: `/metadata`, method: 'GET' }, props));
8
8
  }
9
9
  /**
10
10
  * Retrieves all metadata key-value pairs associated with a specific entity.
11
- * This endpoint returns metadata for artifacts, versions, or registry-level entities based on the provided path.
11
+ * This endpoint returns metadata for packages, versions, or registry-level entities based on the provided path.
12
12
  *
13
13
  */
14
14
  export function useGetMetadataQuery(props, options) {
15
- return useQuery(['GetMetadata', props.path, props.queryParams], ({ signal }) => getMetadata(Object.assign(Object.assign({}, props), { signal })), options);
15
+ return useQuery(['GetMetadata', props.queryParams], ({ signal }) => getMetadata(Object.assign(Object.assign({}, props), { signal })), options);
16
16
  }
@@ -7,11 +7,12 @@ import type { NotFoundResponse } from '../responses/NotFoundResponse';
7
7
  import type { InternalServerErrorResponse } from '../responses/InternalServerErrorResponse';
8
8
  import type { ResponseWithPagination } from '../helpers';
9
9
  import { FetcherOptions } from '../../../../fetcher/index.js';
10
- export interface GetAllHarnessArtifactsQueryQueryParams {
10
+ export interface ListArtifactsQueryQueryParams {
11
11
  account_identifier: string;
12
12
  org_identifier?: string;
13
13
  project_identifier?: string;
14
14
  registry_identifier?: string[];
15
+ package?: string;
15
16
  metadata?: string[];
16
17
  /**
17
18
  * @format int64
@@ -31,13 +32,13 @@ export interface GetAllHarnessArtifactsQueryQueryParams {
31
32
  search_term?: string;
32
33
  package_type?: string[];
33
34
  }
34
- export type GetAllHarnessArtifactsOkResponse = ResponseWithPagination<ListArtifactResponseResponse>;
35
- export type GetAllHarnessArtifactsErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
36
- export interface GetAllHarnessArtifactsProps extends Omit<FetcherOptions<GetAllHarnessArtifactsQueryQueryParams, unknown>, 'url'> {
37
- queryParams: GetAllHarnessArtifactsQueryQueryParams;
35
+ export type ListArtifactsOkResponse = ResponseWithPagination<ListArtifactResponseResponse>;
36
+ export type ListArtifactsErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
37
+ export interface ListArtifactsProps extends Omit<FetcherOptions<ListArtifactsQueryQueryParams, unknown>, 'url'> {
38
+ queryParams: ListArtifactsQueryQueryParams;
38
39
  }
39
- export declare function getAllHarnessArtifacts(props: GetAllHarnessArtifactsProps): Promise<GetAllHarnessArtifactsOkResponse>;
40
+ export declare function listArtifacts(props: ListArtifactsProps): Promise<ListArtifactsOkResponse>;
40
41
  /**
41
- * Lists all the Harness Artifacts.
42
+ * Lists all the Artifacts.
42
43
  */
43
- export declare function useGetAllHarnessArtifactsQuery(props: GetAllHarnessArtifactsProps, options?: Omit<UseQueryOptions<GetAllHarnessArtifactsOkResponse, GetAllHarnessArtifactsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetAllHarnessArtifactsOkResponse, import("..").Error>;
44
+ export declare function useListArtifactsQuery(props: ListArtifactsProps, options?: Omit<UseQueryOptions<ListArtifactsOkResponse, ListArtifactsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListArtifactsOkResponse, import("..").Error>;
@@ -3,12 +3,12 @@
3
3
  // Please do not modify this code directly.
4
4
  import { useQuery } from '@tanstack/react-query';
5
5
  import { fetcher } from '../../../../fetcher/index.js';
6
- export function getAllHarnessArtifacts(props) {
6
+ export function listArtifacts(props) {
7
7
  return fetcher(Object.assign({ url: `/artifacts`, method: 'GET' }, props));
8
8
  }
9
9
  /**
10
- * Lists all the Harness Artifacts.
10
+ * Lists all the Artifacts.
11
11
  */
12
- export function useGetAllHarnessArtifactsQuery(props, options) {
13
- return useQuery(['GetAllHarnessArtifacts', props.queryParams], ({ signal }) => getAllHarnessArtifacts(Object.assign(Object.assign({}, props), { signal })), options);
12
+ export function useListArtifactsQuery(props, options) {
13
+ return useQuery(['ListArtifacts', props.queryParams], ({ signal }) => listArtifacts(Object.assign(Object.assign({}, props), { signal })), options);
14
14
  }
@@ -0,0 +1,44 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ListPackageResponseResponse } from '../responses/ListPackageResponseResponse';
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 { ResponseWithPagination } from '../helpers';
9
+ import { FetcherOptions } from '../../../../fetcher/index.js';
10
+ export interface ListPackagesQueryQueryParams {
11
+ account_identifier: string;
12
+ org_identifier?: string;
13
+ project_identifier?: string;
14
+ registry_identifier?: string[];
15
+ metadata?: string[];
16
+ /**
17
+ * @format int64
18
+ * @default 0
19
+ */
20
+ page?: number;
21
+ /**
22
+ * @format int64
23
+ * @default 20
24
+ */
25
+ size?: number;
26
+ /**
27
+ * @default "ASC"
28
+ */
29
+ sort_order?: 'ASC' | 'DESC';
30
+ sort_field?: string;
31
+ search_term?: string;
32
+ artifact_type?: 'dataset' | 'model';
33
+ package_type?: string[];
34
+ }
35
+ export type ListPackagesOkResponse = ResponseWithPagination<ListPackageResponseResponse>;
36
+ export type ListPackagesErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
37
+ export interface ListPackagesProps extends Omit<FetcherOptions<ListPackagesQueryQueryParams, unknown>, 'url'> {
38
+ queryParams: ListPackagesQueryQueryParams;
39
+ }
40
+ export declare function listPackages(props: ListPackagesProps): Promise<ListPackagesOkResponse>;
41
+ /**
42
+ * Lists all the Image/Package
43
+ */
44
+ export declare function useListPackagesQuery(props: ListPackagesProps, options?: Omit<UseQueryOptions<ListPackagesOkResponse, ListPackagesErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListPackagesOkResponse, 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 listPackages(props) {
7
+ return fetcher(Object.assign({ url: `/packages`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Lists all the Image/Package
11
+ */
12
+ export function useListPackagesQuery(props, options) {
13
+ return useQuery(['ListPackages', props.queryParams], ({ signal }) => listPackages(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -7,7 +7,7 @@ import type { NotFoundResponse } from '../responses/NotFoundResponse';
7
7
  import type { InternalServerErrorResponse } from '../responses/InternalServerErrorResponse';
8
8
  import type { ResponseWithPagination } from '../helpers';
9
9
  import { FetcherOptions } from '../../../../fetcher/index.js';
10
- export interface GetAllRegistriesQueryQueryParams {
10
+ export interface ListRegistriesQueryQueryParams {
11
11
  account_identifier: string;
12
12
  org_identifier?: string;
13
13
  project_identifier?: string;
@@ -32,13 +32,13 @@ export interface GetAllRegistriesQueryQueryParams {
32
32
  search_term?: string;
33
33
  scope?: 'ancestors' | 'descendants' | 'none';
34
34
  }
35
- export type GetAllRegistriesOkResponse = ResponseWithPagination<ListRegistryResponseResponse>;
36
- export type GetAllRegistriesErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
37
- export interface GetAllRegistriesProps extends Omit<FetcherOptions<GetAllRegistriesQueryQueryParams, unknown>, 'url'> {
38
- queryParams: GetAllRegistriesQueryQueryParams;
35
+ export type ListRegistriesOkResponse = ResponseWithPagination<ListRegistryResponseResponse>;
36
+ export type ListRegistriesErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
37
+ export interface ListRegistriesProps extends Omit<FetcherOptions<ListRegistriesQueryQueryParams, unknown>, 'url'> {
38
+ queryParams: ListRegistriesQueryQueryParams;
39
39
  }
40
- export declare function getAllRegistries(props: GetAllRegistriesProps): Promise<GetAllRegistriesOkResponse>;
40
+ export declare function listRegistries(props: ListRegistriesProps): Promise<ListRegistriesOkResponse>;
41
41
  /**
42
42
  * Lists all the registries.
43
43
  */
44
- export declare function useGetAllRegistriesQuery(props: GetAllRegistriesProps, options?: Omit<UseQueryOptions<GetAllRegistriesOkResponse, GetAllRegistriesErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetAllRegistriesOkResponse, import("..").Error>;
44
+ export declare function useListRegistriesQuery(props: ListRegistriesProps, options?: Omit<UseQueryOptions<ListRegistriesOkResponse, ListRegistriesErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListRegistriesOkResponse, import("..").Error>;
@@ -3,12 +3,12 @@
3
3
  // Please do not modify this code directly.
4
4
  import { useQuery } from '@tanstack/react-query';
5
5
  import { fetcher } from '../../../../fetcher/index.js';
6
- export function getAllRegistries(props) {
6
+ export function listRegistries(props) {
7
7
  return fetcher(Object.assign({ url: `/registries`, method: 'GET' }, props));
8
8
  }
9
9
  /**
10
10
  * Lists all the registries.
11
11
  */
12
- export function useGetAllRegistriesQuery(props, options) {
13
- return useQuery(['GetAllRegistries', props.queryParams], ({ signal }) => getAllRegistries(Object.assign(Object.assign({}, props), { signal })), options);
12
+ export function useListRegistriesQuery(props, options) {
13
+ return useQuery(['ListRegistries', props.queryParams], ({ signal }) => listRegistries(Object.assign(Object.assign({}, props), { signal })), options);
14
14
  }
@@ -8,26 +8,20 @@ import type { InternalServerErrorResponse } from '../responses/InternalServerErr
8
8
  import type { MetadataRequestRequestBody } from '../requestBodies/MetadataRequestRequestBody';
9
9
  import type { ResponseWithPagination } from '../helpers';
10
10
  import { FetcherOptions } from '../../../../fetcher/index.js';
11
- export interface UpdateMetadataMutationPathParams {
12
- path: string;
13
- }
14
11
  export interface UpdateMetadataMutationQueryParams {
15
12
  account_identifier: string;
16
- org_identifier?: string;
17
- project_identifier?: string;
18
- registry_identifier: string;
19
13
  }
20
14
  export type UpdateMetadataRequestBody = MetadataRequestRequestBody;
21
15
  export type UpdateMetadataOkResponse = ResponseWithPagination<MetadataResponseResponse>;
22
16
  export type UpdateMetadataErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
23
- export interface UpdateMetadataProps extends UpdateMetadataMutationPathParams, Omit<FetcherOptions<UpdateMetadataMutationQueryParams, UpdateMetadataRequestBody>, 'url'> {
17
+ export interface UpdateMetadataProps extends Omit<FetcherOptions<UpdateMetadataMutationQueryParams, UpdateMetadataRequestBody>, 'url'> {
24
18
  queryParams: UpdateMetadataMutationQueryParams;
25
19
  body: UpdateMetadataRequestBody;
26
20
  }
27
21
  export declare function updateMetadata(props: UpdateMetadataProps): Promise<UpdateMetadataOkResponse>;
28
22
  /**
29
23
  * Updates or creates metadata key-value pairs for a specific entity.
30
- * This endpoint allows you to add new metadata or modify existing metadata for artifacts, versions, or registry-level entities.
24
+ * This endpoint allows you to add new metadata or modify existing metadata for packages, versions, or registry-level entities.
31
25
  * The operation supports both creating new metadata entries and updating existing ones in a single request.
32
26
  *
33
27
  */
@@ -4,11 +4,11 @@
4
4
  import { useMutation } from '@tanstack/react-query';
5
5
  import { fetcher } from '../../../../fetcher/index.js';
6
6
  export function updateMetadata(props) {
7
- return fetcher(Object.assign({ url: `/metadata/path/${props.path}`, method: 'PUT' }, props));
7
+ return fetcher(Object.assign({ url: `/metadata`, method: 'PUT' }, props));
8
8
  }
9
9
  /**
10
10
  * Updates or creates metadata key-value pairs for a specific entity.
11
- * This endpoint allows you to add new metadata or modify existing metadata for artifacts, versions, or registry-level entities.
11
+ * This endpoint allows you to add new metadata or modify existing metadata for packages, versions, or registry-level entities.
12
12
  * The operation supports both creating new metadata entries and updating existing ones in a single request.
13
13
  *
14
14
  */
@@ -1,50 +1,52 @@
1
1
  export type { GetPathParamsType, ResponseWithPagination } from './helpers';
2
- export type { GetAllArtifactVersionsErrorResponse, GetAllArtifactVersionsOkResponse, GetAllArtifactVersionsProps, GetAllArtifactVersionsQueryPathParams, GetAllArtifactVersionsQueryQueryParams, } from './hooks/useGetAllArtifactVersionsQuery';
3
- export { getAllArtifactVersions, useGetAllArtifactVersionsQuery, } from './hooks/useGetAllArtifactVersionsQuery';
4
- export type { GetAllArtifactsByRegistryErrorResponse, GetAllArtifactsByRegistryOkResponse, GetAllArtifactsByRegistryProps, GetAllArtifactsByRegistryQueryPathParams, GetAllArtifactsByRegistryQueryQueryParams, } from './hooks/useGetAllArtifactsByRegistryQuery';
5
- export { getAllArtifactsByRegistry, useGetAllArtifactsByRegistryQuery, } from './hooks/useGetAllArtifactsByRegistryQuery';
6
- export type { GetAllHarnessArtifactsErrorResponse, GetAllHarnessArtifactsOkResponse, GetAllHarnessArtifactsProps, GetAllHarnessArtifactsQueryQueryParams, } from './hooks/useGetAllHarnessArtifactsQuery';
7
- export { getAllHarnessArtifacts, useGetAllHarnessArtifactsQuery, } from './hooks/useGetAllHarnessArtifactsQuery';
8
- export type { GetAllRegistriesErrorResponse, GetAllRegistriesOkResponse, GetAllRegistriesProps, GetAllRegistriesQueryQueryParams, } from './hooks/useGetAllRegistriesQuery';
9
- export { getAllRegistries, useGetAllRegistriesQuery } from './hooks/useGetAllRegistriesQuery';
2
+ export type { CopyErrorResponse, CopyMutationQueryParams, CopyOkResponse, CopyProps, } from './hooks/useCopyMutation';
3
+ export { copy, useCopyMutation } from './hooks/useCopyMutation';
4
+ export type { GetFileErrorResponse, GetFileOkResponse, GetFileProps, GetFileQueryPathParams, GetFileQueryQueryParams, } from './hooks/useGetFileQuery';
5
+ export { getFile, useGetFileQuery } from './hooks/useGetFileQuery';
10
6
  export type { GetMetadataKeysErrorResponse, GetMetadataKeysOkResponse, GetMetadataKeysProps, GetMetadataKeysQueryQueryParams, } from './hooks/useGetMetadataKeysQuery';
11
7
  export { getMetadataKeys, useGetMetadataKeysQuery } from './hooks/useGetMetadataKeysQuery';
12
- export type { GetMetadataErrorResponse, GetMetadataOkResponse, GetMetadataProps, GetMetadataQueryPathParams, GetMetadataQueryQueryParams, } from './hooks/useGetMetadataQuery';
8
+ export type { GetMetadataErrorResponse, GetMetadataOkResponse, GetMetadataProps, GetMetadataQueryQueryParams, } from './hooks/useGetMetadataQuery';
13
9
  export { getMetadata, useGetMetadataQuery } from './hooks/useGetMetadataQuery';
14
10
  export type { GetMetadataValuesErrorResponse, GetMetadataValuesOkResponse, GetMetadataValuesProps, GetMetadataValuesQueryQueryParams, } from './hooks/useGetMetadataValuesQuery';
15
11
  export { getMetadataValues, useGetMetadataValuesQuery } from './hooks/useGetMetadataValuesQuery';
16
- export type { UpdateMetadataErrorResponse, UpdateMetadataMutationPathParams, UpdateMetadataMutationQueryParams, UpdateMetadataOkResponse, UpdateMetadataProps, UpdateMetadataRequestBody, } from './hooks/useUpdateMetadataMutation';
12
+ export type { ListArtifactsErrorResponse, ListArtifactsOkResponse, ListArtifactsProps, ListArtifactsQueryQueryParams, } from './hooks/useListArtifactsQuery';
13
+ export { listArtifacts, useListArtifactsQuery } from './hooks/useListArtifactsQuery';
14
+ export type { ListPackagesErrorResponse, ListPackagesOkResponse, ListPackagesProps, ListPackagesQueryQueryParams, } from './hooks/useListPackagesQuery';
15
+ export { listPackages, useListPackagesQuery } from './hooks/useListPackagesQuery';
16
+ export type { ListRegistriesErrorResponse, ListRegistriesOkResponse, ListRegistriesProps, ListRegistriesQueryQueryParams, } from './hooks/useListRegistriesQuery';
17
+ export { listRegistries, useListRegistriesQuery } from './hooks/useListRegistriesQuery';
18
+ export type { UpdateMetadataErrorResponse, UpdateMetadataMutationQueryParams, UpdateMetadataOkResponse, UpdateMetadataProps, UpdateMetadataRequestBody, } from './hooks/useUpdateMetadataMutation';
17
19
  export { updateMetadata, useUpdateMetadataMutation } from './hooks/useUpdateMetadataMutation';
18
20
  export type { MetadataRequestRequestBody } from './requestBodies/MetadataRequestRequestBody';
19
21
  export type { BadRequestResponse } from './responses/BadRequestResponse';
22
+ export type { CopyResponseResponse } from './responses/CopyResponseResponse';
23
+ export type { DownloadFileResponseResponse } from './responses/DownloadFileResponseResponse';
20
24
  export type { InternalServerErrorResponse } from './responses/InternalServerErrorResponse';
21
25
  export type { ListArtifactResponseResponse } from './responses/ListArtifactResponseResponse';
22
- export type { ListArtifactVersionResponseResponse } from './responses/ListArtifactVersionResponseResponse';
23
- export type { ListRegistryArtifactResponseResponse } from './responses/ListRegistryArtifactResponseResponse';
26
+ export type { ListPackageResponseResponse } from './responses/ListPackageResponseResponse';
24
27
  export type { ListRegistryResponseResponse } from './responses/ListRegistryResponseResponse';
25
28
  export type { MetadataKeysResponseResponse } from './responses/MetadataKeysResponseResponse';
26
29
  export type { MetadataResponseResponse } from './responses/MetadataResponseResponse';
27
30
  export type { MetadataValuesResponseResponse } from './responses/MetadataValuesResponseResponse';
28
31
  export type { NotFoundResponse } from './responses/NotFoundResponse';
32
+ export type { RedirectResponse } from './responses/RedirectResponse';
29
33
  export type { UnauthenticatedResponse } from './responses/UnauthenticatedResponse';
30
34
  export type { UnauthorizedResponse } from './responses/UnauthorizedResponse';
31
35
  export type { ArtifactEntityMetadata } from './schemas/ArtifactEntityMetadata';
32
36
  export type { ArtifactMetadata } from './schemas/ArtifactMetadata';
33
37
  export type { ArtifactType } from './schemas/ArtifactType';
34
- export type { ArtifactVersionMetadata } from './schemas/ArtifactVersionMetadata';
35
38
  export type { DeploymentMetadata } from './schemas/DeploymentMetadata';
36
39
  export type { Error } from './schemas/Error';
37
40
  export type { ListArtifact } from './schemas/ListArtifact';
38
- export type { ListArtifactVersion } from './schemas/ListArtifactVersion';
41
+ export type { ListPackage } from './schemas/ListPackage';
39
42
  export type { ListRegistry } from './schemas/ListRegistry';
40
- export type { ListRegistryArtifact } from './schemas/ListRegistryArtifact';
41
43
  export type { MetadataInput } from './schemas/MetadataInput';
42
44
  export type { MetadataItemInput } from './schemas/MetadataItemInput';
43
45
  export type { MetadataItemOutput } from './schemas/MetadataItemOutput';
44
46
  export type { MetadataOutput } from './schemas/MetadataOutput';
45
47
  export type { MetadataType } from './schemas/MetadataType';
48
+ export type { PackageMetadata } from './schemas/PackageMetadata';
46
49
  export type { PackageType } from './schemas/PackageType';
47
- export type { RegistryArtifactMetadata } from './schemas/RegistryArtifactMetadata';
48
50
  export type { RegistryMetadata } from './schemas/RegistryMetadata';
49
51
  export type { RegistryType } from './schemas/RegistryType';
50
52
  export type { Status } from './schemas/Status';
@@ -1,8 +1,9 @@
1
- export { getAllArtifactVersions, useGetAllArtifactVersionsQuery, } from './hooks/useGetAllArtifactVersionsQuery';
2
- export { getAllArtifactsByRegistry, useGetAllArtifactsByRegistryQuery, } from './hooks/useGetAllArtifactsByRegistryQuery';
3
- export { getAllHarnessArtifacts, useGetAllHarnessArtifactsQuery, } from './hooks/useGetAllHarnessArtifactsQuery';
4
- export { getAllRegistries, useGetAllRegistriesQuery } from './hooks/useGetAllRegistriesQuery';
1
+ export { copy, useCopyMutation } from './hooks/useCopyMutation';
2
+ export { getFile, useGetFileQuery } from './hooks/useGetFileQuery';
5
3
  export { getMetadataKeys, useGetMetadataKeysQuery } from './hooks/useGetMetadataKeysQuery';
6
4
  export { getMetadata, useGetMetadataQuery } from './hooks/useGetMetadataQuery';
7
5
  export { getMetadataValues, useGetMetadataValuesQuery } from './hooks/useGetMetadataValuesQuery';
6
+ export { listArtifacts, useListArtifactsQuery } from './hooks/useListArtifactsQuery';
7
+ export { listPackages, useListPackagesQuery } from './hooks/useListPackagesQuery';
8
+ export { listRegistries, useListRegistriesQuery } from './hooks/useListRegistriesQuery';
8
9
  export { updateMetadata, useUpdateMetadataMutation } from './hooks/useUpdateMetadataMutation';
@@ -0,0 +1,4 @@
1
+ import type { Status } from '../schemas/Status';
2
+ export interface CopyResponseResponse {
3
+ status: Status;
4
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * @format binary
3
+ */
4
+ export type DownloadFileResponseResponse = string;
@@ -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,6 @@
1
+ import type { ListPackage } from '../schemas/ListPackage';
2
+ import type { Status } from '../schemas/Status';
3
+ export interface ListPackageResponseResponse {
4
+ data: ListPackage;
5
+ status: Status;
6
+ }
@@ -0,0 +1 @@
1
+ export type RedirectResponse = unknown;
@@ -8,17 +8,20 @@ import type { PackageType } from '../schemas/PackageType';
8
8
  export interface ArtifactMetadata {
9
9
  artifactType?: ArtifactType;
10
10
  deploymentMetadata?: DeploymentMetadata;
11
+ digestCount?: number;
11
12
  /**
12
13
  * @format int64
13
14
  */
14
15
  downloadsCount?: number;
16
+ fileCount?: number;
15
17
  isQuarantined?: boolean;
16
- lastModified?: string;
18
+ lastModified: string;
17
19
  metadata?: ArtifactEntityMetadata;
18
- name: string;
20
+ package: string;
19
21
  packageType: PackageType;
20
22
  pullCommand?: string;
21
23
  quarantineReason?: string;
22
24
  registryIdentifier: string;
25
+ size?: string;
23
26
  version: string;
24
27
  }
@@ -1,18 +1,18 @@
1
- import type { RegistryArtifactMetadata } from '../schemas/RegistryArtifactMetadata';
1
+ import type { PackageMetadata } from '../schemas/PackageMetadata';
2
2
  /**
3
- * A list of Artifacts
3
+ * A list of Package
4
4
  */
5
- export interface ListRegistryArtifact {
6
- /**
7
- * A list of Artifact
8
- */
9
- artifacts: RegistryArtifactMetadata[];
5
+ export interface ListPackage {
10
6
  /**
11
7
  * The total number of items
12
8
  * @format int64
13
9
  * @example 1
14
10
  */
15
11
  itemCount?: number;
12
+ /**
13
+ * A list of Package
14
+ */
15
+ packages: PackageMetadata[];
16
16
  /**
17
17
  * The total number of pages
18
18
  * @format int64
@@ -1,11 +1,45 @@
1
1
  import type { MetadataItemInput } from '../schemas/MetadataItemInput';
2
2
  /**
3
- * Request payload containing metadata items to add or update
4
- * @example {"metadata":[{"key":"environment","value":"production"},{"key":"team","value":"backend"}]}
3
+ * Request payload containing metadata items to add or update for a specific entity.
4
+ *
5
+ * **Priority Logic:**
6
+ * 1. If `path` is present, it takes highest priority and determines the target entity
7
+ * 2. If `path` is absent but `package` and `version` are provided, metadata is attached to the specific package version
8
+ * 3. If only `package` is provided (without `version`), metadata is attached to the package level
9
+ * 4. If neither `path`, `package`, nor `version` are provided, metadata is attached to the registry level
10
+ *
11
+ * @example {"registryIdentifier":"my-registry","path":"/path/to/entity","package":"my-package","version":"1.0.0","metadata":[{"key":"environment","value":"production"},{"key":"team","value":"backend"}]}
5
12
  */
6
13
  export interface MetadataInput {
7
14
  /**
8
15
  * Array of metadata key-value pairs
9
16
  */
10
17
  metadata: MetadataItemInput[];
18
+ /**
19
+ * Optional package name. Used when `path` is not provided.
20
+ *
21
+ * @example "my-package"
22
+ */
23
+ package?: string;
24
+ /**
25
+ * Optional hierarchical path to the specific entity within the registry.
26
+ * When provided, this takes highest priority for determining the metadata target.
27
+ * Examples: "/my-package/1.0.0" for a specific version, "/my-package" for an package
28
+ *
29
+ * @example "/path/to/entity"
30
+ */
31
+ path?: string;
32
+ /**
33
+ * The unique identifier of the registry where the metadata will be applied.
34
+ *
35
+ * @example "my-registry"
36
+ */
37
+ registryIdentifier: string;
38
+ /**
39
+ * Optional version identifier. Only used when `package` is also provided and `path` is absent.
40
+ * When both `package` and `version` are specified, metadata is attached to the specific package version.
41
+ *
42
+ * @example "1.0.0"
43
+ */
44
+ version?: string;
11
45
  }
@@ -1,9 +1,9 @@
1
1
  import type { ArtifactType } from '../schemas/ArtifactType';
2
2
  import type { PackageType } from '../schemas/PackageType';
3
3
  /**
4
- * Artifact Metadata
4
+ * Package Metadata
5
5
  */
6
- export interface RegistryArtifactMetadata {
6
+ export interface PackageMetadata {
7
7
  artifactType?: ArtifactType;
8
8
  /**
9
9
  * @format int64
@@ -13,7 +13,8 @@ export interface RegistryArtifactMetadata {
13
13
  isQuarantined?: boolean;
14
14
  lastModified?: string;
15
15
  latestVersion: string;
16
- name: string;
16
+ package: string;
17
17
  packageType: PackageType;
18
+ quarantineReason?: string;
18
19
  registryIdentifier: string;
19
20
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-har-service-v2-client",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "description": "Harness HAR Service V2 APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",
@@ -1,43 +0,0 @@
1
- import { UseQueryOptions } from '@tanstack/react-query';
2
- import type { ListArtifactVersionResponseResponse } from '../responses/ListArtifactVersionResponseResponse';
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 { ResponseWithPagination } from '../helpers';
9
- import { FetcherOptions } from '../../../../fetcher/index.js';
10
- export interface GetAllArtifactVersionsQueryPathParams {
11
- registry: string;
12
- artifact: string;
13
- }
14
- export interface GetAllArtifactVersionsQueryQueryParams {
15
- artifact_type?: 'dataset' | 'model';
16
- metadata?: string[];
17
- /**
18
- * @format int64
19
- * @default 0
20
- */
21
- page?: number;
22
- /**
23
- * @format int64
24
- * @default 20
25
- */
26
- size?: number;
27
- /**
28
- * @default "ASC"
29
- */
30
- sort_order?: 'ASC' | 'DESC';
31
- sort_field?: string;
32
- search_term?: string;
33
- }
34
- export type GetAllArtifactVersionsOkResponse = ResponseWithPagination<ListArtifactVersionResponseResponse>;
35
- export type GetAllArtifactVersionsErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
36
- export interface GetAllArtifactVersionsProps extends GetAllArtifactVersionsQueryPathParams, Omit<FetcherOptions<GetAllArtifactVersionsQueryQueryParams, unknown>, 'url'> {
37
- queryParams: GetAllArtifactVersionsQueryQueryParams;
38
- }
39
- export declare function getAllArtifactVersions(props: GetAllArtifactVersionsProps): Promise<GetAllArtifactVersionsOkResponse>;
40
- /**
41
- * Lists all the Artifact Versions.
42
- */
43
- export declare function useGetAllArtifactVersionsQuery(props: GetAllArtifactVersionsProps, options?: Omit<UseQueryOptions<GetAllArtifactVersionsOkResponse, GetAllArtifactVersionsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetAllArtifactVersionsOkResponse, import("..").Error>;
@@ -1,14 +0,0 @@
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 getAllArtifactVersions(props) {
7
- return fetcher(Object.assign({ url: `/registry/${props.registry}/artifact/${props.artifact}/versions`, method: 'GET' }, props));
8
- }
9
- /**
10
- * Lists all the Artifact Versions.
11
- */
12
- export function useGetAllArtifactVersionsQuery(props, options) {
13
- return useQuery(['GetAllArtifactVersions', props.registry, props.artifact, props.queryParams], ({ signal }) => getAllArtifactVersions(Object.assign(Object.assign({}, props), { signal })), options);
14
- }
@@ -1,42 +0,0 @@
1
- import { UseQueryOptions } from '@tanstack/react-query';
2
- import type { ListRegistryArtifactResponseResponse } from '../responses/ListRegistryArtifactResponseResponse';
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 { ResponseWithPagination } from '../helpers';
9
- import { FetcherOptions } from '../../../../fetcher/index.js';
10
- export interface GetAllArtifactsByRegistryQueryPathParams {
11
- registry: string;
12
- }
13
- export interface GetAllArtifactsByRegistryQueryQueryParams {
14
- metadata?: string[];
15
- /**
16
- * @format int64
17
- * @default 0
18
- */
19
- page?: number;
20
- /**
21
- * @format int64
22
- * @default 20
23
- */
24
- size?: number;
25
- /**
26
- * @default "ASC"
27
- */
28
- sort_order?: 'ASC' | 'DESC';
29
- sort_field?: string;
30
- search_term?: string;
31
- artifact_type?: 'dataset' | 'model';
32
- }
33
- export type GetAllArtifactsByRegistryOkResponse = ResponseWithPagination<ListRegistryArtifactResponseResponse>;
34
- export type GetAllArtifactsByRegistryErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
35
- export interface GetAllArtifactsByRegistryProps extends GetAllArtifactsByRegistryQueryPathParams, Omit<FetcherOptions<GetAllArtifactsByRegistryQueryQueryParams, unknown>, 'url'> {
36
- queryParams: GetAllArtifactsByRegistryQueryQueryParams;
37
- }
38
- export declare function getAllArtifactsByRegistry(props: GetAllArtifactsByRegistryProps): Promise<GetAllArtifactsByRegistryOkResponse>;
39
- /**
40
- * Lists all the Artifacts for Registry
41
- */
42
- export declare function useGetAllArtifactsByRegistryQuery(props: GetAllArtifactsByRegistryProps, options?: Omit<UseQueryOptions<GetAllArtifactsByRegistryOkResponse, GetAllArtifactsByRegistryErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetAllArtifactsByRegistryOkResponse, import("..").Error>;
@@ -1,14 +0,0 @@
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 getAllArtifactsByRegistry(props) {
7
- return fetcher(Object.assign({ url: `/registry/${props.registry}/artifacts`, method: 'GET' }, props));
8
- }
9
- /**
10
- * Lists all the Artifacts for Registry
11
- */
12
- export function useGetAllArtifactsByRegistryQuery(props, options) {
13
- return useQuery(['GetAllArtifactsByRegistry', props.registry, props.queryParams], ({ signal }) => getAllArtifactsByRegistry(Object.assign(Object.assign({}, props), { signal })), options);
14
- }
@@ -1,6 +0,0 @@
1
- import type { ListArtifactVersion } from '../schemas/ListArtifactVersion';
2
- import type { Status } from '../schemas/Status';
3
- export interface ListArtifactVersionResponseResponse {
4
- data: ListArtifactVersion;
5
- status: Status;
6
- }
@@ -1,6 +0,0 @@
1
- import type { ListRegistryArtifact } from '../schemas/ListRegistryArtifact';
2
- import type { Status } from '../schemas/Status';
3
- export interface ListRegistryArtifactResponseResponse {
4
- data: ListRegistryArtifact;
5
- status: Status;
6
- }
@@ -1,32 +0,0 @@
1
- import type { ArtifactType } from '../schemas/ArtifactType';
2
- import type { DeploymentMetadata } from '../schemas/DeploymentMetadata';
3
- import type { ArtifactEntityMetadata } from '../schemas/ArtifactEntityMetadata';
4
- import type { PackageType } from '../schemas/PackageType';
5
- /**
6
- * Artifact Version Metadata
7
- */
8
- export interface ArtifactVersionMetadata {
9
- artifactType?: ArtifactType;
10
- deploymentMetadata?: DeploymentMetadata;
11
- /**
12
- * @format int64
13
- */
14
- digestCount?: number;
15
- /**
16
- * @format int64
17
- */
18
- downloadsCount?: number;
19
- /**
20
- * @format int64
21
- */
22
- fileCount?: number;
23
- isQuarantined?: boolean;
24
- lastModified?: string;
25
- metadata?: ArtifactEntityMetadata;
26
- name: string;
27
- packageType: PackageType;
28
- pullCommand?: string;
29
- quarantineReason?: string;
30
- registryIdentifier: string;
31
- size?: string;
32
- }
@@ -1,33 +0,0 @@
1
- import type { ArtifactVersionMetadata } from '../schemas/ArtifactVersionMetadata';
2
- /**
3
- * A list of Artifact versions
4
- */
5
- export interface ListArtifactVersion {
6
- /**
7
- * A list of Artifact versions
8
- */
9
- artifactVersions?: ArtifactVersionMetadata[];
10
- /**
11
- * The total number of items
12
- * @format int64
13
- * @example 1
14
- */
15
- itemCount?: number;
16
- /**
17
- * The total number of pages
18
- * @format int64
19
- * @example 100
20
- */
21
- pageCount?: number;
22
- /**
23
- * The current page
24
- * @format int64
25
- * @example 0
26
- */
27
- pageIndex?: number;
28
- /**
29
- * The number of items per page
30
- * @example 1
31
- */
32
- pageSize?: number;
33
- }