import * as z from "zod"; export declare enum BotType { EMBED = "embed", POPUP = "popup" } export declare const loadBavardOptionsSchema: z.ZodObject<{ agentId: z.ZodString; secondaryAgentIds: z.ZodOptional>; /** * userIdToken can be specified to restrict a conversation to a specific user * and enable integrations that depend on having user context to respond * to specific actions. * * This value should be a JWT signed with the private key associated with * the target agent's Bavard account. The following properties can be specified * in the payload: * userId: string // This is a required property * * Any other properties can be included in the payload and will be ignored by * Bavard but passed through to any webhook actions that are invoked during * the conversation */ userIdToken: z.ZodOptional; gaTrackingCode: z.ZodOptional; debug: z.ZodOptional; dev: z.ZodOptional; demo: z.ZodOptional; widgetId: z.ZodOptional; type: z.ZodOptional>; config: z.ZodOptional; widgetSettings: z.ZodOptional; startOpen: z.ZodOptional; widgetBaseUrl: z.ZodOptional; /** * Causes the include/exclude paths in widget settings to be ignored. */ ignorePaths: z.ZodOptional; /** * A list of key/value pairs that are added to the `conversation.metadata.customMetdata` field. This will currently be used for Zendesk tickets. */ conversationMetadata: z.ZodOptional>>; resumeConversationId: z.ZodOptional; }, "strict", z.ZodTypeAny, { type?: BotType | undefined; secondaryAgentIds?: string[] | undefined; userIdToken?: string | undefined; gaTrackingCode?: string | undefined; debug?: boolean | undefined; dev?: boolean | undefined; demo?: boolean | undefined; widgetId?: number | undefined; config?: any; widgetSettings?: any; startOpen?: boolean | undefined; widgetBaseUrl?: string | undefined; ignorePaths?: boolean | undefined; conversationMetadata?: Record | undefined; resumeConversationId?: string | undefined; agentId: string; }, { type?: BotType | undefined; secondaryAgentIds?: string[] | undefined; userIdToken?: string | undefined; gaTrackingCode?: string | undefined; debug?: boolean | undefined; dev?: boolean | undefined; demo?: boolean | undefined; widgetId?: number | undefined; config?: any; widgetSettings?: any; startOpen?: boolean | undefined; widgetBaseUrl?: string | undefined; ignorePaths?: boolean | undefined; conversationMetadata?: Record | undefined; resumeConversationId?: string | undefined; agentId: string; }>; export type ILoadBavardOptions = z.infer; export declare enum NotificationType { OPEN_WIDGET = "OPEN_WIDGET", CLOSE_WIDGET = "CLOSE_WIDGET", SEND_MESSAGE = "SEND_MESSAGE", RECEIVE_MESSAGE = "RECEIVE_MESSAGE", POPUP_MESSAGE = "POPUP_MESSAGE" } export interface IPopupSettings { startOpen: boolean; ignorePaths?: boolean; parentWindowPath: string; } /** * Represents a jwt token containing a custom policy that grants access to certain conversations. */ export interface ICustomPolicyTokenData { token: string; tokenExpiration: string; }