diff --git a/extensions/googlechat/src/accounts.ts b/extensions/googlechat/src/accounts.ts index 1bccd00653f..b08fa6e6311 100644 --- a/extensions/googlechat/src/accounts.ts +++ b/extensions/googlechat/src/accounts.ts @@ -12,7 +12,7 @@ import { normalizeOptionalString } from "openclaw/plugin-sdk/text-runtime"; import { z } from "zod"; import type { GoogleChatAccountConfig } from "./types.config.js"; -export type GoogleChatCredentialSource = "file" | "inline" | "env" | "none"; +type GoogleChatCredentialSource = "file" | "inline" | "env" | "none"; export type ResolvedGoogleChatAccount = { accountId: string; @@ -38,7 +38,7 @@ const { } = createAccountListHelpers("googlechat"); export { listGoogleChatAccountIds, resolveDefaultGoogleChatAccountId }; -export function mergeGoogleChatAccountConfig( +function mergeGoogleChatAccountConfig( cfg: OpenClawConfig, accountId: string, ): GoogleChatAccountConfig { diff --git a/extensions/googlechat/src/monitor.ts b/extensions/googlechat/src/monitor.ts index aa66233e2e8..16f0f17db05 100644 --- a/extensions/googlechat/src/monitor.ts +++ b/extensions/googlechat/src/monitor.ts @@ -8,10 +8,9 @@ import { import { type ResolvedGoogleChatAccount } from "./accounts.js"; import { downloadGoogleChatMedia, sendGoogleChatMessage } from "./api.js"; import { type GoogleChatAudienceType } from "./auth.js"; -import { applyGoogleChatInboundAccessPolicy, isSenderAllowed } from "./monitor-access.js"; +import { applyGoogleChatInboundAccessPolicy } from "./monitor-access.js"; import { deliverGoogleChatReply } from "./monitor-reply-delivery.js"; import { - handleGoogleChatWebhookRequest, registerGoogleChatWebhookTarget, setGoogleChatWebhookEventProcessor, } from "./monitor-routing.js"; @@ -24,12 +23,6 @@ import type { import { warnAppPrincipalMisconfiguration } from "./monitor-webhook.js"; import { getGoogleChatRuntime } from "./runtime.js"; import type { GoogleChatAttachment, GoogleChatEvent } from "./types.js"; -export type { GoogleChatMonitorOptions, GoogleChatRuntimeEnv } from "./monitor-types.js"; -export { - handleGoogleChatWebhookRequest, - registerGoogleChatWebhookTarget, -} from "./monitor-routing.js"; -export { isSenderAllowed }; setGoogleChatWebhookEventProcessor(processGoogleChatEvent); @@ -376,7 +369,7 @@ async function downloadAttachment( return { path: saved.path, contentType: saved.contentType }; } -export function monitorGoogleChatProvider(options: GoogleChatMonitorOptions): () => void { +function monitorGoogleChatProvider(options: GoogleChatMonitorOptions): () => void { const core = getGoogleChatRuntime(); const webhookPath = resolveWebhookPath({ webhookPath: options.webhookPath, diff --git a/extensions/googlechat/src/types.ts b/extensions/googlechat/src/types.ts index 820c96425d4..0478fa38c92 100644 --- a/extensions/googlechat/src/types.ts +++ b/extensions/googlechat/src/types.ts @@ -11,12 +11,12 @@ export type GoogleChatUser = { type?: string; }; -export type GoogleChatThread = { +type GoogleChatThread = { name?: string; threadKey?: string; }; -export type GoogleChatAttachmentDataRef = { +type GoogleChatAttachmentDataRef = { resourceName?: string; attachmentUploadToken?: string; }; @@ -32,7 +32,7 @@ export type GoogleChatAttachment = { driveDataRef?: Record; }; -export type GoogleChatUserMention = { +type GoogleChatUserMention = { user?: GoogleChatUser; type?: string; };