listModerationMergeRequests
合并请求队列
经编辑台提交的合并请求,最新的在前;更多结果请跟随 next_cursor。需要 catalog.merge.review 权限。令牌须带 catalog:edit scope。
/v2/moderation/merge-requestsAuthorization: Bearer <用户访问令牌>(用户授权后的访问令牌,不是 API 密钥)参数
| 参数 | 类型 | 位置 | 说明 |
|---|---|---|---|
state | string | query | 仅限某一状态。 openapprovedexecutedrejectedwithdrawnundone |
object | string | query | 仅限某一家族。 workcompanycharacterpersoncredit_name |
origin_site | string | query | 只看从某一个第一方站点提交的请求。 kungalmoyuletmoenextmoeeditor |
cursor | string | query | 来自 next_cursor 的不透明键集游标。 |
limit | integerint64 | query | 每页条数,1-100。默认 20。 |
响应
facetsmap<string, object[]>具名 facet 桶。仅在请求 facets= 时出现。
«key»object[]可空
itemsobject[]必填本页成员。空数组,从不为 null。
amended_atstringdate-time 必填 可空RFC 3339 UTC。未修改时为 null。
amended_byobject必填 可空amended_by_uid 对应的账号。未修改时、或账号目录读取失败时为 null。
amended_by_uidstring必填 可空最近修改这些选择的审核者的中央账号 id。未修改时为 null。
execute_afterstringdate-time 必填 可空批准后冷静期的结束时间。批准前为 null。
executed_atstringdate-time 必填 可空RFC 3339 UTC。执行前为 null。
field_resolutionmap<string, string>必填选定采用源方值的字段,形如 field → source。未列出的字段保留目标方的值(仅在目标方为空时由源方填补),目标方上人工填写的值永远不会被源方的机器值替换。未作任何选择时为空对象。
hide_release_idsstring[]必填落到目标方后会被隐藏的源方发行,通常是与目标方发行重复的那些。空数组,从不为 null。
idstring必填合并请求 id。
movedobject[]必填对已执行或已撤销的合并,执行时各种类有多少行指向源方。其他情况为空数组。
notestring必填请求者的理由,后附处理记录。不得用作判别条件。
objectstring必填类型判别字段。恒为 merge_request。
枚举merge_requestoriginstring必填提交它的通道:经这些接口提交的为 editor;批处理工具各自提交。开放词表;不得用作判别条件。
origin_sitestring必填 可空这次编辑来自哪个站点:kungal(鲲 Galgame 论坛)、moyu、letmoe、nextmoe,直接打开编辑台时为 editor。仅用于归因,从不作为权限依据。早于来源记录(2026-10-21)的记录与批处理工具写入的记录为 null。GET /v2/vocabularies/origin_site 给出各站点的显示名与用户主页 URL 模板。
枚举kungalmoyuletmoenextmoeeditorproposed_atstringdate-time 必填RFC 3339 UTC。
proposed_byobject必填 可空proposed_by_uid 对应的账号。仅在无法读取账号目录时为 null。
proposed_by_uidstring必填请求者的中央账号 id。
source_idstring必填被并掉的条目。执行后其 id 重定向到 target_id。
source_namestring必填source_id 当前的显示名;对已被合并走的条目,取其退役时的名字。无法读取时为空。不得用作判别条件。
statestring必填open 等待审核者;approved 等待冷静期结束,之后执行合并;executed 表示已完成;undone 表示审核者撤销了已执行的合并,source_id 重新在用。
枚举openapprovedexecutedrejectedwithdrawnundonetarget_idstring必填保留的条目。
target_namestring必填target_id 当前的显示名。无法读取时为空。不得用作判别条件。
target_objectstring必填两个条目所属的家族。
枚举workcompanycharacterpersoncredit_nameundo_reportobjectundo_untilstringdate-time 必填 可空审核者以原 id 撤销这次已执行合并的最后期限(catalog.merge_undo_window_days)。无法撤销时为 null:未执行、撤销功能已关闭,或执行于开始记录撤销数据之前。
undone_atstringdate-time 必填 可空RFC 3339 UTC。state 不为 undone 时为 null。
undone_byobject必填 可空undone_by_uid 对应的账号。state 不为 undone 时、或账号目录读取失败时为 null。
undone_by_uidstring必填 可空撤销该合并的审核者的中央账号 id。state 不为 undone 时为 null。
missingstring[]已请求但不可见的 ids。仅出现在 ids=/refs= 批量车道。
next_cursorstring不透明 keyset cursor。末页省略。
objectstring必填类型判别字段。恒为 list。
枚举listtotalintegerint64include_total=true 时出现;页码模式(page=)下恒在。与 items 同一个可见性闸。
total_relationstring仅在 page 模式出现。eq:total 为精确值。gte:total 为下界。
枚举eqgte
请求示例
curl "https://api.nextmoe.dev/v2/moderation/merge-requests" \
-H "Authorization: Bearer <ACCESS_TOKEN>"