@hexabot-ai/api 3.0.0-alpha.3 → 3.1.1-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2103) hide show
  1. package/README.md +65 -21
  2. package/dist/actions/actions.module.d.ts +2 -0
  3. package/dist/actions/actions.module.js +24 -0
  4. package/dist/actions/actions.module.js.map +1 -0
  5. package/dist/actions/actions.service.d.ts +28 -0
  6. package/dist/actions/actions.service.js +74 -0
  7. package/dist/actions/actions.service.js.map +1 -0
  8. package/dist/actions/base-action.d.ts +19 -0
  9. package/dist/actions/base-action.js +49 -0
  10. package/dist/actions/base-action.js.map +1 -0
  11. package/dist/actions/create-action.d.ts +9 -0
  12. package/dist/actions/create-action.js +42 -0
  13. package/dist/actions/create-action.js.map +1 -0
  14. package/dist/actions/index.d.ts +5 -0
  15. package/dist/actions/index.js +22 -0
  16. package/dist/actions/index.js.map +1 -0
  17. package/dist/actions/types.d.ts +24 -0
  18. package/dist/actions/types.js +9 -0
  19. package/dist/actions/types.js.map +1 -0
  20. package/dist/analytics/analytics.module.js +13 -7
  21. package/dist/analytics/analytics.module.js.map +1 -1
  22. package/dist/analytics/controllers/stats.controller.d.ts +12 -0
  23. package/dist/analytics/controllers/stats.controller.js +88 -0
  24. package/dist/analytics/controllers/stats.controller.js.map +1 -0
  25. package/dist/analytics/dto/stats.dto.d.ts +40 -0
  26. package/dist/analytics/dto/stats.dto.js +112 -0
  27. package/dist/analytics/dto/stats.dto.js.map +1 -0
  28. package/dist/analytics/entities/stats.entity.d.ts +26 -0
  29. package/dist/analytics/entities/stats.entity.js +74 -0
  30. package/dist/analytics/entities/stats.entity.js.map +1 -0
  31. package/dist/analytics/enums/stats-type.enum.d.ts +9 -0
  32. package/dist/analytics/enums/stats-type.enum.js +14 -0
  33. package/dist/analytics/enums/stats-type.enum.js.map +1 -0
  34. package/dist/analytics/index.d.ts +6 -6
  35. package/dist/analytics/index.js +6 -6
  36. package/dist/analytics/index.js.map +1 -1
  37. package/dist/analytics/repositories/stats.repository.d.ts +8 -0
  38. package/dist/analytics/repositories/stats.repository.js +48 -0
  39. package/dist/analytics/repositories/stats.repository.js.map +1 -0
  40. package/dist/analytics/services/stats.service.d.ts +22 -0
  41. package/dist/analytics/services/stats.service.js +127 -0
  42. package/dist/analytics/services/stats.service.js.map +1 -0
  43. package/dist/analytics/utilities/a-month-ago.js +10 -0
  44. package/dist/analytics/utilities/a-month-ago.js.map +1 -0
  45. package/dist/app.controller.d.ts +2 -1
  46. package/dist/app.controller.js +4 -2
  47. package/dist/app.controller.js.map +1 -1
  48. package/dist/app.module.js +15 -4
  49. package/dist/app.module.js.map +1 -1
  50. package/dist/app.service.d.ts +21 -1
  51. package/dist/app.service.js +72 -2
  52. package/dist/app.service.js.map +1 -1
  53. package/dist/attachment/controllers/attachment.controller.d.ts +6 -6
  54. package/dist/attachment/controllers/attachment.controller.js +23 -24
  55. package/dist/attachment/controllers/attachment.controller.js.map +1 -1
  56. package/dist/attachment/dto/attachment.dto.d.ts +9 -9
  57. package/dist/attachment/dto/attachment.dto.js +11 -10
  58. package/dist/attachment/dto/attachment.dto.js.map +1 -1
  59. package/dist/attachment/entities/attachment.entity.d.ts +9 -3
  60. package/dist/attachment/entities/attachment.entity.js +20 -3
  61. package/dist/attachment/entities/attachment.entity.js.map +1 -1
  62. package/dist/attachment/guards/attachment-ability.guard.js +4 -14
  63. package/dist/attachment/guards/attachment-ability.guard.js.map +1 -1
  64. package/dist/attachment/mocks/attachment.mock.d.ts +2 -2
  65. package/dist/attachment/mocks/attachment.mock.js +3 -6
  66. package/dist/attachment/mocks/attachment.mock.js.map +1 -1
  67. package/dist/attachment/repositories/attachment.repository.d.ts +1 -2
  68. package/dist/attachment/repositories/attachment.repository.js +1 -5
  69. package/dist/attachment/repositories/attachment.repository.js.map +1 -1
  70. package/dist/attachment/services/attachment.service.d.ts +2 -2
  71. package/dist/attachment/services/attachment.service.js.map +1 -1
  72. package/dist/attachment/types/index.d.ts +0 -1
  73. package/dist/attachment/types/index.js +0 -1
  74. package/dist/attachment/types/index.js.map +1 -1
  75. package/dist/bindings/base-binding-kind.d.ts +18 -0
  76. package/dist/bindings/base-binding-kind.js +46 -0
  77. package/dist/bindings/base-binding-kind.js.map +1 -0
  78. package/dist/bindings/bindings.module.d.ts +2 -0
  79. package/dist/bindings/bindings.module.js +24 -0
  80. package/dist/bindings/bindings.module.js.map +1 -0
  81. package/dist/bindings/create-binding-kind.d.ts +7 -0
  82. package/dist/bindings/create-binding-kind.js +28 -0
  83. package/dist/bindings/create-binding-kind.js.map +1 -0
  84. package/dist/bindings/index.d.ts +3 -0
  85. package/dist/bindings/index.js +20 -0
  86. package/dist/bindings/index.js.map +1 -0
  87. package/dist/bindings/runtime-bindings.d.ts +28 -0
  88. package/dist/bindings/runtime-bindings.js +3 -0
  89. package/dist/bindings/runtime-bindings.js.map +1 -0
  90. package/dist/bindings/runtime-bindings.service.d.ts +24 -0
  91. package/dist/bindings/runtime-bindings.service.js +82 -0
  92. package/dist/bindings/runtime-bindings.service.js.map +1 -0
  93. package/dist/bootstrap.js +1 -2
  94. package/dist/bootstrap.js.map +1 -1
  95. package/dist/channel/channel.module.d.ts +0 -2
  96. package/dist/channel/channel.module.js +12 -8
  97. package/dist/channel/channel.module.js.map +1 -1
  98. package/dist/channel/channel.service.d.ts +8 -5
  99. package/dist/channel/channel.service.js +48 -48
  100. package/dist/channel/channel.service.js.map +1 -1
  101. package/dist/channel/index.d.ts +4 -2
  102. package/dist/channel/index.js +4 -2
  103. package/dist/channel/index.js.map +1 -1
  104. package/dist/channel/lib/Handler.d.ts +26 -36
  105. package/dist/channel/lib/Handler.js +43 -87
  106. package/dist/channel/lib/Handler.js.map +1 -1
  107. package/dist/channel/lib/__test__/common.mock.js +1 -5
  108. package/dist/channel/lib/__test__/common.mock.js.map +1 -1
  109. package/dist/channel/lib/__test__/subscriber.mock.js +4 -5
  110. package/dist/channel/lib/__test__/subscriber.mock.js.map +1 -1
  111. package/dist/channel/lib/inbound-events/channel-inbound-event-context.d.ts +22 -0
  112. package/dist/channel/lib/inbound-events/channel-inbound-event-context.js +49 -0
  113. package/dist/channel/lib/inbound-events/channel-inbound-event-context.js.map +1 -0
  114. package/dist/channel/lib/inbound-events/channel-inbound-event-decoder.d.ts +7 -0
  115. package/dist/channel/lib/inbound-events/channel-inbound-event-decoder.js +3 -0
  116. package/dist/channel/lib/inbound-events/channel-inbound-event-decoder.js.map +1 -0
  117. package/dist/channel/lib/inbound-events/channel-inbound-event.d.ts +32 -0
  118. package/dist/channel/lib/inbound-events/channel-inbound-event.js +87 -0
  119. package/dist/channel/lib/inbound-events/channel-inbound-event.js.map +1 -0
  120. package/dist/channel/lib/inbound-events/index.d.ts +5 -0
  121. package/dist/channel/lib/inbound-events/index.js +22 -0
  122. package/dist/channel/lib/inbound-events/index.js.map +1 -0
  123. package/dist/channel/lib/inbound-events/message-inbound-event.d.ts +20 -0
  124. package/dist/channel/lib/inbound-events/message-inbound-event.js +57 -0
  125. package/dist/channel/lib/inbound-events/message-inbound-event.js.map +1 -0
  126. package/dist/channel/lib/inbound-events/synthetic-message-inbound-event.d.ts +15 -0
  127. package/dist/channel/lib/inbound-events/synthetic-message-inbound-event.js +53 -0
  128. package/dist/channel/lib/inbound-events/synthetic-message-inbound-event.js.map +1 -0
  129. package/dist/channel/lib/outbound/channel-outbound-encoder.d.ts +19 -0
  130. package/dist/channel/lib/outbound/channel-outbound-encoder.js +77 -0
  131. package/dist/channel/lib/outbound/channel-outbound-encoder.js.map +1 -0
  132. package/dist/channel/lib/outbound/index.d.ts +1 -0
  133. package/dist/channel/lib/outbound/index.js +18 -0
  134. package/dist/channel/lib/outbound/index.js.map +1 -0
  135. package/dist/channel/services/channel-attachment.service.d.ts +19 -0
  136. package/dist/channel/services/channel-attachment.service.js +78 -0
  137. package/dist/channel/services/channel-attachment.service.js.map +1 -0
  138. package/dist/channel/services/channel-download.service.d.ts +9 -0
  139. package/dist/channel/services/channel-download.service.js +32 -0
  140. package/dist/channel/services/channel-download.service.js.map +1 -0
  141. package/dist/channel/types.d.ts +3 -5
  142. package/dist/channel/webhook.controller.d.ts +9 -2
  143. package/dist/channel/webhook.controller.js +55 -12
  144. package/dist/channel/webhook.controller.js.map +1 -1
  145. package/dist/chat/chat.module.js +13 -41
  146. package/dist/chat/chat.module.js.map +1 -1
  147. package/dist/chat/controllers/label-group.controller.d.ts +7 -7
  148. package/dist/chat/controllers/label-group.controller.js +18 -44
  149. package/dist/chat/controllers/label-group.controller.js.map +1 -1
  150. package/dist/chat/controllers/label.controller.d.ts +7 -7
  151. package/dist/chat/controllers/label.controller.js +18 -44
  152. package/dist/chat/controllers/label.controller.js.map +1 -1
  153. package/dist/chat/controllers/message.controller.d.ts +7 -5
  154. package/dist/chat/controllers/message.controller.js +42 -38
  155. package/dist/chat/controllers/message.controller.js.map +1 -1
  156. package/dist/chat/controllers/subscriber.controller.d.ts +6 -4
  157. package/dist/chat/controllers/subscriber.controller.js +31 -35
  158. package/dist/chat/controllers/subscriber.controller.js.map +1 -1
  159. package/dist/chat/controllers/thread.controller.d.ts +18 -0
  160. package/dist/chat/controllers/thread.controller.js +103 -0
  161. package/dist/chat/controllers/thread.controller.js.map +1 -0
  162. package/dist/chat/dto/label-group.dto.d.ts +5 -7
  163. package/dist/chat/dto/label-group.dto.js.map +1 -1
  164. package/dist/chat/dto/label.dto.d.ts +5 -7
  165. package/dist/chat/dto/label.dto.js.map +1 -1
  166. package/dist/chat/dto/message.dto.d.ts +9 -7
  167. package/dist/chat/dto/message.dto.js +16 -0
  168. package/dist/chat/dto/message.dto.js.map +1 -1
  169. package/dist/chat/dto/subscriber.dto.d.ts +13 -23
  170. package/dist/chat/dto/subscriber.dto.js +7 -54
  171. package/dist/chat/dto/subscriber.dto.js.map +1 -1
  172. package/dist/chat/dto/thread.dto.d.ts +34 -0
  173. package/dist/chat/dto/thread.dto.js +130 -0
  174. package/dist/chat/dto/thread.dto.js.map +1 -0
  175. package/dist/chat/entities/label-group.entity.d.ts +4 -1
  176. package/dist/chat/entities/label-group.entity.js +6 -0
  177. package/dist/chat/entities/label-group.entity.js.map +1 -1
  178. package/dist/chat/entities/label.entity.d.ts +4 -4
  179. package/dist/chat/entities/label.entity.js +6 -11
  180. package/dist/chat/entities/label.entity.js.map +1 -1
  181. package/dist/chat/entities/message.entity.d.ts +7 -1
  182. package/dist/chat/entities/message.entity.js +20 -0
  183. package/dist/chat/entities/message.entity.js.map +1 -1
  184. package/dist/chat/entities/subscriber.entity.d.ts +14 -13
  185. package/dist/chat/entities/subscriber.entity.js +15 -43
  186. package/dist/chat/entities/subscriber.entity.js.map +1 -1
  187. package/dist/chat/entities/thread.entity.d.ts +18 -0
  188. package/dist/chat/entities/thread.entity.js +66 -0
  189. package/dist/chat/entities/thread.entity.js.map +1 -0
  190. package/dist/chat/helpers/envelope-builder.d.ts +1 -1
  191. package/dist/chat/helpers/envelope-builder.js.map +1 -1
  192. package/dist/chat/helpers/envelope-factory.d.ts +39 -98
  193. package/dist/chat/helpers/envelope-factory.js +1 -30
  194. package/dist/chat/helpers/envelope-factory.js.map +1 -1
  195. package/dist/chat/index.d.ts +5 -31
  196. package/dist/chat/index.js +5 -31
  197. package/dist/chat/index.js.map +1 -1
  198. package/dist/chat/repositories/label-group.repository.d.ts +1 -2
  199. package/dist/chat/repositories/label-group.repository.js +1 -5
  200. package/dist/chat/repositories/label-group.repository.js.map +1 -1
  201. package/dist/chat/repositories/label.repository.d.ts +1 -2
  202. package/dist/chat/repositories/label.repository.js +1 -5
  203. package/dist/chat/repositories/label.repository.js.map +1 -1
  204. package/dist/chat/repositories/message.repository.d.ts +7 -6
  205. package/dist/chat/repositories/message.repository.js +55 -42
  206. package/dist/chat/repositories/message.repository.js.map +1 -1
  207. package/dist/chat/repositories/subscriber.repository.d.ts +8 -7
  208. package/dist/chat/repositories/subscriber.repository.js +55 -50
  209. package/dist/chat/repositories/subscriber.repository.js.map +1 -1
  210. package/dist/chat/repositories/thread.repository.d.ts +11 -0
  211. package/dist/chat/repositories/thread.repository.js +76 -0
  212. package/dist/chat/repositories/thread.repository.js.map +1 -0
  213. package/dist/chat/services/chat.service.d.ts +13 -25
  214. package/dist/chat/services/chat.service.js +65 -122
  215. package/dist/chat/services/chat.service.js.map +1 -1
  216. package/dist/chat/services/label-group.service.d.ts +1 -2
  217. package/dist/chat/services/label-group.service.js.map +1 -1
  218. package/dist/chat/services/label.service.d.ts +1 -2
  219. package/dist/chat/services/label.service.js.map +1 -1
  220. package/dist/chat/services/message.service.d.ts +8 -13
  221. package/dist/chat/services/message.service.js +10 -42
  222. package/dist/chat/services/message.service.js.map +1 -1
  223. package/dist/chat/services/subscriber.service.d.ts +26 -11
  224. package/dist/chat/services/subscriber.service.js +130 -40
  225. package/dist/chat/services/subscriber.service.js.map +1 -1
  226. package/dist/chat/services/thread.service.d.ts +33 -0
  227. package/dist/chat/services/thread.service.js +162 -0
  228. package/dist/chat/services/thread.service.js.map +1 -0
  229. package/dist/chat/types/attachment.d.ts +9 -39
  230. package/dist/chat/types/attachment.js +1 -1
  231. package/dist/chat/types/attachment.js.map +1 -1
  232. package/dist/chat/types/button.d.ts +8 -61
  233. package/dist/chat/types/button.js +45 -12
  234. package/dist/chat/types/button.js.map +1 -1
  235. package/dist/chat/types/channel.d.ts +2 -6
  236. package/dist/chat/types/channel.js +3 -5
  237. package/dist/chat/types/channel.js.map +1 -1
  238. package/dist/chat/types/message.d.ts +216 -3142
  239. package/dist/chat/types/message.js +5 -88
  240. package/dist/chat/types/message.js.map +1 -1
  241. package/dist/chat/types/options.d.ts +37 -299
  242. package/dist/chat/types/options.js +98 -14
  243. package/dist/chat/types/options.js.map +1 -1
  244. package/dist/chat/types/quick-reply.d.ts +11 -92
  245. package/dist/chat/types/quick-reply.js +9 -11
  246. package/dist/chat/types/quick-reply.js.map +1 -1
  247. package/dist/cms/cms.module.js +8 -0
  248. package/dist/cms/cms.module.js.map +1 -1
  249. package/dist/cms/controllers/content-type.controller.d.ts +5 -5
  250. package/dist/cms/controllers/content-type.controller.js +13 -17
  251. package/dist/cms/controllers/content-type.controller.js.map +1 -1
  252. package/dist/cms/controllers/content.controller.d.ts +13 -6
  253. package/dist/cms/controllers/content.controller.js +60 -26
  254. package/dist/cms/controllers/content.controller.js.map +1 -1
  255. package/dist/cms/controllers/menu.controller.d.ts +5 -5
  256. package/dist/cms/controllers/menu.controller.js +15 -35
  257. package/dist/cms/controllers/menu.controller.js.map +1 -1
  258. package/dist/cms/dto/content.dto.d.ts +8 -9
  259. package/dist/cms/dto/content.dto.js +5 -5
  260. package/dist/cms/dto/content.dto.js.map +1 -1
  261. package/dist/cms/dto/contentType.dto.d.ts +8 -8
  262. package/dist/cms/dto/contentType.dto.js +9 -15
  263. package/dist/cms/dto/contentType.dto.js.map +1 -1
  264. package/dist/cms/dto/menu.dto.d.ts +6 -7
  265. package/dist/cms/dto/menu.dto.js +6 -6
  266. package/dist/cms/dto/menu.dto.js.map +1 -1
  267. package/dist/cms/entities/content-type.entity.d.ts +6 -4
  268. package/dist/cms/entities/content-type.entity.js +8 -34
  269. package/dist/cms/entities/content-type.entity.js.map +1 -1
  270. package/dist/cms/entities/content.entity.d.ts +8 -6
  271. package/dist/cms/entities/content.entity.js +30 -16
  272. package/dist/cms/entities/content.entity.js.map +1 -1
  273. package/dist/cms/entities/menu.entity.d.ts +8 -9
  274. package/dist/cms/entities/menu.entity.js +20 -27
  275. package/dist/cms/entities/menu.entity.js.map +1 -1
  276. package/dist/cms/enums/menu-type.enum.d.ts +5 -0
  277. package/dist/cms/enums/menu-type.enum.js +10 -0
  278. package/dist/cms/enums/menu-type.enum.js.map +1 -0
  279. package/dist/cms/index.d.ts +4 -0
  280. package/dist/cms/index.js +4 -0
  281. package/dist/cms/index.js.map +1 -1
  282. package/dist/cms/repositories/content-type.repository.d.ts +2 -3
  283. package/dist/cms/repositories/content-type.repository.js +1 -5
  284. package/dist/cms/repositories/content-type.repository.js.map +1 -1
  285. package/dist/cms/repositories/content.repository.d.ts +7 -3
  286. package/dist/cms/repositories/content.repository.js +20 -10
  287. package/dist/cms/repositories/content.repository.js.map +1 -1
  288. package/dist/cms/repositories/menu.repository.d.ts +1 -2
  289. package/dist/cms/repositories/menu.repository.js +1 -5
  290. package/dist/cms/repositories/menu.repository.js.map +1 -1
  291. package/dist/cms/services/content-type.service.d.ts +17 -3
  292. package/dist/cms/services/content-type.service.js +11 -17
  293. package/dist/cms/services/content-type.service.js.map +1 -1
  294. package/dist/cms/services/content.service.d.ts +12 -7
  295. package/dist/cms/services/content.service.js +15 -12
  296. package/dist/cms/services/content.service.js.map +1 -1
  297. package/dist/cms/services/menu.service.d.ts +1 -2
  298. package/dist/cms/services/menu.service.js.map +1 -1
  299. package/dist/cms/services/rag-backend.service.d.ts +39 -0
  300. package/dist/cms/services/rag-backend.service.js +348 -0
  301. package/dist/cms/services/rag-backend.service.js.map +1 -0
  302. package/dist/cms/services/rag-indexer.service.d.ts +23 -0
  303. package/dist/cms/services/rag-indexer.service.js +182 -0
  304. package/dist/cms/services/rag-indexer.service.js.map +1 -0
  305. package/dist/cms/services/rag-keyword-index-recovery.d.ts +3 -0
  306. package/dist/cms/services/rag-keyword-index-recovery.js +74 -0
  307. package/dist/cms/services/rag-keyword-index-recovery.js.map +1 -0
  308. package/dist/cms/services/rag-retriever.service.d.ts +25 -0
  309. package/dist/cms/services/rag-retriever.service.js +177 -0
  310. package/dist/cms/services/rag-retriever.service.js.map +1 -0
  311. package/dist/cms/services/rag.service.d.ts +31 -0
  312. package/dist/cms/services/rag.service.js +164 -0
  313. package/dist/cms/services/rag.service.js.map +1 -0
  314. package/dist/cms/types/content.d.ts +0 -2
  315. package/dist/cms/types/content.js +0 -2
  316. package/dist/cms/types/content.js.map +1 -1
  317. package/dist/cms/types/rag.d.ts +15 -0
  318. package/dist/cms/types/rag.js +3 -0
  319. package/dist/cms/types/rag.js.map +1 -0
  320. package/dist/config/i18n/en/chatbot_settings.json +17 -0
  321. package/dist/config/i18n/en/contact.json +23 -0
  322. package/dist/config/i18n/en/messages.json +0 -8
  323. package/dist/config/i18n/en/rag_settings.json +21 -0
  324. package/dist/config/i18n/fr/chatbot_settings.json +17 -0
  325. package/dist/config/i18n/fr/contact.json +23 -0
  326. package/dist/config/i18n/fr/messages.json +4 -11
  327. package/dist/config/i18n/fr/rag_settings.json +21 -0
  328. package/dist/config/index.js +2 -8
  329. package/dist/config/index.js.map +1 -1
  330. package/dist/config/types.d.ts +0 -3
  331. package/dist/database/decorators/orm-event-hooks.decorator.d.ts +20 -0
  332. package/dist/database/decorators/orm-event-hooks.decorator.js +49 -0
  333. package/dist/database/decorators/orm-event-hooks.decorator.js.map +1 -0
  334. package/dist/database/entities/base.entity.d.ts +7 -5
  335. package/dist/database/entities/base.entity.js +9 -17
  336. package/dist/database/entities/base.entity.js.map +1 -1
  337. package/dist/extension/cleanup.service.d.ts +4 -4
  338. package/dist/extension/cleanup.service.js +14 -14
  339. package/dist/extension/cleanup.service.js.map +1 -1
  340. package/dist/extension/types.d.ts +7 -12
  341. package/dist/extensions/actions/ai/agent.action.d.ts +66 -0
  342. package/dist/extensions/actions/ai/agent.action.js +101 -0
  343. package/dist/extensions/actions/ai/agent.action.js.map +1 -0
  344. package/dist/extensions/actions/ai/ai-base.action.d.ts +88 -0
  345. package/dist/extensions/actions/ai/ai-base.action.js +548 -0
  346. package/dist/extensions/actions/ai/ai-base.action.js.map +1 -0
  347. package/dist/extensions/actions/ai/ai-schemas.d.ts +333 -0
  348. package/dist/extensions/actions/ai/ai-schemas.js +242 -0
  349. package/dist/extensions/actions/ai/ai-schemas.js.map +1 -0
  350. package/dist/extensions/actions/ai/generate-object.action.d.ts +10 -0
  351. package/dist/extensions/actions/ai/generate-object.action.js +43 -0
  352. package/dist/extensions/actions/ai/generate-object.action.js.map +1 -0
  353. package/dist/extensions/actions/ai/generate-object.base.action.d.ts +42 -0
  354. package/dist/extensions/actions/ai/generate-object.base.action.js +73 -0
  355. package/dist/extensions/actions/ai/generate-object.base.action.js.map +1 -0
  356. package/dist/extensions/actions/ai/generate-reply.action.d.ts +10 -0
  357. package/dist/extensions/actions/ai/generate-reply.action.js +39 -0
  358. package/dist/extensions/actions/ai/generate-reply.action.js.map +1 -0
  359. package/dist/extensions/actions/ai/generate-text.action.d.ts +10 -0
  360. package/dist/extensions/actions/ai/generate-text.action.js +43 -0
  361. package/dist/extensions/actions/ai/generate-text.action.js.map +1 -0
  362. package/dist/extensions/actions/ai/generate-text.base.action.d.ts +41 -0
  363. package/dist/extensions/actions/ai/generate-text.base.action.js +64 -0
  364. package/dist/extensions/actions/ai/generate-text.base.action.js.map +1 -0
  365. package/dist/extensions/actions/ai/i18n/en.translations.json +166 -0
  366. package/dist/extensions/actions/ai/i18n/fr.translations.json +166 -0
  367. package/dist/extensions/actions/ai/infer-object.action.d.ts +10 -0
  368. package/dist/extensions/actions/ai/infer-object.action.js +39 -0
  369. package/dist/extensions/actions/ai/infer-object.action.js.map +1 -0
  370. package/dist/extensions/actions/ai/mcp.binding.d.ts +16 -0
  371. package/dist/extensions/actions/ai/mcp.binding.js +47 -0
  372. package/dist/extensions/actions/ai/mcp.binding.js.map +1 -0
  373. package/dist/extensions/actions/ai/memory.binding.d.ts +14 -0
  374. package/dist/extensions/actions/ai/memory.binding.js +30 -0
  375. package/dist/extensions/actions/ai/memory.binding.js.map +1 -0
  376. package/dist/extensions/actions/ai/model.binding.d.ts +105 -0
  377. package/dist/extensions/actions/ai/model.binding.js +106 -0
  378. package/dist/extensions/actions/ai/model.binding.js.map +1 -0
  379. package/dist/extensions/actions/ai/retrieve-content-rag.action.d.ts +20 -0
  380. package/dist/extensions/actions/ai/retrieve-content-rag.action.js +84 -0
  381. package/dist/extensions/actions/ai/retrieve-content-rag.action.js.map +1 -0
  382. package/dist/extensions/actions/ai/tools.binding.d.ts +10 -0
  383. package/dist/extensions/actions/ai/tools.binding.js +20 -0
  384. package/dist/extensions/actions/ai/tools.binding.js.map +1 -0
  385. package/dist/extensions/actions/memory/i18n/en.translations.json +5 -0
  386. package/dist/extensions/actions/memory/i18n/fr.translations.json +5 -0
  387. package/dist/extensions/actions/memory/update-memory.action.d.ts +17 -0
  388. package/dist/extensions/actions/memory/update-memory.action.js +47 -0
  389. package/dist/extensions/actions/memory/update-memory.action.js.map +1 -0
  390. package/dist/extensions/actions/messaging/attachment.action.d.ts +27 -0
  391. package/dist/extensions/actions/messaging/attachment.action.js +62 -0
  392. package/dist/extensions/actions/messaging/attachment.action.js.map +1 -0
  393. package/dist/extensions/actions/messaging/await-reply.action.d.ts +118 -0
  394. package/dist/extensions/actions/messaging/await-reply.action.js +49 -0
  395. package/dist/extensions/actions/messaging/await-reply.action.js.map +1 -0
  396. package/dist/extensions/actions/messaging/buttons.action.d.ts +16 -0
  397. package/dist/extensions/actions/messaging/buttons.action.js +62 -0
  398. package/dist/extensions/actions/messaging/buttons.action.js.map +1 -0
  399. package/dist/extensions/actions/messaging/i18n/en.translations.json +176 -0
  400. package/dist/extensions/actions/messaging/i18n/fr.translations.json +176 -0
  401. package/dist/extensions/actions/messaging/list.action.d.ts +58 -0
  402. package/dist/extensions/actions/messaging/list.action.js +106 -0
  403. package/dist/extensions/actions/messaging/list.action.js.map +1 -0
  404. package/dist/extensions/actions/messaging/message-action.base.d.ts +212 -0
  405. package/dist/extensions/actions/messaging/message-action.base.js +115 -0
  406. package/dist/extensions/actions/messaging/message-action.base.js.map +1 -0
  407. package/dist/extensions/actions/messaging/quick-replies.action.d.ts +19 -0
  408. package/dist/extensions/actions/messaging/quick-replies.action.js +58 -0
  409. package/dist/extensions/actions/messaging/quick-replies.action.js.map +1 -0
  410. package/dist/extensions/actions/messaging/text-message.action.d.ts +15 -0
  411. package/dist/extensions/actions/messaging/text-message.action.js +46 -0
  412. package/dist/extensions/actions/messaging/text-message.action.js.map +1 -0
  413. package/dist/extensions/actions/subscriber/handover.action.d.ts +12 -0
  414. package/dist/extensions/actions/subscriber/handover.action.js +81 -0
  415. package/dist/extensions/actions/subscriber/handover.action.js.map +1 -0
  416. package/dist/extensions/actions/subscriber/i18n/en.translations.json +16 -0
  417. package/dist/extensions/actions/subscriber/i18n/fr.translations.json +16 -0
  418. package/dist/extensions/actions/subscriber/update-labels.action.d.ts +10 -0
  419. package/dist/extensions/actions/subscriber/update-labels.action.js +78 -0
  420. package/dist/extensions/actions/subscriber/update-labels.action.js.map +1 -0
  421. package/dist/extensions/actions/web/http-request.action.d.ts +19 -0
  422. package/dist/extensions/actions/web/http-request.action.js +203 -0
  423. package/dist/extensions/actions/web/http-request.action.js.map +1 -0
  424. package/dist/extensions/actions/web/i18n/en.translations.json +29 -0
  425. package/dist/extensions/actions/web/i18n/fr.translations.json +29 -0
  426. package/dist/extensions/channels/console/console-channel.settings.d.ts +34 -0
  427. package/dist/extensions/channels/console/console-channel.settings.js +81 -0
  428. package/dist/extensions/channels/console/console-channel.settings.js.map +1 -0
  429. package/dist/extensions/channels/console/i18n/en.translations.json +24 -0
  430. package/dist/extensions/channels/console/i18n/fr.translations.json +24 -0
  431. package/dist/extensions/channels/console/index.channel.d.ts +2 -13
  432. package/dist/extensions/channels/console/index.channel.js +4 -26
  433. package/dist/extensions/channels/console/index.channel.js.map +1 -1
  434. package/dist/extensions/channels/web/__test__/data.mock.d.ts +6 -6
  435. package/dist/extensions/channels/web/__test__/data.mock.js +6 -10
  436. package/dist/extensions/channels/web/__test__/data.mock.js.map +1 -1
  437. package/dist/extensions/channels/web/__test__/events.mock.d.ts +2 -2
  438. package/dist/extensions/channels/web/__test__/events.mock.js +6 -6
  439. package/dist/extensions/channels/web/__test__/events.mock.js.map +1 -1
  440. package/dist/extensions/channels/web/base-web-channel.d.ts +31 -45
  441. package/dist/extensions/channels/web/base-web-channel.js +279 -558
  442. package/dist/extensions/channels/web/base-web-channel.js.map +1 -1
  443. package/dist/extensions/channels/web/i18n/en.translations.json +28 -0
  444. package/dist/extensions/channels/web/i18n/fr.translations.json +28 -0
  445. package/dist/extensions/channels/web/inbound/events/base-web-inbound.event.d.ts +10 -0
  446. package/dist/extensions/channels/web/inbound/events/base-web-inbound.event.js +24 -0
  447. package/dist/extensions/channels/web/inbound/events/base-web-inbound.event.js.map +1 -0
  448. package/dist/extensions/channels/web/inbound/events/delivery.event.d.ts +12 -0
  449. package/dist/extensions/channels/web/inbound/events/delivery.event.js +23 -0
  450. package/dist/extensions/channels/web/inbound/events/delivery.event.js.map +1 -0
  451. package/dist/extensions/channels/web/inbound/events/index.d.ts +10 -0
  452. package/dist/extensions/channels/web/inbound/events/index.js +27 -0
  453. package/dist/extensions/channels/web/inbound/events/index.js.map +1 -0
  454. package/dist/extensions/channels/web/inbound/events/messages/attachment.event.d.ts +27 -0
  455. package/dist/extensions/channels/web/inbound/events/messages/attachment.event.js +92 -0
  456. package/dist/extensions/channels/web/inbound/events/messages/attachment.event.js.map +1 -0
  457. package/dist/extensions/channels/web/inbound/events/messages/location.event.d.ts +15 -0
  458. package/dist/extensions/channels/web/inbound/events/messages/location.event.js +40 -0
  459. package/dist/extensions/channels/web/inbound/events/messages/location.event.js.map +1 -0
  460. package/dist/extensions/channels/web/inbound/events/messages/payload.event.d.ts +16 -0
  461. package/dist/extensions/channels/web/inbound/events/messages/payload.event.js +30 -0
  462. package/dist/extensions/channels/web/inbound/events/messages/payload.event.js.map +1 -0
  463. package/dist/extensions/channels/web/inbound/events/messages/postback.event.d.ts +8 -0
  464. package/dist/extensions/channels/web/inbound/events/messages/postback.event.js +16 -0
  465. package/dist/extensions/channels/web/inbound/events/messages/postback.event.js.map +1 -0
  466. package/dist/extensions/channels/web/inbound/events/messages/quick-reply.event.d.ts +8 -0
  467. package/dist/extensions/channels/web/inbound/events/messages/quick-reply.event.js +16 -0
  468. package/dist/extensions/channels/web/inbound/events/messages/quick-reply.event.js.map +1 -0
  469. package/dist/extensions/channels/web/inbound/events/messages/text.event.d.ts +12 -0
  470. package/dist/extensions/channels/web/inbound/events/messages/text.event.js +25 -0
  471. package/dist/extensions/channels/web/inbound/events/messages/text.event.js.map +1 -0
  472. package/dist/extensions/channels/web/inbound/events/messages/web-message.event.d.ts +14 -0
  473. package/dist/extensions/channels/web/inbound/events/messages/web-message.event.js +43 -0
  474. package/dist/extensions/channels/web/inbound/events/messages/web-message.event.js.map +1 -0
  475. package/dist/extensions/channels/web/inbound/events/read.event.d.ts +12 -0
  476. package/dist/extensions/channels/web/inbound/events/read.event.js +23 -0
  477. package/dist/extensions/channels/web/inbound/events/read.event.js.map +1 -0
  478. package/dist/extensions/channels/web/inbound/events/typing.event.d.ts +10 -0
  479. package/dist/extensions/channels/web/inbound/events/typing.event.js +19 -0
  480. package/dist/extensions/channels/web/inbound/events/typing.event.js.map +1 -0
  481. package/dist/extensions/channels/web/inbound/events/unsupported.event.d.ts +12 -0
  482. package/dist/extensions/channels/web/inbound/events/unsupported.event.js +23 -0
  483. package/dist/extensions/channels/web/inbound/events/unsupported.event.js.map +1 -0
  484. package/dist/extensions/channels/web/inbound/index.d.ts +4 -0
  485. package/dist/extensions/channels/web/inbound/index.js +21 -0
  486. package/dist/extensions/channels/web/inbound/index.js.map +1 -0
  487. package/dist/extensions/channels/web/inbound/web-inbound-event-decoder.d.ts +16 -0
  488. package/dist/extensions/channels/web/inbound/web-inbound-event-decoder.js +111 -0
  489. package/dist/extensions/channels/web/inbound/web-inbound-event-decoder.js.map +1 -0
  490. package/dist/extensions/channels/web/index.channel.d.ts +2 -13
  491. package/dist/extensions/channels/web/index.channel.js +4 -26
  492. package/dist/extensions/channels/web/index.channel.js.map +1 -1
  493. package/dist/extensions/channels/web/outbound/index.d.ts +1 -0
  494. package/dist/extensions/channels/web/outbound/index.js +18 -0
  495. package/dist/extensions/channels/web/outbound/index.js.map +1 -0
  496. package/dist/extensions/channels/web/outbound/web-outbound-message-encoder.d.ts +27 -0
  497. package/dist/extensions/channels/web/outbound/web-outbound-message-encoder.js +208 -0
  498. package/dist/extensions/channels/web/outbound/web-outbound-message-encoder.js.map +1 -0
  499. package/dist/extensions/channels/web/types.d.ts +380 -88
  500. package/dist/extensions/channels/web/types.js +122 -17
  501. package/dist/extensions/channels/web/types.js.map +1 -1
  502. package/dist/extensions/channels/web/web-channel.settings.d.ts +38 -0
  503. package/dist/extensions/channels/web/web-channel.settings.js +86 -0
  504. package/dist/extensions/channels/web/web-channel.settings.js.map +1 -0
  505. package/dist/extensions/helpers/local-storage/i18n/en.translations.json +6 -0
  506. package/dist/extensions/helpers/local-storage/i18n/fr.translations.json +6 -0
  507. package/dist/extensions/helpers/local-storage/index.helper.d.ts +6 -11
  508. package/dist/extensions/helpers/local-storage/index.helper.js +8 -15
  509. package/dist/extensions/helpers/local-storage/index.helper.js.map +1 -1
  510. package/dist/extensions/index.d.ts +14 -6
  511. package/dist/extensions/index.js +14 -6
  512. package/dist/extensions/index.js.map +1 -1
  513. package/dist/helper/helper.controller.d.ts +3 -3
  514. package/dist/helper/helper.controller.js +9 -1
  515. package/dist/helper/helper.controller.js.map +1 -1
  516. package/dist/helper/helper.module.js +1 -2
  517. package/dist/helper/helper.module.js.map +1 -1
  518. package/dist/helper/helper.service.d.ts +1 -2
  519. package/dist/helper/helper.service.js +4 -8
  520. package/dist/helper/helper.service.js.map +1 -1
  521. package/dist/helper/index.d.ts +0 -2
  522. package/dist/helper/index.js +0 -2
  523. package/dist/helper/index.js.map +1 -1
  524. package/dist/helper/lib/__test__/settings.d.ts +2 -5
  525. package/dist/helper/lib/__test__/settings.js +3 -6
  526. package/dist/helper/lib/__test__/settings.js.map +1 -1
  527. package/dist/helper/lib/base-helper.d.ts +4 -9
  528. package/dist/helper/lib/base-helper.js +21 -14
  529. package/dist/helper/lib/base-helper.js.map +1 -1
  530. package/dist/helper/lib/base-llm-helper.d.ts +1 -4
  531. package/dist/helper/lib/base-llm-helper.js +2 -2
  532. package/dist/helper/lib/base-llm-helper.js.map +1 -1
  533. package/dist/helper/lib/base-storage-helper.d.ts +1 -4
  534. package/dist/helper/lib/base-storage-helper.js +2 -2
  535. package/dist/helper/lib/base-storage-helper.js.map +1 -1
  536. package/dist/helper/types.d.ts +3 -46
  537. package/dist/helper/types.js +1 -12
  538. package/dist/helper/types.js.map +1 -1
  539. package/dist/i18n/controllers/language.controller.d.ts +4 -4
  540. package/dist/i18n/controllers/language.controller.js +9 -13
  541. package/dist/i18n/controllers/language.controller.js.map +1 -1
  542. package/dist/i18n/controllers/translation.controller.d.ts +4 -4
  543. package/dist/i18n/controllers/translation.controller.js +10 -16
  544. package/dist/i18n/controllers/translation.controller.js.map +1 -1
  545. package/dist/i18n/dto/language.dto.d.ts +5 -6
  546. package/dist/i18n/dto/language.dto.js.map +1 -1
  547. package/dist/i18n/dto/translation.dto.d.ts +5 -6
  548. package/dist/i18n/dto/translation.dto.js.map +1 -1
  549. package/dist/i18n/entities/language.entity.d.ts +6 -2
  550. package/dist/i18n/entities/language.entity.js +13 -7
  551. package/dist/i18n/entities/language.entity.js.map +1 -1
  552. package/dist/i18n/entities/translation.entity.d.ts +4 -1
  553. package/dist/i18n/entities/translation.entity.js +6 -0
  554. package/dist/i18n/entities/translation.entity.js.map +1 -1
  555. package/dist/i18n/i18n.module.js +2 -4
  556. package/dist/i18n/i18n.module.js.map +1 -1
  557. package/dist/i18n/index.d.ts +0 -1
  558. package/dist/i18n/index.js +0 -1
  559. package/dist/i18n/index.js.map +1 -1
  560. package/dist/i18n/loaders/extension-json.loader.d.ts +23 -0
  561. package/dist/i18n/loaders/extension-json.loader.js +159 -0
  562. package/dist/i18n/loaders/extension-json.loader.js.map +1 -0
  563. package/dist/i18n/localize-schema-metadata.d.ts +8 -0
  564. package/dist/i18n/localize-schema-metadata.js +34 -0
  565. package/dist/i18n/localize-schema-metadata.js.map +1 -0
  566. package/dist/i18n/repositories/language.repository.d.ts +1 -2
  567. package/dist/i18n/repositories/language.repository.js +1 -5
  568. package/dist/i18n/repositories/language.repository.js.map +1 -1
  569. package/dist/i18n/repositories/translation.repository.d.ts +1 -2
  570. package/dist/i18n/repositories/translation.repository.js +1 -5
  571. package/dist/i18n/repositories/translation.repository.js.map +1 -1
  572. package/dist/i18n/seeds/language.seed.d.ts +2 -2
  573. package/dist/i18n/seeds/language.seed.js.map +1 -1
  574. package/dist/i18n/seeds/translation.seed.d.ts +1 -2
  575. package/dist/i18n/seeds/translation.seed.js.map +1 -1
  576. package/dist/i18n/services/i18n.service.d.ts +9 -1
  577. package/dist/i18n/services/i18n.service.js +13 -1
  578. package/dist/i18n/services/i18n.service.js.map +1 -1
  579. package/dist/i18n/services/language.service.d.ts +4 -7
  580. package/dist/i18n/services/language.service.js +2 -4
  581. package/dist/i18n/services/language.service.js.map +1 -1
  582. package/dist/i18n/services/translation.service.d.ts +12 -15
  583. package/dist/i18n/services/translation.service.js +113 -110
  584. package/dist/i18n/services/translation.service.js.map +1 -1
  585. package/dist/index.d.ts +4 -2
  586. package/dist/index.js +4 -2
  587. package/dist/index.js.map +1 -1
  588. package/dist/license/decorators/requires-license-feature.decorator.d.ts +3 -0
  589. package/dist/license/decorators/requires-license-feature.decorator.js +9 -0
  590. package/dist/license/decorators/requires-license-feature.decorator.js.map +1 -0
  591. package/dist/license/guards/license-feature.guard.d.ts +9 -0
  592. package/dist/license/guards/license-feature.guard.js +45 -0
  593. package/dist/license/guards/license-feature.guard.js.map +1 -0
  594. package/dist/license/index.d.ts +9 -0
  595. package/dist/license/index.js +26 -0
  596. package/dist/license/index.js.map +1 -0
  597. package/dist/license/license.module.d.ts +2 -0
  598. package/dist/license/license.module.js +33 -0
  599. package/dist/license/license.module.js.map +1 -0
  600. package/dist/license/services/lemon-squeezy.service.d.ts +11 -0
  601. package/dist/license/services/lemon-squeezy.service.js +74 -0
  602. package/dist/license/services/lemon-squeezy.service.js.map +1 -0
  603. package/dist/license/services/license-orm-listener.service.d.ts +12 -0
  604. package/dist/license/services/license-orm-listener.service.js +80 -0
  605. package/dist/license/services/license-orm-listener.service.js.map +1 -0
  606. package/dist/license/services/license.service.d.ts +55 -0
  607. package/dist/license/services/license.service.js +429 -0
  608. package/dist/license/services/license.service.js.map +1 -0
  609. package/dist/license/types/lemon-squeezy.types.d.ts +47 -0
  610. package/dist/license/types/lemon-squeezy.types.js +3 -0
  611. package/dist/license/types/lemon-squeezy.types.js.map +1 -0
  612. package/dist/license/types/license-feature.enum.d.ts +19 -0
  613. package/dist/license/types/license-feature.enum.js +23 -0
  614. package/dist/license/types/license-feature.enum.js.map +1 -0
  615. package/dist/license/types/license-quota.d.ts +16 -0
  616. package/dist/license/types/license-quota.js +36 -0
  617. package/dist/license/types/license-quota.js.map +1 -0
  618. package/dist/migration/migration.service.js +7 -1
  619. package/dist/migration/migration.service.js.map +1 -1
  620. package/dist/seeder.js +17 -24
  621. package/dist/seeder.js.map +1 -1
  622. package/dist/setting/base-setting-group.d.ts +13 -0
  623. package/dist/setting/base-setting-group.js +39 -0
  624. package/dist/setting/base-setting-group.js.map +1 -0
  625. package/dist/setting/controllers/setting.controller.d.ts +4 -3
  626. package/dist/setting/controllers/setting.controller.js +13 -3
  627. package/dist/setting/controllers/setting.controller.js.map +1 -1
  628. package/dist/setting/create-setting-group.d.ts +4 -0
  629. package/dist/setting/create-setting-group.js +28 -0
  630. package/dist/setting/create-setting-group.js.map +1 -0
  631. package/dist/setting/default.settings.d.ts +123 -0
  632. package/dist/setting/default.settings.js +226 -0
  633. package/dist/setting/default.settings.js.map +1 -0
  634. package/dist/setting/dto/metadata.dto.d.ts +5 -6
  635. package/dist/setting/dto/metadata.dto.js.map +1 -1
  636. package/dist/setting/dto/setting.dto.d.ts +5 -18
  637. package/dist/setting/dto/setting.dto.js +0 -76
  638. package/dist/setting/dto/setting.dto.js.map +1 -1
  639. package/dist/setting/entities/metadata.entity.d.ts +4 -1
  640. package/dist/setting/entities/metadata.entity.js +6 -0
  641. package/dist/setting/entities/metadata.entity.js.map +1 -1
  642. package/dist/setting/entities/setting.entity.d.ts +4 -10
  643. package/dist/setting/entities/setting.entity.js +5 -83
  644. package/dist/setting/entities/setting.entity.js.map +1 -1
  645. package/dist/setting/index.d.ts +6 -0
  646. package/dist/setting/index.js +6 -0
  647. package/dist/setting/index.js.map +1 -1
  648. package/dist/setting/repositories/metadata.repository.d.ts +1 -2
  649. package/dist/setting/repositories/metadata.repository.js +1 -5
  650. package/dist/setting/repositories/metadata.repository.js.map +1 -1
  651. package/dist/setting/repositories/setting.repository.d.ts +2 -4
  652. package/dist/setting/repositories/setting.repository.js +1 -12
  653. package/dist/setting/repositories/setting.repository.js.map +1 -1
  654. package/dist/setting/runtime-settings.d.ts +23 -0
  655. package/dist/setting/runtime-settings.js +8 -0
  656. package/dist/setting/runtime-settings.js.map +1 -0
  657. package/dist/setting/runtime-settings.seed.d.ts +10 -0
  658. package/dist/setting/runtime-settings.seed.js +53 -0
  659. package/dist/setting/runtime-settings.seed.js.map +1 -0
  660. package/dist/setting/seeds/metadata.seed.d.ts +2 -2
  661. package/dist/setting/seeds/metadata.seed.js.map +1 -1
  662. package/dist/setting/seeds/setting.seed-model.d.ts +2 -152
  663. package/dist/setting/seeds/setting.seed-model.js +5 -174
  664. package/dist/setting/seeds/setting.seed-model.js.map +1 -1
  665. package/dist/setting/seeds/setting.seed.d.ts +3 -5
  666. package/dist/setting/seeds/setting.seed.js.map +1 -1
  667. package/dist/setting/services/metadata.service.d.ts +2 -2
  668. package/dist/setting/services/metadata.service.js.map +1 -1
  669. package/dist/setting/services/runtime-settings.service.d.ts +31 -0
  670. package/dist/setting/services/runtime-settings.service.js +92 -0
  671. package/dist/setting/services/runtime-settings.service.js.map +1 -0
  672. package/dist/setting/services/setting.service.d.ts +16 -3
  673. package/dist/setting/services/setting.service.js +97 -5
  674. package/dist/setting/services/setting.service.js.map +1 -1
  675. package/dist/setting/setting.module.js +15 -1
  676. package/dist/setting/setting.module.js.map +1 -1
  677. package/dist/setting/types/index.d.ts +3 -79
  678. package/dist/setting/types/index.js +1 -13
  679. package/dist/setting/types/index.js.map +1 -1
  680. package/dist/static/assets/abap-DLDM7-KI.js +1 -0
  681. package/dist/static/assets/apex-DNDY2TF8.js +1 -0
  682. package/dist/static/assets/azcli-Y6nb8tq_.js +1 -0
  683. package/dist/static/assets/bat-BwHxbl9M.js +1 -0
  684. package/dist/static/assets/bicep-CFznDFnq.js +2 -0
  685. package/dist/static/assets/cameligo-Bf6VGUru.js +1 -0
  686. package/dist/static/assets/clojure-Dnu-v4kV.js +1 -0
  687. package/dist/static/assets/codicon-ngg6Pgfi.ttf +0 -0
  688. package/dist/static/assets/coffee-Bd8akH9Z.js +1 -0
  689. package/dist/static/assets/cpp-BbWJElDN.js +1 -0
  690. package/dist/static/assets/csharp-Co3qMtFm.js +1 -0
  691. package/dist/static/assets/csp-D-4FJmMZ.js +1 -0
  692. package/dist/static/assets/css-DdJfP1eB.js +3 -0
  693. package/dist/static/assets/css.worker-BvV5MPou.js +93 -0
  694. package/dist/static/assets/cssMode-EfTI32jH.js +1 -0
  695. package/dist/static/assets/cypher-cTPe9QuQ.js +1 -0
  696. package/dist/static/assets/dart-BOtBlQCF.js +1 -0
  697. package/dist/static/assets/dockerfile-BG73LgW2.js +1 -0
  698. package/dist/static/assets/ecl-BEgZUVRK.js +1 -0
  699. package/dist/static/assets/editor.worker-CKy7Pnvo.js +26 -0
  700. package/dist/static/assets/elixir-BkW5O-1t.js +1 -0
  701. package/dist/static/assets/flow9-BeJ5waoc.js +1 -0
  702. package/dist/static/assets/freemarker2-Bp36bqQu.js +3 -0
  703. package/dist/static/assets/fsharp-PahG7c26.js +1 -0
  704. package/dist/static/assets/go-acbASCJo.js +1 -0
  705. package/dist/static/assets/graphql-BxJiqAUM.js +1 -0
  706. package/dist/static/assets/handlebars-DFcsacT2.js +1 -0
  707. package/dist/static/assets/hcl-DtV1sZF8.js +1 -0
  708. package/dist/static/assets/html-DoteNmPg.js +1 -0
  709. package/dist/static/assets/html.worker-BLJhxQJQ.js +470 -0
  710. package/dist/static/assets/htmlMode-D4qDYA_c.js +1 -0
  711. package/dist/static/assets/index-B0zbJ-Gv.css +1 -0
  712. package/dist/static/assets/index-Da34FzWk.js +10030 -0
  713. package/dist/static/assets/ini-Kd9XrMLS.js +1 -0
  714. package/dist/static/assets/java-CXBNlu9o.js +1 -0
  715. package/dist/static/assets/javascript-hq-XZ18j.js +1 -0
  716. package/dist/static/assets/json.worker-usMZ-FED.js +58 -0
  717. package/dist/static/assets/jsonMode-gxldbTjQ.js +7 -0
  718. package/dist/static/assets/julia-cl7-CwDS.js +1 -0
  719. package/dist/static/assets/kotlin-s7OhZKlX.js +1 -0
  720. package/dist/static/assets/less-9HpZscsL.js +2 -0
  721. package/dist/static/assets/lexon-OrD6JF1K.js +1 -0
  722. package/dist/static/assets/liquid-VombxSUL.js +1 -0
  723. package/dist/static/assets/lspLanguageFeatures-DjxTnuCT.js +4 -0
  724. package/dist/static/assets/lua-Cyyb5UIc.js +1 -0
  725. package/dist/static/assets/m3-B8OfTtLu.js +1 -0
  726. package/dist/static/assets/markdown-BFxVWTOG.js +1 -0
  727. package/dist/static/assets/mdx-Bv744ltm.js +1 -0
  728. package/dist/static/assets/mips-CiqrrVzr.js +1 -0
  729. package/dist/static/assets/msdax-DmeGPVcC.js +1 -0
  730. package/dist/static/assets/mysql-C_tMU-Nz.js +1 -0
  731. package/dist/static/assets/objective-c-BDtDVThU.js +1 -0
  732. package/dist/static/assets/pascal-vHIfCaH5.js +1 -0
  733. package/dist/static/assets/pascaligo-DtZ0uQbO.js +1 -0
  734. package/dist/static/assets/perl-Ub6l9XKa.js +1 -0
  735. package/dist/static/assets/pgsql-BlNEE0v7.js +1 -0
  736. package/dist/static/assets/php-BBUBE1dy.js +1 -0
  737. package/dist/static/assets/pla-DSh2-awV.js +1 -0
  738. package/dist/static/assets/postiats-CocnycG-.js +1 -0
  739. package/dist/static/assets/powerquery-tScXyioY.js +1 -0
  740. package/dist/static/assets/powershell-COWaemsV.js +1 -0
  741. package/dist/static/assets/protobuf-Brw8urJB.js +2 -0
  742. package/dist/static/assets/pug-8SOpv6rk.js +1 -0
  743. package/dist/static/assets/python-BB7rtHwG.js +1 -0
  744. package/dist/static/assets/qsharp-Bw9ernYp.js +1 -0
  745. package/dist/static/assets/r-j7ic8hl3.js +1 -0
  746. package/dist/static/assets/razor-BoLELWC9.js +1 -0
  747. package/dist/static/assets/redis-Bu5POkcn.js +1 -0
  748. package/dist/static/assets/redshift-Bs9aos_-.js +1 -0
  749. package/dist/static/assets/restructuredtext-CqXO7rUv.js +1 -0
  750. package/dist/static/assets/ruby-zBfavPgS.js +1 -0
  751. package/dist/static/assets/rust-BzKRNQWT.js +1 -0
  752. package/dist/static/assets/sb-BBc9UKZt.js +1 -0
  753. package/dist/static/assets/scala-D9hQfWCl.js +1 -0
  754. package/dist/static/assets/scheme-BPhDTwHR.js +1 -0
  755. package/dist/static/assets/scss-CBJaRo0y.js +3 -0
  756. package/dist/static/assets/shell-DiJ1NA_G.js +1 -0
  757. package/dist/static/assets/solidity-Db0IVjzk.js +1 -0
  758. package/dist/static/assets/sophia-CnS9iZB_.js +1 -0
  759. package/dist/static/assets/sparql-CJmd_6j2.js +1 -0
  760. package/dist/static/assets/sql-ClhHkBeG.js +1 -0
  761. package/dist/static/assets/st-CHwy0fLd.js +1 -0
  762. package/dist/static/assets/swift-Bqt4WxQ4.js +3 -0
  763. package/dist/static/assets/systemverilog-Bs9z6M-B.js +1 -0
  764. package/dist/static/assets/tcl-Dm6ycUr_.js +1 -0
  765. package/dist/static/assets/ts.worker-DGHjMaqB.js +67731 -0
  766. package/dist/static/assets/tsMode-DLSApW05.js +11 -0
  767. package/dist/static/assets/twig-Csy3S7wG.js +1 -0
  768. package/dist/static/assets/typescript-qlBdudA6.js +1 -0
  769. package/dist/static/assets/typespec-Btyra-wh.js +1 -0
  770. package/dist/static/assets/vb-Db0cS2oM.js +1 -0
  771. package/dist/static/assets/wgsl-BTesnYfV.js +298 -0
  772. package/dist/static/assets/xml-DMdTu6Mm.js +1 -0
  773. package/dist/static/assets/yaml-C9JqXvOt.js +1 -0
  774. package/dist/static/assets/yaml.worker.entry-BdO9k22I.js +419 -0
  775. package/dist/static/index.html +2 -2
  776. package/dist/static/locales/en/translation.json +492 -95
  777. package/dist/static/locales/fr/translation.json +491 -97
  778. package/dist/tsconfig.build.tsbuildinfo +1 -1
  779. package/dist/types/event-emitter.d.ts +77 -56
  780. package/dist/types/express-session.d.ts +3 -5
  781. package/dist/user/controllers/auth.controller.d.ts +8 -13
  782. package/dist/user/controllers/auth.controller.js +19 -75
  783. package/dist/user/controllers/auth.controller.js.map +1 -1
  784. package/dist/user/controllers/credential.controller.d.ts +19 -0
  785. package/dist/user/controllers/credential.controller.js +114 -0
  786. package/dist/user/controllers/credential.controller.js.map +1 -0
  787. package/dist/user/controllers/model.controller.d.ts +2 -3
  788. package/dist/user/controllers/model.controller.js +3 -5
  789. package/dist/user/controllers/model.controller.js.map +1 -1
  790. package/dist/user/controllers/permission.controller.d.ts +4 -4
  791. package/dist/user/controllers/permission.controller.js +8 -15
  792. package/dist/user/controllers/permission.controller.js.map +1 -1
  793. package/dist/user/controllers/role.controller.d.ts +5 -5
  794. package/dist/user/controllers/role.controller.js +14 -24
  795. package/dist/user/controllers/role.controller.js.map +1 -1
  796. package/dist/user/controllers/user.controller.d.ts +7 -11
  797. package/dist/user/controllers/user.controller.js +44 -55
  798. package/dist/user/controllers/user.controller.js.map +1 -1
  799. package/dist/user/dto/assigned-profile.dto.d.ts +25 -0
  800. package/dist/user/dto/assigned-profile.dto.js +97 -0
  801. package/dist/user/dto/assigned-profile.dto.js.map +1 -0
  802. package/dist/user/dto/credential.dto.d.ts +27 -0
  803. package/dist/user/dto/credential.dto.js +84 -0
  804. package/dist/user/dto/credential.dto.js.map +1 -0
  805. package/dist/user/dto/model.dto.d.ts +5 -6
  806. package/dist/user/dto/model.dto.js.map +1 -1
  807. package/dist/user/dto/permission.dto.d.ts +5 -6
  808. package/dist/user/dto/permission.dto.js.map +1 -1
  809. package/dist/user/dto/role.dto.d.ts +5 -6
  810. package/dist/user/dto/role.dto.js.map +1 -1
  811. package/dist/user/dto/user-profile.dto.d.ts +15 -0
  812. package/dist/user/dto/user-profile.dto.js +58 -0
  813. package/dist/user/dto/user-profile.dto.js.map +1 -0
  814. package/dist/user/dto/user.dto.d.ts +28 -19
  815. package/dist/user/dto/user.dto.js +64 -38
  816. package/dist/user/dto/user.dto.js.map +1 -1
  817. package/dist/user/entities/credential.entity.d.ts +11 -0
  818. package/dist/user/entities/credential.entity.js +51 -0
  819. package/dist/user/entities/credential.entity.js.map +1 -0
  820. package/dist/user/entities/model.entity.d.ts +4 -1
  821. package/dist/user/entities/model.entity.js +6 -0
  822. package/dist/user/entities/model.entity.js.map +1 -1
  823. package/dist/user/entities/permission.entity.d.ts +4 -1
  824. package/dist/user/entities/permission.entity.js +6 -0
  825. package/dist/user/entities/permission.entity.js.map +1 -1
  826. package/dist/user/entities/role.entity.d.ts +4 -1
  827. package/dist/user/entities/role.entity.js +6 -0
  828. package/dist/user/entities/role.entity.js.map +1 -1
  829. package/dist/user/entities/user-profile.entity.d.ts +20 -0
  830. package/dist/user/entities/user-profile.entity.js +78 -0
  831. package/dist/user/entities/user-profile.entity.js.map +1 -0
  832. package/dist/user/entities/user.entity.d.ts +5 -9
  833. package/dist/user/entities/user.entity.js +13 -36
  834. package/dist/user/entities/user.entity.js.map +1 -1
  835. package/dist/user/guards/ability.guard.js +1 -1
  836. package/dist/user/guards/ability.guard.js.map +1 -1
  837. package/dist/user/index.d.ts +5 -4
  838. package/dist/user/index.js +5 -4
  839. package/dist/user/index.js.map +1 -1
  840. package/dist/user/passport/auth-strategy/local.strategy.js.map +1 -1
  841. package/dist/user/passport/session.serializer.js +2 -2
  842. package/dist/user/passport/session.serializer.js.map +1 -1
  843. package/dist/user/repositories/credential.repository.d.ts +7 -0
  844. package/dist/user/repositories/credential.repository.js +38 -0
  845. package/dist/user/repositories/credential.repository.js.map +1 -0
  846. package/dist/user/repositories/model.repository.d.ts +1 -2
  847. package/dist/user/repositories/model.repository.js +1 -2
  848. package/dist/user/repositories/model.repository.js.map +1 -1
  849. package/dist/user/repositories/permission.repository.d.ts +1 -2
  850. package/dist/user/repositories/permission.repository.js +1 -5
  851. package/dist/user/repositories/permission.repository.js.map +1 -1
  852. package/dist/user/repositories/role.repository.d.ts +1 -2
  853. package/dist/user/repositories/role.repository.js +1 -5
  854. package/dist/user/repositories/role.repository.js.map +1 -1
  855. package/dist/user/repositories/user.repository.d.ts +3 -2
  856. package/dist/user/repositories/user.repository.js +19 -5
  857. package/dist/user/repositories/user.repository.js.map +1 -1
  858. package/dist/user/seeds/model.seed-model.js +41 -41
  859. package/dist/user/seeds/model.seed-model.js.map +1 -1
  860. package/dist/user/seeds/model.seed.d.ts +1 -2
  861. package/dist/user/seeds/model.seed.js.map +1 -1
  862. package/dist/user/seeds/permission.seed.d.ts +1 -2
  863. package/dist/user/seeds/permission.seed.js.map +1 -1
  864. package/dist/user/seeds/role.seed.d.ts +1 -2
  865. package/dist/user/seeds/role.seed.js.map +1 -1
  866. package/dist/user/seeds/user.seed-model.js +20 -5
  867. package/dist/user/seeds/user.seed-model.js.map +1 -1
  868. package/dist/user/seeds/user.seed.d.ts +1 -2
  869. package/dist/user/seeds/user.seed.js.map +1 -1
  870. package/dist/user/services/auth.service.js +1 -2
  871. package/dist/user/services/auth.service.js.map +1 -1
  872. package/dist/user/services/credential.service.d.ts +8 -0
  873. package/dist/user/services/credential.service.js +30 -0
  874. package/dist/user/services/credential.service.js.map +1 -0
  875. package/dist/user/services/model.service.d.ts +1 -2
  876. package/dist/user/services/model.service.js.map +1 -1
  877. package/dist/user/services/passwordReset.service.js +1 -1
  878. package/dist/user/services/passwordReset.service.js.map +1 -1
  879. package/dist/user/services/permission.service.d.ts +2 -2
  880. package/dist/user/services/permission.service.js.map +1 -1
  881. package/dist/user/services/role.service.d.ts +1 -2
  882. package/dist/user/services/role.service.js.map +1 -1
  883. package/dist/user/services/user.service.d.ts +2 -2
  884. package/dist/user/services/user.service.js +3 -0
  885. package/dist/user/services/user.service.js.map +1 -1
  886. package/dist/user/services/validate-account.service.d.ts +1 -1
  887. package/dist/user/services/validate-account.service.js +2 -3
  888. package/dist/user/services/validate-account.service.js.map +1 -1
  889. package/dist/user/types/model.type.d.ts +1 -1
  890. package/dist/user/user.module.js +9 -7
  891. package/dist/user/user.module.js.map +1 -1
  892. package/dist/utils/constants/cache.d.ts +0 -1
  893. package/dist/utils/constants/cache.js +1 -2
  894. package/dist/utils/constants/cache.js.map +1 -1
  895. package/dist/utils/constants/session-middleware.js +1 -1
  896. package/dist/utils/constants/session-middleware.js.map +1 -1
  897. package/dist/utils/decorators/uuid-param.decorator.d.ts +1 -0
  898. package/dist/utils/decorators/uuid-param.decorator.js +12 -0
  899. package/dist/utils/decorators/uuid-param.decorator.js.map +1 -0
  900. package/dist/utils/decorators/validate.decorator.js +4 -4
  901. package/dist/utils/decorators/validate.decorator.js.map +1 -1
  902. package/dist/utils/generics/base-orm.controller.d.ts +11 -6
  903. package/dist/utils/generics/base-orm.controller.js +51 -4
  904. package/dist/utils/generics/base-orm.controller.js.map +1 -1
  905. package/dist/utils/generics/base-orm.repository.d.ts +23 -27
  906. package/dist/utils/generics/base-orm.repository.js +149 -59
  907. package/dist/utils/generics/base-orm.repository.js.map +1 -1
  908. package/dist/utils/generics/base-orm.seeder.d.ts +6 -6
  909. package/dist/utils/generics/base-orm.seeder.js.map +1 -1
  910. package/dist/utils/generics/base-orm.service.d.ts +20 -17
  911. package/dist/utils/generics/base-orm.service.js +15 -0
  912. package/dist/utils/generics/base-orm.service.js.map +1 -1
  913. package/dist/utils/generics/extension.d.ts +4 -8
  914. package/dist/utils/generics/extension.js +15 -21
  915. package/dist/utils/generics/extension.js.map +1 -1
  916. package/dist/utils/helpers/avatar.d.ts +2 -2
  917. package/dist/utils/helpers/avatar.js +5 -5
  918. package/dist/utils/helpers/avatar.js.map +1 -1
  919. package/dist/utils/helpers/clone.d.ts +1 -0
  920. package/dist/utils/helpers/clone.js +15 -0
  921. package/dist/utils/helpers/clone.js.map +1 -0
  922. package/dist/utils/helpers/flatten.js +2 -4
  923. package/dist/utils/helpers/flatten.js.map +1 -1
  924. package/dist/utils/helpers/freeze.d.ts +1 -0
  925. package/dist/utils/helpers/freeze.js +15 -0
  926. package/dist/utils/helpers/freeze.js.map +1 -0
  927. package/dist/utils/helpers/misc.d.ts +0 -4
  928. package/dist/utils/helpers/misc.js +1 -24
  929. package/dist/utils/helpers/misc.js.map +1 -1
  930. package/dist/utils/helpers/object.d.ts +3 -0
  931. package/dist/utils/helpers/object.js +24 -0
  932. package/dist/utils/helpers/object.js.map +1 -0
  933. package/dist/utils/helpers/zod.d.ts +13 -0
  934. package/dist/utils/helpers/zod.js +34 -0
  935. package/dist/utils/helpers/zod.js.map +1 -0
  936. package/dist/utils/index.d.ts +4 -5
  937. package/dist/utils/index.js +4 -5
  938. package/dist/utils/index.js.map +1 -1
  939. package/dist/utils/pipes/zod.pipe.d.ts +2 -2
  940. package/dist/utils/pipes/zod.pipe.js +2 -1
  941. package/dist/utils/pipes/zod.pipe.js.map +1 -1
  942. package/dist/utils/test/constants.d.ts +1 -1
  943. package/dist/utils/test/constants.js +6 -1
  944. package/dist/utils/test/constants.js.map +1 -1
  945. package/dist/utils/test/dummy/controllers/dummy.controller.d.ts +7 -0
  946. package/dist/utils/test/dummy/controllers/dummy.controller.js +27 -0
  947. package/dist/utils/test/dummy/controllers/dummy.controller.js.map +1 -0
  948. package/dist/utils/test/dummy/dto/dummy.dto.d.ts +7 -8
  949. package/dist/utils/test/dummy/dto/dummy.dto.js.map +1 -1
  950. package/dist/utils/test/dummy/dummy.action.d.ts +8 -0
  951. package/dist/utils/test/dummy/dummy.action.js +27 -0
  952. package/dist/utils/test/dummy/dummy.action.js.map +1 -0
  953. package/dist/utils/test/dummy/dummy.module.js +2 -0
  954. package/dist/utils/test/dummy/dummy.module.js.map +1 -1
  955. package/dist/utils/test/dummy/entities/dummy.entity.d.ts +4 -1
  956. package/dist/utils/test/dummy/entities/dummy.entity.js +6 -0
  957. package/dist/utils/test/dummy/entities/dummy.entity.js.map +1 -1
  958. package/dist/utils/test/dummy/repositories/dummy.repository.d.ts +1 -2
  959. package/dist/utils/test/dummy/repositories/dummy.repository.js +1 -5
  960. package/dist/utils/test/dummy/repositories/dummy.repository.js.map +1 -1
  961. package/dist/utils/test/dummy/services/dummy.service.d.ts +1 -2
  962. package/dist/utils/test/dummy/services/dummy.service.js.map +1 -1
  963. package/dist/utils/test/fixtures/attachment.js +13 -5
  964. package/dist/utils/test/fixtures/attachment.js.map +1 -1
  965. package/dist/utils/test/fixtures/content.d.ts +1 -1
  966. package/dist/utils/test/fixtures/content.js +9 -9
  967. package/dist/utils/test/fixtures/content.js.map +1 -1
  968. package/dist/utils/test/fixtures/contenttype.d.ts +1 -1
  969. package/dist/utils/test/fixtures/contenttype.js +29 -83
  970. package/dist/utils/test/fixtures/contenttype.js.map +1 -1
  971. package/dist/utils/test/fixtures/label-group.d.ts +1 -1
  972. package/dist/utils/test/fixtures/label.d.ts +1 -1
  973. package/dist/utils/test/fixtures/language.js +0 -1
  974. package/dist/utils/test/fixtures/language.js.map +1 -1
  975. package/dist/utils/test/fixtures/mcp-server.d.ts +23 -0
  976. package/dist/utils/test/fixtures/mcp-server.js +44 -0
  977. package/dist/utils/test/fixtures/mcp-server.js.map +1 -0
  978. package/dist/utils/test/fixtures/memory-definition.d.ts +15 -0
  979. package/dist/utils/test/fixtures/memory-definition.js +65 -0
  980. package/dist/utils/test/fixtures/memory-definition.js.map +1 -0
  981. package/dist/utils/test/fixtures/memory-record.d.ts +19 -0
  982. package/dist/utils/test/fixtures/memory-record.js +148 -0
  983. package/dist/utils/test/fixtures/memory-record.js.map +1 -0
  984. package/dist/utils/test/fixtures/menu.js +0 -1
  985. package/dist/utils/test/fixtures/menu.js.map +1 -1
  986. package/dist/utils/test/fixtures/message.d.ts +1 -1
  987. package/dist/utils/test/fixtures/message.js +28 -0
  988. package/dist/utils/test/fixtures/message.js.map +1 -1
  989. package/dist/utils/test/fixtures/setting.js +10 -49
  990. package/dist/utils/test/fixtures/setting.js.map +1 -1
  991. package/dist/utils/test/fixtures/stats.d.ts +4 -0
  992. package/dist/utils/test/fixtures/stats.js +55 -0
  993. package/dist/utils/test/fixtures/stats.js.map +1 -0
  994. package/dist/utils/test/fixtures/subscriber.d.ts +2 -2
  995. package/dist/utils/test/fixtures/subscriber.js +21 -21
  996. package/dist/utils/test/fixtures/subscriber.js.map +1 -1
  997. package/dist/utils/test/fixtures/user.js +16 -3
  998. package/dist/utils/test/fixtures/user.js.map +1 -1
  999. package/dist/utils/test/fixtures/workflow-run.d.ts +21 -0
  1000. package/dist/utils/test/fixtures/workflow-run.js +185 -0
  1001. package/dist/utils/test/fixtures/workflow-run.js.map +1 -0
  1002. package/dist/utils/test/fixtures/workflow.d.ts +14 -0
  1003. package/dist/utils/test/fixtures/workflow.js +125 -0
  1004. package/dist/utils/test/fixtures/workflow.js.map +1 -0
  1005. package/dist/utils/test/mocks/subscriber.js +4 -5
  1006. package/dist/utils/test/mocks/subscriber.js.map +1 -1
  1007. package/dist/utils/test/modules/i18n-testing.module.d.ts +2 -0
  1008. package/dist/utils/test/modules/i18n-testing.module.js +22 -0
  1009. package/dist/utils/test/modules/i18n-testing.module.js.map +1 -0
  1010. package/dist/utils/test/postman-collections/hexabot_REST.postman_collection.json +7 -364
  1011. package/dist/utils/test/providers/i18n-service.provider.d.ts +9 -0
  1012. package/dist/utils/test/providers/i18n-service.provider.js +21 -0
  1013. package/dist/utils/test/providers/i18n-service.provider.js.map +1 -0
  1014. package/dist/utils/test/providers/mailer-service.provider.d.ts +10 -0
  1015. package/dist/utils/test/providers/mailer-service.provider.js +12 -0
  1016. package/dist/utils/test/providers/mailer-service.provider.js.map +1 -0
  1017. package/dist/utils/test/providers/setting-service.provider.d.ts +9 -0
  1018. package/dist/utils/test/providers/setting-service.provider.js +28 -0
  1019. package/dist/utils/test/providers/setting-service.provider.js.map +1 -0
  1020. package/dist/utils/test/utils.js +137 -2
  1021. package/dist/utils/test/utils.js.map +1 -1
  1022. package/dist/utils/types/dto.types.d.ts +32 -14
  1023. package/dist/utils/types/dto.types.js +10 -10
  1024. package/dist/utils/types/dto.types.js.map +1 -1
  1025. package/dist/utils/types/entity-event.types.d.ts +55 -0
  1026. package/dist/utils/types/entity-event.types.js +3 -0
  1027. package/dist/utils/types/entity-event.types.js.map +1 -0
  1028. package/dist/utils/types/extension.d.ts +1 -2
  1029. package/dist/websocket/services/socket-event-dispatcher.service.js +4 -0
  1030. package/dist/websocket/services/socket-event-dispatcher.service.js.map +1 -1
  1031. package/dist/websocket/types.d.ts +2 -1
  1032. package/dist/websocket/types.js +1 -0
  1033. package/dist/websocket/types.js.map +1 -1
  1034. package/dist/websocket/utils/gateway-options.js +1 -0
  1035. package/dist/websocket/utils/gateway-options.js.map +1 -1
  1036. package/dist/websocket/websocket.gateway.d.ts +21 -11
  1037. package/dist/websocket/websocket.gateway.js +83 -88
  1038. package/dist/websocket/websocket.gateway.js.map +1 -1
  1039. package/dist/websocket/websocket.module.js +2 -0
  1040. package/dist/websocket/websocket.module.js.map +1 -1
  1041. package/dist/workflow/contexts/conversational-workflow.context.d.ts +5 -0
  1042. package/dist/workflow/contexts/conversational-workflow.context.js +18 -0
  1043. package/dist/workflow/contexts/conversational-workflow.context.js.map +1 -0
  1044. package/dist/workflow/contexts/manual-workflow.context.d.ts +5 -0
  1045. package/dist/workflow/contexts/manual-workflow.context.js +18 -0
  1046. package/dist/workflow/contexts/manual-workflow.context.js.map +1 -0
  1047. package/dist/workflow/contexts/scheduled-workflow.context.d.ts +5 -0
  1048. package/dist/workflow/contexts/scheduled-workflow.context.js +18 -0
  1049. package/dist/workflow/contexts/scheduled-workflow.context.js.map +1 -0
  1050. package/dist/workflow/contexts/workflow-context-factory.d.ts +14 -0
  1051. package/dist/workflow/contexts/workflow-context-factory.js +64 -0
  1052. package/dist/workflow/contexts/workflow-context-factory.js.map +1 -0
  1053. package/dist/workflow/contexts/workflow-runtime.context.d.ts +58 -0
  1054. package/dist/workflow/contexts/workflow-runtime.context.js +173 -0
  1055. package/dist/workflow/contexts/workflow-runtime.context.js.map +1 -0
  1056. package/dist/workflow/controllers/mcp-server.controller.d.ts +22 -0
  1057. package/dist/workflow/controllers/mcp-server.controller.js +139 -0
  1058. package/dist/workflow/controllers/mcp-server.controller.js.map +1 -0
  1059. package/dist/workflow/controllers/memory-definition.controller.d.ts +19 -0
  1060. package/dist/workflow/controllers/memory-definition.controller.js +121 -0
  1061. package/dist/workflow/controllers/memory-definition.controller.js.map +1 -0
  1062. package/dist/workflow/controllers/workflow-run.controller.d.ts +14 -0
  1063. package/dist/workflow/controllers/workflow-run.controller.js +94 -0
  1064. package/dist/workflow/controllers/workflow-run.controller.js.map +1 -0
  1065. package/dist/workflow/controllers/workflow-version.controller.d.ts +19 -0
  1066. package/dist/workflow/controllers/workflow-version.controller.js +156 -0
  1067. package/dist/workflow/controllers/workflow-version.controller.js.map +1 -0
  1068. package/dist/workflow/controllers/workflow.controller.d.ts +54 -0
  1069. package/dist/workflow/controllers/workflow.controller.js +248 -0
  1070. package/dist/workflow/controllers/workflow.controller.js.map +1 -0
  1071. package/dist/workflow/decorators/is-workflow-definition.decorator.d.ts +2 -0
  1072. package/dist/workflow/decorators/is-workflow-definition.decorator.js +41 -0
  1073. package/dist/workflow/decorators/is-workflow-definition.decorator.js.map +1 -0
  1074. package/dist/workflow/decorators/is-workflow-yaml.decorator.d.ts +2 -0
  1075. package/dist/workflow/decorators/is-workflow-yaml.decorator.js +40 -0
  1076. package/dist/workflow/decorators/is-workflow-yaml.decorator.js.map +1 -0
  1077. package/dist/workflow/defaults/default-workflow.d.ts +4 -0
  1078. package/dist/workflow/defaults/default-workflow.js +23 -0
  1079. package/dist/workflow/defaults/default-workflow.js.map +1 -0
  1080. package/dist/workflow/dto/mcp-server.dto.d.ts +39 -0
  1081. package/dist/workflow/dto/mcp-server.dto.js +174 -0
  1082. package/dist/workflow/dto/mcp-server.dto.js.map +1 -0
  1083. package/dist/workflow/dto/memory-definition.dto.d.ts +32 -0
  1084. package/dist/workflow/dto/memory-definition.dto.js +110 -0
  1085. package/dist/workflow/dto/memory-definition.dto.js.map +1 -0
  1086. package/dist/workflow/dto/memory-record.dto.d.ts +48 -0
  1087. package/dist/workflow/dto/memory-record.dto.js +184 -0
  1088. package/dist/workflow/dto/memory-record.dto.js.map +1 -0
  1089. package/dist/workflow/dto/workflow-run.dto.d.ts +78 -0
  1090. package/dist/workflow/dto/workflow-run.dto.js +342 -0
  1091. package/dist/workflow/dto/workflow-run.dto.js.map +1 -0
  1092. package/dist/workflow/dto/workflow-version.dto.d.ts +45 -0
  1093. package/dist/workflow/dto/workflow-version.dto.js +173 -0
  1094. package/dist/workflow/dto/workflow-version.dto.js.map +1 -0
  1095. package/dist/workflow/dto/workflow.dto.d.ts +57 -0
  1096. package/dist/workflow/dto/workflow.dto.js +256 -0
  1097. package/dist/workflow/dto/workflow.dto.js.map +1 -0
  1098. package/dist/workflow/entities/mcp-server.entity.d.ts +25 -0
  1099. package/dist/workflow/entities/mcp-server.entity.js +155 -0
  1100. package/dist/workflow/entities/mcp-server.entity.js.map +1 -0
  1101. package/dist/workflow/entities/memory-definition.entity.d.ts +13 -0
  1102. package/dist/workflow/entities/memory-definition.entity.js +52 -0
  1103. package/dist/workflow/entities/memory-definition.entity.js.map +1 -0
  1104. package/dist/workflow/entities/memory-record.entity.d.ts +26 -0
  1105. package/dist/workflow/entities/memory-record.entity.js +114 -0
  1106. package/dist/workflow/entities/memory-record.entity.js.map +1 -0
  1107. package/dist/workflow/entities/workflow-run.entity.d.ts +40 -0
  1108. package/dist/workflow/entities/workflow-run.entity.js +190 -0
  1109. package/dist/workflow/entities/workflow-run.entity.js.map +1 -0
  1110. package/dist/workflow/entities/workflow-version.entity.d.ts +24 -0
  1111. package/dist/workflow/entities/workflow-version.entity.js +133 -0
  1112. package/dist/workflow/entities/workflow-version.entity.js.map +1 -0
  1113. package/dist/workflow/entities/workflow.entity.d.ts +33 -0
  1114. package/dist/workflow/entities/workflow.entity.js +228 -0
  1115. package/dist/workflow/entities/workflow.entity.js.map +1 -0
  1116. package/dist/workflow/index.d.ts +35 -0
  1117. package/dist/workflow/index.js +52 -0
  1118. package/dist/workflow/index.js.map +1 -0
  1119. package/dist/workflow/lib/trigger-event-wrapper.d.ts +40 -0
  1120. package/dist/workflow/lib/trigger-event-wrapper.js +85 -0
  1121. package/dist/workflow/lib/trigger-event-wrapper.js.map +1 -0
  1122. package/dist/workflow/lib/workflow-definition.d.ts +2 -0
  1123. package/dist/workflow/lib/workflow-definition.js +16 -0
  1124. package/dist/workflow/lib/workflow-definition.js.map +1 -0
  1125. package/dist/workflow/repositories/mcp-server.repository.d.ts +6 -0
  1126. package/dist/workflow/repositories/mcp-server.repository.js +32 -0
  1127. package/dist/workflow/repositories/mcp-server.repository.js.map +1 -0
  1128. package/dist/workflow/repositories/memory-definition.repository.d.ts +6 -0
  1129. package/dist/workflow/repositories/memory-definition.repository.js +32 -0
  1130. package/dist/workflow/repositories/memory-definition.repository.js.map +1 -0
  1131. package/dist/workflow/repositories/memory-record.repository.d.ts +6 -0
  1132. package/dist/workflow/repositories/memory-record.repository.js +32 -0
  1133. package/dist/workflow/repositories/memory-record.repository.js.map +1 -0
  1134. package/dist/workflow/repositories/workflow-run.repository.d.ts +6 -0
  1135. package/dist/workflow/repositories/workflow-run.repository.js +32 -0
  1136. package/dist/workflow/repositories/workflow-run.repository.js.map +1 -0
  1137. package/dist/workflow/repositories/workflow-version.repository.d.ts +6 -0
  1138. package/dist/workflow/repositories/workflow-version.repository.js +32 -0
  1139. package/dist/workflow/repositories/workflow-version.repository.js.map +1 -0
  1140. package/dist/workflow/repositories/workflow.repository.d.ts +6 -0
  1141. package/dist/workflow/repositories/workflow.repository.js +32 -0
  1142. package/dist/workflow/repositories/workflow.repository.js.map +1 -0
  1143. package/dist/workflow/schemas/workflow-input-schemas.d.ts +65 -0
  1144. package/dist/workflow/schemas/workflow-input-schemas.js +52 -0
  1145. package/dist/workflow/schemas/workflow-input-schemas.js.map +1 -0
  1146. package/dist/workflow/schemas/workflow-schemas.d.ts +2 -0
  1147. package/dist/workflow/schemas/workflow-schemas.js +50 -0
  1148. package/dist/workflow/schemas/workflow-schemas.js.map +1 -0
  1149. package/dist/workflow/seeds/memory-definition.seed-model.d.ts +2 -0
  1150. package/dist/workflow/seeds/memory-definition.seed-model.js +53 -0
  1151. package/dist/workflow/seeds/memory-definition.seed-model.js.map +1 -0
  1152. package/dist/workflow/seeds/memory-definition.seed.d.ts +6 -0
  1153. package/dist/workflow/seeds/memory-definition.seed.js +26 -0
  1154. package/dist/workflow/seeds/memory-definition.seed.js.map +1 -0
  1155. package/dist/workflow/seeds/workflow.seed-model.d.ts +2 -0
  1156. package/dist/workflow/seeds/workflow.seed-model.js +16 -0
  1157. package/dist/workflow/seeds/workflow.seed-model.js.map +1 -0
  1158. package/dist/workflow/seeds/workflow.seed.d.ts +10 -0
  1159. package/dist/workflow/seeds/workflow.seed.js +38 -0
  1160. package/dist/workflow/seeds/workflow.seed.js.map +1 -0
  1161. package/dist/workflow/services/agentic.service.d.ts +31 -0
  1162. package/dist/workflow/services/agentic.service.js +374 -0
  1163. package/dist/workflow/services/agentic.service.js.map +1 -0
  1164. package/dist/workflow/services/mcp-client-pool.service.d.ts +75 -0
  1165. package/dist/workflow/services/mcp-client-pool.service.js +344 -0
  1166. package/dist/workflow/services/mcp-client-pool.service.js.map +1 -0
  1167. package/dist/workflow/services/mcp-server.service.d.ts +11 -0
  1168. package/dist/workflow/services/mcp-server.service.js +37 -0
  1169. package/dist/workflow/services/mcp-server.service.js.map +1 -0
  1170. package/dist/workflow/services/memory-definition.service.d.ts +10 -0
  1171. package/dist/workflow/services/memory-definition.service.js +56 -0
  1172. package/dist/workflow/services/memory-definition.service.js.map +1 -0
  1173. package/dist/workflow/services/memory-record.service.d.ts +19 -0
  1174. package/dist/workflow/services/memory-record.service.js +126 -0
  1175. package/dist/workflow/services/memory-record.service.js.map +1 -0
  1176. package/dist/workflow/services/memory.service.d.ts +11 -0
  1177. package/dist/workflow/services/memory.service.js +43 -0
  1178. package/dist/workflow/services/memory.service.js.map +1 -0
  1179. package/dist/workflow/services/stdio-stderr-capture.transport.d.ts +13 -0
  1180. package/dist/workflow/services/stdio-stderr-capture.transport.js +61 -0
  1181. package/dist/workflow/services/stdio-stderr-capture.transport.js.map +1 -0
  1182. package/dist/workflow/services/workflow-run.service.d.ts +34 -0
  1183. package/dist/workflow/services/workflow-run.service.js +74 -0
  1184. package/dist/workflow/services/workflow-run.service.js.map +1 -0
  1185. package/dist/workflow/services/workflow-scheduler.service.d.ts +26 -0
  1186. package/dist/workflow/services/workflow-scheduler.service.js +170 -0
  1187. package/dist/workflow/services/workflow-scheduler.service.js.map +1 -0
  1188. package/dist/workflow/services/workflow-version.service.d.ts +16 -0
  1189. package/dist/workflow/services/workflow-version.service.js +69 -0
  1190. package/dist/workflow/services/workflow-version.service.js.map +1 -0
  1191. package/dist/workflow/services/workflow.service.d.ts +31 -0
  1192. package/dist/workflow/services/workflow.service.js +205 -0
  1193. package/dist/workflow/services/workflow.service.js.map +1 -0
  1194. package/dist/workflow/types.d.ts +83 -0
  1195. package/dist/workflow/types.js +34 -0
  1196. package/dist/workflow/types.js.map +1 -0
  1197. package/dist/workflow/utils/memory-store.d.ts +38 -0
  1198. package/dist/workflow/utils/memory-store.js +200 -0
  1199. package/dist/workflow/utils/memory-store.js.map +1 -0
  1200. package/dist/workflow/utils/schema-instance.d.ts +29 -0
  1201. package/dist/workflow/utils/schema-instance.js +148 -0
  1202. package/dist/workflow/utils/schema-instance.js.map +1 -0
  1203. package/dist/workflow/utils/workflow-run-duration.d.ts +9 -0
  1204. package/dist/workflow/utils/workflow-run-duration.js +28 -0
  1205. package/dist/workflow/utils/workflow-run-duration.js.map +1 -0
  1206. package/dist/workflow/workflow.module.d.ts +2 -0
  1207. package/dist/workflow/workflow.module.js +121 -0
  1208. package/dist/workflow/workflow.module.js.map +1 -0
  1209. package/package.json +25 -11
  1210. package/src/actions/actions.module.ts +25 -0
  1211. package/src/actions/actions.service.ts +102 -0
  1212. package/src/actions/base-action.ts +77 -0
  1213. package/src/actions/create-action.ts +56 -0
  1214. package/src/actions/index.ts +15 -0
  1215. package/src/actions/types.ts +63 -0
  1216. package/src/analytics/analytics.module.ts +14 -7
  1217. package/src/analytics/controllers/stats.controller.ts +100 -0
  1218. package/src/analytics/dto/stats.dto.ts +120 -0
  1219. package/src/analytics/entities/stats.entity.ts +103 -0
  1220. package/src/analytics/enums/stats-type.enum.ts +15 -0
  1221. package/src/analytics/index.ts +6 -6
  1222. package/src/analytics/repositories/stats.repository.ts +54 -0
  1223. package/src/analytics/services/stats.service.ts +176 -0
  1224. package/src/analytics/utilities/a-month-ago.ts +20 -0
  1225. package/src/app.controller.ts +2 -1
  1226. package/src/app.module.ts +16 -4
  1227. package/src/app.service.ts +95 -2
  1228. package/src/attachment/controllers/attachment.controller.ts +22 -24
  1229. package/src/attachment/dto/attachment.dto.ts +18 -22
  1230. package/src/attachment/entities/attachment.entity.ts +32 -5
  1231. package/src/attachment/guards/attachment-ability.guard.ts +2 -14
  1232. package/src/attachment/mocks/attachment.mock.ts +5 -9
  1233. package/src/attachment/repositories/attachment.repository.ts +2 -16
  1234. package/src/attachment/services/attachment.service.ts +1 -7
  1235. package/src/attachment/types/index.ts +0 -1
  1236. package/src/bindings/base-binding-kind.ts +65 -0
  1237. package/src/bindings/bindings.module.ts +25 -0
  1238. package/src/bindings/create-binding-kind.ts +35 -0
  1239. package/src/bindings/index.ts +11 -0
  1240. package/src/bindings/runtime-bindings.service.ts +116 -0
  1241. package/src/bindings/runtime-bindings.ts +79 -0
  1242. package/src/bootstrap.ts +0 -2
  1243. package/src/channel/channel.module.ts +14 -16
  1244. package/src/channel/channel.service.ts +61 -54
  1245. package/src/channel/index.ts +7 -3
  1246. package/src/channel/lib/Handler.ts +58 -249
  1247. package/src/channel/lib/__test__/common.mock.ts +1 -5
  1248. package/src/channel/lib/__test__/subscriber.mock.ts +4 -5
  1249. package/src/channel/lib/inbound-events/channel-inbound-event-context.ts +67 -0
  1250. package/src/channel/lib/inbound-events/channel-inbound-event-decoder.ts +21 -0
  1251. package/src/channel/lib/inbound-events/channel-inbound-event.ts +135 -0
  1252. package/src/channel/lib/inbound-events/index.ts +15 -0
  1253. package/src/channel/lib/inbound-events/message-inbound-event.ts +90 -0
  1254. package/src/channel/lib/inbound-events/synthetic-message-inbound-event.ts +75 -0
  1255. package/src/channel/lib/outbound/channel-outbound-encoder.ts +140 -0
  1256. package/src/channel/lib/outbound/index.ts +7 -0
  1257. package/src/channel/services/channel-attachment.service.ts +134 -0
  1258. package/src/channel/services/channel-download.service.ts +30 -0
  1259. package/src/channel/types.ts +3 -5
  1260. package/src/channel/webhook.controller.ts +59 -10
  1261. package/src/chat/chat.module.ts +15 -42
  1262. package/src/chat/controllers/label-group.controller.ts +16 -58
  1263. package/src/chat/controllers/label.controller.ts +16 -56
  1264. package/src/chat/controllers/message.controller.ts +73 -52
  1265. package/src/chat/controllers/subscriber.controller.ts +38 -46
  1266. package/src/chat/controllers/thread.controller.ts +93 -0
  1267. package/src/chat/dto/label-group.dto.ts +11 -16
  1268. package/src/chat/dto/label.dto.ts +11 -16
  1269. package/src/chat/dto/message.dto.ts +24 -16
  1270. package/src/chat/dto/subscriber.dto.ts +25 -59
  1271. package/src/chat/dto/thread.dto.ts +116 -0
  1272. package/src/chat/entities/label-group.entity.ts +11 -1
  1273. package/src/chat/entities/label.entity.ts +7 -10
  1274. package/src/chat/entities/message.entity.ts +18 -1
  1275. package/src/chat/entities/subscriber.entity.ts +26 -36
  1276. package/src/chat/entities/thread.entity.ts +57 -0
  1277. package/src/chat/helpers/README.md +7 -18
  1278. package/src/chat/helpers/envelope-builder.ts +1 -3
  1279. package/src/chat/helpers/envelope-factory.ts +8 -80
  1280. package/src/chat/index.ts +7 -59
  1281. package/src/chat/repositories/label-group.repository.ts +2 -15
  1282. package/src/chat/repositories/label.repository.ts +2 -15
  1283. package/src/chat/repositories/message.repository.ts +84 -67
  1284. package/src/chat/repositories/subscriber.repository.ts +85 -93
  1285. package/src/chat/repositories/thread.repository.ts +84 -0
  1286. package/src/chat/services/chat.service.ts +86 -141
  1287. package/src/chat/services/label-group.service.ts +1 -9
  1288. package/src/chat/services/label.service.ts +1 -6
  1289. package/src/chat/services/message.service.ts +30 -63
  1290. package/src/chat/services/subscriber.service.ts +232 -56
  1291. package/src/chat/services/thread.service.ts +236 -0
  1292. package/src/chat/types/attachment.ts +2 -2
  1293. package/src/chat/types/button.ts +63 -20
  1294. package/src/chat/types/channel.ts +5 -7
  1295. package/src/chat/types/message.ts +6 -117
  1296. package/src/chat/types/options.ts +98 -14
  1297. package/src/chat/types/quick-reply.ts +8 -10
  1298. package/src/cms/cms.module.ts +8 -0
  1299. package/src/cms/controllers/content-type.controller.ts +9 -24
  1300. package/src/cms/controllers/content.controller.ts +66 -33
  1301. package/src/cms/controllers/menu.controller.ts +13 -45
  1302. package/src/cms/dto/content.dto.ts +15 -18
  1303. package/src/cms/dto/contentType.dto.ts +23 -40
  1304. package/src/cms/dto/menu.dto.ts +12 -15
  1305. package/src/cms/entities/content-type.entity.ts +14 -41
  1306. package/src/cms/entities/content.entity.ts +34 -21
  1307. package/src/cms/entities/menu.entity.ts +27 -23
  1308. package/src/cms/enums/menu-type.enum.ts +11 -0
  1309. package/src/cms/index.ts +8 -0
  1310. package/src/cms/repositories/content-type.repository.ts +3 -19
  1311. package/src/cms/repositories/content.repository.ts +37 -21
  1312. package/src/cms/repositories/menu.repository.ts +2 -15
  1313. package/src/cms/services/content-type.service.ts +17 -29
  1314. package/src/cms/services/content.service.ts +40 -25
  1315. package/src/cms/services/menu.service.ts +1 -7
  1316. package/src/cms/services/rag-backend.service.ts +619 -0
  1317. package/src/cms/services/rag-indexer.service.ts +328 -0
  1318. package/src/cms/services/rag-keyword-index-recovery.ts +135 -0
  1319. package/src/cms/services/rag-retriever.service.ts +342 -0
  1320. package/src/cms/services/rag.service.ts +226 -0
  1321. package/src/cms/types/content.ts +0 -4
  1322. package/src/cms/types/rag.ts +23 -0
  1323. package/src/config/i18n/en/chatbot_settings.json +17 -0
  1324. package/src/config/i18n/en/contact.json +23 -0
  1325. package/src/config/i18n/en/messages.json +0 -8
  1326. package/src/config/i18n/en/rag_settings.json +21 -0
  1327. package/src/config/i18n/fr/chatbot_settings.json +17 -0
  1328. package/src/config/i18n/fr/contact.json +23 -0
  1329. package/src/config/i18n/fr/messages.json +4 -11
  1330. package/src/config/i18n/fr/rag_settings.json +21 -0
  1331. package/src/config/index.ts +2 -8
  1332. package/src/config/types.ts +0 -3
  1333. package/src/database/decorators/orm-event-hooks.decorator.ts +84 -0
  1334. package/src/database/entities/base.entity.ts +17 -30
  1335. package/src/extension/cleanup.service.ts +23 -23
  1336. package/src/extension/types.ts +9 -29
  1337. package/src/extensions/actions/ai/agent.action.ts +148 -0
  1338. package/src/extensions/actions/ai/ai-base.action.ts +826 -0
  1339. package/src/extensions/actions/ai/ai-schemas.ts +315 -0
  1340. package/src/extensions/actions/ai/generate-object.action.ts +51 -0
  1341. package/src/extensions/actions/ai/generate-object.base.action.ts +128 -0
  1342. package/src/extensions/actions/ai/generate-reply.action.ts +47 -0
  1343. package/src/extensions/actions/ai/generate-text.action.ts +51 -0
  1344. package/src/extensions/actions/ai/generate-text.base.action.ts +112 -0
  1345. package/src/extensions/actions/ai/i18n/en.translations.json +166 -0
  1346. package/src/extensions/actions/ai/i18n/fr.translations.json +166 -0
  1347. package/src/extensions/actions/ai/infer-object.action.ts +47 -0
  1348. package/src/extensions/actions/ai/mcp.binding.ts +58 -0
  1349. package/src/extensions/actions/ai/memory.binding.ts +41 -0
  1350. package/src/extensions/actions/ai/model.binding.ts +118 -0
  1351. package/src/extensions/actions/ai/retrieve-content-rag.action.ts +111 -0
  1352. package/src/extensions/actions/ai/tools.binding.ts +30 -0
  1353. package/src/extensions/actions/memory/i18n/en.translations.json +5 -0
  1354. package/src/extensions/actions/memory/i18n/fr.translations.json +5 -0
  1355. package/src/extensions/actions/memory/update-memory.action.ts +58 -0
  1356. package/src/extensions/actions/messaging/README.md +18 -0
  1357. package/src/extensions/actions/messaging/attachment.action.ts +86 -0
  1358. package/src/extensions/actions/messaging/await-reply.action.ts +68 -0
  1359. package/src/extensions/actions/messaging/buttons.action.ts +82 -0
  1360. package/src/extensions/actions/messaging/i18n/en.translations.json +176 -0
  1361. package/src/extensions/actions/messaging/i18n/fr.translations.json +176 -0
  1362. package/src/extensions/actions/messaging/list.action.ts +149 -0
  1363. package/src/extensions/actions/messaging/message-action.base.ts +204 -0
  1364. package/src/extensions/actions/messaging/quick-replies.action.ts +83 -0
  1365. package/src/extensions/actions/messaging/text-message.action.ts +67 -0
  1366. package/src/extensions/actions/subscriber/handover.action.ts +107 -0
  1367. package/src/extensions/actions/subscriber/i18n/en.translations.json +16 -0
  1368. package/src/extensions/actions/subscriber/i18n/fr.translations.json +16 -0
  1369. package/src/extensions/actions/subscriber/update-labels.action.ts +105 -0
  1370. package/src/extensions/actions/web/http-request.action.ts +243 -0
  1371. package/src/extensions/actions/web/i18n/en.translations.json +29 -0
  1372. package/src/extensions/actions/web/i18n/fr.translations.json +29 -0
  1373. package/src/extensions/channels/console/console-channel.settings.ts +100 -0
  1374. package/src/extensions/channels/console/globals.d.ts +6 -6
  1375. package/src/extensions/channels/console/i18n/en.translations.json +24 -0
  1376. package/src/extensions/channels/console/i18n/fr.translations.json +24 -0
  1377. package/src/extensions/channels/console/index.channel.ts +3 -41
  1378. package/src/extensions/channels/web/__test__/data.mock.ts +12 -16
  1379. package/src/extensions/channels/web/__test__/events.mock.ts +9 -9
  1380. package/src/extensions/channels/web/base-web-channel.ts +415 -819
  1381. package/src/extensions/channels/web/globals.d.ts +5 -7
  1382. package/src/extensions/channels/web/i18n/en.translations.json +28 -0
  1383. package/src/extensions/channels/web/i18n/fr.translations.json +28 -0
  1384. package/src/extensions/channels/web/inbound/events/base-web-inbound.event.ts +42 -0
  1385. package/src/extensions/channels/web/inbound/events/delivery.event.ts +38 -0
  1386. package/src/extensions/channels/web/inbound/events/index.ts +25 -0
  1387. package/src/extensions/channels/web/inbound/events/messages/attachment.event.ts +135 -0
  1388. package/src/extensions/channels/web/inbound/events/messages/location.event.ts +60 -0
  1389. package/src/extensions/channels/web/inbound/events/messages/payload.event.ts +53 -0
  1390. package/src/extensions/channels/web/inbound/events/messages/postback.event.ts +31 -0
  1391. package/src/extensions/channels/web/inbound/events/messages/quick-reply.event.ts +31 -0
  1392. package/src/extensions/channels/web/inbound/events/messages/text.event.ts +43 -0
  1393. package/src/extensions/channels/web/inbound/events/messages/web-message.event.ts +70 -0
  1394. package/src/extensions/channels/web/inbound/events/read.event.ts +38 -0
  1395. package/src/extensions/channels/web/inbound/events/typing.event.ts +33 -0
  1396. package/src/extensions/channels/web/inbound/events/unsupported.event.ts +34 -0
  1397. package/src/extensions/channels/web/inbound/index.ts +13 -0
  1398. package/src/extensions/channels/web/inbound/web-inbound-event-decoder.ts +196 -0
  1399. package/src/extensions/channels/web/index.channel.ts +3 -41
  1400. package/src/extensions/channels/web/outbound/index.ts +7 -0
  1401. package/src/extensions/channels/web/outbound/web-outbound-message-encoder.ts +283 -0
  1402. package/src/extensions/channels/web/types.ts +207 -128
  1403. package/src/extensions/channels/web/web-channel.settings.ts +105 -0
  1404. package/src/extensions/helpers/local-storage/i18n/en.translations.json +6 -0
  1405. package/src/extensions/helpers/local-storage/i18n/fr.translations.json +6 -0
  1406. package/src/extensions/helpers/local-storage/index.helper.ts +12 -27
  1407. package/src/extensions/index.ts +23 -7
  1408. package/src/global.d.ts +1 -0
  1409. package/src/helper/helper.controller.ts +14 -3
  1410. package/src/helper/helper.module.ts +1 -2
  1411. package/src/helper/helper.service.ts +7 -22
  1412. package/src/helper/index.ts +0 -4
  1413. package/src/helper/lib/__test__/settings.ts +2 -6
  1414. package/src/helper/lib/base-helper.ts +11 -23
  1415. package/src/helper/lib/base-llm-helper.ts +4 -12
  1416. package/src/helper/lib/base-storage-helper.ts +2 -10
  1417. package/src/helper/types.ts +3 -57
  1418. package/src/i18n/controllers/language.controller.ts +9 -21
  1419. package/src/i18n/controllers/translation.controller.ts +12 -32
  1420. package/src/i18n/dto/language.dto.ts +11 -14
  1421. package/src/i18n/dto/translation.dto.ts +11 -14
  1422. package/src/i18n/entities/language.entity.ts +20 -15
  1423. package/src/i18n/entities/translation.entity.ts +7 -1
  1424. package/src/i18n/i18n.module.ts +2 -4
  1425. package/src/i18n/index.ts +0 -2
  1426. package/src/i18n/loaders/extension-json.loader.ts +240 -0
  1427. package/src/i18n/localize-schema-metadata.ts +63 -0
  1428. package/src/i18n/repositories/language.repository.ts +2 -14
  1429. package/src/i18n/repositories/translation.repository.ts +2 -14
  1430. package/src/i18n/seeds/language.seed.ts +2 -10
  1431. package/src/i18n/seeds/translation.seed.ts +1 -9
  1432. package/src/i18n/services/i18n.service.ts +24 -3
  1433. package/src/i18n/services/language.service.ts +1 -8
  1434. package/src/i18n/services/translation.service.ts +174 -158
  1435. package/src/index.ts +8 -4
  1436. package/src/license/decorators/requires-license-feature.decorator.ts +18 -0
  1437. package/src/license/guards/license-feature.guard.ts +56 -0
  1438. package/src/license/index.ts +23 -0
  1439. package/src/license/license.module.ts +28 -0
  1440. package/src/license/services/lemon-squeezy.service.ts +101 -0
  1441. package/src/license/services/license-orm-listener.service.ts +121 -0
  1442. package/src/license/services/license.service.ts +621 -0
  1443. package/src/license/types/lemon-squeezy.types.ts +59 -0
  1444. package/src/license/types/license-feature.enum.ts +52 -0
  1445. package/src/license/types/license-quota.ts +72 -0
  1446. package/src/migration/migration.service.ts +8 -1
  1447. package/src/seeder.ts +20 -27
  1448. package/src/setting/base-setting-group.ts +56 -0
  1449. package/src/setting/controllers/setting.controller.ts +17 -16
  1450. package/src/setting/create-setting-group.ts +30 -0
  1451. package/src/setting/default.settings.ts +250 -0
  1452. package/src/setting/dto/metadata.dto.ts +11 -14
  1453. package/src/setting/dto/setting.dto.ts +14 -97
  1454. package/src/setting/entities/metadata.entity.ts +7 -1
  1455. package/src/setting/entities/setting.entity.ts +7 -87
  1456. package/src/setting/globals.d.ts +9 -30
  1457. package/src/setting/index.ts +12 -0
  1458. package/src/setting/repositories/metadata.repository.ts +2 -14
  1459. package/src/setting/repositories/setting.repository.ts +3 -32
  1460. package/src/setting/runtime-settings.seed.ts +99 -0
  1461. package/src/setting/runtime-settings.ts +62 -0
  1462. package/src/setting/seeds/metadata.seed.ts +2 -10
  1463. package/src/setting/seeds/setting.seed-model.ts +6 -174
  1464. package/src/setting/seeds/setting.seed.ts +4 -10
  1465. package/src/setting/services/metadata.service.ts +2 -11
  1466. package/src/setting/services/runtime-settings.service.ts +149 -0
  1467. package/src/setting/services/setting.service.ts +160 -16
  1468. package/src/setting/setting.module.ts +20 -1
  1469. package/src/setting/types/index.ts +3 -118
  1470. package/src/types/ai-sdk-mcp-stdio.d.ts +31 -0
  1471. package/src/user/controllers/auth.controller.ts +15 -94
  1472. package/src/user/controllers/credential.controller.ts +115 -0
  1473. package/src/user/controllers/model.controller.ts +5 -12
  1474. package/src/user/controllers/permission.controller.ts +8 -26
  1475. package/src/user/controllers/role.controller.ts +16 -36
  1476. package/src/user/controllers/user.controller.ts +49 -67
  1477. package/src/user/dto/assigned-profile.dto.ts +76 -0
  1478. package/src/user/dto/credential.dto.ts +73 -0
  1479. package/src/user/dto/model.dto.ts +10 -13
  1480. package/src/user/dto/permission.dto.ts +10 -13
  1481. package/src/user/dto/role.dto.ts +11 -14
  1482. package/src/user/dto/user-profile.dto.ts +43 -0
  1483. package/src/user/dto/user.dto.ts +65 -40
  1484. package/src/user/entities/credential.entity.ts +50 -0
  1485. package/src/user/entities/model.entity.ts +6 -1
  1486. package/src/user/entities/permission.entity.ts +10 -1
  1487. package/src/user/entities/role.entity.ts +7 -1
  1488. package/src/user/entities/user-profile.entity.ts +72 -0
  1489. package/src/user/entities/user.entity.ts +16 -35
  1490. package/src/user/guards/ability.guard.ts +1 -2
  1491. package/src/user/index.ts +10 -8
  1492. package/src/user/passport/auth-strategy/local.strategy.ts +0 -1
  1493. package/src/user/passport/session.serializer.ts +2 -2
  1494. package/src/user/repositories/credential.repository.ts +37 -0
  1495. package/src/user/repositories/model.repository.ts +2 -12
  1496. package/src/user/repositories/permission.repository.ts +2 -15
  1497. package/src/user/repositories/role.repository.ts +2 -15
  1498. package/src/user/repositories/user.repository.ts +33 -16
  1499. package/src/user/seeds/model.seed-model.ts +41 -41
  1500. package/src/user/seeds/model.seed.ts +1 -6
  1501. package/src/user/seeds/permission.seed.ts +1 -9
  1502. package/src/user/seeds/role.seed.ts +1 -6
  1503. package/src/user/seeds/user.seed-model.ts +23 -5
  1504. package/src/user/seeds/user.seed.ts +1 -6
  1505. package/src/user/services/auth.service.ts +2 -5
  1506. package/src/user/services/credential.service.ts +23 -0
  1507. package/src/user/services/model.service.ts +1 -6
  1508. package/src/user/services/passwordReset.service.ts +1 -1
  1509. package/src/user/services/permission.service.ts +2 -10
  1510. package/src/user/services/role.service.ts +1 -6
  1511. package/src/user/services/user.service.ts +8 -6
  1512. package/src/user/services/validate-account.service.ts +6 -9
  1513. package/src/user/types/model.type.ts +10 -6
  1514. package/src/user/user.module.ts +9 -7
  1515. package/src/utils/constants/cache.ts +0 -2
  1516. package/src/utils/constants/session-middleware.ts +2 -1
  1517. package/src/utils/decorators/uuid-param.decorator.ts +21 -0
  1518. package/src/utils/decorators/validate.decorator.ts +5 -5
  1519. package/src/utils/generics/base-orm.controller.ts +70 -19
  1520. package/src/utils/generics/base-orm.repository.ts +228 -120
  1521. package/src/utils/generics/base-orm.seeder.ts +7 -19
  1522. package/src/utils/generics/base-orm.service.ts +31 -39
  1523. package/src/utils/generics/extension.ts +6 -31
  1524. package/src/utils/helpers/avatar.ts +8 -10
  1525. package/src/utils/helpers/clone.ts +27 -0
  1526. package/src/utils/helpers/flatten.ts +1 -3
  1527. package/src/utils/helpers/freeze.ts +18 -0
  1528. package/src/utils/helpers/misc.ts +0 -23
  1529. package/src/utils/helpers/object.ts +31 -0
  1530. package/src/utils/helpers/zod.ts +66 -0
  1531. package/src/utils/index.ts +7 -9
  1532. package/src/utils/pipes/zod.pipe.ts +2 -2
  1533. package/src/utils/test/constants.ts +6 -1
  1534. package/src/utils/test/dummy/controllers/dummy.controller.ts +19 -0
  1535. package/src/utils/test/dummy/dto/dummy.dto.ts +11 -16
  1536. package/src/utils/test/dummy/dummy.action.ts +44 -0
  1537. package/src/utils/test/dummy/dummy.module.ts +2 -0
  1538. package/src/utils/test/dummy/entities/dummy.entity.ts +7 -1
  1539. package/src/utils/test/dummy/repositories/dummy.repository.ts +2 -10
  1540. package/src/utils/test/dummy/services/dummy.service.ts +1 -7
  1541. package/src/utils/test/fixtures/attachment.ts +15 -5
  1542. package/src/utils/test/fixtures/content.ts +12 -15
  1543. package/src/utils/test/fixtures/contenttype.ts +33 -86
  1544. package/src/utils/test/fixtures/language.ts +0 -2
  1545. package/src/utils/test/fixtures/mcp-server.ts +71 -0
  1546. package/src/utils/test/fixtures/memory-definition.ts +81 -0
  1547. package/src/utils/test/fixtures/memory-record.ts +196 -0
  1548. package/src/utils/test/fixtures/menu.ts +0 -2
  1549. package/src/utils/test/fixtures/message.ts +34 -0
  1550. package/src/utils/test/fixtures/setting.ts +11 -49
  1551. package/src/utils/test/fixtures/stats.ts +61 -0
  1552. package/src/utils/test/fixtures/subscriber.ts +24 -24
  1553. package/src/utils/test/fixtures/user.ts +17 -4
  1554. package/src/utils/test/fixtures/workflow-run.ts +241 -0
  1555. package/src/utils/test/fixtures/workflow.ts +171 -0
  1556. package/src/utils/test/mocks/subscriber.ts +4 -5
  1557. package/src/utils/test/modules/i18n-testing.module.ts +16 -0
  1558. package/src/utils/test/postman-collections/hexabot_REST.postman_collection.json +7 -364
  1559. package/src/utils/test/providers/i18n-service.provider.ts +24 -0
  1560. package/src/utils/test/providers/mailer-service.provider.ts +18 -0
  1561. package/src/utils/test/providers/setting-service.provider.ts +35 -0
  1562. package/src/utils/test/utils.ts +209 -4
  1563. package/src/utils/types/dto.types.ts +50 -24
  1564. package/src/utils/types/entity-event.types.ts +95 -0
  1565. package/src/utils/types/extension.ts +1 -2
  1566. package/src/websocket/services/socket-event-dispatcher.service.ts +5 -0
  1567. package/src/websocket/types.ts +1 -0
  1568. package/src/websocket/utils/gateway-options.ts +1 -0
  1569. package/src/websocket/websocket.gateway.ts +127 -138
  1570. package/src/websocket/websocket.module.ts +3 -0
  1571. package/src/workflow/contexts/conversational-workflow.context.ts +16 -0
  1572. package/src/workflow/contexts/manual-workflow.context.ts +16 -0
  1573. package/src/workflow/contexts/scheduled-workflow.context.ts +16 -0
  1574. package/src/workflow/contexts/workflow-context-factory.ts +78 -0
  1575. package/src/workflow/contexts/workflow-runtime.context.ts +197 -0
  1576. package/src/workflow/controllers/mcp-server.controller.ts +193 -0
  1577. package/src/workflow/controllers/memory-definition.controller.ts +166 -0
  1578. package/src/workflow/controllers/workflow-run.controller.ts +107 -0
  1579. package/src/workflow/controllers/workflow-version.controller.ts +200 -0
  1580. package/src/workflow/controllers/workflow.controller.ts +336 -0
  1581. package/src/workflow/decorators/is-workflow-definition.decorator.ts +57 -0
  1582. package/src/workflow/decorators/is-workflow-yaml.decorator.ts +52 -0
  1583. package/src/workflow/defaults/default-workflow.ts +37 -0
  1584. package/src/workflow/dto/mcp-server.dto.ts +173 -0
  1585. package/src/workflow/dto/memory-definition.dto.ts +107 -0
  1586. package/src/workflow/dto/memory-record.dto.ts +169 -0
  1587. package/src/workflow/dto/workflow-run.dto.ts +304 -0
  1588. package/src/workflow/dto/workflow-version.dto.ts +147 -0
  1589. package/src/workflow/dto/workflow.dto.ts +241 -0
  1590. package/src/workflow/entities/mcp-server.entity.ts +185 -0
  1591. package/src/workflow/entities/memory-definition.entity.ts +48 -0
  1592. package/src/workflow/entities/memory-record.entity.ts +119 -0
  1593. package/src/workflow/entities/workflow-run.entity.ts +193 -0
  1594. package/src/workflow/entities/workflow-version.entity.ts +147 -0
  1595. package/src/workflow/entities/workflow.entity.ts +255 -0
  1596. package/src/workflow/index.ts +75 -0
  1597. package/src/workflow/lib/trigger-event-wrapper.ts +153 -0
  1598. package/src/workflow/lib/workflow-definition.ts +25 -0
  1599. package/src/workflow/repositories/mcp-server.repository.ts +23 -0
  1600. package/src/workflow/repositories/memory-definition.repository.ts +23 -0
  1601. package/src/workflow/repositories/memory-record.repository.ts +23 -0
  1602. package/src/workflow/repositories/workflow-run.repository.ts +28 -0
  1603. package/src/workflow/repositories/workflow-version.repository.ts +23 -0
  1604. package/src/workflow/repositories/workflow.repository.ts +28 -0
  1605. package/src/workflow/schemas/workflow-input-schemas.ts +84 -0
  1606. package/src/workflow/schemas/workflow-schemas.ts +24 -0
  1607. package/src/workflow/seeds/memory-definition.seed-model.ts +59 -0
  1608. package/src/workflow/seeds/memory-definition.seed.ts +19 -0
  1609. package/src/workflow/seeds/workflow.seed-model.ts +19 -0
  1610. package/src/workflow/seeds/workflow.seed.ts +36 -0
  1611. package/src/workflow/services/agentic.service.ts +524 -0
  1612. package/src/workflow/services/mcp-client-pool.service.ts +633 -0
  1613. package/src/workflow/services/mcp-server.service.ts +58 -0
  1614. package/src/workflow/services/memory-definition.service.ts +78 -0
  1615. package/src/workflow/services/memory-record.service.ts +176 -0
  1616. package/src/workflow/services/memory.service.ts +57 -0
  1617. package/src/workflow/services/stdio-stderr-capture.transport.ts +96 -0
  1618. package/src/workflow/services/workflow-run.service.ts +154 -0
  1619. package/src/workflow/services/workflow-scheduler.service.ts +244 -0
  1620. package/src/workflow/services/workflow-version.service.ts +109 -0
  1621. package/src/workflow/services/workflow.service.ts +243 -0
  1622. package/src/workflow/types.ts +123 -0
  1623. package/src/workflow/utils/memory-store.ts +393 -0
  1624. package/src/workflow/utils/schema-instance.ts +308 -0
  1625. package/src/workflow/utils/workflow-run-duration.ts +45 -0
  1626. package/src/workflow/workflow.module.ts +116 -0
  1627. package/types/event-emitter.d.ts +77 -56
  1628. package/types/express-session.d.ts +3 -5
  1629. package/dist/analytics/controllers/bot-stats.controller.d.ts +0 -17
  1630. package/dist/analytics/controllers/bot-stats.controller.js +0 -107
  1631. package/dist/analytics/controllers/bot-stats.controller.js.map +0 -1
  1632. package/dist/analytics/dto/bot-stats.dto.d.ts +0 -35
  1633. package/dist/analytics/dto/bot-stats.dto.js +0 -112
  1634. package/dist/analytics/dto/bot-stats.dto.js.map +0 -1
  1635. package/dist/analytics/entities/bot-stats.entity.d.ts +0 -33
  1636. package/dist/analytics/entities/bot-stats.entity.js +0 -80
  1637. package/dist/analytics/entities/bot-stats.entity.js.map +0 -1
  1638. package/dist/analytics/repositories/bot-stats.repository.d.ts +0 -12
  1639. package/dist/analytics/repositories/bot-stats.repository.js +0 -68
  1640. package/dist/analytics/repositories/bot-stats.repository.js.map +0 -1
  1641. package/dist/analytics/services/bot-stats.service.d.ts +0 -22
  1642. package/dist/analytics/services/bot-stats.service.js +0 -132
  1643. package/dist/analytics/services/bot-stats.service.js.map +0 -1
  1644. package/dist/analytics/utilities/index.js +0 -6
  1645. package/dist/analytics/utilities/index.js.map +0 -1
  1646. package/dist/channel/channel.middleware.d.ts +0 -8
  1647. package/dist/channel/channel.middleware.js +0 -40
  1648. package/dist/channel/channel.middleware.js.map +0 -1
  1649. package/dist/channel/lib/EventWrapper.d.ts +0 -67
  1650. package/dist/channel/lib/EventWrapper.js +0 -126
  1651. package/dist/channel/lib/EventWrapper.js.map +0 -1
  1652. package/dist/chat/constants/block.d.ts +0 -3
  1653. package/dist/chat/constants/block.js +0 -13
  1654. package/dist/chat/constants/block.js.map +0 -1
  1655. package/dist/chat/constants/conversation.d.ts +0 -2
  1656. package/dist/chat/constants/conversation.js +0 -23
  1657. package/dist/chat/constants/conversation.js.map +0 -1
  1658. package/dist/chat/controllers/block.controller.d.ts +0 -56
  1659. package/dist/chat/controllers/block.controller.js +0 -253
  1660. package/dist/chat/controllers/block.controller.js.map +0 -1
  1661. package/dist/chat/controllers/category.controller.d.ts +0 -19
  1662. package/dist/chat/controllers/category.controller.js +0 -132
  1663. package/dist/chat/controllers/category.controller.js.map +0 -1
  1664. package/dist/chat/controllers/context-var.controller.d.ts +0 -19
  1665. package/dist/chat/controllers/context-var.controller.js +0 -132
  1666. package/dist/chat/controllers/context-var.controller.js.map +0 -1
  1667. package/dist/chat/dto/block.dto.d.ts +0 -80
  1668. package/dist/chat/dto/block.dto.js +0 -363
  1669. package/dist/chat/dto/block.dto.js.map +0 -1
  1670. package/dist/chat/dto/category.dto.d.ts +0 -33
  1671. package/dist/chat/dto/category.dto.js +0 -91
  1672. package/dist/chat/dto/category.dto.js.map +0 -1
  1673. package/dist/chat/dto/context-var.dto.d.ts +0 -28
  1674. package/dist/chat/dto/context-var.dto.js +0 -71
  1675. package/dist/chat/dto/context-var.dto.js.map +0 -1
  1676. package/dist/chat/dto/conversation.dto.d.ts +0 -38
  1677. package/dist/chat/dto/conversation.dto.js +0 -120
  1678. package/dist/chat/dto/conversation.dto.js.map +0 -1
  1679. package/dist/chat/entities/block.entity.d.ts +0 -39
  1680. package/dist/chat/entities/block.entity.js +0 -334
  1681. package/dist/chat/entities/block.entity.js.map +0 -1
  1682. package/dist/chat/entities/category.entity.d.ts +0 -10
  1683. package/dist/chat/entities/category.entity.js +0 -69
  1684. package/dist/chat/entities/category.entity.js.map +0 -1
  1685. package/dist/chat/entities/context-var.entity.d.ts +0 -7
  1686. package/dist/chat/entities/context-var.entity.js +0 -75
  1687. package/dist/chat/entities/context-var.entity.js.map +0 -1
  1688. package/dist/chat/entities/conversation.entity.d.ts +0 -14
  1689. package/dist/chat/entities/conversation.entity.js +0 -74
  1690. package/dist/chat/entities/conversation.entity.js.map +0 -1
  1691. package/dist/chat/repositories/block.repository.d.ts +0 -10
  1692. package/dist/chat/repositories/block.repository.js +0 -116
  1693. package/dist/chat/repositories/block.repository.js.map +0 -1
  1694. package/dist/chat/repositories/category.repository.d.ts +0 -7
  1695. package/dist/chat/repositories/category.repository.js +0 -36
  1696. package/dist/chat/repositories/category.repository.js.map +0 -1
  1697. package/dist/chat/repositories/context-var.repository.d.ts +0 -7
  1698. package/dist/chat/repositories/context-var.repository.js +0 -36
  1699. package/dist/chat/repositories/context-var.repository.js.map +0 -1
  1700. package/dist/chat/repositories/conversation.repository.d.ts +0 -8
  1701. package/dist/chat/repositories/conversation.repository.js +0 -39
  1702. package/dist/chat/repositories/conversation.repository.js.map +0 -1
  1703. package/dist/chat/seeds/category.seed-model.d.ts +0 -2
  1704. package/dist/chat/seeds/category.seed-model.js +0 -9
  1705. package/dist/chat/seeds/category.seed-model.js.map +0 -1
  1706. package/dist/chat/seeds/category.seed.d.ts +0 -8
  1707. package/dist/chat/seeds/category.seed.js +0 -27
  1708. package/dist/chat/seeds/category.seed.js.map +0 -1
  1709. package/dist/chat/seeds/context-var.seed-model.d.ts +0 -2
  1710. package/dist/chat/seeds/context-var.seed-model.js +0 -14
  1711. package/dist/chat/seeds/context-var.seed-model.js.map +0 -1
  1712. package/dist/chat/seeds/context-var.seed.d.ts +0 -8
  1713. package/dist/chat/seeds/context-var.seed.js +0 -27
  1714. package/dist/chat/seeds/context-var.seed.js.map +0 -1
  1715. package/dist/chat/services/block.service.d.ts +0 -51
  1716. package/dist/chat/services/block.service.js +0 -366
  1717. package/dist/chat/services/block.service.js.map +0 -1
  1718. package/dist/chat/services/bot.service.d.ts +0 -36
  1719. package/dist/chat/services/bot.service.js +0 -375
  1720. package/dist/chat/services/bot.service.js.map +0 -1
  1721. package/dist/chat/services/category.service.d.ts +0 -8
  1722. package/dist/chat/services/category.service.js +0 -27
  1723. package/dist/chat/services/category.service.js.map +0 -1
  1724. package/dist/chat/services/context-var.service.d.ts +0 -10
  1725. package/dist/chat/services/context-var.service.js +0 -41
  1726. package/dist/chat/services/context-var.service.js.map +0 -1
  1727. package/dist/chat/services/conversation.service.d.ts +0 -18
  1728. package/dist/chat/services/conversation.service.js +0 -149
  1729. package/dist/chat/services/conversation.service.js.map +0 -1
  1730. package/dist/chat/types/capture-var.d.ts +0 -12
  1731. package/dist/chat/types/capture-var.js +0 -9
  1732. package/dist/chat/types/capture-var.js.map +0 -1
  1733. package/dist/chat/types/context.d.ts +0 -25
  1734. package/dist/chat/types/context.js +0 -3
  1735. package/dist/chat/types/context.js.map +0 -1
  1736. package/dist/chat/types/pattern.d.ts +0 -100
  1737. package/dist/chat/types/pattern.js +0 -56
  1738. package/dist/chat/types/pattern.js.map +0 -1
  1739. package/dist/chat/types/position.d.ts +0 -12
  1740. package/dist/chat/types/position.js +0 -9
  1741. package/dist/chat/types/position.js.map +0 -1
  1742. package/dist/chat/types/subscriberContext.d.ts +0 -9
  1743. package/dist/chat/types/subscriberContext.js +0 -8
  1744. package/dist/chat/types/subscriberContext.js.map +0 -1
  1745. package/dist/extensions/channels/console/i18n/en/label.json +0 -21
  1746. package/dist/extensions/channels/console/i18n/en/title.json +0 -3
  1747. package/dist/extensions/channels/console/i18n/fr/label.json +0 -21
  1748. package/dist/extensions/channels/console/i18n/fr/title.json +0 -3
  1749. package/dist/extensions/channels/console/settings.d.ts +0 -56
  1750. package/dist/extensions/channels/console/settings.js +0 -71
  1751. package/dist/extensions/channels/console/settings.js.map +0 -1
  1752. package/dist/extensions/channels/web/i18n/en/label.json +0 -21
  1753. package/dist/extensions/channels/web/i18n/en/title.json +0 -3
  1754. package/dist/extensions/channels/web/i18n/fr/label.json +0 -21
  1755. package/dist/extensions/channels/web/i18n/fr/title.json +0 -3
  1756. package/dist/extensions/channels/web/settings.d.ts +0 -68
  1757. package/dist/extensions/channels/web/settings.js +0 -85
  1758. package/dist/extensions/channels/web/settings.js.map +0 -1
  1759. package/dist/extensions/channels/web/wrapper.d.ts +0 -63
  1760. package/dist/extensions/channels/web/wrapper.js +0 -167
  1761. package/dist/extensions/channels/web/wrapper.js.map +0 -1
  1762. package/dist/extensions/helpers/llm-nlu/i18n/en/help.json +0 -5
  1763. package/dist/extensions/helpers/llm-nlu/i18n/en/label.json +0 -5
  1764. package/dist/extensions/helpers/llm-nlu/i18n/en/title.json +0 -3
  1765. package/dist/extensions/helpers/llm-nlu/i18n/fr/help.json +0 -5
  1766. package/dist/extensions/helpers/llm-nlu/i18n/fr/label.json +0 -5
  1767. package/dist/extensions/helpers/llm-nlu/i18n/fr/title.json +0 -3
  1768. package/dist/extensions/helpers/llm-nlu/index.helper.d.ts +0 -21
  1769. package/dist/extensions/helpers/llm-nlu/index.helper.js +0 -138
  1770. package/dist/extensions/helpers/llm-nlu/index.helper.js.map +0 -1
  1771. package/dist/extensions/helpers/llm-nlu/package.json +0 -8
  1772. package/dist/extensions/helpers/llm-nlu/settings.d.ts +0 -20
  1773. package/dist/extensions/helpers/llm-nlu/settings.js +0 -39
  1774. package/dist/extensions/helpers/llm-nlu/settings.js.map +0 -1
  1775. package/dist/extensions/helpers/local-storage/settings.d.ts +0 -4
  1776. package/dist/extensions/helpers/local-storage/settings.js +0 -7
  1777. package/dist/extensions/helpers/local-storage/settings.js.map +0 -1
  1778. package/dist/helper/lib/base-flow-escape-helper.d.ts +0 -13
  1779. package/dist/helper/lib/base-flow-escape-helper.js +0 -15
  1780. package/dist/helper/lib/base-flow-escape-helper.js.map +0 -1
  1781. package/dist/helper/lib/base-nlp-helper.d.ts +0 -28
  1782. package/dist/helper/lib/base-nlp-helper.js +0 -168
  1783. package/dist/helper/lib/base-nlp-helper.js.map +0 -1
  1784. package/dist/i18n/controllers/i18n.controller.d.ts +0 -10
  1785. package/dist/i18n/controllers/i18n.controller.js +0 -46
  1786. package/dist/i18n/controllers/i18n.controller.js.map +0 -1
  1787. package/dist/nlp/controllers/nlp-entity.controller.d.ts +0 -19
  1788. package/dist/nlp/controllers/nlp-entity.controller.js +0 -160
  1789. package/dist/nlp/controllers/nlp-entity.controller.js.map +0 -1
  1790. package/dist/nlp/controllers/nlp-sample.controller.d.ts +0 -39
  1791. package/dist/nlp/controllers/nlp-sample.controller.js +0 -289
  1792. package/dist/nlp/controllers/nlp-sample.controller.js.map +0 -1
  1793. package/dist/nlp/controllers/nlp-value.controller.d.ts +0 -21
  1794. package/dist/nlp/controllers/nlp-value.controller.js +0 -141
  1795. package/dist/nlp/controllers/nlp-value.controller.js.map +0 -1
  1796. package/dist/nlp/dto/nlp-entity.dto.d.ts +0 -37
  1797. package/dist/nlp/dto/nlp-entity.dto.js +0 -141
  1798. package/dist/nlp/dto/nlp-entity.dto.js.map +0 -1
  1799. package/dist/nlp/dto/nlp-sample-entity.dto.d.ts +0 -32
  1800. package/dist/nlp/dto/nlp-sample-entity.dto.js +0 -110
  1801. package/dist/nlp/dto/nlp-sample-entity.dto.js.map +0 -1
  1802. package/dist/nlp/dto/nlp-sample.dto.d.ts +0 -43
  1803. package/dist/nlp/dto/nlp-sample.dto.js +0 -160
  1804. package/dist/nlp/dto/nlp-sample.dto.js.map +0 -1
  1805. package/dist/nlp/dto/nlp-value.dto.d.ts +0 -46
  1806. package/dist/nlp/dto/nlp-value.dto.js +0 -166
  1807. package/dist/nlp/dto/nlp-value.dto.js.map +0 -1
  1808. package/dist/nlp/entities/nlp-entity.entity.d.ts +0 -16
  1809. package/dist/nlp/entities/nlp-entity.entity.js +0 -66
  1810. package/dist/nlp/entities/nlp-entity.entity.js.map +0 -1
  1811. package/dist/nlp/entities/nlp-sample-entity.entity.d.ts +0 -14
  1812. package/dist/nlp/entities/nlp-sample-entity.entity.js +0 -73
  1813. package/dist/nlp/entities/nlp-sample-entity.entity.js.map +0 -1
  1814. package/dist/nlp/entities/nlp-sample.entity.d.ts +0 -12
  1815. package/dist/nlp/entities/nlp-sample.entity.js +0 -58
  1816. package/dist/nlp/entities/nlp-sample.entity.js.map +0 -1
  1817. package/dist/nlp/entities/nlp-value.entity.d.ts +0 -23
  1818. package/dist/nlp/entities/nlp-value.entity.js +0 -83
  1819. package/dist/nlp/entities/nlp-value.entity.js.map +0 -1
  1820. package/dist/nlp/index.d.ts +0 -26
  1821. package/dist/nlp/index.js +0 -43
  1822. package/dist/nlp/index.js.map +0 -1
  1823. package/dist/nlp/nlp.module.d.ts +0 -2
  1824. package/dist/nlp/nlp.module.js +0 -64
  1825. package/dist/nlp/nlp.module.js.map +0 -1
  1826. package/dist/nlp/repositories/nlp-entity.repository.d.ts +0 -7
  1827. package/dist/nlp/repositories/nlp-entity.repository.js +0 -36
  1828. package/dist/nlp/repositories/nlp-entity.repository.js.map +0 -1
  1829. package/dist/nlp/repositories/nlp-sample-entity.repository.d.ts +0 -7
  1830. package/dist/nlp/repositories/nlp-sample-entity.repository.js +0 -36
  1831. package/dist/nlp/repositories/nlp-sample-entity.repository.js.map +0 -1
  1832. package/dist/nlp/repositories/nlp-sample.repository.d.ts +0 -24
  1833. package/dist/nlp/repositories/nlp-sample.repository.js +0 -123
  1834. package/dist/nlp/repositories/nlp-sample.repository.js.map +0 -1
  1835. package/dist/nlp/repositories/nlp-value.repository.d.ts +0 -10
  1836. package/dist/nlp/repositories/nlp-value.repository.js +0 -93
  1837. package/dist/nlp/repositories/nlp-value.repository.js.map +0 -1
  1838. package/dist/nlp/seeds/nlp-entity.seed-model.d.ts +0 -2
  1839. package/dist/nlp/seeds/nlp-entity.seed-model.js +0 -12
  1840. package/dist/nlp/seeds/nlp-entity.seed-model.js.map +0 -1
  1841. package/dist/nlp/seeds/nlp-entity.seed.d.ts +0 -7
  1842. package/dist/nlp/seeds/nlp-entity.seed.js +0 -26
  1843. package/dist/nlp/seeds/nlp-entity.seed.js.map +0 -1
  1844. package/dist/nlp/seeds/nlp-value.seed-model.d.ts +0 -2
  1845. package/dist/nlp/seeds/nlp-value.seed-model.js +0 -5
  1846. package/dist/nlp/seeds/nlp-value.seed-model.js.map +0 -1
  1847. package/dist/nlp/seeds/nlp-value.seed.d.ts +0 -10
  1848. package/dist/nlp/seeds/nlp-value.seed.js +0 -41
  1849. package/dist/nlp/seeds/nlp-value.seed.js.map +0 -1
  1850. package/dist/nlp/services/nlp-entity.service.d.ts +0 -24
  1851. package/dist/nlp/services/nlp-entity.service.js +0 -120
  1852. package/dist/nlp/services/nlp-entity.service.js.map +0 -1
  1853. package/dist/nlp/services/nlp-sample-entity.service.d.ts +0 -17
  1854. package/dist/nlp/services/nlp-sample-entity.service.js +0 -72
  1855. package/dist/nlp/services/nlp-sample-entity.service.js.map +0 -1
  1856. package/dist/nlp/services/nlp-sample.service.d.ts +0 -42
  1857. package/dist/nlp/services/nlp-sample.service.js +0 -236
  1858. package/dist/nlp/services/nlp-sample.service.js.map +0 -1
  1859. package/dist/nlp/services/nlp-value.service.d.ts +0 -19
  1860. package/dist/nlp/services/nlp-value.service.js +0 -159
  1861. package/dist/nlp/services/nlp-value.service.js.map +0 -1
  1862. package/dist/nlp/services/nlp.service.d.ts +0 -26
  1863. package/dist/nlp/services/nlp.service.js +0 -241
  1864. package/dist/nlp/services/nlp.service.js.map +0 -1
  1865. package/dist/nlp/types.d.ts +0 -34
  1866. package/dist/nlp/types.js +0 -17
  1867. package/dist/nlp/types.js.map +0 -1
  1868. package/dist/plugins/base-block-plugin.d.ts +0 -16
  1869. package/dist/plugins/base-block-plugin.js +0 -47
  1870. package/dist/plugins/base-block-plugin.js.map +0 -1
  1871. package/dist/plugins/base-event-plugin.d.ts +0 -7
  1872. package/dist/plugins/base-event-plugin.js +0 -28
  1873. package/dist/plugins/base-event-plugin.js.map +0 -1
  1874. package/dist/plugins/base-plugin.service.d.ts +0 -11
  1875. package/dist/plugins/base-plugin.service.js +0 -32
  1876. package/dist/plugins/base-plugin.service.js.map +0 -1
  1877. package/dist/plugins/index.d.ts +0 -7
  1878. package/dist/plugins/index.js +0 -24
  1879. package/dist/plugins/index.js.map +0 -1
  1880. package/dist/plugins/map-types.d.ts +0 -11
  1881. package/dist/plugins/map-types.js +0 -10
  1882. package/dist/plugins/map-types.js.map +0 -1
  1883. package/dist/plugins/plugins.module.d.ts +0 -2
  1884. package/dist/plugins/plugins.module.js +0 -39
  1885. package/dist/plugins/plugins.module.js.map +0 -1
  1886. package/dist/plugins/plugins.service.d.ts +0 -12
  1887. package/dist/plugins/plugins.service.js +0 -50
  1888. package/dist/plugins/plugins.service.js.map +0 -1
  1889. package/dist/plugins/types.d.ts +0 -20
  1890. package/dist/plugins/types.js +0 -9
  1891. package/dist/plugins/types.js.map +0 -1
  1892. package/dist/static/assets/NlpEntity-pMPO8FJm.js +0 -1
  1893. package/dist/static/assets/index-CdV7RB70.css +0 -1
  1894. package/dist/static/assets/index-DYVFraRG.js +0 -990
  1895. package/dist/static/locales/en/chatbot_settings.json +0 -24
  1896. package/dist/static/locales/en/contact.json +0 -18
  1897. package/dist/static/locales/en/nlp_settings.json +0 -16
  1898. package/dist/static/locales/fr/chatbot_settings.json +0 -24
  1899. package/dist/static/locales/fr/contact.json +0 -18
  1900. package/dist/static/locales/fr/nlp_settings.json +0 -16
  1901. package/dist/templates/invitation.mjml +0 -42
  1902. package/dist/user/dto/invitation.dto.d.ts +0 -24
  1903. package/dist/user/dto/invitation.dto.js +0 -71
  1904. package/dist/user/dto/invitation.dto.js.map +0 -1
  1905. package/dist/user/entities/invitation.entity.d.ts +0 -10
  1906. package/dist/user/entities/invitation.entity.js +0 -66
  1907. package/dist/user/entities/invitation.entity.js.map +0 -1
  1908. package/dist/user/repositories/invitation.repository.d.ts +0 -7
  1909. package/dist/user/repositories/invitation.repository.js +0 -36
  1910. package/dist/user/repositories/invitation.repository.js.map +0 -1
  1911. package/dist/user/services/invitation.service.d.ts +0 -23
  1912. package/dist/user/services/invitation.service.js +0 -89
  1913. package/dist/user/services/invitation.service.js.map +0 -1
  1914. package/dist/utils/constants/nlp.d.ts +0 -1
  1915. package/dist/utils/constants/nlp.js +0 -5
  1916. package/dist/utils/constants/nlp.js.map +0 -1
  1917. package/dist/utils/helpers/fs.d.ts +0 -2
  1918. package/dist/utils/helpers/fs.js +0 -42
  1919. package/dist/utils/helpers/fs.js.map +0 -1
  1920. package/dist/utils/helpers/zod-validation.d.ts +0 -2
  1921. package/dist/utils/helpers/zod-validation.js +0 -6
  1922. package/dist/utils/helpers/zod-validation.js.map +0 -1
  1923. package/dist/utils/pipes/sanitize-query.pipe.d.ts +0 -7
  1924. package/dist/utils/pipes/sanitize-query.pipe.js +0 -46
  1925. package/dist/utils/pipes/sanitize-query.pipe.js.map +0 -1
  1926. package/dist/utils/test/dummy/dummy.plugin.d.ts +0 -17
  1927. package/dist/utils/test/dummy/dummy.plugin.js +0 -46
  1928. package/dist/utils/test/dummy/dummy.plugin.js.map +0 -1
  1929. package/dist/utils/test/dummy/settings.d.ts +0 -2
  1930. package/dist/utils/test/dummy/settings.js +0 -4
  1931. package/dist/utils/test/dummy/settings.js.map +0 -1
  1932. package/dist/utils/test/errors/messages.d.ts +0 -1
  1933. package/dist/utils/test/errors/messages.js +0 -6
  1934. package/dist/utils/test/errors/messages.js.map +0 -1
  1935. package/dist/utils/test/fixtures/block.d.ts +0 -10
  1936. package/dist/utils/test/fixtures/block.js +0 -212
  1937. package/dist/utils/test/fixtures/block.js.map +0 -1
  1938. package/dist/utils/test/fixtures/botstats.d.ts +0 -4
  1939. package/dist/utils/test/fixtures/botstats.js +0 -55
  1940. package/dist/utils/test/fixtures/botstats.js.map +0 -1
  1941. package/dist/utils/test/fixtures/category.d.ts +0 -9
  1942. package/dist/utils/test/fixtures/category.js +0 -41
  1943. package/dist/utils/test/fixtures/category.js.map +0 -1
  1944. package/dist/utils/test/fixtures/contextvar.d.ts +0 -9
  1945. package/dist/utils/test/fixtures/contextvar.js +0 -45
  1946. package/dist/utils/test/fixtures/contextvar.js.map +0 -1
  1947. package/dist/utils/test/fixtures/conversation.d.ts +0 -8
  1948. package/dist/utils/test/fixtures/conversation.js +0 -210
  1949. package/dist/utils/test/fixtures/conversation.js.map +0 -1
  1950. package/dist/utils/test/fixtures/invitation.d.ts +0 -10
  1951. package/dist/utils/test/fixtures/invitation.js +0 -47
  1952. package/dist/utils/test/fixtures/invitation.js.map +0 -1
  1953. package/dist/utils/test/fixtures/nlpentity.d.ts +0 -6
  1954. package/dist/utils/test/fixtures/nlpentity.js +0 -49
  1955. package/dist/utils/test/fixtures/nlpentity.js.map +0 -1
  1956. package/dist/utils/test/fixtures/nlpsample.d.ts +0 -9
  1957. package/dist/utils/test/fixtures/nlpsample.js +0 -66
  1958. package/dist/utils/test/fixtures/nlpsample.js.map +0 -1
  1959. package/dist/utils/test/fixtures/nlpsampleentity.d.ts +0 -5
  1960. package/dist/utils/test/fixtures/nlpsampleentity.js +0 -74
  1961. package/dist/utils/test/fixtures/nlpsampleentity.js.map +0 -1
  1962. package/dist/utils/test/fixtures/nlpvalue.d.ts +0 -5
  1963. package/dist/utils/test/fixtures/nlpvalue.js +0 -92
  1964. package/dist/utils/test/fixtures/nlpvalue.js.map +0 -1
  1965. package/dist/utils/test/mocks/block.d.ts +0 -27
  1966. package/dist/utils/test/mocks/block.js +0 -355
  1967. package/dist/utils/test/mocks/block.js.map +0 -1
  1968. package/dist/utils/test/mocks/conversation.d.ts +0 -8
  1969. package/dist/utils/test/mocks/conversation.js +0 -54
  1970. package/dist/utils/test/mocks/conversation.js.map +0 -1
  1971. package/dist/utils/test/mocks/nlp.d.ts +0 -4
  1972. package/dist/utils/test/mocks/nlp.js +0 -49
  1973. package/dist/utils/test/mocks/nlp.js.map +0 -1
  1974. package/dist/utils/types/misc.d.ts +0 -1
  1975. package/dist/utils/types/misc.js +0 -3
  1976. package/dist/utils/types/misc.js.map +0 -1
  1977. package/src/analytics/controllers/bot-stats.controller.ts +0 -133
  1978. package/src/analytics/dto/bot-stats.dto.ts +0 -116
  1979. package/src/analytics/entities/bot-stats.entity.ts +0 -114
  1980. package/src/analytics/repositories/bot-stats.repository.ts +0 -96
  1981. package/src/analytics/services/bot-stats.service.ts +0 -203
  1982. package/src/analytics/utilities/index.ts +0 -8
  1983. package/src/channel/channel.middleware.ts +0 -33
  1984. package/src/channel/lib/EventWrapper.ts +0 -410
  1985. package/src/chat/constants/block.ts +0 -18
  1986. package/src/chat/constants/conversation.ts +0 -30
  1987. package/src/chat/controllers/block.controller.ts +0 -334
  1988. package/src/chat/controllers/category.controller.ts +0 -162
  1989. package/src/chat/controllers/context-var.controller.ts +0 -157
  1990. package/src/chat/dto/block.dto.ts +0 -320
  1991. package/src/chat/dto/category.dto.ts +0 -88
  1992. package/src/chat/dto/context-var.dto.ts +0 -64
  1993. package/src/chat/dto/conversation.dto.ts +0 -115
  1994. package/src/chat/entities/block.entity.ts +0 -367
  1995. package/src/chat/entities/category.entity.ts +0 -54
  1996. package/src/chat/entities/context-var.entity.ts +0 -71
  1997. package/src/chat/entities/conversation.entity.ts +0 -68
  1998. package/src/chat/repositories/block.repository.ts +0 -164
  1999. package/src/chat/repositories/category.repository.ts +0 -36
  2000. package/src/chat/repositories/context-var.repository.ts +0 -36
  2001. package/src/chat/repositories/conversation.repository.ts +0 -47
  2002. package/src/chat/seeds/category.seed-model.ts +0 -13
  2003. package/src/chat/seeds/category.seed.ts +0 -24
  2004. package/src/chat/seeds/context-var.seed-model.ts +0 -18
  2005. package/src/chat/seeds/context-var.seed.ts +0 -27
  2006. package/src/chat/services/block.service.ts +0 -815
  2007. package/src/chat/services/bot.service.ts +0 -713
  2008. package/src/chat/services/category.service.ts +0 -24
  2009. package/src/chat/services/context-var.service.ts +0 -57
  2010. package/src/chat/services/conversation.service.ts +0 -212
  2011. package/src/chat/types/capture-var.ts +0 -17
  2012. package/src/chat/types/context.ts +0 -33
  2013. package/src/chat/types/pattern.ts +0 -77
  2014. package/src/chat/types/position.ts +0 -14
  2015. package/src/chat/types/subscriberContext.ts +0 -13
  2016. package/src/extensions/channels/console/i18n/en/label.json +0 -21
  2017. package/src/extensions/channels/console/i18n/en/title.json +0 -3
  2018. package/src/extensions/channels/console/i18n/fr/label.json +0 -21
  2019. package/src/extensions/channels/console/i18n/fr/title.json +0 -3
  2020. package/src/extensions/channels/console/settings.ts +0 -78
  2021. package/src/extensions/channels/web/i18n/en/label.json +0 -21
  2022. package/src/extensions/channels/web/i18n/en/title.json +0 -3
  2023. package/src/extensions/channels/web/i18n/fr/label.json +0 -21
  2024. package/src/extensions/channels/web/i18n/fr/title.json +0 -3
  2025. package/src/extensions/channels/web/settings.ts +0 -92
  2026. package/src/extensions/channels/web/wrapper.ts +0 -322
  2027. package/src/extensions/helpers/llm-nlu/globals.d.ts +0 -20
  2028. package/src/extensions/helpers/llm-nlu/i18n/en/help.json +0 -5
  2029. package/src/extensions/helpers/llm-nlu/i18n/en/label.json +0 -5
  2030. package/src/extensions/helpers/llm-nlu/i18n/en/title.json +0 -3
  2031. package/src/extensions/helpers/llm-nlu/i18n/fr/help.json +0 -5
  2032. package/src/extensions/helpers/llm-nlu/i18n/fr/label.json +0 -5
  2033. package/src/extensions/helpers/llm-nlu/i18n/fr/title.json +0 -3
  2034. package/src/extensions/helpers/llm-nlu/index.helper.ts +0 -162
  2035. package/src/extensions/helpers/llm-nlu/package.json +0 -8
  2036. package/src/extensions/helpers/llm-nlu/settings.ts +0 -45
  2037. package/src/extensions/helpers/local-storage/settings.ts +0 -15
  2038. package/src/extensions/plugins/.gitkeep +0 -0
  2039. package/src/helper/lib/base-flow-escape-helper.ts +0 -50
  2040. package/src/helper/lib/base-nlp-helper.ts +0 -389
  2041. package/src/i18n/controllers/i18n.controller.ts +0 -37
  2042. package/src/nlp/controllers/nlp-entity.controller.ts +0 -238
  2043. package/src/nlp/controllers/nlp-sample.controller.ts +0 -409
  2044. package/src/nlp/controllers/nlp-value.controller.ts +0 -207
  2045. package/src/nlp/dto/nlp-entity.dto.ts +0 -137
  2046. package/src/nlp/dto/nlp-sample-entity.dto.ts +0 -95
  2047. package/src/nlp/dto/nlp-sample.dto.ts +0 -148
  2048. package/src/nlp/dto/nlp-value.dto.ts +0 -158
  2049. package/src/nlp/entities/nlp-entity.entity.ts +0 -60
  2050. package/src/nlp/entities/nlp-sample-entity.entity.ts +0 -64
  2051. package/src/nlp/entities/nlp-sample.entity.ts +0 -52
  2052. package/src/nlp/entities/nlp-value.entity.ts +0 -93
  2053. package/src/nlp/index.ts +0 -57
  2054. package/src/nlp/nlp.module.ts +0 -59
  2055. package/src/nlp/repositories/nlp-entity.repository.ts +0 -36
  2056. package/src/nlp/repositories/nlp-sample-entity.repository.ts +0 -36
  2057. package/src/nlp/repositories/nlp-sample.repository.ts +0 -214
  2058. package/src/nlp/repositories/nlp-value.repository.ts +0 -139
  2059. package/src/nlp/seeds/nlp-entity.seed-model.ts +0 -16
  2060. package/src/nlp/seeds/nlp-entity.seed.ts +0 -27
  2061. package/src/nlp/seeds/nlp-value.seed-model.ts +0 -9
  2062. package/src/nlp/seeds/nlp-value.seed.ts +0 -47
  2063. package/src/nlp/services/nlp-entity.service.ts +0 -212
  2064. package/src/nlp/services/nlp-sample-entity.service.ts +0 -116
  2065. package/src/nlp/services/nlp-sample.service.ts +0 -382
  2066. package/src/nlp/services/nlp-value.service.ts +0 -264
  2067. package/src/nlp/services/nlp.service.ts +0 -311
  2068. package/src/nlp/types.ts +0 -45
  2069. package/src/plugins/base-block-plugin.ts +0 -73
  2070. package/src/plugins/base-event-plugin.ts +0 -20
  2071. package/src/plugins/base-plugin.service.ts +0 -29
  2072. package/src/plugins/index.ts +0 -19
  2073. package/src/plugins/map-types.ts +0 -23
  2074. package/src/plugins/plugins.module.ts +0 -41
  2075. package/src/plugins/plugins.service.ts +0 -101
  2076. package/src/plugins/types.ts +0 -41
  2077. package/src/templates/invitation.mjml +0 -42
  2078. package/src/user/dto/invitation.dto.ts +0 -65
  2079. package/src/user/entities/invitation.entity.ts +0 -61
  2080. package/src/user/repositories/invitation.repository.ts +0 -36
  2081. package/src/user/services/invitation.service.ts +0 -128
  2082. package/src/utils/constants/nlp.ts +0 -7
  2083. package/src/utils/helpers/fs.ts +0 -64
  2084. package/src/utils/helpers/zod-validation.ts +0 -12
  2085. package/src/utils/pipes/sanitize-query.pipe.ts +0 -57
  2086. package/src/utils/test/dummy/dummy.plugin.ts +0 -47
  2087. package/src/utils/test/dummy/settings.ts +0 -7
  2088. package/src/utils/test/errors/messages.ts +0 -8
  2089. package/src/utils/test/fixtures/block.ts +0 -243
  2090. package/src/utils/test/fixtures/botstats.ts +0 -66
  2091. package/src/utils/test/fixtures/category.ts +0 -68
  2092. package/src/utils/test/fixtures/contextvar.ts +0 -66
  2093. package/src/utils/test/fixtures/conversation.ts +0 -254
  2094. package/src/utils/test/fixtures/invitation.ts +0 -68
  2095. package/src/utils/test/fixtures/nlpentity.ts +0 -61
  2096. package/src/utils/test/fixtures/nlpsample.ts +0 -91
  2097. package/src/utils/test/fixtures/nlpsampleentity.ts +0 -99
  2098. package/src/utils/test/fixtures/nlpvalue.ts +0 -115
  2099. package/src/utils/test/mocks/block.ts +0 -395
  2100. package/src/utils/test/mocks/conversation.ts +0 -66
  2101. package/src/utils/test/mocks/nlp.ts +0 -55
  2102. package/src/utils/types/misc.ts +0 -7
  2103. /package/dist/analytics/utilities/{index.d.ts → a-month-ago.d.ts} +0 -0
