UNPKG

@lobehub/chat

Version:

Lobe Chat - an open-source, high-performance chatbot framework that supports speech synthesis, multimodal, and extensible Function Call plugin system. Supports one-click free deployment of your private ChatGPT/LLM web application.

22 lines (19 loc) 915 B
import type { AdapterAccount } from 'next-auth/adapters'; import { DeepPartial } from 'utility-types'; import { UserGuide, UserInitializationState, UserPreference } from '@/types/user'; import { UserSettings } from '@/types/user/settings'; export interface IUserService { getUserRegistrationDuration: () => Promise<{ createdAt: string; duration: number; updatedAt: string; }>; getUserSSOProviders: () => Promise<AdapterAccount[]>; getUserState: () => Promise<UserInitializationState>; resetUserSettings: () => Promise<any>; unlinkSSOProvider: (provider: string, providerAccountId: string) => Promise<any>; updateAvatar: (avatar: string) => Promise<any>; updateGuide: (guide: Partial<UserGuide>) => Promise<any>; updatePreference: (preference: Partial<UserPreference>) => Promise<any>; updateUserSettings: (value: DeepPartial<UserSettings>, signal?: AbortSignal) => Promise<any>; }