Skip to content

Commit fc4626c

Browse files
authored
refactor(zalo): localize internal declarations (#102065)
1 parent c46e76c commit fc4626c

4 files changed

Lines changed: 10 additions & 10 deletions

File tree

extensions/zalo/src/api.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const ZALO_MEDIA_SSRF_POLICY: SsrFPolicy = {};
1313

1414
export type ZaloFetch = (input: string, init?: RequestInit) => Promise<Response>;
1515

16-
export type ZaloApiResponse<T = unknown> = {
16+
type ZaloApiResponse<T = unknown> = {
1717
ok: boolean;
1818
result?: T;
1919
error_code?: number;
@@ -57,34 +57,34 @@ export type ZaloUpdate = {
5757
message?: ZaloMessage;
5858
};
5959

60-
export type ZaloSendMessageParams = {
60+
type ZaloSendMessageParams = {
6161
chat_id: string;
6262
text: string;
6363
};
6464

65-
export type ZaloSendPhotoParams = {
65+
type ZaloSendPhotoParams = {
6666
chat_id: string;
6767
photo: string;
6868
caption?: string;
6969
};
7070

71-
export type ZaloSendChatActionParams = {
71+
type ZaloSendChatActionParams = {
7272
chat_id: string;
7373
action: "typing" | "upload_photo";
7474
};
7575

76-
export type ZaloSetWebhookParams = {
76+
type ZaloSetWebhookParams = {
7777
url: string;
7878
secret_token: string;
7979
};
8080

81-
export type ZaloWebhookInfo = {
81+
type ZaloWebhookInfo = {
8282
url?: string;
8383
updated_at?: number;
8484
has_custom_certificate?: boolean;
8585
};
8686

87-
export type ZaloGetUpdatesParams = {
87+
type ZaloGetUpdatesParams = {
8888
/** Timeout in seconds (passed as string to API) */
8989
timeout?: number;
9090
};

extensions/zalo/src/monitor-durable.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import type { MarkdownTableMode } from "openclaw/plugin-sdk/config-contracts";
33
import { resolveSendableOutboundReplyParts } from "openclaw/plugin-sdk/reply-payload";
44
import type { OutboundReplyPayload } from "openclaw/plugin-sdk/reply-payload";
55

6-
export type ZaloDurableReplyOptions = {
6+
type ZaloDurableReplyOptions = {
77
to: string;
88
};
99

extensions/zalo/src/monitor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ import {
4949
tryHandleHostedZaloMediaRequest,
5050
} from "./outbound-media.js";
5151

52-
export type ZaloMonitorOptions = {
52+
type ZaloMonitorOptions = {
5353
token: string;
5454
account: ResolvedZaloAccount;
5555
config: OpenClawConfig;

extensions/zalo/src/monitor.webhook.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import {
2424

2525
const ZALO_WEBHOOK_REPLAY_WINDOW_MS = 5 * 60_000;
2626

27-
export type ZaloWebhookTarget = {
27+
type ZaloWebhookTarget = {
2828
token: string;
2929
account: ResolvedZaloAccount;
3030
config: OpenClawConfig;

0 commit comments

Comments
 (0)