Skip to content

Commit eb5d8f8

Browse files
authored
refactor(mattermost): localize internal declarations (#102040)
1 parent 6319275 commit eb5d8f8

8 files changed

Lines changed: 10 additions & 10 deletions

File tree

extensions/mattermost/src/mattermost/client.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export const MattermostPostSchema = z
7070

7171
export type MattermostPost = z.infer<typeof MattermostPostSchema>;
7272

73-
export type MattermostFileInfo = {
73+
type MattermostFileInfo = {
7474
id: string;
7575
name?: string | null;
7676
mime_type?: string | null;
@@ -615,7 +615,7 @@ export async function createMattermostPost(
615615
});
616616
}
617617

618-
export type MattermostTeam = {
618+
type MattermostTeam = {
619619
id: string;
620620
name?: string | null;
621621
display_name?: string | null;

extensions/mattermost/src/mattermost/directory.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import {
1111
} from "./client.js";
1212
import type { ChannelDirectoryEntry, OpenClawConfig, RuntimeEnv } from "./runtime-api.js";
1313

14-
export type MattermostDirectoryParams = {
14+
type MattermostDirectoryParams = {
1515
cfg: OpenClawConfig;
1616
accountId?: string | null;
1717
query?: string | null;

extensions/mattermost/src/mattermost/monitor-auth.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ function mapMattermostChannelKind(channelType?: string | null): "direct" | "grou
104104
return "channel";
105105
}
106106

107-
export type MattermostCommandAuthDecision =
107+
type MattermostCommandAuthDecision =
108108
| {
109109
ok: true;
110110
commandAuthorized: boolean;

extensions/mattermost/src/mattermost/monitor-resources.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import {
1616
} from "./client.js";
1717
import { buildButtonProps, type MattermostInteractionResponse } from "./interactions.js";
1818

19-
export type MattermostMediaKind = "image" | "audio" | "video" | "document" | "unknown";
19+
type MattermostMediaKind = "image" | "audio" | "video" | "document" | "unknown";
2020

2121
export type MattermostMediaInfo = {
2222
path: string;

extensions/mattermost/src/mattermost/monitor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ export type {
135135
MattermostRequireMentionResolverInput,
136136
} from "./monitor-gating.js";
137137

138-
export type MonitorMattermostOpts = {
138+
type MonitorMattermostOpts = {
139139
botToken?: string;
140140
baseUrl?: string;
141141
accountId?: string;

extensions/mattermost/src/mattermost/no-visible-reply-diagnostic.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { countOutboundMedia } from "openclaw/plugin-sdk/reply-payload";
33
import type { ReplyPayload } from "openclaw/plugin-sdk/reply-runtime";
44
import type { MattermostReplyDeliveryOutcome } from "./reply-delivery.js";
55

6-
export type MattermostNoVisibleReplyViolation = {
6+
type MattermostNoVisibleReplyViolation = {
77
reason: "no-visible-reply-after-final-delivery";
88
outcome: MattermostReplyDeliveryOutcome;
99
finalTextLength: number;

extensions/mattermost/src/mattermost/send.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ import {
3535
import { loadOutboundMediaFromUrl, type OpenClawConfig } from "./runtime-api.js";
3636
import { isMattermostId, resolveMattermostOpaqueTarget } from "./target-resolution.js";
3737

38-
export type MattermostSendOpts = {
38+
type MattermostSendOpts = {
3939
cfg: OpenClawConfig;
4040
botToken?: string;
4141
baseUrl?: string;
@@ -56,7 +56,7 @@ export type MattermostSendOpts = {
5656
onDmChannelResolution?: (resolution: PromiseLike<unknown>) => void;
5757
};
5858

59-
export type MattermostSendResult = {
59+
type MattermostSendResult = {
6060
messageId: string;
6161
channelId: string;
6262
receipt: MessageReceipt;

extensions/mattermost/src/mattermost/target-resolution.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {
99
} from "./client.js";
1010
import type { OpenClawConfig } from "./runtime-api.js";
1111

12-
export type MattermostOpaqueTargetResolution = {
12+
type MattermostOpaqueTargetResolution = {
1313
kind: "user" | "channel";
1414
id: string;
1515
to: string;

0 commit comments

Comments
 (0)