Anthropic TypeScript SDK 发布 v1.7.0
原标题:sdk-v1.7.0
AI 摘要
Anthropic 发布 TypeScript SDK v1.7.0,新增对 claude-fable-5-2 和 claude-mythos-5-2 两个模型的支持,并扩展组织 webhook 端点以接收 user_profile.program_status_updated 事件。同时为用量与成本报告增加父组织过滤和分组能力,在 Admin API 写方法中新增 sandbox_egress_restricted 错误。此外还修复了调试日志不包含失败响应体、结构化输出 schema 丢失 const 和 enum 等问题。
正文节选
### Features * **api:** accept user_profile.program_status_updated on organization webhook endpoints * **api:** add claude-fable-5-2 and claude-mythos-5-2 * **api:** add parent organization filtering and grouping to the usage and cost reports * **api:** add the sandbox_egress_restricted error to Admin API write methods * **api:** add the user_profile.program_status_updated webhook event ### Bug Fixes * **client:** include the body of a failed response in debug logs * **helpers:** keep const