redai-automation-web-sdk 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (190) hide show
  1. package/README.md +715 -0
  2. package/dist/client/AutomationWebClient.d.ts +188 -0
  3. package/dist/client/AutomationWebClient.d.ts.map +1 -0
  4. package/dist/client/AutomationWebClient.js +370 -0
  5. package/dist/client/AutomationWebClient.js.map +1 -0
  6. package/dist/client/index.d.ts +5 -0
  7. package/dist/client/index.d.ts.map +1 -0
  8. package/dist/client/index.js +21 -0
  9. package/dist/client/index.js.map +1 -0
  10. package/dist/index.d.ts +20 -0
  11. package/dist/index.d.ts.map +1 -0
  12. package/dist/index.js +86 -0
  13. package/dist/index.js.map +1 -0
  14. package/dist/services/auth/auth.service.d.ts +78 -0
  15. package/dist/services/auth/auth.service.d.ts.map +1 -0
  16. package/dist/services/auth/auth.service.js +227 -0
  17. package/dist/services/auth/auth.service.js.map +1 -0
  18. package/dist/services/auth/index.d.ts +5 -0
  19. package/dist/services/auth/index.d.ts.map +1 -0
  20. package/dist/services/auth/index.js +21 -0
  21. package/dist/services/auth/index.js.map +1 -0
  22. package/dist/services/bulk/bulk.service.d.ts +201 -0
  23. package/dist/services/bulk/bulk.service.d.ts.map +1 -0
  24. package/dist/services/bulk/bulk.service.js +114 -0
  25. package/dist/services/bulk/bulk.service.js.map +1 -0
  26. package/dist/services/bulk/index.d.ts +5 -0
  27. package/dist/services/bulk/index.d.ts.map +1 -0
  28. package/dist/services/bulk/index.js +21 -0
  29. package/dist/services/bulk/index.js.map +1 -0
  30. package/dist/services/conversations/conversations.service.d.ts +187 -0
  31. package/dist/services/conversations/conversations.service.d.ts.map +1 -0
  32. package/dist/services/conversations/conversations.service.js +119 -0
  33. package/dist/services/conversations/conversations.service.js.map +1 -0
  34. package/dist/services/conversations/index.d.ts +6 -0
  35. package/dist/services/conversations/index.d.ts.map +1 -0
  36. package/dist/services/conversations/index.js +13 -0
  37. package/dist/services/conversations/index.js.map +1 -0
  38. package/dist/services/friends/friends.service.d.ts +499 -0
  39. package/dist/services/friends/friends.service.d.ts.map +1 -0
  40. package/dist/services/friends/friends.service.js +288 -0
  41. package/dist/services/friends/friends.service.js.map +1 -0
  42. package/dist/services/friends/index.d.ts +6 -0
  43. package/dist/services/friends/index.d.ts.map +1 -0
  44. package/dist/services/friends/index.js +10 -0
  45. package/dist/services/friends/index.js.map +1 -0
  46. package/dist/services/groups/groups.service.d.ts +366 -0
  47. package/dist/services/groups/groups.service.d.ts.map +1 -0
  48. package/dist/services/groups/groups.service.js +250 -0
  49. package/dist/services/groups/groups.service.js.map +1 -0
  50. package/dist/services/groups/index.d.ts +6 -0
  51. package/dist/services/groups/index.d.ts.map +1 -0
  52. package/dist/services/groups/index.js +10 -0
  53. package/dist/services/groups/index.js.map +1 -0
  54. package/dist/services/messaging/index.d.ts +6 -0
  55. package/dist/services/messaging/index.d.ts.map +1 -0
  56. package/dist/services/messaging/index.js +10 -0
  57. package/dist/services/messaging/index.js.map +1 -0
  58. package/dist/services/messaging/messaging.service.d.ts +186 -0
  59. package/dist/services/messaging/messaging.service.d.ts.map +1 -0
  60. package/dist/services/messaging/messaging.service.js +212 -0
  61. package/dist/services/messaging/messaging.service.js.map +1 -0
  62. package/dist/services/user-info/index.d.ts +6 -0
  63. package/dist/services/user-info/index.d.ts.map +1 -0
  64. package/dist/services/user-info/index.js +10 -0
  65. package/dist/services/user-info/index.js.map +1 -0
  66. package/dist/services/user-info/user-info.service.d.ts +168 -0
  67. package/dist/services/user-info/user-info.service.d.ts.map +1 -0
  68. package/dist/services/user-info/user-info.service.js +85 -0
  69. package/dist/services/user-info/user-info.service.js.map +1 -0
  70. package/dist/services/webhook/index.d.ts +6 -0
  71. package/dist/services/webhook/index.d.ts.map +1 -0
  72. package/dist/services/webhook/index.js +10 -0
  73. package/dist/services/webhook/index.js.map +1 -0
  74. package/dist/services/webhook/webhook.service.d.ts +303 -0
  75. package/dist/services/webhook/webhook.service.d.ts.map +1 -0
  76. package/dist/services/webhook/webhook.service.js +133 -0
  77. package/dist/services/webhook/webhook.service.js.map +1 -0
  78. package/dist/types/auth.types.d.ts +384 -0
  79. package/dist/types/auth.types.d.ts.map +1 -0
  80. package/dist/types/auth.types.js +28 -0
  81. package/dist/types/auth.types.js.map +1 -0
  82. package/dist/types/bulk.types.d.ts +553 -0
  83. package/dist/types/bulk.types.d.ts.map +1 -0
  84. package/dist/types/bulk.types.js +31 -0
  85. package/dist/types/bulk.types.js.map +1 -0
  86. package/dist/types/common.types.d.ts +301 -0
  87. package/dist/types/common.types.d.ts.map +1 -0
  88. package/dist/types/common.types.js +58 -0
  89. package/dist/types/common.types.js.map +1 -0
  90. package/dist/types/friends.types.d.ts +566 -0
  91. package/dist/types/friends.types.d.ts.map +1 -0
  92. package/dist/types/friends.types.js +39 -0
  93. package/dist/types/friends.types.js.map +1 -0
  94. package/dist/types/index.d.ts +12 -0
  95. package/dist/types/index.d.ts.map +1 -0
  96. package/dist/types/index.js +38 -0
  97. package/dist/types/index.js.map +1 -0
  98. package/dist/types/job/event-job.types.d.ts +147 -0
  99. package/dist/types/job/event-job.types.d.ts.map +1 -0
  100. package/dist/types/job/event-job.types.js +7 -0
  101. package/dist/types/job/event-job.types.js.map +1 -0
  102. package/dist/types/job/friend-group-job.types.d.ts +183 -0
  103. package/dist/types/job/friend-group-job.types.d.ts.map +1 -0
  104. package/dist/types/job/friend-group-job.types.js +7 -0
  105. package/dist/types/job/friend-group-job.types.js.map +1 -0
  106. package/dist/types/job/index.d.ts +88 -0
  107. package/dist/types/job/index.d.ts.map +1 -0
  108. package/dist/types/job/index.js +260 -0
  109. package/dist/types/job/index.js.map +1 -0
  110. package/dist/types/job/message-job.types.d.ts +181 -0
  111. package/dist/types/job/message-job.types.d.ts.map +1 -0
  112. package/dist/types/job/message-job.types.js +7 -0
  113. package/dist/types/job/message-job.types.js.map +1 -0
  114. package/dist/types/job/system-job.types.d.ts +235 -0
  115. package/dist/types/job/system-job.types.d.ts.map +1 -0
  116. package/dist/types/job/system-job.types.js +7 -0
  117. package/dist/types/job/system-job.types.js.map +1 -0
  118. package/dist/types/job/webhook-job.types.d.ts +219 -0
  119. package/dist/types/job/webhook-job.types.d.ts.map +1 -0
  120. package/dist/types/job/webhook-job.types.js +202 -0
  121. package/dist/types/job/webhook-job.types.js.map +1 -0
  122. package/dist/types/messaging.types.d.ts +565 -0
  123. package/dist/types/messaging.types.d.ts.map +1 -0
  124. package/dist/types/messaging.types.js +34 -0
  125. package/dist/types/messaging.types.js.map +1 -0
  126. package/dist/types/webhook/delivered-message.d.ts +47 -0
  127. package/dist/types/webhook/delivered-message.d.ts.map +1 -0
  128. package/dist/types/webhook/delivered-message.js +34 -0
  129. package/dist/types/webhook/delivered-message.js.map +1 -0
  130. package/dist/types/webhook/enums.d.ts +149 -0
  131. package/dist/types/webhook/enums.d.ts.map +1 -0
  132. package/dist/types/webhook/enums.js +160 -0
  133. package/dist/types/webhook/enums.js.map +1 -0
  134. package/dist/types/webhook/friend-event.d.ts +134 -0
  135. package/dist/types/webhook/friend-event.d.ts.map +1 -0
  136. package/dist/types/webhook/friend-event.js +79 -0
  137. package/dist/types/webhook/friend-event.js.map +1 -0
  138. package/dist/types/webhook/group-event.d.ts +223 -0
  139. package/dist/types/webhook/group-event.d.ts.map +1 -0
  140. package/dist/types/webhook/group-event.js +69 -0
  141. package/dist/types/webhook/group-event.js.map +1 -0
  142. package/dist/types/webhook/index.d.ts +25 -0
  143. package/dist/types/webhook/index.d.ts.map +1 -0
  144. package/dist/types/webhook/index.js +46 -0
  145. package/dist/types/webhook/index.js.map +1 -0
  146. package/dist/types/webhook/message.d.ts +123 -0
  147. package/dist/types/webhook/message.d.ts.map +1 -0
  148. package/dist/types/webhook/message.js +39 -0
  149. package/dist/types/webhook/message.js.map +1 -0
  150. package/dist/types/webhook/reaction.d.ts +40 -0
  151. package/dist/types/webhook/reaction.d.ts.map +1 -0
  152. package/dist/types/webhook/reaction.js +24 -0
  153. package/dist/types/webhook/reaction.js.map +1 -0
  154. package/dist/types/webhook/seen-message.d.ts +46 -0
  155. package/dist/types/webhook/seen-message.d.ts.map +1 -0
  156. package/dist/types/webhook/seen-message.js +34 -0
  157. package/dist/types/webhook/seen-message.js.map +1 -0
  158. package/dist/types/webhook/typing.d.ts +44 -0
  159. package/dist/types/webhook/typing.d.ts.map +1 -0
  160. package/dist/types/webhook/typing.js +35 -0
  161. package/dist/types/webhook/typing.js.map +1 -0
  162. package/dist/types/webhook/undo.d.ts +48 -0
  163. package/dist/types/webhook/undo.d.ts.map +1 -0
  164. package/dist/types/webhook/undo.js +24 -0
  165. package/dist/types/webhook/undo.js.map +1 -0
  166. package/dist/types/webhook.types.d.ts +451 -0
  167. package/dist/types/webhook.types.d.ts.map +1 -0
  168. package/dist/types/webhook.types.js +223 -0
  169. package/dist/types/webhook.types.js.map +1 -0
  170. package/dist/utils/event.utils.d.ts +119 -0
  171. package/dist/utils/event.utils.d.ts.map +1 -0
  172. package/dist/utils/event.utils.js +306 -0
  173. package/dist/utils/event.utils.js.map +1 -0
  174. package/dist/utils/format.utils.d.ts +128 -0
  175. package/dist/utils/format.utils.d.ts.map +1 -0
  176. package/dist/utils/format.utils.js +312 -0
  177. package/dist/utils/format.utils.js.map +1 -0
  178. package/dist/utils/http.utils.d.ts +111 -0
  179. package/dist/utils/http.utils.d.ts.map +1 -0
  180. package/dist/utils/http.utils.js +336 -0
  181. package/dist/utils/http.utils.js.map +1 -0
  182. package/dist/utils/index.d.ts +8 -0
  183. package/dist/utils/index.d.ts.map +1 -0
  184. package/dist/utils/index.js +24 -0
  185. package/dist/utils/index.js.map +1 -0
  186. package/dist/utils/validation.utils.d.ts +118 -0
  187. package/dist/utils/validation.utils.d.ts.map +1 -0
  188. package/dist/utils/validation.utils.js +326 -0
  189. package/dist/utils/validation.utils.js.map +1 -0
  190. package/package.json +88 -0
