Add automatic nearby discovery and simplify device presence UI
This commit is contained in:
@@ -59,8 +59,14 @@ export const joinInput = z
|
||||
})
|
||||
.strict()
|
||||
.refine((v) => Boolean(v.code) !== Boolean(v.token));
|
||||
export type Device = { id: string; name: string; code: string; discoverable: boolean };
|
||||
export type Peer = Device & { sources: ('network' | 'space')[] };
|
||||
export type Device = {
|
||||
id: string;
|
||||
name: string;
|
||||
code: string;
|
||||
discoverable: boolean;
|
||||
info?: { model: string; platform: string; manufacturer: string };
|
||||
};
|
||||
export type Peer = Device & { sources: ('network' | 'space' | 'nearby')[] };
|
||||
export type RequestStatus = 'pending' | 'accepted' | 'rejected' | 'expired' | 'cancelled';
|
||||
export type TransferRequest = {
|
||||
id: string;
|
||||
|
||||
Reference in New Issue
Block a user