Repository navigation
Chat API, waiting room middleware (FastAPI/Flask) and Live Chat user_hash - #3
Merged
Merged
Conversation
Python apps can now run the Chat API, put a waiting room in front of FastAPI/Starlette or Flask pages, and sign Live Chat verified visitors. The waiting room check uses the shared server-signed test vector. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SHtsCCKScUUX9khSrU2wij
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SHtsCCKScUUX9khSrU2wij
deflinhec
marked this pull request as ready for review
November 25, 2026 21:53
Member
Author
|
CodeQL is failing on one alert: MD5 in Generated by Claude Code |
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.
Requested by Danny · project thread
Fills the Python gaps for three products.
Client/AsyncClient:put_conversation,get_conversation,delete_conversation,add_members,remove_member,send_message,list_messages,mark_read,system_message,user_conversations, pluschat_request(method, path, params, body)for the rest (typing, reactions, edits, search, moderation). Signed under/apps/APP_ID/chatlike the other HTTP calls.hibira.waiting_room, no new deps):verify_pass,sign_user,waiting_room_url,WaitingRoom.decide,ASGIMiddleware(FastAPI, Starlette, Litestar, Quart) andWSGIMiddleware(Flask, Bottle, Pyramid, Falcon). Same behaviour as@hibira-io/waiting-room/serverand the framework packages; tested against the shared server-signed pass fromwaiting-room/test/server.test.mjs.hibira.livechat.user_hash): the verified-visitor hash for the widget'sdata-user-hash.Testing
pytest: 65 passed (21 new),ruff check .andmypy(strict) clean.TestClient: no pass → 302 to the queue,?hibira_pass→ 302 + cookie, cookie → 200, POST without pass → 403.中文摘要
Python 套件補上 Chat API、等候室 middleware(FastAPI/Starlette 與 Flask)和 Live Chat 已驗證訪客的
user_hash()。發佈時版本升到 0.2.0。Generated by Claude Code