diff --git a/extensions/line/src/actions.ts b/extensions/line/src/actions.ts index dc75ac4bce6f..5fa37557dba3 100644 --- a/extensions/line/src/actions.ts +++ b/extensions/line/src/actions.ts @@ -3,7 +3,7 @@ import type { messagingApi } from "@line/bot-sdk"; import { truncateUtf16Safe } from "openclaw/plugin-sdk/text-utility-runtime"; export type Action = messagingApi.Action; -export const LINE_ACTION_LABEL_LIMIT = 20; +const LINE_ACTION_LABEL_LIMIT = 20; const LINE_ACTION_DATA_LIMIT = 300; export function truncateLineActionLabel(label: string, limit = LINE_ACTION_LABEL_LIMIT): string { diff --git a/extensions/line/src/auto-reply-delivery.ts b/extensions/line/src/auto-reply-delivery.ts index 74a78a34fcea..e6f9d3c0dcde 100644 --- a/extensions/line/src/auto-reply-delivery.ts +++ b/extensions/line/src/auto-reply-delivery.ts @@ -43,7 +43,7 @@ export type LineAutoReplyDeps = { | "onReplyError" >; -export type LineAutoReplyDeliveryResult = +type LineAutoReplyDeliveryResult = | { status: "delivered"; replyTokenUsed: boolean } | { status: "partial"; replyTokenUsed: boolean; error: Error }; diff --git a/extensions/line/src/bot-handlers.ts b/extensions/line/src/bot-handlers.ts index 7277652cc717..5bc04442c800 100644 --- a/extensions/line/src/bot-handlers.ts +++ b/extensions/line/src/bot-handlers.ts @@ -66,7 +66,7 @@ function isDownloadableLineMessageType( return LINE_DOWNLOADABLE_MESSAGE_TYPES.has(messageType); } -export interface LineHandlerContext { +interface LineHandlerContext { cfg: OpenClawConfig; account: ResolvedLineAccount; runtime: RuntimeEnv; @@ -79,7 +79,7 @@ export interface LineHandlerContext { const LINE_WEBHOOK_REPLAY_WINDOW_MS = 10 * 60 * 1000; const LINE_WEBHOOK_REPLAY_MAX_ENTRIES = 4096; -export type LineWebhookReplayCache = ClaimableDedupe; +type LineWebhookReplayCache = ClaimableDedupe; function normalizeLineIngressEntry(value: string): string | null { return normalizeLineAllowEntry(value) || null; diff --git a/extensions/line/src/monitor-durable.ts b/extensions/line/src/monitor-durable.ts index dc124ce7e6c0..6a183d737546 100644 --- a/extensions/line/src/monitor-durable.ts +++ b/extensions/line/src/monitor-durable.ts @@ -3,7 +3,7 @@ import { resolveSendableOutboundReplyParts } from "openclaw/plugin-sdk/reply-pay import type { ReplyPayload } from "openclaw/plugin-sdk/reply-runtime"; import type { LineChannelData } from "./types.js"; -export type LineDurableReplyOptions = { +type LineDurableReplyOptions = { to: string; }; diff --git a/extensions/line/src/monitor.ts b/extensions/line/src/monitor.ts index 3075db49f9dc..04c74e2b273b 100644 --- a/extensions/line/src/monitor.ts +++ b/extensions/line/src/monitor.ts @@ -46,7 +46,7 @@ import type { LineChannelData, ResolvedLineAccount } from "./types.js"; import { createLineNodeWebhookHandler, readLineWebhookRequestBody } from "./webhook-node.js"; import { parseLineWebhookBody, validateLineSignature } from "./webhook-utils.js"; -export interface MonitorLineProviderOptions { +interface MonitorLineProviderOptions { channelAccessToken: string; channelSecret: string; accountId?: string; @@ -57,7 +57,7 @@ export interface MonitorLineProviderOptions { webhookPath?: string; } -export interface LineProviderMonitor { +interface LineProviderMonitor { account: ResolvedLineAccount; handleWebhook: (body: webhook.CallbackRequest) => Promise; stop: () => void;