@harnessio/react-har-service-client 0.96.0 → 0.98.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/useDeletePackageV3Mutation.d.ts +1 -1
- package/dist/har-service/src/services/hooks/useDeletePackageV3Mutation.js +1 -1
- package/dist/har-service/src/services/hooks/useDeleteVersionV3Mutation.d.ts +1 -1
- package/dist/har-service/src/services/hooks/useDeleteVersionV3Mutation.js +1 -1
- package/dist/har-service/src/services/hooks/useGetFileDetailsV3Query.d.ts +22 -0
- package/dist/har-service/src/services/hooks/useGetFileDetailsV3Query.js +15 -0
- package/dist/har-service/src/services/hooks/useGetFileV3Query.d.ts +1 -3
- package/dist/har-service/src/services/hooks/useGetFileV3Query.js +1 -2
- package/dist/har-service/src/services/hooks/useGetTerraformBackendStateV3Query.d.ts +3 -4
- package/dist/har-service/src/services/hooks/useGetTerraformBackendStateV3Query.js +1 -1
- package/dist/har-service/src/services/hooks/useListRegistriesV3Query.d.ts +1 -0
- package/dist/har-service/src/services/hooks/useListSigningKeysV3Query.d.ts +3 -0
- package/dist/har-service/src/services/hooks/useRevertLifecycleExecutionV3Mutation.d.ts +26 -0
- package/dist/har-service/src/services/hooks/useRevertLifecycleExecutionV3Mutation.js +19 -0
- package/dist/har-service/src/services/index.d.ts +9 -5
- package/dist/har-service/src/services/index.js +2 -1
- package/dist/har-service/src/services/responses/FileDetailsResponseV3Response.d.ts +4 -0
- package/dist/har-service/src/services/schemas/BulkDeleteRequestInputV3.d.ts +4 -2
- package/dist/har-service/src/services/schemas/FileDetailsV3.d.ts +7 -0
- package/dist/har-service/src/services/schemas/LifecycleExecutionItemResponseV3.d.ts +5 -0
- package/dist/har-service/src/services/schemas/PackageV3.d.ts +0 -4
- package/dist/har-service/src/services/schemas/Registry.d.ts +4 -0
- package/dist/har-service/src/services/schemas/RegistryRequest.d.ts +4 -0
- package/dist/har-service/src/services/schemas/RegistryV3.d.ts +4 -9
- package/dist/har-service/src/services/schemas/RevertFailureDetailV3.d.ts +9 -0
- package/dist/har-service/src/services/schemas/RevertLifecycleExecutionDataV3.d.ts +34 -0
- package/dist/har-service/src/services/schemas/RevertLifecycleExecutionDataV3.js +1 -0
- package/dist/har-service/src/services/schemas/RevertLifecycleExecutionResponseV3.d.ts +7 -0
- package/dist/har-service/src/services/schemas/RevertLifecycleExecutionResponseV3.js +1 -0
- package/package.json +1 -1
- package/dist/har-service/src/services/hooks/useGetFilePreviewV3Query.d.ts +0 -24
- package/dist/har-service/src/services/hooks/useGetFilePreviewV3Query.js +0 -15
- package/dist/har-service/src/services/responses/FilePreviewResponseV3Response.d.ts +0 -2
- package/dist/har-service/src/services/schemas/FilePreviewDataV3.d.ts +0 -30
- package/dist/har-service/src/services/schemas/FilePreviewResponseBodyV3.d.ts +0 -7
- /package/dist/har-service/src/services/responses/{FilePreviewResponseV3Response.js → FileDetailsResponseV3Response.js} +0 -0
- /package/dist/har-service/src/services/schemas/{FilePreviewResponseBodyV3.js → FileDetailsV3.js} +0 -0
- /package/dist/har-service/src/services/schemas/{FilePreviewDataV3.js → RevertFailureDetailV3.js} +0 -0
|
@@ -16,6 +16,6 @@ export interface DeletePackageV3Props extends DeletePackageV3MutationPathParams,
|
|
|
16
16
|
}
|
|
17
17
|
export declare function deletePackageV3(props: DeletePackageV3Props): Promise<DeletePackageV3OkResponse>;
|
|
18
18
|
/**
|
|
19
|
-
* Delete a package/image
|
|
19
|
+
* Delete a package/image. force=false (soft delete) is not supported for UPSTREAM registries.
|
|
20
20
|
*/
|
|
21
21
|
export declare function useDeletePackageV3Mutation(options?: Omit<UseMutationOptions<DeletePackageV3OkResponse, DeletePackageV3ErrorResponse, DeletePackageV3Props>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<DeletePackageV3OkResponse, ErrorV3, DeletePackageV3Props, unknown>;
|
|
@@ -7,7 +7,7 @@ export function deletePackageV3(props) {
|
|
|
7
7
|
return fetcher(Object.assign({ url: `/v3/packages/${props.id}`, method: 'DELETE' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
* Delete a package/image
|
|
10
|
+
* Delete a package/image. force=false (soft delete) is not supported for UPSTREAM registries.
|
|
11
11
|
*/
|
|
12
12
|
export function useDeletePackageV3Mutation(options) {
|
|
13
13
|
return useMutation((mutateProps) => deletePackageV3(mutateProps), options);
|
|
@@ -16,6 +16,6 @@ export interface DeleteVersionV3Props extends DeleteVersionV3MutationPathParams,
|
|
|
16
16
|
}
|
|
17
17
|
export declare function deleteVersionV3(props: DeleteVersionV3Props): Promise<DeleteVersionV3OkResponse>;
|
|
18
18
|
/**
|
|
19
|
-
* Delete a version (soft
|
|
19
|
+
* Delete a version. force=false (soft delete) is not supported for UPSTREAM registries.
|
|
20
20
|
*/
|
|
21
21
|
export declare function useDeleteVersionV3Mutation(options?: Omit<UseMutationOptions<DeleteVersionV3OkResponse, DeleteVersionV3ErrorResponse, DeleteVersionV3Props>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<DeleteVersionV3OkResponse, ErrorV3, DeleteVersionV3Props, unknown>;
|
|
@@ -7,7 +7,7 @@ export function deleteVersionV3(props) {
|
|
|
7
7
|
return fetcher(Object.assign({ url: `/v3/versions/${props.id}`, method: 'DELETE' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
* Delete a version (soft
|
|
10
|
+
* Delete a version. force=false (soft delete) is not supported for UPSTREAM registries.
|
|
11
11
|
*/
|
|
12
12
|
export function useDeleteVersionV3Mutation(options) {
|
|
13
13
|
return useMutation((mutateProps) => deleteVersionV3(mutateProps), options);
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { FileDetailsResponseV3Response } from '../responses/FileDetailsResponseV3Response';
|
|
3
|
+
import type { ErrorV3 } from '../schemas/ErrorV3';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface GetFileDetailsV3QueryPathParams {
|
|
7
|
+
id: string;
|
|
8
|
+
}
|
|
9
|
+
export interface GetFileDetailsV3QueryQueryParams {
|
|
10
|
+
account_identifier: string;
|
|
11
|
+
}
|
|
12
|
+
export type GetFileDetailsV3OkResponse = ResponseWithPagination<FileDetailsResponseV3Response>;
|
|
13
|
+
export type GetFileDetailsV3ErrorResponse = ErrorV3;
|
|
14
|
+
export interface GetFileDetailsV3Props extends GetFileDetailsV3QueryPathParams, Omit<FetcherOptions<GetFileDetailsV3QueryQueryParams, unknown>, 'url'> {
|
|
15
|
+
queryParams: GetFileDetailsV3QueryQueryParams;
|
|
16
|
+
}
|
|
17
|
+
export declare function getFileDetailsV3(props: GetFileDetailsV3Props): Promise<GetFileDetailsV3OkResponse>;
|
|
18
|
+
/**
|
|
19
|
+
* Retrieves details for a single file by its id, including its downloadUrl (GET /files/{id}/content) and Content-Type. Following downloadUrl applies Content-Type and either inline preview or an attachment download.
|
|
20
|
+
*
|
|
21
|
+
*/
|
|
22
|
+
export declare function useGetFileDetailsV3Query(props: GetFileDetailsV3Props, options?: Omit<UseQueryOptions<GetFileDetailsV3OkResponse, GetFileDetailsV3ErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetFileDetailsV3OkResponse, ErrorV3>;
|
|
@@ -0,0 +1,15 @@
|
|
|
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 getFileDetailsV3(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v3/files/${props.id}`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Retrieves details for a single file by its id, including its downloadUrl (GET /files/{id}/content) and Content-Type. Following downloadUrl applies Content-Type and either inline preview or an attachment download.
|
|
11
|
+
*
|
|
12
|
+
*/
|
|
13
|
+
export function useGetFileDetailsV3Query(props, options) {
|
|
14
|
+
return useQuery(['GetFileDetailsV3', props.id, props.queryParams], ({ signal }) => getFileDetailsV3(Object.assign(Object.assign({}, props), { signal })), options);
|
|
15
|
+
}
|
|
@@ -9,7 +9,6 @@ export interface GetFileV3QueryPathParams {
|
|
|
9
9
|
}
|
|
10
10
|
export interface GetFileV3QueryQueryParams {
|
|
11
11
|
account_identifier: string;
|
|
12
|
-
preview?: boolean;
|
|
13
12
|
}
|
|
14
13
|
export type GetFileV3OkResponse = ResponseWithPagination<DownloadFileResponseV3Response>;
|
|
15
14
|
export type GetFileV3ErrorResponse = RedirectV3Response | ErrorV3;
|
|
@@ -18,7 +17,6 @@ export interface GetFileV3Props extends GetFileV3QueryPathParams, Omit<FetcherOp
|
|
|
18
17
|
}
|
|
19
18
|
export declare function getFileV3(props: GetFileV3Props): Promise<GetFileV3OkResponse>;
|
|
20
19
|
/**
|
|
21
|
-
* Download a file using its id.
|
|
22
|
-
*
|
|
20
|
+
* Download a file using its id.
|
|
23
21
|
*/
|
|
24
22
|
export declare function useGetFileV3Query(props: GetFileV3Props, options?: Omit<UseQueryOptions<GetFileV3OkResponse, GetFileV3ErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetFileV3OkResponse, unknown>;
|
|
@@ -7,8 +7,7 @@ export function getFileV3(props) {
|
|
|
7
7
|
return fetcher(Object.assign({ url: `/v3/files/${props.id}/content`, method: 'GET' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
* Download a file using its id.
|
|
11
|
-
*
|
|
10
|
+
* Download a file using its id.
|
|
12
11
|
*/
|
|
13
12
|
export function useGetFileV3Query(props, options) {
|
|
14
13
|
return useQuery(['GetFileV3', props.id, props.queryParams], ({ signal }) => getFileV3(Object.assign(Object.assign({}, props), { signal })), options);
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
2
|
import type { TerraformBackendStateResponseV3Response } from '../responses/TerraformBackendStateResponseV3Response';
|
|
3
|
-
import type { RedirectV3Response } from '../responses/RedirectV3Response';
|
|
4
3
|
import type { ErrorV3 } from '../schemas/ErrorV3';
|
|
5
4
|
import type { ResponseWithPagination } from '../helpers';
|
|
6
5
|
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
@@ -11,13 +10,13 @@ export interface GetTerraformBackendStateV3QueryQueryParams {
|
|
|
11
10
|
account_identifier: string;
|
|
12
11
|
}
|
|
13
12
|
export type GetTerraformBackendStateV3OkResponse = ResponseWithPagination<TerraformBackendStateResponseV3Response>;
|
|
14
|
-
export type GetTerraformBackendStateV3ErrorResponse =
|
|
13
|
+
export type GetTerraformBackendStateV3ErrorResponse = ErrorV3;
|
|
15
14
|
export interface GetTerraformBackendStateV3Props extends GetTerraformBackendStateV3QueryPathParams, Omit<FetcherOptions<GetTerraformBackendStateV3QueryQueryParams, unknown>, 'url'> {
|
|
16
15
|
queryParams: GetTerraformBackendStateV3QueryQueryParams;
|
|
17
16
|
}
|
|
18
17
|
export declare function getTerraformBackendStateV3(props: GetTerraformBackendStateV3Props): Promise<GetTerraformBackendStateV3OkResponse>;
|
|
19
18
|
/**
|
|
20
|
-
* Returns the raw Terraform state (JSON) captured at a specific version of a Terraform Backend workspace. Resolves the version id to its serial and streams the state file stored at that serial, enabling a version to be diffed against an earlier one.
|
|
19
|
+
* Returns the raw Terraform state (JSON) captured at a specific version of a Terraform Backend workspace. Resolves the version id to its serial and streams the state file stored at that serial, enabling a version to be diffed against an earlier one. The state bytes are always streamed through this service, including when the content is stored remotely, so that browser clients can read the response directly.
|
|
21
20
|
*
|
|
22
21
|
*/
|
|
23
|
-
export declare function useGetTerraformBackendStateV3Query(props: GetTerraformBackendStateV3Props, options?: Omit<UseQueryOptions<GetTerraformBackendStateV3OkResponse, GetTerraformBackendStateV3ErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetTerraformBackendStateV3OkResponse,
|
|
22
|
+
export declare function useGetTerraformBackendStateV3Query(props: GetTerraformBackendStateV3Props, options?: Omit<UseQueryOptions<GetTerraformBackendStateV3OkResponse, GetTerraformBackendStateV3ErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetTerraformBackendStateV3OkResponse, ErrorV3>;
|
|
@@ -7,7 +7,7 @@ export function getTerraformBackendStateV3(props) {
|
|
|
7
7
|
return fetcher(Object.assign({ url: `/v3/versions/${props.id}/terraform-backend/state`, method: 'GET' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
* Returns the raw Terraform state (JSON) captured at a specific version of a Terraform Backend workspace. Resolves the version id to its serial and streams the state file stored at that serial, enabling a version to be diffed against an earlier one.
|
|
10
|
+
* Returns the raw Terraform state (JSON) captured at a specific version of a Terraform Backend workspace. Resolves the version id to its serial and streams the state file stored at that serial, enabling a version to be diffed against an earlier one. The state bytes are always streamed through this service, including when the content is stored remotely, so that browser clients can read the response directly.
|
|
11
11
|
*
|
|
12
12
|
*/
|
|
13
13
|
export function useGetTerraformBackendStateV3Query(props, options) {
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { RevertLifecycleExecutionResponseV3 } from '../schemas/RevertLifecycleExecutionResponseV3';
|
|
3
|
+
import type { ErrorV3 } from '../schemas/ErrorV3';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface RevertLifecycleExecutionV3MutationPathParams {
|
|
7
|
+
executionId: string;
|
|
8
|
+
}
|
|
9
|
+
export interface RevertLifecycleExecutionV3MutationQueryParams {
|
|
10
|
+
account_identifier: string;
|
|
11
|
+
}
|
|
12
|
+
export type RevertLifecycleExecutionV3OkResponse = ResponseWithPagination<RevertLifecycleExecutionResponseV3>;
|
|
13
|
+
export type RevertLifecycleExecutionV3ErrorResponse = ErrorV3;
|
|
14
|
+
export interface RevertLifecycleExecutionV3Props extends RevertLifecycleExecutionV3MutationPathParams, Omit<FetcherOptions<RevertLifecycleExecutionV3MutationQueryParams, unknown>, 'url'> {
|
|
15
|
+
queryParams: RevertLifecycleExecutionV3MutationQueryParams;
|
|
16
|
+
}
|
|
17
|
+
export declare function revertLifecycleExecutionV3(props: RevertLifecycleExecutionV3Props): Promise<RevertLifecycleExecutionV3OkResponse>;
|
|
18
|
+
/**
|
|
19
|
+
* Reverts (restores) all artifacts that were soft-deleted by a specific lifecycle
|
|
20
|
+
* execution. Only artifacts with outcome "DELETED" are restored. Artifacts that were
|
|
21
|
+
* already hard-deleted or have been modified since the execution cannot be restored.
|
|
22
|
+
* Returns a summary of the revert operation including counts of successfully restored
|
|
23
|
+
* and failed artifacts.
|
|
24
|
+
*
|
|
25
|
+
*/
|
|
26
|
+
export declare function useRevertLifecycleExecutionV3Mutation(options?: Omit<UseMutationOptions<RevertLifecycleExecutionV3OkResponse, RevertLifecycleExecutionV3ErrorResponse, RevertLifecycleExecutionV3Props>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<RevertLifecycleExecutionV3OkResponse, ErrorV3, RevertLifecycleExecutionV3Props, unknown>;
|
|
@@ -0,0 +1,19 @@
|
|
|
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 revertLifecycleExecutionV3(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v3/lifecycle/executions/${props.executionId}/revert`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Reverts (restores) all artifacts that were soft-deleted by a specific lifecycle
|
|
11
|
+
* execution. Only artifacts with outcome "DELETED" are restored. Artifacts that were
|
|
12
|
+
* already hard-deleted or have been modified since the execution cannot be restored.
|
|
13
|
+
* Returns a summary of the revert operation including counts of successfully restored
|
|
14
|
+
* and failed artifacts.
|
|
15
|
+
*
|
|
16
|
+
*/
|
|
17
|
+
export function useRevertLifecycleExecutionV3Mutation(options) {
|
|
18
|
+
return useMutation((mutateProps) => revertLifecycleExecutionV3(mutateProps), options);
|
|
19
|
+
}
|
|
@@ -133,10 +133,10 @@ export type { GetDockerArtifactManifestErrorResponse, GetDockerArtifactManifestO
|
|
|
133
133
|
export { getDockerArtifactManifest, useGetDockerArtifactManifestQuery, } from './hooks/useGetDockerArtifactManifestQuery';
|
|
134
134
|
export type { GetDockerArtifactManifestsErrorResponse, GetDockerArtifactManifestsOkResponse, GetDockerArtifactManifestsProps, GetDockerArtifactManifestsQueryPathParams, GetDockerArtifactManifestsQueryQueryParams, } from './hooks/useGetDockerArtifactManifestsQuery';
|
|
135
135
|
export { getDockerArtifactManifests, useGetDockerArtifactManifestsQuery, } from './hooks/useGetDockerArtifactManifestsQuery';
|
|
136
|
+
export type { GetFileDetailsV3ErrorResponse, GetFileDetailsV3OkResponse, GetFileDetailsV3Props, GetFileDetailsV3QueryPathParams, GetFileDetailsV3QueryQueryParams, } from './hooks/useGetFileDetailsV3Query';
|
|
137
|
+
export { getFileDetailsV3, useGetFileDetailsV3Query } from './hooks/useGetFileDetailsV3Query';
|
|
136
138
|
export type { GetFileMetadataV3ErrorResponse, GetFileMetadataV3OkResponse, GetFileMetadataV3Props, GetFileMetadataV3QueryPathParams, GetFileMetadataV3QueryQueryParams, } from './hooks/useGetFileMetadataV3Query';
|
|
137
139
|
export { getFileMetadataV3, useGetFileMetadataV3Query } from './hooks/useGetFileMetadataV3Query';
|
|
138
|
-
export type { GetFilePreviewV3ErrorResponse, GetFilePreviewV3OkResponse, GetFilePreviewV3Props, GetFilePreviewV3QueryPathParams, GetFilePreviewV3QueryQueryParams, } from './hooks/useGetFilePreviewV3Query';
|
|
139
|
-
export { getFilePreviewV3, useGetFilePreviewV3Query } from './hooks/useGetFilePreviewV3Query';
|
|
140
140
|
export type { GetFileErrorResponse, GetFileOkResponse, GetFileProps, GetFileQueryPathParams, GetFileQueryQueryParams, } from './hooks/useGetFileQuery';
|
|
141
141
|
export { getFile, useGetFileQuery } from './hooks/useGetFileQuery';
|
|
142
142
|
export type { GetFileV3ErrorResponse, GetFileV3OkResponse, GetFileV3Props, GetFileV3QueryPathParams, GetFileV3QueryQueryParams, } from './hooks/useGetFileV3Query';
|
|
@@ -299,6 +299,8 @@ export type { RestoreRegistryV3ErrorResponse, RestoreRegistryV3MutationPathParam
|
|
|
299
299
|
export { restoreRegistryV3, useRestoreRegistryV3Mutation, } from './hooks/useRestoreRegistryV3Mutation';
|
|
300
300
|
export type { RestoreVersionV3ErrorResponse, RestoreVersionV3MutationPathParams, RestoreVersionV3MutationQueryParams, RestoreVersionV3OkResponse, RestoreVersionV3Props, } from './hooks/useRestoreVersionV3Mutation';
|
|
301
301
|
export { restoreVersionV3, useRestoreVersionV3Mutation } from './hooks/useRestoreVersionV3Mutation';
|
|
302
|
+
export type { RevertLifecycleExecutionV3ErrorResponse, RevertLifecycleExecutionV3MutationPathParams, RevertLifecycleExecutionV3MutationQueryParams, RevertLifecycleExecutionV3OkResponse, RevertLifecycleExecutionV3Props, } from './hooks/useRevertLifecycleExecutionV3Mutation';
|
|
303
|
+
export { revertLifecycleExecutionV3, useRevertLifecycleExecutionV3Mutation, } from './hooks/useRevertLifecycleExecutionV3Mutation';
|
|
302
304
|
export type { RollbackTerraformBackendV3ErrorResponse, RollbackTerraformBackendV3MutationPathParams, RollbackTerraformBackendV3MutationQueryParams, RollbackTerraformBackendV3OkResponse, RollbackTerraformBackendV3Props, } from './hooks/useRollbackTerraformBackendV3Mutation';
|
|
303
305
|
export { rollbackTerraformBackendV3, useRollbackTerraformBackendV3Mutation, } from './hooks/useRollbackTerraformBackendV3Mutation';
|
|
304
306
|
export type { SaveFileMetadataV3ErrorResponse, SaveFileMetadataV3MutationPathParams, SaveFileMetadataV3MutationQueryParams, SaveFileMetadataV3OkResponse, SaveFileMetadataV3Props, SaveFileMetadataV3RequestBody, } from './hooks/useSaveFileMetadataV3Mutation';
|
|
@@ -412,7 +414,7 @@ export type { DockerManifestsResponseResponse } from './responses/DockerManifest
|
|
|
412
414
|
export type { DownloadFileResponseResponse } from './responses/DownloadFileResponseResponse';
|
|
413
415
|
export type { DownloadFileResponseV3Response } from './responses/DownloadFileResponseV3Response';
|
|
414
416
|
export type { FileDetailResponseResponse } from './responses/FileDetailResponseResponse';
|
|
415
|
-
export type {
|
|
417
|
+
export type { FileDetailsResponseV3Response } from './responses/FileDetailsResponseV3Response';
|
|
416
418
|
export type { FirewallExceptionApprovedV3Response } from './responses/FirewallExceptionApprovedV3Response';
|
|
417
419
|
export type { FirewallExceptionCreatedV3Response } from './responses/FirewallExceptionCreatedV3Response';
|
|
418
420
|
export type { FirewallExceptionUpdatedV3Response } from './responses/FirewallExceptionUpdatedV3Response';
|
|
@@ -580,10 +582,9 @@ export type { ErrorV3 } from './schemas/ErrorV3';
|
|
|
580
582
|
export type { ExemptionStatusV3 } from './schemas/ExemptionStatusV3';
|
|
581
583
|
export type { ExtraHeader } from './schemas/ExtraHeader';
|
|
582
584
|
export type { FileDetail } from './schemas/FileDetail';
|
|
585
|
+
export type { FileDetailsV3 } from './schemas/FileDetailsV3';
|
|
583
586
|
export type { FileMetadata } from './schemas/FileMetadata';
|
|
584
587
|
export type { FileMetadataV3 } from './schemas/FileMetadataV3';
|
|
585
|
-
export type { FilePreviewDataV3 } from './schemas/FilePreviewDataV3';
|
|
586
|
-
export type { FilePreviewResponseBodyV3 } from './schemas/FilePreviewResponseBodyV3';
|
|
587
588
|
export type { FilterConditionV3 } from './schemas/FilterConditionV3';
|
|
588
589
|
export type { FilterDataTypeV3 } from './schemas/FilterDataTypeV3';
|
|
589
590
|
export type { FilterDefinitionV3 } from './schemas/FilterDefinitionV3';
|
|
@@ -736,6 +737,9 @@ export type { ReplicationRegistry } from './schemas/ReplicationRegistry';
|
|
|
736
737
|
export type { ReplicationRule } from './schemas/ReplicationRule';
|
|
737
738
|
export type { ReplicationRuleRequest } from './schemas/ReplicationRuleRequest';
|
|
738
739
|
export type { ResourceMetadataV3 } from './schemas/ResourceMetadataV3';
|
|
740
|
+
export type { RevertFailureDetailV3 } from './schemas/RevertFailureDetailV3';
|
|
741
|
+
export type { RevertLifecycleExecutionDataV3 } from './schemas/RevertLifecycleExecutionDataV3';
|
|
742
|
+
export type { RevertLifecycleExecutionResponseV3 } from './schemas/RevertLifecycleExecutionResponseV3';
|
|
739
743
|
export type { RootPackageV3 } from './schemas/RootPackageV3';
|
|
740
744
|
export type { RpmArtifactDetailConfig } from './schemas/RpmArtifactDetailConfig';
|
|
741
745
|
export type { RubyArtifactDetailConfig } from './schemas/RubyArtifactDetailConfig';
|
|
@@ -65,8 +65,8 @@ export { getDockerArtifactIntegrationDetails, useGetDockerArtifactIntegrationDet
|
|
|
65
65
|
export { getDockerArtifactLayers, useGetDockerArtifactLayersQuery, } from './hooks/useGetDockerArtifactLayersQuery';
|
|
66
66
|
export { getDockerArtifactManifest, useGetDockerArtifactManifestQuery, } from './hooks/useGetDockerArtifactManifestQuery';
|
|
67
67
|
export { getDockerArtifactManifests, useGetDockerArtifactManifestsQuery, } from './hooks/useGetDockerArtifactManifestsQuery';
|
|
68
|
+
export { getFileDetailsV3, useGetFileDetailsV3Query } from './hooks/useGetFileDetailsV3Query';
|
|
68
69
|
export { getFileMetadataV3, useGetFileMetadataV3Query } from './hooks/useGetFileMetadataV3Query';
|
|
69
|
-
export { getFilePreviewV3, useGetFilePreviewV3Query } from './hooks/useGetFilePreviewV3Query';
|
|
70
70
|
export { getFile, useGetFileQuery } from './hooks/useGetFileQuery';
|
|
71
71
|
export { getFileV3, useGetFileV3Query } from './hooks/useGetFileV3Query';
|
|
72
72
|
export { getHelmArtifactDetails, useGetHelmArtifactDetailsQuery, } from './hooks/useGetHelmArtifactDetailsQuery';
|
|
@@ -148,6 +148,7 @@ export { redirectHarnessArtifact, useRedirectHarnessArtifactQuery, } from './hoo
|
|
|
148
148
|
export { restorePackageV3, useRestorePackageV3Mutation } from './hooks/useRestorePackageV3Mutation';
|
|
149
149
|
export { restoreRegistryV3, useRestoreRegistryV3Mutation, } from './hooks/useRestoreRegistryV3Mutation';
|
|
150
150
|
export { restoreVersionV3, useRestoreVersionV3Mutation } from './hooks/useRestoreVersionV3Mutation';
|
|
151
|
+
export { revertLifecycleExecutionV3, useRevertLifecycleExecutionV3Mutation, } from './hooks/useRevertLifecycleExecutionV3Mutation';
|
|
151
152
|
export { rollbackTerraformBackendV3, useRollbackTerraformBackendV3Mutation, } from './hooks/useRollbackTerraformBackendV3Mutation';
|
|
152
153
|
export { saveFileMetadataV3, useSaveFileMetadataV3Mutation, } from './hooks/useSaveFileMetadataV3Mutation';
|
|
153
154
|
export { saveMetadata, useSaveMetadataMutation } from './hooks/useSaveMetadataMutation';
|
|
@@ -4,11 +4,13 @@
|
|
|
4
4
|
*/
|
|
5
5
|
export interface BulkDeleteRequestInputV3 {
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* When `true` (default), only lists the packages/versions that would be deleted, for any value of `force`. Set to `false` to perform the delete.
|
|
8
|
+
*
|
|
8
9
|
*/
|
|
9
10
|
dryRun?: boolean;
|
|
10
11
|
/**
|
|
11
|
-
*
|
|
12
|
+
* When `true`, matching packages/versions are permanently deleted (hard delete). When `false` (default), they are soft-deleted. Nothing is deleted while `dryRun` is `true`. Soft delete is not supported for UPSTREAM registries: any request with `force=false`, including a dry run, returns 400, so use `force=true` for them.
|
|
13
|
+
*
|
|
12
14
|
*/
|
|
13
15
|
force?: boolean;
|
|
14
16
|
/**
|
|
@@ -23,5 +23,10 @@ export interface LifecycleExecutionItemResponseV3 {
|
|
|
23
23
|
size?: string;
|
|
24
24
|
status: LifecycleExecutionItemStatusV3;
|
|
25
25
|
version: string;
|
|
26
|
+
/**
|
|
27
|
+
* Epoch milliseconds when the artifact version was created.
|
|
28
|
+
* @format int64
|
|
29
|
+
*/
|
|
30
|
+
versionCreatedAt?: number;
|
|
26
31
|
versionId?: string;
|
|
27
32
|
}
|
|
@@ -17,6 +17,10 @@ export interface Registry<T0 extends RegistryConfig = RegistryConfig> {
|
|
|
17
17
|
deletedAt?: string;
|
|
18
18
|
description?: string;
|
|
19
19
|
identifier: string;
|
|
20
|
+
/**
|
|
21
|
+
* Indicates that the registry is system-managed.
|
|
22
|
+
*/
|
|
23
|
+
isInternal?: boolean;
|
|
20
24
|
isPublic: boolean;
|
|
21
25
|
labels?: string[];
|
|
22
26
|
modifiedAt?: string;
|
|
@@ -9,6 +9,10 @@ export interface RegistryRequest<T0 extends RegistryConfig = RegistryConfig> {
|
|
|
9
9
|
config?: T0;
|
|
10
10
|
description?: string;
|
|
11
11
|
identifier: string;
|
|
12
|
+
/**
|
|
13
|
+
* Marks a registry as internal (system-managed).
|
|
14
|
+
*/
|
|
15
|
+
isInternal?: boolean;
|
|
12
16
|
isPublic: boolean;
|
|
13
17
|
labels?: string[];
|
|
14
18
|
opaMetadataValidation?: boolean;
|
|
@@ -12,28 +12,23 @@ export interface RegistryV3 {
|
|
|
12
12
|
deletedAt?: DeletedAtMsV3;
|
|
13
13
|
deletedBy?: UserInfoV3;
|
|
14
14
|
description?: string;
|
|
15
|
-
/**
|
|
16
|
-
* @format int64
|
|
17
|
-
*/
|
|
18
|
-
downloadCount?: number;
|
|
19
15
|
/**
|
|
20
16
|
* @format uuid
|
|
21
17
|
*/
|
|
22
18
|
id: string;
|
|
19
|
+
/**
|
|
20
|
+
* Indicates that the registry is internal (system-managed).
|
|
21
|
+
*/
|
|
22
|
+
isInternal?: boolean;
|
|
23
23
|
isPublic: boolean;
|
|
24
24
|
modifiedAt?: ModifiedAtMsV3;
|
|
25
25
|
modifiedBy?: UserInfoV3;
|
|
26
26
|
name: string;
|
|
27
27
|
opaMetadataValidation?: boolean;
|
|
28
28
|
orgIdentifier?: OrgIdentifier;
|
|
29
|
-
/**
|
|
30
|
-
* @format int64
|
|
31
|
-
*/
|
|
32
|
-
packageCount?: number;
|
|
33
29
|
packageType: PackageTypeV3;
|
|
34
30
|
path?: string;
|
|
35
31
|
projectIdentifier?: ProjectIdentifier;
|
|
36
|
-
size?: string;
|
|
37
32
|
type: RegistryTypeV3;
|
|
38
33
|
url: string;
|
|
39
34
|
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { RevertFailureDetailV3 } from '../schemas/RevertFailureDetailV3';
|
|
2
|
+
/**
|
|
3
|
+
* Details of the revert operation result.
|
|
4
|
+
*/
|
|
5
|
+
export interface RevertLifecycleExecutionDataV3 {
|
|
6
|
+
/**
|
|
7
|
+
* The execution ID that was reverted.
|
|
8
|
+
*/
|
|
9
|
+
executionId: string;
|
|
10
|
+
/**
|
|
11
|
+
* Number of artifacts that failed to restore.
|
|
12
|
+
* @format int64
|
|
13
|
+
*/
|
|
14
|
+
failedCount: number;
|
|
15
|
+
/**
|
|
16
|
+
* Details of failed restorations (limited to first 100).
|
|
17
|
+
*/
|
|
18
|
+
failures?: RevertFailureDetailV3[];
|
|
19
|
+
/**
|
|
20
|
+
* Number of artifacts successfully restored.
|
|
21
|
+
* @format int64
|
|
22
|
+
*/
|
|
23
|
+
restoredCount: number;
|
|
24
|
+
/**
|
|
25
|
+
* Number of artifacts skipped (e.g., already restored or hard-deleted).
|
|
26
|
+
* @format int64
|
|
27
|
+
*/
|
|
28
|
+
skippedCount: number;
|
|
29
|
+
/**
|
|
30
|
+
* Total number of items with DELETED outcome in the execution.
|
|
31
|
+
* @format int64
|
|
32
|
+
*/
|
|
33
|
+
totalDeletedItems: number;
|
|
34
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { RevertLifecycleExecutionDataV3 } from '../schemas/RevertLifecycleExecutionDataV3';
|
|
2
|
+
/**
|
|
3
|
+
* Summary of the revert operation for a lifecycle execution.
|
|
4
|
+
*/
|
|
5
|
+
export interface RevertLifecycleExecutionResponseV3 {
|
|
6
|
+
data: RevertLifecycleExecutionDataV3;
|
|
7
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
-
import type { FilePreviewResponseV3Response } from '../responses/FilePreviewResponseV3Response';
|
|
3
|
-
import type { ErrorV3 } from '../schemas/ErrorV3';
|
|
4
|
-
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
-
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
-
export interface GetFilePreviewV3QueryPathParams {
|
|
7
|
-
id: string;
|
|
8
|
-
}
|
|
9
|
-
export interface GetFilePreviewV3QueryQueryParams {
|
|
10
|
-
account_identifier: string;
|
|
11
|
-
org_identifier?: string;
|
|
12
|
-
project_identifier?: string;
|
|
13
|
-
}
|
|
14
|
-
export type GetFilePreviewV3OkResponse = ResponseWithPagination<FilePreviewResponseV3Response>;
|
|
15
|
-
export type GetFilePreviewV3ErrorResponse = ErrorV3;
|
|
16
|
-
export interface GetFilePreviewV3Props extends GetFilePreviewV3QueryPathParams, Omit<FetcherOptions<GetFilePreviewV3QueryQueryParams, unknown>, 'url'> {
|
|
17
|
-
queryParams: GetFilePreviewV3QueryQueryParams;
|
|
18
|
-
}
|
|
19
|
-
export declare function getFilePreviewV3(props: GetFilePreviewV3Props): Promise<GetFilePreviewV3OkResponse>;
|
|
20
|
-
/**
|
|
21
|
-
* Returns a URL for rendering a file inline in the browser. For cloud (S3/GCS) deployments the URL is a presigned URL with inline Content-Disposition and a forced Content-Type baked in, expiring after 20 minutes. For filesystem deployments the URL routes back through the protocol API with preview=true and relies on the caller's session. The endpoint enforces the preview allowlist and a configured maximum size before returning a URL.
|
|
22
|
-
*
|
|
23
|
-
*/
|
|
24
|
-
export declare function useGetFilePreviewV3Query(props: GetFilePreviewV3Props, options?: Omit<UseQueryOptions<GetFilePreviewV3OkResponse, GetFilePreviewV3ErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetFilePreviewV3OkResponse, ErrorV3>;
|
|
@@ -1,15 +0,0 @@
|
|
|
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 getFilePreviewV3(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/v3/files/${props.id}/preview`, method: 'GET' }, props));
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Returns a URL for rendering a file inline in the browser. For cloud (S3/GCS) deployments the URL is a presigned URL with inline Content-Disposition and a forced Content-Type baked in, expiring after 20 minutes. For filesystem deployments the URL routes back through the protocol API with preview=true and relies on the caller's session. The endpoint enforces the preview allowlist and a configured maximum size before returning a URL.
|
|
11
|
-
*
|
|
12
|
-
*/
|
|
13
|
-
export function useGetFilePreviewV3Query(props, options) {
|
|
14
|
-
return useQuery(['GetFilePreviewV3', props.id, props.queryParams], ({ signal }) => getFilePreviewV3(Object.assign(Object.assign({}, props), { signal })), options);
|
|
15
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Inline preview details for a file.
|
|
3
|
-
*/
|
|
4
|
-
export interface FilePreviewDataV3 {
|
|
5
|
-
/**
|
|
6
|
-
* Content-Type the file will be served with for preview. HTML and SVG are forced to text/plain to mitigate stored XSS.
|
|
7
|
-
*
|
|
8
|
-
*/
|
|
9
|
-
contentType: string;
|
|
10
|
-
/**
|
|
11
|
-
* When the preview URL expires (Unix ms). Set for cloud presigned URLs (now + 20m); null for filesystem deployments whose URL does not expire.
|
|
12
|
-
*
|
|
13
|
-
* @format int64
|
|
14
|
-
*/
|
|
15
|
-
expiresAt?: number | null;
|
|
16
|
-
/**
|
|
17
|
-
* File name (leaf of the node path).
|
|
18
|
-
*/
|
|
19
|
-
fileName: string;
|
|
20
|
-
/**
|
|
21
|
-
* URL the browser can open to render the file inline. A presigned URL for cloud deployments, or a protocol-API URL with preview=true for filesystem deployments.
|
|
22
|
-
*
|
|
23
|
-
*/
|
|
24
|
-
previewUrl: string;
|
|
25
|
-
/**
|
|
26
|
-
* File size in bytes.
|
|
27
|
-
* @format int64
|
|
28
|
-
*/
|
|
29
|
-
size: number;
|
|
30
|
-
}
|
|
File without changes
|
/package/dist/har-service/src/services/schemas/{FilePreviewResponseBodyV3.js → FileDetailsV3.js}
RENAMED
|
File without changes
|
/package/dist/har-service/src/services/schemas/{FilePreviewDataV3.js → RevertFailureDetailV3.js}
RENAMED
|
File without changes
|