@harnessio/react-har-service-client 0.80.0 → 0.82.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 (59) hide show
  1. package/dist/har-service/src/services/hooks/useGetPackagesStatsV3Mutation.d.ts +23 -0
  2. package/dist/har-service/src/services/hooks/useGetPackagesStatsV3Mutation.js +14 -0
  3. package/dist/har-service/src/services/hooks/useGetRegistriesStatsV3Mutation.d.ts +23 -0
  4. package/dist/har-service/src/services/hooks/useGetRegistriesStatsV3Mutation.js +14 -0
  5. package/dist/har-service/src/services/hooks/useListFilterOptionsV3Query.d.ts +35 -0
  6. package/dist/har-service/src/services/hooks/useListFilterOptionsV3Query.js +20 -0
  7. package/dist/har-service/src/services/hooks/useListFiltersV3Query.d.ts +36 -0
  8. package/dist/har-service/src/services/hooks/useListFiltersV3Query.js +22 -0
  9. package/dist/har-service/src/services/hooks/useSearchRegistryFilesV3Mutation.d.ts +35 -0
  10. package/dist/har-service/src/services/hooks/useSearchRegistryFilesV3Mutation.js +15 -0
  11. package/dist/har-service/src/services/index.d.ts +31 -0
  12. package/dist/har-service/src/services/index.js +5 -0
  13. package/dist/har-service/src/services/requestBodies/PackagesStatsRequestV3RequestBody.d.ts +2 -0
  14. package/dist/har-service/src/services/requestBodies/PackagesStatsRequestV3RequestBody.js +1 -0
  15. package/dist/har-service/src/services/requestBodies/RegistriesStatsRequestV3RequestBody.d.ts +2 -0
  16. package/dist/har-service/src/services/requestBodies/RegistriesStatsRequestV3RequestBody.js +1 -0
  17. package/dist/har-service/src/services/requestBodies/SearchRegistryFilesRequestV3RequestBody.d.ts +2 -0
  18. package/dist/har-service/src/services/requestBodies/SearchRegistryFilesRequestV3RequestBody.js +1 -0
  19. package/dist/har-service/src/services/responses/ListFilterOptionsResponseV3Response.d.ts +2 -0
  20. package/dist/har-service/src/services/responses/ListFilterOptionsResponseV3Response.js +1 -0
  21. package/dist/har-service/src/services/responses/ListFiltersResponseV3Response.d.ts +2 -0
  22. package/dist/har-service/src/services/responses/ListFiltersResponseV3Response.js +1 -0
  23. package/dist/har-service/src/services/responses/PackagesStatsResponseV3Response.d.ts +2 -0
  24. package/dist/har-service/src/services/responses/PackagesStatsResponseV3Response.js +1 -0
  25. package/dist/har-service/src/services/responses/RegistriesStatsResponseV3Response.d.ts +2 -0
  26. package/dist/har-service/src/services/responses/RegistriesStatsResponseV3Response.js +1 -0
  27. package/dist/har-service/src/services/schemas/FileMetadataV3.d.ts +1 -0
  28. package/dist/har-service/src/services/schemas/FilterConditionV3.d.ts +4 -0
  29. package/dist/har-service/src/services/schemas/FilterConditionV3.js +4 -0
  30. package/dist/har-service/src/services/schemas/FilterDataTypeV3.d.ts +4 -0
  31. package/dist/har-service/src/services/schemas/FilterDataTypeV3.js +4 -0
  32. package/dist/har-service/src/services/schemas/FilterDefinitionV3.d.ts +30 -0
  33. package/dist/har-service/src/services/schemas/FilterDefinitionV3.js +1 -0
  34. package/dist/har-service/src/services/schemas/FilterInputTypeV3.d.ts +4 -0
  35. package/dist/har-service/src/services/schemas/FilterInputTypeV3.js +4 -0
  36. package/dist/har-service/src/services/schemas/FilterOptionV3.d.ts +13 -0
  37. package/dist/har-service/src/services/schemas/FilterOptionV3.js +4 -0
  38. package/dist/har-service/src/services/schemas/LifecycleRuleFilterConfigGenericV3.d.ts +2 -2
  39. package/dist/har-service/src/services/schemas/ListFilterOptionsResponseBodyV3.d.ts +13 -0
  40. package/dist/har-service/src/services/schemas/ListFilterOptionsResponseBodyV3.js +1 -0
  41. package/dist/har-service/src/services/schemas/ListFiltersResponseBodyV3.d.ts +20 -0
  42. package/dist/har-service/src/services/schemas/ListFiltersResponseBodyV3.js +1 -0
  43. package/dist/har-service/src/services/schemas/PackageStatsV3.d.ts +24 -0
  44. package/dist/har-service/src/services/schemas/PackageStatsV3.js +4 -0
  45. package/dist/har-service/src/services/schemas/PackageTypeV3.d.ts +1 -1
  46. package/dist/har-service/src/services/schemas/PackagesStatsRequestInputV3.d.ts +9 -0
  47. package/dist/har-service/src/services/schemas/PackagesStatsRequestInputV3.js +4 -0
  48. package/dist/har-service/src/services/schemas/PackagesStatsResponseBodyV3.d.ts +10 -0
  49. package/dist/har-service/src/services/schemas/PackagesStatsResponseBodyV3.js +1 -0
  50. package/dist/har-service/src/services/schemas/RegistriesStatsRequestInputV3.d.ts +9 -0
  51. package/dist/har-service/src/services/schemas/RegistriesStatsRequestInputV3.js +4 -0
  52. package/dist/har-service/src/services/schemas/RegistriesStatsResponseBodyV3.d.ts +10 -0
  53. package/dist/har-service/src/services/schemas/RegistriesStatsResponseBodyV3.js +1 -0
  54. package/dist/har-service/src/services/schemas/RegistryStatsV3.d.ts +29 -0
  55. package/dist/har-service/src/services/schemas/RegistryStatsV3.js +4 -0
  56. package/dist/har-service/src/services/schemas/SearchRegistryFilesRequestInputV3.d.ts +17 -0
  57. package/dist/har-service/src/services/schemas/SearchRegistryFilesRequestInputV3.js +4 -0
  58. package/dist/har-service/src/services/schemas/UpstreamConfig.d.ts +13 -0
  59. package/package.json +1 -1
