@harnessio/react-har-service-client 0.35.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 (182) 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.js +1 -1
  8. package/dist/har-service/src/services/hooks/useCreateRegistryMutation.d.ts +1 -1
  9. package/dist/har-service/src/services/hooks/useCreateRegistryMutation.js +1 -1
  10. package/dist/har-service/src/services/hooks/useCreateReplicationRuleMutation.js +1 -1
  11. package/dist/har-service/src/services/hooks/useCreateWebhookMutation.js +1 -1
  12. package/dist/har-service/src/services/hooks/useDefineSpaceLabelMutation.js +1 -1
  13. package/dist/har-service/src/services/hooks/useDefineSpaceLabelValueMutation.js +1 -1
  14. package/dist/har-service/src/services/hooks/useDeleteArtifactMutation.js +1 -1
  15. package/dist/har-service/src/services/hooks/useDeleteArtifactVersionMutation.js +1 -1
  16. package/dist/har-service/src/services/hooks/useDeleteMetadataMutation.d.ts +25 -0
  17. package/dist/har-service/src/services/hooks/useDeleteMetadataMutation.js +17 -0
  18. package/dist/har-service/src/services/hooks/useDeletePackageMutation.d.ts +31 -0
  19. package/dist/har-service/src/services/hooks/useDeletePackageMutation.js +14 -0
  20. package/dist/har-service/src/services/hooks/useDeleteQuarantineFilePathMutation.js +1 -1
  21. package/dist/har-service/src/services/hooks/useDeleteRegistryMutation.js +1 -1
  22. package/dist/har-service/src/services/hooks/useDeleteRegistryV2Mutation.d.ts +31 -0
  23. package/dist/har-service/src/services/hooks/useDeleteRegistryV2Mutation.js +14 -0
  24. package/dist/har-service/src/services/hooks/useDeleteReplicationRuleMutation.js +1 -1
  25. package/dist/har-service/src/services/hooks/useDeleteSpaceLabelMutation.js +1 -1
  26. package/dist/har-service/src/services/hooks/useDeleteSpaceLabelValueMutation.js +1 -1
  27. package/dist/har-service/src/services/hooks/useDeleteVersionMutation.d.ts +31 -0
  28. package/dist/har-service/src/services/hooks/useDeleteVersionMutation.js +14 -0
  29. package/dist/har-service/src/services/hooks/useDeleteWebhookMutation.js +1 -1
  30. package/dist/har-service/src/services/hooks/useFindSpaceLabelQuery.js +1 -1
  31. package/dist/har-service/src/services/hooks/useGetAllArtifactVersionsQuery.js +1 -1
  32. package/dist/har-service/src/services/hooks/useGetAllArtifactsByRegistryQuery.js +1 -1
  33. package/dist/har-service/src/services/hooks/useGetAllHarnessArtifactsQuery.js +1 -1
  34. package/dist/har-service/src/services/hooks/useGetAllRegistriesQuery.js +1 -1
  35. package/dist/har-service/src/services/hooks/useGetArtifactDeploymentsQuery.js +1 -1
  36. package/dist/har-service/src/services/hooks/useGetArtifactDetailsQuery.js +1 -1
  37. package/dist/har-service/src/services/hooks/useGetArtifactFileQuery.js +1 -1
  38. package/dist/har-service/src/services/hooks/useGetArtifactFilesQuery.js +1 -1
  39. package/dist/har-service/src/services/hooks/useGetArtifactStatsForRegistryQuery.js +1 -1
  40. package/dist/har-service/src/services/hooks/useGetArtifactStatsForSpaceQuery.js +1 -1
  41. package/dist/har-service/src/services/hooks/useGetArtifactStatsQuery.js +1 -1
  42. package/dist/har-service/src/services/hooks/useGetArtifactSummaryQuery.js +1 -1
  43. package/dist/har-service/src/services/hooks/useGetArtifactVersionSummaryQuery.js +1 -1
  44. package/dist/har-service/src/services/hooks/useGetBulkDownloadRequestStatusQuery.d.ts +25 -0
  45. package/dist/har-service/src/services/hooks/useGetBulkDownloadRequestStatusQuery.js +14 -0
  46. package/dist/har-service/src/services/hooks/useGetClientSetupDetailsQuery.js +1 -1
  47. package/dist/har-service/src/services/hooks/useGetDockerArtifactDetailsQuery.js +1 -1
  48. package/dist/har-service/src/services/hooks/useGetDockerArtifactIntegrationDetailsQuery.js +1 -1
  49. package/dist/har-service/src/services/hooks/useGetDockerArtifactLayersQuery.js +1 -1
  50. package/dist/har-service/src/services/hooks/useGetDockerArtifactManifestQuery.js +1 -1
  51. package/dist/har-service/src/services/hooks/useGetDockerArtifactManifestsQuery.js +1 -1
  52. package/dist/har-service/src/services/hooks/useGetFileQuery.d.ts +28 -0
  53. package/dist/har-service/src/services/hooks/useGetFileQuery.js +14 -0
  54. package/dist/har-service/src/services/hooks/useGetHelmArtifactDetailsQuery.js +1 -1
  55. package/dist/har-service/src/services/hooks/useGetHelmArtifactManifestQuery.js +1 -1
  56. package/dist/har-service/src/services/hooks/useGetMetadataKeysQuery.d.ts +35 -0
  57. package/dist/har-service/src/services/hooks/useGetMetadataKeysQuery.js +14 -0
  58. package/dist/har-service/src/services/hooks/useGetMetadataQuery.d.ts +28 -0
  59. package/dist/har-service/src/services/hooks/useGetMetadataQuery.js +16 -0
  60. package/dist/har-service/src/services/hooks/useGetMetadataValuesQuery.d.ts +36 -0
  61. package/dist/har-service/src/services/hooks/useGetMetadataValuesQuery.js +14 -0
  62. package/dist/har-service/src/services/hooks/useGetMigrationLogsForImageQuery.js +1 -1
  63. package/dist/har-service/src/services/hooks/useGetOciArtifactTagsQuery.js +1 -1
  64. package/dist/har-service/src/services/hooks/useGetRegistryQuery.js +1 -1
  65. package/dist/har-service/src/services/hooks/useGetReplicationRuleQuery.js +1 -1
  66. package/dist/har-service/src/services/hooks/useGetStorageDetailsQuery.js +1 -1
  67. package/dist/har-service/src/services/hooks/useGetWebhookExecutionQuery.d.ts +2 -1
  68. package/dist/har-service/src/services/hooks/useGetWebhookExecutionQuery.js +1 -1
  69. package/dist/har-service/src/services/hooks/useGetWebhookQuery.d.ts +2 -1
  70. package/dist/har-service/src/services/hooks/useGetWebhookQuery.js +1 -1
  71. package/dist/har-service/src/services/hooks/useListArtifactLabelsQuery.js +1 -1
  72. package/dist/har-service/src/services/hooks/useListMigrationImagesQuery.js +1 -1
  73. package/dist/har-service/src/services/hooks/useListPackagesQuery.d.ts +48 -0
  74. package/dist/har-service/src/services/hooks/useListPackagesQuery.js +14 -0
  75. package/dist/har-service/src/services/hooks/useListRegistriesQuery.d.ts +48 -0
  76. package/dist/har-service/src/services/hooks/useListRegistriesQuery.js +14 -0
  77. package/dist/har-service/src/services/hooks/useListReplicationRulesQuery.js +1 -1
  78. package/dist/har-service/src/services/hooks/useListSpaceLabelValuesQuery.js +1 -1
  79. package/dist/har-service/src/services/hooks/useListSpaceLabelsQuery.js +1 -1
  80. package/dist/har-service/src/services/hooks/useListVersionsQuery.d.ts +48 -0
  81. package/dist/har-service/src/services/hooks/useListVersionsQuery.js +14 -0
  82. package/dist/har-service/src/services/hooks/useListWebhookExecutionsQuery.d.ts +2 -1
  83. package/dist/har-service/src/services/hooks/useListWebhookExecutionsQuery.js +1 -1
  84. package/dist/har-service/src/services/hooks/useListWebhooksQuery.js +1 -1
  85. package/dist/har-service/src/services/hooks/useModifyRegistryMutation.js +1 -1
  86. package/dist/har-service/src/services/hooks/useQuarantineFilePathMutation.js +1 -1
  87. package/dist/har-service/src/services/hooks/useReTriggerWebhookExecutionQuery.d.ts +2 -1
  88. package/dist/har-service/src/services/hooks/useReTriggerWebhookExecutionQuery.js +1 -1
  89. package/dist/har-service/src/services/hooks/useRedirectHarnessArtifactQuery.js +1 -1
  90. package/dist/har-service/src/services/hooks/useRestorePackageMutation.d.ts +30 -0
  91. package/dist/har-service/src/services/hooks/useRestorePackageMutation.js +14 -0
  92. package/dist/har-service/src/services/hooks/useRestoreRegistryMutation.d.ts +30 -0
  93. package/dist/har-service/src/services/hooks/useRestoreRegistryMutation.js +14 -0
  94. package/dist/har-service/src/services/hooks/useRestoreVersionMutation.d.ts +30 -0
  95. package/dist/har-service/src/services/hooks/useRestoreVersionMutation.js +14 -0
  96. package/dist/har-service/src/services/hooks/useSaveMetadataMutation.d.ts +28 -0
  97. package/dist/har-service/src/services/hooks/useSaveMetadataMutation.js +17 -0
  98. package/dist/har-service/src/services/hooks/useSaveSpaceLabelMutation.js +1 -1
  99. package/dist/har-service/src/services/hooks/useSearchFilesQuery.d.ts +36 -0
  100. package/dist/har-service/src/services/hooks/useSearchFilesQuery.js +14 -0
  101. package/dist/har-service/src/services/hooks/useStartMigrationMutation.js +1 -1
  102. package/dist/har-service/src/services/hooks/useStopMigrationMutation.js +1 -1
  103. package/dist/har-service/src/services/hooks/useUpdateArtifactLabelsMutation.js +1 -1
  104. package/dist/har-service/src/services/hooks/useUpdateMetadataMutation.d.ts +29 -0
  105. package/dist/har-service/src/services/hooks/useUpdateMetadataMutation.js +18 -0
  106. package/dist/har-service/src/services/hooks/useUpdateReplicationRuleMutation.js +1 -1
  107. package/dist/har-service/src/services/hooks/useUpdateSpaceLabelMutation.js +1 -1
  108. package/dist/har-service/src/services/hooks/useUpdateSpaceLabelValueMutation.js +1 -1
  109. package/dist/har-service/src/services/hooks/useUpdateWebhookMutation.d.ts +2 -1
  110. package/dist/har-service/src/services/hooks/useUpdateWebhookMutation.js +1 -1
  111. package/dist/har-service/src/services/index.d.ts +70 -0
  112. package/dist/har-service/src/services/index.js +21 -0
  113. package/dist/har-service/src/services/requestBodies/AddTagsRequestRequestBody.d.ts +2 -0
  114. package/dist/har-service/src/services/requestBodies/AddTagsRequestRequestBody.js +1 -0
  115. package/dist/har-service/src/services/requestBodies/BulkDownloadFilesRequestRequestBody.d.ts +2 -0
  116. package/dist/har-service/src/services/requestBodies/BulkDownloadFilesRequestRequestBody.js +1 -0
  117. package/dist/har-service/src/services/requestBodies/MetadataRequestRequestBody.d.ts +2 -0
  118. package/dist/har-service/src/services/requestBodies/MetadataRequestRequestBody.js +1 -0
  119. package/dist/har-service/src/services/responses/AddTagsResponseResponse.d.ts +4 -0
  120. package/dist/har-service/src/services/responses/AddTagsResponseResponse.js +1 -0
  121. package/dist/har-service/src/services/responses/CopyResponseResponse.d.ts +4 -0
  122. package/dist/har-service/src/services/responses/CopyResponseResponse.js +1 -0
  123. package/dist/har-service/src/services/responses/DownloadFileResponseResponse.d.ts +4 -0
  124. package/dist/har-service/src/services/responses/DownloadFileResponseResponse.js +4 -0
  125. package/dist/har-service/src/services/responses/GetBulkDownloadRequestStatusResponseResponse.d.ts +6 -0
  126. package/dist/har-service/src/services/responses/GetBulkDownloadRequestStatusResponseResponse.js +1 -0
  127. package/dist/har-service/src/services/responses/ListFilesResponseResponse.d.ts +30 -0
  128. package/dist/har-service/src/services/responses/ListFilesResponseResponse.js +1 -0
  129. package/dist/har-service/src/services/responses/ListPackageResponseResponse.d.ts +6 -0
  130. package/dist/har-service/src/services/responses/ListPackageResponseResponse.js +1 -0
  131. package/dist/har-service/src/services/responses/ListVersionResponseResponse.d.ts +6 -0
  132. package/dist/har-service/src/services/responses/ListVersionResponseResponse.js +1 -0
  133. package/dist/har-service/src/services/responses/MetadataKeysResponseResponse.d.ts +5 -0
  134. package/dist/har-service/src/services/responses/MetadataKeysResponseResponse.js +1 -0
  135. package/dist/har-service/src/services/responses/MetadataResponseResponse.d.ts +6 -0
  136. package/dist/har-service/src/services/responses/MetadataResponseResponse.js +1 -0
  137. package/dist/har-service/src/services/responses/MetadataValuesResponseResponse.d.ts +5 -0
  138. package/dist/har-service/src/services/responses/MetadataValuesResponseResponse.js +1 -0
  139. package/dist/har-service/src/services/schemas/AddTags.d.ts +5 -0
  140. package/dist/har-service/src/services/schemas/AddTags.js +4 -0
  141. package/dist/har-service/src/services/schemas/ArtifactDetail.d.ts +8 -0
  142. package/dist/har-service/src/services/schemas/ArtifactMetadata.d.ts +5 -4
  143. package/dist/har-service/src/services/schemas/ArtifactSummary.d.ts +3 -4
  144. package/dist/har-service/src/services/schemas/ArtifactVersionMetadata.d.ts +8 -0
  145. package/dist/har-service/src/services/schemas/ArtifactVersionSummary.d.ts +3 -4
  146. package/dist/har-service/src/services/schemas/BulkDownloadFilesRequestInput.d.ts +22 -0
  147. package/dist/har-service/src/services/schemas/BulkDownloadFilesRequestInput.js +4 -0
  148. package/dist/har-service/src/services/schemas/BulkDownloadRequestStatus.d.ts +4 -0
  149. package/dist/har-service/src/services/schemas/BulkDownloadRequestStatus.js +4 -0
  150. package/dist/har-service/src/services/schemas/BulkDownloadRequestStatusOutput.d.ts +8 -0
  151. package/dist/har-service/src/services/schemas/BulkDownloadRequestStatusOutput.js +1 -0
  152. package/dist/har-service/src/services/schemas/Error.d.ts +10 -3
  153. package/dist/har-service/src/services/schemas/ExtraHeader.d.ts +1 -0
  154. package/dist/har-service/src/services/schemas/FileMetadata.d.ts +8 -0
  155. package/dist/har-service/src/services/schemas/FileMetadata.js +4 -0
  156. package/dist/har-service/src/services/schemas/ListPackage.d.ts +35 -0
  157. package/dist/har-service/src/services/schemas/ListPackage.js +1 -0
  158. package/dist/har-service/src/services/schemas/ListRegistry.d.ts +2 -0
  159. package/dist/har-service/src/services/schemas/ListVersion.d.ts +35 -0
  160. package/dist/har-service/src/services/schemas/ListVersion.js +1 -0
  161. package/dist/har-service/src/services/schemas/Meta.d.ts +17 -0
  162. package/dist/har-service/src/services/schemas/Meta.js +4 -0
  163. package/dist/har-service/src/services/schemas/MetadataInput.d.ts +45 -0
  164. package/dist/har-service/src/services/schemas/MetadataInput.js +1 -0
  165. package/dist/har-service/src/services/schemas/MetadataItemInput.d.ts +15 -0
  166. package/dist/har-service/src/services/schemas/MetadataItemInput.js +4 -0
  167. package/dist/har-service/src/services/schemas/MetadataItemOutput.d.ts +22 -0
  168. package/dist/har-service/src/services/schemas/MetadataItemOutput.js +1 -0
  169. package/dist/har-service/src/services/schemas/MetadataOutput.d.ts +11 -0
  170. package/dist/har-service/src/services/schemas/MetadataOutput.js +1 -0
  171. package/dist/har-service/src/services/schemas/MetadataType.d.ts +5 -0
  172. package/dist/har-service/src/services/schemas/MetadataType.js +4 -0
  173. package/dist/har-service/src/services/schemas/PackageMetadata.d.ts +30 -0
  174. package/dist/har-service/src/services/schemas/PackageMetadata.js +1 -0
  175. package/dist/har-service/src/services/schemas/Registry.d.ts +3 -4
  176. package/dist/har-service/src/services/schemas/RegistryArtifactMetadata.d.ts +3 -5
  177. package/dist/har-service/src/services/schemas/RegistryMetadata.d.ts +2 -4
  178. package/dist/har-service/src/services/schemas/RegistryRequest.d.ts +1 -1
  179. package/dist/har-service/src/services/schemas/Status.d.ts +1 -1
  180. package/dist/har-service/src/services/schemas/VersionMetadata.d.ts +40 -0
  181. package/dist/har-service/src/services/schemas/VersionMetadata.js +1 -0
  182. package/package.json +1 -1
