preset 结构以及所有由枚举支持的选项。
client.presets.list(options?)
列出已认证账号拥有的所有预设。
client.presets.get(presetId, options?)
获取单个预设。
client.presets.create(body, options?)
创建一个新的预设。
string
required
在 Youka UI 中显示的名称。
KaraokePreset
required
完整的预设内容。可使用
渲染设置 参考 查看便于阅读的字段映射,或使用 KaraokePresetSchema.toJSONSchema() 获取机器可读的 schema。boolean
将新预设标记为账号默认值。同一时间只能有一个预设作为默认值。
client.presets.update(presetId, body, options?)
对现有预设进行补丁更新。可传入 name、preset、isDefault 的任意子集。
client.presets.delete(presetId, options?)
删除一个预设。
client.presets.setDefault(presetId, options?)
将某个预设标记为新项目的默认预设。这是对 client.presets.update(presetId, { isDefault: true }) 的便捷封装。
发现有效字段
SDK 导出了用于校验预设内容的 Zod schema。你可以在运行时将其转换为 JSON Schema,供智能体与表单构建器使用:应用预设
可在三个节点应用预设:- 在创建项目时
- 在项目设置中
- 在导出时
