(input: Record<string, Captured>)
| 172 | } |
| 173 | |
| 174 | function statuses(input: Record<string, Captured>) { |
| 175 | return Object.fromEntries(Object.entries(input).map(([key, value]) => [key, value.status])) |
| 176 | } |
| 177 | |
| 178 | function firstPartText(value: unknown) { |
| 179 | return record(array(record(value).parts)[0]).text |