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,1788 @@
1
+ import { z } from "zod";
2
+ export declare const NodeSchema: z.ZodUnion<[z.ZodObject<{
3
+ id: z.ZodString;
4
+ type: z.ZodLiteral<import("./node-type").NodeType.closingResponseNode>;
5
+ data: z.ZodObject<{
6
+ active: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
7
+ response: z.ZodCatch<z.ZodArray<z.ZodUnion<[z.ZodObject<{
8
+ id: z.ZodString;
9
+ type: z.ZodLiteral<import("../responses").MessageType.text>;
10
+ title: z.ZodString;
11
+ }, "strip", z.ZodTypeAny, {
12
+ type: import("../responses").MessageType.text;
13
+ id: string;
14
+ title: string;
15
+ }, {
16
+ type: import("../responses").MessageType.text;
17
+ id: string;
18
+ title: string;
19
+ }>, z.ZodObject<{
20
+ id: z.ZodString;
21
+ type: z.ZodLiteral<import("../responses").MessageType.textWithButton>;
22
+ title: z.ZodString;
23
+ buttons: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
24
+ id: z.ZodString;
25
+ actionType: z.ZodEnum<["post", "url"]>;
26
+ buttonTitle: z.ZodString;
27
+ value: z.ZodString;
28
+ action: z.ZodNullable<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
29
+ }, "strip", z.ZodTypeAny, {
30
+ id: string;
31
+ value: string;
32
+ actionType: "url" | "post";
33
+ buttonTitle: string;
34
+ action?: string | null | undefined;
35
+ }, {
36
+ id: string;
37
+ value: string;
38
+ actionType: "url" | "post";
39
+ buttonTitle: string;
40
+ action?: string | null | undefined;
41
+ }>, "many">>>>>;
42
+ }, "strip", z.ZodTypeAny, {
43
+ type: import("../responses").MessageType.textWithButton;
44
+ id: string;
45
+ title: string;
46
+ buttons?: {
47
+ id: string;
48
+ value: string;
49
+ actionType: "url" | "post";
50
+ buttonTitle: string;
51
+ action?: string | null | undefined;
52
+ }[] | null | undefined;
53
+ }, {
54
+ type: import("../responses").MessageType.textWithButton;
55
+ id: string;
56
+ title: string;
57
+ buttons?: {
58
+ id: string;
59
+ value: string;
60
+ actionType: "url" | "post";
61
+ buttonTitle: string;
62
+ action?: string | null | undefined;
63
+ }[] | null | undefined;
64
+ }>]>, "many">>;
65
+ }, "strip", z.ZodTypeAny, {
66
+ response: ({
67
+ type: import("../responses").MessageType.text;
68
+ id: string;
69
+ title: string;
70
+ } | {
71
+ type: import("../responses").MessageType.textWithButton;
72
+ id: string;
73
+ title: string;
74
+ buttons?: {
75
+ id: string;
76
+ value: string;
77
+ actionType: "url" | "post";
78
+ buttonTitle: string;
79
+ action?: string | null | undefined;
80
+ }[] | null | undefined;
81
+ })[];
82
+ active?: boolean | null | undefined;
83
+ }, {
84
+ active?: boolean | null | undefined;
85
+ response?: unknown;
86
+ }>;
87
+ }, "strip", z.ZodTypeAny, {
88
+ type: import("./node-type").NodeType.closingResponseNode;
89
+ data: {
90
+ response: ({
91
+ type: import("../responses").MessageType.text;
92
+ id: string;
93
+ title: string;
94
+ } | {
95
+ type: import("../responses").MessageType.textWithButton;
96
+ id: string;
97
+ title: string;
98
+ buttons?: {
99
+ id: string;
100
+ value: string;
101
+ actionType: "url" | "post";
102
+ buttonTitle: string;
103
+ action?: string | null | undefined;
104
+ }[] | null | undefined;
105
+ })[];
106
+ active?: boolean | null | undefined;
107
+ };
108
+ id: string;
109
+ }, {
110
+ type: import("./node-type").NodeType.closingResponseNode;
111
+ data: {
112
+ active?: boolean | null | undefined;
113
+ response?: unknown;
114
+ };
115
+ id: string;
116
+ }>, z.ZodObject<{
117
+ id: z.ZodString;
118
+ type: z.ZodLiteral<import("./node-type").NodeType.codeHookNode>;
119
+ data: z.ZodObject<{
120
+ label: z.ZodString;
121
+ invocationLabel: z.ZodString;
122
+ active: z.ZodNullable<z.ZodBoolean>;
123
+ success: z.ZodCatch<z.ZodArray<z.ZodUnion<[z.ZodObject<{
124
+ id: z.ZodString;
125
+ type: z.ZodLiteral<import("../responses").MessageType.text>;
126
+ title: z.ZodString;
127
+ }, "strip", z.ZodTypeAny, {
128
+ type: import("../responses").MessageType.text;
129
+ id: string;
130
+ title: string;
131
+ }, {
132
+ type: import("../responses").MessageType.text;
133
+ id: string;
134
+ title: string;
135
+ }>, z.ZodObject<{
136
+ id: z.ZodString;
137
+ type: z.ZodLiteral<import("../responses").MessageType.textWithButton>;
138
+ title: z.ZodString;
139
+ buttons: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
140
+ id: z.ZodString;
141
+ actionType: z.ZodEnum<["post", "url"]>;
142
+ buttonTitle: z.ZodString;
143
+ value: z.ZodString;
144
+ action: z.ZodNullable<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
145
+ }, "strip", z.ZodTypeAny, {
146
+ id: string;
147
+ value: string;
148
+ actionType: "url" | "post";
149
+ buttonTitle: string;
150
+ action?: string | null | undefined;
151
+ }, {
152
+ id: string;
153
+ value: string;
154
+ actionType: "url" | "post";
155
+ buttonTitle: string;
156
+ action?: string | null | undefined;
157
+ }>, "many">>>>>;
158
+ }, "strip", z.ZodTypeAny, {
159
+ type: import("../responses").MessageType.textWithButton;
160
+ id: string;
161
+ title: string;
162
+ buttons?: {
163
+ id: string;
164
+ value: string;
165
+ actionType: "url" | "post";
166
+ buttonTitle: string;
167
+ action?: string | null | undefined;
168
+ }[] | null | undefined;
169
+ }, {
170
+ type: import("../responses").MessageType.textWithButton;
171
+ id: string;
172
+ title: string;
173
+ buttons?: {
174
+ id: string;
175
+ value: string;
176
+ actionType: "url" | "post";
177
+ buttonTitle: string;
178
+ action?: string | null | undefined;
179
+ }[] | null | undefined;
180
+ }>]>, "many">>;
181
+ failure: z.ZodCatch<z.ZodArray<z.ZodUnion<[z.ZodObject<{
182
+ id: z.ZodString;
183
+ type: z.ZodLiteral<import("../responses").MessageType.text>;
184
+ title: z.ZodString;
185
+ }, "strip", z.ZodTypeAny, {
186
+ type: import("../responses").MessageType.text;
187
+ id: string;
188
+ title: string;
189
+ }, {
190
+ type: import("../responses").MessageType.text;
191
+ id: string;
192
+ title: string;
193
+ }>, z.ZodObject<{
194
+ id: z.ZodString;
195
+ type: z.ZodLiteral<import("../responses").MessageType.textWithButton>;
196
+ title: z.ZodString;
197
+ buttons: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
198
+ id: z.ZodString;
199
+ actionType: z.ZodEnum<["post", "url"]>;
200
+ buttonTitle: z.ZodString;
201
+ value: z.ZodString;
202
+ action: z.ZodNullable<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
203
+ }, "strip", z.ZodTypeAny, {
204
+ id: string;
205
+ value: string;
206
+ actionType: "url" | "post";
207
+ buttonTitle: string;
208
+ action?: string | null | undefined;
209
+ }, {
210
+ id: string;
211
+ value: string;
212
+ actionType: "url" | "post";
213
+ buttonTitle: string;
214
+ action?: string | null | undefined;
215
+ }>, "many">>>>>;
216
+ }, "strip", z.ZodTypeAny, {
217
+ type: import("../responses").MessageType.textWithButton;
218
+ id: string;
219
+ title: string;
220
+ buttons?: {
221
+ id: string;
222
+ value: string;
223
+ actionType: "url" | "post";
224
+ buttonTitle: string;
225
+ action?: string | null | undefined;
226
+ }[] | null | undefined;
227
+ }, {
228
+ type: import("../responses").MessageType.textWithButton;
229
+ id: string;
230
+ title: string;
231
+ buttons?: {
232
+ id: string;
233
+ value: string;
234
+ actionType: "url" | "post";
235
+ buttonTitle: string;
236
+ action?: string | null | undefined;
237
+ }[] | null | undefined;
238
+ }>]>, "many">>;
239
+ timeout: z.ZodCatch<z.ZodArray<z.ZodUnion<[z.ZodObject<{
240
+ id: z.ZodString;
241
+ type: z.ZodLiteral<import("../responses").MessageType.text>;
242
+ title: z.ZodString;
243
+ }, "strip", z.ZodTypeAny, {
244
+ type: import("../responses").MessageType.text;
245
+ id: string;
246
+ title: string;
247
+ }, {
248
+ type: import("../responses").MessageType.text;
249
+ id: string;
250
+ title: string;
251
+ }>, z.ZodObject<{
252
+ id: z.ZodString;
253
+ type: z.ZodLiteral<import("../responses").MessageType.textWithButton>;
254
+ title: z.ZodString;
255
+ buttons: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
256
+ id: z.ZodString;
257
+ actionType: z.ZodEnum<["post", "url"]>;
258
+ buttonTitle: z.ZodString;
259
+ value: z.ZodString;
260
+ action: z.ZodNullable<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
261
+ }, "strip", z.ZodTypeAny, {
262
+ id: string;
263
+ value: string;
264
+ actionType: "url" | "post";
265
+ buttonTitle: string;
266
+ action?: string | null | undefined;
267
+ }, {
268
+ id: string;
269
+ value: string;
270
+ actionType: "url" | "post";
271
+ buttonTitle: string;
272
+ action?: string | null | undefined;
273
+ }>, "many">>>>>;
274
+ }, "strip", z.ZodTypeAny, {
275
+ type: import("../responses").MessageType.textWithButton;
276
+ id: string;
277
+ title: string;
278
+ buttons?: {
279
+ id: string;
280
+ value: string;
281
+ actionType: "url" | "post";
282
+ buttonTitle: string;
283
+ action?: string | null | undefined;
284
+ }[] | null | undefined;
285
+ }, {
286
+ type: import("../responses").MessageType.textWithButton;
287
+ id: string;
288
+ title: string;
289
+ buttons?: {
290
+ id: string;
291
+ value: string;
292
+ actionType: "url" | "post";
293
+ buttonTitle: string;
294
+ action?: string | null | undefined;
295
+ }[] | null | undefined;
296
+ }>]>, "many">>;
297
+ }, "strip", z.ZodTypeAny, {
298
+ active: boolean | null;
299
+ label: string;
300
+ success: ({
301
+ type: import("../responses").MessageType.text;
302
+ id: string;
303
+ title: string;
304
+ } | {
305
+ type: import("../responses").MessageType.textWithButton;
306
+ id: string;
307
+ title: string;
308
+ buttons?: {
309
+ id: string;
310
+ value: string;
311
+ actionType: "url" | "post";
312
+ buttonTitle: string;
313
+ action?: string | null | undefined;
314
+ }[] | null | undefined;
315
+ })[];
316
+ timeout: ({
317
+ type: import("../responses").MessageType.text;
318
+ id: string;
319
+ title: string;
320
+ } | {
321
+ type: import("../responses").MessageType.textWithButton;
322
+ id: string;
323
+ title: string;
324
+ buttons?: {
325
+ id: string;
326
+ value: string;
327
+ actionType: "url" | "post";
328
+ buttonTitle: string;
329
+ action?: string | null | undefined;
330
+ }[] | null | undefined;
331
+ })[];
332
+ invocationLabel: string;
333
+ failure: ({
334
+ type: import("../responses").MessageType.text;
335
+ id: string;
336
+ title: string;
337
+ } | {
338
+ type: import("../responses").MessageType.textWithButton;
339
+ id: string;
340
+ title: string;
341
+ buttons?: {
342
+ id: string;
343
+ value: string;
344
+ actionType: "url" | "post";
345
+ buttonTitle: string;
346
+ action?: string | null | undefined;
347
+ }[] | null | undefined;
348
+ })[];
349
+ }, {
350
+ active: boolean | null;
351
+ label: string;
352
+ invocationLabel: string;
353
+ success?: unknown;
354
+ failure?: unknown;
355
+ timeout?: unknown;
356
+ }>;
357
+ }, "strip", z.ZodTypeAny, {
358
+ type: import("./node-type").NodeType.codeHookNode;
359
+ data: {
360
+ active: boolean | null;
361
+ label: string;
362
+ success: ({
363
+ type: import("../responses").MessageType.text;
364
+ id: string;
365
+ title: string;
366
+ } | {
367
+ type: import("../responses").MessageType.textWithButton;
368
+ id: string;
369
+ title: string;
370
+ buttons?: {
371
+ id: string;
372
+ value: string;
373
+ actionType: "url" | "post";
374
+ buttonTitle: string;
375
+ action?: string | null | undefined;
376
+ }[] | null | undefined;
377
+ })[];
378
+ timeout: ({
379
+ type: import("../responses").MessageType.text;
380
+ id: string;
381
+ title: string;
382
+ } | {
383
+ type: import("../responses").MessageType.textWithButton;
384
+ id: string;
385
+ title: string;
386
+ buttons?: {
387
+ id: string;
388
+ value: string;
389
+ actionType: "url" | "post";
390
+ buttonTitle: string;
391
+ action?: string | null | undefined;
392
+ }[] | null | undefined;
393
+ })[];
394
+ invocationLabel: string;
395
+ failure: ({
396
+ type: import("../responses").MessageType.text;
397
+ id: string;
398
+ title: string;
399
+ } | {
400
+ type: import("../responses").MessageType.textWithButton;
401
+ id: string;
402
+ title: string;
403
+ buttons?: {
404
+ id: string;
405
+ value: string;
406
+ actionType: "url" | "post";
407
+ buttonTitle: string;
408
+ action?: string | null | undefined;
409
+ }[] | null | undefined;
410
+ })[];
411
+ };
412
+ id: string;
413
+ }, {
414
+ type: import("./node-type").NodeType.codeHookNode;
415
+ data: {
416
+ active: boolean | null;
417
+ label: string;
418
+ invocationLabel: string;
419
+ success?: unknown;
420
+ failure?: unknown;
421
+ timeout?: unknown;
422
+ };
423
+ id: string;
424
+ }>, z.ZodObject<{
425
+ id: z.ZodString;
426
+ type: z.ZodLiteral<import("./node-type").NodeType.conditionNode>;
427
+ data: z.ZodObject<{
428
+ response: z.ZodCatch<z.ZodArray<z.ZodUnion<[z.ZodObject<{
429
+ id: z.ZodString;
430
+ type: z.ZodLiteral<import("../responses").MessageType.text>;
431
+ title: z.ZodString;
432
+ }, "strip", z.ZodTypeAny, {
433
+ type: import("../responses").MessageType.text;
434
+ id: string;
435
+ title: string;
436
+ }, {
437
+ type: import("../responses").MessageType.text;
438
+ id: string;
439
+ title: string;
440
+ }>, z.ZodObject<{
441
+ id: z.ZodString;
442
+ type: z.ZodLiteral<import("../responses").MessageType.textWithButton>;
443
+ title: z.ZodString;
444
+ buttons: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
445
+ id: z.ZodString;
446
+ actionType: z.ZodEnum<["post", "url"]>;
447
+ buttonTitle: z.ZodString;
448
+ value: z.ZodString;
449
+ action: z.ZodNullable<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
450
+ }, "strip", z.ZodTypeAny, {
451
+ id: string;
452
+ value: string;
453
+ actionType: "url" | "post";
454
+ buttonTitle: string;
455
+ action?: string | null | undefined;
456
+ }, {
457
+ id: string;
458
+ value: string;
459
+ actionType: "url" | "post";
460
+ buttonTitle: string;
461
+ action?: string | null | undefined;
462
+ }>, "many">>>>>;
463
+ }, "strip", z.ZodTypeAny, {
464
+ type: import("../responses").MessageType.textWithButton;
465
+ id: string;
466
+ title: string;
467
+ buttons?: {
468
+ id: string;
469
+ value: string;
470
+ actionType: "url" | "post";
471
+ buttonTitle: string;
472
+ action?: string | null | undefined;
473
+ }[] | null | undefined;
474
+ }, {
475
+ type: import("../responses").MessageType.textWithButton;
476
+ id: string;
477
+ title: string;
478
+ buttons?: {
479
+ id: string;
480
+ value: string;
481
+ actionType: "url" | "post";
482
+ buttonTitle: string;
483
+ action?: string | null | undefined;
484
+ }[] | null | undefined;
485
+ }>]>, "many">>;
486
+ branches: z.ZodCatch<z.ZodArray<z.ZodObject<{
487
+ id: z.ZodString;
488
+ name: z.ZodString;
489
+ expression: z.ZodString;
490
+ response: z.ZodCatch<z.ZodArray<z.ZodUnion<[z.ZodObject<{
491
+ id: z.ZodString;
492
+ type: z.ZodLiteral<import("../responses").MessageType.text>;
493
+ title: z.ZodString;
494
+ }, "strip", z.ZodTypeAny, {
495
+ type: import("../responses").MessageType.text;
496
+ id: string;
497
+ title: string;
498
+ }, {
499
+ type: import("../responses").MessageType.text;
500
+ id: string;
501
+ title: string;
502
+ }>, z.ZodObject<{
503
+ id: z.ZodString;
504
+ type: z.ZodLiteral<import("../responses").MessageType.textWithButton>;
505
+ title: z.ZodString;
506
+ buttons: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
507
+ id: z.ZodString;
508
+ actionType: z.ZodEnum<["post", "url"]>;
509
+ buttonTitle: z.ZodString;
510
+ value: z.ZodString;
511
+ action: z.ZodNullable<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
512
+ }, "strip", z.ZodTypeAny, {
513
+ id: string;
514
+ value: string;
515
+ actionType: "url" | "post";
516
+ buttonTitle: string;
517
+ action?: string | null | undefined;
518
+ }, {
519
+ id: string;
520
+ value: string;
521
+ actionType: "url" | "post";
522
+ buttonTitle: string;
523
+ action?: string | null | undefined;
524
+ }>, "many">>>>>;
525
+ }, "strip", z.ZodTypeAny, {
526
+ type: import("../responses").MessageType.textWithButton;
527
+ id: string;
528
+ title: string;
529
+ buttons?: {
530
+ id: string;
531
+ value: string;
532
+ actionType: "url" | "post";
533
+ buttonTitle: string;
534
+ action?: string | null | undefined;
535
+ }[] | null | undefined;
536
+ }, {
537
+ type: import("../responses").MessageType.textWithButton;
538
+ id: string;
539
+ title: string;
540
+ buttons?: {
541
+ id: string;
542
+ value: string;
543
+ actionType: "url" | "post";
544
+ buttonTitle: string;
545
+ action?: string | null | undefined;
546
+ }[] | null | undefined;
547
+ }>]>, "many">>;
548
+ }, "strip", z.ZodTypeAny, {
549
+ id: string;
550
+ name: string;
551
+ response: ({
552
+ type: import("../responses").MessageType.text;
553
+ id: string;
554
+ title: string;
555
+ } | {
556
+ type: import("../responses").MessageType.textWithButton;
557
+ id: string;
558
+ title: string;
559
+ buttons?: {
560
+ id: string;
561
+ value: string;
562
+ actionType: "url" | "post";
563
+ buttonTitle: string;
564
+ action?: string | null | undefined;
565
+ }[] | null | undefined;
566
+ })[];
567
+ expression: string;
568
+ }, {
569
+ id: string;
570
+ name: string;
571
+ expression: string;
572
+ response?: unknown;
573
+ }>, "many">>;
574
+ }, "strip", z.ZodTypeAny, {
575
+ response: ({
576
+ type: import("../responses").MessageType.text;
577
+ id: string;
578
+ title: string;
579
+ } | {
580
+ type: import("../responses").MessageType.textWithButton;
581
+ id: string;
582
+ title: string;
583
+ buttons?: {
584
+ id: string;
585
+ value: string;
586
+ actionType: "url" | "post";
587
+ buttonTitle: string;
588
+ action?: string | null | undefined;
589
+ }[] | null | undefined;
590
+ })[];
591
+ branches: {
592
+ id: string;
593
+ name: string;
594
+ response: ({
595
+ type: import("../responses").MessageType.text;
596
+ id: string;
597
+ title: string;
598
+ } | {
599
+ type: import("../responses").MessageType.textWithButton;
600
+ id: string;
601
+ title: string;
602
+ buttons?: {
603
+ id: string;
604
+ value: string;
605
+ actionType: "url" | "post";
606
+ buttonTitle: string;
607
+ action?: string | null | undefined;
608
+ }[] | null | undefined;
609
+ })[];
610
+ expression: string;
611
+ }[];
612
+ }, {
613
+ response?: unknown;
614
+ branches?: unknown;
615
+ }>;
616
+ }, "strip", z.ZodTypeAny, {
617
+ type: import("./node-type").NodeType.conditionNode;
618
+ data: {
619
+ response: ({
620
+ type: import("../responses").MessageType.text;
621
+ id: string;
622
+ title: string;
623
+ } | {
624
+ type: import("../responses").MessageType.textWithButton;
625
+ id: string;
626
+ title: string;
627
+ buttons?: {
628
+ id: string;
629
+ value: string;
630
+ actionType: "url" | "post";
631
+ buttonTitle: string;
632
+ action?: string | null | undefined;
633
+ }[] | null | undefined;
634
+ })[];
635
+ branches: {
636
+ id: string;
637
+ name: string;
638
+ response: ({
639
+ type: import("../responses").MessageType.text;
640
+ id: string;
641
+ title: string;
642
+ } | {
643
+ type: import("../responses").MessageType.textWithButton;
644
+ id: string;
645
+ title: string;
646
+ buttons?: {
647
+ id: string;
648
+ value: string;
649
+ actionType: "url" | "post";
650
+ buttonTitle: string;
651
+ action?: string | null | undefined;
652
+ }[] | null | undefined;
653
+ })[];
654
+ expression: string;
655
+ }[];
656
+ };
657
+ id: string;
658
+ }, {
659
+ type: import("./node-type").NodeType.conditionNode;
660
+ data: {
661
+ response?: unknown;
662
+ branches?: unknown;
663
+ };
664
+ id: string;
665
+ }>, z.ZodObject<{
666
+ id: z.ZodString;
667
+ type: z.ZodLiteral<import("./node-type").NodeType.confirmationNode>;
668
+ data: z.ZodObject<{
669
+ label: z.ZodString;
670
+ prompt: z.ZodArray<z.ZodUnion<[z.ZodObject<{
671
+ id: z.ZodString;
672
+ type: z.ZodLiteral<import("../responses").MessageType.text>;
673
+ title: z.ZodString;
674
+ }, "strip", z.ZodTypeAny, {
675
+ type: import("../responses").MessageType.text;
676
+ id: string;
677
+ title: string;
678
+ }, {
679
+ type: import("../responses").MessageType.text;
680
+ id: string;
681
+ title: string;
682
+ }>, z.ZodObject<{
683
+ id: z.ZodString;
684
+ type: z.ZodLiteral<import("../responses").MessageType.textWithButton>;
685
+ title: z.ZodString;
686
+ buttons: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
687
+ id: z.ZodString;
688
+ actionType: z.ZodEnum<["post", "url"]>;
689
+ buttonTitle: z.ZodString;
690
+ value: z.ZodString;
691
+ action: z.ZodNullable<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
692
+ }, "strip", z.ZodTypeAny, {
693
+ id: string;
694
+ value: string;
695
+ actionType: "url" | "post";
696
+ buttonTitle: string;
697
+ action?: string | null | undefined;
698
+ }, {
699
+ id: string;
700
+ value: string;
701
+ actionType: "url" | "post";
702
+ buttonTitle: string;
703
+ action?: string | null | undefined;
704
+ }>, "many">>>>>;
705
+ }, "strip", z.ZodTypeAny, {
706
+ type: import("../responses").MessageType.textWithButton;
707
+ id: string;
708
+ title: string;
709
+ buttons?: {
710
+ id: string;
711
+ value: string;
712
+ actionType: "url" | "post";
713
+ buttonTitle: string;
714
+ action?: string | null | undefined;
715
+ }[] | null | undefined;
716
+ }, {
717
+ type: import("../responses").MessageType.textWithButton;
718
+ id: string;
719
+ title: string;
720
+ buttons?: {
721
+ id: string;
722
+ value: string;
723
+ actionType: "url" | "post";
724
+ buttonTitle: string;
725
+ action?: string | null | undefined;
726
+ }[] | null | undefined;
727
+ }>]>, "many">;
728
+ success: z.ZodCatch<z.ZodArray<z.ZodUnion<[z.ZodObject<{
729
+ id: z.ZodString;
730
+ type: z.ZodLiteral<import("../responses").MessageType.text>;
731
+ title: z.ZodString;
732
+ }, "strip", z.ZodTypeAny, {
733
+ type: import("../responses").MessageType.text;
734
+ id: string;
735
+ title: string;
736
+ }, {
737
+ type: import("../responses").MessageType.text;
738
+ id: string;
739
+ title: string;
740
+ }>, z.ZodObject<{
741
+ id: z.ZodString;
742
+ type: z.ZodLiteral<import("../responses").MessageType.textWithButton>;
743
+ title: z.ZodString;
744
+ buttons: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
745
+ id: z.ZodString;
746
+ actionType: z.ZodEnum<["post", "url"]>;
747
+ buttonTitle: z.ZodString;
748
+ value: z.ZodString;
749
+ action: z.ZodNullable<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
750
+ }, "strip", z.ZodTypeAny, {
751
+ id: string;
752
+ value: string;
753
+ actionType: "url" | "post";
754
+ buttonTitle: string;
755
+ action?: string | null | undefined;
756
+ }, {
757
+ id: string;
758
+ value: string;
759
+ actionType: "url" | "post";
760
+ buttonTitle: string;
761
+ action?: string | null | undefined;
762
+ }>, "many">>>>>;
763
+ }, "strip", z.ZodTypeAny, {
764
+ type: import("../responses").MessageType.textWithButton;
765
+ id: string;
766
+ title: string;
767
+ buttons?: {
768
+ id: string;
769
+ value: string;
770
+ actionType: "url" | "post";
771
+ buttonTitle: string;
772
+ action?: string | null | undefined;
773
+ }[] | null | undefined;
774
+ }, {
775
+ type: import("../responses").MessageType.textWithButton;
776
+ id: string;
777
+ title: string;
778
+ buttons?: {
779
+ id: string;
780
+ value: string;
781
+ actionType: "url" | "post";
782
+ buttonTitle: string;
783
+ action?: string | null | undefined;
784
+ }[] | null | undefined;
785
+ }>]>, "many">>;
786
+ failure: z.ZodCatch<z.ZodArray<z.ZodUnion<[z.ZodObject<{
787
+ id: z.ZodString;
788
+ type: z.ZodLiteral<import("../responses").MessageType.text>;
789
+ title: z.ZodString;
790
+ }, "strip", z.ZodTypeAny, {
791
+ type: import("../responses").MessageType.text;
792
+ id: string;
793
+ title: string;
794
+ }, {
795
+ type: import("../responses").MessageType.text;
796
+ id: string;
797
+ title: string;
798
+ }>, z.ZodObject<{
799
+ id: z.ZodString;
800
+ type: z.ZodLiteral<import("../responses").MessageType.textWithButton>;
801
+ title: z.ZodString;
802
+ buttons: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
803
+ id: z.ZodString;
804
+ actionType: z.ZodEnum<["post", "url"]>;
805
+ buttonTitle: z.ZodString;
806
+ value: z.ZodString;
807
+ action: z.ZodNullable<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
808
+ }, "strip", z.ZodTypeAny, {
809
+ id: string;
810
+ value: string;
811
+ actionType: "url" | "post";
812
+ buttonTitle: string;
813
+ action?: string | null | undefined;
814
+ }, {
815
+ id: string;
816
+ value: string;
817
+ actionType: "url" | "post";
818
+ buttonTitle: string;
819
+ action?: string | null | undefined;
820
+ }>, "many">>>>>;
821
+ }, "strip", z.ZodTypeAny, {
822
+ type: import("../responses").MessageType.textWithButton;
823
+ id: string;
824
+ title: string;
825
+ buttons?: {
826
+ id: string;
827
+ value: string;
828
+ actionType: "url" | "post";
829
+ buttonTitle: string;
830
+ action?: string | null | undefined;
831
+ }[] | null | undefined;
832
+ }, {
833
+ type: import("../responses").MessageType.textWithButton;
834
+ id: string;
835
+ title: string;
836
+ buttons?: {
837
+ id: string;
838
+ value: string;
839
+ actionType: "url" | "post";
840
+ buttonTitle: string;
841
+ action?: string | null | undefined;
842
+ }[] | null | undefined;
843
+ }>]>, "many">>;
844
+ decline: z.ZodCatch<z.ZodArray<z.ZodUnion<[z.ZodObject<{
845
+ id: z.ZodString;
846
+ type: z.ZodLiteral<import("../responses").MessageType.text>;
847
+ title: z.ZodString;
848
+ }, "strip", z.ZodTypeAny, {
849
+ type: import("../responses").MessageType.text;
850
+ id: string;
851
+ title: string;
852
+ }, {
853
+ type: import("../responses").MessageType.text;
854
+ id: string;
855
+ title: string;
856
+ }>, z.ZodObject<{
857
+ id: z.ZodString;
858
+ type: z.ZodLiteral<import("../responses").MessageType.textWithButton>;
859
+ title: z.ZodString;
860
+ buttons: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
861
+ id: z.ZodString;
862
+ actionType: z.ZodEnum<["post", "url"]>;
863
+ buttonTitle: z.ZodString;
864
+ value: z.ZodString;
865
+ action: z.ZodNullable<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
866
+ }, "strip", z.ZodTypeAny, {
867
+ id: string;
868
+ value: string;
869
+ actionType: "url" | "post";
870
+ buttonTitle: string;
871
+ action?: string | null | undefined;
872
+ }, {
873
+ id: string;
874
+ value: string;
875
+ actionType: "url" | "post";
876
+ buttonTitle: string;
877
+ action?: string | null | undefined;
878
+ }>, "many">>>>>;
879
+ }, "strip", z.ZodTypeAny, {
880
+ type: import("../responses").MessageType.textWithButton;
881
+ id: string;
882
+ title: string;
883
+ buttons?: {
884
+ id: string;
885
+ value: string;
886
+ actionType: "url" | "post";
887
+ buttonTitle: string;
888
+ action?: string | null | undefined;
889
+ }[] | null | undefined;
890
+ }, {
891
+ type: import("../responses").MessageType.textWithButton;
892
+ id: string;
893
+ title: string;
894
+ buttons?: {
895
+ id: string;
896
+ value: string;
897
+ actionType: "url" | "post";
898
+ buttonTitle: string;
899
+ action?: string | null | undefined;
900
+ }[] | null | undefined;
901
+ }>]>, "many">>;
902
+ }, "strip", z.ZodTypeAny, {
903
+ label: string;
904
+ success: ({
905
+ type: import("../responses").MessageType.text;
906
+ id: string;
907
+ title: string;
908
+ } | {
909
+ type: import("../responses").MessageType.textWithButton;
910
+ id: string;
911
+ title: string;
912
+ buttons?: {
913
+ id: string;
914
+ value: string;
915
+ actionType: "url" | "post";
916
+ buttonTitle: string;
917
+ action?: string | null | undefined;
918
+ }[] | null | undefined;
919
+ })[];
920
+ prompt: ({
921
+ type: import("../responses").MessageType.text;
922
+ id: string;
923
+ title: string;
924
+ } | {
925
+ type: import("../responses").MessageType.textWithButton;
926
+ id: string;
927
+ title: string;
928
+ buttons?: {
929
+ id: string;
930
+ value: string;
931
+ actionType: "url" | "post";
932
+ buttonTitle: string;
933
+ action?: string | null | undefined;
934
+ }[] | null | undefined;
935
+ })[];
936
+ failure: ({
937
+ type: import("../responses").MessageType.text;
938
+ id: string;
939
+ title: string;
940
+ } | {
941
+ type: import("../responses").MessageType.textWithButton;
942
+ id: string;
943
+ title: string;
944
+ buttons?: {
945
+ id: string;
946
+ value: string;
947
+ actionType: "url" | "post";
948
+ buttonTitle: string;
949
+ action?: string | null | undefined;
950
+ }[] | null | undefined;
951
+ })[];
952
+ decline: ({
953
+ type: import("../responses").MessageType.text;
954
+ id: string;
955
+ title: string;
956
+ } | {
957
+ type: import("../responses").MessageType.textWithButton;
958
+ id: string;
959
+ title: string;
960
+ buttons?: {
961
+ id: string;
962
+ value: string;
963
+ actionType: "url" | "post";
964
+ buttonTitle: string;
965
+ action?: string | null | undefined;
966
+ }[] | null | undefined;
967
+ })[];
968
+ }, {
969
+ label: string;
970
+ prompt: ({
971
+ type: import("../responses").MessageType.text;
972
+ id: string;
973
+ title: string;
974
+ } | {
975
+ type: import("../responses").MessageType.textWithButton;
976
+ id: string;
977
+ title: string;
978
+ buttons?: {
979
+ id: string;
980
+ value: string;
981
+ actionType: "url" | "post";
982
+ buttonTitle: string;
983
+ action?: string | null | undefined;
984
+ }[] | null | undefined;
985
+ })[];
986
+ success?: unknown;
987
+ failure?: unknown;
988
+ decline?: unknown;
989
+ }>;
990
+ }, "strip", z.ZodTypeAny, {
991
+ type: import("./node-type").NodeType.confirmationNode;
992
+ data: {
993
+ label: string;
994
+ success: ({
995
+ type: import("../responses").MessageType.text;
996
+ id: string;
997
+ title: string;
998
+ } | {
999
+ type: import("../responses").MessageType.textWithButton;
1000
+ id: string;
1001
+ title: string;
1002
+ buttons?: {
1003
+ id: string;
1004
+ value: string;
1005
+ actionType: "url" | "post";
1006
+ buttonTitle: string;
1007
+ action?: string | null | undefined;
1008
+ }[] | null | undefined;
1009
+ })[];
1010
+ prompt: ({
1011
+ type: import("../responses").MessageType.text;
1012
+ id: string;
1013
+ title: string;
1014
+ } | {
1015
+ type: import("../responses").MessageType.textWithButton;
1016
+ id: string;
1017
+ title: string;
1018
+ buttons?: {
1019
+ id: string;
1020
+ value: string;
1021
+ actionType: "url" | "post";
1022
+ buttonTitle: string;
1023
+ action?: string | null | undefined;
1024
+ }[] | null | undefined;
1025
+ })[];
1026
+ failure: ({
1027
+ type: import("../responses").MessageType.text;
1028
+ id: string;
1029
+ title: string;
1030
+ } | {
1031
+ type: import("../responses").MessageType.textWithButton;
1032
+ id: string;
1033
+ title: string;
1034
+ buttons?: {
1035
+ id: string;
1036
+ value: string;
1037
+ actionType: "url" | "post";
1038
+ buttonTitle: string;
1039
+ action?: string | null | undefined;
1040
+ }[] | null | undefined;
1041
+ })[];
1042
+ decline: ({
1043
+ type: import("../responses").MessageType.text;
1044
+ id: string;
1045
+ title: string;
1046
+ } | {
1047
+ type: import("../responses").MessageType.textWithButton;
1048
+ id: string;
1049
+ title: string;
1050
+ buttons?: {
1051
+ id: string;
1052
+ value: string;
1053
+ actionType: "url" | "post";
1054
+ buttonTitle: string;
1055
+ action?: string | null | undefined;
1056
+ }[] | null | undefined;
1057
+ })[];
1058
+ };
1059
+ id: string;
1060
+ }, {
1061
+ type: import("./node-type").NodeType.confirmationNode;
1062
+ data: {
1063
+ label: string;
1064
+ prompt: ({
1065
+ type: import("../responses").MessageType.text;
1066
+ id: string;
1067
+ title: string;
1068
+ } | {
1069
+ type: import("../responses").MessageType.textWithButton;
1070
+ id: string;
1071
+ title: string;
1072
+ buttons?: {
1073
+ id: string;
1074
+ value: string;
1075
+ actionType: "url" | "post";
1076
+ buttonTitle: string;
1077
+ action?: string | null | undefined;
1078
+ }[] | null | undefined;
1079
+ })[];
1080
+ success?: unknown;
1081
+ failure?: unknown;
1082
+ decline?: unknown;
1083
+ };
1084
+ id: string;
1085
+ }>, z.ZodObject<{
1086
+ id: z.ZodString;
1087
+ type: z.ZodLiteral<import("./node-type").NodeType.endOfConversationNode>;
1088
+ data: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
1089
+ }, "strip", z.ZodTypeAny, {
1090
+ type: import("./node-type").NodeType.endOfConversationNode;
1091
+ data: {};
1092
+ id: string;
1093
+ }, {
1094
+ type: import("./node-type").NodeType.endOfConversationNode;
1095
+ data: {};
1096
+ id: string;
1097
+ }>, z.ZodObject<{
1098
+ id: z.ZodString;
1099
+ type: z.ZodLiteral<import("./node-type").NodeType.fullfillmentNode>;
1100
+ data: z.ZodObject<{
1101
+ label: z.ZodString;
1102
+ invocationLabel: z.ZodString;
1103
+ active: z.ZodNullable<z.ZodBoolean>;
1104
+ success: z.ZodCatch<z.ZodArray<z.ZodUnion<[z.ZodObject<{
1105
+ id: z.ZodString;
1106
+ type: z.ZodLiteral<import("../responses").MessageType.text>;
1107
+ title: z.ZodString;
1108
+ }, "strip", z.ZodTypeAny, {
1109
+ type: import("../responses").MessageType.text;
1110
+ id: string;
1111
+ title: string;
1112
+ }, {
1113
+ type: import("../responses").MessageType.text;
1114
+ id: string;
1115
+ title: string;
1116
+ }>, z.ZodObject<{
1117
+ id: z.ZodString;
1118
+ type: z.ZodLiteral<import("../responses").MessageType.textWithButton>;
1119
+ title: z.ZodString;
1120
+ buttons: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
1121
+ id: z.ZodString;
1122
+ actionType: z.ZodEnum<["post", "url"]>;
1123
+ buttonTitle: z.ZodString;
1124
+ value: z.ZodString;
1125
+ action: z.ZodNullable<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1126
+ }, "strip", z.ZodTypeAny, {
1127
+ id: string;
1128
+ value: string;
1129
+ actionType: "url" | "post";
1130
+ buttonTitle: string;
1131
+ action?: string | null | undefined;
1132
+ }, {
1133
+ id: string;
1134
+ value: string;
1135
+ actionType: "url" | "post";
1136
+ buttonTitle: string;
1137
+ action?: string | null | undefined;
1138
+ }>, "many">>>>>;
1139
+ }, "strip", z.ZodTypeAny, {
1140
+ type: import("../responses").MessageType.textWithButton;
1141
+ id: string;
1142
+ title: string;
1143
+ buttons?: {
1144
+ id: string;
1145
+ value: string;
1146
+ actionType: "url" | "post";
1147
+ buttonTitle: string;
1148
+ action?: string | null | undefined;
1149
+ }[] | null | undefined;
1150
+ }, {
1151
+ type: import("../responses").MessageType.textWithButton;
1152
+ id: string;
1153
+ title: string;
1154
+ buttons?: {
1155
+ id: string;
1156
+ value: string;
1157
+ actionType: "url" | "post";
1158
+ buttonTitle: string;
1159
+ action?: string | null | undefined;
1160
+ }[] | null | undefined;
1161
+ }>]>, "many">>;
1162
+ failure: z.ZodCatch<z.ZodArray<z.ZodUnion<[z.ZodObject<{
1163
+ id: z.ZodString;
1164
+ type: z.ZodLiteral<import("../responses").MessageType.text>;
1165
+ title: z.ZodString;
1166
+ }, "strip", z.ZodTypeAny, {
1167
+ type: import("../responses").MessageType.text;
1168
+ id: string;
1169
+ title: string;
1170
+ }, {
1171
+ type: import("../responses").MessageType.text;
1172
+ id: string;
1173
+ title: string;
1174
+ }>, z.ZodObject<{
1175
+ id: z.ZodString;
1176
+ type: z.ZodLiteral<import("../responses").MessageType.textWithButton>;
1177
+ title: z.ZodString;
1178
+ buttons: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
1179
+ id: z.ZodString;
1180
+ actionType: z.ZodEnum<["post", "url"]>;
1181
+ buttonTitle: z.ZodString;
1182
+ value: z.ZodString;
1183
+ action: z.ZodNullable<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1184
+ }, "strip", z.ZodTypeAny, {
1185
+ id: string;
1186
+ value: string;
1187
+ actionType: "url" | "post";
1188
+ buttonTitle: string;
1189
+ action?: string | null | undefined;
1190
+ }, {
1191
+ id: string;
1192
+ value: string;
1193
+ actionType: "url" | "post";
1194
+ buttonTitle: string;
1195
+ action?: string | null | undefined;
1196
+ }>, "many">>>>>;
1197
+ }, "strip", z.ZodTypeAny, {
1198
+ type: import("../responses").MessageType.textWithButton;
1199
+ id: string;
1200
+ title: string;
1201
+ buttons?: {
1202
+ id: string;
1203
+ value: string;
1204
+ actionType: "url" | "post";
1205
+ buttonTitle: string;
1206
+ action?: string | null | undefined;
1207
+ }[] | null | undefined;
1208
+ }, {
1209
+ type: import("../responses").MessageType.textWithButton;
1210
+ id: string;
1211
+ title: string;
1212
+ buttons?: {
1213
+ id: string;
1214
+ value: string;
1215
+ actionType: "url" | "post";
1216
+ buttonTitle: string;
1217
+ action?: string | null | undefined;
1218
+ }[] | null | undefined;
1219
+ }>]>, "many">>;
1220
+ timeout: z.ZodCatch<z.ZodArray<z.ZodUnion<[z.ZodObject<{
1221
+ id: z.ZodString;
1222
+ type: z.ZodLiteral<import("../responses").MessageType.text>;
1223
+ title: z.ZodString;
1224
+ }, "strip", z.ZodTypeAny, {
1225
+ type: import("../responses").MessageType.text;
1226
+ id: string;
1227
+ title: string;
1228
+ }, {
1229
+ type: import("../responses").MessageType.text;
1230
+ id: string;
1231
+ title: string;
1232
+ }>, z.ZodObject<{
1233
+ id: z.ZodString;
1234
+ type: z.ZodLiteral<import("../responses").MessageType.textWithButton>;
1235
+ title: z.ZodString;
1236
+ buttons: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
1237
+ id: z.ZodString;
1238
+ actionType: z.ZodEnum<["post", "url"]>;
1239
+ buttonTitle: z.ZodString;
1240
+ value: z.ZodString;
1241
+ action: z.ZodNullable<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1242
+ }, "strip", z.ZodTypeAny, {
1243
+ id: string;
1244
+ value: string;
1245
+ actionType: "url" | "post";
1246
+ buttonTitle: string;
1247
+ action?: string | null | undefined;
1248
+ }, {
1249
+ id: string;
1250
+ value: string;
1251
+ actionType: "url" | "post";
1252
+ buttonTitle: string;
1253
+ action?: string | null | undefined;
1254
+ }>, "many">>>>>;
1255
+ }, "strip", z.ZodTypeAny, {
1256
+ type: import("../responses").MessageType.textWithButton;
1257
+ id: string;
1258
+ title: string;
1259
+ buttons?: {
1260
+ id: string;
1261
+ value: string;
1262
+ actionType: "url" | "post";
1263
+ buttonTitle: string;
1264
+ action?: string | null | undefined;
1265
+ }[] | null | undefined;
1266
+ }, {
1267
+ type: import("../responses").MessageType.textWithButton;
1268
+ id: string;
1269
+ title: string;
1270
+ buttons?: {
1271
+ id: string;
1272
+ value: string;
1273
+ actionType: "url" | "post";
1274
+ buttonTitle: string;
1275
+ action?: string | null | undefined;
1276
+ }[] | null | undefined;
1277
+ }>]>, "many">>;
1278
+ }, "strip", z.ZodTypeAny, {
1279
+ active: boolean | null;
1280
+ label: string;
1281
+ success: ({
1282
+ type: import("../responses").MessageType.text;
1283
+ id: string;
1284
+ title: string;
1285
+ } | {
1286
+ type: import("../responses").MessageType.textWithButton;
1287
+ id: string;
1288
+ title: string;
1289
+ buttons?: {
1290
+ id: string;
1291
+ value: string;
1292
+ actionType: "url" | "post";
1293
+ buttonTitle: string;
1294
+ action?: string | null | undefined;
1295
+ }[] | null | undefined;
1296
+ })[];
1297
+ timeout: ({
1298
+ type: import("../responses").MessageType.text;
1299
+ id: string;
1300
+ title: string;
1301
+ } | {
1302
+ type: import("../responses").MessageType.textWithButton;
1303
+ id: string;
1304
+ title: string;
1305
+ buttons?: {
1306
+ id: string;
1307
+ value: string;
1308
+ actionType: "url" | "post";
1309
+ buttonTitle: string;
1310
+ action?: string | null | undefined;
1311
+ }[] | null | undefined;
1312
+ })[];
1313
+ invocationLabel: string;
1314
+ failure: ({
1315
+ type: import("../responses").MessageType.text;
1316
+ id: string;
1317
+ title: string;
1318
+ } | {
1319
+ type: import("../responses").MessageType.textWithButton;
1320
+ id: string;
1321
+ title: string;
1322
+ buttons?: {
1323
+ id: string;
1324
+ value: string;
1325
+ actionType: "url" | "post";
1326
+ buttonTitle: string;
1327
+ action?: string | null | undefined;
1328
+ }[] | null | undefined;
1329
+ })[];
1330
+ }, {
1331
+ active: boolean | null;
1332
+ label: string;
1333
+ invocationLabel: string;
1334
+ success?: unknown;
1335
+ failure?: unknown;
1336
+ timeout?: unknown;
1337
+ }>;
1338
+ }, "strip", z.ZodTypeAny, {
1339
+ type: import("./node-type").NodeType.fullfillmentNode;
1340
+ data: {
1341
+ active: boolean | null;
1342
+ label: string;
1343
+ success: ({
1344
+ type: import("../responses").MessageType.text;
1345
+ id: string;
1346
+ title: string;
1347
+ } | {
1348
+ type: import("../responses").MessageType.textWithButton;
1349
+ id: string;
1350
+ title: string;
1351
+ buttons?: {
1352
+ id: string;
1353
+ value: string;
1354
+ actionType: "url" | "post";
1355
+ buttonTitle: string;
1356
+ action?: string | null | undefined;
1357
+ }[] | null | undefined;
1358
+ })[];
1359
+ timeout: ({
1360
+ type: import("../responses").MessageType.text;
1361
+ id: string;
1362
+ title: string;
1363
+ } | {
1364
+ type: import("../responses").MessageType.textWithButton;
1365
+ id: string;
1366
+ title: string;
1367
+ buttons?: {
1368
+ id: string;
1369
+ value: string;
1370
+ actionType: "url" | "post";
1371
+ buttonTitle: string;
1372
+ action?: string | null | undefined;
1373
+ }[] | null | undefined;
1374
+ })[];
1375
+ invocationLabel: string;
1376
+ failure: ({
1377
+ type: import("../responses").MessageType.text;
1378
+ id: string;
1379
+ title: string;
1380
+ } | {
1381
+ type: import("../responses").MessageType.textWithButton;
1382
+ id: string;
1383
+ title: string;
1384
+ buttons?: {
1385
+ id: string;
1386
+ value: string;
1387
+ actionType: "url" | "post";
1388
+ buttonTitle: string;
1389
+ action?: string | null | undefined;
1390
+ }[] | null | undefined;
1391
+ })[];
1392
+ };
1393
+ id: string;
1394
+ }, {
1395
+ type: import("./node-type").NodeType.fullfillmentNode;
1396
+ data: {
1397
+ active: boolean | null;
1398
+ label: string;
1399
+ invocationLabel: string;
1400
+ success?: unknown;
1401
+ failure?: unknown;
1402
+ timeout?: unknown;
1403
+ };
1404
+ id: string;
1405
+ }>, z.ZodObject<{
1406
+ id: z.ZodString;
1407
+ type: z.ZodLiteral<import("./node-type").NodeType.goToIntentNode>;
1408
+ data: z.ZodObject<{
1409
+ intentId: z.ZodString;
1410
+ }, "strip", z.ZodTypeAny, {
1411
+ intentId: string;
1412
+ }, {
1413
+ intentId: string;
1414
+ }>;
1415
+ }, "strip", z.ZodTypeAny, {
1416
+ type: import("./node-type").NodeType.goToIntentNode;
1417
+ data: {
1418
+ intentId: string;
1419
+ };
1420
+ id: string;
1421
+ }, {
1422
+ type: import("./node-type").NodeType.goToIntentNode;
1423
+ data: {
1424
+ intentId: string;
1425
+ };
1426
+ id: string;
1427
+ }>, z.ZodObject<{
1428
+ id: z.ZodString;
1429
+ type: z.ZodLiteral<import("./node-type").NodeType.intentNode>;
1430
+ data: z.ZodObject<{
1431
+ label: z.ZodString;
1432
+ name: z.ZodString;
1433
+ description: z.ZodString;
1434
+ utterances: z.ZodString;
1435
+ }, "strip", z.ZodTypeAny, {
1436
+ name: string;
1437
+ label: string;
1438
+ description: string;
1439
+ utterances: string;
1440
+ }, {
1441
+ name: string;
1442
+ label: string;
1443
+ description: string;
1444
+ utterances: string;
1445
+ }>;
1446
+ }, "strip", z.ZodTypeAny, {
1447
+ type: import("./node-type").NodeType.intentNode;
1448
+ data: {
1449
+ name: string;
1450
+ label: string;
1451
+ description: string;
1452
+ utterances: string;
1453
+ };
1454
+ id: string;
1455
+ }, {
1456
+ type: import("./node-type").NodeType.intentNode;
1457
+ data: {
1458
+ name: string;
1459
+ label: string;
1460
+ description: string;
1461
+ utterances: string;
1462
+ };
1463
+ id: string;
1464
+ }>, z.ZodObject<{
1465
+ id: z.ZodString;
1466
+ type: z.ZodLiteral<import("./node-type").NodeType.slotNode>;
1467
+ data: z.ZodObject<{
1468
+ name: z.ZodString;
1469
+ description: z.ZodCatch<z.ZodString>;
1470
+ required: z.ZodNullable<z.ZodBoolean>;
1471
+ utterances: z.ZodString;
1472
+ label: z.ZodString;
1473
+ prompt: z.ZodCatch<z.ZodArray<z.ZodUnion<[z.ZodObject<{
1474
+ id: z.ZodString;
1475
+ type: z.ZodLiteral<import("../responses").MessageType.text>;
1476
+ title: z.ZodString;
1477
+ }, "strip", z.ZodTypeAny, {
1478
+ type: import("../responses").MessageType.text;
1479
+ id: string;
1480
+ title: string;
1481
+ }, {
1482
+ type: import("../responses").MessageType.text;
1483
+ id: string;
1484
+ title: string;
1485
+ }>, z.ZodObject<{
1486
+ id: z.ZodString;
1487
+ type: z.ZodLiteral<import("../responses").MessageType.textWithButton>;
1488
+ title: z.ZodString;
1489
+ buttons: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
1490
+ id: z.ZodString;
1491
+ actionType: z.ZodEnum<["post", "url"]>;
1492
+ buttonTitle: z.ZodString;
1493
+ value: z.ZodString;
1494
+ action: z.ZodNullable<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1495
+ }, "strip", z.ZodTypeAny, {
1496
+ id: string;
1497
+ value: string;
1498
+ actionType: "url" | "post";
1499
+ buttonTitle: string;
1500
+ action?: string | null | undefined;
1501
+ }, {
1502
+ id: string;
1503
+ value: string;
1504
+ actionType: "url" | "post";
1505
+ buttonTitle: string;
1506
+ action?: string | null | undefined;
1507
+ }>, "many">>>>>;
1508
+ }, "strip", z.ZodTypeAny, {
1509
+ type: import("../responses").MessageType.textWithButton;
1510
+ id: string;
1511
+ title: string;
1512
+ buttons?: {
1513
+ id: string;
1514
+ value: string;
1515
+ actionType: "url" | "post";
1516
+ buttonTitle: string;
1517
+ action?: string | null | undefined;
1518
+ }[] | null | undefined;
1519
+ }, {
1520
+ type: import("../responses").MessageType.textWithButton;
1521
+ id: string;
1522
+ title: string;
1523
+ buttons?: {
1524
+ id: string;
1525
+ value: string;
1526
+ actionType: "url" | "post";
1527
+ buttonTitle: string;
1528
+ action?: string | null | undefined;
1529
+ }[] | null | undefined;
1530
+ }>]>, "many">>;
1531
+ success: z.ZodCatch<z.ZodArray<z.ZodUnion<[z.ZodObject<{
1532
+ id: z.ZodString;
1533
+ type: z.ZodLiteral<import("../responses").MessageType.text>;
1534
+ title: z.ZodString;
1535
+ }, "strip", z.ZodTypeAny, {
1536
+ type: import("../responses").MessageType.text;
1537
+ id: string;
1538
+ title: string;
1539
+ }, {
1540
+ type: import("../responses").MessageType.text;
1541
+ id: string;
1542
+ title: string;
1543
+ }>, z.ZodObject<{
1544
+ id: z.ZodString;
1545
+ type: z.ZodLiteral<import("../responses").MessageType.textWithButton>;
1546
+ title: z.ZodString;
1547
+ buttons: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
1548
+ id: z.ZodString;
1549
+ actionType: z.ZodEnum<["post", "url"]>;
1550
+ buttonTitle: z.ZodString;
1551
+ value: z.ZodString;
1552
+ action: z.ZodNullable<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1553
+ }, "strip", z.ZodTypeAny, {
1554
+ id: string;
1555
+ value: string;
1556
+ actionType: "url" | "post";
1557
+ buttonTitle: string;
1558
+ action?: string | null | undefined;
1559
+ }, {
1560
+ id: string;
1561
+ value: string;
1562
+ actionType: "url" | "post";
1563
+ buttonTitle: string;
1564
+ action?: string | null | undefined;
1565
+ }>, "many">>>>>;
1566
+ }, "strip", z.ZodTypeAny, {
1567
+ type: import("../responses").MessageType.textWithButton;
1568
+ id: string;
1569
+ title: string;
1570
+ buttons?: {
1571
+ id: string;
1572
+ value: string;
1573
+ actionType: "url" | "post";
1574
+ buttonTitle: string;
1575
+ action?: string | null | undefined;
1576
+ }[] | null | undefined;
1577
+ }, {
1578
+ type: import("../responses").MessageType.textWithButton;
1579
+ id: string;
1580
+ title: string;
1581
+ buttons?: {
1582
+ id: string;
1583
+ value: string;
1584
+ actionType: "url" | "post";
1585
+ buttonTitle: string;
1586
+ action?: string | null | undefined;
1587
+ }[] | null | undefined;
1588
+ }>]>, "many">>;
1589
+ failure: z.ZodCatch<z.ZodArray<z.ZodUnion<[z.ZodObject<{
1590
+ id: z.ZodString;
1591
+ type: z.ZodLiteral<import("../responses").MessageType.text>;
1592
+ title: z.ZodString;
1593
+ }, "strip", z.ZodTypeAny, {
1594
+ type: import("../responses").MessageType.text;
1595
+ id: string;
1596
+ title: string;
1597
+ }, {
1598
+ type: import("../responses").MessageType.text;
1599
+ id: string;
1600
+ title: string;
1601
+ }>, z.ZodObject<{
1602
+ id: z.ZodString;
1603
+ type: z.ZodLiteral<import("../responses").MessageType.textWithButton>;
1604
+ title: z.ZodString;
1605
+ buttons: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
1606
+ id: z.ZodString;
1607
+ actionType: z.ZodEnum<["post", "url"]>;
1608
+ buttonTitle: z.ZodString;
1609
+ value: z.ZodString;
1610
+ action: z.ZodNullable<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1611
+ }, "strip", z.ZodTypeAny, {
1612
+ id: string;
1613
+ value: string;
1614
+ actionType: "url" | "post";
1615
+ buttonTitle: string;
1616
+ action?: string | null | undefined;
1617
+ }, {
1618
+ id: string;
1619
+ value: string;
1620
+ actionType: "url" | "post";
1621
+ buttonTitle: string;
1622
+ action?: string | null | undefined;
1623
+ }>, "many">>>>>;
1624
+ }, "strip", z.ZodTypeAny, {
1625
+ type: import("../responses").MessageType.textWithButton;
1626
+ id: string;
1627
+ title: string;
1628
+ buttons?: {
1629
+ id: string;
1630
+ value: string;
1631
+ actionType: "url" | "post";
1632
+ buttonTitle: string;
1633
+ action?: string | null | undefined;
1634
+ }[] | null | undefined;
1635
+ }, {
1636
+ type: import("../responses").MessageType.textWithButton;
1637
+ id: string;
1638
+ title: string;
1639
+ buttons?: {
1640
+ id: string;
1641
+ value: string;
1642
+ actionType: "url" | "post";
1643
+ buttonTitle: string;
1644
+ action?: string | null | undefined;
1645
+ }[] | null | undefined;
1646
+ }>]>, "many">>;
1647
+ type: z.ZodString;
1648
+ }, "strip", z.ZodTypeAny, {
1649
+ required: boolean | null;
1650
+ type: string;
1651
+ name: string;
1652
+ label: string;
1653
+ success: ({
1654
+ type: import("../responses").MessageType.text;
1655
+ id: string;
1656
+ title: string;
1657
+ } | {
1658
+ type: import("../responses").MessageType.textWithButton;
1659
+ id: string;
1660
+ title: string;
1661
+ buttons?: {
1662
+ id: string;
1663
+ value: string;
1664
+ actionType: "url" | "post";
1665
+ buttonTitle: string;
1666
+ action?: string | null | undefined;
1667
+ }[] | null | undefined;
1668
+ })[];
1669
+ prompt: ({
1670
+ type: import("../responses").MessageType.text;
1671
+ id: string;
1672
+ title: string;
1673
+ } | {
1674
+ type: import("../responses").MessageType.textWithButton;
1675
+ id: string;
1676
+ title: string;
1677
+ buttons?: {
1678
+ id: string;
1679
+ value: string;
1680
+ actionType: "url" | "post";
1681
+ buttonTitle: string;
1682
+ action?: string | null | undefined;
1683
+ }[] | null | undefined;
1684
+ })[];
1685
+ description: string;
1686
+ failure: ({
1687
+ type: import("../responses").MessageType.text;
1688
+ id: string;
1689
+ title: string;
1690
+ } | {
1691
+ type: import("../responses").MessageType.textWithButton;
1692
+ id: string;
1693
+ title: string;
1694
+ buttons?: {
1695
+ id: string;
1696
+ value: string;
1697
+ actionType: "url" | "post";
1698
+ buttonTitle: string;
1699
+ action?: string | null | undefined;
1700
+ }[] | null | undefined;
1701
+ })[];
1702
+ utterances: string;
1703
+ }, {
1704
+ required: boolean | null;
1705
+ type: string;
1706
+ name: string;
1707
+ label: string;
1708
+ utterances: string;
1709
+ description?: unknown;
1710
+ prompt?: unknown;
1711
+ success?: unknown;
1712
+ failure?: unknown;
1713
+ }>;
1714
+ }, "strip", z.ZodTypeAny, {
1715
+ type: import("./node-type").NodeType.slotNode;
1716
+ data: {
1717
+ required: boolean | null;
1718
+ type: string;
1719
+ name: string;
1720
+ label: string;
1721
+ success: ({
1722
+ type: import("../responses").MessageType.text;
1723
+ id: string;
1724
+ title: string;
1725
+ } | {
1726
+ type: import("../responses").MessageType.textWithButton;
1727
+ id: string;
1728
+ title: string;
1729
+ buttons?: {
1730
+ id: string;
1731
+ value: string;
1732
+ actionType: "url" | "post";
1733
+ buttonTitle: string;
1734
+ action?: string | null | undefined;
1735
+ }[] | null | undefined;
1736
+ })[];
1737
+ prompt: ({
1738
+ type: import("../responses").MessageType.text;
1739
+ id: string;
1740
+ title: string;
1741
+ } | {
1742
+ type: import("../responses").MessageType.textWithButton;
1743
+ id: string;
1744
+ title: string;
1745
+ buttons?: {
1746
+ id: string;
1747
+ value: string;
1748
+ actionType: "url" | "post";
1749
+ buttonTitle: string;
1750
+ action?: string | null | undefined;
1751
+ }[] | null | undefined;
1752
+ })[];
1753
+ description: string;
1754
+ failure: ({
1755
+ type: import("../responses").MessageType.text;
1756
+ id: string;
1757
+ title: string;
1758
+ } | {
1759
+ type: import("../responses").MessageType.textWithButton;
1760
+ id: string;
1761
+ title: string;
1762
+ buttons?: {
1763
+ id: string;
1764
+ value: string;
1765
+ actionType: "url" | "post";
1766
+ buttonTitle: string;
1767
+ action?: string | null | undefined;
1768
+ }[] | null | undefined;
1769
+ })[];
1770
+ utterances: string;
1771
+ };
1772
+ id: string;
1773
+ }, {
1774
+ type: import("./node-type").NodeType.slotNode;
1775
+ data: {
1776
+ required: boolean | null;
1777
+ type: string;
1778
+ name: string;
1779
+ label: string;
1780
+ utterances: string;
1781
+ description?: unknown;
1782
+ prompt?: unknown;
1783
+ success?: unknown;
1784
+ failure?: unknown;
1785
+ };
1786
+ id: string;
1787
+ }>]>;
1788
+ export type Node = z.infer<typeof NodeSchema>;