@harnessio/react-har-service-client 0.26.0 → 0.28.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 (30) hide show
  1. package/dist/har-service/src/services/hooks/useGetAllArtifactVersionsQuery.d.ts +1 -0
  2. package/dist/har-service/src/services/hooks/useGetArtifactDeploymentsQuery.d.ts +1 -0
  3. package/dist/har-service/src/services/hooks/useGetArtifactVersionSummaryQuery.d.ts +1 -1
  4. package/dist/har-service/src/services/hooks/useGetDockerArtifactDetailsQuery.d.ts +1 -0
  5. package/dist/har-service/src/services/hooks/useGetDockerArtifactIntegrationDetailsQuery.d.ts +1 -0
  6. package/dist/har-service/src/services/hooks/useGetDockerArtifactManifestsQuery.d.ts +5 -1
  7. package/dist/har-service/src/services/hooks/useGetDockerArtifactManifestsQuery.js +7 -1
  8. package/dist/har-service/src/services/hooks/useGetHelmArtifactDetailsQuery.d.ts +5 -1
  9. package/dist/har-service/src/services/hooks/useGetHelmArtifactDetailsQuery.js +7 -1
  10. package/dist/har-service/src/services/hooks/useGetOciArtifactTagsQuery.d.ts +36 -0
  11. package/dist/har-service/src/services/hooks/useGetOciArtifactTagsQuery.js +14 -0
  12. package/dist/har-service/src/services/index.d.ts +8 -2
  13. package/dist/har-service/src/services/index.js +1 -0
  14. package/dist/har-service/src/services/responses/ListOciArtifactTagsResponseResponse.d.ts +6 -0
  15. package/dist/har-service/src/services/responses/ListOciArtifactTagsResponseResponse.js +1 -0
  16. package/dist/har-service/src/services/schemas/ArtifactEntityMetadata.d.ts +6 -0
  17. package/dist/har-service/src/services/schemas/ArtifactEntityMetadata.js +4 -0
  18. package/dist/har-service/src/services/schemas/ArtifactMetadata.d.ts +3 -1
  19. package/dist/har-service/src/services/schemas/ArtifactVersionMetadata.d.ts +3 -1
  20. package/dist/har-service/src/services/schemas/DockerArtifactDetail.d.ts +3 -0
  21. package/dist/har-service/src/services/schemas/HelmArtifactDetail.d.ts +3 -0
  22. package/dist/har-service/src/services/schemas/ListOciArtifactTags.d.ts +33 -0
  23. package/dist/har-service/src/services/schemas/ListOciArtifactTags.js +1 -0
  24. package/dist/har-service/src/services/schemas/OciArtifactTag.d.ts +7 -0
  25. package/dist/har-service/src/services/schemas/OciArtifactTag.js +4 -0
  26. package/dist/har-service/src/services/schemas/Registry.d.ts +2 -0
  27. package/dist/har-service/src/services/schemas/RegistryArtifactMetadata.d.ts +2 -1
  28. package/dist/har-service/src/services/schemas/RegistryMetadata.d.ts +1 -0
  29. package/dist/har-service/src/services/schemas/RegistryRequest.d.ts +2 -0
  30. package/package.json +1 -1
@@ -12,6 +12,7 @@ export interface GetAllArtifactVersionsQueryPathParams {
12
12
  artifact: string;
13
13
  }
