/** ************************************************************************************************
*   Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.                             *
*   SPDX-License-Identifier: Apache-2.0                                                            *
 ************************************************************************************************ */

exports.mockRequest = {
    "_type": 'LEX',
    "_event": {
        "session": {
            "attributes": { "idtokenjwt": "mock_id_token" },
            "user": { "userId": "mockUserId" }
        }
    },
    "_settings": {
        "MINIMUM_CONFIDENCE_SCORE": 0.6,
        "ENFORCE_VERIFIED_IDENTITY": false,
        "ENABLE_REDACTING_WITH_COMPREHEND": false,
        "LAMBDA_PREPROCESS_HOOK": "",
        "IDENTITY_PROVIDER_JWKS_URLS": [],
        "NO_VERIFIED_IDENTITY_QUESTION": "no_verified_identity",
        "PII_REJECTION_QUESTION": "pii_rejection_question",
        "ENABLE_MULTI_LANGUAGE_SUPPORT": true,
        "CONNECT_NEXT_PROMPT_VARNAME": "connect_nextPrompt",
        "SMS_HINT_REMINDER_ENABLE": true,
        "SMS_HINT_REMINDER_INTERVAL_HRS": 24,
        "SMS_HINT_REMINDER": "(Feedback? Reply THUMBS UP or THUMBS DOWN. Ask HELP ME at any time)",
        "CONNECT_ENABLE_VOICE_RESPONSE_INTERRUPT": false,
        "DEFAULT_ALEXA_LAUNCH_MESSAGE": "Hello, Please ask a question",
        "DEFAULT_ALEXA_STOP_MESSAGE": "Goodbye"
    },
    "session": {
        "qnabotcontext": {
            "elicitResponse": {}
        },
        "idtokenjwt": "mock_id_token",
        
    },
    "question": "What is QnABot",
    "_userInfo": {
        "TimeSinceLastInteraction": 3600
    }
};

exports.mockResponse = {
    "type": "PlainText",
    "message": "The Q and A Bot uses Amazon Lex and Alexa to provide a natural language interface for your FAQ knowledge base, so your users can just ask a question and get a quick and relevant answer.",
    "session": {
        "idtokenjwt": "<token redacted>",
        "qnabotcontext": { "elicitResponse": {} },
        "topic": "QnABot",
        "appContext": "",
        "qnabot_qid": "QnABot.001",
        "qnabot_gotanswer": "true"
    },

    "intentname": "FallbackIntent",
    "_userInfo": {
        "UserId": "Admin",
        "InteractionCount": 2,
        "UserName": "Admin",
        "isVerifiedIdentity": "true",
        "TimeSinceLastInteraction": 1697549029.593,
        "FirstSeen": "Wed Oct 18 2023 01:23:49 GMT+0000 (Coordinated Universal Time)",
        "LastSeen": "Wed Oct 18 2023 01:23:49 GMT+0000 (Coordinated Universal Time)",
    },
    "result": {
        "elicitResponse": {}
    },
    "got_hits": 1,
    "plainMessage": "The Q and A Bot uses Amazon Lex and Alexa to provide a natural language interface for your FAQ knowledge base, so your users can just ask a question and get a quick and relevant answer.",
    "out": {
        "sessionState": {
            "sessionAttributes": {
                "idtokenjwt": "<token redacted>",
                "qnabotcontext": "{\"previous\":{\"qid\":\"QnABot.001\",\"q\":\"What is Q and A Bot\"},\"navigation\":{\"next\":\"\",\"previous\":[],\"hasParent\":false}}",
                "topic": "QnABot",
                "appContext": "{\"altMessages\":{\"markdown\":\"# QnaBot\\nThe Q and A Bot uses [Amazon Lex](https://aws.amazon.com/lex) and [Alexa](https://developer.amazon.com/alexa) to provide a natural language interface for your FAQ knowledge base. Now your users can just ask a *question* and get a quick and relevant *answer*.\",\"ssml\":\"<speak>AWS <sub alias=\\\"Q and A\\\">QnA</sub> Bot is <amazon:effect name=\\\"drc\\\">great</amazon:effect>. <sub alias=\\\"Q and A\\\">QnA</sub> Bot supports <sub alias=\\\"Speech Synthesis Markup Language\\\">SSML</sub> using Polly's neural voice. <prosody rate=\\\"150%\\\">I can speak very fast</prosody>, <prosody rate=\\\"75%\\\">or very slowly</prosody>. <prosody volume=\\\"-16dB\\\">I can speak quietly</prosody>, <amazon:effect name=\\\"drc\\\">or speak loud and clear</amazon:effect>. I can say <phoneme alphabet=\\\"ipa\\\" ph=\\\"təˈmɑːtəʊ\\\">tomato</phoneme> and tomato. Visit docs.aws.amazon.com/polly/latest/dg/supportedtags for more information.</speak>\"}}",
                "qnabot_qid": "QnABot.001",
                "qnabot_gotanswer": "true"
            },
            "dialogAction": {
                "type": "Close"
            },
            "intent": {
                "name": "FallbackIntent",
                "state": "Fulfilled"
            }
        },
        "messages": [
            {
                "contentType": "PlainText",
                "content": "The Q and A Bot uses Amazon Lex and Alexa to provide a natural language interface for your FAQ knowledge base, so your users can just ask a question and get a quick and relevant answer."
            }
        ]
    }
}