v2.39.1
Patch — whoami principal field casing
Fixes a minor type/rendering bug from 2.39.0. The gateway's GET /agent/v1/whoami returns the principal sub-object in camelCase (displayName, createdAt, disabledAt), while memberships[] (billing_account_id) and authenticator_id stay snake_case. The SDK Principal type had declared display_name, so the typed field was always undefined and the MCP whoami tool's markdown dropped the principal's name.
- SDK
Principal:display_name→displayName?; addcreatedAt: string(always present) anddisabledAt?: string(present only when disabled). Both optionals are omitted by the gateway when null. - MCP
whoamihandler rendersdisplayName; tool/CLI help corrected toid/type/displayName/createdAt.
Non-breaking: r.org.whoami() already returned the full correct object via the index signature; this corrects only the typed field names and the MCP rendering. (#437)