listCatalogClaimEvents
认领事件历史
全部认领生命周期变迁,缺省最新在前。sort=recorded_asc 按 id 从最旧走同一集合,这是镜像或奖励 cron 用水位读取的形状。需要在 catalog:read 之上带 claim_events:read scope 的应用密钥;该 scope 由运营授予,不可自助申请,因为事件携带拒绝原因与审核员操作。
/v2/catalog/claim-eventscatalog:read + claim_events:readAuthorization: Bearer nmk_live_…(v2 应用密钥,门户自助铸造,无需申请)参数
| 参数 | 类型 | 位置 | 说明 |
|---|---|---|---|
cursor | string | query | 来自先前 next_cursor 的不透明 keyset cursor。必须以 cur_ 开头。 |
limit | string | query | 页大小 1-100,缺省 20。超过 100 为 400 LIMIT_TOO_LARGE,不钳制。 |
view | string | query | basic(默认)或 full。封闭词表。 |
fields | string | query | 逗号分隔的顶层键。未知 token 返回 400 UNKNOWN_FIELD。object 与 id 始终保留。 |
ids | string | query | 逗号分隔的事件 id,最多 100 个。批量车道:无分页。 |
include_total | string | query | true 则包含 total。仅 true 或 false。 |
sort | string | query | recorded_desc(缺省)或 recorded_asc。封闭。recorded_asc 是镜像按水位续读的走法。 |
site | string | query | 记录该事件所用的租户键。开放词表;未知值匹配不到任何内容。 |
actor_uid | string | query | 认领站自己的 actor 用户 id。不是 catalog id。 |
work_id | string | query | 用于收窄到某一作品认领历史的作品 id。 |
响应
facetsmap<string, object[]>具名 facet 桶。仅在请求 facets= 时出现。
«key»object[]可空
itemsobject[]必填本页成员。空数组,从不为 null。
actor_uidstring必填认领站自己的 actor 用户 id。不是 catalog id。
created_atstringdate-time 必填RFC 3339 UTC。
from_statestring必填 可空事件之前的状态。创建认领的那条事件上为 null。
枚举nonelivedraftpendingdeclinedhiddenidstring必填认领事件 id。升序;镜像所存储的水位。
objectstring必填类型判别字段。恒为 claim_event。
枚举claim_eventproduct_work_idstring必填 可空该认领当前的产品侧 id——是快照,不是事件发生时的值。作品未认领或已不存在时为 null。
reasonstring必填 可空操作者备注,通常为拒绝原因。未填写时为 null。不得用作判别条件。
sitestring必填记录该事件所用的租户。开放词表;不得用作判别条件。
to_statestring必填事件之后的状态。
枚举nonelivedraftpendingdeclinedhiddenwork_idstring必填事件所属的作品 id。
missingstring[]已请求但不可见的 ids。仅出现在 ids=/refs= 批量车道。
next_cursorstring不透明 keyset cursor。末页省略。
objectstring必填类型判别字段。恒为 list。
枚举listtotalintegerint64仅当 include_total=true 时出现。与 items 同一可见性闸。
请求示例
curl "https://api.nextmoe.dev/v2/catalog/claim-events" \
-H "Authorization: Bearer nmk_live_<YOUR_KEY>"