chatbot-lex-design-builder 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (325) hide show
  1. package/dist/cjs/compile-graph-to-lex.d.ts +3 -0
  2. package/dist/cjs/compile-graph-to-lex.js +35 -0
  3. package/dist/cjs/compile-graph-to-lex.js.map +1 -0
  4. package/dist/cjs/index.d.ts +9 -0
  5. package/dist/cjs/index.js +43 -0
  6. package/dist/cjs/index.js.map +1 -0
  7. package/dist/cjs/types/edges/edge.d.ts +21 -0
  8. package/dist/cjs/types/edges/edge.js +12 -0
  9. package/dist/cjs/types/edges/edge.js.map +1 -0
  10. package/dist/cjs/types/edges/index.d.ts +1 -0
  11. package/dist/cjs/types/edges/index.js +18 -0
  12. package/dist/cjs/types/edges/index.js.map +1 -0
  13. package/dist/cjs/types/graph/graph.d.ts +2245 -0
  14. package/dist/cjs/types/graph/graph.js +11 -0
  15. package/dist/cjs/types/graph/graph.js.map +1 -0
  16. package/dist/cjs/types/graph/index.d.ts +1 -0
  17. package/dist/cjs/types/graph/index.js +18 -0
  18. package/dist/cjs/types/graph/index.js.map +1 -0
  19. package/dist/cjs/types/nodes/closing-response-node.d.ts +201 -0
  20. package/dist/cjs/types/nodes/closing-response-node.js +16 -0
  21. package/dist/cjs/types/nodes/closing-response-node.js.map +1 -0
  22. package/dist/cjs/types/nodes/codehook-node.d.ts +552 -0
  23. package/dist/cjs/types/nodes/codehook-node.js +20 -0
  24. package/dist/cjs/types/nodes/codehook-node.js.map +1 -0
  25. package/dist/cjs/types/nodes/condition-node.d.ts +525 -0
  26. package/dist/cjs/types/nodes/condition-node.js +22 -0
  27. package/dist/cjs/types/nodes/condition-node.js.map +1 -0
  28. package/dist/cjs/types/nodes/confirmation-node.d.ts +748 -0
  29. package/dist/cjs/types/nodes/confirmation-node.js +19 -0
  30. package/dist/cjs/types/nodes/confirmation-node.js.map +1 -0
  31. package/dist/cjs/types/nodes/end-of-conversation-node.d.ts +19 -0
  32. package/dist/cjs/types/nodes/end-of-conversation-node.js +12 -0
  33. package/dist/cjs/types/nodes/end-of-conversation-node.js.map +1 -0
  34. package/dist/cjs/types/nodes/fullfillment-node.d.ts +552 -0
  35. package/dist/cjs/types/nodes/fullfillment-node.js +20 -0
  36. package/dist/cjs/types/nodes/fullfillment-node.js.map +1 -0
  37. package/dist/cjs/types/nodes/go-to-intent-node.d.ts +34 -0
  38. package/dist/cjs/types/nodes/go-to-intent-node.js +14 -0
  39. package/dist/cjs/types/nodes/go-to-intent-node.js.map +1 -0
  40. package/dist/cjs/types/nodes/index.d.ts +10 -0
  41. package/dist/cjs/types/nodes/index.js +27 -0
  42. package/dist/cjs/types/nodes/index.js.map +1 -0
  43. package/dist/cjs/types/nodes/intent-node.d.ts +59 -0
  44. package/dist/cjs/types/nodes/intent-node.js +17 -0
  45. package/dist/cjs/types/nodes/intent-node.js.map +1 -0
  46. package/dist/cjs/types/nodes/node-type.d.ts +11 -0
  47. package/dist/cjs/types/nodes/node-type.js +16 -0
  48. package/dist/cjs/types/nodes/node-type.js.map +1 -0
  49. package/dist/cjs/types/nodes/node.d.ts +1788 -0
  50. package/dist/cjs/types/nodes/node.js +25 -0
  51. package/dist/cjs/types/nodes/node.js.map +1 -0
  52. package/dist/cjs/types/nodes/slot-node.d.ts +576 -0
  53. package/dist/cjs/types/nodes/slot-node.js +23 -0
  54. package/dist/cjs/types/nodes/slot-node.js.map +1 -0
  55. package/dist/cjs/types/others/bot-flow.d.ts +5839 -0
  56. package/dist/cjs/types/others/bot-flow.js +14 -0
  57. package/dist/cjs/types/others/bot-flow.js.map +1 -0
  58. package/dist/cjs/types/others/file-and-folder.d.ts +9 -0
  59. package/dist/cjs/types/others/file-and-folder.js +3 -0
  60. package/dist/cjs/types/others/file-and-folder.js.map +1 -0
  61. package/dist/cjs/types/others/flow-detail.d.ts +12 -0
  62. package/dist/cjs/types/others/flow-detail.js +3 -0
  63. package/dist/cjs/types/others/flow-detail.js.map +1 -0
  64. package/dist/cjs/types/others/index.d.ts +5 -0
  65. package/dist/cjs/types/others/index.js +22 -0
  66. package/dist/cjs/types/others/index.js.map +1 -0
  67. package/dist/cjs/types/others/lex-export-options.d.ts +4 -0
  68. package/dist/cjs/types/others/lex-export-options.js +3 -0
  69. package/dist/cjs/types/others/lex-export-options.js.map +1 -0
  70. package/dist/cjs/types/others/lex-exporter.d.ts +2 -0
  71. package/dist/cjs/types/others/lex-exporter.js +3 -0
  72. package/dist/cjs/types/others/lex-exporter.js.map +1 -0
  73. package/dist/cjs/types/responses/index.d.ts +4 -0
  74. package/dist/cjs/types/responses/index.js +21 -0
  75. package/dist/cjs/types/responses/index.js.map +1 -0
  76. package/dist/cjs/types/responses/message-type.d.ts +4 -0
  77. package/dist/cjs/types/responses/message-type.js +9 -0
  78. package/dist/cjs/types/responses/message-type.js.map +1 -0
  79. package/dist/cjs/types/responses/message.d.ts +60 -0
  80. package/dist/cjs/types/responses/message.js +11 -0
  81. package/dist/cjs/types/responses/message.js.map +1 -0
  82. package/dist/cjs/types/responses/text-message-button.d.ts +70 -0
  83. package/dist/cjs/types/responses/text-message-button.js +22 -0
  84. package/dist/cjs/types/responses/text-message-button.js.map +1 -0
  85. package/dist/cjs/types/responses/text-message.d.ts +16 -0
  86. package/dist/cjs/types/responses/text-message.js +14 -0
  87. package/dist/cjs/types/responses/text-message.js.map +1 -0
  88. package/dist/cjs/utils/compile-flow-to-flowdetail.d.ts +2 -0
  89. package/dist/cjs/utils/compile-flow-to-flowdetail.js +9 -0
  90. package/dist/cjs/utils/compile-flow-to-flowdetail.js.map +1 -0
  91. package/dist/cjs/utils/file-exporter.d.ts +8 -0
  92. package/dist/cjs/utils/file-exporter.js +37 -0
  93. package/dist/cjs/utils/file-exporter.js.map +1 -0
  94. package/dist/cjs/utils/find-first-fullfillment-node.d.ts +59 -0
  95. package/dist/cjs/utils/find-first-fullfillment-node.js +9 -0
  96. package/dist/cjs/utils/find-first-fullfillment-node.js.map +1 -0
  97. package/dist/cjs/utils/find-first-intent-node.d.ts +12 -0
  98. package/dist/cjs/utils/find-first-intent-node.js +9 -0
  99. package/dist/cjs/utils/find-first-intent-node.js.map +1 -0
  100. package/dist/cjs/utils/generate-response.d.ts +15 -0
  101. package/dist/cjs/utils/generate-response.js +14 -0
  102. package/dist/cjs/utils/generate-response.js.map +1 -0
  103. package/dist/cjs/utils/get-bfs-order.d.ts +333 -0
  104. package/dist/cjs/utils/get-bfs-order.js +18 -0
  105. package/dist/cjs/utils/get-bfs-order.js.map +1 -0
  106. package/dist/cjs/utils/get-end-of-conversation-node.d.ts +6 -0
  107. package/dist/cjs/utils/get-end-of-conversation-node.js +16 -0
  108. package/dist/cjs/utils/get-end-of-conversation-node.js.map +1 -0
  109. package/dist/cjs/utils/get-first-closing-response-node.d.ts +25 -0
  110. package/dist/cjs/utils/get-first-closing-response-node.js +9 -0
  111. package/dist/cjs/utils/get-first-closing-response-node.js.map +1 -0
  112. package/dist/cjs/utils/get-first-confirmation-node.d.ts +73 -0
  113. package/dist/cjs/utils/get-first-confirmation-node.js +9 -0
  114. package/dist/cjs/utils/get-first-confirmation-node.js.map +1 -0
  115. package/dist/cjs/utils/get-message.d.ts +12 -0
  116. package/dist/cjs/utils/get-message.js +16 -0
  117. package/dist/cjs/utils/get-message.js.map +1 -0
  118. package/dist/cjs/utils/get-next-step.d.ts +36 -0
  119. package/dist/cjs/utils/get-next-step.js +98 -0
  120. package/dist/cjs/utils/get-next-step.js.map +1 -0
  121. package/dist/cjs/utils/get-prompt-attempt-specification.d.ts +117 -0
  122. package/dist/cjs/utils/get-prompt-attempt-specification.js +99 -0
  123. package/dist/cjs/utils/get-prompt-attempt-specification.js.map +1 -0
  124. package/dist/cjs/utils/get-slot-nodes.d.ts +62 -0
  125. package/dist/cjs/utils/get-slot-nodes.js +9 -0
  126. package/dist/cjs/utils/get-slot-nodes.js.map +1 -0
  127. package/dist/cjs/utils/get-utterances.d.ts +3 -0
  128. package/dist/cjs/utils/get-utterances.js +12 -0
  129. package/dist/cjs/utils/get-utterances.js.map +1 -0
  130. package/dist/cjs/utils/index.d.ts +17 -0
  131. package/dist/cjs/utils/index.js +34 -0
  132. package/dist/cjs/utils/index.js.map +1 -0
  133. package/dist/cjs/utils/lex-zip-exporter.d.ts +2 -0
  134. package/dist/cjs/utils/lex-zip-exporter.js +3 -0
  135. package/dist/cjs/utils/lex-zip-exporter.js.map +1 -0
  136. package/dist/cjs/utils/node-builders/build-closing-response.d.ts +3 -0
  137. package/dist/cjs/utils/node-builders/build-closing-response.js +78 -0
  138. package/dist/cjs/utils/node-builders/build-closing-response.js.map +1 -0
  139. package/dist/cjs/utils/node-builders/build-confirmation.d.ts +3 -0
  140. package/dist/cjs/utils/node-builders/build-confirmation.js +204 -0
  141. package/dist/cjs/utils/node-builders/build-confirmation.js.map +1 -0
  142. package/dist/cjs/utils/node-builders/build-fullfillment.d.ts +3 -0
  143. package/dist/cjs/utils/node-builders/build-fullfillment.js +112 -0
  144. package/dist/cjs/utils/node-builders/build-fullfillment.js.map +1 -0
  145. package/dist/cjs/utils/node-builders/build-initial-response.d.ts +3 -0
  146. package/dist/cjs/utils/node-builders/build-initial-response.js +155 -0
  147. package/dist/cjs/utils/node-builders/build-initial-response.js.map +1 -0
  148. package/dist/cjs/utils/node-builders/build-intent.d.ts +60 -0
  149. package/dist/cjs/utils/node-builders/build-intent.js +73 -0
  150. package/dist/cjs/utils/node-builders/build-intent.js.map +1 -0
  151. package/dist/cjs/utils/node-builders/build-slot.d.ts +3 -0
  152. package/dist/cjs/utils/node-builders/build-slot.js +198 -0
  153. package/dist/cjs/utils/node-builders/build-slot.js.map +1 -0
  154. package/dist/cjs/utils/node-builders/index.d.ts +6 -0
  155. package/dist/cjs/utils/node-builders/index.js +23 -0
  156. package/dist/cjs/utils/node-builders/index.js.map +1 -0
  157. package/dist/cjs/utils/transform-flow-detail-to-file-and-folder.d.ts +4 -0
  158. package/dist/cjs/utils/transform-flow-detail-to-file-and-folder.js +141 -0
  159. package/dist/cjs/utils/transform-flow-detail-to-file-and-folder.js.map +1 -0
  160. package/dist/cjs/utils/validate-graph.d.ts +341 -0
  161. package/dist/cjs/utils/validate-graph.js +13 -0
  162. package/dist/cjs/utils/validate-graph.js.map +1 -0
  163. package/dist/esm/compile-graph-to-lex.d.ts +3 -0
  164. package/dist/esm/compile-graph-to-lex.js +28 -0
  165. package/dist/esm/compile-graph-to-lex.js.map +1 -0
  166. package/dist/esm/index.d.ts +9 -0
  167. package/dist/esm/index.js +10 -0
  168. package/dist/esm/index.js.map +1 -0
  169. package/dist/esm/types/edges/edge.d.ts +21 -0
  170. package/dist/esm/types/edges/edge.js +9 -0
  171. package/dist/esm/types/edges/edge.js.map +1 -0
  172. package/dist/esm/types/edges/index.d.ts +1 -0
  173. package/dist/esm/types/edges/index.js +2 -0
  174. package/dist/esm/types/edges/index.js.map +1 -0
  175. package/dist/esm/types/graph/graph.d.ts +2245 -0
  176. package/dist/esm/types/graph/graph.js +8 -0
  177. package/dist/esm/types/graph/graph.js.map +1 -0
  178. package/dist/esm/types/graph/index.d.ts +1 -0
  179. package/dist/esm/types/graph/index.js +2 -0
  180. package/dist/esm/types/graph/index.js.map +1 -0
  181. package/dist/esm/types/nodes/closing-response-node.d.ts +201 -0
  182. package/dist/esm/types/nodes/closing-response-node.js +13 -0
  183. package/dist/esm/types/nodes/closing-response-node.js.map +1 -0
  184. package/dist/esm/types/nodes/codehook-node.d.ts +552 -0
  185. package/dist/esm/types/nodes/codehook-node.js +17 -0
  186. package/dist/esm/types/nodes/codehook-node.js.map +1 -0
  187. package/dist/esm/types/nodes/condition-node.d.ts +525 -0
  188. package/dist/esm/types/nodes/condition-node.js +19 -0
  189. package/dist/esm/types/nodes/condition-node.js.map +1 -0
  190. package/dist/esm/types/nodes/confirmation-node.d.ts +748 -0
  191. package/dist/esm/types/nodes/confirmation-node.js +16 -0
  192. package/dist/esm/types/nodes/confirmation-node.js.map +1 -0
  193. package/dist/esm/types/nodes/end-of-conversation-node.d.ts +19 -0
  194. package/dist/esm/types/nodes/end-of-conversation-node.js +9 -0
  195. package/dist/esm/types/nodes/end-of-conversation-node.js.map +1 -0
  196. package/dist/esm/types/nodes/fullfillment-node.d.ts +552 -0
  197. package/dist/esm/types/nodes/fullfillment-node.js +17 -0
  198. package/dist/esm/types/nodes/fullfillment-node.js.map +1 -0
  199. package/dist/esm/types/nodes/go-to-intent-node.d.ts +34 -0
  200. package/dist/esm/types/nodes/go-to-intent-node.js +11 -0
  201. package/dist/esm/types/nodes/go-to-intent-node.js.map +1 -0
  202. package/dist/esm/types/nodes/index.d.ts +10 -0
  203. package/dist/esm/types/nodes/index.js +11 -0
  204. package/dist/esm/types/nodes/index.js.map +1 -0
  205. package/dist/esm/types/nodes/intent-node.d.ts +59 -0
  206. package/dist/esm/types/nodes/intent-node.js +14 -0
  207. package/dist/esm/types/nodes/intent-node.js.map +1 -0
  208. package/dist/esm/types/nodes/node-type.d.ts +11 -0
  209. package/dist/esm/types/nodes/node-type.js +13 -0
  210. package/dist/esm/types/nodes/node-type.js.map +1 -0
  211. package/dist/esm/types/nodes/node.d.ts +1788 -0
  212. package/dist/esm/types/nodes/node.js +22 -0
  213. package/dist/esm/types/nodes/node.js.map +1 -0
  214. package/dist/esm/types/nodes/slot-node.d.ts +576 -0
  215. package/dist/esm/types/nodes/slot-node.js +20 -0
  216. package/dist/esm/types/nodes/slot-node.js.map +1 -0
  217. package/dist/esm/types/others/bot-flow.d.ts +5839 -0
  218. package/dist/esm/types/others/bot-flow.js +12 -0
  219. package/dist/esm/types/others/bot-flow.js.map +1 -0
  220. package/dist/esm/types/others/file-and-folder.d.ts +9 -0
  221. package/dist/esm/types/others/file-and-folder.js +2 -0
  222. package/dist/esm/types/others/file-and-folder.js.map +1 -0
  223. package/dist/esm/types/others/flow-detail.d.ts +12 -0
  224. package/dist/esm/types/others/flow-detail.js +2 -0
  225. package/dist/esm/types/others/flow-detail.js.map +1 -0
  226. package/dist/esm/types/others/index.d.ts +5 -0
  227. package/dist/esm/types/others/index.js +6 -0
  228. package/dist/esm/types/others/index.js.map +1 -0
  229. package/dist/esm/types/others/lex-export-options.d.ts +4 -0
  230. package/dist/esm/types/others/lex-export-options.js +2 -0
  231. package/dist/esm/types/others/lex-export-options.js.map +1 -0
  232. package/dist/esm/types/others/lex-exporter.d.ts +2 -0
  233. package/dist/esm/types/others/lex-exporter.js +2 -0
  234. package/dist/esm/types/others/lex-exporter.js.map +1 -0
  235. package/dist/esm/types/responses/index.d.ts +4 -0
  236. package/dist/esm/types/responses/index.js +5 -0
  237. package/dist/esm/types/responses/index.js.map +1 -0
  238. package/dist/esm/types/responses/message-type.d.ts +4 -0
  239. package/dist/esm/types/responses/message-type.js +6 -0
  240. package/dist/esm/types/responses/message-type.js.map +1 -0
  241. package/dist/esm/types/responses/message.d.ts +60 -0
  242. package/dist/esm/types/responses/message.js +8 -0
  243. package/dist/esm/types/responses/message.js.map +1 -0
  244. package/dist/esm/types/responses/text-message-button.d.ts +70 -0
  245. package/dist/esm/types/responses/text-message-button.js +16 -0
  246. package/dist/esm/types/responses/text-message-button.js.map +1 -0
  247. package/dist/esm/types/responses/text-message.d.ts +16 -0
  248. package/dist/esm/types/responses/text-message.js +8 -0
  249. package/dist/esm/types/responses/text-message.js.map +1 -0
  250. package/dist/esm/utils/compile-flow-to-flowdetail.d.ts +2 -0
  251. package/dist/esm/utils/compile-flow-to-flowdetail.js +5 -0
  252. package/dist/esm/utils/compile-flow-to-flowdetail.js.map +1 -0
  253. package/dist/esm/utils/file-exporter.d.ts +8 -0
  254. package/dist/esm/utils/file-exporter.js +30 -0
  255. package/dist/esm/utils/file-exporter.js.map +1 -0
  256. package/dist/esm/utils/find-first-fullfillment-node.d.ts +59 -0
  257. package/dist/esm/utils/find-first-fullfillment-node.js +5 -0
  258. package/dist/esm/utils/find-first-fullfillment-node.js.map +1 -0
  259. package/dist/esm/utils/find-first-intent-node.d.ts +12 -0
  260. package/dist/esm/utils/find-first-intent-node.js +5 -0
  261. package/dist/esm/utils/find-first-intent-node.js.map +1 -0
  262. package/dist/esm/utils/generate-response.d.ts +15 -0
  263. package/dist/esm/utils/generate-response.js +10 -0
  264. package/dist/esm/utils/generate-response.js.map +1 -0
  265. package/dist/esm/utils/get-bfs-order.d.ts +333 -0
  266. package/dist/esm/utils/get-bfs-order.js +16 -0
  267. package/dist/esm/utils/get-bfs-order.js.map +1 -0
  268. package/dist/esm/utils/get-end-of-conversation-node.d.ts +6 -0
  269. package/dist/esm/utils/get-end-of-conversation-node.js +12 -0
  270. package/dist/esm/utils/get-end-of-conversation-node.js.map +1 -0
  271. package/dist/esm/utils/get-first-closing-response-node.d.ts +25 -0
  272. package/dist/esm/utils/get-first-closing-response-node.js +5 -0
  273. package/dist/esm/utils/get-first-closing-response-node.js.map +1 -0
  274. package/dist/esm/utils/get-first-confirmation-node.d.ts +73 -0
  275. package/dist/esm/utils/get-first-confirmation-node.js +5 -0
  276. package/dist/esm/utils/get-first-confirmation-node.js.map +1 -0
  277. package/dist/esm/utils/get-message.d.ts +12 -0
  278. package/dist/esm/utils/get-message.js +12 -0
  279. package/dist/esm/utils/get-message.js.map +1 -0
  280. package/dist/esm/utils/get-next-step.d.ts +36 -0
  281. package/dist/esm/utils/get-next-step.js +94 -0
  282. package/dist/esm/utils/get-next-step.js.map +1 -0
  283. package/dist/esm/utils/get-prompt-attempt-specification.d.ts +117 -0
  284. package/dist/esm/utils/get-prompt-attempt-specification.js +95 -0
  285. package/dist/esm/utils/get-prompt-attempt-specification.js.map +1 -0
  286. package/dist/esm/utils/get-slot-nodes.d.ts +62 -0
  287. package/dist/esm/utils/get-slot-nodes.js +5 -0
  288. package/dist/esm/utils/get-slot-nodes.js.map +1 -0
  289. package/dist/esm/utils/get-utterances.d.ts +3 -0
  290. package/dist/esm/utils/get-utterances.js +8 -0
  291. package/dist/esm/utils/get-utterances.js.map +1 -0
  292. package/dist/esm/utils/index.d.ts +17 -0
  293. package/dist/esm/utils/index.js +18 -0
  294. package/dist/esm/utils/index.js.map +1 -0
  295. package/dist/esm/utils/lex-zip-exporter.d.ts +2 -0
  296. package/dist/esm/utils/lex-zip-exporter.js +2 -0
  297. package/dist/esm/utils/lex-zip-exporter.js.map +1 -0
  298. package/dist/esm/utils/node-builders/build-closing-response.d.ts +3 -0
  299. package/dist/esm/utils/node-builders/build-closing-response.js +74 -0
  300. package/dist/esm/utils/node-builders/build-closing-response.js.map +1 -0
  301. package/dist/esm/utils/node-builders/build-confirmation.d.ts +3 -0
  302. package/dist/esm/utils/node-builders/build-confirmation.js +200 -0
  303. package/dist/esm/utils/node-builders/build-confirmation.js.map +1 -0
  304. package/dist/esm/utils/node-builders/build-fullfillment.d.ts +3 -0
  305. package/dist/esm/utils/node-builders/build-fullfillment.js +108 -0
  306. package/dist/esm/utils/node-builders/build-fullfillment.js.map +1 -0
  307. package/dist/esm/utils/node-builders/build-initial-response.d.ts +3 -0
  308. package/dist/esm/utils/node-builders/build-initial-response.js +151 -0
  309. package/dist/esm/utils/node-builders/build-initial-response.js.map +1 -0
  310. package/dist/esm/utils/node-builders/build-intent.d.ts +60 -0
  311. package/dist/esm/utils/node-builders/build-intent.js +65 -0
  312. package/dist/esm/utils/node-builders/build-intent.js.map +1 -0
  313. package/dist/esm/utils/node-builders/build-slot.d.ts +3 -0
  314. package/dist/esm/utils/node-builders/build-slot.js +194 -0
  315. package/dist/esm/utils/node-builders/build-slot.js.map +1 -0
  316. package/dist/esm/utils/node-builders/index.d.ts +6 -0
  317. package/dist/esm/utils/node-builders/index.js +7 -0
  318. package/dist/esm/utils/node-builders/index.js.map +1 -0
  319. package/dist/esm/utils/transform-flow-detail-to-file-and-folder.d.ts +4 -0
  320. package/dist/esm/utils/transform-flow-detail-to-file-and-folder.js +137 -0
  321. package/dist/esm/utils/transform-flow-detail-to-file-and-folder.js.map +1 -0
  322. package/dist/esm/utils/validate-graph.d.ts +341 -0
  323. package/dist/esm/utils/validate-graph.js +11 -0
  324. package/dist/esm/utils/validate-graph.js.map +1 -0
  325. package/package.json +32 -0
