n8n-nodes-zalo-nnt
Version:
Unofficial Zalo integration for n8n - Send messages, manage groups, user operations with QR login. No API key required, works via browser simulation.
67 lines (66 loc) • 1.46 kB
TypeScript
import { IDataObject } from 'n8n-workflow';
export declare enum ThreadType {
User = 0,
Group = 1
}
export declare enum MuteDuration {
Unmute = 0,
OneHour = 1,
FourHours = 2,
EightHours = 3,
OneDay = 4,
Forever = -1
}
export interface SetHiddenConversationParams {
threadId: string;
threadType: ThreadType;
isHidden: boolean;
pin?: string;
}
export interface GetHiddenConversationsParams {
pin: string;
}
export interface UpdateHiddenConversPinParams {
threadId: string;
pin: string;
}
export interface ResetHiddenConversPinParams {
oldPin: string;
newPin: string;
}
export interface UnreadMarkParams {
threadId: string;
threadType: ThreadType;
}
export interface GetArchivedChatListParams {
offset?: number;
count?: number;
}
export interface SetPinnedConversationsParams {
threadIds: string;
threadType: ThreadType;
isPinned: boolean;
}
export interface AutoDeleteChatParams {
threadId: string;
threadType: ThreadType;
ttl?: number;
}
export interface DeleteChatParams {
threadId: string;
threadType: ThreadType;
}
export interface SetMuteParams {
threadId: string;
threadType: ThreadType;
duration: MuteDuration;
}
export interface GetMuteParams {
threadId: string;
threadType: ThreadType;
}
export interface ConversationOperationResult extends IDataObject {
status?: string;
message?: string;
response?: any;
}