@hexabot-ai/api 3.0.0-alpha.3

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 (1778) hide show
  1. package/README.md +97 -0
  2. package/dist/analytics/analytics.module.d.ts +2 -0
  3. package/dist/analytics/analytics.module.js +26 -0
  4. package/dist/analytics/analytics.module.js.map +1 -0
  5. package/dist/analytics/controllers/bot-stats.controller.d.ts +17 -0
  6. package/dist/analytics/controllers/bot-stats.controller.js +107 -0
  7. package/dist/analytics/controllers/bot-stats.controller.js.map +1 -0
  8. package/dist/analytics/dto/bot-stats.dto.d.ts +35 -0
  9. package/dist/analytics/dto/bot-stats.dto.js +112 -0
  10. package/dist/analytics/dto/bot-stats.dto.js.map +1 -0
  11. package/dist/analytics/entities/bot-stats.entity.d.ts +33 -0
  12. package/dist/analytics/entities/bot-stats.entity.js +80 -0
  13. package/dist/analytics/entities/bot-stats.entity.js.map +1 -0
  14. package/dist/analytics/index.d.ts +8 -0
  15. package/dist/analytics/index.js +25 -0
  16. package/dist/analytics/index.js.map +1 -0
  17. package/dist/analytics/repositories/bot-stats.repository.d.ts +12 -0
  18. package/dist/analytics/repositories/bot-stats.repository.js +68 -0
  19. package/dist/analytics/repositories/bot-stats.repository.js.map +1 -0
  20. package/dist/analytics/services/bot-stats.service.d.ts +22 -0
  21. package/dist/analytics/services/bot-stats.service.js +132 -0
  22. package/dist/analytics/services/bot-stats.service.js.map +1 -0
  23. package/dist/analytics/utilities/index.d.ts +1 -0
  24. package/dist/analytics/utilities/index.js +6 -0
  25. package/dist/analytics/utilities/index.js.map +1 -0
  26. package/dist/analytics/validation-rules/is-less-than-date.d.ts +2 -0
  27. package/dist/analytics/validation-rules/is-less-than-date.js +25 -0
  28. package/dist/analytics/validation-rules/is-less-than-date.js.map +1 -0
  29. package/dist/app.controller.d.ts +14 -0
  30. package/dist/app.controller.js +81 -0
  31. package/dist/app.controller.js.map +1 -0
  32. package/dist/app.instance.d.ts +7 -0
  33. package/dist/app.instance.js +20 -0
  34. package/dist/app.instance.js.map +1 -0
  35. package/dist/app.module.d.ts +11 -0
  36. package/dist/app.module.js +172 -0
  37. package/dist/app.module.js.map +1 -0
  38. package/dist/app.service.d.ts +6 -0
  39. package/dist/app.service.js +28 -0
  40. package/dist/app.service.js.map +1 -0
  41. package/dist/attachment/attachment.module.d.ts +4 -0
  42. package/dist/attachment/attachment.module.js +42 -0
  43. package/dist/attachment/attachment.module.js.map +1 -0
  44. package/dist/attachment/controllers/attachment.controller.d.ts +21 -0
  45. package/dist/attachment/controllers/attachment.controller.js +153 -0
  46. package/dist/attachment/controllers/attachment.controller.js.map +1 -0
  47. package/dist/attachment/dto/attachment.dto.d.ts +49 -0
  48. package/dist/attachment/dto/attachment.dto.js +201 -0
  49. package/dist/attachment/dto/attachment.dto.js.map +1 -0
  50. package/dist/attachment/entities/attachment.entity.d.ts +18 -0
  51. package/dist/attachment/entities/attachment.entity.js +101 -0
  52. package/dist/attachment/entities/attachment.entity.js.map +1 -0
  53. package/dist/attachment/guards/attachment-ability.guard.d.ts +15 -0
  54. package/dist/attachment/guards/attachment-ability.guard.js +193 -0
  55. package/dist/attachment/guards/attachment-ability.guard.js.map +1 -0
  56. package/dist/attachment/index.d.ts +9 -0
  57. package/dist/attachment/index.js +26 -0
  58. package/dist/attachment/index.js.map +1 -0
  59. package/dist/attachment/mocks/attachment.mock.d.ts +3 -0
  60. package/dist/attachment/mocks/attachment.mock.js +33 -0
  61. package/dist/attachment/mocks/attachment.mock.js.map +1 -0
  62. package/dist/attachment/repositories/attachment.repository.d.ts +7 -0
  63. package/dist/attachment/repositories/attachment.repository.js +36 -0
  64. package/dist/attachment/repositories/attachment.repository.js.map +1 -0
  65. package/dist/attachment/services/attachment.service.d.ts +16 -0
  66. package/dist/attachment/services/attachment.service.js +48 -0
  67. package/dist/attachment/services/attachment.service.js.map +1 -0
  68. package/dist/attachment/types/index.d.ts +23 -0
  69. package/dist/attachment/types/index.js +26 -0
  70. package/dist/attachment/types/index.js.map +1 -0
  71. package/dist/attachment/utilities/index.d.ts +13 -0
  72. package/dist/attachment/utilities/index.js +53 -0
  73. package/dist/attachment/utilities/index.js.map +1 -0
  74. package/dist/bootstrap.d.ts +13 -0
  75. package/dist/bootstrap.js +104 -0
  76. package/dist/bootstrap.js.map +1 -0
  77. package/dist/channel/channel.controller.d.ts +8 -0
  78. package/dist/channel/channel.controller.js +38 -0
  79. package/dist/channel/channel.controller.js.map +1 -0
  80. package/dist/channel/channel.middleware.d.ts +8 -0
  81. package/dist/channel/channel.middleware.js +40 -0
  82. package/dist/channel/channel.middleware.js.map +1 -0
  83. package/dist/channel/channel.module.d.ts +7 -0
  84. package/dist/channel/channel.module.js +39 -0
  85. package/dist/channel/channel.module.js.map +1 -0
  86. package/dist/channel/channel.service.d.ts +21 -0
  87. package/dist/channel/channel.service.js +138 -0
  88. package/dist/channel/channel.service.js.map +1 -0
  89. package/dist/channel/index.d.ts +8 -0
  90. package/dist/channel/index.js +25 -0
  91. package/dist/channel/index.js.map +1 -0
  92. package/dist/channel/lib/EventWrapper.d.ts +67 -0
  93. package/dist/channel/lib/EventWrapper.js +126 -0
  94. package/dist/channel/lib/EventWrapper.js.map +1 -0
  95. package/dist/channel/lib/Handler.d.ts +52 -0
  96. package/dist/channel/lib/Handler.js +143 -0
  97. package/dist/channel/lib/Handler.js.map +1 -0
  98. package/dist/channel/lib/__test__/base.mock.d.ts +5 -0
  99. package/dist/channel/lib/__test__/base.mock.js +9 -0
  100. package/dist/channel/lib/__test__/base.mock.js.map +1 -0
  101. package/dist/channel/lib/__test__/common.mock.d.ts +7 -0
  102. package/dist/channel/lib/__test__/common.mock.js +153 -0
  103. package/dist/channel/lib/__test__/common.mock.js.map +1 -0
  104. package/dist/channel/lib/__test__/label.mock.d.ts +3 -0
  105. package/dist/channel/lib/__test__/label.mock.js +54 -0
  106. package/dist/channel/lib/__test__/label.mock.js.map +1 -0
  107. package/dist/channel/lib/__test__/subscriber.mock.d.ts +4 -0
  108. package/dist/channel/lib/__test__/subscriber.mock.js +36 -0
  109. package/dist/channel/lib/__test__/subscriber.mock.js.map +1 -0
  110. package/dist/channel/types.d.ts +7 -0
  111. package/dist/channel/types.js +3 -0
  112. package/dist/channel/types.js.map +1 -0
  113. package/dist/channel/webhook.controller.d.ts +12 -0
  114. package/dist/channel/webhook.controller.js +86 -0
  115. package/dist/channel/webhook.controller.js.map +1 -0
  116. package/dist/chat/chat.module.d.ts +2 -0
  117. package/dist/chat/chat.module.js +114 -0
  118. package/dist/chat/chat.module.js.map +1 -0
  119. package/dist/chat/constants/block.d.ts +3 -0
  120. package/dist/chat/constants/block.js +13 -0
  121. package/dist/chat/constants/block.js.map +1 -0
  122. package/dist/chat/constants/conversation.d.ts +2 -0
  123. package/dist/chat/constants/conversation.js +23 -0
  124. package/dist/chat/constants/conversation.js.map +1 -0
  125. package/dist/chat/controllers/block.controller.d.ts +56 -0
  126. package/dist/chat/controllers/block.controller.js +253 -0
  127. package/dist/chat/controllers/block.controller.js.map +1 -0
  128. package/dist/chat/controllers/category.controller.d.ts +19 -0
  129. package/dist/chat/controllers/category.controller.js +132 -0
  130. package/dist/chat/controllers/category.controller.js.map +1 -0
  131. package/dist/chat/controllers/context-var.controller.d.ts +19 -0
  132. package/dist/chat/controllers/context-var.controller.js +132 -0
  133. package/dist/chat/controllers/context-var.controller.js.map +1 -0
  134. package/dist/chat/controllers/label-group.controller.d.ts +19 -0
  135. package/dist/chat/controllers/label-group.controller.js +140 -0
  136. package/dist/chat/controllers/label-group.controller.js.map +1 -0
  137. package/dist/chat/controllers/label.controller.d.ts +19 -0
  138. package/dist/chat/controllers/label.controller.js +140 -0
  139. package/dist/chat/controllers/label.controller.js.map +1 -0
  140. package/dist/chat/controllers/message.controller.d.ts +22 -0
  141. package/dist/chat/controllers/message.controller.js +156 -0
  142. package/dist/chat/controllers/message.controller.js.map +1 -0
  143. package/dist/chat/controllers/subscriber.controller.d.ts +19 -0
  144. package/dist/chat/controllers/subscriber.controller.js +129 -0
  145. package/dist/chat/controllers/subscriber.controller.js.map +1 -0
  146. package/dist/chat/dto/block.dto.d.ts +80 -0
  147. package/dist/chat/dto/block.dto.js +363 -0
  148. package/dist/chat/dto/block.dto.js.map +1 -0
  149. package/dist/chat/dto/category.dto.d.ts +33 -0
  150. package/dist/chat/dto/category.dto.js +91 -0
  151. package/dist/chat/dto/category.dto.js.map +1 -0
  152. package/dist/chat/dto/context-var.dto.d.ts +28 -0
  153. package/dist/chat/dto/context-var.dto.js +71 -0
  154. package/dist/chat/dto/context-var.dto.js.map +1 -0
  155. package/dist/chat/dto/conversation.dto.d.ts +38 -0
  156. package/dist/chat/dto/conversation.dto.js +120 -0
  157. package/dist/chat/dto/conversation.dto.js.map +1 -0
  158. package/dist/chat/dto/label-group.dto.d.ts +25 -0
  159. package/dist/chat/dto/label-group.dto.js +61 -0
  160. package/dist/chat/dto/label-group.dto.js.map +1 -0
  161. package/dist/chat/dto/label.dto.d.ts +38 -0
  162. package/dist/chat/dto/label.dto.js +120 -0
  163. package/dist/chat/dto/label.dto.js.map +1 -0
  164. package/dist/chat/dto/message.dto.d.ts +45 -0
  165. package/dist/chat/dto/message.dto.js +154 -0
  166. package/dist/chat/dto/message.dto.js.map +1 -0
  167. package/dist/chat/dto/subscriber.dto.d.ts +63 -0
  168. package/dist/chat/dto/subscriber.dto.js +254 -0
  169. package/dist/chat/dto/subscriber.dto.js.map +1 -0
  170. package/dist/chat/entities/block.entity.d.ts +39 -0
  171. package/dist/chat/entities/block.entity.js +334 -0
  172. package/dist/chat/entities/block.entity.js.map +1 -0
  173. package/dist/chat/entities/category.entity.d.ts +10 -0
  174. package/dist/chat/entities/category.entity.js +69 -0
  175. package/dist/chat/entities/category.entity.js.map +1 -0
  176. package/dist/chat/entities/context-var.entity.d.ts +7 -0
  177. package/dist/chat/entities/context-var.entity.js +75 -0
  178. package/dist/chat/entities/context-var.entity.js.map +1 -0
  179. package/dist/chat/entities/conversation.entity.d.ts +14 -0
  180. package/dist/chat/entities/conversation.entity.js +74 -0
  181. package/dist/chat/entities/conversation.entity.js.map +1 -0
  182. package/dist/chat/entities/label-group.entity.d.ts +6 -0
  183. package/dist/chat/entities/label-group.entity.js +31 -0
  184. package/dist/chat/entities/label-group.entity.js.map +1 -0
  185. package/dist/chat/entities/label.entity.d.ts +16 -0
  186. package/dist/chat/entities/label.entity.js +76 -0
  187. package/dist/chat/entities/label.entity.js.map +1 -0
  188. package/dist/chat/entities/message.entity.d.ts +17 -0
  189. package/dist/chat/entities/message.entity.js +85 -0
  190. package/dist/chat/entities/message.entity.js.map +1 -0
  191. package/dist/chat/entities/subscriber.entity.d.ts +30 -0
  192. package/dist/chat/entities/subscriber.entity.js +143 -0
  193. package/dist/chat/entities/subscriber.entity.js.map +1 -0
  194. package/dist/chat/helpers/constants.d.ts +1 -0
  195. package/dist/chat/helpers/constants.js +5 -0
  196. package/dist/chat/helpers/constants.js.map +1 -0
  197. package/dist/chat/helpers/envelope-builder.d.ts +18 -0
  198. package/dist/chat/helpers/envelope-builder.js +65 -0
  199. package/dist/chat/helpers/envelope-builder.js.map +1 -0
  200. package/dist/chat/helpers/envelope-factory.d.ts +242 -0
  201. package/dist/chat/helpers/envelope-factory.js +109 -0
  202. package/dist/chat/helpers/envelope-factory.js.map +1 -0
  203. package/dist/chat/index.d.ts +62 -0
  204. package/dist/chat/index.js +79 -0
  205. package/dist/chat/index.js.map +1 -0
  206. package/dist/chat/repositories/block.repository.d.ts +10 -0
  207. package/dist/chat/repositories/block.repository.js +116 -0
  208. package/dist/chat/repositories/block.repository.js.map +1 -0
  209. package/dist/chat/repositories/category.repository.d.ts +7 -0
  210. package/dist/chat/repositories/category.repository.js +36 -0
  211. package/dist/chat/repositories/category.repository.js.map +1 -0
  212. package/dist/chat/repositories/context-var.repository.d.ts +7 -0
  213. package/dist/chat/repositories/context-var.repository.js +36 -0
  214. package/dist/chat/repositories/context-var.repository.js.map +1 -0
  215. package/dist/chat/repositories/conversation.repository.d.ts +8 -0
  216. package/dist/chat/repositories/conversation.repository.js +39 -0
  217. package/dist/chat/repositories/conversation.repository.js.map +1 -0
  218. package/dist/chat/repositories/label-group.repository.d.ts +7 -0
  219. package/dist/chat/repositories/label-group.repository.js +36 -0
  220. package/dist/chat/repositories/label-group.repository.js.map +1 -0
  221. package/dist/chat/repositories/label.repository.d.ts +7 -0
  222. package/dist/chat/repositories/label.repository.js +36 -0
  223. package/dist/chat/repositories/label.repository.js.map +1 -0
  224. package/dist/chat/repositories/message.repository.d.ts +11 -0
  225. package/dist/chat/repositories/message.repository.js +97 -0
  226. package/dist/chat/repositories/message.repository.js.map +1 -0
  227. package/dist/chat/repositories/subscriber.repository.d.ts +15 -0
  228. package/dist/chat/repositories/subscriber.repository.js +135 -0
  229. package/dist/chat/repositories/subscriber.repository.js.map +1 -0
  230. package/dist/chat/seeds/category.seed-model.d.ts +2 -0
  231. package/dist/chat/seeds/category.seed-model.js +9 -0
  232. package/dist/chat/seeds/category.seed-model.js.map +1 -0
  233. package/dist/chat/seeds/category.seed.d.ts +8 -0
  234. package/dist/chat/seeds/category.seed.js +27 -0
  235. package/dist/chat/seeds/category.seed.js.map +1 -0
  236. package/dist/chat/seeds/context-var.seed-model.d.ts +2 -0
  237. package/dist/chat/seeds/context-var.seed-model.js +14 -0
  238. package/dist/chat/seeds/context-var.seed-model.js.map +1 -0
  239. package/dist/chat/seeds/context-var.seed.d.ts +8 -0
  240. package/dist/chat/seeds/context-var.seed.js +27 -0
  241. package/dist/chat/seeds/context-var.seed.js.map +1 -0
  242. package/dist/chat/services/block.service.d.ts +51 -0
  243. package/dist/chat/services/block.service.js +366 -0
  244. package/dist/chat/services/block.service.js.map +1 -0
  245. package/dist/chat/services/bot.service.d.ts +36 -0
  246. package/dist/chat/services/bot.service.js +375 -0
  247. package/dist/chat/services/bot.service.js.map +1 -0
  248. package/dist/chat/services/category.service.d.ts +8 -0
  249. package/dist/chat/services/category.service.js +27 -0
  250. package/dist/chat/services/category.service.js.map +1 -0
  251. package/dist/chat/services/chat.service.d.ts +37 -0
  252. package/dist/chat/services/chat.service.js +327 -0
  253. package/dist/chat/services/chat.service.js.map +1 -0
  254. package/dist/chat/services/context-var.service.d.ts +10 -0
  255. package/dist/chat/services/context-var.service.js +41 -0
  256. package/dist/chat/services/context-var.service.js.map +1 -0
  257. package/dist/chat/services/conversation.service.d.ts +18 -0
  258. package/dist/chat/services/conversation.service.js +149 -0
  259. package/dist/chat/services/conversation.service.js.map +1 -0
  260. package/dist/chat/services/label-group.service.d.ts +8 -0
  261. package/dist/chat/services/label-group.service.js +27 -0
  262. package/dist/chat/services/label-group.service.js.map +1 -0
  263. package/dist/chat/services/label.service.d.ts +8 -0
  264. package/dist/chat/services/label.service.js +27 -0
  265. package/dist/chat/services/label.service.js.map +1 -0
  266. package/dist/chat/services/message.service.d.ts +20 -0
  267. package/dist/chat/services/message.service.js +74 -0
  268. package/dist/chat/services/message.service.js.map +1 -0
  269. package/dist/chat/services/subscriber.service.d.ts +31 -0
  270. package/dist/chat/services/subscriber.service.js +197 -0
  271. package/dist/chat/services/subscriber.service.js.map +1 -0
  272. package/dist/chat/types/attachment.d.ts +57 -0
  273. package/dist/chat/types/attachment.js +26 -0
  274. package/dist/chat/types/attachment.js.map +1 -0
  275. package/dist/chat/types/button.d.ts +81 -0
  276. package/dist/chat/types/button.js +33 -0
  277. package/dist/chat/types/button.js.map +1 -0
  278. package/dist/chat/types/capture-var.d.ts +12 -0
  279. package/dist/chat/types/capture-var.js +9 -0
  280. package/dist/chat/types/capture-var.js.map +1 -0
  281. package/dist/chat/types/channel.d.ts +19 -0
  282. package/dist/chat/types/channel.js +10 -0
  283. package/dist/chat/types/channel.js.map +1 -0
  284. package/dist/chat/types/context.d.ts +25 -0
  285. package/dist/chat/types/context.js +3 -0
  286. package/dist/chat/types/context.js.map +1 -0
  287. package/dist/chat/types/message.d.ts +3434 -0
  288. package/dist/chat/types/message.js +232 -0
  289. package/dist/chat/types/message.js.map +1 -0
  290. package/dist/chat/types/options.d.ts +325 -0
  291. package/dist/chat/types/options.js +34 -0
  292. package/dist/chat/types/options.js.map +1 -0
  293. package/dist/chat/types/pattern.d.ts +100 -0
  294. package/dist/chat/types/pattern.js +56 -0
  295. package/dist/chat/types/pattern.js.map +1 -0
  296. package/dist/chat/types/position.d.ts +12 -0
  297. package/dist/chat/types/position.js +9 -0
  298. package/dist/chat/types/position.js.map +1 -0
  299. package/dist/chat/types/quick-reply.d.ts +110 -0
  300. package/dist/chat/types/quick-reply.js +33 -0
  301. package/dist/chat/types/quick-reply.js.map +1 -0
  302. package/dist/chat/types/subscriberContext.d.ts +9 -0
  303. package/dist/chat/types/subscriberContext.js +8 -0
  304. package/dist/chat/types/subscriberContext.js.map +1 -0
  305. package/dist/cli.d.ts +1 -0
  306. package/dist/cli.js +21 -0
  307. package/dist/cli.js.map +1 -0
  308. package/dist/cms/cms.module.d.ts +2 -0
  309. package/dist/cms/cms.module.js +50 -0
  310. package/dist/cms/cms.module.js.map +1 -0
  311. package/dist/cms/controllers/content-type.controller.d.ts +17 -0
  312. package/dist/cms/controllers/content-type.controller.js +109 -0
  313. package/dist/cms/controllers/content-type.controller.js.map +1 -0
  314. package/dist/cms/controllers/content.controller.d.ts +21 -0
  315. package/dist/cms/controllers/content.controller.js +167 -0
  316. package/dist/cms/controllers/content.controller.js.map +1 -0
  317. package/dist/cms/controllers/menu.controller.d.ts +20 -0
  318. package/dist/cms/controllers/menu.controller.js +145 -0
  319. package/dist/cms/controllers/menu.controller.js.map +1 -0
  320. package/dist/cms/decorators/unique-field-names.decorator.d.ts +2 -0
  321. package/dist/cms/decorators/unique-field-names.decorator.js +17 -0
  322. package/dist/cms/decorators/unique-field-names.decorator.js.map +1 -0
  323. package/dist/cms/dto/content.dto.d.ts +32 -0
  324. package/dist/cms/dto/content.dto.js +92 -0
  325. package/dist/cms/dto/content.dto.js.map +1 -0
  326. package/dist/cms/dto/contentType.dto.d.ts +31 -0
  327. package/dist/cms/dto/contentType.dto.js +93 -0
  328. package/dist/cms/dto/contentType.dto.js.map +1 -0
  329. package/dist/cms/dto/menu.dto.d.ts +37 -0
  330. package/dist/cms/dto/menu.dto.js +116 -0
  331. package/dist/cms/dto/menu.dto.js.map +1 -0
  332. package/dist/cms/entities/content-type.entity.d.ts +9 -0
  333. package/dist/cms/entities/content-type.entity.js +70 -0
  334. package/dist/cms/entities/content-type.entity.js.map +1 -0
  335. package/dist/cms/entities/content.entity.d.ts +17 -0
  336. package/dist/cms/entities/content.entity.js +83 -0
  337. package/dist/cms/entities/content.entity.js.map +1 -0
  338. package/dist/cms/entities/menu.entity.d.ts +18 -0
  339. package/dist/cms/entities/menu.entity.js +102 -0
  340. package/dist/cms/entities/menu.entity.js.map +1 -0
  341. package/dist/cms/index.d.ts +24 -0
  342. package/dist/cms/index.js +41 -0
  343. package/dist/cms/index.js.map +1 -0
  344. package/dist/cms/repositories/content-type.repository.d.ts +7 -0
  345. package/dist/cms/repositories/content-type.repository.js +36 -0
  346. package/dist/cms/repositories/content-type.repository.js.map +1 -0
  347. package/dist/cms/repositories/content.repository.d.ts +8 -0
  348. package/dist/cms/repositories/content.repository.js +44 -0
  349. package/dist/cms/repositories/content.repository.js.map +1 -0
  350. package/dist/cms/repositories/menu.repository.d.ts +7 -0
  351. package/dist/cms/repositories/menu.repository.js +36 -0
  352. package/dist/cms/repositories/menu.repository.js.map +1 -0
  353. package/dist/cms/services/content-type.service.d.ts +9 -0
  354. package/dist/cms/services/content-type.service.js +49 -0
  355. package/dist/cms/services/content-type.service.js.map +1 -0
  356. package/dist/cms/services/content.service.d.ts +17 -0
  357. package/dist/cms/services/content.service.js +123 -0
  358. package/dist/cms/services/content.service.js.map +1 -0
  359. package/dist/cms/services/menu.service.d.ts +16 -0
  360. package/dist/cms/services/menu.service.js +92 -0
  361. package/dist/cms/services/menu.service.js.map +1 -0
  362. package/dist/cms/types/content.d.ts +7 -0
  363. package/dist/cms/types/content.js +5 -0
  364. package/dist/cms/types/content.js.map +1 -0
  365. package/dist/cms/types/menu-types.d.ts +28 -0
  366. package/dist/cms/types/menu-types.js +3 -0
  367. package/dist/cms/types/menu-types.js.map +1 -0
  368. package/dist/cms/types/menu.d.ts +27 -0
  369. package/dist/cms/types/menu.js +3 -0
  370. package/dist/cms/types/menu.js.map +1 -0
  371. package/dist/cms/utilities/field-validation.utils.d.ts +1 -0
  372. package/dist/cms/utilities/field-validation.utils.js +6 -0
  373. package/dist/cms/utilities/field-validation.utils.js.map +1 -0
  374. package/dist/cms/utilities/verifyTree.d.ts +2 -0
  375. package/dist/cms/utilities/verifyTree.js +32 -0
  376. package/dist/cms/utilities/verifyTree.js.map +1 -0
  377. package/dist/cms/validators/validate-required-fields.validator.d.ts +7 -0
  378. package/dist/cms/validators/validate-required-fields.validator.js +55 -0
  379. package/dist/cms/validators/validate-required-fields.validator.js.map +1 -0
  380. package/dist/cms/validators/validate-unique-names.validator.d.ts +6 -0
  381. package/dist/cms/validators/validate-unique-names.validator.js +24 -0
  382. package/dist/cms/validators/validate-unique-names.validator.js.map +1 -0
  383. package/dist/config/csrf.d.ts +1 -0
  384. package/dist/config/csrf.js +17 -0
  385. package/dist/config/csrf.js.map +1 -0
  386. package/dist/config/i18n/en/messages.json +21 -0
  387. package/dist/config/i18n/fr/messages.json +20 -0
  388. package/dist/config/index.d.ts +2 -0
  389. package/dist/config/index.js +210 -0
  390. package/dist/config/index.js.map +1 -0
  391. package/dist/config/types.d.ts +138 -0
  392. package/dist/config/types.js +3 -0
  393. package/dist/config/types.js.map +1 -0
  394. package/dist/database/decorators/datetime-column.decorator.d.ts +4 -0
  395. package/dist/database/decorators/datetime-column.decorator.js +22 -0
  396. package/dist/database/decorators/datetime-column.decorator.js.map +1 -0
  397. package/dist/database/decorators/enum-column.decorator.d.ts +4 -0
  398. package/dist/database/decorators/enum-column.decorator.js +25 -0
  399. package/dist/database/decorators/enum-column.decorator.js.map +1 -0
  400. package/dist/database/decorators/json-column.decorator.d.ts +4 -0
  401. package/dist/database/decorators/json-column.decorator.js +21 -0
  402. package/dist/database/decorators/json-column.decorator.js.map +1 -0
  403. package/dist/database/entities/base.entity.d.ts +11 -0
  404. package/dist/database/entities/base.entity.js +73 -0
  405. package/dist/database/entities/base.entity.js.map +1 -0
  406. package/dist/database/index.d.ts +5 -0
  407. package/dist/database/index.js +22 -0
  408. package/dist/database/index.js.map +1 -0
  409. package/dist/database/typeorm-config.service.d.ts +4 -0
  410. package/dist/database/typeorm-config.service.js +59 -0
  411. package/dist/database/typeorm-config.service.js.map +1 -0
  412. package/dist/extension/cleanup.service.d.ts +16 -0
  413. package/dist/extension/cleanup.service.js +79 -0
  414. package/dist/extension/cleanup.service.js.map +1 -0
  415. package/dist/extension/extension.module.d.ts +9 -0
  416. package/dist/extension/extension.module.js +44 -0
  417. package/dist/extension/extension.module.js.map +1 -0
  418. package/dist/extension/index.d.ts +3 -0
  419. package/dist/extension/index.js +20 -0
  420. package/dist/extension/index.js.map +1 -0
  421. package/dist/extension/types.d.ts +13 -0
  422. package/dist/extension/types.js +3 -0
  423. package/dist/extension/types.js.map +1 -0
  424. package/dist/extensions/channels/console/i18n/en/label.json +21 -0
  425. package/dist/extensions/channels/console/i18n/en/title.json +3 -0
  426. package/dist/extensions/channels/console/i18n/fr/label.json +21 -0
  427. package/dist/extensions/channels/console/i18n/fr/title.json +3 -0
  428. package/dist/extensions/channels/console/index.channel.d.ts +16 -0
  429. package/dist/extensions/channels/console/index.channel.js +50 -0
  430. package/dist/extensions/channels/console/index.channel.js.map +1 -0
  431. package/dist/extensions/channels/console/package.json +7 -0
  432. package/dist/extensions/channels/console/settings.d.ts +56 -0
  433. package/dist/extensions/channels/console/settings.js +71 -0
  434. package/dist/extensions/channels/console/settings.js.map +1 -0
  435. package/dist/extensions/channels/web/__test__/data.mock.d.ts +7 -0
  436. package/dist/extensions/channels/web/__test__/data.mock.js +135 -0
  437. package/dist/extensions/channels/web/__test__/data.mock.js.map +1 -0
  438. package/dist/extensions/channels/web/__test__/events.mock.d.ts +3 -0
  439. package/dist/extensions/channels/web/__test__/events.mock.js +151 -0
  440. package/dist/extensions/channels/web/__test__/events.mock.js.map +1 -0
  441. package/dist/extensions/channels/web/base-web-channel.d.ts +75 -0
  442. package/dist/extensions/channels/web/base-web-channel.js +958 -0
  443. package/dist/extensions/channels/web/base-web-channel.js.map +1 -0
  444. package/dist/extensions/channels/web/i18n/en/label.json +21 -0
  445. package/dist/extensions/channels/web/i18n/en/title.json +3 -0
  446. package/dist/extensions/channels/web/i18n/fr/label.json +21 -0
  447. package/dist/extensions/channels/web/i18n/fr/title.json +3 -0
  448. package/dist/extensions/channels/web/index.channel.d.ts +16 -0
  449. package/dist/extensions/channels/web/index.channel.js +50 -0
  450. package/dist/extensions/channels/web/index.channel.js.map +1 -0
  451. package/dist/extensions/channels/web/package.json +7 -0
  452. package/dist/extensions/channels/web/settings.d.ts +68 -0
  453. package/dist/extensions/channels/web/settings.js +85 -0
  454. package/dist/extensions/channels/web/settings.js.map +1 -0
  455. package/dist/extensions/channels/web/types.d.ts +151 -0
  456. package/dist/extensions/channels/web/types.js +30 -0
  457. package/dist/extensions/channels/web/types.js.map +1 -0
  458. package/dist/extensions/channels/web/wrapper.d.ts +63 -0
  459. package/dist/extensions/channels/web/wrapper.js +167 -0
  460. package/dist/extensions/channels/web/wrapper.js.map +1 -0
  461. package/dist/extensions/helpers/llm-nlu/i18n/en/help.json +5 -0
  462. package/dist/extensions/helpers/llm-nlu/i18n/en/label.json +5 -0
  463. package/dist/extensions/helpers/llm-nlu/i18n/en/title.json +3 -0
  464. package/dist/extensions/helpers/llm-nlu/i18n/fr/help.json +5 -0
  465. package/dist/extensions/helpers/llm-nlu/i18n/fr/label.json +5 -0
  466. package/dist/extensions/helpers/llm-nlu/i18n/fr/title.json +3 -0
  467. package/dist/extensions/helpers/llm-nlu/index.helper.d.ts +21 -0
  468. package/dist/extensions/helpers/llm-nlu/index.helper.js +138 -0
  469. package/dist/extensions/helpers/llm-nlu/index.helper.js.map +1 -0
  470. package/dist/extensions/helpers/llm-nlu/package.json +8 -0
  471. package/dist/extensions/helpers/llm-nlu/settings.d.ts +20 -0
  472. package/dist/extensions/helpers/llm-nlu/settings.js +39 -0
  473. package/dist/extensions/helpers/llm-nlu/settings.js.map +1 -0
  474. package/dist/extensions/helpers/local-storage/index.helper.d.ts +18 -0
  475. package/dist/extensions/helpers/local-storage/index.helper.js +115 -0
  476. package/dist/extensions/helpers/local-storage/index.helper.js.map +1 -0
  477. package/dist/extensions/helpers/local-storage/package.json +8 -0
  478. package/dist/extensions/helpers/local-storage/settings.d.ts +4 -0
  479. package/dist/extensions/helpers/local-storage/settings.js +7 -0
  480. package/dist/extensions/helpers/local-storage/settings.js.map +1 -0
  481. package/dist/extensions/index.d.ts +11 -0
  482. package/dist/extensions/index.js +28 -0
  483. package/dist/extensions/index.js.map +1 -0
  484. package/dist/extra/index.d.ts +2 -0
  485. package/dist/extra/index.js +4 -0
  486. package/dist/extra/index.js.map +1 -0
  487. package/dist/helper/helper.controller.d.ts +9 -0
  488. package/dist/helper/helper.controller.js +45 -0
  489. package/dist/helper/helper.controller.js.map +1 -0
  490. package/dist/helper/helper.module.d.ts +2 -0
  491. package/dist/helper/helper.module.js +31 -0
  492. package/dist/helper/helper.module.js.map +1 -0
  493. package/dist/helper/helper.service.d.ts +18 -0
  494. package/dist/helper/helper.service.js +96 -0
  495. package/dist/helper/helper.service.js.map +1 -0
  496. package/dist/helper/index.d.ts +9 -0
  497. package/dist/helper/index.js +26 -0
  498. package/dist/helper/index.js.map +1 -0
  499. package/dist/helper/lib/__test__/settings.d.ts +10 -0
  500. package/dist/helper/lib/__test__/settings.js +15 -0
  501. package/dist/helper/lib/__test__/settings.js.map +1 -0
  502. package/dist/helper/lib/base-flow-escape-helper.d.ts +13 -0
  503. package/dist/helper/lib/base-flow-escape-helper.js +15 -0
  504. package/dist/helper/lib/base-flow-escape-helper.js.map +1 -0
  505. package/dist/helper/lib/base-helper.d.ts +19 -0
  506. package/dist/helper/lib/base-helper.js +34 -0
  507. package/dist/helper/lib/base-helper.js.map +1 -0
  508. package/dist/helper/lib/base-llm-helper.d.ts +13 -0
  509. package/dist/helper/lib/base-llm-helper.js +16 -0
  510. package/dist/helper/lib/base-llm-helper.js.map +1 -0
  511. package/dist/helper/lib/base-nlp-helper.d.ts +28 -0
  512. package/dist/helper/lib/base-nlp-helper.js +168 -0
  513. package/dist/helper/lib/base-nlp-helper.js.map +1 -0
  514. package/dist/helper/lib/base-storage-helper.d.ts +16 -0
  515. package/dist/helper/lib/base-storage-helper.js +16 -0
  516. package/dist/helper/lib/base-storage-helper.js.map +1 -0
  517. package/dist/helper/types.d.ts +87 -0
  518. package/dist/helper/types.js +33 -0
  519. package/dist/helper/types.js.map +1 -0
  520. package/dist/i18n/controllers/i18n.controller.d.ts +10 -0
  521. package/dist/i18n/controllers/i18n.controller.js +46 -0
  522. package/dist/i18n/controllers/i18n.controller.js.map +1 -0
  523. package/dist/i18n/controllers/language.controller.d.ts +18 -0
  524. package/dist/i18n/controllers/language.controller.js +111 -0
  525. package/dist/i18n/controllers/language.controller.js.map +1 -0
  526. package/dist/i18n/controllers/translation.controller.d.ts +20 -0
  527. package/dist/i18n/controllers/translation.controller.js +128 -0
  528. package/dist/i18n/controllers/translation.controller.js.map +1 -0
  529. package/dist/i18n/dto/language.dto.d.ts +27 -0
  530. package/dist/i18n/dto/language.dto.js +75 -0
  531. package/dist/i18n/dto/language.dto.js.map +1 -0
  532. package/dist/i18n/dto/translation.dto.d.ts +23 -0
  533. package/dist/i18n/dto/translation.dto.js +56 -0
  534. package/dist/i18n/dto/translation.dto.js.map +1 -0
  535. package/dist/i18n/entities/language.entity.d.ts +9 -0
  536. package/dist/i18n/entities/language.entity.js +73 -0
  537. package/dist/i18n/entities/language.entity.js.map +1 -0
  538. package/dist/i18n/entities/translation.entity.d.ts +5 -0
  539. package/dist/i18n/entities/translation.entity.js +31 -0
  540. package/dist/i18n/entities/translation.entity.js.map +1 -0
  541. package/dist/i18n/i18n.module.d.ts +9 -0
  542. package/dist/i18n/i18n.module.js +77 -0
  543. package/dist/i18n/i18n.module.js.map +1 -0
  544. package/dist/i18n/index.d.ts +17 -0
  545. package/dist/i18n/index.js +34 -0
  546. package/dist/i18n/index.js.map +1 -0
  547. package/dist/i18n/repositories/language.repository.d.ts +7 -0
  548. package/dist/i18n/repositories/language.repository.js +36 -0
  549. package/dist/i18n/repositories/language.repository.js.map +1 -0
  550. package/dist/i18n/repositories/translation.repository.d.ts +7 -0
  551. package/dist/i18n/repositories/translation.repository.js +36 -0
  552. package/dist/i18n/repositories/translation.repository.js.map +1 -0
  553. package/dist/i18n/seeds/language.seed-model.d.ts +2 -0
  554. package/dist/i18n/seeds/language.seed-model.js +17 -0
  555. package/dist/i18n/seeds/language.seed-model.js.map +1 -0
  556. package/dist/i18n/seeds/language.seed.d.ts +10 -0
  557. package/dist/i18n/seeds/language.seed.js +41 -0
  558. package/dist/i18n/seeds/language.seed.js.map +1 -0
  559. package/dist/i18n/seeds/translation.seed-model.d.ts +2 -0
  560. package/dist/i18n/seeds/translation.seed-model.js +13 -0
  561. package/dist/i18n/seeds/translation.seed-model.js.map +1 -0
  562. package/dist/i18n/seeds/translation.seed.d.ts +7 -0
  563. package/dist/i18n/seeds/translation.seed.js +26 -0
  564. package/dist/i18n/seeds/translation.seed.js.map +1 -0
  565. package/dist/i18n/services/i18n.service.d.ts +8 -0
  566. package/dist/i18n/services/i18n.service.js +52 -0
  567. package/dist/i18n/services/i18n.service.js.map +1 -0
  568. package/dist/i18n/services/language.service.d.ts +15 -0
  569. package/dist/i18n/services/language.service.js +83 -0
  570. package/dist/i18n/services/language.service.js.map +1 -0
  571. package/dist/i18n/services/translation.service.d.ts +23 -0
  572. package/dist/i18n/services/translation.service.js +162 -0
  573. package/dist/i18n/services/translation.service.js.map +1 -0
  574. package/dist/index.d.ts +30 -0
  575. package/dist/index.js +47 -0
  576. package/dist/index.js.map +1 -0
  577. package/dist/logger/index.d.ts +2 -0
  578. package/dist/logger/index.js +19 -0
  579. package/dist/logger/index.js.map +1 -0
  580. package/dist/logger/logger.module.d.ts +2 -0
  581. package/dist/logger/logger.module.js +22 -0
  582. package/dist/logger/logger.module.js.map +1 -0
  583. package/dist/logger/logger.service.d.ts +12 -0
  584. package/dist/logger/logger.service.js +59 -0
  585. package/dist/logger/logger.service.js.map +1 -0
  586. package/dist/mailer/index.d.ts +2 -0
  587. package/dist/mailer/index.js +19 -0
  588. package/dist/mailer/index.js.map +1 -0
  589. package/dist/mailer/mailer.module.d.ts +2 -0
  590. package/dist/mailer/mailer.module.js +70 -0
  591. package/dist/mailer/mailer.module.js.map +1 -0
  592. package/dist/mailer/mailer.service.d.ts +3 -0
  593. package/dist/mailer/mailer.service.js +8 -0
  594. package/dist/mailer/mailer.service.js.map +1 -0
  595. package/dist/mailer/mjml-adapter.class.d.ts +4 -0
  596. package/dist/mailer/mjml-adapter.class.js +67 -0
  597. package/dist/mailer/mjml-adapter.class.js.map +1 -0
  598. package/dist/main.d.ts +1 -0
  599. package/dist/main.js +7 -0
  600. package/dist/main.js.map +1 -0
  601. package/dist/migration/index.d.ts +5 -0
  602. package/dist/migration/index.js +22 -0
  603. package/dist/migration/index.js.map +1 -0
  604. package/dist/migration/migration.command.d.ts +10 -0
  605. package/dist/migration/migration.command.js +73 -0
  606. package/dist/migration/migration.command.js.map +1 -0
  607. package/dist/migration/migration.entity.d.ts +8 -0
  608. package/dist/migration/migration.entity.js +45 -0
  609. package/dist/migration/migration.entity.js.map +1 -0
  610. package/dist/migration/migration.module.d.ts +2 -0
  611. package/dist/migration/migration.module.js +41 -0
  612. package/dist/migration/migration.module.js.map +1 -0
  613. package/dist/migration/migration.service.d.ts +44 -0
  614. package/dist/migration/migration.service.js +406 -0
  615. package/dist/migration/migration.service.js.map +1 -0
  616. package/dist/migration/types.d.ts +26 -0
  617. package/dist/migration/types.js +9 -0
  618. package/dist/migration/types.js.map +1 -0
  619. package/dist/nlp/controllers/nlp-entity.controller.d.ts +19 -0
  620. package/dist/nlp/controllers/nlp-entity.controller.js +160 -0
  621. package/dist/nlp/controllers/nlp-entity.controller.js.map +1 -0
  622. package/dist/nlp/controllers/nlp-sample.controller.d.ts +39 -0
  623. package/dist/nlp/controllers/nlp-sample.controller.js +289 -0
  624. package/dist/nlp/controllers/nlp-sample.controller.js.map +1 -0
  625. package/dist/nlp/controllers/nlp-value.controller.d.ts +21 -0
  626. package/dist/nlp/controllers/nlp-value.controller.js +141 -0
  627. package/dist/nlp/controllers/nlp-value.controller.js.map +1 -0
  628. package/dist/nlp/dto/nlp-entity.dto.d.ts +37 -0
  629. package/dist/nlp/dto/nlp-entity.dto.js +141 -0
  630. package/dist/nlp/dto/nlp-entity.dto.js.map +1 -0
  631. package/dist/nlp/dto/nlp-sample-entity.dto.d.ts +32 -0
  632. package/dist/nlp/dto/nlp-sample-entity.dto.js +110 -0
  633. package/dist/nlp/dto/nlp-sample-entity.dto.js.map +1 -0
  634. package/dist/nlp/dto/nlp-sample.dto.d.ts +43 -0
  635. package/dist/nlp/dto/nlp-sample.dto.js +160 -0
  636. package/dist/nlp/dto/nlp-sample.dto.js.map +1 -0
  637. package/dist/nlp/dto/nlp-value.dto.d.ts +46 -0
  638. package/dist/nlp/dto/nlp-value.dto.js +166 -0
  639. package/dist/nlp/dto/nlp-value.dto.js.map +1 -0
  640. package/dist/nlp/entities/nlp-entity.entity.d.ts +16 -0
  641. package/dist/nlp/entities/nlp-entity.entity.js +66 -0
  642. package/dist/nlp/entities/nlp-entity.entity.js.map +1 -0
  643. package/dist/nlp/entities/nlp-sample-entity.entity.d.ts +14 -0
  644. package/dist/nlp/entities/nlp-sample-entity.entity.js +73 -0
  645. package/dist/nlp/entities/nlp-sample-entity.entity.js.map +1 -0
  646. package/dist/nlp/entities/nlp-sample.entity.d.ts +12 -0
  647. package/dist/nlp/entities/nlp-sample.entity.js +58 -0
  648. package/dist/nlp/entities/nlp-sample.entity.js.map +1 -0
  649. package/dist/nlp/entities/nlp-value.entity.d.ts +23 -0
  650. package/dist/nlp/entities/nlp-value.entity.js +83 -0
  651. package/dist/nlp/entities/nlp-value.entity.js.map +1 -0
  652. package/dist/nlp/index.d.ts +26 -0
  653. package/dist/nlp/index.js +43 -0
  654. package/dist/nlp/index.js.map +1 -0
  655. package/dist/nlp/nlp.module.d.ts +2 -0
  656. package/dist/nlp/nlp.module.js +64 -0
  657. package/dist/nlp/nlp.module.js.map +1 -0
  658. package/dist/nlp/repositories/nlp-entity.repository.d.ts +7 -0
  659. package/dist/nlp/repositories/nlp-entity.repository.js +36 -0
  660. package/dist/nlp/repositories/nlp-entity.repository.js.map +1 -0
  661. package/dist/nlp/repositories/nlp-sample-entity.repository.d.ts +7 -0
  662. package/dist/nlp/repositories/nlp-sample-entity.repository.js +36 -0
  663. package/dist/nlp/repositories/nlp-sample-entity.repository.js.map +1 -0
  664. package/dist/nlp/repositories/nlp-sample.repository.d.ts +24 -0
  665. package/dist/nlp/repositories/nlp-sample.repository.js +123 -0
  666. package/dist/nlp/repositories/nlp-sample.repository.js.map +1 -0
  667. package/dist/nlp/repositories/nlp-value.repository.d.ts +10 -0
  668. package/dist/nlp/repositories/nlp-value.repository.js +93 -0
  669. package/dist/nlp/repositories/nlp-value.repository.js.map +1 -0
  670. package/dist/nlp/seeds/nlp-entity.seed-model.d.ts +2 -0
  671. package/dist/nlp/seeds/nlp-entity.seed-model.js +12 -0
  672. package/dist/nlp/seeds/nlp-entity.seed-model.js.map +1 -0
  673. package/dist/nlp/seeds/nlp-entity.seed.d.ts +7 -0
  674. package/dist/nlp/seeds/nlp-entity.seed.js +26 -0
  675. package/dist/nlp/seeds/nlp-entity.seed.js.map +1 -0
  676. package/dist/nlp/seeds/nlp-value.seed-model.d.ts +2 -0
  677. package/dist/nlp/seeds/nlp-value.seed-model.js +5 -0
  678. package/dist/nlp/seeds/nlp-value.seed-model.js.map +1 -0
  679. package/dist/nlp/seeds/nlp-value.seed.d.ts +10 -0
  680. package/dist/nlp/seeds/nlp-value.seed.js +41 -0
  681. package/dist/nlp/seeds/nlp-value.seed.js.map +1 -0
  682. package/dist/nlp/services/nlp-entity.service.d.ts +24 -0
  683. package/dist/nlp/services/nlp-entity.service.js +120 -0
  684. package/dist/nlp/services/nlp-entity.service.js.map +1 -0
  685. package/dist/nlp/services/nlp-sample-entity.service.d.ts +17 -0
  686. package/dist/nlp/services/nlp-sample-entity.service.js +72 -0
  687. package/dist/nlp/services/nlp-sample-entity.service.js.map +1 -0
  688. package/dist/nlp/services/nlp-sample.service.d.ts +42 -0
  689. package/dist/nlp/services/nlp-sample.service.js +236 -0
  690. package/dist/nlp/services/nlp-sample.service.js.map +1 -0
  691. package/dist/nlp/services/nlp-value.service.d.ts +19 -0
  692. package/dist/nlp/services/nlp-value.service.js +159 -0
  693. package/dist/nlp/services/nlp-value.service.js.map +1 -0
  694. package/dist/nlp/services/nlp.service.d.ts +26 -0
  695. package/dist/nlp/services/nlp.service.js +241 -0
  696. package/dist/nlp/services/nlp.service.js.map +1 -0
  697. package/dist/nlp/types.d.ts +34 -0
  698. package/dist/nlp/types.js +17 -0
  699. package/dist/nlp/types.js.map +1 -0
  700. package/dist/plugins/base-block-plugin.d.ts +16 -0
  701. package/dist/plugins/base-block-plugin.js +47 -0
  702. package/dist/plugins/base-block-plugin.js.map +1 -0
  703. package/dist/plugins/base-event-plugin.d.ts +7 -0
  704. package/dist/plugins/base-event-plugin.js +28 -0
  705. package/dist/plugins/base-event-plugin.js.map +1 -0
  706. package/dist/plugins/base-plugin.service.d.ts +11 -0
  707. package/dist/plugins/base-plugin.service.js +32 -0
  708. package/dist/plugins/base-plugin.service.js.map +1 -0
  709. package/dist/plugins/index.d.ts +7 -0
  710. package/dist/plugins/index.js +24 -0
  711. package/dist/plugins/index.js.map +1 -0
  712. package/dist/plugins/map-types.d.ts +11 -0
  713. package/dist/plugins/map-types.js +10 -0
  714. package/dist/plugins/map-types.js.map +1 -0
  715. package/dist/plugins/plugins.module.d.ts +2 -0
  716. package/dist/plugins/plugins.module.js +39 -0
  717. package/dist/plugins/plugins.module.js.map +1 -0
  718. package/dist/plugins/plugins.service.d.ts +12 -0
  719. package/dist/plugins/plugins.service.js +50 -0
  720. package/dist/plugins/plugins.service.js.map +1 -0
  721. package/dist/plugins/types.d.ts +20 -0
  722. package/dist/plugins/types.js +9 -0
  723. package/dist/plugins/types.js.map +1 -0
  724. package/dist/repl.d.ts +1 -0
  725. package/dist/repl.js +10 -0
  726. package/dist/repl.js.map +1 -0
  727. package/dist/seeder.d.ts +2 -0
  728. package/dist/seeder.js +135 -0
  729. package/dist/seeder.js.map +1 -0
  730. package/dist/setting/controllers/setting.controller.d.ts +11 -0
  731. package/dist/setting/controllers/setting.controller.js +56 -0
  732. package/dist/setting/controllers/setting.controller.js.map +1 -0
  733. package/dist/setting/dto/metadata.dto.d.ts +23 -0
  734. package/dist/setting/dto/metadata.dto.js +54 -0
  735. package/dist/setting/dto/metadata.dto.js.map +1 -0
  736. package/dist/setting/dto/setting.dto.d.ts +38 -0
  737. package/dist/setting/dto/setting.dto.js +155 -0
  738. package/dist/setting/dto/setting.dto.js.map +1 -0
  739. package/dist/setting/entities/metadata.entity.d.ts +5 -0
  740. package/dist/setting/entities/metadata.entity.js +31 -0
  741. package/dist/setting/entities/metadata.entity.js.map +1 -0
  742. package/dist/setting/entities/setting.entity.d.ts +16 -0
  743. package/dist/setting/entities/setting.entity.js +125 -0
  744. package/dist/setting/entities/setting.entity.js.map +1 -0
  745. package/dist/setting/index.d.ts +15 -0
  746. package/dist/setting/index.js +32 -0
  747. package/dist/setting/index.js.map +1 -0
  748. package/dist/setting/repositories/metadata.repository.d.ts +7 -0
  749. package/dist/setting/repositories/metadata.repository.js +36 -0
  750. package/dist/setting/repositories/metadata.repository.js.map +1 -0
  751. package/dist/setting/repositories/setting.repository.d.ts +8 -0
  752. package/dist/setting/repositories/setting.repository.js +43 -0
  753. package/dist/setting/repositories/setting.repository.js.map +1 -0
  754. package/dist/setting/seeds/metadata.seed-model.d.ts +4 -0
  755. package/dist/setting/seeds/metadata.seed-model.js +10 -0
  756. package/dist/setting/seeds/metadata.seed-model.js.map +1 -0
  757. package/dist/setting/seeds/metadata.seed.d.ts +8 -0
  758. package/dist/setting/seeds/metadata.seed.js +32 -0
  759. package/dist/setting/seeds/metadata.seed.js.map +1 -0
  760. package/dist/setting/seeds/setting.seed-model.d.ts +152 -0
  761. package/dist/setting/seeds/setting.seed-model.js +178 -0
  762. package/dist/setting/seeds/setting.seed-model.js.map +1 -0
  763. package/dist/setting/seeds/setting.seed.d.ts +12 -0
  764. package/dist/setting/seeds/setting.seed.js +47 -0
  765. package/dist/setting/seeds/setting.seed.js.map +1 -0
  766. package/dist/setting/services/metadata.service.d.ts +12 -0
  767. package/dist/setting/services/metadata.service.js +46 -0
  768. package/dist/setting/services/metadata.service.js.map +1 -0
  769. package/dist/setting/services/setting.service.d.ts +21 -0
  770. package/dist/setting/services/setting.service.js +112 -0
  771. package/dist/setting/services/setting.service.js.map +1 -0
  772. package/dist/setting/setting.module.d.ts +2 -0
  773. package/dist/setting/setting.module.js +40 -0
  774. package/dist/setting/setting.module.js.map +1 -0
  775. package/dist/setting/types/index.d.ts +93 -0
  776. package/dist/setting/types/index.js +25 -0
  777. package/dist/setting/types/index.js.map +1 -0
  778. package/dist/static/assets/NlpEntity-pMPO8FJm.js +1 -0
  779. package/dist/static/assets/index-CdV7RB70.css +1 -0
  780. package/dist/static/assets/index-DYVFraRG.js +990 -0
  781. package/dist/static/assets/roboto-cyrillic-100-normal-BugLp6Ss.woff +0 -0
  782. package/dist/static/assets/roboto-cyrillic-100-normal-DDeB9qQX.woff2 +0 -0
  783. package/dist/static/assets/roboto-cyrillic-300-normal-BoeCr7ev.woff2 +0 -0
  784. package/dist/static/assets/roboto-cyrillic-300-normal-Cb01H779.woff +0 -0
  785. package/dist/static/assets/roboto-cyrillic-400-normal-C5q4FMUG.woff +0 -0
  786. package/dist/static/assets/roboto-cyrillic-400-normal-DAIM1_dR.woff2 +0 -0
  787. package/dist/static/assets/roboto-cyrillic-500-normal-DhPqGoNQ.woff +0 -0
  788. package/dist/static/assets/roboto-cyrillic-500-normal-hCeO1jFL.woff2 +0 -0
  789. package/dist/static/assets/roboto-cyrillic-700-normal-BiSG5NnW.woff2 +0 -0
  790. package/dist/static/assets/roboto-cyrillic-700-normal-bDW9bgt5.woff +0 -0
  791. package/dist/static/assets/roboto-cyrillic-900-normal-D4rFC7QP.woff2 +0 -0
  792. package/dist/static/assets/roboto-cyrillic-900-normal-M6LHKKZi.woff +0 -0
  793. package/dist/static/assets/roboto-cyrillic-ext-100-normal-BYYVzI3C.woff +0 -0
  794. package/dist/static/assets/roboto-cyrillic-ext-100-normal-eVx91DwW.woff2 +0 -0
  795. package/dist/static/assets/roboto-cyrillic-ext-300-normal-CUPJdUZp.woff2 +0 -0
  796. package/dist/static/assets/roboto-cyrillic-ext-300-normal-D2-2MTar.woff +0 -0
  797. package/dist/static/assets/roboto-cyrillic-ext-400-normal-5IDvadIC.woff +0 -0
  798. package/dist/static/assets/roboto-cyrillic-ext-400-normal-DzMWdK87.woff2 +0 -0
  799. package/dist/static/assets/roboto-cyrillic-ext-500-normal-B7rQpwPu.woff2 +0 -0
  800. package/dist/static/assets/roboto-cyrillic-ext-500-normal-aAFKCR76.woff +0 -0
  801. package/dist/static/assets/roboto-cyrillic-ext-700-normal-Ct5_lukf.woff +0 -0
  802. package/dist/static/assets/roboto-cyrillic-ext-700-normal-UFn0vR9r.woff2 +0 -0
  803. package/dist/static/assets/roboto-cyrillic-ext-900-normal-Bfn4Lcxa.woff2 +0 -0
  804. package/dist/static/assets/roboto-cyrillic-ext-900-normal-ntW-VpC0.woff +0 -0
  805. package/dist/static/assets/roboto-greek-100-normal-BQXKmI1c.woff2 +0 -0
  806. package/dist/static/assets/roboto-greek-100-normal-CiRHeoKM.woff +0 -0
  807. package/dist/static/assets/roboto-greek-300-normal-BMtCIBFp.woff +0 -0
  808. package/dist/static/assets/roboto-greek-300-normal-Cnub06j7.woff2 +0 -0
  809. package/dist/static/assets/roboto-greek-400-normal-DwVopRQH.woff +0 -0
  810. package/dist/static/assets/roboto-greek-400-normal-jFM2czAU.woff2 +0 -0
  811. package/dist/static/assets/roboto-greek-500-normal-B0wzjI_J.woff +0 -0
  812. package/dist/static/assets/roboto-greek-500-normal-BJMS0heP.woff2 +0 -0
  813. package/dist/static/assets/roboto-greek-700-normal-BcGn9doz.woff2 +0 -0
  814. package/dist/static/assets/roboto-greek-700-normal-Bi9oTykh.woff +0 -0
  815. package/dist/static/assets/roboto-greek-900-normal-Awt4eUGS.woff +0 -0
  816. package/dist/static/assets/roboto-greek-900-normal-BCuSXpbA.woff2 +0 -0
  817. package/dist/static/assets/roboto-latin-100-normal-DlpfXJCk.woff2 +0 -0
  818. package/dist/static/assets/roboto-latin-100-normal-yik7JM_q.woff +0 -0
  819. package/dist/static/assets/roboto-latin-300-normal--FIRE8Jd.woff +0 -0
  820. package/dist/static/assets/roboto-latin-300-normal-CztWkFGs.woff2 +0 -0
  821. package/dist/static/assets/roboto-latin-400-normal-BX2H0A0_.woff +0 -0
  822. package/dist/static/assets/roboto-latin-400-normal-CNwBRw8h.woff2 +0 -0
  823. package/dist/static/assets/roboto-latin-500-normal-CkrA1NAy.woff2 +0 -0
  824. package/dist/static/assets/roboto-latin-500-normal-CoDN7ZW2.woff +0 -0
  825. package/dist/static/assets/roboto-latin-700-normal-CXeAXeti.woff2 +0 -0
  826. package/dist/static/assets/roboto-latin-700-normal-DxC3k-1u.woff +0 -0
  827. package/dist/static/assets/roboto-latin-900-normal-93zEKV3C.woff2 +0 -0
  828. package/dist/static/assets/roboto-latin-900-normal-yeV1tgUt.woff +0 -0
  829. package/dist/static/assets/roboto-latin-ext-100-normal-1LaByAVy.woff2 +0 -0
  830. package/dist/static/assets/roboto-latin-ext-100-normal-DLDB2RRU.woff +0 -0
  831. package/dist/static/assets/roboto-latin-ext-300-normal-9Myisv2Z.woff +0 -0
  832. package/dist/static/assets/roboto-latin-ext-300-normal-BOz0oSmX.woff2 +0 -0
  833. package/dist/static/assets/roboto-latin-ext-400-normal-BG57dRWO.woff +0 -0
  834. package/dist/static/assets/roboto-latin-ext-400-normal-ZYmyxeOy.woff2 +0 -0
  835. package/dist/static/assets/roboto-latin-ext-500-normal-C_ARlJGk.woff2 +0 -0
  836. package/dist/static/assets/roboto-latin-ext-500-normal-EUd9mLnZ.woff +0 -0
  837. package/dist/static/assets/roboto-latin-ext-700-normal-70GS1MYH.woff2 +0 -0
  838. package/dist/static/assets/roboto-latin-ext-700-normal-B3Q5yJJO.woff +0 -0
  839. package/dist/static/assets/roboto-latin-ext-900-normal-BxNYdyfz.woff2 +0 -0
  840. package/dist/static/assets/roboto-latin-ext-900-normal-miBG-_G3.woff +0 -0
  841. package/dist/static/assets/roboto-math-100-normal-DesmuRQJ.woff2 +0 -0
  842. package/dist/static/assets/roboto-math-100-normal-Dt2kQgXZ.woff +0 -0
  843. package/dist/static/assets/roboto-math-300-normal-9fozW1Ii.woff +0 -0
  844. package/dist/static/assets/roboto-math-300-normal-BMxwzQmU.woff2 +0 -0
  845. package/dist/static/assets/roboto-math-400-normal-B3wgz80t.woff2 +0 -0
  846. package/dist/static/assets/roboto-math-400-normal-BRMeFL5Z.woff +0 -0
  847. package/dist/static/assets/roboto-math-500-normal-CFNaIMFC.woff2 +0 -0
  848. package/dist/static/assets/roboto-math-500-normal-nGmytUgK.woff +0 -0
  849. package/dist/static/assets/roboto-math-700-normal-De_Mfcv-.woff +0 -0
  850. package/dist/static/assets/roboto-math-700-normal-VUAI6Bz2.woff2 +0 -0
  851. package/dist/static/assets/roboto-math-900-normal-Bse64gO2.woff +0 -0
  852. package/dist/static/assets/roboto-math-900-normal-DVW2yWT0.woff2 +0 -0
  853. package/dist/static/assets/roboto-symbols-100-normal-B-PMwc8r.woff2 +0 -0
  854. package/dist/static/assets/roboto-symbols-100-normal-DWeMaoIY.woff +0 -0
  855. package/dist/static/assets/roboto-symbols-300-normal-BtHl5mYl.woff2 +0 -0
  856. package/dist/static/assets/roboto-symbols-300-normal-zmF1mPr_.woff +0 -0
  857. package/dist/static/assets/roboto-symbols-400-normal-B2LMqLB2.woff +0 -0
  858. package/dist/static/assets/roboto-symbols-400-normal-fF1SLJBj.woff2 +0 -0
  859. package/dist/static/assets/roboto-symbols-500-normal-B3xPS0M7.woff +0 -0
  860. package/dist/static/assets/roboto-symbols-500-normal-BXFTxrNR.woff2 +0 -0
  861. package/dist/static/assets/roboto-symbols-700-normal-BT-mnhPp.woff +0 -0
  862. package/dist/static/assets/roboto-symbols-700-normal-rJi6RjIy.woff2 +0 -0
  863. package/dist/static/assets/roboto-symbols-900-normal-CRdpsJ80.woff2 +0 -0
  864. package/dist/static/assets/roboto-symbols-900-normal-CVY_2yS0.woff +0 -0
  865. package/dist/static/assets/roboto-vietnamese-100-normal-CZkTm67L.woff +0 -0
  866. package/dist/static/assets/roboto-vietnamese-100-normal-DCm82-f1.woff2 +0 -0
  867. package/dist/static/assets/roboto-vietnamese-300-normal-CBwYb71Q.woff +0 -0
  868. package/dist/static/assets/roboto-vietnamese-300-normal-CNeuLW5X.woff2 +0 -0
  869. package/dist/static/assets/roboto-vietnamese-400-normal-BYP5tVVv.woff +0 -0
  870. package/dist/static/assets/roboto-vietnamese-400-normal-CDDxGrUb.woff2 +0 -0
  871. package/dist/static/assets/roboto-vietnamese-500-normal-CUzdRVXb.woff +0 -0
  872. package/dist/static/assets/roboto-vietnamese-500-normal-HYpufUYk.woff2 +0 -0
  873. package/dist/static/assets/roboto-vietnamese-700-normal-BhieYfot.woff +0 -0
  874. package/dist/static/assets/roboto-vietnamese-700-normal-iKxYNAzq.woff2 +0 -0
  875. package/dist/static/assets/roboto-vietnamese-900-normal-D60pXI5H.woff2 +0 -0
  876. package/dist/static/assets/roboto-vietnamese-900-normal-JmgrehrB.woff +0 -0
  877. package/dist/static/images/favicon.ico +0 -0
  878. package/dist/static/index.html +14 -0
  879. package/dist/static/locales/en/chatbot_settings.json +24 -0
  880. package/dist/static/locales/en/contact.json +18 -0
  881. package/dist/static/locales/en/nlp_settings.json +16 -0
  882. package/dist/static/locales/en/translation.json +677 -0
  883. package/dist/static/locales/fr/chatbot_settings.json +24 -0
  884. package/dist/static/locales/fr/contact.json +18 -0
  885. package/dist/static/locales/fr/nlp_settings.json +16 -0
  886. package/dist/static/locales/fr/translation.json +678 -0
  887. package/dist/swagger.d.ts +2 -0
  888. package/dist/swagger.js +14 -0
  889. package/dist/swagger.js.map +1 -0
  890. package/dist/templates/account_confirmation.mjml +40 -0
  891. package/dist/templates/invitation.mjml +42 -0
  892. package/dist/templates/password_reset.mjml +39 -0
  893. package/dist/tsconfig.build.tsbuildinfo +1 -0
  894. package/dist/types/event-emitter.d.ts +381 -0
  895. package/dist/types/express-session.d.ts +30 -0
  896. package/dist/types/socket.d.ts +15 -0
  897. package/dist/user/controllers/auth.controller.d.ts +27 -0
  898. package/dist/user/controllers/auth.controller.js +151 -0
  899. package/dist/user/controllers/auth.controller.js.map +1 -0
  900. package/dist/user/controllers/model.controller.d.ts +10 -0
  901. package/dist/user/controllers/model.controller.js +47 -0
  902. package/dist/user/controllers/model.controller.js.map +1 -0
  903. package/dist/user/controllers/permission.controller.d.ts +16 -0
  904. package/dist/user/controllers/permission.controller.js +89 -0
  905. package/dist/user/controllers/permission.controller.js.map +1 -0
  906. package/dist/user/controllers/role.controller.d.ts +20 -0
  907. package/dist/user/controllers/role.controller.js +137 -0
  908. package/dist/user/controllers/role.controller.js.map +1 -0
  909. package/dist/user/controllers/user.controller.d.ts +55 -0
  910. package/dist/user/controllers/user.controller.js +362 -0
  911. package/dist/user/controllers/user.controller.js.map +1 -0
  912. package/dist/user/dto/invitation.dto.d.ts +24 -0
  913. package/dist/user/dto/invitation.dto.js +71 -0
  914. package/dist/user/dto/invitation.dto.js.map +1 -0
  915. package/dist/user/dto/model.dto.d.ts +28 -0
  916. package/dist/user/dto/model.dto.js +91 -0
  917. package/dist/user/dto/model.dto.js.map +1 -0
  918. package/dist/user/dto/permission.dto.d.ts +30 -0
  919. package/dist/user/dto/permission.dto.js +97 -0
  920. package/dist/user/dto/permission.dto.js.map +1 -0
  921. package/dist/user/dto/role.dto.d.ts +32 -0
  922. package/dist/user/dto/role.dto.js +89 -0
  923. package/dist/user/dto/role.dto.js.map +1 -0
  924. package/dist/user/dto/user.dto.d.ts +66 -0
  925. package/dist/user/dto/user.dto.js +253 -0
  926. package/dist/user/dto/user.dto.js.map +1 -0
  927. package/dist/user/entities/invitation.entity.d.ts +10 -0
  928. package/dist/user/entities/invitation.entity.js +66 -0
  929. package/dist/user/entities/invitation.entity.js.map +1 -0
  930. package/dist/user/entities/model.entity.d.ts +10 -0
  931. package/dist/user/entities/model.entity.js +47 -0
  932. package/dist/user/entities/model.entity.js.map +1 -0
  933. package/dist/user/entities/permission.entity.d.ts +13 -0
  934. package/dist/user/entities/permission.entity.js +59 -0
  935. package/dist/user/entities/permission.entity.js.map +1 -0
  936. package/dist/user/entities/role.entity.d.ts +10 -0
  937. package/dist/user/entities/role.entity.js +42 -0
  938. package/dist/user/entities/role.entity.js.map +1 -0
  939. package/dist/user/entities/session.entity.d.ts +7 -0
  940. package/dist/user/entities/session.entity.js +37 -0
  941. package/dist/user/entities/session.entity.js.map +1 -0
  942. package/dist/user/entities/user.entity.d.ts +26 -0
  943. package/dist/user/entities/user.entity.js +148 -0
  944. package/dist/user/entities/user.entity.js.map +1 -0
  945. package/dist/user/guards/ability.guard.d.ts +9 -0
  946. package/dist/user/guards/ability.guard.js +76 -0
  947. package/dist/user/guards/ability.guard.js.map +1 -0
  948. package/dist/user/guards/local-auth.guard.d.ts +6 -0
  949. package/dist/user/guards/local-auth.guard.js +23 -0
  950. package/dist/user/guards/local-auth.guard.js.map +1 -0
  951. package/dist/user/index.d.ts +49 -0
  952. package/dist/user/index.js +66 -0
  953. package/dist/user/index.js.map +1 -0
  954. package/dist/user/passport/auth-strategy/local.strategy.d.ts +11 -0
  955. package/dist/user/passport/auth-strategy/local.strategy.js +37 -0
  956. package/dist/user/passport/auth-strategy/local.strategy.js.map +1 -0
  957. package/dist/user/passport/session.serializer.d.ts +10 -0
  958. package/dist/user/passport/session.serializer.js +38 -0
  959. package/dist/user/passport/session.serializer.js.map +1 -0
  960. package/dist/user/repositories/invitation.repository.d.ts +7 -0
  961. package/dist/user/repositories/invitation.repository.js +36 -0
  962. package/dist/user/repositories/invitation.repository.js.map +1 -0
  963. package/dist/user/repositories/model.repository.d.ts +7 -0
  964. package/dist/user/repositories/model.repository.js +33 -0
  965. package/dist/user/repositories/model.repository.js.map +1 -0
  966. package/dist/user/repositories/permission.repository.d.ts +7 -0
  967. package/dist/user/repositories/permission.repository.js +36 -0
  968. package/dist/user/repositories/permission.repository.js.map +1 -0
  969. package/dist/user/repositories/role.repository.d.ts +7 -0
  970. package/dist/user/repositories/role.repository.js +36 -0
  971. package/dist/user/repositories/role.repository.js.map +1 -0
  972. package/dist/user/repositories/user.repository.d.ts +8 -0
  973. package/dist/user/repositories/user.repository.js +41 -0
  974. package/dist/user/repositories/user.repository.js.map +1 -0
  975. package/dist/user/seeds/model.seed-model.d.ts +2 -0
  976. package/dist/user/seeds/model.seed-model.js +126 -0
  977. package/dist/user/seeds/model.seed-model.js.map +1 -0
  978. package/dist/user/seeds/model.seed.d.ts +8 -0
  979. package/dist/user/seeds/model.seed.js +27 -0
  980. package/dist/user/seeds/model.seed.js.map +1 -0
  981. package/dist/user/seeds/permission.seed-model.d.ts +2 -0
  982. package/dist/user/seeds/permission.seed-model.js +30 -0
  983. package/dist/user/seeds/permission.seed-model.js.map +1 -0
  984. package/dist/user/seeds/permission.seed.d.ts +8 -0
  985. package/dist/user/seeds/permission.seed.js +27 -0
  986. package/dist/user/seeds/permission.seed.js.map +1 -0
  987. package/dist/user/seeds/role.seed-model.d.ts +2 -0
  988. package/dist/user/seeds/role.seed-model.js +15 -0
  989. package/dist/user/seeds/role.seed-model.js.map +1 -0
  990. package/dist/user/seeds/role.seed.d.ts +8 -0
  991. package/dist/user/seeds/role.seed.js +27 -0
  992. package/dist/user/seeds/role.seed.js.map +1 -0
  993. package/dist/user/seeds/user.seed-model.d.ts +2 -0
  994. package/dist/user/seeds/user.seed-model.js +18 -0
  995. package/dist/user/seeds/user.seed-model.js.map +1 -0
  996. package/dist/user/seeds/user.seed.d.ts +8 -0
  997. package/dist/user/seeds/user.seed.js +27 -0
  998. package/dist/user/seeds/user.seed.js.map +1 -0
  999. package/dist/user/services/auth.service.d.ts +9 -0
  1000. package/dist/user/services/auth.service.js +48 -0
  1001. package/dist/user/services/auth.service.js.map +1 -0
  1002. package/dist/user/services/invitation.service.d.ts +23 -0
  1003. package/dist/user/services/invitation.service.js +89 -0
  1004. package/dist/user/services/invitation.service.js.map +1 -0
  1005. package/dist/user/services/model.service.d.ts +8 -0
  1006. package/dist/user/services/model.service.js +27 -0
  1007. package/dist/user/services/model.service.js.map +1 -0
  1008. package/dist/user/services/passwordReset.service.d.ts +21 -0
  1009. package/dist/user/services/passwordReset.service.js +104 -0
  1010. package/dist/user/services/passwordReset.service.js.map +1 -0
  1011. package/dist/user/services/permission.service.d.ts +14 -0
  1012. package/dist/user/services/permission.service.js +69 -0
  1013. package/dist/user/services/permission.service.js.map +1 -0
  1014. package/dist/user/services/role.service.d.ts +8 -0
  1015. package/dist/user/services/role.service.js +27 -0
  1016. package/dist/user/services/role.service.js.map +1 -0
  1017. package/dist/user/services/user.service.d.ts +8 -0
  1018. package/dist/user/services/user.service.js +27 -0
  1019. package/dist/user/services/user.service.js.map +1 -0
  1020. package/dist/user/services/validate-account.service.d.ts +27 -0
  1021. package/dist/user/services/validate-account.service.js +90 -0
  1022. package/dist/user/services/validate-account.service.js.map +1 -0
  1023. package/dist/user/types/action.type.d.ts +12 -0
  1024. package/dist/user/types/action.type.js +18 -0
  1025. package/dist/user/types/action.type.js.map +1 -0
  1026. package/dist/user/types/index.type.d.ts +1 -0
  1027. package/dist/user/types/index.type.js +3 -0
  1028. package/dist/user/types/index.type.js.map +1 -0
  1029. package/dist/user/types/model.type.d.ts +1 -0
  1030. package/dist/user/types/model.type.js +3 -0
  1031. package/dist/user/types/model.type.js.map +1 -0
  1032. package/dist/user/types/permission.type.d.ts +5 -0
  1033. package/dist/user/types/permission.type.js +3 -0
  1034. package/dist/user/types/permission.type.js.map +1 -0
  1035. package/dist/user/types/user-provider.type.d.ts +4 -0
  1036. package/dist/user/types/user-provider.type.js +3 -0
  1037. package/dist/user/types/user-provider.type.js.map +1 -0
  1038. package/dist/user/user.module.d.ts +2 -0
  1039. package/dist/user/user.module.js +98 -0
  1040. package/dist/user/user.module.js.map +1 -0
  1041. package/dist/user/utilities/bcryptjs.d.ts +1 -0
  1042. package/dist/user/utilities/bcryptjs.js +8 -0
  1043. package/dist/user/utilities/bcryptjs.js.map +1 -0
  1044. package/dist/user/utilities/hash.d.ts +1 -0
  1045. package/dist/user/utilities/hash.js +7 -0
  1046. package/dist/user/utilities/hash.js.map +1 -0
  1047. package/dist/utils/constants/cache.d.ts +7 -0
  1048. package/dist/utils/constants/cache.js +11 -0
  1049. package/dist/utils/constants/cache.js.map +1 -0
  1050. package/dist/utils/constants/mock.d.ts +1 -0
  1051. package/dist/utils/constants/mock.js +5 -0
  1052. package/dist/utils/constants/mock.js.map +1 -0
  1053. package/dist/utils/constants/nlp.d.ts +1 -0
  1054. package/dist/utils/constants/nlp.js +5 -0
  1055. package/dist/utils/constants/nlp.js.map +1 -0
  1056. package/dist/utils/constants/session-middleware.d.ts +2 -0
  1057. package/dist/utils/constants/session-middleware.js +34 -0
  1058. package/dist/utils/constants/session-middleware.js.map +1 -0
  1059. package/dist/utils/constants/session-store.d.ts +2 -0
  1060. package/dist/utils/constants/session-store.js +56 -0
  1061. package/dist/utils/constants/session-store.js.map +1 -0
  1062. package/dist/utils/decorators/cacheable.decorator.d.ts +1 -0
  1063. package/dist/utils/decorators/cacheable.decorator.js +33 -0
  1064. package/dist/utils/decorators/cacheable.decorator.js.map +1 -0
  1065. package/dist/utils/decorators/is-uuid.decorator.d.ts +2 -0
  1066. package/dist/utils/decorators/is-uuid.decorator.js +8 -0
  1067. package/dist/utils/decorators/is-uuid.decorator.js.map +1 -0
  1068. package/dist/utils/decorators/relation-ref.decorator.d.ts +5 -0
  1069. package/dist/utils/decorators/relation-ref.decorator.js +17 -0
  1070. package/dist/utils/decorators/relation-ref.decorator.js.map +1 -0
  1071. package/dist/utils/decorators/roles.decorator.d.ts +2 -0
  1072. package/dist/utils/decorators/roles.decorator.js +7 -0
  1073. package/dist/utils/decorators/roles.decorator.js.map +1 -0
  1074. package/dist/utils/decorators/validate.decorator.d.ts +3 -0
  1075. package/dist/utils/decorators/validate.decorator.js +30 -0
  1076. package/dist/utils/decorators/validate.decorator.js.map +1 -0
  1077. package/dist/utils/generics/base-orm.controller.d.ts +15 -0
  1078. package/dist/utils/generics/base-orm.controller.js +32 -0
  1079. package/dist/utils/generics/base-orm.controller.js.map +1 -0
  1080. package/dist/utils/generics/base-orm.repository.d.ts +82 -0
  1081. package/dist/utils/generics/base-orm.repository.js +291 -0
  1082. package/dist/utils/generics/base-orm.repository.js.map +1 -0
  1083. package/dist/utils/generics/base-orm.seeder.d.ts +11 -0
  1084. package/dist/utils/generics/base-orm.seeder.js +24 -0
  1085. package/dist/utils/generics/base-orm.seeder.js.map +1 -0
  1086. package/dist/utils/generics/base-orm.service.d.ts +25 -0
  1087. package/dist/utils/generics/base-orm.service.js +61 -0
  1088. package/dist/utils/generics/base-orm.service.js.map +1 -0
  1089. package/dist/utils/generics/extension.d.ts +14 -0
  1090. package/dist/utils/generics/extension.js +35 -0
  1091. package/dist/utils/generics/extension.js.map +1 -0
  1092. package/dist/utils/helpers/URL.d.ts +1 -0
  1093. package/dist/utils/helpers/URL.js +18 -0
  1094. package/dist/utils/helpers/URL.js.map +1 -0
  1095. package/dist/utils/helpers/avatar.d.ts +7 -0
  1096. package/dist/utils/helpers/avatar.js +51 -0
  1097. package/dist/utils/helpers/avatar.js.map +1 -0
  1098. package/dist/utils/helpers/flatten.d.ts +1 -0
  1099. package/dist/utils/helpers/flatten.js +23 -0
  1100. package/dist/utils/helpers/flatten.js.map +1 -0
  1101. package/dist/utils/helpers/fs.d.ts +2 -0
  1102. package/dist/utils/helpers/fs.js +42 -0
  1103. package/dist/utils/helpers/fs.js.map +1 -0
  1104. package/dist/utils/helpers/misc.d.ts +5 -0
  1105. package/dist/utils/helpers/misc.js +31 -0
  1106. package/dist/utils/helpers/misc.js.map +1 -0
  1107. package/dist/utils/helpers/safeRandom.d.ts +2 -0
  1108. package/dist/utils/helpers/safeRandom.js +16 -0
  1109. package/dist/utils/helpers/safeRandom.js.map +1 -0
  1110. package/dist/utils/helpers/svg.d.ts +13 -0
  1111. package/dist/utils/helpers/svg.js +28 -0
  1112. package/dist/utils/helpers/svg.js.map +1 -0
  1113. package/dist/utils/helpers/zod-validation.d.ts +2 -0
  1114. package/dist/utils/helpers/zod-validation.js +6 -0
  1115. package/dist/utils/helpers/zod-validation.js.map +1 -0
  1116. package/dist/utils/index.d.ts +33 -0
  1117. package/dist/utils/index.js +50 -0
  1118. package/dist/utils/index.js.map +1 -0
  1119. package/dist/utils/pipes/populate.pipe.d.ts +4 -0
  1120. package/dist/utils/pipes/populate.pipe.js +25 -0
  1121. package/dist/utils/pipes/populate.pipe.js.map +1 -0
  1122. package/dist/utils/pipes/sanitize-query.pipe.d.ts +7 -0
  1123. package/dist/utils/pipes/sanitize-query.pipe.js +46 -0
  1124. package/dist/utils/pipes/sanitize-query.pipe.js.map +1 -0
  1125. package/dist/utils/pipes/typeorm-search-filter.pipe.d.ts +44 -0
  1126. package/dist/utils/pipes/typeorm-search-filter.pipe.js +346 -0
  1127. package/dist/utils/pipes/typeorm-search-filter.pipe.js.map +1 -0
  1128. package/dist/utils/pipes/uuid.pipe.d.ts +9 -0
  1129. package/dist/utils/pipes/uuid.pipe.js +60 -0
  1130. package/dist/utils/pipes/uuid.pipe.js.map +1 -0
  1131. package/dist/utils/pipes/zod.pipe.d.ts +8 -0
  1132. package/dist/utils/pipes/zod.pipe.js +42 -0
  1133. package/dist/utils/pipes/zod.pipe.js.map +1 -0
  1134. package/dist/utils/test/constants.d.ts +1 -0
  1135. package/dist/utils/test/constants.js +5 -0
  1136. package/dist/utils/test/constants.js.map +1 -0
  1137. package/dist/utils/test/date.d.ts +1 -0
  1138. package/dist/utils/test/date.js +9 -0
  1139. package/dist/utils/test/date.js.map +1 -0
  1140. package/dist/utils/test/defaultValues.d.ts +5 -0
  1141. package/dist/utils/test/defaultValues.js +13 -0
  1142. package/dist/utils/test/defaultValues.js.map +1 -0
  1143. package/dist/utils/test/dummy/dto/dummy.dto.d.ts +23 -0
  1144. package/dist/utils/test/dummy/dto/dummy.dto.js +61 -0
  1145. package/dist/utils/test/dummy/dto/dummy.dto.js.map +1 -0
  1146. package/dist/utils/test/dummy/dummy.module.d.ts +2 -0
  1147. package/dist/utils/test/dummy/dummy.module.js +23 -0
  1148. package/dist/utils/test/dummy/dummy.module.js.map +1 -0
  1149. package/dist/utils/test/dummy/dummy.plugin.d.ts +17 -0
  1150. package/dist/utils/test/dummy/dummy.plugin.js +46 -0
  1151. package/dist/utils/test/dummy/dummy.plugin.js.map +1 -0
  1152. package/dist/utils/test/dummy/entities/dummy.entity.d.ts +5 -0
  1153. package/dist/utils/test/dummy/entities/dummy.entity.js +30 -0
  1154. package/dist/utils/test/dummy/entities/dummy.entity.js.map +1 -0
  1155. package/dist/utils/test/dummy/repositories/dummy.repository.d.ts +7 -0
  1156. package/dist/utils/test/dummy/repositories/dummy.repository.js +31 -0
  1157. package/dist/utils/test/dummy/repositories/dummy.repository.js.map +1 -0
  1158. package/dist/utils/test/dummy/services/dummy.service.d.ts +8 -0
  1159. package/dist/utils/test/dummy/services/dummy.service.js +27 -0
  1160. package/dist/utils/test/dummy/services/dummy.service.js.map +1 -0
  1161. package/dist/utils/test/dummy/settings.d.ts +2 -0
  1162. package/dist/utils/test/dummy/settings.js +4 -0
  1163. package/dist/utils/test/dummy/settings.js.map +1 -0
  1164. package/dist/utils/test/errors/messages.d.ts +1 -0
  1165. package/dist/utils/test/errors/messages.js +6 -0
  1166. package/dist/utils/test/errors/messages.js.map +1 -0
  1167. package/dist/utils/test/fixtures/attachment.d.ts +4 -0
  1168. package/dist/utils/test/fixtures/attachment.js +44 -0
  1169. package/dist/utils/test/fixtures/attachment.js.map +1 -0
  1170. package/dist/utils/test/fixtures/block.d.ts +10 -0
  1171. package/dist/utils/test/fixtures/block.js +212 -0
  1172. package/dist/utils/test/fixtures/block.js.map +1 -0
  1173. package/dist/utils/test/fixtures/botstats.d.ts +4 -0
  1174. package/dist/utils/test/fixtures/botstats.js +55 -0
  1175. package/dist/utils/test/fixtures/botstats.js.map +1 -0
  1176. package/dist/utils/test/fixtures/category.d.ts +9 -0
  1177. package/dist/utils/test/fixtures/category.js +41 -0
  1178. package/dist/utils/test/fixtures/category.js.map +1 -0
  1179. package/dist/utils/test/fixtures/content.d.ts +10 -0
  1180. package/dist/utils/test/fixtures/content.js +164 -0
  1181. package/dist/utils/test/fixtures/content.js.map +1 -0
  1182. package/dist/utils/test/fixtures/contenttype.d.ts +10 -0
  1183. package/dist/utils/test/fixtures/contenttype.js +121 -0
  1184. package/dist/utils/test/fixtures/contenttype.js.map +1 -0
  1185. package/dist/utils/test/fixtures/contextvar.d.ts +9 -0
  1186. package/dist/utils/test/fixtures/contextvar.js +45 -0
  1187. package/dist/utils/test/fixtures/contextvar.js.map +1 -0
  1188. package/dist/utils/test/fixtures/conversation.d.ts +8 -0
  1189. package/dist/utils/test/fixtures/conversation.js +210 -0
  1190. package/dist/utils/test/fixtures/conversation.js.map +1 -0
  1191. package/dist/utils/test/fixtures/dummy.d.ts +5 -0
  1192. package/dist/utils/test/fixtures/dummy.js +25 -0
  1193. package/dist/utils/test/fixtures/dummy.js.map +1 -0
  1194. package/dist/utils/test/fixtures/invitation.d.ts +10 -0
  1195. package/dist/utils/test/fixtures/invitation.js +47 -0
  1196. package/dist/utils/test/fixtures/invitation.js.map +1 -0
  1197. package/dist/utils/test/fixtures/label-group.d.ts +16 -0
  1198. package/dist/utils/test/fixtures/label-group.js +65 -0
  1199. package/dist/utils/test/fixtures/label-group.js.map +1 -0
  1200. package/dist/utils/test/fixtures/label.d.ts +9 -0
  1201. package/dist/utils/test/fixtures/label.js +67 -0
  1202. package/dist/utils/test/fixtures/label.js.map +1 -0
  1203. package/dist/utils/test/fixtures/language.d.ts +5 -0
  1204. package/dist/utils/test/fixtures/language.js +30 -0
  1205. package/dist/utils/test/fixtures/language.js.map +1 -0
  1206. package/dist/utils/test/fixtures/menu.d.ts +9 -0
  1207. package/dist/utils/test/fixtures/menu.js +135 -0
  1208. package/dist/utils/test/fixtures/menu.js.map +1 -0
  1209. package/dist/utils/test/fixtures/message.d.ts +7 -0
  1210. package/dist/utils/test/fixtures/message.js +87 -0
  1211. package/dist/utils/test/fixtures/message.js.map +1 -0
  1212. package/dist/utils/test/fixtures/metadata.d.ts +2 -0
  1213. package/dist/utils/test/fixtures/metadata.js +17 -0
  1214. package/dist/utils/test/fixtures/metadata.js.map +1 -0
  1215. package/dist/utils/test/fixtures/migration.d.ts +3 -0
  1216. package/dist/utils/test/fixtures/migration.js +22 -0
  1217. package/dist/utils/test/fixtures/migration.js.map +1 -0
  1218. package/dist/utils/test/fixtures/model.d.ts +14 -0
  1219. package/dist/utils/test/fixtures/model.js +35 -0
  1220. package/dist/utils/test/fixtures/model.js.map +1 -0
  1221. package/dist/utils/test/fixtures/nlpentity.d.ts +6 -0
  1222. package/dist/utils/test/fixtures/nlpentity.js +49 -0
  1223. package/dist/utils/test/fixtures/nlpentity.js.map +1 -0
  1224. package/dist/utils/test/fixtures/nlpsample.d.ts +9 -0
  1225. package/dist/utils/test/fixtures/nlpsample.js +66 -0
  1226. package/dist/utils/test/fixtures/nlpsample.js.map +1 -0
  1227. package/dist/utils/test/fixtures/nlpsampleentity.d.ts +5 -0
  1228. package/dist/utils/test/fixtures/nlpsampleentity.js +74 -0
  1229. package/dist/utils/test/fixtures/nlpsampleentity.js.map +1 -0
  1230. package/dist/utils/test/fixtures/nlpvalue.d.ts +5 -0
  1231. package/dist/utils/test/fixtures/nlpvalue.js +92 -0
  1232. package/dist/utils/test/fixtures/nlpvalue.js.map +1 -0
  1233. package/dist/utils/test/fixtures/permission.d.ts +17 -0
  1234. package/dist/utils/test/fixtures/permission.js +67 -0
  1235. package/dist/utils/test/fixtures/permission.js.map +1 -0
  1236. package/dist/utils/test/fixtures/role.d.ts +15 -0
  1237. package/dist/utils/test/fixtures/role.js +37 -0
  1238. package/dist/utils/test/fixtures/role.js.map +1 -0
  1239. package/dist/utils/test/fixtures/setting.d.ts +4 -0
  1240. package/dist/utils/test/fixtures/setting.js +128 -0
  1241. package/dist/utils/test/fixtures/setting.js.map +1 -0
  1242. package/dist/utils/test/fixtures/subscriber.d.ts +15 -0
  1243. package/dist/utils/test/fixtures/subscriber.js +138 -0
  1244. package/dist/utils/test/fixtures/subscriber.js.map +1 -0
  1245. package/dist/utils/test/fixtures/translation.d.ts +4 -0
  1246. package/dist/utils/test/fixtures/translation.js +20 -0
  1247. package/dist/utils/test/fixtures/translation.js.map +1 -0
  1248. package/dist/utils/test/fixtures/user.d.ts +12 -0
  1249. package/dist/utils/test/fixtures/user.js +56 -0
  1250. package/dist/utils/test/fixtures/user.js.map +1 -0
  1251. package/dist/utils/test/mocks/block.d.ts +27 -0
  1252. package/dist/utils/test/mocks/block.js +355 -0
  1253. package/dist/utils/test/mocks/block.js.map +1 -0
  1254. package/dist/utils/test/mocks/conversation.d.ts +8 -0
  1255. package/dist/utils/test/mocks/conversation.js +54 -0
  1256. package/dist/utils/test/mocks/conversation.js.map +1 -0
  1257. package/dist/utils/test/mocks/misc.d.ts +5 -0
  1258. package/dist/utils/test/mocks/misc.js +9 -0
  1259. package/dist/utils/test/mocks/misc.js.map +1 -0
  1260. package/dist/utils/test/mocks/nlp.d.ts +4 -0
  1261. package/dist/utils/test/mocks/nlp.js +49 -0
  1262. package/dist/utils/test/mocks/nlp.js.map +1 -0
  1263. package/dist/utils/test/mocks/subscriber.d.ts +4 -0
  1264. package/dist/utils/test/mocks/subscriber.js +37 -0
  1265. package/dist/utils/test/mocks/subscriber.js.map +1 -0
  1266. package/dist/utils/test/postman-collections/hexabot_REST.postman_collection.json +2235 -0
  1267. package/dist/utils/test/sort.d.ts +11 -0
  1268. package/dist/utils/test/sort.js +7 -0
  1269. package/dist/utils/test/sort.js.map +1 -0
  1270. package/dist/utils/test/test.d.ts +4 -0
  1271. package/dist/utils/test/test.js +20 -0
  1272. package/dist/utils/test/test.js.map +1 -0
  1273. package/dist/utils/test/types.d.ts +13 -0
  1274. package/dist/utils/test/types.js +3 -0
  1275. package/dist/utils/test/types.js.map +1 -0
  1276. package/dist/utils/test/utils.d.ts +36 -0
  1277. package/dist/utils/test/utils.js +154 -0
  1278. package/dist/utils/test/utils.js.map +1 -0
  1279. package/dist/utils/types/dto.types.d.ts +25 -0
  1280. package/dist/utils/types/dto.types.js +54 -0
  1281. package/dist/utils/types/dto.types.js.map +1 -0
  1282. package/dist/utils/types/extension.d.ts +5 -0
  1283. package/dist/utils/types/extension.js +3 -0
  1284. package/dist/utils/types/extension.js.map +1 -0
  1285. package/dist/utils/types/filter.types.d.ts +47 -0
  1286. package/dist/utils/types/filter.types.js +3 -0
  1287. package/dist/utils/types/filter.types.js.map +1 -0
  1288. package/dist/utils/types/format.types.d.ts +7 -0
  1289. package/dist/utils/types/format.types.js +11 -0
  1290. package/dist/utils/types/format.types.js.map +1 -0
  1291. package/dist/utils/types/misc.d.ts +1 -0
  1292. package/dist/utils/types/misc.js +3 -0
  1293. package/dist/utils/types/misc.js.map +1 -0
  1294. package/dist/websocket/adapters/redis-io.adapter.d.ts +7 -0
  1295. package/dist/websocket/adapters/redis-io.adapter.js +34 -0
  1296. package/dist/websocket/adapters/redis-io.adapter.js.map +1 -0
  1297. package/dist/websocket/decorators/socket-method.decorator.d.ts +7 -0
  1298. package/dist/websocket/decorators/socket-method.decorator.js +75 -0
  1299. package/dist/websocket/decorators/socket-method.decorator.js.map +1 -0
  1300. package/dist/websocket/decorators/socket-req.decorator.d.ts +1 -0
  1301. package/dist/websocket/decorators/socket-req.decorator.js +9 -0
  1302. package/dist/websocket/decorators/socket-req.decorator.js.map +1 -0
  1303. package/dist/websocket/decorators/socket-res.decorator.d.ts +1 -0
  1304. package/dist/websocket/decorators/socket-res.decorator.js +9 -0
  1305. package/dist/websocket/decorators/socket-res.decorator.js.map +1 -0
  1306. package/dist/websocket/decorators/websocket-exceptions.filter.d.ts +4 -0
  1307. package/dist/websocket/decorators/websocket-exceptions.filter.js +29 -0
  1308. package/dist/websocket/decorators/websocket-exceptions.filter.js.map +1 -0
  1309. package/dist/websocket/index.d.ts +14 -0
  1310. package/dist/websocket/index.js +31 -0
  1311. package/dist/websocket/index.js.map +1 -0
  1312. package/dist/websocket/pipes/io-message.pipe.d.ts +21 -0
  1313. package/dist/websocket/pipes/io-message.pipe.js +43 -0
  1314. package/dist/websocket/pipes/io-message.pipe.js.map +1 -0
  1315. package/dist/websocket/services/socket-event-dispatcher.service.d.ts +19 -0
  1316. package/dist/websocket/services/socket-event-dispatcher.service.js +127 -0
  1317. package/dist/websocket/services/socket-event-dispatcher.service.js.map +1 -0
  1318. package/dist/websocket/storage/socket-event-metadata.storage.d.ts +14 -0
  1319. package/dist/websocket/storage/socket-event-metadata.storage.js +18 -0
  1320. package/dist/websocket/storage/socket-event-metadata.storage.js.map +1 -0
  1321. package/dist/websocket/types.d.ts +8 -0
  1322. package/dist/websocket/types.js +9 -0
  1323. package/dist/websocket/types.js.map +1 -0
  1324. package/dist/websocket/utils/gateway-options.d.ts +2 -0
  1325. package/dist/websocket/utils/gateway-options.js +75 -0
  1326. package/dist/websocket/utils/gateway-options.js.map +1 -0
  1327. package/dist/websocket/utils/socket-request.d.ts +28 -0
  1328. package/dist/websocket/utils/socket-request.js +47 -0
  1329. package/dist/websocket/utils/socket-request.js.map +1 -0
  1330. package/dist/websocket/utils/socket-response.d.ts +20 -0
  1331. package/dist/websocket/utils/socket-response.js +48 -0
  1332. package/dist/websocket/utils/socket-response.js.map +1 -0
  1333. package/dist/websocket/websocket.gateway.d.ts +44 -0
  1334. package/dist/websocket/websocket.gateway.js +338 -0
  1335. package/dist/websocket/websocket.gateway.js.map +1 -0
  1336. package/dist/websocket/websocket.module.d.ts +2 -0
  1337. package/dist/websocket/websocket.module.js +23 -0
  1338. package/dist/websocket/websocket.module.js.map +1 -0
  1339. package/package.json +195 -0
  1340. package/src/analytics/analytics.module.ts +20 -0
  1341. package/src/analytics/controllers/bot-stats.controller.ts +133 -0
  1342. package/src/analytics/dto/bot-stats.dto.ts +116 -0
  1343. package/src/analytics/entities/bot-stats.entity.ts +114 -0
  1344. package/src/analytics/index.ts +21 -0
  1345. package/src/analytics/repositories/bot-stats.repository.ts +96 -0
  1346. package/src/analytics/services/bot-stats.service.ts +203 -0
  1347. package/src/analytics/utilities/index.ts +8 -0
  1348. package/src/analytics/validation-rules/is-less-than-date.ts +36 -0
  1349. package/src/app.controller.ts +50 -0
  1350. package/src/app.instance.ts +32 -0
  1351. package/src/app.module.ts +159 -0
  1352. package/src/app.service.ts +18 -0
  1353. package/src/attachment/attachment.module.ts +41 -0
  1354. package/src/attachment/controllers/attachment.controller.ts +203 -0
  1355. package/src/attachment/dto/attachment.dto.ts +216 -0
  1356. package/src/attachment/entities/attachment.entity.ts +91 -0
  1357. package/src/attachment/guards/attachment-ability.guard.ts +299 -0
  1358. package/src/attachment/index.ts +23 -0
  1359. package/src/attachment/mocks/attachment.mock.ts +48 -0
  1360. package/src/attachment/repositories/attachment.repository.ts +36 -0
  1361. package/src/attachment/services/attachment.service.ts +108 -0
  1362. package/src/attachment/types/index.ts +56 -0
  1363. package/src/attachment/utilities/index.ts +112 -0
  1364. package/src/bootstrap.ts +141 -0
  1365. package/src/channel/channel.controller.ts +28 -0
  1366. package/src/channel/channel.middleware.ts +33 -0
  1367. package/src/channel/channel.module.ts +51 -0
  1368. package/src/channel/channel.service.ts +209 -0
  1369. package/src/channel/index.ts +21 -0
  1370. package/src/channel/lib/EventWrapper.ts +410 -0
  1371. package/src/channel/lib/Handler.ts +395 -0
  1372. package/src/channel/lib/__test__/base.mock.ts +11 -0
  1373. package/src/channel/lib/__test__/common.mock.ts +176 -0
  1374. package/src/channel/lib/__test__/label.mock.ts +61 -0
  1375. package/src/channel/lib/__test__/subscriber.mock.ts +43 -0
  1376. package/src/channel/types.ts +19 -0
  1377. package/src/channel/webhook.controller.ts +98 -0
  1378. package/src/chat/chat.module.ts +109 -0
  1379. package/src/chat/constants/block.ts +18 -0
  1380. package/src/chat/constants/conversation.ts +30 -0
  1381. package/src/chat/controllers/block.controller.ts +334 -0
  1382. package/src/chat/controllers/category.controller.ts +162 -0
  1383. package/src/chat/controllers/context-var.controller.ts +157 -0
  1384. package/src/chat/controllers/label-group.controller.ts +171 -0
  1385. package/src/chat/controllers/label.controller.ts +149 -0
  1386. package/src/chat/controllers/message.controller.ts +191 -0
  1387. package/src/chat/controllers/subscriber.controller.ts +172 -0
  1388. package/src/chat/dto/block.dto.ts +320 -0
  1389. package/src/chat/dto/category.dto.ts +88 -0
  1390. package/src/chat/dto/context-var.dto.ts +64 -0
  1391. package/src/chat/dto/conversation.dto.ts +115 -0
  1392. package/src/chat/dto/label-group.dto.ts +57 -0
  1393. package/src/chat/dto/label.dto.ts +112 -0
  1394. package/src/chat/dto/message.dto.ts +145 -0
  1395. package/src/chat/dto/subscriber.dto.ts +222 -0
  1396. package/src/chat/entities/block.entity.ts +367 -0
  1397. package/src/chat/entities/category.entity.ts +54 -0
  1398. package/src/chat/entities/context-var.entity.ts +71 -0
  1399. package/src/chat/entities/conversation.entity.ts +68 -0
  1400. package/src/chat/entities/label-group.entity.ts +21 -0
  1401. package/src/chat/entities/label.entity.ts +66 -0
  1402. package/src/chat/entities/message.entity.ts +78 -0
  1403. package/src/chat/entities/subscriber.entity.ts +124 -0
  1404. package/src/chat/globals.d.ts +12 -0
  1405. package/src/chat/helpers/README.md +115 -0
  1406. package/src/chat/helpers/constants.ts +10 -0
  1407. package/src/chat/helpers/envelope-builder.ts +212 -0
  1408. package/src/chat/helpers/envelope-factory.ts +275 -0
  1409. package/src/chat/index.ts +129 -0
  1410. package/src/chat/repositories/block.repository.ts +164 -0
  1411. package/src/chat/repositories/category.repository.ts +36 -0
  1412. package/src/chat/repositories/context-var.repository.ts +36 -0
  1413. package/src/chat/repositories/conversation.repository.ts +47 -0
  1414. package/src/chat/repositories/label-group.repository.ts +36 -0
  1415. package/src/chat/repositories/label.repository.ts +36 -0
  1416. package/src/chat/repositories/message.repository.ts +151 -0
  1417. package/src/chat/repositories/subscriber.repository.ts +254 -0
  1418. package/src/chat/seeds/category.seed-model.ts +13 -0
  1419. package/src/chat/seeds/category.seed.ts +24 -0
  1420. package/src/chat/seeds/context-var.seed-model.ts +18 -0
  1421. package/src/chat/seeds/context-var.seed.ts +27 -0
  1422. package/src/chat/services/block.service.ts +815 -0
  1423. package/src/chat/services/bot.service.ts +713 -0
  1424. package/src/chat/services/category.service.ts +24 -0
  1425. package/src/chat/services/chat.service.ts +381 -0
  1426. package/src/chat/services/context-var.service.ts +57 -0
  1427. package/src/chat/services/conversation.service.ts +212 -0
  1428. package/src/chat/services/label-group.service.ts +27 -0
  1429. package/src/chat/services/label.service.ts +24 -0
  1430. package/src/chat/services/message.service.ts +125 -0
  1431. package/src/chat/services/subscriber.service.ts +343 -0
  1432. package/src/chat/types/attachment.ts +47 -0
  1433. package/src/chat/types/button.ts +43 -0
  1434. package/src/chat/types/capture-var.ts +17 -0
  1435. package/src/chat/types/channel.ts +30 -0
  1436. package/src/chat/types/context.ts +33 -0
  1437. package/src/chat/types/message.ts +393 -0
  1438. package/src/chat/types/options.ts +46 -0
  1439. package/src/chat/types/pattern.ts +77 -0
  1440. package/src/chat/types/position.ts +14 -0
  1441. package/src/chat/types/quick-reply.ts +43 -0
  1442. package/src/chat/types/subscriberContext.ts +13 -0
  1443. package/src/cli.ts +28 -0
  1444. package/src/cms/cms.module.ts +45 -0
  1445. package/src/cms/controllers/content-type.controller.ts +154 -0
  1446. package/src/cms/controllers/content.controller.ts +243 -0
  1447. package/src/cms/controllers/menu.controller.ts +202 -0
  1448. package/src/cms/decorators/unique-field-names.decorator.ts +21 -0
  1449. package/src/cms/dto/content.dto.ts +80 -0
  1450. package/src/cms/dto/contentType.dto.ts +92 -0
  1451. package/src/cms/dto/menu.dto.ts +108 -0
  1452. package/src/cms/entities/content-type.entity.ts +66 -0
  1453. package/src/cms/entities/content.entity.ts +105 -0
  1454. package/src/cms/entities/menu.entity.ts +111 -0
  1455. package/src/cms/index.ts +53 -0
  1456. package/src/cms/repositories/content-type.repository.ts +39 -0
  1457. package/src/cms/repositories/content.repository.ts +53 -0
  1458. package/src/cms/repositories/menu.repository.ts +36 -0
  1459. package/src/cms/services/content-type.service.ts +55 -0
  1460. package/src/cms/services/content.service.ts +176 -0
  1461. package/src/cms/services/menu.service.ts +121 -0
  1462. package/src/cms/types/content.ts +16 -0
  1463. package/src/cms/types/menu-types.ts +44 -0
  1464. package/src/cms/types/menu.ts +43 -0
  1465. package/src/cms/utilities/field-validation.utils.ts +11 -0
  1466. package/src/cms/utilities/verifyTree.ts +46 -0
  1467. package/src/cms/validators/validate-required-fields.validator.ts +63 -0
  1468. package/src/cms/validators/validate-unique-names.validator.ts +27 -0
  1469. package/src/config/csrf.ts +24 -0
  1470. package/src/config/i18n/en/messages.json +21 -0
  1471. package/src/config/i18n/fr/messages.json +20 -0
  1472. package/src/config/index.ts +256 -0
  1473. package/src/config/types.ts +143 -0
  1474. package/src/database/decorators/datetime-column.decorator.ts +31 -0
  1475. package/src/database/decorators/enum-column.decorator.ts +33 -0
  1476. package/src/database/decorators/json-column.decorator.ts +30 -0
  1477. package/src/database/entities/base.entity.ts +70 -0
  1478. package/src/database/index.ts +15 -0
  1479. package/src/database/typeorm-config.service.ts +59 -0
  1480. package/src/extension/cleanup.service.ts +107 -0
  1481. package/src/extension/extension.module.ts +37 -0
  1482. package/src/extension/index.ts +11 -0
  1483. package/src/extension/types.ts +39 -0
  1484. package/src/extensions/channels/console/globals.d.ts +29 -0
  1485. package/src/extensions/channels/console/i18n/en/label.json +21 -0
  1486. package/src/extensions/channels/console/i18n/en/title.json +3 -0
  1487. package/src/extensions/channels/console/i18n/fr/label.json +21 -0
  1488. package/src/extensions/channels/console/i18n/fr/title.json +3 -0
  1489. package/src/extensions/channels/console/index.channel.ts +58 -0
  1490. package/src/extensions/channels/console/package.json +7 -0
  1491. package/src/extensions/channels/console/settings.ts +78 -0
  1492. package/src/extensions/channels/web/__test__/data.mock.ts +144 -0
  1493. package/src/extensions/channels/web/__test__/events.mock.ts +159 -0
  1494. package/src/extensions/channels/web/base-web-channel.ts +1479 -0
  1495. package/src/extensions/channels/web/globals.d.ts +31 -0
  1496. package/src/extensions/channels/web/i18n/en/label.json +21 -0
  1497. package/src/extensions/channels/web/i18n/en/title.json +3 -0
  1498. package/src/extensions/channels/web/i18n/fr/label.json +21 -0
  1499. package/src/extensions/channels/web/i18n/fr/title.json +3 -0
  1500. package/src/extensions/channels/web/index.channel.ts +57 -0
  1501. package/src/extensions/channels/web/package.json +7 -0
  1502. package/src/extensions/channels/web/settings.ts +92 -0
  1503. package/src/extensions/channels/web/types.ts +220 -0
  1504. package/src/extensions/channels/web/wrapper.ts +322 -0
  1505. package/src/extensions/helpers/llm-nlu/globals.d.ts +20 -0
  1506. package/src/extensions/helpers/llm-nlu/i18n/en/help.json +5 -0
  1507. package/src/extensions/helpers/llm-nlu/i18n/en/label.json +5 -0
  1508. package/src/extensions/helpers/llm-nlu/i18n/en/title.json +3 -0
  1509. package/src/extensions/helpers/llm-nlu/i18n/fr/help.json +5 -0
  1510. package/src/extensions/helpers/llm-nlu/i18n/fr/label.json +5 -0
  1511. package/src/extensions/helpers/llm-nlu/i18n/fr/title.json +3 -0
  1512. package/src/extensions/helpers/llm-nlu/index.helper.ts +162 -0
  1513. package/src/extensions/helpers/llm-nlu/package.json +8 -0
  1514. package/src/extensions/helpers/llm-nlu/settings.ts +45 -0
  1515. package/src/extensions/helpers/local-storage/index.helper.ts +199 -0
  1516. package/src/extensions/helpers/local-storage/package.json +8 -0
  1517. package/src/extensions/helpers/local-storage/settings.ts +15 -0
  1518. package/src/extensions/index.ts +27 -0
  1519. package/src/extensions/plugins/.gitkeep +0 -0
  1520. package/src/extra/index.ts +7 -0
  1521. package/src/global.d.ts +16 -0
  1522. package/src/helper/helper.controller.ts +32 -0
  1523. package/src/helper/helper.module.ts +33 -0
  1524. package/src/helper/helper.service.ts +176 -0
  1525. package/src/helper/index.ts +23 -0
  1526. package/src/helper/lib/__test__/settings.ts +21 -0
  1527. package/src/helper/lib/base-flow-escape-helper.ts +50 -0
  1528. package/src/helper/lib/base-helper.ts +68 -0
  1529. package/src/helper/lib/base-llm-helper.ts +82 -0
  1530. package/src/helper/lib/base-nlp-helper.ts +389 -0
  1531. package/src/helper/lib/base-storage-helper.ts +74 -0
  1532. package/src/helper/types.ts +148 -0
  1533. package/src/i18n/controllers/i18n.controller.ts +37 -0
  1534. package/src/i18n/controllers/language.controller.ts +140 -0
  1535. package/src/i18n/controllers/translation.controller.ts +157 -0
  1536. package/src/i18n/dto/language.dto.ts +67 -0
  1537. package/src/i18n/dto/translation.dto.ts +52 -0
  1538. package/src/i18n/entities/language.entity.ts +61 -0
  1539. package/src/i18n/entities/translation.entity.ts +20 -0
  1540. package/src/i18n/i18n.module.ts +84 -0
  1541. package/src/i18n/index.ts +39 -0
  1542. package/src/i18n/repositories/language.repository.ts +35 -0
  1543. package/src/i18n/repositories/translation.repository.ts +35 -0
  1544. package/src/i18n/seeds/language.seed-model.ts +21 -0
  1545. package/src/i18n/seeds/language.seed.ts +47 -0
  1546. package/src/i18n/seeds/translation.seed-model.ts +17 -0
  1547. package/src/i18n/seeds/translation.seed.ts +27 -0
  1548. package/src/i18n/services/i18n.service.ts +72 -0
  1549. package/src/i18n/services/language.service.ts +101 -0
  1550. package/src/i18n/services/translation.service.ts +215 -0
  1551. package/src/index.ts +68 -0
  1552. package/src/jest-custom.d.ts +11 -0
  1553. package/src/logger/index.ts +9 -0
  1554. package/src/logger/logger.module.ts +16 -0
  1555. package/src/logger/logger.service.ts +57 -0
  1556. package/src/mailer/index.ts +9 -0
  1557. package/src/mailer/mailer.module.ts +69 -0
  1558. package/src/mailer/mailer.service.ts +9 -0
  1559. package/src/mailer/mjml-adapter.class.ts +41 -0
  1560. package/src/main.ts +12 -0
  1561. package/src/migration/README.md +127 -0
  1562. package/src/migration/index.ts +15 -0
  1563. package/src/migration/migration.command.ts +76 -0
  1564. package/src/migration/migration.entity.ts +39 -0
  1565. package/src/migration/migration.module.ts +37 -0
  1566. package/src/migration/migration.service.ts +652 -0
  1567. package/src/migration/migrations/.gitkeep +0 -0
  1568. package/src/migration/types.ts +41 -0
  1569. package/src/nlp/controllers/nlp-entity.controller.ts +238 -0
  1570. package/src/nlp/controllers/nlp-sample.controller.ts +409 -0
  1571. package/src/nlp/controllers/nlp-value.controller.ts +207 -0
  1572. package/src/nlp/dto/nlp-entity.dto.ts +137 -0
  1573. package/src/nlp/dto/nlp-sample-entity.dto.ts +95 -0
  1574. package/src/nlp/dto/nlp-sample.dto.ts +148 -0
  1575. package/src/nlp/dto/nlp-value.dto.ts +158 -0
  1576. package/src/nlp/entities/nlp-entity.entity.ts +60 -0
  1577. package/src/nlp/entities/nlp-sample-entity.entity.ts +64 -0
  1578. package/src/nlp/entities/nlp-sample.entity.ts +52 -0
  1579. package/src/nlp/entities/nlp-value.entity.ts +93 -0
  1580. package/src/nlp/index.ts +57 -0
  1581. package/src/nlp/nlp.module.ts +59 -0
  1582. package/src/nlp/repositories/nlp-entity.repository.ts +36 -0
  1583. package/src/nlp/repositories/nlp-sample-entity.repository.ts +36 -0
  1584. package/src/nlp/repositories/nlp-sample.repository.ts +214 -0
  1585. package/src/nlp/repositories/nlp-value.repository.ts +139 -0
  1586. package/src/nlp/seeds/nlp-entity.seed-model.ts +16 -0
  1587. package/src/nlp/seeds/nlp-entity.seed.ts +27 -0
  1588. package/src/nlp/seeds/nlp-value.seed-model.ts +9 -0
  1589. package/src/nlp/seeds/nlp-value.seed.ts +47 -0
  1590. package/src/nlp/services/nlp-entity.service.ts +212 -0
  1591. package/src/nlp/services/nlp-sample-entity.service.ts +116 -0
  1592. package/src/nlp/services/nlp-sample.service.ts +382 -0
  1593. package/src/nlp/services/nlp-value.service.ts +264 -0
  1594. package/src/nlp/services/nlp.service.ts +311 -0
  1595. package/src/nlp/types.ts +45 -0
  1596. package/src/plugins/base-block-plugin.ts +73 -0
  1597. package/src/plugins/base-event-plugin.ts +20 -0
  1598. package/src/plugins/base-plugin.service.ts +29 -0
  1599. package/src/plugins/index.ts +19 -0
  1600. package/src/plugins/map-types.ts +23 -0
  1601. package/src/plugins/plugins.module.ts +41 -0
  1602. package/src/plugins/plugins.service.ts +101 -0
  1603. package/src/plugins/types.ts +41 -0
  1604. package/src/repl.ts +16 -0
  1605. package/src/seeder.ts +160 -0
  1606. package/src/setting/controllers/setting.controller.ts +68 -0
  1607. package/src/setting/dto/metadata.dto.ts +50 -0
  1608. package/src/setting/dto/setting.dto.ts +150 -0
  1609. package/src/setting/entities/metadata.entity.ts +20 -0
  1610. package/src/setting/entities/setting.entity.ts +114 -0
  1611. package/src/setting/globals.d.ts +41 -0
  1612. package/src/setting/index.ts +35 -0
  1613. package/src/setting/repositories/metadata.repository.ts +35 -0
  1614. package/src/setting/repositories/setting.repository.ts +52 -0
  1615. package/src/setting/seeds/metadata.seed-model.ts +14 -0
  1616. package/src/setting/seeds/metadata.seed.ts +40 -0
  1617. package/src/setting/seeds/setting.seed-model.ts +182 -0
  1618. package/src/setting/seeds/setting.seed.ts +54 -0
  1619. package/src/setting/services/metadata.service.ts +90 -0
  1620. package/src/setting/services/setting.service.ts +181 -0
  1621. package/src/setting/setting.module.ts +34 -0
  1622. package/src/setting/types/index.ts +149 -0
  1623. package/src/swagger.ts +18 -0
  1624. package/src/templates/account_confirmation.mjml +40 -0
  1625. package/src/templates/invitation.mjml +42 -0
  1626. package/src/templates/password_reset.mjml +39 -0
  1627. package/src/user/controllers/auth.controller.ts +181 -0
  1628. package/src/user/controllers/model.controller.ts +54 -0
  1629. package/src/user/controllers/permission.controller.ts +118 -0
  1630. package/src/user/controllers/role.controller.ts +181 -0
  1631. package/src/user/controllers/user.controller.ts +497 -0
  1632. package/src/user/dto/invitation.dto.ts +65 -0
  1633. package/src/user/dto/model.dto.ts +83 -0
  1634. package/src/user/dto/permission.dto.ts +87 -0
  1635. package/src/user/dto/role.dto.ts +78 -0
  1636. package/src/user/dto/user.dto.ts +228 -0
  1637. package/src/user/entities/invitation.entity.ts +61 -0
  1638. package/src/user/entities/model.entity.ts +36 -0
  1639. package/src/user/entities/permission.entity.ts +54 -0
  1640. package/src/user/entities/role.entity.ts +32 -0
  1641. package/src/user/entities/session.entity.ts +30 -0
  1642. package/src/user/entities/user.entity.ts +128 -0
  1643. package/src/user/guards/ability.guard.ts +100 -0
  1644. package/src/user/guards/local-auth.guard.ts +18 -0
  1645. package/src/user/index.ts +103 -0
  1646. package/src/user/passport/auth-strategy/local.strategy.ts +30 -0
  1647. package/src/user/passport/session.serializer.ts +38 -0
  1648. package/src/user/repositories/invitation.repository.ts +36 -0
  1649. package/src/user/repositories/model.repository.ts +33 -0
  1650. package/src/user/repositories/permission.repository.ts +36 -0
  1651. package/src/user/repositories/role.repository.ts +36 -0
  1652. package/src/user/repositories/user.repository.ts +44 -0
  1653. package/src/user/seeds/model.seed-model.ts +130 -0
  1654. package/src/user/seeds/model.seed.ts +24 -0
  1655. package/src/user/seeds/permission.seed-model.ts +36 -0
  1656. package/src/user/seeds/permission.seed.ts +27 -0
  1657. package/src/user/seeds/role.seed-model.ts +19 -0
  1658. package/src/user/seeds/role.seed.ts +24 -0
  1659. package/src/user/seeds/user.seed-model.ts +21 -0
  1660. package/src/user/seeds/user.seed.ts +24 -0
  1661. package/src/user/services/auth.service.ts +59 -0
  1662. package/src/user/services/invitation.service.ts +128 -0
  1663. package/src/user/services/model.service.ts +24 -0
  1664. package/src/user/services/passwordReset.service.ts +144 -0
  1665. package/src/user/services/permission.service.ts +86 -0
  1666. package/src/user/services/role.service.ts +24 -0
  1667. package/src/user/services/user.service.ts +24 -0
  1668. package/src/user/services/validate-account.service.ts +130 -0
  1669. package/src/user/types/action.type.ts +19 -0
  1670. package/src/user/types/index.type.ts +7 -0
  1671. package/src/user/types/model.type.ts +31 -0
  1672. package/src/user/types/permission.type.ts +12 -0
  1673. package/src/user/types/user-provider.type.ts +10 -0
  1674. package/src/user/user.module.ts +93 -0
  1675. package/src/user/utilities/bcryptjs.ts +12 -0
  1676. package/src/user/utilities/hash.ts +10 -0
  1677. package/src/utils/constants/cache.ts +20 -0
  1678. package/src/utils/constants/mock.ts +7 -0
  1679. package/src/utils/constants/nlp.ts +7 -0
  1680. package/src/utils/constants/session-middleware.ts +39 -0
  1681. package/src/utils/constants/session-store.ts +71 -0
  1682. package/src/utils/decorators/cacheable.decorator.ts +53 -0
  1683. package/src/utils/decorators/is-uuid.decorator.ts +18 -0
  1684. package/src/utils/decorators/relation-ref.decorator.ts +28 -0
  1685. package/src/utils/decorators/roles.decorator.ts +11 -0
  1686. package/src/utils/decorators/validate.decorator.ts +37 -0
  1687. package/src/utils/generics/base-orm.controller.ts +44 -0
  1688. package/src/utils/generics/base-orm.repository.ts +489 -0
  1689. package/src/utils/generics/base-orm.seeder.ts +55 -0
  1690. package/src/utils/generics/base-orm.service.ts +137 -0
  1691. package/src/utils/generics/extension.ts +49 -0
  1692. package/src/utils/helpers/URL.ts +20 -0
  1693. package/src/utils/helpers/avatar.ts +65 -0
  1694. package/src/utils/helpers/flatten.ts +39 -0
  1695. package/src/utils/helpers/fs.ts +64 -0
  1696. package/src/utils/helpers/misc.ts +32 -0
  1697. package/src/utils/helpers/safeRandom.ts +28 -0
  1698. package/src/utils/helpers/svg.ts +60 -0
  1699. package/src/utils/helpers/zod-validation.ts +12 -0
  1700. package/src/utils/index.ts +71 -0
  1701. package/src/utils/pipes/populate.pipe.ts +21 -0
  1702. package/src/utils/pipes/sanitize-query.pipe.ts +57 -0
  1703. package/src/utils/pipes/typeorm-search-filter.pipe.ts +503 -0
  1704. package/src/utils/pipes/uuid.pipe.ts +72 -0
  1705. package/src/utils/pipes/zod.pipe.ts +57 -0
  1706. package/src/utils/test/constants.ts +7 -0
  1707. package/src/utils/test/date.ts +11 -0
  1708. package/src/utils/test/defaultValues.ts +23 -0
  1709. package/src/utils/test/dummy/dto/dummy.dto.ts +57 -0
  1710. package/src/utils/test/dummy/dummy.module.ts +18 -0
  1711. package/src/utils/test/dummy/dummy.plugin.ts +47 -0
  1712. package/src/utils/test/dummy/entities/dummy.entity.ts +19 -0
  1713. package/src/utils/test/dummy/repositories/dummy.repository.ts +27 -0
  1714. package/src/utils/test/dummy/services/dummy.service.ts +25 -0
  1715. package/src/utils/test/dummy/settings.ts +7 -0
  1716. package/src/utils/test/errors/messages.ts +8 -0
  1717. package/src/utils/test/fixtures/attachment.ts +56 -0
  1718. package/src/utils/test/fixtures/block.ts +243 -0
  1719. package/src/utils/test/fixtures/botstats.ts +66 -0
  1720. package/src/utils/test/fixtures/category.ts +68 -0
  1721. package/src/utils/test/fixtures/content.ts +209 -0
  1722. package/src/utils/test/fixtures/contenttype.ts +142 -0
  1723. package/src/utils/test/fixtures/contextvar.ts +66 -0
  1724. package/src/utils/test/fixtures/conversation.ts +254 -0
  1725. package/src/utils/test/fixtures/dummy.ts +34 -0
  1726. package/src/utils/test/fixtures/invitation.ts +68 -0
  1727. package/src/utils/test/fixtures/label-group.ts +96 -0
  1728. package/src/utils/test/fixtures/label.ts +88 -0
  1729. package/src/utils/test/fixtures/language.ts +41 -0
  1730. package/src/utils/test/fixtures/menu.ts +181 -0
  1731. package/src/utils/test/fixtures/message.ts +116 -0
  1732. package/src/utils/test/fixtures/metadata.ts +25 -0
  1733. package/src/utils/test/fixtures/migration.ts +30 -0
  1734. package/src/utils/test/fixtures/model.ts +51 -0
  1735. package/src/utils/test/fixtures/nlpentity.ts +61 -0
  1736. package/src/utils/test/fixtures/nlpsample.ts +91 -0
  1737. package/src/utils/test/fixtures/nlpsampleentity.ts +99 -0
  1738. package/src/utils/test/fixtures/nlpvalue.ts +115 -0
  1739. package/src/utils/test/fixtures/permission.ts +88 -0
  1740. package/src/utils/test/fixtures/role.ts +52 -0
  1741. package/src/utils/test/fixtures/setting.ts +134 -0
  1742. package/src/utils/test/fixtures/subscriber.ts +175 -0
  1743. package/src/utils/test/fixtures/translation.ts +29 -0
  1744. package/src/utils/test/fixtures/user.ts +76 -0
  1745. package/src/utils/test/mocks/block.ts +395 -0
  1746. package/src/utils/test/mocks/conversation.ts +66 -0
  1747. package/src/utils/test/mocks/misc.ts +11 -0
  1748. package/src/utils/test/mocks/nlp.ts +55 -0
  1749. package/src/utils/test/mocks/subscriber.ts +44 -0
  1750. package/src/utils/test/postman-collections/hexabot_REST.postman_collection.json +2235 -0
  1751. package/src/utils/test/sort.ts +32 -0
  1752. package/src/utils/test/test.ts +27 -0
  1753. package/src/utils/test/types.ts +38 -0
  1754. package/src/utils/test/utils.ts +311 -0
  1755. package/src/utils/types/dto.types.ts +67 -0
  1756. package/src/utils/types/extension.ts +14 -0
  1757. package/src/utils/types/filter.types.ts +101 -0
  1758. package/src/utils/types/format.types.ts +16 -0
  1759. package/src/utils/types/misc.ts +7 -0
  1760. package/src/websocket/README.md +42 -0
  1761. package/src/websocket/adapters/redis-io.adapter.ts +43 -0
  1762. package/src/websocket/decorators/socket-method.decorator.ts +105 -0
  1763. package/src/websocket/decorators/socket-req.decorator.ts +15 -0
  1764. package/src/websocket/decorators/socket-res.decorator.ts +15 -0
  1765. package/src/websocket/decorators/websocket-exceptions.filter.ts +29 -0
  1766. package/src/websocket/index.ts +33 -0
  1767. package/src/websocket/pipes/io-message.pipe.ts +73 -0
  1768. package/src/websocket/services/socket-event-dispatcher.service.ts +167 -0
  1769. package/src/websocket/storage/socket-event-metadata.storage.ts +44 -0
  1770. package/src/websocket/types.ts +15 -0
  1771. package/src/websocket/utils/gateway-options.ts +85 -0
  1772. package/src/websocket/utils/socket-request.ts +116 -0
  1773. package/src/websocket/utils/socket-response.ts +84 -0
  1774. package/src/websocket/websocket.gateway.ts +422 -0
  1775. package/src/websocket/websocket.module.ts +17 -0
  1776. package/types/event-emitter.d.ts +381 -0
  1777. package/types/express-session.d.ts +30 -0
  1778. package/types/socket.d.ts +15 -0
