@harnessio/react-har-service-client 0.87.0 → 0.89.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/useDeleteSigningKeyV3Mutation.d.ts +28 -0
- package/dist/har-service/src/services/hooks/useDeleteSigningKeyV3Mutation.js +17 -0
- package/dist/har-service/src/services/hooks/useGenerateSigningKeyV3Mutation.d.ts +27 -0
- package/dist/har-service/src/services/hooks/useGenerateSigningKeyV3Mutation.js +16 -0
- package/dist/har-service/src/services/hooks/useGetRegistryPublicKeyV3Query.d.ts +22 -0
- package/dist/har-service/src/services/hooks/useGetRegistryPublicKeyV3Query.js +17 -0
- package/dist/har-service/src/services/hooks/useGetSigningKeyPublicKeyV3Query.d.ts +28 -0
- package/dist/har-service/src/services/hooks/useGetSigningKeyPublicKeyV3Query.js +17 -0
- package/dist/har-service/src/services/hooks/useGetSigningKeyV3Query.d.ts +28 -0
- package/dist/har-service/src/services/hooks/useGetSigningKeyV3Query.js +14 -0
- package/dist/har-service/src/services/hooks/useImportSigningKeyV3Mutation.d.ts +28 -0
- package/dist/har-service/src/services/hooks/useImportSigningKeyV3Mutation.js +17 -0
- package/dist/har-service/src/services/hooks/useListSigningKeysV3Query.d.ts +34 -0
- package/dist/har-service/src/services/hooks/useListSigningKeysV3Query.js +16 -0
- package/dist/har-service/src/services/hooks/useRebuildPackageIndexV3Mutation.d.ts +21 -0
- package/dist/har-service/src/services/hooks/useRebuildPackageIndexV3Mutation.js +14 -0
- package/dist/har-service/src/services/hooks/useUpdateSigningKeyV3Mutation.d.ts +33 -0
- package/dist/har-service/src/services/hooks/useUpdateSigningKeyV3Mutation.js +16 -0
- package/dist/har-service/src/services/index.d.ts +28 -0
- package/dist/har-service/src/services/index.js +9 -0
- package/dist/har-service/src/services/responses/RebuildPackageIndexAcceptedV3Response.d.ts +1 -0
- package/dist/har-service/src/services/responses/RebuildPackageIndexAcceptedV3Response.js +1 -0
- package/dist/har-service/src/services/schemas/AlpineArtifactDetailConfig.d.ts +8 -0
- package/dist/har-service/src/services/schemas/AlpineArtifactDetailConfig.js +4 -0
- package/dist/har-service/src/services/schemas/ArtifactDetail.d.ts +3 -1
- package/dist/har-service/src/services/schemas/GenerateKeyRequestV3.d.ts +36 -0
- package/dist/har-service/src/services/schemas/GenerateKeyRequestV3.js +4 -0
- package/dist/har-service/src/services/schemas/ImportKeyRequestV3.d.ts +42 -0
- package/dist/har-service/src/services/schemas/ImportKeyRequestV3.js +4 -0
- package/dist/har-service/src/services/schemas/ListSigningKeysResponseV3.d.ts +5 -0
- package/dist/har-service/src/services/schemas/ListSigningKeysResponseV3.js +1 -0
- package/dist/har-service/src/services/schemas/RebuildPackageIndexRequestV3.d.ts +9 -0
- package/dist/har-service/src/services/schemas/RebuildPackageIndexRequestV3.js +4 -0
- package/dist/har-service/src/services/schemas/RegistryV3.d.ts +0 -4
- package/dist/har-service/src/services/schemas/SigningConfig.d.ts +14 -0
- package/dist/har-service/src/services/schemas/SigningConfig.js +4 -0
- package/dist/har-service/src/services/schemas/SigningKeyV3.d.ts +59 -0
- package/dist/har-service/src/services/schemas/SigningKeyV3.js +1 -0
- package/dist/har-service/src/services/schemas/UpdateKeyRequestV3.d.ts +13 -0
- package/dist/har-service/src/services/schemas/UpdateKeyRequestV3.js +4 -0
- package/dist/har-service/src/services/schemas/UpstreamConfig.d.ts +6 -0
- package/dist/har-service/src/services/schemas/VersionStatsV3.d.ts +3 -0
- package/dist/har-service/src/services/schemas/VirtualConfig.d.ts +2 -0
- package/dist/har-service/src/services/schemas/WolfiArtifactDetailConfig.d.ts +8 -0
- package/dist/har-service/src/services/schemas/WolfiArtifactDetailConfig.js +4 -0
- package/package.json +1 -1
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ErrorV3 } from '../schemas/ErrorV3';
|
|
3
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
+
export interface DeleteSigningKeyV3MutationPathParams {
|
|
6
|
+
/**
|
|
7
|
+
* @format uuid
|
|
8
|
+
*/
|
|
9
|
+
id: string;
|
|
10
|
+
}
|
|
11
|
+
export interface DeleteSigningKeyV3MutationQueryParams {
|
|
12
|
+
account_identifier: string;
|
|
13
|
+
org_identifier?: string;
|
|
14
|
+
project_identifier?: string;
|
|
15
|
+
}
|
|
16
|
+
export type DeleteSigningKeyV3OkResponse = ResponseWithPagination<unknown>;
|
|
17
|
+
export type DeleteSigningKeyV3ErrorResponse = ErrorV3;
|
|
18
|
+
export interface DeleteSigningKeyV3Props extends DeleteSigningKeyV3MutationPathParams, Omit<FetcherOptions<DeleteSigningKeyV3MutationQueryParams, unknown>, 'url'> {
|
|
19
|
+
queryParams: DeleteSigningKeyV3MutationQueryParams;
|
|
20
|
+
}
|
|
21
|
+
export declare function deleteSigningKeyV3(props: DeleteSigningKeyV3Props): Promise<DeleteSigningKeyV3OkResponse>;
|
|
22
|
+
/**
|
|
23
|
+
* Soft-deletes a signing key by marking it as DELETED. The key metadata is retained
|
|
24
|
+
* for audit purposes. If the key is attached to any registries, signing will be
|
|
25
|
+
* automatically disabled on those registries.
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
export declare function useDeleteSigningKeyV3Mutation(options?: Omit<UseMutationOptions<DeleteSigningKeyV3OkResponse, DeleteSigningKeyV3ErrorResponse, DeleteSigningKeyV3Props>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<DeleteSigningKeyV3OkResponse, ErrorV3, DeleteSigningKeyV3Props, unknown>;
|
|
@@ -0,0 +1,17 @@
|
|
|
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 deleteSigningKeyV3(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v3/signing-keys/${props.id}`, method: 'DELETE' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Soft-deletes a signing key by marking it as DELETED. The key metadata is retained
|
|
11
|
+
* for audit purposes. If the key is attached to any registries, signing will be
|
|
12
|
+
* automatically disabled on those registries.
|
|
13
|
+
*
|
|
14
|
+
*/
|
|
15
|
+
export function useDeleteSigningKeyV3Mutation(options) {
|
|
16
|
+
return useMutation((mutateProps) => deleteSigningKeyV3(mutateProps), options);
|
|
17
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { SigningKeyV3 } from '../schemas/SigningKeyV3';
|
|
3
|
+
import type { ErrorV3 } from '../schemas/ErrorV3';
|
|
4
|
+
import type { GenerateKeyRequestV3 } from '../schemas/GenerateKeyRequestV3';
|
|
5
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
6
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
7
|
+
export interface GenerateSigningKeyV3MutationQueryParams {
|
|
8
|
+
account_identifier: string;
|
|
9
|
+
org_identifier?: string;
|
|
10
|
+
project_identifier?: string;
|
|
11
|
+
}
|
|
12
|
+
export type GenerateSigningKeyV3RequestBody = GenerateKeyRequestV3;
|
|
13
|
+
export type GenerateSigningKeyV3OkResponse = ResponseWithPagination<{
|
|
14
|
+
data: SigningKeyV3;
|
|
15
|
+
}>;
|
|
16
|
+
export type GenerateSigningKeyV3ErrorResponse = ErrorV3;
|
|
17
|
+
export interface GenerateSigningKeyV3Props extends Omit<FetcherOptions<GenerateSigningKeyV3MutationQueryParams, GenerateSigningKeyV3RequestBody>, 'url'> {
|
|
18
|
+
queryParams: GenerateSigningKeyV3MutationQueryParams;
|
|
19
|
+
body: GenerateSigningKeyV3RequestBody;
|
|
20
|
+
}
|
|
21
|
+
export declare function generateSigningKeyV3(props: GenerateSigningKeyV3Props): Promise<GenerateSigningKeyV3OkResponse>;
|
|
22
|
+
/**
|
|
23
|
+
* Generates a new signing key (GPG or RSA), stores it in Harness Secret Manager,
|
|
24
|
+
* and persists metadata to the database. The private key is never stored in the database.
|
|
25
|
+
*
|
|
26
|
+
*/
|
|
27
|
+
export declare function useGenerateSigningKeyV3Mutation(options?: Omit<UseMutationOptions<GenerateSigningKeyV3OkResponse, GenerateSigningKeyV3ErrorResponse, GenerateSigningKeyV3Props>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<GenerateSigningKeyV3OkResponse, ErrorV3, GenerateSigningKeyV3Props, unknown>;
|
|
@@ -0,0 +1,16 @@
|
|
|
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 generateSigningKeyV3(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v3/signing-keys/generate`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Generates a new signing key (GPG or RSA), stores it in Harness Secret Manager,
|
|
11
|
+
* and persists metadata to the database. The private key is never stored in the database.
|
|
12
|
+
*
|
|
13
|
+
*/
|
|
14
|
+
export function useGenerateSigningKeyV3Mutation(options) {
|
|
15
|
+
return useMutation((mutateProps) => generateSigningKeyV3(mutateProps), options);
|
|
16
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ErrorV3 } from '../schemas/ErrorV3';
|
|
3
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
+
export interface GetRegistryPublicKeyV3QueryPathParams {
|
|
6
|
+
/**
|
|
7
|
+
* @format uuid
|
|
8
|
+
*/
|
|
9
|
+
id: string;
|
|
10
|
+
}
|
|
11
|
+
export type GetRegistryPublicKeyV3OkResponse = ResponseWithPagination<unknown>;
|
|
12
|
+
export type GetRegistryPublicKeyV3ErrorResponse = ErrorV3;
|
|
13
|
+
export interface GetRegistryPublicKeyV3Props extends GetRegistryPublicKeyV3QueryPathParams, Omit<FetcherOptions<unknown, unknown>, 'url'> {
|
|
14
|
+
}
|
|
15
|
+
export declare function getRegistryPublicKeyV3(props: GetRegistryPublicKeyV3Props): Promise<GetRegistryPublicKeyV3OkResponse>;
|
|
16
|
+
/**
|
|
17
|
+
* Returns the public key for the signing key attached to a registry.
|
|
18
|
+
* This is a public endpoint (no auth required) used by package managers
|
|
19
|
+
* (apt, apk) to fetch the repository signing key.
|
|
20
|
+
*
|
|
21
|
+
*/
|
|
22
|
+
export declare function useGetRegistryPublicKeyV3Query(props: GetRegistryPublicKeyV3Props, options?: Omit<UseQueryOptions<GetRegistryPublicKeyV3OkResponse, GetRegistryPublicKeyV3ErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetRegistryPublicKeyV3OkResponse, ErrorV3>;
|
|
@@ -0,0 +1,17 @@
|
|
|
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 getRegistryPublicKeyV3(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v3/registries/${props.id}/public-key`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Returns the public key for the signing key attached to a registry.
|
|
11
|
+
* This is a public endpoint (no auth required) used by package managers
|
|
12
|
+
* (apt, apk) to fetch the repository signing key.
|
|
13
|
+
*
|
|
14
|
+
*/
|
|
15
|
+
export function useGetRegistryPublicKeyV3Query(props, options) {
|
|
16
|
+
return useQuery(['GetRegistryPublicKeyV3', props.id], ({ signal }) => getRegistryPublicKeyV3(Object.assign(Object.assign({}, props), { signal })), options);
|
|
17
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ErrorV3 } from '../schemas/ErrorV3';
|
|
3
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
+
export interface GetSigningKeyPublicKeyV3QueryPathParams {
|
|
6
|
+
/**
|
|
7
|
+
* @format uuid
|
|
8
|
+
*/
|
|
9
|
+
id: string;
|
|
10
|
+
}
|
|
11
|
+
export interface GetSigningKeyPublicKeyV3QueryQueryParams {
|
|
12
|
+
account_identifier: string;
|
|
13
|
+
org_identifier?: string;
|
|
14
|
+
project_identifier?: string;
|
|
15
|
+
}
|
|
16
|
+
export type GetSigningKeyPublicKeyV3OkResponse = ResponseWithPagination<unknown>;
|
|
17
|
+
export type GetSigningKeyPublicKeyV3ErrorResponse = ErrorV3;
|
|
18
|
+
export interface GetSigningKeyPublicKeyV3Props extends GetSigningKeyPublicKeyV3QueryPathParams, Omit<FetcherOptions<GetSigningKeyPublicKeyV3QueryQueryParams, unknown>, 'url'> {
|
|
19
|
+
queryParams: GetSigningKeyPublicKeyV3QueryQueryParams;
|
|
20
|
+
}
|
|
21
|
+
export declare function getSigningKeyPublicKeyV3(props: GetSigningKeyPublicKeyV3Props): Promise<GetSigningKeyPublicKeyV3OkResponse>;
|
|
22
|
+
/**
|
|
23
|
+
* Downloads the public key for a signing key. Returns ASCII-armored format
|
|
24
|
+
* (PGP for GPG keys, PEM for RSA keys). This endpoint is used by clients
|
|
25
|
+
* to verify signatures.
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
export declare function useGetSigningKeyPublicKeyV3Query(props: GetSigningKeyPublicKeyV3Props, options?: Omit<UseQueryOptions<GetSigningKeyPublicKeyV3OkResponse, GetSigningKeyPublicKeyV3ErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetSigningKeyPublicKeyV3OkResponse, ErrorV3>;
|
|
@@ -0,0 +1,17 @@
|
|
|
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 getSigningKeyPublicKeyV3(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v3/signing-keys/${props.id}/public-key`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Downloads the public key for a signing key. Returns ASCII-armored format
|
|
11
|
+
* (PGP for GPG keys, PEM for RSA keys). This endpoint is used by clients
|
|
12
|
+
* to verify signatures.
|
|
13
|
+
*
|
|
14
|
+
*/
|
|
15
|
+
export function useGetSigningKeyPublicKeyV3Query(props, options) {
|
|
16
|
+
return useQuery(['GetSigningKeyPublicKeyV3', props.id, props.queryParams], ({ signal }) => getSigningKeyPublicKeyV3(Object.assign(Object.assign({}, props), { signal })), options);
|
|
17
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { SigningKeyV3 } from '../schemas/SigningKeyV3';
|
|
3
|
+
import type { ErrorV3 } from '../schemas/ErrorV3';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface GetSigningKeyV3QueryPathParams {
|
|
7
|
+
/**
|
|
8
|
+
* @format uuid
|
|
9
|
+
*/
|
|
10
|
+
id: string;
|
|
11
|
+
}
|
|
12
|
+
export interface GetSigningKeyV3QueryQueryParams {
|
|
13
|
+
account_identifier: string;
|
|
14
|
+
org_identifier?: string;
|
|
15
|
+
project_identifier?: string;
|
|
16
|
+
}
|
|
17
|
+
export type GetSigningKeyV3OkResponse = ResponseWithPagination<{
|
|
18
|
+
data: SigningKeyV3;
|
|
19
|
+
}>;
|
|
20
|
+
export type GetSigningKeyV3ErrorResponse = ErrorV3;
|
|
21
|
+
export interface GetSigningKeyV3Props extends GetSigningKeyV3QueryPathParams, Omit<FetcherOptions<GetSigningKeyV3QueryQueryParams, unknown>, 'url'> {
|
|
22
|
+
queryParams: GetSigningKeyV3QueryQueryParams;
|
|
23
|
+
}
|
|
24
|
+
export declare function getSigningKeyV3(props: GetSigningKeyV3Props): Promise<GetSigningKeyV3OkResponse>;
|
|
25
|
+
/**
|
|
26
|
+
* Retrieves detailed information about a specific signing key by ID.
|
|
27
|
+
*/
|
|
28
|
+
export declare function useGetSigningKeyV3Query(props: GetSigningKeyV3Props, options?: Omit<UseQueryOptions<GetSigningKeyV3OkResponse, GetSigningKeyV3ErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetSigningKeyV3OkResponse, 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 getSigningKeyV3(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v3/signing-keys/${props.id}`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Retrieves detailed information about a specific signing key by ID.
|
|
11
|
+
*/
|
|
12
|
+
export function useGetSigningKeyV3Query(props, options) {
|
|
13
|
+
return useQuery(['GetSigningKeyV3', props.id, props.queryParams], ({ signal }) => getSigningKeyV3(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { SigningKeyV3 } from '../schemas/SigningKeyV3';
|
|
3
|
+
import type { ErrorV3 } from '../schemas/ErrorV3';
|
|
4
|
+
import type { ImportKeyRequestV3 } from '../schemas/ImportKeyRequestV3';
|
|
5
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
6
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
7
|
+
export interface ImportSigningKeyV3MutationQueryParams {
|
|
8
|
+
account_identifier: string;
|
|
9
|
+
org_identifier?: string;
|
|
10
|
+
project_identifier?: string;
|
|
11
|
+
}
|
|
12
|
+
export type ImportSigningKeyV3RequestBody = ImportKeyRequestV3;
|
|
13
|
+
export type ImportSigningKeyV3OkResponse = ResponseWithPagination<{
|
|
14
|
+
data: SigningKeyV3;
|
|
15
|
+
}>;
|
|
16
|
+
export type ImportSigningKeyV3ErrorResponse = ErrorV3;
|
|
17
|
+
export interface ImportSigningKeyV3Props extends Omit<FetcherOptions<ImportSigningKeyV3MutationQueryParams, ImportSigningKeyV3RequestBody>, 'url'> {
|
|
18
|
+
queryParams: ImportSigningKeyV3MutationQueryParams;
|
|
19
|
+
body: ImportSigningKeyV3RequestBody;
|
|
20
|
+
}
|
|
21
|
+
export declare function importSigningKeyV3(props: ImportSigningKeyV3Props): Promise<ImportSigningKeyV3OkResponse>;
|
|
22
|
+
/**
|
|
23
|
+
* Imports an existing signing key from Harness Secret Manager by validating it
|
|
24
|
+
* and storing metadata in the database. The private key remains in the user-provided
|
|
25
|
+
* secret reference (not copied).
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
export declare function useImportSigningKeyV3Mutation(options?: Omit<UseMutationOptions<ImportSigningKeyV3OkResponse, ImportSigningKeyV3ErrorResponse, ImportSigningKeyV3Props>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<ImportSigningKeyV3OkResponse, ErrorV3, ImportSigningKeyV3Props, unknown>;
|
|
@@ -0,0 +1,17 @@
|
|
|
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 importSigningKeyV3(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v3/signing-keys/import`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Imports an existing signing key from Harness Secret Manager by validating it
|
|
11
|
+
* and storing metadata in the database. The private key remains in the user-provided
|
|
12
|
+
* secret reference (not copied).
|
|
13
|
+
*
|
|
14
|
+
*/
|
|
15
|
+
export function useImportSigningKeyV3Mutation(options) {
|
|
16
|
+
return useMutation((mutateProps) => importSigningKeyV3(mutateProps), options);
|
|
17
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ListSigningKeysResponseV3 } from '../schemas/ListSigningKeysResponseV3';
|
|
3
|
+
import type { ErrorV3 } from '../schemas/ErrorV3';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface ListSigningKeysV3QueryQueryParams {
|
|
7
|
+
account_identifier: string;
|
|
8
|
+
org_identifier?: string;
|
|
9
|
+
project_identifier?: string;
|
|
10
|
+
/**
|
|
11
|
+
* @format int64
|
|
12
|
+
* @default 0
|
|
13
|
+
*/
|
|
14
|
+
page?: number;
|
|
15
|
+
/**
|
|
16
|
+
* @format int64
|
|
17
|
+
* @default 20
|
|
18
|
+
*/
|
|
19
|
+
size?: number;
|
|
20
|
+
key_type?: Array<'ECDSA' | 'GPG' | 'RSA'>;
|
|
21
|
+
key_status?: Array<'ACTIVE' | 'DELETED' | 'INACTIVE' | 'REVOKED'>;
|
|
22
|
+
}
|
|
23
|
+
export type ListSigningKeysV3OkResponse = ResponseWithPagination<ListSigningKeysResponseV3>;
|
|
24
|
+
export type ListSigningKeysV3ErrorResponse = ErrorV3;
|
|
25
|
+
export interface ListSigningKeysV3Props extends Omit<FetcherOptions<ListSigningKeysV3QueryQueryParams, unknown>, 'url'> {
|
|
26
|
+
queryParams: ListSigningKeysV3QueryQueryParams;
|
|
27
|
+
}
|
|
28
|
+
export declare function listSigningKeysV3(props: ListSigningKeysV3Props): Promise<ListSigningKeysV3OkResponse>;
|
|
29
|
+
/**
|
|
30
|
+
* Lists signing keys for the current account/org/project with filtering and pagination.
|
|
31
|
+
* Results are ordered by creation time (newest first).
|
|
32
|
+
*
|
|
33
|
+
*/
|
|
34
|
+
export declare function useListSigningKeysV3Query(props: ListSigningKeysV3Props, options?: Omit<UseQueryOptions<ListSigningKeysV3OkResponse, ListSigningKeysV3ErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListSigningKeysV3OkResponse, ErrorV3>;
|
|
@@ -0,0 +1,16 @@
|
|
|
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 listSigningKeysV3(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v3/signing-keys`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Lists signing keys for the current account/org/project with filtering and pagination.
|
|
11
|
+
* Results are ordered by creation time (newest first).
|
|
12
|
+
*
|
|
13
|
+
*/
|
|
14
|
+
export function useListSigningKeysV3Query(props, options) {
|
|
15
|
+
return useQuery(['ListSigningKeysV3', props.queryParams], ({ signal }) => listSigningKeysV3(Object.assign(Object.assign({}, props), { signal })), options);
|
|
16
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { RebuildPackageIndexAcceptedV3Response } from '../responses/RebuildPackageIndexAcceptedV3Response';
|
|
3
|
+
import type { ErrorV3 } from '../schemas/ErrorV3';
|
|
4
|
+
import type { RebuildPackageIndexRequestV3 } from '../schemas/RebuildPackageIndexRequestV3';
|
|
5
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
6
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
7
|
+
export interface RebuildPackageIndexV3MutationQueryParams {
|
|
8
|
+
account_identifier: string;
|
|
9
|
+
}
|
|
10
|
+
export type RebuildPackageIndexV3RequestBody = RebuildPackageIndexRequestV3;
|
|
11
|
+
export type RebuildPackageIndexV3OkResponse = ResponseWithPagination<RebuildPackageIndexAcceptedV3Response>;
|
|
12
|
+
export type RebuildPackageIndexV3ErrorResponse = ErrorV3;
|
|
13
|
+
export interface RebuildPackageIndexV3Props extends Omit<FetcherOptions<RebuildPackageIndexV3MutationQueryParams, RebuildPackageIndexV3RequestBody>, 'url'> {
|
|
14
|
+
queryParams: RebuildPackageIndexV3MutationQueryParams;
|
|
15
|
+
body: RebuildPackageIndexV3RequestBody;
|
|
16
|
+
}
|
|
17
|
+
export declare function rebuildPackageIndexV3(props: RebuildPackageIndexV3Props): Promise<RebuildPackageIndexV3OkResponse>;
|
|
18
|
+
/**
|
|
19
|
+
* Trigger an asynchronous rebuild of the package index for the given package. The rebuild runs in the background; this endpoint returns immediately once the request is accepted. Package index rebuild is package-type specific — registries whose package type does not maintain a rebuildable per-package index return 405.
|
|
20
|
+
*/
|
|
21
|
+
export declare function useRebuildPackageIndexV3Mutation(options?: Omit<UseMutationOptions<RebuildPackageIndexV3OkResponse, RebuildPackageIndexV3ErrorResponse, RebuildPackageIndexV3Props>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<RebuildPackageIndexV3OkResponse, ErrorV3, RebuildPackageIndexV3Props, 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 rebuildPackageIndexV3(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v3/packages/rebuild-index`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Trigger an asynchronous rebuild of the package index for the given package. The rebuild runs in the background; this endpoint returns immediately once the request is accepted. Package index rebuild is package-type specific — registries whose package type does not maintain a rebuildable per-package index return 405.
|
|
11
|
+
*/
|
|
12
|
+
export function useRebuildPackageIndexV3Mutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => rebuildPackageIndexV3(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { SigningKeyV3 } from '../schemas/SigningKeyV3';
|
|
3
|
+
import type { ErrorV3 } from '../schemas/ErrorV3';
|
|
4
|
+
import type { UpdateKeyRequestV3 } from '../schemas/UpdateKeyRequestV3';
|
|
5
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
6
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
7
|
+
export interface UpdateSigningKeyV3MutationPathParams {
|
|
8
|
+
/**
|
|
9
|
+
* @format uuid
|
|
10
|
+
*/
|
|
11
|
+
id: string;
|
|
12
|
+
}
|
|
13
|
+
export interface UpdateSigningKeyV3MutationQueryParams {
|
|
14
|
+
account_identifier: string;
|
|
15
|
+
org_identifier?: string;
|
|
16
|
+
project_identifier?: string;
|
|
17
|
+
}
|
|
18
|
+
export type UpdateSigningKeyV3RequestBody = UpdateKeyRequestV3;
|
|
19
|
+
export type UpdateSigningKeyV3OkResponse = ResponseWithPagination<{
|
|
20
|
+
data: SigningKeyV3;
|
|
21
|
+
}>;
|
|
22
|
+
export type UpdateSigningKeyV3ErrorResponse = ErrorV3;
|
|
23
|
+
export interface UpdateSigningKeyV3Props extends UpdateSigningKeyV3MutationPathParams, Omit<FetcherOptions<UpdateSigningKeyV3MutationQueryParams, UpdateSigningKeyV3RequestBody>, 'url'> {
|
|
24
|
+
queryParams: UpdateSigningKeyV3MutationQueryParams;
|
|
25
|
+
body: UpdateSigningKeyV3RequestBody;
|
|
26
|
+
}
|
|
27
|
+
export declare function updateSigningKeyV3(props: UpdateSigningKeyV3Props): Promise<UpdateSigningKeyV3OkResponse>;
|
|
28
|
+
/**
|
|
29
|
+
* Updates a signing key's name and/or status. Only mutable fields can be updated.
|
|
30
|
+
* Status transitions have validation rules (e.g., cannot set REVOKED key to ACTIVE).
|
|
31
|
+
*
|
|
32
|
+
*/
|
|
33
|
+
export declare function useUpdateSigningKeyV3Mutation(options?: Omit<UseMutationOptions<UpdateSigningKeyV3OkResponse, UpdateSigningKeyV3ErrorResponse, UpdateSigningKeyV3Props>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UpdateSigningKeyV3OkResponse, ErrorV3, UpdateSigningKeyV3Props, unknown>;
|
|
@@ -0,0 +1,16 @@
|
|
|
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 updateSigningKeyV3(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v3/signing-keys/${props.id}`, method: 'PATCH' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Updates a signing key's name and/or status. Only mutable fields can be updated.
|
|
11
|
+
* Status transitions have validation rules (e.g., cannot set REVOKED key to ACTIVE).
|
|
12
|
+
*
|
|
13
|
+
*/
|
|
14
|
+
export function useUpdateSigningKeyV3Mutation(options) {
|
|
15
|
+
return useMutation((mutateProps) => updateSigningKeyV3(mutateProps), options);
|
|
16
|
+
}
|
|
@@ -57,6 +57,8 @@ export type { DeleteRegistryV3ErrorResponse, DeleteRegistryV3MutationPathParams,
|
|
|
57
57
|
export { deleteRegistryV3, useDeleteRegistryV3Mutation } from './hooks/useDeleteRegistryV3Mutation';
|
|
58
58
|
export type { DeleteReplicationRuleErrorResponse, DeleteReplicationRuleMutationPathParams, DeleteReplicationRuleOkResponse, DeleteReplicationRuleProps, } from './hooks/useDeleteReplicationRuleMutation';
|
|
59
59
|
export { deleteReplicationRule, useDeleteReplicationRuleMutation, } from './hooks/useDeleteReplicationRuleMutation';
|
|
60
|
+
export type { DeleteSigningKeyV3ErrorResponse, DeleteSigningKeyV3MutationPathParams, DeleteSigningKeyV3MutationQueryParams, DeleteSigningKeyV3OkResponse, DeleteSigningKeyV3Props, } from './hooks/useDeleteSigningKeyV3Mutation';
|
|
61
|
+
export { deleteSigningKeyV3, useDeleteSigningKeyV3Mutation, } from './hooks/useDeleteSigningKeyV3Mutation';
|
|
60
62
|
export type { DeleteSpaceLabelErrorResponse, DeleteSpaceLabelMutationPathParams, DeleteSpaceLabelOkResponse, DeleteSpaceLabelProps, } from './hooks/useDeleteSpaceLabelMutation';
|
|
61
63
|
export { deleteSpaceLabel, useDeleteSpaceLabelMutation } from './hooks/useDeleteSpaceLabelMutation';
|
|
62
64
|
export type { DeleteSpaceLabelValueErrorResponse, DeleteSpaceLabelValueMutationPathParams, DeleteSpaceLabelValueOkResponse, DeleteSpaceLabelValueProps, } from './hooks/useDeleteSpaceLabelValueMutation';
|
|
@@ -69,6 +71,8 @@ export type { EvaluateArtifactScanV3ErrorResponse, EvaluateArtifactScanV3Mutatio
|
|
|
69
71
|
export { evaluateArtifactScanV3, useEvaluateArtifactScanV3Mutation, } from './hooks/useEvaluateArtifactScanV3Mutation';
|
|
70
72
|
export type { FindSpaceLabelErrorResponse, FindSpaceLabelOkResponse, FindSpaceLabelProps, FindSpaceLabelQueryPathParams, FindSpaceLabelQueryQueryParams, } from './hooks/useFindSpaceLabelQuery';
|
|
71
73
|
export { findSpaceLabel, useFindSpaceLabelQuery } from './hooks/useFindSpaceLabelQuery';
|
|
74
|
+
export type { GenerateSigningKeyV3ErrorResponse, GenerateSigningKeyV3MutationQueryParams, GenerateSigningKeyV3OkResponse, GenerateSigningKeyV3Props, GenerateSigningKeyV3RequestBody, } from './hooks/useGenerateSigningKeyV3Mutation';
|
|
75
|
+
export { generateSigningKeyV3, useGenerateSigningKeyV3Mutation, } from './hooks/useGenerateSigningKeyV3Mutation';
|
|
72
76
|
export type { GetAllArtifactVersionsErrorResponse, GetAllArtifactVersionsOkResponse, GetAllArtifactVersionsProps, GetAllArtifactVersionsQueryPathParams, GetAllArtifactVersionsQueryQueryParams, } from './hooks/useGetAllArtifactVersionsQuery';
|
|
73
77
|
export { getAllArtifactVersions, useGetAllArtifactVersionsQuery, } from './hooks/useGetAllArtifactVersionsQuery';
|
|
74
78
|
export type { GetAllArtifactsByRegistryErrorResponse, GetAllArtifactsByRegistryOkResponse, GetAllArtifactsByRegistryProps, GetAllArtifactsByRegistryQueryPathParams, GetAllArtifactsByRegistryQueryQueryParams, } from './hooks/useGetAllArtifactsByRegistryQuery';
|
|
@@ -167,10 +171,16 @@ export type { GetRegistriesStatsV3ErrorResponse, GetRegistriesStatsV3MutationQue
|
|
|
167
171
|
export { getRegistriesStatsV3, useGetRegistriesStatsV3Mutation, } from './hooks/useGetRegistriesStatsV3Mutation';
|
|
168
172
|
export type { GetRegistryMetadataV3ErrorResponse, GetRegistryMetadataV3OkResponse, GetRegistryMetadataV3Props, GetRegistryMetadataV3QueryPathParams, GetRegistryMetadataV3QueryQueryParams, } from './hooks/useGetRegistryMetadataV3Query';
|
|
169
173
|
export { getRegistryMetadataV3, useGetRegistryMetadataV3Query, } from './hooks/useGetRegistryMetadataV3Query';
|
|
174
|
+
export type { GetRegistryPublicKeyV3ErrorResponse, GetRegistryPublicKeyV3OkResponse, GetRegistryPublicKeyV3Props, GetRegistryPublicKeyV3QueryPathParams, } from './hooks/useGetRegistryPublicKeyV3Query';
|
|
175
|
+
export { getRegistryPublicKeyV3, useGetRegistryPublicKeyV3Query, } from './hooks/useGetRegistryPublicKeyV3Query';
|
|
170
176
|
export type { GetRegistryErrorResponse, GetRegistryOkResponse, GetRegistryProps, GetRegistryQueryPathParams, } from './hooks/useGetRegistryQuery';
|
|
171
177
|
export { getRegistry, useGetRegistryQuery } from './hooks/useGetRegistryQuery';
|
|
172
178
|
export type { GetReplicationRuleErrorResponse, GetReplicationRuleOkResponse, GetReplicationRuleProps, GetReplicationRuleQueryPathParams, } from './hooks/useGetReplicationRuleQuery';
|
|
173
179
|
export { getReplicationRule, useGetReplicationRuleQuery } from './hooks/useGetReplicationRuleQuery';
|
|
180
|
+
export type { GetSigningKeyPublicKeyV3ErrorResponse, GetSigningKeyPublicKeyV3OkResponse, GetSigningKeyPublicKeyV3Props, GetSigningKeyPublicKeyV3QueryPathParams, GetSigningKeyPublicKeyV3QueryQueryParams, } from './hooks/useGetSigningKeyPublicKeyV3Query';
|
|
181
|
+
export { getSigningKeyPublicKeyV3, useGetSigningKeyPublicKeyV3Query, } from './hooks/useGetSigningKeyPublicKeyV3Query';
|
|
182
|
+
export type { GetSigningKeyV3ErrorResponse, GetSigningKeyV3OkResponse, GetSigningKeyV3Props, GetSigningKeyV3QueryPathParams, GetSigningKeyV3QueryQueryParams, } from './hooks/useGetSigningKeyV3Query';
|
|
183
|
+
export { getSigningKeyV3, useGetSigningKeyV3Query } from './hooks/useGetSigningKeyV3Query';
|
|
174
184
|
export type { GetStorageDetailsErrorResponse, GetStorageDetailsOkResponse, GetStorageDetailsProps, GetStorageDetailsQueryPathParams, } from './hooks/useGetStorageDetailsQuery';
|
|
175
185
|
export { getStorageDetails, useGetStorageDetailsQuery } from './hooks/useGetStorageDetailsQuery';
|
|
176
186
|
export type { GetSystemInfoV3ErrorResponse, GetSystemInfoV3OkResponse, GetSystemInfoV3Props, GetSystemInfoV3QueryQueryParams, } from './hooks/useGetSystemInfoV3Query';
|
|
@@ -183,6 +193,8 @@ export type { GetWebhookExecutionErrorResponse, GetWebhookExecutionOkResponse, G
|
|
|
183
193
|
export { getWebhookExecution, useGetWebhookExecutionQuery, } from './hooks/useGetWebhookExecutionQuery';
|
|
184
194
|
export type { GetWebhookErrorResponse, GetWebhookOkResponse, GetWebhookProps, GetWebhookQueryPathParams, } from './hooks/useGetWebhookQuery';
|
|
185
195
|
export { getWebhook, useGetWebhookQuery } from './hooks/useGetWebhookQuery';
|
|
196
|
+
export type { ImportSigningKeyV3ErrorResponse, ImportSigningKeyV3MutationQueryParams, ImportSigningKeyV3OkResponse, ImportSigningKeyV3Props, ImportSigningKeyV3RequestBody, } from './hooks/useImportSigningKeyV3Mutation';
|
|
197
|
+
export { importSigningKeyV3, useImportSigningKeyV3Mutation, } from './hooks/useImportSigningKeyV3Mutation';
|
|
186
198
|
export type { InitiateBulkScanEvaluationV3ErrorResponse, InitiateBulkScanEvaluationV3MutationQueryParams, InitiateBulkScanEvaluationV3OkResponse, InitiateBulkScanEvaluationV3Props, InitiateBulkScanEvaluationV3RequestBody, } from './hooks/useInitiateBulkScanEvaluationV3Mutation';
|
|
187
199
|
export { initiateBulkScanEvaluationV3, useInitiateBulkScanEvaluationV3Mutation, } from './hooks/useInitiateBulkScanEvaluationV3Mutation';
|
|
188
200
|
export type { ListArtifactLabelsErrorResponse, ListArtifactLabelsOkResponse, ListArtifactLabelsProps, ListArtifactLabelsQueryPathParams, ListArtifactLabelsQueryQueryParams, } from './hooks/useListArtifactLabelsQuery';
|
|
@@ -227,6 +239,8 @@ export type { ListRegistryFilesV3ErrorResponse, ListRegistryFilesV3OkResponse, L
|
|
|
227
239
|
export { listRegistryFilesV3, useListRegistryFilesV3Query, } from './hooks/useListRegistryFilesV3Query';
|
|
228
240
|
export type { ListReplicationRulesErrorResponse, ListReplicationRulesOkResponse, ListReplicationRulesProps, ListReplicationRulesQueryQueryParams, } from './hooks/useListReplicationRulesQuery';
|
|
229
241
|
export { listReplicationRules, useListReplicationRulesQuery, } from './hooks/useListReplicationRulesQuery';
|
|
242
|
+
export type { ListSigningKeysV3ErrorResponse, ListSigningKeysV3OkResponse, ListSigningKeysV3Props, ListSigningKeysV3QueryQueryParams, } from './hooks/useListSigningKeysV3Query';
|
|
243
|
+
export { listSigningKeysV3, useListSigningKeysV3Query } from './hooks/useListSigningKeysV3Query';
|
|
230
244
|
export type { ListSpaceLabelValuesErrorResponse, ListSpaceLabelValuesOkResponse, ListSpaceLabelValuesProps, ListSpaceLabelValuesQueryPathParams, } from './hooks/useListSpaceLabelValuesQuery';
|
|
231
245
|
export { listSpaceLabelValues, useListSpaceLabelValuesQuery, } from './hooks/useListSpaceLabelValuesQuery';
|
|
232
246
|
export type { ListSpaceLabelsErrorResponse, ListSpaceLabelsOkResponse, ListSpaceLabelsProps, ListSpaceLabelsQueryPathParams, ListSpaceLabelsQueryQueryParams, } from './hooks/useListSpaceLabelsQuery';
|
|
@@ -251,6 +265,8 @@ export type { QuarantineFilePathErrorResponse, QuarantineFilePathMutationPathPar
|
|
|
251
265
|
export { quarantineFilePath, useQuarantineFilePathMutation, } from './hooks/useQuarantineFilePathMutation';
|
|
252
266
|
export type { ReTriggerWebhookExecutionErrorResponse, ReTriggerWebhookExecutionOkResponse, ReTriggerWebhookExecutionProps, ReTriggerWebhookExecutionQueryPathParams, } from './hooks/useReTriggerWebhookExecutionQuery';
|
|
253
267
|
export { reTriggerWebhookExecution, useReTriggerWebhookExecutionQuery, } from './hooks/useReTriggerWebhookExecutionQuery';
|
|
268
|
+
export type { RebuildPackageIndexV3ErrorResponse, RebuildPackageIndexV3MutationQueryParams, RebuildPackageIndexV3OkResponse, RebuildPackageIndexV3Props, RebuildPackageIndexV3RequestBody, } from './hooks/useRebuildPackageIndexV3Mutation';
|
|
269
|
+
export { rebuildPackageIndexV3, useRebuildPackageIndexV3Mutation, } from './hooks/useRebuildPackageIndexV3Mutation';
|
|
254
270
|
export type { RebuildRegistryIndexV3ErrorResponse, RebuildRegistryIndexV3MutationPathParams, RebuildRegistryIndexV3MutationQueryParams, RebuildRegistryIndexV3OkResponse, RebuildRegistryIndexV3Props, } from './hooks/useRebuildRegistryIndexV3Mutation';
|
|
255
271
|
export { rebuildRegistryIndexV3, useRebuildRegistryIndexV3Mutation, } from './hooks/useRebuildRegistryIndexV3Mutation';
|
|
256
272
|
export type { RebuildVersionMetadataV3ErrorResponse, RebuildVersionMetadataV3MutationQueryParams, RebuildVersionMetadataV3OkResponse, RebuildVersionMetadataV3Props, RebuildVersionMetadataV3RequestBody, } from './hooks/useRebuildVersionMetadataV3Mutation';
|
|
@@ -295,6 +311,8 @@ export type { UpdateMetadataErrorResponse, UpdateMetadataMutationQueryParams, Up
|
|
|
295
311
|
export { updateMetadata, useUpdateMetadataMutation } from './hooks/useUpdateMetadataMutation';
|
|
296
312
|
export type { UpdateReplicationRuleErrorResponse, UpdateReplicationRuleMutationPathParams, UpdateReplicationRuleOkResponse, UpdateReplicationRuleProps, UpdateReplicationRuleRequestBody, } from './hooks/useUpdateReplicationRuleMutation';
|
|
297
313
|
export { updateReplicationRule, useUpdateReplicationRuleMutation, } from './hooks/useUpdateReplicationRuleMutation';
|
|
314
|
+
export type { UpdateSigningKeyV3ErrorResponse, UpdateSigningKeyV3MutationPathParams, UpdateSigningKeyV3MutationQueryParams, UpdateSigningKeyV3OkResponse, UpdateSigningKeyV3Props, UpdateSigningKeyV3RequestBody, } from './hooks/useUpdateSigningKeyV3Mutation';
|
|
315
|
+
export { updateSigningKeyV3, useUpdateSigningKeyV3Mutation, } from './hooks/useUpdateSigningKeyV3Mutation';
|
|
298
316
|
export type { UpdateSpaceLabelErrorResponse, UpdateSpaceLabelMutationPathParams, UpdateSpaceLabelOkResponse, UpdateSpaceLabelProps, UpdateSpaceLabelRequestBody, } from './hooks/useUpdateSpaceLabelMutation';
|
|
299
317
|
export { updateSpaceLabel, useUpdateSpaceLabelMutation } from './hooks/useUpdateSpaceLabelMutation';
|
|
300
318
|
export type { UpdateSpaceLabelValueErrorResponse, UpdateSpaceLabelValueMutationPathParams, UpdateSpaceLabelValueOkResponse, UpdateSpaceLabelValueProps, UpdateSpaceLabelValueRequestBody, } from './hooks/useUpdateSpaceLabelValueMutation';
|
|
@@ -419,6 +437,7 @@ export type { NotFoundResponse } from './responses/NotFoundResponse';
|
|
|
419
437
|
export type { PackagesStatsResponseV3Response } from './responses/PackagesStatsResponseV3Response';
|
|
420
438
|
export type { PlainTextResponseResponse } from './responses/PlainTextResponseResponse';
|
|
421
439
|
export type { QuarantinePathResponseResponse } from './responses/QuarantinePathResponseResponse';
|
|
440
|
+
export type { RebuildPackageIndexAcceptedV3Response } from './responses/RebuildPackageIndexAcceptedV3Response';
|
|
422
441
|
export type { RebuildRegistryIndexAcceptedV3Response } from './responses/RebuildRegistryIndexAcceptedV3Response';
|
|
423
442
|
export type { RebuildVersionMetadataAcceptedV3Response } from './responses/RebuildVersionMetadataAcceptedV3Response';
|
|
424
443
|
export type { RedirectResponse } from './responses/RedirectResponse';
|
|
@@ -437,6 +456,7 @@ export type { WebhookResponseResponse } from './responses/WebhookResponseRespons
|
|
|
437
456
|
export type { AccessKeySecretKey } from './schemas/AccessKeySecretKey';
|
|
438
457
|
export type { AddTags } from './schemas/AddTags';
|
|
439
458
|
export type { AddTagsV3 } from './schemas/AddTagsV3';
|
|
459
|
+
export type { AlpineArtifactDetailConfig } from './schemas/AlpineArtifactDetailConfig';
|
|
440
460
|
export type { Anonymous } from './schemas/Anonymous';
|
|
441
461
|
export type { ApiErrorsV3 } from './schemas/ApiErrorsV3';
|
|
442
462
|
export type { ArtifactDeploymentsDetail } from './schemas/ArtifactDeploymentsDetail';
|
|
@@ -543,6 +563,7 @@ export type { FirewallExceptionStatusV3 } from './schemas/FirewallExceptionStatu
|
|
|
543
563
|
export type { FirewallExceptionUpdateRequestV3 } from './schemas/FirewallExceptionUpdateRequestV3';
|
|
544
564
|
export type { FirewallModeV3 } from './schemas/FirewallModeV3';
|
|
545
565
|
export type { FixVersionDetailsV3 } from './schemas/FixVersionDetailsV3';
|
|
566
|
+
export type { GenerateKeyRequestV3 } from './schemas/GenerateKeyRequestV3';
|
|
546
567
|
export type { GenericArtifactDetailConfig } from './schemas/GenericArtifactDetailConfig';
|
|
547
568
|
export type { GoArtifactDetailConfig } from './schemas/GoArtifactDetailConfig';
|
|
548
569
|
export type { HelmArtifactDetail } from './schemas/HelmArtifactDetail';
|
|
@@ -550,6 +571,7 @@ export type { HelmArtifactDetailConfig } from './schemas/HelmArtifactDetailConfi
|
|
|
550
571
|
export type { HelmArtifactManifest } from './schemas/HelmArtifactManifest';
|
|
551
572
|
export type { HelmHttpArtifactDetailConfig } from './schemas/HelmHttpArtifactDetailConfig';
|
|
552
573
|
export type { HuggingFaceArtifactDetailConfig } from './schemas/HuggingFaceArtifactDetailConfig';
|
|
574
|
+
export type { ImportKeyRequestV3 } from './schemas/ImportKeyRequestV3';
|
|
553
575
|
export type { JfrogReplicationRegistry } from './schemas/JfrogReplicationRegistry';
|
|
554
576
|
export type { LicensePolicyFailureDetailConfigV3 } from './schemas/LicensePolicyFailureDetailConfigV3';
|
|
555
577
|
export type { LifecycleDryRunRequestBodyV3 } from './schemas/LifecycleDryRunRequestBodyV3';
|
|
@@ -603,6 +625,7 @@ export type { ListRegistriesResponseBodyV3 } from './schemas/ListRegistriesRespo
|
|
|
603
625
|
export type { ListRegistry } from './schemas/ListRegistry';
|
|
604
626
|
export type { ListRegistryArtifact } from './schemas/ListRegistryArtifact';
|
|
605
627
|
export type { ListReplicationRule } from './schemas/ListReplicationRule';
|
|
628
|
+
export type { ListSigningKeysResponseV3 } from './schemas/ListSigningKeysResponseV3';
|
|
606
629
|
export type { ListVersion } from './schemas/ListVersion';
|
|
607
630
|
export type { ListVersionDeploymentsResponseBodyV3 } from './schemas/ListVersionDeploymentsResponseBodyV3';
|
|
608
631
|
export type { ListVersionsResponseBodyV3 } from './schemas/ListVersionsResponseBodyV3';
|
|
@@ -655,6 +678,7 @@ export type { PuppetArtifactDetailConfig } from './schemas/PuppetArtifactDetailC
|
|
|
655
678
|
export type { PythonArtifactDetailConfig } from './schemas/PythonArtifactDetailConfig';
|
|
656
679
|
export type { QuarantinePath } from './schemas/QuarantinePath';
|
|
657
680
|
export type { QuarantineRequest } from './schemas/QuarantineRequest';
|
|
681
|
+
export type { RebuildPackageIndexRequestV3 } from './schemas/RebuildPackageIndexRequestV3';
|
|
658
682
|
export type { RebuildVersionMetadataRequestV3 } from './schemas/RebuildVersionMetadataRequestV3';
|
|
659
683
|
export type { RegistriesStatsRequestInputV3 } from './schemas/RegistriesStatsRequestInputV3';
|
|
660
684
|
export type { RegistriesStatsResponseBodyV3 } from './schemas/RegistriesStatsResponseBodyV3';
|
|
@@ -682,6 +706,8 @@ export type { SearchRegistryFilesRequestInputV3 } from './schemas/SearchRegistry
|
|
|
682
706
|
export type { SectionType } from './schemas/SectionType';
|
|
683
707
|
export type { SecurityPolicyFailureDetailConfigV3 } from './schemas/SecurityPolicyFailureDetailConfigV3';
|
|
684
708
|
export type { SecurityPolicyFailureVulnerabilityV3 } from './schemas/SecurityPolicyFailureVulnerabilityV3';
|
|
709
|
+
export type { SigningConfig } from './schemas/SigningConfig';
|
|
710
|
+
export type { SigningKeyV3 } from './schemas/SigningKeyV3';
|
|
685
711
|
export type { SlsaDetails } from './schemas/SlsaDetails';
|
|
686
712
|
export type { StartedAtMsV3 } from './schemas/StartedAtMsV3';
|
|
687
713
|
export type { Status } from './schemas/Status';
|
|
@@ -698,6 +724,7 @@ export type { TypesLabelValue } from './schemas/TypesLabelValue';
|
|
|
698
724
|
export type { TypesLabelWithValues } from './schemas/TypesLabelWithValues';
|
|
699
725
|
export type { TypesSaveLabelInput } from './schemas/TypesSaveLabelInput';
|
|
700
726
|
export type { TypesSaveLabelValueInput } from './schemas/TypesSaveLabelValueInput';
|
|
727
|
+
export type { UpdateKeyRequestV3 } from './schemas/UpdateKeyRequestV3';
|
|
701
728
|
export type { UpstreamConfig } from './schemas/UpstreamConfig';
|
|
702
729
|
export type { UpstreamProxyConfigFirewallMode } from './schemas/UpstreamProxyConfigFirewallMode';
|
|
703
730
|
export type { UserInfo } from './schemas/UserInfo';
|
|
@@ -717,3 +744,4 @@ export type { WebhookExecResponse } from './schemas/WebhookExecResponse';
|
|
|
717
744
|
export type { WebhookExecResult } from './schemas/WebhookExecResult';
|
|
718
745
|
export type { WebhookExecution } from './schemas/WebhookExecution';
|
|
719
746
|
export type { WebhookRequest } from './schemas/WebhookRequest';
|
|
747
|
+
export type { WolfiArtifactDetailConfig } from './schemas/WolfiArtifactDetailConfig';
|
|
@@ -27,12 +27,14 @@ export { deleteQuarantineFilePath, useDeleteQuarantineFilePathMutation, } from '
|
|
|
27
27
|
export { deleteRegistry, useDeleteRegistryMutation } from './hooks/useDeleteRegistryMutation';
|
|
28
28
|
export { deleteRegistryV3, useDeleteRegistryV3Mutation } from './hooks/useDeleteRegistryV3Mutation';
|
|
29
29
|
export { deleteReplicationRule, useDeleteReplicationRuleMutation, } from './hooks/useDeleteReplicationRuleMutation';
|
|
30
|
+
export { deleteSigningKeyV3, useDeleteSigningKeyV3Mutation, } from './hooks/useDeleteSigningKeyV3Mutation';
|
|
30
31
|
export { deleteSpaceLabel, useDeleteSpaceLabelMutation } from './hooks/useDeleteSpaceLabelMutation';
|
|
31
32
|
export { deleteSpaceLabelValue, useDeleteSpaceLabelValueMutation, } from './hooks/useDeleteSpaceLabelValueMutation';
|
|
32
33
|
export { deleteVersionV3, useDeleteVersionV3Mutation } from './hooks/useDeleteVersionV3Mutation';
|
|
33
34
|
export { deleteWebhook, useDeleteWebhookMutation } from './hooks/useDeleteWebhookMutation';
|
|
34
35
|
export { evaluateArtifactScanV3, useEvaluateArtifactScanV3Mutation, } from './hooks/useEvaluateArtifactScanV3Mutation';
|
|
35
36
|
export { findSpaceLabel, useFindSpaceLabelQuery } from './hooks/useFindSpaceLabelQuery';
|
|
37
|
+
export { generateSigningKeyV3, useGenerateSigningKeyV3Mutation, } from './hooks/useGenerateSigningKeyV3Mutation';
|
|
36
38
|
export { getAllArtifactVersions, useGetAllArtifactVersionsQuery, } from './hooks/useGetAllArtifactVersionsQuery';
|
|
37
39
|
export { getAllArtifactsByRegistry, useGetAllArtifactsByRegistryQuery, } from './hooks/useGetAllArtifactsByRegistryQuery';
|
|
38
40
|
export { getAllArtifacts, useGetAllArtifactsQuery } from './hooks/useGetAllArtifactsQuery';
|
|
@@ -82,14 +84,18 @@ export { getPackageMetadataV3, useGetPackageMetadataV3Query, } from './hooks/use
|
|
|
82
84
|
export { getPackagesStatsV3, useGetPackagesStatsV3Mutation, } from './hooks/useGetPackagesStatsV3Mutation';
|
|
83
85
|
export { getRegistriesStatsV3, useGetRegistriesStatsV3Mutation, } from './hooks/useGetRegistriesStatsV3Mutation';
|
|
84
86
|
export { getRegistryMetadataV3, useGetRegistryMetadataV3Query, } from './hooks/useGetRegistryMetadataV3Query';
|
|
87
|
+
export { getRegistryPublicKeyV3, useGetRegistryPublicKeyV3Query, } from './hooks/useGetRegistryPublicKeyV3Query';
|
|
85
88
|
export { getRegistry, useGetRegistryQuery } from './hooks/useGetRegistryQuery';
|
|
86
89
|
export { getReplicationRule, useGetReplicationRuleQuery } from './hooks/useGetReplicationRuleQuery';
|
|
90
|
+
export { getSigningKeyPublicKeyV3, useGetSigningKeyPublicKeyV3Query, } from './hooks/useGetSigningKeyPublicKeyV3Query';
|
|
91
|
+
export { getSigningKeyV3, useGetSigningKeyV3Query } from './hooks/useGetSigningKeyV3Query';
|
|
87
92
|
export { getStorageDetails, useGetStorageDetailsQuery } from './hooks/useGetStorageDetailsQuery';
|
|
88
93
|
export { getSystemInfoV3, useGetSystemInfoV3Query } from './hooks/useGetSystemInfoV3Query';
|
|
89
94
|
export { getVersionMetadataV3, useGetVersionMetadataV3Query, } from './hooks/useGetVersionMetadataV3Query';
|
|
90
95
|
export { getVersionsStatsV3, useGetVersionsStatsV3Mutation, } from './hooks/useGetVersionsStatsV3Mutation';
|
|
91
96
|
export { getWebhookExecution, useGetWebhookExecutionQuery, } from './hooks/useGetWebhookExecutionQuery';
|
|
92
97
|
export { getWebhook, useGetWebhookQuery } from './hooks/useGetWebhookQuery';
|
|
98
|
+
export { importSigningKeyV3, useImportSigningKeyV3Mutation, } from './hooks/useImportSigningKeyV3Mutation';
|
|
93
99
|
export { initiateBulkScanEvaluationV3, useInitiateBulkScanEvaluationV3Mutation, } from './hooks/useInitiateBulkScanEvaluationV3Mutation';
|
|
94
100
|
export { listArtifactLabels, useListArtifactLabelsQuery } from './hooks/useListArtifactLabelsQuery';
|
|
95
101
|
export { listConanPackageRevisionsV3, useListConanPackageRevisionsV3Query, } from './hooks/useListConanPackageRevisionsV3Query';
|
|
@@ -112,6 +118,7 @@ export { listRegistries, useListRegistriesQuery } from './hooks/useListRegistrie
|
|
|
112
118
|
export { listRegistriesV3, useListRegistriesV3Query } from './hooks/useListRegistriesV3Query';
|
|
113
119
|
export { listRegistryFilesV3, useListRegistryFilesV3Query, } from './hooks/useListRegistryFilesV3Query';
|
|
114
120
|
export { listReplicationRules, useListReplicationRulesQuery, } from './hooks/useListReplicationRulesQuery';
|
|
121
|
+
export { listSigningKeysV3, useListSigningKeysV3Query } from './hooks/useListSigningKeysV3Query';
|
|
115
122
|
export { listSpaceLabelValues, useListSpaceLabelValuesQuery, } from './hooks/useListSpaceLabelValuesQuery';
|
|
116
123
|
export { listSpaceLabels, useListSpaceLabelsQuery } from './hooks/useListSpaceLabelsQuery';
|
|
117
124
|
export { listVersionDeploymentsV3, useListVersionDeploymentsV3Query, } from './hooks/useListVersionDeploymentsV3Query';
|
|
@@ -124,6 +131,7 @@ export { modifyRegistry, useModifyRegistryMutation } from './hooks/useModifyRegi
|
|
|
124
131
|
export { patchLifecycleRuleV3, usePatchLifecycleRuleV3Mutation, } from './hooks/usePatchLifecycleRuleV3Mutation';
|
|
125
132
|
export { quarantineFilePath, useQuarantineFilePathMutation, } from './hooks/useQuarantineFilePathMutation';
|
|
126
133
|
export { reTriggerWebhookExecution, useReTriggerWebhookExecutionQuery, } from './hooks/useReTriggerWebhookExecutionQuery';
|
|
134
|
+
export { rebuildPackageIndexV3, useRebuildPackageIndexV3Mutation, } from './hooks/useRebuildPackageIndexV3Mutation';
|
|
127
135
|
export { rebuildRegistryIndexV3, useRebuildRegistryIndexV3Mutation, } from './hooks/useRebuildRegistryIndexV3Mutation';
|
|
128
136
|
export { rebuildVersionMetadataV3, useRebuildVersionMetadataV3Mutation, } from './hooks/useRebuildVersionMetadataV3Mutation';
|
|
129
137
|
export { redirectHarnessArtifact, useRedirectHarnessArtifactQuery, } from './hooks/useRedirectHarnessArtifactQuery';
|
|
@@ -146,6 +154,7 @@ export { updateFirewallExceptionV3, useUpdateFirewallExceptionV3Mutation, } from
|
|
|
146
154
|
export { updateLifecycleRuleV3, useUpdateLifecycleRuleV3Mutation, } from './hooks/useUpdateLifecycleRuleV3Mutation';
|
|
147
155
|
export { updateMetadata, useUpdateMetadataMutation } from './hooks/useUpdateMetadataMutation';
|
|
148
156
|
export { updateReplicationRule, useUpdateReplicationRuleMutation, } from './hooks/useUpdateReplicationRuleMutation';
|
|
157
|
+
export { updateSigningKeyV3, useUpdateSigningKeyV3Mutation, } from './hooks/useUpdateSigningKeyV3Mutation';
|
|
149
158
|
export { updateSpaceLabel, useUpdateSpaceLabelMutation } from './hooks/useUpdateSpaceLabelMutation';
|
|
150
159
|
export { updateSpaceLabelValue, useUpdateSpaceLabelValueMutation, } from './hooks/useUpdateSpaceLabelValueMutation';
|
|
151
160
|
export { updateStatusFirewallExceptionV3, useUpdateStatusFirewallExceptionV3Mutation, } from './hooks/useUpdateStatusFirewallExceptionV3Mutation';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type RebuildPackageIndexAcceptedV3Response = unknown;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -20,13 +20,15 @@ import type { ConanArtifactDetailConfig } from '../schemas/ConanArtifactDetailCo
|
|
|
20
20
|
import type { RubyArtifactDetailConfig } from '../schemas/RubyArtifactDetailConfig';
|
|
21
21
|
import type { CranArtifactDetailConfig } from '../schemas/CranArtifactDetailConfig';
|
|
22
22
|
import type { TerraformArtifactDetailConfig } from '../schemas/TerraformArtifactDetailConfig';
|
|
23
|
+
import type { WolfiArtifactDetailConfig } from '../schemas/WolfiArtifactDetailConfig';
|
|
24
|
+
import type { AlpineArtifactDetailConfig } from '../schemas/AlpineArtifactDetailConfig';
|
|
23
25
|
import type { ArtifactType } from '../schemas/ArtifactType';
|
|
24
26
|
import type { UserInfo } from '../schemas/UserInfo';
|
|
25
27
|
import type { PackageType } from '../schemas/PackageType';
|
|
26
28
|
/**
|
|
27
29
|
* Artifact Detail
|
|
28
30
|
*/
|
|
29
|
-
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) & {
|
|
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) & {
|
|
30
32
|
artifactKey?: {
|
|
31
33
|
[key: string]: string;
|
|
32
34
|
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Request to generate a new signing key
|
|
3
|
+
*/
|
|
4
|
+
export interface GenerateKeyRequestV3 {
|
|
5
|
+
/**
|
|
6
|
+
* Underlying algorithm (rsa recommended for compatibility)
|
|
7
|
+
*/
|
|
8
|
+
algorithm: 'ed25519' | 'rsa';
|
|
9
|
+
/**
|
|
10
|
+
* Optional expiration timestamp in Unix milliseconds
|
|
11
|
+
* @format int64
|
|
12
|
+
*/
|
|
13
|
+
expiresAt?: number | null;
|
|
14
|
+
/**
|
|
15
|
+
* Human-readable name for the key
|
|
16
|
+
*/
|
|
17
|
+
keyName: string;
|
|
18
|
+
/**
|
|
19
|
+
* Key size in bits (minimum 2048, recommended 4096 for RSA)
|
|
20
|
+
* @format int32
|
|
21
|
+
* @default 4096
|
|
22
|
+
*/
|
|
23
|
+
keySize: number;
|
|
24
|
+
/**
|
|
25
|
+
* Type of key to generate
|
|
26
|
+
*/
|
|
27
|
+
keyType: 'GPG' | 'RSA';
|
|
28
|
+
/**
|
|
29
|
+
* Organization identifier (optional, for org-level keys)
|
|
30
|
+
*/
|
|
31
|
+
orgIdentifier?: string | null;
|
|
32
|
+
/**
|
|
33
|
+
* Project identifier (optional, for project-level keys)
|
|
34
|
+
*/
|
|
35
|
+
projectIdentifier?: string | null;
|
|
36
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Request to import an existing signing key from secret manager
|
|
3
|
+
*/
|
|
4
|
+
export interface ImportKeyRequestV3 {
|
|
5
|
+
/**
|
|
6
|
+
* Optional expiration timestamp in Unix milliseconds
|
|
7
|
+
* @format int64
|
|
8
|
+
*/
|
|
9
|
+
expiresAt?: number | null;
|
|
10
|
+
/**
|
|
11
|
+
* Human-readable name for the key
|
|
12
|
+
*/
|
|
13
|
+
keyName: string;
|
|
14
|
+
/**
|
|
15
|
+
* Type of key being imported
|
|
16
|
+
*/
|
|
17
|
+
keyType: 'GPG' | 'RSA';
|
|
18
|
+
/**
|
|
19
|
+
* Organization identifier (optional, for org-level keys)
|
|
20
|
+
*/
|
|
21
|
+
orgIdentifier?: string | null;
|
|
22
|
+
/**
|
|
23
|
+
* Optional reference to passphrase secret (if key is encrypted)
|
|
24
|
+
*/
|
|
25
|
+
passphraseSecretIdentifier?: string | null;
|
|
26
|
+
/**
|
|
27
|
+
* Optional space ID for the passphrase secret
|
|
28
|
+
*/
|
|
29
|
+
passphraseSecretSpaceId?: string | null;
|
|
30
|
+
/**
|
|
31
|
+
* Reference to private key secret in Harness Secret Manager
|
|
32
|
+
*/
|
|
33
|
+
privateKeySecretIdentifier: string;
|
|
34
|
+
/**
|
|
35
|
+
* Space ID for the private key secret
|
|
36
|
+
*/
|
|
37
|
+
privateKeySecretSpaceId: string;
|
|
38
|
+
/**
|
|
39
|
+
* Project identifier (optional, for project-level keys)
|
|
40
|
+
*/
|
|
41
|
+
projectIdentifier?: string | null;
|
|
42
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -9,10 +9,6 @@ import type { RegistryTypeV3 } from '../schemas/RegistryTypeV3';
|
|
|
9
9
|
* Registry Metadata
|
|
10
10
|
*/
|
|
11
11
|
export interface RegistryV3 {
|
|
12
|
-
/**
|
|
13
|
-
* @format int64
|
|
14
|
-
*/
|
|
15
|
-
artifactsCount?: number;
|
|
16
12
|
deletedAt?: DeletedAtMsV3;
|
|
17
13
|
deletedBy?: UserInfoV3;
|
|
18
14
|
description?: string;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Configuration for repository metadata signing (e.g., GPG signing for Debian packages)
|
|
3
|
+
*/
|
|
4
|
+
export interface SigningConfig {
|
|
5
|
+
/**
|
|
6
|
+
* UUID of the signing key to use (must be ACTIVE and belong to same account/org/project)
|
|
7
|
+
* @format uuid
|
|
8
|
+
*/
|
|
9
|
+
keyId?: string | null;
|
|
10
|
+
/**
|
|
11
|
+
* Whether signing is enabled for this registry
|
|
12
|
+
*/
|
|
13
|
+
signingEnabled?: boolean;
|
|
14
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import type { CreatedAtMsV3 } from '../schemas/CreatedAtMsV3';
|
|
2
|
+
import type { UserInfoV3 } from '../schemas/UserInfoV3';
|
|
3
|
+
import type { ModifiedAtMsV3 } from '../schemas/ModifiedAtMsV3';
|
|
4
|
+
/**
|
|
5
|
+
* A signing key used for repository metadata signing (Debian, Alpine, etc.)
|
|
6
|
+
*/
|
|
7
|
+
export interface SigningKeyV3 {
|
|
8
|
+
/**
|
|
9
|
+
* Underlying algorithm
|
|
10
|
+
*/
|
|
11
|
+
algorithm: 'ecdsa' | 'ed25519' | 'rsa';
|
|
12
|
+
createdAt: CreatedAtMsV3;
|
|
13
|
+
createdBy?: UserInfoV3;
|
|
14
|
+
/**
|
|
15
|
+
* Expiration timestamp in Unix milliseconds (null if never expires)
|
|
16
|
+
* @format int64
|
|
17
|
+
*/
|
|
18
|
+
expiresAt?: number | null;
|
|
19
|
+
/**
|
|
20
|
+
* Primary identifier (GPG 40 hex chars, RSA SHA256 of public key 64 hex chars)
|
|
21
|
+
*/
|
|
22
|
+
fingerprint: string;
|
|
23
|
+
/**
|
|
24
|
+
* Unique internal identifier of the signing key
|
|
25
|
+
* @format uuid
|
|
26
|
+
*/
|
|
27
|
+
keyId: string;
|
|
28
|
+
/**
|
|
29
|
+
* Human-readable name for UI/API
|
|
30
|
+
*/
|
|
31
|
+
keyName: string;
|
|
32
|
+
/**
|
|
33
|
+
* Key strength in bits (e.g. 2048, 3072, 4096 for RSA)
|
|
34
|
+
* @format int32
|
|
35
|
+
*/
|
|
36
|
+
keySize?: number | null;
|
|
37
|
+
/**
|
|
38
|
+
* Origin of the key (created by system or provided by user)
|
|
39
|
+
*/
|
|
40
|
+
keySource: 'GENERATED' | 'IMPORTED';
|
|
41
|
+
/**
|
|
42
|
+
* Lifecycle state of the key
|
|
43
|
+
*/
|
|
44
|
+
keyStatus: 'ACTIVE' | 'DELETED' | 'INACTIVE' | 'REVOKED';
|
|
45
|
+
/**
|
|
46
|
+
* Cryptographic system (GPG for Debian, RSA for Alpine, ECDSA for future)
|
|
47
|
+
*/
|
|
48
|
+
keyType: 'ECDSA' | 'GPG' | 'RSA';
|
|
49
|
+
/**
|
|
50
|
+
* Last 16 hex chars of fingerprint (for CLI compatibility)
|
|
51
|
+
*/
|
|
52
|
+
longKeyId?: string;
|
|
53
|
+
modifiedAt: ModifiedAtMsV3;
|
|
54
|
+
/**
|
|
55
|
+
* Last 8 hex chars of fingerprint (for CLI compatibility)
|
|
56
|
+
*/
|
|
57
|
+
shortKeyId?: string;
|
|
58
|
+
updatedBy?: UserInfoV3;
|
|
59
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Request to update a signing key (name and/or status only)
|
|
3
|
+
*/
|
|
4
|
+
export interface UpdateKeyRequestV3 {
|
|
5
|
+
/**
|
|
6
|
+
* New name for the key
|
|
7
|
+
*/
|
|
8
|
+
keyName?: string | null;
|
|
9
|
+
/**
|
|
10
|
+
* New status for the key (cannot transition from REVOKED or DELETED)
|
|
11
|
+
*/
|
|
12
|
+
keyStatus?: 'ACTIVE' | 'INACTIVE' | 'REVOKED' | null;
|
|
13
|
+
}
|
|
@@ -3,6 +3,7 @@ import type { Anonymous } from '../schemas/Anonymous';
|
|
|
3
3
|
import type { AccessKeySecretKey } from '../schemas/AccessKeySecretKey';
|
|
4
4
|
import type { AuthType } from '../schemas/AuthType';
|
|
5
5
|
import type { UpstreamProxyConfigFirewallMode } from '../schemas/UpstreamProxyConfigFirewallMode';
|
|
6
|
+
import type { SigningConfig } from '../schemas/SigningConfig';
|
|
6
7
|
/**
|
|
7
8
|
* Configuration for Harness Artifact UpstreamProxies
|
|
8
9
|
*/
|
|
@@ -11,10 +12,14 @@ export interface UpstreamConfig {
|
|
|
11
12
|
authType: AuthType;
|
|
12
13
|
firewallMode?: UpstreamProxyConfigFirewallMode;
|
|
13
14
|
/**
|
|
15
|
+
* Time-to-live in seconds for cached FOUND metadata entries. Honoured only for UPSTREAM registries of package types that support the resource cache (currently Maven). Must be between 0 and 604800 (7 days). Rejected for unsupported package types.
|
|
16
|
+
*
|
|
14
17
|
* @format int64
|
|
15
18
|
*/
|
|
16
19
|
metadataCacheTTL?: number;
|
|
17
20
|
/**
|
|
21
|
+
* Time-to-live in seconds for cached NOT_FOUND entries. Honoured only for UPSTREAM registries of package types that support the resource cache (currently Maven). Must be between 0 and 604800 (7 days). Rejected for unsupported package types.
|
|
22
|
+
*
|
|
18
23
|
* @format int64
|
|
19
24
|
*/
|
|
20
25
|
negativeCacheTTL?: number;
|
|
@@ -23,6 +28,7 @@ export interface UpstreamConfig {
|
|
|
23
28
|
*
|
|
24
29
|
*/
|
|
25
30
|
remoteUrlSuffix?: string;
|
|
31
|
+
signingConfig?: SigningConfig;
|
|
26
32
|
source?: 'Alpine' | 'Anaconda' | 'AwsEcr' | 'CRAN' | 'ConanCenter' | 'Crates' | 'Custom' | 'Dockerhub' | 'GoProxy' | 'HelmChartRepo' | 'HuggingFace' | 'MavenCentral' | 'NpmJs' | 'NugetOrg' | 'Packagist' | 'Pubdev' | 'PuppetForge' | 'PyPi' | 'RubyGems' | 'TerraformRegistry' | 'Wolfi';
|
|
27
33
|
url?: string;
|
|
28
34
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { DeploymentMetadataV3 } from '../schemas/DeploymentMetadataV3';
|
|
2
|
+
import type { FirewallModeV3 } from '../schemas/FirewallModeV3';
|
|
2
3
|
import type { ScanStatusV3 } from '../schemas/ScanStatusV3';
|
|
3
4
|
/**
|
|
4
5
|
* Statistics for a single version
|
|
@@ -24,11 +25,13 @@ export interface VersionStatsV3 {
|
|
|
24
25
|
* Number of files in the version
|
|
25
26
|
*/
|
|
26
27
|
fileCount?: number;
|
|
28
|
+
firewallMode?: FirewallModeV3;
|
|
27
29
|
/**
|
|
28
30
|
* Version UUID
|
|
29
31
|
* @format uuid
|
|
30
32
|
*/
|
|
31
33
|
id: string;
|
|
34
|
+
lastScannedAt?: string;
|
|
32
35
|
/**
|
|
33
36
|
* Scan ID for the version
|
|
34
37
|
* @format uuid
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import type { DebianConfig } from '../schemas/DebianConfig';
|
|
2
|
+
import type { SigningConfig } from '../schemas/SigningConfig';
|
|
2
3
|
/**
|
|
3
4
|
* Configuration for Harness Virtual Artifact Registries
|
|
4
5
|
*/
|
|
5
6
|
export interface VirtualConfig {
|
|
6
7
|
debianConfig?: DebianConfig;
|
|
8
|
+
signingConfig?: SigningConfig;
|
|
7
9
|
upstreamProxies?: string[];
|
|
8
10
|
}
|