ChatMigrationOptions
Defined in: src/lib/chatStore/migrateChats.ts:29
Properties
allowSkipped?
optionalallowSkipped: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?
optionalembeddedWalletSigner:EmbeddedWalletSignerFn
Defined in: src/lib/chatStore/migrateChats.ts:36
maxStorageBytes?
optionalmaxStorageBytes:number
Defined in: src/lib/chatStore/migrateChats.ts:44
maxVectors?
optionalmaxVectors: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()?
optionalonProgress: (progress:ChatMigrationProgress) =>void
Defined in: src/lib/chatStore/migrateChats.ts:46
Parameters
| Parameter | Type |
|---|---|
|
|
Returns
void
signal?
optionalsignal:AbortSignal
Defined in: src/lib/chatStore/migrateChats.ts:45
signMessage?
optionalsignMessage: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?
optionalwalletAddress: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
| Parameter | Type |
|---|---|
|
|
() => |
Returns
Promise<ChatMigrationResult>