@harnessio/react-har-service-client 0.64.0 → 0.66.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 (39) hide show
  1. package/dist/har-service/src/services/hooks/useCopyMutation.d.ts +1 -1
  2. package/dist/har-service/src/services/hooks/useDeleteArtifactVersionMutation.d.ts +1 -4
  3. package/dist/har-service/src/services/hooks/useDeleteQuarantineFilePathMutation.d.ts +1 -4
  4. package/dist/har-service/src/services/hooks/useGetArtifactDetailsQuery.d.ts +1 -4
  5. package/dist/har-service/src/services/hooks/useGetArtifactFileQuery.d.ts +1 -4
  6. package/dist/har-service/src/services/hooks/useGetArtifactFilesQuery.d.ts +1 -4
  7. package/dist/har-service/src/services/hooks/useGetArtifactVersionSummaryQuery.d.ts +1 -4
  8. package/dist/har-service/src/services/hooks/useGetBackfillStateV3Query.d.ts +20 -0
  9. package/dist/har-service/src/services/hooks/useGetBackfillStateV3Query.js +14 -0
  10. package/dist/har-service/src/services/hooks/useGetBackfillTaskStatusV3Query.d.ts +23 -0
  11. package/dist/har-service/src/services/hooks/useGetBackfillTaskStatusV3Query.js +14 -0
  12. package/dist/har-service/src/services/hooks/useGetMetadataQuery.d.ts +1 -1
  13. package/dist/har-service/src/services/hooks/useListLifecycleExecutionItemsV3Query.d.ts +1 -0
  14. package/dist/har-service/src/services/hooks/useTriggerBackfillV3Mutation.d.ts +23 -0
  15. package/dist/har-service/src/services/hooks/useTriggerBackfillV3Mutation.js +14 -0
  16. package/dist/har-service/src/services/index.d.ts +15 -0
  17. package/dist/har-service/src/services/index.js +3 -0
  18. package/dist/har-service/src/services/requestBodies/BackfillTriggerRequestV3RequestBody.d.ts +2 -0
  19. package/dist/har-service/src/services/requestBodies/BackfillTriggerRequestV3RequestBody.js +1 -0
  20. package/dist/har-service/src/services/schemas/ArtifactDetail.d.ts +2 -1
  21. package/dist/har-service/src/services/schemas/BackfillEntityStateV3.d.ts +27 -0
  22. package/dist/har-service/src/services/schemas/BackfillEntityStateV3.js +1 -0
  23. package/dist/har-service/src/services/schemas/BackfillStateDataV3.d.ts +16 -0
  24. package/dist/har-service/src/services/schemas/BackfillStateDataV3.js +1 -0
  25. package/dist/har-service/src/services/schemas/BackfillTaskStatusDataV3.d.ts +30 -0
  26. package/dist/har-service/src/services/schemas/BackfillTaskStatusDataV3.js +1 -0
  27. package/dist/har-service/src/services/schemas/BackfillTriggerDataV3.d.ts +9 -0
  28. package/dist/har-service/src/services/schemas/BackfillTriggerDataV3.js +4 -0
  29. package/dist/har-service/src/services/schemas/BackfillTriggerRequestInputV3.d.ts +13 -0
  30. package/dist/har-service/src/services/schemas/BackfillTriggerRequestInputV3.js +4 -0
  31. package/dist/har-service/src/services/schemas/CompletedAtMsV3.d.ts +6 -0
  32. package/dist/har-service/src/services/schemas/CompletedAtMsV3.js +4 -0
  33. package/dist/har-service/src/services/schemas/DebianArtifactDetailConfig.d.ts +8 -0
  34. package/dist/har-service/src/services/schemas/DebianArtifactDetailConfig.js +4 -0
  35. package/dist/har-service/src/services/schemas/LifecycleExecutionItemResponseV3.d.ts +4 -0
  36. package/dist/har-service/src/services/schemas/LifecycleRuleResponseV3.d.ts +4 -0
  37. package/dist/har-service/src/services/schemas/StartedAtMsV3.d.ts +6 -0
  38. package/dist/har-service/src/services/schemas/StartedAtMsV3.js +4 -0
  39. package/package.json +1 -1
@@ -18,7 +18,7 @@ export interface CopyMutationQueryParams {
18
18
  target_project_identifier?: string;
19
19
  target_registry_identifier: string;
20
20
  artifact_type?: 'dataset' | 'model';
21
- filters?: string;
21
+ filters?: string[];
22
22
  }
