import type { api_List } from '../models/api_List'; import type { messages_CreateMessageInput } from '../models/messages_CreateMessageInput'; import type { messages_Message } from '../models/messages_Message'; import type { CancelablePromise } from '../core/CancelablePromise'; export declare class MessagesService { /** * List messages * * Returns a paginated list of messages in a channel, most recent first. The * channelId query parameter is required and must be a bare UUID (do not * include the GetStream 'messaging:' prefix). A maximum of 100 messages are * returned per page. * * @param channelId Channel ID to list messages for (UUID format only, do not include the 'messaging:' prefix) * @param limit Maximum number of messages to return (capped at 100) * @param nextToken Pagination cursor returned by a previous call * * @example * await assembly.listMessages({ channelId: ... }); */ static listMessages({ channelId, limit, nextToken, }: { /** * Channel ID to list messages for (UUID format only, do not include the 'messaging:' prefix) */ channelId: string; /** * Maximum number of messages to return (capped at 100) */ limit?: number; /** * Pagination cursor returned by a previous call */ nextToken?: string; }): CancelablePromise<(api_List & { data?: Array; })>; /** * Send a message * * Sends a message to a channel. Requires channelId and text. channelId must * be a bare UUID (do not include the GetStream 'messaging:' prefix). When * senderId is provided it must be a member of the channel; otherwise the * authenticated user is used as the author. * * @example * await assembly.sendMessage({ requestBody: ... }); */ static sendMessage({ requestBody, }: { /** * Message to send */ requestBody: messages_CreateMessageInput; }): CancelablePromise; }