@harnessio/react-har-service-client 0.98.0 → 0.100.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 (127) hide show
  1. package/dist/har-service/src/services/hooks/useCreateRegistryV3Mutation.d.ts +24 -0
  2. package/dist/har-service/src/services/hooks/useCreateRegistryV3Mutation.js +15 -0
  3. package/dist/har-service/src/services/hooks/useEdgeAuthorizeV3Mutation.d.ts +19 -0
  4. package/dist/har-service/src/services/hooks/useEdgeAuthorizeV3Mutation.js +16 -0
  5. package/dist/har-service/src/services/hooks/useEdgeResolveV3Mutation.d.ts +19 -0
  6. package/dist/har-service/src/services/hooks/useEdgeResolveV3Mutation.js +16 -0
  7. package/dist/har-service/src/services/hooks/useGetRegistryV3Query.d.ts +24 -0
  8. package/dist/har-service/src/services/hooks/useGetRegistryV3Query.js +15 -0
  9. package/dist/har-service/src/services/hooks/useListNodeChildrenV3Query.d.ts +3 -2
  10. package/dist/har-service/src/services/hooks/useListNodeChildrenV3Query.js +3 -2
  11. package/dist/har-service/src/services/hooks/useListRegistryNodesV3Query.d.ts +2 -2
  12. package/dist/har-service/src/services/hooks/useListRegistryNodesV3Query.js +2 -2
  13. package/dist/har-service/src/services/hooks/useListTreeRootsV3Query.d.ts +5 -9
  14. package/dist/har-service/src/services/hooks/useListTreeRootsV3Query.js +4 -7
  15. package/dist/har-service/src/services/hooks/useRebuildRegistryIndexV3Mutation.d.ts +1 -1
  16. package/dist/har-service/src/services/hooks/useRebuildRegistryIndexV3Mutation.js +1 -1
  17. package/dist/har-service/src/services/hooks/useResolveTreePathV3Query.d.ts +48 -0
  18. package/dist/har-service/src/services/hooks/useResolveTreePathV3Query.js +28 -0
  19. package/dist/har-service/src/services/hooks/useSearchTreeV3Query.d.ts +52 -0
  20. package/dist/har-service/src/services/hooks/useSearchTreeV3Query.js +30 -0
  21. package/dist/har-service/src/services/hooks/useTriggerSemverBackfillV3Mutation.d.ts +19 -0
  22. package/dist/har-service/src/services/hooks/useTriggerSemverBackfillV3Mutation.js +17 -0
  23. package/dist/har-service/src/services/hooks/useUpsertAutoMetadataV3Mutation.d.ts +24 -0
  24. package/dist/har-service/src/services/hooks/useUpsertAutoMetadataV3Mutation.js +17 -0
  25. package/dist/har-service/src/services/index.d.ts +59 -0
  26. package/dist/har-service/src/services/index.js +8 -0
  27. package/dist/har-service/src/services/requestBodies/AutoMetadataRequestV3RequestBody.d.ts +2 -0
  28. package/dist/har-service/src/services/requestBodies/AutoMetadataRequestV3RequestBody.js +1 -0
  29. package/dist/har-service/src/services/requestBodies/RegistryCreateRequestV3RequestBody.d.ts +2 -0
  30. package/dist/har-service/src/services/requestBodies/RegistryCreateRequestV3RequestBody.js +1 -0
  31. package/dist/har-service/src/services/responses/RegistryResponseV3Response.d.ts +2 -0
  32. package/dist/har-service/src/services/responses/RegistryResponseV3Response.js +1 -0
  33. package/dist/har-service/src/services/responses/SearchTreeResponseV3Response.d.ts +2 -0
  34. package/dist/har-service/src/services/responses/SearchTreeResponseV3Response.js +1 -0
  35. package/dist/har-service/src/services/responses/TreeResolveResponseV3Response.d.ts +2 -0
  36. package/dist/har-service/src/services/responses/TreeResolveResponseV3Response.js +1 -0
  37. package/dist/har-service/src/services/schemas/AutoMetadataRequestInputV3.d.ts +38 -0
  38. package/dist/har-service/src/services/schemas/AutoMetadataRequestInputV3.js +1 -0
  39. package/dist/har-service/src/services/schemas/BackfillTriggerRequestInputV3.d.ts +7 -0
  40. package/dist/har-service/src/services/schemas/CleanupPolicyV3.d.ts +19 -0
  41. package/dist/har-service/src/services/schemas/CleanupPolicyV3.js +4 -0
  42. package/dist/har-service/src/services/schemas/DebianConfigV3.d.ts +14 -0
  43. package/dist/har-service/src/services/schemas/DebianConfigV3.js +4 -0
  44. package/dist/har-service/src/services/schemas/EdgeAuthorizeRequestV3.d.ts +9 -0
  45. package/dist/har-service/src/services/schemas/EdgeAuthorizeRequestV3.js +4 -0
  46. package/dist/har-service/src/services/schemas/EdgeAuthorizeResponseV3.d.ts +12 -0
  47. package/dist/har-service/src/services/schemas/EdgeAuthorizeResponseV3.js +1 -0
  48. package/dist/har-service/src/services/schemas/EdgeLocationV3.d.ts +5 -0
  49. package/dist/har-service/src/services/schemas/EdgeLocationV3.js +4 -0
  50. package/dist/har-service/src/services/schemas/EdgePrincipalV3.d.ts +4 -0
  51. package/dist/har-service/src/services/schemas/EdgePrincipalV3.js +4 -0
  52. package/dist/har-service/src/services/schemas/EdgeResolveRequestV3.d.ts +14 -0
  53. package/dist/har-service/src/services/schemas/EdgeResolveRequestV3.js +4 -0
  54. package/dist/har-service/src/services/schemas/EdgeResolveResponseV3.d.ts +28 -0
  55. package/dist/har-service/src/services/schemas/EdgeResolveResponseV3.js +1 -0
  56. package/dist/har-service/src/services/schemas/GenerateKeyRequestV3.d.ts +4 -12
  57. package/dist/har-service/src/services/schemas/GenerateKeyRequestV3.js +0 -3
  58. package/dist/har-service/src/services/schemas/ImportKeyRequestV3.d.ts +2 -6
  59. package/dist/har-service/src/services/schemas/ImportKeyRequestV3.js +0 -3
  60. package/dist/har-service/src/services/schemas/LifecycleRuleFilterConfigGenericV3.d.ts +2 -0
  61. package/dist/har-service/src/services/schemas/LifecycleRuleFilterConfigGenericV3.js +0 -3
  62. package/dist/har-service/src/services/schemas/LifecycleRuleFilterConfigMavenV3.d.ts +2 -0
  63. package/dist/har-service/src/services/schemas/LifecycleRuleFilterConfigMavenV3.js +0 -3
  64. package/dist/har-service/src/services/schemas/LifecycleRuleSemverOnlyV3.d.ts +5 -0
  65. package/dist/har-service/src/services/schemas/LifecycleRuleSemverOnlyV3.js +4 -0
  66. package/dist/har-service/src/services/schemas/RegistryConfigV3.d.ts +10 -0
  67. package/dist/har-service/src/services/schemas/RegistryConfigV3.js +1 -0
  68. package/dist/har-service/src/services/schemas/RegistryCreateBodyV3.d.ts +52 -0
  69. package/dist/har-service/src/services/schemas/RegistryCreateBodyV3.js +1 -0
  70. package/dist/har-service/src/services/schemas/RegistryDetailV3.d.ts +30 -0
  71. package/dist/har-service/src/services/schemas/RegistryDetailV3.js +1 -0
  72. package/dist/har-service/src/services/schemas/ScannerV3.d.ts +11 -0
  73. package/dist/har-service/src/services/schemas/ScannerV3.js +4 -0
  74. package/dist/har-service/src/services/schemas/SearchAncestorV3.d.ts +21 -0
  75. package/dist/har-service/src/services/schemas/SearchAncestorV3.js +4 -0
  76. package/dist/har-service/src/services/schemas/SearchFileItemV3.d.ts +63 -0
  77. package/dist/har-service/src/services/schemas/SearchFileItemV3.js +1 -0
  78. package/dist/har-service/src/services/schemas/SearchFilesGroupV3.d.ts +26 -0
  79. package/dist/har-service/src/services/schemas/SearchFilesGroupV3.js +1 -0
  80. package/dist/har-service/src/services/schemas/SearchPackageItemV3.d.ts +61 -0
  81. package/dist/har-service/src/services/schemas/SearchPackageItemV3.js +1 -0
  82. package/dist/har-service/src/services/schemas/SearchPackagesGroupV3.d.ts +26 -0
  83. package/dist/har-service/src/services/schemas/SearchPackagesGroupV3.js +1 -0
  84. package/dist/har-service/src/services/schemas/SearchRegistriesGroupV3.d.ts +26 -0
  85. package/dist/har-service/src/services/schemas/SearchRegistriesGroupV3.js +1 -0
  86. package/dist/har-service/src/services/schemas/SearchRegistryItemV3.d.ts +50 -0
  87. package/dist/har-service/src/services/schemas/SearchRegistryItemV3.js +1 -0
  88. package/dist/har-service/src/services/schemas/SearchTreeResponseBodyV3.d.ts +13 -0
  89. package/dist/har-service/src/services/schemas/SearchTreeResponseBodyV3.js +1 -0
  90. package/dist/har-service/src/services/schemas/SearchVersionItemV3.d.ts +86 -0
  91. package/dist/har-service/src/services/schemas/SearchVersionItemV3.js +1 -0
  92. package/dist/har-service/src/services/schemas/SearchVersionsGroupV3.d.ts +26 -0
  93. package/dist/har-service/src/services/schemas/SearchVersionsGroupV3.js +1 -0
  94. package/dist/har-service/src/services/schemas/SemverBackfillTriggerDataV3.d.ts +14 -0
  95. package/dist/har-service/src/services/schemas/SemverBackfillTriggerDataV3.js +4 -0
  96. package/dist/har-service/src/services/schemas/SigningConfigV3.d.ts +15 -0
  97. package/dist/har-service/src/services/schemas/SigningConfigV3.js +4 -0
  98. package/dist/har-service/src/services/schemas/SigningKeyTypeV3.d.ts +6 -0
  99. package/dist/har-service/src/services/schemas/SigningKeyTypeV3.js +4 -0
  100. package/dist/har-service/src/services/schemas/SigningKeyV3.d.ts +2 -6
  101. package/dist/har-service/src/services/schemas/TreeEntityKindV3.d.ts +7 -0
  102. package/dist/har-service/src/services/schemas/TreeEntityKindV3.js +4 -0
  103. package/dist/har-service/src/services/schemas/TreeNodeItemV3.d.ts +42 -22
  104. package/dist/har-service/src/services/schemas/TreeNodeItemV3.js +0 -3
  105. package/dist/har-service/src/services/schemas/TreePaginationV3.d.ts +9 -13
  106. package/dist/har-service/src/services/schemas/TreePathStepV3.d.ts +29 -0
  107. package/dist/har-service/src/services/schemas/TreePathStepV3.js +1 -0
  108. package/dist/har-service/src/services/schemas/TreeResolveResponseBodyV3.d.ts +14 -0
  109. package/dist/har-service/src/services/schemas/TreeResolveResponseBodyV3.js +1 -0
  110. package/dist/har-service/src/services/schemas/TreeResponseBodyV3.d.ts +1 -1
  111. package/dist/har-service/src/services/schemas/UpstreamAuthAccessKeySecretKeyV3.d.ts +27 -0
  112. package/dist/har-service/src/services/schemas/UpstreamAuthAccessKeySecretKeyV3.js +4 -0
  113. package/dist/har-service/src/services/schemas/UpstreamAuthBearerTokenV3.d.ts +14 -0
  114. package/dist/har-service/src/services/schemas/UpstreamAuthBearerTokenV3.js +4 -0
  115. package/dist/har-service/src/services/schemas/UpstreamAuthTypeV3.d.ts +6 -0
  116. package/dist/har-service/src/services/schemas/UpstreamAuthTypeV3.js +4 -0
  117. package/dist/har-service/src/services/schemas/UpstreamAuthUserPasswordV3.d.ts +16 -0
  118. package/dist/har-service/src/services/schemas/UpstreamAuthUserPasswordV3.js +4 -0
  119. package/dist/har-service/src/services/schemas/UpstreamAuthV3.d.ts +8 -0
  120. package/dist/har-service/src/services/schemas/UpstreamAuthV3.js +1 -0
  121. package/dist/har-service/src/services/schemas/UpstreamConfigV3.d.ts +36 -0
  122. package/dist/har-service/src/services/schemas/UpstreamConfigV3.js +1 -0
  123. package/dist/har-service/src/services/schemas/UpstreamSourceV3.d.ts +6 -0
  124. package/dist/har-service/src/services/schemas/UpstreamSourceV3.js +4 -0
  125. package/dist/har-service/src/services/schemas/VirtualConfigV3.d.ts +14 -0
  126. package/dist/har-service/src/services/schemas/VirtualConfigV3.js +1 -0
  127. package/package.json +1 -1
