listCatalogProposals
编辑提案历史
已提交的提案,最新在前。proposer_uid=+state=merged 且 include_total=true 即按贡献者的计数。本面不下发 patch 与裁决备注。可匿名调用,按 IP 地址限流;应用密钥或带 catalog:read 的用户访问令牌各有更高的额度。
/v2/catalog/proposalscatalog:read可匿名调用(不带凭据按 IPv4 地址或 IPv6 /64 限流(默认 30 次/分钟、1,000 次/天);带 nmk_ 应用密钥或带 catalog:read 的用户访问令牌则走各自更高的额度)参数
| 参数 | 类型 | 位置 | 说明 |
|---|---|---|---|
cursor | string | query | 来自先前 next_cursor 的不透明 keyset cursor。必须以 cur_ 开头。 |
limit | string | query | 页大小 1-100,缺省 20。超过 100 为 400 LIMIT_TOO_LARGE,不钳制。 |
view | string | query | basic(默认)或 full。封闭词表。 |
include | string | query | 逗号分隔的块。本面唯一 token 为 amendments。未知 token 返回 400 UNKNOWN_INCLUDE。 |
fields | string | query | view/include 之后逗号分隔的顶层键。未知 token 返回 400 UNKNOWN_FIELD。object 与 id 始终保留。 |
ids | string | query | 逗号分隔的提案 id,最多 100 个。批量车道:无分页。 |
include_total | string | query | true 则包含 total。仅 true 或 false。 |
sort | string | query | filed_desc 是唯一键。封闭词表。 |
object | string | query | 封闭族筛选:work、company、character、release、tag、engine、series、person、credit_name、trait。 |
entity_id | string | query | 某一实体的 catalog id。需要 object=。 |
site | string | query | 租户键。开放词表;未知值匹配不到任何内容。 |
proposer_uid | string | query | 提案者的中央账号 id。不是 catalog id。 |
origin_site | string | query | 封闭:kungal、moyu、letmoe、nextmoe、editor。只保留从该站点提交的提案。未知值为 400 UNKNOWN_ENUM_VALUE。 |
state | string | query | 封闭:open、merged、declined、withdrawn。 |
响应
facetsmap<string, object[]>具名 facet 桶。仅在请求 facets= 时出现。
«key»object[]可空
itemsobject[]必填本页成员。空数组,从不为 null。
amendmentsobject[]仅当 include=amendments 时出现。没有则为空数组。
base_revision_seqintegerint64 必填本提案写就时所对照的修订 seq。
changed_fieldsstring[]include=patch 时出现。effective_patch 写入的字段键,已排序。
conflict_fieldsstring[]未关闭的提案在 include=patch 时出现。effective_patch 中被 base_revision_seq 之后记录的修订同样改动过的字段键:合并会覆盖那次后来的改动。没有时为空数组。
created_atstringdate-time 必填RFC 3339 UTC。
creationobjectdecided_atstringdate-time 必填 可空RFC 3339 UTC。仍开放时为 null。
decided_byobject必填 可空decided_by_uid 对应的账号。提案仍待处理时,或账号目录读取失败时为 null。
decided_by_uidstring必填 可空裁决者的中央账号 id。仍开放时为 null。
effective_patchmap<string, object>仅当 include=patch 时出现。把每条修正都折叠进去之后的 patch;这是合入时会写入的内容。
entity_idstring必填目标 catalog id。
entity_typestring必填编辑引擎类型,例如 catalog.work。不得用作判别条件。
idstring必填提案 id。
notestring必填提案人自己写的摘要。不得用作判别条件。
objectstring必填类型判别字段。恒为 proposal。
枚举proposalorigin_sitestring必填 可空这次编辑来自哪个站点:kungal(鲲 Galgame 论坛)、moyu、letmoe、nextmoe,直接打开编辑台时为 editor。仅用于归因,从不作为权限依据。早于来源记录(2026-10-21)的记录与批处理工具写入的记录为 null。GET /v2/vocabularies/origin_site 给出各站点的显示名与用户主页 URL 模板。
枚举kungalmoyuletmoenextmoeeditorpatchmap<string, object>仅当 include=patch 时出现;该块只由 me 面与 moderation 面下发。字段键到拟议值。
proposerobject必填 可空proposer_uid 对应的账号。仅在账号目录读取失败时为 null。
proposer_uidstring必填提案者的中央账号 id,在每个第一方站点上都是同一个 id。不是 catalog id。
sitestring必填本提案提交时所在的租户。开放词表;不得用作判别条件。
statestring必填提案生命周期状态。
枚举openmergeddeclinedwithdrawntarget_objectstring必填本提案所针对实体的族。
枚举workcompanycharacterreleasetagengineseriespersoncredit_nametraitwalkthroughupdated_atstringdate-time 必填RFC 3339 UTC。
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/catalog/proposals"