@harnessio/react-ssca-manager-client 1.0.3 → 1.0.5
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/useCreateTrustedPublisherMutation.d.ts +19 -0
- package/dist/ssca-manager/src/services/hooks/useCreateTrustedPublisherMutation.js +14 -0
- package/dist/ssca-manager/src/services/hooks/useDeleteTrustedPublisherMutation.d.ts +18 -0
- package/dist/ssca-manager/src/services/hooks/useDeleteTrustedPublisherMutation.js +14 -0
- package/dist/ssca-manager/src/services/hooks/useGetContainerTargetAiWorkflowConfigQuery.d.ts +11 -7
- package/dist/ssca-manager/src/services/hooks/useGetContainerTargetAiWorkflowConfigQuery.js +11 -7
- package/dist/ssca-manager/src/services/hooks/useListTrustedPublishersQuery.d.ts +28 -0
- package/dist/ssca-manager/src/services/hooks/useListTrustedPublishersQuery.js +14 -0
- package/dist/ssca-manager/src/services/hooks/useSaveContainerTargetAiWorkflowConfigMutation.d.ts +10 -6
- package/dist/ssca-manager/src/services/hooks/useSaveContainerTargetAiWorkflowConfigMutation.js +10 -6
- package/dist/ssca-manager/src/services/hooks/useUpdateTrustedPublisherMutation.d.ts +22 -0
- package/dist/ssca-manager/src/services/hooks/useUpdateTrustedPublisherMutation.js +14 -0
- package/dist/ssca-manager/src/services/index.d.ts +25 -0
- package/dist/ssca-manager/src/services/index.js +4 -0
- package/dist/ssca-manager/src/services/schemas/AiWorkflowExecutionDetailResponse.d.ts +3 -0
- package/dist/ssca-manager/src/services/schemas/AiWorkflowTypeEnum.d.ts +1 -1
- package/dist/ssca-manager/src/services/schemas/ComponentCveCvssV3.d.ts +7 -0
- package/dist/ssca-manager/src/services/schemas/ComponentCveCvssV3.js +4 -0
- package/dist/ssca-manager/src/services/schemas/ComponentCveImpact.d.ts +4 -0
- package/dist/ssca-manager/src/services/schemas/ComponentCveImpact.js +1 -0
- package/dist/ssca-manager/src/services/schemas/ComponentDependencyEdge.d.ts +5 -0
- package/dist/ssca-manager/src/services/schemas/ComponentDependencyEdge.js +4 -0
- package/dist/ssca-manager/src/services/schemas/ComponentDependencyGraph.d.ts +6 -0
- package/dist/ssca-manager/src/services/schemas/ComponentDependencyGraph.js +1 -0
- package/dist/ssca-manager/src/services/schemas/ComponentDependencyNode.d.ts +6 -0
- package/dist/ssca-manager/src/services/schemas/ComponentDependencyNode.js +4 -0
- package/dist/ssca-manager/src/services/schemas/ComponentInfoRequest.d.ts +3 -0
- package/dist/ssca-manager/src/services/schemas/ComponentInfoRequest.js +4 -0
- package/dist/ssca-manager/src/services/schemas/ComponentPackageCve.d.ts +11 -0
- package/dist/ssca-manager/src/services/schemas/ComponentPackageCve.js +1 -0
- package/dist/ssca-manager/src/services/schemas/ComponentPackageInfo.d.ts +22 -0
- package/dist/ssca-manager/src/services/schemas/ComponentPackageInfo.js +1 -0
- package/dist/ssca-manager/src/services/schemas/ComponentPackageScore.d.ts +3 -0
- package/dist/ssca-manager/src/services/schemas/ComponentPackageScore.js +4 -0
- package/dist/ssca-manager/src/services/schemas/InitiateRemediationAgentRequest.d.ts +8 -0
- package/dist/ssca-manager/src/services/schemas/RemediationAgentExecution.d.ts +5 -2
- package/dist/ssca-manager/src/services/schemas/TrustedPublisherListResponse.d.ts +4 -0
- package/dist/ssca-manager/src/services/schemas/TrustedPublisherListResponse.js +1 -0
- package/dist/ssca-manager/src/services/schemas/TrustedPublisherMatchField.d.ts +1 -0
- package/dist/ssca-manager/src/services/schemas/TrustedPublisherMatchField.js +4 -0
- package/dist/ssca-manager/src/services/schemas/TrustedPublisherMatchRule.d.ts +7 -0
- package/dist/ssca-manager/src/services/schemas/TrustedPublisherMatchRule.js +1 -0
- package/dist/ssca-manager/src/services/schemas/TrustedPublisherResponse.d.ts +14 -0
- package/dist/ssca-manager/src/services/schemas/TrustedPublisherResponse.js +1 -0
- package/dist/ssca-manager/src/services/schemas/TrustedPublisherUpsertRequest.d.ts +10 -0
- package/dist/ssca-manager/src/services/schemas/TrustedPublisherUpsertRequest.js +1 -0
- package/dist/ssca-manager/src/services/schemas/ZeroDayBackfillRequest.d.ts +10 -0
- package/dist/ssca-manager/src/services/schemas/ZeroDayBackfillRequest.js +4 -0
- package/dist/ssca-manager/src/services/schemas/ZeroDayBackfillResponse.d.ts +15 -0
- package/dist/ssca-manager/src/services/schemas/ZeroDayBackfillResponse.js +4 -0
- package/dist/ssca-manager/src/services/schemas/ZeroDayBatchDetailResponse.d.ts +8 -0
- package/dist/ssca-manager/src/services/schemas/ZeroDayConfigEnabledUpdate.d.ts +6 -0
- package/dist/ssca-manager/src/services/schemas/ZeroDayConfigEnabledUpdate.js +4 -0
- package/dist/ssca-manager/src/services/schemas/ZeroDayExecutionSummary.d.ts +4 -0
- package/dist/ssca-manager/src/services/schemas/ZeroDayFindingResponse.d.ts +2 -0
- package/dist/ssca-manager/src/services/schemas/ZeroDayFindingUpdateRequest.d.ts +8 -0
- package/dist/ssca-manager/src/services/schemas/ZeroDayTestTriggerRequest.d.ts +8 -0
- package/package.json +1 -1
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { TrustedPublisherResponse } from '../schemas/TrustedPublisherResponse';
|
|
3
|
+
import type { TrustedPublisherUpsertRequest } from '../schemas/TrustedPublisherUpsertRequest';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface CreateTrustedPublisherMutationHeaderParams {
|
|
7
|
+
'Harness-Account': string;
|
|
8
|
+
}
|
|
9
|
+
export type CreateTrustedPublisherRequestBody = TrustedPublisherUpsertRequest;
|
|
10
|
+
export type CreateTrustedPublisherOkResponse = ResponseWithPagination<TrustedPublisherResponse>;
|
|
11
|
+
export type CreateTrustedPublisherErrorResponse = unknown;
|
|
12
|
+
export interface CreateTrustedPublisherProps extends Omit<FetcherOptions<unknown, CreateTrustedPublisherRequestBody, CreateTrustedPublisherMutationHeaderParams>, 'url'> {
|
|
13
|
+
body: CreateTrustedPublisherRequestBody;
|
|
14
|
+
}
|
|
15
|
+
export declare function createTrustedPublisher(props: CreateTrustedPublisherProps): Promise<CreateTrustedPublisherOkResponse>;
|
|
16
|
+
/**
|
|
17
|
+
* Create a trusted publisher
|
|
18
|
+
*/
|
|
19
|
+
export declare function useCreateTrustedPublisherMutation(options?: Omit<UseMutationOptions<CreateTrustedPublisherOkResponse, CreateTrustedPublisherErrorResponse, CreateTrustedPublisherProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CreateTrustedPublisherOkResponse, unknown, CreateTrustedPublisherProps, 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 createTrustedPublisher(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/trusted-publishers`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Create a trusted publisher
|
|
11
|
+
*/
|
|
12
|
+
export function useCreateTrustedPublisherMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => createTrustedPublisher(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
3
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
4
|
+
export interface DeleteTrustedPublisherMutationPathParams {
|
|
5
|
+
publisherId: string;
|
|
6
|
+
}
|
|
7
|
+
export interface DeleteTrustedPublisherMutationHeaderParams {
|
|
8
|
+
'Harness-Account': string;
|
|
9
|
+
}
|
|
10
|
+
export type DeleteTrustedPublisherOkResponse = ResponseWithPagination<unknown>;
|
|
11
|
+
export type DeleteTrustedPublisherErrorResponse = unknown;
|
|
12
|
+
export interface DeleteTrustedPublisherProps extends DeleteTrustedPublisherMutationPathParams, Omit<FetcherOptions<unknown, unknown, DeleteTrustedPublisherMutationHeaderParams>, 'url'> {
|
|
13
|
+
}
|
|
14
|
+
export declare function deleteTrustedPublisher(props: DeleteTrustedPublisherProps): Promise<DeleteTrustedPublisherOkResponse>;
|
|
15
|
+
/**
|
|
16
|
+
* Delete a trusted publisher
|
|
17
|
+
*/
|
|
18
|
+
export declare function useDeleteTrustedPublisherMutation(options?: Omit<UseMutationOptions<DeleteTrustedPublisherOkResponse, DeleteTrustedPublisherErrorResponse, DeleteTrustedPublisherProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<DeleteTrustedPublisherOkResponse, unknown, DeleteTrustedPublisherProps, 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 deleteTrustedPublisher(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/trusted-publishers/${props.publisherId}`, method: 'DELETE' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Delete a trusted publisher
|
|
11
|
+
*/
|
|
12
|
+
export function useDeleteTrustedPublisherMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => deleteTrustedPublisher(mutateProps), options);
|
|
14
|
+
}
|
package/dist/ssca-manager/src/services/hooks/useGetContainerTargetAiWorkflowConfigQuery.d.ts
CHANGED
|
@@ -21,19 +21,23 @@ export interface GetContainerTargetAiWorkflowConfigProps extends GetContainerTar
|
|
|
21
21
|
}
|
|
22
22
|
export declare function getContainerTargetAiWorkflowConfig(props: GetContainerTargetAiWorkflowConfigProps): Promise<GetContainerTargetAiWorkflowConfigOkResponse>;
|
|
23
23
|
/**
|
|
24
|
-
* Get the
|
|
24
|
+
* Get the effective AI workflow configuration for a STO container target — the account +
|
|
25
|
+
* organization + project merge with the stored target override applied, the same contract
|
|
26
|
+
* as the code-repo GET.
|
|
25
27
|
* remediation (the default — the SCA dependency-remediation surface; the deprecated
|
|
26
|
-
* dependency_remediation spelling selects it too) returns
|
|
27
|
-
*
|
|
28
|
-
* remediationCriteria, useStoApprovedBaseImages and
|
|
29
|
-
* merged config
|
|
28
|
+
* dependency_remediation spelling selects it too) returns the resolved config:
|
|
29
|
+
* variantScope, repoUrl, dockerfilePath from the target row; scm, the flat
|
|
30
|
+
* agent.validation* keys, remediationCriteria, useStoApprovedBaseImages and
|
|
31
|
+
* maxVersionUpdate leaf-merged from the project agent.sca config with target overrides
|
|
32
|
+
* applied. agent.enabled is the resolved per-target toggle: the stored override when set,
|
|
33
|
+
* otherwise the inherited sca.enabled, otherwise false.
|
|
30
34
|
* fp_triage returns the resolved triage rule as agent.variantScope: the artifact's stored
|
|
31
35
|
* rule when set (mode fixed with values, or mode regex with regex), otherwise mode baseline.
|
|
32
36
|
* agent.enabled comes from the project targetIncludeScope. include_scope_status and
|
|
33
37
|
* account_enabled match the code-repo triage GET. agent.enabled is not stored here.
|
|
34
38
|
* Clearing the triage variantScope restores baseline-only triage.
|
|
35
|
-
* A target with no document returns
|
|
36
|
-
*
|
|
39
|
+
* A target with no document returns the purely inherited project config; with no config
|
|
40
|
+
* anywhere it returns the minimal payload (agent type and enabled: false).
|
|
37
41
|
*
|
|
38
42
|
*/
|
|
39
43
|
export declare function useGetContainerTargetAiWorkflowConfigQuery(props: GetContainerTargetAiWorkflowConfigProps, options?: Omit<UseQueryOptions<GetContainerTargetAiWorkflowConfigOkResponse, GetContainerTargetAiWorkflowConfigErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetContainerTargetAiWorkflowConfigOkResponse, unknown>;
|
|
@@ -7,19 +7,23 @@ export function getContainerTargetAiWorkflowConfig(props) {
|
|
|
7
7
|
return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/ai-workflow-config/container-targets/${props.targetId}`, method: 'GET' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
* Get the
|
|
10
|
+
* Get the effective AI workflow configuration for a STO container target — the account +
|
|
11
|
+
* organization + project merge with the stored target override applied, the same contract
|
|
12
|
+
* as the code-repo GET.
|
|
11
13
|
* remediation (the default — the SCA dependency-remediation surface; the deprecated
|
|
12
|
-
* dependency_remediation spelling selects it too) returns
|
|
13
|
-
*
|
|
14
|
-
* remediationCriteria, useStoApprovedBaseImages and
|
|
15
|
-
* merged config
|
|
14
|
+
* dependency_remediation spelling selects it too) returns the resolved config:
|
|
15
|
+
* variantScope, repoUrl, dockerfilePath from the target row; scm, the flat
|
|
16
|
+
* agent.validation* keys, remediationCriteria, useStoApprovedBaseImages and
|
|
17
|
+
* maxVersionUpdate leaf-merged from the project agent.sca config with target overrides
|
|
18
|
+
* applied. agent.enabled is the resolved per-target toggle: the stored override when set,
|
|
19
|
+
* otherwise the inherited sca.enabled, otherwise false.
|
|
16
20
|
* fp_triage returns the resolved triage rule as agent.variantScope: the artifact's stored
|
|
17
21
|
* rule when set (mode fixed with values, or mode regex with regex), otherwise mode baseline.
|
|
18
22
|
* agent.enabled comes from the project targetIncludeScope. include_scope_status and
|
|
19
23
|
* account_enabled match the code-repo triage GET. agent.enabled is not stored here.
|
|
20
24
|
* Clearing the triage variantScope restores baseline-only triage.
|
|
21
|
-
* A target with no document returns
|
|
22
|
-
*
|
|
25
|
+
* A target with no document returns the purely inherited project config; with no config
|
|
26
|
+
* anywhere it returns the minimal payload (agent type and enabled: false).
|
|
23
27
|
*
|
|
24
28
|
*/
|
|
25
29
|
export function useGetContainerTargetAiWorkflowConfigQuery(props, options) {
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { TrustedPublisherListResponse } from '../schemas/TrustedPublisherListResponse';
|
|
3
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
+
export interface ListTrustedPublishersQueryQueryParams {
|
|
6
|
+
search?: string;
|
|
7
|
+
/**
|
|
8
|
+
* @default 0
|
|
9
|
+
*/
|
|
10
|
+
page?: number;
|
|
11
|
+
/**
|
|
12
|
+
* @default 30
|
|
13
|
+
*/
|
|
14
|
+
limit?: number;
|
|
15
|
+
}
|
|
16
|
+
export interface ListTrustedPublishersQueryHeaderParams {
|
|
17
|
+
'Harness-Account': string;
|
|
18
|
+
}
|
|
19
|
+
export type ListTrustedPublishersOkResponse = ResponseWithPagination<TrustedPublisherListResponse>;
|
|
20
|
+
export type ListTrustedPublishersErrorResponse = unknown;
|
|
21
|
+
export interface ListTrustedPublishersProps extends Omit<FetcherOptions<ListTrustedPublishersQueryQueryParams, unknown, ListTrustedPublishersQueryHeaderParams>, 'url'> {
|
|
22
|
+
queryParams: ListTrustedPublishersQueryQueryParams;
|
|
23
|
+
}
|
|
24
|
+
export declare function listTrustedPublishers(props: ListTrustedPublishersProps): Promise<ListTrustedPublishersOkResponse>;
|
|
25
|
+
/**
|
|
26
|
+
* Returns paginated trusted publisher configuration for the account. Optional search filters publishers by name (case-insensitive contains).
|
|
27
|
+
*/
|
|
28
|
+
export declare function useListTrustedPublishersQuery(props: ListTrustedPublishersProps, options?: Omit<UseQueryOptions<ListTrustedPublishersOkResponse, ListTrustedPublishersErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListTrustedPublishersOkResponse, 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 listTrustedPublishers(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/trusted-publishers`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Returns paginated trusted publisher configuration for the account. Optional search filters publishers by name (case-insensitive contains).
|
|
11
|
+
*/
|
|
12
|
+
export function useListTrustedPublishersQuery(props, options) {
|
|
13
|
+
return useQuery(['listTrustedPublishers', props.queryParams], ({ signal }) => listTrustedPublishers(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
package/dist/ssca-manager/src/services/hooks/useSaveContainerTargetAiWorkflowConfigMutation.d.ts
CHANGED
|
@@ -24,12 +24,16 @@ export interface SaveContainerTargetAiWorkflowConfigProps extends SaveContainerT
|
|
|
24
24
|
}
|
|
25
25
|
export declare function saveContainerTargetAiWorkflowConfig(props: SaveContainerTargetAiWorkflowConfigProps): Promise<SaveContainerTargetAiWorkflowConfigOkResponse>;
|
|
26
26
|
/**
|
|
27
|
-
* Create or update
|
|
28
|
-
*
|
|
29
|
-
*
|
|
27
|
+
* Create or update the configuration for a STO container target.
|
|
28
|
+
* The document under agent is the complete desired state — the same resolved document
|
|
29
|
+
* the GET returns. Replace semantics: a named value is stored; an omitted or null field
|
|
30
|
+
* clears the stored override and the field goes back to inheriting. A verbatim GET→PUT
|
|
31
|
+
* therefore pins every resolved value as a target override, and a sparse document clears
|
|
32
|
+
* the overrides it does not name. The 'effective' section emitted by earlier versions of
|
|
33
|
+
* this endpoint is rejected on write.
|
|
30
34
|
* remediation (the default — the SCA dependency-remediation surface; the deprecated
|
|
31
35
|
* dependency_remediation spelling is still accepted) accepts agent.enabled (a stored false
|
|
32
|
-
* suppresses remediation for this target
|
|
36
|
+
* suppresses remediation for this target), agent.variantScope
|
|
33
37
|
* (baseline|all|fixed|regex),
|
|
34
38
|
* agent.repoUrl, agent.dockerfilePath, agent.scm, the sca selection-policy overrides
|
|
35
39
|
* agent.remediationCriteria (cisaKev, exploitable, reachable, epssProbability —
|
|
@@ -44,8 +48,8 @@ export declare function saveContainerTargetAiWorkflowConfig(props: SaveContainer
|
|
|
44
48
|
* response reports project targetIncludeScope membership, include_scope_status, and
|
|
45
49
|
* account_enabled the same way as code-repo triage. Any other field is rejected.
|
|
46
50
|
* The fp_triage response returns the resolved variant rule (baseline when cleared).
|
|
47
|
-
* The remediation response returns the
|
|
48
|
-
* or SCM connectivity check is performed on save.
|
|
51
|
+
* The remediation response returns the resolved view, the same shape as the GET.
|
|
52
|
+
* No STO target or SCM connectivity check is performed on save.
|
|
49
53
|
*
|
|
50
54
|
*/
|
|
51
55
|
export declare function useSaveContainerTargetAiWorkflowConfigMutation(options?: Omit<UseMutationOptions<SaveContainerTargetAiWorkflowConfigOkResponse, SaveContainerTargetAiWorkflowConfigErrorResponse, SaveContainerTargetAiWorkflowConfigProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<SaveContainerTargetAiWorkflowConfigOkResponse, unknown, SaveContainerTargetAiWorkflowConfigProps, unknown>;
|
package/dist/ssca-manager/src/services/hooks/useSaveContainerTargetAiWorkflowConfigMutation.js
CHANGED
|
@@ -7,12 +7,16 @@ export function saveContainerTargetAiWorkflowConfig(props) {
|
|
|
7
7
|
return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/ai-workflow-config/container-targets/${props.targetId}`, method: 'PUT' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
* Create or update
|
|
11
|
-
*
|
|
12
|
-
*
|
|
10
|
+
* Create or update the configuration for a STO container target.
|
|
11
|
+
* The document under agent is the complete desired state — the same resolved document
|
|
12
|
+
* the GET returns. Replace semantics: a named value is stored; an omitted or null field
|
|
13
|
+
* clears the stored override and the field goes back to inheriting. A verbatim GET→PUT
|
|
14
|
+
* therefore pins every resolved value as a target override, and a sparse document clears
|
|
15
|
+
* the overrides it does not name. The 'effective' section emitted by earlier versions of
|
|
16
|
+
* this endpoint is rejected on write.
|
|
13
17
|
* remediation (the default — the SCA dependency-remediation surface; the deprecated
|
|
14
18
|
* dependency_remediation spelling is still accepted) accepts agent.enabled (a stored false
|
|
15
|
-
* suppresses remediation for this target
|
|
19
|
+
* suppresses remediation for this target), agent.variantScope
|
|
16
20
|
* (baseline|all|fixed|regex),
|
|
17
21
|
* agent.repoUrl, agent.dockerfilePath, agent.scm, the sca selection-policy overrides
|
|
18
22
|
* agent.remediationCriteria (cisaKev, exploitable, reachable, epssProbability —
|
|
@@ -27,8 +31,8 @@ export function saveContainerTargetAiWorkflowConfig(props) {
|
|
|
27
31
|
* response reports project targetIncludeScope membership, include_scope_status, and
|
|
28
32
|
* account_enabled the same way as code-repo triage. Any other field is rejected.
|
|
29
33
|
* The fp_triage response returns the resolved variant rule (baseline when cleared).
|
|
30
|
-
* The remediation response returns the
|
|
31
|
-
* or SCM connectivity check is performed on save.
|
|
34
|
+
* The remediation response returns the resolved view, the same shape as the GET.
|
|
35
|
+
* No STO target or SCM connectivity check is performed on save.
|
|
32
36
|
*
|
|
33
37
|
*/
|
|
34
38
|
export function useSaveContainerTargetAiWorkflowConfigMutation(options) {
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { TrustedPublisherResponse } from '../schemas/TrustedPublisherResponse';
|
|
3
|
+
import type { TrustedPublisherUpsertRequest } from '../schemas/TrustedPublisherUpsertRequest';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface UpdateTrustedPublisherMutationPathParams {
|
|
7
|
+
publisherId: string;
|
|
8
|
+
}
|
|
9
|
+
export interface UpdateTrustedPublisherMutationHeaderParams {
|
|
10
|
+
'Harness-Account': string;
|
|
11
|
+
}
|
|
12
|
+
export type UpdateTrustedPublisherRequestBody = TrustedPublisherUpsertRequest;
|
|
13
|
+
export type UpdateTrustedPublisherOkResponse = ResponseWithPagination<TrustedPublisherResponse>;
|
|
14
|
+
export type UpdateTrustedPublisherErrorResponse = unknown;
|
|
15
|
+
export interface UpdateTrustedPublisherProps extends UpdateTrustedPublisherMutationPathParams, Omit<FetcherOptions<unknown, UpdateTrustedPublisherRequestBody, UpdateTrustedPublisherMutationHeaderParams>, 'url'> {
|
|
16
|
+
body: UpdateTrustedPublisherRequestBody;
|
|
17
|
+
}
|
|
18
|
+
export declare function updateTrustedPublisher(props: UpdateTrustedPublisherProps): Promise<UpdateTrustedPublisherOkResponse>;
|
|
19
|
+
/**
|
|
20
|
+
* Update a trusted publisher
|
|
21
|
+
*/
|
|
22
|
+
export declare function useUpdateTrustedPublisherMutation(options?: Omit<UseMutationOptions<UpdateTrustedPublisherOkResponse, UpdateTrustedPublisherErrorResponse, UpdateTrustedPublisherProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UpdateTrustedPublisherOkResponse, unknown, UpdateTrustedPublisherProps, 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 updateTrustedPublisher(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/trusted-publishers/${props.publisherId}`, method: 'PUT' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Update a trusted publisher
|
|
11
|
+
*/
|
|
12
|
+
export function useUpdateTrustedPublisherMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => updateTrustedPublisher(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -31,10 +31,14 @@ export type { CreateScannerConfigurationErrorResponse, CreateScannerConfiguratio
|
|
|
31
31
|
export { createScannerConfiguration, useCreateScannerConfigurationMutation, } from './hooks/useCreateScannerConfigurationMutation';
|
|
32
32
|
export type { CreateTicketErrorResponse, CreateTicketMutationPathParams, CreateTicketOkResponse, CreateTicketProps, CreateTicketRequestBody, } from './hooks/useCreateTicketMutation';
|
|
33
33
|
export { createTicket, useCreateTicketMutation } from './hooks/useCreateTicketMutation';
|
|
34
|
+
export type { CreateTrustedPublisherErrorResponse, CreateTrustedPublisherOkResponse, CreateTrustedPublisherProps, CreateTrustedPublisherRequestBody, } from './hooks/useCreateTrustedPublisherMutation';
|
|
35
|
+
export { createTrustedPublisher, useCreateTrustedPublisherMutation, } from './hooks/useCreateTrustedPublisherMutation';
|
|
34
36
|
export type { DeleteIntegrationErrorResponse, DeleteIntegrationMutationPathParams, DeleteIntegrationMutationQueryParams, DeleteIntegrationOkResponse, DeleteIntegrationProps, } from './hooks/useDeleteIntegrationMutation';
|
|
35
37
|
export { deleteIntegration, useDeleteIntegrationMutation, } from './hooks/useDeleteIntegrationMutation';
|
|
36
38
|
export type { DeleteScannerConfigurationErrorResponse, DeleteScannerConfigurationMutationPathParams, DeleteScannerConfigurationOkResponse, DeleteScannerConfigurationProps, } from './hooks/useDeleteScannerConfigurationMutation';
|
|
37
39
|
export { deleteScannerConfiguration, useDeleteScannerConfigurationMutation, } from './hooks/useDeleteScannerConfigurationMutation';
|
|
40
|
+
export type { DeleteTrustedPublisherErrorResponse, DeleteTrustedPublisherMutationPathParams, DeleteTrustedPublisherOkResponse, DeleteTrustedPublisherProps, } from './hooks/useDeleteTrustedPublisherMutation';
|
|
41
|
+
export { deleteTrustedPublisher, useDeleteTrustedPublisherMutation, } from './hooks/useDeleteTrustedPublisherMutation';
|
|
38
42
|
export type { DownloadAttestationErrorResponse, DownloadAttestationOkResponse, DownloadAttestationProps, DownloadAttestationQueryPathParams, DownloadAttestationQueryQueryParams, } from './hooks/useDownloadAttestationQuery';
|
|
39
43
|
export { downloadAttestation, useDownloadAttestationQuery, } from './hooks/useDownloadAttestationQuery';
|
|
40
44
|
export type { DownloadSbomErrorResponse, DownloadSbomOkResponse, DownloadSbomProps, DownloadSbomQueryPathParams, DownloadSbomQueryQueryParams, } from './hooks/useDownloadSbomQuery';
|
|
@@ -229,6 +233,8 @@ export type { ListScannerConfigurationIntegrationsErrorResponse, ListScannerConf
|
|
|
229
233
|
export { listScannerConfigurationIntegrations, useListScannerConfigurationIntegrationsQuery, } from './hooks/useListScannerConfigurationIntegrationsQuery';
|
|
230
234
|
export type { ListScannerConfigurationsErrorResponse, ListScannerConfigurationsOkResponse, ListScannerConfigurationsProps, ListScannerConfigurationsQueryPathParams, ListScannerConfigurationsQueryQueryParams, } from './hooks/useListScannerConfigurationsQuery';
|
|
231
235
|
export { listScannerConfigurations, useListScannerConfigurationsQuery, } from './hooks/useListScannerConfigurationsQuery';
|
|
236
|
+
export type { ListTrustedPublishersErrorResponse, ListTrustedPublishersOkResponse, ListTrustedPublishersProps, ListTrustedPublishersQueryQueryParams, } from './hooks/useListTrustedPublishersQuery';
|
|
237
|
+
export { listTrustedPublishers, useListTrustedPublishersQuery, } from './hooks/useListTrustedPublishersQuery';
|
|
232
238
|
export type { PostComplianceResultStatsEvaluationBreakdownArtifactTypeErrorResponse, PostComplianceResultStatsEvaluationBreakdownArtifactTypeMutationPathParams, PostComplianceResultStatsEvaluationBreakdownArtifactTypeMutationQueryParams, PostComplianceResultStatsEvaluationBreakdownArtifactTypeOkResponse, PostComplianceResultStatsEvaluationBreakdownArtifactTypeProps, PostComplianceResultStatsEvaluationBreakdownArtifactTypeRequestBody, } from './hooks/usePostComplianceResultStatsEvaluationBreakdownArtifactTypeMutation';
|
|
233
239
|
export { postComplianceResultStatsEvaluationBreakdownArtifactType, usePostComplianceResultStatsEvaluationBreakdownArtifactTypeMutation, } from './hooks/usePostComplianceResultStatsEvaluationBreakdownArtifactTypeMutation';
|
|
234
240
|
export type { PostComplianceResultStatsOverviewErrorResponse, PostComplianceResultStatsOverviewMutationPathParams, PostComplianceResultStatsOverviewMutationQueryParams, PostComplianceResultStatsOverviewOkResponse, PostComplianceResultStatsOverviewProps, PostComplianceResultStatsOverviewRequestBody, } from './hooks/usePostComplianceResultStatsOverviewMutation';
|
|
@@ -271,6 +277,8 @@ export type { UpdateRemediationTrackerErrorResponse, UpdateRemediationTrackerMut
|
|
|
271
277
|
export { updateRemediationTracker, useUpdateRemediationTrackerMutation, } from './hooks/useUpdateRemediationTrackerMutation';
|
|
272
278
|
export type { UpdateScannerConfigurationErrorResponse, UpdateScannerConfigurationMutationPathParams, UpdateScannerConfigurationOkResponse, UpdateScannerConfigurationProps, UpdateScannerConfigurationRequestBody, } from './hooks/useUpdateScannerConfigurationMutation';
|
|
273
279
|
export { updateScannerConfiguration, useUpdateScannerConfigurationMutation, } from './hooks/useUpdateScannerConfigurationMutation';
|
|
280
|
+
export type { UpdateTrustedPublisherErrorResponse, UpdateTrustedPublisherMutationPathParams, UpdateTrustedPublisherOkResponse, UpdateTrustedPublisherProps, UpdateTrustedPublisherRequestBody, } from './hooks/useUpdateTrustedPublisherMutation';
|
|
281
|
+
export { updateTrustedPublisher, useUpdateTrustedPublisherMutation, } from './hooks/useUpdateTrustedPublisherMutation';
|
|
274
282
|
export type { UpsertEolAutoTicketConfigErrorResponse, UpsertEolAutoTicketConfigMutationPathParams, UpsertEolAutoTicketConfigOkResponse, UpsertEolAutoTicketConfigProps, UpsertEolAutoTicketConfigRequestBody, } from './hooks/useUpsertEolAutoTicketConfigMutation';
|
|
275
283
|
export { upsertEolAutoTicketConfig, useUpsertEolAutoTicketConfigMutation, } from './hooks/useUpsertEolAutoTicketConfigMutation';
|
|
276
284
|
export type { ValidateIntegrationNameErrorResponse, ValidateIntegrationNameOkResponse, ValidateIntegrationNameProps, ValidateIntegrationNameQueryPathParams, ValidateIntegrationNameQueryQueryParams, } from './hooks/useValidateIntegrationNameQuery';
|
|
@@ -603,13 +611,22 @@ export type { ComplianceScanType } from './schemas/ComplianceScanType';
|
|
|
603
611
|
export type { ComplianceSourcePlatform } from './schemas/ComplianceSourcePlatform';
|
|
604
612
|
export type { ComplianceStandardType } from './schemas/ComplianceStandardType';
|
|
605
613
|
export type { ComplianceStandardsFilterEntity } from './schemas/ComplianceStandardsFilterEntity';
|
|
614
|
+
export type { ComponentCveCvssV3 } from './schemas/ComponentCveCvssV3';
|
|
615
|
+
export type { ComponentCveImpact } from './schemas/ComponentCveImpact';
|
|
606
616
|
export type { ComponentDependenciesResponse } from './schemas/ComponentDependenciesResponse';
|
|
617
|
+
export type { ComponentDependencyEdge } from './schemas/ComponentDependencyEdge';
|
|
618
|
+
export type { ComponentDependencyGraph } from './schemas/ComponentDependencyGraph';
|
|
607
619
|
export type { ComponentDependencyItem } from './schemas/ComponentDependencyItem';
|
|
620
|
+
export type { ComponentDependencyNode } from './schemas/ComponentDependencyNode';
|
|
608
621
|
export type { ComponentDrift } from './schemas/ComponentDrift';
|
|
609
622
|
export type { ComponentDriftSummary } from './schemas/ComponentDriftSummary';
|
|
610
623
|
export type { ComponentDto } from './schemas/ComponentDto';
|
|
611
624
|
export type { ComponentExemptionStatusFilter } from './schemas/ComponentExemptionStatusFilter';
|
|
612
625
|
export type { ComponentFilter } from './schemas/ComponentFilter';
|
|
626
|
+
export type { ComponentInfoRequest } from './schemas/ComponentInfoRequest';
|
|
627
|
+
export type { ComponentPackageCve } from './schemas/ComponentPackageCve';
|
|
628
|
+
export type { ComponentPackageInfo } from './schemas/ComponentPackageInfo';
|
|
629
|
+
export type { ComponentPackageScore } from './schemas/ComponentPackageScore';
|
|
613
630
|
export type { ComponentParent } from './schemas/ComponentParent';
|
|
614
631
|
export type { ComponentRemediationResponse } from './schemas/ComponentRemediationResponse';
|
|
615
632
|
export type { ComponentScore } from './schemas/ComponentScore';
|
|
@@ -896,6 +913,11 @@ export type { TicketInfo } from './schemas/TicketInfo';
|
|
|
896
913
|
export type { TokenIssueResponseBody } from './schemas/TokenIssueResponseBody';
|
|
897
914
|
export type { TokenIssueTokenResponseBody } from './schemas/TokenIssueTokenResponseBody';
|
|
898
915
|
export type { TriggerType } from './schemas/TriggerType';
|
|
916
|
+
export type { TrustedPublisherListResponse } from './schemas/TrustedPublisherListResponse';
|
|
917
|
+
export type { TrustedPublisherMatchField } from './schemas/TrustedPublisherMatchField';
|
|
918
|
+
export type { TrustedPublisherMatchRule } from './schemas/TrustedPublisherMatchRule';
|
|
919
|
+
export type { TrustedPublisherResponse } from './schemas/TrustedPublisherResponse';
|
|
920
|
+
export type { TrustedPublisherUpsertRequest } from './schemas/TrustedPublisherUpsertRequest';
|
|
899
921
|
export type { UpdateAiWorkflowExecutionStatusConflict } from './schemas/UpdateAiWorkflowExecutionStatusConflict';
|
|
900
922
|
export type { UpdateAiWorkflowExecutionStatusRequest } from './schemas/UpdateAiWorkflowExecutionStatusRequest';
|
|
901
923
|
export type { UpdateAiWorkflowExecutionStatusResponse } from './schemas/UpdateAiWorkflowExecutionStatusResponse';
|
|
@@ -917,10 +939,13 @@ export type { VulnerabilitySourceConfigRequestBody } from './schemas/Vulnerabili
|
|
|
917
939
|
export type { VulnerabilitySourceConfigResponse } from './schemas/VulnerabilitySourceConfigResponse';
|
|
918
940
|
export type { WorkflowSource } from './schemas/WorkflowSource';
|
|
919
941
|
export type { ZeroDayAlertConfig } from './schemas/ZeroDayAlertConfig';
|
|
942
|
+
export type { ZeroDayBackfillRequest } from './schemas/ZeroDayBackfillRequest';
|
|
943
|
+
export type { ZeroDayBackfillResponse } from './schemas/ZeroDayBackfillResponse';
|
|
920
944
|
export type { ZeroDayBatchAcceptedResponse } from './schemas/ZeroDayBatchAcceptedResponse';
|
|
921
945
|
export type { ZeroDayBatchConflictResponse } from './schemas/ZeroDayBatchConflictResponse';
|
|
922
946
|
export type { ZeroDayBatchDetailResponse } from './schemas/ZeroDayBatchDetailResponse';
|
|
923
947
|
export type { ZeroDayConfig } from './schemas/ZeroDayConfig';
|
|
948
|
+
export type { ZeroDayConfigEnabledUpdate } from './schemas/ZeroDayConfigEnabledUpdate';
|
|
924
949
|
export type { ZeroDayExecutionSummary } from './schemas/ZeroDayExecutionSummary';
|
|
925
950
|
export type { ZeroDayFindingDeleteResponse } from './schemas/ZeroDayFindingDeleteResponse';
|
|
926
951
|
export type { ZeroDayFindingResponse } from './schemas/ZeroDayFindingResponse';
|
|
@@ -14,8 +14,10 @@ export { createRemediationPullRequest, useCreateRemediationPullRequestMutation,
|
|
|
14
14
|
export { createRemediationTracker, useCreateRemediationTrackerMutation, } from './hooks/useCreateRemediationTrackerMutation';
|
|
15
15
|
export { createScannerConfiguration, useCreateScannerConfigurationMutation, } from './hooks/useCreateScannerConfigurationMutation';
|
|
16
16
|
export { createTicket, useCreateTicketMutation } from './hooks/useCreateTicketMutation';
|
|
17
|
+
export { createTrustedPublisher, useCreateTrustedPublisherMutation, } from './hooks/useCreateTrustedPublisherMutation';
|
|
17
18
|
export { deleteIntegration, useDeleteIntegrationMutation, } from './hooks/useDeleteIntegrationMutation';
|
|
18
19
|
export { deleteScannerConfiguration, useDeleteScannerConfigurationMutation, } from './hooks/useDeleteScannerConfigurationMutation';
|
|
20
|
+
export { deleteTrustedPublisher, useDeleteTrustedPublisherMutation, } from './hooks/useDeleteTrustedPublisherMutation';
|
|
19
21
|
export { downloadAttestation, useDownloadAttestationQuery, } from './hooks/useDownloadAttestationQuery';
|
|
20
22
|
export { downloadSbom, useDownloadSbomQuery } from './hooks/useDownloadSbomQuery';
|
|
21
23
|
export { excludeArtifact, useExcludeArtifactMutation } from './hooks/useExcludeArtifactMutation';
|
|
@@ -113,6 +115,7 @@ export { listRemediations, useListRemediationsQuery } from './hooks/useListRemed
|
|
|
113
115
|
export { listRspmScanners, useListRspmScannersQuery } from './hooks/useListRspmScannersQuery';
|
|
114
116
|
export { listScannerConfigurationIntegrations, useListScannerConfigurationIntegrationsQuery, } from './hooks/useListScannerConfigurationIntegrationsQuery';
|
|
115
117
|
export { listScannerConfigurations, useListScannerConfigurationsQuery, } from './hooks/useListScannerConfigurationsQuery';
|
|
118
|
+
export { listTrustedPublishers, useListTrustedPublishersQuery, } from './hooks/useListTrustedPublishersQuery';
|
|
116
119
|
export { postComplianceResultStatsEvaluationBreakdownArtifactType, usePostComplianceResultStatsEvaluationBreakdownArtifactTypeMutation, } from './hooks/usePostComplianceResultStatsEvaluationBreakdownArtifactTypeMutation';
|
|
117
120
|
export { postComplianceResultStatsOverview, usePostComplianceResultStatsOverviewMutation, } from './hooks/usePostComplianceResultStatsOverviewMutation';
|
|
118
121
|
export { remediateAffectedTarget, useRemediateAffectedTargetQuery, } from './hooks/useRemediateAffectedTargetQuery';
|
|
@@ -134,5 +137,6 @@ export { updateExemption, useUpdateExemptionMutation } from './hooks/useUpdateEx
|
|
|
134
137
|
export { updateIntegrationRspmConfig, useUpdateIntegrationRspmConfigMutation, } from './hooks/useUpdateIntegrationRspmConfigMutation';
|
|
135
138
|
export { updateRemediationTracker, useUpdateRemediationTrackerMutation, } from './hooks/useUpdateRemediationTrackerMutation';
|
|
136
139
|
export { updateScannerConfiguration, useUpdateScannerConfigurationMutation, } from './hooks/useUpdateScannerConfigurationMutation';
|
|
140
|
+
export { updateTrustedPublisher, useUpdateTrustedPublisherMutation, } from './hooks/useUpdateTrustedPublisherMutation';
|
|
137
141
|
export { upsertEolAutoTicketConfig, useUpsertEolAutoTicketConfigMutation, } from './hooks/useUpsertEolAutoTicketConfigMutation';
|
|
138
142
|
export { useValidateIntegrationNameQuery, validateIntegrationName, } from './hooks/useValidateIntegrationNameQuery';
|
|
@@ -14,6 +14,9 @@ export interface AiWorkflowExecutionDetailResponse {
|
|
|
14
14
|
created_at?: number;
|
|
15
15
|
duration?: number;
|
|
16
16
|
execution_id?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Why the run failed, or — on a persisted SKIPPED execution — why nothing was selected.
|
|
19
|
+
*/
|
|
17
20
|
failure_reason?: string;
|
|
18
21
|
pipeline_execution_id?: string;
|
|
19
22
|
run_number?: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Type of AI workflow. DEPRECATED value: dependency_remediation — the SCA flow folded into remediation and is discriminated by its dispatch placeholder, not the type. The spelling is still accepted on reads and the container-target/config endpoints (where it selects the SCA surface), but write paths that would silently remap it (config save, agent toggle) reject it with a 400 — use remediation, whose agent.sca block carries the SCA dependency-remediation config.
|
|
2
|
+
* Type of AI workflow. DEPRECATED value: dependency_remediation — the SCA flow folded into remediation and is discriminated by its dispatch placeholder, not the type. The spelling is still accepted on reads and the container-target/config endpoints (where it selects the SCA surface), but write paths that would silently remap it (config save, agent toggle) reject it with a 400 — use remediation, whose agent.sca block carries the SCA dependency-remediation config. The same policy applies to the agent.type key inside the config YAML body: dependency-remediation-agent is rejected on shared config and code-repo saves (the container-target endpoint still accepts it).
|
|
3
3
|
* @example "vulnerability"
|
|
4
4
|
*/
|
|
5
5
|
export type AiWorkflowTypeEnum = 'dependency_remediation' | 'fp_triage' | 'remediation' | 'vulnerability' | 'zero_day';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ComponentDependencyEdge } from '../schemas/ComponentDependencyEdge';
|
|
2
|
+
import type { ComponentDependencyNode } from '../schemas/ComponentDependencyNode';
|
|
3
|
+
export interface ComponentDependencyGraph {
|
|
4
|
+
edges?: ComponentDependencyEdge[];
|
|
5
|
+
nodes?: ComponentDependencyNode[];
|
|
6
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ComponentCveImpact } from '../schemas/ComponentCveImpact';
|
|
2
|
+
export interface ComponentPackageCve {
|
|
3
|
+
affectedVersions?: string;
|
|
4
|
+
fixedVersions?: string[];
|
|
5
|
+
id?: string;
|
|
6
|
+
impact?: ComponentCveImpact;
|
|
7
|
+
/**
|
|
8
|
+
* Advisory id from the source database, for example the GHSA id behind a CVE id.
|
|
9
|
+
*/
|
|
10
|
+
internalId?: string;
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { ComponentPackageCve } from '../schemas/ComponentPackageCve';
|
|
2
|
+
import type { ComponentDependencyGraph } from '../schemas/ComponentDependencyGraph';
|
|
3
|
+
import type { ComponentPackageScore } from '../schemas/ComponentPackageScore';
|
|
4
|
+
/**
|
|
5
|
+
* The component-data-service package_info entry for one purl. Only the fields the plugin reads are declared; the service returns more, and unknown fields are ignored.
|
|
6
|
+
*/
|
|
7
|
+
export interface ComponentPackageInfo {
|
|
8
|
+
abandoned?: boolean;
|
|
9
|
+
cves?: ComponentPackageCve[];
|
|
10
|
+
dependencyGraph?: ComponentDependencyGraph;
|
|
11
|
+
error?: string;
|
|
12
|
+
isDeprecated?: boolean;
|
|
13
|
+
isMalicious?: boolean;
|
|
14
|
+
latestVersion?: string;
|
|
15
|
+
packageScore?: ComponentPackageScore;
|
|
16
|
+
publishDate?: string;
|
|
17
|
+
/**
|
|
18
|
+
* @format int64
|
|
19
|
+
*/
|
|
20
|
+
publishDateEpoch?: number;
|
|
21
|
+
purl?: string;
|
|
22
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import type { RemediationAgentCriteria } from '../schemas/RemediationAgentCriteria';
|
|
2
2
|
export interface InitiateRemediationAgentRequest {
|
|
3
|
+
/**
|
|
4
|
+
* Other STO scans of the same target that the caller deduplicated with scanId. Requires registerOnly. Stored on the execution so the STO write-back can stamp their occurrences too. Blank entries and copies of scanId are dropped.
|
|
5
|
+
*/
|
|
6
|
+
additionalScanIds?: string[];
|
|
3
7
|
/**
|
|
4
8
|
* Whether a vulnerable package may be upgraded to a pre-release version. Defaults to false.
|
|
5
9
|
*/
|
|
@@ -20,6 +24,10 @@ export interface InitiateRemediationAgentRequest {
|
|
|
20
24
|
* Caller's pipeline ID
|
|
21
25
|
*/
|
|
22
26
|
pipelineId?: string;
|
|
27
|
+
/**
|
|
28
|
+
* Register (or continue) the execution and resolve targetConfig and context without selecting findings: the response findings lists are empty, remediationCriteria and maxVersionUpdate are ignored, and the SKIPPED path never applies. Used by the multi-scan flow, where the caller selects fixes from its own deduplicated findings. Defaults to false.
|
|
29
|
+
*/
|
|
30
|
+
registerOnly?: boolean;
|
|
23
31
|
remediationCriteria?: RemediationAgentCriteria;
|
|
24
32
|
/**
|
|
25
33
|
* STO scan ID
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
export interface RemediationAgentExecution {
|
|
2
|
+
/**
|
|
3
|
+
* The attempt-scoped callback handle of the run this response represents (the row's current correlationId), not the persistent row id. A later initiate that selects work reopens a FAILED or SKIPPED row and issues the new run a fresh handle, which is what that response returns; handles returned for earlier runs stop resolving. Only a synthetic SKIPPED response carries a deterministic `skipped-`-prefixed id that addresses no stored execution.
|
|
4
|
+
*/
|
|
2
5
|
executionId: string;
|
|
3
6
|
/**
|
|
4
|
-
* Why the
|
|
7
|
+
* Why the execution ended without remediation work. Present on FAILED executions (why the last run failed) and on persisted SKIPPED executions (why nothing was selected). Absent on synthetic (`skipped-` id) SKIPPED responses and on non-terminal statuses. A replayed terminal status is informational; callers must not start remediation work under it.
|
|
5
8
|
*/
|
|
6
9
|
failureReason?: string;
|
|
7
10
|
/**
|
|
8
|
-
* QUEUED|PENDING|RUNNING|COMPLETED|FAILED|SKIPPED. SKIPPED
|
|
11
|
+
* QUEUED|PENDING|RUNNING|COMPLETED|FAILED|SKIPPED. SKIPPED has two forms. When the request selected no remediation criterion or no package group resolved to a policy-compliant upgrade and none was handed to the agent to choose, the skip is persisted: executionId addresses a stored execution, failureReason states why nothing was selected, and findings is empty. A later initiate that selects work reopens the stored row back to RUNNING and returns the reopened run's fresh handle; one that still selects nothing replays the stored outcome. A SKIPPED row a worker pipeline step wrote can also be claimed by the scan-completion trigger, reopening as PENDING under that trigger's config. When the scan is an agent validation run, nothing is persisted: executionId is a deterministic synthetic value with a `skipped-` prefix, stable across retries of the same scan+target, and failureReason is absent. A request that selects a criterion without a valid maxVersionUpdate fails with a 400 instead.
|
|
9
12
|
*/
|
|
10
13
|
status: string;
|
|
11
14
|
targetId?: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type TrustedPublisherMatchField = 'Purl' | 'Supplier';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { TrustedPublisherMatchField } from '../schemas/TrustedPublisherMatchField';
|
|
2
|
+
import type { Operator } from '../schemas/Operator';
|
|
3
|
+
export interface TrustedPublisherMatchRule {
|
|
4
|
+
field: TrustedPublisherMatchField;
|
|
5
|
+
operator: Operator;
|
|
6
|
+
value: string;
|
|
7
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { CreatedBy } from '../schemas/CreatedBy';
|
|
2
|
+
import type { TrustedPublisherMatchRule } from '../schemas/TrustedPublisherMatchRule';
|
|
3
|
+
export interface TrustedPublisherResponse {
|
|
4
|
+
description?: string;
|
|
5
|
+
enabled: boolean;
|
|
6
|
+
id: string;
|
|
7
|
+
/**
|
|
8
|
+
* @format date-time
|
|
9
|
+
*/
|
|
10
|
+
last_modified_at?: string;
|
|
11
|
+
last_modified_by?: CreatedBy;
|
|
12
|
+
name: string;
|
|
13
|
+
rules: TrustedPublisherMatchRule[];
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { TrustedPublisherMatchRule } from '../schemas/TrustedPublisherMatchRule';
|
|
2
|
+
export interface TrustedPublisherUpsertRequest {
|
|
3
|
+
description?: string;
|
|
4
|
+
/**
|
|
5
|
+
* On create, omitted means disabled until explicitly enabled (server default). On update, omitted leaves the current enabled state unchanged.
|
|
6
|
+
*/
|
|
7
|
+
enabled?: boolean;
|
|
8
|
+
name: string;
|
|
9
|
+
rules: TrustedPublisherMatchRule[];
|
|
10
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface ZeroDayBackfillResponse {
|
|
2
|
+
account_id?: string;
|
|
3
|
+
/**
|
|
4
|
+
* False means the run completes without sending a notification
|
|
5
|
+
*/
|
|
6
|
+
alert_configured?: boolean;
|
|
7
|
+
/**
|
|
8
|
+
* run_in_progress when the account already has an active run
|
|
9
|
+
*/
|
|
10
|
+
reason?: string;
|
|
11
|
+
/**
|
|
12
|
+
* The backfill run's id; set on 202 and on run_in_progress
|
|
13
|
+
*/
|
|
14
|
+
run_id?: string;
|
|
15
|
+
}
|
|
@@ -29,10 +29,18 @@ export interface ZeroDayBatchDetailResponse {
|
|
|
29
29
|
results_truncated?: boolean;
|
|
30
30
|
run_id?: string;
|
|
31
31
|
skipped_account_count?: number;
|
|
32
|
+
/**
|
|
33
|
+
* Where the batch came from. BACKFILL batches target one account and their accepted_cluster_ids are excluded from feed-batch uniqueness and ingest dedup.
|
|
34
|
+
*/
|
|
35
|
+
source?: 'BACKFILL' | 'LIVE';
|
|
32
36
|
/**
|
|
33
37
|
* Dispatch outcome of the batch; unaffected by reruns
|
|
34
38
|
*/
|
|
35
39
|
status?: string;
|
|
40
|
+
/**
|
|
41
|
+
* Accounts a targeted (backfill) batch is restricted to; null for the usual fan-out
|
|
42
|
+
*/
|
|
43
|
+
target_account_ids?: string[];
|
|
36
44
|
target_count?: number;
|
|
37
45
|
total_finding_count?: number;
|
|
38
46
|
triggered_account_count?: number;
|
|
@@ -4,6 +4,10 @@ export interface ZeroDayExecutionSummary extends AiWorkflowExecutionSummary {
|
|
|
4
4
|
* Finding cluster this row describes
|
|
5
5
|
*/
|
|
6
6
|
cluster_id?: string;
|
|
7
|
+
/**
|
|
8
|
+
* Where the execution came from; BACKFILL rows belong to a backfill run
|
|
9
|
+
*/
|
|
10
|
+
source?: 'BACKFILL' | 'LIVE';
|
|
7
11
|
/**
|
|
8
12
|
* True for runs started by the test trigger
|
|
9
13
|
*/
|
|
@@ -18,6 +18,14 @@ export interface ZeroDayFindingUpdateRequest {
|
|
|
18
18
|
source_updated_at?: string;
|
|
19
19
|
source_urls?: string[];
|
|
20
20
|
sources?: string[];
|
|
21
|
+
/**
|
|
22
|
+
* Feed-suggested fix version; takes precedence over fix_versions and the version recommendation
|
|
23
|
+
*/
|
|
24
|
+
suggested_fix_version?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Fallback list consulted when suggested_fix_version is blank; first non-blank wins
|
|
27
|
+
*/
|
|
28
|
+
suggested_fix_versions?: string[];
|
|
21
29
|
summary?: string;
|
|
22
30
|
version_validation?: string;
|
|
23
31
|
}
|
|
@@ -16,5 +16,13 @@ export interface ZeroDayTestTriggerRequest {
|
|
|
16
16
|
* Defaults to HIGH
|
|
17
17
|
*/
|
|
18
18
|
severity?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Feed-suggested fix version; takes precedence over fix_versions and the version recommendation
|
|
21
|
+
*/
|
|
22
|
+
suggested_fix_version?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Fallback list consulted when suggested_fix_version is blank; first non-blank wins
|
|
25
|
+
*/
|
|
26
|
+
suggested_fix_versions?: string[];
|
|
19
27
|
summary?: string;
|
|
20
28
|
}
|