@harnessio/react-har-service-client 0.61.0 → 0.62.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 (35) hide show
  1. package/dist/har-service/src/services/hooks/useBulkDeleteV3Mutation.d.ts +23 -0
  2. package/dist/har-service/src/services/hooks/useBulkDeleteV3Mutation.js +14 -0
  3. package/dist/har-service/src/services/hooks/useGetLifecycleRuleV3Query.d.ts +23 -0
  4. package/dist/har-service/src/services/hooks/useGetLifecycleRuleV3Query.js +14 -0
  5. package/dist/har-service/src/services/hooks/useGetLifecycleStatsV3Query.d.ts +22 -0
  6. package/dist/har-service/src/services/hooks/useGetLifecycleStatsV3Query.js +14 -0
  7. package/dist/har-service/src/services/hooks/useListLifecycleExecutionItemsV3Query.d.ts +39 -0
  8. package/dist/har-service/src/services/hooks/useListLifecycleExecutionItemsV3Query.js +14 -0
  9. package/dist/har-service/src/services/hooks/useListLifecycleExecutionsV3Query.d.ts +3 -0
  10. package/dist/har-service/src/services/hooks/useListLifecycleRulesV3Query.d.ts +3 -0
  11. package/dist/har-service/src/services/hooks/usePatchLifecycleRuleV3Mutation.d.ts +26 -0
  12. package/dist/har-service/src/services/hooks/usePatchLifecycleRuleV3Mutation.js +14 -0
  13. package/dist/har-service/src/services/index.d.ts +19 -0
  14. package/dist/har-service/src/services/index.js +5 -0
  15. package/dist/har-service/src/services/requestBodies/BulkDeleteRequestV3RequestBody.d.ts +2 -0
  16. package/dist/har-service/src/services/requestBodies/BulkDeleteRequestV3RequestBody.js +1 -0
  17. package/dist/har-service/src/services/responses/LifecycleRuleResponseV3Response.d.ts +2 -0
  18. package/dist/har-service/src/services/responses/LifecycleRuleResponseV3Response.js +1 -0
  19. package/dist/har-service/src/services/schemas/BulkDeleteRequestInputV3.d.ts +26 -0
  20. package/dist/har-service/src/services/schemas/BulkDeleteRequestInputV3.js +4 -0
  21. package/dist/har-service/src/services/schemas/BulkDeleteResponseV3.d.ts +13 -0
  22. package/dist/har-service/src/services/schemas/BulkDeleteResponseV3.js +4 -0
  23. package/dist/har-service/src/services/schemas/LifecycleExecutionItemResponseV3.d.ts +26 -0
  24. package/dist/har-service/src/services/schemas/LifecycleExecutionItemResponseV3.js +1 -0
  25. package/dist/har-service/src/services/schemas/LifecycleExecutionItemStatusV3.d.ts +4 -0
  26. package/dist/har-service/src/services/schemas/LifecycleExecutionItemStatusV3.js +4 -0
  27. package/dist/har-service/src/services/schemas/LifecycleExecutionResponseV3.d.ts +4 -0
  28. package/dist/har-service/src/services/schemas/LifecycleRulePatchBodyV3.d.ts +22 -0
  29. package/dist/har-service/src/services/schemas/LifecycleRulePatchBodyV3.js +1 -0
  30. package/dist/har-service/src/services/schemas/LifecycleRuleResponseV3.d.ts +14 -0
  31. package/dist/har-service/src/services/schemas/LifecycleStatsResponseV3.d.ts +20 -0
  32. package/dist/har-service/src/services/schemas/LifecycleStatsResponseV3.js +4 -0
  33. package/dist/har-service/src/services/schemas/ListLifecycleExecutionItemsResponseV3.d.ts +13 -0
  34. package/dist/har-service/src/services/schemas/ListLifecycleExecutionItemsResponseV3.js +1 -0
  35. package/package.json +1 -1
