@harnessio/react-har-service-client 0.50.0 → 0.52.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 (114) hide show
  1. package/dist/har-service/src/services/hooks/useAddVersionTagsV3Mutation.d.ts +0 -3
  2. package/dist/har-service/src/services/hooks/useCreateFirewallExceptionV3Mutation.d.ts +21 -0
  3. package/dist/har-service/src/services/hooks/useCreateFirewallExceptionV3Mutation.js +14 -0
  4. package/dist/har-service/src/services/hooks/useDeleteFirewallExceptionV3Mutation.d.ts +20 -0
  5. package/dist/har-service/src/services/hooks/useDeleteFirewallExceptionV3Mutation.js +14 -0
  6. package/dist/har-service/src/services/hooks/useDeleteMetadataV3Mutation.d.ts +0 -3
  7. package/dist/har-service/src/services/hooks/useDeletePackageV3Mutation.d.ts +0 -3
  8. package/dist/har-service/src/services/hooks/useDeleteRegistryV3Mutation.d.ts +0 -3
  9. package/dist/har-service/src/services/hooks/useDeleteVersionV3Mutation.d.ts +0 -3
  10. package/dist/har-service/src/services/hooks/useGetArtifactScanDetailsV3Query.d.ts +0 -3
  11. package/dist/har-service/src/services/hooks/useGetArtifactScansV3Query.d.ts +4 -1
  12. package/dist/har-service/src/services/hooks/useGetBulkDownloadRequestStatusV3Query.d.ts +0 -3
  13. package/dist/har-service/src/services/hooks/useGetFileMetadataV3Query.d.ts +0 -3
  14. package/dist/har-service/src/services/hooks/useGetFileV3Query.d.ts +0 -3
  15. package/dist/har-service/src/services/hooks/useGetPackageMetadataV3Query.d.ts +0 -3
  16. package/dist/har-service/src/services/hooks/useGetRegistryMetadataV3Query.d.ts +0 -3
  17. package/dist/har-service/src/services/hooks/useGetSystemInfoV3Query.d.ts +22 -0
  18. package/dist/har-service/src/services/hooks/useGetSystemInfoV3Query.js +18 -0
  19. package/dist/har-service/src/services/hooks/useGetVersionMetadataV3Query.d.ts +0 -3
  20. package/dist/har-service/src/services/hooks/useListFilesV3Query.d.ts +5 -3
  21. package/dist/har-service/src/services/hooks/useListFirewallExceptionVersionsV3Query.d.ts +30 -0
  22. package/dist/har-service/src/services/hooks/useListFirewallExceptionVersionsV3Query.js +14 -0
  23. package/dist/har-service/src/services/hooks/useListFirewallExceptionsV3Query.d.ts +38 -0
  24. package/dist/har-service/src/services/hooks/useListFirewallExceptionsV3Query.js +14 -0
  25. package/dist/har-service/src/services/hooks/useListVersionsV3Query.d.ts +1 -4
  26. package/dist/har-service/src/services/hooks/useRebuildVersionMetadataV3Mutation.d.ts +21 -0
  27. package/dist/har-service/src/services/hooks/useRebuildVersionMetadataV3Mutation.js +14 -0
  28. package/dist/har-service/src/services/hooks/useRestorePackageV3Mutation.d.ts +0 -3
  29. package/dist/har-service/src/services/hooks/useRestoreRegistryV3Mutation.d.ts +0 -3
  30. package/dist/har-service/src/services/hooks/useRestoreVersionV3Mutation.d.ts +0 -3
  31. package/dist/har-service/src/services/hooks/useSaveFileMetadataV3Mutation.d.ts +0 -3
  32. package/dist/har-service/src/services/hooks/useSavePackageMetadataV3Mutation.d.ts +0 -3
  33. package/dist/har-service/src/services/hooks/useSaveRegistryMetadataV3Mutation.d.ts +0 -3
  34. package/dist/har-service/src/services/hooks/useSaveVersionMetadataV3Mutation.d.ts +0 -3
  35. package/dist/har-service/src/services/hooks/useUpdateFirewallExceptionV3Mutation.d.ts +24 -0
  36. package/dist/har-service/src/services/hooks/useUpdateFirewallExceptionV3Mutation.js +14 -0
  37. package/dist/har-service/src/services/hooks/useUpdateStatusFirewallExceptionV3Mutation.d.ts +24 -0
  38. package/dist/har-service/src/services/hooks/useUpdateStatusFirewallExceptionV3Mutation.js +14 -0
  39. package/dist/har-service/src/services/hooks/useUpsertFileMetadataV3Mutation.d.ts +0 -3
  40. package/dist/har-service/src/services/hooks/useUpsertPackageMetadataV3Mutation.d.ts +0 -3
  41. package/dist/har-service/src/services/hooks/useUpsertRegistryMetadataV3Mutation.d.ts +0 -3
  42. package/dist/har-service/src/services/hooks/useUpsertVersionMetadataV3Mutation.d.ts +0 -3
  43. package/dist/har-service/src/services/index.d.ts +37 -13
  44. package/dist/har-service/src/services/index.js +8 -6
  45. package/dist/har-service/src/services/requestBodies/CopyResourcesRequestV3RequestBody.d.ts +2 -2
  46. package/dist/har-service/src/services/requestBodies/FirewallExceptionApprovalRequestV3RequestBody.d.ts +2 -0
  47. package/dist/har-service/src/services/requestBodies/FirewallExceptionCreateRequestV3RequestBody.d.ts +2 -0
  48. package/dist/har-service/src/services/requestBodies/FirewallExceptionCreateRequestV3RequestBody.js +1 -0
  49. package/dist/har-service/src/services/requestBodies/FirewallExceptionUpdateRequestV3RequestBody.d.ts +2 -0
  50. package/dist/har-service/src/services/requestBodies/FirewallExceptionUpdateRequestV3RequestBody.js +1 -0
  51. package/dist/har-service/src/services/responses/FirewallExceptionApprovedV3Response.d.ts +2 -0
  52. package/dist/har-service/src/services/responses/FirewallExceptionApprovedV3Response.js +1 -0
  53. package/dist/har-service/src/services/responses/FirewallExceptionCreatedV3Response.d.ts +2 -0
  54. package/dist/har-service/src/services/responses/FirewallExceptionCreatedV3Response.js +1 -0
  55. package/dist/har-service/src/services/responses/FirewallExceptionUpdatedV3Response.d.ts +2 -0
  56. package/dist/har-service/src/services/responses/FirewallExceptionUpdatedV3Response.js +1 -0
  57. package/dist/har-service/src/services/responses/ListFirewallExceptionResponseV3Response.d.ts +2 -0
  58. package/dist/har-service/src/services/responses/ListFirewallExceptionResponseV3Response.js +1 -0
  59. package/dist/har-service/src/services/responses/ListFirewallExceptionVersionsResponseV3Response.d.ts +7 -0
  60. package/dist/har-service/src/services/responses/ListFirewallExceptionVersionsResponseV3Response.js +1 -0
  61. package/dist/har-service/src/services/responses/RebuildVersionMetadataAcceptedV3Response.d.ts +1 -0
  62. package/dist/har-service/src/services/responses/RebuildVersionMetadataAcceptedV3Response.js +1 -0
  63. package/dist/har-service/src/services/responses/SystemInfoResponseV3Response.d.ts +4 -0
  64. package/dist/har-service/src/services/responses/SystemInfoResponseV3Response.js +1 -0
  65. package/dist/har-service/src/services/schemas/CreatedAtMsV3.d.ts +6 -0
  66. package/dist/har-service/src/services/schemas/CreatedAtMsV3.js +4 -0
  67. package/dist/har-service/src/services/schemas/FileMetadataV3.d.ts +6 -1
  68. package/dist/har-service/src/services/schemas/FileMetadataV3.js +0 -3
  69. package/dist/har-service/src/services/schemas/FirewallExceptionApprovalRequestV3.d.ts +11 -0
  70. package/dist/har-service/src/services/schemas/FirewallExceptionApprovalRequestV3.js +1 -0
  71. package/dist/har-service/src/services/schemas/FirewallExceptionCreateRequestV3.d.ts +31 -0
  72. package/dist/har-service/src/services/schemas/FirewallExceptionCreateRequestV3.js +4 -0
  73. package/dist/har-service/src/services/schemas/FirewallExceptionMetaV3.d.ts +35 -0
  74. package/dist/har-service/src/services/schemas/FirewallExceptionMetaV3.js +4 -0
  75. package/dist/har-service/src/services/schemas/FirewallExceptionResponseV3.d.ts +94 -0
  76. package/dist/har-service/src/services/schemas/FirewallExceptionResponseV3.js +1 -0
  77. package/dist/har-service/src/services/schemas/FirewallExceptionStatusV3.d.ts +4 -0
  78. package/dist/har-service/src/services/schemas/FirewallExceptionStatusV3.js +4 -0
  79. package/dist/har-service/src/services/schemas/FirewallExceptionUpdateRequestV3.d.ts +22 -0
  80. package/dist/har-service/src/services/schemas/FirewallExceptionUpdateRequestV3.js +4 -0
  81. package/dist/har-service/src/services/schemas/FirewallModeV3.d.ts +4 -0
  82. package/dist/har-service/src/services/schemas/FirewallModeV3.js +4 -0
  83. package/dist/har-service/src/services/schemas/ListFirewallExceptionsResponseBodyV3.d.ts +7 -0
  84. package/dist/har-service/src/services/schemas/ListFirewallExceptionsResponseBodyV3.js +1 -0
  85. package/dist/har-service/src/services/schemas/PackageMetadata.d.ts +0 -4
  86. package/dist/har-service/src/services/schemas/PackageType.d.ts +1 -1
  87. package/dist/har-service/src/services/schemas/PackageTypeV3.d.ts +1 -1
  88. package/dist/har-service/src/services/schemas/PackageV3.d.ts +1 -0
  89. package/dist/har-service/src/services/schemas/PageInfoV3.d.ts +2 -20
  90. package/dist/har-service/src/services/schemas/RebuildVersionMetadataRequestV3.d.ts +9 -0
  91. package/dist/har-service/src/services/schemas/RebuildVersionMetadataRequestV3.js +4 -0
  92. package/dist/har-service/src/services/schemas/RegistryArtifactMetadata.d.ts +0 -4
  93. package/dist/har-service/src/services/schemas/RegistryMetadata.d.ts +0 -4
  94. package/dist/har-service/src/services/schemas/RegistryV3.d.ts +7 -0
  95. package/dist/har-service/src/services/schemas/ResourceMetadataV3.d.ts +1 -1
  96. package/dist/har-service/src/services/schemas/SystemInfoV3.d.ts +15 -0
  97. package/dist/har-service/src/services/schemas/SystemInfoV3.js +4 -0
  98. package/dist/har-service/src/services/schemas/VersionMetadata.d.ts +0 -4
  99. package/dist/har-service/src/services/schemas/VersionV3.d.ts +11 -0
  100. package/package.json +1 -1
  101. package/dist/har-service/src/services/hooks/useDeletePackageMutation.d.ts +0 -31
  102. package/dist/har-service/src/services/hooks/useDeletePackageMutation.js +0 -14
  103. package/dist/har-service/src/services/hooks/useDeleteRegistryV2Mutation.d.ts +0 -31
  104. package/dist/har-service/src/services/hooks/useDeleteRegistryV2Mutation.js +0 -14
  105. package/dist/har-service/src/services/hooks/useDeleteVersionMutation.d.ts +0 -31
  106. package/dist/har-service/src/services/hooks/useDeleteVersionMutation.js +0 -14
  107. package/dist/har-service/src/services/hooks/useRestorePackageMutation.d.ts +0 -30
  108. package/dist/har-service/src/services/hooks/useRestorePackageMutation.js +0 -14
  109. package/dist/har-service/src/services/hooks/useRestoreRegistryMutation.d.ts +0 -30
  110. package/dist/har-service/src/services/hooks/useRestoreRegistryMutation.js +0 -14
  111. package/dist/har-service/src/services/hooks/useRestoreVersionMutation.d.ts +0 -30
  112. package/dist/har-service/src/services/hooks/useRestoreVersionMutation.js +0 -14
  113. package/dist/har-service/src/services/schemas/CopyResourcesV3.d.ts +0 -2
  114. /package/dist/har-service/src/services/{schemas/CopyResourcesV3.js → requestBodies/FirewallExceptionApprovalRequestV3RequestBody.js} +0 -0
