@harnessio/react-har-service-client 0.53.0 → 0.54.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.
@@ -14,6 +14,8 @@ export interface ListFirewallExceptionsV3QueryQueryParams {
14
14
  package_name?: string;
15
15
  version?: string;
16
16
  package_types?: string[];
17
+ registry_ids?: string[];
18
+ exception_id?: string;
17
19
  search_term?: string;
18
20
  /**
19
21
  * @format int64
@@ -0,0 +1,20 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { ErrorV3 } from '../schemas/ErrorV3';
3
+ import type { ResponseWithPagination } from '../helpers';
4
+ import { FetcherOptions } from '../../../../fetcher/index.js';
5
+ export interface MigrateRegistryV3MutationPathParams {
6
+ id: string;
7
+ }
8
+ export interface MigrateRegistryV3MutationQueryParams {
9
+ account_identifier: string;
10
+ }
11
+ export type MigrateRegistryV3OkResponse = ResponseWithPagination<unknown>;
12
+ export type MigrateRegistryV3ErrorResponse = ErrorV3;
13
+ export interface MigrateRegistryV3Props extends MigrateRegistryV3MutationPathParams, Omit<FetcherOptions<MigrateRegistryV3MutationQueryParams, unknown>, 'url'> {
14
+ queryParams: MigrateRegistryV3MutationQueryParams;
15
+ }
16
+ export declare function migrateRegistryV3(props: MigrateRegistryV3Props): Promise<MigrateRegistryV3OkResponse>;
17
+ /**
18
+ * Migrate a generic registry to raw registry type. This will change the registry type from GENERIC to RAW and delete all images associated with the registry.
19
+ */
20
+ export declare function useMigrateRegistryV3Mutation(options?: Omit<UseMutationOptions<MigrateRegistryV3OkResponse, MigrateRegistryV3ErrorResponse, MigrateRegistryV3Props>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<MigrateRegistryV3OkResponse, ErrorV3, MigrateRegistryV3Props, unknown>;
@@ -0,0 +1,14 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ import { useMutation } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../fetcher/index.js';
6
+ export function migrateRegistryV3(props) {
7
+ return fetcher(Object.assign({ url: `/v3/registries/${props.id}/migrate`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Migrate a generic registry to raw registry type. This will change the registry type from GENERIC to RAW and delete all images associated with the registry.
11
+ */
12
+ export function useMigrateRegistryV3Mutation(options) {
13
+ return useMutation((mutateProps) => migrateRegistryV3(mutateProps), options);
14
+ }
@@ -181,6 +181,8 @@ export type { ListWebhookExecutionsErrorResponse, ListWebhookExecutionsOkRespons
181
181
  export { listWebhookExecutions, useListWebhookExecutionsQuery, } from './hooks/useListWebhookExecutionsQuery';
182
182
  export type { ListWebhooksErrorResponse, ListWebhooksOkResponse, ListWebhooksProps, ListWebhooksQueryPathParams, ListWebhooksQueryQueryParams, } from './hooks/useListWebhooksQuery';
183
183
  export { listWebhooks, useListWebhooksQuery } from './hooks/useListWebhooksQuery';
184
+ export type { MigrateRegistryV3ErrorResponse, MigrateRegistryV3MutationPathParams, MigrateRegistryV3MutationQueryParams, MigrateRegistryV3OkResponse, MigrateRegistryV3Props, } from './hooks/useMigrateRegistryV3Mutation';
185
+ export { migrateRegistryV3, useMigrateRegistryV3Mutation, } from './hooks/useMigrateRegistryV3Mutation';
184
186
  export type { ModifyRegistryErrorResponse, ModifyRegistryMutationPathParams, ModifyRegistryOkResponse, ModifyRegistryProps, ModifyRegistryRequestBody, } from './hooks/useModifyRegistryMutation';
185
187
  export { modifyRegistry, useModifyRegistryMutation } from './hooks/useModifyRegistryMutation';
186
188
  export type { QuarantineFilePathErrorResponse, QuarantineFilePathMutationPathParams, QuarantineFilePathOkResponse, QuarantineFilePathProps, QuarantineFilePathRequestBody, } from './hooks/useQuarantineFilePathMutation';
@@ -89,6 +89,7 @@ export { listVersions, useListVersionsQuery } from './hooks/useListVersionsQuery
89
89
  export { listVersionsV3, useListVersionsV3Query } from './hooks/useListVersionsV3Query';
90
90
  export { listWebhookExecutions, useListWebhookExecutionsQuery, } from './hooks/useListWebhookExecutionsQuery';
91
91
  export { listWebhooks, useListWebhooksQuery } from './hooks/useListWebhooksQuery';
92
+ export { migrateRegistryV3, useMigrateRegistryV3Mutation, } from './hooks/useMigrateRegistryV3Mutation';
92
93
  export { modifyRegistry, useModifyRegistryMutation } from './hooks/useModifyRegistryMutation';
93
94
  export { quarantineFilePath, useQuarantineFilePathMutation, } from './hooks/useQuarantineFilePathMutation';
94
95
  export { reTriggerWebhookExecution, useReTriggerWebhookExecutionQuery, } from './hooks/useReTriggerWebhookExecutionQuery';
@@ -19,7 +19,7 @@ export interface ArtifactMetadata {
19
19
  */
20
20
  downloadsCount?: number;
21
21
  fileCount?: number;
22
- firewallMode?: 'ALLOW' | 'BLOCK' | 'WARN';
22
+ firewallMode?: 'ALLOW' | 'ENABLED' | 'QUARANTINE';
23
23
  isQuarantined?: boolean;
24
24
  labels?: string[];
25
25
  lastModified?: string;
@@ -10,6 +10,10 @@ export interface ArtifactScanV3 {
10
10
  packageName: string;
11
11
  packageType: PackageTypeV3;
12
12
  policySets: PolicySetsV3;
13
+ /**
14
+ * Package URL (PURL) identifying the package version
15
+ */
16
+ purl: string;
13
17
  /**
14
18
  * Registry name
15
19
  */
@@ -25,7 +25,7 @@ export interface ArtifactVersionMetadata {
25
25
  * @format int64
26
26
  */
27
27
  fileCount?: number;
28
- firewallMode?: 'ALLOW' | 'BLOCK' | 'WARN';
28
+ firewallMode?: 'ALLOW' | 'ENABLED' | 'QUARANTINE';
29
29
  isQuarantined?: boolean;
30
30
  lastModified?: string;
31
31
  lastScannedAt?: string;
@@ -10,7 +10,7 @@ export interface ArtifactVersionSummary {
10
10
  * Timestamp in milliseconds when the artifact was soft deleted. Null if not deleted.
11
11
  */
12
12
  deletedAt?: string;
13
- firewallMode?: 'ALLOW' | 'BLOCK' | 'WARN';
13
+ firewallMode?: 'ALLOW' | 'ENABLED' | 'QUARANTINE';
14
14
  imageName: string;
15
15
  isQuarantined?: boolean;
16
16
  lastScannedAt?: string;
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * Firewall mode
3
3
  */
4
- export type FirewallModeV3 = 'ALLOW' | 'BLOCK' | 'WARN';
4
+ export type FirewallModeV3 = 'ALLOW' | 'ENABLED' | 'QUARANTINE';
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * Firewall mode applied to an upstream proxy.
3
3
  */
4
- export type UpstreamProxyConfigFirewallMode = 'ALLOW' | 'BLOCK' | 'WARN';
4
+ export type UpstreamProxyConfigFirewallMode = 'ALLOW' | 'ENABLED' | 'QUARANTINE';
@@ -22,7 +22,7 @@ export interface VersionMetadata {
22
22
  */
23
23
  downloadsCount?: number;
24
24
  fileCount?: number;
25
- firewallMode?: 'ALLOW' | 'BLOCK' | 'WARN';
25
+ firewallMode?: 'ALLOW' | 'ENABLED' | 'QUARANTINE';
26
26
  isQuarantined?: boolean;
27
27
  lastModified: string;
28
28
  lastScannedAt?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-har-service-client",
3
- "version": "0.53.0",
3
+ "version": "0.54.0",
4
4
  "description": "Harness HAR Service APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",