@harnessio/react-har-service-client 0.43.0 → 0.45.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.
Files changed (24) hide show
  1. package/dist/har-service/src/services/index.d.ts +7 -0
  2. package/dist/har-service/src/services/schemas/ArtifactDetail.d.ts +0 -4
  3. package/dist/har-service/src/services/schemas/ArtifactMetadata.d.ts +0 -4
  4. package/dist/har-service/src/services/schemas/ArtifactScan.d.ts +2 -8
  5. package/dist/har-service/src/services/schemas/ArtifactScanDetails.d.ts +3 -3
  6. package/dist/har-service/src/services/schemas/ArtifactSummary.d.ts +0 -4
  7. package/dist/har-service/src/services/schemas/ArtifactVersionMetadata.d.ts +0 -4
  8. package/dist/har-service/src/services/schemas/ArtifactVersionSummary.d.ts +0 -4
  9. package/dist/har-service/src/services/schemas/LicensePolicyFailureDetailConfig.d.ts +13 -0
  10. package/dist/har-service/src/services/schemas/LicensePolicyFailureDetailConfig.js +4 -0
  11. package/dist/har-service/src/services/schemas/PackageAgeViolationPolicyFailureDetailConfig.d.ts +13 -0
  12. package/dist/har-service/src/services/schemas/PackageAgeViolationPolicyFailureDetailConfig.js +4 -0
  13. package/dist/har-service/src/services/schemas/PolicyFailureDetail.d.ts +18 -0
  14. package/dist/har-service/src/services/schemas/PolicyFailureDetail.js +1 -0
  15. package/dist/har-service/src/services/schemas/PolicyFailureDetailCategory.d.ts +4 -0
  16. package/dist/har-service/src/services/schemas/PolicyFailureDetailCategory.js +4 -0
  17. package/dist/har-service/src/services/schemas/PolicySets.d.ts +13 -0
  18. package/dist/har-service/src/services/schemas/PolicySets.js +4 -0
  19. package/dist/har-service/src/services/schemas/Registry.d.ts +0 -4
  20. package/dist/har-service/src/services/schemas/SecurityPolicyFailureDetailConfig.d.ts +10 -0
  21. package/dist/har-service/src/services/schemas/SecurityPolicyFailureDetailConfig.js +1 -0
  22. package/dist/har-service/src/services/schemas/SecurityPolicyFailureVulnerability.d.ts +19 -0
  23. package/dist/har-service/src/services/schemas/SecurityPolicyFailureVulnerability.js +4 -0
  24. package/package.json +1 -1
@@ -297,6 +297,7 @@ export type { HelmArtifactDetailConfig } from './schemas/HelmArtifactDetailConfi
297
297
  export type { HelmArtifactManifest } from './schemas/HelmArtifactManifest';
298
298
  export type { HuggingFaceArtifactDetailConfig } from './schemas/HuggingFaceArtifactDetailConfig';
299
299
  export type { JfrogReplicationRegistry } from './schemas/JfrogReplicationRegistry';
300
+ export type { LicensePolicyFailureDetailConfig } from './schemas/LicensePolicyFailureDetailConfig';
300
301
  export type { ListArtifact } from './schemas/ListArtifact';
301
302
  export type { ListArtifactLabel } from './schemas/ListArtifactLabel';
302
303
  export type { ListArtifactVersion } from './schemas/ListArtifactVersion';
@@ -322,8 +323,12 @@ export type { MigrationImage } from './schemas/MigrationImage';
322
323
  export type { NpmArtifactDetailConfig } from './schemas/NpmArtifactDetailConfig';
323
324
  export type { NugetArtifactDetailConfig } from './schemas/NugetArtifactDetailConfig';
324
325
  export type { OciArtifactTag } from './schemas/OciArtifactTag';
326
+ export type { PackageAgeViolationPolicyFailureDetailConfig } from './schemas/PackageAgeViolationPolicyFailureDetailConfig';
325
327
  export type { PackageMetadata } from './schemas/PackageMetadata';
326
328
  export type { PackageType } from './schemas/PackageType';
329
+ export type { PolicyFailureDetail } from './schemas/PolicyFailureDetail';
330
+ export type { PolicyFailureDetailCategory } from './schemas/PolicyFailureDetailCategory';
331
+ export type { PolicySets } from './schemas/PolicySets';
327
332
  export type { PythonArtifactDetailConfig } from './schemas/PythonArtifactDetailConfig';
