@harnessio/react-har-service-client 0.57.0 → 0.58.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/hooks/useCopyMutation.d.ts +1 -0
  2. package/dist/har-service/src/services/hooks/useDeleteArtifactVersionMutation.d.ts +4 -0
  3. package/dist/har-service/src/services/hooks/useDeleteQuarantineFilePathMutation.d.ts +4 -0
  4. package/dist/har-service/src/services/hooks/useGetArtifactDetailsQuery.d.ts +4 -0
  5. package/dist/har-service/src/services/hooks/useGetArtifactFileQuery.d.ts +4 -0
  6. package/dist/har-service/src/services/hooks/useGetArtifactFilesQuery.d.ts +4 -0
  7. package/dist/har-service/src/services/hooks/useGetArtifactVersionSummaryQuery.d.ts +4 -0
  8. package/dist/har-service/src/services/hooks/useGetMetadataQuery.d.ts +1 -0
  9. package/dist/har-service/src/services/index.d.ts +0 -1
  10. package/dist/har-service/src/services/schemas/ArtifactDetail.d.ts +3 -0
  11. package/dist/har-service/src/services/schemas/ArtifactScanDetailsV3.d.ts +9 -0
  12. package/dist/har-service/src/services/schemas/ArtifactScanV3.d.ts +15 -3
  13. package/dist/har-service/src/services/schemas/ArtifactVersionSummary.d.ts +3 -0
  14. package/dist/har-service/src/services/schemas/MetadataInput.d.ts +3 -0
  15. package/dist/har-service/src/services/schemas/PackageType.d.ts +1 -1
  16. package/dist/har-service/src/services/schemas/PipelineBuildInfoViolationV3.d.ts +4 -0
  17. package/dist/har-service/src/services/schemas/PolicyFailureDetailCategoryV3.d.ts +1 -1
  18. package/dist/har-service/src/services/schemas/PolicyFailureDetailV3.d.ts +1 -2
  19. package/dist/har-service/src/services/schemas/QuarantineRequest.d.ts +3 -0
  20. package/dist/har-service/src/services/schemas/VersionMetadata.d.ts +3 -0
  21. package/dist/har-service/src/services/schemas/VersionV3.d.ts +3 -0
  22. package/package.json +1 -1
  23. package/dist/har-service/src/services/schemas/MaliciousPackagePolicyFailureDetailConfigV3.d.ts +0 -17
  24. package/dist/har-service/src/services/schemas/MaliciousPackagePolicyFailureDetailConfigV3.js +0 -4
@@ -18,6 +18,7 @@ export interface CopyMutationQueryParams {
18
18
  target_project_identifier?: string;
19
19
  target_registry_identifier: string;
20
20
  artifact_type?: 'dataset' | 'model';
21
+ filters?: string;
21
22
  }
22
23
  export type CopyOkResponse = ResponseWithPagination<CopyResponseResponse>;
23
24
  export type CopyErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
@@ -14,6 +14,10 @@ export interface DeleteArtifactVersionMutationPathParams {
14
14
  }
15
15
  export interface DeleteArtifactVersionMutationQueryParams {
16
16
  artifact_type?: 'dataset' | 'model';
17
+ /**
18
+ * @example "architecture:amd64,distribution:ubuntu"
19
+ */
20
+ filters?: string;
17
21
  }
18
22
  export type DeleteArtifactVersionOkResponse = ResponseWithPagination<SuccessResponse>;
19
23
  export type DeleteArtifactVersionErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
@@ -14,6 +14,10 @@ export interface DeleteQuarantineFilePathMutationQueryParams {
14
14
  version?: string;
15
15
  file_path?: string;
16
16
  artifact_type?: 'dataset' | 'model';
17
+ /**
18
+ * @example "architecture:amd64,distribution:ubuntu"
19
+ */
20
+ filters?: string;
17
21
  }
18
22
  export type DeleteQuarantineFilePathOkResponse = ResponseWithPagination<SuccessResponse>;
19
23
  export type DeleteQuarantineFilePathErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | InternalServerErrorResponse;
