mirror of
https://github.com/baptisteArno/typebot.io.git
synced 2026-06-13 21:02:56 +08:00
19 lines
560 B
TypeScript
19 lines
560 B
TypeScript
import { ContinueChatResponse, SessionState } from '@typebot.io/schemas'
|
|
|
|
export type EdgeId = string
|
|
|
|
export type ExecuteLogicResponse = {
|
|
outgoingEdgeId: EdgeId | undefined
|
|
newSessionState?: SessionState
|
|
} & Pick<ContinueChatResponse, 'clientSideActions' | 'logs'>
|
|
|
|
export type ExecuteIntegrationResponse = {
|
|
outgoingEdgeId: EdgeId | undefined
|
|
newSessionState?: SessionState
|
|
} & Pick<ContinueChatResponse, 'clientSideActions' | 'logs'>
|
|
|
|
export type ParsedReply =
|
|
| { status: 'success'; reply: string }
|
|
| { status: 'fail' }
|
|
| { status: 'skip' }
|