@@ -1,9 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { PluginName } from '@/plugins/types';
3
2
  import { Message } from '../dto/message.dto';
4
- import { FileType } from './attachment';
5
3
  import { PayloadType } from './button';
6
- import { QuickReplyType } from './quick-reply';
7
4
  export declare enum StdEventType {
8
5
  message = "message",
9
6
  delivery = "delivery",
@@ -22,7 +19,7 @@ export declare enum IncomingMessageType {
22
19
  attachments = "attachments",
23
20
  unknown = ""
24
21
  }
25
- export declare const incomingMessageType: z.ZodNativeEnum<typeof IncomingMessageType>;
22
+ export declare const incomingMessageType: z.ZodEnum<typeof IncomingMessageType>;
26
23
  export type IncomingMessageTypeLiteral = z.infer<typeof incomingMessageType>;
27
24
  export declare enum OutgoingMessageFormat {
28
25
  text = "text",
@@ -33,1482 +30,217 @@ export declare enum OutgoingMessageFormat {
33
30
  carousel = "carousel",
34
31
  system = "system"
35
32
  }
36
- export declare const outgoingMessageFormatSchema: z.ZodNativeEnum<typeof OutgoingMessageFormat>;
33
+ export declare const outgoingMessageFormatSchema: z.ZodEnum<typeof OutgoingMessageFormat>;
37
34
  export type OutgoingMessageFormatLiteral = z.infer<typeof outgoingMessageFormatSchema>;
38
- export declare const payloadTypeSchema: z.ZodNativeEnum<typeof PayloadType>;
35
+ export declare const payloadTypeSchema: z.ZodEnum<typeof PayloadType>;
39
36
  export type PayloadTypeLiteral = z.infer<typeof payloadTypeSchema>;
40
37
  export declare const stdOutgoingTextMessageSchema: z.ZodObject<{
41
38
  text: z.ZodString;
42
- }, "strip", z.ZodTypeAny, {
43
- text: string;
44
- }, {
45
- text: string;
46
- }>;
39
+ }, z.core.$strip>;
47
40
  export type StdOutgoingTextMessage = z.infer<typeof stdOutgoingTextMessageSchema>;
48
41
  export declare const stdOutgoingQuickRepliesMessageSchema: z.ZodObject<{
49
42
  text: z.ZodString;
50
43
  quickReplies: z.ZodArray<z.ZodObject<{
51
- content_type: z.ZodNativeEnum<typeof QuickReplyType>;
52
44
  title: z.ZodString;
53
45
  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
- }>;
46
+ }, z.core.$strip>>;
47
+ }, z.core.$strip>;
78
48
  export type StdOutgoingQuickRepliesMessage = z.infer<typeof stdOutgoingQuickRepliesMessageSchema>;
