import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; import { FeedbackChatExchange, FeedbackChatExchange$Outbound } from "./feedbackchatexchange.js"; /** * The source associated with the Feedback.event.MANUAL_FEEDBACK event. */ export declare const ManualFeedbackInfoSource: { readonly Autocomplete: "AUTOCOMPLETE"; readonly Calendar: "CALENDAR"; readonly Chat: "CHAT"; readonly ChatGeneral: "CHAT_GENERAL"; readonly ConceptCard: "CONCEPT_CARD"; readonly DesktopApp: "DESKTOP_APP"; readonly DisambiguationCard: "DISAMBIGUATION_CARD"; readonly ExpertDetection: "EXPERT_DETECTION"; readonly Feed: "FEED"; readonly GeneratedQAndA: "GENERATED_Q_AND_A"; readonly InlineMenu: "INLINE_MENU"; readonly NativeResult: "NATIVE_RESULT"; readonly Prism: "PRISM"; readonly QAndA: "Q_AND_A"; readonly RelatedQuestions: "RELATED_QUESTIONS"; readonly ReportIssue: "REPORT_ISSUE"; readonly Sciobot: "SCIOBOT"; readonly Search: "SEARCH"; readonly Sidebar: "SIDEBAR"; readonly Summary: "SUMMARY"; readonly Tasks: "TASKS"; readonly TaskExecution: "TASK_EXECUTION"; }; /** * The source associated with the Feedback.event.MANUAL_FEEDBACK event. */ export type ManualFeedbackInfoSource = ClosedEnum; export declare const Issue: { readonly AgentCanvasFailed: "AGENT_CANVAS_FAILED"; readonly AgentClarifyingQuestions: "AGENT_CLARIFYING_QUESTIONS"; readonly AgentIntermediateStepsFailed: "AGENT_INTERMEDIATE_STEPS_FAILED"; readonly AgentToolCallFailed: "AGENT_TOOL_CALL_FAILED"; readonly InaccurateResponse: "INACCURATE_RESPONSE"; readonly IncompleteOrNoAnswer: "INCOMPLETE_OR_NO_ANSWER"; readonly IncorrectCitation: "INCORRECT_CITATION"; readonly MissingCitation: "MISSING_CITATION"; readonly Other: "OTHER"; readonly OutdatedResponse: "OUTDATED_RESPONSE"; readonly ResultMissing: "RESULT_MISSING"; readonly ResultShouldNotAppear: "RESULT_SHOULD_NOT_APPEAR"; readonly ResultsHelpful: "RESULTS_HELPFUL"; readonly ResultsPoorOrder: "RESULTS_POOR_ORDER"; readonly TooMuchOneKind: "TOO_MUCH_ONE_KIND"; }; export type Issue = ClosedEnum; /** * The vote associated with the Feedback.event.MANUAL_FEEDBACK event. */ export declare const ManualFeedbackInfoVote: { readonly Upvote: "UPVOTE"; readonly Downvote: "DOWNVOTE"; }; /** * The vote associated with the Feedback.event.MANUAL_FEEDBACK event. */ export type ManualFeedbackInfoVote = ClosedEnum; export type ManualFeedbackInfo = { /** * The email address of the user who submitted the Feedback.event.MANUAL_FEEDBACK event. * * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. */ email?: string | undefined; /** * The source associated with the Feedback.event.MANUAL_FEEDBACK event. */ source?: ManualFeedbackInfoSource | undefined; /** * The issue the user indicated in the feedback. * * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. */ issue?: string | undefined; /** * The issue(s) the user indicated in the feedback. */ issues?: Array | undefined; /** * URLs of images uploaded by user when providing feedback */ imageUrls?: Array | undefined; /** * The query associated with the Feedback.event.MANUAL_FEEDBACK event. */ query?: string | undefined; /** * The query associated with the Feedback.event.MANUAL_FEEDBACK event, but obscured such that the vowels are replaced with special characters. For search feedback events only. */ obscuredQuery?: string | undefined; /** * Which tabs the user had chosen at the time of the Feedback.event.MANUAL_FEEDBACK event. For search feedback events only. */ activeTab?: string | undefined; /** * The comments users can optionally add to the Feedback.event.MANUAL_FEEDBACK events. */ comments?: string | undefined; /** * The array of search result Glean Document IDs, ordered by top to bottom result. */ searchResults?: Array | undefined; /** * The array of previous messages in a chat session, ordered by oldest to newest. */ previousMessages?: Array | undefined; /** * Array of previous request/response exchanges, ordered by oldest to newest. */ chatTranscript?: Array | undefined; /** * How many times this query has been run in the past. */ numQueriesFromFirstRun?: number | undefined; /** * The vote associated with the Feedback.event.MANUAL_FEEDBACK event. */ vote?: ManualFeedbackInfoVote | undefined; /** * A rating associated with the user feedback. The value will be between one and the maximum given by ratingScale, inclusive. */ rating?: number | undefined; /** * A description of the rating that contextualizes how it appeared to the user, e.g. "satisfied". */ ratingKey?: string | undefined; /** * The scale of comparison for a rating associated with the feedback. Rating values start from one and go up to the maximum specified by ratingScale. For example, a five-option satisfaction rating will have a ratingScale of 5 and a thumbs-up/thumbs-down rating will have a ratingScale of 2. */ ratingScale?: number | undefined; }; /** @internal */ export declare const ManualFeedbackInfoSource$outboundSchema: z.ZodNativeEnum; /** @internal */ export declare const Issue$outboundSchema: z.ZodNativeEnum; /** @internal */ export declare const ManualFeedbackInfoVote$outboundSchema: z.ZodNativeEnum; /** @internal */ export type ManualFeedbackInfo$Outbound = { email?: string | undefined; source?: string | undefined; issue?: string | undefined; issues?: Array | undefined; imageUrls?: Array | undefined; query?: string | undefined; obscuredQuery?: string | undefined; activeTab?: string | undefined; comments?: string | undefined; searchResults?: Array | undefined; previousMessages?: Array | undefined; chatTranscript?: Array | undefined; numQueriesFromFirstRun?: number | undefined; vote?: string | undefined; rating?: number | undefined; ratingKey?: string | undefined; ratingScale?: number | undefined; }; /** @internal */ export declare const ManualFeedbackInfo$outboundSchema: z.ZodType; export declare function manualFeedbackInfoToJSON(manualFeedbackInfo: ManualFeedbackInfo): string; //# sourceMappingURL=manualfeedbackinfo.d.ts.map