codespar 0.9.0
·
82 commits
to main
since this release
codespar 0.9.0
SSE streaming for async settlement + verification status.
Added
AsyncSession.payment_status_stream(tool_call_id, *, on_update=None)— SSE stream overGET /v1/tool-calls/:id/payment-status/stream. Pushes initial snapshot + every state change; returns last envelope on terminal state (5s grace).AsyncSession.verification_status_stream(tool_call_id, *, on_update=None)— KYC sibling with the same lifecycle.- Sync wrappers:
Session.payment_status_stream/Session.verification_status_stream. _http.stream_sse_get(...)— GET-based SSE iterator yielding(event_name, payload)tuples; filters heartbeat comment frames.
Compat
- Polling siblings (
payment_status/verification_status) stay live for backward compat. - User-Agent bumped to
codespar-python/0.9.0.
TS paridade
@codespar/sdk@0.9.0+@codespar/types@0.7.0published in lockstep.