Skip to content

X Chat docs: add Legacy DM migration guide, v1 media flow, B2B custody, full event types & troubleshooting - #599

Merged
tcaldwell-x merged 2 commits into
mainfrom
tcaldwell/xchat-migration-readiness-docs
Dec 1, 2026
Merged

tcaldwell-x merged 2 commits into
mainfrom
tcaldwell/xchat-migration-readiness-docs

Conversation

@tcaldwell-x

@tcaldwell-x tcaldwell-x commented Dec 1, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Brings the public X Chat documentation into full parity with the Enterprise Legacy DM → X Chat migration guide and production failure modes:

  • New page xchat/migrate-from-legacy-dms.mdx (added to docs.json under Start here and linked from xchat/introduction.mdx):
    • Architectural diff (plaintext vs. E2EE, no forward secrecy disclosure).
    • Complete OAuth 2.0 scope matrix (explicitly calling out media.write for both uploads and downloads + offline.access).
    • Complete Legacy v2 DM → X Chat and Legacy v1.1 DM → X Chat endpoint mapping tables + behavioral gaps (no global feed, no by-ID lookup, custom_profiles/* removed, welcome messages in v2, colon vs. hyphen IDs, message request side effects, pagination defaults, POST .../read & POST .../members caveats).
    • Pre-cutover verification checklist (including Enterprise legacy-DM allowlist removal).
  • xchat/media.mdx: Updated to the current v1 message-first media upload order (POST initialize with encrypted_file_size → returns session_id + media_hash_key → encrypt_message → encrypt_file / file_encryptor using payload.event_b64 → /append 0–999 → /finalize with string num_parts → send; decrypt_file on download) and added <Warning> that media.write is required for both uploads and downloads.
  • xchat/real-time-events.mdx:
    • Documented all 9 chat.* event types (canonical chat.conversation.join + deprecated alias, member/admin/group updates) and noted typing/read receipts arrive as encrypted conversation events.
    • Added single-stream-consumer fan-out note, chat.conversation.join bot subscription guidance, POST /2/webhooks/replay, canonical : → - URL conversion, and the GET /2/chat/conversations?start_time= reconciliation pattern (avoid polling storms).
  • xchat/handling-private-keys.mdx & xchat/getting-started.mdx:
    • Added B2B / multi-tenant key custody requirements (business-only, knowing consent, OAuth ≠ key revoke disclosure, contract/DPA, X partner approval, one secret per tenant in KMS/HSM) and the Key lifecycle events table (PIN change vs. Reset Chat / public_key_version change vs. OAuth revoke offboarding).
    • Added no-forward-secrecy disclosure, never-auto-retry wrong Juicebox PIN (max_guess_count), never-call-unlock()-per-request, and never-register-new-keys-over-an-active-X-app-account warnings.
  • xchat/troubleshooting.mdx:
    • Added JuiceboxError::RateLimitExceeded, never-auto-retry wrong PIN, key registration warning + 1/hr/account backend limit, Common X Chat API error responses table (INVALID_IDENTITY_KEY_PAIR, UNAUTHORIZED_REQUESTING_USER, recipient-not-messageable, xchat-setup-required, 20 KB cap, 404 media, 429 polling), Enterprise legacy-DM allowlist cutover gotcha, and Endpoint & spec caveats.
  • xchat/xchat-xdk.mdx & xchat/introduction.mdx:
    • Added quick_reply (v0.5.1+), explicit entities (UTF-8 byte offsets for clickable URLs/mentions), 20 KB ciphertext / ~11,000 UTF-8 byte cap, @xdevplatform/chat-xdk-server for Node servers, anonymous outbound GET https://api.x.com/2/chat/features allowlist note, and encrypt_file / decrypt_file v1 summary.

Testing

  • Validated docs.json JSON syntax and confirmed xchat/migrate-from-legacy-dms is registered in navigation.
  • Validated frontmatter and balanced Mintlify JSX tags (<Warning>, <Note>, <Tip>, <Tabs>, <Tab>) across all 8 modified/added .mdx files.
  • Verified encrypt_file, decrypt_file, encrypted_file_size, quick_reply, EntityDescriptor/EntityTuple (UTF-8 byte offsets), and @xdevplatform/chat-xdk-server directly against xdevplatform/chat-xdk/docs/API.md.

…tration, start_time reconciliation, error handling, quick replies & URL entities
@mintlify

mintlify Bot commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated
x-corp 🟢 Ready View Preview Dec 1, 2026, 10:49 PM

@tcaldwell-x tcaldwell-x changed the title X Chat docs: document migration gotchas, error handling, reconciliation, quick replies & URL entities X Chat docs: add Legacy DM migration guide, v1 media flow, B2B custody, full event types & troubleshooting Dec 1, 2026
@tcaldwell-x
tcaldwell-x merged commit 7d131c9 into main Dec 1, 2026
3 checks passed

This branch was successfully deployed

1 active deployment
staging — 27c0be79 Deployed Dec 1, 2026 by mintlify[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant