@harnessio/react-har-service-client 0.92.0 → 0.94.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 (47) hide show
  1. package/dist/har-service/src/services/hooks/useGetRegistryRootsIndexStatusV3Query.d.ts +26 -0
  2. package/dist/har-service/src/services/hooks/useGetRegistryRootsIndexStatusV3Query.js +20 -0
  3. package/dist/har-service/src/services/hooks/useGetTerraformBackendStateV3Query.d.ts +23 -0
  4. package/dist/har-service/src/services/hooks/useGetTerraformBackendStateV3Query.js +15 -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/useListVersionsV3Query.d.ts +9 -0
  14. package/dist/har-service/src/services/hooks/useRollbackTerraformBackendV3Mutation.d.ts +21 -0
  15. package/dist/har-service/src/services/hooks/useRollbackTerraformBackendV3Mutation.js +15 -0
  16. package/dist/har-service/src/services/hooks/useTriggerRegistryRootsIndexBuildV3Mutation.d.ts +34 -0
  17. package/dist/har-service/src/services/hooks/useTriggerRegistryRootsIndexBuildV3Mutation.js +28 -0
  18. package/dist/har-service/src/services/hooks/useTriggerTrigramIndexBuildV3Mutation.d.ts +34 -0
  19. package/dist/har-service/src/services/hooks/useTriggerTrigramIndexBuildV3Mutation.js +28 -0
  20. package/dist/har-service/src/services/index.d.ts +29 -0
  21. package/dist/har-service/src/services/index.js +9 -0
  22. package/dist/har-service/src/services/responses/TerraformBackendStateResponseV3Response.d.ts +4 -0
  23. package/dist/har-service/src/services/responses/TerraformBackendStateResponseV3Response.js +4 -0
  24. package/dist/har-service/src/services/responses/TreeResponseV3Response.d.ts +2 -0
  25. package/dist/har-service/src/services/responses/TreeResponseV3Response.js +1 -0
  26. package/dist/har-service/src/services/schemas/PackageV3.d.ts +2 -0
  27. package/dist/har-service/src/services/schemas/RegistryRootsIndexBuildDataV3.d.ts +13 -0
  28. package/dist/har-service/src/services/schemas/RegistryRootsIndexBuildDataV3.js +4 -0
  29. package/dist/har-service/src/services/schemas/RegistryRootsIndexStatusDataV3.d.ts +22 -0
  30. package/dist/har-service/src/services/schemas/RegistryRootsIndexStatusDataV3.js +4 -0
  31. package/dist/har-service/src/services/schemas/TreeNodeItemV3.d.ts +54 -0
  32. package/dist/har-service/src/services/schemas/TreeNodeItemV3.js +4 -0
  33. package/dist/har-service/src/services/schemas/TreePaginationV3.d.ts +35 -0
  34. package/dist/har-service/src/services/schemas/TreePaginationV3.js +4 -0
  35. package/dist/har-service/src/services/schemas/TreeResponseBodyV3.d.ts +12 -0
  36. package/dist/har-service/src/services/schemas/TreeResponseBodyV3.js +1 -0
  37. package/dist/har-service/src/services/schemas/TrigramIndexBuildDataV3.d.ts +13 -0
  38. package/dist/har-service/src/services/schemas/TrigramIndexBuildDataV3.js +4 -0
  39. package/dist/har-service/src/services/schemas/TrigramIndexStateV3.d.ts +11 -0
  40. package/dist/har-service/src/services/schemas/TrigramIndexStateV3.js +4 -0
  41. package/dist/har-service/src/services/schemas/TrigramIndexStatusDataV3.d.ts +18 -0
  42. package/dist/har-service/src/services/schemas/TrigramIndexStatusDataV3.js +1 -0
  43. package/dist/har-service/src/services/schemas/UpdateKeyRequestV3.d.ts +1 -1
  44. package/dist/har-service/src/services/schemas/VersionStatsV3.d.ts +2 -0
  45. package/dist/har-service/src/services/schemas/VulnerabilityMetadataV3.d.ts +18 -0
  46. package/dist/har-service/src/services/schemas/VulnerabilityMetadataV3.js +4 -0
  47. package/package.json +1 -1
