@harnessio/react-har-service-client 0.89.0 → 0.90.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/useGetRegistriesStatsV3Mutation.d.ts +1 -0
- package/dist/har-service/src/services/hooks/useListRegistriesV3Query.d.ts +1 -0
- package/dist/har-service/src/services/hooks/useListSigningKeysV3Query.d.ts +1 -1
- package/dist/har-service/src/services/hooks/useUpdateSigningKeyV3Mutation.js +1 -1
- package/dist/har-service/src/services/index.d.ts +1 -0
- package/dist/har-service/src/services/schemas/DailyStorage.d.ts +14 -0
- package/dist/har-service/src/services/schemas/DailyStorage.js +4 -0
- package/dist/har-service/src/services/schemas/GenerateKeyRequestV3.d.ts +25 -7
- package/dist/har-service/src/services/schemas/ImportKeyRequestV3.d.ts +8 -5
- package/dist/har-service/src/services/schemas/ListSigningKeysResponseV3.d.ts +2 -0
- package/dist/har-service/src/services/schemas/PackageType.d.ts +1 -1
- package/dist/har-service/src/services/schemas/PackageTypeV3.d.ts +1 -1
- package/dist/har-service/src/services/schemas/SigningKeyV3.d.ts +2 -2
- package/dist/har-service/src/services/schemas/StorageDetails.d.ts +12 -0
- package/dist/har-service/src/services/schemas/StorageDetails.js +0 -3
- package/dist/har-service/src/services/schemas/UpstreamConfig.d.ts +2 -2
- package/package.json +1 -1
|
@@ -8,6 +8,7 @@ export interface GetRegistriesStatsV3MutationQueryParams {
|
|
|
8
8
|
account_identifier: string;
|
|
9
9
|
org_identifier?: string;
|
|
10
10
|
project_identifier?: string;
|
|
11
|
+
scope?: 'ancestors' | 'descendants' | 'none';
|
|
11
12
|
}
|
|
12
13
|
export type GetRegistriesStatsV3RequestBody = RegistriesStatsRequestV3RequestBody;
|
|
13
14
|
export type GetRegistriesStatsV3OkResponse = ResponseWithPagination<RegistriesStatsResponseV3Response>;
|
|
@@ -17,7 +17,7 @@ export interface ListSigningKeysV3QueryQueryParams {
|
|
|
17
17
|
* @default 20
|
|
18
18
|
*/
|
|
19
19
|
size?: number;
|
|
20
|
-
key_type?: Array<'
|
|
20
|
+
key_type?: Array<'GPG' | 'RSA'>;
|
|
21
21
|
key_status?: Array<'ACTIVE' | 'DELETED' | 'INACTIVE' | 'REVOKED'>;
|
|
22
22
|
}
|
|
23
23
|
export type ListSigningKeysV3OkResponse = ResponseWithPagination<ListSigningKeysResponseV3>;
|
|
@@ -4,7 +4,7 @@
|
|
|
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: 'PUT' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* Updates a signing key's name and/or status. Only mutable fields can be updated.
|
|
@@ -522,6 +522,7 @@ export type { CopyTargetRefV3 } from './schemas/CopyTargetRefV3';
|
|
|
522
522
|
export type { CranArtifactDetailConfig } from './schemas/CranArtifactDetailConfig';
|
|
523
523
|
export type { CreateBulkDownloadRequestResponseOutput } from './schemas/CreateBulkDownloadRequestResponseOutput';
|
|
524
524
|
export type { CreatedAtMsV3 } from './schemas/CreatedAtMsV3';
|
|
525
|
+
export type { DailyStorage } from './schemas/DailyStorage';
|
|
525
526
|
export type { DartArtifactDetailConfig } from './schemas/DartArtifactDetailConfig';
|
|
526
527
|
export type { DebianArtifactDetailConfig } from './schemas/DebianArtifactDetailConfig';
|
|
527
528
|
export type { DebianConfig } from './schemas/DebianConfig';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Storage snapshot for a single calendar day.
|
|
3
|
+
*/
|
|
4
|
+
export interface DailyStorage {
|
|
5
|
+
/**
|
|
6
|
+
* Snapshot date in UTC (YYYY-MM-DD).
|
|
7
|
+
* @format date
|
|
8
|
+
*/
|
|
9
|
+
date: string;
|
|
10
|
+
/**
|
|
11
|
+
* Total storage on that date, as a human-readable auto-scaled size (e.g. "468.78GB").
|
|
12
|
+
*/
|
|
13
|
+
size: string;
|
|
14
|
+
}
|
|
@@ -1,11 +1,20 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Request to generate a new signing key
|
|
2
|
+
* Request to generate a new signing key.
|
|
3
|
+
*
|
|
4
|
+
* Supported combinations:
|
|
5
|
+
* - GPG + RSA: sizes 2048, 3072, 4096 (default: 3072)
|
|
6
|
+
* - GPG + Ed25519: no size parameter (fixed size)
|
|
7
|
+
* - RSA + RSA: sizes 2048, 3072, 4096 (default: 3072)
|
|
8
|
+
*
|
|
3
9
|
*/
|
|
4
10
|
export interface GenerateKeyRequestV3 {
|
|
5
11
|
/**
|
|
6
|
-
* Underlying algorithm
|
|
12
|
+
* Underlying cryptographic algorithm:
|
|
13
|
+
* - RSA: 2048/3072/4096-bit RSA (compatible with all package types)
|
|
14
|
+
* - Ed25519: Modern elliptic curve algorithm (GPG only, fixed size)
|
|
15
|
+
*
|
|
7
16
|
*/
|
|
8
|
-
algorithm: '
|
|
17
|
+
algorithm: 'Ed25519' | 'RSA';
|
|
9
18
|
/**
|
|
10
19
|
* Optional expiration timestamp in Unix milliseconds
|
|
11
20
|
* @format int64
|
|
@@ -16,13 +25,22 @@ export interface GenerateKeyRequestV3 {
|
|
|
16
25
|
*/
|
|
17
26
|
keyName: string;
|
|
18
27
|
/**
|
|
19
|
-
* Key size in bits (
|
|
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
|
+
*
|
|
20
35
|
* @format int32
|
|
21
|
-
* @default
|
|
36
|
+
* @default 3072
|
|
22
37
|
*/
|
|
23
|
-
keySize: number;
|
|
38
|
+
keySize: number | null;
|
|
24
39
|
/**
|
|
25
|
-
* Type of key to generate
|
|
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
|
+
*
|
|
26
44
|
*/
|
|
27
45
|
keyType: 'GPG' | 'RSA';
|
|
28
46
|
/**
|
|
@@ -3,7 +3,10 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export interface ImportKeyRequestV3 {
|
|
5
5
|
/**
|
|
6
|
-
* Optional expiration timestamp in Unix milliseconds
|
|
6
|
+
* Optional expiration timestamp in Unix milliseconds.
|
|
7
|
+
* Priority: provided value > key's embedded expiration > no expiration.
|
|
8
|
+
* Note: RSA keys don't have embedded expiration, so this is the only way to set expiration for RSA keys.
|
|
9
|
+
*
|
|
7
10
|
* @format int64
|
|
8
11
|
*/
|
|
9
12
|
expiresAt?: number | null;
|
|
@@ -24,17 +27,17 @@ export interface ImportKeyRequestV3 {
|
|
|
24
27
|
*/
|
|
25
28
|
passphraseSecretIdentifier?: string | null;
|
|
26
29
|
/**
|
|
27
|
-
* Optional space
|
|
30
|
+
* Optional space path for the passphrase secret (e.g., "accountId/orgId/projectId")
|
|
28
31
|
*/
|
|
29
|
-
|
|
32
|
+
passphraseSecretSpacePath?: string | null;
|
|
30
33
|
/**
|
|
31
34
|
* Reference to private key secret in Harness Secret Manager
|
|
32
35
|
*/
|
|
33
36
|
privateKeySecretIdentifier: string;
|
|
34
37
|
/**
|
|
35
|
-
* Space
|
|
38
|
+
* Space path for the private key secret (e.g., "accountId/orgId/projectId")
|
|
36
39
|
*/
|
|
37
|
-
|
|
40
|
+
privateKeySecretSpacePath: string;
|
|
38
41
|
/**
|
|
39
42
|
* Project identifier (optional, for project-level keys)
|
|
40
43
|
*/
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import type { SigningKeyV3 } from '../schemas/SigningKeyV3';
|
|
2
|
+
import type { MetaV3 } from '../schemas/MetaV3';
|
|
2
3
|
import type { PageInfoV3 } from '../schemas/PageInfoV3';
|
|
3
4
|
export interface ListSigningKeysResponseV3 extends PageInfoV3 {
|
|
4
5
|
items: SigningKeyV3[];
|
|
6
|
+
meta?: MetaV3;
|
|
5
7
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* refers to package
|
|
3
3
|
*/
|
|
4
|
-
export type PackageType = 'ALPINE' | 'CARGO' | 'COMPOSER' | 'CONAN' | 'CONDA' | 'CRAN' | 'DART' | 'DEBIAN' | 'DOCKER' | 'GENERIC' | 'GO' | 'HELM' | 'HELM_HTTP' | 'HUGGINGFACE' | 'MAVEN' | 'NPM' | 'NUGET' | 'PUPPET' | 'PYTHON' | 'RAW' | 'RPM' | 'RUBY' | 'SWIFT' | 'TERRAFORM' | 'WOLFI';
|
|
4
|
+
export type PackageType = 'ALPINE' | 'CARGO' | 'COMPOSER' | 'CONAN' | 'CONDA' | 'CRAN' | 'DART' | 'DEBIAN' | 'DOCKER' | 'GENERIC' | 'GO' | 'HELM' | 'HELM_HTTP' | 'HUGGINGFACE' | 'MAVEN' | 'NPM' | 'NUGET' | 'PUPPET' | 'PYTHON' | 'RAW' | 'RPM' | 'RUBY' | 'SWIFT' | 'TERRAFORM' | 'TERRAFORM_BACKEND' | 'WOLFI';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Package type. Known values include: DOCKER, MAVEN, PYTHON, GENERIC, HELM, HELM_HTTP, NUGET, NPM, RPM, CARGO, COMPOSER, GO, HUGGINGFACE, CONDA, DART, SWIFT, PUPPET, RUBY, RAW, DEBIAN, CONAN, TERRAFORM, CRAN, WOLFI, ALPINE. This field is extensible; clients must handle unknown values.
|
|
2
|
+
* Package type. Known values include: DOCKER, MAVEN, PYTHON, GENERIC, HELM, HELM_HTTP, NUGET, NPM, RPM, CARGO, COMPOSER, GO, HUGGINGFACE, CONDA, DART, SWIFT, PUPPET, RUBY, RAW, DEBIAN, CONAN, TERRAFORM, TERRAFORM_BACKEND, CRAN, WOLFI, ALPINE. This field is extensible; clients must handle unknown values.
|
|
3
3
|
*
|
|
4
4
|
* @example "DOCKER"
|
|
5
5
|
*/
|
|
@@ -43,9 +43,9 @@ export interface SigningKeyV3 {
|
|
|
43
43
|
*/
|
|
44
44
|
keyStatus: 'ACTIVE' | 'DELETED' | 'INACTIVE' | 'REVOKED';
|
|
45
45
|
/**
|
|
46
|
-
* Cryptographic system (GPG for Debian, RSA for Alpine
|
|
46
|
+
* Cryptographic system (GPG for Debian, RSA for Alpine)
|
|
47
47
|
*/
|
|
48
|
-
keyType: '
|
|
48
|
+
keyType: 'GPG' | 'RSA';
|
|
49
49
|
/**
|
|
50
50
|
* Last 16 hex chars of fingerprint (for CLI compatibility)
|
|
51
51
|
*/
|
|
@@ -1,6 +1,18 @@
|
|
|
1
|
+
import type { DailyStorage } from '../schemas/DailyStorage';
|
|
1
2
|
/**
|
|
2
3
|
* storage details
|
|
3
4
|
*/
|
|
4
5
|
export interface StorageDetails {
|
|
6
|
+
/**
|
|
7
|
+
* Day-wise storage snapshots for the last 30 calendar days (UTC).
|
|
8
|
+
*/
|
|
9
|
+
dailyStorage?: DailyStorage[];
|
|
10
|
+
/**
|
|
11
|
+
* Average daily storage over the last 30 calendar days (UTC), as a human-readable auto-scaled size (e.g. "468.78GB").
|
|
12
|
+
*/
|
|
13
|
+
last30DayAverage?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Total current storage, as a human-readable auto-scaled size (e.g. "468.78GB").
|
|
16
|
+
*/
|
|
5
17
|
totalSize: string;
|
|
6
18
|
}
|
|
@@ -12,13 +12,13 @@ export interface UpstreamConfig {
|
|
|
12
12
|
authType: AuthType;
|
|
13
13
|
firewallMode?: UpstreamProxyConfigFirewallMode;
|
|
14
14
|
/**
|
|
15
|
-
* Time-to-live in seconds for cached
|
|
15
|
+
* Time-to-live in seconds for cached metadata.
|
|
16
16
|
*
|
|
17
17
|
* @format int64
|
|
18
18
|
*/
|
|
19
19
|
metadataCacheTTL?: number;
|
|
20
20
|
/**
|
|
21
|
-
* Time-to-live in seconds for cached NOT_FOUND entries.
|
|
21
|
+
* Time-to-live in seconds for cached NOT_FOUND entries.
|
|
22
22
|
*
|
|
23
23
|
* @format int64
|
|
24
24
|
*/
|