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 frozenWA_* objects (the library uses these instead of TypeScript enums). The most commonly used:
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 fromzapo-js/protocol as a compatibility view over the vendored catalogue:
AB_PROP_CONFIGS— a view overWA_ABPROPSthat keeps the historicalconfigCodefield name (aliased tocode) with literal types preserved.AbPropName/AbPropType/AbPropValue— aliases ofWaAbPropName/WaAbPropType/WaAbPropValue.AbPropTypenow also covers'float'.
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 thezapo-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.