@@ -0,0 +1,3434 @@
1
+ import { z } from 'zod';
2
+ import { PluginName } from '@/plugins/types';
3
+ import { Message } from '../dto/message.dto';
4
+ import { FileType } from './attachment';
5
+ import { PayloadType } from './button';
6
+ import { QuickReplyType } from './quick-reply';
7
+ export declare enum StdEventType {
8
+ message = "message",
9
+ delivery = "delivery",
10
+ read = "read",
11
+ typing = "typing",
12
+ follow = "follow",
13
+ echo = "echo",
14
+ error = "error",
15
+ unknown = ""
16
+ }
17
+ export declare enum IncomingMessageType {
18
+ message = "message",
19
+ postback = "postback",
20
+ quick_reply = "quick_reply",
21
+ location = "location",
22
+ attachments = "attachments",
23
+ unknown = ""
24
+ }
25
+ export declare const incomingMessageType: z.ZodNativeEnum<typeof IncomingMessageType>;
26
+ export type IncomingMessageTypeLiteral = z.infer<typeof incomingMessageType>;
27
+ export declare enum OutgoingMessageFormat {
28
+ text = "text",
29
+ quickReplies = "quickReplies",
30
+ buttons = "buttons",
31
+ attachment = "attachment",
32
+ list = "list",
33
+ carousel = "carousel",
34
+ system = "system"
35
+ }
36
+ export declare const outgoingMessageFormatSchema: z.ZodNativeEnum<typeof OutgoingMessageFormat>;
37
+ export type OutgoingMessageFormatLiteral = z.infer<typeof outgoingMessageFormatSchema>;
38
+ export declare const payloadTypeSchema: z.ZodNativeEnum<typeof PayloadType>;
39
+ export type PayloadTypeLiteral = z.infer<typeof payloadTypeSchema>;
40
+ export declare const stdOutgoingTextMessageSchema: z.ZodObject<{
41
+ text: z.ZodString;
42
+ }, "strip", z.ZodTypeAny, {
43
+ text: string;
44
+ }, {
45
+ text: string;
46
+ }>;
47
+ export type StdOutgoingTextMessage = z.infer<typeof stdOutgoingTextMessageSchema>;
48
+ export declare const stdOutgoingQuickRepliesMessageSchema: z.ZodObject<{
49
+ text: z.ZodString;
50
+ quickReplies: z.ZodArray<z.ZodObject<{
51
+ content_type: z.ZodNativeEnum<typeof QuickReplyType>;
52
+ title: z.ZodString;
53
+ payload: z.ZodString;
54
+ }, "strip", z.ZodTypeAny, {
55
+ title: string;
56
+ payload: string;
57
+ content_type: QuickReplyType;
58
+ }, {
59
+ title: string;
60
+ payload: string;
61
+ content_type: QuickReplyType;
62
+ }>, "many">;
63
+ }, "strip", z.ZodTypeAny, {
64
+ text: string;
65
+ quickReplies: {
66
+ title: string;
67
+ payload: string;
68
+ content_type: QuickReplyType;
69
+ }[];
70
+ }, {
71
+ text: string;
72
+ quickReplies: {
73
+ title: string;
74
+ payload: string;
75
+ content_type: QuickReplyType;
76
+ }[];
77
+ }>;
78
+ export type StdOutgoingQuickRepliesMessage = z.infer<typeof stdOutgoingQuickRepliesMessageSchema>;
79
+ export declare const stdOutgoingButtonsMessageSchema: z.ZodObject<{
80
+ text: z.ZodString;
81
+ buttons: z.ZodArray<z.ZodUnion<[z.ZodObject<{
82
+ type: z.ZodLiteral<import("./button").ButtonType.postback>;
83
+ title: z.ZodString;
84
+ payload: z.ZodString;
85
+ }, "strip", z.ZodTypeAny, {
86
+ type: import("./button").ButtonType.postback;
87
+ title: string;
88
+ payload: string;
89
+ }, {
90
+ type: import("./button").ButtonType.postback;
91
+ title: string;
92
+ payload: string;
93
+ }>, z.ZodObject<{
94
+ type: z.ZodLiteral<import("./button").ButtonType.web_url>;
95
+ title: z.ZodString;
96
+ url: z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>;
97
+ messenger_extensions: z.ZodOptional<z.ZodBoolean>;
98
+ webview_height_ratio: z.ZodOptional<z.ZodEnum<["compact", "tall", "full"]>>;
99
+ }, "strip", z.ZodTypeAny, {
100
+ type: import("./button").ButtonType.web_url;
101
+ title: string;
102
+ url: string;
103
+ messenger_extensions?: boolean | undefined;
104
+ webview_height_ratio?: "compact" | "tall" | "full" | undefined;
105
+ }, {
106
+ type: import("./button").ButtonType.web_url;
107
+ title: string;
108
+ url: string;
109
+ messenger_extensions?: boolean | undefined;
110
+ webview_height_ratio?: "compact" | "tall" | "full" | undefined;
111
+ }>]>, "many">;
112
+ }, "strip", z.ZodTypeAny, {
113
+ text: string;
114
+ buttons: ({
115
+ type: import("./button").ButtonType.postback;
116
+ title: string;
117
+ payload: string;
118
+ } | {
119
+ type: import("./button").ButtonType.web_url;
120
+ title: string;
121
+ url: string;
122
+ messenger_extensions?: boolean | undefined;
123
+ webview_height_ratio?: "compact" | "tall" | "full" | undefined;
124
+ })[];
125
+ }, {
126
+ text: string;
127
+ buttons: ({
128
+ type: import("./button").ButtonType.postback;
129
+ title: string;
130
+ payload: string;
131
+ } | {
132
+ type: import("./button").ButtonType.web_url;
133
+ title: string;
134
+ url: string;
135
+ messenger_extensions?: boolean | undefined;
136
+ webview_height_ratio?: "compact" | "tall" | "full" | undefined;
137
+ })[];
138
+ }>;
139
+ export type StdOutgoingButtonsMessage = z.infer<typeof stdOutgoingButtonsMessageSchema>;
140
+ export declare const contentElementSchema: z.ZodObject<{
141
+ id: z.ZodString;
142
+ title: z.ZodString;
143
+ }, "strip", z.ZodAny, z.objectOutputType<{
144
+ id: z.ZodString;
145
+ title: z.ZodString;
146
+ }, z.ZodAny, "strip">, z.objectInputType<{
147
+ id: z.ZodString;
148
+ title: z.ZodString;
149
+ }, z.ZodAny, "strip">>;
150
+ export type ContentElement = z.infer<typeof contentElementSchema>;
151
+ export declare const contentPaginationSchema: z.ZodObject<{
152
+ total: z.ZodNumber;
153
+ skip: z.ZodNumber;
154
+ limit: z.ZodNumber;
155
+ }, "strip", z.ZodTypeAny, {
156
+ limit: number;
157
+ total: number;
158
+ skip: number;
159
+ }, {
160
+ limit: number;
161
+ total: number;
162
+ skip: number;
163
+ }>;
164
+ export type ContentPagination = z.infer<typeof contentPaginationSchema>;
165
+ export declare const stdOutgoingListMessageSchema: z.ZodObject<{
166
+ options: z.ZodObject<{
167
+ display: z.ZodEnum<["list", "carousel"]>;
168
+ fields: z.ZodObject<{
169
+ title: z.ZodString;
170
+ subtitle: z.ZodNullable<z.ZodString>;
171
+ image_url: z.ZodNullable<z.ZodString>;
172
+ url: z.ZodOptional<z.ZodString>;
173
+ action_title: z.ZodOptional<z.ZodString>;
174
+ action_payload: z.ZodOptional<z.ZodString>;
175
+ }, "strip", z.ZodTypeAny, {
176
+ title: string;
177
+ subtitle: string | null;
178
+ image_url: string | null;
179
+ url?: string | undefined;
180
+ action_title?: string | undefined;
181
+ action_payload?: string | undefined;
182
+ }, {
183
+ title: string;
184
+ subtitle: string | null;
185
+ image_url: string | null;
186
+ url?: string | undefined;
187
+ action_title?: string | undefined;
188
+ action_payload?: string | undefined;
189
+ }>;
190
+ buttons: z.ZodArray<z.ZodUnion<[z.ZodObject<{
191
+ type: z.ZodLiteral<import("./button").ButtonType.postback>;
192
+ title: z.ZodString;
193
+ payload: z.ZodString;
194
+ }, "strip", z.ZodTypeAny, {
195
+ type: import("./button").ButtonType.postback;
196
+ title: string;
197
+ payload: string;
198
+ }, {
199
+ type: import("./button").ButtonType.postback;
200
+ title: string;
201
+ payload: string;
202
+ }>, z.ZodObject<{
203
+ type: z.ZodLiteral<import("./button").ButtonType.web_url>;
204
+ title: z.ZodString;
205
+ url: z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>;
206
+ messenger_extensions: z.ZodOptional<z.ZodBoolean>;
207
+ webview_height_ratio: z.ZodOptional<z.ZodEnum<["compact", "tall", "full"]>>;
208
+ }, "strip", z.ZodTypeAny, {
209
+ type: import("./button").ButtonType.web_url;
210
+ title: string;
211
+ url: string;
212
+ messenger_extensions?: boolean | undefined;
213
+ webview_height_ratio?: "compact" | "tall" | "full" | undefined;
214
+ }, {
215
+ type: import("./button").ButtonType.web_url;
216
+ title: string;
217
+ url: string;
218
+ messenger_extensions?: boolean | undefined;
219
+ webview_height_ratio?: "compact" | "tall" | "full" | undefined;
220
+ }>]>, "many">;
221
+ limit: z.ZodNumber;
222
+ query: z.ZodOptional<z.ZodAny>;
223
+ entity: z.ZodOptional<z.ZodString>;
224
+ top_element_style: z.ZodOptional<z.ZodEnum<["large", "compact"]>>;
225
+ }, "strip", z.ZodTypeAny, {
226
+ display: "list" | "carousel";
227
+ fields: {
228
+ title: string;
229
+ subtitle: string | null;
230
+ image_url: string | null;
231
+ url?: string | undefined;
232
+ action_title?: string | undefined;
233
+ action_payload?: string | undefined;
234
+ };
235
+ buttons: ({
236
+ type: import("./button").ButtonType.postback;
237
+ title: string;
238
+ payload: string;
239
+ } | {
240
+ type: import("./button").ButtonType.web_url;
241
+ title: string;
242
+ url: string;
243
+ messenger_extensions?: boolean | undefined;
244
+ webview_height_ratio?: "compact" | "tall" | "full" | undefined;
245
+ })[];
246
+ limit: number;
247
+ query?: any;
248
+ entity?: string | undefined;
249
+ top_element_style?: "compact" | "large" | undefined;
250
+ }, {
251
+ display: "list" | "carousel";
252
+ fields: {
253
+ title: string;
254
+ subtitle: string | null;
255
+ image_url: string | null;
256
+ url?: string | undefined;
257
+ action_title?: string | undefined;
258
+ action_payload?: string | undefined;
259
+ };
260
+ buttons: ({
261
+ type: import("./button").ButtonType.postback;
262
+ title: string;
263
+ payload: string;
264
+ } | {
265
+ type: import("./button").ButtonType.web_url;
266
+ title: string;
267
+ url: string;
268
+ messenger_extensions?: boolean | undefined;
269
+ webview_height_ratio?: "compact" | "tall" | "full" | undefined;
270
+ })[];
271
+ limit: number;
272
+ query?: any;
273
+ entity?: string | undefined;
274
+ top_element_style?: "compact" | "large" | undefined;
275
+ }>;
276
+ elements: z.ZodArray<z.ZodObject<{
277
+ id: z.ZodString;
278
+ title: z.ZodString;
279
+ }, "strip", z.ZodAny, z.objectOutputType<{
280
+ id: z.ZodString;
281
+ title: z.ZodString;
282
+ }, z.ZodAny, "strip">, z.objectInputType<{
283
+ id: z.ZodString;
284
+ title: z.ZodString;
285
+ }, z.ZodAny, "strip">>, "many">;
286
+ pagination: z.ZodObject<{
287
+ total: z.ZodNumber;
288
+ skip: z.ZodNumber;
289
+ limit: z.ZodNumber;
290
+ }, "strip", z.ZodTypeAny, {
291
+ limit: number;
292
+ total: number;
293
+ skip: number;
294
+ }, {
295
+ limit: number;
296
+ total: number;
297
+ skip: number;
298
+ }>;
299
+ }, "strip", z.ZodTypeAny, {
300
+ options: {
301
+ display: "list" | "carousel";
302
+ fields: {
303
+ title: string;
304
+ subtitle: string | null;
305
+ image_url: string | null;
306
+ url?: string | undefined;
307
+ action_title?: string | undefined;
308
+ action_payload?: string | undefined;
309
+ };
310
+ buttons: ({
311
+ type: import("./button").ButtonType.postback;
312
+ title: string;
313
+ payload: string;
314
+ } | {
315
+ type: import("./button").ButtonType.web_url;
316
+ title: string;
317
+ url: string;
318
+ messenger_extensions?: boolean | undefined;
319
+ webview_height_ratio?: "compact" | "tall" | "full" | undefined;
320
+ })[];
321
+ limit: number;
322
+ query?: any;
323
+ entity?: string | undefined;
324
+ top_element_style?: "compact" | "large" | undefined;
325
+ };
326
+ elements: z.objectOutputType<{
327
+ id: z.ZodString;
328
+ title: z.ZodString;
329
+ }, z.ZodAny, "strip">[];
330
+ pagination: {
331
+ limit: number;
332
+ total: number;
333
+ skip: number;
334
+ };
335
+ }, {
336
+ options: {
337
+ display: "list" | "carousel";
338
+ fields: {
339
+ title: string;
340
+ subtitle: string | null;
341
+ image_url: string | null;
342
+ url?: string | undefined;
343
+ action_title?: string | undefined;
344
+ action_payload?: string | undefined;
345
+ };
346
+ buttons: ({
347
+ type: import("./button").ButtonType.postback;
348
+ title: string;
349
+ payload: string;
350
+ } | {
351
+ type: import("./button").ButtonType.web_url;
352
+ title: string;
353
+ url: string;
354
+ messenger_extensions?: boolean | undefined;
355
+ webview_height_ratio?: "compact" | "tall" | "full" | undefined;
356
+ })[];
357
+ limit: number;
358
+ query?: any;
359
+ entity?: string | undefined;
360
+ top_element_style?: "compact" | "large" | undefined;
361
+ };
362
+ elements: z.objectInputType<{
363
+ id: z.ZodString;
364
+ title: z.ZodString;
365
+ }, z.ZodAny, "strip">[];
366
+ pagination: {
367
+ limit: number;
368
+ total: number;
369
+ skip: number;
370
+ };
371
+ }>;
372
+ export type StdOutgoingListMessage = z.infer<typeof stdOutgoingListMessageSchema>;
373
+ export declare const stdOutgoingAttachmentMessageSchema: z.ZodObject<{
374
+ attachment: z.ZodObject<{
375
+ type: z.ZodNativeEnum<typeof FileType>;
376
+ payload: z.ZodUnion<[z.ZodObject<{
377
+ id: z.ZodNullable<z.ZodString>;
378
+ }, "strip", z.ZodTypeAny, {
379
+ id: string | null;
380
+ }, {
381
+ id: string | null;
382
+ }>, z.ZodObject<{
383
+ url: z.ZodString;
384
+ }, "strip", z.ZodTypeAny, {
385
+ url: string;
386
+ }, {
387
+ url: string;
388
+ }>]>;
389
+ }, "strip", z.ZodTypeAny, {
390
+ type: FileType;
391
+ payload: {
392
+ id: string | null;
393
+ } | {
394
+ url: string;
395
+ };
396
+ }, {
397
+ type: FileType;
398
+ payload: {
399
+ id: string | null;
400
+ } | {
401
+ url: string;
402
+ };
403
+ }>;
404
+ quickReplies: z.ZodOptional<z.ZodArray<z.ZodObject<{
405
+ content_type: z.ZodNativeEnum<typeof QuickReplyType>;
406
+ title: z.ZodString;
407
+ payload: z.ZodString;
408
+ }, "strip", z.ZodTypeAny, {
409
+ title: string;
410
+ payload: string;
411
+ content_type: QuickReplyType;
412
+ }, {
413
+ title: string;
414
+ payload: string;
415
+ content_type: QuickReplyType;
416
+ }>, "many">>;
417
+ }, "strip", z.ZodTypeAny, {
418
+ attachment: {
419
+ type: FileType;
420
+ payload: {
421
+ id: string | null;
422
+ } | {
423
+ url: string;
424
+ };
425
+ };
426
+ quickReplies?: {
427
+ title: string;
428
+ payload: string;
429
+ content_type: QuickReplyType;
430
+ }[] | undefined;
431
+ }, {
432
+ attachment: {
433
+ type: FileType;
434
+ payload: {
435
+ id: string | null;
436
+ } | {
437
+ url: string;
438
+ };
439
+ };
440
+ quickReplies?: {
441
+ title: string;
442
+ payload: string;
443
+ content_type: QuickReplyType;
444
+ }[] | undefined;
445
+ }>;
446
+ export type StdOutgoingAttachmentMessage = z.infer<typeof stdOutgoingAttachmentMessageSchema>;
447
+ export declare const stdOutgoingSystemMessageSchema: z.ZodObject<{
448
+ outcome: z.ZodOptional<z.ZodString>;
449
+ data: z.ZodOptional<z.ZodAny>;
450
+ }, "strip", z.ZodTypeAny, {
451
+ outcome?: string | undefined;
452
+ data?: any;
453
+ }, {
454
+ outcome?: string | undefined;
455
+ data?: any;
456
+ }>;
457
+ export type StdOutgoingSystemMessage = z.infer<typeof stdOutgoingSystemMessageSchema>;
458
+ export declare const pluginNameSchema: z.ZodType<PluginName>;
459
+ export declare const stdPluginMessageSchema: z.ZodObject<{
460
+ plugin: z.ZodType<`${string}-plugin`, z.ZodTypeDef, `${string}-plugin`>;
461
+ args: z.ZodRecord<z.ZodString, z.ZodAny>;
462
+ }, "strip", z.ZodTypeAny, {
463
+ plugin: `${string}-plugin`;
464
+ args: Record<string, any>;
465
+ }, {
466
+ plugin: `${string}-plugin`;
467
+ args: Record<string, any>;
468
+ }>;
469
+ export type StdPluginMessage = z.infer<typeof stdPluginMessageSchema>;
470
+ export declare const blockMessageSchema: z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodObject<{
471
+ text: z.ZodString;
472
+ }, "strip", z.ZodTypeAny, {
473
+ text: string;
474
+ }, {
475
+ text: string;
476
+ }>, z.ZodObject<{
477
+ text: z.ZodString;
478
+ quickReplies: z.ZodArray<z.ZodObject<{
479
+ content_type: z.ZodNativeEnum<typeof QuickReplyType>;
480
+ title: z.ZodString;
481
+ payload: z.ZodString;
482
+ }, "strip", z.ZodTypeAny, {
483
+ title: string;
484
+ payload: string;
485
+ content_type: QuickReplyType;
486
+ }, {
487
+ title: string;
488
+ payload: string;
489
+ content_type: QuickReplyType;
490
+ }>, "many">;
491
+ }, "strip", z.ZodTypeAny, {
492
+ text: string;
493
+ quickReplies: {
494
+ title: string;
495
+ payload: string;
496
+ content_type: QuickReplyType;
497
+ }[];
498
+ }, {
499
+ text: string;
500
+ quickReplies: {
501
+ title: string;
502
+ payload: string;
503
+ content_type: QuickReplyType;
504
+ }[];
505
+ }>, z.ZodObject<{
506
+ text: z.ZodString;
507
+ buttons: z.ZodArray<z.ZodUnion<[z.ZodObject<{
508
+ type: z.ZodLiteral<import("./button").ButtonType.postback>;
509
+ title: z.ZodString;
510
+ payload: z.ZodString;
511
+ }, "strip", z.ZodTypeAny, {
512
+ type: import("./button").ButtonType.postback;
513
+ title: string;
514
+ payload: string;
515
+ }, {
516
+ type: import("./button").ButtonType.postback;
517
+ title: string;
518
+ payload: string;
519
+ }>, z.ZodObject<{
520
+ type: z.ZodLiteral<import("./button").ButtonType.web_url>;
521
+ title: z.ZodString;
522
+ url: z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>;
523
+ messenger_extensions: z.ZodOptional<z.ZodBoolean>;
524
+ webview_height_ratio: z.ZodOptional<z.ZodEnum<["compact", "tall", "full"]>>;
525
+ }, "strip", z.ZodTypeAny, {
526
+ type: import("./button").ButtonType.web_url;
527
+ title: string;
528
+ url: string;
529
+ messenger_extensions?: boolean | undefined;
530
+ webview_height_ratio?: "compact" | "tall" | "full" | undefined;
531
+ }, {
532
+ type: import("./button").ButtonType.web_url;
533
+ title: string;
534
+ url: string;
535
+ messenger_extensions?: boolean | undefined;
536
+ webview_height_ratio?: "compact" | "tall" | "full" | undefined;
537
+ }>]>, "many">;
538
+ }, "strip", z.ZodTypeAny, {
539
+ text: string;
540
+ buttons: ({
541
+ type: import("./button").ButtonType.postback;
542
+ title: string;
543
+ payload: string;
544
+ } | {
545
+ type: import("./button").ButtonType.web_url;
546
+ title: string;
547
+ url: string;
548
+ messenger_extensions?: boolean | undefined;
549
+ webview_height_ratio?: "compact" | "tall" | "full" | undefined;
550
+ })[];
551
+ }, {
552
+ text: string;
553
+ buttons: ({
554
+ type: import("./button").ButtonType.postback;
555
+ title: string;
556
+ payload: string;
557
+ } | {
558
+ type: import("./button").ButtonType.web_url;
559
+ title: string;
560
+ url: string;
561
+ messenger_extensions?: boolean | undefined;
562
+ webview_height_ratio?: "compact" | "tall" | "full" | undefined;
563
+ })[];
564
+ }>, z.ZodObject<{
565
+ options: z.ZodObject<{
566
+ display: z.ZodEnum<["list", "carousel"]>;
567
+ fields: z.ZodObject<{
568
+ title: z.ZodString;
569
+ subtitle: z.ZodNullable<z.ZodString>;
570
+ image_url: z.ZodNullable<z.ZodString>;
571
+ url: z.ZodOptional<z.ZodString>;
572
+ action_title: z.ZodOptional<z.ZodString>;
573
+ action_payload: z.ZodOptional<z.ZodString>;
574
+ }, "strip", z.ZodTypeAny, {
575
+ title: string;
576
+ subtitle: string | null;
577
+ image_url: string | null;
578
+ url?: string | undefined;
579
+ action_title?: string | undefined;
580
+ action_payload?: string | undefined;
581
+ }, {
582
+ title: string;
583
+ subtitle: string | null;
584
+ image_url: string | null;
585
+ url?: string | undefined;
586
+ action_title?: string | undefined;
587
+ action_payload?: string | undefined;
588
+ }>;
589
+ buttons: z.ZodArray<z.ZodUnion<[z.ZodObject<{
590
+ type: z.ZodLiteral<import("./button").ButtonType.postback>;
591
+ title: z.ZodString;
592
+ payload: z.ZodString;
593
+ }, "strip", z.ZodTypeAny, {
594
+ type: import("./button").ButtonType.postback;
595
+ title: string;
596
+ payload: string;
597
+ }, {
598
+ type: import("./button").ButtonType.postback;
599
+ title: string;
600
+ payload: string;
601
+ }>, z.ZodObject<{
602
+ type: z.ZodLiteral<import("./button").ButtonType.web_url>;
603
+ title: z.ZodString;
604
+ url: z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>;
605
+ messenger_extensions: z.ZodOptional<z.ZodBoolean>;
606
+ webview_height_ratio: z.ZodOptional<z.ZodEnum<["compact", "tall", "full"]>>;
607
+ }, "strip", z.ZodTypeAny, {
608
+ type: import("./button").ButtonType.web_url;
609
+ title: string;
610
+ url: string;
611
+ messenger_extensions?: boolean | undefined;
612
+ webview_height_ratio?: "compact" | "tall" | "full" | undefined;
613
+ }, {
614
+ type: import("./button").ButtonType.web_url;
615
+ title: string;
616
+ url: string;
617
+ messenger_extensions?: boolean | undefined;
618
+ webview_height_ratio?: "compact" | "tall" | "full" | undefined;
619
+ }>]>, "many">;
620
+ limit: z.ZodNumber;
621
+ query: z.ZodOptional<z.ZodAny>;
622
+ entity: z.ZodOptional<z.ZodString>;
623
+ top_element_style: z.ZodOptional<z.ZodEnum<["large", "compact"]>>;
624
+ }, "strip", z.ZodTypeAny, {
625
+ display: "list" | "carousel";
626
+ fields: {
627
+ title: string;
628
+ subtitle: string | null;
629
+ image_url: string | null;
630
+ url?: string | undefined;
631
+ action_title?: string | undefined;
632
+ action_payload?: string | undefined;
633
+ };
634
+ buttons: ({
635
+ type: import("./button").ButtonType.postback;
636
+ title: string;
637
+ payload: string;
638
+ } | {
639
+ type: import("./button").ButtonType.web_url;
640
+ title: string;
641
+ url: string;
642
+ messenger_extensions?: boolean | undefined;
643
+ webview_height_ratio?: "compact" | "tall" | "full" | undefined;
644
+ })[];
645
+ limit: number;
646
+ query?: any;
647
+ entity?: string | undefined;
648
+ top_element_style?: "compact" | "large" | undefined;
649
+ }, {
650
+ display: "list" | "carousel";
651
+ fields: {
652
+ title: string;
653
+ subtitle: string | null;
654
+ image_url: string | null;
655
+ url?: string | undefined;
656
+ action_title?: string | undefined;
657
+ action_payload?: string | undefined;
658
+ };
659
+ buttons: ({
660
+ type: import("./button").ButtonType.postback;
661
+ title: string;
662
+ payload: string;
663
+ } | {
664
+ type: import("./button").ButtonType.web_url;
665
+ title: string;
666
+ url: string;
667
+ messenger_extensions?: boolean | undefined;
668
+ webview_height_ratio?: "compact" | "tall" | "full" | undefined;
669
+ })[];
670
+ limit: number;
671
+ query?: any;
672
+ entity?: string | undefined;
673
+ top_element_style?: "compact" | "large" | undefined;
674
+ }>;
675
+ elements: z.ZodArray<z.ZodObject<{
676
+ id: z.ZodString;
677
+ title: z.ZodString;
678
+ }, "strip", z.ZodAny, z.objectOutputType<{
679
+ id: z.ZodString;
680
+ title: z.ZodString;
681
+ }, z.ZodAny, "strip">, z.objectInputType<{
682
+ id: z.ZodString;
683
+ title: z.ZodString;
684
+ }, z.ZodAny, "strip">>, "many">;
685
+ pagination: z.ZodObject<{
686
+ total: z.ZodNumber;
687
+ skip: z.ZodNumber;
688
+ limit: z.ZodNumber;
689
+ }, "strip", z.ZodTypeAny, {
690
+ limit: number;
691
+ total: number;
692
+ skip: number;
693
+ }, {
694
+ limit: number;
695
+ total: number;
696
+ skip: number;
697
+ }>;
698
+ }, "strip", z.ZodTypeAny, {
699
+ options: {
700
+ display: "list" | "carousel";
701
+ fields: {
702
+ title: string;
703
+ subtitle: string | null;
704
+ image_url: string | null;
705
+ url?: string | undefined;
706
+ action_title?: string | undefined;
707
+ action_payload?: string | undefined;
708
+ };
709
+ buttons: ({
710
+ type: import("./button").ButtonType.postback;
711
+ title: string;
712
+ payload: string;
713
+ } | {
714
+ type: import("./button").ButtonType.web_url;
715
+ title: string;
716
+ url: string;
717
+ messenger_extensions?: boolean | undefined;
718
+ webview_height_ratio?: "compact" | "tall" | "full" | undefined;
719
+ })[];
720
+ limit: number;
721
+ query?: any;
722
+ entity?: string | undefined;
723
+ top_element_style?: "compact" | "large" | undefined;
724
+ };
725
+ elements: z.objectOutputType<{
726
+ id: z.ZodString;
727
+ title: z.ZodString;
728
+ }, z.ZodAny, "strip">[];
729
+ pagination: {
730
+ limit: number;
731
+ total: number;
732
+ skip: number;
733
+ };
734
+ }, {
735
+ options: {
736
+ display: "list" | "carousel";
737
+ fields: {
738
+ title: string;
739
+ subtitle: string | null;
740
+ image_url: string | null;
741
+ url?: string | undefined;
742
+ action_title?: string | undefined;
743
+ action_payload?: string | undefined;
744
+ };
745
+ buttons: ({
746
+ type: import("./button").ButtonType.postback;
747
+ title: string;
748
+ payload: string;
749
+ } | {
750
+ type: import("./button").ButtonType.web_url;
751
+ title: string;
752
+ url: string;
753
+ messenger_extensions?: boolean | undefined;
754
+ webview_height_ratio?: "compact" | "tall" | "full" | undefined;
755
+ })[];
756
+ limit: number;
757
+ query?: any;
758
+ entity?: string | undefined;
759
+ top_element_style?: "compact" | "large" | undefined;
760
+ };
761
+ elements: z.objectInputType<{
762
+ id: z.ZodString;
763
+ title: z.ZodString;
764
+ }, z.ZodAny, "strip">[];
765
+ pagination: {
766
+ limit: number;
767
+ total: number;
768
+ skip: number;
769
+ };
770
+ }>, z.ZodObject<{
771
+ attachment: z.ZodObject<{
772
+ type: z.ZodNativeEnum<typeof FileType>;
773
+ payload: z.ZodUnion<[z.ZodObject<{
774
+ id: z.ZodNullable<z.ZodString>;
775
+ }, "strip", z.ZodTypeAny, {
776
+ id: string | null;
777
+ }, {
778
+ id: string | null;
779
+ }>, z.ZodObject<{
780
+ url: z.ZodString;
781
+ }, "strip", z.ZodTypeAny, {
782
+ url: string;
783
+ }, {
784
+ url: string;
785
+ }>]>;
786
+ }, "strip", z.ZodTypeAny, {
787
+ type: FileType;
788
+ payload: {
789
+ id: string | null;
790
+ } | {
791
+ url: string;
792
+ };
793
+ }, {
794
+ type: FileType;
795
+ payload: {
796
+ id: string | null;
797
+ } | {
798
+ url: string;
799
+ };
800
+ }>;
801
+ quickReplies: z.ZodOptional<z.ZodArray<z.ZodObject<{
802
+ content_type: z.ZodNativeEnum<typeof QuickReplyType>;
803
+ title: z.ZodString;
804
+ payload: z.ZodString;
805
+ }, "strip", z.ZodTypeAny, {
806
+ title: string;
807
+ payload: string;
808
+ content_type: QuickReplyType;
809
+ }, {
810
+ title: string;
811
+ payload: string;
812
+ content_type: QuickReplyType;
813
+ }>, "many">>;
814
+ }, "strip", z.ZodTypeAny, {
815
+ attachment: {
816
+ type: FileType;
817
+ payload: {
818
+ id: string | null;
819
+ } | {
820
+ url: string;
821
+ };
822
+ };
823
+ quickReplies?: {
824
+ title: string;
825
+ payload: string;
826
+ content_type: QuickReplyType;
827
+ }[] | undefined;
828
+ }, {
829
+ attachment: {
830
+ type: FileType;
831
+ payload: {
832
+ id: string | null;
833
+ } | {
834
+ url: string;
835
+ };
836
+ };
837
+ quickReplies?: {
838
+ title: string;
839
+ payload: string;
840
+ content_type: QuickReplyType;
841
+ }[] | undefined;
842
+ }>, z.ZodObject<{
843
+ plugin: z.ZodType<`${string}-plugin`, z.ZodTypeDef, `${string}-plugin`>;
844
+ args: z.ZodRecord<z.ZodString, z.ZodAny>;
845
+ }, "strip", z.ZodTypeAny, {
846
+ plugin: `${string}-plugin`;
847
+ args: Record<string, any>;
848
+ }, {
849
+ plugin: `${string}-plugin`;
850
+ args: Record<string, any>;
851
+ }>]>;
852
+ export type BlockMessage = z.infer<typeof blockMessageSchema>;
853
+ export declare const StdOutgoingMessageSchema: z.ZodUnion<[z.ZodObject<{
854
+ text: z.ZodString;
855
+ }, "strip", z.ZodTypeAny, {
856
+ text: string;
857
+ }, {
858
+ text: string;
859
+ }>, z.ZodObject<{
860
+ text: z.ZodString;
861
+ quickReplies: z.ZodArray<z.ZodObject<{
862
+ content_type: z.ZodNativeEnum<typeof QuickReplyType>;
863
+ title: z.ZodString;
864
+ payload: z.ZodString;
865
+ }, "strip", z.ZodTypeAny, {
866
+ title: string;
867
+ payload: string;
868
+ content_type: QuickReplyType;
869
+ }, {
870
+ title: string;
871
+ payload: string;
872
+ content_type: QuickReplyType;
873
+ }>, "many">;
874
+ }, "strip", z.ZodTypeAny, {
875
+ text: string;
876
+ quickReplies: {
877
+ title: string;
878
+ payload: string;
879
+ content_type: QuickReplyType;
880
+ }[];
881
+ }, {
882
+ text: string;
883
+ quickReplies: {
884
+ title: string;
885
+ payload: string;
886
+ content_type: QuickReplyType;
887
+ }[];
888
+ }>, z.ZodObject<{
889
+ text: z.ZodString;
890
+ buttons: z.ZodArray<z.ZodUnion<[z.ZodObject<{
891
+ type: z.ZodLiteral<import("./button").ButtonType.postback>;
892
+ title: z.ZodString;
893
+ payload: z.ZodString;
894
+ }, "strip", z.ZodTypeAny, {
895
+ type: import("./button").ButtonType.postback;
896
+ title: string;
897
+ payload: string;
898
+ }, {
899
+ type: import("./button").ButtonType.postback;
900
+ title: string;
901
+ payload: string;
902
+ }>, z.ZodObject<{
903
+ type: z.ZodLiteral<import("./button").ButtonType.web_url>;
904
+ title: z.ZodString;
905
+ url: z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>;
906
+ messenger_extensions: z.ZodOptional<z.ZodBoolean>;
907
+ webview_height_ratio: z.ZodOptional<z.ZodEnum<["compact", "tall", "full"]>>;
908
+ }, "strip", z.ZodTypeAny, {
909
+ type: import("./button").ButtonType.web_url;
910
+ title: string;
911
+ url: string;
912
+ messenger_extensions?: boolean | undefined;
913
+ webview_height_ratio?: "compact" | "tall" | "full" | undefined;
914
+ }, {
915
+ type: import("./button").ButtonType.web_url;
916
+ title: string;
917
+ url: string;
918
+ messenger_extensions?: boolean | undefined;
919
+ webview_height_ratio?: "compact" | "tall" | "full" | undefined;
920
+ }>]>, "many">;
921
+ }, "strip", z.ZodTypeAny, {
922
+ text: string;
923
+ buttons: ({
924
+ type: import("./button").ButtonType.postback;
925
+ title: string;
926
+ payload: string;
927
+ } | {
928
+ type: import("./button").ButtonType.web_url;
929
+ title: string;
930
+ url: string;
931
+ messenger_extensions?: boolean | undefined;
932
+ webview_height_ratio?: "compact" | "tall" | "full" | undefined;
933
+ })[];
934
+ }, {
935
+ text: string;
936
+ buttons: ({
937
+ type: import("./button").ButtonType.postback;
938
+ title: string;
939
+ payload: string;
940
+ } | {
941
+ type: import("./button").ButtonType.web_url;
942
+ title: string;
943
+ url: string;
944
+ messenger_extensions?: boolean | undefined;
945
+ webview_height_ratio?: "compact" | "tall" | "full" | undefined;
946
+ })[];
947
+ }>, z.ZodObject<{
948
+ options: z.ZodObject<{
949
+ display: z.ZodEnum<["list", "carousel"]>;
950
+ fields: z.ZodObject<{
951
+ title: z.ZodString;
952
+ subtitle: z.ZodNullable<z.ZodString>;
953
+ image_url: z.ZodNullable<z.ZodString>;
954
+ url: z.ZodOptional<z.ZodString>;
955
+ action_title: z.ZodOptional<z.ZodString>;
956
+ action_payload: z.ZodOptional<z.ZodString>;
957
+ }, "strip", z.ZodTypeAny, {
958
+ title: string;
959
+ subtitle: string | null;
960
+ image_url: string | null;
961
+ url?: string | undefined;
962
+ action_title?: string | undefined;
963
+ action_payload?: string | undefined;
964
+ }, {
965
+ title: string;
966
+ subtitle: string | null;
967
+ image_url: string | null;
968
+ url?: string | undefined;
969
+ action_title?: string | undefined;
970
+ action_payload?: string | undefined;
971
+ }>;
972
+ buttons: z.ZodArray<z.ZodUnion<[z.ZodObject<{
973
+ type: z.ZodLiteral<import("./button").ButtonType.postback>;
974
+ title: z.ZodString;
975
+ payload: z.ZodString;
976
+ }, "strip", z.ZodTypeAny, {
977
+ type: import("./button").ButtonType.postback;
978
+ title: string;
979
+ payload: string;
980
+ }, {
981
+ type: import("./button").ButtonType.postback;
982
+ title: string;
983
+ payload: string;
984
+ }>, z.ZodObject<{
985
+ type: z.ZodLiteral<import("./button").ButtonType.web_url>;
986
+ title: z.ZodString;
987
+ url: z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>;
988
+ messenger_extensions: z.ZodOptional<z.ZodBoolean>;
989
+ webview_height_ratio: z.ZodOptional<z.ZodEnum<["compact", "tall", "full"]>>;
990
+ }, "strip", z.ZodTypeAny, {
991
+ type: import("./button").ButtonType.web_url;
992
+ title: string;
993
+ url: string;
994
+ messenger_extensions?: boolean | undefined;
995
+ webview_height_ratio?: "compact" | "tall" | "full" | undefined;
996
+ }, {
997
+ type: import("./button").ButtonType.web_url;
998
+ title: string;
999
+ url: string;
1000
+ messenger_extensions?: boolean | undefined;
1001
+ webview_height_ratio?: "compact" | "tall" | "full" | undefined;
1002
+ }>]>, "many">;
1003
+ limit: z.ZodNumber;
1004
+ query: z.ZodOptional<z.ZodAny>;
1005
+ entity: z.ZodOptional<z.ZodString>;
1006
+ top_element_style: z.ZodOptional<z.ZodEnum<["large", "compact"]>>;
1007
+ }, "strip", z.ZodTypeAny, {
1008
+ display: "list" | "carousel";
1009
+ fields: {
1010
+ title: string;
1011
+ subtitle: string | null;
1012
+ image_url: string | null;
1013
+ url?: string | undefined;
1014
+ action_title?: string | undefined;
1015
+ action_payload?: string | undefined;
1016
+ };
1017
+ buttons: ({
1018
+ type: import("./button").ButtonType.postback;
1019
+ title: string;
1020
+ payload: string;
1021
+ } | {
1022
+ type: import("./button").ButtonType.web_url;
1023
+ title: string;
1024
+ url: string;
1025
+ messenger_extensions?: boolean | undefined;
1026
+ webview_height_ratio?: "compact" | "tall" | "full" | undefined;
1027
+ })[];
1028
+ limit: number;
1029
+ query?: any;
1030
+ entity?: string | undefined;
1031
+ top_element_style?: "compact" | "large" | undefined;
1032
+ }, {
1033
+ display: "list" | "carousel";
1034
+ fields: {
1035
+ title: string;
1036
+ subtitle: string | null;
1037
+ image_url: string | null;
1038
+ url?: string | undefined;
1039
+ action_title?: string | undefined;
1040
+ action_payload?: string | undefined;
1041
+ };
1042
+ buttons: ({
1043
+ type: import("./button").ButtonType.postback;
1044
+ title: string;
1045
+ payload: string;
1046
+ } | {
1047
+ type: import("./button").ButtonType.web_url;
1048
+ title: string;
1049
+ url: string;
1050
+ messenger_extensions?: boolean | undefined;
1051
+ webview_height_ratio?: "compact" | "tall" | "full" | undefined;
1052
+ })[];
1053
+ limit: number;
1054
+ query?: any;
1055
+ entity?: string | undefined;
1056
+ top_element_style?: "compact" | "large" | undefined;
1057
+ }>;
1058
+ elements: z.ZodArray<z.ZodObject<{
1059
+ id: z.ZodString;
1060
+ title: z.ZodString;
1061
+ }, "strip", z.ZodAny, z.objectOutputType<{
1062
+ id: z.ZodString;
1063
+ title: z.ZodString;
1064
+ }, z.ZodAny, "strip">, z.objectInputType<{
1065
+ id: z.ZodString;
1066
+ title: z.ZodString;
1067
+ }, z.ZodAny, "strip">>, "many">;
1068
+ pagination: z.ZodObject<{
1069
+ total: z.ZodNumber;
1070
+ skip: z.ZodNumber;
1071
+ limit: z.ZodNumber;
1072
+ }, "strip", z.ZodTypeAny, {
1073
+ limit: number;
1074
+ total: number;
1075
+ skip: number;
1076
+ }, {
1077
+ limit: number;
1078
+ total: number;
1079
+ skip: number;
1080
+ }>;
1081
+ }, "strip", z.ZodTypeAny, {
1082
+ options: {
1083
+ display: "list" | "carousel";
1084
+ fields: {
1085
+ title: string;
1086
+ subtitle: string | null;
1087
+ image_url: string | null;
1088
+ url?: string | undefined;
1089
+ action_title?: string | undefined;
1090
+ action_payload?: string | undefined;
1091
+ };
1092
+ buttons: ({
1093
+ type: import("./button").ButtonType.postback;
1094
+ title: string;
1095
+ payload: string;
1096
+ } | {
1097
+ type: import("./button").ButtonType.web_url;
1098
+ title: string;
1099
+ url: string;
1100
+ messenger_extensions?: boolean | undefined;
1101
+ webview_height_ratio?: "compact" | "tall" | "full" | undefined;
1102
+ })[];
1103
+ limit: number;
1104
+ query?: any;
1105
+ entity?: string | undefined;
1106
+ top_element_style?: "compact" | "large" | undefined;
1107
+ };
1108
+ elements: z.objectOutputType<{
1109
+ id: z.ZodString;
1110
+ title: z.ZodString;
1111
+ }, z.ZodAny, "strip">[];
1112
+ pagination: {
1113
+ limit: number;
1114
+ total: number;
1115
+ skip: number;
1116
+ };
1117
+ }, {
1118
+ options: {
1119
+ display: "list" | "carousel";
1120
+ fields: {
1121
+ title: string;
1122
+ subtitle: string | null;
1123
+ image_url: string | null;
1124
+ url?: string | undefined;
1125
+ action_title?: string | undefined;
1126
+ action_payload?: string | undefined;
1127
+ };
1128
+ buttons: ({
1129
+ type: import("./button").ButtonType.postback;
1130
+ title: string;
1131
+ payload: string;
1132
+ } | {
1133
+ type: import("./button").ButtonType.web_url;
1134
+ title: string;
1135
+ url: string;
1136
+ messenger_extensions?: boolean | undefined;
1137
+ webview_height_ratio?: "compact" | "tall" | "full" | undefined;
1138
+ })[];
1139
+ limit: number;
1140
+ query?: any;
1141
+ entity?: string | undefined;
1142
+ top_element_style?: "compact" | "large" | undefined;
1143
+ };
1144
+ elements: z.objectInputType<{
1145
+ id: z.ZodString;
1146
+ title: z.ZodString;
1147
+ }, z.ZodAny, "strip">[];
1148
+ pagination: {
1149
+ limit: number;
1150
+ total: number;
1151
+ skip: number;
1152
+ };
1153
+ }>, z.ZodObject<{
1154
+ attachment: z.ZodObject<{
1155
+ type: z.ZodNativeEnum<typeof FileType>;
1156
+ payload: z.ZodUnion<[z.ZodObject<{
1157
+ id: z.ZodNullable<z.ZodString>;
1158
+ }, "strip", z.ZodTypeAny, {
1159
+ id: string | null;
1160
+ }, {
1161
+ id: string | null;
1162
+ }>, z.ZodObject<{
1163
+ url: z.ZodString;
1164
+ }, "strip", z.ZodTypeAny, {
1165
+ url: string;
1166
+ }, {
1167
+ url: string;
1168
+ }>]>;
1169
+ }, "strip", z.ZodTypeAny, {
1170
+ type: FileType;
1171
+ payload: {
1172
+ id: string | null;
1173
+ } | {
1174
+ url: string;
1175
+ };
1176
+ }, {
1177
+ type: FileType;
1178
+ payload: {
1179
+ id: string | null;
1180
+ } | {
1181
+ url: string;
1182
+ };
1183
+ }>;
1184
+ quickReplies: z.ZodOptional<z.ZodArray<z.ZodObject<{
1185
+ content_type: z.ZodNativeEnum<typeof QuickReplyType>;
1186
+ title: z.ZodString;
1187
+ payload: z.ZodString;
1188
+ }, "strip", z.ZodTypeAny, {
1189
+ title: string;
1190
+ payload: string;
1191
+ content_type: QuickReplyType;
1192
+ }, {
1193
+ title: string;
1194
+ payload: string;
1195
+ content_type: QuickReplyType;
1196
+ }>, "many">>;
1197
+ }, "strip", z.ZodTypeAny, {
1198
+ attachment: {
1199
+ type: FileType;
1200
+ payload: {
1201
+ id: string | null;
1202
+ } | {
1203
+ url: string;
1204
+ };
1205
+ };
1206
+ quickReplies?: {
1207
+ title: string;
1208
+ payload: string;
1209
+ content_type: QuickReplyType;
1210
+ }[] | undefined;
1211
+ }, {
1212
+ attachment: {
1213
+ type: FileType;
1214
+ payload: {
1215
+ id: string | null;
1216
+ } | {
1217
+ url: string;
1218
+ };
1219
+ };
1220
+ quickReplies?: {
1221
+ title: string;
1222
+ payload: string;
1223
+ content_type: QuickReplyType;
1224
+ }[] | undefined;
1225
+ }>]>;
1226
+ export type StdOutgoingMessage = z.infer<typeof StdOutgoingMessageSchema>;
1227
+ export declare const stdIncomingTextMessageSchema: z.ZodObject<{
1228
+ text: z.ZodString;
1229
+ }, "strip", z.ZodTypeAny, {
1230
+ text: string;
1231
+ }, {
1232
+ text: string;
1233
+ }>;
1234
+ export type StdIncomingTextMessage = z.infer<typeof stdIncomingTextMessageSchema>;
1235
+ export declare const stdIncomingPostBackMessageSchema: z.ZodObject<{
1236
+ text: z.ZodString;
1237
+ } & {
1238
+ postback: z.ZodString;
1239
+ }, "strip", z.ZodTypeAny, {
1240
+ text: string;
1241
+ postback: string;
1242
+ }, {
1243
+ text: string;
1244
+ postback: string;
1245
+ }>;
1246
+ export type StdIncomingPostBackMessage = z.infer<typeof stdIncomingPostBackMessageSchema>;
1247
+ export declare const stdIncomingLocationMessageSchema: z.ZodObject<{
1248
+ type: z.ZodLiteral<PayloadType.location>;
1249
+ coordinates: z.ZodObject<{
1250
+ lat: z.ZodNumber;
1251
+ lon: z.ZodNumber;
1252
+ }, "strip", z.ZodTypeAny, {
1253
+ lat: number;
1254
+ lon: number;
1255
+ }, {
1256
+ lat: number;
1257
+ lon: number;
1258
+ }>;
1259
+ }, "strip", z.ZodTypeAny, {
1260
+ type: PayloadType.location;
1261
+ coordinates: {
1262
+ lat: number;
1263
+ lon: number;
1264
+ };
1265
+ }, {
1266
+ type: PayloadType.location;
1267
+ coordinates: {
1268
+ lat: number;
1269
+ lon: number;
1270
+ };
1271
+ }>;
1272
+ export type StdIncomingLocationMessage = z.infer<typeof stdIncomingLocationMessageSchema>;
1273
+ export declare const stdIncomingAttachmentMessageSchema: z.ZodObject<{
1274
+ type: z.ZodLiteral<PayloadType.attachments>;
1275
+ serialized_text: z.ZodString;
1276
+ attachment: z.ZodUnion<[z.ZodObject<{
1277
+ type: z.ZodNativeEnum<typeof FileType>;
1278
+ payload: z.ZodUnion<[z.ZodObject<{
1279
+ id: z.ZodNullable<z.ZodString>;
1280
+ }, "strip", z.ZodTypeAny, {
1281
+ id: string | null;
1282
+ }, {
1283
+ id: string | null;
1284
+ }>, z.ZodObject<{
1285
+ url: z.ZodString;
1286
+ }, "strip", z.ZodTypeAny, {
1287
+ url: string;
1288
+ }, {
1289
+ url: string;
1290
+ }>]>;
1291
+ }, "strip", z.ZodTypeAny, {
1292
+ type: FileType;
1293
+ payload: {
1294
+ id: string | null;
1295
+ } | {
1296
+ url: string;
1297
+ };
1298
+ }, {
1299
+ type: FileType;
1300
+ payload: {
1301
+ id: string | null;
1302
+ } | {
1303
+ url: string;
1304
+ };
1305
+ }>, z.ZodArray<z.ZodObject<{
1306
+ type: z.ZodNativeEnum<typeof FileType>;
1307
+ payload: z.ZodUnion<[z.ZodObject<{
1308
+ id: z.ZodNullable<z.ZodString>;
1309
+ }, "strip", z.ZodTypeAny, {
1310
+ id: string | null;
1311
+ }, {
1312
+ id: string | null;
1313
+ }>, z.ZodObject<{
1314
+ url: z.ZodString;
1315
+ }, "strip", z.ZodTypeAny, {
1316
+ url: string;
1317
+ }, {
1318
+ url: string;
1319
+ }>]>;
1320
+ }, "strip", z.ZodTypeAny, {
1321
+ type: FileType;
1322
+ payload: {
1323
+ id: string | null;
1324
+ } | {
1325
+ url: string;
1326
+ };
1327
+ }, {
1328
+ type: FileType;
1329
+ payload: {
1330
+ id: string | null;
1331
+ } | {
1332
+ url: string;
1333
+ };
1334
+ }>, "many">]>;
1335
+ }, "strip", z.ZodTypeAny, {
1336
+ type: PayloadType.attachments;
1337
+ attachment: {
1338
+ type: FileType;
1339
+ payload: {
1340
+ id: string | null;
1341
+ } | {
1342
+ url: string;
1343
+ };
1344
+ } | {
1345
+ type: FileType;
1346
+ payload: {
1347
+ id: string | null;
1348
+ } | {
1349
+ url: string;
1350
+ };
1351
+ }[];
1352
+ serialized_text: string;
1353
+ }, {
1354
+ type: PayloadType.attachments;
1355
+ attachment: {
1356
+ type: FileType;
1357
+ payload: {
1358
+ id: string | null;
1359
+ } | {
1360
+ url: string;
1361
+ };
1362
+ } | {
1363
+ type: FileType;
1364
+ payload: {
1365
+ id: string | null;
1366
+ } | {
1367
+ url: string;
1368
+ };
1369
+ }[];
1370
+ serialized_text: string;
1371
+ }>;
1372
+ export type StdIncomingAttachmentMessage = z.infer<typeof stdIncomingAttachmentMessageSchema>;
1373
+ export declare const stdIncomingMessageSchema: z.ZodUnion<[z.ZodObject<{
1374
+ text: z.ZodString;
1375
+ }, "strip", z.ZodTypeAny, {
1376
+ text: string;
1377
+ }, {
1378
+ text: string;
1379
+ }>, z.ZodObject<{
1380
+ text: z.ZodString;
1381
+ } & {
1382
+ postback: z.ZodString;
1383
+ }, "strip", z.ZodTypeAny, {
1384
+ text: string;
1385
+ postback: string;
1386
+ }, {
1387
+ text: string;
1388
+ postback: string;
1389
+ }>, z.ZodObject<{
1390
+ type: z.ZodLiteral<PayloadType.location>;
1391
+ coordinates: z.ZodObject<{
1392
+ lat: z.ZodNumber;
1393
+ lon: z.ZodNumber;
1394
+ }, "strip", z.ZodTypeAny, {
1395
+ lat: number;
1396
+ lon: number;
1397
+ }, {
1398
+ lat: number;
1399
+ lon: number;
1400
+ }>;
1401
+ }, "strip", z.ZodTypeAny, {
1402
+ type: PayloadType.location;
1403
+ coordinates: {
1404
+ lat: number;
1405
+ lon: number;
1406
+ };
1407
+ }, {
1408
+ type: PayloadType.location;
1409
+ coordinates: {
1410
+ lat: number;
1411
+ lon: number;
1412
+ };
1413
+ }>, z.ZodObject<{
1414
+ type: z.ZodLiteral<PayloadType.attachments>;
1415
+ serialized_text: z.ZodString;
1416
+ attachment: z.ZodUnion<[z.ZodObject<{
1417
+ type: z.ZodNativeEnum<typeof FileType>;
1418
+ payload: z.ZodUnion<[z.ZodObject<{
1419
+ id: z.ZodNullable<z.ZodString>;
1420
+ }, "strip", z.ZodTypeAny, {
1421
+ id: string | null;
1422
+ }, {
1423
+ id: string | null;
1424
+ }>, z.ZodObject<{
1425
+ url: z.ZodString;
1426
+ }, "strip", z.ZodTypeAny, {
1427
+ url: string;
1428
+ }, {
1429
+ url: string;
1430
+ }>]>;
1431
+ }, "strip", z.ZodTypeAny, {
1432
+ type: FileType;
1433
+ payload: {
1434
+ id: string | null;
1435
+ } | {
1436
+ url: string;
1437
+ };
1438
+ }, {
1439
+ type: FileType;
1440
+ payload: {
1441
+ id: string | null;
1442
+ } | {
1443
+ url: string;
1444
+ };
1445
+ }>, z.ZodArray<z.ZodObject<{
1446
+ type: z.ZodNativeEnum<typeof FileType>;
1447
+ payload: z.ZodUnion<[z.ZodObject<{
1448
+ id: z.ZodNullable<z.ZodString>;
1449
+ }, "strip", z.ZodTypeAny, {
1450
+ id: string | null;
1451
+ }, {
1452
+ id: string | null;
1453
+ }>, z.ZodObject<{
1454
+ url: z.ZodString;
1455
+ }, "strip", z.ZodTypeAny, {
1456
+ url: string;
1457
+ }, {
1458
+ url: string;
1459
+ }>]>;
1460
+ }, "strip", z.ZodTypeAny, {
1461
+ type: FileType;
1462
+ payload: {
1463
+ id: string | null;
1464
+ } | {
1465
+ url: string;
1466
+ };
1467
+ }, {
1468
+ type: FileType;
1469
+ payload: {
1470
+ id: string | null;
1471
+ } | {
1472
+ url: string;
1473
+ };
1474
+ }>, "many">]>;
1475
+ }, "strip", z.ZodTypeAny, {
1476
+ type: PayloadType.attachments;
1477
+ attachment: {
1478
+ type: FileType;
1479
+ payload: {
1480
+ id: string | null;
1481
+ } | {
1482
+ url: string;
1483
+ };
1484
+ } | {
1485
+ type: FileType;
1486
+ payload: {
1487
+ id: string | null;
1488
+ } | {
1489
+ url: string;
1490
+ };
1491
+ }[];
1492
+ serialized_text: string;
1493
+ }, {
1494
+ type: PayloadType.attachments;
1495
+ attachment: {
1496
+ type: FileType;
1497
+ payload: {
1498
+ id: string | null;
1499
+ } | {
1500
+ url: string;
1501
+ };
1502
+ } | {
1503
+ type: FileType;
1504
+ payload: {
1505
+ id: string | null;
1506
+ } | {
1507
+ url: string;
1508
+ };
1509
+ }[];
1510
+ serialized_text: string;
1511
+ }>]>;
1512
+ export type StdIncomingMessage = z.infer<typeof stdIncomingMessageSchema>;
1513
+ export interface IncomingMessage extends Omit<Message, 'recipient' | 'sentBy'> {
1514
+ message: StdIncomingMessage;
1515
+ sender: string;
1516
+ }
1517
+ export interface OutgoingMessage extends Omit<Message, 'sender'> {
1518
+ message: StdOutgoingMessage;
1519
+ recipient: string;
1520
+ sentBy?: string;
1521
+ handover: boolean;
1522
+ }
1523
+ export type AnyMessage = IncomingMessage | OutgoingMessage;
1524
+ export declare const stdOutgoingTextEnvelopeSchema: z.ZodObject<{
1525
+ format: z.ZodLiteral<OutgoingMessageFormat.text>;
1526
+ message: z.ZodObject<{
1527
+ text: z.ZodString;
1528
+ }, "strip", z.ZodTypeAny, {
1529
+ text: string;
1530
+ }, {
1531
+ text: string;
1532
+ }>;
1533
+ }, "strip", z.ZodTypeAny, {
1534
+ format: OutgoingMessageFormat.text;
1535
+ message: {
1536
+ text: string;
1537
+ };
1538
+ }, {
1539
+ format: OutgoingMessageFormat.text;
1540
+ message: {
1541
+ text: string;
1542
+ };
1543
+ }>;
1544
+ export type StdOutgoingTextEnvelope = z.infer<typeof stdOutgoingTextEnvelopeSchema>;
1545
+ export declare const stdOutgoingQuickRepliesEnvelopeSchema: z.ZodObject<{
1546
+ format: z.ZodLiteral<OutgoingMessageFormat.quickReplies>;
1547
+ message: z.ZodObject<{
1548
+ text: z.ZodString;
1549
+ quickReplies: z.ZodArray<z.ZodObject<{
1550
+ content_type: z.ZodNativeEnum<typeof QuickReplyType>;
1551
+ title: z.ZodString;
1552
+ payload: z.ZodString;
1553
+ }, "strip", z.ZodTypeAny, {
1554
+ title: string;
1555
+ payload: string;
1556
+ content_type: QuickReplyType;
1557
+ }, {
1558
+ title: string;
1559
+ payload: string;
1560
+ content_type: QuickReplyType;
1561
+ }>, "many">;
1562
+ }, "strip", z.ZodTypeAny, {
1563
+ text: string;
1564
+ quickReplies: {
1565
+ title: string;
1566
+ payload: string;
1567
+ content_type: QuickReplyType;
1568
+ }[];
1569
+ }, {
1570
+ text: string;
1571
+ quickReplies: {
1572
+ title: string;
1573
+ payload: string;
1574
+ content_type: QuickReplyType;
1575
+ }[];
1576
+ }>;
1577
+ }, "strip", z.ZodTypeAny, {
1578
+ format: OutgoingMessageFormat.quickReplies;
1579
+ message: {
1580
+ text: string;
1581
+ quickReplies: {
1582
+ title: string;
1583
+ payload: string;
1584
+ content_type: QuickReplyType;
1585
+ }[];
1586
+ };
1587
+ }, {
1588
+ format: OutgoingMessageFormat.quickReplies;
1589
+ message: {
1590
+ text: string;
1591
+ quickReplies: {
1592
+ title: string;
1593
+ payload: string;
1594
+ content_type: QuickReplyType;
1595
+ }[];
1596
+ };
1597
+ }>;
1598
+ export type StdOutgoingQuickRepliesEnvelope = z.infer<typeof stdOutgoingQuickRepliesEnvelopeSchema>;
1599
+ export declare const stdOutgoingButtonsEnvelopeSchema: z.ZodObject<{
1600
+ format: z.ZodLiteral<OutgoingMessageFormat.buttons>;
1601
+ message: z.ZodObject<{
1602
+ text: z.ZodString;
1603
+ buttons: z.ZodArray<z.ZodUnion<[z.ZodObject<{
1604
+ type: z.ZodLiteral<import("./button").ButtonType.postback>;
1605
+ title: z.ZodString;
1606
+ payload: z.ZodString;
1607
+ }, "strip", z.ZodTypeAny, {
1608
+ type: import("./button").ButtonType.postback;
1609
+ title: string;
1610
+ payload: string;
1611
+ }, {
1612
+ type: import("./button").ButtonType.postback;
1613
+ title: string;
1614
+ payload: string;
1615
+ }>, z.ZodObject<{
1616
+ type: z.ZodLiteral<import("./button").ButtonType.web_url>;
1617
+ title: z.ZodString;
1618
+ url: z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>;
1619
+ messenger_extensions: z.ZodOptional<z.ZodBoolean>;
1620
+ webview_height_ratio: z.ZodOptional<z.ZodEnum<["compact", "tall", "full"]>>;
1621
+ }, "strip", z.ZodTypeAny, {
1622
+ type: import("./button").ButtonType.web_url;
1623
+ title: string;
1624
+ url: string;
1625
+ messenger_extensions?: boolean | undefined;
1626
+ webview_height_ratio?: "compact" | "tall" | "full" | undefined;
1627
+ }, {
1628
+ type: import("./button").ButtonType.web_url;
1629
+ title: string;
1630
+ url: string;
1631
+ messenger_extensions?: boolean | undefined;
1632
+ webview_height_ratio?: "compact" | "tall" | "full" | undefined;
1633
+ }>]>, "many">;
1634
+ }, "strip", z.ZodTypeAny, {
1635
+ text: string;
1636
+ buttons: ({
1637
+ type: import("./button").ButtonType.postback;
1638
+ title: string;
1639
+ payload: string;
1640
+ } | {
1641
+ type: import("./button").ButtonType.web_url;
1642
+ title: string;
1643
+ url: string;
1644
+ messenger_extensions?: boolean | undefined;
1645
+ webview_height_ratio?: "compact" | "tall" | "full" | undefined;
1646
+ })[];
1647
+ }, {
1648
+ text: string;
1649
+ buttons: ({
1650
+ type: import("./button").ButtonType.postback;
1651
+ title: string;
1652
+ payload: string;
1653
+ } | {
1654
+ type: import("./button").ButtonType.web_url;
1655
+ title: string;
1656
+ url: string;
1657
+ messenger_extensions?: boolean | undefined;
1658
+ webview_height_ratio?: "compact" | "tall" | "full" | undefined;
1659
+ })[];
1660
+ }>;
1661
+ }, "strip", z.ZodTypeAny, {
1662
+ format: OutgoingMessageFormat.buttons;
1663
+ message: {
1664
+ text: string;
1665
+ buttons: ({
1666
+ type: import("./button").ButtonType.postback;
1667
+ title: string;
1668
+ payload: string;
1669
+ } | {
1670
+ type: import("./button").ButtonType.web_url;
1671
+ title: string;
1672
+ url: string;
1673
+ messenger_extensions?: boolean | undefined;
1674
+ webview_height_ratio?: "compact" | "tall" | "full" | undefined;
1675
+ })[];
1676
+ };
1677
+ }, {
1678
+ format: OutgoingMessageFormat.buttons;
1679
+ message: {
1680
+ text: string;
1681
+ buttons: ({
1682
+ type: import("./button").ButtonType.postback;
1683
+ title: string;
1684
+ payload: string;
1685
+ } | {
1686
+ type: import("./button").ButtonType.web_url;
1687
+ title: string;
1688
+ url: string;
1689
+ messenger_extensions?: boolean | undefined;
1690
+ webview_height_ratio?: "compact" | "tall" | "full" | undefined;
1691
+ })[];
1692
+ };
1693
+ }>;
1694
+ export type StdOutgoingButtonsEnvelope = z.infer<typeof stdOutgoingButtonsEnvelopeSchema>;
1695
+ export declare const stdOutgoingListEnvelopeSchema: z.ZodObject<{
1696
+ format: z.ZodEnum<["list", "carousel"]>;
1697
+ message: z.ZodObject<{
1698
+ options: z.ZodObject<{
1699
+ display: z.ZodEnum<["list", "carousel"]>;
1700
+ fields: z.ZodObject<{
1701
+ title: z.ZodString;
1702
+ subtitle: z.ZodNullable<z.ZodString>;
1703
+ image_url: z.ZodNullable<z.ZodString>;
1704
+ url: z.ZodOptional<z.ZodString>;
1705
+ action_title: z.ZodOptional<z.ZodString>;
1706
+ action_payload: z.ZodOptional<z.ZodString>;
1707
+ }, "strip", z.ZodTypeAny, {
1708
+ title: string;
1709
+ subtitle: string | null;
1710
+ image_url: string | null;
1711
+ url?: string | undefined;
1712
+ action_title?: string | undefined;
1713
+ action_payload?: string | undefined;
1714
+ }, {
1715
+ title: string;
1716
+ subtitle: string | null;
1717
+ image_url: string | null;
1718
+ url?: string | undefined;
1719
+ action_title?: string | undefined;
1720
+ action_payload?: string | undefined;
1721
+ }>;
1722
+ buttons: z.ZodArray<z.ZodUnion<[z.ZodObject<{
1723
+ type: z.ZodLiteral<import("./button").ButtonType.postback>;
1724
+ title: z.ZodString;
1725
+ payload: z.ZodString;
1726
+ }, "strip", z.ZodTypeAny, {
1727
+ type: import("./button").ButtonType.postback;
1728
+ title: string;
1729
+ payload: string;
1730
+ }, {
1731
+ type: import("./button").ButtonType.postback;
1732
+ title: string;
1733
+ payload: string;
1734
+ }>, z.ZodObject<{
1735
+ type: z.ZodLiteral<import("./button").ButtonType.web_url>;
1736
+ title: z.ZodString;
1737
+ url: z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>;
1738
+ messenger_extensions: z.ZodOptional<z.ZodBoolean>;
1739
+ webview_height_ratio: z.ZodOptional<z.ZodEnum<["compact", "tall", "full"]>>;
1740
+ }, "strip", z.ZodTypeAny, {
1741
+ type: import("./button").ButtonType.web_url;
1742
+ title: string;
1743
+ url: string;
1744
+ messenger_extensions?: boolean | undefined;
1745
+ webview_height_ratio?: "compact" | "tall" | "full" | undefined;
1746
+ }, {
1747
+ type: import("./button").ButtonType.web_url;
1748
+ title: string;
1749
+ url: string;
1750
+ messenger_extensions?: boolean | undefined;
1751
+ webview_height_ratio?: "compact" | "tall" | "full" | undefined;
1752
+ }>]>, "many">;
1753
+ limit: z.ZodNumber;
1754
+ query: z.ZodOptional<z.ZodAny>;
1755
+ entity: z.ZodOptional<z.ZodString>;
1756
+ top_element_style: z.ZodOptional<z.ZodEnum<["large", "compact"]>>;
1757
+ }, "strip", z.ZodTypeAny, {
1758
+ display: "list" | "carousel";
1759
+ fields: {
1760
+ title: string;
1761
+ subtitle: string | null;
1762
+ image_url: string | null;
1763
+ url?: string | undefined;
1764
+ action_title?: string | undefined;
1765
+ action_payload?: string | undefined;
1766
+ };
1767
+ buttons: ({
1768
+ type: import("./button").ButtonType.postback;
1769
+ title: string;
1770
+ payload: string;
1771
+ } | {
1772
+ type: import("./button").ButtonType.web_url;
1773
+ title: string;
1774
+ url: string;
1775
+ messenger_extensions?: boolean | undefined;
1776
+ webview_height_ratio?: "compact" | "tall" | "full" | undefined;
1777
+ })[];
1778
+ limit: number;
1779
+ query?: any;
1780
+ entity?: string | undefined;
1781
+ top_element_style?: "compact" | "large" | undefined;
1782
+ }, {
1783
+ display: "list" | "carousel";
1784
+ fields: {
1785
+ title: string;
1786
+ subtitle: string | null;
1787
+ image_url: string | null;
1788
+ url?: string | undefined;
1789
+ action_title?: string | undefined;
1790
+ action_payload?: string | undefined;
1791
+ };
1792
+ buttons: ({
1793
+ type: import("./button").ButtonType.postback;
1794
+ title: string;
1795
+ payload: string;
1796
+ } | {
1797
+ type: import("./button").ButtonType.web_url;
1798
+ title: string;
1799
+ url: string;
1800
+ messenger_extensions?: boolean | undefined;
1801
+ webview_height_ratio?: "compact" | "tall" | "full" | undefined;
1802
+ })[];
1803
+ limit: number;
1804
+ query?: any;
1805
+ entity?: string | undefined;
1806
+ top_element_style?: "compact" | "large" | undefined;
1807
+ }>;
1808
+ elements: z.ZodArray<z.ZodObject<{
1809
+ id: z.ZodString;
1810
+ title: z.ZodString;
1811
+ }, "strip", z.ZodAny, z.objectOutputType<{
1812
+ id: z.ZodString;
1813
+ title: z.ZodString;
1814
+ }, z.ZodAny, "strip">, z.objectInputType<{
1815
+ id: z.ZodString;
1816
+ title: z.ZodString;
1817
+ }, z.ZodAny, "strip">>, "many">;
1818
+ pagination: z.ZodObject<{
1819
+ total: z.ZodNumber;
1820
+ skip: z.ZodNumber;
1821
+ limit: z.ZodNumber;
1822
+ }, "strip", z.ZodTypeAny, {
1823
+ limit: number;
1824
+ total: number;
1825
+ skip: number;
1826
+ }, {
1827
+ limit: number;
1828
+ total: number;
1829
+ skip: number;
1830
+ }>;
1831
+ }, "strip", z.ZodTypeAny, {
1832
+ options: {
1833
+ display: "list" | "carousel";
1834
+ fields: {
1835
+ title: string;
1836
+ subtitle: string | null;
1837
+ image_url: string | null;
1838
+ url?: string | undefined;
1839
+ action_title?: string | undefined;
1840
+ action_payload?: string | undefined;
1841
+ };
1842
+ buttons: ({
1843
+ type: import("./button").ButtonType.postback;
1844
+ title: string;
1845
+ payload: string;
1846
+ } | {
1847
+ type: import("./button").ButtonType.web_url;
1848
+ title: string;
1849
+ url: string;
1850
+ messenger_extensions?: boolean | undefined;
1851
+ webview_height_ratio?: "compact" | "tall" | "full" | undefined;
1852
+ })[];
1853
+ limit: number;
1854
+ query?: any;
1855
+ entity?: string | undefined;
1856
+ top_element_style?: "compact" | "large" | undefined;
1857
+ };
1858
+ elements: z.objectOutputType<{
1859
+ id: z.ZodString;
1860
+ title: z.ZodString;
1861
+ }, z.ZodAny, "strip">[];
1862
+ pagination: {
1863
+ limit: number;
1864
+ total: number;
1865
+ skip: number;
1866
+ };
1867
+ }, {
1868
+ options: {
1869
+ display: "list" | "carousel";
1870
+ fields: {
1871
+ title: string;
1872
+ subtitle: string | null;
1873
+ image_url: string | null;
1874
+ url?: string | undefined;
1875
+ action_title?: string | undefined;
1876
+ action_payload?: string | undefined;
1877
+ };
1878
+ buttons: ({
1879
+ type: import("./button").ButtonType.postback;
1880
+ title: string;
1881
+ payload: string;
1882
+ } | {
1883
+ type: import("./button").ButtonType.web_url;
1884
+ title: string;
1885
+ url: string;
1886
+ messenger_extensions?: boolean | undefined;
1887
+ webview_height_ratio?: "compact" | "tall" | "full" | undefined;
1888
+ })[];
1889
+ limit: number;
1890
+ query?: any;
1891
+ entity?: string | undefined;
1892
+ top_element_style?: "compact" | "large" | undefined;
1893
+ };
1894
+ elements: z.objectInputType<{
1895
+ id: z.ZodString;
1896
+ title: z.ZodString;
1897
+ }, z.ZodAny, "strip">[];
1898
+ pagination: {
1899
+ limit: number;
1900
+ total: number;
1901
+ skip: number;
1902
+ };
1903
+ }>;
1904
+ }, "strip", z.ZodTypeAny, {
1905
+ format: "list" | "carousel";
1906
+ message: {
1907
+ options: {
1908
+ display: "list" | "carousel";
1909
+ fields: {
1910
+ title: string;
1911
+ subtitle: string | null;
1912
+ image_url: string | null;
1913
+ url?: string | undefined;
1914
+ action_title?: string | undefined;
1915
+ action_payload?: string | undefined;
1916
+ };
1917
+ buttons: ({
1918
+ type: import("./button").ButtonType.postback;
1919
+ title: string;
1920
+ payload: string;
1921
+ } | {
1922
+ type: import("./button").ButtonType.web_url;
1923
+ title: string;
1924
+ url: string;
1925
+ messenger_extensions?: boolean | undefined;
1926
+ webview_height_ratio?: "compact" | "tall" | "full" | undefined;
1927
+ })[];
1928
+ limit: number;
1929
+ query?: any;
1930
+ entity?: string | undefined;
1931
+ top_element_style?: "compact" | "large" | undefined;
1932
+ };
1933
+ elements: z.objectOutputType<{
1934
+ id: z.ZodString;
1935
+ title: z.ZodString;
1936
+ }, z.ZodAny, "strip">[];
1937
+ pagination: {
1938
+ limit: number;
1939
+ total: number;
1940
+ skip: number;
1941
+ };
1942
+ };
1943
+ }, {
1944
+ format: "list" | "carousel";
1945
+ message: {
1946
+ options: {
1947
+ display: "list" | "carousel";
1948
+ fields: {
1949
+ title: string;
1950
+ subtitle: string | null;
1951
+ image_url: string | null;
1952
+ url?: string | undefined;
1953
+ action_title?: string | undefined;
1954
+ action_payload?: string | undefined;
1955
+ };
1956
+ buttons: ({
1957
+ type: import("./button").ButtonType.postback;
1958
+ title: string;
1959
+ payload: string;
1960
+ } | {
1961
+ type: import("./button").ButtonType.web_url;
1962
+ title: string;
1963
+ url: string;
1964
+ messenger_extensions?: boolean | undefined;
1965
+ webview_height_ratio?: "compact" | "tall" | "full" | undefined;
1966
+ })[];
1967
+ limit: number;
1968
+ query?: any;
1969
+ entity?: string | undefined;
1970
+ top_element_style?: "compact" | "large" | undefined;
1971
+ };
1972
+ elements: z.objectInputType<{
1973
+ id: z.ZodString;
1974
+ title: z.ZodString;
1975
+ }, z.ZodAny, "strip">[];
1976
+ pagination: {
1977
+ limit: number;
1978
+ total: number;
1979
+ skip: number;
1980
+ };
1981
+ };
1982
+ }>;
1983
+ export type StdOutgoingListEnvelope = z.infer<typeof stdOutgoingListEnvelopeSchema>;
1984
+ export declare const stdOutgoingAttachmentEnvelopeSchema: z.ZodObject<{
1985
+ format: z.ZodLiteral<OutgoingMessageFormat.attachment>;
1986
+ message: z.ZodObject<{
1987
+ attachment: z.ZodObject<{
1988
+ type: z.ZodNativeEnum<typeof FileType>;
1989
+ payload: z.ZodUnion<[z.ZodObject<{
1990
+ id: z.ZodNullable<z.ZodString>;
1991
+ }, "strip", z.ZodTypeAny, {
1992
+ id: string | null;
1993
+ }, {
1994
+ id: string | null;
1995
+ }>, z.ZodObject<{
1996
+ url: z.ZodString;
1997
+ }, "strip", z.ZodTypeAny, {
1998
+ url: string;
1999
+ }, {
2000
+ url: string;
2001
+ }>]>;
2002
+ }, "strip", z.ZodTypeAny, {
2003
+ type: FileType;
2004
+ payload: {
2005
+ id: string | null;
2006
+ } | {
2007
+ url: string;
2008
+ };
2009
+ }, {
2010
+ type: FileType;
2011
+ payload: {
2012
+ id: string | null;
2013
+ } | {
2014
+ url: string;
2015
+ };
2016
+ }>;
2017
+ quickReplies: z.ZodOptional<z.ZodArray<z.ZodObject<{
2018
+ content_type: z.ZodNativeEnum<typeof QuickReplyType>;
2019
+ title: z.ZodString;
2020
+ payload: z.ZodString;
2021
+ }, "strip", z.ZodTypeAny, {
2022
+ title: string;
2023
+ payload: string;
2024
+ content_type: QuickReplyType;
2025
+ }, {
2026
+ title: string;
2027
+ payload: string;
2028
+ content_type: QuickReplyType;
2029
+ }>, "many">>;
2030
+ }, "strip", z.ZodTypeAny, {
2031
+ attachment: {
2032
+ type: FileType;
2033
+ payload: {
2034
+ id: string | null;
2035
+ } | {
2036
+ url: string;
2037
+ };
2038
+ };
2039
+ quickReplies?: {
2040
+ title: string;
2041
+ payload: string;
2042
+ content_type: QuickReplyType;
2043
+ }[] | undefined;
2044
+ }, {
2045
+ attachment: {
2046
+ type: FileType;
2047
+ payload: {
2048
+ id: string | null;
2049
+ } | {
2050
+ url: string;
2051
+ };
2052
+ };
2053
+ quickReplies?: {
2054
+ title: string;
2055
+ payload: string;
2056
+ content_type: QuickReplyType;
2057
+ }[] | undefined;
2058
+ }>;
2059
+ }, "strip", z.ZodTypeAny, {
2060
+ format: OutgoingMessageFormat.attachment;
2061
+ message: {
2062
+ attachment: {
2063
+ type: FileType;
2064
+ payload: {
2065
+ id: string | null;
2066
+ } | {
2067
+ url: string;
2068
+ };
2069
+ };
2070
+ quickReplies?: {
2071
+ title: string;
2072
+ payload: string;
2073
+ content_type: QuickReplyType;
2074
+ }[] | undefined;
2075
+ };
2076
+ }, {
2077
+ format: OutgoingMessageFormat.attachment;
2078
+ message: {
2079
+ attachment: {
2080
+ type: FileType;
2081
+ payload: {
2082
+ id: string | null;
2083
+ } | {
2084
+ url: string;
2085
+ };
2086
+ };
2087
+ quickReplies?: {
2088
+ title: string;
2089
+ payload: string;
2090
+ content_type: QuickReplyType;
2091
+ }[] | undefined;
2092
+ };
2093
+ }>;
2094
+ export type StdOutgoingAttachmentEnvelope = z.infer<typeof stdOutgoingAttachmentEnvelopeSchema>;
2095
+ export declare const stdOutgoingSystemEnvelopeSchema: z.ZodObject<{
2096
+ format: z.ZodLiteral<OutgoingMessageFormat.system>;
2097
+ message: z.ZodObject<{
2098
+ outcome: z.ZodOptional<z.ZodString>;
2099
+ data: z.ZodOptional<z.ZodAny>;
2100
+ }, "strip", z.ZodTypeAny, {
2101
+ outcome?: string | undefined;
2102
+ data?: any;
2103
+ }, {
2104
+ outcome?: string | undefined;
2105
+ data?: any;
2106
+ }>;
2107
+ }, "strip", z.ZodTypeAny, {
2108
+ format: OutgoingMessageFormat.system;
2109
+ message: {
2110
+ outcome?: string | undefined;
2111
+ data?: any;
2112
+ };
2113
+ }, {
2114
+ format: OutgoingMessageFormat.system;
2115
+ message: {
2116
+ outcome?: string | undefined;
2117
+ data?: any;
2118
+ };
2119
+ }>;
2120
+ export type StdOutgoingSystemEnvelope = z.infer<typeof stdOutgoingSystemEnvelopeSchema>;
2121
+ export declare const stdOutgoingMessageEnvelopeSchema: z.ZodUnion<[z.ZodObject<{
2122
+ format: z.ZodLiteral<OutgoingMessageFormat.text>;
2123
+ message: z.ZodObject<{
2124
+ text: z.ZodString;
2125
+ }, "strip", z.ZodTypeAny, {
2126
+ text: string;
2127
+ }, {
2128
+ text: string;
2129
+ }>;
2130
+ }, "strip", z.ZodTypeAny, {
2131
+ format: OutgoingMessageFormat.text;
2132
+ message: {
2133
+ text: string;
2134
+ };
2135
+ }, {
2136
+ format: OutgoingMessageFormat.text;
2137
+ message: {
2138
+ text: string;
2139
+ };
2140
+ }>, z.ZodObject<{
2141
+ format: z.ZodLiteral<OutgoingMessageFormat.quickReplies>;
2142
+ message: z.ZodObject<{
2143
+ text: z.ZodString;
2144
+ quickReplies: z.ZodArray<z.ZodObject<{
2145
+ content_type: z.ZodNativeEnum<typeof QuickReplyType>;
2146
+ title: z.ZodString;
2147
+ payload: z.ZodString;
2148
+ }, "strip", z.ZodTypeAny, {
2149
+ title: string;
2150
+ payload: string;
2151
+ content_type: QuickReplyType;
2152
+ }, {
2153
+ title: string;
2154
+ payload: string;
2155
+ content_type: QuickReplyType;
2156
+ }>, "many">;
2157
+ }, "strip", z.ZodTypeAny, {
2158
+ text: string;
2159
+ quickReplies: {
2160
+ title: string;
2161
+ payload: string;
2162
+ content_type: QuickReplyType;
2163
+ }[];
2164
+ }, {
2165
+ text: string;
2166
+ quickReplies: {
2167
+ title: string;
2168
+ payload: string;
2169
+ content_type: QuickReplyType;
2170
+ }[];
2171
+ }>;
2172
+ }, "strip", z.ZodTypeAny, {
2173
+ format: OutgoingMessageFormat.quickReplies;
2174
+ message: {
2175
+ text: string;
2176
+ quickReplies: {
2177
+ title: string;
2178
+ payload: string;
2179
+ content_type: QuickReplyType;
2180
+ }[];
2181
+ };
2182
+ }, {
2183
+ format: OutgoingMessageFormat.quickReplies;
2184
+ message: {
2185
+ text: string;
2186
+ quickReplies: {
2187
+ title: string;
2188
+ payload: string;
2189
+ content_type: QuickReplyType;
2190
+ }[];
2191
+ };
2192
+ }>, z.ZodObject<{
2193
+ format: z.ZodLiteral<OutgoingMessageFormat.buttons>;
2194
+ message: z.ZodObject<{
2195
+ text: z.ZodString;
2196
+ buttons: z.ZodArray<z.ZodUnion<[z.ZodObject<{
2197
+ type: z.ZodLiteral<import("./button").ButtonType.postback>;
2198
+ title: z.ZodString;
2199
+ payload: z.ZodString;
2200
+ }, "strip", z.ZodTypeAny, {
2201
+ type: import("./button").ButtonType.postback;
2202
+ title: string;
2203
+ payload: string;
2204
+ }, {
2205
+ type: import("./button").ButtonType.postback;
2206
+ title: string;
2207
+ payload: string;
2208
+ }>, z.ZodObject<{
2209
+ type: z.ZodLiteral<import("./button").ButtonType.web_url>;
2210
+ title: z.ZodString;
2211
+ url: z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>;
2212
+ messenger_extensions: z.ZodOptional<z.ZodBoolean>;
2213
+ webview_height_ratio: z.ZodOptional<z.ZodEnum<["compact", "tall", "full"]>>;
2214
+ }, "strip", z.ZodTypeAny, {
2215
+ type: import("./button").ButtonType.web_url;
2216
+ title: string;
2217
+ url: string;
2218
+ messenger_extensions?: boolean | undefined;
2219
+ webview_height_ratio?: "compact" | "tall" | "full" | undefined;
2220
+ }, {
2221
+ type: import("./button").ButtonType.web_url;
2222
+ title: string;
2223
+ url: string;
2224
+ messenger_extensions?: boolean | undefined;
2225
+ webview_height_ratio?: "compact" | "tall" | "full" | undefined;
2226
+ }>]>, "many">;
2227
+ }, "strip", z.ZodTypeAny, {
2228
+ text: string;
2229
+ buttons: ({
2230
+ type: import("./button").ButtonType.postback;
2231
+ title: string;
2232
+ payload: string;
2233
+ } | {
2234
+ type: import("./button").ButtonType.web_url;
2235
+ title: string;
2236
+ url: string;
2237
+ messenger_extensions?: boolean | undefined;
2238
+ webview_height_ratio?: "compact" | "tall" | "full" | undefined;
2239
+ })[];
2240
+ }, {
2241
+ text: string;
2242
+ buttons: ({
2243
+ type: import("./button").ButtonType.postback;
2244
+ title: string;
2245
+ payload: string;
2246
+ } | {
2247
+ type: import("./button").ButtonType.web_url;
2248
+ title: string;
2249
+ url: string;
2250
+ messenger_extensions?: boolean | undefined;
2251
+ webview_height_ratio?: "compact" | "tall" | "full" | undefined;
2252
+ })[];
2253
+ }>;
2254
+ }, "strip", z.ZodTypeAny, {
2255
+ format: OutgoingMessageFormat.buttons;
2256
+ message: {
2257
+ text: string;
2258
+ buttons: ({
2259
+ type: import("./button").ButtonType.postback;
2260
+ title: string;
2261
+ payload: string;
2262
+ } | {
2263
+ type: import("./button").ButtonType.web_url;
2264
+ title: string;
2265
+ url: string;
2266
+ messenger_extensions?: boolean | undefined;
2267
+ webview_height_ratio?: "compact" | "tall" | "full" | undefined;
2268
+ })[];
2269
+ };
2270
+ }, {
2271
+ format: OutgoingMessageFormat.buttons;
2272
+ message: {
2273
+ text: string;
2274
+ buttons: ({
2275
+ type: import("./button").ButtonType.postback;
2276
+ title: string;
2277
+ payload: string;
2278
+ } | {
2279
+ type: import("./button").ButtonType.web_url;
2280
+ title: string;
2281
+ url: string;
2282
+ messenger_extensions?: boolean | undefined;
2283
+ webview_height_ratio?: "compact" | "tall" | "full" | undefined;
2284
+ })[];
2285
+ };
2286
+ }>, z.ZodObject<{
2287
+ format: z.ZodEnum<["list", "carousel"]>;
2288
+ message: z.ZodObject<{
2289
+ options: z.ZodObject<{
2290
+ display: z.ZodEnum<["list", "carousel"]>;
2291
+ fields: z.ZodObject<{
2292
+ title: z.ZodString;
2293
+ subtitle: z.ZodNullable<z.ZodString>;
2294
+ image_url: z.ZodNullable<z.ZodString>;
2295
+ url: z.ZodOptional<z.ZodString>;
2296
+ action_title: z.ZodOptional<z.ZodString>;
2297
+ action_payload: z.ZodOptional<z.ZodString>;
2298
+ }, "strip", z.ZodTypeAny, {
2299
+ title: string;
2300
+ subtitle: string | null;
2301
+ image_url: string | null;
2302
+ url?: string | undefined;
2303
+ action_title?: string | undefined;
2304
+ action_payload?: string | undefined;
2305
+ }, {
2306
+ title: string;
2307
+ subtitle: string | null;
2308
+ image_url: string | null;
2309
+ url?: string | undefined;
2310
+ action_title?: string | undefined;
2311
+ action_payload?: string | undefined;
2312
+ }>;
2313
+ buttons: z.ZodArray<z.ZodUnion<[z.ZodObject<{
2314
+ type: z.ZodLiteral<import("./button").ButtonType.postback>;
2315
+ title: z.ZodString;
2316
+ payload: z.ZodString;
2317
+ }, "strip", z.ZodTypeAny, {
2318
+ type: import("./button").ButtonType.postback;
2319
+ title: string;
2320
+ payload: string;
2321
+ }, {
2322
+ type: import("./button").ButtonType.postback;
2323
+ title: string;
2324
+ payload: string;
2325
+ }>, z.ZodObject<{
2326
+ type: z.ZodLiteral<import("./button").ButtonType.web_url>;
2327
+ title: z.ZodString;
2328
+ url: z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>;
2329
+ messenger_extensions: z.ZodOptional<z.ZodBoolean>;
2330
+ webview_height_ratio: z.ZodOptional<z.ZodEnum<["compact", "tall", "full"]>>;
2331
+ }, "strip", z.ZodTypeAny, {
2332
+ type: import("./button").ButtonType.web_url;
2333
+ title: string;
2334
+ url: string;
2335
+ messenger_extensions?: boolean | undefined;
2336
+ webview_height_ratio?: "compact" | "tall" | "full" | undefined;
2337
+ }, {
2338
+ type: import("./button").ButtonType.web_url;
2339
+ title: string;
2340
+ url: string;
2341
+ messenger_extensions?: boolean | undefined;
2342
+ webview_height_ratio?: "compact" | "tall" | "full" | undefined;
2343
+ }>]>, "many">;
2344
+ limit: z.ZodNumber;
2345
+ query: z.ZodOptional<z.ZodAny>;
2346
+ entity: z.ZodOptional<z.ZodString>;
2347
+ top_element_style: z.ZodOptional<z.ZodEnum<["large", "compact"]>>;
2348
+ }, "strip", z.ZodTypeAny, {
2349
+ display: "list" | "carousel";
2350
+ fields: {
2351
+ title: string;
2352
+ subtitle: string | null;
2353
+ image_url: string | null;
2354
+ url?: string | undefined;
2355
+ action_title?: string | undefined;
2356
+ action_payload?: string | undefined;
2357
+ };
2358
+ buttons: ({
2359
+ type: import("./button").ButtonType.postback;
2360
+ title: string;
2361
+ payload: string;
2362
+ } | {
2363
+ type: import("./button").ButtonType.web_url;
2364
+ title: string;
2365
+ url: string;
2366
+ messenger_extensions?: boolean | undefined;
2367
+ webview_height_ratio?: "compact" | "tall" | "full" | undefined;
2368
+ })[];
2369
+ limit: number;
2370
+ query?: any;
2371
+ entity?: string | undefined;
2372
+ top_element_style?: "compact" | "large" | undefined;
2373
+ }, {
2374
+ display: "list" | "carousel";
2375
+ fields: {
2376
+ title: string;
2377
+ subtitle: string | null;
2378
+ image_url: string | null;
2379
+ url?: string | undefined;
2380
+ action_title?: string | undefined;
2381
+ action_payload?: string | undefined;
2382
+ };
2383
+ buttons: ({
2384
+ type: import("./button").ButtonType.postback;
2385
+ title: string;
2386
+ payload: string;
2387
+ } | {
2388
+ type: import("./button").ButtonType.web_url;
2389
+ title: string;
2390
+ url: string;
2391
+ messenger_extensions?: boolean | undefined;
2392
+ webview_height_ratio?: "compact" | "tall" | "full" | undefined;
2393
+ })[];
2394
+ limit: number;
2395
+ query?: any;
2396
+ entity?: string | undefined;
2397
+ top_element_style?: "compact" | "large" | undefined;
2398
+ }>;
2399
+ elements: z.ZodArray<z.ZodObject<{
2400
+ id: z.ZodString;
2401
+ title: z.ZodString;
2402
+ }, "strip", z.ZodAny, z.objectOutputType<{
2403
+ id: z.ZodString;
2404
+ title: z.ZodString;
2405
+ }, z.ZodAny, "strip">, z.objectInputType<{
2406
+ id: z.ZodString;
2407
+ title: z.ZodString;
2408
+ }, z.ZodAny, "strip">>, "many">;
2409
+ pagination: z.ZodObject<{
2410
+ total: z.ZodNumber;
2411
+ skip: z.ZodNumber;
2412
+ limit: z.ZodNumber;
2413
+ }, "strip", z.ZodTypeAny, {
2414
+ limit: number;
2415
+ total: number;
2416
+ skip: number;
2417
+ }, {
2418
+ limit: number;
2419
+ total: number;
2420
+ skip: number;
2421
+ }>;
2422
+ }, "strip", z.ZodTypeAny, {
2423
+ options: {
2424
+ display: "list" | "carousel";
2425
+ fields: {
2426
+ title: string;
2427
+ subtitle: string | null;
2428
+ image_url: string | null;
2429
+ url?: string | undefined;
2430
+ action_title?: string | undefined;
2431
+ action_payload?: string | undefined;
2432
+ };
2433
+ buttons: ({
2434
+ type: import("./button").ButtonType.postback;
2435
+ title: string;
2436
+ payload: string;
2437
+ } | {
2438
+ type: import("./button").ButtonType.web_url;
2439
+ title: string;
2440
+ url: string;
2441
+ messenger_extensions?: boolean | undefined;
2442
+ webview_height_ratio?: "compact" | "tall" | "full" | undefined;
2443
+ })[];
2444
+ limit: number;
2445
+ query?: any;
2446
+ entity?: string | undefined;
2447
+ top_element_style?: "compact" | "large" | undefined;
2448
+ };
2449
+ elements: z.objectOutputType<{
2450
+ id: z.ZodString;
2451
+ title: z.ZodString;
2452
+ }, z.ZodAny, "strip">[];
2453
+ pagination: {
2454
+ limit: number;
2455
+ total: number;
2456
+ skip: number;
2457
+ };
2458
+ }, {
2459
+ options: {
2460
+ display: "list" | "carousel";
2461
+ fields: {
2462
+ title: string;
2463
+ subtitle: string | null;
2464
+ image_url: string | null;
2465
+ url?: string | undefined;
2466
+ action_title?: string | undefined;
2467
+ action_payload?: string | undefined;
2468
+ };
2469
+ buttons: ({
2470
+ type: import("./button").ButtonType.postback;
2471
+ title: string;
2472
+ payload: string;
2473
+ } | {
2474
+ type: import("./button").ButtonType.web_url;
2475
+ title: string;
2476
+ url: string;
2477
+ messenger_extensions?: boolean | undefined;
2478
+ webview_height_ratio?: "compact" | "tall" | "full" | undefined;
2479
+ })[];
2480
+ limit: number;
2481
+ query?: any;
2482
+ entity?: string | undefined;
2483
+ top_element_style?: "compact" | "large" | undefined;
2484
+ };
2485
+ elements: z.objectInputType<{
2486
+ id: z.ZodString;
2487
+ title: z.ZodString;
2488
+ }, z.ZodAny, "strip">[];
2489
+ pagination: {
2490
+ limit: number;
2491
+ total: number;
2492
+ skip: number;
2493
+ };
2494
+ }>;
2495
+ }, "strip", z.ZodTypeAny, {
2496
+ format: "list" | "carousel";
2497
+ message: {
2498
+ options: {
2499
+ display: "list" | "carousel";
2500
+ fields: {
2501
+ title: string;
2502
+ subtitle: string | null;
2503
+ image_url: string | null;
2504
+ url?: string | undefined;
2505
+ action_title?: string | undefined;
2506
+ action_payload?: string | undefined;
2507
+ };
2508
+ buttons: ({
2509
+ type: import("./button").ButtonType.postback;
2510
+ title: string;
2511
+ payload: string;
2512
+ } | {
2513
+ type: import("./button").ButtonType.web_url;
2514
+ title: string;
2515
+ url: string;
2516
+ messenger_extensions?: boolean | undefined;
2517
+ webview_height_ratio?: "compact" | "tall" | "full" | undefined;
2518
+ })[];
2519
+ limit: number;
2520
+ query?: any;
2521
+ entity?: string | undefined;
2522
+ top_element_style?: "compact" | "large" | undefined;
2523
+ };
2524
+ elements: z.objectOutputType<{
2525
+ id: z.ZodString;
2526
+ title: z.ZodString;
2527
+ }, z.ZodAny, "strip">[];
2528
+ pagination: {
2529
+ limit: number;
2530
+ total: number;
2531
+ skip: number;
2532
+ };
2533
+ };
2534
+ }, {
2535
+ format: "list" | "carousel";
2536
+ message: {
2537
+ options: {
2538
+ display: "list" | "carousel";
2539
+ fields: {
2540
+ title: string;
2541
+ subtitle: string | null;
2542
+ image_url: string | null;
2543
+ url?: string | undefined;
2544
+ action_title?: string | undefined;
2545
+ action_payload?: string | undefined;
2546
+ };
2547
+ buttons: ({
2548
+ type: import("./button").ButtonType.postback;
2549
+ title: string;
2550
+ payload: string;
2551
+ } | {
2552
+ type: import("./button").ButtonType.web_url;
2553
+ title: string;
2554
+ url: string;
2555
+ messenger_extensions?: boolean | undefined;
2556
+ webview_height_ratio?: "compact" | "tall" | "full" | undefined;
2557
+ })[];
2558
+ limit: number;
2559
+ query?: any;
2560
+ entity?: string | undefined;
2561
+ top_element_style?: "compact" | "large" | undefined;
2562
+ };
2563
+ elements: z.objectInputType<{
2564
+ id: z.ZodString;
2565
+ title: z.ZodString;
2566
+ }, z.ZodAny, "strip">[];
2567
+ pagination: {
2568
+ limit: number;
2569
+ total: number;
2570
+ skip: number;
2571
+ };
2572
+ };
2573
+ }>, z.ZodObject<{
2574
+ format: z.ZodLiteral<OutgoingMessageFormat.attachment>;
2575
+ message: z.ZodObject<{
2576
+ attachment: z.ZodObject<{
2577
+ type: z.ZodNativeEnum<typeof FileType>;
2578
+ payload: z.ZodUnion<[z.ZodObject<{
2579
+ id: z.ZodNullable<z.ZodString>;
2580
+ }, "strip", z.ZodTypeAny, {
2581
+ id: string | null;
2582
+ }, {
2583
+ id: string | null;
2584
+ }>, z.ZodObject<{
2585
+ url: z.ZodString;
2586
+ }, "strip", z.ZodTypeAny, {
2587
+ url: string;
2588
+ }, {
2589
+ url: string;
2590
+ }>]>;
2591
+ }, "strip", z.ZodTypeAny, {
2592
+ type: FileType;
2593
+ payload: {
2594
+ id: string | null;
2595
+ } | {
2596
+ url: string;
2597
+ };
2598
+ }, {
2599
+ type: FileType;
2600
+ payload: {
2601
+ id: string | null;
2602
+ } | {
2603
+ url: string;
2604
+ };
2605
+ }>;
2606
+ quickReplies: z.ZodOptional<z.ZodArray<z.ZodObject<{
2607
+ content_type: z.ZodNativeEnum<typeof QuickReplyType>;
2608
+ title: z.ZodString;
2609
+ payload: z.ZodString;
2610
+ }, "strip", z.ZodTypeAny, {
2611
+ title: string;
2612
+ payload: string;
2613
+ content_type: QuickReplyType;
2614
+ }, {
2615
+ title: string;
2616
+ payload: string;
2617
+ content_type: QuickReplyType;
2618
+ }>, "many">>;
2619
+ }, "strip", z.ZodTypeAny, {
2620
+ attachment: {
2621
+ type: FileType;
2622
+ payload: {
2623
+ id: string | null;
2624
+ } | {
2625
+ url: string;
2626
+ };
2627
+ };
2628
+ quickReplies?: {
2629
+ title: string;
2630
+ payload: string;
2631
+ content_type: QuickReplyType;
2632
+ }[] | undefined;
2633
+ }, {
2634
+ attachment: {
2635
+ type: FileType;
2636
+ payload: {
2637
+ id: string | null;
2638
+ } | {
2639
+ url: string;
2640
+ };
2641
+ };
2642
+ quickReplies?: {
2643
+ title: string;
2644
+ payload: string;
2645
+ content_type: QuickReplyType;
2646
+ }[] | undefined;
2647
+ }>;
2648
+ }, "strip", z.ZodTypeAny, {
2649
+ format: OutgoingMessageFormat.attachment;
2650
+ message: {
2651
+ attachment: {
2652
+ type: FileType;
2653
+ payload: {
2654
+ id: string | null;
2655
+ } | {
2656
+ url: string;
2657
+ };
2658
+ };
2659
+ quickReplies?: {
2660
+ title: string;
2661
+ payload: string;
2662
+ content_type: QuickReplyType;
2663
+ }[] | undefined;
2664
+ };
2665
+ }, {
2666
+ format: OutgoingMessageFormat.attachment;
2667
+ message: {
2668
+ attachment: {
2669
+ type: FileType;
2670
+ payload: {
2671
+ id: string | null;
2672
+ } | {
2673
+ url: string;
2674
+ };
2675
+ };
2676
+ quickReplies?: {
2677
+ title: string;
2678
+ payload: string;
2679
+ content_type: QuickReplyType;
2680
+ }[] | undefined;
2681
+ };
2682
+ }>]>;
2683
+ export type StdOutgoingMessageEnvelope = z.infer<typeof stdOutgoingMessageEnvelopeSchema>;
2684
+ export declare const stdOutgoingEnvelopeSchema: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
2685
+ format: z.ZodLiteral<OutgoingMessageFormat.text>;
2686
+ message: z.ZodObject<{
2687
+ text: z.ZodString;
2688
+ }, "strip", z.ZodTypeAny, {
2689
+ text: string;
2690
+ }, {
2691
+ text: string;
2692
+ }>;
2693
+ }, "strip", z.ZodTypeAny, {
2694
+ format: OutgoingMessageFormat.text;
2695
+ message: {
2696
+ text: string;
2697
+ };
2698
+ }, {
2699
+ format: OutgoingMessageFormat.text;
2700
+ message: {
2701
+ text: string;
2702
+ };
2703
+ }>, z.ZodObject<{
2704
+ format: z.ZodLiteral<OutgoingMessageFormat.quickReplies>;
2705
+ message: z.ZodObject<{
2706
+ text: z.ZodString;
2707
+ quickReplies: z.ZodArray<z.ZodObject<{
2708
+ content_type: z.ZodNativeEnum<typeof QuickReplyType>;
2709
+ title: z.ZodString;
2710
+ payload: z.ZodString;
2711
+ }, "strip", z.ZodTypeAny, {
2712
+ title: string;
2713
+ payload: string;
2714
+ content_type: QuickReplyType;
2715
+ }, {
2716
+ title: string;
2717
+ payload: string;
2718
+ content_type: QuickReplyType;
2719
+ }>, "many">;
2720
+ }, "strip", z.ZodTypeAny, {
2721
+ text: string;
2722
+ quickReplies: {
2723
+ title: string;
2724
+ payload: string;
2725
+ content_type: QuickReplyType;
2726
+ }[];
2727
+ }, {
2728
+ text: string;
2729
+ quickReplies: {
2730
+ title: string;
2731
+ payload: string;
2732
+ content_type: QuickReplyType;
2733
+ }[];
2734
+ }>;
2735
+ }, "strip", z.ZodTypeAny, {
2736
+ format: OutgoingMessageFormat.quickReplies;
2737
+ message: {
2738
+ text: string;
2739
+ quickReplies: {
2740
+ title: string;
2741
+ payload: string;
2742
+ content_type: QuickReplyType;
2743
+ }[];
2744
+ };
2745
+ }, {
2746
+ format: OutgoingMessageFormat.quickReplies;
2747
+ message: {
2748
+ text: string;
2749
+ quickReplies: {
2750
+ title: string;
2751
+ payload: string;
2752
+ content_type: QuickReplyType;
2753
+ }[];
2754
+ };
2755
+ }>, z.ZodObject<{
2756
+ format: z.ZodLiteral<OutgoingMessageFormat.buttons>;
2757
+ message: z.ZodObject<{
2758
+ text: z.ZodString;
2759
+ buttons: z.ZodArray<z.ZodUnion<[z.ZodObject<{
2760
+ type: z.ZodLiteral<import("./button").ButtonType.postback>;
2761
+ title: z.ZodString;
2762
+ payload: z.ZodString;
2763
+ }, "strip", z.ZodTypeAny, {
2764
+ type: import("./button").ButtonType.postback;
2765
+ title: string;
2766
+ payload: string;
2767
+ }, {
2768
+ type: import("./button").ButtonType.postback;
2769
+ title: string;
2770
+ payload: string;
2771
+ }>, z.ZodObject<{
2772
+ type: z.ZodLiteral<import("./button").ButtonType.web_url>;
2773
+ title: z.ZodString;
2774
+ url: z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>;
2775
+ messenger_extensions: z.ZodOptional<z.ZodBoolean>;
2776
+ webview_height_ratio: z.ZodOptional<z.ZodEnum<["compact", "tall", "full"]>>;
2777
+ }, "strip", z.ZodTypeAny, {
2778
+ type: import("./button").ButtonType.web_url;
2779
+ title: string;
2780
+ url: string;
2781
+ messenger_extensions?: boolean | undefined;
2782
+ webview_height_ratio?: "compact" | "tall" | "full" | undefined;
2783
+ }, {
2784
+ type: import("./button").ButtonType.web_url;
2785
+ title: string;
2786
+ url: string;
2787
+ messenger_extensions?: boolean | undefined;
2788
+ webview_height_ratio?: "compact" | "tall" | "full" | undefined;
2789
+ }>]>, "many">;
2790
+ }, "strip", z.ZodTypeAny, {
2791
+ text: string;
2792
+ buttons: ({
2793
+ type: import("./button").ButtonType.postback;
2794
+ title: string;
2795
+ payload: string;
2796
+ } | {
2797
+ type: import("./button").ButtonType.web_url;
2798
+ title: string;
2799
+ url: string;
2800
+ messenger_extensions?: boolean | undefined;
2801
+ webview_height_ratio?: "compact" | "tall" | "full" | undefined;
2802
+ })[];
2803
+ }, {
2804
+ text: string;
2805
+ buttons: ({
2806
+ type: import("./button").ButtonType.postback;
2807
+ title: string;
2808
+ payload: string;
2809
+ } | {
2810
+ type: import("./button").ButtonType.web_url;
2811
+ title: string;
2812
+ url: string;
2813
+ messenger_extensions?: boolean | undefined;
2814
+ webview_height_ratio?: "compact" | "tall" | "full" | undefined;
2815
+ })[];
2816
+ }>;
2817
+ }, "strip", z.ZodTypeAny, {
2818
+ format: OutgoingMessageFormat.buttons;
2819
+ message: {
2820
+ text: string;
2821
+ buttons: ({
2822
+ type: import("./button").ButtonType.postback;
2823
+ title: string;
2824
+ payload: string;
2825
+ } | {
2826
+ type: import("./button").ButtonType.web_url;
2827
+ title: string;
2828
+ url: string;
2829
+ messenger_extensions?: boolean | undefined;
2830
+ webview_height_ratio?: "compact" | "tall" | "full" | undefined;
2831
+ })[];
2832
+ };
2833
+ }, {
2834
+ format: OutgoingMessageFormat.buttons;
2835
+ message: {
2836
+ text: string;
2837
+ buttons: ({
2838
+ type: import("./button").ButtonType.postback;
2839
+ title: string;
2840
+ payload: string;
2841
+ } | {
2842
+ type: import("./button").ButtonType.web_url;
2843
+ title: string;
2844
+ url: string;
2845
+ messenger_extensions?: boolean | undefined;
2846
+ webview_height_ratio?: "compact" | "tall" | "full" | undefined;
2847
+ })[];
2848
+ };
2849
+ }>, z.ZodObject<{
2850
+ format: z.ZodEnum<["list", "carousel"]>;
2851
+ message: z.ZodObject<{
2852
+ options: z.ZodObject<{
2853
+ display: z.ZodEnum<["list", "carousel"]>;
2854
+ fields: z.ZodObject<{
2855
+ title: z.ZodString;
2856
+ subtitle: z.ZodNullable<z.ZodString>;
2857
+ image_url: z.ZodNullable<z.ZodString>;
2858
+ url: z.ZodOptional<z.ZodString>;
2859
+ action_title: z.ZodOptional<z.ZodString>;
2860
+ action_payload: z.ZodOptional<z.ZodString>;
2861
+ }, "strip", z.ZodTypeAny, {
2862
+ title: string;
2863
+ subtitle: string | null;
2864
+ image_url: string | null;
2865
+ url?: string | undefined;
2866
+ action_title?: string | undefined;
2867
+ action_payload?: string | undefined;
2868
+ }, {
2869
+ title: string;
2870
+ subtitle: string | null;
2871
+ image_url: string | null;
2872
+ url?: string | undefined;
2873
+ action_title?: string | undefined;
2874
+ action_payload?: string | undefined;
2875
+ }>;
2876
+ buttons: z.ZodArray<z.ZodUnion<[z.ZodObject<{
2877
+ type: z.ZodLiteral<import("./button").ButtonType.postback>;
2878
+ title: z.ZodString;
2879
+ payload: z.ZodString;
2880
+ }, "strip", z.ZodTypeAny, {
2881
+ type: import("./button").ButtonType.postback;
2882
+ title: string;
2883
+ payload: string;
2884
+ }, {
2885
+ type: import("./button").ButtonType.postback;
2886
+ title: string;
2887
+ payload: string;
2888
+ }>, z.ZodObject<{
2889
+ type: z.ZodLiteral<import("./button").ButtonType.web_url>;
2890
+ title: z.ZodString;
2891
+ url: z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>;
2892
+ messenger_extensions: z.ZodOptional<z.ZodBoolean>;
2893
+ webview_height_ratio: z.ZodOptional<z.ZodEnum<["compact", "tall", "full"]>>;
2894
+ }, "strip", z.ZodTypeAny, {
2895
+ type: import("./button").ButtonType.web_url;
2896
+ title: string;
2897
+ url: string;
2898
+ messenger_extensions?: boolean | undefined;
2899
+ webview_height_ratio?: "compact" | "tall" | "full" | undefined;
2900
+ }, {
2901
+ type: import("./button").ButtonType.web_url;
2902
+ title: string;
2903
+ url: string;
2904
+ messenger_extensions?: boolean | undefined;
2905
+ webview_height_ratio?: "compact" | "tall" | "full" | undefined;
2906
+ }>]>, "many">;
2907
+ limit: z.ZodNumber;
2908
+ query: z.ZodOptional<z.ZodAny>;
2909
+ entity: z.ZodOptional<z.ZodString>;
2910
+ top_element_style: z.ZodOptional<z.ZodEnum<["large", "compact"]>>;
2911
+ }, "strip", z.ZodTypeAny, {
2912
+ display: "list" | "carousel";
2913
+ fields: {
2914
+ title: string;
2915
+ subtitle: string | null;
2916
+ image_url: string | null;
2917
+ url?: string | undefined;
2918
+ action_title?: string | undefined;
2919
+ action_payload?: string | undefined;
2920
+ };
2921
+ buttons: ({
2922
+ type: import("./button").ButtonType.postback;
2923
+ title: string;
2924
+ payload: string;
2925
+ } | {
2926
+ type: import("./button").ButtonType.web_url;
2927
+ title: string;
2928
+ url: string;
2929
+ messenger_extensions?: boolean | undefined;
2930
+ webview_height_ratio?: "compact" | "tall" | "full" | undefined;
2931
+ })[];
2932
+ limit: number;
2933
+ query?: any;
2934
+ entity?: string | undefined;
2935
+ top_element_style?: "compact" | "large" | undefined;
2936
+ }, {
2937
+ display: "list" | "carousel";
2938
+ fields: {
2939
+ title: string;
2940
+ subtitle: string | null;
2941
+ image_url: string | null;
2942
+ url?: string | undefined;
2943
+ action_title?: string | undefined;
2944
+ action_payload?: string | undefined;
2945
+ };
2946
+ buttons: ({
2947
+ type: import("./button").ButtonType.postback;
2948
+ title: string;
2949
+ payload: string;
2950
+ } | {
2951
+ type: import("./button").ButtonType.web_url;
2952
+ title: string;
2953
+ url: string;
2954
+ messenger_extensions?: boolean | undefined;
2955
+ webview_height_ratio?: "compact" | "tall" | "full" | undefined;
2956
+ })[];
2957
+ limit: number;
2958
+ query?: any;
2959
+ entity?: string | undefined;
2960
+ top_element_style?: "compact" | "large" | undefined;
2961
+ }>;
2962
+ elements: z.ZodArray<z.ZodObject<{
2963
+ id: z.ZodString;
2964
+ title: z.ZodString;
2965
+ }, "strip", z.ZodAny, z.objectOutputType<{
2966
+ id: z.ZodString;
2967
+ title: z.ZodString;
2968
+ }, z.ZodAny, "strip">, z.objectInputType<{
2969
+ id: z.ZodString;
2970
+ title: z.ZodString;
2971
+ }, z.ZodAny, "strip">>, "many">;
2972
+ pagination: z.ZodObject<{
2973
+ total: z.ZodNumber;
2974
+ skip: z.ZodNumber;
2975
+ limit: z.ZodNumber;
2976
+ }, "strip", z.ZodTypeAny, {
2977
+ limit: number;
2978
+ total: number;
2979
+ skip: number;
2980
+ }, {
2981
+ limit: number;
2982
+ total: number;
2983
+ skip: number;
2984
+ }>;
2985
+ }, "strip", z.ZodTypeAny, {
2986
+ options: {
2987
+ display: "list" | "carousel";
2988
+ fields: {
2989
+ title: string;
2990
+ subtitle: string | null;
2991
+ image_url: string | null;
2992
+ url?: string | undefined;
2993
+ action_title?: string | undefined;
2994
+ action_payload?: string | undefined;
2995
+ };
2996
+ buttons: ({
2997
+ type: import("./button").ButtonType.postback;
2998
+ title: string;
2999
+ payload: string;
3000
+ } | {
3001
+ type: import("./button").ButtonType.web_url;
3002
+ title: string;
3003
+ url: string;
3004
+ messenger_extensions?: boolean | undefined;
3005
+ webview_height_ratio?: "compact" | "tall" | "full" | undefined;
3006
+ })[];
3007
+ limit: number;
3008
+ query?: any;
3009
+ entity?: string | undefined;
3010
+ top_element_style?: "compact" | "large" | undefined;
3011
+ };
3012
+ elements: z.objectOutputType<{
3013
+ id: z.ZodString;
3014
+ title: z.ZodString;
3015
+ }, z.ZodAny, "strip">[];
3016
+ pagination: {
3017
+ limit: number;
3018
+ total: number;
3019
+ skip: number;
3020
+ };
3021
+ }, {
3022
+ options: {
3023
+ display: "list" | "carousel";
3024
+ fields: {
3025
+ title: string;
3026
+ subtitle: string | null;
3027
+ image_url: string | null;
3028
+ url?: string | undefined;
3029
+ action_title?: string | undefined;
3030
+ action_payload?: string | undefined;
3031
+ };
3032
+ buttons: ({
3033
+ type: import("./button").ButtonType.postback;
3034
+ title: string;
3035
+ payload: string;
3036
+ } | {
3037
+ type: import("./button").ButtonType.web_url;
3038
+ title: string;
3039
+ url: string;
3040
+ messenger_extensions?: boolean | undefined;
3041
+ webview_height_ratio?: "compact" | "tall" | "full" | undefined;
3042
+ })[];
3043
+ limit: number;
3044
+ query?: any;
3045
+ entity?: string | undefined;
3046
+ top_element_style?: "compact" | "large" | undefined;
3047
+ };
3048
+ elements: z.objectInputType<{
3049
+ id: z.ZodString;
3050
+ title: z.ZodString;
3051
+ }, z.ZodAny, "strip">[];
3052
+ pagination: {
3053
+ limit: number;
3054
+ total: number;
3055
+ skip: number;
3056
+ };
3057
+ }>;
3058
+ }, "strip", z.ZodTypeAny, {
3059
+ format: "list" | "carousel";
3060
+ message: {
3061
+ options: {
3062
+ display: "list" | "carousel";
3063
+ fields: {
3064
+ title: string;
3065
+ subtitle: string | null;
3066
+ image_url: string | null;
3067
+ url?: string | undefined;
3068
+ action_title?: string | undefined;
3069
+ action_payload?: string | undefined;
3070
+ };
3071
+ buttons: ({
3072
+ type: import("./button").ButtonType.postback;
3073
+ title: string;
3074
+ payload: string;
3075
+ } | {
3076
+ type: import("./button").ButtonType.web_url;
3077
+ title: string;
3078
+ url: string;
3079
+ messenger_extensions?: boolean | undefined;
3080
+ webview_height_ratio?: "compact" | "tall" | "full" | undefined;
3081
+ })[];
3082
+ limit: number;
3083
+ query?: any;
3084
+ entity?: string | undefined;
3085
+ top_element_style?: "compact" | "large" | undefined;
3086
+ };
3087
+ elements: z.objectOutputType<{
3088
+ id: z.ZodString;
3089
+ title: z.ZodString;
3090
+ }, z.ZodAny, "strip">[];
3091
+ pagination: {
3092
+ limit: number;
3093
+ total: number;
3094
+ skip: number;
3095
+ };
3096
+ };
3097
+ }, {
3098
+ format: "list" | "carousel";
3099
+ message: {
3100
+ options: {
3101
+ display: "list" | "carousel";
3102
+ fields: {
3103
+ title: string;
3104
+ subtitle: string | null;
3105
+ image_url: string | null;
3106
+ url?: string | undefined;
3107
+ action_title?: string | undefined;
3108
+ action_payload?: string | undefined;
3109
+ };
3110
+ buttons: ({
3111
+ type: import("./button").ButtonType.postback;
3112
+ title: string;
3113
+ payload: string;
3114
+ } | {
3115
+ type: import("./button").ButtonType.web_url;
3116
+ title: string;
3117
+ url: string;
3118
+ messenger_extensions?: boolean | undefined;
3119
+ webview_height_ratio?: "compact" | "tall" | "full" | undefined;
3120
+ })[];
3121
+ limit: number;
3122
+ query?: any;
3123
+ entity?: string | undefined;
3124
+ top_element_style?: "compact" | "large" | undefined;
3125
+ };
3126
+ elements: z.objectInputType<{
3127
+ id: z.ZodString;
3128
+ title: z.ZodString;
3129
+ }, z.ZodAny, "strip">[];
3130
+ pagination: {
3131
+ limit: number;
3132
+ total: number;
3133
+ skip: number;
3134
+ };
3135
+ };
3136
+ }>, z.ZodObject<{
3137
+ format: z.ZodLiteral<OutgoingMessageFormat.attachment>;
3138
+ message: z.ZodObject<{
3139
+ attachment: z.ZodObject<{
3140
+ type: z.ZodNativeEnum<typeof FileType>;
3141
+ payload: z.ZodUnion<[z.ZodObject<{
3142
+ id: z.ZodNullable<z.ZodString>;
3143
+ }, "strip", z.ZodTypeAny, {
3144
+ id: string | null;
3145
+ }, {
3146
+ id: string | null;
3147
+ }>, z.ZodObject<{
3148
+ url: z.ZodString;
3149
+ }, "strip", z.ZodTypeAny, {
3150
+ url: string;
3151
+ }, {
3152
+ url: string;
3153
+ }>]>;
3154
+ }, "strip", z.ZodTypeAny, {
3155
+ type: FileType;
3156
+ payload: {
3157
+ id: string | null;
3158
+ } | {
3159
+ url: string;
3160
+ };
3161
+ }, {
3162
+ type: FileType;
3163
+ payload: {
3164
+ id: string | null;
3165
+ } | {
3166
+ url: string;
3167
+ };
3168
+ }>;
3169
+ quickReplies: z.ZodOptional<z.ZodArray<z.ZodObject<{
3170
+ content_type: z.ZodNativeEnum<typeof QuickReplyType>;
3171
+ title: z.ZodString;
3172
+ payload: z.ZodString;
3173
+ }, "strip", z.ZodTypeAny, {
3174
+ title: string;
3175
+ payload: string;
3176
+ content_type: QuickReplyType;
3177
+ }, {
3178
+ title: string;
3179
+ payload: string;
3180
+ content_type: QuickReplyType;
3181
+ }>, "many">>;
3182
+ }, "strip", z.ZodTypeAny, {
3183
+ attachment: {
3184
+ type: FileType;
3185
+ payload: {
3186
+ id: string | null;
3187
+ } | {
3188
+ url: string;
3189
+ };
3190
+ };
3191
+ quickReplies?: {
3192
+ title: string;
3193
+ payload: string;
3194
+ content_type: QuickReplyType;
3195
+ }[] | undefined;
3196
+ }, {
3197
+ attachment: {
3198
+ type: FileType;
3199
+ payload: {
3200
+ id: string | null;
3201
+ } | {
3202
+ url: string;
3203
+ };
3204
+ };
3205
+ quickReplies?: {
3206
+ title: string;
3207
+ payload: string;
3208
+ content_type: QuickReplyType;
3209
+ }[] | undefined;
3210
+ }>;
3211
+ }, "strip", z.ZodTypeAny, {
3212
+ format: OutgoingMessageFormat.attachment;
3213
+ message: {
3214
+ attachment: {
3215
+ type: FileType;
3216
+ payload: {
3217
+ id: string | null;
3218
+ } | {
3219
+ url: string;
3220
+ };
3221
+ };
3222
+ quickReplies?: {
3223
+ title: string;
3224
+ payload: string;
3225
+ content_type: QuickReplyType;
3226
+ }[] | undefined;
3227
+ };
3228
+ }, {
3229
+ format: OutgoingMessageFormat.attachment;
3230
+ message: {
3231
+ attachment: {
3232
+ type: FileType;
3233
+ payload: {
3234
+ id: string | null;
3235
+ } | {
3236
+ url: string;
3237
+ };
3238
+ };
3239
+ quickReplies?: {
3240
+ title: string;
3241
+ payload: string;
3242
+ content_type: QuickReplyType;
3243
+ }[] | undefined;
3244
+ };
3245
+ }>]>, z.ZodObject<{
3246
+ format: z.ZodLiteral<OutgoingMessageFormat.system>;
3247
+ message: z.ZodObject<{
3248
+ outcome: z.ZodOptional<z.ZodString>;
3249
+ data: z.ZodOptional<z.ZodAny>;
3250
+ }, "strip", z.ZodTypeAny, {
3251
+ outcome?: string | undefined;
3252
+ data?: any;
3253
+ }, {
3254
+ outcome?: string | undefined;
3255
+ data?: any;
3256
+ }>;
3257
+ }, "strip", z.ZodTypeAny, {
3258
+ format: OutgoingMessageFormat.system;
3259
+ message: {
3260
+ outcome?: string | undefined;
3261
+ data?: any;
3262
+ };
3263
+ }, {
3264
+ format: OutgoingMessageFormat.system;
3265
+ message: {
3266
+ outcome?: string | undefined;
3267
+ data?: any;
3268
+ };
3269
+ }>]>;
3270
+ export type StdOutgoingEnvelope = z.infer<typeof stdOutgoingEnvelopeSchema>;
3271
+ export declare const validMessageTextSchema: z.ZodObject<{
3272
+ text: z.ZodString;
3273
+ }, "strip", z.ZodTypeAny, {
3274
+ text: string;
3275
+ }, {
3276
+ text: string;
3277
+ }>;
3278
+ export declare const textSchema: z.ZodArray<z.ZodString, "many">;
3279
+ export declare const pluginBlockMessageSchema: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodAny>, Record<string, any>, Record<string, any>>;
3280
+ export declare const blockMessageObjectSchema: z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodString, z.ZodObject<{
3281
+ text: z.ZodString;
3282
+ buttons: z.ZodArray<z.ZodUnion<[z.ZodObject<{
3283
+ type: z.ZodLiteral<import("./button").ButtonType.postback>;
3284
+ title: z.ZodString;
3285
+ payload: z.ZodString;
3286
+ }, "strip", z.ZodTypeAny, {
3287
+ type: import("./button").ButtonType.postback;
3288
+ title: string;
3289
+ payload: string;
3290
+ }, {
3291
+ type: import("./button").ButtonType.postback;
3292
+ title: string;
3293
+ payload: string;
3294
+ }>, z.ZodObject<{
3295
+ type: z.ZodLiteral<import("./button").ButtonType.web_url>;
3296
+ title: z.ZodString;
3297
+ url: z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>;
3298
+ messenger_extensions: z.ZodOptional<z.ZodBoolean>;
3299
+ webview_height_ratio: z.ZodOptional<z.ZodEnum<["compact", "tall", "full"]>>;
3300
+ }, "strip", z.ZodTypeAny, {
3301
+ type: import("./button").ButtonType.web_url;
3302
+ title: string;
3303
+ url: string;
3304
+ messenger_extensions?: boolean | undefined;
3305
+ webview_height_ratio?: "compact" | "tall" | "full" | undefined;
3306
+ }, {
3307
+ type: import("./button").ButtonType.web_url;
3308
+ title: string;
3309
+ url: string;
3310
+ messenger_extensions?: boolean | undefined;
3311
+ webview_height_ratio?: "compact" | "tall" | "full" | undefined;
3312
+ }>]>, "many">;
3313
+ }, "strip", z.ZodTypeAny, {
3314
+ text: string;
3315
+ buttons: ({
3316
+ type: import("./button").ButtonType.postback;
3317
+ title: string;
3318
+ payload: string;
3319
+ } | {
3320
+ type: import("./button").ButtonType.web_url;
3321
+ title: string;
3322
+ url: string;
3323
+ messenger_extensions?: boolean | undefined;
3324
+ webview_height_ratio?: "compact" | "tall" | "full" | undefined;
3325
+ })[];
3326
+ }, {
3327
+ text: string;
3328
+ buttons: ({
3329
+ type: import("./button").ButtonType.postback;
3330
+ title: string;
3331
+ payload: string;
3332
+ } | {
3333
+ type: import("./button").ButtonType.web_url;
3334
+ title: string;
3335
+ url: string;
3336
+ messenger_extensions?: boolean | undefined;
3337
+ webview_height_ratio?: "compact" | "tall" | "full" | undefined;
3338
+ })[];
3339
+ }>, z.ZodObject<{
3340
+ text: z.ZodString;
3341
+ quickReplies: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
3342
+ content_type: z.ZodNativeEnum<typeof QuickReplyType>;
3343
+ title: z.ZodOptional<z.ZodString>;
3344
+ payload: z.ZodOptional<z.ZodString>;
3345
+ }, "strip", z.ZodTypeAny, {
3346
+ content_type: QuickReplyType;
3347
+ title?: string | undefined;
3348
+ payload?: string | undefined;
3349
+ }, {
3350
+ content_type: QuickReplyType;
3351
+ title?: string | undefined;
3352
+ payload?: string | undefined;
3353
+ }>, {
3354
+ content_type: QuickReplyType;
3355
+ title?: string | undefined;
3356
+ payload?: string | undefined;
3357
+ }, {
3358
+ content_type: QuickReplyType;
3359
+ title?: string | undefined;
3360
+ payload?: string | undefined;
3361
+ }>, "many">>;
3362
+ }, "strip", z.ZodTypeAny, {
3363
+ text: string;
3364
+ quickReplies?: {
3365
+ content_type: QuickReplyType;
3366
+ title?: string | undefined;
3367
+ payload?: string | undefined;
3368
+ }[] | undefined;
3369
+ }, {
3370
+ text: string;
3371
+ quickReplies?: {
3372
+ content_type: QuickReplyType;
3373
+ title?: string | undefined;
3374
+ payload?: string | undefined;
3375
+ }[] | undefined;
3376
+ }>, z.ZodObject<{
3377
+ elements: z.ZodBoolean;
3378
+ }, "strip", z.ZodTypeAny, {
3379
+ elements: boolean;
3380
+ }, {
3381
+ elements: boolean;
3382
+ }>, z.ZodObject<{
3383
+ text: z.ZodOptional<z.ZodString>;
3384
+ attachment: z.ZodObject<{
3385
+ type: z.ZodNativeEnum<typeof FileType>;
3386
+ payload: z.ZodUnion<[z.ZodObject<{
3387
+ url: z.ZodString;
3388
+ }, "strip", z.ZodTypeAny, {
3389
+ url: string;
3390
+ }, {
3391
+ url: string;
3392
+ }>, z.ZodObject<{
3393
+ id: z.ZodNullable<z.ZodString>;
3394
+ }, "strip", z.ZodTypeAny, {
3395
+ id: string | null;
3396
+ }, {
3397
+ id: string | null;
3398
+ }>]>;
3399
+ }, "strip", z.ZodTypeAny, {
3400
+ type: FileType;
3401
+ payload: {
3402
+ url: string;
3403
+ } | {
3404
+ id: string | null;
3405
+ };
3406
+ }, {
3407
+ type: FileType;
3408
+ payload: {
3409
+ url: string;
3410
+ } | {
3411
+ id: string | null;
3412
+ };
3413
+ }>;
3414
+ }, "strip", z.ZodTypeAny, {
3415
+ attachment: {
3416
+ type: FileType;
3417
+ payload: {
3418
+ url: string;
3419
+ } | {
3420
+ id: string | null;
3421
+ };
3422
+ };
3423
+ text?: string | undefined;
3424
+ }, {
3425
+ attachment: {
3426
+ type: FileType;
3427
+ payload: {
3428
+ url: string;
3429
+ } | {
3430
+ id: string | null;
3431
+ };
3432
+ };
3433
+ text?: string | undefined;
3434
+ }>, z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodAny>, Record<string, any>, Record<string, any>>]>;