@harnessio/react-ssca-manager-client 1.0.4 → 1.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (27) hide show
  1. package/dist/ssca-manager/src/services/hooks/useCreateTrustedPublisherMutation.d.ts +19 -0
  2. package/dist/ssca-manager/src/services/hooks/useCreateTrustedPublisherMutation.js +14 -0
  3. package/dist/ssca-manager/src/services/hooks/useDeleteTrustedPublisherMutation.d.ts +18 -0
  4. package/dist/ssca-manager/src/services/hooks/useDeleteTrustedPublisherMutation.js +14 -0
  5. package/dist/ssca-manager/src/services/hooks/useGetContainerTargetAiWorkflowConfigQuery.d.ts +10 -6
  6. package/dist/ssca-manager/src/services/hooks/useGetContainerTargetAiWorkflowConfigQuery.js +10 -6
  7. package/dist/ssca-manager/src/services/hooks/useGetZeroDayExecutionsQuery.d.ts +1 -0
  8. package/dist/ssca-manager/src/services/hooks/useGetZeroDayExecutionsRerunStatusQuery.d.ts +17 -0
  9. package/dist/ssca-manager/src/services/hooks/useGetZeroDayExecutionsRerunStatusQuery.js +15 -0
  10. package/dist/ssca-manager/src/services/hooks/useListTrustedPublishersQuery.d.ts +28 -0
  11. package/dist/ssca-manager/src/services/hooks/useListTrustedPublishersQuery.js +14 -0
  12. package/dist/ssca-manager/src/services/hooks/useRemediateZeroDayAffectedTargetMutation.d.ts +32 -0
  13. package/dist/ssca-manager/src/services/hooks/useRemediateZeroDayAffectedTargetMutation.js +14 -0
  14. package/dist/ssca-manager/src/services/hooks/useRerunZeroDayExecutionsMutation.d.ts +17 -0
  15. package/dist/ssca-manager/src/services/hooks/useRerunZeroDayExecutionsMutation.js +15 -0
  16. package/dist/ssca-manager/src/services/hooks/useSaveContainerTargetAiWorkflowConfigMutation.d.ts +10 -9
  17. package/dist/ssca-manager/src/services/hooks/useSaveContainerTargetAiWorkflowConfigMutation.js +10 -9
  18. package/dist/ssca-manager/src/services/hooks/useUpdateTrustedPublisherMutation.d.ts +22 -0
  19. package/dist/ssca-manager/src/services/hooks/useUpdateTrustedPublisherMutation.js +14 -0
  20. package/dist/ssca-manager/src/services/hooks/useUpdateZeroDayConfigEnabledMutation.d.ts +19 -0
  21. package/dist/ssca-manager/src/services/hooks/useUpdateZeroDayConfigEnabledMutation.js +14 -0
  22. package/dist/ssca-manager/src/services/index.d.ts +16 -0
  23. package/dist/ssca-manager/src/services/index.js +8 -0
  24. package/dist/ssca-manager/src/services/schemas/AffectedTargetRemediationResponse.d.ts +1 -1
  25. package/dist/ssca-manager/src/services/schemas/InitiateRemediationAgentRequest.d.ts +0 -4
  26. package/dist/ssca-manager/src/services/schemas/ZeroDayRerunStatusResponse.d.ts +1 -1
  27. 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