23
23
  export type CopyOkResponse = ResponseWithPagination<CopyResponseResponse>;
24
24
  export type CopyErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
@@ -14,10 +14,7 @@ export interface DeleteArtifactVersionMutationPathParams {
14
14
  }
15
15
  export interface DeleteArtifactVersionMutationQueryParams {
16
16
  artifact_type?: 'dataset' | 'model';
17
- /**
18
- * @example "architecture:amd64,distribution:ubuntu"
19
- */
20
- filters?: string;
17
+ filters?: string[];
21
18
  }
22
19
  export type DeleteArtifactVersionOkResponse = ResponseWithPagination<SuccessResponse>;
23
20
  export type DeleteArtifactVersionErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
@@ -14,10 +14,7 @@ export interface DeleteQuarantineFilePathMutationQueryParams {
14
14
  version?: string;
15
15
  file_path?: string;
16
16
  artifact_type?: 'dataset' | 'model';
17
- /**
18
- * @example "architecture:amd64,distribution:ubuntu"
19
- */
20
- filters?: string;
17
+ filters?: string[];
21
18
  }
22
19
  export type DeleteQuarantineFilePathOkResponse = ResponseWithPagination<SuccessResponse>;
23
20
  export type DeleteQuarantineFilePathErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | InternalServerErrorResponse;
