enerthya.dev-web-common 1.6.3 → 1.6.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/constants/routes.js +0 -39
- package/package.json +1 -1
package/esm/constants/routes.js
CHANGED
|
@@ -86,45 +86,6 @@ const API_ROUTES = {
|
|
|
86
86
|
BETA_REMOVE: (id) => `/owner/beta/${id}`,
|
|
87
87
|
},
|
|
88
88
|
|
|
89
|
-
// ─── Ada — Assistente IA ─────────────────────────────────────────────────
|
|
90
|
-
ADA: {
|
|
91
|
-
/** GET — Modelos disponíveis e configuração pública (sem chave API) */
|
|
92
|
-
CONFIG: "/ada/config",
|
|
93
|
-
/** GET — Lista todas as conversas do usuário */
|
|
94
|
-
CHATS: "/ada/chats",
|
|
95
|
-
/** POST — Cria uma nova conversa */
|
|
96
|
-
CREATE_CHAT: "/ada/chats",
|
|
97
|
-
/**
|
|
98
|
-
* GET — Carrega mensagens de uma conversa
|
|
99
|
-
* @param {string} chatId - ID da conversa
|
|
100
|
-
*/
|
|
101
|
-
CHAT: (chatId) => `/ada/chats/${chatId}`,
|
|
102
|
-
/**
|
|
103
|
-
* POST — Envia mensagem em uma conversa
|
|
104
|
-
* @param {string} chatId - ID da conversa
|
|
105
|
-
*/
|
|
106
|
-
SEND_MESSAGE: (chatId) => `/ada/chats/${chatId}/message`,
|
|
107
|
-
/**
|
|
108
|
-
* POST — Limpa todas as mensagens de uma conversa
|
|
109
|
-
* @param {string} chatId - ID da conversa
|
|
110
|
-
*/
|
|
111
|
-
CLEAR_CHAT: (chatId) => `/ada/chats/${chatId}/clear`,
|
|
112
|
-
/**
|
|
113
|
-
* DELETE — Deleta uma conversa
|
|
114
|
-
* @param {string} chatId - ID da conversa
|
|
115
|
-
*/
|
|
116
|
-
DELETE_CHAT: (chatId) => `/ada/chats/${chatId}`,
|
|
117
|
-
/**
|
|
118
|
-
* PUT — Renomeia uma conversa
|
|
119
|
-
* @param {string} chatId - ID da conversa
|
|
120
|
-
*/
|
|
121
|
-
RENAME_CHAT: (chatId) => `/ada/chats/${chatId}/rename`,
|
|
122
|
-
/** GET — Auditoria completa da guilda (query param: guildId) */
|
|
123
|
-
GUILD_AUDIT: "/ada/guild/audit",
|
|
124
|
-
/** POST — Aplica uma sugestão de auditoria { action, guildId } */
|
|
125
|
-
GUILD_AUDIT_APPLY: "/ada/guild/audit/apply",
|
|
126
|
-
},
|
|
127
|
-
|
|
128
89
|
// ─── Meta ─────────────────────────────────────────────────────────────────
|
|
129
90
|
/** GET — Bot + shard status */
|
|
130
91
|
STATUS: "/status",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "enerthya.dev-web-common",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.4",
|
|
4
4
|
"description": "Shared web layer for the Enerthya ecosystem: API routes, response envelopes, URL helpers and validators. Inspired by Loritta's web-common and dashboard-common modules.",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"module": "esm/index.js",
|