+ }
@@ -26,17 +26,21 @@ export declare function getContainerTargetAiWorkflowConfig(props: GetContainerTa
26
26
  * as the code-repo GET.
27
27
  * remediation (the default — the SCA dependency-remediation surface; the deprecated
28
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.
29
+ * variantScope, repoUrl and dockerfilePath from the target row; scm from the target
30
+ * row when set, otherwise inherited from the merged config; the flat
31
+ * agent.validation* keys leaf-merged from the project agent.sca config with target
32
+ * overrides applied. agent.enabled is the effective per-target toggle: true only when the
33
+ * project targetIncludeScope covers this target (an unset scope or ALL covers every
34
+ * target), the merged agent.sca.enabled is on, and the stored per-target opt-out is not
35
+ * false — the same conjuncts dispatch applies. The sca selection policy
36
+ * (remediationCriteria, useStoApprovedBaseImages, maxVersionUpdate) is agent-level only and
37
+ * is not returned here.
34
38
  * fp_triage returns the resolved triage rule as agent.variantScope: the artifact's stored
35
39
  * rule when set (mode fixed with values, or mode regex with regex), otherwise mode baseline.
36
40
  * agent.enabled comes from the project targetIncludeScope. include_scope_status and
37
41
  * account_enabled match the code-repo triage GET. agent.enabled is not stored here.
38
42
  * Clearing the triage variantScope restores baseline-only triage.
39
- * A target with no document returns the purely inherited project config; with no config
43
+ * A target with no document returns the purely inherited merged config; with no config
40
44
  * anywhere it returns the minimal payload (agent type and enabled: false).
41
45
  *
42
46
  */
@@ -12,17 +12,21 @@ export function getContainerTargetAiWorkflowConfig(props) {
12
12
  * as the code-repo GET.
13
13
  * remediation (the default — the SCA dependency-remediation surface; the deprecated
14
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.
15
+ * variantScope, repoUrl and dockerfilePath from the target row; scm from the target
16
+ * row when set, otherwise inherited from the merged config; the flat
17
+ * agent.validation* keys leaf-merged from the project agent.sca config with target
18
+ * overrides applied. agent.enabled is the effective per-target toggle: true only when the
19
+ * project targetIncludeScope covers this target (an unset scope or ALL covers every
20
+ * target), the merged agent.sca.enabled is on, and the stored per-target opt-out is not
21
+ * false — the same conjuncts dispatch applies. The sca selection policy
22
+ * (remediationCriteria, useStoApprovedBaseImages, maxVersionUpdate) is agent-level only and
23
+ * is not returned here.
20
24
  * fp_triage returns the resolved triage rule as agent.variantScope: the artifact's stored
21
25
  * rule when set (mode fixed with values, or mode regex with regex), otherwise mode baseline.
22
26
  * agent.enabled comes from the project targetIncludeScope. include_scope_status and
23
27
  * account_enabled match the code-repo triage GET. agent.enabled is not stored here.
24
28
  * Clearing the triage variantScope restores baseline-only triage.
25
- * A target with no document returns the purely inherited project config; with no config
29
+ * A target with no document returns the purely inherited merged config; with no config
26
30
  * anywhere it returns the minimal payload (agent type and enabled: false).
27
31
  *
28
32
  */
@@ -17,6 +17,7 @@ export interface GetZeroDayExecutionsQueryQueryParams {
17
17
  org?: string;
18
18
  project?: string;
19
19
  search?: string;
20
+ only_impacted_targets?: boolean;
20
21
  /**
21
22
  * @default 0
22
23
  */
@@ -0,0 +1,17 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ZeroDayRerunStatusResponse } from '../schemas/ZeroDayRerunStatusResponse';
3
+ import type { ResponseWithPagination } from '../helpers';
4
+ import { FetcherOptions } from '../../../../fetcher/index.js';
5
+ export interface GetZeroDayExecutionsRerunStatusQueryHeaderParams {
6
+ 'Harness-Account': string;
7
+ }
8
+ export type GetZeroDayExecutionsRerunStatusOkResponse = ResponseWithPagination<ZeroDayRerunStatusResponse>;
9
+ export type GetZeroDayExecutionsRerunStatusErrorResponse = unknown;
10
+ export interface GetZeroDayExecutionsRerunStatusProps extends Omit<FetcherOptions<unknown, unknown, GetZeroDayExecutionsRerunStatusQueryHeaderParams>, 'url'> {
11
+ }
12
+ export declare function getZeroDayExecutionsRerunStatus(props: GetZeroDayExecutionsRerunStatusProps): Promise<GetZeroDayExecutionsRerunStatusOkResponse>;
13
+ /**
14
+ * Account-scoped zero-day Rerun banner payload. Counts every currently Failed zero-day execution in the account (package-expanded; test runs excluded). Table filters are ignored. Returned only for the account Executions page. Requires the SCS_ZERO_DAY_GLOBAL_FINDINGS feature flag.
15
+ *
16
+ */
17
+ export declare function useGetZeroDayExecutionsRerunStatusQuery(props: GetZeroDayExecutionsRerunStatusProps, options?: Omit<UseQueryOptions<GetZeroDayExecutionsRerunStatusOkResponse, GetZeroDayExecutionsRerunStatusErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetZeroDayExecutionsRerunStatusOkResponse, unknown>;
@@ -0,0 +1,15 @@
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 getZeroDayExecutionsRerunStatus(props) {
7
+ return fetcher(Object.assign({ url: `/v1/zero-day/executions/rerun-status`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Account-scoped zero-day Rerun banner payload. Counts every currently Failed zero-day execution in the account (package-expanded; test runs excluded). Table filters are ignored. Returned only for the account Executions page. Requires the SCS_ZERO_DAY_GLOBAL_FINDINGS feature flag.
11
+ *
12
+ */
13
+ export function useGetZeroDayExecutionsRerunStatusQuery(props, options) {
14
+ return useQuery(['getZeroDayExecutionsRerunStatus'], ({ signal }) => getZeroDayExecutionsRerunStatus(Object.assign(Object.assign({}, props), { signal })), options);
15
+ }
@@ -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
+ }
@@ -0,0 +1,32 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { AffectedTargetRemediationResponse } from '../schemas/AffectedTargetRemediationResponse';
3
+ import type { Error } from '../schemas/Error';
4
+ import type { RemediationPrRequest } from '../schemas/RemediationPrRequest';
5
+ import type { ResponseWithPagination } from '../helpers';
6
+ import { FetcherOptions } from '../../../../fetcher/index.js';
7
+ export interface RemediateZeroDayAffectedTargetMutationPathParams {
8
+ executionId: string;
9
+ artifactId: string;
10
+ }
11
+ export interface RemediateZeroDayAffectedTargetMutationQueryParams {
12
+ cluster_id: string;
13
+ org?: string;
14
+ project?: string;
15
+ }
16
+ export interface RemediateZeroDayAffectedTargetMutationHeaderParams {
17
+ 'Harness-Account': string;
18
+ }
19
+ export type RemediateZeroDayAffectedTargetRequestBody = RemediationPrRequest;
20
+ export type RemediateZeroDayAffectedTargetOkResponse = ResponseWithPagination<AffectedTargetRemediationResponse>;
21
+ export type RemediateZeroDayAffectedTargetErrorResponse = AffectedTargetRemediationResponse | {
22
+ message?: string;
23
+ } | Error;
24
+ export interface RemediateZeroDayAffectedTargetProps extends RemediateZeroDayAffectedTargetMutationPathParams, Omit<FetcherOptions<RemediateZeroDayAffectedTargetMutationQueryParams, RemediateZeroDayAffectedTargetRequestBody, RemediateZeroDayAffectedTargetMutationHeaderParams>, 'url'> {
25
+ queryParams: RemediateZeroDayAffectedTargetMutationQueryParams;
26
+ body: RemediateZeroDayAffectedTargetRequestBody;
27
+ }
28
+ export declare function remediateZeroDayAffectedTarget(props: RemediateZeroDayAffectedTargetProps): Promise<RemediateZeroDayAffectedTargetOkResponse>;
29
+ /**
30
+ * Trigger creation of a remediation Pull Request for a specific affected target of one dispatched zero-day finding. cluster_id selects the finding, matching the executions list row. Idempotent — returns existing PR status if one already exists for this target. Requires the SCS_ZERO_DAY_GLOBAL_FINDINGS feature flag.
31
+ */
32
+ export declare function useRemediateZeroDayAffectedTargetMutation(options?: Omit<UseMutationOptions<RemediateZeroDayAffectedTargetOkResponse, RemediateZeroDayAffectedTargetErrorResponse, RemediateZeroDayAffectedTargetProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<RemediateZeroDayAffectedTargetOkResponse, RemediateZeroDayAffectedTargetErrorResponse, RemediateZeroDayAffectedTargetProps, 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 remediateZeroDayAffectedTarget(props) {
7
+ return fetcher(Object.assign({ url: `/v1/zero-day/executions/${props.executionId}/affected-targets/${props.artifactId}/remediate`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Trigger creation of a remediation Pull Request for a specific affected target of one dispatched zero-day finding. cluster_id selects the finding, matching the executions list row. Idempotent — returns existing PR status if one already exists for this target. Requires the SCS_ZERO_DAY_GLOBAL_FINDINGS feature flag.
11
+ */
12
+ export function useRemediateZeroDayAffectedTargetMutation(options) {
13
+ return useMutation((mutateProps) => remediateZeroDayAffectedTarget(mutateProps), options);
14
+ }
@@ -0,0 +1,17 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { ZeroDayRerunStatusResponse } from '../schemas/ZeroDayRerunStatusResponse';
3
+ import type { ResponseWithPagination } from '../helpers';
4
+ import { FetcherOptions } from '../../../../fetcher/index.js';
5
+ export interface RerunZeroDayExecutionsMutationHeaderParams {
6
+ 'Harness-Account': string;
7
+ }
8
+ export type RerunZeroDayExecutionsOkResponse = ResponseWithPagination<ZeroDayRerunStatusResponse>;
9
+ export type RerunZeroDayExecutionsErrorResponse = unknown | ZeroDayRerunStatusResponse;
10
+ export interface RerunZeroDayExecutionsProps extends Omit<FetcherOptions<unknown, unknown, RerunZeroDayExecutionsMutationHeaderParams>, 'url'> {
11
+ }
12
+ export declare function rerunZeroDayExecutions(props: RerunZeroDayExecutionsProps): Promise<RerunZeroDayExecutionsOkResponse>;
13
+ /**
14
+ * Accepts an account-wide rerun of every zero-day execution that was already Failed at the accept, then claims and re-dispatches each in place synchronously before responding. At most one account Rerun is in-flight. Next accept is at least one hour after the last accepted Rerun. Requires the SCS_ZERO_DAY_GLOBAL_FINDINGS feature flag and account edit access.
15
+ *
16
+ */
17
+ export declare function useRerunZeroDayExecutionsMutation(options?: Omit<UseMutationOptions<RerunZeroDayExecutionsOkResponse, RerunZeroDayExecutionsErrorResponse, RerunZeroDayExecutionsProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<RerunZeroDayExecutionsOkResponse, unknown, RerunZeroDayExecutionsProps, unknown>;
@@ -0,0 +1,15 @@
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 rerunZeroDayExecutions(props) {
7
+ return fetcher(Object.assign({ url: `/v1/zero-day/executions/rerun`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Accepts an account-wide rerun of every zero-day execution that was already Failed at the accept, then claims and re-dispatches each in place synchronously before responding. At most one account Rerun is in-flight. Next accept is at least one hour after the last accepted Rerun. Requires the SCS_ZERO_DAY_GLOBAL_FINDINGS feature flag and account edit access.
11
+ *
12
+ */
13
+ export function useRerunZeroDayExecutionsMutation(options) {
14
+ return useMutation((mutateProps) => rerunZeroDayExecutions(mutateProps), options);
15
+ }
@@ -28,21 +28,22 @@ export declare function saveContainerTargetAiWorkflowConfig(props: SaveContainer
28
28
  * The document under agent is the complete desired state — the same resolved document
29
29
  * the GET returns. Replace semantics: a named value is stored; an omitted or null field
30
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
31
+ * therefore pins every resolved value as a target override — except agent.enabled while
32
+ * scope gates keep the target from running — and a sparse document clears the overrides
33
+ * it does not name. The 'effective' section emitted by earlier versions of
33
34
  * this endpoint is rejected on write.
34
35
  * remediation (the default — the SCA dependency-remediation surface; the deprecated
35
36
  * dependency_remediation spelling is still accepted) accepts agent.enabled (a stored false
36
- * suppresses remediation for this target), agent.variantScope
37
+ * suppresses remediation for this target; while the target is outside the project
38
+ * targetIncludeScope or the merged agent.sca.enabled is off, agent.enabled is read-only
39
+ * context — accepted and ignored on write, same as fp_triage), agent.variantScope
37
40
  * (baseline|all|fixed|regex),
38
- * agent.repoUrl, agent.dockerfilePath, agent.scm, the sca selection-policy overrides
39
- * agent.remediationCriteria (cisaKev, exploitable, reachable, epssProbability —
40
- * gte_15|gte_5|gte_1 or blank to disable the gate), agent.useStoApprovedBaseImages and
41
- * agent.maxVersionUpdate (patch|minor|major|none — none blocks every version bump), and the
42
- * flat validation keys
41
+ * agent.repoUrl, agent.dockerfilePath, agent.scm, and the flat validation keys
43
42
  * agent.validationMode (agent_validated|deferred), agent.validationPipelineId,
44
43
  * agent.validationPipelineOrg, agent.validationPipelineProject, agent.buildStepId and
45
- * agent.scanStepId.
44
+ * agent.scanStepId. The former sca selection-policy keys agent.remediationCriteria,
45
+ * agent.useStoApprovedBaseImages and agent.maxVersionUpdate are accepted and ignored —
46
+ * the policy comes from the inherited agent.sca config.
46
47
  * fp_triage accepts agent.variantScope in that same shape and stores it separately
47
48
  * from the dependency-remediation rule. agent.enabled is accepted and ignored; the
48
49
  * response reports project targetIncludeScope membership, include_scope_status, and
@@ -11,21 +11,22 @@ export function saveContainerTargetAiWorkflowConfig(props) {
11
11
  * The document under agent is the complete desired state — the same resolved document
12
12
  * the GET returns. Replace semantics: a named value is stored; an omitted or null field
13
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
14
+ * therefore pins every resolved value as a target override — except agent.enabled while
15
+ * scope gates keep the target from running — and a sparse document clears the overrides
16
+ * it does not name. The 'effective' section emitted by earlier versions of
16
17
  * this endpoint is rejected on write.
17
18
  * remediation (the default — the SCA dependency-remediation surface; the deprecated
18
19
  * dependency_remediation spelling is still accepted) accepts agent.enabled (a stored false
19
- * suppresses remediation for this target), agent.variantScope
20
+ * suppresses remediation for this target; while the target is outside the project
21
+ * targetIncludeScope or the merged agent.sca.enabled is off, agent.enabled is read-only
22
+ * context — accepted and ignored on write, same as fp_triage), agent.variantScope
20
23
  * (baseline|all|fixed|regex),
21
- * agent.repoUrl, agent.dockerfilePath, agent.scm, the sca selection-policy overrides
22
- * agent.remediationCriteria (cisaKev, exploitable, reachable, epssProbability —
23
- * gte_15|gte_5|gte_1 or blank to disable the gate), agent.useStoApprovedBaseImages and
24
- * agent.maxVersionUpdate (patch|minor|major|none — none blocks every version bump), and the
25
- * flat validation keys
24
+ * agent.repoUrl, agent.dockerfilePath, agent.scm, and the flat validation keys
26
25
  * agent.validationMode (agent_validated|deferred), agent.validationPipelineId,
27
26
  * agent.validationPipelineOrg, agent.validationPipelineProject, agent.buildStepId and
28
- * agent.scanStepId.
27
+ * agent.scanStepId. The former sca selection-policy keys agent.remediationCriteria,
28
+ * agent.useStoApprovedBaseImages and agent.maxVersionUpdate are accepted and ignored —
29
+ * the policy comes from the inherited agent.sca config.
29
30
  * fp_triage accepts agent.variantScope in that same shape and stores it separately
30
31
  * from the dependency-remediation rule. agent.enabled is accepted and ignored; the
31
32
  * response reports project targetIncludeScope membership, include_scope_status, and
@@ -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
+ }
@@ -0,0 +1,19 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { ZeroDayConfig } from '../schemas/ZeroDayConfig';
3
+ import type { ZeroDayConfigEnabledUpdate } from '../schemas/ZeroDayConfigEnabledUpdate';
4
+ import type { ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
+ export interface UpdateZeroDayConfigEnabledMutationHeaderParams {
7
+ 'Harness-Account': string;
8
+ }
9
+ export type UpdateZeroDayConfigEnabledRequestBody = ZeroDayConfigEnabledUpdate;
10
+ export type UpdateZeroDayConfigEnabledOkResponse = ResponseWithPagination<ZeroDayConfig>;
11
+ export type UpdateZeroDayConfigEnabledErrorResponse = unknown;
12
+ export interface UpdateZeroDayConfigEnabledProps extends Omit<FetcherOptions<unknown, UpdateZeroDayConfigEnabledRequestBody, UpdateZeroDayConfigEnabledMutationHeaderParams>, 'url'> {
13
+ body: UpdateZeroDayConfigEnabledRequestBody;
14
+ }
15
+ export declare function updateZeroDayConfigEnabled(props: UpdateZeroDayConfigEnabledProps): Promise<UpdateZeroDayConfigEnabledOkResponse>;
16
+ /**
17
+ * Flips only the `enabled` flag; every other field of the stored configuration (artifact exclusions, infrastructure, alert config) is preserved. On the account's first call this creates a minimal config with only `enabled` set. Enabling fails closed with 403 when the SCS_ZERO_DAY_GLOBAL_FINDINGS feature flag is off; disabling is always permitted so an account can turn the flow off even while the flag is off.
18
+ */
19
+ export declare function useUpdateZeroDayConfigEnabledMutation(options?: Omit<UseMutationOptions<UpdateZeroDayConfigEnabledOkResponse, UpdateZeroDayConfigEnabledErrorResponse, UpdateZeroDayConfigEnabledProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UpdateZeroDayConfigEnabledOkResponse, unknown, UpdateZeroDayConfigEnabledProps, 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 updateZeroDayConfigEnabled(props) {
7
+ return fetcher(Object.assign({ url: `/v1/zero-day/config/enabled`, method: 'PATCH' }, props));
8
+ }
9
+ /**
10
+ * Flips only the `enabled` flag; every other field of the stored configuration (artifact exclusions, infrastructure, alert config) is preserved. On the account's first call this creates a minimal config with only `enabled` set. Enabling fails closed with 403 when the SCS_ZERO_DAY_GLOBAL_FINDINGS feature flag is off; disabling is always permitted so an account can turn the flow off even while the flag is off.
11
+ */
12
+ export function useUpdateZeroDayConfigEnabledMutation(options) {
13
+ return useMutation((mutateProps) => updateZeroDayConfigEnabled(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';
@@ -205,6 +209,8 @@ export type { GetZeroDayExecutionStepsErrorResponse, GetZeroDayExecutionStepsOkR
205
209
  export { getZeroDayExecutionSteps, useGetZeroDayExecutionStepsQuery, } from './hooks/useGetZeroDayExecutionStepsQuery';
206
210
  export type { GetZeroDayExecutionsErrorResponse, GetZeroDayExecutionsOkResponse, GetZeroDayExecutionsProps, GetZeroDayExecutionsQueryQueryParams, } from './hooks/useGetZeroDayExecutionsQuery';
207
211
  export { getZeroDayExecutions, useGetZeroDayExecutionsQuery, } from './hooks/useGetZeroDayExecutionsQuery';
212
+ export type { GetZeroDayExecutionsRerunStatusErrorResponse, GetZeroDayExecutionsRerunStatusOkResponse, GetZeroDayExecutionsRerunStatusProps, } from './hooks/useGetZeroDayExecutionsRerunStatusQuery';
213
+ export { getZeroDayExecutionsRerunStatus, useGetZeroDayExecutionsRerunStatusQuery, } from './hooks/useGetZeroDayExecutionsRerunStatusQuery';
208
214
  export type { GetZeroDayRerunStatusErrorResponse, GetZeroDayRerunStatusOkResponse, GetZeroDayRerunStatusProps, } from './hooks/useGetZeroDayRerunStatusQuery';
209
215
  export { getZeroDayRerunStatus, useGetZeroDayRerunStatusQuery, } from './hooks/useGetZeroDayRerunStatusQuery';
210
216
  export type { ImportLicenseFamilyConfigErrorResponse, ImportLicenseFamilyConfigMutationPathParams, ImportLicenseFamilyConfigOkResponse, ImportLicenseFamilyConfigProps, ImportLicenseFamilyConfigRequestBody, } from './hooks/useImportLicenseFamilyConfigMutation';
@@ -229,14 +235,20 @@ export type { ListScannerConfigurationIntegrationsErrorResponse, ListScannerConf
229
235
  export { listScannerConfigurationIntegrations, useListScannerConfigurationIntegrationsQuery, } from './hooks/useListScannerConfigurationIntegrationsQuery';
230
236
  export type { ListScannerConfigurationsErrorResponse, ListScannerConfigurationsOkResponse, ListScannerConfigurationsProps, ListScannerConfigurationsQueryPathParams, ListScannerConfigurationsQueryQueryParams, } from './hooks/useListScannerConfigurationsQuery';
231
237
  export { listScannerConfigurations, useListScannerConfigurationsQuery, } from './hooks/useListScannerConfigurationsQuery';
238
+ export type { ListTrustedPublishersErrorResponse, ListTrustedPublishersOkResponse, ListTrustedPublishersProps, ListTrustedPublishersQueryQueryParams, } from './hooks/useListTrustedPublishersQuery';
239
+ export { listTrustedPublishers, useListTrustedPublishersQuery, } from './hooks/useListTrustedPublishersQuery';
232
240
  export type { PostComplianceResultStatsEvaluationBreakdownArtifactTypeErrorResponse, PostComplianceResultStatsEvaluationBreakdownArtifactTypeMutationPathParams, PostComplianceResultStatsEvaluationBreakdownArtifactTypeMutationQueryParams, PostComplianceResultStatsEvaluationBreakdownArtifactTypeOkResponse, PostComplianceResultStatsEvaluationBreakdownArtifactTypeProps, PostComplianceResultStatsEvaluationBreakdownArtifactTypeRequestBody, } from './hooks/usePostComplianceResultStatsEvaluationBreakdownArtifactTypeMutation';
233
241
  export { postComplianceResultStatsEvaluationBreakdownArtifactType, usePostComplianceResultStatsEvaluationBreakdownArtifactTypeMutation, } from './hooks/usePostComplianceResultStatsEvaluationBreakdownArtifactTypeMutation';
234
242
  export type { PostComplianceResultStatsOverviewErrorResponse, PostComplianceResultStatsOverviewMutationPathParams, PostComplianceResultStatsOverviewMutationQueryParams, PostComplianceResultStatsOverviewOkResponse, PostComplianceResultStatsOverviewProps, PostComplianceResultStatsOverviewRequestBody, } from './hooks/usePostComplianceResultStatsOverviewMutation';
235
243
  export { postComplianceResultStatsOverview, usePostComplianceResultStatsOverviewMutation, } from './hooks/usePostComplianceResultStatsOverviewMutation';
236
244
  export type { RemediateAffectedTargetErrorResponse, RemediateAffectedTargetOkResponse, RemediateAffectedTargetProps, RemediateAffectedTargetQueryPathParams, RemediateAffectedTargetQueryQueryParams, RemediateAffectedTargetRequestBody, } from './hooks/useRemediateAffectedTargetQuery';
237
245
  export { remediateAffectedTarget, useRemediateAffectedTargetQuery, } from './hooks/useRemediateAffectedTargetQuery';
246
+ export type { RemediateZeroDayAffectedTargetErrorResponse, RemediateZeroDayAffectedTargetMutationPathParams, RemediateZeroDayAffectedTargetMutationQueryParams, RemediateZeroDayAffectedTargetOkResponse, RemediateZeroDayAffectedTargetProps, RemediateZeroDayAffectedTargetRequestBody, } from './hooks/useRemediateZeroDayAffectedTargetMutation';
247
+ export { remediateZeroDayAffectedTarget, useRemediateZeroDayAffectedTargetMutation, } from './hooks/useRemediateZeroDayAffectedTargetMutation';
238
248
  export type { RerunFailedZeroDayExecutionsErrorResponse, RerunFailedZeroDayExecutionsOkResponse, RerunFailedZeroDayExecutionsProps, } from './hooks/useRerunFailedZeroDayExecutionsMutation';
239
249
  export { rerunFailedZeroDayExecutions, useRerunFailedZeroDayExecutionsMutation, } from './hooks/useRerunFailedZeroDayExecutionsMutation';
250
+ export type { RerunZeroDayExecutionsErrorResponse, RerunZeroDayExecutionsOkResponse, RerunZeroDayExecutionsProps, } from './hooks/useRerunZeroDayExecutionsMutation';
251
+ export { rerunZeroDayExecutions, useRerunZeroDayExecutionsMutation, } from './hooks/useRerunZeroDayExecutionsMutation';
240
252
  export type { ResetLicenseFamilyConfigErrorResponse, ResetLicenseFamilyConfigMutationPathParams, ResetLicenseFamilyConfigMutationQueryParams, ResetLicenseFamilyConfigOkResponse, ResetLicenseFamilyConfigProps, } from './hooks/useResetLicenseFamilyConfigMutation';
241
253
  export { resetLicenseFamilyConfig, useResetLicenseFamilyConfigMutation, } from './hooks/useResetLicenseFamilyConfigMutation';
242
254
  export type { ReviewExemptionErrorResponse, ReviewExemptionMutationPathParams, ReviewExemptionMutationQueryParams, ReviewExemptionOkResponse, ReviewExemptionProps, ReviewExemptionRequestBody, } from './hooks/useReviewExemptionMutation';
@@ -271,6 +283,10 @@ export type { UpdateRemediationTrackerErrorResponse, UpdateRemediationTrackerMut
271
283
  export { updateRemediationTracker, useUpdateRemediationTrackerMutation, } from './hooks/useUpdateRemediationTrackerMutation';
272
284
  export type { UpdateScannerConfigurationErrorResponse, UpdateScannerConfigurationMutationPathParams, UpdateScannerConfigurationOkResponse, UpdateScannerConfigurationProps, UpdateScannerConfigurationRequestBody, } from './hooks/useUpdateScannerConfigurationMutation';
273
285
  export { updateScannerConfiguration, useUpdateScannerConfigurationMutation, } from './hooks/useUpdateScannerConfigurationMutation';
286
+ export type { UpdateTrustedPublisherErrorResponse, UpdateTrustedPublisherMutationPathParams, UpdateTrustedPublisherOkResponse, UpdateTrustedPublisherProps, UpdateTrustedPublisherRequestBody, } from './hooks/useUpdateTrustedPublisherMutation';
287
+ export { updateTrustedPublisher, useUpdateTrustedPublisherMutation, } from './hooks/useUpdateTrustedPublisherMutation';
288
+ export type { UpdateZeroDayConfigEnabledErrorResponse, UpdateZeroDayConfigEnabledOkResponse, UpdateZeroDayConfigEnabledProps, UpdateZeroDayConfigEnabledRequestBody, } from './hooks/useUpdateZeroDayConfigEnabledMutation';
289
+ export { updateZeroDayConfigEnabled, useUpdateZeroDayConfigEnabledMutation, } from './hooks/useUpdateZeroDayConfigEnabledMutation';
274
290
  export type { UpsertEolAutoTicketConfigErrorResponse, UpsertEolAutoTicketConfigMutationPathParams, UpsertEolAutoTicketConfigOkResponse, UpsertEolAutoTicketConfigProps, UpsertEolAutoTicketConfigRequestBody, } from './hooks/useUpsertEolAutoTicketConfigMutation';
275
291
  export { upsertEolAutoTicketConfig, useUpsertEolAutoTicketConfigMutation, } from './hooks/useUpsertEolAutoTicketConfigMutation';
276
292
  export type { ValidateIntegrationNameErrorResponse, ValidateIntegrationNameOkResponse, ValidateIntegrationNameProps, ValidateIntegrationNameQueryPathParams, ValidateIntegrationNameQueryQueryParams, } from './hooks/useValidateIntegrationNameQuery';
@@ -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';
@@ -101,6 +103,7 @@ export { getZeroDayExecutionAffectedTargets, useGetZeroDayExecutionAffectedTarge
101
103
  export { getZeroDayExecutionDetail, useGetZeroDayExecutionDetailQuery, } from './hooks/useGetZeroDayExecutionDetailQuery';
102
104
  export { getZeroDayExecutionSteps, useGetZeroDayExecutionStepsQuery, } from './hooks/useGetZeroDayExecutionStepsQuery';
103
105
  export { getZeroDayExecutions, useGetZeroDayExecutionsQuery, } from './hooks/useGetZeroDayExecutionsQuery';
106
+ export { getZeroDayExecutionsRerunStatus, useGetZeroDayExecutionsRerunStatusQuery, } from './hooks/useGetZeroDayExecutionsRerunStatusQuery';
104
107
  export { getZeroDayRerunStatus, useGetZeroDayRerunStatusQuery, } from './hooks/useGetZeroDayRerunStatusQuery';
105
108
  export { importLicenseFamilyConfig, useImportLicenseFamilyConfigMutation, } from './hooks/useImportLicenseFamilyConfigMutation';
106
109
  export { listAgentStatuses, useListAgentStatusesQuery } from './hooks/useListAgentStatusesQuery';
@@ -113,10 +116,13 @@ export { listRemediations, useListRemediationsQuery } from './hooks/useListRemed
113
116
  export { listRspmScanners, useListRspmScannersQuery } from './hooks/useListRspmScannersQuery';
114
117
  export { listScannerConfigurationIntegrations, useListScannerConfigurationIntegrationsQuery, } from './hooks/useListScannerConfigurationIntegrationsQuery';
115
118
  export { listScannerConfigurations, useListScannerConfigurationsQuery, } from './hooks/useListScannerConfigurationsQuery';
119
+ export { listTrustedPublishers, useListTrustedPublishersQuery, } from './hooks/useListTrustedPublishersQuery';
116
120
  export { postComplianceResultStatsEvaluationBreakdownArtifactType, usePostComplianceResultStatsEvaluationBreakdownArtifactTypeMutation, } from './hooks/usePostComplianceResultStatsEvaluationBreakdownArtifactTypeMutation';
117
121
  export { postComplianceResultStatsOverview, usePostComplianceResultStatsOverviewMutation, } from './hooks/usePostComplianceResultStatsOverviewMutation';
118
122
  export { remediateAffectedTarget, useRemediateAffectedTargetQuery, } from './hooks/useRemediateAffectedTargetQuery';
123
+ export { remediateZeroDayAffectedTarget, useRemediateZeroDayAffectedTargetMutation, } from './hooks/useRemediateZeroDayAffectedTargetMutation';
119
124
  export { rerunFailedZeroDayExecutions, useRerunFailedZeroDayExecutionsMutation, } from './hooks/useRerunFailedZeroDayExecutionsMutation';
125
+ export { rerunZeroDayExecutions, useRerunZeroDayExecutionsMutation, } from './hooks/useRerunZeroDayExecutionsMutation';
120
126
  export { resetLicenseFamilyConfig, useResetLicenseFamilyConfigMutation, } from './hooks/useResetLicenseFamilyConfigMutation';
121
127
  export { reviewExemption, useReviewExemptionMutation } from './hooks/useReviewExemptionMutation';
122
128
  export { saveAccountAiWorkflowConfig, useSaveAccountAiWorkflowConfigMutation, } from './hooks/useSaveAccountAiWorkflowConfigMutation';
@@ -134,5 +140,7 @@ export { updateExemption, useUpdateExemptionMutation } from './hooks/useUpdateEx
134
140
  export { updateIntegrationRspmConfig, useUpdateIntegrationRspmConfigMutation, } from './hooks/useUpdateIntegrationRspmConfigMutation';
135
141
  export { updateRemediationTracker, useUpdateRemediationTrackerMutation, } from './hooks/useUpdateRemediationTrackerMutation';
136
142
  export { updateScannerConfiguration, useUpdateScannerConfigurationMutation, } from './hooks/useUpdateScannerConfigurationMutation';
143
+ export { updateTrustedPublisher, useUpdateTrustedPublisherMutation, } from './hooks/useUpdateTrustedPublisherMutation';
144
+ export { updateZeroDayConfigEnabled, useUpdateZeroDayConfigEnabledMutation, } from './hooks/useUpdateZeroDayConfigEnabledMutation';
137
145
  export { upsertEolAutoTicketConfig, useUpsertEolAutoTicketConfigMutation, } from './hooks/useUpsertEolAutoTicketConfigMutation';
138
146
  export { useValidateIntegrationNameQuery, validateIntegrationName, } from './hooks/useValidateIntegrationNameQuery';
@@ -4,7 +4,7 @@ export interface AffectedTargetRemediationResponse {
4
4
  */
5
5
  base_branch?: string;
6
6
  /**
7
- * Error details when remediation failed
7
+ * Error details when remediation failed or its outcome is unknown
8
8
  */
9
9
  error_message?: string;
10
10
  /**
@@ -4,10 +4,6 @@ export interface InitiateRemediationAgentRequest {
4
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
5
  */
6
6
  additionalScanIds?: string[];
7
- /**
8
- * Whether a vulnerable package may be upgraded to a pre-release version. Defaults to false.
9
- */
10
- allowPreRelease?: boolean;
11
7
  /**
12
8
  * Optional. Set by a dispatched agent pipeline to the execution ssca-manager created for it (the execution_id input). When it matches the scan's active execution and the request's pipelineExecutionId matches the one recorded for it (if any), that execution is returned instead of a 409 conflict. Any other active execution for the scan still conflicts.
13
9
  */
@@ -9,7 +9,7 @@ export interface ZeroDayRerunStatusResponse {
9
9
  */
10
10
  cooldown_remaining_ms?: number;
11
11
  /**
12
- * Why Rerun is disabled. IN_FLIGHT, COOLDOWN, or NO_FAILURES. Omitted when rerun_enabled is true.
12
+ * Why Rerun is disabled. IN_FLIGHT, COOLDOWN, NO_FAILURES, or CONFIG_DISABLED (zero-day only). Omitted when rerun_enabled is true.
13
13
  *
14
14
  * @example "COOLDOWN"
15
15
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-ssca-manager-client",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
4
4
  "description": "Harness SSCA manager APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",