Zamok Kiosk API
    Preparing search index...
    reducers: {
        aiGemini: (
            state?: AiGeminiState,
            action:
                | PayloadAction<"AI_GEMINI/END_CHAT_SESSION", { functionId?: string }>
                | PayloadAction<
                    "AI_GEMINI/SEND_PAGE_CONTENT",
                    { functionId?: string; reason: string },
                >
                | PayloadAction<
                    "AI_GEMINI/MUTE_VOICE_INPUT",
                    { functionId?: string; reason?: string },
                >
                | PayloadAction<"AI_GEMINI/SET_ERROR", GeminiError>
                | EmptyAction<"AI_GEMINI/CLEAR_ERROR">
                | PayloadAction<
                    "AI_GEMINI/START_LIVE_SESSION",
                    {
                        dialogOpenReason?: DialogOpenReason;
                        faceDetectionWelcomeMessage?: string;
                        initialMessage: string;
                    },
                >
                | PayloadAction<"AI_GEMINI/SEND_LIVE_MESSAGE", string>
                | EmptyAction<"AI_GEMINI/END_LIVE_SESSION">
                | EmptyAction<"AI_GEMINI/LIVE_SESSION_OPENED">
                | PayloadAction<"AI_GEMINI/LIVE_SESSION_ERROR", GeminiError>
                | EmptyAction<"AI_GEMINI/CLEAR_CHAT_SESSION">
                | PayloadAction<"AI_GEMINI/SET_WEBVIEW_SUMMARY", WebviewSummary>
                | PayloadAction<
                    "AI_GEMINI/REQUEST_HOMEPAGE_NAVIGATION",
                    {
                        attemptCount: number;
                        chatSessionId: string;
                        functionId: string;
                        startedAt: number;
                        targetUrl: string;
                    },
                >
                | PayloadAction<
                    "AI_GEMINI/HOMEPAGE_NAVIGATION_READY",
                    { chatSessionId: string; functionId: string },
                >
                | PayloadAction<
                    "AI_GEMINI/HOMEPAGE_NAVIGATION_FAILED",
                    { chatSessionId: string; error: string; functionId: string },
                >
                | EmptyAction<"AI_GEMINI/CLEAR_PENDING_HOMEPAGE_NAVIGATION">
                | PayloadAction<
                    "AI_GEMINI/EXECUTE_CUSTOM_TOOL",
                    { args: Record<string, any>; functionId: string; toolName: string },
                >
                | PayloadAction<
                    "AI_GEMINI/EXECUTE_REDUX_TOOL",
                    { args: Record<string, any>; functionId: string; toolName: string },
                >
                | PayloadAction<
                    "AI_GEMINI/EXECUTE_KIOSK_TOOL",
                    { args: Record<string, any>; functionId: string; toolName: string },
                >
                | PayloadAction<
                    "AI_GEMINI/EXECUTE_BUILT_IN_TOOL",
                    { args: Record<string, any>; functionId: string; toolName: string },
                >
                | PayloadAction<
                    "AI_GEMINI/UPDATE_TOKEN_COUNT",
                    { inputTokens: number; outputTokens: number; turnTotalTokens: number },
                >
                | PayloadAction<
                    "AI_GEMINI/TOOL_EXECUTION_COMPLETED",
                    Omit<AiChatBotToolLogDetail, "chatSessionId">,
                >
                | PayloadAction<
                    "AI_GEMINI/TOOL_EXECUTION_STARTED",
                    {
                        functionId: string;
                        toolName: string;
                        toolType: "kiosk"
                        | "builtIn"
                        | "custom"
                        | "redux";
                    },
                >
                | PayloadAction<
                    "AI_GEMINI/SET_SESSION_HEALTH",
                    {
                        reason?: null
                        | string;
                        status: "healthy" | "reconnecting" | "degraded";
                    },
                >,
        ) => AiGeminiState;
    } = ...

    Type Declaration

    • aiGemini: (
          state?: AiGeminiState,
          action:
              | PayloadAction<"AI_GEMINI/END_CHAT_SESSION", { functionId?: string }>
              | PayloadAction<
                  "AI_GEMINI/SEND_PAGE_CONTENT",
                  { functionId?: string; reason: string },
              >
              | PayloadAction<
                  "AI_GEMINI/MUTE_VOICE_INPUT",
                  { functionId?: string; reason?: string },
              >
              | PayloadAction<"AI_GEMINI/SET_ERROR", GeminiError>
              | EmptyAction<"AI_GEMINI/CLEAR_ERROR">
              | PayloadAction<
                  "AI_GEMINI/START_LIVE_SESSION",
                  {
                      dialogOpenReason?: DialogOpenReason;
                      faceDetectionWelcomeMessage?: string;
                      initialMessage: string;
                  },
              >
              | PayloadAction<"AI_GEMINI/SEND_LIVE_MESSAGE", string>
              | EmptyAction<"AI_GEMINI/END_LIVE_SESSION">
              | EmptyAction<"AI_GEMINI/LIVE_SESSION_OPENED">
              | PayloadAction<"AI_GEMINI/LIVE_SESSION_ERROR", GeminiError>
              | EmptyAction<"AI_GEMINI/CLEAR_CHAT_SESSION">
              | PayloadAction<"AI_GEMINI/SET_WEBVIEW_SUMMARY", WebviewSummary>
              | PayloadAction<
                  "AI_GEMINI/REQUEST_HOMEPAGE_NAVIGATION",
                  {
                      attemptCount: number;
                      chatSessionId: string;
                      functionId: string;
                      startedAt: number;
                      targetUrl: string;
                  },
              >
              | PayloadAction<
                  "AI_GEMINI/HOMEPAGE_NAVIGATION_READY",
                  { chatSessionId: string; functionId: string },
              >
              | PayloadAction<
                  "AI_GEMINI/HOMEPAGE_NAVIGATION_FAILED",
                  { chatSessionId: string; error: string; functionId: string },
              >
              | EmptyAction<"AI_GEMINI/CLEAR_PENDING_HOMEPAGE_NAVIGATION">
              | PayloadAction<
                  "AI_GEMINI/EXECUTE_CUSTOM_TOOL",
                  { args: Record<string, any>; functionId: string; toolName: string },
              >
              | PayloadAction<
                  "AI_GEMINI/EXECUTE_REDUX_TOOL",
                  { args: Record<string, any>; functionId: string; toolName: string },
              >
              | PayloadAction<
                  "AI_GEMINI/EXECUTE_KIOSK_TOOL",
                  { args: Record<string, any>; functionId: string; toolName: string },
              >
              | PayloadAction<
                  "AI_GEMINI/EXECUTE_BUILT_IN_TOOL",
                  { args: Record<string, any>; functionId: string; toolName: string },
              >
              | PayloadAction<
                  "AI_GEMINI/UPDATE_TOKEN_COUNT",
                  { inputTokens: number; outputTokens: number; turnTotalTokens: number },
              >
              | PayloadAction<
                  "AI_GEMINI/TOOL_EXECUTION_COMPLETED",
                  Omit<AiChatBotToolLogDetail, "chatSessionId">,
              >
              | PayloadAction<
                  "AI_GEMINI/TOOL_EXECUTION_STARTED",
                  {
                      functionId: string;
                      toolName: string;
                      toolType: "kiosk"
                      | "builtIn"
                      | "custom"
                      | "redux";
                  },
              >
              | PayloadAction<
                  "AI_GEMINI/SET_SESSION_HEALTH",
                  {
                      reason?: null
                      | string;
                      status: "healthy" | "reconnecting" | "degraded";
                  },
              >,
      ) => AiGeminiState