Repository navigation
X Chat docs: add Legacy DM migration guide, v1 media flow, B2B custody, full event types & troubleshooting - #599
Merged
Conversation
…tration, start_time reconciliation, error handling, quick replies & URL entities
Contributor
|
Preview deployment for your docs. Learn more about Mintlify Previews.
|
…y, event types, and cutover caveats
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Brings the public X Chat documentation into full parity with the Enterprise Legacy DM → X Chat migration guide and production failure modes:
xchat/migrate-from-legacy-dms.mdx(added todocs.jsonunder Start here and linked fromxchat/introduction.mdx):media.writefor both uploads and downloads +offline.access).custom_profiles/*removed, welcome messages in v2, colon vs. hyphen IDs, message request side effects, pagination defaults,POST .../read&POST .../memberscaveats).xchat/media.mdx: Updated to the current v1 message-first media upload order (POST initializewithencrypted_file_size→ returnssession_id+media_hash_key→encrypt_message→encrypt_file/file_encryptorusingpayload.event_b64→/append0–999→/finalizewith stringnum_parts→ send;decrypt_fileon download) and added<Warning>thatmedia.writeis required for both uploads and downloads.xchat/real-time-events.mdx:chat.*event types (canonicalchat.conversation.join+ deprecated alias, member/admin/group updates) and noted typing/read receipts arrive as encrypted conversation events.chat.conversation.joinbot subscription guidance,POST /2/webhooks/replay, canonical:→-URL conversion, and theGET /2/chat/conversations?start_time=reconciliation pattern (avoid polling storms).xchat/handling-private-keys.mdx&xchat/getting-started.mdx:PIN changevs.Reset Chat/public_key_versionchange vs.OAuth revokeoffboarding).max_guess_count), never-call-unlock()-per-request, and never-register-new-keys-over-an-active-X-app-account warnings.xchat/troubleshooting.mdx:JuiceboxError::RateLimitExceeded, never-auto-retry wrong PIN, key registration warning +1/hr/accountbackend 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:quick_reply(v0.5.1+), explicitentities(UTF-8 byte offsets for clickable URLs/mentions), 20 KB ciphertext / ~11,000 UTF-8 byte cap,@xdevplatform/chat-xdk-serverfor Node servers, anonymous outboundGET https://api.x.com/2/chat/featuresallowlist note, andencrypt_file/decrypt_filev1 summary.Testing
docs.jsonJSON syntax and confirmedxchat/migrate-from-legacy-dmsis registered in navigation.<Warning>,<Note>,<Tip>,<Tabs>,<Tab>) across all 8 modified/added.mdxfiles.encrypt_file,decrypt_file,encrypted_file_size,quick_reply,EntityDescriptor/EntityTuple(UTF-8 byte offsets), and@xdevplatform/chat-xdk-serverdirectly againstxdevplatform/chat-xdk/docs/API.md.