-
-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathtypes.ts
More file actions
30 lines (27 loc) · 782 Bytes
/
types.ts
File metadata and controls
30 lines (27 loc) · 782 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
export interface DiscoveredDeviceMetadata {
identifier?: string;
model?: string;
version?: string;
/** @deprecated Retained for backward compatibility; not actively used. */
minVersion?: string;
deviceType?: string;
/** @deprecated Retained for backward compatibility; not actively used. */
authTag?: string;
/** @deprecated Retained for backward compatibility; not actively used. */
serviceType?: string;
}
export interface DiscoveredDevice {
id: string;
name: string;
hostname?: string;
ip?: string;
port?: number;
metadata: DiscoveredDeviceMetadata;
}
export interface DiscoveryOptions {
serviceType: string;
domain?: string;
}
export interface IDeviceDiscoveryBackend {
discoverDevices(timeoutMs: number): Promise<DiscoveredDevice[]>;
}