@harnessio/react-har-service-client 0.91.0 → 0.92.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 +2 -7
- package/dist/har-service/src/services/hooks/useDeleteSigningKeyV3Mutation.js +2 -2
- package/dist/har-service/src/services/hooks/useGenerateSigningKeyV3Mutation.d.ts +2 -4
- package/dist/har-service/src/services/hooks/useGetRegistryPublicKeyV3Query.d.ts +5 -4
- package/dist/har-service/src/services/hooks/useGetRegistryPublicKeyV3Query.js +1 -1
- package/dist/har-service/src/services/hooks/useGetSigningKeyByNameV3Query.d.ts +3 -5
- package/dist/har-service/src/services/hooks/useGetSigningKeyByNameV3Query.js +2 -2
- package/dist/har-service/src/services/hooks/useGetSigningKeyPublicKeyV3Query.d.ts +10 -8
- package/dist/har-service/src/services/hooks/useGetSigningKeyPublicKeyV3Query.js +9 -3
- package/dist/har-service/src/services/hooks/useGetSigningKeySummaryV3Query.d.ts +26 -0
- package/dist/har-service/src/services/hooks/useGetSigningKeySummaryV3Query.js +20 -0
- package/dist/har-service/src/services/hooks/useGetSigningKeyV3Query.d.ts +7 -8
- package/dist/har-service/src/services/hooks/useGetSigningKeyV3Query.js +1 -1
- package/dist/har-service/src/services/hooks/useImportSigningKeyV3Mutation.d.ts +2 -4
- package/dist/har-service/src/services/hooks/useListPackageTypeConfigsV3Query.d.ts +25 -0
- package/dist/har-service/src/services/hooks/useListPackageTypeConfigsV3Query.js +20 -0
- package/dist/har-service/src/services/hooks/useListSigningKeysV3Query.d.ts +4 -4
- package/dist/har-service/src/services/hooks/useUpdateSigningKeyV3Mutation.d.ts +3 -11
- package/dist/har-service/src/services/hooks/useUpdateSigningKeyV3Mutation.js +2 -3
- package/dist/har-service/src/services/index.d.ts +18 -6
- package/dist/har-service/src/services/index.js +2 -1
- package/dist/har-service/src/services/responses/ListPackageTypeConfigsResponseV3Response.d.ts +2 -0
- package/dist/har-service/src/services/responses/ListSigningKeysResponseV3Response.d.ts +2 -0
- package/dist/har-service/src/services/responses/ListSigningKeysResponseV3Response.js +1 -0
- package/dist/har-service/src/services/responses/SigningKeyDetailsResponseV3Response.d.ts +4 -0
- package/dist/har-service/src/services/responses/SigningKeyDetailsResponseV3Response.js +1 -0
- package/dist/har-service/src/services/responses/SigningKeySummaryResponseV3Response.d.ts +4 -0
- package/dist/har-service/src/services/responses/SigningKeySummaryResponseV3Response.js +1 -0
- package/dist/har-service/src/services/schemas/GenerateKeyRequestV3.d.ts +26 -24
- package/dist/har-service/src/services/schemas/ImportKeyRequestV3.d.ts +17 -17
- package/dist/har-service/src/services/schemas/ImportKeyRequestV3.js +0 -3
- package/dist/har-service/src/services/schemas/ListPackageTypeConfigsResponseBodyV3.d.ts +14 -0
- package/dist/har-service/src/services/schemas/ListPackageTypeConfigsResponseBodyV3.js +1 -0
- package/dist/har-service/src/services/schemas/{ListSigningKeysResponseV3.d.ts → ListSigningKeysResponseBodyV3.d.ts} +1 -3
- package/dist/har-service/src/services/schemas/ListSigningKeysResponseBodyV3.js +1 -0
- package/dist/har-service/src/services/schemas/PackageTypeCapabilitiesV3.d.ts +16 -0
- package/dist/har-service/src/services/schemas/PackageTypeConfigV3.d.ts +9 -0
- package/dist/har-service/src/services/schemas/PackageTypeConfigV3.js +1 -0
- package/dist/har-service/src/services/schemas/SigningKeyAlgorithmV3.d.ts +6 -0
- package/dist/har-service/src/services/schemas/SigningKeyAlgorithmV3.js +4 -0
- package/dist/har-service/src/services/schemas/SigningKeyStatusV3.d.ts +6 -0
- package/dist/har-service/src/services/schemas/SigningKeyStatusV3.js +4 -0
- package/dist/har-service/src/services/schemas/SigningKeySummaryV3.d.ts +27 -0
- package/dist/har-service/src/services/schemas/SigningKeySummaryV3.js +4 -0
- package/dist/har-service/src/services/schemas/SigningKeyTypeV3.d.ts +6 -0
- package/dist/har-service/src/services/schemas/SigningKeyTypeV3.js +4 -0
- package/dist/har-service/src/services/schemas/SigningKeyV3.d.ts +20 -26
- package/dist/har-service/src/services/schemas/StorageDetails.d.ts +4 -0
- package/dist/har-service/src/services/schemas/UpdateKeyRequestV3.d.ts +4 -3
- package/dist/har-service/src/services/schemas/VersionStatsV3.d.ts +0 -6
- package/dist/har-service/src/services/schemas/VersionV3.d.ts +0 -18
- package/package.json +1 -1
- package/dist/har-service/src/services/hooks/useDownloadSigningKeyPublicKeyV3Query.d.ts +0 -29
- package/dist/har-service/src/services/hooks/useDownloadSigningKeyPublicKeyV3Query.js +0 -18
- package/dist/har-service/src/services/schemas/KeyMetaV3.d.ts +0 -35
- /package/dist/har-service/src/services/{schemas/ListSigningKeysResponseV3.js → responses/ListPackageTypeConfigsResponseV3Response.js} +0 -0
- /package/dist/har-service/src/services/schemas/{KeyMetaV3.js → PackageTypeCapabilitiesV3.js} +0 -0
|
@@ -3,15 +3,10 @@ import type { ErrorV3 } from '../schemas/ErrorV3';
|
|
|
3
3
|
import type { ResponseWithPagination } from '../helpers';
|
|
4
4
|
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
5
|
export interface DeleteSigningKeyV3MutationPathParams {
|
|
6
|
-
/**
|
|
7
|
-
* @format uuid
|
|
8
|
-
*/
|
|
9
6
|
id: string;
|
|
10
7
|
}
|
|
11
8
|
export interface DeleteSigningKeyV3MutationQueryParams {
|
|
12
9
|
account_identifier: string;
|
|
13
|
-
org_identifier?: string;
|
|
14
|
-
project_identifier?: string;
|
|
15
10
|
}
|
|
16
11
|
export type DeleteSigningKeyV3OkResponse = ResponseWithPagination<unknown>;
|
|
17
12
|
export type DeleteSigningKeyV3ErrorResponse = ErrorV3;
|
|
@@ -21,8 +16,8 @@ export interface DeleteSigningKeyV3Props extends DeleteSigningKeyV3MutationPathP
|
|
|
21
16
|
export declare function deleteSigningKeyV3(props: DeleteSigningKeyV3Props): Promise<DeleteSigningKeyV3OkResponse>;
|
|
22
17
|
/**
|
|
23
18
|
* Soft-deletes a signing key by marking it as DELETED. The key metadata is retained
|
|
24
|
-
* for audit purposes.
|
|
25
|
-
*
|
|
19
|
+
* for audit purposes. The key must not be attached to any registry: if it is, the
|
|
20
|
+
* request fails with 409 and the error message lists every registry to detach first.
|
|
26
21
|
*
|
|
27
22
|
*/
|
|
28
23
|
export declare function useDeleteSigningKeyV3Mutation(options?: Omit<UseMutationOptions<DeleteSigningKeyV3OkResponse, DeleteSigningKeyV3ErrorResponse, DeleteSigningKeyV3Props>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<DeleteSigningKeyV3OkResponse, ErrorV3, DeleteSigningKeyV3Props, unknown>;
|
|
@@ -8,8 +8,8 @@ export function deleteSigningKeyV3(props) {
|
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* Soft-deletes a signing key by marking it as DELETED. The key metadata is retained
|
|
11
|
-
* for audit purposes.
|
|
12
|
-
*
|
|
11
|
+
* for audit purposes. The key must not be attached to any registry: if it is, the
|
|
12
|
+
* request fails with 409 and the error message lists every registry to detach first.
|
|
13
13
|
*
|
|
14
14
|
*/
|
|
15
15
|
export function useDeleteSigningKeyV3Mutation(options) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
-
import type {
|
|
2
|
+
import type { SigningKeyDetailsResponseV3Response } from '../responses/SigningKeyDetailsResponseV3Response';
|
|
3
3
|
import type { ErrorV3 } from '../schemas/ErrorV3';
|
|
4
4
|
import type { GenerateKeyRequestV3 } from '../schemas/GenerateKeyRequestV3';
|
|
5
5
|
import type { ResponseWithPagination } from '../helpers';
|
|
@@ -10,9 +10,7 @@ export interface GenerateSigningKeyV3MutationQueryParams {
|
|
|
10
10
|
project_identifier?: string;
|
|
11
11
|
}
|
|
12
12
|
export type GenerateSigningKeyV3RequestBody = GenerateKeyRequestV3;
|
|
13
|
-
export type GenerateSigningKeyV3OkResponse = ResponseWithPagination<
|
|
14
|
-
data: SigningKeyV3;
|
|
15
|
-
}>;
|
|
13
|
+
export type GenerateSigningKeyV3OkResponse = ResponseWithPagination<SigningKeyDetailsResponseV3Response>;
|
|
16
14
|
export type GenerateSigningKeyV3ErrorResponse = ErrorV3;
|
|
17
15
|
export interface GenerateSigningKeyV3Props extends Omit<FetcherOptions<GenerateSigningKeyV3MutationQueryParams, GenerateSigningKeyV3RequestBody>, 'url'> {
|
|
18
16
|
queryParams: GenerateSigningKeyV3MutationQueryParams;
|
|
@@ -3,14 +3,15 @@ import type { ErrorV3 } from '../schemas/ErrorV3';
|
|
|
3
3
|
import type { ResponseWithPagination } from '../helpers';
|
|
4
4
|
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
5
|
export interface GetRegistryPublicKeyV3QueryPathParams {
|
|
6
|
-
/**
|
|
7
|
-
* @format uuid
|
|
8
|
-
*/
|
|
9
6
|
id: string;
|
|
10
7
|
}
|
|
8
|
+
export interface GetRegistryPublicKeyV3QueryQueryParams {
|
|
9
|
+
account_identifier: string;
|
|
10
|
+
}
|
|
11
11
|
export type GetRegistryPublicKeyV3OkResponse = ResponseWithPagination<unknown>;
|
|
12
12
|
export type GetRegistryPublicKeyV3ErrorResponse = ErrorV3;
|
|
13
|
-
export interface GetRegistryPublicKeyV3Props extends GetRegistryPublicKeyV3QueryPathParams, Omit<FetcherOptions<
|
|
13
|
+
export interface GetRegistryPublicKeyV3Props extends GetRegistryPublicKeyV3QueryPathParams, Omit<FetcherOptions<GetRegistryPublicKeyV3QueryQueryParams, unknown>, 'url'> {
|
|
14
|
+
queryParams: GetRegistryPublicKeyV3QueryQueryParams;
|
|
14
15
|
}
|
|
15
16
|
export declare function getRegistryPublicKeyV3(props: GetRegistryPublicKeyV3Props): Promise<GetRegistryPublicKeyV3OkResponse>;
|
|
16
17
|
/**
|
|
@@ -13,5 +13,5 @@ export function getRegistryPublicKeyV3(props) {
|
|
|
13
13
|
*
|
|
14
14
|
*/
|
|
15
15
|
export function useGetRegistryPublicKeyV3Query(props, options) {
|
|
16
|
-
return useQuery(['GetRegistryPublicKeyV3', props.id], ({ signal }) => getRegistryPublicKeyV3(Object.assign(Object.assign({}, props), { signal })), options);
|
|
16
|
+
return useQuery(['GetRegistryPublicKeyV3', props.id, props.queryParams], ({ signal }) => getRegistryPublicKeyV3(Object.assign(Object.assign({}, props), { signal })), options);
|
|
17
17
|
}
|
|
@@ -1,19 +1,17 @@
|
|
|
1
1
|
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
-
import type {
|
|
2
|
+
import type { SigningKeyDetailsResponseV3Response } from '../responses/SigningKeyDetailsResponseV3Response';
|
|
3
3
|
import type { ErrorV3 } from '../schemas/ErrorV3';
|
|
4
4
|
import type { ResponseWithPagination } from '../helpers';
|
|
5
5
|
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
6
|
export interface GetSigningKeyByNameV3QueryPathParams {
|
|
7
|
-
|
|
7
|
+
key_name: string;
|
|
8
8
|
}
|
|
9
9
|
export interface GetSigningKeyByNameV3QueryQueryParams {
|
|
10
10
|
account_identifier: string;
|
|
11
11
|
org_identifier?: string;
|
|
12
12
|
project_identifier?: string;
|
|
13
13
|
}
|
|
14
|
-
export type GetSigningKeyByNameV3OkResponse = ResponseWithPagination<
|
|
15
|
-
data: SigningKeyV3;
|
|
16
|
-
}>;
|
|
14
|
+
export type GetSigningKeyByNameV3OkResponse = ResponseWithPagination<SigningKeyDetailsResponseV3Response>;
|
|
17
15
|
export type GetSigningKeyByNameV3ErrorResponse = ErrorV3;
|
|
18
16
|
export interface GetSigningKeyByNameV3Props extends GetSigningKeyByNameV3QueryPathParams, Omit<FetcherOptions<GetSigningKeyByNameV3QueryQueryParams, unknown>, 'url'> {
|
|
19
17
|
queryParams: GetSigningKeyByNameV3QueryQueryParams;
|
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
import { useQuery } from '@tanstack/react-query';
|
|
5
5
|
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
6
|
export function getSigningKeyByNameV3(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/v3/signing-keys/by-name/${props.
|
|
7
|
+
return fetcher(Object.assign({ url: `/v3/signing-keys/by-name/${props.key_name}`, method: 'GET' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* Retrieves a signing key by its exact name within the specified space scope.
|
|
11
11
|
*/
|
|
12
12
|
export function useGetSigningKeyByNameV3Query(props, options) {
|
|
13
|
-
return useQuery(['GetSigningKeyByNameV3', props.
|
|
13
|
+
return useQuery(['GetSigningKeyByNameV3', props.key_name, props.queryParams], ({ signal }) => getSigningKeyByNameV3(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
14
|
}
|
|
@@ -3,15 +3,11 @@ import type { ErrorV3 } from '../schemas/ErrorV3';
|
|
|
3
3
|
import type { ResponseWithPagination } from '../helpers';
|
|
4
4
|
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
5
|
export interface GetSigningKeyPublicKeyV3QueryPathParams {
|
|
6
|
-
/**
|
|
7
|
-
* @format uuid
|
|
8
|
-
*/
|
|
9
6
|
id: string;
|
|
10
7
|
}
|
|
11
8
|
export interface GetSigningKeyPublicKeyV3QueryQueryParams {
|
|
12
9
|
account_identifier: string;
|
|
13
|
-
|
|
14
|
-
project_identifier?: string;
|
|
10
|
+
download?: boolean;
|
|
15
11
|
}
|
|
16
12
|
export type GetSigningKeyPublicKeyV3OkResponse = ResponseWithPagination<unknown>;
|
|
17
13
|
export type GetSigningKeyPublicKeyV3ErrorResponse = ErrorV3;
|
|
@@ -20,9 +16,15 @@ export interface GetSigningKeyPublicKeyV3Props extends GetSigningKeyPublicKeyV3Q
|
|
|
20
16
|
}
|
|
21
17
|
export declare function getSigningKeyPublicKeyV3(props: GetSigningKeyPublicKeyV3Props): Promise<GetSigningKeyPublicKeyV3OkResponse>;
|
|
22
18
|
/**
|
|
23
|
-
*
|
|
24
|
-
* (PGP for GPG keys, PEM for RSA keys).
|
|
25
|
-
*
|
|
19
|
+
* Returns the public key for a signing key in ASCII-armored format
|
|
20
|
+
* (PGP for GPG keys, PEM for RSA keys). Used by clients to verify
|
|
21
|
+
* signatures.
|
|
22
|
+
*
|
|
23
|
+
* By default the key is returned inline as `text/plain`. Pass
|
|
24
|
+
* `download=true` to receive it as a file attachment instead, with a
|
|
25
|
+
* `Content-Disposition` header and a key-type-specific content type
|
|
26
|
+
* (`application/pgp-keys` with a `.asc` filename for GPG keys,
|
|
27
|
+
* `application/x-pem-file` with a `.rsa.pub` filename for RSA keys).
|
|
26
28
|
*
|
|
27
29
|
*/
|
|
28
30
|
export declare function useGetSigningKeyPublicKeyV3Query(props: GetSigningKeyPublicKeyV3Props, options?: Omit<UseQueryOptions<GetSigningKeyPublicKeyV3OkResponse, GetSigningKeyPublicKeyV3ErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetSigningKeyPublicKeyV3OkResponse, ErrorV3>;
|
|
@@ -7,9 +7,15 @@ export function getSigningKeyPublicKeyV3(props) {
|
|
|
7
7
|
return fetcher(Object.assign({ url: `/v3/signing-keys/${props.id}/public-key`, method: 'GET' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
11
|
-
* (PGP for GPG keys, PEM for RSA keys).
|
|
12
|
-
*
|
|
10
|
+
* Returns the public key for a signing key in ASCII-armored format
|
|
11
|
+
* (PGP for GPG keys, PEM for RSA keys). Used by clients to verify
|
|
12
|
+
* signatures.
|
|
13
|
+
*
|
|
14
|
+
* By default the key is returned inline as `text/plain`. Pass
|
|
15
|
+
* `download=true` to receive it as a file attachment instead, with a
|
|
16
|
+
* `Content-Disposition` header and a key-type-specific content type
|
|
17
|
+
* (`application/pgp-keys` with a `.asc` filename for GPG keys,
|
|
18
|
+
* `application/x-pem-file` with a `.rsa.pub` filename for RSA keys).
|
|
13
19
|
*
|
|
14
20
|
*/
|
|
15
21
|
export function useGetSigningKeyPublicKeyV3Query(props, options) {
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { SigningKeySummaryResponseV3Response } from '../responses/SigningKeySummaryResponseV3Response';
|
|
3
|
+
import type { ErrorV3 } from '../schemas/ErrorV3';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface GetSigningKeySummaryV3QueryQueryParams {
|
|
7
|
+
account_identifier: string;
|
|
8
|
+
org_identifier?: string;
|
|
9
|
+
project_identifier?: string;
|
|
10
|
+
}
|
|
11
|
+
export type GetSigningKeySummaryV3OkResponse = ResponseWithPagination<SigningKeySummaryResponseV3Response>;
|
|
12
|
+
export type GetSigningKeySummaryV3ErrorResponse = ErrorV3;
|
|
13
|
+
export interface GetSigningKeySummaryV3Props extends Omit<FetcherOptions<GetSigningKeySummaryV3QueryQueryParams, unknown>, 'url'> {
|
|
14
|
+
queryParams: GetSigningKeySummaryV3QueryQueryParams;
|
|
15
|
+
}
|
|
16
|
+
export declare function getSigningKeySummaryV3(props: GetSigningKeySummaryV3Props): Promise<GetSigningKeySummaryV3OkResponse>;
|
|
17
|
+
/**
|
|
18
|
+
* Returns aggregate signing key counts for the requested scope: the total
|
|
19
|
+
* number of keys, the number of registries referencing a key in that
|
|
20
|
+
* scope, and the number of ACTIVE keys expiring within the next 30 days.
|
|
21
|
+
*
|
|
22
|
+
* Counts apply to the requested scope only — they are not rolled up from
|
|
23
|
+
* parent or child scopes.
|
|
24
|
+
*
|
|
25
|
+
*/
|
|
26
|
+
export declare function useGetSigningKeySummaryV3Query(props: GetSigningKeySummaryV3Props, options?: Omit<UseQueryOptions<GetSigningKeySummaryV3OkResponse, GetSigningKeySummaryV3ErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetSigningKeySummaryV3OkResponse, ErrorV3>;
|
|
@@ -0,0 +1,20 @@
|
|
|
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 getSigningKeySummaryV3(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v3/signing-keys/summary`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Returns aggregate signing key counts for the requested scope: the total
|
|
11
|
+
* number of keys, the number of registries referencing a key in that
|
|
12
|
+
* scope, and the number of ACTIVE keys expiring within the next 30 days.
|
|
13
|
+
*
|
|
14
|
+
* Counts apply to the requested scope only — they are not rolled up from
|
|
15
|
+
* parent or child scopes.
|
|
16
|
+
*
|
|
17
|
+
*/
|
|
18
|
+
export function useGetSigningKeySummaryV3Query(props, options) {
|
|
19
|
+
return useQuery(['GetSigningKeySummaryV3', props.queryParams], ({ signal }) => getSigningKeySummaryV3(Object.assign(Object.assign({}, props), { signal })), options);
|
|
20
|
+
}
|
|
@@ -1,19 +1,18 @@
|
|
|
1
1
|
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
-
import type {
|
|
2
|
+
import type { SigningKeyDetailsResponseV3Response } from '../responses/SigningKeyDetailsResponseV3Response';
|
|
3
3
|
import type { ErrorV3 } from '../schemas/ErrorV3';
|
|
4
4
|
import type { ResponseWithPagination } from '../helpers';
|
|
5
5
|
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
6
|
export interface GetSigningKeyV3QueryPathParams {
|
|
7
|
-
/**
|
|
8
|
-
* @format uuid
|
|
9
|
-
*/
|
|
10
7
|
id: string;
|
|
11
8
|
}
|
|
12
|
-
export
|
|
13
|
-
|
|
14
|
-
}
|
|
9
|
+
export interface GetSigningKeyV3QueryQueryParams {
|
|
10
|
+
account_identifier: string;
|
|
11
|
+
}
|
|
12
|
+
export type GetSigningKeyV3OkResponse = ResponseWithPagination<SigningKeyDetailsResponseV3Response>;
|
|
15
13
|
export type GetSigningKeyV3ErrorResponse = ErrorV3;
|
|
16
|
-
export interface GetSigningKeyV3Props extends GetSigningKeyV3QueryPathParams, Omit<FetcherOptions<
|
|
14
|
+
export interface GetSigningKeyV3Props extends GetSigningKeyV3QueryPathParams, Omit<FetcherOptions<GetSigningKeyV3QueryQueryParams, unknown>, 'url'> {
|
|
15
|
+
queryParams: GetSigningKeyV3QueryQueryParams;
|
|
17
16
|
}
|
|
18
17
|
export declare function getSigningKeyV3(props: GetSigningKeyV3Props): Promise<GetSigningKeyV3OkResponse>;
|
|
19
18
|
/**
|
|
@@ -10,5 +10,5 @@ export function getSigningKeyV3(props) {
|
|
|
10
10
|
* Retrieves detailed information about a specific signing key by ID.
|
|
11
11
|
*/
|
|
12
12
|
export function useGetSigningKeyV3Query(props, options) {
|
|
13
|
-
return useQuery(['GetSigningKeyV3', props.id], ({ signal }) => getSigningKeyV3(Object.assign(Object.assign({}, props), { signal })), options);
|
|
13
|
+
return useQuery(['GetSigningKeyV3', props.id, props.queryParams], ({ signal }) => getSigningKeyV3(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
14
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
-
import type {
|
|
2
|
+
import type { SigningKeyDetailsResponseV3Response } from '../responses/SigningKeyDetailsResponseV3Response';
|
|
3
3
|
import type { ErrorV3 } from '../schemas/ErrorV3';
|
|
4
4
|
import type { ImportKeyRequestV3 } from '../schemas/ImportKeyRequestV3';
|
|
5
5
|
import type { ResponseWithPagination } from '../helpers';
|
|
@@ -10,9 +10,7 @@ export interface ImportSigningKeyV3MutationQueryParams {
|
|
|
10
10
|
project_identifier?: string;
|
|
11
11
|
}
|
|
12
12
|
export type ImportSigningKeyV3RequestBody = ImportKeyRequestV3;
|
|
13
|
-
export type ImportSigningKeyV3OkResponse = ResponseWithPagination<
|
|
14
|
-
data: SigningKeyV3;
|
|
15
|
-
}>;
|
|
13
|
+
export type ImportSigningKeyV3OkResponse = ResponseWithPagination<SigningKeyDetailsResponseV3Response>;
|
|
16
14
|
export type ImportSigningKeyV3ErrorResponse = ErrorV3;
|
|
17
15
|
export interface ImportSigningKeyV3Props extends Omit<FetcherOptions<ImportSigningKeyV3MutationQueryParams, ImportSigningKeyV3RequestBody>, 'url'> {
|
|
18
16
|
queryParams: ImportSigningKeyV3MutationQueryParams;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ListPackageTypeConfigsResponseV3Response } from '../responses/ListPackageTypeConfigsResponseV3Response';
|
|
3
|
+
import type { ErrorV3 } from '../schemas/ErrorV3';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface ListPackageTypeConfigsV3QueryQueryParams {
|
|
7
|
+
account_identifier: string;
|
|
8
|
+
package_types?: string[];
|
|
9
|
+
}
|
|
10
|
+
export type ListPackageTypeConfigsV3OkResponse = ResponseWithPagination<ListPackageTypeConfigsResponseV3Response>;
|
|
11
|
+
export type ListPackageTypeConfigsV3ErrorResponse = ErrorV3;
|
|
12
|
+
export interface ListPackageTypeConfigsV3Props extends Omit<FetcherOptions<ListPackageTypeConfigsV3QueryQueryParams, unknown>, 'url'> {
|
|
13
|
+
queryParams: ListPackageTypeConfigsV3QueryQueryParams;
|
|
14
|
+
}
|
|
15
|
+
export declare function listPackageTypeConfigsV3(props: ListPackageTypeConfigsV3Props): Promise<ListPackageTypeConfigsV3OkResponse>;
|
|
16
|
+
/**
|
|
17
|
+
* Lists per-package-type UI configuration and capability flags for
|
|
18
|
+
* the Harness Artifact Registry, such as whether the upstream
|
|
19
|
+
* resource-cache TTL feature is currently active for the account.
|
|
20
|
+
* Bounded, non-paginated catalog — one entry per known package type.
|
|
21
|
+
* Use `package_types` to narrow the response to specific package
|
|
22
|
+
* types.
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
export declare function useListPackageTypeConfigsV3Query(props: ListPackageTypeConfigsV3Props, options?: Omit<UseQueryOptions<ListPackageTypeConfigsV3OkResponse, ListPackageTypeConfigsV3ErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListPackageTypeConfigsV3OkResponse, ErrorV3>;
|
|
@@ -0,0 +1,20 @@
|
|
|
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 listPackageTypeConfigsV3(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v3/config/package-types`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Lists per-package-type UI configuration and capability flags for
|
|
11
|
+
* the Harness Artifact Registry, such as whether the upstream
|
|
12
|
+
* resource-cache TTL feature is currently active for the account.
|
|
13
|
+
* Bounded, non-paginated catalog — one entry per known package type.
|
|
14
|
+
* Use `package_types` to narrow the response to specific package
|
|
15
|
+
* types.
|
|
16
|
+
*
|
|
17
|
+
*/
|
|
18
|
+
export function useListPackageTypeConfigsV3Query(props, options) {
|
|
19
|
+
return useQuery(['ListPackageTypeConfigsV3', props.queryParams], ({ signal }) => listPackageTypeConfigsV3(Object.assign(Object.assign({}, props), { signal })), options);
|
|
20
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
-
import type {
|
|
2
|
+
import type { ListSigningKeysResponseV3Response } from '../responses/ListSigningKeysResponseV3Response';
|
|
3
3
|
import type { ErrorV3 } from '../schemas/ErrorV3';
|
|
4
4
|
import type { ResponseWithPagination } from '../helpers';
|
|
5
5
|
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
@@ -18,10 +18,10 @@ export interface ListSigningKeysV3QueryQueryParams {
|
|
|
18
18
|
*/
|
|
19
19
|
size?: number;
|
|
20
20
|
search_term?: string;
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
types?: string[];
|
|
22
|
+
statuses?: string[];
|
|
23
23
|
}
|
|
24
|
-
export type ListSigningKeysV3OkResponse = ResponseWithPagination<
|
|
24
|
+
export type ListSigningKeysV3OkResponse = ResponseWithPagination<ListSigningKeysResponseV3Response>;
|
|
25
25
|
export type ListSigningKeysV3ErrorResponse = ErrorV3;
|
|
26
26
|
export interface ListSigningKeysV3Props extends Omit<FetcherOptions<ListSigningKeysV3QueryQueryParams, unknown>, 'url'> {
|
|
27
27
|
queryParams: ListSigningKeysV3QueryQueryParams;
|
|
@@ -1,24 +1,17 @@
|
|
|
1
1
|
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
-
import type {
|
|
2
|
+
import type { SigningKeyDetailsResponseV3Response } from '../responses/SigningKeyDetailsResponseV3Response';
|
|
3
3
|
import type { ErrorV3 } from '../schemas/ErrorV3';
|
|
4
4
|
import type { UpdateKeyRequestV3 } from '../schemas/UpdateKeyRequestV3';
|
|
5
5
|
import type { ResponseWithPagination } from '../helpers';
|
|
6
6
|
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
7
7
|
export interface UpdateSigningKeyV3MutationPathParams {
|
|
8
|
-
/**
|
|
9
|
-
* @format uuid
|
|
10
|
-
*/
|
|
11
8
|
id: string;
|
|
12
9
|
}
|
|
13
10
|
export interface UpdateSigningKeyV3MutationQueryParams {
|
|
14
11
|
account_identifier: string;
|
|
15
|
-
org_identifier?: string;
|
|
16
|
-
project_identifier?: string;
|
|
17
12
|
}
|
|
18
13
|
export type UpdateSigningKeyV3RequestBody = UpdateKeyRequestV3;
|
|
19
|
-
export type UpdateSigningKeyV3OkResponse = ResponseWithPagination<
|
|
20
|
-
data: SigningKeyV3;
|
|
21
|
-
}>;
|
|
14
|
+
export type UpdateSigningKeyV3OkResponse = ResponseWithPagination<SigningKeyDetailsResponseV3Response>;
|
|
22
15
|
export type UpdateSigningKeyV3ErrorResponse = ErrorV3;
|
|
23
16
|
export interface UpdateSigningKeyV3Props extends UpdateSigningKeyV3MutationPathParams, Omit<FetcherOptions<UpdateSigningKeyV3MutationQueryParams, UpdateSigningKeyV3RequestBody>, 'url'> {
|
|
24
17
|
queryParams: UpdateSigningKeyV3MutationQueryParams;
|
|
@@ -26,8 +19,7 @@ export interface UpdateSigningKeyV3Props extends UpdateSigningKeyV3MutationPathP
|
|
|
26
19
|
}
|
|
27
20
|
export declare function updateSigningKeyV3(props: UpdateSigningKeyV3Props): Promise<UpdateSigningKeyV3OkResponse>;
|
|
28
21
|
/**
|
|
29
|
-
* Updates a signing key's
|
|
30
|
-
* Status transitions have validation rules (e.g., cannot set REVOKED key to ACTIVE).
|
|
22
|
+
* Updates a signing key's status.
|
|
31
23
|
*
|
|
32
24
|
*/
|
|
33
25
|
export declare function useUpdateSigningKeyV3Mutation(options?: Omit<UseMutationOptions<UpdateSigningKeyV3OkResponse, UpdateSigningKeyV3ErrorResponse, UpdateSigningKeyV3Props>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UpdateSigningKeyV3OkResponse, ErrorV3, UpdateSigningKeyV3Props, unknown>;
|
|
@@ -4,11 +4,10 @@
|
|
|
4
4
|
import { useMutation } from '@tanstack/react-query';
|
|
5
5
|
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
6
|
export function updateSigningKeyV3(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/v3/signing-keys/${props.id}`, method: '
|
|
7
|
+
return fetcher(Object.assign({ url: `/v3/signing-keys/${props.id}`, method: 'PATCH' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
* Updates a signing key's
|
|
11
|
-
* Status transitions have validation rules (e.g., cannot set REVOKED key to ACTIVE).
|
|
10
|
+
* Updates a signing key's status.
|
|
12
11
|
*
|
|
13
12
|
*/
|
|
14
13
|
export function useUpdateSigningKeyV3Mutation(options) {
|
|
@@ -67,8 +67,6 @@ export type { DeleteVersionV3ErrorResponse, DeleteVersionV3MutationPathParams, D
|
|
|
67
67
|
export { deleteVersionV3, useDeleteVersionV3Mutation } from './hooks/useDeleteVersionV3Mutation';
|
|
68
68
|
export type { DeleteWebhookErrorResponse, DeleteWebhookMutationPathParams, DeleteWebhookOkResponse, DeleteWebhookProps, } from './hooks/useDeleteWebhookMutation';
|
|
69
69
|
export { deleteWebhook, useDeleteWebhookMutation } from './hooks/useDeleteWebhookMutation';
|
|
70
|
-
export type { DownloadSigningKeyPublicKeyV3ErrorResponse, DownloadSigningKeyPublicKeyV3OkResponse, DownloadSigningKeyPublicKeyV3Props, DownloadSigningKeyPublicKeyV3QueryPathParams, DownloadSigningKeyPublicKeyV3QueryQueryParams, } from './hooks/useDownloadSigningKeyPublicKeyV3Query';
|
|
71
|
-
export { downloadSigningKeyPublicKeyV3, useDownloadSigningKeyPublicKeyV3Query, } from './hooks/useDownloadSigningKeyPublicKeyV3Query';
|
|
72
70
|
export type { EvaluateArtifactScanV3ErrorResponse, EvaluateArtifactScanV3MutationQueryParams, EvaluateArtifactScanV3OkResponse, EvaluateArtifactScanV3Props, EvaluateArtifactScanV3RequestBody, } from './hooks/useEvaluateArtifactScanV3Mutation';
|
|
73
71
|
export { evaluateArtifactScanV3, useEvaluateArtifactScanV3Mutation, } from './hooks/useEvaluateArtifactScanV3Mutation';
|
|
74
72
|
export type { FindSpaceLabelErrorResponse, FindSpaceLabelOkResponse, FindSpaceLabelProps, FindSpaceLabelQueryPathParams, FindSpaceLabelQueryQueryParams, } from './hooks/useFindSpaceLabelQuery';
|
|
@@ -175,7 +173,7 @@ export type { GetRegistriesStatsV3ErrorResponse, GetRegistriesStatsV3MutationQue
|
|
|
175
173
|
export { getRegistriesStatsV3, useGetRegistriesStatsV3Mutation, } from './hooks/useGetRegistriesStatsV3Mutation';
|
|
176
174
|
export type { GetRegistryMetadataV3ErrorResponse, GetRegistryMetadataV3OkResponse, GetRegistryMetadataV3Props, GetRegistryMetadataV3QueryPathParams, GetRegistryMetadataV3QueryQueryParams, } from './hooks/useGetRegistryMetadataV3Query';
|
|
177
175
|
export { getRegistryMetadataV3, useGetRegistryMetadataV3Query, } from './hooks/useGetRegistryMetadataV3Query';
|
|
178
|
-
export type { GetRegistryPublicKeyV3ErrorResponse, GetRegistryPublicKeyV3OkResponse, GetRegistryPublicKeyV3Props, GetRegistryPublicKeyV3QueryPathParams, } from './hooks/useGetRegistryPublicKeyV3Query';
|
|
176
|
+
export type { GetRegistryPublicKeyV3ErrorResponse, GetRegistryPublicKeyV3OkResponse, GetRegistryPublicKeyV3Props, GetRegistryPublicKeyV3QueryPathParams, GetRegistryPublicKeyV3QueryQueryParams, } from './hooks/useGetRegistryPublicKeyV3Query';
|
|
179
177
|
export { getRegistryPublicKeyV3, useGetRegistryPublicKeyV3Query, } from './hooks/useGetRegistryPublicKeyV3Query';
|
|
180
178
|
export type { GetRegistryErrorResponse, GetRegistryOkResponse, GetRegistryProps, GetRegistryQueryPathParams, } from './hooks/useGetRegistryQuery';
|
|
181
179
|
export { getRegistry, useGetRegistryQuery } from './hooks/useGetRegistryQuery';
|
|
@@ -185,7 +183,9 @@ export type { GetSigningKeyByNameV3ErrorResponse, GetSigningKeyByNameV3OkRespons
|
|
|
185
183
|
export { getSigningKeyByNameV3, useGetSigningKeyByNameV3Query, } from './hooks/useGetSigningKeyByNameV3Query';
|
|
186
184
|
export type { GetSigningKeyPublicKeyV3ErrorResponse, GetSigningKeyPublicKeyV3OkResponse, GetSigningKeyPublicKeyV3Props, GetSigningKeyPublicKeyV3QueryPathParams, GetSigningKeyPublicKeyV3QueryQueryParams, } from './hooks/useGetSigningKeyPublicKeyV3Query';
|
|
187
185
|
export { getSigningKeyPublicKeyV3, useGetSigningKeyPublicKeyV3Query, } from './hooks/useGetSigningKeyPublicKeyV3Query';
|
|
188
|
-
export type {
|
|
186
|
+
export type { GetSigningKeySummaryV3ErrorResponse, GetSigningKeySummaryV3OkResponse, GetSigningKeySummaryV3Props, GetSigningKeySummaryV3QueryQueryParams, } from './hooks/useGetSigningKeySummaryV3Query';
|
|
187
|
+
export { getSigningKeySummaryV3, useGetSigningKeySummaryV3Query, } from './hooks/useGetSigningKeySummaryV3Query';
|
|
188
|
+
export type { GetSigningKeyV3ErrorResponse, GetSigningKeyV3OkResponse, GetSigningKeyV3Props, GetSigningKeyV3QueryPathParams, GetSigningKeyV3QueryQueryParams, } from './hooks/useGetSigningKeyV3Query';
|
|
189
189
|
export { getSigningKeyV3, useGetSigningKeyV3Query } from './hooks/useGetSigningKeyV3Query';
|
|
190
190
|
export type { GetStorageDetailsErrorResponse, GetStorageDetailsOkResponse, GetStorageDetailsProps, GetStorageDetailsQueryPathParams, } from './hooks/useGetStorageDetailsQuery';
|
|
191
191
|
export { getStorageDetails, useGetStorageDetailsQuery } from './hooks/useGetStorageDetailsQuery';
|
|
@@ -229,6 +229,8 @@ export type { ListLifecycleRulesV3ErrorResponse, ListLifecycleRulesV3OkResponse,
|
|
|
229
229
|
export { listLifecycleRulesV3, useListLifecycleRulesV3Query, } from './hooks/useListLifecycleRulesV3Query';
|
|
230
230
|
export type { ListMigrationImagesErrorResponse, ListMigrationImagesOkResponse, ListMigrationImagesProps, ListMigrationImagesQueryPathParams, ListMigrationImagesQueryQueryParams, } from './hooks/useListMigrationImagesQuery';
|
|
231
231
|
export { listMigrationImages, useListMigrationImagesQuery, } from './hooks/useListMigrationImagesQuery';
|
|
232
|
+
export type { ListPackageTypeConfigsV3ErrorResponse, ListPackageTypeConfigsV3OkResponse, ListPackageTypeConfigsV3Props, ListPackageTypeConfigsV3QueryQueryParams, } from './hooks/useListPackageTypeConfigsV3Query';
|
|
233
|
+
export { listPackageTypeConfigsV3, useListPackageTypeConfigsV3Query, } from './hooks/useListPackageTypeConfigsV3Query';
|
|
232
234
|
export type { ListPackagesErrorResponse, ListPackagesOkResponse, ListPackagesProps, ListPackagesQueryQueryParams, } from './hooks/useListPackagesQuery';
|
|
233
235
|
export { listPackages, useListPackagesQuery } from './hooks/useListPackagesQuery';
|
|
234
236
|
export type { ListPackagesV3ErrorResponse, ListPackagesV3OkResponse, ListPackagesV3Props, ListPackagesV3QueryQueryParams, } from './hooks/useListPackagesV3Query';
|
|
@@ -422,12 +424,14 @@ export type { ListMigrationImageResponseResponse } from './responses/ListMigrati
|
|
|
422
424
|
export type { ListOciArtifactTagsResponseResponse } from './responses/ListOciArtifactTagsResponseResponse';
|
|
423
425
|
export type { ListPackageResponseResponse } from './responses/ListPackageResponseResponse';
|
|
424
426
|
export type { ListPackageResponseV3Response } from './responses/ListPackageResponseV3Response';
|
|
427
|
+
export type { ListPackageTypeConfigsResponseV3Response } from './responses/ListPackageTypeConfigsResponseV3Response';
|
|
425
428
|
export type { ListPipelineBuildInfoDetailsResponseV3Response } from './responses/ListPipelineBuildInfoDetailsResponseV3Response';
|
|
426
429
|
export type { ListPrincipalsResponseV3Response } from './responses/ListPrincipalsResponseV3Response';
|
|
427
430
|
export type { ListRegistryArtifactResponseResponse } from './responses/ListRegistryArtifactResponseResponse';
|
|
428
431
|
export type { ListRegistryResponseResponse } from './responses/ListRegistryResponseResponse';
|
|
429
432
|
export type { ListRegistryResponseV3Response } from './responses/ListRegistryResponseV3Response';
|
|
430
433
|
export type { ListReplicationRuleResponseResponse } from './responses/ListReplicationRuleResponseResponse';
|
|
434
|
+
export type { ListSigningKeysResponseV3Response } from './responses/ListSigningKeysResponseV3Response';
|
|
431
435
|
export type { ListVersionDeploymentsResponseV3Response } from './responses/ListVersionDeploymentsResponseV3Response';
|
|
432
436
|
export type { ListVersionResponseResponse } from './responses/ListVersionResponseResponse';
|
|
433
437
|
export type { ListVersionResponseV3Response } from './responses/ListVersionResponseV3Response';
|
|
@@ -451,6 +455,8 @@ export type { RedirectV3Response } from './responses/RedirectV3Response';
|
|
|
451
455
|
export type { RegistriesStatsResponseV3Response } from './responses/RegistriesStatsResponseV3Response';
|
|
452
456
|
export type { RegistryResponseResponse } from './responses/RegistryResponseResponse';
|
|
453
457
|
export type { ReplicationRuleResponseResponse } from './responses/ReplicationRuleResponseResponse';
|
|
458
|
+
export type { SigningKeyDetailsResponseV3Response } from './responses/SigningKeyDetailsResponseV3Response';
|
|
459
|
+
export type { SigningKeySummaryResponseV3Response } from './responses/SigningKeySummaryResponseV3Response';
|
|
454
460
|
export type { StorageDetailsResponseResponse } from './responses/StorageDetailsResponseResponse';
|
|
455
461
|
export type { SuccessResponse } from './responses/SuccessResponse';
|
|
456
462
|
export type { SystemInfoResponseV3Response } from './responses/SystemInfoResponseV3Response';
|
|
@@ -583,7 +589,6 @@ export type { HelmHttpArtifactDetailConfig } from './schemas/HelmHttpArtifactDet
|
|
|
583
589
|
export type { HuggingFaceArtifactDetailConfig } from './schemas/HuggingFaceArtifactDetailConfig';
|
|
584
590
|
export type { ImportKeyRequestV3 } from './schemas/ImportKeyRequestV3';
|
|
585
591
|
export type { JfrogReplicationRegistry } from './schemas/JfrogReplicationRegistry';
|
|
586
|
-
export type { KeyMetaV3 } from './schemas/KeyMetaV3';
|
|
587
592
|
export type { LicensePolicyFailureDetailConfigV3 } from './schemas/LicensePolicyFailureDetailConfigV3';
|
|
588
593
|
export type { LifecycleDryRunRequestBodyV3 } from './schemas/LifecycleDryRunRequestBodyV3';
|
|
589
594
|
export type { LifecycleExecutionItemResponseV3 } from './schemas/LifecycleExecutionItemResponseV3';
|
|
@@ -629,6 +634,7 @@ export type { ListMetadataValuesResponseBodyV3 } from './schemas/ListMetadataVal
|
|
|
629
634
|
export type { ListMigrationImage } from './schemas/ListMigrationImage';
|
|
630
635
|
export type { ListOciArtifactTags } from './schemas/ListOciArtifactTags';
|
|
631
636
|
export type { ListPackage } from './schemas/ListPackage';
|
|
637
|
+
export type { ListPackageTypeConfigsResponseBodyV3 } from './schemas/ListPackageTypeConfigsResponseBodyV3';
|
|
632
638
|
export type { ListPackagesResponseBodyV3 } from './schemas/ListPackagesResponseBodyV3';
|
|
633
639
|
export type { ListPipelineBuildInfoDetailsResponseBodyV3 } from './schemas/ListPipelineBuildInfoDetailsResponseBodyV3';
|
|
634
640
|
export type { ListPrincipalsResponseBodyV3 } from './schemas/ListPrincipalsResponseBodyV3';
|
|
@@ -636,7 +642,7 @@ export type { ListRegistriesResponseBodyV3 } from './schemas/ListRegistriesRespo
|
|
|
636
642
|
export type { ListRegistry } from './schemas/ListRegistry';
|
|
637
643
|
export type { ListRegistryArtifact } from './schemas/ListRegistryArtifact';
|
|
638
644
|
export type { ListReplicationRule } from './schemas/ListReplicationRule';
|
|
639
|
-
export type {
|
|
645
|
+
export type { ListSigningKeysResponseBodyV3 } from './schemas/ListSigningKeysResponseBodyV3';
|
|
640
646
|
export type { ListVersion } from './schemas/ListVersion';
|
|
641
647
|
export type { ListVersionDeploymentsResponseBodyV3 } from './schemas/ListVersionDeploymentsResponseBodyV3';
|
|
642
648
|
export type { ListVersionsResponseBodyV3 } from './schemas/ListVersionsResponseBodyV3';
|
|
@@ -668,6 +674,8 @@ export type { PackageKindV3 } from './schemas/PackageKindV3';
|
|
|
668
674
|
export type { PackageMetadata } from './schemas/PackageMetadata';
|
|
669
675
|
export type { PackageStatsV3 } from './schemas/PackageStatsV3';
|
|
670
676
|
export type { PackageType } from './schemas/PackageType';
|
|
677
|
+
export type { PackageTypeCapabilitiesV3 } from './schemas/PackageTypeCapabilitiesV3';
|
|
678
|
+
export type { PackageTypeConfigV3 } from './schemas/PackageTypeConfigV3';
|
|
671
679
|
export type { PackageTypeV3 } from './schemas/PackageTypeV3';
|
|
672
680
|
export type { PackageV3 } from './schemas/PackageV3';
|
|
673
681
|
export type { PackagesStatsRequestInputV3 } from './schemas/PackagesStatsRequestInputV3';
|
|
@@ -718,6 +726,10 @@ export type { SectionType } from './schemas/SectionType';
|
|
|
718
726
|
export type { SecurityPolicyFailureDetailConfigV3 } from './schemas/SecurityPolicyFailureDetailConfigV3';
|
|
719
727
|
export type { SecurityPolicyFailureVulnerabilityV3 } from './schemas/SecurityPolicyFailureVulnerabilityV3';
|
|
720
728
|
export type { SigningConfig } from './schemas/SigningConfig';
|
|
729
|
+
export type { SigningKeyAlgorithmV3 } from './schemas/SigningKeyAlgorithmV3';
|
|
730
|
+
export type { SigningKeyStatusV3 } from './schemas/SigningKeyStatusV3';
|
|
731
|
+
export type { SigningKeySummaryV3 } from './schemas/SigningKeySummaryV3';
|
|
732
|
+
export type { SigningKeyTypeV3 } from './schemas/SigningKeyTypeV3';
|
|
721
733
|
export type { SigningKeyV3 } from './schemas/SigningKeyV3';
|
|
722
734
|
export type { SlsaDetails } from './schemas/SlsaDetails';
|
|
723
735
|
export type { StartedAtMsV3 } from './schemas/StartedAtMsV3';
|
|
@@ -32,7 +32,6 @@ export { deleteSpaceLabel, useDeleteSpaceLabelMutation } from './hooks/useDelete
|
|
|
32
32
|
export { deleteSpaceLabelValue, useDeleteSpaceLabelValueMutation, } from './hooks/useDeleteSpaceLabelValueMutation';
|
|
33
33
|
export { deleteVersionV3, useDeleteVersionV3Mutation } from './hooks/useDeleteVersionV3Mutation';
|
|
34
34
|
export { deleteWebhook, useDeleteWebhookMutation } from './hooks/useDeleteWebhookMutation';
|
|
35
|
-
export { downloadSigningKeyPublicKeyV3, useDownloadSigningKeyPublicKeyV3Query, } from './hooks/useDownloadSigningKeyPublicKeyV3Query';
|
|
36
35
|
export { evaluateArtifactScanV3, useEvaluateArtifactScanV3Mutation, } from './hooks/useEvaluateArtifactScanV3Mutation';
|
|
37
36
|
export { findSpaceLabel, useFindSpaceLabelQuery } from './hooks/useFindSpaceLabelQuery';
|
|
38
37
|
export { forceUnlockTerraformBackendV3, useForceUnlockTerraformBackendV3Mutation, } from './hooks/useForceUnlockTerraformBackendV3Mutation';
|
|
@@ -91,6 +90,7 @@ export { getRegistry, useGetRegistryQuery } from './hooks/useGetRegistryQuery';
|
|
|
91
90
|
export { getReplicationRule, useGetReplicationRuleQuery } from './hooks/useGetReplicationRuleQuery';
|
|
92
91
|
export { getSigningKeyByNameV3, useGetSigningKeyByNameV3Query, } from './hooks/useGetSigningKeyByNameV3Query';
|
|
93
92
|
export { getSigningKeyPublicKeyV3, useGetSigningKeyPublicKeyV3Query, } from './hooks/useGetSigningKeyPublicKeyV3Query';
|
|
93
|
+
export { getSigningKeySummaryV3, useGetSigningKeySummaryV3Query, } from './hooks/useGetSigningKeySummaryV3Query';
|
|
94
94
|
export { getSigningKeyV3, useGetSigningKeyV3Query } from './hooks/useGetSigningKeyV3Query';
|
|
95
95
|
export { getStorageDetails, useGetStorageDetailsQuery } from './hooks/useGetStorageDetailsQuery';
|
|
96
96
|
export { getSystemInfoV3, useGetSystemInfoV3Query } from './hooks/useGetSystemInfoV3Query';
|
|
@@ -113,6 +113,7 @@ export { listLifecycleExecutionItemsV3, useListLifecycleExecutionItemsV3Query, }
|
|
|
113
113
|
export { listLifecycleExecutionsV3, useListLifecycleExecutionsV3Query, } from './hooks/useListLifecycleExecutionsV3Query';
|
|
114
114
|
export { listLifecycleRulesV3, useListLifecycleRulesV3Query, } from './hooks/useListLifecycleRulesV3Query';
|
|
115
115
|
export { listMigrationImages, useListMigrationImagesQuery, } from './hooks/useListMigrationImagesQuery';
|
|
116
|
+
export { listPackageTypeConfigsV3, useListPackageTypeConfigsV3Query, } from './hooks/useListPackageTypeConfigsV3Query';
|
|
116
117
|
export { listPackages, useListPackagesQuery } from './hooks/useListPackagesQuery';
|
|
117
118
|
export { listPackagesV3, useListPackagesV3Query } from './hooks/useListPackagesV3Query';
|
|
118
119
|
export { listPipelineBuildInfoDetailsV3, useListPipelineBuildInfoDetailsV3Query, } from './hooks/useListPipelineBuildInfoDetailsV3Query';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,10 +1,24 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Request to generate a new signing key.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
* - GPG
|
|
6
|
-
* -
|
|
7
|
-
*
|
|
4
|
+
* `type` selects the cryptographic system to generate:
|
|
5
|
+
* - GPG: OpenPGP key for package signing (Debian, RPM, Alpine)
|
|
6
|
+
* - RSA: Raw RSA key for direct signing operations
|
|
7
|
+
*
|
|
8
|
+
* `algorithm` selects the underlying algorithm. Only RSA and ED25519 can
|
|
9
|
+
* be generated; other `SigningKeyAlgorithmV3` values (e.g. ECDSA) are
|
|
10
|
+
* rejected with 400 here but may appear on imported keys.
|
|
11
|
+
*
|
|
12
|
+
* Key size is not a request parameter. It is fixed per algorithm so that
|
|
13
|
+
* every generated key is one package clients are known to accept:
|
|
14
|
+
* - GPG + ED25519: 256 bits (fixed by the curve)
|
|
15
|
+
* - GPG + RSA: 4096 bits
|
|
16
|
+
* - RSA + RSA: 4096 bits
|
|
17
|
+
*
|
|
18
|
+
* The resulting size is reported as `size` on the created key.
|
|
19
|
+
*
|
|
20
|
+
* Supported combinations: GPG + ED25519, GPG + RSA, RSA + RSA. Pairing
|
|
21
|
+
* `type: RSA` with `algorithm: ED25519` is rejected with 400.
|
|
8
22
|
*
|
|
9
23
|
*/
|
|
10
24
|
export interface GenerateKeyRequestV3 {
|
|
@@ -23,26 +37,7 @@ export interface GenerateKeyRequestV3 {
|
|
|
23
37
|
/**
|
|
24
38
|
* Human-readable name for the key
|
|
25
39
|
*/
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* Key size in bits (only for RSA algorithm):
|
|
29
|
-
* - 2048: Minimum size, faster but less secure
|
|
30
|
-
* - 3072: Recommended default, good balance
|
|
31
|
-
* - 4096: Maximum security, slower operations
|
|
32
|
-
*
|
|
33
|
-
* Not applicable for Ed25519 (fixed size).
|
|
34
|
-
*
|
|
35
|
-
* @format int32
|
|
36
|
-
* @default 3072
|
|
37
|
-
*/
|
|
38
|
-
keySize?: number | null;
|
|
39
|
-
/**
|
|
40
|
-
* Type of key to generate:
|
|
41
|
-
* - GPG: OpenPGP key for package signing (Debian, RPM, Alpine)
|
|
42
|
-
* - RSA: Raw RSA key for direct signing operations
|
|
43
|
-
*
|
|
44
|
-
*/
|
|
45
|
-
keyType: 'GPG' | 'RSA';
|
|
40
|
+
name: string;
|
|
46
41
|
/**
|
|
47
42
|
* Organization identifier (optional, for org-level keys)
|
|
48
43
|
*/
|
|
@@ -51,4 +46,11 @@ export interface GenerateKeyRequestV3 {
|
|
|
51
46
|
* Project identifier (optional, for project-level keys)
|
|
52
47
|
*/
|
|
53
48
|
projectIdentifier?: string | null;
|
|
49
|
+
/**
|
|
50
|
+
* Type of key to generate:
|
|
51
|
+
* - GPG: OpenPGP key for package signing (Debian, RPM, Alpine)
|
|
52
|
+
* - RSA: Raw RSA key for direct signing operations
|
|
53
|
+
*
|
|
54
|
+
*/
|
|
55
|
+
type: 'GPG' | 'RSA';
|
|
54
56
|
}
|
|
@@ -1,5 +1,14 @@
|
|
|
1
|
+
import type { SigningKeyTypeV3 } from '../schemas/SigningKeyTypeV3';
|
|
1
2
|
/**
|
|
2
|
-
* Request to import an existing signing key from secret manager
|
|
3
|
+
* Request to import an existing signing key from secret manager. `type` is the cryptographic system of the key being imported.
|
|
4
|
+
*
|
|
5
|
+
* Passphrase-protected keys are supported for both GPG and RSA. Supply `passphraseSecretIdentifier` and `passphraseSecretSpacePath` together; providing only one is rejected with 400. The passphrase is stored as a secret reference and re-read on every signing operation, so it must remain readable for the lifetime of the key.
|
|
6
|
+
*
|
|
7
|
+
* Accepted RSA private key encodings:
|
|
8
|
+
* - PKCS#1 (`RSA PRIVATE KEY`), encrypted or not
|
|
9
|
+
* - PKCS#8 (`PRIVATE KEY` / `ENCRYPTED PRIVATE KEY`)
|
|
10
|
+
* - OpenSSH (`OPENSSH PRIVATE KEY`), encrypted or not
|
|
11
|
+
*
|
|
3
12
|
*/
|
|
4
13
|
export interface ImportKeyRequestV3 {
|
|
5
14
|
/**
|
|
@@ -9,25 +18,19 @@ export interface ImportKeyRequestV3 {
|
|
|
9
18
|
*
|
|
10
19
|
* @format int64
|
|
11
20
|
*/
|
|
12
|
-
|
|
21
|
+
expirationAt?: number | null;
|
|
13
22
|
/**
|
|
14
23
|
* Human-readable name for the key
|
|
15
24
|
*/
|
|
16
|
-
|
|
25
|
+
name: string;
|
|
17
26
|
/**
|
|
18
|
-
*
|
|
19
|
-
|
|
20
|
-
keyType: 'GPG' | 'RSA';
|
|
21
|
-
/**
|
|
22
|
-
* Organization identifier (optional, for org-level keys)
|
|
23
|
-
*/
|
|
24
|
-
orgIdentifier?: string | null;
|
|
25
|
-
/**
|
|
26
|
-
* Optional reference to passphrase secret (if key is encrypted)
|
|
27
|
+
* Reference to the passphrase secret. Required when the private key is encrypted, for both GPG and RSA keys, and must be provided together with passphraseSecretSpacePath.
|
|
28
|
+
*
|
|
27
29
|
*/
|
|
28
30
|
passphraseSecretIdentifier?: string | null;
|
|
29
31
|
/**
|
|
30
|
-
*
|
|
32
|
+
* Space path for the passphrase secret (e.g., "accountId/orgId/projectId"). Must be provided together with passphraseSecretIdentifier; defaults to the private key's space when omitted.
|
|
33
|
+
*
|
|
31
34
|
*/
|
|
32
35
|
passphraseSecretSpacePath?: string | null;
|
|
33
36
|
/**
|
|
@@ -38,8 +41,5 @@ export interface ImportKeyRequestV3 {
|
|
|
38
41
|
* Space path for the private key secret (e.g., "accountId/orgId/projectId")
|
|
39
42
|
*/
|
|
40
43
|
privateKeySecretSpacePath: string;
|
|
41
|
-
|
|
42
|
-
* Project identifier (optional, for project-level keys)
|
|
43
|
-
*/
|
|
44
|
-
projectIdentifier?: string | null;
|
|
44
|
+
type: SigningKeyTypeV3;
|
|
45
45
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { PackageTypeConfigV3 } from '../schemas/PackageTypeConfigV3';
|
|
2
|
+
/**
|
|
3
|
+
* Response body for `GET /config/package-types`. Returns one entry
|
|
4
|
+
* per known package type, or per requested `package_types` when the
|
|
5
|
+
* filter is used. The list is bounded server-side to the set of
|
|
6
|
+
* registered package types and is not paginated.
|
|
7
|
+
*
|
|
8
|
+
*/
|
|
9
|
+
export interface ListPackageTypeConfigsResponseBodyV3 {
|
|
10
|
+
/**
|
|
11
|
+
* Per-package-type UI configuration, one entry per package type.
|
|
12
|
+
*/
|
|
13
|
+
packageTypeConfigs: PackageTypeConfigV3[];
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import type { SigningKeyV3 } from '../schemas/SigningKeyV3';
|
|
2
|
-
import type { KeyMetaV3 } from '../schemas/KeyMetaV3';
|
|
3
2
|
import type { PageInfoV3 } from '../schemas/PageInfoV3';
|
|
4
|
-
export interface
|
|
3
|
+
export interface ListSigningKeysResponseBodyV3 extends PageInfoV3 {
|
|
5
4
|
items: SigningKeyV3[];
|
|
6
|
-
meta?: KeyMetaV3;
|
|
7
5
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generic, extensible capability flags for a package type. New flags
|
|
3
|
+
* may be added over time without a breaking change; clients must
|
|
4
|
+
* ignore capability fields they do not recognize.
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
7
|
+
export interface PackageTypeCapabilitiesV3 {
|
|
8
|
+
/**
|
|
9
|
+
* Whether the upstream resource-cache TTL feature (metadata cache
|
|
10
|
+
* TTL and negative cache TTL) is currently active for this package
|
|
11
|
+
* type in this account. True only when the package type supports
|
|
12
|
+
* resource caching and the feature is enabled for the account.
|
|
13
|
+
*
|
|
14
|
+
*/
|
|
15
|
+
resourceCacheTtlEnabled: boolean;
|
|
16
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { PackageTypeCapabilitiesV3 } from '../schemas/PackageTypeCapabilitiesV3';
|
|
2
|
+
import type { PackageTypeV3 } from '../schemas/PackageTypeV3';
|
|
3
|
+
/**
|
|
4
|
+
* Per-package-type UI configuration and capability flags.
|
|
5
|
+
*/
|
|
6
|
+
export interface PackageTypeConfigV3 {
|
|
7
|
+
capabilities: PackageTypeCapabilitiesV3;
|
|
8
|
+
packageType: PackageTypeV3;
|
|
9
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Underlying cryptographic algorithm of a signing key. Known values include: RSA, ED25519, ECDSA. This field is extensible; clients must handle unknown values. Note that only RSA and ED25519 can be generated; ECDSA is only observed on imported keys.
|
|
3
|
+
*
|
|
4
|
+
* @example "RSA"
|
|
5
|
+
*/
|
|
6
|
+
export type SigningKeyAlgorithmV3 = string;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Lifecycle state of a signing key. Known values include: ACTIVE, INACTIVE (expired or manually deactivated), REVOKED (compromised), DELETED (deleted). This field is extensible; clients must handle unknown values.
|
|
3
|
+
*
|
|
4
|
+
* @example "ACTIVE"
|
|
5
|
+
*/
|
|
6
|
+
export type SigningKeyStatusV3 = string;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Aggregate signing key counts for a single scope (account, org, or project). Counts cover only the requested scope and are not rolled up from parent or child scopes.
|
|
3
|
+
*
|
|
4
|
+
*/
|
|
5
|
+
export interface SigningKeySummaryV3 {
|
|
6
|
+
/**
|
|
7
|
+
* Number of ACTIVE keys whose expiry falls within the next 30 days. Keys that never expire, and keys that have already expired, are excluded.
|
|
8
|
+
*
|
|
9
|
+
* @format int64
|
|
10
|
+
* @example 2
|
|
11
|
+
*/
|
|
12
|
+
expiringSoon: number;
|
|
13
|
+
/**
|
|
14
|
+
* Number of registries that have a signing configuration pointing at a key in this scope, whether or not signing is currently enabled on them. Soft-deleted registries are excluded.
|
|
15
|
+
*
|
|
16
|
+
* @format int64
|
|
17
|
+
* @example 4
|
|
18
|
+
*/
|
|
19
|
+
referencedRegistries: number;
|
|
20
|
+
/**
|
|
21
|
+
* Total number of signing keys in the scope, including deleted keys (status DELETED).
|
|
22
|
+
*
|
|
23
|
+
* @format int64
|
|
24
|
+
* @example 16
|
|
25
|
+
*/
|
|
26
|
+
totalKeys: number;
|
|
27
|
+
}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
+
import type { SigningKeyAlgorithmV3 } from '../schemas/SigningKeyAlgorithmV3';
|
|
1
2
|
import type { CreatedAtMsV3 } from '../schemas/CreatedAtMsV3';
|
|
2
3
|
import type { UserInfoV3 } from '../schemas/UserInfoV3';
|
|
3
4
|
import type { ModifiedAtMsV3 } from '../schemas/ModifiedAtMsV3';
|
|
5
|
+
import type { SigningKeyStatusV3 } from '../schemas/SigningKeyStatusV3';
|
|
6
|
+
import type { SigningKeyTypeV3 } from '../schemas/SigningKeyTypeV3';
|
|
4
7
|
/**
|
|
5
8
|
* A signing key used for repository metadata signing (Debian, Alpine, etc.)
|
|
6
9
|
*/
|
|
7
10
|
export interface SigningKeyV3 {
|
|
8
|
-
|
|
9
|
-
* Underlying algorithm
|
|
10
|
-
*/
|
|
11
|
-
algorithm: 'ecdsa' | 'ed25519' | 'rsa';
|
|
11
|
+
algorithm: SigningKeyAlgorithmV3;
|
|
12
12
|
createdAt: CreatedAtMsV3;
|
|
13
13
|
createdBy?: UserInfoV3;
|
|
14
14
|
/**
|
|
15
15
|
* Expiration timestamp in Unix milliseconds (null if never expires)
|
|
16
16
|
* @format int64
|
|
17
17
|
*/
|
|
18
|
-
|
|
18
|
+
expirationAt?: number | null;
|
|
19
19
|
/**
|
|
20
20
|
* Primary identifier (GPG 40 hex chars, RSA SHA256 of public key 64 hex chars)
|
|
21
21
|
*/
|
|
@@ -24,36 +24,30 @@ export interface SigningKeyV3 {
|
|
|
24
24
|
* Unique internal identifier of the signing key
|
|
25
25
|
* @format uuid
|
|
26
26
|
*/
|
|
27
|
-
|
|
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;
|
|
27
|
+
id: string;
|
|
37
28
|
/**
|
|
38
|
-
*
|
|
29
|
+
* Last 16 hex chars of fingerprint (for CLI compatibility)
|
|
39
30
|
*/
|
|
40
|
-
|
|
31
|
+
longKeyId?: string;
|
|
32
|
+
modifiedAt: ModifiedAtMsV3;
|
|
41
33
|
/**
|
|
42
|
-
*
|
|
34
|
+
* Human-readable name for UI/API
|
|
43
35
|
*/
|
|
44
|
-
|
|
36
|
+
name: string;
|
|
45
37
|
/**
|
|
46
|
-
*
|
|
38
|
+
* Last 8 hex chars of fingerprint (for CLI compatibility)
|
|
47
39
|
*/
|
|
48
|
-
|
|
40
|
+
shortKeyId?: string;
|
|
49
41
|
/**
|
|
50
|
-
*
|
|
42
|
+
* Key strength in bits (e.g. 2048, 3072, 4096 for RSA)
|
|
43
|
+
* @format int32
|
|
51
44
|
*/
|
|
52
|
-
|
|
53
|
-
modifiedAt: ModifiedAtMsV3;
|
|
45
|
+
size?: number | null;
|
|
54
46
|
/**
|
|
55
|
-
*
|
|
47
|
+
* Origin of the key (created by system or provided by user)
|
|
56
48
|
*/
|
|
57
|
-
|
|
49
|
+
source: 'GENERATED' | 'IMPORTED';
|
|
50
|
+
status: SigningKeyStatusV3;
|
|
51
|
+
type: SigningKeyTypeV3;
|
|
58
52
|
updatedBy?: UserInfoV3;
|
|
59
53
|
}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Request to update a signing key
|
|
2
|
+
* Request to update a signing key status
|
|
3
3
|
*/
|
|
4
4
|
export interface UpdateKeyRequestV3 {
|
|
5
5
|
/**
|
|
6
|
-
* New status for the key (cannot transition from REVOKED or DELETED)
|
|
6
|
+
* New status for the key (cannot transition from REVOKED or DELETED). Intentionally a closed subset of `SigningKeyStatusV3` rather than an extensible enum: DELETED is reachable only via `DELETE /signing-keys/{id}`, which emits a distinct audit event.
|
|
7
|
+
*
|
|
7
8
|
*/
|
|
8
|
-
|
|
9
|
+
status: 'ACTIVE' | 'INACTIVE' | 'REVOKED';
|
|
9
10
|
}
|
|
@@ -5,12 +5,6 @@ import type { ScanStatusV3 } from '../schemas/ScanStatusV3';
|
|
|
5
5
|
* Statistics for a single version
|
|
6
6
|
*/
|
|
7
7
|
export interface VersionStatsV3 {
|
|
8
|
-
/**
|
|
9
|
-
* Artifact key metadata
|
|
10
|
-
*/
|
|
11
|
-
artifactKey?: {
|
|
12
|
-
[key: string]: any;
|
|
13
|
-
};
|
|
14
8
|
deploymentMetadata?: DeploymentMetadataV3;
|
|
15
9
|
/**
|
|
16
10
|
* Number of digests/manifests in the version (for OCI artifacts with manifest lists)
|
|
@@ -1,15 +1,12 @@
|
|
|
1
1
|
import type { ModifiedAtMsV3 } from '../schemas/ModifiedAtMsV3';
|
|
2
2
|
import type { UserInfoV3 } from '../schemas/UserInfoV3';
|
|
3
3
|
import type { DeletedAtMsV3 } from '../schemas/DeletedAtMsV3';
|
|
4
|
-
import type { DeploymentMetadataV3 } from '../schemas/DeploymentMetadataV3';
|
|
5
|
-
import type { FirewallModeV3 } from '../schemas/FirewallModeV3';
|
|
6
4
|
import type { ResourceMetadataV3 } from '../schemas/ResourceMetadataV3';
|
|
7
5
|
import type { OrgIdentifier } from '../schemas/OrgIdentifier';
|
|
8
6
|
import type { PackageKindV3 } from '../schemas/PackageKindV3';
|
|
9
7
|
import type { PackageTypeV3 } from '../schemas/PackageTypeV3';
|
|
10
8
|
import type { ProjectIdentifier } from '../schemas/ProjectIdentifier';
|
|
11
9
|
import type { RegistryTypeV3 } from '../schemas/RegistryTypeV3';
|
|
12
|
-
import type { ScanStatusV3 } from '../schemas/ScanStatusV3';
|
|
13
10
|
/**
|
|
14
11
|
* Version metadata
|
|
15
12
|
*/
|
|
@@ -21,20 +18,11 @@ export interface VersionV3 {
|
|
|
21
18
|
createdBy?: UserInfoV3;
|
|
22
19
|
deletedAt?: DeletedAtMsV3;
|
|
23
20
|
deletedBy?: UserInfoV3;
|
|
24
|
-
deploymentMetadata?: DeploymentMetadataV3;
|
|
25
|
-
digestCount?: number;
|
|
26
|
-
/**
|
|
27
|
-
* @format int64
|
|
28
|
-
*/
|
|
29
|
-
downloadCount?: number;
|
|
30
|
-
fileCount?: number;
|
|
31
|
-
firewallMode?: FirewallModeV3;
|
|
32
21
|
/**
|
|
33
22
|
* @format uuid
|
|
34
23
|
*/
|
|
35
24
|
id: string;
|
|
36
25
|
isQuarantined?: boolean;
|
|
37
|
-
lastScannedAt?: string;
|
|
38
26
|
metadata?: ResourceMetadataV3;
|
|
39
27
|
modifiedAt?: ModifiedAtMsV3;
|
|
40
28
|
modifiedBy?: UserInfoV3;
|
|
@@ -57,10 +45,4 @@ export interface VersionV3 {
|
|
|
57
45
|
registryId: string;
|
|
58
46
|
registryName: string;
|
|
59
47
|
registryType: RegistryTypeV3;
|
|
60
|
-
/**
|
|
61
|
-
* @format uuid
|
|
62
|
-
*/
|
|
63
|
-
scanID?: string;
|
|
64
|
-
scanStatus?: ScanStatusV3;
|
|
65
|
-
size?: string;
|
|
66
48
|
}
|
package/package.json
CHANGED
|
@@ -1,29 +0,0 @@
|
|
|
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 DownloadSigningKeyPublicKeyV3QueryPathParams {
|
|
6
|
-
/**
|
|
7
|
-
* @format uuid
|
|
8
|
-
*/
|
|
9
|
-
id: string;
|
|
10
|
-
}
|
|
11
|
-
export interface DownloadSigningKeyPublicKeyV3QueryQueryParams {
|
|
12
|
-
account_identifier: string;
|
|
13
|
-
org_identifier?: string;
|
|
14
|
-
project_identifier?: string;
|
|
15
|
-
}
|
|
16
|
-
export type DownloadSigningKeyPublicKeyV3OkResponse = ResponseWithPagination<unknown>;
|
|
17
|
-
export type DownloadSigningKeyPublicKeyV3ErrorResponse = ErrorV3;
|
|
18
|
-
export interface DownloadSigningKeyPublicKeyV3Props extends DownloadSigningKeyPublicKeyV3QueryPathParams, Omit<FetcherOptions<DownloadSigningKeyPublicKeyV3QueryQueryParams, unknown>, 'url'> {
|
|
19
|
-
queryParams: DownloadSigningKeyPublicKeyV3QueryQueryParams;
|
|
20
|
-
}
|
|
21
|
-
export declare function downloadSigningKeyPublicKeyV3(props: DownloadSigningKeyPublicKeyV3Props): Promise<DownloadSigningKeyPublicKeyV3OkResponse>;
|
|
22
|
-
/**
|
|
23
|
-
* Downloads the public key as a file with appropriate Content-Type and filename
|
|
24
|
-
* based on the key type:
|
|
25
|
-
* - GPG keys: application/pgp-keys with .asc extension
|
|
26
|
-
* - RSA keys: application/x-pem-file with .rsa.pub extension
|
|
27
|
-
*
|
|
28
|
-
*/
|
|
29
|
-
export declare function useDownloadSigningKeyPublicKeyV3Query(props: DownloadSigningKeyPublicKeyV3Props, options?: Omit<UseQueryOptions<DownloadSigningKeyPublicKeyV3OkResponse, DownloadSigningKeyPublicKeyV3ErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<DownloadSigningKeyPublicKeyV3OkResponse, ErrorV3>;
|
|
@@ -1,18 +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 downloadSigningKeyPublicKeyV3(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/v3/signing-keys/${props.id}/public-key/download`, method: 'GET' }, props));
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Downloads the public key as a file with appropriate Content-Type and filename
|
|
11
|
-
* based on the key type:
|
|
12
|
-
* - GPG keys: application/pgp-keys with .asc extension
|
|
13
|
-
* - RSA keys: application/x-pem-file with .rsa.pub extension
|
|
14
|
-
*
|
|
15
|
-
*/
|
|
16
|
-
export function useDownloadSigningKeyPublicKeyV3Query(props, options) {
|
|
17
|
-
return useQuery(['DownloadSigningKeyPublicKeyV3', props.id, props.queryParams], ({ signal }) => downloadSigningKeyPublicKeyV3(Object.assign(Object.assign({}, props), { signal })), options);
|
|
18
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Metadata about signing keys list response with per-status counts
|
|
3
|
-
*/
|
|
4
|
-
export interface KeyMetaV3 {
|
|
5
|
-
/**
|
|
6
|
-
* Count of keys with status ACTIVE
|
|
7
|
-
* @format int64
|
|
8
|
-
* @example 8
|
|
9
|
-
*/
|
|
10
|
-
activeCount: number;
|
|
11
|
-
/**
|
|
12
|
-
* Count of keys with status DELETED (soft-deleted)
|
|
13
|
-
* @format int64
|
|
14
|
-
* @example 5
|
|
15
|
-
*/
|
|
16
|
-
deletedCount: number;
|
|
17
|
-
/**
|
|
18
|
-
* Count of keys with status INACTIVE (expired or manually deactivated)
|
|
19
|
-
* @format int64
|
|
20
|
-
* @example 2
|
|
21
|
-
*/
|
|
22
|
-
inactiveCount: number;
|
|
23
|
-
/**
|
|
24
|
-
* Count of keys with status REVOKED (compromised)
|
|
25
|
-
* @format int64
|
|
26
|
-
* @example 1
|
|
27
|
-
*/
|
|
28
|
-
revokedCount: number;
|
|
29
|
-
/**
|
|
30
|
-
* Total count of all keys regardless of status
|
|
31
|
-
* @format int64
|
|
32
|
-
* @example 16
|
|
33
|
-
*/
|
|
34
|
-
totalCount: number;
|
|
35
|
-
}
|
|
File without changes
|
/package/dist/har-service/src/services/schemas/{KeyMetaV3.js → PackageTypeCapabilitiesV3.js}
RENAMED
|
File without changes
|