Skip to Content
SdkReactInternalInterfacesUseGoogleDriveBackupOptions

UseGoogleDriveBackupOptions

Defined in: src/react/useGoogleDriveBackup.ts:22 

Options for useGoogleDriveBackup hook

Properties

conversationsFolder?

optional conversationsFolder: string

Defined in: src/react/useGoogleDriveBackup.ts:42 

Subfolder for conversations (default: ‘conversations’)


database

database: Database

Defined in: src/react/useGoogleDriveBackup.ts:24 

WatermelonDB database instance


exportConversation()

exportConversation: (conversationId: string, userAddress: string) => Promise<{ blob?: Blob; success: boolean; }>

Defined in: src/react/useGoogleDriveBackup.ts:30 

Export a conversation to an encrypted blob

Parameters

ParameterType

conversationId

string

userAddress

string

Returns

Promise<{ blob?: Blob; success: boolean; }>


importConversation()

importConversation: (blob: Blob, userAddress: string) => Promise<{ success: boolean; }>

Defined in: src/react/useGoogleDriveBackup.ts:35 

Import a conversation from an encrypted blob

Parameters

ParameterType

blob

Blob

userAddress

string

Returns

Promise<{ success: boolean; }>


requestEncryptionKey()

requestEncryptionKey: (address: string) => Promise<void>

Defined in: src/react/useGoogleDriveBackup.ts:28 

Request encryption key for the user address

Parameters

ParameterType

address

string

Returns

Promise<void>


rootFolder?

optional rootFolder: string

Defined in: src/react/useGoogleDriveBackup.ts:40 

Root folder name in Google Drive (default: ‘ai-chat-app’)


userAddress

userAddress: string | null

Defined in: src/react/useGoogleDriveBackup.ts:26 

Current user address (null if not signed in)

Last updated on