@harnessio/react-har-service-client 0.69.0 → 0.71.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.
@@ -0,0 +1,21 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { RebuildRegistryIndexAcceptedV3Response } from '../responses/RebuildRegistryIndexAcceptedV3Response';
3
+ import type { ErrorV3 } from '../schemas/ErrorV3';
4
+ import type { ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
+ export interface RebuildRegistryIndexV3MutationPathParams {
7
+ id: string;
8
+ }
9
+ export interface RebuildRegistryIndexV3MutationQueryParams {
10
+ account_identifier: string;
11
+ }
12
+ export type RebuildRegistryIndexV3OkResponse = ResponseWithPagination<RebuildRegistryIndexAcceptedV3Response>;
13
+ export type RebuildRegistryIndexV3ErrorResponse = ErrorV3;
14
+ export interface RebuildRegistryIndexV3Props extends RebuildRegistryIndexV3MutationPathParams, Omit<FetcherOptions<RebuildRegistryIndexV3MutationQueryParams, unknown>, 'url'> {
15
+ queryParams: RebuildRegistryIndexV3MutationQueryParams;
16
+ }
17
+ export declare function rebuildRegistryIndexV3(props: RebuildRegistryIndexV3Props): Promise<RebuildRegistryIndexV3OkResponse>;
18
+ /**
19
+ * Trigger an asynchronous rebuild of the repository index for the given registry. The rebuild runs in the background; this endpoint returns immediately once the request is accepted. Index rebuild is package-type specific — it is currently supported only for HELM_HTTP registries. Registries whose package type does not maintain a rebuildable index return 405.
20
+ */
21
+ export declare function useRebuildRegistryIndexV3Mutation(options?: Omit<UseMutationOptions<RebuildRegistryIndexV3OkResponse, RebuildRegistryIndexV3ErrorResponse, RebuildRegistryIndexV3Props>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<RebuildRegistryIndexV3OkResponse, ErrorV3, RebuildRegistryIndexV3Props, 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 rebuildRegistryIndexV3(props) {
7
+ return fetcher(Object.assign({ url: `/v3/registries/${props.id}/rebuild-index`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Trigger an asynchronous rebuild of the repository index for the given registry. The rebuild runs in the background; this endpoint returns immediately once the request is accepted. Index rebuild is package-type specific — it is currently supported only for HELM_HTTP registries. Registries whose package type does not maintain a rebuildable index return 405.
11
+ */
12
+ export function useRebuildRegistryIndexV3Mutation(options) {
13
+ return useMutation((mutateProps) => rebuildRegistryIndexV3(mutateProps), options);
14
+ }
@@ -221,6 +221,8 @@ export type { QuarantineFilePathErrorResponse, QuarantineFilePathMutationPathPar
221
221
  export { quarantineFilePath, useQuarantineFilePathMutation, } from './hooks/useQuarantineFilePathMutation';
222
222
  export type { ReTriggerWebhookExecutionErrorResponse, ReTriggerWebhookExecutionOkResponse, ReTriggerWebhookExecutionProps, ReTriggerWebhookExecutionQueryPathParams, } from './hooks/useReTriggerWebhookExecutionQuery';
223
223
  export { reTriggerWebhookExecution, useReTriggerWebhookExecutionQuery, } from './hooks/useReTriggerWebhookExecutionQuery';
224
+ export type { RebuildRegistryIndexV3ErrorResponse, RebuildRegistryIndexV3MutationPathParams, RebuildRegistryIndexV3MutationQueryParams, RebuildRegistryIndexV3OkResponse, RebuildRegistryIndexV3Props, } from './hooks/useRebuildRegistryIndexV3Mutation';
225
+ export { rebuildRegistryIndexV3, useRebuildRegistryIndexV3Mutation, } from './hooks/useRebuildRegistryIndexV3Mutation';
224
226
  export type { RebuildVersionMetadataV3ErrorResponse, RebuildVersionMetadataV3MutationQueryParams, RebuildVersionMetadataV3OkResponse, RebuildVersionMetadataV3Props, RebuildVersionMetadataV3RequestBody, } from './hooks/useRebuildVersionMetadataV3Mutation';
225
227
  export { rebuildVersionMetadataV3, useRebuildVersionMetadataV3Mutation, } from './hooks/useRebuildVersionMetadataV3Mutation';
226
228
  export type { RedirectHarnessArtifactErrorResponse, RedirectHarnessArtifactOkResponse, RedirectHarnessArtifactProps, RedirectHarnessArtifactQueryPathParams, RedirectHarnessArtifactQueryQueryParams, } from './hooks/useRedirectHarnessArtifactQuery';
@@ -367,6 +369,7 @@ export type { MetadataValuesResponseV3Response } from './responses/MetadataValue
367
369
  export type { NotFoundResponse } from './responses/NotFoundResponse';
368
370
  export type { PlainTextResponseResponse } from './responses/PlainTextResponseResponse';
369
371
  export type { QuarantinePathResponseResponse } from './responses/QuarantinePathResponseResponse';
372
+ export type { RebuildRegistryIndexAcceptedV3Response } from './responses/RebuildRegistryIndexAcceptedV3Response';
370
373
  export type { RebuildVersionMetadataAcceptedV3Response } from './responses/RebuildVersionMetadataAcceptedV3Response';
371
374
  export type { RedirectResponse } from './responses/RedirectResponse';
372
375
  export type { RedirectV3Response } from './responses/RedirectV3Response';
@@ -477,6 +480,7 @@ export type { GoArtifactDetailConfig } from './schemas/GoArtifactDetailConfig';
477
480
  export type { HelmArtifactDetail } from './schemas/HelmArtifactDetail';
478
481
  export type { HelmArtifactDetailConfig } from './schemas/HelmArtifactDetailConfig';
479
482
  export type { HelmArtifactManifest } from './schemas/HelmArtifactManifest';
483
+ export type { HelmHttpArtifactDetailConfig } from './schemas/HelmHttpArtifactDetailConfig';
480
484
  export type { HuggingFaceArtifactDetailConfig } from './schemas/HuggingFaceArtifactDetailConfig';
481
485
  export type { JfrogReplicationRegistry } from './schemas/JfrogReplicationRegistry';
482
486
  export type { LicensePolicyFailureDetailConfigV3 } from './schemas/LicensePolicyFailureDetailConfigV3';
@@ -109,6 +109,7 @@ export { modifyRegistry, useModifyRegistryMutation } from './hooks/useModifyRegi
109
109
  export { patchLifecycleRuleV3, usePatchLifecycleRuleV3Mutation, } from './hooks/usePatchLifecycleRuleV3Mutation';
110
110
  export { quarantineFilePath, useQuarantineFilePathMutation, } from './hooks/useQuarantineFilePathMutation';
111
111
  export { reTriggerWebhookExecution, useReTriggerWebhookExecutionQuery, } from './hooks/useReTriggerWebhookExecutionQuery';
112
+ export { rebuildRegistryIndexV3, useRebuildRegistryIndexV3Mutation, } from './hooks/useRebuildRegistryIndexV3Mutation';
112
113
  export { rebuildVersionMetadataV3, useRebuildVersionMetadataV3Mutation, } from './hooks/useRebuildVersionMetadataV3Mutation';
113
114
  export { redirectHarnessArtifact, useRedirectHarnessArtifactQuery, } from './hooks/useRedirectHarnessArtifactQuery';
114
115
  export { restorePackageV3, useRestorePackageV3Mutation } from './hooks/useRestorePackageV3Mutation';
@@ -0,0 +1 @@
1
+ export type RebuildRegistryIndexAcceptedV3Response = unknown;
@@ -14,6 +14,7 @@ import type { DartArtifactDetailConfig } from '../schemas/DartArtifactDetailConf
14
14
  import type { ComposerArtifactDetailConfig } from '../schemas/ComposerArtifactDetailConfig';
15
15
  import type { SwiftArtifactDetailConfig } from '../schemas/SwiftArtifactDetailConfig';
16
16
  import type { PuppetArtifactDetailConfig } from '../schemas/PuppetArtifactDetailConfig';
17
+ import type { HelmHttpArtifactDetailConfig } from '../schemas/HelmHttpArtifactDetailConfig';
17
18
  import type { DebianArtifactDetailConfig } from '../schemas/DebianArtifactDetailConfig';
18
19
  import type { ArtifactType } from '../schemas/ArtifactType';
19
20
  import type { UserInfo } from '../schemas/UserInfo';
@@ -21,7 +22,7 @@ import type { PackageType } from '../schemas/PackageType';
21
22
  /**
22
23
  * Artifact Detail
23
24
  */
24
- export type ArtifactDetail = (DockerArtifactDetailConfig | HelmArtifactDetailConfig | GenericArtifactDetailConfig | MavenArtifactDetailConfig | PythonArtifactDetailConfig | NpmArtifactDetailConfig | RpmArtifactDetailConfig | NugetArtifactDetailConfig | CargoArtifactDetailConfig | GoArtifactDetailConfig | HuggingFaceArtifactDetailConfig | CondaArtifactDetailConfig | DartArtifactDetailConfig | ComposerArtifactDetailConfig | SwiftArtifactDetailConfig | PuppetArtifactDetailConfig | DebianArtifactDetailConfig) & {
25
+ export type ArtifactDetail = (DockerArtifactDetailConfig | HelmArtifactDetailConfig | GenericArtifactDetailConfig | MavenArtifactDetailConfig | PythonArtifactDetailConfig | NpmArtifactDetailConfig | RpmArtifactDetailConfig | NugetArtifactDetailConfig | CargoArtifactDetailConfig | GoArtifactDetailConfig | HuggingFaceArtifactDetailConfig | CondaArtifactDetailConfig | DartArtifactDetailConfig | ComposerArtifactDetailConfig | SwiftArtifactDetailConfig | PuppetArtifactDetailConfig | HelmHttpArtifactDetailConfig | DebianArtifactDetailConfig) & {
25
26
  artifactKey?: {
26
27
  [key: string]: string;
27
28
  };
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Config for Helm HTTP artifact details
3
+ */
4
+ export interface HelmHttpArtifactDetailConfig {
5
+ metadata?: {
6
+ [key: string]: any;
7
+ };
8
+ }
@@ -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 {};
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * refers to package
3
3
  */
4
- export type PackageType = 'CARGO' | 'COMPOSER' | 'CONDA' | 'DART' | 'DEBIAN' | 'DOCKER' | 'GENERIC' | 'GO' | 'HELM' | 'HELM_HTTP' | 'HUGGINGFACE' | 'MAVEN' | 'NPM' | 'NUGET' | 'PUPPET' | 'PYTHON' | 'RAW' | 'RPM' | 'SWIFT';
4
+ export type PackageType = 'CARGO' | 'COMPOSER' | 'CONAN' | 'CONDA' | 'DART' | 'DEBIAN' | 'DOCKER' | 'GENERIC' | 'GO' | 'HELM' | 'HELM_HTTP' | 'HUGGINGFACE' | 'MAVEN' | 'NPM' | 'NUGET' | 'PUPPET' | 'PYTHON' | 'RAW' | 'RPM' | 'SWIFT';
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Package type. Known values include: DOCKER, MAVEN, PYTHON, GENERIC, HELM, NUGET, NPM, RPM, CARGO, COMPOSER, GO, HUGGINGFACE, CONDA, DART, SWIFT, PUPPET, RAW. This field is extensible; clients must handle unknown values.
2
+ * Package type. Known values include: DOCKER, MAVEN, PYTHON, GENERIC, HELM, HELM_HTTP, NUGET, NPM, RPM, CARGO, COMPOSER, GO, HUGGINGFACE, CONDA, DART, SWIFT, PUPPET, RAW, DEBIAN, CONAN. This field is extensible; clients must handle unknown values.
3
3
  *
4
4
  * @example "DOCKER"
5
5
  */
@@ -1,4 +1,5 @@
1
1
  import type { DeletedAtMsV3 } from '../schemas/DeletedAtMsV3';
2
+ import type { UserInfoV3 } from '../schemas/UserInfoV3';
2
3
  import type { ModifiedAtMsV3 } from '../schemas/ModifiedAtMsV3';
3
4
  import type { PackageKindV3 } from '../schemas/PackageKindV3';
4
5
  import type { PackageTypeV3 } from '../schemas/PackageTypeV3';
@@ -7,6 +8,7 @@ import type { PackageTypeV3 } from '../schemas/PackageTypeV3';
7
8
  */
8
9
  export interface PackageV3 {
9
10
  deletedAt?: DeletedAtMsV3;
11
+ deletedBy?: UserInfoV3;
10
12
  /**
11
13
  * @format int64
12
14
  */
@@ -1,4 +1,5 @@
1
1
  import type { DeletedAtMsV3 } from '../schemas/DeletedAtMsV3';
2
+ import type { UserInfoV3 } from '../schemas/UserInfoV3';
2
3
  import type { ModifiedAtMsV3 } from '../schemas/ModifiedAtMsV3';
3
4
  import type { PackageTypeV3 } from '../schemas/PackageTypeV3';
4
5
  import type { RegistryTypeV3 } from '../schemas/RegistryTypeV3';
@@ -11,6 +12,7 @@ export interface RegistryV3 {
11
12
  */
12
13
  artifactsCount?: number;
13
14
  deletedAt?: DeletedAtMsV3;
15
+ deletedBy?: UserInfoV3;
14
16
  description?: string;
15
17
  /**
16
18
  * @format int64
@@ -1,11 +1,11 @@
1
1
  import type { DeletedAtMsV3 } from '../schemas/DeletedAtMsV3';
2
+ import type { UserInfoV3 } from '../schemas/UserInfoV3';
2
3
  import type { DeploymentMetadataV3 } from '../schemas/DeploymentMetadataV3';
3
4
  import type { FirewallModeV3 } from '../schemas/FirewallModeV3';
4
5
  import type { ResourceMetadataV3 } from '../schemas/ResourceMetadataV3';
5
6
  import type { ModifiedAtMsV3 } from '../schemas/ModifiedAtMsV3';
6
7
  import type { PackageKindV3 } from '../schemas/PackageKindV3';
7
8
  import type { PackageTypeV3 } from '../schemas/PackageTypeV3';
8
- import type { UserInfoV3 } from '../schemas/UserInfoV3';
9
9
  import type { RegistryTypeV3 } from '../schemas/RegistryTypeV3';
10
10
  import type { ScanStatusV3 } from '../schemas/ScanStatusV3';
11
11
  /**
@@ -16,7 +16,9 @@ export interface VersionV3 {
16
16
  [key: string]: any;
17
17
  };
18
18
  deletedAt?: DeletedAtMsV3;
19
+ deletedBy?: UserInfoV3;
19
20
  deploymentMetadata?: DeploymentMetadataV3;
21
+ digestCount?: number;
20
22
  /**
21
23
  * @format int64
22
24
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-har-service-client",
3
- "version": "0.69.0",
3
+ "version": "0.71.0",
4
4
  "description": "Harness HAR Service APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",