Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions frontend/src/api/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,42 @@ export interface SSEInstallationUpdateAvailableEvent {
}
}

export interface SSEQuestionAskedEvent {
type: 'question.asked'
properties: {
id: string
sessionID: string
directory?: string
questions: Array<{
question: string
header: string
options: Array<{ label: string; description: string }>
multiple?: boolean
custom?: boolean
}>
tool?: {
messageID: string
callID: string
}
}
}

export interface SSEQuestionRepliedEvent {
type: 'question.replied'
properties: {
sessionID: string
requestID: string
}
}

export interface SSEQuestionRejectedEvent {
type: 'question.rejected'
properties: {
sessionID: string
requestID: string
}
}

export interface SSESessionIdleEvent {
type: 'session.idle'
properties: {
Expand Down Expand Up @@ -155,6 +191,9 @@ export type SSEEvent =
| SSEPermissionRepliedEvent
| SSEInstallationUpdatedEvent
| SSEInstallationUpdateAvailableEvent
| SSEQuestionAskedEvent
| SSEQuestionRepliedEvent
| SSEQuestionRejectedEvent

export type ContentPart =
| { type: 'text', content: string }
Expand Down
Loading