2023-03-15 08:35:16 +01:00
|
|
|
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
|
2023-01-26 15:26:42 +01:00
|
|
|
} & Pick<ChatReply, 'clientSideActions' | 'logs'>
|
2022-11-29 10:02:40 +01:00
|
|
|
|
|
|
|
|
export type ExecuteIntegrationResponse = {
|
|
|
|
|
outgoingEdgeId: EdgeId | undefined
|
|
|
|
|
newSessionState?: SessionState
|
2023-01-26 15:26:42 +01:00
|
|
|
} & Pick<ChatReply, 'clientSideActions' | 'logs'>
|
2023-08-29 10:01:28 +02:00
|
|
|
|
|
|
|
|
export type ParsedReply =
|
|
|
|
|
| { status: 'success'; reply: string }
|
|
|
|
|
| { status: 'fail' }
|
|
|
|
|
| { status: 'skip' }
|