refactor: narrow dead reexports

This commit is contained in:
Peter Steinberger
2026-05-01 08:18:47 +01:00
parent 6776345d0a
commit e816235c2d
15 changed files with 15 additions and 90 deletions

View File

@@ -1,13 +1,8 @@
export {
downloadMSTeamsBotFrameworkAttachment,
downloadMSTeamsBotFrameworkAttachments,
isBotFrameworkPersonalChatId,
} from "./attachments/bot-framework.js";
export {
downloadMSTeamsAttachments,
/** @deprecated Use `downloadMSTeamsAttachments` instead. */
downloadMSTeamsImageAttachments,
} from "./attachments/download.js";
export { downloadMSTeamsAttachments } from "./attachments/download.js";
export { buildMSTeamsGraphMessageUrls, downloadMSTeamsGraphMedia } from "./attachments/graph.js";
export {
buildMSTeamsAttachmentPlaceholder,
@@ -18,7 +13,6 @@ export { buildMSTeamsMediaPayload } from "./attachments/payload.js";
export type {
MSTeamsAccessTokenProvider,
MSTeamsAttachmentLike,
MSTeamsGraphMediaResult,
MSTeamsHtmlAttachmentSummary,
MSTeamsInboundMedia,
} from "./attachments/types.js";

View File

@@ -3,13 +3,11 @@ import { downloadFile } from "../utils/file-utils.js";
import { getQQBotMediaDir } from "../utils/platform.js";
import { normalizeOptionalString } from "../utils/string-normalize.js";
import { transcribeAudio, resolveSTTConfig } from "../utils/stt.js";
// Re-export formatVoiceText from core/.
export { formatVoiceText } from "../utils/voice-text.js";
// Re-export the port type for convenience.
export type { AudioConvertPort } from "../adapter/audio.port.js";
export interface RawAttachment {
interface RawAttachment {
content_type: string;
url: string;
filename?: string;
@@ -17,7 +15,7 @@ export interface RawAttachment {
asr_refer_text?: string;
}
export type TranscriptSource = "stt" | "asr" | "fallback";
type TranscriptSource = "stt" | "asr" | "fallback";
/** Normalized attachment output consumed by the gateway. */
export interface ProcessedAttachments {