Skip to content

shared/ipc/import-contracts

BrowserProfileView = v.InferOutput<typeof BrowserProfileView>

Defined in: app/src/shared/ipc/import-contracts.ts:9

A profile of another browser that the import can read.

const BrowserProfileView: StrictObjectSchema<{ browser: StringSchema<undefined>; id: SchemaWithPipe<readonly [StringSchema<undefined>, MinLengthAction<string, 1, undefined>, MaxLengthAction<string, 4096, undefined>]>; profile: StringSchema<undefined>; tabs: BooleanSchema<undefined>; }, undefined>

Defined in: app/src/shared/ipc/import-contracts.ts:9

A profile of another browser that the import can read.


const FindBrowsers: RequestContract<{ }, { enabled: boolean; profiles: object[]; }>

Defined in: app/src/shared/ipc/import-contracts.ts:23

Finds other browsers on this computer. enabled is false when a policy turns the import off. The settings page and the setup guide both offer the import.


const ImportBrowser: RequestContract<{ bookmarks: boolean; history: boolean; id: string; labels: { folder: string; menu: string; mobile: string; other: string; toolbar: string; }; tabs: boolean; }, { bookmarks: number; failed: ("history" | "bookmarks" | "tabs")[]; history: number; tabs: number; }>

Defined in: app/src/shared/ipc/import-contracts.ts:34

Imports bookmarks, history and open tabs from a profile that settings.findBrowsers found, with the titles of the folders it creates in the language of the page.