@harnessio/react-har-service-client 0.0.21 → 0.0.23

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.
@@ -58,7 +58,7 @@ export function fetcher(options) {
58
58
  const asJson = contentType && JSON_CONTENT_TYPES.some((h) => contentType.startsWith(h));
59
59
  const data = yield (asJson ? response.json() : response.text());
60
60
  if (response.ok) {
61
- return Object.assign({ data }, (pagination ? { pagination: { total, pageCount, pageSize, pageNumber } } : {}));
61
+ return Object.assign({ content: data }, (pagination ? { pagination: { total, pageCount, pageSize, pageNumber } } : {}));
62
62
  }
63
63
  throw data;
64
64
  });
@@ -118,6 +118,8 @@ export type { RegistryMetadata } from './schemas/RegistryMetadata';
118
118
  export type { RegistryRequest } from './schemas/RegistryRequest';
119
119
  export type { RegistryType } from './schemas/RegistryType';
120
120
  export type { SbomDetails } from './schemas/SbomDetails';
121
+ export type { Scanner } from './schemas/Scanner';
122
+ export type { SlsaDetails } from './schemas/SlsaDetails';
121
123
  export type { Status } from './schemas/Status';
122
124
  export type { StoDetails } from './schemas/StoDetails';
123
125
  export type { StoDigestMetadata } from './schemas/StoDigestMetadata';
@@ -1,6 +1,7 @@
1
1
  import type { BuildDetails } from '../schemas/BuildDetails';
2
2
  import type { DeploymentDetails } from '../schemas/DeploymentDetails';
3
3
  import type { SbomDetails } from '../schemas/SbomDetails';
4
+ import type { SlsaDetails } from '../schemas/SlsaDetails';
4
5
  import type { StoDetails } from '../schemas/StoDetails';
5
6
  /**
6
7
  * Docker Artifact Detail
@@ -9,5 +10,6 @@ export interface DockerArtifactIntegrationDetail {
9
10
  buildDetails?: BuildDetails;
10
11
  deploymentsDetails?: DeploymentDetails;
11
12
  sbomDetails?: SbomDetails;
13
+ slsaDetails?: SlsaDetails;
12
14
  stoDetails?: StoDetails;
13
15
  }
@@ -1,6 +1,7 @@
1
1
  import type { CleanupPolicy } from '../schemas/CleanupPolicy';
2
2
  import type { RegistryConfig } from '../schemas/RegistryConfig';
3
3
  import type { PackageType } from '../schemas/PackageType';
4
+ import type { Scanner } from '../schemas/Scanner';
4
5
  export interface RegistryRequest<T0 extends RegistryConfig = RegistryConfig> {
5
6
  allowedPattern?: string[];
6
7
  blockedPattern?: string[];
@@ -11,4 +12,5 @@ export interface RegistryRequest<T0 extends RegistryConfig = RegistryConfig> {
11
12
  labels?: string[];
12
13
  packageType: PackageType;
13
14
  parentRef?: string;
15
+ scanners?: Scanner[];
14
16
  }
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Scanner for Harness Artifact Registries
3
+ */
4
+ export interface Scanner {
5
+ name?: 'AQUA_TRIVY' | 'GRYPE';
6
+ }
@@ -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,4 @@
1
+ export interface SlsaDetails {
2
+ provenanceId: string;
3
+ status: string;
4
+ }
@@ -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.0.21",
3
+ "version": "0.0.23",
4
4
  "description": "Harness HAR Service APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",