diff --git a/packages/ts-types/src/schemas/edge.ts b/packages/ts-types/src/schemas/edge.ts index daeaec8..567f657 100644 --- a/packages/ts-types/src/schemas/edge.ts +++ b/packages/ts-types/src/schemas/edge.ts @@ -209,6 +209,23 @@ export const EdgeClientMessageSchema = Type.Union([ /** Only when `ok` is false. A message for an operator, not a code. */ error: Maybe(Type.String()), }), + /** go2rtc's answer SDP for a `webrtc_offer`, passed through verbatim. */ + Type.Object({ + type: Type.Literal("webrtc_answer"), + session_id: Type.String(), + sdp: Type.String(), + }), + /** + * No answer was obtainable: no such camera, go2rtc not running, or it + * refused the offer. A variant of its own rather than an empty answer, so + * a viewer is told something instead of watching a `