@harnessio/react-har-service-client 0.34.0 → 0.36.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 (187) hide show
  1. package/dist/har-service/src/services/hooks/useAddOciArtifactTagsMutation.d.ts +28 -0
  2. package/dist/har-service/src/services/hooks/useAddOciArtifactTagsMutation.js +14 -0
  3. package/dist/har-service/src/services/hooks/useCopyMutation.d.ts +31 -0
  4. package/dist/har-service/src/services/hooks/useCopyMutation.js +14 -0
  5. package/dist/har-service/src/services/hooks/useCreateBulkDownloadRequestMutation.d.ts +25 -0
  6. package/dist/har-service/src/services/hooks/useCreateBulkDownloadRequestMutation.js +14 -0
  7. package/dist/har-service/src/services/hooks/useCreateBulkDownloadRequestV1Query.d.ts +23 -0
  8. package/dist/har-service/src/services/hooks/useCreateBulkDownloadRequestV1Query.js +14 -0
  9. package/dist/har-service/src/services/hooks/useCreateRegistryMutation.d.ts +1 -1
  10. package/dist/har-service/src/services/hooks/useCreateRegistryMutation.js +1 -1
  11. package/dist/har-service/src/services/hooks/useCreateReplicationRuleMutation.js +1 -1
  12. package/dist/har-service/src/services/hooks/useCreateWebhookMutation.js +1 -1
  13. package/dist/har-service/src/services/hooks/useDefineSpaceLabelMutation.js +1 -1
  14. package/dist/har-service/src/services/hooks/useDefineSpaceLabelValueMutation.js +1 -1
  15. package/dist/har-service/src/services/hooks/useDeleteArtifactMutation.js +1 -1
  16. package/dist/har-service/src/services/hooks/useDeleteArtifactVersionMutation.js +1 -1
  17. package/dist/har-service/src/services/hooks/useDeleteMetadataMutation.d.ts +25 -0
  18. package/dist/har-service/src/services/hooks/useDeleteMetadataMutation.js +17 -0
  19. package/dist/har-service/src/services/hooks/useDeletePackageMutation.d.ts +31 -0
  20. package/dist/har-service/src/services/hooks/useDeletePackageMutation.js +14 -0
  21. package/dist/har-service/src/services/hooks/useDeleteQuarantineFilePathMutation.js +1 -1
  22. package/dist/har-service/src/services/hooks/useDeleteRegistryMutation.js +1 -1
  23. package/dist/har-service/src/services/hooks/useDeleteRegistryV2Mutation.d.ts +31 -0
  24. package/dist/har-service/src/services/hooks/useDeleteRegistryV2Mutation.js +14 -0
  25. package/dist/har-service/src/services/hooks/useDeleteReplicationRuleMutation.js +1 -1
  26. package/dist/har-service/src/services/hooks/useDeleteSpaceLabelMutation.js +1 -1
  27. package/dist/har-service/src/services/hooks/useDeleteSpaceLabelValueMutation.js +1 -1
  28. package/dist/har-service/src/services/hooks/useDeleteVersionMutation.d.ts +31 -0
  29. package/dist/har-service/src/services/hooks/useDeleteVersionMutation.js +14 -0
  30. package/dist/har-service/src/services/hooks/useDeleteWebhookMutation.js +1 -1
  31. package/dist/har-service/src/services/hooks/useFindSpaceLabelQuery.js +1 -1
  32. package/dist/har-service/src/services/hooks/useGetAllArtifactVersionsQuery.js +1 -1
  33. package/dist/har-service/src/services/hooks/useGetAllArtifactsByRegistryQuery.js +1 -1
  34. package/dist/har-service/src/services/hooks/useGetAllHarnessArtifactsQuery.js +1 -1
  35. package/dist/har-service/src/services/hooks/useGetAllRegistriesQuery.js +1 -1
  36. package/dist/har-service/src/services/hooks/useGetArtifactDeploymentsQuery.js +1 -1
  37. package/dist/har-service/src/services/hooks/useGetArtifactDetailsQuery.js +1 -1
  38. package/dist/har-service/src/services/hooks/useGetArtifactFileQuery.js +1 -1
  39. package/dist/har-service/src/services/hooks/useGetArtifactFilesQuery.js +1 -1
  40. package/dist/har-service/src/services/hooks/useGetArtifactStatsForRegistryQuery.js +1 -1
  41. package/dist/har-service/src/services/hooks/useGetArtifactStatsForSpaceQuery.js +1 -1
  42. package/dist/har-service/src/services/hooks/useGetArtifactStatsQuery.js +1 -1
  43. package/dist/har-service/src/services/hooks/useGetArtifactSummaryQuery.js +1 -1
  44. package/dist/har-service/src/services/hooks/useGetArtifactVersionSummaryQuery.js +1 -1
  45. package/dist/har-service/src/services/hooks/useGetBulkDownloadRequestStatusQuery.d.ts +25 -0
  46. package/dist/har-service/src/services/hooks/useGetBulkDownloadRequestStatusQuery.js +14 -0
  47. package/dist/har-service/src/services/hooks/useGetClientSetupDetailsQuery.js +1 -1
  48. package/dist/har-service/src/services/hooks/useGetDockerArtifactDetailsQuery.js +1 -1
  49. package/dist/har-service/src/services/hooks/useGetDockerArtifactIntegrationDetailsQuery.js +1 -1
  50. package/dist/har-service/src/services/hooks/useGetDockerArtifactLayersQuery.js +1 -1
  51. package/dist/har-service/src/services/hooks/useGetDockerArtifactManifestQuery.js +1 -1
  52. package/dist/har-service/src/services/hooks/useGetDockerArtifactManifestsQuery.js +1 -1
  53. package/dist/har-service/src/services/hooks/useGetFileQuery.d.ts +28 -0
  54. package/dist/har-service/src/services/hooks/useGetFileQuery.js +14 -0
  55. package/dist/har-service/src/services/hooks/useGetHelmArtifactDetailsQuery.js +1 -1
  56. package/dist/har-service/src/services/hooks/useGetHelmArtifactManifestQuery.js +1 -1
  57. package/dist/har-service/src/services/hooks/useGetMetadataKeysQuery.d.ts +35 -0
  58. package/dist/har-service/src/services/hooks/useGetMetadataKeysQuery.js +14 -0
  59. package/dist/har-service/src/services/hooks/useGetMetadataQuery.d.ts +28 -0
  60. package/dist/har-service/src/services/hooks/useGetMetadataQuery.js +16 -0
  61. package/dist/har-service/src/services/hooks/useGetMetadataValuesQuery.d.ts +36 -0
  62. package/dist/har-service/src/services/hooks/useGetMetadataValuesQuery.js +14 -0
  63. package/dist/har-service/src/services/hooks/useGetMigrationLogsForImageQuery.js +1 -1
  64. package/dist/har-service/src/services/hooks/useGetOciArtifactTagsQuery.js +1 -1
  65. package/dist/har-service/src/services/hooks/useGetRegistryQuery.js +1 -1
  66. package/dist/har-service/src/services/hooks/useGetReplicationRuleQuery.js +1 -1
  67. package/dist/har-service/src/services/hooks/useGetStorageDetailsQuery.js +1 -1
  68. package/dist/har-service/src/services/hooks/useGetWebhookExecutionQuery.d.ts +2 -1
  69. package/dist/har-service/src/services/hooks/useGetWebhookExecutionQuery.js +1 -1
  70. package/dist/har-service/src/services/hooks/useGetWebhookQuery.d.ts +2 -1
  71. package/dist/har-service/src/services/hooks/useGetWebhookQuery.js +1 -1
  72. package/dist/har-service/src/services/hooks/useListArtifactLabelsQuery.js +1 -1
  73. package/dist/har-service/src/services/hooks/useListMigrationImagesQuery.js +1 -1
  74. package/dist/har-service/src/services/hooks/useListPackagesQuery.d.ts +48 -0
  75. package/dist/har-service/src/services/hooks/useListPackagesQuery.js +14 -0
  76. package/dist/har-service/src/services/hooks/useListRegistriesQuery.d.ts +48 -0
  77. package/dist/har-service/src/services/hooks/useListRegistriesQuery.js +14 -0
  78. package/dist/har-service/src/services/hooks/useListReplicationRulesQuery.js +1 -1
  79. package/dist/har-service/src/services/hooks/useListSpaceLabelValuesQuery.js +1 -1
  80. package/dist/har-service/src/services/hooks/useListSpaceLabelsQuery.js +1 -1
  81. package/dist/har-service/src/services/hooks/useListVersionsQuery.d.ts +48 -0
  82. package/dist/har-service/src/services/hooks/useListVersionsQuery.js +14 -0
  83. package/dist/har-service/src/services/hooks/useListWebhookExecutionsQuery.d.ts +2 -1
  84. package/dist/har-service/src/services/hooks/useListWebhookExecutionsQuery.js +1 -1
  85. package/dist/har-service/src/services/hooks/useListWebhooksQuery.js +1 -1
  86. package/dist/har-service/src/services/hooks/useModifyRegistryMutation.js +1 -1
  87. package/dist/har-service/src/services/hooks/useQuarantineFilePathMutation.js +1 -1
  88. package/dist/har-service/src/services/hooks/useReTriggerWebhookExecutionQuery.d.ts +2 -1
  89. package/dist/har-service/src/services/hooks/useReTriggerWebhookExecutionQuery.js +1 -1
  90. package/dist/har-service/src/services/hooks/useRedirectHarnessArtifactQuery.js +1 -1
  91. package/dist/har-service/src/services/hooks/useRestorePackageMutation.d.ts +30 -0
  92. package/dist/har-service/src/services/hooks/useRestorePackageMutation.js +14 -0
  93. package/dist/har-service/src/services/hooks/useRestoreRegistryMutation.d.ts +30 -0
  94. package/dist/har-service/src/services/hooks/useRestoreRegistryMutation.js +14 -0
  95. package/dist/har-service/src/services/hooks/useRestoreVersionMutation.d.ts +30 -0
  96. package/dist/har-service/src/services/hooks/useRestoreVersionMutation.js +14 -0
  97. package/dist/har-service/src/services/hooks/useSaveMetadataMutation.d.ts +28 -0
  98. package/dist/har-service/src/services/hooks/useSaveMetadataMutation.js +17 -0
  99. package/dist/har-service/src/services/hooks/useSaveSpaceLabelMutation.js +1 -1
  100. package/dist/har-service/src/services/hooks/useSearchFilesQuery.d.ts +36 -0
  101. package/dist/har-service/src/services/hooks/useSearchFilesQuery.js +14 -0
  102. package/dist/har-service/src/services/hooks/useStartMigrationMutation.js +1 -1
  103. package/dist/har-service/src/services/hooks/useStopMigrationMutation.js +1 -1
  104. package/dist/har-service/src/services/hooks/useUpdateArtifactLabelsMutation.js +1 -1
  105. package/dist/har-service/src/services/hooks/useUpdateMetadataMutation.d.ts +29 -0
  106. package/dist/har-service/src/services/hooks/useUpdateMetadataMutation.js +18 -0
  107. package/dist/har-service/src/services/hooks/useUpdateReplicationRuleMutation.js +1 -1
  108. package/dist/har-service/src/services/hooks/useUpdateSpaceLabelMutation.js +1 -1
  109. package/dist/har-service/src/services/hooks/useUpdateSpaceLabelValueMutation.js +1 -1
  110. package/dist/har-service/src/services/hooks/useUpdateWebhookMutation.d.ts +2 -1
  111. package/dist/har-service/src/services/hooks/useUpdateWebhookMutation.js +1 -1
  112. package/dist/har-service/src/services/index.d.ts +74 -0
  113. package/dist/har-service/src/services/index.js +22 -0
  114. package/dist/har-service/src/services/requestBodies/AddTagsRequestRequestBody.d.ts +2 -0
  115. package/dist/har-service/src/services/requestBodies/AddTagsRequestRequestBody.js +1 -0
  116. package/dist/har-service/src/services/requestBodies/BulkDownloadFilesRequestRequestBody.d.ts +2 -0
  117. package/dist/har-service/src/services/requestBodies/BulkDownloadFilesRequestRequestBody.js +1 -0
  118. package/dist/har-service/src/services/requestBodies/MetadataRequestRequestBody.d.ts +2 -0
  119. package/dist/har-service/src/services/requestBodies/MetadataRequestRequestBody.js +1 -0
  120. package/dist/har-service/src/services/responses/AddTagsResponseResponse.d.ts +4 -0
  121. package/dist/har-service/src/services/responses/AddTagsResponseResponse.js +1 -0
  122. package/dist/har-service/src/services/responses/CopyResponseResponse.d.ts +4 -0
  123. package/dist/har-service/src/services/responses/CopyResponseResponse.js +1 -0
  124. package/dist/har-service/src/services/responses/CreateBulkDownloadRequestResponseResponse.d.ts +6 -0
  125. package/dist/har-service/src/services/responses/CreateBulkDownloadRequestResponseResponse.js +1 -0
  126. package/dist/har-service/src/services/responses/DownloadFileResponseResponse.d.ts +4 -0
  127. package/dist/har-service/src/services/responses/DownloadFileResponseResponse.js +4 -0
  128. package/dist/har-service/src/services/responses/GetBulkDownloadRequestStatusResponseResponse.d.ts +6 -0
  129. package/dist/har-service/src/services/responses/GetBulkDownloadRequestStatusResponseResponse.js +1 -0
  130. package/dist/har-service/src/services/responses/ListFilesResponseResponse.d.ts +30 -0
  131. package/dist/har-service/src/services/responses/ListFilesResponseResponse.js +1 -0
  132. package/dist/har-service/src/services/responses/ListPackageResponseResponse.d.ts +6 -0
  133. package/dist/har-service/src/services/responses/ListPackageResponseResponse.js +1 -0
  134. package/dist/har-service/src/services/responses/ListVersionResponseResponse.d.ts +6 -0
  135. package/dist/har-service/src/services/responses/ListVersionResponseResponse.js +1 -0
  136. package/dist/har-service/src/services/responses/MetadataKeysResponseResponse.d.ts +5 -0
  137. package/dist/har-service/src/services/responses/MetadataKeysResponseResponse.js +1 -0
  138. package/dist/har-service/src/services/responses/MetadataResponseResponse.d.ts +6 -0
  139. package/dist/har-service/src/services/responses/MetadataResponseResponse.js +1 -0
  140. package/dist/har-service/src/services/responses/MetadataValuesResponseResponse.d.ts +5 -0
  141. package/dist/har-service/src/services/responses/MetadataValuesResponseResponse.js +1 -0
  142. package/dist/har-service/src/services/schemas/AddTags.d.ts +5 -0
  143. package/dist/har-service/src/services/schemas/AddTags.js +4 -0
  144. package/dist/har-service/src/services/schemas/ArtifactDetail.d.ts +8 -0
  145. package/dist/har-service/src/services/schemas/ArtifactMetadata.d.ts +5 -4
  146. package/dist/har-service/src/services/schemas/ArtifactSummary.d.ts +3 -4
  147. package/dist/har-service/src/services/schemas/ArtifactVersionMetadata.d.ts +8 -0
  148. package/dist/har-service/src/services/schemas/ArtifactVersionSummary.d.ts +3 -4
  149. package/dist/har-service/src/services/schemas/BulkDownloadFilesRequestInput.d.ts +22 -0
  150. package/dist/har-service/src/services/schemas/BulkDownloadFilesRequestInput.js +4 -0
  151. package/dist/har-service/src/services/schemas/BulkDownloadRequestStatus.d.ts +4 -0
  152. package/dist/har-service/src/services/schemas/BulkDownloadRequestStatus.js +4 -0
  153. package/dist/har-service/src/services/schemas/BulkDownloadRequestStatusOutput.d.ts +8 -0
  154. package/dist/har-service/src/services/schemas/BulkDownloadRequestStatusOutput.js +1 -0
  155. package/dist/har-service/src/services/schemas/CreateBulkDownloadRequestResponseOutput.d.ts +7 -0
  156. package/dist/har-service/src/services/schemas/CreateBulkDownloadRequestResponseOutput.js +4 -0
  157. package/dist/har-service/src/services/schemas/Error.d.ts +10 -3
  158. package/dist/har-service/src/services/schemas/ExtraHeader.d.ts +1 -0
  159. package/dist/har-service/src/services/schemas/FileMetadata.d.ts +8 -0
  160. package/dist/har-service/src/services/schemas/FileMetadata.js +4 -0
  161. package/dist/har-service/src/services/schemas/ListPackage.d.ts +35 -0
  162. package/dist/har-service/src/services/schemas/ListPackage.js +1 -0
  163. package/dist/har-service/src/services/schemas/ListRegistry.d.ts +2 -0
  164. package/dist/har-service/src/services/schemas/ListVersion.d.ts +35 -0
  165. package/dist/har-service/src/services/schemas/ListVersion.js +1 -0
  166. package/dist/har-service/src/services/schemas/Meta.d.ts +17 -0
  167. package/dist/har-service/src/services/schemas/Meta.js +4 -0
  168. package/dist/har-service/src/services/schemas/MetadataInput.d.ts +45 -0
  169. package/dist/har-service/src/services/schemas/MetadataInput.js +1 -0
  170. package/dist/har-service/src/services/schemas/MetadataItemInput.d.ts +15 -0
  171. package/dist/har-service/src/services/schemas/MetadataItemInput.js +4 -0
  172. package/dist/har-service/src/services/schemas/MetadataItemOutput.d.ts +22 -0
  173. package/dist/har-service/src/services/schemas/MetadataItemOutput.js +1 -0
  174. package/dist/har-service/src/services/schemas/MetadataOutput.d.ts +11 -0
  175. package/dist/har-service/src/services/schemas/MetadataOutput.js +1 -0
  176. package/dist/har-service/src/services/schemas/MetadataType.d.ts +5 -0
  177. package/dist/har-service/src/services/schemas/MetadataType.js +4 -0
  178. package/dist/har-service/src/services/schemas/PackageMetadata.d.ts +30 -0
  179. package/dist/har-service/src/services/schemas/PackageMetadata.js +1 -0
  180. package/dist/har-service/src/services/schemas/Registry.d.ts +3 -4
  181. package/dist/har-service/src/services/schemas/RegistryArtifactMetadata.d.ts +3 -5
  182. package/dist/har-service/src/services/schemas/RegistryMetadata.d.ts +2 -4
  183. package/dist/har-service/src/services/schemas/RegistryRequest.d.ts +1 -1
  184. package/dist/har-service/src/services/schemas/Status.d.ts +1 -1
  185. package/dist/har-service/src/services/schemas/VersionMetadata.d.ts +40 -0
  186. package/dist/har-service/src/services/schemas/VersionMetadata.js +1 -0
  187. package/package.json +1 -1
