@harnessio/react-har-service-client 0.81.0 → 0.83.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.
@@ -13,6 +13,7 @@ export interface GetClientSetupDetailsQueryPathParams {
13
13
  export interface GetClientSetupDetailsQueryQueryParams {
14
14
  artifact?: string;
15
15
  version?: string;
16
+ artifact_type?: 'dataset' | 'model' | 'module' | 'provider';
16
17
  }
17
18
  export type GetClientSetupDetailsOkResponse = ResponseWithPagination<ClientSetupDetailsResponseResponse>;
18
19
  export type GetClientSetupDetailsErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
@@ -0,0 +1,35 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { ListFilesResponseV3Response } from '../responses/ListFilesResponseV3Response';
3
+ import type { ErrorV3 } from '../schemas/ErrorV3';
4
+ import type { SearchRegistryFilesRequestV3RequestBody } from '../requestBodies/SearchRegistryFilesRequestV3RequestBody';
5
+ import type { ResponseWithPagination } from '../helpers';
6
+ import { FetcherOptions } from '../../../../fetcher/index.js';
7
+ export interface SearchRegistryFilesV3MutationQueryParams {
8
+ account_identifier: string;
9
+ org_identifier?: string;
10
+ project_identifier?: string;
11
+ /**
12
+ * @format int64
13
+ * @default 0
14
+ */
15
+ page?: number;
16
+ /**
17
+ * @format int64
18
+ * @default 20
19
+ */
20
+ size?: number;
21
+ sort?: string;
22
+ }
23
+ export type SearchRegistryFilesV3RequestBody = SearchRegistryFilesRequestV3RequestBody;
24
+ export type SearchRegistryFilesV3OkResponse = ResponseWithPagination<ListFilesResponseV3Response>;
25
+ export type SearchRegistryFilesV3ErrorResponse = ErrorV3;
26
+ export interface SearchRegistryFilesV3Props extends Omit<FetcherOptions<SearchRegistryFilesV3MutationQueryParams, SearchRegistryFilesV3RequestBody>, 'url'> {
27
+ queryParams: SearchRegistryFilesV3MutationQueryParams;
28
+ body: SearchRegistryFilesV3RequestBody;
29
+ }
30
+ export declare function searchRegistryFilesV3(props: SearchRegistryFilesV3Props): Promise<SearchRegistryFilesV3OkResponse>;
31
+ /**
32
+ * Search files across a registry using a POSIX regular expression matched server-side against the full node path. Filter payload is sent in the request body so that regex characters such as `?`, `&`, `+`, `#` and `%` do not need URL-encoding and are not truncated by proxies. Backs the CLI bulk-download flow: the server performs regex filtering and the client parallelizes the individual file downloads.
33
+ *
34
+ */
35
+ export declare function useSearchRegistryFilesV3Mutation(options?: Omit<UseMutationOptions<SearchRegistryFilesV3OkResponse, SearchRegistryFilesV3ErrorResponse, SearchRegistryFilesV3Props>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<SearchRegistryFilesV3OkResponse, ErrorV3, SearchRegistryFilesV3Props, unknown>;
@@ -0,0 +1,15 @@
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 searchRegistryFilesV3(props) {
7
+ return fetcher(Object.assign({ url: `/v3/files/search`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Search files across a registry using a POSIX regular expression matched server-side against the full node path. Filter payload is sent in the request body so that regex characters such as `?`, `&`, `+`, `#` and `%` do not need URL-encoding and are not truncated by proxies. Backs the CLI bulk-download flow: the server performs regex filtering and the client parallelizes the individual file downloads.
11
+ *
12
+ */
13
+ export function useSearchRegistryFilesV3Mutation(options) {
14
+ return useMutation((mutateProps) => searchRegistryFilesV3(mutateProps), options);
15
+ }
@@ -273,6 +273,8 @@ export type { SaveVersionMetadataV3ErrorResponse, SaveVersionMetadataV3MutationP
273
273
  export { saveVersionMetadataV3, useSaveVersionMetadataV3Mutation, } from './hooks/useSaveVersionMetadataV3Mutation';
274
274
  export type { SearchFilesErrorResponse, SearchFilesOkResponse, SearchFilesProps, SearchFilesQueryQueryParams, } from './hooks/useSearchFilesQuery';
275
275
  export { searchFiles, useSearchFilesQuery } from './hooks/useSearchFilesQuery';
276
+ export type { SearchRegistryFilesV3ErrorResponse, SearchRegistryFilesV3MutationQueryParams, SearchRegistryFilesV3OkResponse, SearchRegistryFilesV3Props, SearchRegistryFilesV3RequestBody, } from './hooks/useSearchRegistryFilesV3Mutation';
277
+ export { searchRegistryFilesV3, useSearchRegistryFilesV3Mutation, } from './hooks/useSearchRegistryFilesV3Mutation';
276
278
  export type { StartMigrationErrorResponse, StartMigrationMutationPathParams, StartMigrationOkResponse, StartMigrationProps, } from './hooks/useStartMigrationMutation';
277
279
  export { startMigration, useStartMigrationMutation } from './hooks/useStartMigrationMutation';
278
280
  export type { StopMigrationErrorResponse, StopMigrationMutationPathParams, StopMigrationOkResponse, StopMigrationProps, } from './hooks/useStopMigrationMutation';
@@ -326,6 +328,7 @@ export type { QuarantineRequestRequestBody } from './requestBodies/QuarantineReq
326
328
  export type { RegistriesStatsRequestV3RequestBody } from './requestBodies/RegistriesStatsRequestV3RequestBody';
327
329
  export type { RegistryRequestRequestBody } from './requestBodies/RegistryRequestRequestBody';
328
330
  export type { ReplicationRuleRequestRequestBody } from './requestBodies/ReplicationRuleRequestRequestBody';
331
+ export type { SearchRegistryFilesRequestV3RequestBody } from './requestBodies/SearchRegistryFilesRequestV3RequestBody';
329
332
  export type { WebhookRequestRequestBody } from './requestBodies/WebhookRequestRequestBody';
330
333
  export type { AddTagsResponseResponse } from './responses/AddTagsResponseResponse';
331
334
  export type { ArtifactDeploymentsResponseResponse } from './responses/ArtifactDeploymentsResponseResponse';
@@ -664,6 +667,7 @@ export type { SbomDetails } from './schemas/SbomDetails';
664
667
  export type { ScanMetaV3 } from './schemas/ScanMetaV3';
665
668
  export type { ScanStatusV3 } from './schemas/ScanStatusV3';
666
669
  export type { Scanner } from './schemas/Scanner';
670
+ export type { SearchRegistryFilesRequestInputV3 } from './schemas/SearchRegistryFilesRequestInputV3';
667
671
  export type { SectionType } from './schemas/SectionType';
668
672
  export type { SecurityPolicyFailureDetailConfigV3 } from './schemas/SecurityPolicyFailureDetailConfigV3';
669
673
  export type { SecurityPolicyFailureVulnerabilityV3 } from './schemas/SecurityPolicyFailureVulnerabilityV3';
@@ -135,6 +135,7 @@ export { saveRegistryMetadataV3, useSaveRegistryMetadataV3Mutation, } from './ho
135
135
  export { saveSpaceLabel, useSaveSpaceLabelMutation } from './hooks/useSaveSpaceLabelMutation';
136
136
  export { saveVersionMetadataV3, useSaveVersionMetadataV3Mutation, } from './hooks/useSaveVersionMetadataV3Mutation';
137
137
  export { searchFiles, useSearchFilesQuery } from './hooks/useSearchFilesQuery';
138
+ export { searchRegistryFilesV3, useSearchRegistryFilesV3Mutation, } from './hooks/useSearchRegistryFilesV3Mutation';
138
139
  export { startMigration, useStartMigrationMutation } from './hooks/useStartMigrationMutation';
139
140
  export { stopMigration, useStopMigrationMutation } from './hooks/useStopMigrationMutation';
140
141
  export { triggerBackfillV3, useTriggerBackfillV3Mutation, } from './hooks/useTriggerBackfillV3Mutation';
@@ -0,0 +1,2 @@
1
+ import type { SearchRegistryFilesRequestInputV3 } from '../schemas/SearchRegistryFilesRequestInputV3';
2
+ export type SearchRegistryFilesRequestV3RequestBody = SearchRegistryFilesRequestInputV3;
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Input for the search registry files operation. The regex is sent
3
+ * in the body so characters like `?`, `&`, `+`, `#` and `%` don't
4
+ * need URL-encoding and aren't mangled by proxies.
5
+ *
6
+ */
7
+ export interface SearchRegistryFilesRequestInputV3 {
8
+ /**
9
+ * POSIX regular expression matched server-side against file paths. Evaluated by Postgres (`~` operator, case-sensitive). Max length 500.
10
+ *
11
+ */
12
+ regex: string;
13
+ /**
14
+ * Registry identifier (name).
15
+ */
16
+ registry: string;
17
+ }
@@ -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 {};
@@ -13,7 +13,11 @@ export interface UpstreamConfig {
13
13
  /**
14
14
  * @format int64
15
15
  */
16
- metadataCacheTTLMinutes?: number;
16
+ metadataCacheTTL?: number;
17
+ /**
18
+ * @format int64
19
+ */
20
+ negativeCacheTTL?: number;
17
21
  /**
18
22
  * Optional path suffix appended to the remote URL for this registry. For Python upstreams, this allows overriding the default `/simple` path used for PyPI-compatible indexes. Leading and trailing slashes are not required and will be normalized.
19
23
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-har-service-client",
3
- "version": "0.81.0",
3
+ "version": "0.83.0",
4
4
  "description": "Harness HAR Service APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",