VoiceAgentLiveEvent type
GPT Live로부터 수신된 이벤트, 인식되지 않은 서비스 이벤트 포함.
type VoiceAgentLiveEvent =
| {
[K in LiveServerEventType]: K extends "decision.item.created"
? Omit<Extract<LiveServerEventUnion, { type: K }>, "item"> & {
item: VoiceAgentLiveDecisionStoredItem
}
: Extract<LiveServerEventUnion, { type: K }>
}[LiveServerEventType]
| VoiceAgentUnknownEvent