UNPKG

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

47 lines 2.22 kB
/** * Zalo Personal Profile & Account Management Service * 100% khớp với automation-web/src/module/zalo-profile/controllers/profile.controller.ts */ import { HttpClient } from '../../utils/http.utils'; import { AutomationWebResponse } from '../../types/common.types'; import { FetchAccountInfoRequest, FetchAccountInfoResponse, ChangeAccountAvatarRequest, ChangeAccountAvatarResponse, DeleteAvatarRequest, DeleteAvatarResponse, ReuseAvatarRequest, ReuseAvatarResponse, GetAvatarListRequest, GetAvatarListResponse, UpdateProfileRequest, UpdateProfileResponse } from '../../types/dto/profile.type'; /** * Zalo Personal Profile & Account Management Service Class * 100% khớp với automation-web ZaloProfileController * Bao gồm đầy đủ 6 methods: fetch-account-info, change-avatar, delete-avatar, reuse-avatar, avatar-list, update */ export declare class ProfileService { private httpClient; constructor(httpClient: HttpClient); /** * Lấy thông tin tài khoản * POST /zalo-personal/profile/fetch-account-info */ fetchAccountInfo(request: FetchAccountInfoRequest): Promise<AutomationWebResponse<FetchAccountInfoResponse>>; /** * Thay đổi avatar tài khoản * POST /zalo-personal/profile/change-avatar */ changeAccountAvatar(request: ChangeAccountAvatarRequest): Promise<AutomationWebResponse<ChangeAccountAvatarResponse>>; /** * Xóa avatar * POST /zalo-personal/profile/delete-avatar */ deleteAvatar(request: DeleteAvatarRequest): Promise<AutomationWebResponse<DeleteAvatarResponse>>; /** * Sử dụng lại avatar * POST /zalo-personal/profile/reuse-avatar */ reuseAvatar(request: ReuseAvatarRequest): Promise<AutomationWebResponse<ReuseAvatarResponse>>; /** * Lấy danh sách avatar * POST /zalo-personal/profile/avatar-list */ getAvatarList(request: GetAvatarListRequest): Promise<AutomationWebResponse<GetAvatarListResponse>>; /** * Cập nhật profile * POST /zalo-personal/profile/update */ updateProfile(request: UpdateProfileRequest): Promise<AutomationWebResponse<UpdateProfileResponse>>; } //# sourceMappingURL=profile.service.d.ts.map