File size: 3,059 Bytes
74b9b7d | 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 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 | /**
* Types definition for SiteClone Pro v20.0.0
*/
export interface WebsiteClone {
id: string;
url: string;
name: string;
html: string;
css: string;
js: string;
createdAt: number;
status: "idle" | "cloning" | "success" | "error";
size?: string;
notes?: string;
}
export interface WebsiteMonitor {
id: string;
name: string;
url: string;
interval: "30s" | "1m" | "5m" | "15m" | "1h";
status: "up" | "down" | "slow" | "unknown";
lastCheck?: number;
responseTime?: number; // in ms
history: Array<{
timestamp: number;
status: "up" | "down" | "slow";
responseTime: number;
code: number;
}>;
}
export interface EncryptedKey {
id: string;
name: string;
type: string; // e.g. OpenAI, Stripe, Cloudflare
value: string; // encrypted or masked
expiry: string;
status: "active" | "warning" | "expired" | "limited";
group: "primary" | "backup";
lastTested?: number;
}
export interface EmailAccount {
id: string;
provider: string; // Gmail, ProtonMail, Outlook, Yahoo etc.
email: string;
password?: string;
recoveryEmail?: string;
recoveryPhone?: string;
status: "active" | "attention" | "compromised";
lastChecked?: number;
category: "personal" | "work" | "dev" | "throwaway";
faStatus: boolean; // 2FA enabled
passwordHealth: "good" | "weak" | "leaked";
}
export interface BuiltSite {
id: string;
name: string;
url: string;
platform: string; // Vercel, Netlify, GitHub Pages, etc.
status: "live" | "dev" | "staging" | "archived" | "down";
deployUrl: string;
repoUrl?: string;
lastDeploy: number;
domain?: string;
analytics: {
pageViews: number;
uptimePercentage: number;
};
ownerEmail?: string;
}
export interface PlatformAccount {
id: string;
platform: string; // Vercel, Heroku, etc.
username: string;
email: string;
password?: string;
status: "active" | "inactive";
lastLogin?: number;
totpSecret?: string;
activeSessions: number;
}
export interface WorkflowNode {
id: string;
type: "trigger" | "fetch" | "parse" | "condition" | "notify" | "deploy" | "delay";
label: string;
x: number;
y: number;
config: Record<string, any>;
}
export interface WorkflowConnection {
fromId: string;
toId: string;
}
export interface AutomationWorkflow {
id: string;
name: string;
nodes: WorkflowNode[];
connections: WorkflowConnection[];
status: "active" | "paused";
description: string;
lastExecuted?: number;
}
export interface AuditLogItem {
id: string;
timestamp: number;
action: string;
details: string;
status: "success" | "warning" | "danger";
}
export interface CloudPlatform {
id: string;
name: string;
category: "ai" | "ide" | "database" | "deployment" | "monitoring" | "workflows" | "email";
url: string;
consoleUrl: string;
description: string;
freeLimit: string;
isFavorite?: boolean;
}
export interface AppSettings {
encryptionPassword?: string;
vibrationEnabled: boolean;
theme: "sky" | "dark" | "light";
autoBackup: boolean;
cloudSync: boolean;
}
|