import { GetWidgetSettingsRequest as GetWidgetSettingsRequest$1, GetWidgetSettingsResponse as GetWidgetSettingsResponse$1, SetWidgetSettingsRequest as SetWidgetSettingsRequest$1, SetWidgetSettingsResponse as SetWidgetSettingsResponse$1 } from './index.typings.js'; import '@wix/sdk-types'; interface WidgetSettings { /** * Widget settings ID. * @format GUID * @readonly */ id?: string | null; /** Whether the AI assistant is enabled on the site. */ enabled?: boolean; /** AI assistant introduction. This is shown in the chat when a site visitor starts a new conversation. */ introMessage?: IntroMessage; /** Settings for the contact form. */ contactForm?: ContactForm; /** * Date and time the widget settings were created. * @readonly */ createdDate?: Date | null; /** * Date and time the widget settings were updated. * @readonly */ updatedDate?: Date | null; /** Whether to open the AI assistant automatically when the site loads. */ autoOpen?: boolean; /** Times the AI assistant is available on the site. */ activeHours?: ActiveHours; /** Defines how the AI assistant functions during the non-active hours. */ offlineBehavior?: OfflineBehaviorWithLiterals; /** Whether the AI assistant should send a summary of the site visitor's navigation on the site. */ navigationSummary?: boolean | null; /** * Wix Media image ID used for the AI assistant. * @maxLength 500 */ avatar?: string | null; /** Whether to display example questions from the AI assistant. */ generatedQuestions?: boolean | null; /** * for migration * @internal * @readonly */ migrated?: boolean | null; } /** Intro message */ interface IntroMessage { /** Main message settings. */ message?: SettingsMessage; /** Legal disclaimer message settings. */ legalDisclaimer?: SettingsMessage; /** Offline message settings. */ offlineDisclaimer?: SettingsMessage; /** Message shown as popup to engage the site visitor with the AI assistant. */ engage?: SettingsMessage; /** Suggested questions shown to the site visitor to help them get started. */ suggestions?: SuggestedQuestions; } interface SettingsMessage { /** Whether the message is enabled. */ enabled?: boolean; /** * Message content. * @maxLength 1000 */ text?: string; } interface SuggestedQuestions { /** Whether suggesting questions is enabled. */ enabled?: boolean; /** * Suggested questions shown to the site visitor to help them get started. * @maxSize 5 */ questions?: SettingsMessage[]; /** Introduction message for the suggested questions. */ introduction?: SettingsMessage; } interface ContactForm { /** When the AI assistant should send the contact form. */ conditions?: Conditions; /** Contact form fields. */ fields?: Fields; } /** Contact form conditions for AI assistant */ interface Conditions { /** Whether the AI assistant should send the contact form if the AI is unable to answer the site visitor's question. */ cannotAnswer?: boolean; /** Whether the AI assistant should send the contact form if the site visitor requests to chat with a real person. */ requestForPerson?: boolean; } /** Contact form fields */ interface Fields { /** Whether to include a name field in the form. */ name?: boolean; /** Whether to include an email field in the form. */ email?: boolean; /** Whether to include a phone number field in the form. */ phone?: boolean; /** Whether to include a message field in the form. */ message?: boolean; } /** Working hours settings */ interface ActiveHours { /** Whether the AI Assistant is always online. If `true`, `schedule` and `timeZone` are ignored. */ always?: boolean; /** Times at which the AI Assistant is online. */ schedule?: Schedule; /** * Timezone used for the schedule. * @maxLength 256 */ timeZone?: string; } /** Schedule */ interface Schedule { /** Monday schedule. */ monday?: DaySchedule; /** Tuesday schedule. */ tuesday?: DaySchedule; /** Wednesday schedule. */ wednesday?: DaySchedule; /** Thursday schedule. */ thursday?: DaySchedule; /** Friday schedule. */ friday?: DaySchedule; /** Saturday schedule. */ saturday?: DaySchedule; /** Sunday schedule. */ sunday?: DaySchedule; } /** Day schedule */ interface DaySchedule { /** Whether the day is enabled. */ enabled?: boolean; /** * Array of times during which the AI assistant or Wix user are available to respond to messages from site visitors in the site chat. * @maxSize 24 */ frames?: WorkingHoursFrame[]; } /** Working hours frame */ interface WorkingHoursFrame { /** Start time of the active hours. */ start?: number; /** End time of the active hours. */ end?: number; } declare enum OfflineBehavior { /** Allows the site visitor to write messages, but doesn't send a contact form. */ CHAT_ONLY = "CHAT_ONLY", /** Hides the AI assistant from the site. */ HIDE = "HIDE", /** Doesn't allow the site visitor to write messages, but does send a contact form. */ CONTACT_FORM_WITHOUT_CHAT = "CONTACT_FORM_WITHOUT_CHAT", /** Allows the site visitor to write messages and sends a contact form. */ CONTACT_FORM_WITH_CHAT = "CONTACT_FORM_WITH_CHAT" } /** @enumType */ type OfflineBehaviorWithLiterals = OfflineBehavior | 'CHAT_ONLY' | 'HIDE' | 'CONTACT_FORM_WITHOUT_CHAT' | 'CONTACT_FORM_WITH_CHAT'; interface GetWidgetSettingsRequest { } interface GetWidgetSettingsResponse { /** Retrieved widget settings. */ widgetSettings?: WidgetSettings; /** Whether the assistant is currently online. */ assistantOnline?: boolean; /** * For migration * @internal * @readonly */ oneChat?: boolean | null; } interface SetWidgetSettingsRequest { /** Widget settings to update. */ widgetSettings: WidgetSettings; } interface SetWidgetSettingsResponse { /** Updated widget settings. */ widgetSettings?: WidgetSettings; } type __PublicMethodMetaInfo = { getUrl: (context: any) => string; httpMethod: K; path: string; pathParams: M; __requestType: T; __originalRequestType: S; __responseType: Q; __originalResponseType: R; }; declare function getWidgetSettings(): __PublicMethodMetaInfo<'GET', {}, GetWidgetSettingsRequest$1, GetWidgetSettingsRequest, GetWidgetSettingsResponse$1, GetWidgetSettingsResponse>; declare function setWidgetSettings(): __PublicMethodMetaInfo<'POST', {}, SetWidgetSettingsRequest$1, SetWidgetSettingsRequest, SetWidgetSettingsResponse$1, SetWidgetSettingsResponse>; export { type ActiveHours as ActiveHoursOriginal, type Conditions as ConditionsOriginal, type ContactForm as ContactFormOriginal, type DaySchedule as DayScheduleOriginal, type Fields as FieldsOriginal, type GetWidgetSettingsRequest as GetWidgetSettingsRequestOriginal, type GetWidgetSettingsResponse as GetWidgetSettingsResponseOriginal, type IntroMessage as IntroMessageOriginal, OfflineBehavior as OfflineBehaviorOriginal, type OfflineBehaviorWithLiterals as OfflineBehaviorWithLiteralsOriginal, type Schedule as ScheduleOriginal, type SetWidgetSettingsRequest as SetWidgetSettingsRequestOriginal, type SetWidgetSettingsResponse as SetWidgetSettingsResponseOriginal, type SettingsMessage as SettingsMessageOriginal, type SuggestedQuestions as SuggestedQuestionsOriginal, type WidgetSettings as WidgetSettingsOriginal, type WorkingHoursFrame as WorkingHoursFrameOriginal, type __PublicMethodMetaInfo, getWidgetSettings, setWidgetSettings };