From 8e83e603cda92d22f566f76d27900ead59ffff8c Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 12 Aug 2026 04:25:43 +0000 Subject: [PATCH] docs: add WAIL to the PlatformType -> OtherWebClient mapping whatsapp-rust#1293 regenerated the vendored proto and added a new DeviceProps.PlatformType::WAIL variant, which companion_reg.rs maps to OtherWebClient like the other non-browser platforms. Co-Authored-By: Claude Sonnet 5 Claude-Session: https://claude.ai/code/session_0161XuywK8NYtPdhrNredAXz --- concepts/authentication.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/concepts/authentication.mdx b/concepts/authentication.mdx index b0e73cdd..f67e1a51 100644 --- a/concepts/authentication.mdx +++ b/concepts/authentication.mdx @@ -421,7 +421,7 @@ The proto's `UNKNOWN` (wire `'0'`) is intentionally absent — WA Web never emit #### Mapping from `PlatformType` -`companion_web_client_type_for_platform` maps each `wa::device_props::PlatformType` to a wire variant. Web platforms map to their browser variant (Chrome, Firefox, Edge, etc.). `Desktop` maps to `Electron`. The Android `PlatformType` variants (`AndroidPhone`, `AndroidTablet`, `AndroidAmbiguous`) map to **`Chrome`** — that's what real WA Web on Chrome-Android emits and what the server accepts without attestation. To request the Android letter codes (`'d'`/`'e'`/`'f'`) explicitly, set `PairCodeOptions::platform_id`. iOS, AR/VR, Wear OS, and the proto's `UNKNOWN` collapse to `OtherWebClient`. +`companion_web_client_type_for_platform` maps each `wa::device_props::PlatformType` to a wire variant. Web platforms map to their browser variant (Chrome, Firefox, Edge, etc.). `Desktop` maps to `Electron`. The Android `PlatformType` variants (`AndroidPhone`, `AndroidTablet`, `AndroidAmbiguous`) map to **`Chrome`** — that's what real WA Web on Chrome-Android emits and what the server accepts without attestation. To request the Android letter codes (`'d'`/`'e'`/`'f'`) explicitly, set `PairCodeOptions::platform_id`. iOS, AR/VR, Wear OS, `WAIL`, and the proto's `UNKNOWN` collapse to `OtherWebClient` — the Android letters need attestation this crate cannot produce, and `'0'` is server-rejected. #### `companion_platform_display`