Skip to Content

ChatMigrationOptions

Defined in: src/lib/chatStore/migrateChats.ts:29 

Properties

allowSkipped?

optional allowSkipped: boolean

Defined in: src/lib/chatStore/migrateChats.ts:42 

Activate even when some rows could not be read; they stay on the device.


database

database: Database

Defined in: src/lib/chatStore/migrateChats.ts:31 

The device’s local chat database.


embeddedWalletSigner?

optional embeddedWalletSigner: EmbeddedWalletSignerFn

Defined in: src/lib/chatStore/migrateChats.ts:36 


maxStorageBytes?

optional maxStorageBytes: number

Defined in: src/lib/chatStore/migrateChats.ts:44 


maxVectors?

optional maxVectors: number

Defined in: src/lib/chatStore/migrateChats.ts:43 


onActivated()

onActivated: () => void | Promise<void>

Defined in: src/lib/chatStore/migrateChats.ts:40 

Called once vault holds everything; hand the device over to vault here.

Returns

void | Promise<void>


onProgress()?

optional onProgress: (progress: ChatMigrationProgress) => void

Defined in: src/lib/chatStore/migrateChats.ts:46 

Parameters

ParameterType

progress

ChatMigrationProgress

Returns

void


signal?

optional signal: AbortSignal

Defined in: src/lib/chatStore/migrateChats.ts:45 


signMessage?

optional signMessage: SignMessageFn

Defined in: src/lib/chatStore/migrateChats.ts:35 


store

store: ChatStore

Defined in: src/lib/chatStore/migrateChats.ts:33 

Vault, opened with the account’s canonical key.


walletAddress?

optional walletAddress: string

Defined in: src/lib/chatStore/migrateChats.ts:34 


withWriteBarrier()

withWriteBarrier: (task: () => Promise<ChatMigrationResult>) => Promise<ChatMigrationResult>

Defined in: src/lib/chatStore/migrateChats.ts:38 

Runs the final pass while local chat writers are held, so nothing lands locally after it.

Parameters

ParameterType

task

() => Promise<ChatMigrationResult>

Returns

Promise<ChatMigrationResult>

Last updated on