Skip to Content

ProviderBackupState

Defined in: src/react/useBackup.ts:78 

Provider-specific backup state

Properties

backup()

backup: (options?: BackupOperationOptions) => Promise<DropboxExportResult | GoogleDriveExportResult | ICloudExportResult | { error: string; }>

Defined in: src/react/useBackup.ts:84 

Backup all conversations to this provider

Parameters

ParameterType

options?

BackupOperationOptions

Returns

Promise<DropboxExportResult | GoogleDriveExportResult | ICloudExportResult | { error: string; }>


connect()

connect: () => Promise<string>

Defined in: src/react/useBackup.ts:96 

Request access to this provider (triggers OAuth if needed)

Returns

Promise<string>


disconnect()

disconnect: () => Promise<void>

Defined in: src/react/useBackup.ts:98 

Disconnect from this provider

Returns

Promise<void>


isAuthenticated

isAuthenticated: boolean

Defined in: src/react/useBackup.ts:82 

Whether user has authenticated with this provider


isConfigured

isConfigured: boolean

Defined in: src/react/useBackup.ts:80 

Whether the provider is configured


restore()

restore: (options?: BackupOperationOptions) => Promise<DropboxImportResult | GoogleDriveImportResult | ICloudImportResult | { error: string; }>

Defined in: src/react/useBackup.ts:90 

Restore conversations from this provider

Parameters

ParameterType

options?

BackupOperationOptions

Returns

Promise<DropboxImportResult | GoogleDriveImportResult | ICloudImportResult | { error: string; }>

Last updated on