From 21b63f796043381ef4178ff57cfe77499ec0f99f Mon Sep 17 00:00:00 2001 From: ysyneu Date: Tue, 29 Sep 2026 05:41:38 -0700 Subject: [PATCH] chore: sync OpenAPI spec, change_status gains Failed Change and change-event items now document a sixth change_status value, Failed. The vendored spec keeps the detail_url field on AlertInfo and AlertItem, which the upstream spec does not carry yet. --- models_gen.go | 2 ++ openapi/openapi.en.json | 10 ++++++---- openapi/openapi.zh.json | 10 ++++++---- 3 files changed, 14 insertions(+), 8 deletions(-) diff --git a/models_gen.go b/models_gen.go index bab3084..45bb5d3 100644 --- a/models_gen.go +++ b/models_gen.go @@ -1844,6 +1844,7 @@ type ChangeEventItem struct { // | `Processing` | Being executed. | // | `Canceled` | Canceled. | // | `Done` | Completed. | + // | `Failed` | Failed. | ChangeStatus string `json:"change_status" toon:"change_status"` // Collaboration channel this change event is routed to. ChannelID int64 `json:"channel_id" toon:"channel_id"` @@ -1885,6 +1886,7 @@ type ChangeItem struct { // | `Processing` | Being executed. | // | `Canceled` | Canceled. | // | `Done` | Completed. | + // | `Failed` | Failed. | ChangeStatus string `json:"change_status" toon:"change_status"` // Collaboration channel this change is routed to. ChannelID int64 `json:"channel_id" toon:"channel_id"` diff --git a/openapi/openapi.en.json b/openapi/openapi.en.json index 9d97f3e..5c2bdd2 100644 --- a/openapi/openapi.en.json +++ b/openapi/openapi.en.json @@ -4502,13 +4502,14 @@ "type": "string" }, "change_status": { - "description": "Lifecycle status of the change event, reported by the change source as execution progresses.\n| Value | Meaning |\n|---|---|\n| `Planned` | Planned, not started. |\n| `Ready` | Ready for execution. |\n| `Processing` | Being executed. |\n| `Canceled` | Canceled. |\n| `Done` | Completed. |", + "description": "Lifecycle status of the change event, reported by the change source as execution progresses.\n| Value | Meaning |\n|---|---|\n| `Planned` | Planned, not started. |\n| `Ready` | Ready for execution. |\n| `Processing` | Being executed. |\n| `Canceled` | Canceled. |\n| `Done` | Completed. |\n| `Failed` | Failed. |", "enum": [ "Planned", "Ready", "Processing", "Canceled", - "Done" + "Done", + "Failed" ], "type": "string" }, @@ -4584,13 +4585,14 @@ "type": "string" }, "change_status": { - "description": "Current lifecycle status of the change.\n| Value | Meaning |\n|---|---|\n| `Planned` | Planned, not started. |\n| `Ready` | Ready for execution. |\n| `Processing` | Being executed. |\n| `Canceled` | Canceled. |\n| `Done` | Completed. |", + "description": "Current lifecycle status of the change.\n| Value | Meaning |\n|---|---|\n| `Planned` | Planned, not started. |\n| `Ready` | Ready for execution. |\n| `Processing` | Being executed. |\n| `Canceled` | Canceled. |\n| `Done` | Completed. |\n| `Failed` | Failed. |", "enum": [ "Planned", "Ready", "Processing", "Canceled", - "Done" + "Done", + "Failed" ], "type": "string" }, diff --git a/openapi/openapi.zh.json b/openapi/openapi.zh.json index dbcc592..afedef7 100644 --- a/openapi/openapi.zh.json +++ b/openapi/openapi.zh.json @@ -4502,13 +4502,14 @@ "type": "string" }, "change_status": { - "description": "变更事件的生命周期状态。由变更事件源按执行进度上报。\n| 值 | 含义 |\n|---|---|\n| `Planned` | 已计划,尚未开始。 |\n| `Ready` | 已就绪,待执行。 |\n| `Processing` | 正在执行。 |\n| `Canceled` | 已取消。 |\n| `Done` | 已完成。 |", + "description": "变更事件的生命周期状态。由变更事件源按执行进度上报。\n| 值 | 含义 |\n|---|---|\n| `Planned` | 已计划,尚未开始。 |\n| `Ready` | 已就绪,待执行。 |\n| `Processing` | 正在执行。 |\n| `Canceled` | 已取消。 |\n| `Done` | 已完成。 |\n| `Failed` | 失败。 |", "enum": [ "Planned", "Ready", "Processing", "Canceled", - "Done" + "Done", + "Failed" ], "type": "string" }, @@ -4584,13 +4585,14 @@ "type": "string" }, "change_status": { - "description": "变更的当前生命周期状态。\n| 取值 | 含义 |\n|---|---|\n| `Planned` | 已计划,未开始。 |\n| `Ready` | 就绪,待执行。 |\n| `Processing` | 执行中。 |\n| `Canceled` | 已取消。 |\n| `Done` | 已完成。 |", + "description": "变更的当前生命周期状态。\n| 取值 | 含义 |\n|---|---|\n| `Planned` | 已计划,未开始。 |\n| `Ready` | 就绪,待执行。 |\n| `Processing` | 执行中。 |\n| `Canceled` | 已取消。 |\n| `Done` | 已完成。 |\n| `Failed` | 失败。 |", "enum": [ "Planned", "Ready", "Processing", "Canceled", - "Done" + "Done", + "Failed" ], "type": "string" },