@harnessio/react-har-service-client 0.37.0 → 0.39.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.
- package/dist/har-service/src/services/hooks/useGetArtifactScansQuery.d.ts +1 -0
- package/dist/har-service/src/services/index.d.ts +2 -0
- package/dist/har-service/src/services/responses/ArtifactScanDetailsResponseResponse.d.ts +2 -6
- package/dist/har-service/src/services/responses/ArtifactScanDetailsResponseResponse.js +0 -3
- package/dist/har-service/src/services/responses/ArtifactScanEvaluateRequestAcceptedResponse.d.ts +1 -3
- package/dist/har-service/src/services/schemas/ArtifactMetadata.d.ts +2 -0
- package/dist/har-service/src/services/schemas/ArtifactScanDetails.d.ts +46 -0
- package/dist/har-service/src/services/schemas/ArtifactScanDetails.js +1 -0
- package/dist/har-service/src/services/schemas/ArtifactVersionMetadata.d.ts +2 -0
- package/dist/har-service/src/services/schemas/ArtifactVersionSummary.d.ts +2 -0
- package/dist/har-service/src/services/schemas/FixVersionDetails.d.ts +19 -0
- package/dist/har-service/src/services/schemas/FixVersionDetails.js +4 -0
- package/dist/har-service/src/services/schemas/UpstreamConfig.d.ts +1 -1
- package/dist/har-service/src/services/schemas/VersionMetadata.d.ts +2 -0
- package/package.json +1 -1
|
@@ -27,6 +27,7 @@ export interface GetArtifactScansQueryQueryParams {
|
|
|
27
27
|
sort_order?: 'ASC' | 'DESC';
|
|
28
28
|
sort_field?: string;
|
|
29
29
|
search_term?: string;
|
|
30
|
+
scope?: 'ancestors' | 'descendants' | 'none';
|
|
30
31
|
}
|
|
31
32
|
export type GetArtifactScansOkResponse = ResponseWithPagination<ListArtifactScanResponseResponse>;
|
|
32
33
|
export type GetArtifactScansErrorResponse = V3Error;
|
|
@@ -245,6 +245,7 @@ export type { ArtifactEntityMetadata } from './schemas/ArtifactEntityMetadata';
|
|
|
245
245
|
export type { ArtifactLabelRequest } from './schemas/ArtifactLabelRequest';
|
|
246
246
|
export type { ArtifactMetadata } from './schemas/ArtifactMetadata';
|
|
247
247
|
export type { ArtifactScan } from './schemas/ArtifactScan';
|
|
248
|
+
export type { ArtifactScanDetails } from './schemas/ArtifactScanDetails';
|
|
248
249
|
export type { ArtifactScanEvaluateRequestStatus } from './schemas/ArtifactScanEvaluateRequestStatus';
|
|
249
250
|
export type { ArtifactStats } from './schemas/ArtifactStats';
|
|
250
251
|
export type { ArtifactSummary } from './schemas/ArtifactSummary';
|
|
@@ -286,6 +287,7 @@ export type { Error } from './schemas/Error';
|
|
|
286
287
|
export type { ExtraHeader } from './schemas/ExtraHeader';
|
|
287
288
|
export type { FileDetail } from './schemas/FileDetail';
|
|
288
289
|
export type { FileMetadata } from './schemas/FileMetadata';
|
|
290
|
+
export type { FixVersionDetails } from './schemas/FixVersionDetails';
|
|
289
291
|
export type { GenericArtifactDetailConfig } from './schemas/GenericArtifactDetailConfig';
|
|
290
292
|
export type { GoArtifactDetailConfig } from './schemas/GoArtifactDetailConfig';
|
|
291
293
|
export type { HelmArtifactDetail } from './schemas/HelmArtifactDetail';
|
package/dist/har-service/src/services/responses/ArtifactScanEvaluateRequestAcceptedResponse.d.ts
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import type { ArtifactScanEvaluateRequestStatus } from '../schemas/ArtifactScanEvaluateRequestStatus';
|
|
2
2
|
export interface ArtifactScanEvaluateRequestAcceptedResponse {
|
|
3
|
-
data
|
|
4
|
-
status: ArtifactScanEvaluateRequestStatus;
|
|
5
|
-
};
|
|
3
|
+
data?: ArtifactScanEvaluateRequestStatus;
|
|
6
4
|
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import type { FixVersionDetails } from '../schemas/FixVersionDetails';
|
|
2
|
+
import type { PackageType } from '../schemas/PackageType';
|
|
3
|
+
/**
|
|
4
|
+
* Artifact scans details
|
|
5
|
+
*/
|
|
6
|
+
export interface ArtifactScanDetails {
|
|
7
|
+
fixVersionDetails?: FixVersionDetails;
|
|
8
|
+
/**
|
|
9
|
+
* Unique identifier for this artifact scan details
|
|
10
|
+
* @format uuid
|
|
11
|
+
*/
|
|
12
|
+
id: string;
|
|
13
|
+
lastEvaluatedAt?: string;
|
|
14
|
+
lastEvaluatedBy?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Package name
|
|
17
|
+
*/
|
|
18
|
+
packageName: string;
|
|
19
|
+
packageType: PackageType;
|
|
20
|
+
policyFailureDetails: Array<{
|
|
21
|
+
[key: string]: any;
|
|
22
|
+
}>;
|
|
23
|
+
policySetRef?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Registry ID
|
|
26
|
+
* @format uuid
|
|
27
|
+
*/
|
|
28
|
+
registryId?: string;
|
|
29
|
+
/**
|
|
30
|
+
* Registry name
|
|
31
|
+
*/
|
|
32
|
+
registryName: string;
|
|
33
|
+
/**
|
|
34
|
+
* Scan status
|
|
35
|
+
*/
|
|
36
|
+
scanStatus: 'BLOCKED' | 'WARN';
|
|
37
|
+
/**
|
|
38
|
+
* Version
|
|
39
|
+
*/
|
|
40
|
+
version: string;
|
|
41
|
+
/**
|
|
42
|
+
* Version
|
|
43
|
+
* @format uuid
|
|
44
|
+
*/
|
|
45
|
+
versionId?: string;
|
|
46
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -18,6 +18,8 @@ export interface ArtifactVersionSummary {
|
|
|
18
18
|
packageType: PackageType;
|
|
19
19
|
quarantineReason?: string;
|
|
20
20
|
registryUUID: string;
|
|
21
|
+
scanId?: string;
|
|
22
|
+
scanStatus?: 'BLOCK' | 'WARN';
|
|
21
23
|
sscaArtifactId?: string;
|
|
22
24
|
sscaArtifactSourceId?: string;
|
|
23
25
|
stoExecutionId?: string;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Fix version Details
|
|
3
|
+
*/
|
|
4
|
+
export interface FixVersionDetails {
|
|
5
|
+
/**
|
|
6
|
+
* The current version
|
|
7
|
+
* @example "1.2.0"
|
|
8
|
+
*/
|
|
9
|
+
currentVersion: string;
|
|
10
|
+
/**
|
|
11
|
+
* The fix version
|
|
12
|
+
* @example "1.2.2"
|
|
13
|
+
*/
|
|
14
|
+
fixVersion?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Fix version available or not
|
|
17
|
+
*/
|
|
18
|
+
fixVersionAvailable: boolean;
|
|
19
|
+
}
|
|
@@ -9,12 +9,12 @@ import type { UpstreamProxyConfigFirewallMode } from '../schemas/UpstreamProxyCo
|
|
|
9
9
|
export interface UpstreamConfig {
|
|
10
10
|
auth?: UserPassword | Anonymous | AccessKeySecretKey;
|
|
11
11
|
authType: AuthType;
|
|
12
|
+
firewallMode?: UpstreamProxyConfigFirewallMode;
|
|
12
13
|
/**
|
|
13
14
|
* Optional path suffix appended to the remote URL for this registry. For Python upstreams, this allows overriding the default `/simple` path used for PyPI-compatible indexes. Leading and trailing slashes are not required and will be normalized.
|
|
14
15
|
*
|
|
15
16
|
*/
|
|
16
17
|
remoteUrlSuffix?: string;
|
|
17
18
|
source?: 'Anaconda' | 'AwsEcr' | 'Crates' | 'Custom' | 'Dockerhub' | 'GoProxy' | 'HuggingFace' | 'MavenCentral' | 'NpmJs' | 'NugetOrg' | 'Packagist' | 'Pubdev' | 'PyPi';
|
|
18
|
-
upstreamProxyConfigFirewallMode?: UpstreamProxyConfigFirewallMode;
|
|
19
19
|
url?: string;
|
|
20
20
|
}
|