@ardennguyen/zalo-agent-cli 2.5.9 → 3.0.0

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 (1492) hide show
  1. package/.env.example +23 -2
  2. package/DISCLAIMER.md +3 -3
  3. package/LICENSE +2 -3
  4. package/NOTICE +14 -34
  5. package/README.md +166 -72
  6. package/package.json +37 -19
  7. package/src/commands/account.js +369 -40
  8. package/src/commands/auto-reply.js +8 -25
  9. package/src/commands/bank.js +25 -6
  10. package/src/commands/catalog.js +54 -11
  11. package/src/commands/cloud.js +459 -0
  12. package/src/commands/conv.js +470 -287
  13. package/src/commands/db.js +442 -0
  14. package/src/commands/fleet.js +449 -41
  15. package/src/commands/friend.js +198 -45
  16. package/src/commands/group.js +256 -43
  17. package/src/commands/label.js +16 -2
  18. package/src/commands/listen.js +495 -122
  19. package/src/commands/login.js +313 -117
  20. package/src/commands/mcp-approver.js +103 -0
  21. package/src/commands/mcp-webhook.js +13 -5
  22. package/src/commands/mcp.js +800 -104
  23. package/src/commands/msg-media.js +187 -0
  24. package/src/commands/msg-search.js +219 -0
  25. package/src/commands/msg.js +414 -110
  26. package/src/commands/oa/calls.js +134 -0
  27. package/src/commands/oa/content.js +266 -0
  28. package/src/commands/oa/gmf.js +429 -0
  29. package/src/commands/oa/messages.js +355 -0
  30. package/src/commands/oa/users.js +502 -0
  31. package/src/commands/oa-init.js +122 -123
  32. package/src/commands/oa-listen.js +374 -150
  33. package/src/commands/oa.js +83 -598
  34. package/src/commands/policy.js +224 -0
  35. package/src/commands/poll.js +3 -0
  36. package/src/commands/presence.js +175 -0
  37. package/src/commands/profile.js +45 -94
  38. package/src/commands/quick-msg.js +26 -0
  39. package/src/commands/read.js +172 -0
  40. package/src/commands/reminder.js +34 -4
  41. package/src/commands/social.js +223 -0
  42. package/src/commands/sync.js +482 -158
  43. package/src/commands/write.js +85 -0
  44. package/src/commands/zbs.js +502 -0
  45. package/src/core/account-devices.js +76 -0
  46. package/src/core/account-state.js +167 -0
  47. package/src/core/account-status.js +355 -0
  48. package/src/core/accounts.js +11 -4
  49. package/src/core/admin-api.js +392 -0
  50. package/src/core/approval.js +271 -0
  51. package/src/core/auto-reply.js +27 -0
  52. package/src/core/bank-accounts.js +1 -1
  53. package/src/core/block-sharing.js +43 -0
  54. package/src/core/board-pass.js +94 -0
  55. package/src/core/cached-message.js +78 -8
  56. package/src/core/cloud-plan.js +285 -0
  57. package/src/core/cloud-verify.js +305 -0
  58. package/src/core/confirm-guard.js +808 -0
  59. package/src/core/contact-names.js +504 -0
  60. package/src/core/control-events.js +525 -0
  61. package/src/core/control-replay.js +106 -0
  62. package/src/core/conversation-actions.js +214 -0
  63. package/src/core/credentials.js +112 -11
  64. package/src/core/current-user-names.js +60 -26
  65. package/src/core/daemon-channel.js +296 -15
  66. package/src/core/daemon-health.js +110 -7
  67. package/src/core/daemon-presence.js +455 -0
  68. package/src/core/daemon-sync.js +58 -18
  69. package/src/core/data-export.js +610 -0
  70. package/src/core/db-tools.js +473 -0
  71. package/src/core/db.js +1327 -83
  72. package/src/core/deploy-policy.js +560 -0
  73. package/src/core/device-since.js +123 -0
  74. package/src/core/e2ee-notice.js +41 -0
  75. package/src/core/exit-codes.js +7 -0
  76. package/src/core/export-crypt.js +290 -0
  77. package/src/core/fleet-controller.js +340 -0
  78. package/src/core/fleet-purge.js +144 -0
  79. package/src/core/fleet-qr.js +273 -0
  80. package/src/core/fleet-serve.js +292 -0
  81. package/src/core/fleet-supervisor.js +176 -0
  82. package/src/core/fleet-templates.js +568 -39
  83. package/src/core/fleet.js +232 -20
  84. package/src/core/friend-requests.js +80 -16
  85. package/src/core/friend-search.js +1 -1
  86. package/src/core/group-admin.js +2 -29
  87. package/src/core/group-departure.js +233 -0
  88. package/src/core/group-exit.js +621 -0
  89. package/src/core/group-members.js +21 -9
  90. package/src/core/group-settings.js +5 -207
  91. package/src/core/hidden-chat-actions.js +96 -0
  92. package/src/core/hidden-chats.js +425 -0
  93. package/src/core/history-fetch.js +81 -27
  94. package/src/core/keystore/config.js +163 -0
  95. package/src/core/keystore/container.js +208 -0
  96. package/src/core/keystore/index.js +483 -0
  97. package/src/core/keystore/keyring.js +588 -0
  98. package/src/core/keystore/kms.js +157 -0
  99. package/src/core/keystore/media-seal.js +711 -0
  100. package/src/core/keystore/providers.js +492 -0
  101. package/src/core/keystore/stores.js +177 -0
  102. package/src/core/keystore/worker.js +80 -0
  103. package/src/core/kick-marker.js +61 -0
  104. package/src/core/last-online.js +236 -0
  105. package/src/core/list-all.js +280 -0
  106. package/src/core/listener-lifecycle.js +101 -10
  107. package/src/core/live-api.js +1 -1
  108. package/src/core/live-store.js +111 -53
  109. package/src/core/local-reads.js +16 -0
  110. package/src/core/logout.js +102 -140
  111. package/src/core/media-deliver.js +732 -0
  112. package/src/core/media-route.js +347 -0
  113. package/src/core/media-store.js +408 -0
  114. package/src/core/mutual-groups.js +94 -0
  115. package/src/core/name-refresh.js +135 -0
  116. package/src/core/oa/calls.js +212 -0
  117. package/src/core/oa/content.js +390 -0
  118. package/src/core/oa/gmf.js +537 -0
  119. package/src/core/oa/messages.js +470 -0
  120. package/src/core/oa/oauth.js +422 -0
  121. package/src/core/oa/transport.js +645 -0
  122. package/src/core/oa/users.js +694 -0
  123. package/src/core/oa-client.js +49 -415
  124. package/src/core/overflow-repair.js +221 -0
  125. package/src/core/policy-layer.js +55 -0
  126. package/src/core/policy-schema.js +401 -0
  127. package/src/core/policy-store.js +1058 -0
  128. package/src/core/presence-config.js +100 -0
  129. package/src/core/presence-leases.js +211 -0
  130. package/src/core/presence.js +688 -0
  131. package/src/core/profile-settings.js +243 -0
  132. package/src/core/qr-login-flow.js +237 -0
  133. package/src/core/read-state.js +145 -22
  134. package/src/core/receipts.js +355 -548
  135. package/src/core/recent-conversations.js +28 -6
  136. package/src/core/row-mac.js +405 -0
  137. package/src/core/search.js +271 -0
  138. package/src/core/secure-page.js +771 -0
  139. package/src/core/self-heal.js +493 -34
  140. package/src/core/session-expiry.js +103 -0
  141. package/src/core/session-notice.js +249 -0
  142. package/src/core/social/client.js +296 -0
  143. package/src/core/social/dpop.js +54 -0
  144. package/src/core/socket-host.js +437 -0
  145. package/src/core/sqlite.js +520 -0
  146. package/src/core/startup-gate.js +49 -5
  147. package/src/core/storage-quota.js +796 -0
  148. package/src/core/sync-action.js +180 -0
  149. package/src/core/sync-v2/auto-sync.js +356 -0
  150. package/src/core/sync-v2/board.js +130 -92
  151. package/src/core/sync-v2/conv-state.js +21 -4
  152. package/src/core/sync-v2/gap-advice.js +2 -3
  153. package/src/core/sync-v2/index.js +739 -323
  154. package/src/core/sync-v2/media.js +116 -27
  155. package/src/core/sync-v2/plan.js +16 -2
  156. package/src/core/sync-v2/ranges.js +98 -0
  157. package/src/core/sync-v2/reactions.js +12 -196
  158. package/src/core/sync-v2/senders.js +32 -14
  159. package/src/core/sync-v2/zcloud.js +177 -579
  160. package/src/core/sync.js +23 -21
  161. package/src/core/test-fake-session.js +87 -0
  162. package/src/core/typing.js +78 -0
  163. package/src/core/unknown-acts.js +240 -0
  164. package/src/core/voice-text.js +171 -0
  165. package/src/core/webhook-outbox.js +110 -12
  166. package/src/core/zalo-client.js +147 -188
  167. package/src/core/zbs/api.js +505 -0
  168. package/src/core/zbs/image.js +85 -0
  169. package/src/core/zbs/phone.js +59 -0
  170. package/src/core/zbs/rsa.js +129 -0
  171. package/src/core/zbs/template-check.js +449 -0
  172. package/src/index.js +60 -10
  173. package/src/mcp/action-tool.js +188 -0
  174. package/src/mcp/actions-business.js +488 -0
  175. package/src/mcp/actions-conversation.js +633 -0
  176. package/src/mcp/actions-media.js +268 -0
  177. package/src/mcp/actions-profile.js +281 -0
  178. package/src/mcp/actions-social.js +518 -0
  179. package/src/mcp/instructions.js +19 -5
  180. package/src/mcp/mcp-config.js +112 -10
  181. package/src/mcp/mcp-http-transport.js +162 -25
  182. package/src/mcp/mcp-server.js +14 -3
  183. package/src/mcp/mcp-tools.js +1686 -384
  184. package/src/mcp/message-buffer.js +58 -12
  185. package/src/mcp/notifier.js +1 -1
  186. package/src/mcp/official-tool.js +298 -0
  187. package/src/mcp/sync-jobs.js +7 -1
  188. package/src/mcp/sync-stages.js +72 -0
  189. package/src/mcp/thread-name-cache.js +43 -5
  190. package/src/mcp/tool-presence.js +153 -0
  191. package/src/mcp/wait-batch.js +27 -0
  192. package/src/mcp/wait-result.js +19 -21
  193. package/src/utils/bank-helpers.js +52 -1
  194. package/src/utils/cli-args.js +12 -12
  195. package/src/utils/date-range.js +50 -0
  196. package/src/utils/hidden-access.js +141 -0
  197. package/src/utils/interrupt.js +37 -0
  198. package/src/utils/json-input.js +41 -0
  199. package/src/utils/list-replies.js +60 -0
  200. package/src/utils/my-documents.js +2 -3
  201. package/src/utils/output.js +66 -2
  202. package/src/utils/qr-display.js +14 -8
  203. package/src/utils/qr-http-server.js +674 -134
  204. package/src/utils/quote.js +8 -8
  205. package/src/utils/secret-input.js +57 -0
  206. package/src/utils/vn-text.js +72 -0
  207. package/src/zalo/README.md +46 -0
  208. package/src/zalo/anomaly-store.js +49 -0
  209. package/src/zalo/api/actions.js +670 -0
  210. package/src/zalo/api/boards.js +1036 -0
  211. package/src/zalo/api/business.js +662 -0
  212. package/src/zalo/api/conversations.js +329 -0
  213. package/src/zalo/api/groups.js +631 -0
  214. package/src/zalo/api/messages.js +695 -0
  215. package/src/zalo/api/people.js +711 -0
  216. package/src/zalo/api/profile.js +374 -0
  217. package/src/zalo/api/session.js +45 -0
  218. package/src/zalo/api/upload.js +976 -0
  219. package/src/zalo/api.js +117 -0
  220. package/src/zalo/client.js +206 -0
  221. package/src/zalo/custom/forward.js +199 -0
  222. package/src/zalo/custom/gid.js +123 -0
  223. package/src/zalo/custom/group-history.js +246 -0
  224. package/src/zalo/custom/group-invite.js +53 -0
  225. package/src/zalo/custom/group-settings.js +186 -0
  226. package/src/zalo/custom/group-visibility.js +71 -0
  227. package/src/zalo/custom/pin.js +220 -0
  228. package/src/zalo/custom/renewlink.js +115 -0
  229. package/src/zalo/device-fingerprint.js +33 -0
  230. package/src/zalo/download-fetch.js +45 -0
  231. package/src/zalo/enums.js +25 -0
  232. package/src/zalo/errors.js +195 -0
  233. package/src/zalo/format/mentions.js +140 -0
  234. package/src/zalo/format/split-message.js +222 -0
  235. package/src/zalo/format/urgency.js +29 -0
  236. package/src/zalo/headers.js +93 -0
  237. package/src/zalo/index.js +72 -0
  238. package/src/zalo/kernel/atomic-file.js +217 -0
  239. package/src/zalo/kernel/bound.js +46 -0
  240. package/src/zalo/kernel/cipher.js +88 -0
  241. package/src/zalo/kernel/cookies.js +125 -0
  242. package/src/zalo/kernel/endpoint.js +211 -0
  243. package/src/zalo/kernel/http.js +360 -0
  244. package/src/zalo/kernel/json-ids.js +118 -0
  245. package/src/zalo/kernel/login-cipher.js +165 -0
  246. package/src/zalo/kernel/secret-file.js +45 -0
  247. package/src/zalo/kernel/session.js +261 -0
  248. package/src/zalo/kernel/zcloud-cipher.js +83 -0
  249. package/src/zalo/kickout.js +136 -0
  250. package/src/zalo/listener/dispatch.js +404 -0
  251. package/src/zalo/listener/frames.js +222 -0
  252. package/src/zalo/listener/friend-events.js +113 -0
  253. package/src/zalo/listener/group-events.js +117 -0
  254. package/src/zalo/listener/keepalive.js +191 -0
  255. package/src/zalo/listener/listener.js +469 -0
  256. package/src/zalo/listener/models.js +220 -0
  257. package/src/zalo/listener/reactions.js +224 -0
  258. package/src/zalo/listener/socket-tap.js +228 -0
  259. package/src/zalo/login.js +387 -0
  260. package/src/zalo/logout.js +192 -0
  261. package/src/zalo/maintenance.js +183 -0
  262. package/src/zalo/official-logout.js +254 -0
  263. package/src/zalo/paging.js +114 -0
  264. package/src/zalo/profile.js +184 -0
  265. package/src/zalo/pulls.js +129 -0
  266. package/src/zalo/qr-image.js +90 -0
  267. package/src/zalo/qr-login.js +494 -0
  268. package/src/zalo/queues/control-queue.js +193 -0
  269. package/src/zalo/queues/offline-queue.js +275 -0
  270. package/src/zalo/queues/queue-verify.js +306 -0
  271. package/src/zalo/reads.js +723 -0
  272. package/src/zalo/receipts.js +550 -0
  273. package/src/zalo/req-id.js +24 -0
  274. package/src/zalo/retry.js +343 -0
  275. package/src/zalo/session-call.js +55 -0
  276. package/src/zalo/socket.js +762 -0
  277. package/src/zalo/transfer-sync/assets.js +181 -0
  278. package/src/zalo/transfer-sync/channel.js +459 -0
  279. package/src/zalo/transfer-sync/download.js +161 -0
  280. package/src/zalo/transfer-sync/message-types.js +520 -0
  281. package/src/zalo/transfer-sync/transfer.js +468 -0
  282. package/src/zalo/trust-store.js +99 -0
  283. package/src/zalo/trust-wasm.js +393 -0
  284. package/src/zalo/upkeep.js +127 -0
  285. package/src/zalo/web-call.js +103 -0
  286. package/src/zalo/writes.js +704 -0
  287. package/src/zalo/zcloud-e2ee.js +214 -0
  288. package/src/zalo/zcloud.js +802 -0
  289. package/node_modules/asynckit/LICENSE +0 -21
  290. package/node_modules/asynckit/README.md +0 -233
  291. package/node_modules/asynckit/bench.js +0 -76
  292. package/node_modules/asynckit/index.js +0 -6
  293. package/node_modules/asynckit/lib/abort.js +0 -29
  294. package/node_modules/asynckit/lib/async.js +0 -34
  295. package/node_modules/asynckit/lib/defer.js +0 -26
  296. package/node_modules/asynckit/lib/iterate.js +0 -75
  297. package/node_modules/asynckit/lib/readable_asynckit.js +0 -91
  298. package/node_modules/asynckit/lib/readable_parallel.js +0 -25
  299. package/node_modules/asynckit/lib/readable_serial.js +0 -25
  300. package/node_modules/asynckit/lib/readable_serial_ordered.js +0 -29
  301. package/node_modules/asynckit/lib/state.js +0 -37
  302. package/node_modules/asynckit/lib/streamify.js +0 -141
  303. package/node_modules/asynckit/lib/terminator.js +0 -29
  304. package/node_modules/asynckit/package.json +0 -63
  305. package/node_modules/asynckit/parallel.js +0 -43
  306. package/node_modules/asynckit/serial.js +0 -17
  307. package/node_modules/asynckit/serialOrdered.js +0 -75
  308. package/node_modules/asynckit/stream.js +0 -21
  309. package/node_modules/bignumber.js/CHANGELOG.md +0 -381
  310. package/node_modules/bignumber.js/LICENCE.md +0 -26
  311. package/node_modules/bignumber.js/README.md +0 -289
  312. package/node_modules/bignumber.js/bignumber.d.mts +0 -6
  313. package/node_modules/bignumber.js/bignumber.d.ts +0 -5
  314. package/node_modules/bignumber.js/bignumber.js +0 -2922
  315. package/node_modules/bignumber.js/bignumber.mjs +0 -2907
  316. package/node_modules/bignumber.js/doc/API.html +0 -2249
  317. package/node_modules/bignumber.js/package.json +0 -60
  318. package/node_modules/bignumber.js/types.d.ts +0 -1821
  319. package/node_modules/call-bind-apply-helpers/.eslintrc +0 -17
  320. package/node_modules/call-bind-apply-helpers/.github/FUNDING.yml +0 -12
  321. package/node_modules/call-bind-apply-helpers/.nycrc +0 -9
  322. package/node_modules/call-bind-apply-helpers/CHANGELOG.md +0 -30
  323. package/node_modules/call-bind-apply-helpers/LICENSE +0 -21
  324. package/node_modules/call-bind-apply-helpers/README.md +0 -62
  325. package/node_modules/call-bind-apply-helpers/actualApply.d.ts +0 -1
  326. package/node_modules/call-bind-apply-helpers/actualApply.js +0 -10
  327. package/node_modules/call-bind-apply-helpers/applyBind.d.ts +0 -19
  328. package/node_modules/call-bind-apply-helpers/applyBind.js +0 -10
  329. package/node_modules/call-bind-apply-helpers/functionApply.d.ts +0 -1
  330. package/node_modules/call-bind-apply-helpers/functionApply.js +0 -4
  331. package/node_modules/call-bind-apply-helpers/functionCall.d.ts +0 -1
  332. package/node_modules/call-bind-apply-helpers/functionCall.js +0 -4
  333. package/node_modules/call-bind-apply-helpers/index.d.ts +0 -64
  334. package/node_modules/call-bind-apply-helpers/index.js +0 -15
  335. package/node_modules/call-bind-apply-helpers/package.json +0 -85
  336. package/node_modules/call-bind-apply-helpers/reflectApply.d.ts +0 -3
  337. package/node_modules/call-bind-apply-helpers/reflectApply.js +0 -4
  338. package/node_modules/call-bind-apply-helpers/test/index.js +0 -63
  339. package/node_modules/call-bind-apply-helpers/tsconfig.json +0 -9
  340. package/node_modules/combined-stream/License +0 -19
  341. package/node_modules/combined-stream/Readme.md +0 -138
  342. package/node_modules/combined-stream/lib/combined_stream.js +0 -208
  343. package/node_modules/combined-stream/package.json +0 -25
  344. package/node_modules/crypto-js/CONTRIBUTING.md +0 -28
  345. package/node_modules/crypto-js/LICENSE +0 -24
  346. package/node_modules/crypto-js/README.md +0 -275
  347. package/node_modules/crypto-js/aes.js +0 -234
  348. package/node_modules/crypto-js/blowfish.js +0 -471
  349. package/node_modules/crypto-js/bower.json +0 -39
  350. package/node_modules/crypto-js/cipher-core.js +0 -895
  351. package/node_modules/crypto-js/core.js +0 -807
  352. package/node_modules/crypto-js/crypto-js.js +0 -6657
  353. package/node_modules/crypto-js/docs/QuickStartGuide.wiki +0 -470
  354. package/node_modules/crypto-js/enc-base64.js +0 -136
  355. package/node_modules/crypto-js/enc-base64url.js +0 -148
  356. package/node_modules/crypto-js/enc-hex.js +0 -18
  357. package/node_modules/crypto-js/enc-latin1.js +0 -18
  358. package/node_modules/crypto-js/enc-utf16.js +0 -149
  359. package/node_modules/crypto-js/enc-utf8.js +0 -18
  360. package/node_modules/crypto-js/evpkdf.js +0 -134
  361. package/node_modules/crypto-js/format-hex.js +0 -66
  362. package/node_modules/crypto-js/format-openssl.js +0 -18
  363. package/node_modules/crypto-js/hmac-md5.js +0 -18
  364. package/node_modules/crypto-js/hmac-ripemd160.js +0 -18
  365. package/node_modules/crypto-js/hmac-sha1.js +0 -18
  366. package/node_modules/crypto-js/hmac-sha224.js +0 -18
  367. package/node_modules/crypto-js/hmac-sha256.js +0 -18
  368. package/node_modules/crypto-js/hmac-sha3.js +0 -18
  369. package/node_modules/crypto-js/hmac-sha384.js +0 -18
  370. package/node_modules/crypto-js/hmac-sha512.js +0 -18
  371. package/node_modules/crypto-js/hmac.js +0 -143
  372. package/node_modules/crypto-js/index.js +0 -18
  373. package/node_modules/crypto-js/lib-typedarrays.js +0 -76
  374. package/node_modules/crypto-js/md5.js +0 -268
  375. package/node_modules/crypto-js/mode-cfb.js +0 -80
  376. package/node_modules/crypto-js/mode-ctr-gladman.js +0 -116
  377. package/node_modules/crypto-js/mode-ctr.js +0 -58
  378. package/node_modules/crypto-js/mode-ecb.js +0 -40
  379. package/node_modules/crypto-js/mode-ofb.js +0 -54
  380. package/node_modules/crypto-js/package.json +0 -42
  381. package/node_modules/crypto-js/pad-ansix923.js +0 -49
  382. package/node_modules/crypto-js/pad-iso10126.js +0 -44
  383. package/node_modules/crypto-js/pad-iso97971.js +0 -40
  384. package/node_modules/crypto-js/pad-nopadding.js +0 -30
  385. package/node_modules/crypto-js/pad-pkcs7.js +0 -18
  386. package/node_modules/crypto-js/pad-zeropadding.js +0 -47
  387. package/node_modules/crypto-js/pbkdf2.js +0 -145
  388. package/node_modules/crypto-js/rabbit-legacy.js +0 -190
  389. package/node_modules/crypto-js/rabbit.js +0 -192
  390. package/node_modules/crypto-js/rc4.js +0 -139
  391. package/node_modules/crypto-js/ripemd160.js +0 -267
  392. package/node_modules/crypto-js/sha1.js +0 -150
  393. package/node_modules/crypto-js/sha224.js +0 -80
  394. package/node_modules/crypto-js/sha256.js +0 -199
  395. package/node_modules/crypto-js/sha3.js +0 -326
  396. package/node_modules/crypto-js/sha384.js +0 -83
  397. package/node_modules/crypto-js/sha512.js +0 -326
  398. package/node_modules/crypto-js/tripledes.js +0 -779
  399. package/node_modules/crypto-js/x64-core.js +0 -304
  400. package/node_modules/delayed-stream/.npmignore +0 -1
  401. package/node_modules/delayed-stream/License +0 -19
  402. package/node_modules/delayed-stream/Makefile +0 -7
  403. package/node_modules/delayed-stream/Readme.md +0 -141
  404. package/node_modules/delayed-stream/lib/delayed_stream.js +0 -107
  405. package/node_modules/delayed-stream/package.json +0 -27
  406. package/node_modules/dunder-proto/.eslintrc +0 -5
  407. package/node_modules/dunder-proto/.github/FUNDING.yml +0 -12
  408. package/node_modules/dunder-proto/.nycrc +0 -13
  409. package/node_modules/dunder-proto/CHANGELOG.md +0 -24
  410. package/node_modules/dunder-proto/LICENSE +0 -21
  411. package/node_modules/dunder-proto/README.md +0 -54
  412. package/node_modules/dunder-proto/get.d.ts +0 -5
  413. package/node_modules/dunder-proto/get.js +0 -30
  414. package/node_modules/dunder-proto/package.json +0 -76
  415. package/node_modules/dunder-proto/set.d.ts +0 -5
  416. package/node_modules/dunder-proto/set.js +0 -35
  417. package/node_modules/dunder-proto/test/get.js +0 -34
  418. package/node_modules/dunder-proto/test/index.js +0 -4
  419. package/node_modules/dunder-proto/test/set.js +0 -50
  420. package/node_modules/dunder-proto/tsconfig.json +0 -9
  421. package/node_modules/es-define-property/.eslintrc +0 -13
  422. package/node_modules/es-define-property/.github/FUNDING.yml +0 -12
  423. package/node_modules/es-define-property/.nycrc +0 -9
  424. package/node_modules/es-define-property/CHANGELOG.md +0 -29
  425. package/node_modules/es-define-property/LICENSE +0 -21
  426. package/node_modules/es-define-property/README.md +0 -49
  427. package/node_modules/es-define-property/index.d.ts +0 -3
  428. package/node_modules/es-define-property/index.js +0 -14
  429. package/node_modules/es-define-property/package.json +0 -81
  430. package/node_modules/es-define-property/test/index.js +0 -56
  431. package/node_modules/es-define-property/tsconfig.json +0 -10
  432. package/node_modules/es-errors/.eslintrc +0 -5
  433. package/node_modules/es-errors/.github/FUNDING.yml +0 -12
  434. package/node_modules/es-errors/CHANGELOG.md +0 -40
  435. package/node_modules/es-errors/LICENSE +0 -21
  436. package/node_modules/es-errors/README.md +0 -55
  437. package/node_modules/es-errors/eval.d.ts +0 -3
  438. package/node_modules/es-errors/eval.js +0 -4
  439. package/node_modules/es-errors/index.d.ts +0 -3
  440. package/node_modules/es-errors/index.js +0 -4
  441. package/node_modules/es-errors/package.json +0 -80
  442. package/node_modules/es-errors/range.d.ts +0 -3
  443. package/node_modules/es-errors/range.js +0 -4
  444. package/node_modules/es-errors/ref.d.ts +0 -3
  445. package/node_modules/es-errors/ref.js +0 -4
  446. package/node_modules/es-errors/syntax.d.ts +0 -3
  447. package/node_modules/es-errors/syntax.js +0 -4
  448. package/node_modules/es-errors/test/index.js +0 -19
  449. package/node_modules/es-errors/tsconfig.json +0 -49
  450. package/node_modules/es-errors/type.d.ts +0 -3
  451. package/node_modules/es-errors/type.js +0 -4
  452. package/node_modules/es-errors/uri.d.ts +0 -3
  453. package/node_modules/es-errors/uri.js +0 -4
  454. package/node_modules/es-object-atoms/.eslintrc +0 -16
  455. package/node_modules/es-object-atoms/.github/FUNDING.yml +0 -12
  456. package/node_modules/es-object-atoms/CHANGELOG.md +0 -44
  457. package/node_modules/es-object-atoms/LICENSE +0 -21
  458. package/node_modules/es-object-atoms/README.md +0 -63
  459. package/node_modules/es-object-atoms/RequireObjectCoercible.d.ts +0 -3
  460. package/node_modules/es-object-atoms/RequireObjectCoercible.js +0 -11
  461. package/node_modules/es-object-atoms/ToObject.d.ts +0 -7
  462. package/node_modules/es-object-atoms/ToObject.js +0 -10
  463. package/node_modules/es-object-atoms/index.d.ts +0 -3
  464. package/node_modules/es-object-atoms/index.js +0 -4
  465. package/node_modules/es-object-atoms/isObject.d.ts +0 -3
  466. package/node_modules/es-object-atoms/isObject.js +0 -6
  467. package/node_modules/es-object-atoms/package.json +0 -79
  468. package/node_modules/es-object-atoms/test/index.js +0 -38
  469. package/node_modules/es-object-atoms/tsconfig.json +0 -7
  470. package/node_modules/es-set-tostringtag/.eslintrc +0 -13
  471. package/node_modules/es-set-tostringtag/.nycrc +0 -9
  472. package/node_modules/es-set-tostringtag/CHANGELOG.md +0 -67
  473. package/node_modules/es-set-tostringtag/LICENSE +0 -21
  474. package/node_modules/es-set-tostringtag/README.md +0 -53
  475. package/node_modules/es-set-tostringtag/index.d.ts +0 -10
  476. package/node_modules/es-set-tostringtag/index.js +0 -35
  477. package/node_modules/es-set-tostringtag/package.json +0 -78
  478. package/node_modules/es-set-tostringtag/test/index.js +0 -85
  479. package/node_modules/es-set-tostringtag/tsconfig.json +0 -9
  480. package/node_modules/form-data/CHANGELOG.md +0 -686
  481. package/node_modules/form-data/License +0 -19
  482. package/node_modules/form-data/README.md +0 -355
  483. package/node_modules/form-data/index.d.ts +0 -62
  484. package/node_modules/form-data/lib/browser.js +0 -4
  485. package/node_modules/form-data/lib/form_data.js +0 -506
  486. package/node_modules/form-data/lib/populate.js +0 -10
  487. package/node_modules/form-data/node_modules/mime-db/HISTORY.md +0 -507
  488. package/node_modules/form-data/node_modules/mime-db/LICENSE +0 -23
  489. package/node_modules/form-data/node_modules/mime-db/README.md +0 -100
  490. package/node_modules/form-data/node_modules/mime-db/db.json +0 -8519
  491. package/node_modules/form-data/node_modules/mime-db/index.js +0 -12
  492. package/node_modules/form-data/node_modules/mime-db/package.json +0 -60
  493. package/node_modules/form-data/node_modules/mime-types/HISTORY.md +0 -397
  494. package/node_modules/form-data/node_modules/mime-types/LICENSE +0 -23
  495. package/node_modules/form-data/node_modules/mime-types/README.md +0 -113
  496. package/node_modules/form-data/node_modules/mime-types/index.js +0 -188
  497. package/node_modules/form-data/node_modules/mime-types/package.json +0 -44
  498. package/node_modules/form-data/package.json +0 -82
  499. package/node_modules/function-bind/.eslintrc +0 -21
  500. package/node_modules/function-bind/.github/FUNDING.yml +0 -12
  501. package/node_modules/function-bind/.github/SECURITY.md +0 -3
  502. package/node_modules/function-bind/.nycrc +0 -13
  503. package/node_modules/function-bind/CHANGELOG.md +0 -136
  504. package/node_modules/function-bind/LICENSE +0 -20
  505. package/node_modules/function-bind/README.md +0 -46
  506. package/node_modules/function-bind/implementation.js +0 -84
  507. package/node_modules/function-bind/index.js +0 -5
  508. package/node_modules/function-bind/package.json +0 -87
  509. package/node_modules/function-bind/test/.eslintrc +0 -9
  510. package/node_modules/function-bind/test/index.js +0 -252
  511. package/node_modules/get-intrinsic/.eslintrc +0 -42
  512. package/node_modules/get-intrinsic/.github/FUNDING.yml +0 -12
  513. package/node_modules/get-intrinsic/.nycrc +0 -9
  514. package/node_modules/get-intrinsic/CHANGELOG.md +0 -186
  515. package/node_modules/get-intrinsic/LICENSE +0 -21
  516. package/node_modules/get-intrinsic/README.md +0 -71
  517. package/node_modules/get-intrinsic/index.js +0 -378
  518. package/node_modules/get-intrinsic/package.json +0 -97
  519. package/node_modules/get-intrinsic/test/GetIntrinsic.js +0 -274
  520. package/node_modules/get-proto/.eslintrc +0 -10
  521. package/node_modules/get-proto/.github/FUNDING.yml +0 -12
  522. package/node_modules/get-proto/.nycrc +0 -9
  523. package/node_modules/get-proto/CHANGELOG.md +0 -21
  524. package/node_modules/get-proto/LICENSE +0 -21
  525. package/node_modules/get-proto/Object.getPrototypeOf.d.ts +0 -5
  526. package/node_modules/get-proto/Object.getPrototypeOf.js +0 -6
  527. package/node_modules/get-proto/README.md +0 -50
  528. package/node_modules/get-proto/Reflect.getPrototypeOf.d.ts +0 -3
  529. package/node_modules/get-proto/Reflect.getPrototypeOf.js +0 -4
  530. package/node_modules/get-proto/index.d.ts +0 -5
  531. package/node_modules/get-proto/index.js +0 -27
  532. package/node_modules/get-proto/package.json +0 -81
  533. package/node_modules/get-proto/test/index.js +0 -68
  534. package/node_modules/get-proto/tsconfig.json +0 -9
  535. package/node_modules/gopd/.eslintrc +0 -16
  536. package/node_modules/gopd/.github/FUNDING.yml +0 -12
  537. package/node_modules/gopd/CHANGELOG.md +0 -45
  538. package/node_modules/gopd/LICENSE +0 -21
  539. package/node_modules/gopd/README.md +0 -40
  540. package/node_modules/gopd/gOPD.d.ts +0 -1
  541. package/node_modules/gopd/gOPD.js +0 -4
  542. package/node_modules/gopd/index.d.ts +0 -5
  543. package/node_modules/gopd/index.js +0 -15
  544. package/node_modules/gopd/package.json +0 -77
  545. package/node_modules/gopd/test/index.js +0 -36
  546. package/node_modules/gopd/tsconfig.json +0 -9
  547. package/node_modules/has-symbols/.eslintrc +0 -11
  548. package/node_modules/has-symbols/.github/FUNDING.yml +0 -12
  549. package/node_modules/has-symbols/.nycrc +0 -9
  550. package/node_modules/has-symbols/CHANGELOG.md +0 -91
  551. package/node_modules/has-symbols/LICENSE +0 -21
  552. package/node_modules/has-symbols/README.md +0 -46
  553. package/node_modules/has-symbols/index.d.ts +0 -3
  554. package/node_modules/has-symbols/index.js +0 -14
  555. package/node_modules/has-symbols/package.json +0 -111
  556. package/node_modules/has-symbols/shams.d.ts +0 -3
  557. package/node_modules/has-symbols/shams.js +0 -45
  558. package/node_modules/has-symbols/test/index.js +0 -22
  559. package/node_modules/has-symbols/test/shams/core-js.js +0 -29
  560. package/node_modules/has-symbols/test/shams/get-own-property-symbols.js +0 -29
  561. package/node_modules/has-symbols/test/tests.js +0 -58
  562. package/node_modules/has-symbols/tsconfig.json +0 -10
  563. package/node_modules/has-tostringtag/.eslintrc +0 -5
  564. package/node_modules/has-tostringtag/.github/FUNDING.yml +0 -12
  565. package/node_modules/has-tostringtag/.nycrc +0 -13
  566. package/node_modules/has-tostringtag/CHANGELOG.md +0 -42
  567. package/node_modules/has-tostringtag/LICENSE +0 -21
  568. package/node_modules/has-tostringtag/README.md +0 -46
  569. package/node_modules/has-tostringtag/index.d.ts +0 -3
  570. package/node_modules/has-tostringtag/index.js +0 -8
  571. package/node_modules/has-tostringtag/package.json +0 -108
  572. package/node_modules/has-tostringtag/shams.d.ts +0 -3
  573. package/node_modules/has-tostringtag/shams.js +0 -8
  574. package/node_modules/has-tostringtag/test/index.js +0 -21
  575. package/node_modules/has-tostringtag/test/shams/core-js.js +0 -31
  576. package/node_modules/has-tostringtag/test/shams/get-own-property-symbols.js +0 -30
  577. package/node_modules/has-tostringtag/test/tests.js +0 -15
  578. package/node_modules/has-tostringtag/tsconfig.json +0 -49
  579. package/node_modules/hasown/.github/FUNDING.yml +0 -12
  580. package/node_modules/hasown/.nycrc +0 -13
  581. package/node_modules/hasown/CHANGELOG.md +0 -58
  582. package/node_modules/hasown/LICENSE +0 -21
  583. package/node_modules/hasown/README.md +0 -40
  584. package/node_modules/hasown/eslint.config.mjs +0 -6
  585. package/node_modules/hasown/index.d.ts +0 -3
  586. package/node_modules/hasown/index.js +0 -8
  587. package/node_modules/hasown/package.json +0 -91
  588. package/node_modules/hasown/tsconfig.json +0 -6
  589. package/node_modules/json-bigint/LICENSE +0 -20
  590. package/node_modules/json-bigint/README.md +0 -240
  591. package/node_modules/json-bigint/index.js +0 -12
  592. package/node_modules/json-bigint/lib/parse.js +0 -443
  593. package/node_modules/json-bigint/lib/stringify.js +0 -384
  594. package/node_modules/json-bigint/package.json +0 -34
  595. package/node_modules/math-intrinsics/.eslintrc +0 -16
  596. package/node_modules/math-intrinsics/.github/FUNDING.yml +0 -12
  597. package/node_modules/math-intrinsics/CHANGELOG.md +0 -24
  598. package/node_modules/math-intrinsics/LICENSE +0 -21
  599. package/node_modules/math-intrinsics/README.md +0 -50
  600. package/node_modules/math-intrinsics/abs.d.ts +0 -1
  601. package/node_modules/math-intrinsics/abs.js +0 -4
  602. package/node_modules/math-intrinsics/constants/maxArrayLength.d.ts +0 -3
  603. package/node_modules/math-intrinsics/constants/maxArrayLength.js +0 -4
  604. package/node_modules/math-intrinsics/constants/maxSafeInteger.d.ts +0 -3
  605. package/node_modules/math-intrinsics/constants/maxSafeInteger.js +0 -5
  606. package/node_modules/math-intrinsics/constants/maxValue.d.ts +0 -3
  607. package/node_modules/math-intrinsics/constants/maxValue.js +0 -5
  608. package/node_modules/math-intrinsics/floor.d.ts +0 -1
  609. package/node_modules/math-intrinsics/floor.js +0 -4
  610. package/node_modules/math-intrinsics/isFinite.d.ts +0 -3
  611. package/node_modules/math-intrinsics/isFinite.js +0 -12
  612. package/node_modules/math-intrinsics/isInteger.d.ts +0 -3
  613. package/node_modules/math-intrinsics/isInteger.js +0 -16
  614. package/node_modules/math-intrinsics/isNaN.d.ts +0 -1
  615. package/node_modules/math-intrinsics/isNaN.js +0 -6
  616. package/node_modules/math-intrinsics/isNegativeZero.d.ts +0 -3
  617. package/node_modules/math-intrinsics/isNegativeZero.js +0 -6
  618. package/node_modules/math-intrinsics/max.d.ts +0 -1
  619. package/node_modules/math-intrinsics/max.js +0 -4
  620. package/node_modules/math-intrinsics/min.d.ts +0 -1
  621. package/node_modules/math-intrinsics/min.js +0 -4
  622. package/node_modules/math-intrinsics/mod.d.ts +0 -3
  623. package/node_modules/math-intrinsics/mod.js +0 -9
  624. package/node_modules/math-intrinsics/package.json +0 -86
  625. package/node_modules/math-intrinsics/pow.d.ts +0 -1
  626. package/node_modules/math-intrinsics/pow.js +0 -4
  627. package/node_modules/math-intrinsics/round.d.ts +0 -1
  628. package/node_modules/math-intrinsics/round.js +0 -4
  629. package/node_modules/math-intrinsics/sign.d.ts +0 -3
  630. package/node_modules/math-intrinsics/sign.js +0 -11
  631. package/node_modules/math-intrinsics/test/index.js +0 -192
  632. package/node_modules/math-intrinsics/tsconfig.json +0 -3
  633. package/node_modules/pako/LICENSE +0 -21
  634. package/node_modules/pako/README.md +0 -155
  635. package/node_modules/pako/dist/pako.es5.js +0 -6760
  636. package/node_modules/pako/dist/pako.es5.min.js +0 -2
  637. package/node_modules/pako/dist/pako.esm.mjs +0 -6945
  638. package/node_modules/pako/dist/pako.js +0 -6964
  639. package/node_modules/pako/dist/pako.min.js +0 -2
  640. package/node_modules/pako/dist/pako_deflate.es5.js +0 -3953
  641. package/node_modules/pako/dist/pako_deflate.es5.min.js +0 -2
  642. package/node_modules/pako/dist/pako_deflate.js +0 -4154
  643. package/node_modules/pako/dist/pako_deflate.min.js +0 -2
  644. package/node_modules/pako/dist/pako_inflate.es5.js +0 -3272
  645. package/node_modules/pako/dist/pako_inflate.es5.min.js +0 -2
  646. package/node_modules/pako/dist/pako_inflate.js +0 -3279
  647. package/node_modules/pako/dist/pako_inflate.min.js +0 -2
  648. package/node_modules/pako/index.js +0 -18
  649. package/node_modules/pako/lib/deflate.js +0 -387
  650. package/node_modules/pako/lib/inflate.js +0 -456
  651. package/node_modules/pako/lib/utils/common.js +0 -48
  652. package/node_modules/pako/lib/utils/strings.js +0 -174
  653. package/node_modules/pako/lib/zlib/README +0 -59
  654. package/node_modules/pako/lib/zlib/adler32.js +0 -51
  655. package/node_modules/pako/lib/zlib/constants.js +0 -68
  656. package/node_modules/pako/lib/zlib/crc32.js +0 -59
  657. package/node_modules/pako/lib/zlib/deflate.js +0 -2069
  658. package/node_modules/pako/lib/zlib/gzheader.js +0 -58
  659. package/node_modules/pako/lib/zlib/inffast.js +0 -344
  660. package/node_modules/pako/lib/zlib/inflate.js +0 -1575
  661. package/node_modules/pako/lib/zlib/inftrees.js +0 -340
  662. package/node_modules/pako/lib/zlib/messages.js +0 -32
  663. package/node_modules/pako/lib/zlib/trees.js +0 -1179
  664. package/node_modules/pako/lib/zlib/zstream.js +0 -47
  665. package/node_modules/pako/package.json +0 -73
  666. package/node_modules/semver/LICENSE +0 -15
  667. package/node_modules/semver/README.md +0 -680
  668. package/node_modules/semver/bin/semver.js +0 -195
  669. package/node_modules/semver/classes/comparator.js +0 -143
  670. package/node_modules/semver/classes/index.js +0 -7
  671. package/node_modules/semver/classes/range.js +0 -577
  672. package/node_modules/semver/classes/semver.js +0 -350
  673. package/node_modules/semver/functions/clean.js +0 -8
  674. package/node_modules/semver/functions/cmp.js +0 -54
  675. package/node_modules/semver/functions/coerce.js +0 -62
  676. package/node_modules/semver/functions/compare-build.js +0 -9
  677. package/node_modules/semver/functions/compare-loose.js +0 -5
  678. package/node_modules/semver/functions/compare.js +0 -7
  679. package/node_modules/semver/functions/diff.js +0 -60
  680. package/node_modules/semver/functions/eq.js +0 -5
  681. package/node_modules/semver/functions/gt.js +0 -5
  682. package/node_modules/semver/functions/gte.js +0 -5
  683. package/node_modules/semver/functions/inc.js +0 -21
  684. package/node_modules/semver/functions/lt.js +0 -5
  685. package/node_modules/semver/functions/lte.js +0 -5
  686. package/node_modules/semver/functions/major.js +0 -5
  687. package/node_modules/semver/functions/minor.js +0 -5
  688. package/node_modules/semver/functions/neq.js +0 -5
  689. package/node_modules/semver/functions/parse.js +0 -18
  690. package/node_modules/semver/functions/patch.js +0 -5
  691. package/node_modules/semver/functions/prerelease.js +0 -8
  692. package/node_modules/semver/functions/rcompare.js +0 -5
  693. package/node_modules/semver/functions/rsort.js +0 -5
  694. package/node_modules/semver/functions/satisfies.js +0 -12
  695. package/node_modules/semver/functions/sort.js +0 -5
  696. package/node_modules/semver/functions/truncate.js +0 -48
  697. package/node_modules/semver/functions/valid.js +0 -8
  698. package/node_modules/semver/index.js +0 -93
  699. package/node_modules/semver/internal/constants.js +0 -37
  700. package/node_modules/semver/internal/debug.js +0 -11
  701. package/node_modules/semver/internal/identifiers.js +0 -29
  702. package/node_modules/semver/internal/lrucache.js +0 -42
  703. package/node_modules/semver/internal/parse-options.js +0 -17
  704. package/node_modules/semver/internal/re.js +0 -223
  705. package/node_modules/semver/package.json +0 -78
  706. package/node_modules/semver/preload.js +0 -4
  707. package/node_modules/semver/range.bnf +0 -17
  708. package/node_modules/semver/ranges/gtr.js +0 -6
  709. package/node_modules/semver/ranges/intersects.js +0 -9
  710. package/node_modules/semver/ranges/ltr.js +0 -6
  711. package/node_modules/semver/ranges/max-satisfying.js +0 -27
  712. package/node_modules/semver/ranges/min-satisfying.js +0 -26
  713. package/node_modules/semver/ranges/min-version.js +0 -63
  714. package/node_modules/semver/ranges/outside.js +0 -82
  715. package/node_modules/semver/ranges/simplify.js +0 -49
  716. package/node_modules/semver/ranges/subset.js +0 -249
  717. package/node_modules/semver/ranges/to-comparators.js +0 -10
  718. package/node_modules/semver/ranges/valid.js +0 -13
  719. package/node_modules/spark-md5/LICENSE +0 -13
  720. package/node_modules/spark-md5/README.md +0 -191
  721. package/node_modules/spark-md5/package.json +0 -35
  722. package/node_modules/spark-md5/spark-md5.js +0 -751
  723. package/node_modules/spark-md5/spark-md5.min.js +0 -1
  724. package/node_modules/tldts/LICENSE +0 -13
  725. package/node_modules/tldts/README.md +0 -327
  726. package/node_modules/tldts/bin/cli.js +0 -21
  727. package/node_modules/tldts/dist/cjs/index.js +0 -666
  728. package/node_modules/tldts/dist/cjs/index.js.map +0 -1
  729. package/node_modules/tldts/dist/cjs/src/data/trie.js +0 -14
  730. package/node_modules/tldts/dist/cjs/src/data/trie.js.map +0 -1
  731. package/node_modules/tldts/dist/cjs/src/suffix-trie.js +0 -67
  732. package/node_modules/tldts/dist/cjs/src/suffix-trie.js.map +0 -1
  733. package/node_modules/tldts/dist/cjs/tsconfig.tsbuildinfo +0 -1
  734. package/node_modules/tldts/dist/es6/index.js +0 -33
  735. package/node_modules/tldts/dist/es6/index.js.map +0 -1
  736. package/node_modules/tldts/dist/es6/src/data/trie.js +0 -11
  737. package/node_modules/tldts/dist/es6/src/data/trie.js.map +0 -1
  738. package/node_modules/tldts/dist/es6/src/suffix-trie.js +0 -64
  739. package/node_modules/tldts/dist/es6/src/suffix-trie.js.map +0 -1
  740. package/node_modules/tldts/dist/es6/tsconfig.bundle.tsbuildinfo +0 -1
  741. package/node_modules/tldts/dist/index.cjs.min.js +0 -2
  742. package/node_modules/tldts/dist/index.cjs.min.js.map +0 -1
  743. package/node_modules/tldts/dist/index.esm.min.js +0 -2
  744. package/node_modules/tldts/dist/index.esm.min.js.map +0 -1
  745. package/node_modules/tldts/dist/index.umd.min.js +0 -2
  746. package/node_modules/tldts/dist/index.umd.min.js.map +0 -1
  747. package/node_modules/tldts/dist/types/index.d.ts +0 -7
  748. package/node_modules/tldts/dist/types/src/data/trie.d.ts +0 -5
  749. package/node_modules/tldts/dist/types/src/suffix-trie.d.ts +0 -5
  750. package/node_modules/tldts/index.ts +0 -62
  751. package/node_modules/tldts/package.json +0 -91
  752. package/node_modules/tldts/src/data/trie.ts +0 -14
  753. package/node_modules/tldts/src/suffix-trie.ts +0 -110
  754. package/node_modules/tldts-core/LICENSE +0 -13
  755. package/node_modules/tldts-core/README.md +0 -3
  756. package/node_modules/tldts-core/dist/cjs/index.js +0 -561
  757. package/node_modules/tldts-core/dist/cjs/index.js.map +0 -1
  758. package/node_modules/tldts-core/dist/cjs/src/domain-without-suffix.js +0 -15
  759. package/node_modules/tldts-core/dist/cjs/src/domain-without-suffix.js.map +0 -1
  760. package/node_modules/tldts-core/dist/cjs/src/domain.js +0 -83
  761. package/node_modules/tldts-core/dist/cjs/src/domain.js.map +0 -1
  762. package/node_modules/tldts-core/dist/cjs/src/extract-hostname.js +0 -149
  763. package/node_modules/tldts-core/dist/cjs/src/extract-hostname.js.map +0 -1
  764. package/node_modules/tldts-core/dist/cjs/src/factory.js +0 -104
  765. package/node_modules/tldts-core/dist/cjs/src/factory.js.map +0 -1
  766. package/node_modules/tldts-core/dist/cjs/src/is-ip.js +0 -72
  767. package/node_modules/tldts-core/dist/cjs/src/is-ip.js.map +0 -1
  768. package/node_modules/tldts-core/dist/cjs/src/is-valid.js +0 -69
  769. package/node_modules/tldts-core/dist/cjs/src/is-valid.js.map +0 -1
  770. package/node_modules/tldts-core/dist/cjs/src/lookup/fast-path.js +0 -69
  771. package/node_modules/tldts-core/dist/cjs/src/lookup/fast-path.js.map +0 -1
  772. package/node_modules/tldts-core/dist/cjs/src/lookup/interface.js +0 -3
  773. package/node_modules/tldts-core/dist/cjs/src/lookup/interface.js.map +0 -1
  774. package/node_modules/tldts-core/dist/cjs/src/options.js +0 -22
  775. package/node_modules/tldts-core/dist/cjs/src/options.js.map +0 -1
  776. package/node_modules/tldts-core/dist/cjs/src/subdomain.js +0 -14
  777. package/node_modules/tldts-core/dist/cjs/src/subdomain.js.map +0 -1
  778. package/node_modules/tldts-core/dist/cjs/tsconfig.tsbuildinfo +0 -1
  779. package/node_modules/tldts-core/dist/es6/index.js +0 -4
  780. package/node_modules/tldts-core/dist/es6/index.js.map +0 -1
  781. package/node_modules/tldts-core/dist/es6/src/domain-without-suffix.js +0 -12
  782. package/node_modules/tldts-core/dist/es6/src/domain-without-suffix.js.map +0 -1
  783. package/node_modules/tldts-core/dist/es6/src/domain.js +0 -80
  784. package/node_modules/tldts-core/dist/es6/src/domain.js.map +0 -1
  785. package/node_modules/tldts-core/dist/es6/src/extract-hostname.js +0 -146
  786. package/node_modules/tldts-core/dist/es6/src/extract-hostname.js.map +0 -1
  787. package/node_modules/tldts-core/dist/es6/src/factory.js +0 -99
  788. package/node_modules/tldts-core/dist/es6/src/factory.js.map +0 -1
  789. package/node_modules/tldts-core/dist/es6/src/is-ip.js +0 -69
  790. package/node_modules/tldts-core/dist/es6/src/is-ip.js.map +0 -1
  791. package/node_modules/tldts-core/dist/es6/src/is-valid.js +0 -66
  792. package/node_modules/tldts-core/dist/es6/src/is-valid.js.map +0 -1
  793. package/node_modules/tldts-core/dist/es6/src/lookup/fast-path.js +0 -66
  794. package/node_modules/tldts-core/dist/es6/src/lookup/fast-path.js.map +0 -1
  795. package/node_modules/tldts-core/dist/es6/src/lookup/interface.js +0 -2
  796. package/node_modules/tldts-core/dist/es6/src/lookup/interface.js.map +0 -1
  797. package/node_modules/tldts-core/dist/es6/src/options.js +0 -19
  798. package/node_modules/tldts-core/dist/es6/src/options.js.map +0 -1
  799. package/node_modules/tldts-core/dist/es6/src/subdomain.js +0 -11
  800. package/node_modules/tldts-core/dist/es6/src/subdomain.js.map +0 -1
  801. package/node_modules/tldts-core/dist/es6/tsconfig.bundle.tsbuildinfo +0 -1
  802. package/node_modules/tldts-core/dist/types/index.d.ts +0 -4
  803. package/node_modules/tldts-core/dist/types/src/domain-without-suffix.d.ts +0 -6
  804. package/node_modules/tldts-core/dist/types/src/domain.d.ts +0 -5
  805. package/node_modules/tldts-core/dist/types/src/extract-hostname.d.ts +0 -5
  806. package/node_modules/tldts-core/dist/types/src/factory.d.ts +0 -28
  807. package/node_modules/tldts-core/dist/types/src/is-ip.d.ts +0 -6
  808. package/node_modules/tldts-core/dist/types/src/is-valid.d.ts +0 -15
  809. package/node_modules/tldts-core/dist/types/src/lookup/fast-path.d.ts +0 -2
  810. package/node_modules/tldts-core/dist/types/src/lookup/interface.d.ts +0 -9
  811. package/node_modules/tldts-core/dist/types/src/options.d.ts +0 -10
  812. package/node_modules/tldts-core/dist/types/src/subdomain.d.ts +0 -4
  813. package/node_modules/tldts-core/index.ts +0 -10
  814. package/node_modules/tldts-core/package.json +0 -68
  815. package/node_modules/tldts-core/src/domain-without-suffix.ts +0 -14
  816. package/node_modules/tldts-core/src/domain.ts +0 -100
  817. package/node_modules/tldts-core/src/extract-hostname.ts +0 -170
  818. package/node_modules/tldts-core/src/factory.ts +0 -160
  819. package/node_modules/tldts-core/src/is-ip.ts +0 -87
  820. package/node_modules/tldts-core/src/is-valid.ts +0 -79
  821. package/node_modules/tldts-core/src/lookup/fast-path.ts +0 -80
  822. package/node_modules/tldts-core/src/lookup/interface.ts +0 -10
  823. package/node_modules/tldts-core/src/options.ts +0 -39
  824. package/node_modules/tldts-core/src/subdomain.ts +0 -11
  825. package/node_modules/tough-cookie/LICENSE +0 -12
  826. package/node_modules/tough-cookie/README.md +0 -154
  827. package/node_modules/tough-cookie/dist/cookie/canonicalDomain.d.ts +0 -33
  828. package/node_modules/tough-cookie/dist/cookie/canonicalDomain.js +0 -65
  829. package/node_modules/tough-cookie/dist/cookie/constants.d.ts +0 -54
  830. package/node_modules/tough-cookie/dist/cookie/constants.js +0 -38
  831. package/node_modules/tough-cookie/dist/cookie/cookie.d.ts +0 -326
  832. package/node_modules/tough-cookie/dist/cookie/cookie.js +0 -831
  833. package/node_modules/tough-cookie/dist/cookie/cookieCompare.d.ts +0 -58
  834. package/node_modules/tough-cookie/dist/cookie/cookieCompare.js +0 -84
  835. package/node_modules/tough-cookie/dist/cookie/cookieJar.d.ts +0 -621
  836. package/node_modules/tough-cookie/dist/cookie/cookieJar.js +0 -1000
  837. package/node_modules/tough-cookie/dist/cookie/defaultPath.d.ts +0 -40
  838. package/node_modules/tough-cookie/dist/cookie/defaultPath.js +0 -60
  839. package/node_modules/tough-cookie/dist/cookie/domainMatch.d.ts +0 -38
  840. package/node_modules/tough-cookie/dist/cookie/domainMatch.js +0 -94
  841. package/node_modules/tough-cookie/dist/cookie/formatDate.d.ts +0 -15
  842. package/node_modules/tough-cookie/dist/cookie/formatDate.js +0 -20
  843. package/node_modules/tough-cookie/dist/cookie/index.d.ts +0 -29
  844. package/node_modules/tough-cookie/dist/cookie/index.js +0 -54
  845. package/node_modules/tough-cookie/dist/cookie/parseDate.d.ts +0 -103
  846. package/node_modules/tough-cookie/dist/cookie/parseDate.js +0 -323
  847. package/node_modules/tough-cookie/dist/cookie/permutePath.d.ts +0 -14
  848. package/node_modules/tough-cookie/dist/cookie/permutePath.js +0 -32
  849. package/node_modules/tough-cookie/dist/getPublicSuffix.d.ts +0 -55
  850. package/node_modules/tough-cookie/dist/getPublicSuffix.js +0 -71
  851. package/node_modules/tough-cookie/dist/memstore.d.ts +0 -220
  852. package/node_modules/tough-cookie/dist/memstore.js +0 -187
  853. package/node_modules/tough-cookie/dist/pathMatch.d.ts +0 -17
  854. package/node_modules/tough-cookie/dist/pathMatch.js +0 -40
  855. package/node_modules/tough-cookie/dist/permuteDomain.d.ts +0 -15
  856. package/node_modules/tough-cookie/dist/permuteDomain.js +0 -44
  857. package/node_modules/tough-cookie/dist/store.d.ts +0 -211
  858. package/node_modules/tough-cookie/dist/store.js +0 -76
  859. package/node_modules/tough-cookie/dist/utils.d.ts +0 -34
  860. package/node_modules/tough-cookie/dist/utils.js +0 -99
  861. package/node_modules/tough-cookie/dist/validators.d.ts +0 -24
  862. package/node_modules/tough-cookie/dist/validators.js +0 -90
  863. package/node_modules/tough-cookie/dist/version.d.ts +0 -5
  864. package/node_modules/tough-cookie/dist/version.js +0 -8
  865. package/node_modules/tough-cookie/package.json +0 -144
  866. package/node_modules/ws/LICENSE +0 -20
  867. package/node_modules/ws/README.md +0 -548
  868. package/node_modules/ws/browser.js +0 -8
  869. package/node_modules/ws/index.js +0 -22
  870. package/node_modules/ws/lib/buffer-util.js +0 -131
  871. package/node_modules/ws/lib/constants.js +0 -19
  872. package/node_modules/ws/lib/event-target.js +0 -292
  873. package/node_modules/ws/lib/extension.js +0 -203
  874. package/node_modules/ws/lib/limiter.js +0 -55
  875. package/node_modules/ws/lib/permessage-deflate.js +0 -530
  876. package/node_modules/ws/lib/receiver.js +0 -743
  877. package/node_modules/ws/lib/sender.js +0 -607
  878. package/node_modules/ws/lib/stream.js +0 -161
  879. package/node_modules/ws/lib/subprotocol.js +0 -62
  880. package/node_modules/ws/lib/validation.js +0 -152
  881. package/node_modules/ws/lib/websocket-server.js +0 -562
  882. package/node_modules/ws/lib/websocket.js +0 -1407
  883. package/node_modules/ws/package.json +0 -74
  884. package/node_modules/ws/wrapper.mjs +0 -21
  885. package/node_modules/zca-js/.prettierrc +0 -5
  886. package/node_modules/zca-js/CODE_OF_CONDUCT.md +0 -163
  887. package/node_modules/zca-js/CONTRIBUTING.md +0 -470
  888. package/node_modules/zca-js/LICENSE +0 -21
  889. package/node_modules/zca-js/README.md +0 -225
  890. package/node_modules/zca-js/SECURITY.md +0 -83
  891. package/node_modules/zca-js/dist/Errors/ZaloApiError.d.ts +0 -4
  892. package/node_modules/zca-js/dist/Errors/ZaloApiError.js +0 -7
  893. package/node_modules/zca-js/dist/Errors/ZaloApiLoginQRAborted.d.ts +0 -4
  894. package/node_modules/zca-js/dist/Errors/ZaloApiLoginQRAborted.js +0 -7
  895. package/node_modules/zca-js/dist/Errors/ZaloApiLoginQRDeclined.d.ts +0 -4
  896. package/node_modules/zca-js/dist/Errors/ZaloApiLoginQRDeclined.js +0 -7
  897. package/node_modules/zca-js/dist/Errors/ZaloApiMissingImageMetadataGetter.d.ts +0 -4
  898. package/node_modules/zca-js/dist/Errors/ZaloApiMissingImageMetadataGetter.js +0 -7
  899. package/node_modules/zca-js/dist/Errors/index.d.ts +0 -4
  900. package/node_modules/zca-js/dist/Errors/index.js +0 -4
  901. package/node_modules/zca-js/dist/apis/acceptFriendRequest.d.ts +0 -2
  902. package/node_modules/zca-js/dist/apis/acceptFriendRequest.js +0 -28
  903. package/node_modules/zca-js/dist/apis/addGroupBlockedMember.d.ts +0 -2
  904. package/node_modules/zca-js/dist/apis/addGroupBlockedMember.js +0 -28
  905. package/node_modules/zca-js/dist/apis/addGroupDeputy.d.ts +0 -2
  906. package/node_modules/zca-js/dist/apis/addGroupDeputy.js +0 -30
  907. package/node_modules/zca-js/dist/apis/addPollOptions.d.ts +0 -14
  908. package/node_modules/zca-js/dist/apis/addPollOptions.js +0 -26
  909. package/node_modules/zca-js/dist/apis/addQuickMessage.d.ts +0 -11
  910. package/node_modules/zca-js/dist/apis/addQuickMessage.js +0 -60
  911. package/node_modules/zca-js/dist/apis/addReaction.d.ts +0 -18
  912. package/node_modules/zca-js/dist/apis/addReaction.js +0 -294
  913. package/node_modules/zca-js/dist/apis/addUnreadMark.d.ts +0 -8
  914. package/node_modules/zca-js/dist/apis/addUnreadMark.js +0 -52
  915. package/node_modules/zca-js/dist/apis/addUserToGroup.d.ts +0 -5
  916. package/node_modules/zca-js/dist/apis/addUserToGroup.js +0 -34
  917. package/node_modules/zca-js/dist/apis/blockUser.d.ts +0 -2
  918. package/node_modules/zca-js/dist/apis/blockUser.js +0 -28
  919. package/node_modules/zca-js/dist/apis/blockViewFeed.d.ts +0 -2
  920. package/node_modules/zca-js/dist/apis/blockViewFeed.js +0 -30
  921. package/node_modules/zca-js/dist/apis/changeAccountAvatar.d.ts +0 -3
  922. package/node_modules/zca-js/dist/apis/changeAccountAvatar.js +0 -52
  923. package/node_modules/zca-js/dist/apis/changeFriendAlias.d.ts +0 -2
  924. package/node_modules/zca-js/dist/apis/changeFriendAlias.js +0 -27
  925. package/node_modules/zca-js/dist/apis/changeGroupAvatar.d.ts +0 -3
  926. package/node_modules/zca-js/dist/apis/changeGroupAvatar.js +0 -44
  927. package/node_modules/zca-js/dist/apis/changeGroupName.d.ts +0 -4
  928. package/node_modules/zca-js/dist/apis/changeGroupName.js +0 -32
  929. package/node_modules/zca-js/dist/apis/changeGroupOwner.d.ts +0 -4
  930. package/node_modules/zca-js/dist/apis/changeGroupOwner.js +0 -30
  931. package/node_modules/zca-js/dist/apis/createAutoReply.d.ts +0 -14
  932. package/node_modules/zca-js/dist/apis/createAutoReply.js +0 -37
  933. package/node_modules/zca-js/dist/apis/createBankAccount.d.ts +0 -8
  934. package/node_modules/zca-js/dist/apis/createBankAccount.js +0 -32
  935. package/node_modules/zca-js/dist/apis/createCatalog.d.ts +0 -7
  936. package/node_modules/zca-js/dist/apis/createCatalog.js +0 -29
  937. package/node_modules/zca-js/dist/apis/createGroup.d.ts +0 -28
  938. package/node_modules/zca-js/dist/apis/createGroup.js +0 -43
  939. package/node_modules/zca-js/dist/apis/createNote.d.ts +0 -7
  940. package/node_modules/zca-js/dist/apis/createNote.js +0 -47
  941. package/node_modules/zca-js/dist/apis/createPoll.d.ts +0 -36
  942. package/node_modules/zca-js/dist/apis/createPoll.js +0 -40
  943. package/node_modules/zca-js/dist/apis/createProductCatalog.d.ts +0 -23
  944. package/node_modules/zca-js/dist/apis/createProductCatalog.js +0 -50
  945. package/node_modules/zca-js/dist/apis/createReminder.d.ts +0 -12
  946. package/node_modules/zca-js/dist/apis/createReminder.js +0 -63
  947. package/node_modules/zca-js/dist/apis/custom.d.ts +0 -9
  948. package/node_modules/zca-js/dist/apis/custom.js +0 -15
  949. package/node_modules/zca-js/dist/apis/deleteAutoReply.d.ts +0 -5
  950. package/node_modules/zca-js/dist/apis/deleteAutoReply.js +0 -29
  951. package/node_modules/zca-js/dist/apis/deleteAvatar.d.ts +0 -9
  952. package/node_modules/zca-js/dist/apis/deleteAvatar.js +0 -27
  953. package/node_modules/zca-js/dist/apis/deleteBankAccount.d.ts +0 -11
  954. package/node_modules/zca-js/dist/apis/deleteBankAccount.js +0 -32
  955. package/node_modules/zca-js/dist/apis/deleteCatalog.d.ts +0 -2
  956. package/node_modules/zca-js/dist/apis/deleteCatalog.js +0 -28
  957. package/node_modules/zca-js/dist/apis/deleteChat.d.ts +0 -19
  958. package/node_modules/zca-js/dist/apis/deleteChat.js +0 -50
  959. package/node_modules/zca-js/dist/apis/deleteGroupInviteBox.d.ts +0 -9
  960. package/node_modules/zca-js/dist/apis/deleteGroupInviteBox.js +0 -27
  961. package/node_modules/zca-js/dist/apis/deleteMessage.d.ts +0 -14
  962. package/node_modules/zca-js/dist/apis/deleteMessage.js +0 -52
  963. package/node_modules/zca-js/dist/apis/deleteProductCatalog.d.ts +0 -10
  964. package/node_modules/zca-js/dist/apis/deleteProductCatalog.js +0 -31
  965. package/node_modules/zca-js/dist/apis/disableGroupLink.d.ts +0 -2
  966. package/node_modules/zca-js/dist/apis/disableGroupLink.js +0 -24
  967. package/node_modules/zca-js/dist/apis/disperseGroup.d.ts +0 -2
  968. package/node_modules/zca-js/dist/apis/disperseGroup.js +0 -28
  969. package/node_modules/zca-js/dist/apis/editNote.d.ts +0 -17
  970. package/node_modules/zca-js/dist/apis/editNote.js +0 -46
  971. package/node_modules/zca-js/dist/apis/editReminder.d.ts +0 -13
  972. package/node_modules/zca-js/dist/apis/editReminder.js +0 -61
  973. package/node_modules/zca-js/dist/apis/enableGroupLink.d.ts +0 -6
  974. package/node_modules/zca-js/dist/apis/enableGroupLink.js +0 -25
  975. package/node_modules/zca-js/dist/apis/fetchAccountInfo.d.ts +0 -5
  976. package/node_modules/zca-js/dist/apis/fetchAccountInfo.js +0 -10
  977. package/node_modules/zca-js/dist/apis/findUser.d.ts +0 -3
  978. package/node_modules/zca-js/dist/apis/findUser.js +0 -42
  979. package/node_modules/zca-js/dist/apis/findUserByUsername.d.ts +0 -3
  980. package/node_modules/zca-js/dist/apis/findUserByUsername.js +0 -27
  981. package/node_modules/zca-js/dist/apis/forwardMessage.d.ts +0 -24
  982. package/node_modules/zca-js/dist/apis/forwardMessage.js +0 -114
  983. package/node_modules/zca-js/dist/apis/getAliasList.d.ts +0 -8
  984. package/node_modules/zca-js/dist/apis/getAliasList.js +0 -27
  985. package/node_modules/zca-js/dist/apis/getAllFriends.d.ts +0 -3
  986. package/node_modules/zca-js/dist/apis/getAllFriends.js +0 -34
  987. package/node_modules/zca-js/dist/apis/getAllGroups.d.ts +0 -7
  988. package/node_modules/zca-js/dist/apis/getAllGroups.js +0 -10
  989. package/node_modules/zca-js/dist/apis/getArchivedChatList.d.ts +0 -5
  990. package/node_modules/zca-js/dist/apis/getArchivedChatList.js +0 -23
  991. package/node_modules/zca-js/dist/apis/getAutoDeleteChat.d.ts +0 -9
  992. package/node_modules/zca-js/dist/apis/getAutoDeleteChat.js +0 -21
  993. package/node_modules/zca-js/dist/apis/getAutoReplyList.d.ts +0 -6
  994. package/node_modules/zca-js/dist/apis/getAutoReplyList.js +0 -24
  995. package/node_modules/zca-js/dist/apis/getAvatarList.d.ts +0 -12
  996. package/node_modules/zca-js/dist/apis/getAvatarList.js +0 -28
  997. package/node_modules/zca-js/dist/apis/getAvatarUrlProfile.d.ts +0 -7
  998. package/node_modules/zca-js/dist/apis/getAvatarUrlProfile.js +0 -30
  999. package/node_modules/zca-js/dist/apis/getBizAccount.d.ts +0 -24
  1000. package/node_modules/zca-js/dist/apis/getBizAccount.js +0 -27
  1001. package/node_modules/zca-js/dist/apis/getCatalogList.d.ts +0 -18
  1002. package/node_modules/zca-js/dist/apis/getCatalogList.js +0 -32
  1003. package/node_modules/zca-js/dist/apis/getCloseFriends.d.ts +0 -3
  1004. package/node_modules/zca-js/dist/apis/getCloseFriends.js +0 -20
  1005. package/node_modules/zca-js/dist/apis/getContext.d.ts +0 -1
  1006. package/node_modules/zca-js/dist/apis/getContext.js +0 -4
  1007. package/node_modules/zca-js/dist/apis/getCookie.d.ts +0 -1
  1008. package/node_modules/zca-js/dist/apis/getCookie.js +0 -9
  1009. package/node_modules/zca-js/dist/apis/getFriendBoardList.d.ts +0 -5
  1010. package/node_modules/zca-js/dist/apis/getFriendBoardList.js +0 -26
  1011. package/node_modules/zca-js/dist/apis/getFriendOnlines.d.ts +0 -10
  1012. package/node_modules/zca-js/dist/apis/getFriendOnlines.js +0 -35
  1013. package/node_modules/zca-js/dist/apis/getFriendRecommendations.d.ts +0 -42
  1014. package/node_modules/zca-js/dist/apis/getFriendRecommendations.js +0 -27
  1015. package/node_modules/zca-js/dist/apis/getFriendRequestStatus.d.ts +0 -8
  1016. package/node_modules/zca-js/dist/apis/getFriendRequestStatus.js +0 -25
  1017. package/node_modules/zca-js/dist/apis/getFullAvatar.d.ts +0 -5
  1018. package/node_modules/zca-js/dist/apis/getFullAvatar.js +0 -25
  1019. package/node_modules/zca-js/dist/apis/getGroupBlockedMember.d.ts +0 -23
  1020. package/node_modules/zca-js/dist/apis/getGroupBlockedMember.js +0 -29
  1021. package/node_modules/zca-js/dist/apis/getGroupChatHistory.d.ts +0 -8
  1022. package/node_modules/zca-js/dist/apis/getGroupChatHistory.js +0 -36
  1023. package/node_modules/zca-js/dist/apis/getGroupInfo.d.ts +0 -16
  1024. package/node_modules/zca-js/dist/apis/getGroupInfo.js +0 -32
  1025. package/node_modules/zca-js/dist/apis/getGroupInviteBoxInfo.d.ts +0 -32
  1026. package/node_modules/zca-js/dist/apis/getGroupInviteBoxInfo.js +0 -38
  1027. package/node_modules/zca-js/dist/apis/getGroupInviteBoxList.d.ts +0 -38
  1028. package/node_modules/zca-js/dist/apis/getGroupInviteBoxList.js +0 -31
  1029. package/node_modules/zca-js/dist/apis/getGroupLinkDetail.d.ts +0 -9
  1030. package/node_modules/zca-js/dist/apis/getGroupLinkDetail.js +0 -25
  1031. package/node_modules/zca-js/dist/apis/getGroupLinkInfo.d.ts +0 -34
  1032. package/node_modules/zca-js/dist/apis/getGroupLinkInfo.js +0 -28
  1033. package/node_modules/zca-js/dist/apis/getGroupMembersInfo.d.ts +0 -17
  1034. package/node_modules/zca-js/dist/apis/getGroupMembersInfo.js +0 -24
  1035. package/node_modules/zca-js/dist/apis/getHiddenConversations.d.ts +0 -11
  1036. package/node_modules/zca-js/dist/apis/getHiddenConversations.js +0 -23
  1037. package/node_modules/zca-js/dist/apis/getLabels.d.ts +0 -7
  1038. package/node_modules/zca-js/dist/apis/getLabels.js +0 -28
  1039. package/node_modules/zca-js/dist/apis/getListBank.d.ts +0 -5
  1040. package/node_modules/zca-js/dist/apis/getListBank.js +0 -20
  1041. package/node_modules/zca-js/dist/apis/getListBankAccount.d.ts +0 -7
  1042. package/node_modules/zca-js/dist/apis/getListBankAccount.js +0 -27
  1043. package/node_modules/zca-js/dist/apis/getListBoard.d.ts +0 -21
  1044. package/node_modules/zca-js/dist/apis/getListBoard.js +0 -45
  1045. package/node_modules/zca-js/dist/apis/getListDevice.d.ts +0 -10
  1046. package/node_modules/zca-js/dist/apis/getListDevice.js +0 -22
  1047. package/node_modules/zca-js/dist/apis/getListReminder.d.ts +0 -28
  1048. package/node_modules/zca-js/dist/apis/getListReminder.js +0 -47
  1049. package/node_modules/zca-js/dist/apis/getMultiUsersByPhones.d.ts +0 -5
  1050. package/node_modules/zca-js/dist/apis/getMultiUsersByPhones.js +0 -39
  1051. package/node_modules/zca-js/dist/apis/getMute.d.ts +0 -13
  1052. package/node_modules/zca-js/dist/apis/getMute.js +0 -22
  1053. package/node_modules/zca-js/dist/apis/getOwnId.d.ts +0 -1
  1054. package/node_modules/zca-js/dist/apis/getOwnId.js +0 -4
  1055. package/node_modules/zca-js/dist/apis/getPendingGroupMembers.d.ts +0 -11
  1056. package/node_modules/zca-js/dist/apis/getPendingGroupMembers.js +0 -27
  1057. package/node_modules/zca-js/dist/apis/getPinConversations.d.ts +0 -5
  1058. package/node_modules/zca-js/dist/apis/getPinConversations.js +0 -22
  1059. package/node_modules/zca-js/dist/apis/getPollDetail.d.ts +0 -3
  1060. package/node_modules/zca-js/dist/apis/getPollDetail.js +0 -30
  1061. package/node_modules/zca-js/dist/apis/getProductCatalogList.d.ts +0 -20
  1062. package/node_modules/zca-js/dist/apis/getProductCatalogList.js +0 -33
  1063. package/node_modules/zca-js/dist/apis/getQR.d.ts +0 -4
  1064. package/node_modules/zca-js/dist/apis/getQR.js +0 -29
  1065. package/node_modules/zca-js/dist/apis/getQuickMessageList.d.ts +0 -7
  1066. package/node_modules/zca-js/dist/apis/getQuickMessageList.js +0 -24
  1067. package/node_modules/zca-js/dist/apis/getRelatedFriendGroup.d.ts +0 -6
  1068. package/node_modules/zca-js/dist/apis/getRelatedFriendGroup.js +0 -30
  1069. package/node_modules/zca-js/dist/apis/getReminder.d.ts +0 -3
  1070. package/node_modules/zca-js/dist/apis/getReminder.js +0 -25
  1071. package/node_modules/zca-js/dist/apis/getReminderResponses.d.ts +0 -5
  1072. package/node_modules/zca-js/dist/apis/getReminderResponses.js +0 -24
  1073. package/node_modules/zca-js/dist/apis/getSentFriendRequest.d.ts +0 -18
  1074. package/node_modules/zca-js/dist/apis/getSentFriendRequest.js +0 -24
  1075. package/node_modules/zca-js/dist/apis/getSettings.d.ts +0 -3
  1076. package/node_modules/zca-js/dist/apis/getSettings.js +0 -20
  1077. package/node_modules/zca-js/dist/apis/getStickerCategoryDetail.d.ts +0 -3
  1078. package/node_modules/zca-js/dist/apis/getStickerCategoryDetail.js +0 -24
  1079. package/node_modules/zca-js/dist/apis/getStickers.d.ts +0 -1
  1080. package/node_modules/zca-js/dist/apis/getStickers.js +0 -40
  1081. package/node_modules/zca-js/dist/apis/getStickersDetail.d.ts +0 -3
  1082. package/node_modules/zca-js/dist/apis/getStickersDetail.js +0 -40
  1083. package/node_modules/zca-js/dist/apis/getUnreadMark.d.ts +0 -14
  1084. package/node_modules/zca-js/dist/apis/getUnreadMark.js +0 -30
  1085. package/node_modules/zca-js/dist/apis/getUserInfo.d.ts +0 -8
  1086. package/node_modules/zca-js/dist/apis/getUserInfo.js +0 -44
  1087. package/node_modules/zca-js/dist/apis/inviteUserToGroups.d.ts +0 -10
  1088. package/node_modules/zca-js/dist/apis/inviteUserToGroups.js +0 -30
  1089. package/node_modules/zca-js/dist/apis/joinGroupInviteBox.d.ts +0 -2
  1090. package/node_modules/zca-js/dist/apis/joinGroupInviteBox.js +0 -25
  1091. package/node_modules/zca-js/dist/apis/joinGroupLink.d.ts +0 -2
  1092. package/node_modules/zca-js/dist/apis/joinGroupLink.js +0 -27
  1093. package/node_modules/zca-js/dist/apis/keepAlive.d.ts +0 -4
  1094. package/node_modules/zca-js/dist/apis/keepAlive.js +0 -22
  1095. package/node_modules/zca-js/dist/apis/lastOnline.d.ts +0 -7
  1096. package/node_modules/zca-js/dist/apis/lastOnline.js +0 -26
  1097. package/node_modules/zca-js/dist/apis/leaveGroup.d.ts +0 -4
  1098. package/node_modules/zca-js/dist/apis/leaveGroup.js +0 -33
  1099. package/node_modules/zca-js/dist/apis/listen.d.ts +0 -102
  1100. package/node_modules/zca-js/dist/apis/listen.js +0 -425
  1101. package/node_modules/zca-js/dist/apis/lockPoll.d.ts +0 -2
  1102. package/node_modules/zca-js/dist/apis/lockPoll.js +0 -28
  1103. package/node_modules/zca-js/dist/apis/login.d.ts +0 -3
  1104. package/node_modules/zca-js/dist/apis/login.js +0 -96
  1105. package/node_modules/zca-js/dist/apis/loginQR.d.ts +0 -71
  1106. package/node_modules/zca-js/dist/apis/loginQR.js +0 -376
  1107. package/node_modules/zca-js/dist/apis/logoutV2.js +0 -79
  1108. package/node_modules/zca-js/dist/apis/lostFocus.d.ts +0 -4
  1109. package/node_modules/zca-js/dist/apis/lostFocus.js +0 -23
  1110. package/node_modules/zca-js/dist/apis/parseLink.d.ts +0 -21
  1111. package/node_modules/zca-js/dist/apis/parseLink.js +0 -27
  1112. package/node_modules/zca-js/dist/apis/registerCatalog.d.ts +0 -2
  1113. package/node_modules/zca-js/dist/apis/registerCatalog.js +0 -27
  1114. package/node_modules/zca-js/dist/apis/rejectFriendRequest.d.ts +0 -2
  1115. package/node_modules/zca-js/dist/apis/rejectFriendRequest.js +0 -27
  1116. package/node_modules/zca-js/dist/apis/removeFriend.d.ts +0 -2
  1117. package/node_modules/zca-js/dist/apis/removeFriend.js +0 -28
  1118. package/node_modules/zca-js/dist/apis/removeFriendAlias.d.ts +0 -2
  1119. package/node_modules/zca-js/dist/apis/removeFriendAlias.js +0 -24
  1120. package/node_modules/zca-js/dist/apis/removeGroupBlockedMember.d.ts +0 -2
  1121. package/node_modules/zca-js/dist/apis/removeGroupBlockedMember.js +0 -28
  1122. package/node_modules/zca-js/dist/apis/removeGroupDeputy.d.ts +0 -2
  1123. package/node_modules/zca-js/dist/apis/removeGroupDeputy.js +0 -30
  1124. package/node_modules/zca-js/dist/apis/removeQuickMessage.d.ts +0 -5
  1125. package/node_modules/zca-js/dist/apis/removeQuickMessage.js +0 -27
  1126. package/node_modules/zca-js/dist/apis/removeReminder.d.ts +0 -3
  1127. package/node_modules/zca-js/dist/apis/removeReminder.js +0 -40
  1128. package/node_modules/zca-js/dist/apis/removeUnreadMark.d.ts +0 -8
  1129. package/node_modules/zca-js/dist/apis/removeUnreadMark.js +0 -50
  1130. package/node_modules/zca-js/dist/apis/removeUserFromGroup.d.ts +0 -4
  1131. package/node_modules/zca-js/dist/apis/removeUserFromGroup.js +0 -34
  1132. package/node_modules/zca-js/dist/apis/resetHiddenConversPin.d.ts +0 -2
  1133. package/node_modules/zca-js/dist/apis/resetHiddenConversPin.js +0 -20
  1134. package/node_modules/zca-js/dist/apis/reuseAvatar.d.ts +0 -2
  1135. package/node_modules/zca-js/dist/apis/reuseAvatar.js +0 -26
  1136. package/node_modules/zca-js/dist/apis/reviewPendingMemberRequest.d.ts +0 -14
  1137. package/node_modules/zca-js/dist/apis/reviewPendingMemberRequest.js +0 -38
  1138. package/node_modules/zca-js/dist/apis/scanURL.d.ts +0 -4
  1139. package/node_modules/zca-js/dist/apis/scanURL.js +0 -28
  1140. package/node_modules/zca-js/dist/apis/searchSticker.d.ts +0 -3
  1141. package/node_modules/zca-js/dist/apis/searchSticker.js +0 -28
  1142. package/node_modules/zca-js/dist/apis/sendBankCard.d.ts +0 -9
  1143. package/node_modules/zca-js/dist/apis/sendBankCard.js +0 -53
  1144. package/node_modules/zca-js/dist/apis/sendCard.d.ts +0 -10
  1145. package/node_modules/zca-js/dist/apis/sendCard.js +0 -75
  1146. package/node_modules/zca-js/dist/apis/sendDeliveredEvent.d.ts +0 -16
  1147. package/node_modules/zca-js/dist/apis/sendDeliveredEvent.js +0 -55
  1148. package/node_modules/zca-js/dist/apis/sendFriendRequest.d.ts +0 -2
  1149. package/node_modules/zca-js/dist/apis/sendFriendRequest.js +0 -39
  1150. package/node_modules/zca-js/dist/apis/sendLink.d.ts +0 -10
  1151. package/node_modules/zca-js/dist/apis/sendLink.js +0 -78
  1152. package/node_modules/zca-js/dist/apis/sendMessage.d.ts +0 -105
  1153. package/node_modules/zca-js/dist/apis/sendMessage.js +0 -486
  1154. package/node_modules/zca-js/dist/apis/sendReport.d.ts +0 -17
  1155. package/node_modules/zca-js/dist/apis/sendReport.js +0 -53
  1156. package/node_modules/zca-js/dist/apis/sendSeenEvent.d.ts +0 -16
  1157. package/node_modules/zca-js/dist/apis/sendSeenEvent.js +0 -63
  1158. package/node_modules/zca-js/dist/apis/sendSticker.d.ts +0 -10
  1159. package/node_modules/zca-js/dist/apis/sendSticker.js +0 -74
  1160. package/node_modules/zca-js/dist/apis/sendTypingEvent.d.ts +0 -5
  1161. package/node_modules/zca-js/dist/apis/sendTypingEvent.js +0 -33
  1162. package/node_modules/zca-js/dist/apis/sendVideo.d.ts +0 -35
  1163. package/node_modules/zca-js/dist/apis/sendVideo.js +0 -134
  1164. package/node_modules/zca-js/dist/apis/sendVoice.d.ts +0 -12
  1165. package/node_modules/zca-js/dist/apis/sendVoice.js +0 -89
  1166. package/node_modules/zca-js/dist/apis/setHiddenConversations.d.ts +0 -3
  1167. package/node_modules/zca-js/dist/apis/setHiddenConversations.js +0 -39
  1168. package/node_modules/zca-js/dist/apis/setMute.d.ts +0 -20
  1169. package/node_modules/zca-js/dist/apis/setMute.js +0 -67
  1170. package/node_modules/zca-js/dist/apis/setPinnedConversations.d.ts +0 -3
  1171. package/node_modules/zca-js/dist/apis/setPinnedConversations.js +0 -34
  1172. package/node_modules/zca-js/dist/apis/sharePoll.d.ts +0 -2
  1173. package/node_modules/zca-js/dist/apis/sharePoll.js +0 -28
  1174. package/node_modules/zca-js/dist/apis/unblockUser.d.ts +0 -2
  1175. package/node_modules/zca-js/dist/apis/unblockUser.js +0 -28
  1176. package/node_modules/zca-js/dist/apis/undo.d.ts +0 -9
  1177. package/node_modules/zca-js/dist/apis/undo.js +0 -42
  1178. package/node_modules/zca-js/dist/apis/undoFriendRequest.d.ts +0 -2
  1179. package/node_modules/zca-js/dist/apis/undoFriendRequest.js +0 -27
  1180. package/node_modules/zca-js/dist/apis/updateActiveStatus.d.ts +0 -4
  1181. package/node_modules/zca-js/dist/apis/updateActiveStatus.js +0 -27
  1182. package/node_modules/zca-js/dist/apis/updateArchivedChatList.d.ts +0 -10
  1183. package/node_modules/zca-js/dist/apis/updateArchivedChatList.js +0 -34
  1184. package/node_modules/zca-js/dist/apis/updateAutoDeleteChat.d.ts +0 -9
  1185. package/node_modules/zca-js/dist/apis/updateAutoDeleteChat.js +0 -40
  1186. package/node_modules/zca-js/dist/apis/updateAutoReply.d.ts +0 -15
  1187. package/node_modules/zca-js/dist/apis/updateAutoReply.js +0 -38
  1188. package/node_modules/zca-js/dist/apis/updateBankAccount.d.ts +0 -9
  1189. package/node_modules/zca-js/dist/apis/updateBankAccount.js +0 -31
  1190. package/node_modules/zca-js/dist/apis/updateCatalog.d.ts +0 -11
  1191. package/node_modules/zca-js/dist/apis/updateCatalog.js +0 -30
  1192. package/node_modules/zca-js/dist/apis/updateGroupSettings.d.ts +0 -40
  1193. package/node_modules/zca-js/dist/apis/updateGroupSettings.js +0 -43
  1194. package/node_modules/zca-js/dist/apis/updateHiddenConversPin.d.ts +0 -2
  1195. package/node_modules/zca-js/dist/apis/updateHiddenConversPin.js +0 -30
  1196. package/node_modules/zca-js/dist/apis/updateLabels.d.ts +0 -15
  1197. package/node_modules/zca-js/dist/apis/updateLabels.js +0 -34
  1198. package/node_modules/zca-js/dist/apis/updateLang.d.ts +0 -6
  1199. package/node_modules/zca-js/dist/apis/updateLang.js +0 -30
  1200. package/node_modules/zca-js/dist/apis/updateProductCatalog.d.ts +0 -25
  1201. package/node_modules/zca-js/dist/apis/updateProductCatalog.js +0 -51
  1202. package/node_modules/zca-js/dist/apis/updateProfile.d.ts +0 -20
  1203. package/node_modules/zca-js/dist/apis/updateProfile.js +0 -43
  1204. package/node_modules/zca-js/dist/apis/updateProfileBio.d.ts +0 -2
  1205. package/node_modules/zca-js/dist/apis/updateProfileBio.js +0 -27
  1206. package/node_modules/zca-js/dist/apis/updateQuickMessage.d.ts +0 -11
  1207. package/node_modules/zca-js/dist/apis/updateQuickMessage.js +0 -61
  1208. package/node_modules/zca-js/dist/apis/updateSettings.d.ts +0 -16
  1209. package/node_modules/zca-js/dist/apis/updateSettings.js +0 -90
  1210. package/node_modules/zca-js/dist/apis/upgradeGroupToCommunity.d.ts +0 -2
  1211. package/node_modules/zca-js/dist/apis/upgradeGroupToCommunity.js +0 -27
  1212. package/node_modules/zca-js/dist/apis/uploadAttachment.d.ts +0 -50
  1213. package/node_modules/zca-js/dist/apis/uploadAttachment.js +0 -197
  1214. package/node_modules/zca-js/dist/apis/uploadProductPhoto.d.ts +0 -14
  1215. package/node_modules/zca-js/dist/apis/uploadProductPhoto.js +0 -50
  1216. package/node_modules/zca-js/dist/apis/votePoll.d.ts +0 -5
  1217. package/node_modules/zca-js/dist/apis/votePoll.js +0 -29
  1218. package/node_modules/zca-js/dist/apis.d.ts +0 -317
  1219. package/node_modules/zca-js/dist/apis.js +0 -319
  1220. package/node_modules/zca-js/dist/cjs/Errors/ZaloApiError.cjs +0 -11
  1221. package/node_modules/zca-js/dist/cjs/Errors/ZaloApiLoginQRAborted.cjs +0 -12
  1222. package/node_modules/zca-js/dist/cjs/Errors/ZaloApiLoginQRDeclined.cjs +0 -12
  1223. package/node_modules/zca-js/dist/cjs/Errors/ZaloApiMissingImageMetadataGetter.cjs +0 -12
  1224. package/node_modules/zca-js/dist/cjs/apis/acceptFriendRequest.cjs +0 -33
  1225. package/node_modules/zca-js/dist/cjs/apis/addGroupBlockedMember.cjs +0 -33
  1226. package/node_modules/zca-js/dist/cjs/apis/addGroupDeputy.cjs +0 -35
  1227. package/node_modules/zca-js/dist/cjs/apis/addPollOptions.cjs +0 -31
  1228. package/node_modules/zca-js/dist/cjs/apis/addQuickMessage.cjs +0 -65
  1229. package/node_modules/zca-js/dist/cjs/apis/addReaction.cjs +0 -308
  1230. package/node_modules/zca-js/dist/cjs/apis/addUnreadMark.cjs +0 -66
  1231. package/node_modules/zca-js/dist/cjs/apis/addUserToGroup.cjs +0 -39
  1232. package/node_modules/zca-js/dist/cjs/apis/blockUser.cjs +0 -33
  1233. package/node_modules/zca-js/dist/cjs/apis/blockViewFeed.cjs +0 -35
  1234. package/node_modules/zca-js/dist/cjs/apis/changeAccountAvatar.cjs +0 -57
  1235. package/node_modules/zca-js/dist/cjs/apis/changeFriendAlias.cjs +0 -32
  1236. package/node_modules/zca-js/dist/cjs/apis/changeGroupAvatar.cjs +0 -49
  1237. package/node_modules/zca-js/dist/cjs/apis/changeGroupName.cjs +0 -37
  1238. package/node_modules/zca-js/dist/cjs/apis/changeGroupOwner.cjs +0 -35
  1239. package/node_modules/zca-js/dist/cjs/apis/createAutoReply.cjs +0 -42
  1240. package/node_modules/zca-js/dist/cjs/apis/createBankAccount.cjs +0 -37
  1241. package/node_modules/zca-js/dist/cjs/apis/createCatalog.cjs +0 -34
  1242. package/node_modules/zca-js/dist/cjs/apis/createGroup.cjs +0 -48
  1243. package/node_modules/zca-js/dist/cjs/apis/createNote.cjs +0 -52
  1244. package/node_modules/zca-js/dist/cjs/apis/createPoll.cjs +0 -45
  1245. package/node_modules/zca-js/dist/cjs/apis/createProductCatalog.cjs +0 -55
  1246. package/node_modules/zca-js/dist/cjs/apis/createReminder.cjs +0 -77
  1247. package/node_modules/zca-js/dist/cjs/apis/custom.cjs +0 -19
  1248. package/node_modules/zca-js/dist/cjs/apis/deleteAutoReply.cjs +0 -34
  1249. package/node_modules/zca-js/dist/cjs/apis/deleteAvatar.cjs +0 -32
  1250. package/node_modules/zca-js/dist/cjs/apis/deleteBankAccount.cjs +0 -37
  1251. package/node_modules/zca-js/dist/cjs/apis/deleteCatalog.cjs +0 -33
  1252. package/node_modules/zca-js/dist/cjs/apis/deleteChat.cjs +0 -64
  1253. package/node_modules/zca-js/dist/cjs/apis/deleteGroupInviteBox.cjs +0 -32
  1254. package/node_modules/zca-js/dist/cjs/apis/deleteMessage.cjs +0 -66
  1255. package/node_modules/zca-js/dist/cjs/apis/deleteProductCatalog.cjs +0 -36
  1256. package/node_modules/zca-js/dist/cjs/apis/disableGroupLink.cjs +0 -29
  1257. package/node_modules/zca-js/dist/cjs/apis/disperseGroup.cjs +0 -33
  1258. package/node_modules/zca-js/dist/cjs/apis/editNote.cjs +0 -51
  1259. package/node_modules/zca-js/dist/cjs/apis/editReminder.cjs +0 -75
  1260. package/node_modules/zca-js/dist/cjs/apis/enableGroupLink.cjs +0 -30
  1261. package/node_modules/zca-js/dist/cjs/apis/fetchAccountInfo.cjs +0 -15
  1262. package/node_modules/zca-js/dist/cjs/apis/findUser.cjs +0 -56
  1263. package/node_modules/zca-js/dist/cjs/apis/findUserByUsername.cjs +0 -41
  1264. package/node_modules/zca-js/dist/cjs/apis/forwardMessage.cjs +0 -129
  1265. package/node_modules/zca-js/dist/cjs/apis/getAliasList.cjs +0 -32
  1266. package/node_modules/zca-js/dist/cjs/apis/getAllFriends.cjs +0 -48
  1267. package/node_modules/zca-js/dist/cjs/apis/getAllGroups.cjs +0 -15
  1268. package/node_modules/zca-js/dist/cjs/apis/getArchivedChatList.cjs +0 -28
  1269. package/node_modules/zca-js/dist/cjs/apis/getAutoDeleteChat.cjs +0 -26
  1270. package/node_modules/zca-js/dist/cjs/apis/getAutoReplyList.cjs +0 -29
  1271. package/node_modules/zca-js/dist/cjs/apis/getAvatarList.cjs +0 -33
  1272. package/node_modules/zca-js/dist/cjs/apis/getAvatarUrlProfile.cjs +0 -44
  1273. package/node_modules/zca-js/dist/cjs/apis/getBizAccount.cjs +0 -32
  1274. package/node_modules/zca-js/dist/cjs/apis/getCatalogList.cjs +0 -37
  1275. package/node_modules/zca-js/dist/cjs/apis/getCloseFriends.cjs +0 -25
  1276. package/node_modules/zca-js/dist/cjs/apis/getContext.cjs +0 -9
  1277. package/node_modules/zca-js/dist/cjs/apis/getCookie.cjs +0 -14
  1278. package/node_modules/zca-js/dist/cjs/apis/getFriendBoardList.cjs +0 -31
  1279. package/node_modules/zca-js/dist/cjs/apis/getFriendOnlines.cjs +0 -40
  1280. package/node_modules/zca-js/dist/cjs/apis/getFriendRecommendations.cjs +0 -32
  1281. package/node_modules/zca-js/dist/cjs/apis/getFriendRequestStatus.cjs +0 -30
  1282. package/node_modules/zca-js/dist/cjs/apis/getFullAvatar.cjs +0 -30
  1283. package/node_modules/zca-js/dist/cjs/apis/getGroupBlockedMember.cjs +0 -34
  1284. package/node_modules/zca-js/dist/cjs/apis/getGroupChatHistory.cjs +0 -51
  1285. package/node_modules/zca-js/dist/cjs/apis/getGroupInfo.cjs +0 -37
  1286. package/node_modules/zca-js/dist/cjs/apis/getGroupInviteBoxInfo.cjs +0 -43
  1287. package/node_modules/zca-js/dist/cjs/apis/getGroupInviteBoxList.cjs +0 -36
  1288. package/node_modules/zca-js/dist/cjs/apis/getGroupLinkDetail.cjs +0 -30
  1289. package/node_modules/zca-js/dist/cjs/apis/getGroupLinkInfo.cjs +0 -33
  1290. package/node_modules/zca-js/dist/cjs/apis/getGroupMembersInfo.cjs +0 -29
  1291. package/node_modules/zca-js/dist/cjs/apis/getHiddenConversations.cjs +0 -28
  1292. package/node_modules/zca-js/dist/cjs/apis/getLabels.cjs +0 -33
  1293. package/node_modules/zca-js/dist/cjs/apis/getListBank.cjs +0 -25
  1294. package/node_modules/zca-js/dist/cjs/apis/getListBankAccount.cjs +0 -32
  1295. package/node_modules/zca-js/dist/cjs/apis/getListBoard.cjs +0 -59
  1296. package/node_modules/zca-js/dist/cjs/apis/getListDevice.cjs +0 -27
  1297. package/node_modules/zca-js/dist/cjs/apis/getListReminder.cjs +0 -61
  1298. package/node_modules/zca-js/dist/cjs/apis/getMultiUsersByPhones.cjs +0 -53
  1299. package/node_modules/zca-js/dist/cjs/apis/getMute.cjs +0 -27
  1300. package/node_modules/zca-js/dist/cjs/apis/getOwnId.cjs +0 -9
  1301. package/node_modules/zca-js/dist/cjs/apis/getPendingGroupMembers.cjs +0 -32
  1302. package/node_modules/zca-js/dist/cjs/apis/getPinConversations.cjs +0 -27
  1303. package/node_modules/zca-js/dist/cjs/apis/getPollDetail.cjs +0 -35
  1304. package/node_modules/zca-js/dist/cjs/apis/getProductCatalogList.cjs +0 -38
  1305. package/node_modules/zca-js/dist/cjs/apis/getQR.cjs +0 -34
  1306. package/node_modules/zca-js/dist/cjs/apis/getQuickMessageList.cjs +0 -29
  1307. package/node_modules/zca-js/dist/cjs/apis/getRelatedFriendGroup.cjs +0 -35
  1308. package/node_modules/zca-js/dist/cjs/apis/getReminder.cjs +0 -30
  1309. package/node_modules/zca-js/dist/cjs/apis/getReminderResponses.cjs +0 -29
  1310. package/node_modules/zca-js/dist/cjs/apis/getSentFriendRequest.cjs +0 -29
  1311. package/node_modules/zca-js/dist/cjs/apis/getSettings.cjs +0 -25
  1312. package/node_modules/zca-js/dist/cjs/apis/getStickerCategoryDetail.cjs +0 -29
  1313. package/node_modules/zca-js/dist/cjs/apis/getStickers.cjs +0 -45
  1314. package/node_modules/zca-js/dist/cjs/apis/getStickersDetail.cjs +0 -45
  1315. package/node_modules/zca-js/dist/cjs/apis/getUnreadMark.cjs +0 -35
  1316. package/node_modules/zca-js/dist/cjs/apis/getUserInfo.cjs +0 -58
  1317. package/node_modules/zca-js/dist/cjs/apis/inviteUserToGroups.cjs +0 -35
  1318. package/node_modules/zca-js/dist/cjs/apis/joinGroupInviteBox.cjs +0 -30
  1319. package/node_modules/zca-js/dist/cjs/apis/joinGroupLink.cjs +0 -32
  1320. package/node_modules/zca-js/dist/cjs/apis/keepAlive.cjs +0 -27
  1321. package/node_modules/zca-js/dist/cjs/apis/lastOnline.cjs +0 -31
  1322. package/node_modules/zca-js/dist/cjs/apis/leaveGroup.cjs +0 -38
  1323. package/node_modules/zca-js/dist/cjs/apis/listen.cjs +0 -440
  1324. package/node_modules/zca-js/dist/cjs/apis/lockPoll.cjs +0 -33
  1325. package/node_modules/zca-js/dist/cjs/apis/login.cjs +0 -102
  1326. package/node_modules/zca-js/dist/cjs/apis/loginQR.cjs +0 -368
  1327. package/node_modules/zca-js/dist/cjs/apis/logoutV2.cjs +0 -83
  1328. package/node_modules/zca-js/dist/cjs/apis/lostFocus.cjs +0 -28
  1329. package/node_modules/zca-js/dist/cjs/apis/parseLink.cjs +0 -32
  1330. package/node_modules/zca-js/dist/cjs/apis/registerCatalog.cjs +0 -32
  1331. package/node_modules/zca-js/dist/cjs/apis/rejectFriendRequest.cjs +0 -32
  1332. package/node_modules/zca-js/dist/cjs/apis/removeFriend.cjs +0 -33
  1333. package/node_modules/zca-js/dist/cjs/apis/removeFriendAlias.cjs +0 -29
  1334. package/node_modules/zca-js/dist/cjs/apis/removeGroupBlockedMember.cjs +0 -33
  1335. package/node_modules/zca-js/dist/cjs/apis/removeGroupDeputy.cjs +0 -35
  1336. package/node_modules/zca-js/dist/cjs/apis/removeQuickMessage.cjs +0 -32
  1337. package/node_modules/zca-js/dist/cjs/apis/removeReminder.cjs +0 -54
  1338. package/node_modules/zca-js/dist/cjs/apis/removeUnreadMark.cjs +0 -64
  1339. package/node_modules/zca-js/dist/cjs/apis/removeUserFromGroup.cjs +0 -39
  1340. package/node_modules/zca-js/dist/cjs/apis/resetHiddenConversPin.cjs +0 -25
  1341. package/node_modules/zca-js/dist/cjs/apis/reuseAvatar.cjs +0 -31
  1342. package/node_modules/zca-js/dist/cjs/apis/reviewPendingMemberRequest.cjs +0 -43
  1343. package/node_modules/zca-js/dist/cjs/apis/scanURL.cjs +0 -33
  1344. package/node_modules/zca-js/dist/cjs/apis/searchSticker.cjs +0 -33
  1345. package/node_modules/zca-js/dist/cjs/apis/sendBankCard.cjs +0 -68
  1346. package/node_modules/zca-js/dist/cjs/apis/sendCard.cjs +0 -89
  1347. package/node_modules/zca-js/dist/cjs/apis/sendDeliveredEvent.cjs +0 -69
  1348. package/node_modules/zca-js/dist/cjs/apis/sendFriendRequest.cjs +0 -44
  1349. package/node_modules/zca-js/dist/cjs/apis/sendLink.cjs +0 -92
  1350. package/node_modules/zca-js/dist/cjs/apis/sendMessage.cjs +0 -500
  1351. package/node_modules/zca-js/dist/cjs/apis/sendReport.cjs +0 -67
  1352. package/node_modules/zca-js/dist/cjs/apis/sendSeenEvent.cjs +0 -77
  1353. package/node_modules/zca-js/dist/cjs/apis/sendSticker.cjs +0 -88
  1354. package/node_modules/zca-js/dist/cjs/apis/sendTypingEvent.cjs +0 -47
  1355. package/node_modules/zca-js/dist/cjs/apis/sendVideo.cjs +0 -148
  1356. package/node_modules/zca-js/dist/cjs/apis/sendVoice.cjs +0 -103
  1357. package/node_modules/zca-js/dist/cjs/apis/setHiddenConversations.cjs +0 -53
  1358. package/node_modules/zca-js/dist/cjs/apis/setMute.cjs +0 -81
  1359. package/node_modules/zca-js/dist/cjs/apis/setPinnedConversations.cjs +0 -48
  1360. package/node_modules/zca-js/dist/cjs/apis/sharePoll.cjs +0 -33
  1361. package/node_modules/zca-js/dist/cjs/apis/unblockUser.cjs +0 -33
  1362. package/node_modules/zca-js/dist/cjs/apis/undo.cjs +0 -56
  1363. package/node_modules/zca-js/dist/cjs/apis/undoFriendRequest.cjs +0 -32
  1364. package/node_modules/zca-js/dist/cjs/apis/updateActiveStatus.cjs +0 -32
  1365. package/node_modules/zca-js/dist/cjs/apis/updateArchivedChatList.cjs +0 -39
  1366. package/node_modules/zca-js/dist/cjs/apis/updateAutoDeleteChat.cjs +0 -54
  1367. package/node_modules/zca-js/dist/cjs/apis/updateAutoReply.cjs +0 -43
  1368. package/node_modules/zca-js/dist/cjs/apis/updateBankAccount.cjs +0 -36
  1369. package/node_modules/zca-js/dist/cjs/apis/updateCatalog.cjs +0 -35
  1370. package/node_modules/zca-js/dist/cjs/apis/updateGroupSettings.cjs +0 -48
  1371. package/node_modules/zca-js/dist/cjs/apis/updateHiddenConversPin.cjs +0 -35
  1372. package/node_modules/zca-js/dist/cjs/apis/updateLabels.cjs +0 -39
  1373. package/node_modules/zca-js/dist/cjs/apis/updateLang.cjs +0 -35
  1374. package/node_modules/zca-js/dist/cjs/apis/updateProductCatalog.cjs +0 -56
  1375. package/node_modules/zca-js/dist/cjs/apis/updateProfile.cjs +0 -48
  1376. package/node_modules/zca-js/dist/cjs/apis/updateProfileBio.cjs +0 -32
  1377. package/node_modules/zca-js/dist/cjs/apis/updateQuickMessage.cjs +0 -66
  1378. package/node_modules/zca-js/dist/cjs/apis/updateSettings.cjs +0 -95
  1379. package/node_modules/zca-js/dist/cjs/apis/upgradeGroupToCommunity.cjs +0 -32
  1380. package/node_modules/zca-js/dist/cjs/apis/uploadAttachment.cjs +0 -211
  1381. package/node_modules/zca-js/dist/cjs/apis/uploadProductPhoto.cjs +0 -55
  1382. package/node_modules/zca-js/dist/cjs/apis/votePoll.cjs +0 -34
  1383. package/node_modules/zca-js/dist/cjs/apis.cjs +0 -324
  1384. package/node_modules/zca-js/dist/cjs/context.cjs +0 -34
  1385. package/node_modules/zca-js/dist/cjs/index.cjs +0 -159
  1386. package/node_modules/zca-js/dist/cjs/models/AutoReply.cjs +0 -9
  1387. package/node_modules/zca-js/dist/cjs/models/Bank.cjs +0 -263
  1388. package/node_modules/zca-js/dist/cjs/models/Board.cjs +0 -8
  1389. package/node_modules/zca-js/dist/cjs/models/DeliveredMessage.cjs +0 -23
  1390. package/node_modules/zca-js/dist/cjs/models/Enum.cjs +0 -27
  1391. package/node_modules/zca-js/dist/cjs/models/FriendEvent.cjs +0 -87
  1392. package/node_modules/zca-js/dist/cjs/models/Group.cjs +0 -13
  1393. package/node_modules/zca-js/dist/cjs/models/GroupEvent.cjs +0 -94
  1394. package/node_modules/zca-js/dist/cjs/models/Message.cjs +0 -35
  1395. package/node_modules/zca-js/dist/cjs/models/Reaction.cjs +0 -74
  1396. package/node_modules/zca-js/dist/cjs/models/Reminder.cjs +0 -9
  1397. package/node_modules/zca-js/dist/cjs/models/SeenMessage.cjs +0 -23
  1398. package/node_modules/zca-js/dist/cjs/models/Typing.cjs +0 -23
  1399. package/node_modules/zca-js/dist/cjs/models/Undo.cjs +0 -16
  1400. package/node_modules/zca-js/dist/cjs/models/ZBusiness.cjs +0 -39
  1401. package/node_modules/zca-js/dist/cjs/update.cjs +0 -34
  1402. package/node_modules/zca-js/dist/cjs/utils.cjs +0 -703
  1403. package/node_modules/zca-js/dist/cjs/zalo.cjs +0 -112
  1404. package/node_modules/zca-js/dist/context.d.ts +0 -179
  1405. package/node_modules/zca-js/dist/context.js +0 -28
  1406. package/node_modules/zca-js/dist/index.d.ts +0 -166
  1407. package/node_modules/zca-js/dist/index.js +0 -14
  1408. package/node_modules/zca-js/dist/models/Attachment.d.ts +0 -9
  1409. package/node_modules/zca-js/dist/models/Attachment.js +0 -1
  1410. package/node_modules/zca-js/dist/models/AutoReply.d.ts +0 -20
  1411. package/node_modules/zca-js/dist/models/AutoReply.js +0 -7
  1412. package/node_modules/zca-js/dist/models/Bank.d.ts +0 -291
  1413. package/node_modules/zca-js/dist/models/Bank.js +0 -262
  1414. package/node_modules/zca-js/dist/models/Board.d.ts +0 -60
  1415. package/node_modules/zca-js/dist/models/Board.js +0 -6
  1416. package/node_modules/zca-js/dist/models/Catalog.d.ts +0 -16
  1417. package/node_modules/zca-js/dist/models/Catalog.js +0 -1
  1418. package/node_modules/zca-js/dist/models/DeliveredMessage.d.ts +0 -27
  1419. package/node_modules/zca-js/dist/models/DeliveredMessage.js +0 -17
  1420. package/node_modules/zca-js/dist/models/Enum.d.ts +0 -21
  1421. package/node_modules/zca-js/dist/models/Enum.js +0 -25
  1422. package/node_modules/zca-js/dist/models/FriendEvent.d.ts +0 -107
  1423. package/node_modules/zca-js/dist/models/FriendEvent.js +0 -83
  1424. package/node_modules/zca-js/dist/models/Group.d.ts +0 -125
  1425. package/node_modules/zca-js/dist/models/Group.js +0 -11
  1426. package/node_modules/zca-js/dist/models/GroupEvent.d.ts +0 -178
  1427. package/node_modules/zca-js/dist/models/GroupEvent.js +0 -90
  1428. package/node_modules/zca-js/dist/models/Label.d.ts +0 -10
  1429. package/node_modules/zca-js/dist/models/Label.js +0 -1
  1430. package/node_modules/zca-js/dist/models/Message.d.ts +0 -91
  1431. package/node_modules/zca-js/dist/models/Message.js +0 -29
  1432. package/node_modules/zca-js/dist/models/ProductCatalog.d.ts +0 -17
  1433. package/node_modules/zca-js/dist/models/ProductCatalog.js +0 -1
  1434. package/node_modules/zca-js/dist/models/QuickMessage.d.ts +0 -25
  1435. package/node_modules/zca-js/dist/models/QuickMessage.js +0 -1
  1436. package/node_modules/zca-js/dist/models/Reaction.d.ts +0 -85
  1437. package/node_modules/zca-js/dist/models/Reaction.js +0 -70
  1438. package/node_modules/zca-js/dist/models/Reminder.d.ts +0 -51
  1439. package/node_modules/zca-js/dist/models/Reminder.js +0 -7
  1440. package/node_modules/zca-js/dist/models/SeenMessage.d.ts +0 -26
  1441. package/node_modules/zca-js/dist/models/SeenMessage.js +0 -17
  1442. package/node_modules/zca-js/dist/models/Sticker.d.ts +0 -27
  1443. package/node_modules/zca-js/dist/models/Sticker.js +0 -1
  1444. package/node_modules/zca-js/dist/models/Typing.d.ts +0 -24
  1445. package/node_modules/zca-js/dist/models/Typing.js +0 -17
  1446. package/node_modules/zca-js/dist/models/Undo.d.ts +0 -34
  1447. package/node_modules/zca-js/dist/models/Undo.js +0 -12
  1448. package/node_modules/zca-js/dist/models/User.d.ts +0 -70
  1449. package/node_modules/zca-js/dist/models/User.js +0 -1
  1450. package/node_modules/zca-js/dist/models/ZBusiness.d.ts +0 -22
  1451. package/node_modules/zca-js/dist/models/ZBusiness.js +0 -35
  1452. package/node_modules/zca-js/dist/models/index.d.ts +0 -22
  1453. package/node_modules/zca-js/dist/models/index.js +0 -22
  1454. package/node_modules/zca-js/dist/update.d.ts +0 -2
  1455. package/node_modules/zca-js/dist/update.js +0 -29
  1456. package/node_modules/zca-js/dist/utils.d.ts +0 -167
  1457. package/node_modules/zca-js/dist/utils.js +0 -719
  1458. package/node_modules/zca-js/dist/zalo.d.ts +0 -41
  1459. package/node_modules/zca-js/dist/zalo.js +0 -107
  1460. package/node_modules/zca-js/eslint.config.js +0 -21
  1461. package/node_modules/zca-js/index.d.ts +0 -2
  1462. package/node_modules/zca-js/package.json +0 -78
  1463. package/node_modules/zca-js/rollup.config.js +0 -28
  1464. package/patches/zca-js+2.2.0.patch +0 -1445
  1465. package/src/cli.test.js +0 -127
  1466. package/src/core/forward.js +0 -112
  1467. package/src/core/group-history.js +0 -248
  1468. package/src/core/group-invite.js +0 -53
  1469. package/src/core/offline-queue.js +0 -194
  1470. package/src/core/pin.js +0 -222
  1471. package/src/core/socket-tap.js +0 -154
  1472. package/src/core/sync-v2/assets.js +0 -181
  1473. package/src/core/sync-v2/gid.js +0 -106
  1474. package/src/core/sync-v2/keepalive.js +0 -177
  1475. package/src/core/sync-v2/message-types.js +0 -522
  1476. package/src/core/sync-v2/renewlink.js +0 -124
  1477. package/src/core/sync-v2/zcloud-cipher.js +0 -88
  1478. package/src/core/zca-custom.js +0 -78
  1479. package/src/mcp/message-buffer.test.js +0 -360
  1480. package/src/mcp/notifier.test.js +0 -275
  1481. package/src/mcp/thread-filter.test.js +0 -206
  1482. package/src/mcp/thread-name-cache.test.js +0 -142
  1483. package/src/utils/atomic-file.js +0 -209
  1484. package/src/utils/bank-helpers.test.js +0 -66
  1485. package/src/utils/device-fingerprint.js +0 -72
  1486. package/src/utils/mentions.js +0 -140
  1487. package/src/utils/proxy-helpers.test.js +0 -36
  1488. package/src/utils/split-message.js +0 -222
  1489. package/src/utils/urgency.js +0 -29
  1490. /package/src/{core → zalo/custom}/user-info.js +0 -0
  1491. /package/src/{utils → zalo/format}/extract-message-text.js +0 -0
  1492. /package/src/{utils → zalo/format}/markdown.js +0 -0
