@harnessio/react-har-service-client 0.90.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.
Files changed (68) hide show
  1. package/dist/har-service/src/services/hooks/useDeleteSigningKeyV3Mutation.d.ts +2 -7
  2. package/dist/har-service/src/services/hooks/useDeleteSigningKeyV3Mutation.js +2 -2
  3. package/dist/har-service/src/services/hooks/useForceUnlockTerraformBackendV3Mutation.d.ts +25 -0
  4. package/dist/har-service/src/services/hooks/useForceUnlockTerraformBackendV3Mutation.js +15 -0
  5. package/dist/har-service/src/services/hooks/useGenerateSigningKeyV3Mutation.d.ts +2 -4
  6. package/dist/har-service/src/services/hooks/useGetRegistryPublicKeyV3Query.d.ts +5 -4
  7. package/dist/har-service/src/services/hooks/useGetRegistryPublicKeyV3Query.js +1 -1
  8. package/dist/har-service/src/services/hooks/useGetSigningKeyByNameV3Query.d.ts +23 -0
  9. package/dist/har-service/src/services/hooks/useGetSigningKeyByNameV3Query.js +14 -0
  10. package/dist/har-service/src/services/hooks/useGetSigningKeyPublicKeyV3Query.d.ts +10 -8
  11. package/dist/har-service/src/services/hooks/useGetSigningKeyPublicKeyV3Query.js +9 -3
  12. package/dist/har-service/src/services/hooks/useGetSigningKeySummaryV3Query.d.ts +26 -0
  13. package/dist/har-service/src/services/hooks/useGetSigningKeySummaryV3Query.js +20 -0
  14. package/dist/har-service/src/services/hooks/useGetSigningKeyV3Query.d.ts +2 -9
  15. package/dist/har-service/src/services/hooks/useImportSigningKeyV3Mutation.d.ts +2 -4
  16. package/dist/har-service/src/services/hooks/useListPackageTypeConfigsV3Query.d.ts +25 -0
  17. package/dist/har-service/src/services/hooks/useListPackageTypeConfigsV3Query.js +20 -0
  18. package/dist/har-service/src/services/hooks/useListSigningKeysV3Query.d.ts +5 -4
  19. package/dist/har-service/src/services/hooks/useUpdateSigningKeyV3Mutation.d.ts +3 -11
  20. package/dist/har-service/src/services/hooks/useUpdateSigningKeyV3Mutation.js +2 -3
  21. package/dist/har-service/src/services/index.d.ts +24 -2
  22. package/dist/har-service/src/services/index.js +4 -0
  23. package/dist/har-service/src/services/responses/ListPackageTypeConfigsResponseV3Response.d.ts +2 -0
  24. package/dist/har-service/src/services/responses/ListSigningKeysResponseV3Response.d.ts +2 -0
  25. package/dist/har-service/src/services/responses/ListSigningKeysResponseV3Response.js +1 -0
  26. package/dist/har-service/src/services/responses/SigningKeyDetailsResponseV3Response.d.ts +4 -0
  27. package/dist/har-service/src/services/responses/SigningKeyDetailsResponseV3Response.js +1 -0
  28. package/dist/har-service/src/services/responses/SigningKeySummaryResponseV3Response.d.ts +4 -0
  29. package/dist/har-service/src/services/responses/SigningKeySummaryResponseV3Response.js +1 -0
  30. package/dist/har-service/src/services/schemas/ArtifactVersionMetadata.d.ts +1 -0
  31. package/dist/har-service/src/services/schemas/AuthType.d.ts +1 -1
  32. package/dist/har-service/src/services/schemas/BearerToken.d.ts +8 -0
  33. package/dist/har-service/src/services/schemas/BearerToken.js +4 -0
  34. package/dist/har-service/src/services/schemas/ForceUnlockTerraformBackendRequestV3.d.ts +9 -0
  35. package/dist/har-service/src/services/schemas/ForceUnlockTerraformBackendRequestV3.js +4 -0
  36. package/dist/har-service/src/services/schemas/ForceUnlockTerraformBackendResponseV3.d.ts +12 -0
  37. package/dist/har-service/src/services/schemas/ForceUnlockTerraformBackendResponseV3.js +4 -0
  38. package/dist/har-service/src/services/schemas/GenerateKeyRequestV3.d.ts +26 -24
  39. package/dist/har-service/src/services/schemas/ImportKeyRequestV3.d.ts +17 -17
  40. package/dist/har-service/src/services/schemas/ImportKeyRequestV3.js +0 -3
  41. package/dist/har-service/src/services/schemas/ListPackageTypeConfigsResponseBodyV3.d.ts +14 -0
  42. package/dist/har-service/src/services/schemas/ListPackageTypeConfigsResponseBodyV3.js +1 -0
  43. package/dist/har-service/src/services/schemas/{ListSigningKeysResponseV3.d.ts → ListSigningKeysResponseBodyV3.d.ts} +1 -3
  44. package/dist/har-service/src/services/schemas/ListSigningKeysResponseBodyV3.js +1 -0
  45. package/dist/har-service/src/services/schemas/PackageTypeCapabilitiesV3.d.ts +16 -0
  46. package/dist/har-service/src/services/schemas/PackageTypeCapabilitiesV3.js +4 -0
  47. package/dist/har-service/src/services/schemas/PackageTypeConfigV3.d.ts +9 -0
  48. package/dist/har-service/src/services/schemas/PackageTypeConfigV3.js +1 -0
  49. package/dist/har-service/src/services/schemas/Registry.d.ts +1 -0
  50. package/dist/har-service/src/services/schemas/RegistryRequest.d.ts +1 -0
  51. package/dist/har-service/src/services/schemas/RegistryV3.d.ts +1 -0
  52. package/dist/har-service/src/services/schemas/SigningConfig.d.ts +1 -1
  53. package/dist/har-service/src/services/schemas/SigningKeyAlgorithmV3.d.ts +6 -0
  54. package/dist/har-service/src/services/schemas/SigningKeyAlgorithmV3.js +4 -0
  55. package/dist/har-service/src/services/schemas/SigningKeyStatusV3.d.ts +6 -0
  56. package/dist/har-service/src/services/schemas/SigningKeyStatusV3.js +4 -0
  57. package/dist/har-service/src/services/schemas/SigningKeySummaryV3.d.ts +27 -0
  58. package/dist/har-service/src/services/schemas/SigningKeySummaryV3.js +4 -0
  59. package/dist/har-service/src/services/schemas/SigningKeyTypeV3.d.ts +6 -0
  60. package/dist/har-service/src/services/schemas/SigningKeyTypeV3.js +4 -0
  61. package/dist/har-service/src/services/schemas/SigningKeyV3.d.ts +20 -26
  62. package/dist/har-service/src/services/schemas/StorageDetails.d.ts +4 -0
  63. package/dist/har-service/src/services/schemas/UpdateKeyRequestV3.d.ts +4 -7
  64. package/dist/har-service/src/services/schemas/UpstreamConfig.d.ts +2 -1
  65. package/dist/har-service/src/services/schemas/VersionStatsV3.d.ts +0 -6
  66. package/dist/har-service/src/services/schemas/VersionV3.d.ts +0 -18
  67. package/package.json +1 -1
  68. /package/dist/har-service/src/services/{schemas/ListSigningKeysResponseV3.js → responses/ListPackageTypeConfigsResponseV3Response.js} +0 -0
