@harnessio/react-har-service-client 0.35.0 → 0.37.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 (208) 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/useEvaluateArtifactScanMutation.d.ts +21 -0
  31. package/dist/har-service/src/services/hooks/useEvaluateArtifactScanMutation.js +14 -0
  32. package/dist/har-service/src/services/hooks/useFindSpaceLabelQuery.js +1 -1
  33. package/dist/har-service/src/services/hooks/useGetAllArtifactVersionsQuery.js +1 -1
  34. package/dist/har-service/src/services/hooks/useGetAllArtifactsByRegistryQuery.js +1 -1
  35. package/dist/har-service/src/services/hooks/useGetAllHarnessArtifactsQuery.js +1 -1
  36. package/dist/har-service/src/services/hooks/useGetAllRegistriesQuery.js +1 -1
  37. package/dist/har-service/src/services/hooks/useGetArtifactDeploymentsQuery.js +1 -1
  38. package/dist/har-service/src/services/hooks/useGetArtifactDetailsQuery.js +1 -1
  39. package/dist/har-service/src/services/hooks/useGetArtifactFileQuery.js +1 -1
  40. package/dist/har-service/src/services/hooks/useGetArtifactFilesQuery.js +1 -1
  41. package/dist/har-service/src/services/hooks/useGetArtifactScanDetailsQuery.d.ts +21 -0
  42. package/dist/har-service/src/services/hooks/useGetArtifactScanDetailsQuery.js +14 -0
  43. package/dist/har-service/src/services/hooks/useGetArtifactScansQuery.d.ts +40 -0
  44. package/dist/har-service/src/services/hooks/useGetArtifactScansQuery.js +14 -0
  45. package/dist/har-service/src/services/hooks/useGetArtifactStatsForRegistryQuery.js +1 -1
  46. package/dist/har-service/src/services/hooks/useGetArtifactStatsForSpaceQuery.js +1 -1
  47. package/dist/har-service/src/services/hooks/useGetArtifactStatsQuery.js +1 -1
  48. package/dist/har-service/src/services/hooks/useGetArtifactSummaryQuery.js +1 -1
  49. package/dist/har-service/src/services/hooks/useGetArtifactVersionSummaryQuery.js +1 -1
  50. package/dist/har-service/src/services/hooks/useGetBulkDownloadRequestStatusQuery.d.ts +25 -0
  51. package/dist/har-service/src/services/hooks/useGetBulkDownloadRequestStatusQuery.js +14 -0
  52. package/dist/har-service/src/services/hooks/useGetClientSetupDetailsQuery.js +1 -1
  53. package/dist/har-service/src/services/hooks/useGetDockerArtifactDetailsQuery.js +1 -1
  54. package/dist/har-service/src/services/hooks/useGetDockerArtifactIntegrationDetailsQuery.js +1 -1
  55. package/dist/har-service/src/services/hooks/useGetDockerArtifactLayersQuery.js +1 -1
  56. package/dist/har-service/src/services/hooks/useGetDockerArtifactManifestQuery.js +1 -1
  57. package/dist/har-service/src/services/hooks/useGetDockerArtifactManifestsQuery.js +1 -1
  58. package/dist/har-service/src/services/hooks/useGetFileQuery.d.ts +28 -0
  59. package/dist/har-service/src/services/hooks/useGetFileQuery.js +14 -0
  60. package/dist/har-service/src/services/hooks/useGetHelmArtifactDetailsQuery.js +1 -1
  61. package/dist/har-service/src/services/hooks/useGetHelmArtifactManifestQuery.js +1 -1
  62. package/dist/har-service/src/services/hooks/useGetMetadataKeysQuery.d.ts +35 -0
  63. package/dist/har-service/src/services/hooks/useGetMetadataKeysQuery.js +14 -0
  64. package/dist/har-service/src/services/hooks/useGetMetadataQuery.d.ts +28 -0
  65. package/dist/har-service/src/services/hooks/useGetMetadataQuery.js +16 -0
  66. package/dist/har-service/src/services/hooks/useGetMetadataValuesQuery.d.ts +36 -0
  67. package/dist/har-service/src/services/hooks/useGetMetadataValuesQuery.js +14 -0
  68. package/dist/har-service/src/services/hooks/useGetMigrationLogsForImageQuery.js +1 -1
  69. package/dist/har-service/src/services/hooks/useGetOciArtifactTagsQuery.js +1 -1
  70. package/dist/har-service/src/services/hooks/useGetRegistryQuery.js +1 -1
  71. package/dist/har-service/src/services/hooks/useGetReplicationRuleQuery.js +1 -1
  72. package/dist/har-service/src/services/hooks/useGetStorageDetailsQuery.js +1 -1
  73. package/dist/har-service/src/services/hooks/useGetWebhookExecutionQuery.d.ts +2 -1
  74. package/dist/har-service/src/services/hooks/useGetWebhookExecutionQuery.js +1 -1
  75. package/dist/har-service/src/services/hooks/useGetWebhookQuery.d.ts +2 -1
  76. package/dist/har-service/src/services/hooks/useGetWebhookQuery.js +1 -1
  77. package/dist/har-service/src/services/hooks/useListArtifactLabelsQuery.js +1 -1
  78. package/dist/har-service/src/services/hooks/useListMigrationImagesQuery.js +1 -1
  79. package/dist/har-service/src/services/hooks/useListPackagesQuery.d.ts +48 -0
  80. package/dist/har-service/src/services/hooks/useListPackagesQuery.js +14 -0
  81. package/dist/har-service/src/services/hooks/useListRegistriesQuery.d.ts +48 -0
  82. package/dist/har-service/src/services/hooks/useListRegistriesQuery.js +14 -0
  83. package/dist/har-service/src/services/hooks/useListReplicationRulesQuery.js +1 -1
  84. package/dist/har-service/src/services/hooks/useListSpaceLabelValuesQuery.js +1 -1
  85. package/dist/har-service/src/services/hooks/useListSpaceLabelsQuery.js +1 -1
  86. package/dist/har-service/src/services/hooks/useListVersionsQuery.d.ts +48 -0
  87. package/dist/har-service/src/services/hooks/useListVersionsQuery.js +14 -0
  88. package/dist/har-service/src/services/hooks/useListWebhookExecutionsQuery.d.ts +2 -1
  89. package/dist/har-service/src/services/hooks/useListWebhookExecutionsQuery.js +1 -1
  90. package/dist/har-service/src/services/hooks/useListWebhooksQuery.js +1 -1
  91. package/dist/har-service/src/services/hooks/useModifyRegistryMutation.js +1 -1
  92. package/dist/har-service/src/services/hooks/useQuarantineFilePathMutation.js +1 -1
  93. package/dist/har-service/src/services/hooks/useReTriggerWebhookExecutionQuery.d.ts +2 -1
  94. package/dist/har-service/src/services/hooks/useReTriggerWebhookExecutionQuery.js +1 -1
  95. package/dist/har-service/src/services/hooks/useRedirectHarnessArtifactQuery.js +1 -1
  96. package/dist/har-service/src/services/hooks/useRestorePackageMutation.d.ts +30 -0
  97. package/dist/har-service/src/services/hooks/useRestorePackageMutation.js +14 -0
  98. package/dist/har-service/src/services/hooks/useRestoreRegistryMutation.d.ts +30 -0
  99. package/dist/har-service/src/services/hooks/useRestoreRegistryMutation.js +14 -0
  100. package/dist/har-service/src/services/hooks/useRestoreVersionMutation.d.ts +30 -0
  101. package/dist/har-service/src/services/hooks/useRestoreVersionMutation.js +14 -0
  102. package/dist/har-service/src/services/hooks/useSaveMetadataMutation.d.ts +28 -0
  103. package/dist/har-service/src/services/hooks/useSaveMetadataMutation.js +17 -0
  104. package/dist/har-service/src/services/hooks/useSaveSpaceLabelMutation.js +1 -1
  105. package/dist/har-service/src/services/hooks/useSearchFilesQuery.d.ts +34 -0
  106. package/dist/har-service/src/services/hooks/useSearchFilesQuery.js +14 -0
  107. package/dist/har-service/src/services/hooks/useStartMigrationMutation.js +1 -1
  108. package/dist/har-service/src/services/hooks/useStopMigrationMutation.js +1 -1
  109. package/dist/har-service/src/services/hooks/useUpdateArtifactLabelsMutation.js +1 -1
  110. package/dist/har-service/src/services/hooks/useUpdateMetadataMutation.d.ts +29 -0
  111. package/dist/har-service/src/services/hooks/useUpdateMetadataMutation.js +18 -0
  112. package/dist/har-service/src/services/hooks/useUpdateReplicationRuleMutation.js +1 -1
  113. package/dist/har-service/src/services/hooks/useUpdateSpaceLabelMutation.js +1 -1
  114. package/dist/har-service/src/services/hooks/useUpdateSpaceLabelValueMutation.js +1 -1
  115. package/dist/har-service/src/services/hooks/useUpdateWebhookMutation.d.ts +2 -1
  116. package/dist/har-service/src/services/hooks/useUpdateWebhookMutation.js +1 -1
  117. package/dist/har-service/src/services/index.d.ts +85 -0
  118. package/dist/har-service/src/services/index.js +24 -0
  119. package/dist/har-service/src/services/requestBodies/AddTagsRequestRequestBody.d.ts +2 -0
  120. package/dist/har-service/src/services/requestBodies/AddTagsRequestRequestBody.js +1 -0
  121. package/dist/har-service/src/services/requestBodies/BulkDownloadFilesRequestRequestBody.d.ts +2 -0
  122. package/dist/har-service/src/services/requestBodies/BulkDownloadFilesRequestRequestBody.js +1 -0
  123. package/dist/har-service/src/services/requestBodies/MetadataRequestRequestBody.d.ts +2 -0
  124. package/dist/har-service/src/services/requestBodies/MetadataRequestRequestBody.js +1 -0
  125. package/dist/har-service/src/services/responses/AddTagsResponseResponse.d.ts +4 -0
  126. package/dist/har-service/src/services/responses/AddTagsResponseResponse.js +1 -0
  127. package/dist/har-service/src/services/responses/ArtifactScanDetailsResponseResponse.d.ts +8 -0
  128. package/dist/har-service/src/services/responses/ArtifactScanDetailsResponseResponse.js +4 -0
  129. package/dist/har-service/src/services/responses/ArtifactScanEvaluateRequestAcceptedResponse.d.ts +6 -0
  130. package/dist/har-service/src/services/responses/ArtifactScanEvaluateRequestAcceptedResponse.js +1 -0
  131. package/dist/har-service/src/services/responses/CopyResponseResponse.d.ts +4 -0
  132. package/dist/har-service/src/services/responses/CopyResponseResponse.js +1 -0
  133. package/dist/har-service/src/services/responses/DownloadFileResponseResponse.d.ts +4 -0
  134. package/dist/har-service/src/services/responses/DownloadFileResponseResponse.js +4 -0
  135. package/dist/har-service/src/services/responses/GetBulkDownloadRequestStatusResponseResponse.d.ts +6 -0
  136. package/dist/har-service/src/services/responses/GetBulkDownloadRequestStatusResponseResponse.js +1 -0
  137. package/dist/har-service/src/services/responses/ListArtifactScanResponseResponse.d.ts +32 -0
  138. package/dist/har-service/src/services/responses/ListArtifactScanResponseResponse.js +1 -0
  139. package/dist/har-service/src/services/responses/ListFilesResponseResponse.d.ts +30 -0
  140. package/dist/har-service/src/services/responses/ListFilesResponseResponse.js +1 -0
  141. package/dist/har-service/src/services/responses/ListPackageResponseResponse.d.ts +6 -0
  142. package/dist/har-service/src/services/responses/ListPackageResponseResponse.js +1 -0
  143. package/dist/har-service/src/services/responses/ListVersionResponseResponse.d.ts +6 -0
  144. package/dist/har-service/src/services/responses/ListVersionResponseResponse.js +1 -0
  145. package/dist/har-service/src/services/responses/MetadataKeysResponseResponse.d.ts +5 -0
  146. package/dist/har-service/src/services/responses/MetadataKeysResponseResponse.js +1 -0
  147. package/dist/har-service/src/services/responses/MetadataResponseResponse.d.ts +6 -0
  148. package/dist/har-service/src/services/responses/MetadataResponseResponse.js +1 -0
  149. package/dist/har-service/src/services/responses/MetadataValuesResponseResponse.d.ts +5 -0
  150. package/dist/har-service/src/services/responses/MetadataValuesResponseResponse.js +1 -0
  151. package/dist/har-service/src/services/schemas/AddTags.d.ts +5 -0
  152. package/dist/har-service/src/services/schemas/AddTags.js +4 -0
  153. package/dist/har-service/src/services/schemas/ApiErrors.d.ts +18 -0
  154. package/dist/har-service/src/services/schemas/ApiErrors.js +4 -0
  155. package/dist/har-service/src/services/schemas/ArtifactDetail.d.ts +8 -0
  156. package/dist/har-service/src/services/schemas/ArtifactMetadata.d.ts +5 -4
  157. package/dist/har-service/src/services/schemas/ArtifactScan.d.ts +39 -0
  158. package/dist/har-service/src/services/schemas/ArtifactScan.js +1 -0
  159. package/dist/har-service/src/services/schemas/ArtifactScanEvaluateRequestStatus.d.ts +4 -0
  160. package/dist/har-service/src/services/schemas/ArtifactScanEvaluateRequestStatus.js +4 -0
  161. package/dist/har-service/src/services/schemas/ArtifactSummary.d.ts +3 -4
  162. package/dist/har-service/src/services/schemas/ArtifactVersionMetadata.d.ts +8 -0
  163. package/dist/har-service/src/services/schemas/ArtifactVersionSummary.d.ts +3 -4
  164. package/dist/har-service/src/services/schemas/BulkDownloadFilesRequestInput.d.ts +22 -0
  165. package/dist/har-service/src/services/schemas/BulkDownloadFilesRequestInput.js +4 -0
  166. package/dist/har-service/src/services/schemas/BulkDownloadRequestStatus.d.ts +4 -0
  167. package/dist/har-service/src/services/schemas/BulkDownloadRequestStatus.js +4 -0
  168. package/dist/har-service/src/services/schemas/BulkDownloadRequestStatusOutput.d.ts +8 -0
  169. package/dist/har-service/src/services/schemas/BulkDownloadRequestStatusOutput.js +1 -0
  170. package/dist/har-service/src/services/schemas/Error.d.ts +10 -3
  171. package/dist/har-service/src/services/schemas/ExtraHeader.d.ts +1 -0
  172. package/dist/har-service/src/services/schemas/FileMetadata.d.ts +9 -0
  173. package/dist/har-service/src/services/schemas/FileMetadata.js +4 -0
  174. package/dist/har-service/src/services/schemas/ListPackage.d.ts +35 -0
  175. package/dist/har-service/src/services/schemas/ListPackage.js +1 -0
  176. package/dist/har-service/src/services/schemas/ListRegistry.d.ts +2 -0
  177. package/dist/har-service/src/services/schemas/ListVersion.d.ts +35 -0
  178. package/dist/har-service/src/services/schemas/ListVersion.js +1 -0
  179. package/dist/har-service/src/services/schemas/Meta.d.ts +17 -0
  180. package/dist/har-service/src/services/schemas/Meta.js +4 -0
  181. package/dist/har-service/src/services/schemas/MetadataInput.d.ts +45 -0
  182. package/dist/har-service/src/services/schemas/MetadataInput.js +1 -0
  183. package/dist/har-service/src/services/schemas/MetadataItemInput.d.ts +15 -0
  184. package/dist/har-service/src/services/schemas/MetadataItemInput.js +4 -0
  185. package/dist/har-service/src/services/schemas/MetadataItemOutput.d.ts +22 -0
  186. package/dist/har-service/src/services/schemas/MetadataItemOutput.js +1 -0
  187. package/dist/har-service/src/services/schemas/MetadataOutput.d.ts +11 -0
  188. package/dist/har-service/src/services/schemas/MetadataOutput.js +1 -0
  189. package/dist/har-service/src/services/schemas/MetadataType.d.ts +5 -0
  190. package/dist/har-service/src/services/schemas/MetadataType.js +4 -0
  191. package/dist/har-service/src/services/schemas/PackageMetadata.d.ts +30 -0
  192. package/dist/har-service/src/services/schemas/PackageMetadata.js +1 -0
  193. package/dist/har-service/src/services/schemas/PackageType.d.ts +4 -2
  194. package/dist/har-service/src/services/schemas/Registry.d.ts +3 -4
  195. package/dist/har-service/src/services/schemas/RegistryArtifactMetadata.d.ts +3 -5
  196. package/dist/har-service/src/services/schemas/RegistryMetadata.d.ts +2 -4
  197. package/dist/har-service/src/services/schemas/RegistryRequest.d.ts +1 -1
  198. package/dist/har-service/src/services/schemas/ScanMeta.d.ts +23 -0
  199. package/dist/har-service/src/services/schemas/ScanMeta.js +4 -0
  200. package/dist/har-service/src/services/schemas/Status.d.ts +1 -1
  201. package/dist/har-service/src/services/schemas/UpstreamConfig.d.ts +2 -0
  202. package/dist/har-service/src/services/schemas/UpstreamProxyConfigFirewallMode.d.ts +4 -0
  203. package/dist/har-service/src/services/schemas/UpstreamProxyConfigFirewallMode.js +4 -0
  204. package/dist/har-service/src/services/schemas/V3Error.d.ts +7 -0
  205. package/dist/har-service/src/services/schemas/V3Error.js +1 -0
  206. package/dist/har-service/src/services/schemas/VersionMetadata.d.ts +40 -0
  207. package/dist/har-service/src/services/schemas/VersionMetadata.js +1 -0
  208. package/package.json +1 -1
