Skip to main content
A JID (Jabber ID) is how WhatsApp addresses every entity. zapo exports a set of helpers to build and classify them, all from the package root:

JID shapes

Building JIDs

Parsing & splitting

Classifying JIDs

Boolean predicates for routing logic:

Constants

The full set of protocol constants is exported as frozen WA_* objects (the library uses these instead of TypeScript enums). The most commonly used:
Associated string-literal types are also exported for annotation: WaPrivacyCategory, WaPrivacySettingName, WaPrivacyValue, WaDisconnectReason, WaLogoutReason, WaConnectionCode, WaStreamErrorCode, WaFailureReasonCode, and ParsedJid.

Message helpers

Two helpers for inspecting and targeting messages, exported from the package root:

Other utilities

Device identity helpers

Two low-level helpers reachable via the zapo-js/protocol subpath — useful when authoring a plugin that needs the same deviceBrowser / deviceOsDisplayName / devicePlatform resolution the client factory and auth client use, so its own payloads agree with the pairing ClientPayload.
Last modified on July 12, 2026