@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,30 @@
1
+ import type { FileMetadata } from '../schemas/FileMetadata';
2
+ export interface ListFilesResponseResponse {
3
+ /**
4
+ * A list of file
5
+ */
6
+ data: FileMetadata[];
7
+ /**
8
+ * The total number of items
9
+ * @format int64
10
+ * @example 1
11
+ */
12
+ itemCount: number;
13
+ /**
14
+ * The total number of pages
15
+ * @format int64
16
+ * @example 100
17
+ */
18
+ pageCount: number;
19
+ /**
20
+ * The current page
21
+ * @format int64
22
+ * @example 0
23
+ */
24
+ pageIndex: number;
25
+ /**
26
+ * The number of items per page
27
+ * @example 1
28
+ */
29
+ pageSize: number;
30
+ }
@@ -0,0 +1,6 @@
1
+ import type { ListPackage } from '../schemas/ListPackage';
2
+ import type { Status } from '../schemas/Status';
3
+ export interface ListPackageResponseResponse {
4
+ data: ListPackage;
5
+ status: Status;
6
+ }
@@ -0,0 +1,6 @@
1
+ import type { ListVersion } from '../schemas/ListVersion';
2
+ import type { Status } from '../schemas/Status';
3
+ export interface ListVersionResponseResponse {
4
+ data: ListVersion;
5
+ status: Status;
6
+ }
@@ -0,0 +1,5 @@
1
+ import type { Status } from '../schemas/Status';
2
+ export interface MetadataKeysResponseResponse {
3
+ data: string[];
4
+ status: Status;
5
+ }
@@ -0,0 +1,6 @@
1
+ import type { MetadataOutput } from '../schemas/MetadataOutput';
2
+ import type { Status } from '../schemas/Status';
3
+ export interface MetadataResponseResponse {
4
+ data: MetadataOutput;
5
+ status: Status;
6
+ }
@@ -0,0 +1,5 @@
1
+ import type { Status } from '../schemas/Status';
2
+ export interface MetadataValuesResponseResponse {
3
+ data: string[];
4
+ status: Status;
5
+ }
@@ -0,0 +1,5 @@
1
+ export interface AddTags {
2
+ package: string;
3
+ tags: string[];
4
+ version: string;
5
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -0,0 +1,18 @@
1
+ export interface ApiErrors {
2
+ /**
3
+ * For some errors that could be handled programmatically, a short string indicating the [error code](https://docs.stripe.com/error-codes) reported.
4
+ */
5
+ code?: string;
6
+ /**
7
+ * A human-readable message providing more details about the error. These messages can be shown to users.
8
+ */
9
+ message?: string;
10
+ /**
11
+ * If the error is parameter-specific, the parameter related to the error. For example, we can use this to display a message near the correct form field.
12
+ */
13
+ param?: string;
14
+ /**
15
+ * The type of error returned.
16
+ */
17
+ type: 'API_ERROR' | 'AUTHENTICATION_ERROR' | 'INVALID_REQUEST_ERROR' | 'PERMISSION_ERROR';
18
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -21,10 +21,18 @@ export type ArtifactDetail = (DockerArtifactDetailConfig | HelmArtifactDetailCon
21
21
  artifactType?: ArtifactType;
22
22
  createdAt?: string;
23
23
  createdBy?: string;
24
+ /**
25
+ * Timestamp in milliseconds when the registry was soft-deleted
26
+ */
27
+ deletedAt?: string;
24
28
  /**
25
29
  * @format int64
26
30
  */
27
31
  downloadCount?: number;
32
+ /**
33
+ * True if the registry is soft-deleted
34
+ */
35
+ isDeleted: boolean;
28
36
  isQuarantined?: boolean;
29
37
  modifiedAt?: string;
30
38
  name?: string;
@@ -8,19 +8,20 @@ import type { PackageType } from '../schemas/PackageType';
8
8
  export interface ArtifactMetadata {
9
9
  artifactType?: ArtifactType;
10
10
  /**
11
- * Timestamp when the artifact was soft-deleted
12
- * @format date-time
11
+ * Timestamp in milliseconds when the artifact was soft deleted. Null if not deleted.
13
12
  */
14
13
  deletedAt?: string;
15
14
  deploymentMetadata?: DeploymentMetadata;
15
+ digestCount?: number;
16
16
  /**
17
17
  * @format int64
18
18
  */
19
19
  downloadsCount?: number;
20
+ fileCount?: number;
20
21
  /**
21
- * True if the artifact, its parent image, or registry is soft-deleted (cascade)
22
+ * Indicates if the artifact version is soft deleted
22
23
  */
23
- isDeleted?: boolean;
24
+ isDeleted: boolean;
24
25
  isQuarantined?: boolean;
25
26
  labels?: string[];
26
27
  lastModified?: string;
@@ -0,0 +1,39 @@
1
+ import type { PackageType } from '../schemas/PackageType';
2
+ export interface ArtifactScan {
3
+ id: string;
4
+ lastEvaluatedAt?: string;
5
+ lastEvaluatedBy?: string;
6
+ /**
7
+ * Package name
8
+ */
9
+ packageName: string;
10
+ packageType: PackageType;
11
+ /**
12
+ * Policy Set name
13
+ */
14
+ policySetName?: string;
15
+ /**
16
+ * Unique reference for the opa policy set. Example: `my-policy` or `account.my-policy
17
+ */
18
+ policySetRef: string;
19
+ /**
20
+ * Registry name
21
+ */
22
+ registryId: string;
23
+ /**
24
+ * Registry name
25
+ */
26
+ registryName: string;
27
+ /**
28
+ * Scan status
29
+ */
30
+ scanStatus: 'BLOCKED' | 'WARN';
31
+ /**
32
+ * Version
33
+ */
34
+ version: string;
35
+ /**
36
+ * Version
37
+ */
38
+ versionId?: string;
39
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Status of the Artifact Scan Evaluate Request
3
+ */
4
+ export type ArtifactScanEvaluateRequestStatus = 'FAILED' | 'PENDING' | 'PROCESSING' | 'SUCCESS';
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -7,8 +7,7 @@ export interface ArtifactSummary {
7
7
  artifactType?: ArtifactType;
8
8
  createdAt?: string;
9
9
  /**
10
- * Timestamp when the package (image) was soft-deleted
11
- * @format date-time
10
+ * Timestamp in milliseconds when the registry was soft-deleted
12
11
  */
13
12
  deletedAt?: string;
14
13
  /**
@@ -17,9 +16,9 @@ export interface ArtifactSummary {
17
16
  downloadsCount?: number;
18
17
  imageName: string;
19
18
  /**
20
- * True if the package or its parent registry is soft-deleted (cascade)
19
+ * True if the registry is soft-deleted
21
20
  */
22
- isDeleted?: boolean;
21
+ isDeleted: boolean;
23
22
  labels?: string[];
24
23
  modifiedAt?: string;
25
24
  packageType: PackageType;
@@ -7,6 +7,10 @@ import type { PackageType } from '../schemas/PackageType';
7
7
  */
8
8
  export interface ArtifactVersionMetadata {
9
9
  artifactType?: ArtifactType;
10
+ /**
11
+ * Timestamp in milliseconds when the artifact was soft deleted. Null if not deleted.
12
+ */
13
+ deletedAt?: string;
10
14
  deploymentMetadata?: DeploymentMetadata;
11
15
  /**
12
16
  * @format int64
@@ -20,6 +24,10 @@ export interface ArtifactVersionMetadata {
20
24
  * @format int64
21
25
  */
22
26
  fileCount?: number;
27
+ /**
28
+ * Indicates if the artifact version is soft deleted
29
+ */
30
+ isDeleted: boolean;
23
31
  isQuarantined?: boolean;
24
32
  lastModified?: string;
25
33
  metadata?: ArtifactEntityMetadata;
@@ -6,15 +6,14 @@ import type { PackageType } from '../schemas/PackageType';
6
6
  export interface ArtifactVersionSummary {
7
7
  artifactType?: ArtifactType;
8
8
  /**
9
- * Timestamp when the artifact (version) was soft-deleted
10
- * @format date-time
9
+ * Timestamp in milliseconds when the artifact was soft deleted. Null if not deleted.
11
10
  */
12
11
  deletedAt?: string;
13
12
  imageName: string;
14
13
  /**
15
- * True if the artifact (version) is soft-deleted
14
+ * Indicates if the artifact version is soft deleted
16
15
  */
17
- isDeleted?: boolean;
16
+ isDeleted: boolean;
18
17
  isQuarantined?: boolean;
19
18
  packageType: PackageType;
20
19
  quarantineReason?: string;
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Input for bulk download files. Only one of packages or versions should be provided.
3
+ *
4
+ */
5
+ export interface BulkDownloadFilesRequestInput {
6
+ /**
7
+ * Name of the output file to be downloaded
8
+ */
9
+ outputFileName?: string;
10
+ /**
11
+ * List of packages UUID to download
12
+ */
13
+ packages?: string[];
14
+ /**
15
+ * registry UUID
16
+ */
17
+ registryId: string;
18
+ /**
19
+ * List of versions UUID to download
20
+ */
21
+ versions?: string[];
22
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Status of the bulk download operation
3
+ */
4
+ export type BulkDownloadRequestStatus = 'failed' | 'pending' | 'processing' | 'success';
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -0,0 +1,8 @@
1
+ import type { BulkDownloadRequestStatus } from '../schemas/BulkDownloadRequestStatus';
2
+ export interface BulkDownloadRequestStatusOutput {
3
+ downloadUrl: string;
4
+ id: string;
5
+ message: string;
6
+ outputFileName: string;
7
+ status: BulkDownloadRequestStatus;
8
+ }
@@ -1,17 +1,24 @@
1
+ /**
2
+ * Standard error response with code, message and optional details
3
+ */
1
4
  export interface Error {
2
5
  /**
3
- * The http error code
6
+ * The HTTP error code
4
7
  * @example "404"
5
8
  */
6
9
  code: string;
7
10
  /**
8
- * Additional details about the error
11
+ * Additional context and details about the error.
12
+ * May include field-specific validation errors or debugging information.
13
+ *
14
+ * @example {"field":"registry_identifier","reason":"Registry does not exist in the specified project","value":"invalid-registry"}
9
15
  */
10
16
  details?: {
11
17
  [key: string]: any;
12
18
  };
13
19
  /**
14
- * The reason the request failed
20
+ * Human-readable error message explaining what went wrong
21
+ * @example "Registry not found"
15
22
  */
16
23
  message: string;
17
24
  }
@@ -3,5 +3,6 @@
3
3
  */
4
4
  export interface ExtraHeader {
5
5
  key: string;
6
+ masked?: boolean;
6
7
  value: string;
7
8
  }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * File Metadata
3
+ */
4
+ export interface FileMetadata {
5
+ downloadUrl: string;
6
+ filename: string;
7
+ id: string;
8
+ sha256: string;
9
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -0,0 +1,35 @@
1
+ import type { Meta } from '../schemas/Meta';
2
+ import type { PackageMetadata } from '../schemas/PackageMetadata';
3
+ /**
4
+ * A list of Package
5
+ */
6
+ export interface ListPackage {
7
+ /**
8
+ * The total number of items
9
+ * @format int64
10
+ * @example 1
11
+ */
12
+ itemCount?: number;
13
+ meta: Meta;
14
+ /**
15
+ * A list of Package
16
+ */
17
+ packages: PackageMetadata[];
18
+ /**
19
+ * The total number of pages
20
+ * @format int64
21
+ * @example 100
22
+ */
23
+ pageCount?: number;
24
+ /**
25
+ * The current page
26
+ * @format int64
27
+ * @example 0
28
+ */
29
+ pageIndex?: number;
30
+ /**
31
+ * The number of items per page
32
+ * @example 1
33
+ */
34
+ pageSize?: number;
35
+ }
@@ -1,3 +1,4 @@
1
+ import type { Meta } from '../schemas/Meta';
1
2
  import type { RegistryMetadata } from '../schemas/RegistryMetadata';
2
3
  /**
3
4
  * A list of Harness Artifact Registries
@@ -9,6 +10,7 @@ export interface ListRegistry {
9
10
  * @example 1
10
11
  */
11
12
  itemCount?: number;
13
+ meta: Meta;
12
14
  /**
13
15
  * The total number of pages
14
16
  * @format int64
@@ -0,0 +1,35 @@
1
+ import type { VersionMetadata } from '../schemas/VersionMetadata';
2
+ import type { Meta } from '../schemas/Meta';
3
+ /**
4
+ * A list of Versions
5
+ */
6
+ export interface ListVersion {
7
+ /**
8
+ * A list of Versions
9
+ */
10
+ artifacts: VersionMetadata[];
11
+ /**
12
+ * The total number of items
13
+ * @format int64
14
+ * @example 1
15
+ */
16
+ itemCount?: number;
17
+ meta: Meta;
18
+ /**
19
+ * The total number of pages
20
+ * @format int64
21
+ * @example 100
22
+ */
23
+ pageCount?: number;
24
+ /**
25
+ * The current page
26
+ * @format int64
27
+ * @example 0
28
+ */
29
+ pageIndex?: number;
30
+ /**
31
+ * The number of items per page
32
+ * @example 1
33
+ */
34
+ pageSize?: number;
35
+ }
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Metadata about the list response
3
+ */
4
+ export interface Meta {
5
+ /**
6
+ * Count of active (non-deleted) entities
7
+ * @format int64
8
+ * @example 95
9
+ */
10
+ activeCount: number;
11
+ /**
12
+ * Count of soft-deleted entities
13
+ * @format int64
14
+ * @example 5
15
+ */
16
+ deletedCount: number;
17
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -0,0 +1,45 @@
1
+ import type { MetadataItemInput } from '../schemas/MetadataItemInput';
2
+ /**
3
+ * Request payload containing metadata items to add or update for a specific entity.
4
+ *
5
+ * **Priority Logic:**
6
+ * 1. If `path` is present, it takes highest priority and determines the target entity
7
+ * 2. If `path` is absent but `package` and `version` are provided, metadata is attached to the specific package version
8
+ * 3. If only `package` is provided (without `version`), metadata is attached to the package level
9
+ * 4. If neither `path`, `package`, nor `version` are provided, metadata is attached to the registry level
10
+ *
11
+ * @example {"metadata":[{"key":"environment","value":"production"},{"key":"team","value":"backend"}],"package":"my-package","path":"/path/to/entity","registryIdentifier":"my-registry","version":"1.0.0"}
12
+ */
13
+ export interface MetadataInput {
14
+ /**
15
+ * Array of metadata key-value pairs
16
+ */
17
+ metadata: MetadataItemInput[];
18
+ /**
19
+ * Optional package name. Used when `path` is not provided.
20
+ *
21
+ * @example "my-package"
22
+ */
23
+ package?: string;
24
+ /**
25
+ * Optional hierarchical path to the specific entity within the registry.
26
+ * When provided, this takes highest priority for determining the metadata target.
27
+ * Examples: "/my-package/1.0.0" for a specific version, "/my-package" for an package
28
+ *
29
+ * @example "/path/to/entity"
30
+ */
31
+ path?: string;
32
+ /**
33
+ * The unique identifier of the registry where the metadata will be applied.
34
+ *
35
+ * @example "my-registry"
36
+ */
37
+ registryIdentifier: string;
38
+ /**
39
+ * Optional version identifier. Only used when `package` is also provided and `path` is absent.
40
+ * When both `package` and `version` are specified, metadata is attached to the specific package version.
41
+ *
42
+ * @example "1.0.0"
43
+ */
44
+ version?: string;
45
+ }
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Metadata key-value pair for create/update operations
3
+ */
4
+ export interface MetadataItemInput {
5
+ /**
6
+ * The metadata key name (case-sensitive)
7
+ * @example "environment"
8
+ */
9
+ key: string;
10
+ /**
11
+ * The metadata value
12
+ * @example "production"
13
+ */
14
+ value: string;
15
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -0,0 +1,22 @@
1
+ import type { MetadataType } from '../schemas/MetadataType';
2
+ /**
3
+ * Metadata entry
4
+ */
5
+ export interface MetadataItemOutput {
6
+ /**
7
+ * Unique identifier for this metadata entry
8
+ * @example "1xyv567fyb9"
9
+ */
10
+ id: string;
11
+ /**
12
+ * The metadata key name
13
+ * @example "environment"
14
+ */
15
+ key: string;
16
+ type: MetadataType;
17
+ /**
18
+ * The metadata value
19
+ * @example "production"
20
+ */
21
+ value: string;
22
+ }
@@ -0,0 +1,11 @@
1
+ import type { MetadataItemOutput } from '../schemas/MetadataItemOutput';
2
+ /**
3
+ * Response containing all metadata entries for an entity
4
+ * @example {"metadata":[{"id":"fv12vr45rvr78gvrg","key":"environment","type":"MANUAL","value":"production"},{"id":"hdcd632fve987fnveh21","key":"created_at","type":"AUTO","value":"2023-10-31T14:30:00Z"}]}
5
+ */
6
+ export interface MetadataOutput {
7
+ /**
8
+ * Array of metadata entries
9
+ */
10
+ metadata: MetadataItemOutput[];
11
+ }
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Indicates if metadata was manually added (MANUAL) or system-generated (AUTO)
3
+ * @example "MANUAL"
4
+ */
5
+ export type MetadataType = 'AUTO' | 'MANUAL';
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};