79
49
  export declare const stdOutgoingButtonsMessageSchema: z.ZodObject<{
80
50
  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
- }>;
51
+ buttons: z.ZodArray<z.ZodType<import("./button").Button, unknown, z.core.$ZodTypeInternals<import("./button").Button, unknown>>>;
52
+ }, z.core.$strip>;
139
53
  export type StdOutgoingButtonsMessage = z.infer<typeof stdOutgoingButtonsMessageSchema>;
140
54
  export declare const contentElementSchema: z.ZodObject<{
141
55
  id: z.ZodString;
142
56
  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">>;
57
+ }, z.core.$catchall<z.ZodAny>>;
150
58
  export type ContentElement = z.infer<typeof contentElementSchema>;
151
59
  export declare const contentPaginationSchema: z.ZodObject<{
152
60
  total: z.ZodNumber;
153
61
  skip: z.ZodNumber;
154
62
  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
- }>;
63
+ }, z.core.$strip>;
164
64
  export type ContentPagination = z.infer<typeof contentPaginationSchema>;
165
65
  export declare const stdOutgoingListMessageSchema: z.ZodObject<{
166
66
  options: z.ZodObject<{
167
- display: z.ZodEnum<["list", "carousel"]>;
67
+ display: z.ZodEnum<{
68
+ list: "list";
69
+ carousel: "carousel";
70
+ }>;
71
+ contentType: z.ZodOptional<z.ZodString>;
168
72
  fields: z.ZodObject<{
169
73
  title: z.ZodString;
170
- subtitle: z.ZodNullable<z.ZodString>;
171
- image_url: z.ZodNullable<z.ZodString>;
74
+ subtitle: z.ZodOptional<z.ZodString>;
75
+ image_url: z.ZodOptional<z.ZodString>;
172
76
  url: z.ZodOptional<z.ZodString>;
173
77
  action_title: z.ZodOptional<z.ZodString>;
174
78
  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">;
79
+ }, z.core.$strip>;
80
+ buttons: z.ZodArray<z.ZodType<import("./button").Button, unknown, z.core.$ZodTypeInternals<import("./button").Button, unknown>>>;
221
81
  limit: z.ZodNumber;
222
82
  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
- }>;
83
+ top_element_style: z.ZodOptional<z.ZodEnum<{
84
+ large: "large";
85
+ compact: "compact";
86
+ }>>;
87
+ }, z.core.$strip>;
276
88
  elements: z.ZodArray<z.ZodObject<{
277
89
  id: z.ZodString;
278
90
  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">;
91
+ }, z.core.$catchall<z.ZodAny>>>;
286
92
  pagination: z.ZodObject<{
287
93
  total: z.ZodNumber;
288
94
  skip: z.ZodNumber;
289
95
  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
- }>;
96
+ }, z.core.$strip>;
97
+ }, z.core.$strip>;
372
98
  export type StdOutgoingListMessage = z.infer<typeof stdOutgoingListMessageSchema>;
