@harnessio/react-har-service-client 0.46.0 → 0.48.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/useGetArtifactScansQuery.d.ts +1 -0
- package/dist/har-service/src/services/hooks/useGetBulkScanEvaluationStatusQuery.d.ts +23 -0
- package/dist/har-service/src/services/hooks/useGetBulkScanEvaluationStatusQuery.js +14 -0
- package/dist/har-service/src/services/hooks/useInitiateBulkScanEvaluationMutation.d.ts +23 -0
- package/dist/har-service/src/services/hooks/useInitiateBulkScanEvaluationMutation.js +14 -0
- package/dist/har-service/src/services/index.d.ts +15 -0
- package/dist/har-service/src/services/index.js +2 -0
- package/dist/har-service/src/services/requestBodies/BulkScanEvaluationRequestRequestBody.d.ts +2 -0
- package/dist/har-service/src/services/requestBodies/BulkScanEvaluationRequestRequestBody.js +1 -0
- package/dist/har-service/src/services/responses/BulkScanEvaluationAcceptedResponse.d.ts +4 -0
- package/dist/har-service/src/services/responses/BulkScanEvaluationAcceptedResponse.js +1 -0
- package/dist/har-service/src/services/responses/BulkScanEvaluationStatusResponseResponse.d.ts +4 -0
- package/dist/har-service/src/services/responses/BulkScanEvaluationStatusResponseResponse.js +1 -0
- package/dist/har-service/src/services/schemas/ArtifactDetail.d.ts +2 -1
- package/dist/har-service/src/services/schemas/ArtifactMetadata.d.ts +1 -0
- package/dist/har-service/src/services/schemas/ArtifactScanDetails.d.ts +2 -4
- package/dist/har-service/src/services/schemas/ArtifactScanInput.d.ts +13 -0
- package/dist/har-service/src/services/schemas/ArtifactScanInput.js +4 -0
- package/dist/har-service/src/services/schemas/ArtifactVersionMetadata.d.ts +1 -0
- package/dist/har-service/src/services/schemas/ArtifactVersionSummary.d.ts +1 -0
- package/dist/har-service/src/services/schemas/BulkScanEvaluationAcceptedData.d.ts +9 -0
- package/dist/har-service/src/services/schemas/BulkScanEvaluationAcceptedData.js +4 -0
- package/dist/har-service/src/services/schemas/BulkScanEvaluationRequest.d.ts +15 -0
- package/dist/har-service/src/services/schemas/BulkScanEvaluationRequest.js +1 -0
- package/dist/har-service/src/services/schemas/BulkScanEvaluationStatusData.d.ts +22 -0
- package/dist/har-service/src/services/schemas/BulkScanEvaluationStatusData.js +1 -0
- package/dist/har-service/src/services/schemas/BulkScanResultItem.d.ts +22 -0
- package/dist/har-service/src/services/schemas/BulkScanResultItem.js +4 -0
- package/dist/har-service/src/services/schemas/OssRiskLevelPolicyFailureDetailConfig.d.ts +9 -0
- package/dist/har-service/src/services/schemas/OssRiskLevelPolicyFailureDetailConfig.js +4 -0
- package/dist/har-service/src/services/schemas/PackageType.d.ts +1 -1
- package/dist/har-service/src/services/schemas/PolicyFailureDetail.d.ts +2 -1
- package/dist/har-service/src/services/schemas/PolicyFailureDetailCategory.d.ts +1 -1
- package/dist/har-service/src/services/schemas/PolicySetFailureDetail.d.ts +15 -0
- package/dist/har-service/src/services/schemas/PolicySetFailureDetail.js +1 -0
- package/dist/har-service/src/services/schemas/SwiftArtifactDetailConfig.d.ts +8 -0
- package/dist/har-service/src/services/schemas/SwiftArtifactDetailConfig.js +4 -0
- package/dist/har-service/src/services/schemas/VersionMetadata.d.ts +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { BulkScanEvaluationStatusResponseResponse } from '../responses/BulkScanEvaluationStatusResponseResponse';
|
|
3
|
+
import type { V3Error } from '../schemas/V3Error';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface GetBulkScanEvaluationStatusQueryPathParams {
|
|
7
|
+
evaluation_id: string;
|
|
8
|
+
}
|
|
9
|
+
export interface GetBulkScanEvaluationStatusQueryQueryParams {
|
|
10
|
+
account_identifier: string;
|
|
11
|
+
org_identifier?: string;
|
|
12
|
+
project_identifier?: string;
|
|
13
|
+
}
|
|
14
|
+
export type GetBulkScanEvaluationStatusOkResponse = ResponseWithPagination<BulkScanEvaluationStatusResponseResponse>;
|
|
15
|
+
export type GetBulkScanEvaluationStatusErrorResponse = V3Error;
|
|
16
|
+
export interface GetBulkScanEvaluationStatusProps extends GetBulkScanEvaluationStatusQueryPathParams, Omit<FetcherOptions<GetBulkScanEvaluationStatusQueryQueryParams, unknown>, 'url'> {
|
|
17
|
+
queryParams: GetBulkScanEvaluationStatusQueryQueryParams;
|
|
18
|
+
}
|
|
19
|
+
export declare function getBulkScanEvaluationStatus(props: GetBulkScanEvaluationStatusProps): Promise<GetBulkScanEvaluationStatusOkResponse>;
|
|
20
|
+
/**
|
|
21
|
+
* Returns the status of a bulk scan evaluation
|
|
22
|
+
*/
|
|
23
|
+
export declare function useGetBulkScanEvaluationStatusQuery(props: GetBulkScanEvaluationStatusProps, options?: Omit<UseQueryOptions<GetBulkScanEvaluationStatusOkResponse, GetBulkScanEvaluationStatusErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetBulkScanEvaluationStatusOkResponse, V3Error>;
|
|
@@ -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 getBulkScanEvaluationStatus(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v3/scans/bulk-evaluate/${props.evaluation_id}`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Returns the status of a bulk scan evaluation
|
|
11
|
+
*/
|
|
12
|
+
export function useGetBulkScanEvaluationStatusQuery(props, options) {
|
|
13
|
+
return useQuery(['GetBulkScanEvaluationStatus', props.evaluation_id, props.queryParams], ({ signal }) => getBulkScanEvaluationStatus(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { BulkScanEvaluationAcceptedResponse } from '../responses/BulkScanEvaluationAcceptedResponse';
|
|
3
|
+
import type { V3Error } from '../schemas/V3Error';
|
|
4
|
+
import type { BulkScanEvaluationRequestRequestBody } from '../requestBodies/BulkScanEvaluationRequestRequestBody';
|
|
5
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
6
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
7
|
+
export interface InitiateBulkScanEvaluationMutationQueryParams {
|
|
8
|
+
account_identifier: string;
|
|
9
|
+
org_identifier?: string;
|
|
10
|
+
project_identifier?: string;
|
|
11
|
+
}
|
|
12
|
+
export type InitiateBulkScanEvaluationRequestBody = BulkScanEvaluationRequestRequestBody;
|
|
13
|
+
export type InitiateBulkScanEvaluationOkResponse = ResponseWithPagination<BulkScanEvaluationAcceptedResponse>;
|
|
14
|
+
export type InitiateBulkScanEvaluationErrorResponse = V3Error;
|
|
15
|
+
export interface InitiateBulkScanEvaluationProps extends Omit<FetcherOptions<InitiateBulkScanEvaluationMutationQueryParams, InitiateBulkScanEvaluationRequestBody>, 'url'> {
|
|
16
|
+
queryParams: InitiateBulkScanEvaluationMutationQueryParams;
|
|
17
|
+
body: InitiateBulkScanEvaluationRequestBody;
|
|
18
|
+
}
|
|
19
|
+
export declare function initiateBulkScanEvaluation(props: InitiateBulkScanEvaluationProps): Promise<InitiateBulkScanEvaluationOkResponse>;
|
|
20
|
+
/**
|
|
21
|
+
* Triggers firewall policy evaluation for multiple artifacts (max 50)
|
|
22
|
+
*/
|
|
23
|
+
export declare function useInitiateBulkScanEvaluationMutation(options?: Omit<UseMutationOptions<InitiateBulkScanEvaluationOkResponse, InitiateBulkScanEvaluationErrorResponse, InitiateBulkScanEvaluationProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<InitiateBulkScanEvaluationOkResponse, V3Error, InitiateBulkScanEvaluationProps, 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 initiateBulkScanEvaluation(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v3/scans/bulk-evaluate`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Triggers firewall policy evaluation for multiple artifacts (max 50)
|
|
11
|
+
*/
|
|
12
|
+
export function useInitiateBulkScanEvaluationMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => initiateBulkScanEvaluation(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -77,6 +77,8 @@ export type { GetArtifactVersionSummaryErrorResponse, GetArtifactVersionSummaryO
|
|
|
77
77
|
export { getArtifactVersionSummary, useGetArtifactVersionSummaryQuery, } from './hooks/useGetArtifactVersionSummaryQuery';
|
|
78
78
|
export type { GetBulkDownloadRequestStatusErrorResponse, GetBulkDownloadRequestStatusOkResponse, GetBulkDownloadRequestStatusProps, GetBulkDownloadRequestStatusQueryPathParams, GetBulkDownloadRequestStatusQueryQueryParams, } from './hooks/useGetBulkDownloadRequestStatusQuery';
|
|
79
79
|
export { getBulkDownloadRequestStatus, useGetBulkDownloadRequestStatusQuery, } from './hooks/useGetBulkDownloadRequestStatusQuery';
|
|
80
|
+
export type { GetBulkScanEvaluationStatusErrorResponse, GetBulkScanEvaluationStatusOkResponse, GetBulkScanEvaluationStatusProps, GetBulkScanEvaluationStatusQueryPathParams, GetBulkScanEvaluationStatusQueryQueryParams, } from './hooks/useGetBulkScanEvaluationStatusQuery';
|
|
81
|
+
export { getBulkScanEvaluationStatus, useGetBulkScanEvaluationStatusQuery, } from './hooks/useGetBulkScanEvaluationStatusQuery';
|
|
80
82
|
export type { GetClientSetupDetailsErrorResponse, GetClientSetupDetailsOkResponse, GetClientSetupDetailsProps, GetClientSetupDetailsQueryPathParams, GetClientSetupDetailsQueryQueryParams, } from './hooks/useGetClientSetupDetailsQuery';
|
|
81
83
|
export { getClientSetupDetails, useGetClientSetupDetailsQuery, } from './hooks/useGetClientSetupDetailsQuery';
|
|
82
84
|
export type { GetDockerArtifactDetailsErrorResponse, GetDockerArtifactDetailsOkResponse, GetDockerArtifactDetailsProps, GetDockerArtifactDetailsQueryPathParams, GetDockerArtifactDetailsQueryQueryParams, } from './hooks/useGetDockerArtifactDetailsQuery';
|
|
@@ -115,6 +117,8 @@ export type { GetWebhookExecutionErrorResponse, GetWebhookExecutionOkResponse, G
|
|
|
115
117
|
export { getWebhookExecution, useGetWebhookExecutionQuery, } from './hooks/useGetWebhookExecutionQuery';
|
|
116
118
|
export type { GetWebhookErrorResponse, GetWebhookOkResponse, GetWebhookProps, GetWebhookQueryPathParams, } from './hooks/useGetWebhookQuery';
|
|
117
119
|
export { getWebhook, useGetWebhookQuery } from './hooks/useGetWebhookQuery';
|
|
120
|
+
export type { InitiateBulkScanEvaluationErrorResponse, InitiateBulkScanEvaluationMutationQueryParams, InitiateBulkScanEvaluationOkResponse, InitiateBulkScanEvaluationProps, InitiateBulkScanEvaluationRequestBody, } from './hooks/useInitiateBulkScanEvaluationMutation';
|
|
121
|
+
export { initiateBulkScanEvaluation, useInitiateBulkScanEvaluationMutation, } from './hooks/useInitiateBulkScanEvaluationMutation';
|
|
118
122
|
export type { ListArtifactLabelsErrorResponse, ListArtifactLabelsOkResponse, ListArtifactLabelsProps, ListArtifactLabelsQueryPathParams, ListArtifactLabelsQueryQueryParams, } from './hooks/useListArtifactLabelsQuery';
|
|
119
123
|
export { listArtifactLabels, useListArtifactLabelsQuery } from './hooks/useListArtifactLabelsQuery';
|
|
120
124
|
export type { ListMigrationImagesErrorResponse, ListMigrationImagesOkResponse, ListMigrationImagesProps, ListMigrationImagesQueryPathParams, ListMigrationImagesQueryQueryParams, } from './hooks/useListMigrationImagesQuery';
|
|
@@ -175,6 +179,7 @@ export type { AddTagsRequestRequestBody } from './requestBodies/AddTagsRequestRe
|
|
|
175
179
|
export type { ArtifactLabelRequestRequestBody } from './requestBodies/ArtifactLabelRequestRequestBody';
|
|
176
180
|
export type { ArtifactScanEvaluateRequestRequestBody } from './requestBodies/ArtifactScanEvaluateRequestRequestBody';
|
|
177
181
|
export type { BulkDownloadFilesRequestRequestBody } from './requestBodies/BulkDownloadFilesRequestRequestBody';
|
|
182
|
+
export type { BulkScanEvaluationRequestRequestBody } from './requestBodies/BulkScanEvaluationRequestRequestBody';
|
|
178
183
|
export type { MetadataRequestRequestBody } from './requestBodies/MetadataRequestRequestBody';
|
|
179
184
|
export type { QuarantineRequestRequestBody } from './requestBodies/QuarantineRequestRequestBody';
|
|
180
185
|
export type { RegistryRequestRequestBody } from './requestBodies/RegistryRequestRequestBody';
|
|
@@ -191,6 +196,8 @@ export type { ArtifactStatsResponseResponse } from './responses/ArtifactStatsRes
|
|
|
191
196
|
export type { ArtifactSummaryResponseResponse } from './responses/ArtifactSummaryResponseResponse';
|
|
192
197
|
export type { ArtifactVersionSummaryResponseResponse } from './responses/ArtifactVersionSummaryResponseResponse';
|
|
193
198
|
export type { BadRequestResponse } from './responses/BadRequestResponse';
|
|
199
|
+
export type { BulkScanEvaluationAcceptedResponse } from './responses/BulkScanEvaluationAcceptedResponse';
|
|
200
|
+
export type { BulkScanEvaluationStatusResponseResponse } from './responses/BulkScanEvaluationStatusResponseResponse';
|
|
194
201
|
export type { ClientSetupDetailsResponseResponse } from './responses/ClientSetupDetailsResponseResponse';
|
|
195
202
|
export type { CopyResponseResponse } from './responses/CopyResponseResponse';
|
|
196
203
|
export type { CreateBulkDownloadRequestResponseResponse } from './responses/CreateBulkDownloadRequestResponseResponse';
|
|
@@ -249,6 +256,7 @@ export type { ArtifactScan } from './schemas/ArtifactScan';
|
|
|
249
256
|
export type { ArtifactScanDetails } from './schemas/ArtifactScanDetails';
|
|
250
257
|
export type { ArtifactScanEvaluateRequest } from './schemas/ArtifactScanEvaluateRequest';
|
|
251
258
|
export type { ArtifactScanEvaluateRequestStatus } from './schemas/ArtifactScanEvaluateRequestStatus';
|
|
259
|
+
export type { ArtifactScanInput } from './schemas/ArtifactScanInput';
|
|
252
260
|
export type { ArtifactStats } from './schemas/ArtifactStats';
|
|
253
261
|
export type { ArtifactSummary } from './schemas/ArtifactSummary';
|
|
254
262
|
export type { ArtifactType } from './schemas/ArtifactType';
|
|
@@ -259,6 +267,10 @@ export type { BuildDetails } from './schemas/BuildDetails';
|
|
|
259
267
|
export type { BulkDownloadFilesRequestInput } from './schemas/BulkDownloadFilesRequestInput';
|
|
260
268
|
export type { BulkDownloadRequestStatus } from './schemas/BulkDownloadRequestStatus';
|
|
261
269
|
export type { BulkDownloadRequestStatusOutput } from './schemas/BulkDownloadRequestStatusOutput';
|
|
270
|
+
export type { BulkScanEvaluationAcceptedData } from './schemas/BulkScanEvaluationAcceptedData';
|
|
271
|
+
export type { BulkScanEvaluationRequest } from './schemas/BulkScanEvaluationRequest';
|
|
272
|
+
export type { BulkScanEvaluationStatusData } from './schemas/BulkScanEvaluationStatusData';
|
|
273
|
+
export type { BulkScanResultItem } from './schemas/BulkScanResultItem';
|
|
262
274
|
export type { CargoArtifactDetailConfig } from './schemas/CargoArtifactDetailConfig';
|
|
263
275
|
export type { CleanupPolicy } from './schemas/CleanupPolicy';
|
|
264
276
|
export type { ClientSetupDetails } from './schemas/ClientSetupDetails';
|
|
@@ -323,11 +335,13 @@ export type { MigrationImage } from './schemas/MigrationImage';
|
|
|
323
335
|
export type { NpmArtifactDetailConfig } from './schemas/NpmArtifactDetailConfig';
|
|
324
336
|
export type { NugetArtifactDetailConfig } from './schemas/NugetArtifactDetailConfig';
|
|
325
337
|
export type { OciArtifactTag } from './schemas/OciArtifactTag';
|
|
338
|
+
export type { OssRiskLevelPolicyFailureDetailConfig } from './schemas/OssRiskLevelPolicyFailureDetailConfig';
|
|
326
339
|
export type { PackageAgeViolationPolicyFailureDetailConfig } from './schemas/PackageAgeViolationPolicyFailureDetailConfig';
|
|
327
340
|
export type { PackageMetadata } from './schemas/PackageMetadata';
|
|
328
341
|
export type { PackageType } from './schemas/PackageType';
|
|
329
342
|
export type { PolicyFailureDetail } from './schemas/PolicyFailureDetail';
|
|
330
343
|
export type { PolicyFailureDetailCategory } from './schemas/PolicyFailureDetailCategory';
|
|
344
|
+
export type { PolicySetFailureDetail } from './schemas/PolicySetFailureDetail';
|
|
331
345
|
export type { PolicySets } from './schemas/PolicySets';
|
|
332
346
|
export type { PythonArtifactDetailConfig } from './schemas/PythonArtifactDetailConfig';
|
|
333
347
|
export type { QuarantinePath } from './schemas/QuarantinePath';
|
|
@@ -352,6 +366,7 @@ export type { SlsaDetails } from './schemas/SlsaDetails';
|
|
|
352
366
|
export type { Status } from './schemas/Status';
|
|
353
367
|
export type { StoDetails } from './schemas/StoDetails';
|
|
354
368
|
export type { StorageDetails } from './schemas/StorageDetails';
|
|
369
|
+
export type { SwiftArtifactDetailConfig } from './schemas/SwiftArtifactDetailConfig';
|
|
355
370
|
export type { TabSetupStep } from './schemas/TabSetupStep';
|
|
356
371
|
export type { TabSetupStepConfig } from './schemas/TabSetupStepConfig';
|
|
357
372
|
export type { Trigger } from './schemas/Trigger';
|
|
@@ -37,6 +37,7 @@ export { getArtifactStats, useGetArtifactStatsQuery } from './hooks/useGetArtifa
|
|
|
37
37
|
export { getArtifactSummary, useGetArtifactSummaryQuery } from './hooks/useGetArtifactSummaryQuery';
|
|
38
38
|
export { getArtifactVersionSummary, useGetArtifactVersionSummaryQuery, } from './hooks/useGetArtifactVersionSummaryQuery';
|
|
39
39
|
export { getBulkDownloadRequestStatus, useGetBulkDownloadRequestStatusQuery, } from './hooks/useGetBulkDownloadRequestStatusQuery';
|
|
40
|
+
export { getBulkScanEvaluationStatus, useGetBulkScanEvaluationStatusQuery, } from './hooks/useGetBulkScanEvaluationStatusQuery';
|
|
40
41
|
export { getClientSetupDetails, useGetClientSetupDetailsQuery, } from './hooks/useGetClientSetupDetailsQuery';
|
|
41
42
|
export { getDockerArtifactDetails, useGetDockerArtifactDetailsQuery, } from './hooks/useGetDockerArtifactDetailsQuery';
|
|
42
43
|
export { getDockerArtifactIntegrationDetails, useGetDockerArtifactIntegrationDetailsQuery, } from './hooks/useGetDockerArtifactIntegrationDetailsQuery';
|
|
@@ -56,6 +57,7 @@ export { getReplicationRule, useGetReplicationRuleQuery } from './hooks/useGetRe
|
|
|
56
57
|
export { getStorageDetails, useGetStorageDetailsQuery } from './hooks/useGetStorageDetailsQuery';
|
|
57
58
|
export { getWebhookExecution, useGetWebhookExecutionQuery, } from './hooks/useGetWebhookExecutionQuery';
|
|
58
59
|
export { getWebhook, useGetWebhookQuery } from './hooks/useGetWebhookQuery';
|
|
60
|
+
export { initiateBulkScanEvaluation, useInitiateBulkScanEvaluationMutation, } from './hooks/useInitiateBulkScanEvaluationMutation';
|
|
59
61
|
export { listArtifactLabels, useListArtifactLabelsQuery } from './hooks/useListArtifactLabelsQuery';
|
|
60
62
|
export { listMigrationImages, useListMigrationImagesQuery, } from './hooks/useListMigrationImagesQuery';
|
|
61
63
|
export { listPackages, useListPackagesQuery } from './hooks/useListPackagesQuery';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -12,12 +12,13 @@ import type { HuggingFaceArtifactDetailConfig } from '../schemas/HuggingFaceArti
|
|
|
12
12
|
import type { CondaArtifactDetailConfig } from '../schemas/CondaArtifactDetailConfig';
|
|
13
13
|
import type { DartArtifactDetailConfig } from '../schemas/DartArtifactDetailConfig';
|
|
14
14
|
import type { ComposerArtifactDetailConfig } from '../schemas/ComposerArtifactDetailConfig';
|
|
15
|
+
import type { SwiftArtifactDetailConfig } from '../schemas/SwiftArtifactDetailConfig';
|
|
15
16
|
import type { ArtifactType } from '../schemas/ArtifactType';
|
|
16
17
|
import type { PackageType } from '../schemas/PackageType';
|
|
17
18
|
/**
|
|
18
19
|
* Artifact Detail
|
|
19
20
|
*/
|
|
20
|
-
export type ArtifactDetail = (DockerArtifactDetailConfig | HelmArtifactDetailConfig | GenericArtifactDetailConfig | MavenArtifactDetailConfig | PythonArtifactDetailConfig | NpmArtifactDetailConfig | RpmArtifactDetailConfig | NugetArtifactDetailConfig | CargoArtifactDetailConfig | GoArtifactDetailConfig | HuggingFaceArtifactDetailConfig | CondaArtifactDetailConfig | DartArtifactDetailConfig | ComposerArtifactDetailConfig) & {
|
|
21
|
+
export type ArtifactDetail = (DockerArtifactDetailConfig | HelmArtifactDetailConfig | GenericArtifactDetailConfig | MavenArtifactDetailConfig | PythonArtifactDetailConfig | NpmArtifactDetailConfig | RpmArtifactDetailConfig | NugetArtifactDetailConfig | CargoArtifactDetailConfig | GoArtifactDetailConfig | HuggingFaceArtifactDetailConfig | CondaArtifactDetailConfig | DartArtifactDetailConfig | ComposerArtifactDetailConfig | SwiftArtifactDetailConfig) & {
|
|
21
22
|
artifactType?: ArtifactType;
|
|
22
23
|
createdAt?: string;
|
|
23
24
|
createdBy?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { FixVersionDetails } from '../schemas/FixVersionDetails';
|
|
2
2
|
import type { PackageType } from '../schemas/PackageType';
|
|
3
|
-
import type {
|
|
3
|
+
import type { PolicySetFailureDetail } from '../schemas/PolicySetFailureDetail';
|
|
4
4
|
/**
|
|
5
5
|
* Artifact scans details
|
|
6
6
|
*/
|
|
@@ -18,9 +18,7 @@ export interface ArtifactScanDetails {
|
|
|
18
18
|
*/
|
|
19
19
|
packageName: string;
|
|
20
20
|
packageType: PackageType;
|
|
21
|
-
|
|
22
|
-
policySetName?: string;
|
|
23
|
-
policySetRef?: string;
|
|
21
|
+
policySetFailureDetails: PolicySetFailureDetail[];
|
|
24
22
|
/**
|
|
25
23
|
* Registry ID
|
|
26
24
|
* @format uuid
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { ArtifactScanInput } from '../schemas/ArtifactScanInput';
|
|
2
|
+
/**
|
|
3
|
+
* Request to initiate bulk scan evaluation
|
|
4
|
+
*/
|
|
5
|
+
export interface BulkScanEvaluationRequest {
|
|
6
|
+
/**
|
|
7
|
+
* List of artifacts to evaluate (max 50)
|
|
8
|
+
*/
|
|
9
|
+
artifacts: ArtifactScanInput[];
|
|
10
|
+
/**
|
|
11
|
+
* Registry identifier
|
|
12
|
+
* @format uuid
|
|
13
|
+
*/
|
|
14
|
+
registryId: string;
|
|
15
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { BulkScanResultItem } from '../schemas/BulkScanResultItem';
|
|
2
|
+
/**
|
|
3
|
+
* Response data for bulk scan evaluation status
|
|
4
|
+
*/
|
|
5
|
+
export interface BulkScanEvaluationStatusData {
|
|
6
|
+
/**
|
|
7
|
+
* Error message (only present when status is failure)
|
|
8
|
+
*/
|
|
9
|
+
error?: string | null;
|
|
10
|
+
/**
|
|
11
|
+
* The evaluation ID
|
|
12
|
+
*/
|
|
13
|
+
evaluationId?: string;
|
|
14
|
+
/**
|
|
15
|
+
* List of scan results (only present when status is success)
|
|
16
|
+
*/
|
|
17
|
+
scans?: BulkScanResultItem[] | null;
|
|
18
|
+
/**
|
|
19
|
+
* Status of the evaluation
|
|
20
|
+
*/
|
|
21
|
+
status?: 'FAILURE' | 'PENDING' | 'PROCESSING' | 'SUCCESS';
|
|
22
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Individual scan result item
|
|
3
|
+
*/
|
|
4
|
+
export interface BulkScanResultItem {
|
|
5
|
+
/**
|
|
6
|
+
* Name of the package
|
|
7
|
+
*/
|
|
8
|
+
packageName?: string;
|
|
9
|
+
/**
|
|
10
|
+
* Scan identifier
|
|
11
|
+
* @format uuid
|
|
12
|
+
*/
|
|
13
|
+
scanId?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Scan status
|
|
16
|
+
*/
|
|
17
|
+
scanStatus?: 'ALLOWED' | 'BLOCKED' | 'UNKNOWN' | 'WARN';
|
|
18
|
+
/**
|
|
19
|
+
* Version of the package
|
|
20
|
+
*/
|
|
21
|
+
version?: string;
|
|
22
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Package type. Known values include: DOCKER, MAVEN, PYTHON, GENERIC, HELM, NUGET, NPM, RPM, CARGO, COMPOSER, GO, HUGGINGFACE, CONDA, DART. This field is extensible; clients must handle unknown values.
|
|
2
|
+
* Package type. Known values include: DOCKER, MAVEN, PYTHON, GENERIC, HELM, NUGET, NPM, RPM, CARGO, COMPOSER, GO, HUGGINGFACE, CONDA, DART, SWIFT. This field is extensible; clients must handle unknown values.
|
|
3
3
|
*
|
|
4
4
|
* @example "DOCKER"
|
|
5
5
|
*/
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import type { SecurityPolicyFailureDetailConfig } from '../schemas/SecurityPolicyFailureDetailConfig';
|
|
2
2
|
import type { LicensePolicyFailureDetailConfig } from '../schemas/LicensePolicyFailureDetailConfig';
|
|
3
3
|
import type { PackageAgeViolationPolicyFailureDetailConfig } from '../schemas/PackageAgeViolationPolicyFailureDetailConfig';
|
|
4
|
+
import type { OssRiskLevelPolicyFailureDetailConfig } from '../schemas/OssRiskLevelPolicyFailureDetailConfig';
|
|
4
5
|
import type { PolicyFailureDetailCategory } from '../schemas/PolicyFailureDetailCategory';
|
|
5
6
|
/**
|
|
6
7
|
* Policy failure detail entry.
|
|
7
8
|
*/
|
|
8
|
-
export type PolicyFailureDetail = (SecurityPolicyFailureDetailConfig | LicensePolicyFailureDetailConfig | PackageAgeViolationPolicyFailureDetailConfig) & {
|
|
9
|
+
export type PolicyFailureDetail = (SecurityPolicyFailureDetailConfig | LicensePolicyFailureDetailConfig | PackageAgeViolationPolicyFailureDetailConfig | OssRiskLevelPolicyFailureDetailConfig) & {
|
|
9
10
|
category: PolicyFailureDetailCategory;
|
|
10
11
|
/**
|
|
11
12
|
* Policy name.
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { PolicyFailureDetail } from '../schemas/PolicyFailureDetail';
|
|
2
|
+
/**
|
|
3
|
+
* Policy set failure detail entry.
|
|
4
|
+
*/
|
|
5
|
+
export interface PolicySetFailureDetail {
|
|
6
|
+
policyFailureDetails: PolicyFailureDetail[];
|
|
7
|
+
/**
|
|
8
|
+
* Policy set name.
|
|
9
|
+
*/
|
|
10
|
+
policySetName: string;
|
|
11
|
+
/**
|
|
12
|
+
* Policy set reference.
|
|
13
|
+
*/
|
|
14
|
+
policySetRef: string;
|
|
15
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|