refactor: deprecate camoufox

This commit is contained in:
zhom
2026-06-07 23:03:42 +04:00
parent 15f3aa03f7
commit fc9a00b97d
26 changed files with 679 additions and 842 deletions
+21
View File
@@ -75,6 +75,24 @@ export interface SyncSettings {
sync_token?: string;
}
/**
* Capability/limit set derived from the plan by the backend. Features are gated
* on these flags instead of a single "is paid?" check, so a plan like the future
* "starter" tier (cross-OS fingerprints + cloud backup, no automation) is just
* data. Mirrors `apps/backend/src/plans/entitlements.ts`. Resolve via
* `getEntitlements()` — the desktop populates it, but it stays optional for
* safety on older state.
*/
export interface Entitlements {
active: boolean;
browserAutomation: boolean;
crossOsFingerprints: boolean;
cloudBackup: boolean;
teamCollaboration: boolean;
profileLimit: number;
requestsPerHour: number;
}
export interface CloudUser {
id: string;
email: string;
@@ -95,6 +113,9 @@ export interface CloudUser {
deviceOrdinal?: number | null;
deviceCount?: number | null;
isPrimaryDevice?: boolean | null;
// Plan-derived capabilities. The desktop resolves this before handing CloudUser
// to the UI; optional to stay safe on older cached state.
entitlements?: Entitlements;
}
export interface ProfileLockInfo {