@@ -0,0 +1,24 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { RegistryResponseV3Response } from '../responses/RegistryResponseV3Response';
3
+ import type { ErrorV3 } from '../schemas/ErrorV3';
4
+ import type { RegistryCreateRequestV3RequestBody } from '../requestBodies/RegistryCreateRequestV3RequestBody';
5
+ import type { ResponseWithPagination } from '../helpers';
6
+ import { FetcherOptions } from '../../../../fetcher/index.js';
7
+ export interface CreateRegistryV3MutationQueryParams {
8
+ account_identifier: string;
9
+ org_identifier?: string;
10
+ project_identifier?: string;
11
+ }
12
+ export type CreateRegistryV3RequestBody = RegistryCreateRequestV3RequestBody;
13
+ export type CreateRegistryV3OkResponse = ResponseWithPagination<RegistryResponseV3Response>;
14
+ export type CreateRegistryV3ErrorResponse = ErrorV3;
15
+ export interface CreateRegistryV3Props extends Omit<FetcherOptions<CreateRegistryV3MutationQueryParams, CreateRegistryV3RequestBody>, 'url'> {
16
+ queryParams: CreateRegistryV3MutationQueryParams;
17
+ body: CreateRegistryV3RequestBody;
18
+ }
19
+ export declare function createRegistryV3(props: CreateRegistryV3Props): Promise<CreateRegistryV3OkResponse>;
20
+ /**
21
+ * Creates a registry in the scope given by the account, org and project identifiers. The scope is taken from the query parameters, so the body carries no parent reference.
22
+ *
23
+ */
24
+ export declare function useCreateRegistryV3Mutation(options?: Omit<UseMutationOptions<CreateRegistryV3OkResponse, CreateRegistryV3ErrorResponse, CreateRegistryV3Props>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CreateRegistryV3OkResponse, ErrorV3, CreateRegistryV3Props, 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 createRegistryV3(props) {
7
+ return fetcher(Object.assign({ url: `/v3/registries`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Creates a registry in the scope given by the account, org and project identifiers. The scope is taken from the query parameters, so the body carries no parent reference.
11
+ *
12
+ */
13
+ export function useCreateRegistryV3Mutation(options) {
14
+ return useMutation((mutateProps) => createRegistryV3(mutateProps), options);
15
+ }
@@ -0,0 +1,19 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { EdgeAuthorizeResponseV3 } from '../schemas/EdgeAuthorizeResponseV3';
3
+ import type { ErrorV3 } from '../schemas/ErrorV3';
4
+ import type { EdgeAuthorizeRequestV3 } from '../schemas/EdgeAuthorizeRequestV3';
5
+ import type { ResponseWithPagination } from '../helpers';
6
+ import { FetcherOptions } from '../../../../fetcher/index.js';
7
+ export type EdgeAuthorizeV3RequestBody = EdgeAuthorizeRequestV3;
8
+ export type EdgeAuthorizeV3OkResponse = ResponseWithPagination<EdgeAuthorizeResponseV3>;
9
+ export type EdgeAuthorizeV3ErrorResponse = ErrorV3;
10
+ export interface EdgeAuthorizeV3Props extends Omit<FetcherOptions<unknown, EdgeAuthorizeV3RequestBody>, 'url'> {
11
+ body: EdgeAuthorizeV3RequestBody;
12
+ }
13
+ export declare function edgeAuthorizeV3(props: EdgeAuthorizeV3Props): Promise<EdgeAuthorizeV3OkResponse>;
14
+ /**
15
+ * Edge worker authorization. Authenticated with the X-Har-Edge-Secret shared secret instead of
16
+ * regular user auth. Returns 404 when the edge integration is disabled.
17
+ *
18
+ */
19
+ export declare function useEdgeAuthorizeV3Mutation(options?: Omit<UseMutationOptions<EdgeAuthorizeV3OkResponse, EdgeAuthorizeV3ErrorResponse, EdgeAuthorizeV3Props>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<EdgeAuthorizeV3OkResponse, ErrorV3, EdgeAuthorizeV3Props, unknown>;
@@ -0,0 +1,16 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ import { useMutation } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../fetcher/index.js';
6
+ export function edgeAuthorizeV3(props) {
7
+ return fetcher(Object.assign({ url: `/v3/edge/authorize`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Edge worker authorization. Authenticated with the X-Har-Edge-Secret shared secret instead of
11
+ * regular user auth. Returns 404 when the edge integration is disabled.
12
+ *
13
+ */
14
+ export function useEdgeAuthorizeV3Mutation(options) {
15
+ return useMutation((mutateProps) => edgeAuthorizeV3(mutateProps), options);
16
+ }
@@ -0,0 +1,19 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { EdgeResolveResponseV3 } from '../schemas/EdgeResolveResponseV3';
3
+ import type { ErrorV3 } from '../schemas/ErrorV3';
4
+ import type { EdgeResolveRequestV3 } from '../schemas/EdgeResolveRequestV3';
5
+ import type { ResponseWithPagination } from '../helpers';
6
+ import { FetcherOptions } from '../../../../fetcher/index.js';
7
+ export type EdgeResolveV3RequestBody = EdgeResolveRequestV3;
8
+ export type EdgeResolveV3OkResponse = ResponseWithPagination<EdgeResolveResponseV3>;
9
+ export type EdgeResolveV3ErrorResponse = ErrorV3;
10
+ export interface EdgeResolveV3Props extends Omit<FetcherOptions<unknown, EdgeResolveV3RequestBody>, 'url'> {
11
+ body: EdgeResolveV3RequestBody;
12
+ }
13
+ export declare function edgeResolveV3(props: EdgeResolveV3Props): Promise<EdgeResolveV3OkResponse>;
14
+ /**
15
+ * Edge worker blob resolution. Authenticated with the X-Har-Edge-Secret shared secret instead of
16
+ * regular user auth. Returns 404 when the edge integration is disabled.
17
+ *
18
+ */
19
+ export declare function useEdgeResolveV3Mutation(options?: Omit<UseMutationOptions<EdgeResolveV3OkResponse, EdgeResolveV3ErrorResponse, EdgeResolveV3Props>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<EdgeResolveV3OkResponse, ErrorV3, EdgeResolveV3Props, unknown>;
@@ -0,0 +1,16 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ import { useMutation } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../fetcher/index.js';
6
+ export function edgeResolveV3(props) {
7
+ return fetcher(Object.assign({ url: `/v3/edge/resolve`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Edge worker blob resolution. Authenticated with the X-Har-Edge-Secret shared secret instead of
11
+ * regular user auth. Returns 404 when the edge integration is disabled.
12
+ *
13
+ */
14
+ export function useEdgeResolveV3Mutation(options) {
15
+ return useMutation((mutateProps) => edgeResolveV3(mutateProps), options);
16
+ }
@@ -0,0 +1,24 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { RegistryResponseV3Response } from '../responses/RegistryResponseV3Response';
3
+ import type { ErrorV3 } from '../schemas/ErrorV3';
4
+ import type { ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
+ export interface GetRegistryV3QueryPathParams {
7
+ id: string;
8
+ }
9
+ export interface GetRegistryV3QueryQueryParams {
10
+ account_identifier: string;
11
+ org_identifier?: string;
12
+ project_identifier?: string;
13
+ }
14
+ export type GetRegistryV3OkResponse = ResponseWithPagination<RegistryResponseV3Response>;
15
+ export type GetRegistryV3ErrorResponse = ErrorV3;
16
+ export interface GetRegistryV3Props extends GetRegistryV3QueryPathParams, Omit<FetcherOptions<GetRegistryV3QueryQueryParams, unknown>, 'url'> {
17
+ queryParams: GetRegistryV3QueryQueryParams;
18
+ }
19
+ export declare function getRegistryV3(props: GetRegistryV3Props): Promise<GetRegistryV3OkResponse>;
20
+ /**
21
+ * Retrieves a single registry by its UUID, including its configuration and other nested settings that are omitted from list results. Soft-deleted registries are returned as well, so that a caller holding a UUID can read one in order to restore it; `deletedAt` and `deletedBy` report the deletion.
22
+ *
23
+ */
24
+ export declare function useGetRegistryV3Query(props: GetRegistryV3Props, options?: Omit<UseQueryOptions<GetRegistryV3OkResponse, GetRegistryV3ErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetRegistryV3OkResponse, ErrorV3>;
@@ -0,0 +1,15 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ import { useQuery } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../fetcher/index.js';
6
+ export function getRegistryV3(props) {
7
+ return fetcher(Object.assign({ url: `/v3/registries/${props.id}`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Retrieves a single registry by its UUID, including its configuration and other nested settings that are omitted from list results. Soft-deleted registries are returned as well, so that a caller holding a UUID can read one in order to restore it; `deletedAt` and `deletedBy` report the deletion.
11
+ *
12
+ */
13
+ export function useGetRegistryV3Query(props, options) {
14
+ return useQuery(['GetRegistryV3', props.id, props.queryParams], ({ signal }) => getRegistryV3(Object.assign(Object.assign({}, props), { signal })), options);
15
+ }
@@ -28,8 +28,9 @@ export interface ListNodeChildrenV3Props extends ListNodeChildrenV3QueryPathPara
28
28
  }
29
29
  export declare function listNodeChildrenV3(props: ListNodeChildrenV3Props): Promise<ListNodeChildrenV3OkResponse>;
30
30
  /**
31
- * Lists immediate children of a specific node (package/version/folder).
32
- * Returns child nodes for tree navigation.
31
+ * Lists the immediate children of a non-registry node. For a Docker/Helm package, the
32
+ * first page starts with an `Untagged (n)` group when the package has untagged manifests;
33
+ * it occupies one slot of `size`. An unknown node returns 404.
33
34
  *
34
35
  */
35
36
  export declare function useListNodeChildrenV3Query(props: ListNodeChildrenV3Props, options?: Omit<UseQueryOptions<ListNodeChildrenV3OkResponse, ListNodeChildrenV3ErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListNodeChildrenV3OkResponse, ErrorV3>;
@@ -7,8 +7,9 @@ export function listNodeChildrenV3(props) {
7
7
  return fetcher(Object.assign({ url: `/v3/tree/nodes/${props.node_id}/children`, method: 'GET' }, props));
8
8
  }
9
9
  /**
10
- * Lists immediate children of a specific node (package/version/folder).
11
- * Returns child nodes for tree navigation.
10
+ * Lists the immediate children of a non-registry node. For a Docker/Helm package, the
11
+ * first page starts with an `Untagged (n)` group when the package has untagged manifests;
12
+ * it occupies one slot of `size`. An unknown node returns 404.
12
13
  *
13
14
  */
14
15
  export function useListNodeChildrenV3Query(props, options) {
@@ -28,8 +28,8 @@ export interface ListRegistryNodesV3Props extends ListRegistryNodesV3QueryPathPa
28
28
  }
29
29
  export declare function listRegistryNodesV3(props: ListRegistryNodesV3Props): Promise<ListRegistryNodesV3OkResponse>;
30
30
  /**
31
- * Lists top-level packages/folders under a specific registry.
32
- * Returns immediate children of the registry for tree navigation.
31
+ * Lists the immediate children of a registry: packages for Docker/Helm, top-level
32
+ * folders/files for every other package type. Expand a child with `ListNodeChildrenV3`.
33
33
  *
34
34
  */
35
35
  export declare function useListRegistryNodesV3Query(props: ListRegistryNodesV3Props, options?: Omit<UseQueryOptions<ListRegistryNodesV3OkResponse, ListRegistryNodesV3ErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListRegistryNodesV3OkResponse, ErrorV3>;
@@ -7,8 +7,8 @@ export function listRegistryNodesV3(props) {
7
7
  return fetcher(Object.assign({ url: `/v3/tree/registries/${props.registry_id}/nodes`, method: 'GET' }, props));
8
8
  }
9
9
  /**
10
- * Lists top-level packages/folders under a specific registry.
11
- * Returns immediate children of the registry for tree navigation.
10
+ * Lists the immediate children of a registry: packages for Docker/Helm, top-level
11
+ * folders/files for every other package type. Expand a child with `ListNodeChildrenV3`.
12
12
  *
13
13
  */
14
14
  export function useListRegistryNodesV3Query(props, options) {
@@ -17,9 +17,8 @@ export interface ListTreeRootsV3QueryQueryParams {
17
17
  * @default "exclude_deleted"
18
18
  */
19
19
  deleted_filter?: 'exclude_deleted' | 'include_deleted' | 'only_deleted';
20
- search?: string;
21
20
  registry_type?: string;
22
- package_type?: string;
21
+ package_types?: string[];
23
22
  }
24
23
  export type ListTreeRootsV3OkResponse = ResponseWithPagination<TreeResponseV3Response>;
25
24
  export type ListTreeRootsV3ErrorResponse = ErrorV3;
@@ -28,13 +27,10 @@ export interface ListTreeRootsV3Props extends Omit<FetcherOptions<ListTreeRootsV
28
27
  }
29
28
  export declare function listTreeRootsV3(props: ListTreeRootsV3Props): Promise<ListTreeRootsV3OkResponse>;
30
29
  /**
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.
30
+ * Lists the registries forming the tree's root level, sorted by name. `scope` is resolved
31
+ * as for `ListRegistriesV3`; a `scope` value other than `none`/`ancestors`/`descendants`
32
+ * (when provided) returns 400. `pagination.total` is exact and returned on the first page
33
+ * only. Expand a registry with `ListRegistryNodesV3`.
38
34
  *
39
35
  */
40
36
  export declare function useListTreeRootsV3Query(props: ListTreeRootsV3Props, options?: Omit<UseQueryOptions<ListTreeRootsV3OkResponse, ListTreeRootsV3ErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListTreeRootsV3OkResponse, ErrorV3>;
@@ -7,13 +7,10 @@ export function listTreeRootsV3(props) {
7
7
  return fetcher(Object.assign({ url: `/v3/tree/roots`, method: 'GET' }, props));
8
8
  }
9
9
  /**
10
- * Lists 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.
10
+ * Lists the registries forming the tree's root level, sorted by name. `scope` is resolved
11
+ * as for `ListRegistriesV3`; a `scope` value other than `none`/`ancestors`/`descendants`
12
+ * (when provided) returns 400. `pagination.total` is exact and returned on the first page
13
+ * only. Expand a registry with `ListRegistryNodesV3`.
17
14
  *
18
15
  */
19
16
  export function useListTreeRootsV3Query(props, options) {
@@ -16,6 +16,6 @@ export interface RebuildRegistryIndexV3Props extends RebuildRegistryIndexV3Mutat
16
16
  }
17
17
  export declare function rebuildRegistryIndexV3(props: RebuildRegistryIndexV3Props): Promise<RebuildRegistryIndexV3OkResponse>;
18
18
  /**
19
- * Trigger an asynchronous rebuild of the repository index for the given registry. The rebuild runs in the background; this endpoint returns immediately once the request is accepted. Index rebuild is package-type specific — it is currently supported only for HELM_HTTP registries. Registries whose package type does not maintain a rebuildable index return 405.
19
+ * Trigger an asynchronous rebuild of the repository index for the given registry. The rebuild runs in the background; this endpoint returns immediately once the request is accepted. Index rebuild is package-type specific. Registries whose package type does not maintain a rebuildable index return 405.
20
20
  */
21
21
  export declare function useRebuildRegistryIndexV3Mutation(options?: Omit<UseMutationOptions<RebuildRegistryIndexV3OkResponse, RebuildRegistryIndexV3ErrorResponse, RebuildRegistryIndexV3Props>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<RebuildRegistryIndexV3OkResponse, ErrorV3, RebuildRegistryIndexV3Props, unknown>;
@@ -7,7 +7,7 @@ export function rebuildRegistryIndexV3(props) {
7
7
  return fetcher(Object.assign({ url: `/v3/registries/${props.id}/rebuild-index`, method: 'POST' }, props));
8
8
  }
9
9
  /**
10
- * Trigger an asynchronous rebuild of the repository index for the given registry. The rebuild runs in the background; this endpoint returns immediately once the request is accepted. Index rebuild is package-type specific — it is currently supported only for HELM_HTTP registries. Registries whose package type does not maintain a rebuildable index return 405.
10
+ * Trigger an asynchronous rebuild of the repository index for the given registry. The rebuild runs in the background; this endpoint returns immediately once the request is accepted. Index rebuild is package-type specific. Registries whose package type does not maintain a rebuildable index return 405.
11
11
  */
12
12
  export function useRebuildRegistryIndexV3Mutation(options) {
13
13
  return useMutation((mutateProps) => rebuildRegistryIndexV3(mutateProps), options);
@@ -0,0 +1,48 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { TreeResolveResponseV3Response } from '../responses/TreeResolveResponseV3Response';
3
+ import type { ErrorV3 } from '../schemas/ErrorV3';
4
+ import type { ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
+ export interface ResolveTreePathV3QueryQueryParams {
7
+ account_identifier: string;
8
+ org_identifier?: string;
9
+ project_identifier?: string;
10
+ path: string;
11
+ scope?: 'ancestors' | 'descendants' | 'none';
12
+ /**
13
+ * @default "exclude_deleted"
14
+ */
15
+ deleted_filter?: 'exclude_deleted' | 'include_deleted' | 'only_deleted';
16
+ registry_type?: string;
17
+ package_types?: string[];
18
+ cursor?: string;
19
+ /**
20
+ * @default 50
21
+ */
22
+ size?: number;
23
+ compact?: boolean;
24
+ }
25
+ export type ResolveTreePathV3OkResponse = ResponseWithPagination<TreeResolveResponseV3Response>;
26
+ export type ResolveTreePathV3ErrorResponse = ErrorV3;
27
+ export interface ResolveTreePathV3Props extends Omit<FetcherOptions<ResolveTreePathV3QueryQueryParams, unknown>, 'url'> {
28
+ queryParams: ResolveTreePathV3QueryQueryParams;
29
+ }
30
+ export declare function resolveTreePathV3(props: ResolveTreePathV3Props): Promise<ResolveTreePathV3OkResponse>;
31
+ /**
32
+ * Resolves a canonical, readable `path` (copy it from `treePath`) to every node along it, so a
33
+ * URL can carry the open node: the client reads the node's ids for its details call and
34
+ * expands the tree by listing each step's children.
35
+ *
36
+ * The response also carries the first page of the requested node's own children, exactly as
37
+ * `ListRegistryNodesV3` (for a registry) or `ListNodeChildrenV3` (for any other node) would
38
+ * return them under the same `cursor`, `size`, `deleted_filter` and `compact`. Load further
39
+ * pages from those endpoints with `children.pagination.nextCursor`. A file has no children.
40
+ *
41
+ * Every step must be a node the list endpoints would show under the same `scope`,
42
+ * `deleted_filter`, `registry_type` and `package_types`; send the same values to both. A path
43
+ * that does not fully resolve, or whose registry is outside `scope` or excluded by a filter,
44
+ * returns 404. Resolving requires view permission on the registry, as for
45
+ * `ListRegistryNodesV3` (403 otherwise). A malformed path, `size` or `cursor` returns 400.
46
+ *
47
+ */
48
+ export declare function useResolveTreePathV3Query(props: ResolveTreePathV3Props, options?: Omit<UseQueryOptions<ResolveTreePathV3OkResponse, ResolveTreePathV3ErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ResolveTreePathV3OkResponse, ErrorV3>;
@@ -0,0 +1,28 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ import { useQuery } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../fetcher/index.js';
6
+ export function resolveTreePathV3(props) {
7
+ return fetcher(Object.assign({ url: `/v3/tree/resolve`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Resolves a canonical, readable `path` (copy it from `treePath`) to every node along it, so a
11
+ * URL can carry the open node: the client reads the node's ids for its details call and
12
+ * expands the tree by listing each step's children.
13
+ *
14
+ * The response also carries the first page of the requested node's own children, exactly as
15
+ * `ListRegistryNodesV3` (for a registry) or `ListNodeChildrenV3` (for any other node) would
16
+ * return them under the same `cursor`, `size`, `deleted_filter` and `compact`. Load further
17
+ * pages from those endpoints with `children.pagination.nextCursor`. A file has no children.
18
+ *
19
+ * Every step must be a node the list endpoints would show under the same `scope`,
20
+ * `deleted_filter`, `registry_type` and `package_types`; send the same values to both. A path
21
+ * that does not fully resolve, or whose registry is outside `scope` or excluded by a filter,
22
+ * returns 404. Resolving requires view permission on the registry, as for
23
+ * `ListRegistryNodesV3` (403 otherwise). A malformed path, `size` or `cursor` returns 400.
24
+ *
25
+ */
26
+ export function useResolveTreePathV3Query(props, options) {
27
+ return useQuery(['ResolveTreePathV3', props.queryParams], ({ signal }) => resolveTreePathV3(Object.assign(Object.assign({}, props), { signal })), options);
28
+ }
@@ -0,0 +1,52 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { SearchTreeResponseV3Response } from '../responses/SearchTreeResponseV3Response';
3
+ import type { ErrorV3 } from '../schemas/ErrorV3';
4
+ import type { ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
+ export interface SearchTreeV3QueryQueryParams {
7
+ account_identifier: string;
8
+ org_identifier?: string;
9
+ project_identifier?: string;
10
+ scope?: 'ancestors' | 'descendants' | 'none';
11
+ search: string;
12
+ /**
13
+ * @default 10
14
+ */
15
+ size?: number;
16
+ registries_cursor?: string;
17
+ packages_cursor?: string;
18
+ versions_cursor?: string;
19
+ files_cursor?: string;
20
+ package_types?: string[];
21
+ registry_type?: string;
22
+ /**
23
+ * @default "exclude_deleted"
24
+ */
25
+ deleted_filter?: 'exclude_deleted' | 'include_deleted' | 'only_deleted';
26
+ }
27
+ export type SearchTreeV3OkResponse = ResponseWithPagination<SearchTreeResponseV3Response>;
28
+ export type SearchTreeV3ErrorResponse = ErrorV3;
29
+ export interface SearchTreeV3Props extends Omit<FetcherOptions<SearchTreeV3QueryQueryParams, unknown>, 'url'> {
30
+ queryParams: SearchTreeV3QueryQueryParams;
31
+ }
32
+ export declare function searchTreeV3(props: SearchTreeV3Props): Promise<SearchTreeV3OkResponse>;
33
+ /**
34
+ * Searches every registry in `scope` (resolved as for `ListTreeRootsV3`; a `scope` value
35
+ * other than `none`/`ancestors`/`descendants`, when provided, returns 400) and returns four
36
+ * groups in one response: Registries, Packages, Versions and Files/Folders, each sorted by
37
+ * name. Each group has its own cursor parameter and `nextCursor`; paging one group
38
+ * leaves the others on their first page. Each group's `count` is independent of pagination
39
+ * and saturates at 1001 ("1000+").
40
+ *
41
+ * Every group query runs under a 5 s server-side budget. A group that exceeds it is
42
+ * returned empty with `timedOut: true` and the other groups are returned as normal; the
43
+ * request fails with 504 only when every group timed out.
44
+ *
45
+ * Hits carry the same fields as `TreeNodeItemV3` except `hasChildren`: `id` is the tree node
46
+ * id, `entityId` the registry/package/version UUID.
47
+ *
48
+ * Registries and Files hits are always navigable. Packages and Versions hits are navigable
49
+ * when they carry `id`; render the others as non-navigable.
50
+ *
51
+ */
52
+ export declare function useSearchTreeV3Query(props: SearchTreeV3Props, options?: Omit<UseQueryOptions<SearchTreeV3OkResponse, SearchTreeV3ErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<SearchTreeV3OkResponse, ErrorV3>;
@@ -0,0 +1,30 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ import { useQuery } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../fetcher/index.js';
6
+ export function searchTreeV3(props) {
7
+ return fetcher(Object.assign({ url: `/v3/tree/search`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Searches every registry in `scope` (resolved as for `ListTreeRootsV3`; a `scope` value
11
+ * other than `none`/`ancestors`/`descendants`, when provided, returns 400) and returns four
12
+ * groups in one response: Registries, Packages, Versions and Files/Folders, each sorted by
13
+ * name. Each group has its own cursor parameter and `nextCursor`; paging one group
14
+ * leaves the others on their first page. Each group's `count` is independent of pagination
15
+ * and saturates at 1001 ("1000+").
16
+ *
17
+ * Every group query runs under a 5 s server-side budget. A group that exceeds it is
18
+ * returned empty with `timedOut: true` and the other groups are returned as normal; the
19
+ * request fails with 504 only when every group timed out.
20
+ *
21
+ * Hits carry the same fields as `TreeNodeItemV3` except `hasChildren`: `id` is the tree node
22
+ * id, `entityId` the registry/package/version UUID.
23
+ *
24
+ * Registries and Files hits are always navigable. Packages and Versions hits are navigable
25
+ * when they carry `id`; render the others as non-navigable.
26
+ *
27
+ */
28
+ export function useSearchTreeV3Query(props, options) {
29
+ return useQuery(['SearchTreeV3', props.queryParams], ({ signal }) => searchTreeV3(Object.assign(Object.assign({}, props), { signal })), options);
30
+ }
@@ -0,0 +1,19 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { SemverBackfillTriggerDataV3 } from '../schemas/SemverBackfillTriggerDataV3';
3
+ import type { ErrorV3 } from '../schemas/ErrorV3';
4
+ import type { ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
+ export type TriggerSemverBackfillV3OkResponse = ResponseWithPagination<{
7
+ data: SemverBackfillTriggerDataV3;
8
+ }>;
9
+ export type TriggerSemverBackfillV3ErrorResponse = ErrorV3;
10
+ export interface TriggerSemverBackfillV3Props extends Omit<FetcherOptions<unknown, unknown>, 'url'> {
11
+ }
12
+ export declare function triggerSemverBackfillV3(props: TriggerSemverBackfillV3Props): Promise<TriggerSemverBackfillV3OkResponse>;
13
+ /**
14
+ * Triggers a one-time backfill job that populates the artifact_semver table
15
+ * for all existing artifacts. This is used to support semver-based lifecycle
16
+ * cleanup rules (filterConfig.semverOnly).
17
+ *
18
+ */
19
+ export declare function useTriggerSemverBackfillV3Mutation(options?: Omit<UseMutationOptions<TriggerSemverBackfillV3OkResponse, TriggerSemverBackfillV3ErrorResponse, TriggerSemverBackfillV3Props>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<TriggerSemverBackfillV3OkResponse, ErrorV3, TriggerSemverBackfillV3Props, unknown>;
@@ -0,0 +1,17 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ import { useMutation } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../fetcher/index.js';
6
+ export function triggerSemverBackfillV3(props) {
7
+ return fetcher(Object.assign({ url: `/v3/internal/semver/backfill`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Triggers a one-time backfill job that populates the artifact_semver table
11
+ * for all existing artifacts. This is used to support semver-based lifecycle
12
+ * cleanup rules (filterConfig.semverOnly).
13
+ *
14
+ */
15
+ export function useTriggerSemverBackfillV3Mutation(options) {
16
+ return useMutation((mutateProps) => triggerSemverBackfillV3(mutateProps), options);
17
+ }
@@ -0,0 +1,24 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { MetadataResponseV3Response } from '../responses/MetadataResponseV3Response';
3
+ import type { ErrorV3 } from '../schemas/ErrorV3';
4
+ import type { AutoMetadataRequestV3RequestBody } from '../requestBodies/AutoMetadataRequestV3RequestBody';
5
+ import type { ResponseWithPagination } from '../helpers';
6
+ import { FetcherOptions } from '../../../../fetcher/index.js';
7
+ export interface UpsertAutoMetadataV3MutationQueryParams {
8
+ account_identifier: string;
9
+ }
10
+ export type UpsertAutoMetadataV3RequestBody = AutoMetadataRequestV3RequestBody;
11
+ export type UpsertAutoMetadataV3OkResponse = ResponseWithPagination<MetadataResponseV3Response>;
12
+ export type UpsertAutoMetadataV3ErrorResponse = ErrorV3;
13
+ export interface UpsertAutoMetadataV3Props extends Omit<FetcherOptions<UpsertAutoMetadataV3MutationQueryParams, UpsertAutoMetadataV3RequestBody>, 'url'> {
14
+ queryParams: UpsertAutoMetadataV3MutationQueryParams;
15
+ body: UpsertAutoMetadataV3RequestBody;
16
+ }
17
+ export declare function upsertAutoMetadataV3(props: UpsertAutoMetadataV3Props): Promise<UpsertAutoMetadataV3OkResponse>;
18
+ /**
19
+ * Upserts system-generated (AUTO) metadata on a registry, package, or version.
20
+ * Callers choose the target by which of `package` and `version` they send.
21
+ * MANUAL metadata on the same target is not modified. Not part of the public API.
22
+ *
23
+ */
24
+ export declare function useUpsertAutoMetadataV3Mutation(options?: Omit<UseMutationOptions<UpsertAutoMetadataV3OkResponse, UpsertAutoMetadataV3ErrorResponse, UpsertAutoMetadataV3Props>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UpsertAutoMetadataV3OkResponse, ErrorV3, UpsertAutoMetadataV3Props, unknown>;
@@ -0,0 +1,17 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ import { useMutation } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../fetcher/index.js';
6
+ export function upsertAutoMetadataV3(props) {
7
+ return fetcher(Object.assign({ url: `/v3/internal/metadata`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Upserts system-generated (AUTO) metadata on a registry, package, or version.
11
+ * Callers choose the target by which of `package` and `version` they send.
12
+ * MANUAL metadata on the same target is not modified. Not part of the public API.
13
+ *
14
+ */
15
+ export function useUpsertAutoMetadataV3Mutation(options) {
16
+ return useMutation((mutateProps) => upsertAutoMetadataV3(mutateProps), options);
17
+ }