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

19 lines
377 B
TypeScript
Raw Normal View History

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