diff --git a/api-reference/on-call.openapi.en.json b/api-reference/on-call.openapi.en.json index 252afe6a..a76fc6d4 100644 --- a/api-reference/on-call.openapi.en.json +++ b/api-reference/on-call.openapi.en.json @@ -22750,6 +22750,14 @@ "type": "integer", "format": "int64", "description": "Soft-delete time, Unix epoch milliseconds. Omitted when not deleted." + }, + "via": { + "type": "string", + "description": "Surface that wrote the entry on a user's behalf; currently only `ai_sre`. Omitted when a user created the entry directly." + }, + "agent_session_id": { + "type": "string", + "description": "AI SRE session that produced the entry. Omitted when no agent wrote it." } } }, @@ -28552,6 +28560,20 @@ "type": "string", "description": "Zoom bot message template source." }, + "incident_card_closed_action_apps": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "feishu_app", + "dingtalk_app", + "wecom_app", + "slack_app", + "teams_app" + ] + }, + "description": "IM apps whose closed-incident cards keep the custom action buttons. Supported values: `feishu_app`, `dingtalk_app`, `wecom_app`, `slack_app`, `teams_app`. An empty list hides the buttons on every app." + }, "incident_card_hidden_fields": { "$ref": "#/components/schemas/IncidentCardHiddenFields", "description": "Incident card fields hidden per IM app type." @@ -28626,6 +28648,7 @@ "updated_by", "created_at", "updated_at", + "incident_card_closed_action_apps", "incident_card_hidden_fields" ], "properties": { @@ -28725,6 +28748,20 @@ "type": "string", "description": "Zoom bot message template source." }, + "incident_card_closed_action_apps": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "feishu_app", + "dingtalk_app", + "wecom_app", + "slack_app", + "teams_app" + ] + }, + "description": "IM apps whose closed-incident cards keep the custom action buttons. Supported values: `feishu_app`, `dingtalk_app`, `wecom_app`, `slack_app`, `teams_app`. An empty list hides the buttons on every app." + }, "incident_card_hidden_fields": { "$ref": "#/components/schemas/IncidentCardHiddenFields", "description": "Incident card fields hidden per IM app type; an empty object when none are configured." @@ -29015,6 +29052,20 @@ ], "description": "Zoom bot message template source. Omit to keep the current content; send an empty string to clear it." }, + "incident_card_closed_action_apps": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "feishu_app", + "dingtalk_app", + "wecom_app", + "slack_app", + "teams_app" + ] + }, + "description": "Replaces the retained-app list when sent. Supported values: `feishu_app`, `dingtalk_app`, `wecom_app`, `slack_app`, `teams_app`. Omit the field to leave it unchanged." + }, "incident_card_hidden_fields": { "$ref": "#/components/schemas/IncidentCardHiddenFields", "description": "Incident card fields hidden per IM app type." @@ -29691,7 +29742,8 @@ "incident_id", "status", "created_at", - "plugin_type" + "plugin_type", + "chat_name" ], "properties": { "account_id": { @@ -29734,6 +29786,14 @@ "plugin_type": { "type": "string", "description": "IM plugin type (e.g. `feishu`, `dingtalk`, `wecom`, `slack`)." + }, + "chat_name": { + "type": "string", + "description": "Display name of the group chat on the IM side." + }, + "integration_unavailable": { + "type": "boolean", + "description": "True when the IM integration behind this war room is disabled or no longer exists." } } }, diff --git a/api-reference/on-call.openapi.zh.json b/api-reference/on-call.openapi.zh.json index c203decf..3d49ef29 100644 --- a/api-reference/on-call.openapi.zh.json +++ b/api-reference/on-call.openapi.zh.json @@ -22750,6 +22750,14 @@ "type": "integer", "format": "int64", "description": "软删除时间,Unix 时间戳(毫秒)。未删除时不返回该字段。" + }, + "via": { + "type": "string", + "description": "由 AI SRE 代为写入该记录时的来源标识,目前只有 `ai_sre`;用户直接操作创建的记录不返回该字段。" + }, + "agent_session_id": { + "type": "string", + "description": "写入该记录的 AI SRE 会话 ID;非智能体写入时不返回该字段。" } } }, @@ -28552,6 +28560,20 @@ "type": "string", "description": "Zoom 机器人消息模板源。" }, + "incident_card_closed_action_apps": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "feishu_app", + "dingtalk_app", + "wecom_app", + "slack_app", + "teams_app" + ] + }, + "description": "已关闭故障的卡片仍保留自定义操作按钮的 IM 应用。可选值:`feishu_app`、`dingtalk_app`、`wecom_app`、`slack_app`、`teams_app`;空列表表示所有应用都隐藏这些按钮。" + }, "incident_card_hidden_fields": { "$ref": "#/components/schemas/IncidentCardHiddenFields", "description": "按 IM 应用类型隐藏的故障卡片字段。" @@ -28626,6 +28648,7 @@ "updated_by", "created_at", "updated_at", + "incident_card_closed_action_apps", "incident_card_hidden_fields" ], "properties": { @@ -28725,6 +28748,20 @@ "type": "string", "description": "Zoom 机器人消息模板源。" }, + "incident_card_closed_action_apps": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "feishu_app", + "dingtalk_app", + "wecom_app", + "slack_app", + "teams_app" + ] + }, + "description": "已关闭故障的卡片仍保留自定义操作按钮的 IM 应用。可选值:`feishu_app`、`dingtalk_app`、`wecom_app`、`slack_app`、`teams_app`;空列表表示所有应用都隐藏这些按钮。" + }, "incident_card_hidden_fields": { "$ref": "#/components/schemas/IncidentCardHiddenFields", "description": "按 IM 应用类型配置的故障卡片隐藏字段,未配置时为空对象。" @@ -29015,6 +29052,20 @@ ], "description": "Zoom 机器人消息模板源。省略时保持当前内容;传空字符串表示清空。" }, + "incident_card_closed_action_apps": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "feishu_app", + "dingtalk_app", + "wecom_app", + "slack_app", + "teams_app" + ] + }, + "description": "传入时整体替换保留自定义操作按钮的应用列表。可选值:`feishu_app`、`dingtalk_app`、`wecom_app`、`slack_app`、`teams_app`;不传该字段则保持不变。" + }, "incident_card_hidden_fields": { "$ref": "#/components/schemas/IncidentCardHiddenFields", "description": "按 IM 应用类型隐藏的故障卡片字段。" @@ -29691,7 +29742,8 @@ "incident_id", "status", "created_at", - "plugin_type" + "plugin_type", + "chat_name" ], "properties": { "account_id": { @@ -29734,6 +29786,14 @@ "plugin_type": { "type": "string", "description": "IM 插件类型(如 `feishu`、`dingtalk`、`wecom`、`slack`)。" + }, + "chat_name": { + "type": "string", + "description": "IM 侧群聊的显示名称。" + }, + "integration_unavailable": { + "type": "boolean", + "description": "该作战室背后的 IM 集成已禁用或已不存在时为 true。" } } }, diff --git a/api-reference/openapi.en.json b/api-reference/openapi.en.json index 6f739801..2a0e5890 100644 --- a/api-reference/openapi.en.json +++ b/api-reference/openapi.en.json @@ -7575,6 +7575,46 @@ } } }, + "PendingUserMessage": { + "type": "object", + "description": "A queued user message that the agent has not consumed yet, as carried by `pending_messages`.", + "required": [ + "invocation_id", + "person_id", + "query" + ], + "properties": { + "invocation_id": { + "type": "string", + "description": "Invocation ID of the queued message." + }, + "client_msg_id": { + "type": "string", + "description": "Client-supplied message ID, echoed back for de-duplication. Omitted when absent." + }, + "person_id": { + "type": "integer", + "format": "int64", + "description": "Person ID of the sender." + }, + "steering": { + "type": "boolean", + "description": "True when the message was sent as a mid-turn steering instruction. Omitted when false." + }, + "query": { + "type": "string", + "description": "Message text." + }, + "parts": { + "type": "array", + "items": { + "type": "object", + "additionalProperties": true + }, + "description": "Request parts passed through verbatim (text, file, ref, or skill entries). Omitted when the original message carried none." + } + } + }, "PrometheusQueryParams": { "type": "object", "additionalProperties": true, @@ -10511,6 +10551,14 @@ "description": "Last update timestamp in Unix epoch milliseconds.", "format": "int64", "type": "integer" + }, + "via": { + "type": "string", + "description": "Surface that wrote the entry on a user's behalf; currently only `ai_sre`. Omitted when a user created the entry directly." + }, + "agent_session_id": { + "type": "string", + "description": "AI SRE session that produced the entry. Omitted when no agent wrote it." } }, "required": [ @@ -23651,13 +23699,21 @@ "suggest_init": { "description": "Account-wide onboarding flag: true when the account has zero knowledge packs in any scope; not specific to this session.", "type": "boolean" + }, + "pending_messages": { + "type": "array", + "items": { + "$ref": "#/components/schemas/PendingUserMessage" + }, + "description": "Human messages queued but not yet picked up by the agent, in execution order. Always an array — empty when nothing is queued." } }, "required": [ "session", "events", "has_more_older", - "suggest_init" + "suggest_init", + "pending_messages" ], "type": "object" }, @@ -23768,6 +23824,10 @@ "description": "True when an agent turn is currently in flight for this session.", "type": "boolean" }, + "standing_tasks": { + "type": "integer", + "description": "Number of process-type tasks (background shell or monitor) still alive when the response was rendered." + }, "last_event_at": { "description": "Unix timestamp in milliseconds of the most recent assistant-side event.", "format": "int64", @@ -23781,6 +23841,10 @@ "description": "Creator person id.", "type": "string" }, + "creator_name": { + "type": "string", + "description": "Display name of the session creator, resolved when the response is rendered. Omitted when the member lookup fails." + }, "pinned_at": { "description": "Caller's per-user pin time as a Unix timestamp in milliseconds; 0 means not pinned.", "format": "int64", @@ -23872,6 +23936,7 @@ "archived_at", "pinned_at", "is_running", + "standing_tasks", "has_unread", "current_turn_started_at", "current_turn_active_ms", @@ -26107,6 +26172,20 @@ "type": "boolean", "description": "Show the Create War Room button on Feishu app cards." }, + "incident_card_closed_action_apps": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "feishu_app", + "dingtalk_app", + "wecom_app", + "slack_app", + "teams_app" + ] + }, + "description": "IM apps whose closed-incident cards keep the custom action buttons. Supported values: `feishu_app`, `dingtalk_app`, `wecom_app`, `slack_app`, `teams_app`. An empty list hides the buttons on every app." + }, "incident_card_hidden_fields": { "$ref": "#/components/schemas/IncidentCardHiddenFields", "description": "Incident card fields hidden per IM app type." @@ -26265,6 +26344,20 @@ "type": "boolean", "description": "Whether Feishu app cards show the Create War Room button. Hidden when the incident has no responders." }, + "incident_card_closed_action_apps": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "feishu_app", + "dingtalk_app", + "wecom_app", + "slack_app", + "teams_app" + ] + }, + "description": "IM apps whose closed-incident cards keep the custom action buttons. Supported values: `feishu_app`, `dingtalk_app`, `wecom_app`, `slack_app`, `teams_app`. An empty list hides the buttons on every app." + }, "incident_card_hidden_fields": { "$ref": "#/components/schemas/IncidentCardHiddenFields", "description": "Incident card fields hidden per IM app type; an empty object when none are configured." @@ -26373,6 +26466,7 @@ "updated_by", "created_at", "updated_at", + "incident_card_closed_action_apps", "incident_card_hidden_fields" ], "type": "object" @@ -26532,6 +26626,20 @@ ], "description": "When set, show or hide the Create War Room button on Feishu app cards. Omit to keep the existing setting." }, + "incident_card_closed_action_apps": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "feishu_app", + "dingtalk_app", + "wecom_app", + "slack_app", + "teams_app" + ] + }, + "description": "Replaces the retained-app list when sent. Supported values: `feishu_app`, `dingtalk_app`, `wecom_app`, `slack_app`, `teams_app`. Omit the field to leave it unchanged." + }, "incident_card_hidden_fields": { "$ref": "#/components/schemas/IncidentCardHiddenFields", "description": "Incident card fields hidden per IM app type." @@ -28021,6 +28129,14 @@ "deleted" ], "type": "string" + }, + "chat_name": { + "type": "string", + "description": "Display name of the group chat on the IM side." + }, + "integration_unavailable": { + "type": "boolean", + "description": "True when the IM integration behind this war room is disabled or no longer exists." } }, "required": [ @@ -28031,7 +28147,8 @@ "incident_id", "status", "created_at", - "plugin_type" + "plugin_type", + "chat_name" ], "type": "object" }, diff --git a/api-reference/openapi.zh.json b/api-reference/openapi.zh.json index 401b058d..eac96606 100644 --- a/api-reference/openapi.zh.json +++ b/api-reference/openapi.zh.json @@ -7575,6 +7575,46 @@ } } }, + "PendingUserMessage": { + "type": "object", + "description": "尚未被智能体消费的排队用户消息,由 `pending_messages` 返回。", + "required": [ + "invocation_id", + "person_id", + "query" + ], + "properties": { + "invocation_id": { + "type": "string", + "description": "该排队消息的 invocation ID。" + }, + "client_msg_id": { + "type": "string", + "description": "客户端传入的消息 ID,原样返回用于去重;未传时不返回。" + }, + "person_id": { + "type": "integer", + "format": "int64", + "description": "发送者 person ID。" + }, + "steering": { + "type": "boolean", + "description": "该消息是轮次中的 steering 指令时为 true;false 时不返回。" + }, + "query": { + "type": "string", + "description": "消息正文。" + }, + "parts": { + "type": "array", + "items": { + "type": "object", + "additionalProperties": true + }, + "description": "原样透传的请求 parts(text / file / ref / skill 等);原消息未携带时不返回。" + } + } + }, "PrometheusQueryParams": { "type": "object", "additionalProperties": true, @@ -10511,6 +10551,14 @@ "description": "最后更新时间,Unix 毫秒时间戳。", "format": "int64", "type": "integer" + }, + "via": { + "type": "string", + "description": "由 AI SRE 代为写入该记录时的来源标识,目前只有 `ai_sre`;用户直接操作创建的记录不返回该字段。" + }, + "agent_session_id": { + "type": "string", + "description": "写入该记录的 AI SRE 会话 ID;非智能体写入时不返回该字段。" } }, "required": [ @@ -23651,13 +23699,21 @@ "suggest_init": { "description": "账户级引导标志:当账户在任何范围内都没有知识包时为 true;并非该会话独有的属性。", "type": "boolean" + }, + "pending_messages": { + "type": "array", + "items": { + "$ref": "#/components/schemas/PendingUserMessage" + }, + "description": "已排队但尚未被智能体消费的用户消息,按执行顺序排列。始终返回数组;无排队消息时为空数组。" } }, "required": [ "session", "events", "has_more_older", - "suggest_init" + "suggest_init", + "pending_messages" ], "type": "object" }, @@ -23768,6 +23824,10 @@ "description": "当该会话当前有正在进行的智能体轮次时为 true。", "type": "boolean" }, + "standing_tasks": { + "type": "integer", + "description": "渲染响应时仍存活的进程型任务数(后台命令或 monitor)。" + }, "last_event_at": { "description": "最近一条助手侧事件的时间,Unix 毫秒时间戳。", "format": "int64", @@ -23781,6 +23841,10 @@ "description": "创建者人员 ID。", "type": "string" }, + "creator_name": { + "type": "string", + "description": "会话创建者的显示名,渲染响应时解析得到;成员查询失败时不返回该字段。" + }, "pinned_at": { "description": "调用者的个人置顶时间,Unix 毫秒时间戳;0 表示未置顶。", "format": "int64", @@ -23872,6 +23936,7 @@ "archived_at", "pinned_at", "is_running", + "standing_tasks", "has_unread", "current_turn_started_at", "current_turn_active_ms", @@ -26107,6 +26172,20 @@ "type": "boolean", "description": "飞书应用卡片展示「创建作战室」按钮。" }, + "incident_card_closed_action_apps": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "feishu_app", + "dingtalk_app", + "wecom_app", + "slack_app", + "teams_app" + ] + }, + "description": "已关闭故障的卡片仍保留自定义操作按钮的 IM 应用。可选值:`feishu_app`、`dingtalk_app`、`wecom_app`、`slack_app`、`teams_app`;空列表表示所有应用都隐藏这些按钮。" + }, "incident_card_hidden_fields": { "$ref": "#/components/schemas/IncidentCardHiddenFields", "description": "按 IM 应用类型隐藏的故障卡片字段。" @@ -26265,6 +26344,20 @@ "type": "boolean", "description": "飞书应用卡片是否展示「创建作战室」按钮;故障无响应人时不展示。" }, + "incident_card_closed_action_apps": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "feishu_app", + "dingtalk_app", + "wecom_app", + "slack_app", + "teams_app" + ] + }, + "description": "已关闭故障的卡片仍保留自定义操作按钮的 IM 应用。可选值:`feishu_app`、`dingtalk_app`、`wecom_app`、`slack_app`、`teams_app`;空列表表示所有应用都隐藏这些按钮。" + }, "incident_card_hidden_fields": { "$ref": "#/components/schemas/IncidentCardHiddenFields", "description": "按 IM 应用类型配置的故障卡片隐藏字段,未配置时为空对象。" @@ -26373,6 +26466,7 @@ "updated_by", "created_at", "updated_at", + "incident_card_closed_action_apps", "incident_card_hidden_fields" ], "type": "object" @@ -26532,6 +26626,20 @@ ], "description": "设置后决定飞书应用卡片是否展示「创建作战室」按钮;省略时保持当前设置。" }, + "incident_card_closed_action_apps": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "feishu_app", + "dingtalk_app", + "wecom_app", + "slack_app", + "teams_app" + ] + }, + "description": "传入时整体替换保留自定义操作按钮的应用列表。可选值:`feishu_app`、`dingtalk_app`、`wecom_app`、`slack_app`、`teams_app`;不传该字段则保持不变。" + }, "incident_card_hidden_fields": { "$ref": "#/components/schemas/IncidentCardHiddenFields", "description": "按 IM 应用类型隐藏的故障卡片字段。" @@ -28021,6 +28129,14 @@ "deleted" ], "type": "string" + }, + "chat_name": { + "type": "string", + "description": "IM 侧群聊的显示名称。" + }, + "integration_unavailable": { + "type": "boolean", + "description": "该作战室背后的 IM 集成已禁用或已不存在时为 true。" } }, "required": [ @@ -28031,7 +28147,8 @@ "incident_id", "status", "created_at", - "plugin_type" + "plugin_type", + "chat_name" ], "type": "object" }, diff --git a/api-reference/safari.openapi.en.json b/api-reference/safari.openapi.en.json index 8c513b5e..3a9ab1d0 100644 --- a/api-reference/safari.openapi.en.json +++ b/api-reference/safari.openapi.en.json @@ -7049,6 +7049,46 @@ "preflight" ] }, + "PendingUserMessage": { + "type": "object", + "description": "A queued user message that the agent has not consumed yet, as carried by `pending_messages`.", + "required": [ + "invocation_id", + "person_id", + "query" + ], + "properties": { + "invocation_id": { + "type": "string", + "description": "Invocation ID of the queued message." + }, + "client_msg_id": { + "type": "string", + "description": "Client-supplied message ID, echoed back for de-duplication. Omitted when absent." + }, + "person_id": { + "type": "integer", + "format": "int64", + "description": "Person ID of the sender." + }, + "steering": { + "type": "boolean", + "description": "True when the message was sent as a mid-turn steering instruction. Omitted when false." + }, + "query": { + "type": "string", + "description": "Message text." + }, + "parts": { + "type": "array", + "items": { + "type": "object", + "additionalProperties": true + }, + "description": "Request parts passed through verbatim (text, file, ref, or skill entries). Omitted when the original message carried none." + } + } + }, "PreflightResult": { "type": "object", "description": "Readiness checks computed before a manual run is allowed to start.", @@ -7215,13 +7255,21 @@ "suggest_init": { "type": "boolean", "description": "Account-wide onboarding flag: true when the account has zero knowledge packs in any scope; not specific to this session." + }, + "pending_messages": { + "type": "array", + "items": { + "$ref": "#/components/schemas/PendingUserMessage" + }, + "description": "Human messages queued but not yet picked up by the agent, in execution order. Always an array — empty when nothing is queued." } }, "required": [ "session", "events", "has_more_older", - "suggest_init" + "suggest_init", + "pending_messages" ] }, "SessionItem": { @@ -7259,6 +7307,10 @@ "type": "string", "description": "Creator person id." }, + "creator_name": { + "type": "string", + "description": "Display name of the session creator, resolved when the response is rendered. Omitted when the member lookup fails." + }, "team_id": { "type": "integer", "format": "int64", @@ -7387,6 +7439,10 @@ "type": "boolean", "description": "True when an agent turn is currently in flight for this session." }, + "standing_tasks": { + "type": "integer", + "description": "Number of process-type tasks (background shell or monitor) still alive when the response was rendered." + }, "has_unread": { "type": "boolean", "description": "True when there is assistant output the caller has not yet viewed." @@ -7436,6 +7492,7 @@ "archived_at", "pinned_at", "is_running", + "standing_tasks", "has_unread", "current_turn_started_at", "current_turn_active_ms", diff --git a/api-reference/safari.openapi.zh.json b/api-reference/safari.openapi.zh.json index be93ac17..702d9e9e 100644 --- a/api-reference/safari.openapi.zh.json +++ b/api-reference/safari.openapi.zh.json @@ -7049,6 +7049,46 @@ "preflight" ] }, + "PendingUserMessage": { + "type": "object", + "description": "尚未被智能体消费的排队用户消息,由 `pending_messages` 返回。", + "required": [ + "invocation_id", + "person_id", + "query" + ], + "properties": { + "invocation_id": { + "type": "string", + "description": "该排队消息的 invocation ID。" + }, + "client_msg_id": { + "type": "string", + "description": "客户端传入的消息 ID,原样返回用于去重;未传时不返回。" + }, + "person_id": { + "type": "integer", + "format": "int64", + "description": "发送者 person ID。" + }, + "steering": { + "type": "boolean", + "description": "该消息是轮次中的 steering 指令时为 true;false 时不返回。" + }, + "query": { + "type": "string", + "description": "消息正文。" + }, + "parts": { + "type": "array", + "items": { + "type": "object", + "additionalProperties": true + }, + "description": "原样透传的请求 parts(text / file / ref / skill 等);原消息未携带时不返回。" + } + } + }, "PreflightResult": { "type": "object", "description": "在允许发起手动运行前计算出的就绪检查结果。", @@ -7215,13 +7255,21 @@ "suggest_init": { "type": "boolean", "description": "账户级引导标志:当账户在任何范围内都没有知识包时为 true;并非该会话独有的属性。" + }, + "pending_messages": { + "type": "array", + "items": { + "$ref": "#/components/schemas/PendingUserMessage" + }, + "description": "已排队但尚未被智能体消费的用户消息,按执行顺序排列。始终返回数组;无排队消息时为空数组。" } }, "required": [ "session", "events", "has_more_older", - "suggest_init" + "suggest_init", + "pending_messages" ] }, "SessionItem": { @@ -7259,6 +7307,10 @@ "type": "string", "description": "创建者人员 ID。" }, + "creator_name": { + "type": "string", + "description": "会话创建者的显示名,渲染响应时解析得到;成员查询失败时不返回该字段。" + }, "team_id": { "type": "integer", "format": "int64", @@ -7387,6 +7439,10 @@ "type": "boolean", "description": "当该会话当前有正在进行的智能体轮次时为 true。" }, + "standing_tasks": { + "type": "integer", + "description": "渲染响应时仍存活的进程型任务数(后台命令或 monitor)。" + }, "has_unread": { "type": "boolean", "description": "当存在调用者尚未查看的助手输出时为 true。" @@ -7436,6 +7492,7 @@ "archived_at", "pinned_at", "is_running", + "standing_tasks", "has_unread", "current_turn_started_at", "current_turn_active_ms",