refactor(zalo): localize internal declarations (#102065)

This commit is contained in:
Vincent Koc
2026-07-07 23:31:03 -07:00
committed by GitHub
parent c46e76cff7
commit fc4626c122
4 changed files with 10 additions and 10 deletions
+7 -7
View File
@@ -13,7 +13,7 @@ const ZALO_MEDIA_SSRF_POLICY: SsrFPolicy = {};
export type ZaloFetch = (input: string, init?: RequestInit) => Promise<Response>;
export type ZaloApiResponse<T = unknown> = {
type ZaloApiResponse<T = unknown> = {
ok: boolean;
result?: T;
error_code?: number;
@@ -57,34 +57,34 @@ export type ZaloUpdate = {
message?: ZaloMessage;
};
export type ZaloSendMessageParams = {
type ZaloSendMessageParams = {
chat_id: string;
text: string;
};
export type ZaloSendPhotoParams = {
type ZaloSendPhotoParams = {
chat_id: string;
photo: string;
caption?: string;
};
export type ZaloSendChatActionParams = {
type ZaloSendChatActionParams = {
chat_id: string;
action: "typing" | "upload_photo";
};
export type ZaloSetWebhookParams = {
type ZaloSetWebhookParams = {
url: string;
secret_token: string;
};
export type ZaloWebhookInfo = {
type ZaloWebhookInfo = {
url?: string;
updated_at?: number;
has_custom_certificate?: boolean;
};
export type ZaloGetUpdatesParams = {
type ZaloGetUpdatesParams = {
/** Timeout in seconds (passed as string to API) */
timeout?: number;
};
+1 -1
View File
@@ -3,7 +3,7 @@ import type { MarkdownTableMode } from "openclaw/plugin-sdk/config-contracts";
import { resolveSendableOutboundReplyParts } from "openclaw/plugin-sdk/reply-payload";
import type { OutboundReplyPayload } from "openclaw/plugin-sdk/reply-payload";
export type ZaloDurableReplyOptions = {
type ZaloDurableReplyOptions = {
to: string;
};
+1 -1
View File
@@ -49,7 +49,7 @@ import {
tryHandleHostedZaloMediaRequest,
} from "./outbound-media.js";
export type ZaloMonitorOptions = {
type ZaloMonitorOptions = {
token: string;
account: ResolvedZaloAccount;
config: OpenClawConfig;
+1 -1
View File
@@ -24,7 +24,7 @@ import {
const ZALO_WEBHOOK_REPLAY_WINDOW_MS = 5 * 60_000;
export type ZaloWebhookTarget = {
type ZaloWebhookTarget = {
token: string;
account: ResolvedZaloAccount;
config: OpenClawConfig;