@harnessio/react-ssca-manager-client 0.86.5 → 0.86.6
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/ssca-manager/src/services/hooks/useGetPipelineArtifactListV2Query.d.ts +37 -0
- package/dist/ssca-manager/src/services/hooks/useGetPipelineArtifactListV2Query.js +23 -0
- package/dist/ssca-manager/src/services/hooks/useGetPolicyViolationsQuery.d.ts +1 -0
- package/dist/ssca-manager/src/services/index.d.ts +4 -0
- package/dist/ssca-manager/src/services/index.js +1 -0
- package/dist/ssca-manager/src/services/responses/ArtifactListingResponsePipelinePaginatedBodyResponse.d.ts +2 -0
- package/dist/ssca-manager/src/services/responses/ArtifactListingResponsePipelinePaginatedBodyResponse.js +1 -0
- package/dist/ssca-manager/src/services/schemas/CreateIntegrationRequest.d.ts +6 -0
- package/dist/ssca-manager/src/services/schemas/EnforceSbomResponseBody.d.ts +5 -0
- package/dist/ssca-manager/src/services/schemas/ExemptionCreateRequestBody.d.ts +4 -0
- package/dist/ssca-manager/src/services/schemas/ExemptionResponse.d.ts +4 -0
- package/dist/ssca-manager/src/services/schemas/Integration.d.ts +6 -0
- package/dist/ssca-manager/src/services/schemas/OidcIdTokenRequest.d.ts +5 -0
- package/dist/ssca-manager/src/services/schemas/PolicyFailure.d.ts +4 -0
- package/dist/ssca-manager/src/services/schemas/PolicyFailure.js +4 -0
- package/dist/ssca-manager/src/services/schemas/UpdateIntegrationRspmRequest.d.ts +6 -0
- package/package.json +1 -1
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ArtifactListingResponsePipelinePaginatedBodyResponse } from '../responses/ArtifactListingResponsePipelinePaginatedBodyResponse';
|
|
3
|
+
import type { ArtifactListingPipelineRequestBodyRequestBody } from '../requestBodies/ArtifactListingPipelineRequestBodyRequestBody';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface GetPipelineArtifactListV2QueryPathParams {
|
|
7
|
+
org: string;
|
|
8
|
+
project: string;
|
|
9
|
+
pipeline: string;
|
|
10
|
+
execution: string;
|
|
11
|
+
}
|
|
12
|
+
export interface GetPipelineArtifactListV2QueryQueryParams {
|
|
13
|
+
/**
|
|
14
|
+
* @default 30
|
|
15
|
+
*/
|
|
16
|
+
limit?: number;
|
|
17
|
+
/**
|
|
18
|
+
* @default 0
|
|
19
|
+
*/
|
|
20
|
+
page?: number;
|
|
21
|
+
}
|
|
22
|
+
export interface GetPipelineArtifactListV2QueryHeaderParams {
|
|
23
|
+
'Harness-Account': string;
|
|
24
|
+
}
|
|
25
|
+
export type GetPipelineArtifactListV2RequestBody = ArtifactListingPipelineRequestBodyRequestBody;
|
|
26
|
+
export type GetPipelineArtifactListV2OkResponse = ResponseWithPagination<ArtifactListingResponsePipelinePaginatedBodyResponse>;
|
|
27
|
+
export type GetPipelineArtifactListV2ErrorResponse = unknown;
|
|
28
|
+
export interface GetPipelineArtifactListV2Props extends GetPipelineArtifactListV2QueryPathParams, Omit<FetcherOptions<GetPipelineArtifactListV2QueryQueryParams, GetPipelineArtifactListV2RequestBody, GetPipelineArtifactListV2QueryHeaderParams>, 'url'> {
|
|
29
|
+
queryParams: GetPipelineArtifactListV2QueryQueryParams;
|
|
30
|
+
body: GetPipelineArtifactListV2RequestBody;
|
|
31
|
+
}
|
|
32
|
+
export declare function getPipelineArtifactListV2(props: GetPipelineArtifactListV2Props): Promise<GetPipelineArtifactListV2OkResponse>;
|
|
33
|
+
/**
|
|
34
|
+
* V2 paginated variant of getPipelineArtifactList. Returns the same artifact listing payload with pagination metadata in response headers. Does not change the behavior of the existing v1 /artifacts endpoint.
|
|
35
|
+
*
|
|
36
|
+
*/
|
|
37
|
+
export declare function useGetPipelineArtifactListV2Query(props: GetPipelineArtifactListV2Props, options?: Omit<UseQueryOptions<GetPipelineArtifactListV2OkResponse, GetPipelineArtifactListV2ErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetPipelineArtifactListV2OkResponse, unknown>;
|
|
@@ -0,0 +1,23 @@
|
|
|
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 getPipelineArtifactListV2(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v2/orgs/${props.org}/projects/${props.project}/pipelines/${props.pipeline}/executions/${props.execution}/artifacts`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* V2 paginated variant of getPipelineArtifactList. Returns the same artifact listing payload with pagination metadata in response headers. Does not change the behavior of the existing v1 /artifacts endpoint.
|
|
11
|
+
*
|
|
12
|
+
*/
|
|
13
|
+
export function useGetPipelineArtifactListV2Query(props, options) {
|
|
14
|
+
return useQuery([
|
|
15
|
+
'getPipelineArtifactListV2',
|
|
16
|
+
props.org,
|
|
17
|
+
props.project,
|
|
18
|
+
props.pipeline,
|
|
19
|
+
props.execution,
|
|
20
|
+
props.queryParams,
|
|
21
|
+
props.body,
|
|
22
|
+
], ({ signal }) => getPipelineArtifactListV2(Object.assign(Object.assign({}, props), { signal })), options);
|
|
23
|
+
}
|
|
@@ -23,6 +23,7 @@ export interface GetPolicyViolationsQueryQueryParams {
|
|
|
23
23
|
sort?: {};
|
|
24
24
|
search_text?: string;
|
|
25
25
|
image_layer?: 'APP' | 'BASE' | 'DISTRO';
|
|
26
|
+
exclude_exempted?: boolean;
|
|
26
27
|
}
|
|
27
28
|
export interface GetPolicyViolationsQueryHeaderParams {
|
|
28
29
|
'Harness-Account': string;
|
|
@@ -161,6 +161,8 @@ export type { GetOverallSummaryErrorResponse, GetOverallSummaryOkResponse, GetOv
|
|
|
161
161
|
export { getOverallSummary, useGetOverallSummaryQuery } from './hooks/useGetOverallSummaryQuery';
|
|
162
162
|
export type { GetPipelineArtifactListErrorResponse, GetPipelineArtifactListOkResponse, GetPipelineArtifactListProps, GetPipelineArtifactListQueryPathParams, GetPipelineArtifactListRequestBody, } from './hooks/useGetPipelineArtifactListQuery';
|
|
163
163
|
export { getPipelineArtifactList, useGetPipelineArtifactListQuery, } from './hooks/useGetPipelineArtifactListQuery';
|
|
164
|
+
export type { GetPipelineArtifactListV2ErrorResponse, GetPipelineArtifactListV2OkResponse, GetPipelineArtifactListV2Props, GetPipelineArtifactListV2QueryPathParams, GetPipelineArtifactListV2QueryQueryParams, GetPipelineArtifactListV2RequestBody, } from './hooks/useGetPipelineArtifactListV2Query';
|
|
165
|
+
export { getPipelineArtifactListV2, useGetPipelineArtifactListV2Query, } from './hooks/useGetPipelineArtifactListV2Query';
|
|
164
166
|
export type { GetPolicyViolationsErrorResponse, GetPolicyViolationsOkResponse, GetPolicyViolationsProps, GetPolicyViolationsQueryPathParams, GetPolicyViolationsQueryQueryParams, } from './hooks/useGetPolicyViolationsQuery';
|
|
165
167
|
export { getPolicyViolations, useGetPolicyViolationsQuery, } from './hooks/useGetPolicyViolationsQuery';
|
|
166
168
|
export type { GetProjectAiWorkflowConfigErrorResponse, GetProjectAiWorkflowConfigOkResponse, GetProjectAiWorkflowConfigProps, GetProjectAiWorkflowConfigQueryPathParams, GetProjectAiWorkflowConfigQueryQueryParams, } from './hooks/useGetProjectAiWorkflowConfigQuery';
|
|
@@ -302,6 +304,7 @@ export type { ArtifactDetailResponseBodyResponse } from './responses/ArtifactDet
|
|
|
302
304
|
export type { ArtifactListingResponseBodyResponse } from './responses/ArtifactListingResponseBodyResponse';
|
|
303
305
|
export type { ArtifactListingResponseBodyV2Response } from './responses/ArtifactListingResponseBodyV2Response';
|
|
304
306
|
export type { ArtifactListingResponsePipelineBodyResponse } from './responses/ArtifactListingResponsePipelineBodyResponse';
|
|
307
|
+
export type { ArtifactListingResponsePipelinePaginatedBodyResponse } from './responses/ArtifactListingResponsePipelinePaginatedBodyResponse';
|
|
305
308
|
export type { ArtifactSbomDriftResponseBodyResponse } from './responses/ArtifactSbomDriftResponseBodyResponse';
|
|
306
309
|
export type { ArtifactSbomResponseBodyResponse } from './responses/ArtifactSbomResponseBodyResponse';
|
|
307
310
|
export type { ArtifactSourcesListingResponseResponse } from './responses/ArtifactSourcesListingResponseResponse';
|
|
@@ -704,6 +707,7 @@ export type { PipelineInfraConfigRequestBody } from './schemas/PipelineInfraConf
|
|
|
704
707
|
export type { PipelineStoreConfigRequestBody } from './schemas/PipelineStoreConfigRequestBody';
|
|
705
708
|
export type { PluginDto } from './schemas/PluginDto';
|
|
706
709
|
export type { PluginResponseBody } from './schemas/PluginResponseBody';
|
|
710
|
+
export type { PolicyFailure } from './schemas/PolicyFailure';
|
|
707
711
|
export type { PolicyViolation } from './schemas/PolicyViolation';
|
|
708
712
|
export type { PolicyViolationRequestBody } from './schemas/PolicyViolationRequestBody';
|
|
709
713
|
export type { PresignedDownloadResponse } from './schemas/PresignedDownloadResponse';
|
|
@@ -79,6 +79,7 @@ export { getLicenseFamilyConfig, useGetLicenseFamilyConfigQuery, } from './hooks
|
|
|
79
79
|
export { getOssScoringCapConfig, useGetOssScoringCapConfigQuery, } from './hooks/useGetOssScoringCapConfigQuery';
|
|
80
80
|
export { getOverallSummary, useGetOverallSummaryQuery } from './hooks/useGetOverallSummaryQuery';
|
|
81
81
|
export { getPipelineArtifactList, useGetPipelineArtifactListQuery, } from './hooks/useGetPipelineArtifactListQuery';
|
|
82
|
+
export { getPipelineArtifactListV2, useGetPipelineArtifactListV2Query, } from './hooks/useGetPipelineArtifactListV2Query';
|
|
82
83
|
export { getPolicyViolations, useGetPolicyViolationsQuery, } from './hooks/useGetPolicyViolationsQuery';
|
|
83
84
|
export { getProjectAiWorkflowConfig, useGetProjectAiWorkflowConfigQuery, } from './hooks/useGetProjectAiWorkflowConfigQuery';
|
|
84
85
|
export { getProvenance, useGetProvenanceQuery } from './hooks/useGetProvenanceQuery';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -16,6 +16,12 @@ export interface CreateIntegrationRequest {
|
|
|
16
16
|
enabled_scanners?: string[];
|
|
17
17
|
infra_config?: InfraConfigDto;
|
|
18
18
|
installation_id?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Map of scanner identifier to scanner configuration catalog id
|
|
21
|
+
*/
|
|
22
|
+
scanner_config_refs?: {
|
|
23
|
+
[key: string]: string;
|
|
24
|
+
};
|
|
19
25
|
/**
|
|
20
26
|
* Map of scanner identifier to credential secret refs
|
|
21
27
|
*/
|
|
@@ -1,9 +1,14 @@
|
|
|
1
|
+
import type { PolicyFailure } from '../schemas/PolicyFailure';
|
|
1
2
|
import type { PluginResponseBody } from '../schemas/PluginResponseBody';
|
|
2
3
|
export interface EnforceSbomResponseBody {
|
|
3
4
|
/**
|
|
4
5
|
* ID of the enforcement of the SBOM
|
|
5
6
|
*/
|
|
6
7
|
enforcement_id?: string;
|
|
8
|
+
/**
|
|
9
|
+
* Deduplicated policy set and policy identifiers that produced active violations.
|
|
10
|
+
*/
|
|
11
|
+
policy_failures?: PolicyFailure[];
|
|
7
12
|
response?: PluginResponseBody;
|
|
8
13
|
/**
|
|
9
14
|
* Status of the enforcement
|
|
@@ -27,6 +27,10 @@ export interface ExemptionCreateRequestBody {
|
|
|
27
27
|
* Requested duration in days (e.g. 7, 30, 90). null / absent = "All time" (never expires).
|
|
28
28
|
*/
|
|
29
29
|
duration_days?: number | null;
|
|
30
|
+
/**
|
|
31
|
+
* Package manager / purl type (e.g. "npm", "maven", "pypi"). Omit / null when the exemption applies to any package manager. Prefer the SBOM `package_manager` form when tightening match.
|
|
32
|
+
*/
|
|
33
|
+
package_manager?: string | null;
|
|
30
34
|
reason: ExemptionReasonDto;
|
|
31
35
|
/**
|
|
32
36
|
* Link to a Jira / RFC or other supporting reference.
|
|
@@ -45,6 +45,10 @@ export interface ExemptionResponse {
|
|
|
45
45
|
last_modified_at?: number;
|
|
46
46
|
org_id?: string | null;
|
|
47
47
|
org_name?: string | null;
|
|
48
|
+
/**
|
|
49
|
+
* Package manager / purl type (e.g. "npm", "maven", "pypi"). null when the exemption applies to any package manager.
|
|
50
|
+
*/
|
|
51
|
+
package_manager?: string | null;
|
|
48
52
|
project_id?: string | null;
|
|
49
53
|
project_name?: string | null;
|
|
50
54
|
reason?: ExemptionReasonDto;
|
|
@@ -20,6 +20,12 @@ export interface Integration {
|
|
|
20
20
|
*/
|
|
21
21
|
last_scan_at?: number;
|
|
22
22
|
org?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Map of scanner identifier to scanner configuration catalog id
|
|
25
|
+
*/
|
|
26
|
+
scanner_config_refs?: {
|
|
27
|
+
[key: string]: string;
|
|
28
|
+
};
|
|
23
29
|
/**
|
|
24
30
|
* Map of scanner identifier to credential secret refs
|
|
25
31
|
*/
|
|
@@ -42,6 +42,11 @@ export interface OidcIdTokenRequest {
|
|
|
42
42
|
* Environment type
|
|
43
43
|
*/
|
|
44
44
|
environment_type?: string;
|
|
45
|
+
/**
|
|
46
|
+
* Keyless OIDC token source. When set to non-harness, SSCA Manager resolves the account KEYLESS_SIGNING_CONNECTOR_CONFIG and returns an OIDC ID token minted for that AWS/GCP/Azure OIDC connector. When omitted or harness, mints a custom Harness OIDC ID token from the request attributes.
|
|
47
|
+
*
|
|
48
|
+
*/
|
|
49
|
+
keyless_type?: 'harness' | 'non-harness';
|
|
45
50
|
/**
|
|
46
51
|
* Organization identifier
|
|
47
52
|
*/
|
|
@@ -16,6 +16,12 @@ export interface UpdateIntegrationRspmRequest {
|
|
|
16
16
|
*/
|
|
17
17
|
enabled_scanners?: string[];
|
|
18
18
|
infra_config?: InfraConfigDto;
|
|
19
|
+
/**
|
|
20
|
+
* Map of scanner identifier to scanner configuration catalog id
|
|
21
|
+
*/
|
|
22
|
+
scanner_config_refs?: {
|
|
23
|
+
[key: string]: string;
|
|
24
|
+
};
|
|
19
25
|
/**
|
|
20
26
|
* Map of scanner identifier to credential secret refs
|
|
21
27
|
*/
|