25 lines
663 B
TypeScript
25 lines
663 B
TypeScript
import {
|
|
ContinueChatResponse,
|
|
CustomEmbedBubble,
|
|
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
|
|
startTimeShouldBeUpdated?: boolean
|
|
customEmbedBubble?: CustomEmbedBubble
|
|
} & Pick<ContinueChatResponse, 'clientSideActions' | 'logs'>
|
|
|
|
export type ParsedReply =
|
|
| { status: 'success'; reply: string }
|
|
| { status: 'fail' }
|
|
| { status: 'skip' }
|