@@ -4,9 +4,6 @@ import type { AddTagsRequestV3RequestBody } from '../requestBodies/AddTagsReques
4
4
  import type { ResponseWithPagination } from '../helpers';
5
5
  import { FetcherOptions } from '../../../../fetcher/index.js';
6
6
  export interface AddVersionTagsV3MutationPathParams {
7
- /**
8
- * @format uuid
9
- */
10
7
  id: string;
11
8
  }
12
9
  export interface AddVersionTagsV3MutationQueryParams {
@@ -0,0 +1,21 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { FirewallExceptionCreatedV3Response } from '../responses/FirewallExceptionCreatedV3Response';
3
+ import type { ErrorV3 } from '../schemas/ErrorV3';
4
+ import type { FirewallExceptionCreateRequestV3RequestBody } from '../requestBodies/FirewallExceptionCreateRequestV3RequestBody';
5
+ import type { ResponseWithPagination } from '../helpers';
6
+ import { FetcherOptions } from '../../../../fetcher/index.js';
7
+ export interface CreateFirewallExceptionV3MutationQueryParams {
8
+ account_identifier: string;
9
+ }
10
+ export type CreateFirewallExceptionV3RequestBody = FirewallExceptionCreateRequestV3RequestBody;
11
+ export type CreateFirewallExceptionV3OkResponse = ResponseWithPagination<FirewallExceptionCreatedV3Response>;
12
+ export type CreateFirewallExceptionV3ErrorResponse = ErrorV3;
13
+ export interface CreateFirewallExceptionV3Props extends Omit<FetcherOptions<CreateFirewallExceptionV3MutationQueryParams, CreateFirewallExceptionV3RequestBody>, 'url'> {
14
+ queryParams: CreateFirewallExceptionV3MutationQueryParams;
15
+ body: CreateFirewallExceptionV3RequestBody;
16
+ }
17
+ export declare function createFirewallExceptionV3(props: CreateFirewallExceptionV3Props): Promise<CreateFirewallExceptionV3OkResponse>;
18
+ /**
19
+ * Create a firewall exception for an artifact
20
+ */
21
+ export declare function useCreateFirewallExceptionV3Mutation(options?: Omit<UseMutationOptions<CreateFirewallExceptionV3OkResponse, CreateFirewallExceptionV3ErrorResponse, CreateFirewallExceptionV3Props>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CreateFirewallExceptionV3OkResponse, ErrorV3, CreateFirewallExceptionV3Props, unknown>;
@@ -0,0 +1,14 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ import { useMutation } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../fetcher/index.js';
6
+ export function createFirewallExceptionV3(props) {
7
+ return fetcher(Object.assign({ url: `/v3/scans/exceptions`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Create a firewall exception for an artifact
11
+ */
12
+ export function useCreateFirewallExceptionV3Mutation(options) {
13
+ return useMutation((mutateProps) => createFirewallExceptionV3(mutateProps), options);
14
+ }
@@ -0,0 +1,20 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { ErrorV3 } from '../schemas/ErrorV3';
3
+ import type { ResponseWithPagination } from '../helpers';
4
+ import { FetcherOptions } from '../../../../fetcher/index.js';
5
+ export interface DeleteFirewallExceptionV3MutationPathParams {
6
+ id: string;
7
+ }
8
+ export interface DeleteFirewallExceptionV3MutationQueryParams {
9
+ account_identifier: string;
10
+ }
11
+ export type DeleteFirewallExceptionV3OkResponse = ResponseWithPagination<unknown>;
12
+ export type DeleteFirewallExceptionV3ErrorResponse = ErrorV3;
13
+ export interface DeleteFirewallExceptionV3Props extends DeleteFirewallExceptionV3MutationPathParams, Omit<FetcherOptions<DeleteFirewallExceptionV3MutationQueryParams, unknown>, 'url'> {
14
+ queryParams: DeleteFirewallExceptionV3MutationQueryParams;
15
+ }
16
+ export declare function deleteFirewallExceptionV3(props: DeleteFirewallExceptionV3Props): Promise<DeleteFirewallExceptionV3OkResponse>;
17
+ /**
18
+ * Delete a firewall exception by ID
19
+ */
20
+ export declare function useDeleteFirewallExceptionV3Mutation(options?: Omit<UseMutationOptions<DeleteFirewallExceptionV3OkResponse, DeleteFirewallExceptionV3ErrorResponse, DeleteFirewallExceptionV3Props>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<DeleteFirewallExceptionV3OkResponse, ErrorV3, DeleteFirewallExceptionV3Props, unknown>;
@@ -0,0 +1,14 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ import { useMutation } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../fetcher/index.js';
6
+ export function deleteFirewallExceptionV3(props) {
7
+ return fetcher(Object.assign({ url: `/v3/scans/exceptions/${props.id}`, method: 'DELETE' }, props));
8
+ }
9
+ /**
10
+ * Delete a firewall exception by ID
11
+ */
12
+ export function useDeleteFirewallExceptionV3Mutation(options) {
13
+ return useMutation((mutateProps) => deleteFirewallExceptionV3(mutateProps), options);
14
+ }
@@ -3,9 +3,6 @@ import type { ErrorV3 } from '../schemas/ErrorV3';
3
3
  import type { ResponseWithPagination } from '../helpers';
4
4
  import { FetcherOptions } from '../../../../fetcher/index.js';
5
5
  export interface DeleteMetadataV3MutationPathParams {
6
- /**
7
- * @format uuid
8
- */
9
6
  id: string;
10
7
  }
11
8
  export interface DeleteMetadataV3MutationQueryParams {
@@ -3,9 +3,6 @@ import type { ErrorV3 } from '../schemas/ErrorV3';
3
3
  import type { ResponseWithPagination } from '../helpers';
4
4
  import { FetcherOptions } from '../../../../fetcher/index.js';
5
5
  export interface DeletePackageV3MutationPathParams {
6
- /**
7
- * @format uuid
8
- */
9
6
  id: string;
10
7
  }
11
8
  export interface DeletePackageV3MutationQueryParams {
@@ -3,9 +3,6 @@ import type { ErrorV3 } from '../schemas/ErrorV3';
3
3
  import type { ResponseWithPagination } from '../helpers';
4
4
  import { FetcherOptions } from '../../../../fetcher/index.js';
5
5
  export interface DeleteRegistryV3MutationPathParams {
6
- /**
7
- * @format uuid
8
- */
9
6
  id: string;
10
7
  }
11
8
  export interface DeleteRegistryV3MutationQueryParams {
@@ -3,9 +3,6 @@ import type { ErrorV3 } from '../schemas/ErrorV3';
3
3
  import type { ResponseWithPagination } from '../helpers';
4
4
  import { FetcherOptions } from '../../../../fetcher/index.js';
5
5
  export interface DeleteVersionV3MutationPathParams {
6
- /**
7
- * @format uuid
8
- */
9
6
  id: string;
10
7
  }
11
8
  export interface DeleteVersionV3MutationQueryParams {
@@ -4,9 +4,6 @@ import type { ErrorV3 } from '../schemas/ErrorV3';
4
4
  import type { ResponseWithPagination } from '../helpers';
5
5
  import { FetcherOptions } from '../../../../fetcher/index.js';
6
6
  export interface GetArtifactScanDetailsV3QueryPathParams {
7
- /**
8
- * @format uuid
9
- */
10
7
  id: string;
11
8
  }
12
9
  export interface GetArtifactScanDetailsV3QueryQueryParams {
@@ -11,7 +11,10 @@ export interface GetArtifactScansV3QueryQueryParams {
11
11
  registry_ids?: string[];
12
12
  policy_set_ref?: string;
13
13
  scan_id?: string;
14
- scan_status?: string;
14
+ /**
15
+ * Status of an artifact scan evaluation.
16
+ */
17
+ scan_status?: 'ALLOWED' | 'BLOCKED' | 'UNKNOWN' | 'WARN';
15
18
  /**
16
19
  * @format int64
17
20
  * @default 0
@@ -4,9 +4,6 @@ import type { ErrorV3 } from '../schemas/ErrorV3';
4
4
  import type { ResponseWithPagination } from '../helpers';
5
5
  import { FetcherOptions } from '../../../../fetcher/index.js';
6
6
  export interface GetBulkDownloadRequestStatusV3QueryPathParams {
7
- /**
8
- * @format uuid
9
- */
10
7
  id: string;
11
8
  }
12
9
  export interface GetBulkDownloadRequestStatusV3QueryQueryParams {
@@ -4,9 +4,6 @@ import type { ErrorV3 } from '../schemas/ErrorV3';
4
4
  import type { ResponseWithPagination } from '../helpers';
5
5
  import { FetcherOptions } from '../../../../fetcher/index.js';
6
6
  export interface GetFileMetadataV3QueryPathParams {
7
- /**
8
- * @format uuid
9
- */
10
7
  id: string;
11
8
  }
12
9
  export interface GetFileMetadataV3QueryQueryParams {
@@ -5,9 +5,6 @@ import type { ErrorV3 } from '../schemas/ErrorV3';
5
5
  import type { ResponseWithPagination } from '../helpers';
6
6
  import { FetcherOptions } from '../../../../fetcher/index.js';
7
7
  export interface GetFileV3QueryPathParams {
8
- /**
9
- * @format uuid
10
- */
11
8
  id: string;
12
9
  }
13
10
  export interface GetFileV3QueryQueryParams {
@@ -4,9 +4,6 @@ import type { ErrorV3 } from '../schemas/ErrorV3';
4
4
  import type { ResponseWithPagination } from '../helpers';
5
5
  import { FetcherOptions } from '../../../../fetcher/index.js';
6
6
  export interface GetPackageMetadataV3QueryPathParams {
7
- /**
8
- * @format uuid
9
- */
10
7
  id: string;
11
8
  }
12
9
  export interface GetPackageMetadataV3QueryQueryParams {
@@ -4,9 +4,6 @@ import type { ErrorV3 } from '../schemas/ErrorV3';
4
4
  import type { ResponseWithPagination } from '../helpers';
5
5
  import { FetcherOptions } from '../../../../fetcher/index.js';
6
6
  export interface GetRegistryMetadataV3QueryPathParams {
7
- /**
8
- * @format uuid
9
- */
10
7
  id: string;
11
8
  }
12
9
  export interface GetRegistryMetadataV3QueryQueryParams {
@@ -0,0 +1,22 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { SystemInfoResponseV3Response } from '../responses/SystemInfoResponseV3Response';
3
+ import type { ErrorV3 } from '../schemas/ErrorV3';
4
+ import type { ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
+ export interface GetSystemInfoV3QueryQueryParams {
7
+ account_identifier: string;
8
+ }
9
+ export type GetSystemInfoV3OkResponse = ResponseWithPagination<SystemInfoResponseV3Response>;
10
+ export type GetSystemInfoV3ErrorResponse = ErrorV3;
11
+ export interface GetSystemInfoV3Props extends Omit<FetcherOptions<GetSystemInfoV3QueryQueryParams, unknown>, 'url'> {
12
+ queryParams: GetSystemInfoV3QueryQueryParams;
13
+ }
14
+ export declare function getSystemInfoV3(props: GetSystemInfoV3Props): Promise<GetSystemInfoV3OkResponse>;
15
+ /**
16
+ * Returns system-level information for the Harness Artifact Registry,
17
+ * including the base registry URL for the account.
18
+ * Use this endpoint to discover the correct registry hostname
19
+ * for pulling and pushing artifacts.
20
+ *
21
+ */
22
+ export declare function useGetSystemInfoV3Query(props: GetSystemInfoV3Props, options?: Omit<UseQueryOptions<GetSystemInfoV3OkResponse, GetSystemInfoV3ErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetSystemInfoV3OkResponse, ErrorV3>;
@@ -0,0 +1,18 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ import { useQuery } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../fetcher/index.js';
6
+ export function getSystemInfoV3(props) {
7
+ return fetcher(Object.assign({ url: `/v3/system/info`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Returns system-level information for the Harness Artifact Registry,
11
+ * including the base registry URL for the account.
12
+ * Use this endpoint to discover the correct registry hostname
13
+ * for pulling and pushing artifacts.
14
+ *
15
+ */
16
+ export function useGetSystemInfoV3Query(props, options) {
17
+ return useQuery(['GetSystemInfoV3', props.queryParams], ({ signal }) => getSystemInfoV3(Object.assign(Object.assign({}, props), { signal })), options);
18
+ }
@@ -4,9 +4,6 @@ import type { ErrorV3 } from '../schemas/ErrorV3';
4
4
  import type { ResponseWithPagination } from '../helpers';
5
5
  import { FetcherOptions } from '../../../../fetcher/index.js';
6
6
  export interface GetVersionMetadataV3QueryPathParams {
7
- /**
8
- * @format uuid
9
- */
10
7
  id: string;
11
8
  }
12
9
  export interface GetVersionMetadataV3QueryQueryParams {
@@ -7,8 +7,9 @@ export interface ListFilesV3QueryQueryParams {
7
7
  account_identifier: string;
8
8
  org_identifier?: string;
9
9
  project_identifier?: string;
10
- registry: string;
11
- query: string;
10
+ registry_id?: string;
11
+ package_id?: string;
12
+ version_id?: string;
12
13
  /**
13
14
  * @format int64
14
15
  * @default 0
@@ -19,7 +20,8 @@ export interface ListFilesV3QueryQueryParams {
19
20
  * @default 20
20
21
  */
21
22
  size?: number;
22
- include_meta?: boolean;
23
+ sort?: string;
24
+ search_term?: string;
23
25
  }
24
26
  export type ListFilesV3OkResponse = ResponseWithPagination<ListFilesResponseV3Response>;
25
27
  export type ListFilesV3ErrorResponse = ErrorV3;
@@ -0,0 +1,30 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ListFirewallExceptionVersionsResponseV3Response } from '../responses/ListFirewallExceptionVersionsResponseV3Response';
3
+ import type { ErrorV3 } from '../schemas/ErrorV3';
4
+ import type { ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
+ export interface ListFirewallExceptionVersionsV3QueryQueryParams {
7
+ account_identifier: string;
8
+ registry_id?: string;
9
+ package_name?: string;
10
+ /**
11
+ * @format int64
12
+ * @default 0
13
+ */
14
+ page?: number;
15
+ /**
16
+ * @format int64
17
+ * @default 20
18
+ */
19
+ size?: number;
20
+ }
21
+ export type ListFirewallExceptionVersionsV3OkResponse = ResponseWithPagination<ListFirewallExceptionVersionsResponseV3Response>;
22
+ export type ListFirewallExceptionVersionsV3ErrorResponse = ErrorV3;
23
+ export interface ListFirewallExceptionVersionsV3Props extends Omit<FetcherOptions<ListFirewallExceptionVersionsV3QueryQueryParams, unknown>, 'url'> {
24
+ queryParams: ListFirewallExceptionVersionsV3QueryQueryParams;
25
+ }
26
+ export declare function listFirewallExceptionVersionsV3(props: ListFirewallExceptionVersionsV3Props): Promise<ListFirewallExceptionVersionsV3OkResponse>;
27
+ /**
28
+ * List versions for a specific package in a registry, for use when creating firewall exceptions
29
+ */
30
+ export declare function useListFirewallExceptionVersionsV3Query(props: ListFirewallExceptionVersionsV3Props, options?: Omit<UseQueryOptions<ListFirewallExceptionVersionsV3OkResponse, ListFirewallExceptionVersionsV3ErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListFirewallExceptionVersionsV3OkResponse, ErrorV3>;
@@ -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 listFirewallExceptionVersionsV3(props) {
7
+ return fetcher(Object.assign({ url: `/v3/scans/versions`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * List versions for a specific package in a registry, for use when creating firewall exceptions
11
+ */
12
+ export function useListFirewallExceptionVersionsV3Query(props, options) {
13
+ return useQuery(['ListFirewallExceptionVersionsV3', props.queryParams], ({ signal }) => listFirewallExceptionVersionsV3(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,38 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ListFirewallExceptionResponseV3Response } from '../responses/ListFirewallExceptionResponseV3Response';
3
+ import type { ErrorV3 } from '../schemas/ErrorV3';
4
+ import type { ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
+ export interface ListFirewallExceptionsV3QueryQueryParams {
7
+ account_identifier: string;
8
+ org_identifier?: string;
9
+ project_identifier?: string;
10
+ /**
11
+ * Status of the firewall exception
12
+ */
13
+ status?: 'APPROVED' | 'EXPIRED' | 'PENDING' | 'REJECTED';
14
+ package_name?: string;
15
+ version?: string;
16
+ package_type?: string;
17
+ /**
18
+ * @format int64
19
+ * @default 0
20
+ */
21
+ page?: number;
22
+ /**
23
+ * @format int64
24
+ * @default 20
25
+ */
26
+ size?: number;
27
+ sort?: string;
28
+ }
29
+ export type ListFirewallExceptionsV3OkResponse = ResponseWithPagination<ListFirewallExceptionResponseV3Response>;
30
+ export type ListFirewallExceptionsV3ErrorResponse = ErrorV3;
31
+ export interface ListFirewallExceptionsV3Props extends Omit<FetcherOptions<ListFirewallExceptionsV3QueryQueryParams, unknown>, 'url'> {
32
+ queryParams: ListFirewallExceptionsV3QueryQueryParams;
33
+ }
34
+ export declare function listFirewallExceptionsV3(props: ListFirewallExceptionsV3Props): Promise<ListFirewallExceptionsV3OkResponse>;
35
+ /**
36
+ * List firewall exceptions with optional filters
37
+ */
38
+ export declare function useListFirewallExceptionsV3Query(props: ListFirewallExceptionsV3Props, options?: Omit<UseQueryOptions<ListFirewallExceptionsV3OkResponse, ListFirewallExceptionsV3ErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListFirewallExceptionsV3OkResponse, ErrorV3>;
@@ -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 listFirewallExceptionsV3(props) {
7
+ return fetcher(Object.assign({ url: `/v3/scans/exceptions`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * List firewall exceptions with optional filters
11
+ */
12
+ export function useListFirewallExceptionsV3Query(props, options) {
13
+ return useQuery(['ListFirewallExceptionsV3', props.queryParams], ({ signal }) => listFirewallExceptionsV3(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -8,10 +8,7 @@ export interface ListVersionsV3QueryQueryParams {
8
8
  org_identifier?: string;
9
9
  project_identifier?: string;
10
10
  registry_ids?: string[];
11
- /**
12
- * @format uuid
13
- */
14
- package_id?: string;
11
+ package_ids?: string[];
15
12
  package_types?: string[];
16
13
  /**
17
14
  * @default "exclude"
@@ -0,0 +1,21 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { RebuildVersionMetadataAcceptedV3Response } from '../responses/RebuildVersionMetadataAcceptedV3Response';
3
+ import type { ErrorV3 } from '../schemas/ErrorV3';
4
+ import type { RebuildVersionMetadataRequestV3 } from '../schemas/RebuildVersionMetadataRequestV3';
5
+ import type { ResponseWithPagination } from '../helpers';
6
+ import { FetcherOptions } from '../../../../fetcher/index.js';
7
+ export interface RebuildVersionMetadataV3MutationQueryParams {
8
+ account_identifier: string;
9
+ }
10
+ export type RebuildVersionMetadataV3RequestBody = RebuildVersionMetadataRequestV3;
11
+ export type RebuildVersionMetadataV3OkResponse = ResponseWithPagination<RebuildVersionMetadataAcceptedV3Response>;
12
+ export type RebuildVersionMetadataV3ErrorResponse = ErrorV3;
13
+ export interface RebuildVersionMetadataV3Props extends Omit<FetcherOptions<RebuildVersionMetadataV3MutationQueryParams, RebuildVersionMetadataV3RequestBody>, 'url'> {
14
+ queryParams: RebuildVersionMetadataV3MutationQueryParams;
15
+ body: RebuildVersionMetadataV3RequestBody;
16
+ }
17
+ export declare function rebuildVersionMetadataV3(props: RebuildVersionMetadataV3Props): Promise<RebuildVersionMetadataV3OkResponse>;
18
+ /**
19
+ * Trigger metadata rebuild for all versions in a registry
20
+ */
21
+ export declare function useRebuildVersionMetadataV3Mutation(options?: Omit<UseMutationOptions<RebuildVersionMetadataV3OkResponse, RebuildVersionMetadataV3ErrorResponse, RebuildVersionMetadataV3Props>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<RebuildVersionMetadataV3OkResponse, ErrorV3, RebuildVersionMetadataV3Props, unknown>;
@@ -0,0 +1,14 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ import { useMutation } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../fetcher/index.js';
6
+ export function rebuildVersionMetadataV3(props) {
7
+ return fetcher(Object.assign({ url: `/v3/versions/rebuild-metadata`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Trigger metadata rebuild for all versions in a registry
11
+ */
12
+ export function useRebuildVersionMetadataV3Mutation(options) {
13
+ return useMutation((mutateProps) => rebuildVersionMetadataV3(mutateProps), options);
14
+ }
@@ -3,9 +3,6 @@ import type { ErrorV3 } from '../schemas/ErrorV3';
3
3
  import type { ResponseWithPagination } from '../helpers';
4
4
  import { FetcherOptions } from '../../../../fetcher/index.js';
5
5
  export interface RestorePackageV3MutationPathParams {
6
- /**
7
- * @format uuid
8
- */
9
6
  id: string;
10
7
  }
11
8
  export interface RestorePackageV3MutationQueryParams {
@@ -3,9 +3,6 @@ import type { ErrorV3 } from '../schemas/ErrorV3';
3
3
  import type { ResponseWithPagination } from '../helpers';
4
4
  import { FetcherOptions } from '../../../../fetcher/index.js';
5
5
  export interface RestoreRegistryV3MutationPathParams {
6
- /**
7
- * @format uuid
8
- */
9
6
  id: string;
10
7
  }
11
8
  export interface RestoreRegistryV3MutationQueryParams {
@@ -3,9 +3,6 @@ import type { ErrorV3 } from '../schemas/ErrorV3';
3
3
  import type { ResponseWithPagination } from '../helpers';
4
4
  import { FetcherOptions } from '../../../../fetcher/index.js';
5
5
  export interface RestoreVersionV3MutationPathParams {
6
- /**
7
- * @format uuid
8
- */
9
6
  id: string;
10
7
  }
11
8
  export interface RestoreVersionV3MutationQueryParams {
@@ -5,9 +5,6 @@ import type { MetadataRequestV3RequestBody } from '../requestBodies/MetadataRequ
5
5
  import type { ResponseWithPagination } from '../helpers';
6
6
  import { FetcherOptions } from '../../../../fetcher/index.js';
7
7
  export interface SaveFileMetadataV3MutationPathParams {
8
- /**
9
- * @format uuid
10
- */
11
8
  id: string;
12
9
  }
13
10
  export interface SaveFileMetadataV3MutationQueryParams {
@@ -5,9 +5,6 @@ import type { MetadataRequestV3RequestBody } from '../requestBodies/MetadataRequ
5
5
  import type { ResponseWithPagination } from '../helpers';
6
6
  import { FetcherOptions } from '../../../../fetcher/index.js';
7
7
  export interface SavePackageMetadataV3MutationPathParams {
8
- /**
9
- * @format uuid
10
- */
11
8
  id: string;
12
9
  }
13
10
  export interface SavePackageMetadataV3MutationQueryParams {
@@ -5,9 +5,6 @@ import type { MetadataRequestV3RequestBody } from '../requestBodies/MetadataRequ
5
5
  import type { ResponseWithPagination } from '../helpers';
6
6
  import { FetcherOptions } from '../../../../fetcher/index.js';
7
7
  export interface SaveRegistryMetadataV3MutationPathParams {
8
- /**
9
- * @format uuid
10
- */
11
8
  id: string;
12
9
  }
13
10
  export interface SaveRegistryMetadataV3MutationQueryParams {
@@ -5,9 +5,6 @@ import type { MetadataRequestV3RequestBody } from '../requestBodies/MetadataRequ
5
5
  import type { ResponseWithPagination } from '../helpers';
6
6
  import { FetcherOptions } from '../../../../fetcher/index.js';
7
7
  export interface SaveVersionMetadataV3MutationPathParams {
8
- /**
9
- * @format uuid
10
- */
11
8
  id: string;
12
9
  }
13
10
  export interface SaveVersionMetadataV3MutationQueryParams {
@@ -0,0 +1,24 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { FirewallExceptionUpdatedV3Response } from '../responses/FirewallExceptionUpdatedV3Response';
3
+ import type { ErrorV3 } from '../schemas/ErrorV3';
4
+ import type { FirewallExceptionUpdateRequestV3RequestBody } from '../requestBodies/FirewallExceptionUpdateRequestV3RequestBody';
5
+ import type { ResponseWithPagination } from '../helpers';
6
+ import { FetcherOptions } from '../../../../fetcher/index.js';
7
+ export interface UpdateFirewallExceptionV3MutationPathParams {
8
+ id: string;
9
+ }
10
+ export interface UpdateFirewallExceptionV3MutationQueryParams {
11
+ account_identifier: string;
12
+ }
13
+ export type UpdateFirewallExceptionV3RequestBody = FirewallExceptionUpdateRequestV3RequestBody;
14
+ export type UpdateFirewallExceptionV3OkResponse = ResponseWithPagination<FirewallExceptionUpdatedV3Response>;
15
+ export type UpdateFirewallExceptionV3ErrorResponse = ErrorV3;
16
+ export interface UpdateFirewallExceptionV3Props extends UpdateFirewallExceptionV3MutationPathParams, Omit<FetcherOptions<UpdateFirewallExceptionV3MutationQueryParams, UpdateFirewallExceptionV3RequestBody>, 'url'> {
17
+ queryParams: UpdateFirewallExceptionV3MutationQueryParams;
18
+ body: UpdateFirewallExceptionV3RequestBody;
19
+ }
20
+ export declare function updateFirewallExceptionV3(props: UpdateFirewallExceptionV3Props): Promise<UpdateFirewallExceptionV3OkResponse>;
21
+ /**
22
+ * Update a firewall exception. Only allowed when status is PENDING.
23
+ */
24
+ export declare function useUpdateFirewallExceptionV3Mutation(options?: Omit<UseMutationOptions<UpdateFirewallExceptionV3OkResponse, UpdateFirewallExceptionV3ErrorResponse, UpdateFirewallExceptionV3Props>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UpdateFirewallExceptionV3OkResponse, ErrorV3, UpdateFirewallExceptionV3Props, unknown>;
@@ -0,0 +1,14 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ import { useMutation } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../fetcher/index.js';
6
+ export function updateFirewallExceptionV3(props) {
7
+ return fetcher(Object.assign({ url: `/v3/scans/exceptions/${props.id}`, method: 'PUT' }, props));
8
+ }
9
+ /**
10
+ * Update a firewall exception. Only allowed when status is PENDING.
11
+ */
12
+ export function useUpdateFirewallExceptionV3Mutation(options) {
13
+ return useMutation((mutateProps) => updateFirewallExceptionV3(mutateProps), options);
14
+ }
@@ -0,0 +1,24 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { FirewallExceptionApprovedV3Response } from '../responses/FirewallExceptionApprovedV3Response';
3
+ import type { ErrorV3 } from '../schemas/ErrorV3';
4
+ import type { FirewallExceptionApprovalRequestV3RequestBody } from '../requestBodies/FirewallExceptionApprovalRequestV3RequestBody';
5
+ import type { ResponseWithPagination } from '../helpers';
6
+ import { FetcherOptions } from '../../../../fetcher/index.js';
7
+ export interface UpdateStatusFirewallExceptionV3MutationPathParams {
8
+ id: string;
9
+ }
10
+ export interface UpdateStatusFirewallExceptionV3MutationQueryParams {
11
+ account_identifier: string;
12
+ }
13
+ export type UpdateStatusFirewallExceptionV3RequestBody = FirewallExceptionApprovalRequestV3RequestBody;
14
+ export type UpdateStatusFirewallExceptionV3OkResponse = ResponseWithPagination<FirewallExceptionApprovedV3Response>;
15
+ export type UpdateStatusFirewallExceptionV3ErrorResponse = ErrorV3;
16
+ export interface UpdateStatusFirewallExceptionV3Props extends UpdateStatusFirewallExceptionV3MutationPathParams, Omit<FetcherOptions<UpdateStatusFirewallExceptionV3MutationQueryParams, UpdateStatusFirewallExceptionV3RequestBody>, 'url'> {
17
+ queryParams: UpdateStatusFirewallExceptionV3MutationQueryParams;
18
+ body: UpdateStatusFirewallExceptionV3RequestBody;
19
+ }
20
+ export declare function updateStatusFirewallExceptionV3(props: UpdateStatusFirewallExceptionV3Props): Promise<UpdateStatusFirewallExceptionV3OkResponse>;
21
+ /**
22
+ * Update the status of a firewall exception (approve or reject)
23
+ */
24
+ export declare function useUpdateStatusFirewallExceptionV3Mutation(options?: Omit<UseMutationOptions<UpdateStatusFirewallExceptionV3OkResponse, UpdateStatusFirewallExceptionV3ErrorResponse, UpdateStatusFirewallExceptionV3Props>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UpdateStatusFirewallExceptionV3OkResponse, ErrorV3, UpdateStatusFirewallExceptionV3Props, unknown>;
@@ -0,0 +1,14 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ import { useMutation } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../fetcher/index.js';
6
+ export function updateStatusFirewallExceptionV3(props) {
7
+ return fetcher(Object.assign({ url: `/v3/scans/exceptions/${props.id}/status`, method: 'PUT' }, props));
8
+ }
9
+ /**
10
+ * Update the status of a firewall exception (approve or reject)
11
+ */
12
+ export function useUpdateStatusFirewallExceptionV3Mutation(options) {
13
+ return useMutation((mutateProps) => updateStatusFirewallExceptionV3(mutateProps), options);
14
+ }
@@ -5,9 +5,6 @@ import type { MetadataRequestV3RequestBody } from '../requestBodies/MetadataRequ
5
5
  import type { ResponseWithPagination } from '../helpers';
6
6
  import { FetcherOptions } from '../../../../fetcher/index.js';
7
7
  export interface UpsertFileMetadataV3MutationPathParams {
8
- /**
9
- * @format uuid
10
- */
11
8
  id: string;
12
9
  }
13
10
  export interface UpsertFileMetadataV3MutationQueryParams {
@@ -5,9 +5,6 @@ import type { MetadataRequestV3RequestBody } from '../requestBodies/MetadataRequ
5
5
  import type { ResponseWithPagination } from '../helpers';
6
6
  import { FetcherOptions } from '../../../../fetcher/index.js';
7
7
  export interface UpsertPackageMetadataV3MutationPathParams {
8
- /**
9
- * @format uuid
10
- */
11
8
  id: string;
12
9
  }
13
10
  export interface UpsertPackageMetadataV3MutationQueryParams {