@harnessio/react-har-service-client 0.42.0 → 0.44.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 (19) hide show
  1. package/dist/har-service/src/services/hooks/useGetArtifactScanDetailsQuery.d.ts +1 -0
  2. package/dist/har-service/src/services/index.d.ts +7 -0
  3. package/dist/har-service/src/services/schemas/ArtifactScan.d.ts +2 -8
  4. package/dist/har-service/src/services/schemas/ArtifactScanDetails.d.ts +3 -3
  5. package/dist/har-service/src/services/schemas/LicensePolicyFailureDetailConfig.d.ts +13 -0
  6. package/dist/har-service/src/services/schemas/LicensePolicyFailureDetailConfig.js +4 -0
  7. package/dist/har-service/src/services/schemas/PackageAgeViolationPolicyFailureDetailConfig.d.ts +13 -0
  8. package/dist/har-service/src/services/schemas/PackageAgeViolationPolicyFailureDetailConfig.js +4 -0
  9. package/dist/har-service/src/services/schemas/PolicyFailureDetail.d.ts +14 -0
  10. package/dist/har-service/src/services/schemas/PolicyFailureDetail.js +1 -0
  11. package/dist/har-service/src/services/schemas/PolicyFailureDetailCategory.d.ts +4 -0
  12. package/dist/har-service/src/services/schemas/PolicyFailureDetailCategory.js +4 -0
  13. package/dist/har-service/src/services/schemas/PolicySets.d.ts +13 -0
  14. package/dist/har-service/src/services/schemas/PolicySets.js +4 -0
  15. package/dist/har-service/src/services/schemas/SecurityPolicyFailureDetailConfig.d.ts +10 -0
  16. package/dist/har-service/src/services/schemas/SecurityPolicyFailureDetailConfig.js +1 -0
  17. package/dist/har-service/src/services/schemas/SecurityPolicyFailureVulnerability.d.ts +19 -0
  18. package/dist/har-service/src/services/schemas/SecurityPolicyFailureVulnerability.js +4 -0
  19. package/package.json +1 -1
@@ -8,6 +8,7 @@ export interface GetArtifactScanDetailsQueryPathParams {
8
8
  }
9
9
  export interface GetArtifactScanDetailsQueryQueryParams {
10
10
  account_identifier: string;
11
+ policy_set_ref?: string;
11
12
  }
12
13
  export type GetArtifactScanDetailsOkResponse = ResponseWithPagination<ArtifactScanDetailsResponseResponse>;
13
14
  export type GetArtifactScanDetailsErrorResponse = V3Error;
@@ -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';
@@ -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
@@ -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,14 @@
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
+ };
@@ -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 {};
@@ -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.42.0",
3
+ "version": "0.44.0",
4
4
  "description": "Harness HAR Service APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",