mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-26 20:35:39 -06:00
refactor(zalo): localize internal declarations (#102065)
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
@@ -49,7 +49,7 @@ import {
|
||||
tryHandleHostedZaloMediaRequest,
|
||||
} from "./outbound-media.js";
|
||||
|
||||
export type ZaloMonitorOptions = {
|
||||
type ZaloMonitorOptions = {
|
||||
token: string;
|
||||
account: ResolvedZaloAccount;
|
||||
config: OpenClawConfig;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user