328
333
  export type { QuarantinePath } from './schemas/QuarantinePath';
329
334
  export type { QuarantineRequest } from './schemas/QuarantineRequest';
@@ -341,6 +346,8 @@ export type { SbomDetails } from './schemas/SbomDetails';
341
346
  export type { ScanMeta } from './schemas/ScanMeta';
342
347
  export type { Scanner } from './schemas/Scanner';
343
348
  export type { SectionType } from './schemas/SectionType';
349
+ export type { SecurityPolicyFailureDetailConfig } from './schemas/SecurityPolicyFailureDetailConfig';
350
+ export type { SecurityPolicyFailureVulnerability } from './schemas/SecurityPolicyFailureVulnerability';
344
351
  export type { SlsaDetails } from './schemas/SlsaDetails';
345
352
  export type { Status } from './schemas/Status';
346
353
  export type { StoDetails } from './schemas/StoDetails';
@@ -29,10 +29,6 @@ export type ArtifactDetail = (DockerArtifactDetailConfig | HelmArtifactDetailCon
29
29
  * @format int64
30
30
  */
31
31
  downloadCount?: number;
32
- /**
33
- * True if the registry is soft-deleted
34
- */
35
- isDeleted: boolean;
36
32
  isQuarantined?: boolean;
37
33
  modifiedAt?: string;
38
34
  name?: string;
@@ -19,10 +19,6 @@ export interface ArtifactMetadata {
19
19
  */
20
20
  downloadsCount?: number;
21
21
  fileCount?: number;
22
- /**
23
- * Indicates if the artifact version is soft deleted
24
- */
25
- isDeleted: boolean;
26
22
  isQuarantined?: boolean;
27
23
  labels?: string[];
28
24
  lastModified?: string;
@@ -1,4 +1,5 @@
1
1
  import type { PackageType } from '../schemas/PackageType';
2
+ import type { PolicySets } from '../schemas/PolicySets';
2
3
  export interface ArtifactScan {
3
4
  id: string;
4
5
  lastEvaluatedAt?: string;
@@ -8,14 +9,7 @@ export interface ArtifactScan {
8
9
  */
9
10
  packageName: string;
10
11
  packageType: PackageType;
11
- /**
12
- * Policy Set name
13
- */
14
- policySetName?: string;
15
- /**
16
- * Unique reference for the opa policy set. Example: `my-policy` or `account.my-policy
17
- */
18
- policySetRef: string;
12
+ policySets: PolicySets;
19
13
  /**
20
14
  * Registry name
21
15
  */
@@ -1,5 +1,6 @@
1
1
  import type { FixVersionDetails } from '../schemas/FixVersionDetails';
2
2
  import type { PackageType } from '../schemas/PackageType';
3
+ import type { PolicyFailureDetail } from '../schemas/PolicyFailureDetail';
3
4
  /**
4
5
  * Artifact scans details
5
6
  */
@@ -17,9 +18,8 @@ export interface ArtifactScanDetails {
17
18
  */
18
19
  packageName: string;
19
20
  packageType: PackageType;
20
- policyFailureDetails: Array<{
21
- [key: string]: any;
22
- }>;
21
+ policyFailureDetails: PolicyFailureDetail[];
22
+ policySetName?: string;
23
23
  policySetRef?: string;
24
24
  /**
25
25
  * Registry ID
@@ -15,10 +15,6 @@ export interface ArtifactSummary {
15
15
  */
16
16
  downloadsCount?: number;
17
17
  imageName: string;
18
- /**
19
- * True if the registry is soft-deleted
20
- */
21
- isDeleted: boolean;
22
18
  labels?: string[];
23
19
  modifiedAt?: string;
24
20
  packageType: PackageType;
@@ -25,10 +25,6 @@ export interface ArtifactVersionMetadata {
25
25
  * @format int64
26
26
  */
27
27
  fileCount?: number;
28
- /**
29
- * Indicates if the artifact version is soft deleted
30
- */
31
- isDeleted: boolean;
32
28
  isQuarantined?: boolean;
33
29
  lastModified?: string;
34
30
  metadata?: ArtifactEntityMetadata;
@@ -11,10 +11,6 @@ export interface ArtifactVersionSummary {
11
11
  */
12
12
  deletedAt?: string;
13
13
  imageName: string;
14
- /**
15
- * Indicates if the artifact version is soft deleted
16
- */
17
- isDeleted: boolean;
18
14
  isQuarantined?: boolean;
19
15
  packageType: PackageType;
20
16
  quarantineReason?: string;
@@ -0,0 +1,13 @@
1
+ /**
2
+ * License-specific failure detail payload.
3
+ */
4
+ export interface LicensePolicyFailureDetailConfig {
5
+ /**
6
+ * Allowed license list.
7
+ */
8
+ allowedLicenses: string[];
9
+ /**
10
+ * Blocked license.
11
+ */
12
+ blockedLicense: string;
13
+ }
@@ -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 {};
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Package age violation failure detail payload.
3
+ */
4
+ export interface PackageAgeViolationPolicyFailureDetailConfig {
5
+ /**
6
+ * Package age threshold.
7
+ */
8
+ packageAgeThreshold: string;
9
+ /**
10
+ * Package publish date.
11
+ */
12
+ publishedOn: string;
13
+ }
@@ -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 {};
@@ -0,0 +1,18 @@
1
+ import type { SecurityPolicyFailureDetailConfig } from '../schemas/SecurityPolicyFailureDetailConfig';
2
+ import type { LicensePolicyFailureDetailConfig } from '../schemas/LicensePolicyFailureDetailConfig';
3
+ import type { PackageAgeViolationPolicyFailureDetailConfig } from '../schemas/PackageAgeViolationPolicyFailureDetailConfig';
4
+ import type { PolicyFailureDetailCategory } from '../schemas/PolicyFailureDetailCategory';
5
+ /**
6
+ * Policy failure detail entry.
7
+ */
8
+ export type PolicyFailureDetail = (SecurityPolicyFailureDetailConfig | LicensePolicyFailureDetailConfig | PackageAgeViolationPolicyFailureDetailConfig) & {
9
+ category: PolicyFailureDetailCategory;
10
+ /**
11
+ * Policy name.
12
+ */
13
+ policyName: string;
14
+ /**
15
+ * Policy Ref.
16
+ */
17
+ policyRef: string;
18
+ };
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Policy failure detail category.
3
+ */
4
+ export type PolicyFailureDetailCategory = 'License' | 'PackageAge' | 'Security' | 'Unknown';
@@ -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 {};
@@ -0,0 +1,13 @@
1
+ /**
2
+ * List of opa policy sets.
3
+ */
4
+ export type PolicySets = Array<{
5
+ /**
6
+ * Policy Set name
7
+ */
8
+ policySetName: string;
9
+ /**
10
+ * Unique reference for the opa policy set. Example: `my-policy` or `account.my-policy`
11
+ */
12
+ policySetRef: string;
13
+ }>;
@@ -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 {};
@@ -17,10 +17,6 @@ export interface Registry<T0 extends RegistryConfig = RegistryConfig> {
17
17
  deletedAt?: string;
18
18
  description?: string;
19
19
  identifier: string;
20
- /**
21
- * Indicates if the artifact version is soft deleted
22
- */
23
- isDeleted: boolean;
24
20
  isPublic: boolean;
25
21
  labels?: string[];
26
22
  modifiedAt?: string;
@@ -0,0 +1,10 @@
1
+ import type { SecurityPolicyFailureVulnerability } from '../schemas/SecurityPolicyFailureVulnerability';
2
+ /**
3
+ * Security-specific failure detail payload.
4
+ */
5
+ export interface SecurityPolicyFailureDetailConfig {
6
+ /**
7
+ * List of security violations.
8
+ */
9
+ vulnerabilities: SecurityPolicyFailureVulnerability[];
10
+ }
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Security violation entry.
3
+ */
4
+ export interface SecurityPolicyFailureVulnerability {
5
+ /**
6
+ * CVE identifier.
7
+ */
8
+ cveId: string;
9
+ /**
10
+ * CVSS score.
11
+ * @format double
12
+ */
13
+ cvssScore: number;
14
+ /**
15
+ * CVSS threshold.
16
+ * @format double
17
+ */
18
+ cvssThreshold: number;
19
+ }
@@ -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 {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-har-service-client",
3
- "version": "0.43.0",
3
+ "version": "0.45.0",
4
4
  "description": "Harness HAR Service APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",