@harnessio/react-ssca-manager-client 0.86.0 → 0.86.2

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 (35) hide show
  1. package/dist/ssca-manager/src/services/hooks/useGetAccountAiWorkflowConfigQuery.d.ts +5 -0
  2. package/dist/ssca-manager/src/services/hooks/useGetAccountAiWorkflowConfigQuery.js +3 -0
  3. package/dist/ssca-manager/src/services/hooks/useGetAttestationDetailsQuery.d.ts +9 -2
  4. package/dist/ssca-manager/src/services/hooks/useGetAttestationDetailsQuery.js +2 -2
  5. package/dist/ssca-manager/src/services/hooks/useGetProjectAiWorkflowConfigQuery.d.ts +28 -0
  6. package/dist/ssca-manager/src/services/hooks/useGetProjectAiWorkflowConfigQuery.js +17 -0
  7. package/dist/ssca-manager/src/services/hooks/useSaveAccountAiWorkflowConfigMutation.d.ts +5 -0
  8. package/dist/ssca-manager/src/services/hooks/useSaveAccountAiWorkflowConfigMutation.js +3 -0
  9. package/dist/ssca-manager/src/services/hooks/useSaveProjectAiWorkflowConfigMutation.d.ts +31 -0
  10. package/dist/ssca-manager/src/services/hooks/useSaveProjectAiWorkflowConfigMutation.js +17 -0
  11. package/dist/ssca-manager/src/services/index.d.ts +11 -3
  12. package/dist/ssca-manager/src/services/index.js +2 -0
  13. package/dist/ssca-manager/src/services/schemas/{TriageFindingDetail.d.ts → AgentExecutionDetail.d.ts} +12 -2
  14. package/dist/ssca-manager/src/services/schemas/AgentExecutionSummary.d.ts +32 -0
  15. package/dist/ssca-manager/src/services/schemas/AiWorkflowExecutionDetailResponse.d.ts +2 -2
  16. package/dist/ssca-manager/src/services/schemas/AiWorkflowExecutionStatusEnum.d.ts +2 -2
  17. package/dist/ssca-manager/src/services/schemas/AiWorkflowExecutionSummary.d.ts +3 -3
  18. package/dist/ssca-manager/src/services/schemas/AiWorkflowTypeEnum.d.ts +1 -1
  19. package/dist/ssca-manager/src/services/schemas/AttestationEnforcementRequest.d.ts +10 -0
  20. package/dist/ssca-manager/src/services/schemas/CreateIntegrationRequest.d.ts +4 -0
  21. package/dist/ssca-manager/src/services/schemas/CreateScannerConfigurationRequest.d.ts +7 -0
  22. package/dist/ssca-manager/src/services/schemas/CreateScannerConfigurationRequest.js +4 -0
  23. package/dist/ssca-manager/src/services/schemas/Integration.d.ts +4 -0
  24. package/dist/ssca-manager/src/services/schemas/SbomMetadataV2.d.ts +4 -0
  25. package/dist/ssca-manager/src/services/schemas/ScannerConfiguration.d.ts +13 -0
  26. package/dist/ssca-manager/src/services/schemas/ScannerConfiguration.js +4 -0
  27. package/dist/ssca-manager/src/services/schemas/ScannerConfigurationListResponse.d.ts +4 -0
  28. package/dist/ssca-manager/src/services/schemas/ScannerConfigurationListResponse.js +1 -0
  29. package/dist/ssca-manager/src/services/schemas/UpdateIntegrationRspmRequest.d.ts +4 -0
  30. package/dist/ssca-manager/src/services/schemas/UpdateScannerConfigurationRequest.d.ts +6 -0
  31. package/dist/ssca-manager/src/services/schemas/UpdateScannerConfigurationRequest.js +4 -0
  32. package/package.json +1 -1
  33. package/dist/ssca-manager/src/services/schemas/TriageFindingSummary.d.ts +0 -22
  34. /package/dist/ssca-manager/src/services/schemas/{TriageFindingDetail.js → AgentExecutionDetail.js} +0 -0
  35. /package/dist/ssca-manager/src/services/schemas/{TriageFindingSummary.js → AgentExecutionSummary.js} +0 -0
@@ -5,6 +5,8 @@ import type { ResponseWithPagination } from '../helpers';
5
5
  import { FetcherOptions } from '../../../../fetcher/index.js';
6
6
  export interface GetAccountAiWorkflowConfigQueryQueryParams {
7
7
  ai_workflow_type?: AiWorkflowTypeEnum;
8
+ org?: string;
9
+ project?: string;
8
10
  }