@@ -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,23 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { TerraformBackendStateResponseV3Response } from '../responses/TerraformBackendStateResponseV3Response';
3
+ import type { RedirectV3Response } from '../responses/RedirectV3Response';
4
+ import type { ErrorV3 } from '../schemas/ErrorV3';
5
+ import type { ResponseWithPagination } from '../helpers';
6
+ import { FetcherOptions } from '../../../../fetcher/index.js';
7
+ export interface GetTerraformBackendStateV3QueryPathParams {
8
+ id: string;
9
+ }
10
+ export interface GetTerraformBackendStateV3QueryQueryParams {
11
+ account_identifier: string;
12
+ }
13
+ export type GetTerraformBackendStateV3OkResponse = ResponseWithPagination<TerraformBackendStateResponseV3Response>;
14
+ export type GetTerraformBackendStateV3ErrorResponse = RedirectV3Response | ErrorV3;
15
+ export interface GetTerraformBackendStateV3Props extends GetTerraformBackendStateV3QueryPathParams, Omit<FetcherOptions<GetTerraformBackendStateV3QueryQueryParams, unknown>, 'url'> {
16
+ queryParams: GetTerraformBackendStateV3QueryQueryParams;
17
+ }
18
+ export declare function getTerraformBackendStateV3(props: GetTerraformBackendStateV3Props): Promise<GetTerraformBackendStateV3OkResponse>;
19
+ /**
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. When the content is stored remotely the response is a `302` redirect to the state file instead of the state bytes.
21
+ *
22
+ */
23
+ export declare function useGetTerraformBackendStateV3Query(props: GetTerraformBackendStateV3Props, options?: Omit<UseQueryOptions<GetTerraformBackendStateV3OkResponse, GetTerraformBackendStateV3ErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetTerraformBackendStateV3OkResponse, 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 { useQuery } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../fetcher/index.js';
6
+ export function getTerraformBackendStateV3(props) {
7
+ return fetcher(Object.assign({ url: `/v3/versions/${props.id}/terraform-backend/state`, method: 'GET' }, props));
8
+ }
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. When the content is stored remotely the response is a `302` redirect to the state file instead of the state bytes.
11
+ *
12
+ */
13
+ export function useGetTerraformBackendStateV3Query(props, options) {
14
+ return useQuery(['GetTerraformBackendStateV3', props.id, props.queryParams], ({ signal }) => getTerraformBackendStateV3(Object.assign(Object.assign({}, props), { signal })), options);
15
+ }
@@ -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
+ }
@@ -29,6 +29,15 @@ export interface ListVersionsV3QueryQueryParams {
29
29
  search_term?: string;
30
30
  include_meta?: boolean;
31
31
  uploaded_by?: number[];
32
+ /**
33
+ * @example "model"
34
+ */
35
+ package_kind?: string;
36
+ tags?: string[];
37
+ /**
38
+ * refers to type of registry i.e virtual or upstream
39
+ */
40
+ registry_type?: 'UPSTREAM' | 'VIRTUAL';
32
41
  }
33
42
  export type ListVersionsV3OkResponse = ResponseWithPagination<ListVersionResponseV3Response>;
34
43
  export type ListVersionsV3ErrorResponse = ErrorV3;
