/*! Copyright (c) 2021, XAPPmedia */ import { SearchWidgetTheme } from "./IntelligentSearchTheme"; export interface ServerConfig { /** * The backend for the URL */ readonly serverUrl?: string; /** * Optional key used for basic authentication */ readonly accountKey?: string; } /** * Environment settings for the intelligent search bar widget */ export interface IntelligentSearchEnv { /** * Connection details */ readonly connection: ServerConfig; /** * Optional, used for autocomplete suggestions. */ readonly autocompleteSuggestionsUrl?: string; /** * Theme for the search bar. */ readonly theme: SearchWidgetTheme; /** * Middleware script url */ readonly middlewareUrl?: string; /** * Voice enabled (use mic for input and play audio from ssml) */ readonly isVoiceEnabled: boolean; /** * Extra custom values */ attributes?: Record; }