feat(voice): add session archive control

This commit is contained in:
Kit Langton 2026-07-28 11:09:14 -04:00
commit 87786c5e88
33 changed files with 4827 additions and 3 deletions

View file

@ -676,4 +676,17 @@ describe("SessionV2.create", () => {
expect(events.filter((event) => event.type === "session.archived")).toHaveLength(1)
}),
)
it.effect("rejects archiving a missing Session", () =>
Effect.gen(function* () {
const session = yield* SessionV2.Service
expect(
yield* session.archive(SessionV2.ID.make("ses_missing_archive")).pipe(
Effect.flip,
Effect.map((error) => error._tag),
),
).toBe("Session.NotFoundError")
}),
)
})