@harnessio/react-ssca-manager-client 0.84.6 → 0.84.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ssca-manager/src/services/index.d.ts +4 -0
- package/dist/ssca-manager/src/services/responses/ComponentDependenciesResponseBodyResponse.d.ts +2 -0
- package/dist/ssca-manager/src/services/responses/ComponentDependenciesResponseBodyResponse.js +1 -0
- package/dist/ssca-manager/src/services/schemas/ArtifactComponentViewResponse.d.ts +5 -0
- package/dist/ssca-manager/src/services/schemas/ComponentDependenciesResponse.d.ts +10 -0
- package/dist/ssca-manager/src/services/schemas/ComponentDependenciesResponse.js +1 -0
- package/dist/ssca-manager/src/services/schemas/ComponentDependencyItem.d.ts +27 -0
- package/dist/ssca-manager/src/services/schemas/ComponentDependencyItem.js +1 -0
- package/dist/ssca-manager/src/services/schemas/ComponentParent.d.ts +17 -0
- package/dist/ssca-manager/src/services/schemas/ComponentParent.js +4 -0
- package/dist/ssca-manager/src/services/schemas/PluginResponseBody.d.ts +2 -2
- package/dist/ssca-manager/src/services/schemas/SaveOrchestrationRequestV2.d.ts +3 -4
- package/package.json +1 -1
|
@@ -228,6 +228,7 @@ export type { ComplianceResultsEvaluationBreakdownResponseResponse } from './res
|
|
|
228
228
|
export type { ComplianceResultsGroupByComplianceIdResponseBodyResponse } from './responses/ComplianceResultsGroupByComplianceIdResponseBodyResponse';
|
|
229
229
|
export type { ComplianceStandardByIdResponseBodyResponse } from './responses/ComplianceStandardByIdResponseBodyResponse';
|
|
230
230
|
export type { ComplianceStandardsResponseBodyResponse } from './responses/ComplianceStandardsResponseBodyResponse';
|
|
231
|
+
export type { ComponentDependenciesResponseBodyResponse } from './responses/ComponentDependenciesResponseBodyResponse';
|
|
231
232
|
export type { ComponentDriftResponseBodyResponse } from './responses/ComponentDriftResponseBodyResponse';
|
|
232
233
|
export type { ComponentListResponseBodyResponse } from './responses/ComponentListResponseBodyResponse';
|
|
233
234
|
export type { ComponentVulnerabilityListResponseBodyResponse } from './responses/ComponentVulnerabilityListResponseBodyResponse';
|
|
@@ -368,10 +369,13 @@ export type { ComplianceScanType } from './schemas/ComplianceScanType';
|
|
|
368
369
|
export type { ComplianceSourcePlatform } from './schemas/ComplianceSourcePlatform';
|
|
369
370
|
export type { ComplianceStandardType } from './schemas/ComplianceStandardType';
|
|
370
371
|
export type { ComplianceStandardsFilterEntity } from './schemas/ComplianceStandardsFilterEntity';
|
|
372
|
+
export type { ComponentDependenciesResponse } from './schemas/ComponentDependenciesResponse';
|
|
373
|
+
export type { ComponentDependencyItem } from './schemas/ComponentDependencyItem';
|
|
371
374
|
export type { ComponentDrift } from './schemas/ComponentDrift';
|
|
372
375
|
export type { ComponentDriftSummary } from './schemas/ComponentDriftSummary';
|
|
373
376
|
export type { ComponentDto } from './schemas/ComponentDto';
|
|
374
377
|
export type { ComponentFilter } from './schemas/ComponentFilter';
|
|
378
|
+
export type { ComponentParent } from './schemas/ComponentParent';
|
|
375
379
|
export type { ComponentRemediationResponse } from './schemas/ComponentRemediationResponse';
|
|
376
380
|
export type { ComponentSummary } from './schemas/ComponentSummary';
|
|
377
381
|
export type { ComponentVulnerabilityResponse } from './schemas/ComponentVulnerabilityResponse';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { DependencyType } from '../schemas/DependencyType';
|
|
2
2
|
import type { LayerType } from '../schemas/LayerType';
|
|
3
3
|
import type { StoIssueCount } from '../schemas/StoIssueCount';
|
|
4
|
+
import type { ComponentParent } from '../schemas/ComponentParent';
|
|
4
5
|
import type { VulnerabilitySource } from '../schemas/VulnerabilitySource';
|
|
5
6
|
export interface ArtifactComponentViewResponse {
|
|
6
7
|
dependency_types?: DependencyType[];
|
|
@@ -40,6 +41,10 @@ export interface ArtifactComponentViewResponse {
|
|
|
40
41
|
package_name?: string;
|
|
41
42
|
package_supplier?: string;
|
|
42
43
|
package_version?: string;
|
|
44
|
+
/**
|
|
45
|
+
* List of parent components for the current component
|
|
46
|
+
*/
|
|
47
|
+
parents?: ComponentParent[];
|
|
43
48
|
purl?: string;
|
|
44
49
|
vulnerability_source?: VulnerabilitySource;
|
|
45
50
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ComponentDependencyItem } from '../schemas/ComponentDependencyItem';
|
|
2
|
+
/**
|
|
3
|
+
* Response containing the parents and dependencies of a component
|
|
4
|
+
*/
|
|
5
|
+
export interface ComponentDependenciesResponse {
|
|
6
|
+
/**
|
|
7
|
+
* List of dependencies of this component
|
|
8
|
+
*/
|
|
9
|
+
dependencies?: ComponentDependencyItem[];
|
|
10
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { StoIssueCount } from '../schemas/StoIssueCount';
|
|
2
|
+
/**
|
|
3
|
+
* A dependency of a component with its relationship and vulnerability info
|
|
4
|
+
*/
|
|
5
|
+
export interface ComponentDependencyItem {
|
|
6
|
+
/**
|
|
7
|
+
* Name of the dependency
|
|
8
|
+
*/
|
|
9
|
+
name?: string;
|
|
10
|
+
/**
|
|
11
|
+
* Package URL of the dependency
|
|
12
|
+
*/
|
|
13
|
+
purl?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Whether the dependency is direct or indirect
|
|
16
|
+
*/
|
|
17
|
+
relationship?: 'DIRECT' | 'INDIRECT';
|
|
18
|
+
/**
|
|
19
|
+
* The path through which an indirect dependency is introduced (e.g. "via body-parser")
|
|
20
|
+
*/
|
|
21
|
+
relationship_path?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Version of the dependency
|
|
24
|
+
*/
|
|
25
|
+
version?: string;
|
|
26
|
+
vulnerabilities_count?: StoIssueCount;
|
|
27
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A parent component that depends on this component
|
|
3
|
+
*/
|
|
4
|
+
export interface ComponentParent {
|
|
5
|
+
/**
|
|
6
|
+
* Name of the parent component
|
|
7
|
+
*/
|
|
8
|
+
name?: string;
|
|
9
|
+
/**
|
|
10
|
+
* Package URL of the parent component
|
|
11
|
+
*/
|
|
12
|
+
purl?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Version of the parent component
|
|
15
|
+
*/
|
|
16
|
+
version?: string;
|
|
17
|
+
}
|
|
@@ -22,9 +22,9 @@ export interface PluginResponseBody {
|
|
|
22
22
|
*/
|
|
23
23
|
response_url?: string;
|
|
24
24
|
/**
|
|
25
|
-
* Session status (populated for chunk mode)
|
|
25
|
+
* Session status (populated for chunk mode). RECEIVING indicates chunks are being accepted, COMPLETED indicates all chunks were processed, FAILED indicates the session encountered an error.
|
|
26
26
|
*/
|
|
27
|
-
session_status?: 'COMPLETED' | 'RECEIVING';
|
|
27
|
+
session_status?: 'COMPLETED' | 'FAILED' | 'RECEIVING';
|
|
28
28
|
/**
|
|
29
29
|
* Source identifier (populated for single/complete mode)
|
|
30
30
|
*/
|
|
@@ -8,9 +8,8 @@ import type { SbomMetadataV2 } from '../schemas/SbomMetadataV2';
|
|
|
8
8
|
/**
|
|
9
9
|
* Request body for SBOM orchestration. Fields required depend on chunking_mode:
|
|
10
10
|
* - single: artifact, sbom_metadata, attestation, components required
|
|
11
|
-
* - chunk
|
|
12
|
-
* -
|
|
13
|
-
* - complete: only expected_component_count (optional)
|
|
11
|
+
* - chunk: components, chunk_metadata (with chunk_id) required
|
|
12
|
+
* - complete: expected_component_count, execution_context, sbom_metadata, attestation required
|
|
14
13
|
*
|
|
15
14
|
*/
|
|
16
15
|
export interface SaveOrchestrationRequestV2 {
|
|
@@ -24,7 +23,7 @@ export interface SaveOrchestrationRequestV2 {
|
|
|
24
23
|
components?: SbomComponentRequestDto[];
|
|
25
24
|
execution_context?: ExecutionDetail;
|
|
26
25
|
/**
|
|
27
|
-
*
|
|
26
|
+
* Required for "complete" mode. Must match the total component count received across all chunks.
|
|
28
27
|
*/
|
|
29
28
|
expected_component_count?: number;
|
|
30
29
|
sbom_metadata?: SbomMetadataV2;
|