9
11
  export interface GetAccountAiWorkflowConfigQueryHeaderParams {
10
12
  'Harness-Account': string;
@@ -17,5 +19,8 @@ export interface GetAccountAiWorkflowConfigProps extends Omit<FetcherOptions<Get
17
19
  export declare function getAccountAiWorkflowConfig(props: GetAccountAiWorkflowConfigProps): Promise<GetAccountAiWorkflowConfigOkResponse>;
18
20
  /**
19
21
  * Get account-level AI workflow configuration.
22
+ * For SAST remediation, validation pipelines (scan/build) are project-scoped only —
23
+ * configure them via the project AI workflow config API.
24
+ *
20
25
  */
21
26
  export declare function useGetAccountAiWorkflowConfigQuery(props: GetAccountAiWorkflowConfigProps, options?: Omit<UseQueryOptions<GetAccountAiWorkflowConfigOkResponse, GetAccountAiWorkflowConfigErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetAccountAiWorkflowConfigOkResponse, unknown>;
@@ -8,6 +8,9 @@ export function getAccountAiWorkflowConfig(props) {
8
8
  }
9
9
  /**
10
10
  * Get account-level AI workflow configuration.
11
+ * For SAST remediation, validation pipelines (scan/build) are project-scoped only —
12
+ * configure them via the project AI workflow config API.
13
+ *
11
14
  */
12
15
  export function useGetAccountAiWorkflowConfigQuery(props, options) {
13
16
  return useQuery(['getAccountAIWorkflowConfig', props.queryParams], ({ signal }) => getAccountAiWorkflowConfig(Object.assign(Object.assign({}, props), { signal })), options);
@@ -7,15 +7,22 @@ export interface GetAttestationDetailsQueryPathParams {
7
7
  project: string;
8
8
  attestation: string;
9
9
  }
10
+ export interface GetAttestationDetailsQueryQueryParams {
11
+ /**
12
+ * @default "attestation_id"
13
+ */
14
+ identifier_type?: 'attestation_id' | 'gitoid_sha256';
15
+ }
10
16
  export interface GetAttestationDetailsQueryHeaderParams {
11
17
  'Harness-Account': string;
12
18
  }
13
19
  export type GetAttestationDetailsOkResponse = ResponseWithPagination<AttestationDetailsResponseBodyResponse>;
14
20
  export type GetAttestationDetailsErrorResponse = unknown;
15
- export interface GetAttestationDetailsProps extends GetAttestationDetailsQueryPathParams, Omit<FetcherOptions<unknown, unknown, GetAttestationDetailsQueryHeaderParams>, 'url'> {
21
+ export interface GetAttestationDetailsProps extends GetAttestationDetailsQueryPathParams, Omit<FetcherOptions<GetAttestationDetailsQueryQueryParams, unknown, GetAttestationDetailsQueryHeaderParams>, 'url'> {
22
+ queryParams: GetAttestationDetailsQueryQueryParams;
16
23
  }
17
24
  export declare function getAttestationDetails(props: GetAttestationDetailsProps): Promise<GetAttestationDetailsOkResponse>;
18
25
  /**
19
- * Returns stored attestation metadata and subjects for a single attestation by document id.
26
+ * Returns stored attestation metadata and subjects for a single attestation, looked up by document id or by gitoid SHA-256 (see identifier_type).
20
27
  */
21
28
  export declare function useGetAttestationDetailsQuery(props: GetAttestationDetailsProps, options?: Omit<UseQueryOptions<GetAttestationDetailsOkResponse, GetAttestationDetailsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetAttestationDetailsOkResponse, unknown>;
@@ -7,8 +7,8 @@ export function getAttestationDetails(props) {
7
7
  return fetcher(Object.assign({ url: `/v2/orgs/${props.org}/projects/${props.project}/attestations/${props.attestation}/details`, method: 'GET' }, props));
8
8
  }
9
9
  /**
10
- * Returns stored attestation metadata and subjects for a single attestation by document id.
10
+ * Returns stored attestation metadata and subjects for a single attestation, looked up by document id or by gitoid SHA-256 (see identifier_type).
11
11
  */
12
12
  export function useGetAttestationDetailsQuery(props, options) {
13
- return useQuery(['getAttestationDetails', props.org, props.project, props.attestation], ({ signal }) => getAttestationDetails(Object.assign(Object.assign({}, props), { signal })), options);
13
+ return useQuery(['getAttestationDetails', props.org, props.project, props.attestation, props.queryParams], ({ signal }) => getAttestationDetails(Object.assign(Object.assign({}, props), { signal })), options);
14
14
  }
@@ -0,0 +1,28 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { AiWorkflowConfigYamlResponse } from '../schemas/AiWorkflowConfigYamlResponse';
3
+ import type { AiWorkflowTypeEnum } from '../schemas/AiWorkflowTypeEnum';
4
+ import type { ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
+ export interface GetProjectAiWorkflowConfigQueryPathParams {
7
+ org: string;
8
+ project: string;
9
+ }
10
+ export interface GetProjectAiWorkflowConfigQueryQueryParams {
11
+ ai_workflow_type?: AiWorkflowTypeEnum;
12
+ }
13
+ export interface GetProjectAiWorkflowConfigQueryHeaderParams {
14
+ 'Harness-Account': string;
15
+ }
16
+ export type GetProjectAiWorkflowConfigOkResponse = ResponseWithPagination<AiWorkflowConfigYamlResponse>;
17
+ export type GetProjectAiWorkflowConfigErrorResponse = unknown;
18
+ export interface GetProjectAiWorkflowConfigProps extends GetProjectAiWorkflowConfigQueryPathParams, Omit<FetcherOptions<GetProjectAiWorkflowConfigQueryQueryParams, unknown, GetProjectAiWorkflowConfigQueryHeaderParams>, 'url'> {
19
+ queryParams: GetProjectAiWorkflowConfigQueryQueryParams;
20
+ }
21
+ export declare function getProjectAiWorkflowConfig(props: GetProjectAiWorkflowConfigProps): Promise<GetProjectAiWorkflowConfigOkResponse>;
22
+ /**
23
+ * Get the effective AI workflow configuration for a project.
24
+ * Returns account defaults overlaid with any project-scoped overrides.
25
+ * For SAST remediation, validation pipelines (scan/build) are set on this project config.
26
+ *
27
+ */
28
+ export declare function useGetProjectAiWorkflowConfigQuery(props: GetProjectAiWorkflowConfigProps, options?: Omit<UseQueryOptions<GetProjectAiWorkflowConfigOkResponse, GetProjectAiWorkflowConfigErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetProjectAiWorkflowConfigOkResponse, unknown>;
@@ -0,0 +1,17 @@
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 getProjectAiWorkflowConfig(props) {
7
+ return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/ai-workflow-config`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Get the effective AI workflow configuration for a project.
11
+ * Returns account defaults overlaid with any project-scoped overrides.
12
+ * For SAST remediation, validation pipelines (scan/build) are set on this project config.
13
+ *
14
+ */
15
+ export function useGetProjectAiWorkflowConfigQuery(props, options) {
16
+ return useQuery(['getProjectAIWorkflowConfig', props.org, props.project, props.queryParams], ({ signal }) => getProjectAiWorkflowConfig(Object.assign(Object.assign({}, props), { signal })), options);
17
+ }
@@ -6,6 +6,8 @@ import type { ResponseWithPagination } from '../helpers';
6
6
  import { FetcherOptions } from '../../../../fetcher/index.js';
7
7
  export interface SaveAccountAiWorkflowConfigMutationQueryParams {
8
8
  ai_workflow_type?: AiWorkflowTypeEnum;
9
+ org?: string;
10
+ project?: string;
9
11
  }
10
12
  export interface SaveAccountAiWorkflowConfigMutationHeaderParams {
11
13
  'Harness-Account': string;
@@ -20,5 +22,8 @@ export interface SaveAccountAiWorkflowConfigProps extends Omit<FetcherOptions<Sa
20
22
  export declare function saveAccountAiWorkflowConfig(props: SaveAccountAiWorkflowConfigProps): Promise<SaveAccountAiWorkflowConfigOkResponse>;
21
23
  /**
22
24
  * Create or update account-level AI workflow configuration.
25
+ * For SAST remediation, validation pipeline fields must not be set here —
26
+ * save them on the project-scoped config instead.
27
+ *
23
28
  */
24
29
  export declare function useSaveAccountAiWorkflowConfigMutation(options?: Omit<UseMutationOptions<SaveAccountAiWorkflowConfigOkResponse, SaveAccountAiWorkflowConfigErrorResponse, SaveAccountAiWorkflowConfigProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<SaveAccountAiWorkflowConfigOkResponse, unknown, SaveAccountAiWorkflowConfigProps, unknown>;
@@ -8,6 +8,9 @@ export function saveAccountAiWorkflowConfig(props) {
8
8
  }
9
9
  /**
10
10
  * Create or update account-level AI workflow configuration.
11
+ * For SAST remediation, validation pipeline fields must not be set here —
12
+ * save them on the project-scoped config instead.
13
+ *
11
14
  */
12
15
  export function useSaveAccountAiWorkflowConfigMutation(options) {
13
16
  return useMutation((mutateProps) => saveAccountAiWorkflowConfig(mutateProps), options);
@@ -0,0 +1,31 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { AiWorkflowConfigYamlResponse } from '../schemas/AiWorkflowConfigYamlResponse';
3
+ import type { AiWorkflowConfigYamlRequest } from '../schemas/AiWorkflowConfigYamlRequest';
4
+ import type { AiWorkflowTypeEnum } from '../schemas/AiWorkflowTypeEnum';
5
+ import type { ResponseWithPagination } from '../helpers';
6
+ import { FetcherOptions } from '../../../../fetcher/index.js';
7
+ export interface SaveProjectAiWorkflowConfigMutationPathParams {
8
+ org: string;
9
+ project: string;
10
+ }
11
+ export interface SaveProjectAiWorkflowConfigMutationQueryParams {
12
+ ai_workflow_type?: AiWorkflowTypeEnum;
13
+ }
14
+ export interface SaveProjectAiWorkflowConfigMutationHeaderParams {
15
+ 'Harness-Account': string;
16
+ }
17
+ export type SaveProjectAiWorkflowConfigRequestBody = AiWorkflowConfigYamlRequest;
18
+ export type SaveProjectAiWorkflowConfigOkResponse = ResponseWithPagination<AiWorkflowConfigYamlResponse>;
19
+ export type SaveProjectAiWorkflowConfigErrorResponse = unknown;
20
+ export interface SaveProjectAiWorkflowConfigProps extends SaveProjectAiWorkflowConfigMutationPathParams, Omit<FetcherOptions<SaveProjectAiWorkflowConfigMutationQueryParams, SaveProjectAiWorkflowConfigRequestBody, SaveProjectAiWorkflowConfigMutationHeaderParams>, 'url'> {
21
+ queryParams: SaveProjectAiWorkflowConfigMutationQueryParams;
22
+ body: SaveProjectAiWorkflowConfigRequestBody;
23
+ }
24
+ export declare function saveProjectAiWorkflowConfig(props: SaveProjectAiWorkflowConfigProps): Promise<SaveProjectAiWorkflowConfigOkResponse>;
25
+ /**
26
+ * Create or update project-scoped AI workflow configuration overrides.
27
+ * Unset fields inherit from the account config at trigger/read time.
28
+ * For SAST remediation, validation pipelines (scan/build) belong here.
29
+ *
30
+ */
31
+ export declare function useSaveProjectAiWorkflowConfigMutation(options?: Omit<UseMutationOptions<SaveProjectAiWorkflowConfigOkResponse, SaveProjectAiWorkflowConfigErrorResponse, SaveProjectAiWorkflowConfigProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<SaveProjectAiWorkflowConfigOkResponse, unknown, SaveProjectAiWorkflowConfigProps, unknown>;
@@ -0,0 +1,17 @@
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 saveProjectAiWorkflowConfig(props) {
7
+ return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/ai-workflow-config`, method: 'PUT' }, props));
8
+ }
9
+ /**
10
+ * Create or update project-scoped AI workflow configuration overrides.
11
+ * Unset fields inherit from the account config at trigger/read time.
12
+ * For SAST remediation, validation pipelines (scan/build) belong here.
13
+ *
14
+ */
15
+ export function useSaveProjectAiWorkflowConfigMutation(options) {
16
+ return useMutation((mutateProps) => saveProjectAiWorkflowConfig(mutateProps), options);
17
+ }
@@ -87,7 +87,7 @@ export type { GetArtifactV2OverviewErrorResponse, GetArtifactV2OverviewOkRespons
87
87
  export { getArtifactV2Overview, useGetArtifactV2OverviewQuery, } from './hooks/useGetArtifactV2OverviewQuery';
88
88
  export type { GetAttestationAiSummaryErrorResponse, GetAttestationAiSummaryOkResponse, GetAttestationAiSummaryProps, GetAttestationAiSummaryQueryPathParams, GetAttestationAiSummaryRequestBody, } from './hooks/useGetAttestationAiSummaryQuery';
89
89
  export { getAttestationAiSummary, useGetAttestationAiSummaryQuery, } from './hooks/useGetAttestationAiSummaryQuery';
90
- export type { GetAttestationDetailsErrorResponse, GetAttestationDetailsOkResponse, GetAttestationDetailsProps, GetAttestationDetailsQueryPathParams, } from './hooks/useGetAttestationDetailsQuery';
90
+ export type { GetAttestationDetailsErrorResponse, GetAttestationDetailsOkResponse, GetAttestationDetailsProps, GetAttestationDetailsQueryPathParams, GetAttestationDetailsQueryQueryParams, } from './hooks/useGetAttestationDetailsQuery';
91
91
  export { getAttestationDetails, useGetAttestationDetailsQuery, } from './hooks/useGetAttestationDetailsQuery';
92
92
  export type { GetAttestationSummaryBySourceErrorResponse, GetAttestationSummaryBySourceMutationQueryParams, GetAttestationSummaryBySourceOkResponse, GetAttestationSummaryBySourceProps, GetAttestationSummaryBySourceRequestBody, } from './hooks/useGetAttestationSummaryBySourceMutation';
93
93
  export { getAttestationSummaryBySource, useGetAttestationSummaryBySourceMutation, } from './hooks/useGetAttestationSummaryBySourceMutation';
@@ -161,6 +161,8 @@ export type { GetPipelineArtifactListErrorResponse, GetPipelineArtifactListOkRes
161
161
  export { getPipelineArtifactList, useGetPipelineArtifactListQuery, } from './hooks/useGetPipelineArtifactListQuery';
162
162
  export type { GetPolicyViolationsErrorResponse, GetPolicyViolationsOkResponse, GetPolicyViolationsProps, GetPolicyViolationsQueryPathParams, GetPolicyViolationsQueryQueryParams, } from './hooks/useGetPolicyViolationsQuery';
163
163
  export { getPolicyViolations, useGetPolicyViolationsQuery, } from './hooks/useGetPolicyViolationsQuery';
164
+ export type { GetProjectAiWorkflowConfigErrorResponse, GetProjectAiWorkflowConfigOkResponse, GetProjectAiWorkflowConfigProps, GetProjectAiWorkflowConfigQueryPathParams, GetProjectAiWorkflowConfigQueryQueryParams, } from './hooks/useGetProjectAiWorkflowConfigQuery';
165
+ export { getProjectAiWorkflowConfig, useGetProjectAiWorkflowConfigQuery, } from './hooks/useGetProjectAiWorkflowConfigQuery';
164
166
  export type { GetProvenanceErrorResponse, GetProvenanceOkResponse, GetProvenanceProps, GetProvenanceQueryPathParams, } from './hooks/useGetProvenanceQuery';
165
167
  export { getProvenance, useGetProvenanceQuery } from './hooks/useGetProvenanceQuery';
166
168
  export type { GetRemediationDetailsErrorResponse, GetRemediationDetailsOkResponse, GetRemediationDetailsProps, GetRemediationDetailsQueryPathParams, } from './hooks/useGetRemediationDetailsQuery';
@@ -205,6 +207,8 @@ export type { SaveConnectorConfigErrorResponse, SaveConnectorConfigOkResponse, S
205
207
  export { saveConnectorConfig, useSaveConnectorConfigMutation, } from './hooks/useSaveConnectorConfigMutation';
206
208
  export type { SaveOssScoringCapConfigErrorResponse, SaveOssScoringCapConfigOkResponse, SaveOssScoringCapConfigProps, SaveOssScoringCapConfigRequestBody, } from './hooks/useSaveOssScoringCapConfigQuery';
207
209
  export { saveOssScoringCapConfig, useSaveOssScoringCapConfigQuery, } from './hooks/useSaveOssScoringCapConfigQuery';
210
+ export type { SaveProjectAiWorkflowConfigErrorResponse, SaveProjectAiWorkflowConfigMutationPathParams, SaveProjectAiWorkflowConfigMutationQueryParams, SaveProjectAiWorkflowConfigOkResponse, SaveProjectAiWorkflowConfigProps, SaveProjectAiWorkflowConfigRequestBody, } from './hooks/useSaveProjectAiWorkflowConfigMutation';
211
+ export { saveProjectAiWorkflowConfig, useSaveProjectAiWorkflowConfigMutation, } from './hooks/useSaveProjectAiWorkflowConfigMutation';
208
212
  export type { SetBaselineForArtifactV2ErrorResponse, SetBaselineForArtifactV2MutationPathParams, SetBaselineForArtifactV2OkResponse, SetBaselineForArtifactV2Props, SetBaselineForArtifactV2RequestBody, } from './hooks/useSetBaselineForArtifactV2Mutation';
209
213
  export { setBaselineForArtifactV2, useSetBaselineForArtifactV2Mutation, } from './hooks/useSetBaselineForArtifactV2Mutation';
210
214
  export type { SscaLicenseUsageErrorResponse, SscaLicenseUsageOkResponse, SscaLicenseUsageProps, SscaLicenseUsageQueryQueryParams, } from './hooks/useSscaLicenseUsageQuery';
@@ -377,6 +381,8 @@ export type { VersionResponseBodyResponse } from './responses/VersionResponseBod
377
381
  export type { ActivityDetails } from './schemas/ActivityDetails';
378
382
  export type { AffectedArtifactInfo } from './schemas/AffectedArtifactInfo';
379
383
  export type { AffectedTargetRemediationResponse } from './schemas/AffectedTargetRemediationResponse';
384
+ export type { AgentExecutionDetail } from './schemas/AgentExecutionDetail';
385
+ export type { AgentExecutionSummary } from './schemas/AgentExecutionSummary';
380
386
  export type { AgentToggleRequest } from './schemas/AgentToggleRequest';
381
387
  export type { AgentToggleStatus } from './schemas/AgentToggleStatus';
382
388
  export type { AiBomComponentViewRequestBody } from './schemas/AiBomComponentViewRequestBody';
@@ -560,6 +566,7 @@ export type { CooldownViolationsResponseBody } from './schemas/CooldownViolation
560
566
  export type { CreateComplianceResult } from './schemas/CreateComplianceResult';
561
567
  export type { CreateComplianceResultV2 } from './schemas/CreateComplianceResultV2';
562
568
  export type { CreateIntegrationRequest } from './schemas/CreateIntegrationRequest';
569
+ export type { CreateScannerConfigurationRequest } from './schemas/CreateScannerConfigurationRequest';
563
570
  export type { CreateTicketRequest } from './schemas/CreateTicketRequest';
564
571
  export type { CreateTicketResponse } from './schemas/CreateTicketResponse';
565
572
  export type { CreatedBy } from './schemas/CreatedBy';
@@ -751,6 +758,8 @@ export type { SbomScoreRequest } from './schemas/SbomScoreRequest';
751
758
  export type { SbomScoreSubScores } from './schemas/SbomScoreSubScores';
752
759
  export type { SbomScorecardRequestBody } from './schemas/SbomScorecardRequestBody';
753
760
  export type { SbomScorecardResponseBody } from './schemas/SbomScorecardResponseBody';
761
+ export type { ScannerConfiguration } from './schemas/ScannerConfiguration';
762
+ export type { ScannerConfigurationListResponse } from './schemas/ScannerConfigurationListResponse';
754
763
  export type { Scorecard } from './schemas/Scorecard';
755
764
  export type { ScorecardInfo } from './schemas/ScorecardInfo';
756
765
  export type { ScorecardV2 } from './schemas/ScorecardV2';
@@ -776,13 +785,12 @@ export type { TargetVersionVulnerability } from './schemas/TargetVersionVulnerab
776
785
  export type { TicketInfo } from './schemas/TicketInfo';
777
786
  export type { TokenIssueResponseBody } from './schemas/TokenIssueResponseBody';
778
787
  export type { TokenIssueTokenResponseBody } from './schemas/TokenIssueTokenResponseBody';
779
- export type { TriageFindingDetail } from './schemas/TriageFindingDetail';
780
- export type { TriageFindingSummary } from './schemas/TriageFindingSummary';
781
788
  export type { TriggerType } from './schemas/TriggerType';
782
789
  export type { UpdateAiWorkflowExecutionStatusRequest } from './schemas/UpdateAiWorkflowExecutionStatusRequest';
783
790
  export type { UpdateAiWorkflowExecutionStatusResponse } from './schemas/UpdateAiWorkflowExecutionStatusResponse';
784
791
  export type { UpdateIntegration } from './schemas/UpdateIntegration';
785
792
  export type { UpdateIntegrationRspmRequest } from './schemas/UpdateIntegrationRspmRequest';
793
+ export type { UpdateScannerConfigurationRequest } from './schemas/UpdateScannerConfigurationRequest';
786
794
  export type { VerificationActivity } from './schemas/VerificationActivity';
787
795
  export type { VerificationStatus } from './schemas/VerificationStatus';
788
796
  export type { VersionInfo } from './schemas/VersionInfo';
@@ -79,6 +79,7 @@ export { getOssScoringCapConfig, useGetOssScoringCapConfigQuery, } from './hooks
79
79
  export { getOverallSummary, useGetOverallSummaryQuery } from './hooks/useGetOverallSummaryQuery';
80
80
  export { getPipelineArtifactList, useGetPipelineArtifactListQuery, } from './hooks/useGetPipelineArtifactListQuery';
81
81
  export { getPolicyViolations, useGetPolicyViolationsQuery, } from './hooks/useGetPolicyViolationsQuery';
82
+ export { getProjectAiWorkflowConfig, useGetProjectAiWorkflowConfigQuery, } from './hooks/useGetProjectAiWorkflowConfigQuery';
82
83
  export { getProvenance, useGetProvenanceQuery } from './hooks/useGetProvenanceQuery';
83
84
  export { getRemediationDetails, useGetRemediationDetailsQuery, } from './hooks/useGetRemediationDetailsQuery';
84
85
  export { getRepoRulesEvaluationTrend, useGetRepoRulesEvaluationTrendQuery, } from './hooks/useGetRepoRulesEvaluationTrendQuery';
@@ -101,6 +102,7 @@ export { saveAccountAiWorkflowConfig, useSaveAccountAiWorkflowConfigMutation, }
101
102
  export { saveAutoPrConfig, useSaveAutoPrConfigMutation } from './hooks/useSaveAutoPrConfigMutation';
102
103
  export { saveConnectorConfig, useSaveConnectorConfigMutation, } from './hooks/useSaveConnectorConfigMutation';
103
104
  export { saveOssScoringCapConfig, useSaveOssScoringCapConfigQuery, } from './hooks/useSaveOssScoringCapConfigQuery';
105
+ export { saveProjectAiWorkflowConfig, useSaveProjectAiWorkflowConfigMutation, } from './hooks/useSaveProjectAiWorkflowConfigMutation';
104
106
  export { setBaselineForArtifactV2, useSetBaselineForArtifactV2Mutation, } from './hooks/useSetBaselineForArtifactV2Mutation';
105
107
  export { sscaLicenseUsage, useSscaLicenseUsageQuery } from './hooks/useSscaLicenseUsageQuery';
106
108
  export { toggleAgentStatus, useToggleAgentStatusMutation, } from './hooks/useToggleAgentStatusMutation';
@@ -1,12 +1,22 @@
1
1
  import type { AiWorkflowStepExecution } from '../schemas/AiWorkflowStepExecution';
2
2
  /**
3
- * FP Triage-specific fields in the execution detail
3
+ * Shared scan-completion agent payload for FP Triage and SAST Remediation execution detail. Zero-day / vulnerability agents use vulnerability_finding instead.
4
4
  */
5
- export interface TriageFindingDetail {
5
+ export interface AgentExecutionDetail {
6
6
  agent_results?: {
7
7
  [key: string]: any;
8
8
  };
9
+ /**
10
+ * FP Triage only — count of false positives identified (null for remediation)
11
+ */
9
12
  fps_identified_count?: number;
13
+ /**
14
+ * Issue Types the agent ran with (config scanTypes stamped at trigger time), e.g. SAST, SCA, SECRET. UI may render as a comma-separated column. Empty/omitted for older executions that predate persistence of this snapshot.
15
+ */
16
+ issue_types?: string[];
17
+ /**
18
+ * FP Triage only — count of occurrences triaged (null for remediation)
19
+ */
10
20
  occurrence_triaged_count?: number;
11
21
  originating_org_identifier?: string;
12
22
  originating_project_identifier?: string;
@@ -0,0 +1,32 @@
1
+ /**
2
+ * Shared scan-completion agent payload for FP Triage and SAST Remediation execution summaries. Zero-day / vulnerability agents use vulnerability_finding instead.
3
+ */
4
+ export interface AgentExecutionSummary {
5
+ /**
6
+ * FP Triage only — count of false positives identified (null for remediation)
7
+ */
8
+ fps_identified_count?: number;
9
+ /**
10
+ * Issue Types the agent ran with (config scanTypes stamped at trigger time), e.g. SAST, SCA, SECRET. UI may render as a comma-separated column. Empty/omitted for older executions that predate persistence of this snapshot.
11
+ */
12
+ issue_types?: string[];
13
+ /**
14
+ * FP Triage only — count of occurrences triaged (null for remediation)
15
+ */
16
+ occurrence_triaged_count?: number;
17
+ originating_org_identifier?: string;
18
+ originating_project_identifier?: string;
19
+ scan_id?: string;
20
+ /**
21
+ * Scanner/product name that produced the originating scan (e.g. Bandit, Aqua Trivy)
22
+ */
23
+ scan_tool?: string;
24
+ /**
25
+ * Scan subproduct that produced the originating scan (pairs with scan_tool, e.g. iac, container)
26
+ */
27
+ subproduct?: string;
28
+ target_id?: string;
29
+ target_name?: string;
30
+ triggering_pipeline_execution_id?: string;
31
+ triggering_pipeline_id?: string;
32
+ }
@@ -1,11 +1,12 @@
1
+ import type { AgentExecutionDetail } from '../schemas/AgentExecutionDetail';
1
2
  import type { AiWorkflowTypeEnum } from '../schemas/AiWorkflowTypeEnum';
2
3
  import type { AiWorkflowExecutionStatusEnum } from '../schemas/AiWorkflowExecutionStatusEnum';
3
- import type { TriageFindingDetail } from '../schemas/TriageFindingDetail';
4
4
  import type { VulnerabilityFindingDetail } from '../schemas/VulnerabilityFindingDetail';
5
5
  /**
6
6
  * Execution detail with type-discriminated nested payload.
7
7
  */
8
8
  export interface AiWorkflowExecutionDetailResponse {
9
+ agent_execution?: AgentExecutionDetail;
9
10
  ai_workflow_type?: AiWorkflowTypeEnum;
10
11
  /**
11
12
  * @format int64
@@ -17,7 +18,6 @@ export interface AiWorkflowExecutionDetailResponse {
17
18
  pipeline_execution_id?: string;
18
19
  run_number?: number;
19
20
  status?: AiWorkflowExecutionStatusEnum;
20
- triage_finding?: TriageFindingDetail;
21
21
  trigger_type?: 'Manual' | 'Scan-Completion' | 'Zero-Day';
22
22
  /**
23
23
  * @format int64
@@ -1,4 +1,4 @@
1
1
  /**
2
- * Status of an AI workflow execution
2
+ * Status of an AI workflow execution. QUEUED = waiting (e.g. SAST remediation waiting for FP triage when onlyTruePositive is set).
3
3
  */
4
- export type AiWorkflowExecutionStatusEnum = 'COMPLETED' | 'FAILED' | 'PENDING' | 'RUNNING' | 'SKIPPED';
4
+ export type AiWorkflowExecutionStatusEnum = 'COMPLETED' | 'FAILED' | 'PENDING' | 'QUEUED' | 'RUNNING' | 'SKIPPED';
@@ -1,11 +1,12 @@
1
+ import type { AgentExecutionSummary } from '../schemas/AgentExecutionSummary';
1
2
  import type { AiWorkflowTypeEnum } from '../schemas/AiWorkflowTypeEnum';
2
3
  import type { AiWorkflowExecutionStatusEnum } from '../schemas/AiWorkflowExecutionStatusEnum';
3
- import type { TriageFindingSummary } from '../schemas/TriageFindingSummary';
4
4
  import type { VulnerabilityFindingSummary } from '../schemas/VulnerabilityFindingSummary';
5
5
  /**
6
- * Execution summary with type-discriminated nested payload. Branch on ai_workflow_type: VULNERABILITY/ZERO_DAY -> vulnerability_finding; FP_TRIAGE -> triage_finding.
6
+ * Execution summary with type-discriminated nested payload. Branch on ai_workflow_type: VULNERABILITY/ZERO_DAY -> vulnerability_finding; FP_TRIAGE/SAST_REMEDIATION -> agent_execution.
7
7
  */
8
8
  export interface AiWorkflowExecutionSummary {
9
+ agent_execution?: AgentExecutionSummary;
9
10
  ai_workflow_type?: AiWorkflowTypeEnum;
10
11
  /**
11
12
  * @format int64
@@ -21,7 +22,6 @@ export interface AiWorkflowExecutionSummary {
21
22
  */
22
23
  run_number?: number;
23
24
  status?: AiWorkflowExecutionStatusEnum;
24
- triage_finding?: TriageFindingSummary;
25
25
  trigger_type?: 'Manual' | 'Scan-Completion' | 'Zero-Day';
26
26
  /**
27
27
  * @format int64
@@ -2,4 +2,4 @@
2
2
  * Type of AI workflow
3
3
  * @example "vulnerability"
4
4
  */
5
- export type AiWorkflowTypeEnum = 'fp_triage' | 'vulnerability' | 'zero_day';
5
+ export type AiWorkflowTypeEnum = 'fp_triage' | 'sast_remediation' | 'vulnerability' | 'zero_day';
@@ -5,6 +5,11 @@ export interface AttestationEnforcementRequest {
5
5
  */
6
6
  artifact_id: string;
7
7
  execution_context: ExecutionDetail;
8
+ /**
9
+ * When verification_method is keyless — harness for Harness Fulcio/OIDC, non-harness for external keyless.
10
+ *
11
+ */
12
+ keyless_type?: string;
8
13
  /**
9
14
  * OPA policy set references to evaluate.
10
15
  */
@@ -13,4 +18,9 @@ export interface AttestationEnforcementRequest {
13
18
  * Collated attestation subject names to be evaluated.
14
19
  */
15
20
  subjects: string[];
21
+ /**
22
+ * How attestation signatures were verified — keyless, keybased, or secret-manager. Omitted when signature verification was skipped.
23
+ *
24
+ */
25
+ verification_method?: 'keybased' | 'keyless' | 'secret-manager';
16
26
  }
@@ -1,6 +1,10 @@
1
1
  import type { InfraConfigDto } from '../schemas/InfraConfigDto';
2
2
  import type { IntegrationType } from '../schemas/IntegrationType';
3
3
  export interface CreateIntegrationRequest {
4
+ /**
5
+ * When true, STO scans fail on critical findings.
6
+ */
7
+ block_on_critical_findings?: boolean;
4
8
  connector_id?: string;
5
9
  /**
6
10
  * Cron expression for scan frequency. Defaults to daily if not provided.
@@ -0,0 +1,7 @@
1
+ export interface CreateScannerConfigurationRequest {
2
+ config?: {
3
+ [key: string]: string;
4
+ };
5
+ name: string;
6
+ scanner_id: string;
7
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -1,5 +1,9 @@
1
1
  import type { InfraConfigDto } from '../schemas/InfraConfigDto';
2
2
  export interface Integration {
3
+ /**
4
+ * When true, STO scans fail on critical findings.
5
+ */
6
+ block_on_critical_findings?: boolean;
3
7
  connector_id?: string;
4
8
  /**
5
9
  * Cron expression for scan frequency
@@ -9,6 +9,10 @@ export interface SbomMetadataV2 {
9
9
  */
10
10
  format: string;
11
11
  name: string;
12
+ /**
13
+ * Whether the SBOM was generated by the plugin or ingested from a pre-existing file
14
+ */
15
+ sbom_orchestration_mode?: 'generation' | 'ingestion';
12
16
  sbom_version?: string;
13
17
  /**
14
18
  * @example "synk"
@@ -0,0 +1,13 @@
1
+ export interface ScannerConfiguration {
2
+ config?: {
3
+ [key: string]: string;
4
+ };
5
+ created_by?: string;
6
+ id?: string;
7
+ /**
8
+ * @format int64
9
+ */
10
+ last_used_at?: number | null;
11
+ name?: string;
12
+ scanner_id?: string;
13
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -0,0 +1,4 @@
1
+ import type { ScannerConfiguration } from '../schemas/ScannerConfiguration';
2
+ export interface ScannerConfigurationListResponse {
3
+ items: ScannerConfiguration[];
4
+ }
@@ -3,6 +3,10 @@ import type { InfraConfigDto } from '../schemas/InfraConfigDto';
3
3
  * Partial update of RSPM scan configuration on an existing integration. Only supplied fields are updated; `type` and `connector_id` are immutable after create.
4
4
  */
5
5
  export interface UpdateIntegrationRspmRequest {
6
+ /**
7
+ * When true, STO scans fail on critical findings. Omit to leave unchanged.
8
+ */
9
+ block_on_critical_findings?: boolean | null;
6
10
  /**
7
11
  * Cron expression for scan frequency.
8
12
  */
@@ -0,0 +1,6 @@
1
+ export interface UpdateScannerConfigurationRequest {
2
+ config?: {
3
+ [key: string]: string;
4
+ };
5
+ name?: string;
6
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-ssca-manager-client",
3
- "version": "0.86.0",
3
+ "version": "0.86.2",
4
4
  "description": "Harness SSCA manager APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",
@@ -1,22 +0,0 @@
1
- /**
2
- * FP Triage-specific fields in the execution summary
3
- */
4
- export interface TriageFindingSummary {
5
- fps_identified_count?: number;
6
- occurrence_triaged_count?: number;
7
- originating_org_identifier?: string;
8
- originating_project_identifier?: string;
9
- scan_id?: string;
10
- /**
11
- * Scanner/product name that produced the originating scan (e.g. Bandit, Aqua Trivy)
12
- */
13
- scan_tool?: string;
14
- /**
15
- * Scan subproduct that produced the originating scan (pairs with scan_tool, e.g. iac, container)
16
- */
17
- subproduct?: string;
18
- target_id?: string;
19
- target_name?: string;
20
- triggering_pipeline_execution_id?: string;
21
- triggering_pipeline_id?: string;
22
- }