@@ -0,0 +1,23 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { PackagesStatsResponseV3Response } from '../responses/PackagesStatsResponseV3Response';
3
+ import type { ErrorV3 } from '../schemas/ErrorV3';
4
+ import type { PackagesStatsRequestV3RequestBody } from '../requestBodies/PackagesStatsRequestV3RequestBody';
5
+ import type { ResponseWithPagination } from '../helpers';
6
+ import { FetcherOptions } from '../../../../fetcher/index.js';
7
+ export interface GetPackagesStatsV3MutationQueryParams {
8
+ account_identifier: string;
9
+ org_identifier?: string;
10
+ project_identifier?: string;
11
+ }
12
+ export type GetPackagesStatsV3RequestBody = PackagesStatsRequestV3RequestBody;
13
+ export type GetPackagesStatsV3OkResponse = ResponseWithPagination<PackagesStatsResponseV3Response>;
14
+ export type GetPackagesStatsV3ErrorResponse = ErrorV3;
15
+ export interface GetPackagesStatsV3Props extends Omit<FetcherOptions<GetPackagesStatsV3MutationQueryParams, GetPackagesStatsV3RequestBody>, 'url'> {
16
+ queryParams: GetPackagesStatsV3MutationQueryParams;
17
+ body: GetPackagesStatsV3RequestBody;
18
+ }
19
+ export declare function getPackagesStatsV3(props: GetPackagesStatsV3Props): Promise<GetPackagesStatsV3OkResponse>;
20
+ /**
21
+ * Get statistics (artifactsCount, size, downloadCount) for a list of packages by their UUIDs.
22
+ */
23
+ export declare function useGetPackagesStatsV3Mutation(options?: Omit<UseMutationOptions<GetPackagesStatsV3OkResponse, GetPackagesStatsV3ErrorResponse, GetPackagesStatsV3Props>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<GetPackagesStatsV3OkResponse, ErrorV3, GetPackagesStatsV3Props, 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 getPackagesStatsV3(props) {
7
+ return fetcher(Object.assign({ url: `/v3/packages/stats`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Get statistics (artifactsCount, size, downloadCount) for a list of packages by their UUIDs.
11
+ */
12
+ export function useGetPackagesStatsV3Mutation(options) {
13
+ return useMutation((mutateProps) => getPackagesStatsV3(mutateProps), options);
14
+ }
@@ -0,0 +1,23 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { RegistriesStatsResponseV3Response } from '../responses/RegistriesStatsResponseV3Response';
3
+ import type { ErrorV3 } from '../schemas/ErrorV3';
4
+ import type { RegistriesStatsRequestV3RequestBody } from '../requestBodies/RegistriesStatsRequestV3RequestBody';
5
+ import type { ResponseWithPagination } from '../helpers';
6
+ import { FetcherOptions } from '../../../../fetcher/index.js';
7
+ export interface GetRegistriesStatsV3MutationQueryParams {
8
+ account_identifier: string;
9
+ org_identifier?: string;
10
+ project_identifier?: string;
11
+ }
12
+ export type GetRegistriesStatsV3RequestBody = RegistriesStatsRequestV3RequestBody;
13
+ export type GetRegistriesStatsV3OkResponse = ResponseWithPagination<RegistriesStatsResponseV3Response>;
14
+ export type GetRegistriesStatsV3ErrorResponse = ErrorV3;
15
+ export interface GetRegistriesStatsV3Props extends Omit<FetcherOptions<GetRegistriesStatsV3MutationQueryParams, GetRegistriesStatsV3RequestBody>, 'url'> {
16
+ queryParams: GetRegistriesStatsV3MutationQueryParams;
17
+ body: GetRegistriesStatsV3RequestBody;
18
+ }
19
+ export declare function getRegistriesStatsV3(props: GetRegistriesStatsV3Props): Promise<GetRegistriesStatsV3OkResponse>;
20
+ /**
21
+ * Get statistics (packageCount, size, downloadCount, artifactsCount) for a list of registries by their UUIDs.
22
+ */
23
+ export declare function useGetRegistriesStatsV3Mutation(options?: Omit<UseMutationOptions<GetRegistriesStatsV3OkResponse, GetRegistriesStatsV3ErrorResponse, GetRegistriesStatsV3Props>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<GetRegistriesStatsV3OkResponse, ErrorV3, GetRegistriesStatsV3Props, 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 getRegistriesStatsV3(props) {
7
+ return fetcher(Object.assign({ url: `/v3/registries/stats`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Get statistics (packageCount, size, downloadCount, artifactsCount) for a list of registries by their UUIDs.
11
+ */
12
+ export function useGetRegistriesStatsV3Mutation(options) {
13
+ return useMutation((mutateProps) => getRegistriesStatsV3(mutateProps), options);
14
+ }
@@ -0,0 +1,35 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ListFilterOptionsResponseV3Response } from '../responses/ListFilterOptionsResponseV3Response';
3
+ import type { ErrorV3 } from '../schemas/ErrorV3';
4
+ import type { ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
+ export interface ListFilterOptionsV3QueryQueryParams {
7
+ account_identifier: string;
8
+ org_identifier?: string;
9
+ project_identifier?: string;
10
+ /**
11
+ * Resource type whose filter definitions are requested by
12
+ * `GET /filters?resource_type=...`.
13
+ *
14
+ */
15
+ resource_type: 'PACKAGE' | 'REGISTRY' | 'VERSION';
16
+ filter_id: string;
17
+ package_type?: string;
18
+ search_term?: string;
19
+ }
20
+ export type ListFilterOptionsV3OkResponse = ResponseWithPagination<ListFilterOptionsResponseV3Response>;
21
+ export type ListFilterOptionsV3ErrorResponse = ErrorV3;
22
+ export interface ListFilterOptionsV3Props extends Omit<FetcherOptions<ListFilterOptionsV3QueryQueryParams, unknown>, 'url'> {
23
+ queryParams: ListFilterOptionsV3QueryQueryParams;
24
+ }
25
+ export declare function listFilterOptionsV3(props: ListFilterOptionsV3Props): Promise<ListFilterOptionsV3OkResponse>;
26
+ /**
27
+ * List the selectable values for a single filter identified by
28
+ * `filter_id`. Same authorization and scoping semantics as
29
+ * `GET /filters`. `package_type` is only meaningful for filters on
30
+ * PACKAGE and VERSION resources and is ignored otherwise;
31
+ * `search_term` narrows the returned options in place of
32
+ * pagination.
33
+ *
34
+ */
35
+ export declare function useListFilterOptionsV3Query(props: ListFilterOptionsV3Props, options?: Omit<UseQueryOptions<ListFilterOptionsV3OkResponse, ListFilterOptionsV3ErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListFilterOptionsV3OkResponse, ErrorV3>;
@@ -0,0 +1,20 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ import { useQuery } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../fetcher/index.js';
6
+ export function listFilterOptionsV3(props) {
7
+ return fetcher(Object.assign({ url: `/v3/filters/options`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * List the selectable values for a single filter identified by
11
+ * `filter_id`. Same authorization and scoping semantics as
12
+ * `GET /filters`. `package_type` is only meaningful for filters on
13
+ * PACKAGE and VERSION resources and is ignored otherwise;
14
+ * `search_term` narrows the returned options in place of
15
+ * pagination.
16
+ *
17
+ */
18
+ export function useListFilterOptionsV3Query(props, options) {
19
+ return useQuery(['ListFilterOptionsV3', props.queryParams], ({ signal }) => listFilterOptionsV3(Object.assign(Object.assign({}, props), { signal })), options);
20
+ }
@@ -0,0 +1,36 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ListFiltersResponseV3Response } from '../responses/ListFiltersResponseV3Response';
3
+ import type { ErrorV3 } from '../schemas/ErrorV3';
4
+ import type { ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
+ export interface ListFiltersV3QueryQueryParams {
7
+ account_identifier: string;
8
+ org_identifier?: string;
9
+ project_identifier?: string;
10
+ /**
11
+ * Resource type whose filter definitions are requested by
12
+ * `GET /filters?resource_type=...`.
13
+ *
14
+ */
15
+ resource_type: 'PACKAGE' | 'REGISTRY' | 'VERSION';
16
+ package_type?: string;
17
+ search_term?: string;
18
+ }
19
+ export type ListFiltersV3OkResponse = ResponseWithPagination<ListFiltersResponseV3Response>;
20
+ export type ListFiltersV3ErrorResponse = ErrorV3;
21
+ export interface ListFiltersV3Props extends Omit<FetcherOptions<ListFiltersV3QueryQueryParams, unknown>, 'url'> {
22
+ queryParams: ListFiltersV3QueryQueryParams;
23
+ }
24
+ export declare function listFiltersV3(props: ListFiltersV3Props): Promise<ListFiltersV3OkResponse>;
25
+ /**
26
+ * List filter definitions available for the requested `resource_type`
27
+ * (REGISTRY, PACKAGE, or VERSION).
28
+ *
29
+ * Filters returned depend on the scope inferred from the supplied
30
+ * identifiers (ACCOUNT / ORG / PROJECT). For PACKAGE and VERSION
31
+ * resource types, if `package_type` is provided the response is
32
+ * augmented with type-specific filters (e.g. Docker, Maven, npm).
33
+ * `package_type` is ignored when `resource_type=REGISTRY`.
34
+ *
35
+ */
36
+ export declare function useListFiltersV3Query(props: ListFiltersV3Props, options?: Omit<UseQueryOptions<ListFiltersV3OkResponse, ListFiltersV3ErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListFiltersV3OkResponse, ErrorV3>;
@@ -0,0 +1,22 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ import { useQuery } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../fetcher/index.js';
6
+ export function listFiltersV3(props) {
7
+ return fetcher(Object.assign({ url: `/v3/filters`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * List filter definitions available for the requested `resource_type`
11
+ * (REGISTRY, PACKAGE, or VERSION).
12
+ *
13
+ * Filters returned depend on the scope inferred from the supplied
14
+ * identifiers (ACCOUNT / ORG / PROJECT). For PACKAGE and VERSION
15
+ * resource types, if `package_type` is provided the response is
16
+ * augmented with type-specific filters (e.g. Docker, Maven, npm).
17
+ * `package_type` is ignored when `resource_type=REGISTRY`.
18
+ *
19
+ */
20
+ export function useListFiltersV3Query(props, options) {
21
+ return useQuery(['ListFiltersV3', props.queryParams], ({ signal }) => listFiltersV3(Object.assign(Object.assign({}, props), { signal })), options);
22
+ }
@@ -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
+ }
@@ -159,6 +159,10 @@ export type { GetOciArtifactTagsErrorResponse, GetOciArtifactTagsOkResponse, Get
159
159
  export { getOciArtifactTags, useGetOciArtifactTagsQuery } from './hooks/useGetOciArtifactTagsQuery';
160
160
  export type { GetPackageMetadataV3ErrorResponse, GetPackageMetadataV3OkResponse, GetPackageMetadataV3Props, GetPackageMetadataV3QueryPathParams, GetPackageMetadataV3QueryQueryParams, } from './hooks/useGetPackageMetadataV3Query';
161
161
  export { getPackageMetadataV3, useGetPackageMetadataV3Query, } from './hooks/useGetPackageMetadataV3Query';
162
+ export type { GetPackagesStatsV3ErrorResponse, GetPackagesStatsV3MutationQueryParams, GetPackagesStatsV3OkResponse, GetPackagesStatsV3Props, GetPackagesStatsV3RequestBody, } from './hooks/useGetPackagesStatsV3Mutation';
163
+ export { getPackagesStatsV3, useGetPackagesStatsV3Mutation, } from './hooks/useGetPackagesStatsV3Mutation';
164
+ export type { GetRegistriesStatsV3ErrorResponse, GetRegistriesStatsV3MutationQueryParams, GetRegistriesStatsV3OkResponse, GetRegistriesStatsV3Props, GetRegistriesStatsV3RequestBody, } from './hooks/useGetRegistriesStatsV3Mutation';
165
+ export { getRegistriesStatsV3, useGetRegistriesStatsV3Mutation, } from './hooks/useGetRegistriesStatsV3Mutation';
162
166
  export type { GetRegistryMetadataV3ErrorResponse, GetRegistryMetadataV3OkResponse, GetRegistryMetadataV3Props, GetRegistryMetadataV3QueryPathParams, GetRegistryMetadataV3QueryQueryParams, } from './hooks/useGetRegistryMetadataV3Query';
163
167
  export { getRegistryMetadataV3, useGetRegistryMetadataV3Query, } from './hooks/useGetRegistryMetadataV3Query';
164
168
  export type { GetRegistryErrorResponse, GetRegistryOkResponse, GetRegistryProps, GetRegistryQueryPathParams, } from './hooks/useGetRegistryQuery';
@@ -187,6 +191,10 @@ export type { ListConanRecipeRevisionsV3ErrorResponse, ListConanRecipeRevisionsV
187
191
  export { listConanRecipeRevisionsV3, useListConanRecipeRevisionsV3Query, } from './hooks/useListConanRecipeRevisionsV3Query';
188
192
  export type { ListFilesV3ErrorResponse, ListFilesV3OkResponse, ListFilesV3Props, ListFilesV3QueryQueryParams, } from './hooks/useListFilesV3Query';
189
193
  export { listFilesV3, useListFilesV3Query } from './hooks/useListFilesV3Query';
194
+ export type { ListFilterOptionsV3ErrorResponse, ListFilterOptionsV3OkResponse, ListFilterOptionsV3Props, ListFilterOptionsV3QueryQueryParams, } from './hooks/useListFilterOptionsV3Query';
195
+ export { listFilterOptionsV3, useListFilterOptionsV3Query, } from './hooks/useListFilterOptionsV3Query';
196
+ export type { ListFiltersV3ErrorResponse, ListFiltersV3OkResponse, ListFiltersV3Props, ListFiltersV3QueryQueryParams, } from './hooks/useListFiltersV3Query';
197
+ export { listFiltersV3, useListFiltersV3Query } from './hooks/useListFiltersV3Query';
190
198
  export type { ListFirewallExceptionVersionsV3ErrorResponse, ListFirewallExceptionVersionsV3OkResponse, ListFirewallExceptionVersionsV3Props, ListFirewallExceptionVersionsV3QueryQueryParams, } from './hooks/useListFirewallExceptionVersionsV3Query';
191
199
  export { listFirewallExceptionVersionsV3, useListFirewallExceptionVersionsV3Query, } from './hooks/useListFirewallExceptionVersionsV3Query';
192
200
  export type { ListFirewallExceptionsV3ErrorResponse, ListFirewallExceptionsV3OkResponse, ListFirewallExceptionsV3Props, ListFirewallExceptionsV3QueryQueryParams, } from './hooks/useListFirewallExceptionsV3Query';
@@ -265,6 +273,8 @@ export type { SaveVersionMetadataV3ErrorResponse, SaveVersionMetadataV3MutationP
265
273
  export { saveVersionMetadataV3, useSaveVersionMetadataV3Mutation, } from './hooks/useSaveVersionMetadataV3Mutation';
266
274
  export type { SearchFilesErrorResponse, SearchFilesOkResponse, SearchFilesProps, SearchFilesQueryQueryParams, } from './hooks/useSearchFilesQuery';
267
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';
268
278
  export type { StartMigrationErrorResponse, StartMigrationMutationPathParams, StartMigrationOkResponse, StartMigrationProps, } from './hooks/useStartMigrationMutation';
269
279
  export { startMigration, useStartMigrationMutation } from './hooks/useStartMigrationMutation';
270
280
  export type { StopMigrationErrorResponse, StopMigrationMutationPathParams, StopMigrationOkResponse, StopMigrationProps, } from './hooks/useStopMigrationMutation';
@@ -313,9 +323,12 @@ export type { FirewallExceptionCreateRequestV3RequestBody } from './requestBodie
313
323
  export type { FirewallExceptionUpdateRequestV3RequestBody } from './requestBodies/FirewallExceptionUpdateRequestV3RequestBody';
314
324
  export type { MetadataRequestRequestBody } from './requestBodies/MetadataRequestRequestBody';
315
325
  export type { MetadataRequestV3RequestBody } from './requestBodies/MetadataRequestV3RequestBody';
326
+ export type { PackagesStatsRequestV3RequestBody } from './requestBodies/PackagesStatsRequestV3RequestBody';
316
327
  export type { QuarantineRequestRequestBody } from './requestBodies/QuarantineRequestRequestBody';
328
+ export type { RegistriesStatsRequestV3RequestBody } from './requestBodies/RegistriesStatsRequestV3RequestBody';
317
329
  export type { RegistryRequestRequestBody } from './requestBodies/RegistryRequestRequestBody';
318
330
  export type { ReplicationRuleRequestRequestBody } from './requestBodies/ReplicationRuleRequestRequestBody';
331
+ export type { SearchRegistryFilesRequestV3RequestBody } from './requestBodies/SearchRegistryFilesRequestV3RequestBody';
319
332
  export type { WebhookRequestRequestBody } from './requestBodies/WebhookRequestRequestBody';
320
333
  export type { AddTagsResponseResponse } from './responses/AddTagsResponseResponse';
321
334
  export type { ArtifactDeploymentsResponseResponse } from './responses/ArtifactDeploymentsResponseResponse';
@@ -368,6 +381,8 @@ export type { ListArtifactScanResponseV3Response } from './responses/ListArtifac
368
381
  export type { ListArtifactVersionResponseResponse } from './responses/ListArtifactVersionResponseResponse';
369
382
  export type { ListFilesResponseResponse } from './responses/ListFilesResponseResponse';
370
383
  export type { ListFilesResponseV3Response } from './responses/ListFilesResponseV3Response';
384
+ export type { ListFilterOptionsResponseV3Response } from './responses/ListFilterOptionsResponseV3Response';
385
+ export type { ListFiltersResponseV3Response } from './responses/ListFiltersResponseV3Response';
371
386
  export type { ListFirewallExceptionResponseV3Response } from './responses/ListFirewallExceptionResponseV3Response';
372
387
  export type { ListFirewallExceptionVersionsResponseV3Response } from './responses/ListFirewallExceptionVersionsResponseV3Response';
373
388
  export type { ListLifecycleExecutionsResponseV3Response } from './responses/ListLifecycleExecutionsResponseV3Response';
@@ -394,12 +409,14 @@ export type { MetadataResponseV3Response } from './responses/MetadataResponseV3R
394
409
  export type { MetadataValuesResponseResponse } from './responses/MetadataValuesResponseResponse';
395
410
  export type { MetadataValuesResponseV3Response } from './responses/MetadataValuesResponseV3Response';
396
411
  export type { NotFoundResponse } from './responses/NotFoundResponse';
412
+ export type { PackagesStatsResponseV3Response } from './responses/PackagesStatsResponseV3Response';
397
413
  export type { PlainTextResponseResponse } from './responses/PlainTextResponseResponse';
398
414
  export type { QuarantinePathResponseResponse } from './responses/QuarantinePathResponseResponse';
399
415
  export type { RebuildRegistryIndexAcceptedV3Response } from './responses/RebuildRegistryIndexAcceptedV3Response';
400
416
  export type { RebuildVersionMetadataAcceptedV3Response } from './responses/RebuildVersionMetadataAcceptedV3Response';
401
417
  export type { RedirectResponse } from './responses/RedirectResponse';
402
418
  export type { RedirectV3Response } from './responses/RedirectV3Response';
419
+ export type { RegistriesStatsResponseV3Response } from './responses/RegistriesStatsResponseV3Response';
403
420
  export type { RegistryResponseResponse } from './responses/RegistryResponseResponse';
404
421
  export type { ReplicationRuleResponseResponse } from './responses/ReplicationRuleResponseResponse';
405
422
  export type { StorageDetailsResponseResponse } from './responses/StorageDetailsResponseResponse';
@@ -502,6 +519,11 @@ export type { FileMetadata } from './schemas/FileMetadata';
502
519
  export type { FileMetadataV3 } from './schemas/FileMetadataV3';
503
520
  export type { FilePreviewDataV3 } from './schemas/FilePreviewDataV3';
504
521
  export type { FilePreviewResponseBodyV3 } from './schemas/FilePreviewResponseBodyV3';
522
+ export type { FilterConditionV3 } from './schemas/FilterConditionV3';
523
+ export type { FilterDataTypeV3 } from './schemas/FilterDataTypeV3';
524
+ export type { FilterDefinitionV3 } from './schemas/FilterDefinitionV3';
525
+ export type { FilterInputTypeV3 } from './schemas/FilterInputTypeV3';
526
+ export type { FilterOptionV3 } from './schemas/FilterOptionV3';
505
527
  export type { FirewallExceptionApprovalRequestV3 } from './schemas/FirewallExceptionApprovalRequestV3';
506
528
  export type { FirewallExceptionCreateRequestV3 } from './schemas/FirewallExceptionCreateRequestV3';
507
529
  export type { FirewallExceptionMetaV3 } from './schemas/FirewallExceptionMetaV3';
@@ -552,6 +574,8 @@ export type { ListConanPackagesResponseBodyV3 } from './schemas/ListConanPackage
552
574
  export type { ListConanRecipeRevisionsResponseBodyV3 } from './schemas/ListConanRecipeRevisionsResponseBodyV3';
553
575
  export type { ListFileDetail } from './schemas/ListFileDetail';
554
576
  export type { ListFilesResponseBodyV3 } from './schemas/ListFilesResponseBodyV3';
577
+ export type { ListFilterOptionsResponseBodyV3 } from './schemas/ListFilterOptionsResponseBodyV3';
578
+ export type { ListFiltersResponseBodyV3 } from './schemas/ListFiltersResponseBodyV3';
555
579
  export type { ListFirewallExceptionsResponseBodyV3 } from './schemas/ListFirewallExceptionsResponseBodyV3';
556
580
  export type { ListLifecycleExecutionItemsResponseV3 } from './schemas/ListLifecycleExecutionItemsResponseV3';
557
581
  export type { ListLifecycleExecutionsResponseBodyV3 } from './schemas/ListLifecycleExecutionsResponseBodyV3';
@@ -597,9 +621,12 @@ export type { OssRiskLevelPolicyFailureDetailConfigV3 } from './schemas/OssRiskL
597
621
  export type { PackageAgeViolationPolicyFailureDetailConfigV3 } from './schemas/PackageAgeViolationPolicyFailureDetailConfigV3';
598
622
  export type { PackageKindV3 } from './schemas/PackageKindV3';
599
623
  export type { PackageMetadata } from './schemas/PackageMetadata';
624
+ export type { PackageStatsV3 } from './schemas/PackageStatsV3';
600
625
  export type { PackageType } from './schemas/PackageType';
601
626
  export type { PackageTypeV3 } from './schemas/PackageTypeV3';
602
627
  export type { PackageV3 } from './schemas/PackageV3';
628
+ export type { PackagesStatsRequestInputV3 } from './schemas/PackagesStatsRequestInputV3';
629
+ export type { PackagesStatsResponseBodyV3 } from './schemas/PackagesStatsResponseBodyV3';
603
630
  export type { PageInfoV3 } from './schemas/PageInfoV3';
604
631
  export type { PerformedBy } from './schemas/PerformedBy';
605
632
  export type { PipelineBuildInfoDetailV3 } from './schemas/PipelineBuildInfoDetailV3';
@@ -618,11 +645,14 @@ export type { PythonArtifactDetailConfig } from './schemas/PythonArtifactDetailC
618
645
  export type { QuarantinePath } from './schemas/QuarantinePath';
619
646
  export type { QuarantineRequest } from './schemas/QuarantineRequest';
620
647
  export type { RebuildVersionMetadataRequestV3 } from './schemas/RebuildVersionMetadataRequestV3';
648
+ export type { RegistriesStatsRequestInputV3 } from './schemas/RegistriesStatsRequestInputV3';
649
+ export type { RegistriesStatsResponseBodyV3 } from './schemas/RegistriesStatsResponseBodyV3';
621
650
  export type { Registry } from './schemas/Registry';
622
651
  export type { RegistryArtifactMetadata } from './schemas/RegistryArtifactMetadata';
623
652
  export type { RegistryConfig } from './schemas/RegistryConfig';
624
653
  export type { RegistryMetadata } from './schemas/RegistryMetadata';
625
654
  export type { RegistryRequest } from './schemas/RegistryRequest';
655
+ export type { RegistryStatsV3 } from './schemas/RegistryStatsV3';
626
656
  export type { RegistryType } from './schemas/RegistryType';
627
657
  export type { RegistryTypeV3 } from './schemas/RegistryTypeV3';
628
658
  export type { RegistryV3 } from './schemas/RegistryV3';
@@ -637,6 +667,7 @@ export type { SbomDetails } from './schemas/SbomDetails';
637
667
  export type { ScanMetaV3 } from './schemas/ScanMetaV3';
638
668
  export type { ScanStatusV3 } from './schemas/ScanStatusV3';
639
669
  export type { Scanner } from './schemas/Scanner';
670
+ export type { SearchRegistryFilesRequestInputV3 } from './schemas/SearchRegistryFilesRequestInputV3';
640
671
  export type { SectionType } from './schemas/SectionType';
641
672
  export type { SecurityPolicyFailureDetailConfigV3 } from './schemas/SecurityPolicyFailureDetailConfigV3';
642
673
  export type { SecurityPolicyFailureVulnerabilityV3 } from './schemas/SecurityPolicyFailureVulnerabilityV3';
@@ -78,6 +78,8 @@ export { getMetadataValuesV3, useGetMetadataValuesV3Query, } from './hooks/useGe
78
78
  export { getMigrationLogsForImage, useGetMigrationLogsForImageQuery, } from './hooks/useGetMigrationLogsForImageQuery';
79
79
  export { getOciArtifactTags, useGetOciArtifactTagsQuery } from './hooks/useGetOciArtifactTagsQuery';
80
80
  export { getPackageMetadataV3, useGetPackageMetadataV3Query, } from './hooks/useGetPackageMetadataV3Query';
81
+ export { getPackagesStatsV3, useGetPackagesStatsV3Mutation, } from './hooks/useGetPackagesStatsV3Mutation';
82
+ export { getRegistriesStatsV3, useGetRegistriesStatsV3Mutation, } from './hooks/useGetRegistriesStatsV3Mutation';
81
83
  export { getRegistryMetadataV3, useGetRegistryMetadataV3Query, } from './hooks/useGetRegistryMetadataV3Query';
82
84
  export { getRegistry, useGetRegistryQuery } from './hooks/useGetRegistryQuery';
83
85
  export { getReplicationRule, useGetReplicationRuleQuery } from './hooks/useGetReplicationRuleQuery';
@@ -92,6 +94,8 @@ export { listConanPackageRevisionsV3, useListConanPackageRevisionsV3Query, } fro
92
94
  export { listConanPackagesV3, useListConanPackagesV3Query, } from './hooks/useListConanPackagesV3Query';
93
95
  export { listConanRecipeRevisionsV3, useListConanRecipeRevisionsV3Query, } from './hooks/useListConanRecipeRevisionsV3Query';
94
96
  export { listFilesV3, useListFilesV3Query } from './hooks/useListFilesV3Query';
97
+ export { listFilterOptionsV3, useListFilterOptionsV3Query, } from './hooks/useListFilterOptionsV3Query';
98
+ export { listFiltersV3, useListFiltersV3Query } from './hooks/useListFiltersV3Query';
95
99
  export { listFirewallExceptionVersionsV3, useListFirewallExceptionVersionsV3Query, } from './hooks/useListFirewallExceptionVersionsV3Query';
96
100
  export { listFirewallExceptionsV3, useListFirewallExceptionsV3Query, } from './hooks/useListFirewallExceptionsV3Query';
97
101
  export { listLifecycleExecutionItemsV3, useListLifecycleExecutionItemsV3Query, } from './hooks/useListLifecycleExecutionItemsV3Query';
@@ -131,6 +135,7 @@ export { saveRegistryMetadataV3, useSaveRegistryMetadataV3Mutation, } from './ho
131
135
  export { saveSpaceLabel, useSaveSpaceLabelMutation } from './hooks/useSaveSpaceLabelMutation';
132
136
  export { saveVersionMetadataV3, useSaveVersionMetadataV3Mutation, } from './hooks/useSaveVersionMetadataV3Mutation';
133
137
  export { searchFiles, useSearchFilesQuery } from './hooks/useSearchFilesQuery';
138
+ export { searchRegistryFilesV3, useSearchRegistryFilesV3Mutation, } from './hooks/useSearchRegistryFilesV3Mutation';
134
139
  export { startMigration, useStartMigrationMutation } from './hooks/useStartMigrationMutation';
135
140
  export { stopMigration, useStopMigrationMutation } from './hooks/useStopMigrationMutation';
136
141
  export { triggerBackfillV3, useTriggerBackfillV3Mutation, } from './hooks/useTriggerBackfillV3Mutation';
@@ -0,0 +1,2 @@
1
+ import type { PackagesStatsRequestInputV3 } from '../schemas/PackagesStatsRequestInputV3';
2
+ export type PackagesStatsRequestV3RequestBody = PackagesStatsRequestInputV3;
@@ -0,0 +1,2 @@
1
+ import type { RegistriesStatsRequestInputV3 } from '../schemas/RegistriesStatsRequestInputV3';
2
+ export type RegistriesStatsRequestV3RequestBody = RegistriesStatsRequestInputV3;
@@ -0,0 +1,2 @@
1
+ import type { SearchRegistryFilesRequestInputV3 } from '../schemas/SearchRegistryFilesRequestInputV3';
2
+ export type SearchRegistryFilesRequestV3RequestBody = SearchRegistryFilesRequestInputV3;
@@ -0,0 +1,2 @@
1
+ import type { ListFilterOptionsResponseBodyV3 } from '../schemas/ListFilterOptionsResponseBodyV3';
2
+ export type ListFilterOptionsResponseV3Response = ListFilterOptionsResponseBodyV3;
@@ -0,0 +1,2 @@
1
+ import type { ListFiltersResponseBodyV3 } from '../schemas/ListFiltersResponseBodyV3';
2
+ export type ListFiltersResponseV3Response = ListFiltersResponseBodyV3;
@@ -0,0 +1,2 @@
1
+ import type { PackagesStatsResponseBodyV3 } from '../schemas/PackagesStatsResponseBodyV3';
2
+ export type PackagesStatsResponseV3Response = PackagesStatsResponseBodyV3;
@@ -0,0 +1,2 @@
1
+ import type { RegistriesStatsResponseBodyV3 } from '../schemas/RegistriesStatsResponseBodyV3';
2
+ export type RegistriesStatsResponseV3Response = RegistriesStatsResponseBodyV3;
@@ -6,6 +6,7 @@ import type { UserInfoV3 } from '../schemas/UserInfoV3';
6
6
  export interface FileMetadataV3 {
7
7
  createdAt: CreatedAtMsV3;
8
8
  createdBy?: UserInfoV3;
9
+ downloadCmd: string;
9
10
  downloadUrl?: string;
10
11
  id: string;
11
12
  md5: string;
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Supported comparison condition for a filter.
3
+ */
4
+ export type FilterConditionV3 = 'CONTAINS' | 'ENDS_WITH' | 'EQ' | 'GT' | 'IN' | 'LT' | 'NE' | 'NOT_IN' | 'STARTS_WITH';
@@ -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
+ /**
2
+ * Data type of a filter field.
3
+ */
4
+ export type FilterDataTypeV3 = 'boolean' | 'number' | 'string';
@@ -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,30 @@
1
+ import type { FilterConditionV3 } from '../schemas/FilterConditionV3';
2
+ import type { FilterDataTypeV3 } from '../schemas/FilterDataTypeV3';
3
+ import type { FilterInputTypeV3 } from '../schemas/FilterInputTypeV3';
4
+ /**
5
+ * Definition of a filter that can be applied when listing a resource.
6
+ */
7
+ export interface FilterDefinitionV3 {
8
+ /**
9
+ * Comparison conditions supported by this filter.
10
+ */
11
+ conditions: FilterConditionV3[];
12
+ dataType: FilterDataTypeV3;
13
+ /**
14
+ * Backend field name the filter maps to.
15
+ */
16
+ field: string;
17
+ /**
18
+ * Stable identifier for the filter.
19
+ */
20
+ id: string;
21
+ inputType: FilterInputTypeV3;
22
+ /**
23
+ * Human-readable label for the filter.
24
+ */
25
+ label: string;
26
+ /**
27
+ * Whether the filter supports a dynamic set of option values.
28
+ */
29
+ supportsOptions: boolean;
30
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * UI input control used to render a filter field.
3
+ */
4
+ export type FilterInputTypeV3 = 'checkbox' | 'multiSelect' | 'number' | 'singleSelect' | 'text';
@@ -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,13 @@
1
+ /**
2
+ * One selectable value for a filter with `supportsOptions=true`.
3
+ */
4
+ export interface FilterOptionV3 {
5
+ /**
6
+ * Human-readable label for the value.
7
+ */
8
+ label: string;
9
+ /**
10
+ * Value to send back when applying the filter.
11
+ */
12
+ value: string;
13
+ }
@@ -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,5 +1,5 @@
1
1
  /**
2
- * Filter configuration for package types that support only name and version filtering: PYTHON, HELM, NPM, NUGET, RPM, CARGO, COMPOSER, GO, CONDA, DART, SWIFT, PUPPET, RAW, GENERIC.
2
+ * Filter configuration for package types that support only name and version filtering: PYTHON, HELM, NPM, NUGET, RPM, CARGO, COMPOSER, GO, CONDA, DART, SWIFT, PUPPET, RUBY, RAW, GENERIC.
3
3
  *
4
4
  */
5
5
  export interface LifecycleRuleFilterConfigGenericV3 {
@@ -8,7 +8,7 @@ export interface LifecycleRuleFilterConfigGenericV3 {
8
8
  */
9
9
  packageNameAllowedPattern?: string[];
10
10
  /**
11
- * Package type. One of: PYTHON, HELM, NPM, NUGET, RPM, CARGO, COMPOSER, GO, CONDA, DART, SWIFT, PUPPET, RAW, GENERIC.
11
+ * Package type. One of: PYTHON, HELM, NPM, NUGET, RPM, CARGO, COMPOSER, GO, CONDA, DART, SWIFT, PUPPET, RUBY, RAW, GENERIC.
12
12
  *
13
13
  */
14
14
  packageType: string;
@@ -0,0 +1,13 @@
1
+ import type { FilterOptionV3 } from '../schemas/FilterOptionV3';
2
+ /**
3
+ * Response body for `GET /filters/options`. Returns the set of
4
+ * selectable values for a single filter. The list is bounded
5
+ * server-side; `search_term` narrows it in place of pagination.
6
+ *
7
+ */
8
+ export interface ListFilterOptionsResponseBodyV3 {
9
+ /**
10
+ * Selectable values for the requested filter.
11
+ */
12
+ options: FilterOptionV3[];
13
+ }
@@ -0,0 +1,20 @@
1
+ import type { FilterDefinitionV3 } from '../schemas/FilterDefinitionV3';
2
+ /**
3
+ * Response body for a list filters query. Contains a single merged
4
+ * list of filter definitions — static filters (from configuration)
5
+ * followed by dynamic metadata filters (one per user-defined
6
+ * metadata key, identified by `metadata.<key>`). The list is
7
+ * capped server-side (currently at 100 dynamic entries) and is not
8
+ * paginated; `search_term` narrows both static and dynamic
9
+ * entries.
10
+ *
11
+ */
12
+ export interface ListFiltersResponseBodyV3 {
13
+ /**
14
+ * Combined filter definitions available for the requested
15
+ * `resource_type`, in a stable order: static filters first
16
+ * (in configured order), followed by dynamic metadata filters.
17
+ *
18
+ */
19
+ filters: FilterDefinitionV3[];
20
+ }
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Statistics for a single package
3
+ */
4
+ export interface PackageStatsV3 {
5
+ /**
6
+ * Total number of artifacts/versions in the package
7
+ * @format int64
8
+ */
9
+ artifactsCount?: number;
10
+ /**
11
+ * Total download count for the package
12
+ * @format int64
13
+ */
14
+ downloadCount?: number;
15
+ /**
16
+ * Package UUID
17
+ * @format uuid
18
+ */
19
+ id: string;
20
+ /**
21
+ * Total size of the package (human-readable format)
22
+ */
23
+ size?: string;
24
+ }
@@ -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,5 +1,5 @@
1
1
  /**
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, TERRAFORM. 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, RUBY, RAW, DEBIAN, CONAN, TERRAFORM. This field is extensible; clients must handle unknown values.
3
3
  *
4
4
  * @example "DOCKER"
5
5
  */
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Request input for fetching package statistics
3
+ */
4
+ export interface PackagesStatsRequestInputV3 {
5
+ /**
6
+ * List of package UUIDs to fetch statistics for
7
+ */
8
+ packageIds: string[];
9
+ }
@@ -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,10 @@
1
+ import type { PackageStatsV3 } from '../schemas/PackageStatsV3';
2
+ /**
3
+ * Response body containing package statistics
4
+ */
5
+ export interface PackagesStatsResponseBodyV3 {
6
+ /**
7
+ * List of package statistics
8
+ */
9
+ items: PackageStatsV3[];
10
+ }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Request input for fetching registry statistics
3
+ */
4
+ export interface RegistriesStatsRequestInputV3 {
5
+ /**
6
+ * List of registry UUIDs to fetch statistics for
7
+ */
8
+ registryIds: string[];
9
+ }
@@ -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,10 @@
1
+ import type { RegistryStatsV3 } from '../schemas/RegistryStatsV3';
2
+ /**
3
+ * Response body containing registry statistics
4
+ */
5
+ export interface RegistriesStatsResponseBodyV3 {
6
+ /**
7
+ * List of registry statistics
8
+ */
9
+ items: RegistryStatsV3[];
10
+ }
@@ -0,0 +1,29 @@
1
+ /**
2
+ * Statistics for a single registry
3
+ */
4
+ export interface RegistryStatsV3 {
5
+ /**
6
+ * Total number of artifacts in the registry
7
+ * @format int64
8
+ */
9
+ artifactsCount?: number;
10
+ /**
11
+ * Total download count for the registry
12
+ * @format int64
13
+ */
14
+ downloadCount?: number;
15
+ /**
16
+ * Registry UUID
17
+ * @format uuid
18
+ */
19
+ id: string;
20
+ /**
21
+ * Total number of packages in the registry
22
+ * @format int64
23
+ */
24
+ packageCount?: number;
25
+ /**
26
+ * Total size of the registry (human-readable format)
27
+ */
28
+ size?: string;
29
+ }
@@ -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,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 {};
@@ -10,11 +10,24 @@ export interface UpstreamConfig {
10
10
  auth?: UserPassword | Anonymous | AccessKeySecretKey;
11
11
  authType: AuthType;
12
12
  firewallMode?: UpstreamProxyConfigFirewallMode;
13
+ /**
14
+ * @format int64
15
+ */
16
+ metadataCacheTTL?: number;
17
+ /**
18
+ * @format int64
19
+ */
20
+ negativeCacheTTL?: number;
13
21
  /**
14
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.
15
23
  *
16
24
  */
17
25
  remoteUrlSuffix?: string;
26
+ /**
27
+ * Secondary upstream URL. For Terraform registries, the primary URL is used for modules and the secondary URL for providers.
28
+ *
29
+ */
30
+ secondaryUrl?: string;
18
31
  source?: 'Anaconda' | 'AwsEcr' | 'CRAN' | 'ConanCenter' | 'Crates' | 'Custom' | 'Dockerhub' | 'GoProxy' | 'HelmChartRepo' | 'HuggingFace' | 'MavenCentral' | 'NpmJs' | 'NugetOrg' | 'Packagist' | 'Pubdev' | 'PuppetForge' | 'PyPi' | 'RubyGems' | 'TerraformRegistry';
19
32
  url?: string;
20
33
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-har-service-client",
3
- "version": "0.80.0",
3
+ "version": "0.82.0",
4
4
  "description": "Harness HAR Service APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",