@harnessio/react-ssca-manager-client 0.84.45 → 0.85.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/ssca-manager/src/services/hooks/useCancelExemptionMutation.d.ts +23 -0
- package/dist/ssca-manager/src/services/hooks/useCancelExemptionMutation.js +14 -0
- package/dist/ssca-manager/src/services/hooks/useCreateExemptionMutation.d.ts +24 -0
- package/dist/ssca-manager/src/services/hooks/useCreateExemptionMutation.js +14 -0
- package/dist/ssca-manager/src/services/hooks/useGetExemptionQuery.d.ts +24 -0
- package/dist/ssca-manager/src/services/hooks/useGetExemptionQuery.js +14 -0
- package/dist/ssca-manager/src/services/hooks/useListExemptionsQuery.d.ts +34 -0
- package/dist/ssca-manager/src/services/hooks/useListExemptionsQuery.js +14 -0
- package/dist/ssca-manager/src/services/hooks/useReviewExemptionMutation.d.ts +26 -0
- package/dist/ssca-manager/src/services/hooks/useReviewExemptionMutation.js +14 -0
- package/dist/ssca-manager/src/services/hooks/useUpdateExemptionMutation.d.ts +26 -0
- package/dist/ssca-manager/src/services/hooks/useUpdateExemptionMutation.js +14 -0
- package/dist/ssca-manager/src/services/index.d.ts +31 -0
- package/dist/ssca-manager/src/services/index.js +6 -0
- package/dist/ssca-manager/src/services/requestBodies/UpdateIntegrationRspmRequestBodyRequestBody.d.ts +2 -0
- package/dist/ssca-manager/src/services/requestBodies/UpdateIntegrationRspmRequestBodyRequestBody.js +1 -0
- package/dist/ssca-manager/src/services/responses/ApprovalInstanceListResponseBodyResponse.d.ts +2 -0
- package/dist/ssca-manager/src/services/responses/ApprovalInstanceListResponseBodyResponse.js +1 -0
- package/dist/ssca-manager/src/services/schemas/ActivityDetails.d.ts +1 -1
- package/dist/ssca-manager/src/services/schemas/AiBomComponentViewRequestBody.d.ts +4 -0
- package/dist/ssca-manager/src/services/schemas/AiBomModelPipeline.d.ts +4 -0
- package/dist/ssca-manager/src/services/schemas/AiBomSummaryResponse.d.ts +5 -0
- package/dist/ssca-manager/src/services/schemas/ApprovalInstance.d.ts +42 -0
- package/dist/ssca-manager/src/services/schemas/ApprovalInstance.js +4 -0
- package/dist/ssca-manager/src/services/schemas/ArtifactComponentViewRequestBody.d.ts +5 -0
- package/dist/ssca-manager/src/services/schemas/ArtifactComponentViewResponse.d.ts +17 -0
- package/dist/ssca-manager/src/services/schemas/AttestationDetailsResponse.d.ts +4 -0
- package/dist/ssca-manager/src/services/schemas/AttestationEnforcementActivity.d.ts +8 -0
- package/dist/ssca-manager/src/services/schemas/AttestationEnforcementActivity.js +1 -0
- package/dist/ssca-manager/src/services/schemas/ComponentExemptionStatusFilter.d.ts +4 -0
- package/dist/ssca-manager/src/services/schemas/ComponentExemptionStatusFilter.js +4 -0
- package/dist/ssca-manager/src/services/schemas/CreateIntegrationRequest.d.ts +18 -0
- package/dist/ssca-manager/src/services/schemas/EnforcementSummaryResponse.d.ts +4 -0
- package/dist/ssca-manager/src/services/schemas/ExemptionCreateRequestBody.d.ts +35 -0
- package/dist/ssca-manager/src/services/schemas/ExemptionCreateRequestBody.js +1 -0
- package/dist/ssca-manager/src/services/schemas/ExemptionIdResponse.d.ts +9 -0
- package/dist/ssca-manager/src/services/schemas/ExemptionIdResponse.js +4 -0
- package/dist/ssca-manager/src/services/schemas/ExemptionListStatus.d.ts +4 -0
- package/dist/ssca-manager/src/services/schemas/ExemptionListStatus.js +4 -0
- package/dist/ssca-manager/src/services/schemas/ExemptionListingRequestBody.d.ts +23 -0
- package/dist/ssca-manager/src/services/schemas/ExemptionListingRequestBody.js +1 -0
- package/dist/ssca-manager/src/services/schemas/ExemptionListingResponse.d.ts +9 -0
- package/dist/ssca-manager/src/services/schemas/ExemptionListingResponse.js +1 -0
- package/dist/ssca-manager/src/services/schemas/ExemptionReasonDto.d.ts +4 -0
- package/dist/ssca-manager/src/services/schemas/ExemptionReasonDto.js +4 -0
- package/dist/ssca-manager/src/services/schemas/ExemptionResponse.d.ts +58 -0
- package/dist/ssca-manager/src/services/schemas/ExemptionResponse.js +1 -0
- package/dist/ssca-manager/src/services/schemas/ExemptionReviewAction.d.ts +4 -0
- package/dist/ssca-manager/src/services/schemas/ExemptionReviewAction.js +4 -0
- package/dist/ssca-manager/src/services/schemas/ExemptionReviewRequestBody.d.ts +19 -0
- package/dist/ssca-manager/src/services/schemas/ExemptionReviewRequestBody.js +1 -0
- package/dist/ssca-manager/src/services/schemas/ExemptionScopeDto.d.ts +4 -0
- package/dist/ssca-manager/src/services/schemas/ExemptionScopeDto.js +4 -0
- package/dist/ssca-manager/src/services/schemas/ExemptionStatusCounts.d.ts +21 -0
- package/dist/ssca-manager/src/services/schemas/ExemptionStatusCounts.js +4 -0
- package/dist/ssca-manager/src/services/schemas/ExemptionStatusDto.d.ts +4 -0
- package/dist/ssca-manager/src/services/schemas/ExemptionStatusDto.js +4 -0
- package/dist/ssca-manager/src/services/schemas/InfraConfigDto.d.ts +23 -0
- package/dist/ssca-manager/src/services/schemas/InfraConfigDto.js +4 -0
- package/dist/ssca-manager/src/services/schemas/Integration.d.ts +19 -1
- package/dist/ssca-manager/src/services/schemas/Integration.js +0 -3
- package/dist/ssca-manager/src/services/schemas/PolicyViolation.d.ts +15 -0
- package/dist/ssca-manager/src/services/schemas/SbomComponentRequestDto.d.ts +4 -0
- package/dist/ssca-manager/src/services/schemas/SscaSummary.d.ts +4 -0
- package/dist/ssca-manager/src/services/schemas/UpdateIntegrationRspmRequest.d.ts +23 -0
- package/dist/ssca-manager/src/services/schemas/UpdateIntegrationRspmRequest.js +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
3
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
4
|
+
export interface CancelExemptionMutationPathParams {
|
|
5
|
+
exemptionId: string;
|
|
6
|
+
}
|
|
7
|
+
export interface CancelExemptionMutationQueryParams {
|
|
8
|
+
orgId?: string;
|
|
9
|
+
projectId?: string;
|
|
10
|
+
}
|
|
11
|
+
export interface CancelExemptionMutationHeaderParams {
|
|
12
|
+
'Harness-Account': string;
|
|
13
|
+
}
|
|
14
|
+
export type CancelExemptionOkResponse = ResponseWithPagination<unknown>;
|
|
15
|
+
export type CancelExemptionErrorResponse = unknown;
|
|
16
|
+
export interface CancelExemptionProps extends CancelExemptionMutationPathParams, Omit<FetcherOptions<CancelExemptionMutationQueryParams, unknown, CancelExemptionMutationHeaderParams>, 'url'> {
|
|
17
|
+
queryParams: CancelExemptionMutationQueryParams;
|
|
18
|
+
}
|
|
19
|
+
export declare function cancelExemption(props: CancelExemptionProps): Promise<CancelExemptionOkResponse>;
|
|
20
|
+
/**
|
|
21
|
+
* Cancel an exemption. The row is located by account + id; permission is state-dependent and derived from the row's own scope (PENDING requires create + original requester; APPROVED requires approve at the row scope).
|
|
22
|
+
*/
|
|
23
|
+
export declare function useCancelExemptionMutation(options?: Omit<UseMutationOptions<CancelExemptionOkResponse, CancelExemptionErrorResponse, CancelExemptionProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CancelExemptionOkResponse, unknown, CancelExemptionProps, 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 cancelExemption(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/exemptions/${props.exemptionId}`, method: 'DELETE' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Cancel an exemption. The row is located by account + id; permission is state-dependent and derived from the row's own scope (PENDING requires create + original requester; APPROVED requires approve at the row scope).
|
|
11
|
+
*/
|
|
12
|
+
export function useCancelExemptionMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => cancelExemption(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ExemptionIdResponse } from '../schemas/ExemptionIdResponse';
|
|
3
|
+
import type { ExemptionCreateRequestBody } from '../schemas/ExemptionCreateRequestBody';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface CreateExemptionMutationQueryParams {
|
|
7
|
+
orgId: string;
|
|
8
|
+
projectId: string;
|
|
9
|
+
}
|
|
10
|
+
export interface CreateExemptionMutationHeaderParams {
|
|
11
|
+
'Harness-Account': string;
|
|
12
|
+
}
|
|
13
|
+
export type CreateExemptionRequestBody = ExemptionCreateRequestBody;
|
|
14
|
+
export type CreateExemptionOkResponse = ResponseWithPagination<ExemptionIdResponse>;
|
|
15
|
+
export type CreateExemptionErrorResponse = unknown;
|
|
16
|
+
export interface CreateExemptionProps extends Omit<FetcherOptions<CreateExemptionMutationQueryParams, CreateExemptionRequestBody, CreateExemptionMutationHeaderParams>, 'url'> {
|
|
17
|
+
queryParams: CreateExemptionMutationQueryParams;
|
|
18
|
+
body: CreateExemptionRequestBody;
|
|
19
|
+
}
|
|
20
|
+
export declare function createExemption(props: CreateExemptionProps): Promise<CreateExemptionOkResponse>;
|
|
21
|
+
/**
|
|
22
|
+
* File a new exemption request for an SBOM component. A request is always filed at a concrete project, so orgId and projectId are required query params. The exemption is created in PENDING status.
|
|
23
|
+
*/
|
|
24
|
+
export declare function useCreateExemptionMutation(options?: Omit<UseMutationOptions<CreateExemptionOkResponse, CreateExemptionErrorResponse, CreateExemptionProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CreateExemptionOkResponse, unknown, CreateExemptionProps, 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 createExemption(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/exemptions`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* File a new exemption request for an SBOM component. A request is always filed at a concrete project, so orgId and projectId are required query params. The exemption is created in PENDING status.
|
|
11
|
+
*/
|
|
12
|
+
export function useCreateExemptionMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => createExemption(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ExemptionResponse } from '../schemas/ExemptionResponse';
|
|
3
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
+
export interface GetExemptionQueryPathParams {
|
|
6
|
+
exemptionId: string;
|
|
7
|
+
}
|
|
8
|
+
export interface GetExemptionQueryQueryParams {
|
|
9
|
+
orgId?: string;
|
|
10
|
+
projectId?: string;
|
|
11
|
+
}
|
|
12
|
+
export interface GetExemptionQueryHeaderParams {
|
|
13
|
+
'Harness-Account': string;
|
|
14
|
+
}
|
|
15
|
+
export type GetExemptionOkResponse = ResponseWithPagination<ExemptionResponse>;
|
|
16
|
+
export type GetExemptionErrorResponse = unknown;
|
|
17
|
+
export interface GetExemptionProps extends GetExemptionQueryPathParams, Omit<FetcherOptions<GetExemptionQueryQueryParams, unknown, GetExemptionQueryHeaderParams>, 'url'> {
|
|
18
|
+
queryParams: GetExemptionQueryQueryParams;
|
|
19
|
+
}
|
|
20
|
+
export declare function getExemption(props: GetExemptionProps): Promise<GetExemptionOkResponse>;
|
|
21
|
+
/**
|
|
22
|
+
* Fetch a single exemption by id. The row is located by account + id alone; the optional orgId / projectId query params are used only to build the view-permission scope. Soft-deleted (canceled) exemptions are treated as not found.
|
|
23
|
+
*/
|
|
24
|
+
export declare function useGetExemptionQuery(props: GetExemptionProps, options?: Omit<UseQueryOptions<GetExemptionOkResponse, GetExemptionErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetExemptionOkResponse, 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 { useQuery } from '@tanstack/react-query';
|
|
5
|
+
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
|
+
export function getExemption(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/exemptions/${props.exemptionId}`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Fetch a single exemption by id. The row is located by account + id alone; the optional orgId / projectId query params are used only to build the view-permission scope. Soft-deleted (canceled) exemptions are treated as not found.
|
|
11
|
+
*/
|
|
12
|
+
export function useGetExemptionQuery(props, options) {
|
|
13
|
+
return useQuery(['getExemption', props.exemptionId, props.queryParams], ({ signal }) => getExemption(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ExemptionListingResponse } from '../schemas/ExemptionListingResponse';
|
|
3
|
+
import type { ExemptionListingRequestBody } from '../schemas/ExemptionListingRequestBody';
|
|
4
|
+
import type { ExemptionListStatus } from '../schemas/ExemptionListStatus';
|
|
5
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
6
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
7
|
+
export interface ListExemptionsQueryQueryParams {
|
|
8
|
+
orgId?: string;
|
|
9
|
+
projectId?: string;
|
|
10
|
+
status?: ExemptionListStatus;
|
|
11
|
+
/**
|
|
12
|
+
* @default 0
|
|
13
|
+
*/
|
|
14
|
+
page?: number;
|
|
15
|
+
/**
|
|
16
|
+
* @default 30
|
|
17
|
+
*/
|
|
18
|
+
limit?: number;
|
|
19
|
+
}
|
|
20
|
+
export interface ListExemptionsQueryHeaderParams {
|
|
21
|
+
'Harness-Account': string;
|
|
22
|
+
}
|
|
23
|
+
export type ListExemptionsRequestBody = ExemptionListingRequestBody;
|
|
24
|
+
export type ListExemptionsOkResponse = ResponseWithPagination<ExemptionListingResponse>;
|
|
25
|
+
export type ListExemptionsErrorResponse = unknown;
|
|
26
|
+
export interface ListExemptionsProps extends Omit<FetcherOptions<ListExemptionsQueryQueryParams, ListExemptionsRequestBody, ListExemptionsQueryHeaderParams>, 'url'> {
|
|
27
|
+
queryParams: ListExemptionsQueryQueryParams;
|
|
28
|
+
body: ListExemptionsRequestBody;
|
|
29
|
+
}
|
|
30
|
+
export declare function listExemptions(props: ListExemptionsProps): Promise<ListExemptionsOkResponse>;
|
|
31
|
+
/**
|
|
32
|
+
* Unified listing of exemptions across tiers. The tier is selected by the presence of the orgId / projectId query params (none = account, orgId = org, orgId + projectId = project). Filters are supplied in the request body. The response embeds per-status tab counts; pagination metadata is returned in the standard X-Total-Elements / X-Page-Number / X-Page-Size headers.
|
|
33
|
+
*/
|
|
34
|
+
export declare function useListExemptionsQuery(props: ListExemptionsProps, options?: Omit<UseQueryOptions<ListExemptionsOkResponse, ListExemptionsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListExemptionsOkResponse, 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 { useQuery } from '@tanstack/react-query';
|
|
5
|
+
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
|
+
export function listExemptions(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/exemptions/list`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Unified listing of exemptions across tiers. The tier is selected by the presence of the orgId / projectId query params (none = account, orgId = org, orgId + projectId = project). Filters are supplied in the request body. The response embeds per-status tab counts; pagination metadata is returned in the standard X-Total-Elements / X-Page-Number / X-Page-Size headers.
|
|
11
|
+
*/
|
|
12
|
+
export function useListExemptionsQuery(props, options) {
|
|
13
|
+
return useQuery(['listExemptions', props.queryParams, props.body], ({ signal }) => listExemptions(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ExemptionReviewRequestBody } from '../schemas/ExemptionReviewRequestBody';
|
|
3
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
+
export interface ReviewExemptionMutationPathParams {
|
|
6
|
+
exemptionId: string;
|
|
7
|
+
}
|
|
8
|
+
export interface ReviewExemptionMutationQueryParams {
|
|
9
|
+
orgId?: string;
|
|
10
|
+
projectId?: string;
|
|
11
|
+
}
|
|
12
|
+
export interface ReviewExemptionMutationHeaderParams {
|
|
13
|
+
'Harness-Account': string;
|
|
14
|
+
}
|
|
15
|
+
export type ReviewExemptionRequestBody = ExemptionReviewRequestBody;
|
|
16
|
+
export type ReviewExemptionOkResponse = ResponseWithPagination<unknown>;
|
|
17
|
+
export type ReviewExemptionErrorResponse = unknown;
|
|
18
|
+
export interface ReviewExemptionProps extends ReviewExemptionMutationPathParams, Omit<FetcherOptions<ReviewExemptionMutationQueryParams, ReviewExemptionRequestBody, ReviewExemptionMutationHeaderParams>, 'url'> {
|
|
19
|
+
queryParams: ReviewExemptionMutationQueryParams;
|
|
20
|
+
body: ReviewExemptionRequestBody;
|
|
21
|
+
}
|
|
22
|
+
export declare function reviewExemption(props: ReviewExemptionProps): Promise<ReviewExemptionOkResponse>;
|
|
23
|
+
/**
|
|
24
|
+
* Approve or reject a pending exemption. The row is located by account + id. On approve, the target (destination) scope is supplied via the orgId / projectId query params (none = account, orgId = org, orgId + projectId = project) and the approve permission is checked at that target scope. When approving at project scope, include artifact_source_id in the body to approve at artifact-source tier; omit it to approve at whole-project scope (even if the exemption was filed with an artifact source). The action and comment travel in the body.
|
|
25
|
+
*/
|
|
26
|
+
export declare function useReviewExemptionMutation(options?: Omit<UseMutationOptions<ReviewExemptionOkResponse, ReviewExemptionErrorResponse, ReviewExemptionProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<ReviewExemptionOkResponse, unknown, ReviewExemptionProps, 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 reviewExemption(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/exemptions/${props.exemptionId}/review`, method: 'PUT' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Approve or reject a pending exemption. The row is located by account + id. On approve, the target (destination) scope is supplied via the orgId / projectId query params (none = account, orgId = org, orgId + projectId = project) and the approve permission is checked at that target scope. When approving at project scope, include artifact_source_id in the body to approve at artifact-source tier; omit it to approve at whole-project scope (even if the exemption was filed with an artifact source). The action and comment travel in the body.
|
|
11
|
+
*/
|
|
12
|
+
export function useReviewExemptionMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => reviewExemption(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ExemptionCreateRequestBody } from '../schemas/ExemptionCreateRequestBody';
|
|
3
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
+
export interface UpdateExemptionMutationPathParams {
|
|
6
|
+
exemptionId: string;
|
|
7
|
+
}
|
|
8
|
+
export interface UpdateExemptionMutationQueryParams {
|
|
9
|
+
orgId?: string;
|
|
10
|
+
projectId?: string;
|
|
11
|
+
}
|
|
12
|
+
export interface UpdateExemptionMutationHeaderParams {
|
|
13
|
+
'Harness-Account': string;
|
|
14
|
+
}
|
|
15
|
+
export type UpdateExemptionRequestBody = ExemptionCreateRequestBody;
|
|
16
|
+
export type UpdateExemptionOkResponse = ResponseWithPagination<unknown>;
|
|
17
|
+
export type UpdateExemptionErrorResponse = unknown;
|
|
18
|
+
export interface UpdateExemptionProps extends UpdateExemptionMutationPathParams, Omit<FetcherOptions<UpdateExemptionMutationQueryParams, UpdateExemptionRequestBody, UpdateExemptionMutationHeaderParams>, 'url'> {
|
|
19
|
+
queryParams: UpdateExemptionMutationQueryParams;
|
|
20
|
+
body: UpdateExemptionRequestBody;
|
|
21
|
+
}
|
|
22
|
+
export declare function updateExemption(props: UpdateExemptionProps): Promise<UpdateExemptionOkResponse>;
|
|
23
|
+
/**
|
|
24
|
+
* Generic update that reopens an EXPIRED, REJECTED exemption, resetting it to PENDING for re-review with any updated form fields. The optional orgId / projectId query params scope the row fetch (the row is found only if filed at that scope).
|
|
25
|
+
*/
|
|
26
|
+
export declare function useUpdateExemptionMutation(options?: Omit<UseMutationOptions<UpdateExemptionOkResponse, UpdateExemptionErrorResponse, UpdateExemptionProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UpdateExemptionOkResponse, unknown, UpdateExemptionProps, 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 updateExemption(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/exemptions/${props.exemptionId}`, method: 'PUT' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Generic update that reopens an EXPIRED, REJECTED exemption, resetting it to PENDING for re-review with any updated form fields. The optional orgId / projectId query params scope the row fetch (the row is found only if filed at that scope).
|
|
11
|
+
*/
|
|
12
|
+
export function useUpdateExemptionMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => updateExemption(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -3,6 +3,8 @@ export type { ArtifactListV2ErrorResponse, ArtifactListV2OkResponse, ArtifactLis
|
|
|
3
3
|
export { artifactListV2, useArtifactListV2Query } from './hooks/useArtifactListV2Query';
|
|
4
4
|
export type { BulkDownloadAttestationsErrorResponse, BulkDownloadAttestationsMutationQueryParams, BulkDownloadAttestationsOkResponse, BulkDownloadAttestationsProps, BulkDownloadAttestationsRequestBody, } from './hooks/useBulkDownloadAttestationsMutation';
|
|
5
5
|
export { bulkDownloadAttestations, useBulkDownloadAttestationsMutation, } from './hooks/useBulkDownloadAttestationsMutation';
|
|
6
|
+
export type { CancelExemptionErrorResponse, CancelExemptionMutationPathParams, CancelExemptionMutationQueryParams, CancelExemptionOkResponse, CancelExemptionProps, } from './hooks/useCancelExemptionMutation';
|
|
7
|
+
export { cancelExemption, useCancelExemptionMutation } from './hooks/useCancelExemptionMutation';
|
|
6
8
|
export type { CheckArtifactAndDeploymentsErrorResponse, CheckArtifactAndDeploymentsMutationPathParams, CheckArtifactAndDeploymentsOkResponse, CheckArtifactAndDeploymentsProps, CheckArtifactAndDeploymentsRequestBody, } from './hooks/useCheckArtifactAndDeploymentsMutation';
|
|
7
9
|
export { checkArtifactAndDeployments, useCheckArtifactAndDeploymentsMutation, } from './hooks/useCheckArtifactAndDeploymentsMutation';
|
|
8
10
|
export type { CloseRemediationTrackerErrorResponse, CloseRemediationTrackerMutationPathParams, CloseRemediationTrackerOkResponse, CloseRemediationTrackerProps, } from './hooks/useCloseRemediationTrackerMutation';
|
|
@@ -17,6 +19,8 @@ export type { CreateComponentTicketErrorResponse, CreateComponentTicketMutationP
|
|
|
17
19
|
export { createComponentTicket, useCreateComponentTicketMutation, } from './hooks/useCreateComponentTicketMutation';
|
|
18
20
|
export type { CreateEolArtifactSourceComponentTicketErrorResponse, CreateEolArtifactSourceComponentTicketMutationPathParams, CreateEolArtifactSourceComponentTicketMutationQueryParams, CreateEolArtifactSourceComponentTicketOkResponse, CreateEolArtifactSourceComponentTicketProps, CreateEolArtifactSourceComponentTicketRequestBody, } from './hooks/useCreateEolArtifactSourceComponentTicketMutation';
|
|
19
21
|
export { createEolArtifactSourceComponentTicket, useCreateEolArtifactSourceComponentTicketMutation, } from './hooks/useCreateEolArtifactSourceComponentTicketMutation';
|
|
22
|
+
export type { CreateExemptionErrorResponse, CreateExemptionMutationQueryParams, CreateExemptionOkResponse, CreateExemptionProps, CreateExemptionRequestBody, } from './hooks/useCreateExemptionMutation';
|
|
23
|
+
export { createExemption, useCreateExemptionMutation } from './hooks/useCreateExemptionMutation';
|
|
20
24
|
export type { CreateIntegrationErrorResponse, CreateIntegrationMutationPathParams, CreateIntegrationOkResponse, CreateIntegrationProps, CreateIntegrationRequestBody, } from './hooks/useCreateIntegrationMutation';
|
|
21
25
|
export { createIntegration, useCreateIntegrationMutation, } from './hooks/useCreateIntegrationMutation';
|
|
22
26
|
export type { CreateRemediationPullRequestErrorResponse, CreateRemediationPullRequestMutationPathParams, CreateRemediationPullRequestOkResponse, CreateRemediationPullRequestProps, CreateRemediationPullRequestRequestBody, } from './hooks/useCreateRemediationPullRequestMutation';
|
|
@@ -137,6 +141,8 @@ export type { GetEolArtifactSourceComponentTicketErrorResponse, GetEolArtifactSo
|
|
|
137
141
|
export { getEolArtifactSourceComponentTicket, useGetEolArtifactSourceComponentTicketQuery, } from './hooks/useGetEolArtifactSourceComponentTicketQuery';
|
|
138
142
|
export type { GetEolAutoTicketConfigErrorResponse, GetEolAutoTicketConfigOkResponse, GetEolAutoTicketConfigProps, GetEolAutoTicketConfigQueryPathParams, } from './hooks/useGetEolAutoTicketConfigQuery';
|
|
139
143
|
export { getEolAutoTicketConfig, useGetEolAutoTicketConfigQuery, } from './hooks/useGetEolAutoTicketConfigQuery';
|
|
144
|
+
export type { GetExemptionErrorResponse, GetExemptionOkResponse, GetExemptionProps, GetExemptionQueryPathParams, GetExemptionQueryQueryParams, } from './hooks/useGetExemptionQuery';
|
|
145
|
+
export { getExemption, useGetExemptionQuery } from './hooks/useGetExemptionQuery';
|
|
140
146
|
export type { GetHarnessPipelineIntegrationErrorResponse, GetHarnessPipelineIntegrationOkResponse, GetHarnessPipelineIntegrationProps, GetHarnessPipelineIntegrationQueryPathParams, } from './hooks/useGetHarnessPipelineIntegrationQuery';
|
|
141
147
|
export { getHarnessPipelineIntegration, useGetHarnessPipelineIntegrationQuery, } from './hooks/useGetHarnessPipelineIntegrationQuery';
|
|
142
148
|
export type { GetIntegrationReposErrorResponse, GetIntegrationReposOkResponse, GetIntegrationReposProps, GetIntegrationReposQueryPathParams, } from './hooks/useGetIntegrationReposQuery';
|
|
@@ -175,6 +181,8 @@ export type { ListArtifactSourcesErrorResponse, ListArtifactSourcesOkResponse, L
|
|
|
175
181
|
export { listArtifactSources, useListArtifactSourcesQuery, } from './hooks/useListArtifactSourcesQuery';
|
|
176
182
|
export type { ListAttestationsErrorResponse, ListAttestationsMutationQueryParams, ListAttestationsOkResponse, ListAttestationsProps, ListAttestationsRequestBody, } from './hooks/useListAttestationsMutation';
|
|
177
183
|
export { listAttestations, useListAttestationsMutation } from './hooks/useListAttestationsMutation';
|
|
184
|
+
export type { ListExemptionsErrorResponse, ListExemptionsOkResponse, ListExemptionsProps, ListExemptionsQueryQueryParams, ListExemptionsRequestBody, } from './hooks/useListExemptionsQuery';
|
|
185
|
+
export { listExemptions, useListExemptionsQuery } from './hooks/useListExemptionsQuery';
|
|
178
186
|
export type { ListIntegrationsErrorResponse, ListIntegrationsOkResponse, ListIntegrationsProps, ListIntegrationsQueryPathParams, ListIntegrationsQueryQueryParams, } from './hooks/useListIntegrationsQuery';
|
|
179
187
|
export { listIntegrations, useListIntegrationsQuery } from './hooks/useListIntegrationsQuery';
|
|
180
188
|
export type { ListRemediationsErrorResponse, ListRemediationsOkResponse, ListRemediationsProps, ListRemediationsQueryPathParams, ListRemediationsQueryQueryParams, ListRemediationsRequestBody, } from './hooks/useListRemediationsQuery';
|
|
@@ -187,6 +195,8 @@ export type { RemediateAffectedTargetErrorResponse, RemediateAffectedTargetOkRes
|
|
|
187
195
|
export { remediateAffectedTarget, useRemediateAffectedTargetQuery, } from './hooks/useRemediateAffectedTargetQuery';
|
|
188
196
|
export type { ResetLicenseFamilyConfigErrorResponse, ResetLicenseFamilyConfigMutationPathParams, ResetLicenseFamilyConfigMutationQueryParams, ResetLicenseFamilyConfigOkResponse, ResetLicenseFamilyConfigProps, } from './hooks/useResetLicenseFamilyConfigMutation';
|
|
189
197
|
export { resetLicenseFamilyConfig, useResetLicenseFamilyConfigMutation, } from './hooks/useResetLicenseFamilyConfigMutation';
|
|
198
|
+
export type { ReviewExemptionErrorResponse, ReviewExemptionMutationPathParams, ReviewExemptionMutationQueryParams, ReviewExemptionOkResponse, ReviewExemptionProps, ReviewExemptionRequestBody, } from './hooks/useReviewExemptionMutation';
|
|
199
|
+
export { reviewExemption, useReviewExemptionMutation } from './hooks/useReviewExemptionMutation';
|
|
190
200
|
export type { SaveAccountAiWorkflowConfigErrorResponse, SaveAccountAiWorkflowConfigMutationQueryParams, SaveAccountAiWorkflowConfigOkResponse, SaveAccountAiWorkflowConfigProps, SaveAccountAiWorkflowConfigRequestBody, } from './hooks/useSaveAccountAiWorkflowConfigMutation';
|
|
191
201
|
export { saveAccountAiWorkflowConfig, useSaveAccountAiWorkflowConfigMutation, } from './hooks/useSaveAccountAiWorkflowConfigMutation';
|
|
192
202
|
export type { SaveAutoPrConfigErrorResponse, SaveAutoPrConfigOkResponse, SaveAutoPrConfigProps, SaveAutoPrConfigRequestBody, } from './hooks/useSaveAutoPrConfigMutation';
|
|
@@ -201,6 +211,8 @@ export type { SscaLicenseUsageErrorResponse, SscaLicenseUsageOkResponse, SscaLic
|
|
|
201
211
|
export { sscaLicenseUsage, useSscaLicenseUsageQuery } from './hooks/useSscaLicenseUsageQuery';
|
|
202
212
|
export type { ToggleAgentStatusErrorResponse, ToggleAgentStatusOkResponse, ToggleAgentStatusProps, ToggleAgentStatusRequestBody, } from './hooks/useToggleAgentStatusMutation';
|
|
203
213
|
export { toggleAgentStatus, useToggleAgentStatusMutation, } from './hooks/useToggleAgentStatusMutation';
|
|
214
|
+
export type { UpdateExemptionErrorResponse, UpdateExemptionMutationPathParams, UpdateExemptionMutationQueryParams, UpdateExemptionOkResponse, UpdateExemptionProps, UpdateExemptionRequestBody, } from './hooks/useUpdateExemptionMutation';
|
|
215
|
+
export { updateExemption, useUpdateExemptionMutation } from './hooks/useUpdateExemptionMutation';
|
|
204
216
|
export type { UpdateRemediationTrackerErrorResponse, UpdateRemediationTrackerMutationPathParams, UpdateRemediationTrackerOkResponse, UpdateRemediationTrackerProps, UpdateRemediationTrackerRequestBody, } from './hooks/useUpdateRemediationTrackerMutation';
|
|
205
217
|
export { updateRemediationTracker, useUpdateRemediationTrackerMutation, } from './hooks/useUpdateRemediationTrackerMutation';
|
|
206
218
|
export type { UpsertEolAutoTicketConfigErrorResponse, UpsertEolAutoTicketConfigMutationPathParams, UpsertEolAutoTicketConfigOkResponse, UpsertEolAutoTicketConfigProps, UpsertEolAutoTicketConfigRequestBody, } from './hooks/useUpsertEolAutoTicketConfigMutation';
|
|
@@ -269,6 +281,8 @@ export type { SbomScoreRequestBodyRequestBody } from './requestBodies/SbomScoreR
|
|
|
269
281
|
export type { SbomScorecardRequestBodyRequestBody } from './requestBodies/SbomScorecardRequestBodyRequestBody';
|
|
270
282
|
export type { SlsaVerificationRequestBodyRequestBody } from './requestBodies/SlsaVerificationRequestBodyRequestBody';
|
|
271
283
|
export type { SlsaVerificationRequestBodyV2RequestBody } from './requestBodies/SlsaVerificationRequestBodyV2RequestBody';
|
|
284
|
+
export type { UpdateIntegrationRspmRequestBodyRequestBody } from './requestBodies/UpdateIntegrationRspmRequestBodyRequestBody';
|
|
285
|
+
export type { ApprovalInstanceListResponseBodyResponse } from './responses/ApprovalInstanceListResponseBodyResponse';
|
|
272
286
|
export type { ArtifactComponentOverviewResponseBodyResponse } from './responses/ArtifactComponentOverviewResponseBodyResponse';
|
|
273
287
|
export type { ArtifactComponentRemediationResponseBodyResponse } from './responses/ArtifactComponentRemediationResponseBodyResponse';
|
|
274
288
|
export type { ArtifactComponentViewResponseBodyResponse } from './responses/ArtifactComponentViewResponseBodyResponse';
|
|
@@ -394,6 +408,7 @@ export type { AiWorkflowTriggerResponse } from './schemas/AiWorkflowTriggerRespo
|
|
|
394
408
|
export type { AiWorkflowTypeEnum } from './schemas/AiWorkflowTypeEnum';
|
|
395
409
|
export type { AlertContext } from './schemas/AlertContext';
|
|
396
410
|
export type { AppendAiWorkflowStepExecutionResponse } from './schemas/AppendAiWorkflowStepExecutionResponse';
|
|
411
|
+
export type { ApprovalInstance } from './schemas/ApprovalInstance';
|
|
397
412
|
export type { Artifact } from './schemas/Artifact';
|
|
398
413
|
export type { ArtifactAndDeploymentsResponseBody } from './schemas/ArtifactAndDeploymentsResponseBody';
|
|
399
414
|
export type { ArtifactChainOfCustody } from './schemas/ArtifactChainOfCustody';
|
|
@@ -432,6 +447,7 @@ export type { AttestationAiSummaryRequest } from './schemas/AttestationAiSummary
|
|
|
432
447
|
export type { AttestationAiSummaryResponse } from './schemas/AttestationAiSummaryResponse';
|
|
433
448
|
export type { AttestationBulkDownloadRequest } from './schemas/AttestationBulkDownloadRequest';
|
|
434
449
|
export type { AttestationDetailsResponse } from './schemas/AttestationDetailsResponse';
|
|
450
|
+
export type { AttestationEnforcementActivity } from './schemas/AttestationEnforcementActivity';
|
|
435
451
|
export type { AttestationEnforcementRequest } from './schemas/AttestationEnforcementRequest';
|
|
436
452
|
export type { AttestationEnforcementResponse } from './schemas/AttestationEnforcementResponse';
|
|
437
453
|
export type { AttestationLinks } from './schemas/AttestationLinks';
|
|
@@ -519,6 +535,7 @@ export type { ComponentDependencyItem } from './schemas/ComponentDependencyItem'
|
|
|
519
535
|
export type { ComponentDrift } from './schemas/ComponentDrift';
|
|
520
536
|
export type { ComponentDriftSummary } from './schemas/ComponentDriftSummary';
|
|
521
537
|
export type { ComponentDto } from './schemas/ComponentDto';
|
|
538
|
+
export type { ComponentExemptionStatusFilter } from './schemas/ComponentExemptionStatusFilter';
|
|
522
539
|
export type { ComponentFilter } from './schemas/ComponentFilter';
|
|
523
540
|
export type { ComponentParent } from './schemas/ComponentParent';
|
|
524
541
|
export type { ComponentRemediationResponse } from './schemas/ComponentRemediationResponse';
|
|
@@ -584,6 +601,18 @@ export type { ExecutionDetail } from './schemas/ExecutionDetail';
|
|
|
584
601
|
export type { ExecutionLimitRequestBody } from './schemas/ExecutionLimitRequestBody';
|
|
585
602
|
export type { ExecutionLimitResponseBody } from './schemas/ExecutionLimitResponseBody';
|
|
586
603
|
export type { ExecutionType } from './schemas/ExecutionType';
|
|
604
|
+
export type { ExemptionCreateRequestBody } from './schemas/ExemptionCreateRequestBody';
|
|
605
|
+
export type { ExemptionIdResponse } from './schemas/ExemptionIdResponse';
|
|
606
|
+
export type { ExemptionListStatus } from './schemas/ExemptionListStatus';
|
|
607
|
+
export type { ExemptionListingRequestBody } from './schemas/ExemptionListingRequestBody';
|
|
608
|
+
export type { ExemptionListingResponse } from './schemas/ExemptionListingResponse';
|
|
609
|
+
export type { ExemptionReasonDto } from './schemas/ExemptionReasonDto';
|
|
610
|
+
export type { ExemptionResponse } from './schemas/ExemptionResponse';
|
|
611
|
+
export type { ExemptionReviewAction } from './schemas/ExemptionReviewAction';
|
|
612
|
+
export type { ExemptionReviewRequestBody } from './schemas/ExemptionReviewRequestBody';
|
|
613
|
+
export type { ExemptionScopeDto } from './schemas/ExemptionScopeDto';
|
|
614
|
+
export type { ExemptionStatusCounts } from './schemas/ExemptionStatusCounts';
|
|
615
|
+
export type { ExemptionStatusDto } from './schemas/ExemptionStatusDto';
|
|
587
616
|
export type { FetchComplianceResultByArtifactResponseBody } from './schemas/FetchComplianceResultByArtifactResponseBody';
|
|
588
617
|
export type { GetIntegrationSummaryResponse } from './schemas/GetIntegrationSummaryResponse';
|
|
589
618
|
export type { GithubExecutionContext } from './schemas/GithubExecutionContext';
|
|
@@ -604,6 +633,7 @@ export type { HarnessPipelineSettings } from './schemas/HarnessPipelineSettings'
|
|
|
604
633
|
export type { HarnessRunner } from './schemas/HarnessRunner';
|
|
605
634
|
export type { HarnessRunnerDetail } from './schemas/HarnessRunnerDetail';
|
|
606
635
|
export type { ImageSpec } from './schemas/ImageSpec';
|
|
636
|
+
export type { InfraConfigDto } from './schemas/InfraConfigDto';
|
|
607
637
|
export type { InfraLayout } from './schemas/InfraLayout';
|
|
608
638
|
export type { Integration } from './schemas/Integration';
|
|
609
639
|
export type { IntegrationConfig } from './schemas/IntegrationConfig';
|
|
@@ -751,6 +781,7 @@ export type { TriggerType } from './schemas/TriggerType';
|
|
|
751
781
|
export type { UpdateAiWorkflowExecutionStatusRequest } from './schemas/UpdateAiWorkflowExecutionStatusRequest';
|
|
752
782
|
export type { UpdateAiWorkflowExecutionStatusResponse } from './schemas/UpdateAiWorkflowExecutionStatusResponse';
|
|
753
783
|
export type { UpdateIntegration } from './schemas/UpdateIntegration';
|
|
784
|
+
export type { UpdateIntegrationRspmRequest } from './schemas/UpdateIntegrationRspmRequest';
|
|
754
785
|
export type { VerificationActivity } from './schemas/VerificationActivity';
|
|
755
786
|
export type { VerificationStatus } from './schemas/VerificationStatus';
|
|
756
787
|
export type { VersionInfo } from './schemas/VersionInfo';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { artifactListV2, useArtifactListV2Query } from './hooks/useArtifactListV2Query';
|
|
2
2
|
export { bulkDownloadAttestations, useBulkDownloadAttestationsMutation, } from './hooks/useBulkDownloadAttestationsMutation';
|
|
3
|
+
export { cancelExemption, useCancelExemptionMutation } from './hooks/useCancelExemptionMutation';
|
|
3
4
|
export { checkArtifactAndDeployments, useCheckArtifactAndDeploymentsMutation, } from './hooks/useCheckArtifactAndDeploymentsMutation';
|
|
4
5
|
export { closeRemediationTracker, useCloseRemediationTrackerMutation, } from './hooks/useCloseRemediationTrackerMutation';
|
|
5
6
|
export { codeRepositoriesList, useCodeRepositoriesListQuery, } from './hooks/useCodeRepositoriesListQuery';
|
|
@@ -7,6 +8,7 @@ export { configureRepos, useConfigureReposMutation } from './hooks/useConfigureR
|
|
|
7
8
|
export { createComplianceStandards, useCreateComplianceStandardsMutation, } from './hooks/useCreateComplianceStandardsMutation';
|
|
8
9
|
export { createComponentTicket, useCreateComponentTicketMutation, } from './hooks/useCreateComponentTicketMutation';
|
|
9
10
|
export { createEolArtifactSourceComponentTicket, useCreateEolArtifactSourceComponentTicketMutation, } from './hooks/useCreateEolArtifactSourceComponentTicketMutation';
|
|
11
|
+
export { createExemption, useCreateExemptionMutation } from './hooks/useCreateExemptionMutation';
|
|
10
12
|
export { createIntegration, useCreateIntegrationMutation, } from './hooks/useCreateIntegrationMutation';
|
|
11
13
|
export { createRemediationPullRequest, useCreateRemediationPullRequestMutation, } from './hooks/useCreateRemediationPullRequestMutation';
|
|
12
14
|
export { createRemediationTracker, useCreateRemediationTrackerMutation, } from './hooks/useCreateRemediationTrackerMutation';
|
|
@@ -67,6 +69,7 @@ export { getDeploymentsListForArtifactInRemediation, useGetDeploymentsListForArt
|
|
|
67
69
|
export { getEnvironmentListForRemediation, useGetEnvironmentListForRemediationQuery, } from './hooks/useGetEnvironmentListForRemediationQuery';
|
|
68
70
|
export { getEolArtifactSourceComponentTicket, useGetEolArtifactSourceComponentTicketQuery, } from './hooks/useGetEolArtifactSourceComponentTicketQuery';
|
|
69
71
|
export { getEolAutoTicketConfig, useGetEolAutoTicketConfigQuery, } from './hooks/useGetEolAutoTicketConfigQuery';
|
|
72
|
+
export { getExemption, useGetExemptionQuery } from './hooks/useGetExemptionQuery';
|
|
70
73
|
export { getHarnessPipelineIntegration, useGetHarnessPipelineIntegrationQuery, } from './hooks/useGetHarnessPipelineIntegrationQuery';
|
|
71
74
|
export { getIntegrationRepos, useGetIntegrationReposQuery, } from './hooks/useGetIntegrationReposQuery';
|
|
72
75
|
export { getIntegrationsConfig, useGetIntegrationsConfigQuery, } from './hooks/useGetIntegrationsConfigQuery';
|
|
@@ -86,12 +89,14 @@ export { importLicenseFamilyConfig, useImportLicenseFamilyConfigMutation, } from
|
|
|
86
89
|
export { listAgentStatuses, useListAgentStatusesQuery } from './hooks/useListAgentStatusesQuery';
|
|
87
90
|
export { listArtifactSources, useListArtifactSourcesQuery, } from './hooks/useListArtifactSourcesQuery';
|
|
88
91
|
export { listAttestations, useListAttestationsMutation } from './hooks/useListAttestationsMutation';
|
|
92
|
+
export { listExemptions, useListExemptionsQuery } from './hooks/useListExemptionsQuery';
|
|
89
93
|
export { listIntegrations, useListIntegrationsQuery } from './hooks/useListIntegrationsQuery';
|
|
90
94
|
export { listRemediations, useListRemediationsQuery } from './hooks/useListRemediationsQuery';
|
|
91
95
|
export { postComplianceResultStatsEvaluationBreakdownArtifactType, usePostComplianceResultStatsEvaluationBreakdownArtifactTypeMutation, } from './hooks/usePostComplianceResultStatsEvaluationBreakdownArtifactTypeMutation';
|
|
92
96
|
export { postComplianceResultStatsOverview, usePostComplianceResultStatsOverviewMutation, } from './hooks/usePostComplianceResultStatsOverviewMutation';
|
|
93
97
|
export { remediateAffectedTarget, useRemediateAffectedTargetQuery, } from './hooks/useRemediateAffectedTargetQuery';
|
|
94
98
|
export { resetLicenseFamilyConfig, useResetLicenseFamilyConfigMutation, } from './hooks/useResetLicenseFamilyConfigMutation';
|
|
99
|
+
export { reviewExemption, useReviewExemptionMutation } from './hooks/useReviewExemptionMutation';
|
|
95
100
|
export { saveAccountAiWorkflowConfig, useSaveAccountAiWorkflowConfigMutation, } from './hooks/useSaveAccountAiWorkflowConfigMutation';
|
|
96
101
|
export { saveAutoPrConfig, useSaveAutoPrConfigMutation } from './hooks/useSaveAutoPrConfigMutation';
|
|
97
102
|
export { saveConnectorConfig, useSaveConnectorConfigMutation, } from './hooks/useSaveConnectorConfigMutation';
|
|
@@ -99,5 +104,6 @@ export { saveOssScoringCapConfig, useSaveOssScoringCapConfigQuery, } from './hoo
|
|
|
99
104
|
export { setBaselineForArtifactV2, useSetBaselineForArtifactV2Mutation, } from './hooks/useSetBaselineForArtifactV2Mutation';
|
|
100
105
|
export { sscaLicenseUsage, useSscaLicenseUsageQuery } from './hooks/useSscaLicenseUsageQuery';
|
|
101
106
|
export { toggleAgentStatus, useToggleAgentStatusMutation, } from './hooks/useToggleAgentStatusMutation';
|
|
107
|
+
export { updateExemption, useUpdateExemptionMutation } from './hooks/useUpdateExemptionMutation';
|
|
102
108
|
export { updateRemediationTracker, useUpdateRemediationTrackerMutation, } from './hooks/useUpdateRemediationTrackerMutation';
|
|
103
109
|
export { upsertEolAutoTicketConfig, useUpsertEolAutoTicketConfigMutation, } from './hooks/useUpsertEolAutoTicketConfigMutation';
|
package/dist/ssca-manager/src/services/requestBodies/UpdateIntegrationRspmRequestBodyRequestBody.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export interface ActivityDetails {
|
|
2
|
-
type: 'attestation' | 'deployment' | 'enforcement' | 'integrity_verification' | 'orchestration' | 'provenance' | 'signing' | 'verification' | 'vulnerability';
|
|
2
|
+
type: 'attestation' | 'attestation_enforcement' | 'deployment' | 'enforcement' | 'integrity_verification' | 'orchestration' | 'provenance' | 'signing' | 'verification' | 'vulnerability';
|
|
3
3
|
}
|
|
@@ -7,6 +7,10 @@ export interface AiBomComponentViewRequestBody {
|
|
|
7
7
|
* Filter by component type (e.g. model, pkg, agent, framework)
|
|
8
8
|
*/
|
|
9
9
|
ai_component_type?: string;
|
|
10
|
+
/**
|
|
11
|
+
* Filter by SPDX license identifier (e.g. proprietary, apache-2.0)
|
|
12
|
+
*/
|
|
13
|
+
license_filter?: AiBomStringFilter;
|
|
10
14
|
name_filter?: AiBomStringFilter;
|
|
11
15
|
provider_filter?: AiBomStringFilter;
|
|
12
16
|
}
|
|
@@ -36,6 +36,11 @@ export interface AiBomSummaryResponse {
|
|
|
36
36
|
* Orchestration identifier for the AI-BOM scan
|
|
37
37
|
*/
|
|
38
38
|
orchestration_id?: string;
|
|
39
|
+
/**
|
|
40
|
+
* Number of service components (e.g. MCP servers)
|
|
41
|
+
* @format int64
|
|
42
|
+
*/
|
|
43
|
+
service_count?: number;
|
|
39
44
|
/**
|
|
40
45
|
* Name of the AI-BOM tool used
|
|
41
46
|
*/
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Approval instance proxied from pipeline-service.
|
|
3
|
+
*/
|
|
4
|
+
export interface ApprovalInstance {
|
|
5
|
+
/**
|
|
6
|
+
* Creation timestamp for the approval instance.
|
|
7
|
+
* @format int64
|
|
8
|
+
*/
|
|
9
|
+
created?: number;
|
|
10
|
+
/**
|
|
11
|
+
* Deadline timestamp for the approval instance.
|
|
12
|
+
* @format int64
|
|
13
|
+
*/
|
|
14
|
+
deadline?: number;
|
|
15
|
+
/**
|
|
16
|
+
* Approval instance response details.
|
|
17
|
+
*/
|
|
18
|
+
details?: {
|
|
19
|
+
[key: string]: any;
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Error message for the approval instance.
|
|
23
|
+
*/
|
|
24
|
+
error_message?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Approval instance identifier.
|
|
27
|
+
*/
|
|
28
|
+
id?: string;
|
|
29
|
+
/**
|
|
30
|
+
* Approval status.
|
|
31
|
+
*/
|
|
32
|
+
status?: 'ABORTED' | 'APPROVED' | 'EXPIRED' | 'FAILED' | 'REJECTED' | 'WAITING';
|
|
33
|
+
/**
|
|
34
|
+
* Approval type.
|
|
35
|
+
*/
|
|
36
|
+
type?: 'CustomApproval' | 'HarnessApproval' | 'JiraApproval' | 'ServiceNowApproval';
|
|
37
|
+
/**
|
|
38
|
+
* Last modification timestamp for the approval instance.
|
|
39
|
+
* @format int64
|
|
40
|
+
*/
|
|
41
|
+
updated?: number;
|
|
42
|
+
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ComponentExemptionStatusFilter } from '../schemas/ComponentExemptionStatusFilter';
|
|
1
2
|
import type { ComponentFilter } from '../schemas/ComponentFilter';
|
|
2
3
|
import type { DependencyType } from '../schemas/DependencyType';
|
|
3
4
|
import type { LayerType } from '../schemas/LayerType';
|
|
@@ -5,6 +6,10 @@ import type { LicenseFilter } from '../schemas/LicenseFilter';
|
|
|
5
6
|
import type { OssRiskFilter } from '../schemas/OssRiskFilter';
|
|
6
7
|
import type { OwaspFilter } from '../schemas/OwaspFilter';
|
|
7
8
|
export interface ArtifactComponentViewRequestBody {
|
|
9
|
+
/**
|
|
10
|
+
* Filter components by the display status of their winning SBOM-component exemption. NONE = no applicable exemption. Ignored unless SCS_EXEMPTION is on.
|
|
11
|
+
*/
|
|
12
|
+
component_exemption_status?: ComponentExemptionStatusFilter[];
|
|
8
13
|
component_filter?: ComponentFilter[];
|
|
9
14
|
dependency_type_filter?: DependencyType[];
|
|
10
15
|
image_layer?: LayerType;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ExemptionStatusDto } from '../schemas/ExemptionStatusDto';
|
|
1
2
|
import type { ComponentScore } from '../schemas/ComponentScore';
|
|
2
3
|
import type { DependencyType } from '../schemas/DependencyType';
|
|
3
4
|
import type { LayerType } from '../schemas/LayerType';
|
|
@@ -6,7 +7,23 @@ import type { MaliciousDetail } from '../schemas/MaliciousDetail';
|
|
|
6
7
|
import type { ComponentParent } from '../schemas/ComponentParent';
|
|
7
8
|
import type { VulnerabilitySource } from '../schemas/VulnerabilitySource';
|
|
8
9
|
export interface ArtifactComponentViewResponse {
|
|
10
|
+
/**
|
|
11
|
+
* Artifact source id for the SBOM component
|
|
12
|
+
*/
|
|
13
|
+
artifact_source_id?: string;
|
|
14
|
+
/**
|
|
15
|
+
* uuid of the winning exemption; null when no exemption applies.
|
|
16
|
+
*/
|
|
17
|
+
component_exemption_id?: string | null;
|
|
18
|
+
/**
|
|
19
|
+
* Display status of the winning SBOM-component exemption for this (name, version). Distinct from exemption_status (vuln coverage). Null when no exemption applies.
|
|
20
|
+
*/
|
|
21
|
+
component_exemption_status?: ExemptionStatusDto;
|
|
9
22
|
component_score?: ComponentScore;
|
|
23
|
+
/**
|
|
24
|
+
* Dockerfile-based origin classification of the component (APP, BASE, DOCKERFILE)
|
|
25
|
+
*/
|
|
26
|
+
component_source?: string;
|
|
10
27
|
dependency_types?: DependencyType[];
|
|
11
28
|
/**
|
|
12
29
|
* details of the component
|
|
@@ -25,6 +25,10 @@ export interface AttestationDetailsResponse<T0 extends ExecutionContextV2 = Exec
|
|
|
25
25
|
* MIME type of the DSSE payload (e.g. application/vnd.in-toto+json).
|
|
26
26
|
*/
|
|
27
27
|
payload_type?: string;
|
|
28
|
+
/**
|
|
29
|
+
* signature of the DSSE envelope associated with attestation.
|
|
30
|
+
*/
|
|
31
|
+
signature?: string;
|
|
28
32
|
source: AttestationSource;
|
|
29
33
|
/**
|
|
30
34
|
* All attestation subjects.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,6 +1,24 @@
|
|
|
1
|
+
import type { InfraConfigDto } from '../schemas/InfraConfigDto';
|
|
1
2
|
import type { IntegrationType } from '../schemas/IntegrationType';
|
|
2
3
|
export interface CreateIntegrationRequest {
|
|
3
4
|
connector_id?: string;
|
|
5
|
+
/**
|
|
6
|
+
* Cron expression for scan frequency. Defaults to daily if not provided.
|
|
7
|
+
*/
|
|
8
|
+
cron_expression?: string;
|
|
9
|
+
/**
|
|
10
|
+
* Flat list of enabled scanner identifiers (e.g. SEMGREP, WIZ, CHECKMARX)
|
|
11
|
+
*/
|
|
12
|
+
enabled_scanners?: string[];
|
|
13
|
+
infra_config?: InfraConfigDto;
|
|
4
14
|
installation_id?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Map of scanner identifier to credential secret refs
|
|
17
|
+
*/
|
|
18
|
+
scanner_credentials?: {
|
|
19
|
+
[key: string]: {
|
|
20
|
+
[key: string]: string;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
5
23
|
type?: IntegrationType;
|
|
6
24
|
}
|
|
@@ -8,5 +8,9 @@ export interface EnforcementSummaryResponse {
|
|
|
8
8
|
deny_list_violation_count?: number;
|
|
9
9
|
enforcement_id?: string;
|
|
10
10
|
exempted_component_count?: number;
|
|
11
|
+
/**
|
|
12
|
+
* Components skipped by package_age rules because their publish date was unavailable
|
|
13
|
+
*/
|
|
14
|
+
skipped_component_count?: number;
|
|
11
15
|
status?: string;
|
|
12
16
|
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { ExemptionReasonDto } from '../schemas/ExemptionReasonDto';
|
|
2
|
+
/**
|
|
3
|
+
* Request body to create or reopen an SBOM component exemption. Also used by the update (reopen) endpoint.
|
|
4
|
+
*/
|
|
5
|
+
export interface ExemptionCreateRequestBody {
|
|
6
|
+
/**
|
|
7
|
+
* Stable artifact source identifier. Set = ARTIFACT_SOURCE-scoped (applies to this source only);
|
|
8
|
+
*/
|
|
9
|
+
artifact_source_id?: string | null;
|
|
10
|
+
/**
|
|
11
|
+
* Denormalized display name of the artifact source (set only with artifact_source_id).
|
|
12
|
+
*/
|
|
13
|
+
artifact_source_name?: string | null;
|
|
14
|
+
/**
|
|
15
|
+
* Package name (e.g. "log4j"). Used for enforcement matching.
|
|
16
|
+
*/
|
|
17
|
+
component_name: string;
|
|
18
|
+
/**
|
|
19
|
+
* Exact component version. Omit / null when the exemption applies to all versions.
|
|
20
|
+
*/
|
|
21
|
+
component_version?: string | null;
|
|
22
|
+
/**
|
|
23
|
+
* Free-text justification.
|
|
24
|
+
*/
|
|
25
|
+
description?: string | null;
|
|
26
|
+
/**
|
|
27
|
+
* Requested duration in days (e.g. 7, 30, 90). null / absent = "All time" (never expires).
|
|
28
|
+
*/
|
|
29
|
+
duration_days?: number | null;
|
|
30
|
+
reason: ExemptionReasonDto;
|
|
31
|
+
/**
|
|
32
|
+
* Link to a Jira / RFC or other supporting reference.
|
|
33
|
+
*/
|
|
34
|
+
url_reference?: string | null;
|
|
35
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { ExemptionReasonDto } from '../schemas/ExemptionReasonDto';
|
|
2
|
+
import type { ExemptionScopeDto } from '../schemas/ExemptionScopeDto';
|
|
3
|
+
/**
|
|
4
|
+
* Filter set for the exemptions listing. All fields are optional; empty / absent values skip the corresponding filter.
|
|
5
|
+
*/
|
|
6
|
+
export interface ExemptionListingRequestBody {
|
|
7
|
+
/**
|
|
8
|
+
* Case-insensitive prefix match on component name.
|
|
9
|
+
*/
|
|
10
|
+
component_name?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Exact component version match.
|
|
13
|
+
*/
|
|
14
|
+
component_version?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Multi-select reason filter.
|
|
17
|
+
*/
|
|
18
|
+
reasons?: ExemptionReasonDto[];
|
|
19
|
+
/**
|
|
20
|
+
* Multi-select scope filter.
|
|
21
|
+
*/
|
|
22
|
+
scopes?: ExemptionScopeDto[];
|
|
23
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ExemptionResponse } from '../schemas/ExemptionResponse';
|
|
2
|
+
import type { ExemptionStatusCounts } from '../schemas/ExemptionStatusCounts';
|
|
3
|
+
/**
|
|
4
|
+
* Unified listing response — page rows plus per-status tab counts.
|
|
5
|
+
*/
|
|
6
|
+
export interface ExemptionListingResponse {
|
|
7
|
+
exemptions?: ExemptionResponse[];
|
|
8
|
+
status_counts?: ExemptionStatusCounts;
|
|
9
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import type { ExemptionScopeDto } from '../schemas/ExemptionScopeDto';
|
|
2
|
+
import type { ExemptionReasonDto } from '../schemas/ExemptionReasonDto';
|
|
3
|
+
import type { ExemptionStatusDto } from '../schemas/ExemptionStatusDto';
|
|
4
|
+
/**
|
|
5
|
+
* A single SBOM component exemption, enriched for display.
|
|
6
|
+
*/
|
|
7
|
+
export interface ExemptionResponse {
|
|
8
|
+
account_id?: string;
|
|
9
|
+
approver_email?: string | null;
|
|
10
|
+
approver_id?: string | null;
|
|
11
|
+
approver_name?: string | null;
|
|
12
|
+
artifact_source_id?: string | null;
|
|
13
|
+
artifact_source_name?: string | null;
|
|
14
|
+
/**
|
|
15
|
+
* Scopes at which the current user may approve / promote this exemption.
|
|
16
|
+
*/
|
|
17
|
+
can_approve_for?: ExemptionScopeDto[];
|
|
18
|
+
can_cancel?: boolean;
|
|
19
|
+
can_create?: boolean;
|
|
20
|
+
can_re_approve?: boolean;
|
|
21
|
+
can_reject?: boolean;
|
|
22
|
+
component_name?: string;
|
|
23
|
+
component_version?: string | null;
|
|
24
|
+
/**
|
|
25
|
+
* @format int64
|
|
26
|
+
*/
|
|
27
|
+
created_at?: number;
|
|
28
|
+
description?: string | null;
|
|
29
|
+
/**
|
|
30
|
+
* null = "All time" (never expires).
|
|
31
|
+
*/
|
|
32
|
+
duration_days?: number | null;
|
|
33
|
+
/**
|
|
34
|
+
* Expiration time in epoch milliseconds; null = never expires.
|
|
35
|
+
* @format int64
|
|
36
|
+
*/
|
|
37
|
+
expiration?: number | null;
|
|
38
|
+
/**
|
|
39
|
+
* Exemption unique identifier (UUID).
|
|
40
|
+
*/
|
|
41
|
+
id?: string;
|
|
42
|
+
/**
|
|
43
|
+
* @format int64
|
|
44
|
+
*/
|
|
45
|
+
last_modified_at?: number;
|
|
46
|
+
org_id?: string | null;
|
|
47
|
+
org_name?: string | null;
|
|
48
|
+
project_id?: string | null;
|
|
49
|
+
project_name?: string | null;
|
|
50
|
+
reason?: ExemptionReasonDto;
|
|
51
|
+
requester_email?: string | null;
|
|
52
|
+
requester_id?: string;
|
|
53
|
+
requester_name?: string | null;
|
|
54
|
+
review_comment?: string | null;
|
|
55
|
+
scope?: ExemptionScopeDto;
|
|
56
|
+
status?: ExemptionStatusDto;
|
|
57
|
+
url_reference?: string | null;
|
|
58
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { ExemptionReviewAction } from '../schemas/ExemptionReviewAction';
|
|
2
|
+
/**
|
|
3
|
+
* Request body to approve or reject an exemption.
|
|
4
|
+
*/
|
|
5
|
+
export interface ExemptionReviewRequestBody {
|
|
6
|
+
action: ExemptionReviewAction;
|
|
7
|
+
/**
|
|
8
|
+
* On approve at project scope only: when set, approves at artifact-source tier for this source (must match the source on the filed exemption). When omitted, approves at whole-project scope and clears artifact source fields. Ignored on reject and when approving at org or account scope.
|
|
9
|
+
*/
|
|
10
|
+
artifact_source_id?: string | null;
|
|
11
|
+
/**
|
|
12
|
+
* Optional for approve; required for reject.
|
|
13
|
+
*/
|
|
14
|
+
comment?: string | null;
|
|
15
|
+
/**
|
|
16
|
+
* On approve only: the approved exemption duration in days (e.g. 7, 30, 90). null = all time (never expires). Approve clients should always send this field, pre-filled from the filed value.
|
|
17
|
+
*/
|
|
18
|
+
duration_days?: number | null;
|
|
19
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Per-status tab counts, scoped to the same filter set as the listing (excluding the status facet itself). EXPIRED is derived from expiration.
|
|
3
|
+
*/
|
|
4
|
+
export interface ExemptionStatusCounts {
|
|
5
|
+
/**
|
|
6
|
+
* @format int64
|
|
7
|
+
*/
|
|
8
|
+
approved?: number;
|
|
9
|
+
/**
|
|
10
|
+
* @format int64
|
|
11
|
+
*/
|
|
12
|
+
expired?: number;
|
|
13
|
+
/**
|
|
14
|
+
* @format int64
|
|
15
|
+
*/
|
|
16
|
+
pending?: number;
|
|
17
|
+
/**
|
|
18
|
+
* @format int64
|
|
19
|
+
*/
|
|
20
|
+
rejected?: number;
|
|
21
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Effective exemption status for display. PENDING / APPROVED / REJECTED are persisted; EXPIRED is virtual, derived at read time from expiration. Soft-deleted (canceled) exemptions are not returned by the API.
|
|
3
|
+
*/
|
|
4
|
+
export type ExemptionStatusDto = 'APPROVED' | 'EXPIRED' | 'PENDING' | 'REJECTED';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export interface InfraConfigDto {
|
|
2
|
+
/**
|
|
3
|
+
* Kubernetes connector reference (required when type is KUBERNETES_DIRECT)
|
|
4
|
+
*/
|
|
5
|
+
connector_ref?: string;
|
|
6
|
+
delegate_selectors?: string[];
|
|
7
|
+
/**
|
|
8
|
+
* Kubernetes namespace (required when type is KUBERNETES_DIRECT)
|
|
9
|
+
*/
|
|
10
|
+
namespace?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Operating system for the build infrastructure. Defaults to Linux when unset.
|
|
13
|
+
*/
|
|
14
|
+
os?: string;
|
|
15
|
+
/**
|
|
16
|
+
* VM pool name (required when type is SELF_HOSTED)
|
|
17
|
+
*/
|
|
18
|
+
pool_name?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Infrastructure type. HARNESS_CLOUD needs no extra fields; KUBERNETES_DIRECT needs connector_ref + namespace; SELF_HOSTED (VM pool) needs pool_name.
|
|
21
|
+
*/
|
|
22
|
+
type?: 'HARNESS_CLOUD' | 'KUBERNETES_DIRECT' | 'SELF_HOSTED';
|
|
23
|
+
}
|
|
@@ -1,11 +1,29 @@
|
|
|
1
|
+
import type { InfraConfigDto } from '../schemas/InfraConfigDto';
|
|
1
2
|
export interface Integration {
|
|
2
3
|
connector_id?: string;
|
|
4
|
+
/**
|
|
5
|
+
* Cron expression for scan frequency
|
|
6
|
+
*/
|
|
7
|
+
cron_expression?: string;
|
|
8
|
+
/**
|
|
9
|
+
* Flat list of enabled scanner identifiers
|
|
10
|
+
*/
|
|
11
|
+
enabled_scanners?: string[];
|
|
3
12
|
id?: string;
|
|
13
|
+
infra_config?: InfraConfigDto;
|
|
4
14
|
/**
|
|
5
15
|
* @format int64
|
|
6
16
|
*/
|
|
7
17
|
last_scan_at?: number;
|
|
8
18
|
org?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Map of scanner identifier to credential secret refs
|
|
21
|
+
*/
|
|
22
|
+
scanner_credentials?: {
|
|
23
|
+
[key: string]: {
|
|
24
|
+
[key: string]: string;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
9
27
|
status?: 'ACTIVE' | 'INACTIVE';
|
|
10
|
-
type?: 'BITBUCKET' | 'GITHUB' | 'HARNESS';
|
|
28
|
+
type?: 'BITBUCKET' | 'GITHUB' | 'HARNESS' | 'HARNESS_CODE';
|
|
11
29
|
}
|
|
@@ -1,7 +1,17 @@
|
|
|
1
1
|
import type { LayerType } from '../schemas/LayerType';
|
|
2
2
|
export interface PolicyViolation {
|
|
3
3
|
account?: string;
|
|
4
|
+
/**
|
|
5
|
+
* Age of the package version (in days) at enforcement check time; null if publish date unknown.
|
|
6
|
+
* @format int64
|
|
7
|
+
*/
|
|
8
|
+
age_at_check_days?: number;
|
|
4
9
|
artifact_id?: string;
|
|
10
|
+
/**
|
|
11
|
+
* Cooldown threshold (in days) configured in the package_age policy; null for non-age violations.
|
|
12
|
+
* @format int64
|
|
13
|
+
*/
|
|
14
|
+
cooldown_threshold_days?: number;
|
|
5
15
|
enforcement_id?: string;
|
|
6
16
|
exemption_id?: string;
|
|
7
17
|
filter_tags?: LayerType[];
|
|
@@ -14,6 +24,11 @@ export interface PolicyViolation {
|
|
|
14
24
|
org?: string;
|
|
15
25
|
package_manager?: string;
|
|
16
26
|
project?: string;
|
|
27
|
+
/**
|
|
28
|
+
* Epoch millis when this package version was published; null if unknown.
|
|
29
|
+
* @format int64
|
|
30
|
+
*/
|
|
31
|
+
published_date?: number;
|
|
17
32
|
purl?: string;
|
|
18
33
|
supplier?: string;
|
|
19
34
|
supplier_type?: string;
|
|
@@ -37,6 +37,10 @@ export interface SbomComponentRequestDto {
|
|
|
37
37
|
* AI/ML provider name (e.g. OpenAI, Anthropic, HuggingFace)
|
|
38
38
|
*/
|
|
39
39
|
ai_provider?: string;
|
|
40
|
+
/**
|
|
41
|
+
* Dockerfile-based origin classification of the component (APP, BASE, DOCKERFILE)
|
|
42
|
+
*/
|
|
43
|
+
component_source?: string;
|
|
40
44
|
dependency_type?: DependencyType;
|
|
41
45
|
file_path?: string;
|
|
42
46
|
filter_tags?: LayerType[];
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { InfraConfigDto } from '../schemas/InfraConfigDto';
|
|
2
|
+
/**
|
|
3
|
+
* Partial update of RSPM scan configuration on an existing integration. Only supplied fields are updated; `type` and `connector_id` are immutable after create.
|
|
4
|
+
*/
|
|
5
|
+
export interface UpdateIntegrationRspmRequest {
|
|
6
|
+
/**
|
|
7
|
+
* Cron expression for scan frequency.
|
|
8
|
+
*/
|
|
9
|
+
cron_expression?: string;
|
|
10
|
+
/**
|
|
11
|
+
* Flat list of enabled scanner identifiers (e.g. SEMGREP, WIZ, CHECKMARX)
|
|
12
|
+
*/
|
|
13
|
+
enabled_scanners?: string[];
|
|
14
|
+
infra_config?: InfraConfigDto;
|
|
15
|
+
/**
|
|
16
|
+
* Map of scanner identifier to credential secret refs
|
|
17
|
+
*/
|
|
18
|
+
scanner_credentials?: {
|
|
19
|
+
[key: string]: {
|
|
20
|
+
[key: string]: string;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|