import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; /** * Type of the id in the incoming request. */ export declare const IdType: { readonly ChannelName: "CHANNEL_NAME"; readonly ThreadId: "THREAD_ID"; readonly ConversationId: "CONVERSATION_ID"; }; /** * Type of the id in the incoming request. */ export type IdType = ClosedEnum; /** * The direction of the results asked with respect to the reference timestamp. Missing field defaults to OLDER. Only applicable when using a message_id. */ export declare const Direction: { readonly Older: "OLDER"; readonly Newer: "NEWER"; }; /** * The direction of the results asked with respect to the reference timestamp. Missing field defaults to OLDER. Only applicable when using a message_id. */ export type Direction = ClosedEnum; /** * The type of the data source. */ export declare const Datasource: { readonly Slack: "SLACK"; readonly Slackentgrid: "SLACKENTGRID"; readonly Microsoftteams: "MICROSOFTTEAMS"; readonly Gchat: "GCHAT"; readonly Facebookworkplace: "FACEBOOKWORKPLACE"; }; /** * The type of the data source. */ export type Datasource = ClosedEnum; export type MessagesRequest = { /** * Type of the id in the incoming request. */ idType: IdType; /** * ID corresponding to the requested idType. Note that channel and threads are represented by the underlying datasource's ID and conversations are represented by their document's ID. */ id: string; /** * Id for the for the workspace in case of multiple workspaces. */ workspaceId?: string | undefined; /** * The direction of the results asked with respect to the reference timestamp. Missing field defaults to OLDER. Only applicable when using a message_id. */ direction?: Direction | undefined; /** * Timestamp in millis of the reference message. Only applicable when using a message_id. */ timestampMillis?: number | undefined; /** * Whether to include root message in response. */ includeRootMessage?: boolean | undefined; /** * The type of the data source. */ datasource: Datasource; /** * The datasource instance display name from which the document was extracted. This is used for appinstance facet filter for datasources that support multiple instances. */ datasourceInstanceDisplayName?: string | undefined; }; /** @internal */ export declare const IdType$outboundSchema: z.ZodNativeEnum; /** @internal */ export declare const Direction$outboundSchema: z.ZodNativeEnum; /** @internal */ export declare const Datasource$outboundSchema: z.ZodNativeEnum; /** @internal */ export type MessagesRequest$Outbound = { idType: string; id: string; workspaceId?: string | undefined; direction?: string | undefined; timestampMillis?: number | undefined; includeRootMessage?: boolean | undefined; datasource: string; datasourceInstanceDisplayName?: string | undefined; }; /** @internal */ export declare const MessagesRequest$outboundSchema: z.ZodType; export declare function messagesRequestToJSON(messagesRequest: MessagesRequest): string; //# sourceMappingURL=messagesrequest.d.ts.map