@harnessio/react-har-service-client 0.80.0 → 0.81.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.
- package/dist/har-service/src/services/hooks/useGetPackagesStatsV3Mutation.d.ts +23 -0
- package/dist/har-service/src/services/hooks/useGetPackagesStatsV3Mutation.js +14 -0
- package/dist/har-service/src/services/hooks/useGetRegistriesStatsV3Mutation.d.ts +23 -0
- package/dist/har-service/src/services/hooks/useGetRegistriesStatsV3Mutation.js +14 -0
- package/dist/har-service/src/services/hooks/useListFilterOptionsV3Query.d.ts +35 -0
- package/dist/har-service/src/services/hooks/useListFilterOptionsV3Query.js +20 -0
- package/dist/har-service/src/services/hooks/useListFiltersV3Query.d.ts +36 -0
- package/dist/har-service/src/services/hooks/useListFiltersV3Query.js +22 -0
- package/dist/har-service/src/services/index.d.ts +27 -0
- package/dist/har-service/src/services/index.js +4 -0
- package/dist/har-service/src/services/requestBodies/PackagesStatsRequestV3RequestBody.d.ts +2 -0
- package/dist/har-service/src/services/requestBodies/PackagesStatsRequestV3RequestBody.js +1 -0
- package/dist/har-service/src/services/requestBodies/RegistriesStatsRequestV3RequestBody.d.ts +2 -0
- package/dist/har-service/src/services/requestBodies/RegistriesStatsRequestV3RequestBody.js +1 -0
- package/dist/har-service/src/services/responses/ListFilterOptionsResponseV3Response.d.ts +2 -0
- package/dist/har-service/src/services/responses/ListFilterOptionsResponseV3Response.js +1 -0
- package/dist/har-service/src/services/responses/ListFiltersResponseV3Response.d.ts +2 -0
- package/dist/har-service/src/services/responses/ListFiltersResponseV3Response.js +1 -0
- package/dist/har-service/src/services/responses/PackagesStatsResponseV3Response.d.ts +2 -0
- package/dist/har-service/src/services/responses/PackagesStatsResponseV3Response.js +1 -0
- package/dist/har-service/src/services/responses/RegistriesStatsResponseV3Response.d.ts +2 -0
- package/dist/har-service/src/services/responses/RegistriesStatsResponseV3Response.js +1 -0
- package/dist/har-service/src/services/schemas/FileMetadataV3.d.ts +1 -0
- package/dist/har-service/src/services/schemas/FilterConditionV3.d.ts +4 -0
- package/dist/har-service/src/services/schemas/FilterConditionV3.js +4 -0
- package/dist/har-service/src/services/schemas/FilterDataTypeV3.d.ts +4 -0
- package/dist/har-service/src/services/schemas/FilterDataTypeV3.js +4 -0
- package/dist/har-service/src/services/schemas/FilterDefinitionV3.d.ts +30 -0
- package/dist/har-service/src/services/schemas/FilterDefinitionV3.js +1 -0
- package/dist/har-service/src/services/schemas/FilterInputTypeV3.d.ts +4 -0
- package/dist/har-service/src/services/schemas/FilterInputTypeV3.js +4 -0
- package/dist/har-service/src/services/schemas/FilterOptionV3.d.ts +13 -0
- package/dist/har-service/src/services/schemas/FilterOptionV3.js +4 -0
- package/dist/har-service/src/services/schemas/LifecycleRuleFilterConfigGenericV3.d.ts +2 -2
- package/dist/har-service/src/services/schemas/ListFilterOptionsResponseBodyV3.d.ts +13 -0
- package/dist/har-service/src/services/schemas/ListFilterOptionsResponseBodyV3.js +1 -0
- package/dist/har-service/src/services/schemas/ListFiltersResponseBodyV3.d.ts +20 -0
- package/dist/har-service/src/services/schemas/ListFiltersResponseBodyV3.js +1 -0
- package/dist/har-service/src/services/schemas/PackageStatsV3.d.ts +24 -0
- package/dist/har-service/src/services/schemas/PackageStatsV3.js +4 -0
- package/dist/har-service/src/services/schemas/PackageTypeV3.d.ts +1 -1
- package/dist/har-service/src/services/schemas/PackagesStatsRequestInputV3.d.ts +9 -0
- package/dist/har-service/src/services/schemas/PackagesStatsRequestInputV3.js +4 -0
- package/dist/har-service/src/services/schemas/PackagesStatsResponseBodyV3.d.ts +10 -0
- package/dist/har-service/src/services/schemas/PackagesStatsResponseBodyV3.js +1 -0
- package/dist/har-service/src/services/schemas/RegistriesStatsRequestInputV3.d.ts +9 -0
- package/dist/har-service/src/services/schemas/RegistriesStatsRequestInputV3.js +4 -0
- package/dist/har-service/src/services/schemas/RegistriesStatsResponseBodyV3.d.ts +10 -0
- package/dist/har-service/src/services/schemas/RegistriesStatsResponseBodyV3.js +1 -0
- package/dist/har-service/src/services/schemas/RegistryStatsV3.d.ts +29 -0
- package/dist/har-service/src/services/schemas/RegistryStatsV3.js +4 -0
- package/dist/har-service/src/services/schemas/UpstreamConfig.d.ts +9 -0
- 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
|
+
}
|
|
@@ -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';
|
|
@@ -313,7 +321,9 @@ export type { FirewallExceptionCreateRequestV3RequestBody } from './requestBodie
|
|
|
313
321
|
export type { FirewallExceptionUpdateRequestV3RequestBody } from './requestBodies/FirewallExceptionUpdateRequestV3RequestBody';
|
|
314
322
|
export type { MetadataRequestRequestBody } from './requestBodies/MetadataRequestRequestBody';
|
|
315
323
|
export type { MetadataRequestV3RequestBody } from './requestBodies/MetadataRequestV3RequestBody';
|
|
324
|
+
export type { PackagesStatsRequestV3RequestBody } from './requestBodies/PackagesStatsRequestV3RequestBody';
|
|
316
325
|
export type { QuarantineRequestRequestBody } from './requestBodies/QuarantineRequestRequestBody';
|
|
326
|
+
export type { RegistriesStatsRequestV3RequestBody } from './requestBodies/RegistriesStatsRequestV3RequestBody';
|
|
317
327
|
export type { RegistryRequestRequestBody } from './requestBodies/RegistryRequestRequestBody';
|
|
318
328
|
export type { ReplicationRuleRequestRequestBody } from './requestBodies/ReplicationRuleRequestRequestBody';
|
|
319
329
|
export type { WebhookRequestRequestBody } from './requestBodies/WebhookRequestRequestBody';
|
|
@@ -368,6 +378,8 @@ export type { ListArtifactScanResponseV3Response } from './responses/ListArtifac
|
|
|
368
378
|
export type { ListArtifactVersionResponseResponse } from './responses/ListArtifactVersionResponseResponse';
|
|
369
379
|
export type { ListFilesResponseResponse } from './responses/ListFilesResponseResponse';
|
|
370
380
|
export type { ListFilesResponseV3Response } from './responses/ListFilesResponseV3Response';
|
|
381
|
+
export type { ListFilterOptionsResponseV3Response } from './responses/ListFilterOptionsResponseV3Response';
|
|
382
|
+
export type { ListFiltersResponseV3Response } from './responses/ListFiltersResponseV3Response';
|
|
371
383
|
export type { ListFirewallExceptionResponseV3Response } from './responses/ListFirewallExceptionResponseV3Response';
|
|
372
384
|
export type { ListFirewallExceptionVersionsResponseV3Response } from './responses/ListFirewallExceptionVersionsResponseV3Response';
|
|
373
385
|
export type { ListLifecycleExecutionsResponseV3Response } from './responses/ListLifecycleExecutionsResponseV3Response';
|
|
@@ -394,12 +406,14 @@ export type { MetadataResponseV3Response } from './responses/MetadataResponseV3R
|
|
|
394
406
|
export type { MetadataValuesResponseResponse } from './responses/MetadataValuesResponseResponse';
|
|
395
407
|
export type { MetadataValuesResponseV3Response } from './responses/MetadataValuesResponseV3Response';
|
|
396
408
|
export type { NotFoundResponse } from './responses/NotFoundResponse';
|
|
409
|
+
export type { PackagesStatsResponseV3Response } from './responses/PackagesStatsResponseV3Response';
|
|
397
410
|
export type { PlainTextResponseResponse } from './responses/PlainTextResponseResponse';
|
|
398
411
|
export type { QuarantinePathResponseResponse } from './responses/QuarantinePathResponseResponse';
|
|
399
412
|
export type { RebuildRegistryIndexAcceptedV3Response } from './responses/RebuildRegistryIndexAcceptedV3Response';
|
|
400
413
|
export type { RebuildVersionMetadataAcceptedV3Response } from './responses/RebuildVersionMetadataAcceptedV3Response';
|
|
401
414
|
export type { RedirectResponse } from './responses/RedirectResponse';
|
|
402
415
|
export type { RedirectV3Response } from './responses/RedirectV3Response';
|
|
416
|
+
export type { RegistriesStatsResponseV3Response } from './responses/RegistriesStatsResponseV3Response';
|
|
403
417
|
export type { RegistryResponseResponse } from './responses/RegistryResponseResponse';
|
|
404
418
|
export type { ReplicationRuleResponseResponse } from './responses/ReplicationRuleResponseResponse';
|
|
405
419
|
export type { StorageDetailsResponseResponse } from './responses/StorageDetailsResponseResponse';
|
|
@@ -502,6 +516,11 @@ export type { FileMetadata } from './schemas/FileMetadata';
|
|
|
502
516
|
export type { FileMetadataV3 } from './schemas/FileMetadataV3';
|
|
503
517
|
export type { FilePreviewDataV3 } from './schemas/FilePreviewDataV3';
|
|
504
518
|
export type { FilePreviewResponseBodyV3 } from './schemas/FilePreviewResponseBodyV3';
|
|
519
|
+
export type { FilterConditionV3 } from './schemas/FilterConditionV3';
|
|
520
|
+
export type { FilterDataTypeV3 } from './schemas/FilterDataTypeV3';
|
|
521
|
+
export type { FilterDefinitionV3 } from './schemas/FilterDefinitionV3';
|
|
522
|
+
export type { FilterInputTypeV3 } from './schemas/FilterInputTypeV3';
|
|
523
|
+
export type { FilterOptionV3 } from './schemas/FilterOptionV3';
|
|
505
524
|
export type { FirewallExceptionApprovalRequestV3 } from './schemas/FirewallExceptionApprovalRequestV3';
|
|
506
525
|
export type { FirewallExceptionCreateRequestV3 } from './schemas/FirewallExceptionCreateRequestV3';
|
|
507
526
|
export type { FirewallExceptionMetaV3 } from './schemas/FirewallExceptionMetaV3';
|
|
@@ -552,6 +571,8 @@ export type { ListConanPackagesResponseBodyV3 } from './schemas/ListConanPackage
|
|
|
552
571
|
export type { ListConanRecipeRevisionsResponseBodyV3 } from './schemas/ListConanRecipeRevisionsResponseBodyV3';
|
|
553
572
|
export type { ListFileDetail } from './schemas/ListFileDetail';
|
|
554
573
|
export type { ListFilesResponseBodyV3 } from './schemas/ListFilesResponseBodyV3';
|
|
574
|
+
export type { ListFilterOptionsResponseBodyV3 } from './schemas/ListFilterOptionsResponseBodyV3';
|
|
575
|
+
export type { ListFiltersResponseBodyV3 } from './schemas/ListFiltersResponseBodyV3';
|
|
555
576
|
export type { ListFirewallExceptionsResponseBodyV3 } from './schemas/ListFirewallExceptionsResponseBodyV3';
|
|
556
577
|
export type { ListLifecycleExecutionItemsResponseV3 } from './schemas/ListLifecycleExecutionItemsResponseV3';
|
|
557
578
|
export type { ListLifecycleExecutionsResponseBodyV3 } from './schemas/ListLifecycleExecutionsResponseBodyV3';
|
|
@@ -597,9 +618,12 @@ export type { OssRiskLevelPolicyFailureDetailConfigV3 } from './schemas/OssRiskL
|
|
|
597
618
|
export type { PackageAgeViolationPolicyFailureDetailConfigV3 } from './schemas/PackageAgeViolationPolicyFailureDetailConfigV3';
|
|
598
619
|
export type { PackageKindV3 } from './schemas/PackageKindV3';
|
|
599
620
|
export type { PackageMetadata } from './schemas/PackageMetadata';
|
|
621
|
+
export type { PackageStatsV3 } from './schemas/PackageStatsV3';
|
|
600
622
|
export type { PackageType } from './schemas/PackageType';
|
|
601
623
|
export type { PackageTypeV3 } from './schemas/PackageTypeV3';
|
|
602
624
|
export type { PackageV3 } from './schemas/PackageV3';
|
|
625
|
+
export type { PackagesStatsRequestInputV3 } from './schemas/PackagesStatsRequestInputV3';
|
|
626
|
+
export type { PackagesStatsResponseBodyV3 } from './schemas/PackagesStatsResponseBodyV3';
|
|
603
627
|
export type { PageInfoV3 } from './schemas/PageInfoV3';
|
|
604
628
|
export type { PerformedBy } from './schemas/PerformedBy';
|
|
605
629
|
export type { PipelineBuildInfoDetailV3 } from './schemas/PipelineBuildInfoDetailV3';
|
|
@@ -618,11 +642,14 @@ export type { PythonArtifactDetailConfig } from './schemas/PythonArtifactDetailC
|
|
|
618
642
|
export type { QuarantinePath } from './schemas/QuarantinePath';
|
|
619
643
|
export type { QuarantineRequest } from './schemas/QuarantineRequest';
|
|
620
644
|
export type { RebuildVersionMetadataRequestV3 } from './schemas/RebuildVersionMetadataRequestV3';
|
|
645
|
+
export type { RegistriesStatsRequestInputV3 } from './schemas/RegistriesStatsRequestInputV3';
|
|
646
|
+
export type { RegistriesStatsResponseBodyV3 } from './schemas/RegistriesStatsResponseBodyV3';
|
|
621
647
|
export type { Registry } from './schemas/Registry';
|
|
622
648
|
export type { RegistryArtifactMetadata } from './schemas/RegistryArtifactMetadata';
|
|
623
649
|
export type { RegistryConfig } from './schemas/RegistryConfig';
|
|
624
650
|
export type { RegistryMetadata } from './schemas/RegistryMetadata';
|
|
625
651
|
export type { RegistryRequest } from './schemas/RegistryRequest';
|
|
652
|
+
export type { RegistryStatsV3 } from './schemas/RegistryStatsV3';
|
|
626
653
|
export type { RegistryType } from './schemas/RegistryType';
|
|
627
654
|
export type { RegistryTypeV3 } from './schemas/RegistryTypeV3';
|
|
628
655
|
export type { RegistryV3 } from './schemas/RegistryV3';
|
|
@@ -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';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
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 @@
|
|
|
1
|
+
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
|
+
}
|
|
@@ -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 @@
|
|
|
1
|
+
export {};
|
|
@@ -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 @@
|
|
|
1
|
+
export {};
|
|
@@ -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
|
+
}
|
|
@@ -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 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -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
|
+
}
|
|
@@ -10,11 +10,20 @@ export interface UpstreamConfig {
|
|
|
10
10
|
auth?: UserPassword | Anonymous | AccessKeySecretKey;
|
|
11
11
|
authType: AuthType;
|
|
12
12
|
firewallMode?: UpstreamProxyConfigFirewallMode;
|
|
13
|
+
/**
|
|
14
|
+
* @format int64
|
|
15
|
+
*/
|
|
16
|
+
metadataCacheTTLMinutes?: number;
|
|
13
17
|
/**
|
|
14
18
|
* 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
19
|
*
|
|
16
20
|
*/
|
|
17
21
|
remoteUrlSuffix?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Secondary upstream URL. For Terraform registries, the primary URL is used for modules and the secondary URL for providers.
|
|
24
|
+
*
|
|
25
|
+
*/
|
|
26
|
+
secondaryUrl?: string;
|
|
18
27
|
source?: 'Anaconda' | 'AwsEcr' | 'CRAN' | 'ConanCenter' | 'Crates' | 'Custom' | 'Dockerhub' | 'GoProxy' | 'HelmChartRepo' | 'HuggingFace' | 'MavenCentral' | 'NpmJs' | 'NugetOrg' | 'Packagist' | 'Pubdev' | 'PuppetForge' | 'PyPi' | 'RubyGems' | 'TerraformRegistry';
|
|
19
28
|
url?: string;
|
|
20
29
|
}
|