@@ -0,0 +1,4 @@
1
+ import type { SigningKeySummaryV3 } from '../schemas/SigningKeySummaryV3';
2
+ export interface SigningKeySummaryResponseV3Response {
3
+ data: SigningKeySummaryV3;
4
+ }
@@ -34,6 +34,7 @@ export interface ArtifactVersionMetadata {
34
34
  lastScannedAt?: string;
35
35
  metadata?: ArtifactEntityMetadata;
36
36
  name: string;
37
+ opaMetadataValidation?: boolean;
37
38
  packageType: PackageType;
38
39
  pullCommand?: string;
39
40
  quarantineReason?: string;
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * Authentication type
3
3
  */
4
- export type AuthType = 'AccessKeySecretKey' | 'Anonymous' | 'UserPassword';
4
+ export type AuthType = 'AccessKeySecretKey' | 'Anonymous' | 'BearerToken' | 'UserPassword';
@@ -0,0 +1,8 @@
1
+ export interface BearerToken {
2
+ secretIdentifier?: string;
3
+ /**
4
+ * @format int64
5
+ */
6
+ secretSpaceId?: number;
7
+ secretSpacePath?: string;
8
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Context recorded on the force-unlock audit trail.
3
+ */
4
+ export interface ForceUnlockTerraformBackendRequestV3 {
5
+ /**
6
+ * Why the lock is being force-cleared. Recorded in the audit log.
7
+ */
8
+ reason: string;
9
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -0,0 +1,12 @@
1
+ export interface ForceUnlockTerraformBackendResponseV3 {
2
+ data: {
3
+ /**
4
+ * The previous lock holder, if any.
5
+ */
6
+ lockedBy?: string;
7
+ /**
8
+ * Whether a lock was actually held before this call.
9
+ */
10
+ wasLocked: boolean;
11
+ };
12
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -1,10 +1,24 @@
1
1
  /**
2
2
  * Request to generate a new signing key.
3
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)
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
- keyName: string;
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
- expiresAt?: number | null;
21
+ expirationAt?: number | null;
13
22
  /**
14
23
  * Human-readable name for the key
15
24
  */
16
- keyName: string;
25
+ name: string;
17
26
  /**
18
- * Type of key being imported
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
- * Optional space path for the passphrase secret (e.g., "accountId/orgId/projectId")
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
  }
@@ -1,4 +1 @@
1
- /* eslint-disable */
2
- // This code is autogenerated using @harnessio/oats-cli.
3
- // Please do not modify this code directly.
4
1
  export {};
@@ -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
+ }
@@ -1,7 +1,5 @@
1
1
  import type { SigningKeyV3 } from '../schemas/SigningKeyV3';
2
- import type { MetaV3 } from '../schemas/MetaV3';
3
2
  import type { PageInfoV3 } from '../schemas/PageInfoV3';
4
- export interface ListSigningKeysResponseV3 extends PageInfoV3 {
3
+ export interface ListSigningKeysResponseBodyV3 extends PageInfoV3 {
5
4
  items: SigningKeyV3[];
6
- meta?: MetaV3;
7
5
  }
@@ -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,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -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
+ }
@@ -20,6 +20,7 @@ export interface Registry<T0 extends RegistryConfig = RegistryConfig> {
20
20
  isPublic: boolean;
21
21
  labels?: string[];
22
22
  modifiedAt?: string;
23
+ opaMetadataValidation?: boolean;
23
24
  packageType: PackageType;
24
25
  policyRefs?: string[];
25
26
  scanners?: Scanner[];
@@ -11,6 +11,7 @@ export interface RegistryRequest<T0 extends RegistryConfig = RegistryConfig> {
11
11
  identifier: string;
12
12
  isPublic: boolean;
13
13
  labels?: string[];
14
+ opaMetadataValidation?: boolean;
14
15
  packageType: PackageType;
15
16
  /**
16
17
  * Reference to the scope in which the registry exists.
@@ -24,6 +24,7 @@ export interface RegistryV3 {
24
24
  modifiedAt?: ModifiedAtMsV3;
25
25
  modifiedBy?: UserInfoV3;
26
26
  name: string;
27
+ opaMetadataValidation?: boolean;
27
28
  orgIdentifier?: OrgIdentifier;
28
29
  /**
29
30
  * @format int64
@@ -10,5 +10,5 @@ export interface SigningConfig {
10
10
  /**
11
11
  * Whether signing is enabled for this registry
12
12
  */
13
- signingEnabled?: boolean;
13
+ signingEnabled: boolean;
14
14
  }
@@ -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,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -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,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -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
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Cryptographic system of a signing key. Known values include: GPG (for Debian, RPM, Alpine), RSA (for direct signing operations). This field is extensible; clients must handle unknown values.
3
+ *
4
+ * @example "GPG"
5
+ */
6
+ export type SigningKeyTypeV3 = string;
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -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
- expiresAt?: number | null;
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
- 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;
27
+ id: string;
37
28
  /**
38
- * Origin of the key (created by system or provided by user)
29
+ * Last 16 hex chars of fingerprint (for CLI compatibility)
39
30
  */
40
- keySource: 'GENERATED' | 'IMPORTED';
31
+ longKeyId?: string;
32
+ modifiedAt: ModifiedAtMsV3;
41
33
  /**
42
- * Lifecycle state of the key
34
+ * Human-readable name for UI/API
43
35
  */
44
- keyStatus: 'ACTIVE' | 'DELETED' | 'INACTIVE' | 'REVOKED';
36
+ name: string;
45
37
  /**
46
- * Cryptographic system (GPG for Debian, RSA for Alpine)
38
+ * Last 8 hex chars of fingerprint (for CLI compatibility)
47
39
  */
48
- keyType: 'GPG' | 'RSA';
40
+ shortKeyId?: string;
49
41
  /**
50
- * Last 16 hex chars of fingerprint (for CLI compatibility)
42
+ * Key strength in bits (e.g. 2048, 3072, 4096 for RSA)
43
+ * @format int32
51
44
  */
52
- longKeyId?: string;
53
- modifiedAt: ModifiedAtMsV3;
45
+ size?: number | null;
54
46
  /**
55
- * Last 8 hex chars of fingerprint (for CLI compatibility)
47
+ * Origin of the key (created by system or provided by user)
56
48
  */
57
- shortKeyId?: string;
49
+ source: 'GENERATED' | 'IMPORTED';
50
+ status: SigningKeyStatusV3;
51
+ type: SigningKeyTypeV3;
58
52
  updatedBy?: UserInfoV3;
59
53
  }
@@ -15,4 +15,8 @@ export interface StorageDetails {
15
15
  * Total current storage, as a human-readable auto-scaled size (e.g. "468.78GB").
16
16
  */
17
17
  totalSize: string;
18
+ /**
19
+ * Total current storage in raw bytes (e.g. "503316480").
20
+ */
21
+ totalSizeInBytes?: string;
18
22
  }
@@ -1,13 +1,10 @@
1
1
  /**
2
- * Request to update a signing key (name and/or status only)
2
+ * Request to update a signing key status
3
3
  */
4
4
  export interface UpdateKeyRequestV3 {
5
5
  /**
6
- * New name for the key
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
- keyName?: string | null;
9
- /**
10
- * New status for the key (cannot transition from REVOKED or DELETED)
11
- */
12
- keyStatus?: 'ACTIVE' | 'INACTIVE' | 'REVOKED' | null;
9
+ status: 'ACTIVE' | 'INACTIVE' | 'REVOKED';
13
10
  }
@@ -1,6 +1,7 @@
1
1
  import type { UserPassword } from '../schemas/UserPassword';
2
2
  import type { Anonymous } from '../schemas/Anonymous';
3
3
  import type { AccessKeySecretKey } from '../schemas/AccessKeySecretKey';
4
+ import type { BearerToken } from '../schemas/BearerToken';
4
5
  import type { AuthType } from '../schemas/AuthType';
5
6
  import type { UpstreamProxyConfigFirewallMode } from '../schemas/UpstreamProxyConfigFirewallMode';
6
7
  import type { SigningConfig } from '../schemas/SigningConfig';
@@ -8,7 +9,7 @@ import type { SigningConfig } from '../schemas/SigningConfig';
8
9
  * Configuration for Harness Artifact UpstreamProxies
9
10
  */
10
11
  export interface UpstreamConfig {
11
- auth?: UserPassword | Anonymous | AccessKeySecretKey;
12
+ auth?: UserPassword | Anonymous | AccessKeySecretKey | BearerToken;
12
13
  authType: AuthType;
13
14
  firewallMode?: UpstreamProxyConfigFirewallMode;
14
15
  /**
@@ -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,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-har-service-client",
3
- "version": "0.90.0",
3
+ "version": "0.92.0",
4
4
  "description": "Harness HAR Service APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",