enerthya.dev-web-common 1.5.3 → 1.5.6

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.
@@ -86,6 +86,14 @@ 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
+ /** POST — Envia mensagem e recebe resposta da Ada */
94
+ CHAT: "/ada/chat",
95
+ },
96
+
89
97
  // ─── Meta ─────────────────────────────────────────────────────────────────
90
98
  /** GET — Bot + shard status */
91
99
  STATUS: "/status",
@@ -93,6 +101,9 @@ const API_ROUTES = {
93
101
  COMMANDS: "/commands",
94
102
  /** GET — Dev-only diagnostics */
95
103
  DEV: "/dev",
104
+ /** GET — Owner + helpers da documentação pública com username e avatar */
105
+ DOCS_CONTRIBUTORS: "/docs-contributors",
106
+ DISCORD_USER: (id) => `/user/${id}`,
96
107
  };
97
108
 
98
109
  export { API_ROUTES };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "enerthya.dev-web-common",
3
- "version": "1.5.3",
3
+ "version": "1.5.6",
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",
@@ -86,6 +86,14 @@ 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
+ /** POST — Envia mensagem e recebe resposta da Ada */
94
+ CHAT: "/ada/chat",
95
+ },
96
+
89
97
  // ─── Meta ─────────────────────────────────────────────────────────────────
90
98
  /** GET — Bot + shard status */
91
99
  STATUS: "/status",
@@ -93,6 +101,13 @@ const API_ROUTES = {
93
101
  COMMANDS: "/commands",
94
102
  /** GET — Dev-only diagnostics */
95
103
  DEV: "/dev",
104
+ /** GET — Owner + helpers da documentação pública com username e avatar */
105
+ DOCS_CONTRIBUTORS: "/docs-contributors",
106
+ /**
107
+ * GET — Dados públicos de um usuário Discord (username + avatar)
108
+ * @param {string} id - Discord user ID
109
+ */
110
+ DISCORD_USER: (id) => `/user/${id}`,
96
111
  };
97
112
 
98
113
  module.exports = { API_ROUTES };