@harnessio/react-ssca-manager-client 0.86.18 → 0.86.20
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 +3 -0
- package/dist/ssca-manager/src/services/schemas/ArtifactComponentViewRequestBody.d.ts +5 -0
- package/dist/ssca-manager/src/services/schemas/AutoDiscoveryScope.d.ts +4 -0
- package/dist/ssca-manager/src/services/schemas/AutoDiscoveryScope.js +4 -0
- package/dist/ssca-manager/src/services/schemas/ConfigureReposRequest.d.ts +9 -0
- package/dist/ssca-manager/src/services/schemas/IntegrationCountsResponse.d.ts +3 -2
- package/dist/ssca-manager/src/services/schemas/IntegrationCountsResponse.js +0 -3
- package/dist/ssca-manager/src/services/schemas/LicenseConditionFilter.d.ts +4 -0
- package/dist/ssca-manager/src/services/schemas/LicenseConditionFilter.js +4 -0
- package/dist/ssca-manager/src/services/schemas/ListIntegrationReposResponse.d.ts +7 -0
- package/dist/ssca-manager/src/services/schemas/RspmScannerInfo.d.ts +8 -0
- package/dist/ssca-manager/src/services/schemas/ScannerConfigCount.d.ts +16 -0
- package/dist/ssca-manager/src/services/schemas/ScannerConfigCount.js +1 -0
- package/dist/ssca-manager/src/services/schemas/ScannerConfiguration.d.ts +8 -0
- package/package.json +1 -1
|
@@ -506,6 +506,7 @@ export type { AttestationUploadRequest } from './schemas/AttestationUploadReques
|
|
|
506
506
|
export type { AttestationUploadResponseBody } from './schemas/AttestationUploadResponseBody';
|
|
507
507
|
export type { AttestationsByArtifactRequest } from './schemas/AttestationsByArtifactRequest';
|
|
508
508
|
export type { AttestationsByArtifactResponse } from './schemas/AttestationsByArtifactResponse';
|
|
509
|
+
export type { AutoDiscoveryScope } from './schemas/AutoDiscoveryScope';
|
|
509
510
|
export type { AutoPrAdvancedRule } from './schemas/AutoPrAdvancedRule';
|
|
510
511
|
export type { AutoPrCheckInterval } from './schemas/AutoPrCheckInterval';
|
|
511
512
|
export type { AutoPrComplianceRule } from './schemas/AutoPrComplianceRule';
|
|
@@ -700,6 +701,7 @@ export type { JenkinsRunnerDetail } from './schemas/JenkinsRunnerDetail';
|
|
|
700
701
|
export type { JenkinsScmRepo } from './schemas/JenkinsScmRepo';
|
|
701
702
|
export type { LayerType } from './schemas/LayerType';
|
|
702
703
|
export type { LicenseCondition } from './schemas/LicenseCondition';
|
|
704
|
+
export type { LicenseConditionFilter } from './schemas/LicenseConditionFilter';
|
|
703
705
|
export type { LicenseConditionsResponse } from './schemas/LicenseConditionsResponse';
|
|
704
706
|
export type { LicenseDrift } from './schemas/LicenseDrift';
|
|
705
707
|
export type { LicenseDriftSummary } from './schemas/LicenseDriftSummary';
|
|
@@ -806,6 +808,7 @@ export type { SbomScoreRequest } from './schemas/SbomScoreRequest';
|
|
|
806
808
|
export type { SbomScoreSubScores } from './schemas/SbomScoreSubScores';
|
|
807
809
|
export type { SbomScorecardRequestBody } from './schemas/SbomScorecardRequestBody';
|
|
808
810
|
export type { SbomScorecardResponseBody } from './schemas/SbomScorecardResponseBody';
|
|
811
|
+
export type { ScannerConfigCount } from './schemas/ScannerConfigCount';
|
|
809
812
|
export type { ScannerConfiguration } from './schemas/ScannerConfiguration';
|
|
810
813
|
export type { Scorecard } from './schemas/Scorecard';
|
|
811
814
|
export type { ScorecardInfo } from './schemas/ScorecardInfo';
|
|
@@ -2,6 +2,7 @@ import type { ComponentExemptionStatusFilter } from '../schemas/ComponentExempti
|
|
|
2
2
|
import type { ComponentFilter } from '../schemas/ComponentFilter';
|
|
3
3
|
import type { DependencyType } from '../schemas/DependencyType';
|
|
4
4
|
import type { LayerType } from '../schemas/LayerType';
|
|
5
|
+
import type { LicenseConditionFilter } from '../schemas/LicenseConditionFilter';
|
|
5
6
|
import type { LicenseFilter } from '../schemas/LicenseFilter';
|
|
6
7
|
import type { OssRiskFilter } from '../schemas/OssRiskFilter';
|
|
7
8
|
import type { OwaspFilter } from '../schemas/OwaspFilter';
|
|
@@ -13,6 +14,10 @@ export interface ArtifactComponentViewRequestBody {
|
|
|
13
14
|
component_filter?: ComponentFilter[];
|
|
14
15
|
dependency_type_filter?: DependencyType[];
|
|
15
16
|
image_layer?: LayerType;
|
|
17
|
+
/**
|
|
18
|
+
* Multi-select OR filter by canonical license condition. Ignored unless SCS_LICENSE_CONDITIONS is on.
|
|
19
|
+
*/
|
|
20
|
+
license_condition_filter?: LicenseConditionFilter[];
|
|
16
21
|
license_filter?: LicenseFilter;
|
|
17
22
|
/**
|
|
18
23
|
* Filter components by OSS risk category. Returns only components matching at least one of the specified risk types.
|
|
@@ -1,8 +1,17 @@
|
|
|
1
|
+
import type { AutoDiscoveryScope } from '../schemas/AutoDiscoveryScope';
|
|
1
2
|
import type { RepoDetailsDto } from '../schemas/RepoDetailsDto';
|
|
2
3
|
/**
|
|
3
4
|
*
|
|
4
5
|
*/
|
|
5
6
|
export interface ConfigureReposRequest {
|
|
7
|
+
/**
|
|
8
|
+
* Harness Code + include_all_repos only. Spaces to auto-discover.
|
|
9
|
+
* Omitted or empty with include_all_repos=true means PROJECT (current behavior).
|
|
10
|
+
* Rejected with 400 when include_all_repos is false, and when the integration is not
|
|
11
|
+
* Harness Code. Omit the field (or send an empty array) in those cases.
|
|
12
|
+
*
|
|
13
|
+
*/
|
|
14
|
+
auto_discovery_scopes?: AutoDiscoveryScope[];
|
|
6
15
|
include_all_repos?: boolean;
|
|
7
16
|
repositories?: RepoDetailsDto[];
|
|
8
17
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ScannerConfigCount } from '../schemas/ScannerConfigCount';
|
|
1
2
|
export interface IntegrationCountsResponse {
|
|
2
3
|
/**
|
|
3
4
|
* Counts grouped by integration type (keys match stored type values)
|
|
@@ -6,9 +7,9 @@ export interface IntegrationCountsResponse {
|
|
|
6
7
|
[key: string]: number;
|
|
7
8
|
};
|
|
8
9
|
/**
|
|
9
|
-
*
|
|
10
|
+
* Scanner configuration counts keyed by scanner_id, with slug and display name metadata
|
|
10
11
|
*/
|
|
11
12
|
scanner_configs_by_scanner_id: {
|
|
12
|
-
[key: string]:
|
|
13
|
+
[key: string]: ScannerConfigCount;
|
|
13
14
|
};
|
|
14
15
|
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Canonical license condition key used to filter SBOM components
|
|
3
|
+
*/
|
|
4
|
+
export type LicenseConditionFilter = 'commerical_use' | 'distribution' | 'linking_exception' | 'modification' | 'must_attribute' | 'must_distribute_license' | 'must_share_source_code' | 'need_to_state_changes' | 'no_liability' | 'no_trademark' | 'patent_grant' | 'private_use' | 'sub_license';
|
|
@@ -1,5 +1,12 @@
|
|
|
1
|
+
import type { AutoDiscoveryScope } from '../schemas/AutoDiscoveryScope';
|
|
1
2
|
import type { RepoDetailsDto } from '../schemas/RepoDetailsDto';
|
|
2
3
|
export interface ListIntegrationReposResponse {
|
|
4
|
+
/**
|
|
5
|
+
* Present when include_all_repos is true for Harness Code integrations.
|
|
6
|
+
* Echoes [PROJECT] when stored scopes are omitted or empty; otherwise echoes the stored scopes.
|
|
7
|
+
*
|
|
8
|
+
*/
|
|
9
|
+
auto_discovery_scopes?: AutoDiscoveryScope[];
|
|
3
10
|
include_all_repos?: boolean;
|
|
4
11
|
repositories?: RepoDetailsDto[];
|
|
5
12
|
}
|
|
@@ -3,6 +3,14 @@ import type { RspmScannerType } from '../schemas/RspmScannerType';
|
|
|
3
3
|
export interface RspmScannerInfo {
|
|
4
4
|
required_config_keys: string[];
|
|
5
5
|
scanner_id: RspmScannerId;
|
|
6
|
+
/**
|
|
7
|
+
* Display name from STO product catalog or SCS constants
|
|
8
|
+
*/
|
|
9
|
+
scanner_name: string;
|
|
10
|
+
/**
|
|
11
|
+
* STO product catalog slug (Product.name)
|
|
12
|
+
*/
|
|
13
|
+
scanner_slug: string;
|
|
6
14
|
scanner_types?: RspmScannerType[];
|
|
7
15
|
supported_config_keys: string[];
|
|
8
16
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { RspmScannerType } from '../schemas/RspmScannerType';
|
|
2
|
+
export interface ScannerConfigCount {
|
|
3
|
+
/**
|
|
4
|
+
* @format int64
|
|
5
|
+
*/
|
|
6
|
+
count: number;
|
|
7
|
+
/**
|
|
8
|
+
* Display name from STO product catalog or SCS constants
|
|
9
|
+
*/
|
|
10
|
+
scanner_name: string;
|
|
11
|
+
/**
|
|
12
|
+
* STO product catalog slug (Product.name)
|
|
13
|
+
*/
|
|
14
|
+
scanner_slug: string;
|
|
15
|
+
scanner_types: RspmScannerType[];
|
|
16
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -11,4 +11,12 @@ export interface ScannerConfiguration {
|
|
|
11
11
|
last_used_at?: number | null;
|
|
12
12
|
name?: string;
|
|
13
13
|
scanner_id?: RspmScannerId;
|
|
14
|
+
/**
|
|
15
|
+
* Display name from STO product catalog or SCS constants
|
|
16
|
+
*/
|
|
17
|
+
scanner_name: string;
|
|
18
|
+
/**
|
|
19
|
+
* STO product catalog slug (Product.name)
|
|
20
|
+
*/
|
|
21
|
+
scanner_slug: string;
|
|
14
22
|
}
|