/** @format */ export type VF_RUNTIME_MESSAGE = "launch" | "text" | "choice" | "MultiSelect" | "cardV2" | "carousel" | "visual" | "GetBrowserData" | "Embed" | "iFrame" | "FileUpload" | "MultiFileUpload" | "GoogleForm" | "EmailForm" | "SetConvoData" | "VoiceNote" | "SetRuntime" | "no-reply" | "VGVF_Channel" | "VFVG_Channel" | "VG_Response" | "knowledgeBase" | "jsx" | "Flowise" | "MultiDropdown" | "Slider" | "Attachment" | "info:default" | "info:success" | "info:danger" | "info:primary" | "end" | "debug" | "stealth" | "debug:success" | "debug:error" | "debug:tell"; export interface VF_RUNTIME_INTERACT_RESPONSE { type: VF_RUNTIME_MESSAGE; payload?: T; } export interface ChatRuntime { ID?: string; storageID?: string; VF_DIALOGUE_API_KEY?: string; VF_PROJECT_API_KEY?: string; VF_PROJECT_ID?: string; VF_KB_API_KEY?: string; theme?: string; title?: string; description?: string; roundedImageURL?: string; rectangeImageURL?: string; messageDelayMS?: number; scrollAnimation?: boolean; proactiveMessage?: string; acceptFileUpload?: boolean; recordChatHistory?: boolean; chatBgURL?: string; disableSmoothScroll?: boolean; ownerID?: string; isDeployed?: boolean; tokensUsage?: any; maxTokensUsage?: any; lastModified?: number; fontFamily?: string; branding?: string; customThemeJSONString?: string; autoStartWidget?: boolean; allTimeTriggers?: number; syncBrowser?: boolean; delayBeforeSubmit?: number; region?: "voiceglow-eu" | "(default)"; listenForUrlChanges?: boolean; chatForget?: boolean; lang?: string; customButtonJSON_STRING?: string; whatsappToken?: string; whatsappNumberId?: string; whatsappBusniessId?: string; } export interface WidgetModel extends ChatRuntime { ownerID?: string; ownerEmail?: string; } export interface UserModel { uid?: string; displayName?: string; email?: string; joinedAt?: number; photoURL?: string; widgets?: [] | "loading"; pass?: boolean; origin?: "google" | "email"; location?: "voiceglow-eu" | "(default)"; loadTokens?: number; hasEverPaid?: boolean; freeLTsTS?: number; referredFrom?: string; } export interface UserLNSModel extends UserModel { password?: string; username?: string; LNS_ID?: string; } export interface LNSClientModel { LNS_ID?: string; VF_KB_KEY?: string; owner_password?: string; owner_username?: string; client_fullname?: string; client_photoURL?: string; instagram_username?: string; instagram_email?: string; instagram_password?: string; instagram_photo?: string; instagram_reply_bot_status?: boolean; instagram_dm_bot_status?: boolean; instagram_search_bot_status?: boolean; } export interface LNSContactModel { internalID?: string; profile_link?: string; username?: string; displayName?: string; photoURL?: string; website?: string; description?: string; origin?: `instagram` | `linkedin` | `facebook` | `whatsapp`; ts?: number; last_interaction?: number; is_manual?: boolean; metadata?: any; index?: number; messages?: number; last_message_by?: any; last_message_ts?: number; } export interface LNSMessageModel { from?: "human" | "ai"; content?: string; index?: number; ts?: number; } export interface BotModel { origin: "instagram"; email?: string; password?: string; type?: "dm"; intervalMS?: number; daysTracker?: number; progress?: number; batchSize?: number; index?: number; } export interface BotsController { for: "instagram"; botType: "dm"; dailyBatchSize: number; numberOfBots: number; } export interface WidgetThemeModel { ID?: string; themeName?: string; themeType?: "dark" | "light"; primary?: string; nineColorPallet?: any; ownerID?: string; ts?: number; } export interface OTPModel { code?: string; emailAssoc?: string; expiry: number; ts?: number; } export interface VGChannelResponse { origin?: string; type?: string; data?: any; } export interface VGAPIChannelProps { function: "VG_PushMessage" | "VG_GetRuntimeData"; payload: string; } export interface OrderModel { ID?: string; userId?: string; email?: string; tokensToCharge?: number; USDToPay?: number; fulfilled?: boolean; ts?: number; paypalOrderID?: string; referredFrom?: string; referredFulfilled?: boolean; } export interface AgencyModel { ID?: string; userId?: string; name?: string; squarePhotoURL?: string; darkModeSquarePhotourl?: string; brandingText?: string; customDomain?: string; VGsubDomain?: string; ts?: number; customThemeJSONString?: string; isVerifiedSubDomain?: boolean; isVerifiedCustomDomain?: boolean; withVGBranding?: boolean; themeVariant?: "default" | "bordered" | "flat" | "faded"; themeColorUsage?: "gradient" | "colorful" | "plain"; googleFont?: string; clientsJSONSTRING?: string; customDomainConfig?: string; mainWebsite?: string; supportEmail?: string; tosPage?: string; privacyPolicypPage?: string; secret?: string; } export type ClientDashboardTab = "/convos" | "/kb" | "/analytics" | "/theme" | "/settings"; export interface ClientModel { ID?: string; agencyId?: string; userId?: string; ownerID?: string; name?: string; email?: string; squarePhotoURL?: string; widgets?: WidgetModel[]; widgetIDs?: string[]; dashboardUsername?: string; dashboardPassword?: string; ts?: number; canAccess?: string[]; magicCode?: string; index?: number; } export interface ClientPageModel { label?: string; desc?: any; href?: string; icon?: any; isDisabled?: boolean; } export interface WidgetConvoModel { ID?: string; userID?: string; userName?: string; userEmail?: string; userImage?: string; userPhone?: string; userBrowser?: string; userProfilePic?: string; origin?: "web-chat"; messagesNum?: number; ts?: number; tags?: string[]; convoTimeSeconds?: number; firstMessageTS?: number; lastMessageTS?: number; } export interface AnalyticLoadModel { ID?: string; firebaseCollection?: "voiceglow/{id}/loads"; ipAddress?: string; countryCode?: string; langCode?: string; browser?: string; platform?: string; origin?: MessageOriginType; ts?: number; } export interface VFPayloadModel { type?: string; payload?: any; } export interface API_RESPONSE_BASE { success: boolean; message?: string; content?: t; } export type MessageOriginType = "web-chat" | "whatsapp" | "instagram" | "telegram" | "discord"; export type themes = "purple" | "blue"; export declare const DEFAULT_FREE_LTS_NUM = 1000; export type AgencyThemeVariants = "flat" | "bordered" | "solid" | "faded"; export declare const FB_ALL_BUCKETS_ARRAY: string[];