@@ -0,0 +1,21 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ArtifactScanDetailsResponseResponse } from '../responses/ArtifactScanDetailsResponseResponse';
3
+ import type { V3Error } from '../schemas/V3Error';
4
+ import type { ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
+ export interface GetArtifactScanDetailsQueryPathParams {
7
+ scan_id: string;
8
+ }
9
+ export interface GetArtifactScanDetailsQueryQueryParams {
10
+ account_identifier: string;
11
+ }
12
+ export type GetArtifactScanDetailsOkResponse = ResponseWithPagination<ArtifactScanDetailsResponseResponse>;
13
+ export type GetArtifactScanDetailsErrorResponse = V3Error;
14
+ export interface GetArtifactScanDetailsProps extends GetArtifactScanDetailsQueryPathParams, Omit<FetcherOptions<GetArtifactScanDetailsQueryQueryParams, unknown>, 'url'> {
15
+ queryParams: GetArtifactScanDetailsQueryQueryParams;
16
+ }
17
+ export declare function getArtifactScanDetails(props: GetArtifactScanDetailsProps): Promise<GetArtifactScanDetailsOkResponse>;
18
+ /**
19
+ * Get the details of a artifact scan
20
+ */
21
+ export declare function useGetArtifactScanDetailsQuery(props: GetArtifactScanDetailsProps, options?: Omit<UseQueryOptions<GetArtifactScanDetailsOkResponse, GetArtifactScanDetailsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetArtifactScanDetailsOkResponse, V3Error>;
@@ -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 getArtifactScanDetails(props) {
7
+ return fetcher(Object.assign({ url: `/v3/scans/${props.scan_id}/details`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Get the details of a artifact scan
11
+ */
12
+ export function useGetArtifactScanDetailsQuery(props, options) {
13
+ return useQuery(['GetArtifactScanDetails', props.scan_id, props.queryParams], ({ signal }) => getArtifactScanDetails(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,40 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ListArtifactScanResponseResponse } from '../responses/ListArtifactScanResponseResponse';
3
+ import type { V3Error } from '../schemas/V3Error';
4
+ import type { ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
+ export interface GetArtifactScansQueryQueryParams {
7
+ account_identifier: string;
8
+ org_identifier?: string;
9
+ project_identifier?: string;
10
+ package_type?: string[];
11
+ registry_id?: string[];
12
+ policy_set_ref?: string;
13
+ scan_status?: string;
14
+ /**
15
+ * @format int64
16
+ * @default 0
17
+ */
18
+ page?: number;
19
+ /**
20
+ * @format int64
21
+ * @default 20
22
+ */
23
+ size?: number;
24
+ /**
25
+ * @default "ASC"
26
+ */
27
+ sort_order?: 'ASC' | 'DESC';
28
+ sort_field?: string;
29
+ search_term?: string;
30
+ }
31
+ export type GetArtifactScansOkResponse = ResponseWithPagination<ListArtifactScanResponseResponse>;
32
+ export type GetArtifactScansErrorResponse = V3Error;
33
+ export interface GetArtifactScansProps extends Omit<FetcherOptions<GetArtifactScansQueryQueryParams, unknown>, 'url'> {
34
+ queryParams: GetArtifactScansQueryQueryParams;
35
+ }
36
+ export declare function getArtifactScans(props: GetArtifactScansProps): Promise<GetArtifactScansOkResponse>;
37
+ /**
38
+ * Get the list of artifact scan result for a particular scope
39
+ */
40
+ export declare function useGetArtifactScansQuery(props: GetArtifactScansProps, options?: Omit<UseQueryOptions<GetArtifactScansOkResponse, GetArtifactScansErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetArtifactScansOkResponse, V3Error>;
@@ -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 getArtifactScans(props) {
7
+ return fetcher(Object.assign({ url: `/v3/scans`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Get the list of artifact scan result for a particular scope
11
+ */
12
+ export function useGetArtifactScansQuery(props, options) {
13
+ return useQuery(['GetArtifactScans', props.queryParams], ({ signal }) => getArtifactScans(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 getArtifactStatsForRegistry(props) {
7
- return fetcher(Object.assign({ url: `/registry/${props.registry_ref}/artifact/stats`, method: 'GET' }, props));
7
+ return fetcher(Object.assign({ url: `/v1/registry/${props.registry_ref}/artifact/stats`, method: 'GET' }, props));
8
8
  }
9
9
  /**
10
10
  * Get Artifact Stats.
@@ -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