@harnessio/react-har-service-client 0.59.0 → 0.61.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 (81) hide show
  1. package/dist/har-service/src/services/hooks/useCreateLifecycleExecutionV3Mutation.d.ts +23 -0
  2. package/dist/har-service/src/services/hooks/useCreateLifecycleExecutionV3Mutation.js +14 -0
  3. package/dist/har-service/src/services/hooks/useCreateLifecycleRuleV3Mutation.d.ts +23 -0
  4. package/dist/har-service/src/services/hooks/useCreateLifecycleRuleV3Mutation.js +14 -0
  5. package/dist/har-service/src/services/hooks/useDeleteLifecycleRuleV3Mutation.d.ts +20 -0
  6. package/dist/har-service/src/services/hooks/useDeleteLifecycleRuleV3Mutation.js +14 -0
  7. package/dist/har-service/src/services/hooks/useGetLifecycleExecutionV3Query.d.ts +23 -0
  8. package/dist/har-service/src/services/hooks/useGetLifecycleExecutionV3Query.js +14 -0
  9. package/dist/har-service/src/services/hooks/useListLifecycleExecutionsV3Query.d.ts +32 -0
  10. package/dist/har-service/src/services/hooks/useListLifecycleExecutionsV3Query.js +14 -0
  11. package/dist/har-service/src/services/hooks/useListLifecycleRulesV3Query.d.ts +33 -0
  12. package/dist/har-service/src/services/hooks/useListLifecycleRulesV3Query.js +14 -0
  13. package/dist/har-service/src/services/hooks/useListPipelineBuildInfoDetailsV3Query.d.ts +1 -0
  14. package/dist/har-service/src/services/hooks/useUpdateLifecycleRuleV3Mutation.d.ts +26 -0
  15. package/dist/har-service/src/services/hooks/useUpdateLifecycleRuleV3Mutation.js +14 -0
  16. package/dist/har-service/src/services/index.d.ts +44 -0
  17. package/dist/har-service/src/services/index.js +7 -0
  18. package/dist/har-service/src/services/responses/LifecycleExecutionCreatedV3Response.d.ts +2 -0
  19. package/dist/har-service/src/services/responses/LifecycleExecutionCreatedV3Response.js +1 -0
  20. package/dist/har-service/src/services/responses/LifecycleExecutionResponseV3Response.d.ts +2 -0
  21. package/dist/har-service/src/services/responses/LifecycleExecutionResponseV3Response.js +1 -0
  22. package/dist/har-service/src/services/responses/LifecycleRuleCreatedV3Response.d.ts +2 -0
  23. package/dist/har-service/src/services/responses/LifecycleRuleCreatedV3Response.js +1 -0
  24. package/dist/har-service/src/services/responses/LifecycleRuleUpdatedV3Response.d.ts +2 -0
  25. package/dist/har-service/src/services/responses/LifecycleRuleUpdatedV3Response.js +1 -0
  26. package/dist/har-service/src/services/responses/ListLifecycleExecutionsResponseV3Response.d.ts +2 -0
  27. package/dist/har-service/src/services/responses/ListLifecycleExecutionsResponseV3Response.js +1 -0
  28. package/dist/har-service/src/services/responses/ListLifecycleRulesResponseV3Response.d.ts +2 -0
  29. package/dist/har-service/src/services/responses/ListLifecycleRulesResponseV3Response.js +1 -0
  30. package/dist/har-service/src/services/schemas/ArtifactScanDetailsV3.d.ts +16 -0
  31. package/dist/har-service/src/services/schemas/ArtifactScanV3.d.ts +10 -2
  32. package/dist/har-service/src/services/schemas/LifecycleDryRunRequestBodyV3.d.ts +3 -0
  33. package/dist/har-service/src/services/schemas/LifecycleDryRunRequestBodyV3.js +4 -0
  34. package/dist/har-service/src/services/schemas/LifecycleExecutionResponseV3.d.ts +41 -0
  35. package/dist/har-service/src/services/schemas/LifecycleExecutionResponseV3.js +1 -0
  36. package/dist/har-service/src/services/schemas/LifecycleExecutionStatusV3.d.ts +1 -0
  37. package/dist/har-service/src/services/schemas/LifecycleExecutionStatusV3.js +4 -0
  38. package/dist/har-service/src/services/schemas/LifecycleExecutionTriggerTypeV3.d.ts +1 -0
  39. package/dist/har-service/src/services/schemas/LifecycleExecutionTriggerTypeV3.js +4 -0
  40. package/dist/har-service/src/services/schemas/LifecycleRuleActionV3.d.ts +1 -0
  41. package/dist/har-service/src/services/schemas/LifecycleRuleActionV3.js +4 -0
  42. package/dist/har-service/src/services/schemas/LifecycleRuleApplyToModeV3.d.ts +1 -0
  43. package/dist/har-service/src/services/schemas/LifecycleRuleApplyToModeV3.js +4 -0
  44. package/dist/har-service/src/services/schemas/LifecycleRuleApplyToV3.d.ts +5 -0
  45. package/dist/har-service/src/services/schemas/LifecycleRuleApplyToV3.js +1 -0
  46. package/dist/har-service/src/services/schemas/LifecycleRuleCriteriaConfigV3.d.ts +8 -0
  47. package/dist/har-service/src/services/schemas/LifecycleRuleCriteriaConfigV3.js +1 -0
  48. package/dist/har-service/src/services/schemas/LifecycleRuleCriteriaItemV3.d.ts +6 -0
  49. package/dist/har-service/src/services/schemas/LifecycleRuleCriteriaItemV3.js +1 -0
  50. package/dist/har-service/src/services/schemas/LifecycleRuleCriteriaMatchV3.d.ts +1 -0
  51. package/dist/har-service/src/services/schemas/LifecycleRuleCriteriaMatchV3.js +4 -0
  52. package/dist/har-service/src/services/schemas/LifecycleRuleCriteriaTypeV3.d.ts +1 -0
  53. package/dist/har-service/src/services/schemas/LifecycleRuleCriteriaTypeV3.js +4 -0
  54. package/dist/har-service/src/services/schemas/LifecycleRuleCriteriaUnitV3.d.ts +1 -0
  55. package/dist/har-service/src/services/schemas/LifecycleRuleCriteriaUnitV3.js +4 -0
  56. package/dist/har-service/src/services/schemas/LifecycleRuleCriteriaV3.d.ts +6 -0
  57. package/dist/har-service/src/services/schemas/LifecycleRuleCriteriaV3.js +1 -0
  58. package/dist/har-service/src/services/schemas/LifecycleRuleFilterConfigDockerV3.d.ts +14 -0
  59. package/dist/har-service/src/services/schemas/LifecycleRuleFilterConfigDockerV3.js +4 -0
  60. package/dist/har-service/src/services/schemas/LifecycleRuleFilterConfigGenericV3.d.ts +19 -0
  61. package/dist/har-service/src/services/schemas/LifecycleRuleFilterConfigGenericV3.js +4 -0
  62. package/dist/har-service/src/services/schemas/LifecycleRuleFilterConfigHuggingFaceV3.d.ts +18 -0
  63. package/dist/har-service/src/services/schemas/LifecycleRuleFilterConfigHuggingFaceV3.js +4 -0
  64. package/dist/har-service/src/services/schemas/LifecycleRuleFilterConfigMavenV3.d.ts +18 -0
  65. package/dist/har-service/src/services/schemas/LifecycleRuleFilterConfigMavenV3.js +4 -0
  66. package/dist/har-service/src/services/schemas/LifecycleRuleFilterConfigV3.d.ts +9 -0
  67. package/dist/har-service/src/services/schemas/LifecycleRuleFilterConfigV3.js +1 -0
  68. package/dist/har-service/src/services/schemas/LifecycleRuleRequestBodyV3.d.ts +15 -0
  69. package/dist/har-service/src/services/schemas/LifecycleRuleRequestBodyV3.js +1 -0
  70. package/dist/har-service/src/services/schemas/LifecycleRuleResponseV3.d.ts +32 -0
  71. package/dist/har-service/src/services/schemas/LifecycleRuleResponseV3.js +1 -0
  72. package/dist/har-service/src/services/schemas/LifecycleRuleScheduleV3.d.ts +4 -0
  73. package/dist/har-service/src/services/schemas/LifecycleRuleScheduleV3.js +4 -0
  74. package/dist/har-service/src/services/schemas/ListLifecycleExecutionsResponseBodyV3.d.ts +13 -0
  75. package/dist/har-service/src/services/schemas/ListLifecycleExecutionsResponseBodyV3.js +1 -0
  76. package/dist/har-service/src/services/schemas/ListLifecycleRulesResponseBodyV3.d.ts +13 -0
  77. package/dist/har-service/src/services/schemas/ListLifecycleRulesResponseBodyV3.js +1 -0
  78. package/dist/har-service/src/services/schemas/MaliciousPackagePolicyFailureDetailConfigV3.d.ts +1 -1
  79. package/dist/har-service/src/services/schemas/PolicySetsV3.d.ts +13 -0
  80. package/dist/har-service/src/services/schemas/PolicySetsV3.js +4 -0
  81. package/package.json +1 -1