@@ -0,0 +1,23 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { BulkDeleteResponseV3 } from '../schemas/BulkDeleteResponseV3';
3
+ import type { ErrorV3 } from '../schemas/ErrorV3';
4
+ import type { BulkDeleteRequestV3RequestBody } from '../requestBodies/BulkDeleteRequestV3RequestBody';
5
+ import type { ResponseWithPagination } from '../helpers';
6
+ import { FetcherOptions } from '../../../../fetcher/index.js';
7
+ export interface BulkDeleteV3MutationQueryParams {
8
+ account_identifier: string;
9
+ org_identifier?: string;
10
+ project_identifier?: string;
11
+ }
12
+ export type BulkDeleteV3RequestBody = BulkDeleteRequestV3RequestBody;
13
+ export type BulkDeleteV3OkResponse = ResponseWithPagination<BulkDeleteResponseV3>;
14
+ export type BulkDeleteV3ErrorResponse = ErrorV3;
15
+ export interface BulkDeleteV3Props extends Omit<FetcherOptions<BulkDeleteV3MutationQueryParams, BulkDeleteV3RequestBody>, 'url'> {
16
+ queryParams: BulkDeleteV3MutationQueryParams;
17
+ body: BulkDeleteV3RequestBody;
18
+ }
19
+ export declare function bulkDeleteV3(props: BulkDeleteV3Props): Promise<BulkDeleteV3OkResponse>;
20
+ /**
21
+ * Execute bulk delete operation
22
+ */
23
+ export declare function useBulkDeleteV3Mutation(options?: Omit<UseMutationOptions<BulkDeleteV3OkResponse, BulkDeleteV3ErrorResponse, BulkDeleteV3Props>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<BulkDeleteV3OkResponse, ErrorV3, BulkDeleteV3Props, 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 bulkDeleteV3(props) {
7
+ return fetcher(Object.assign({ url: `/v3/bulkdelete`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Execute bulk delete operation
11
+ */
12
+ export function useBulkDeleteV3Mutation(options) {
13
+ return useMutation((mutateProps) => bulkDeleteV3(mutateProps), options);
14
+ }
@@ -0,0 +1,23 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { LifecycleRuleResponseV3Response } from '../responses/LifecycleRuleResponseV3Response';
3
+ import type { ErrorV3 } from '../schemas/ErrorV3';
4
+ import type { ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
+ export interface GetLifecycleRuleV3QueryPathParams {
7
+ id: string;
8
+ }
9
+ export interface GetLifecycleRuleV3QueryQueryParams {
10
+ account_identifier: string;
11
+ org_identifier?: string;
12
+ project_identifier?: string;
13
+ }
14
+ export type GetLifecycleRuleV3OkResponse = ResponseWithPagination<LifecycleRuleResponseV3Response>;
15
+ export type GetLifecycleRuleV3ErrorResponse = ErrorV3;
16
+ export interface GetLifecycleRuleV3Props extends GetLifecycleRuleV3QueryPathParams, Omit<FetcherOptions<GetLifecycleRuleV3QueryQueryParams, unknown>, 'url'> {
17
+ queryParams: GetLifecycleRuleV3QueryQueryParams;
18
+ }
19
+ export declare function getLifecycleRuleV3(props: GetLifecycleRuleV3Props): Promise<GetLifecycleRuleV3OkResponse>;
20
+ /**
21
+ * Returns a specific lifecycle rule by ID.
22
+ */
23
+ export declare function useGetLifecycleRuleV3Query(props: GetLifecycleRuleV3Props, options?: Omit<UseQueryOptions<GetLifecycleRuleV3OkResponse, GetLifecycleRuleV3ErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetLifecycleRuleV3OkResponse, 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 getLifecycleRuleV3(props) {
7
+ return fetcher(Object.assign({ url: `/v3/lifecycle/rules/${props.id}`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Returns a specific lifecycle rule by ID.
11
+ */
12
+ export function useGetLifecycleRuleV3Query(props, options) {
13
+ return useQuery(['GetLifecycleRuleV3', props.id, props.queryParams], ({ signal }) => getLifecycleRuleV3(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,22 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { LifecycleStatsResponseV3 } from '../schemas/LifecycleStatsResponseV3';
3
+ import type { ErrorV3 } from '../schemas/ErrorV3';
4
+ import type { ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
+ export interface GetLifecycleStatsV3QueryQueryParams {
7
+ account_identifier: string;
8
+ org_identifier?: string;
9
+ project_identifier?: string;
10
+ scope?: 'ancestors' | 'descendants' | 'none';
11
+ package_types?: string[];
12
+ }
13
+ export type GetLifecycleStatsV3OkResponse = ResponseWithPagination<LifecycleStatsResponseV3>;
14
+ export type GetLifecycleStatsV3ErrorResponse = ErrorV3;
15
+ export interface GetLifecycleStatsV3Props extends Omit<FetcherOptions<GetLifecycleStatsV3QueryQueryParams, unknown>, 'url'> {
16
+ queryParams: GetLifecycleStatsV3QueryQueryParams;
17
+ }
18
+ export declare function getLifecycleStatsV3(props: GetLifecycleStatsV3Props): Promise<GetLifecycleStatsV3OkResponse>;
19
+ /**
20
+ * Returns aggregate lifecycle execution metrics for the given scope.
21
+ */
22
+ export declare function useGetLifecycleStatsV3Query(props: GetLifecycleStatsV3Props, options?: Omit<UseQueryOptions<GetLifecycleStatsV3OkResponse, GetLifecycleStatsV3ErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetLifecycleStatsV3OkResponse, 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 getLifecycleStatsV3(props) {
7
+ return fetcher(Object.assign({ url: `/v3/lifecycle/stats`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Returns aggregate lifecycle execution metrics for the given scope.
11
+ */
12
+ export function useGetLifecycleStatsV3Query(props, options) {
13
+ return useQuery(['GetLifecycleStatsV3', props.queryParams], ({ signal }) => getLifecycleStatsV3(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,39 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ListLifecycleExecutionItemsResponseV3 } from '../schemas/ListLifecycleExecutionItemsResponseV3';
3
+ import type { ErrorV3 } from '../schemas/ErrorV3';
4
+ import type { ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
+ export interface ListLifecycleExecutionItemsV3QueryPathParams {
7
+ executionId: string;
8
+ }
9
+ export interface ListLifecycleExecutionItemsV3QueryQueryParams {
10
+ account_identifier: string;
11
+ org_identifier?: string;
12
+ project_identifier?: string;
13
+ /**
14
+ * @format int64
15
+ * @default 0
16
+ */
17
+ page?: number;
18
+ /**
19
+ * @format int64
20
+ * @default 20
21
+ */
22
+ size?: number;
23
+ search_term?: string;
24
+ package_types?: string[];
25
+ /**
26
+ * Outcome of a lifecycle execution item.
27
+ */
28
+ status?: 'DELETED' | 'PROTECTED' | 'WOULD_BE_DELETED';
29
+ }
30
+ export type ListLifecycleExecutionItemsV3OkResponse = ResponseWithPagination<ListLifecycleExecutionItemsResponseV3>;
31
+ export type ListLifecycleExecutionItemsV3ErrorResponse = ErrorV3;
32
+ export interface ListLifecycleExecutionItemsV3Props extends ListLifecycleExecutionItemsV3QueryPathParams, Omit<FetcherOptions<ListLifecycleExecutionItemsV3QueryQueryParams, unknown>, 'url'> {
33
+ queryParams: ListLifecycleExecutionItemsV3QueryQueryParams;
34
+ }
35
+ export declare function listLifecycleExecutionItemsV3(props: ListLifecycleExecutionItemsV3Props): Promise<ListLifecycleExecutionItemsV3OkResponse>;
36
+ /**
37
+ * Lists the artifact-level items evaluated during a lifecycle execution.
38
+ */
39
+ export declare function useListLifecycleExecutionItemsV3Query(props: ListLifecycleExecutionItemsV3Props, options?: Omit<UseQueryOptions<ListLifecycleExecutionItemsV3OkResponse, ListLifecycleExecutionItemsV3ErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListLifecycleExecutionItemsV3OkResponse, 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 listLifecycleExecutionItemsV3(props) {
7
+ return fetcher(Object.assign({ url: `/v3/lifecycle/executions/${props.executionId}/items`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Lists the artifact-level items evaluated during a lifecycle execution.
11
+ */
12
+ export function useListLifecycleExecutionItemsV3Query(props, options) {
13
+ return useQuery(['ListLifecycleExecutionItemsV3', props.executionId, props.queryParams], ({ signal }) => listLifecycleExecutionItemsV3(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -17,6 +17,9 @@ export interface ListLifecycleExecutionsV3QueryQueryParams {
17
17
  * @default 20
18
18
  */
19
19
  size?: number;
20
+ scope?: 'ancestors' | 'descendants' | 'none';
21
+ package_types?: string[];
22
+ registry_ids?: string[];
20
23
  policyId?: string;
21
24
  status?: 'FAILED' | 'INPROGRESS' | 'PENDING' | 'SUCCESS';
22
25
  }
@@ -19,6 +19,9 @@ export interface ListLifecycleRulesV3QueryQueryParams {
19
19
  */
20
20
  size?: number;
21
21
  sort?: string;
22
+ scope?: 'ancestors' | 'descendants' | 'none';
23
+ package_types?: string[];
24
+ registry_ids?: string[];
22
25
  action?: 'DELETE' | 'PROTECT';
23
26
  }
24
27
  export type ListLifecycleRulesV3OkResponse = ResponseWithPagination<ListLifecycleRulesResponseV3Response>;
@@ -0,0 +1,26 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { LifecycleRuleResponseV3Response } from '../responses/LifecycleRuleResponseV3Response';
3
+ import type { ErrorV3 } from '../schemas/ErrorV3';
4
+ import type { LifecycleRulePatchBodyV3 } from '../schemas/LifecycleRulePatchBodyV3';
5
+ import type { ResponseWithPagination } from '../helpers';
6
+ import { FetcherOptions } from '../../../../fetcher/index.js';
7
+ export interface PatchLifecycleRuleV3MutationPathParams {
8
+ id: string;
9
+ }
10
+ export interface PatchLifecycleRuleV3MutationQueryParams {
11
+ account_identifier: string;
12
+ org_identifier?: string;
13
+ project_identifier?: string;
14
+ }
15
+ export type PatchLifecycleRuleV3RequestBody = LifecycleRulePatchBodyV3;
16
+ export type PatchLifecycleRuleV3OkResponse = ResponseWithPagination<LifecycleRuleResponseV3Response>;
17
+ export type PatchLifecycleRuleV3ErrorResponse = ErrorV3;
18
+ export interface PatchLifecycleRuleV3Props extends PatchLifecycleRuleV3MutationPathParams, Omit<FetcherOptions<PatchLifecycleRuleV3MutationQueryParams, PatchLifecycleRuleV3RequestBody>, 'url'> {
19
+ queryParams: PatchLifecycleRuleV3MutationQueryParams;
20
+ body: PatchLifecycleRuleV3RequestBody;
21
+ }
22
+ export declare function patchLifecycleRuleV3(props: PatchLifecycleRuleV3Props): Promise<PatchLifecycleRuleV3OkResponse>;
23
+ /**
24
+ * Partially updates a lifecycle rule. Only provided fields are modified.
25
+ */
26
+ export declare function usePatchLifecycleRuleV3Mutation(options?: Omit<UseMutationOptions<PatchLifecycleRuleV3OkResponse, PatchLifecycleRuleV3ErrorResponse, PatchLifecycleRuleV3Props>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<PatchLifecycleRuleV3OkResponse, ErrorV3, PatchLifecycleRuleV3Props, 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 patchLifecycleRuleV3(props) {
7
+ return fetcher(Object.assign({ url: `/v3/lifecycle/rules/${props.id}`, method: 'PATCH' }, props));
8
+ }
9
+ /**
10
+ * Partially updates a lifecycle rule. Only provided fields are modified.
11
+ */
12
+ export function usePatchLifecycleRuleV3Mutation(options) {
13
+ return useMutation((mutateProps) => patchLifecycleRuleV3(mutateProps), options);
14
+ }
@@ -5,6 +5,8 @@ export type { AddOciArtifactTagsErrorResponse, AddOciArtifactTagsMutationQueryPa
5
5
  export { addOciArtifactTags, useAddOciArtifactTagsMutation, } from './hooks/useAddOciArtifactTagsMutation';
6
6
  export type { AddVersionTagsV3ErrorResponse, AddVersionTagsV3MutationPathParams, AddVersionTagsV3MutationQueryParams, AddVersionTagsV3OkResponse, AddVersionTagsV3Props, AddVersionTagsV3RequestBody, } from './hooks/useAddVersionTagsV3Mutation';
7
7
  export { addVersionTagsV3, useAddVersionTagsV3Mutation } from './hooks/useAddVersionTagsV3Mutation';
8
+ export type { BulkDeleteV3ErrorResponse, BulkDeleteV3MutationQueryParams, BulkDeleteV3OkResponse, BulkDeleteV3Props, BulkDeleteV3RequestBody, } from './hooks/useBulkDeleteV3Mutation';
9
+ export { bulkDeleteV3, useBulkDeleteV3Mutation } from './hooks/useBulkDeleteV3Mutation';
8
10
  export type { CopyErrorResponse, CopyMutationQueryParams, CopyOkResponse, CopyProps, } from './hooks/useCopyMutation';
9
11
  export { copy, useCopyMutation } from './hooks/useCopyMutation';
10
12
  export type { CopyResourcesV3ErrorResponse, CopyResourcesV3MutationQueryParams, CopyResourcesV3OkResponse, CopyResourcesV3Props, CopyResourcesV3RequestBody, } from './hooks/useCopyResourcesV3Mutation';
@@ -125,6 +127,10 @@ export type { GetHelmArtifactManifestErrorResponse, GetHelmArtifactManifestOkRes
125
127
  export { getHelmArtifactManifest, useGetHelmArtifactManifestQuery, } from './hooks/useGetHelmArtifactManifestQuery';
126
128
  export type { GetLifecycleExecutionV3ErrorResponse, GetLifecycleExecutionV3OkResponse, GetLifecycleExecutionV3Props, GetLifecycleExecutionV3QueryPathParams, GetLifecycleExecutionV3QueryQueryParams, } from './hooks/useGetLifecycleExecutionV3Query';
127
129
  export { getLifecycleExecutionV3, useGetLifecycleExecutionV3Query, } from './hooks/useGetLifecycleExecutionV3Query';
130
+ export type { GetLifecycleRuleV3ErrorResponse, GetLifecycleRuleV3OkResponse, GetLifecycleRuleV3Props, GetLifecycleRuleV3QueryPathParams, GetLifecycleRuleV3QueryQueryParams, } from './hooks/useGetLifecycleRuleV3Query';
131
+ export { getLifecycleRuleV3, useGetLifecycleRuleV3Query } from './hooks/useGetLifecycleRuleV3Query';
132
+ export type { GetLifecycleStatsV3ErrorResponse, GetLifecycleStatsV3OkResponse, GetLifecycleStatsV3Props, GetLifecycleStatsV3QueryQueryParams, } from './hooks/useGetLifecycleStatsV3Query';
133
+ export { getLifecycleStatsV3, useGetLifecycleStatsV3Query, } from './hooks/useGetLifecycleStatsV3Query';
128
134
  export type { GetMetadataKeysErrorResponse, GetMetadataKeysOkResponse, GetMetadataKeysProps, GetMetadataKeysQueryQueryParams, } from './hooks/useGetMetadataKeysQuery';
129
135
  export { getMetadataKeys, useGetMetadataKeysQuery } from './hooks/useGetMetadataKeysQuery';
130
136
  export type { GetMetadataKeysV3ErrorResponse, GetMetadataKeysV3OkResponse, GetMetadataKeysV3Props, GetMetadataKeysV3QueryQueryParams, } from './hooks/useGetMetadataKeysV3Query';
@@ -167,6 +173,8 @@ export type { ListFirewallExceptionVersionsV3ErrorResponse, ListFirewallExceptio
167
173
  export { listFirewallExceptionVersionsV3, useListFirewallExceptionVersionsV3Query, } from './hooks/useListFirewallExceptionVersionsV3Query';
168
174
  export type { ListFirewallExceptionsV3ErrorResponse, ListFirewallExceptionsV3OkResponse, ListFirewallExceptionsV3Props, ListFirewallExceptionsV3QueryQueryParams, } from './hooks/useListFirewallExceptionsV3Query';
169
175
  export { listFirewallExceptionsV3, useListFirewallExceptionsV3Query, } from './hooks/useListFirewallExceptionsV3Query';
176
+ export type { ListLifecycleExecutionItemsV3ErrorResponse, ListLifecycleExecutionItemsV3OkResponse, ListLifecycleExecutionItemsV3Props, ListLifecycleExecutionItemsV3QueryPathParams, ListLifecycleExecutionItemsV3QueryQueryParams, } from './hooks/useListLifecycleExecutionItemsV3Query';
177
+ export { listLifecycleExecutionItemsV3, useListLifecycleExecutionItemsV3Query, } from './hooks/useListLifecycleExecutionItemsV3Query';
170
178
  export type { ListLifecycleExecutionsV3ErrorResponse, ListLifecycleExecutionsV3OkResponse, ListLifecycleExecutionsV3Props, ListLifecycleExecutionsV3QueryQueryParams, } from './hooks/useListLifecycleExecutionsV3Query';
171
179
  export { listLifecycleExecutionsV3, useListLifecycleExecutionsV3Query, } from './hooks/useListLifecycleExecutionsV3Query';
172
180
  export type { ListLifecycleRulesV3ErrorResponse, ListLifecycleRulesV3OkResponse, ListLifecycleRulesV3Props, ListLifecycleRulesV3QueryQueryParams, } from './hooks/useListLifecycleRulesV3Query';
@@ -201,6 +209,8 @@ export type { MigrateRegistryV3ErrorResponse, MigrateRegistryV3MutationPathParam
201
209
  export { migrateRegistryV3, useMigrateRegistryV3Mutation, } from './hooks/useMigrateRegistryV3Mutation';
202
210
  export type { ModifyRegistryErrorResponse, ModifyRegistryMutationPathParams, ModifyRegistryOkResponse, ModifyRegistryProps, ModifyRegistryRequestBody, } from './hooks/useModifyRegistryMutation';
203
211
  export { modifyRegistry, useModifyRegistryMutation } from './hooks/useModifyRegistryMutation';
212
+ export type { PatchLifecycleRuleV3ErrorResponse, PatchLifecycleRuleV3MutationPathParams, PatchLifecycleRuleV3MutationQueryParams, PatchLifecycleRuleV3OkResponse, PatchLifecycleRuleV3Props, PatchLifecycleRuleV3RequestBody, } from './hooks/usePatchLifecycleRuleV3Mutation';
213
+ export { patchLifecycleRuleV3, usePatchLifecycleRuleV3Mutation, } from './hooks/usePatchLifecycleRuleV3Mutation';
204
214
  export type { QuarantineFilePathErrorResponse, QuarantineFilePathMutationPathParams, QuarantineFilePathOkResponse, QuarantineFilePathProps, QuarantineFilePathRequestBody, } from './hooks/useQuarantineFilePathMutation';
205
215
  export { quarantineFilePath, useQuarantineFilePathMutation, } from './hooks/useQuarantineFilePathMutation';
206
216
  export type { ReTriggerWebhookExecutionErrorResponse, ReTriggerWebhookExecutionOkResponse, ReTriggerWebhookExecutionProps, ReTriggerWebhookExecutionQueryPathParams, } from './hooks/useReTriggerWebhookExecutionQuery';
@@ -264,6 +274,7 @@ export type { AddTagsRequestV3RequestBody } from './requestBodies/AddTagsRequest
264
274
  export type { ArtifactLabelRequestRequestBody } from './requestBodies/ArtifactLabelRequestRequestBody';
265
275
  export type { ArtifactScanEvaluateRequestV3RequestBody } from './requestBodies/ArtifactScanEvaluateRequestV3RequestBody';
266
276
  export type { BuildInfoRequestV3RequestBody } from './requestBodies/BuildInfoRequestV3RequestBody';
277
+ export type { BulkDeleteRequestV3RequestBody } from './requestBodies/BulkDeleteRequestV3RequestBody';
267
278
  export type { BulkDownloadFilesRequestRequestBody } from './requestBodies/BulkDownloadFilesRequestRequestBody';
268
279
  export type { BulkDownloadFilesRequestV3RequestBody } from './requestBodies/BulkDownloadFilesRequestV3RequestBody';
269
280
  export type { BulkScanEvaluationRequestV3RequestBody } from './requestBodies/BulkScanEvaluationRequestV3RequestBody';
@@ -313,6 +324,7 @@ export type { InternalServerErrorResponse } from './responses/InternalServerErro
313
324
  export type { LifecycleExecutionCreatedV3Response } from './responses/LifecycleExecutionCreatedV3Response';
314
325
  export type { LifecycleExecutionResponseV3Response } from './responses/LifecycleExecutionResponseV3Response';
315
326
  export type { LifecycleRuleCreatedV3Response } from './responses/LifecycleRuleCreatedV3Response';
327
+ export type { LifecycleRuleResponseV3Response } from './responses/LifecycleRuleResponseV3Response';
316
328
  export type { LifecycleRuleUpdatedV3Response } from './responses/LifecycleRuleUpdatedV3Response';
317
329
  export type { ListArtifactLabelResponseResponse } from './responses/ListArtifactLabelResponseResponse';
318
330
  export type { ListArtifactResponseResponse } from './responses/ListArtifactResponseResponse';
@@ -387,6 +399,8 @@ export type { BuildDetailsV3 } from './schemas/BuildDetailsV3';
387
399
  export type { BuildInfoMetadataV3 } from './schemas/BuildInfoMetadataV3';
388
400
  export type { BuildInfoNodeV3 } from './schemas/BuildInfoNodeV3';
389
401
  export type { BuildInfoRequestInputV3 } from './schemas/BuildInfoRequestInputV3';
402
+ export type { BulkDeleteRequestInputV3 } from './schemas/BulkDeleteRequestInputV3';
403
+ export type { BulkDeleteResponseV3 } from './schemas/BulkDeleteResponseV3';
390
404
  export type { BulkDownloadFilesRequestInput } from './schemas/BulkDownloadFilesRequestInput';
391
405
  export type { BulkDownloadFilesRequestInputV3 } from './schemas/BulkDownloadFilesRequestInputV3';
392
406
  export type { BulkDownloadRequestStatus } from './schemas/BulkDownloadRequestStatus';
@@ -451,6 +465,8 @@ export type { HuggingFaceArtifactDetailConfig } from './schemas/HuggingFaceArtif
451
465
  export type { JfrogReplicationRegistry } from './schemas/JfrogReplicationRegistry';
452
466
  export type { LicensePolicyFailureDetailConfigV3 } from './schemas/LicensePolicyFailureDetailConfigV3';
453
467
  export type { LifecycleDryRunRequestBodyV3 } from './schemas/LifecycleDryRunRequestBodyV3';
468
+ export type { LifecycleExecutionItemResponseV3 } from './schemas/LifecycleExecutionItemResponseV3';
469
+ export type { LifecycleExecutionItemStatusV3 } from './schemas/LifecycleExecutionItemStatusV3';
454
470
  export type { LifecycleExecutionResponseV3 } from './schemas/LifecycleExecutionResponseV3';
455
471
  export type { LifecycleExecutionStatusV3 } from './schemas/LifecycleExecutionStatusV3';
456
472
  export type { LifecycleExecutionTriggerTypeV3 } from './schemas/LifecycleExecutionTriggerTypeV3';
@@ -468,15 +484,18 @@ export type { LifecycleRuleFilterConfigGenericV3 } from './schemas/LifecycleRule
468
484
  export type { LifecycleRuleFilterConfigHuggingFaceV3 } from './schemas/LifecycleRuleFilterConfigHuggingFaceV3';
469
485
  export type { LifecycleRuleFilterConfigMavenV3 } from './schemas/LifecycleRuleFilterConfigMavenV3';
470
486
  export type { LifecycleRuleFilterConfigV3 } from './schemas/LifecycleRuleFilterConfigV3';
487
+ export type { LifecycleRulePatchBodyV3 } from './schemas/LifecycleRulePatchBodyV3';
471
488
  export type { LifecycleRuleRequestBodyV3 } from './schemas/LifecycleRuleRequestBodyV3';
472
489
  export type { LifecycleRuleResponseV3 } from './schemas/LifecycleRuleResponseV3';
473
490
  export type { LifecycleRuleScheduleV3 } from './schemas/LifecycleRuleScheduleV3';
491
+ export type { LifecycleStatsResponseV3 } from './schemas/LifecycleStatsResponseV3';
474
492
  export type { ListArtifact } from './schemas/ListArtifact';
475
493
  export type { ListArtifactLabel } from './schemas/ListArtifactLabel';
476
494
  export type { ListArtifactVersion } from './schemas/ListArtifactVersion';
477
495
  export type { ListFileDetail } from './schemas/ListFileDetail';
478
496
  export type { ListFilesResponseBodyV3 } from './schemas/ListFilesResponseBodyV3';
479
497
  export type { ListFirewallExceptionsResponseBodyV3 } from './schemas/ListFirewallExceptionsResponseBodyV3';
498
+ export type { ListLifecycleExecutionItemsResponseV3 } from './schemas/ListLifecycleExecutionItemsResponseV3';
480
499
  export type { ListLifecycleExecutionsResponseBodyV3 } from './schemas/ListLifecycleExecutionsResponseBodyV3';
481
500
  export type { ListLifecycleRulesResponseBodyV3 } from './schemas/ListLifecycleRulesResponseBodyV3';
482
501
  export type { ListMetadataKeysResponseBodyV3 } from './schemas/ListMetadataKeysResponseBodyV3';
@@ -1,6 +1,7 @@
1
1
  export { addBuildInfoV3, useAddBuildInfoV3Mutation } from './hooks/useAddBuildInfoV3Mutation';
2
2
  export { addOciArtifactTags, useAddOciArtifactTagsMutation, } from './hooks/useAddOciArtifactTagsMutation';
3
3
  export { addVersionTagsV3, useAddVersionTagsV3Mutation } from './hooks/useAddVersionTagsV3Mutation';
4
+ export { bulkDeleteV3, useBulkDeleteV3Mutation } from './hooks/useBulkDeleteV3Mutation';
4
5
  export { copy, useCopyMutation } from './hooks/useCopyMutation';
5
6
  export { copyResourcesV3, useCopyResourcesV3Mutation } from './hooks/useCopyResourcesV3Mutation';
6
7
  export { createBulkDownloadRequest, useCreateBulkDownloadRequestMutation, } from './hooks/useCreateBulkDownloadRequestMutation';
@@ -61,6 +62,8 @@ export { getFileV3, useGetFileV3Query } from './hooks/useGetFileV3Query';
61
62
  export { getHelmArtifactDetails, useGetHelmArtifactDetailsQuery, } from './hooks/useGetHelmArtifactDetailsQuery';
62
63
  export { getHelmArtifactManifest, useGetHelmArtifactManifestQuery, } from './hooks/useGetHelmArtifactManifestQuery';
63
64
  export { getLifecycleExecutionV3, useGetLifecycleExecutionV3Query, } from './hooks/useGetLifecycleExecutionV3Query';
65
+ export { getLifecycleRuleV3, useGetLifecycleRuleV3Query } from './hooks/useGetLifecycleRuleV3Query';
66
+ export { getLifecycleStatsV3, useGetLifecycleStatsV3Query, } from './hooks/useGetLifecycleStatsV3Query';
64
67
  export { getMetadataKeys, useGetMetadataKeysQuery } from './hooks/useGetMetadataKeysQuery';
65
68
  export { getMetadataKeysV3, useGetMetadataKeysV3Query } from './hooks/useGetMetadataKeysV3Query';
66
69
  export { getMetadata, useGetMetadataQuery } from './hooks/useGetMetadataQuery';
@@ -82,6 +85,7 @@ export { listArtifactLabels, useListArtifactLabelsQuery } from './hooks/useListA
82
85
  export { listFilesV3, useListFilesV3Query } from './hooks/useListFilesV3Query';
83
86
  export { listFirewallExceptionVersionsV3, useListFirewallExceptionVersionsV3Query, } from './hooks/useListFirewallExceptionVersionsV3Query';
84
87
  export { listFirewallExceptionsV3, useListFirewallExceptionsV3Query, } from './hooks/useListFirewallExceptionsV3Query';
88
+ export { listLifecycleExecutionItemsV3, useListLifecycleExecutionItemsV3Query, } from './hooks/useListLifecycleExecutionItemsV3Query';
85
89
  export { listLifecycleExecutionsV3, useListLifecycleExecutionsV3Query, } from './hooks/useListLifecycleExecutionsV3Query';
86
90
  export { listLifecycleRulesV3, useListLifecycleRulesV3Query, } from './hooks/useListLifecycleRulesV3Query';
87
91
  export { listMigrationImages, useListMigrationImagesQuery, } from './hooks/useListMigrationImagesQuery';
@@ -99,6 +103,7 @@ export { listWebhookExecutions, useListWebhookExecutionsQuery, } from './hooks/u
99
103
  export { listWebhooks, useListWebhooksQuery } from './hooks/useListWebhooksQuery';
100
104
  export { migrateRegistryV3, useMigrateRegistryV3Mutation, } from './hooks/useMigrateRegistryV3Mutation';
101
105
  export { modifyRegistry, useModifyRegistryMutation } from './hooks/useModifyRegistryMutation';
106
+ export { patchLifecycleRuleV3, usePatchLifecycleRuleV3Mutation, } from './hooks/usePatchLifecycleRuleV3Mutation';
102
107
  export { quarantineFilePath, useQuarantineFilePathMutation, } from './hooks/useQuarantineFilePathMutation';
103
108
  export { reTriggerWebhookExecution, useReTriggerWebhookExecutionQuery, } from './hooks/useReTriggerWebhookExecutionQuery';
104
109
  export { rebuildVersionMetadataV3, useRebuildVersionMetadataV3Mutation, } from './hooks/useRebuildVersionMetadataV3Mutation';
@@ -0,0 +1,2 @@
1
+ import type { BulkDeleteRequestInputV3 } from '../schemas/BulkDeleteRequestInputV3';
2
+ export type BulkDeleteRequestV3RequestBody = BulkDeleteRequestInputV3;
@@ -0,0 +1,2 @@
1
+ import type { LifecycleRuleResponseV3 } from '../schemas/LifecycleRuleResponseV3';
2
+ export type LifecycleRuleResponseV3Response = LifecycleRuleResponseV3;
@@ -0,0 +1,26 @@
1
+ /**
2
+ * Input for bulk delete operation.
3
+ *
4
+ */
5
+ export interface BulkDeleteRequestInputV3 {
6
+ /**
7
+ * Perform a dry run without actual deletion
8
+ */
9
+ dryRun?: boolean;
10
+ /**
11
+ * Force delete even if versions are in use
12
+ */
13
+ force?: boolean;
14
+ /**
15
+ * Package name pattern (supports wildcards)
16
+ */
17
+ packages: string;
18
+ /**
19
+ * Registry identifier
20
+ */
21
+ registry: string;
22
+ /**
23
+ * Version pattern (supports wildcards)
24
+ */
25
+ versions?: string;
26
+ }
@@ -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
+ export interface BulkDeleteResponseV3 {
2
+ dryRun: boolean;
3
+ failed: number;
4
+ failedPackages: string[];
5
+ force: boolean;
6
+ message: string;
7
+ pattern: string;
8
+ registry: string;
9
+ success: number;
10
+ successPackages: string[];
11
+ total: number;
12
+ versionPattern: 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 {};
@@ -0,0 +1,26 @@
1
+ import type { PackageTypeV3 } from '../schemas/PackageTypeV3';
2
+ import type { LifecycleExecutionItemStatusV3 } from '../schemas/LifecycleExecutionItemStatusV3';
3
+ /**
4
+ * A single artifact version evaluated during a lifecycle execution.
5
+ */
6
+ export interface LifecycleExecutionItemResponseV3 {
7
+ /**
8
+ * Epoch milliseconds of the last download.
9
+ * @format int64
10
+ */
11
+ lastDownloadedAt?: number;
12
+ packageName: string;
13
+ packageType?: PackageTypeV3;
14
+ /**
15
+ * Reason the item was included or excluded.
16
+ */
17
+ reason?: string;
18
+ registryName: string;
19
+ /**
20
+ * Size in bytes.
21
+ * @format int64
22
+ */
23
+ size?: number;
24
+ status: LifecycleExecutionItemStatusV3;
25
+ version: string;
26
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Outcome of a lifecycle execution item.
3
+ */
4
+ export type LifecycleExecutionItemStatusV3 = 'DELETED' | 'PROTECTED' | 'WOULD_BE_DELETED';
@@ -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 {};
@@ -24,6 +24,10 @@ export interface LifecycleExecutionResponseV3 {
24
24
  * @format int64
25
25
  */
26
26
  registriesAffected: number;
27
+ /**
28
+ * Name of the lifecycle policy that triggered this execution.
29
+ */
30
+ ruleName?: string;
27
31
  /**
28
32
  * @format int64
29
33
  */
@@ -0,0 +1,22 @@
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
+ /**
7
+ * Partial update body for a lifecycle rule. Only provided fields are updated.
8
+ */
9
+ export interface LifecycleRulePatchBodyV3<T0 extends LifecycleRuleFilterConfigV3 = LifecycleRuleFilterConfigV3> {
10
+ action?: LifecycleRuleActionV3;
11
+ applyTo?: LifecycleRuleApplyToV3;
12
+ criteria?: LifecycleRuleCriteriaV3;
13
+ description?: string;
14
+ /**
15
+ * Enable or disable the lifecycle rule.
16
+ */
17
+ enabled?: boolean;
18
+ filterConfig?: T0;
19
+ name?: string;
20
+ packageType?: string;
21
+ schedule?: LifecycleRuleScheduleV3;
22
+ }
@@ -16,9 +16,23 @@ export interface LifecycleRuleResponseV3<T0 extends LifecycleRuleFilterConfigV3
16
16
  createdBy?: number;
17
17
  criteria?: LifecycleRuleCriteriaV3;
18
18
  description?: string;
19
+ /**
20
+ * Whether the lifecycle rule is currently enabled.
21
+ */
22
+ enabled: boolean;
19
23
  filterConfig?: T0;
20
24
  id: string;
25
+ /**
26
+ * Epoch milliseconds of the last execution, if any.
27
+ * @format int64
28
+ */
29
+ lastRunAt?: number;
21
30
  name: string;
31
+ /**
32
+ * Epoch milliseconds of the next scheduled execution, if any.
33
+ * @format int64
34
+ */
35
+ nextRunAt?: number;
22
36
  packageType?: string;
23
37
  schedule?: LifecycleRuleScheduleV3;
24
38
  /**
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Aggregate lifecycle execution metrics for the requested scope.
3
+ */
4
+ export interface LifecycleStatsResponseV3 {
5
+ /**
6
+ * Total artifact versions deleted across all executions.
7
+ * @format int64
8
+ */
9
+ artifactsCleaned: number;
10
+ /**
11
+ * Number of executions that ran in the last 30 days.
12
+ * @format int64
13
+ */
14
+ executionsLast30Days: number;
15
+ /**
16
+ * Total storage reclaimed (bytes) across all executions.
17
+ * @format int64
18
+ */
19
+ storageReclaimed: number;
20
+ }
@@ -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 { LifecycleExecutionItemResponseV3 } from '../schemas/LifecycleExecutionItemResponseV3';
2
+ export interface ListLifecycleExecutionItemsResponseV3 {
3
+ hasMore: boolean;
4
+ items: LifecycleExecutionItemResponseV3[];
5
+ /**
6
+ * @format int64
7
+ */
8
+ page: number;
9
+ /**
10
+ * @format int64
11
+ */
12
+ size: number;
13
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-har-service-client",
3
- "version": "0.61.0",
3
+ "version": "0.62.0",
4
4
  "description": "Harness HAR Service APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",