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, 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 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.