@@ -0,0 +1,499 @@
1
+ /**
2
+ * Zalo Personal Friend Management Service
3
+ * 100% khớp với automation-web/src/module/zalo-friend
4
+ * Đã hợp nhất DTOs và Service class trong 1 file duy nhất
5
+ */
6
+ import { HttpClient } from '../../utils/http.utils';
7
+ import { AutomationWebResponse } from '../../types/common.types';
8
+ /**
9
+ * DTO để lấy tất cả friends
10
+ */
11
+ export interface GetAllFriendsRequest {
12
+ sessionId: string;
13
+ }
14
+ /**
15
+ * DTO để tìm kiếm friends
16
+ */
17
+ export interface SearchFriendsRequest {
18
+ sessionId: string;
19
+ keyword: string;
20
+ }
21
+ /**
22
+ * DTO để lấy thông tin chi tiết friends
23
+ */
24
+ export interface GetFriendsInfoRequest {
25
+ sessionId: string;
26
+ friendIds: string[];
27
+ }
28
+ /**
29
+ * DTO để lấy friends đang online
30
+ */
31
+ export interface GetOnlineFriendsRequest {
32
+ sessionId: string;
33
+ limit?: number;
34
+ }
35
+ /**
36
+ * DTO để lấy thống kê friends
37
+ */
38
+ export interface GetFriendsStatsRequest {
39
+ sessionId: string;
40
+ }
41
+ /**
42
+ * DTO để gửi lời mời kết bạn
43
+ */
44
+ export interface SendFriendRequestRequest {
45
+ sessionId: string;
46
+ userId: string;
47
+ message?: string;
48
+ }
49
+ /**
50
+ * DTO để chấp nhận lời mời kết bạn
51
+ */
52
+ export interface AcceptFriendRequestRequest {
53
+ sessionId: string;
54
+ userId: string;
55
+ }
56
+ /**
57
+ * DTO để lấy danh sách lời mời nhận được
58
+ */
59
+ export interface GetReceivedFriendRequestsRequest {
60
+ sessionId: string;
61
+ }
62
+ /**
63
+ * DTO để lấy danh sách lời mời đã gửi
64
+ */
65
+ export interface GetSentFriendRequestsRequest {
66
+ sessionId: string;
67
+ }
68
+ /**
69
+ * DTO để hủy lời mời đã gửi
70
+ */
71
+ export interface UndoFriendRequestRequest {
72
+ sessionId: string;
73
+ userId: string;
74
+ }
75
+ /**
76
+ * DTO để xóa bạn bè
77
+ */
78
+ export interface RemoveFriendRequest {
79
+ sessionId: string;
80
+ friendId: string;
81
+ }
82
+ /**
83
+ * DTO để tìm kiếm user theo số điện thoại
84
+ */
85
+ export interface FindUserRequest {
86
+ sessionId: string;
87
+ phoneNumbers: string[];
88
+ }
89
+ /**
90
+ * DTO để chặn user
91
+ */
92
+ export interface BlockUserRequest {
93
+ sessionId: string;
94
+ userId: string;
95
+ }
96
+ /**
97
+ * DTO để bỏ chặn user
98
+ */
99
+ export interface UnblockUserRequest {
100
+ sessionId: string;
101
+ userId: string;
102
+ }
103
+ /**
104
+ * DTO để thay đổi biệt danh friend
105
+ */
106
+ export interface ChangeFriendAliasRequest {
107
+ sessionId: string;
108
+ friendId: string;
109
+ alias: string;
110
+ }
111
+ /**
112
+ * DTO để xóa biệt danh friend
113
+ */
114
+ export interface RemoveFriendAliasRequest {
115
+ sessionId: string;
116
+ friendId: string;
117
+ }
118
+ /**
119
+ * DTO để lấy danh sách biệt danh
120
+ */
121
+ export interface GetAliasListRequest {
122
+ sessionId: string;
123
+ page?: number;
124
+ count?: number;
125
+ }
126
+ /**
127
+ * DTO để lấy thông tin last online
128
+ */
129
+ export interface GetLastOnlineRequest {
130
+ sessionId: string;
131
+ userId: string;
132
+ }
133
+ /**
134
+ * DTO để lấy ID của chính mình
135
+ */
136
+ export interface GetOwnIdRequest {
137
+ sessionId: string;
138
+ }
139
+ /**
140
+ * DTO để lấy thông tin tài khoản
141
+ */
142
+ export interface FetchAccountInfoRequest {
143
+ sessionId: string;
144
+ }
145
+ /**
146
+ * Friend DTO - thông tin cơ bản của friend
147
+ */
148
+ export interface FriendInfo {
149
+ userId: string;
150
+ displayName: string;
151
+ avatar: string;
152
+ status: string;
153
+ phoneNumber?: string;
154
+ isFriend?: boolean;
155
+ friendSince?: number;
156
+ }
157
+ /**
158
+ * Response DTO cho getAllFriends
159
+ */
160
+ export interface GetAllFriendsResponse {
161
+ friends: FriendInfo[];
162
+ total: number;
163
+ success: boolean;
164
+ timestamp: number;
165
+ }
166
+ /**
167
+ * Response DTO cho searchFriends
168
+ */
169
+ export interface SearchFriendsResponse {
170
+ friends: FriendInfo[];
171
+ total: number;
172
+ keyword: string;
173
+ success: boolean;
174
+ timestamp: number;
175
+ }
176
+ /**
177
+ * Response DTO cho getFriendsInfo
178
+ */
179
+ export interface GetFriendsInfoResponse {
180
+ friends: FriendInfo[];
181
+ success: boolean;
182
+ timestamp: number;
183
+ }
184
+ /**
185
+ * Response DTO cho getOnlineFriends
186
+ */
187
+ export interface GetOnlineFriendsResponse {
188
+ onlineFriends: FriendInfo[];
189
+ total: number;
190
+ success: boolean;
191
+ timestamp: number;
192
+ }
193
+ /**
194
+ * Response DTO cho getFriendsStats
195
+ */
196
+ export interface GetFriendsStatsResponse {
197
+ totalFriends: number;
198
+ onlineFriends: number;
199
+ offlineFriends: number;
200
+ blockedUsers: number;
201
+ pendingRequests: number;
202
+ sentRequests: number;
203
+ success: boolean;
204
+ timestamp: number;
205
+ }
206
+ /**
207
+ * Friend Request DTO
208
+ */
209
+ export interface FriendRequestInfo {
210
+ userId: string;
211
+ displayName: string;
212
+ avatar: string;
213
+ message?: string;
214
+ timestamp: number;
215
+ }
216
+ /**
217
+ * Response DTO cho sendFriendRequest
218
+ */
219
+ export interface SendFriendRequestResponse {
220
+ userId: string;
221
+ success: boolean;
222
+ message: string;
223
+ timestamp: number;
224
+ }
225
+ /**
226
+ * Response DTO cho acceptFriendRequest
227
+ */
228
+ export interface AcceptFriendRequestResponse {
229
+ userId: string;
230
+ success: boolean;
231
+ message: string;
232
+ timestamp: number;
233
+ }
234
+ /**
235
+ * Response DTO cho getReceivedFriendRequests
236
+ */
237
+ export interface GetReceivedFriendRequestsResponse {
238
+ requests: FriendRequestInfo[];
239
+ total: number;
240
+ success: boolean;
241
+ timestamp: number;
242
+ }
243
+ /**
244
+ * Response DTO cho getSentFriendRequests
245
+ */
246
+ export interface GetSentFriendRequestsResponse {
247
+ requests: FriendRequestInfo[];
248
+ total: number;
249
+ success: boolean;
250
+ timestamp: number;
251
+ }
252
+ /**
253
+ * Response DTO cho undoFriendRequest
254
+ */
255
+ export interface UndoFriendRequestResponse {
256
+ userId: string;
257
+ success: boolean;
258
+ message: string;
259
+ timestamp: number;
260
+ }
261
+ /**
262
+ * Response DTO cho removeFriend
263
+ */
264
+ export interface RemoveFriendResponse {
265
+ friendId: string;
266
+ success: boolean;
267
+ message: string;
268
+ timestamp: number;
269
+ }
270
+ /**
271
+ * User search result DTO
272
+ */
273
+ export interface UserSearchResult {
274
+ userId: string;
275
+ displayName: string;
276
+ avatar: string;
277
+ phoneNumber: string;
278
+ isFriend: boolean;
279
+ isBlocked: boolean;
280
+ }
281
+ /**
282
+ * Response DTO cho findUser
283
+ */
284
+ export interface FindUserResponse {
285
+ results: UserSearchResult[];
286
+ total: number;
287
+ success: boolean;
288
+ timestamp: number;
289
+ }
290
+ /**
291
+ * Response DTO cho blockUser
292
+ */
293
+ export interface BlockUserResponse {
294
+ userId: string;
295
+ success: boolean;
296
+ message: string;
297
+ timestamp: number;
298
+ }
299
+ /**
300
+ * Response DTO cho unblockUser
301
+ */
302
+ export interface UnblockUserResponse {
303
+ userId: string;
304
+ success: boolean;
305
+ message: string;
306
+ timestamp: number;
307
+ }
308
+ /**
309
+ * Alias info DTO
310
+ */
311
+ export interface AliasInfo {
312
+ userId: string;
313
+ displayName: string;
314
+ alias: string;
315
+ createdAt: number;
316
+ }
317
+ /**
318
+ * Response DTO cho changeFriendAlias
319
+ */
320
+ export interface ChangeFriendAliasResponse {
321
+ friendId: string;
322
+ alias: string;
323
+ success: boolean;
324
+ message: string;
325
+ timestamp: number;
326
+ }
327
+ /**
328
+ * Response DTO cho removeFriendAlias
329
+ */
330
+ export interface RemoveFriendAliasResponse {
331
+ friendId: string;
332
+ success: boolean;
333
+ message: string;
334
+ timestamp: number;
335
+ }
336
+ /**
337
+ * Response DTO cho getAliasList
338
+ */
339
+ export interface GetAliasListResponse {
340
+ aliases: AliasInfo[];
341
+ total: number;
342
+ meta: {
343
+ totalItems: number;
344
+ currentPage: number;
345
+ itemsPerPage: number;
346
+ totalPages: number;
347
+ };
348
+ success: boolean;
349
+ timestamp: number;
350
+ }
351
+ /**
352
+ * Response DTO cho getLastOnline
353
+ */
354
+ export interface GetLastOnlineResponse {
355
+ userId: string;
356
+ lastOnline: number;
357
+ isOnline: boolean;
358
+ showOnlineStatus: boolean;
359
+ success: boolean;
360
+ timestamp: number;
361
+ }
362
+ /**
363
+ * Response DTO cho getOwnId
364
+ */
365
+ export interface GetOwnIdResponse {
366
+ ownId: string;
367
+ success: boolean;
368
+ timestamp: number;
369
+ }
370
+ /**
371
+ * Account info DTO
372
+ */
373
+ export interface AccountInfo {
374
+ userId: string;
375
+ displayName: string;
376
+ avatar: string;
377
+ phoneNumber?: string;
378
+ email?: string;
379
+ birthday?: string;
380
+ gender?: string;
381
+ location?: string;
382
+ }
383
+ /**
384
+ * Response DTO cho fetchAccountInfo
385
+ */
386
+ export interface FetchAccountInfoResponse {
387
+ accountInfo: AccountInfo;
388
+ success: boolean;
389
+ timestamp: number;
390
+ }
391
+ /**
392
+ * Zalo Personal Friend Management Service Class
393
+ * 100% khớp với automation-web ZaloFriendController
394
+ */
395
+ export declare class FriendService {
396
+ private httpClient;
397
+ constructor(httpClient: HttpClient);
398
+ /**
399
+ * Lấy tất cả friends
400
+ * POST /zalo-personal/friends/all
401
+ */
402
+ getAllFriends(request: GetAllFriendsRequest): Promise<AutomationWebResponse<GetAllFriendsResponse>>;
403
+ /**
404
+ * Tìm kiếm friends
405
+ * POST /zalo-personal/friends/search
406
+ */
407
+ searchFriends(request: SearchFriendsRequest): Promise<AutomationWebResponse<SearchFriendsResponse>>;
408
+ /**
409
+ * Lấy thông tin chi tiết friends
410
+ * POST /zalo-personal/friends/info
411
+ */
412
+ getFriendsInfo(request: GetFriendsInfoRequest): Promise<AutomationWebResponse<GetFriendsInfoResponse>>;
413
+ /**
414
+ * Lấy friends đang online
415
+ * POST /zalo-personal/friends/online
416
+ */
417
+ getOnlineFriends(request: GetOnlineFriendsRequest): Promise<AutomationWebResponse<GetOnlineFriendsResponse>>;
418
+ /**
419
+ * Lấy thống kê friends
420
+ * GET /zalo-personal/friends/stats
421
+ */
422
+ getFriendsStats(sessionId: string): Promise<AutomationWebResponse<GetFriendsStatsResponse>>;
423
+ /**
424
+ * Gửi lời mời kết bạn
425
+ * POST /zalo-personal/friends/request/send
426
+ */
427
+ sendFriendRequest(request: SendFriendRequestRequest): Promise<AutomationWebResponse<SendFriendRequestResponse>>;
428
+ /**
429
+ * Chấp nhận lời mời kết bạn
430
+ * POST /zalo-personal/friends/request/accept
431
+ */
432
+ acceptFriendRequest(request: AcceptFriendRequestRequest): Promise<AutomationWebResponse<AcceptFriendRequestResponse>>;
433
+ /**
434
+ * Lấy danh sách lời mời nhận được
435
+ * POST /zalo-personal/friends/request/received
436
+ */
437
+ getReceivedFriendRequests(request: GetReceivedFriendRequestsRequest): Promise<AutomationWebResponse<GetReceivedFriendRequestsResponse>>;
438
+ /**
439
+ * Lấy danh sách lời mời đã gửi
440
+ * POST /zalo-personal/friends/request/sent
441
+ */
442
+ getSentFriendRequests(request: GetSentFriendRequestsRequest): Promise<AutomationWebResponse<GetSentFriendRequestsResponse>>;
443
+ /**
444
+ * Hủy lời mời đã gửi
445
+ * POST /zalo-personal/friends/request/undo
446
+ */
447
+ undoFriendRequest(request: UndoFriendRequestRequest): Promise<AutomationWebResponse<UndoFriendRequestResponse>>;
448
+ /**
449
+ * Xóa bạn bè
450
+ * POST /zalo-personal/friends/remove
451
+ */
452
+ removeFriend(request: RemoveFriendRequest): Promise<AutomationWebResponse<RemoveFriendResponse>>;
453
+ /**
454
+ * Tìm kiếm user theo số điện thoại
455
+ * POST /zalo-personal/friends/find-user
456
+ */
457
+ findUser(request: FindUserRequest): Promise<AutomationWebResponse<FindUserResponse>>;
458
+ /**
459
+ * Chặn user
460
+ * POST /zalo-personal/friends/block
461
+ */
462
+ blockUser(request: BlockUserRequest): Promise<AutomationWebResponse<BlockUserResponse>>;
463
+ /**
464
+ * Bỏ chặn user
465
+ * POST /zalo-personal/friends/unblock
466
+ */
467
+ unblockUser(request: UnblockUserRequest): Promise<AutomationWebResponse<UnblockUserResponse>>;
468
+ /**
469
+ * Thay đổi biệt danh friend
470
+ * POST /zalo-personal/friends/alias/change
471
+ */
472
+ changeFriendAlias(request: ChangeFriendAliasRequest): Promise<AutomationWebResponse<ChangeFriendAliasResponse>>;
473
+ /**
474
+ * Xóa biệt danh friend
475
+ * POST /zalo-personal/friends/alias/remove
476
+ */
477
+ removeFriendAlias(request: RemoveFriendAliasRequest): Promise<AutomationWebResponse<RemoveFriendAliasResponse>>;
478
+ /**
479
+ * Lấy danh sách biệt danh
480
+ * POST /zalo-personal/friends/alias/list
481
+ */
482
+ getAliasList(request: GetAliasListRequest): Promise<AutomationWebResponse<GetAliasListResponse>>;
483
+ /**
484
+ * Lấy thông tin last online
485
+ * POST /zalo-personal/friends/last-online
486
+ */
487
+ getLastOnline(request: GetLastOnlineRequest): Promise<AutomationWebResponse<GetLastOnlineResponse>>;
488
+ /**
489
+ * Lấy ID của chính mình
490
+ * POST /zalo-personal/friends/own-id
491
+ */
492
+ getOwnId(request: GetOwnIdRequest): Promise<AutomationWebResponse<GetOwnIdResponse>>;
493
+ /**
494
+ * Lấy thông tin tài khoản
495
+ * POST /zalo-personal/friends/account-info
496
+ */
497
+ fetchAccountInfo(request: FetchAccountInfoRequest): Promise<AutomationWebResponse<FetchAccountInfoResponse>>;
498
+ }
499
+ //# sourceMappingURL=friends.service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"friends.service.d.ts","sourceRoot":"","sources":["../../../src/services/friends/friends.service.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAEpD,OAAO,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AAIjE;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,SAAS,EAA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