redai-automation-web-sdk
Version:
TypeScript SDK for RedAI Automation Web API - Zalo Personal automation, messaging, advanced sticker search, and bulk operations. 100% compatible with automation-web backend. v1.8.1: Updated GroupInfo interface to match backend controller with complete gro
111 lines • 2.67 kB
TypeScript
/**
* DTO để lấy thông tin user theo ID
*/
export interface GetUserInfoRequest {
sessionId: string;
userId: string | string[];
}
/**
* DTO để lấy thông tin user đơn lẻ
*/
export interface GetSingleUserInfoRequest {
sessionId: string;
userId: string;
}
/**
* DTO để lấy thông tin cơ bản của user
*/
export interface GetBasicUserInfoRequest {
sessionId: string;
userId: string;
}
/**
* DTO để kiểm tra user có tồn tại không
*/
export interface CheckUserExistsRequest {
sessionId: string;
userId: string;
}
/**
* DTO để lấy thông tin nhiều users
*/
export interface GetMultipleUsersInfoRequest {
sessionId: string;
userIds: string[];
}
/**
* User Profile DTO - thông tin chi tiết của user
*/
export interface UserProfile {
userId: string;
username: string;
displayName: string;
zaloName: string;
avatar: string;
bgavatar: string;
cover: string;
gender: number;
dob: number;
sdob: string;
status: string;
phoneNumber?: string;
isFr: number;
isBlocked: number;
lastActionTime: number;
lastUpdateTime: number;
isActive: number;
key: number;
type: number;
isActivePC: number;
isActiveWeb: number;
isValid: number;
userKey: string;
accountStatus: number;
oaInfo?: any;
user_mode: number;
globalId: string;
bizPkg?: {
label: any;
pkgId: number;
};
createdTs: number;
oa_status?: any;
}
/**
* Response DTO cho getUserInfo
*/
export interface GetUserInfoResponse {
unchanged_profiles: Record<string, any>;
phonebook_version: number;
changed_profiles: Record<string, UserProfile>;
totalUsers: number;
profiles: UserProfile[];
}
/**
* Response DTO cho getSingleUserInfo - khớp với controller
* Controller trả về: UserProfileDto | null
*/
export type GetSingleUserInfoResponse = UserProfile | null;
/**
* Response DTO cho getBasicUserInfo - khớp với controller
* Controller trả về: {displayName: string, avatar: string, userId: string} | null
*/
export type GetBasicUserInfoResponse = {
displayName: string;
avatar: string;
userId: string;
} | null;
/**
* Response DTO cho checkUserExists - khớp với controller
* Controller trả về: {exists: boolean, userId: string}
*/
export interface CheckUserExistsResponse {
exists: boolean;
userId: string;
}
/**
* Response DTO cho getMultipleUsersInfo - khớp với controller
* Controller trả về: UserProfileDto[]
*/
export type GetMultipleUsersInfoResponse = UserProfile[];
//# sourceMappingURL=user-info.type.d.ts.map