19 lines
527 B
TypeScript
19 lines
527 B
TypeScript
import { ChatReply, SessionState } from '@typebot.io/schemas'
|
|
|
|
export type EdgeId = string
|
|
|
|
export type ExecuteLogicResponse = {
|
|
outgoingEdgeId: EdgeId | undefined
|
|
newSessionState?: SessionState
|
|
} & Pick<ChatReply, 'clientSideActions' | 'logs'>
|
|
|
|
export type ExecuteIntegrationResponse = {
|
|
outgoingEdgeId: EdgeId | undefined
|
|
newSessionState?: SessionState
|
|
} & Pick<ChatReply, 'clientSideActions' | 'logs'>
|
|
|
|
export type ParsedReply =
|
|
| { status: 'success'; reply: string }
|
|
| { status: 'fail' }
|
|
| { status: 'skip' }
|