@harnessio/react-har-service-client 0.91.0 → 0.93.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 +0 -5
- 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/useGetRegistryRootsIndexStatusV3Query.d.ts +26 -0
- package/dist/har-service/src/services/hooks/useGetRegistryRootsIndexStatusV3Query.js +20 -0
- 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/useGetTrigramIndexStatusV3Query.d.ts +26 -0
- package/dist/har-service/src/services/hooks/useGetTrigramIndexStatusV3Query.js +20 -0
- package/dist/har-service/src/services/hooks/useImportSigningKeyV3Mutation.d.ts +2 -4
- package/dist/har-service/src/services/hooks/useListNodeChildrenV3Query.d.ts +35 -0
- package/dist/har-service/src/services/hooks/useListNodeChildrenV3Query.js +16 -0
- 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/useListRegistryNodesV3Query.d.ts +35 -0
- package/dist/har-service/src/services/hooks/useListRegistryNodesV3Query.js +16 -0
- package/dist/har-service/src/services/hooks/useListSigningKeysV3Query.d.ts +4 -4
- package/dist/har-service/src/services/hooks/useListTreeRootsV3Query.d.ts +40 -0
- package/dist/har-service/src/services/hooks/useListTreeRootsV3Query.js +21 -0
- package/dist/har-service/src/services/hooks/useRollbackTerraformBackendV3Mutation.d.ts +21 -0
- package/dist/har-service/src/services/hooks/useRollbackTerraformBackendV3Mutation.js +15 -0
- package/dist/har-service/src/services/hooks/useTriggerRegistryRootsIndexBuildV3Mutation.d.ts +34 -0
- package/dist/har-service/src/services/hooks/useTriggerRegistryRootsIndexBuildV3Mutation.js +28 -0
- package/dist/har-service/src/services/hooks/useTriggerTrigramIndexBuildV3Mutation.d.ts +34 -0
- package/dist/har-service/src/services/hooks/useTriggerTrigramIndexBuildV3Mutation.js +28 -0
- 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 +43 -6
- package/dist/har-service/src/services/index.js +10 -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/responses/TreeResponseV3Response.d.ts +2 -0
- package/dist/har-service/src/services/responses/TreeResponseV3Response.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/RegistryRootsIndexBuildDataV3.d.ts +13 -0
- package/dist/har-service/src/services/schemas/RegistryRootsIndexBuildDataV3.js +4 -0
- package/dist/har-service/src/services/schemas/RegistryRootsIndexStatusDataV3.d.ts +22 -0
- package/dist/har-service/src/services/schemas/RegistryRootsIndexStatusDataV3.js +4 -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/TreeNodeItemV3.d.ts +54 -0
- package/dist/har-service/src/services/schemas/TreeNodeItemV3.js +4 -0
- package/dist/har-service/src/services/schemas/TreePaginationV3.d.ts +35 -0
- package/dist/har-service/src/services/schemas/TreePaginationV3.js +4 -0
- package/dist/har-service/src/services/schemas/TreeResponseBodyV3.d.ts +12 -0
- package/dist/har-service/src/services/schemas/TreeResponseBodyV3.js +1 -0
- package/dist/har-service/src/services/schemas/TrigramIndexBuildDataV3.d.ts +13 -0
- package/dist/har-service/src/services/schemas/TrigramIndexBuildDataV3.js +4 -0
- package/dist/har-service/src/services/schemas/TrigramIndexStateV3.d.ts +11 -0
- package/dist/har-service/src/services/schemas/TrigramIndexStateV3.js +4 -0
- package/dist/har-service/src/services/schemas/TrigramIndexStatusDataV3.d.ts +18 -0
- package/dist/har-service/src/services/schemas/TrigramIndexStatusDataV3.js +1 -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
|
@@ -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,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Response payload returned when the registry-roots index build is accepted.
|
|
3
|
+
*/
|
|
4
|
+
export interface RegistryRootsIndexBuildDataV3 {
|
|
5
|
+
/**
|
|
6
|
+
* Name of the index this build is responsible for.
|
|
7
|
+
*/
|
|
8
|
+
index: string;
|
|
9
|
+
/**
|
|
10
|
+
* UID of the job row created for this build. Poll the jobs table with it, or call the status endpoint.
|
|
11
|
+
*/
|
|
12
|
+
jobUid: string;
|
|
13
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Current state of idx_nodes_registry_roots, read from the Postgres catalog.
|
|
3
|
+
*/
|
|
4
|
+
export interface RegistryRootsIndexStatusDataV3 {
|
|
5
|
+
exists: boolean;
|
|
6
|
+
/**
|
|
7
|
+
* Name of the index this status describes.
|
|
8
|
+
*/
|
|
9
|
+
index: string;
|
|
10
|
+
/**
|
|
11
|
+
* Result string of the most recent build job.
|
|
12
|
+
*/
|
|
13
|
+
jobResult?: string;
|
|
14
|
+
/**
|
|
15
|
+
* State of the most recent build job, absent if no build has ever been triggered.
|
|
16
|
+
*/
|
|
17
|
+
jobState?: string;
|
|
18
|
+
/**
|
|
19
|
+
* False for an index left INVALID by an interrupted CONCURRENTLY build. The planner never uses such an index, but writes still maintain it.
|
|
20
|
+
*/
|
|
21
|
+
valid: boolean;
|
|
22
|
+
}
|
|
@@ -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
|
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A node in the tree view representing a registry, package, version, folder, or file
|
|
3
|
+
*/
|
|
4
|
+
export interface TreeNodeItemV3 {
|
|
5
|
+
/**
|
|
6
|
+
* Creation timestamp in milliseconds
|
|
7
|
+
* @format int64
|
|
8
|
+
*/
|
|
9
|
+
createdAt?: number;
|
|
10
|
+
/**
|
|
11
|
+
* Deletion timestamp in milliseconds (if soft-deleted)
|
|
12
|
+
* @format int64
|
|
13
|
+
*/
|
|
14
|
+
deletedAt?: number;
|
|
15
|
+
/**
|
|
16
|
+
* Whether this node has child nodes
|
|
17
|
+
*/
|
|
18
|
+
hasChildren: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Unique identifier (UUID for nodes, registry_id for root registries)
|
|
21
|
+
*/
|
|
22
|
+
id: string;
|
|
23
|
+
/**
|
|
24
|
+
* Whether this node is soft-deleted. Tree levels below the root return both active and
|
|
25
|
+
* soft-deleted nodes, so clients must use this flag to render deleted state rather than
|
|
26
|
+
* assuming every returned node is live.
|
|
27
|
+
*
|
|
28
|
+
* Omitted when soft-delete state cannot be determined for the node's level: the version
|
|
29
|
+
* and platform levels of OCI (Docker/Helm) registries come from
|
|
30
|
+
* `tags`/`manifests`/`manifest_references`, none of which have a soft-delete column,
|
|
31
|
+
* and all nodes of non-OCI registries come from `nodes`, whose `node_deleted_at` column
|
|
32
|
+
* is not populated by any write path. Only the root (`registries`) and Docker/Helm
|
|
33
|
+
* package (`images`) levels can answer this. An omitted value means "unknown" - it must
|
|
34
|
+
* not be read as "not deleted".
|
|
35
|
+
*
|
|
36
|
+
*/
|
|
37
|
+
isDeleted?: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Display name of the node
|
|
40
|
+
*/
|
|
41
|
+
name: string;
|
|
42
|
+
/**
|
|
43
|
+
* Package type (for registries/packages)
|
|
44
|
+
*/
|
|
45
|
+
packageType?: string;
|
|
46
|
+
/**
|
|
47
|
+
* Full path to this node
|
|
48
|
+
*/
|
|
49
|
+
path?: string;
|
|
50
|
+
/**
|
|
51
|
+
* Type of the node
|
|
52
|
+
*/
|
|
53
|
+
type: 'file' | 'folder' | 'package' | 'registry' | 'version';
|
|
54
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pagination information for tree view
|
|
3
|
+
*/
|
|
4
|
+
export interface TreePaginationV3 {
|
|
5
|
+
/**
|
|
6
|
+
* Whether there are more pages
|
|
7
|
+
*/
|
|
8
|
+
hasMore: boolean;
|
|
9
|
+
/**
|
|
10
|
+
* Cursor for next page (base64 encoded)
|
|
11
|
+
*/
|
|
12
|
+
nextCursor?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Page size
|
|
15
|
+
* @format int32
|
|
16
|
+
*/
|
|
17
|
+
size: number;
|
|
18
|
+
/**
|
|
19
|
+
* Total number of items matching the request across all pages, independent of
|
|
20
|
+
* pagination.
|
|
21
|
+
*
|
|
22
|
+
* Exact at the root (registry) level, where the filtered set is small enough to
|
|
23
|
+
* count cheaply. Below the root it is **capped** (currently at 1000): child fanout
|
|
24
|
+
* is unbounded, and an exact count of a wide parent is far more expensive than the
|
|
25
|
+
* page itself. A value at the cap means "at least this many", not necessarily
|
|
26
|
+
* exact - use `hasMore` to drive "Load More" rather than comparing against `total`.
|
|
27
|
+
*
|
|
28
|
+
* Optional, and **absent on root-level pages fetched with a `cursor`**: the total
|
|
29
|
+
* does not change while paging through a fixed filter set, so it is computed once on
|
|
30
|
+
* the first page and the client is expected to hold it across Load More.
|
|
31
|
+
*
|
|
32
|
+
* @format int64
|
|
33
|
+
*/
|
|
34
|
+
total?: number;
|
|
35
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { TreeNodeItemV3 } from '../schemas/TreeNodeItemV3';
|
|
2
|
+
import type { TreePaginationV3 } from '../schemas/TreePaginationV3';
|
|
3
|
+
/**
|
|
4
|
+
* Response body for tree view endpoints
|
|
5
|
+
*/
|
|
6
|
+
export interface TreeResponseBodyV3 {
|
|
7
|
+
/**
|
|
8
|
+
* List of tree nodes
|
|
9
|
+
*/
|
|
10
|
+
items: TreeNodeItemV3[];
|
|
11
|
+
pagination: TreePaginationV3;
|
|
12
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Response payload returned when a trigram index build is accepted.
|
|
3
|
+
*/
|
|
4
|
+
export interface TrigramIndexBuildDataV3 {
|
|
5
|
+
/**
|
|
6
|
+
* Names of the indexes this build is responsible for.
|
|
7
|
+
*/
|
|
8
|
+
indexes: string[];
|
|
9
|
+
/**
|
|
10
|
+
* UID of the job row created for this build. Poll the jobs table with it, or call the status endpoint.
|
|
11
|
+
*/
|
|
12
|
+
jobUid: string;
|
|
13
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Catalog state of a single trigram index.
|
|
3
|
+
*/
|
|
4
|
+
export interface TrigramIndexStateV3 {
|
|
5
|
+
exists: boolean;
|
|
6
|
+
name: string;
|
|
7
|
+
/**
|
|
8
|
+
* False for an index left INVALID by an interrupted CONCURRENTLY build. The planner never uses such an index, but writes still maintain it.
|
|
9
|
+
*/
|
|
10
|
+
valid: boolean;
|
|
11
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { TrigramIndexStateV3 } from '../schemas/TrigramIndexStateV3';
|
|
2
|
+
/**
|
|
3
|
+
* Current state of each trigram index, read from the Postgres catalog.
|
|
4
|
+
*/
|
|
5
|
+
export interface TrigramIndexStatusDataV3 {
|
|
6
|
+
/**
|
|
7
|
+
* Per-index catalog state.
|
|
8
|
+
*/
|
|
9
|
+
indexes: TrigramIndexStateV3[];
|
|
10
|
+
/**
|
|
11
|
+
* Result string of the most recent build job, naming each index and whether it was built or already present.
|
|
12
|
+
*/
|
|
13
|
+
jobResult?: string;
|
|
14
|
+
/**
|
|
15
|
+
* State of the most recent build job, absent if no build has ever been triggered.
|
|
16
|
+
*/
|
|
17
|
+
jobState?: string;
|
|
18
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -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' | null;
|
|
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>;
|