diff --git a/client/api/ApiDeclare.ts b/client/api/ApiDeclare.ts index 1b70459..42d9b20 100644 --- a/client/api/ApiDeclare.ts +++ b/client/api/ApiDeclare.ts @@ -13,17 +13,19 @@ export type CallMethod = "User.addContact" | "User.removeContacts" | + "User.getMyRecentChats" | + "Chat.getInfo" | "Chat.sendMessage" | "Chat.getMessageHistory" | "Chat.uploadFile" +export type ClientEvent = + "Client.onMessage" + export const CallableMethodBeforeAuth = [ "User.auth", "User.register", "User.login", -] - -export type ClientEvent = - "Client.onMessage" +] \ No newline at end of file diff --git a/server/api/ApiDeclare.ts b/server/api/ApiDeclare.ts index 4edba17..90ebca7 100644 --- a/server/api/ApiDeclare.ts +++ b/server/api/ApiDeclare.ts @@ -13,6 +13,8 @@ export type CallMethod = "User.addContact" | "User.removeContacts" | + "User.getMyRecentChats" | + "Chat.getInfo" | "Chat.sendMessage" | "Chat.getMessageHistory" |