feat(docs): implement comprehensive Chat and ChatId schemas for Swagger (#103)

* feat(docs): add ChatId schema definition to swagger.json

* feat(docs): integrate ChatId and define base of Chat schema.

* feat(docs): add response schema for chat listing
This commit is contained in:
Kauã Q. 2026-02-28 15:44:38 -04:00 • committed by GitHub
commit c6c746afbc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 150 additions and 6 deletions

View file

@ -80,6 +80,28 @@ const doc = {
GetSessionsResponse: {
success: true,
result: ['session1', 'session2']
},
ChatId: {
server: 'c.us | g.us',
user: '1234567890',
_serialized: '1234567890@c.us',
},
Chat: {
id: { $ref: '#/definitions/ChatId' },
name: 'John Doe',
isGroup: false,
unreadCount: 0,
timestamp: 1770140061,
archived: false,
pinned: false,
isMuted: false,
muteExpiration: 0,
// Add other chat properties as needed after create definitions
},
GetChatsResponse: {
success: true,
chats: [ { $ref: '#/definitions/Chat' } ],
error: 'error message if any',
}
}
}