@@ -15,6 +15,10 @@ export interface GetArtifactDetailsQueryPathParams {
15
15
  export interface GetArtifactDetailsQueryQueryParams {
16
16
  artifact_type?: 'dataset' | 'model';
17
17
  childVersion?: string;
18
+ /**
19
+ * @example "architecture:amd64,distribution:ubuntu"
20
+ */
21
+ filters?: string;
18
22
  }
19
23
  export type GetArtifactDetailsOkResponse = ResponseWithPagination<ArtifactDetailResponseResponse>;
20
24
  export type GetArtifactDetailsErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
@@ -15,6 +15,10 @@ export interface GetArtifactFileQueryPathParams {
15
15
  }
16
16
  export interface GetArtifactFileQueryQueryParams {
17
17
  artifact_type?: 'dataset' | 'model';
18
+ /**
19
+ * @example "architecture:amd64,distribution:ubuntu"
20
+ */
21
+ filters?: string;
18
22
  }
19
23
  export type GetArtifactFileOkResponse = ResponseWithPagination<ArtifactFileResponseResponse>;
20
24
  export type GetArtifactFileErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
@@ -27,6 +27,10 @@ export interface GetArtifactFilesQueryQueryParams {
27
27
  sort_order?: string;
28
28
  sort_field?: string;
29
29
  search_term?: string;
30
+ /**
31
+ * @example "architecture:amd64,distribution:ubuntu"
32
+ */
33
+ filters?: string;
30
34
  }
31
35
  export type GetArtifactFilesOkResponse = ResponseWithPagination<FileDetailResponseResponse>;
32
36
  export type GetArtifactFilesErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
@@ -15,6 +15,10 @@ export interface GetArtifactVersionSummaryQueryPathParams {
15
15
  export interface GetArtifactVersionSummaryQueryQueryParams {
16
16
  artifact_type?: 'dataset' | 'model';
17
17
  digest?: string;
18
+ /**
19
+ * @example "architecture:amd64,distribution:ubuntu"
20
+ */
21
+ filters?: string;
18
22
  }
19
23
  export type GetArtifactVersionSummaryOkResponse = ResponseWithPagination<ArtifactVersionSummaryResponseResponse>;
20
24
  export type GetArtifactVersionSummaryErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
@@ -13,6 +13,7 @@ export interface GetMetadataQueryQueryParams {
13
13
  path?: string;
14
14
  package?: string;
15
15
  version?: string;
16
+ filters?: string;
16
17
  }
17
18
  export type GetMetadataOkResponse = ResponseWithPagination<MetadataResponseResponse>;
18
19
  export type GetMetadataErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
@@ -452,7 +452,6 @@ export type { ListVersionsResponseBodyV3 } from './schemas/ListVersionsResponseB
452
452
  export type { ListWebhooks } from './schemas/ListWebhooks';
453
453
  export type { ListWebhooksExecutions } from './schemas/ListWebhooksExecutions';
454
454
  export type { LocalReplicationRegistry } from './schemas/LocalReplicationRegistry';
455
- export type { MaliciousPackagePolicyFailureDetailConfigV3 } from './schemas/MaliciousPackagePolicyFailureDetailConfigV3';
456
455
  export type { MavenArtifactDetailConfig } from './schemas/MavenArtifactDetailConfig';
457
456
  export type { Meta } from './schemas/Meta';
458
457
  export type { MetaV3 } from './schemas/MetaV3';
@@ -20,6 +20,9 @@ import type { PackageType } from '../schemas/PackageType';
20
20
  * Artifact Detail
21
21
  */
22
22
  export type ArtifactDetail = (DockerArtifactDetailConfig | HelmArtifactDetailConfig | GenericArtifactDetailConfig | MavenArtifactDetailConfig | PythonArtifactDetailConfig | NpmArtifactDetailConfig | RpmArtifactDetailConfig | NugetArtifactDetailConfig | CargoArtifactDetailConfig | GoArtifactDetailConfig | HuggingFaceArtifactDetailConfig | CondaArtifactDetailConfig | DartArtifactDetailConfig | ComposerArtifactDetailConfig | SwiftArtifactDetailConfig | PuppetArtifactDetailConfig) & {
23
+ artifactKey?: {
24
+ [key: string]: string;
25
+ };
23
26
  artifactType?: ArtifactType;
24
27
  createdAt?: string;
25
28
  createdBy?: string;
@@ -20,6 +20,15 @@ export interface ArtifactScanDetailsV3 {
20
20
  */
21
21
  packageName: string;
22
22
  packageType: PackageTypeV3;
23
+ /**
24
+ * Parent virtual registry UUID
25
+ * @format uuid
26
+ */
27
+ parentRegistryId: string;
28
+ /**
29
+ * Parent virtual registry name
30
+ */
31
+ parentRegistryName: string;
23
32
  policySetFailureDetails: PolicySetFailureDetailV3[];
24
33
  /**
25
34
  * Registry ID
@@ -3,11 +3,15 @@ import type { PackageTypeV3 } from '../schemas/PackageTypeV3';
3
3
  import type { PolicySetFailureDetailV3 } from '../schemas/PolicySetFailureDetailV3';
4
4
  import type { PolicyFailureDetailCategoryV3 } from '../schemas/PolicyFailureDetailCategoryV3';
5
5
  export interface ArtifactScanV3 {
6
- buildDetails: BuildDetailsV3;
7
6
  /**
8
- * Dependency type
7
+ * Organization identifier
8
+ */
9
+ RegistryOrgId?: string;
10
+ /**
11
+ * Project identifier
9
12
  */
10
- dependencyType: 'DIRECT' | 'TRANSITIVE';
13
+ RegistryProjectId?: string;
14
+ buildDetails: BuildDetailsV3;
11
15
  id: string;
12
16
  lastEvaluatedAt?: string;
13
17
  lastEvaluatedBy?: string;
@@ -16,6 +20,14 @@ export interface ArtifactScanV3 {
16
20
  */
17
21
  packageName: string;
18
22
  packageType: PackageTypeV3;
23
+ /**
24
+ * Parent virtual registry UUID
25
+ */
26
+ parentRegistryId: string;
27
+ /**
28
+ * Parent virtual registry name
29
+ */
30
+ parentRegistryName: string;
19
31
  policySets: PolicySetFailureDetailV3[];
20
32
  /**
21
33
  * Package URL (PURL) identifying the package version
@@ -5,6 +5,9 @@ import type { RegistryType } from '../schemas/RegistryType';
5
5
  * Docker Artifact Version Summary
6
6
  */
7
7
  export interface ArtifactVersionSummary {
8
+ artifactKey?: {
9
+ [key: string]: string;
10
+ };
8
11
  artifactType?: ArtifactType;
9
12
  /**
10
13
  * Timestamp in milliseconds when the artifact was soft deleted. Null if not deleted.
@@ -11,6 +11,9 @@ import type { MetadataItemInput } from '../schemas/MetadataItemInput';
11
11
  * @example {"metadata":[{"key":"environment","value":"production"},{"key":"team","value":"backend"}],"package":"my-package","path":"/path/to/entity","registryIdentifier":"my-registry","version":"1.0.0"}
12
12
  */
13
13
  export interface MetadataInput {
14
+ artifactKeyFilters?: {
15
+ [key: string]: string;
16
+ };
14
17
  /**
15
18
  * Array of metadata key-value pairs
16
19
  */
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * refers to package
3
3
  */
4
- export type PackageType = 'CARGO' | 'COMPOSER' | 'CONDA' | 'DART' | 'DOCKER' | 'GENERIC' | 'GO' | 'HELM' | 'HUGGINGFACE' | 'MAVEN' | 'NPM' | 'NUGET' | 'PUPPET' | 'PYTHON' | 'RAW' | 'RPM' | 'SWIFT';
4
+ export type PackageType = 'CARGO' | 'COMPOSER' | 'CONDA' | 'DART' | 'DEBIAN' | 'DOCKER' | 'GENERIC' | 'GO' | 'HELM' | 'HUGGINGFACE' | 'MAVEN' | 'NPM' | 'NUGET' | 'PUPPET' | 'PYTHON' | 'RAW' | 'RPM' | 'SWIFT';
@@ -6,6 +6,10 @@ export interface PipelineBuildInfoViolationV3 {
6
6
  * Package name and version (package@version).
7
7
  */
8
8
  package: string;
9
+ /**
10
+ * Package URL.
11
+ */
12
+ purl: string;
9
13
  /**
10
14
  * Scan identifier.
11
15
  */
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * Policy failure detail category.
3
3
  */
4
- export type PolicyFailureDetailCategoryV3 = 'License' | 'MaliciousPackage' | 'OssRiskLevel' | 'PackageAge' | 'Security' | 'Unknown';
4
+ export type PolicyFailureDetailCategoryV3 = 'License' | 'OssRiskLevel' | 'PackageAge' | 'Security' | 'Unknown';
@@ -2,12 +2,11 @@ import type { SecurityPolicyFailureDetailConfigV3 } from '../schemas/SecurityPol
2
2
  import type { LicensePolicyFailureDetailConfigV3 } from '../schemas/LicensePolicyFailureDetailConfigV3';
3
3
  import type { PackageAgeViolationPolicyFailureDetailConfigV3 } from '../schemas/PackageAgeViolationPolicyFailureDetailConfigV3';
4
4
  import type { OssRiskLevelPolicyFailureDetailConfigV3 } from '../schemas/OssRiskLevelPolicyFailureDetailConfigV3';
5
- import type { MaliciousPackagePolicyFailureDetailConfigV3 } from '../schemas/MaliciousPackagePolicyFailureDetailConfigV3';
6
5
  import type { PolicyFailureDetailCategoryV3 } from '../schemas/PolicyFailureDetailCategoryV3';
7
6
  /**
8
7
  * Policy failure detail entry.
9
8
  */
10
- export type PolicyFailureDetailV3 = (SecurityPolicyFailureDetailConfigV3 | LicensePolicyFailureDetailConfigV3 | PackageAgeViolationPolicyFailureDetailConfigV3 | OssRiskLevelPolicyFailureDetailConfigV3 | MaliciousPackagePolicyFailureDetailConfigV3) & {
9
+ export type PolicyFailureDetailV3 = (SecurityPolicyFailureDetailConfigV3 | LicensePolicyFailureDetailConfigV3 | PackageAgeViolationPolicyFailureDetailConfigV3 | OssRiskLevelPolicyFailureDetailConfigV3) & {
11
10
  category: PolicyFailureDetailCategoryV3;
12
11
  /**
13
12
  * Policy name.
@@ -1,5 +1,8 @@
1
1
  export interface QuarantineRequest {
2
2
  artifact: string;
3
+ artifactKeyFilters?: {
4
+ [key: string]: string;
5
+ };
3
6
  artifactType?: string;
4
7
  filePath?: string;
5
8
  reason: string;
@@ -8,6 +8,9 @@ import type { RegistryType } from '../schemas/RegistryType';
8
8
  * Version Metadata
9
9
  */
10
10
  export interface VersionMetadata {
11
+ artifactKey?: {
12
+ [key: string]: any;
13
+ };
11
14
  artifactType?: ArtifactType;
12
15
  /**
13
16
  * Timestamp in milliseconds when the registry was soft-deleted
@@ -11,6 +11,9 @@ import type { ScanStatusV3 } from '../schemas/ScanStatusV3';
11
11
  * Version metadata
12
12
  */
13
13
  export interface VersionV3 {
14
+ artifactKey?: {
15
+ [key: string]: any;
16
+ };
14
17
  deletedAt?: DeletedAtMsV3;
15
18
  deploymentMetadata?: DeploymentMetadataV3;
16
19
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-har-service-client",
3
- "version": "0.57.0",
3
+ "version": "0.58.0",
4
4
  "description": "Harness HAR Service APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",
@@ -1,17 +0,0 @@
1
- /**
2
- * Malicious package failure detail payload.
3
- */
4
- export interface MaliciousPackagePolicyFailureDetailConfigV3 {
5
- /**
6
- * The blocked package identifier (purl).
7
- */
8
- blockedPackage: string;
9
- /**
10
- * Human-readable message describing the violation.
11
- */
12
- message?: string;
13
- /**
14
- * The reason the package is blocked.
15
- */
16
- reason: string;
17
- }
@@ -1,4 +0,0 @@
1
- /* eslint-disable */
2
- // This code is autogenerated using @harnessio/oats-cli.
3
- // Please do not modify this code directly.
4
- export {};