@harnessio/react-har-service-client 0.92.0 → 0.93.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 (40) hide show
  1. package/dist/har-service/src/services/hooks/useDeleteSigningKeyV3Mutation.d.ts +2 -2
  2. package/dist/har-service/src/services/hooks/useDeleteSigningKeyV3Mutation.js +2 -2
  3. package/dist/har-service/src/services/hooks/useGetRegistryRootsIndexStatusV3Query.d.ts +26 -0
  4. package/dist/har-service/src/services/hooks/useGetRegistryRootsIndexStatusV3Query.js +20 -0
  5. package/dist/har-service/src/services/hooks/useGetTrigramIndexStatusV3Query.d.ts +26 -0
  6. package/dist/har-service/src/services/hooks/useGetTrigramIndexStatusV3Query.js +20 -0
  7. package/dist/har-service/src/services/hooks/useListNodeChildrenV3Query.d.ts +35 -0
  8. package/dist/har-service/src/services/hooks/useListNodeChildrenV3Query.js +16 -0
  9. package/dist/har-service/src/services/hooks/useListRegistryNodesV3Query.d.ts +35 -0
  10. package/dist/har-service/src/services/hooks/useListRegistryNodesV3Query.js +16 -0
  11. package/dist/har-service/src/services/hooks/useListTreeRootsV3Query.d.ts +40 -0
  12. package/dist/har-service/src/services/hooks/useListTreeRootsV3Query.js +21 -0
  13. package/dist/har-service/src/services/hooks/useRollbackTerraformBackendV3Mutation.d.ts +21 -0
  14. package/dist/har-service/src/services/hooks/useRollbackTerraformBackendV3Mutation.js +15 -0
  15. package/dist/har-service/src/services/hooks/useTriggerRegistryRootsIndexBuildV3Mutation.d.ts +34 -0
  16. package/dist/har-service/src/services/hooks/useTriggerRegistryRootsIndexBuildV3Mutation.js +28 -0
  17. package/dist/har-service/src/services/hooks/useTriggerTrigramIndexBuildV3Mutation.d.ts +34 -0
  18. package/dist/har-service/src/services/hooks/useTriggerTrigramIndexBuildV3Mutation.js +28 -0
  19. package/dist/har-service/src/services/index.d.ts +25 -0
  20. package/dist/har-service/src/services/index.js +8 -0
  21. package/dist/har-service/src/services/responses/TreeResponseV3Response.d.ts +2 -0
  22. package/dist/har-service/src/services/responses/TreeResponseV3Response.js +1 -0
  23. package/dist/har-service/src/services/schemas/RegistryRootsIndexBuildDataV3.d.ts +13 -0
  24. package/dist/har-service/src/services/schemas/RegistryRootsIndexBuildDataV3.js +4 -0
  25. package/dist/har-service/src/services/schemas/RegistryRootsIndexStatusDataV3.d.ts +22 -0
  26. package/dist/har-service/src/services/schemas/RegistryRootsIndexStatusDataV3.js +4 -0
  27. package/dist/har-service/src/services/schemas/TreeNodeItemV3.d.ts +54 -0
  28. package/dist/har-service/src/services/schemas/TreeNodeItemV3.js +4 -0
  29. package/dist/har-service/src/services/schemas/TreePaginationV3.d.ts +35 -0
  30. package/dist/har-service/src/services/schemas/TreePaginationV3.js +4 -0
  31. package/dist/har-service/src/services/schemas/TreeResponseBodyV3.d.ts +12 -0
  32. package/dist/har-service/src/services/schemas/TreeResponseBodyV3.js +1 -0
  33. package/dist/har-service/src/services/schemas/TrigramIndexBuildDataV3.d.ts +13 -0
  34. package/dist/har-service/src/services/schemas/TrigramIndexBuildDataV3.js +4 -0
  35. package/dist/har-service/src/services/schemas/TrigramIndexStateV3.d.ts +11 -0
  36. package/dist/har-service/src/services/schemas/TrigramIndexStateV3.js +4 -0
  37. package/dist/har-service/src/services/schemas/TrigramIndexStatusDataV3.d.ts +18 -0
  38. package/dist/har-service/src/services/schemas/TrigramIndexStatusDataV3.js +1 -0
  39. package/dist/har-service/src/services/schemas/UpdateKeyRequestV3.d.ts +1 -1
  40. package/package.json +1 -1
@@ -16,8 +16,8 @@ export interface DeleteSigningKeyV3Props extends DeleteSigningKeyV3MutationPathP
16
16
  export declare function deleteSigningKeyV3(props: DeleteSigningKeyV3Props): Promise<DeleteSigningKeyV3OkResponse>;
17
17
  /**
18
18
  * Soft-deletes a signing key by marking it as DELETED. The key metadata is retained
19
- * for audit purposes. The key must not be attached to any registry: if it is, the
20
- * request fails with 409 and the error message lists every registry to detach first.
19
+ * for audit purposes. If the key is attached to any registries, signing will be
20
+ * automatically disabled on those registries.
21
21
  *
22
22
  */