@@ -4,7 +4,7 @@
4
4
  import { useQuery } from '@tanstack/react-query';
5
5
  import { fetcher } from '../../../../fetcher/index.js';
6
6
  export function listSpaceLabels(props) {
7
- return fetcher(Object.assign({ url: `/spaces/${props.space_ref}/labels`, method: 'GET' }, props));
7
+ return fetcher(Object.assign({ url: `/v1/spaces/${props.space_ref}/labels`, method: 'GET' }, props));
8
8
  }
9
9
  export function useListSpaceLabelsQuery(props, options) {
10
10
  return useQuery(['listSpaceLabels', props.space_ref, props.queryParams], ({ signal }) => listSpaceLabels(Object.assign(Object.assign({}, props), { signal })), options);
@@ -0,0 +1,48 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ListVersionResponseResponse } from '../responses/ListVersionResponseResponse';
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 ListVersionsQueryQueryParams {
11
+ account_identifier: string;
12
+ org_identifier?: string;
13
+ project_identifier?: string;
14
+ registry_identifier?: string[];
15
+ package?: string;
16
+ metadata?: string[];
17
+ /**
18
+ * @format int64
19
+ * @default 0
20
+ */
21
+ page?: number;
22
+ /**
23
+ * @format int64
24
+ * @default 20
25
+ */
26
+ size?: number;
27
+ /**
28
+ * @default "ASC"
29
+ */
30
+ sort_order?: 'ASC' | 'DESC';
31
+ sort_field?: string;
32
+ search_term?: string;
33
+ package_type?: string[];
34
+ /**
35
+ * @default "EXCLUDE"
36
+ */
37
+ deleted?: 'EXCLUDE' | 'INCLUDE' | 'ONLY';
38
+ }
39
+ export type ListVersionsOkResponse = ResponseWithPagination<ListVersionResponseResponse>;
40
+ export type ListVersionsErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
41
+ export interface ListVersionsProps extends Omit<FetcherOptions<ListVersionsQueryQueryParams, unknown>, 'url'> {
42
+ queryParams: ListVersionsQueryQueryParams;
43
+ }
44
+ export declare function listVersions(props: ListVersionsProps): Promise<ListVersionsOkResponse>;
45
+ /**
46
+ * Lists all the Versions.
47
+ */
48
+ export declare function useListVersionsQuery(props: ListVersionsProps, options?: Omit<UseQueryOptions<ListVersionsOkResponse, ListVersionsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListVersionsOkResponse, 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 listVersions(props) {
7
+ return fetcher(Object.assign({ url: `/v2/artifacts`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Lists all the Versions.
11
+ */
12
+ export function useListVersionsQuery(props, options) {
13
+ return useQuery(['ListVersions', props.queryParams], ({ signal }) => listVersions(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -3,6 +3,7 @@ import type { ListWebhooksExecutionResponseResponse } from '../responses/ListWeb
3
3
  import type { BadRequestResponse } from '../responses/BadRequestResponse';
4
4
  import type { UnauthenticatedResponse } from '../responses/UnauthenticatedResponse';
5
5
  import type { UnauthorizedResponse } from '../responses/UnauthorizedResponse';
6
+ import type { NotFoundResponse } from '../responses/NotFoundResponse';
6
7
  import type { InternalServerErrorResponse } from '../responses/InternalServerErrorResponse';
7
8
  import type { ResponseWithPagination } from '../helpers';
8
9
  import { FetcherOptions } from '../../../../fetcher/index.js';
@@ -23,7 +24,7 @@ export interface ListWebhookExecutionsQueryQueryParams {
23
24
  size?: number;
24
25
  }
25
26
  export type ListWebhookExecutionsOkResponse = ResponseWithPagination<ListWebhooksExecutionResponseResponse>;
26
- export type ListWebhookExecutionsErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | InternalServerErrorResponse;
27
+ export type ListWebhookExecutionsErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
27
28
  export interface ListWebhookExecutionsProps extends ListWebhookExecutionsQueryPathParams, Omit<FetcherOptions<ListWebhookExecutionsQueryQueryParams, unknown>, 'url'> {
28
29
  queryParams: ListWebhookExecutionsQueryQueryParams;
29
30
  }
@@ -4,7 +4,7 @@
4
4
  import { useQuery } from '@tanstack/react-query';
5
5
  import { fetcher } from '../../../../fetcher/index.js';
6
6
  export function listWebhookExecutions(props) {
7
- return fetcher(Object.assign({ url: `/registry/${props.registry_ref}/webhooks/${props.webhook_identifier}/executions`, method: 'GET' }, props));
7
+ return fetcher(Object.assign({ url: `/v1/registry/${props.registry_ref}/webhooks/${props.webhook_identifier}/executions`, method: 'GET' }, props));
8
8
  }
9
9
  /**
10
10
  * Returns Webhook Execution Details List
@@ -4,7 +4,7 @@
4
4
  import { useQuery } from '@tanstack/react-query';
5
5
  import { fetcher } from '../../../../fetcher/index.js';
6
6
  export function listWebhooks(props) {
7
- return fetcher(Object.assign({ url: `/registry/${props.registry_ref}/webhooks`, method: 'GET' }, props));
7
+ return fetcher(Object.assign({ url: `/v1/registry/${props.registry_ref}/webhooks`, method: 'GET' }, props));
8
8
  }
9
9
  /**
10
10
  * Returns List of 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 modifyRegistry(props) {
7
- return fetcher(Object.assign({ url: `/registry/${props.registry_ref}`, method: 'PUT' }, props));
7
+ return fetcher(Object.assign({ url: `/v1/registry/${props.registry_ref}`, method: 'PUT' }, props));
8
8
  }
9
9
  /**
10
10
  * Updates a Registry in the account for the given key
@@ -4,7 +4,7 @@
4
4
  import { useMutation } from '@tanstack/react-query';
5
5
  import { fetcher } from '../../../../fetcher/index.js';
6
6
  export function quarantineFilePath(props) {
7
- return fetcher(Object.assign({ url: `/registry/${props.registry_ref}/quarantine`, method: 'PUT' }, props));
7
+ return fetcher(Object.assign({ url: `/v1/registry/${props.registry_ref}/quarantine`, method: 'PUT' }, props));
8
8
  }
9
9
  /**
10
10
  * quarantine file path
@@ -3,6 +3,7 @@ import type { WebhookExecutionResponseResponse } from '../responses/WebhookExecu
3
3
  import type { BadRequestResponse } from '../responses/BadRequestResponse';
4
4
  import type { UnauthenticatedResponse } from '../responses/UnauthenticatedResponse';
5
5
  import type { UnauthorizedResponse } from '../responses/UnauthorizedResponse';
6
+ import type { NotFoundResponse } from '../responses/NotFoundResponse';
6
7
  import type { InternalServerErrorResponse } from '../responses/InternalServerErrorResponse';
7
8
  import type { ResponseWithPagination } from '../helpers';
8
9
  import { FetcherOptions } from '../../../../fetcher/index.js';
@@ -12,7 +13,7 @@ export interface ReTriggerWebhookExecutionQueryPathParams {
12
13
  webhook_execution_id: string;
13
14
  }
14
15
  export type ReTriggerWebhookExecutionOkResponse = ResponseWithPagination<WebhookExecutionResponseResponse>;
15
- export type ReTriggerWebhookExecutionErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | InternalServerErrorResponse;
16
+ export type ReTriggerWebhookExecutionErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
16
17
  export interface ReTriggerWebhookExecutionProps extends ReTriggerWebhookExecutionQueryPathParams, Omit<FetcherOptions<unknown, unknown>, 'url'> {
17
18
  }
18
19
  export declare function reTriggerWebhookExecution(props: ReTriggerWebhookExecutionProps): Promise<ReTriggerWebhookExecutionOkResponse>;
@@ -4,7 +4,7 @@
4
4
  import { useQuery } from '@tanstack/react-query';
5
5
  import { fetcher } from '../../../../fetcher/index.js';
6
6
  export function reTriggerWebhookExecution(props) {
7
- return fetcher(Object.assign({ url: `/registry/${props.registry_ref}/webhooks/${props.webhook_identifier}/executions/${props.webhook_execution_id}/retrigger`, method: 'GET' }, props));
7
+ return fetcher(Object.assign({ url: `/v1/registry/${props.registry_ref}/webhooks/${props.webhook_identifier}/executions/${props.webhook_execution_id}/retrigger`, method: 'GET' }, props));
8
8
  }
9
9
  /**
10
10
  * Retrigger Webhook Execution
@@ -4,7 +4,7 @@
4
4
  import { useQuery } from '@tanstack/react-query';
5
5
  import { fetcher } from '../../../../fetcher/index.js';
6
6
  export function redirectHarnessArtifact(props) {
7
- return fetcher(Object.assign({ url: `/registry/${props.registry_identifier}/artifact/${props.artifact}/redirect`, method: 'GET' }, props));
7
+ return fetcher(Object.assign({ url: `/v1/registry/${props.registry_identifier}/artifact/${props.artifact}/redirect`, method: 'GET' }, props));
8
8
  }
9
9
  /**
10
10
  * Redirect to Harness Artifact Page
@@ -0,0 +1,30 @@
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 RestorePackageMutationPathParams {
11
+ /**
12
+ * @format uuid
13
+ */
14
+ uuid: string;
15
+ }
16
+ export interface RestorePackageMutationQueryParams {
17
+ account_identifier: string;
18
+ org_identifier?: string;
19
+ project_identifier?: string;
20
+ }
21
+ export type RestorePackageOkResponse = ResponseWithPagination<SuccessResponse>;
22
+ export type RestorePackageErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
23
+ export interface RestorePackageProps extends RestorePackageMutationPathParams, Omit<FetcherOptions<RestorePackageMutationQueryParams, unknown>, 'url'> {
24
+ queryParams: RestorePackageMutationQueryParams;
25
+ }
26
+ export declare function restorePackage(props: RestorePackageProps): Promise<RestorePackageOkResponse>;
27
+ /**
28
+ * Restore a previously soft-deleted package/image by UUID
29
+ */
30
+ export declare function useRestorePackageMutation(options?: Omit<UseMutationOptions<RestorePackageOkResponse, RestorePackageErrorResponse, RestorePackageProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<RestorePackageOkResponse, import("..").Error, RestorePackageProps, 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 restorePackage(props) {
7
+ return fetcher(Object.assign({ url: `/v2/packages/${props.uuid}/restore`, method: 'PUT' }, props));
8
+ }
9
+ /**
10
+ * Restore a previously soft-deleted package/image by UUID
11
+ */
12
+ export function useRestorePackageMutation(options) {
13
+ return useMutation((mutateProps) => restorePackage(mutateProps), options);
14
+ }
@@ -0,0 +1,30 @@
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 RestoreRegistryMutationPathParams {
11
+ /**
12
+ * @format uuid
13
+ */
14
+ uuid: string;
15
+ }
16
+ export interface RestoreRegistryMutationQueryParams {
17
+ account_identifier: string;
18
+ org_identifier?: string;
19
+ project_identifier?: string;
20
+ }
21
+ export type RestoreRegistryOkResponse = ResponseWithPagination<SuccessResponse>;
22
+ export type RestoreRegistryErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
23
+ export interface RestoreRegistryProps extends RestoreRegistryMutationPathParams, Omit<FetcherOptions<RestoreRegistryMutationQueryParams, unknown>, 'url'> {
24
+ queryParams: RestoreRegistryMutationQueryParams;
25
+ }
26
+ export declare function restoreRegistry(props: RestoreRegistryProps): Promise<RestoreRegistryOkResponse>;
27
+ /**
28
+ * Restore a previously soft-deleted registry by UUID
29
+ */
30
+ export declare function useRestoreRegistryMutation(options?: Omit<UseMutationOptions<RestoreRegistryOkResponse, RestoreRegistryErrorResponse, RestoreRegistryProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<RestoreRegistryOkResponse, import("..").Error, RestoreRegistryProps, 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 restoreRegistry(props) {
7
+ return fetcher(Object.assign({ url: `/v2/registries/${props.uuid}/restore`, method: 'PUT' }, props));
8
+ }
9
+ /**
10
+ * Restore a previously soft-deleted registry by UUID
11
+ */
12
+ export function useRestoreRegistryMutation(options) {
13
+ return useMutation((mutateProps) => restoreRegistry(mutateProps), options);
14
+ }
@@ -0,0 +1,30 @@
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 RestoreVersionMutationPathParams {
11
+ /**
12
+ * @format uuid
13
+ */
14
+ uuid: string;
15
+ }
16
+ export interface RestoreVersionMutationQueryParams {
17
+ account_identifier: string;
18
+ org_identifier?: string;
19
+ project_identifier?: string;
20
+ }
21
+ export type RestoreVersionOkResponse = ResponseWithPagination<SuccessResponse>;
22
+ export type RestoreVersionErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
23
+ export interface RestoreVersionProps extends RestoreVersionMutationPathParams, Omit<FetcherOptions<RestoreVersionMutationQueryParams, unknown>, 'url'> {
24
+ queryParams: RestoreVersionMutationQueryParams;
25
+ }
26
+ export declare function restoreVersion(props: RestoreVersionProps): Promise<RestoreVersionOkResponse>;
27
+ /**
28
+ * Restore a previously soft-deleted version by UUID
29
+ */
30
+ export declare function useRestoreVersionMutation(options?: Omit<UseMutationOptions<RestoreVersionOkResponse, RestoreVersionErrorResponse, RestoreVersionProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<RestoreVersionOkResponse, import("..").Error, RestoreVersionProps, 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 restoreVersion(props) {
7
+ return fetcher(Object.assign({ url: `/v2/versions/${props.uuid}/restore`, method: 'PUT' }, props));
8
+ }
9
+ /**
10
+ * Restore a previously soft-deleted version by UUID
11
+ */
12
+ export function useRestoreVersionMutation(options) {
13
+ return useMutation((mutateProps) => restoreVersion(mutateProps), options);
14
+ }
@@ -0,0 +1,28 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { MetadataResponseResponse } from '../responses/MetadataResponseResponse';
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 { MetadataRequestRequestBody } from '../requestBodies/MetadataRequestRequestBody';
9
+ import type { ResponseWithPagination } from '../helpers';
10
+ import { FetcherOptions } from '../../../../fetcher/index.js';
11
+ export interface SaveMetadataMutationQueryParams {
12
+ account_identifier: string;
13
+ }
14
+ export type SaveMetadataRequestBody = MetadataRequestRequestBody;
15
+ export type SaveMetadataOkResponse = ResponseWithPagination<MetadataResponseResponse>;
16
+ export type SaveMetadataErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
17
+ export interface SaveMetadataProps extends Omit<FetcherOptions<SaveMetadataMutationQueryParams, SaveMetadataRequestBody>, 'url'> {
18
+ queryParams: SaveMetadataMutationQueryParams;
19
+ body: SaveMetadataRequestBody;
20
+ }
21
+ export declare function saveMetadata(props: SaveMetadataProps): Promise<SaveMetadataOkResponse>;
22
+ /**
23
+ * Saves metadata key-value pairs for a specific entity.
24
+ * This endpoint allows you to save metadata for packages, versions, or registry-level entities.
25
+ * This operation will remove existing metadata and save the new metadata. It is an idempotent operation.
26
+ *
27
+ */
28
+ export declare function useSaveMetadataMutation(options?: Omit<UseMutationOptions<SaveMetadataOkResponse, SaveMetadataErrorResponse, SaveMetadataProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<SaveMetadataOkResponse, import("..").Error, SaveMetadataProps, 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 saveMetadata(props) {
7
+ return fetcher(Object.assign({ url: `/v2/metadata`, method: 'PUT' }, props));
8
+ }
9
+ /**
10
+ * Saves metadata key-value pairs for a specific entity.
11
+ * This endpoint allows you to save metadata for packages, versions, or registry-level entities.
12
+ * This operation will remove existing metadata and save the new metadata. It is an idempotent operation.
13
+ *
14
+ */
15
+ export function useSaveMetadataMutation(options) {
16
+ return useMutation((mutateProps) => saveMetadata(mutateProps), options);
17
+ }
@@ -4,7 +4,7 @@
4
4
  import { useMutation } from '@tanstack/react-query';
5
5
  import { fetcher } from '../../../../fetcher/index.js';
6
6
  export function saveSpaceLabel(props) {
7
- return fetcher(Object.assign({ url: `/spaces/${props.space_ref}/labels`, method: 'PUT' }, props));
7
+ return fetcher(Object.assign({ url: `/v1/spaces/${props.space_ref}/labels`, method: 'PUT' }, props));
8
8
  }
9
9
  export function useSaveSpaceLabelMutation(options) {
10
10
  return useMutation((mutateProps) => saveSpaceLabel(mutateProps), options);
@@ -0,0 +1,36 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ListFilesResponseResponse } from '../responses/ListFilesResponseResponse';
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 SearchFilesQueryQueryParams {
11
+ account_identifier: string;
12
+ org_identifier?: string;
13
+ project_identifier?: string;
14
+ registry_identifier: string;
15
+ query: string;
16
+ /**
17
+ * @format int64
18
+ * @default 0
19
+ */
20
+ page?: number;
21
+ /**
22
+ * @format int64
23
+ * @default 20
24
+ */
25
+ size?: number;
26
+ }
27
+ export type SearchFilesOkResponse = ResponseWithPagination<ListFilesResponseResponse>;
28
+ export type SearchFilesErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
29
+ export interface SearchFilesProps extends Omit<FetcherOptions<SearchFilesQueryQueryParams, unknown>, 'url'> {
30
+ queryParams: SearchFilesQueryQueryParams;
31
+ }
32
+ export declare function searchFiles(props: SearchFilesProps): Promise<SearchFilesOkResponse>;
33
+ /**
34
+ * Search all the files.
35
+ */
36
+ export declare function useSearchFilesQuery(props: SearchFilesProps, options?: Omit<UseQueryOptions<SearchFilesOkResponse, SearchFilesErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<SearchFilesOkResponse, 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 searchFiles(props) {
7
+ return fetcher(Object.assign({ url: `/v2/files/search`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Search all the files.
11
+ */
12
+ export function useSearchFilesQuery(props, options) {
13
+ return useQuery(['SearchFiles', props.queryParams], ({ signal }) => searchFiles(Object.assign(Object.assign({}, props), { signal })), 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 startMigration(props) {
7
- return fetcher(Object.assign({ url: `/replication/rules/${props.id}/migration/start`, method: 'POST' }, props));
7
+ return fetcher(Object.assign({ url: `/v1/replication/rules/${props.id}/migration/start`, method: 'POST' }, props));
8
8
  }
9
9
  /**
10
10
  * Start migration given an id
@@ -4,7 +4,7 @@
4
4
  import { useMutation } from '@tanstack/react-query';
5
5
  import { fetcher } from '../../../../fetcher/index.js';
6
6
  export function stopMigration(props) {
7
- return fetcher(Object.assign({ url: `/replication/rules/${props.id}/migration/stop`, method: 'POST' }, props));
7
+ return fetcher(Object.assign({ url: `/v1/replication/rules/${props.id}/migration/stop`, method: 'POST' }, props));
8
8
  }
9
9
  /**
10
10
  * Stop migration given an id
@@ -4,7 +4,7 @@
4
4
  import { useMutation } from '@tanstack/react-query';
5
5
  import { fetcher } from '../../../../fetcher/index.js';
6
6
  export function updateArtifactLabels(props) {
7
- return fetcher(Object.assign({ url: `/registry/${props.registry_ref}/artifact/${props.artifact}/labels`, method: 'PUT' }, props));
7
+ return fetcher(Object.assign({ url: `/v1/registry/${props.registry_ref}/artifact/${props.artifact}/labels`, method: 'PUT' }, props));
8
8
  }
9
9
  /**
10
10
  * Update Artifact Labels.
@@ -0,0 +1,29 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { MetadataResponseResponse } from '../responses/MetadataResponseResponse';
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 { MetadataRequestRequestBody } from '../requestBodies/MetadataRequestRequestBody';
9
+ import type { ResponseWithPagination } from '../helpers';
10
+ import { FetcherOptions } from '../../../../fetcher/index.js';
11
+ export interface UpdateMetadataMutationQueryParams {
12
+ account_identifier: string;
13
+ }
14
+ export type UpdateMetadataRequestBody = MetadataRequestRequestBody;
15
+ export type UpdateMetadataOkResponse = ResponseWithPagination<MetadataResponseResponse>;
16
+ export type UpdateMetadataErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
17
+ export interface UpdateMetadataProps extends Omit<FetcherOptions<UpdateMetadataMutationQueryParams, UpdateMetadataRequestBody>, 'url'> {
18
+ queryParams: UpdateMetadataMutationQueryParams;
19
+ body: UpdateMetadataRequestBody;
20
+ }
21
+ export declare function updateMetadata(props: UpdateMetadataProps): Promise<UpdateMetadataOkResponse>;
22
+ /**
23
+ * Creates new metadata or overwrites existing metadata key-value pairs for a specific entity.
24
+ * This endpoint allows you to add new metadata or overwrites existing metadata for packages, versions,
25
+ * or registry-level entities.
26
+ * The operation supports both creating new metadata entries and updating existing ones in a single request.
27
+ *
28
+ */
29
+ export declare function useUpdateMetadataMutation(options?: Omit<UseMutationOptions<UpdateMetadataOkResponse, UpdateMetadataErrorResponse, UpdateMetadataProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UpdateMetadataOkResponse, import("..").Error, UpdateMetadataProps, unknown>;
@@ -0,0 +1,18 @@
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 updateMetadata(props) {
7
+ return fetcher(Object.assign({ url: `/v2/metadata`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Creates new metadata or overwrites existing metadata key-value pairs for a specific entity.
11
+ * This endpoint allows you to add new metadata or overwrites existing metadata for packages, versions,
12
+ * or registry-level entities.
13
+ * The operation supports both creating new metadata entries and updating existing ones in a single request.
14
+ *
15
+ */
16
+ export function useUpdateMetadataMutation(options) {
17
+ return useMutation((mutateProps) => updateMetadata(mutateProps), options);
18
+ }
@@ -4,7 +4,7 @@
4
4
  import { useMutation } from '@tanstack/react-query';
5
5
  import { fetcher } from '../../../../fetcher/index.js';
6
6
  export function updateReplicationRule(props) {
7
- return fetcher(Object.assign({ url: `/replication/rules/${props.id}`, method: 'PUT' }, props));
7
+ return fetcher(Object.assign({ url: `/v1/replication/rules/${props.id}`, method: 'PUT' }, props));
8
8
  }
9
9
  /**
10
10
  * Update 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 updateSpaceLabel(props) {
7
- return fetcher(Object.assign({ url: `/spaces/${props.space_ref}/labels/${props.key}`, method: 'PATCH' }, props));
7
+ return fetcher(Object.assign({ url: `/v1/spaces/${props.space_ref}/labels/${props.key}`, method: 'PATCH' }, props));
8
8
  }
9
9
  export function useUpdateSpaceLabelMutation(options) {
10
10
  return useMutation((mutateProps) => updateSpaceLabel(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 updateSpaceLabelValue(props) {
7
- return fetcher(Object.assign({ url: `/spaces/${props.space_ref}/labels/${props.key}/values/${props.value}`, method: 'PATCH' }, props));
7
+ return fetcher(Object.assign({ url: `/v1/spaces/${props.space_ref}/labels/${props.key}/values/${props.value}`, method: 'PATCH' }, props));
8
8
  }
9
9
  export function useUpdateSpaceLabelValueMutation(options) {
10
10
  return useMutation((mutateProps) => updateSpaceLabelValue(mutateProps), options);
@@ -3,6 +3,7 @@ import type { WebhookResponseResponse } from '../responses/WebhookResponseRespon
3
3
  import type { BadRequestResponse } from '../responses/BadRequestResponse';
4
4
  import type { UnauthenticatedResponse } from '../responses/UnauthenticatedResponse';
5
5
  import type { UnauthorizedResponse } from '../responses/UnauthorizedResponse';
6
+ import type { NotFoundResponse } from '../responses/NotFoundResponse';
6
7
  import type { InternalServerErrorResponse } from '../responses/InternalServerErrorResponse';
7
8
  import type { WebhookRequestRequestBody } from '../requestBodies/WebhookRequestRequestBody';
8
9
  import type { ResponseWithPagination } from '../helpers';
@@ -13,7 +14,7 @@ export interface UpdateWebhookMutationPathParams {
13
14
  }
14
15
  export type UpdateWebhookRequestBody = WebhookRequestRequestBody;
15
16
  export type UpdateWebhookOkResponse = ResponseWithPagination<WebhookResponseResponse>;
16
- export type UpdateWebhookErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | InternalServerErrorResponse;
17
+ export type UpdateWebhookErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
17
18
  export interface UpdateWebhookProps extends UpdateWebhookMutationPathParams, Omit<FetcherOptions<unknown, UpdateWebhookRequestBody>, 'url'> {
18
19
  body: UpdateWebhookRequestBody;
19
20
  }
@@ -4,7 +4,7 @@
4
4
  import { useMutation } from '@tanstack/react-query';
5
5
  import { fetcher } from '../../../../fetcher/index.js';
6
6
  export function updateWebhook(props) {
7
- return fetcher(Object.assign({ url: `/registry/${props.registry_ref}/webhooks/${props.webhook_identifier}`, method: 'PUT' }, props));
7
+ return fetcher(Object.assign({ url: `/v1/registry/${props.registry_ref}/webhooks/${props.webhook_identifier}`, method: 'PUT' }, props));
8
8
  }
9
9
  /**
10
10
  * Returns Webhook Details