@harnessio/react-har-service-client 0.38.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.
@@ -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;
@@ -1,4 +1,4 @@
1
1
  import type { ArtifactScanDetails } from '../schemas/ArtifactScanDetails';
2
2
  export interface ArtifactScanDetailsResponseResponse {
3
- data: ArtifactScanDetails;
3
+ data?: ArtifactScanDetails;
4
4
  }
@@ -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
  }
@@ -34,6 +34,8 @@ export interface ArtifactMetadata {
34
34
  registryIdentifier: string;
35
35
  registryPath: string;
36
36
  registryUUID: string;
37
+ scanId?: string;
38
+ scanStatus?: 'BLOCK' | 'WARN';
37
39
  uuid: string;
38
40
  version: string;
39
41
  }
@@ -17,18 +17,19 @@ export interface ArtifactScanDetails {
17
17
  */
18
18
  packageName: string;
19
19
  packageType: PackageType;
20
- policyFailureDetails: {
20
+ policyFailureDetails: Array<{
21
21
  [key: string]: any;
22
- };
23
- /**
24
- * Registry name
25
- */
26
- registryName: string;
22
+ }>;
23
+ policySetRef?: string;
27
24
  /**
28
25
  * Registry ID
29
26
  * @format uuid
30
27
  */
31
- registry_id: string;
28
+ registryId?: string;
29
+ /**
30
+ * Registry name
31
+ */
32
+ registryName: string;
32
33
  /**
33
34
  * Scan status
34
35
  */
@@ -41,5 +42,5 @@ export interface ArtifactScanDetails {
41
42
  * Version
42
43
  * @format uuid
43
44
  */
44
- version_id?: string;
45
+ versionId?: string;
45
46
  }
@@ -38,6 +38,8 @@ export interface ArtifactVersionMetadata {
38
38
  registryIdentifier: string;
39
39
  registryPath: string;
40
40
  registryUUID: string;
41
+ scanId?: string;
42
+ scanStatus?: 'BLOCK' | 'WARN';
41
43
  size?: string;
42
44
  uuid: string;
43
45
  }
@@ -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;
@@ -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
  }
@@ -34,6 +34,8 @@ export interface VersionMetadata {
34
34
  quarantineReason?: string;
35
35
  registryIdentifier: string;
36
36
  registryUUID: string;
37
+ scanId?: string;
38
+ scanStatus?: 'BLOCK' | 'WARN';
37
39
  size?: string;
38
40
  uuid: string;
39
41
  version: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-har-service-client",
3
- "version": "0.38.0",
3
+ "version": "0.39.0",
4
4
  "description": "Harness HAR Service APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",