You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Align SDK with backend: retire org 'member' role, default workflow visibility to organization, document SSE ownership 404s
Three backend changes now live on staging, folded straight into the
unpublished 1.0.0 surface (no back-compat / SemVer handling, no version bump):
1. Org 'member' role retired — orgs are owner/admin only. Tighten the REQUEST
side: organizations.invite() role default + type -> Literal["admin"]; and
update_user_role() role -> Literal["admin"]. The backend now 422s
role="member". Response/read models keep role: Optional[str] so historical
'member' strings still parse. The auth.organizations(role=...) GET filter
stays str | None.
2. Workflow visibility is org-level — workflows.create() default flips from
'private' to 'organization' (a real client-side default change). 'private'
no longer restricts a workflow to its creator; all four enum values
(private|organization|public|system) are kept. List/filter params and the
response visibility field are unchanged.
3. SSE / run-thread ownership now returns 404 (not found OR not owned by your
org; identical 404, no existence leak). Infra already handles it:
_streaming.py calls raise_for_status on the SSE connect, so listen() 404 ->
NotFoundError (not StreamError, no reconnect loop). Docs-only additions on
executions/composer/assistant listen|get_state|resume|cancel.
Tests: invite defaults to/sends admin; update_user_role sends admin; create
defaults to 'organization' and still accepts 'private'; SSE listen 404 ->
NotFoundError with no reconnect loop (executions + composer).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
0 commit comments