@harnessio/react-har-service-client 0.23.0 → 0.25.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.
- package/dist/har-service/src/services/hooks/useDeleteArtifactMutation.d.ts +5 -1
- package/dist/har-service/src/services/hooks/useDeleteArtifactVersionMutation.d.ts +5 -1
- package/dist/har-service/src/services/hooks/useGetAllArtifactsByRegistryQuery.d.ts +1 -0
- package/dist/har-service/src/services/hooks/useGetArtifactDetailsQuery.d.ts +1 -0
- package/dist/har-service/src/services/hooks/useGetArtifactFileQuery.d.ts +5 -1
- package/dist/har-service/src/services/hooks/useGetArtifactFileQuery.js +8 -1
- package/dist/har-service/src/services/hooks/useGetArtifactFilesQuery.d.ts +1 -0
- package/dist/har-service/src/services/hooks/useGetArtifactSummaryQuery.d.ts +5 -1
- package/dist/har-service/src/services/hooks/useGetArtifactSummaryQuery.js +1 -1
- package/dist/har-service/src/services/hooks/useGetArtifactVersionSummaryQuery.d.ts +1 -0
- package/dist/har-service/src/services/hooks/useUpdateArtifactLabelsMutation.d.ts +5 -1
- package/dist/har-service/src/services/index.d.ts +7 -5
- package/dist/har-service/src/services/schemas/ArtifactDetail.d.ts +5 -1
- package/dist/har-service/src/services/schemas/ArtifactMetadata.d.ts +4 -0
- package/dist/har-service/src/services/schemas/ArtifactSummary.d.ts +2 -0
- package/dist/har-service/src/services/schemas/ArtifactType.d.ts +4 -0
- package/dist/har-service/src/services/schemas/ArtifactType.js +4 -0
- package/dist/har-service/src/services/schemas/ArtifactVersionMetadata.d.ts +3 -0
- package/dist/har-service/src/services/schemas/ArtifactVersionSummary.d.ts +4 -0
- package/dist/har-service/src/services/schemas/DockerArtifactDetail.d.ts +1 -0
- package/dist/har-service/src/services/schemas/DockerManifestDetails.d.ts +2 -0
- package/dist/har-service/src/services/schemas/HuggingFaceArtifactDetailConfig.d.ts +8 -0
- package/dist/har-service/src/services/schemas/HuggingFaceArtifactDetailConfig.js +4 -0
- package/dist/har-service/src/services/schemas/PackageType.d.ts +1 -1
- package/dist/har-service/src/services/schemas/RegistryArtifactMetadata.d.ts +3 -0
- package/dist/har-service/src/services/schemas/UpstreamConfig.d.ts +1 -1
- package/package.json +1 -1
|
@@ -11,9 +11,13 @@ export interface DeleteArtifactMutationPathParams {
|
|
|
11
11
|
registry_ref: string;
|
|
12
12
|
artifact: string;
|
|
13
13
|
}
|
|
14
|
+
export interface DeleteArtifactMutationQueryParams {
|
|
15
|
+
artifact_type?: 'DATASET' | 'MODEL';
|
|
16
|
+
}
|
|
14
17
|
export type DeleteArtifactOkResponse = ResponseWithPagination<SuccessResponse>;
|
|
15
18
|
export type DeleteArtifactErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
|
|
16
|
-
export interface DeleteArtifactProps extends DeleteArtifactMutationPathParams, Omit<FetcherOptions<
|
|
19
|
+
export interface DeleteArtifactProps extends DeleteArtifactMutationPathParams, Omit<FetcherOptions<DeleteArtifactMutationQueryParams, unknown>, 'url'> {
|
|
20
|
+
queryParams: DeleteArtifactMutationQueryParams;
|
|
17
21
|
}
|
|
18
22
|
export declare function deleteArtifact(props: DeleteArtifactProps): Promise<DeleteArtifactOkResponse>;
|
|
19
23
|
/**
|
|
@@ -12,9 +12,13 @@ export interface DeleteArtifactVersionMutationPathParams {
|
|
|
12
12
|
artifact: string;
|
|
13
13
|
version: string;
|
|
14
14
|
}
|
|
15
|
+
export interface DeleteArtifactVersionMutationQueryParams {
|
|
16
|
+
artifact_type?: 'DATASET' | 'MODEL';
|
|
17
|
+
}
|
|
15
18
|
export type DeleteArtifactVersionOkResponse = ResponseWithPagination<SuccessResponse>;
|
|
16
19
|
export type DeleteArtifactVersionErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
|
|
17
|
-
export interface DeleteArtifactVersionProps extends DeleteArtifactVersionMutationPathParams, Omit<FetcherOptions<
|
|
20
|
+
export interface DeleteArtifactVersionProps extends DeleteArtifactVersionMutationPathParams, Omit<FetcherOptions<DeleteArtifactVersionMutationQueryParams, unknown>, 'url'> {
|
|
21
|
+
queryParams: DeleteArtifactVersionMutationQueryParams;
|
|
18
22
|
}
|
|
19
23
|
export declare function deleteArtifactVersion(props: DeleteArtifactVersionProps): Promise<DeleteArtifactVersionOkResponse>;
|
|
20
24
|
/**
|
|
@@ -25,6 +25,7 @@ export interface GetAllArtifactsByRegistryQueryQueryParams {
|
|
|
25
25
|
sort_order?: string;
|
|
26
26
|
sort_field?: string;
|
|
27
27
|
search_term?: string;
|
|
28
|
+
artifact_type?: 'DATASET' | 'MODEL';
|
|
28
29
|
}
|
|
29
30
|
export type GetAllArtifactsByRegistryOkResponse = ResponseWithPagination<ListRegistryArtifactResponseResponse>;
|
|
30
31
|
export type GetAllArtifactsByRegistryErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
|
|
@@ -13,6 +13,7 @@ export interface GetArtifactDetailsQueryPathParams {
|
|
|
13
13
|
version: string;
|
|
14
14
|
}
|
|
15
15
|
export interface GetArtifactDetailsQueryQueryParams {
|
|
16
|
+
artifact_type?: 'DATASET' | 'MODEL';
|
|
16
17
|
childVersion?: string;
|
|
17
18
|
}
|
|
18
19
|
export type GetArtifactDetailsOkResponse = ResponseWithPagination<ArtifactDetailResponseResponse>;
|
|
@@ -13,9 +13,13 @@ export interface GetArtifactFileQueryPathParams {
|
|
|
13
13
|
version: string;
|
|
14
14
|
file_name: string;
|
|
15
15
|
}
|
|
16
|
+
export interface GetArtifactFileQueryQueryParams {
|
|
17
|
+
artifact_type?: 'DATASET' | 'MODEL';
|
|
18
|
+
}
|
|
16
19
|
export type GetArtifactFileOkResponse = ResponseWithPagination<ArtifactFileResponseResponse>;
|
|
17
20
|
export type GetArtifactFileErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
|
|
18
|
-
export interface GetArtifactFileProps extends GetArtifactFileQueryPathParams, Omit<FetcherOptions<
|
|
21
|
+
export interface GetArtifactFileProps extends GetArtifactFileQueryPathParams, Omit<FetcherOptions<GetArtifactFileQueryQueryParams, unknown>, 'url'> {
|
|
22
|
+
queryParams: GetArtifactFileQueryQueryParams;
|
|
19
23
|
}
|
|
20
24
|
export declare function getArtifactFile(props: GetArtifactFileProps): Promise<GetArtifactFileOkResponse>;
|
|
21
25
|
/**
|
|
@@ -10,5 +10,12 @@ export function getArtifactFile(props) {
|
|
|
10
10
|
* just validate existence of Artifact file
|
|
11
11
|
*/
|
|
12
12
|
export function useGetArtifactFileQuery(props, options) {
|
|
13
|
-
return useQuery([
|
|
13
|
+
return useQuery([
|
|
14
|
+
'GetArtifactFile',
|
|
15
|
+
props.registry_ref,
|
|
16
|
+
props.artifact,
|
|
17
|
+
props.version,
|
|
18
|
+
props.file_name,
|
|
19
|
+
props.queryParams,
|
|
20
|
+
], ({ signal }) => getArtifactFile(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
21
|
}
|
|
@@ -11,9 +11,13 @@ export interface GetArtifactSummaryQueryPathParams {
|
|
|
11
11
|
registry_ref: string;
|
|
12
12
|
artifact: string;
|
|
13
13
|
}
|
|
14
|
+
export interface GetArtifactSummaryQueryQueryParams {
|
|
15
|
+
artifact_type?: 'DATASET' | 'MODEL';
|
|
16
|
+
}
|
|
14
17
|
export type GetArtifactSummaryOkResponse = ResponseWithPagination<ArtifactSummaryResponseResponse>;
|
|
15
18
|
export type GetArtifactSummaryErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
|
|
16
|
-
export interface GetArtifactSummaryProps extends GetArtifactSummaryQueryPathParams, Omit<FetcherOptions<
|
|
19
|
+
export interface GetArtifactSummaryProps extends GetArtifactSummaryQueryPathParams, Omit<FetcherOptions<GetArtifactSummaryQueryQueryParams, unknown>, 'url'> {
|
|
20
|
+
queryParams: GetArtifactSummaryQueryQueryParams;
|
|
17
21
|
}
|
|
18
22
|
export declare function getArtifactSummary(props: GetArtifactSummaryProps): Promise<GetArtifactSummaryOkResponse>;
|
|
19
23
|
/**
|
|
@@ -10,5 +10,5 @@ export function getArtifactSummary(props) {
|
|
|
10
10
|
* Get Artifact Summary.
|
|
11
11
|
*/
|
|
12
12
|
export function useGetArtifactSummaryQuery(props, options) {
|
|
13
|
-
return useQuery(['GetArtifactSummary', props.registry_ref, props.artifact], ({ signal }) => getArtifactSummary(Object.assign(Object.assign({}, props), { signal })), options);
|
|
13
|
+
return useQuery(['GetArtifactSummary', props.registry_ref, props.artifact, props.queryParams], ({ signal }) => getArtifactSummary(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
14
|
}
|
|
@@ -14,6 +14,7 @@ export interface GetArtifactVersionSummaryQueryPathParams {
|
|
|
14
14
|
}
|
|
15
15
|
export interface GetArtifactVersionSummaryQueryQueryParams {
|
|
16
16
|
digest?: string;
|
|
17
|
+
artifact_type?: 'DATASET' | 'MODEL';
|
|
17
18
|
}
|
|
18
19
|
export type GetArtifactVersionSummaryOkResponse = ResponseWithPagination<ArtifactVersionSummaryResponseResponse>;
|
|
19
20
|
export type GetArtifactVersionSummaryErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
|
|
@@ -12,10 +12,14 @@ export interface UpdateArtifactLabelsMutationPathParams {
|
|
|
12
12
|
registry_ref: string;
|
|
13
13
|
artifact: string;
|
|
14
14
|
}
|
|
15
|
+
export interface UpdateArtifactLabelsMutationQueryParams {
|
|
16
|
+
artifact_type?: 'DATASET' | 'MODEL';
|
|
17
|
+
}
|
|
15
18
|
export type UpdateArtifactLabelsRequestBody = ArtifactLabelRequestRequestBody;
|
|
16
19
|
export type UpdateArtifactLabelsOkResponse = ResponseWithPagination<ArtifactLabelResponseResponse>;
|
|
17
20
|
export type UpdateArtifactLabelsErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
|
|
18
|
-
export interface UpdateArtifactLabelsProps extends UpdateArtifactLabelsMutationPathParams, Omit<FetcherOptions<
|
|
21
|
+
export interface UpdateArtifactLabelsProps extends UpdateArtifactLabelsMutationPathParams, Omit<FetcherOptions<UpdateArtifactLabelsMutationQueryParams, UpdateArtifactLabelsRequestBody>, 'url'> {
|
|
22
|
+
queryParams: UpdateArtifactLabelsMutationQueryParams;
|
|
19
23
|
body: UpdateArtifactLabelsRequestBody;
|
|
20
24
|
}
|
|
21
25
|
export declare function updateArtifactLabels(props: UpdateArtifactLabelsProps): Promise<UpdateArtifactLabelsOkResponse>;
|
|
@@ -9,9 +9,9 @@ export type { DefineSpaceLabelErrorResponse, DefineSpaceLabelMutationPathParams,
|
|
|
9
9
|
export { defineSpaceLabel, useDefineSpaceLabelMutation } from './hooks/useDefineSpaceLabelMutation';
|
|
10
10
|
export type { DefineSpaceLabelValueErrorResponse, DefineSpaceLabelValueMutationPathParams, DefineSpaceLabelValueOkResponse, DefineSpaceLabelValueProps, DefineSpaceLabelValueRequestBody, } from './hooks/useDefineSpaceLabelValueMutation';
|
|
11
11
|
export { defineSpaceLabelValue, useDefineSpaceLabelValueMutation, } from './hooks/useDefineSpaceLabelValueMutation';
|
|
12
|
-
export type { DeleteArtifactErrorResponse, DeleteArtifactMutationPathParams, DeleteArtifactOkResponse, DeleteArtifactProps, } from './hooks/useDeleteArtifactMutation';
|
|
12
|
+
export type { DeleteArtifactErrorResponse, DeleteArtifactMutationPathParams, DeleteArtifactMutationQueryParams, DeleteArtifactOkResponse, DeleteArtifactProps, } from './hooks/useDeleteArtifactMutation';
|
|
13
13
|
export { deleteArtifact, useDeleteArtifactMutation } from './hooks/useDeleteArtifactMutation';
|
|
14
|
-
export type { DeleteArtifactVersionErrorResponse, DeleteArtifactVersionMutationPathParams, DeleteArtifactVersionOkResponse, DeleteArtifactVersionProps, } from './hooks/useDeleteArtifactVersionMutation';
|
|
14
|
+
export type { DeleteArtifactVersionErrorResponse, DeleteArtifactVersionMutationPathParams, DeleteArtifactVersionMutationQueryParams, DeleteArtifactVersionOkResponse, DeleteArtifactVersionProps, } from './hooks/useDeleteArtifactVersionMutation';
|
|
15
15
|
export { deleteArtifactVersion, useDeleteArtifactVersionMutation, } from './hooks/useDeleteArtifactVersionMutation';
|
|
16
16
|
export type { DeleteQuarantineFilePathErrorResponse, DeleteQuarantineFilePathMutationPathParams, DeleteQuarantineFilePathMutationQueryParams, DeleteQuarantineFilePathOkResponse, DeleteQuarantineFilePathProps, } from './hooks/useDeleteQuarantineFilePathMutation';
|
|
17
17
|
export { deleteQuarantineFilePath, useDeleteQuarantineFilePathMutation, } from './hooks/useDeleteQuarantineFilePathMutation';
|
|
@@ -39,7 +39,7 @@ export type { GetArtifactDeploymentsErrorResponse, GetArtifactDeploymentsOkRespo
|
|
|
39
39
|
export { getArtifactDeployments, useGetArtifactDeploymentsQuery, } from './hooks/useGetArtifactDeploymentsQuery';
|
|
40
40
|
export type { GetArtifactDetailsErrorResponse, GetArtifactDetailsOkResponse, GetArtifactDetailsProps, GetArtifactDetailsQueryPathParams, GetArtifactDetailsQueryQueryParams, } from './hooks/useGetArtifactDetailsQuery';
|
|
41
41
|
export { getArtifactDetails, useGetArtifactDetailsQuery } from './hooks/useGetArtifactDetailsQuery';
|
|
42
|
-
export type { GetArtifactFileErrorResponse, GetArtifactFileOkResponse, GetArtifactFileProps, GetArtifactFileQueryPathParams, } from './hooks/useGetArtifactFileQuery';
|
|
42
|
+
export type { GetArtifactFileErrorResponse, GetArtifactFileOkResponse, GetArtifactFileProps, GetArtifactFileQueryPathParams, GetArtifactFileQueryQueryParams, } from './hooks/useGetArtifactFileQuery';
|
|
43
43
|
export { getArtifactFile, useGetArtifactFileQuery } from './hooks/useGetArtifactFileQuery';
|
|
44
44
|
export type { GetArtifactFilesErrorResponse, GetArtifactFilesOkResponse, GetArtifactFilesProps, GetArtifactFilesQueryPathParams, GetArtifactFilesQueryQueryParams, } from './hooks/useGetArtifactFilesQuery';
|
|
45
45
|
export { getArtifactFiles, useGetArtifactFilesQuery } from './hooks/useGetArtifactFilesQuery';
|
|
@@ -49,7 +49,7 @@ export type { GetArtifactStatsForSpaceErrorResponse, GetArtifactStatsForSpaceOkR
|
|
|
49
49
|
export { getArtifactStatsForSpace, useGetArtifactStatsForSpaceQuery, } from './hooks/useGetArtifactStatsForSpaceQuery';
|
|
50
50
|
export type { GetArtifactStatsErrorResponse, GetArtifactStatsOkResponse, GetArtifactStatsProps, GetArtifactStatsQueryPathParams, GetArtifactStatsQueryQueryParams, } from './hooks/useGetArtifactStatsQuery';
|
|
51
51
|
export { getArtifactStats, useGetArtifactStatsQuery } from './hooks/useGetArtifactStatsQuery';
|
|
52
|
-
export type { GetArtifactSummaryErrorResponse, GetArtifactSummaryOkResponse, GetArtifactSummaryProps, GetArtifactSummaryQueryPathParams, } from './hooks/useGetArtifactSummaryQuery';
|
|
52
|
+
export type { GetArtifactSummaryErrorResponse, GetArtifactSummaryOkResponse, GetArtifactSummaryProps, GetArtifactSummaryQueryPathParams, GetArtifactSummaryQueryQueryParams, } from './hooks/useGetArtifactSummaryQuery';
|
|
53
53
|
export { getArtifactSummary, useGetArtifactSummaryQuery } from './hooks/useGetArtifactSummaryQuery';
|
|
54
54
|
export type { GetArtifactVersionSummaryErrorResponse, GetArtifactVersionSummaryOkResponse, GetArtifactVersionSummaryProps, GetArtifactVersionSummaryQueryPathParams, GetArtifactVersionSummaryQueryQueryParams, } from './hooks/useGetArtifactVersionSummaryQuery';
|
|
55
55
|
export { getArtifactVersionSummary, useGetArtifactVersionSummaryQuery, } from './hooks/useGetArtifactVersionSummaryQuery';
|
|
@@ -109,7 +109,7 @@ export type { StartMigrationErrorResponse, StartMigrationMutationPathParams, Sta
|
|
|
109
109
|
export { startMigration, useStartMigrationMutation } from './hooks/useStartMigrationMutation';
|
|
110
110
|
export type { StopMigrationErrorResponse, StopMigrationMutationPathParams, StopMigrationOkResponse, StopMigrationProps, } from './hooks/useStopMigrationMutation';
|
|
111
111
|
export { stopMigration, useStopMigrationMutation } from './hooks/useStopMigrationMutation';
|
|
112
|
-
export type { UpdateArtifactLabelsErrorResponse, UpdateArtifactLabelsMutationPathParams, UpdateArtifactLabelsOkResponse, UpdateArtifactLabelsProps, UpdateArtifactLabelsRequestBody, } from './hooks/useUpdateArtifactLabelsMutation';
|
|
112
|
+
export type { UpdateArtifactLabelsErrorResponse, UpdateArtifactLabelsMutationPathParams, UpdateArtifactLabelsMutationQueryParams, UpdateArtifactLabelsOkResponse, UpdateArtifactLabelsProps, UpdateArtifactLabelsRequestBody, } from './hooks/useUpdateArtifactLabelsMutation';
|
|
113
113
|
export { updateArtifactLabels, useUpdateArtifactLabelsMutation, } from './hooks/useUpdateArtifactLabelsMutation';
|
|
114
114
|
export type { UpdateReplicationRuleErrorResponse, UpdateReplicationRuleMutationPathParams, UpdateReplicationRuleOkResponse, UpdateReplicationRuleProps, UpdateReplicationRuleRequestBody, } from './hooks/useUpdateReplicationRuleMutation';
|
|
115
115
|
export { updateReplicationRule, useUpdateReplicationRuleMutation, } from './hooks/useUpdateReplicationRuleMutation';
|
|
@@ -173,6 +173,7 @@ export type { ArtifactLabelRequest } from './schemas/ArtifactLabelRequest';
|
|
|
173
173
|
export type { ArtifactMetadata } from './schemas/ArtifactMetadata';
|
|
174
174
|
export type { ArtifactStats } from './schemas/ArtifactStats';
|
|
175
175
|
export type { ArtifactSummary } from './schemas/ArtifactSummary';
|
|
176
|
+
export type { ArtifactType } from './schemas/ArtifactType';
|
|
176
177
|
export type { ArtifactVersionMetadata } from './schemas/ArtifactVersionMetadata';
|
|
177
178
|
export type { ArtifactVersionSummary } from './schemas/ArtifactVersionSummary';
|
|
178
179
|
export type { AuthType } from './schemas/AuthType';
|
|
@@ -207,6 +208,7 @@ export type { GoArtifactDetailConfig } from './schemas/GoArtifactDetailConfig';
|
|
|
207
208
|
export type { HelmArtifactDetail } from './schemas/HelmArtifactDetail';
|
|
208
209
|
export type { HelmArtifactDetailConfig } from './schemas/HelmArtifactDetailConfig';
|
|
209
210
|
export type { HelmArtifactManifest } from './schemas/HelmArtifactManifest';
|
|
211
|
+
export type { HuggingFaceArtifactDetailConfig } from './schemas/HuggingFaceArtifactDetailConfig';
|
|
210
212
|
export type { JfrogReplicationRegistry } from './schemas/JfrogReplicationRegistry';
|
|
211
213
|
export type { ListArtifact } from './schemas/ListArtifact';
|
|
212
214
|
export type { ListArtifactLabel } from './schemas/ListArtifactLabel';
|
|
@@ -8,11 +8,14 @@ import type { RpmArtifactDetailConfig } from '../schemas/RpmArtifactDetailConfig
|
|
|
8
8
|
import type { NugetArtifactDetailConfig } from '../schemas/NugetArtifactDetailConfig';
|
|
9
9
|
import type { CargoArtifactDetailConfig } from '../schemas/CargoArtifactDetailConfig';
|
|
10
10
|
import type { GoArtifactDetailConfig } from '../schemas/GoArtifactDetailConfig';
|
|
11
|
+
import type { HuggingFaceArtifactDetailConfig } from '../schemas/HuggingFaceArtifactDetailConfig';
|
|
12
|
+
import type { ArtifactType } from '../schemas/ArtifactType';
|
|
11
13
|
import type { PackageType } from '../schemas/PackageType';
|
|
12
14
|
/**
|
|
13
15
|
* Artifact Detail
|
|
14
16
|
*/
|
|
15
|
-
export type ArtifactDetail = (DockerArtifactDetailConfig | HelmArtifactDetailConfig | GenericArtifactDetailConfig | MavenArtifactDetailConfig | PythonArtifactDetailConfig | NpmArtifactDetailConfig | RpmArtifactDetailConfig | NugetArtifactDetailConfig | CargoArtifactDetailConfig | GoArtifactDetailConfig) & {
|
|
17
|
+
export type ArtifactDetail = (DockerArtifactDetailConfig | HelmArtifactDetailConfig | GenericArtifactDetailConfig | MavenArtifactDetailConfig | PythonArtifactDetailConfig | NpmArtifactDetailConfig | RpmArtifactDetailConfig | NugetArtifactDetailConfig | CargoArtifactDetailConfig | GoArtifactDetailConfig | HuggingFaceArtifactDetailConfig) & {
|
|
18
|
+
artifactType?: ArtifactType;
|
|
16
19
|
createdAt?: string;
|
|
17
20
|
createdBy?: string;
|
|
18
21
|
/**
|
|
@@ -23,6 +26,7 @@ export type ArtifactDetail = (DockerArtifactDetailConfig | HelmArtifactDetailCon
|
|
|
23
26
|
modifiedAt?: string;
|
|
24
27
|
name?: string;
|
|
25
28
|
packageType: PackageType;
|
|
29
|
+
quarantineReason?: string;
|
|
26
30
|
size?: string;
|
|
27
31
|
version: string;
|
|
28
32
|
};
|
|
@@ -1,20 +1,24 @@
|
|
|
1
|
+
import type { ArtifactType } from '../schemas/ArtifactType';
|
|
1
2
|
import type { DeploymentMetadata } from '../schemas/DeploymentMetadata';
|
|
2
3
|
import type { PackageType } from '../schemas/PackageType';
|
|
3
4
|
/**
|
|
4
5
|
* Artifact Metadata
|
|
5
6
|
*/
|
|
6
7
|
export interface ArtifactMetadata {
|
|
8
|
+
artifactType?: ArtifactType;
|
|
7
9
|
deploymentMetadata?: DeploymentMetadata;
|
|
8
10
|
/**
|
|
9
11
|
* @format int64
|
|
10
12
|
*/
|
|
11
13
|
downloadsCount?: number;
|
|
14
|
+
isQuarantined?: boolean;
|
|
12
15
|
labels?: string[];
|
|
13
16
|
lastModified?: string;
|
|
14
17
|
latestVersion: string;
|
|
15
18
|
name: string;
|
|
16
19
|
packageType?: PackageType;
|
|
17
20
|
pullCommand?: string;
|
|
21
|
+
quarantineReason?: string;
|
|
18
22
|
registryIdentifier: string;
|
|
19
23
|
registryPath: string;
|
|
20
24
|
version: string;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
import type { ArtifactType } from '../schemas/ArtifactType';
|
|
1
2
|
import type { PackageType } from '../schemas/PackageType';
|
|
2
3
|
/**
|
|
3
4
|
* Harness Artifact Summary
|
|
4
5
|
*/
|
|
5
6
|
export interface ArtifactSummary {
|
|
7
|
+
artifactType?: ArtifactType;
|
|
6
8
|
createdAt?: string;
|
|
7
9
|
/**
|
|
8
10
|
* @format int64
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
+
import type { ArtifactType } from '../schemas/ArtifactType';
|
|
1
2
|
import type { DeploymentMetadata } from '../schemas/DeploymentMetadata';
|
|
2
3
|
import type { PackageType } from '../schemas/PackageType';
|
|
3
4
|
/**
|
|
4
5
|
* Artifact Version Metadata
|
|
5
6
|
*/
|
|
6
7
|
export interface ArtifactVersionMetadata {
|
|
8
|
+
artifactType?: ArtifactType;
|
|
7
9
|
deploymentMetadata?: DeploymentMetadata;
|
|
8
10
|
/**
|
|
9
11
|
* @format int64
|
|
@@ -22,6 +24,7 @@ export interface ArtifactVersionMetadata {
|
|
|
22
24
|
name: string;
|
|
23
25
|
packageType?: PackageType;
|
|
24
26
|
pullCommand?: string;
|
|
27
|
+
quarantineReason?: string;
|
|
25
28
|
registryIdentifier: string;
|
|
26
29
|
registryPath: string;
|
|
27
30
|
size?: string;
|
|
@@ -1,10 +1,14 @@
|
|
|
1
|
+
import type { ArtifactType } from '../schemas/ArtifactType';
|
|
1
2
|
import type { PackageType } from '../schemas/PackageType';
|
|
2
3
|
/**
|
|
3
4
|
* Docker Artifact Version Summary
|
|
4
5
|
*/
|
|
5
6
|
export interface ArtifactVersionSummary {
|
|
7
|
+
artifactType?: ArtifactType;
|
|
6
8
|
imageName: string;
|
|
9
|
+
isQuarantined?: boolean;
|
|
7
10
|
packageType: PackageType;
|
|
11
|
+
quarantineReason?: string;
|
|
8
12
|
sscaArtifactId?: string;
|
|
9
13
|
sscaArtifactSourceId?: string;
|
|
10
14
|
stoExecutionId?: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* refers to package
|
|
3
3
|
*/
|
|
4
|
-
export type PackageType = 'CARGO' | 'DOCKER' | 'GENERIC' | 'GO' | 'HELM' | 'MAVEN' | 'NPM' | 'NUGET' | 'PYTHON' | 'RPM';
|
|
4
|
+
export type PackageType = 'CARGO' | 'DOCKER' | 'GENERIC' | 'GO' | 'HELM' | 'HUGGINGFACE' | 'MAVEN' | 'NPM' | 'NUGET' | 'PYTHON' | 'RPM';
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
import type { ArtifactType } from '../schemas/ArtifactType';
|
|
1
2
|
import type { PackageType } from '../schemas/PackageType';
|
|
2
3
|
/**
|
|
3
4
|
* Artifact Metadata
|
|
4
5
|
*/
|
|
5
6
|
export interface RegistryArtifactMetadata {
|
|
7
|
+
artifactType?: ArtifactType;
|
|
6
8
|
/**
|
|
7
9
|
* @format int64
|
|
8
10
|
*/
|
|
@@ -13,6 +15,7 @@ export interface RegistryArtifactMetadata {
|
|
|
13
15
|
latestVersion: string;
|
|
14
16
|
name: string;
|
|
15
17
|
packageType?: PackageType;
|
|
18
|
+
quarantineReason?: string;
|
|
16
19
|
registryIdentifier: string;
|
|
17
20
|
registryPath: string;
|
|
18
21
|
}
|
|
@@ -8,6 +8,6 @@ import type { AuthType } from '../schemas/AuthType';
|
|
|
8
8
|
export interface UpstreamConfig {
|
|
9
9
|
auth?: UserPassword | Anonymous | AccessKeySecretKey;
|
|
10
10
|
authType: AuthType;
|
|
11
|
-
source?: 'AwsEcr' | 'Crates' | 'Custom' | 'Dockerhub' | 'GoProxy' | 'MavenCentral' | 'NpmJs' | 'NugetOrg' | 'PyPi';
|
|
11
|
+
source?: 'AwsEcr' | 'Crates' | 'Custom' | 'Dockerhub' | 'GoProxy' | 'HuggingFace' | 'MavenCentral' | 'NpmJs' | 'NugetOrg' | 'PyPi';
|
|
12
12
|
url?: string;
|
|
13
13
|
}
|