From 305d0588ec73daab1e80beebd97b3c9c2faa4e78 Mon Sep 17 00:00:00 2001 From: Christian Villegas Date: Wed, 6 May 2026 22:25:29 +0000 Subject: [PATCH] feat: expose getAvatar with custom API configuration - Export getAvatar function for public use - Export setCustomApiFromJson for custom API configuration - Export CustomJsonApi and CustomJsonApiConfig types - Enable developers to configure custom avatar providers --- src/index.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/index.ts b/src/index.ts index 776b1c9..7eec15a 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,9 +1,15 @@ // Cliente principal export { client } from "./mtmi.ts"; +// Funciones de utilidad para el cliente +export { getAvatar, setCustomApiFromJson } from "./modules/message/avatars/getAvatar.ts"; + // Tipos del mapa de eventos export type { EventType, EventTypeMap } from "./types.ts"; +// Avatares +export type { CustomJsonApi, CustomJsonApiConfig } from "./modules/message/avatars/getAvatar.ts"; + // Mensaje de chat export type { UserMessageInfoType } from "./modules/message/parseUserMessage.ts"; export type { UserInfoType } from "./modules/message/parseUser.ts";