navflow-browser-server
Version:
Standalone Playwright browser server for NavFlow - enables browser automation with API key authentication, workspace device management, session sync, LLM discovery tools, and requires Node.js v22+
63 lines • 1.35 kB
TypeScript
export interface BrowserSession {
id: string;
browser: any;
context: any;
page: any;
createdAt: Date;
lastUsed: Date;
userContext?: {
userId?: string;
sessionName?: string;
};
}
export interface BrowserConfig {
headless?: boolean;
viewport?: {
width: number;
height: number;
};
browserType?: 'chromium' | 'chrome' | 'firefox' | 'webkit';
userAgent?: string;
timeout?: number;
slowMo?: number;
stealth?: boolean;
customArgs?: string;
proxy?: {
enabled: boolean;
host?: string;
port?: string;
username?: string;
password?: string;
};
}
export interface BrowserAction {
type: string;
selector?: string;
text?: string;
url?: string;
script?: string;
code?: string;
fullPage?: boolean;
timeout?: number;
captureScreenshots?: boolean;
variables?: Record<string, any>;
[key: string]: any;
}
export interface ActionResult {
success: boolean;
result?: any;
screenshots?: {
before?: string;
after?: string;
};
error?: string;
}
export interface SessionRequest {
sessionId: string;
config?: BrowserConfig;
}
export interface ActionRequest {
sessionId: string;
action: BrowserAction;
}
//# sourceMappingURL=types.d.ts.map