Initial commit: OpenCode mobile app (extracted from opencode monorepo)
This commit is contained in:
32
src/lib/types.ts
Normal file
32
src/lib/types.ts
Normal file
@@ -0,0 +1,32 @@
|
||||
// Connection types for multiple server support
|
||||
export type ConnectionType = "local" | "tunnel" | "cloud"
|
||||
|
||||
export interface ServerConnection {
|
||||
id: string
|
||||
name: string
|
||||
type: ConnectionType
|
||||
url: string
|
||||
// For auth
|
||||
username?: string
|
||||
// Password stored separately in SecureStore
|
||||
// Directory to use for this connection
|
||||
directory?: string
|
||||
// When last successfully connected
|
||||
lastConnected?: number
|
||||
// Is this the active connection?
|
||||
active?: boolean
|
||||
}
|
||||
|
||||
export interface AppSettings {
|
||||
// Require biometric auth to open app
|
||||
requireBiometric: boolean
|
||||
// Require biometric to send messages
|
||||
requireBiometricForMessages: boolean
|
||||
// Theme preference
|
||||
theme: "light" | "dark" | "system"
|
||||
// Show notifications for task completion
|
||||
notifications: boolean
|
||||
}
|
||||
|
||||
// Re-export SDK types we'll use frequently
|
||||
export type { Session, Message, Part, Project, Event, HealthResponse } from "./sdk"
|
||||
Reference in New Issue
Block a user