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, WaAbPropName, WaAbPropType, WaAbPropValue, WaAbPropValueByName, WaGroupAbPropName, WaGroupAbPropValueByName, and ParsedJid.

Deprecated AB-props aliases

The previous 133-entry hand-maintained table is gone, but the older surface stays exported from zapo-js/protocol as a compatibility view over the vendored catalogue:
  • AB_PROP_CONFIGS — a view over WA_ABPROPS that keeps the historical configCode field name (aliased to code) with literal types preserved.
  • AbPropName / AbPropType / AbPropValue — aliases of WaAbPropName / WaAbPropType / WaAbPropValue. AbPropType now also covers 'float'.
Prefer the Wa* names for new code. The catalogue lookup by wire id is resolveAbPropNameByCode(code).

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 August 1, 2026