跳转至

ListNotifications

列出当前用户的通知。默认返回活动通知(未删除、未完成),按最近优先排序。使用 states 选择精确的 unseen、seen 或 done 状态。seen 不包含 done;空列表包含所有状态。

参数

参数 类型 必填 描述
limit integer 否 要返回的通知最大数量。默认为 20,最大 50。
states ("unseen" | "seen" | "done")[] 否 要包含的精确状态:unseen、seen、done。默认为 [unseen, seen]。空列表包含所有状态。
includeTypes ("email" | "message" | "channel" | "document" | "project" | "call" | "task" | "github" | "reminder" | "calendar" | "agent")[] 否 筛选特定的通知项类型。如果省略,则返回所有类型。例如:["email", "message"] 仅返回 email 和 message 通知。
entities NotificationEntityFilter[] 否 筛选特定实体的通知。将每个 id 与其规范的 entityType 配对以避免歧义。例如:[{"entityType":"email_thread","id":"..."}] 返回一个邮件线程的通知。

本页原文 Markdown:在 AtomGit 查看·内容源自开源项目 macro3/macro