同步一页会话
接口边界
- 调用方:仅限受信业务后端
- 作用域:limit 限制本页扫描的 membership 条目数,不保证 conversations 数组达到该数量;墓碑进入 deletes,暂时无法补水的条目进入 unresolved。
- 成功判定:只以 done=true 结束完整轮次并保存 coverage;reset_required=true 时必须重建本地会话目录。
POST
/conversation/list返回一页有界 membership;只有 done=true 才表示本轮完成。
请求主体
application/json
会话目录分页与删除覆盖参数。
TypeScript 定义
在 TypeScript 中使用 request body 类型。
会话目录分页参数。
响应主体
application/json
application/json
application/json
{ "conversations": [ { "channel_id": "string", "channel_type": 1, "active_at": 0, "read_seq": 0, "deleted_to_seq": 0, "unread": 0, "last_message": { "message_id": 0, "message_idstr": "string", "message_seq": 0, "from_uid": "string", "client_msg_no": "string", "server_timestamp_ms": 0, "payload": "string" } } ], "deletes": [ { "channel_id": "string", "channel_type": 1 } ], "unresolved": [ { "channel_id": "string", "channel_type": 1 } ], "next_cursor": "string", "done": true, "coverage": 0, "tombstones_retained_since": 0, "reset_required": true}