@@ -0,0 +1,28 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { AddTagsResponseResponse } from '../responses/AddTagsResponseResponse';
3
+ import type { BadRequestResponse } from '../responses/BadRequestResponse';
4
+ import type { UnauthenticatedResponse } from '../responses/UnauthenticatedResponse';
5
+ import type { UnauthorizedResponse } from '../responses/UnauthorizedResponse';
6
+ import type { NotFoundResponse } from '../responses/NotFoundResponse';
7
+ import type { InternalServerErrorResponse } from '../responses/InternalServerErrorResponse';
8
+ import type { AddTagsRequestRequestBody } from '../requestBodies/AddTagsRequestRequestBody';
9
+ import type { ResponseWithPagination } from '../helpers';
10
+ import { FetcherOptions } from '../../../../fetcher/index.js';
11
+ export interface AddOciArtifactTagsMutationQueryParams {
12
+ account_identifier: string;
13
+ org_identifier?: string;
14
+ project_identifier?: string;
15
+ registry_identifier: string;
16
+ }
17
+ export type AddOciArtifactTagsRequestBody = AddTagsRequestRequestBody;
18
+ export type AddOciArtifactTagsOkResponse = ResponseWithPagination<AddTagsResponseResponse>;
19
+ export type AddOciArtifactTagsErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
20
+ export interface AddOciArtifactTagsProps extends Omit<FetcherOptions<AddOciArtifactTagsMutationQueryParams, AddOciArtifactTagsRequestBody>, 'url'> {
21
+ queryParams: AddOciArtifactTagsMutationQueryParams;
22
+ body: AddOciArtifactTagsRequestBody;
23
+ }
24
+ export declare function addOciArtifactTags(props: AddOciArtifactTagsProps): Promise<AddOciArtifactTagsOkResponse>;
25
+ /**
26
+ * Add OCI Artifact Tags.
27
+ */
28
+ export declare function useAddOciArtifactTagsMutation(options?: Omit<UseMutationOptions<AddOciArtifactTagsOkResponse, AddOciArtifactTagsErrorResponse, AddOciArtifactTagsProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<AddOciArtifactTagsOkResponse, import("..").Error, AddOciArtifactTagsProps, unknown>;
@@ -0,0 +1,14 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ import { useMutation } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../fetcher/index.js';
6
+ export function addOciArtifactTags(props) {
7
+ return fetcher(Object.assign({ url: `/v2/oci/tags`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Add OCI Artifact Tags.
11
+ */
12
+ export function useAddOciArtifactTagsMutation(options) {
13
+ return useMutation((mutateProps) => addOciArtifactTags(mutateProps), options);
14
+ }
@@ -0,0 +1,31 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { CopyResponseResponse } from '../responses/CopyResponseResponse';
3
+ import type { BadRequestResponse } from '../responses/BadRequestResponse';
4
+ import type { UnauthenticatedResponse } from '../responses/UnauthenticatedResponse';
5
+ import type { UnauthorizedResponse } from '../responses/UnauthorizedResponse';
6
+ import type { NotFoundResponse } from '../responses/NotFoundResponse';
7
+ import type { InternalServerErrorResponse } from '../responses/InternalServerErrorResponse';
8
+ import type { ResponseWithPagination } from '../helpers';
9
+ import { FetcherOptions } from '../../../../fetcher/index.js';
10
+ export interface CopyMutationQueryParams {
11
+ account_identifier: string;
12
+ src_org_identifier?: string;
13
+ src_project_identifier?: string;
14
+ src_registry_identifier: string;
15
+ src_artifact?: string;
16
+ src_version?: string;
17
+ target_org_identifier?: string;
18
+ target_project_identifier?: string;
19
+ target_registry_identifier: string;
20
+ artifact_type?: 'dataset' | 'model';
21
+ }
22
+ export type CopyOkResponse = ResponseWithPagination<CopyResponseResponse>;
23
+ export type CopyErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
24
+ export interface CopyProps extends Omit<FetcherOptions<CopyMutationQueryParams, unknown>, 'url'> {
25
+ queryParams: CopyMutationQueryParams;
26
+ }
27
+ export declare function copy(props: CopyProps): Promise<CopyOkResponse>;
28
+ /**
29
+ * Copy Artifact
30
+ */
31
+ export declare function useCopyMutation(options?: Omit<UseMutationOptions<CopyOkResponse, CopyErrorResponse, CopyProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CopyOkResponse, import("..").Error, CopyProps, unknown>;
@@ -0,0 +1,14 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ import { useMutation } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../fetcher/index.js';
6
+ export function copy(props) {
7
+ return fetcher(Object.assign({ url: `/v2/copy`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Copy Artifact
11
+ */
12
+ export function useCopyMutation(options) {
13
+ return useMutation((mutateProps) => copy(mutateProps), options);
14
+ }
@@ -0,0 +1,25 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { CreateBulkDownloadRequestResponseResponse } from '../responses/CreateBulkDownloadRequestResponseResponse';
3
+ import type { BadRequestResponse } from '../responses/BadRequestResponse';
4
+ import type { UnauthenticatedResponse } from '../responses/UnauthenticatedResponse';
5
+ import type { UnauthorizedResponse } from '../responses/UnauthorizedResponse';
6
+ import type { NotFoundResponse } from '../responses/NotFoundResponse';
7
+ import type { InternalServerErrorResponse } from '../responses/InternalServerErrorResponse';
8
+ import type { BulkDownloadFilesRequestRequestBody } from '../requestBodies/BulkDownloadFilesRequestRequestBody';
9
+ import type { ResponseWithPagination } from '../helpers';
10
+ import { FetcherOptions } from '../../../../fetcher/index.js';
11
+ export interface CreateBulkDownloadRequestMutationQueryParams {
12
+ account_identifier: string;
13
+ }
14
+ export type CreateBulkDownloadRequestRequestBody = BulkDownloadFilesRequestRequestBody;
15
+ export type CreateBulkDownloadRequestOkResponse = ResponseWithPagination<CreateBulkDownloadRequestResponseResponse>;
16
+ export type CreateBulkDownloadRequestErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
17
+ export interface CreateBulkDownloadRequestProps extends Omit<FetcherOptions<CreateBulkDownloadRequestMutationQueryParams, CreateBulkDownloadRequestRequestBody>, 'url'> {
18
+ queryParams: CreateBulkDownloadRequestMutationQueryParams;
19
+ body: CreateBulkDownloadRequestRequestBody;
20
+ }
21
+ export declare function createBulkDownloadRequest(props: CreateBulkDownloadRequestProps): Promise<CreateBulkDownloadRequestOkResponse>;
22
+ /**
23
+ * Create a bulk download request
24
+ */
25
+ export declare function useCreateBulkDownloadRequestMutation(options?: Omit<UseMutationOptions<CreateBulkDownloadRequestOkResponse, CreateBulkDownloadRequestErrorResponse, CreateBulkDownloadRequestProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CreateBulkDownloadRequestOkResponse, import("..").Error, CreateBulkDownloadRequestProps, unknown>;
@@ -0,0 +1,14 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ import { useMutation } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../fetcher/index.js';
6
+ export function createBulkDownloadRequest(props) {
7
+ return fetcher(Object.assign({ url: `/v2/files/bulk-download`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Create a bulk download request
11
+ */
12
+ export function useCreateBulkDownloadRequestMutation(options) {
13
+ return useMutation((mutateProps) => createBulkDownloadRequest(mutateProps), options);
14
+ }
@@ -0,0 +1,23 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { CreateBulkDownloadRequestResponseResponse } from '../responses/CreateBulkDownloadRequestResponseResponse';
3
+ import type { BadRequestResponse } from '../responses/BadRequestResponse';
4
+ import type { UnauthenticatedResponse } from '../responses/UnauthenticatedResponse';
5
+ import type { UnauthorizedResponse } from '../responses/UnauthorizedResponse';
6
+ import type { NotFoundResponse } from '../responses/NotFoundResponse';
7
+ import type { InternalServerErrorResponse } from '../responses/InternalServerErrorResponse';
8
+ import type { ResponseWithPagination } from '../helpers';
9
+ import { FetcherOptions } from '../../../../fetcher/index.js';
10
+ export interface CreateBulkDownloadRequestV1QueryPathParams {
11
+ registry_ref: string;
12
+ artifact: string;
13
+ version: string;
14
+ }
15
+ export type CreateBulkDownloadRequestV1OkResponse = ResponseWithPagination<CreateBulkDownloadRequestResponseResponse>;
16
+ export type CreateBulkDownloadRequestV1ErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
17
+ export interface CreateBulkDownloadRequestV1Props extends CreateBulkDownloadRequestV1QueryPathParams, Omit<FetcherOptions<unknown, unknown>, 'url'> {
18
+ }
19
+ export declare function createBulkDownloadRequestV1(props: CreateBulkDownloadRequestV1Props): Promise<CreateBulkDownloadRequestV1OkResponse>;
20
+ /**
21
+ * Create a bulk download request
22
+ */
23
+ export declare function useCreateBulkDownloadRequestV1Query(props: CreateBulkDownloadRequestV1Props, options?: Omit<UseQueryOptions<CreateBulkDownloadRequestV1OkResponse, CreateBulkDownloadRequestV1ErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<CreateBulkDownloadRequestV1OkResponse, import("..").Error>;
@@ -0,0 +1,14 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ import { useQuery } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../fetcher/index.js';
6
+ export function createBulkDownloadRequestV1(props) {
7
+ return fetcher(Object.assign({ url: `/v1/registry/${props.registry_ref}/artifact/${props.artifact}/version/${props.version}/bulk-download`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Create a bulk download request
11
+ */
12
+ export function useCreateBulkDownloadRequestV1Query(props, options) {
13
+ return useQuery(['CreateBulkDownloadRequestV1', props.registry_ref, props.artifact, props.version], ({ signal }) => createBulkDownloadRequestV1(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -8,7 +8,7 @@ import type { RegistryRequestRequestBody } from '../requestBodies/RegistryReques
8
8
  import type { ResponseWithPagination } from '../helpers';
9
9
  import { FetcherOptions } from '../../../../fetcher/index.js';
10
10
  export interface CreateRegistryMutationQueryParams {
11
- space_ref?: string;
11
+ space_ref: string;
12
12
  }
13
13
  export type CreateRegistryRequestBody = RegistryRequestRequestBody;
14
14
  export type CreateRegistryOkResponse = ResponseWithPagination<RegistryResponseResponse>;
@@ -4,7 +4,7 @@
4
4
  import { useMutation } from '@tanstack/react-query';
5
5
  import { fetcher } from '../../../../fetcher/index.js';
6
6
  export function createRegistry(props) {
7
- return fetcher(Object.assign({ url: `/registry`, method: 'POST' }, props));
7
+ return fetcher(Object.assign({ url: `/v1/registry`, method: 'POST' }, props));
8
8
  }
9
9
  /**
10
10
  * Create a Registry.
@@ -4,7 +4,7 @@
4
4
  import { useMutation } from '@tanstack/react-query';
5
5
  import { fetcher } from '../../../../fetcher/index.js';
6
6
  export function createReplicationRule(props) {
7
- return fetcher(Object.assign({ url: `/replication/rules`, method: 'POST' }, props));
7
+ return fetcher(Object.assign({ url: `/v1/replication/rules`, method: 'POST' }, props));
8
8
  }
9
9
  /**
10
10
  * Create a replication rule
@@ -4,7 +4,7 @@
4
4
  import { useMutation } from '@tanstack/react-query';
5
5
  import { fetcher } from '../../../../fetcher/index.js';
6
6
  export function createWebhook(props) {
7
- return fetcher(Object.assign({ url: `/registry/${props.registry_ref}/webhooks`, method: 'POST' }, props));
7
+ return fetcher(Object.assign({ url: `/v1/registry/${props.registry_ref}/webhooks`, method: 'POST' }, props));
8
8
  }
9
9
  /**
10
10
  * Returns Webhook Details
@@ -4,7 +4,7 @@
4
4
  import { useMutation } from '@tanstack/react-query';
5
5
  import { fetcher } from '../../../../fetcher/index.js';
6
6
  export function defineSpaceLabel(props) {
7
- return fetcher(Object.assign({ url: `/spaces/${props.space_ref}/labels`, method: 'POST' }, props));
7
+ return fetcher(Object.assign({ url: `/v1/spaces/${props.space_ref}/labels`, method: 'POST' }, props));
8
8
  }
9
9
  export function useDefineSpaceLabelMutation(options) {
10
10
  return useMutation((mutateProps) => defineSpaceLabel(mutateProps), options);
@@ -4,7 +4,7 @@
4
4
  import { useMutation } from '@tanstack/react-query';
5
5
  import { fetcher } from '../../../../fetcher/index.js';
6
6
  export function defineSpaceLabelValue(props) {
7
- return fetcher(Object.assign({ url: `/spaces/${props.space_ref}/labels/${props.key}/values`, method: 'POST' }, props));
7
+ return fetcher(Object.assign({ url: `/v1/spaces/${props.space_ref}/labels/${props.key}/values`, method: 'POST' }, props));
8
8
  }
9
9
  export function useDefineSpaceLabelValueMutation(options) {
10
10
  return useMutation((mutateProps) => defineSpaceLabelValue(mutateProps), options);
@@ -4,7 +4,7 @@
4
4
  import { useMutation } from '@tanstack/react-query';
5
5
  import { fetcher } from '../../../../fetcher/index.js';
6
6
  export function deleteArtifact(props) {
7
- return fetcher(Object.assign({ url: `/registry/${props.registry_ref}/artifact/${props.artifact}`, method: 'DELETE' }, props));
7
+ return fetcher(Object.assign({ url: `/v1/registry/${props.registry_ref}/artifact/${props.artifact}`, method: 'DELETE' }, props));
8
8
  }
9
9
  /**
10
10
  * Delete Artifact.
@@ -4,7 +4,7 @@
4
4
  import { useMutation } from '@tanstack/react-query';
5
5
  import { fetcher } from '../../../../fetcher/index.js';
6
6
  export function deleteArtifactVersion(props) {
7
- return fetcher(Object.assign({ url: `/registry/${props.registry_ref}/artifact/${props.artifact}/version/${props.version}`, method: 'DELETE' }, props));
7
+ return fetcher(Object.assign({ url: `/v1/registry/${props.registry_ref}/artifact/${props.artifact}/version/${props.version}`, method: 'DELETE' }, props));
8
8
  }
9
9
  /**
10
10
  * Delete Artifact Version.
@@ -0,0 +1,25 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { SuccessResponse } from '../responses/SuccessResponse';
3
+ import type { BadRequestResponse } from '../responses/BadRequestResponse';
4
+ import type { UnauthenticatedResponse } from '../responses/UnauthenticatedResponse';
5
+ import type { UnauthorizedResponse } from '../responses/UnauthorizedResponse';
6
+ import type { NotFoundResponse } from '../responses/NotFoundResponse';
7
+ import type { InternalServerErrorResponse } from '../responses/InternalServerErrorResponse';
8
+ import type { ResponseWithPagination } from '../helpers';
9
+ import { FetcherOptions } from '../../../../fetcher/index.js';
10
+ export interface DeleteMetadataMutationQueryParams {
11
+ account_identifier: string;
12
+ }
13
+ export type DeleteMetadataOkResponse = ResponseWithPagination<SuccessResponse>;
14
+ export type DeleteMetadataErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
15
+ export interface DeleteMetadataProps extends Omit<FetcherOptions<DeleteMetadataMutationQueryParams, unknown>, 'url'> {
16
+ queryParams: DeleteMetadataMutationQueryParams;
17
+ }
18
+ export declare function deleteMetadata(props: DeleteMetadataProps): Promise<DeleteMetadataOkResponse>;
19
+ /**
20
+ * Delete metadata key-value pairs for a specific entity.
21
+ * This endpoint allows you to delete existing metadata for packages, versions, or registry-level entities.
22
+ * The operation supports deleting existing metadata in a single request.
23
+ *
24
+ */
25
+ export declare function useDeleteMetadataMutation(options?: Omit<UseMutationOptions<DeleteMetadataOkResponse, DeleteMetadataErrorResponse, DeleteMetadataProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<DeleteMetadataOkResponse, import("..").Error, DeleteMetadataProps, 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 deleteMetadata(props) {
7
+ return fetcher(Object.assign({ url: `/v2/metadata`, method: 'DELETE' }, props));
8
+ }
9
+ /**
10
+ * Delete metadata key-value pairs for a specific entity.
11
+ * This endpoint allows you to delete existing metadata for packages, versions, or registry-level entities.
12
+ * The operation supports deleting existing metadata in a single request.
13
+ *
14
+ */
15
+ export function useDeleteMetadataMutation(options) {
16
+ return useMutation((mutateProps) => deleteMetadata(mutateProps), options);
17
+ }
@@ -0,0 +1,31 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { SuccessResponse } from '../responses/SuccessResponse';
3
+ import type { BadRequestResponse } from '../responses/BadRequestResponse';
4
+ import type { UnauthenticatedResponse } from '../responses/UnauthenticatedResponse';
5
+ import type { UnauthorizedResponse } from '../responses/UnauthorizedResponse';
6
+ import type { NotFoundResponse } from '../responses/NotFoundResponse';
7
+ import type { InternalServerErrorResponse } from '../responses/InternalServerErrorResponse';
8
+ import type { ResponseWithPagination } from '../helpers';
9
+ import { FetcherOptions } from '../../../../fetcher/index.js';
10
+ export interface DeletePackageMutationPathParams {
11
+ /**
12
+ * @format uuid
13
+ */
14
+ uuid: string;
15
+ }
16
+ export interface DeletePackageMutationQueryParams {
17
+ account_identifier: string;
18
+ org_identifier?: string;
19
+ project_identifier?: string;
20
+ force?: boolean;
21
+ }
22
+ export type DeletePackageOkResponse = ResponseWithPagination<SuccessResponse>;
23
+ export type DeletePackageErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
24
+ export interface DeletePackageProps extends DeletePackageMutationPathParams, Omit<FetcherOptions<DeletePackageMutationQueryParams, unknown>, 'url'> {
25
+ queryParams: DeletePackageMutationQueryParams;
26
+ }
27
+ export declare function deletePackage(props: DeletePackageProps): Promise<DeletePackageOkResponse>;
28
+ /**
29
+ * Delete a package/image (soft or hard delete based on deleteType parameter)
30
+ */
31
+ export declare function useDeletePackageMutation(options?: Omit<UseMutationOptions<DeletePackageOkResponse, DeletePackageErrorResponse, DeletePackageProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<DeletePackageOkResponse, import("..").Error, DeletePackageProps, unknown>;
@@ -0,0 +1,14 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ import { useMutation } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../fetcher/index.js';
6
+ export function deletePackage(props) {
7
+ return fetcher(Object.assign({ url: `/v2/packages/${props.uuid}`, method: 'DELETE' }, props));
8
+ }
9
+ /**
10
+ * Delete a package/image (soft or hard delete based on deleteType parameter)
11
+ */
12
+ export function useDeletePackageMutation(options) {
13
+ return useMutation((mutateProps) => deletePackage(mutateProps), options);
14
+ }
@@ -4,7 +4,7 @@
4
4
  import { useMutation } from '@tanstack/react-query';
5
5
  import { fetcher } from '../../../../fetcher/index.js';
6
6
  export function deleteQuarantineFilePath(props) {
7
- return fetcher(Object.assign({ url: `/registry/${props.registry_ref}/quarantine`, method: 'DELETE' }, props));
7
+ return fetcher(Object.assign({ url: `/v1/registry/${props.registry_ref}/quarantine`, method: 'DELETE' }, props));
8
8
  }
9
9
  /**
10
10
  * delete Quarantine file path
@@ -4,7 +4,7 @@
4
4
  import { useMutation } from '@tanstack/react-query';
5
5
  import { fetcher } from '../../../../fetcher/index.js';
6
6
  export function deleteRegistry(props) {
7
- return fetcher(Object.assign({ url: `/registry/${props.registry_ref}`, method: 'DELETE' }, props));
7
+ return fetcher(Object.assign({ url: `/v1/registry/${props.registry_ref}`, method: 'DELETE' }, props));
8
8
  }
9
9
  /**
10
10
  * Delete a Registry in the account for the given key
@@ -0,0 +1,31 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { SuccessResponse } from '../responses/SuccessResponse';
3
+ import type { BadRequestResponse } from '../responses/BadRequestResponse';
4
+ import type { UnauthenticatedResponse } from '../responses/UnauthenticatedResponse';
5
+ import type { UnauthorizedResponse } from '../responses/UnauthorizedResponse';
6
+ import type { NotFoundResponse } from '../responses/NotFoundResponse';
7
+ import type { InternalServerErrorResponse } from '../responses/InternalServerErrorResponse';
8
+ import type { ResponseWithPagination } from '../helpers';
9
+ import { FetcherOptions } from '../../../../fetcher/index.js';
10
+ export interface DeleteRegistryV2MutationPathParams {
11
+ /**
12
+ * @format uuid
13
+ */
14
+ uuid: string;
15
+ }
16
+ export interface DeleteRegistryV2MutationQueryParams {
17
+ account_identifier: string;
18
+ org_identifier?: string;
19
+ project_identifier?: string;
20
+ force?: boolean;
21
+ }
22
+ export type DeleteRegistryV2OkResponse = ResponseWithPagination<SuccessResponse>;
23
+ export type DeleteRegistryV2ErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
24
+ export interface DeleteRegistryV2Props extends DeleteRegistryV2MutationPathParams, Omit<FetcherOptions<DeleteRegistryV2MutationQueryParams, unknown>, 'url'> {
25
+ queryParams: DeleteRegistryV2MutationQueryParams;
26
+ }
27
+ export declare function deleteRegistryV2(props: DeleteRegistryV2Props): Promise<DeleteRegistryV2OkResponse>;
28
+ /**
29
+ * Delete a registry (soft or hard delete based on deleteType parameter)
30
+ */
31
+ export declare function useDeleteRegistryV2Mutation(options?: Omit<UseMutationOptions<DeleteRegistryV2OkResponse, DeleteRegistryV2ErrorResponse, DeleteRegistryV2Props>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<DeleteRegistryV2OkResponse, import("..").Error, DeleteRegistryV2Props, unknown>;
@@ -0,0 +1,14 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ import { useMutation } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../fetcher/index.js';
6
+ export function deleteRegistryV2(props) {
7
+ return fetcher(Object.assign({ url: `/v2/registries/${props.uuid}`, method: 'DELETE' }, props));
8
+ }
9
+ /**
10
+ * Delete a registry (soft or hard delete based on deleteType parameter)
11
+ */
12
+ export function useDeleteRegistryV2Mutation(options) {
13
+ return useMutation((mutateProps) => deleteRegistryV2(mutateProps), options);
14
+ }
@@ -4,7 +4,7 @@
4
4
  import { useMutation } from '@tanstack/react-query';
5
5
  import { fetcher } from '../../../../fetcher/index.js';
6
6
  export function deleteReplicationRule(props) {
7
- return fetcher(Object.assign({ url: `/replication/rules/${props.id}`, method: 'DELETE' }, props));
7
+ return fetcher(Object.assign({ url: `/v1/replication/rules/${props.id}`, method: 'DELETE' }, props));
8
8
  }
9
9
  /**
10
10
  * Delete a replication rule
@@ -4,7 +4,7 @@
4
4
  import { useMutation } from '@tanstack/react-query';
5
5
  import { fetcher } from '../../../../fetcher/index.js';
6
6
  export function deleteSpaceLabel(props) {
7
- return fetcher(Object.assign({ url: `/spaces/${props.space_ref}/labels/${props.key}`, method: 'DELETE' }, props));
7
+ return fetcher(Object.assign({ url: `/v1/spaces/${props.space_ref}/labels/${props.key}`, method: 'DELETE' }, props));
8
8
  }
9
9
  export function useDeleteSpaceLabelMutation(options) {
10
10
  return useMutation((mutateProps) => deleteSpaceLabel(mutateProps), options);
@@ -4,7 +4,7 @@
4
4
  import { useMutation } from '@tanstack/react-query';
5
5
  import { fetcher } from '../../../../fetcher/index.js';
6
6
  export function deleteSpaceLabelValue(props) {
7
- return fetcher(Object.assign({ url: `/spaces/${props.space_ref}/labels/${props.key}/values/${props.value}`, method: 'DELETE' }, props));
7
+ return fetcher(Object.assign({ url: `/v1/spaces/${props.space_ref}/labels/${props.key}/values/${props.value}`, method: 'DELETE' }, props));
8
8
  }
9
9
  export function useDeleteSpaceLabelValueMutation(options) {
10
10
  return useMutation((mutateProps) => deleteSpaceLabelValue(mutateProps), options);
@@ -0,0 +1,31 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { SuccessResponse } from '../responses/SuccessResponse';
3
+ import type { BadRequestResponse } from '../responses/BadRequestResponse';
4
+ import type { UnauthenticatedResponse } from '../responses/UnauthenticatedResponse';
5
+ import type { UnauthorizedResponse } from '../responses/UnauthorizedResponse';
6
+ import type { NotFoundResponse } from '../responses/NotFoundResponse';
7
+ import type { InternalServerErrorResponse } from '../responses/InternalServerErrorResponse';
8
+ import type { ResponseWithPagination } from '../helpers';
9
+ import { FetcherOptions } from '../../../../fetcher/index.js';
10
+ export interface DeleteVersionMutationPathParams {
11
+ /**
12
+ * @format uuid
13
+ */
14
+ uuid: string;
15
+ }
16
+ export interface DeleteVersionMutationQueryParams {
17
+ account_identifier: string;
18
+ org_identifier?: string;
19
+ project_identifier?: string;
20
+ force?: boolean;
21
+ }
22
+ export type DeleteVersionOkResponse = ResponseWithPagination<SuccessResponse>;
23
+ export type DeleteVersionErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
24
+ export interface DeleteVersionProps extends DeleteVersionMutationPathParams, Omit<FetcherOptions<DeleteVersionMutationQueryParams, unknown>, 'url'> {
25
+ queryParams: DeleteVersionMutationQueryParams;
26
+ }
27
+ export declare function deleteVersion(props: DeleteVersionProps): Promise<DeleteVersionOkResponse>;
28
+ /**
29
+ * Delete a version (soft or hard delete based on deleteType parameter)
30
+ */
31
+ export declare function useDeleteVersionMutation(options?: Omit<UseMutationOptions<DeleteVersionOkResponse, DeleteVersionErrorResponse, DeleteVersionProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<DeleteVersionOkResponse, import("..").Error, DeleteVersionProps, unknown>;
@@ -0,0 +1,14 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ import { useMutation } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../fetcher/index.js';
6
+ export function deleteVersion(props) {
7
+ return fetcher(Object.assign({ url: `/v2/versions/${props.uuid}`, method: 'DELETE' }, props));
8
+ }
9
+ /**
10
+ * Delete a version (soft or hard delete based on deleteType parameter)
11
+ */
12
+ export function useDeleteVersionMutation(options) {
13
+ return useMutation((mutateProps) => deleteVersion(mutateProps), options);
14
+ }
@@ -4,7 +4,7 @@
4
4
  import { useMutation } from '@tanstack/react-query';
5
5
  import { fetcher } from '../../../../fetcher/index.js';
6
6
  export function deleteWebhook(props) {
7
- return fetcher(Object.assign({ url: `/registry/${props.registry_ref}/webhooks/${props.webhook_identifier}`, method: 'DELETE' }, props));
7
+ return fetcher(Object.assign({ url: `/v1/registry/${props.registry_ref}/webhooks/${props.webhook_identifier}`, method: 'DELETE' }, props));
8
8
  }
9
9
  /**
10
10
  * Delete a Webhook
@@ -4,7 +4,7 @@
4
4
  import { useQuery } from '@tanstack/react-query';
5
5
  import { fetcher } from '../../../../fetcher/index.js';
6
6
  export function findSpaceLabel(props) {
7
- return fetcher(Object.assign({ url: `/spaces/${props.space_ref}/labels/${props.key}`, method: 'GET' }, props));
7
+ return fetcher(Object.assign({ url: `/v1/spaces/${props.space_ref}/labels/${props.key}`, method: 'GET' }, props));
8
8
  }
9
9
  export function useFindSpaceLabelQuery(props, options) {
10
10
  return useQuery(['findSpaceLabel', props.space_ref, props.key, props.queryParams], ({ signal }) => findSpaceLabel(Object.assign(Object.assign({}, props), { signal })), options);
@@ -4,7 +4,7 @@
4
4
  import { useQuery } from '@tanstack/react-query';
5
5
  import { fetcher } from '../../../../fetcher/index.js';
6
6
  export function getAllArtifactVersions(props) {
7
- return fetcher(Object.assign({ url: `/registry/${props.registry_ref}/artifact/${props.artifact}/versions`, method: 'GET' }, props));
7
+ return fetcher(Object.assign({ url: `/v1/registry/${props.registry_ref}/artifact/${props.artifact}/versions`, method: 'GET' }, props));
8
8
  }
9
9
  /**
10
10
  * Lists all the Artifact Versions.
@@ -4,7 +4,7 @@
4
4
  import { useQuery } from '@tanstack/react-query';
5
5
  import { fetcher } from '../../../../fetcher/index.js';
6
6
  export function getAllArtifactsByRegistry(props) {
7
- return fetcher(Object.assign({ url: `/registry/${props.registry_ref}/artifacts`, method: 'GET' }, props));
7
+ return fetcher(Object.assign({ url: `/v1/registry/${props.registry_ref}/artifacts`, method: 'GET' }, props));
8
8
  }
9
9
  /**
10
10
  * Lists all the Artifacts for Registry
@@ -4,7 +4,7 @@
4
4
  import { useQuery } from '@tanstack/react-query';
5
5
  import { fetcher } from '../../../../fetcher/index.js';
6
6
  export function getAllHarnessArtifacts(props) {
7
- return fetcher(Object.assign({ url: `/spaces/${props.space_ref}/artifacts`, method: 'GET' }, props));
7
+ return fetcher(Object.assign({ url: `/v1/spaces/${props.space_ref}/artifacts`, method: 'GET' }, props));
8
8
  }
9
9
  /**
10
10
  * Lists all the Harness Artifacts.
@@ -4,7 +4,7 @@
4
4
  import { useQuery } from '@tanstack/react-query';
5
5
  import { fetcher } from '../../../../fetcher/index.js';
6
6
  export function getAllRegistries(props) {
7
- return fetcher(Object.assign({ url: `/spaces/${props.space_ref}/registries`, method: 'GET' }, props));
7
+ return fetcher(Object.assign({ url: `/v1/spaces/${props.space_ref}/registries`, method: 'GET' }, props));
8
8
  }
9
9
  /**
10
10
  * Lists all the registries.
@@ -4,7 +4,7 @@
4
4
  import { useQuery } from '@tanstack/react-query';
5
5
  import { fetcher } from '../../../../fetcher/index.js';
6
6
  export function getArtifactDeployments(props) {
7
- return fetcher(Object.assign({ url: `/registry/${props.registry_ref}/artifact/${props.artifact}/version/${props.version}/deploymentdetails`, method: 'GET' }, props));
7
+ return fetcher(Object.assign({ url: `/v1/registry/${props.registry_ref}/artifact/${props.artifact}/version/${props.version}/deploymentdetails`, method: 'GET' }, props));
8
8
  }
9
9
  /**
10
10
  * Get Artifact Deployments
@@ -4,7 +4,7 @@
4
4
  import { useQuery } from '@tanstack/react-query';
5
5
  import { fetcher } from '../../../../fetcher/index.js';
6
6
  export function getArtifactDetails(props) {
7
- return fetcher(Object.assign({ url: `/registry/${props.registry_ref}/artifact/${props.artifact}/version/${props.version}/details`, method: 'GET' }, props));
7
+ return fetcher(Object.assign({ url: `/v1/registry/${props.registry_ref}/artifact/${props.artifact}/version/${props.version}/details`, method: 'GET' }, props));
8
8
  }
9
9
  /**
10
10
  * Get Artifact Details
@@ -4,7 +4,7 @@
4
4
  import { useQuery } from '@tanstack/react-query';
5
5
  import { fetcher } from '../../../../fetcher/index.js';
6
6
  export function getArtifactFile(props) {
7
- return fetcher(Object.assign({ url: `/registry/${props.registry_ref}/artifact/${props.artifact}/version/${props.version}/file/${props.file_name}`, method: 'GET' }, props));
7
+ return fetcher(Object.assign({ url: `/v1/registry/${props.registry_ref}/artifact/${props.artifact}/version/${props.version}/file/${props.file_name}`, method: 'GET' }, props));
8
8
  }
9
9
  /**
10
10
  * just validate existence of Artifact file
@@ -4,7 +4,7 @@
4
4
  import { useQuery } from '@tanstack/react-query';
5
5
  import { fetcher } from '../../../../fetcher/index.js';
6
6
  export function getArtifactFiles(props) {
7
- return fetcher(Object.assign({ url: `/registry/${props.registry_ref}/artifact/${props.artifact}/version/${props.version}/files`, method: 'GET' }, props));
7
+ return fetcher(Object.assign({ url: `/v1/registry/${props.registry_ref}/artifact/${props.artifact}/version/${props.version}/files`, method: 'GET' }, props));
8
8
  }
9
9
  /**
10
10
  * Get Artifact files
@@ -4,7 +4,7 @@
4
4
  import { useQuery } from '@tanstack/react-query';
5
5
  import { fetcher } from '../../../../fetcher/index.js';
6
6
  export function getArtifactStatsForRegistry(props) {
7
- return fetcher(Object.assign({ url: `/registry/${props.registry_ref}/artifact/stats`, method: 'GET' }, props));
7
+ return fetcher(Object.assign({ url: `/v1/registry/${props.registry_ref}/artifact/stats`, method: 'GET' }, props));
8
8
  }
9
9
  /**
10
10
  * Get Artifact Stats.