@harnessio/react-har-service-client 0.100.0 → 0.101.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.
- package/dist/har-service/src/services/hooks/useGetRebuildRegistryIndexStatusV3Query.d.ts +22 -0
- package/dist/har-service/src/services/hooks/useGetRebuildRegistryIndexStatusV3Query.js +14 -0
- package/dist/har-service/src/services/hooks/useListPackagesV3Query.d.ts +1 -0
- package/dist/har-service/src/services/hooks/useListRegistriesV3Query.d.ts +1 -0
- package/dist/har-service/src/services/hooks/useListVersionsV3Query.d.ts +1 -0
- package/dist/har-service/src/services/hooks/usePatchRegistryV3Mutation.d.ts +30 -0
- package/dist/har-service/src/services/hooks/usePatchRegistryV3Mutation.js +18 -0
- package/dist/har-service/src/services/hooks/useUpdateRegistryV3Mutation.d.ts +30 -0
- package/dist/har-service/src/services/hooks/useUpdateRegistryV3Mutation.js +18 -0
- package/dist/har-service/src/services/index.d.ts +12 -0
- package/dist/har-service/src/services/index.js +3 -0
- package/dist/har-service/src/services/requestBodies/RegistryPatchRequestV3RequestBody.d.ts +2 -0
- package/dist/har-service/src/services/requestBodies/RegistryPatchRequestV3RequestBody.js +1 -0
- package/dist/har-service/src/services/requestBodies/RegistryUpdateRequestV3RequestBody.d.ts +2 -0
- package/dist/har-service/src/services/requestBodies/RegistryUpdateRequestV3RequestBody.js +1 -0
- package/dist/har-service/src/services/responses/GetRebuildRegistryIndexStatusResponseV3Response.d.ts +20 -0
- package/dist/har-service/src/services/responses/GetRebuildRegistryIndexStatusResponseV3Response.js +1 -0
- package/dist/har-service/src/services/responses/RebuildRegistryIndexAcceptedV3Response.d.ts +15 -1
- package/dist/har-service/src/services/schemas/ApmArtifactDetailConfig.d.ts +8 -0
- package/dist/har-service/src/services/schemas/ApmArtifactDetailConfig.js +4 -0
- package/dist/har-service/src/services/schemas/ArtifactDetail.d.ts +2 -1
- package/dist/har-service/src/services/schemas/FilterConditionV3.d.ts +1 -1
- package/dist/har-service/src/services/schemas/FilterDataTypeV3.d.ts +1 -1
- package/dist/har-service/src/services/schemas/FilterInputTypeV3.d.ts +1 -1
- package/dist/har-service/src/services/schemas/PackageType.d.ts +1 -1
- package/dist/har-service/src/services/schemas/PackageTypeV3.d.ts +1 -1
- package/dist/har-service/src/services/schemas/RebuildRegistryIndexStatusV3.d.ts +4 -0
- package/dist/har-service/src/services/schemas/RebuildRegistryIndexStatusV3.js +4 -0
- package/dist/har-service/src/services/schemas/RegistryMutateBodyV3.d.ts +68 -0
- package/dist/har-service/src/services/schemas/RegistryMutateBodyV3.js +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { GetRebuildRegistryIndexStatusResponseV3Response } from '../responses/GetRebuildRegistryIndexStatusResponseV3Response';
|
|
3
|
+
import type { ErrorV3 } from '../schemas/ErrorV3';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface GetRebuildRegistryIndexStatusV3QueryPathParams {
|
|
7
|
+
id: string;
|
|
8
|
+
request_id: string;
|
|
9
|
+
}
|
|
10
|
+
export interface GetRebuildRegistryIndexStatusV3QueryQueryParams {
|
|
11
|
+
account_identifier: string;
|
|
12
|
+
}
|
|
13
|
+
export type GetRebuildRegistryIndexStatusV3OkResponse = ResponseWithPagination<GetRebuildRegistryIndexStatusResponseV3Response>;
|
|
14
|
+
export type GetRebuildRegistryIndexStatusV3ErrorResponse = ErrorV3;
|
|
15
|
+
export interface GetRebuildRegistryIndexStatusV3Props extends GetRebuildRegistryIndexStatusV3QueryPathParams, Omit<FetcherOptions<GetRebuildRegistryIndexStatusV3QueryQueryParams, unknown>, 'url'> {
|
|
16
|
+
queryParams: GetRebuildRegistryIndexStatusV3QueryQueryParams;
|
|
17
|
+
}
|
|
18
|
+
export declare function getRebuildRegistryIndexStatusV3(props: GetRebuildRegistryIndexStatusV3Props): Promise<GetRebuildRegistryIndexStatusV3OkResponse>;
|
|
19
|
+
/**
|
|
20
|
+
* Get the status of a registry index rebuild requested through RebuildRegistryIndexV3. The status tracks this request only. A request made while a rebuild is already running stays PENDING until the follow-up rebuild that includes it starts.
|
|
21
|
+
*/
|
|
22
|
+
export declare function useGetRebuildRegistryIndexStatusV3Query(props: GetRebuildRegistryIndexStatusV3Props, options?: Omit<UseQueryOptions<GetRebuildRegistryIndexStatusV3OkResponse, GetRebuildRegistryIndexStatusV3ErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetRebuildRegistryIndexStatusV3OkResponse, 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 getRebuildRegistryIndexStatusV3(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v3/registries/${props.id}/rebuild-index/${props.request_id}`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Get the status of a registry index rebuild requested through RebuildRegistryIndexV3. The status tracks this request only. A request made while a rebuild is already running stays PENDING until the follow-up rebuild that includes it starts.
|
|
11
|
+
*/
|
|
12
|
+
export function useGetRebuildRegistryIndexStatusV3Query(props, options) {
|
|
13
|
+
return useQuery(['GetRebuildRegistryIndexStatusV3', props.id, props.request_id, props.queryParams], ({ signal }) => getRebuildRegistryIndexStatusV3(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -31,6 +31,7 @@ export interface ListPackagesV3QueryQueryParams {
|
|
|
31
31
|
sort?: string;
|
|
32
32
|
search_term?: string;
|
|
33
33
|
include_meta?: boolean;
|
|
34
|
+
query?: string;
|
|
34
35
|
}
|
|
35
36
|
export type ListPackagesV3OkResponse = ResponseWithPagination<ListPackageResponseV3Response>;
|
|
36
37
|
export type ListPackagesV3ErrorResponse = ErrorV3;
|
|
@@ -30,6 +30,7 @@ export interface ListRegistriesV3QueryQueryParams {
|
|
|
30
30
|
sort?: string;
|
|
31
31
|
search_term?: string;
|
|
32
32
|
include_meta?: boolean;
|
|
33
|
+
query?: string;
|
|
33
34
|
}
|
|
34
35
|
export type ListRegistriesV3OkResponse = ResponseWithPagination<ListRegistryResponseV3Response>;
|
|
35
36
|
export type ListRegistriesV3ErrorResponse = ErrorV3;
|
|
@@ -38,6 +38,7 @@ export interface ListVersionsV3QueryQueryParams {
|
|
|
38
38
|
* refers to type of registry i.e virtual or upstream
|
|
39
39
|
*/
|
|
40
40
|
registry_type?: 'UPSTREAM' | 'VIRTUAL';
|
|
41
|
+
query?: string;
|
|
41
42
|
}
|
|
42
43
|
export type ListVersionsV3OkResponse = ResponseWithPagination<ListVersionResponseV3Response>;
|
|
43
44
|
export type ListVersionsV3ErrorResponse = ErrorV3;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { RegistryResponseV3Response } from '../responses/RegistryResponseV3Response';
|
|
3
|
+
import type { ErrorV3 } from '../schemas/ErrorV3';
|
|
4
|
+
import type { RegistryPatchRequestV3RequestBody } from '../requestBodies/RegistryPatchRequestV3RequestBody';
|
|
5
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
6
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
7
|
+
export interface PatchRegistryV3MutationPathParams {
|
|
8
|
+
id: string;
|
|
9
|
+
}
|
|
10
|
+
export interface PatchRegistryV3MutationQueryParams {
|
|
11
|
+
account_identifier: string;
|
|
12
|
+
org_identifier?: string;
|
|
13
|
+
project_identifier?: string;
|
|
14
|
+
}
|
|
15
|
+
export type PatchRegistryV3RequestBody = RegistryPatchRequestV3RequestBody;
|
|
16
|
+
export type PatchRegistryV3OkResponse = ResponseWithPagination<RegistryResponseV3Response>;
|
|
17
|
+
export type PatchRegistryV3ErrorResponse = ErrorV3;
|
|
18
|
+
export interface PatchRegistryV3Props extends PatchRegistryV3MutationPathParams, Omit<FetcherOptions<PatchRegistryV3MutationQueryParams, PatchRegistryV3RequestBody>, 'url'> {
|
|
19
|
+
queryParams: PatchRegistryV3MutationQueryParams;
|
|
20
|
+
body: PatchRegistryV3RequestBody;
|
|
21
|
+
}
|
|
22
|
+
export declare function patchRegistryV3(props: PatchRegistryV3Props): Promise<PatchRegistryV3OkResponse>;
|
|
23
|
+
/**
|
|
24
|
+
* Partially updates a registry. Only the fields present in the request body are modified;
|
|
25
|
+
* omitted fields keep their current values. Use this instead of the v1
|
|
26
|
+
* `PUT /registry/{registry_ref}`, which replaces the whole registry and therefore clears
|
|
27
|
+
* any field left out of the body.
|
|
28
|
+
*
|
|
29
|
+
*/
|
|
30
|
+
export declare function usePatchRegistryV3Mutation(options?: Omit<UseMutationOptions<PatchRegistryV3OkResponse, PatchRegistryV3ErrorResponse, PatchRegistryV3Props>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<PatchRegistryV3OkResponse, ErrorV3, PatchRegistryV3Props, unknown>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// This code is autogenerated using @harnessio/oats-cli.
|
|
3
|
+
// Please do not modify this code directly.
|
|
4
|
+
import { useMutation } from '@tanstack/react-query';
|
|
5
|
+
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
|
+
export function patchRegistryV3(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v3/registries/${props.id}`, method: 'PATCH' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Partially updates a registry. Only the fields present in the request body are modified;
|
|
11
|
+
* omitted fields keep their current values. Use this instead of the v1
|
|
12
|
+
* `PUT /registry/{registry_ref}`, which replaces the whole registry and therefore clears
|
|
13
|
+
* any field left out of the body.
|
|
14
|
+
*
|
|
15
|
+
*/
|
|
16
|
+
export function usePatchRegistryV3Mutation(options) {
|
|
17
|
+
return useMutation((mutateProps) => patchRegistryV3(mutateProps), options);
|
|
18
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { RegistryResponseV3Response } from '../responses/RegistryResponseV3Response';
|
|
3
|
+
import type { ErrorV3 } from '../schemas/ErrorV3';
|
|
4
|
+
import type { RegistryUpdateRequestV3RequestBody } from '../requestBodies/RegistryUpdateRequestV3RequestBody';
|
|
5
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
6
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
7
|
+
export interface UpdateRegistryV3MutationPathParams {
|
|
8
|
+
id: string;
|
|
9
|
+
}
|
|
10
|
+
export interface UpdateRegistryV3MutationQueryParams {
|
|
11
|
+
account_identifier: string;
|
|
12
|
+
org_identifier?: string;
|
|
13
|
+
project_identifier?: string;
|
|
14
|
+
}
|
|
15
|
+
export type UpdateRegistryV3RequestBody = RegistryUpdateRequestV3RequestBody;
|
|
16
|
+
export type UpdateRegistryV3OkResponse = ResponseWithPagination<RegistryResponseV3Response>;
|
|
17
|
+
export type UpdateRegistryV3ErrorResponse = ErrorV3;
|
|
18
|
+
export interface UpdateRegistryV3Props extends UpdateRegistryV3MutationPathParams, Omit<FetcherOptions<UpdateRegistryV3MutationQueryParams, UpdateRegistryV3RequestBody>, 'url'> {
|
|
19
|
+
queryParams: UpdateRegistryV3MutationQueryParams;
|
|
20
|
+
body: UpdateRegistryV3RequestBody;
|
|
21
|
+
}
|
|
22
|
+
export declare function updateRegistryV3(props: UpdateRegistryV3Props): Promise<UpdateRegistryV3OkResponse>;
|
|
23
|
+
/**
|
|
24
|
+
* Replaces a registry's mutable fields with the request body. The body is the complete
|
|
25
|
+
* desired state, so any field omitted from it is cleared — a caller that sends only the
|
|
26
|
+
* field it wants to change will wipe the rest. Use `PATCH` for that; it changes only the
|
|
27
|
+
* keys it receives.
|
|
28
|
+
*
|
|
29
|
+
*/
|
|
30
|
+
export declare function useUpdateRegistryV3Mutation(options?: Omit<UseMutationOptions<UpdateRegistryV3OkResponse, UpdateRegistryV3ErrorResponse, UpdateRegistryV3Props>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UpdateRegistryV3OkResponse, ErrorV3, UpdateRegistryV3Props, unknown>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// This code is autogenerated using @harnessio/oats-cli.
|
|
3
|
+
// Please do not modify this code directly.
|
|
4
|
+
import { useMutation } from '@tanstack/react-query';
|
|
5
|
+
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
|
+
export function updateRegistryV3(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v3/registries/${props.id}`, method: 'PUT' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Replaces a registry's mutable fields with the request body. The body is the complete
|
|
11
|
+
* desired state, so any field omitted from it is cleared — a caller that sends only the
|
|
12
|
+
* field it wants to change will wipe the rest. Use `PATCH` for that; it changes only the
|
|
13
|
+
* keys it receives.
|
|
14
|
+
*
|
|
15
|
+
*/
|
|
16
|
+
export function useUpdateRegistryV3Mutation(options) {
|
|
17
|
+
return useMutation((mutateProps) => updateRegistryV3(mutateProps), options);
|
|
18
|
+
}
|
|
@@ -175,6 +175,8 @@ export type { GetPackageMetadataV3ErrorResponse, GetPackageMetadataV3OkResponse,
|
|
|
175
175
|
export { getPackageMetadataV3, useGetPackageMetadataV3Query, } from './hooks/useGetPackageMetadataV3Query';
|
|
176
176
|
export type { GetPackagesStatsV3ErrorResponse, GetPackagesStatsV3MutationQueryParams, GetPackagesStatsV3OkResponse, GetPackagesStatsV3Props, GetPackagesStatsV3RequestBody, } from './hooks/useGetPackagesStatsV3Mutation';
|
|
177
177
|
export { getPackagesStatsV3, useGetPackagesStatsV3Mutation, } from './hooks/useGetPackagesStatsV3Mutation';
|
|
178
|
+
export type { GetRebuildRegistryIndexStatusV3ErrorResponse, GetRebuildRegistryIndexStatusV3OkResponse, GetRebuildRegistryIndexStatusV3Props, GetRebuildRegistryIndexStatusV3QueryPathParams, GetRebuildRegistryIndexStatusV3QueryQueryParams, } from './hooks/useGetRebuildRegistryIndexStatusV3Query';
|
|
179
|
+
export { getRebuildRegistryIndexStatusV3, useGetRebuildRegistryIndexStatusV3Query, } from './hooks/useGetRebuildRegistryIndexStatusV3Query';
|
|
178
180
|
export type { GetRegistriesStatsV3ErrorResponse, GetRegistriesStatsV3MutationQueryParams, GetRegistriesStatsV3OkResponse, GetRegistriesStatsV3Props, GetRegistriesStatsV3RequestBody, } from './hooks/useGetRegistriesStatsV3Mutation';
|
|
179
181
|
export { getRegistriesStatsV3, useGetRegistriesStatsV3Mutation, } from './hooks/useGetRegistriesStatsV3Mutation';
|
|
180
182
|
export type { GetRegistryMetadataV3ErrorResponse, GetRegistryMetadataV3OkResponse, GetRegistryMetadataV3Props, GetRegistryMetadataV3QueryPathParams, GetRegistryMetadataV3QueryQueryParams, } from './hooks/useGetRegistryMetadataV3Query';
|
|
@@ -289,6 +291,8 @@ export type { ModifyRegistryErrorResponse, ModifyRegistryMutationPathParams, Mod
|
|
|
289
291
|
export { modifyRegistry, useModifyRegistryMutation } from './hooks/useModifyRegistryMutation';
|
|
290
292
|
export type { PatchLifecycleRuleV3ErrorResponse, PatchLifecycleRuleV3MutationPathParams, PatchLifecycleRuleV3MutationQueryParams, PatchLifecycleRuleV3OkResponse, PatchLifecycleRuleV3Props, PatchLifecycleRuleV3RequestBody, } from './hooks/usePatchLifecycleRuleV3Mutation';
|
|
291
293
|
export { patchLifecycleRuleV3, usePatchLifecycleRuleV3Mutation, } from './hooks/usePatchLifecycleRuleV3Mutation';
|
|
294
|
+
export type { PatchRegistryV3ErrorResponse, PatchRegistryV3MutationPathParams, PatchRegistryV3MutationQueryParams, PatchRegistryV3OkResponse, PatchRegistryV3Props, PatchRegistryV3RequestBody, } from './hooks/usePatchRegistryV3Mutation';
|
|
295
|
+
export { patchRegistryV3, usePatchRegistryV3Mutation } from './hooks/usePatchRegistryV3Mutation';
|
|
292
296
|
export type { QuarantineFilePathErrorResponse, QuarantineFilePathMutationPathParams, QuarantineFilePathOkResponse, QuarantineFilePathProps, QuarantineFilePathRequestBody, } from './hooks/useQuarantineFilePathMutation';
|
|
293
297
|
export { quarantineFilePath, useQuarantineFilePathMutation, } from './hooks/useQuarantineFilePathMutation';
|
|
294
298
|
export type { ReTriggerWebhookExecutionErrorResponse, ReTriggerWebhookExecutionOkResponse, ReTriggerWebhookExecutionProps, ReTriggerWebhookExecutionQueryPathParams, } from './hooks/useReTriggerWebhookExecutionQuery';
|
|
@@ -351,6 +355,8 @@ export type { UpdateLifecycleRuleV3ErrorResponse, UpdateLifecycleRuleV3MutationP
|
|
|
351
355
|
export { updateLifecycleRuleV3, useUpdateLifecycleRuleV3Mutation, } from './hooks/useUpdateLifecycleRuleV3Mutation';
|
|
352
356
|
export type { UpdateMetadataErrorResponse, UpdateMetadataMutationQueryParams, UpdateMetadataOkResponse, UpdateMetadataProps, UpdateMetadataRequestBody, } from './hooks/useUpdateMetadataMutation';
|
|
353
357
|
export { updateMetadata, useUpdateMetadataMutation } from './hooks/useUpdateMetadataMutation';
|
|
358
|
+
export type { UpdateRegistryV3ErrorResponse, UpdateRegistryV3MutationPathParams, UpdateRegistryV3MutationQueryParams, UpdateRegistryV3OkResponse, UpdateRegistryV3Props, UpdateRegistryV3RequestBody, } from './hooks/useUpdateRegistryV3Mutation';
|
|
359
|
+
export { updateRegistryV3, useUpdateRegistryV3Mutation } from './hooks/useUpdateRegistryV3Mutation';
|
|
354
360
|
export type { UpdateReplicationRuleErrorResponse, UpdateReplicationRuleMutationPathParams, UpdateReplicationRuleOkResponse, UpdateReplicationRuleProps, UpdateReplicationRuleRequestBody, } from './hooks/useUpdateReplicationRuleMutation';
|
|
355
361
|
export { updateReplicationRule, useUpdateReplicationRuleMutation, } from './hooks/useUpdateReplicationRuleMutation';
|
|
356
362
|
export type { UpdateSigningKeyV3ErrorResponse, UpdateSigningKeyV3MutationPathParams, UpdateSigningKeyV3MutationQueryParams, UpdateSigningKeyV3OkResponse, UpdateSigningKeyV3Props, UpdateSigningKeyV3RequestBody, } from './hooks/useUpdateSigningKeyV3Mutation';
|
|
@@ -395,7 +401,9 @@ export type { PackagesStatsRequestV3RequestBody } from './requestBodies/Packages
|
|
|
395
401
|
export type { QuarantineRequestRequestBody } from './requestBodies/QuarantineRequestRequestBody';
|
|
396
402
|
export type { RegistriesStatsRequestV3RequestBody } from './requestBodies/RegistriesStatsRequestV3RequestBody';
|
|
397
403
|
export type { RegistryCreateRequestV3RequestBody } from './requestBodies/RegistryCreateRequestV3RequestBody';
|
|
404
|
+
export type { RegistryPatchRequestV3RequestBody } from './requestBodies/RegistryPatchRequestV3RequestBody';
|
|
398
405
|
export type { RegistryRequestRequestBody } from './requestBodies/RegistryRequestRequestBody';
|
|
406
|
+
export type { RegistryUpdateRequestV3RequestBody } from './requestBodies/RegistryUpdateRequestV3RequestBody';
|
|
399
407
|
export type { ReplicationRuleRequestRequestBody } from './requestBodies/ReplicationRuleRequestRequestBody';
|
|
400
408
|
export type { SearchRegistryFilesRequestV3RequestBody } from './requestBodies/SearchRegistryFilesRequestV3RequestBody';
|
|
401
409
|
export type { VersionsStatsRequestV3RequestBody } from './requestBodies/VersionsStatsRequestV3RequestBody';
|
|
@@ -438,6 +446,7 @@ export type { FirewallExceptionCreatedV3Response } from './responses/FirewallExc
|
|
|
438
446
|
export type { FirewallExceptionUpdatedV3Response } from './responses/FirewallExceptionUpdatedV3Response';
|
|
439
447
|
export type { GetBulkDownloadRequestStatusResponseResponse } from './responses/GetBulkDownloadRequestStatusResponseResponse';
|
|
440
448
|
export type { GetBulkDownloadRequestStatusResponseV3Response } from './responses/GetBulkDownloadRequestStatusResponseV3Response';
|
|
449
|
+
export type { GetRebuildRegistryIndexStatusResponseV3Response } from './responses/GetRebuildRegistryIndexStatusResponseV3Response';
|
|
441
450
|
export type { HelmArtifactDetailResponseResponse } from './responses/HelmArtifactDetailResponseResponse';
|
|
442
451
|
export type { HelmArtifactManifestResponseResponse } from './responses/HelmArtifactManifestResponseResponse';
|
|
443
452
|
export type { InternalServerErrorResponse } from './responses/InternalServerErrorResponse';
|
|
@@ -514,6 +523,7 @@ export type { AddTagsV3 } from './schemas/AddTagsV3';
|
|
|
514
523
|
export type { AlpineArtifactDetailConfig } from './schemas/AlpineArtifactDetailConfig';
|
|
515
524
|
export type { Anonymous } from './schemas/Anonymous';
|
|
516
525
|
export type { ApiErrorsV3 } from './schemas/ApiErrorsV3';
|
|
526
|
+
export type { ApmArtifactDetailConfig } from './schemas/ApmArtifactDetailConfig';
|
|
517
527
|
export type { ArtifactDeploymentsDetail } from './schemas/ArtifactDeploymentsDetail';
|
|
518
528
|
export type { ArtifactDeploymentsDetails } from './schemas/ArtifactDeploymentsDetails';
|
|
519
529
|
export type { ArtifactDeploymentsList } from './schemas/ArtifactDeploymentsList';
|
|
@@ -750,6 +760,7 @@ export type { PythonArtifactDetailConfig } from './schemas/PythonArtifactDetailC
|
|
|
750
760
|
export type { QuarantinePath } from './schemas/QuarantinePath';
|
|
751
761
|
export type { QuarantineRequest } from './schemas/QuarantineRequest';
|
|
752
762
|
export type { RebuildPackageIndexRequestV3 } from './schemas/RebuildPackageIndexRequestV3';
|
|
763
|
+
export type { RebuildRegistryIndexStatusV3 } from './schemas/RebuildRegistryIndexStatusV3';
|
|
753
764
|
export type { RebuildVersionMetadataRequestV3 } from './schemas/RebuildVersionMetadataRequestV3';
|
|
754
765
|
export type { RegistriesStatsRequestInputV3 } from './schemas/RegistriesStatsRequestInputV3';
|
|
755
766
|
export type { RegistriesStatsResponseBodyV3 } from './schemas/RegistriesStatsResponseBodyV3';
|
|
@@ -760,6 +771,7 @@ export type { RegistryConfigV3 } from './schemas/RegistryConfigV3';
|
|
|
760
771
|
export type { RegistryCreateBodyV3 } from './schemas/RegistryCreateBodyV3';
|
|
761
772
|
export type { RegistryDetailV3 } from './schemas/RegistryDetailV3';
|
|
762
773
|
export type { RegistryMetadata } from './schemas/RegistryMetadata';
|
|
774
|
+
export type { RegistryMutateBodyV3 } from './schemas/RegistryMutateBodyV3';
|
|
763
775
|
export type { RegistryRequest } from './schemas/RegistryRequest';
|
|
764
776
|
export type { RegistryRootsIndexBuildDataV3 } from './schemas/RegistryRootsIndexBuildDataV3';
|
|
765
777
|
export type { RegistryRootsIndexStatusDataV3 } from './schemas/RegistryRootsIndexStatusDataV3';
|
|
@@ -86,6 +86,7 @@ export { getMigrationLogsForImage, useGetMigrationLogsForImageQuery, } from './h
|
|
|
86
86
|
export { getOciArtifactTags, useGetOciArtifactTagsQuery } from './hooks/useGetOciArtifactTagsQuery';
|
|
87
87
|
export { getPackageMetadataV3, useGetPackageMetadataV3Query, } from './hooks/useGetPackageMetadataV3Query';
|
|
88
88
|
export { getPackagesStatsV3, useGetPackagesStatsV3Mutation, } from './hooks/useGetPackagesStatsV3Mutation';
|
|
89
|
+
export { getRebuildRegistryIndexStatusV3, useGetRebuildRegistryIndexStatusV3Query, } from './hooks/useGetRebuildRegistryIndexStatusV3Query';
|
|
89
90
|
export { getRegistriesStatsV3, useGetRegistriesStatsV3Mutation, } from './hooks/useGetRegistriesStatsV3Mutation';
|
|
90
91
|
export { getRegistryMetadataV3, useGetRegistryMetadataV3Query, } from './hooks/useGetRegistryMetadataV3Query';
|
|
91
92
|
export { getRegistryPublicKeyV3, useGetRegistryPublicKeyV3Query, } from './hooks/useGetRegistryPublicKeyV3Query';
|
|
@@ -143,6 +144,7 @@ export { listWebhooks, useListWebhooksQuery } from './hooks/useListWebhooksQuery
|
|
|
143
144
|
export { migrateRegistryV3, useMigrateRegistryV3Mutation, } from './hooks/useMigrateRegistryV3Mutation';
|
|
144
145
|
export { modifyRegistry, useModifyRegistryMutation } from './hooks/useModifyRegistryMutation';
|
|
145
146
|
export { patchLifecycleRuleV3, usePatchLifecycleRuleV3Mutation, } from './hooks/usePatchLifecycleRuleV3Mutation';
|
|
147
|
+
export { patchRegistryV3, usePatchRegistryV3Mutation } from './hooks/usePatchRegistryV3Mutation';
|
|
146
148
|
export { quarantineFilePath, useQuarantineFilePathMutation, } from './hooks/useQuarantineFilePathMutation';
|
|
147
149
|
export { reTriggerWebhookExecution, useReTriggerWebhookExecutionQuery, } from './hooks/useReTriggerWebhookExecutionQuery';
|
|
148
150
|
export { rebuildPackageIndexV3, useRebuildPackageIndexV3Mutation, } from './hooks/useRebuildPackageIndexV3Mutation';
|
|
@@ -174,6 +176,7 @@ export { updateArtifactLabels, useUpdateArtifactLabelsMutation, } from './hooks/
|
|
|
174
176
|
export { updateFirewallExceptionV3, useUpdateFirewallExceptionV3Mutation, } from './hooks/useUpdateFirewallExceptionV3Mutation';
|
|
175
177
|
export { updateLifecycleRuleV3, useUpdateLifecycleRuleV3Mutation, } from './hooks/useUpdateLifecycleRuleV3Mutation';
|
|
176
178
|
export { updateMetadata, useUpdateMetadataMutation } from './hooks/useUpdateMetadataMutation';
|
|
179
|
+
export { updateRegistryV3, useUpdateRegistryV3Mutation } from './hooks/useUpdateRegistryV3Mutation';
|
|
177
180
|
export { updateReplicationRule, useUpdateReplicationRuleMutation, } from './hooks/useUpdateReplicationRuleMutation';
|
|
178
181
|
export { updateSigningKeyV3, useUpdateSigningKeyV3Mutation, } from './hooks/useUpdateSigningKeyV3Mutation';
|
|
179
182
|
export { updateSpaceLabel, useUpdateSpaceLabelMutation } from './hooks/useUpdateSpaceLabelMutation';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/har-service/src/services/responses/GetRebuildRegistryIndexStatusResponseV3Response.d.ts
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { RebuildRegistryIndexStatusV3 } from '../schemas/RebuildRegistryIndexStatusV3';
|
|
2
|
+
export interface GetRebuildRegistryIndexStatusResponseV3Response {
|
|
3
|
+
data: {
|
|
4
|
+
/**
|
|
5
|
+
* Request id returned when the index rebuild was requested.
|
|
6
|
+
* @format uuid
|
|
7
|
+
*/
|
|
8
|
+
id: string;
|
|
9
|
+
/**
|
|
10
|
+
* Failure reason. Present only when status is `FAILED`.
|
|
11
|
+
*/
|
|
12
|
+
message?: string;
|
|
13
|
+
status: RebuildRegistryIndexStatusV3;
|
|
14
|
+
/**
|
|
15
|
+
* Unix timestamp (milliseconds) when the status last changed
|
|
16
|
+
* @format int64
|
|
17
|
+
*/
|
|
18
|
+
updatedAt: number;
|
|
19
|
+
};
|
|
20
|
+
}
|
package/dist/har-service/src/services/responses/GetRebuildRegistryIndexStatusResponseV3Response.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1 +1,15 @@
|
|
|
1
|
-
|
|
1
|
+
import type { RebuildRegistryIndexStatusV3 } from '../schemas/RebuildRegistryIndexStatusV3';
|
|
2
|
+
export interface RebuildRegistryIndexAcceptedV3Response {
|
|
3
|
+
data: {
|
|
4
|
+
/**
|
|
5
|
+
* Request id to poll the rebuild status with.
|
|
6
|
+
* @format uuid
|
|
7
|
+
*/
|
|
8
|
+
id: string;
|
|
9
|
+
status: RebuildRegistryIndexStatusV3;
|
|
10
|
+
/**
|
|
11
|
+
* Relative URL to poll for status (optional convenience)
|
|
12
|
+
*/
|
|
13
|
+
statusUrl?: string;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
@@ -22,13 +22,14 @@ import type { CranArtifactDetailConfig } from '../schemas/CranArtifactDetailConf
|
|
|
22
22
|
import type { TerraformArtifactDetailConfig } from '../schemas/TerraformArtifactDetailConfig';
|
|
23
23
|
import type { WolfiArtifactDetailConfig } from '../schemas/WolfiArtifactDetailConfig';
|
|
24
24
|
import type { AlpineArtifactDetailConfig } from '../schemas/AlpineArtifactDetailConfig';
|
|
25
|
+
import type { ApmArtifactDetailConfig } from '../schemas/ApmArtifactDetailConfig';
|
|
25
26
|
import type { ArtifactType } from '../schemas/ArtifactType';
|
|
26
27
|
import type { UserInfo } from '../schemas/UserInfo';
|
|
27
28
|
import type { PackageType } from '../schemas/PackageType';
|
|
28
29
|
/**
|
|
29
30
|
* Artifact Detail
|
|
30
31
|
*/
|
|
31
|
-
export type ArtifactDetail = (DockerArtifactDetailConfig | HelmArtifactDetailConfig | GenericArtifactDetailConfig | MavenArtifactDetailConfig | PythonArtifactDetailConfig | NpmArtifactDetailConfig | RpmArtifactDetailConfig | NugetArtifactDetailConfig | CargoArtifactDetailConfig | GoArtifactDetailConfig | HuggingFaceArtifactDetailConfig | CondaArtifactDetailConfig | DartArtifactDetailConfig | ComposerArtifactDetailConfig | SwiftArtifactDetailConfig | PuppetArtifactDetailConfig | HelmHttpArtifactDetailConfig | DebianArtifactDetailConfig | ConanArtifactDetailConfig | RubyArtifactDetailConfig | CranArtifactDetailConfig | TerraformArtifactDetailConfig | WolfiArtifactDetailConfig | AlpineArtifactDetailConfig) & {
|
|
32
|
+
export type ArtifactDetail = (DockerArtifactDetailConfig | HelmArtifactDetailConfig | GenericArtifactDetailConfig | MavenArtifactDetailConfig | PythonArtifactDetailConfig | NpmArtifactDetailConfig | RpmArtifactDetailConfig | NugetArtifactDetailConfig | CargoArtifactDetailConfig | GoArtifactDetailConfig | HuggingFaceArtifactDetailConfig | CondaArtifactDetailConfig | DartArtifactDetailConfig | ComposerArtifactDetailConfig | SwiftArtifactDetailConfig | PuppetArtifactDetailConfig | HelmHttpArtifactDetailConfig | DebianArtifactDetailConfig | ConanArtifactDetailConfig | RubyArtifactDetailConfig | CranArtifactDetailConfig | TerraformArtifactDetailConfig | WolfiArtifactDetailConfig | AlpineArtifactDetailConfig | ApmArtifactDetailConfig) & {
|
|
32
33
|
artifactKey?: {
|
|
33
34
|
[key: string]: string;
|
|
34
35
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* refers to package
|
|
3
3
|
*/
|
|
4
|
-
export type PackageType = 'ALPINE' | 'CARGO' | 'COMPOSER' | 'CONAN' | 'CONDA' | 'CRAN' | 'DART' | 'DEBIAN' | 'DOCKER' | 'GENERIC' | 'GO' | 'HELM' | 'HELM_HTTP' | 'HUGGINGFACE' | 'MAVEN' | 'NPM' | 'NUGET' | 'PUPPET' | 'PYTHON' | 'RAW' | 'RPM' | 'RUBY' | 'SWIFT' | 'TERRAFORM' | 'TERRAFORM_BACKEND' | 'WOLFI';
|
|
4
|
+
export type PackageType = 'ALPINE' | 'APM' | 'CARGO' | 'COMPOSER' | 'CONAN' | 'CONDA' | 'CRAN' | 'DART' | 'DEBIAN' | 'DOCKER' | 'GENERIC' | 'GO' | 'HELM' | 'HELM_HTTP' | 'HUGGINGFACE' | 'MAVEN' | 'NPM' | 'NUGET' | 'PUPPET' | 'PYTHON' | 'RAW' | 'RPM' | 'RUBY' | 'SWIFT' | 'TERRAFORM' | 'TERRAFORM_BACKEND' | 'WOLFI';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Package type. Known values include: DOCKER, MAVEN, PYTHON, GENERIC, HELM, HELM_HTTP, NUGET, NPM, RPM, CARGO, COMPOSER, GO, HUGGINGFACE, CONDA, DART, SWIFT, PUPPET, RUBY, RAW, DEBIAN, CONAN, TERRAFORM, TERRAFORM_BACKEND, CRAN, WOLFI, ALPINE. This field is extensible; clients must handle unknown values.
|
|
2
|
+
* Package type. Known values include: DOCKER, MAVEN, PYTHON, GENERIC, HELM, HELM_HTTP, NUGET, NPM, RPM, CARGO, COMPOSER, GO, HUGGINGFACE, CONDA, DART, SWIFT, PUPPET, RUBY, RAW, DEBIAN, CONAN, TERRAFORM, TERRAFORM_BACKEND, CRAN, WOLFI, ALPINE, APM. This field is extensible; clients must handle unknown values.
|
|
3
3
|
*
|
|
4
4
|
* @example "DOCKER"
|
|
5
5
|
*/
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import type { RegistryConfigV3 } from '../schemas/RegistryConfigV3';
|
|
2
|
+
/**
|
|
3
|
+
* The mutable fields of a registry. `PATCH` and `PUT` share this body and differ only in how
|
|
4
|
+
* they read an absent field: `PATCH` leaves it exactly as it is, `PUT` clears it. So the same
|
|
5
|
+
* object means "change only these keys" to one verb and "this is the registry's complete
|
|
6
|
+
* desired state" to the other.
|
|
7
|
+
*
|
|
8
|
+
* Per-field notes below are written for both verbs: "clears it" is what `PUT` does with an
|
|
9
|
+
* omitted field and what either verb does with an explicitly empty one (`""` for description,
|
|
10
|
+
* `[]` for the list fields).
|
|
11
|
+
*
|
|
12
|
+
* The registry's identifier, package type and scope are not here. The path id already
|
|
13
|
+
* resolves all three, and changing any of them is rejected by the registry model rather than
|
|
14
|
+
* being an update of this registry.
|
|
15
|
+
*
|
|
16
|
+
* `config` is never merged key by key. Supplying it replaces the whole type-specific
|
|
17
|
+
* configuration, so it has to be sent complete — including `type`, which must match the
|
|
18
|
+
* registry's existing type, because VIRTUAL and UPSTREAM keep their settings in different
|
|
19
|
+
* tables and switching is a different registry rather than an edit of this one. When an
|
|
20
|
+
* upstream registry's credentials or URL change, the referenced secret is re-authorized
|
|
21
|
+
* against the caller. `PUT` requires it: replacing a registry without its configuration is
|
|
22
|
+
* not a meaningful state. `PATCH` does not, and omitting it keeps the current one verbatim.
|
|
23
|
+
*
|
|
24
|
+
* `cleanupPolicy`, `scanners`, `policyRefs` and `isInternal` are not accepted by either verb.
|
|
25
|
+
* Cleanup policies are deprecated; scanners and policy references are written by a v1-only
|
|
26
|
+
* code path that neither endpoint reaches; and `isInternal` is not settable on any API
|
|
27
|
+
* version — v1 accepts the key and ignores it, deriving the flag from the registry it already
|
|
28
|
+
* has. Accepting any of them here would take the value and discard it silently, so they are
|
|
29
|
+
* rejected instead. Use the v1 registry update if you need to change scanners or policy
|
|
30
|
+
* references.
|
|
31
|
+
*
|
|
32
|
+
* Scanner and policy rows are left untouched by either verb. Cleanup policy rows are the one
|
|
33
|
+
* exception to "omitted fields are unchanged", and for `PATCH` which body you send decides it:
|
|
34
|
+
* a patch of `description`, `allowedPattern` or `blockedPattern` alone updates those columns in
|
|
35
|
+
* place and leaves the policy rows alone, while a patch touching `config`, `isPublic` or
|
|
36
|
+
* `opaMetadataValidation` is applied by the v1 full-replacement update, which reconciles the
|
|
37
|
+
* policy table from a body that carries no policies and so deletes every row. `PUT` always
|
|
38
|
+
* takes that path, so it always clears them. A registry that still has cleanup policies
|
|
39
|
+
* therefore loses them on its next `PUT` or settings patch. This is what the v1 update already
|
|
40
|
+
* does with a body that omits the key, so it is not new behaviour, but within `PATCH` it is
|
|
41
|
+
* asymmetric — read `cleanupPolicy` back from the single-registry response if you need to know
|
|
42
|
+
* whether a registry has rows to lose.
|
|
43
|
+
*
|
|
44
|
+
*/
|
|
45
|
+
export interface RegistryMutateBodyV3<T0 extends RegistryConfigV3 = RegistryConfigV3> {
|
|
46
|
+
/**
|
|
47
|
+
* Replaces the allowed-pattern list. Send `[]` to clear it.
|
|
48
|
+
*/
|
|
49
|
+
allowedPattern?: string[];
|
|
50
|
+
/**
|
|
51
|
+
* Replaces the blocked-pattern list. Send `[]` to clear it.
|
|
52
|
+
*/
|
|
53
|
+
blockedPattern?: string[];
|
|
54
|
+
config?: T0;
|
|
55
|
+
/**
|
|
56
|
+
* Replaces the description. Send `""` to clear it.
|
|
57
|
+
*/
|
|
58
|
+
description?: string;
|
|
59
|
+
/**
|
|
60
|
+
* Sets anonymous read access. Rejected when public access is disabled for the account, or when the registry proxies a private upstream.
|
|
61
|
+
*
|
|
62
|
+
*/
|
|
63
|
+
isPublic?: boolean;
|
|
64
|
+
/**
|
|
65
|
+
* Sets whether OPA metadata validation is enforced on this registry.
|
|
66
|
+
*/
|
|
67
|
+
opaMetadataValidation?: boolean;
|
|
68
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|