@@ -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,10 @@ 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 { GetTerraformBackendStateV3ErrorResponse, GetTerraformBackendStateV3OkResponse, GetTerraformBackendStateV3Props, GetTerraformBackendStateV3QueryPathParams, GetTerraformBackendStateV3QueryQueryParams, } from './hooks/useGetTerraformBackendStateV3Query';
197
+ export { getTerraformBackendStateV3, useGetTerraformBackendStateV3Query, } from './hooks/useGetTerraformBackendStateV3Query';
198
+ export type { GetTrigramIndexStatusV3ErrorResponse, GetTrigramIndexStatusV3OkResponse, GetTrigramIndexStatusV3Props, GetTrigramIndexStatusV3QueryQueryParams, } from './hooks/useGetTrigramIndexStatusV3Query';
199
+ export { getTrigramIndexStatusV3, useGetTrigramIndexStatusV3Query, } from './hooks/useGetTrigramIndexStatusV3Query';
194
200
  export type { GetVersionMetadataV3ErrorResponse, GetVersionMetadataV3OkResponse, GetVersionMetadataV3Props, GetVersionMetadataV3QueryPathParams, GetVersionMetadataV3QueryQueryParams, } from './hooks/useGetVersionMetadataV3Query';
195
201
  export { getVersionMetadataV3, useGetVersionMetadataV3Query, } from './hooks/useGetVersionMetadataV3Query';
196
202
  export type { GetVersionsStatsV3ErrorResponse, GetVersionsStatsV3MutationQueryParams, GetVersionsStatsV3OkResponse, GetVersionsStatsV3Props, GetVersionsStatsV3RequestBody, } from './hooks/useGetVersionsStatsV3Mutation';
