docs(events): document ServerAck event and pre-1.0 payload stability - #396
Conversation
…policy Follow-up to whatsapp-rust#1000 (and the ServerAck event added in #989), which was undocumented. Adds the ServerAck variant to the Event enum listing and a full section describing its fields, using the corrected class: Option<String> shape landed in #1000. Also documents the pre-1.0 event payload stability convention (Option<T> for maybe-absent fields, non-exhaustive destructuring) from the same PR. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Workflows to automatically generate PRs for you. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Warning Review limit reached
Next review available in: 58 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
No issues found across 1 file
Confidence score: 5/5
- Automated review surfaced no issues in the provided summaries.
- No files require special attention.
Auto-approved: Documentation-only: adds docs for ServerAck event and pre-1.0 payload stability policy.
Re-trigger cubic
Addresses Greptile review feedback on #396 — the bare "whatsmeow" name read as an unexplained reference to this Rust library's own API rather than the separate Go project it actually names. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
There was a problem hiding this comment.
0 issues found across 1 file (changes from recent commits).
Auto-approved: Documentation-only change adding ServerAck event docs and stability policy. No code, config, or logic changes; low risk.
Re-trigger cubic
What
Documents the
Event::ServerAckvariant, which was never covered in these docs, and the pre-1.0 event payload stability policy.Why
Follow-up to oxidezap/whatsapp-rust#1000, which changed
ServerAck.classfromStringtoOption<String>and added a stability note to theEventenum doc inwacore/src/types/events.rs. TheServerAckevent itself was introduced earlier in #989 but was never added toconcepts/events.mdx, so consumers had no reference for it at all. This documents it using the final (post-#1000) shape.Changes
concepts/events.mdx:ServerAck(ServerAck)to theEventenum listing (Messages group).### ServerAcksection under Message Events describing the struct fields (id,class: Option<String>,from,timestamp,error), when it's dispatched, and the allocation-free dispatch-gating behavior, with a usage example.<Note>next to the existing#[non_exhaustive]note documenting the pre-1.0 payload stability convention: fields may be added in minor releases, a maybe-absent field is alwaysOption<T>(never a sentinel), and payload sealing is deferred to the 1.0 API freeze.No changelog entry added, per instructions that changelog entries are human-authored.
Generated by Claude Code
Summary by cubic
Documents
Event::ServerAckand the pre-1.0 payload stability policy. Also clarifies that thetimestampnote references the Gowhatsmeowproject.ServerAck: added to theEventenum, described fields (id,class: Option<String>,from,timestamp,error), when it emits, a short example, and that dispatch is gated to avoid allocations when no handler is registered.Option<T>; prefer reading needed fields or..destructuring. Clarified thetimestampcross-reference to the Gowhatsmeowproject.Written for commit f023b29. Summary will update on new commits.