diff --git a/extensions/matrix/src/approval-reactions.ts b/extensions/matrix/src/approval-reactions.ts index 03b8c68cfeb..0a8c442c234 100644 --- a/extensions/matrix/src/approval-reactions.ts +++ b/extensions/matrix/src/approval-reactions.ts @@ -21,13 +21,13 @@ const MATRIX_APPROVAL_REACTION_ORDER = [ "deny", ] as const satisfies readonly ExecApprovalReplyDecision[]; -export type MatrixApprovalReactionBinding = { +type MatrixApprovalReactionBinding = { decision: ExecApprovalReplyDecision; emoji: string; label: string; }; -export type MatrixApprovalReactionResolution = { +type MatrixApprovalReactionResolution = { approvalId: string; decision: ExecApprovalReplyDecision; }; @@ -71,7 +71,7 @@ export function buildMatrixApprovalReactionHint( return `React here: ${bindings.map((binding) => `${binding.emoji} ${binding.label}`).join(", ")}`; } -export function resolveMatrixApprovalReactionDecision( +function resolveMatrixApprovalReactionDecision( reactionKey: string, allowedDecisions: readonly ExecApprovalReplyDecision[], ): ExecApprovalReplyDecision | null { diff --git a/extensions/matrix/src/migration-config.ts b/extensions/matrix/src/migration-config.ts index 07bbe79d924..b0d5abd5dab 100644 --- a/extensions/matrix/src/migration-config.ts +++ b/extensions/matrix/src/migration-config.ts @@ -18,14 +18,14 @@ import { } from "./matrix/client/env-auth.js"; import { resolveMatrixAccountStorageRoot, resolveMatrixCredentialsPath } from "./storage-paths.js"; -export type MatrixStoredCredentials = { +type MatrixStoredCredentials = { homeserver: string; userId: string; accessToken: string; deviceId?: string; }; -export type MatrixMigrationAccountTarget = { +type MatrixMigrationAccountTarget = { accountId: string; homeserver: string; userId: string; @@ -34,7 +34,7 @@ export type MatrixMigrationAccountTarget = { storedDeviceId: string | null; }; -export type MatrixLegacyFlatStoreTarget = MatrixMigrationAccountTarget & { +type MatrixLegacyFlatStoreTarget = MatrixMigrationAccountTarget & { selectionNote?: string; }; @@ -64,7 +64,7 @@ function resolveMatrixFlatStoreSelectionNote( ); } -export function resolveMatrixMigrationConfigFields(params: { +function resolveMatrixMigrationConfigFields(params: { cfg: OpenClawConfig; env: NodeJS.ProcessEnv; accountId: string; @@ -101,7 +101,7 @@ export function resolveMatrixMigrationConfigFields(params: { }; } -export function loadStoredMatrixCredentials( +function loadStoredMatrixCredentials( env: NodeJS.ProcessEnv, accountId: string, ): MatrixStoredCredentials | null { @@ -135,7 +135,7 @@ export function loadStoredMatrixCredentials( } } -export function credentialsMatchResolvedIdentity( +function credentialsMatchResolvedIdentity( stored: MatrixStoredCredentials | null, identity: { homeserver: string;