export interface ListMessagesRequestHeaders { "x-user-key": string; } export interface ListMessagesRequestQuery { nextToken?: string; } export interface ListMessagesRequestParams { conversationId: string; } export interface ListMessagesRequestBody { } export type ListMessagesInput = ListMessagesRequestBody & ListMessagesRequestHeaders & ListMessagesRequestQuery & ListMessagesRequestParams; export type ListMessagesRequest = { headers: ListMessagesRequestHeaders; query: ListMessagesRequestQuery; params: ListMessagesRequestParams; body: ListMessagesRequestBody; }; export declare const parseReq: (input: ListMessagesInput) => ListMessagesRequest & { path: string; }; export interface ListMessagesResponse { messages: { /** * Identifier of the [Message](#schema_message) */ id: string; /** * Creation date of the [Message](#schema_message) in ISO 8601 format */ createdAt: string; /** * Payload is the content type of the message. */ payload: { type: "audio"; audioUrl: string; [k: string]: any; } | { type: "card"; title: string; subtitle?: string; imageUrl?: string; actions: { action: "postback" | "url" | "say"; label: string; value: string; [k: string]: any; }[]; [k: string]: any; } | { type: "carousel"; items: { type: "card"; title: string; subtitle?: string; imageUrl?: string; actions: { action: "postback" | "url" | "say"; label: string; value: string; [k: string]: any; }[]; [k: string]: any; }[]; [k: string]: any; } | { text: string; options: { label: string; value: string; [k: string]: any; }[]; type: "choice"; [k: string]: any; } | { text: string; options: { label: string; value: string; [k: string]: any; }[]; type: "dropdown"; [k: string]: any; } | { type: "file"; fileUrl: string; title?: string; [k: string]: any; } | { type: "image"; imageUrl: string; [k: string]: any; } | { type: "location"; latitude: number; longitude: number; address?: string; title?: string; [k: string]: any; } | { type: "text"; text: string; [k: string]: any; } | { type: "video"; videoUrl: string; [k: string]: any; } | { type: "markdown"; markdown: string; [k: string]: any; } | { type: "bloc"; items: ({ type: "text"; text: string; [k: string]: any; } | { type: "markdown"; markdown: string; [k: string]: any; } | { type: "image"; imageUrl: string; [k: string]: any; } | { type: "audio"; audioUrl: string; [k: string]: any; } | { type: "video"; videoUrl: string; [k: string]: any; } | { type: "file"; fileUrl: string; title?: string; [k: string]: any; } | { type: "location"; latitude: number; longitude: number; address?: string; title?: string; [k: string]: any; })[]; [k: string]: any; }; /** * ID of the [User](#schema_user) */ userId: string; /** * ID of the [Conversation](#schema_conversation) */ conversationId: string; /** * Metadata of the message */ metadata?: { [k: string]: any | null; }; }[]; meta: { /** * The token to use to retrieve the next page of results, passed as a query string parameter (value should be URL-encoded) to this API endpoint. */ nextToken?: string; }; }