2
0
Files
bot/packages/bot-engine/types.ts

19 lines
527 B
TypeScript
Raw Normal View History

import { ChatReply, SessionState } from '@typebot.io/schemas'
2022-11-29 10:02:40 +01:00
export type EdgeId = string
export type ExecuteLogicResponse = {
outgoingEdgeId: EdgeId | undefined
newSessionState?: SessionState
} & Pick<ChatReply, 'clientSideActions' | 'logs'>
2022-11-29 10:02:40 +01:00
export type ExecuteIntegrationResponse = {
outgoingEdgeId: EdgeId | undefined
newSessionState?: SessionState
} & Pick<ChatReply, 'clientSideActions' | 'logs'>
export type ParsedReply =
| { status: 'success'; reply: string }
| { status: 'fail' }
| { status: 'skip' }