@@ -229,6 +235,8 @@ export type { ListLifecycleRulesV3ErrorResponse, ListLifecycleRulesV3OkResponse,
229
235
  export { listLifecycleRulesV3, useListLifecycleRulesV3Query, } from './hooks/useListLifecycleRulesV3Query';
230
236
  export type { ListMigrationImagesErrorResponse, ListMigrationImagesOkResponse, ListMigrationImagesProps, ListMigrationImagesQueryPathParams, ListMigrationImagesQueryQueryParams, } from './hooks/useListMigrationImagesQuery';
231
237
  export { listMigrationImages, useListMigrationImagesQuery, } from './hooks/useListMigrationImagesQuery';
238
+ export type { ListNodeChildrenV3ErrorResponse, ListNodeChildrenV3OkResponse, ListNodeChildrenV3Props, ListNodeChildrenV3QueryPathParams, ListNodeChildrenV3QueryQueryParams, } from './hooks/useListNodeChildrenV3Query';
239
+ export { listNodeChildrenV3, useListNodeChildrenV3Query } from './hooks/useListNodeChildrenV3Query';
232
240
  export type { ListPackageTypeConfigsV3ErrorResponse, ListPackageTypeConfigsV3OkResponse, ListPackageTypeConfigsV3Props, ListPackageTypeConfigsV3QueryQueryParams, } from './hooks/useListPackageTypeConfigsV3Query';
233
241
  export { listPackageTypeConfigsV3, useListPackageTypeConfigsV3Query, } from './hooks/useListPackageTypeConfigsV3Query';
234
242
  export type { ListPackagesErrorResponse, ListPackagesOkResponse, ListPackagesProps, ListPackagesQueryQueryParams, } from './hooks/useListPackagesQuery';
@@ -245,6 +253,8 @@ export type { ListRegistriesV3ErrorResponse, ListRegistriesV3OkResponse, ListReg
245
253
  export { listRegistriesV3, useListRegistriesV3Query } from './hooks/useListRegistriesV3Query';
246
254
  export type { ListRegistryFilesV3ErrorResponse, ListRegistryFilesV3OkResponse, ListRegistryFilesV3Props, ListRegistryFilesV3QueryPathParams, ListRegistryFilesV3QueryQueryParams, } from './hooks/useListRegistryFilesV3Query';
247
255
  export { listRegistryFilesV3, useListRegistryFilesV3Query, } from './hooks/useListRegistryFilesV3Query';
256
+ export type { ListRegistryNodesV3ErrorResponse, ListRegistryNodesV3OkResponse, ListRegistryNodesV3Props, ListRegistryNodesV3QueryPathParams, ListRegistryNodesV3QueryQueryParams, } from './hooks/useListRegistryNodesV3Query';
257
+ export { listRegistryNodesV3, useListRegistryNodesV3Query, } from './hooks/useListRegistryNodesV3Query';
248
258
  export type { ListReplicationRulesErrorResponse, ListReplicationRulesOkResponse, ListReplicationRulesProps, ListReplicationRulesQueryQueryParams, } from './hooks/useListReplicationRulesQuery';
249
259
  export { listReplicationRules, useListReplicationRulesQuery, } from './hooks/useListReplicationRulesQuery';
250
260
  export type { ListSigningKeysV3ErrorResponse, ListSigningKeysV3OkResponse, ListSigningKeysV3Props, ListSigningKeysV3QueryQueryParams, } from './hooks/useListSigningKeysV3Query';
@@ -253,6 +263,8 @@ export type { ListSpaceLabelValuesErrorResponse, ListSpaceLabelValuesOkResponse,
253
263
  export { listSpaceLabelValues, useListSpaceLabelValuesQuery, } from './hooks/useListSpaceLabelValuesQuery';
254
264
  export type { ListSpaceLabelsErrorResponse, ListSpaceLabelsOkResponse, ListSpaceLabelsProps, ListSpaceLabelsQueryPathParams, ListSpaceLabelsQueryQueryParams, } from './hooks/useListSpaceLabelsQuery';
255
265
  export { listSpaceLabels, useListSpaceLabelsQuery } from './hooks/useListSpaceLabelsQuery';
266
+ export type { ListTreeRootsV3ErrorResponse, ListTreeRootsV3OkResponse, ListTreeRootsV3Props, ListTreeRootsV3QueryQueryParams, } from './hooks/useListTreeRootsV3Query';
267
+ export { listTreeRootsV3, useListTreeRootsV3Query } from './hooks/useListTreeRootsV3Query';
256
268
  export type { ListVersionDeploymentsV3ErrorResponse, ListVersionDeploymentsV3OkResponse, ListVersionDeploymentsV3Props, ListVersionDeploymentsV3QueryPathParams, ListVersionDeploymentsV3QueryQueryParams, } from './hooks/useListVersionDeploymentsV3Query';
257
269
  export { listVersionDeploymentsV3, useListVersionDeploymentsV3Query, } from './hooks/useListVersionDeploymentsV3Query';
258
270
  export type { ListVersionsErrorResponse, ListVersionsOkResponse, ListVersionsProps, ListVersionsQueryQueryParams, } from './hooks/useListVersionsQuery';
@@ -287,6 +299,8 @@ export type { RestoreRegistryV3ErrorResponse, RestoreRegistryV3MutationPathParam
287
299
  export { restoreRegistryV3, useRestoreRegistryV3Mutation, } from './hooks/useRestoreRegistryV3Mutation';
288
300
  export type { RestoreVersionV3ErrorResponse, RestoreVersionV3MutationPathParams, RestoreVersionV3MutationQueryParams, RestoreVersionV3OkResponse, RestoreVersionV3Props, } from './hooks/useRestoreVersionV3Mutation';
289
301
  export { restoreVersionV3, useRestoreVersionV3Mutation } from './hooks/useRestoreVersionV3Mutation';
302
+ export type { RollbackTerraformBackendV3ErrorResponse, RollbackTerraformBackendV3MutationPathParams, RollbackTerraformBackendV3MutationQueryParams, RollbackTerraformBackendV3OkResponse, RollbackTerraformBackendV3Props, } from './hooks/useRollbackTerraformBackendV3Mutation';
303
+ export { rollbackTerraformBackendV3, useRollbackTerraformBackendV3Mutation, } from './hooks/useRollbackTerraformBackendV3Mutation';
290
304
  export type { SaveFileMetadataV3ErrorResponse, SaveFileMetadataV3MutationPathParams, SaveFileMetadataV3MutationQueryParams, SaveFileMetadataV3OkResponse, SaveFileMetadataV3Props, SaveFileMetadataV3RequestBody, } from './hooks/useSaveFileMetadataV3Mutation';
291
305
  export { saveFileMetadataV3, useSaveFileMetadataV3Mutation, } from './hooks/useSaveFileMetadataV3Mutation';
292
306
  export type { SaveMetadataErrorResponse, SaveMetadataMutationQueryParams, SaveMetadataOkResponse, SaveMetadataProps, SaveMetadataRequestBody, } from './hooks/useSaveMetadataMutation';
@@ -309,6 +323,10 @@ export type { StopMigrationErrorResponse, StopMigrationMutationPathParams, StopM
309
323
  export { stopMigration, useStopMigrationMutation } from './hooks/useStopMigrationMutation';
310
324
  export type { TriggerBackfillV3ErrorResponse, TriggerBackfillV3MutationQueryParams, TriggerBackfillV3OkResponse, TriggerBackfillV3Props, TriggerBackfillV3RequestBody, } from './hooks/useTriggerBackfillV3Mutation';
311
325
  export { triggerBackfillV3, useTriggerBackfillV3Mutation, } from './hooks/useTriggerBackfillV3Mutation';
326
+ export type { TriggerRegistryRootsIndexBuildV3ErrorResponse, TriggerRegistryRootsIndexBuildV3MutationQueryParams, TriggerRegistryRootsIndexBuildV3OkResponse, TriggerRegistryRootsIndexBuildV3Props, } from './hooks/useTriggerRegistryRootsIndexBuildV3Mutation';
327
+ export { triggerRegistryRootsIndexBuildV3, useTriggerRegistryRootsIndexBuildV3Mutation, } from './hooks/useTriggerRegistryRootsIndexBuildV3Mutation';
328
+ export type { TriggerTrigramIndexBuildV3ErrorResponse, TriggerTrigramIndexBuildV3MutationQueryParams, TriggerTrigramIndexBuildV3OkResponse, TriggerTrigramIndexBuildV3Props, } from './hooks/useTriggerTrigramIndexBuildV3Mutation';
329
+ export { triggerTrigramIndexBuildV3, useTriggerTrigramIndexBuildV3Mutation, } from './hooks/useTriggerTrigramIndexBuildV3Mutation';
312
330
  export type { UpdateArtifactLabelsErrorResponse, UpdateArtifactLabelsMutationPathParams, UpdateArtifactLabelsMutationQueryParams, UpdateArtifactLabelsOkResponse, UpdateArtifactLabelsProps, UpdateArtifactLabelsRequestBody, } from './hooks/useUpdateArtifactLabelsMutation';
313
331
  export { updateArtifactLabels, useUpdateArtifactLabelsMutation, } from './hooks/useUpdateArtifactLabelsMutation';
314
332
  export type { UpdateFirewallExceptionV3ErrorResponse, UpdateFirewallExceptionV3MutationPathParams, UpdateFirewallExceptionV3MutationQueryParams, UpdateFirewallExceptionV3OkResponse, UpdateFirewallExceptionV3Props, UpdateFirewallExceptionV3RequestBody, } from './hooks/useUpdateFirewallExceptionV3Mutation';
@@ -460,6 +478,8 @@ export type { SigningKeySummaryResponseV3Response } from './responses/SigningKey
460
478
  export type { StorageDetailsResponseResponse } from './responses/StorageDetailsResponseResponse';
461
479
  export type { SuccessResponse } from './responses/SuccessResponse';
462
480
  export type { SystemInfoResponseV3Response } from './responses/SystemInfoResponseV3Response';
481
+ export type { TerraformBackendStateResponseV3Response } from './responses/TerraformBackendStateResponseV3Response';
482
+ export type { TreeResponseV3Response } from './responses/TreeResponseV3Response';
463
483
  export type { UnauthenticatedResponse } from './responses/UnauthenticatedResponse';
464
484
  export type { UnauthorizedResponse } from './responses/UnauthorizedResponse';
465
485
  export type { VersionsStatsResponseV3Response } from './responses/VersionsStatsResponseV3Response';
@@ -706,6 +726,8 @@ export type { RegistryArtifactMetadata } from './schemas/RegistryArtifactMetadat
706
726
  export type { RegistryConfig } from './schemas/RegistryConfig';
707
727
  export type { RegistryMetadata } from './schemas/RegistryMetadata';
708
728
  export type { RegistryRequest } from './schemas/RegistryRequest';
729
+ export type { RegistryRootsIndexBuildDataV3 } from './schemas/RegistryRootsIndexBuildDataV3';
730
+ export type { RegistryRootsIndexStatusDataV3 } from './schemas/RegistryRootsIndexStatusDataV3';
709
731
  export type { RegistryStatsV3 } from './schemas/RegistryStatsV3';
710
732
  export type { RegistryType } from './schemas/RegistryType';
711
733
  export type { RegistryTypeV3 } from './schemas/RegistryTypeV3';
@@ -741,7 +763,13 @@ export type { SystemInfoV3 } from './schemas/SystemInfoV3';
741
763
  export type { TabSetupStep } from './schemas/TabSetupStep';
742
764
  export type { TabSetupStepConfig } from './schemas/TabSetupStepConfig';
743
765
  export type { TerraformArtifactDetailConfig } from './schemas/TerraformArtifactDetailConfig';
766
+ export type { TreeNodeItemV3 } from './schemas/TreeNodeItemV3';
767
+ export type { TreePaginationV3 } from './schemas/TreePaginationV3';
768
+ export type { TreeResponseBodyV3 } from './schemas/TreeResponseBodyV3';
744
769
  export type { Trigger } from './schemas/Trigger';
770
+ export type { TrigramIndexBuildDataV3 } from './schemas/TrigramIndexBuildDataV3';
771
+ export type { TrigramIndexStateV3 } from './schemas/TrigramIndexStateV3';
772
+ export type { TrigramIndexStatusDataV3 } from './schemas/TrigramIndexStatusDataV3';
745
773
  export type { TypesLabel } from './schemas/TypesLabel';
746
774
  export type { TypesLabelValue } from './schemas/TypesLabelValue';
747
775
  export type { TypesLabelWithValues } from './schemas/TypesLabelWithValues';
@@ -761,6 +789,7 @@ export type { VersionV3 } from './schemas/VersionV3';
761
789
  export type { VersionsStatsRequestInputV3 } from './schemas/VersionsStatsRequestInputV3';
762
790
  export type { VersionsStatsResponseBodyV3 } from './schemas/VersionsStatsResponseBodyV3';
763
791
  export type { VirtualConfig } from './schemas/VirtualConfig';
792
+ export type { VulnerabilityMetadataV3 } from './schemas/VulnerabilityMetadataV3';
764
793
  export type { Webhook } from './schemas/Webhook';
765
794
  export type { WebhookExecRequest } from './schemas/WebhookExecRequest';
766
795
  export type { WebhookExecResponse } from './schemas/WebhookExecResponse';
@@ -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,8 @@ 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 { getTerraformBackendStateV3, useGetTerraformBackendStateV3Query, } from './hooks/useGetTerraformBackendStateV3Query';
99
+ export { getTrigramIndexStatusV3, useGetTrigramIndexStatusV3Query, } from './hooks/useGetTrigramIndexStatusV3Query';
97
100
  export { getVersionMetadataV3, useGetVersionMetadataV3Query, } from './hooks/useGetVersionMetadataV3Query';
98
101
  export { getVersionsStatsV3, useGetVersionsStatsV3Mutation, } from './hooks/useGetVersionsStatsV3Mutation';
99
102
  export { getWebhookExecution, useGetWebhookExecutionQuery, } from './hooks/useGetWebhookExecutionQuery';
@@ -113,6 +116,7 @@ export { listLifecycleExecutionItemsV3, useListLifecycleExecutionItemsV3Query, }
113
116
  export { listLifecycleExecutionsV3, useListLifecycleExecutionsV3Query, } from './hooks/useListLifecycleExecutionsV3Query';
114
117
  export { listLifecycleRulesV3, useListLifecycleRulesV3Query, } from './hooks/useListLifecycleRulesV3Query';
115
118
  export { listMigrationImages, useListMigrationImagesQuery, } from './hooks/useListMigrationImagesQuery';
119
+ export { listNodeChildrenV3, useListNodeChildrenV3Query } from './hooks/useListNodeChildrenV3Query';
116
120
  export { listPackageTypeConfigsV3, useListPackageTypeConfigsV3Query, } from './hooks/useListPackageTypeConfigsV3Query';
117
121
  export { listPackages, useListPackagesQuery } from './hooks/useListPackagesQuery';
118
122
  export { listPackagesV3, useListPackagesV3Query } from './hooks/useListPackagesV3Query';
@@ -121,10 +125,12 @@ export { listPrincipalsV3, useListPrincipalsV3Query } from './hooks/useListPrinc
121
125
  export { listRegistries, useListRegistriesQuery } from './hooks/useListRegistriesQuery';
122
126
  export { listRegistriesV3, useListRegistriesV3Query } from './hooks/useListRegistriesV3Query';
123
127
  export { listRegistryFilesV3, useListRegistryFilesV3Query, } from './hooks/useListRegistryFilesV3Query';
128
+ export { listRegistryNodesV3, useListRegistryNodesV3Query, } from './hooks/useListRegistryNodesV3Query';
124
129
  export { listReplicationRules, useListReplicationRulesQuery, } from './hooks/useListReplicationRulesQuery';
125
130
  export { listSigningKeysV3, useListSigningKeysV3Query } from './hooks/useListSigningKeysV3Query';
126
131
  export { listSpaceLabelValues, useListSpaceLabelValuesQuery, } from './hooks/useListSpaceLabelValuesQuery';
127
132
  export { listSpaceLabels, useListSpaceLabelsQuery } from './hooks/useListSpaceLabelsQuery';
133
+ export { listTreeRootsV3, useListTreeRootsV3Query } from './hooks/useListTreeRootsV3Query';
128
134
  export { listVersionDeploymentsV3, useListVersionDeploymentsV3Query, } from './hooks/useListVersionDeploymentsV3Query';
129
135
  export { listVersions, useListVersionsQuery } from './hooks/useListVersionsQuery';
130
136
  export { listVersionsV3, useListVersionsV3Query } from './hooks/useListVersionsV3Query';
@@ -142,6 +148,7 @@ export { redirectHarnessArtifact, useRedirectHarnessArtifactQuery, } from './hoo
142
148
  export { restorePackageV3, useRestorePackageV3Mutation } from './hooks/useRestorePackageV3Mutation';
143
149
  export { restoreRegistryV3, useRestoreRegistryV3Mutation, } from './hooks/useRestoreRegistryV3Mutation';
144
150
  export { restoreVersionV3, useRestoreVersionV3Mutation } from './hooks/useRestoreVersionV3Mutation';
151
+ export { rollbackTerraformBackendV3, useRollbackTerraformBackendV3Mutation, } from './hooks/useRollbackTerraformBackendV3Mutation';
145
152
  export { saveFileMetadataV3, useSaveFileMetadataV3Mutation, } from './hooks/useSaveFileMetadataV3Mutation';
146
153
  export { saveMetadata, useSaveMetadataMutation } from './hooks/useSaveMetadataMutation';
147
154
  export { savePackageMetadataV3, useSavePackageMetadataV3Mutation, } from './hooks/useSavePackageMetadataV3Mutation';
@@ -153,6 +160,8 @@ export { searchRegistryFilesV3, useSearchRegistryFilesV3Mutation, } from './hook
153
160
  export { startMigration, useStartMigrationMutation } from './hooks/useStartMigrationMutation';
154
161
  export { stopMigration, useStopMigrationMutation } from './hooks/useStopMigrationMutation';
155
162
  export { triggerBackfillV3, useTriggerBackfillV3Mutation, } from './hooks/useTriggerBackfillV3Mutation';
163
+ export { triggerRegistryRootsIndexBuildV3, useTriggerRegistryRootsIndexBuildV3Mutation, } from './hooks/useTriggerRegistryRootsIndexBuildV3Mutation';
164
+ export { triggerTrigramIndexBuildV3, useTriggerTrigramIndexBuildV3Mutation, } from './hooks/useTriggerTrigramIndexBuildV3Mutation';
156
165
  export { updateArtifactLabels, useUpdateArtifactLabelsMutation, } from './hooks/useUpdateArtifactLabelsMutation';
157
166
  export { updateFirewallExceptionV3, useUpdateFirewallExceptionV3Mutation, } from './hooks/useUpdateFirewallExceptionV3Mutation';
158
167
  export { updateLifecycleRuleV3, useUpdateLifecycleRuleV3Mutation, } from './hooks/useUpdateLifecycleRuleV3Mutation';
@@ -0,0 +1,4 @@
1
+ /**
2
+ * @format binary
3
+ */
4
+ export type TerraformBackendStateResponseV3Response = string;
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -0,0 +1,2 @@
1
+ import type { TreeResponseBodyV3 } from '../schemas/TreeResponseBodyV3';
2
+ export type TreeResponseV3Response = TreeResponseBodyV3;
@@ -1,5 +1,6 @@
1
1
  import type { DeletedAtMsV3 } from '../schemas/DeletedAtMsV3';
2
2
  import type { UserInfoV3 } from '../schemas/UserInfoV3';
3
+ import type { ResourceMetadataV3 } from '../schemas/ResourceMetadataV3';
3
4
  import type { ModifiedAtMsV3 } from '../schemas/ModifiedAtMsV3';
4
5
  import type { OrgIdentifier } from '../schemas/OrgIdentifier';
5
6
  import type { PackageKindV3 } from '../schemas/PackageKindV3';
@@ -25,6 +26,7 @@ export interface PackageV3 {
25
26
  latestVersionArtifactKey?: {
26
27
  [key: string]: any;
27
28
  };
29
+ metadata?: ResourceMetadataV3;
28
30
  modifiedAt?: ModifiedAtMsV3;
29
31
  modifiedBy?: UserInfoV3;
30
32
  name: string;
@@ -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
  }
@@ -1,6 +1,7 @@
1
1
  import type { DeploymentMetadataV3 } from '../schemas/DeploymentMetadataV3';
2
2
  import type { FirewallModeV3 } from '../schemas/FirewallModeV3';
3
3
  import type { ScanStatusV3 } from '../schemas/ScanStatusV3';
4
+ import type { VulnerabilityMetadataV3 } from '../schemas/VulnerabilityMetadataV3';
4
5
  /**
5
6
  * Statistics for a single version
6
7
  */
@@ -36,4 +37,5 @@ export interface VersionStatsV3 {
36
37
  * Total size of the version (human-readable format)
37
38
  */
38
39
  size?: string;
40
+ vulnerabilityMetadata?: VulnerabilityMetadataV3;
39
41
  }
@@ -0,0 +1,18 @@
1
+ /**
2
+ * OSS vulnerability metadata for a version from component service
3
+ */
4
+ export interface VulnerabilityMetadataV3 {
5
+ abandoned?: boolean;
6
+ criticalVulnerabilities?: number;
7
+ highVulnerabilities?: number;
8
+ infoVulnerabilities?: number;
9
+ isMalicious?: boolean;
10
+ lowVulnerabilities?: number;
11
+ mediumVulnerabilities?: number;
12
+ ossRiskLevel?: string;
13
+ /**
14
+ * Package URL (PURL) identifying the package version
15
+ */
16
+ purl?: string;
17
+ totalVulnerabilities?: number;
18
+ }
@@ -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 {};
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.94.0",
4
4
  "description": "Harness HAR Service APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",