import z from 'zod'; import { Snippet } from './SnippetService'; export declare const queryEdit: z.ZodObject<{ _id: z.ZodOptional; value: z.ZodString; meta: z.ZodObject<{ createdAt: z.ZodOptional; createdBy: z.ZodOptional; lastUpdatedAt: z.ZodOptional; lastUpdatedBy: z.ZodOptional; }, "strip", z.ZodTypeAny, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }>; }, "strip", z.ZodTypeAny, { value: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; _id?: string | undefined; }, { value: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; _id?: string | undefined; }>; export declare const queryOrigin: z.ZodObject<{ channel: z.ZodEnum<["Attribute", "Launcher", "Standalone", "Discord", "Slack", "API"]>; originId: z.ZodOptional; originName: z.ZodOptional; originChannelId: z.ZodOptional; originChannelName: z.ZodOptional; }, "strip", z.ZodTypeAny, { channel: "Attribute" | "Launcher" | "Standalone" | "Discord" | "Slack" | "API"; originId?: string | undefined; originName?: string | undefined; originChannelId?: string | undefined; originChannelName?: string | undefined; }, { channel: "Attribute" | "Launcher" | "Standalone" | "Discord" | "Slack" | "API"; originId?: string | undefined; originName?: string | undefined; originChannelId?: string | undefined; originChannelName?: string | undefined; }>; export declare const query: z.ZodObject<{ _id: z.ZodString; distinctId: z.ZodString; organizationId: z.ZodString; botId: z.ZodString; sourceIds: z.ZodArray; snippetIds: z.ZodArray; input: z.ZodString; output: z.ZodString; helpful: z.ZodNullable; mark: z.ZodNullable; edits: z.ZodArray; value: z.ZodString; meta: z.ZodObject<{ createdAt: z.ZodOptional; createdBy: z.ZodOptional; lastUpdatedAt: z.ZodOptional; lastUpdatedBy: z.ZodOptional; }, "strip", z.ZodTypeAny, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }>; }, "strip", z.ZodTypeAny, { value: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; _id?: string | undefined; }, { value: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; _id?: string | undefined; }>, "many">; model: z.ZodNullable>; embedding: z.ZodNullable>; type: z.ZodNativeEnum; origin: z.ZodNullable; originId: z.ZodOptional; originName: z.ZodOptional; originChannelId: z.ZodOptional; originChannelName: z.ZodOptional; }, "strip", z.ZodTypeAny, { channel: "Attribute" | "Launcher" | "Standalone" | "Discord" | "Slack" | "API"; originId?: string | undefined; originName?: string | undefined; originChannelId?: string | undefined; originChannelName?: string | undefined; }, { channel: "Attribute" | "Launcher" | "Standalone" | "Discord" | "Slack" | "API"; originId?: string | undefined; originName?: string | undefined; originChannelId?: string | undefined; originChannelName?: string | undefined; }>>; cachedQueryId: z.ZodNullable; geolocation: z.ZodNullable; country: z.ZodOptional; region: z.ZodOptional; countryRegion: z.ZodOptional; latitude: z.ZodOptional; longitude: z.ZodOptional; }, "strip", z.ZodTypeAny, { city?: string | undefined; country?: string | undefined; region?: string | undefined; countryRegion?: string | undefined; latitude?: string | undefined; longitude?: string | undefined; }, { city?: string | undefined; country?: string | undefined; region?: string | undefined; countryRegion?: string | undefined; latitude?: string | undefined; longitude?: string | undefined; }>>; lang: z.ZodOptional; meta: z.ZodObject<{ createdAt: z.ZodOptional; createdBy: z.ZodOptional; lastUpdatedAt: z.ZodOptional; lastUpdatedBy: z.ZodOptional; }, "strip", z.ZodTypeAny, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }>; }, "strip", z.ZodTypeAny, { type: import("../enums/SearchTypes").EnumValues; _id: string; organizationId: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; botId: string; sourceIds: string[]; model: string | null; distinctId: string; snippetIds: string[]; input: string; output: string; helpful: boolean | null; mark: boolean | null; edits: { value: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; _id?: string | undefined; }[]; embedding: number[] | null; origin: { channel: "Attribute" | "Launcher" | "Standalone" | "Discord" | "Slack" | "API"; originId?: string | undefined; originName?: string | undefined; originChannelId?: string | undefined; originChannelName?: string | undefined; } | null; cachedQueryId: string | null; geolocation: { city?: string | undefined; country?: string | undefined; region?: string | undefined; countryRegion?: string | undefined; latitude?: string | undefined; longitude?: string | undefined; } | null; lang?: string | undefined; }, { type: import("../enums/SearchTypes").EnumValues; _id: string; organizationId: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; botId: string; sourceIds: string[]; model: string | null; distinctId: string; snippetIds: string[]; input: string; output: string; helpful: boolean | null; mark: boolean | null; edits: { value: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; _id?: string | undefined; }[]; embedding: number[] | null; origin: { channel: "Attribute" | "Launcher" | "Standalone" | "Discord" | "Slack" | "API"; originId?: string | undefined; originName?: string | undefined; originChannelId?: string | undefined; originChannelName?: string | undefined; } | null; cachedQueryId: string | null; geolocation: { city?: string | undefined; country?: string | undefined; region?: string | undefined; countryRegion?: string | undefined; latitude?: string | undefined; longitude?: string | undefined; } | null; lang?: string | undefined; }>; export type Query = z.infer; export type QueryEdit = z.infer; export type QueryOrigin = z.infer; export type QueryResolved = Query & { snippets: Snippet[]; }; export interface QueryService { create(request: CreateQueryRequest): Promise; setFeedback(request: SetQueryFeedbackRequest): Promise; addEdit(request: AddQueryEditRequest): Promise; get(request: GetQueryRequest): Promise; list(request: ListQueriesRequest): Promise; count(request: CountQueriesRequest): Promise; } /** ****************************************************************************** * Create Query ******************************************************************************* */ export declare const createQueryParams: z.ZodObject<{ distinctId: z.ZodString; organizationId: z.ZodString; botId: z.ZodString; sourceIds: z.ZodArray; snippetIds: z.ZodArray; input: z.ZodString; output: z.ZodString; model: z.ZodNullable>; embedding: z.ZodNullable>; type: z.ZodNativeEnum; origin: z.ZodNullable; originId: z.ZodOptional; originName: z.ZodOptional; originChannelId: z.ZodOptional; originChannelName: z.ZodOptional; }, "strip", z.ZodTypeAny, { channel: "Attribute" | "Launcher" | "Standalone" | "Discord" | "Slack" | "API"; originId?: string | undefined; originName?: string | undefined; originChannelId?: string | undefined; originChannelName?: string | undefined; }, { channel: "Attribute" | "Launcher" | "Standalone" | "Discord" | "Slack" | "API"; originId?: string | undefined; originName?: string | undefined; originChannelId?: string | undefined; originChannelName?: string | undefined; }>>; cachedQueryId: z.ZodNullable; geolocation: z.ZodNullable; country: z.ZodOptional; region: z.ZodOptional; countryRegion: z.ZodOptional; latitude: z.ZodOptional; longitude: z.ZodOptional; }, "strip", z.ZodTypeAny, { city?: string | undefined; country?: string | undefined; region?: string | undefined; countryRegion?: string | undefined; latitude?: string | undefined; longitude?: string | undefined; }, { city?: string | undefined; country?: string | undefined; region?: string | undefined; countryRegion?: string | undefined; latitude?: string | undefined; longitude?: string | undefined; }>>; lang: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: import("../enums/SearchTypes").EnumValues; organizationId: string; botId: string; sourceIds: string[]; model: string | null; distinctId: string; snippetIds: string[]; input: string; output: string; embedding: number[] | null; origin: { channel: "Attribute" | "Launcher" | "Standalone" | "Discord" | "Slack" | "API"; originId?: string | undefined; originName?: string | undefined; originChannelId?: string | undefined; originChannelName?: string | undefined; } | null; cachedQueryId: string | null; geolocation: { city?: string | undefined; country?: string | undefined; region?: string | undefined; countryRegion?: string | undefined; latitude?: string | undefined; longitude?: string | undefined; } | null; lang?: string | undefined; }, { type: import("../enums/SearchTypes").EnumValues; organizationId: string; botId: string; sourceIds: string[]; model: string | null; distinctId: string; snippetIds: string[]; input: string; output: string; embedding: number[] | null; origin: { channel: "Attribute" | "Launcher" | "Standalone" | "Discord" | "Slack" | "API"; originId?: string | undefined; originName?: string | undefined; originChannelId?: string | undefined; originChannelName?: string | undefined; } | null; cachedQueryId: string | null; geolocation: { city?: string | undefined; country?: string | undefined; region?: string | undefined; countryRegion?: string | undefined; latitude?: string | undefined; longitude?: string | undefined; } | null; lang?: string | undefined; }>; export declare const createQueryRequest: z.ZodObject<{ params: z.ZodObject<{ distinctId: z.ZodString; organizationId: z.ZodString; botId: z.ZodString; sourceIds: z.ZodArray; snippetIds: z.ZodArray; input: z.ZodString; output: z.ZodString; model: z.ZodNullable>; embedding: z.ZodNullable>; type: z.ZodNativeEnum; origin: z.ZodNullable; originId: z.ZodOptional; originName: z.ZodOptional; originChannelId: z.ZodOptional; originChannelName: z.ZodOptional; }, "strip", z.ZodTypeAny, { channel: "Attribute" | "Launcher" | "Standalone" | "Discord" | "Slack" | "API"; originId?: string | undefined; originName?: string | undefined; originChannelId?: string | undefined; originChannelName?: string | undefined; }, { channel: "Attribute" | "Launcher" | "Standalone" | "Discord" | "Slack" | "API"; originId?: string | undefined; originName?: string | undefined; originChannelId?: string | undefined; originChannelName?: string | undefined; }>>; cachedQueryId: z.ZodNullable; geolocation: z.ZodNullable; country: z.ZodOptional; region: z.ZodOptional; countryRegion: z.ZodOptional; latitude: z.ZodOptional; longitude: z.ZodOptional; }, "strip", z.ZodTypeAny, { city?: string | undefined; country?: string | undefined; region?: string | undefined; countryRegion?: string | undefined; latitude?: string | undefined; longitude?: string | undefined; }, { city?: string | undefined; country?: string | undefined; region?: string | undefined; countryRegion?: string | undefined; latitude?: string | undefined; longitude?: string | undefined; }>>; lang: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: import("../enums/SearchTypes").EnumValues; organizationId: string; botId: string; sourceIds: string[]; model: string | null; distinctId: string; snippetIds: string[]; input: string; output: string; embedding: number[] | null; origin: { channel: "Attribute" | "Launcher" | "Standalone" | "Discord" | "Slack" | "API"; originId?: string | undefined; originName?: string | undefined; originChannelId?: string | undefined; originChannelName?: string | undefined; } | null; cachedQueryId: string | null; geolocation: { city?: string | undefined; country?: string | undefined; region?: string | undefined; countryRegion?: string | undefined; latitude?: string | undefined; longitude?: string | undefined; } | null; lang?: string | undefined; }, { type: import("../enums/SearchTypes").EnumValues; organizationId: string; botId: string; sourceIds: string[]; model: string | null; distinctId: string; snippetIds: string[]; input: string; output: string; embedding: number[] | null; origin: { channel: "Attribute" | "Launcher" | "Standalone" | "Discord" | "Slack" | "API"; originId?: string | undefined; originName?: string | undefined; originChannelId?: string | undefined; originChannelName?: string | undefined; } | null; cachedQueryId: string | null; geolocation: { city?: string | undefined; country?: string | undefined; region?: string | undefined; countryRegion?: string | undefined; latitude?: string | undefined; longitude?: string | undefined; } | null; lang?: string | undefined; }>; }, "strip", z.ZodTypeAny, { params: { type: import("../enums/SearchTypes").EnumValues; organizationId: string; botId: string; sourceIds: string[]; model: string | null; distinctId: string; snippetIds: string[]; input: string; output: string; embedding: number[] | null; origin: { channel: "Attribute" | "Launcher" | "Standalone" | "Discord" | "Slack" | "API"; originId?: string | undefined; originName?: string | undefined; originChannelId?: string | undefined; originChannelName?: string | undefined; } | null; cachedQueryId: string | null; geolocation: { city?: string | undefined; country?: string | undefined; region?: string | undefined; countryRegion?: string | undefined; latitude?: string | undefined; longitude?: string | undefined; } | null; lang?: string | undefined; }; }, { params: { type: import("../enums/SearchTypes").EnumValues; organizationId: string; botId: string; sourceIds: string[]; model: string | null; distinctId: string; snippetIds: string[]; input: string; output: string; embedding: number[] | null; origin: { channel: "Attribute" | "Launcher" | "Standalone" | "Discord" | "Slack" | "API"; originId?: string | undefined; originName?: string | undefined; originChannelId?: string | undefined; originChannelName?: string | undefined; } | null; cachedQueryId: string | null; geolocation: { city?: string | undefined; country?: string | undefined; region?: string | undefined; countryRegion?: string | undefined; latitude?: string | undefined; longitude?: string | undefined; } | null; lang?: string | undefined; }; }>; export declare const createQueryResponse: z.ZodObject<{ status: z.ZodEnum<[string, ...string[]]>; error: z.ZodOptional>; }, "strip", z.ZodTypeAny, { message: string; fields?: Record | undefined; }, { message: string; fields?: Record | undefined; }>>; query: z.ZodOptional; snippetIds: z.ZodArray; input: z.ZodString; output: z.ZodString; helpful: z.ZodNullable; mark: z.ZodNullable; edits: z.ZodArray; value: z.ZodString; meta: z.ZodObject<{ createdAt: z.ZodOptional; createdBy: z.ZodOptional; lastUpdatedAt: z.ZodOptional; lastUpdatedBy: z.ZodOptional; }, "strip", z.ZodTypeAny, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }>; }, "strip", z.ZodTypeAny, { value: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; _id?: string | undefined; }, { value: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; _id?: string | undefined; }>, "many">; model: z.ZodNullable>; embedding: z.ZodNullable>; type: z.ZodNativeEnum; origin: z.ZodNullable; originId: z.ZodOptional; originName: z.ZodOptional; originChannelId: z.ZodOptional; originChannelName: z.ZodOptional; }, "strip", z.ZodTypeAny, { channel: "Attribute" | "Launcher" | "Standalone" | "Discord" | "Slack" | "API"; originId?: string | undefined; originName?: string | undefined; originChannelId?: string | undefined; originChannelName?: string | undefined; }, { channel: "Attribute" | "Launcher" | "Standalone" | "Discord" | "Slack" | "API"; originId?: string | undefined; originName?: string | undefined; originChannelId?: string | undefined; originChannelName?: string | undefined; }>>; cachedQueryId: z.ZodNullable; geolocation: z.ZodNullable; country: z.ZodOptional; region: z.ZodOptional; countryRegion: z.ZodOptional; latitude: z.ZodOptional; longitude: z.ZodOptional; }, "strip", z.ZodTypeAny, { city?: string | undefined; country?: string | undefined; region?: string | undefined; countryRegion?: string | undefined; latitude?: string | undefined; longitude?: string | undefined; }, { city?: string | undefined; country?: string | undefined; region?: string | undefined; countryRegion?: string | undefined; latitude?: string | undefined; longitude?: string | undefined; }>>; lang: z.ZodOptional; meta: z.ZodObject<{ createdAt: z.ZodOptional; createdBy: z.ZodOptional; lastUpdatedAt: z.ZodOptional; lastUpdatedBy: z.ZodOptional; }, "strip", z.ZodTypeAny, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }>; }, "strip", z.ZodTypeAny, { type: import("../enums/SearchTypes").EnumValues; _id: string; organizationId: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; botId: string; sourceIds: string[]; model: string | null; distinctId: string; snippetIds: string[]; input: string; output: string; helpful: boolean | null; mark: boolean | null; edits: { value: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; _id?: string | undefined; }[]; embedding: number[] | null; origin: { channel: "Attribute" | "Launcher" | "Standalone" | "Discord" | "Slack" | "API"; originId?: string | undefined; originName?: string | undefined; originChannelId?: string | undefined; originChannelName?: string | undefined; } | null; cachedQueryId: string | null; geolocation: { city?: string | undefined; country?: string | undefined; region?: string | undefined; countryRegion?: string | undefined; latitude?: string | undefined; longitude?: string | undefined; } | null; lang?: string | undefined; }, { type: import("../enums/SearchTypes").EnumValues; _id: string; organizationId: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; botId: string; sourceIds: string[]; model: string | null; distinctId: string; snippetIds: string[]; input: string; output: string; helpful: boolean | null; mark: boolean | null; edits: { value: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; _id?: string | undefined; }[]; embedding: number[] | null; origin: { channel: "Attribute" | "Launcher" | "Standalone" | "Discord" | "Slack" | "API"; originId?: string | undefined; originName?: string | undefined; originChannelId?: string | undefined; originChannelName?: string | undefined; } | null; cachedQueryId: string | null; geolocation: { city?: string | undefined; country?: string | undefined; region?: string | undefined; countryRegion?: string | undefined; latitude?: string | undefined; longitude?: string | undefined; } | null; lang?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { status: string; error?: { message: string; fields?: Record | undefined; } | undefined; query?: { type: import("../enums/SearchTypes").EnumValues; _id: string; organizationId: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; botId: string; sourceIds: string[]; model: string | null; distinctId: string; snippetIds: string[]; input: string; output: string; helpful: boolean | null; mark: boolean | null; edits: { value: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; _id?: string | undefined; }[]; embedding: number[] | null; origin: { channel: "Attribute" | "Launcher" | "Standalone" | "Discord" | "Slack" | "API"; originId?: string | undefined; originName?: string | undefined; originChannelId?: string | undefined; originChannelName?: string | undefined; } | null; cachedQueryId: string | null; geolocation: { city?: string | undefined; country?: string | undefined; region?: string | undefined; countryRegion?: string | undefined; latitude?: string | undefined; longitude?: string | undefined; } | null; lang?: string | undefined; } | undefined; }, { status: string; error?: { message: string; fields?: Record | undefined; } | undefined; query?: { type: import("../enums/SearchTypes").EnumValues; _id: string; organizationId: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; botId: string; sourceIds: string[]; model: string | null; distinctId: string; snippetIds: string[]; input: string; output: string; helpful: boolean | null; mark: boolean | null; edits: { value: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; _id?: string | undefined; }[]; embedding: number[] | null; origin: { channel: "Attribute" | "Launcher" | "Standalone" | "Discord" | "Slack" | "API"; originId?: string | undefined; originName?: string | undefined; originChannelId?: string | undefined; originChannelName?: string | undefined; } | null; cachedQueryId: string | null; geolocation: { city?: string | undefined; country?: string | undefined; region?: string | undefined; countryRegion?: string | undefined; latitude?: string | undefined; longitude?: string | undefined; } | null; lang?: string | undefined; } | undefined; }>; export type CreateQueryParams = z.infer; export type CreateQueryRequest = z.infer; export type CreateQueryResponse = z.infer; /** ****************************************************************************** * Set Query Feedback ******************************************************************************* */ export declare const setQueryFeedbackParams: z.ZodObject<{ queryId: z.ZodString; helpful: z.ZodNullable; }, "strip", z.ZodTypeAny, { helpful: boolean | null; queryId: string; }, { helpful: boolean | null; queryId: string; }>; export declare const setQueryFeedbackRequest: z.ZodObject<{ params: z.ZodObject<{ queryId: z.ZodString; helpful: z.ZodNullable; }, "strip", z.ZodTypeAny, { helpful: boolean | null; queryId: string; }, { helpful: boolean | null; queryId: string; }>; }, "strip", z.ZodTypeAny, { params: { helpful: boolean | null; queryId: string; }; }, { params: { helpful: boolean | null; queryId: string; }; }>; export declare const setQueryFeedbackResponse: z.ZodObject<{ status: z.ZodEnum<[string, ...string[]]>; error: z.ZodOptional>; }, "strip", z.ZodTypeAny, { message: string; fields?: Record | undefined; }, { message: string; fields?: Record | undefined; }>>; query: z.ZodOptional; snippetIds: z.ZodArray; input: z.ZodString; output: z.ZodString; helpful: z.ZodNullable; mark: z.ZodNullable; edits: z.ZodArray; value: z.ZodString; meta: z.ZodObject<{ createdAt: z.ZodOptional; createdBy: z.ZodOptional; lastUpdatedAt: z.ZodOptional; lastUpdatedBy: z.ZodOptional; }, "strip", z.ZodTypeAny, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }>; }, "strip", z.ZodTypeAny, { value: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; _id?: string | undefined; }, { value: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; _id?: string | undefined; }>, "many">; model: z.ZodNullable>; embedding: z.ZodNullable>; type: z.ZodNativeEnum; origin: z.ZodNullable; originId: z.ZodOptional; originName: z.ZodOptional; originChannelId: z.ZodOptional; originChannelName: z.ZodOptional; }, "strip", z.ZodTypeAny, { channel: "Attribute" | "Launcher" | "Standalone" | "Discord" | "Slack" | "API"; originId?: string | undefined; originName?: string | undefined; originChannelId?: string | undefined; originChannelName?: string | undefined; }, { channel: "Attribute" | "Launcher" | "Standalone" | "Discord" | "Slack" | "API"; originId?: string | undefined; originName?: string | undefined; originChannelId?: string | undefined; originChannelName?: string | undefined; }>>; cachedQueryId: z.ZodNullable; geolocation: z.ZodNullable; country: z.ZodOptional; region: z.ZodOptional; countryRegion: z.ZodOptional; latitude: z.ZodOptional; longitude: z.ZodOptional; }, "strip", z.ZodTypeAny, { city?: string | undefined; country?: string | undefined; region?: string | undefined; countryRegion?: string | undefined; latitude?: string | undefined; longitude?: string | undefined; }, { city?: string | undefined; country?: string | undefined; region?: string | undefined; countryRegion?: string | undefined; latitude?: string | undefined; longitude?: string | undefined; }>>; lang: z.ZodOptional; meta: z.ZodObject<{ createdAt: z.ZodOptional; createdBy: z.ZodOptional; lastUpdatedAt: z.ZodOptional; lastUpdatedBy: z.ZodOptional; }, "strip", z.ZodTypeAny, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }>; }, "strip", z.ZodTypeAny, { type: import("../enums/SearchTypes").EnumValues; _id: string; organizationId: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; botId: string; sourceIds: string[]; model: string | null; distinctId: string; snippetIds: string[]; input: string; output: string; helpful: boolean | null; mark: boolean | null; edits: { value: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; _id?: string | undefined; }[]; embedding: number[] | null; origin: { channel: "Attribute" | "Launcher" | "Standalone" | "Discord" | "Slack" | "API"; originId?: string | undefined; originName?: string | undefined; originChannelId?: string | undefined; originChannelName?: string | undefined; } | null; cachedQueryId: string | null; geolocation: { city?: string | undefined; country?: string | undefined; region?: string | undefined; countryRegion?: string | undefined; latitude?: string | undefined; longitude?: string | undefined; } | null; lang?: string | undefined; }, { type: import("../enums/SearchTypes").EnumValues; _id: string; organizationId: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; botId: string; sourceIds: string[]; model: string | null; distinctId: string; snippetIds: string[]; input: string; output: string; helpful: boolean | null; mark: boolean | null; edits: { value: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; _id?: string | undefined; }[]; embedding: number[] | null; origin: { channel: "Attribute" | "Launcher" | "Standalone" | "Discord" | "Slack" | "API"; originId?: string | undefined; originName?: string | undefined; originChannelId?: string | undefined; originChannelName?: string | undefined; } | null; cachedQueryId: string | null; geolocation: { city?: string | undefined; country?: string | undefined; region?: string | undefined; countryRegion?: string | undefined; latitude?: string | undefined; longitude?: string | undefined; } | null; lang?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { status: string; error?: { message: string; fields?: Record | undefined; } | undefined; query?: { type: import("../enums/SearchTypes").EnumValues; _id: string; organizationId: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; botId: string; sourceIds: string[]; model: string | null; distinctId: string; snippetIds: string[]; input: string; output: string; helpful: boolean | null; mark: boolean | null; edits: { value: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; _id?: string | undefined; }[]; embedding: number[] | null; origin: { channel: "Attribute" | "Launcher" | "Standalone" | "Discord" | "Slack" | "API"; originId?: string | undefined; originName?: string | undefined; originChannelId?: string | undefined; originChannelName?: string | undefined; } | null; cachedQueryId: string | null; geolocation: { city?: string | undefined; country?: string | undefined; region?: string | undefined; countryRegion?: string | undefined; latitude?: string | undefined; longitude?: string | undefined; } | null; lang?: string | undefined; } | undefined; }, { status: string; error?: { message: string; fields?: Record | undefined; } | undefined; query?: { type: import("../enums/SearchTypes").EnumValues; _id: string; organizationId: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; botId: string; sourceIds: string[]; model: string | null; distinctId: string; snippetIds: string[]; input: string; output: string; helpful: boolean | null; mark: boolean | null; edits: { value: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; _id?: string | undefined; }[]; embedding: number[] | null; origin: { channel: "Attribute" | "Launcher" | "Standalone" | "Discord" | "Slack" | "API"; originId?: string | undefined; originName?: string | undefined; originChannelId?: string | undefined; originChannelName?: string | undefined; } | null; cachedQueryId: string | null; geolocation: { city?: string | undefined; country?: string | undefined; region?: string | undefined; countryRegion?: string | undefined; latitude?: string | undefined; longitude?: string | undefined; } | null; lang?: string | undefined; } | undefined; }>; export type SetQueryFeedbackParams = z.infer; export type SetQueryFeedbackRequest = z.infer; export type SetQueryFeedbackResponse = z.infer; /** ****************************************************************************** * Set Query Correction ******************************************************************************* */ export declare const addQueryEditParams: z.ZodObject<{ _id: z.ZodString; mark: z.ZodNullable; edit: z.ZodNullable; }, "strip", z.ZodTypeAny, { _id: string; mark: boolean | null; edit: string | null; }, { _id: string; mark: boolean | null; edit: string | null; }>; export declare const addQueryEditRequest: z.ZodObject<{ auth: z.ZodObject<{ email: z.ZodOptional; userId: z.ZodOptional; organizationId: z.ZodOptional; token: z.ZodOptional; }, "strip", z.ZodTypeAny, { email?: string | undefined; userId?: string | undefined; organizationId?: string | undefined; token?: string | undefined; }, { email?: string | undefined; userId?: string | undefined; organizationId?: string | undefined; token?: string | undefined; }>; params: z.ZodObject<{ _id: z.ZodString; mark: z.ZodNullable; edit: z.ZodNullable; }, "strip", z.ZodTypeAny, { _id: string; mark: boolean | null; edit: string | null; }, { _id: string; mark: boolean | null; edit: string | null; }>; }, "strip", z.ZodTypeAny, { params: { _id: string; mark: boolean | null; edit: string | null; }; auth: { email?: string | undefined; userId?: string | undefined; organizationId?: string | undefined; token?: string | undefined; }; }, { params: { _id: string; mark: boolean | null; edit: string | null; }; auth: { email?: string | undefined; userId?: string | undefined; organizationId?: string | undefined; token?: string | undefined; }; }>; export declare const addQueryEditResponse: z.ZodObject<{ status: z.ZodEnum<[string, ...string[]]>; error: z.ZodOptional>; }, "strip", z.ZodTypeAny, { message: string; fields?: Record | undefined; }, { message: string; fields?: Record | undefined; }>>; query: z.ZodOptional; snippetIds: z.ZodArray; input: z.ZodString; output: z.ZodString; helpful: z.ZodNullable; mark: z.ZodNullable; edits: z.ZodArray; value: z.ZodString; meta: z.ZodObject<{ createdAt: z.ZodOptional; createdBy: z.ZodOptional; lastUpdatedAt: z.ZodOptional; lastUpdatedBy: z.ZodOptional; }, "strip", z.ZodTypeAny, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }>; }, "strip", z.ZodTypeAny, { value: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; _id?: string | undefined; }, { value: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; _id?: string | undefined; }>, "many">; model: z.ZodNullable>; embedding: z.ZodNullable>; type: z.ZodNativeEnum; origin: z.ZodNullable; originId: z.ZodOptional; originName: z.ZodOptional; originChannelId: z.ZodOptional; originChannelName: z.ZodOptional; }, "strip", z.ZodTypeAny, { channel: "Attribute" | "Launcher" | "Standalone" | "Discord" | "Slack" | "API"; originId?: string | undefined; originName?: string | undefined; originChannelId?: string | undefined; originChannelName?: string | undefined; }, { channel: "Attribute" | "Launcher" | "Standalone" | "Discord" | "Slack" | "API"; originId?: string | undefined; originName?: string | undefined; originChannelId?: string | undefined; originChannelName?: string | undefined; }>>; cachedQueryId: z.ZodNullable; geolocation: z.ZodNullable; country: z.ZodOptional; region: z.ZodOptional; countryRegion: z.ZodOptional; latitude: z.ZodOptional; longitude: z.ZodOptional; }, "strip", z.ZodTypeAny, { city?: string | undefined; country?: string | undefined; region?: string | undefined; countryRegion?: string | undefined; latitude?: string | undefined; longitude?: string | undefined; }, { city?: string | undefined; country?: string | undefined; region?: string | undefined; countryRegion?: string | undefined; latitude?: string | undefined; longitude?: string | undefined; }>>; lang: z.ZodOptional; meta: z.ZodObject<{ createdAt: z.ZodOptional; createdBy: z.ZodOptional; lastUpdatedAt: z.ZodOptional; lastUpdatedBy: z.ZodOptional; }, "strip", z.ZodTypeAny, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }>; }, "strip", z.ZodTypeAny, { type: import("../enums/SearchTypes").EnumValues; _id: string; organizationId: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; botId: string; sourceIds: string[]; model: string | null; distinctId: string; snippetIds: string[]; input: string; output: string; helpful: boolean | null; mark: boolean | null; edits: { value: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; _id?: string | undefined; }[]; embedding: number[] | null; origin: { channel: "Attribute" | "Launcher" | "Standalone" | "Discord" | "Slack" | "API"; originId?: string | undefined; originName?: string | undefined; originChannelId?: string | undefined; originChannelName?: string | undefined; } | null; cachedQueryId: string | null; geolocation: { city?: string | undefined; country?: string | undefined; region?: string | undefined; countryRegion?: string | undefined; latitude?: string | undefined; longitude?: string | undefined; } | null; lang?: string | undefined; }, { type: import("../enums/SearchTypes").EnumValues; _id: string; organizationId: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; botId: string; sourceIds: string[]; model: string | null; distinctId: string; snippetIds: string[]; input: string; output: string; helpful: boolean | null; mark: boolean | null; edits: { value: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; _id?: string | undefined; }[]; embedding: number[] | null; origin: { channel: "Attribute" | "Launcher" | "Standalone" | "Discord" | "Slack" | "API"; originId?: string | undefined; originName?: string | undefined; originChannelId?: string | undefined; originChannelName?: string | undefined; } | null; cachedQueryId: string | null; geolocation: { city?: string | undefined; country?: string | undefined; region?: string | undefined; countryRegion?: string | undefined; latitude?: string | undefined; longitude?: string | undefined; } | null; lang?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { status: string; error?: { message: string; fields?: Record | undefined; } | undefined; query?: { type: import("../enums/SearchTypes").EnumValues; _id: string; organizationId: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; botId: string; sourceIds: string[]; model: string | null; distinctId: string; snippetIds: string[]; input: string; output: string; helpful: boolean | null; mark: boolean | null; edits: { value: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; _id?: string | undefined; }[]; embedding: number[] | null; origin: { channel: "Attribute" | "Launcher" | "Standalone" | "Discord" | "Slack" | "API"; originId?: string | undefined; originName?: string | undefined; originChannelId?: string | undefined; originChannelName?: string | undefined; } | null; cachedQueryId: string | null; geolocation: { city?: string | undefined; country?: string | undefined; region?: string | undefined; countryRegion?: string | undefined; latitude?: string | undefined; longitude?: string | undefined; } | null; lang?: string | undefined; } | undefined; }, { status: string; error?: { message: string; fields?: Record | undefined; } | undefined; query?: { type: import("../enums/SearchTypes").EnumValues; _id: string; organizationId: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; botId: string; sourceIds: string[]; model: string | null; distinctId: string; snippetIds: string[]; input: string; output: string; helpful: boolean | null; mark: boolean | null; edits: { value: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; _id?: string | undefined; }[]; embedding: number[] | null; origin: { channel: "Attribute" | "Launcher" | "Standalone" | "Discord" | "Slack" | "API"; originId?: string | undefined; originName?: string | undefined; originChannelId?: string | undefined; originChannelName?: string | undefined; } | null; cachedQueryId: string | null; geolocation: { city?: string | undefined; country?: string | undefined; region?: string | undefined; countryRegion?: string | undefined; latitude?: string | undefined; longitude?: string | undefined; } | null; lang?: string | undefined; } | undefined; }>; export type AddQueryEditParams = z.infer; export type AddQueryEditRequest = z.infer; export type AddQueryEditResponse = z.infer; /** ****************************************************************************** * Get Query ******************************************************************************* */ export declare const getQueryParams: z.ZodObject<{ queryId: z.ZodString; }, "strip", z.ZodTypeAny, { queryId: string; }, { queryId: string; }>; export declare const getQueryRequest: z.ZodObject<{ params: z.ZodObject<{ queryId: z.ZodString; }, "strip", z.ZodTypeAny, { queryId: string; }, { queryId: string; }>; }, "strip", z.ZodTypeAny, { params: { queryId: string; }; }, { params: { queryId: string; }; }>; export declare const getQueryResponse: z.ZodObject<{ status: z.ZodEnum<[string, ...string[]]>; error: z.ZodOptional>; }, "strip", z.ZodTypeAny, { message: string; fields?: Record | undefined; }, { message: string; fields?: Record | undefined; }>>; query: z.ZodOptional; snippetIds: z.ZodArray; input: z.ZodString; output: z.ZodString; helpful: z.ZodNullable; mark: z.ZodNullable; edits: z.ZodArray; value: z.ZodString; meta: z.ZodObject<{ createdAt: z.ZodOptional; createdBy: z.ZodOptional; lastUpdatedAt: z.ZodOptional; lastUpdatedBy: z.ZodOptional; }, "strip", z.ZodTypeAny, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }>; }, "strip", z.ZodTypeAny, { value: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; _id?: string | undefined; }, { value: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; _id?: string | undefined; }>, "many">; model: z.ZodNullable>; embedding: z.ZodNullable>; type: z.ZodNativeEnum; origin: z.ZodNullable; originId: z.ZodOptional; originName: z.ZodOptional; originChannelId: z.ZodOptional; originChannelName: z.ZodOptional; }, "strip", z.ZodTypeAny, { channel: "Attribute" | "Launcher" | "Standalone" | "Discord" | "Slack" | "API"; originId?: string | undefined; originName?: string | undefined; originChannelId?: string | undefined; originChannelName?: string | undefined; }, { channel: "Attribute" | "Launcher" | "Standalone" | "Discord" | "Slack" | "API"; originId?: string | undefined; originName?: string | undefined; originChannelId?: string | undefined; originChannelName?: string | undefined; }>>; cachedQueryId: z.ZodNullable; geolocation: z.ZodNullable; country: z.ZodOptional; region: z.ZodOptional; countryRegion: z.ZodOptional; latitude: z.ZodOptional; longitude: z.ZodOptional; }, "strip", z.ZodTypeAny, { city?: string | undefined; country?: string | undefined; region?: string | undefined; countryRegion?: string | undefined; latitude?: string | undefined; longitude?: string | undefined; }, { city?: string | undefined; country?: string | undefined; region?: string | undefined; countryRegion?: string | undefined; latitude?: string | undefined; longitude?: string | undefined; }>>; lang: z.ZodOptional; meta: z.ZodObject<{ createdAt: z.ZodOptional; createdBy: z.ZodOptional; lastUpdatedAt: z.ZodOptional; lastUpdatedBy: z.ZodOptional; }, "strip", z.ZodTypeAny, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }>; }, "strip", z.ZodTypeAny, { type: import("../enums/SearchTypes").EnumValues; _id: string; organizationId: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; botId: string; sourceIds: string[]; model: string | null; distinctId: string; snippetIds: string[]; input: string; output: string; helpful: boolean | null; mark: boolean | null; edits: { value: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; _id?: string | undefined; }[]; embedding: number[] | null; origin: { channel: "Attribute" | "Launcher" | "Standalone" | "Discord" | "Slack" | "API"; originId?: string | undefined; originName?: string | undefined; originChannelId?: string | undefined; originChannelName?: string | undefined; } | null; cachedQueryId: string | null; geolocation: { city?: string | undefined; country?: string | undefined; region?: string | undefined; countryRegion?: string | undefined; latitude?: string | undefined; longitude?: string | undefined; } | null; lang?: string | undefined; }, { type: import("../enums/SearchTypes").EnumValues; _id: string; organizationId: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; botId: string; sourceIds: string[]; model: string | null; distinctId: string; snippetIds: string[]; input: string; output: string; helpful: boolean | null; mark: boolean | null; edits: { value: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; _id?: string | undefined; }[]; embedding: number[] | null; origin: { channel: "Attribute" | "Launcher" | "Standalone" | "Discord" | "Slack" | "API"; originId?: string | undefined; originName?: string | undefined; originChannelId?: string | undefined; originChannelName?: string | undefined; } | null; cachedQueryId: string | null; geolocation: { city?: string | undefined; country?: string | undefined; region?: string | undefined; countryRegion?: string | undefined; latitude?: string | undefined; longitude?: string | undefined; } | null; lang?: string | undefined; }>>>; }, "strip", z.ZodTypeAny, { status: string; error?: { message: string; fields?: Record | undefined; } | undefined; query?: { type: import("../enums/SearchTypes").EnumValues; _id: string; organizationId: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; botId: string; sourceIds: string[]; model: string | null; distinctId: string; snippetIds: string[]; input: string; output: string; helpful: boolean | null; mark: boolean | null; edits: { value: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; _id?: string | undefined; }[]; embedding: number[] | null; origin: { channel: "Attribute" | "Launcher" | "Standalone" | "Discord" | "Slack" | "API"; originId?: string | undefined; originName?: string | undefined; originChannelId?: string | undefined; originChannelName?: string | undefined; } | null; cachedQueryId: string | null; geolocation: { city?: string | undefined; country?: string | undefined; region?: string | undefined; countryRegion?: string | undefined; latitude?: string | undefined; longitude?: string | undefined; } | null; lang?: string | undefined; } | null | undefined; }, { status: string; error?: { message: string; fields?: Record | undefined; } | undefined; query?: { type: import("../enums/SearchTypes").EnumValues; _id: string; organizationId: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; botId: string; sourceIds: string[]; model: string | null; distinctId: string; snippetIds: string[]; input: string; output: string; helpful: boolean | null; mark: boolean | null; edits: { value: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; _id?: string | undefined; }[]; embedding: number[] | null; origin: { channel: "Attribute" | "Launcher" | "Standalone" | "Discord" | "Slack" | "API"; originId?: string | undefined; originName?: string | undefined; originChannelId?: string | undefined; originChannelName?: string | undefined; } | null; cachedQueryId: string | null; geolocation: { city?: string | undefined; country?: string | undefined; region?: string | undefined; countryRegion?: string | undefined; latitude?: string | undefined; longitude?: string | undefined; } | null; lang?: string | undefined; } | null | undefined; }>; export type GetQueryParams = z.infer; export type GetQueryRequest = z.infer; export type GetQueryResponse = z.infer; /** ****************************************************************************** * List Queries ******************************************************************************* */ export declare const listQueriesParams: z.ZodObject<{ botId: z.ZodOptional; sourceIds: z.ZodOptional>; search: z.ZodOptional; offset: z.ZodOptional; pageSize: z.ZodOptional; isSuper: z.ZodOptional; }, "strip", z.ZodTypeAny, { botId?: string | undefined; sourceIds?: string[] | undefined; search?: string | undefined; offset?: number | undefined; pageSize?: number | undefined; isSuper?: boolean | undefined; }, { botId?: string | undefined; sourceIds?: string[] | undefined; search?: string | undefined; offset?: number | undefined; pageSize?: number | undefined; isSuper?: boolean | undefined; }>; export declare const listQueriesRequest: z.ZodObject<{ auth: z.ZodObject<{ email: z.ZodOptional; userId: z.ZodOptional; organizationId: z.ZodOptional; token: z.ZodOptional; }, "strip", z.ZodTypeAny, { email?: string | undefined; userId?: string | undefined; organizationId?: string | undefined; token?: string | undefined; }, { email?: string | undefined; userId?: string | undefined; organizationId?: string | undefined; token?: string | undefined; }>; params: z.ZodObject<{ botId: z.ZodOptional; sourceIds: z.ZodOptional>; search: z.ZodOptional; offset: z.ZodOptional; pageSize: z.ZodOptional; isSuper: z.ZodOptional; }, "strip", z.ZodTypeAny, { botId?: string | undefined; sourceIds?: string[] | undefined; search?: string | undefined; offset?: number | undefined; pageSize?: number | undefined; isSuper?: boolean | undefined; }, { botId?: string | undefined; sourceIds?: string[] | undefined; search?: string | undefined; offset?: number | undefined; pageSize?: number | undefined; isSuper?: boolean | undefined; }>; }, "strip", z.ZodTypeAny, { params: { botId?: string | undefined; sourceIds?: string[] | undefined; search?: string | undefined; offset?: number | undefined; pageSize?: number | undefined; isSuper?: boolean | undefined; }; auth: { email?: string | undefined; userId?: string | undefined; organizationId?: string | undefined; token?: string | undefined; }; }, { params: { botId?: string | undefined; sourceIds?: string[] | undefined; search?: string | undefined; offset?: number | undefined; pageSize?: number | undefined; isSuper?: boolean | undefined; }; auth: { email?: string | undefined; userId?: string | undefined; organizationId?: string | undefined; token?: string | undefined; }; }>; export declare const listQueriesResponse: z.ZodObject<{ status: z.ZodEnum<[string, ...string[]]>; error: z.ZodOptional>; }, "strip", z.ZodTypeAny, { message: string; fields?: Record | undefined; }, { message: string; fields?: Record | undefined; }>>; queries: z.ZodOptional; snippetIds: z.ZodArray; input: z.ZodString; output: z.ZodString; helpful: z.ZodNullable; mark: z.ZodNullable; edits: z.ZodArray; value: z.ZodString; meta: z.ZodObject<{ createdAt: z.ZodOptional; createdBy: z.ZodOptional; lastUpdatedAt: z.ZodOptional; lastUpdatedBy: z.ZodOptional; }, "strip", z.ZodTypeAny, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }>; }, "strip", z.ZodTypeAny, { value: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; _id?: string | undefined; }, { value: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; _id?: string | undefined; }>, "many">; model: z.ZodNullable>; embedding: z.ZodNullable>; type: z.ZodNativeEnum; origin: z.ZodNullable; originId: z.ZodOptional; originName: z.ZodOptional; originChannelId: z.ZodOptional; originChannelName: z.ZodOptional; }, "strip", z.ZodTypeAny, { channel: "Attribute" | "Launcher" | "Standalone" | "Discord" | "Slack" | "API"; originId?: string | undefined; originName?: string | undefined; originChannelId?: string | undefined; originChannelName?: string | undefined; }, { channel: "Attribute" | "Launcher" | "Standalone" | "Discord" | "Slack" | "API"; originId?: string | undefined; originName?: string | undefined; originChannelId?: string | undefined; originChannelName?: string | undefined; }>>; cachedQueryId: z.ZodNullable; geolocation: z.ZodNullable; country: z.ZodOptional; region: z.ZodOptional; countryRegion: z.ZodOptional; latitude: z.ZodOptional; longitude: z.ZodOptional; }, "strip", z.ZodTypeAny, { city?: string | undefined; country?: string | undefined; region?: string | undefined; countryRegion?: string | undefined; latitude?: string | undefined; longitude?: string | undefined; }, { city?: string | undefined; country?: string | undefined; region?: string | undefined; countryRegion?: string | undefined; latitude?: string | undefined; longitude?: string | undefined; }>>; lang: z.ZodOptional; meta: z.ZodObject<{ createdAt: z.ZodOptional; createdBy: z.ZodOptional; lastUpdatedAt: z.ZodOptional; lastUpdatedBy: z.ZodOptional; }, "strip", z.ZodTypeAny, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }>; }, "strip", z.ZodTypeAny, { type: import("../enums/SearchTypes").EnumValues; _id: string; organizationId: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; botId: string; sourceIds: string[]; model: string | null; distinctId: string; snippetIds: string[]; input: string; output: string; helpful: boolean | null; mark: boolean | null; edits: { value: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; _id?: string | undefined; }[]; embedding: number[] | null; origin: { channel: "Attribute" | "Launcher" | "Standalone" | "Discord" | "Slack" | "API"; originId?: string | undefined; originName?: string | undefined; originChannelId?: string | undefined; originChannelName?: string | undefined; } | null; cachedQueryId: string | null; geolocation: { city?: string | undefined; country?: string | undefined; region?: string | undefined; countryRegion?: string | undefined; latitude?: string | undefined; longitude?: string | undefined; } | null; lang?: string | undefined; }, { type: import("../enums/SearchTypes").EnumValues; _id: string; organizationId: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; botId: string; sourceIds: string[]; model: string | null; distinctId: string; snippetIds: string[]; input: string; output: string; helpful: boolean | null; mark: boolean | null; edits: { value: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; _id?: string | undefined; }[]; embedding: number[] | null; origin: { channel: "Attribute" | "Launcher" | "Standalone" | "Discord" | "Slack" | "API"; originId?: string | undefined; originName?: string | undefined; originChannelId?: string | undefined; originChannelName?: string | undefined; } | null; cachedQueryId: string | null; geolocation: { city?: string | undefined; country?: string | undefined; region?: string | undefined; countryRegion?: string | undefined; latitude?: string | undefined; longitude?: string | undefined; } | null; lang?: string | undefined; }>, "many">>; total: z.ZodOptional; }, "strip", z.ZodTypeAny, { status: string; error?: { message: string; fields?: Record | undefined; } | undefined; queries?: { type: import("../enums/SearchTypes").EnumValues; _id: string; organizationId: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; botId: string; sourceIds: string[]; model: string | null; distinctId: string; snippetIds: string[]; input: string; output: string; helpful: boolean | null; mark: boolean | null; edits: { value: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; _id?: string | undefined; }[]; embedding: number[] | null; origin: { channel: "Attribute" | "Launcher" | "Standalone" | "Discord" | "Slack" | "API"; originId?: string | undefined; originName?: string | undefined; originChannelId?: string | undefined; originChannelName?: string | undefined; } | null; cachedQueryId: string | null; geolocation: { city?: string | undefined; country?: string | undefined; region?: string | undefined; countryRegion?: string | undefined; latitude?: string | undefined; longitude?: string | undefined; } | null; lang?: string | undefined; }[] | undefined; total?: number | undefined; }, { status: string; error?: { message: string; fields?: Record | undefined; } | undefined; queries?: { type: import("../enums/SearchTypes").EnumValues; _id: string; organizationId: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; botId: string; sourceIds: string[]; model: string | null; distinctId: string; snippetIds: string[]; input: string; output: string; helpful: boolean | null; mark: boolean | null; edits: { value: string; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; _id?: string | undefined; }[]; embedding: number[] | null; origin: { channel: "Attribute" | "Launcher" | "Standalone" | "Discord" | "Slack" | "API"; originId?: string | undefined; originName?: string | undefined; originChannelId?: string | undefined; originChannelName?: string | undefined; } | null; cachedQueryId: string | null; geolocation: { city?: string | undefined; country?: string | undefined; region?: string | undefined; countryRegion?: string | undefined; latitude?: string | undefined; longitude?: string | undefined; } | null; lang?: string | undefined; }[] | undefined; total?: number | undefined; }>; export type ListQueriesParams = z.infer; export type ListQueriesRequest = z.infer; export type ListQueriesResponse = z.infer; /** ****************************************************************************** * Count Queries ******************************************************************************* */ export declare const countQueriesParams: z.ZodObject<{ botId: z.ZodOptional; sourceIds: z.ZodOptional>; search: z.ZodOptional; isSuper: z.ZodOptional; }, "strip", z.ZodTypeAny, { botId?: string | undefined; sourceIds?: string[] | undefined; search?: string | undefined; isSuper?: boolean | undefined; }, { botId?: string | undefined; sourceIds?: string[] | undefined; search?: string | undefined; isSuper?: boolean | undefined; }>; export declare const countQueriesRequest: z.ZodObject<{ auth: z.ZodObject<{ email: z.ZodOptional; userId: z.ZodOptional; organizationId: z.ZodOptional; token: z.ZodOptional; }, "strip", z.ZodTypeAny, { email?: string | undefined; userId?: string | undefined; organizationId?: string | undefined; token?: string | undefined; }, { email?: string | undefined; userId?: string | undefined; organizationId?: string | undefined; token?: string | undefined; }>; params: z.ZodObject<{ botId: z.ZodOptional; sourceIds: z.ZodOptional>; search: z.ZodOptional; isSuper: z.ZodOptional; }, "strip", z.ZodTypeAny, { botId?: string | undefined; sourceIds?: string[] | undefined; search?: string | undefined; isSuper?: boolean | undefined; }, { botId?: string | undefined; sourceIds?: string[] | undefined; search?: string | undefined; isSuper?: boolean | undefined; }>; }, "strip", z.ZodTypeAny, { params: { botId?: string | undefined; sourceIds?: string[] | undefined; search?: string | undefined; isSuper?: boolean | undefined; }; auth: { email?: string | undefined; userId?: string | undefined; organizationId?: string | undefined; token?: string | undefined; }; }, { params: { botId?: string | undefined; sourceIds?: string[] | undefined; search?: string | undefined; isSuper?: boolean | undefined; }; auth: { email?: string | undefined; userId?: string | undefined; organizationId?: string | undefined; token?: string | undefined; }; }>; export declare const countQueriesResponse: z.ZodObject<{ status: z.ZodEnum<[string, ...string[]]>; error: z.ZodOptional>; }, "strip", z.ZodTypeAny, { message: string; fields?: Record | undefined; }, { message: string; fields?: Record | undefined; }>>; count: z.ZodOptional; }, "strip", z.ZodTypeAny, { status: string; error?: { message: string; fields?: Record | undefined; } | undefined; count?: number | undefined; }, { status: string; error?: { message: string; fields?: Record | undefined; } | undefined; count?: number | undefined; }>; export type CountQueriesParams = z.infer; export type CountQueriesRequest = z.infer; export type CountQueriesResponse = z.infer;