TUI/Gateway: emit internal hooks for /new and /reset

This commit is contained in:
Vignesh Natarajan
2026-02-14 16:33:19 -08:00
parent 301b3ff912
commit b08146fad6
7 changed files with 115 additions and 4 deletions

View File

@@ -82,7 +82,10 @@ export const SessionsPatchParamsSchema = Type.Object(
);
export const SessionsResetParamsSchema = Type.Object(
{ key: NonEmptyString },
{
key: NonEmptyString,
reason: Type.Optional(Type.Union([Type.Literal("new"), Type.Literal("reset")])),
},
{ additionalProperties: false },
);