@harnessio/react-har-service-client 0.97.0 → 0.99.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/useDeletePackageV3Mutation.d.ts +1 -1
- package/dist/har-service/src/services/hooks/useDeletePackageV3Mutation.js +1 -1
- package/dist/har-service/src/services/hooks/useDeleteVersionV3Mutation.d.ts +1 -1
- package/dist/har-service/src/services/hooks/useDeleteVersionV3Mutation.js +1 -1
- package/dist/har-service/src/services/hooks/useEdgeAuthorizeV3Mutation.d.ts +19 -0
- package/dist/har-service/src/services/hooks/useEdgeAuthorizeV3Mutation.js +16 -0
- package/dist/har-service/src/services/hooks/useEdgeResolveV3Mutation.d.ts +19 -0
- package/dist/har-service/src/services/hooks/useEdgeResolveV3Mutation.js +16 -0
- package/dist/har-service/src/services/hooks/useGetFileDetailsV3Query.d.ts +22 -0
- package/dist/har-service/src/services/hooks/useGetFileDetailsV3Query.js +15 -0
- package/dist/har-service/src/services/hooks/useGetFileV3Query.d.ts +1 -3
- package/dist/har-service/src/services/hooks/useGetFileV3Query.js +1 -2
- package/dist/har-service/src/services/hooks/useGetTerraformBackendStateV3Query.d.ts +3 -4
- package/dist/har-service/src/services/hooks/useGetTerraformBackendStateV3Query.js +1 -1
- package/dist/har-service/src/services/hooks/useListNodeChildrenV3Query.d.ts +3 -2
- package/dist/har-service/src/services/hooks/useListNodeChildrenV3Query.js +3 -2
- package/dist/har-service/src/services/hooks/useListRegistryNodesV3Query.d.ts +2 -2
- package/dist/har-service/src/services/hooks/useListRegistryNodesV3Query.js +2 -2
- package/dist/har-service/src/services/hooks/useListSigningKeysV3Query.d.ts +3 -0
- package/dist/har-service/src/services/hooks/useListTreeRootsV3Query.d.ts +4 -7
- package/dist/har-service/src/services/hooks/useListTreeRootsV3Query.js +4 -7
- package/dist/har-service/src/services/hooks/useResolveTreePathV3Query.d.ts +48 -0
- package/dist/har-service/src/services/hooks/useResolveTreePathV3Query.js +28 -0
- package/dist/har-service/src/services/hooks/useRevertLifecycleExecutionV3Mutation.d.ts +26 -0
- package/dist/har-service/src/services/hooks/useRevertLifecycleExecutionV3Mutation.js +19 -0
- package/dist/har-service/src/services/hooks/useSearchTreeV3Query.d.ts +49 -0
- package/dist/har-service/src/services/hooks/useSearchTreeV3Query.js +27 -0
- package/dist/har-service/src/services/hooks/useTriggerSemverBackfillV3Mutation.d.ts +19 -0
- package/dist/har-service/src/services/hooks/useTriggerSemverBackfillV3Mutation.js +17 -0
- package/dist/har-service/src/services/hooks/useUpsertAutoMetadataV3Mutation.d.ts +24 -0
- package/dist/har-service/src/services/hooks/useUpsertAutoMetadataV3Mutation.js +17 -0
- package/dist/har-service/src/services/index.d.ts +47 -5
- package/dist/har-service/src/services/index.js +8 -1
- package/dist/har-service/src/services/requestBodies/AutoMetadataRequestV3RequestBody.d.ts +2 -0
- package/dist/har-service/src/services/responses/FileDetailsResponseV3Response.d.ts +4 -0
- package/dist/har-service/src/services/responses/SearchTreeResponseV3Response.d.ts +2 -0
- package/dist/har-service/src/services/responses/SearchTreeResponseV3Response.js +1 -0
- package/dist/har-service/src/services/responses/TreeResolveResponseV3Response.d.ts +2 -0
- package/dist/har-service/src/services/responses/TreeResolveResponseV3Response.js +1 -0
- package/dist/har-service/src/services/schemas/AutoMetadataRequestInputV3.d.ts +38 -0
- package/dist/har-service/src/services/schemas/AutoMetadataRequestInputV3.js +1 -0
- package/dist/har-service/src/services/schemas/BackfillTriggerRequestInputV3.d.ts +7 -0
- package/dist/har-service/src/services/schemas/BulkDeleteRequestInputV3.d.ts +4 -2
- package/dist/har-service/src/services/schemas/EdgeAuthorizeRequestV3.d.ts +9 -0
- package/dist/har-service/src/services/schemas/EdgeAuthorizeResponseV3.d.ts +12 -0
- package/dist/har-service/src/services/schemas/EdgeAuthorizeResponseV3.js +1 -0
- package/dist/har-service/src/services/schemas/EdgeLocationV3.d.ts +5 -0
- package/dist/har-service/src/services/schemas/EdgeLocationV3.js +4 -0
- package/dist/har-service/src/services/schemas/EdgePrincipalV3.d.ts +4 -0
- package/dist/har-service/src/services/schemas/EdgePrincipalV3.js +4 -0
- package/dist/har-service/src/services/schemas/EdgeResolveRequestV3.d.ts +14 -0
- package/dist/har-service/src/services/schemas/EdgeResolveRequestV3.js +4 -0
- package/dist/har-service/src/services/schemas/EdgeResolveResponseV3.d.ts +28 -0
- package/dist/har-service/src/services/schemas/EdgeResolveResponseV3.js +1 -0
- package/dist/har-service/src/services/schemas/FileDetailsV3.d.ts +7 -0
- package/dist/har-service/src/services/schemas/FileDetailsV3.js +1 -0
- package/dist/har-service/src/services/schemas/GenerateKeyRequestV3.d.ts +4 -12
- package/dist/har-service/src/services/schemas/GenerateKeyRequestV3.js +0 -3
- package/dist/har-service/src/services/schemas/ImportKeyRequestV3.d.ts +2 -6
- package/dist/har-service/src/services/schemas/ImportKeyRequestV3.js +0 -3
- package/dist/har-service/src/services/schemas/LifecycleExecutionItemResponseV3.d.ts +5 -0
- package/dist/har-service/src/services/schemas/LifecycleRuleFilterConfigGenericV3.d.ts +2 -0
- package/dist/har-service/src/services/schemas/LifecycleRuleFilterConfigGenericV3.js +0 -3
- package/dist/har-service/src/services/schemas/LifecycleRuleFilterConfigMavenV3.d.ts +2 -0
- package/dist/har-service/src/services/schemas/LifecycleRuleFilterConfigMavenV3.js +0 -3
- package/dist/har-service/src/services/schemas/LifecycleRuleSemverOnlyV3.d.ts +5 -0
- package/dist/har-service/src/services/schemas/LifecycleRuleSemverOnlyV3.js +4 -0
- package/dist/har-service/src/services/schemas/PackageV3.d.ts +0 -4
- package/dist/har-service/src/services/schemas/RegistryV3.d.ts +0 -9
- package/dist/har-service/src/services/schemas/RevertFailureDetailV3.d.ts +9 -0
- package/dist/har-service/src/services/schemas/RevertFailureDetailV3.js +4 -0
- package/dist/har-service/src/services/schemas/RevertLifecycleExecutionDataV3.d.ts +34 -0
- package/dist/har-service/src/services/schemas/RevertLifecycleExecutionDataV3.js +1 -0
- package/dist/har-service/src/services/schemas/RevertLifecycleExecutionResponseV3.d.ts +7 -0
- package/dist/har-service/src/services/schemas/RevertLifecycleExecutionResponseV3.js +1 -0
- package/dist/har-service/src/services/schemas/SearchAncestorV3.d.ts +21 -0
- package/dist/har-service/src/services/schemas/SearchAncestorV3.js +4 -0
- package/dist/har-service/src/services/schemas/SearchFileItemV3.d.ts +46 -0
- package/dist/har-service/src/services/schemas/SearchFileItemV3.js +1 -0
- package/dist/har-service/src/services/schemas/SearchFilesGroupV3.d.ts +26 -0
- package/dist/har-service/src/services/schemas/SearchFilesGroupV3.js +1 -0
- package/dist/har-service/src/services/schemas/SearchPackageItemV3.d.ts +48 -0
- package/dist/har-service/src/services/schemas/SearchPackageItemV3.js +1 -0
- package/dist/har-service/src/services/schemas/SearchPackagesGroupV3.d.ts +26 -0
- package/dist/har-service/src/services/schemas/SearchPackagesGroupV3.js +1 -0
- package/dist/har-service/src/services/schemas/SearchRegistriesGroupV3.d.ts +26 -0
- package/dist/har-service/src/services/schemas/SearchRegistriesGroupV3.js +1 -0
- package/dist/har-service/src/services/schemas/SearchRegistryItemV3.d.ts +26 -0
- package/dist/har-service/src/services/schemas/SearchRegistryItemV3.js +4 -0
- package/dist/har-service/src/services/schemas/SearchTreeResponseBodyV3.d.ts +13 -0
- package/dist/har-service/src/services/schemas/SearchTreeResponseBodyV3.js +1 -0
- package/dist/har-service/src/services/schemas/SearchVersionItemV3.d.ts +70 -0
- package/dist/har-service/src/services/schemas/SearchVersionItemV3.js +1 -0
- package/dist/har-service/src/services/schemas/SearchVersionsGroupV3.d.ts +26 -0
- package/dist/har-service/src/services/schemas/SearchVersionsGroupV3.js +1 -0
- package/dist/har-service/src/services/schemas/SemverBackfillTriggerDataV3.d.ts +14 -0
- package/dist/har-service/src/services/schemas/SemverBackfillTriggerDataV3.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 +2 -6
- package/dist/har-service/src/services/schemas/TreeEntityKindV3.d.ts +7 -0
- package/dist/har-service/src/services/schemas/TreeEntityKindV3.js +4 -0
- package/dist/har-service/src/services/schemas/TreeNodeItemV3.d.ts +42 -22
- package/dist/har-service/src/services/schemas/TreeNodeItemV3.js +0 -3
- package/dist/har-service/src/services/schemas/TreePaginationV3.d.ts +9 -13
- package/dist/har-service/src/services/schemas/TreePathStepV3.d.ts +29 -0
- package/dist/har-service/src/services/schemas/TreePathStepV3.js +1 -0
- package/dist/har-service/src/services/schemas/TreeResolveResponseBodyV3.d.ts +14 -0
- package/dist/har-service/src/services/schemas/TreeResolveResponseBodyV3.js +1 -0
- package/dist/har-service/src/services/schemas/TreeResponseBodyV3.d.ts +1 -1
- package/package.json +1 -1
- package/dist/har-service/src/services/hooks/useGetFilePreviewV3Query.d.ts +0 -24
- package/dist/har-service/src/services/hooks/useGetFilePreviewV3Query.js +0 -15
- package/dist/har-service/src/services/responses/FilePreviewResponseV3Response.d.ts +0 -2
- package/dist/har-service/src/services/schemas/FilePreviewDataV3.d.ts +0 -30
- package/dist/har-service/src/services/schemas/FilePreviewResponseBodyV3.d.ts +0 -7
- /package/dist/har-service/src/services/{responses/FilePreviewResponseV3Response.js → requestBodies/AutoMetadataRequestV3RequestBody.js} +0 -0
- /package/dist/har-service/src/services/{schemas/FilePreviewResponseBodyV3.js → responses/FileDetailsResponseV3Response.js} +0 -0
- /package/dist/har-service/src/services/schemas/{FilePreviewDataV3.js → EdgeAuthorizeRequestV3.js} +0 -0
|
@@ -12,10 +12,6 @@ export interface RegistryV3 {
|
|
|
12
12
|
deletedAt?: DeletedAtMsV3;
|
|
13
13
|
deletedBy?: UserInfoV3;
|
|
14
14
|
description?: string;
|
|
15
|
-
/**
|
|
16
|
-
* @format int64
|
|
17
|
-
*/
|
|
18
|
-
downloadCount?: number;
|
|
19
15
|
/**
|
|
20
16
|
* @format uuid
|
|
21
17
|
*/
|
|
@@ -30,14 +26,9 @@ export interface RegistryV3 {
|
|
|
30
26
|
name: string;
|
|
31
27
|
opaMetadataValidation?: boolean;
|
|
32
28
|
orgIdentifier?: OrgIdentifier;
|
|
33
|
-
/**
|
|
34
|
-
* @format int64
|
|
35
|
-
*/
|
|
36
|
-
packageCount?: number;
|
|
37
29
|
packageType: PackageTypeV3;
|
|
38
30
|
path?: string;
|
|
39
31
|
projectIdentifier?: ProjectIdentifier;
|
|
40
|
-
size?: string;
|
|
41
32
|
type: RegistryTypeV3;
|
|
42
33
|
url: string;
|
|
43
34
|
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { RevertFailureDetailV3 } from '../schemas/RevertFailureDetailV3';
|
|
2
|
+
/**
|
|
3
|
+
* Details of the revert operation result.
|
|
4
|
+
*/
|
|
5
|
+
export interface RevertLifecycleExecutionDataV3 {
|
|
6
|
+
/**
|
|
7
|
+
* The execution ID that was reverted.
|
|
8
|
+
*/
|
|
9
|
+
executionId: string;
|
|
10
|
+
/**
|
|
11
|
+
* Number of artifacts that failed to restore.
|
|
12
|
+
* @format int64
|
|
13
|
+
*/
|
|
14
|
+
failedCount: number;
|
|
15
|
+
/**
|
|
16
|
+
* Details of failed restorations (limited to first 100).
|
|
17
|
+
*/
|
|
18
|
+
failures?: RevertFailureDetailV3[];
|
|
19
|
+
/**
|
|
20
|
+
* Number of artifacts successfully restored.
|
|
21
|
+
* @format int64
|
|
22
|
+
*/
|
|
23
|
+
restoredCount: number;
|
|
24
|
+
/**
|
|
25
|
+
* Number of artifacts skipped (e.g., already restored or hard-deleted).
|
|
26
|
+
* @format int64
|
|
27
|
+
*/
|
|
28
|
+
skippedCount: number;
|
|
29
|
+
/**
|
|
30
|
+
* Total number of items with DELETED outcome in the execution.
|
|
31
|
+
* @format int64
|
|
32
|
+
*/
|
|
33
|
+
totalDeletedItems: number;
|
|
34
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { RevertLifecycleExecutionDataV3 } from '../schemas/RevertLifecycleExecutionDataV3';
|
|
2
|
+
/**
|
|
3
|
+
* Summary of the revert operation for a lifecycle execution.
|
|
4
|
+
*/
|
|
5
|
+
export interface RevertLifecycleExecutionResponseV3 {
|
|
6
|
+
data: RevertLifecycleExecutionDataV3;
|
|
7
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* One crumb of a search hit's breadcrumb. Use these rather than splitting a `path`
|
|
3
|
+
* string, which cannot be split reliably (a package name may itself contain `/`).
|
|
4
|
+
*
|
|
5
|
+
*/
|
|
6
|
+
export interface SearchAncestorV3 {
|
|
7
|
+
/**
|
|
8
|
+
* Registry UUID when `type` is `registry`, otherwise the node UUID.
|
|
9
|
+
*/
|
|
10
|
+
id: string;
|
|
11
|
+
/**
|
|
12
|
+
* Display name of this crumb.
|
|
13
|
+
*/
|
|
14
|
+
name: string;
|
|
15
|
+
/**
|
|
16
|
+
* Which listing call expands this crumb's `id`: `registry` means
|
|
17
|
+
* `ListRegistryNodesV3`, `folder` means `ListNodeChildrenV3`.
|
|
18
|
+
*
|
|
19
|
+
*/
|
|
20
|
+
type: 'folder' | 'registry';
|
|
21
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import type { SearchAncestorV3 } from '../schemas/SearchAncestorV3';
|
|
2
|
+
import type { TreeEntityKindV3 } from '../schemas/TreeEntityKindV3';
|
|
3
|
+
/**
|
|
4
|
+
* One row of the Files group - files and folders alike. Always navigable.
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
7
|
+
export interface SearchFileItemV3 {
|
|
8
|
+
/**
|
|
9
|
+
* Breadcrumb from the registry root down to this hit's immediate parent, shallowest
|
|
10
|
+
* first. Always starts with the registry, so a node directly under the registry root
|
|
11
|
+
* has exactly one entry.
|
|
12
|
+
*
|
|
13
|
+
*/
|
|
14
|
+
ancestors: SearchAncestorV3[];
|
|
15
|
+
/**
|
|
16
|
+
* Effective soft-deletion time in epoch milliseconds, as on `TreeNodeItemV3`; absent
|
|
17
|
+
* when live.
|
|
18
|
+
*
|
|
19
|
+
* @format int64
|
|
20
|
+
*/
|
|
21
|
+
deletedAt?: number;
|
|
22
|
+
/**
|
|
23
|
+
* UUID of the package or version this folder is; present exactly when `entityKind` is.
|
|
24
|
+
* Absent for files and plain folders.
|
|
25
|
+
*
|
|
26
|
+
* @format uuid
|
|
27
|
+
*/
|
|
28
|
+
entityId?: string;
|
|
29
|
+
entityKind?: TreeEntityKindV3;
|
|
30
|
+
/**
|
|
31
|
+
* Node UUID; expand a folder with `ListNodeChildrenV3`.
|
|
32
|
+
* @format uuid
|
|
33
|
+
*/
|
|
34
|
+
id: string;
|
|
35
|
+
isFile: boolean;
|
|
36
|
+
name: string;
|
|
37
|
+
/**
|
|
38
|
+
* Full path of this node within its registry.
|
|
39
|
+
*/
|
|
40
|
+
path: string;
|
|
41
|
+
/**
|
|
42
|
+
* @format uuid
|
|
43
|
+
*/
|
|
44
|
+
registryId: string;
|
|
45
|
+
registryName: string;
|
|
46
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { SearchFileItemV3 } from '../schemas/SearchFileItemV3';
|
|
2
|
+
/**
|
|
3
|
+
* The Files group of a global grouped search result.
|
|
4
|
+
*/
|
|
5
|
+
export interface SearchFilesGroupV3 {
|
|
6
|
+
/**
|
|
7
|
+
* Count of files/folders matching the request, independent of pagination. Exact up to 1000;
|
|
8
|
+
* 1001 means "more than 1000" and should be rendered as "1000+".
|
|
9
|
+
*
|
|
10
|
+
* @format int64
|
|
11
|
+
*/
|
|
12
|
+
count: number;
|
|
13
|
+
hasMore: boolean;
|
|
14
|
+
items: SearchFileItemV3[];
|
|
15
|
+
/**
|
|
16
|
+
* Opaque cursor for this group's next page, to send as this group's cursor parameter. Present only when `hasMore` is true.
|
|
17
|
+
*/
|
|
18
|
+
nextCursor?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Present and true when this group's queries exceeded the server's time budget. The
|
|
21
|
+
* group is then served empty - `items` is `[]` and `count` is 0, which is not a real
|
|
22
|
+
* zero - while the other groups are returned as normal. Retry, or narrow the search.
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
timedOut?: boolean;
|
|
26
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import type { SearchAncestorV3 } from '../schemas/SearchAncestorV3';
|
|
2
|
+
/**
|
|
3
|
+
* One row of the Packages group. Covers every package type, not only Docker/Helm.
|
|
4
|
+
*
|
|
5
|
+
*/
|
|
6
|
+
export interface SearchPackageItemV3 {
|
|
7
|
+
/**
|
|
8
|
+
* Breadcrumb from the registry root down to this package's immediate parent, shallowest
|
|
9
|
+
* first. Present exactly when `nodeId` is.
|
|
10
|
+
*
|
|
11
|
+
*/
|
|
12
|
+
ancestors?: SearchAncestorV3[];
|
|
13
|
+
/**
|
|
14
|
+
* Soft-deletion time in epoch milliseconds; absent when the package is live. Only present
|
|
15
|
+
* when the request's `deleted_filter` is `include_deleted` or `only_deleted`.
|
|
16
|
+
*
|
|
17
|
+
* @format int64
|
|
18
|
+
*/
|
|
19
|
+
deletedAt?: number;
|
|
20
|
+
/**
|
|
21
|
+
* Package UUID.
|
|
22
|
+
* @format uuid
|
|
23
|
+
*/
|
|
24
|
+
id: string;
|
|
25
|
+
name: string;
|
|
26
|
+
/**
|
|
27
|
+
* Tree node of this package, to reveal the hit in the tree; expand it with
|
|
28
|
+
* `ListNodeChildrenV3`. Same format as `TreeNodeItemV3.id` - for Docker/Helm the
|
|
29
|
+
* synthetic `image:<registryUUID>:<packageUUID>` - hence a plain string.
|
|
30
|
+
*
|
|
31
|
+
* **Absent means the hit is not navigable; still render it**, as a non-navigable
|
|
32
|
+
* result. This is a normal state: e.g. an UPSTREAM proxy package whose files were never
|
|
33
|
+
* cached, HELM_HTTP and CRAN (no package folder in their layout), or a best-effort
|
|
34
|
+
* location lookup that did not complete.
|
|
35
|
+
*
|
|
36
|
+
*/
|
|
37
|
+
nodeId?: string;
|
|
38
|
+
/**
|
|
39
|
+
* Absent for package types that don't record one.
|
|
40
|
+
*/
|
|
41
|
+
packageKind?: string;
|
|
42
|
+
packageType: string;
|
|
43
|
+
/**
|
|
44
|
+
* @format uuid
|
|
45
|
+
*/
|
|
46
|
+
registryId: string;
|
|
47
|
+
registryName: string;
|
|
48
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { SearchPackageItemV3 } from '../schemas/SearchPackageItemV3';
|
|
2
|
+
/**
|
|
3
|
+
* The Packages group of a global grouped search result.
|
|
4
|
+
*/
|
|
5
|
+
export interface SearchPackagesGroupV3 {
|
|
6
|
+
/**
|
|
7
|
+
* Count of packages matching the request, independent of pagination. Exact up to 1000;
|
|
8
|
+
* 1001 means "more than 1000" and should be rendered as "1000+".
|
|
9
|
+
*
|
|
10
|
+
* @format int64
|
|
11
|
+
*/
|
|
12
|
+
count: number;
|
|
13
|
+
hasMore: boolean;
|
|
14
|
+
items: SearchPackageItemV3[];
|
|
15
|
+
/**
|
|
16
|
+
* Opaque cursor for this group's next page, to send as this group's cursor parameter. Present only when `hasMore` is true.
|
|
17
|
+
*/
|
|
18
|
+
nextCursor?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Present and true when this group's queries exceeded the server's time budget. The
|
|
21
|
+
* group is then served empty - `items` is `[]` and `count` is 0, which is not a real
|
|
22
|
+
* zero - while the other groups are returned as normal. Retry, or narrow the search.
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
timedOut?: boolean;
|
|
26
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { SearchRegistryItemV3 } from '../schemas/SearchRegistryItemV3';
|
|
2
|
+
/**
|
|
3
|
+
* The Registries group of a global grouped search result.
|
|
4
|
+
*/
|
|
5
|
+
export interface SearchRegistriesGroupV3 {
|
|
6
|
+
/**
|
|
7
|
+
* Count of registries matching the request, independent of pagination. Exact up to 1000;
|
|
8
|
+
* 1001 means "more than 1000" and should be rendered as "1000+".
|
|
9
|
+
*
|
|
10
|
+
* @format int64
|
|
11
|
+
*/
|
|
12
|
+
count: number;
|
|
13
|
+
hasMore: boolean;
|
|
14
|
+
items: SearchRegistryItemV3[];
|
|
15
|
+
/**
|
|
16
|
+
* Opaque cursor for this group's next page, to send as this group's cursor parameter. Present only when `hasMore` is true.
|
|
17
|
+
*/
|
|
18
|
+
nextCursor?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Present and true when this group's queries exceeded the server's time budget. The
|
|
21
|
+
* group is then served empty - `items` is `[]` and `count` is 0, which is not a real
|
|
22
|
+
* zero - while the other groups are returned as normal. Retry, or narrow the search.
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
timedOut?: boolean;
|
|
26
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* One row of the Registries group.
|
|
3
|
+
*/
|
|
4
|
+
export interface SearchRegistryItemV3 {
|
|
5
|
+
/**
|
|
6
|
+
* Soft-deletion time in epoch milliseconds; absent when the registry is live. Only present
|
|
7
|
+
* when the request's `deleted_filter` is `include_deleted` or `only_deleted`.
|
|
8
|
+
*
|
|
9
|
+
* @format int64
|
|
10
|
+
*/
|
|
11
|
+
deletedAt?: number;
|
|
12
|
+
/**
|
|
13
|
+
* Registry UUID; expand it with `ListRegistryNodesV3`.
|
|
14
|
+
* @format uuid
|
|
15
|
+
*/
|
|
16
|
+
id: string;
|
|
17
|
+
name: string;
|
|
18
|
+
packageType: string;
|
|
19
|
+
registryType: string;
|
|
20
|
+
/**
|
|
21
|
+
* Path of the space that owns the registry (e.g. `account/org/project`), which tells
|
|
22
|
+
* same-named registries in different spaces apart. Absent if it could not be resolved.
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
spacePath?: string;
|
|
26
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { SearchFilesGroupV3 } from '../schemas/SearchFilesGroupV3';
|
|
2
|
+
import type { SearchPackagesGroupV3 } from '../schemas/SearchPackagesGroupV3';
|
|
3
|
+
import type { SearchRegistriesGroupV3 } from '../schemas/SearchRegistriesGroupV3';
|
|
4
|
+
import type { SearchVersionsGroupV3 } from '../schemas/SearchVersionsGroupV3';
|
|
5
|
+
/**
|
|
6
|
+
* Response body for the global grouped tree search endpoint.
|
|
7
|
+
*/
|
|
8
|
+
export interface SearchTreeResponseBodyV3 {
|
|
9
|
+
files: SearchFilesGroupV3;
|
|
10
|
+
packages: SearchPackagesGroupV3;
|
|
11
|
+
registries: SearchRegistriesGroupV3;
|
|
12
|
+
versions: SearchVersionsGroupV3;
|
|
13
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import type { SearchAncestorV3 } from '../schemas/SearchAncestorV3';
|
|
2
|
+
/**
|
|
3
|
+
* One row of the Versions group. Docker and Helm versions match on their tag names only - a
|
|
4
|
+
* digest is not searchable here - and every other package type matches on the version name.
|
|
5
|
+
* One row per version, not per tag: an OCI digest carrying several tags is a single row
|
|
6
|
+
* listing them all in `tags`.
|
|
7
|
+
*
|
|
8
|
+
*/
|
|
9
|
+
export interface SearchVersionItemV3 {
|
|
10
|
+
/**
|
|
11
|
+
* Breadcrumb from the registry root down to this version's immediate parent, shallowest
|
|
12
|
+
* first. Present exactly when `nodeId` is.
|
|
13
|
+
*
|
|
14
|
+
*/
|
|
15
|
+
ancestors?: SearchAncestorV3[];
|
|
16
|
+
/**
|
|
17
|
+
* Soft-deletion time in epoch milliseconds; absent when the version is live. Only present
|
|
18
|
+
* when the request's `deleted_filter` is `include_deleted` or `only_deleted`.
|
|
19
|
+
*
|
|
20
|
+
* @format int64
|
|
21
|
+
*/
|
|
22
|
+
deletedAt?: number;
|
|
23
|
+
/**
|
|
24
|
+
* Version UUID.
|
|
25
|
+
* @format uuid
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
* The stored version. For Docker and Helm this is the manifest digest in an internal
|
|
30
|
+
* `<2-digit algorithm prefix><hex>` form, not `sha256:...` - display `tags` instead
|
|
31
|
+
* when present.
|
|
32
|
+
*
|
|
33
|
+
*/
|
|
34
|
+
name: string;
|
|
35
|
+
/**
|
|
36
|
+
* Tree node of this version, to reveal the hit in the tree. Same format as
|
|
37
|
+
* `TreeNodeItemV3.id`, hence a plain string. For HELM_HTTP and CRAN, which have no
|
|
38
|
+
* version folder, it is the version's archive *file* node; reveal it by expanding
|
|
39
|
+
* `ancestors`. For Docker and Helm it is the tag node (`tag:<registryId>:<tagId>`) of
|
|
40
|
+
* a tag whose name matches the term, else the first tag by name.
|
|
41
|
+
*
|
|
42
|
+
* **Absent means the hit is not navigable; still render it**, as a non-navigable
|
|
43
|
+
* result. Absent for Docker and Helm digests that carry no tag; otherwise for e.g. an
|
|
44
|
+
* UPSTREAM proxy version whose files were never cached, or a best-effort location
|
|
45
|
+
* lookup that did not complete.
|
|
46
|
+
*
|
|
47
|
+
*/
|
|
48
|
+
nodeId?: string;
|
|
49
|
+
/**
|
|
50
|
+
* @format uuid
|
|
51
|
+
*/
|
|
52
|
+
packageId: string;
|
|
53
|
+
/**
|
|
54
|
+
* Absent for package types that don't record one.
|
|
55
|
+
*/
|
|
56
|
+
packageKind?: string;
|
|
57
|
+
packageName: string;
|
|
58
|
+
packageType: string;
|
|
59
|
+
/**
|
|
60
|
+
* @format uuid
|
|
61
|
+
*/
|
|
62
|
+
registryId: string;
|
|
63
|
+
registryName: string;
|
|
64
|
+
/**
|
|
65
|
+
* Every tag pointing at this version's manifest, ordered by name. Absent for non-OCI
|
|
66
|
+
* package types and for untagged OCI digests.
|
|
67
|
+
*
|
|
68
|
+
*/
|
|
69
|
+
tags?: string[];
|
|
70
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { SearchVersionItemV3 } from '../schemas/SearchVersionItemV3';
|
|
2
|
+
/**
|
|
3
|
+
* The Versions group of a global grouped search result.
|
|
4
|
+
*/
|
|
5
|
+
export interface SearchVersionsGroupV3 {
|
|
6
|
+
/**
|
|
7
|
+
* Count of versions matching the request, independent of pagination. Exact up to 1000;
|
|
8
|
+
* 1001 means "more than 1000" and should be rendered as "1000+".
|
|
9
|
+
*
|
|
10
|
+
* @format int64
|
|
11
|
+
*/
|
|
12
|
+
count: number;
|
|
13
|
+
hasMore: boolean;
|
|
14
|
+
items: SearchVersionItemV3[];
|
|
15
|
+
/**
|
|
16
|
+
* Opaque cursor for this group's next page, to send as this group's cursor parameter. Present only when `hasMore` is true.
|
|
17
|
+
*/
|
|
18
|
+
nextCursor?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Present and true when this group's queries exceeded the server's time budget. The
|
|
21
|
+
* group is then served empty - `items` is `[]` and `count` is 0, which is not a real
|
|
22
|
+
* zero - while the other groups are returned as normal. Retry, or narrow the search.
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
timedOut?: boolean;
|
|
26
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Response payload returned when a semver backfill is successfully triggered.
|
|
3
|
+
*/
|
|
4
|
+
export interface SemverBackfillTriggerDataV3 {
|
|
5
|
+
/**
|
|
6
|
+
* Numeric identifier of the CDC job row created for this backfill.
|
|
7
|
+
* @format int64
|
|
8
|
+
*/
|
|
9
|
+
jobId: number;
|
|
10
|
+
/**
|
|
11
|
+
* Human-readable status message.
|
|
12
|
+
*/
|
|
13
|
+
message: string;
|
|
14
|
+
}
|
|
@@ -3,6 +3,7 @@ import type { CreatedAtMsV3 } from '../schemas/CreatedAtMsV3';
|
|
|
3
3
|
import type { UserInfoV3 } from '../schemas/UserInfoV3';
|
|
4
4
|
import type { ModifiedAtMsV3 } from '../schemas/ModifiedAtMsV3';
|
|
5
5
|
import type { SigningKeyStatusV3 } from '../schemas/SigningKeyStatusV3';
|
|
6
|
+
import type { SigningKeyTypeV3 } from '../schemas/SigningKeyTypeV3';
|
|
6
7
|
/**
|
|
7
8
|
* A signing key used for repository metadata signing (Debian, Alpine, etc.)
|
|
8
9
|
*/
|
|
@@ -47,11 +48,6 @@ export interface SigningKeyV3 {
|
|
|
47
48
|
*/
|
|
48
49
|
source: 'GENERATED' | 'IMPORTED';
|
|
49
50
|
status: SigningKeyStatusV3;
|
|
50
|
-
|
|
51
|
-
* 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.
|
|
52
|
-
*
|
|
53
|
-
* @example "GPG"
|
|
54
|
-
*/
|
|
55
|
-
type: string;
|
|
51
|
+
type: SigningKeyTypeV3;
|
|
56
52
|
updatedBy?: UserInfoV3;
|
|
57
53
|
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What a tree node or search hit is: a registry, a package or a version. Absent for plain
|
|
3
|
+
* folders and files. A Docker/Helm platform row is a `folder` whose entity is its own
|
|
4
|
+
* manifest's version.
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
7
|
+
export type TreeEntityKindV3 = 'PACKAGE' | 'REGISTRY' | 'VERSION';
|
|
@@ -1,54 +1,74 @@
|
|
|
1
|
+
import type { TreeEntityKindV3 } from '../schemas/TreeEntityKindV3';
|
|
1
2
|
/**
|
|
2
3
|
* A node in the tree view representing a registry, package, version, folder, or file
|
|
3
4
|
*/
|
|
4
5
|
export interface TreeNodeItemV3 {
|
|
5
6
|
/**
|
|
6
|
-
* Creation
|
|
7
|
+
* Creation time in epoch milliseconds. Absent when unknown.
|
|
7
8
|
* @format int64
|
|
8
9
|
*/
|
|
9
10
|
createdAt?: number;
|
|
10
11
|
/**
|
|
11
|
-
*
|
|
12
|
+
* Soft-deletion time in epoch milliseconds; absent when the node is live. This is the
|
|
13
|
+
* effective state: the node's own entity's, else its package's, else its registry's, so
|
|
14
|
+
* a file under a deleted version reads as deleted. Plain folders and files that belong to
|
|
15
|
+
* no resolvable package carry their registry's state.
|
|
16
|
+
*
|
|
12
17
|
* @format int64
|
|
13
18
|
*/
|
|
14
19
|
deletedAt?: number;
|
|
15
20
|
/**
|
|
16
|
-
*
|
|
21
|
+
* UUID of the registry, package or version this node is; present exactly when
|
|
22
|
+
* `entityKind` is. Pass it to the matching details API (`/registries/{id}/metadata`,
|
|
23
|
+
* `/packages/{id}/metadata`, `/versions/{id}/metadata`).
|
|
24
|
+
*
|
|
25
|
+
* @format uuid
|
|
17
26
|
*/
|
|
18
|
-
|
|
27
|
+
entityId?: string;
|
|
28
|
+
entityKind?: TreeEntityKindV3;
|
|
19
29
|
/**
|
|
20
|
-
*
|
|
30
|
+
* Whether expanding this node returns at least one child.
|
|
21
31
|
*/
|
|
22
|
-
|
|
32
|
+
hasChildren: boolean;
|
|
23
33
|
/**
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
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".
|
|
34
|
+
* Identifier to expand this node with. The registry UUID for a registry (pass it to
|
|
35
|
+
* `ListRegistryNodesV3`); otherwise pass it to `ListNodeChildrenV3`. Below the root it is
|
|
36
|
+
* a node UUID, or for Docker/Helm registries a synthetic `<kind>:<registryUUID>:<innerId>`
|
|
37
|
+
* id - hence a plain string rather than a UUID. Treat it as opaque.
|
|
35
38
|
*
|
|
36
39
|
*/
|
|
37
|
-
|
|
40
|
+
id: string;
|
|
38
41
|
/**
|
|
39
|
-
* Display name
|
|
42
|
+
* Display name. A collapsed `compact` row joins its segments with `/`; the Docker/Helm
|
|
43
|
+
* untagged group reads `Untagged (n)`, with n shown as `1000+` past 1000.
|
|
44
|
+
*
|
|
40
45
|
*/
|
|
41
46
|
name: string;
|
|
42
47
|
/**
|
|
43
|
-
* Package type
|
|
48
|
+
* Package type of the registry this node belongs to. Set on every level.
|
|
44
49
|
*/
|
|
45
50
|
packageType?: string;
|
|
46
51
|
/**
|
|
47
|
-
*
|
|
52
|
+
* Display path of this node within its registry; the registry name for a registry.
|
|
53
|
+
* For display only - do not split it to derive ancestor ids.
|
|
54
|
+
*
|
|
48
55
|
*/
|
|
49
56
|
path?: string;
|
|
50
57
|
/**
|
|
51
|
-
*
|
|
58
|
+
* Canonical, readable address of this node: put it in a shareable URL and pass it as `path`
|
|
59
|
+
* to `ResolveTreePathV3` to get the node's ids back. Unlike `path`, it is unique and stable across responses. Absent when
|
|
60
|
+
* the node cannot be addressed by path (a platform below a nested Docker/Helm manifest
|
|
61
|
+
* list).
|
|
62
|
+
*
|
|
63
|
+
*/
|
|
64
|
+
treePath?: string;
|
|
65
|
+
/**
|
|
66
|
+
* Type of the node. Docker/Helm registries expose `package` (image), `version` (tag or
|
|
67
|
+
* untagged manifest) and `folder` (the untagged group and per-platform manifests). Other
|
|
68
|
+
* package types expose `package` and `version` for folders that are one, and `folder`
|
|
69
|
+
* and `file` otherwise; Debian, CRAN, Conan, Wolfi and HELM_HTTP expose only `folder`
|
|
70
|
+
* and `file`.
|
|
71
|
+
*
|
|
52
72
|
*/
|
|
53
73
|
type: 'file' | 'folder' | 'package' | 'registry' | 'version';
|
|
54
74
|
}
|