@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
@@ -4,7 +4,7 @@
4
4
  import { useQuery } from '@tanstack/react-query';
5
5
  import { fetcher } from '../../../../fetcher/index.js';
6
6
  export function getArtifactStatsForSpace(props) {
7
- return fetcher(Object.assign({ url: `/spaces/${props.space_ref}/artifact/stats`, method: 'GET' }, props));
7
+ return fetcher(Object.assign({ url: `/v1/spaces/${props.space_ref}/artifact/stats`, method: 'GET' }, props));
8
8
  }
9
9
  /**
10
10
  * Get artifact stats
@@ -4,7 +4,7 @@
4
4
  import { useQuery } from '@tanstack/react-query';
5
5
  import { fetcher } from '../../../../fetcher/index.js';
6
6
  export function getArtifactStats(props) {
7
- return fetcher(Object.assign({ url: `/registry/${props.registry_ref}/artifact/${props.artifact}/stats`, method: 'GET' }, props));
7
+ return fetcher(Object.assign({ url: `/v1/registry/${props.registry_ref}/artifact/${props.artifact}/stats`, method: 'GET' }, props));
8
8
  }
9
9
  /**
10
10
  * Get Artifact Stats.
@@ -4,7 +4,7 @@
4
4
  import { useQuery } from '@tanstack/react-query';
5
5
  import { fetcher } from '../../../../fetcher/index.js';
6
6
  export function getArtifactSummary(props) {
7
- return fetcher(Object.assign({ url: `/registry/${props.registry_ref}/artifact/${props.artifact}/summary`, method: 'GET' }, props));
7
+ return fetcher(Object.assign({ url: `/v1/registry/${props.registry_ref}/artifact/${props.artifact}/summary`, method: 'GET' }, props));
8
8
  }
9
9
  /**
10
10
  * Get Artifact Summary.
@@ -4,7 +4,7 @@
4
4
  import { useQuery } from '@tanstack/react-query';
5
5
  import { fetcher } from '../../../../fetcher/index.js';
6
6
  export function getArtifactVersionSummary(props) {
7
- return fetcher(Object.assign({ url: `/registry/${props.registry_ref}/artifact/${props.artifact}/version/${props.version}/summary`, method: 'GET' }, props));
7
+ return fetcher(Object.assign({ url: `/v1/registry/${props.registry_ref}/artifact/${props.artifact}/version/${props.version}/summary`, method: 'GET' }, props));
8
8
  }
9
9
  /**
10
10
  * Get Artifact Version Summary.
@@ -0,0 +1,25 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { GetBulkDownloadRequestStatusResponseResponse } from '../responses/GetBulkDownloadRequestStatusResponseResponse';
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 GetBulkDownloadRequestStatusQueryPathParams {
11
+ download_id: string;
12
+ }
13
+ export interface GetBulkDownloadRequestStatusQueryQueryParams {
14
+ account_identifier: string;
15
+ }
16
+ export type GetBulkDownloadRequestStatusOkResponse = ResponseWithPagination<GetBulkDownloadRequestStatusResponseResponse>;
17
+ export type GetBulkDownloadRequestStatusErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
18
+ export interface GetBulkDownloadRequestStatusProps extends GetBulkDownloadRequestStatusQueryPathParams, Omit<FetcherOptions<GetBulkDownloadRequestStatusQueryQueryParams, unknown>, 'url'> {
19
+ queryParams: GetBulkDownloadRequestStatusQueryQueryParams;
20
+ }
21
+ export declare function getBulkDownloadRequestStatus(props: GetBulkDownloadRequestStatusProps): Promise<GetBulkDownloadRequestStatusOkResponse>;
22
+ /**
23
+ * Get bulk download request status
24
+ */
25
+ export declare function useGetBulkDownloadRequestStatusQuery(props: GetBulkDownloadRequestStatusProps, options?: Omit<UseQueryOptions<GetBulkDownloadRequestStatusOkResponse, GetBulkDownloadRequestStatusErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetBulkDownloadRequestStatusOkResponse, 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 getBulkDownloadRequestStatus(props) {
7
+ return fetcher(Object.assign({ url: `/v2/files/bulk-download/${props.download_id}`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Get bulk download request status
11
+ */
12
+ export function useGetBulkDownloadRequestStatusQuery(props, options) {
13
+ return useQuery(['GetBulkDownloadRequestStatus', props.download_id, props.queryParams], ({ signal }) => getBulkDownloadRequestStatus(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -4,7 +4,7 @@
4
4
  import { useQuery } from '@tanstack/react-query';
5
5
  import { fetcher } from '../../../../fetcher/index.js';
6
6
  export function getClientSetupDetails(props) {
7
- return fetcher(Object.assign({ url: `/registry/${props.registry_ref}/client-setup-details`, method: 'GET' }, props));
7
+ return fetcher(Object.assign({ url: `/v1/registry/${props.registry_ref}/client-setup-details`, method: 'GET' }, props));
8
8
  }
9
9
  /**
10
10
  * Returns CLI Client Setup Details based on package type
@@ -4,7 +4,7 @@
4
4
  import { useQuery } from '@tanstack/react-query';
5
5
  import { fetcher } from '../../../../fetcher/index.js';
6
6
  export function getDockerArtifactDetails(props) {
7
- return fetcher(Object.assign({ url: `/registry/${props.registry_ref}/artifact/${props.artifact}/version/${props.version}/docker/details`, method: 'GET' }, props));
7
+ return fetcher(Object.assign({ url: `/v1/registry/${props.registry_ref}/artifact/${props.artifact}/version/${props.version}/docker/details`, method: 'GET' }, props));
8
8
  }
9
9
  /**
10
10
  * Get Docker 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 getDockerArtifactIntegrationDetails(props) {
7
- return fetcher(Object.assign({ url: `/registry/${props.registry_ref}/artifact/${props.artifact}/version/${props.version}/docker/integrationdetails`, method: 'GET' }, props));
7
+ return fetcher(Object.assign({ url: `/v1/registry/${props.registry_ref}/artifact/${props.artifact}/version/${props.version}/docker/integrationdetails`, method: 'GET' }, props));
8
8
  }
9
9
  /**
10
10
  * Get Docker Artifact Integration 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 getDockerArtifactLayers(props) {
7
- return fetcher(Object.assign({ url: `/registry/${props.registry_ref}/artifact/${props.artifact}/version/${props.version}/docker/layers`, method: 'GET' }, props));
7
+ return fetcher(Object.assign({ url: `/v1/registry/${props.registry_ref}/artifact/${props.artifact}/version/${props.version}/docker/layers`, method: 'GET' }, props));
8
8
  }
9
9
  /**
10
10
  * Get Docker Artifact Layers
@@ -4,7 +4,7 @@
4
4
  import { useQuery } from '@tanstack/react-query';
5
5
  import { fetcher } from '../../../../fetcher/index.js';
6
6
  export function getDockerArtifactManifest(props) {
7
- return fetcher(Object.assign({ url: `/registry/${props.registry_ref}/artifact/${props.artifact}/version/${props.version}/docker/manifest`, method: 'GET' }, props));
7
+ return fetcher(Object.assign({ url: `/v1/registry/${props.registry_ref}/artifact/${props.artifact}/version/${props.version}/docker/manifest`, method: 'GET' }, props));
8
8
  }
9
9
  /**
10
10
  * Get Docker Artifact Manifest
@@ -4,7 +4,7 @@
4
4
  import { useQuery } from '@tanstack/react-query';
5
5
  import { fetcher } from '../../../../fetcher/index.js';
6
6
  export function getDockerArtifactManifests(props) {
7
- return fetcher(Object.assign({ url: `/registry/${props.registry_ref}/artifact/${props.artifact}/version/${props.version}/docker/manifests`, method: 'GET' }, props));
7
+ return fetcher(Object.assign({ url: `/v1/registry/${props.registry_ref}/artifact/${props.artifact}/version/${props.version}/docker/manifests`, method: 'GET' }, props));
8
8
  }
9
9
  /**
10
10
  * Get Docker Artifact Manifests
@@ -0,0 +1,28 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { DownloadFileResponseResponse } from '../responses/DownloadFileResponseResponse';
3
+ import type { RedirectResponse } from '../responses/RedirectResponse';
4
+ import type { BadRequestResponse } from '../responses/BadRequestResponse';
5
+ import type { UnauthenticatedResponse } from '../responses/UnauthenticatedResponse';
6
+ import type { UnauthorizedResponse } from '../responses/UnauthorizedResponse';
7
+ import type { NotFoundResponse } from '../responses/NotFoundResponse';
8
+ import type { InternalServerErrorResponse } from '../responses/InternalServerErrorResponse';
9
+ import type { ResponseWithPagination } from '../helpers';
10
+ import { FetcherOptions } from '../../../../fetcher/index.js';
11
+ export interface GetFileQueryPathParams {
12
+ file_name: string;
13
+ }
14
+ export interface GetFileQueryQueryParams {
15
+ account_identifier: string;
16
+ registry_identifier: string;
17
+ path: string;
18
+ }
19
+ export type GetFileOkResponse = ResponseWithPagination<DownloadFileResponseResponse>;
20
+ export type GetFileErrorResponse = RedirectResponse | BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
21
+ export interface GetFileProps extends GetFileQueryPathParams, Omit<FetcherOptions<GetFileQueryQueryParams, unknown>, 'url'> {
22
+ queryParams: GetFileQueryQueryParams;
23
+ }
24
+ export declare function getFile(props: GetFileProps): Promise<GetFileOkResponse>;
25
+ /**
26
+ * Download file using file path
27
+ */
28
+ export declare function useGetFileQuery(props: GetFileProps, options?: Omit<UseQueryOptions<GetFileOkResponse, GetFileErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetFileOkResponse, 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 { useQuery } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../fetcher/index.js';
6
+ export function getFile(props) {
7
+ return fetcher(Object.assign({ url: `/v2/files/${props.file_name}`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Download file using file path
11
+ */
12
+ export function useGetFileQuery(props, options) {
13
+ return useQuery(['GetFile', props.file_name, props.queryParams], ({ signal }) => getFile(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -4,7 +4,7 @@
4
4
  import { useQuery } from '@tanstack/react-query';
5
5
  import { fetcher } from '../../../../fetcher/index.js';
6
6
  export function getHelmArtifactDetails(props) {
7
- return fetcher(Object.assign({ url: `/registry/${props.registry_ref}/artifact/${props.artifact}/version/${props.version}/helm/details`, method: 'GET' }, props));
7
+ return fetcher(Object.assign({ url: `/v1/registry/${props.registry_ref}/artifact/${props.artifact}/version/${props.version}/helm/details`, method: 'GET' }, props));
8
8
  }
9
9
  /**
10
10
  * Get Helm 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 getHelmArtifactManifest(props) {
7
- return fetcher(Object.assign({ url: `/registry/${props.registry_ref}/artifact/${props.artifact}/version/${props.version}/helm/manifest`, method: 'GET' }, props));
7
+ return fetcher(Object.assign({ url: `/v1/registry/${props.registry_ref}/artifact/${props.artifact}/version/${props.version}/helm/manifest`, method: 'GET' }, props));
8
8
  }
9
9
  /**
10
10
  * Get Helm Artifact Manifest
@@ -0,0 +1,35 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { MetadataKeysResponseResponse } from '../responses/MetadataKeysResponseResponse';
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 GetMetadataKeysQueryQueryParams {
11
+ account_identifier: string;
12
+ org_identifier?: string;
13
+ project_identifier?: string;
14
+ /**
15
+ * @format int64
16
+ * @default 0
17
+ */
18
+ page?: number;
19
+ /**
20
+ * @format int64
21
+ * @default 20
22
+ */
23
+ size?: number;
24
+ search_term?: string;
25
+ }
26
+ export type GetMetadataKeysOkResponse = ResponseWithPagination<MetadataKeysResponseResponse>;
27
+ export type GetMetadataKeysErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
28
+ export interface GetMetadataKeysProps extends Omit<FetcherOptions<GetMetadataKeysQueryQueryParams, unknown>, 'url'> {
29
+ queryParams: GetMetadataKeysQueryQueryParams;
30
+ }
31
+ export declare function getMetadataKeys(props: GetMetadataKeysProps): Promise<GetMetadataKeysOkResponse>;
32
+ /**
33
+ * Retrieve a paginated list of all available metadata keys.
34
+ */
35
+ export declare function useGetMetadataKeysQuery(props: GetMetadataKeysProps, options?: Omit<UseQueryOptions<GetMetadataKeysOkResponse, GetMetadataKeysErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetMetadataKeysOkResponse, 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 getMetadataKeys(props) {
7
+ return fetcher(Object.assign({ url: `/v2/metadata/keys`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Retrieve a paginated list of all available metadata keys.
11
+ */
12
+ export function useGetMetadataKeysQuery(props, options) {
13
+ return useQuery(['GetMetadataKeys', props.queryParams], ({ signal }) => getMetadataKeys(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,28 @@
1
+ import { UseQueryOptions } 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 { ResponseWithPagination } from '../helpers';
9
+ import { FetcherOptions } from '../../../../fetcher/index.js';
10
+ export interface GetMetadataQueryQueryParams {
11
+ account_identifier: string;
12
+ registry_identifier: string;
13
+ path?: string;
14
+ package?: string;
15
+ version?: string;
16
+ }
17
+ export type GetMetadataOkResponse = ResponseWithPagination<MetadataResponseResponse>;
18
+ export type GetMetadataErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
19
+ export interface GetMetadataProps extends Omit<FetcherOptions<GetMetadataQueryQueryParams, unknown>, 'url'> {
20
+ queryParams: GetMetadataQueryQueryParams;
21
+ }
22
+ export declare function getMetadata(props: GetMetadataProps): Promise<GetMetadataOkResponse>;
23
+ /**
24
+ * Retrieves all metadata key-value pairs associated with a specific entity.
25
+ * This endpoint returns metadata for packages, versions, or registry-level entities based on the provided path.
26
+ *
27
+ */
28
+ export declare function useGetMetadataQuery(props: GetMetadataProps, options?: Omit<UseQueryOptions<GetMetadataOkResponse, GetMetadataErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetMetadataOkResponse, import("..").Error>;
@@ -0,0 +1,16 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ import { useQuery } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../fetcher/index.js';
6
+ export function getMetadata(props) {
7
+ return fetcher(Object.assign({ url: `/v2/metadata`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Retrieves all metadata key-value pairs associated with a specific entity.
11
+ * This endpoint returns metadata for packages, versions, or registry-level entities based on the provided path.
12
+ *
13
+ */
14
+ export function useGetMetadataQuery(props, options) {
15
+ return useQuery(['GetMetadata', props.queryParams], ({ signal }) => getMetadata(Object.assign(Object.assign({}, props), { signal })), options);
16
+ }
@@ -0,0 +1,36 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { MetadataValuesResponseResponse } from '../responses/MetadataValuesResponseResponse';
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 GetMetadataValuesQueryQueryParams {
11
+ account_identifier: string;
12
+ org_identifier?: string;
13
+ project_identifier?: string;
14
+ key: string;
15
+ /**
16
+ * @format int64
17
+ * @default 0
18
+ */
19
+ page?: number;
20
+ /**
21
+ * @format int64
22
+ * @default 20
23
+ */
24
+ size?: number;
25
+ search_term?: string;
26
+ }
27
+ export type GetMetadataValuesOkResponse = ResponseWithPagination<MetadataValuesResponseResponse>;
28
+ export type GetMetadataValuesErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
29
+ export interface GetMetadataValuesProps extends Omit<FetcherOptions<GetMetadataValuesQueryQueryParams, unknown>, 'url'> {
30
+ queryParams: GetMetadataValuesQueryQueryParams;
31
+ }
32
+ export declare function getMetadataValues(props: GetMetadataValuesProps): Promise<GetMetadataValuesOkResponse>;
33
+ /**
34
+ * Retrieve all possible values for a specific metadata key.
35
+ */
36
+ export declare function useGetMetadataValuesQuery(props: GetMetadataValuesProps, options?: Omit<UseQueryOptions<GetMetadataValuesOkResponse, GetMetadataValuesErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetMetadataValuesOkResponse, 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 getMetadataValues(props) {
7
+ return fetcher(Object.assign({ url: `/v2/metadata/values`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Retrieve all possible values for a specific metadata key.
11
+ */
12
+ export function useGetMetadataValuesQuery(props, options) {
13
+ return useQuery(['GetMetadataValues', props.queryParams], ({ signal }) => getMetadataValues(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -4,7 +4,7 @@
4
4
  import { useQuery } from '@tanstack/react-query';
5
5
  import { fetcher } from '../../../../fetcher/index.js';
6
6
  export function getMigrationLogsForImage(props) {
7
- return fetcher(Object.assign({ url: `/replication/rules/${props.id}/migration/images/${props.image_id}/logs`, method: 'GET' }, props));
7
+ return fetcher(Object.assign({ url: `/v1/replication/rules/${props.id}/migration/images/${props.image_id}/logs`, method: 'GET' }, props));
8
8
  }
9
9
  /**
10
10
  * Get migration logs for an image
@@ -4,7 +4,7 @@
4
4
  import { useQuery } from '@tanstack/react-query';
5
5
  import { fetcher } from '../../../../fetcher/index.js';
6
6
  export function getOciArtifactTags(props) {
7
- return fetcher(Object.assign({ url: `/registry/${props.registry_ref}/artifact/${props.artifact}/tags`, method: 'GET' }, props));
7
+ return fetcher(Object.assign({ url: `/v1/registry/${props.registry_ref}/artifact/${props.artifact}/tags`, method: 'GET' }, props));
8
8
  }
9
9
  /**
10
10
  * Lists OCI Artifact Tags.
@@ -4,7 +4,7 @@
4
4
  import { useQuery } from '@tanstack/react-query';
5
5
  import { fetcher } from '../../../../fetcher/index.js';
6
6
  export function getRegistry(props) {
7
- return fetcher(Object.assign({ url: `/registry/${props.registry_ref}`, method: 'GET' }, props));
7
+ return fetcher(Object.assign({ url: `/v1/registry/${props.registry_ref}`, method: 'GET' }, props));
8
8
  }
9
9
  /**
10
10
  * Returns Registry Details in the account for the given key
@@ -4,7 +4,7 @@
4
4
  import { useQuery } from '@tanstack/react-query';
5
5
  import { fetcher } from '../../../../fetcher/index.js';
6
6
  export function getReplicationRule(props) {
7
- return fetcher(Object.assign({ url: `/replication/rules/${props.id}`, method: 'GET' }, props));
7
+ return fetcher(Object.assign({ url: `/v1/replication/rules/${props.id}`, method: 'GET' }, props));
8
8
  }
9
9
  /**
10
10
  * Get a replication rule
@@ -4,7 +4,7 @@
4
4
  import { useQuery } from '@tanstack/react-query';
5
5
  import { fetcher } from '../../../../fetcher/index.js';
6
6
  export function getStorageDetails(props) {
7
- return fetcher(Object.assign({ url: `/spaces/${props.space_ref}/details`, method: 'GET' }, props));
7
+ return fetcher(Object.assign({ url: `/v1/spaces/${props.space_ref}/details`, method: 'GET' }, props));
8
8
  }
9
9
  /**
10
10
  * Get storage details for given space
@@ -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 GetWebhookExecutionQueryPathParams {
12
13
  webhook_execution_id: string;
13
14
  }
14
15
  export type GetWebhookExecutionOkResponse = ResponseWithPagination<WebhookExecutionResponseResponse>;
15
- export type GetWebhookExecutionErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | InternalServerErrorResponse;
16
+ export type GetWebhookExecutionErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
16
17
  export interface GetWebhookExecutionProps extends GetWebhookExecutionQueryPathParams, Omit<FetcherOptions<unknown, unknown>, 'url'> {
17
18
  }
18
19
  export declare function getWebhookExecution(props: GetWebhookExecutionProps): Promise<GetWebhookExecutionOkResponse>;
@@ -4,7 +4,7 @@
4
4
  import { useQuery } from '@tanstack/react-query';
5
5
  import { fetcher } from '../../../../fetcher/index.js';
6
6
  export function getWebhookExecution(props) {
7
- return fetcher(Object.assign({ url: `/registry/${props.registry_ref}/webhooks/${props.webhook_identifier}/executions/${props.webhook_execution_id}`, method: 'GET' }, props));
7
+ return fetcher(Object.assign({ url: `/v1/registry/${props.registry_ref}/webhooks/${props.webhook_identifier}/executions/${props.webhook_execution_id}`, method: 'GET' }, props));
8
8
  }
9
9
  /**
10
10
  * Returns Webhook Execution Details
@@ -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 { ResponseWithPagination } from '../helpers';
8
9
  import { FetcherOptions } from '../../../../fetcher/index.js';
@@ -11,7 +12,7 @@ export interface GetWebhookQueryPathParams {
11
12
  webhook_identifier: string;
12
13
  }
13
14
  export type GetWebhookOkResponse = ResponseWithPagination<WebhookResponseResponse>;
14
- export type GetWebhookErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | InternalServerErrorResponse;
15
+ export type GetWebhookErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
15
16
  export interface GetWebhookProps extends GetWebhookQueryPathParams, Omit<FetcherOptions<unknown, unknown>, 'url'> {
16
17
  }
17
18
  export declare function getWebhook(props: GetWebhookProps): Promise<GetWebhookOkResponse>;
@@ -4,7 +4,7 @@
4
4
  import { useQuery } from '@tanstack/react-query';
5
5
  import { fetcher } from '../../../../fetcher/index.js';
6
6
  export function getWebhook(props) {
7
- return fetcher(Object.assign({ url: `/registry/${props.registry_ref}/webhooks/${props.webhook_identifier}`, method: 'GET' }, props));
7
+ return fetcher(Object.assign({ url: `/v1/registry/${props.registry_ref}/webhooks/${props.webhook_identifier}`, method: 'GET' }, props));
8
8
  }
9
9
  /**
10
10
  * Returns Webhook 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 listArtifactLabels(props) {
7
- return fetcher(Object.assign({ url: `/registry/${props.registry_ref}/artifact/labels`, method: 'GET' }, props));
7
+ return fetcher(Object.assign({ url: `/v1/registry/${props.registry_ref}/artifact/labels`, method: 'GET' }, props));
8
8
  }
9
9
  /**
10
10
  * List Artifact Labels.
@@ -4,7 +4,7 @@
4
4
  import { useQuery } from '@tanstack/react-query';
5
5
  import { fetcher } from '../../../../fetcher/index.js';
6
6
  export function listMigrationImages(props) {
7
- return fetcher(Object.assign({ url: `/replication/rules/${props.id}/migration/images`, method: 'GET' }, props));
7
+ return fetcher(Object.assign({ url: `/v1/replication/rules/${props.id}/migration/images`, method: 'GET' }, props));
8
8
  }
9
9
  /**
10
10
  * List migration images given an id
@@ -0,0 +1,48 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ListPackageResponseResponse } from '../responses/ListPackageResponseResponse';
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 ListPackagesQueryQueryParams {
11
+ account_identifier: string;
12
+ org_identifier?: string;
13
+ project_identifier?: string;
14
+ registry_identifier?: string[];
15
+ metadata?: 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
+ * @default "ASC"
28
+ */
29
+ sort_order?: 'ASC' | 'DESC';
30
+ sort_field?: string;
31
+ search_term?: string;
32
+ artifact_type?: 'dataset' | 'model';
33
+ package_type?: string[];
34
+ /**
35
+ * @default "EXCLUDE"
36
+ */
37
+ deleted?: 'EXCLUDE' | 'INCLUDE' | 'ONLY';
38
+ }
39
+ export type ListPackagesOkResponse = ResponseWithPagination<ListPackageResponseResponse>;
40
+ export type ListPackagesErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
41
+ export interface ListPackagesProps extends Omit<FetcherOptions<ListPackagesQueryQueryParams, unknown>, 'url'> {
42
+ queryParams: ListPackagesQueryQueryParams;
43
+ }
44
+ export declare function listPackages(props: ListPackagesProps): Promise<ListPackagesOkResponse>;
45
+ /**
46
+ * Lists all the Image/Package
47
+ */
48
+ export declare function useListPackagesQuery(props: ListPackagesProps, options?: Omit<UseQueryOptions<ListPackagesOkResponse, ListPackagesErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListPackagesOkResponse, 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 listPackages(props) {
7
+ return fetcher(Object.assign({ url: `/v2/packages`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Lists all the Image/Package
11
+ */
12
+ export function useListPackagesQuery(props, options) {
13
+ return useQuery(['ListPackages', props.queryParams], ({ signal }) => listPackages(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,48 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ListRegistryResponseResponse } from '../responses/ListRegistryResponseResponse';
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 ListRegistriesQueryQueryParams {
11
+ account_identifier: string;
12
+ org_identifier?: string;
13
+ project_identifier?: string;
14
+ package_type?: string[];
15
+ type?: 'UPSTREAM' | 'VIRTUAL';
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
+ scope?: 'ancestors' | 'descendants' | 'none';
34
+ /**
35
+ * @default "EXCLUDE"
36
+ */
37
+ deleted?: 'EXCLUDE' | 'INCLUDE' | 'ONLY';
38
+ }
39
+ export type ListRegistriesOkResponse = ResponseWithPagination<ListRegistryResponseResponse>;
40
+ export type ListRegistriesErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
41
+ export interface ListRegistriesProps extends Omit<FetcherOptions<ListRegistriesQueryQueryParams, unknown>, 'url'> {
42
+ queryParams: ListRegistriesQueryQueryParams;
43
+ }
44
+ export declare function listRegistries(props: ListRegistriesProps): Promise<ListRegistriesOkResponse>;
45
+ /**
46
+ * Lists all the registries.
47
+ */
48
+ export declare function useListRegistriesQuery(props: ListRegistriesProps, options?: Omit<UseQueryOptions<ListRegistriesOkResponse, ListRegistriesErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListRegistriesOkResponse, import("..").Error>;