@harnessio/react-ssca-manager-client 0.60.0 → 0.62.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -236,6 +236,7 @@ export type { ComplianceEvaluationSummary } from './schemas/ComplianceEvaluation
236
236
  export type { ComplianceEvaluationTrend } from './schemas/ComplianceEvaluationTrend';
237
237
  export type { ComplianceExecutionByType } from './schemas/ComplianceExecutionByType';
238
238
  export type { ComplianceFilter } from './schemas/ComplianceFilter';
239
+ export type { ComplianceOccurrenceDto } from './schemas/ComplianceOccurrenceDto';
239
240
  export type { ComplianceResultAggregationByType } from './schemas/ComplianceResultAggregationByType';
240
241
  export type { ComplianceResultByArtifactFilter } from './schemas/ComplianceResultByArtifactFilter';
241
242
  export type { ComplianceResultFilter } from './schemas/ComplianceResultFilter';
@@ -26,6 +26,7 @@ export interface ArtifactV2Overview {
26
26
  sbom_details?: SbomInfo;
27
27
  scorecard?: Scorecard;
28
28
  slsa_details?: SlsaDetails;
29
+ source_id?: string;
29
30
  sto_issue_count?: StoIssueCount;
30
31
  tags?: string[];
31
32
  /**
@@ -1,4 +1,5 @@
1
1
  import type { ComplianceEvaluationHistory } from '../schemas/ComplianceEvaluationHistory';
2
+ import type { ComplianceOccurrenceDto } from '../schemas/ComplianceOccurrenceDto';
2
3
  import type { ComplianceCheckSeverity } from '../schemas/ComplianceCheckSeverity';
3
4
  import type { ComplianceStandardType } from '../schemas/ComplianceStandardType';
4
5
  import type { ComplianceResultStatus } from '../schemas/ComplianceResultStatus';
@@ -7,6 +8,7 @@ export interface ComplianceArtifactWithExecution {
7
8
  description?: string;
8
9
  executions?: ComplianceEvaluationHistory[];
9
10
  name: string;
11
+ occurrences?: ComplianceOccurrenceDto[];
10
12
  reason?: string;
11
13
  remediation?: string;
12
14
  severity: ComplianceCheckSeverity;
@@ -1,3 +1,4 @@
1
+ import type { ComplianceOccurrenceDto } from '../schemas/ComplianceOccurrenceDto';
1
2
  import type { ComplianceResultStatus } from '../schemas/ComplianceResultStatus';
2
3
  export interface ComplianceEvaluationHistory {
3
4
  /**
@@ -5,6 +6,7 @@ export interface ComplianceEvaluationHistory {
5
6
  */
6
7
  created_at?: number;
7
8
  description?: string;
9
+ occurrences?: ComplianceOccurrenceDto[];
8
10
  pipeline_execution_id?: string;
9
11
  pipeline_id?: string;
10
12
  reason?: string;
@@ -0,0 +1,14 @@
1
+ export interface ComplianceOccurrenceDto {
2
+ /**
3
+ * Line number of snippet.
4
+ */
5
+ line_number?: number;
6
+ /**
7
+ * Depicts occurrence snippet.
8
+ */
9
+ snippet?: string;
10
+ /**
11
+ * URL to go to snippet
12
+ */
13
+ snippet_url?: string;
14
+ }
@@ -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,4 +1,5 @@
1
1
  import type { ComplianceEvaluationHistory } from '../schemas/ComplianceEvaluationHistory';
2
+ import type { ComplianceOccurrenceDto } from '../schemas/ComplianceOccurrenceDto';
2
3
  import type { ComplianceCheckSeverity } from '../schemas/ComplianceCheckSeverity';
3
4
  import type { ComplianceStandardType } from '../schemas/ComplianceStandardType';
4
5
  import type { ComplianceResultStatus } from '../schemas/ComplianceResultStatus';
@@ -10,6 +11,7 @@ export interface FetchComplianceResultByArtifactResponseBody {
10
11
  * @format int64
11
12
  */
12
13
  evaluation_time?: number;
14
+ occurrences?: ComplianceOccurrenceDto[];
13
15
  pipelineExecutionId?: string;
14
16
  reason?: string;
15
17
  remediation?: string;
@@ -7,5 +7,5 @@ export interface Integration {
7
7
  last_scan_at?: number;
8
8
  org?: string;
9
9
  status?: 'ACTIVE' | 'INACTIVE';
10
- type?: 'GITHUB';
10
+ type?: 'GITHUB' | 'HARNESS';
11
11
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-ssca-manager-client",
3
- "version": "0.60.0",
3
+ "version": "0.62.0",
4
4
  "description": "Harness SSCA manager APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",