docs: services.sms 服务参考 + 手机号 OTP 认证文档(#2780 补全) - #2809
Merged
Conversation
…2780) The #2780 line shipped code without hand-written docs: - new kernel/runtime-services/sms-service.mdx (mirrors email-service.mdx): send/isConfigured surface, no-persistence/no-body-logging red line, provider configuration via the `sms` settings namespace, consumers (auth OTP, messaging sms channel, import SMS invitations) - permissions/authentication.mdx: Phone-Number Authentication section - OS_AUTH_PHONE_NUMBER_ENABLED, phone+password sign-in, the four OTP endpoints gated on a deliverable SMS service (features.phoneNumberOtp), abuse hardening (admission cooldown/cap, allowedAttempts, per-IP rules, no-oracle reset), import SMS invitations - runtime-services index + meta: register the new page Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013LXUXU66dBaP3SSG4ZVtuH
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
os-zhuang
marked this pull request as ready for review
July 11, 2026 01:35
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.
#2780 系列(#2790 / #2797 / objectui#2388)落了代码但没有配套手写文档,本 PR 补全。按实现逐条核对(非 drift-check 全量清单,只改真实相关的):
变更
content/docs/kernel/runtime-services/sms-service.mdx(完全对齐email-service.mdx的版式):services.sms.send / isConfigured契约、不落库不记正文红线、sms设置命名空间(阿里云/Twilio 各键 +OS_SMS_*env 覆盖 + 测试动作)、三个消费方(auth OTP / messagingsmschannel / 导入短信邀请)。已注册进meta.json与 index 的 Source of Truth 列表。content/docs/permissions/authentication.mdx新增「Phone-Number Authentication (SMS OTP)」章节:OS_AUTH_PHONE_NUMBER_ENABLED开关、手机号+密码登录、四个 OTP 端点(features.phoneNumberOtp门控语义)、滥用防护全览(准入冷却/小时配额、allowedAttempts=3、per-IP 限流、重置端点无账号枚举、OTP 零日志)、导入invite策略的短信邀请变体。验证
pnpm docs:build(Next.js 静态构建)本地通过;MDX 风险符号(<random>、${content})均置于行内代码。references/api/auth.mdx为自动生成文件,未手改(由 build-docs.ts 从 spec 再生)。🤖 Generated with Claude Code
https://claude.ai/code/session_013LXUXU66dBaP3SSG4ZVtuH
Generated by Claude Code