@harnessio/react-har-service-client 0.54.0 → 0.56.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/useAddBuildInfoV3Mutation.d.ts +20 -0
- package/dist/har-service/src/services/hooks/useAddBuildInfoV3Mutation.js +14 -0
- package/dist/har-service/src/services/hooks/useGetArtifactScansV3Query.d.ts +1 -0
- package/dist/har-service/src/services/hooks/useInitiateBulkScanEvaluationV3Mutation.d.ts +1 -1
- package/dist/har-service/src/services/hooks/useInitiateBulkScanEvaluationV3Mutation.js +1 -1
- package/dist/har-service/src/services/hooks/useListPipelineBuildInfoDetailsV3Query.d.ts +38 -0
- package/dist/har-service/src/services/hooks/useListPipelineBuildInfoDetailsV3Query.js +14 -0
- package/dist/har-service/src/services/index.d.ts +19 -1
- package/dist/har-service/src/services/index.js +2 -0
- package/dist/har-service/src/services/requestBodies/BuildInfoRequestV3RequestBody.d.ts +2 -0
- package/dist/har-service/src/services/requestBodies/BuildInfoRequestV3RequestBody.js +1 -0
- package/dist/har-service/src/services/responses/ListPipelineBuildInfoDetailsResponseV3Response.d.ts +2 -0
- package/dist/har-service/src/services/responses/ListPipelineBuildInfoDetailsResponseV3Response.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 +4 -0
- package/dist/har-service/src/services/schemas/ArtifactScanDetailsV3.d.ts +6 -0
- package/dist/har-service/src/services/schemas/ArtifactScanV3.d.ts +21 -2
- package/dist/har-service/src/services/schemas/BuildDetailEntryV3.d.ts +30 -0
- package/dist/har-service/src/services/schemas/BuildDetailsV3.d.ts +6 -0
- package/dist/har-service/src/services/schemas/BuildDetailsV3.js +1 -0
- package/dist/har-service/src/services/schemas/BuildInfoMetadataV3.d.ts +5 -0
- package/dist/har-service/src/services/schemas/BuildInfoMetadataV3.js +1 -0
- package/dist/har-service/src/services/schemas/BuildInfoNodeV3.d.ts +13 -0
- package/dist/har-service/src/services/schemas/BuildInfoNodeV3.js +4 -0
- package/dist/har-service/src/services/schemas/BuildInfoRequestInputV3.d.ts +22 -0
- package/dist/har-service/src/services/schemas/BuildInfoRequestInputV3.js +1 -0
- package/dist/har-service/src/services/schemas/BulkScanEvaluationRequestV3.d.ts +1 -1
- package/dist/har-service/src/services/schemas/ListPipelineBuildInfoDetailsResponseBodyV3.d.ts +10 -0
- package/dist/har-service/src/services/schemas/ListPipelineBuildInfoDetailsResponseBodyV3.js +1 -0
- package/dist/har-service/src/services/schemas/PackageMetadata.d.ts +2 -0
- package/dist/har-service/src/services/schemas/PackageType.d.ts +1 -1
- package/dist/har-service/src/services/schemas/PackageTypeV3.d.ts +1 -1
- package/dist/har-service/src/services/schemas/PerformedBy.d.ts +7 -0
- package/dist/har-service/src/services/schemas/PerformedBy.js +4 -0
- package/dist/har-service/src/services/schemas/PipelineBuildInfoDetailV3.d.ts +54 -0
- package/dist/har-service/src/services/schemas/PipelineBuildInfoDetailV3.js +1 -0
- package/dist/har-service/src/services/schemas/PipelineBuildInfoMetaV3.d.ts +15 -0
- package/dist/har-service/src/services/schemas/PipelineBuildInfoMetaV3.js +4 -0
- package/dist/har-service/src/services/schemas/PipelineBuildInfoViolationV3.d.ts +17 -0
- package/dist/har-service/src/services/schemas/PipelineBuildInfoViolationV3.js +4 -0
- package/dist/har-service/src/services/schemas/PipelineContextV3.d.ts +29 -0
- package/dist/har-service/src/services/schemas/PipelineContextV3.js +4 -0
- package/dist/har-service/src/services/schemas/PuppetArtifactDetailConfig.d.ts +8 -0
- package/dist/har-service/src/services/schemas/PuppetArtifactDetailConfig.js +4 -0
- package/dist/har-service/src/services/schemas/RegistryMetadata.d.ts +2 -0
- package/dist/har-service/src/services/schemas/RootPackageV3.d.ts +13 -0
- package/dist/har-service/src/services/schemas/RootPackageV3.js +4 -0
- package/dist/har-service/src/services/schemas/UpstreamConfig.d.ts +1 -1
- package/dist/har-service/src/services/schemas/VersionMetadata.d.ts +6 -0
- package/package.json +1 -1
- package/dist/har-service/src/services/schemas/PolicySetsV3.d.ts +0 -13
- /package/dist/har-service/src/services/schemas/{PolicySetsV3.js → BuildDetailEntryV3.js} +0 -0
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ErrorV3 } from '../schemas/ErrorV3';
|
|
3
|
+
import type { BuildInfoRequestV3RequestBody } from '../requestBodies/BuildInfoRequestV3RequestBody';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface AddBuildInfoV3MutationQueryParams {
|
|
7
|
+
account_identifier: string;
|
|
8
|
+
}
|
|
9
|
+
export type AddBuildInfoV3RequestBody = BuildInfoRequestV3RequestBody;
|
|
10
|
+
export type AddBuildInfoV3OkResponse = ResponseWithPagination<unknown>;
|
|
11
|
+
export type AddBuildInfoV3ErrorResponse = ErrorV3;
|
|
12
|
+
export interface AddBuildInfoV3Props extends Omit<FetcherOptions<AddBuildInfoV3MutationQueryParams, AddBuildInfoV3RequestBody>, 'url'> {
|
|
13
|
+
queryParams: AddBuildInfoV3MutationQueryParams;
|
|
14
|
+
body: AddBuildInfoV3RequestBody;
|
|
15
|
+
}
|
|
16
|
+
export declare function addBuildInfoV3(props: AddBuildInfoV3Props): Promise<AddBuildInfoV3OkResponse>;
|
|
17
|
+
/**
|
|
18
|
+
* Adds build info generated by CLI after package installation.
|
|
19
|
+
*/
|
|
20
|
+
export declare function useAddBuildInfoV3Mutation(options?: Omit<UseMutationOptions<AddBuildInfoV3OkResponse, AddBuildInfoV3ErrorResponse, AddBuildInfoV3Props>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<AddBuildInfoV3OkResponse, ErrorV3, AddBuildInfoV3Props, 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 addBuildInfoV3(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v3/build-info`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Adds build info generated by CLI after package installation.
|
|
11
|
+
*/
|
|
12
|
+
export function useAddBuildInfoV3Mutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => addBuildInfoV3(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -18,6 +18,6 @@ export interface InitiateBulkScanEvaluationV3Props extends Omit<FetcherOptions<I
|
|
|
18
18
|
}
|
|
19
19
|
export declare function initiateBulkScanEvaluationV3(props: InitiateBulkScanEvaluationV3Props): Promise<InitiateBulkScanEvaluationV3OkResponse>;
|
|
20
20
|
/**
|
|
21
|
-
* Triggers firewall policy evaluation for multiple artifacts
|
|
21
|
+
* Triggers firewall policy evaluation for multiple artifacts
|
|
22
22
|
*/
|
|
23
23
|
export declare function useInitiateBulkScanEvaluationV3Mutation(options?: Omit<UseMutationOptions<InitiateBulkScanEvaluationV3OkResponse, InitiateBulkScanEvaluationV3ErrorResponse, InitiateBulkScanEvaluationV3Props>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<InitiateBulkScanEvaluationV3OkResponse, ErrorV3, InitiateBulkScanEvaluationV3Props, unknown>;
|
|
@@ -7,7 +7,7 @@ export function initiateBulkScanEvaluationV3(props) {
|
|
|
7
7
|
return fetcher(Object.assign({ url: `/v3/scans/bulk-evaluate`, method: 'POST' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
* Triggers firewall policy evaluation for multiple artifacts
|
|
10
|
+
* Triggers firewall policy evaluation for multiple artifacts
|
|
11
11
|
*/
|
|
12
12
|
export function useInitiateBulkScanEvaluationV3Mutation(options) {
|
|
13
13
|
return useMutation((mutateProps) => initiateBulkScanEvaluationV3(mutateProps), options);
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ListPipelineBuildInfoDetailsResponseV3Response } from '../responses/ListPipelineBuildInfoDetailsResponseV3Response';
|
|
3
|
+
import type { ErrorV3 } from '../schemas/ErrorV3';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface ListPipelineBuildInfoDetailsV3QueryQueryParams {
|
|
7
|
+
package_name?: string;
|
|
8
|
+
version?: string;
|
|
9
|
+
registry_id?: string;
|
|
10
|
+
account_identifier: string;
|
|
11
|
+
org_identifier?: string;
|
|
12
|
+
project_identifier?: string;
|
|
13
|
+
pipeline_id?: string;
|
|
14
|
+
/**
|
|
15
|
+
* @format int64
|
|
16
|
+
* @default 0
|
|
17
|
+
*/
|
|
18
|
+
page?: number;
|
|
19
|
+
/**
|
|
20
|
+
* @format int64
|
|
21
|
+
* @default 20
|
|
22
|
+
*/
|
|
23
|
+
size?: number;
|
|
24
|
+
projects?: string[];
|
|
25
|
+
categories?: string[];
|
|
26
|
+
package_types?: string[];
|
|
27
|
+
scope?: 'ancestors' | 'descendants' | 'none';
|
|
28
|
+
}
|
|
29
|
+
export type ListPipelineBuildInfoDetailsV3OkResponse = ResponseWithPagination<ListPipelineBuildInfoDetailsResponseV3Response>;
|
|
30
|
+
export type ListPipelineBuildInfoDetailsV3ErrorResponse = ErrorV3;
|
|
31
|
+
export interface ListPipelineBuildInfoDetailsV3Props extends Omit<FetcherOptions<ListPipelineBuildInfoDetailsV3QueryQueryParams, unknown>, 'url'> {
|
|
32
|
+
queryParams: ListPipelineBuildInfoDetailsV3QueryQueryParams;
|
|
33
|
+
}
|
|
34
|
+
export declare function listPipelineBuildInfoDetailsV3(props: ListPipelineBuildInfoDetailsV3Props): Promise<ListPipelineBuildInfoDetailsV3OkResponse>;
|
|
35
|
+
/**
|
|
36
|
+
* Returns all pipeline build info details.
|
|
37
|
+
*/
|
|
38
|
+
export declare function useListPipelineBuildInfoDetailsV3Query(props: ListPipelineBuildInfoDetailsV3Props, options?: Omit<UseQueryOptions<ListPipelineBuildInfoDetailsV3OkResponse, ListPipelineBuildInfoDetailsV3ErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListPipelineBuildInfoDetailsV3OkResponse, ErrorV3>;
|
|
@@ -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 listPipelineBuildInfoDetailsV3(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v3/build-info/pipeline/details`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Returns all pipeline build info details.
|
|
11
|
+
*/
|
|
12
|
+
export function useListPipelineBuildInfoDetailsV3Query(props, options) {
|
|
13
|
+
return useQuery(['ListPipelineBuildInfoDetailsV3', props.queryParams], ({ signal }) => listPipelineBuildInfoDetailsV3(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export type { GetPathParamsType, ResponseWithPagination } from './helpers';
|
|
2
|
+
export type { AddBuildInfoV3ErrorResponse, AddBuildInfoV3MutationQueryParams, AddBuildInfoV3OkResponse, AddBuildInfoV3Props, AddBuildInfoV3RequestBody, } from './hooks/useAddBuildInfoV3Mutation';
|
|
3
|
+
export { addBuildInfoV3, useAddBuildInfoV3Mutation } from './hooks/useAddBuildInfoV3Mutation';
|
|
2
4
|
export type { AddOciArtifactTagsErrorResponse, AddOciArtifactTagsMutationQueryParams, AddOciArtifactTagsOkResponse, AddOciArtifactTagsProps, AddOciArtifactTagsRequestBody, } from './hooks/useAddOciArtifactTagsMutation';
|
|
3
5
|
export { addOciArtifactTags, useAddOciArtifactTagsMutation, } from './hooks/useAddOciArtifactTagsMutation';
|
|
4
6
|
export type { AddVersionTagsV3ErrorResponse, AddVersionTagsV3MutationPathParams, AddVersionTagsV3MutationQueryParams, AddVersionTagsV3OkResponse, AddVersionTagsV3Props, AddVersionTagsV3RequestBody, } from './hooks/useAddVersionTagsV3Mutation';
|
|
@@ -163,6 +165,8 @@ export type { ListPackagesErrorResponse, ListPackagesOkResponse, ListPackagesPro
|
|
|
163
165
|
export { listPackages, useListPackagesQuery } from './hooks/useListPackagesQuery';
|
|
164
166
|
export type { ListPackagesV3ErrorResponse, ListPackagesV3OkResponse, ListPackagesV3Props, ListPackagesV3QueryQueryParams, } from './hooks/useListPackagesV3Query';
|
|
165
167
|
export { listPackagesV3, useListPackagesV3Query } from './hooks/useListPackagesV3Query';
|
|
168
|
+
export type { ListPipelineBuildInfoDetailsV3ErrorResponse, ListPipelineBuildInfoDetailsV3OkResponse, ListPipelineBuildInfoDetailsV3Props, ListPipelineBuildInfoDetailsV3QueryQueryParams, } from './hooks/useListPipelineBuildInfoDetailsV3Query';
|
|
169
|
+
export { listPipelineBuildInfoDetailsV3, useListPipelineBuildInfoDetailsV3Query, } from './hooks/useListPipelineBuildInfoDetailsV3Query';
|
|
166
170
|
export type { ListRegistriesErrorResponse, ListRegistriesOkResponse, ListRegistriesProps, ListRegistriesQueryQueryParams, } from './hooks/useListRegistriesQuery';
|
|
167
171
|
export { listRegistries, useListRegistriesQuery } from './hooks/useListRegistriesQuery';
|
|
168
172
|
export type { ListRegistriesV3ErrorResponse, ListRegistriesV3OkResponse, ListRegistriesV3Props, ListRegistriesV3QueryQueryParams, } from './hooks/useListRegistriesV3Query';
|
|
@@ -245,6 +249,7 @@ export type { AddTagsRequestRequestBody } from './requestBodies/AddTagsRequestRe
|
|
|
245
249
|
export type { AddTagsRequestV3RequestBody } from './requestBodies/AddTagsRequestV3RequestBody';
|
|
246
250
|
export type { ArtifactLabelRequestRequestBody } from './requestBodies/ArtifactLabelRequestRequestBody';
|
|
247
251
|
export type { ArtifactScanEvaluateRequestV3RequestBody } from './requestBodies/ArtifactScanEvaluateRequestV3RequestBody';
|
|
252
|
+
export type { BuildInfoRequestV3RequestBody } from './requestBodies/BuildInfoRequestV3RequestBody';
|
|
248
253
|
export type { BulkDownloadFilesRequestRequestBody } from './requestBodies/BulkDownloadFilesRequestRequestBody';
|
|
249
254
|
export type { BulkDownloadFilesRequestV3RequestBody } from './requestBodies/BulkDownloadFilesRequestV3RequestBody';
|
|
250
255
|
export type { BulkScanEvaluationRequestV3RequestBody } from './requestBodies/BulkScanEvaluationRequestV3RequestBody';
|
|
@@ -303,6 +308,7 @@ export type { ListMigrationImageResponseResponse } from './responses/ListMigrati
|
|
|
303
308
|
export type { ListOciArtifactTagsResponseResponse } from './responses/ListOciArtifactTagsResponseResponse';
|
|
304
309
|
export type { ListPackageResponseResponse } from './responses/ListPackageResponseResponse';
|
|
305
310
|
export type { ListPackageResponseV3Response } from './responses/ListPackageResponseV3Response';
|
|
311
|
+
export type { ListPipelineBuildInfoDetailsResponseV3Response } from './responses/ListPipelineBuildInfoDetailsResponseV3Response';
|
|
306
312
|
export type { ListRegistryArtifactResponseResponse } from './responses/ListRegistryArtifactResponseResponse';
|
|
307
313
|
export type { ListRegistryResponseResponse } from './responses/ListRegistryResponseResponse';
|
|
308
314
|
export type { ListRegistryResponseV3Response } from './responses/ListRegistryResponseV3Response';
|
|
@@ -355,7 +361,12 @@ export type { ArtifactType } from './schemas/ArtifactType';
|
|
|
355
361
|
export type { ArtifactVersionMetadata } from './schemas/ArtifactVersionMetadata';
|
|
356
362
|
export type { ArtifactVersionSummary } from './schemas/ArtifactVersionSummary';
|
|
357
363
|
export type { AuthType } from './schemas/AuthType';
|
|
364
|
+
export type { BuildDetailEntryV3 } from './schemas/BuildDetailEntryV3';
|
|
358
365
|
export type { BuildDetails } from './schemas/BuildDetails';
|
|
366
|
+
export type { BuildDetailsV3 } from './schemas/BuildDetailsV3';
|
|
367
|
+
export type { BuildInfoMetadataV3 } from './schemas/BuildInfoMetadataV3';
|
|
368
|
+
export type { BuildInfoNodeV3 } from './schemas/BuildInfoNodeV3';
|
|
369
|
+
export type { BuildInfoRequestInputV3 } from './schemas/BuildInfoRequestInputV3';
|
|
359
370
|
export type { BulkDownloadFilesRequestInput } from './schemas/BulkDownloadFilesRequestInput';
|
|
360
371
|
export type { BulkDownloadFilesRequestInputV3 } from './schemas/BulkDownloadFilesRequestInputV3';
|
|
361
372
|
export type { BulkDownloadRequestStatus } from './schemas/BulkDownloadRequestStatus';
|
|
@@ -431,6 +442,7 @@ export type { ListMigrationImage } from './schemas/ListMigrationImage';
|
|
|
431
442
|
export type { ListOciArtifactTags } from './schemas/ListOciArtifactTags';
|
|
432
443
|
export type { ListPackage } from './schemas/ListPackage';
|
|
433
444
|
export type { ListPackagesResponseBodyV3 } from './schemas/ListPackagesResponseBodyV3';
|
|
445
|
+
export type { ListPipelineBuildInfoDetailsResponseBodyV3 } from './schemas/ListPipelineBuildInfoDetailsResponseBodyV3';
|
|
434
446
|
export type { ListRegistriesResponseBodyV3 } from './schemas/ListRegistriesResponseBodyV3';
|
|
435
447
|
export type { ListRegistry } from './schemas/ListRegistry';
|
|
436
448
|
export type { ListRegistryArtifact } from './schemas/ListRegistryArtifact';
|
|
@@ -465,10 +477,15 @@ export type { PackageType } from './schemas/PackageType';
|
|
|
465
477
|
export type { PackageTypeV3 } from './schemas/PackageTypeV3';
|
|
466
478
|
export type { PackageV3 } from './schemas/PackageV3';
|
|
467
479
|
export type { PageInfoV3 } from './schemas/PageInfoV3';
|
|
480
|
+
export type { PerformedBy } from './schemas/PerformedBy';
|
|
481
|
+
export type { PipelineBuildInfoDetailV3 } from './schemas/PipelineBuildInfoDetailV3';
|
|
482
|
+
export type { PipelineBuildInfoMetaV3 } from './schemas/PipelineBuildInfoMetaV3';
|
|
483
|
+
export type { PipelineBuildInfoViolationV3 } from './schemas/PipelineBuildInfoViolationV3';
|
|
484
|
+
export type { PipelineContextV3 } from './schemas/PipelineContextV3';
|
|
468
485
|
export type { PolicyFailureDetailCategoryV3 } from './schemas/PolicyFailureDetailCategoryV3';
|
|
469
486
|
export type { PolicyFailureDetailV3 } from './schemas/PolicyFailureDetailV3';
|
|
470
487
|
export type { PolicySetFailureDetailV3 } from './schemas/PolicySetFailureDetailV3';
|
|
471
|
-
export type {
|
|
488
|
+
export type { PuppetArtifactDetailConfig } from './schemas/PuppetArtifactDetailConfig';
|
|
472
489
|
export type { PythonArtifactDetailConfig } from './schemas/PythonArtifactDetailConfig';
|
|
473
490
|
export type { QuarantinePath } from './schemas/QuarantinePath';
|
|
474
491
|
export type { QuarantineRequest } from './schemas/QuarantineRequest';
|
|
@@ -485,6 +502,7 @@ export type { ReplicationRegistry } from './schemas/ReplicationRegistry';
|
|
|
485
502
|
export type { ReplicationRule } from './schemas/ReplicationRule';
|
|
486
503
|
export type { ReplicationRuleRequest } from './schemas/ReplicationRuleRequest';
|
|
487
504
|
export type { ResourceMetadataV3 } from './schemas/ResourceMetadataV3';
|
|
505
|
+
export type { RootPackageV3 } from './schemas/RootPackageV3';
|
|
488
506
|
export type { RpmArtifactDetailConfig } from './schemas/RpmArtifactDetailConfig';
|
|
489
507
|
export type { SbomDetails } from './schemas/SbomDetails';
|
|
490
508
|
export type { ScanMetaV3 } from './schemas/ScanMetaV3';
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export { addBuildInfoV3, useAddBuildInfoV3Mutation } from './hooks/useAddBuildInfoV3Mutation';
|
|
1
2
|
export { addOciArtifactTags, useAddOciArtifactTagsMutation, } from './hooks/useAddOciArtifactTagsMutation';
|
|
2
3
|
export { addVersionTagsV3, useAddVersionTagsV3Mutation } from './hooks/useAddVersionTagsV3Mutation';
|
|
3
4
|
export { copy, useCopyMutation } from './hooks/useCopyMutation';
|
|
@@ -80,6 +81,7 @@ export { listFirewallExceptionsV3, useListFirewallExceptionsV3Query, } from './h
|
|
|
80
81
|
export { listMigrationImages, useListMigrationImagesQuery, } from './hooks/useListMigrationImagesQuery';
|
|
81
82
|
export { listPackages, useListPackagesQuery } from './hooks/useListPackagesQuery';
|
|
82
83
|
export { listPackagesV3, useListPackagesV3Query } from './hooks/useListPackagesV3Query';
|
|
84
|
+
export { listPipelineBuildInfoDetailsV3, useListPipelineBuildInfoDetailsV3Query, } from './hooks/useListPipelineBuildInfoDetailsV3Query';
|
|
83
85
|
export { listRegistries, useListRegistriesQuery } from './hooks/useListRegistriesQuery';
|
|
84
86
|
export { listRegistriesV3, useListRegistriesV3Query } from './hooks/useListRegistriesV3Query';
|
|
85
87
|
export { listReplicationRules, useListReplicationRulesQuery, } from './hooks/useListReplicationRulesQuery';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/har-service/src/services/responses/ListPipelineBuildInfoDetailsResponseV3Response.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -13,12 +13,13 @@ import type { CondaArtifactDetailConfig } from '../schemas/CondaArtifactDetailCo
|
|
|
13
13
|
import type { DartArtifactDetailConfig } from '../schemas/DartArtifactDetailConfig';
|
|
14
14
|
import type { ComposerArtifactDetailConfig } from '../schemas/ComposerArtifactDetailConfig';
|
|
15
15
|
import type { SwiftArtifactDetailConfig } from '../schemas/SwiftArtifactDetailConfig';
|
|
16
|
+
import type { PuppetArtifactDetailConfig } from '../schemas/PuppetArtifactDetailConfig';
|
|
16
17
|
import type { ArtifactType } from '../schemas/ArtifactType';
|
|
17
18
|
import type { PackageType } from '../schemas/PackageType';
|
|
18
19
|
/**
|
|
19
20
|
* Artifact Detail
|
|
20
21
|
*/
|
|
21
|
-
export type ArtifactDetail = (DockerArtifactDetailConfig | HelmArtifactDetailConfig | GenericArtifactDetailConfig | MavenArtifactDetailConfig | PythonArtifactDetailConfig | NpmArtifactDetailConfig | RpmArtifactDetailConfig | NugetArtifactDetailConfig | CargoArtifactDetailConfig | GoArtifactDetailConfig | HuggingFaceArtifactDetailConfig | CondaArtifactDetailConfig | DartArtifactDetailConfig | ComposerArtifactDetailConfig | SwiftArtifactDetailConfig) & {
|
|
22
|
+
export type ArtifactDetail = (DockerArtifactDetailConfig | HelmArtifactDetailConfig | GenericArtifactDetailConfig | MavenArtifactDetailConfig | PythonArtifactDetailConfig | NpmArtifactDetailConfig | RpmArtifactDetailConfig | NugetArtifactDetailConfig | CargoArtifactDetailConfig | GoArtifactDetailConfig | HuggingFaceArtifactDetailConfig | CondaArtifactDetailConfig | DartArtifactDetailConfig | ComposerArtifactDetailConfig | SwiftArtifactDetailConfig | PuppetArtifactDetailConfig) & {
|
|
22
23
|
artifactType?: ArtifactType;
|
|
23
24
|
createdAt?: string;
|
|
24
25
|
createdBy?: string;
|
|
@@ -29,6 +29,10 @@ export interface ArtifactMetadata {
|
|
|
29
29
|
name: string;
|
|
30
30
|
packageType: PackageType;
|
|
31
31
|
pullCommand?: string;
|
|
32
|
+
/**
|
|
33
|
+
* Package URL (PURL) identifying the package version.
|
|
34
|
+
*/
|
|
35
|
+
purl?: string;
|
|
32
36
|
quarantineReason?: string;
|
|
33
37
|
registryIdentifier: string;
|
|
34
38
|
registryPath: string;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { BuildDetailsV3 } from '../schemas/BuildDetailsV3';
|
|
1
2
|
import type { FixVersionDetailsV3 } from '../schemas/FixVersionDetailsV3';
|
|
2
3
|
import type { PackageTypeV3 } from '../schemas/PackageTypeV3';
|
|
3
4
|
import type { PolicySetFailureDetailV3 } from '../schemas/PolicySetFailureDetailV3';
|
|
@@ -5,6 +6,7 @@ import type { PolicySetFailureDetailV3 } from '../schemas/PolicySetFailureDetail
|
|
|
5
6
|
* Artifact scans details
|
|
6
7
|
*/
|
|
7
8
|
export interface ArtifactScanDetailsV3 {
|
|
9
|
+
buildDetails: BuildDetailsV3;
|
|
8
10
|
createdAt?: string;
|
|
9
11
|
fixVersionDetails?: FixVersionDetailsV3;
|
|
10
12
|
/**
|
|
@@ -28,6 +30,10 @@ export interface ArtifactScanDetailsV3 {
|
|
|
28
30
|
* Registry name
|
|
29
31
|
*/
|
|
30
32
|
registryName: string;
|
|
33
|
+
/**
|
|
34
|
+
* Unique set of root packages (name@version) impacted by this scan
|
|
35
|
+
*/
|
|
36
|
+
rootPackages: string[];
|
|
31
37
|
/**
|
|
32
38
|
* Scan status
|
|
33
39
|
*/
|
|
@@ -1,6 +1,13 @@
|
|
|
1
|
+
import type { BuildDetailsV3 } from '../schemas/BuildDetailsV3';
|
|
1
2
|
import type { PackageTypeV3 } from '../schemas/PackageTypeV3';
|
|
2
|
-
import type {
|
|
3
|
+
import type { PolicySetFailureDetailV3 } from '../schemas/PolicySetFailureDetailV3';
|
|
4
|
+
import type { PolicyFailureDetailCategoryV3 } from '../schemas/PolicyFailureDetailCategoryV3';
|
|
3
5
|
export interface ArtifactScanV3 {
|
|
6
|
+
buildDetails: BuildDetailsV3;
|
|
7
|
+
/**
|
|
8
|
+
* Dependency type
|
|
9
|
+
*/
|
|
10
|
+
dependencyType: 'DIRECT' | 'TRANSITIVE';
|
|
4
11
|
id: string;
|
|
5
12
|
lastEvaluatedAt?: string;
|
|
6
13
|
lastEvaluatedBy?: string;
|
|
@@ -9,7 +16,7 @@ export interface ArtifactScanV3 {
|
|
|
9
16
|
*/
|
|
10
17
|
packageName: string;
|
|
11
18
|
packageType: PackageTypeV3;
|
|
12
|
-
policySets:
|
|
19
|
+
policySets: PolicySetFailureDetailV3[];
|
|
13
20
|
/**
|
|
14
21
|
* Package URL (PURL) identifying the package version
|
|
15
22
|
*/
|
|
@@ -22,10 +29,22 @@ export interface ArtifactScanV3 {
|
|
|
22
29
|
* Registry name
|
|
23
30
|
*/
|
|
24
31
|
registryName: string;
|
|
32
|
+
/**
|
|
33
|
+
* Unique set of root packages (name@version) impacted by this scan
|
|
34
|
+
*/
|
|
35
|
+
rootPackages: string[];
|
|
25
36
|
/**
|
|
26
37
|
* Scan status
|
|
27
38
|
*/
|
|
28
39
|
scanStatus: 'BLOCKED' | 'WARN';
|
|
40
|
+
/**
|
|
41
|
+
* Security violation categories
|
|
42
|
+
*/
|
|
43
|
+
securityViolationCategories: PolicyFailureDetailCategoryV3[];
|
|
44
|
+
/**
|
|
45
|
+
* Total number of affected pipelines
|
|
46
|
+
*/
|
|
47
|
+
totalAffectedPipelines: number;
|
|
29
48
|
/**
|
|
30
49
|
* Version
|
|
31
50
|
*/
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Build detail entry for a single scan.
|
|
3
|
+
*/
|
|
4
|
+
export interface BuildDetailEntryV3 {
|
|
5
|
+
/**
|
|
6
|
+
* Epoch time (seconds) of the latest execution.
|
|
7
|
+
* @format int64
|
|
8
|
+
*/
|
|
9
|
+
lastExecutionTime: number;
|
|
10
|
+
/**
|
|
11
|
+
* Latest execution identifier.
|
|
12
|
+
*/
|
|
13
|
+
latestExecutionId: string;
|
|
14
|
+
/**
|
|
15
|
+
* Pipeline identifier.
|
|
16
|
+
*/
|
|
17
|
+
pipelineId: string;
|
|
18
|
+
/**
|
|
19
|
+
* Root package identifier in name@version format.
|
|
20
|
+
*/
|
|
21
|
+
rootPackage: string;
|
|
22
|
+
/**
|
|
23
|
+
* Stage identifier.
|
|
24
|
+
*/
|
|
25
|
+
stageId: string;
|
|
26
|
+
/**
|
|
27
|
+
* Step identifier.
|
|
28
|
+
*/
|
|
29
|
+
stepId?: string;
|
|
30
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { BuildInfoMetadataV3 } from '../schemas/BuildInfoMetadataV3';
|
|
2
|
+
import type { PackageTypeV3 } from '../schemas/PackageTypeV3';
|
|
3
|
+
import type { PipelineContextV3 } from '../schemas/PipelineContextV3';
|
|
4
|
+
import type { RootPackageV3 } from '../schemas/RootPackageV3';
|
|
5
|
+
/**
|
|
6
|
+
* Request to add build info
|
|
7
|
+
*/
|
|
8
|
+
export interface BuildInfoRequestInputV3 {
|
|
9
|
+
metadata: BuildInfoMetadataV3;
|
|
10
|
+
packageType: PackageTypeV3;
|
|
11
|
+
pipelineContext?: PipelineContextV3;
|
|
12
|
+
/**
|
|
13
|
+
* UUID of the registry to add build info for
|
|
14
|
+
* @format uuid
|
|
15
|
+
*/
|
|
16
|
+
registryId: string;
|
|
17
|
+
rootPackage: RootPackageV3;
|
|
18
|
+
/**
|
|
19
|
+
* Status of the evaluation
|
|
20
|
+
*/
|
|
21
|
+
status: 'FAILURE' | 'PENDING' | 'PROCESSING' | 'SUCCESS';
|
|
22
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { PipelineBuildInfoMetaV3 } from '../schemas/PipelineBuildInfoMetaV3';
|
|
2
|
+
import type { PipelineBuildInfoDetailV3 } from '../schemas/PipelineBuildInfoDetailV3';
|
|
3
|
+
import type { PageInfoV3 } from '../schemas/PageInfoV3';
|
|
4
|
+
export interface ListPipelineBuildInfoDetailsResponseBodyV3 extends PageInfoV3 {
|
|
5
|
+
meta: PipelineBuildInfoMetaV3;
|
|
6
|
+
/**
|
|
7
|
+
* Pipeline build info details
|
|
8
|
+
*/
|
|
9
|
+
pipelineData: PipelineBuildInfoDetailV3[];
|
|
10
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { ArtifactType } from '../schemas/ArtifactType';
|
|
2
|
+
import type { PerformedBy } from '../schemas/PerformedBy';
|
|
2
3
|
import type { PackageType } from '../schemas/PackageType';
|
|
3
4
|
/**
|
|
4
5
|
* Package Metadata
|
|
@@ -9,6 +10,7 @@ export interface PackageMetadata {
|
|
|
9
10
|
* Timestamp in milliseconds when the registry was soft-deleted
|
|
10
11
|
*/
|
|
11
12
|
deletedAt?: string;
|
|
13
|
+
deletedBy?: PerformedBy;
|
|
12
14
|
/**
|
|
13
15
|
* @format int64
|
|
14
16
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* refers to package
|
|
3
3
|
*/
|
|
4
|
-
export type PackageType = 'CARGO' | 'COMPOSER' | 'CONDA' | 'DART' | 'DOCKER' | 'GENERIC' | 'GO' | 'HELM' | 'HUGGINGFACE' | 'MAVEN' | 'NPM' | 'NUGET' | 'PYTHON' | 'RAW' | 'RPM' | 'SWIFT';
|
|
4
|
+
export type PackageType = 'CARGO' | 'COMPOSER' | 'CONDA' | 'DART' | 'DOCKER' | 'GENERIC' | 'GO' | 'HELM' | 'HUGGINGFACE' | 'MAVEN' | 'NPM' | 'NUGET' | 'PUPPET' | 'PYTHON' | 'RAW' | 'RPM' | 'SWIFT';
|
|
@@ -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, SWIFT, RAW. 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, PUPPET, RAW. This field is extensible; clients must handle unknown values.
|
|
3
3
|
*
|
|
4
4
|
* @example "DOCKER"
|
|
5
5
|
*/
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import type { PackageTypeV3 } from '../schemas/PackageTypeV3';
|
|
2
|
+
import type { PolicyFailureDetailCategoryV3 } from '../schemas/PolicyFailureDetailCategoryV3';
|
|
3
|
+
import type { PipelineBuildInfoViolationV3 } from '../schemas/PipelineBuildInfoViolationV3';
|
|
4
|
+
/**
|
|
5
|
+
* Pipeline build info detail entry.
|
|
6
|
+
*/
|
|
7
|
+
export interface PipelineBuildInfoDetailV3 {
|
|
8
|
+
/**
|
|
9
|
+
* Unix timestamp (milliseconds) when the pipeline execution was last executed.
|
|
10
|
+
* @format int64
|
|
11
|
+
*/
|
|
12
|
+
lastExecutionTime?: number;
|
|
13
|
+
/**
|
|
14
|
+
* Organization identifier.
|
|
15
|
+
*/
|
|
16
|
+
orgIdentifier: string;
|
|
17
|
+
packageType: PackageTypeV3;
|
|
18
|
+
/**
|
|
19
|
+
* Pipeline execution identifier.
|
|
20
|
+
*/
|
|
21
|
+
pipelineExecutionIdentifier?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Pipeline identifier.
|
|
24
|
+
*/
|
|
25
|
+
pipelineIdentifier: string;
|
|
26
|
+
/**
|
|
27
|
+
* Project identifier.
|
|
28
|
+
*/
|
|
29
|
+
projectIdentifier: string;
|
|
30
|
+
/**
|
|
31
|
+
* Name of the root package.
|
|
32
|
+
*/
|
|
33
|
+
rootPackageName: string;
|
|
34
|
+
/**
|
|
35
|
+
* Version of the root package.
|
|
36
|
+
*/
|
|
37
|
+
rootPackageVersion: string;
|
|
38
|
+
/**
|
|
39
|
+
* Policy failure categories.
|
|
40
|
+
*/
|
|
41
|
+
securityViolationCategories: PolicyFailureDetailCategoryV3[];
|
|
42
|
+
/**
|
|
43
|
+
* Stage identifier.
|
|
44
|
+
*/
|
|
45
|
+
stageIdentifier: string;
|
|
46
|
+
/**
|
|
47
|
+
* Step identifier.
|
|
48
|
+
*/
|
|
49
|
+
stepIdentifier: string;
|
|
50
|
+
/**
|
|
51
|
+
* Map of package key to scan ID.
|
|
52
|
+
*/
|
|
53
|
+
violations: PipelineBuildInfoViolationV3[];
|
|
54
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Aggregated metadata for pipeline build info results.
|
|
3
|
+
*/
|
|
4
|
+
export interface PipelineBuildInfoMetaV3 {
|
|
5
|
+
/**
|
|
6
|
+
* Total number of blocked dependencies.
|
|
7
|
+
* @format int64
|
|
8
|
+
*/
|
|
9
|
+
totalBlockedDependencies?: number;
|
|
10
|
+
/**
|
|
11
|
+
* Total number of blocked pipelines.
|
|
12
|
+
* @format int64
|
|
13
|
+
*/
|
|
14
|
+
totalBlockedPipelines?: number;
|
|
15
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A violation entry mapping a package key to a scan ID.
|
|
3
|
+
*/
|
|
4
|
+
export interface PipelineBuildInfoViolationV3 {
|
|
5
|
+
/**
|
|
6
|
+
* Package name and version (package@version).
|
|
7
|
+
*/
|
|
8
|
+
package: string;
|
|
9
|
+
/**
|
|
10
|
+
* Scan identifier.
|
|
11
|
+
*/
|
|
12
|
+
scanId: string;
|
|
13
|
+
/**
|
|
14
|
+
* Scan status
|
|
15
|
+
*/
|
|
16
|
+
status: 'BLOCKED' | 'WARN';
|
|
17
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pipeline execution context.
|
|
3
|
+
*/
|
|
4
|
+
export interface PipelineContextV3 {
|
|
5
|
+
/**
|
|
6
|
+
* Execution identifier.
|
|
7
|
+
*/
|
|
8
|
+
executionId: string;
|
|
9
|
+
/**
|
|
10
|
+
* Organization identifier.
|
|
11
|
+
*/
|
|
12
|
+
orgId: string;
|
|
13
|
+
/**
|
|
14
|
+
* Pipeline identifier.
|
|
15
|
+
*/
|
|
16
|
+
pipelineId: string;
|
|
17
|
+
/**
|
|
18
|
+
* Project identifier.
|
|
19
|
+
*/
|
|
20
|
+
projectId: string;
|
|
21
|
+
/**
|
|
22
|
+
* Stage identifier.
|
|
23
|
+
*/
|
|
24
|
+
stageId: string;
|
|
25
|
+
/**
|
|
26
|
+
* Step identifier.
|
|
27
|
+
*/
|
|
28
|
+
stepId?: string;
|
|
29
|
+
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { PerformedBy } from '../schemas/PerformedBy';
|
|
1
2
|
import type { PackageType } from '../schemas/PackageType';
|
|
2
3
|
import type { RegistryType } from '../schemas/RegistryType';
|
|
3
4
|
/**
|
|
@@ -12,6 +13,7 @@ export interface RegistryMetadata {
|
|
|
12
13
|
* Timestamp in milliseconds when the registry was soft-deleted
|
|
13
14
|
*/
|
|
14
15
|
deletedAt?: string;
|
|
16
|
+
deletedBy?: PerformedBy;
|
|
15
17
|
description?: string;
|
|
16
18
|
/**
|
|
17
19
|
* @format int64
|
|
@@ -15,6 +15,6 @@ export interface UpstreamConfig {
|
|
|
15
15
|
*
|
|
16
16
|
*/
|
|
17
17
|
remoteUrlSuffix?: string;
|
|
18
|
-
source?: 'Anaconda' | 'AwsEcr' | 'Crates' | 'Custom' | 'Dockerhub' | 'GoProxy' | 'HuggingFace' | 'MavenCentral' | 'NpmJs' | 'NugetOrg' | 'Packagist' | 'Pubdev' | 'PyPi';
|
|
18
|
+
source?: 'Anaconda' | 'AwsEcr' | 'Crates' | 'Custom' | 'Dockerhub' | 'GoProxy' | 'HuggingFace' | 'MavenCentral' | 'NpmJs' | 'NugetOrg' | 'Packagist' | 'Pubdev' | 'PuppetForge' | 'PyPi';
|
|
19
19
|
url?: string;
|
|
20
20
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { ArtifactType } from '../schemas/ArtifactType';
|
|
2
|
+
import type { PerformedBy } from '../schemas/PerformedBy';
|
|
2
3
|
import type { DeploymentMetadata } from '../schemas/DeploymentMetadata';
|
|
3
4
|
import type { ArtifactEntityMetadata } from '../schemas/ArtifactEntityMetadata';
|
|
4
5
|
import type { PackageType } from '../schemas/PackageType';
|
|
@@ -12,6 +13,7 @@ export interface VersionMetadata {
|
|
|
12
13
|
* Timestamp in milliseconds when the registry was soft-deleted
|
|
13
14
|
*/
|
|
14
15
|
deletedAt?: string;
|
|
16
|
+
deletedBy?: PerformedBy;
|
|
15
17
|
deploymentMetadata?: DeploymentMetadata;
|
|
16
18
|
/**
|
|
17
19
|
* @format int64
|
|
@@ -30,6 +32,10 @@ export interface VersionMetadata {
|
|
|
30
32
|
package: string;
|
|
31
33
|
packageType: PackageType;
|
|
32
34
|
pullCommand?: string;
|
|
35
|
+
/**
|
|
36
|
+
* Package URL (PURL) for this artifact version when supported for the package type.
|
|
37
|
+
*/
|
|
38
|
+
purl?: string;
|
|
33
39
|
quarantineReason?: string;
|
|
34
40
|
registryIdentifier: string;
|
|
35
41
|
registryType?: RegistryType;
|
package/package.json
CHANGED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* List of opa policy sets.
|
|
3
|
-
*/
|
|
4
|
-
export type PolicySetsV3 = Array<{
|
|
5
|
-
/**
|
|
6
|
-
* Policy Set name
|
|
7
|
-
*/
|
|
8
|
-
policySetName: string;
|
|
9
|
-
/**
|
|
10
|
-
* Unique reference for the opa policy set. Example: `my-policy` or `account.my-policy`
|
|
11
|
-
*/
|
|
12
|
-
policySetRef: string;
|
|
13
|
-
}>;
|
|
File without changes
|