373
99
  export declare const stdOutgoingAttachmentMessageSchema: z.ZodObject<{
374
100
  attachment: z.ZodObject<{
375
- type: z.ZodNativeEnum<typeof FileType>;
376
- payload: z.ZodUnion<[z.ZodObject<{
101
+ type: z.ZodEnum<typeof import("./attachment").FileType>;
102
+ payload: z.ZodUnion<readonly [z.ZodObject<{
377
103
  id: z.ZodNullable<z.ZodString>;
378
- }, "strip", z.ZodTypeAny, {
379
- id: string | null;
380
- }, {
381
- id: string | null;
382
- }>, z.ZodObject<{
104
+ }, z.core.$strip>, z.ZodObject<{
383
105
  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
- }>;
106
+ }, z.core.$strip>]>;
107
+ }, z.core.$strip>;
404
108
  quickReplies: z.ZodOptional<z.ZodArray<z.ZodObject<{
405
- content_type: z.ZodNativeEnum<typeof QuickReplyType>;
406
109
  title: z.ZodString;
407
110
  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
- }>;
111
+ }, z.core.$strip>>>;
112
+ }, z.core.$strip>;
446
113
  export type StdOutgoingAttachmentMessage = z.infer<typeof stdOutgoingAttachmentMessageSchema>;
