@harnessio/react-har-service-client 0.97.0 → 0.99.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/useDeletePackageV3Mutation.d.ts +1 -1
- package/dist/har-service/src/services/hooks/useDeletePackageV3Mutation.js +1 -1
- package/dist/har-service/src/services/hooks/useDeleteVersionV3Mutation.d.ts +1 -1
- package/dist/har-service/src/services/hooks/useDeleteVersionV3Mutation.js +1 -1
- package/dist/har-service/src/services/hooks/useEdgeAuthorizeV3Mutation.d.ts +19 -0
- package/dist/har-service/src/services/hooks/useEdgeAuthorizeV3Mutation.js +16 -0
- package/dist/har-service/src/services/hooks/useEdgeResolveV3Mutation.d.ts +19 -0
- package/dist/har-service/src/services/hooks/useEdgeResolveV3Mutation.js +16 -0
- package/dist/har-service/src/services/hooks/useGetFileDetailsV3Query.d.ts +22 -0
- package/dist/har-service/src/services/hooks/useGetFileDetailsV3Query.js +15 -0
- package/dist/har-service/src/services/hooks/useGetFileV3Query.d.ts +1 -3
- package/dist/har-service/src/services/hooks/useGetFileV3Query.js +1 -2
- package/dist/har-service/src/services/hooks/useGetTerraformBackendStateV3Query.d.ts +3 -4
- package/dist/har-service/src/services/hooks/useGetTerraformBackendStateV3Query.js +1 -1
- package/dist/har-service/src/services/hooks/useListNodeChildrenV3Query.d.ts +3 -2
- package/dist/har-service/src/services/hooks/useListNodeChildrenV3Query.js +3 -2
- package/dist/har-service/src/services/hooks/useListRegistryNodesV3Query.d.ts +2 -2
- package/dist/har-service/src/services/hooks/useListRegistryNodesV3Query.js +2 -2
- package/dist/har-service/src/services/hooks/useListSigningKeysV3Query.d.ts +3 -0
- package/dist/har-service/src/services/hooks/useListTreeRootsV3Query.d.ts +4 -7
- package/dist/har-service/src/services/hooks/useListTreeRootsV3Query.js +4 -7
- package/dist/har-service/src/services/hooks/useResolveTreePathV3Query.d.ts +48 -0
- package/dist/har-service/src/services/hooks/useResolveTreePathV3Query.js +28 -0
- package/dist/har-service/src/services/hooks/useRevertLifecycleExecutionV3Mutation.d.ts +26 -0
- package/dist/har-service/src/services/hooks/useRevertLifecycleExecutionV3Mutation.js +19 -0
- package/dist/har-service/src/services/hooks/useSearchTreeV3Query.d.ts +49 -0
- package/dist/har-service/src/services/hooks/useSearchTreeV3Query.js +27 -0
- package/dist/har-service/src/services/hooks/useTriggerSemverBackfillV3Mutation.d.ts +19 -0
- package/dist/har-service/src/services/hooks/useTriggerSemverBackfillV3Mutation.js +17 -0
- package/dist/har-service/src/services/hooks/useUpsertAutoMetadataV3Mutation.d.ts +24 -0
- package/dist/har-service/src/services/hooks/useUpsertAutoMetadataV3Mutation.js +17 -0
- package/dist/har-service/src/services/index.d.ts +47 -5
- package/dist/har-service/src/services/index.js +8 -1
- package/dist/har-service/src/services/requestBodies/AutoMetadataRequestV3RequestBody.d.ts +2 -0
- package/dist/har-service/src/services/responses/FileDetailsResponseV3Response.d.ts +4 -0
- package/dist/har-service/src/services/responses/SearchTreeResponseV3Response.d.ts +2 -0
- package/dist/har-service/src/services/responses/SearchTreeResponseV3Response.js +1 -0
- package/dist/har-service/src/services/responses/TreeResolveResponseV3Response.d.ts +2 -0
- package/dist/har-service/src/services/responses/TreeResolveResponseV3Response.js +1 -0
- package/dist/har-service/src/services/schemas/AutoMetadataRequestInputV3.d.ts +38 -0
- package/dist/har-service/src/services/schemas/AutoMetadataRequestInputV3.js +1 -0
- package/dist/har-service/src/services/schemas/BackfillTriggerRequestInputV3.d.ts +7 -0
- package/dist/har-service/src/services/schemas/BulkDeleteRequestInputV3.d.ts +4 -2
- package/dist/har-service/src/services/schemas/EdgeAuthorizeRequestV3.d.ts +9 -0
- package/dist/har-service/src/services/schemas/EdgeAuthorizeResponseV3.d.ts +12 -0
- package/dist/har-service/src/services/schemas/EdgeAuthorizeResponseV3.js +1 -0
- package/dist/har-service/src/services/schemas/EdgeLocationV3.d.ts +5 -0
- package/dist/har-service/src/services/schemas/EdgeLocationV3.js +4 -0
- package/dist/har-service/src/services/schemas/EdgePrincipalV3.d.ts +4 -0
- package/dist/har-service/src/services/schemas/EdgePrincipalV3.js +4 -0
- package/dist/har-service/src/services/schemas/EdgeResolveRequestV3.d.ts +14 -0
- package/dist/har-service/src/services/schemas/EdgeResolveRequestV3.js +4 -0
- package/dist/har-service/src/services/schemas/EdgeResolveResponseV3.d.ts +28 -0
- package/dist/har-service/src/services/schemas/EdgeResolveResponseV3.js +1 -0
- package/dist/har-service/src/services/schemas/FileDetailsV3.d.ts +7 -0
- package/dist/har-service/src/services/schemas/FileDetailsV3.js +1 -0
- package/dist/har-service/src/services/schemas/GenerateKeyRequestV3.d.ts +4 -12
- package/dist/har-service/src/services/schemas/GenerateKeyRequestV3.js +0 -3
- package/dist/har-service/src/services/schemas/ImportKeyRequestV3.d.ts +2 -6
- package/dist/har-service/src/services/schemas/ImportKeyRequestV3.js +0 -3
- package/dist/har-service/src/services/schemas/LifecycleExecutionItemResponseV3.d.ts +5 -0
- package/dist/har-service/src/services/schemas/LifecycleRuleFilterConfigGenericV3.d.ts +2 -0
- package/dist/har-service/src/services/schemas/LifecycleRuleFilterConfigGenericV3.js +0 -3
- package/dist/har-service/src/services/schemas/LifecycleRuleFilterConfigMavenV3.d.ts +2 -0
- package/dist/har-service/src/services/schemas/LifecycleRuleFilterConfigMavenV3.js +0 -3
- package/dist/har-service/src/services/schemas/LifecycleRuleSemverOnlyV3.d.ts +5 -0
- package/dist/har-service/src/services/schemas/LifecycleRuleSemverOnlyV3.js +4 -0
- package/dist/har-service/src/services/schemas/PackageV3.d.ts +0 -4
- package/dist/har-service/src/services/schemas/RegistryV3.d.ts +0 -9
- package/dist/har-service/src/services/schemas/RevertFailureDetailV3.d.ts +9 -0
- package/dist/har-service/src/services/schemas/RevertFailureDetailV3.js +4 -0
- package/dist/har-service/src/services/schemas/RevertLifecycleExecutionDataV3.d.ts +34 -0
- package/dist/har-service/src/services/schemas/RevertLifecycleExecutionDataV3.js +1 -0
- package/dist/har-service/src/services/schemas/RevertLifecycleExecutionResponseV3.d.ts +7 -0
- package/dist/har-service/src/services/schemas/RevertLifecycleExecutionResponseV3.js +1 -0
- package/dist/har-service/src/services/schemas/SearchAncestorV3.d.ts +21 -0
- package/dist/har-service/src/services/schemas/SearchAncestorV3.js +4 -0
- package/dist/har-service/src/services/schemas/SearchFileItemV3.d.ts +46 -0
- package/dist/har-service/src/services/schemas/SearchFileItemV3.js +1 -0
- package/dist/har-service/src/services/schemas/SearchFilesGroupV3.d.ts +26 -0
- package/dist/har-service/src/services/schemas/SearchFilesGroupV3.js +1 -0
- package/dist/har-service/src/services/schemas/SearchPackageItemV3.d.ts +48 -0
- package/dist/har-service/src/services/schemas/SearchPackageItemV3.js +1 -0
- package/dist/har-service/src/services/schemas/SearchPackagesGroupV3.d.ts +26 -0
- package/dist/har-service/src/services/schemas/SearchPackagesGroupV3.js +1 -0
- package/dist/har-service/src/services/schemas/SearchRegistriesGroupV3.d.ts +26 -0
- package/dist/har-service/src/services/schemas/SearchRegistriesGroupV3.js +1 -0
- package/dist/har-service/src/services/schemas/SearchRegistryItemV3.d.ts +26 -0
- package/dist/har-service/src/services/schemas/SearchRegistryItemV3.js +4 -0
- package/dist/har-service/src/services/schemas/SearchTreeResponseBodyV3.d.ts +13 -0
- package/dist/har-service/src/services/schemas/SearchTreeResponseBodyV3.js +1 -0
- package/dist/har-service/src/services/schemas/SearchVersionItemV3.d.ts +70 -0
- package/dist/har-service/src/services/schemas/SearchVersionItemV3.js +1 -0
- package/dist/har-service/src/services/schemas/SearchVersionsGroupV3.d.ts +26 -0
- package/dist/har-service/src/services/schemas/SearchVersionsGroupV3.js +1 -0
- package/dist/har-service/src/services/schemas/SemverBackfillTriggerDataV3.d.ts +14 -0
- package/dist/har-service/src/services/schemas/SemverBackfillTriggerDataV3.js +4 -0
- package/dist/har-service/src/services/schemas/SigningKeyTypeV3.d.ts +6 -0
- package/dist/har-service/src/services/schemas/SigningKeyTypeV3.js +4 -0
- package/dist/har-service/src/services/schemas/SigningKeyV3.d.ts +2 -6
- package/dist/har-service/src/services/schemas/TreeEntityKindV3.d.ts +7 -0
- package/dist/har-service/src/services/schemas/TreeEntityKindV3.js +4 -0
- package/dist/har-service/src/services/schemas/TreeNodeItemV3.d.ts +42 -22
- package/dist/har-service/src/services/schemas/TreeNodeItemV3.js +0 -3
- package/dist/har-service/src/services/schemas/TreePaginationV3.d.ts +9 -13
- package/dist/har-service/src/services/schemas/TreePathStepV3.d.ts +29 -0
- package/dist/har-service/src/services/schemas/TreePathStepV3.js +1 -0
- package/dist/har-service/src/services/schemas/TreeResolveResponseBodyV3.d.ts +14 -0
- package/dist/har-service/src/services/schemas/TreeResolveResponseBodyV3.js +1 -0
- package/dist/har-service/src/services/schemas/TreeResponseBodyV3.d.ts +1 -1
- package/package.json +1 -1
- package/dist/har-service/src/services/hooks/useGetFilePreviewV3Query.d.ts +0 -24
- package/dist/har-service/src/services/hooks/useGetFilePreviewV3Query.js +0 -15
- package/dist/har-service/src/services/responses/FilePreviewResponseV3Response.d.ts +0 -2
- package/dist/har-service/src/services/schemas/FilePreviewDataV3.d.ts +0 -30
- package/dist/har-service/src/services/schemas/FilePreviewResponseBodyV3.d.ts +0 -7
- /package/dist/har-service/src/services/{responses/FilePreviewResponseV3Response.js → requestBodies/AutoMetadataRequestV3RequestBody.js} +0 -0
- /package/dist/har-service/src/services/{schemas/FilePreviewResponseBodyV3.js → responses/FileDetailsResponseV3Response.js} +0 -0
- /package/dist/har-service/src/services/schemas/{FilePreviewDataV3.js → EdgeAuthorizeRequestV3.js} +0 -0
|
@@ -16,6 +16,6 @@ export interface DeletePackageV3Props extends DeletePackageV3MutationPathParams,
|
|
|
16
16
|
}
|
|
17
17
|
export declare function deletePackageV3(props: DeletePackageV3Props): Promise<DeletePackageV3OkResponse>;
|
|
18
18
|
/**
|
|
19
|
-
* Delete a package/image
|
|
19
|
+
* Delete a package/image. force=false (soft delete) is not supported for UPSTREAM registries.
|
|
20
20
|
*/
|
|
21
21
|
export declare function useDeletePackageV3Mutation(options?: Omit<UseMutationOptions<DeletePackageV3OkResponse, DeletePackageV3ErrorResponse, DeletePackageV3Props>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<DeletePackageV3OkResponse, ErrorV3, DeletePackageV3Props, unknown>;
|
|
@@ -7,7 +7,7 @@ export function deletePackageV3(props) {
|
|
|
7
7
|
return fetcher(Object.assign({ url: `/v3/packages/${props.id}`, method: 'DELETE' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
* Delete a package/image
|
|
10
|
+
* Delete a package/image. force=false (soft delete) is not supported for UPSTREAM registries.
|
|
11
11
|
*/
|
|
12
12
|
export function useDeletePackageV3Mutation(options) {
|
|
13
13
|
return useMutation((mutateProps) => deletePackageV3(mutateProps), options);
|
|
@@ -16,6 +16,6 @@ export interface DeleteVersionV3Props extends DeleteVersionV3MutationPathParams,
|
|
|
16
16
|
}
|
|
17
17
|
export declare function deleteVersionV3(props: DeleteVersionV3Props): Promise<DeleteVersionV3OkResponse>;
|
|
18
18
|
/**
|
|
19
|
-
* Delete a version (soft
|
|
19
|
+
* Delete a version. force=false (soft delete) is not supported for UPSTREAM registries.
|
|
20
20
|
*/
|
|
21
21
|
export declare function useDeleteVersionV3Mutation(options?: Omit<UseMutationOptions<DeleteVersionV3OkResponse, DeleteVersionV3ErrorResponse, DeleteVersionV3Props>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<DeleteVersionV3OkResponse, ErrorV3, DeleteVersionV3Props, unknown>;
|
|
@@ -7,7 +7,7 @@ export function deleteVersionV3(props) {
|
|
|
7
7
|
return fetcher(Object.assign({ url: `/v3/versions/${props.id}`, method: 'DELETE' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
* Delete a version (soft
|
|
10
|
+
* Delete a version. force=false (soft delete) is not supported for UPSTREAM registries.
|
|
11
11
|
*/
|
|
12
12
|
export function useDeleteVersionV3Mutation(options) {
|
|
13
13
|
return useMutation((mutateProps) => deleteVersionV3(mutateProps), options);
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { EdgeAuthorizeResponseV3 } from '../schemas/EdgeAuthorizeResponseV3';
|
|
3
|
+
import type { ErrorV3 } from '../schemas/ErrorV3';
|
|
4
|
+
import type { EdgeAuthorizeRequestV3 } from '../schemas/EdgeAuthorizeRequestV3';
|
|
5
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
6
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
7
|
+
export type EdgeAuthorizeV3RequestBody = EdgeAuthorizeRequestV3;
|
|
8
|
+
export type EdgeAuthorizeV3OkResponse = ResponseWithPagination<EdgeAuthorizeResponseV3>;
|
|
9
|
+
export type EdgeAuthorizeV3ErrorResponse = ErrorV3;
|
|
10
|
+
export interface EdgeAuthorizeV3Props extends Omit<FetcherOptions<unknown, EdgeAuthorizeV3RequestBody>, 'url'> {
|
|
11
|
+
body: EdgeAuthorizeV3RequestBody;
|
|
12
|
+
}
|
|
13
|
+
export declare function edgeAuthorizeV3(props: EdgeAuthorizeV3Props): Promise<EdgeAuthorizeV3OkResponse>;
|
|
14
|
+
/**
|
|
15
|
+
* Edge worker authorization. Authenticated with the X-Har-Edge-Secret shared secret instead of
|
|
16
|
+
* regular user auth. Returns 404 when the edge integration is disabled.
|
|
17
|
+
*
|
|
18
|
+
*/
|
|
19
|
+
export declare function useEdgeAuthorizeV3Mutation(options?: Omit<UseMutationOptions<EdgeAuthorizeV3OkResponse, EdgeAuthorizeV3ErrorResponse, EdgeAuthorizeV3Props>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<EdgeAuthorizeV3OkResponse, ErrorV3, EdgeAuthorizeV3Props, unknown>;
|
|
@@ -0,0 +1,16 @@
|
|
|
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 edgeAuthorizeV3(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v3/edge/authorize`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Edge worker authorization. Authenticated with the X-Har-Edge-Secret shared secret instead of
|
|
11
|
+
* regular user auth. Returns 404 when the edge integration is disabled.
|
|
12
|
+
*
|
|
13
|
+
*/
|
|
14
|
+
export function useEdgeAuthorizeV3Mutation(options) {
|
|
15
|
+
return useMutation((mutateProps) => edgeAuthorizeV3(mutateProps), options);
|
|
16
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { EdgeResolveResponseV3 } from '../schemas/EdgeResolveResponseV3';
|
|
3
|
+
import type { ErrorV3 } from '../schemas/ErrorV3';
|
|
4
|
+
import type { EdgeResolveRequestV3 } from '../schemas/EdgeResolveRequestV3';
|
|
5
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
6
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
7
|
+
export type EdgeResolveV3RequestBody = EdgeResolveRequestV3;
|
|
8
|
+
export type EdgeResolveV3OkResponse = ResponseWithPagination<EdgeResolveResponseV3>;
|
|
9
|
+
export type EdgeResolveV3ErrorResponse = ErrorV3;
|
|
10
|
+
export interface EdgeResolveV3Props extends Omit<FetcherOptions<unknown, EdgeResolveV3RequestBody>, 'url'> {
|
|
11
|
+
body: EdgeResolveV3RequestBody;
|
|
12
|
+
}
|
|
13
|
+
export declare function edgeResolveV3(props: EdgeResolveV3Props): Promise<EdgeResolveV3OkResponse>;
|
|
14
|
+
/**
|
|
15
|
+
* Edge worker blob resolution. Authenticated with the X-Har-Edge-Secret shared secret instead of
|
|
16
|
+
* regular user auth. Returns 404 when the edge integration is disabled.
|
|
17
|
+
*
|
|
18
|
+
*/
|
|
19
|
+
export declare function useEdgeResolveV3Mutation(options?: Omit<UseMutationOptions<EdgeResolveV3OkResponse, EdgeResolveV3ErrorResponse, EdgeResolveV3Props>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<EdgeResolveV3OkResponse, ErrorV3, EdgeResolveV3Props, unknown>;
|
|
@@ -0,0 +1,16 @@
|
|
|
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 edgeResolveV3(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v3/edge/resolve`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Edge worker blob resolution. Authenticated with the X-Har-Edge-Secret shared secret instead of
|
|
11
|
+
* regular user auth. Returns 404 when the edge integration is disabled.
|
|
12
|
+
*
|
|
13
|
+
*/
|
|
14
|
+
export function useEdgeResolveV3Mutation(options) {
|
|
15
|
+
return useMutation((mutateProps) => edgeResolveV3(mutateProps), options);
|
|
16
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { FileDetailsResponseV3Response } from '../responses/FileDetailsResponseV3Response';
|
|
3
|
+
import type { ErrorV3 } from '../schemas/ErrorV3';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface GetFileDetailsV3QueryPathParams {
|
|
7
|
+
id: string;
|
|
8
|
+
}
|
|
9
|
+
export interface GetFileDetailsV3QueryQueryParams {
|
|
10
|
+
account_identifier: string;
|
|
11
|
+
}
|
|
12
|
+
export type GetFileDetailsV3OkResponse = ResponseWithPagination<FileDetailsResponseV3Response>;
|
|
13
|
+
export type GetFileDetailsV3ErrorResponse = ErrorV3;
|
|
14
|
+
export interface GetFileDetailsV3Props extends GetFileDetailsV3QueryPathParams, Omit<FetcherOptions<GetFileDetailsV3QueryQueryParams, unknown>, 'url'> {
|
|
15
|
+
queryParams: GetFileDetailsV3QueryQueryParams;
|
|
16
|
+
}
|
|
17
|
+
export declare function getFileDetailsV3(props: GetFileDetailsV3Props): Promise<GetFileDetailsV3OkResponse>;
|
|
18
|
+
/**
|
|
19
|
+
* Retrieves details for a single file by its id, including its downloadUrl (GET /files/{id}/content) and Content-Type. Following downloadUrl applies Content-Type and either inline preview or an attachment download.
|
|
20
|
+
*
|
|
21
|
+
*/
|
|
22
|
+
export declare function useGetFileDetailsV3Query(props: GetFileDetailsV3Props, options?: Omit<UseQueryOptions<GetFileDetailsV3OkResponse, GetFileDetailsV3ErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetFileDetailsV3OkResponse, ErrorV3>;
|
|
@@ -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 { useQuery } from '@tanstack/react-query';
|
|
5
|
+
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
|
+
export function getFileDetailsV3(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v3/files/${props.id}`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Retrieves details for a single file by its id, including its downloadUrl (GET /files/{id}/content) and Content-Type. Following downloadUrl applies Content-Type and either inline preview or an attachment download.
|
|
11
|
+
*
|
|
12
|
+
*/
|
|
13
|
+
export function useGetFileDetailsV3Query(props, options) {
|
|
14
|
+
return useQuery(['GetFileDetailsV3', props.id, props.queryParams], ({ signal }) => getFileDetailsV3(Object.assign(Object.assign({}, props), { signal })), options);
|
|
15
|
+
}
|
|
@@ -9,7 +9,6 @@ export interface GetFileV3QueryPathParams {
|
|
|
9
9
|
}
|
|
10
10
|
export interface GetFileV3QueryQueryParams {
|
|
11
11
|
account_identifier: string;
|
|
12
|
-
preview?: boolean;
|
|
13
12
|
}
|
|
14
13
|
export type GetFileV3OkResponse = ResponseWithPagination<DownloadFileResponseV3Response>;
|
|
15
14
|
export type GetFileV3ErrorResponse = RedirectV3Response | ErrorV3;
|
|
@@ -18,7 +17,6 @@ export interface GetFileV3Props extends GetFileV3QueryPathParams, Omit<FetcherOp
|
|
|
18
17
|
}
|
|
19
18
|
export declare function getFileV3(props: GetFileV3Props): Promise<GetFileV3OkResponse>;
|
|
20
19
|
/**
|
|
21
|
-
* Download a file using its id.
|
|
22
|
-
*
|
|
20
|
+
* Download a file using its id.
|
|
23
21
|
*/
|
|
24
22
|
export declare function useGetFileV3Query(props: GetFileV3Props, options?: Omit<UseQueryOptions<GetFileV3OkResponse, GetFileV3ErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetFileV3OkResponse, unknown>;
|
|
@@ -7,8 +7,7 @@ export function getFileV3(props) {
|
|
|
7
7
|
return fetcher(Object.assign({ url: `/v3/files/${props.id}/content`, method: 'GET' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
* Download a file using its id.
|
|
11
|
-
*
|
|
10
|
+
* Download a file using its id.
|
|
12
11
|
*/
|
|
13
12
|
export function useGetFileV3Query(props, options) {
|
|
14
13
|
return useQuery(['GetFileV3', props.id, props.queryParams], ({ signal }) => getFileV3(Object.assign(Object.assign({}, props), { signal })), options);
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
2
|
import type { TerraformBackendStateResponseV3Response } from '../responses/TerraformBackendStateResponseV3Response';
|
|
3
|
-
import type { RedirectV3Response } from '../responses/RedirectV3Response';
|
|
4
3
|
import type { ErrorV3 } from '../schemas/ErrorV3';
|
|
5
4
|
import type { ResponseWithPagination } from '../helpers';
|
|
6
5
|
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
@@ -11,13 +10,13 @@ export interface GetTerraformBackendStateV3QueryQueryParams {
|
|
|
11
10
|
account_identifier: string;
|
|
12
11
|
}
|
|
13
12
|
export type GetTerraformBackendStateV3OkResponse = ResponseWithPagination<TerraformBackendStateResponseV3Response>;
|
|
14
|
-
export type GetTerraformBackendStateV3ErrorResponse =
|
|
13
|
+
export type GetTerraformBackendStateV3ErrorResponse = ErrorV3;
|
|
15
14
|
export interface GetTerraformBackendStateV3Props extends GetTerraformBackendStateV3QueryPathParams, Omit<FetcherOptions<GetTerraformBackendStateV3QueryQueryParams, unknown>, 'url'> {
|
|
16
15
|
queryParams: GetTerraformBackendStateV3QueryQueryParams;
|
|
17
16
|
}
|
|
18
17
|
export declare function getTerraformBackendStateV3(props: GetTerraformBackendStateV3Props): Promise<GetTerraformBackendStateV3OkResponse>;
|
|
19
18
|
/**
|
|
20
|
-
* Returns the raw Terraform state (JSON) captured at a specific version of a Terraform Backend workspace. Resolves the version id to its serial and streams the state file stored at that serial, enabling a version to be diffed against an earlier one.
|
|
19
|
+
* Returns the raw Terraform state (JSON) captured at a specific version of a Terraform Backend workspace. Resolves the version id to its serial and streams the state file stored at that serial, enabling a version to be diffed against an earlier one. The state bytes are always streamed through this service, including when the content is stored remotely, so that browser clients can read the response directly.
|
|
21
20
|
*
|
|
22
21
|
*/
|
|
23
|
-
export declare function useGetTerraformBackendStateV3Query(props: GetTerraformBackendStateV3Props, options?: Omit<UseQueryOptions<GetTerraformBackendStateV3OkResponse, GetTerraformBackendStateV3ErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetTerraformBackendStateV3OkResponse,
|
|
22
|
+
export declare function useGetTerraformBackendStateV3Query(props: GetTerraformBackendStateV3Props, options?: Omit<UseQueryOptions<GetTerraformBackendStateV3OkResponse, GetTerraformBackendStateV3ErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetTerraformBackendStateV3OkResponse, ErrorV3>;
|
|
@@ -7,7 +7,7 @@ export function getTerraformBackendStateV3(props) {
|
|
|
7
7
|
return fetcher(Object.assign({ url: `/v3/versions/${props.id}/terraform-backend/state`, method: 'GET' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
* Returns the raw Terraform state (JSON) captured at a specific version of a Terraform Backend workspace. Resolves the version id to its serial and streams the state file stored at that serial, enabling a version to be diffed against an earlier one.
|
|
10
|
+
* Returns the raw Terraform state (JSON) captured at a specific version of a Terraform Backend workspace. Resolves the version id to its serial and streams the state file stored at that serial, enabling a version to be diffed against an earlier one. The state bytes are always streamed through this service, including when the content is stored remotely, so that browser clients can read the response directly.
|
|
11
11
|
*
|
|
12
12
|
*/
|
|
13
13
|
export function useGetTerraformBackendStateV3Query(props, options) {
|
|
@@ -28,8 +28,9 @@ export interface ListNodeChildrenV3Props extends ListNodeChildrenV3QueryPathPara
|
|
|
28
28
|
}
|
|
29
29
|
export declare function listNodeChildrenV3(props: ListNodeChildrenV3Props): Promise<ListNodeChildrenV3OkResponse>;
|
|
30
30
|
/**
|
|
31
|
-
* Lists immediate children of a
|
|
32
|
-
*
|
|
31
|
+
* Lists the immediate children of a non-registry node. For a Docker/Helm package, the
|
|
32
|
+
* first page starts with an `Untagged (n)` group when the package has untagged manifests;
|
|
33
|
+
* it occupies one slot of `size`. An unknown node returns 404.
|
|
33
34
|
*
|
|
34
35
|
*/
|
|
35
36
|
export declare function useListNodeChildrenV3Query(props: ListNodeChildrenV3Props, options?: Omit<UseQueryOptions<ListNodeChildrenV3OkResponse, ListNodeChildrenV3ErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListNodeChildrenV3OkResponse, ErrorV3>;
|
|
@@ -7,8 +7,9 @@ export function listNodeChildrenV3(props) {
|
|
|
7
7
|
return fetcher(Object.assign({ url: `/v3/tree/nodes/${props.node_id}/children`, method: 'GET' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
* Lists immediate children of a
|
|
11
|
-
*
|
|
10
|
+
* Lists the immediate children of a non-registry node. For a Docker/Helm package, the
|
|
11
|
+
* first page starts with an `Untagged (n)` group when the package has untagged manifests;
|
|
12
|
+
* it occupies one slot of `size`. An unknown node returns 404.
|
|
12
13
|
*
|
|
13
14
|
*/
|
|
14
15
|
export function useListNodeChildrenV3Query(props, options) {
|
|
@@ -28,8 +28,8 @@ export interface ListRegistryNodesV3Props extends ListRegistryNodesV3QueryPathPa
|
|
|
28
28
|
}
|
|
29
29
|
export declare function listRegistryNodesV3(props: ListRegistryNodesV3Props): Promise<ListRegistryNodesV3OkResponse>;
|
|
30
30
|
/**
|
|
31
|
-
* Lists
|
|
32
|
-
*
|
|
31
|
+
* Lists the immediate children of a registry: packages for Docker/Helm, top-level
|
|
32
|
+
* folders/files for every other package type. Expand a child with `ListNodeChildrenV3`.
|
|
33
33
|
*
|
|
34
34
|
*/
|
|
35
35
|
export declare function useListRegistryNodesV3Query(props: ListRegistryNodesV3Props, options?: Omit<UseQueryOptions<ListRegistryNodesV3OkResponse, ListRegistryNodesV3ErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListRegistryNodesV3OkResponse, ErrorV3>;
|
|
@@ -7,8 +7,8 @@ export function listRegistryNodesV3(props) {
|
|
|
7
7
|
return fetcher(Object.assign({ url: `/v3/tree/registries/${props.registry_id}/nodes`, method: 'GET' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
* Lists
|
|
11
|
-
*
|
|
10
|
+
* Lists the immediate children of a registry: packages for Docker/Helm, top-level
|
|
11
|
+
* folders/files for every other package type. Expand a child with `ListNodeChildrenV3`.
|
|
12
12
|
*
|
|
13
13
|
*/
|
|
14
14
|
export function useListRegistryNodesV3Query(props, options) {
|
|
@@ -28,13 +28,10 @@ export interface ListTreeRootsV3Props extends Omit<FetcherOptions<ListTreeRootsV
|
|
|
28
28
|
}
|
|
29
29
|
export declare function listTreeRootsV3(props: ListTreeRootsV3Props): Promise<ListTreeRootsV3OkResponse>;
|
|
30
30
|
/**
|
|
31
|
-
* Lists
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
*
|
|
35
|
-
* `ListRegistriesV3`: the current space, plus its ancestors or descendants. It has no
|
|
36
|
-
* equivalent on the levels below, because those are already bounded to the single
|
|
37
|
-
* registry named in the path.
|
|
31
|
+
* Lists the registries forming the tree's root level, sorted by name. `scope` is resolved
|
|
32
|
+
* as for `ListRegistriesV3`; a `scope` value other than `none`/`ancestors`/`descendants`
|
|
33
|
+
* (when provided) returns 400. `pagination.total` is exact and returned on the first page
|
|
34
|
+
* only. Expand a registry with `ListRegistryNodesV3`.
|
|
38
35
|
*
|
|
39
36
|
*/
|
|
40
37
|
export declare function useListTreeRootsV3Query(props: ListTreeRootsV3Props, options?: Omit<UseQueryOptions<ListTreeRootsV3OkResponse, ListTreeRootsV3ErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListTreeRootsV3OkResponse, ErrorV3>;
|
|
@@ -7,13 +7,10 @@ export function listTreeRootsV3(props) {
|
|
|
7
7
|
return fetcher(Object.assign({ url: `/v3/tree/roots`, method: 'GET' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
* Lists
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
* `ListRegistriesV3`: the current space, plus its ancestors or descendants. It has no
|
|
15
|
-
* equivalent on the levels below, because those are already bounded to the single
|
|
16
|
-
* registry named in the path.
|
|
10
|
+
* Lists the registries forming the tree's root level, sorted by name. `scope` is resolved
|
|
11
|
+
* as for `ListRegistriesV3`; a `scope` value other than `none`/`ancestors`/`descendants`
|
|
12
|
+
* (when provided) returns 400. `pagination.total` is exact and returned on the first page
|
|
13
|
+
* only. Expand a registry with `ListRegistryNodesV3`.
|
|
17
14
|
*
|
|
18
15
|
*/
|
|
19
16
|
export function useListTreeRootsV3Query(props, options) {
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { TreeResolveResponseV3Response } from '../responses/TreeResolveResponseV3Response';
|
|
3
|
+
import type { ErrorV3 } from '../schemas/ErrorV3';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface ResolveTreePathV3QueryQueryParams {
|
|
7
|
+
account_identifier: string;
|
|
8
|
+
org_identifier?: string;
|
|
9
|
+
project_identifier?: string;
|
|
10
|
+
path: string;
|
|
11
|
+
scope?: 'ancestors' | 'descendants' | 'none';
|
|
12
|
+
/**
|
|
13
|
+
* @default "exclude_deleted"
|
|
14
|
+
*/
|
|
15
|
+
deleted_filter?: 'exclude_deleted' | 'include_deleted' | 'only_deleted';
|
|
16
|
+
registry_type?: string;
|
|
17
|
+
package_type?: string;
|
|
18
|
+
cursor?: string;
|
|
19
|
+
/**
|
|
20
|
+
* @default 50
|
|
21
|
+
*/
|
|
22
|
+
size?: number;
|
|
23
|
+
compact?: boolean;
|
|
24
|
+
}
|
|
25
|
+
export type ResolveTreePathV3OkResponse = ResponseWithPagination<TreeResolveResponseV3Response>;
|
|
26
|
+
export type ResolveTreePathV3ErrorResponse = ErrorV3;
|
|
27
|
+
export interface ResolveTreePathV3Props extends Omit<FetcherOptions<ResolveTreePathV3QueryQueryParams, unknown>, 'url'> {
|
|
28
|
+
queryParams: ResolveTreePathV3QueryQueryParams;
|
|
29
|
+
}
|
|
30
|
+
export declare function resolveTreePathV3(props: ResolveTreePathV3Props): Promise<ResolveTreePathV3OkResponse>;
|
|
31
|
+
/**
|
|
32
|
+
* Resolves a canonical, readable `path` (copy it from `treePath`) to every node along it, so a
|
|
33
|
+
* URL can carry the open node: the client reads the node's ids for its details call and
|
|
34
|
+
* expands the tree by listing each step's children.
|
|
35
|
+
*
|
|
36
|
+
* The response also carries the first page of the requested node's own children, exactly as
|
|
37
|
+
* `ListRegistryNodesV3` (for a registry) or `ListNodeChildrenV3` (for any other node) would
|
|
38
|
+
* return them under the same `cursor`, `size`, `deleted_filter` and `compact`. Load further
|
|
39
|
+
* pages from those endpoints with `children.pagination.nextCursor`. A file has no children.
|
|
40
|
+
*
|
|
41
|
+
* Every step must be a node the list endpoints would show under the same `scope`,
|
|
42
|
+
* `deleted_filter`, `registry_type` and `package_type`; send the same values to both. A path
|
|
43
|
+
* that does not fully resolve, or whose registry is outside `scope` or excluded by a filter,
|
|
44
|
+
* returns 404. Resolving requires view permission on the registry, as for
|
|
45
|
+
* `ListRegistryNodesV3` (403 otherwise). A malformed path, `size` or `cursor` returns 400.
|
|
46
|
+
*
|
|
47
|
+
*/
|
|
48
|
+
export declare function useResolveTreePathV3Query(props: ResolveTreePathV3Props, options?: Omit<UseQueryOptions<ResolveTreePathV3OkResponse, ResolveTreePathV3ErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ResolveTreePathV3OkResponse, ErrorV3>;
|
|
@@ -0,0 +1,28 @@
|
|
|
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 resolveTreePathV3(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v3/tree/resolve`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Resolves a canonical, readable `path` (copy it from `treePath`) to every node along it, so a
|
|
11
|
+
* URL can carry the open node: the client reads the node's ids for its details call and
|
|
12
|
+
* expands the tree by listing each step's children.
|
|
13
|
+
*
|
|
14
|
+
* The response also carries the first page of the requested node's own children, exactly as
|
|
15
|
+
* `ListRegistryNodesV3` (for a registry) or `ListNodeChildrenV3` (for any other node) would
|
|
16
|
+
* return them under the same `cursor`, `size`, `deleted_filter` and `compact`. Load further
|
|
17
|
+
* pages from those endpoints with `children.pagination.nextCursor`. A file has no children.
|
|
18
|
+
*
|
|
19
|
+
* Every step must be a node the list endpoints would show under the same `scope`,
|
|
20
|
+
* `deleted_filter`, `registry_type` and `package_type`; send the same values to both. A path
|
|
21
|
+
* that does not fully resolve, or whose registry is outside `scope` or excluded by a filter,
|
|
22
|
+
* returns 404. Resolving requires view permission on the registry, as for
|
|
23
|
+
* `ListRegistryNodesV3` (403 otherwise). A malformed path, `size` or `cursor` returns 400.
|
|
24
|
+
*
|
|
25
|
+
*/
|
|
26
|
+
export function useResolveTreePathV3Query(props, options) {
|
|
27
|
+
return useQuery(['ResolveTreePathV3', props.queryParams], ({ signal }) => resolveTreePathV3(Object.assign(Object.assign({}, props), { signal })), options);
|
|
28
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { RevertLifecycleExecutionResponseV3 } from '../schemas/RevertLifecycleExecutionResponseV3';
|
|
3
|
+
import type { ErrorV3 } from '../schemas/ErrorV3';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface RevertLifecycleExecutionV3MutationPathParams {
|
|
7
|
+
executionId: string;
|
|
8
|
+
}
|
|
9
|
+
export interface RevertLifecycleExecutionV3MutationQueryParams {
|
|
10
|
+
account_identifier: string;
|
|
11
|
+
}
|
|
12
|
+
export type RevertLifecycleExecutionV3OkResponse = ResponseWithPagination<RevertLifecycleExecutionResponseV3>;
|
|
13
|
+
export type RevertLifecycleExecutionV3ErrorResponse = ErrorV3;
|
|
14
|
+
export interface RevertLifecycleExecutionV3Props extends RevertLifecycleExecutionV3MutationPathParams, Omit<FetcherOptions<RevertLifecycleExecutionV3MutationQueryParams, unknown>, 'url'> {
|
|
15
|
+
queryParams: RevertLifecycleExecutionV3MutationQueryParams;
|
|
16
|
+
}
|
|
17
|
+
export declare function revertLifecycleExecutionV3(props: RevertLifecycleExecutionV3Props): Promise<RevertLifecycleExecutionV3OkResponse>;
|
|
18
|
+
/**
|
|
19
|
+
* Reverts (restores) all artifacts that were soft-deleted by a specific lifecycle
|
|
20
|
+
* execution. Only artifacts with outcome "DELETED" are restored. Artifacts that were
|
|
21
|
+
* already hard-deleted or have been modified since the execution cannot be restored.
|
|
22
|
+
* Returns a summary of the revert operation including counts of successfully restored
|
|
23
|
+
* and failed artifacts.
|
|
24
|
+
*
|
|
25
|
+
*/
|
|
26
|
+
export declare function useRevertLifecycleExecutionV3Mutation(options?: Omit<UseMutationOptions<RevertLifecycleExecutionV3OkResponse, RevertLifecycleExecutionV3ErrorResponse, RevertLifecycleExecutionV3Props>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<RevertLifecycleExecutionV3OkResponse, ErrorV3, RevertLifecycleExecutionV3Props, unknown>;
|
|
@@ -0,0 +1,19 @@
|
|
|
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 revertLifecycleExecutionV3(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v3/lifecycle/executions/${props.executionId}/revert`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Reverts (restores) all artifacts that were soft-deleted by a specific lifecycle
|
|
11
|
+
* execution. Only artifacts with outcome "DELETED" are restored. Artifacts that were
|
|
12
|
+
* already hard-deleted or have been modified since the execution cannot be restored.
|
|
13
|
+
* Returns a summary of the revert operation including counts of successfully restored
|
|
14
|
+
* and failed artifacts.
|
|
15
|
+
*
|
|
16
|
+
*/
|
|
17
|
+
export function useRevertLifecycleExecutionV3Mutation(options) {
|
|
18
|
+
return useMutation((mutateProps) => revertLifecycleExecutionV3(mutateProps), options);
|
|
19
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { SearchTreeResponseV3Response } from '../responses/SearchTreeResponseV3Response';
|
|
3
|
+
import type { ErrorV3 } from '../schemas/ErrorV3';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface SearchTreeV3QueryQueryParams {
|
|
7
|
+
account_identifier: string;
|
|
8
|
+
org_identifier?: string;
|
|
9
|
+
project_identifier?: string;
|
|
10
|
+
scope?: 'ancestors' | 'descendants' | 'none';
|
|
11
|
+
search: string;
|
|
12
|
+
/**
|
|
13
|
+
* @default 10
|
|
14
|
+
*/
|
|
15
|
+
size?: number;
|
|
16
|
+
registries_cursor?: string;
|
|
17
|
+
packages_cursor?: string;
|
|
18
|
+
versions_cursor?: string;
|
|
19
|
+
files_cursor?: string;
|
|
20
|
+
package_type?: string;
|
|
21
|
+
registry_type?: string;
|
|
22
|
+
/**
|
|
23
|
+
* @default "exclude_deleted"
|
|
24
|
+
*/
|
|
25
|
+
deleted_filter?: 'exclude_deleted' | 'include_deleted' | 'only_deleted';
|
|
26
|
+
}
|
|
27
|
+
export type SearchTreeV3OkResponse = ResponseWithPagination<SearchTreeResponseV3Response>;
|
|
28
|
+
export type SearchTreeV3ErrorResponse = ErrorV3;
|
|
29
|
+
export interface SearchTreeV3Props extends Omit<FetcherOptions<SearchTreeV3QueryQueryParams, unknown>, 'url'> {
|
|
30
|
+
queryParams: SearchTreeV3QueryQueryParams;
|
|
31
|
+
}
|
|
32
|
+
export declare function searchTreeV3(props: SearchTreeV3Props): Promise<SearchTreeV3OkResponse>;
|
|
33
|
+
/**
|
|
34
|
+
* Searches every registry in `scope` (resolved as for `ListTreeRootsV3`; a `scope` value
|
|
35
|
+
* other than `none`/`ancestors`/`descendants`, when provided, returns 400) and returns four
|
|
36
|
+
* groups in one response: Registries, Packages, Versions and Files/Folders, each sorted by
|
|
37
|
+
* name. Each group has its own cursor parameter and `nextCursor`; paging one group
|
|
38
|
+
* leaves the others on their first page. Each group's `count` is independent of pagination
|
|
39
|
+
* and saturates at 1001 ("1000+").
|
|
40
|
+
*
|
|
41
|
+
* Every group query runs under a 5 s server-side budget. A group that exceeds it is
|
|
42
|
+
* returned empty with `timedOut: true` and the other groups are returned as normal; the
|
|
43
|
+
* request fails with 504 only when every group timed out.
|
|
44
|
+
*
|
|
45
|
+
* Registries and Files hits are always navigable. Packages and Versions hits are navigable
|
|
46
|
+
* when they carry `nodeId`; a hit without it must still be rendered, as non-navigable.
|
|
47
|
+
*
|
|
48
|
+
*/
|
|
49
|
+
export declare function useSearchTreeV3Query(props: SearchTreeV3Props, options?: Omit<UseQueryOptions<SearchTreeV3OkResponse, SearchTreeV3ErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<SearchTreeV3OkResponse, ErrorV3>;
|
|
@@ -0,0 +1,27 @@
|
|
|
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 searchTreeV3(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v3/tree/search`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Searches every registry in `scope` (resolved as for `ListTreeRootsV3`; a `scope` value
|
|
11
|
+
* other than `none`/`ancestors`/`descendants`, when provided, returns 400) and returns four
|
|
12
|
+
* groups in one response: Registries, Packages, Versions and Files/Folders, each sorted by
|
|
13
|
+
* name. Each group has its own cursor parameter and `nextCursor`; paging one group
|
|
14
|
+
* leaves the others on their first page. Each group's `count` is independent of pagination
|
|
15
|
+
* and saturates at 1001 ("1000+").
|
|
16
|
+
*
|
|
17
|
+
* Every group query runs under a 5 s server-side budget. A group that exceeds it is
|
|
18
|
+
* returned empty with `timedOut: true` and the other groups are returned as normal; the
|
|
19
|
+
* request fails with 504 only when every group timed out.
|
|
20
|
+
*
|
|
21
|
+
* Registries and Files hits are always navigable. Packages and Versions hits are navigable
|
|
22
|
+
* when they carry `nodeId`; a hit without it must still be rendered, as non-navigable.
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
export function useSearchTreeV3Query(props, options) {
|
|
26
|
+
return useQuery(['SearchTreeV3', props.queryParams], ({ signal }) => searchTreeV3(Object.assign(Object.assign({}, props), { signal })), options);
|
|
27
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { SemverBackfillTriggerDataV3 } from '../schemas/SemverBackfillTriggerDataV3';
|
|
3
|
+
import type { ErrorV3 } from '../schemas/ErrorV3';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export type TriggerSemverBackfillV3OkResponse = ResponseWithPagination<{
|
|
7
|
+
data: SemverBackfillTriggerDataV3;
|
|
8
|
+
}>;
|
|
9
|
+
export type TriggerSemverBackfillV3ErrorResponse = ErrorV3;
|
|
10
|
+
export interface TriggerSemverBackfillV3Props extends Omit<FetcherOptions<unknown, unknown>, 'url'> {
|
|
11
|
+
}
|
|
12
|
+
export declare function triggerSemverBackfillV3(props: TriggerSemverBackfillV3Props): Promise<TriggerSemverBackfillV3OkResponse>;
|
|
13
|
+
/**
|
|
14
|
+
* Triggers a one-time backfill job that populates the artifact_semver table
|
|
15
|
+
* for all existing artifacts. This is used to support semver-based lifecycle
|
|
16
|
+
* cleanup rules (filterConfig.semverOnly).
|
|
17
|
+
*
|
|
18
|
+
*/
|
|
19
|
+
export declare function useTriggerSemverBackfillV3Mutation(options?: Omit<UseMutationOptions<TriggerSemverBackfillV3OkResponse, TriggerSemverBackfillV3ErrorResponse, TriggerSemverBackfillV3Props>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<TriggerSemverBackfillV3OkResponse, ErrorV3, TriggerSemverBackfillV3Props, unknown>;
|
|
@@ -0,0 +1,17 @@
|
|
|
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 triggerSemverBackfillV3(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v3/internal/semver/backfill`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Triggers a one-time backfill job that populates the artifact_semver table
|
|
11
|
+
* for all existing artifacts. This is used to support semver-based lifecycle
|
|
12
|
+
* cleanup rules (filterConfig.semverOnly).
|
|
13
|
+
*
|
|
14
|
+
*/
|
|
15
|
+
export function useTriggerSemverBackfillV3Mutation(options) {
|
|
16
|
+
return useMutation((mutateProps) => triggerSemverBackfillV3(mutateProps), options);
|
|
17
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { MetadataResponseV3Response } from '../responses/MetadataResponseV3Response';
|
|
3
|
+
import type { ErrorV3 } from '../schemas/ErrorV3';
|
|
4
|
+
import type { AutoMetadataRequestV3RequestBody } from '../requestBodies/AutoMetadataRequestV3RequestBody';
|
|
5
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
6
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
7
|
+
export interface UpsertAutoMetadataV3MutationQueryParams {
|
|
8
|
+
account_identifier: string;
|
|
9
|
+
}
|
|
10
|
+
export type UpsertAutoMetadataV3RequestBody = AutoMetadataRequestV3RequestBody;
|
|
11
|
+
export type UpsertAutoMetadataV3OkResponse = ResponseWithPagination<MetadataResponseV3Response>;
|
|
12
|
+
export type UpsertAutoMetadataV3ErrorResponse = ErrorV3;
|
|
13
|
+
export interface UpsertAutoMetadataV3Props extends Omit<FetcherOptions<UpsertAutoMetadataV3MutationQueryParams, UpsertAutoMetadataV3RequestBody>, 'url'> {
|
|
14
|
+
queryParams: UpsertAutoMetadataV3MutationQueryParams;
|
|
15
|
+
body: UpsertAutoMetadataV3RequestBody;
|
|
16
|
+
}
|
|
17
|
+
export declare function upsertAutoMetadataV3(props: UpsertAutoMetadataV3Props): Promise<UpsertAutoMetadataV3OkResponse>;
|
|
18
|
+
/**
|
|
19
|
+
* Upserts system-generated (AUTO) metadata on a registry, package, or version.
|
|
20
|
+
* Callers choose the target by which of `package` and `version` they send.
|
|
21
|
+
* MANUAL metadata on the same target is not modified. Not part of the public API.
|
|
22
|
+
*
|
|
23
|
+
*/
|
|
24
|
+
export declare function useUpsertAutoMetadataV3Mutation(options?: Omit<UseMutationOptions<UpsertAutoMetadataV3OkResponse, UpsertAutoMetadataV3ErrorResponse, UpsertAutoMetadataV3Props>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UpsertAutoMetadataV3OkResponse, ErrorV3, UpsertAutoMetadataV3Props, unknown>;
|
|
@@ -0,0 +1,17 @@
|
|
|
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 upsertAutoMetadataV3(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v3/internal/metadata`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Upserts system-generated (AUTO) metadata on a registry, package, or version.
|
|
11
|
+
* Callers choose the target by which of `package` and `version` they send.
|
|
12
|
+
* MANUAL metadata on the same target is not modified. Not part of the public API.
|
|
13
|
+
*
|
|
14
|
+
*/
|
|
15
|
+
export function useUpsertAutoMetadataV3Mutation(options) {
|
|
16
|
+
return useMutation((mutateProps) => upsertAutoMetadataV3(mutateProps), options);
|
|
17
|
+
}
|