feat(contracts): share notification, organization and device capability models

Move the Hub channel table, organization tags and device capability definitions
into the workspace packages so the control plane and the console validate the
same contract, and refresh the frozen upstream evidence for the new paths.
This commit is contained in:
chick
2026-09-05 18:52:54 +08:00
parent 03fa2e6c7b
commit f11877f13e
19 changed files with 15535 additions and 11768 deletions
+4
View File
@@ -41,12 +41,14 @@ export interface InstanceInput {
readonly name: string;
readonly origin: string;
readonly tags?: readonly string[];
readonly groupId?: string | null;
readonly password?: PasswordUpdate;
}
export interface InstancePatch {
readonly name?: string;
readonly origin?: string;
readonly tags?: readonly string[];
readonly groupId?: string | null;
readonly password?: PasswordUpdate;
}
export interface LoginInput {
@@ -58,6 +60,7 @@ export interface Instance {
readonly name: string;
readonly origin: string;
readonly tags: readonly string[];
readonly groupId: string | null;
readonly revision: Revision;
readonly capabilityStatus: CapabilityStatus;
readonly freshness: SnapshotFreshness;
@@ -68,6 +71,7 @@ export interface InstanceFilters {
readonly capabilityStatus?: CapabilityStatus;
readonly freshness?: SnapshotFreshness;
readonly tag?: string;
readonly groupId?: string;
readonly credentialConfigured?: boolean;
}
export type InstancePageQuery = PageQuery<'name' | 'status' | 'freshness' | 'updatedAt'> &