447
114
  export declare const stdOutgoingSystemMessageSchema: z.ZodObject<{
448
115
  outcome: z.ZodOptional<z.ZodString>;
449
116
  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
- }>;
117
+ }, z.core.$strip>;
457
118
  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<{
119
+ export declare const StdOutgoingMessageSchema: z.ZodUnion<readonly [z.ZodObject<{
471
120
  text: z.ZodString;
472
- }, "strip", z.ZodTypeAny, {
473
- text: string;
474
- }, {
475
- text: string;
476
- }>, z.ZodObject<{
121
+ }, z.core.$strip>, z.ZodObject<{
477
122
  text: z.ZodString;
478
123
  quickReplies: z.ZodArray<z.ZodObject<{
479
- content_type: z.ZodNativeEnum<typeof QuickReplyType>;
480
124
  title: z.ZodString;
481
125
  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<{
126
+ }, z.core.$strip>>;
127
+ }, z.core.$strip>, z.ZodObject<{
506
128
  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<{
129
+ buttons: z.ZodArray<z.ZodType<import("./button").Button, unknown, z.core.$ZodTypeInternals<import("./button").Button, unknown>>>;
130
+ }, z.core.$strip>, z.ZodObject<{
565
131
  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;
132
+ display: z.ZodEnum<{
133
+ list: "list";
134
+ carousel: "carousel";
588
135
  }>;
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"]>;
136
+ contentType: z.ZodOptional<z.ZodString>;
950
137
  fields: z.ZodObject<{
951
138
  title: z.ZodString;
952
- subtitle: z.ZodNullable<z.ZodString>;
953
- image_url: z.ZodNullable<z.ZodString>;
139
+ subtitle: z.ZodOptional<z.ZodString>;
140
+ image_url: z.ZodOptional<z.ZodString>;
954
141
  url: z.ZodOptional<z.ZodString>;
955
142
  action_title: z.ZodOptional<z.ZodString>;
956
143
  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">;
144
+ }, z.core.$strip>;
145
+ buttons: z.ZodArray<z.ZodType<import("./button").Button, unknown, z.core.$ZodTypeInternals<import("./button").Button, unknown>>>;
1003
146
  limit: z.ZodNumber;
1004
147
  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
- }>;
148
+ top_element_style: z.ZodOptional<z.ZodEnum<{
149
+ large: "large";
150
+ compact: "compact";
151
+ }>>;
152
+ }, z.core.$strip>;
1058
153
  elements: z.ZodArray<z.ZodObject<{
1059
154
  id: z.ZodString;
1060
155
  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">;
156
+ }, z.core.$catchall<z.ZodAny>>>;
1068
157
  pagination: z.ZodObject<{
1069
158
  total: z.ZodNumber;
1070
159
  skip: z.ZodNumber;
1071
160
  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<{
161
+ }, z.core.$strip>;
162
+ }, z.core.$strip>, z.ZodObject<{
1154
163
  attachment: z.ZodObject<{
1155
- type: z.ZodNativeEnum<typeof FileType>;
1156
- payload: z.ZodUnion<[z.ZodObject<{
164
+ type: z.ZodEnum<typeof import("./attachment").FileType>;
165
+ payload: z.ZodUnion<readonly [z.ZodObject<{
1157
166
  id: z.ZodNullable<z.ZodString>;
1158
- }, "strip", z.ZodTypeAny, {
1159
- id: string | null;
1160
- }, {
1161
- id: string | null;
1162
- }>, z.ZodObject<{
167
+ }, z.core.$strip>, z.ZodObject<{
1163
168
  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
- }>;
169
+ }, z.core.$strip>]>;
170
+ }, z.core.$strip>;
1184
171
  quickReplies: z.ZodOptional<z.ZodArray<z.ZodObject<{
1185
- content_type: z.ZodNativeEnum<typeof QuickReplyType>;
1186
172
  title: z.ZodString;
1187
173
  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
- }>]>;
174
+ }, z.core.$strip>>>;
175
+ }, z.core.$strip>]>;
1226
176
  export type StdOutgoingMessage = z.infer<typeof StdOutgoingMessageSchema>;
1227
177
  export declare const stdIncomingTextMessageSchema: z.ZodObject<{
1228
178
  text: z.ZodString;
1229
- }, "strip", z.ZodTypeAny, {
1230
- text: string;
1231
- }, {
1232
- text: string;
1233
- }>;
179
+ }, z.core.$strip>;
1234
180
  export type StdIncomingTextMessage = z.infer<typeof stdIncomingTextMessageSchema>;