@@ -0,0 +1,23 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { LifecycleExecutionCreatedV3Response } from '../responses/LifecycleExecutionCreatedV3Response';
3
+ import type { ErrorV3 } from '../schemas/ErrorV3';
4
+ import type { LifecycleDryRunRequestBodyV3 } from '../schemas/LifecycleDryRunRequestBodyV3';
5
+ import type { ResponseWithPagination } from '../helpers';
6
+ import { FetcherOptions } from '../../../../fetcher/index.js';
7
+ export interface CreateLifecycleExecutionV3MutationQueryParams {
8
+ account_identifier: string;
9
+ org_identifier?: string;
10
+ project_identifier?: string;
11
+ }
12
+ export type CreateLifecycleExecutionV3RequestBody = LifecycleDryRunRequestBodyV3;
13
+ export type CreateLifecycleExecutionV3OkResponse = ResponseWithPagination<LifecycleExecutionCreatedV3Response>;
14
+ export type CreateLifecycleExecutionV3ErrorResponse = ErrorV3;
15
+ export interface CreateLifecycleExecutionV3Props extends Omit<FetcherOptions<CreateLifecycleExecutionV3MutationQueryParams, CreateLifecycleExecutionV3RequestBody>, 'url'> {
16
+ queryParams: CreateLifecycleExecutionV3MutationQueryParams;
17
+ body: CreateLifecycleExecutionV3RequestBody;
18
+ }
19
+ export declare function createLifecycleExecutionV3(props: CreateLifecycleExecutionV3Props): Promise<CreateLifecycleExecutionV3OkResponse>;
20
+ /**
21
+ * Triggers a dry-run execution for a lifecycle rule.
22
+ */
23
+ export declare function useCreateLifecycleExecutionV3Mutation(options?: Omit<UseMutationOptions<CreateLifecycleExecutionV3OkResponse, CreateLifecycleExecutionV3ErrorResponse, CreateLifecycleExecutionV3Props>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CreateLifecycleExecutionV3OkResponse, ErrorV3, CreateLifecycleExecutionV3Props, 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 createLifecycleExecutionV3(props) {
7
+ return fetcher(Object.assign({ url: `/v3/lifecycle/executions`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Triggers a dry-run execution for a lifecycle rule.
11
+ */
12
+ export function useCreateLifecycleExecutionV3Mutation(options) {
13
+ return useMutation((mutateProps) => createLifecycleExecutionV3(mutateProps), options);
14
+ }
@@ -0,0 +1,23 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { LifecycleRuleCreatedV3Response } from '../responses/LifecycleRuleCreatedV3Response';
3
+ import type { ErrorV3 } from '../schemas/ErrorV3';
4
+ import type { LifecycleRuleRequestBodyV3 } from '../schemas/LifecycleRuleRequestBodyV3';
5
+ import type { ResponseWithPagination } from '../helpers';
6
+ import { FetcherOptions } from '../../../../fetcher/index.js';
7
+ export interface CreateLifecycleRuleV3MutationQueryParams {
8
+ account_identifier: string;
9
+ org_identifier?: string;
10
+ project_identifier?: string;
11
+ }
12
+ export type CreateLifecycleRuleV3RequestBody = LifecycleRuleRequestBodyV3;
13
+ export type CreateLifecycleRuleV3OkResponse = ResponseWithPagination<LifecycleRuleCreatedV3Response>;
14
+ export type CreateLifecycleRuleV3ErrorResponse = ErrorV3;
15
+ export interface CreateLifecycleRuleV3Props extends Omit<FetcherOptions<CreateLifecycleRuleV3MutationQueryParams, CreateLifecycleRuleV3RequestBody>, 'url'> {
16
+ queryParams: CreateLifecycleRuleV3MutationQueryParams;
17
+ body: CreateLifecycleRuleV3RequestBody;
18
+ }
19
+ export declare function createLifecycleRuleV3(props: CreateLifecycleRuleV3Props): Promise<CreateLifecycleRuleV3OkResponse>;
20
+ /**
21
+ * Creates a new lifecycle rule.
22
+ */
23
+ export declare function useCreateLifecycleRuleV3Mutation(options?: Omit<UseMutationOptions<CreateLifecycleRuleV3OkResponse, CreateLifecycleRuleV3ErrorResponse, CreateLifecycleRuleV3Props>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CreateLifecycleRuleV3OkResponse, ErrorV3, CreateLifecycleRuleV3Props, 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 createLifecycleRuleV3(props) {
7
+ return fetcher(Object.assign({ url: `/v3/lifecycle/rules`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Creates a new lifecycle rule.
11
+ */
12
+ export function useCreateLifecycleRuleV3Mutation(options) {
13
+ return useMutation((mutateProps) => createLifecycleRuleV3(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 DeleteLifecycleRuleV3MutationPathParams {
6
+ id: string;
7
+ }
8
+ export interface DeleteLifecycleRuleV3MutationQueryParams {
9
+ account_identifier: string;
10
+ }
11
+ export type DeleteLifecycleRuleV3OkResponse = ResponseWithPagination<unknown>;
12
+ export type DeleteLifecycleRuleV3ErrorResponse = ErrorV3;
13
+ export interface DeleteLifecycleRuleV3Props extends DeleteLifecycleRuleV3MutationPathParams, Omit<FetcherOptions<DeleteLifecycleRuleV3MutationQueryParams, unknown>, 'url'> {
14
+ queryParams: DeleteLifecycleRuleV3MutationQueryParams;
15
+ }
16
+ export declare function deleteLifecycleRuleV3(props: DeleteLifecycleRuleV3Props): Promise<DeleteLifecycleRuleV3OkResponse>;
17
+ /**
18
+ * Deletes a lifecycle rule. Only the owner scope may delete.
19
+ */
20
+ export declare function useDeleteLifecycleRuleV3Mutation(options?: Omit<UseMutationOptions<DeleteLifecycleRuleV3OkResponse, DeleteLifecycleRuleV3ErrorResponse, DeleteLifecycleRuleV3Props>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<DeleteLifecycleRuleV3OkResponse, ErrorV3, DeleteLifecycleRuleV3Props, 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 deleteLifecycleRuleV3(props) {
7
+ return fetcher(Object.assign({ url: `/v3/lifecycle/rules/${props.id}`, method: 'DELETE' }, props));
8
+ }
9
+ /**
10
+ * Deletes a lifecycle rule. Only the owner scope may delete.
11
+ */
12
+ export function useDeleteLifecycleRuleV3Mutation(options) {
13
+ return useMutation((mutateProps) => deleteLifecycleRuleV3(mutateProps), options);
14
+ }
@@ -0,0 +1,23 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { LifecycleExecutionResponseV3Response } from '../responses/LifecycleExecutionResponseV3Response';
3
+ import type { ErrorV3 } from '../schemas/ErrorV3';
4
+ import type { ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
+ export interface GetLifecycleExecutionV3QueryPathParams {
7
+ executionId: string;
8
+ }
9
+ export interface GetLifecycleExecutionV3QueryQueryParams {
10
+ account_identifier: string;
11
+ org_identifier?: string;
12
+ project_identifier?: string;
13
+ }
14
+ export type GetLifecycleExecutionV3OkResponse = ResponseWithPagination<LifecycleExecutionResponseV3Response>;
15
+ export type GetLifecycleExecutionV3ErrorResponse = ErrorV3;
16
+ export interface GetLifecycleExecutionV3Props extends GetLifecycleExecutionV3QueryPathParams, Omit<FetcherOptions<GetLifecycleExecutionV3QueryQueryParams, unknown>, 'url'> {
17
+ queryParams: GetLifecycleExecutionV3QueryQueryParams;
18
+ }
19
+ export declare function getLifecycleExecutionV3(props: GetLifecycleExecutionV3Props): Promise<GetLifecycleExecutionV3OkResponse>;
20
+ /**
21
+ * Returns a specific lifecycle execution by ID.
22
+ */
23
+ export declare function useGetLifecycleExecutionV3Query(props: GetLifecycleExecutionV3Props, options?: Omit<UseQueryOptions<GetLifecycleExecutionV3OkResponse, GetLifecycleExecutionV3ErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetLifecycleExecutionV3OkResponse, 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 getLifecycleExecutionV3(props) {
7
+ return fetcher(Object.assign({ url: `/v3/lifecycle/executions/${props.executionId}`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Returns a specific lifecycle execution by ID.
11
+ */
12
+ export function useGetLifecycleExecutionV3Query(props, options) {
13
+ return useQuery(['GetLifecycleExecutionV3', props.executionId, props.queryParams], ({ signal }) => getLifecycleExecutionV3(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,32 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ListLifecycleExecutionsResponseV3Response } from '../responses/ListLifecycleExecutionsResponseV3Response';
3
+ import type { ErrorV3 } from '../schemas/ErrorV3';
4
+ import type { ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
+ export interface ListLifecycleExecutionsV3QueryQueryParams {
7
+ account_identifier: string;
8
+ org_identifier?: string;
9
+ project_identifier?: string;
10
+ /**
11
+ * @format int64
12
+ * @default 0
13
+ */
14
+ page?: number;
15
+ /**
16
+ * @format int64
17
+ * @default 20
18
+ */
19
+ size?: number;
20
+ policyId?: string;
21
+ status?: 'FAILED' | 'INPROGRESS' | 'PENDING' | 'SUCCESS';
22
+ }
23
+ export type ListLifecycleExecutionsV3OkResponse = ResponseWithPagination<ListLifecycleExecutionsResponseV3Response>;
24
+ export type ListLifecycleExecutionsV3ErrorResponse = ErrorV3;
25
+ export interface ListLifecycleExecutionsV3Props extends Omit<FetcherOptions<ListLifecycleExecutionsV3QueryQueryParams, unknown>, 'url'> {
26
+ queryParams: ListLifecycleExecutionsV3QueryQueryParams;
27
+ }
28
+ export declare function listLifecycleExecutionsV3(props: ListLifecycleExecutionsV3Props): Promise<ListLifecycleExecutionsV3OkResponse>;
29
+ /**
30
+ * Lists lifecycle executions for the given scope, optionally filtered by policy.
31
+ */
32
+ export declare function useListLifecycleExecutionsV3Query(props: ListLifecycleExecutionsV3Props, options?: Omit<UseQueryOptions<ListLifecycleExecutionsV3OkResponse, ListLifecycleExecutionsV3ErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListLifecycleExecutionsV3OkResponse, 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 listLifecycleExecutionsV3(props) {
7
+ return fetcher(Object.assign({ url: `/v3/lifecycle/executions`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Lists lifecycle executions for the given scope, optionally filtered by policy.
11
+ */
12
+ export function useListLifecycleExecutionsV3Query(props, options) {
13
+ return useQuery(['ListLifecycleExecutionsV3', props.queryParams], ({ signal }) => listLifecycleExecutionsV3(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,33 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ListLifecycleRulesResponseV3Response } from '../responses/ListLifecycleRulesResponseV3Response';
3
+ import type { ErrorV3 } from '../schemas/ErrorV3';
4
+ import type { ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
+ export interface ListLifecycleRulesV3QueryQueryParams {
7
+ account_identifier: string;
8
+ org_identifier?: string;
9
+ project_identifier?: string;
10
+ search_term?: string;
11
+ /**
12
+ * @format int64
13
+ * @default 0
14
+ */
15
+ page?: number;
16
+ /**
17
+ * @format int64
18
+ * @default 20
19
+ */
20
+ size?: number;
21
+ sort?: string;
22
+ action?: 'DELETE' | 'PROTECT';
23
+ }
24
+ export type ListLifecycleRulesV3OkResponse = ResponseWithPagination<ListLifecycleRulesResponseV3Response>;
25
+ export type ListLifecycleRulesV3ErrorResponse = ErrorV3;
26
+ export interface ListLifecycleRulesV3Props extends Omit<FetcherOptions<ListLifecycleRulesV3QueryQueryParams, unknown>, 'url'> {
27
+ queryParams: ListLifecycleRulesV3QueryQueryParams;
28
+ }
29
+ export declare function listLifecycleRulesV3(props: ListLifecycleRulesV3Props): Promise<ListLifecycleRulesV3OkResponse>;
30
+ /**
31
+ * Lists lifecycle rules for the given scope.
32
+ */
33
+ export declare function useListLifecycleRulesV3Query(props: ListLifecycleRulesV3Props, options?: Omit<UseQueryOptions<ListLifecycleRulesV3OkResponse, ListLifecycleRulesV3ErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListLifecycleRulesV3OkResponse, 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 listLifecycleRulesV3(props) {
7
+ return fetcher(Object.assign({ url: `/v3/lifecycle/rules`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Lists lifecycle rules for the given scope.
11
+ */
12
+ export function useListLifecycleRulesV3Query(props, options) {
13
+ return useQuery(['ListLifecycleRulesV3', props.queryParams], ({ signal }) => listLifecycleRulesV3(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -11,6 +11,7 @@ export interface ListPipelineBuildInfoDetailsV3QueryQueryParams {
11
11
  org_identifier?: string;
12
12
  project_identifier?: string;
13
13
  pipeline_id?: string;
14
+ scan_id?: string;
14
15
  /**
15
16
  * @format int64
16
17
  * @default 0
@@ -0,0 +1,26 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { LifecycleRuleUpdatedV3Response } from '../responses/LifecycleRuleUpdatedV3Response';
3
+ import type { ErrorV3 } from '../schemas/ErrorV3';
4
+ import type { LifecycleRuleRequestBodyV3 } from '../schemas/LifecycleRuleRequestBodyV3';
5
+ import type { ResponseWithPagination } from '../helpers';
6
+ import { FetcherOptions } from '../../../../fetcher/index.js';
7
+ export interface UpdateLifecycleRuleV3MutationPathParams {
8
+ id: string;
9
+ }
10
+ export interface UpdateLifecycleRuleV3MutationQueryParams {
11
+ account_identifier: string;
12
+ org_identifier?: string;
13
+ project_identifier?: string;
14
+ }
15
+ export type UpdateLifecycleRuleV3RequestBody = LifecycleRuleRequestBodyV3;
16
+ export type UpdateLifecycleRuleV3OkResponse = ResponseWithPagination<LifecycleRuleUpdatedV3Response>;
17
+ export type UpdateLifecycleRuleV3ErrorResponse = ErrorV3;
18
+ export interface UpdateLifecycleRuleV3Props extends UpdateLifecycleRuleV3MutationPathParams, Omit<FetcherOptions<UpdateLifecycleRuleV3MutationQueryParams, UpdateLifecycleRuleV3RequestBody>, 'url'> {
19
+ queryParams: UpdateLifecycleRuleV3MutationQueryParams;
20
+ body: UpdateLifecycleRuleV3RequestBody;
21
+ }
22
+ export declare function updateLifecycleRuleV3(props: UpdateLifecycleRuleV3Props): Promise<UpdateLifecycleRuleV3OkResponse>;
23
+ /**
24
+ * Updates an existing lifecycle rule.
25
+ */
26
+ export declare function useUpdateLifecycleRuleV3Mutation(options?: Omit<UseMutationOptions<UpdateLifecycleRuleV3OkResponse, UpdateLifecycleRuleV3ErrorResponse, UpdateLifecycleRuleV3Props>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UpdateLifecycleRuleV3OkResponse, ErrorV3, UpdateLifecycleRuleV3Props, 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 updateLifecycleRuleV3(props) {
7
+ return fetcher(Object.assign({ url: `/v3/lifecycle/rules/${props.id}`, method: 'PUT' }, props));
8
+ }
9
+ /**
10
+ * Updates an existing lifecycle rule.
11
+ */
12
+ export function useUpdateLifecycleRuleV3Mutation(options) {
13
+ return useMutation((mutateProps) => updateLifecycleRuleV3(mutateProps), options);
14
+ }
@@ -17,6 +17,10 @@ export type { CreateBulkDownloadRequestV3ErrorResponse, CreateBulkDownloadReques
17
17
  export { createBulkDownloadRequestV3, useCreateBulkDownloadRequestV3Mutation, } from './hooks/useCreateBulkDownloadRequestV3Mutation';
18
18
  export type { CreateFirewallExceptionV3ErrorResponse, CreateFirewallExceptionV3MutationQueryParams, CreateFirewallExceptionV3OkResponse, CreateFirewallExceptionV3Props, CreateFirewallExceptionV3RequestBody, } from './hooks/useCreateFirewallExceptionV3Mutation';
19
19
  export { createFirewallExceptionV3, useCreateFirewallExceptionV3Mutation, } from './hooks/useCreateFirewallExceptionV3Mutation';
20
+ export type { CreateLifecycleExecutionV3ErrorResponse, CreateLifecycleExecutionV3MutationQueryParams, CreateLifecycleExecutionV3OkResponse, CreateLifecycleExecutionV3Props, CreateLifecycleExecutionV3RequestBody, } from './hooks/useCreateLifecycleExecutionV3Mutation';
21
+ export { createLifecycleExecutionV3, useCreateLifecycleExecutionV3Mutation, } from './hooks/useCreateLifecycleExecutionV3Mutation';
22
+ export type { CreateLifecycleRuleV3ErrorResponse, CreateLifecycleRuleV3MutationQueryParams, CreateLifecycleRuleV3OkResponse, CreateLifecycleRuleV3Props, CreateLifecycleRuleV3RequestBody, } from './hooks/useCreateLifecycleRuleV3Mutation';
23
+ export { createLifecycleRuleV3, useCreateLifecycleRuleV3Mutation, } from './hooks/useCreateLifecycleRuleV3Mutation';
20
24
  export type { CreateRegistryErrorResponse, CreateRegistryMutationQueryParams, CreateRegistryOkResponse, CreateRegistryProps, CreateRegistryRequestBody, } from './hooks/useCreateRegistryMutation';
21
25
  export { createRegistry, useCreateRegistryMutation } from './hooks/useCreateRegistryMutation';
22
26
  export type { CreateReplicationRuleErrorResponse, CreateReplicationRuleMutationQueryParams, CreateReplicationRuleOkResponse, CreateReplicationRuleProps, CreateReplicationRuleRequestBody, } from './hooks/useCreateReplicationRuleMutation';
@@ -33,6 +37,8 @@ export type { DeleteArtifactVersionErrorResponse, DeleteArtifactVersionMutationP
33
37
  export { deleteArtifactVersion, useDeleteArtifactVersionMutation, } from './hooks/useDeleteArtifactVersionMutation';
34
38
  export type { DeleteFirewallExceptionV3ErrorResponse, DeleteFirewallExceptionV3MutationPathParams, DeleteFirewallExceptionV3MutationQueryParams, DeleteFirewallExceptionV3OkResponse, DeleteFirewallExceptionV3Props, } from './hooks/useDeleteFirewallExceptionV3Mutation';
35
39
  export { deleteFirewallExceptionV3, useDeleteFirewallExceptionV3Mutation, } from './hooks/useDeleteFirewallExceptionV3Mutation';
40
+ export type { DeleteLifecycleRuleV3ErrorResponse, DeleteLifecycleRuleV3MutationPathParams, DeleteLifecycleRuleV3MutationQueryParams, DeleteLifecycleRuleV3OkResponse, DeleteLifecycleRuleV3Props, } from './hooks/useDeleteLifecycleRuleV3Mutation';
41
+ export { deleteLifecycleRuleV3, useDeleteLifecycleRuleV3Mutation, } from './hooks/useDeleteLifecycleRuleV3Mutation';
36
42
  export type { DeleteMetadataErrorResponse, DeleteMetadataMutationQueryParams, DeleteMetadataOkResponse, DeleteMetadataProps, } from './hooks/useDeleteMetadataMutation';
37
43
  export { deleteMetadata, useDeleteMetadataMutation } from './hooks/useDeleteMetadataMutation';
38
44
  export type { DeleteMetadataV3ErrorResponse, DeleteMetadataV3MutationPathParams, DeleteMetadataV3MutationQueryParams, DeleteMetadataV3OkResponse, DeleteMetadataV3Props, } from './hooks/useDeleteMetadataV3Mutation';
@@ -117,6 +123,8 @@ export type { GetHelmArtifactDetailsErrorResponse, GetHelmArtifactDetailsOkRespo
117
123
  export { getHelmArtifactDetails, useGetHelmArtifactDetailsQuery, } from './hooks/useGetHelmArtifactDetailsQuery';
118
124
  export type { GetHelmArtifactManifestErrorResponse, GetHelmArtifactManifestOkResponse, GetHelmArtifactManifestProps, GetHelmArtifactManifestQueryPathParams, } from './hooks/useGetHelmArtifactManifestQuery';
119
125
  export { getHelmArtifactManifest, useGetHelmArtifactManifestQuery, } from './hooks/useGetHelmArtifactManifestQuery';
126
+ export type { GetLifecycleExecutionV3ErrorResponse, GetLifecycleExecutionV3OkResponse, GetLifecycleExecutionV3Props, GetLifecycleExecutionV3QueryPathParams, GetLifecycleExecutionV3QueryQueryParams, } from './hooks/useGetLifecycleExecutionV3Query';
127
+ export { getLifecycleExecutionV3, useGetLifecycleExecutionV3Query, } from './hooks/useGetLifecycleExecutionV3Query';
120
128
  export type { GetMetadataKeysErrorResponse, GetMetadataKeysOkResponse, GetMetadataKeysProps, GetMetadataKeysQueryQueryParams, } from './hooks/useGetMetadataKeysQuery';
121
129
  export { getMetadataKeys, useGetMetadataKeysQuery } from './hooks/useGetMetadataKeysQuery';
122
130
  export type { GetMetadataKeysV3ErrorResponse, GetMetadataKeysV3OkResponse, GetMetadataKeysV3Props, GetMetadataKeysV3QueryQueryParams, } from './hooks/useGetMetadataKeysV3Query';
@@ -159,6 +167,10 @@ export type { ListFirewallExceptionVersionsV3ErrorResponse, ListFirewallExceptio
159
167
  export { listFirewallExceptionVersionsV3, useListFirewallExceptionVersionsV3Query, } from './hooks/useListFirewallExceptionVersionsV3Query';
160
168
  export type { ListFirewallExceptionsV3ErrorResponse, ListFirewallExceptionsV3OkResponse, ListFirewallExceptionsV3Props, ListFirewallExceptionsV3QueryQueryParams, } from './hooks/useListFirewallExceptionsV3Query';
161
169
  export { listFirewallExceptionsV3, useListFirewallExceptionsV3Query, } from './hooks/useListFirewallExceptionsV3Query';
170
+ export type { ListLifecycleExecutionsV3ErrorResponse, ListLifecycleExecutionsV3OkResponse, ListLifecycleExecutionsV3Props, ListLifecycleExecutionsV3QueryQueryParams, } from './hooks/useListLifecycleExecutionsV3Query';
171
+ export { listLifecycleExecutionsV3, useListLifecycleExecutionsV3Query, } from './hooks/useListLifecycleExecutionsV3Query';
172
+ export type { ListLifecycleRulesV3ErrorResponse, ListLifecycleRulesV3OkResponse, ListLifecycleRulesV3Props, ListLifecycleRulesV3QueryQueryParams, } from './hooks/useListLifecycleRulesV3Query';
173
+ export { listLifecycleRulesV3, useListLifecycleRulesV3Query, } from './hooks/useListLifecycleRulesV3Query';
162
174
  export type { ListMigrationImagesErrorResponse, ListMigrationImagesOkResponse, ListMigrationImagesProps, ListMigrationImagesQueryPathParams, ListMigrationImagesQueryQueryParams, } from './hooks/useListMigrationImagesQuery';
163
175
  export { listMigrationImages, useListMigrationImagesQuery, } from './hooks/useListMigrationImagesQuery';
164
176
  export type { ListPackagesErrorResponse, ListPackagesOkResponse, ListPackagesProps, ListPackagesQueryQueryParams, } from './hooks/useListPackagesQuery';
@@ -225,6 +237,8 @@ export type { UpdateArtifactLabelsErrorResponse, UpdateArtifactLabelsMutationPat
225
237
  export { updateArtifactLabels, useUpdateArtifactLabelsMutation, } from './hooks/useUpdateArtifactLabelsMutation';
226
238
  export type { UpdateFirewallExceptionV3ErrorResponse, UpdateFirewallExceptionV3MutationPathParams, UpdateFirewallExceptionV3MutationQueryParams, UpdateFirewallExceptionV3OkResponse, UpdateFirewallExceptionV3Props, UpdateFirewallExceptionV3RequestBody, } from './hooks/useUpdateFirewallExceptionV3Mutation';
227
239
  export { updateFirewallExceptionV3, useUpdateFirewallExceptionV3Mutation, } from './hooks/useUpdateFirewallExceptionV3Mutation';
240
+ export type { UpdateLifecycleRuleV3ErrorResponse, UpdateLifecycleRuleV3MutationPathParams, UpdateLifecycleRuleV3MutationQueryParams, UpdateLifecycleRuleV3OkResponse, UpdateLifecycleRuleV3Props, UpdateLifecycleRuleV3RequestBody, } from './hooks/useUpdateLifecycleRuleV3Mutation';
241
+ export { updateLifecycleRuleV3, useUpdateLifecycleRuleV3Mutation, } from './hooks/useUpdateLifecycleRuleV3Mutation';
228
242
  export type { UpdateMetadataErrorResponse, UpdateMetadataMutationQueryParams, UpdateMetadataOkResponse, UpdateMetadataProps, UpdateMetadataRequestBody, } from './hooks/useUpdateMetadataMutation';
229
243
  export { updateMetadata, useUpdateMetadataMutation } from './hooks/useUpdateMetadataMutation';
230
244
  export type { UpdateReplicationRuleErrorResponse, UpdateReplicationRuleMutationPathParams, UpdateReplicationRuleOkResponse, UpdateReplicationRuleProps, UpdateReplicationRuleRequestBody, } from './hooks/useUpdateReplicationRuleMutation';
@@ -296,6 +310,10 @@ export type { GetBulkDownloadRequestStatusResponseV3Response } from './responses
296
310
  export type { HelmArtifactDetailResponseResponse } from './responses/HelmArtifactDetailResponseResponse';
297
311
  export type { HelmArtifactManifestResponseResponse } from './responses/HelmArtifactManifestResponseResponse';
298
312
  export type { InternalServerErrorResponse } from './responses/InternalServerErrorResponse';
313
+ export type { LifecycleExecutionCreatedV3Response } from './responses/LifecycleExecutionCreatedV3Response';
314
+ export type { LifecycleExecutionResponseV3Response } from './responses/LifecycleExecutionResponseV3Response';
315
+ export type { LifecycleRuleCreatedV3Response } from './responses/LifecycleRuleCreatedV3Response';
316
+ export type { LifecycleRuleUpdatedV3Response } from './responses/LifecycleRuleUpdatedV3Response';
299
317
  export type { ListArtifactLabelResponseResponse } from './responses/ListArtifactLabelResponseResponse';
300
318
  export type { ListArtifactResponseResponse } from './responses/ListArtifactResponseResponse';
301
319
  export type { ListArtifactScanResponseV3Response } from './responses/ListArtifactScanResponseV3Response';
@@ -304,6 +322,8 @@ export type { ListFilesResponseResponse } from './responses/ListFilesResponseRes
304
322
  export type { ListFilesResponseV3Response } from './responses/ListFilesResponseV3Response';
305
323
  export type { ListFirewallExceptionResponseV3Response } from './responses/ListFirewallExceptionResponseV3Response';
306
324
  export type { ListFirewallExceptionVersionsResponseV3Response } from './responses/ListFirewallExceptionVersionsResponseV3Response';
325
+ export type { ListLifecycleExecutionsResponseV3Response } from './responses/ListLifecycleExecutionsResponseV3Response';
326
+ export type { ListLifecycleRulesResponseV3Response } from './responses/ListLifecycleRulesResponseV3Response';
307
327
  export type { ListMigrationImageResponseResponse } from './responses/ListMigrationImageResponseResponse';
308
328
  export type { ListOciArtifactTagsResponseResponse } from './responses/ListOciArtifactTagsResponseResponse';
309
329
  export type { ListPackageResponseResponse } from './responses/ListPackageResponseResponse';
@@ -430,12 +450,35 @@ export type { HelmArtifactManifest } from './schemas/HelmArtifactManifest';
430
450
  export type { HuggingFaceArtifactDetailConfig } from './schemas/HuggingFaceArtifactDetailConfig';
431
451
  export type { JfrogReplicationRegistry } from './schemas/JfrogReplicationRegistry';
432
452
  export type { LicensePolicyFailureDetailConfigV3 } from './schemas/LicensePolicyFailureDetailConfigV3';
453
+ export type { LifecycleDryRunRequestBodyV3 } from './schemas/LifecycleDryRunRequestBodyV3';
454
+ export type { LifecycleExecutionResponseV3 } from './schemas/LifecycleExecutionResponseV3';
455
+ export type { LifecycleExecutionStatusV3 } from './schemas/LifecycleExecutionStatusV3';
456
+ export type { LifecycleExecutionTriggerTypeV3 } from './schemas/LifecycleExecutionTriggerTypeV3';
457
+ export type { LifecycleRuleActionV3 } from './schemas/LifecycleRuleActionV3';
458
+ export type { LifecycleRuleApplyToModeV3 } from './schemas/LifecycleRuleApplyToModeV3';
459
+ export type { LifecycleRuleApplyToV3 } from './schemas/LifecycleRuleApplyToV3';
460
+ export type { LifecycleRuleCriteriaConfigV3 } from './schemas/LifecycleRuleCriteriaConfigV3';
461
+ export type { LifecycleRuleCriteriaItemV3 } from './schemas/LifecycleRuleCriteriaItemV3';
462
+ export type { LifecycleRuleCriteriaMatchV3 } from './schemas/LifecycleRuleCriteriaMatchV3';
463
+ export type { LifecycleRuleCriteriaTypeV3 } from './schemas/LifecycleRuleCriteriaTypeV3';
464
+ export type { LifecycleRuleCriteriaUnitV3 } from './schemas/LifecycleRuleCriteriaUnitV3';
465
+ export type { LifecycleRuleCriteriaV3 } from './schemas/LifecycleRuleCriteriaV3';
466
+ export type { LifecycleRuleFilterConfigDockerV3 } from './schemas/LifecycleRuleFilterConfigDockerV3';
467
+ export type { LifecycleRuleFilterConfigGenericV3 } from './schemas/LifecycleRuleFilterConfigGenericV3';
468
+ export type { LifecycleRuleFilterConfigHuggingFaceV3 } from './schemas/LifecycleRuleFilterConfigHuggingFaceV3';
469
+ export type { LifecycleRuleFilterConfigMavenV3 } from './schemas/LifecycleRuleFilterConfigMavenV3';
470
+ export type { LifecycleRuleFilterConfigV3 } from './schemas/LifecycleRuleFilterConfigV3';
471
+ export type { LifecycleRuleRequestBodyV3 } from './schemas/LifecycleRuleRequestBodyV3';
472
+ export type { LifecycleRuleResponseV3 } from './schemas/LifecycleRuleResponseV3';
473
+ export type { LifecycleRuleScheduleV3 } from './schemas/LifecycleRuleScheduleV3';
433
474
  export type { ListArtifact } from './schemas/ListArtifact';
434
475
  export type { ListArtifactLabel } from './schemas/ListArtifactLabel';
435
476
  export type { ListArtifactVersion } from './schemas/ListArtifactVersion';
436
477
  export type { ListFileDetail } from './schemas/ListFileDetail';
437
478
  export type { ListFilesResponseBodyV3 } from './schemas/ListFilesResponseBodyV3';
438
479
  export type { ListFirewallExceptionsResponseBodyV3 } from './schemas/ListFirewallExceptionsResponseBodyV3';
480
+ export type { ListLifecycleExecutionsResponseBodyV3 } from './schemas/ListLifecycleExecutionsResponseBodyV3';
481
+ export type { ListLifecycleRulesResponseBodyV3 } from './schemas/ListLifecycleRulesResponseBodyV3';
439
482
  export type { ListMetadataKeysResponseBodyV3 } from './schemas/ListMetadataKeysResponseBodyV3';
440
483
  export type { ListMetadataValuesResponseBodyV3 } from './schemas/ListMetadataValuesResponseBodyV3';
441
484
  export type { ListMigrationImage } from './schemas/ListMigrationImage';
@@ -486,6 +529,7 @@ export type { PipelineContextV3 } from './schemas/PipelineContextV3';
486
529
  export type { PolicyFailureDetailCategoryV3 } from './schemas/PolicyFailureDetailCategoryV3';
487
530
  export type { PolicyFailureDetailV3 } from './schemas/PolicyFailureDetailV3';
488
531
  export type { PolicySetFailureDetailV3 } from './schemas/PolicySetFailureDetailV3';
532
+ export type { PolicySetsV3 } from './schemas/PolicySetsV3';
489
533
  export type { PuppetArtifactDetailConfig } from './schemas/PuppetArtifactDetailConfig';
490
534
  export type { PythonArtifactDetailConfig } from './schemas/PythonArtifactDetailConfig';
491
535
  export type { QuarantinePath } from './schemas/QuarantinePath';
@@ -7,6 +7,8 @@ export { createBulkDownloadRequest, useCreateBulkDownloadRequestMutation, } from
7
7
  export { createBulkDownloadRequestV1, useCreateBulkDownloadRequestV1Query, } from './hooks/useCreateBulkDownloadRequestV1Query';
8
8
  export { createBulkDownloadRequestV3, useCreateBulkDownloadRequestV3Mutation, } from './hooks/useCreateBulkDownloadRequestV3Mutation';
9
9
  export { createFirewallExceptionV3, useCreateFirewallExceptionV3Mutation, } from './hooks/useCreateFirewallExceptionV3Mutation';
10
+ export { createLifecycleExecutionV3, useCreateLifecycleExecutionV3Mutation, } from './hooks/useCreateLifecycleExecutionV3Mutation';
11
+ export { createLifecycleRuleV3, useCreateLifecycleRuleV3Mutation, } from './hooks/useCreateLifecycleRuleV3Mutation';
10
12
  export { createRegistry, useCreateRegistryMutation } from './hooks/useCreateRegistryMutation';
11
13
  export { createReplicationRule, useCreateReplicationRuleMutation, } from './hooks/useCreateReplicationRuleMutation';
12
14
  export { createWebhook, useCreateWebhookMutation } from './hooks/useCreateWebhookMutation';
@@ -15,6 +17,7 @@ export { defineSpaceLabelValue, useDefineSpaceLabelValueMutation, } from './hook
15
17
  export { deleteArtifact, useDeleteArtifactMutation } from './hooks/useDeleteArtifactMutation';
16
18
  export { deleteArtifactVersion, useDeleteArtifactVersionMutation, } from './hooks/useDeleteArtifactVersionMutation';
17
19
  export { deleteFirewallExceptionV3, useDeleteFirewallExceptionV3Mutation, } from './hooks/useDeleteFirewallExceptionV3Mutation';
20
+ export { deleteLifecycleRuleV3, useDeleteLifecycleRuleV3Mutation, } from './hooks/useDeleteLifecycleRuleV3Mutation';
18
21
  export { deleteMetadata, useDeleteMetadataMutation } from './hooks/useDeleteMetadataMutation';
19
22
  export { deleteMetadataV3, useDeleteMetadataV3Mutation } from './hooks/useDeleteMetadataV3Mutation';
20
23
  export { deletePackageV3, useDeletePackageV3Mutation } from './hooks/useDeletePackageV3Mutation';
@@ -57,6 +60,7 @@ export { getFile, useGetFileQuery } from './hooks/useGetFileQuery';
57
60
  export { getFileV3, useGetFileV3Query } from './hooks/useGetFileV3Query';
58
61
  export { getHelmArtifactDetails, useGetHelmArtifactDetailsQuery, } from './hooks/useGetHelmArtifactDetailsQuery';
59
62
  export { getHelmArtifactManifest, useGetHelmArtifactManifestQuery, } from './hooks/useGetHelmArtifactManifestQuery';
63
+ export { getLifecycleExecutionV3, useGetLifecycleExecutionV3Query, } from './hooks/useGetLifecycleExecutionV3Query';
60
64
  export { getMetadataKeys, useGetMetadataKeysQuery } from './hooks/useGetMetadataKeysQuery';
61
65
  export { getMetadataKeysV3, useGetMetadataKeysV3Query } from './hooks/useGetMetadataKeysV3Query';
62
66
  export { getMetadata, useGetMetadataQuery } from './hooks/useGetMetadataQuery';
@@ -78,6 +82,8 @@ export { listArtifactLabels, useListArtifactLabelsQuery } from './hooks/useListA
78
82
  export { listFilesV3, useListFilesV3Query } from './hooks/useListFilesV3Query';
79
83
  export { listFirewallExceptionVersionsV3, useListFirewallExceptionVersionsV3Query, } from './hooks/useListFirewallExceptionVersionsV3Query';
80
84
  export { listFirewallExceptionsV3, useListFirewallExceptionsV3Query, } from './hooks/useListFirewallExceptionsV3Query';
85
+ export { listLifecycleExecutionsV3, useListLifecycleExecutionsV3Query, } from './hooks/useListLifecycleExecutionsV3Query';
86
+ export { listLifecycleRulesV3, useListLifecycleRulesV3Query, } from './hooks/useListLifecycleRulesV3Query';
81
87
  export { listMigrationImages, useListMigrationImagesQuery, } from './hooks/useListMigrationImagesQuery';
82
88
  export { listPackages, useListPackagesQuery } from './hooks/useListPackagesQuery';
83
89
  export { listPackagesV3, useListPackagesV3Query } from './hooks/useListPackagesV3Query';
@@ -111,6 +117,7 @@ export { startMigration, useStartMigrationMutation } from './hooks/useStartMigra
111
117
  export { stopMigration, useStopMigrationMutation } from './hooks/useStopMigrationMutation';
112
118
  export { updateArtifactLabels, useUpdateArtifactLabelsMutation, } from './hooks/useUpdateArtifactLabelsMutation';
113
119
  export { updateFirewallExceptionV3, useUpdateFirewallExceptionV3Mutation, } from './hooks/useUpdateFirewallExceptionV3Mutation';
120
+ export { updateLifecycleRuleV3, useUpdateLifecycleRuleV3Mutation, } from './hooks/useUpdateLifecycleRuleV3Mutation';
114
121
  export { updateMetadata, useUpdateMetadataMutation } from './hooks/useUpdateMetadataMutation';
115
122
  export { updateReplicationRule, useUpdateReplicationRuleMutation, } from './hooks/useUpdateReplicationRuleMutation';
116
123
  export { updateSpaceLabel, useUpdateSpaceLabelMutation } from './hooks/useUpdateSpaceLabelMutation';
@@ -0,0 +1,2 @@
1
+ import type { LifecycleExecutionResponseV3 } from '../schemas/LifecycleExecutionResponseV3';
2
+ export type LifecycleExecutionCreatedV3Response = LifecycleExecutionResponseV3;
@@ -0,0 +1,2 @@
1
+ import type { LifecycleExecutionResponseV3 } from '../schemas/LifecycleExecutionResponseV3';
2
+ export type LifecycleExecutionResponseV3Response = LifecycleExecutionResponseV3;
@@ -0,0 +1,2 @@
1
+ import type { LifecycleRuleResponseV3 } from '../schemas/LifecycleRuleResponseV3';
2
+ export type LifecycleRuleCreatedV3Response = LifecycleRuleResponseV3;
@@ -0,0 +1,2 @@
1
+ import type { LifecycleRuleResponseV3 } from '../schemas/LifecycleRuleResponseV3';
2
+ export type LifecycleRuleUpdatedV3Response = LifecycleRuleResponseV3;
@@ -0,0 +1,2 @@
1
+ import type { ListLifecycleExecutionsResponseBodyV3 } from '../schemas/ListLifecycleExecutionsResponseBodyV3';
2
+ export type ListLifecycleExecutionsResponseV3Response = ListLifecycleExecutionsResponseBodyV3;
@@ -0,0 +1,2 @@
1
+ import type { ListLifecycleRulesResponseBodyV3 } from '../schemas/ListLifecycleRulesResponseBodyV3';
2
+ export type ListLifecycleRulesResponseV3Response = ListLifecycleRulesResponseBodyV3;
@@ -29,6 +29,14 @@ export interface ArtifactScanDetailsV3 {
29
29
  * Parent virtual registry name
30
30
  */
31
31
  parentRegistryName: string;
32
+ /**
33
+ * Parent registry organization identifier
34
+ */
35
+ parentRegistryOrgId?: string;
36
+ /**
37
+ * Parent registry project identifier
38
+ */
39
+ parentRegistryProjectId?: string;
32
40
  policySetFailureDetails: PolicySetFailureDetailV3[];
33
41
  /**
34
42
  * Registry ID
@@ -39,6 +47,14 @@ export interface ArtifactScanDetailsV3 {
39
47
  * Registry name
40
48
  */
41
49
  registryName: string;
50
+ /**
51
+ * Organization identifier of the registry
52
+ */
53
+ registryOrgId?: string;
54
+ /**
55
+ * Project identifier of the registry
56
+ */
57
+ registryProjectId?: string;
42
58
  /**
43
59
  * Unique set of root packages (name@version) impacted by this scan
44
60
  */
@@ -1,6 +1,6 @@
1
1
  import type { BuildDetailsV3 } from '../schemas/BuildDetailsV3';
2
2
  import type { PackageTypeV3 } from '../schemas/PackageTypeV3';
3
- import type { PolicySetFailureDetailV3 } from '../schemas/PolicySetFailureDetailV3';
3
+ import type { PolicySetsV3 } from '../schemas/PolicySetsV3';
4
4
  import type { PolicyFailureDetailCategoryV3 } from '../schemas/PolicyFailureDetailCategoryV3';
5
5
  export interface ArtifactScanV3 {
6
6
  /**
@@ -28,7 +28,15 @@ export interface ArtifactScanV3 {
28
28
  * Parent virtual registry name
29
29
  */
30
30
  parentRegistryName: string;
31
- policySets: PolicySetFailureDetailV3[];
31
+ /**
32
+ * Parent registry organization identifier
33
+ */
34
+ parentRegistryOrgId?: string;
35
+ /**
36
+ * Parent registry project identifier
37
+ */
38
+ parentRegistryProjectId?: string;
39
+ policySets: PolicySetsV3;
32
40
  /**
33
41
  * Package URL (PURL) identifying the package version
34
42
  */
@@ -0,0 +1,3 @@
1
+ export interface LifecycleDryRunRequestBodyV3 {
2
+ policyId: string;
3
+ }
@@ -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,41 @@
1
+ import type { LifecycleExecutionStatusV3 } from '../schemas/LifecycleExecutionStatusV3';
2
+ import type { LifecycleExecutionTriggerTypeV3 } from '../schemas/LifecycleExecutionTriggerTypeV3';
3
+ export interface LifecycleExecutionResponseV3 {
4
+ /**
5
+ * @format int64
6
+ */
7
+ completedAt?: number;
8
+ /**
9
+ * @format int64
10
+ */
11
+ createdAt: number;
12
+ id: string;
13
+ message?: string;
14
+ /**
15
+ * @format int64
16
+ */
17
+ packagesAffected: number;
18
+ policyId: string;
19
+ /**
20
+ * @format int64
21
+ */
22
+ protected: number;
23
+ /**
24
+ * @format int64
25
+ */
26
+ registriesAffected: number;
27
+ /**
28
+ * @format int64
29
+ */
30
+ startedAt?: number;
31
+ status: LifecycleExecutionStatusV3;
32
+ /**
33
+ * @format int64
34
+ */
35
+ storageReclaimed: number;
36
+ triggerType: LifecycleExecutionTriggerTypeV3;
37
+ /**
38
+ * @format int64
39
+ */
40
+ versionsDeleted: number;
41
+ }
@@ -0,0 +1 @@
1
+ export type LifecycleExecutionStatusV3 = 'FAILED' | 'INPROGRESS' | 'PENDING' | '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 @@
1
+ export type LifecycleExecutionTriggerTypeV3 = 'DRY_RUN' | 'SCHEDULED';
@@ -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 @@
1
+ export type LifecycleRuleActionV3 = 'DELETE' | 'PROTECT';
@@ -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 @@
1
+ export type LifecycleRuleApplyToModeV3 = 'ALL_IN_SCOPE' | 'EXPLICIT';
@@ -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,5 @@
1
+ import type { LifecycleRuleApplyToModeV3 } from '../schemas/LifecycleRuleApplyToModeV3';
2
+ export interface LifecycleRuleApplyToV3 {
3
+ mode: LifecycleRuleApplyToModeV3;
4
+ registries?: string[];
5
+ }
@@ -0,0 +1,8 @@
1
+ import type { LifecycleRuleCriteriaUnitV3 } from '../schemas/LifecycleRuleCriteriaUnitV3';
2
+ export interface LifecycleRuleCriteriaConfigV3 {
3
+ unit?: LifecycleRuleCriteriaUnitV3;
4
+ /**
5
+ * @format int64
6
+ */
7
+ value?: number;
8
+ }
@@ -0,0 +1,6 @@
1
+ import type { LifecycleRuleCriteriaConfigV3 } from '../schemas/LifecycleRuleCriteriaConfigV3';
2
+ import type { LifecycleRuleCriteriaTypeV3 } from '../schemas/LifecycleRuleCriteriaTypeV3';
3
+ export interface LifecycleRuleCriteriaItemV3 {
4
+ config: LifecycleRuleCriteriaConfigV3;
5
+ type: LifecycleRuleCriteriaTypeV3;
6
+ }
@@ -0,0 +1 @@
1
+ export type LifecycleRuleCriteriaMatchV3 = 'ALL' | 'ANY';
@@ -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 @@
1
+ export type LifecycleRuleCriteriaTypeV3 = 'AGE_BASED' | 'KEEP_LAST_N' | 'UNUSED_FOR';
@@ -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 @@
1
+ export type LifecycleRuleCriteriaUnitV3 = 'DAYS' | 'MONTHS' | 'YEARS';
@@ -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,6 @@
1
+ import type { LifecycleRuleCriteriaMatchV3 } from '../schemas/LifecycleRuleCriteriaMatchV3';
2
+ import type { LifecycleRuleCriteriaItemV3 } from '../schemas/LifecycleRuleCriteriaItemV3';
3
+ export interface LifecycleRuleCriteriaV3 {
4
+ match: LifecycleRuleCriteriaMatchV3;
5
+ rules: LifecycleRuleCriteriaItemV3[];
6
+ }
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Filter configuration for DOCKER package type.
3
+ */
4
+ export interface LifecycleRuleFilterConfigDockerV3 {
5
+ /**
6
+ * Glob patterns for image names to include (e.g. "my-app*").
7
+ */
8
+ packageNameAllowedPattern?: string[];
9
+ packageType: 'DOCKER';
10
+ /**
11
+ * Glob patterns for tag names to include (e.g. "v1.*").
12
+ */
13
+ tagNameAllowedPattern?: string[];
14
+ }
@@ -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,19 @@
1
+ /**
2
+ * Filter configuration for package types that support only name and version filtering: PYTHON, HELM, NPM, NUGET, RPM, CARGO, COMPOSER, GO, CONDA, DART, SWIFT, PUPPET, RAW, GENERIC.
3
+ *
4
+ */
5
+ export interface LifecycleRuleFilterConfigGenericV3 {
6
+ /**
7
+ * Glob patterns for package names to include.
8
+ */
9
+ packageNameAllowedPattern?: string[];
10
+ /**
11
+ * Package type. One of: PYTHON, HELM, NPM, NUGET, RPM, CARGO, COMPOSER, GO, CONDA, DART, SWIFT, PUPPET, RAW, GENERIC.
12
+ *
13
+ */
14
+ packageType: string;
15
+ /**
16
+ * Glob patterns for version strings to include.
17
+ */
18
+ versionNameAllowedPattern?: string[];
19
+ }
@@ -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
+ /**
2
+ * Filter configuration for HUGGINGFACE package type.
3
+ */
4
+ export interface LifecycleRuleFilterConfigHuggingFaceV3 {
5
+ /**
6
+ * Glob patterns for dataset names to include.
7
+ */
8
+ datasetAllowedPattern?: string[];
9
+ /**
10
+ * Glob patterns for model names to include.
11
+ */
12
+ modelAllowedPattern?: string[];
13
+ packageType: 'HUGGINGFACE';
14
+ /**
15
+ * Glob patterns for version/revision names to include.
16
+ */
17
+ versionNameAllowedPattern?: string[];
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 {};
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Filter configuration for MAVEN package type.
3
+ */
4
+ export interface LifecycleRuleFilterConfigMavenV3 {
5
+ /**
6
+ * Glob patterns for Maven group IDs to include (e.g. "com.example.*").
7
+ */
8
+ groupIdAllowedPattern?: string[];
9
+ /**
10
+ * Glob patterns for artifact IDs to include.
11
+ */
12
+ packageNameAllowedPattern?: string[];
13
+ packageType: 'MAVEN';
14
+ /**
15
+ * Glob patterns for version strings to include (e.g. "*-SNAPSHOT").
16
+ */
17
+ versionNameAllowedPattern?: string[];
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 {};
@@ -0,0 +1,9 @@
1
+ import type { LifecycleRuleFilterConfigDockerV3 } from '../schemas/LifecycleRuleFilterConfigDockerV3';
2
+ import type { LifecycleRuleFilterConfigMavenV3 } from '../schemas/LifecycleRuleFilterConfigMavenV3';
3
+ import type { LifecycleRuleFilterConfigHuggingFaceV3 } from '../schemas/LifecycleRuleFilterConfigHuggingFaceV3';
4
+ import type { LifecycleRuleFilterConfigGenericV3 } from '../schemas/LifecycleRuleFilterConfigGenericV3';
5
+ /**
6
+ * Filter configuration for a lifecycle rule, discriminated by packageType. Set packageType to select the correct variant: DOCKER, MAVEN, HUGGINGFACE, or any other supported type (generic variant).
7
+ *
8
+ */
9
+ export type LifecycleRuleFilterConfigV3 = LifecycleRuleFilterConfigDockerV3 | LifecycleRuleFilterConfigMavenV3 | LifecycleRuleFilterConfigHuggingFaceV3 | LifecycleRuleFilterConfigGenericV3;
@@ -0,0 +1,15 @@
1
+ import type { LifecycleRuleActionV3 } from '../schemas/LifecycleRuleActionV3';
2
+ import type { LifecycleRuleApplyToV3 } from '../schemas/LifecycleRuleApplyToV3';
3
+ import type { LifecycleRuleCriteriaV3 } from '../schemas/LifecycleRuleCriteriaV3';
4
+ import type { LifecycleRuleFilterConfigV3 } from '../schemas/LifecycleRuleFilterConfigV3';
5
+ import type { LifecycleRuleScheduleV3 } from '../schemas/LifecycleRuleScheduleV3';
6
+ export interface LifecycleRuleRequestBodyV3<T0 extends LifecycleRuleFilterConfigV3 = LifecycleRuleFilterConfigV3> {
7
+ action: LifecycleRuleActionV3;
8
+ applyTo: LifecycleRuleApplyToV3;
9
+ criteria?: LifecycleRuleCriteriaV3;
10
+ description?: string;
11
+ filterConfig?: T0;
12
+ name: string;
13
+ packageType?: string;
14
+ schedule?: LifecycleRuleScheduleV3;
15
+ }
@@ -0,0 +1,32 @@
1
+ import type { LifecycleRuleActionV3 } from '../schemas/LifecycleRuleActionV3';
2
+ import type { LifecycleRuleApplyToV3 } from '../schemas/LifecycleRuleApplyToV3';
3
+ import type { LifecycleRuleCriteriaV3 } from '../schemas/LifecycleRuleCriteriaV3';
4
+ import type { LifecycleRuleFilterConfigV3 } from '../schemas/LifecycleRuleFilterConfigV3';
5
+ import type { LifecycleRuleScheduleV3 } from '../schemas/LifecycleRuleScheduleV3';
6
+ export interface LifecycleRuleResponseV3<T0 extends LifecycleRuleFilterConfigV3 = LifecycleRuleFilterConfigV3> {
7
+ action: LifecycleRuleActionV3;
8
+ applyTo: LifecycleRuleApplyToV3;
9
+ /**
10
+ * @format int64
11
+ */
12
+ createdAt?: number;
13
+ /**
14
+ * @format int64
15
+ */
16
+ createdBy?: number;
17
+ criteria?: LifecycleRuleCriteriaV3;
18
+ description?: string;
19
+ filterConfig?: T0;
20
+ id: string;
21
+ name: string;
22
+ packageType?: string;
23
+ schedule?: LifecycleRuleScheduleV3;
24
+ /**
25
+ * @format int64
26
+ */
27
+ updatedAt?: number;
28
+ /**
29
+ * @format int64
30
+ */
31
+ updatedBy?: number;
32
+ }
@@ -0,0 +1,4 @@
1
+ export interface LifecycleRuleScheduleV3 {
2
+ expression: string;
3
+ timezone: string;
4
+ }
@@ -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,13 @@
1
+ import type { LifecycleExecutionResponseV3 } from '../schemas/LifecycleExecutionResponseV3';
2
+ export interface ListLifecycleExecutionsResponseBodyV3 {
3
+ hasMore: boolean;
4
+ items: LifecycleExecutionResponseV3[];
5
+ /**
6
+ * @format int64
7
+ */
8
+ page: number;
9
+ /**
10
+ * @format int64
11
+ */
12
+ size: number;
13
+ }
@@ -0,0 +1,13 @@
1
+ import type { LifecycleRuleResponseV3 } from '../schemas/LifecycleRuleResponseV3';
2
+ export interface ListLifecycleRulesResponseBodyV3 {
3
+ hasMore: boolean;
4
+ items: LifecycleRuleResponseV3[];
5
+ /**
6
+ * @format int64
7
+ */
8
+ page: number;
9
+ /**
10
+ * @format int64
11
+ */
12
+ size: number;
13
+ }
@@ -9,7 +9,7 @@ export interface MaliciousPackagePolicyFailureDetailConfigV3 {
9
9
  /**
10
10
  * Human-readable message describing the violation.
11
11
  */
12
- message?: string;
12
+ message: string;
13
13
  /**
14
14
  * The reason the package is blocked.
15
15
  */
@@ -0,0 +1,13 @@
1
+ /**
2
+ * List of opa policy sets.
3
+ */
4
+ export type PolicySetsV3 = Array<{
5
+ /**
6
+ * Policy Set name
7
+ */
8
+ policySetName: string;
9
+ /**
10
+ * Unique reference for the opa policy set. Example: `my-policy` or `account.my-policy`
11
+ */
12
+ policySetRef: string;
13
+ }>;
@@ -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 {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-har-service-client",
3
- "version": "0.59.0",
3
+ "version": "0.61.0",
4
4
  "description": "Harness HAR Service APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",