refactor(housekeeping): stabilize service contracts
This commit is contained in:
1 parent
67cb4b488d
commit
b7edbca043
10 files changed
+145
-28
No files matched your search
@@ -3,6 +3,7 @@ import type {
|
||||
CapabilityRequirement,
|
||||
HousekeepingCapabilityContext,
|
||||
} from "./capability";
|
||||
import type { CanonicalHousekeepingHref } from "./domain";
|
||||
import type { HousekeepingResult } from "./result";
|
||||
|
||||
export interface HousekeepingSearchInput {
|
||||
@@ -10,11 +11,16 @@ export interface HousekeepingSearchInput {
|
||||
limit: number;
|
||||
}
|
||||
|
||||
export type HousekeepingSearchResultType = "navigation" | "entity" | "command";
|
||||
|
||||
export interface HousekeepingSearchResult {
|
||||
id: string;
|
||||
domain: HousekeepingDomainId;
|
||||
type: HousekeepingSearchResultType;
|
||||
title: string;
|
||||
href: string;
|
||||
description?: string;
|
||||
href: CanonicalHousekeepingHref;
|
||||
capability: CapabilityRequirement;
|
||||
}
|
||||
|
||||
export interface HousekeepingSearchProvider {
|
||||
|
||||
Reference in new issue
Block a user