bigbuffet-rw/packages/pl-api/lib/params/chats.ts

29 lines
486 B
TypeScript
Raw Normal View History

import { PaginationParams, WithMutedParam } from './common';
/**
* @category Request params
*/
type GetChatsParams = PaginationParams & WithMutedParam;
/**
* @category Request params
*/
type GetChatMessagesParams = PaginationParams;
/**
* @category Request params
*/
type CreateChatMessageParams = {
content?: string;
media_id: string;
} | {
content: string;
media_id?: string;
};
export type {
GetChatsParams,
GetChatMessagesParams,
CreateChatMessageParams,
};