Commit 0cf6b57
committed
chore(forensics): refresh types after mono details JSONB + reason cleanup
Picks up the schema changes from devhelmhq/mono#316:
- IncidentStateTransitionDto gains a `details: dict[str, Any]` field.
User-driven transitions carry `details["source"] = "public-api"`;
pipeline-driven ones carry `details["source"] = "pipeline"`.
- Transition `reason` description aligns with what the engine actually
writes (trigger | confirm | resolve | auto_clear | reopen). The earlier
`manually_resolved` was a parallel reason value for the same logical
edge — replaced by reason="resolve" + details.source="public-api".
Pure regen via `./scripts/typegen.sh`. The mono PR also added
`@Schema(additionalProperties = TRUE)` on the Java DTO so Springdoc emits
`additionalProperties: true` instead of `additionalProperties: {type: "object"}`,
yielding `dict[str, Any]` here instead of `dict[str, dict[str, Any]]`. Without
that fix the Pydantic model would fail to parse real responses (`details.source`
is a string, not a nested dict).
Made-with: Cursor1 parent 6681850 commit 0cf6b57
2 files changed
Lines changed: 23 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25631 | 25631 | | |
25632 | 25632 | | |
25633 | 25633 | | |
25634 | | - | |
| 25634 | + | |
25635 | 25635 | | |
25636 | 25636 | | |
25637 | 25637 | | |
25638 | 25638 | | |
25639 | 25639 | | |
25640 | | - | |
| 25640 | + | |
25641 | 25641 | | |
25642 | 25642 | | |
25643 | 25643 | | |
25644 | 25644 | | |
25645 | | - | |
| 25645 | + | |
25646 | 25646 | | |
25647 | 25647 | | |
25648 | 25648 | | |
25649 | 25649 | | |
25650 | 25650 | | |
25651 | | - | |
| 25651 | + | |
25652 | 25652 | | |
25653 | 25653 | | |
25654 | 25654 | | |
| |||
25864 | 25864 | | |
25865 | 25865 | | |
25866 | 25866 | | |
| 25867 | + | |
25867 | 25868 | | |
25868 | 25869 | | |
25869 | 25870 | | |
| |||
25910 | 25911 | | |
25911 | 25912 | | |
25912 | 25913 | | |
25913 | | - | |
| 25914 | + | |
25914 | 25915 | | |
25915 | 25916 | | |
25916 | 25917 | | |
| |||
25943 | 25944 | | |
25944 | 25945 | | |
25945 | 25946 | | |
| 25947 | + | |
| 25948 | + | |
| 25949 | + | |
| 25950 | + | |
| 25951 | + | |
25946 | 25952 | | |
25947 | 25953 | | |
25948 | 25954 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
2204 | 2204 | | |
2205 | 2205 | | |
2206 | 2206 | | |
2207 | | - | |
| 2207 | + | |
2208 | 2208 | | |
2209 | 2209 | | |
2210 | 2210 | | |
2211 | 2211 | | |
2212 | 2212 | | |
2213 | 2213 | | |
2214 | | - | |
| 2214 | + | |
2215 | 2215 | | |
2216 | 2216 | | |
2217 | 2217 | | |
2218 | 2218 | | |
2219 | 2219 | | |
2220 | 2220 | | |
2221 | | - | |
| 2221 | + | |
2222 | 2222 | | |
2223 | 2223 | | |
2224 | 2224 | | |
2225 | 2225 | | |
2226 | 2226 | | |
2227 | 2227 | | |
2228 | | - | |
| 2228 | + | |
2229 | 2229 | | |
2230 | 2230 | | |
2231 | 2231 | | |
| |||
2374 | 2374 | | |
2375 | 2375 | | |
2376 | 2376 | | |
2377 | | - | |
| 2377 | + | |
2378 | 2378 | | |
2379 | 2379 | | |
2380 | 2380 | | |
| |||
2415 | 2415 | | |
2416 | 2416 | | |
2417 | 2417 | | |
| 2418 | + | |
| 2419 | + | |
| 2420 | + | |
| 2421 | + | |
| 2422 | + | |
| 2423 | + | |
2418 | 2424 | | |
2419 | 2425 | | |
2420 | 2426 | | |
| |||
0 commit comments