@@ -1,1445 +0,0 @@
1
- diff --git a/node_modules/zca-js/dist/apis.js b/node_modules/zca-js/dist/apis.js
2
- index c8b38fb..ebcf8f9 100644
3
- --- a/node_modules/zca-js/dist/apis.js
4
- +++ b/node_modules/zca-js/dist/apis.js
5
- @@ -154,6 +154,7 @@ import { uploadAttachmentFactory } from "./apis/uploadAttachment.js";
6
- import { uploadProductPhotoFactory } from "./apis/uploadProductPhoto.js";
7
- import { votePollFactory } from "./apis/votePoll.js";
8
- import { customFactory } from "./apis/custom.js";
9
- +import { logoutV2Factory } from "./apis/logoutV2.js";
10
- export class API {
11
- constructor(ctx, zpwServiceMap, wsUrls) {
12
- this.zpwServiceMap = zpwServiceMap;
13
- @@ -313,5 +314,6 @@ export class API {
14
- this.uploadProductPhoto = uploadProductPhotoFactory(ctx, this);
15
- this.votePoll = votePollFactory(ctx, this);
16
- this.custom = customFactory(ctx, this);
17
- + this.logoutV2 = logoutV2Factory(ctx, this);
18
- }
19
- }
20
- diff --git a/node_modules/zca-js/dist/apis/forwardMessage.js b/node_modules/zca-js/dist/apis/forwardMessage.js
21
- index ff4f6c6..499fbcf 100644
22
- --- a/node_modules/zca-js/dist/apis/forwardMessage.js
23
- +++ b/node_modules/zca-js/dist/apis/forwardMessage.js
24
- @@ -1,6 +1,19 @@
25
- import { ZaloApiError } from "../Errors/ZaloApiError.js";
26
- import { ThreadType } from "../models/index.js";
27
- import { apiFactory } from "../utils.js";
28
- +/**
29
- + * Hand the caller the clientId that went on the wire.
30
- + *
31
- + * A forward produces a real message that `undo` and `deleteMessage` both
32
- + * need a cliMsgId to remove, and upstream returns only {msgId}. One
33
- + * clientId covers every target thread in a call, so the single resolved
34
- + * response is the right place to put it.
35
- + */
36
- +function stampClientId(response, clientId) {
37
- + if (!response || typeof response != "object" || clientId == undefined)
38
- + return;
39
- + response.cliMsgId = String(clientId);
40
- +}
41
- export const forwardMessageFactory = apiFactory()((api, ctx, utils) => {
42
- const serviceURL = {
43
- [ThreadType.User]: utils.makeURL(`${api.zpwServiceMap.file[0]}/api/message/mforward`),
44
- @@ -94,6 +107,8 @@ export const forwardMessageFactory = apiFactory()((api, ctx, utils) => {
45
- params: encryptedParams,
46
- }),
47
- });
48
- - return utils.resolve(response);
49
- + const resolved = await utils.resolve(response);
50
- + stampClientId(resolved, clientId);
51
- + return resolved;
52
- };
53
- });
54
- diff --git a/node_modules/zca-js/dist/apis/loginQR.js b/node_modules/zca-js/dist/apis/loginQR.js
55
- index 7405811..309c23c 100644
56
- --- a/node_modules/zca-js/dist/apis/loginQR.js
57
- +++ b/node_modules/zca-js/dist/apis/loginQR.js
58
- @@ -12,16 +12,33 @@ export var LoginQRCallbackEventType;
59
- LoginQRCallbackEventType[LoginQRCallbackEventType["QRCodeDeclined"] = 3] = "QRCodeDeclined";
60
- LoginQRCallbackEventType[LoginQRCallbackEventType["GotLoginInfo"] = 4] = "GotLoginInfo";
61
- })(LoginQRCallbackEventType || (LoginQRCallbackEventType = {}));
62
- +// Client Hints (sec-ch-ua*) for the QR-login handshake, derived from
63
- +// ctx.secChUa/secChUaPlatform/secChUaMobile when the caller supplies them
64
- +// (see zalo-agent-cli's device-fingerprint generator), falling back to the
65
- +// original hardcoded Chrome-130/Windows literals otherwise — so behavior is
66
- +// unchanged for any caller that doesn't set these ctx fields.
67
- +//
68
- +// Why this exists: the User-Agent header sent for this whole handshake
69
- +// (ctx.userAgent, defaulted in zalo.js to a Firefox UA string) previously
70
- +// had NO relationship to these sec-ch-ua values at all — every request
71
- +// claimed "Firefox/133.0" in User-Agent while separately, unconditionally
72
- +// claiming Chromium/Chrome v130 via Client Hints. Real browsers never
73
- +// produce that combination (Firefox doesn't send sec-ch-ua headers), and
74
- +// it was identical across every zca-js install on earth regardless of what
75
- +// was actually running the CLI. Deriving these from the same ctx fields
76
- +// the caller controls for userAgent keeps the whole fingerprint internally
77
- +// consistent.
78
- +function secChUaHeaders(ctx) {
79
- + var _a, _b, _c;
80
- + return {
81
- + "sec-ch-ua": (_a = ctx.secChUa) !== null && _a !== void 0 ? _a : '"Chromium";v="130", "Google Chrome";v="130", "Not?A_Brand";v="99"',
82
- + "sec-ch-ua-mobile": (_b = ctx.secChUaMobile) !== null && _b !== void 0 ? _b : "?0",
83
- + "sec-ch-ua-platform": (_c = ctx.secChUaPlatform) !== null && _c !== void 0 ? _c : '"Windows"',
84
- + };
85
- +}
86
- async function loadLoginPage(ctx) {
87
- const response = await request(ctx, "https://id.zalo.me/account?continue=https%3A%2F%2Fchat.zalo.me%2F", {
88
- - headers: {
89
- - accept: "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7",
90
- - "accept-language": "vi-VN,vi;q=0.9,fr-FR;q=0.8,fr;q=0.7,en-US;q=0.6,en;q=0.5",
91
- - "cache-control": "max-age=0",
92
- - priority: "u=0, i",
93
- - "sec-ch-ua": '"Chromium";v="130", "Google Chrome";v="130", "Not?A_Brand";v="99"',
94
- - "sec-ch-ua-mobile": "?0",
95
- - "sec-ch-ua-platform": '"Windows"',
96
- + headers: Object.assign({ accept: "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7", "accept-language": "vi-VN,vi;q=0.9,fr-FR;q=0.8,fr;q=0.7,en-US;q=0.6,en;q=0.5", "cache-control": "max-age=0", priority: "u=0, i" }, secChUaHeaders(ctx), {
97
- "sec-fetch-dest": "document",
98
- "sec-fetch-mode": "navigate",
99
- "sec-fetch-site": "same-site",
100
- @@ -29,7 +46,7 @@ async function loadLoginPage(ctx) {
101
- "upgrade-insecure-requests": "1",
102
- Referer: "https://chat.zalo.me/",
103
- "Referrer-Policy": "strict-origin-when-cross-origin",
104
- - },
105
- + }),
106
- method: "GET",
107
- });
108
- const html = await response.text();
109
- @@ -37,25 +54,34 @@ async function loadLoginPage(ctx) {
110
- const match = html.match(regex);
111
- return match === null || match === void 0 ? void 0 : match[1];
112
- }
113
- +// `continue` target for the id.zalo.me SSO handshake — "https://zalo.me/pc"
114
- +// on getLoginInfo/verifyClient/generate, distinct from loadLoginPage/
115
- +// waitingScan/waitingConfirm/checkSession's "https://chat.zalo.me/". TWO
116
- +// live-tested attempts (2026-09-19) to unify these on "chat.zalo.me/" both
117
- +// broke QR generation outright (phone reports the QR invalid/unreadable on
118
- +// scan), even after adding the `cliGenQR=1` flag a live capture of the real
119
- +// web client showed on its generate() call. Reverted both times. Whatever
120
- +// the real server-side check is, it isn't fully explained by this request's
121
- +// body fields alone — plausibly something header- or cookie-level from an
122
- +// actual browser session (a CSRF/anti-forgery token embedded in the real
123
- +// loadLoginPage HTML response and echoed back on later calls, which this
124
- +// library never reads because it only regex-extracts the login version out
125
- +// of that HTML — or an Origin/sec-fetch header combination a non-browser
126
- +// HTTP client can't authentically reproduce). Leave `continue` alone here;
127
- +// don't re-attempt this without capturing full REQUEST headers (not just
128
- +// body) from a real browser session for comparison, not just the body.
129
- async function getLoginInfo(ctx, version) {
130
- const form = new URLSearchParams();
131
- form.append("continue", "https://zalo.me/pc");
132
- form.append("v", version);
133
- return await request(ctx, "https://id.zalo.me/account/logininfo", {
134
- - headers: {
135
- - accept: "*/*",
136
- - "accept-language": "vi-VN,vi;q=0.9,fr-FR;q=0.8,fr;q=0.7,en-US;q=0.6,en;q=0.5",
137
- - "content-type": "application/x-www-form-urlencoded",
138
- - priority: "u=1, i",
139
- - "sec-ch-ua": '"Chromium";v="130", "Google Chrome";v="130", "Not?A_Brand";v="99"',
140
- - "sec-ch-ua-mobile": "?0",
141
- - "sec-ch-ua-platform": '"Windows"',
142
- + headers: Object.assign({ accept: "*/*", "accept-language": "vi-VN,vi;q=0.9,fr-FR;q=0.8,fr;q=0.7,en-US;q=0.6,en;q=0.5", "content-type": "application/x-www-form-urlencoded", priority: "u=1, i" }, secChUaHeaders(ctx), {
143
- "sec-fetch-dest": "empty",
144
- "sec-fetch-mode": "cors",
145
- "sec-fetch-site": "same-origin",
146
- Referer: "https://id.zalo.me/account?continue=https%3A%2F%2Fzalo.me%2Fpc",
147
- "Referrer-Policy": "strict-origin-when-cross-origin",
148
- - },
149
- + }),
150
- body: form,
151
- method: "POST",
152
- })
153
- @@ -68,20 +94,13 @@ async function verifyClient(ctx, version) {
154
- form.append("continue", "https://zalo.me/pc");
155
- form.append("v", version);
156
- return await request(ctx, "https://id.zalo.me/account/verify-client", {
157
- - headers: {
158
- - accept: "*/*",
159
- - "accept-language": "vi-VN,vi;q=0.9,fr-FR;q=0.8,fr;q=0.7,en-US;q=0.6,en;q=0.5",
160
- - "content-type": "application/x-www-form-urlencoded",
161
- - priority: "u=1, i",
162
- - "sec-ch-ua": '"Chromium";v="130", "Google Chrome";v="130", "Not?A_Brand";v="99"',
163
- - "sec-ch-ua-mobile": "?0",
164
- - "sec-ch-ua-platform": '"Windows"',
165
- + headers: Object.assign({ accept: "*/*", "accept-language": "vi-VN,vi;q=0.9,fr-FR;q=0.8,fr;q=0.7,en-US;q=0.6,en;q=0.5", "content-type": "application/x-www-form-urlencoded", priority: "u=1, i" }, secChUaHeaders(ctx), {
166
- "sec-fetch-dest": "empty",
167
- "sec-fetch-mode": "cors",
168
- "sec-fetch-site": "same-origin",
169
- Referer: "https://id.zalo.me/account?continue=https%3A%2F%2Fzalo.me%2Fpc",
170
- "Referrer-Policy": "strict-origin-when-cross-origin",
171
- - },
172
- + }),
173
- body: form,
174
- method: "POST",
175
- })
176
- @@ -93,20 +112,13 @@ async function generate(ctx, version) {
177
- form.append("continue", "https://zalo.me/pc");
178
- form.append("v", version);
179
- return await request(ctx, "https://id.zalo.me/account/authen/qr/generate", {
180
- - headers: {
181
- - accept: "*/*",
182
- - "accept-language": "vi-VN,vi;q=0.9,fr-FR;q=0.8,fr;q=0.7,en-US;q=0.6,en;q=0.5",
183
- - "content-type": "application/x-www-form-urlencoded",
184
- - priority: "u=1, i",
185
- - "sec-ch-ua": '"Chromium";v="130", "Google Chrome";v="130", "Not?A_Brand";v="99"',
186
- - "sec-ch-ua-mobile": "?0",
187
- - "sec-ch-ua-platform": '"Windows"',
188
- + headers: Object.assign({ accept: "*/*", "accept-language": "vi-VN,vi;q=0.9,fr-FR;q=0.8,fr;q=0.7,en-US;q=0.6,en;q=0.5", "content-type": "application/x-www-form-urlencoded", priority: "u=1, i" }, secChUaHeaders(ctx), {
189
- "sec-fetch-dest": "empty",
190
- "sec-fetch-mode": "cors",
191
- "sec-fetch-site": "same-origin",
192
- Referer: "https://id.zalo.me/account?continue=https%3A%2F%2Fzalo.me%2Fpc",
193
- "Referrer-Policy": "strict-origin-when-cross-origin",
194
- - },
195
- + }),
196
- body: form,
197
- method: "POST",
198
- })
199
- @@ -122,20 +134,13 @@ async function waitingScan(ctx, version, code, signal) {
200
- form.append("continue", "https://chat.zalo.me/");
201
- form.append("v", version);
202
- return await request(ctx, "https://id.zalo.me/account/authen/qr/waiting-scan", {
203
- - headers: {
204
- - accept: "*/*",
205
- - "accept-language": "vi-VN,vi;q=0.9,fr-FR;q=0.8,fr;q=0.7,en-US;q=0.6,en;q=0.5",
206
- - "content-type": "application/x-www-form-urlencoded",
207
- - priority: "u=1, i",
208
- - "sec-ch-ua": '"Chromium";v="130", "Google Chrome";v="130", "Not?A_Brand";v="99"',
209
- - "sec-ch-ua-mobile": "?0",
210
- - "sec-ch-ua-platform": '"Windows"',
211
- + headers: Object.assign({ accept: "*/*", "accept-language": "vi-VN,vi;q=0.9,fr-FR;q=0.8,fr;q=0.7,en-US;q=0.6,en;q=0.5", "content-type": "application/x-www-form-urlencoded", priority: "u=1, i" }, secChUaHeaders(ctx), {
212
- "sec-fetch-dest": "empty",
213
- "sec-fetch-mode": "cors",
214
- "sec-fetch-site": "same-origin",
215
- Referer: "https://id.zalo.me/account?continue=https%3A%2F%2Fchat.zalo.me%2F",
216
- "Referrer-Policy": "strict-origin-when-cross-origin",
217
- - },
218
- + }),
219
- body: form,
220
- method: "POST",
221
- signal,
222
- @@ -153,28 +158,29 @@ async function waitingScan(ctx, version, code, signal) {
223
- });
224
- }
225
- async function waitingConfirm(ctx, version, code, signal) {
226
- + // Live-captured 2026-09-19 from the real chat.zalo.me/id.zalo.me web
227
- + // client: its waiting-confirm request body is ONLY continue+code+v (the
228
- + // same three fields waitingScan sends) — never gToken/gAction. Sending
229
- + // those two extra, real-client-never-sends fields (as upstream zca-js
230
- + // did) is very likely why a decline on the phone was never observed
231
- + // here: the real client's identical 3-field long-poll got error_code
232
- + // -13 back in a single ~8s round trip the moment the phone declined,
233
- + // while zca-js kept getting error_code 8 (busy-wait) over and over
234
- + // until the outer 100s QR timer killed the whole login attempt. Dropped
235
- + // to match the real client exactly.
236
- const form = new URLSearchParams();
237
- form.append("code", code);
238
- - form.append("gToken", "");
239
- - form.append("gAction", "CONFIRM_QR");
240
- form.append("continue", "https://chat.zalo.me/");
241
- form.append("v", version);
242
- logger(ctx).info("Please confirm on your phone");
243
- return await request(ctx, "https://id.zalo.me/account/authen/qr/waiting-confirm", {
244
- - headers: {
245
- - accept: "*/*",
246
- - "accept-language": "vi-VN,vi;q=0.9,fr-FR;q=0.8,fr;q=0.7,en-US;q=0.6,en;q=0.5",
247
- - "content-type": "application/x-www-form-urlencoded",
248
- - priority: "u=1, i",
249
- - "sec-ch-ua": '"Chromium";v="130", "Google Chrome";v="130", "Not?A_Brand";v="99"',
250
- - "sec-ch-ua-mobile": "?0",
251
- - "sec-ch-ua-platform": '"Windows"',
252
- + headers: Object.assign({ accept: "*/*", "accept-language": "vi-VN,vi;q=0.9,fr-FR;q=0.8,fr;q=0.7,en-US;q=0.6,en;q=0.5", "content-type": "application/x-www-form-urlencoded", priority: "u=1, i" }, secChUaHeaders(ctx), {
253
- "sec-fetch-dest": "empty",
254
- "sec-fetch-mode": "cors",
255
- "sec-fetch-site": "same-origin",
256
- Referer: "https://id.zalo.me/account?continue=https%3A%2F%2Fchat.zalo.me%2F",
257
- "Referrer-Policy": "strict-origin-when-cross-origin",
258
- - },
259
- + }),
260
- body: form,
261
- method: "POST",
262
- signal,
263
- @@ -193,39 +199,27 @@ async function waitingConfirm(ctx, version, code, signal) {
264
- }
265
- async function checkSession(ctx) {
266
- return await request(ctx, "https://id.zalo.me/account/checksession?continue=https%3A%2F%2Fchat.zalo.me%2Findex.html", {
267
- - headers: {
268
- - accept: "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7",
269
- - "accept-language": "vi-VN,vi;q=0.9,fr-FR;q=0.8,fr;q=0.7,en-US;q=0.6,en;q=0.5",
270
- - priority: "u=0, i",
271
- - "sec-ch-ua": '"Chromium";v="130", "Google Chrome";v="130", "Not?A_Brand";v="99"',
272
- - "sec-ch-ua-mobile": "?0",
273
- - "sec-ch-ua-platform": '"Windows"',
274
- + headers: Object.assign({ accept: "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7", "accept-language": "vi-VN,vi;q=0.9,fr-FR;q=0.8,fr;q=0.7,en-US;q=0.6,en;q=0.5", priority: "u=0, i" }, secChUaHeaders(ctx), {
275
- "sec-fetch-dest": "document",
276
- "sec-fetch-mode": "navigate",
277
- "sec-fetch-site": "same-origin",
278
- "upgrade-insecure-requests": "1",
279
- Referer: "https://id.zalo.me/account?continue=https%3A%2F%2Fchat.zalo.me%2F",
280
- "Referrer-Policy": "strict-origin-when-cross-origin",
281
- - },
282
- + }),
283
- redirect: "manual",
284
- method: "GET",
285
- }).catch(logger(ctx).error);
286
- }
287
- async function getUserInfo(ctx) {
288
- return await request(ctx, "https://jr.chat.zalo.me/jr/userinfo", {
289
- - headers: {
290
- - accept: "*/*",
291
- - "accept-language": "vi-VN,vi;q=0.9,fr-FR;q=0.8,fr;q=0.7,en-US;q=0.6,en;q=0.5",
292
- - priority: "u=1, i",
293
- - "sec-ch-ua": '"Chromium";v="130", "Google Chrome";v="130", "Not?A_Brand";v="99"',
294
- - "sec-ch-ua-mobile": "?0",
295
- - "sec-ch-ua-platform": '"Windows"',
296
- + headers: Object.assign({ accept: "*/*", "accept-language": "vi-VN,vi;q=0.9,fr-FR;q=0.8,fr;q=0.7,en-US;q=0.6,en;q=0.5", priority: "u=1, i" }, secChUaHeaders(ctx), {
297
- "sec-fetch-dest": "empty",
298
- "sec-fetch-mode": "cors",
299
- "sec-fetch-site": "same-site",
300
- Referer: "https://chat.zalo.me/",
301
- "Referrer-Policy": "strict-origin-when-cross-origin",
302
- - },
303
- + }),
304
- method: "GET",
305
- })
306
- .then((res) => res.json())
307
- @@ -234,6 +228,13 @@ async function getUserInfo(ctx) {
308
- export async function loginQR(ctx, options, callback) {
309
- ctx.cookie = new CookieJar();
310
- ctx.userAgent = options.userAgent;
311
- + // See secChUaHeaders() above — falls back to the original hardcoded
312
- + // Chrome-130/Windows literals when the caller (an older zalo-agent-cli,
313
- + // or any other zca-js consumer) doesn't pass these, so this is purely
314
- + // additive and doesn't change behavior for anyone not opting in.
315
- + ctx.secChUa = options.secChUa;
316
- + ctx.secChUaPlatform = options.secChUaPlatform;
317
- + ctx.secChUaMobile = options.secChUaMobile;
318
- return new Promise(async (resolve, reject) => {
319
- var _a;
320
- const controller = new AbortController();
321
- @@ -322,6 +323,18 @@ export async function loginQR(ctx, options, callback) {
322
- throw new ZaloApiError("Cannot get confirm result");
323
- clearTimeout(qrTimeout);
324
- if (confirmResult.error_code == -13) {
325
- + // Decline is a terminal state — settle the outer Promise
326
- + // either way. Upstream zca-js only rejected in the
327
- + // no-callback branch; with a callback, it fired the
328
- + // QRCodeDeclined event and then just `return`ed, leaving
329
- + // the Promise this function returns permanently pending
330
- + // (the caller's `await loginQR(...)` — e.g.
331
- + // zalo-agent-cli's `await loginWithQR(...)` — would hang
332
- + // until the unrelated 100s qrTimeout eventually fired,
333
- + // misreporting the decline as an expiry). Now the callback
334
- + // (when present) still fires first for UI purposes, but
335
- + // this always rejects afterward so the promise settles
336
- + // immediately.
337
- if (callback) {
338
- callback({
339
- type: LoginQRCallbackEventType.QRCodeDeclined,
340
- @@ -334,11 +347,9 @@ export async function loginQR(ctx, options, callback) {
341
- },
342
- });
343
- }
344
- - else {
345
- - logger(ctx).error("QRCode login declined");
346
- - throw new ZaloApiLoginQRDeclined();
347
- - }
348
- - return;
349
- + logger(ctx).error("QRCode login declined");
350
- + cleanUp();
351
- + return reject(new ZaloApiLoginQRDeclined());
352
- }
353
- else if (confirmResult.error_code != 0) {
354
- throw new ZaloApiError(`An error has occurred.\nResponse: ${JSON.stringify(confirmResult, null, 2)}`);
355
- diff --git a/node_modules/zca-js/dist/apis/logoutV2.js b/node_modules/zca-js/dist/apis/logoutV2.js
356
- new file mode 100644
357
- index 0000000..e250100
358
- --- /dev/null
359
- +++ b/node_modules/zca-js/dist/apis/logoutV2.js
360
- @@ -0,0 +1,79 @@
361
- +import { ZaloApiError } from "../Errors/ZaloApiError.js";
362
- +import { apiFactory } from "../utils.js";
363
- +
364
- +// CONFIRMED live 2026-09-19 against a real account. Mirrors Zalo Web's own
365
- +// `ServiceURL.logoutV2(imei, compId?)` (commandId 12743, POST
366
- +// /api/v2/login/logOut), reverse-engineered from the production webpack
367
- +// bundle:
368
- +// static logoutV2(e,t=void 0){
369
- +// const a = _.b.getDevDomainV3() + "/api/v2/login/logOut?" + this._getCommonParams();
370
- +// let s = { time, imei: e, computer_name, language };
371
- +// if (t !== void 0) s.compId = t;
372
- +// return this._post(a, "params=" + encodeURIComponent(encodeAES(JSON.stringify(s))), null, 12743);
373
- +// }
374
- +//
375
- +// DOMAIN — resolved by trial (each guess live-tested against a real
376
- +// account):
377
- +// 1. `zpwServiceMap.aext` (aextra-wpa.chat.zalo.me) — the accessor
378
- +// `getListDevice` uses. DISPROVEN: real HTTP 404.
379
- +// 2. `zpwServiceMap.zavi` (wpa.zaloapp.com) — DISPROVEN: reachable, but a
380
- +// real API error ({error_code:102, "session key was improperly
381
- +// submitted..."}) — `zaloapp.com` is a different registrable domain
382
- +// from `zalo.me`, so the zpw_sek session cookie (scoped to `.zalo.me`)
383
- +// never reached it.
384
- +// 3. `https://wpa.chat.zalo.me` (HARDCODED, not from zpwServiceMap) —
385
- +// CONFIRMED CORRECT, live-tested 2026-09-19. Matches `getSettings.js`
386
- +// in this same package (a genuinely working, authenticated,
387
- +// hardcoded-domain call) and the known hardcoded PRE-login host this
388
- +// package's `login.js` already uses. Live response:
389
- +// `{"error_code":0,"error_message":"Successful.","data":1}`.
390
- +// 4. `https://stg-wpa.chat.zalo.me` — what the real production webpack
391
- +// bundle's `getDevDomainV3()` singleton actually returned when called
392
- +// live in-browser 2026-09-18 (via webpack-jsonp module-cache capture,
393
- +// zero real requests made). CONFIRMED CORRECT end-to-end, live-tested
394
- +// 2026-09-19 via a real `logout --purge`: "Server session invalidated
395
- +// for imei e239d3d5…", no fallback warning — a real authenticated
396
- +// call against this domain, not just the direct-call capture. ACTIVE
397
- +// BELOW. Candidate #3 above is left documented as the previously-
398
- +// confirmed fallback in case this domain is ever retired/changed, but
399
- +// is no longer needed.
400
- +//
401
- +// ENCRYPTION — the response body above is CONFIRMED to be plain JSON, not
402
- +// the usual AES-encrypted `data` field most zca-js API responses use.
403
- +// `utils.resolve()` defaults to `isEncrypted = true`, which tried to
404
- +// AES-decrypt the literal number `1` and, because crypto-js silently
405
- +// returns an empty string on bad ciphertext/padding rather than throwing,
406
- +// produced "Failed to parse response data: SyntaxError: Unexpected end of
407
- +// JSON input" (from `JSON.parse("")`) even though the call had already
408
- +// succeeded server-side. Fixed by passing `isEncrypted = false` to
409
- +// `utils.resolve()` here so `result.data` is used as-is.
410
- +//
411
- +// (Earlier iterations of this file also had a real bug where
412
- +// `utils.resolve(response)` was called without `await` — since it wraps
413
- +// an `async function`, that returned a pending Promise instead of the
414
- +// actual result, which silently broke a since-removed multi-candidate
415
- +// fallback loop. Not relevant now that the domain is confirmed and this
416
- +// is back to a single direct call, but noted here in case this file ever
417
- +// grows a retry/fallback again: always `await utils.resolve(...)`.)
418
- +export const logoutV2Factory = apiFactory()((api, ctx, utils) => {
419
- + const serviceURL = utils.makeURL("https://stg-wpa.chat.zalo.me/api/v2/login/logOut");
420
- + return async function logoutV2(compId = undefined) {
421
- + const params = {
422
- + time: Date.now(),
423
- + imei: ctx.imei,
424
- + computer_name: "Web",
425
- + language: ctx.language || "vi"
426
- + };
427
- + if (compId !== undefined) params.compId = compId;
428
- + const encryptedParams = utils.encodeAES(JSON.stringify(params));
429
- + if (!encryptedParams) throw new ZaloApiError("Failed to encrypt message");
430
- + const response = await utils.request(serviceURL, {
431
- + method: "POST",
432
- + body: new URLSearchParams({
433
- + params: encryptedParams,
434
- + }),
435
- + });
436
- + // isEncrypted = false — see the file header note above.
437
- + return await utils.resolve(response, undefined, false);
438
- + };
439
- +});
440
- diff --git a/node_modules/zca-js/dist/apis/sendBankCard.js b/node_modules/zca-js/dist/apis/sendBankCard.js
441
- index f1fbae0..5841159 100644
442
- --- a/node_modules/zca-js/dist/apis/sendBankCard.js
443
- +++ b/node_modules/zca-js/dist/apis/sendBankCard.js
444
- @@ -1,6 +1,19 @@
445
- import { ZaloApiError } from "../Errors/ZaloApiError.js";
446
- import { ThreadType } from "../models/index.js";
447
- import { apiFactory } from "../utils.js";
448
- +/**
449
- + * Hand the caller the cliMsgId that went on the wire.
450
- + *
451
- + * This endpoint names the field `cliMsgId` rather than `clientId`, but the
452
- + * problem is the same: it is generated here, posted, and then discarded, so
453
- + * `undo` and `deleteMessage` — both of which require it — had nothing to
454
- + * work with and a sent bank card could never be recalled.
455
- + */
456
- +function stampClientId(response, clientId) {
457
- + if (!response || typeof response != "object" || clientId == undefined)
458
- + return;
459
- + response.cliMsgId = String(clientId);
460
- +}
461
- export const sendBankCardFactory = apiFactory()((api, _, utils) => {
462
- const serviceURL = utils.makeURL(`${api.zpwServiceMap.zimsg[0]}/api/transfer/card`);
463
- /**
464
- @@ -14,11 +27,12 @@ export const sendBankCardFactory = apiFactory()((api, _, utils) => {
465
- */
466
- return async function sendBankCard(payload, threadId, type = ThreadType.User) {
467
- var _a;
468
- + const cliMsgId = Date.now().toString();
469
- const params = {
470
- binBank: payload.binBank,
471
- numAccBank: payload.numAccBank,
472
- nameAccBank: ((_a = payload.nameAccBank) === null || _a === void 0 ? void 0 : _a.toUpperCase()) || "---",
473
- - cliMsgId: Date.now().toString(),
474
- + cliMsgId: cliMsgId,
475
- tsMsg: Date.now(),
476
- destUid: threadId,
477
- destType: type === ThreadType.Group ? 1 : 0,
478
- @@ -32,6 +46,8 @@ export const sendBankCardFactory = apiFactory()((api, _, utils) => {
479
- params: encryptedParams,
480
- }),
481
- });
482
- - return utils.resolve(response);
483
- + const resolved = await utils.resolve(response);
484
- + stampClientId(resolved, cliMsgId);
485
- + return resolved;
486
- };
487
- });
488
- diff --git a/node_modules/zca-js/dist/apis/sendCard.js b/node_modules/zca-js/dist/apis/sendCard.js
489
- index 6904bc9..31b3c34 100644
490
- --- a/node_modules/zca-js/dist/apis/sendCard.js
491
- +++ b/node_modules/zca-js/dist/apis/sendCard.js
492
- @@ -1,6 +1,20 @@
493
- import { ZaloApiError } from "../Errors/ZaloApiError.js";
494
- import { ThreadType } from "../models/index.js";
495
- import { apiFactory } from "../utils.js";
496
- +/**
497
- + * Hand the caller the clientId that went on the wire.
498
- + *
499
- + * Zalo's send responses carry only {msgId}, but `undo` and `deleteMessage`
500
- + * both require the cliMsgId, which is client-generated and not derivable
501
- + * from a msgId. Without this a message of this kind can be sent and then
502
- + * never recalled. Mirrors the helper in sendMessage.js; kept local so a
503
- + * zca-js bump that breaks one file cannot break the others.
504
- + */
505
- +function stampClientId(response, clientId) {
506
- + if (!response || typeof response != "object" || clientId == undefined)
507
- + return;
508
- + response.cliMsgId = String(clientId);
509
- +}
510
- export const sendCardFactory = apiFactory()((api, ctx, utils) => {
511
- const serviceURL = {
512
- [ThreadType.User]: utils.makeURL(`${api.zpwServiceMap.file[0]}/api/message/forward`),
513
- @@ -54,6 +68,8 @@ export const sendCardFactory = apiFactory()((api, ctx, utils) => {
514
- params: encryptedParams,
515
- }),
516
- });
517
- - return utils.resolve(response);
518
- + const resolved = await utils.resolve(response);
519
- + stampClientId(resolved, clientId);
520
- + return resolved;
521
- };
522
- });
523
- diff --git a/node_modules/zca-js/dist/apis/sendLink.js b/node_modules/zca-js/dist/apis/sendLink.js
524
- index b171101..4da232d 100644
525
- --- a/node_modules/zca-js/dist/apis/sendLink.js
526
- +++ b/node_modules/zca-js/dist/apis/sendLink.js
527
- @@ -1,6 +1,20 @@
528
- import { ZaloApiError } from "../Errors/ZaloApiError.js";
529
- import { ThreadType } from "../models/index.js";
530
- import { apiFactory } from "../utils.js";
531
- +/**
532
- + * Hand the caller the clientId that went on the wire.
533
- + *
534
- + * Zalo's send responses carry only {msgId}, but `undo` and `deleteMessage`
535
- + * both require the cliMsgId, which is client-generated and not derivable
536
- + * from a msgId. Without this a message of this kind can be sent and then
537
- + * never recalled. Mirrors the helper in sendMessage.js; kept local so a
538
- + * zca-js bump that breaks one file cannot break the others.
539
- + */
540
- +function stampClientId(response, clientId) {
541
- + if (!response || typeof response != "object" || clientId == undefined)
542
- + return;
543
- + response.cliMsgId = String(clientId);
544
- +}
545
- export const sendLinkFactory = apiFactory()((api, ctx, utils) => {
546
- const serviceURL = {
547
- [ThreadType.User]: utils.makeURL(`${api.zpwServiceMap.chat[0]}/api/message/link`, {
548
- @@ -22,6 +36,7 @@ export const sendLinkFactory = apiFactory()((api, ctx, utils) => {
549
- return async function sendLink(options, threadId, type = ThreadType.User) {
550
- var _a;
551
- const res = await api.parseLink(options.link);
552
- + const clientId = Date.now();
553
- const params = {
554
- msg: options.msg && options.msg.trim()
555
- ? options.msg.includes(options.link)
556
- @@ -36,7 +51,7 @@ export const sendLinkFactory = apiFactory()((api, ctx, utils) => {
557
- type: 2, // 0
558
- media: JSON.stringify(res.data.media),
559
- ttl: (_a = options.ttl) !== null && _a !== void 0 ? _a : 0,
560
- - clientId: Date.now(),
561
- + clientId: clientId,
562
- };
563
- if (type == ThreadType.Group) {
564
- params.grid = threadId;
565
- @@ -56,6 +71,8 @@ export const sendLinkFactory = apiFactory()((api, ctx, utils) => {
566
- params: encryptedParams,
567
- }),
568
- });
569
- - return utils.resolve(response);
570
- + const resolved = await utils.resolve(response);
571
- + stampClientId(resolved, clientId);
572
- + return resolved;
573
- };
574
- });
575
- diff --git a/node_modules/zca-js/dist/apis/sendMessage.d.ts b/node_modules/zca-js/dist/apis/sendMessage.d.ts
576
- index 8031f4e..c085286 100644
577
- --- a/node_modules/zca-js/dist/apis/sendMessage.d.ts
578
- +++ b/node_modules/zca-js/dist/apis/sendMessage.d.ts
579
- @@ -1,6 +1,12 @@
580
- import { ThreadType, type TMessage, type AttachmentSource } from "../models/index.js";
581
- export type SendMessageResult = {
582
- msgId: number;
583
- + /**
584
- + * The clientId this library put on the wire for the message, which Zalo
585
- + * echoes back as its cliMsgId. Present for text messages sent through
586
- + * `handleMessage`; absent for attachments.
587
- + */
588
- + cliMsgId?: string;
589
- };
590
- export type SendMessageResponse = {
591
- message: SendMessageResult | null;
592
- diff --git a/node_modules/zca-js/dist/apis/sendMessage.js b/node_modules/zca-js/dist/apis/sendMessage.js
593
- index 5bda5bc..5982d78 100644
594
- --- a/node_modules/zca-js/dist/apis/sendMessage.js
595
- +++ b/node_modules/zca-js/dist/apis/sendMessage.js
596
- @@ -9,6 +9,18 @@ const attachmentUrlType = {
597
- video: "asyncfile/msg?",
598
- others: "asyncfile/msg?",
599
- };
600
- +/**
601
- + * Record on the send response the clientId that was actually sent.
602
- + *
603
- + * The send endpoint returns only `{msgId}`, so without this the caller has
604
- + * no way to learn the cliMsgId Zalo now holds for the message -- guessing it
605
- + * with a second Date.now() is off by however long the encrypt + POST took.
606
- + */
607
- +function stampClientId(response, clientId) {
608
- + if (!response || typeof response != "object" || clientId == undefined)
609
- + return;
610
- + response.cliMsgId = String(clientId);
611
- +}
612
- function prepareQMSGAttach(quote) {
613
- const quoteData = quote;
614
- if (typeof quoteData.content == "string")
615
- @@ -177,12 +189,16 @@ export const sendMessageFactory = apiFactory()((api, ctx, utils) => {
616
- }
617
- }
618
- const isMentionsValid = mentionsFinal.length > 0 && isGroupMessage;
619
- + // Hoisted so the caller can learn which clientId went on the wire.
620
- + // Zalo echoes this back as the message's cliMsgId, and `msg react`,
621
- + // `msg undo` and quote-replies all need that exact value.
622
- + const clientId = Date.now();
623
- const params = quote
624
- ? {
625
- toid: isGroupMessage ? undefined : threadId,
626
- grid: isGroupMessage ? threadId : undefined,
627
- message: msg,
628
- - clientId: Date.now(),
629
- + clientId,
630
- mentionInfo: isMentionsValid ? JSON.stringify(mentionsFinal) : undefined,
631
- qmsgOwner: quote.uidFrom,
632
- qmsgId: quote.msgId,
633
- @@ -198,7 +214,7 @@ export const sendMessageFactory = apiFactory()((api, ctx, utils) => {
634
- }
635
- : {
636
- message: msg,
637
- - clientId: Date.now(),
638
- + clientId,
639
- mentionInfo: isMentionsValid ? JSON.stringify(mentionsFinal) : undefined,
640
- imei: isGroupMessage ? undefined : ctx.imei,
641
- ttl: ttl !== null && ttl !== void 0 ? ttl : 0,
642
- @@ -225,6 +241,7 @@ export const sendMessageFactory = apiFactory()((api, ctx, utils) => {
643
- return {
644
- url: finalServiceUrl.toString(),
645
- body: new URLSearchParams({ params: encryptedParams }),
646
- + clientId: String(clientId),
647
- };
648
- }
649
- async function handleAttachment({ msg, attachments, mentions, quote, ttl, urgency }, threadId, type) {
650
- @@ -383,6 +400,9 @@ export const sendMessageFactory = apiFactory()((api, ctx, utils) => {
651
- body: formData.getBuffer(),
652
- headers: formData.getHeaders(),
653
- fileType: "gif",
654
- + // Retained so the caller can learn which clientId went on the
655
- + // wire; the params object itself is encrypted past this point.
656
- + clientId: params.clientId,
657
- });
658
- }
659
- const responses = [];
660
- @@ -393,6 +413,9 @@ export const sendMessageFactory = apiFactory()((api, ctx, utils) => {
661
- }, data.query || {})),
662
- body: data.body,
663
- headers: data.fileType == "gif" ? data.headers : {},
664
- + // send() reads url/body/headers only, so this rides along
665
- + // untouched and lets sendMessage() stamp the response.
666
- + clientId: data.clientId != undefined ? data.clientId : data.params && data.params.clientId,
667
- });
668
- }
669
- return responses;
670
- @@ -435,17 +458,28 @@ export const sendMessageFactory = apiFactory()((api, ctx, utils) => {
671
- // send message and attachment separately
672
- await handleMessage(message, threadId, type).then(async (data) => {
673
- responses.message = (await send(data))[0];
674
- + stampClientId(responses.message, data.clientId);
675
- });
676
- msg = "";
677
- mentions = undefined;
678
- }
679
- const handledData = await handleAttachment({ msg, mentions, attachments, quote, ttl, styles, urgency }, threadId, type);
680
- - responses.attachment = await send(handledData);
681
- + // Stamp the attachment responses too. Upstream stamps only
682
- + // responses.message, and for a single jpg/jpeg/png/webp canBeDesc
683
- + // is true so the caption folds into the attachment and
684
- + // responses.message stays null -- leaving an attachment send with
685
- + // NO cliMsgId anywhere, which makes `msg undo` unable to recall it
686
- + // at all. send() is Promise.all over the input array, so the
687
- + // results are index-aligned with handledData.
688
- + const sentAttachments = await send(handledData);
689
- + sentAttachments.forEach((r, i) => stampClientId(r, handledData[i] && handledData[i].clientId));
690
- + responses.attachment = sentAttachments;
691
- msg = "";
692
- }
693
- if (msg.length > 0) {
694
- const handledData = await handleMessage(message, threadId, type);
695
- responses.message = (await send(handledData))[0];
696
- + stampClientId(responses.message, handledData.clientId);
697
- }
698
- return responses;
699
- };
700
- diff --git a/node_modules/zca-js/dist/apis/sendSticker.js b/node_modules/zca-js/dist/apis/sendSticker.js
701
- index e27c04e..7aeadae 100644
702
- --- a/node_modules/zca-js/dist/apis/sendSticker.js
703
- +++ b/node_modules/zca-js/dist/apis/sendSticker.js
704
- @@ -1,6 +1,20 @@
705
- import { ZaloApiError } from "../Errors/ZaloApiError.js";
706
- import { ThreadType } from "../models/index.js";
707
- import { apiFactory, removeUndefinedKeys } from "../utils.js";
708
- +/**
709
- + * Hand the caller the clientId that went on the wire.
710
- + *
711
- + * Zalo's send responses carry only {msgId}, but `undo` and `deleteMessage`
712
- + * both require the cliMsgId, which is client-generated and not derivable
713
- + * from a msgId. Without this a message of this kind can be sent and then
714
- + * never recalled. Mirrors the helper in sendMessage.js; kept local so a
715
- + * zca-js bump that breaks one file cannot break the others.
716
- + */
717
- +function stampClientId(response, clientId) {
718
- + if (!response || typeof response != "object" || clientId == undefined)
719
- + return;
720
- + response.cliMsgId = String(clientId);
721
- +}
722
- export const sendStickerFactory = apiFactory()((api, ctx, utils) => {
723
- const serviceURL = {
724
- [ThreadType.User]: utils.makeURL(`${api.zpwServiceMap.chat[0]}/api/message/sticker`, {
725
- @@ -32,11 +46,12 @@ export const sendStickerFactory = apiFactory()((api, ctx, utils) => {
726
- if (!sticker.type)
727
- throw new ZaloApiError("Missing sticker type");
728
- const isGroupMessage = type === ThreadType.Group;
729
- + const clientId = Date.now();
730
- const params = {
731
- stickerId: sticker.id,
732
- cateId: sticker.cateId,
733
- type: sticker.type,
734
- - clientId: Date.now(),
735
- + clientId: clientId,
736
- imei: ctx.imei,
737
- zsource: 101,
738
- toid: isGroupMessage ? undefined : threadId,
739
- @@ -52,6 +67,8 @@ export const sendStickerFactory = apiFactory()((api, ctx, utils) => {
740
- params: encryptedParams,
741
- }),
742
- });
743
- - return utils.resolve(response);
744
- + const resolved = await utils.resolve(response);
745
- + stampClientId(resolved, clientId);
746
- + return resolved;
747
- };
748
- });
749
- diff --git a/node_modules/zca-js/dist/apis/sendVideo.js b/node_modules/zca-js/dist/apis/sendVideo.js
750
- index 03c818c..ce8a096 100644
751
- --- a/node_modules/zca-js/dist/apis/sendVideo.js
752
- +++ b/node_modules/zca-js/dist/apis/sendVideo.js
753
- @@ -1,6 +1,20 @@
754
- import { ZaloApiError } from "../Errors/ZaloApiError.js";
755
- import { ThreadType } from "../models/index.js";
756
- import { apiFactory } from "../utils.js";
757
- +/**
758
- + * Hand the caller the clientId that went on the wire.
759
- + *
760
- + * Zalo's send responses carry only {msgId}, but `undo` and `deleteMessage`
761
- + * both require the cliMsgId, which is client-generated and not derivable
762
- + * from a msgId. Without this a message of this kind can be sent and then
763
- + * never recalled. Mirrors the helper in sendMessage.js; kept local so a
764
- + * zca-js bump that breaks one file cannot break the others.
765
- + */
766
- +function stampClientId(response, clientId) {
767
- + if (!response || typeof response != "object" || clientId == undefined)
768
- + return;
769
- + response.cliMsgId = String(clientId);
770
- +}
771
- export const sendVideoFactory = apiFactory()((api, ctx, utils) => {
772
- const serviceURL = {
773
- [ThreadType.User]: utils.makeURL(`${api.zpwServiceMap.file[0]}/api/message/forward`),
774
- @@ -113,6 +127,8 @@ export const sendVideoFactory = apiFactory()((api, ctx, utils) => {
775
- params: encryptedParams,
776
- }),
777
- });
778
- - return utils.resolve(response);
779
- + const resolved = await utils.resolve(response);
780
- + stampClientId(resolved, clientId);
781
- + return resolved;
782
- };
783
- });
784
- diff --git a/node_modules/zca-js/dist/apis/sendVoice.js b/node_modules/zca-js/dist/apis/sendVoice.js
785
- index f8bcc6b..806fb2e 100644
786
- --- a/node_modules/zca-js/dist/apis/sendVoice.js
787
- +++ b/node_modules/zca-js/dist/apis/sendVoice.js
788
- @@ -1,6 +1,20 @@
789
- import { ZaloApiError } from "../Errors/ZaloApiError.js";
790
- import { ThreadType } from "../models/index.js";
791
- import { apiFactory } from "../utils.js";
792
- +/**
793
- + * Hand the caller the clientId that went on the wire.
794
- + *
795
- + * Zalo's send responses carry only {msgId}, but `undo` and `deleteMessage`
796
- + * both require the cliMsgId, which is client-generated and not derivable
797
- + * from a msgId. Without this a message of this kind can be sent and then
798
- + * never recalled. Mirrors the helper in sendMessage.js; kept local so a
799
- + * zca-js bump that breaks one file cannot break the others.
800
- + */
801
- +function stampClientId(response, clientId) {
802
- + if (!response || typeof response != "object" || clientId == undefined)
803
- + return;
804
- + response.cliMsgId = String(clientId);
805
- +}
806
- export const sendVoiceFactory = apiFactory()((api, ctx, utils) => {
807
- const serviceURL = {
808
- [ThreadType.User]: utils.makeURL(`${api.zpwServiceMap.file[0]}/api/message/forward`),
809
- @@ -68,6 +82,8 @@ export const sendVoiceFactory = apiFactory()((api, ctx, utils) => {
810
- params: encryptedParams,
811
- }),
812
- });
813
- - return utils.resolve(response);
814
- + const resolved = await utils.resolve(response);
815
- + stampClientId(resolved, clientId);
816
- + return resolved;
817
- };
818
- });
819
- diff --git a/node_modules/zca-js/dist/cjs/apis.cjs b/node_modules/zca-js/dist/cjs/apis.cjs
820
- index c151de0..e49f3d6 100644
821
- --- a/node_modules/zca-js/dist/cjs/apis.cjs
822
- +++ b/node_modules/zca-js/dist/cjs/apis.cjs
823
- @@ -156,6 +156,7 @@ var uploadAttachment = require('./apis/uploadAttachment.cjs');
824
- var uploadProductPhoto = require('./apis/uploadProductPhoto.cjs');
825
- var votePoll = require('./apis/votePoll.cjs');
826
- var custom = require('./apis/custom.cjs');
827
- +var logoutV2 = require('./apis/logoutV2.cjs');
828
-
829
- class API {
830
- constructor(ctx, zpwServiceMap, wsUrls) {
831
- @@ -316,6 +317,7 @@ class API {
832
- this.uploadProductPhoto = uploadProductPhoto.uploadProductPhotoFactory(ctx, this);
833
- this.votePoll = votePoll.votePollFactory(ctx, this);
834
- this.custom = custom.customFactory(ctx, this);
835
- + this.logoutV2 = logoutV2.logoutV2Factory(ctx, this);
836
- }
837
- }
838
-
839
- diff --git a/node_modules/zca-js/dist/cjs/apis/forwardMessage.cjs b/node_modules/zca-js/dist/cjs/apis/forwardMessage.cjs
840
- index f9c670b..4dfa11c 100644
841
- --- a/node_modules/zca-js/dist/cjs/apis/forwardMessage.cjs
842
- +++ b/node_modules/zca-js/dist/cjs/apis/forwardMessage.cjs
843
- @@ -13,6 +13,20 @@ require('../models/Reminder.cjs');
844
- require('../models/ZBusiness.cjs');
845
- var utils = require('../utils.cjs');
846
-
847
- +/**
848
- + * Hand the caller the clientId that went on the wire.
849
- + *
850
- + * Zalo's send responses carry only {msgId}, but `undo` and `deleteMessage`
851
- + * both require the cliMsgId, which is client-generated and not derivable
852
- + * from a msgId. Without this a message of this kind can be sent and then
853
- + * never recalled. Mirrors the helper in the ESM build; kept local so a
854
- + * zca-js bump that breaks one file cannot break the others.
855
- + */
856
- +function stampClientId(response, clientId) {
857
- + if (!response || typeof response != "object" || clientId == undefined)
858
- + return;
859
- + response.cliMsgId = String(clientId);
860
- +}
861
- const forwardMessageFactory = utils.apiFactory()((api, ctx, utils) => {
862
- const serviceURL = {
863
- [Enum.ThreadType.User]: utils.makeURL(`${api.zpwServiceMap.file[0]}/api/message/mforward`),
864
- @@ -106,7 +120,9 @@ const forwardMessageFactory = utils.apiFactory()((api, ctx, utils) => {
865
- params: encryptedParams,
866
- }),
867
- });
868
- - return utils.resolve(response);
869
- + const resolved = await utils.resolve(response);
870
- + stampClientId(resolved, clientId);
871
- + return resolved;
872
- };
873
- });
874
-
875
- diff --git a/node_modules/zca-js/dist/cjs/apis/loginQR.cjs b/node_modules/zca-js/dist/cjs/apis/loginQR.cjs
876
- index dbd08ed..8abfdab 100644
877
- --- a/node_modules/zca-js/dist/cjs/apis/loginQR.cjs
878
- +++ b/node_modules/zca-js/dist/cjs/apis/loginQR.cjs
879
- @@ -15,6 +15,20 @@ exports.LoginQRCallbackEventType = void 0;
880
- LoginQRCallbackEventType[LoginQRCallbackEventType["QRCodeDeclined"] = 3] = "QRCodeDeclined";
881
- LoginQRCallbackEventType[LoginQRCallbackEventType["GotLoginInfo"] = 4] = "GotLoginInfo";
882
- })(exports.LoginQRCallbackEventType || (exports.LoginQRCallbackEventType = {}));
883
- +/**
884
- + * Device-fingerprint client hints, with the original hardcoded values as the
885
- + * fallback. src/core/zalo-client.js puts secChUa / secChUaMobile /
886
- + * secChUaPlatform on ctx; without this the CJS build would ignore the
887
- + * fingerprint and always claim Chrome 130 on Windows. Mirrors the ESM build.
888
- + */
889
- +function secChUaHeaders(ctx) {
890
- + var _a, _b, _c;
891
- + return {
892
- + "sec-ch-ua": (_a = ctx.secChUa) !== null && _a !== void 0 ? _a : '"Chromium";v="130", "Google Chrome";v="130", "Not?A_Brand";v="99"',
893
- + "sec-ch-ua-mobile": (_b = ctx.secChUaMobile) !== null && _b !== void 0 ? _b : "?0",
894
- + "sec-ch-ua-platform": (_c = ctx.secChUaPlatform) !== null && _c !== void 0 ? _c : '"Windows"',
895
- + };
896
- +}
897
- async function loadLoginPage(ctx) {
898
- const response = await utils.request(ctx, "https://id.zalo.me/account?continue=https%3A%2F%2Fchat.zalo.me%2F", {
899
- headers: {
900
- @@ -22,9 +36,7 @@ async function loadLoginPage(ctx) {
901
- "accept-language": "vi-VN,vi;q=0.9,fr-FR;q=0.8,fr;q=0.7,en-US;q=0.6,en;q=0.5",
902
- "cache-control": "max-age=0",
903
- priority: "u=0, i",
904
- - "sec-ch-ua": '"Chromium";v="130", "Google Chrome";v="130", "Not?A_Brand";v="99"',
905
- - "sec-ch-ua-mobile": "?0",
906
- - "sec-ch-ua-platform": '"Windows"',
907
- + ...secChUaHeaders(ctx),
908
- "sec-fetch-dest": "document",
909
- "sec-fetch-mode": "navigate",
910
- "sec-fetch-site": "same-site",
911
- @@ -50,9 +62,7 @@ async function getLoginInfo(ctx, version) {
912
- "accept-language": "vi-VN,vi;q=0.9,fr-FR;q=0.8,fr;q=0.7,en-US;q=0.6,en;q=0.5",
913
- "content-type": "application/x-www-form-urlencoded",
914
- priority: "u=1, i",
915
- - "sec-ch-ua": '"Chromium";v="130", "Google Chrome";v="130", "Not?A_Brand";v="99"',
916
- - "sec-ch-ua-mobile": "?0",
917
- - "sec-ch-ua-platform": '"Windows"',
918
- + ...secChUaHeaders(ctx),
919
- "sec-fetch-dest": "empty",
920
- "sec-fetch-mode": "cors",
921
- "sec-fetch-site": "same-origin",
922
- @@ -76,9 +86,7 @@ async function verifyClient(ctx, version) {
923
- "accept-language": "vi-VN,vi;q=0.9,fr-FR;q=0.8,fr;q=0.7,en-US;q=0.6,en;q=0.5",
924
- "content-type": "application/x-www-form-urlencoded",
925
- priority: "u=1, i",
926
- - "sec-ch-ua": '"Chromium";v="130", "Google Chrome";v="130", "Not?A_Brand";v="99"',
927
- - "sec-ch-ua-mobile": "?0",
928
- - "sec-ch-ua-platform": '"Windows"',
929
- + ...secChUaHeaders(ctx),
930
- "sec-fetch-dest": "empty",
931
- "sec-fetch-mode": "cors",
932
- "sec-fetch-site": "same-origin",
933
- @@ -101,9 +109,7 @@ async function generate(ctx, version) {
934
- "accept-language": "vi-VN,vi;q=0.9,fr-FR;q=0.8,fr;q=0.7,en-US;q=0.6,en;q=0.5",
935
- "content-type": "application/x-www-form-urlencoded",
936
- priority: "u=1, i",
937
- - "sec-ch-ua": '"Chromium";v="130", "Google Chrome";v="130", "Not?A_Brand";v="99"',
938
- - "sec-ch-ua-mobile": "?0",
939
- - "sec-ch-ua-platform": '"Windows"',
940
- + ...secChUaHeaders(ctx),
941
- "sec-fetch-dest": "empty",
942
- "sec-fetch-mode": "cors",
943
- "sec-fetch-site": "same-origin",
944
- @@ -130,9 +136,7 @@ async function waitingScan(ctx, version, code, signal) {
945
- "accept-language": "vi-VN,vi;q=0.9,fr-FR;q=0.8,fr;q=0.7,en-US;q=0.6,en;q=0.5",
946
- "content-type": "application/x-www-form-urlencoded",
947
- priority: "u=1, i",
948
- - "sec-ch-ua": '"Chromium";v="130", "Google Chrome";v="130", "Not?A_Brand";v="99"',
949
- - "sec-ch-ua-mobile": "?0",
950
- - "sec-ch-ua-platform": '"Windows"',
951
- + ...secChUaHeaders(ctx),
952
- "sec-fetch-dest": "empty",
953
- "sec-fetch-mode": "cors",
954
- "sec-fetch-site": "same-origin",
955
- @@ -169,9 +173,7 @@ async function waitingConfirm(ctx, version, code, signal) {
956
- "accept-language": "vi-VN,vi;q=0.9,fr-FR;q=0.8,fr;q=0.7,en-US;q=0.6,en;q=0.5",
957
- "content-type": "application/x-www-form-urlencoded",
958
- priority: "u=1, i",
959
- - "sec-ch-ua": '"Chromium";v="130", "Google Chrome";v="130", "Not?A_Brand";v="99"',
960
- - "sec-ch-ua-mobile": "?0",
961
- - "sec-ch-ua-platform": '"Windows"',
962
- + ...secChUaHeaders(ctx),
963
- "sec-fetch-dest": "empty",
964
- "sec-fetch-mode": "cors",
965
- "sec-fetch-site": "same-origin",
966
- @@ -200,9 +202,7 @@ async function checkSession(ctx) {
967
- accept: "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7",
968
- "accept-language": "vi-VN,vi;q=0.9,fr-FR;q=0.8,fr;q=0.7,en-US;q=0.6,en;q=0.5",
969
- priority: "u=0, i",
970
- - "sec-ch-ua": '"Chromium";v="130", "Google Chrome";v="130", "Not?A_Brand";v="99"',
971
- - "sec-ch-ua-mobile": "?0",
972
- - "sec-ch-ua-platform": '"Windows"',
973
- + ...secChUaHeaders(ctx),
974
- "sec-fetch-dest": "document",
975
- "sec-fetch-mode": "navigate",
976
- "sec-fetch-site": "same-origin",
977
- @@ -220,9 +220,7 @@ async function getUserInfo(ctx) {
978
- accept: "*/*",
979
- "accept-language": "vi-VN,vi;q=0.9,fr-FR;q=0.8,fr;q=0.7,en-US;q=0.6,en;q=0.5",
980
- priority: "u=1, i",
981
- - "sec-ch-ua": '"Chromium";v="130", "Google Chrome";v="130", "Not?A_Brand";v="99"',
982
- - "sec-ch-ua-mobile": "?0",
983
- - "sec-ch-ua-platform": '"Windows"',
984
- + ...secChUaHeaders(ctx),
985
- "sec-fetch-dest": "empty",
986
- "sec-fetch-mode": "cors",
987
- "sec-fetch-site": "same-site",
988
- diff --git a/node_modules/zca-js/dist/cjs/apis/logoutV2.cjs b/node_modules/zca-js/dist/cjs/apis/logoutV2.cjs
989
- new file mode 100644
990
- index 0000000..53cedb4
991
- --- /dev/null
992
- +++ b/node_modules/zca-js/dist/cjs/apis/logoutV2.cjs
993
- @@ -0,0 +1,83 @@
994
- +'use strict';
995
- +
996
- +var ZaloApiError = require('../Errors/ZaloApiError.cjs');
997
- +var utils = require('../utils.cjs');
998
- +
999
- +// CONFIRMED live 2026-09-19 against a real account. Mirrors Zalo Web's own
1000
- +// `ServiceURL.logoutV2(imei, compId?)` (commandId 12743, POST
1001
- +// /api/v2/login/logOut), reverse-engineered from the production webpack
1002
- +// bundle:
1003
- +// static logoutV2(e,t=void 0){
1004
- +// const a = _.b.getDevDomainV3() + "/api/v2/login/logOut?" + this._getCommonParams();
1005
- +// let s = { time, imei: e, computer_name, language };
1006
- +// if (t !== void 0) s.compId = t;
1007
- +// return this._post(a, "params=" + encodeURIComponent(encodeAES(JSON.stringify(s))), null, 12743);
1008
- +// }
1009
- +//
1010
- +// DOMAIN — resolved by trial (each guess live-tested against a real
1011
- +// account):
1012
- +// 1. `zpwServiceMap.aext` (aextra-wpa.chat.zalo.me) — the accessor
1013
- +// `getListDevice` uses. DISPROVEN: real HTTP 404.
1014
- +// 2. `zpwServiceMap.zavi` (wpa.zaloapp.com) — DISPROVEN: reachable, but a
1015
- +// real API error ({error_code:102, "session key was improperly
1016
- +// submitted..."}) — `zaloapp.com` is a different registrable domain
1017
- +// from `zalo.me`, so the zpw_sek session cookie (scoped to `.zalo.me`)
1018
- +// never reached it.
1019
- +// 3. `https://wpa.chat.zalo.me` (HARDCODED, not from zpwServiceMap) —
1020
- +// CONFIRMED CORRECT, live-tested 2026-09-19. Matches `getSettings.js`
1021
- +// in this same package (a genuinely working, authenticated,
1022
- +// hardcoded-domain call) and the known hardcoded PRE-login host this
1023
- +// package's `login.js` already uses. Live response:
1024
- +// `{"error_code":0,"error_message":"Successful.","data":1}`.
1025
- +// 4. `https://stg-wpa.chat.zalo.me` — what the real production webpack
1026
- +// bundle's `getDevDomainV3()` singleton actually returned when called
1027
- +// live in-browser 2026-09-18 (via webpack-jsonp module-cache capture,
1028
- +// zero real requests made). CONFIRMED CORRECT end-to-end, live-tested
1029
- +// 2026-09-19 via a real `logout --purge`: "Server session invalidated
1030
- +// for imei e239d3d5…", no fallback warning — a real authenticated
1031
- +// call against this domain, not just the direct-call capture. ACTIVE
1032
- +// BELOW. Candidate #3 above is left documented as the previously-
1033
- +// confirmed fallback in case this domain is ever retired/changed, but
1034
- +// is no longer needed.
1035
- +//
1036
- +// ENCRYPTION — the response body above is CONFIRMED to be plain JSON, not
1037
- +// the usual AES-encrypted `data` field most zca-js API responses use.
1038
- +// `utils.resolve()` defaults to `isEncrypted = true`, which tried to
1039
- +// AES-decrypt the literal number `1` and, because crypto-js silently
1040
- +// returns an empty string on bad ciphertext/padding rather than throwing,
1041
- +// produced "Failed to parse response data: SyntaxError: Unexpected end of
1042
- +// JSON input" (from `JSON.parse("")`) even though the call had already
1043
- +// succeeded server-side. Fixed by passing `isEncrypted = false` to
1044
- +// `utils.resolve()` here so `result.data` is used as-is.
1045
- +//
1046
- +// (Earlier iterations of this file also had a real bug where
1047
- +// `utils.resolve(response)` was called without `await` — since it wraps
1048
- +// an `async function`, that returned a pending Promise instead of the
1049
- +// actual result, which silently broke a since-removed multi-candidate
1050
- +// fallback loop. Not relevant now that the domain is confirmed and this
1051
- +// is back to a single direct call, but noted here in case this file ever
1052
- +// grows a retry/fallback again: always `await utils.resolve(...)`.)
1053
- +const logoutV2Factory = utils.apiFactory()((api, ctx, utils) => {
1054
- + const serviceURL = utils.makeURL("https://stg-wpa.chat.zalo.me/api/v2/login/logOut");
1055
- + return async function logoutV2(compId = undefined) {
1056
- + const params = {
1057
- + time: Date.now(),
1058
- + imei: ctx.imei,
1059
- + computer_name: "Web",
1060
- + language: ctx.language || "vi"
1061
- + };
1062
- + if (compId !== undefined) params.compId = compId;
1063
- + const encryptedParams = utils.encodeAES(JSON.stringify(params));
1064
- + if (!encryptedParams) throw new ZaloApiError.ZaloApiError("Failed to encrypt message");
1065
- + const response = await utils.request(serviceURL, {
1066
- + method: "POST",
1067
- + body: new URLSearchParams({
1068
- + params: encryptedParams,
1069
- + }),
1070
- + });
1071
- + // isEncrypted = false — see the file header note above.
1072
- + return await utils.resolve(response, undefined, false);
1073
- + };
1074
- +});
1075
- +
1076
- +exports.logoutV2Factory = logoutV2Factory;
1077
- diff --git a/node_modules/zca-js/dist/cjs/apis/sendBankCard.cjs b/node_modules/zca-js/dist/cjs/apis/sendBankCard.cjs
1078
- index a2ad818..3726a37 100644
1079
- --- a/node_modules/zca-js/dist/cjs/apis/sendBankCard.cjs
1080
- +++ b/node_modules/zca-js/dist/cjs/apis/sendBankCard.cjs
1081
- @@ -13,6 +13,20 @@ require('../models/Reminder.cjs');
1082
- require('../models/ZBusiness.cjs');
1083
- var utils = require('../utils.cjs');
1084
-
1085
- +/**
1086
- + * Hand the caller the clientId that went on the wire.
1087
- + *
1088
- + * Zalo's send responses carry only {msgId}, but `undo` and `deleteMessage`
1089
- + * both require the cliMsgId, which is client-generated and not derivable
1090
- + * from a msgId. Without this a message of this kind can be sent and then
1091
- + * never recalled. Mirrors the helper in the ESM build; kept local so a
1092
- + * zca-js bump that breaks one file cannot break the others.
1093
- + */
1094
- +function stampClientId(response, clientId) {
1095
- + if (!response || typeof response != "object" || clientId == undefined)
1096
- + return;
1097
- + response.cliMsgId = String(clientId);
1098
- +}
1099
- const sendBankCardFactory = utils.apiFactory()((api, _, utils) => {
1100
- const serviceURL = utils.makeURL(`${api.zpwServiceMap.zimsg[0]}/api/transfer/card`);
1101
- /**
1102
- @@ -26,11 +40,12 @@ const sendBankCardFactory = utils.apiFactory()((api, _, utils) => {
1103
- */
1104
- return async function sendBankCard(payload, threadId, type = Enum.ThreadType.User) {
1105
- var _a;
1106
- + const cliMsgId = Date.now().toString();
1107
- const params = {
1108
- binBank: payload.binBank,
1109
- numAccBank: payload.numAccBank,
1110
- nameAccBank: ((_a = payload.nameAccBank) === null || _a === void 0 ? void 0 : _a.toUpperCase()) || "---",
1111
- - cliMsgId: Date.now().toString(),
1112
- + cliMsgId: cliMsgId,
1113
- tsMsg: Date.now(),
1114
- destUid: threadId,
1115
- destType: type === Enum.ThreadType.Group ? 1 : 0,
1116
- @@ -44,7 +59,9 @@ const sendBankCardFactory = utils.apiFactory()((api, _, utils) => {
1117
- params: encryptedParams,
1118
- }),
1119
- });
1120
- - return utils.resolve(response);
1121
- + const resolved = await utils.resolve(response);
1122
- + stampClientId(resolved, cliMsgId);
1123
- + return resolved;
1124
- };
1125
- });
1126
-
1127
- diff --git a/node_modules/zca-js/dist/cjs/apis/sendCard.cjs b/node_modules/zca-js/dist/cjs/apis/sendCard.cjs
1128
- index b953268..0cdbbbc 100644
1129
- --- a/node_modules/zca-js/dist/cjs/apis/sendCard.cjs
1130
- +++ b/node_modules/zca-js/dist/cjs/apis/sendCard.cjs
1131
- @@ -13,6 +13,20 @@ require('../models/Reminder.cjs');
1132
- require('../models/ZBusiness.cjs');
1133
- var utils = require('../utils.cjs');
1134
-
1135
- +/**
1136
- + * Hand the caller the clientId that went on the wire.
1137
- + *
1138
- + * Zalo's send responses carry only {msgId}, but `undo` and `deleteMessage`
1139
- + * both require the cliMsgId, which is client-generated and not derivable
1140
- + * from a msgId. Without this a message of this kind can be sent and then
1141
- + * never recalled. Mirrors the helper in the ESM build; kept local so a
1142
- + * zca-js bump that breaks one file cannot break the others.
1143
- + */
1144
- +function stampClientId(response, clientId) {
1145
- + if (!response || typeof response != "object" || clientId == undefined)
1146
- + return;
1147
- + response.cliMsgId = String(clientId);
1148
- +}
1149
- const sendCardFactory = utils.apiFactory()((api, ctx, utils) => {
1150
- const serviceURL = {
1151
- [Enum.ThreadType.User]: utils.makeURL(`${api.zpwServiceMap.file[0]}/api/message/forward`),
1152
- @@ -66,7 +80,9 @@ const sendCardFactory = utils.apiFactory()((api, ctx, utils) => {
1153
- params: encryptedParams,
1154
- }),
1155
- });
1156
- - return utils.resolve(response);
1157
- + const resolved = await utils.resolve(response);
1158
- + stampClientId(resolved, clientId);
1159
- + return resolved;
1160
- };
1161
- });
1162
-
1163
- diff --git a/node_modules/zca-js/dist/cjs/apis/sendLink.cjs b/node_modules/zca-js/dist/cjs/apis/sendLink.cjs
1164
- index 00293a9..d3b7346 100644
1165
- --- a/node_modules/zca-js/dist/cjs/apis/sendLink.cjs
1166
- +++ b/node_modules/zca-js/dist/cjs/apis/sendLink.cjs
1167
- @@ -13,6 +13,20 @@ require('../models/Reminder.cjs');
1168
- require('../models/ZBusiness.cjs');
1169
- var utils = require('../utils.cjs');
1170
-
1171
- +/**
1172
- + * Hand the caller the clientId that went on the wire.
1173
- + *
1174
- + * Zalo's send responses carry only {msgId}, but `undo` and `deleteMessage`
1175
- + * both require the cliMsgId, which is client-generated and not derivable
1176
- + * from a msgId. Without this a message of this kind can be sent and then
1177
- + * never recalled. Mirrors the helper in the ESM build; kept local so a
1178
- + * zca-js bump that breaks one file cannot break the others.
1179
- + */
1180
- +function stampClientId(response, clientId) {
1181
- + if (!response || typeof response != "object" || clientId == undefined)
1182
- + return;
1183
- + response.cliMsgId = String(clientId);
1184
- +}
1185
- const sendLinkFactory = utils.apiFactory()((api, ctx, utils) => {
1186
- const serviceURL = {
1187
- [Enum.ThreadType.User]: utils.makeURL(`${api.zpwServiceMap.chat[0]}/api/message/link`, {
1188
- @@ -33,6 +47,7 @@ const sendLinkFactory = utils.apiFactory()((api, ctx, utils) => {
1189
- */
1190
- return async function sendLink(options, threadId, type = Enum.ThreadType.User) {
1191
- var _a;
1192
- + const clientId = Date.now();
1193
- const res = await api.parseLink(options.link);
1194
- const params = {
1195
- msg: options.msg && options.msg.trim()
1196
- @@ -48,7 +63,7 @@ const sendLinkFactory = utils.apiFactory()((api, ctx, utils) => {
1197
- type: 2, // 0
1198
- media: JSON.stringify(res.data.media),
1199
- ttl: (_a = options.ttl) !== null && _a !== void 0 ? _a : 0,
1200
- - clientId: Date.now(),
1201
- + clientId: clientId,
1202
- };
1203
- if (type == Enum.ThreadType.Group) {
1204
- params.grid = threadId;
1205
- @@ -68,7 +83,9 @@ const sendLinkFactory = utils.apiFactory()((api, ctx, utils) => {
1206
- params: encryptedParams,
1207
- }),
1208
- });
1209
- - return utils.resolve(response);
1210
- + const resolved = await utils.resolve(response);
1211
- + stampClientId(resolved, clientId);
1212
- + return resolved;
1213
- };
1214
- });
1215
-
1216
- diff --git a/node_modules/zca-js/dist/cjs/apis/sendMessage.cjs b/node_modules/zca-js/dist/cjs/apis/sendMessage.cjs
1217
- index a6f4bab..6967ff3 100644
1218
- --- a/node_modules/zca-js/dist/cjs/apis/sendMessage.cjs
1219
- +++ b/node_modules/zca-js/dist/cjs/apis/sendMessage.cjs
1220
- @@ -21,6 +21,18 @@ const attachmentUrlType = {
1221
- video: "asyncfile/msg?",
1222
- others: "asyncfile/msg?",
1223
- };
1224
- +/**
1225
- + * Record on the send response the clientId that was actually sent.
1226
- + *
1227
- + * The send endpoint returns only `{msgId}`, so without this the caller has
1228
- + * no way to learn the cliMsgId Zalo now holds for the message -- guessing it
1229
- + * with a second Date.now() is off by however long the encrypt + POST took.
1230
- + */
1231
- +function stampClientId(response, clientId) {
1232
- + if (!response || typeof response != "object" || clientId == undefined)
1233
- + return;
1234
- + response.cliMsgId = String(clientId);
1235
- +}
1236
- function prepareQMSGAttach(quote) {
1237
- const quoteData = quote;
1238
- if (typeof quoteData.content == "string")
1239
- @@ -189,12 +201,16 @@ const sendMessageFactory = utils.apiFactory()((api, ctx, utils$1) => {
1240
- }
1241
- }
1242
- const isMentionsValid = mentionsFinal.length > 0 && isGroupMessage;
1243
- + // Hoisted so the caller can learn which clientId went on the wire.
1244
- + // Zalo echoes this back as the message's cliMsgId, and `msg react`,
1245
- + // `msg undo` and quote-replies all need that exact value.
1246
- + const clientId = Date.now();
1247
- const params = quote
1248
- ? {
1249
- toid: isGroupMessage ? undefined : threadId,
1250
- grid: isGroupMessage ? threadId : undefined,
1251
- message: msg,
1252
- - clientId: Date.now(),
1253
- + clientId,
1254
- mentionInfo: isMentionsValid ? JSON.stringify(mentionsFinal) : undefined,
1255
- qmsgOwner: quote.uidFrom,
1256
- qmsgId: quote.msgId,
1257
- @@ -210,7 +226,7 @@ const sendMessageFactory = utils.apiFactory()((api, ctx, utils$1) => {
1258
- }
1259
- : {
1260
- message: msg,
1261
- - clientId: Date.now(),
1262
- + clientId,
1263
- mentionInfo: isMentionsValid ? JSON.stringify(mentionsFinal) : undefined,
1264
- imei: isGroupMessage ? undefined : ctx.imei,
1265
- ttl: ttl !== null && ttl !== void 0 ? ttl : 0,
1266
- @@ -237,6 +253,7 @@ const sendMessageFactory = utils.apiFactory()((api, ctx, utils$1) => {
1267
- return {
1268
- url: finalServiceUrl.toString(),
1269
- body: new URLSearchParams({ params: encryptedParams }),
1270
- + clientId: String(clientId),
1271
- };
1272
- }
1273
- async function handleAttachment({ msg, attachments, mentions, quote, ttl, urgency }, threadId, type) {
1274
- @@ -395,6 +412,9 @@ const sendMessageFactory = utils.apiFactory()((api, ctx, utils$1) => {
1275
- body: formData.getBuffer(),
1276
- headers: formData.getHeaders(),
1277
- fileType: "gif",
1278
- + // Retained so the caller can learn which clientId went on the
1279
- + // wire; the params object itself is encrypted past this point.
1280
- + clientId: params.clientId,
1281
- });
1282
- }
1283
- const responses = [];
1284
- @@ -405,6 +425,9 @@ const sendMessageFactory = utils.apiFactory()((api, ctx, utils$1) => {
1285
- }, data.query || {})),
1286
- body: data.body,
1287
- headers: data.fileType == "gif" ? data.headers : {},
1288
- + // send() reads url/body/headers only, so this rides along
1289
- + // untouched and lets sendMessage() stamp the response.
1290
- + clientId: data.clientId != undefined ? data.clientId : data.params && data.params.clientId,
1291
- });
1292
- }
1293
- return responses;
1294
- @@ -447,17 +470,28 @@ const sendMessageFactory = utils.apiFactory()((api, ctx, utils$1) => {
1295
- // send message and attachment separately
1296
- await handleMessage(message, threadId, type).then(async (data) => {
1297
- responses.message = (await send(data))[0];
1298
- + stampClientId(responses.message, data.clientId);
1299
- });
1300
- msg = "";
1301
- mentions = undefined;
1302
- }
1303
- const handledData = await handleAttachment({ msg, mentions, attachments, quote, ttl, styles, urgency }, threadId, type);
1304
- - responses.attachment = await send(handledData);
1305
- + // Stamp the attachment responses too. Upstream stamps only
1306
- + // responses.message, and for a single jpg/jpeg/png/webp canBeDesc
1307
- + // is true so the caption folds into the attachment and
1308
- + // responses.message stays null -- leaving an attachment send with
1309
- + // NO cliMsgId anywhere, which makes `msg undo` unable to recall it
1310
- + // at all. send() is Promise.all over the input array, so the
1311
- + // results are index-aligned with handledData.
1312
- + const sentAttachments = await send(handledData);
1313
- + sentAttachments.forEach((r, i) => stampClientId(r, handledData[i] && handledData[i].clientId));
1314
- + responses.attachment = sentAttachments;
1315
- msg = "";
1316
- }
1317
- if (msg.length > 0) {
1318
- const handledData = await handleMessage(message, threadId, type);
1319
- responses.message = (await send(handledData))[0];
1320
- + stampClientId(responses.message, handledData.clientId);
1321
- }
1322
- return responses;
1323
- };
1324
- diff --git a/node_modules/zca-js/dist/cjs/apis/sendSticker.cjs b/node_modules/zca-js/dist/cjs/apis/sendSticker.cjs
1325
- index 077ab16..b2a8ece 100644
1326
- --- a/node_modules/zca-js/dist/cjs/apis/sendSticker.cjs
1327
- +++ b/node_modules/zca-js/dist/cjs/apis/sendSticker.cjs
1328
- @@ -13,6 +13,20 @@ require('../models/Reminder.cjs');
1329
- require('../models/ZBusiness.cjs');
1330
- var utils = require('../utils.cjs');
1331
-
1332
- +/**
1333
- + * Hand the caller the clientId that went on the wire.
1334
- + *
1335
- + * Zalo's send responses carry only {msgId}, but `undo` and `deleteMessage`
1336
- + * both require the cliMsgId, which is client-generated and not derivable
1337
- + * from a msgId. Without this a message of this kind can be sent and then
1338
- + * never recalled. Mirrors the helper in the ESM build; kept local so a
1339
- + * zca-js bump that breaks one file cannot break the others.
1340
- + */
1341
- +function stampClientId(response, clientId) {
1342
- + if (!response || typeof response != "object" || clientId == undefined)
1343
- + return;
1344
- + response.cliMsgId = String(clientId);
1345
- +}
1346
- const sendStickerFactory = utils.apiFactory()((api, ctx, utils$1) => {
1347
- const serviceURL = {
1348
- [Enum.ThreadType.User]: utils$1.makeURL(`${api.zpwServiceMap.chat[0]}/api/message/sticker`, {
1349
- @@ -44,11 +58,12 @@ const sendStickerFactory = utils.apiFactory()((api, ctx, utils$1) => {
1350
- if (!sticker.type)
1351
- throw new ZaloApiError.ZaloApiError("Missing sticker type");
1352
- const isGroupMessage = type === Enum.ThreadType.Group;
1353
- + const clientId = Date.now();
1354
- const params = {
1355
- stickerId: sticker.id,
1356
- cateId: sticker.cateId,
1357
- type: sticker.type,
1358
- - clientId: Date.now(),
1359
- + clientId: clientId,
1360
- imei: ctx.imei,
1361
- zsource: 101,
1362
- toid: isGroupMessage ? undefined : threadId,
1363
- @@ -64,7 +79,9 @@ const sendStickerFactory = utils.apiFactory()((api, ctx, utils$1) => {
1364
- params: encryptedParams,
1365
- }),
1366
- });
1367
- - return utils$1.resolve(response);
1368
- + const resolved = await utils$1.resolve(response);
1369
- + stampClientId(resolved, clientId);
1370
- + return resolved;
1371
- };
1372
- });
1373
-
1374
- diff --git a/node_modules/zca-js/dist/cjs/apis/sendVideo.cjs b/node_modules/zca-js/dist/cjs/apis/sendVideo.cjs
1375
- index d779710..e62770b 100644
1376
- --- a/node_modules/zca-js/dist/cjs/apis/sendVideo.cjs
1377
- +++ b/node_modules/zca-js/dist/cjs/apis/sendVideo.cjs
1378
- @@ -13,6 +13,20 @@ require('../models/Reminder.cjs');
1379
- require('../models/ZBusiness.cjs');
1380
- var utils = require('../utils.cjs');
1381
-
1382
- +/**
1383
- + * Hand the caller the clientId that went on the wire.
1384
- + *
1385
- + * Zalo's send responses carry only {msgId}, but `undo` and `deleteMessage`
1386
- + * both require the cliMsgId, which is client-generated and not derivable
1387
- + * from a msgId. Without this a message of this kind can be sent and then
1388
- + * never recalled. Mirrors the helper in the ESM build; kept local so a
1389
- + * zca-js bump that breaks one file cannot break the others.
1390
- + */
1391
- +function stampClientId(response, clientId) {
1392
- + if (!response || typeof response != "object" || clientId == undefined)
1393
- + return;
1394
- + response.cliMsgId = String(clientId);
1395
- +}
1396
- const sendVideoFactory = utils.apiFactory()((api, ctx, utils) => {
1397
- const serviceURL = {
1398
- [Enum.ThreadType.User]: utils.makeURL(`${api.zpwServiceMap.file[0]}/api/message/forward`),
1399
- @@ -125,7 +139,9 @@ const sendVideoFactory = utils.apiFactory()((api, ctx, utils) => {
1400
- params: encryptedParams,
1401
- }),
1402
- });
1403
- - return utils.resolve(response);
1404
- + const resolved = await utils.resolve(response);
1405
- + stampClientId(resolved, clientId);
1406
- + return resolved;
1407
- };
1408
- });
1409
-
1410
- diff --git a/node_modules/zca-js/dist/cjs/apis/sendVoice.cjs b/node_modules/zca-js/dist/cjs/apis/sendVoice.cjs
1411
- index f371e14..134dcdf 100644
1412
- --- a/node_modules/zca-js/dist/cjs/apis/sendVoice.cjs
1413
- +++ b/node_modules/zca-js/dist/cjs/apis/sendVoice.cjs
1414
- @@ -13,6 +13,20 @@ require('../models/Reminder.cjs');
1415
- require('../models/ZBusiness.cjs');
1416
- var utils = require('../utils.cjs');
1417
-
1418
- +/**
1419
- + * Hand the caller the clientId that went on the wire.
1420
- + *
1421
- + * Zalo's send responses carry only {msgId}, but `undo` and `deleteMessage`
1422
- + * both require the cliMsgId, which is client-generated and not derivable
1423
- + * from a msgId. Without this a message of this kind can be sent and then
1424
- + * never recalled. Mirrors the helper in the ESM build; kept local so a
1425
- + * zca-js bump that breaks one file cannot break the others.
1426
- + */
1427
- +function stampClientId(response, clientId) {
1428
- + if (!response || typeof response != "object" || clientId == undefined)
1429
- + return;
1430
- + response.cliMsgId = String(clientId);
1431
- +}
1432
- const sendVoiceFactory = utils.apiFactory()((api, ctx, utils) => {
1433
- const serviceURL = {
1434
- [Enum.ThreadType.User]: utils.makeURL(`${api.zpwServiceMap.file[0]}/api/message/forward`),
1435
- @@ -80,7 +94,9 @@ const sendVoiceFactory = utils.apiFactory()((api, ctx, utils) => {
1436
- params: encryptedParams,
1437
- }),
1438
- });
1439
- - return utils.resolve(response);
1440
- + const resolved = await utils.resolve(response);
1441
- + stampClientId(resolved, clientId);
1442
- + return resolved;
1443
- };
1444
- });
1445
-