refactor: narrow extension runtime api barrels

This commit is contained in:
Peter Steinberger
2026-04-27 20:34:25 +01:00
parent 31e529f000
commit a20f97f728
12 changed files with 533 additions and 46 deletions

View File

@@ -48,28 +48,87 @@ export {
} from "./src/send.js";
export { monitorLineProvider } from "./src/monitor.js";
export { hasLineDirectives, parseLineDirectives } from "./src/reply-payload-transform.js";
export * from "./src/accounts.js";
export * from "./src/bot-access.js";
export * from "./src/channel-access-token.js";
export * from "./src/config-schema.js";
export * from "./src/download.js";
export * from "./src/group-keys.js";
export * from "./src/markdown-to-line.js";
export * from "./src/probe.js";
export * from "./src/reply-payload-transform.js";
export * from "./src/send.js";
export * from "./src/signature.js";
export * from "./src/template-messages.js";
export {
listLineAccountIds,
normalizeAccountId,
resolveDefaultLineAccountId,
resolveLineAccount,
} from "./src/accounts.js";
export { type NormalizedAllowFrom } from "./src/bot-access.js";
export { resolveLineChannelAccessToken } from "./src/channel-access-token.js";
export {
LineChannelConfigSchema,
LineConfigSchema,
type LineConfigSchemaType,
} from "./src/config-schema.js";
export {
resolveExactLineGroupConfigKey,
resolveLineGroupConfigEntry,
resolveLineGroupLookupIds,
resolveLineGroupsConfig,
} from "./src/group-keys.js";
export {
type CodeBlock,
convertCodeBlockToFlexBubble,
convertLinksToFlexBubble,
convertTableToFlexBubble,
extractCodeBlocks,
extractLinks,
extractMarkdownTables,
hasMarkdownToConvert,
type MarkdownLink,
type MarkdownTable,
type ProcessedLineMessage,
processLineMessage,
stripMarkdown,
} from "./src/markdown-to-line.js";
export {
createAudioMessage,
createFlexMessage,
createImageMessage,
createLocationMessage,
createTextMessageWithQuickReplies,
createVideoMessage,
getUserDisplayName,
getUserProfile,
pushImageMessage,
replyMessageLine,
showLoadingAnimation,
} from "./src/send.js";
export { validateLineSignature } from "./src/signature.js";
export {
type ButtonsTemplate,
type CarouselColumn,
type CarouselTemplate,
type ConfirmTemplate,
createButtonMenu,
createButtonTemplate,
createCarouselColumn,
createConfirmTemplate,
createImageCarousel,
createImageCarouselColumn,
createLinkMenu,
createProductCarousel,
createTemplateCarousel,
createYesNoConfirm,
type ImageCarouselColumn,
type ImageCarouselTemplate,
type TemplateMessage,
} from "./src/template-messages.js";
export type {
LineChannelData,
LineConfig,
LineProbeResult,
ResolvedLineAccount,
} from "./src/types.js";
export * from "./src/webhook-node.js";
export * from "./src/webhook.js";
export * from "./src/webhook-utils.js";
export { createLineNodeWebhookHandler, readLineWebhookRequestBody } from "./src/webhook-node.js";
export {
createLineWebhookMiddleware,
type LineWebhookOptions,
startLineWebhook,
type StartLineWebhookOptions,
} from "./src/webhook.js";
export { parseLineWebhookBody } from "./src/webhook-utils.js";
export { datetimePickerAction, messageAction, postbackAction, uriAction } from "./src/actions.js";
export type { Action } from "./src/actions.js";
export {