@@ -15,10 +15,7 @@ export interface GetArtifactDetailsQueryPathParams {
15
15
  export interface GetArtifactDetailsQueryQueryParams {
16
16
  artifact_type?: 'dataset' | 'model';
17
17
  childVersion?: string;
18
- /**
19
- * @example "architecture:amd64,distribution:ubuntu"
20
- */
21
- filters?: string;
18
+ filters?: string[];
22
19
  }
23
20
  export type GetArtifactDetailsOkResponse = ResponseWithPagination<ArtifactDetailResponseResponse>;
24
21
  export type GetArtifactDetailsErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
@@ -15,10 +15,7 @@ export interface GetArtifactFileQueryPathParams {
15
15
  }
16
16
  export interface GetArtifactFileQueryQueryParams {
17
17
  artifact_type?: 'dataset' | 'model';
18
- /**
19
- * @example "architecture:amd64,distribution:ubuntu"
20
- */
21
- filters?: string;
18
+ filters?: string[];
22
19
  }
23
20
  export type GetArtifactFileOkResponse = ResponseWithPagination<ArtifactFileResponseResponse>;
24
21
  export type GetArtifactFileErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
@@ -27,10 +27,7 @@ export interface GetArtifactFilesQueryQueryParams {
27
27
  sort_order?: string;
28
28
  sort_field?: string;
29
29
  search_term?: string;
30
- /**
31
- * @example "architecture:amd64,distribution:ubuntu"
32
- */
33
- filters?: string;
30
+ filters?: string[];
34
31
  }
35
32
  export type GetArtifactFilesOkResponse = ResponseWithPagination<FileDetailResponseResponse>;
36
33
  export type GetArtifactFilesErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
@@ -15,10 +15,7 @@ export interface GetArtifactVersionSummaryQueryPathParams {
15
15
  export interface GetArtifactVersionSummaryQueryQueryParams {
16
16
  artifact_type?: 'dataset' | 'model';
17
17
  digest?: string;
18
- /**
19
- * @example "architecture:amd64,distribution:ubuntu"
20
- */
21
- filters?: string;
18
+ filters?: string[];
22
19
  }
23
20
  export type GetArtifactVersionSummaryOkResponse = ResponseWithPagination<ArtifactVersionSummaryResponseResponse>;
24
21
  export type GetArtifactVersionSummaryErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
@@ -0,0 +1,20 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { BackfillStateDataV3 } from '../schemas/BackfillStateDataV3';
3
+ import type { ErrorV3 } from '../schemas/ErrorV3';
4
+ import type { ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
+ export interface GetBackfillStateV3QueryQueryParams {
7
+ account_identifier: string;
8
+ }
9
+ export type GetBackfillStateV3OkResponse = ResponseWithPagination<{
10
+ data: BackfillStateDataV3;
11
+ }>;
12
+ export type GetBackfillStateV3ErrorResponse = ErrorV3;
13
+ export interface GetBackfillStateV3Props extends Omit<FetcherOptions<GetBackfillStateV3QueryQueryParams, unknown>, 'url'> {
14
+ queryParams: GetBackfillStateV3QueryQueryParams;
15
+ }
16
+ export declare function getBackfillStateV3(props: GetBackfillStateV3Props): Promise<GetBackfillStateV3OkResponse>;
17
+ /**
18
+ * Get backfill state by account
19
+ */
20
+ export declare function useGetBackfillStateV3Query(props: GetBackfillStateV3Props, options?: Omit<UseQueryOptions<GetBackfillStateV3OkResponse, GetBackfillStateV3ErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetBackfillStateV3OkResponse, 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 getBackfillStateV3(props) {
7
+ return fetcher(Object.assign({ url: `/v3/internal/search/backfill/state`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Get backfill state by account
11
+ */
12
+ export function useGetBackfillStateV3Query(props, options) {
13
+ return useQuery(['GetBackfillStateV3', props.queryParams], ({ signal }) => getBackfillStateV3(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,23 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { BackfillTaskStatusDataV3 } from '../schemas/BackfillTaskStatusDataV3';
3
+ import type { ErrorV3 } from '../schemas/ErrorV3';
4
+ import type { ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
+ export interface GetBackfillTaskStatusV3QueryPathParams {
7
+ job_id: string;
8
+ }
9
+ export interface GetBackfillTaskStatusV3QueryQueryParams {
10
+ account_identifier: string;
11
+ }
12
+ export type GetBackfillTaskStatusV3OkResponse = ResponseWithPagination<{
13
+ data: BackfillTaskStatusDataV3;
14
+ }>;
15
+ export type GetBackfillTaskStatusV3ErrorResponse = ErrorV3;
16
+ export interface GetBackfillTaskStatusV3Props extends GetBackfillTaskStatusV3QueryPathParams, Omit<FetcherOptions<GetBackfillTaskStatusV3QueryQueryParams, unknown>, 'url'> {
17
+ queryParams: GetBackfillTaskStatusV3QueryQueryParams;
18
+ }
19
+ export declare function getBackfillTaskStatusV3(props: GetBackfillTaskStatusV3Props): Promise<GetBackfillTaskStatusV3OkResponse>;
20
+ /**
21
+ * Get backfill task status
22
+ */
23
+ export declare function useGetBackfillTaskStatusV3Query(props: GetBackfillTaskStatusV3Props, options?: Omit<UseQueryOptions<GetBackfillTaskStatusV3OkResponse, GetBackfillTaskStatusV3ErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetBackfillTaskStatusV3OkResponse, 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 getBackfillTaskStatusV3(props) {
7
+ return fetcher(Object.assign({ url: `/v3/internal/search/backfill/status/${props.job_id}`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Get backfill task status
11
+ */
12
+ export function useGetBackfillTaskStatusV3Query(props, options) {
13
+ return useQuery(['GetBackfillTaskStatusV3', props.job_id, props.queryParams], ({ signal }) => getBackfillTaskStatusV3(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -13,7 +13,7 @@ export interface GetMetadataQueryQueryParams {
13
13
  path?: string;
14
14
  package?: string;
15
15
  version?: string;
16
- filters?: string;
16
+ filters?: string[];
17
17
  }
18
18
  export type GetMetadataOkResponse = ResponseWithPagination<MetadataResponseResponse>;
19
19
  export type GetMetadataErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
@@ -24,6 +24,7 @@ export interface ListLifecycleExecutionItemsV3QueryQueryParams {
24
24
  package_types?: string[];
25
25
  registry_ids?: string[];
26
26
  status?: 'DELETED' | 'PROTECTED' | 'WOULD_BE_DELETED';
27
+ scope?: 'ancestors' | 'descendants' | 'none';
27
28
  }
28
29
  export type ListLifecycleExecutionItemsV3OkResponse = ResponseWithPagination<ListLifecycleExecutionItemsResponseV3>;
29
30
  export type ListLifecycleExecutionItemsV3ErrorResponse = ErrorV3;
@@ -0,0 +1,23 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { BackfillTriggerDataV3 } from '../schemas/BackfillTriggerDataV3';
3
+ import type { ErrorV3 } from '../schemas/ErrorV3';
4
+ import type { BackfillTriggerRequestV3RequestBody } from '../requestBodies/BackfillTriggerRequestV3RequestBody';
5
+ import type { ResponseWithPagination } from '../helpers';
6
+ import { FetcherOptions } from '../../../../fetcher/index.js';
7
+ export interface TriggerBackfillV3MutationQueryParams {
8
+ account_identifier: string;
9
+ }
10
+ export type TriggerBackfillV3RequestBody = BackfillTriggerRequestV3RequestBody;
11
+ export type TriggerBackfillV3OkResponse = ResponseWithPagination<{
12
+ data: BackfillTriggerDataV3;
13
+ }>;
14
+ export type TriggerBackfillV3ErrorResponse = ErrorV3;
15
+ export interface TriggerBackfillV3Props extends Omit<FetcherOptions<TriggerBackfillV3MutationQueryParams, TriggerBackfillV3RequestBody>, 'url'> {
16
+ queryParams: TriggerBackfillV3MutationQueryParams;
17
+ body: TriggerBackfillV3RequestBody;
18
+ }
19
+ export declare function triggerBackfillV3(props: TriggerBackfillV3Props): Promise<TriggerBackfillV3OkResponse>;
20
+ /**
21
+ * Trigger ES search backfill for an account
22
+ */
23
+ export declare function useTriggerBackfillV3Mutation(options?: Omit<UseMutationOptions<TriggerBackfillV3OkResponse, TriggerBackfillV3ErrorResponse, TriggerBackfillV3Props>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<TriggerBackfillV3OkResponse, ErrorV3, TriggerBackfillV3Props, 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 triggerBackfillV3(props) {
7
+ return fetcher(Object.assign({ url: `/v3/internal/search/backfill`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Trigger ES search backfill for an account
11
+ */
12
+ export function useTriggerBackfillV3Mutation(options) {
13
+ return useMutation((mutateProps) => triggerBackfillV3(mutateProps), options);
14
+ }
@@ -97,6 +97,10 @@ export type { GetArtifactSummaryErrorResponse, GetArtifactSummaryOkResponse, Get
97
97
  export { getArtifactSummary, useGetArtifactSummaryQuery } from './hooks/useGetArtifactSummaryQuery';
98
98
  export type { GetArtifactVersionSummaryErrorResponse, GetArtifactVersionSummaryOkResponse, GetArtifactVersionSummaryProps, GetArtifactVersionSummaryQueryPathParams, GetArtifactVersionSummaryQueryQueryParams, } from './hooks/useGetArtifactVersionSummaryQuery';
99
99
  export { getArtifactVersionSummary, useGetArtifactVersionSummaryQuery, } from './hooks/useGetArtifactVersionSummaryQuery';
100
+ export type { GetBackfillStateV3ErrorResponse, GetBackfillStateV3OkResponse, GetBackfillStateV3Props, GetBackfillStateV3QueryQueryParams, } from './hooks/useGetBackfillStateV3Query';
101
+ export { getBackfillStateV3, useGetBackfillStateV3Query } from './hooks/useGetBackfillStateV3Query';
102
+ export type { GetBackfillTaskStatusV3ErrorResponse, GetBackfillTaskStatusV3OkResponse, GetBackfillTaskStatusV3Props, GetBackfillTaskStatusV3QueryPathParams, GetBackfillTaskStatusV3QueryQueryParams, } from './hooks/useGetBackfillTaskStatusV3Query';
103
+ export { getBackfillTaskStatusV3, useGetBackfillTaskStatusV3Query, } from './hooks/useGetBackfillTaskStatusV3Query';
100
104
  export type { GetBulkDownloadRequestStatusErrorResponse, GetBulkDownloadRequestStatusOkResponse, GetBulkDownloadRequestStatusProps, GetBulkDownloadRequestStatusQueryPathParams, GetBulkDownloadRequestStatusQueryQueryParams, } from './hooks/useGetBulkDownloadRequestStatusQuery';
101
105
  export { getBulkDownloadRequestStatus, useGetBulkDownloadRequestStatusQuery, } from './hooks/useGetBulkDownloadRequestStatusQuery';
102
106
  export type { GetBulkDownloadRequestStatusV3ErrorResponse, GetBulkDownloadRequestStatusV3OkResponse, GetBulkDownloadRequestStatusV3Props, GetBulkDownloadRequestStatusV3QueryPathParams, GetBulkDownloadRequestStatusV3QueryQueryParams, } from './hooks/useGetBulkDownloadRequestStatusV3Query';
@@ -243,6 +247,8 @@ export type { StartMigrationErrorResponse, StartMigrationMutationPathParams, Sta
243
247
  export { startMigration, useStartMigrationMutation } from './hooks/useStartMigrationMutation';
244
248
  export type { StopMigrationErrorResponse, StopMigrationMutationPathParams, StopMigrationOkResponse, StopMigrationProps, } from './hooks/useStopMigrationMutation';
245
249
  export { stopMigration, useStopMigrationMutation } from './hooks/useStopMigrationMutation';
250
+ export type { TriggerBackfillV3ErrorResponse, TriggerBackfillV3MutationQueryParams, TriggerBackfillV3OkResponse, TriggerBackfillV3Props, TriggerBackfillV3RequestBody, } from './hooks/useTriggerBackfillV3Mutation';
251
+ export { triggerBackfillV3, useTriggerBackfillV3Mutation, } from './hooks/useTriggerBackfillV3Mutation';
246
252
  export type { UpdateArtifactLabelsErrorResponse, UpdateArtifactLabelsMutationPathParams, UpdateArtifactLabelsMutationQueryParams, UpdateArtifactLabelsOkResponse, UpdateArtifactLabelsProps, UpdateArtifactLabelsRequestBody, } from './hooks/useUpdateArtifactLabelsMutation';
247
253
  export { updateArtifactLabels, useUpdateArtifactLabelsMutation, } from './hooks/useUpdateArtifactLabelsMutation';
248
254
  export type { UpdateFirewallExceptionV3ErrorResponse, UpdateFirewallExceptionV3MutationPathParams, UpdateFirewallExceptionV3MutationQueryParams, UpdateFirewallExceptionV3OkResponse, UpdateFirewallExceptionV3Props, UpdateFirewallExceptionV3RequestBody, } from './hooks/useUpdateFirewallExceptionV3Mutation';
@@ -273,6 +279,7 @@ export type { AddTagsRequestRequestBody } from './requestBodies/AddTagsRequestRe
273
279
  export type { AddTagsRequestV3RequestBody } from './requestBodies/AddTagsRequestV3RequestBody';
274
280
  export type { ArtifactLabelRequestRequestBody } from './requestBodies/ArtifactLabelRequestRequestBody';
275
281
  export type { ArtifactScanEvaluateRequestV3RequestBody } from './requestBodies/ArtifactScanEvaluateRequestV3RequestBody';
282
+ export type { BackfillTriggerRequestV3RequestBody } from './requestBodies/BackfillTriggerRequestV3RequestBody';
276
283
  export type { BuildInfoRequestV3RequestBody } from './requestBodies/BuildInfoRequestV3RequestBody';
277
284
  export type { BulkDeleteRequestV3RequestBody } from './requestBodies/BulkDeleteRequestV3RequestBody';
278
285
  export type { BulkDownloadFilesRequestRequestBody } from './requestBodies/BulkDownloadFilesRequestRequestBody';
@@ -393,6 +400,11 @@ export type { ArtifactType } from './schemas/ArtifactType';
393
400
  export type { ArtifactVersionMetadata } from './schemas/ArtifactVersionMetadata';
394
401
  export type { ArtifactVersionSummary } from './schemas/ArtifactVersionSummary';
395
402
  export type { AuthType } from './schemas/AuthType';
403
+ export type { BackfillEntityStateV3 } from './schemas/BackfillEntityStateV3';
404
+ export type { BackfillStateDataV3 } from './schemas/BackfillStateDataV3';
405
+ export type { BackfillTaskStatusDataV3 } from './schemas/BackfillTaskStatusDataV3';
406
+ export type { BackfillTriggerDataV3 } from './schemas/BackfillTriggerDataV3';
407
+ export type { BackfillTriggerRequestInputV3 } from './schemas/BackfillTriggerRequestInputV3';
396
408
  export type { BuildDetailEntryV3 } from './schemas/BuildDetailEntryV3';
397
409
  export type { BuildDetails } from './schemas/BuildDetails';
398
410
  export type { BuildDetailsV3 } from './schemas/BuildDetailsV3';
@@ -418,6 +430,7 @@ export type { ClientSetupStep } from './schemas/ClientSetupStep';
418
430
  export type { ClientSetupStepCommand } from './schemas/ClientSetupStepCommand';
419
431
  export type { ClientSetupStepConfig } from './schemas/ClientSetupStepConfig';
420
432
  export type { ClientSetupStepType } from './schemas/ClientSetupStepType';
433
+ export type { CompletedAtMsV3 } from './schemas/CompletedAtMsV3';
421
434
  export type { ComposerArtifactDetailConfig } from './schemas/ComposerArtifactDetailConfig';
422
435
  export type { CondaArtifactDetailConfig } from './schemas/CondaArtifactDetailConfig';
423
436
  export type { CopyResourceItemV3 } from './schemas/CopyResourceItemV3';
@@ -426,6 +439,7 @@ export type { CopyTargetRefV3 } from './schemas/CopyTargetRefV3';
426
439
  export type { CreateBulkDownloadRequestResponseOutput } from './schemas/CreateBulkDownloadRequestResponseOutput';
427
440
  export type { CreatedAtMsV3 } from './schemas/CreatedAtMsV3';
428
441
  export type { DartArtifactDetailConfig } from './schemas/DartArtifactDetailConfig';
442
+ export type { DebianArtifactDetailConfig } from './schemas/DebianArtifactDetailConfig';
429
443
  export type { DeletedAtMsV3 } from './schemas/DeletedAtMsV3';
430
444
  export type { DeploymentDetails } from './schemas/DeploymentDetails';
431
445
  export type { DeploymentMetadata } from './schemas/DeploymentMetadata';
@@ -578,6 +592,7 @@ export type { SectionType } from './schemas/SectionType';
578
592
  export type { SecurityPolicyFailureDetailConfigV3 } from './schemas/SecurityPolicyFailureDetailConfigV3';
579
593
  export type { SecurityPolicyFailureVulnerabilityV3 } from './schemas/SecurityPolicyFailureVulnerabilityV3';
580
594
  export type { SlsaDetails } from './schemas/SlsaDetails';
595
+ export type { StartedAtMsV3 } from './schemas/StartedAtMsV3';
581
596
  export type { Status } from './schemas/Status';
582
597
  export type { StoDetails } from './schemas/StoDetails';
583
598
  export type { StorageDetails } from './schemas/StorageDetails';
@@ -47,6 +47,8 @@ export { getArtifactStatsForSpace, useGetArtifactStatsForSpaceQuery, } from './h
47
47
  export { getArtifactStats, useGetArtifactStatsQuery } from './hooks/useGetArtifactStatsQuery';
48
48
  export { getArtifactSummary, useGetArtifactSummaryQuery } from './hooks/useGetArtifactSummaryQuery';
49
49
  export { getArtifactVersionSummary, useGetArtifactVersionSummaryQuery, } from './hooks/useGetArtifactVersionSummaryQuery';
50
+ export { getBackfillStateV3, useGetBackfillStateV3Query } from './hooks/useGetBackfillStateV3Query';
51
+ export { getBackfillTaskStatusV3, useGetBackfillTaskStatusV3Query, } from './hooks/useGetBackfillTaskStatusV3Query';
50
52
  export { getBulkDownloadRequestStatus, useGetBulkDownloadRequestStatusQuery, } from './hooks/useGetBulkDownloadRequestStatusQuery';
51
53
  export { getBulkDownloadRequestStatusV3, useGetBulkDownloadRequestStatusV3Query, } from './hooks/useGetBulkDownloadRequestStatusV3Query';
52
54
  export { getBulkScanEvaluationStatusV3, useGetBulkScanEvaluationStatusV3Query, } from './hooks/useGetBulkScanEvaluationStatusV3Query';
@@ -120,6 +122,7 @@ export { saveVersionMetadataV3, useSaveVersionMetadataV3Mutation, } from './hook
120
122
  export { searchFiles, useSearchFilesQuery } from './hooks/useSearchFilesQuery';
121
123
  export { startMigration, useStartMigrationMutation } from './hooks/useStartMigrationMutation';
122
124
  export { stopMigration, useStopMigrationMutation } from './hooks/useStopMigrationMutation';
125
+ export { triggerBackfillV3, useTriggerBackfillV3Mutation, } from './hooks/useTriggerBackfillV3Mutation';
123
126
  export { updateArtifactLabels, useUpdateArtifactLabelsMutation, } from './hooks/useUpdateArtifactLabelsMutation';
124
127
  export { updateFirewallExceptionV3, useUpdateFirewallExceptionV3Mutation, } from './hooks/useUpdateFirewallExceptionV3Mutation';
125
128
  export { updateLifecycleRuleV3, useUpdateLifecycleRuleV3Mutation, } from './hooks/useUpdateLifecycleRuleV3Mutation';
@@ -0,0 +1,2 @@
1
+ import type { BackfillTriggerRequestInputV3 } from '../schemas/BackfillTriggerRequestInputV3';
2
+ export type BackfillTriggerRequestV3RequestBody = BackfillTriggerRequestInputV3;
@@ -14,13 +14,14 @@ import type { DartArtifactDetailConfig } from '../schemas/DartArtifactDetailConf
14
14
  import type { ComposerArtifactDetailConfig } from '../schemas/ComposerArtifactDetailConfig';
15
15
  import type { SwiftArtifactDetailConfig } from '../schemas/SwiftArtifactDetailConfig';
16
16
  import type { PuppetArtifactDetailConfig } from '../schemas/PuppetArtifactDetailConfig';
17
+ import type { DebianArtifactDetailConfig } from '../schemas/DebianArtifactDetailConfig';
17
18
  import type { ArtifactType } from '../schemas/ArtifactType';
18
19
  import type { UserInfo } from '../schemas/UserInfo';
19
20
  import type { PackageType } from '../schemas/PackageType';
20
21
  /**
21
22
  * Artifact Detail
22
23
  */
23
- export type ArtifactDetail = (DockerArtifactDetailConfig | HelmArtifactDetailConfig | GenericArtifactDetailConfig | MavenArtifactDetailConfig | PythonArtifactDetailConfig | NpmArtifactDetailConfig | RpmArtifactDetailConfig | NugetArtifactDetailConfig | CargoArtifactDetailConfig | GoArtifactDetailConfig | HuggingFaceArtifactDetailConfig | CondaArtifactDetailConfig | DartArtifactDetailConfig | ComposerArtifactDetailConfig | SwiftArtifactDetailConfig | PuppetArtifactDetailConfig) & {
24
+ export type ArtifactDetail = (DockerArtifactDetailConfig | HelmArtifactDetailConfig | GenericArtifactDetailConfig | MavenArtifactDetailConfig | PythonArtifactDetailConfig | NpmArtifactDetailConfig | RpmArtifactDetailConfig | NugetArtifactDetailConfig | CargoArtifactDetailConfig | GoArtifactDetailConfig | HuggingFaceArtifactDetailConfig | CondaArtifactDetailConfig | DartArtifactDetailConfig | ComposerArtifactDetailConfig | SwiftArtifactDetailConfig | PuppetArtifactDetailConfig | DebianArtifactDetailConfig) & {
24
25
  artifactKey?: {
25
26
  [key: string]: string;
26
27
  };
@@ -0,0 +1,27 @@
1
+ import type { CompletedAtMsV3 } from '../schemas/CompletedAtMsV3';
2
+ import type { StartedAtMsV3 } from '../schemas/StartedAtMsV3';
3
+ /**
4
+ * Per-entity backfill progress and ES document count for an account.
5
+ */
6
+ export interface BackfillEntityStateV3 {
7
+ completedAt: CompletedAtMsV3;
8
+ /**
9
+ * Number of documents currently present in Elasticsearch for this entity type.
10
+ * @format int64
11
+ */
12
+ documentsInES: number;
13
+ /**
14
+ * Checkpoint cursor of the last successfully indexed row.
15
+ */
16
+ lastProcessedID: string;
17
+ startedAt: StartedAtMsV3;
18
+ /**
19
+ * Current backfill status for this entity type.
20
+ */
21
+ status: string;
22
+ /**
23
+ * Total rows processed for this entity type so far.
24
+ * @format int64
25
+ */
26
+ totalProcessed: number;
27
+ }
@@ -0,0 +1,16 @@
1
+ import type { BackfillEntityStateV3 } from '../schemas/BackfillEntityStateV3';
2
+ /**
3
+ * Aggregated backfill state for an account across all entity types.
4
+ */
5
+ export interface BackfillStateDataV3 {
6
+ /**
7
+ * Account identifier the state belongs to.
8
+ */
9
+ accountIdentifier: string;
10
+ /**
11
+ * Map of entity type to its current backfill state.
12
+ */
13
+ entities: {
14
+ [key: string]: BackfillEntityStateV3;
15
+ };
16
+ }
@@ -0,0 +1,30 @@
1
+ import type { CompletedAtMsV3 } from '../schemas/CompletedAtMsV3';
2
+ import type { CreatedAtMsV3 } from '../schemas/CreatedAtMsV3';
3
+ /**
4
+ * Status of a single backfill job (CDC outbox row).
5
+ */
6
+ export interface BackfillTaskStatusDataV3 {
7
+ /**
8
+ * Number of execution attempts so far.
9
+ * @format int64
10
+ */
11
+ attempts: number;
12
+ completedAt?: CompletedAtMsV3;
13
+ createdAt: CreatedAtMsV3;
14
+ /**
15
+ * Numeric identifier of the CDC job row.
16
+ */
17
+ jobId: string;
18
+ /**
19
+ * Job type discriminator.
20
+ */
21
+ jobType: string;
22
+ /**
23
+ * Last error message from the most recent failed attempt, if any.
24
+ */
25
+ lastError?: string;
26
+ /**
27
+ * Lifecycle status of the job.
28
+ */
29
+ status: string;
30
+ }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Response payload returned when a backfill is successfully triggered.
3
+ */
4
+ export interface BackfillTriggerDataV3 {
5
+ /**
6
+ * Numeric identifier of the CDC job row created for this backfill.
7
+ */
8
+ jobId: number;
9
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Request body for triggering an ES search backfill.
3
+ */
4
+ export interface BackfillTriggerRequestInputV3 {
5
+ /**
6
+ * Entity types to backfill into Elasticsearch.
7
+ */
8
+ entityTypes: Array<'FILE' | 'PACKAGE' | 'PACKAGE_VERSION' | 'REGISTRY'>;
9
+ /**
10
+ * If true, reset progress and re-index all rows from the beginning.
11
+ */
12
+ reindexAll?: boolean;
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,6 @@
1
+ /**
2
+ * Unix timestamp in milliseconds when the operation completed. Null while still in flight.
3
+ * @format int64
4
+ * @example 1736360000456
5
+ */
6
+ export type CompletedAtMsV3 = number | null;
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Config for debian artifact details
3
+ */
4
+ export interface DebianArtifactDetailConfig {
5
+ metadata?: {
6
+ [key: string]: any;
7
+ };
8
+ }
@@ -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 {};
@@ -1,4 +1,6 @@
1
+ import type { OrgIdentifier } from '../schemas/OrgIdentifier';
1
2
  import type { PackageTypeV3 } from '../schemas/PackageTypeV3';
3
+ import type { ProjectIdentifier } from '../schemas/ProjectIdentifier';
2
4
  import type { LifecycleExecutionItemStatusV3 } from '../schemas/LifecycleExecutionItemStatusV3';
3
5
  /**
4
6
  * A single artifact version evaluated during a lifecycle execution.
@@ -9,8 +11,10 @@ export interface LifecycleExecutionItemResponseV3 {
9
11
  * @format int64
10
12
  */
11
13
  lastDownloadedAt?: number;
14
+ orgIdentifier?: OrgIdentifier;
12
15
  packageName: string;
13
16
  packageType?: PackageTypeV3;
17
+ projectIdentifier?: ProjectIdentifier;
14
18
  /**
15
19
  * Reason the item was included or excluded.
16
20
  */
@@ -21,6 +21,10 @@ export interface LifecycleRuleResponseV3<T0 extends LifecycleRuleFilterConfigV3
21
21
  */
22
22
  enabled: boolean;
23
23
  filterConfig?: T0;
24
+ /**
25
+ * Whether the lifecycle rule has at least one assignment with parent_id matching the filter's ParentID.
26
+ */
27
+ hasLocalAssignment: boolean;
24
28
  id: string;
25
29
  /**
26
30
  * Epoch milliseconds of the last execution, if any.
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Unix timestamp in milliseconds when the operation started
3
+ * @format int64
4
+ * @example 1736360000123
5
+ */
6
+ export type StartedAtMsV3 = number | null;
@@ -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.64.0",
3
+ "version": "0.66.0",
4
4
  "description": "Harness HAR Service APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",