@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.
- package/.env.example +23 -2
- package/DISCLAIMER.md +3 -3
- package/LICENSE +2 -3
- package/NOTICE +14 -34
- package/README.md +166 -72
- package/package.json +37 -19
- package/src/commands/account.js +369 -40
- package/src/commands/auto-reply.js +8 -25
- package/src/commands/bank.js +25 -6
- package/src/commands/catalog.js +54 -11
- package/src/commands/cloud.js +459 -0
- package/src/commands/conv.js +470 -287
- package/src/commands/db.js +442 -0
- package/src/commands/fleet.js +449 -41
- package/src/commands/friend.js +198 -45
- package/src/commands/group.js +256 -43
- package/src/commands/label.js +16 -2
- package/src/commands/listen.js +495 -122
- package/src/commands/login.js +313 -117
- package/src/commands/mcp-approver.js +103 -0
- package/src/commands/mcp-webhook.js +13 -5
- package/src/commands/mcp.js +800 -104
- package/src/commands/msg-media.js +187 -0
- package/src/commands/msg-search.js +219 -0
- package/src/commands/msg.js +414 -110
- package/src/commands/oa/calls.js +134 -0
- package/src/commands/oa/content.js +266 -0
- package/src/commands/oa/gmf.js +429 -0
- package/src/commands/oa/messages.js +355 -0
- package/src/commands/oa/users.js +502 -0
- package/src/commands/oa-init.js +122 -123
- package/src/commands/oa-listen.js +374 -150
- package/src/commands/oa.js +83 -598
- package/src/commands/policy.js +224 -0
- package/src/commands/poll.js +3 -0
- package/src/commands/presence.js +175 -0
- package/src/commands/profile.js +45 -94
- package/src/commands/quick-msg.js +26 -0
- package/src/commands/read.js +172 -0
- package/src/commands/reminder.js +34 -4
- package/src/commands/social.js +223 -0
- package/src/commands/sync.js +482 -158
- package/src/commands/write.js +85 -0
- package/src/commands/zbs.js +502 -0
- package/src/core/account-devices.js +76 -0
- package/src/core/account-state.js +167 -0
- package/src/core/account-status.js +355 -0
- package/src/core/accounts.js +11 -4
- package/src/core/admin-api.js +392 -0
- package/src/core/approval.js +271 -0
- package/src/core/auto-reply.js +27 -0
- package/src/core/bank-accounts.js +1 -1
- package/src/core/block-sharing.js +43 -0
- package/src/core/board-pass.js +94 -0
- package/src/core/cached-message.js +78 -8
- package/src/core/cloud-plan.js +285 -0
- package/src/core/cloud-verify.js +305 -0
- package/src/core/confirm-guard.js +808 -0
- package/src/core/contact-names.js +504 -0
- package/src/core/control-events.js +525 -0
- package/src/core/control-replay.js +106 -0
- package/src/core/conversation-actions.js +214 -0
- package/src/core/credentials.js +112 -11
- package/src/core/current-user-names.js +60 -26
- package/src/core/daemon-channel.js +296 -15
- package/src/core/daemon-health.js +110 -7
- package/src/core/daemon-presence.js +455 -0
- package/src/core/daemon-sync.js +58 -18
- package/src/core/data-export.js +610 -0
- package/src/core/db-tools.js +473 -0
- package/src/core/db.js +1327 -83
- package/src/core/deploy-policy.js +560 -0
- package/src/core/device-since.js +123 -0
- package/src/core/e2ee-notice.js +41 -0
- package/src/core/exit-codes.js +7 -0
- package/src/core/export-crypt.js +290 -0
- package/src/core/fleet-controller.js +340 -0
- package/src/core/fleet-purge.js +144 -0
- package/src/core/fleet-qr.js +273 -0
- package/src/core/fleet-serve.js +292 -0
- package/src/core/fleet-supervisor.js +176 -0
- package/src/core/fleet-templates.js +568 -39
- package/src/core/fleet.js +232 -20
- package/src/core/friend-requests.js +80 -16
- package/src/core/friend-search.js +1 -1
- package/src/core/group-admin.js +2 -29
- package/src/core/group-departure.js +233 -0
- package/src/core/group-exit.js +621 -0
- package/src/core/group-members.js +21 -9
- package/src/core/group-settings.js +5 -207
- package/src/core/hidden-chat-actions.js +96 -0
- package/src/core/hidden-chats.js +425 -0
- package/src/core/history-fetch.js +81 -27
- package/src/core/keystore/config.js +163 -0
- package/src/core/keystore/container.js +208 -0
- package/src/core/keystore/index.js +483 -0
- package/src/core/keystore/keyring.js +588 -0
- package/src/core/keystore/kms.js +157 -0
- package/src/core/keystore/media-seal.js +711 -0
- package/src/core/keystore/providers.js +492 -0
- package/src/core/keystore/stores.js +177 -0
- package/src/core/keystore/worker.js +80 -0
- package/src/core/kick-marker.js +61 -0
- package/src/core/last-online.js +236 -0
- package/src/core/list-all.js +280 -0
- package/src/core/listener-lifecycle.js +101 -10
- package/src/core/live-api.js +1 -1
- package/src/core/live-store.js +111 -53
- package/src/core/local-reads.js +16 -0
- package/src/core/logout.js +102 -140
- package/src/core/media-deliver.js +732 -0
- package/src/core/media-route.js +347 -0
- package/src/core/media-store.js +408 -0
- package/src/core/mutual-groups.js +94 -0
- package/src/core/name-refresh.js +135 -0
- package/src/core/oa/calls.js +212 -0
- package/src/core/oa/content.js +390 -0
- package/src/core/oa/gmf.js +537 -0
- package/src/core/oa/messages.js +470 -0
- package/src/core/oa/oauth.js +422 -0
- package/src/core/oa/transport.js +645 -0
- package/src/core/oa/users.js +694 -0
- package/src/core/oa-client.js +49 -415
- package/src/core/overflow-repair.js +221 -0
- package/src/core/policy-layer.js +55 -0
- package/src/core/policy-schema.js +401 -0
- package/src/core/policy-store.js +1058 -0
- package/src/core/presence-config.js +100 -0
- package/src/core/presence-leases.js +211 -0
- package/src/core/presence.js +688 -0
- package/src/core/profile-settings.js +243 -0
- package/src/core/qr-login-flow.js +237 -0
- package/src/core/read-state.js +145 -22
- package/src/core/receipts.js +355 -548
- package/src/core/recent-conversations.js +28 -6
- package/src/core/row-mac.js +405 -0
- package/src/core/search.js +271 -0
- package/src/core/secure-page.js +771 -0
- package/src/core/self-heal.js +493 -34
- package/src/core/session-expiry.js +103 -0
- package/src/core/session-notice.js +249 -0
- package/src/core/social/client.js +296 -0
- package/src/core/social/dpop.js +54 -0
- package/src/core/socket-host.js +437 -0
- package/src/core/sqlite.js +520 -0
- package/src/core/startup-gate.js +49 -5
- package/src/core/storage-quota.js +796 -0
- package/src/core/sync-action.js +180 -0
- package/src/core/sync-v2/auto-sync.js +356 -0
- package/src/core/sync-v2/board.js +130 -92
- package/src/core/sync-v2/conv-state.js +21 -4
- package/src/core/sync-v2/gap-advice.js +2 -3
- package/src/core/sync-v2/index.js +739 -323
- package/src/core/sync-v2/media.js +116 -27
- package/src/core/sync-v2/plan.js +16 -2
- package/src/core/sync-v2/ranges.js +98 -0
- package/src/core/sync-v2/reactions.js +12 -196
- package/src/core/sync-v2/senders.js +32 -14
- package/src/core/sync-v2/zcloud.js +177 -579
- package/src/core/sync.js +23 -21
- package/src/core/test-fake-session.js +87 -0
- package/src/core/typing.js +78 -0
- package/src/core/unknown-acts.js +240 -0
- package/src/core/voice-text.js +171 -0
- package/src/core/webhook-outbox.js +110 -12
- package/src/core/zalo-client.js +147 -188
- package/src/core/zbs/api.js +505 -0
- package/src/core/zbs/image.js +85 -0
- package/src/core/zbs/phone.js +59 -0
- package/src/core/zbs/rsa.js +129 -0
- package/src/core/zbs/template-check.js +449 -0
- package/src/index.js +60 -10
- package/src/mcp/action-tool.js +188 -0
- package/src/mcp/actions-business.js +488 -0
- package/src/mcp/actions-conversation.js +633 -0
- package/src/mcp/actions-media.js +268 -0
- package/src/mcp/actions-profile.js +281 -0
- package/src/mcp/actions-social.js +518 -0
- package/src/mcp/instructions.js +19 -5
- package/src/mcp/mcp-config.js +112 -10
- package/src/mcp/mcp-http-transport.js +162 -25
- package/src/mcp/mcp-server.js +14 -3
- package/src/mcp/mcp-tools.js +1686 -384
- package/src/mcp/message-buffer.js +58 -12
- package/src/mcp/notifier.js +1 -1
- package/src/mcp/official-tool.js +298 -0
- package/src/mcp/sync-jobs.js +7 -1
- package/src/mcp/sync-stages.js +72 -0
- package/src/mcp/thread-name-cache.js +43 -5
- package/src/mcp/tool-presence.js +153 -0
- package/src/mcp/wait-batch.js +27 -0
- package/src/mcp/wait-result.js +19 -21
- package/src/utils/bank-helpers.js +52 -1
- package/src/utils/cli-args.js +12 -12
- package/src/utils/date-range.js +50 -0
- package/src/utils/hidden-access.js +141 -0
- package/src/utils/interrupt.js +37 -0
- package/src/utils/json-input.js +41 -0
- package/src/utils/list-replies.js +60 -0
- package/src/utils/my-documents.js +2 -3
- package/src/utils/output.js +66 -2
- package/src/utils/qr-display.js +14 -8
- package/src/utils/qr-http-server.js +674 -134
- package/src/utils/quote.js +8 -8
- package/src/utils/secret-input.js +57 -0
- package/src/utils/vn-text.js +72 -0
- package/src/zalo/README.md +46 -0
- package/src/zalo/anomaly-store.js +49 -0
- package/src/zalo/api/actions.js +670 -0
- package/src/zalo/api/boards.js +1036 -0
- package/src/zalo/api/business.js +662 -0
- package/src/zalo/api/conversations.js +329 -0
- package/src/zalo/api/groups.js +631 -0
- package/src/zalo/api/messages.js +695 -0
- package/src/zalo/api/people.js +711 -0
- package/src/zalo/api/profile.js +374 -0
- package/src/zalo/api/session.js +45 -0
- package/src/zalo/api/upload.js +976 -0
- package/src/zalo/api.js +117 -0
- package/src/zalo/client.js +206 -0
- package/src/zalo/custom/forward.js +199 -0
- package/src/zalo/custom/gid.js +123 -0
- package/src/zalo/custom/group-history.js +246 -0
- package/src/zalo/custom/group-invite.js +53 -0
- package/src/zalo/custom/group-settings.js +186 -0
- package/src/zalo/custom/group-visibility.js +71 -0
- package/src/zalo/custom/pin.js +220 -0
- package/src/zalo/custom/renewlink.js +115 -0
- package/src/zalo/device-fingerprint.js +33 -0
- package/src/zalo/download-fetch.js +45 -0
- package/src/zalo/enums.js +25 -0
- package/src/zalo/errors.js +195 -0
- package/src/zalo/format/mentions.js +140 -0
- package/src/zalo/format/split-message.js +222 -0
- package/src/zalo/format/urgency.js +29 -0
- package/src/zalo/headers.js +93 -0
- package/src/zalo/index.js +72 -0
- package/src/zalo/kernel/atomic-file.js +217 -0
- package/src/zalo/kernel/bound.js +46 -0
- package/src/zalo/kernel/cipher.js +88 -0
- package/src/zalo/kernel/cookies.js +125 -0
- package/src/zalo/kernel/endpoint.js +211 -0
- package/src/zalo/kernel/http.js +360 -0
- package/src/zalo/kernel/json-ids.js +118 -0
- package/src/zalo/kernel/login-cipher.js +165 -0
- package/src/zalo/kernel/secret-file.js +45 -0
- package/src/zalo/kernel/session.js +261 -0
- package/src/zalo/kernel/zcloud-cipher.js +83 -0
- package/src/zalo/kickout.js +136 -0
- package/src/zalo/listener/dispatch.js +404 -0
- package/src/zalo/listener/frames.js +222 -0
- package/src/zalo/listener/friend-events.js +113 -0
- package/src/zalo/listener/group-events.js +117 -0
- package/src/zalo/listener/keepalive.js +191 -0
- package/src/zalo/listener/listener.js +469 -0
- package/src/zalo/listener/models.js +220 -0
- package/src/zalo/listener/reactions.js +224 -0
- package/src/zalo/listener/socket-tap.js +228 -0
- package/src/zalo/login.js +387 -0
- package/src/zalo/logout.js +192 -0
- package/src/zalo/maintenance.js +183 -0
- package/src/zalo/official-logout.js +254 -0
- package/src/zalo/paging.js +114 -0
- package/src/zalo/profile.js +184 -0
- package/src/zalo/pulls.js +129 -0
- package/src/zalo/qr-image.js +90 -0
- package/src/zalo/qr-login.js +494 -0
- package/src/zalo/queues/control-queue.js +193 -0
- package/src/zalo/queues/offline-queue.js +275 -0
- package/src/zalo/queues/queue-verify.js +306 -0
- package/src/zalo/reads.js +723 -0
- package/src/zalo/receipts.js +550 -0
- package/src/zalo/req-id.js +24 -0
- package/src/zalo/retry.js +343 -0
- package/src/zalo/session-call.js +55 -0
- package/src/zalo/socket.js +762 -0
- package/src/zalo/transfer-sync/assets.js +181 -0
- package/src/zalo/transfer-sync/channel.js +459 -0
- package/src/zalo/transfer-sync/download.js +161 -0
- package/src/zalo/transfer-sync/message-types.js +520 -0
- package/src/zalo/transfer-sync/transfer.js +468 -0
- package/src/zalo/trust-store.js +99 -0
- package/src/zalo/trust-wasm.js +393 -0
- package/src/zalo/upkeep.js +127 -0
- package/src/zalo/web-call.js +103 -0
- package/src/zalo/writes.js +704 -0
- package/src/zalo/zcloud-e2ee.js +214 -0
- package/src/zalo/zcloud.js +802 -0
- package/node_modules/asynckit/LICENSE +0 -21
- package/node_modules/asynckit/README.md +0 -233
- package/node_modules/asynckit/bench.js +0 -76
- package/node_modules/asynckit/index.js +0 -6
- package/node_modules/asynckit/lib/abort.js +0 -29
- package/node_modules/asynckit/lib/async.js +0 -34
- package/node_modules/asynckit/lib/defer.js +0 -26
- package/node_modules/asynckit/lib/iterate.js +0 -75
- package/node_modules/asynckit/lib/readable_asynckit.js +0 -91
- package/node_modules/asynckit/lib/readable_parallel.js +0 -25
- package/node_modules/asynckit/lib/readable_serial.js +0 -25
- package/node_modules/asynckit/lib/readable_serial_ordered.js +0 -29
- package/node_modules/asynckit/lib/state.js +0 -37
- package/node_modules/asynckit/lib/streamify.js +0 -141
- package/node_modules/asynckit/lib/terminator.js +0 -29
- package/node_modules/asynckit/package.json +0 -63
- package/node_modules/asynckit/parallel.js +0 -43
- package/node_modules/asynckit/serial.js +0 -17
- package/node_modules/asynckit/serialOrdered.js +0 -75
- package/node_modules/asynckit/stream.js +0 -21
- package/node_modules/bignumber.js/CHANGELOG.md +0 -381
- package/node_modules/bignumber.js/LICENCE.md +0 -26
- package/node_modules/bignumber.js/README.md +0 -289
- package/node_modules/bignumber.js/bignumber.d.mts +0 -6
- package/node_modules/bignumber.js/bignumber.d.ts +0 -5
- package/node_modules/bignumber.js/bignumber.js +0 -2922
- package/node_modules/bignumber.js/bignumber.mjs +0 -2907
- package/node_modules/bignumber.js/doc/API.html +0 -2249
- package/node_modules/bignumber.js/package.json +0 -60
- package/node_modules/bignumber.js/types.d.ts +0 -1821
- package/node_modules/call-bind-apply-helpers/.eslintrc +0 -17
- package/node_modules/call-bind-apply-helpers/.github/FUNDING.yml +0 -12
- package/node_modules/call-bind-apply-helpers/.nycrc +0 -9
- package/node_modules/call-bind-apply-helpers/CHANGELOG.md +0 -30
- package/node_modules/call-bind-apply-helpers/LICENSE +0 -21
- package/node_modules/call-bind-apply-helpers/README.md +0 -62
- package/node_modules/call-bind-apply-helpers/actualApply.d.ts +0 -1
- package/node_modules/call-bind-apply-helpers/actualApply.js +0 -10
- package/node_modules/call-bind-apply-helpers/applyBind.d.ts +0 -19
- package/node_modules/call-bind-apply-helpers/applyBind.js +0 -10
- package/node_modules/call-bind-apply-helpers/functionApply.d.ts +0 -1
- package/node_modules/call-bind-apply-helpers/functionApply.js +0 -4
- package/node_modules/call-bind-apply-helpers/functionCall.d.ts +0 -1
- package/node_modules/call-bind-apply-helpers/functionCall.js +0 -4
- package/node_modules/call-bind-apply-helpers/index.d.ts +0 -64
- package/node_modules/call-bind-apply-helpers/index.js +0 -15
- package/node_modules/call-bind-apply-helpers/package.json +0 -85
- package/node_modules/call-bind-apply-helpers/reflectApply.d.ts +0 -3
- package/node_modules/call-bind-apply-helpers/reflectApply.js +0 -4
- package/node_modules/call-bind-apply-helpers/test/index.js +0 -63
- package/node_modules/call-bind-apply-helpers/tsconfig.json +0 -9
- package/node_modules/combined-stream/License +0 -19
- package/node_modules/combined-stream/Readme.md +0 -138
- package/node_modules/combined-stream/lib/combined_stream.js +0 -208
- package/node_modules/combined-stream/package.json +0 -25
- package/node_modules/crypto-js/CONTRIBUTING.md +0 -28
- package/node_modules/crypto-js/LICENSE +0 -24
- package/node_modules/crypto-js/README.md +0 -275
- package/node_modules/crypto-js/aes.js +0 -234
- package/node_modules/crypto-js/blowfish.js +0 -471
- package/node_modules/crypto-js/bower.json +0 -39
- package/node_modules/crypto-js/cipher-core.js +0 -895
- package/node_modules/crypto-js/core.js +0 -807
- package/node_modules/crypto-js/crypto-js.js +0 -6657
- package/node_modules/crypto-js/docs/QuickStartGuide.wiki +0 -470
- package/node_modules/crypto-js/enc-base64.js +0 -136
- package/node_modules/crypto-js/enc-base64url.js +0 -148
- package/node_modules/crypto-js/enc-hex.js +0 -18
- package/node_modules/crypto-js/enc-latin1.js +0 -18
- package/node_modules/crypto-js/enc-utf16.js +0 -149
- package/node_modules/crypto-js/enc-utf8.js +0 -18
- package/node_modules/crypto-js/evpkdf.js +0 -134
- package/node_modules/crypto-js/format-hex.js +0 -66
- package/node_modules/crypto-js/format-openssl.js +0 -18
- package/node_modules/crypto-js/hmac-md5.js +0 -18
- package/node_modules/crypto-js/hmac-ripemd160.js +0 -18
- package/node_modules/crypto-js/hmac-sha1.js +0 -18
- package/node_modules/crypto-js/hmac-sha224.js +0 -18
- package/node_modules/crypto-js/hmac-sha256.js +0 -18
- package/node_modules/crypto-js/hmac-sha3.js +0 -18
- package/node_modules/crypto-js/hmac-sha384.js +0 -18
- package/node_modules/crypto-js/hmac-sha512.js +0 -18
- package/node_modules/crypto-js/hmac.js +0 -143
- package/node_modules/crypto-js/index.js +0 -18
- package/node_modules/crypto-js/lib-typedarrays.js +0 -76
- package/node_modules/crypto-js/md5.js +0 -268
- package/node_modules/crypto-js/mode-cfb.js +0 -80
- package/node_modules/crypto-js/mode-ctr-gladman.js +0 -116
- package/node_modules/crypto-js/mode-ctr.js +0 -58
- package/node_modules/crypto-js/mode-ecb.js +0 -40
- package/node_modules/crypto-js/mode-ofb.js +0 -54
- package/node_modules/crypto-js/package.json +0 -42
- package/node_modules/crypto-js/pad-ansix923.js +0 -49
- package/node_modules/crypto-js/pad-iso10126.js +0 -44
- package/node_modules/crypto-js/pad-iso97971.js +0 -40
- package/node_modules/crypto-js/pad-nopadding.js +0 -30
- package/node_modules/crypto-js/pad-pkcs7.js +0 -18
- package/node_modules/crypto-js/pad-zeropadding.js +0 -47
- package/node_modules/crypto-js/pbkdf2.js +0 -145
- package/node_modules/crypto-js/rabbit-legacy.js +0 -190
- package/node_modules/crypto-js/rabbit.js +0 -192
- package/node_modules/crypto-js/rc4.js +0 -139
- package/node_modules/crypto-js/ripemd160.js +0 -267
- package/node_modules/crypto-js/sha1.js +0 -150
- package/node_modules/crypto-js/sha224.js +0 -80
- package/node_modules/crypto-js/sha256.js +0 -199
- package/node_modules/crypto-js/sha3.js +0 -326
- package/node_modules/crypto-js/sha384.js +0 -83
- package/node_modules/crypto-js/sha512.js +0 -326
- package/node_modules/crypto-js/tripledes.js +0 -779
- package/node_modules/crypto-js/x64-core.js +0 -304
- package/node_modules/delayed-stream/.npmignore +0 -1
- package/node_modules/delayed-stream/License +0 -19
- package/node_modules/delayed-stream/Makefile +0 -7
- package/node_modules/delayed-stream/Readme.md +0 -141
- package/node_modules/delayed-stream/lib/delayed_stream.js +0 -107
- package/node_modules/delayed-stream/package.json +0 -27
- package/node_modules/dunder-proto/.eslintrc +0 -5
- package/node_modules/dunder-proto/.github/FUNDING.yml +0 -12
- package/node_modules/dunder-proto/.nycrc +0 -13
- package/node_modules/dunder-proto/CHANGELOG.md +0 -24
- package/node_modules/dunder-proto/LICENSE +0 -21
- package/node_modules/dunder-proto/README.md +0 -54
- package/node_modules/dunder-proto/get.d.ts +0 -5
- package/node_modules/dunder-proto/get.js +0 -30
- package/node_modules/dunder-proto/package.json +0 -76
- package/node_modules/dunder-proto/set.d.ts +0 -5
- package/node_modules/dunder-proto/set.js +0 -35
- package/node_modules/dunder-proto/test/get.js +0 -34
- package/node_modules/dunder-proto/test/index.js +0 -4
- package/node_modules/dunder-proto/test/set.js +0 -50
- package/node_modules/dunder-proto/tsconfig.json +0 -9
- package/node_modules/es-define-property/.eslintrc +0 -13
- package/node_modules/es-define-property/.github/FUNDING.yml +0 -12
- package/node_modules/es-define-property/.nycrc +0 -9
- package/node_modules/es-define-property/CHANGELOG.md +0 -29
- package/node_modules/es-define-property/LICENSE +0 -21
- package/node_modules/es-define-property/README.md +0 -49
- package/node_modules/es-define-property/index.d.ts +0 -3
- package/node_modules/es-define-property/index.js +0 -14
- package/node_modules/es-define-property/package.json +0 -81
- package/node_modules/es-define-property/test/index.js +0 -56
- package/node_modules/es-define-property/tsconfig.json +0 -10
- package/node_modules/es-errors/.eslintrc +0 -5
- package/node_modules/es-errors/.github/FUNDING.yml +0 -12
- package/node_modules/es-errors/CHANGELOG.md +0 -40
- package/node_modules/es-errors/LICENSE +0 -21
- package/node_modules/es-errors/README.md +0 -55
- package/node_modules/es-errors/eval.d.ts +0 -3
- package/node_modules/es-errors/eval.js +0 -4
- package/node_modules/es-errors/index.d.ts +0 -3
- package/node_modules/es-errors/index.js +0 -4
- package/node_modules/es-errors/package.json +0 -80
- package/node_modules/es-errors/range.d.ts +0 -3
- package/node_modules/es-errors/range.js +0 -4
- package/node_modules/es-errors/ref.d.ts +0 -3
- package/node_modules/es-errors/ref.js +0 -4
- package/node_modules/es-errors/syntax.d.ts +0 -3
- package/node_modules/es-errors/syntax.js +0 -4
- package/node_modules/es-errors/test/index.js +0 -19
- package/node_modules/es-errors/tsconfig.json +0 -49
- package/node_modules/es-errors/type.d.ts +0 -3
- package/node_modules/es-errors/type.js +0 -4
- package/node_modules/es-errors/uri.d.ts +0 -3
- package/node_modules/es-errors/uri.js +0 -4
- package/node_modules/es-object-atoms/.eslintrc +0 -16
- package/node_modules/es-object-atoms/.github/FUNDING.yml +0 -12
- package/node_modules/es-object-atoms/CHANGELOG.md +0 -44
- package/node_modules/es-object-atoms/LICENSE +0 -21
- package/node_modules/es-object-atoms/README.md +0 -63
- package/node_modules/es-object-atoms/RequireObjectCoercible.d.ts +0 -3
- package/node_modules/es-object-atoms/RequireObjectCoercible.js +0 -11
- package/node_modules/es-object-atoms/ToObject.d.ts +0 -7
- package/node_modules/es-object-atoms/ToObject.js +0 -10
- package/node_modules/es-object-atoms/index.d.ts +0 -3
- package/node_modules/es-object-atoms/index.js +0 -4
- package/node_modules/es-object-atoms/isObject.d.ts +0 -3
- package/node_modules/es-object-atoms/isObject.js +0 -6
- package/node_modules/es-object-atoms/package.json +0 -79
- package/node_modules/es-object-atoms/test/index.js +0 -38
- package/node_modules/es-object-atoms/tsconfig.json +0 -7
- package/node_modules/es-set-tostringtag/.eslintrc +0 -13
- package/node_modules/es-set-tostringtag/.nycrc +0 -9
- package/node_modules/es-set-tostringtag/CHANGELOG.md +0 -67
- package/node_modules/es-set-tostringtag/LICENSE +0 -21
- package/node_modules/es-set-tostringtag/README.md +0 -53
- package/node_modules/es-set-tostringtag/index.d.ts +0 -10
- package/node_modules/es-set-tostringtag/index.js +0 -35
- package/node_modules/es-set-tostringtag/package.json +0 -78
- package/node_modules/es-set-tostringtag/test/index.js +0 -85
- package/node_modules/es-set-tostringtag/tsconfig.json +0 -9
- package/node_modules/form-data/CHANGELOG.md +0 -686
- package/node_modules/form-data/License +0 -19
- package/node_modules/form-data/README.md +0 -355
- package/node_modules/form-data/index.d.ts +0 -62
- package/node_modules/form-data/lib/browser.js +0 -4
- package/node_modules/form-data/lib/form_data.js +0 -506
- package/node_modules/form-data/lib/populate.js +0 -10
- package/node_modules/form-data/node_modules/mime-db/HISTORY.md +0 -507
- package/node_modules/form-data/node_modules/mime-db/LICENSE +0 -23
- package/node_modules/form-data/node_modules/mime-db/README.md +0 -100
- package/node_modules/form-data/node_modules/mime-db/db.json +0 -8519
- package/node_modules/form-data/node_modules/mime-db/index.js +0 -12
- package/node_modules/form-data/node_modules/mime-db/package.json +0 -60
- package/node_modules/form-data/node_modules/mime-types/HISTORY.md +0 -397
- package/node_modules/form-data/node_modules/mime-types/LICENSE +0 -23
- package/node_modules/form-data/node_modules/mime-types/README.md +0 -113
- package/node_modules/form-data/node_modules/mime-types/index.js +0 -188
- package/node_modules/form-data/node_modules/mime-types/package.json +0 -44
- package/node_modules/form-data/package.json +0 -82
- package/node_modules/function-bind/.eslintrc +0 -21
- package/node_modules/function-bind/.github/FUNDING.yml +0 -12
- package/node_modules/function-bind/.github/SECURITY.md +0 -3
- package/node_modules/function-bind/.nycrc +0 -13
- package/node_modules/function-bind/CHANGELOG.md +0 -136
- package/node_modules/function-bind/LICENSE +0 -20
- package/node_modules/function-bind/README.md +0 -46
- package/node_modules/function-bind/implementation.js +0 -84
- package/node_modules/function-bind/index.js +0 -5
- package/node_modules/function-bind/package.json +0 -87
- package/node_modules/function-bind/test/.eslintrc +0 -9
- package/node_modules/function-bind/test/index.js +0 -252
- package/node_modules/get-intrinsic/.eslintrc +0 -42
- package/node_modules/get-intrinsic/.github/FUNDING.yml +0 -12
- package/node_modules/get-intrinsic/.nycrc +0 -9
- package/node_modules/get-intrinsic/CHANGELOG.md +0 -186
- package/node_modules/get-intrinsic/LICENSE +0 -21
- package/node_modules/get-intrinsic/README.md +0 -71
- package/node_modules/get-intrinsic/index.js +0 -378
- package/node_modules/get-intrinsic/package.json +0 -97
- package/node_modules/get-intrinsic/test/GetIntrinsic.js +0 -274
- package/node_modules/get-proto/.eslintrc +0 -10
- package/node_modules/get-proto/.github/FUNDING.yml +0 -12
- package/node_modules/get-proto/.nycrc +0 -9
- package/node_modules/get-proto/CHANGELOG.md +0 -21
- package/node_modules/get-proto/LICENSE +0 -21
- package/node_modules/get-proto/Object.getPrototypeOf.d.ts +0 -5
- package/node_modules/get-proto/Object.getPrototypeOf.js +0 -6
- package/node_modules/get-proto/README.md +0 -50
- package/node_modules/get-proto/Reflect.getPrototypeOf.d.ts +0 -3
- package/node_modules/get-proto/Reflect.getPrototypeOf.js +0 -4
- package/node_modules/get-proto/index.d.ts +0 -5
- package/node_modules/get-proto/index.js +0 -27
- package/node_modules/get-proto/package.json +0 -81
- package/node_modules/get-proto/test/index.js +0 -68
- package/node_modules/get-proto/tsconfig.json +0 -9
- package/node_modules/gopd/.eslintrc +0 -16
- package/node_modules/gopd/.github/FUNDING.yml +0 -12
- package/node_modules/gopd/CHANGELOG.md +0 -45
- package/node_modules/gopd/LICENSE +0 -21
- package/node_modules/gopd/README.md +0 -40
- package/node_modules/gopd/gOPD.d.ts +0 -1
- package/node_modules/gopd/gOPD.js +0 -4
- package/node_modules/gopd/index.d.ts +0 -5
- package/node_modules/gopd/index.js +0 -15
- package/node_modules/gopd/package.json +0 -77
- package/node_modules/gopd/test/index.js +0 -36
- package/node_modules/gopd/tsconfig.json +0 -9
- package/node_modules/has-symbols/.eslintrc +0 -11
- package/node_modules/has-symbols/.github/FUNDING.yml +0 -12
- package/node_modules/has-symbols/.nycrc +0 -9
- package/node_modules/has-symbols/CHANGELOG.md +0 -91
- package/node_modules/has-symbols/LICENSE +0 -21
- package/node_modules/has-symbols/README.md +0 -46
- package/node_modules/has-symbols/index.d.ts +0 -3
- package/node_modules/has-symbols/index.js +0 -14
- package/node_modules/has-symbols/package.json +0 -111
- package/node_modules/has-symbols/shams.d.ts +0 -3
- package/node_modules/has-symbols/shams.js +0 -45
- package/node_modules/has-symbols/test/index.js +0 -22
- package/node_modules/has-symbols/test/shams/core-js.js +0 -29
- package/node_modules/has-symbols/test/shams/get-own-property-symbols.js +0 -29
- package/node_modules/has-symbols/test/tests.js +0 -58
- package/node_modules/has-symbols/tsconfig.json +0 -10
- package/node_modules/has-tostringtag/.eslintrc +0 -5
- package/node_modules/has-tostringtag/.github/FUNDING.yml +0 -12
- package/node_modules/has-tostringtag/.nycrc +0 -13
- package/node_modules/has-tostringtag/CHANGELOG.md +0 -42
- package/node_modules/has-tostringtag/LICENSE +0 -21
- package/node_modules/has-tostringtag/README.md +0 -46
- package/node_modules/has-tostringtag/index.d.ts +0 -3
- package/node_modules/has-tostringtag/index.js +0 -8
- package/node_modules/has-tostringtag/package.json +0 -108
- package/node_modules/has-tostringtag/shams.d.ts +0 -3
- package/node_modules/has-tostringtag/shams.js +0 -8
- package/node_modules/has-tostringtag/test/index.js +0 -21
- package/node_modules/has-tostringtag/test/shams/core-js.js +0 -31
- package/node_modules/has-tostringtag/test/shams/get-own-property-symbols.js +0 -30
- package/node_modules/has-tostringtag/test/tests.js +0 -15
- package/node_modules/has-tostringtag/tsconfig.json +0 -49
- package/node_modules/hasown/.github/FUNDING.yml +0 -12
- package/node_modules/hasown/.nycrc +0 -13
- package/node_modules/hasown/CHANGELOG.md +0 -58
- package/node_modules/hasown/LICENSE +0 -21
- package/node_modules/hasown/README.md +0 -40
- package/node_modules/hasown/eslint.config.mjs +0 -6
- package/node_modules/hasown/index.d.ts +0 -3
- package/node_modules/hasown/index.js +0 -8
- package/node_modules/hasown/package.json +0 -91
- package/node_modules/hasown/tsconfig.json +0 -6
- package/node_modules/json-bigint/LICENSE +0 -20
- package/node_modules/json-bigint/README.md +0 -240
- package/node_modules/json-bigint/index.js +0 -12
- package/node_modules/json-bigint/lib/parse.js +0 -443
- package/node_modules/json-bigint/lib/stringify.js +0 -384
- package/node_modules/json-bigint/package.json +0 -34
- package/node_modules/math-intrinsics/.eslintrc +0 -16
- package/node_modules/math-intrinsics/.github/FUNDING.yml +0 -12
- package/node_modules/math-intrinsics/CHANGELOG.md +0 -24
- package/node_modules/math-intrinsics/LICENSE +0 -21
- package/node_modules/math-intrinsics/README.md +0 -50
- package/node_modules/math-intrinsics/abs.d.ts +0 -1
- package/node_modules/math-intrinsics/abs.js +0 -4
- package/node_modules/math-intrinsics/constants/maxArrayLength.d.ts +0 -3
- package/node_modules/math-intrinsics/constants/maxArrayLength.js +0 -4
- package/node_modules/math-intrinsics/constants/maxSafeInteger.d.ts +0 -3
- package/node_modules/math-intrinsics/constants/maxSafeInteger.js +0 -5
- package/node_modules/math-intrinsics/constants/maxValue.d.ts +0 -3
- package/node_modules/math-intrinsics/constants/maxValue.js +0 -5
- package/node_modules/math-intrinsics/floor.d.ts +0 -1
- package/node_modules/math-intrinsics/floor.js +0 -4
- package/node_modules/math-intrinsics/isFinite.d.ts +0 -3
- package/node_modules/math-intrinsics/isFinite.js +0 -12
- package/node_modules/math-intrinsics/isInteger.d.ts +0 -3
- package/node_modules/math-intrinsics/isInteger.js +0 -16
- package/node_modules/math-intrinsics/isNaN.d.ts +0 -1
- package/node_modules/math-intrinsics/isNaN.js +0 -6
- package/node_modules/math-intrinsics/isNegativeZero.d.ts +0 -3
- package/node_modules/math-intrinsics/isNegativeZero.js +0 -6
- package/node_modules/math-intrinsics/max.d.ts +0 -1
- package/node_modules/math-intrinsics/max.js +0 -4
- package/node_modules/math-intrinsics/min.d.ts +0 -1
- package/node_modules/math-intrinsics/min.js +0 -4
- package/node_modules/math-intrinsics/mod.d.ts +0 -3
- package/node_modules/math-intrinsics/mod.js +0 -9
- package/node_modules/math-intrinsics/package.json +0 -86
- package/node_modules/math-intrinsics/pow.d.ts +0 -1
- package/node_modules/math-intrinsics/pow.js +0 -4
- package/node_modules/math-intrinsics/round.d.ts +0 -1
- package/node_modules/math-intrinsics/round.js +0 -4
- package/node_modules/math-intrinsics/sign.d.ts +0 -3
- package/node_modules/math-intrinsics/sign.js +0 -11
- package/node_modules/math-intrinsics/test/index.js +0 -192
- package/node_modules/math-intrinsics/tsconfig.json +0 -3
- package/node_modules/pako/LICENSE +0 -21
- package/node_modules/pako/README.md +0 -155
- package/node_modules/pako/dist/pako.es5.js +0 -6760
- package/node_modules/pako/dist/pako.es5.min.js +0 -2
- package/node_modules/pako/dist/pako.esm.mjs +0 -6945
- package/node_modules/pako/dist/pako.js +0 -6964
- package/node_modules/pako/dist/pako.min.js +0 -2
- package/node_modules/pako/dist/pako_deflate.es5.js +0 -3953
- package/node_modules/pako/dist/pako_deflate.es5.min.js +0 -2
- package/node_modules/pako/dist/pako_deflate.js +0 -4154
- package/node_modules/pako/dist/pako_deflate.min.js +0 -2
- package/node_modules/pako/dist/pako_inflate.es5.js +0 -3272
- package/node_modules/pako/dist/pako_inflate.es5.min.js +0 -2
- package/node_modules/pako/dist/pako_inflate.js +0 -3279
- package/node_modules/pako/dist/pako_inflate.min.js +0 -2
- package/node_modules/pako/index.js +0 -18
- package/node_modules/pako/lib/deflate.js +0 -387
- package/node_modules/pako/lib/inflate.js +0 -456
- package/node_modules/pako/lib/utils/common.js +0 -48
- package/node_modules/pako/lib/utils/strings.js +0 -174
- package/node_modules/pako/lib/zlib/README +0 -59
- package/node_modules/pako/lib/zlib/adler32.js +0 -51
- package/node_modules/pako/lib/zlib/constants.js +0 -68
- package/node_modules/pako/lib/zlib/crc32.js +0 -59
- package/node_modules/pako/lib/zlib/deflate.js +0 -2069
- package/node_modules/pako/lib/zlib/gzheader.js +0 -58
- package/node_modules/pako/lib/zlib/inffast.js +0 -344
- package/node_modules/pako/lib/zlib/inflate.js +0 -1575
- package/node_modules/pako/lib/zlib/inftrees.js +0 -340
- package/node_modules/pako/lib/zlib/messages.js +0 -32
- package/node_modules/pako/lib/zlib/trees.js +0 -1179
- package/node_modules/pako/lib/zlib/zstream.js +0 -47
- package/node_modules/pako/package.json +0 -73
- package/node_modules/semver/LICENSE +0 -15
- package/node_modules/semver/README.md +0 -680
- package/node_modules/semver/bin/semver.js +0 -195
- package/node_modules/semver/classes/comparator.js +0 -143
- package/node_modules/semver/classes/index.js +0 -7
- package/node_modules/semver/classes/range.js +0 -577
- package/node_modules/semver/classes/semver.js +0 -350
- package/node_modules/semver/functions/clean.js +0 -8
- package/node_modules/semver/functions/cmp.js +0 -54
- package/node_modules/semver/functions/coerce.js +0 -62
- package/node_modules/semver/functions/compare-build.js +0 -9
- package/node_modules/semver/functions/compare-loose.js +0 -5
- package/node_modules/semver/functions/compare.js +0 -7
- package/node_modules/semver/functions/diff.js +0 -60
- package/node_modules/semver/functions/eq.js +0 -5
- package/node_modules/semver/functions/gt.js +0 -5
- package/node_modules/semver/functions/gte.js +0 -5
- package/node_modules/semver/functions/inc.js +0 -21
- package/node_modules/semver/functions/lt.js +0 -5
- package/node_modules/semver/functions/lte.js +0 -5
- package/node_modules/semver/functions/major.js +0 -5
- package/node_modules/semver/functions/minor.js +0 -5
- package/node_modules/semver/functions/neq.js +0 -5
- package/node_modules/semver/functions/parse.js +0 -18
- package/node_modules/semver/functions/patch.js +0 -5
- package/node_modules/semver/functions/prerelease.js +0 -8
- package/node_modules/semver/functions/rcompare.js +0 -5
- package/node_modules/semver/functions/rsort.js +0 -5
- package/node_modules/semver/functions/satisfies.js +0 -12
- package/node_modules/semver/functions/sort.js +0 -5
- package/node_modules/semver/functions/truncate.js +0 -48
- package/node_modules/semver/functions/valid.js +0 -8
- package/node_modules/semver/index.js +0 -93
- package/node_modules/semver/internal/constants.js +0 -37
- package/node_modules/semver/internal/debug.js +0 -11
- package/node_modules/semver/internal/identifiers.js +0 -29
- package/node_modules/semver/internal/lrucache.js +0 -42
- package/node_modules/semver/internal/parse-options.js +0 -17
- package/node_modules/semver/internal/re.js +0 -223
- package/node_modules/semver/package.json +0 -78
- package/node_modules/semver/preload.js +0 -4
- package/node_modules/semver/range.bnf +0 -17
- package/node_modules/semver/ranges/gtr.js +0 -6
- package/node_modules/semver/ranges/intersects.js +0 -9
- package/node_modules/semver/ranges/ltr.js +0 -6
- package/node_modules/semver/ranges/max-satisfying.js +0 -27
- package/node_modules/semver/ranges/min-satisfying.js +0 -26
- package/node_modules/semver/ranges/min-version.js +0 -63
- package/node_modules/semver/ranges/outside.js +0 -82
- package/node_modules/semver/ranges/simplify.js +0 -49
- package/node_modules/semver/ranges/subset.js +0 -249
- package/node_modules/semver/ranges/to-comparators.js +0 -10
- package/node_modules/semver/ranges/valid.js +0 -13
- package/node_modules/spark-md5/LICENSE +0 -13
- package/node_modules/spark-md5/README.md +0 -191
- package/node_modules/spark-md5/package.json +0 -35
- package/node_modules/spark-md5/spark-md5.js +0 -751
- package/node_modules/spark-md5/spark-md5.min.js +0 -1
- package/node_modules/tldts/LICENSE +0 -13
- package/node_modules/tldts/README.md +0 -327
- package/node_modules/tldts/bin/cli.js +0 -21
- package/node_modules/tldts/dist/cjs/index.js +0 -666
- package/node_modules/tldts/dist/cjs/index.js.map +0 -1
- package/node_modules/tldts/dist/cjs/src/data/trie.js +0 -14
- package/node_modules/tldts/dist/cjs/src/data/trie.js.map +0 -1
- package/node_modules/tldts/dist/cjs/src/suffix-trie.js +0 -67
- package/node_modules/tldts/dist/cjs/src/suffix-trie.js.map +0 -1
- package/node_modules/tldts/dist/cjs/tsconfig.tsbuildinfo +0 -1
- package/node_modules/tldts/dist/es6/index.js +0 -33
- package/node_modules/tldts/dist/es6/index.js.map +0 -1
- package/node_modules/tldts/dist/es6/src/data/trie.js +0 -11
- package/node_modules/tldts/dist/es6/src/data/trie.js.map +0 -1
- package/node_modules/tldts/dist/es6/src/suffix-trie.js +0 -64
- package/node_modules/tldts/dist/es6/src/suffix-trie.js.map +0 -1
- package/node_modules/tldts/dist/es6/tsconfig.bundle.tsbuildinfo +0 -1
- package/node_modules/tldts/dist/index.cjs.min.js +0 -2
- package/node_modules/tldts/dist/index.cjs.min.js.map +0 -1
- package/node_modules/tldts/dist/index.esm.min.js +0 -2
- package/node_modules/tldts/dist/index.esm.min.js.map +0 -1
- package/node_modules/tldts/dist/index.umd.min.js +0 -2
- package/node_modules/tldts/dist/index.umd.min.js.map +0 -1
- package/node_modules/tldts/dist/types/index.d.ts +0 -7
- package/node_modules/tldts/dist/types/src/data/trie.d.ts +0 -5
- package/node_modules/tldts/dist/types/src/suffix-trie.d.ts +0 -5
- package/node_modules/tldts/index.ts +0 -62
- package/node_modules/tldts/package.json +0 -91
- package/node_modules/tldts/src/data/trie.ts +0 -14
- package/node_modules/tldts/src/suffix-trie.ts +0 -110
- package/node_modules/tldts-core/LICENSE +0 -13
- package/node_modules/tldts-core/README.md +0 -3
- package/node_modules/tldts-core/dist/cjs/index.js +0 -561
- package/node_modules/tldts-core/dist/cjs/index.js.map +0 -1
- package/node_modules/tldts-core/dist/cjs/src/domain-without-suffix.js +0 -15
- package/node_modules/tldts-core/dist/cjs/src/domain-without-suffix.js.map +0 -1
- package/node_modules/tldts-core/dist/cjs/src/domain.js +0 -83
- package/node_modules/tldts-core/dist/cjs/src/domain.js.map +0 -1
- package/node_modules/tldts-core/dist/cjs/src/extract-hostname.js +0 -149
- package/node_modules/tldts-core/dist/cjs/src/extract-hostname.js.map +0 -1
- package/node_modules/tldts-core/dist/cjs/src/factory.js +0 -104
- package/node_modules/tldts-core/dist/cjs/src/factory.js.map +0 -1
- package/node_modules/tldts-core/dist/cjs/src/is-ip.js +0 -72
- package/node_modules/tldts-core/dist/cjs/src/is-ip.js.map +0 -1
- package/node_modules/tldts-core/dist/cjs/src/is-valid.js +0 -69
- package/node_modules/tldts-core/dist/cjs/src/is-valid.js.map +0 -1
- package/node_modules/tldts-core/dist/cjs/src/lookup/fast-path.js +0 -69
- package/node_modules/tldts-core/dist/cjs/src/lookup/fast-path.js.map +0 -1
- package/node_modules/tldts-core/dist/cjs/src/lookup/interface.js +0 -3
- package/node_modules/tldts-core/dist/cjs/src/lookup/interface.js.map +0 -1
- package/node_modules/tldts-core/dist/cjs/src/options.js +0 -22
- package/node_modules/tldts-core/dist/cjs/src/options.js.map +0 -1
- package/node_modules/tldts-core/dist/cjs/src/subdomain.js +0 -14
- package/node_modules/tldts-core/dist/cjs/src/subdomain.js.map +0 -1
- package/node_modules/tldts-core/dist/cjs/tsconfig.tsbuildinfo +0 -1
- package/node_modules/tldts-core/dist/es6/index.js +0 -4
- package/node_modules/tldts-core/dist/es6/index.js.map +0 -1
- package/node_modules/tldts-core/dist/es6/src/domain-without-suffix.js +0 -12
- package/node_modules/tldts-core/dist/es6/src/domain-without-suffix.js.map +0 -1
- package/node_modules/tldts-core/dist/es6/src/domain.js +0 -80
- package/node_modules/tldts-core/dist/es6/src/domain.js.map +0 -1
- package/node_modules/tldts-core/dist/es6/src/extract-hostname.js +0 -146
- package/node_modules/tldts-core/dist/es6/src/extract-hostname.js.map +0 -1
- package/node_modules/tldts-core/dist/es6/src/factory.js +0 -99
- package/node_modules/tldts-core/dist/es6/src/factory.js.map +0 -1
- package/node_modules/tldts-core/dist/es6/src/is-ip.js +0 -69
- package/node_modules/tldts-core/dist/es6/src/is-ip.js.map +0 -1
- package/node_modules/tldts-core/dist/es6/src/is-valid.js +0 -66
- package/node_modules/tldts-core/dist/es6/src/is-valid.js.map +0 -1
- package/node_modules/tldts-core/dist/es6/src/lookup/fast-path.js +0 -66
- package/node_modules/tldts-core/dist/es6/src/lookup/fast-path.js.map +0 -1
- package/node_modules/tldts-core/dist/es6/src/lookup/interface.js +0 -2
- package/node_modules/tldts-core/dist/es6/src/lookup/interface.js.map +0 -1
- package/node_modules/tldts-core/dist/es6/src/options.js +0 -19
- package/node_modules/tldts-core/dist/es6/src/options.js.map +0 -1
- package/node_modules/tldts-core/dist/es6/src/subdomain.js +0 -11
- package/node_modules/tldts-core/dist/es6/src/subdomain.js.map +0 -1
- package/node_modules/tldts-core/dist/es6/tsconfig.bundle.tsbuildinfo +0 -1
- package/node_modules/tldts-core/dist/types/index.d.ts +0 -4
- package/node_modules/tldts-core/dist/types/src/domain-without-suffix.d.ts +0 -6
- package/node_modules/tldts-core/dist/types/src/domain.d.ts +0 -5
- package/node_modules/tldts-core/dist/types/src/extract-hostname.d.ts +0 -5
- package/node_modules/tldts-core/dist/types/src/factory.d.ts +0 -28
- package/node_modules/tldts-core/dist/types/src/is-ip.d.ts +0 -6
- package/node_modules/tldts-core/dist/types/src/is-valid.d.ts +0 -15
- package/node_modules/tldts-core/dist/types/src/lookup/fast-path.d.ts +0 -2
- package/node_modules/tldts-core/dist/types/src/lookup/interface.d.ts +0 -9
- package/node_modules/tldts-core/dist/types/src/options.d.ts +0 -10
- package/node_modules/tldts-core/dist/types/src/subdomain.d.ts +0 -4
- package/node_modules/tldts-core/index.ts +0 -10
- package/node_modules/tldts-core/package.json +0 -68
- package/node_modules/tldts-core/src/domain-without-suffix.ts +0 -14
- package/node_modules/tldts-core/src/domain.ts +0 -100
- package/node_modules/tldts-core/src/extract-hostname.ts +0 -170
- package/node_modules/tldts-core/src/factory.ts +0 -160
- package/node_modules/tldts-core/src/is-ip.ts +0 -87
- package/node_modules/tldts-core/src/is-valid.ts +0 -79
- package/node_modules/tldts-core/src/lookup/fast-path.ts +0 -80
- package/node_modules/tldts-core/src/lookup/interface.ts +0 -10
- package/node_modules/tldts-core/src/options.ts +0 -39
- package/node_modules/tldts-core/src/subdomain.ts +0 -11
- package/node_modules/tough-cookie/LICENSE +0 -12
- package/node_modules/tough-cookie/README.md +0 -154
- package/node_modules/tough-cookie/dist/cookie/canonicalDomain.d.ts +0 -33
- package/node_modules/tough-cookie/dist/cookie/canonicalDomain.js +0 -65
- package/node_modules/tough-cookie/dist/cookie/constants.d.ts +0 -54
- package/node_modules/tough-cookie/dist/cookie/constants.js +0 -38
- package/node_modules/tough-cookie/dist/cookie/cookie.d.ts +0 -326
- package/node_modules/tough-cookie/dist/cookie/cookie.js +0 -831
- package/node_modules/tough-cookie/dist/cookie/cookieCompare.d.ts +0 -58
- package/node_modules/tough-cookie/dist/cookie/cookieCompare.js +0 -84
- package/node_modules/tough-cookie/dist/cookie/cookieJar.d.ts +0 -621
- package/node_modules/tough-cookie/dist/cookie/cookieJar.js +0 -1000
- package/node_modules/tough-cookie/dist/cookie/defaultPath.d.ts +0 -40
- package/node_modules/tough-cookie/dist/cookie/defaultPath.js +0 -60
- package/node_modules/tough-cookie/dist/cookie/domainMatch.d.ts +0 -38
- package/node_modules/tough-cookie/dist/cookie/domainMatch.js +0 -94
- package/node_modules/tough-cookie/dist/cookie/formatDate.d.ts +0 -15
- package/node_modules/tough-cookie/dist/cookie/formatDate.js +0 -20
- package/node_modules/tough-cookie/dist/cookie/index.d.ts +0 -29
- package/node_modules/tough-cookie/dist/cookie/index.js +0 -54
- package/node_modules/tough-cookie/dist/cookie/parseDate.d.ts +0 -103
- package/node_modules/tough-cookie/dist/cookie/parseDate.js +0 -323
- package/node_modules/tough-cookie/dist/cookie/permutePath.d.ts +0 -14
- package/node_modules/tough-cookie/dist/cookie/permutePath.js +0 -32
- package/node_modules/tough-cookie/dist/getPublicSuffix.d.ts +0 -55
- package/node_modules/tough-cookie/dist/getPublicSuffix.js +0 -71
- package/node_modules/tough-cookie/dist/memstore.d.ts +0 -220
- package/node_modules/tough-cookie/dist/memstore.js +0 -187
- package/node_modules/tough-cookie/dist/pathMatch.d.ts +0 -17
- package/node_modules/tough-cookie/dist/pathMatch.js +0 -40
- package/node_modules/tough-cookie/dist/permuteDomain.d.ts +0 -15
- package/node_modules/tough-cookie/dist/permuteDomain.js +0 -44
- package/node_modules/tough-cookie/dist/store.d.ts +0 -211
- package/node_modules/tough-cookie/dist/store.js +0 -76
- package/node_modules/tough-cookie/dist/utils.d.ts +0 -34
- package/node_modules/tough-cookie/dist/utils.js +0 -99
- package/node_modules/tough-cookie/dist/validators.d.ts +0 -24
- package/node_modules/tough-cookie/dist/validators.js +0 -90
- package/node_modules/tough-cookie/dist/version.d.ts +0 -5
- package/node_modules/tough-cookie/dist/version.js +0 -8
- package/node_modules/tough-cookie/package.json +0 -144
- package/node_modules/ws/LICENSE +0 -20
- package/node_modules/ws/README.md +0 -548
- package/node_modules/ws/browser.js +0 -8
- package/node_modules/ws/index.js +0 -22
- package/node_modules/ws/lib/buffer-util.js +0 -131
- package/node_modules/ws/lib/constants.js +0 -19
- package/node_modules/ws/lib/event-target.js +0 -292
- package/node_modules/ws/lib/extension.js +0 -203
- package/node_modules/ws/lib/limiter.js +0 -55
- package/node_modules/ws/lib/permessage-deflate.js +0 -530
- package/node_modules/ws/lib/receiver.js +0 -743
- package/node_modules/ws/lib/sender.js +0 -607
- package/node_modules/ws/lib/stream.js +0 -161
- package/node_modules/ws/lib/subprotocol.js +0 -62
- package/node_modules/ws/lib/validation.js +0 -152
- package/node_modules/ws/lib/websocket-server.js +0 -562
- package/node_modules/ws/lib/websocket.js +0 -1407
- package/node_modules/ws/package.json +0 -74
- package/node_modules/ws/wrapper.mjs +0 -21
- package/node_modules/zca-js/.prettierrc +0 -5
- package/node_modules/zca-js/CODE_OF_CONDUCT.md +0 -163
- package/node_modules/zca-js/CONTRIBUTING.md +0 -470
- package/node_modules/zca-js/LICENSE +0 -21
- package/node_modules/zca-js/README.md +0 -225
- package/node_modules/zca-js/SECURITY.md +0 -83
- package/node_modules/zca-js/dist/Errors/ZaloApiError.d.ts +0 -4
- package/node_modules/zca-js/dist/Errors/ZaloApiError.js +0 -7
- package/node_modules/zca-js/dist/Errors/ZaloApiLoginQRAborted.d.ts +0 -4
- package/node_modules/zca-js/dist/Errors/ZaloApiLoginQRAborted.js +0 -7
- package/node_modules/zca-js/dist/Errors/ZaloApiLoginQRDeclined.d.ts +0 -4
- package/node_modules/zca-js/dist/Errors/ZaloApiLoginQRDeclined.js +0 -7
- package/node_modules/zca-js/dist/Errors/ZaloApiMissingImageMetadataGetter.d.ts +0 -4
- package/node_modules/zca-js/dist/Errors/ZaloApiMissingImageMetadataGetter.js +0 -7
- package/node_modules/zca-js/dist/Errors/index.d.ts +0 -4
- package/node_modules/zca-js/dist/Errors/index.js +0 -4
- package/node_modules/zca-js/dist/apis/acceptFriendRequest.d.ts +0 -2
- package/node_modules/zca-js/dist/apis/acceptFriendRequest.js +0 -28
- package/node_modules/zca-js/dist/apis/addGroupBlockedMember.d.ts +0 -2
- package/node_modules/zca-js/dist/apis/addGroupBlockedMember.js +0 -28
- package/node_modules/zca-js/dist/apis/addGroupDeputy.d.ts +0 -2
- package/node_modules/zca-js/dist/apis/addGroupDeputy.js +0 -30
- package/node_modules/zca-js/dist/apis/addPollOptions.d.ts +0 -14
- package/node_modules/zca-js/dist/apis/addPollOptions.js +0 -26
- package/node_modules/zca-js/dist/apis/addQuickMessage.d.ts +0 -11
- package/node_modules/zca-js/dist/apis/addQuickMessage.js +0 -60
- package/node_modules/zca-js/dist/apis/addReaction.d.ts +0 -18
- package/node_modules/zca-js/dist/apis/addReaction.js +0 -294
- package/node_modules/zca-js/dist/apis/addUnreadMark.d.ts +0 -8
- package/node_modules/zca-js/dist/apis/addUnreadMark.js +0 -52
- package/node_modules/zca-js/dist/apis/addUserToGroup.d.ts +0 -5
- package/node_modules/zca-js/dist/apis/addUserToGroup.js +0 -34
- package/node_modules/zca-js/dist/apis/blockUser.d.ts +0 -2
- package/node_modules/zca-js/dist/apis/blockUser.js +0 -28
- package/node_modules/zca-js/dist/apis/blockViewFeed.d.ts +0 -2
- package/node_modules/zca-js/dist/apis/blockViewFeed.js +0 -30
- package/node_modules/zca-js/dist/apis/changeAccountAvatar.d.ts +0 -3
- package/node_modules/zca-js/dist/apis/changeAccountAvatar.js +0 -52
- package/node_modules/zca-js/dist/apis/changeFriendAlias.d.ts +0 -2
- package/node_modules/zca-js/dist/apis/changeFriendAlias.js +0 -27
- package/node_modules/zca-js/dist/apis/changeGroupAvatar.d.ts +0 -3
- package/node_modules/zca-js/dist/apis/changeGroupAvatar.js +0 -44
- package/node_modules/zca-js/dist/apis/changeGroupName.d.ts +0 -4
- package/node_modules/zca-js/dist/apis/changeGroupName.js +0 -32
- package/node_modules/zca-js/dist/apis/changeGroupOwner.d.ts +0 -4
- package/node_modules/zca-js/dist/apis/changeGroupOwner.js +0 -30
- package/node_modules/zca-js/dist/apis/createAutoReply.d.ts +0 -14
- package/node_modules/zca-js/dist/apis/createAutoReply.js +0 -37
- package/node_modules/zca-js/dist/apis/createBankAccount.d.ts +0 -8
- package/node_modules/zca-js/dist/apis/createBankAccount.js +0 -32
- package/node_modules/zca-js/dist/apis/createCatalog.d.ts +0 -7
- package/node_modules/zca-js/dist/apis/createCatalog.js +0 -29
- package/node_modules/zca-js/dist/apis/createGroup.d.ts +0 -28
- package/node_modules/zca-js/dist/apis/createGroup.js +0 -43
- package/node_modules/zca-js/dist/apis/createNote.d.ts +0 -7
- package/node_modules/zca-js/dist/apis/createNote.js +0 -47
- package/node_modules/zca-js/dist/apis/createPoll.d.ts +0 -36
- package/node_modules/zca-js/dist/apis/createPoll.js +0 -40
- package/node_modules/zca-js/dist/apis/createProductCatalog.d.ts +0 -23
- package/node_modules/zca-js/dist/apis/createProductCatalog.js +0 -50
- package/node_modules/zca-js/dist/apis/createReminder.d.ts +0 -12
- package/node_modules/zca-js/dist/apis/createReminder.js +0 -63
- package/node_modules/zca-js/dist/apis/custom.d.ts +0 -9
- package/node_modules/zca-js/dist/apis/custom.js +0 -15
- package/node_modules/zca-js/dist/apis/deleteAutoReply.d.ts +0 -5
- package/node_modules/zca-js/dist/apis/deleteAutoReply.js +0 -29
- package/node_modules/zca-js/dist/apis/deleteAvatar.d.ts +0 -9
- package/node_modules/zca-js/dist/apis/deleteAvatar.js +0 -27
- package/node_modules/zca-js/dist/apis/deleteBankAccount.d.ts +0 -11
- package/node_modules/zca-js/dist/apis/deleteBankAccount.js +0 -32
- package/node_modules/zca-js/dist/apis/deleteCatalog.d.ts +0 -2
- package/node_modules/zca-js/dist/apis/deleteCatalog.js +0 -28
- package/node_modules/zca-js/dist/apis/deleteChat.d.ts +0 -19
- package/node_modules/zca-js/dist/apis/deleteChat.js +0 -50
- package/node_modules/zca-js/dist/apis/deleteGroupInviteBox.d.ts +0 -9
- package/node_modules/zca-js/dist/apis/deleteGroupInviteBox.js +0 -27
- package/node_modules/zca-js/dist/apis/deleteMessage.d.ts +0 -14
- package/node_modules/zca-js/dist/apis/deleteMessage.js +0 -52
- package/node_modules/zca-js/dist/apis/deleteProductCatalog.d.ts +0 -10
- package/node_modules/zca-js/dist/apis/deleteProductCatalog.js +0 -31
- package/node_modules/zca-js/dist/apis/disableGroupLink.d.ts +0 -2
- package/node_modules/zca-js/dist/apis/disableGroupLink.js +0 -24
- package/node_modules/zca-js/dist/apis/disperseGroup.d.ts +0 -2
- package/node_modules/zca-js/dist/apis/disperseGroup.js +0 -28
- package/node_modules/zca-js/dist/apis/editNote.d.ts +0 -17
- package/node_modules/zca-js/dist/apis/editNote.js +0 -46
- package/node_modules/zca-js/dist/apis/editReminder.d.ts +0 -13
- package/node_modules/zca-js/dist/apis/editReminder.js +0 -61
- package/node_modules/zca-js/dist/apis/enableGroupLink.d.ts +0 -6
- package/node_modules/zca-js/dist/apis/enableGroupLink.js +0 -25
- package/node_modules/zca-js/dist/apis/fetchAccountInfo.d.ts +0 -5
- package/node_modules/zca-js/dist/apis/fetchAccountInfo.js +0 -10
- package/node_modules/zca-js/dist/apis/findUser.d.ts +0 -3
- package/node_modules/zca-js/dist/apis/findUser.js +0 -42
- package/node_modules/zca-js/dist/apis/findUserByUsername.d.ts +0 -3
- package/node_modules/zca-js/dist/apis/findUserByUsername.js +0 -27
- package/node_modules/zca-js/dist/apis/forwardMessage.d.ts +0 -24
- package/node_modules/zca-js/dist/apis/forwardMessage.js +0 -114
- package/node_modules/zca-js/dist/apis/getAliasList.d.ts +0 -8
- package/node_modules/zca-js/dist/apis/getAliasList.js +0 -27
- package/node_modules/zca-js/dist/apis/getAllFriends.d.ts +0 -3
- package/node_modules/zca-js/dist/apis/getAllFriends.js +0 -34
- package/node_modules/zca-js/dist/apis/getAllGroups.d.ts +0 -7
- package/node_modules/zca-js/dist/apis/getAllGroups.js +0 -10
- package/node_modules/zca-js/dist/apis/getArchivedChatList.d.ts +0 -5
- package/node_modules/zca-js/dist/apis/getArchivedChatList.js +0 -23
- package/node_modules/zca-js/dist/apis/getAutoDeleteChat.d.ts +0 -9
- package/node_modules/zca-js/dist/apis/getAutoDeleteChat.js +0 -21
- package/node_modules/zca-js/dist/apis/getAutoReplyList.d.ts +0 -6
- package/node_modules/zca-js/dist/apis/getAutoReplyList.js +0 -24
- package/node_modules/zca-js/dist/apis/getAvatarList.d.ts +0 -12
- package/node_modules/zca-js/dist/apis/getAvatarList.js +0 -28
- package/node_modules/zca-js/dist/apis/getAvatarUrlProfile.d.ts +0 -7
- package/node_modules/zca-js/dist/apis/getAvatarUrlProfile.js +0 -30
- package/node_modules/zca-js/dist/apis/getBizAccount.d.ts +0 -24
- package/node_modules/zca-js/dist/apis/getBizAccount.js +0 -27
- package/node_modules/zca-js/dist/apis/getCatalogList.d.ts +0 -18
- package/node_modules/zca-js/dist/apis/getCatalogList.js +0 -32
- package/node_modules/zca-js/dist/apis/getCloseFriends.d.ts +0 -3
- package/node_modules/zca-js/dist/apis/getCloseFriends.js +0 -20
- package/node_modules/zca-js/dist/apis/getContext.d.ts +0 -1
- package/node_modules/zca-js/dist/apis/getContext.js +0 -4
- package/node_modules/zca-js/dist/apis/getCookie.d.ts +0 -1
- package/node_modules/zca-js/dist/apis/getCookie.js +0 -9
- package/node_modules/zca-js/dist/apis/getFriendBoardList.d.ts +0 -5
- package/node_modules/zca-js/dist/apis/getFriendBoardList.js +0 -26
- package/node_modules/zca-js/dist/apis/getFriendOnlines.d.ts +0 -10
- package/node_modules/zca-js/dist/apis/getFriendOnlines.js +0 -35
- package/node_modules/zca-js/dist/apis/getFriendRecommendations.d.ts +0 -42
- package/node_modules/zca-js/dist/apis/getFriendRecommendations.js +0 -27
- package/node_modules/zca-js/dist/apis/getFriendRequestStatus.d.ts +0 -8
- package/node_modules/zca-js/dist/apis/getFriendRequestStatus.js +0 -25
- package/node_modules/zca-js/dist/apis/getFullAvatar.d.ts +0 -5
- package/node_modules/zca-js/dist/apis/getFullAvatar.js +0 -25
- package/node_modules/zca-js/dist/apis/getGroupBlockedMember.d.ts +0 -23
- package/node_modules/zca-js/dist/apis/getGroupBlockedMember.js +0 -29
- package/node_modules/zca-js/dist/apis/getGroupChatHistory.d.ts +0 -8
- package/node_modules/zca-js/dist/apis/getGroupChatHistory.js +0 -36
- package/node_modules/zca-js/dist/apis/getGroupInfo.d.ts +0 -16
- package/node_modules/zca-js/dist/apis/getGroupInfo.js +0 -32
- package/node_modules/zca-js/dist/apis/getGroupInviteBoxInfo.d.ts +0 -32
- package/node_modules/zca-js/dist/apis/getGroupInviteBoxInfo.js +0 -38
- package/node_modules/zca-js/dist/apis/getGroupInviteBoxList.d.ts +0 -38
- package/node_modules/zca-js/dist/apis/getGroupInviteBoxList.js +0 -31
- package/node_modules/zca-js/dist/apis/getGroupLinkDetail.d.ts +0 -9
- package/node_modules/zca-js/dist/apis/getGroupLinkDetail.js +0 -25
- package/node_modules/zca-js/dist/apis/getGroupLinkInfo.d.ts +0 -34
- package/node_modules/zca-js/dist/apis/getGroupLinkInfo.js +0 -28
- package/node_modules/zca-js/dist/apis/getGroupMembersInfo.d.ts +0 -17
- package/node_modules/zca-js/dist/apis/getGroupMembersInfo.js +0 -24
- package/node_modules/zca-js/dist/apis/getHiddenConversations.d.ts +0 -11
- package/node_modules/zca-js/dist/apis/getHiddenConversations.js +0 -23
- package/node_modules/zca-js/dist/apis/getLabels.d.ts +0 -7
- package/node_modules/zca-js/dist/apis/getLabels.js +0 -28
- package/node_modules/zca-js/dist/apis/getListBank.d.ts +0 -5
- package/node_modules/zca-js/dist/apis/getListBank.js +0 -20
- package/node_modules/zca-js/dist/apis/getListBankAccount.d.ts +0 -7
- package/node_modules/zca-js/dist/apis/getListBankAccount.js +0 -27
- package/node_modules/zca-js/dist/apis/getListBoard.d.ts +0 -21
- package/node_modules/zca-js/dist/apis/getListBoard.js +0 -45
- package/node_modules/zca-js/dist/apis/getListDevice.d.ts +0 -10
- package/node_modules/zca-js/dist/apis/getListDevice.js +0 -22
- package/node_modules/zca-js/dist/apis/getListReminder.d.ts +0 -28
- package/node_modules/zca-js/dist/apis/getListReminder.js +0 -47
- package/node_modules/zca-js/dist/apis/getMultiUsersByPhones.d.ts +0 -5
- package/node_modules/zca-js/dist/apis/getMultiUsersByPhones.js +0 -39
- package/node_modules/zca-js/dist/apis/getMute.d.ts +0 -13
- package/node_modules/zca-js/dist/apis/getMute.js +0 -22
- package/node_modules/zca-js/dist/apis/getOwnId.d.ts +0 -1
- package/node_modules/zca-js/dist/apis/getOwnId.js +0 -4
- package/node_modules/zca-js/dist/apis/getPendingGroupMembers.d.ts +0 -11
- package/node_modules/zca-js/dist/apis/getPendingGroupMembers.js +0 -27
- package/node_modules/zca-js/dist/apis/getPinConversations.d.ts +0 -5
- package/node_modules/zca-js/dist/apis/getPinConversations.js +0 -22
- package/node_modules/zca-js/dist/apis/getPollDetail.d.ts +0 -3
- package/node_modules/zca-js/dist/apis/getPollDetail.js +0 -30
- package/node_modules/zca-js/dist/apis/getProductCatalogList.d.ts +0 -20
- package/node_modules/zca-js/dist/apis/getProductCatalogList.js +0 -33
- package/node_modules/zca-js/dist/apis/getQR.d.ts +0 -4
- package/node_modules/zca-js/dist/apis/getQR.js +0 -29
- package/node_modules/zca-js/dist/apis/getQuickMessageList.d.ts +0 -7
- package/node_modules/zca-js/dist/apis/getQuickMessageList.js +0 -24
- package/node_modules/zca-js/dist/apis/getRelatedFriendGroup.d.ts +0 -6
- package/node_modules/zca-js/dist/apis/getRelatedFriendGroup.js +0 -30
- package/node_modules/zca-js/dist/apis/getReminder.d.ts +0 -3
- package/node_modules/zca-js/dist/apis/getReminder.js +0 -25
- package/node_modules/zca-js/dist/apis/getReminderResponses.d.ts +0 -5
- package/node_modules/zca-js/dist/apis/getReminderResponses.js +0 -24
- package/node_modules/zca-js/dist/apis/getSentFriendRequest.d.ts +0 -18
- package/node_modules/zca-js/dist/apis/getSentFriendRequest.js +0 -24
- package/node_modules/zca-js/dist/apis/getSettings.d.ts +0 -3
- package/node_modules/zca-js/dist/apis/getSettings.js +0 -20
- package/node_modules/zca-js/dist/apis/getStickerCategoryDetail.d.ts +0 -3
- package/node_modules/zca-js/dist/apis/getStickerCategoryDetail.js +0 -24
- package/node_modules/zca-js/dist/apis/getStickers.d.ts +0 -1
- package/node_modules/zca-js/dist/apis/getStickers.js +0 -40
- package/node_modules/zca-js/dist/apis/getStickersDetail.d.ts +0 -3
- package/node_modules/zca-js/dist/apis/getStickersDetail.js +0 -40
- package/node_modules/zca-js/dist/apis/getUnreadMark.d.ts +0 -14
- package/node_modules/zca-js/dist/apis/getUnreadMark.js +0 -30
- package/node_modules/zca-js/dist/apis/getUserInfo.d.ts +0 -8
- package/node_modules/zca-js/dist/apis/getUserInfo.js +0 -44
- package/node_modules/zca-js/dist/apis/inviteUserToGroups.d.ts +0 -10
- package/node_modules/zca-js/dist/apis/inviteUserToGroups.js +0 -30
- package/node_modules/zca-js/dist/apis/joinGroupInviteBox.d.ts +0 -2
- package/node_modules/zca-js/dist/apis/joinGroupInviteBox.js +0 -25
- package/node_modules/zca-js/dist/apis/joinGroupLink.d.ts +0 -2
- package/node_modules/zca-js/dist/apis/joinGroupLink.js +0 -27
- package/node_modules/zca-js/dist/apis/keepAlive.d.ts +0 -4
- package/node_modules/zca-js/dist/apis/keepAlive.js +0 -22
- package/node_modules/zca-js/dist/apis/lastOnline.d.ts +0 -7
- package/node_modules/zca-js/dist/apis/lastOnline.js +0 -26
- package/node_modules/zca-js/dist/apis/leaveGroup.d.ts +0 -4
- package/node_modules/zca-js/dist/apis/leaveGroup.js +0 -33
- package/node_modules/zca-js/dist/apis/listen.d.ts +0 -102
- package/node_modules/zca-js/dist/apis/listen.js +0 -425
- package/node_modules/zca-js/dist/apis/lockPoll.d.ts +0 -2
- package/node_modules/zca-js/dist/apis/lockPoll.js +0 -28
- package/node_modules/zca-js/dist/apis/login.d.ts +0 -3
- package/node_modules/zca-js/dist/apis/login.js +0 -96
- package/node_modules/zca-js/dist/apis/loginQR.d.ts +0 -71
- package/node_modules/zca-js/dist/apis/loginQR.js +0 -376
- package/node_modules/zca-js/dist/apis/logoutV2.js +0 -79
- package/node_modules/zca-js/dist/apis/lostFocus.d.ts +0 -4
- package/node_modules/zca-js/dist/apis/lostFocus.js +0 -23
- package/node_modules/zca-js/dist/apis/parseLink.d.ts +0 -21
- package/node_modules/zca-js/dist/apis/parseLink.js +0 -27
- package/node_modules/zca-js/dist/apis/registerCatalog.d.ts +0 -2
- package/node_modules/zca-js/dist/apis/registerCatalog.js +0 -27
- package/node_modules/zca-js/dist/apis/rejectFriendRequest.d.ts +0 -2
- package/node_modules/zca-js/dist/apis/rejectFriendRequest.js +0 -27
- package/node_modules/zca-js/dist/apis/removeFriend.d.ts +0 -2
- package/node_modules/zca-js/dist/apis/removeFriend.js +0 -28
- package/node_modules/zca-js/dist/apis/removeFriendAlias.d.ts +0 -2
- package/node_modules/zca-js/dist/apis/removeFriendAlias.js +0 -24
- package/node_modules/zca-js/dist/apis/removeGroupBlockedMember.d.ts +0 -2
- package/node_modules/zca-js/dist/apis/removeGroupBlockedMember.js +0 -28
- package/node_modules/zca-js/dist/apis/removeGroupDeputy.d.ts +0 -2
- package/node_modules/zca-js/dist/apis/removeGroupDeputy.js +0 -30
- package/node_modules/zca-js/dist/apis/removeQuickMessage.d.ts +0 -5
- package/node_modules/zca-js/dist/apis/removeQuickMessage.js +0 -27
- package/node_modules/zca-js/dist/apis/removeReminder.d.ts +0 -3
- package/node_modules/zca-js/dist/apis/removeReminder.js +0 -40
- package/node_modules/zca-js/dist/apis/removeUnreadMark.d.ts +0 -8
- package/node_modules/zca-js/dist/apis/removeUnreadMark.js +0 -50
- package/node_modules/zca-js/dist/apis/removeUserFromGroup.d.ts +0 -4
- package/node_modules/zca-js/dist/apis/removeUserFromGroup.js +0 -34
- package/node_modules/zca-js/dist/apis/resetHiddenConversPin.d.ts +0 -2
- package/node_modules/zca-js/dist/apis/resetHiddenConversPin.js +0 -20
- package/node_modules/zca-js/dist/apis/reuseAvatar.d.ts +0 -2
- package/node_modules/zca-js/dist/apis/reuseAvatar.js +0 -26
- package/node_modules/zca-js/dist/apis/reviewPendingMemberRequest.d.ts +0 -14
- package/node_modules/zca-js/dist/apis/reviewPendingMemberRequest.js +0 -38
- package/node_modules/zca-js/dist/apis/scanURL.d.ts +0 -4
- package/node_modules/zca-js/dist/apis/scanURL.js +0 -28
- package/node_modules/zca-js/dist/apis/searchSticker.d.ts +0 -3
- package/node_modules/zca-js/dist/apis/searchSticker.js +0 -28
- package/node_modules/zca-js/dist/apis/sendBankCard.d.ts +0 -9
- package/node_modules/zca-js/dist/apis/sendBankCard.js +0 -53
- package/node_modules/zca-js/dist/apis/sendCard.d.ts +0 -10
- package/node_modules/zca-js/dist/apis/sendCard.js +0 -75
- package/node_modules/zca-js/dist/apis/sendDeliveredEvent.d.ts +0 -16
- package/node_modules/zca-js/dist/apis/sendDeliveredEvent.js +0 -55
- package/node_modules/zca-js/dist/apis/sendFriendRequest.d.ts +0 -2
- package/node_modules/zca-js/dist/apis/sendFriendRequest.js +0 -39
- package/node_modules/zca-js/dist/apis/sendLink.d.ts +0 -10
- package/node_modules/zca-js/dist/apis/sendLink.js +0 -78
- package/node_modules/zca-js/dist/apis/sendMessage.d.ts +0 -105
- package/node_modules/zca-js/dist/apis/sendMessage.js +0 -486
- package/node_modules/zca-js/dist/apis/sendReport.d.ts +0 -17
- package/node_modules/zca-js/dist/apis/sendReport.js +0 -53
- package/node_modules/zca-js/dist/apis/sendSeenEvent.d.ts +0 -16
- package/node_modules/zca-js/dist/apis/sendSeenEvent.js +0 -63
- package/node_modules/zca-js/dist/apis/sendSticker.d.ts +0 -10
- package/node_modules/zca-js/dist/apis/sendSticker.js +0 -74
- package/node_modules/zca-js/dist/apis/sendTypingEvent.d.ts +0 -5
- package/node_modules/zca-js/dist/apis/sendTypingEvent.js +0 -33
- package/node_modules/zca-js/dist/apis/sendVideo.d.ts +0 -35
- package/node_modules/zca-js/dist/apis/sendVideo.js +0 -134
- package/node_modules/zca-js/dist/apis/sendVoice.d.ts +0 -12
- package/node_modules/zca-js/dist/apis/sendVoice.js +0 -89
- package/node_modules/zca-js/dist/apis/setHiddenConversations.d.ts +0 -3
- package/node_modules/zca-js/dist/apis/setHiddenConversations.js +0 -39
- package/node_modules/zca-js/dist/apis/setMute.d.ts +0 -20
- package/node_modules/zca-js/dist/apis/setMute.js +0 -67
- package/node_modules/zca-js/dist/apis/setPinnedConversations.d.ts +0 -3
- package/node_modules/zca-js/dist/apis/setPinnedConversations.js +0 -34
- package/node_modules/zca-js/dist/apis/sharePoll.d.ts +0 -2
- package/node_modules/zca-js/dist/apis/sharePoll.js +0 -28
- package/node_modules/zca-js/dist/apis/unblockUser.d.ts +0 -2
- package/node_modules/zca-js/dist/apis/unblockUser.js +0 -28
- package/node_modules/zca-js/dist/apis/undo.d.ts +0 -9
- package/node_modules/zca-js/dist/apis/undo.js +0 -42
- package/node_modules/zca-js/dist/apis/undoFriendRequest.d.ts +0 -2
- package/node_modules/zca-js/dist/apis/undoFriendRequest.js +0 -27
- package/node_modules/zca-js/dist/apis/updateActiveStatus.d.ts +0 -4
- package/node_modules/zca-js/dist/apis/updateActiveStatus.js +0 -27
- package/node_modules/zca-js/dist/apis/updateArchivedChatList.d.ts +0 -10
- package/node_modules/zca-js/dist/apis/updateArchivedChatList.js +0 -34
- package/node_modules/zca-js/dist/apis/updateAutoDeleteChat.d.ts +0 -9
- package/node_modules/zca-js/dist/apis/updateAutoDeleteChat.js +0 -40
- package/node_modules/zca-js/dist/apis/updateAutoReply.d.ts +0 -15
- package/node_modules/zca-js/dist/apis/updateAutoReply.js +0 -38
- package/node_modules/zca-js/dist/apis/updateBankAccount.d.ts +0 -9
- package/node_modules/zca-js/dist/apis/updateBankAccount.js +0 -31
- package/node_modules/zca-js/dist/apis/updateCatalog.d.ts +0 -11
- package/node_modules/zca-js/dist/apis/updateCatalog.js +0 -30
- package/node_modules/zca-js/dist/apis/updateGroupSettings.d.ts +0 -40
- package/node_modules/zca-js/dist/apis/updateGroupSettings.js +0 -43
- package/node_modules/zca-js/dist/apis/updateHiddenConversPin.d.ts +0 -2
- package/node_modules/zca-js/dist/apis/updateHiddenConversPin.js +0 -30
- package/node_modules/zca-js/dist/apis/updateLabels.d.ts +0 -15
- package/node_modules/zca-js/dist/apis/updateLabels.js +0 -34
- package/node_modules/zca-js/dist/apis/updateLang.d.ts +0 -6
- package/node_modules/zca-js/dist/apis/updateLang.js +0 -30
- package/node_modules/zca-js/dist/apis/updateProductCatalog.d.ts +0 -25
- package/node_modules/zca-js/dist/apis/updateProductCatalog.js +0 -51
- package/node_modules/zca-js/dist/apis/updateProfile.d.ts +0 -20
- package/node_modules/zca-js/dist/apis/updateProfile.js +0 -43
- package/node_modules/zca-js/dist/apis/updateProfileBio.d.ts +0 -2
- package/node_modules/zca-js/dist/apis/updateProfileBio.js +0 -27
- package/node_modules/zca-js/dist/apis/updateQuickMessage.d.ts +0 -11
- package/node_modules/zca-js/dist/apis/updateQuickMessage.js +0 -61
- package/node_modules/zca-js/dist/apis/updateSettings.d.ts +0 -16
- package/node_modules/zca-js/dist/apis/updateSettings.js +0 -90
- package/node_modules/zca-js/dist/apis/upgradeGroupToCommunity.d.ts +0 -2
- package/node_modules/zca-js/dist/apis/upgradeGroupToCommunity.js +0 -27
- package/node_modules/zca-js/dist/apis/uploadAttachment.d.ts +0 -50
- package/node_modules/zca-js/dist/apis/uploadAttachment.js +0 -197
- package/node_modules/zca-js/dist/apis/uploadProductPhoto.d.ts +0 -14
- package/node_modules/zca-js/dist/apis/uploadProductPhoto.js +0 -50
- package/node_modules/zca-js/dist/apis/votePoll.d.ts +0 -5
- package/node_modules/zca-js/dist/apis/votePoll.js +0 -29
- package/node_modules/zca-js/dist/apis.d.ts +0 -317
- package/node_modules/zca-js/dist/apis.js +0 -319
- package/node_modules/zca-js/dist/cjs/Errors/ZaloApiError.cjs +0 -11
- package/node_modules/zca-js/dist/cjs/Errors/ZaloApiLoginQRAborted.cjs +0 -12
- package/node_modules/zca-js/dist/cjs/Errors/ZaloApiLoginQRDeclined.cjs +0 -12
- package/node_modules/zca-js/dist/cjs/Errors/ZaloApiMissingImageMetadataGetter.cjs +0 -12
- package/node_modules/zca-js/dist/cjs/apis/acceptFriendRequest.cjs +0 -33
- package/node_modules/zca-js/dist/cjs/apis/addGroupBlockedMember.cjs +0 -33
- package/node_modules/zca-js/dist/cjs/apis/addGroupDeputy.cjs +0 -35
- package/node_modules/zca-js/dist/cjs/apis/addPollOptions.cjs +0 -31
- package/node_modules/zca-js/dist/cjs/apis/addQuickMessage.cjs +0 -65
- package/node_modules/zca-js/dist/cjs/apis/addReaction.cjs +0 -308
- package/node_modules/zca-js/dist/cjs/apis/addUnreadMark.cjs +0 -66
- package/node_modules/zca-js/dist/cjs/apis/addUserToGroup.cjs +0 -39
- package/node_modules/zca-js/dist/cjs/apis/blockUser.cjs +0 -33
- package/node_modules/zca-js/dist/cjs/apis/blockViewFeed.cjs +0 -35
- package/node_modules/zca-js/dist/cjs/apis/changeAccountAvatar.cjs +0 -57
- package/node_modules/zca-js/dist/cjs/apis/changeFriendAlias.cjs +0 -32
- package/node_modules/zca-js/dist/cjs/apis/changeGroupAvatar.cjs +0 -49
- package/node_modules/zca-js/dist/cjs/apis/changeGroupName.cjs +0 -37
- package/node_modules/zca-js/dist/cjs/apis/changeGroupOwner.cjs +0 -35
- package/node_modules/zca-js/dist/cjs/apis/createAutoReply.cjs +0 -42
- package/node_modules/zca-js/dist/cjs/apis/createBankAccount.cjs +0 -37
- package/node_modules/zca-js/dist/cjs/apis/createCatalog.cjs +0 -34
- package/node_modules/zca-js/dist/cjs/apis/createGroup.cjs +0 -48
- package/node_modules/zca-js/dist/cjs/apis/createNote.cjs +0 -52
- package/node_modules/zca-js/dist/cjs/apis/createPoll.cjs +0 -45
- package/node_modules/zca-js/dist/cjs/apis/createProductCatalog.cjs +0 -55
- package/node_modules/zca-js/dist/cjs/apis/createReminder.cjs +0 -77
- package/node_modules/zca-js/dist/cjs/apis/custom.cjs +0 -19
- package/node_modules/zca-js/dist/cjs/apis/deleteAutoReply.cjs +0 -34
- package/node_modules/zca-js/dist/cjs/apis/deleteAvatar.cjs +0 -32
- package/node_modules/zca-js/dist/cjs/apis/deleteBankAccount.cjs +0 -37
- package/node_modules/zca-js/dist/cjs/apis/deleteCatalog.cjs +0 -33
- package/node_modules/zca-js/dist/cjs/apis/deleteChat.cjs +0 -64
- package/node_modules/zca-js/dist/cjs/apis/deleteGroupInviteBox.cjs +0 -32
- package/node_modules/zca-js/dist/cjs/apis/deleteMessage.cjs +0 -66
- package/node_modules/zca-js/dist/cjs/apis/deleteProductCatalog.cjs +0 -36
- package/node_modules/zca-js/dist/cjs/apis/disableGroupLink.cjs +0 -29
- package/node_modules/zca-js/dist/cjs/apis/disperseGroup.cjs +0 -33
- package/node_modules/zca-js/dist/cjs/apis/editNote.cjs +0 -51
- package/node_modules/zca-js/dist/cjs/apis/editReminder.cjs +0 -75
- package/node_modules/zca-js/dist/cjs/apis/enableGroupLink.cjs +0 -30
- package/node_modules/zca-js/dist/cjs/apis/fetchAccountInfo.cjs +0 -15
- package/node_modules/zca-js/dist/cjs/apis/findUser.cjs +0 -56
- package/node_modules/zca-js/dist/cjs/apis/findUserByUsername.cjs +0 -41
- package/node_modules/zca-js/dist/cjs/apis/forwardMessage.cjs +0 -129
- package/node_modules/zca-js/dist/cjs/apis/getAliasList.cjs +0 -32
- package/node_modules/zca-js/dist/cjs/apis/getAllFriends.cjs +0 -48
- package/node_modules/zca-js/dist/cjs/apis/getAllGroups.cjs +0 -15
- package/node_modules/zca-js/dist/cjs/apis/getArchivedChatList.cjs +0 -28
- package/node_modules/zca-js/dist/cjs/apis/getAutoDeleteChat.cjs +0 -26
- package/node_modules/zca-js/dist/cjs/apis/getAutoReplyList.cjs +0 -29
- package/node_modules/zca-js/dist/cjs/apis/getAvatarList.cjs +0 -33
- package/node_modules/zca-js/dist/cjs/apis/getAvatarUrlProfile.cjs +0 -44
- package/node_modules/zca-js/dist/cjs/apis/getBizAccount.cjs +0 -32
- package/node_modules/zca-js/dist/cjs/apis/getCatalogList.cjs +0 -37
- package/node_modules/zca-js/dist/cjs/apis/getCloseFriends.cjs +0 -25
- package/node_modules/zca-js/dist/cjs/apis/getContext.cjs +0 -9
- package/node_modules/zca-js/dist/cjs/apis/getCookie.cjs +0 -14
- package/node_modules/zca-js/dist/cjs/apis/getFriendBoardList.cjs +0 -31
- package/node_modules/zca-js/dist/cjs/apis/getFriendOnlines.cjs +0 -40
- package/node_modules/zca-js/dist/cjs/apis/getFriendRecommendations.cjs +0 -32
- package/node_modules/zca-js/dist/cjs/apis/getFriendRequestStatus.cjs +0 -30
- package/node_modules/zca-js/dist/cjs/apis/getFullAvatar.cjs +0 -30
- package/node_modules/zca-js/dist/cjs/apis/getGroupBlockedMember.cjs +0 -34
- package/node_modules/zca-js/dist/cjs/apis/getGroupChatHistory.cjs +0 -51
- package/node_modules/zca-js/dist/cjs/apis/getGroupInfo.cjs +0 -37
- package/node_modules/zca-js/dist/cjs/apis/getGroupInviteBoxInfo.cjs +0 -43
- package/node_modules/zca-js/dist/cjs/apis/getGroupInviteBoxList.cjs +0 -36
- package/node_modules/zca-js/dist/cjs/apis/getGroupLinkDetail.cjs +0 -30
- package/node_modules/zca-js/dist/cjs/apis/getGroupLinkInfo.cjs +0 -33
- package/node_modules/zca-js/dist/cjs/apis/getGroupMembersInfo.cjs +0 -29
- package/node_modules/zca-js/dist/cjs/apis/getHiddenConversations.cjs +0 -28
- package/node_modules/zca-js/dist/cjs/apis/getLabels.cjs +0 -33
- package/node_modules/zca-js/dist/cjs/apis/getListBank.cjs +0 -25
- package/node_modules/zca-js/dist/cjs/apis/getListBankAccount.cjs +0 -32
- package/node_modules/zca-js/dist/cjs/apis/getListBoard.cjs +0 -59
- package/node_modules/zca-js/dist/cjs/apis/getListDevice.cjs +0 -27
- package/node_modules/zca-js/dist/cjs/apis/getListReminder.cjs +0 -61
- package/node_modules/zca-js/dist/cjs/apis/getMultiUsersByPhones.cjs +0 -53
- package/node_modules/zca-js/dist/cjs/apis/getMute.cjs +0 -27
- package/node_modules/zca-js/dist/cjs/apis/getOwnId.cjs +0 -9
- package/node_modules/zca-js/dist/cjs/apis/getPendingGroupMembers.cjs +0 -32
- package/node_modules/zca-js/dist/cjs/apis/getPinConversations.cjs +0 -27
- package/node_modules/zca-js/dist/cjs/apis/getPollDetail.cjs +0 -35
- package/node_modules/zca-js/dist/cjs/apis/getProductCatalogList.cjs +0 -38
- package/node_modules/zca-js/dist/cjs/apis/getQR.cjs +0 -34
- package/node_modules/zca-js/dist/cjs/apis/getQuickMessageList.cjs +0 -29
- package/node_modules/zca-js/dist/cjs/apis/getRelatedFriendGroup.cjs +0 -35
- package/node_modules/zca-js/dist/cjs/apis/getReminder.cjs +0 -30
- package/node_modules/zca-js/dist/cjs/apis/getReminderResponses.cjs +0 -29
- package/node_modules/zca-js/dist/cjs/apis/getSentFriendRequest.cjs +0 -29
- package/node_modules/zca-js/dist/cjs/apis/getSettings.cjs +0 -25
- package/node_modules/zca-js/dist/cjs/apis/getStickerCategoryDetail.cjs +0 -29
- package/node_modules/zca-js/dist/cjs/apis/getStickers.cjs +0 -45
- package/node_modules/zca-js/dist/cjs/apis/getStickersDetail.cjs +0 -45
- package/node_modules/zca-js/dist/cjs/apis/getUnreadMark.cjs +0 -35
- package/node_modules/zca-js/dist/cjs/apis/getUserInfo.cjs +0 -58
- package/node_modules/zca-js/dist/cjs/apis/inviteUserToGroups.cjs +0 -35
- package/node_modules/zca-js/dist/cjs/apis/joinGroupInviteBox.cjs +0 -30
- package/node_modules/zca-js/dist/cjs/apis/joinGroupLink.cjs +0 -32
- package/node_modules/zca-js/dist/cjs/apis/keepAlive.cjs +0 -27
- package/node_modules/zca-js/dist/cjs/apis/lastOnline.cjs +0 -31
- package/node_modules/zca-js/dist/cjs/apis/leaveGroup.cjs +0 -38
- package/node_modules/zca-js/dist/cjs/apis/listen.cjs +0 -440
- package/node_modules/zca-js/dist/cjs/apis/lockPoll.cjs +0 -33
- package/node_modules/zca-js/dist/cjs/apis/login.cjs +0 -102
- package/node_modules/zca-js/dist/cjs/apis/loginQR.cjs +0 -368
- package/node_modules/zca-js/dist/cjs/apis/logoutV2.cjs +0 -83
- package/node_modules/zca-js/dist/cjs/apis/lostFocus.cjs +0 -28
- package/node_modules/zca-js/dist/cjs/apis/parseLink.cjs +0 -32
- package/node_modules/zca-js/dist/cjs/apis/registerCatalog.cjs +0 -32
- package/node_modules/zca-js/dist/cjs/apis/rejectFriendRequest.cjs +0 -32
- package/node_modules/zca-js/dist/cjs/apis/removeFriend.cjs +0 -33
- package/node_modules/zca-js/dist/cjs/apis/removeFriendAlias.cjs +0 -29
- package/node_modules/zca-js/dist/cjs/apis/removeGroupBlockedMember.cjs +0 -33
- package/node_modules/zca-js/dist/cjs/apis/removeGroupDeputy.cjs +0 -35
- package/node_modules/zca-js/dist/cjs/apis/removeQuickMessage.cjs +0 -32
- package/node_modules/zca-js/dist/cjs/apis/removeReminder.cjs +0 -54
- package/node_modules/zca-js/dist/cjs/apis/removeUnreadMark.cjs +0 -64
- package/node_modules/zca-js/dist/cjs/apis/removeUserFromGroup.cjs +0 -39
- package/node_modules/zca-js/dist/cjs/apis/resetHiddenConversPin.cjs +0 -25
- package/node_modules/zca-js/dist/cjs/apis/reuseAvatar.cjs +0 -31
- package/node_modules/zca-js/dist/cjs/apis/reviewPendingMemberRequest.cjs +0 -43
- package/node_modules/zca-js/dist/cjs/apis/scanURL.cjs +0 -33
- package/node_modules/zca-js/dist/cjs/apis/searchSticker.cjs +0 -33
- package/node_modules/zca-js/dist/cjs/apis/sendBankCard.cjs +0 -68
- package/node_modules/zca-js/dist/cjs/apis/sendCard.cjs +0 -89
- package/node_modules/zca-js/dist/cjs/apis/sendDeliveredEvent.cjs +0 -69
- package/node_modules/zca-js/dist/cjs/apis/sendFriendRequest.cjs +0 -44
- package/node_modules/zca-js/dist/cjs/apis/sendLink.cjs +0 -92
- package/node_modules/zca-js/dist/cjs/apis/sendMessage.cjs +0 -500
- package/node_modules/zca-js/dist/cjs/apis/sendReport.cjs +0 -67
- package/node_modules/zca-js/dist/cjs/apis/sendSeenEvent.cjs +0 -77
- package/node_modules/zca-js/dist/cjs/apis/sendSticker.cjs +0 -88
- package/node_modules/zca-js/dist/cjs/apis/sendTypingEvent.cjs +0 -47
- package/node_modules/zca-js/dist/cjs/apis/sendVideo.cjs +0 -148
- package/node_modules/zca-js/dist/cjs/apis/sendVoice.cjs +0 -103
- package/node_modules/zca-js/dist/cjs/apis/setHiddenConversations.cjs +0 -53
- package/node_modules/zca-js/dist/cjs/apis/setMute.cjs +0 -81
- package/node_modules/zca-js/dist/cjs/apis/setPinnedConversations.cjs +0 -48
- package/node_modules/zca-js/dist/cjs/apis/sharePoll.cjs +0 -33
- package/node_modules/zca-js/dist/cjs/apis/unblockUser.cjs +0 -33
- package/node_modules/zca-js/dist/cjs/apis/undo.cjs +0 -56
- package/node_modules/zca-js/dist/cjs/apis/undoFriendRequest.cjs +0 -32
- package/node_modules/zca-js/dist/cjs/apis/updateActiveStatus.cjs +0 -32
- package/node_modules/zca-js/dist/cjs/apis/updateArchivedChatList.cjs +0 -39
- package/node_modules/zca-js/dist/cjs/apis/updateAutoDeleteChat.cjs +0 -54
- package/node_modules/zca-js/dist/cjs/apis/updateAutoReply.cjs +0 -43
- package/node_modules/zca-js/dist/cjs/apis/updateBankAccount.cjs +0 -36
- package/node_modules/zca-js/dist/cjs/apis/updateCatalog.cjs +0 -35
- package/node_modules/zca-js/dist/cjs/apis/updateGroupSettings.cjs +0 -48
- package/node_modules/zca-js/dist/cjs/apis/updateHiddenConversPin.cjs +0 -35
- package/node_modules/zca-js/dist/cjs/apis/updateLabels.cjs +0 -39
- package/node_modules/zca-js/dist/cjs/apis/updateLang.cjs +0 -35
- package/node_modules/zca-js/dist/cjs/apis/updateProductCatalog.cjs +0 -56
- package/node_modules/zca-js/dist/cjs/apis/updateProfile.cjs +0 -48
- package/node_modules/zca-js/dist/cjs/apis/updateProfileBio.cjs +0 -32
- package/node_modules/zca-js/dist/cjs/apis/updateQuickMessage.cjs +0 -66
- package/node_modules/zca-js/dist/cjs/apis/updateSettings.cjs +0 -95
- package/node_modules/zca-js/dist/cjs/apis/upgradeGroupToCommunity.cjs +0 -32
- package/node_modules/zca-js/dist/cjs/apis/uploadAttachment.cjs +0 -211
- package/node_modules/zca-js/dist/cjs/apis/uploadProductPhoto.cjs +0 -55
- package/node_modules/zca-js/dist/cjs/apis/votePoll.cjs +0 -34
- package/node_modules/zca-js/dist/cjs/apis.cjs +0 -324
- package/node_modules/zca-js/dist/cjs/context.cjs +0 -34
- package/node_modules/zca-js/dist/cjs/index.cjs +0 -159
- package/node_modules/zca-js/dist/cjs/models/AutoReply.cjs +0 -9
- package/node_modules/zca-js/dist/cjs/models/Bank.cjs +0 -263
- package/node_modules/zca-js/dist/cjs/models/Board.cjs +0 -8
- package/node_modules/zca-js/dist/cjs/models/DeliveredMessage.cjs +0 -23
- package/node_modules/zca-js/dist/cjs/models/Enum.cjs +0 -27
- package/node_modules/zca-js/dist/cjs/models/FriendEvent.cjs +0 -87
- package/node_modules/zca-js/dist/cjs/models/Group.cjs +0 -13
- package/node_modules/zca-js/dist/cjs/models/GroupEvent.cjs +0 -94
- package/node_modules/zca-js/dist/cjs/models/Message.cjs +0 -35
- package/node_modules/zca-js/dist/cjs/models/Reaction.cjs +0 -74
- package/node_modules/zca-js/dist/cjs/models/Reminder.cjs +0 -9
- package/node_modules/zca-js/dist/cjs/models/SeenMessage.cjs +0 -23
- package/node_modules/zca-js/dist/cjs/models/Typing.cjs +0 -23
- package/node_modules/zca-js/dist/cjs/models/Undo.cjs +0 -16
- package/node_modules/zca-js/dist/cjs/models/ZBusiness.cjs +0 -39
- package/node_modules/zca-js/dist/cjs/update.cjs +0 -34
- package/node_modules/zca-js/dist/cjs/utils.cjs +0 -703
- package/node_modules/zca-js/dist/cjs/zalo.cjs +0 -112
- package/node_modules/zca-js/dist/context.d.ts +0 -179
- package/node_modules/zca-js/dist/context.js +0 -28
- package/node_modules/zca-js/dist/index.d.ts +0 -166
- package/node_modules/zca-js/dist/index.js +0 -14
- package/node_modules/zca-js/dist/models/Attachment.d.ts +0 -9
- package/node_modules/zca-js/dist/models/Attachment.js +0 -1
- package/node_modules/zca-js/dist/models/AutoReply.d.ts +0 -20
- package/node_modules/zca-js/dist/models/AutoReply.js +0 -7
- package/node_modules/zca-js/dist/models/Bank.d.ts +0 -291
- package/node_modules/zca-js/dist/models/Bank.js +0 -262
- package/node_modules/zca-js/dist/models/Board.d.ts +0 -60
- package/node_modules/zca-js/dist/models/Board.js +0 -6
- package/node_modules/zca-js/dist/models/Catalog.d.ts +0 -16
- package/node_modules/zca-js/dist/models/Catalog.js +0 -1
- package/node_modules/zca-js/dist/models/DeliveredMessage.d.ts +0 -27
- package/node_modules/zca-js/dist/models/DeliveredMessage.js +0 -17
- package/node_modules/zca-js/dist/models/Enum.d.ts +0 -21
- package/node_modules/zca-js/dist/models/Enum.js +0 -25
- package/node_modules/zca-js/dist/models/FriendEvent.d.ts +0 -107
- package/node_modules/zca-js/dist/models/FriendEvent.js +0 -83
- package/node_modules/zca-js/dist/models/Group.d.ts +0 -125
- package/node_modules/zca-js/dist/models/Group.js +0 -11
- package/node_modules/zca-js/dist/models/GroupEvent.d.ts +0 -178
- package/node_modules/zca-js/dist/models/GroupEvent.js +0 -90
- package/node_modules/zca-js/dist/models/Label.d.ts +0 -10
- package/node_modules/zca-js/dist/models/Label.js +0 -1
- package/node_modules/zca-js/dist/models/Message.d.ts +0 -91
- package/node_modules/zca-js/dist/models/Message.js +0 -29
- package/node_modules/zca-js/dist/models/ProductCatalog.d.ts +0 -17
- package/node_modules/zca-js/dist/models/ProductCatalog.js +0 -1
- package/node_modules/zca-js/dist/models/QuickMessage.d.ts +0 -25
- package/node_modules/zca-js/dist/models/QuickMessage.js +0 -1
- package/node_modules/zca-js/dist/models/Reaction.d.ts +0 -85
- package/node_modules/zca-js/dist/models/Reaction.js +0 -70
- package/node_modules/zca-js/dist/models/Reminder.d.ts +0 -51
- package/node_modules/zca-js/dist/models/Reminder.js +0 -7
- package/node_modules/zca-js/dist/models/SeenMessage.d.ts +0 -26
- package/node_modules/zca-js/dist/models/SeenMessage.js +0 -17
- package/node_modules/zca-js/dist/models/Sticker.d.ts +0 -27
- package/node_modules/zca-js/dist/models/Sticker.js +0 -1
- package/node_modules/zca-js/dist/models/Typing.d.ts +0 -24
- package/node_modules/zca-js/dist/models/Typing.js +0 -17
- package/node_modules/zca-js/dist/models/Undo.d.ts +0 -34
- package/node_modules/zca-js/dist/models/Undo.js +0 -12
- package/node_modules/zca-js/dist/models/User.d.ts +0 -70
- package/node_modules/zca-js/dist/models/User.js +0 -1
- package/node_modules/zca-js/dist/models/ZBusiness.d.ts +0 -22
- package/node_modules/zca-js/dist/models/ZBusiness.js +0 -35
- package/node_modules/zca-js/dist/models/index.d.ts +0 -22
- package/node_modules/zca-js/dist/models/index.js +0 -22
- package/node_modules/zca-js/dist/update.d.ts +0 -2
- package/node_modules/zca-js/dist/update.js +0 -29
- package/node_modules/zca-js/dist/utils.d.ts +0 -167
- package/node_modules/zca-js/dist/utils.js +0 -719
- package/node_modules/zca-js/dist/zalo.d.ts +0 -41
- package/node_modules/zca-js/dist/zalo.js +0 -107
- package/node_modules/zca-js/eslint.config.js +0 -21
- package/node_modules/zca-js/index.d.ts +0 -2
- package/node_modules/zca-js/package.json +0 -78
- package/node_modules/zca-js/rollup.config.js +0 -28
- package/patches/zca-js+2.2.0.patch +0 -1445
- package/src/cli.test.js +0 -127
- package/src/core/forward.js +0 -112
- package/src/core/group-history.js +0 -248
- package/src/core/group-invite.js +0 -53
- package/src/core/offline-queue.js +0 -194
- package/src/core/pin.js +0 -222
- package/src/core/socket-tap.js +0 -154
- package/src/core/sync-v2/assets.js +0 -181
- package/src/core/sync-v2/gid.js +0 -106
- package/src/core/sync-v2/keepalive.js +0 -177
- package/src/core/sync-v2/message-types.js +0 -522
- package/src/core/sync-v2/renewlink.js +0 -124
- package/src/core/sync-v2/zcloud-cipher.js +0 -88
- package/src/core/zca-custom.js +0 -78
- package/src/mcp/message-buffer.test.js +0 -360
- package/src/mcp/notifier.test.js +0 -275
- package/src/mcp/thread-filter.test.js +0 -206
- package/src/mcp/thread-name-cache.test.js +0 -142
- package/src/utils/atomic-file.js +0 -209
- package/src/utils/bank-helpers.test.js +0 -66
- package/src/utils/device-fingerprint.js +0 -72
- package/src/utils/mentions.js +0 -140
- package/src/utils/proxy-helpers.test.js +0 -36
- package/src/utils/split-message.js +0 -222
- package/src/utils/urgency.js +0 -29
- /package/src/{core → zalo/custom}/user-info.js +0 -0
- /package/src/{utils → zalo/format}/extract-message-text.js +0 -0
- /package/src/{utils → zalo/format}/markdown.js +0 -0
package/src/commands/msg.js
CHANGED
|
@@ -9,15 +9,28 @@ import { InvalidArgumentError } from "commander";
|
|
|
9
9
|
import { getApi, getOwnId } from "../core/zalo-client.js";
|
|
10
10
|
import { withCurrentSenderNames } from "../core/current-user-names.js";
|
|
11
11
|
import { success, error, info, output, warning } from "../utils/output.js";
|
|
12
|
+
import { sendRefusal } from "../core/group-exit.js";
|
|
12
13
|
import { parseIntOption } from "../utils/parse-options.js";
|
|
13
14
|
import { parseThreadTypeArg, parseReportReason } from "../utils/cli-args.js";
|
|
14
15
|
import { getActive } from "../core/accounts.js";
|
|
15
16
|
import { getAccountDir, getAccountDbPath } from "../core/credentials.js";
|
|
16
|
-
import {
|
|
17
|
+
import { hiddenAccess } from "../utils/hidden-access.js";
|
|
18
|
+
import {
|
|
19
|
+
initDb,
|
|
20
|
+
getMessages,
|
|
21
|
+
getAllMessagesInRange,
|
|
22
|
+
getMessageForAction,
|
|
23
|
+
getDisplayName,
|
|
24
|
+
getThreadType,
|
|
25
|
+
} from "../core/db.js";
|
|
26
|
+
import { parseDateBound, parsePeriod } from "../utils/date-range.js";
|
|
17
27
|
import { sendViaDaemon, getDaemonChannel, getSyncChannel, syncViaDaemon } from "../core/daemon-channel.js";
|
|
18
28
|
import { fetchAndCacheHistory } from "../core/history-fetch.js";
|
|
19
|
-
import { classifyLiveMessage } from "../
|
|
29
|
+
import { classifyLiveMessage } from "../zalo/transfer-sync/message-types.js";
|
|
20
30
|
import { downloadSyncedMedia } from "../core/sync-v2/media.js";
|
|
31
|
+
import { mediaPlainSize } from "../core/keystore/media-seal.js";
|
|
32
|
+
import { scopeOf } from "../core/keystore/index.js";
|
|
33
|
+
import { decryptToTempfile, removeMediaTemp } from "../core/media-deliver.js";
|
|
21
34
|
import { describeZaloError } from "../core/sync-v2/board.js";
|
|
22
35
|
import {
|
|
23
36
|
cachedCliMsgId,
|
|
@@ -27,15 +40,27 @@ import {
|
|
|
27
40
|
reactionCliMsgId,
|
|
28
41
|
recallCliMsgId,
|
|
29
42
|
} from "../core/cached-message.js";
|
|
30
|
-
import {
|
|
43
|
+
import {
|
|
44
|
+
buildForwardReference,
|
|
45
|
+
sendForward,
|
|
46
|
+
LOG_SRC_TYPE,
|
|
47
|
+
videoResendOptions,
|
|
48
|
+
voiceResendOptions,
|
|
49
|
+
} from "../zalo/custom/forward.js";
|
|
50
|
+
import { undoPayload } from "../zalo/custom/group-visibility.js";
|
|
31
51
|
import { fetchMemberNames } from "../core/group-members.js";
|
|
32
|
-
import { pinMessage, unpinMessage, textPinParams } from "../
|
|
33
|
-
import { expandMentions, parseMentionSpecs, shiftStyles, ALL_MENTION_UID } from "../
|
|
52
|
+
import { pinMessage, unpinMessage, textPinParams } from "../zalo/custom/pin.js";
|
|
53
|
+
import { expandMentions, parseMentionSpecs, shiftStyles, ALL_MENTION_UID } from "../zalo/format/mentions.js";
|
|
34
54
|
import { applySelfThreadAlias } from "../utils/my-documents.js";
|
|
35
55
|
import { buildQuote, resolveQuoteSender } from "../utils/quote.js";
|
|
36
|
-
import { urgencyLevel } from "../
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
56
|
+
import { urgencyLevel } from "../zalo/format/urgency.js";
|
|
57
|
+
import { registerMsgSearch } from "./msg-search.js";
|
|
58
|
+
import { registerMsgMedia } from "./msg-media.js";
|
|
59
|
+
import { markdownToZalo, resolveSendFormat } from "../zalo/format/markdown.js";
|
|
60
|
+
import { splitMessage, sendParts } from "../zalo/format/split-message.js";
|
|
61
|
+
import { guardSubcommand } from "../core/confirm-guard.js";
|
|
62
|
+
import { sendTyping } from "../core/typing.js";
|
|
63
|
+
import { seenMessages } from "../core/receipts.js";
|
|
39
64
|
|
|
40
65
|
/**
|
|
41
66
|
* Open the active account's SQLite cache.
|
|
@@ -165,7 +190,7 @@ function send2meIdOf(api) {
|
|
|
165
190
|
/**
|
|
166
191
|
* What a forward reference needs to know about its source message.
|
|
167
192
|
*
|
|
168
|
-
* @param {object} api - a logged-in
|
|
193
|
+
* @param {object} api - a logged-in session
|
|
169
194
|
* @param {object} row - the cached source message
|
|
170
195
|
* @returns {Promise<object>} the input for buildForwardReference, or `{error}`
|
|
171
196
|
*/
|
|
@@ -200,7 +225,7 @@ async function forwardSource(api, row) {
|
|
|
200
225
|
senderUid: sender.uid,
|
|
201
226
|
threadId,
|
|
202
227
|
isGroup: kind === "group" && !isMyDocuments,
|
|
203
|
-
//
|
|
228
|
+
// Zalo's sendDttm: the server timestamp for any message it did not
|
|
204
229
|
// send itself. The cliMsgId is the fallback for a row that lost it.
|
|
205
230
|
ts: Number(row.timestamp) || Number(cliMsgId),
|
|
206
231
|
...(isMyDocuments && { logSrcType: LOG_SRC_TYPE.MY_CLOUD }),
|
|
@@ -209,7 +234,7 @@ async function forwardSource(api, row) {
|
|
|
209
234
|
|
|
210
235
|
/**
|
|
211
236
|
* Commander parser for `--urgency`: `important` → 1, `urgent` → 2. The
|
|
212
|
-
* mapping is src/
|
|
237
|
+
* mapping is src/zalo/format/urgency.js, which `zalo_send_message` shares.
|
|
213
238
|
*
|
|
214
239
|
* @param {string} value
|
|
215
240
|
* @returns {number}
|
|
@@ -296,7 +321,7 @@ function daemonHistoryFailure(r, pid) {
|
|
|
296
321
|
}
|
|
297
322
|
|
|
298
323
|
/**
|
|
299
|
-
* TextStyle codes matching
|
|
324
|
+
* TextStyle codes matching Zalo's text style codes.
|
|
300
325
|
* Used for --style option and markdown parsing.
|
|
301
326
|
*/
|
|
302
327
|
const TEXT_STYLES = {
|
|
@@ -362,7 +387,7 @@ function parseMarkdownStyles(input) {
|
|
|
362
387
|
}
|
|
363
388
|
|
|
364
389
|
/**
|
|
365
|
-
* Extensions
|
|
390
|
+
* Extensions the session uploads through its inline-image path.
|
|
366
391
|
*
|
|
367
392
|
* uploadAttachment() routes on EXTENSION, not on which CLI command was used:
|
|
368
393
|
* these four resolve their upload promise synchronously, `gif` is split off
|
|
@@ -387,7 +412,7 @@ function allInlineImages(paths) {
|
|
|
387
412
|
*
|
|
388
413
|
* `msg send` reports `result.cliMsgId` off `result.message`, but an
|
|
389
414
|
* attachment send usually has no `result.message` at all: for a single
|
|
390
|
-
* jpg/jpeg/png/webp
|
|
415
|
+
* jpg/jpeg/png/webp the session folds the caption into the attachment and leaves
|
|
391
416
|
* `message` null. The ids live in `result.attachment` instead -- an array,
|
|
392
417
|
* one entry per file.
|
|
393
418
|
*
|
|
@@ -414,9 +439,9 @@ function sentAttachmentIds(result) {
|
|
|
414
439
|
* Send attachments, bringing the WebSocket listener up first when any of
|
|
415
440
|
* them needs it.
|
|
416
441
|
*
|
|
417
|
-
*
|
|
442
|
+
* The session's uploadAttachment() resolves synchronously for inline images, but
|
|
418
443
|
* for "video" and "others" it registers an entry in ctx.uploadCallbacks and
|
|
419
|
-
* awaits a promise that ONLY
|
|
444
|
+
* awaits a promise that ONLY the listener can settle, when the
|
|
420
445
|
* upload-complete control frame arrives. With no listener there is no
|
|
421
446
|
* timeout and no fallback — the await never settles and the command hangs
|
|
422
447
|
* with no output at all.
|
|
@@ -436,10 +461,13 @@ function sentAttachmentIds(result) {
|
|
|
436
461
|
* @param {string} threadId
|
|
437
462
|
* @param {number} type
|
|
438
463
|
* @param {object} opts - {caption, uploadTimeout}
|
|
439
|
-
* @
|
|
464
|
+
* @param {object|null} [video] - send `absPaths[0]` as a video message instead (`sendVideoFile`'s options other than
|
|
465
|
+
* the file and the caption: thumbnailFile or thumbnailUrl, width, height, duration)
|
|
466
|
+
* @returns {Promise<{result?: object, error?: string, listenerStarted?: boolean, viaDaemon?: boolean,
|
|
467
|
+
* oldDaemon?: boolean}>} `oldDaemon`: a daemon that predates video sends took it and sent the file as a file
|
|
440
468
|
*/
|
|
441
|
-
async function sendAttachments(api, absPaths, threadId, type, opts) {
|
|
442
|
-
const needsListener = !allInlineImages(absPaths);
|
|
469
|
+
async function sendAttachments(api, absPaths, threadId, type, opts, video = null) {
|
|
470
|
+
const needsListener = video !== null || !allInlineImages(absPaths);
|
|
443
471
|
let listenerStarted = false;
|
|
444
472
|
|
|
445
473
|
// A running `listen`/`mcp` daemon already holds the account's one permitted
|
|
@@ -456,12 +484,14 @@ async function sendAttachments(api, absPaths, threadId, type, opts) {
|
|
|
456
484
|
type,
|
|
457
485
|
caption: opts.caption,
|
|
458
486
|
timeoutMs: Number(opts.uploadTimeout),
|
|
487
|
+
...(video ? { video } : {}),
|
|
459
488
|
});
|
|
460
489
|
// null means no daemon answered; fall through and open our own.
|
|
461
490
|
if (viaDaemon) {
|
|
491
|
+
const oldDaemon = Boolean(video) && viaDaemon.video !== true;
|
|
462
492
|
return viaDaemon.ok
|
|
463
|
-
? { result: viaDaemon.result, viaDaemon: true }
|
|
464
|
-
: { error: viaDaemon.error, viaDaemon: true };
|
|
493
|
+
? { result: viaDaemon.result, viaDaemon: true, oldDaemon }
|
|
494
|
+
: { error: viaDaemon.error, viaDaemon: true, oldDaemon };
|
|
465
495
|
}
|
|
466
496
|
}
|
|
467
497
|
}
|
|
@@ -487,8 +517,11 @@ async function sendAttachments(api, absPaths, threadId, type, opts) {
|
|
|
487
517
|
}
|
|
488
518
|
|
|
489
519
|
try {
|
|
520
|
+
const send = video
|
|
521
|
+
? api.sendVideoFile({ ...video, file: absPaths[0], msg: opts.caption }, threadId, type)
|
|
522
|
+
: api.sendMessage({ msg: opts.caption, attachments: absPaths }, threadId, type);
|
|
490
523
|
const result = await withTimeout(
|
|
491
|
-
|
|
524
|
+
send,
|
|
492
525
|
Number(opts.uploadTimeout),
|
|
493
526
|
"Upload timed out waiting for Zalo's upload-complete event",
|
|
494
527
|
);
|
|
@@ -509,8 +542,8 @@ async function sendAttachments(api, absPaths, threadId, type, opts) {
|
|
|
509
542
|
/**
|
|
510
543
|
* Reject with `message` if `promise` hasn't settled within `ms`.
|
|
511
544
|
*
|
|
512
|
-
* Used by the attachment path:
|
|
513
|
-
*
|
|
545
|
+
* Used by the attachment path: a non-inline upload waits on a WebSocket
|
|
546
|
+
* event, and this bounds the command around it, so a dropped or missed
|
|
514
547
|
* upload-complete frame would otherwise hang the command indefinitely.
|
|
515
548
|
* Better to fail loudly than to look frozen.
|
|
516
549
|
*
|
|
@@ -544,9 +577,105 @@ function parseStyleSpecs(specs) {
|
|
|
544
577
|
.filter(Boolean);
|
|
545
578
|
}
|
|
546
579
|
|
|
580
|
+
/**
|
|
581
|
+
* `msg history --since/--until/--last`: every cached message of one conversation in a period, oldest first, read in
|
|
582
|
+
* pages of 1000 (bug-reports #5: no more paging back 200 at a time to reach one day). Cache only, as Zalo's server has
|
|
583
|
+
* nothing older than this login; `-n` caps it only when it is given.
|
|
584
|
+
*
|
|
585
|
+
* @param {object} p
|
|
586
|
+
* @returns {Promise<void>}
|
|
587
|
+
*/
|
|
588
|
+
async function showHistoryRange({ api, activeAcc, threadId, threadType, opts, cmd, jsonMode }) {
|
|
589
|
+
let since = null;
|
|
590
|
+
let until = null;
|
|
591
|
+
try {
|
|
592
|
+
if (opts.last !== undefined) since = parsePeriod(opts.last);
|
|
593
|
+
else if (opts.since !== undefined) since = parseDateBound(opts.since, "start");
|
|
594
|
+
if (opts.until !== undefined) until = parseDateBound(opts.until, "end");
|
|
595
|
+
} catch (e) {
|
|
596
|
+
error(e.message);
|
|
597
|
+
process.exit(1);
|
|
598
|
+
}
|
|
599
|
+
if (since !== null && until !== null && since > until) {
|
|
600
|
+
error("--since is after --until.");
|
|
601
|
+
process.exit(1);
|
|
602
|
+
}
|
|
603
|
+
const cap = cmd?.getOptionValueSource?.("limit") === "cli" ? Number(opts.limit) : Infinity;
|
|
604
|
+
|
|
605
|
+
try {
|
|
606
|
+
initDb(join(getAccountDir(activeAcc.ownId), "zalo.db"));
|
|
607
|
+
} catch (e) {
|
|
608
|
+
error(`The local cache could not be opened: ${e.message}`);
|
|
609
|
+
process.exit(1);
|
|
610
|
+
}
|
|
611
|
+
const { rows: kept, hasMore } = getAllMessagesInRange(threadId, { since, until, cap });
|
|
612
|
+
|
|
613
|
+
const messages = await withCurrentSenderNames(
|
|
614
|
+
api,
|
|
615
|
+
kept.map((m) => ({
|
|
616
|
+
msgId: m.msgId,
|
|
617
|
+
threadId: m.threadId,
|
|
618
|
+
senderId: m.senderId,
|
|
619
|
+
senderName: m.senderName,
|
|
620
|
+
text: m.text,
|
|
621
|
+
timestamp: m.timestamp,
|
|
622
|
+
type: m.type,
|
|
623
|
+
mediaCached: Boolean(m.localPath),
|
|
624
|
+
})),
|
|
625
|
+
threadType === 0 ? [threadId] : [],
|
|
626
|
+
);
|
|
627
|
+
const when = (t) => (t === null ? "…" : new Date(t).toLocaleString());
|
|
628
|
+
output(
|
|
629
|
+
{
|
|
630
|
+
threadId,
|
|
631
|
+
threadType: threadType === 0 ? "dm" : "group",
|
|
632
|
+
source: "sqlite",
|
|
633
|
+
since,
|
|
634
|
+
until,
|
|
635
|
+
count: messages.length,
|
|
636
|
+
hasMore,
|
|
637
|
+
messages,
|
|
638
|
+
},
|
|
639
|
+
jsonMode,
|
|
640
|
+
() => {
|
|
641
|
+
success(`${messages.length} message(s) from ${threadId}, ${when(since)} to ${when(until)} (local cache)`);
|
|
642
|
+
for (const m of messages) {
|
|
643
|
+
const date = m.timestamp ? new Date(m.timestamp).toLocaleString() : "?";
|
|
644
|
+
const name = m.senderDisplayName || m.senderId || "?";
|
|
645
|
+
const mediaInfo = m.mediaCached ? ` [Media: zalo-agent msg media ${m.msgId}]` : "";
|
|
646
|
+
console.log(` [${date}] ${name}: ${(m.text || "").slice(0, 200)}${mediaInfo}`);
|
|
647
|
+
}
|
|
648
|
+
if (hasMore)
|
|
649
|
+
info(`More messages are in this period: raise -n, or run again with --since after the last one.`);
|
|
650
|
+
if (messages.length === 0) {
|
|
651
|
+
info(
|
|
652
|
+
"Nothing cached in this period. Zalo's server serves only messages since this login; restore older ones with `zalo-agent sync`.",
|
|
653
|
+
);
|
|
654
|
+
}
|
|
655
|
+
},
|
|
656
|
+
);
|
|
657
|
+
}
|
|
658
|
+
|
|
659
|
+
/** The msg subcommands that send into the thread named by their first argument. */
|
|
660
|
+
const GONE_CHECKED_SENDS = new Set([
|
|
661
|
+
"send",
|
|
662
|
+
"send-image",
|
|
663
|
+
"send-file",
|
|
664
|
+
"send-card",
|
|
665
|
+
"send-bank",
|
|
666
|
+
"send-qr-transfer",
|
|
667
|
+
"sticker",
|
|
668
|
+
"send-voice",
|
|
669
|
+
"send-link",
|
|
670
|
+
"send-video",
|
|
671
|
+
]);
|
|
672
|
+
|
|
547
673
|
export function registerMsgCommands(program) {
|
|
548
674
|
const msg = program.command("msg").description("Send and manage messages");
|
|
549
675
|
|
|
676
|
+
registerMsgSearch(msg, program);
|
|
677
|
+
registerMsgMedia(msg, program);
|
|
678
|
+
|
|
550
679
|
// `me` (or the own uid) as a thread argument means My Documents, a 1-1
|
|
551
680
|
// thread of its own -- see src/utils/my-documents.js. Resolved once, here,
|
|
552
681
|
// for every msg subcommand that takes a threadId. Runs after the program's
|
|
@@ -561,6 +690,15 @@ export function registerMsgCommands(program) {
|
|
|
561
690
|
process.exit(1);
|
|
562
691
|
}
|
|
563
692
|
if (out?.notice) info(out.notice);
|
|
693
|
+
// A group this account left, was removed or blocked from, or that was disbanded: refused here with why,
|
|
694
|
+
// not at the server (src/core/group-exit.js).
|
|
695
|
+
if (GONE_CHECKED_SENDS.has(actionCommand.name()) && openAccountDb()) {
|
|
696
|
+
const why = sendRefusal(String(actionCommand.args?.[0] ?? ""));
|
|
697
|
+
if (why) {
|
|
698
|
+
error(why);
|
|
699
|
+
process.exit(1);
|
|
700
|
+
}
|
|
701
|
+
}
|
|
564
702
|
});
|
|
565
703
|
|
|
566
704
|
msg.command("send <threadId> <message>")
|
|
@@ -645,7 +783,7 @@ export function registerMsgCommands(program) {
|
|
|
645
783
|
styles = shiftStyles(styles, expanded.edits);
|
|
646
784
|
const mentions = [...parseMentionSpecs(opts.mention), ...expanded.mentions];
|
|
647
785
|
|
|
648
|
-
//
|
|
786
|
+
// The session drops mentions outside a group, so a `-t 0` send would
|
|
649
787
|
// quietly arrive with the names as plain text and nobody tagged.
|
|
650
788
|
if (mentions.length > 0 && Number(opts.type) !== 1) {
|
|
651
789
|
warning("Mentions only apply to group messages — pass -t 1 to tag anyone.");
|
|
@@ -653,7 +791,7 @@ export function registerMsgCommands(program) {
|
|
|
653
791
|
|
|
654
792
|
let quote;
|
|
655
793
|
if (opts.quote) {
|
|
656
|
-
const built = buildQuote(cached ?
|
|
794
|
+
const built = buildQuote(cached ? getMessageForAction(opts.quote) : null, {
|
|
657
795
|
msgId: opts.quote,
|
|
658
796
|
threadId,
|
|
659
797
|
});
|
|
@@ -677,11 +815,11 @@ export function registerMsgCommands(program) {
|
|
|
677
815
|
}
|
|
678
816
|
|
|
679
817
|
// Build message content. `urgency` is 1 (important) or 2
|
|
680
|
-
// (urgent);
|
|
681
|
-
// object Zalo
|
|
818
|
+
// (urgent); the session turns it into the `metaData: {urgency}`
|
|
819
|
+
// object Zalo sends, on every text endpoint.
|
|
682
820
|
//
|
|
683
821
|
// Zalo refuses one oversized message (114 plain, 112 styled), so
|
|
684
|
-
// a long text goes out as
|
|
822
|
+
// a long text goes out as Zalo sends it: split at 3000 bytes of
|
|
685
823
|
// text plus styles, in order, 300 ms apart. The quote and the
|
|
686
824
|
// urgency belong to the first part only.
|
|
687
825
|
const urgency = opts.urgency;
|
|
@@ -703,7 +841,9 @@ export function registerMsgCommands(program) {
|
|
|
703
841
|
const answers = await sendParts(parts, (part, index) =>
|
|
704
842
|
getApi().sendMessage(contentOf(part, index), threadId, Number(opts.type)),
|
|
705
843
|
);
|
|
706
|
-
|
|
844
|
+
// Zalo answers a send with the message's ids; an empty answer must not crash the report of a send
|
|
845
|
+
// that went out (src/utils/output.js jsonReply).
|
|
846
|
+
const result = answers[0] || { success: true, threadId };
|
|
707
847
|
if (parts.length > 1) {
|
|
708
848
|
result.splitInto = parts.length;
|
|
709
849
|
result.parts = answers.map((r) => ({
|
|
@@ -712,13 +852,11 @@ export function registerMsgCommands(program) {
|
|
|
712
852
|
}));
|
|
713
853
|
}
|
|
714
854
|
|
|
715
|
-
// The cliMsgId comes back from
|
|
716
|
-
// clientId it actually put on the wire
|
|
717
|
-
// — upstream stamps `params.clientId = Date.now()` inside
|
|
718
|
-
// handleMessage() and returns only {msgId}).
|
|
855
|
+
// The cliMsgId comes back from the send, which hands over the
|
|
856
|
+
// clientId it actually put on the wire.
|
|
719
857
|
//
|
|
720
858
|
// This used to be a second `Date.now()` read here, taken before
|
|
721
|
-
// the call. That is a different number from the one
|
|
859
|
+
// the call. That is a different number from the one the send put on the wire,
|
|
722
860
|
// by however long the AES encrypt and the POST took — usually
|
|
723
861
|
// 0-2ms, never guaranteed equal. So every id `send --json`
|
|
724
862
|
// printed was a near-miss, and all three things that key on it
|
|
@@ -737,10 +875,9 @@ export function registerMsgCommands(program) {
|
|
|
737
875
|
|
|
738
876
|
if (result.message && !cliMsgId) {
|
|
739
877
|
warning(
|
|
740
|
-
"Zalo returned no cliMsgId for this send, so none is reported
|
|
741
|
-
"
|
|
742
|
-
"
|
|
743
|
-
"Zalo echo the message back.",
|
|
878
|
+
"Zalo returned no cliMsgId for this send, so none is reported. " +
|
|
879
|
+
"`msg react`/`msg undo`/`msg send --quote` need one; the local cache gets the " +
|
|
880
|
+
"real value once `listen` or `sync` sees Zalo echo the message back.",
|
|
744
881
|
);
|
|
745
882
|
}
|
|
746
883
|
|
|
@@ -749,8 +886,7 @@ export function registerMsgCommands(program) {
|
|
|
749
886
|
// addReaction needs the message's real cliMsgId — with the
|
|
750
887
|
// msgId in its place Zalo accepts the call and the
|
|
751
888
|
// reaction never shows up. It used to fall back to exactly
|
|
752
|
-
// that
|
|
753
|
-
// now the reaction is skipped and the way to add it later
|
|
889
|
+
// that whenever a send came back without one; now the reaction is skipped and the way to add it later
|
|
754
890
|
// is named. The message itself has already gone out.
|
|
755
891
|
//
|
|
756
892
|
// Exit status stays 0: the send succeeded, and a caller
|
|
@@ -1025,15 +1161,61 @@ export function registerMsgCommands(program) {
|
|
|
1025
1161
|
}
|
|
1026
1162
|
});
|
|
1027
1163
|
|
|
1028
|
-
msg.command("send-video <threadId> <
|
|
1029
|
-
.description("Send a video from URL")
|
|
1030
|
-
.requiredOption("--thumb <
|
|
1164
|
+
msg.command("send-video <threadId> <video>")
|
|
1165
|
+
.description("Send a video from a URL, or a local file uploaded in chunks and sent as a video as Zalo does")
|
|
1166
|
+
.requiredOption("--thumb <urlOrFile>", "Thumbnail: an image URL, or a local jpg/png/webp (uploaded)")
|
|
1031
1167
|
.option("-t, --type <n>", "Thread type: 0=User, 1=Group", "0")
|
|
1032
1168
|
.option("-m, --caption <text>", "Caption text", "")
|
|
1033
1169
|
.option("-d, --duration <ms>", "Video duration in milliseconds", parseIntOption)
|
|
1034
1170
|
.option("-W, --width <px>", "Video width", parseIntOption, 1280)
|
|
1035
1171
|
.option("-H, --height <px>", "Video height", parseIntOption, 720)
|
|
1172
|
+
.option("--upload-timeout <ms>", "Max wait for the upload-complete event (a local file)", "120000")
|
|
1036
1173
|
.action(async (threadId, videoUrl, opts) => {
|
|
1174
|
+
if (!/^https?:\/\//i.test(videoUrl)) {
|
|
1175
|
+
// A local file: uploaded on the account's socket (or the running daemon's), then sent as a video.
|
|
1176
|
+
const file = resolve(videoUrl);
|
|
1177
|
+
if (!existsSync(file)) {
|
|
1178
|
+
error(`Send video failed: ${videoUrl} is neither an http(s) URL nor a file here`);
|
|
1179
|
+
process.exitCode = 1;
|
|
1180
|
+
return;
|
|
1181
|
+
}
|
|
1182
|
+
const thumbIsUrl = /^https?:\/\//i.test(opts.thumb);
|
|
1183
|
+
const video = {
|
|
1184
|
+
...(thumbIsUrl ? { thumbnailUrl: opts.thumb } : { thumbnailFile: resolve(opts.thumb) }),
|
|
1185
|
+
width: opts.width,
|
|
1186
|
+
height: opts.height,
|
|
1187
|
+
duration: opts.duration,
|
|
1188
|
+
};
|
|
1189
|
+
const {
|
|
1190
|
+
result,
|
|
1191
|
+
error: err,
|
|
1192
|
+
listenerStarted,
|
|
1193
|
+
viaDaemon,
|
|
1194
|
+
oldDaemon,
|
|
1195
|
+
} = await sendAttachments(getApi(), [file], threadId, Number(opts.type), opts, video);
|
|
1196
|
+
if (err) error(`Send video failed: ${err}`);
|
|
1197
|
+
else {
|
|
1198
|
+
if (oldDaemon) {
|
|
1199
|
+
warning(
|
|
1200
|
+
"The running daemon predates video sends: it sent the file as a file attachment. " +
|
|
1201
|
+
"Restart it to send videos as videos.",
|
|
1202
|
+
);
|
|
1203
|
+
}
|
|
1204
|
+
output({ ...result, viaDaemon: Boolean(viaDaemon), verified: false }, program.opts().json, () =>
|
|
1205
|
+
success(`Video sent to ${threadId}${viaDaemon ? " (via the running daemon)" : ""}`),
|
|
1206
|
+
);
|
|
1207
|
+
}
|
|
1208
|
+
if (listenerStarted) process.exit(err ? 1 : 0);
|
|
1209
|
+
else if (err) process.exitCode = 1;
|
|
1210
|
+
return;
|
|
1211
|
+
}
|
|
1212
|
+
// A URL video is sent by reference, so its thumbnail must be a URL too
|
|
1213
|
+
// (a local path would reach Zalo as a broken link). zalo_send_message refuses the same.
|
|
1214
|
+
if (!/^https?:\/\//i.test(opts.thumb)) {
|
|
1215
|
+
error("Send video failed: with a video URL, --thumb must be an image URL too");
|
|
1216
|
+
process.exitCode = 1;
|
|
1217
|
+
return;
|
|
1218
|
+
}
|
|
1037
1219
|
try {
|
|
1038
1220
|
info(`Sending video: ${videoUrl}`);
|
|
1039
1221
|
const result = await getApi().sendVideo(
|
|
@@ -1103,7 +1285,7 @@ export function registerMsgCommands(program) {
|
|
|
1103
1285
|
)
|
|
1104
1286
|
.action(async (msgId, threadId, reaction, opts) => {
|
|
1105
1287
|
try {
|
|
1106
|
-
//
|
|
1288
|
+
// The session's addReaction(icon, dest) — dest needs msgId + cliMsgId.
|
|
1107
1289
|
// The cliMsgId used to fall back to the msgId, which Zalo
|
|
1108
1290
|
// accepts and never displays. Resolved before getApi(), so an
|
|
1109
1291
|
// uncached message is refused without touching the network.
|
|
@@ -1141,7 +1323,7 @@ export function registerMsgCommands(program) {
|
|
|
1141
1323
|
try {
|
|
1142
1324
|
const type = Number(opts.type);
|
|
1143
1325
|
|
|
1144
|
-
//
|
|
1326
|
+
// The session takes deleteMessage(dest, onlyMe) where dest is
|
|
1145
1327
|
// {data: {cliMsgId, msgId, uidFrom}, threadId, type} — NOT
|
|
1146
1328
|
// (msgId, threadId, type), which is what this used to pass.
|
|
1147
1329
|
// That shape put a bare string where `dest` belongs, so every
|
|
@@ -1198,11 +1380,10 @@ export function registerMsgCommands(program) {
|
|
|
1198
1380
|
// only ever necessary for a message this machine never saw.
|
|
1199
1381
|
//
|
|
1200
1382
|
// `send --json` is a valid source again. It used to print a
|
|
1201
|
-
// second Date.now() of its own --
|
|
1202
|
-
// clientId
|
|
1203
|
-
//
|
|
1204
|
-
//
|
|
1205
|
-
// that value or none at all.
|
|
1383
|
+
// second Date.now() of its own -- the send stamps the real
|
|
1384
|
+
// clientId just before the request -- so the id it gave matched
|
|
1385
|
+
// only by luck. The send now hands that clientId back, and
|
|
1386
|
+
// `msg send` reports that value or none at all.
|
|
1206
1387
|
//
|
|
1207
1388
|
// The resolution is shared with `zalo_undo`
|
|
1208
1389
|
// (src/core/cached-message.js). The refusal exits 0 here, as
|
|
@@ -1215,8 +1396,15 @@ export function registerMsgCommands(program) {
|
|
|
1215
1396
|
error(target.error);
|
|
1216
1397
|
return;
|
|
1217
1398
|
}
|
|
1218
|
-
|
|
1219
|
-
const
|
|
1399
|
+
// A group recall carries the group's own visibility, as Zalo's does (src/zalo/custom/group-visibility.js).
|
|
1400
|
+
const api = getApi();
|
|
1401
|
+
const payload = await undoPayload(
|
|
1402
|
+
api,
|
|
1403
|
+
{ msgId, cliMsgId: target.cliMsgId },
|
|
1404
|
+
threadId,
|
|
1405
|
+
Number(opts.type),
|
|
1406
|
+
);
|
|
1407
|
+
const result = await api.undo(payload, threadId, Number(opts.type));
|
|
1220
1408
|
output(result, program.opts().json, () => success("Message recalled (undone)"));
|
|
1221
1409
|
} catch (e) {
|
|
1222
1410
|
error(`Undo failed: ${e.message}`);
|
|
@@ -1230,14 +1418,14 @@ export function registerMsgCommands(program) {
|
|
|
1230
1418
|
)
|
|
1231
1419
|
.option("-t, --type <n>", "Thread type: 0=User, 1=Group", "0")
|
|
1232
1420
|
.action(async (msgId, threadId, opts) => {
|
|
1233
|
-
// This command could never have worked.
|
|
1421
|
+
// This command could never have worked. The previous engine took
|
|
1234
1422
|
// `forwardMessage(payload, threadIds, type)` where payload is
|
|
1235
1423
|
// `{ message: string }` and threadIds is an ARRAY; the old call
|
|
1236
1424
|
// passed the msgId string as the payload and a bare string as the
|
|
1237
1425
|
// thread list. `if (!payload.message) throw` fires on the first
|
|
1238
1426
|
// line of the API, so every invocation died with "Missing message
|
|
1239
1427
|
// content" before touching the network -- identically for -t 0 and
|
|
1240
|
-
// -t 1, for every message type. The
|
|
1428
|
+
// -t 1, for every message type. The api-surface test did not
|
|
1241
1429
|
// catch it because the method does exist; only its arity was wrong.
|
|
1242
1430
|
const jsonMode = program.opts().json;
|
|
1243
1431
|
const activeAcc = getActive();
|
|
@@ -1249,10 +1437,12 @@ export function registerMsgCommands(program) {
|
|
|
1249
1437
|
let row;
|
|
1250
1438
|
try {
|
|
1251
1439
|
initDb(getAccountDbPath(activeAcc.ownId));
|
|
1252
|
-
row =
|
|
1440
|
+
row = getMessageForAction(msgId);
|
|
1253
1441
|
} catch (e) {
|
|
1254
1442
|
error(
|
|
1255
|
-
|
|
1443
|
+
e?.code === "ROW_MAC"
|
|
1444
|
+
? e.message
|
|
1445
|
+
: `Local cache unavailable (${e.message}). Run \`zalo-agent listen\` or \`zalo-agent sync\` first.`,
|
|
1256
1446
|
);
|
|
1257
1447
|
process.exit(1);
|
|
1258
1448
|
}
|
|
@@ -1302,12 +1492,22 @@ export function registerMsgCommands(program) {
|
|
|
1302
1492
|
info("Fetch it first: zalo-agent sync-media -T <threadId>");
|
|
1303
1493
|
process.exit(1);
|
|
1304
1494
|
}
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1495
|
+
// The cached copy is sealed: the upload takes a path, so it gets a private decrypted copy for the
|
|
1496
|
+
// length of the send (0600, its own folder, deleted in finally): src/core/media-deliver.js.
|
|
1497
|
+
const copy = decryptToTempfile(resolve(row.localPath), scopeOf(activeAcc.ownId), {
|
|
1498
|
+
msgId: row.msgId,
|
|
1499
|
+
ttlMs: 0,
|
|
1308
1500
|
});
|
|
1309
|
-
|
|
1310
|
-
|
|
1501
|
+
try {
|
|
1502
|
+
const out = await sendAttachments(api, [copy.path], threadId, threadType, {
|
|
1503
|
+
caption: "",
|
|
1504
|
+
uploadTimeout: 120000,
|
|
1505
|
+
});
|
|
1506
|
+
if (out.error) throw new Error(out.error);
|
|
1507
|
+
return out.result;
|
|
1508
|
+
} finally {
|
|
1509
|
+
removeMediaTemp(copy);
|
|
1510
|
+
}
|
|
1311
1511
|
};
|
|
1312
1512
|
|
|
1313
1513
|
const forwarders = {
|
|
@@ -1319,27 +1519,12 @@ export function registerMsgCommands(program) {
|
|
|
1319
1519
|
link: async () => api.sendLink({ link: c?.href }, threadId, threadType),
|
|
1320
1520
|
// sendVideo wants the geometry too; Zalo rejects the call with
|
|
1321
1521
|
// code 114 when duration/width/height are missing. They live in
|
|
1322
|
-
// the payload's `params` blob, not as top-level fields.
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
/* geometry falls back to the defaults below */
|
|
1329
|
-
}
|
|
1330
|
-
return api.sendVideo(
|
|
1331
|
-
{
|
|
1332
|
-
videoUrl: c?.href,
|
|
1333
|
-
thumbnailUrl: c?.thumb || "",
|
|
1334
|
-
duration: Number(p.duration) || 0,
|
|
1335
|
-
width: Number(p.video_width || p.video_original_width) || 1280,
|
|
1336
|
-
height: Number(p.video_height || p.video_original_height) || 720,
|
|
1337
|
-
},
|
|
1338
|
-
threadId,
|
|
1339
|
-
threadType,
|
|
1340
|
-
);
|
|
1341
|
-
},
|
|
1342
|
-
voice: async () => api.sendVoice({ voiceUrl: c?.href }, threadId, threadType),
|
|
1522
|
+
// the payload's `params` blob, not as top-level fields. A size
|
|
1523
|
+
// the cache knows (params, or the downloaded copy) spares the
|
|
1524
|
+
// HEAD to the CDN; one it does not know is bounded.
|
|
1525
|
+
video: async () =>
|
|
1526
|
+
api.sendVideo(videoResendOptions(c, mediaPlainSize(row.localPath)), threadId, threadType),
|
|
1527
|
+
voice: async () => api.sendVoice(voiceResendOptions(c), threadId, threadType),
|
|
1343
1528
|
photo: resendLocal,
|
|
1344
1529
|
file: resendLocal,
|
|
1345
1530
|
gif: resendLocal,
|
|
@@ -1375,8 +1560,8 @@ export function registerMsgCommands(program) {
|
|
|
1375
1560
|
// message. Without it the copy arrives as plain text with no
|
|
1376
1561
|
// "forwarded" badge, which is all this command used to send. The
|
|
1377
1562
|
// reference id is md5(cliMsgId + senderUid + conversationKey),
|
|
1378
|
-
// derived the way Zalo
|
|
1379
|
-
// the derivation
|
|
1563
|
+
// derived the way Zalo derives it -- src/zalo/custom/forward.js has
|
|
1564
|
+
// the derivation. Refuse rather than
|
|
1380
1565
|
// send a reference built from a guess.
|
|
1381
1566
|
const source = await forwardSource(api, row);
|
|
1382
1567
|
if (source.error) {
|
|
@@ -1409,8 +1594,8 @@ export function registerMsgCommands(program) {
|
|
|
1409
1594
|
// `sent` shape send-image and send-file report. The forward
|
|
1410
1595
|
// call mints ONE clientId for the whole call; Zalo echoes it
|
|
1411
1596
|
// per target as `clientId`, and sendForward reports it at the
|
|
1412
|
-
// top level as `cliMsgId` (as
|
|
1413
|
-
//
|
|
1597
|
+
// top level as `cliMsgId` (as every send of the session does)
|
|
1598
|
+
// -- neither spot alone gives a
|
|
1414
1599
|
// caller the {msgId, cliMsgId} pair that `msg undo` needs.
|
|
1415
1600
|
// Tier 4 hit exactly that: it recorded the forwarded msgId
|
|
1416
1601
|
// with a null id and could not recall the message.
|
|
@@ -1439,7 +1624,7 @@ export function registerMsgCommands(program) {
|
|
|
1439
1624
|
// Everything the pin carries -- cliMsgId, sender, text -- comes
|
|
1440
1625
|
// from the cached row, so every refusal below happens before
|
|
1441
1626
|
// any request.
|
|
1442
|
-
const row = openAccountDb() ?
|
|
1627
|
+
const row = openAccountDb() ? getMessageForAction(msgId) : null;
|
|
1443
1628
|
if (!row) {
|
|
1444
1629
|
refuse(
|
|
1445
1630
|
`Message ${msgId} is not in the local cache, so it cannot be pinned: a pin carries the ` +
|
|
@@ -1498,7 +1683,7 @@ export function registerMsgCommands(program) {
|
|
|
1498
1683
|
// Unpinning takes the pin's topic id, which comes from the
|
|
1499
1684
|
// conversation's live pin list -- so only the conversation has
|
|
1500
1685
|
// to be known, not the message.
|
|
1501
|
-
const row = openAccountDb() ?
|
|
1686
|
+
const row = openAccountDb() ? getMessageForAction(msgId) : null;
|
|
1502
1687
|
if (threadId && row?.threadId && String(row.threadId) !== String(threadId)) {
|
|
1503
1688
|
refuse(`Message ${msgId} belongs to thread ${row.threadId}, not ${threadId}.`);
|
|
1504
1689
|
return;
|
|
@@ -1524,19 +1709,49 @@ export function registerMsgCommands(program) {
|
|
|
1524
1709
|
});
|
|
1525
1710
|
|
|
1526
1711
|
msg.command("history <threadId>")
|
|
1527
|
-
.description(
|
|
1712
|
+
.description(
|
|
1713
|
+
"A conversation's history: everything cached, or for a group not cached yet, Zalo's group message store " +
|
|
1714
|
+
"paged back until it has nothing older. A DM has no server history (as in Zalo): the cache, " +
|
|
1715
|
+
"plus the socket's old-message scan only with --scan",
|
|
1716
|
+
)
|
|
1528
1717
|
.option("-t, --type <n>", "Thread type: 0=User(DM), 1=Group", "0")
|
|
1529
|
-
.option("-n, --limit <n>", "
|
|
1530
|
-
.option(
|
|
1718
|
+
.option("-n, --limit <n>", "Only the most recent N messages (default: all of them)")
|
|
1719
|
+
.option(
|
|
1720
|
+
"--scan [n]",
|
|
1721
|
+
"Also scan the socket's old-message stream (a DM, or a group whose store failed), at most n raw messages (default 2000)",
|
|
1722
|
+
)
|
|
1531
1723
|
.option("--from-msg-id <id>", "Anchor message ID to scan older messages from")
|
|
1532
1724
|
.option("--timeout <ms>", "Timeout in milliseconds waiting for response", "15000")
|
|
1533
1725
|
.option("--no-cache", "Force live fetch instead of using local cache, and amend db")
|
|
1534
|
-
.
|
|
1726
|
+
.option(
|
|
1727
|
+
"--since <date>",
|
|
1728
|
+
"Every cached message from this date (YYYY-MM-DD, or a date and time), oldest first; -n caps it only when given",
|
|
1729
|
+
)
|
|
1730
|
+
.option("--until <date>", "Every cached message up to this date (YYYY-MM-DD: through the end of that day)")
|
|
1731
|
+
.option("--last <period>", "Every cached message of the last period: 12h, 7d, 2w, 3m, 1y (replaces --since)")
|
|
1732
|
+
.option(
|
|
1733
|
+
"--include-hidden",
|
|
1734
|
+
"Allow a hidden conversation: asks for the hidden-chat PIN (never pass it on the command line)",
|
|
1735
|
+
)
|
|
1736
|
+
.option("--pin-stdin", "Read the hidden-chat PIN from standard input instead of a prompt")
|
|
1737
|
+
.action(async (threadId, opts, cmd) => {
|
|
1535
1738
|
const jsonMode = program.opts().json;
|
|
1536
1739
|
const threadType = Number(opts.type);
|
|
1537
|
-
|
|
1740
|
+
// No -n: everything. Given: that many of the most recent.
|
|
1741
|
+
const limit = opts.limit === undefined ? Infinity : Number(opts.limit);
|
|
1742
|
+
if (!(limit >= 1)) {
|
|
1743
|
+
error("-n/--limit needs a number of at least 1.");
|
|
1744
|
+
process.exit(1);
|
|
1745
|
+
}
|
|
1538
1746
|
const timeout = Number(opts.timeout);
|
|
1539
|
-
|
|
1747
|
+
// The socket scan is opt-in: `--scan` alone bounds it at 2000 raw messages, `--scan <n>` at n.
|
|
1748
|
+
const scanLimit = opts.scan === undefined ? 0 : opts.scan === true ? 2000 : Number(opts.scan);
|
|
1749
|
+
if (opts.scan !== undefined && !(scanLimit >= 1)) {
|
|
1750
|
+
error("--scan needs a number of at least 1.");
|
|
1751
|
+
process.exit(1);
|
|
1752
|
+
}
|
|
1753
|
+
/** SQLite's "no limit" for the cache reads. */
|
|
1754
|
+
const rowLimit = Number.isFinite(limit) ? limit : -1;
|
|
1540
1755
|
|
|
1541
1756
|
// Order matters: getApi() throws when there is no session, and
|
|
1542
1757
|
// this line sits outside any try/catch. Calling it ABOVE the
|
|
@@ -1557,6 +1772,22 @@ export function registerMsgCommands(program) {
|
|
|
1557
1772
|
process.exit(1);
|
|
1558
1773
|
}
|
|
1559
1774
|
|
|
1775
|
+
// A hidden chat's history is shown only with --include-hidden and the PIN, as Zalo opens one.
|
|
1776
|
+
const hidden = await hiddenAccess(opts, { ownId: activeAcc.ownId, api, json: jsonMode });
|
|
1777
|
+
if (hidden.mode !== "include" && hidden.set.isHidden(threadId)) {
|
|
1778
|
+
const why =
|
|
1779
|
+
`Not shown: ${threadId} is one of the account's hidden chats. Run again with --include-hidden ` +
|
|
1780
|
+
"and type the PIN at the prompt (or --pin-stdin).";
|
|
1781
|
+
if (jsonMode) console.log(JSON.stringify({ error: why, hidden: true, pinRequired: true }, null, 2));
|
|
1782
|
+
else error(why);
|
|
1783
|
+
process.exit(2);
|
|
1784
|
+
}
|
|
1785
|
+
|
|
1786
|
+
if (opts.since !== undefined || opts.until !== undefined || opts.last !== undefined) {
|
|
1787
|
+
await showHistoryRange({ api, activeAcc, threadId, threadType, opts, cmd, jsonMode });
|
|
1788
|
+
return;
|
|
1789
|
+
}
|
|
1790
|
+
|
|
1560
1791
|
if (!jsonMode) {
|
|
1561
1792
|
info(
|
|
1562
1793
|
"Note: To maintain a complete local cache without missing gaps, ensure the 'zalo-cli listen' daemon is running continuously on this device.",
|
|
@@ -1572,8 +1803,12 @@ export function registerMsgCommands(program) {
|
|
|
1572
1803
|
dbActive = true;
|
|
1573
1804
|
|
|
1574
1805
|
if (opts.cache !== false) {
|
|
1575
|
-
localMsgs = getMessages(threadId,
|
|
1576
|
-
|
|
1806
|
+
localMsgs = getMessages(threadId, rowLimit);
|
|
1807
|
+
// The cache answers when it holds what was asked for: -n messages, or with no -n whatever it
|
|
1808
|
+
// has. A DM always answers from the cache unless --scan asks for the socket scan: Zalo keeps no
|
|
1809
|
+
// 1-1 history a client can page.
|
|
1810
|
+
const enough = Number.isFinite(limit) ? localMsgs.length >= limit : localMsgs.length > 0;
|
|
1811
|
+
if (localMsgs && (enough || (threadType === 0 && !scanLimit))) {
|
|
1577
1812
|
if (!jsonMode) info(`Found ${localMsgs.length} messages in local cache.`);
|
|
1578
1813
|
// Fetch through the shared downloader, which writes to
|
|
1579
1814
|
// accounts/<ownId>/media/<threadName>/ and records the
|
|
@@ -1587,10 +1822,10 @@ export function registerMsgCommands(program) {
|
|
|
1587
1822
|
api,
|
|
1588
1823
|
accountDir,
|
|
1589
1824
|
threadId,
|
|
1590
|
-
limit,
|
|
1825
|
+
limit: rowLimit,
|
|
1591
1826
|
concurrency: 2,
|
|
1592
1827
|
});
|
|
1593
|
-
localMsgs = getMessages(threadId,
|
|
1828
|
+
localMsgs = getMessages(threadId, rowLimit);
|
|
1594
1829
|
} catch {
|
|
1595
1830
|
/* showing history must not fail because media did */
|
|
1596
1831
|
}
|
|
@@ -1604,7 +1839,7 @@ export function registerMsgCommands(program) {
|
|
|
1604
1839
|
text: m.text,
|
|
1605
1840
|
timestamp: m.timestamp,
|
|
1606
1841
|
type: m.type,
|
|
1607
|
-
|
|
1842
|
+
mediaCached: Boolean(m.localPath),
|
|
1608
1843
|
})),
|
|
1609
1844
|
threadType === 0 ? [threadId] : [],
|
|
1610
1845
|
);
|
|
@@ -1615,24 +1850,34 @@ export function registerMsgCommands(program) {
|
|
|
1615
1850
|
threadType: threadType === 0 ? "dm" : "group",
|
|
1616
1851
|
count: messages.length,
|
|
1617
1852
|
source: "sqlite",
|
|
1853
|
+
...(threadType === 0 &&
|
|
1854
|
+
!scanLimit && {
|
|
1855
|
+
note:
|
|
1856
|
+
"Zalo keeps no server history for a 1-1 conversation; this is the local " +
|
|
1857
|
+
"cache. --scan also scans the socket's old-message stream.",
|
|
1858
|
+
}),
|
|
1618
1859
|
messages,
|
|
1619
1860
|
},
|
|
1620
1861
|
jsonMode,
|
|
1621
1862
|
() => {
|
|
1622
1863
|
success(`${messages.length} message(s) from ${threadId} (Local Cache)`);
|
|
1864
|
+
if (threadType === 0 && !scanLimit && !messages.length) {
|
|
1865
|
+
info(
|
|
1866
|
+
"Zalo keeps no server history for a 1-1 conversation. `--scan` also scans " +
|
|
1867
|
+
"the socket's old-message stream; `zalo-agent sync` restores from the phone.",
|
|
1868
|
+
);
|
|
1869
|
+
}
|
|
1623
1870
|
for (const m of messages) {
|
|
1624
1871
|
const date = m.timestamp ? new Date(m.timestamp).toLocaleString() : "?";
|
|
1625
1872
|
const name = m.senderDisplayName || m.senderId || "?";
|
|
1626
|
-
const mediaInfo = m.
|
|
1873
|
+
const mediaInfo = m.mediaCached ? ` [Media: zalo-agent msg media ${m.msgId}]` : "";
|
|
1627
1874
|
console.log(` [${date}] ${name}: ${(m.text || "").slice(0, 200)}${mediaInfo}`);
|
|
1628
1875
|
}
|
|
1629
1876
|
},
|
|
1630
1877
|
);
|
|
1631
1878
|
return;
|
|
1632
1879
|
} else if (localMsgs && localMsgs.length > 0 && !jsonMode) {
|
|
1633
|
-
info(
|
|
1634
|
-
`Found only ${localMsgs.length} messages in cache. Falling back to live fetch to reach limit of ${limit}.`,
|
|
1635
|
-
);
|
|
1880
|
+
info(`Found only ${localMsgs.length} messages in cache. Fetching live to reach ${limit}.`);
|
|
1636
1881
|
}
|
|
1637
1882
|
} else if (opts.cache === false && !jsonMode) {
|
|
1638
1883
|
info(`--no-cache specified. Fetching live from server and amending database.`);
|
|
@@ -1644,7 +1889,7 @@ export function registerMsgCommands(program) {
|
|
|
1644
1889
|
}
|
|
1645
1890
|
|
|
1646
1891
|
try {
|
|
1647
|
-
if (!jsonMode && limit > 100) {
|
|
1892
|
+
if (!jsonMode && Number.isFinite(limit) && limit > 100) {
|
|
1648
1893
|
info(`Warning: fetching up to ${limit} messages.`);
|
|
1649
1894
|
}
|
|
1650
1895
|
|
|
@@ -1654,7 +1899,13 @@ export function registerMsgCommands(program) {
|
|
|
1654
1899
|
if (e.level === "warn") warning(e.detail);
|
|
1655
1900
|
else info(e.detail);
|
|
1656
1901
|
};
|
|
1657
|
-
|
|
1902
|
+
// No -n crosses the daemon channel as null: "everything". No --scan: no socket scan.
|
|
1903
|
+
const fetchOpts = {
|
|
1904
|
+
limit: Number.isFinite(limit) ? limit : null,
|
|
1905
|
+
...(scanLimit && { scanLimit }),
|
|
1906
|
+
timeoutMs: timeout,
|
|
1907
|
+
fromMsgId: opts.fromMsgId || null,
|
|
1908
|
+
};
|
|
1658
1909
|
|
|
1659
1910
|
// The group store, the WebSocket global stream scanning and the
|
|
1660
1911
|
// cache write after them are one function, fetchAndCacheHistory,
|
|
@@ -1775,7 +2026,7 @@ export function registerMsgCommands(program) {
|
|
|
1775
2026
|
for (const m of cleanResult) {
|
|
1776
2027
|
const date = m.timestamp ? new Date(m.timestamp).toLocaleString() : "?";
|
|
1777
2028
|
const name = m.senderDisplayName || m.senderId || "?";
|
|
1778
|
-
const mediaInfo = m.
|
|
2029
|
+
const mediaInfo = m.mediaCached ? ` [Media: zalo-agent msg media ${m.msgId}]` : "";
|
|
1779
2030
|
console.log(` [${date}] ${name}: ${(m.text || "").slice(0, 200)}${mediaInfo}`);
|
|
1780
2031
|
}
|
|
1781
2032
|
},
|
|
@@ -1792,12 +2043,59 @@ export function registerMsgCommands(program) {
|
|
|
1792
2043
|
});
|
|
1793
2044
|
|
|
1794
2045
|
msg.command("typing <threadId>")
|
|
1795
|
-
.description(
|
|
2046
|
+
.description(
|
|
2047
|
+
'Show the "typing…" indicator in a conversation. Refused for a stranger in a 1-1 conversation when the ' +
|
|
2048
|
+
"friend list is known, as Zalo never sends it there; a one-shot command knows none, so it sends " +
|
|
2049
|
+
"and says so",
|
|
2050
|
+
)
|
|
1796
2051
|
.option("-t, --type <n>", "Thread type: 0=User, 1=Group", "0")
|
|
1797
2052
|
.action(async (threadId, opts) => {
|
|
1798
2053
|
try {
|
|
1799
|
-
|
|
1800
|
-
|
|
2054
|
+
// The same reply as zalo_conversation `typing` (src/core/typing.js).
|
|
2055
|
+
const result = await sendTyping(getApi(), {
|
|
2056
|
+
threadId,
|
|
2057
|
+
type: parseThreadTypeArg(opts.type),
|
|
2058
|
+
ownId: getOwnId(),
|
|
2059
|
+
});
|
|
2060
|
+
output(result, program.opts().json, () => {
|
|
2061
|
+
success("Typing indicator sent");
|
|
2062
|
+
if (result.note) info(result.note);
|
|
2063
|
+
});
|
|
2064
|
+
} catch (e) {
|
|
2065
|
+
error(e.message);
|
|
2066
|
+
}
|
|
2067
|
+
});
|
|
2068
|
+
|
|
2069
|
+
msg.command("seen <threadId> [msgIds...]")
|
|
2070
|
+
.description(
|
|
2071
|
+
"Mark messages seen: one seen receipt for the cached incoming messages named (at most 50), or the newest " +
|
|
2072
|
+
'cached incoming one. The sender sees "Seen" unless your seen status is hidden (profile set ' +
|
|
2073
|
+
"seen-status 0), and Zalo also moves your own read position up to them. `conv read` marks the whole " +
|
|
2074
|
+
"conversation read",
|
|
2075
|
+
)
|
|
2076
|
+
.option("-t, --type <n>", "Thread type: 0=User, 1=Group", "0")
|
|
2077
|
+
.action(async (threadId, msgIds, opts) => {
|
|
2078
|
+
const activeAcc = getActive();
|
|
2079
|
+
if (!activeAcc) {
|
|
2080
|
+
error("No active account. Please login first.");
|
|
2081
|
+
return;
|
|
2082
|
+
}
|
|
2083
|
+
try {
|
|
2084
|
+
initDb(getAccountDbPath(activeAcc.ownId));
|
|
2085
|
+
// The same reply as zalo_conversation `seen` (src/core/receipts.js).
|
|
2086
|
+
const result = await seenMessages(getApi(), {
|
|
2087
|
+
threadId,
|
|
2088
|
+
type: parseThreadTypeArg(opts.type),
|
|
2089
|
+
ownId: activeAcc.ownId,
|
|
2090
|
+
msgIds,
|
|
2091
|
+
});
|
|
2092
|
+
if (!result.success && program.opts().json) process.exitCode = 1;
|
|
2093
|
+
output(result, program.opts().json, () => {
|
|
2094
|
+
if (result.success) success(`Marked ${result.sent} message(s) seen (${result.msgIds.join(", ")})`);
|
|
2095
|
+
else error(result.error);
|
|
2096
|
+
for (const n of result.notSent) info(` ${n.msgId}: ${n.reason}`);
|
|
2097
|
+
if (result.note) info(result.note);
|
|
2098
|
+
});
|
|
1801
2099
|
} catch (e) {
|
|
1802
2100
|
error(e.message);
|
|
1803
2101
|
}
|
|
@@ -1849,4 +2147,10 @@ export function registerMsgCommands(program) {
|
|
|
1849
2147
|
error(`URL scan failed: ${e.message}`);
|
|
1850
2148
|
}
|
|
1851
2149
|
});
|
|
2150
|
+
// Asked about first, as Zalo does: --yes to act, --dry-run to preview (src/core/confirm-guard.js).
|
|
2151
|
+
// `msg pin` is not guarded: Zalo asks only when the pin would replace one, and knowing that takes a read.
|
|
2152
|
+
guardSubcommand(msg, "undo", "msg.undo", { target: (msgId, threadId) => ({ msgId, threadId }) });
|
|
2153
|
+
guardSubcommand(msg, "delete", "msg.delete", {
|
|
2154
|
+
target: (msgId, threadId, opts) => ({ msgId, threadId, everyone: Boolean(opts.everyone) }),
|
|
2155
|
+
});
|
|
1852
2156
|
}
|