// Copyright (c) 2025 ObjectStack. Licensed under the Apache-2.0 license.

/**
 * Auto-generated by 'os i18n extract' for locale 'zh-CN'.
 * Edit translations in place; re-run extract (with --merge) to fill new gaps.
 * Do not hand-edit the structure — only the leaf string values.
 */

import type { TranslationData } from '@objectstack/spec/system';

export const zhCNMetadataForms: NonNullable<TranslationData['metadataForms']> = {
  object: {
    label: "对象",
    sections: {
      basics: {
        label: "基础信息",
        description: "标识、显示名与分类标签"
      },
      fields: {
        label: "字段",
        description: "定义数据模型——每行对应数据库表中的一列"
      },
      capabilities: {
        label: "功能开关",
        description: "系统功能与 API 暴露"
      },
      advanced: {
        label: "高级设置",
        description: "状态机、动作与存储"
      }
    },
    fields: {
      name: {
        label: "名称",
        helpText: "snake_case 唯一标识符（创建后不可修改）"
      },
      label: {
        label: "显示名称",
        helpText: "单数显示名（如：\"客户\"）"
      },
      pluralLabel: {
        label: "复数显示名称",
        helpText: "复数显示名（如：\"客户列表\"）"
      },
      icon: {
        label: "图标",
        helpText: "Lucide 图标名称（如：\"building\"、\"users\"）"
      },
      description: {
        label: "描述",
        helpText: "开发文档说明"
      },
      tags: {
        label: "标签",
        helpText: "分类标签（如：\"sales\"、\"system\"）"
      },
      active: {
        label: "启用",
        helpText: "对象是否启用并可用"
      },
      isSystem: {
        label: "系统内置",
        helpText: "系统对象（受保护，不可删除）"
      },
      abstract: {
        label: "抽象",
        helpText: "抽象基类（不能直接实例化）"
      },
      fields: {
        label: "字段",
        helpText: "添加该对象将存储的列"
      },
      "fields.label": {
        label: "显示名称",
        helpText: "展示用标签"
      },
      "fields.type": {
        label: "类型",
        helpText: "字段类型"
      },
      "fields.description": {
        label: "描述",
        helpText: "此列的开发者文档"
      },
      "fields.required": {
        label: "必填",
        helpText: "每条记录都必须填写"
      },
      "fields.unique": {
        label: "唯一",
        helpText: "不允许重复值"
      },
      "fields.indexed": {
        label: "已索引",
        helpText: "创建数据库索引以加快查询"
      },
      "fields.readonly": {
        label: "只读",
        helpText: "可见，但用户不可编辑"
      },
      "fields.immutable": {
        label: "不可变",
        helpText: "创建时可编辑，之后锁定"
      },
      "fields.hidden": {
        label: "隐藏",
        helpText: "在默认界面中隐藏"
      },
      "fields.searchable": {
        label: "可搜索",
        helpText: "纳入全文搜索"
      },
      "fields.sortable": {
        label: "可排序",
        helpText: "允许按此列排序"
      },
      "fields.filterable": {
        label: "可筛选",
        helpText: "允许按此列筛选"
      },
      "fields.defaultValue": {
        label: "默认值",
        helpText: "新记录的默认值（JSON 字面量）"
      },
      "fields.placeholder": {
        label: "占位符",
        helpText: "占位提示"
      },
      "fields.maxLength": {
        label: "最大长度",
        helpText: "最大字符数"
      },
      "fields.minLength": {
        label: "最小长度",
        helpText: "最小字符数"
      },
      "fields.min": {
        label: "最小值",
        helpText: "最小值"
      },
      "fields.max": {
        label: "最大值",
        helpText: "最大值"
      },
      "fields.precision": {
        label: "精度",
        helpText: "总位数"
      },
      "fields.scale": {
        label: "小数位",
        helpText: "小数位数"
      },
      "fields.options": {
        label: "选项",
        helpText: "可选项"
      },
      "fields.options.label": {
        label: "显示名称"
      },
      "fields.options.value": {
        label: "值"
      },
      "fields.options.color": {
        label: "颜色"
      },
      "fields.options.icon": {
        label: "图标",
        helpText: "Lucide 图标名称"
      },
      "fields.options.description": {
        label: "描述"
      },
      "fields.reference": {
        label: "引用对象",
        helpText: "目标对象（用于 lookup / master_detail）"
      },
      "fields.referenceFilter": {
        label: "引用过滤",
        helpText: "应用于选择器的 CEL 过滤条件"
      },
      "fields.cascadeDelete": {
        label: "级联删除",
        helpText: "删除父记录时一并删除子记录"
      },
      "fields.multiple": {
        label: "多选",
        helpText: "允许选择多条记录"
      },
      "fields.formula": {
        label: "公式",
        helpText: "CEL 公式表达式"
      },
      "fields.returnType": {
        label: "返回类型",
        helpText: "公式结果类型"
      },
      "fields.summaryType": {
        label: "汇总类型",
        helpText: "聚合方式"
      },
      "fields.summaryField": {
        label: "汇总字段",
        helpText: "要聚合的子对象字段"
      },
      "fields.displayFormat": {
        label: "显示格式",
        helpText: "例如 \"INV-{0000}\""
      },
      "fields.startingNumber": {
        label: "起始编号",
        helpText: "序列起始值"
      },
      "fields.language": {
        label: "语言",
        helpText: "编辑器语言（如 sql、javascript）"
      },
      "fields.validation": {
        label: "校验",
        helpText: "CEL 谓词，必须求值为 true"
      },
      "fields.errorMessage": {
        label: "错误消息",
        helpText: "校验失败时显示"
      },
      "fields.audit": {
        label: "审计",
        helpText: "审计此字段的变更"
      },
      "fields.trackHistory": {
        label: "历史跟踪",
        helpText: "保留变更历史"
      },
      "fields.pii": {
        label: "个人信息",
        helpText: "个人身份信息"
      },
      "fields.encrypted": {
        label: "加密",
        helpText: "静态加密存储"
      },
      capabilities: {
        label: "功能",
        helpText: "启用或禁用系统功能"
      },
      "capabilities.trackHistory": {
        label: "历史跟踪"
      },
      "capabilities.searchable": {
        label: "可搜索"
      },
      "capabilities.apiEnabled": {
        label: "启用 API"
      },
      "capabilities.files": {
        label: "文件"
      },
      "capabilities.feeds": {
        label: "动态"
      },
      "capabilities.activities": {
        label: "活动"
      },
      "capabilities.trash": {
        label: "回收站"
      },
      "capabilities.mru": {
        label: "最近使用"
      },
      "capabilities.clone": {
        label: "克隆"
      },
      datasource: {
        label: "数据源",
        helpText: "目标数据源 ID（默认：\"default\"）"
      }
    }
  },
  field: {
    label: "字段",
    sections: {
      basics: {
        label: "基础信息",
        description: "核心标识与约束"
      },
      configuration: {
        label: "配置",
        description: "类型相关设置（不同字段类型显示不同选项）"
      },
      formula: {
        label: "公式与计算",
        description: "计算值与汇总"
      },
      advanced: {
        label: "高级设置",
        description: "数据库、界面、审计与安全"
      }
    },
    fields: {
      name: {
        label: "名称",
        helpText: "唯一标识符（snake_case，创建后不可修改）"
      },
      label: {
        label: "显示名称",
        helpText: "用户看到的显示名称"
      },
      type: {
        label: "类型",
        helpText: "该字段的数据类型"
      },
      group: {
        label: "分组",
        helpText: "表单布局中的分组名称"
      },
      description: {
        label: "描述",
        helpText: "展示给用户的帮助文本"
      },
      required: {
        label: "必填",
        helpText: "用户必须填写"
      },
      unique: {
        label: "唯一",
        helpText: "任意两条记录的值不能相同"
      },
      multiple: {
        label: "多选",
        helpText: "允许多个值（用于 select / lookup）"
      },
      defaultValue: {
        label: "默认值",
        helpText: "新建记录时的默认值"
      },
      minLength: {
        label: "最小长度",
        helpText: "最少字符数"
      },
      maxLength: {
        label: "最大长度",
        helpText: "最多字符数"
      },
      min: {
        label: "最小值",
        helpText: "允许的最小数值"
      },
      max: {
        label: "最大值",
        helpText: "允许的最大数值"
      },
      precision: {
        label: "精度",
        helpText: "小数位数（如：货币用 2 表示保留两位）"
      },
      scale: {
        label: "小数位",
        helpText: "小数部分位数"
      },
      options: {
        label: "选项",
        helpText: "可选项（label/value 对）"
      },
      reference: {
        label: "引用对象",
        helpText: "被引用的对象名称"
      },
      referenceFilters: {
        label: "引用过滤",
        helpText: "筛选表达式（如：active = true）"
      },
      deleteBehavior: {
        label: "删除行为",
        helpText: "被引用记录删除时的处理方式"
      },
      expression: {
        label: "表达式",
        helpText: "用 CEL 表达式计算此字段的值（自动设为只读）"
      },
      summaryOperations: {
        label: "汇总操作",
        helpText: "父子关系下的汇总聚合配置"
      },
      cached: {
        label: "缓存",
        helpText: "计算字段的缓存配置"
      },
      columnName: {
        label: "列名",
        helpText: "数据库中的物理列名（默认与字段名相同）"
      },
      index: {
        label: "索引",
        helpText: "建立数据库索引以加速查询"
      },
      externalId: {
        label: "外部 ID",
        helpText: "标记为外部 ID 用于 upsert 操作"
      },
      readonly: {
        label: "只读",
        helpText: "在表单中只读"
      },
      hidden: {
        label: "隐藏",
        helpText: "在默认界面视图中隐藏"
      },
      searchable: {
        label: "可搜索",
        helpText: "纳入全局搜索结果"
      },
      sortable: {
        label: "可排序",
        helpText: "允许按此字段排序"
      },
      auditTrail: {
        label: "审计跟踪",
        helpText: "记录详细变更与操作人、时间戳"
      },
      trackFeedHistory: {
        label: "动态历史跟踪",
        helpText: "在活动动态中展示变更"
      },
      encryptionConfig: {
        label: "加密配置",
        helpText: "字段级加密（GDPR / HIPAA / PCI-DSS）"
      },
      maskingRule: {
        label: "掩码规则",
        helpText: "PII 数据脱敏规则"
      }
    }
  },
  trigger: {
    label: "触发器"
  },
  validation: {
    label: "验证规则"
  },
  hook: {
    label: "钩子",
    sections: {
      identity: {
        label: "基础信息",
        description: "名称、对象与触发事件"
      },
      body: {
        label: "处理体",
        description: "触发时执行的内联表达式或沙箱 JavaScript"
      },
      legacy_handler: {
        label: "旧版处理器",
        description: "函数名引用——已废弃，请改用 body"
      },
      execution: {
        label: "执行"
      }
    },
    fields: {
      name: {
        label: "名称",
        helpText: "snake_case 标识符（创建后不可修改）"
      },
      label: {
        label: "显示名称"
      },
      description: {
        label: "描述"
      },
      object: {
        label: "对象",
        helpText: "目标对象名（或 \"*\" 表示全局）"
      },
      events: {
        label: "事件",
        helpText: "生命周期事件（如 beforeInsert、afterUpdate）"
      },
      priority: {
        label: "优先级",
        helpText: "数字越小越先执行"
      },
      body: {
        label: "正文",
        helpText: "L1 表达式或 L2 沙箱 JS 体"
      },
      "body.language": {
        label: "语言",
        helpText: "expression = 纯公式；js = 沙箱 JavaScript"
      },
      "body.source": {
        label: "源码",
        helpText: "函数体源码——禁止顶层 import"
      },
      "body.capabilities": {
        label: "功能",
        helpText: "可用的 ctx API（api.read、api.write、crypto.uuid、log 等）"
      },
      "body.timeoutMs": {
        label: "超时（毫秒）",
        helpText: "单次调用超时时间（毫秒）"
      },
      handler: {
        label: "处理器",
        helpText: "处理器函数名（已废弃——建议使用 body）"
      },
      async: {
        label: "异步",
        helpText: "后台运行，不阻塞当前事务"
      },
      onError: {
        label: "错误处理"
      },
      condition: {
        label: "条件",
        helpText: "可选公式——求值为 false 时跳过该钩子"
      }
    }
  },
  view: {
    label: "视图",
    sections: {
      basics: {
        label: "基础信息",
        description: "标识与主显示形态"
      },
      columns_filters: {
        label: "列与筛选",
        description: "展示哪些行以及用户如何筛选"
      },
      table_options: {
        label: "表格选项",
        description: "仅 Grid 表格的显示选项"
      },
      kanban: {
        label: "看板配置",
        description: "看板专属配置"
      },
      calendar: {
        label: "日历配置",
        description: "日历专属配置"
      },
      gantt: {
        label: "甘特图配置",
        description: "甘特图专属配置"
      },
      gallery: {
        label: "画廊配置",
        description: "画廊专属配置"
      },
      timeline: {
        label: "时间线配置",
        description: "时间线专属配置"
      },
      chart: {
        label: "图表配置",
        description: "图表专属配置"
      },
      navigation_sharing: {
        label: "导航与共享",
        description: "视图出现在哪里以及谁可以查看"
      }
    },
    fields: {
      name: {
        label: "名称",
        helpText: "snake_case，环境内唯一"
      },
      label: {
        label: "显示名称"
      },
      description: {
        label: "描述"
      },
      type: {
        label: "类型",
        helpText: "主要的视图形态"
      },
      data: {
        label: "数据",
        helpText: "数据源——如：{\"provider\":\"object\",\"object\":\"task\"}"
      },
      columns: {
        label: "列",
        helpText: "要展示的列（来自所选对象的字段名）"
      },
      filter: {
        label: "筛选",
        helpText: "筛选规则"
      },
      sort: {
        label: "排序",
        helpText: "默认排序方式"
      },
      searchableFields: {
        label: "可搜索字段",
        helpText: "可用于快速搜索的字段名"
      },
      filterableFields: {
        label: "可筛选字段",
        helpText: "可用于筛选的字段名"
      },
      resizable: {
        label: "可调整大小"
      },
      striped: {
        label: "斑马纹"
      },
      bordered: {
        label: "边框"
      },
      compactToolbar: {
        label: "紧凑工具栏"
      },
      rowHeight: {
        label: "行高"
      },
      selection: {
        label: "选择"
      },
      pagination: {
        label: "分页"
      },
      kanban: {
        label: "看板"
      },
      calendar: {
        label: "日历"
      },
      gantt: {
        label: "甘特图"
      },
      gallery: {
        label: "画廊"
      },
      timeline: {
        label: "时间线"
      },
      chart: {
        label: "图表"
      },
      navigation: {
        label: "导航"
      },
      sharing: {
        label: "共享"
      }
    }
  },
  page: {
    label: "页面",
    sections: {
      basics: {
        label: "基础信息",
        description: "名称、标题与图标"
      },
      data_context: {
        label: "数据上下文",
        description: "关联对象与变量"
      },
      layout: {
        label: "布局",
        description: "页面区块与组件"
      },
      advanced: {
        label: "高级设置",
        description: "默认页、类型与分配"
      }
    },
    fields: {
      name: {
        label: "名称",
        helpText: "snake_case 唯一标识符"
      },
      label: {
        label: "显示名称",
        helpText: "展示给用户的页面标题"
      },
      icon: {
        label: "图标",
        helpText: "导航菜单中显示的图标"
      },
      type: {
        label: "类型",
        helpText: "页面类型（record、home、app、dashboard 等）"
      },
      template: {
        label: "模板",
        helpText: "布局模板（如 \"header-sidebar-main\"）"
      },
      description: {
        label: "描述",
        helpText: "用于导航的页面描述"
      },
      object: {
        label: "对象",
        helpText: "绑定的对象（用于记录页）"
      },
      variables: {
        label: "变量",
        helpText: "页面本地状态变量"
      },
      regions: {
        label: "区域",
        helpText: "布局区域（header、main、sidebar、footer）及其组件"
      },
      isDefault: {
        label: "默认",
        helpText: "设为该页面类型的默认页"
      },
      kind: {
        label: "模式",
        helpText: "页面种类分组（如 record / list / detail）"
      },
      assignedProfiles: {
        label: "指定配置文件",
        helpText: "此页面对哪些 Profile 可用"
      },
      aria: {
        label: "无障碍",
        helpText: "无障碍标签与角色"
      }
    }
  },
  dashboard: {
    label: "仪表板",
    sections: {
      basics: {
        label: "基础信息",
        description: "名称与图标"
      },
      layout: {
        label: "布局",
        description: "栅格与响应式"
      },
      widgets: {
        label: "组件",
        description: "图表、指标、列表等"
      },
      filters: {
        label: "筛选",
        description: "全局筛选与日期范围"
      },
      advanced: {
        label: "高级设置",
        description: "性能与无障碍"
      }
    },
    fields: {
      name: {
        label: "名称",
        helpText: "snake_case 唯一标识符"
      },
      label: {
        label: "显示名称",
        helpText: "显示名"
      },
      description: {
        label: "描述"
      },
      columns: {
        label: "列",
        helpText: "栅格列数（默认 12）"
      },
      gap: {
        label: "间距",
        helpText: "栅格间距（Tailwind 单位）"
      },
      refreshInterval: {
        label: "刷新间隔",
        helpText: "自动刷新间隔（秒）"
      },
      header: {
        label: "页眉",
        helpText: "标题、操作按钮与筛选"
      },
      widgets: {
        label: "组件",
        helpText: "包含位置和尺寸的仪表板组件"
      },
      dateRange: {
        label: "日期范围",
        helpText: "默认日期范围选择器"
      },
      globalFilters: {
        label: "全局筛选",
        helpText: "应用到所有组件的筛选条件"
      },
      aria: {
        label: "无障碍",
        helpText: "无障碍标签"
      },
      performance: {
        label: "性能",
        helpText: "懒加载、虚拟滚动、缓存等"
      }
    }
  },
  app: {
    label: "应用",
    sections: {
      basics: {
        label: "基础信息",
        description: "标识、版本与图标"
      },
      navigation: {
        label: "导航",
        description: "菜单结构与首页"
      },
      content: {
        label: "内容",
        description: "对象、API 与默认智能体"
      },
      branding: {
        label: "品牌",
        description: "主题色与 Logo"
      },
      access_and_sharing: {
        label: "访问与共享",
        description: "权限、共享与嵌入"
      }
    },
    fields: {
      name: {
        label: "名称",
        helpText: "snake_case 唯一标识符"
      },
      label: {
        label: "显示名称"
      },
      description: {
        label: "描述"
      },
      version: {
        label: "版本"
      },
      icon: {
        label: "图标",
        helpText: "Lucide 图标名（如 users、briefcase）"
      },
      active: {
        label: "启用"
      },
      isDefault: {
        label: "默认",
        helpText: "设为新用户的默认应用"
      },
      navigation: {
        label: "导航",
        helpText: "递归的导航结构"
      },
      areas: {
        label: "区域",
        helpText: "将菜单项组织为可折叠分组"
      },
      homePageId: {
        label: "首页 ID",
        helpText: "应用打开时跳转的页面"
      },
      mobileNavigation: {
        label: "移动端导航",
        helpText: "移动端底部 Tab 栏配置"
      },
      objects: {
        label: "对象权限",
        helpText: "此应用暴露的对象名"
      },
      apis: {
        label: "API",
        helpText: "API 端点定义"
      },
      defaultAgent: {
        label: "默认智能体",
        helpText: "右下角浮动助手按钮调用的 AI 智能体"
      },
      branding: {
        label: "品牌",
        helpText: "主色、辅色、Logo 与主题"
      },
      requiredPermissions: {
        label: "所需权限",
        helpText: "访问该应用需要的权限"
      },
      sharing: {
        label: "共享",
        helpText: "公开 / 内部 / 受限的访问控制"
      },
      embed: {
        label: "嵌入",
        helpText: "iFrame 嵌入配置"
      },
      aria: {
        label: "无障碍",
        helpText: "无障碍标签与角色"
      }
    }
  },
  action: {
    label: "操作",
    sections: {
      basics: {
        label: "基础信息",
        description: "标识、对象与图标"
      },
      behavior: {
        label: "行为",
        description: "点击后执行的操作"
      },
      placement: {
        label: "位置",
        description: "在界面上的呈现与可见性"
      },
      advanced: {
        label: "高级设置",
        description: "批量与 AI 暴露"
      }
    },
    fields: {
      name: {
        label: "名称",
        helpText: "唯一标识符（snake_case）"
      },
      label: {
        label: "显示名称",
        helpText: "展示给用户的按钮文字"
      },
      objectName: {
        label: "对象名称",
        helpText: "所属对象（可选）"
      },
      icon: {
        label: "图标",
        helpText: "Lucide 图标名（如 \"check\"、\"x-circle\"）"
      },
      type: {
        label: "类型",
        helpText: "点击后发生什么"
      },
      variant: {
        label: "按钮样式",
        helpText: "按钮样式（primary=蓝色，danger=红色，ghost=透明）"
      },
      target: {
        label: "目标",
        helpText: "调用的 URL、流程名或 API 端点"
      },
      method: {
        label: "方法",
        helpText: "GET / POST / PUT / DELETE"
      },
      body: {
        label: "正文",
        helpText: "要执行的 JavaScript 代码"
      },
      params: {
        label: "参数",
        helpText: "执行前向用户收集的输入参数"
      },
      confirmText: {
        label: "确认文本",
        helpText: "执行前的确认提示（如 \"确定要执行吗？\"）"
      },
      successMessage: {
        label: "成功消息",
        helpText: "执行成功后的提示信息"
      },
      refreshAfter: {
        label: "完成后刷新",
        helpText: "执行完成后刷新当前列表/页面"
      },
      locations: {
        label: "位置",
        helpText: "出现在工具栏、行菜单等位置"
      },
      component: {
        label: "组件",
        helpText: "以按钮、图标或菜单项的形式呈现"
      },
      visible: {
        label: "可见",
        helpText: "CEL 表达式：满足条件时显示"
      },
      disabled: {
        label: "禁用",
        helpText: "CEL 表达式：满足条件时禁用"
      },
      shortcut: {
        label: "快捷键",
        helpText: "键盘快捷键（如 \"Ctrl+S\"、\"Cmd+Enter\"）"
      },
      bulkEnabled: {
        label: "批量启用",
        helpText: "允许对多条选中记录执行"
      },
      aiExposed: {
        label: "暴露给 AI",
        helpText: "允许 AI 智能体调用此操作"
      },
      recordIdParam: {
        label: "记录 ID 参数",
        helpText: "API 请求体中记录 ID 的参数名"
      },
      recordIdField: {
        label: "记录 ID 字段",
        helpText: "作为记录 ID 的字段（默认 \"id\"）"
      },
      bodyShape: {
        label: "请求体结构",
        helpText: "请求体的组织形式（扁平或嵌套）"
      }
    }
  },
  report: {
    label: "报表",
    sections: {
      basics: {
        label: "基础信息",
        description: "名称与数据源"
      },
      columns: {
        label: "列",
        description: "选择要展示的列"
      },
      groupings: {
        label: "分组与汇总",
        description: "行列分组维度"
      },
      joined_blocks: {
        label: "关联对象",
        description: "跨对象联合查询"
      },
      filter_and_chart: {
        label: "筛选与图表",
        description: "条件与图表展示"
      },
      advanced: {
        label: "高级设置",
        description: "性能与无障碍"
      }
    },
    fields: {
      name: {
        label: "名称",
        helpText: "snake_case 唯一标识符"
      },
      label: {
        label: "显示名称"
      },
      description: {
        label: "描述"
      },
      objectName: {
        label: "对象名称",
        helpText: "报表数据源对象"
      },
      type: {
        label: "类型",
        helpText: "报表类型：tabular / summary / matrix / joined"
      },
      columns: {
        label: "列",
        helpText: "报表中显示的列"
      },
      groupingsDown: {
        label: "行分组",
        helpText: "行方向分组层级"
      },
      groupingsAcross: {
        label: "列分组",
        helpText: "列方向分组层级（matrix 报表）"
      },
      blocks: {
        label: "分块",
        helpText: "joined 报表的联合查询块"
      },
      filter: {
        label: "筛选",
        helpText: "报表级别的筛选规则"
      },
      chart: {
        label: "图表",
        helpText: "图表类型与配置"
      },
      aria: {
        label: "无障碍",
        helpText: "无障碍标签与角色"
      },
      performance: {
        label: "性能",
        helpText: "性能与缓存策略"
      }
    }
  },
  flow: {
    label: "流程",
    sections: {
      basics: {
        label: "基础信息",
        description: "流程标识与启动方式"
      },
      canvas: {
        label: "画布",
        description: "节点、连线与流程变量——复杂流程建议用可视化设计器"
      },
      execution: {
        label: "执行配置",
        description: "部署状态、身份与异常处理"
      }
    },
    fields: {
      name: {
        label: "名称",
        helpText: "唯一标识符（snake_case）"
      },
      label: {
        label: "显示名称",
        helpText: "用户看到的显示名称"
      },
      type: {
        label: "类型",
        helpText: "流程如何启动（autolaunched / record_change / schedule / screen / api）"
      },
      template: {
        label: "模板",
        helpText: "是否为可复用子流程（可被其他流程调用）"
      },
      description: {
        label: "描述",
        helpText: "此流程做什么"
      },
      nodes: {
        label: "节点",
        helpText: "⚠️ 建议使用流程设计器，而非手写 JSON"
      },
      edges: {
        label: "连线",
        helpText: "节点间的连接——建议用流程设计器编辑"
      },
      variables: {
        label: "变量",
        helpText: "流程变量（输入/输出）"
      },
      status: {
        label: "状态",
        helpText: "部署状态：draft → active → obsolete"
      },
      version: {
        label: "版本",
        helpText: "版本号（自动递增）"
      },
      runAs: {
        label: "运行身份",
        helpText: "以系统（管理员）或当前用户权限执行"
      },
      errorHandling: {
        label: "错误处理",
        helpText: "节点失败时的处理方式（fail / retry / continue）"
      }
    }
  },
  job: {
    label: "后台作业"
  },
  datasource: {
    label: "数据源"
  },
  external_catalog: {
    label: "外部目录"
  },
  translation: {
    label: "翻译"
  },
  router: {
    label: "路由器"
  },
  function: {
    label: "函数"
  },
  service: {
    label: "服务"
  },
  email_template: {
    label: "邮件模板",
    sections: {
      identity: {
        label: "基础信息",
        description: "模板 ID 与正文类型"
      },
      subject: {
        label: "主题",
        description: "邮件主题模板"
      },
      html_body: {
        label: "HTML 正文",
        description: "富 HTML 正文。大多数客户端会移除 <head>，因此请使用内联样式。"
      },
      plain_text_body: {
        label: "纯文本正文",
        description: "可选的纯文本替代正文。省略时，服务会从 HTML 正文去除标签生成；显式提供可改善垃圾邮件评分。"
      },
      variables: {
        label: "变量",
        description: "声明的变量。Studio 会将其渲染为提示，并在必填时由 sendTemplate() 校验。"
      },
      delivery_overrides: {
        label: "发送覆盖项",
        description: "可选的模板级 From / Reply-To 覆盖配置。"
      },
      status: {
        label: "状态"
      }
    },
    fields: {
      name: {
        label: "名称",
        helpText: "点分隔的 snake_case（如 auth.password_reset、crm.welcome）"
      },
      label: {
        label: "显示名称"
      },
      category: {
        label: "分类"
      },
      locale: {
        label: "语言区域",
        helpText: "BCP-47 标签，例如 en-US、zh-CN"
      },
      description: {
        label: "描述"
      },
      subject: {
        label: "主题"
      },
      bodyHtml: {
        label: "HTML 正文"
      },
      bodyText: {
        label: "纯文本正文"
      },
      variables: {
        label: "变量",
        helpText: "模板内可引用的变量与默认值"
      },
      fromOverride: {
        label: "发件人覆盖",
        helpText: "示例：{ \"name\": \"Acme Sales\", \"address\": \"sales@acme.com\" }"
      },
      replyTo: {
        label: "回复地址",
        helpText: "Reply-To 邮箱地址"
      },
      active: {
        label: "启用",
        helpText: "未勾选时，sendTemplate() 返回 TEMPLATE_INACTIVE。"
      },
      isSystem: {
        label: "系统内置",
        helpText: "内置模板；租户可以覆盖，但不应删除。"
      }
    }
  },
  permission: {
    label: "权限集 / 配置文件",
    sections: {
      identity: {
        label: "身份",
        description: "权限集或配置文件标识"
      },
      system_permissions: {
        label: "系统权限",
        description: "应用、API、管理与设置访问"
      },
      object_and_field_permissions: {
        label: "对象与字段权限",
        description: "增删改查与字段可见性"
      },
      tab_and_row_level_security: {
        label: "标签页与行级安全",
        description: "导航可见性与共享规则"
      }
    },
    fields: {
      name: {
        label: "名称",
        helpText: "唯一标识符（snake_case）"
      },
      label: {
        label: "显示名称",
        helpText: "面向管理员的显示标签"
      },
      isProfile: {
        label: "是否配置文件",
        helpText: "勾选后作为完整配置文件（而非附加权限集）"
      },
      systemPermissions: {
        label: "系统权限",
        helpText: "应用访问、API、管理操作"
      },
      objects: {
        label: "对象权限",
        helpText: "按对象配置增删改查"
      },
      fields: {
        label: "字段",
        helpText: "按字段配置可读 / 可写"
      },
      tabPermissions: {
        label: "标签页权限",
        helpText: "导航中标签页的可见性"
      },
      rowLevelSecurity: {
        label: "行级安全",
        helpText: "基于记录条件的访问规则"
      },
      contextVariables: {
        label: "上下文变量",
        helpText: "可在规则中引用的变量"
      }
    }
  },
  profile: {
    label: "配置文件",
    sections: {
      identity: {
        label: "标识",
        description: "权限集叠加在配置文件之上以授予额外的访问权限。配置文件是按 1:1 分配给每个用户的基础集合。"
      },
      system_permissions: {
        label: "系统权限",
        description: "与特定对象无关的高级能力——例如 manage_users、view_audit_logs。"
      },
      object_and_field_permissions: {
        label: "对象与字段权限",
        description: "按对象的增删改查 + 按字段的字段级安全（FLS）。可通过矩阵编辑器编辑，或在此处粘贴 JSON。"
      },
      tab_and_row_level_security: {
        label: "标签页与行级安全",
        description: "标签页可见性、RLS 策略，以及用于谓词求值的自定义上下文变量。"
      }
    },
    fields: {
      name: {
        label: "名称",
        helpText: "机器名（snake_case）"
      },
      label: {
        label: "显示名称",
        helpText: "面向管理员显示的标签"
      },
      isProfile: {
        label: "是否配置文件",
        helpText: "配置文件 = 分配给用户的基础集合。权限集 = 附加授予。"
      },
      systemPermissions: {
        label: "系统权限",
        helpText: "系统能力键列表"
      },
      objects: {
        label: "对象权限",
        helpText: "示例：{ \"account\": { allowRead: true, allowEdit: true, ... } }"
      },
      fields: {
        label: "字段",
        helpText: "示例：{ \"account.amount\": { readable: true, editable: false } }"
      },
      tabPermissions: {
        label: "标签页权限",
        helpText: "示例：{ \"app_crm\": \"visible\", \"app_admin\": \"hidden\" }"
      },
      rowLevelSecurity: {
        label: "行级安全",
        helpText: "RLS 策略数组（参见 rls.zod.ts）"
      },
      contextVariables: {
        label: "上下文变量",
        helpText: "RLS 谓词中引用的自定义变量"
      }
    }
  },
  role: {
    label: "角色",
    sections: {
      role: {
        label: "角色定义",
        description: "角色名称与继承关系"
      }
    },
    fields: {
      name: {
        label: "名称",
        helpText: "snake_case 唯一标识符"
      },
      label: {
        label: "显示名称"
      },
      parent: {
        label: "父级",
        helpText: "继承父角色的权限"
      },
      description: {
        label: "描述"
      }
    }
  },
  agent: {
    label: "AI 代理",
    sections: {
      identity: {
        label: "身份信息",
        description: "用户如何识别与调用该代理"
      },
      ai_configuration: {
        label: "AI 配置",
        description: "模型选择、指令、规划与记忆"
      },
      capabilities: {
        label: "能力配置",
        description: "代理可使用的技能、工具与知识来源"
      },
      access: {
        label: "访问与安全",
        description: "谁能使用此代理以及防护措施"
      }
    },
    fields: {
      name: {
        label: "名称",
        helpText: "唯一标识符（snake_case）"
      },
      label: {
        label: "显示名称",
        helpText: "显示名称（如：\"销售助手\"）"
      },
      role: {
        label: "人设角色",
        helpText: "代理人设（如：\"客户支持专家\"）"
      },
      avatar: {
        label: "头像",
        helpText: "头像图片 URL"
      },
      active: {
        label: "启用",
        helpText: "启用或禁用此代理"
      },
      instructions: {
        label: "指令",
        helpText: "系统提示词——告诉代理如何行动与可以做什么"
      },
      model: {
        label: "模型",
        helpText: "AI 模型配置（提供方、模型名、温度等）"
      },
      planning: {
        label: "规划",
        helpText: "自主推理配置（策略、最大迭代、是否重规划）"
      },
      memory: {
        label: "记忆",
        helpText: "记忆管理（短期、长期、反思）"
      },
      lifecycle: {
        label: "生命周期",
        helpText: "定义会话流程的状态机"
      },
      skills: {
        label: "技能",
        helpText: "技能名称（Agent→Skill→Tool 架构）"
      },
      tools: {
        label: "工具",
        helpText: "直接引用的工具（旧版模式）"
      },
      knowledge: {
        label: "知识",
        helpText: "RAG 知识访问配置"
      },
      visibility: {
        label: "可见范围",
        helpText: "范围：全局、组织或私有"
      },
      access: {
        label: "访问",
        helpText: "可以与此代理对话的用户 ID 或角色名"
      },
      permissions: {
        label: "权限",
        helpText: "使用此代理所需的权限"
      },
      tenantId: {
        label: "租户 ID",
        helpText: "限定到特定组织"
      },
      guardrails: {
        label: "护栏",
        helpText: "安全规则与内容策略"
      }
    }
  },
  tool: {
    label: "工具",
    sections: {
      basics: {
        label: "基础信息",
        description: "工具身份与面向 AI 的说明"
      },
      schemas: {
        label: "参数 / 返回结构",
        description: "工具接收的输入与输出形态"
      },
      access_and_safety: {
        label: "访问与安全",
        description: "权限与确认要求"
      }
    },
    fields: {
      name: {
        label: "名称",
        helpText: "唯一标识符（snake_case）"
      },
      label: {
        label: "显示名称",
        helpText: "Studio 中展示的名称"
      },
      description: {
        label: "描述",
        helpText: "告诉 AI 何时使用此工具——请尽量具体！"
      },
      category: {
        label: "分类",
        helpText: "工具类别（data、action、flow、integration 等）"
      },
      objectName: {
        label: "对象名称",
        helpText: "相关对象（若工具针对特定对象）"
      },
      active: {
        label: "启用",
        helpText: "启用或禁用此工具"
      },
      builtIn: {
        label: "内置",
        helpText: "平台内置工具（区别于用户自定义）"
      },
      parameters: {
        label: "参数",
        helpText: "输入参数——定义形如：{name: {type: \"string\", description: \"...\"}}"
      },
      outputSchema: {
        label: "输出 Schema",
        helpText: "用于校验的输出结构（可选）"
      },
      requiresConfirmation: {
        label: "需要确认",
        helpText: "在执行前请求用户确认（用于破坏性操作）"
      },
      permissions: {
        label: "权限",
        helpText: "使用此工具所需的权限"
      }
    }
  },
  skill: {
    label: "技能",
    sections: {
      basics: {
        label: "基础信息",
        description: "名称与描述"
      },
      ai_instructions: {
        label: "AI 指令",
        description: "AI 何时与如何使用该技能"
      },
      triggers: {
        label: "触发条件",
        description: "触发关键词与上下文"
      },
      access: {
        label: "访问",
        description: "哪些智能体可使用"
      }
    },
    fields: {
      name: {
        label: "名称",
        helpText: "唯一标识符（snake_case）"
      },
      label: {
        label: "显示名称",
        helpText: "显示名（如：\"案件管理\"）"
      },
      description: {
        label: "描述",
        helpText: "AI 用来判断是否调用的简短说明"
      },
      active: {
        label: "启用",
        helpText: "启用或禁用此技能"
      },
      instructions: {
        label: "指令",
        helpText: "AI 调用此技能时遵循的详细指令"
      },
      tools: {
        label: "工具",
        helpText: "工具名（支持通配符：action_*）"
      },
      triggerPhrases: {
        label: "触发短语",
        helpText: "激活此技能的自然语言短语"
      },
      triggerConditions: {
        label: "触发条件",
        helpText: "程序化条件（如 objectName == \"case\"）"
      },
      permissions: {
        label: "权限",
        helpText: "使用此技能所需的权限"
      }
    }
  }
};
