feat: add unified IM access policies

This commit is contained in:
xmanrui 2026-09-01 10:45:12 +08:00
parent 075d2713c1
commit 840e5aa857
89 changed files with 5573 additions and 1676 deletions

View file

@ -10,6 +10,59 @@ const EN = Object.freeze({
'机器人设置': 'Bot settings',
'机器人设置页签': 'Bot settings tabs',
'投递设置': 'Delivery settings',
'访问设置': 'Access settings',
'查看访问权限说明': 'View access permission details',
'允许所有用户': 'Allow all users',
'仅白名单用户': 'Allowlisted users only',
'默认命令权限': 'Default command permission',
'命令权限': 'Command permission',
'可以执行命令': 'Can run commands',
'不可以执行命令': 'Cannot run commands',
'白名单用户': 'Allowlisted users',
'查看白名单说明': 'View allowlist details',
'命令权限例外': 'Command permission exceptions',
'当前没有白名单用户,保存后普通用户将无法使用机器人。': 'There are currently no allowlisted users. After saving, regular users will not be able to use the bot.',
'新增用户': 'Add user',
'尚未添加用户': 'No users added',
'当前渠道不支持群聊': 'Group chat is not supported by this channel',
'原所有者或扫码接入者始终可以访问并执行命令;以下设置仅约束其他用户。': 'The original owner or QR-code operator can always access the bot and run commands; the settings below apply only to other users.',
'此区域无需配置,保存私聊设置时会保留现有群聊策略。': 'No setup is needed here. Saving direct-message settings keeps the existing group policy.',
'访问设置已保存。': 'Access settings saved.',
'访问设置暂不可用。': 'Access settings are currently unavailable.',
'访问设置保存失败,请稍后重试。': 'Could not save access settings. Try again later.',
'服务没有返回已保存的访问策略,请刷新后重试。': 'The service did not return the saved access policy. Refresh and try again.',
'访问策略尚未就绪,请返回机器人列表刷新后重试。': 'The access policy is not ready. Return to the bot list, refresh, and try again.',
'当前渠道暂不支持访问设置。': 'Access settings are not supported by this channel yet.',
'用户标识无效。': 'The user ID is invalid.',
'用户标识必须是字符串。': 'The user ID must be a string.',
'用户标识不能为空、包含控制字符或超过 256 个字符。': 'The user ID cannot be empty, contain control characters, or exceed 256 characters.',
'用户条目必须包含用户标识和命令权限。': 'Each user entry must include a user ID and command permission.',
'命令权限必须是布尔值。': 'Command permission must be a boolean.',
'访问模式只能是 open 或 allowlist。': 'Access mode must be open or allowlist.',
'开放模式设置必须完整。': 'Open-mode settings must be complete.',
'开放模式默认命令权限必须是布尔值。': 'The open-mode default command permission must be a boolean.',
'开放模式命令权限覆盖用户必须是数组。': 'Open-mode command permission overrides must be an array.',
'开放模式命令权限覆盖用户不能包含重复的用户标识。': 'Open-mode command permission overrides cannot contain duplicate user IDs.',
'白名单模式设置必须完整。': 'Allowlist-mode settings must be complete.',
'白名单模式用户必须是数组。': 'Allowlist-mode users must be an array.',
'白名单模式用户不能包含重复的用户标识。': 'Allowlist-mode users cannot contain duplicate user IDs.',
'访问场景设置必须同时包含模式、开放模式设置和白名单模式设置。': 'Each access context must include its mode, open-mode settings, and allowlist-mode settings.',
'请同时提交完整的私聊和群聊访问设置。': 'Submit complete direct-message and group access settings together.',
'填写微信用户 ID': 'Enter a WeChat user ID',
'飞书 Open ID': 'Feishu Open ID',
'群成员 Open ID': 'Group member Open ID',
'钉钉用户 ID': 'DingTalk user ID',
'填写 senderStaffId 或 senderId': 'Enter senderStaffId or senderId',
'群成员用户 ID': 'Group member user ID',
'企业微信用户 ID': 'WeCom user ID',
'填写 userid': 'Enter userid',
'填写 member_openid': 'Enter member_openid',
'QQ User Open ID': 'QQ User Open ID',
'群成员 User ID': 'Group member User ID',
'填写数字 User ID': 'Enter a numeric user ID',
'WhatsApp 电话号码或 JID': 'WhatsApp phone number or JID',
'群成员电话号码或 JID': 'Group member phone number or JID',
'8613800000000 或完整 JID': '8613800000000 or a full JID',
'IM 渠道': 'IM channels',
'让 DeepSeek Harness 触手可及': 'Connecting DeepSeek Harness',
'当前版本': 'Current version',
@ -524,7 +577,6 @@ const EN = Object.freeze({
'先通过 @BotFather 获取 Bot Token,再在这里完成接入。': 'Get a Bot Token from @BotFather, then connect it here.',
'填写 @BotFather 生成的 Bot Token': 'Enter the Bot Token from @BotFather',
'访问模式': 'Access mode',
'访问设置': 'Access settings',
'Telegram 访问模式': 'Telegram access mode',
'查看 Telegram 访问模式说明': 'View Telegram access mode details',
'群聊全部忽略,私聊仅允许白名单用户。': 'All group messages are ignored; only allowlisted users may send DMs.',