@harnessio/react-ssca-manager-client 0.86.1 → 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 (22) hide show
  1. package/dist/ssca-manager/src/services/hooks/useGetAttestationDetailsQuery.d.ts +9 -2
  2. package/dist/ssca-manager/src/services/hooks/useGetAttestationDetailsQuery.js +2 -2
  3. package/dist/ssca-manager/src/services/index.d.ts +7 -3
  4. package/dist/ssca-manager/src/services/schemas/{TriageFindingDetail.d.ts → AgentExecutionDetail.d.ts} +12 -2
  5. package/dist/ssca-manager/src/services/schemas/AgentExecutionSummary.d.ts +32 -0
  6. package/dist/ssca-manager/src/services/schemas/AiWorkflowExecutionDetailResponse.d.ts +2 -2
  7. package/dist/ssca-manager/src/services/schemas/AiWorkflowExecutionStatusEnum.d.ts +2 -2
  8. package/dist/ssca-manager/src/services/schemas/AiWorkflowExecutionSummary.d.ts +3 -3
  9. package/dist/ssca-manager/src/services/schemas/AttestationEnforcementRequest.d.ts +10 -0
  10. package/dist/ssca-manager/src/services/schemas/CreateScannerConfigurationRequest.d.ts +7 -0
  11. package/dist/ssca-manager/src/services/schemas/CreateScannerConfigurationRequest.js +4 -0
  12. package/dist/ssca-manager/src/services/schemas/SbomMetadataV2.d.ts +4 -0
  13. package/dist/ssca-manager/src/services/schemas/ScannerConfiguration.d.ts +13 -0
  14. package/dist/ssca-manager/src/services/schemas/ScannerConfiguration.js +4 -0
  15. package/dist/ssca-manager/src/services/schemas/ScannerConfigurationListResponse.d.ts +4 -0
  16. package/dist/ssca-manager/src/services/schemas/ScannerConfigurationListResponse.js +1 -0
  17. package/dist/ssca-manager/src/services/schemas/UpdateScannerConfigurationRequest.d.ts +6 -0
  18. package/dist/ssca-manager/src/services/schemas/UpdateScannerConfigurationRequest.js +4 -0
  19. package/package.json +1 -1
  20. package/dist/ssca-manager/src/services/schemas/TriageFindingSummary.d.ts +0 -22
  21. /package/dist/ssca-manager/src/services/schemas/{TriageFindingDetail.js → AgentExecutionDetail.js} +0 -0
  22. /package/dist/ssca-manager/src/services/schemas/{TriageFindingSummary.js → AgentExecutionSummary.js} +0 -0
@@ -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
  }
@@ -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';
@@ -381,6 +381,8 @@ export type { VersionResponseBodyResponse } from './responses/VersionResponseBod
381
381
  export type { ActivityDetails } from './schemas/ActivityDetails';
382
382
  export type { AffectedArtifactInfo } from './schemas/AffectedArtifactInfo';
383
383
  export type { AffectedTargetRemediationResponse } from './schemas/AffectedTargetRemediationResponse';
384
+ export type { AgentExecutionDetail } from './schemas/AgentExecutionDetail';
385
+ export type { AgentExecutionSummary } from './schemas/AgentExecutionSummary';
384
386
  export type { AgentToggleRequest } from './schemas/AgentToggleRequest';
385
387
  export type { AgentToggleStatus } from './schemas/AgentToggleStatus';
386
388
  export type { AiBomComponentViewRequestBody } from './schemas/AiBomComponentViewRequestBody';
@@ -564,6 +566,7 @@ export type { CooldownViolationsResponseBody } from './schemas/CooldownViolation
564
566
  export type { CreateComplianceResult } from './schemas/CreateComplianceResult';
565
567
  export type { CreateComplianceResultV2 } from './schemas/CreateComplianceResultV2';
566
568
  export type { CreateIntegrationRequest } from './schemas/CreateIntegrationRequest';
569
+ export type { CreateScannerConfigurationRequest } from './schemas/CreateScannerConfigurationRequest';
567
570
  export type { CreateTicketRequest } from './schemas/CreateTicketRequest';
568
571
  export type { CreateTicketResponse } from './schemas/CreateTicketResponse';
569
572
  export type { CreatedBy } from './schemas/CreatedBy';
@@ -755,6 +758,8 @@ export type { SbomScoreRequest } from './schemas/SbomScoreRequest';
755
758
  export type { SbomScoreSubScores } from './schemas/SbomScoreSubScores';
756
759
  export type { SbomScorecardRequestBody } from './schemas/SbomScorecardRequestBody';
757
760
  export type { SbomScorecardResponseBody } from './schemas/SbomScorecardResponseBody';
761
+ export type { ScannerConfiguration } from './schemas/ScannerConfiguration';
762
+ export type { ScannerConfigurationListResponse } from './schemas/ScannerConfigurationListResponse';
758
763
  export type { Scorecard } from './schemas/Scorecard';
759
764
  export type { ScorecardInfo } from './schemas/ScorecardInfo';
760
765
  export type { ScorecardV2 } from './schemas/ScorecardV2';
@@ -780,13 +785,12 @@ export type { TargetVersionVulnerability } from './schemas/TargetVersionVulnerab
780
785
  export type { TicketInfo } from './schemas/TicketInfo';
781
786
  export type { TokenIssueResponseBody } from './schemas/TokenIssueResponseBody';
782
787
  export type { TokenIssueTokenResponseBody } from './schemas/TokenIssueTokenResponseBody';
783
- export type { TriageFindingDetail } from './schemas/TriageFindingDetail';
784
- export type { TriageFindingSummary } from './schemas/TriageFindingSummary';
785
788
  export type { TriggerType } from './schemas/TriggerType';
786
789
  export type { UpdateAiWorkflowExecutionStatusRequest } from './schemas/UpdateAiWorkflowExecutionStatusRequest';
787
790
  export type { UpdateAiWorkflowExecutionStatusResponse } from './schemas/UpdateAiWorkflowExecutionStatusResponse';
788
791
  export type { UpdateIntegration } from './schemas/UpdateIntegration';
789
792
  export type { UpdateIntegrationRspmRequest } from './schemas/UpdateIntegrationRspmRequest';
793
+ export type { UpdateScannerConfigurationRequest } from './schemas/UpdateScannerConfigurationRequest';
790
794
  export type { VerificationActivity } from './schemas/VerificationActivity';
791
795
  export type { VerificationStatus } from './schemas/VerificationStatus';
792
796
  export type { VersionInfo } from './schemas/VersionInfo';
@@ -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/SAST_REMEDIATION -> 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
@@ -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
  }
@@ -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 {};
@@ -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
+ }
@@ -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.1",
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
- }