@@ -0,0 +1,2245 @@
1
+ import { z } from "zod";
2
+ export declare const GraphSchema: z.ZodObject<{
3
+ nodes: z.ZodArray<z.ZodUnion<[z.ZodObject<{
4
+ id: z.ZodString;
5
+ type: z.ZodLiteral<import("../nodes").NodeType.closingResponseNode>;
6
+ data: z.ZodObject<{
7
+ active: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
8
+ response: z.ZodCatch<z.ZodArray<z.ZodUnion<[z.ZodObject<{
9
+ id: z.ZodString;
10
+ type: z.ZodLiteral<import("../responses").MessageType.text>;
11
+ title: z.ZodString;
12
+ }, "strip", z.ZodTypeAny, {
13
+ type: import("../responses").MessageType.text;
14
+ id: string;
15
+ title: string;
16
+ }, {
17
+ type: import("../responses").MessageType.text;
18
+ id: string;
19
+ title: string;
20
+ }>, z.ZodObject<{
21
+ id: z.ZodString;
22
+ type: z.ZodLiteral<import("../responses").MessageType.textWithButton>;
23
+ title: z.ZodString;
24
+ buttons: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
25
+ id: z.ZodString;
26
+ actionType: z.ZodEnum<["post", "url"]>;
27
+ buttonTitle: z.ZodString;
28
+ value: z.ZodString;
29
+ action: z.ZodNullable<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
30
+ }, "strip", z.ZodTypeAny, {
31
+ id: string;
32
+ value: string;
33
+ actionType: "url" | "post";
34
+ buttonTitle: string;
35
+ action?: string | null | undefined;
36
+ }, {
37
+ id: string;
38
+ value: string;
39
+ actionType: "url" | "post";
40
+ buttonTitle: string;
41
+ action?: string | null | undefined;
42
+ }>, "many">>>>>;
43
+ }, "strip", z.ZodTypeAny, {
44
+ type: import("../responses").MessageType.textWithButton;
45
+ id: string;
46
+ title: string;
47
+ buttons?: {
48
+ id: string;
49
+ value: string;
50
+ actionType: "url" | "post";
51
+ buttonTitle: string;
52
+ action?: string | null | undefined;
53
+ }[] | null | undefined;
54
+ }, {
55
+ type: import("../responses").MessageType.textWithButton;
56
+ id: string;
57
+ title: string;
58
+ buttons?: {
59
+ id: string;
60
+ value: string;
61
+ actionType: "url" | "post";
62
+ buttonTitle: string;
63
+ action?: string | null | undefined;
64
+ }[] | null | undefined;
65
+ }>]>, "many">>;
66
+ }, "strip", z.ZodTypeAny, {
67
+ response: ({
68
+ type: import("../responses").MessageType.text;
69
+ id: string;
70
+ title: string;
71
+ } | {
72
+ type: import("../responses").MessageType.textWithButton;
73
+ id: string;
74
+ title: string;
75
+ buttons?: {
76
+ id: string;
77
+ value: string;
78
+ actionType: "url" | "post";
79
+ buttonTitle: string;
80
+ action?: string | null | undefined;
81
+ }[] | null | undefined;
82
+ })[];
83
+ active?: boolean | null | undefined;
84
+ }, {
85
+ active?: boolean | null | undefined;
86
+ response?: unknown;
87
+ }>;
88
+ }, "strip", z.ZodTypeAny, {
89
+ type: import("../nodes").NodeType.closingResponseNode;
90
+ data: {
91
+ response: ({
92
+ type: import("../responses").MessageType.text;
93
+ id: string;
94
+ title: string;
95
+ } | {
96
+ type: import("../responses").MessageType.textWithButton;
97
+ id: string;
98
+ title: string;
99
+ buttons?: {
100
+ id: string;
101
+ value: string;
102
+ actionType: "url" | "post";
103
+ buttonTitle: string;
104
+ action?: string | null | undefined;
105
+ }[] | null | undefined;
106
+ })[];
107
+ active?: boolean | null | undefined;
108
+ };
109
+ id: string;
110
+ }, {
111
+ type: import("../nodes").NodeType.closingResponseNode;
112
+ data: {
113
+ active?: boolean | null | undefined;
114
+ response?: unknown;
115
+ };
116
+ id: string;
117
+ }>, z.ZodObject<{
118
+ id: z.ZodString;
119
+ type: z.ZodLiteral<import("../nodes").NodeType.codeHookNode>;
120
+ data: z.ZodObject<{
121
+ label: z.ZodString;
122
+ invocationLabel: z.ZodString;
123
+ active: z.ZodNullable<z.ZodBoolean>;
124
+ success: z.ZodCatch<z.ZodArray<z.ZodUnion<[z.ZodObject<{
125
+ id: z.ZodString;
126
+ type: z.ZodLiteral<import("../responses").MessageType.text>;
127
+ title: z.ZodString;
128
+ }, "strip", z.ZodTypeAny, {
129
+ type: import("../responses").MessageType.text;
130
+ id: string;
131
+ title: string;
132
+ }, {
133
+ type: import("../responses").MessageType.text;
134
+ id: string;
135
+ title: string;
136
+ }>, z.ZodObject<{
137
+ id: z.ZodString;
138
+ type: z.ZodLiteral<import("../responses").MessageType.textWithButton>;
139
+ title: z.ZodString;
140
+ buttons: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
141
+ id: z.ZodString;
142
+ actionType: z.ZodEnum<["post", "url"]>;
143
+ buttonTitle: z.ZodString;
144
+ value: z.ZodString;
145
+ action: z.ZodNullable<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
146
+ }, "strip", z.ZodTypeAny, {
147
+ id: string;
148
+ value: string;
149
+ actionType: "url" | "post";
150
+ buttonTitle: string;
151
+ action?: string | null | undefined;
152
+ }, {
153
+ id: string;
154
+ value: string;
155
+ actionType: "url" | "post";
156
+ buttonTitle: string;
157
+ action?: string | null | undefined;
158
+ }>, "many">>>>>;
159
+ }, "strip", z.ZodTypeAny, {
160
+ type: import("../responses").MessageType.textWithButton;
161
+ id: string;
162
+ title: string;
163
+ buttons?: {
164
+ id: string;
165
+ value: string;
166
+ actionType: "url" | "post";
167
+ buttonTitle: string;
168
+ action?: string | null | undefined;
169
+ }[] | null | undefined;
170
+ }, {
171
+ type: import("../responses").MessageType.textWithButton;
172
+ id: string;
173
+ title: string;
174
+ buttons?: {
175
+ id: string;
176
+ value: string;
177
+ actionType: "url" | "post";
178
+ buttonTitle: string;
179
+ action?: string | null | undefined;
180
+ }[] | null | undefined;
181
+ }>]>, "many">>;
182
+ failure: z.ZodCatch<z.ZodArray<z.ZodUnion<[z.ZodObject<{
183
+ id: z.ZodString;
184
+ type: z.ZodLiteral<import("../responses").MessageType.text>;
185
+ title: z.ZodString;
186
+ }, "strip", z.ZodTypeAny, {
187
+ type: import("../responses").MessageType.text;
188
+ id: string;
189
+ title: string;
190
+ }, {
191
+ type: import("../responses").MessageType.text;
192
+ id: string;
193
+ title: string;
194
+ }>, z.ZodObject<{
195
+ id: z.ZodString;
196
+ type: z.ZodLiteral<import("../responses").MessageType.textWithButton>;
197
+ title: z.ZodString;
198
+ buttons: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
199
+ id: z.ZodString;
200
+ actionType: z.ZodEnum<["post", "url"]>;
201
+ buttonTitle: z.ZodString;
202
+ value: z.ZodString;
203
+ action: z.ZodNullable<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
204
+ }, "strip", z.ZodTypeAny, {
205
+ id: string;
206
+ value: string;
207
+ actionType: "url" | "post";
208
+ buttonTitle: string;
209
+ action?: string | null | undefined;
210
+ }, {
211
+ id: string;
212
+ value: string;
213
+ actionType: "url" | "post";
214
+ buttonTitle: string;
215
+ action?: string | null | undefined;
216
+ }>, "many">>>>>;
217
+ }, "strip", z.ZodTypeAny, {
218
+ type: import("../responses").MessageType.textWithButton;
219
+ id: string;
220
+ title: string;
221
+ buttons?: {
222
+ id: string;
223
+ value: string;
224
+ actionType: "url" | "post";
225
+ buttonTitle: string;
226
+ action?: string | null | undefined;
227
+ }[] | null | undefined;
228
+ }, {
229
+ type: import("../responses").MessageType.textWithButton;
230
+ id: string;
231
+ title: string;
232
+ buttons?: {
233
+ id: string;
234
+ value: string;
235
+ actionType: "url" | "post";
236
+ buttonTitle: string;
237
+ action?: string | null | undefined;
238
+ }[] | null | undefined;
239
+ }>]>, "many">>;
240
+ timeout: z.ZodCatch<z.ZodArray<z.ZodUnion<[z.ZodObject<{
241
+ id: z.ZodString;
242
+ type: z.ZodLiteral<import("../responses").MessageType.text>;
243
+ title: z.ZodString;
244
+ }, "strip", z.ZodTypeAny, {
245
+ type: import("../responses").MessageType.text;
246
+ id: string;
247
+ title: string;
248
+ }, {
249
+ type: import("../responses").MessageType.text;
250
+ id: string;
251
+ title: string;
252
+ }>, z.ZodObject<{
253
+ id: z.ZodString;
254
+ type: z.ZodLiteral<import("../responses").MessageType.textWithButton>;
255
+ title: z.ZodString;
256
+ buttons: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
257
+ id: z.ZodString;
258
+ actionType: z.ZodEnum<["post", "url"]>;
259
+ buttonTitle: z.ZodString;
260
+ value: z.ZodString;
261
+ action: z.ZodNullable<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
262
+ }, "strip", z.ZodTypeAny, {
263
+ id: string;
264
+ value: string;
265
+ actionType: "url" | "post";
266
+ buttonTitle: string;
267
+ action?: string | null | undefined;
268
+ }, {
269
+ id: string;
270
+ value: string;
271
+ actionType: "url" | "post";
272
+ buttonTitle: string;
273
+ action?: string | null | undefined;
274
+ }>, "many">>>>>;
275
+ }, "strip", z.ZodTypeAny, {
276
+ type: import("../responses").MessageType.textWithButton;
277
+ id: string;
278
+ title: string;
279
+ buttons?: {
280
+ id: string;
281
+ value: string;
282
+ actionType: "url" | "post";
283
+ buttonTitle: string;
284
+ action?: string | null | undefined;
285
+ }[] | null | undefined;
286
+ }, {
287
+ type: import("../responses").MessageType.textWithButton;
288
+ id: string;
289
+ title: string;
290
+ buttons?: {
291
+ id: string;
292
+ value: string;
293
+ actionType: "url" | "post";
294
+ buttonTitle: string;
295
+ action?: string | null | undefined;
296
+ }[] | null | undefined;
297
+ }>]>, "many">>;
298
+ }, "strip", z.ZodTypeAny, {
299
+ active: boolean | null;
300
+ label: string;
301
+ success: ({
302
+ type: import("../responses").MessageType.text;
303
+ id: string;
304
+ title: string;
305
+ } | {
306
+ type: import("../responses").MessageType.textWithButton;
307
+ id: string;
308
+ title: string;
309
+ buttons?: {
310
+ id: string;
311
+ value: string;
312
+ actionType: "url" | "post";
313
+ buttonTitle: string;
314
+ action?: string | null | undefined;
315
+ }[] | null | undefined;
316
+ })[];
317
+ timeout: ({
318
+ type: import("../responses").MessageType.text;
319
+ id: string;
320
+ title: string;
321
+ } | {
322
+ type: import("../responses").MessageType.textWithButton;
323
+ id: string;
324
+ title: string;
325
+ buttons?: {
326
+ id: string;
327
+ value: string;
328
+ actionType: "url" | "post";
329
+ buttonTitle: string;
330
+ action?: string | null | undefined;
331
+ }[] | null | undefined;
332
+ })[];
333
+ invocationLabel: string;
334
+ failure: ({
335
+ type: import("../responses").MessageType.text;
336
+ id: string;
337
+ title: string;
338
+ } | {
339
+ type: import("../responses").MessageType.textWithButton;
340
+ id: string;
341
+ title: string;
342
+ buttons?: {
343
+ id: string;
344
+ value: string;
345
+ actionType: "url" | "post";
346
+ buttonTitle: string;
347
+ action?: string | null | undefined;
348
+ }[] | null | undefined;
349
+ })[];
350
+ }, {
351
+ active: boolean | null;
352
+ label: string;
353
+ invocationLabel: string;
354
+ success?: unknown;
355
+ failure?: unknown;
356
+ timeout?: unknown;
357
+ }>;
358
+ }, "strip", z.ZodTypeAny, {
359
+ type: import("../nodes").NodeType.codeHookNode;
360
+ data: {
361
+ active: boolean | null;
362
+ label: string;
363
+ success: ({
364
+ type: import("../responses").MessageType.text;
365
+ id: string;
366
+ title: string;
367
+ } | {
368
+ type: import("../responses").MessageType.textWithButton;
369
+ id: string;
370
+ title: string;
371
+ buttons?: {
372
+ id: string;
373
+ value: string;
374
+ actionType: "url" | "post";
375
+ buttonTitle: string;
376
+ action?: string | null | undefined;
377
+ }[] | null | undefined;
378
+ })[];
379
+ timeout: ({
380
+ type: import("../responses").MessageType.text;
381
+ id: string;
382
+ title: string;
383
+ } | {
384
+ type: import("../responses").MessageType.textWithButton;
385
+ id: string;
386
+ title: string;
387
+ buttons?: {
388
+ id: string;
389
+ value: string;
390
+ actionType: "url" | "post";
391
+ buttonTitle: string;
392
+ action?: string | null | undefined;
393
+ }[] | null | undefined;
394
+ })[];
395
+ invocationLabel: string;
396
+ failure: ({
397
+ type: import("../responses").MessageType.text;
398
+ id: string;
399
+ title: string;
400
+ } | {
401
+ type: import("../responses").MessageType.textWithButton;
402
+ id: string;
403
+ title: string;
404
+ buttons?: {
405
+ id: string;
406
+ value: string;
407
+ actionType: "url" | "post";
408
+ buttonTitle: string;
409
+ action?: string | null | undefined;
410
+ }[] | null | undefined;
411
+ })[];
412
+ };
413
+ id: string;
414
+ }, {
415
+ type: import("../nodes").NodeType.codeHookNode;
416
+ data: {
417
+ active: boolean | null;
418
+ label: string;
419
+ invocationLabel: string;
420
+ success?: unknown;
421
+ failure?: unknown;
422
+ timeout?: unknown;
423
+ };
424
+ id: string;
425
+ }>, z.ZodObject<{
426
+ id: z.ZodString;
427
+ type: z.ZodLiteral<import("../nodes").NodeType.conditionNode>;
428
+ data: z.ZodObject<{
429
+ response: z.ZodCatch<z.ZodArray<z.ZodUnion<[z.ZodObject<{
430
+ id: z.ZodString;
431
+ type: z.ZodLiteral<import("../responses").MessageType.text>;
432
+ title: z.ZodString;
433
+ }, "strip", z.ZodTypeAny, {
434
+ type: import("../responses").MessageType.text;
435
+ id: string;
436
+ title: string;
437
+ }, {
438
+ type: import("../responses").MessageType.text;
439
+ id: string;
440
+ title: string;
441
+ }>, z.ZodObject<{
442
+ id: z.ZodString;
443
+ type: z.ZodLiteral<import("../responses").MessageType.textWithButton>;
444
+ title: z.ZodString;
445
+ buttons: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
446
+ id: z.ZodString;
447
+ actionType: z.ZodEnum<["post", "url"]>;
448
+ buttonTitle: z.ZodString;
449
+ value: z.ZodString;
450
+ action: z.ZodNullable<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
451
+ }, "strip", z.ZodTypeAny, {
452
+ id: string;
453
+ value: string;
454
+ actionType: "url" | "post";
455
+ buttonTitle: string;
456
+ action?: string | null | undefined;
457
+ }, {
458
+ id: string;
459
+ value: string;
460
+ actionType: "url" | "post";
461
+ buttonTitle: string;
462
+ action?: string | null | undefined;
463
+ }>, "many">>>>>;
464
+ }, "strip", z.ZodTypeAny, {
465
+ type: import("../responses").MessageType.textWithButton;
466
+ id: string;
467
+ title: string;
468
+ buttons?: {
469
+ id: string;
470
+ value: string;
471
+ actionType: "url" | "post";
472
+ buttonTitle: string;
473
+ action?: string | null | undefined;
474
+ }[] | null | undefined;
475
+ }, {
476
+ type: import("../responses").MessageType.textWithButton;
477
+ id: string;
478
+ title: string;
479
+ buttons?: {
480
+ id: string;
481
+ value: string;
482
+ actionType: "url" | "post";
483
+ buttonTitle: string;
484
+ action?: string | null | undefined;
485
+ }[] | null | undefined;
486
+ }>]>, "many">>;
487
+ branches: z.ZodCatch<z.ZodArray<z.ZodObject<{
488
+ id: z.ZodString;
489
+ name: z.ZodString;
490
+ expression: z.ZodString;
491
+ response: z.ZodCatch<z.ZodArray<z.ZodUnion<[z.ZodObject<{
492
+ id: z.ZodString;
493
+ type: z.ZodLiteral<import("../responses").MessageType.text>;
494
+ title: z.ZodString;
495
+ }, "strip", z.ZodTypeAny, {
496
+ type: import("../responses").MessageType.text;
497
+ id: string;
498
+ title: string;
499
+ }, {
500
+ type: import("../responses").MessageType.text;
501
+ id: string;
502
+ title: string;
503
+ }>, z.ZodObject<{
504
+ id: z.ZodString;
505
+ type: z.ZodLiteral<import("../responses").MessageType.textWithButton>;
506
+ title: z.ZodString;
507
+ buttons: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
508
+ id: z.ZodString;
509
+ actionType: z.ZodEnum<["post", "url"]>;
510
+ buttonTitle: z.ZodString;
511
+ value: z.ZodString;
512
+ action: z.ZodNullable<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
513
+ }, "strip", z.ZodTypeAny, {
514
+ id: string;
515
+ value: string;
516
+ actionType: "url" | "post";
517
+ buttonTitle: string;
518
+ action?: string | null | undefined;
519
+ }, {
520
+ id: string;
521
+ value: string;
522
+ actionType: "url" | "post";
523
+ buttonTitle: string;
524
+ action?: string | null | undefined;
525
+ }>, "many">>>>>;
526
+ }, "strip", z.ZodTypeAny, {
527
+ type: import("../responses").MessageType.textWithButton;
528
+ id: string;
529
+ title: string;
530
+ buttons?: {
531
+ id: string;
532
+ value: string;
533
+ actionType: "url" | "post";
534
+ buttonTitle: string;
535
+ action?: string | null | undefined;
536
+ }[] | null | undefined;
537
+ }, {
538
+ type: import("../responses").MessageType.textWithButton;
539
+ id: string;
540
+ title: string;
541
+ buttons?: {
542
+ id: string;
543
+ value: string;
544
+ actionType: "url" | "post";
545
+ buttonTitle: string;
546
+ action?: string | null | undefined;
547
+ }[] | null | undefined;
548
+ }>]>, "many">>;
549
+ }, "strip", z.ZodTypeAny, {
550
+ id: string;
551
+ name: string;
552
+ response: ({
553
+ type: import("../responses").MessageType.text;
554
+ id: string;
555
+ title: string;
556
+ } | {
557
+ type: import("../responses").MessageType.textWithButton;
558
+ id: string;
559
+ title: string;
560
+ buttons?: {
561
+ id: string;
562
+ value: string;
563
+ actionType: "url" | "post";
564
+ buttonTitle: string;
565
+ action?: string | null | undefined;
566
+ }[] | null | undefined;
567
+ })[];
568
+ expression: string;
569
+ }, {
570
+ id: string;
571
+ name: string;
572
+ expression: string;
573
+ response?: unknown;
574
+ }>, "many">>;
575
+ }, "strip", z.ZodTypeAny, {
576
+ response: ({
577
+ type: import("../responses").MessageType.text;
578
+ id: string;
579
+ title: string;
580
+ } | {
581
+ type: import("../responses").MessageType.textWithButton;
582
+ id: string;
583
+ title: string;
584
+ buttons?: {
585
+ id: string;
586
+ value: string;
587
+ actionType: "url" | "post";
588
+ buttonTitle: string;
589
+ action?: string | null | undefined;
590
+ }[] | null | undefined;
591
+ })[];
592
+ branches: {
593
+ id: string;
594
+ name: string;
595
+ response: ({
596
+ type: import("../responses").MessageType.text;
597
+ id: string;
598
+ title: string;
599
+ } | {
600
+ type: import("../responses").MessageType.textWithButton;
601
+ id: string;
602
+ title: string;
603
+ buttons?: {
604
+ id: string;
605
+ value: string;
606
+ actionType: "url" | "post";
607
+ buttonTitle: string;
608
+ action?: string | null | undefined;
609
+ }[] | null | undefined;
610
+ })[];
611
+ expression: string;
612
+ }[];
613
+ }, {
614
+ response?: unknown;
615
+ branches?: unknown;
616
+ }>;
617
+ }, "strip", z.ZodTypeAny, {
618
+ type: import("../nodes").NodeType.conditionNode;
619
+ data: {
620
+ response: ({
621
+ type: import("../responses").MessageType.text;
622
+ id: string;
623
+ title: string;
624
+ } | {
625
+ type: import("../responses").MessageType.textWithButton;
626
+ id: string;
627
+ title: string;
628
+ buttons?: {
629
+ id: string;
630
+ value: string;
631
+ actionType: "url" | "post";
632
+ buttonTitle: string;
633
+ action?: string | null | undefined;
634
+ }[] | null | undefined;
635
+ })[];
636
+ branches: {
637
+ id: string;
638
+ name: string;
639
+ response: ({
640
+ type: import("../responses").MessageType.text;
641
+ id: string;
642
+ title: string;
643
+ } | {
644
+ type: import("../responses").MessageType.textWithButton;
645
+ id: string;
646
+ title: string;
647
+ buttons?: {
648
+ id: string;
649
+ value: string;
650
+ actionType: "url" | "post";
651
+ buttonTitle: string;
652
+ action?: string | null | undefined;
653
+ }[] | null | undefined;
654
+ })[];
655
+ expression: string;
656
+ }[];
657
+ };
658
+ id: string;
659
+ }, {
660
+ type: import("../nodes").NodeType.conditionNode;
661
+ data: {
662
+ response?: unknown;
663
+ branches?: unknown;
664
+ };
665
+ id: string;
666
+ }>, z.ZodObject<{
667
+ id: z.ZodString;
668
+ type: z.ZodLiteral<import("../nodes").NodeType.confirmationNode>;
669
+ data: z.ZodObject<{
670
+ label: z.ZodString;
671
+ prompt: z.ZodArray<z.ZodUnion<[z.ZodObject<{
672
+ id: z.ZodString;
673
+ type: z.ZodLiteral<import("../responses").MessageType.text>;
674
+ title: z.ZodString;
675
+ }, "strip", z.ZodTypeAny, {
676
+ type: import("../responses").MessageType.text;
677
+ id: string;
678
+ title: string;
679
+ }, {
680
+ type: import("../responses").MessageType.text;
681
+ id: string;
682
+ title: string;
683
+ }>, z.ZodObject<{
684
+ id: z.ZodString;
685
+ type: z.ZodLiteral<import("../responses").MessageType.textWithButton>;
686
+ title: z.ZodString;
687
+ buttons: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
688
+ id: z.ZodString;
689
+ actionType: z.ZodEnum<["post", "url"]>;
690
+ buttonTitle: z.ZodString;
691
+ value: z.ZodString;
692
+ action: z.ZodNullable<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
693
+ }, "strip", z.ZodTypeAny, {
694
+ id: string;
695
+ value: string;
696
+ actionType: "url" | "post";
697
+ buttonTitle: string;
698
+ action?: string | null | undefined;
699
+ }, {
700
+ id: string;
701
+ value: string;
702
+ actionType: "url" | "post";
703
+ buttonTitle: string;
704
+ action?: string | null | undefined;
705
+ }>, "many">>>>>;
706
+ }, "strip", z.ZodTypeAny, {
707
+ type: import("../responses").MessageType.textWithButton;
708
+ id: string;
709
+ title: string;
710
+ buttons?: {
711
+ id: string;
712
+ value: string;
713
+ actionType: "url" | "post";
714
+ buttonTitle: string;
715
+ action?: string | null | undefined;
716
+ }[] | null | undefined;
717
+ }, {
718
+ type: import("../responses").MessageType.textWithButton;
719
+ id: string;
720
+ title: string;
721
+ buttons?: {
722
+ id: string;
723
+ value: string;
724
+ actionType: "url" | "post";
725
+ buttonTitle: string;
726
+ action?: string | null | undefined;
727
+ }[] | null | undefined;
728
+ }>]>, "many">;
729
+ success: z.ZodCatch<z.ZodArray<z.ZodUnion<[z.ZodObject<{
730
+ id: z.ZodString;
731
+ type: z.ZodLiteral<import("../responses").MessageType.text>;
732
+ title: z.ZodString;
733
+ }, "strip", z.ZodTypeAny, {
734
+ type: import("../responses").MessageType.text;
735
+ id: string;
736
+ title: string;
737
+ }, {
738
+ type: import("../responses").MessageType.text;
739
+ id: string;
740
+ title: string;
741
+ }>, z.ZodObject<{
742
+ id: z.ZodString;
743
+ type: z.ZodLiteral<import("../responses").MessageType.textWithButton>;
744
+ title: z.ZodString;
745
+ buttons: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
746
+ id: z.ZodString;
747
+ actionType: z.ZodEnum<["post", "url"]>;
748
+ buttonTitle: z.ZodString;
749
+ value: z.ZodString;
750
+ action: z.ZodNullable<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
751
+ }, "strip", z.ZodTypeAny, {
752
+ id: string;
753
+ value: string;
754
+ actionType: "url" | "post";
755
+ buttonTitle: string;
756
+ action?: string | null | undefined;
757
+ }, {
758
+ id: string;
759
+ value: string;
760
+ actionType: "url" | "post";
761
+ buttonTitle: string;
762
+ action?: string | null | undefined;
763
+ }>, "many">>>>>;
764
+ }, "strip", z.ZodTypeAny, {
765
+ type: import("../responses").MessageType.textWithButton;
766
+ id: string;
767
+ title: string;
768
+ buttons?: {
769
+ id: string;
770
+ value: string;
771
+ actionType: "url" | "post";
772
+ buttonTitle: string;
773
+ action?: string | null | undefined;
774
+ }[] | null | undefined;
775
+ }, {
776
+ type: import("../responses").MessageType.textWithButton;
777
+ id: string;
778
+ title: string;
779
+ buttons?: {
780
+ id: string;
781
+ value: string;
782
+ actionType: "url" | "post";
783
+ buttonTitle: string;
784
+ action?: string | null | undefined;
785
+ }[] | null | undefined;
786
+ }>]>, "many">>;
787
+ failure: z.ZodCatch<z.ZodArray<z.ZodUnion<[z.ZodObject<{
788
+ id: z.ZodString;
789
+ type: z.ZodLiteral<import("../responses").MessageType.text>;
790
+ title: z.ZodString;
791
+ }, "strip", z.ZodTypeAny, {
792
+ type: import("../responses").MessageType.text;
793
+ id: string;
794
+ title: string;
795
+ }, {
796
+ type: import("../responses").MessageType.text;
797
+ id: string;
798
+ title: string;
799
+ }>, z.ZodObject<{
800
+ id: z.ZodString;
801
+ type: z.ZodLiteral<import("../responses").MessageType.textWithButton>;
802
+ title: z.ZodString;
803
+ buttons: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
804
+ id: z.ZodString;
805
+ actionType: z.ZodEnum<["post", "url"]>;
806
+ buttonTitle: z.ZodString;
807
+ value: z.ZodString;
808
+ action: z.ZodNullable<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
809
+ }, "strip", z.ZodTypeAny, {
810
+ id: string;
811
+ value: string;
812
+ actionType: "url" | "post";
813
+ buttonTitle: string;
814
+ action?: string | null | undefined;
815
+ }, {
816
+ id: string;
817
+ value: string;
818
+ actionType: "url" | "post";
819
+ buttonTitle: string;
820
+ action?: string | null | undefined;
821
+ }>, "many">>>>>;
822
+ }, "strip", z.ZodTypeAny, {
823
+ type: import("../responses").MessageType.textWithButton;
824
+ id: string;
825
+ title: string;
826
+ buttons?: {
827
+ id: string;
828
+ value: string;
829
+ actionType: "url" | "post";
830
+ buttonTitle: string;
831
+ action?: string | null | undefined;
832
+ }[] | null | undefined;
833
+ }, {
834
+ type: import("../responses").MessageType.textWithButton;
835
+ id: string;
836
+ title: string;
837
+ buttons?: {
838
+ id: string;
839
+ value: string;
840
+ actionType: "url" | "post";
841
+ buttonTitle: string;
842
+ action?: string | null | undefined;
843
+ }[] | null | undefined;
844
+ }>]>, "many">>;
845
+ decline: z.ZodCatch<z.ZodArray<z.ZodUnion<[z.ZodObject<{
846
+ id: z.ZodString;
847
+ type: z.ZodLiteral<import("../responses").MessageType.text>;
848
+ title: z.ZodString;
849
+ }, "strip", z.ZodTypeAny, {
850
+ type: import("../responses").MessageType.text;
851
+ id: string;
852
+ title: string;
853
+ }, {
854
+ type: import("../responses").MessageType.text;
855
+ id: string;
856
+ title: string;
857
+ }>, z.ZodObject<{
858
+ id: z.ZodString;
859
+ type: z.ZodLiteral<import("../responses").MessageType.textWithButton>;
860
+ title: z.ZodString;
861
+ buttons: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
862
+ id: z.ZodString;
863
+ actionType: z.ZodEnum<["post", "url"]>;
864
+ buttonTitle: z.ZodString;
865
+ value: z.ZodString;
866
+ action: z.ZodNullable<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
867
+ }, "strip", z.ZodTypeAny, {
868
+ id: string;
869
+ value: string;
870
+ actionType: "url" | "post";
871
+ buttonTitle: string;
872
+ action?: string | null | undefined;
873
+ }, {
874
+ id: string;
875
+ value: string;
876
+ actionType: "url" | "post";
877
+ buttonTitle: string;
878
+ action?: string | null | undefined;
879
+ }>, "many">>>>>;
880
+ }, "strip", z.ZodTypeAny, {
881
+ type: import("../responses").MessageType.textWithButton;
882
+ id: string;
883
+ title: string;
884
+ buttons?: {
885
+ id: string;
886
+ value: string;
887
+ actionType: "url" | "post";
888
+ buttonTitle: string;
889
+ action?: string | null | undefined;
890
+ }[] | null | undefined;
891
+ }, {
892
+ type: import("../responses").MessageType.textWithButton;
893
+ id: string;
894
+ title: string;
895
+ buttons?: {
896
+ id: string;
897
+ value: string;
898
+ actionType: "url" | "post";
899
+ buttonTitle: string;
900
+ action?: string | null | undefined;
901
+ }[] | null | undefined;
902
+ }>]>, "many">>;
903
+ }, "strip", z.ZodTypeAny, {
904
+ label: string;
905
+ success: ({
906
+ type: import("../responses").MessageType.text;
907
+ id: string;
908
+ title: string;
909
+ } | {
910
+ type: import("../responses").MessageType.textWithButton;
911
+ id: string;
912
+ title: string;
913
+ buttons?: {
914
+ id: string;
915
+ value: string;
916
+ actionType: "url" | "post";
917
+ buttonTitle: string;
918
+ action?: string | null | undefined;
919
+ }[] | null | undefined;
920
+ })[];
921
+ prompt: ({
922
+ type: import("../responses").MessageType.text;
923
+ id: string;
924
+ title: string;
925
+ } | {
926
+ type: import("../responses").MessageType.textWithButton;
927
+ id: string;
928
+ title: string;
929
+ buttons?: {
930
+ id: string;
931
+ value: string;
932
+ actionType: "url" | "post";
933
+ buttonTitle: string;
934
+ action?: string | null | undefined;
935
+ }[] | null | undefined;
936
+ })[];
937
+ failure: ({
938
+ type: import("../responses").MessageType.text;
939
+ id: string;
940
+ title: string;
941
+ } | {
942
+ type: import("../responses").MessageType.textWithButton;
943
+ id: string;
944
+ title: string;
945
+ buttons?: {
946
+ id: string;
947
+ value: string;
948
+ actionType: "url" | "post";
949
+ buttonTitle: string;
950
+ action?: string | null | undefined;
951
+ }[] | null | undefined;
952
+ })[];
953
+ decline: ({
954
+ type: import("../responses").MessageType.text;
955
+ id: string;
956
+ title: string;
957
+ } | {
958
+ type: import("../responses").MessageType.textWithButton;
959
+ id: string;
960
+ title: string;
961
+ buttons?: {
962
+ id: string;
963
+ value: string;
964
+ actionType: "url" | "post";
965
+ buttonTitle: string;
966
+ action?: string | null | undefined;
967
+ }[] | null | undefined;
968
+ })[];
969
+ }, {
970
+ label: string;
971
+ prompt: ({
972
+ type: import("../responses").MessageType.text;
973
+ id: string;
974
+ title: string;
975
+ } | {
976
+ type: import("../responses").MessageType.textWithButton;
977
+ id: string;
978
+ title: string;
979
+ buttons?: {
980
+ id: string;
981
+ value: string;
982
+ actionType: "url" | "post";
983
+ buttonTitle: string;
984
+ action?: string | null | undefined;
985
+ }[] | null | undefined;
986
+ })[];
987
+ success?: unknown;
988
+ failure?: unknown;
989
+ decline?: unknown;
990
+ }>;
991
+ }, "strip", z.ZodTypeAny, {
992
+ type: import("../nodes").NodeType.confirmationNode;
993
+ data: {
994
+ label: string;
995
+ success: ({
996
+ type: import("../responses").MessageType.text;
997
+ id: string;
998
+ title: string;
999
+ } | {
1000
+ type: import("../responses").MessageType.textWithButton;
1001
+ id: string;
1002
+ title: string;
1003
+ buttons?: {
1004
+ id: string;
1005
+ value: string;
1006
+ actionType: "url" | "post";
1007
+ buttonTitle: string;
1008
+ action?: string | null | undefined;
1009
+ }[] | null | undefined;
1010
+ })[];
1011
+ prompt: ({
1012
+ type: import("../responses").MessageType.text;
1013
+ id: string;
1014
+ title: string;
1015
+ } | {
1016
+ type: import("../responses").MessageType.textWithButton;
1017
+ id: string;
1018
+ title: string;
1019
+ buttons?: {
1020
+ id: string;
1021
+ value: string;
1022
+ actionType: "url" | "post";
1023
+ buttonTitle: string;
1024
+ action?: string | null | undefined;
1025
+ }[] | null | undefined;
1026
+ })[];
1027
+ failure: ({
1028
+ type: import("../responses").MessageType.text;
1029
+ id: string;
1030
+ title: string;
1031
+ } | {
1032
+ type: import("../responses").MessageType.textWithButton;
1033
+ id: string;
1034
+ title: string;
1035
+ buttons?: {
1036
+ id: string;
1037
+ value: string;
1038
+ actionType: "url" | "post";
1039
+ buttonTitle: string;
1040
+ action?: string | null | undefined;
1041
+ }[] | null | undefined;
1042
+ })[];
1043
+ decline: ({
1044
+ type: import("../responses").MessageType.text;
1045
+ id: string;
1046
+ title: string;
1047
+ } | {
1048
+ type: import("../responses").MessageType.textWithButton;
1049
+ id: string;
1050
+ title: string;
1051
+ buttons?: {
1052
+ id: string;
1053
+ value: string;
1054
+ actionType: "url" | "post";
1055
+ buttonTitle: string;
1056
+ action?: string | null | undefined;
1057
+ }[] | null | undefined;
1058
+ })[];
1059
+ };
1060
+ id: string;
1061
+ }, {
1062
+ type: import("../nodes").NodeType.confirmationNode;
1063
+ data: {
1064
+ label: string;
1065
+ prompt: ({
1066
+ type: import("../responses").MessageType.text;
1067
+ id: string;
1068
+ title: string;
1069
+ } | {
1070
+ type: import("../responses").MessageType.textWithButton;
1071
+ id: string;
1072
+ title: string;
1073
+ buttons?: {
1074
+ id: string;
1075
+ value: string;
1076
+ actionType: "url" | "post";
1077
+ buttonTitle: string;
1078
+ action?: string | null | undefined;
1079
+ }[] | null | undefined;
1080
+ })[];
1081
+ success?: unknown;
1082
+ failure?: unknown;
1083
+ decline?: unknown;
1084
+ };
1085
+ id: string;
1086
+ }>, z.ZodObject<{
1087
+ id: z.ZodString;
1088
+ type: z.ZodLiteral<import("../nodes").NodeType.endOfConversationNode>;
1089
+ data: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
1090
+ }, "strip", z.ZodTypeAny, {
1091
+ type: import("../nodes").NodeType.endOfConversationNode;
1092
+ data: {};
1093
+ id: string;
1094
+ }, {
1095
+ type: import("../nodes").NodeType.endOfConversationNode;
1096
+ data: {};
1097
+ id: string;
1098
+ }>, z.ZodObject<{
1099
+ id: z.ZodString;
1100
+ type: z.ZodLiteral<import("../nodes").NodeType.fullfillmentNode>;
1101
+ data: z.ZodObject<{
1102
+ label: z.ZodString;
1103
+ invocationLabel: z.ZodString;
1104
+ active: z.ZodNullable<z.ZodBoolean>;
1105
+ success: z.ZodCatch<z.ZodArray<z.ZodUnion<[z.ZodObject<{
1106
+ id: z.ZodString;
1107
+ type: z.ZodLiteral<import("../responses").MessageType.text>;
1108
+ title: z.ZodString;
1109
+ }, "strip", z.ZodTypeAny, {
1110
+ type: import("../responses").MessageType.text;
1111
+ id: string;
1112
+ title: string;
1113
+ }, {
1114
+ type: import("../responses").MessageType.text;
1115
+ id: string;
1116
+ title: string;
1117
+ }>, z.ZodObject<{
1118
+ id: z.ZodString;
1119
+ type: z.ZodLiteral<import("../responses").MessageType.textWithButton>;
1120
+ title: z.ZodString;
1121
+ buttons: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
1122
+ id: z.ZodString;
1123
+ actionType: z.ZodEnum<["post", "url"]>;
1124
+ buttonTitle: z.ZodString;
1125
+ value: z.ZodString;
1126
+ action: z.ZodNullable<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1127
+ }, "strip", z.ZodTypeAny, {
1128
+ id: string;
1129
+ value: string;
1130
+ actionType: "url" | "post";
1131
+ buttonTitle: string;
1132
+ action?: string | null | undefined;
1133
+ }, {
1134
+ id: string;
1135
+ value: string;
1136
+ actionType: "url" | "post";
1137
+ buttonTitle: string;
1138
+ action?: string | null | undefined;
1139
+ }>, "many">>>>>;
1140
+ }, "strip", z.ZodTypeAny, {
1141
+ type: import("../responses").MessageType.textWithButton;
1142
+ id: string;
1143
+ title: string;
1144
+ buttons?: {
1145
+ id: string;
1146
+ value: string;
1147
+ actionType: "url" | "post";
1148
+ buttonTitle: string;
1149
+ action?: string | null | undefined;
1150
+ }[] | null | undefined;
1151
+ }, {
1152
+ type: import("../responses").MessageType.textWithButton;
1153
+ id: string;
1154
+ title: string;
1155
+ buttons?: {
1156
+ id: string;
1157
+ value: string;
1158
+ actionType: "url" | "post";
1159
+ buttonTitle: string;
1160
+ action?: string | null | undefined;
1161
+ }[] | null | undefined;
1162
+ }>]>, "many">>;
1163
+ failure: z.ZodCatch<z.ZodArray<z.ZodUnion<[z.ZodObject<{
1164
+ id: z.ZodString;
1165
+ type: z.ZodLiteral<import("../responses").MessageType.text>;
1166
+ title: z.ZodString;
1167
+ }, "strip", z.ZodTypeAny, {
1168
+ type: import("../responses").MessageType.text;
1169
+ id: string;
1170
+ title: string;
1171
+ }, {
1172
+ type: import("../responses").MessageType.text;
1173
+ id: string;
1174
+ title: string;
1175
+ }>, z.ZodObject<{
1176
+ id: z.ZodString;
1177
+ type: z.ZodLiteral<import("../responses").MessageType.textWithButton>;
1178
+ title: z.ZodString;
1179
+ buttons: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
1180
+ id: z.ZodString;
1181
+ actionType: z.ZodEnum<["post", "url"]>;
1182
+ buttonTitle: z.ZodString;
1183
+ value: z.ZodString;
1184
+ action: z.ZodNullable<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1185
+ }, "strip", z.ZodTypeAny, {
1186
+ id: string;
1187
+ value: string;
1188
+ actionType: "url" | "post";
1189
+ buttonTitle: string;
1190
+ action?: string | null | undefined;
1191
+ }, {
1192
+ id: string;
1193
+ value: string;
1194
+ actionType: "url" | "post";
1195
+ buttonTitle: string;
1196
+ action?: string | null | undefined;
1197
+ }>, "many">>>>>;
1198
+ }, "strip", z.ZodTypeAny, {
1199
+ type: import("../responses").MessageType.textWithButton;
1200
+ id: string;
1201
+ title: string;
1202
+ buttons?: {
1203
+ id: string;
1204
+ value: string;
1205
+ actionType: "url" | "post";
1206
+ buttonTitle: string;
1207
+ action?: string | null | undefined;
1208
+ }[] | null | undefined;
1209
+ }, {
1210
+ type: import("../responses").MessageType.textWithButton;
1211
+ id: string;
1212
+ title: string;
1213
+ buttons?: {
1214
+ id: string;
1215
+ value: string;
1216
+ actionType: "url" | "post";
1217
+ buttonTitle: string;
1218
+ action?: string | null | undefined;
1219
+ }[] | null | undefined;
1220
+ }>]>, "many">>;
1221
+ timeout: z.ZodCatch<z.ZodArray<z.ZodUnion<[z.ZodObject<{
1222
+ id: z.ZodString;
1223
+ type: z.ZodLiteral<import("../responses").MessageType.text>;
1224
+ title: z.ZodString;
1225
+ }, "strip", z.ZodTypeAny, {
1226
+ type: import("../responses").MessageType.text;
1227
+ id: string;
1228
+ title: string;
1229
+ }, {
1230
+ type: import("../responses").MessageType.text;
1231
+ id: string;
1232
+ title: string;
1233
+ }>, z.ZodObject<{
1234
+ id: z.ZodString;
1235
+ type: z.ZodLiteral<import("../responses").MessageType.textWithButton>;
1236
+ title: z.ZodString;
1237
+ buttons: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
1238
+ id: z.ZodString;
1239
+ actionType: z.ZodEnum<["post", "url"]>;
1240
+ buttonTitle: z.ZodString;
1241
+ value: z.ZodString;
1242
+ action: z.ZodNullable<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1243
+ }, "strip", z.ZodTypeAny, {
1244
+ id: string;
1245
+ value: string;
1246
+ actionType: "url" | "post";
1247
+ buttonTitle: string;
1248
+ action?: string | null | undefined;
1249
+ }, {
1250
+ id: string;
1251
+ value: string;
1252
+ actionType: "url" | "post";
1253
+ buttonTitle: string;
1254
+ action?: string | null | undefined;
1255
+ }>, "many">>>>>;
1256
+ }, "strip", z.ZodTypeAny, {
1257
+ type: import("../responses").MessageType.textWithButton;
1258
+ id: string;
1259
+ title: string;
1260
+ buttons?: {
1261
+ id: string;
1262
+ value: string;
1263
+ actionType: "url" | "post";
1264
+ buttonTitle: string;
1265
+ action?: string | null | undefined;
1266
+ }[] | null | undefined;
1267
+ }, {
1268
+ type: import("../responses").MessageType.textWithButton;
1269
+ id: string;
1270
+ title: string;
1271
+ buttons?: {
1272
+ id: string;
1273
+ value: string;
1274
+ actionType: "url" | "post";
1275
+ buttonTitle: string;
1276
+ action?: string | null | undefined;
1277
+ }[] | null | undefined;
1278
+ }>]>, "many">>;
1279
+ }, "strip", z.ZodTypeAny, {
1280
+ active: boolean | null;
1281
+ label: string;
1282
+ success: ({
1283
+ type: import("../responses").MessageType.text;
1284
+ id: string;
1285
+ title: string;
1286
+ } | {
1287
+ type: import("../responses").MessageType.textWithButton;
1288
+ id: string;
1289
+ title: string;
1290
+ buttons?: {
1291
+ id: string;
1292
+ value: string;
1293
+ actionType: "url" | "post";
1294
+ buttonTitle: string;
1295
+ action?: string | null | undefined;
1296
+ }[] | null | undefined;
1297
+ })[];
1298
+ timeout: ({
1299
+ type: import("../responses").MessageType.text;
1300
+ id: string;
1301
+ title: string;
1302
+ } | {
1303
+ type: import("../responses").MessageType.textWithButton;
1304
+ id: string;
1305
+ title: string;
1306
+ buttons?: {
1307
+ id: string;
1308
+ value: string;
1309
+ actionType: "url" | "post";
1310
+ buttonTitle: string;
1311
+ action?: string | null | undefined;
1312
+ }[] | null | undefined;
1313
+ })[];
1314
+ invocationLabel: string;
1315
+ failure: ({
1316
+ type: import("../responses").MessageType.text;
1317
+ id: string;
1318
+ title: string;
1319
+ } | {
1320
+ type: import("../responses").MessageType.textWithButton;
1321
+ id: string;
1322
+ title: string;
1323
+ buttons?: {
1324
+ id: string;
1325
+ value: string;
1326
+ actionType: "url" | "post";
1327
+ buttonTitle: string;
1328
+ action?: string | null | undefined;
1329
+ }[] | null | undefined;
1330
+ })[];
1331
+ }, {
1332
+ active: boolean | null;
1333
+ label: string;
1334
+ invocationLabel: string;
1335
+ success?: unknown;
1336
+ failure?: unknown;
1337
+ timeout?: unknown;
1338
+ }>;
1339
+ }, "strip", z.ZodTypeAny, {
1340
+ type: import("../nodes").NodeType.fullfillmentNode;
1341
+ data: {
1342
+ active: boolean | null;
1343
+ label: string;
1344
+ success: ({
1345
+ type: import("../responses").MessageType.text;
1346
+ id: string;
1347
+ title: string;
1348
+ } | {
1349
+ type: import("../responses").MessageType.textWithButton;
1350
+ id: string;
1351
+ title: string;
1352
+ buttons?: {
1353
+ id: string;
1354
+ value: string;
1355
+ actionType: "url" | "post";
1356
+ buttonTitle: string;
1357
+ action?: string | null | undefined;
1358
+ }[] | null | undefined;
1359
+ })[];
1360
+ timeout: ({
1361
+ type: import("../responses").MessageType.text;
1362
+ id: string;
1363
+ title: string;
1364
+ } | {
1365
+ type: import("../responses").MessageType.textWithButton;
1366
+ id: string;
1367
+ title: string;
1368
+ buttons?: {
1369
+ id: string;
1370
+ value: string;
1371
+ actionType: "url" | "post";
1372
+ buttonTitle: string;
1373
+ action?: string | null | undefined;
1374
+ }[] | null | undefined;
1375
+ })[];
1376
+ invocationLabel: string;
1377
+ failure: ({
1378
+ type: import("../responses").MessageType.text;
1379
+ id: string;
1380
+ title: string;
1381
+ } | {
1382
+ type: import("../responses").MessageType.textWithButton;
1383
+ id: string;
1384
+ title: string;
1385
+ buttons?: {
1386
+ id: string;
1387
+ value: string;
1388
+ actionType: "url" | "post";
1389
+ buttonTitle: string;
1390
+ action?: string | null | undefined;
1391
+ }[] | null | undefined;
1392
+ })[];
1393
+ };
1394
+ id: string;
1395
+ }, {
1396
+ type: import("../nodes").NodeType.fullfillmentNode;
1397
+ data: {
1398
+ active: boolean | null;
1399
+ label: string;
1400
+ invocationLabel: string;
1401
+ success?: unknown;
1402
+ failure?: unknown;
1403
+ timeout?: unknown;
1404
+ };
1405
+ id: string;
1406
+ }>, z.ZodObject<{
1407
+ id: z.ZodString;
1408
+ type: z.ZodLiteral<import("../nodes").NodeType.goToIntentNode>;
1409
+ data: z.ZodObject<{
1410
+ intentId: z.ZodString;
1411
+ }, "strip", z.ZodTypeAny, {
1412
+ intentId: string;
1413
+ }, {
1414
+ intentId: string;
1415
+ }>;
1416
+ }, "strip", z.ZodTypeAny, {
1417
+ type: import("../nodes").NodeType.goToIntentNode;
1418
+ data: {
1419
+ intentId: string;
1420
+ };
1421
+ id: string;
1422
+ }, {
1423
+ type: import("../nodes").NodeType.goToIntentNode;
1424
+ data: {
1425
+ intentId: string;
1426
+ };
1427
+ id: string;
1428
+ }>, z.ZodObject<{
1429
+ id: z.ZodString;
1430
+ type: z.ZodLiteral<import("../nodes").NodeType.intentNode>;
1431
+ data: z.ZodObject<{
1432
+ label: z.ZodString;
1433
+ name: z.ZodString;
1434
+ description: z.ZodString;
1435
+ utterances: z.ZodString;
1436
+ }, "strip", z.ZodTypeAny, {
1437
+ name: string;
1438
+ label: string;
1439
+ description: string;
1440
+ utterances: string;
1441
+ }, {
1442
+ name: string;
1443
+ label: string;
1444
+ description: string;
1445
+ utterances: string;
1446
+ }>;
1447
+ }, "strip", z.ZodTypeAny, {
1448
+ type: import("../nodes").NodeType.intentNode;
1449
+ data: {
1450
+ name: string;
1451
+ label: string;
1452
+ description: string;
1453
+ utterances: string;
1454
+ };
1455
+ id: string;
1456
+ }, {
1457
+ type: import("../nodes").NodeType.intentNode;
1458
+ data: {
1459
+ name: string;
1460
+ label: string;
1461
+ description: string;
1462
+ utterances: string;
1463
+ };
1464
+ id: string;
1465
+ }>, z.ZodObject<{
1466
+ id: z.ZodString;
1467
+ type: z.ZodLiteral<import("../nodes").NodeType.slotNode>;
1468
+ data: z.ZodObject<{
1469
+ name: z.ZodString;
1470
+ description: z.ZodCatch<z.ZodString>;
1471
+ required: z.ZodNullable<z.ZodBoolean>;
1472
+ utterances: z.ZodString;
1473
+ label: z.ZodString;
1474
+ prompt: z.ZodCatch<z.ZodArray<z.ZodUnion<[z.ZodObject<{
1475
+ id: z.ZodString;
1476
+ type: z.ZodLiteral<import("../responses").MessageType.text>;
1477
+ title: z.ZodString;
1478
+ }, "strip", z.ZodTypeAny, {
1479
+ type: import("../responses").MessageType.text;
1480
+ id: string;
1481
+ title: string;
1482
+ }, {
1483
+ type: import("../responses").MessageType.text;
1484
+ id: string;
1485
+ title: string;
1486
+ }>, z.ZodObject<{
1487
+ id: z.ZodString;
1488
+ type: z.ZodLiteral<import("../responses").MessageType.textWithButton>;
1489
+ title: z.ZodString;
1490
+ buttons: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
1491
+ id: z.ZodString;
1492
+ actionType: z.ZodEnum<["post", "url"]>;
1493
+ buttonTitle: z.ZodString;
1494
+ value: z.ZodString;
1495
+ action: z.ZodNullable<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1496
+ }, "strip", z.ZodTypeAny, {
1497
+ id: string;
1498
+ value: string;
1499
+ actionType: "url" | "post";
1500
+ buttonTitle: string;
1501
+ action?: string | null | undefined;
1502
+ }, {
1503
+ id: string;
1504
+ value: string;
1505
+ actionType: "url" | "post";
1506
+ buttonTitle: string;
1507
+ action?: string | null | undefined;
1508
+ }>, "many">>>>>;
1509
+ }, "strip", z.ZodTypeAny, {
1510
+ type: import("../responses").MessageType.textWithButton;
1511
+ id: string;
1512
+ title: string;
1513
+ buttons?: {
1514
+ id: string;
1515
+ value: string;
1516
+ actionType: "url" | "post";
1517
+ buttonTitle: string;
1518
+ action?: string | null | undefined;
1519
+ }[] | null | undefined;
1520
+ }, {
1521
+ type: import("../responses").MessageType.textWithButton;
1522
+ id: string;
1523
+ title: string;
1524
+ buttons?: {
1525
+ id: string;
1526
+ value: string;
1527
+ actionType: "url" | "post";
1528
+ buttonTitle: string;
1529
+ action?: string | null | undefined;
1530
+ }[] | null | undefined;
1531
+ }>]>, "many">>;
1532
+ success: z.ZodCatch<z.ZodArray<z.ZodUnion<[z.ZodObject<{
1533
+ id: z.ZodString;
1534
+ type: z.ZodLiteral<import("../responses").MessageType.text>;
1535
+ title: z.ZodString;
1536
+ }, "strip", z.ZodTypeAny, {
1537
+ type: import("../responses").MessageType.text;
1538
+ id: string;
1539
+ title: string;
1540
+ }, {
1541
+ type: import("../responses").MessageType.text;
1542
+ id: string;
1543
+ title: string;
1544
+ }>, z.ZodObject<{
1545
+ id: z.ZodString;
1546
+ type: z.ZodLiteral<import("../responses").MessageType.textWithButton>;
1547
+ title: z.ZodString;
1548
+ buttons: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
1549
+ id: z.ZodString;
1550
+ actionType: z.ZodEnum<["post", "url"]>;
1551
+ buttonTitle: z.ZodString;
1552
+ value: z.ZodString;
1553
+ action: z.ZodNullable<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1554
+ }, "strip", z.ZodTypeAny, {
1555
+ id: string;
1556
+ value: string;
1557
+ actionType: "url" | "post";
1558
+ buttonTitle: string;
1559
+ action?: string | null | undefined;
1560
+ }, {
1561
+ id: string;
1562
+ value: string;
1563
+ actionType: "url" | "post";
1564
+ buttonTitle: string;
1565
+ action?: string | null | undefined;
1566
+ }>, "many">>>>>;
1567
+ }, "strip", z.ZodTypeAny, {
1568
+ type: import("../responses").MessageType.textWithButton;
1569
+ id: string;
1570
+ title: string;
1571
+ buttons?: {
1572
+ id: string;
1573
+ value: string;
1574
+ actionType: "url" | "post";
1575
+ buttonTitle: string;
1576
+ action?: string | null | undefined;
1577
+ }[] | null | undefined;
1578
+ }, {
1579
+ type: import("../responses").MessageType.textWithButton;
1580
+ id: string;
1581
+ title: string;
1582
+ buttons?: {
1583
+ id: string;
1584
+ value: string;
1585
+ actionType: "url" | "post";
1586
+ buttonTitle: string;
1587
+ action?: string | null | undefined;
1588
+ }[] | null | undefined;
1589
+ }>]>, "many">>;
1590
+ failure: z.ZodCatch<z.ZodArray<z.ZodUnion<[z.ZodObject<{
1591
+ id: z.ZodString;
1592
+ type: z.ZodLiteral<import("../responses").MessageType.text>;
1593
+ title: z.ZodString;
1594
+ }, "strip", z.ZodTypeAny, {
1595
+ type: import("../responses").MessageType.text;
1596
+ id: string;
1597
+ title: string;
1598
+ }, {
1599
+ type: import("../responses").MessageType.text;
1600
+ id: string;
1601
+ title: string;
1602
+ }>, z.ZodObject<{
1603
+ id: z.ZodString;
1604
+ type: z.ZodLiteral<import("../responses").MessageType.textWithButton>;
1605
+ title: z.ZodString;
1606
+ buttons: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
1607
+ id: z.ZodString;
1608
+ actionType: z.ZodEnum<["post", "url"]>;
1609
+ buttonTitle: z.ZodString;
1610
+ value: z.ZodString;
1611
+ action: z.ZodNullable<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1612
+ }, "strip", z.ZodTypeAny, {
1613
+ id: string;
1614
+ value: string;
1615
+ actionType: "url" | "post";
1616
+ buttonTitle: string;
1617
+ action?: string | null | undefined;
1618
+ }, {
1619
+ id: string;
1620
+ value: string;
1621
+ actionType: "url" | "post";
1622
+ buttonTitle: string;
1623
+ action?: string | null | undefined;
1624
+ }>, "many">>>>>;
1625
+ }, "strip", z.ZodTypeAny, {
1626
+ type: import("../responses").MessageType.textWithButton;
1627
+ id: string;
1628
+ title: string;
1629
+ buttons?: {
1630
+ id: string;
1631
+ value: string;
1632
+ actionType: "url" | "post";
1633
+ buttonTitle: string;
1634
+ action?: string | null | undefined;
1635
+ }[] | null | undefined;
1636
+ }, {
1637
+ type: import("../responses").MessageType.textWithButton;
1638
+ id: string;
1639
+ title: string;
1640
+ buttons?: {
1641
+ id: string;
1642
+ value: string;
1643
+ actionType: "url" | "post";
1644
+ buttonTitle: string;
1645
+ action?: string | null | undefined;
1646
+ }[] | null | undefined;
1647
+ }>]>, "many">>;
1648
+ type: z.ZodString;
1649
+ }, "strip", z.ZodTypeAny, {
1650
+ required: boolean | null;
1651
+ type: string;
1652
+ name: string;
1653
+ label: string;
1654
+ success: ({
1655
+ type: import("../responses").MessageType.text;
1656
+ id: string;
1657
+ title: string;
1658
+ } | {
1659
+ type: import("../responses").MessageType.textWithButton;
1660
+ id: string;
1661
+ title: string;
1662
+ buttons?: {
1663
+ id: string;
1664
+ value: string;
1665
+ actionType: "url" | "post";
1666
+ buttonTitle: string;
1667
+ action?: string | null | undefined;
1668
+ }[] | null | undefined;
1669
+ })[];
1670
+ prompt: ({
1671
+ type: import("../responses").MessageType.text;
1672
+ id: string;
1673
+ title: string;
1674
+ } | {
1675
+ type: import("../responses").MessageType.textWithButton;
1676
+ id: string;
1677
+ title: string;
1678
+ buttons?: {
1679
+ id: string;
1680
+ value: string;
1681
+ actionType: "url" | "post";
1682
+ buttonTitle: string;
1683
+ action?: string | null | undefined;
1684
+ }[] | null | undefined;
1685
+ })[];
1686
+ description: string;
1687
+ failure: ({
1688
+ type: import("../responses").MessageType.text;
1689
+ id: string;
1690
+ title: string;
1691
+ } | {
1692
+ type: import("../responses").MessageType.textWithButton;
1693
+ id: string;
1694
+ title: string;
1695
+ buttons?: {
1696
+ id: string;
1697
+ value: string;
1698
+ actionType: "url" | "post";
1699
+ buttonTitle: string;
1700
+ action?: string | null | undefined;
1701
+ }[] | null | undefined;
1702
+ })[];
1703
+ utterances: string;
1704
+ }, {
1705
+ required: boolean | null;
1706
+ type: string;
1707
+ name: string;
1708
+ label: string;
1709
+ utterances: string;
1710
+ description?: unknown;
1711
+ prompt?: unknown;
1712
+ success?: unknown;
1713
+ failure?: unknown;
1714
+ }>;
1715
+ }, "strip", z.ZodTypeAny, {
1716
+ type: import("../nodes").NodeType.slotNode;
1717
+ data: {
1718
+ required: boolean | null;
1719
+ type: string;
1720
+ name: string;
1721
+ label: string;
1722
+ success: ({
1723
+ type: import("../responses").MessageType.text;
1724
+ id: string;
1725
+ title: string;
1726
+ } | {
1727
+ type: import("../responses").MessageType.textWithButton;
1728
+ id: string;
1729
+ title: string;
1730
+ buttons?: {
1731
+ id: string;
1732
+ value: string;
1733
+ actionType: "url" | "post";
1734
+ buttonTitle: string;
1735
+ action?: string | null | undefined;
1736
+ }[] | null | undefined;
1737
+ })[];
1738
+ prompt: ({
1739
+ type: import("../responses").MessageType.text;
1740
+ id: string;
1741
+ title: string;
1742
+ } | {
1743
+ type: import("../responses").MessageType.textWithButton;
1744
+ id: string;
1745
+ title: string;
1746
+ buttons?: {
1747
+ id: string;
1748
+ value: string;
1749
+ actionType: "url" | "post";
1750
+ buttonTitle: string;
1751
+ action?: string | null | undefined;
1752
+ }[] | null | undefined;
1753
+ })[];
1754
+ description: string;
1755
+ failure: ({
1756
+ type: import("../responses").MessageType.text;
1757
+ id: string;
1758
+ title: string;
1759
+ } | {
1760
+ type: import("../responses").MessageType.textWithButton;
1761
+ id: string;
1762
+ title: string;
1763
+ buttons?: {
1764
+ id: string;
1765
+ value: string;
1766
+ actionType: "url" | "post";
1767
+ buttonTitle: string;
1768
+ action?: string | null | undefined;
1769
+ }[] | null | undefined;
1770
+ })[];
1771
+ utterances: string;
1772
+ };
1773
+ id: string;
1774
+ }, {
1775
+ type: import("../nodes").NodeType.slotNode;
1776
+ data: {
1777
+ required: boolean | null;
1778
+ type: string;
1779
+ name: string;
1780
+ label: string;
1781
+ utterances: string;
1782
+ description?: unknown;
1783
+ prompt?: unknown;
1784
+ success?: unknown;
1785
+ failure?: unknown;
1786
+ };
1787
+ id: string;
1788
+ }>]>, "many">;
1789
+ edges: z.ZodArray<z.ZodObject<{
1790
+ source: z.ZodString;
1791
+ sourceHandle: z.ZodString;
1792
+ target: z.ZodString;
1793
+ targetHandle: z.ZodString;
1794
+ id: z.ZodString;
1795
+ }, "strip", z.ZodTypeAny, {
1796
+ id: string;
1797
+ source: string;
1798
+ target: string;
1799
+ sourceHandle: string;
1800
+ targetHandle: string;
1801
+ }, {
1802
+ id: string;
1803
+ source: string;
1804
+ target: string;
1805
+ sourceHandle: string;
1806
+ targetHandle: string;
1807
+ }>, "many">;
1808
+ }, "strip", z.ZodTypeAny, {
1809
+ nodes: ({
1810
+ type: import("../nodes").NodeType.closingResponseNode;
1811
+ data: {
1812
+ response: ({
1813
+ type: import("../responses").MessageType.text;
1814
+ id: string;
1815
+ title: string;
1816
+ } | {
1817
+ type: import("../responses").MessageType.textWithButton;
1818
+ id: string;
1819
+ title: string;
1820
+ buttons?: {
1821
+ id: string;
1822
+ value: string;
1823
+ actionType: "url" | "post";
1824
+ buttonTitle: string;
1825
+ action?: string | null | undefined;
1826
+ }[] | null | undefined;
1827
+ })[];
1828
+ active?: boolean | null | undefined;
1829
+ };
1830
+ id: string;
1831
+ } | {
1832
+ type: import("../nodes").NodeType.codeHookNode;
1833
+ data: {
1834
+ active: boolean | null;
1835
+ label: string;
1836
+ success: ({
1837
+ type: import("../responses").MessageType.text;
1838
+ id: string;
1839
+ title: string;
1840
+ } | {
1841
+ type: import("../responses").MessageType.textWithButton;
1842
+ id: string;
1843
+ title: string;
1844
+ buttons?: {
1845
+ id: string;
1846
+ value: string;
1847
+ actionType: "url" | "post";
1848
+ buttonTitle: string;
1849
+ action?: string | null | undefined;
1850
+ }[] | null | undefined;
1851
+ })[];
1852
+ timeout: ({
1853
+ type: import("../responses").MessageType.text;
1854
+ id: string;
1855
+ title: string;
1856
+ } | {
1857
+ type: import("../responses").MessageType.textWithButton;
1858
+ id: string;
1859
+ title: string;
1860
+ buttons?: {
1861
+ id: string;
1862
+ value: string;
1863
+ actionType: "url" | "post";
1864
+ buttonTitle: string;
1865
+ action?: string | null | undefined;
1866
+ }[] | null | undefined;
1867
+ })[];
1868
+ invocationLabel: string;
1869
+ failure: ({
1870
+ type: import("../responses").MessageType.text;
1871
+ id: string;
1872
+ title: string;
1873
+ } | {
1874
+ type: import("../responses").MessageType.textWithButton;
1875
+ id: string;
1876
+ title: string;
1877
+ buttons?: {
1878
+ id: string;
1879
+ value: string;
1880
+ actionType: "url" | "post";
1881
+ buttonTitle: string;
1882
+ action?: string | null | undefined;
1883
+ }[] | null | undefined;
1884
+ })[];
1885
+ };
1886
+ id: string;
1887
+ } | {
1888
+ type: import("../nodes").NodeType.conditionNode;
1889
+ data: {
1890
+ response: ({
1891
+ type: import("../responses").MessageType.text;
1892
+ id: string;
1893
+ title: string;
1894
+ } | {
1895
+ type: import("../responses").MessageType.textWithButton;
1896
+ id: string;
1897
+ title: string;
1898
+ buttons?: {
1899
+ id: string;
1900
+ value: string;
1901
+ actionType: "url" | "post";
1902
+ buttonTitle: string;
1903
+ action?: string | null | undefined;
1904
+ }[] | null | undefined;
1905
+ })[];
1906
+ branches: {
1907
+ id: string;
1908
+ name: string;
1909
+ response: ({
1910
+ type: import("../responses").MessageType.text;
1911
+ id: string;
1912
+ title: string;
1913
+ } | {
1914
+ type: import("../responses").MessageType.textWithButton;
1915
+ id: string;
1916
+ title: string;
1917
+ buttons?: {
1918
+ id: string;
1919
+ value: string;
1920
+ actionType: "url" | "post";
1921
+ buttonTitle: string;
1922
+ action?: string | null | undefined;
1923
+ }[] | null | undefined;
1924
+ })[];
1925
+ expression: string;
1926
+ }[];
1927
+ };
1928
+ id: string;
1929
+ } | {
1930
+ type: import("../nodes").NodeType.confirmationNode;
1931
+ data: {
1932
+ label: string;
1933
+ success: ({
1934
+ type: import("../responses").MessageType.text;
1935
+ id: string;
1936
+ title: string;
1937
+ } | {
1938
+ type: import("../responses").MessageType.textWithButton;
1939
+ id: string;
1940
+ title: string;
1941
+ buttons?: {
1942
+ id: string;
1943
+ value: string;
1944
+ actionType: "url" | "post";
1945
+ buttonTitle: string;
1946
+ action?: string | null | undefined;
1947
+ }[] | null | undefined;
1948
+ })[];
1949
+ prompt: ({
1950
+ type: import("../responses").MessageType.text;
1951
+ id: string;
1952
+ title: string;
1953
+ } | {
1954
+ type: import("../responses").MessageType.textWithButton;
1955
+ id: string;
1956
+ title: string;
1957
+ buttons?: {
1958
+ id: string;
1959
+ value: string;
1960
+ actionType: "url" | "post";
1961
+ buttonTitle: string;
1962
+ action?: string | null | undefined;
1963
+ }[] | null | undefined;
1964
+ })[];
1965
+ failure: ({
1966
+ type: import("../responses").MessageType.text;
1967
+ id: string;
1968
+ title: string;
1969
+ } | {
1970
+ type: import("../responses").MessageType.textWithButton;
1971
+ id: string;
1972
+ title: string;
1973
+ buttons?: {
1974
+ id: string;
1975
+ value: string;
1976
+ actionType: "url" | "post";
1977
+ buttonTitle: string;
1978
+ action?: string | null | undefined;
1979
+ }[] | null | undefined;
1980
+ })[];
1981
+ decline: ({
1982
+ type: import("../responses").MessageType.text;
1983
+ id: string;
1984
+ title: string;
1985
+ } | {
1986
+ type: import("../responses").MessageType.textWithButton;
1987
+ id: string;
1988
+ title: string;
1989
+ buttons?: {
1990
+ id: string;
1991
+ value: string;
1992
+ actionType: "url" | "post";
1993
+ buttonTitle: string;
1994
+ action?: string | null | undefined;
1995
+ }[] | null | undefined;
1996
+ })[];
1997
+ };
1998
+ id: string;
1999
+ } | {
2000
+ type: import("../nodes").NodeType.endOfConversationNode;
2001
+ data: {};
2002
+ id: string;
2003
+ } | {
2004
+ type: import("../nodes").NodeType.fullfillmentNode;
2005
+ data: {
2006
+ active: boolean | null;
2007
+ label: string;
2008
+ success: ({
2009
+ type: import("../responses").MessageType.text;
2010
+ id: string;
2011
+ title: string;
2012
+ } | {
2013
+ type: import("../responses").MessageType.textWithButton;
2014
+ id: string;
2015
+ title: string;
2016
+ buttons?: {
2017
+ id: string;
2018
+ value: string;
2019
+ actionType: "url" | "post";
2020
+ buttonTitle: string;
2021
+ action?: string | null | undefined;
2022
+ }[] | null | undefined;
2023
+ })[];
2024
+ timeout: ({
2025
+ type: import("../responses").MessageType.text;
2026
+ id: string;
2027
+ title: string;
2028
+ } | {
2029
+ type: import("../responses").MessageType.textWithButton;
2030
+ id: string;
2031
+ title: string;
2032
+ buttons?: {
2033
+ id: string;
2034
+ value: string;
2035
+ actionType: "url" | "post";
2036
+ buttonTitle: string;
2037
+ action?: string | null | undefined;
2038
+ }[] | null | undefined;
2039
+ })[];
2040
+ invocationLabel: string;
2041
+ failure: ({
2042
+ type: import("../responses").MessageType.text;
2043
+ id: string;
2044
+ title: string;
2045
+ } | {
2046
+ type: import("../responses").MessageType.textWithButton;
2047
+ id: string;
2048
+ title: string;
2049
+ buttons?: {
2050
+ id: string;
2051
+ value: string;
2052
+ actionType: "url" | "post";
2053
+ buttonTitle: string;
2054
+ action?: string | null | undefined;
2055
+ }[] | null | undefined;
2056
+ })[];
2057
+ };
2058
+ id: string;
2059
+ } | {
2060
+ type: import("../nodes").NodeType.goToIntentNode;
2061
+ data: {
2062
+ intentId: string;
2063
+ };
2064
+ id: string;
2065
+ } | {
2066
+ type: import("../nodes").NodeType.intentNode;
2067
+ data: {
2068
+ name: string;
2069
+ label: string;
2070
+ description: string;
2071
+ utterances: string;
2072
+ };
2073
+ id: string;
2074
+ } | {
2075
+ type: import("../nodes").NodeType.slotNode;
2076
+ data: {
2077
+ required: boolean | null;
2078
+ type: string;
2079
+ name: string;
2080
+ label: string;
2081
+ success: ({
2082
+ type: import("../responses").MessageType.text;
2083
+ id: string;
2084
+ title: string;
2085
+ } | {
2086
+ type: import("../responses").MessageType.textWithButton;
2087
+ id: string;
2088
+ title: string;
2089
+ buttons?: {
2090
+ id: string;
2091
+ value: string;
2092
+ actionType: "url" | "post";
2093
+ buttonTitle: string;
2094
+ action?: string | null | undefined;
2095
+ }[] | null | undefined;
2096
+ })[];
2097
+ prompt: ({
2098
+ type: import("../responses").MessageType.text;
2099
+ id: string;
2100
+ title: string;
2101
+ } | {
2102
+ type: import("../responses").MessageType.textWithButton;
2103
+ id: string;
2104
+ title: string;
2105
+ buttons?: {
2106
+ id: string;
2107
+ value: string;
2108
+ actionType: "url" | "post";
2109
+ buttonTitle: string;
2110
+ action?: string | null | undefined;
2111
+ }[] | null | undefined;
2112
+ })[];
2113
+ description: string;
2114
+ failure: ({
2115
+ type: import("../responses").MessageType.text;
2116
+ id: string;
2117
+ title: string;
2118
+ } | {
2119
+ type: import("../responses").MessageType.textWithButton;
2120
+ id: string;
2121
+ title: string;
2122
+ buttons?: {
2123
+ id: string;
2124
+ value: string;
2125
+ actionType: "url" | "post";
2126
+ buttonTitle: string;
2127
+ action?: string | null | undefined;
2128
+ }[] | null | undefined;
2129
+ })[];
2130
+ utterances: string;
2131
+ };
2132
+ id: string;
2133
+ })[];
2134
+ edges: {
2135
+ id: string;
2136
+ source: string;
2137
+ target: string;
2138
+ sourceHandle: string;
2139
+ targetHandle: string;
2140
+ }[];
2141
+ }, {
2142
+ nodes: ({
2143
+ type: import("../nodes").NodeType.closingResponseNode;
2144
+ data: {
2145
+ active?: boolean | null | undefined;
2146
+ response?: unknown;
2147
+ };
2148
+ id: string;
2149
+ } | {
2150
+ type: import("../nodes").NodeType.codeHookNode;
2151
+ data: {
2152
+ active: boolean | null;
2153
+ label: string;
2154
+ invocationLabel: string;
2155
+ success?: unknown;
2156
+ failure?: unknown;
2157
+ timeout?: unknown;
2158
+ };
2159
+ id: string;
2160
+ } | {
2161
+ type: import("../nodes").NodeType.conditionNode;
2162
+ data: {
2163
+ response?: unknown;
2164
+ branches?: unknown;
2165
+ };
2166
+ id: string;
2167
+ } | {
2168
+ type: import("../nodes").NodeType.confirmationNode;
2169
+ data: {
2170
+ label: string;
2171
+ prompt: ({
2172
+ type: import("../responses").MessageType.text;
2173
+ id: string;
2174
+ title: string;
2175
+ } | {
2176
+ type: import("../responses").MessageType.textWithButton;
2177
+ id: string;
2178
+ title: string;
2179
+ buttons?: {
2180
+ id: string;
2181
+ value: string;
2182
+ actionType: "url" | "post";
2183
+ buttonTitle: string;
2184
+ action?: string | null | undefined;
2185
+ }[] | null | undefined;
2186
+ })[];
2187
+ success?: unknown;
2188
+ failure?: unknown;
2189
+ decline?: unknown;
2190
+ };
2191
+ id: string;
2192
+ } | {
2193
+ type: import("../nodes").NodeType.endOfConversationNode;
2194
+ data: {};
2195
+ id: string;
2196
+ } | {
2197
+ type: import("../nodes").NodeType.fullfillmentNode;
2198
+ data: {
2199
+ active: boolean | null;
2200
+ label: string;
2201
+ invocationLabel: string;
2202
+ success?: unknown;
2203
+ failure?: unknown;
2204
+ timeout?: unknown;
2205
+ };
2206
+ id: string;
2207
+ } | {
2208
+ type: import("../nodes").NodeType.goToIntentNode;
2209
+ data: {
2210
+ intentId: string;
2211
+ };
2212
+ id: string;
2213
+ } | {
2214
+ type: import("../nodes").NodeType.intentNode;
2215
+ data: {
2216
+ name: string;
2217
+ label: string;
2218
+ description: string;
2219
+ utterances: string;
2220
+ };
2221
+ id: string;
2222
+ } | {
2223
+ type: import("../nodes").NodeType.slotNode;
2224
+ data: {
2225
+ required: boolean | null;
2226
+ type: string;
2227
+ name: string;
2228
+ label: string;
2229
+ utterances: string;
2230
+ description?: unknown;
2231
+ prompt?: unknown;
2232
+ success?: unknown;
2233
+ failure?: unknown;
2234
+ };
2235
+ id: string;
2236
+ })[];
2237
+ edges: {
2238
+ id: string;
2239
+ source: string;
2240
+ target: string;
2241
+ sourceHandle: string;
2242
+ targetHandle: string;
2243
+ }[];
2244
+ }>;
2245
+ export type Graph = z.infer<typeof GraphSchema>;