forked from mtusi2026/mtusi2026lab2
routes -> http/auth -> repositories -> infra; поведение не изменилось, smoke, persistence и тесты уровня 4 перепрогнаны.
30 lines
640 B
TypeScript
30 lines
640 B
TypeScript
// Объекты в том виде, в каком их возвращает API (см. contracts/openapi.json).
|
||
|
||
export interface User {
|
||
id: string;
|
||
username: string;
|
||
display_name: string;
|
||
created_at: string; // RFC 3339 UTC с Z
|
||
}
|
||
|
||
export interface Chat {
|
||
id: string;
|
||
title: string;
|
||
member_ids: string[];
|
||
created_at: string;
|
||
}
|
||
|
||
export interface Message {
|
||
id: string;
|
||
chat_id: string;
|
||
sender_id: string;
|
||
text: string;
|
||
created_at: string;
|
||
}
|
||
|
||
/** Позиция в списке для keyset-пагинации: порядок (created_at, id). */
|
||
export interface Position {
|
||
created_at: string;
|
||
id: string;
|
||
}
|