enerthya.dev-web-common 1.5.3 → 1.5.5

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.
@@ -93,6 +93,9 @@ const API_ROUTES = {
93
93
  COMMANDS: "/commands",
94
94
  /** GET — Dev-only diagnostics */
95
95
  DEV: "/dev",
96
+ /** GET — Owner + helpers da documentação pública com username e avatar */
97
+ DOCS_CONTRIBUTORS: "/docs-contributors",
98
+ DISCORD_USER: (id) => `/user/${id}`,
96
99
  };
97
100
 
98
101
  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.5",
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",
@@ -93,6 +93,13 @@ const API_ROUTES = {
93
93
  COMMANDS: "/commands",
94
94
  /** GET — Dev-only diagnostics */
95
95
  DEV: "/dev",
96
+ /** GET — Owner + helpers da documentação pública com username e avatar */
97
+ DOCS_CONTRIBUTORS: "/docs-contributors",
98
+ /**
99
+ * GET — Dados públicos de um usuário Discord (username + avatar)
100
+ * @param {string} id - Discord user ID
101
+ */
102
+ DISCORD_USER: (id) => `/user/${id}`,
96
103
  };
97
104
 
98
105
  module.exports = { API_ROUTES };