23
23
  export declare function useDeleteSigningKeyV3Mutation(options?: Omit<UseMutationOptions<DeleteSigningKeyV3OkResponse, DeleteSigningKeyV3ErrorResponse, DeleteSigningKeyV3Props>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<DeleteSigningKeyV3OkResponse, ErrorV3, DeleteSigningKeyV3Props, unknown>;
@@ -8,8 +8,8 @@ export function deleteSigningKeyV3(props) {
8
8
  }
9
9
  /**
10
10
  * Soft-deletes a signing key by marking it as DELETED. The key metadata is retained
11
- * for audit purposes. The key must not be attached to any registry: if it is, the
12
- * request fails with 409 and the error message lists every registry to detach first.
11
+ * for audit purposes. If the key is attached to any registries, signing will be
12
+ * automatically disabled on those registries.
13
13
  *
14
14
  */
15
15
  export function useDeleteSigningKeyV3Mutation(options) {
@@ -0,0 +1,26 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { RegistryRootsIndexStatusDataV3 } from '../schemas/RegistryRootsIndexStatusDataV3';
3
+ import type { ErrorV3 } from '../schemas/ErrorV3';
4
+ import type { ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
+ export interface GetRegistryRootsIndexStatusV3QueryQueryParams {
7
+ account_identifier: string;
8
+ }
9
+ export type GetRegistryRootsIndexStatusV3OkResponse = ResponseWithPagination<{
10
+ data: RegistryRootsIndexStatusDataV3;
11
+ }>;
12
+ export type GetRegistryRootsIndexStatusV3ErrorResponse = ErrorV3;
13
+ export interface GetRegistryRootsIndexStatusV3Props extends Omit<FetcherOptions<GetRegistryRootsIndexStatusV3QueryQueryParams, unknown>, 'url'> {
14
+ queryParams: GetRegistryRootsIndexStatusV3QueryQueryParams;
15
+ }
16
+ export declare function getRegistryRootsIndexStatusV3(props: GetRegistryRootsIndexStatusV3Props): Promise<GetRegistryRootsIndexStatusV3OkResponse>;
17
+ /**
18
+ * Report whether idx_nodes_registry_roots exists and is valid, read from the Postgres
19
+ * catalog, alongside the state of the most recent build job. Reported as exists=true and
20
+ * valid=false when an interrupted CONCURRENTLY build left it INVALID - never used by the
21
+ * planner but still maintained on every write, and in need of a rebuild.
22
+ *
23
+ * Any authenticated caller may read it.
24
+ *
25
+ */
26
+ export declare function useGetRegistryRootsIndexStatusV3Query(props: GetRegistryRootsIndexStatusV3Props, options?: Omit<UseQueryOptions<GetRegistryRootsIndexStatusV3OkResponse, GetRegistryRootsIndexStatusV3ErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetRegistryRootsIndexStatusV3OkResponse, 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 getRegistryRootsIndexStatusV3(props) {
7
+ return fetcher(Object.assign({ url: `/v3/internal/tree/registry-roots-index`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Report whether idx_nodes_registry_roots exists and is valid, read from the Postgres
11
+ * catalog, alongside the state of the most recent build job. Reported as exists=true and
12
+ * valid=false when an interrupted CONCURRENTLY build left it INVALID - never used by the
13
+ * planner but still maintained on every write, and in need of a rebuild.
14
+ *
15
+ * Any authenticated caller may read it.
16
+ *
17
+ */
18
+ export function useGetRegistryRootsIndexStatusV3Query(props, options) {
19
+ return useQuery(['GetRegistryRootsIndexStatusV3', props.queryParams], ({ signal }) => getRegistryRootsIndexStatusV3(Object.assign(Object.assign({}, props), { signal })), options);
20
+ }
@@ -0,0 +1,26 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { TrigramIndexStatusDataV3 } from '../schemas/TrigramIndexStatusDataV3';
3
+ import type { ErrorV3 } from '../schemas/ErrorV3';
4
+ import type { ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
+ export interface GetTrigramIndexStatusV3QueryQueryParams {
7
+ account_identifier: string;
8
+ }
9
+ export type GetTrigramIndexStatusV3OkResponse = ResponseWithPagination<{
10
+ data: TrigramIndexStatusDataV3;
11
+ }>;
12
+ export type GetTrigramIndexStatusV3ErrorResponse = ErrorV3;
13
+ export interface GetTrigramIndexStatusV3Props extends Omit<FetcherOptions<GetTrigramIndexStatusV3QueryQueryParams, unknown>, 'url'> {
14
+ queryParams: GetTrigramIndexStatusV3QueryQueryParams;
15
+ }
16
+ export declare function getTrigramIndexStatusV3(props: GetTrigramIndexStatusV3Props): Promise<GetTrigramIndexStatusV3OkResponse>;
17
+ /**
18
+ * Report whether each trigram index exists and is valid, read from the Postgres catalog,
19
+ * alongside the state of the most recent build job. An index reported as exists=true and
20
+ * valid=false is never used by the planner but is still maintained on every write, and
21
+ * needs a rebuild.
22
+ *
23
+ * Any authenticated caller may read it.
24
+ *
25
+ */
26
+ export declare function useGetTrigramIndexStatusV3Query(props: GetTrigramIndexStatusV3Props, options?: Omit<UseQueryOptions<GetTrigramIndexStatusV3OkResponse, GetTrigramIndexStatusV3ErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetTrigramIndexStatusV3OkResponse, 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 getTrigramIndexStatusV3(props) {
7
+ return fetcher(Object.assign({ url: `/v3/internal/search/trigram-indexes`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Report whether each trigram index exists and is valid, read from the Postgres catalog,
11
+ * alongside the state of the most recent build job. An index reported as exists=true and
12
+ * valid=false is never used by the planner but is still maintained on every write, and
13
+ * needs a rebuild.
14
+ *
15
+ * Any authenticated caller may read it.
16
+ *
17
+ */
18
+ export function useGetTrigramIndexStatusV3Query(props, options) {
19
+ return useQuery(['GetTrigramIndexStatusV3', props.queryParams], ({ signal }) => getTrigramIndexStatusV3(Object.assign(Object.assign({}, props), { signal })), options);
20
+ }
@@ -0,0 +1,35 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { TreeResponseV3Response } from '../responses/TreeResponseV3Response';
3
+ import type { ErrorV3 } from '../schemas/ErrorV3';
4
+ import type { ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
+ export interface ListNodeChildrenV3QueryPathParams {
7
+ node_id: string;
8
+ }
9
+ export interface ListNodeChildrenV3QueryQueryParams {
10
+ account_identifier: string;
11
+ org_identifier?: string;
12
+ project_identifier?: string;
13
+ cursor?: string;
14
+ /**
15
+ * @default 50
16
+ */
17
+ size?: number;
18
+ /**
19
+ * @default "exclude_deleted"
20
+ */
21
+ deleted_filter?: 'exclude_deleted' | 'include_deleted' | 'only_deleted';
22
+ compact?: boolean;
23
+ }
24
+ export type ListNodeChildrenV3OkResponse = ResponseWithPagination<TreeResponseV3Response>;
25
+ export type ListNodeChildrenV3ErrorResponse = ErrorV3;
26
+ export interface ListNodeChildrenV3Props extends ListNodeChildrenV3QueryPathParams, Omit<FetcherOptions<ListNodeChildrenV3QueryQueryParams, unknown>, 'url'> {
27
+ queryParams: ListNodeChildrenV3QueryQueryParams;
28
+ }
29
+ export declare function listNodeChildrenV3(props: ListNodeChildrenV3Props): Promise<ListNodeChildrenV3OkResponse>;
30
+ /**
31
+ * Lists immediate children of a specific node (package/version/folder).
32
+ * Returns child nodes for tree navigation.
33
+ *
34
+ */
35
+ export declare function useListNodeChildrenV3Query(props: ListNodeChildrenV3Props, options?: Omit<UseQueryOptions<ListNodeChildrenV3OkResponse, ListNodeChildrenV3ErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListNodeChildrenV3OkResponse, ErrorV3>;
@@ -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 { useQuery } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../fetcher/index.js';
6
+ export function listNodeChildrenV3(props) {
7
+ return fetcher(Object.assign({ url: `/v3/tree/nodes/${props.node_id}/children`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Lists immediate children of a specific node (package/version/folder).
11
+ * Returns child nodes for tree navigation.
12
+ *
13
+ */
14
+ export function useListNodeChildrenV3Query(props, options) {
15
+ return useQuery(['ListNodeChildrenV3', props.node_id, props.queryParams], ({ signal }) => listNodeChildrenV3(Object.assign(Object.assign({}, props), { signal })), options);
16
+ }
@@ -0,0 +1,35 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { TreeResponseV3Response } from '../responses/TreeResponseV3Response';
3
+ import type { ErrorV3 } from '../schemas/ErrorV3';
4
+ import type { ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
+ export interface ListRegistryNodesV3QueryPathParams {
7
+ registry_id: string;
8
+ }
9
+ export interface ListRegistryNodesV3QueryQueryParams {
10
+ account_identifier: string;
11
+ org_identifier?: string;
12
+ project_identifier?: string;
13
+ cursor?: string;
14
+ /**
15
+ * @default 50
16
+ */
17
+ size?: number;
18
+ /**
19
+ * @default "exclude_deleted"
20
+ */
21
+ deleted_filter?: 'exclude_deleted' | 'include_deleted' | 'only_deleted';
22
+ compact?: boolean;
23
+ }
24
+ export type ListRegistryNodesV3OkResponse = ResponseWithPagination<TreeResponseV3Response>;
25
+ export type ListRegistryNodesV3ErrorResponse = ErrorV3;
26
+ export interface ListRegistryNodesV3Props extends ListRegistryNodesV3QueryPathParams, Omit<FetcherOptions<ListRegistryNodesV3QueryQueryParams, unknown>, 'url'> {
27
+ queryParams: ListRegistryNodesV3QueryQueryParams;
28
+ }
29
+ export declare function listRegistryNodesV3(props: ListRegistryNodesV3Props): Promise<ListRegistryNodesV3OkResponse>;
30
+ /**
31
+ * Lists top-level packages/folders under a specific registry.
32
+ * Returns immediate children of the registry for tree navigation.
33
+ *
34
+ */
35
+ export declare function useListRegistryNodesV3Query(props: ListRegistryNodesV3Props, options?: Omit<UseQueryOptions<ListRegistryNodesV3OkResponse, ListRegistryNodesV3ErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListRegistryNodesV3OkResponse, ErrorV3>;
@@ -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 { useQuery } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../fetcher/index.js';
6
+ export function listRegistryNodesV3(props) {
7
+ return fetcher(Object.assign({ url: `/v3/tree/registries/${props.registry_id}/nodes`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Lists top-level packages/folders under a specific registry.
11
+ * Returns immediate children of the registry for tree navigation.
12
+ *
13
+ */
14
+ export function useListRegistryNodesV3Query(props, options) {
15
+ return useQuery(['ListRegistryNodesV3', props.registry_id, props.queryParams], ({ signal }) => listRegistryNodesV3(Object.assign(Object.assign({}, props), { signal })), options);
16
+ }
@@ -0,0 +1,40 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { TreeResponseV3Response } from '../responses/TreeResponseV3Response';
3
+ import type { ErrorV3 } from '../schemas/ErrorV3';
4
+ import type { ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
+ export interface ListTreeRootsV3QueryQueryParams {
7
+ account_identifier: string;
8
+ org_identifier?: string;
9
+ project_identifier?: string;
10
+ scope?: 'ancestors' | 'descendants' | 'none';
11
+ cursor?: string;
12
+ /**
13
+ * @default 50
14
+ */
15
+ size?: number;
16
+ /**
17
+ * @default "exclude_deleted"
18
+ */
19
+ deleted_filter?: 'exclude_deleted' | 'include_deleted' | 'only_deleted';
20
+ search?: string;
21
+ registry_type?: string;
22
+ package_type?: string;
23
+ }
24
+ export type ListTreeRootsV3OkResponse = ResponseWithPagination<TreeResponseV3Response>;
25
+ export type ListTreeRootsV3ErrorResponse = ErrorV3;
26
+ export interface ListTreeRootsV3Props extends Omit<FetcherOptions<ListTreeRootsV3QueryQueryParams, unknown>, 'url'> {
27
+ queryParams: ListTreeRootsV3QueryQueryParams;
28
+ }
29
+ export declare function listTreeRootsV3(props: ListTreeRootsV3Props): Promise<ListTreeRootsV3OkResponse>;
30
+ /**
31
+ * Lists all registries at the root level with optional search and filters.
32
+ * Returns a hierarchical view of registries for tree navigation.
33
+ *
34
+ * `scope` is only accepted here, and is resolved exactly as it is for
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.
38
+ *
39
+ */
40
+ export declare function useListTreeRootsV3Query(props: ListTreeRootsV3Props, options?: Omit<UseQueryOptions<ListTreeRootsV3OkResponse, ListTreeRootsV3ErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListTreeRootsV3OkResponse, ErrorV3>;
@@ -0,0 +1,21 @@
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 listTreeRootsV3(props) {
7
+ return fetcher(Object.assign({ url: `/v3/tree/roots`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Lists all registries at the root level with optional search and filters.
11
+ * Returns a hierarchical view of registries for tree navigation.
12
+ *
13
+ * `scope` is only accepted here, and is resolved exactly as it is for
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.
17
+ *
18
+ */
19
+ export function useListTreeRootsV3Query(props, options) {
20
+ return useQuery(['ListTreeRootsV3', props.queryParams], ({ signal }) => listTreeRootsV3(Object.assign(Object.assign({}, props), { signal })), options);
21
+ }
@@ -0,0 +1,21 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { ErrorV3 } from '../schemas/ErrorV3';
3
+ import type { ResponseWithPagination } from '../helpers';
4
+ import { FetcherOptions } from '../../../../fetcher/index.js';
5
+ export interface RollbackTerraformBackendV3MutationPathParams {
6
+ id: string;
7
+ }
8
+ export interface RollbackTerraformBackendV3MutationQueryParams {
9
+ account_identifier: string;
10
+ }
11
+ export type RollbackTerraformBackendV3OkResponse = ResponseWithPagination<unknown>;
12
+ export type RollbackTerraformBackendV3ErrorResponse = ErrorV3;
13
+ export interface RollbackTerraformBackendV3Props extends RollbackTerraformBackendV3MutationPathParams, Omit<FetcherOptions<RollbackTerraformBackendV3MutationQueryParams, unknown>, 'url'> {
14
+ queryParams: RollbackTerraformBackendV3MutationQueryParams;
15
+ }
16
+ export declare function rollbackTerraformBackendV3(props: RollbackTerraformBackendV3Props): Promise<RollbackTerraformBackendV3OkResponse>;
17
+ /**
18
+ * Promotes a historical Terraform Backend state version as the current state by copying it forward. The promoted state is written with a new serial. The operation is rejected while the workspace is locked.
19
+ *
20
+ */
21
+ export declare function useRollbackTerraformBackendV3Mutation(options?: Omit<UseMutationOptions<RollbackTerraformBackendV3OkResponse, RollbackTerraformBackendV3ErrorResponse, RollbackTerraformBackendV3Props>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<RollbackTerraformBackendV3OkResponse, ErrorV3, RollbackTerraformBackendV3Props, 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 rollbackTerraformBackendV3(props) {
7
+ return fetcher(Object.assign({ url: `/v3/versions/${props.id}/terraform-backend/rollback`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Promotes a historical Terraform Backend state version as the current state by copying it forward. The promoted state is written with a new serial. The operation is rejected while the workspace is locked.
11
+ *
12
+ */
13
+ export function useRollbackTerraformBackendV3Mutation(options) {
14
+ return useMutation((mutateProps) => rollbackTerraformBackendV3(mutateProps), options);
15
+ }
@@ -0,0 +1,34 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { RegistryRootsIndexBuildDataV3 } from '../schemas/RegistryRootsIndexBuildDataV3';
3
+ import type { ErrorV3 } from '../schemas/ErrorV3';
4
+ import type { ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
+ export interface TriggerRegistryRootsIndexBuildV3MutationQueryParams {
7
+ account_identifier: string;
8
+ }
9
+ export type TriggerRegistryRootsIndexBuildV3OkResponse = ResponseWithPagination<{
10
+ data: RegistryRootsIndexBuildDataV3;
11
+ }>;
12
+ export type TriggerRegistryRootsIndexBuildV3ErrorResponse = ErrorV3;
13
+ export interface TriggerRegistryRootsIndexBuildV3Props extends Omit<FetcherOptions<TriggerRegistryRootsIndexBuildV3MutationQueryParams, unknown>, 'url'> {
14
+ queryParams: TriggerRegistryRootsIndexBuildV3MutationQueryParams;
15
+ }
16
+ export declare function triggerRegistryRootsIndexBuildV3(props: TriggerRegistryRootsIndexBuildV3Props): Promise<TriggerRegistryRootsIndexBuildV3OkResponse>;
17
+ /**
18
+ * Trigger the build of idx_nodes_registry_roots, the partial btree backing root-node
19
+ * listing in the tree view. The build runs asynchronously as a job and returns immediately
20
+ * once accepted; CREATE INDEX CONCURRENTLY does not block reads or writes, unlike a plain
21
+ * CREATE INDEX, which would hold a SHARE lock on `nodes` for the whole build.
22
+ *
23
+ * Idempotent: an index that already exists, is valid, and whose definition still matches the
24
+ * DDL this job would issue is skipped. An index left INVALID by an interrupted build is
25
+ * dropped and rebuilt. An index whose definition has *diverged* fails the job instead of
26
+ * being rebuilt silently - a rebuild is minutes to hours of I/O, so the operator is told to
27
+ * drop it explicitly. Safe to call repeatedly.
28
+ *
29
+ * Note this is an environment-wide operation. The account identifier on the request is for
30
+ * routing/audit only - it neither scopes nor authorizes the work, since the index covers
31
+ * every tenant in the database. Any authenticated caller may trigger it.
32
+ *
33
+ */
34
+ export declare function useTriggerRegistryRootsIndexBuildV3Mutation(options?: Omit<UseMutationOptions<TriggerRegistryRootsIndexBuildV3OkResponse, TriggerRegistryRootsIndexBuildV3ErrorResponse, TriggerRegistryRootsIndexBuildV3Props>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<TriggerRegistryRootsIndexBuildV3OkResponse, ErrorV3, TriggerRegistryRootsIndexBuildV3Props, unknown>;
@@ -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 { useMutation } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../fetcher/index.js';
6
+ export function triggerRegistryRootsIndexBuildV3(props) {
7
+ return fetcher(Object.assign({ url: `/v3/internal/tree/registry-roots-index`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Trigger the build of idx_nodes_registry_roots, the partial btree backing root-node
11
+ * listing in the tree view. The build runs asynchronously as a job and returns immediately
12
+ * once accepted; CREATE INDEX CONCURRENTLY does not block reads or writes, unlike a plain
13
+ * CREATE INDEX, which would hold a SHARE lock on `nodes` for the whole build.
14
+ *
15
+ * Idempotent: an index that already exists, is valid, and whose definition still matches the
16
+ * DDL this job would issue is skipped. An index left INVALID by an interrupted build is
17
+ * dropped and rebuilt. An index whose definition has *diverged* fails the job instead of
18
+ * being rebuilt silently - a rebuild is minutes to hours of I/O, so the operator is told to
19
+ * drop it explicitly. Safe to call repeatedly.
20
+ *
21
+ * Note this is an environment-wide operation. The account identifier on the request is for
22
+ * routing/audit only - it neither scopes nor authorizes the work, since the index covers
23
+ * every tenant in the database. Any authenticated caller may trigger it.
24
+ *
25
+ */
26
+ export function useTriggerRegistryRootsIndexBuildV3Mutation(options) {
27
+ return useMutation((mutateProps) => triggerRegistryRootsIndexBuildV3(mutateProps), options);
28
+ }
@@ -0,0 +1,34 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { TrigramIndexBuildDataV3 } from '../schemas/TrigramIndexBuildDataV3';
3
+ import type { ErrorV3 } from '../schemas/ErrorV3';
4
+ import type { ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
+ export interface TriggerTrigramIndexBuildV3MutationQueryParams {
7
+ account_identifier: string;
8
+ }
9
+ export type TriggerTrigramIndexBuildV3OkResponse = ResponseWithPagination<{
10
+ data: TrigramIndexBuildDataV3;
11
+ }>;
12
+ export type TriggerTrigramIndexBuildV3ErrorResponse = ErrorV3;
13
+ export interface TriggerTrigramIndexBuildV3Props extends Omit<FetcherOptions<TriggerTrigramIndexBuildV3MutationQueryParams, unknown>, 'url'> {
14
+ queryParams: TriggerTrigramIndexBuildV3MutationQueryParams;
15
+ }
16
+ export declare function triggerTrigramIndexBuildV3(props: TriggerTrigramIndexBuildV3Props): Promise<TriggerTrigramIndexBuildV3OkResponse>;
17
+ /**
18
+ * Trigger the build of the pg_trgm GIN indexes backing global search. The build runs
19
+ * asynchronously as a job and returns immediately once accepted; CREATE INDEX CONCURRENTLY
20
+ * does not block reads or writes, but it is minutes of extra I/O on a large environment,
21
+ * which is why it is triggered deliberately rather than at boot.
22
+ *
23
+ * Idempotent: an index that already exists, is valid, and whose definition still matches the
24
+ * DDL this job would issue is skipped. An index left INVALID by an interrupted build is
25
+ * dropped and rebuilt. An index whose definition has *diverged* fails the job instead of
26
+ * being rebuilt silently - a rebuild is minutes to hours of I/O, so the operator is told to
27
+ * drop it explicitly. Safe to call repeatedly.
28
+ *
29
+ * Note this is an environment-wide operation. The account identifier on the request is for
30
+ * routing/audit only - it neither scopes nor authorizes the work, since the indexes cover
31
+ * every tenant in the database. Any authenticated caller may trigger it.
32
+ *
33
+ */
34
+ export declare function useTriggerTrigramIndexBuildV3Mutation(options?: Omit<UseMutationOptions<TriggerTrigramIndexBuildV3OkResponse, TriggerTrigramIndexBuildV3ErrorResponse, TriggerTrigramIndexBuildV3Props>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<TriggerTrigramIndexBuildV3OkResponse, ErrorV3, TriggerTrigramIndexBuildV3Props, unknown>;
@@ -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 { useMutation } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../fetcher/index.js';
6
+ export function triggerTrigramIndexBuildV3(props) {
7
+ return fetcher(Object.assign({ url: `/v3/internal/search/trigram-indexes`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Trigger the build of the pg_trgm GIN indexes backing global search. The build runs
11
+ * asynchronously as a job and returns immediately once accepted; CREATE INDEX CONCURRENTLY
12
+ * does not block reads or writes, but it is minutes of extra I/O on a large environment,
13
+ * which is why it is triggered deliberately rather than at boot.
14
+ *
15
+ * Idempotent: an index that already exists, is valid, and whose definition still matches the
16
+ * DDL this job would issue is skipped. An index left INVALID by an interrupted build is
17
+ * dropped and rebuilt. An index whose definition has *diverged* fails the job instead of
18
+ * being rebuilt silently - a rebuild is minutes to hours of I/O, so the operator is told to
19
+ * drop it explicitly. Safe to call repeatedly.
20
+ *
21
+ * Note this is an environment-wide operation. The account identifier on the request is for
22
+ * routing/audit only - it neither scopes nor authorizes the work, since the indexes cover
23
+ * every tenant in the database. Any authenticated caller may trigger it.
24
+ *
25
+ */
26
+ export function useTriggerTrigramIndexBuildV3Mutation(options) {
27
+ return useMutation((mutateProps) => triggerTrigramIndexBuildV3(mutateProps), options);
28
+ }
@@ -177,6 +177,8 @@ export type { GetRegistryPublicKeyV3ErrorResponse, GetRegistryPublicKeyV3OkRespo
177
177
  export { getRegistryPublicKeyV3, useGetRegistryPublicKeyV3Query, } from './hooks/useGetRegistryPublicKeyV3Query';
178
178
  export type { GetRegistryErrorResponse, GetRegistryOkResponse, GetRegistryProps, GetRegistryQueryPathParams, } from './hooks/useGetRegistryQuery';
179
179
  export { getRegistry, useGetRegistryQuery } from './hooks/useGetRegistryQuery';
180
+ export type { GetRegistryRootsIndexStatusV3ErrorResponse, GetRegistryRootsIndexStatusV3OkResponse, GetRegistryRootsIndexStatusV3Props, GetRegistryRootsIndexStatusV3QueryQueryParams, } from './hooks/useGetRegistryRootsIndexStatusV3Query';
181
+ export { getRegistryRootsIndexStatusV3, useGetRegistryRootsIndexStatusV3Query, } from './hooks/useGetRegistryRootsIndexStatusV3Query';
180
182
  export type { GetReplicationRuleErrorResponse, GetReplicationRuleOkResponse, GetReplicationRuleProps, GetReplicationRuleQueryPathParams, } from './hooks/useGetReplicationRuleQuery';
181
183
  export { getReplicationRule, useGetReplicationRuleQuery } from './hooks/useGetReplicationRuleQuery';
182
184
  export type { GetSigningKeyByNameV3ErrorResponse, GetSigningKeyByNameV3OkResponse, GetSigningKeyByNameV3Props, GetSigningKeyByNameV3QueryPathParams, GetSigningKeyByNameV3QueryQueryParams, } from './hooks/useGetSigningKeyByNameV3Query';
@@ -191,6 +193,8 @@ export type { GetStorageDetailsErrorResponse, GetStorageDetailsOkResponse, GetSt
191
193
  export { getStorageDetails, useGetStorageDetailsQuery } from './hooks/useGetStorageDetailsQuery';
192
194
  export type { GetSystemInfoV3ErrorResponse, GetSystemInfoV3OkResponse, GetSystemInfoV3Props, GetSystemInfoV3QueryQueryParams, } from './hooks/useGetSystemInfoV3Query';
193
195
  export { getSystemInfoV3, useGetSystemInfoV3Query } from './hooks/useGetSystemInfoV3Query';
196
+ export type { GetTrigramIndexStatusV3ErrorResponse, GetTrigramIndexStatusV3OkResponse, GetTrigramIndexStatusV3Props, GetTrigramIndexStatusV3QueryQueryParams, } from './hooks/useGetTrigramIndexStatusV3Query';
197
+ export { getTrigramIndexStatusV3, useGetTrigramIndexStatusV3Query, } from './hooks/useGetTrigramIndexStatusV3Query';
194
198
  export type { GetVersionMetadataV3ErrorResponse, GetVersionMetadataV3OkResponse, GetVersionMetadataV3Props, GetVersionMetadataV3QueryPathParams, GetVersionMetadataV3QueryQueryParams, } from './hooks/useGetVersionMetadataV3Query';
195
199
  export { getVersionMetadataV3, useGetVersionMetadataV3Query, } from './hooks/useGetVersionMetadataV3Query';
196
200
  export type { GetVersionsStatsV3ErrorResponse, GetVersionsStatsV3MutationQueryParams, GetVersionsStatsV3OkResponse, GetVersionsStatsV3Props, GetVersionsStatsV3RequestBody, } from './hooks/useGetVersionsStatsV3Mutation';
@@ -229,6 +233,8 @@ export type { ListLifecycleRulesV3ErrorResponse, ListLifecycleRulesV3OkResponse,
229
233
  export { listLifecycleRulesV3, useListLifecycleRulesV3Query, } from './hooks/useListLifecycleRulesV3Query';
230
234
  export type { ListMigrationImagesErrorResponse, ListMigrationImagesOkResponse, ListMigrationImagesProps, ListMigrationImagesQueryPathParams, ListMigrationImagesQueryQueryParams, } from './hooks/useListMigrationImagesQuery';
231
235
  export { listMigrationImages, useListMigrationImagesQuery, } from './hooks/useListMigrationImagesQuery';
236
+ export type { ListNodeChildrenV3ErrorResponse, ListNodeChildrenV3OkResponse, ListNodeChildrenV3Props, ListNodeChildrenV3QueryPathParams, ListNodeChildrenV3QueryQueryParams, } from './hooks/useListNodeChildrenV3Query';
237
+ export { listNodeChildrenV3, useListNodeChildrenV3Query } from './hooks/useListNodeChildrenV3Query';
232
238
  export type { ListPackageTypeConfigsV3ErrorResponse, ListPackageTypeConfigsV3OkResponse, ListPackageTypeConfigsV3Props, ListPackageTypeConfigsV3QueryQueryParams, } from './hooks/useListPackageTypeConfigsV3Query';
233
239
  export { listPackageTypeConfigsV3, useListPackageTypeConfigsV3Query, } from './hooks/useListPackageTypeConfigsV3Query';
234
240
  export type { ListPackagesErrorResponse, ListPackagesOkResponse, ListPackagesProps, ListPackagesQueryQueryParams, } from './hooks/useListPackagesQuery';
@@ -245,6 +251,8 @@ export type { ListRegistriesV3ErrorResponse, ListRegistriesV3OkResponse, ListReg
245
251
  export { listRegistriesV3, useListRegistriesV3Query } from './hooks/useListRegistriesV3Query';
246
252
  export type { ListRegistryFilesV3ErrorResponse, ListRegistryFilesV3OkResponse, ListRegistryFilesV3Props, ListRegistryFilesV3QueryPathParams, ListRegistryFilesV3QueryQueryParams, } from './hooks/useListRegistryFilesV3Query';
247
253
  export { listRegistryFilesV3, useListRegistryFilesV3Query, } from './hooks/useListRegistryFilesV3Query';
254
+ export type { ListRegistryNodesV3ErrorResponse, ListRegistryNodesV3OkResponse, ListRegistryNodesV3Props, ListRegistryNodesV3QueryPathParams, ListRegistryNodesV3QueryQueryParams, } from './hooks/useListRegistryNodesV3Query';
255
+ export { listRegistryNodesV3, useListRegistryNodesV3Query, } from './hooks/useListRegistryNodesV3Query';
248
256
  export type { ListReplicationRulesErrorResponse, ListReplicationRulesOkResponse, ListReplicationRulesProps, ListReplicationRulesQueryQueryParams, } from './hooks/useListReplicationRulesQuery';
249
257
  export { listReplicationRules, useListReplicationRulesQuery, } from './hooks/useListReplicationRulesQuery';
250
258
  export type { ListSigningKeysV3ErrorResponse, ListSigningKeysV3OkResponse, ListSigningKeysV3Props, ListSigningKeysV3QueryQueryParams, } from './hooks/useListSigningKeysV3Query';
@@ -253,6 +261,8 @@ export type { ListSpaceLabelValuesErrorResponse, ListSpaceLabelValuesOkResponse,
253
261
  export { listSpaceLabelValues, useListSpaceLabelValuesQuery, } from './hooks/useListSpaceLabelValuesQuery';
254
262
  export type { ListSpaceLabelsErrorResponse, ListSpaceLabelsOkResponse, ListSpaceLabelsProps, ListSpaceLabelsQueryPathParams, ListSpaceLabelsQueryQueryParams, } from './hooks/useListSpaceLabelsQuery';
255
263
  export { listSpaceLabels, useListSpaceLabelsQuery } from './hooks/useListSpaceLabelsQuery';
264
+ export type { ListTreeRootsV3ErrorResponse, ListTreeRootsV3OkResponse, ListTreeRootsV3Props, ListTreeRootsV3QueryQueryParams, } from './hooks/useListTreeRootsV3Query';
265
+ export { listTreeRootsV3, useListTreeRootsV3Query } from './hooks/useListTreeRootsV3Query';
256
266
  export type { ListVersionDeploymentsV3ErrorResponse, ListVersionDeploymentsV3OkResponse, ListVersionDeploymentsV3Props, ListVersionDeploymentsV3QueryPathParams, ListVersionDeploymentsV3QueryQueryParams, } from './hooks/useListVersionDeploymentsV3Query';
257
267
  export { listVersionDeploymentsV3, useListVersionDeploymentsV3Query, } from './hooks/useListVersionDeploymentsV3Query';
258
268
  export type { ListVersionsErrorResponse, ListVersionsOkResponse, ListVersionsProps, ListVersionsQueryQueryParams, } from './hooks/useListVersionsQuery';
@@ -287,6 +297,8 @@ export type { RestoreRegistryV3ErrorResponse, RestoreRegistryV3MutationPathParam
287
297
  export { restoreRegistryV3, useRestoreRegistryV3Mutation, } from './hooks/useRestoreRegistryV3Mutation';
288
298
  export type { RestoreVersionV3ErrorResponse, RestoreVersionV3MutationPathParams, RestoreVersionV3MutationQueryParams, RestoreVersionV3OkResponse, RestoreVersionV3Props, } from './hooks/useRestoreVersionV3Mutation';
289
299
  export { restoreVersionV3, useRestoreVersionV3Mutation } from './hooks/useRestoreVersionV3Mutation';
300
+ export type { RollbackTerraformBackendV3ErrorResponse, RollbackTerraformBackendV3MutationPathParams, RollbackTerraformBackendV3MutationQueryParams, RollbackTerraformBackendV3OkResponse, RollbackTerraformBackendV3Props, } from './hooks/useRollbackTerraformBackendV3Mutation';
301
+ export { rollbackTerraformBackendV3, useRollbackTerraformBackendV3Mutation, } from './hooks/useRollbackTerraformBackendV3Mutation';
290
302
  export type { SaveFileMetadataV3ErrorResponse, SaveFileMetadataV3MutationPathParams, SaveFileMetadataV3MutationQueryParams, SaveFileMetadataV3OkResponse, SaveFileMetadataV3Props, SaveFileMetadataV3RequestBody, } from './hooks/useSaveFileMetadataV3Mutation';
291
303
  export { saveFileMetadataV3, useSaveFileMetadataV3Mutation, } from './hooks/useSaveFileMetadataV3Mutation';
292
304
  export type { SaveMetadataErrorResponse, SaveMetadataMutationQueryParams, SaveMetadataOkResponse, SaveMetadataProps, SaveMetadataRequestBody, } from './hooks/useSaveMetadataMutation';
@@ -309,6 +321,10 @@ export type { StopMigrationErrorResponse, StopMigrationMutationPathParams, StopM
309
321
  export { stopMigration, useStopMigrationMutation } from './hooks/useStopMigrationMutation';
310
322
  export type { TriggerBackfillV3ErrorResponse, TriggerBackfillV3MutationQueryParams, TriggerBackfillV3OkResponse, TriggerBackfillV3Props, TriggerBackfillV3RequestBody, } from './hooks/useTriggerBackfillV3Mutation';
311
323
  export { triggerBackfillV3, useTriggerBackfillV3Mutation, } from './hooks/useTriggerBackfillV3Mutation';
324
+ export type { TriggerRegistryRootsIndexBuildV3ErrorResponse, TriggerRegistryRootsIndexBuildV3MutationQueryParams, TriggerRegistryRootsIndexBuildV3OkResponse, TriggerRegistryRootsIndexBuildV3Props, } from './hooks/useTriggerRegistryRootsIndexBuildV3Mutation';
325
+ export { triggerRegistryRootsIndexBuildV3, useTriggerRegistryRootsIndexBuildV3Mutation, } from './hooks/useTriggerRegistryRootsIndexBuildV3Mutation';
326
+ export type { TriggerTrigramIndexBuildV3ErrorResponse, TriggerTrigramIndexBuildV3MutationQueryParams, TriggerTrigramIndexBuildV3OkResponse, TriggerTrigramIndexBuildV3Props, } from './hooks/useTriggerTrigramIndexBuildV3Mutation';
327
+ export { triggerTrigramIndexBuildV3, useTriggerTrigramIndexBuildV3Mutation, } from './hooks/useTriggerTrigramIndexBuildV3Mutation';
312
328
  export type { UpdateArtifactLabelsErrorResponse, UpdateArtifactLabelsMutationPathParams, UpdateArtifactLabelsMutationQueryParams, UpdateArtifactLabelsOkResponse, UpdateArtifactLabelsProps, UpdateArtifactLabelsRequestBody, } from './hooks/useUpdateArtifactLabelsMutation';
313
329
  export { updateArtifactLabels, useUpdateArtifactLabelsMutation, } from './hooks/useUpdateArtifactLabelsMutation';
314
330
  export type { UpdateFirewallExceptionV3ErrorResponse, UpdateFirewallExceptionV3MutationPathParams, UpdateFirewallExceptionV3MutationQueryParams, UpdateFirewallExceptionV3OkResponse, UpdateFirewallExceptionV3Props, UpdateFirewallExceptionV3RequestBody, } from './hooks/useUpdateFirewallExceptionV3Mutation';
@@ -460,6 +476,7 @@ export type { SigningKeySummaryResponseV3Response } from './responses/SigningKey
460
476
  export type { StorageDetailsResponseResponse } from './responses/StorageDetailsResponseResponse';
461
477
  export type { SuccessResponse } from './responses/SuccessResponse';
462
478
  export type { SystemInfoResponseV3Response } from './responses/SystemInfoResponseV3Response';
479
+ export type { TreeResponseV3Response } from './responses/TreeResponseV3Response';
463
480
  export type { UnauthenticatedResponse } from './responses/UnauthenticatedResponse';
464
481
  export type { UnauthorizedResponse } from './responses/UnauthorizedResponse';
465
482
  export type { VersionsStatsResponseV3Response } from './responses/VersionsStatsResponseV3Response';
@@ -706,6 +723,8 @@ export type { RegistryArtifactMetadata } from './schemas/RegistryArtifactMetadat
706
723
  export type { RegistryConfig } from './schemas/RegistryConfig';
707
724
  export type { RegistryMetadata } from './schemas/RegistryMetadata';
708
725
  export type { RegistryRequest } from './schemas/RegistryRequest';
726
+ export type { RegistryRootsIndexBuildDataV3 } from './schemas/RegistryRootsIndexBuildDataV3';
727
+ export type { RegistryRootsIndexStatusDataV3 } from './schemas/RegistryRootsIndexStatusDataV3';
709
728
  export type { RegistryStatsV3 } from './schemas/RegistryStatsV3';
710
729
  export type { RegistryType } from './schemas/RegistryType';
711
730
  export type { RegistryTypeV3 } from './schemas/RegistryTypeV3';
@@ -741,7 +760,13 @@ export type { SystemInfoV3 } from './schemas/SystemInfoV3';
741
760
  export type { TabSetupStep } from './schemas/TabSetupStep';
742
761
  export type { TabSetupStepConfig } from './schemas/TabSetupStepConfig';
743
762
  export type { TerraformArtifactDetailConfig } from './schemas/TerraformArtifactDetailConfig';
763
+ export type { TreeNodeItemV3 } from './schemas/TreeNodeItemV3';
764
+ export type { TreePaginationV3 } from './schemas/TreePaginationV3';
765
+ export type { TreeResponseBodyV3 } from './schemas/TreeResponseBodyV3';
744
766
  export type { Trigger } from './schemas/Trigger';
767
+ export type { TrigramIndexBuildDataV3 } from './schemas/TrigramIndexBuildDataV3';
768
+ export type { TrigramIndexStateV3 } from './schemas/TrigramIndexStateV3';
769
+ export type { TrigramIndexStatusDataV3 } from './schemas/TrigramIndexStatusDataV3';
745
770
  export type { TypesLabel } from './schemas/TypesLabel';
746
771
  export type { TypesLabelValue } from './schemas/TypesLabelValue';
747
772
  export type { TypesLabelWithValues } from './schemas/TypesLabelWithValues';
@@ -87,6 +87,7 @@ export { getRegistriesStatsV3, useGetRegistriesStatsV3Mutation, } from './hooks/
87
87
  export { getRegistryMetadataV3, useGetRegistryMetadataV3Query, } from './hooks/useGetRegistryMetadataV3Query';
88
88
  export { getRegistryPublicKeyV3, useGetRegistryPublicKeyV3Query, } from './hooks/useGetRegistryPublicKeyV3Query';
89
89
  export { getRegistry, useGetRegistryQuery } from './hooks/useGetRegistryQuery';
90
+ export { getRegistryRootsIndexStatusV3, useGetRegistryRootsIndexStatusV3Query, } from './hooks/useGetRegistryRootsIndexStatusV3Query';
90
91
  export { getReplicationRule, useGetReplicationRuleQuery } from './hooks/useGetReplicationRuleQuery';
91
92
  export { getSigningKeyByNameV3, useGetSigningKeyByNameV3Query, } from './hooks/useGetSigningKeyByNameV3Query';
92
93
  export { getSigningKeyPublicKeyV3, useGetSigningKeyPublicKeyV3Query, } from './hooks/useGetSigningKeyPublicKeyV3Query';
@@ -94,6 +95,7 @@ export { getSigningKeySummaryV3, useGetSigningKeySummaryV3Query, } from './hooks
94
95
  export { getSigningKeyV3, useGetSigningKeyV3Query } from './hooks/useGetSigningKeyV3Query';
95
96
  export { getStorageDetails, useGetStorageDetailsQuery } from './hooks/useGetStorageDetailsQuery';
96
97
  export { getSystemInfoV3, useGetSystemInfoV3Query } from './hooks/useGetSystemInfoV3Query';
98
+ export { getTrigramIndexStatusV3, useGetTrigramIndexStatusV3Query, } from './hooks/useGetTrigramIndexStatusV3Query';
97
99
  export { getVersionMetadataV3, useGetVersionMetadataV3Query, } from './hooks/useGetVersionMetadataV3Query';
98
100
  export { getVersionsStatsV3, useGetVersionsStatsV3Mutation, } from './hooks/useGetVersionsStatsV3Mutation';
99
101
  export { getWebhookExecution, useGetWebhookExecutionQuery, } from './hooks/useGetWebhookExecutionQuery';
@@ -113,6 +115,7 @@ export { listLifecycleExecutionItemsV3, useListLifecycleExecutionItemsV3Query, }
113
115
  export { listLifecycleExecutionsV3, useListLifecycleExecutionsV3Query, } from './hooks/useListLifecycleExecutionsV3Query';
114
116
  export { listLifecycleRulesV3, useListLifecycleRulesV3Query, } from './hooks/useListLifecycleRulesV3Query';
115
117
  export { listMigrationImages, useListMigrationImagesQuery, } from './hooks/useListMigrationImagesQuery';
118
+ export { listNodeChildrenV3, useListNodeChildrenV3Query } from './hooks/useListNodeChildrenV3Query';
116
119
  export { listPackageTypeConfigsV3, useListPackageTypeConfigsV3Query, } from './hooks/useListPackageTypeConfigsV3Query';
117
120
  export { listPackages, useListPackagesQuery } from './hooks/useListPackagesQuery';
118
121
  export { listPackagesV3, useListPackagesV3Query } from './hooks/useListPackagesV3Query';
@@ -121,10 +124,12 @@ export { listPrincipalsV3, useListPrincipalsV3Query } from './hooks/useListPrinc
121
124
  export { listRegistries, useListRegistriesQuery } from './hooks/useListRegistriesQuery';
122
125
  export { listRegistriesV3, useListRegistriesV3Query } from './hooks/useListRegistriesV3Query';
123
126
  export { listRegistryFilesV3, useListRegistryFilesV3Query, } from './hooks/useListRegistryFilesV3Query';
127
+ export { listRegistryNodesV3, useListRegistryNodesV3Query, } from './hooks/useListRegistryNodesV3Query';
124
128
  export { listReplicationRules, useListReplicationRulesQuery, } from './hooks/useListReplicationRulesQuery';
125
129
  export { listSigningKeysV3, useListSigningKeysV3Query } from './hooks/useListSigningKeysV3Query';
126
130
  export { listSpaceLabelValues, useListSpaceLabelValuesQuery, } from './hooks/useListSpaceLabelValuesQuery';
127
131
  export { listSpaceLabels, useListSpaceLabelsQuery } from './hooks/useListSpaceLabelsQuery';
132
+ export { listTreeRootsV3, useListTreeRootsV3Query } from './hooks/useListTreeRootsV3Query';
128
133
  export { listVersionDeploymentsV3, useListVersionDeploymentsV3Query, } from './hooks/useListVersionDeploymentsV3Query';
129
134
  export { listVersions, useListVersionsQuery } from './hooks/useListVersionsQuery';
130
135
  export { listVersionsV3, useListVersionsV3Query } from './hooks/useListVersionsV3Query';
@@ -142,6 +147,7 @@ export { redirectHarnessArtifact, useRedirectHarnessArtifactQuery, } from './hoo
142
147
  export { restorePackageV3, useRestorePackageV3Mutation } from './hooks/useRestorePackageV3Mutation';
143
148
  export { restoreRegistryV3, useRestoreRegistryV3Mutation, } from './hooks/useRestoreRegistryV3Mutation';
144
149
  export { restoreVersionV3, useRestoreVersionV3Mutation } from './hooks/useRestoreVersionV3Mutation';
150
+ export { rollbackTerraformBackendV3, useRollbackTerraformBackendV3Mutation, } from './hooks/useRollbackTerraformBackendV3Mutation';
145
151
  export { saveFileMetadataV3, useSaveFileMetadataV3Mutation, } from './hooks/useSaveFileMetadataV3Mutation';
146
152
  export { saveMetadata, useSaveMetadataMutation } from './hooks/useSaveMetadataMutation';
147
153
  export { savePackageMetadataV3, useSavePackageMetadataV3Mutation, } from './hooks/useSavePackageMetadataV3Mutation';
@@ -153,6 +159,8 @@ export { searchRegistryFilesV3, useSearchRegistryFilesV3Mutation, } from './hook
153
159
  export { startMigration, useStartMigrationMutation } from './hooks/useStartMigrationMutation';
154
160
  export { stopMigration, useStopMigrationMutation } from './hooks/useStopMigrationMutation';
155
161
  export { triggerBackfillV3, useTriggerBackfillV3Mutation, } from './hooks/useTriggerBackfillV3Mutation';
162
+ export { triggerRegistryRootsIndexBuildV3, useTriggerRegistryRootsIndexBuildV3Mutation, } from './hooks/useTriggerRegistryRootsIndexBuildV3Mutation';
163
+ export { triggerTrigramIndexBuildV3, useTriggerTrigramIndexBuildV3Mutation, } from './hooks/useTriggerTrigramIndexBuildV3Mutation';
156
164
  export { updateArtifactLabels, useUpdateArtifactLabelsMutation, } from './hooks/useUpdateArtifactLabelsMutation';
157
165
  export { updateFirewallExceptionV3, useUpdateFirewallExceptionV3Mutation, } from './hooks/useUpdateFirewallExceptionV3Mutation';
158
166
  export { updateLifecycleRuleV3, useUpdateLifecycleRuleV3Mutation, } from './hooks/useUpdateLifecycleRuleV3Mutation';
@@ -0,0 +1,2 @@
1
+ import type { TreeResponseBodyV3 } from '../schemas/TreeResponseBodyV3';
2
+ export type TreeResponseV3Response = TreeResponseBodyV3;
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Response payload returned when the registry-roots index build is accepted.
3
+ */
4
+ export interface RegistryRootsIndexBuildDataV3 {
5
+ /**
6
+ * Name of the index this build is responsible for.
7
+ */
8
+ index: string;
9
+ /**
10
+ * UID of the job row created for this build. Poll the jobs table with it, or call the status endpoint.
11
+ */
12
+ jobUid: 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 {};
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Current state of idx_nodes_registry_roots, read from the Postgres catalog.
3
+ */
4
+ export interface RegistryRootsIndexStatusDataV3 {
5
+ exists: boolean;
6
+ /**
7
+ * Name of the index this status describes.
8
+ */
9
+ index: string;
10
+ /**
11
+ * Result string of the most recent build job.
12
+ */
13
+ jobResult?: string;
14
+ /**
15
+ * State of the most recent build job, absent if no build has ever been triggered.
16
+ */
17
+ jobState?: string;
18
+ /**
19
+ * False for an index left INVALID by an interrupted CONCURRENTLY build. The planner never uses such an index, but writes still maintain it.
20
+ */
21
+ valid: boolean;
22
+ }
@@ -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,54 @@
1
+ /**
2
+ * A node in the tree view representing a registry, package, version, folder, or file
3
+ */
4
+ export interface TreeNodeItemV3 {
5
+ /**
6
+ * Creation timestamp in milliseconds
7
+ * @format int64
8
+ */
9
+ createdAt?: number;
10
+ /**
11
+ * Deletion timestamp in milliseconds (if soft-deleted)
12
+ * @format int64
13
+ */
14
+ deletedAt?: number;
15
+ /**
16
+ * Whether this node has child nodes
17
+ */
18
+ hasChildren: boolean;
19
+ /**
20
+ * Unique identifier (UUID for nodes, registry_id for root registries)
21
+ */
22
+ id: string;
23
+ /**
24
+ * Whether this node is soft-deleted. Tree levels below the root return both active and
25
+ * soft-deleted nodes, so clients must use this flag to render deleted state rather than
26
+ * assuming every returned node is live.
27
+ *
28
+ * Omitted when soft-delete state cannot be determined for the node's level: the version
29
+ * and platform levels of OCI (Docker/Helm) registries come from
30
+ * `tags`/`manifests`/`manifest_references`, none of which have a soft-delete column,
31
+ * and all nodes of non-OCI registries come from `nodes`, whose `node_deleted_at` column
32
+ * is not populated by any write path. Only the root (`registries`) and Docker/Helm
33
+ * package (`images`) levels can answer this. An omitted value means "unknown" - it must
34
+ * not be read as "not deleted".
35
+ *
36
+ */
37
+ isDeleted?: boolean;
38
+ /**
39
+ * Display name of the node
40
+ */
41
+ name: string;
42
+ /**
43
+ * Package type (for registries/packages)
44
+ */
45
+ packageType?: string;
46
+ /**
47
+ * Full path to this node
48
+ */
49
+ path?: string;
50
+ /**
51
+ * Type of the node
52
+ */
53
+ type: 'file' | 'folder' | 'package' | 'registry' | 'version';
54
+ }
@@ -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,35 @@
1
+ /**
2
+ * Pagination information for tree view
3
+ */
4
+ export interface TreePaginationV3 {
5
+ /**
6
+ * Whether there are more pages
7
+ */
8
+ hasMore: boolean;
9
+ /**
10
+ * Cursor for next page (base64 encoded)
11
+ */
12
+ nextCursor?: string;
13
+ /**
14
+ * Page size
15
+ * @format int32
16
+ */
17
+ size: number;
18
+ /**
19
+ * Total number of items matching the request across all pages, independent of
20
+ * pagination.
21
+ *
22
+ * Exact at the root (registry) level, where the filtered set is small enough to
23
+ * count cheaply. Below the root it is **capped** (currently at 1000): child fanout
24
+ * is unbounded, and an exact count of a wide parent is far more expensive than the
25
+ * page itself. A value at the cap means "at least this many", not necessarily
26
+ * exact - use `hasMore` to drive "Load More" rather than comparing against `total`.
27
+ *
28
+ * Optional, and **absent on root-level pages fetched with a `cursor`**: the total
29
+ * does not change while paging through a fixed filter set, so it is computed once on
30
+ * the first page and the client is expected to hold it across Load More.
31
+ *
32
+ * @format int64
33
+ */
34
+ total?: number;
35
+ }
@@ -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,12 @@
1
+ import type { TreeNodeItemV3 } from '../schemas/TreeNodeItemV3';
2
+ import type { TreePaginationV3 } from '../schemas/TreePaginationV3';
3
+ /**
4
+ * Response body for tree view endpoints
5
+ */
6
+ export interface TreeResponseBodyV3 {
7
+ /**
8
+ * List of tree nodes
9
+ */
10
+ items: TreeNodeItemV3[];
11
+ pagination: TreePaginationV3;
12
+ }
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Response payload returned when a trigram index build is accepted.
3
+ */
4
+ export interface TrigramIndexBuildDataV3 {
5
+ /**
6
+ * Names of the indexes this build is responsible for.
7
+ */
8
+ indexes: string[];
9
+ /**
10
+ * UID of the job row created for this build. Poll the jobs table with it, or call the status endpoint.
11
+ */
12
+ jobUid: 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 {};
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Catalog state of a single trigram index.
3
+ */
4
+ export interface TrigramIndexStateV3 {
5
+ exists: boolean;
6
+ name: string;
7
+ /**
8
+ * False for an index left INVALID by an interrupted CONCURRENTLY build. The planner never uses such an index, but writes still maintain it.
9
+ */
10
+ valid: boolean;
11
+ }
@@ -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,18 @@
1
+ import type { TrigramIndexStateV3 } from '../schemas/TrigramIndexStateV3';
2
+ /**
3
+ * Current state of each trigram index, read from the Postgres catalog.
4
+ */
5
+ export interface TrigramIndexStatusDataV3 {
6
+ /**
7
+ * Per-index catalog state.
8
+ */
9
+ indexes: TrigramIndexStateV3[];
10
+ /**
11
+ * Result string of the most recent build job, naming each index and whether it was built or already present.
12
+ */
13
+ jobResult?: string;
14
+ /**
15
+ * State of the most recent build job, absent if no build has ever been triggered.
16
+ */
17
+ jobState?: string;
18
+ }
@@ -6,5 +6,5 @@ export interface UpdateKeyRequestV3 {
6
6
  * New status for the key (cannot transition from REVOKED or DELETED). Intentionally a closed subset of `SigningKeyStatusV3` rather than an extensible enum: DELETED is reachable only via `DELETE /signing-keys/{id}`, which emits a distinct audit event.
7
7
  *
8
8
  */
9
- status: 'ACTIVE' | 'INACTIVE' | 'REVOKED';
9
+ status: 'ACTIVE' | 'INACTIVE' | 'REVOKED' | null;
10
10
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-har-service-client",
3
- "version": "0.92.0",
3
+ "version": "0.93.0",
4
4
  "description": "Harness HAR Service APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",