1235
181
  export declare const stdIncomingPostBackMessageSchema: z.ZodObject<{
1236
182
  text: z.ZodString;
1237
- } & {
1238
183
  postback: z.ZodString;
1239
- }, "strip", z.ZodTypeAny, {
1240
- text: string;
1241
- postback: string;
1242
- }, {
1243
- text: string;
1244
- postback: string;
1245
- }>;
184
+ }, z.core.$strip>;
1246
185
  export type StdIncomingPostBackMessage = z.infer<typeof stdIncomingPostBackMessageSchema>;
1247
186
  export declare const stdIncomingLocationMessageSchema: z.ZodObject<{
1248
187
  type: z.ZodLiteral<PayloadType.location>;
1249
188
  coordinates: z.ZodObject<{
1250
189
  lat: z.ZodNumber;
1251
190
  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
- }>;
191
+ }, z.core.$strip>;
192
+ }, z.core.$strip>;
1272
193
  export type StdIncomingLocationMessage = z.infer<typeof stdIncomingLocationMessageSchema>;
1273
194
  export declare const stdIncomingAttachmentMessageSchema: z.ZodObject<{
1274
195
  type: z.ZodLiteral<PayloadType.attachments>;
1275
196
  serialized_text: z.ZodString;
1276
- attachment: z.ZodUnion<[z.ZodObject<{
1277
- type: z.ZodNativeEnum<typeof FileType>;
1278
- payload: z.ZodUnion<[z.ZodObject<{
197
+ attachment: z.ZodUnion<readonly [z.ZodObject<{
198
+ type: z.ZodEnum<typeof import("./attachment").FileType>;
199
+ payload: z.ZodUnion<readonly [z.ZodObject<{
1279
200
  id: z.ZodNullable<z.ZodString>;
1280
- }, "strip", z.ZodTypeAny, {
1281
- id: string | null;
1282
- }, {
1283
- id: string | null;
1284
- }>, z.ZodObject<{
201
+ }, z.core.$strip>, z.ZodObject<{
1285
202
  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<{
203
+ }, z.core.$strip>]>;
204
+ }, z.core.$strip>, z.ZodArray<z.ZodObject<{
205
+ type: z.ZodEnum<typeof import("./attachment").FileType>;
206
+ payload: z.ZodUnion<readonly [z.ZodObject<{
1308
207
  id: z.ZodNullable<z.ZodString>;
1309
- }, "strip", z.ZodTypeAny, {
1310
- id: string | null;
1311
- }, {
1312
- id: string | null;
1313
- }>, z.ZodObject<{
208
+ }, z.core.$strip>, z.ZodObject<{
1314
209
  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
- }>;
210
+ }, z.core.$strip>]>;
211
+ }, z.core.$strip>>]>;
212
+ }, z.core.$strip>;
1372
213
  export type StdIncomingAttachmentMessage = z.infer<typeof stdIncomingAttachmentMessageSchema>;
1373
- export declare const stdIncomingMessageSchema: z.ZodUnion<[z.ZodObject<{
214
+ export declare const stdIncomingMessageSchema: z.ZodUnion<readonly [z.ZodObject<{
1374
215
  text: z.ZodString;
1375
- }, "strip", z.ZodTypeAny, {
1376
- text: string;
1377
- }, {
1378
- text: string;
1379
- }>, z.ZodObject<{
216
+ }, z.core.$strip>, z.ZodObject<{
1380
217
  text: z.ZodString;
1381
- } & {
1382
218
  postback: z.ZodString;
1383
- }, "strip", z.ZodTypeAny, {
1384
- text: string;
1385
- postback: string;
1386
- }, {
1387
- text: string;
1388
- postback: string;
1389
- }>, z.ZodObject<{
219
+ }, z.core.$strip>, z.ZodObject<{
1390
220
  type: z.ZodLiteral<PayloadType.location>;
1391
221
  coordinates: z.ZodObject<{
1392
222
  lat: z.ZodNumber;
1393
223
  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<{
224
+ }, z.core.$strip>;
225
+ }, z.core.$strip>, z.ZodObject<{
1414
226
  type: z.ZodLiteral<PayloadType.attachments>;
1415
227
  serialized_text: z.ZodString;
1416
- attachment: z.ZodUnion<[z.ZodObject<{
1417
- type: z.ZodNativeEnum<typeof FileType>;
1418
- payload: z.ZodUnion<[z.ZodObject<{
228
+ attachment: z.ZodUnion<readonly [z.ZodObject<{
229
+ type: z.ZodEnum<typeof import("./attachment").FileType>;
230
+ payload: z.ZodUnion<readonly [z.ZodObject<{
1419
231
  id: z.ZodNullable<z.ZodString>;
1420
- }, "strip", z.ZodTypeAny, {
1421
- id: string | null;
1422
- }, {
1423
- id: string | null;
1424
- }>, z.ZodObject<{
232
+ }, z.core.$strip>, z.ZodObject<{
1425
233
  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<{
234
+ }, z.core.$strip>]>;
235
+ }, z.core.$strip>, z.ZodArray<z.ZodObject<{
236
+ type: z.ZodEnum<typeof import("./attachment").FileType>;
237
+ payload: z.ZodUnion<readonly [z.ZodObject<{
1448
238
  id: z.ZodNullable<z.ZodString>;
1449
- }, "strip", z.ZodTypeAny, {
1450
- id: string | null;
1451
- }, {
1452
- id: string | null;
1453
- }>, z.ZodObject<{
239
+ }, z.core.$strip>, z.ZodObject<{
1454
240
  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
- }>]>;
241
+ }, z.core.$strip>]>;
242
+ }, z.core.$strip>>]>;
243
+ }, z.core.$strip>]>;
1512
244
  export type StdIncomingMessage = z.infer<typeof stdIncomingMessageSchema>;
1513
245
  export interface IncomingMessage extends Omit<Message, 'recipient' | 'sentBy'> {
1514
246
  message: StdIncomingMessage;
@@ -1525,1910 +257,252 @@ export declare const stdOutgoingTextEnvelopeSchema: z.ZodObject<{
1525
257
  format: z.ZodLiteral<OutgoingMessageFormat.text>;
1526
258
  message: z.ZodObject<{
1527
259
  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
- }>;
260
+ }, z.core.$strip>;
261
+ }, z.core.$strip>;
1544
262
  export type StdOutgoingTextEnvelope = z.infer<typeof stdOutgoingTextEnvelopeSchema>;
1545
263
  export declare const stdOutgoingQuickRepliesEnvelopeSchema: z.ZodObject<{
1546
264
  format: z.ZodLiteral<OutgoingMessageFormat.quickReplies>;
1547
265
  message: z.ZodObject<{
1548
266
  text: z.ZodString;
1549
267
  quickReplies: z.ZodArray<z.ZodObject<{
1550
- content_type: z.ZodNativeEnum<typeof QuickReplyType>;
1551
268
  title: z.ZodString;
1552
269
  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
- }>;
270
+ }, z.core.$strip>>;
271
+ }, z.core.$strip>;
272
+ }, z.core.$strip>;
1598
273
  export type StdOutgoingQuickRepliesEnvelope = z.infer<typeof stdOutgoingQuickRepliesEnvelopeSchema>;
1599
274
  export declare const stdOutgoingButtonsEnvelopeSchema: z.ZodObject<{
1600
275
  format: z.ZodLiteral<OutgoingMessageFormat.buttons>;
1601
276
  message: z.ZodObject<{
1602
277
  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
- }>;
278
+ buttons: z.ZodArray<z.ZodType<import("./button").Button, unknown, z.core.$ZodTypeInternals<import("./button").Button, unknown>>>;
279
+ }, z.core.$strip>;
280
+ }, z.core.$strip>;
1694
281
  export type StdOutgoingButtonsEnvelope = z.infer<typeof stdOutgoingButtonsEnvelopeSchema>;
1695
282
  export declare const stdOutgoingListEnvelopeSchema: z.ZodObject<{
1696
- format: z.ZodEnum<["list", "carousel"]>;
283
+ format: z.ZodEnum<{
284
+ list: OutgoingMessageFormat.list;
285
+ carousel: OutgoingMessageFormat.carousel;
286
+ }>;
1697
287
  message: z.ZodObject<{
1698
288
  options: z.ZodObject<{
1699
- display: z.ZodEnum<["list", "carousel"]>;
289
+ display: z.ZodEnum<{
290
+ list: "list";
291
+ carousel: "carousel";
292
+ }>;
293
+ contentType: z.ZodOptional<z.ZodString>;
1700
294
  fields: z.ZodObject<{
1701
295
  title: z.ZodString;
1702
- subtitle: z.ZodNullable<z.ZodString>;
1703
- image_url: z.ZodNullable<z.ZodString>;
296
+ subtitle: z.ZodOptional<z.ZodString>;
297
+ image_url: z.ZodOptional<z.ZodString>;
1704
298
  url: z.ZodOptional<z.ZodString>;
1705
299
  action_title: z.ZodOptional<z.ZodString>;
1706
300
  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">;
301
+ }, z.core.$strip>;
302
+ buttons: z.ZodArray<z.ZodType<import("./button").Button, unknown, z.core.$ZodTypeInternals<import("./button").Button, unknown>>>;
1753
303
  limit: z.ZodNumber;
1754
304
  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
- }>;
305
+ top_element_style: z.ZodOptional<z.ZodEnum<{
306
+ large: "large";
307
+ compact: "compact";
308
+ }>>;
309
+ }, z.core.$strip>;
1808
310
  elements: z.ZodArray<z.ZodObject<{
1809
311
  id: z.ZodString;
1810
312
  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">;
313
+ }, z.core.$catchall<z.ZodAny>>>;
1818
314
  pagination: z.ZodObject<{
1819
315
  total: z.ZodNumber;
1820
316
  skip: z.ZodNumber;
1821
317
  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
- }>;
318
+ }, z.core.$strip>;
319
+ }, z.core.$strip>;
320
+ }, z.core.$strip>;
1983
321
  export type StdOutgoingListEnvelope = z.infer<typeof stdOutgoingListEnvelopeSchema>;
1984
322
  export declare const stdOutgoingAttachmentEnvelopeSchema: z.ZodObject<{
1985
323
  format: z.ZodLiteral<OutgoingMessageFormat.attachment>;
1986
324
  message: z.ZodObject<{
1987
325
  attachment: z.ZodObject<{
1988
- type: z.ZodNativeEnum<typeof FileType>;
1989
- payload: z.ZodUnion<[z.ZodObject<{
326
+ type: z.ZodEnum<typeof import("./attachment").FileType>;
327
+ payload: z.ZodUnion<readonly [z.ZodObject<{
1990
328
  id: z.ZodNullable<z.ZodString>;
1991
- }, "strip", z.ZodTypeAny, {
1992
- id: string | null;
1993
- }, {
1994
- id: string | null;
1995
- }>, z.ZodObject<{
329
+ }, z.core.$strip>, z.ZodObject<{
1996
330
  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
- }>;
331
+ }, z.core.$strip>]>;
332
+ }, z.core.$strip>;
2017
333
  quickReplies: z.ZodOptional<z.ZodArray<z.ZodObject<{
2018
- content_type: z.ZodNativeEnum<typeof QuickReplyType>;
2019
334
  title: z.ZodString;
2020
335
  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
- }>;
336
+ }, z.core.$strip>>>;
337
+ }, z.core.$strip>;
338
+ }, z.core.$strip>;
2094
339
  export type StdOutgoingAttachmentEnvelope = z.infer<typeof stdOutgoingAttachmentEnvelopeSchema>;
2095
340
  export declare const stdOutgoingSystemEnvelopeSchema: z.ZodObject<{
2096
341
  format: z.ZodLiteral<OutgoingMessageFormat.system>;
2097
342
  message: z.ZodObject<{
2098
343
  outcome: z.ZodOptional<z.ZodString>;
2099
344
  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
- }>;
345
+ }, z.core.$strip>;
346
+ }, z.core.$strip>;
2120
347
  export type StdOutgoingSystemEnvelope = z.infer<typeof stdOutgoingSystemEnvelopeSchema>;
2121
- export declare const stdOutgoingMessageEnvelopeSchema: z.ZodUnion<[z.ZodObject<{
348
+ export declare const stdOutgoingMessageEnvelopeSchema: z.ZodUnion<readonly [z.ZodObject<{
2122
349
  format: z.ZodLiteral<OutgoingMessageFormat.text>;
2123
350
  message: z.ZodObject<{
2124
351
  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<{
352
+ }, z.core.$strip>;
353
+ }, z.core.$strip>, z.ZodObject<{
2141
354
  format: z.ZodLiteral<OutgoingMessageFormat.quickReplies>;
2142
355
  message: z.ZodObject<{
2143
356
  text: z.ZodString;
2144
357
  quickReplies: z.ZodArray<z.ZodObject<{
2145
- content_type: z.ZodNativeEnum<typeof QuickReplyType>;
2146
358
  title: z.ZodString;
2147
359
  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<{
360
+ }, z.core.$strip>>;
361
+ }, z.core.$strip>;
362
+ }, z.core.$strip>, z.ZodObject<{
2193
363
  format: z.ZodLiteral<OutgoingMessageFormat.buttons>;
2194
364
  message: z.ZodObject<{
2195
365
  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
- })[];
366
+ buttons: z.ZodArray<z.ZodType<import("./button").Button, unknown, z.core.$ZodTypeInternals<import("./button").Button, unknown>>>;
367
+ }, z.core.$strip>;
368
+ }, z.core.$strip>, z.ZodObject<{
369
+ format: z.ZodEnum<{
370
+ list: OutgoingMessageFormat.list;
371
+ carousel: OutgoingMessageFormat.carousel;
2253
372
  }>;
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
373
  message: z.ZodObject<{
2289
374
  options: z.ZodObject<{
2290
- display: z.ZodEnum<["list", "carousel"]>;
375
+ display: z.ZodEnum<{
376
+ list: "list";
377
+ carousel: "carousel";
378
+ }>;
379
+ contentType: z.ZodOptional<z.ZodString>;
2291
380
  fields: z.ZodObject<{
2292
381
  title: z.ZodString;
2293
- subtitle: z.ZodNullable<z.ZodString>;
2294
- image_url: z.ZodNullable<z.ZodString>;
382
+ subtitle: z.ZodOptional<z.ZodString>;
383
+ image_url: z.ZodOptional<z.ZodString>;
2295
384
  url: z.ZodOptional<z.ZodString>;
2296
385
  action_title: z.ZodOptional<z.ZodString>;
2297
386
  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">;
387
+ }, z.core.$strip>;
388
+ buttons: z.ZodArray<z.ZodType<import("./button").Button, unknown, z.core.$ZodTypeInternals<import("./button").Button, unknown>>>;
2344
389
  limit: z.ZodNumber;
2345
390
  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
- }>;
391
+ top_element_style: z.ZodOptional<z.ZodEnum<{
392
+ large: "large";
393
+ compact: "compact";
394
+ }>>;
395
+ }, z.core.$strip>;
2399
396
  elements: z.ZodArray<z.ZodObject<{
2400
397
  id: z.ZodString;
2401
398
  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">;
399
+ }, z.core.$catchall<z.ZodAny>>>;
2409
400
  pagination: z.ZodObject<{
2410
401
  total: z.ZodNumber;
2411
402
  skip: z.ZodNumber;
2412
403
  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<{
404
+ }, z.core.$strip>;
405
+ }, z.core.$strip>;
406
+ }, z.core.$strip>, z.ZodObject<{
2574
407
  format: z.ZodLiteral<OutgoingMessageFormat.attachment>;
2575
408
  message: z.ZodObject<{
2576
409
  attachment: z.ZodObject<{
2577
- type: z.ZodNativeEnum<typeof FileType>;
2578
- payload: z.ZodUnion<[z.ZodObject<{
410
+ type: z.ZodEnum<typeof import("./attachment").FileType>;
411
+ payload: z.ZodUnion<readonly [z.ZodObject<{
2579
412
  id: z.ZodNullable<z.ZodString>;
2580
- }, "strip", z.ZodTypeAny, {
2581
- id: string | null;
2582
- }, {
2583
- id: string | null;
2584
- }>, z.ZodObject<{
413
+ }, z.core.$strip>, z.ZodObject<{
2585
414
  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
- }>;
415
+ }, z.core.$strip>]>;
416
+ }, z.core.$strip>;
2606
417
  quickReplies: z.ZodOptional<z.ZodArray<z.ZodObject<{
2607
- content_type: z.ZodNativeEnum<typeof QuickReplyType>;
2608
418
  title: z.ZodString;
2609
419
  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
- }>]>;
420
+ }, z.core.$strip>>>;
421
+ }, z.core.$strip>;
422
+ }, z.core.$strip>]>;
2683
423
  export type StdOutgoingMessageEnvelope = z.infer<typeof stdOutgoingMessageEnvelopeSchema>;
2684
- export declare const stdOutgoingEnvelopeSchema: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
424
+ export declare const stdOutgoingEnvelopeSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
2685
425
  format: z.ZodLiteral<OutgoingMessageFormat.text>;
2686
426
  message: z.ZodObject<{
2687
427
  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<{
428
+ }, z.core.$strip>;
429
+ }, z.core.$strip>, z.ZodObject<{
2704
430
  format: z.ZodLiteral<OutgoingMessageFormat.quickReplies>;
2705
431
  message: z.ZodObject<{
2706
432
  text: z.ZodString;
2707
433
  quickReplies: z.ZodArray<z.ZodObject<{
2708
- content_type: z.ZodNativeEnum<typeof QuickReplyType>;
2709
434
  title: z.ZodString;
2710
435
  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<{
436
+ }, z.core.$strip>>;
437
+ }, z.core.$strip>;
438
+ }, z.core.$strip>, z.ZodObject<{
2756
439
  format: z.ZodLiteral<OutgoingMessageFormat.buttons>;
2757
440
  message: z.ZodObject<{
2758
441
  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
- })[];
442
+ buttons: z.ZodArray<z.ZodType<import("./button").Button, unknown, z.core.$ZodTypeInternals<import("./button").Button, unknown>>>;
443
+ }, z.core.$strip>;
444
+ }, z.core.$strip>, z.ZodObject<{
445
+ format: z.ZodEnum<{
446
+ list: OutgoingMessageFormat.list;
447
+ carousel: OutgoingMessageFormat.carousel;
2816
448
  }>;
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
449
  message: z.ZodObject<{
2852
450
  options: z.ZodObject<{
2853
- display: z.ZodEnum<["list", "carousel"]>;
451
+ display: z.ZodEnum<{
452
+ list: "list";
453
+ carousel: "carousel";
454
+ }>;
455
+ contentType: z.ZodOptional<z.ZodString>;
2854
456
  fields: z.ZodObject<{
2855
457
  title: z.ZodString;
2856
- subtitle: z.ZodNullable<z.ZodString>;
2857
- image_url: z.ZodNullable<z.ZodString>;
458
+ subtitle: z.ZodOptional<z.ZodString>;
459
+ image_url: z.ZodOptional<z.ZodString>;
2858
460
  url: z.ZodOptional<z.ZodString>;
2859
461
  action_title: z.ZodOptional<z.ZodString>;
2860
462
  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">;
463
+ }, z.core.$strip>;
464
+ buttons: z.ZodArray<z.ZodType<import("./button").Button, unknown, z.core.$ZodTypeInternals<import("./button").Button, unknown>>>;
2907
465
  limit: z.ZodNumber;
2908
466
  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
- }>;
467
+ top_element_style: z.ZodOptional<z.ZodEnum<{
468
+ large: "large";
469
+ compact: "compact";
470
+ }>>;
471
+ }, z.core.$strip>;
2962
472
  elements: z.ZodArray<z.ZodObject<{
2963
473
  id: z.ZodString;
2964
474
  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">;
475
+ }, z.core.$catchall<z.ZodAny>>>;
2972
476
  pagination: z.ZodObject<{
2973
477
  total: z.ZodNumber;
2974
478
  skip: z.ZodNumber;
2975
479
  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<{
480
+ }, z.core.$strip>;
481
+ }, z.core.$strip>;
482
+ }, z.core.$strip>, z.ZodObject<{
3137
483
  format: z.ZodLiteral<OutgoingMessageFormat.attachment>;
3138
484
  message: z.ZodObject<{
3139
485
  attachment: z.ZodObject<{
3140
- type: z.ZodNativeEnum<typeof FileType>;
3141
- payload: z.ZodUnion<[z.ZodObject<{
486
+ type: z.ZodEnum<typeof import("./attachment").FileType>;
487
+ payload: z.ZodUnion<readonly [z.ZodObject<{
3142
488
  id: z.ZodNullable<z.ZodString>;
3143
- }, "strip", z.ZodTypeAny, {
3144
- id: string | null;
3145
- }, {
3146
- id: string | null;
3147
- }>, z.ZodObject<{
489
+ }, z.core.$strip>, z.ZodObject<{
3148
490
  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
- }>;
491
+ }, z.core.$strip>]>;
492
+ }, z.core.$strip>;
3169
493
  quickReplies: z.ZodOptional<z.ZodArray<z.ZodObject<{
3170
- content_type: z.ZodNativeEnum<typeof QuickReplyType>;
3171
494
  title: z.ZodString;
3172
495
  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<{
496
+ }, z.core.$strip>>>;
497
+ }, z.core.$strip>;
498
+ }, z.core.$strip>]>, z.ZodObject<{
3246
499
  format: z.ZodLiteral<OutgoingMessageFormat.system>;
3247
500
  message: z.ZodObject<{
3248
501
  outcome: z.ZodOptional<z.ZodString>;
3249
502
  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
- }>]>;
503
+ }, z.core.$strip>;
504
+ }, z.core.$strip>]>;
3270
505
  export type StdOutgoingEnvelope = z.infer<typeof stdOutgoingEnvelopeSchema>;
3271
506
  export declare const validMessageTextSchema: z.ZodObject<{
3272
507
  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>>]>;
508
+ }, z.core.$strip>;