14
14
  export interface GetAllArtifactVersionsQueryQueryParams {
15
+ artifact_type?: 'dataset' | 'model';
15
16
  /**
16
17
  * @format int64
17
18
  * @default 1
@@ -30,6 +30,7 @@ export interface GetArtifactDeploymentsQueryQueryParams {
30
30
  sort_order?: string;
31
31
  sort_field?: string;
32
32
  search_term?: string;
33
+ version_type?: 'DIGEST' | 'TAG';
33
34
  }
34
35
  export type GetArtifactDeploymentsOkResponse = ResponseWithPagination<ArtifactDeploymentsResponseResponse>;
35
36
  export type GetArtifactDeploymentsErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
@@ -13,8 +13,8 @@ export interface GetArtifactVersionSummaryQueryPathParams {
13
13
  version: string;
14
14
  }
15
15
  export interface GetArtifactVersionSummaryQueryQueryParams {
16
- digest?: string;
17
16
  artifact_type?: 'dataset' | 'model';
17
+ digest?: string;
18
18
  }
19
19
  export type GetArtifactVersionSummaryOkResponse = ResponseWithPagination<ArtifactVersionSummaryResponseResponse>;
20
20
  export type GetArtifactVersionSummaryErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
@@ -14,6 +14,7 @@ export interface GetDockerArtifactDetailsQueryPathParams {
14
14
  }
15
15
  export interface GetDockerArtifactDetailsQueryQueryParams {
16
16
  digest: string;
17
+ version_type?: 'DIGEST' | 'TAG';
17
18
  }
18
19
  export type GetDockerArtifactDetailsOkResponse = ResponseWithPagination<DockerArtifactDetailResponseResponse>;
19
20
  export type GetDockerArtifactDetailsErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
@@ -14,6 +14,7 @@ export interface GetDockerArtifactIntegrationDetailsQueryPathParams {
14
14
  }
15
15
  export interface GetDockerArtifactIntegrationDetailsQueryQueryParams {
16
16
  digest: string;
17
+ version_type?: 'DIGEST' | 'TAG';
17
18
  }
18
19
  export type GetDockerArtifactIntegrationDetailsOkResponse = ResponseWithPagination<DockerArtifactDetailIntegrationResponseResponse>;
19
20
  export type GetDockerArtifactIntegrationDetailsErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
@@ -12,9 +12,13 @@ export interface GetDockerArtifactManifestsQueryPathParams {
12
12
  artifact: string;
13
13
  version: string;
14
14
  }
15
+ export interface GetDockerArtifactManifestsQueryQueryParams {
16
+ version_type?: 'DIGEST' | 'TAG';
17
+ }
15
18
  export type GetDockerArtifactManifestsOkResponse = ResponseWithPagination<DockerManifestsResponseResponse>;
16
19
  export type GetDockerArtifactManifestsErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
17
- export interface GetDockerArtifactManifestsProps extends GetDockerArtifactManifestsQueryPathParams, Omit<FetcherOptions<unknown, unknown>, 'url'> {
20
+ export interface GetDockerArtifactManifestsProps extends GetDockerArtifactManifestsQueryPathParams, Omit<FetcherOptions<GetDockerArtifactManifestsQueryQueryParams, unknown>, 'url'> {
21
+ queryParams: GetDockerArtifactManifestsQueryQueryParams;
18
22
  }
19
23
  export declare function getDockerArtifactManifests(props: GetDockerArtifactManifestsProps): Promise<GetDockerArtifactManifestsOkResponse>;
20
24
  /**
@@ -10,5 +10,11 @@ export function getDockerArtifactManifests(props) {
10
10
  * Get Docker Artifact Manifests
11
11
  */
12
12
  export function useGetDockerArtifactManifestsQuery(props, options) {
13
- return useQuery(['GetDockerArtifactManifests', props.registry_ref, props.artifact, props.version], ({ signal }) => getDockerArtifactManifests(Object.assign(Object.assign({}, props), { signal })), options);
13
+ return useQuery([
14
+ 'GetDockerArtifactManifests',
15
+ props.registry_ref,
16
+ props.artifact,
17
+ props.version,
18
+ props.queryParams,
19
+ ], ({ signal }) => getDockerArtifactManifests(Object.assign(Object.assign({}, props), { signal })), options);
14
20
  }
@@ -12,9 +12,13 @@ export interface GetHelmArtifactDetailsQueryPathParams {
12
12
  artifact: string;
13
13
  version: string;
14
14
  }
15
+ export interface GetHelmArtifactDetailsQueryQueryParams {
16
+ version_type?: 'DIGEST' | 'TAG';
17
+ }
15
18
  export type GetHelmArtifactDetailsOkResponse = ResponseWithPagination<HelmArtifactDetailResponseResponse>;
16
19
  export type GetHelmArtifactDetailsErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
17
- export interface GetHelmArtifactDetailsProps extends GetHelmArtifactDetailsQueryPathParams, Omit<FetcherOptions<unknown, unknown>, 'url'> {
20
+ export interface GetHelmArtifactDetailsProps extends GetHelmArtifactDetailsQueryPathParams, Omit<FetcherOptions<GetHelmArtifactDetailsQueryQueryParams, unknown>, 'url'> {
21
+ queryParams: GetHelmArtifactDetailsQueryQueryParams;
18
22
  }
19
23
  export declare function getHelmArtifactDetails(props: GetHelmArtifactDetailsProps): Promise<GetHelmArtifactDetailsOkResponse>;
20
24
  /**
@@ -10,5 +10,11 @@ export function getHelmArtifactDetails(props) {
10
10
  * Get Helm Artifact Details
11
11
  */
12
12
  export function useGetHelmArtifactDetailsQuery(props, options) {
13
- return useQuery(['GetHelmArtifactDetails', props.registry_ref, props.artifact, props.version], ({ signal }) => getHelmArtifactDetails(Object.assign(Object.assign({}, props), { signal })), options);
13
+ return useQuery([
14
+ 'GetHelmArtifactDetails',
15
+ props.registry_ref,
16
+ props.artifact,
17
+ props.version,
18
+ props.queryParams,
19
+ ], ({ signal }) => getHelmArtifactDetails(Object.assign(Object.assign({}, props), { signal })), options);
14
20
  }
@@ -0,0 +1,36 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ListOciArtifactTagsResponseResponse } from '../responses/ListOciArtifactTagsResponseResponse';
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 GetOciArtifactTagsQueryPathParams {
11
+ registry_ref: string;
12
+ artifact: string;
13
+ }
14
+ export interface GetOciArtifactTagsQueryQueryParams {
15
+ /**
16
+ * @format int64
17
+ * @default 1
18
+ */
19
+ page?: number;
20
+ /**
21
+ * @format int64
22
+ * @default 20
23
+ */
24
+ size?: number;
25
+ search_term?: string;
26
+ }
27
+ export type GetOciArtifactTagsOkResponse = ResponseWithPagination<ListOciArtifactTagsResponseResponse>;
28
+ export type GetOciArtifactTagsErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
29
+ export interface GetOciArtifactTagsProps extends GetOciArtifactTagsQueryPathParams, Omit<FetcherOptions<GetOciArtifactTagsQueryQueryParams, unknown>, 'url'> {
30
+ queryParams: GetOciArtifactTagsQueryQueryParams;
31
+ }
32
+ export declare function getOciArtifactTags(props: GetOciArtifactTagsProps): Promise<GetOciArtifactTagsOkResponse>;
33
+ /**
34
+ * Lists OCI Artifact Tags.
35
+ */
36
+ export declare function useGetOciArtifactTagsQuery(props: GetOciArtifactTagsProps, options?: Omit<UseQueryOptions<GetOciArtifactTagsOkResponse, GetOciArtifactTagsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetOciArtifactTagsOkResponse, 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 getOciArtifactTags(props) {
7
+ return fetcher(Object.assign({ url: `/registry/${props.registry_ref}/artifact/${props.artifact}/tags`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Lists OCI Artifact Tags.
11
+ */
12
+ export function useGetOciArtifactTagsQuery(props, options) {
13
+ return useQuery(['GetOciArtifactTags', props.registry_ref, props.artifact, props.queryParams], ({ signal }) => getOciArtifactTags(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -63,14 +63,16 @@ export type { GetDockerArtifactLayersErrorResponse, GetDockerArtifactLayersOkRes
63
63
  export { getDockerArtifactLayers, useGetDockerArtifactLayersQuery, } from './hooks/useGetDockerArtifactLayersQuery';
64
64
  export type { GetDockerArtifactManifestErrorResponse, GetDockerArtifactManifestOkResponse, GetDockerArtifactManifestProps, GetDockerArtifactManifestQueryPathParams, GetDockerArtifactManifestQueryQueryParams, } from './hooks/useGetDockerArtifactManifestQuery';
65
65
  export { getDockerArtifactManifest, useGetDockerArtifactManifestQuery, } from './hooks/useGetDockerArtifactManifestQuery';
66
- export type { GetDockerArtifactManifestsErrorResponse, GetDockerArtifactManifestsOkResponse, GetDockerArtifactManifestsProps, GetDockerArtifactManifestsQueryPathParams, } from './hooks/useGetDockerArtifactManifestsQuery';
66
+ export type { GetDockerArtifactManifestsErrorResponse, GetDockerArtifactManifestsOkResponse, GetDockerArtifactManifestsProps, GetDockerArtifactManifestsQueryPathParams, GetDockerArtifactManifestsQueryQueryParams, } from './hooks/useGetDockerArtifactManifestsQuery';
67
67
  export { getDockerArtifactManifests, useGetDockerArtifactManifestsQuery, } from './hooks/useGetDockerArtifactManifestsQuery';
68
- export type { GetHelmArtifactDetailsErrorResponse, GetHelmArtifactDetailsOkResponse, GetHelmArtifactDetailsProps, GetHelmArtifactDetailsQueryPathParams, } from './hooks/useGetHelmArtifactDetailsQuery';
68
+ export type { GetHelmArtifactDetailsErrorResponse, GetHelmArtifactDetailsOkResponse, GetHelmArtifactDetailsProps, GetHelmArtifactDetailsQueryPathParams, GetHelmArtifactDetailsQueryQueryParams, } from './hooks/useGetHelmArtifactDetailsQuery';
69
69
  export { getHelmArtifactDetails, useGetHelmArtifactDetailsQuery, } from './hooks/useGetHelmArtifactDetailsQuery';
70
70
  export type { GetHelmArtifactManifestErrorResponse, GetHelmArtifactManifestOkResponse, GetHelmArtifactManifestProps, GetHelmArtifactManifestQueryPathParams, } from './hooks/useGetHelmArtifactManifestQuery';
71
71
  export { getHelmArtifactManifest, useGetHelmArtifactManifestQuery, } from './hooks/useGetHelmArtifactManifestQuery';
72
72
  export type { GetMigrationLogsForImageErrorResponse, GetMigrationLogsForImageOkResponse, GetMigrationLogsForImageProps, GetMigrationLogsForImageQueryPathParams, } from './hooks/useGetMigrationLogsForImageQuery';
73
73
  export { getMigrationLogsForImage, useGetMigrationLogsForImageQuery, } from './hooks/useGetMigrationLogsForImageQuery';
74
+ export type { GetOciArtifactTagsErrorResponse, GetOciArtifactTagsOkResponse, GetOciArtifactTagsProps, GetOciArtifactTagsQueryPathParams, GetOciArtifactTagsQueryQueryParams, } from './hooks/useGetOciArtifactTagsQuery';
75
+ export { getOciArtifactTags, useGetOciArtifactTagsQuery } from './hooks/useGetOciArtifactTagsQuery';
74
76
  export type { GetRegistryErrorResponse, GetRegistryOkResponse, GetRegistryProps, GetRegistryQueryPathParams, } from './hooks/useGetRegistryQuery';
75
77
  export { getRegistry, useGetRegistryQuery } from './hooks/useGetRegistryQuery';
76
78
  export type { GetReplicationRuleErrorResponse, GetReplicationRuleOkResponse, GetReplicationRuleProps, GetReplicationRuleQueryPathParams, } from './hooks/useGetReplicationRuleQuery';
@@ -146,6 +148,7 @@ export type { ListArtifactLabelResponseResponse } from './responses/ListArtifact
146
148
  export type { ListArtifactResponseResponse } from './responses/ListArtifactResponseResponse';
147
149
  export type { ListArtifactVersionResponseResponse } from './responses/ListArtifactVersionResponseResponse';
148
150
  export type { ListMigrationImageResponseResponse } from './responses/ListMigrationImageResponseResponse';
151
+ export type { ListOciArtifactTagsResponseResponse } from './responses/ListOciArtifactTagsResponseResponse';
149
152
  export type { ListRegistryArtifactResponseResponse } from './responses/ListRegistryArtifactResponseResponse';
150
153
  export type { ListRegistryResponseResponse } from './responses/ListRegistryResponseResponse';
151
154
  export type { ListReplicationRuleResponseResponse } from './responses/ListReplicationRuleResponseResponse';
@@ -169,6 +172,7 @@ export type { ArtifactDeploymentsDetail } from './schemas/ArtifactDeploymentsDet
169
172
  export type { ArtifactDeploymentsDetails } from './schemas/ArtifactDeploymentsDetails';
170
173
  export type { ArtifactDeploymentsList } from './schemas/ArtifactDeploymentsList';
171
174
  export type { ArtifactDetail } from './schemas/ArtifactDetail';
175
+ export type { ArtifactEntityMetadata } from './schemas/ArtifactEntityMetadata';
172
176
  export type { ArtifactLabelRequest } from './schemas/ArtifactLabelRequest';
173
177
  export type { ArtifactMetadata } from './schemas/ArtifactMetadata';
174
178
  export type { ArtifactStats } from './schemas/ArtifactStats';
@@ -214,6 +218,7 @@ export type { ListArtifact } from './schemas/ListArtifact';
214
218
  export type { ListArtifactLabel } from './schemas/ListArtifactLabel';
215
219
  export type { ListArtifactVersion } from './schemas/ListArtifactVersion';
216
220
  export type { ListMigrationImage } from './schemas/ListMigrationImage';
221
+ export type { ListOciArtifactTags } from './schemas/ListOciArtifactTags';
217
222
  export type { ListRegistry } from './schemas/ListRegistry';
218
223
  export type { ListRegistryArtifact } from './schemas/ListRegistryArtifact';
219
224
  export type { ListReplicationRule } from './schemas/ListReplicationRule';
@@ -224,6 +229,7 @@ export type { MavenArtifactDetailConfig } from './schemas/MavenArtifactDetailCon
224
229
  export type { MigrationImage } from './schemas/MigrationImage';
225
230
  export type { NpmArtifactDetailConfig } from './schemas/NpmArtifactDetailConfig';
226
231
  export type { NugetArtifactDetailConfig } from './schemas/NugetArtifactDetailConfig';
232
+ export type { OciArtifactTag } from './schemas/OciArtifactTag';
227
233
  export type { PackageType } from './schemas/PackageType';
228
234
  export type { PythonArtifactDetailConfig } from './schemas/PythonArtifactDetailConfig';
229
235
  export type { QuarantinePath } from './schemas/QuarantinePath';
@@ -34,6 +34,7 @@ export { getDockerArtifactManifests, useGetDockerArtifactManifestsQuery, } from
34
34
  export { getHelmArtifactDetails, useGetHelmArtifactDetailsQuery, } from './hooks/useGetHelmArtifactDetailsQuery';
35
35
  export { getHelmArtifactManifest, useGetHelmArtifactManifestQuery, } from './hooks/useGetHelmArtifactManifestQuery';
36
36
  export { getMigrationLogsForImage, useGetMigrationLogsForImageQuery, } from './hooks/useGetMigrationLogsForImageQuery';
37
+ export { getOciArtifactTags, useGetOciArtifactTagsQuery } from './hooks/useGetOciArtifactTagsQuery';
37
38
  export { getRegistry, useGetRegistryQuery } from './hooks/useGetRegistryQuery';
38
39
  export { getReplicationRule, useGetReplicationRuleQuery } from './hooks/useGetReplicationRuleQuery';
39
40
  export { getStorageDetails, useGetStorageDetailsQuery } from './hooks/useGetStorageDetailsQuery';
@@ -0,0 +1,6 @@
1
+ import type { ListOciArtifactTags } from '../schemas/ListOciArtifactTags';
2
+ import type { Status } from '../schemas/Status';
3
+ export interface ListOciArtifactTagsResponseResponse {
4
+ data: ListOciArtifactTags;
5
+ status: Status;
6
+ }
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Artifact Entity Metadata
3
+ */
4
+ export interface ArtifactEntityMetadata {
5
+ [key: string]: any;
6
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -1,5 +1,6 @@
1
1
  import type { ArtifactType } from '../schemas/ArtifactType';
2
2
  import type { DeploymentMetadata } from '../schemas/DeploymentMetadata';
3
+ import type { ArtifactEntityMetadata } from '../schemas/ArtifactEntityMetadata';
3
4
  import type { PackageType } from '../schemas/PackageType';
4
5
  /**
5
6
  * Artifact Metadata
@@ -15,8 +16,9 @@ export interface ArtifactMetadata {
15
16
  labels?: string[];
16
17
  lastModified?: string;
17
18
  latestVersion: string;
19
+ metadata?: ArtifactEntityMetadata;
18
20
  name: string;
19
- packageType?: PackageType;
21
+ packageType: PackageType;
20
22
  pullCommand?: string;
21
23
  quarantineReason?: string;
22
24
  registryIdentifier: string;
@@ -1,5 +1,6 @@
1
1
  import type { ArtifactType } from '../schemas/ArtifactType';
2
2
  import type { DeploymentMetadata } from '../schemas/DeploymentMetadata';
3
+ import type { ArtifactEntityMetadata } from '../schemas/ArtifactEntityMetadata';
3
4
  import type { PackageType } from '../schemas/PackageType';
4
5
  /**
5
6
  * Artifact Version Metadata
@@ -21,8 +22,9 @@ export interface ArtifactVersionMetadata {
21
22
  fileCount?: number;
22
23
  isQuarantined?: boolean;
23
24
  lastModified?: string;
25
+ metadata?: ArtifactEntityMetadata;
24
26
  name: string;
25
- packageType?: PackageType;
27
+ packageType: PackageType;
26
28
  pullCommand?: string;
27
29
  quarantineReason?: string;
28
30
  registryIdentifier: string;
@@ -1,3 +1,4 @@
1
+ import type { ArtifactEntityMetadata } from '../schemas/ArtifactEntityMetadata';
1
2
  import type { PackageType } from '../schemas/PackageType';
2
3
  /**
3
4
  * Docker Artifact Detail
@@ -10,9 +11,11 @@ export interface DockerArtifactDetail {
10
11
  downloadsCount?: number;
11
12
  imageName: string;
12
13
  isQuarantined?: boolean;
14
+ metadata?: ArtifactEntityMetadata;
13
15
  modifiedAt?: string;
14
16
  packageType: PackageType;
15
17
  pullCommand?: string;
18
+ pullCommandByDigest?: string;
16
19
  quarantineReason?: string;
17
20
  registryPath: string;
18
21
  size?: string;
@@ -1,3 +1,4 @@
1
+ import type { ArtifactEntityMetadata } from '../schemas/ArtifactEntityMetadata';
1
2
  import type { PackageType } from '../schemas/PackageType';
2
3
  /**
3
4
  * Helm Artifact Detail
@@ -9,9 +10,11 @@ export interface HelmArtifactDetail {
9
10
  * @format int64
10
11
  */
11
12
  downloadsCount?: number;
13
+ metadata?: ArtifactEntityMetadata;
12
14
  modifiedAt?: string;
13
15
  packageType: PackageType;
14
16
  pullCommand?: string;
17
+ pullCommandByDigest?: string;
15
18
  registryPath: string;
16
19
  size?: string;
17
20
  url: string;
@@ -0,0 +1,33 @@
1
+ import type { OciArtifactTag } from '../schemas/OciArtifactTag';
2
+ /**
3
+ * A list of Artifact versions
4
+ */
5
+ export interface ListOciArtifactTags {
6
+ /**
7
+ * The total number of items
8
+ * @format int64
9
+ * @example 1
10
+ */
11
+ itemCount?: number;
12
+ /**
13
+ * A list of OCI Artifact tags
14
+ */
15
+ ociArtifactTags: OciArtifactTag[];
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
+ }
@@ -0,0 +1,7 @@
1
+ /**
2
+ * OCI Artifact Tag info
3
+ */
4
+ export interface OciArtifactTag {
5
+ digest: string;
6
+ name: string;
7
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -13,9 +13,11 @@ export interface Registry<T0 extends RegistryConfig = RegistryConfig> {
13
13
  createdAt?: string;
14
14
  description?: string;
15
15
  identifier: string;
16
+ isPublic: boolean;
16
17
  labels?: string[];
17
18
  modifiedAt?: string;
18
19
  packageType: PackageType;
20
+ policyRefs?: string[];
19
21
  scanners?: Scanner[];
20
22
  url: string;
21
23
  }
@@ -9,12 +9,13 @@ export interface RegistryArtifactMetadata {
9
9
  * @format int64
10
10
  */
11
11
  downloadsCount?: number;
12
+ isPublic: boolean;
12
13
  isQuarantined?: boolean;
13
14
  labels?: string[];
14
15
  lastModified?: string;
15
16
  latestVersion: string;
16
17
  name: string;
17
- packageType?: PackageType;
18
+ packageType: PackageType;
18
19
  quarantineReason?: string;
19
20
  registryIdentifier: string;
20
21
  registryPath: string;
@@ -14,6 +14,7 @@ export interface RegistryMetadata {
14
14
  */
15
15
  downloadsCount?: number;
16
16
  identifier: string;
17
+ isPublic: boolean;
17
18
  labels?: string[];
18
19
  lastModified?: string;
19
20
  packageType: PackageType;
@@ -9,6 +9,7 @@ export interface RegistryRequest<T0 extends RegistryConfig = RegistryConfig> {
9
9
  config?: T0;
10
10
  description?: string;
11
11
  identifier: string;
12
+ isPublic: boolean;
12
13
  labels?: string[];
13
14
  packageType: PackageType;
14
15
  /**
@@ -22,5 +23,6 @@ export interface RegistryRequest<T0 extends RegistryConfig = RegistryConfig> {
22
23
  *
23
24
  */
24
25
  parentRef?: string;
26
+ policyRefs?: string[];
25
27
  scanners?: Scanner[];
26
28
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-har-service-client",
3
- "version": "0.26.0",
3
+ "version": "0.28.0",
4
4
  "description": "Harness HAR Service APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",